/* JunaCircle design system ("Riverside Soft") — primitives shared by every member screen.
   Values come from design/web/w21-*.dc.html; colours from tokens.css so the dark scheme follows. */

/* ---- type ------------------------------------------------------------- */
.t4-mono { font-family: var(--jc-font-mono); font-weight: 500; font-size: 11px; letter-spacing: .02em; color: var(--jc-ink2); }
.t4-mono.lg { font-size: 12px; }
.t4-mono.ink { color: var(--jc-ink); }
.t4-mono.blue { color: var(--jc-primary-soft-text); }
.t4-mono.violet { color: var(--jc-violet-text); }
.jc-serif { font-family: var(--jc-font-serif); font-weight: 400; }
.jc-h1 { margin: 0; font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -.02em; }
.jc-h2 { margin: 0; display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.jc-h2 .t4-mono { color: var(--jc-ink2); }
.jc-h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.jc-lead { margin: 0; font-size: 16px; color: var(--jc-ink2); line-height: 1.5; }
.jc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.jc-link { font-size: 14px; font-weight: 600; color: var(--jc-primary-soft-text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; }
.jc-link:hover { text-decoration: underline; }
.jc-eyebrow { display: flex; align-items: center; gap: 6px; }
.jc-eyebrow a { color: inherit; text-decoration: none; }
kbd { font-family: var(--jc-font-mono); font-size: 11px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--jc-outline); background: var(--jc-surface); color: var(--jc-ink2); }

/* ---- buttons ---------------------------------------------------------- */
.jc-btn, .jc-btn2, .jc-btn3, .jc-btn-danger { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; box-sizing: border-box; white-space: nowrap; }
.jc-btn { background: var(--jc-primary); border-color: var(--jc-primary); color: #fff; }
.jc-btn:hover { background: var(--jc-primary-hover); border-color: var(--jc-primary-hover); color: #fff; }
.jc-btn2 { background: var(--jc-surface); border-color: var(--jc-outline); color: var(--jc-ink); }
.jc-btn2:hover { background: var(--jc-ground); color: var(--jc-ink); }
.jc-btn3 { background: transparent; color: var(--jc-primary-soft-text); padding: 0 10px; }
.jc-btn3:hover { background: var(--jc-ground); }
.jc-btn-danger { background: var(--jc-danger); border-color: var(--jc-danger); color: #fff; }
.jc-btn-ink { background: var(--jc-ink); border-color: var(--jc-ink); color: var(--jc-surface); }
.jc-sm { height: 44px; font-size: 14px; padding: 0 16px; }
.jc-xs { height: 36px; font-size: 13px; padding: 0 12px; }
.jc-lg { height: 52px; font-size: 16px; padding: 0 28px; }
.jc-xl { height: 56px; font-size: 17px; padding: 0 28px; }
.jc-block { width: 100%; }
.jc-btn[disabled], .jc-btn2[disabled], .jc-btn3[disabled], .jc-btn-danger[disabled] { opacity: .5; cursor: default; }
.jc-icon { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--jc-hairline); background: var(--jc-surface); color: var(--jc-ink); display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; box-sizing: border-box; flex: none; text-decoration: none; position: relative; }
.jc-icon:hover { background: var(--jc-ground); }
.jc-icon .jc-count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--jc-primary); color: #fff; border: 2px solid var(--jc-ground); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.jc-auth { height: 52px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; padding: 0 18px; box-sizing: border-box; text-decoration: none; width: 100%; border: 1px solid var(--jc-outline); background: var(--jc-surface); color: var(--jc-ink); }
.jc-auth.apple { border: 0; background: #000; color: #fff; }
.jc-auth.google { border-color: #747775; background: #fff; color: #1F1F1F; }

/* ---- pills, badges, chips, segments ----------------------------------- */
.jc-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; box-sizing: border-box; border-radius: 999px; background: var(--jc-primary); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.jc-live, .jc-pend, .jc-wait, .jc-appr, .jc-tag, .jc-new, .jc-age, .jc-pill { height: 22px; padding: 0 9px 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; box-sizing: border-box; white-space: nowrap; }
.jc-live { background: var(--jc-live-pill); color: var(--jc-live-pill-text); }
.jc-live .dot, .jc-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--jc-live); display: inline-block; flex: none; }
.jc-pend { height: 26px; padding: 0 10px 0 8px; background: var(--jc-pending-bg); color: var(--jc-pending-text); font-size: 13px; gap: 6px; }
.jc-pend.sm, .jc-tag.sm { height: 24px; font-size: 12px; font-weight: 700; padding: 0 10px 0 8px; }
.jc-wait { background: var(--jc-waitlisted-bg); color: var(--jc-waitlisted-text); height: 26px; font-size: 13px; }
.jc-appr { background: var(--jc-live-pill); color: var(--jc-live-pill-text); height: 26px; font-size: 13px; }
.jc-tag { height: 24px; padding: 0 10px; background: var(--jc-violet-bg); color: var(--jc-violet-text); font-weight: 700; }
.jc-tag.blue { background: var(--jc-primary-soft); color: var(--jc-primary-soft-text); }
.jc-tag.ink { background: var(--jc-ink); color: var(--jc-surface); height: 22px; font-size: 11px; padding: 0 8px 0 4px; }
.jc-tag.surface { background: var(--jc-surface); color: var(--jc-ink); box-shadow: var(--jc-shadow-flat); }
.jc-tag.moon { background: var(--jc-moon); color: #1D1B18; height: 28px; font-size: 13px; padding: 0 12px 0 5px; }
.jc-tag.glass { background: rgba(255,253,249,.14); color: #FFFDF9; font-family: var(--jc-font-mono); font-weight: 500; font-size: 11px; letter-spacing: .02em; }
.jc-new { background: var(--jc-primary); color: #fff; height: 24px; font-size: 12px; font-weight: 700; padding: 0 9px; }
.jc-age { background: #FBE7E4; color: #8A2A1C; height: 24px; font-size: 12px; font-weight: 700; padding: 0 9px; }
.jc-pill { background: var(--jc-ground); color: var(--jc-ink); height: 28px; font-size: 13px; padding: 0 11px 0 9px; }
.jc-pill.open { background: var(--jc-live-pill); color: var(--jc-live-pill-text); }
.jc-pill.req { background: #FBEEDD; color: #7A410A; height: 26px; font-size: 12px; }
.jc-presents { height: 30px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--jc-surface); color: var(--jc-ink); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
/* Filter chips (selected = ink) vs status pills above. */
.jc-chip { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--jc-hairline); background: var(--jc-surface); color: var(--jc-ink); font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; box-sizing: border-box; white-space: nowrap; text-decoration: none; }
.jc-chip:hover { background: var(--jc-ground); }
.jc-chip[aria-pressed="true"], .jc-chip.on { background: var(--jc-ink); border-color: var(--jc-ink); color: var(--jc-surface); }
.jc-chip[aria-pressed="true"] .t4-mono { color: inherit; }
.jc-chip.soft[aria-pressed="true"], .jc-chip.soft.on { background: var(--jc-primary-soft); border-color: var(--jc-primary-soft); color: var(--jc-primary-soft-text); }
.jc-chip.sm { height: 40px; padding: 0 14px; }
.jc-chip.dashed { border-style: dashed; border-color: var(--jc-outline); }
.jc-chips { display: flex; gap: 8px; flex-wrap: wrap; }
/* Segmented control. */
.jc-seg { display: inline-flex; align-self: flex-start; padding: 3px; border-radius: 999px; background: var(--jc-ground); border: 1px solid var(--jc-hairline); gap: 2px; }
.jc-seg > button, .jc-seg > a { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--jc-ink2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.jc-seg > [aria-pressed="true"], .jc-seg > .on { background: var(--jc-surface); color: var(--jc-ink); box-shadow: var(--jc-shadow-flat); }
.jc-seg > button .t4-mono { color: inherit; }
/* Join / select toggle (PickCircles). */
.jc-join { height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: none; border: 1px solid var(--jc-outline); background: var(--jc-surface); color: var(--jc-ink); }
.jc-join[aria-pressed="true"] { background: var(--jc-primary); border-color: var(--jc-primary); color: #fff; }

/* ---- avatars, tiles, stacks ------------------------------------------- */
.jc-av { border-radius: 999px; color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; letter-spacing: .02em; overflow: hidden; box-sizing: border-box; }
.jc-av.ink { background: var(--jc-ink); color: var(--jc-surface); }
.jc-tile { border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; font-weight: 700; letter-spacing: .01em; box-sizing: border-box; }
.jc-tile.dashed { border: 1.5px dashed var(--jc-outline); background: transparent; color: var(--jc-ink2); }
.jc-tile.soft { background: var(--jc-ground); color: var(--jc-ink); }
.jc-stack { display: inline-flex; }
.jc-stack > .jc-av + .jc-av, .jc-stack > span + span { margin-left: -8px; }
.jc-ic { width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--jc-ground); color: var(--jc-ink); }
.jc-ic.sm { width: 34px; height: 34px; }
.jc-ic.xs { width: 32px; height: 32px; }
.jc-ic.live { background: var(--jc-live-pill); color: var(--jc-live-pill-text); }
.jc-ic.blue { background: var(--jc-primary-soft); color: var(--jc-primary-soft-text); }
.jc-ic.amber { background: var(--jc-pending-bg); color: var(--jc-pending-text); }
.jc-ic.ink { background: var(--jc-ink); color: var(--jc-surface); }
.jc-ic.danger { background: var(--jc-danger-bg); color: var(--jc-danger); }
@keyframes jcPulse { 0% { transform: scale(.7); opacity: .7 } 100% { transform: scale(1.45); opacity: 0 } }
.jc-pulse { animation: jcPulse 2.4s cubic-bezier(.2,.6,.3,1) infinite; }
@media (prefers-reduced-motion: reduce) { .jc-pulse { animation: none; opacity: .35; } }

/* ---- cards, rows, sections ------------------------------------------- */
.jc-card { background: var(--jc-surface); border-radius: 16px; box-shadow: var(--jc-shadow-flat); box-sizing: border-box; }
.jc-card.lg { border-radius: 20px; }
.jc-card.raised { box-shadow: var(--jc-shadow-card); }
.jc-card.pad { padding: 18px; }
.jc-card.photo { padding: 8px; }
.jc-inset { padding: 12px 14px; border-radius: 12px; background: var(--jc-ground); }
.jc-inset.amber { background: var(--jc-pending-box); }
.jc-inset.blue { background: var(--jc-primary-soft); }
.jc-quote { margin: 0; font-size: 14px; padding: 8px 12px; border-radius: 12px; background: var(--jc-ground); }
.jc-row { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 8px; border-radius: 12px; text-decoration: none; color: var(--jc-ink); box-sizing: border-box; font: inherit; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.jc-row:hover { background: var(--jc-ground); color: var(--jc-ink); }
.jc-row.static { cursor: default; }
.jc-row.static:hover { background: none; }
.jc-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.jc-row .name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-row .sub { font-size: 13px; color: var(--jc-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-stat { padding: 10px; border-radius: 12px; background: var(--jc-ground); }
.jc-stat dt { font-family: var(--jc-font-mono); font-weight: 500; font-size: 11px; letter-spacing: .02em; color: var(--jc-ink2); }
.jc-stat dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; }
.jc-stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.jc-rule { display: flex; align-items: center; gap: 12px; color: var(--jc-ink2); padding: 4px 0; }
.jc-rule::before, .jc-rule::after { content: ''; flex: 1; height: 1px; background: var(--jc-hairline); }
.jc-gh { margin: 6px 0 2px; padding: 0 6px; display: flex; align-items: center; gap: 10px; }
.jc-gh::after { content: ''; flex: 1; height: 1px; background: var(--jc-hairline); }
.jc-section { display: flex; flex-direction: column; gap: 14px; }
.jc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.jc-date { width: 54px; padding: 7px 0 8px; border-radius: 12px; background: var(--jc-surface); color: var(--jc-ink); box-shadow: var(--jc-shadow-card); display: inline-flex; flex-direction: column; align-items: center; gap: 2px; box-sizing: border-box; }
.jc-date .dow { font-family: var(--jc-font-mono); font-weight: 500; font-size: 11px; letter-spacing: .02em; color: var(--jc-primary-soft-text); }
.jc-date .day { font-weight: 700; font-size: 24px; line-height: 1; letter-spacing: -.02em; }
.jc-date .mon { font-family: var(--jc-font-mono); font-weight: 500; font-size: 11px; letter-spacing: .02em; color: var(--jc-ink2); }
.jc-date.sm { width: 46px; padding: 5px 0 6px; gap: 1px; box-shadow: none; }
.jc-date.sm .day { font-size: 20px; }
.jc-hero { position: relative; border-radius: 20px; overflow: hidden; background: var(--jc-hero); color: #FFFDF9; }
.jc-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.jc-hero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,20,40,.55) 0%, rgba(29,20,40,.1) 40%, rgba(29,20,40,.82) 100%); }
.jc-hero .scrim.low { background: linear-gradient(180deg, rgba(29,20,40,.1) 0%, rgba(29,20,40,.2) 40%, rgba(29,20,40,.9) 100%); }
.jc-hero .inner { position: relative; }
.jc-glass { background: rgba(255,253,249,.96); color: #1D1B18; border-radius: 16px; }
.jc-glass .t4-mono { color: #5C574F; }
.jc-glass-btn { height: 56px; padding: 0 22px; border-radius: 999px; background: rgba(255,253,249,.14); color: #FFFDF9; text-decoration: none; font: inherit; font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; border: 0; cursor: pointer; }

/* ---- forms ------------------------------------------------------------ */
.jc-label { font-size: 15px; font-weight: 700; }
.jc-label.sm { font-size: 14px; }
.jc-field { display: flex; flex-direction: column; gap: 8px; }
.jc-field .head { display: flex; align-items: baseline; gap: 8px; }
.jc-field .head .t4-mono { margin-left: auto; }
.jc-field .hint { font-size: 13px; color: var(--jc-ink2); }
.jc-input { height: 52px; border-radius: 12px; border: 1px solid var(--jc-outline); background: var(--jc-surface); padding: 0 14px; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--jc-ink); width: 100%; }
.jc-input:focus { outline: none; border: 2px solid var(--jc-primary); padding: 0 13px; }
textarea.jc-input { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
textarea.jc-input:focus { padding: 11px 13px; }
.jc-input.sm { height: 48px; }
.jc-search { height: 48px; border-radius: 999px; background: var(--jc-ground); display: flex; align-items: center; gap: 10px; padding: 0 16px; box-sizing: border-box; color: var(--jc-ink2); }
.jc-search.outlined { background: var(--jc-surface); border: 1px solid var(--jc-hairline); height: 44px; }
.jc-search input { flex: 1; min-width: 0; border: none; background: transparent; font: inherit; font-size: 15px; color: var(--jc-ink); outline-offset: 4px; }
.jc-search input::placeholder { color: var(--jc-ink2); }
.jc-otp { display: flex; gap: 6px; }
.jc-otp input { flex: 1 1 0; min-width: 0; width: 40px; height: 54px; border-radius: 12px; border: 1px solid var(--jc-outline); background: var(--jc-surface); text-align: center; font: inherit; font-size: 22px; font-weight: 700; color: var(--jc-ink); box-sizing: border-box; padding: 0; }
.jc-otp input:focus { outline: none; border: 2px solid var(--jc-primary); box-shadow: 0 0 0 3px var(--jc-primary-soft); }
.jc-tog { width: 48px; height: 28px; border-radius: 999px; background: var(--jc-primary); position: relative; flex: none; border: none; cursor: pointer; padding: 0; }
.jc-tog::after { content: ''; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(40,30,20,.2); }
.jc-tog[aria-checked="false"] { background: var(--jc-outline); }
.jc-tog[aria-checked="false"]::after { right: auto; left: 3px; }
.jc-tog.lg { width: 52px; height: 32px; }
.jc-tog.lg::after { width: 26px; height: 26px; }
.jc-opt { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 12px; cursor: pointer; box-sizing: border-box; }
.jc-opt:hover { background: var(--jc-ground); }
.jc-opt.on { background: var(--jc-primary-soft); }
.jc-radio { width: 22px; height: 22px; border-radius: 999px; border: 2px solid #A9A194; box-sizing: border-box; flex: none; display: flex; align-items: center; justify-content: center; }
.jc-opt.on .jc-radio { border-color: var(--jc-primary); }
.jc-opt.on .jc-radio::after { content: ''; width: 10px; height: 10px; border-radius: 999px; background: var(--jc-primary); }
.jc-set { display: flex; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid var(--jc-hairline); }
.jc-set .body { flex: 1; display: flex; flex-direction: column; }
.jc-set .body b { font-size: 14px; font-weight: 600; }
.jc-step { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.jc-num { width: 28px; height: 28px; border-radius: 999px; background: var(--jc-ground); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.jc-num.done { background: var(--jc-live-pill); color: var(--jc-live-pill-text); }
.jc-note { margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--jc-ground); font-size: 13px; line-height: 1.45; color: var(--jc-ink); }
.jc-note.blue { background: var(--jc-primary-soft); }
.jc-note.amber { background: var(--jc-pending-box); }
.jc-bullets { margin: 0; padding: 14px 16px; list-style: none; background: var(--jc-surface); border-radius: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--jc-ink2); }
.jc-bullets li { display: flex; gap: 8px; }

/* ---- sheets, popovers, menus ------------------------------------------ */
.jc-scrim { position: fixed; inset: 0; background: var(--jc-scrim); display: grid; place-items: end center; z-index: 20; }
.jc-scrim.center { place-items: center; padding: 16px; }
.jc-sheet { width: min(560px, 100%); max-height: 86dvh; overflow: auto; background: var(--jc-surface); border-radius: 28px 28px 0 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.jc-sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--jc-outline); margin: 0 auto 14px; }
.jc-modal { width: min(560px, 100%); max-height: 90dvh; overflow: auto; background: var(--jc-surface); border-radius: 28px; padding: 24px 24px 22px; box-sizing: border-box; box-shadow: var(--jc-shadow-pop); }
.jc-pop { position: absolute; z-index: 30; box-sizing: border-box; background: var(--jc-surface); border-radius: 20px; box-shadow: var(--jc-shadow-pop); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.jc-menu { position: absolute; z-index: 30; min-width: 260px; background: var(--jc-surface); border-radius: 16px; box-shadow: var(--jc-shadow-pop); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.jc-menu a, .jc-menu button { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 10px; color: var(--jc-ink); text-decoration: none; font: inherit; font-size: 15px; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; box-sizing: border-box; white-space: nowrap; }
.jc-menu a:hover, .jc-menu button:hover { background: var(--jc-ground); }
.jc-menu .t4-mono { margin-left: auto; }
.jc-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--jc-ink); color: var(--jc-surface); padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: var(--jc-shadow-pop); z-index: 40; display: flex; align-items: center; gap: 8px; }

/* ---- shell: rail · top bar · main · sidebar --------------------------- */
.jc-shell { min-height: 100dvh; display: flex; background: var(--jc-ground); }
.jc-rail { width: 220px; flex: none; box-sizing: border-box; background: var(--jc-surface); border-right: 1px solid var(--jc-hairline); padding: 20px 16px 24px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100dvh; z-index: 9; }
.jc-wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--jc-ink); min-height: 44px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.jc-create { display: flex; flex-direction: column; gap: 8px; position: relative; }
.jc-create .t4-mono { text-align: center; }
.jc-nav { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 12px; color: var(--jc-ink2); font-weight: 600; font-size: 16px; text-decoration: none; }
.jc-nav:hover { background: var(--jc-ground); color: var(--jc-ink); }
.jc-nav[aria-current="page"] { background: var(--jc-primary-soft); color: var(--jc-ink); font-weight: 700; }
.jc-rail nav { display: flex; flex-direction: column; gap: 2px; }
.jc-rail .circles { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--jc-hairline); padding-top: 12px; }
.jc-rail .circles h2 { margin: 0 0 6px; padding: 0 4px; }
.jc-rail .circles .jc-row { min-height: 44px; font-size: 14px; font-weight: 700; }
.jc-rail .circles .jc-row.browse { font-weight: 600; color: var(--jc-ink2); }
.jc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jc-top { display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: var(--jc-ground); border-bottom: 1px solid var(--jc-hairline); flex-wrap: wrap; position: sticky; top: 0; z-index: 8; }
.jc-citybtn { height: 44px; padding: 0 12px; margin-left: -12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; color: var(--jc-ink); text-decoration: none; font: inherit; font-size: 16px; font-weight: 600; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.jc-citybtn[aria-expanded="true"] { background: var(--jc-primary-soft); }
.jc-top > .jc-search { flex: 1 1 240px; max-width: 520px; }
.jc-top .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.jc-page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 28px 56px; box-sizing: border-box; display: flex; flex-direction: column; gap: 26px; }
.jc-page.narrow { max-width: 900px; }
.jc-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.jc-page-head .titles { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.jc-cols { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.jc-col { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.jc-side { flex: 1 1 300px; min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.jc-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.jc-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 14px; }
.jc-grid4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.jc-tabbar { display: none; }
@media (max-width: 899px) {
  .jc-rail { display: none; }
  .jc-top { padding: 10px 16px; }
  .jc-top > .jc-search { display: none; }
  .jc-page { padding: 20px 16px calc(24px + 84px + env(safe-area-inset-bottom)); gap: 20px; }
  .jc-h1 { font-size: 30px; }
  .jc-tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--jc-surface); border-top: 1px solid var(--jc-hairline); z-index: 9; }
  .jc-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--jc-ink2); font-size: 11px; font-weight: 600; padding: 6px 0; border-radius: 14px; position: relative; }
  .jc-tabbar a.active { color: var(--jc-primary-soft-text); }
  .jc-tabbar a.active .ic { background: var(--jc-primary-soft); }
  .jc-tabbar a .ic { width: 52px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
  .jc-tabbar a .jc-badge { position: absolute; top: 2px; right: 10px; margin: 0; }
  .jc-pop { position: fixed; left: 8px !important; right: 8px; top: 64px !important; width: auto !important; max-width: none; }
}

/* ---- signed-out / onboarding frames ----------------------------------- */
.jc-auth-frame { min-height: 100dvh; display: flex; flex-direction: column; background: var(--jc-ground); }
.jc-auth-frame .wrap { flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; box-sizing: border-box; padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.jc-auth-hero { flex: 999 1 520px; min-width: 0; min-height: 560px; display: flex; flex-direction: column; justify-content: space-between; }
.jc-auth-hero .logo { position: relative; margin: 36px 40px 0; display: flex; align-items: center; min-height: 44px; align-self: flex-start; }
.jc-auth-hero .copy { position: relative; padding: 0 40px 40px; display: flex; flex-direction: column; gap: 18px; max-width: 640px; color: #FFFDF9; }
.jc-auth-hero h1 { margin: 0; font-weight: 700; font-size: 58px; line-height: 1; letter-spacing: -.03em; }
.jc-auth-hero p { margin: 0; font-size: 18px; line-height: 1.45; color: #F4F1EA; }
.jc-auth-side { flex: 1 1 400px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 8px 0; }
.jc-auth-card { position: relative; width: 100%; max-width: 460px; box-sizing: border-box; background: var(--jc-surface); border-radius: 20px; padding: 28px 36px 30px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--jc-shadow-card); }
.jc-auth-card.wide { max-width: 520px; padding: 26px 32px 28px; }
.jc-auth-foot { width: 100%; max-width: 1360px; margin: 0 auto; box-sizing: border-box; padding: 8px 24px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.jc-auth-foot nav { display: flex; gap: 4px; }
.jc-auth-foot nav a { min-height: 44px; padding: 0 10px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--jc-ink2); text-decoration: none; }
.jc-continue { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--jc-ground); text-decoration: none; color: var(--jc-ink); }
.jc-continue img, .jc-continue .ph { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; display: block; background: var(--jc-hero); }
.jc-otp-box { border-radius: 16px; background: var(--jc-ground); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.jc-lang { height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--jc-hairline); background: var(--jc-surface); color: var(--jc-ink); font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.jc-lang select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.jc-cc { height: 52px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--jc-outline); background: var(--jc-surface); color: var(--jc-ink); font: inherit; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: none; position: relative; }
.jc-cc select { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.jc-onb { min-height: 100dvh; background: var(--jc-ground); display: flex; flex-direction: column; }
.jc-onb-head { width: 100%; max-width: 1200px; margin: 0 auto; box-sizing: border-box; padding: 16px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.jc-onb-head nav { flex: 1 1 360px; display: flex; justify-content: center; }
.jc-stepper { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jc-stepper li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--jc-ink2); }
.jc-stepper li .n { width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid var(--jc-outline); box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.jc-stepper li[aria-current="step"] { font-weight: 700; color: var(--jc-ink); }
.jc-stepper li[aria-current="step"] .n { background: var(--jc-primary); border-color: var(--jc-primary); color: #fff; }
.jc-stepper li.done { color: var(--jc-ink); }
.jc-stepper li.done .n { background: var(--jc-primary-soft); border-color: var(--jc-primary-soft); color: var(--jc-primary-soft-text); }
.jc-stepper li.bar { width: 32px; height: 2px; border-radius: 2px; background: var(--jc-outline); }
.jc-stepper li.bar.done { background: var(--jc-primary); }
.jc-onb-main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; box-sizing: border-box; padding: 16px 24px 56px; display: flex; flex-direction: column; gap: 20px; }
.jc-onb-main .jc-h1 { font-size: 40px; line-height: 1.02; letter-spacing: -.03em; }
.jc-form-card { background: var(--jc-surface); border-radius: 20px; padding: 32px 36px; box-sizing: border-box; display: flex; flex-direction: column; gap: 28px; box-shadow: var(--jc-shadow-flat); }
.jc-fieldset { margin: 0; padding: 0; border: none; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.jc-fieldset legend { padding: 0; margin-bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.jc-fieldset legend b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.jc-fieldset legend b .opt { font-weight: 500; color: var(--jc-ink2); }
.jc-fieldset legend span { font-size: 14px; color: var(--jc-ink2); }
.jc-fieldset.rule { padding-top: 22px; border-top: 1px solid var(--jc-hairline); gap: 14px; }
.jc-circle-box { border-radius: 16px; background: var(--jc-ground); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.jc-sticky-bar { position: sticky; bottom: 0; background: var(--jc-surface); border-top: 1px solid var(--jc-hairline); box-shadow: 0 -8px 24px rgba(40,30,20,.06); z-index: 5; }
.jc-sticky-bar .inner { max-width: 1200px; margin: 0 auto; box-sizing: border-box; padding: 14px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.jc-fan { width: 100%; min-height: 76px; border-radius: 16px; border: 1px solid var(--jc-hairline); background: var(--jc-surface); padding: 12px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--jc-ink); cursor: pointer; font: inherit; }
.jc-fan[aria-pressed="true"] { border: 2px solid var(--jc-primary); padding: 11px; background: #F7F8FE; }
.jc-fan .plus { width: 28px; height: 28px; flex: none; border-radius: 999px; border: 1.5px solid var(--jc-outline); box-sizing: border-box; display: flex; align-items: center; justify-content: center; color: var(--jc-ink2); }
.jc-fan[aria-pressed="true"] .plus { background: var(--jc-primary); border-color: var(--jc-primary); color: #fff; }
.jc-soon { min-height: 112px; border-radius: 16px; background: #EFEBE3; border: 1px dashed var(--jc-outline); padding: 16px; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; color: var(--jc-ink2); }
.jc-soon .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--jc-hairline); display: flex; align-items: center; justify-content: center; }
.jc-soon .nm { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.jc-soon .nm b { font-size: 16px; font-weight: 700; color: var(--jc-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .jc-soon { background: var(--jc-surface); } :root:not([data-theme="light"]) .jc-fan[aria-pressed="true"] { background: var(--jc-surface-2); } }
@media (max-width: 899px) {
  .jc-auth-hero { min-height: 320px; }
  .jc-auth-hero h1 { font-size: 40px; }
  .jc-auth-card { padding: 24px 20px; }
  .jc-form-card { padding: 22px 18px; }
  .jc-onb-main .jc-h1 { font-size: 32px; }
}

/* ---- splash ----------------------------------------------------------- */
.jc-splash { width: 100%; min-height: 100dvh; position: relative; overflow: hidden; background: var(--jc-ground); color: var(--jc-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.jc-splash.dark { background: #1D1B18; color: #FFFDF9; }
.jc-splash jc-orbit { margin-top: -48px; display: block; }
.jc-splash-word { margin-top: -46px; font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -.035em; opacity: 0; }
.jc-splash-tag { margin-top: 14px; font-size: 13px; opacity: 0; }
.jc-splash.dark .t4-mono { color: #B9B2A6; }
.jc-splash-status { position: absolute; left: 0; right: 0; bottom: 40px; text-align: center; }
@media (max-width: 899px) { .jc-splash jc-orbit { transform: scale(.75); } .jc-splash-word { font-size: 38px; } }

/* ---- event card (shared by Home · Events · CityOpened) ---------------- */
.jc-event { border-radius: 20px; padding: 8px; display: flex; flex-wrap: wrap; gap: 0; }
.jc-event .cover { flex: 1 1 260px; position: relative; min-height: 300px; border-radius: 14px; overflow: hidden; background: var(--jc-hero); }
.jc-event .cover img, .jc-event .cover .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.jc-event .cover .ph { background: radial-gradient(circle at 30% 20%, #F2A541 0%, rgba(242,165,65,0) 45%), radial-gradient(circle at 75% 70%, #B23A6B 0%, rgba(178,58,107,0) 55%), #2A1F3D; }
.jc-event .cover .jc-date { position: absolute; top: 12px; left: 12px; }
.jc-event .cover .jc-presents { position: absolute; left: 12px; bottom: 12px; }
.jc-event .body { flex: 999 1 300px; min-width: 0; padding: 14px 16px 12px 22px; display: flex; flex-direction: column; gap: 12px; }
.jc-event .chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jc-event h3 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.jc-event h3 a { color: inherit; text-decoration: none; }
.jc-event .facts { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.jc-event .facts span { display: flex; align-items: center; gap: 8px; }
.jc-event .status { padding: 12px 14px; border-radius: 12px; background: var(--jc-pending-box); display: flex; flex-direction: column; gap: 6px; }
.jc-event .status.live { background: var(--jc-live-pill); }
.jc-event .status.wait { background: var(--jc-waitlisted-bg); }
.jc-event .status .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.jc-event .status p { margin: 0; font-size: 14px; color: var(--jc-ink2); line-height: 1.45; }
.jc-event .going { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--jc-ink2); }
.jc-event .going strong { color: var(--jc-ink); }
.jc-event .actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.jc-event .meet { font-size: 13px; color: var(--jc-ink2); display: flex; align-items: center; gap: 6px; }
.jc-event-sm { display: flex; flex-direction: column; text-decoration: none; color: var(--jc-ink); overflow: hidden; }
.jc-event-sm .cover { position: relative; display: block; margin: 6px 6px 0; height: 128px; border-radius: 12px; overflow: hidden; background: var(--jc-hero); }
.jc-event-sm .cover img { width: 100%; height: 128px; object-fit: cover; display: block; }
.jc-event-sm .cover .jc-date { position: absolute; top: 8px; left: 8px; }
.jc-event-sm .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.jc-event-sm .kind { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.jc-event-sm .title { font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.jc-event-sm .sub { font-size: 13px; color: var(--jc-ink2); }
.jc-event-sm .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; border-top: 1px solid var(--jc-hairline); padding-top: 10px; }
.jc-rsvp { height: 26px; padding: 0 10px 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; box-sizing: border-box; }
.jc-rsvp.going { background: var(--jc-primary); color: #fff; }
.jc-rsvp.in { background: var(--jc-live-pill); color: var(--jc-live-pill-text); }
.jc-rsvp.maybe { border: 1px solid var(--jc-outline); padding: 0 10px; }
.jc-rsvp.pend { background: var(--jc-pending-bg); color: var(--jc-pending-text); }
.jc-rsvp.wait { background: var(--jc-waitlisted-bg); color: var(--jc-waitlisted-text); }
