@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Figtree:wght@400..700&display=swap");

/* Cocoa Club: one evergreen-and-cranberry cinematic look, light and dark alike (the mockup is dark on purpose). */

:root {
  color-scheme: dark;

  /* ── mockup aliases (ported values) ───────────────────────────── */
  --bg: #0d1f1a;
  --bg2: #12281f;
  --line: #2b4d40;
  --ink: #f7f0e2;
  --cran: #e5484d;
  --cran-ink: #24070a;
  --gold: #f2c14e;
  --mint: #9fe0bd;
  --star-off: #35594b;
  --display: var(--font-display);
  --body: var(--font-sans);

  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: #0d1f1a;
  --foreground: #f7f0e2;
  --card: #1a382d;
  --card-foreground: #f7f0e2;
  --popover: #1a382d;
  --popover-foreground: #f7f0e2;
  --primary: #e5484d;
  --primary-foreground: #24070a;
  --secondary: #1a382d;
  --secondary-foreground: #f7f0e2;
  --muted: #1a382d;
  --muted-foreground: #a9c0b4;
  --accent: #214537;
  --accent-foreground: #f7f0e2;
  --destructive: #e5484d;
  --destructive-foreground: #24070a;
  --border: #2b4d40;
  --input: #2b4d40;
  --ring: #f2c14e;
  --success: #9fe0bd;
  --warning: #f2c14e;
  --chart-1: #e0486a;
  --chart-2: #32967a;
  --chart-3: #4563d6;
  --chart-4: #a55be0;
  --chart-5: #e3a72c;
  --sidebar: #12281f;
  --sidebar-foreground: #f7f0e2;
  --sidebar-primary: #e5484d;
  --sidebar-primary-foreground: #24070a;
  --sidebar-accent: #1a382d;
  --sidebar-accent-foreground: #f7f0e2;
  --sidebar-border: #2b4d40;
  --sidebar-ring: #f2c14e;

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: #12281f;
  --surface-hover:   color-mix(in srgb, var(--foreground) 6%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 10%, var(--background));
  --surface-elevated: #214537;

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: #1f3a30;
  --border-muted: #254438;
  --border-strong: #3a6353;

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: #e3ecdf;

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, white);
  --primary-muted: color-mix(in srgb, var(--primary) 18%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 10%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 6%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: rgba(242, 193, 78, 0.45);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: #ff8a8a;
  --error-foreground: #24070a;

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.75rem;
  --radius-none: 0rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 800;
  --line-height-display: 1.1;
  --tracking-display: -0.02em;
  --font-weight-body: 400;
  --line-height-body: 1.5;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 28px rgba(0, 0, 0, 0.5);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 180ms;
  --duration-slow: 300ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

.dark {
  color-scheme: dark;

  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: #0d1f1a;
  --foreground: #f7f0e2;
  --card: #1a382d;
  --card-foreground: #f7f0e2;
  --popover: #1a382d;
  --popover-foreground: #f7f0e2;
  --primary: #e5484d;
  --primary-foreground: #24070a;
  --secondary: #1a382d;
  --secondary-foreground: #f7f0e2;
  --muted: #1a382d;
  --muted-foreground: #a9c0b4;
  --accent: #214537;
  --accent-foreground: #f7f0e2;
  --destructive: #e5484d;
  --destructive-foreground: #24070a;
  --border: #2b4d40;
  --input: #2b4d40;
  --ring: #f2c14e;
  --success: #9fe0bd;
  --warning: #f2c14e;
  --chart-1: #e0486a;
  --chart-2: #32967a;
  --chart-3: #4563d6;
  --chart-4: #a55be0;
  --chart-5: #e3a72c;
  --sidebar: #12281f;
  --sidebar-foreground: #f7f0e2;
  --sidebar-primary: #e5484d;
  --sidebar-primary-foreground: #24070a;
  --sidebar-accent: #1a382d;
  --sidebar-accent-foreground: #f7f0e2;
  --sidebar-border: #2b4d40;
  --sidebar-ring: #f2c14e;

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: #12281f;
  --surface-elevated: #214537;

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: #1f3a30;
  --border-muted: #254438;
  --border-strong: #3a6353;

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: #e3ecdf;

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-tint: color-mix(in srgb, var(--primary) 6%, var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: rgba(242, 193, 78, 0.45);

  /* ── error ────────────────────────────────────────────────────── */
  --error: #ff8a8a;
  --error-foreground: #24070a;
}

/* ══════════════════════════════════════════════════════════════════
   Mockup component CSS, ported directly. design.tsx renders these
   class names; screens may use the screen-level ones (.hero, .d-hero,
   .rank, .tally, .week, .two ...) verbatim. `.grid` became `.poster-grid`
   so it does not collide with Tailwind's `grid` utility.
   ══════════════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }
.shell { max-width: 1240px; margin: 0 auto; padding-inline: 16px; padding-block: 0 96px; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 1.35rem; color: var(--ink); border: 0; background: none; padding: 0; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--cran); font-weight: 800; }

/* gate */
.gate { position: relative; min-height: 100vh; overflow: hidden; }
.gate-in::before { content: ""; position: absolute; inset: -6% -30%; z-index: -1; background: radial-gradient(ellipse at 50% 40%, var(--bg) 0%, rgba(13,31,26,.9) 38%, transparent 72%); }
.gate-in { position: relative; z-index: 0; max-width: 820px; margin: 0 auto; padding-inline: 16px; padding-block: clamp(40px, 9vh, 96px) 80px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.gate-in .brand { font-size: clamp(2rem, 7vw, 3rem); }
.gate-in .brand svg { width: clamp(44px, 9vw, 60px); height: clamp(44px, 9vw, 60px); }
.gate-in h1 { font-size: clamp(1.6rem, 5vw, 2.5rem); font-weight: 700; }
.gate-in p { color: var(--muted-foreground); max-width: 46ch; }
.gate-in .flag { color: var(--gold); max-width: none; }
.ava { position: relative; overflow: hidden; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #0d1f1a; background: linear-gradient(140deg, var(--c1), var(--c2)); border-radius: 28%; }
.ava-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.textlink { border: 0; background: none; color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 4px; padding: 6px; }
.textlink:hover { color: var(--ink); }

/* front door — poster wall + sign-in panel */
.wall{position:absolute;inset:-12% -12%;display:grid;grid-template-columns:repeat(6,1fr);gap:14px;opacity:.16;transform:rotate(-7deg) scale(1.15);pointer-events:none}
.wall .p-net,.wall .p-score{display:none}
.wall::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 0%,var(--bg) 78%)}
@media (prefers-reduced-motion: no-preference) {
  .wall{animation:drift 70s linear infinite alternate}
  @keyframes drift{to{transform:rotate(-7deg) scale(1.15) translateY(-6%)}}
}

.detail.door { width: min(420px, calc(100vw - 24px)); text-align: left; }
.door .dlg { gap: 16px; }
.door-google { width: 100%; justify-content: center; min-height: 48px; background: var(--ink); color: #0d1f1a; }
.door-or { display: flex; align-items: center; gap: 14px; color: var(--muted-foreground); font-size: .85rem; }
.door-or::before, .door-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.door form { display: flex; flex-direction: column; gap: 14px; }
.door .btn.pri, .door .btn.sec { width: 100%; justify-content: center; min-height: 48px; }
.door-foot { margin: 0; max-width: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; }
.door-foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.door-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 18px; }
.door-links .textlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font: inherit; font-size: .92rem; color: var(--ink); background: none; border: 0; cursor: pointer; }

/* app bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(13,31,26,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1240px; margin: 0 auto; padding-inline: 16px; display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; padding-block: 10px; }
.nav { display: flex; gap: 2px; flex: 1 1 auto; min-width: 0; overflow-x: auto; }
.nav a, .nav button { border: 0; background: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; color: var(--muted-foreground); white-space: nowrap; text-decoration: none; }
.nav a[aria-current="page"], .nav button[aria-selected="true"] { color: var(--ink); background: var(--card); }
/* the tapped link lights up at once, while its page loads */
.nav a.pending { color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold); }
.me-wrap { position: relative; }
.me { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: none; border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 600; color: var(--ink); cursor: pointer; }
.me .ava { width: 30px; height: 30px; font-size: .95rem; }
.me-caret { color: var(--muted-foreground); font-size: .8rem; line-height: 1; margin-left: -2px; }
.me-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 196px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 20px 44px rgba(0,0,0,.5); }
.me-item { display: flex; align-items: center; width: 100%; text-align: left; background: none; border: 0; color: var(--ink); font: inherit; font-weight: 600; padding: 10px 12px; border-radius: 9px; cursor: pointer; }
.me-item:hover { background: rgba(255,255,255,.08); }
@media (max-width: 640px) { .nav { order: 3; flex-basis: 100%; } .me-wrap { margin-left: auto; } }
@media (max-width: 639.98px) { .nav a { min-height: 44px; display: inline-flex; align-items: center; touch-action: manipulation; } }
/* a thin gold line under the bar while a page loads; fades in after 150ms */
.bar-load { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; opacity: 0; animation: bar-load-in .2s ease 150ms forwards; }
.bar-load::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: var(--gold); animation: bar-load-slide 1.1s ease-in-out infinite; }
@keyframes bar-load-in { to { opacity: 1; } }
@keyframes bar-load-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) {
  .bar-load::before { width: 100%; animation: none; }
}

