/* YIC UI primitives: the one shared set of building blocks for the member app.
   Read docs/UI_PRIMITIVES.md first: it is the API (class names, markup, states)
   and says which existing screens each primitive was lifted from.

   Rules of this file
   - Everything is namespaced yic-*, so it can load beside the app's own CSS
     (member-mobile-*, mobt-*, ...) while screens migrate one at a time.
   - It looks IDENTICAL to what ships today. The SPA primitives (button, segmented
     control, row/list, panel, chip, eyebrow, stat, sheet, switch) are lifted from
     the phone app's own rules, selector for selector. The standalone-page pieces
     (field, notice, mark, the metal and pill button faces) are lifted from
     login.html, join.html, rsvp.html, checkin.html and install.html.
   - Where today's screens disagree with each other (three gold buttons, four
     golds), the differences are kept as NAMED variants and skins below, never
     silently merged. Merging them is a visual decision for the owner.
   - No glows under buttons, no glass blur (owner rules).
   Loaded as /public/yic-ui.css by the standalone pages. */

/* ===================================================================== tokens */
:root {
  /* ground and ink */
  --yic-bg: #070809;
  --yic-ink: #f5f7fa;
  --yic-ink-soft: #b9bfc6;
  --yic-muted: #8f98a6;
  --yic-faint: #6b7480;
  --yic-line: rgba(255, 255, 255, 0.09);
  --yic-line-strong: rgba(255, 255, 255, 0.14);
  /* gold: flat accent, plus the two struck-metal gradients */
  --yic-gold: #d8a82a;
  --yic-gold-rgb: 216, 168, 42;
  --yic-gold-bright: #f4c84a;
  --yic-gold-grad: linear-gradient(100deg, #a9760f 0%, #e3b53a 20%, #fff1c2 38%, #f4c84a 50%, #d8a82a 70%, #a9760f 100%);
  --yic-gold-grad-v: linear-gradient(180deg, #f6cf5e 0%, #d8a82a 50%, #9c6c0e 100%);
  /* semantic colors (never the accent) */
  --yic-green: #28f673;
  --yic-green-rgb: 40, 246, 115;
  --yic-red-rgb: 248, 113, 113;
  /* shape */
  --yic-radius-sm: 8px;
  --yic-radius: 14px;
  --yic-radius-lg: 18px;
  --yic-radius-pill: 999px;
  /* motion */
  --yic-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --yic-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* type */
  --yic-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --yic-icon-depth: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.5));
}

/* Skins: the standalone pages use slightly different golds and grounds than the
   phone app. Each skin only re-points tokens, so a primitive never changes. */
/* The App Store shell pages (welcome, login, join put yic-skin-native on <html>): the gold of the signed-off first launch.
   Never on the SPA, which also carries html.native but keeps #d8a82a. */
html.native.yic-skin-native {
  --yic-gold: #e3b23c;
  --yic-gold-rgb: 227, 178, 60;
  --yic-gold-bright: #f8dc8e;
}
/* The status pages (RSVP, check-in, install): struck-metal button, #e3b23c / #e7b340 golds. */
.yic-skin-status {
  --yic-bg: #07090b;
  --yic-ink: #eceff2;
  --yic-muted: #8b939c;
  --yic-ink-soft: #b9bfc6;
  --yic-line: rgba(255, 255, 255, 0.09);
  --yic-card: #0e1216;
  --yic-gold: #e3b23c;
  --yic-gold-rgb: 227, 178, 60;
  --yic-green: #2fcf70;
  --yic-red: #e24f4f;
}
/* The web sign-in and join pages. */
.yic-skin-auth {
  --yic-bg: #08090b;
  --yic-ink: #f0f1f4;
  --yic-muted: #9a9ba4;
  --yic-line: rgba(255, 255, 255, 0.08);
  --yic-panel: #0f1014;
}

/* ===================================================================== button
   .yic-btn            the base (SPA: member-mobile-btn)
   .yic-btn--gold      primary, the SPA's shimmering gold   --ghost  --danger  --sm  --block  --busy
   Faces kept from the standalone pages, until the owner picks one:
   .yic-btn--metal     RSVP / check-in / install: struck metal, 14px radius   (--lg: 62px tall, 16px radius)
   .yic-btn--pill      login and join on the web: pill-shaped gold gradient
   .yic-btn--discord   (with --pill) the outlined brand button on the web pages; --discord-solid is join's filled one */
.yic-btn { border: 0; border-radius: 8px; padding: 14px; font: inherit; font-weight: 850; font-size: 0.95rem; cursor: pointer; }
.yic-btn:disabled { opacity: 0.5; cursor: default; }
.yic-btn--block { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.yic-btn--block svg { width: 18px; height: 18px; }
.yic-btn--sm { width: auto; padding: 9px 14px; font-size: 0.82rem; }
.yic-btn--ghost { background: transparent; color: var(--yic-ink); border: 1px solid var(--yic-line-strong); }
.yic-btn--danger { background: rgba(var(--yic-red-rgb), 0.14); color: rgb(var(--yic-red-rgb)); border: 1px solid rgba(var(--yic-red-rgb), 0.34); }
.yic-btn--gold { background: var(--yic-gold-grad); background-size: 200% 100%; animation: yic-gold-shimmer 5.5s linear infinite; color: #241802; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(120, 84, 20, 0.42); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.16); }
.yic-btn, .yic-row, .yic-card, .yic-card--gold, .yic-seg__opt { transition: transform 0.15s var(--yic-ease), opacity 0.15s ease, background-color 0.2s ease, color 0.2s ease; -webkit-tap-highlight-color: transparent; }
.yic-btn:active, .yic-seg__opt:active { opacity: 0.55; }
.yic-row:active, .yic-card:active, .yic-card--gold:active, .yic-btn:active { transform: scale(0.978); }
.yic-seg__opt:active { transform: scale(0.94); }
.yic-btn--gold:active { filter: brightness(0.97); opacity: 1; }
/* busy: the label hides and a ring spins in its place */
.yic-btn.yic-btn--busy { position: relative; color: transparent; text-shadow: none; pointer-events: none; }
.yic-btn--busy::after { content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 15px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid rgba(var(--yic-gold-rgb), 0.3); border-top-color: var(--yic-gold); animation: yic-spin 0.7s linear infinite; }
.yic-btn--gold.yic-btn--busy::after { border-color: rgba(20, 16, 4, 0.28); border-top-color: #141004; }
.yic-btn--face-gold.yic-btn--busy::after { border-color: rgba(20, 16, 4, 0.28); border-top-color: #141004; }
.yic-btn--danger.yic-btn--busy::after { border-color: rgba(var(--yic-red-rgb), 0.3); border-top-color: rgb(var(--yic-red-rgb)); }

/* the standalone struck-metal face */
.yic-btn--metal { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 22px; border-radius: 14px; border: 0; font: inherit; font-size: 16.5px; font-weight: 870; cursor: pointer; text-decoration: none; color: #241a06;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 44%, rgba(0, 0, 0, 0.16)), linear-gradient(100deg, #e8c058 5%, #d8a82a 45%, #7e5c19 95%);
  box-shadow: inset 0 1px 0 rgba(255, 247, 218, 0.62), inset 0 -1px 0 rgba(74, 48, 4, 0.55), 0 3px 10px -3px rgba(0, 0, 0, 0.75); }
.yic-btn--metal:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(58, 37, 2, 0.55), 0 1px 2px -1px rgba(0, 0, 0, 0.6); }
.yic-btn--metal::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: translateX(-160%); }
@media (prefers-reduced-motion: no-preference) { .yic-btn--metal::after { animation: yic-sheen 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s; } }
.yic-btn--metal:disabled { opacity: 0.55; cursor: default; }
.yic-btn--metal:disabled::after { display: none; }
.yic-btn--metal.yic-btn--lg { min-height: 62px; border-radius: 16px; font-size: 19px; font-weight: 880; letter-spacing: 0.02em; display: flex; }
.yic-btn--metal.yic-btn--lg { box-shadow: inset 0 1px 0 rgba(255, 247, 218, 0.62), inset 0 -1px 0 rgba(74, 48, 4, 0.55); }
.yic-btn--metal.yic-btn--lg:active { box-shadow: inset 0 2px 4px rgba(58, 37, 2, 0.55); }
@media (prefers-reduced-motion: no-preference) { .yic-btn--metal.yic-btn--lg::after { animation-duration: 1.6s; animation-delay: 0.6s; } }
.yic-btn--metal.yic-btn--busy { color: transparent; }
.yic-btn--metal.yic-btn--busy::before { content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(36, 26, 6, 0.3); border-top-color: #241a06; animation: yic-spin 0.8s linear infinite; }
.yic-btn--metal.yic-btn--busy::after { display: none; }

/* round icon button (close, back): 34px, hairline ring, svg 18px. --end pushes it to the row's right edge. */
.yic-iconbtn { position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--yic-line); background: rgba(255, 255, 255, 0.04); color: #c8ced6; cursor: pointer; }
.yic-iconbtn::after { content: ''; position: absolute; inset: -6px; }
.yic-iconbtn[hidden] { display: none; }
.yic-iconbtn svg { width: 18px; height: 18px; }
.yic-iconbtn--end { margin-left: auto; }

/* the shared gold face for desktop and phone buttons: paint only, pair it with yic-btn and a size.
   Lifted from the desktop gold treatment (50k-member-gold.css), minus its hover glow (no glows under buttons). */
.yic-btn--face-gold { position: relative; overflow: hidden; border: 0; color: #241a06; text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 44%, rgba(0, 0, 0, 0.16)), linear-gradient(100deg, #e8c058 5%, var(--yic-gold) 45%, #7e5c19 95%);
  box-shadow: inset 0 1px 0 rgba(255, 247, 218, 0.62), inset 0 -1px 0 rgba(74, 48, 4, 0.55), 0 2px 5px -2px rgba(0, 0, 0, 0.65);
  transition: filter 0.24s var(--yic-ease), transform 0.24s var(--yic-ease), box-shadow 0.24s var(--yic-ease); }
/* flat gold (home Join, events RSVP): the same gradient with no bevel or drop shadow */
.yic-btn--face-gold-flat { position: static; box-shadow: none; background: linear-gradient(100deg, #e8c058 5%, var(--yic-gold) 45%, #7e5c19 95%); }
/* plain: no hover or press effect. Opt in with --lift (doors, Add, Renew) or --bright (simple buttons). */
/* disabled look is tokenised: a caller sets --yic-btn-disabled / --yic-btn-disabled-cursor where the old class differed */
.yic-btn--face-gold:disabled { cursor: var(--yic-btn-disabled-cursor, not-allowed); opacity: var(--yic-btn-disabled, 0.56); }
.yic-btn.yic-btn--face-gold:active { opacity: 1; transform: none; }
.yic-btn--lift::after { content: ""; position: absolute; inset: 0; transform: translateX(-135%); background: linear-gradient(100deg, transparent 38%, rgba(255, 252, 240, 0.66) 50%, transparent 62%); pointer-events: none; }
.yic-btn--lift:hover:not(:disabled)::after { animation: yic-door-sheen 0.62s var(--yic-ease); }
@keyframes yic-door-sheen { from { transform: translateX(-135%); } to { transform: translateX(135%); } }
@media (prefers-reduced-motion: reduce) { .yic-btn--lift:hover:not(:disabled)::after { animation: none; } }
.yic-btn--lift:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 250, 230, 0.75), inset 0 -1px 0 rgba(74, 48, 4, 0.5), 0 2px 5px -2px rgba(0, 0, 0, 0.6); }
.yic-btn--lift:active:not(:disabled) { filter: brightness(1.05); opacity: 1; transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(58, 37, 2, 0.55), 0 1px 2px -1px rgba(0, 0, 0, 0.6); }
.yic-btn--bright:hover:not(:disabled), .yic-btn--bright:active:not(:disabled) { filter: brightness(1.07); }
/* sizes for yic-btn faces (desktop door, medium, large) */
.yic-btn.yic-btn--door { display: inline-flex; align-items: center; justify-content: center; flex: none; white-space: nowrap; gap: 8px; width: auto; padding: 8px 15px; border-radius: 7px; font-size: 0.82rem; line-height: 1; }
.yic-btn.yic-btn--md { display: inline-flex; align-items: center; justify-content: center; flex: none; white-space: nowrap; gap: 9px; width: auto; padding: 13px 26px; border-radius: 7px; font-size: 0.92rem; }
.yic-btn.yic-btn--lg { display: flex; align-items: center; justify-content: center; flex: none; white-space: nowrap; gap: 9px; padding: 15px; border-radius: 13px; font-size: 0.98rem; }
/* struck-metal gold for text and icons */
.yic-gold-text { background: var(--yic-gold-grad-v); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* the App Store shell's gold button (welcome, join's push banner): 58px, three-stop gold, inset bevel */
.yic-btn--native { position: relative; isolation: isolate; width: 100%; height: 58px; border: 0; border-radius: 19px; background: linear-gradient(180deg, #f9dc8c 0%, #e8b944 46%, #c18a14 100%); color: #1b1303; font: inherit; font-weight: 800; font-size: 17px; box-shadow: inset 0 1px 0 rgba(255, 248, 220, 0.85), inset 0 -2px 0 rgba(120, 78, 6, 0.45); }
.yic-btn--native:active { transform: scale(0.975); }

/* the web pill face (login, join) */
.yic-btn--pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 24px; border: 0; border-radius: 999px; font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform 0.2s, box-shadow 0.3s, border-color 0.2s, color 0.2s;
  background: linear-gradient(135deg, #f4c84a, #d8a82a 60%, #c6941f); color: #0a0a0a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 3px rgba(120, 75, 0, 0.4); }
.yic-btn--pill:hover { transform: translateY(-2px); }
.yic-btn--pill[disabled] { opacity: 0.62; cursor: default; transform: none !important; box-shadow: none; }
.yic-btn--pill.yic-btn--discord { background: transparent; border: 1px solid rgba(255, 255, 255, 0.16); color: var(--yic-ink); box-shadow: none; }
.yic-btn--pill.yic-btn--discord:hover { border-color: #5865f2; color: #fff; background: rgba(88, 101, 242, 0.1); }
.yic-btn--discord svg { flex-shrink: 0; }
/* join's solid brand button */
.yic-btn--pill.yic-btn--discord-solid { background: #5865f2; color: #fff; box-shadow: 0 12px 34px rgba(88, 101, 242, 0.4); }
.yic-btn--pill.yic-btn--discord-solid:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(88, 101, 242, 0.5); }

/* block segmented control (desktop Competition tabs): an outlined tray, gold-filled active tab, optional count badge */
.yic-segblock { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border: 1px solid var(--yic-line); border-radius: 7px; background: rgba(255, 255, 255, 0.022); }
.yic-segblock__opt { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 18px; border: 0; border-radius: 4px; background: transparent; color: #c8ced6; font: inherit; font-size: 0.92rem; font-weight: 800; cursor: pointer; }
.yic-segblock__opt:hover { color: #ffffff; }
.yic-segblock__opt.on { background: var(--yic-gold-grad-v); color: #241802; }
.yic-segblock__badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--yic-gold); color: #1a1206; font-size: 0.72rem; font-weight: 900; }
.yic-segblock__opt.on .yic-segblock__badge { background: #241802; color: #f2cd52; }

/* ============================================================ segmented control
   <div class="yic-seg" role="tablist"><button class="yic-seg__opt on">One</button>...</div>
   (SPA: member-mobile-seg, member-mobile-seg-btn) */
.yic-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; border: 1px solid var(--yic-line); background: transparent; justify-self: start; }
.yic-seg__opt { border: 0; background: transparent; color: var(--yic-muted); font: inherit; font-weight: 800; font-size: 0.8rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.yic-seg__opt.on { background: rgba(var(--yic-gold-rgb), 0.14); color: var(--yic-gold); }

/* ====================================================== panel, list and row
   <div class="yic-panel"><div class="yic-list">
     <button class="yic-row"><div class="yic-row__copy"><div class="yic-row__title">..</div><div class="yic-row__meta">..</div></div><span class="yic-row__trail">..</span><svg class="yic-row__go">..</svg></button>
   </div></div>     (SPA: member-mobile-panel / list / item; use .yic-row--static on a div for a non-tappable row) */
.yic-panel { position: relative; }
.yic-list { display: grid; }
.yic-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--yic-line); }
.yic-row:last-child { border-bottom: 0; }
.yic-row--static { grid-template-columns: 1fr auto; }
button.yic-row { grid-template-columns: auto 1fr auto auto; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--yic-line); color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.yic-row:last-child { border-bottom: 0; }
button.yic-row--static { grid-template-columns: 1fr auto; }
button.yic-row:active { opacity: 0.6; }
.yic-row__copy { min-width: 0; }
.yic-row__title { font-weight: 780; font-size: 0.92rem; }
.yic-row__title.is-danger { color: rgb(var(--yic-red-rgb)); }
.yic-row__meta { color: var(--yic-muted); font-size: 0.74rem; font-weight: 650; }
.yic-row__trail { color: var(--yic-muted); font-size: 0.82rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.yic-row__trail.is-gold { color: var(--yic-gold); }
.yic-row__go { flex: none; width: 15px; height: 15px; color: #454f5a; }
.yic-row__go.is-danger { color: rgb(var(--yic-red-rgb)); }

/* ========================================================================= card
   .yic-card is the plain surface (hairline, radius 18). .yic-card--gold is the
   team card: gold-tinted edge and wash (SPA: member-mobile-teamcard), and a
   .yic-card--gold must carry its own full look, so use it ALONE. */
.yic-card { border: 1px solid var(--yic-line); border-radius: 18px; background: var(--yic-card, #0e1216); overflow: hidden; }
.yic-card--gold { flex: none; display: block; width: 100%; padding: 13px 15px 14px; border: 1px solid rgba(var(--yic-gold-rgb), 0.24); border-radius: 14px; background: linear-gradient(180deg, rgba(var(--yic-gold-rgb), 0.07), rgba(var(--yic-gold-rgb), 0.015) 70%); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.yic-card--gold:active { opacity: 0.72; }

/* ================================================================ chip / eyebrow / label
   .yic-chip           a status pill (SPA gold chip; .is-quiet is the grey one)
   .yic-chip--tag      the uppercase outlined tag on the RSVP page (.is-gold)
   .yic-chip--choice   a selectable pill on the join steps (.sel)
   .yic-eyebrow        small uppercase section lead-in (.is-gold)
   .yic-eyebrow--kick  the wide-tracked gold kicker over big headings
   .yic-label          the grey section label above a list */
.yic-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.yic-chip { display: inline-flex; margin-top: 8px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(var(--yic-gold-rgb), 0.3); background: rgba(var(--yic-gold-rgb), 0.1); color: var(--yic-gold); font-size: 0.72rem; font-weight: 800; }
.yic-chip.is-quiet { color: var(--yic-muted); background: transparent; border-color: var(--yic-line); }
.yic-chip--tag { display: inline-flex; align-items: center; gap: 7px; height: 30px; margin-top: 0; padding: 0 12px; border-radius: 999px; border: 1px solid var(--yic-line); background: transparent; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yic-ink-soft); }
.yic-chip--tag.is-gold { border-color: rgba(var(--yic-gold-rgb), 0.45); color: var(--yic-gold); }
.yic-chip--choice { display: inline-block; margin-top: 0; padding: 13px 24px; border-radius: 999px; border: 1px solid var(--yic-line); background: rgba(19, 20, 25, 0.7); color: var(--yic-ink); font-size: 15.5px; font-weight: 500; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s; }
.yic-chip--choice:hover { border-color: var(--yic-gold); color: var(--yic-gold-bright); transform: translateY(-2px); }
.yic-chip--choice.sel { border-color: var(--yic-gold); background: rgba(var(--yic-gold-rgb), 0.16); color: var(--yic-gold-bright); }
.yic-eyebrow { color: var(--yic-muted); font-size: 0.66rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.yic-eyebrow.is-gold { color: var(--yic-gold); }
.yic-eyebrow--kick { display: block; color: var(--yic-gold); font-size: 12.5px; font-weight: 850; letter-spacing: 0.2em; text-transform: uppercase; }
.yic-label { font-size: 0.62rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yic-faint); padding: 6px 2px 0; }

/* ================================================================== stat
   <dl class="yic-stat-grid"><div class="yic-stat"><dt>Club points</dt><dd class="is-gold">128</dd></div></dl>
   (SPA: member-mobile-statgrid / stat; dd tones: is-gold is-positive is-negative is-neutral is-up) */
.yic-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--yic-line); border-block: 1px solid var(--yic-line); }
.yic-stat { display: grid; gap: 4px; padding: 12px 14px; background: var(--yic-bg); }
.yic-stat dt { color: var(--yic-muted); font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.yic-stat dd { margin: 0; font-size: 1.12rem; font-weight: 820; font-variant-numeric: tabular-nums; }
.yic-stat dd.is-gold { background: var(--yic-gold-grad-v); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.yic-stat dd.is-positive, .yic-stat dd.is-up { color: rgb(var(--yic-green-rgb)); }
.yic-stat dd.is-negative { color: rgb(var(--yic-red-rgb)); }
.yic-stat dd.is-neutral { color: var(--yic-muted); }
.yic-stat__sub { font-size: 0.62rem; color: var(--yic-faint); font-weight: 700; }

/* ======================================================== field and switch
   <div class="yic-field"><label class="yic-field__label" for="email">Email</label>
     <div class="yic-field__box"><input class="yic-input" id="email"></div></div>
   .yic-input is the sign-in field (panel fill, 12px radius, gold focus ring).
   .yic-input--line is the underline field on the join steps. */
.yic-field { margin-bottom: 17px; }
.yic-field__label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--yic-muted); margin-bottom: 8px; }
.yic-field__box { position: relative; }
.yic-input { width: 100%; background: var(--yic-panel, #0f1014); border: 1px solid var(--yic-line); border-radius: 12px; padding: 14px 16px; color: var(--yic-ink); font-family: inherit; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.yic-input:focus { outline: none; border-color: var(--yic-gold); box-shadow: 0 0 0 3px rgba(var(--yic-gold-rgb), 0.15); }
.yic-input::placeholder { color: #55565f; }
.yic-input--line { flex: 1; min-width: 0; background: transparent; border: none; border-bottom: 2px solid rgba(255, 255, 255, 0.2); border-radius: 0; padding: 13px 6px; font-size: clamp(19px, 2vw, 24px); text-align: center; transition: border-color 0.25s; }
.yic-input--line:focus { border-bottom-color: var(--yic-gold); box-shadow: none; }
.yic-input--line::placeholder { color: #54565f; }
.yic-field__action { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--yic-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 8px 10px; text-transform: uppercase; cursor: pointer; transition: color 0.2s; }
.yic-field__action:hover { color: var(--yic-gold-bright); }
.yic-switch { display: inline-block; flex: none; height: 30px; position: relative; width: 50px; }
.yic-switch input { cursor: pointer; height: 100%; margin: 0; opacity: 0; position: absolute; width: 100%; z-index: 2; }
.yic-switch input:disabled { cursor: default; }
.yic-switch__track { background: rgba(255, 255, 255, 0.16); border-radius: 999px; inset: 0; position: absolute; transition: background 0.2s ease; }
.yic-switch__thumb { background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); height: 24px; left: 3px; position: absolute; top: 3px; transition: transform 0.2s ease; width: 24px; }
.yic-switch input:checked ~ .yic-switch__track { background: linear-gradient(180deg, #dcb43e 0%, #8a651b 100%); }
.yic-switch input:checked ~ .yic-switch__thumb { transform: translateX(20px); }
.yic-switch input:disabled ~ .yic-switch__track { opacity: 0.55; }

/* ================================================================= notice
   A message under a form. Hidden until .show is added (the pages already toggle that).
   .yic-notice--err red, .yic-notice--ok green */
.yic-notice { display: none; font-size: 13.5px; border-radius: 10px; padding: 11px 14px; margin-bottom: 16px; line-height: 1.45; }
.yic-notice.show { display: block; }
.yic-notice--err { background: rgba(229, 72, 77, 0.1); border: 1px solid rgba(229, 72, 77, 0.35); color: #ff9ba0; }
.yic-notice--ok { background: rgba(78, 215, 160, 0.1); border: 1px solid rgba(78, 215, 160, 0.3); color: #7fe9bf; }

/* ============================================ mark, spinner and shake (status pages)
   .yic-mark.ok | .wait | .no : the big round result mark (RSVP) */
.yic-spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--yic-line); border-top-color: var(--yic-gold); animation: yic-spin 0.8s linear infinite; }
.yic-mark { width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 28px; }
.yic-mark svg { width: 58px; height: 58px; }
.yic-mark.ok { background: rgba(47, 207, 112, 0.1); border: 2px solid rgba(47, 207, 112, 0.5); box-shadow: 0 0 44px rgba(47, 207, 112, 0.32); }
.yic-mark.wait { background: rgba(227, 178, 60, 0.08); border: 2px solid rgba(227, 178, 60, 0.45); box-shadow: 0 0 38px rgba(227, 178, 60, 0.22); }
.yic-mark.no { background: rgba(226, 79, 79, 0.08); border: 2px solid rgba(226, 79, 79, 0.4); }
@media (prefers-reduced-motion: no-preference) {
  .yic-mark { animation: yic-pop 0.42s var(--yic-ease-out); }
  .yic-mark.ok path { stroke-dasharray: 30; animation: yic-draw 0.5s 0.18s cubic-bezier(0.65, 0, 0.35, 1) backwards; }
}
/* the bare mark on the check-in page: just the drawn symbol, no ring, glow by filter */
.yic-mark--bare { width: 96px; height: 96px; margin-bottom: 30px; border-radius: 0; }
.yic-mark--bare svg { width: 100%; height: 100%; }
.yic-mark--bare.ok, .yic-mark--bare.wait, .yic-mark--bare.no, .yic-mark--bare.warn { background: none; border: 0; box-shadow: none; }
.yic-mark--bare.ok { filter: drop-shadow(0 0 26px rgba(47, 207, 112, 0.5)); }
.yic-mark--bare.warn { filter: drop-shadow(0 0 22px rgba(231, 179, 64, 0.4)); }
.yic-mark--bare.no { filter: drop-shadow(0 0 22px rgba(226, 79, 79, 0.35)); }
.yic-mark--bare.wait::after { content: ""; width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--yic-mark-ring, var(--yic-line)); border-top-color: var(--yic-green); animation: yic-spin 0.8s linear infinite; }
@keyframes yic-mark-in { from { transform: scale(0.82); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .yic-mark--bare { animation: none; }
  .yic-mark--bare.ok svg { animation: yic-mark-in 0.34s var(--yic-ease-out); }
  .yic-mark--bare.ok path { animation: none; }
}
.yic-shake { animation: yic-shake-x 0.5s; }

/* ============================================================= sheet (bottom)
   <div class="yic-sheet__wrap"><div class="yic-sheet"><div class="yic-sheet__grab"></div>
     <div class="yic-sheet__title">..</div><div class="yic-sheet__rows"><button class="yic-sheet__row">..</button></div>
     <button class="yic-sheet__cancel">Cancel</button></div></div>
   (SPA: member-mobile-sheetwrap / sheet / sheetgrab / sheet-title / sheet-row / sheet-cancel.
   --confirm centres the content; --tall caps the height and uses .yic-sheet__scroll.) */
.yic-sheet__wrap { position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(0, 0, 0, 0.58); }
@media (max-width: 899px), (orientation: portrait) { .yic-sheet__wrap { height: 100dvh; height: var(--member-app-height, 100dvh); } }
.yic-sheet { position: relative; z-index: 1; width: 100%; max-width: 480px; margin-inline: auto; background: #101216; border: 1px solid var(--yic-line-strong); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.7); will-change: transform; }
.yic-sheet--tall { display: flex; flex-direction: column; max-height: 76%; }
.yic-sheet--confirm { text-align: center; }
.yic-sheet--confirm .yic-sheet__title { margin-top: 8px; font-size: 1.24rem; }
.yic-sheet--confirm .yic-sheet__cancel { margin-top: 6px; }
.yic-sheet__grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); margin: 6px auto 12px; touch-action: none; }
.yic-sheet__title { touch-action: none; font-size: 1.12rem; font-weight: 850; letter-spacing: -0.01em; margin: 2px 2px 12px; }
.yic-sheet__rows { display: grid; }
.yic-sheet__confirm { display: grid; gap: 9px; }
.yic-sheet__row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--yic-line); background: none; color: var(--yic-ink); font: inherit; font-weight: 750; font-size: 0.98rem; text-align: left; cursor: pointer; }
.yic-sheet__row:last-child { border-bottom: 0; }
.yic-sheet__row:active { opacity: 0.6; }
.yic-sheet__row svg { width: 19px; height: 19px; color: var(--yic-muted); }
.yic-sheet__row--danger { color: rgb(var(--yic-red-rgb)); }
.yic-sheet__row--danger svg { color: rgb(var(--yic-red-rgb)); }
.yic-sheet__cancel { margin-top: 10px; width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--yic-line-strong); background: transparent; color: var(--yic-ink); font: inherit; font-weight: 800; cursor: pointer; }
.yic-sheet__cancel:active { opacity: 0.6; }
.yic-sheet__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; margin-top: 4px; }
.yic-sheet__scroll::-webkit-scrollbar { width: 0; height: 0; }
.yic-sheet__wrap svg { filter: var(--yic-icon-depth); }
@media (prefers-reduced-motion: no-preference) { .yic-sheet { animation: yic-sheet-rise 0.26s cubic-bezier(0.32, 0.72, 0.28, 1); } }

/* ============================================================ banner and state
   .yic-banner        a slim status bar (offline, back online). --dock pins it to the top of the
                      phone's scrolling screen; --ok is the green back-online tone. Markup:
                      <div class="yic-banner yic-banner--dock" role="status"><i class="yic-banner__dot"></i><span><b>You're offline.</b> Showing saved data</span></div>
   .yic-state         the centred empty / failed / offline block: icon, title, one line, up to two buttons.
                      <div class="yic-state"><span class="yic-state__icon">svg</span><h3 class="yic-state__title">..</h3><p class="yic-state__body">..</p><div class="yic-state__acts">buttons</div></div> */
.yic-banner { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 30px; padding: 6px 16px; background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.09); color: #aeb6bf; font: 700 12px/1.2 var(--yic-font); letter-spacing: 0.01em; }
.yic-banner b { color: var(--yic-ink); font-weight: 800; }
.yic-banner__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #e3b23c; }
.yic-banner--ok .yic-banner__dot { background: var(--yic-green); }
.yic-banner--dock { position: sticky; top: 0; z-index: 20; margin: -16px -16px 8px; background: #101216; }
.yic-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 64px 28px 24px; }
.yic-state__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; color: #e3b23c; }
.yic-state__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.yic-state__title { margin: 0; color: var(--yic-ink); font: 850 19px/1.2 var(--yic-font); }
.yic-state__body { margin: 0; max-width: 290px; color: var(--yic-muted); font: 500 14px/1.45 var(--yic-font); }
.yic-state__acts { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; max-width: 280px; margin-top: 18px; }

/* ======================================================= keyframes + reduced motion */
@keyframes yic-spin { to { transform: rotate(360deg); } }
@keyframes yic-sheen { to { transform: translateX(280%); } }
@keyframes yic-gold-shimmer { from { background-position: 200% 0; } to { background-position: 0% 0; } }
@keyframes yic-pop { from { transform: scale(0.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes yic-draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes yic-shake-x { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
@keyframes yic-sheet-rise { from { transform: translateY(14%); opacity: 0.4; } to { transform: none; opacity: 1; } }
/* In the App Store shell the gold shine plays once, then rests. */
html.native .yic-btn--gold { animation-iteration-count: 1; }
@media (prefers-reduced-motion: reduce) {
  .yic-btn, .yic-row, .yic-card, .yic-card--gold, .yic-seg__opt { transition: none; }
  .yic-row:active, .yic-card:active, .yic-card--gold:active, .yic-btn:active, .yic-seg__opt:active { transform: none; }
  .yic-btn--busy::after { animation-duration: 1.6s; }
  .yic-btn--gold { animation: none; background-position: 50% 0; }
  .yic-btn.yic-btn--face-gold { transition: filter 0.001s var(--yic-ease), transform 0.001s var(--yic-ease), box-shadow 0.001s var(--yic-ease); }
}