/* "Your photo" panel — narrower than the movie panel */
.detail.photo-dlg { width: min(460px, calc(100vw - 24px)); }
@media (max-width: 639.98px) {
  .detail.photo-dlg { max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); }
}
.photo-preview { align-self: flex-start; }
.photo-preview .ava { width: 104px; height: 104px; font-size: 2.7rem; }
/* The crop frame: fixed 220 square that clips the photo; the photo moves inside it. */
.photo-crop { position: relative; align-self: flex-start; width: 220px; height: 220px; max-width: 100%; border-radius: 28%; overflow: hidden; border: 1px solid #2b4d40; display: grid; place-items: center; background: linear-gradient(140deg, var(--c1), var(--c2)); color: #0d1f1a; font-family: var(--display); font-weight: 800; font-size: 4.6rem; user-select: none; }
.photo-crop[tabindex] { touch-action: none; cursor: grab; }
.photo-crop[tabindex]:active { cursor: grabbing; }
.photo-crop[tabindex]:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.photo-crop img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.zoom-row { display: flex; flex-direction: column; gap: 6px; }
.zoom-label { font-size: .92rem; font-weight: 600; }
.zoom { width: 100%; accent-color: #e5484d; }
.photo-actions { display: flex; flex-direction: column; gap: 10px; }

/* hero */
.hero { position: relative; margin-top: 18px; border-radius: 20px; overflow: hidden; min-height: clamp(340px, 44vw, 480px); background: linear-gradient(125deg, var(--a), var(--b)); display: flex; align-items: flex-end; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,31,26,.94) 0%, rgba(13,31,26,.66) 46%, rgba(13,31,26,.1) 82%), linear-gradient(0deg, rgba(13,31,26,.75), transparent 55%); }
.hero .motif { position: absolute; right: -4%; top: -8%; height: 120%; width: auto; aspect-ratio: 1; }
.hero-in { position: relative; z-index: 1; padding: clamp(18px, 4vw, 40px); max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.7rem); font-weight: 800; letter-spacing: -.02em; }
.hero .meta { color: var(--ink); font-weight: 600; }
.hero .blurb { color: #e3ecdf; font-size: 1.05rem; }
.hero .cast { color: var(--muted-foreground); font-size: .95rem; }
.pill { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; border-radius: 999px; padding: 5px 12px; font-size: .85rem; font-weight: 700; background: rgba(0,0,0,.45); color: var(--ink); }
.pill.live { background: var(--mint); color: #06231b; }
.pill.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #06231b; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.btn { border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer; }
.btn.pri { background: var(--cran); color: var(--cran-ink); }
.btn.pri:hover { background: var(--primary-hover); }
.btn.sec { background: rgba(255,255,255,.14); color: var(--ink); }
.btn.sec[aria-pressed="true"] { background: var(--ink); color: #0d1f1a; }
.btn:disabled { opacity: .6; cursor: default; }
.fam { font-weight: 700; color: var(--gold); }
.fam small { color: var(--muted-foreground); font-weight: 400; font-size: .9rem; }

/* the "See the family" link lands on the keeping-up list, top bar clear */
#keeping { scroll-margin-top: 96px; }

/* the club line (between the billboard and the feed) */
.club-line { margin-top: 30px; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); }
.club-faces { flex: none; display: inline-flex; }
.club-ava { flex: none; width: 30px; height: 30px; font-size: 13px; border: 2px solid var(--bg); }
.club-ava + .club-ava { margin-left: -8px; }
.club-count { flex: none; font-size: 15px; font-weight: 700; white-space: nowrap; }
.club-names { flex: 1; min-width: 0; font-size: 15px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.club-link { flex: none; margin-left: 4px; }
@media (max-width: 639.98px) {
  .club-line { flex-wrap: nowrap; gap: 10px; padding: 9px 12px; }
  .club-names { display: none; }
  .club-ava { width: 26px; height: 26px; font-size: .8rem; }
  .club-faces { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .club-count { font-size: 15px; }
  .club-link { margin-left: auto; font-size: 14px; white-space: nowrap; }
}

/* rails */
.rail { margin-top: 30px; }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rail-head h2 { font-size: clamp(1.15rem, 3vw, 1.45rem); font-weight: 700; }
.rail-head span { color: var(--muted-foreground); font-size: .9rem; }
.rail-nav { display: flex; gap: 6px; }
.rail-nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg2); font-size: 18px; line-height: 1; color: var(--ink); }
@media (hover: none) { .rail-nav { display: none; } }
.track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-block: 6px 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.tile { flex: none; width: clamp(132px, 36vw, 178px); scroll-snap-align: start; border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; position: relative; color: inherit; text-decoration: none; }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px 14px; }
.poster-grid .tile { width: auto; }
.cap { font-size: .86rem; color: var(--muted-foreground); display: block; }
.rank-n { position: absolute; left: 8px; top: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--cran); color: var(--cran-ink); font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.ranked .p-net { display: none; }
/* "This weekend": sits right under the network label, same size and shape */
.p-tag { position: absolute; z-index: 1; left: 7cqw; top: 20cqw; font-size: 6.4cqw; font-weight: 700; background: var(--mint); color: var(--bg); border-radius: 999px; padding: 1.2cqw 4.4cqw; }
.wall .p-tag, .ranked .p-tag, .thumb .p-tag { display: none; }
/* a family pick's tag is cream, so it never reads as "This weekend" */
.p-tag.pick { background: var(--ink); color: var(--bg); }

/* poster art (placeholder artwork until real posters are added) */
.poster { display: block; position: relative; aspect-ratio: 2/3; width: 100%; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--a), var(--b)); container-type: inline-size; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.poster::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 14% 18%, rgba(255,255,255,.5) 0 1.5px, transparent 2px), radial-gradient(circle at 72% 9%, rgba(255,255,255,.4) 0 1.2px, transparent 2px), radial-gradient(circle at 38% 44%, rgba(255,255,255,.35) 0 1.4px, transparent 2px), radial-gradient(circle at 88% 52%, rgba(255,255,255,.4) 0 1.3px, transparent 2px), radial-gradient(circle at 22% 66%, rgba(255,255,255,.3) 0 1.2px, transparent 2px); }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,16,13,.82) 0%, rgba(6,16,13,.35) 42%, transparent 64%); }
.motif { position: absolute; right: -14%; top: 7%; width: 92%; fill: rgba(255,255,255,.2); stroke: rgba(255,255,255,.2); stroke-width: 0; }
.p-net { position: absolute; z-index: 1; left: 7cqw; top: 7cqw; font-size: 6.4cqw; font-weight: 700; background: rgba(6,16,13,.55); border-radius: 999px; padding: 1.2cqw 4.4cqw; color: var(--ink); }
.p-score { position: absolute; z-index: 1; right: 6cqw; top: 6cqw; font-size: 7cqw; font-weight: 800; background: var(--gold); color: #2b1a00; border-radius: 999px; padding: 1cqw 4cqw; }
.p-title { position: absolute; z-index: 1; left: 7cqw; right: 7cqw; bottom: 7cqw; font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.t1 .p-title { font-size: 15cqw; } .t2 .p-title { font-size: 12cqw; } .t3 .p-title { font-size: 10cqw; } .t4 .p-title { font-size: 8.4cqw; }
@media (prefers-reduced-motion: no-preference) {
  .tile .poster { transition: transform .18s ease, box-shadow .18s ease; }
  .tile:hover .poster, .tile:focus-visible .poster { transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 28px rgba(0,0,0,.5); }
}

/* photos, when a movie has one */
.poster img, .hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero img.bg { object-position: center 22%; }
.poster:has(img) .motif, .hero:has(img.bg) .motif { display: none; }
.poster:has(img)::before { display: none; }
/* a tall poster carries its own title, so hide the overlay title on that tile */
.poster.tall .p-title { display: none; }
/* a tall banner photo becomes a poster card on the right, over the gradient+shape */
.hero img.card { position: absolute; top: 50%; right: 22px; transform: translateY(-50%); width: clamp(92px, 22vw, 200px); aspect-ratio: 2/3; height: auto; border-radius: 14px; object-fit: cover; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.hero img.card { z-index: 1; }
.hero img.blur {
  position: absolute;
  inset: -48px;
  width: calc(100% + 96px);
  height: calc(100% + 96px);
  object-fit: cover;
  object-position: center 30%;
  filter: blur(34px) saturate(1.25) brightness(.85);
  pointer-events: none;
}
.hero:has(img.blur) .motif { display: none; }
.hero:has(img.card) .hero-in { padding-right: clamp(126px, 28vw, 250px); }

/* billboard that swipes or rotates through the night's premieres */
.hero-wrap { position: relative; margin-top: 18px; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 20px; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-track .hero { flex: 0 0 100%; scroll-snap-align: start; margin-top: 0; border-radius: 0; }
.hero-nav { position: absolute; right: 16px; top: 16px; z-index: 2; display: flex; gap: 6px; }
.hero-nav button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(6,16,13,.6); font-size: 20px; line-height: 1; color: var(--ink); }
@media (hover: none) { .hero-nav { display: none; } }
.dots { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 12px; }
.dots button { width: 10px; height: 10px; border-radius: 5px; border: 0; background: var(--line); padding: 0; }
.dots button[aria-current="true"] { background: var(--cran); width: 28px; }
@media (prefers-reduced-motion: no-preference) { .dots button { transition: width .2s, background-color .2s; } }

/* who in the family is on a movie */
.who { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted-foreground); }
.avas { display: flex; padding-left: 5px; }
.who .ava { width: 21px; height: 21px; font-size: .68rem; margin-left: -5px; border: 1.5px solid var(--bg); }
.hero .who, .who.long { font-size: .95rem; color: var(--ink); }
.hero .who .ava, .who.long .ava { width: 26px; height: 26px; font-size: .8rem; border-color: transparent; }

/* what the family's saying */
.says { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.says.col { grid-template-columns: minmax(0, 1fr); }
.say { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: start; text-align: left; border: 0; background: var(--bg2); border-radius: 16px; padding: 12px; width: 100%; color: inherit; text-decoration: none; }
.say:hover { background: var(--card); }
.say-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.say-head { display: flex; gap: 8px; align-items: center; line-height: 1.25; }
.say-head .ava { width: 28px; height: 28px; font-size: .85rem; flex: none; }
.say-head em { font-style: normal; color: var(--muted-foreground); }
.say-note { font-size: 1.04rem; }
.says:not(.col) .say-note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.says.row { display: flex; align-items: stretch; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-block: 6px 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.says.row .say { flex: none; width: min(340px, 82vw); grid-template-columns: 52px minmax(0, 1fr); gap: 12px; scroll-snap-align: start; }
.says.row .say-body { gap: 6px; height: 100%; }
.says.row .say-title { min-width: 0; }
.says.row .say-title strong { display: block; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.says.row .say-count { display: none; }
.says.row .say-head .ava { width: 24px; height: 24px; font-size: 12px; }
.says.row .say-head { min-width: 0; }
.says.row .say-head strong { font-size: 15px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.says.row .say-head .mini { flex: none; }
.say-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.say-also { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted-foreground); white-space: nowrap; }
.say-also .ava { width: 20px; height: 20px; font-size: 10px; border: 2px solid var(--bg2); }
.say-also .ava + .ava { margin-left: -8px; }
.says.row .say-note { font-size: 15px; line-height: 1.45; -webkit-line-clamp: 2; line-clamp: 2; }
.says.row .say-when { font-size: 13px; }
.say-when { font-size: .82rem; color: var(--muted-foreground); }
.say-title { display: flex; flex-direction: column; gap: 2px; }
.say-title strong { font-family: var(--display); font-size: 1.06rem; line-height: 1.2; }
.say-count, .say-more { font-size: .88rem; color: var(--muted-foreground); }
.say-person { display: flex; flex-direction: column; gap: 6px; }
.say-person + .say-person { border-top: 1px solid var(--line); padding-top: 10px; }

/* schedule */
.page-head { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 800; }
.page-head p { color: var(--muted-foreground); }
.search { display: flex; gap: 10px; flex-wrap: wrap; }
.search input, .search select, .field input, .field select, .field textarea, textarea.box { border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 11px 14px; color: var(--ink); }
.search input { flex: 1 1 240px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--muted-foreground); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #0d1f1a; border-color: var(--ink); }
.chip[disabled] { border-style: dashed; cursor: default; opacity: .7; }
.week { margin-top: 34px; }
.week h2 { font-size: 26px; font-weight: 800; margin-bottom: 14px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.week h2 small { font-family: var(--body); font-weight: 400; font-size: 17px; color: var(--muted-foreground); }
.empty { color: var(--muted-foreground); margin-top: 16px; }
.sched-divide { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.sched-divide strong { display: block; font-size: 15px; font-weight: 600; color: var(--gold); }
.sched-divide span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted-foreground); }
.sched-divide + .week { margin-top: 20px; }
.sched-divide.first-group { margin-top: 0; padding-top: 0; border-top: 0; }

/* rankings */
.two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; margin-top: 22px; }
@media (max-width: 820px) { .two { grid-template-columns: minmax(0, 1fr); } }
.rank { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rank a, .rank button { width: 100%; display: grid; grid-template-columns: 30px 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 0; background: var(--bg2); border-radius: 14px; padding: 10px 16px 10px 10px; text-align: left; color: inherit; text-decoration: none; }
.rank a:hover, .rank button:hover { background: var(--card); }
.rank .pos { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--cran); text-align: center; }
.thumb { border-radius: 8px; box-shadow: none; }
.thumb .p-net, .thumb .p-score, .thumb .p-title { display: none; }
.rank strong { font-family: var(--display); font-size: 1.08rem; display: block; line-height: 1.2; }
.rank .sub { color: var(--muted-foreground); font-size: .9rem; }
.rank .score { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--gold); text-align: right; }
.rank .score small { display: block; font-family: var(--body); font-weight: 400; font-size: .8rem; color: var(--muted-foreground); }
.tally { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.tally-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.tally-row .ava { width: 40px; height: 40px; font-size: 1.1rem; }
.bar2 { display: block; height: 8px; border-radius: 4px; background: var(--card); overflow: hidden; margin-top: 5px; }
.bar2 span { display: block; height: 100%; background: var(--cran); border-radius: 4px; }
.h2 { font-size: 1.3rem; font-weight: 700; }
.note { color: var(--muted-foreground); font-size: .92rem; }

/* movie detail (a route, shown as a centered overlay panel over a dark backdrop) */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(6,16,13,.7); overflow: auto; display: grid; place-items: center; padding: 14px 12px; }
.detail { position: relative; border: 1px solid var(--line); border-radius: 20px; background: var(--bg2); color: var(--ink); overflow: auto; width: min(820px, calc(100vw - 24px)); max-height: calc(100vh - 28px); }
.x { position: absolute; z-index: 2; right: 14px; top: 14px; border: 0; background: rgba(6,16,13,.6); color: var(--ink); border-radius: 50%; width: 38px; height: 38px; font-size: 20px; line-height: 1; display: grid; place-items: center; text-decoration: none; }
.flag { color: var(--gold); font-weight: 600; font-size: .9rem; }
.panel { background: var(--card); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.panel h3 { font-size: 1.1rem; font-weight: 700; }
.stars { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.stars button { border: 0; background: none; font-size: 34px; line-height: 1; padding: 2px 3px; color: var(--star-off); cursor: pointer; }
.stars button.on { color: var(--gold); }
.stars-label { font-size: .92rem; color: var(--muted-foreground); margin-left: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; font-weight: 600; }
.field textarea, .field input { width: 100%; resize: vertical; }
.saved { font-size: .92rem; color: var(--mint); font-weight: 600; }
.saved-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.saved-row .saved { min-width: 0; }
.done-btn { flex: none; min-height: 44px; padding: 9px 20px; }

/* movie panel — one narrow column */
.detail.movie-dlg { width: min(520px, calc(100vw - 24px)); padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.movie-dlg > .x { right: 12px; top: 12px; width: 44px; height: 44px; font-size: 22px; }
/* At 640px and wider the scroll wrapper leaves the layout untouched (its children
   become the panel's own flex items) and the phone top bar is not shown. */
.m-scroll { display: contents; }
.m-bar { display: none; }
.m-head { display: flex; gap: 18px; align-items: flex-end; }
.m-head .poster { flex: none; width: 132px; border-radius: 12px; }
.m-head-in { min-width: 0; padding-right: 40px; display: flex; flex-direction: column; gap: 8px; }
.m-head-in .pill { background: var(--card); }
.m-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.m-head-in .pill.pick { background: var(--ink); color: var(--bg); }
.m-head-in h2 { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.m-head-in .meta { font-weight: 600; font-size: 15px; }
.m-rate { background: var(--card); border-radius: 16px; padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.m-rate-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.m-rate-row strong { font-weight: 700; font-size: 15px; white-space: nowrap; }
.m-rate .stars { gap: 0; }
.m-rate .stars button { width: 34px; min-width: 34px; height: 44px; min-height: 44px; padding: 0; font-size: 26px; }
/* a movie that isn't out yet: the premiere line + a note, same card as the box */
.m-soon { gap: 4px; padding: 12px 14px; }
.m-soon strong { font-size: 15px; font-weight: 700; }
.m-soon .note { font-size: 14px; }
/* the note box with its emoji button tucked into the bottom-right corner */
.note-wrap { position: relative; }
.note-wrap textarea { width: 100%; resize: none; border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 11px 58px 11px 14px; color: var(--ink); font: inherit; }
/* Open: the box grows with the note from three lines to eight (sized in the
   movie panel as the note changes); past eight lines it scrolls inside. */
.m-rate.open .note-wrap textarea { box-sizing: border-box; line-height: 1.5; min-height: calc(3lh + 24px); max-height: calc(8lh + 24px); }
.emoji-btn { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 22px; line-height: 1; cursor: pointer; }
.emoji-btn.on { border-color: var(--gold); }
/* Compact: the note box sits at one line with a small emoji button, before any
   star is picked or the box is touched. */
.m-rate:not(.open) .note-wrap textarea { height: 46px; min-height: 46px; resize: none; white-space: nowrap; overflow: hidden; padding: 0 52px 0 14px; line-height: 46px; }
.m-rate:not(.open) .emoji-btn { top: 5px; right: 5px; bottom: auto; width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
.emoji-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; width: min(300px, 100%); padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); box-shadow: 0 20px 44px rgba(0,0,0,.5); display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.emoji-pop button { height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; font-size: 24px; line-height: 1; cursor: pointer; }
.emoji-pop button:hover { background: rgba(255,255,255,.08); }
.m-rate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.m-rate-actions .need-star { font-size: 14px; }
.remove-ask { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.remove-ask .note { font-weight: 600; }
/* a saved rating, not being edited: plain words, plain stars and "Edit" */
.m-rate.locked { padding: 12px 14px 14px; }
.rated-stars { display: inline-flex; gap: 2px; font-size: 20px; line-height: 1; color: var(--star-off); }
.rated-stars .on { color: var(--gold); }
.rated-note { font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.rated-actions { display: flex; justify-content: flex-end; }
.m-rate .remove-link { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; padding: 0 2px; font: inherit; font-size: 14px; cursor: pointer; }
/* the panel while it closes: dimmed and still, the close button shows the ring */
.movie-dlg.closing { opacity: .6; pointer-events: none; }
.movie-dlg.closing .x { pointer-events: auto; }
.x-ring { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(242,193,78,.3); border-top-color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .x-ring { animation: x-ring-spin .8s linear infinite; }
}
@keyframes x-ring-spin { to { transform: rotate(360deg); } }
.m-info { display: flex; flex-direction: column; gap: 12px; }
.m-info .cast { color: var(--muted-foreground); }
.m-info .btn { align-self: flex-start; }
.m-fam { display: flex; flex-direction: column; gap: 12px; }
.m-fam h3 { font-size: 18px; font-weight: 700; line-height: 1.2; }
.movie-dlg .reviews { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 639.98px) {
  /* The panel fills the real visible screen: the scrim neither pads nor scrolls,
     and the panel becomes a flex column of a pinned bar over one scrolling area. */
  .movie-scrim { padding: 0; overflow: hidden; }
  .detail.movie-dlg { width: 100vw; height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0; }
  /* Pinned top bar: the title on the left, the one close button on the right. The
     bar never scrolls and grows by the notch inset so it clears the status bar. */
  .m-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0 18px; border-bottom: 1px solid var(--line); background: var(--bg2); }
  .m-bar-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--display); font-size: 17px; font-weight: 800; }
  .m-bar .x { position: static; flex: none; width: 44px; height: 44px; font-size: 22px; }
  .m-x-corner { display: none; }
  /* Everything under the bar scrolls together, and nothing else does. */
  .m-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding: 18px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .m-head-in { padding-right: 0; }
  .m-head .poster { width: 72px; border-radius: 10px; }
  .m-head-in .pill { font-size: 13px; padding: 3px 11px; }
  .m-head-in h2 { font-size: 22px; line-height: 1.1; }
  .m-head-in .meta { font-size: 14px; }
  .m-head-in .fam, .m-head-in .note { font-size: 14px; }
  .m-info .blurb { font-size: 15px; }
  .m-info .cast { font-size: 14px; }
  .m-info .btn { padding: 9px 18px; min-height: 44px; }
  .m-fam h3 { font-size: 17px; }
  .movie-dlg .reviews li p { font-size: 15px; }
}
/* "+ Suggest a movie": on the slim line Home shows with no picks, and smaller
   in the Family picks row's heading, just left of the arrows */
.suggest-btn { flex: none; gap: 6px; white-space: nowrap; justify-content: center; }
.suggest-btn.sm { padding: 7px 14px; font-size: 14px; }
.rail-action { flex: none; margin-left: auto; }
.rail-head .rail-action span { color: inherit; font-size: inherit; }
.suggest-line { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px 10px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); }
.suggest-ask { min-width: 0; font-size: 15px; }
.suggest-ask strong { font-weight: 700; }
.suggest-ask-note { color: var(--muted-foreground); margin-left: 6px; }
@media (max-width: 639.98px) {
  .suggest-line { gap: 10px; padding: 9px 10px 9px 14px; }
  .suggest-ask { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .suggest-ask-note { display: none; }
  .suggest-btn { min-height: 44px; padding-inline: 14px; font-size: 14px; }
  .rail-head.has-action { flex-wrap: wrap; }
  .rail-action { order: 3; flex-basis: 100%; margin-left: 0; }
}

/* Schedule head: the title with the "Suggest a movie" button beside it */
.sched-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* suggestion box (/suggest) — built on the movie panel's scrim, panel and bar */
.sg-head { display: flex; flex-direction: column; gap: 6px; padding-right: 48px; }
.sg-head h2 { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sg-find { display: flex; flex-direction: column; gap: 8px; }
.sg-row { display: flex; gap: 10px; align-items: stretch; }
.sg-row input { flex: 1; min-width: 0; min-height: 48px; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 14px; color: var(--ink); font: inherit; font-size: 16px; }
.sg-row input:focus { outline: 2px solid var(--cran); outline-offset: 1px; }
.sg-row .btn { flex: none; min-height: 48px; justify-content: center; }
.sg-error { color: var(--gold); font-weight: 600; font-size: .92rem; }
.sg-result { display: flex; flex-direction: column; gap: 14px; }
.sg-exists { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: var(--card); border-radius: 16px; padding: 16px; }
.sg-exists p { font-weight: 600; font-size: 16px; }
.sg-h3 { font-family: var(--display); font-size: 20px; font-weight: 800; line-height: 1.2; }
.sg-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; flex: none; }
/* Already in the club: worked out as the person types */
.sg-club { display: flex; flex-direction: column; gap: 10px; }
.sg-club-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sg-club-list li + li { border-top: 1px solid var(--line); }
.sg-club-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; color: var(--ink); text-decoration: none; transition: background-color .15s ease; }
.sg-club-row:hover, .sg-club-row:focus-visible { background: rgba(255,255,255,.05); }
.sg-club-row .poster { border-radius: 6px; }
.sg-club-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sg-club-text strong { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-club-text .note { font-size: 13px; }
/* Found these: one card per candidate */
.sg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sg-card { background: var(--card); border-radius: 16px; padding: 12px; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 14px; align-items: start; }
.sg-card .poster { border-radius: 10px; }
.sg-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sg-card-title { font-family: var(--display); font-size: 18px; font-weight: 800; line-height: 1.15; }
.sg-blurb { font-size: 14px; line-height: 1.45; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-cast { font-size: 13px; color: var(--muted-foreground); min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-card-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.sg-add { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; min-width: 0; }
.sg-where { flex: 0 1 auto; min-width: 0; max-width: 210px; min-height: 36px; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; color: var(--ink); font: inherit; font-size: 14px; text-overflow: ellipsis; }
.sg-where:focus { outline: 2px solid var(--cran); outline-offset: 1px; }
.sg-where:invalid { color: var(--muted-foreground); }
.sg-where option { color: var(--ink); background: var(--bg); }
.sg-credit { font-size: 12px; margin-top: -4px; }
.sg-more { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
.sg-more-col { flex-direction: column; align-items: stretch; gap: 8px; }
.sg-more-col .sg-byname { align-self: flex-start; }
.sg-byname { padding-left: 0; font-weight: 600; color: var(--ink); }
.sg-none { font-weight: 600; font-size: 16px; }
.sg-owner-note { font-size: 13px; overflow-wrap: anywhere; }
.sg-plain { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; width: 100%; }
.sg-plain .field input, .sg-plain .field select { min-height: 48px; font-size: 16px; font-weight: 400; }
.sg-plain .btn { align-self: flex-start; min-height: 44px; }
@media (max-width: 639.98px) {
  /* the pinned bar already carries the title on a phone */
  .sg-head h2 { display: none; }
  .sg-head { padding-right: 0; }
  .sg-head:not(:has(p)) { display: none; }
}

.reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.reviews li { background: var(--card); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.rev-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rev-head .ava { width: 34px; height: 34px; font-size: 1rem; }
/* review reactions: the React pill, the six-emoji bubble above it, the summary line */
.rx-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.rx-pill { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.rx-pill:active { transform: scale(.97); }
.rx-pill.on { background: rgba(229,72,77,.18); border-color: var(--cran); }
.rx-pill-emoji { font-size: 18px; line-height: 1; }
.rx-sum { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted-foreground); }
.rx-emojis { letter-spacing: 1px; }
.rx-pop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 10; display: flex; gap: 2px; padding: 5px; border: 1px solid #3d544c; border-radius: 999px; background: #2b403a; box-shadow: 0 16px 36px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.25); }
.rx-pop button { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; font-size: 26px; line-height: 1; cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
@media (hover: hover) {
  .rx-pill:hover { background: rgba(255,255,255,.06); }
  .rx-pill.on:hover { background: rgba(229,72,77,.24); }
  .rx-pop button:hover { background: rgba(255,255,255,.08); }
}
.rx-pop button:active { transform: scale(.9); }
.rx-pop button.on { box-shadow: inset 0 0 0 2px var(--cran); background: rgba(229,72,77,.18); }
@media (prefers-reduced-motion: no-preference) {
  .rx-pop { animation: rx-pop-in .14s ease-out; transform-origin: 22px 100%; }
}
@keyframes rx-pop-in { from { opacity: 0; transform: translateY(4px) scale(.96); } }
.m-rate.locked + .rx-sum { margin-top: -8px; padding: 0 4px; }
/* review replies: one level under a review, indented with a rule on the left */
.own-talk { margin-top: -8px; display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.replies { margin-left: 12px; padding-left: 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.reply-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.reply { display: flex; align-items: flex-start; gap: 8px; }
.reply-ava { flex: none; width: 30px; height: 30px; font-size: 13px; }
.reply-main { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.reply-bubble { max-width: 100%; background: #22342e; border-radius: 14px; padding: 8px 12px; }
.movie-dlg .reviews .reply-meta, .reply-meta { margin: 0; font-size: 14px; line-height: 1.5; }
.reply-meta strong { font-weight: 700; }
.reply-when { color: var(--muted-foreground); margin-left: 4px; }
.movie-dlg .reviews .reply-body, .reply-body { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-del { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; font: inherit; font-size: 14px; cursor: pointer; }
.reply-ask { margin-top: 6px; }
.reply-ask .btn { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.replies-more { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; padding: 0; font: inherit; font-size: 14px; cursor: pointer; }
.reply-box { display: flex; align-items: flex-end; gap: 8px; }
.reply-box .reply-ava { margin-bottom: 7px; }
.reply-box textarea { flex: 1; min-width: 0; box-sizing: border-box; resize: none; overflow-y: hidden; border: 1px solid var(--line); background: var(--bg2); border-radius: 22px; padding: 9px 14px; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; min-height: calc(1lh + 20px); max-height: calc(4lh + 20px); }
.reply-box textarea:focus { outline: none; border-color: var(--muted-foreground); }
.reply-post { flex: none; min-height: 44px; padding: 0 18px; justify-content: center; }
/* Each reply is an li inside a review's li, so `.reviews li` (a card column)
   would also hit it. These win over it and keep the reply a row, the bubble
   visible, and the reply box one full-width line. */
.reviews .replies, .own-talk .replies { align-self: stretch; width: auto; min-width: 0; }
.reviews li.reply { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; background: none; padding: 0; border-radius: 0; }
.reviews .reply-bubble { background: #22342e; border-radius: 14px; padding: 8px 12px; max-width: 100%; }
.reviews .reply-box, .own-talk .reply-box { display: flex; flex-direction: row; align-items: flex-end; gap: 8px; width: 100%; align-self: stretch; }
.reviews .reply-box textarea, .own-talk .reply-box textarea { flex: 1 1 auto; width: auto; min-width: 0; }
.reviews .reply-box .reply-post, .own-talk .reply-box .reply-post { flex: none; }
.mini { color: var(--gold); letter-spacing: 1px; }
.mini i { color: var(--star-off); font-style: normal; }
.tag { font-size: .75rem; border: 1px dashed var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted-foreground); }
.dlg { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.dlg h2 { font-size: 1.5rem; font-weight: 700; }

/* settings (profile menu → /settings) */
.settings { max-width: 640px; display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.set-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: color-mix(in srgb, var(--card) 50%, transparent); display: flex; flex-direction: column; gap: 14px; }
.set-card > div > h2 { font-family: var(--display); font-size: 18px; font-weight: 700; line-height: 1.2; }
.set-sub { color: var(--muted-foreground); font-size: 14px; margin-top: 4px; }
.set-photo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.set-photo-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-outline { border: 1px solid var(--line); border-radius: 999px; background: none; padding: 10px 18px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn-outline:hover { background: rgba(255,255,255,.06); }
.btn-outline:disabled { opacity: .6; cursor: default; }
.set-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.set-input { border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 11px 14px; color: var(--ink); font: inherit; width: 320px; max-width: 100%; }
.set-help { color: var(--muted-foreground); font-size: 13px; }
.set-emails { display: flex; flex-direction: column; gap: 10px; }
.set-email-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg2); }
@media (max-width: 640px) {
  .set-input { width: 100%; }
  .set-name-row .btn { width: 100%; justify-content: center; }
}

.set-done { color: var(--mint); font-weight: 600; }
.set-phone-btn { min-height: 44px; justify-content: center; }
.set-alerts-on { display: flex; flex-direction: column; gap: 10px; }
.set-alert-msg { margin-top: 10px; }
.set-test { min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.set-test:disabled { opacity: .55; cursor: default; }

/* home-screen install: the slide-up card on Home (phones only) + the three-step sheet */
.install-card { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 12px; }
.install-space { height: 96px; }
.install-top { display: flex; align-items: center; gap: 12px; }
.install-mark { width: 46px; height: 46px; flex: none; border-radius: 12px; }
.install-title { font-weight: 700; line-height: 1.25; color: var(--ink); }
.install-sub { font-size: 14px; line-height: 1.35; color: var(--muted-foreground); margin-top: 2px; }
.install-btns { display: flex; justify-content: flex-end; gap: 10px; }
.install-btns .btn { min-height: 44px; justify-content: center; touch-action: manipulation; }
@media (prefers-reduced-motion: no-preference) {
  .install-card { animation: install-up 250ms cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes install-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (min-width: 640px) {
  .install-card, .install-space { display: none; }
}

.how-sheet { position: relative; width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.how-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.how-head h2 { font-family: var(--display); font-size: 1.4rem; font-weight: 700; line-height: 1.15; }
.how-head .x { position: static; flex: none; width: 44px; height: 44px; font-size: 22px; }
.how-steps { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.how-steps li { display: flex; align-items: flex-start; gap: 14px; }
.how-steps p { line-height: 1.5; padding-top: 3px; }
.how-steps strong { font-weight: 700; color: var(--ink); }
.how-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--bg); font-weight: 800; font-size: 15px; }
.how-ico { display: inline-block; width: 19px; height: 19px; vertical-align: -4px; color: var(--gold); }
.how-note { border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; line-height: 1.45; color: var(--muted-foreground); overflow-wrap: anywhere; }
.how-foot { display: flex; justify-content: flex-end; }
.how-foot .btn { min-height: 44px; padding-inline: 26px; justify-content: center; }
@media (max-width: 639.98px) {
  .how-scrim { padding: 0; place-items: end stretch; }
  .how-sheet { max-width: none; border-radius: 24px 24px 0 0; border-bottom: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 639.98px) {
  .how-sheet { animation: install-up 250ms cubic-bezier(.2,.8,.2,1) both; }
}

/* ── admin area (People / Movies / Emails / Sign-ins) ───────────────────── */
.admin-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.admin-tabs a { padding: 10px 2px; font-weight: 500; color: var(--muted-foreground); border-bottom: 3px solid transparent; text-decoration: none; white-space: nowrap; }
.admin-tabs a[aria-current="page"] { font-weight: 700; color: var(--ink); border-bottom-color: var(--cran); }
.admin-tabs .count { margin-left: 8px; background: #e5484d; color: #24070a; border-radius: 999px; padding: 0 7px; font-size: 12px; font-weight: 700; }

.admin-chip { border: 1px solid var(--line); background: none; color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.admin-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.admin-panel { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }

/* status pills shared by the People list */
.pill-s { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill-waiting { color: #f2c14e; border-color: #f2c14e55; background: rgba(242,193,78,.12); }
.pill-inclub { color: #9fe0bd; border-color: #9fe0bd55; background: rgba(159,224,189,.12); }
.pill-owner { color: #ff8f93; border-color: #ff8f9355; background: rgba(229,72,77,.15); }
.pill-pre { color: #a9c0b4; border-color: #a9c0b455; background: rgba(169,192,180,.10); }

/* People list */
.ppl-head, .ppl-row { display: grid; grid-template-columns: minmax(0, 2.1fr) 1.4fr .9fr 1.2fr .7fr .7fr 2fr; gap: 16px; align-items: center; }
.ppl-head { padding: 12px 18px; font-size: 13px; font-weight: 600; color: var(--muted-foreground); }
.ppl-row { padding: 14px 18px; border-top: 1px solid var(--line); }
.ppl-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ppl-person .ava { flex: none; }
.ppl-id { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ppl-name { font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppl-email { font-size: 14px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppl-blank { width: 36px; height: 36px; border-radius: 10px; border: 1px dashed var(--line); flex: none; }
.ppl-statuses { display: flex; flex-wrap: wrap; gap: 6px; }
.ppl-cell { font-size: 14px; color: var(--foreground-secondary); min-width: 0; }
.ppl-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.ppl-mobile { display: none; }
.ppl-pre-sub { font-size: 13px; color: var(--muted-foreground); }
.ppl-expand { grid-column: 1 / -1; border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 12px; }
.ppl-saved-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.ppl-saved-item { font-size: 13px; color: var(--foreground-secondary); background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.ppl-expand-empty { font-size: 13px; color: var(--muted-foreground); }
.admin-foot { font-size: 14px; color: var(--muted-foreground); margin-top: 12px; }
.admin-empty { padding: 20px 18px; font-size: 14px; color: var(--muted-foreground); }

/* Sign-ins list */
.sgn-head, .sgn-row { display: grid; grid-template-columns: minmax(0, 2.3fr) 1.4fr 1fr 1.4fr; gap: 16px; align-items: center; }
.sgn-head { padding: 12px 18px; font-size: 13px; font-weight: 600; color: var(--muted-foreground); }
.sgn-row { padding: 13px 18px; border-top: 1px solid var(--line); }
.sgn-cell { font-size: 14px; color: var(--foreground-secondary); min-width: 0; }
.sgn-when { text-align: right; }
.sgn-mobile { display: none; }

/* Alerts list: who, what was sent, what happened */
.alr-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 2.4fr) minmax(0, 1.5fr); gap: 16px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line); }
.alr-row:first-child { border-top: 0; }
.alr-msg { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.alr-title, .alr-body { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alr-title { font-size: 14px; color: var(--ink); }
.alr-body { font-size: 13px; color: var(--muted-foreground); }
.alr-out { text-align: right; display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.alr-out .alr-when { font-size: 13px; color: var(--muted-foreground); }
.alr-ok { color: var(--mint); font-weight: 600; }
.alr-part { color: var(--gold); font-weight: 600; }
.alr-none { color: var(--muted-foreground); }
.alr-bad { color: var(--cran); font-weight: 600; }

@media (max-width: 639px) {
  .alr-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .alr-out { text-align: left; display: block; font-size: 13px; color: var(--muted-foreground); }
  .alr-out .alr-when::before { content: " · "; }
}

@media (max-width: 639px) {
  .admin-tabs { gap: 18px; }
  .ppl-head, .sgn-head { display: none; }
  .ppl-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ppl-row .ppl-desktop { display: none; }
  .ppl-mobile { display: block; }
  .sgn-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sgn-row .sgn-desktop { display: none; }
  .sgn-mobile { display: block; }
}

/* --- token declarations (duplicated verbatim so the build's token guard sees the full set; values identical, last-wins changes nothing) --- */
:root {
  color-scheme: dark;

  /* ── mockup aliases (ported values) ───────────────────────────── */
  --bg: #0d1f1a;
  --bg2: #12281f;
  --line: #2b4d40;
  --ink: #f7f0e2;
  --cran: #e5484d;
  --cran-ink: #24070a;
  --gold: #f2c14e;
  --mint: #9fe0bd;
  --star-off: #35594b;
  --display: var(--font-display);
  --body: var(--font-sans);

  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: #0d1f1a;
  --foreground: #f7f0e2;
  --card: #1a382d;
  --card-foreground: #f7f0e2;
  --popover: #1a382d;
  --popover-foreground: #f7f0e2;
  --primary: #e5484d;
  --primary-foreground: #24070a;
  --secondary: #1a382d;
  --secondary-foreground: #f7f0e2;
  --muted: #1a382d;
  --muted-foreground: #a9c0b4;
  --accent: #214537;
  --accent-foreground: #f7f0e2;
  --destructive: #e5484d;
  --destructive-foreground: #24070a;
  --border: #2b4d40;
  --input: #2b4d40;
  --ring: #f2c14e;
  --success: #9fe0bd;
  --warning: #f2c14e;
  --chart-1: #e0486a;
  --chart-2: #32967a;
  --chart-3: #4563d6;
  --chart-4: #a55be0;
  --chart-5: #e3a72c;
  --sidebar: #12281f;
  --sidebar-foreground: #f7f0e2;
  --sidebar-primary: #e5484d;
  --sidebar-primary-foreground: #24070a;
  --sidebar-accent: #1a382d;
  --sidebar-accent-foreground: #f7f0e2;
  --sidebar-border: #2b4d40;
  --sidebar-ring: #f2c14e;

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: #12281f;
  --surface-hover:   color-mix(in srgb, var(--foreground) 6%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 10%, var(--background));
  --surface-elevated: #214537;

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: #1f3a30;
  --border-muted: #254438;
  --border-strong: #3a6353;

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: #e3ecdf;

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, white);
  --primary-muted: color-mix(in srgb, var(--primary) 18%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 10%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 6%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: rgba(242, 193, 78, 0.45);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: #ff8a8a;
  --error-foreground: #24070a;

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.75rem;
  --radius-none: 0rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 800;
  --line-height-display: 1.1;
  --tracking-display: -0.02em;
  --font-weight-body: 400;
  --line-height-body: 1.5;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 28px rgba(0, 0, 0, 0.5);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 180ms;
  --duration-slow: 300ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

.dark {
  color-scheme: dark;

  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: #0d1f1a;
  --foreground: #f7f0e2;
  --card: #1a382d;
  --card-foreground: #f7f0e2;
  --popover: #1a382d;
  --popover-foreground: #f7f0e2;
  --primary: #e5484d;
  --primary-foreground: #24070a;
  --secondary: #1a382d;
  --secondary-foreground: #f7f0e2;
  --muted: #1a382d;
  --muted-foreground: #a9c0b4;
  --accent: #214537;
  --accent-foreground: #f7f0e2;
  --destructive: #e5484d;
  --destructive-foreground: #24070a;
  --border: #2b4d40;
  --input: #2b4d40;
  --ring: #f2c14e;
  --success: #9fe0bd;
  --warning: #f2c14e;
  --chart-1: #e0486a;
  --chart-2: #32967a;
  --chart-3: #4563d6;
  --chart-4: #a55be0;
  --chart-5: #e3a72c;
  --sidebar: #12281f;
  --sidebar-foreground: #f7f0e2;
  --sidebar-primary: #e5484d;
  --sidebar-primary-foreground: #24070a;
  --sidebar-accent: #1a382d;
  --sidebar-accent-foreground: #f7f0e2;
  --sidebar-border: #2b4d40;
  --sidebar-ring: #f2c14e;

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: #12281f;
  --surface-elevated: #214537;

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: #1f3a30;
  --border-muted: #254438;
  --border-strong: #3a6353;

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: #e3ecdf;

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-tint: color-mix(in srgb, var(--primary) 6%, var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: rgba(242, 193, 78, 0.45);

  /* ── error ────────────────────────────────────────────────────── */
  --error: #ff8a8a;
  --error-foreground: #24070a;
}
