/*
 * Copied unchanged from /Users/beacon/Herd/testprixs/design/css/smith.css
 * Copy date: 2026-09-28
 *
 * The body below this header comment is byte-identical to the source file.
 * It is re-synced deliberately by recopying the whole file (with a fresh
 * header) whenever the design changes -- it is NEVER hand-edited in place.
 * (D-114; tests/Feature/Design/DesignAssetsParityTest.php enforces this.)
 *
 * Served from public/css/ (not resources/css/, as D-114 first suggested)
 * because this file's `url(../fonts/...)` rules only resolve correctly
 * when css/ and fonts/ are siblings under the same served root --
 * RESEARCH.md Pitfall 3, option (b). "Unchanged" (byte-identical body) is
 * the binding half of D-114; the serving location is this file's one
 * deliberate deviation from D-114's literal wording.
 */
/* SMITH — built by build.js from src/css. Do not edit. */
/* ==== 00-tokens.css ==== */
/* =====================================================================
   SMITH — design tokens ("Heritage Academy")
   Light/dark values live side by side via light-dark(); the theme is
   chosen by color-scheme (system, or html[data-theme] set by the toggle).
   ===================================================================== */
:root {
  color-scheme: light dark;

  /* brand palette (constant) */
  --navy: #19234F;
  --yellow: #F7C100;
  --blue: #007DB6;
  --teal: #77CBD5;
  --slate: #495966;
  --stone: #EBE9E7;
  --orange: #E74B22;

  /* surfaces */
  --canvas:         light-dark(#F8F6F1, #0F1530);
  --surface:        light-dark(#FFFFFF, #161D3C);
  --surface-2:      light-dark(#F3F1EB, #1C2447);
  --surface-3:      light-dark(#EBE9E7, #253061);
  --surface-raised: light-dark(#FFFFFF, #1B2349);
  --stage:          #0F1533;           /* arena, presenter, video — always dark */
  --stage-2:        #18214A;
  --stage-line:     #2A3566;
  --stage-ink:      #EEF2F8;
  --stage-muted:    #9FB0CC;

  /* ink */
  --ink:    light-dark(#19234F, #F2F0EA);
  --ink-2:  light-dark(#2E3760, #D6D9E6);
  --muted:  light-dark(#495966, #A7B0C2);
  --faint:  light-dark(#7A8591, #7C87A3);

  /* lines */
  --line:        light-dark(#E2DED6, #2A3360);
  --line-strong: light-dark(#C8C2B7, #3A4478);

  /* gold (secondary brand colour) */
  --gold:      #F7C100;
  --on-gold:   #19234F;
  --gold-ink:  light-dark(#8A6500, #FFD84D);
  --gold-tint: light-dark(#FFF6D6, #3A3210);
  --gold-rule: light-dark(#C9A227, #B8962A);

  /* blue: links + info */
  --link:      light-dark(#007DB6, #5CB8E6);
  --link-tint: light-dark(#E6F3F9, #12324A);

  /* teal: success + progress */
  --teal-ink:  light-dark(#16808C, #77CBD5);
  --teal-tint: light-dark(#E4F5F7, #10353B);

  /* orange: danger, live, at-risk */
  --danger:      light-dark(#C23D17, #FF8A6A);
  --danger-fill: #E74B22;
  --danger-tint: light-dark(#FCE9E3, #3D1B12);

  --success: var(--teal-ink);
  --warning: var(--gold-ink);
  --info:    var(--link);
  --focus:   var(--link);

  --scrim: light-dark(rgba(15, 21, 48, .55), rgba(0, 0, 0, .65));
  --shadow-color: light-dark(rgba(25, 35, 79, .30), rgba(0, 0, 0, .7));
  --shadow-float: 0 22px 48px -22px var(--shadow-color), 0 2px 6px -2px light-dark(rgba(25,35,79,.08), rgba(0,0,0,.4));

  /* type */
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-display: clamp(40px, 24px + 3.2vw, 68px);
  --fs-h1: clamp(30px, 22px + 1.6vw, 42px);
  --fs-h2: clamp(24px, 18px + 1vw, 30px);
  --fs-h3: 20px;
  --fs-h4: 16px;
  --fs-body: 15px;
  --fs-sm: 13.5px;
  --fs-xs: 12.5px;
  --fs-label: 11.5px;
  --fs-stat: clamp(26px, 20px + 1.2vw, 34px);

  /* space (4px scale) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-7: 28px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;
  --sp-14: 56px; --sp-16: 64px; --sp-20: 80px;

  /* measures */
  --w-app: 1280px;
  --w-site: 1160px;
  --w-prose: 68ch;
  --sidebar: 264px;
  --topbar: 60px;

  /* radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* motion */
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

/* ==== 01-fonts.css ==== */
/* Vendored from Google Fonts (SIL Open Font License 1.1): Newsreader, Instrument Sans, IBM Plex Mono — latin subset. */
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/IBMPlexMono-normal-400.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/IBMPlexMono-normal-500.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/IBMPlexMono-normal-600.woff2) format('woff2')}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/InstrumentSans-normal-400-700.woff2) format('woff2')}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:400 600;font-display:swap;src:url(../fonts/Newsreader-italic-400-600.woff2) format('woff2')}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/Newsreader-normal-400-600.woff2) format('woff2')}

/* ==== 10-base.css ==== */
/* =====================================================================
   Base: reset, typography, focus, selection
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
svg.icon { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; max-width: none; vertical-align: -4px; }
.icon-xs { width: 14px !important; height: 14px !important; vertical-align: -2px !important; }
.icon-sm { width: 16px !important; height: 16px !important; vertical-align: -3px !important; }
.icon-lg { width: 28px !important; height: 28px !important; }
.icon-xl { width: 40px !important; height: 40px !important; }

h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -.012em;
}
h1 { font-size: var(--fs-h1); line-height: 1.08; }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 550; }
h4 { font-family: var(--font-sans); font-size: var(--fs-h4); font-weight: 650; line-height: 1.3; letter-spacing: -.005em; }
h5 { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 650; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-block-start: .8em; }
em, i { font-style: italic; }
.serif em, h1 em, h2 em, h3 em, .display em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
b, strong { font-weight: 650; color: var(--ink); }
small { font-size: var(--fs-xs); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
hr { border: 0; border-block-start: 1px solid var(--line); margin: var(--sp-6) 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
kbd {
  font-family: var(--font-mono); font-size: 11px; line-height: 1;
  padding: 3px 6px; border: 1px solid var(--line); border-block-end-width: 2px;
  border-radius: var(--r-xs); color: var(--muted); background: var(--surface);
}
code, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }
[hidden] { display: none !important; }

.display {
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  font-weight: 450;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ink);
}
.lede { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* eyebrow / label: the ledger voice */
.eyebrow, .label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.gold, .label.gold { color: var(--gold-ink); }

/* ornaments */
.rule { height: 1px; border: 0; background: var(--gold-rule); margin: var(--sp-6) 0; opacity: .7; }
.rule-double {
  height: 5px; border: 0; margin: var(--sp-8) 0;
  border-block: 1px solid var(--ink);
  opacity: .9;
}
.sec-no {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.sec-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2) var(--sp-6); align-items: end; margin-block-end: var(--sp-6); }
.sec-h .sec-no { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-3); }
.sec-h .sec-no::after { content: ""; flex: 1; height: 1px; background: var(--gold-rule); opacity: .55; }
.sec-h h2 { max-width: 30ch; }
.sec-h p { grid-column: 1; color: var(--muted); max-width: 60ch; margin-block-start: var(--sp-1); }
.sec-h > .actions { grid-column: 2; grid-row: 2 / span 2; display: flex; gap: var(--sp-2); align-self: end; }
.dropcap::first-letter {
  float: inline-start; font-family: var(--font-serif); font-size: 3.4em; line-height: .82;
  padding-inline-end: .08em; margin-block-start: .06em; color: var(--ink);
}

.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; inset-inline-start: var(--sp-4); inset-block-start: -60px; z-index: 200; }
.skip-link:focus { inset-block-start: var(--sp-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ==== 20-layout.css ==== */
/* =====================================================================
   Layout shells: site, app (sidebar + topbar), player, auth, focus
   ===================================================================== */
.wrap { width: 100%; max-width: var(--w-site); margin-inline: auto; padding-inline: var(--sp-6); }
.stack > * + * { margin-block-start: var(--sp-4); }
.row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-8); align-items: start; }
.split.wide-aside { grid-template-columns: minmax(0, 1fr) 380px; }
.split.left-aside { grid-template-columns: 320px minmax(0, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.wide-aside, .split.left-aside { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .wrap { padding-inline: var(--sp-4); }
}

/* ---------------------------------------------------------------- site */
.masthead-strip {
  border-block-end: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.masthead-strip .wrap { display: flex; justify-content: space-between; gap: var(--sp-4); padding-block: 7px; }
.masthead-strip span:nth-child(2) { color: var(--gold-ink); }
@media (max-width: 720px) { .masthead-strip span:not(:first-child) { display: none; } }

.site-h {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(12px);
  border-block-end: 1px solid var(--line);
}
.site-h .wrap { display: flex; align-items: center; gap: var(--sp-8); height: 68px; }
.site-nav { display: flex; gap: var(--sp-1); }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 14.5px;
  padding: 8px 12px; border-radius: var(--r-sm); position: relative;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 12px; inset-block-end: -15px; height: 2px; background: var(--gold);
}
.site-h .acts { margin-inline-start: auto; display: flex; align-items: center; gap: var(--sp-2); }
@media (max-width: 860px) { .site-nav { display: none; } }
@media (max-width: 480px) { .site-h .acts .btn-secondary, .site-h #themeBtn { display: none; } .site-h .wrap { gap: var(--sp-3); } }

.site-main { min-height: 60vh; }
.site-f { margin-block-start: var(--sp-20); background: var(--surface); border-block-start: 1px solid var(--line); }
.site-f .top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--sp-8); padding-block: var(--sp-14) var(--sp-10); }
.site-f .tagline { font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--ink); margin-block-start: var(--sp-4); max-width: 22ch; line-height: 1.3; }
.site-f h5 { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-block-end: var(--sp-3); }
.site-f ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.site-f ul a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.site-f ul a:hover { color: var(--link); }
.site-f .legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  border-block-start: 1px solid var(--line); padding-block: var(--sp-5);
  font-size: var(--fs-xs); color: var(--muted);
}
.site-f .legal .mono { letter-spacing: .06em; }
@media (max-width: 900px) { .site-f .top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-f .top > :first-child { grid-column: 1 / -1; } }

/* ----------------------------------------------------------------- brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand-icon { height: 40px; width: auto; }
.brand-word { height: 19px; width: auto; }
.brand .brand-sub {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  border-inline-start: 1px solid var(--line); padding-inline-start: 10px; line-height: 1.25; max-width: 11ch;
}
@media (max-width: 1100px) { .brand .brand-sub { display: none; } }
:root[data-theme="dark"] .brand-icon { background: #fff; border-radius: 9px; padding: 2px; }
:root[data-theme="dark"] .brand-word { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-icon { background: #fff; border-radius: 9px; padding: 2px; }
  :root:not([data-theme="light"]) .brand-word { filter: brightness(0) invert(1); }
}

/* ------------------------------------------------------------------- app */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; inset-block-start: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  background: var(--surface); border-inline-end: 1px solid var(--line);
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  scrollbar-width: thin;
}
.sidebar .brand { padding: 4px var(--sp-2) var(--sp-4); border-block-end: 1px solid var(--line); margin-block-end: var(--sp-2); }
.sidebar .brand-icon { height: 36px; }
.sidebar .brand-word { height: 17px; }
.nav-group { margin-block-start: var(--sp-4); }
.nav-label {
  display: flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-ink); padding: 0 var(--sp-3) var(--sp-2);
}
.nav-link {
  position: relative; display: flex; align-items: center; gap: var(--sp-3);
  padding: 7px var(--sp-3); border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 520;
  transition: background var(--dur-1), color var(--dur-1);
}
.nav-link .icon { width: 18px; height: 18px; color: var(--muted); }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link[aria-current="page"] { background: var(--surface-2); color: var(--ink); font-weight: 620; }
.nav-link[aria-current="page"] .icon { color: var(--ink); }
.nav-link[aria-current="page"]::before {
  content: ""; position: absolute; inset-inline-start: calc(-1 * var(--sp-3)); inset-block: 7px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--gold);
}
.nav-link .count {
  margin-inline-start: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  background: var(--gold-tint); color: var(--gold-ink); padding: 1px 7px; border-radius: var(--r-pill);
}
.nav-link .badge-live { margin-inline-start: auto; }
.side-foot { margin-block-start: auto; padding-block-start: var(--sp-4); display: grid; gap: var(--sp-3); }
.goal-card {
  border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-3) var(--sp-4);
  background: var(--surface-2); font-size: var(--fs-xs); color: var(--muted);
}
.goal-card .row { justify-content: space-between; margin-block-end: var(--sp-2); }
.goal-card b { font-size: 13px; }
.goal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-block: var(--sp-2); }
.goal-days span {
  height: 22px; border-radius: 5px; background: var(--surface-3); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
}
.goal-days span.on { background: var(--navy); color: var(--gold); }
:root[data-theme="dark"] .goal-days span.on { background: var(--gold); color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .goal-days span.on { background: var(--gold); color: var(--navy); } }

.role-switch { position: relative; }
.role-switch > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 13px; color: var(--ink-2);
}
.role-switch > summary::-webkit-details-marker { display: none; }
.role-switch > summary .label { font-size: 10px; letter-spacing: .14em; }
.role-switch > summary b { display: block; font-size: 13.5px; }
.role-switch > summary .icon:last-child { margin-inline-start: auto; color: var(--muted); }
.role-switch .menu-pop { inset-block-end: calc(100% + 6px); inset-block-start: auto; inset-inline: 0; width: auto; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; inset-block-start: 0; z-index: 40; height: var(--topbar);
  display: flex; align-items: center; gap: var(--sp-3); padding-inline: var(--sp-8);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(12px);
  border-block-end: 1px solid var(--line);
}
.topbar .crumbs { min-width: 0; }
.cmdk-trigger {
  display: flex; align-items: center; gap: var(--sp-2); min-width: 0;
  width: min(380px, 40vw); height: 38px; padding-inline: var(--sp-3);
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  color: var(--muted); font-size: 13.5px; text-align: start;
}
.cmdk-trigger:hover { border-color: var(--line-strong); }
.cmdk-trigger span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: var(--sp-2); }
.streak-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding-inline: 10px 12px;
  border-radius: var(--r-pill); background: var(--gold-tint); color: var(--gold-ink);
  font-family: var(--font-mono); font-weight: 600; font-size: 13px; text-decoration: none;
}
.page { width: 100%; max-width: var(--w-app); padding: var(--sp-8) var(--sp-8) var(--sp-16); }
.page-foot {
  margin-block-start: auto; padding: var(--sp-5) var(--sp-8); border-block-start: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2);
  font-size: var(--fs-xs); color: var(--muted);
}
.page-foot .mono { letter-spacing: .08em; }
.menu-btn { display: none !important; }
.nav-scrim { display: none; }

/* page header inside the app */
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; margin-block-end: var(--sp-8); }
.page-h .eyebrow { display: block; margin-block-end: var(--sp-2); }
.page-h p { color: var(--muted); margin-block-start: var(--sp-2); max-width: 64ch; }
.page-h .actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

@media (max-width: 1024px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; inset-block: 0; inset-inline-start: 0; width: 288px; z-index: 90;
    transform: translateX(-100%); transition: transform var(--dur-3) var(--ease);
  }
  .shell.nav-open .sidebar { transform: none; box-shadow: var(--shadow-float); }
  .shell.nav-open .nav-scrim { display: block; position: fixed; inset: 0; background: var(--scrim); z-index: 80; }
  .menu-btn { display: inline-grid !important; }
  .topbar { padding-inline: var(--sp-4); }
  .page { padding: var(--sp-6) var(--sp-4) var(--sp-12); }
  .page-foot { padding-inline: var(--sp-4); }
}
@media (max-width: 640px) {
  .cmdk-trigger { width: 38px; padding: 0; justify-content: center; }
  .cmdk-trigger span, .cmdk-trigger kbd { display: none; }
  .streak-chip { display: none; }
}

/* ---------------------------------------------------------------- auth + focus */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-form { display: flex; flex-direction: column; padding: var(--sp-8) var(--sp-8); }
.auth-form .inner { margin: auto; width: 100%; max-width: 400px; padding-block: var(--sp-10); }
.auth-form h1 { margin-block: var(--sp-8) var(--sp-2); }
.auth-form .sub { color: var(--muted); }
.auth-foot { font-size: var(--fs-xs); color: var(--muted); display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.auth-art {
  position: relative; overflow: hidden;
  background: var(--stone); color: var(--navy);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-8);
  padding: var(--sp-12);
  border-inline-start: 1px solid var(--line);
}
.auth-art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(25, 35, 79, .06) 31px 32px);
}
.auth-art > * { position: relative; }
.auth-art .eyebrow { color: #495966; }
.auth-art img { width: min(380px, 78%); margin-inline: auto; }
.auth-art blockquote { margin: 0; font-family: var(--font-serif); font-size: 22px; line-height: 1.35; color: #19234F; max-width: 34ch; }
.auth-art cite { display: block; margin-block-start: var(--sp-3); font-style: normal; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #495966; }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { display: none; } }

.focus-shell { min-height: 100vh; display: flex; flex-direction: column; }
.focus-h { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-5) var(--sp-8); border-block-end: 1px solid var(--line); }
.focus-main { flex: 1; display: grid; place-items: start center; padding: var(--sp-12) var(--sp-4); }
.focus-card { width: 100%; max-width: 460px; }
@media (max-width: 560px) { .auth-form { padding: var(--sp-6) var(--sp-4); } }

/* ==== 30-components.css ==== */
/* =====================================================================
   Components
   ===================================================================== */

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  height: 40px; padding-inline: 16px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: transparent; color: var(--ink);
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: -.003em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1), transform var(--dur-1);
}
.btn .icon { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-key { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn-key:hover { background: #FFCD1F; }
.btn-primary { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--canvas)); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--surface); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); color: var(--danger); }
.btn-danger:hover { background: var(--danger-fill); border-color: var(--danger-fill); color: #fff; }
.btn-danger.solid { background: var(--danger-fill); border-color: var(--danger-fill); color: #fff; }
.btn-link { height: auto; padding: 0; color: var(--link); font-weight: 600; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-sm { height: 32px; padding-inline: 12px; font-size: 13px; }
.btn-lg { height: 48px; padding-inline: 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--r-sm); color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); }
.btn-icon:hover { border-color: var(--line-strong); color: var(--ink); }
.btn-icon.plain { border-color: transparent; background: transparent; }
.btn-icon.plain:hover { background: var(--surface-2); }
.btn.is-loading { color: transparent !important; position: relative; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--on-gold) transparent var(--on-gold) transparent; animation: spin .8s linear infinite;
}
.btn .dot-badge, .btn-icon .dot-badge {
  position: absolute; inset-block-start: 7px; inset-inline-end: 8px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger-fill); box-shadow: 0 0 0 2px var(--surface);
}
.btn-icon { position: relative; }

/* --------------------------------------------------------------- fields */
.field { display: grid; gap: 6px; }
.field + .field { margin-block-start: var(--sp-4); }
.field > label, .field > .label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.field .error { font-size: var(--fs-xs); color: var(--danger); display: flex; gap: 6px; align-items: center; }
.field.has-error .input { border-color: var(--danger); }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 9px 12px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: 14.5px; transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line-strong)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px var(--link-tint); }
.input[disabled], .select[disabled] { background: var(--surface-2); color: var(--muted); }
.select {
  appearance: none; padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23495966' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-start-end-radius: 0; border-end-end-radius: 0; }
.input-group .addon {
  display: grid; place-items: center; padding-inline: 12px; border: 1px solid var(--line-strong); border-inline-start: 0;
  border-start-end-radius: var(--r-sm); border-end-end-radius: var(--r-sm); background: var(--surface-2);
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
}
.input-group .addon.pre { border-inline-start: 1px solid var(--line-strong); border-inline-end: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .addon.pre + .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

.search {
  display: flex; align-items: center; gap: var(--sp-2); height: 44px; padding-inline: var(--sp-3);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--muted);
}
.search:focus-within { border-color: var(--link); box-shadow: 0 0 0 3px var(--link-tint); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink); font-size: 14.5px; }

.check, .radio { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input, .radio input { accent-color: var(--navy); width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 auto; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-strong); position: relative; cursor: pointer; margin: 0; transition: background var(--dur-2); }
.switch input::after { content: ""; position: absolute; inset-block-start: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform var(--dur-2) var(--ease); }
.switch input:checked { background: var(--navy); border-color: var(--navy); }
.switch input:checked::after { transform: translateX(16px); background: var(--gold); }

.segmented { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface-2); }
.segmented button, .segmented label {
  border: 0; background: transparent; padding: 6px 14px; border-radius: 6px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px;
}
.segmented .on, .segmented [aria-pressed="true"], .segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(25, 35, 79, .12); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }

.otp { display: flex; gap: var(--sp-2); }
.otp input {
  width: min(52px, 12vw); height: 60px; min-width: 0; text-align: center; font-family: var(--font-mono); font-size: 26px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
}
.otp input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--gold); }

.file-drop {
  display: grid; place-items: center; gap: var(--sp-2); text-align: center; padding: var(--sp-8) var(--sp-4);
  border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--surface-2); color: var(--muted); font-size: var(--fs-sm);
}
.file-drop .icon { color: var(--ink); width: 26px; height: 26px; }

input[type="range"] { width: 100%; accent-color: var(--navy); }

/* ---------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card-b { padding: var(--sp-6); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-6); border-block-end: 1px solid var(--line); }
.card-h h3, .card-h h4 { margin: 0; }
.card-h .btn-link, .card-h a { font-size: 13px; }
.card-f { padding: var(--sp-4) var(--sp-6); border-block-start: 1px solid var(--line); display: flex; justify-content: flex-end; gap: var(--sp-2); }
.card-editorial { position: relative; padding: var(--sp-6); border-block-start: 2px solid var(--gold); }
.card-editorial .sec-no { display: block; margin-block-end: var(--sp-3); }
.card.hover { transition: border-color var(--dur-2), transform var(--dur-2) var(--ease); }
.card.hover:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card.tint { background: var(--surface-2); }

/* --------------------------------------------------------------- ledger */
.ledger-wrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger thead th {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); text-align: start; padding: 10px var(--sp-4) 9px; white-space: nowrap;
  border-block-start: 1.5px solid var(--ink); border-block-end: 1px solid var(--gold-rule);
}
.ledger tbody td { padding: 13px var(--sp-4); border-block-end: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
.ledger tbody tr:last-child td { border-block-end: 0; }
.ledger tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.ledger tbody tr.clickable { cursor: pointer; }
.ledger .num, .ledger th.num { text-align: end; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ledger .no { width: 1%; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.ledger tfoot td { padding: 12px var(--sp-4); border-block-start: 3px double var(--ink); font-weight: 650; color: var(--ink); }
.ledger td .sub { display: block; font-size: var(--fs-xs); color: var(--muted); margin-block-start: 2px; }
.ledger td b { color: var(--ink); font-weight: 620; }
.ledger .actions { text-align: end; white-space: nowrap; }
.ledger.compact tbody td { padding-block: 9px; }
.card > .ledger thead th:first-child, .card > .ledger-wrap .ledger thead th:first-child, .card .ledger td:first-child { padding-inline-start: var(--sp-6); }
.card > .ledger th:last-child, .card > .ledger-wrap .ledger th:last-child, .card .ledger td:last-child { padding-inline-end: var(--sp-6); }
.card > .ledger thead th, .card > .ledger-wrap .ledger thead th { border-block-start: 0; }

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding-inline: 8px;
  border-radius: var(--r-xs); font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--surface-3); color: var(--ink-2); white-space: nowrap;
}
.badge .icon { width: 12px; height: 12px; }
.badge-info { background: var(--link-tint); color: var(--link); }
.badge-success { background: var(--teal-tint); color: var(--teal-ink); }
.badge-warning, .badge-gold { background: var(--gold-tint); color: var(--gold-ink); }
.badge-danger { background: var(--danger-tint); color: var(--danger); }
.badge-navy { background: var(--navy); color: #fff; }
.badge-outline { background: transparent; border: 1px solid var(--line-strong); }
.badge-live { background: var(--danger-fill); color: #fff; }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding-inline: 12px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13px; font-weight: 550; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip.on, .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .chip.on { background: var(--gold); border-color: var(--gold); color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.on { background: var(--gold); border-color: var(--gold); color: var(--navy); } }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ------------------------------------------------------------------ tabs */
.tabs { display: flex; gap: var(--sp-6); border-block-end: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button {
  position: relative; padding: 10px 0 12px; border: 0; background: none; color: var(--muted);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center;
}
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs .on, .tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--ink); }
.tabs .on::after, .tabs [aria-selected="true"]::after, .tabs [aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: -1px; height: 2px; background: var(--gold);
}
.tabs .count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------------ crumbs etc */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--line-strong); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.pager { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 13px; }
.pager a, .pager span { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; }
.pager a:hover { background: var(--surface-2); }
.pager [aria-current] { background: var(--navy); color: #fff; }

.stepper { display: flex; align-items: center; gap: var(--sp-3); font-size: 13px; color: var(--muted); }
.stepper .step { display: flex; align-items: center; gap: var(--sp-2); }
.stepper .step b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.stepper .step.done b { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.stepper .step.now b { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.stepper .step.now { color: var(--ink); font-weight: 600; }
.stepper .line { flex: 1; min-width: 24px; height: 1px; background: var(--line-strong); }

/* ---------------------------------------------------------------- avatar */
.avatar {
  --av: 34px;
  display: inline-grid; place-items: center; width: var(--av); height: var(--av); flex: 0 0 auto;
  border-radius: 50%; background: var(--av-bg, linear-gradient(135deg, #19234F, #007DB6)); color: #fff;
  font-family: var(--font-sans); font-size: calc(var(--av) * .36); font-weight: 650; letter-spacing: .02em;
}
.avatar.sm { --av: 26px; }
.avatar.lg { --av: 48px; }
.avatar.xl { --av: 72px; }
.avatar.me { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--gold); }
.avatar.a1 { --av-bg: linear-gradient(135deg, #E74B22, #B8391A); }
.avatar.a2 { --av-bg: linear-gradient(135deg, #007DB6, #0A5E8C); }
.avatar.a3 { --av-bg: linear-gradient(135deg, #19234F, #2C3D7A); }
.avatar.a4 { --av-bg: linear-gradient(135deg, #495966, #2F3B45); }
.avatar.a5 { --av-bg: linear-gradient(135deg, #16808C, #0E5F68); }
.avatar.a6 { --av-bg: linear-gradient(135deg, #B08400, #8A6500); }
.avatars { display: flex; }
.avatars .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatars .avatar + .avatar { margin-inline-start: -5px; }

.who { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.who b { display: block; font-size: 14px; color: var(--ink); font-weight: 620; }
.who small { display: block; color: var(--muted); font-size: 12.5px; }

/* ----------------------------------------------------------- dropdowns */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop {
  position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 8px); z-index: 60;
  width: 260px; padding: 6px; border-radius: var(--r); background: var(--surface-raised);
  border: 1px solid var(--line); box-shadow: var(--shadow-float);
  animation: rise var(--dur-2) var(--ease);
}
.menu-pop.wide { width: 340px; }
.menu-head { padding: 10px 10px 12px; border-block-end: 1px solid var(--line); margin-block-end: 6px; }
.menu-head b { display: block; color: var(--ink); }
.menu-head small { color: var(--muted); }
.menu-pop a, .menu-pop button.mi {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-size: 14px; border: 0; background: none; text-align: start;
}
.menu-pop a:hover, .menu-pop button.mi:hover { background: var(--surface-2); color: var(--ink); }
.menu-pop a .icon { color: var(--muted); width: 17px; height: 17px; }
.menu-pop a[aria-current] { font-weight: 650; color: var(--ink); }
.menu-pop a[aria-current]::after { content: ""; margin-inline-start: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 0; }
.notif { display: grid !important; grid-template-columns: 32px 1fr; gap: 10px; align-items: start !important; }
.notif .ic { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface-2); color: var(--ink); }
.notif small { display: block; color: var(--muted); font-size: 12.5px; }
.notif .when { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

/* ---------------------------------------------------------------- modals */
.modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: var(--sp-5); }
.modal.on { display: flex; }
.modal .scrim { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(2px); }
.sheet {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-float);
  animation: rise var(--dur-3) var(--ease);
}
.modal-sm .sheet { width: min(480px, 100%); }
.sheet-h {
  position: sticky; inset-block-start: 0; z-index: 2; display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6); background: var(--surface-raised); border-block-end: 1px solid var(--line);
}
.sheet-h h3 { flex: 1; font-size: 20px; }
.sheet-h .sheet-ic { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--gold-tint); color: var(--gold-ink); }
.sheet-b { padding: var(--sp-6); }
.sheet-f { display: flex; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-4) var(--sp-6); border-block-start: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.xbtn { width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); }
.xbtn:hover { color: var(--ink); border-color: var(--line-strong); }
.pane { display: none; }
.pane.on { display: block; animation: rise var(--dur-2) var(--ease); }

.slide-over { position: fixed; inset: 0; z-index: 110; display: none; }
.slide-over.on { display: block; }
.slide-over .scrim { position: absolute; inset: 0; background: var(--scrim); }
.slide-over .panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(480px, 100%); overflow: auto;
  background: var(--surface-raised); border-inline-start: 1px solid var(--line); box-shadow: var(--shadow-float);
  animation: slidein var(--dur-3) var(--ease);
}
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- toasts */
.toast-stack { position: fixed; inset-block-end: var(--sp-6); inset-inline-end: var(--sp-6); z-index: 150; display: grid; gap: var(--sp-2); }
.toast {
  display: flex; align-items: center; gap: var(--sp-3); min-width: 280px; max-width: 420px;
  padding: 12px 14px; border-radius: var(--r); background: var(--navy); color: #fff; box-shadow: var(--shadow-float);
  font-size: 14px; animation: rise var(--dur-3) var(--ease);
}
.toast .icon { color: var(--teal); }
.toast.-danger .icon { color: #FF8A6A; }
.toast .toast-action { margin-inline-start: auto; background: none; border: 0; color: var(--gold); font-weight: 650; font-size: 13.5px; }

/* --------------------------------------------------------------- banners */
.banner {
  display: flex; align-items: flex-start; gap: var(--sp-3); padding: 14px var(--sp-4);
  border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--ink-2);
}
.banner > .icon { margin-block-start: 1px; }
.banner b { color: var(--ink); }
.banner .banner-body { flex: 1; min-width: 0; }
.banner .banner-body p { color: var(--muted); font-size: var(--fs-sm); margin-block-start: 2px; }
.banner .banner-action { margin-inline-start: auto; align-self: center; }
.banner.-warning { background: var(--gold-tint); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.banner.-warning > .icon { color: var(--gold-ink); }
.banner.-danger { background: var(--danger-tint); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.banner.-danger > .icon { color: var(--danger); }
.banner.-info { background: var(--link-tint); border-color: color-mix(in srgb, var(--link) 25%, transparent); }
.banner.-info > .icon { color: var(--link); }
.banner.-success { background: var(--teal-tint); border-color: color-mix(in srgb, var(--teal-ink) 25%, transparent); }
.banner.-success > .icon { color: var(--teal-ink); }
@media (max-width: 640px) { .banner { flex-wrap: wrap; } .banner .banner-action { margin-inline-start: 32px; } }

/* ----------------------------------------------------------------- empty */
.empty { display: grid; justify-items: center; text-align: center; gap: var(--sp-3); padding: var(--sp-12) var(--sp-6); }
.empty .ring-ic { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold-rule); display: grid; place-items: center; color: var(--ink); }
.empty h3 { font-size: 22px; }
.empty p { color: var(--muted); max-width: 42ch; }

/* ------------------------------------------------------ progress + stats */
.bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.bar.thick { height: 10px; }
.bar.gold > i { background: var(--gold); }
.bar.warn > i { background: linear-gradient(90deg, #D9A800, var(--gold)); }
.bar.weak > i { background: linear-gradient(90deg, #C23D17, var(--orange)); }
.bar.navy > i { background: var(--navy); }

.stat-tile { padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: grid; gap: 6px; align-content: start; }
.stat-tile .label { font-size: 10.5px; }
.stat-tile .stat { font-family: var(--font-mono); font-size: var(--fs-stat); font-weight: 500; color: var(--ink); line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-tile .stat small { font-size: 15px; color: var(--muted); letter-spacing: 0; margin-inline-start: 4px; }
.stat-tile .delta { font-size: var(--fs-xs); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; color: var(--teal-ink); }
.stat-tile .delta.down { color: var(--danger); }
.stat-tile .spark { height: 28px; width: 100%; margin-block-start: 4px; }
.stat-tile .spark path { fill: none; stroke: var(--link); stroke-width: 1.6; }
.stat-tile .spark .area { fill: var(--link-tint); stroke: none; }
.money-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.money-pair > div { padding: var(--sp-5); }
.money-pair > div + div { border-inline-start: 1px dashed var(--line-strong); }

.ring { transform: rotate(-90deg); }
.ring .trk { fill: none; stroke: var(--surface-3); }
.ring .val { fill: none; stroke: var(--teal-ink); stroke-linecap: round; transition: stroke-dashoffset var(--dur-3) var(--ease); }

/* ----------------------------------------------------------------- rating */
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rating .stars { display: inline-flex; gap: 1px; color: var(--gold); }
.rating .stars .icon { width: 13px; height: 13px; fill: currentColor; }
.rating b { font-family: var(--font-mono); color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- tooltip */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; inset-block-end: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 500; padding: 6px 9px; border-radius: 6px; white-space: nowrap; z-index: 70; pointer-events: none;
  font-family: var(--font-sans); letter-spacing: 0; text-transform: none;
}

/* --------------------------------------------------------------- skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* -------------------------------------------------------------- timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-3); padding-block-end: var(--sp-5); }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 11px; inset-block: 22px 0; width: 1px; background: var(--line-strong); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); }
.timeline .dot .icon { width: 12px; height: 12px; }
.timeline .dot.good { background: var(--teal-tint); border-color: var(--teal-ink); color: var(--teal-ink); }
.timeline .dot.bad { background: var(--danger-tint); border-color: var(--danger); color: var(--danger); }
.timeline .dot.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.timeline .when { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.timeline p { font-size: var(--fs-sm); color: var(--muted); margin-block-start: 2px; }

/* --------------------------------------------------------- command palette */
.cmdk { align-items: flex-start; padding-block-start: 12vh; }
.cmdk .sheet { width: min(620px, 100%); }
.cmdk-input { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-block-end: 1px solid var(--line); }
.cmdk-input input { flex: 1; border: 0; background: none; outline: none; font-size: 17px; color: var(--ink); }
.cmdk-input .icon { color: var(--muted); }
.cmdk-list { max-height: 420px; overflow: auto; padding: var(--sp-2); }
.cmdk-group { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); padding: var(--sp-3) var(--sp-3) var(--sp-1); }
.cmdk-item { display: flex; align-items: center; gap: var(--sp-3); padding: 9px var(--sp-3); border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.cmdk-item .icon { color: var(--muted); }
.cmdk-item small { margin-inline-start: auto; color: var(--faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; }
.cmdk-item[aria-selected="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 3px 0 0 var(--gold); }
.cmdk-foot { display: flex; gap: var(--sp-4); padding: var(--sp-3) var(--sp-5); border-block-start: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cmdk-empty { padding: var(--sp-8); text-align: center; color: var(--muted); }

/* --------------------------------------------------------- demo states */
.demo-states {
  position: fixed; inset-block-end: var(--sp-4); inset-inline-start: 50%; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: var(--r-pill);
  background: var(--navy); color: #C9D3E6; box-shadow: var(--shadow-float); font-size: 12px; max-width: calc(100vw - 24px); overflow-x: auto;
}
.demo-states .label { color: var(--gold); font-size: 10px; margin-inline-end: 6px; white-space: nowrap; }
.demo-states a { color: #C9D3E6; text-decoration: none; padding: 5px 10px; border-radius: var(--r-pill); white-space: nowrap; font-weight: 550; }
.demo-states a:hover { color: #fff; }
.demo-states a[aria-current] { background: var(--gold); color: var(--navy); }
.demo-states button { background: none; border: 0; color: #9FB0CC; padding: 4px 6px; display: grid; }
@media print { .demo-states { display: none; } }
.ring .val[stroke-dasharray^="0 "] { display: none; }
/* choice controls inside a .field keep their sentence-case label */
.field > label.radio, .field > label.check, .field > label.switch { font-family: var(--font-sans); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.timeline b { display: block; }
.timeline .when { display: block; margin-block-start: 2px; }
.otp input { flex: 1 1 0; max-width: 52px; }
@media (max-width: 560px) {
  .money-pair { grid-template-columns: minmax(0, 1fr); }
  .money-pair > div + div { border-inline-start: 0; border-block-start: 1px dashed var(--line-strong); }
}

/* ==== 40-patterns.css ==== */
/* =====================================================================
   Patterns shared by several screens
   ===================================================================== */

/* ---- engraved plates: course covers ----------------------------------
   A duotone ground, fine engraving hatch, a gold inset frame and a large
   italic numeral — the "bookplate" that replaces stock photography. */
.plate {
  --plate-a: #19234F; --plate-b: #2C3D7A; --plate-ink: #F4EFE3; --plate-frame: rgba(247, 193, 0, .55);
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 10; padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, var(--plate-a), var(--plate-b));
  color: var(--plate-ink);
}
.plate::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.055) 0 1px, transparent 1px 6px),
    radial-gradient(120% 90% at 100% 100%, rgba(255,255,255,.10), transparent 60%);
}
.plate::after {
  content: ""; position: absolute; inset: 9px; border: 1px solid var(--plate-frame); border-radius: 4px; pointer-events: none;
}
.plate-cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; position: relative; }
.plate-title { font-family: var(--font-serif); font-size: 21px; line-height: 1.12; max-width: 14ch; position: relative; }
.plate-numeral {
  position: absolute; inset-inline-end: 18px; inset-block-end: -.22em; z-index: -1;
  font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 132px; line-height: 1;
  color: rgba(255, 255, 255, .13); letter-spacing: -.03em;
}
.plate-live { position: absolute; inset-block-start: 16px; inset-inline-end: 18px; }
.plate-1 { --plate-a: #19234F; --plate-b: #2C3D7A; }
.plate-2 { --plate-a: #0A4F74; --plate-b: #007DB6; }
.plate-3 { --plate-a: #0E4F57; --plate-b: #16808C; }
.plate-4 { --plate-a: #2F3B45; --plate-b: #495966; }
.plate-5 { --plate-a: #E9B500; --plate-b: #F7C100; --plate-ink: #19234F; --plate-frame: rgba(25, 35, 79, .45); }
.plate-5::before { background: repeating-linear-gradient(135deg, rgba(25,35,79,.07) 0 1px, transparent 1px 6px); }
.plate-5 .plate-numeral { color: rgba(25, 35, 79, .12); }
.plate-6 { --plate-a: #8E2D12; --plate-b: #E74B22; }

/* ---- course card ---- */
.course-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2);
}
.course-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.course-card .plate { border-radius: 0; }
.cc-body { padding: var(--sp-5) var(--sp-5) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.cc-body h3 { font-size: 21px; }
.cc-outcome { font-size: 14px; color: var(--muted); }
.cc-outcome b { color: var(--ink); font-weight: 600; }
.cc-meta { margin-block-start: auto; padding-block-start: var(--sp-3); border-block-start: 1px solid var(--line); display: flex; align-items: center; gap: var(--sp-2); font-size: 13px; color: var(--muted); }
.cc-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.price { font-family: var(--font-mono); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.cc-meta .price { margin-inline-start: auto; font-size: 14px; }

/* ---- tick lists ---- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--teal-ink); margin-block-start: 2px; }

/* ---- key figures (ledger style) ---- */
.figures { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figures > div { padding: var(--sp-6) var(--sp-6) var(--sp-5); border-inline-start: 1px solid var(--line); }
.figures > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.figures dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.figures dd { margin: 6px 0 0; font-family: var(--font-serif); font-size: clamp(34px, 26px + 1.6vw, 48px); font-weight: 450; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.figures dd span { color: var(--gold-ink); font-style: italic; }
@media (max-width: 860px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figures > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } .figures > div { border-block-start: 1px solid var(--line); } }

/* ---- small text helpers used by JS ---- */
.t-good { color: var(--success); }
.t-bad { color: var(--danger); }
.t-p1 { color: var(--link); }
.t-p2 { color: var(--gold-ink); }
.is-flashed { color: var(--success) !important; }
.btn-key.is-flashed, .btn-primary.is-flashed { color: inherit !important; }

/* ---- time chips (notes, checks) ---- */
.time-chip {
  display: inline-flex; align-items: center; height: 24px; padding-inline: 8px; border-radius: var(--r-xs);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; cursor: pointer; flex: 0 0 auto;
}
.time-chip:hover { border-color: var(--gold); background: var(--gold-tint); }
.cc-meta { flex-wrap: wrap; row-gap: 4px; }
.plate:has(.plate-live) .plate-cat { max-width: calc(100% - 118px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==== 50-site.css ==== */
/* =====================================================================
   Public site: landing, course prospectus
   ===================================================================== */
.section { padding-block: var(--sp-20) 0; }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: var(--sp-16) var(--sp-12); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-end: -10%; width: 55%; height: 100%; pointer-events: none;
  background: radial-gradient(60% 55% at 60% 40%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--sp-16); align-items: center; position: relative; }
.hero-copy .sec-no { margin-block-end: var(--sp-5); display: block; }
.hero-copy .display em { color: var(--gold-ink); }
.hero-copy .lede { margin-block-start: var(--sp-6); font-size: 19px; }
.hero-search {
  margin-block-start: var(--sp-8); display: flex; align-items: center; gap: var(--sp-2);
  padding: 6px 6px 6px var(--sp-4); max-width: 560px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 16px 36px -28px var(--shadow-color);
}
.hero-search:focus-within { border-color: var(--link); box-shadow: 0 0 0 3px var(--link-tint); }
.hero-search > .icon { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 15.5px; color: var(--ink); height: 44px; }
.hero-proof { display: flex; align-items: center; gap: var(--sp-3); margin-block-start: var(--sp-6); font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.hero-proof b { color: var(--ink); }

/* the live-arena "plate" */
.plate-stage { margin: 0; position: relative; padding-block-end: var(--sp-8); }
.ps-frame {
  position: relative; padding: var(--sp-5); border-radius: var(--r-lg); color: var(--stage-ink);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 7px),
    radial-gradient(120% 110% at 90% 0%, #22306A, var(--stage) 62%);
  box-shadow: 0 40px 80px -42px rgba(15, 21, 51, .75), inset 0 0 0 1px rgba(247, 193, 0, .28);
}
.ps-frame::after { content: ""; position: absolute; inset: 7px; border-radius: 13px; border: 1px solid rgba(247, 193, 0, .16); pointer-events: none; }
.ps-top { display: flex; align-items: center; gap: var(--sp-3); font-size: 13px; }
.ps-course { font-weight: 600; }
.ps-count { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); color: var(--stage-muted); }
.ps-q { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--sp-4); align-items: center; margin-block: var(--sp-6) var(--sp-5); }
.ps-q .eyebrow { color: var(--stage-muted); grid-column: 1; }
.ps-q p { grid-column: 1; font-family: var(--font-serif); font-size: 24px; line-height: 1.2; color: #fff; }
.ps-ring { grid-column: 2; grid-row: 1 / span 2; width: 58px; height: 58px; }
.ps-answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ps-answers li {
  position: relative; display: flex; align-items: center; gap: var(--sp-3); padding: 11px 14px; overflow: hidden;
  border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--stage-line); font-size: 14px; font-weight: 550;
}
.ps-answers li i { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: rgba(255, 255, 255, .06); z-index: 0; }
.ps-answers li > * { position: relative; z-index: 1; }
.ps-answers li b { margin-inline-start: auto; font-family: var(--font-mono); font-weight: 600; color: var(--stage-muted); }
.ps-answers li.lead { border-color: rgba(247, 193, 0, .6); }
.ps-answers li.lead i { background: rgba(247, 193, 0, .16); }
.ps-answers li.lead b { color: var(--gold); }
.ps-foot { display: flex; justify-content: space-between; margin-block-start: var(--sp-5); padding-block-start: var(--sp-3); border-block-start: 1px solid var(--stage-line); font-size: 12px; color: var(--stage-muted); }
.ps-note {
  position: absolute; inset-inline-start: -28px; inset-block-end: 0; display: grid; gap: 2px;
  padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-float); font-size: 13px;
}
.ps-note b { font-family: var(--font-serif); font-size: 19px; font-weight: 500; color: var(--ink); }
.ps-note .muted { display: inline-flex; gap: 4px; align-items: center; color: var(--gold-ink); }
.ps-cap { margin-block-start: var(--sp-10); padding-inline-start: 190px; font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--muted); }

/* answer shapes (arena convention, drawn in CSS so they stay crisp) */
.shape { width: 14px; height: 14px; flex: 0 0 auto; background: var(--shape, currentColor); }
.s-tri { --shape: #E74B22; clip-path: polygon(50% 4%, 100% 96%, 0 96%); }
.s-dia { --shape: #5CB8E6; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.s-cir { --shape: #F7C100; border-radius: 50%; }
.s-sq  { --shape: #77CBD5; border-radius: 2px; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-12); }
  .plate-stage { padding-block-end: 0; }
  .ps-note { position: relative; inset: auto; margin: -22px 0 0 var(--sp-4); width: max-content; }
  .ps-cap { padding-inline-start: 0; margin-block-start: var(--sp-4); }
}
@media (max-width: 560px) { .ps-q p { font-size: 19px; } .hero-search .btn { padding-inline: 12px; } }

/* ---------------------------------------------------------- figures band */
.ledger-band { border-block: 1px solid var(--ink); background: var(--surface); position: relative; }
.ledger-band::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 3px; height: 1px; background: var(--ink); opacity: .9; }

/* --------------------------------------------------------------- triptych */
.triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.trip { position: relative; padding: var(--sp-8) var(--sp-8) var(--sp-8); display: grid; gap: var(--sp-3); align-content: start; }
.trip + .trip { border-inline-start: 1px solid var(--line); }
.trip-no { position: absolute; inset-block-start: var(--sp-6); inset-inline-end: var(--sp-8); font-family: var(--font-serif); font-style: italic; font-size: 44px; color: var(--gold-rule); line-height: 1; opacity: .8; }
.trip-ic { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold-rule); display: grid; place-items: center; color: var(--ink); margin-block-end: var(--sp-2); }
.trip h3 { font-size: 24px; }
.trip p { color: var(--muted); }
.trip .ticks { margin-block-start: var(--sp-3); padding-block-start: var(--sp-4); border-block-start: 1px dashed var(--line-strong); }
@media (max-width: 900px) { .triptych { grid-template-columns: minmax(0, 1fr); } .trip + .trip { border-inline-start: 0; border-block-start: 1px solid var(--line); } }

/* ----------------------------------------------------------------- quotes */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-12); padding-block: var(--sp-10); border-block: 1px solid var(--line); }
.quotes figure { margin: 0; position: relative; padding-inline-start: var(--sp-10); }
.quotes figure::before { content: "“"; position: absolute; inset-inline-start: 0; inset-block-start: -18px; font-family: var(--font-serif); font-size: 84px; line-height: 1; color: var(--gold-rule); }
.quotes blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(21px, 17px + .8vw, 27px); line-height: 1.3; color: var(--ink); font-style: italic; }
.quotes figcaption { margin-block-start: var(--sp-4); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.quotes figcaption em { font-family: var(--font-mono); font-style: normal; color: var(--ink-2); }
@media (max-width: 820px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ for business */
.biz {
  margin-block-start: var(--sp-20); padding-block: var(--sp-16); color: var(--stage-ink);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 1px, transparent 1px 7px),
    radial-gradient(90% 120% at 85% 0%, #22306A, var(--stage) 65%);
}
.biz-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--sp-12); align-items: center; }
.biz .sec-no { color: var(--gold); }
.biz h2 { color: #fff; margin-block-start: var(--sp-4); font-size: clamp(28px, 22px + 1.4vw, 40px); }
.biz h2 em { color: var(--gold); }
.biz-lede { color: var(--stage-muted); font-size: 17px; margin-block-start: var(--sp-4); max-width: 52ch; }
.btn-ghost.on-dark { color: #fff; }
.btn-ghost.on-dark:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.biz-card { padding: var(--sp-5); border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid var(--stage-line); }
.biz-card-h { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-block-end: var(--sp-3); }
.biz-card-h .eyebrow { color: var(--stage-muted); }
.ledger.on-dark thead th { color: var(--stage-muted); border-block-start-color: rgba(255,255,255,.7); border-block-end-color: rgba(247,193,0,.45); }
.ledger.on-dark tbody td { color: var(--stage-ink); border-block-end-color: var(--stage-line); }
.ledger.on-dark tbody tr:hover td { background: rgba(255, 255, 255, .03); }
.ledger.on-dark .warn { color: #FF8A6A; }
@media (max-width: 900px) { .biz-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ plans */
.plans-teaser { display: grid; gap: var(--sp-6); justify-items: start; }
.plans-teaser .grid-2 { width: 100%; }
.plan { padding: var(--sp-8); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: grid; gap: var(--sp-3); }
.plan.featured { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--gold); }
.plan .price { font-size: 40px; font-weight: 500; letter-spacing: -.03em; font-family: var(--font-mono); margin-block: var(--sp-2); }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 400; margin-inline-start: 6px; letter-spacing: 0; }
.plan .btn { margin-block-start: var(--sp-3); }

/* -------------------------------------------------------------------- cta */
.cta-band {
  margin-block-start: var(--sp-20); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-8); align-items: center;
  padding: var(--sp-10) var(--sp-12); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: inset 0 0 0 6px var(--canvas), inset 0 0 0 7px var(--gold-rule);
}
.cta-bust { width: 88px; height: auto; }
.cta-band h2 { font-size: clamp(26px, 20px + 1.4vw, 36px); }
.cta-band h2 em { color: var(--gold-ink); }
.cta-band p { margin-block-start: var(--sp-2); }
@media (max-width: 820px) { .cta-band { grid-template-columns: minmax(0, 1fr); padding: var(--sp-8); text-align: center; justify-items: center; } }

/* ============================================================ course page */
.c-hero { position: relative; padding-block: var(--sp-10) var(--sp-12); background: var(--surface); border-block-end: 1px solid var(--line); overflow: hidden; }
.c-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in srgb, var(--ink) 4%, transparent) 31px 32px);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.c-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--sp-12); align-items: start; }
.c-kicker { margin-block: var(--sp-6) var(--sp-3); }
.c-hero h1 { font-size: clamp(36px, 26px + 2.2vw, 56px); line-height: 1.02; font-weight: 450; max-width: 16ch; }
.c-abbr { font-style: italic; color: var(--gold-ink); }
.c-lede { font-size: 18.5px; color: var(--muted); margin-block-start: var(--sp-5); max-width: 54ch; }
.c-lede b { color: var(--ink); }
.c-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-block-start: var(--sp-6); font-size: 13.5px; color: var(--muted); }
.c-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.c-by { display: flex; align-items: center; gap: var(--sp-3); margin-block-start: var(--sp-6); padding-block-start: var(--sp-5); border-block-start: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.c-by a { color: var(--ink); font-weight: 600; text-decoration: none; }

.enrol {
  position: sticky; inset-block-start: 92px; z-index: 5;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 30px 60px -40px var(--shadow-color);
}
.enrol-plate { aspect-ratio: 16 / 9; }
.enrol-plate .plate-numeral { font-size: 110px; }
.plate-play {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--navy); box-shadow: 0 0 0 8px rgba(247, 193, 0, .22); transition: transform var(--dur-2) var(--ease);
}
.plate-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.plate-play .icon { width: 22px; height: 22px; fill: currentColor; margin-inline-start: 3px; }
.enrol-b { padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.price-lg { font-family: var(--font-mono); font-size: 34px; font-weight: 500; color: var(--ink); letter-spacing: -.03em; }
.enrol-note { font-size: 13px; color: var(--muted); margin-block: 6px var(--sp-4); }
.enrol-or { font-size: 13px; color: var(--muted); text-align: center; margin-block-start: var(--sp-3); }
.enrol-status { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: var(--teal-tint); margin-block-end: var(--sp-4); }
.enrol-status .icon { color: var(--teal-ink); margin-block-start: 2px; }
.enrol-status b { display: block; color: var(--ink); }
.enrol-status small { color: var(--muted); }
.enrol-status.-ended { background: var(--danger-tint); }
.enrol-status.-ended .icon { color: var(--danger); }
.includes { list-style: none; margin: var(--sp-5) 0 0; padding: var(--sp-4) 0 0; border-block-start: 1px dashed var(--line-strong); display: grid; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.includes li { display: flex; gap: 10px; align-items: center; }
.includes .icon { color: var(--muted); }

.c-subnav { position: sticky; inset-block-start: 68px; z-index: 4; background: color-mix(in srgb, var(--canvas) 92%, transparent); backdrop-filter: blur(10px); border-block-end: 1px solid var(--line); }
.c-subnav .wrap { display: flex; gap: var(--sp-6); height: 48px; align-items: center; }
.c-subnav a { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.c-subnav a:hover { color: var(--ink); }

.c-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--sp-12); align-items: start; }
.c-sec { padding-block-start: var(--sp-16); scroll-margin-top: 130px; }
.c-aside { position: sticky; inset-block-start: 132px; padding-block-start: var(--sp-16); }
.glance-list { margin: 0; padding: var(--sp-2) var(--sp-6); }
.glance-list > div { display: flex; justify-content: space-between; gap: var(--sp-3); padding-block: 10px; border-block-end: 1px dashed var(--line); font-size: 14px; }
.glance-list dt { color: var(--muted); }
.glance-list dd { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.glance-next { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-4) var(--sp-6); font-size: 13px; }
.glance-next b { display: block; color: var(--ink); font-size: 14px; }
.glance-next small { color: var(--muted); }
.glance-f { display: block; }
@media (max-width: 1060px) {
  .c-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .enrol { position: static; max-width: 460px; }
  .c-body { grid-template-columns: minmax(0, 1fr); }
  .c-aside { display: none; }
}

.outcomes { list-style: none; counter-reset: o; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block-start: 1px solid var(--line); }
.outcomes li { counter-increment: o; display: grid; grid-template-columns: 44px 1fr; gap: var(--sp-2); padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; border-block-end: 1px solid var(--line); font-size: 15.5px; color: var(--ink); }
.outcomes li::before { content: counter(o, upper-roman) "."; font-family: var(--font-serif); font-style: italic; font-size: 19px; color: var(--gold-ink); line-height: 1.2; }
.outcomes li:nth-child(odd) { padding-inline-end: var(--sp-6); border-inline-end: 1px solid var(--line); }
.outcomes li:nth-child(even) { padding-inline-start: var(--sp-6); }
@media (max-width: 640px) { .outcomes { grid-template-columns: minmax(0, 1fr); } .outcomes li:nth-child(n) { padding-inline: 0; border-inline-end: 0; } }

.modules { border-block-start: 1.5px solid var(--ink); }
.modules .mod { border-block-end: 1px solid var(--line); }
.modules .mod-h { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: var(--sp-3); padding: var(--sp-4) 0; cursor: pointer; }
.modules .mod-n { font-family: var(--font-serif); font-style: italic; font-size: 26px; color: var(--gold-ink); line-height: 1; }
.modules .mod-t b { display: block; font-family: var(--font-serif); font-size: 21px; font-weight: 500; color: var(--ink); }
.modules .mod-t small { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); }
.modules .mod-cv { color: var(--muted); transition: transform var(--dur-2) var(--ease); }
.modules .mod.open .mod-cv { transform: rotate(180deg); }
.modules .mod-body { display: none; padding: 0 0 var(--sp-5) 56px; }
.modules .mod.open .mod-body { display: block; }
.modules .mod-obj { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--teal-ink); margin-block-end: var(--sp-2); }
.lessons { list-style: none; margin: 0; padding: 0; }
.lesson { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto 24px; gap: var(--sp-3); align-items: center; padding: 10px var(--sp-3); border-radius: var(--r-sm); font-size: 14.5px; }
.lesson:nth-child(odd) { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.lesson .l-ic { color: var(--muted); display: grid; }
.lesson .l-t { color: var(--ink-2); text-decoration: none; min-width: 0; }
.lesson a.l-t { color: var(--link); font-weight: 600; }
.lesson a.l-t + .badge { justify-self: start; }
.lesson .l-d { font-size: 12px; color: var(--muted); grid-column: 4; }
.lesson .l-state { grid-column: 5; display: grid; justify-items: end; color: var(--faint); }
.lesson .l-state .icon-sm { color: var(--faint); }
.lesson.is-done .l-state .icon { color: var(--teal-ink); }
.lesson > .badge { grid-column: 3; }
.lesson:not(:has(> .badge)) .l-t { grid-column: 2 / span 2; }
@media (max-width: 640px) { .modules .mod-body { padding-inline-start: 0; } .lesson { grid-template-columns: 22px minmax(0, 1fr) auto 22px; } .lesson > .badge { display: none; } .lesson .l-d { grid-column: 3; } .lesson .l-state { grid-column: 4; } .lesson .l-t { grid-column: 2 !important; } }

.instructor { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-6); padding: var(--sp-8); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.instructor h3 { font-size: 26px; }
.instructor .eyebrow { margin-block: 4px var(--sp-4); display: block; }
.instructor p.dropcap { color: var(--ink-2); max-width: 60ch; }
.inst-figs { display: flex; gap: var(--sp-8); margin: var(--sp-5) 0 0; padding-block-start: var(--sp-4); border-block-start: 1px solid var(--line); }
.inst-figs dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.inst-figs dd { margin: 2px 0 0; font-family: var(--font-mono); font-size: 20px; color: var(--ink); }
@media (max-width: 640px) { .instructor { grid-template-columns: minmax(0, 1fr); padding: var(--sp-5); } }

.reviews { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--sp-10); }
.rev-summary { display: grid; gap: 4px; align-content: start; }
.rev-score { font-family: var(--font-serif); font-size: 64px; line-height: 1; color: var(--ink); }
.rev-bars { display: grid; gap: 6px; margin-block-start: var(--sp-4); font-size: 12px; color: var(--muted); }
.rev-bars > div { display: grid; grid-template-columns: 12px 1fr 34px; gap: 8px; align-items: center; }
.rev-bars .bar > i { background: var(--gold); }
.rev-list { display: grid; gap: var(--sp-6); }
.rev { margin: 0; padding-block-end: var(--sp-6); border-block-end: 1px solid var(--line); }
.rev blockquote { margin: 0 0 var(--sp-4); font-family: var(--font-serif); font-size: 19px; line-height: 1.45; color: var(--ink); }
@media (max-width: 760px) { .reviews { grid-template-columns: minmax(0, 1fr); } }
.ph-site { padding-block: var(--sp-12); }

/* ============================================================ styleguide */
.sg { padding-block: var(--sp-12) 0; }
.sg-h { padding-block-end: var(--sp-10); border-block-end: 1px solid var(--line); }
.sg-h .display { margin-block: var(--sp-4); }
.sg-h .display em { color: var(--gold-ink); }
.sg-toc { margin-block-start: var(--sp-6); }
.sg-toc .chip { text-decoration: none; }
.sg-sec { padding-block-start: var(--sp-16); scroll-margin-top: 90px; }
.sg-sub { font-size: 18px; margin-block: var(--sp-8) var(--sp-4); }
.swatches { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-3); }
.swatch, .token { display: grid; gap: 3px; font-size: 13px; }
.swatch .sw { height: 96px; border-radius: var(--r); border: 1px solid var(--line); margin-block-end: 6px; }
.swatch b { color: var(--ink); }
.swatch code, .token code { font-size: 12px; color: var(--ink-2); }
.swatch small, .token small { color: var(--muted); font-size: 12px; }
.tokens { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-3); }
.token .sw { height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); }
.type-specimen { display: grid; border-block-start: 1.5px solid var(--ink); }
.type-specimen > div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--sp-6); align-items: baseline; padding-block: var(--sp-5); border-block-end: 1px solid var(--line); }
.type-specimen .prose { font-size: 19px; }
.sg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.sg-demo { display: grid; gap: var(--sp-4); align-content: start; }
.sg-demo .row { gap: var(--sp-2); }
.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.plates .plate { border-radius: var(--r); }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.icon-grid span { display: grid; justify-items: center; gap: 8px; padding: var(--sp-4) var(--sp-2); background: var(--surface); color: var(--ink); }
.icon-grid small { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-align: center; word-break: break-all; }
@media (max-width: 980px) { .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tokens { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sg-grid, .plates { grid-template-columns: minmax(0, 1fr); } .type-specimen > div { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); } }
@media (max-width: 560px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tokens { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==== 51-app.css ==== */
/* =====================================================================
   App pages (signed in): dashboard and shared app blocks
   ===================================================================== */
.dash-h h1 { font-size: clamp(34px, 24px + 1.8vw, 48px); font-weight: 450; }
.dash-h h1 em { color: var(--gold-ink); }

.dash-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-5); }
.resume { display: grid; grid-template-columns: 260px minmax(0, 1fr); overflow: hidden; }
.resume-plate { aspect-ratio: auto; min-height: 100%; border-radius: 0; text-decoration: none; }
.resume-plate .plate-numeral { font-size: 180px; }
.resume-play {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--navy); box-shadow: 0 0 0 8px rgba(247, 193, 0, .2); transition: transform var(--dur-2) var(--ease);
}
.resume-play .icon { fill: currentColor; margin-inline-start: 3px; }
.resume-plate:hover .resume-play { transform: translate(-50%, -50%) scale(1.07); }
.resume-b { padding: var(--sp-6) var(--sp-8); display: grid; gap: var(--sp-2); align-content: center; }
.resume-b h2 { font-size: 30px; }
.resume-prog { margin-block: var(--sp-3) var(--sp-4); display: grid; gap: 8px; font-size: 12px; color: var(--muted); }

.ready {
  position: relative; overflow: hidden; border-radius: var(--r); padding: var(--sp-5) var(--sp-6); color: var(--stage-ink);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 7px),
    radial-gradient(120% 120% at 100% 0%, #22306A, var(--stage) 60%);
  box-shadow: inset 0 0 0 1px rgba(247, 193, 0, .25);
}
.ready-h { display: flex; justify-content: space-between; align-items: center; }
.ready .eyebrow { color: var(--stage-muted); }
.ready .badge-success { background: rgba(119, 203, 213, .16); color: var(--teal); }
.gauge { position: relative; width: 210px; margin: var(--sp-3) auto 0; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge-v { position: absolute; inset-inline: 0; inset-block-end: 4px; text-align: center; font-family: var(--font-mono); color: #fff; }
.gauge-v b { color: #fff; font-size: 42px; font-weight: 500; letter-spacing: -.04em; }
.gauge-v span { font-size: 18px; color: var(--stage-muted); }
.gauge-pass { position: absolute; inset-block-start: -6px; inset-inline-end: -8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--teal); }
.ready-list { margin: var(--sp-4) 0 0; display: grid; }
.ready-list > div { display: flex; justify-content: space-between; gap: var(--sp-3); padding-block: 8px; border-block-start: 1px solid var(--stage-line); font-size: 13px; }
.ready-list dt { color: var(--stage-muted); }
.ready-list dd { margin: 0; font-family: var(--font-mono); font-size: 12.5px; color: #fff; }
.ready-list dd.gold { color: var(--gold); }

.dash-stats { margin-block: var(--sp-5); }

.dash-mid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-5); }
.plan-list { list-style: none; margin: 0; padding: var(--sp-2) 0; }
.task {
  display: grid; grid-template-columns: 22px 48px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center;
  padding: 12px var(--sp-6); cursor: pointer; border-block-end: 1px solid var(--line);
}
.task:last-child { border-block-end: 0; }
.task:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.task .cb { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; transition: background var(--dur-1), border-color var(--dur-1); }
.task.done .cb { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.task .tm { font-size: 12px; color: var(--muted); }
.task .tt b { display: block; font-weight: 600; color: var(--ink); }
.task .tt small { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.task.done .tt b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.task .dur { font-size: 12px; color: var(--muted); }
.task.live { background: linear-gradient(90deg, color-mix(in srgb, var(--danger-fill) 7%, transparent), transparent 60%); }

.agenda-mini { list-style: none; margin: 0; padding: var(--sp-2) var(--sp-6); }
.agenda-mini li { display: flex; gap: var(--sp-4); align-items: center; padding-block: 12px; border-block-end: 1px dashed var(--line); }
.agenda-mini li:last-child { border-block-end: 0; }
.agenda-mini b { display: block; font-weight: 600; color: var(--ink); font-size: 14px; }
.agenda-mini small { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12.5px; }
.cal-leaf {
  flex: 0 0 auto; width: 48px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; text-align: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--surface);
  box-shadow: inset 0 3px 0 var(--navy);
}
.cal-leaf b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); padding-block-start: 5px; }
.cal-leaf.gold { box-shadow: inset 0 3px 0 var(--gold); }
.streak-f { justify-content: space-between; align-items: center; }
.streak-mini { display: flex; align-items: baseline; gap: 8px; }
.streak-mini .label { font-size: 10px; }
.streak-mini b { font-size: 24px; color: var(--ink); }
.streak-mini .muted { font-size: 12.5px; }
.streak-f .goal-days { width: 180px; margin: 0; }

.dash-mastery { margin-block-start: var(--sp-12); }
.mastery-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.ledger.mastery td:first-child { width: 34%; }
.ledger.mastery .m-bar { width: 44%; }
.bar.ruler { position: relative; overflow: visible; }
.bar.ruler > i { position: relative; z-index: 1; }
.bar.ruler::before, .bar.ruler::after { content: ""; position: absolute; inset-block: -3px; width: 1px; background: var(--line-strong); z-index: 2; }
.bar.ruler::before { inset-inline-start: 50%; }
.bar.ruler::after { inset-inline-start: 70%; background: var(--teal-ink); opacity: .7; }
.focus { display: grid; gap: var(--sp-4); }
.focus-card { padding: var(--sp-6); display: grid; gap: var(--sp-3); border-block-start: 3px solid var(--gold); }
.focus-card h3 { font-size: 26px; }
.note-card {
  display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5);
  border: 1px dashed var(--line-strong); border-radius: var(--r); font-size: 14px; color: var(--muted);
}
.note-card .icon { color: var(--gold-ink); }

@media (max-width: 1180px) {
  .dash-top { grid-template-columns: minmax(0, 1fr); }
  .ready { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-8); align-items: center; }
  .ready-h { grid-column: 1 / -1; }
}
@media (max-width: 980px) { .dash-mid, .mastery-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .resume { grid-template-columns: minmax(0, 1fr); }
  .resume-plate { min-height: 150px; }
  .resume-b { padding: var(--sp-5); }
  .ready { grid-template-columns: minmax(0, 1fr); }
  .task { grid-template-columns: 22px minmax(0, 1fr) auto; padding-inline: var(--sp-4); }
  .task .tm { display: none; }
  .streak-f { flex-wrap: wrap; gap: var(--sp-3); }
  .ledger.mastery td:first-child { width: auto; }
}

/* ==== 52-player.css ==== */
/* =====================================================================
   Lesson player — distraction-free layout
   ===================================================================== */
.layout-player { background: var(--canvas); }
.player { min-height: 100vh; }
.lesson-bar { position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--surface-3); z-index: 60; }
.lesson-bar > i { display: block; height: 100%; background: var(--gold); transition: width var(--dur-2) linear; }
.lesson-bar .v-marker { inset-block-start: -2px; width: 7px; height: 7px; }

.player-h {
  position: sticky; inset-block-start: 0; z-index: 50; height: 60px;
  display: flex; align-items: center; gap: var(--sp-2); padding-inline: var(--sp-4);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--line);
}
.ph-title { min-width: 0; display: grid; margin-inline-start: var(--sp-2); }
.ph-title .eyebrow { font-size: 10px; }
.ph-crumb { display: flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; overflow: hidden; }
.ph-crumb .ph-mod { color: var(--muted); }
.ph-crumb b { font-family: var(--font-serif); font-size: 17px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.ph-progress { display: flex; align-items: center; gap: var(--sp-2); margin-inline-start: auto; font-size: 12px; color: var(--muted); }
.ph-progress .bar { width: 120px; }
.ph-actions { display: flex; align-items: center; gap: var(--sp-1); margin-inline-start: var(--sp-4); }
.ph-actions .avatar { margin-inline-start: var(--sp-2); }
.ph-actions [aria-pressed="true"] { color: var(--ink); background: var(--surface-2); }
#bookmarkBtn[aria-pressed="true"] { color: var(--gold-ink); }

.player-grid {
  display: grid; grid-template-columns: 300px minmax(0, 1fr) 368px;
  height: calc(100vh - 60px); transition: grid-template-columns var(--dur-3) var(--ease);
}
.player.outline-hidden .player-grid { grid-template-columns: 0 minmax(0, 1fr) 368px; }
.player.panel-hidden .player-grid { grid-template-columns: 300px minmax(0, 1fr) 0; }
.player.outline-hidden.panel-hidden .player-grid { grid-template-columns: 0 minmax(0, 1fr) 0; }
.player.outline-hidden .outline, .player.panel-hidden .lesson-panel { visibility: hidden; }

/* ---- outline ---- */
.outline { overflow-y: auto; border-inline-end: 1px solid var(--line); background: var(--surface); padding: var(--sp-3); scrollbar-width: thin; }
.outline-h { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-2) var(--sp-2) var(--sp-3); }
.outline-h .btn-icon { display: none; }
.outline .mod { border-block-end: 1px solid var(--line); }
.outline .mod-h { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-2); cursor: pointer; border-radius: var(--r-sm); }
.outline .mod-h:hover { background: var(--surface-2); }
.outline .ring { width: 34px; height: 34px; }
.outline .ring .val { stroke: var(--teal-ink); }
.ol-t { display: grid; min-width: 0; }
.ol-t .ol-n { font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--gold-ink); line-height: 1; }
.ol-t b { font-size: 14px; font-weight: 620; color: var(--ink); }
.ol-t small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.outline .mod-cv { color: var(--muted); transition: transform var(--dur-2); }
.outline .mod.open .mod-cv { transform: rotate(180deg); }
.outline .mod-body { display: none; list-style: none; margin: 0; padding: 0 0 var(--sp-3); }
.outline .mod.open .mod-body { display: block; }
.ol-l { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px var(--sp-2); padding: 8px var(--sp-2) 8px var(--sp-3); border-radius: var(--r-sm); font-size: 13.5px; color: var(--ink-2); position: relative; }
.ol-l a { color: inherit; text-decoration: none; }
.ol-l a:hover { color: var(--link); }
.ol-l .ol-ic { grid-row: span 2; color: var(--faint); display: grid; padding-block-start: 1px; }
.ol-l .ol-d { grid-column: 2; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.ol-l.-done .ol-ic { color: var(--teal-ink); }
.ol-l.-locked { color: var(--faint); }
.ol-l.-locked .ol-d { color: var(--gold-ink); }
.ol-l.-now { background: var(--surface-2); color: var(--ink); font-weight: 620; }
.ol-l.-now::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 8px; width: 3px; border-radius: 3px; background: var(--gold); }
.ol-l.-now .ol-ic { color: var(--ink); }

/* ---- main column ---- */
.lesson-main { overflow-y: auto; padding: var(--sp-6) var(--sp-8) var(--sp-16); scroll-behavior: smooth; }
.video {
  position: relative; max-width: 1040px; margin-inline: auto; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  color: var(--stage-ink); display: flex; flex-direction: column;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 7px),
    radial-gradient(110% 120% at 80% 10%, #22306A, var(--stage) 62%);
  box-shadow: 0 30px 60px -40px rgba(15, 21, 51, .8);
}
.v-poster { flex: 1; display: grid; place-content: center; text-align: center; gap: 6px; padding: var(--sp-8); }
.v-poster .eyebrow { color: var(--gold); }
.v-title { font-family: var(--font-serif); font-size: clamp(26px, 18px + 2vw, 44px); line-height: 1.1; color: #fff; }
.v-by { font-family: var(--font-serif); font-style: italic; color: var(--stage-muted); }
.v-bigplay {
  justify-self: center; margin-block-start: var(--sp-5);
  width: 68px; height: 68px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--gold); color: var(--navy); box-shadow: 0 0 0 10px rgba(247, 193, 0, .18); transition: transform var(--dur-2) var(--ease), opacity var(--dur-2);
}
.v-bigplay .icon { width: 28px; height: 28px; fill: currentColor; margin-inline-start: 4px; }
.v-bigplay:hover { transform: scale(1.06); }
.video.is-playing .v-bigplay, .video.has-check .v-bigplay { opacity: 0; pointer-events: none; }
.video.is-playing .v-poster::after { content: "Playing"; font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); animation: pulse 1.6s infinite; }
.video.has-check { aspect-ratio: auto; }
.video.has-check .v-poster { display: none; }

.v-controls {
  display: flex; align-items: center; gap: var(--sp-2); padding: 10px var(--sp-3);
  background: linear-gradient(transparent, rgba(8, 12, 30, .6)); position: relative; z-index: 2;
}
.v-btn { width: 34px; height: 34px; border: 0; border-radius: var(--r-sm); background: transparent; color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.v-btn:hover { background: rgba(255, 255, 255, .1); }
.v-btn .icon { width: 18px; height: 18px; }
#vPlay .icon { fill: currentColor; }
.v-speed { font-size: 12px; width: auto; padding-inline: 8px; }
.v-time { font-size: 12px; color: var(--stage-muted); min-width: 92px; }
.v-track { position: relative; flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .16); cursor: pointer; }
.v-track > i { display: block; height: 100%; border-radius: inherit; background: var(--gold); pointer-events: none; }
.v-marker {
  position: absolute; inset-block-start: 50%; translate: -50% -50%; width: 12px; height: 12px; padding: 0;
  border-radius: 50%; border: 2px solid var(--stage); background: #fff; cursor: pointer; z-index: 2;
}
.v-marker.-first, .v-marker.-second { background: var(--teal); }
.v-marker.-revealed { background: var(--gold); }
.v-marker.-skipped { background: transparent; border-color: #fff; box-shadow: 0 0 0 1px var(--stage); }

/* ---- quick-check card (overlay in video, inline in articles) ---- */
.check-card { position: relative; z-index: 3; margin: var(--sp-8) auto var(--sp-4); width: min(680px, calc(100% - 32px)); }
.check-card, .check-inline {
  background: var(--surface-raised); color: var(--ink-2); border-radius: var(--r);
  border: 1px solid var(--line); padding: var(--sp-5) var(--sp-6) var(--sp-4);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .6); animation: rise var(--dur-3) var(--ease);
}
.check-inline { margin-block: var(--sp-8); box-shadow: inset 0 3px 0 var(--gold), 0 18px 40px -34px var(--shadow-color); font-family: var(--font-sans); }
.ck-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.ck-head .eyebrow { display: inline-flex; gap: 6px; align-items: center; }
.ck-tries { font-size: 11.5px; color: var(--muted); }
.ck-q { font-size: 21px; line-height: 1.3; margin-block: var(--sp-3) var(--sp-4); }
.ck-opts { display: grid; gap: 8px; }
.ck-opt {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 22px; gap: var(--sp-3); align-items: start; text-align: start;
  padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: 14.5px; font-weight: 520; line-height: 1.45; transition: border-color var(--dur-1), background var(--dur-1);
}
.ck-opt:hover:not(:disabled) { border-color: var(--ink); }
.ck-opt:disabled { cursor: default; }
.ck-opt .k { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--surface-2); font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--muted); }
.ck-opt .why { display: none; margin-block-start: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.ck-opt.show-why .why { display: block; }
.ck-opt .mark { width: 20px; height: 20px; border-radius: 50%; margin-block-start: 3px; }
.ck-opt.is-wrong { border-color: color-mix(in srgb, var(--danger) 55%, transparent); background: var(--danger-tint); }
.ck-opt.is-wrong .k { background: var(--danger-fill); color: #fff; }
.ck-opt.is-correct { border-color: var(--teal-ink); background: var(--teal-tint); }
.ck-opt.is-correct .k { background: var(--teal-ink); color: #fff; }
.ck-opt.is-correct .mark { background: var(--teal-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.-revealed .ck-opt:not(.is-correct):not(.is-wrong) { opacity: .85; }
.ck-foot { display: flex; align-items: center; gap: var(--sp-2); margin-block-start: var(--sp-4); padding-block-start: var(--sp-3); border-block-start: 1px solid var(--line); }
.ck-msg { flex: 1; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.-wrong1 .ck-msg { color: var(--danger); }
.-correct .ck-msg { color: var(--teal-ink); }
.-revealed .ck-msg { color: var(--gold-ink); }
.ck-msg b { color: inherit; }
.ck-done { display: flex; align-items: center; gap: var(--sp-3); font-size: 14px; }
.ck-done > .icon { color: var(--teal-ink); }
.ck-done.-skipped > .icon { color: var(--gold-ink); }
.ck-done .btn-link { margin-inline-start: auto; font-size: 13px; }

/* ---- lesson article ---- */
.lesson-article { max-width: 720px; margin: var(--sp-10) auto 0; }
.lesson-article.reading { margin-block-start: var(--sp-6); }
.la-head { padding-block-end: var(--sp-6); margin-block-end: var(--sp-8); border-block-end: 1px solid var(--line); display: grid; gap: var(--sp-3); }
.la-head h1 { font-size: clamp(32px, 24px + 1.6vw, 46px); font-weight: 450; }
.la-dek { font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--muted); }
.prose { font-family: var(--font-serif); font-size: 19px; line-height: 1.65; color: var(--ink-2); }
.prose p + p { margin-block-start: 1em; }
.prose .dropcap::first-letter { font-size: 3.6em; color: var(--gold-ink); }
.formula {
  margin: var(--sp-8) 0; padding: var(--sp-5) var(--sp-6); border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--gold); font-family: var(--font-sans);
}
.formula .mono { font-size: 17px; color: var(--ink); margin-block: 6px; }
.formula .muted { font-size: 14px; }
.worked { margin: var(--sp-8) 0; font-family: var(--font-sans); }
.worked .eyebrow { display: block; margin-block-end: var(--sp-3); }
.la-foot { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-block-start: var(--sp-12); padding-block-start: var(--sp-6); border-block-start: 1px solid var(--line); }
.la-nav { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); background: var(--surface); }
.la-nav:hover { border-color: var(--line-strong); }
.la-nav small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.la-nav span { font-weight: 600; }
.la-nav.next { justify-content: flex-end; text-align: end; }

/* ---- right panel ---- */
.lesson-panel { display: flex; flex-direction: column; min-height: 0; border-inline-start: 1px solid var(--line); background: var(--surface); }
.panel-h { display: flex; align-items: center; border-block-end: 1px solid var(--line); padding-inline: var(--sp-4) var(--sp-2); }
.panel-h .panel-x { display: none; }
.side-tabs { display: flex; gap: var(--sp-5); flex: 1; }
.side-tabs button {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 16px 0 14px; border: 0; background: none;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.side-tabs button.on { color: var(--ink); }
.side-tabs button.on::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -1px; height: 2px; background: var(--gold); }
.side-tabs .count { background: var(--gold-tint); color: var(--gold-ink); border-radius: 99px; padding: 0 6px; font-size: 10.5px; }
.side-pane { display: none; flex: 1; min-height: 0; overflow-y: auto; padding: var(--sp-4); }
.side-pane.on { display: flex; flex-direction: column; }
#p-tutor.on { padding: 0; }
.thread { flex: 1; overflow-y: auto; padding: var(--sp-4); display: grid; gap: var(--sp-3); align-content: start; }
.bubble { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--sp-2); font-size: 14px; }
.bubble p { padding: 10px 13px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.bubble.me { grid-template-columns: minmax(0, 1fr); justify-items: end; }
.bubble.me p { background: var(--ink); color: var(--canvas); border-color: var(--ink); border-end-end-radius: 4px; max-width: 85%; }
.tutor-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--gold); color: var(--navy); }
.prompts { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 var(--sp-4) var(--sp-3); }
.prompts .chip { height: 28px; font-size: 12.5px; }
.tutor-form { display: flex; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-block-start: 1px solid var(--line); }
.tutor-form .btn-icon { width: 42px; height: 42px; background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.pane-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pane-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-3); align-items: start; padding: var(--sp-3) var(--sp-2); border-block-end: 1px dashed var(--line); font-size: 14px; }
.pane-row p { color: var(--ink-2); }
.pane-row .badge { margin-block-start: 6px; }
.pane-row .btn-icon { width: 28px; height: 28px; opacity: .6; }
.pane-row:hover .btn-icon { opacity: 1; }
.pane-hint { margin-block-start: var(--sp-4); display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.note-form { display: grid; gap: var(--sp-2); padding: var(--sp-3); margin-block-end: var(--sp-3); border: 1px solid var(--gold-rule); border-radius: var(--r); background: var(--gold-tint); }

/* ---- drawers below 1100px ---- */
@media (max-width: 1100px) {
  .player-grid, .player.outline-hidden .player-grid, .player.panel-hidden .player-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  .outline, .lesson-panel {
    position: fixed; inset-block: 0; z-index: 90; width: min(360px, 88vw); visibility: visible !important;
    transition: transform var(--dur-3) var(--ease); box-shadow: var(--shadow-float);
  }
  .outline { inset-inline-start: 0; transform: translateX(-105%); }
  .lesson-panel { inset-inline-end: 0; transform: translateX(105%); }
  .player.outline-open .outline, .player.panel-open .lesson-panel { transform: none; }
  .outline-h .btn-icon, .panel-h .panel-x { display: inline-grid; }
  .player.outline-open .nav-scrim, .player.panel-open .nav-scrim { display: block; position: fixed; inset: 0; background: var(--scrim); z-index: 80; }
  .lesson-main { overflow: visible; padding: var(--sp-4) var(--sp-4) var(--sp-12); }
  .ph-progress .bar { width: 64px; }
}
@media (max-width: 760px) {
  .ph-title .eyebrow, .ph-crumb .ph-mod, .ph-crumb .icon, .ph-progress, #noteBtn, .ph-actions [data-cmdk-open], .ph-actions .avatar, .ph-actions #themeBtn { display: none; }
  .video { border-radius: var(--r); aspect-ratio: auto; min-height: 240px; }
  .v-poster { padding: var(--sp-6) var(--sp-4); }
  .v-bigplay { width: 56px; height: 56px; margin-block-start: var(--sp-3); }
  .v-by { display: none; }
  .v-time { min-width: 0; }
  .v-controls .v-btn:not(#vPlay) { display: none; }
  .check-card { margin-block: var(--sp-3); width: calc(100% - 16px); padding: var(--sp-4); }
  .ck-foot { flex-wrap: wrap; }
  .ck-msg { flex-basis: 100%; }
  .prose { font-size: 17.5px; }
  .la-foot { grid-template-columns: minmax(0, 1fr); }
}

/* ==== 53-arena.css ==== */
/* =====================================================================
   Live arena — always on the dark stage, gold for time and the lead
   ===================================================================== */
.page-live .page-h h1 em { color: var(--gold-ink); }
.arena {
  border-radius: var(--r-lg); overflow: hidden; color: var(--stage-ink);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 7px),
    radial-gradient(130% 110% at 90% -10%, #22306A, var(--stage) 60%);
  box-shadow: 0 40px 90px -50px rgba(15, 21, 51, .9), inset 0 0 0 1px rgba(247, 193, 0, .22);
}
.arena-top { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-6); border-block-end: 1px solid var(--stage-line); }
.at-title b { display: block; color: #fff; font-weight: 620; }
.at-title small { font-family: var(--font-mono); font-size: 11.5px; color: var(--stage-muted); }
.at-meta { margin-left: auto; display: flex; gap: var(--sp-2); }
.a-count { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding-inline: 12px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--stage-line); font-size: 12.5px; font-weight: 600; }
.a-count.rec .icon { color: var(--orange); }

.arena-tools { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-3) var(--sp-6); border-bottom: 1px solid var(--stage-line); }
.atool { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding-inline: 12px; border-radius: var(--r-sm); border: 1px solid var(--stage-line); background: rgba(255,255,255,.04); color: var(--stage-ink); font-size: 13px; font-weight: 600; }
.atool:hover { background: rgba(255,255,255,.1); }
.atool .icon { width: 16px; height: 16px; }
.atool.on { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.atool.rec.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.atool.spacer { margin-left: auto; }

.arena-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.arena-stage { padding: var(--sp-5) var(--sp-6) var(--sp-6); min-width: 0; }
.film { display: flex; gap: 8px; margin-bottom: var(--sp-5); }
.tile { position: relative; flex: 1; aspect-ratio: 16 / 10; border-radius: 10px; border: 1px solid var(--stage-line); display: flex; align-items: flex-end; padding: 8px; font-size: 11.5px; font-weight: 650; overflow: hidden; min-width: 0; }
.tile.host { flex: 1.9; background: linear-gradient(155deg, #2C3D7A, #161E45); }
.tile.t2 { background: linear-gradient(155deg, #1F5F86, #132F45); }
.tile.t3 { background: linear-gradient(155deg, #2E7F8A, #153C42); }
.tile.t4 { background: linear-gradient(155deg, #3D4A58, #1E262E); }
.tile.t5 { background: linear-gradient(155deg, #2C3D7A, #18214A); }
.tile .nm { position: relative; background: rgba(8,12,30,.45); padding: 2px 7px; border-radius: 5px; }
.tile-mic { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; }
.qhead { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); margin-bottom: var(--sp-4); }
.qn { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--stage-muted); }
.qhead h2 { color: #fff; font-size: clamp(22px, 16px + 1.2vw, 30px); margin-top: 6px; max-width: 26ch; font-weight: 450; }
.ring-wrap { position: relative; width: 76px; height: 76px; flex: 0 0 auto; }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 24px; font-weight: 600; color: #fff; }
#ring { transition: stroke-dashoffset 1s linear; }
.kgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kans {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; text-align: left;
  border: 1px solid var(--stage-line); background: rgba(255,255,255,.05); color: #fff; font-size: 15.5px; font-weight: 600;
  transition: transform var(--dur-1), background var(--dur-2), border-color var(--dur-2);
}
.kans:hover { transform: translateY(-2px); background: rgba(255,255,255,.09); }
.kans .shape { width: 18px; height: 18px; }
.kans .ct { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--stage-muted); }
.kans.k-a { box-shadow: inset 3px 0 0 #E74B22; }
.kans.k-b { box-shadow: inset 3px 0 0 #5CB8E6; }
.kans.k-c { box-shadow: inset 3px 0 0 #F7C100; }
.kans.k-d { box-shadow: inset 3px 0 0 #77CBD5; }
.kans.picked { border-color: var(--gold); background: rgba(247,193,0,.14); outline: none; }
.kans.picked .ct { color: var(--gold); }

.arena-panel { display: none; margin-top: var(--sp-4); padding: var(--sp-4); border-radius: var(--r); border: 1px solid var(--stage-line); background: rgba(255,255,255,.03); font-size: 14px; }
.arena-panel.on { display: block; animation: rise var(--dur-2) var(--ease); }
.panel-h2 { display: flex; align-items: center; gap: 8px; margin-bottom: var(--sp-3); }
.panel-h2 b { color: #fff; }
.panel-h2 .mono { margin-left: auto; font-size: 12px; color: var(--gold); }
.wb { position: relative; border-radius: 10px; background: #F8F6F1; border: 1px solid #D5DDEB; overflow: hidden; }
.wb svg { width: 100%; height: auto; }
.wb-tools { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }
.wb-tools span { width: 28px; height: 28px; border-radius: 7px; background: #fff; border: 1px solid #D5DDEB; display: grid; place-items: center; color: #19234F; }
.bkrooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bkroom { padding: 12px; border-radius: 10px; border: 1px solid var(--stage-line); background: rgba(255,255,255,.03); display: grid; gap: 4px; font-size: 12.5px; color: var(--stage-muted); }
.bkroom b { color: #fff; font-size: 13px; }
.side-note { font-size: 12.5px; color: var(--stage-muted); margin: var(--sp-2) 0; }

.arena-side { border-left: 1px solid var(--stage-line); padding: var(--sp-5); background: rgba(255,255,255,.015); }
.side-tabs2 { display: flex; gap: 4px; padding: 3px; margin-bottom: var(--sp-4); border-radius: var(--r-sm); background: rgba(255,255,255,.05); border: 1px solid var(--stage-line); }
.side-tabs2 button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--stage-muted); font-size: 12.5px; font-weight: 600; }
.side-tabs2 button.on { background: var(--gold); color: var(--navy); }
.side-list { display: none; }
.side-list.on { display: block; }
.lb { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 6px; border-radius: 10px; border: 1px solid transparent; background: rgba(255,255,255,.03); }
.lb .rk { width: 20px; font-family: var(--font-mono); font-weight: 600; color: var(--stage-muted); text-align: center; }
.lb:first-child .rk { color: var(--gold); }
.lb-who { flex: 1; min-width: 0; }
.lb .nm { font-size: 13.5px; font-weight: 620; color: #fff; }
.lb .fl { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-family: var(--font-mono); color: var(--gold); }
.lb .pts { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: #fff; }
.lb.me { border-color: rgba(247,193,0,.6); background: linear-gradient(90deg, rgba(247,193,0,.16), rgba(247,193,0,.03)); }

.eng { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.eng li { display: grid; grid-template-columns: 26px 64px 1fr 62px; gap: 8px; align-items: center; font-size: 12.5px; }
.eng .eng-n { font-weight: 600; }
.eng .bar { height: 7px; }
.eng .eng-s { font-family: var(--font-mono); font-size: 10.5px; text-align: right; }
.eng .eng-s.-on { color: var(--teal-ink); }
.eng .eng-s.-idle { color: var(--gold-ink); }
.eng .eng-s.-away { color: var(--danger); }
.eng li:has(.-idle) .bar > i { background: linear-gradient(90deg, #D9A800, var(--gold)); }
.eng li:has(.-away) .bar > i { background: linear-gradient(90deg, #C23D17, var(--orange)); }
.eng.stage .eng-n { color: #fff; }
.eng.stage .bar { background: rgba(255,255,255,.1); }
.eng.stage .eng-s.-on { color: var(--teal); }
.eng.stage .eng-s.-idle { color: var(--gold); }
.eng.stage .eng-s.-away { color: #FF8A6A; }

.arena-foot { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); padding: var(--sp-3) var(--sp-6); border-top: 1px solid var(--stage-line); }
.react { display: flex; gap: 6px; }
.react button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--stage-line); background: rgba(255,255,255,.04); color: var(--stage-ink); display: grid; place-items: center; }
.react button:hover { background: rgba(255,255,255,.1); color: var(--gold); transform: translateY(-2px); }
.foot-chat { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--stage-muted); overflow: hidden; white-space: nowrap; }
.foot-chat b { color: #fff; margin-right: 4px; }
.afoot-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding-inline: 12px; border-radius: var(--r-sm); border: 1px solid var(--stage-line); background: rgba(255,255,255,.04); color: var(--stage-ink); font-size: 13px; font-weight: 600; }
.afoot-btn.confused { border-color: rgba(247,193,0,.5); color: var(--gold); background: rgba(247,193,0,.08); }

.arena-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-6); }
.wire { display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.wire .icon { color: var(--gold-ink); }
.wire b { display: block; color: var(--ink); font-size: 14px; }
.wire p { font-size: 13px; color: var(--muted); margin-top: 2px; }

@media (max-width: 1100px) { .arena-main { grid-template-columns: minmax(0, 1fr); } .arena-side { border-left: 0; border-top: 1px solid var(--stage-line); } .arena-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .arena-top, .arena-tools, .arena-stage, .arena-foot { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .at-meta .rec, .film .tile:nth-child(n+4) { display: none; }
  .kgrid { grid-template-columns: minmax(0, 1fr); }
  .qhead { align-items: flex-start; }
  .ring-wrap { width: 60px; height: 60px; } .ring-wrap svg { width: 60px; height: 60px; } .ring-num { font-size: 19px; }
  .atool.spacer { margin-left: 0; }
  .bkrooms, .arena-notes { grid-template-columns: minmax(0, 1fr); }
}

/* ==== 54-practice.css ==== */
/* =====================================================================
   Practice modal: quiz, flashcards, case, handbook and the six games
   (physical properties allowed here: race lanes run left → right)
   ===================================================================== */
.q-card { padding: var(--sp-5); border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.qt { font-family: var(--font-serif); font-size: 21px; line-height: 1.3; color: var(--ink); }
.opts2 { display: grid; gap: 8px; margin-top: var(--sp-4); }
.o2 {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; text-align: left;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: 14.5px; font-weight: 550; transition: border-color var(--dur-1), background var(--dur-1);
}
.o2:hover { border-color: var(--ink); }
.o2 .k { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 6px; display: grid; place-items: center; background: var(--surface-2); font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--muted); }
.o2.correct { border-color: var(--teal-ink); background: var(--teal-tint); }
.o2.correct .k { background: var(--teal-ink); color: #fff; }
.o2.wrong { border-color: color-mix(in srgb, var(--danger) 55%, transparent); background: var(--danger-tint); }
.o2.wrong .k { background: var(--danger-fill); color: #fff; }
.o2.dim { opacity: .35; }
.explain { display: none; margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-left: 3px solid var(--teal-ink); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; color: var(--muted); }
.explain.on { display: block; }
.explain b { color: var(--ink); }
.rowbtns { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-4); }
.rowbtns.center { justify-content: center; }
.game-msg { margin-top: var(--sp-3); min-height: 22px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.game-msg.center { justify-content: center; }
.game-msg .icon { color: var(--gold-ink); }

/* flashcards */
.fcwrap { text-align: center; }
.fcard2 {
  min-height: 220px; display: grid; place-content: center; gap: 12px; padding: var(--sp-10) var(--sp-8); cursor: pointer;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 6px 6px 0 -1px var(--surface-2), 6px 6px 0 0 var(--line-strong);
}
.fcard2 h3 { font-size: 24px; max-width: 30ch; margin-inline: auto; }
.fc-hint { font-size: 12px; color: var(--faint); }
.fcnav { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-6); }

/* case + handbook */
.case p { color: var(--ink-2); margin-top: var(--sp-3); }
.case h3 { font-size: 26px; margin-top: 4px; }
.case-given { display: flex; gap: 10px; align-items: flex-start; margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.case-given .icon { color: var(--gold-ink); }
.hb-entry { padding: var(--sp-4) var(--sp-5); margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.hb-entry b { font-family: var(--font-serif); font-size: 17px; font-weight: 550; }
.hb-entry p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.hb-entry code { display: inline-block; margin-top: 8px; padding: 4px 8px; border-radius: var(--r-xs); background: var(--teal-tint); color: var(--teal-ink); font-size: 13px; }

/* millionaire */
.lifelines { display: flex; gap: 8px; margin-bottom: var(--sp-4); flex-wrap: wrap; }
.life { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding-inline: 12px; border-radius: 99px; border: 1px solid var(--gold-rule); background: var(--gold-tint); color: var(--gold-ink); font-size: 13px; font-weight: 650; }
.life.used { opacity: .4; text-decoration: line-through; }
.mill { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: var(--sp-5); }
.ladder { display: flex; flex-direction: column-reverse; gap: 3px; padding: 8px; border-radius: var(--r); background: var(--stage); }
.rung { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 6px; font-family: var(--font-mono); font-size: 12.5px; color: var(--stage-muted); }
.rung.safe { color: var(--teal); }
.rung.on { background: var(--gold); color: var(--navy); font-weight: 600; }

/* grand prix */
.gp-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.gp-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.gp-timer { font-family: var(--font-mono); color: var(--gold-ink); }
.track { padding: 10px 14px; border-radius: var(--r); background: var(--stage); }
.lane { position: relative; height: 44px; border-bottom: 1px dashed rgba(255,255,255,.14); }
.lane:last-child { border-bottom: 0; }
.lane .tagn { position: absolute; left: 2px; top: 2px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--stage-muted); }
.lane .car { position: absolute; left: 2%; bottom: 6px; color: var(--stage-muted); transition: left .5s cubic-bezier(.3, 1.2, .5, 1); }
.lane .car .icon { width: 26px; height: 26px; }
.lane .car.you { color: var(--gold); }
.lane .flag { position: absolute; right: 4px; bottom: 8px; color: #fff; }

/* blitz */
.blitz-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--sp-3); }
.blitz-timer { font-family: var(--font-mono); font-size: 34px; font-weight: 600; color: var(--ink); }
.combo { font-family: var(--font-mono); font-weight: 600; color: var(--gold-ink); }
.blitz-score { font-family: var(--font-mono); font-size: 24px; font-weight: 600; color: var(--ink); }
#blitzBar { background: linear-gradient(90deg, var(--orange), var(--gold)); transition: width 1s linear; }

/* boss battle */
.turnbanner { text-align: center; padding: 9px; border-radius: var(--r-sm); margin-bottom: var(--sp-3); font-weight: 650; font-size: 13.5px; }
.turnbanner.p1 { background: var(--link-tint); color: var(--link); }
.turnbanner.p2 { background: var(--gold-tint); color: var(--gold-ink); }
.boss-stage { text-align: center; padding: var(--sp-5); margin-bottom: var(--sp-4); border-radius: var(--r); color: var(--stage-ink); background: radial-gradient(120% 120% at 50% 0%, #22306A, var(--stage) 70%); }
.boss { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(247,193,0,.4); transition: transform .18s; }
.boss .icon { width: 40px; height: 40px; }
.boss.-dragon { color: var(--orange); background: rgba(231,75,34,.12); }
.boss.-duel { color: var(--gold); background: rgba(247,193,0,.12); }
.boss.-defeated { color: var(--gold); background: rgba(247,193,0,.2); }
.boss.hit { transform: scale(1.15) rotate(-6deg); }
.boss-name { font-family: var(--font-serif); font-size: 19px; margin-top: 8px; color: #fff; }
.hpwrap { max-width: 360px; margin: 12px auto 0; }
.hplab { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; margin: 6px 2px 4px; color: var(--stage-muted); }
.hp { height: 12px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.hp i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--gold)); transition: width .3s; }
.hp.you i { background: linear-gradient(90deg, var(--blue), var(--teal)); }

/* memory */
.mem-top { display: flex; justify-content: space-between; margin-bottom: var(--sp-4); font-size: 13px; color: var(--muted); }
.mem-top b { color: var(--ink); }
.memgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.memcard {
  aspect-ratio: 3 / 2; border-radius: var(--r-sm); border: 1px solid transparent; display: grid; place-items: center; padding: 8px; text-align: center;
  font-family: var(--font-serif); font-size: 26px; font-style: italic; color: var(--gold);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 6px), linear-gradient(150deg, #19234F, #2C3D7A);
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px rgba(247,193,0,.4); transition: transform var(--dur-2);
}
.memcard:hover { transform: translateY(-2px); }
.memcard.flipped { background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-style: normal; font-size: 13px; font-weight: 600; border-color: var(--line-strong); box-shadow: none; }
.memcard.matched { background: var(--teal-tint); color: var(--teal-ink); font-family: var(--font-sans); font-style: normal; font-size: 13px; font-weight: 600; border-color: var(--teal-ink); box-shadow: none; cursor: default; }

/* duel */
.duel-scores { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.duel-p { padding: var(--sp-3) var(--sp-4); border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.duel-p.you { box-shadow: inset 3px 0 0 var(--link); }
.duel-p.rival { box-shadow: inset 3px 0 0 var(--gold); }
.who-l { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink); }
.who-l .icon { width: 16px; height: 16px; }
.pips { display: flex; gap: 5px; margin-top: 9px; }
.pip { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-3); }
.duel-p.you .pip.on { background: var(--link); }
.duel-p.rival .pip.on { background: var(--gold); }

/* survey */
.surveyq { margin-bottom: var(--sp-5); }
.ql { font-weight: 600; color: var(--ink); }
.likert { display: flex; gap: 6px; margin-top: 8px; }
.likert button { flex: 1; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.likert button.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* presenter practice (options on the dark slide) */
.opts2.on-stage .o2 { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); color: #fff; }
.opts2.on-stage .o2 .k { background: rgba(255,255,255,.12); color: #fff; }
.opts2.on-stage .o2.correct { background: rgba(22,128,140,.5); border-color: var(--teal); }

@media (max-width: 640px) {
  .mill { grid-template-columns: minmax(0, 1fr); }
  .ladder { flex-direction: row-reverse; overflow-x: auto; }
  .rung { flex-direction: column; min-width: 64px; }
  .memgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-b { padding: var(--sp-4); }
}

/* ==== 55-studio-admin.css ==== */
/* =====================================================================
   Round 2 — instructor studio, presenter, certificates, company, admin
   ===================================================================== */
.stack > * + * { margin-block-start: var(--sp-5); }
.set-grid.wide { max-width: none; }
.toolbar { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.toolbar .search { flex: 1; min-width: 220px; max-width: 420px; height: 42px; }
.toolbar .select, .toolbar .input { width: auto; min-width: 150px; }
.mini-plate { width: 52px; height: 40px; aspect-ratio: auto; padding: 0; border-radius: 6px; flex: 0 0 auto; }
.mini-plate::after { inset: 3px; border-radius: 3px; }
.mini-plate .plate-numeral { font-size: 30px; inset-inline-end: 4px; }
.tok { font-family: var(--font-mono); font-size: 12.5px; padding: 3px 8px; border-radius: var(--r-xs); background: var(--gold-tint); color: var(--gold-ink); }
.ledger td .icon { vertical-align: -3px; }
.ledger .num .icon { color: var(--teal-ink); }
.stat-lg { font-family: var(--font-mono); font-size: clamp(26px, 18px + 1.6vw, 38px); color: var(--ink); letter-spacing: -.03em; margin-block: 6px; }
.money-pair .delta { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--teal-ink); }
.rev-ledger .seg td { border-block-start: 1.5px solid var(--line-strong); }
.rev-ledger tbody tr.seg:first-child td { border-block-start: 0; }
.rev-ledger td[rowspan] { vertical-align: top; background: var(--surface-2); width: 30%; }
.rev-ledger .net td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.settings-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); align-items: start; }
.settings-sections .ledger .input-group { max-width: 200px; }
@media (max-width: 980px) { .settings-sections { grid-template-columns: minmax(0, 1fr); } }
.imp-banner { background: var(--gold); border-color: var(--gold); }
.imp-banner > .icon, .imp-banner b, .imp-banner p { color: var(--navy) !important; }

/* ---- studio layout ---- */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-6); align-items: start; }
.studio-side { display: grid; gap: var(--sp-5); position: sticky; inset-block-start: 84px; }
@media (max-width: 1100px) { .studio-grid { grid-template-columns: minmax(0, 1fr); } .studio-side { position: static; } }

.rep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rep-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: var(--sp-2); align-items: center; }
.rep-n { font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--gold-ink); text-align: center; }
.rep-acts { display: flex; }
.rep-acts .btn-icon, .rep-row > .btn-icon { width: 32px; height: 32px; }
.opt-rep .rep-row { grid-template-columns: 26px minmax(0, 1fr) auto; align-items: start; padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.opt-rep .radio { padding-block-start: 12px; }
.opt-fields { display: grid; gap: 6px; }
.opt-fields .why { font-size: 13px; min-height: 36px; background: var(--surface); }
.opt-rep .rep-row:has(input[type="radio"]:checked) { border-color: var(--teal-ink); background: var(--teal-tint); }
.error-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--danger); }

.cover-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-5); }
.plate-pick { display: grid; gap: var(--sp-3); align-content: start; }
.plate-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plate-opts .plate { aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: var(--r-sm); cursor: pointer; }
.plate-opts .plate.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--gold); }
@media (max-width: 700px) { .cover-pick { grid-template-columns: minmax(0, 1fr); } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.checklist li { display: flex; gap: 10px; align-items: center; }
.checklist li .icon { color: var(--faint); }
.checklist li.ok { color: var(--ink-2); }
.checklist li.ok .icon { color: var(--teal-ink); }
.checklist a { margin-inline-start: auto; font-size: 12.5px; }

/* curriculum tree */
.tree { display: grid; gap: var(--sp-4); }
.tree-sec { padding: 0; transition: box-shadow var(--dur-2); }
.tree-sec-h { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-block-end: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r) var(--r) 0 0; }
.grip { color: var(--faint); cursor: grab; display: grid; }
.grip:active { cursor: grabbing; }
.tree-n { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--gold-ink); width: 30px; }
.tree-title { flex: 1; min-width: 0; border: 1px solid transparent; background: transparent; border-radius: var(--r-sm); padding: 6px 8px; font-family: var(--font-serif); font-size: 19px; color: var(--ink); }
.tree-title:hover { border-color: var(--line); }
.tree-title:focus { outline: none; border-color: var(--link); background: var(--surface); }
.tree-lessons { list-style: none; margin: 0; padding: var(--sp-2); min-height: 48px; border-radius: var(--r-sm); }
.tree-l { display: grid; grid-template-columns: 20px 24px minmax(0, 1fr) auto auto 190px; gap: var(--sp-3); align-items: center; padding: 8px var(--sp-3); border-radius: var(--r-sm); background: var(--surface); }
.tree-l + .tree-l { margin-block-start: 4px; }
.tree-l:hover { background: var(--surface-2); }
.tree-l > .badge { grid-column: 4; }
.tree-l .tree-d { grid-column: 5; font-size: 12px; }
.tree-l .tree-obj { grid-column: 6; min-height: 34px; padding-block: 5px; font-size: 13px; }
.tree-l.-unmapped .tree-obj { border-color: var(--danger); color: var(--danger); background-color: var(--danger-tint); }
.tree-ic { color: var(--muted); display: grid; }
.tree-lt { color: var(--ink); text-decoration: none; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-lt:hover { color: var(--link); }
.tree-add { display: flex; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4) var(--sp-3); border-block-start: 1px dashed var(--line); }
.is-dragging { opacity: .45; }
.drop-over { background: var(--gold-tint); }
.obj-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.obj-list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: baseline; }
.obj-list .roman { font-family: var(--font-serif); font-style: italic; color: var(--gold-ink); }
.obj-list .mono { font-size: 11px; }
@media (max-width: 900px) { .tree-l { grid-template-columns: 20px 24px minmax(0, 1fr); } .tree-l > .badge, .tree-l .tree-d { display: none; } .tree-l .tree-obj { grid-column: 2 / -1; } }

/* uploader */
.upload { border-radius: var(--r); display: grid; gap: var(--sp-4); }
.upload.-empty { place-items: center; text-align: center; padding: var(--sp-10) var(--sp-6); border: 1.5px dashed var(--line-strong); background: var(--surface-2); color: var(--muted); font-size: 14px; }
.upload.-empty > .icon { color: var(--ink); }
.upload.-empty b { color: var(--ink); font-size: 16px; }
.upload.-empty span { max-width: 44ch; }
.up-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; }
.up-row b { display: block; color: var(--ink); }
.up-row small { color: var(--muted); font-size: 12.5px; }
.upload.-uploading .up-row > .icon { color: var(--link); }
.upload.-processing .up-row > .icon { color: var(--gold-ink); }
.upload.-failed { padding: var(--sp-4); background: var(--danger-tint); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.upload.-failed .up-row > .icon { color: var(--danger); }
.upload.-ready .up-row > .icon { color: var(--teal-ink); }
.spin-ic { animation: spin 1.1s linear infinite; }
.bar > i.indeterminate { width: 35%; background: var(--gold); animation: indet 1.4s var(--ease) infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.up-video .plate { border-radius: var(--r); aspect-ratio: 16 / 9; }
.up-video .plate-numeral { font-size: 160px; }
.plate-play-sm { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; translate: -50% -50%; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); }
.plate-play-sm .icon { fill: currentColor; margin-inline-start: 3px; }
.poster { display: flex; align-items: center; gap: var(--sp-3); }
.poster .plate { width: 120px; aspect-ratio: 16 / 9; padding: 0; border-radius: var(--r-sm); }
.poster .plate-numeral { font-size: 60px; }
.editor-bar { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line-strong); border-block-end: 0; border-radius: var(--r-sm) var(--r-sm) 0 0; background: var(--surface-2); }
.editor-bar .btn-icon { width: 32px; height: 32px; }
.editor { min-height: 180px; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line-strong); border-radius: 0 0 var(--r-sm) var(--r-sm); background: var(--surface); font-size: 17px; }
.editor:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px var(--link-tint); }
.outcomes.one-col { grid-template-columns: minmax(0, 1fr); }
.outcomes.one-col li:nth-child(n) { padding-inline: 0; border-inline-end: 0; }

/* seats */
.dots3 { display: flex; gap: 4px; }
.dots3 i { width: 22px; height: 6px; border-radius: 99px; background: var(--surface-3); }
.dots3 i.on { background: var(--gold); }

/* ---- presenter ---- */
.present { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-6); align-items: start; }
.slide-wrap { display: grid; gap: var(--sp-4); }
.slide {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); padding: clamp(24px, 5vw, 64px); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; color: var(--stage-ink);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 7px), radial-gradient(120% 120% at 85% 0%, #22306A, var(--stage) 62%);
  box-shadow: inset 0 0 0 1px rgba(247,193,0,.25), 0 30px 60px -40px rgba(15,21,51,.8);
}
.slide::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(247,193,0,.18); border-radius: 12px; pointer-events: none; }
.slide .kick { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.slide h2 { color: #fff; font-size: clamp(26px, 16px + 2.4vw, 48px); margin-block: 14px 18px; max-width: 20ch; font-weight: 450; }
.slide ul { margin: 0; padding-inline-start: 22px; font-family: var(--font-serif); font-size: clamp(16px, 12px + .8vw, 22px); line-height: 1.7; color: #D5DDEB; }
.slide ul li::marker { color: var(--gold); }
.slide .pg { position: absolute; inset-block-end: 26px; inset-inline-end: 32px; font-family: var(--font-mono); font-size: 12px; color: var(--stage-muted); }
.slide.practice { background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 7px), radial-gradient(120% 120% at 15% 0%, #0A4F74, var(--stage) 65%); }
.slide-cta { margin-block-start: var(--sp-5); }
.slide .slide-q { font-size: clamp(22px, 14px + 1.6vw, 34px); }
.slide-msg { margin-block-start: var(--sp-4); font-family: var(--font-mono); font-size: 13px; color: var(--teal); }
.slide .opts2 { max-width: 560px; margin-block-start: 0; }
.slidebar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.slidedots { display: flex; gap: 6px; }
.sd { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.sd.on { background: var(--gold); width: 22px; border-radius: 99px; }
.speaker { padding: var(--sp-4) var(--sp-5); display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); box-shadow: inset 3px 0 0 var(--gold); }
.proom { padding: var(--sp-6); display: grid; justify-items: center; gap: var(--sp-3); text-align: center; position: sticky; inset-block-start: 84px; }
.qr { padding: 10px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.room-code b { color: var(--ink); letter-spacing: .1em; }
.room-count { font-size: 15px; }
.room-count b { font-family: var(--font-serif); font-size: 32px; color: var(--ink); font-weight: 500; }
.proom .bar { width: 100%; }
.room-eng { width: 100%; text-align: start; margin-block-start: var(--sp-3); padding-block-start: var(--sp-4); border-block-start: 1px solid var(--line); display: grid; gap: var(--sp-3); }
@media (max-width: 1000px) { .present { grid-template-columns: minmax(0, 1fr); } .proom { position: static; } }
@media (max-width: 560px) { .slide { aspect-ratio: auto; min-height: 280px; } .slide ul { font-size: 15px; } }

/* ---- certificates ---- */
.cert-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-6); align-items: start; }
.cert-side { display: grid; gap: var(--sp-5); }
.cert-preview .card-b { background: var(--surface-2); }
.cert-share { justify-content: flex-end; flex-wrap: wrap; }
.file-drop b { color: var(--ink); }
@media (max-width: 1100px) { .cert-layout { grid-template-columns: minmax(0, 1fr); } }
/* tables placed straight in a card scroll sideways on small screens */
.card:has(> table.ledger), .card-b:has(> table.ledger), .sheet-b:has(> table.ledger) { overflow-x: auto; }
.tree { grid-template-columns: minmax(0, 1fr); }
.plans-bar p { flex: 1 1 260px; min-width: 0; }
.checklist li a { margin-inline-start: auto; white-space: nowrap; font-size: 13px; }
.settings-sections > .set-wide { grid-column: 1 / -1; }
.tree-count { font-size: 12px; white-space: nowrap; }
@media (max-width: 560px) {
  .tree-sec-h { gap: var(--sp-2); padding-inline: var(--sp-3); }
  .tree-count { display: none; }
  .tree-title { font-size: 17px; padding-inline: 4px; }
}

/* ==== 56-site-more.css ==== */
/* =====================================================================
   Round 2 — public pages: catalog, plans, auth, checkout, verify
   ===================================================================== */

/* ---- catalog ---- */
.catalog-h { padding-block: var(--sp-12) var(--sp-8); border-block-end: 1px solid var(--line); background: var(--surface); }
.catalog-h .display { font-size: clamp(34px, 22px + 2.6vw, 56px); margin-block: var(--sp-4) var(--sp-6); max-width: 18ch; }
.catalog-h .display em { color: var(--gold-ink); }
.catalog-search { height: 54px; max-width: 720px; border-radius: 12px; }
.catalog-search input { font-size: 16px; }
.catalog { padding-block-start: var(--sp-6); }
.cat-chips { padding-block-end: var(--sp-6); border-block-end: 1px dashed var(--line-strong); margin-block-end: var(--sp-6); }
.catalog-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
.filters { position: sticky; inset-block-start: 96px; display: grid; gap: var(--sp-5); }
.fset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.fset legend { margin-block-end: 8px; font-size: 11px; letter-spacing: .12em; }
.filters-note { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: var(--sp-4); border: 1px dashed var(--gold-rule); border-radius: var(--r); font-size: 13px; color: var(--muted); }
.filters-note .icon { color: var(--gold-ink); }
.results-h { display: flex; align-items: center; gap: var(--sp-4); margin-block-end: var(--sp-5); flex-wrap: wrap; min-height: 40px; }
.active-filters { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.active-filters .chip { height: 28px; font-size: 12.5px; background: var(--gold-tint); border-color: var(--gold-rule); color: var(--ink); }
.sort { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort .select { width: auto; min-height: 36px; padding-block: 6px; font-size: 13.5px; }
.catalog-pager { justify-content: center; margin-block-start: var(--sp-10); }
.sk-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.sk-card .skeleton:first-child { border-radius: 0; }
@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .fset { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .fset legend { grid-column: 1 / -1; }
  .filters-note { display: none; }
}

/* ---- plans ---- */
.plans-h { padding-block: var(--sp-16) var(--sp-8); text-align: center; display: grid; justify-items: center; gap: var(--sp-4); }
.plans-h .display em { color: var(--gold-ink); }
.plans { display: grid; gap: var(--sp-8); }
.plans-bar { align-items: center; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); max-width: 900px; width: 100%; margin-inline: auto; }
.plan h2 { font-size: 28px; }
.plan h2 em { color: var(--gold-ink); }
.plan { position: relative; }
.plan-ribbon { position: absolute; inset-block-start: -13px; inset-inline-end: var(--sp-6); background: var(--gold); color: var(--navy); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-xs); }
.compare { max-width: 900px; width: 100%; margin-inline: auto; }
.compare .num .icon { color: var(--teal-ink); }
.faq { max-width: 900px; width: 100%; margin-inline: auto; border-block-start: 1.5px solid var(--ink); }
.faq details { border-block-end: 1px solid var(--line); padding-block: var(--sp-4); }
.faq summary { cursor: pointer; font-family: var(--font-serif); font-size: 20px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: var(--sp-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--gold-ink); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin-block-start: var(--sp-3); max-width: 70ch; }
@media (max-width: 760px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- auth ---- */
.auth-form h1 { font-size: clamp(30px, 24px + 1.2vw, 38px); margin-block: var(--sp-3) var(--sp-2); }
.auth-fields { display: grid; gap: var(--sp-4); margin-block-start: var(--sp-8); }
.input-lg { min-height: 50px; font-size: 16px; }
.auth-divider { display: flex; align-items: center; gap: var(--sp-3); margin-block: var(--sp-8) var(--sp-4); font-size: 12px; color: var(--muted); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-note { margin-block-start: var(--sp-6); font-size: 13.5px; color: var(--muted); }
.back-link { margin-inline-start: -12px; margin-block-end: var(--sp-6); }
.otp-lg { justify-content: space-between; }
.otp-lg input { width: min(58px, 13vw); height: 66px; font-size: 28px; }

/* ---- checkout ---- */
.checkout { width: 100%; max-width: 540px; display: grid; gap: var(--sp-6); }
.checkout h1 { font-size: 34px; }
.order { overflow: hidden; }
.order-item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border-block-end: 1px solid var(--line); }
.order-plate { aspect-ratio: 1; border-radius: var(--r-sm); padding: 0; }
.order-plate::after { inset: 5px; }
.order-plate .plate-numeral { font-size: 64px; inset-inline-end: 10px; }
.order-item b { display: block; font-family: var(--font-serif); font-size: 19px; font-weight: 500; color: var(--ink); }
.order-item small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-block-start: 3px; }
.order-pay { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-4) var(--sp-6); border-block-end: 1px solid var(--line); }
.order-lines { margin: 0; padding: var(--sp-3) var(--sp-6); }
.order-lines > div { display: flex; justify-content: space-between; padding-block: 8px; font-size: 14px; color: var(--muted); }
.order-lines dd { margin: 0; font-family: var(--font-mono); color: var(--ink); }
.order-lines .total { border-block-start: 3px double var(--ink); margin-block-start: var(--sp-2); padding-block-start: var(--sp-3); color: var(--ink); font-weight: 650; }
.order-lines .total dd { font-size: 24px; font-weight: 600; }
.order-f { padding: var(--sp-5) var(--sp-6) var(--sp-6); background: var(--surface-2); border-block-start: 1px solid var(--line); }
.via { text-align: center; font-size: 12.5px; color: var(--muted); margin-block-start: var(--sp-3); }
.status { text-align: center; }
.status-card { padding: var(--sp-12) var(--sp-8); display: grid; justify-items: center; gap: var(--sp-3); }
.status-card h2 { font-size: 30px; }
.status-card .muted { max-width: 42ch; }
.status-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-rule); color: var(--ink); margin-block-end: var(--sp-2); }
.status-ic.spin .icon { animation: spin 1.1s linear infinite; }
.status-ic.ok { background: var(--teal-tint); color: var(--teal-ink); border-color: var(--teal-ink); }
.status-ic.bad { background: var(--danger-tint); color: var(--danger); border-color: var(--danger); }

/* ---- certificate document (shared) ---- */
.certdoc { background: #FBF8EF; color: #2A2417; border-radius: 6px; padding: 10px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.5); }
.cd-frame { position: relative; border: 2px solid #B8962A; outline: 1px solid #B8962A; outline-offset: -8px; padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 56px); text-align: center; display: grid; gap: 6px; justify-items: center;
  background: radial-gradient(90% 70% at 50% 0%, rgba(247,193,0,.08), transparent 70%); }
.cd-bust { width: 58px; margin-block-end: 6px; }
.cd-org { font-family: var(--font-mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #8A6500; }
.cd-type { font-family: var(--font-serif); font-size: clamp(22px, 16px + 1.4vw, 32px); color: #19234F; margin-block-end: 10px; }
.cd-small { font-family: var(--font-serif); font-style: italic; font-size: 15px; color: #5a5040; }
.cd-name { font-family: var(--font-serif); font-size: clamp(28px, 20px + 2vw, 44px); color: #19234F; border-block-end: 1px solid #B8962A; padding: 0 24px 6px; margin-block: 2px 4px; }
.cd-course { font-family: var(--font-serif); font-weight: 600; font-size: clamp(18px, 14px + 1vw, 24px); color: #19234F; }
.cd-sign { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--sp-6); align-items: end; width: 100%; margin-block-start: var(--sp-6); }
.cd-sign span:not(.cd-seal) { border-block-start: 1px solid #b9ab86; padding-block-start: 6px; font-size: 12px; }
.cd-sign b { display: block; font-family: var(--font-serif); color: #19234F; font-size: 14px; }
.cd-sign small { color: #7a6c48; }
.cd-seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #19234F; background: radial-gradient(circle at 40% 35%, #F7D35A, #C99A00); box-shadow: 0 0 0 4px #FBF8EF, 0 0 0 5px #B8962A; }
.cd-id { font-family: var(--font-mono); font-size: 10.5px; color: #8A6500; letter-spacing: .06em; margin-block-start: var(--sp-4); }
.cd-id b { color: #2A2417; font-weight: 600; }

/* ---- verify ---- */
.verify { padding-block: var(--sp-12); }
.verify-h { display: grid; gap: var(--sp-3); justify-items: start; margin-block-end: var(--sp-8); }
.verify-h h1 { font-size: clamp(36px, 26px + 2vw, 54px); font-weight: 450; }
.verify-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-8); align-items: start; }
.verify-skills { padding: var(--sp-4) var(--sp-6); display: grid; gap: var(--sp-3); }
.verify-f { display: grid; gap: 8px; justify-content: stretch; }
.verify-how { margin-block-start: var(--sp-16); }
.how { list-style: none; counter-reset: h; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block-start: 1.5px solid var(--ink); }
.how li { counter-increment: h; padding: var(--sp-5) var(--sp-6) var(--sp-5) 0; }
.how li + li { border-inline-start: 1px solid var(--line); padding-inline-start: var(--sp-6); }
.how li::before { content: counter(h, upper-roman) "."; display: block; font-family: var(--font-serif); font-style: italic; font-size: 26px; color: var(--gold-ink); }
.how b { display: block; color: var(--ink); margin-block: 6px 4px; }
.how p { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .verify-grid { grid-template-columns: minmax(0, 1fr); } .how { grid-template-columns: minmax(0, 1fr); } .how li + li { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--line); } }

/* ==== 57-learner.css ==== */
/* =====================================================================
   Round 2 — learner pages
   ===================================================================== */

/* ---- my learning ---- */
.lib { display: grid; gap: var(--sp-4); }
.lib-card { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: var(--sp-6); align-items: center; padding: var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.lib-plate { aspect-ratio: 4 / 3; border-radius: var(--r-sm); padding: 0; text-decoration: none; }
.lib-plate .plate-numeral { font-size: 96px; }
.lib-plate .plate-live { inset-block-start: 10px; inset-inline-end: 10px; }
.lib-b { display: grid; gap: 6px; min-width: 0; }
.lib-b h2 { font-size: 24px; }
.lib-b h2 a { color: inherit; text-decoration: none; }
.lib-b h2 a:hover { color: var(--link); }
.lib-src { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--teal-ink); }
.lib-src.-co { color: var(--link); }
.lib-src.-ended { color: var(--danger); }
.lib-prog { display: grid; grid-template-columns: minmax(80px, 280px) auto auto; gap: var(--sp-3); align-items: center; margin-block-start: 6px; font-size: 12px; }
.lib-acts { display: grid; gap: 8px; justify-items: stretch; min-width: 150px; }
.lib-card.is-locked .lib-plate { filter: grayscale(.85) brightness(.9); }
.lib-lock { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.lib-lock .icon { width: 30px; height: 30px; }
.lib-note { font-size: 13.5px; color: var(--muted); padding: 8px 12px; border-inline-start: 2px solid var(--gold-rule); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
@media (max-width: 820px) {
  .lib-card { grid-template-columns: 110px minmax(0, 1fr); gap: var(--sp-4); }
  .lib-plate .plate-numeral { font-size: 64px; }
  .lib-acts { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .lib-prog { grid-template-columns: minmax(0, 1fr) auto; }
  .lib-prog .muted { display: none; }
}

/* ---- practice hub ---- */
.tools { align-items: stretch; }
.tool {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); text-align: start;
  padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: inherit;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2);
}
.tool:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.tool-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-rule); color: var(--ink); margin-block-end: var(--sp-2); }
.tool .badge { position: absolute; inset-block-start: var(--sp-5); inset-inline-end: var(--sp-5); }
.tool h3 { font-size: 21px; }
.tool p { font-size: 14px; color: var(--muted); flex: 1; }
.tool-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14px; color: var(--link); margin-block-start: var(--sp-2); }
.game { background: var(--stage); border-color: var(--stage-line); color: var(--stage-ink);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 7px), radial-gradient(120% 120% at 100% 0%, #22306A, var(--stage) 60%); }
.game:hover { border-color: rgba(247,193,0,.55); }
.game .tool-ic { border-color: rgba(247,193,0,.45); color: var(--gold); }
.game h3 { color: #fff; }
.game p { color: var(--stage-muted); }
.tool-no { position: absolute; inset-block-start: var(--sp-4); inset-inline-end: var(--sp-5); font-family: var(--font-serif); font-style: italic; font-size: 36px; color: rgba(247,193,0,.35); line-height: 1; }
.tool-foot { display: flex; justify-content: space-between; align-items: center; width: 100%; padding-block-start: var(--sp-3); border-block-start: 1px solid var(--stage-line); font-size: 12px; color: var(--stage-muted); }
.game .tool-go { color: var(--gold); margin: 0; }

/* ---- daily review ---- */
.rev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-8); align-items: start; }
.flashcard {
  min-height: 340px; display: grid; place-content: center; justify-items: center; text-align: center; gap: var(--sp-4); padding: var(--sp-12) var(--sp-10); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: 8px 8px 0 -1px var(--surface-2), 8px 8px 0 0 var(--line-strong), 16px 16px 0 -1px var(--canvas), 16px 16px 0 0 var(--line);
  transition: transform var(--dur-3) var(--ease);
}
.flashcard h3 { font-size: clamp(24px, 18px + 1.2vw, 34px); max-width: 24ch; line-height: 1.25; }
.flashcard .hint { font-size: 12.5px; color: var(--faint); }
.flashcard.is-flipped { background: var(--gold-tint); border-color: var(--gold-rule); }
.rate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin-block-start: var(--sp-8); }
.smb { display: grid; gap: 2px; padding: 14px 8px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.smb b { font-size: 15px; }
.smb span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.smb:hover { border-color: var(--ink); }
.smb.again { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.smb.again b { color: var(--danger); }
.smb.good { border-color: var(--teal-ink); }
.smb.good b { color: var(--teal-ink); }
.rate-hint { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 12.5px; color: var(--muted); margin-block-start: var(--sp-4); flex-wrap: wrap; }
.rev-side { display: grid; gap: var(--sp-4); }
.streak-plate { padding: var(--sp-6); border-radius: var(--r); color: var(--stage-ink); background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 7px), radial-gradient(120% 120% at 100% 0%, #22306A, var(--stage) 60%); box-shadow: inset 0 0 0 1px rgba(247,193,0,.25); }
.streak-plate .eyebrow { color: var(--stage-muted); }
.streak-plate .big { font-family: var(--font-serif); font-size: 64px; line-height: 1; color: var(--gold); margin-block: 6px; }
.streak-plate .big small { font-size: 20px; color: var(--stage-muted); font-style: italic; }
.streak-plate p:not(.big) { font-size: 13.5px; color: var(--stage-muted); }
.streak-plate .goal-days span { background: rgba(255,255,255,.1); color: var(--stage-muted); }
.streak-plate .goal-days span.on { background: var(--gold); color: var(--navy); }
.boost-card { display: grid; gap: 6px; border-block-start: 3px solid var(--gold); }
@media (max-width: 980px) { .rev-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .rate { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flashcard { padding: var(--sp-8) var(--sp-5); min-height: 260px; } }

/* ---- progress ---- */
.journey { padding: var(--sp-6); }
.journey-h { display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; font-size: 12.5px; }
.stages { list-style: none; margin: var(--sp-6) 0 var(--sp-3); padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.stages li { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.stages li b { font-family: var(--font-serif); font-weight: 500; font-size: 18px; color: var(--faint); }
.stages li.done b { color: var(--ink-2); }
.stages li.now b { color: var(--gold-ink); font-style: italic; }
.stages small { font-family: var(--font-mono); font-size: 11px; }
.journey-bar > i { background: linear-gradient(90deg, var(--blue), var(--gold)); }
.progress-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.medals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.medal { display: grid; justify-items: center; text-align: center; gap: 4px; padding: var(--sp-5) var(--sp-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.medal-disc { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-block-end: 6px; color: var(--navy);
  background: radial-gradient(circle at 38% 32%, #FFE27A, #D9A800 70%); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--gold-rule); }
.medal b { font-family: var(--font-serif); font-weight: 550; font-size: 16px; color: var(--ink); }
.medal small { font-size: 12px; color: var(--muted); }
.medal.-locked .medal-disc { background: var(--surface-3); color: var(--faint); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line-strong); }
.medal.-locked b { color: var(--muted); }
.me-row td { background: var(--gold-tint); }
@media (max-width: 980px) { .progress-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .stages li b { font-size: 13px; } .stages small { display: none; } .medals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- planner ---- */
.planner { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.plan-setup { position: sticky; inset-block-start: 84px; }
.glance-list.flush { padding: 0; }
.days-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.days-pick span { height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--line-strong); color: var(--muted); }
.days-pick span.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.plan-main { display: grid; gap: var(--sp-6); min-width: 0; }
.ready-meter { padding: var(--sp-6); display: grid; gap: var(--sp-4); }
.meter-bar { position: relative; height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--orange) 0 40%, var(--gold) 40% 70%, var(--teal) 70%); }
.needle { position: absolute; inset-block-start: -7px; width: 4px; height: 26px; margin-inline-start: -2px; border-radius: 3px; background: var(--ink); box-shadow: 0 0 0 3px var(--surface); transition: inset-inline-start var(--dur-3) var(--ease); }
.meter-l { display: flex; justify-content: space-between; margin-block-start: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.verdict { display: grid; gap: 4px; color: var(--success); }
#verdictText { font-family: var(--font-serif); font-size: 30px; }
#verdictSub { font-size: 14px; color: var(--muted); }
.figures.small { grid-template-columns: repeat(3, minmax(0, 1fr)); border-block-start: 1px solid var(--line); }
.figures.small > div { padding: var(--sp-4) var(--sp-4) 0; }
.figures.small dd { font-family: var(--font-mono); font-size: 28px; }
.cal .card-h h4 { font-family: var(--font-serif); font-size: 20px; font-weight: 500; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: var(--sp-4) var(--sp-5); }
.dow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; padding-block-end: 4px; }
.cell { min-height: 64px; min-width: 0; border-radius: var(--r-sm); border: 1px solid var(--line); padding: 6px 7px; display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); font-size: 11px; overflow: hidden; }
.cell.pad { border: 0; background: none; }
.cell .dn { font-family: var(--font-mono); font-weight: 600; color: var(--ink-2); }
.cell .hh { font-family: var(--font-mono); font-weight: 600; }
.cell .x { color: var(--faint); font-size: 10.5px; }
.cell.study { background: var(--teal-tint); border-color: color-mix(in srgb, var(--teal-ink) 30%, var(--line)); }
.cell.study .hh { color: var(--teal-ink); }
.cell.today { box-shadow: inset 0 0 0 2px var(--gold); }
.cell.black { background: repeating-linear-gradient(135deg, var(--surface-2) 0 5px, var(--surface-3) 5px 10px); }
.cell.practice { background: var(--gold-tint); border-color: var(--gold-rule); }
.cell.practice .hh { color: var(--gold-ink); }
.cal-legend { display: flex; flex-wrap: wrap; gap: var(--sp-5); padding: 0 var(--sp-5) var(--sp-4); font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sw.study { background: var(--teal-tint); border: 1px solid var(--teal-ink); }
.sw.black { background: repeating-linear-gradient(135deg, var(--surface-2) 0 3px, var(--surface-3) 3px 6px); border: 1px solid var(--line-strong); }
.sw.practice { background: var(--gold-tint); border: 1px solid var(--gold-rule); }
.sw.exam { background: var(--navy); }
.mocks { display: grid; gap: var(--sp-3); }
.mock-chart { width: 100%; height: auto; }
.mock-chart .pass { stroke: var(--teal-ink); stroke-dasharray: 4 4; stroke-width: 1.5; }
.mock-chart .pass-t { font-family: var(--font-mono); font-size: 9px; fill: var(--teal-ink); }
.mock-chart .line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mock-chart .line.dash { stroke: var(--gold-ink); stroke-dasharray: 5 5; }
.mock-chart circle { fill: var(--ink); }
.mock-chart circle.pred { fill: var(--gold); stroke: var(--gold-ink); stroke-width: 2; }
.predict { font-family: var(--font-mono); font-size: 34px; font-weight: 600; color: var(--success); line-height: 1; }
.milestones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.milestones li { position: relative; padding-block-start: 26px; text-align: center; font-size: 12.5px; }
.milestones li::before { content: ""; position: absolute; inset-block-start: 8px; inset-inline: 0; height: 2px; background: var(--line-strong); }
.milestones li:first-child::before { inset-inline-start: 50%; }
.milestones li:last-child::before { inset-inline-end: 50%; }
.milestones li::after { content: ""; position: absolute; inset-block-start: 1px; inset-inline-start: 50%; margin-inline-start: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.milestones li.done::after { background: var(--teal-ink); border-color: var(--teal-ink); }
.milestones li.now::after { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px var(--gold-tint); }
.milestones b { display: block; color: var(--ink); }
.milestones small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
@media (max-width: 1100px) { .planner { grid-template-columns: minmax(0, 1fr); } .plan-setup { position: static; } }
@media (max-width: 640px) {
  .cal-grid { gap: 3px; padding: var(--sp-3); }
  .cell { min-height: 46px; padding: 3px; font-size: 9.5px; }
  .cell .x, .dow { font-size: 9px; letter-spacing: 0; }
  .milestones { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .milestones li { text-align: start; padding: 0 0 0 28px; }
  .milestones li::before { display: none; }
  .milestones li::after { inset-inline-start: 0; margin: 0; }
}

/* ---- schedule ---- */
.agenda { list-style: none; margin: 0; padding: 0; border-block-start: 1.5px solid var(--ink); }
.ag { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: var(--sp-5); align-items: center; padding: var(--sp-5) var(--sp-2); border-block-end: 1px solid var(--line); }
.ag .cal-leaf { width: 56px; }
.ag .cal-leaf b { font-size: 22px; }
.ag-dow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ag h3 { font-size: 21px; margin-block: 2px; }
.ag p { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.ag-acts { display: flex; gap: 6px; }
.ag.is-today { background: linear-gradient(90deg, var(--gold-tint), transparent 70%); }
.ag.-exam h3 { color: var(--ink); font-style: italic; }
@media (max-width: 760px) { .ag { grid-template-columns: 56px minmax(0, 1fr); } .ag > .badge { grid-column: 2; justify-self: start; } .ag-acts { grid-column: 1 / -1; } }

/* ---- guides ---- */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.guide { display: grid; gap: var(--sp-2); align-content: start; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color var(--dur-2); }
.guide:hover { border-color: var(--line-strong); }
.guide-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-rule); color: var(--ink); }
.guide h3 { font-size: 20px; margin-block-start: var(--sp-2); }
.guide p { font-size: 14px; color: var(--muted); }
.frm { display: none; margin: var(--sp-2) 0 0; padding: var(--sp-3) var(--sp-4); background: var(--stage); color: #F2F0EA; border-radius: var(--r-sm); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; box-shadow: inset 3px 0 0 var(--gold); }
.guide.open .frm { display: block; }
.guide-more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--link); }
.guide.open .guide-more { display: none; }
@media (max-width: 980px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .guide-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- settings ---- */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
.settings-nav { display: grid; gap: 2px; position: sticky; inset-block-start: 84px; }
.settings-nav button { display: flex; align-items: center; gap: var(--sp-3); padding: 9px var(--sp-3); border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); font-size: 14px; font-weight: 550; text-align: start; }
.settings-nav button .icon { width: 18px; height: 18px; color: var(--muted); }
.settings-nav button:hover { background: var(--surface-2); }
.settings-nav button.on { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--gold), 0 0 0 1px var(--line); }
.set-grid { display: grid; gap: var(--sp-5); max-width: 560px; }
.set-grid .field + .field { margin: 0; }
.set-grid .switch { margin-block-start: 6px; }
.avatar-edit { display: flex; align-items: center; gap: var(--sp-5); }
.avatar-edit .hint { font-size: 12.5px; color: var(--muted); margin-block-start: 6px; }
.plan-now { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-4); align-items: center; padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.plan-now h4 { margin-block: 4px; }
.plan-now .muted { font-size: 13.5px; }
.plan-seal { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); }
.plan-seal.off { background: var(--surface-3); color: var(--muted); }
@media (max-width: 900px) {
  .settings { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; display: flex; overflow-x: auto; }
  .settings-nav button { white-space: nowrap; }
  .plan-now { grid-template-columns: minmax(0, 1fr); }
  .plan-seal { display: none; }
}
.planner .task { grid-template-columns: 22px minmax(0, 1fr); }
.mock-chart { max-height: 150px; }

/* ==== 58-live.css ==== */
/* =====================================================================
   Round 3 — live programs: the meeting room, session calendars,
   program pages, attendance reports
   ===================================================================== */

/* ---- program colours (calendar chips, dots) ---- */
.p-ctp { --pc: #007DB6; }
.p-neg { --pc: #E74B22; }
.p-fc  { --pc: #16808C; }
.p-ld  { --pc: #B8962A; }
.p-mile { --pc: #C9A227; }
.p-exam { --pc: #19234F; }
.pdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--pc, var(--muted)); margin-inline-end: 8px; vertical-align: 1px; flex: 0 0 auto; }
:root[data-theme="dark"] .p-exam { --pc: #F2F0EA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .p-exam { --pc: #F2F0EA; } }

/* =====================================================================
   The room — always dark, fills the viewport
   ===================================================================== */
.layout-room { color-scheme: dark; background: var(--stage); color: var(--stage-ink); }
.room {
  height: 100dvh; display: flex; flex-direction: column; min-height: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 1px, transparent 1px 7px), radial-gradient(120% 90% at 85% -10%, #1F2B60, var(--stage) 55%);
}
.room-live { display: contents; }

/* top bar */
.room-top { display: flex; align-items: center; gap: var(--sp-4); padding: 10px var(--sp-5); border-block-end: 1px solid var(--stage-line); flex: 0 0 auto; }
.room-brand img { width: 34px; height: 34px; border-radius: 8px; background: #fff; padding: 3px; }
.rt-title { min-width: 0; }
.rt-eyebrow { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--stage-muted); }
.rt-title h1 { font-size: 21px; line-height: 1.15; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-title h1 em { color: var(--gold); }
.rt-meta { margin-inline-start: auto; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; justify-content: flex-end; }
.rt-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding-inline: 11px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--stage-line); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
#recChip .icon { color: var(--orange); }
.rt-role { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding-inline: 11px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.rt-role.-host { background: var(--gold); color: var(--navy); }
.rt-role.-coord { background: var(--teal); color: var(--navy); }

/* tool bar (speaker, coordinator) — .atool comes from the arena styles */
.room-tools { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 8px var(--sp-5); border-block-end: 1px solid var(--stage-line); flex: 0 0 auto; }
.room-tools .atool.spacer { margin-inline-start: auto; }
.atool .count { margin-inline-start: 2px; padding: 1px 7px; border-radius: 99px; background: var(--orange); color: #fff; font-size: 11px; }

/* body: stage + side panel */
.room-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.room-stage { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); }
.stage-main { position: relative; min-height: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--stage-line); background: radial-gradient(90% 80% at 50% 30%, #243370, #121A3E 70%); }
.sv { position: absolute; inset: 0; display: none; padding: var(--sp-6); overflow: auto; }
.stage-main[data-view="speaker"] .sv-speaker,
.stage-main[data-view="share"] .sv-share,
.stage-main[data-view="wb"] .sv-wb,
.stage-main[data-view="breakout"] .sv-breakout,
.stage-main[data-view="question"] .sv-question,
.stage-main[data-view="results"] .sv-results,
.stage-main[data-view="green"] .sv-green { display: flex; flex-direction: column; animation: rise var(--dur-2) var(--ease); }

/* speaker spotlight */
.sv-speaker { align-items: center; justify-content: center; gap: var(--sp-4); text-align: center; }
.spot { position: relative; display: grid; place-items: center; }
.spot .avatar.xl { --av: 132px; font-size: 44px; box-shadow: 0 0 0 4px rgba(247,193,0,.9), 0 0 0 14px rgba(247,193,0,.12); }
.spot-wave { position: absolute; inset-block-end: -30px; display: flex; gap: 4px; align-items: flex-end; height: 18px; }
.spot-wave i { width: 4px; height: 6px; border-radius: 2px; background: var(--gold); animation: wave 1s var(--ease) infinite; }
.spot-wave i:nth-child(2) { animation-delay: .15s; } .spot-wave i:nth-child(3) { animation-delay: .3s; } .spot-wave i:nth-child(4) { animation-delay: .45s; } .spot-wave i:nth-child(5) { animation-delay: .6s; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 18px; } }
.spot-name { margin-block-start: var(--sp-6); }
.spot-name b { display: block; color: #fff; font-family: var(--font-serif); font-size: 24px; font-weight: 500; }
.spot-name small { color: var(--stage-muted); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; }
.captions { max-width: 62ch; margin-block-start: var(--sp-4); padding: 10px 14px; border-radius: 10px; background: rgba(5,8,24,.55); color: #fff; font-size: 15px; line-height: 1.5; text-align: start; }
.captions .cc { display: inline-block; margin-inline-end: 8px; padding: 0 5px; border: 1px solid var(--stage-muted); border-radius: 4px; font-size: 10px; color: var(--stage-muted); }

/* shared screen */
.sv-share { align-items: center; justify-content: center; gap: var(--sp-3); }
.share-slide { position: relative; width: min(100%, 760px); aspect-ratio: 16 / 9; padding: 7% 8%; border-radius: 12px; color: #EEF2F8; background: linear-gradient(150deg, #19234F, #2C3D7A); box-shadow: 0 30px 60px -30px #000, inset 0 0 0 1px rgba(247,193,0,.35); display: flex; flex-direction: column; justify-content: center; }
.share-slide .eyebrow { color: var(--gold); }
.share-slide h2 { color: #fff; font-size: clamp(24px, 3vw, 40px); margin-block: 8px 14px; }
.share-slide ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; font-family: var(--font-serif); font-size: clamp(15px, 1.6vw, 20px); }
.share-slide li::marker { color: var(--gold); }
.share-pg { position: absolute; inset-block-end: 14px; inset-inline-end: 18px; font-size: 11px; color: var(--stage-muted); }
.share-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--stage-muted); }

.sv-wb { justify-content: center; }
.sv-wb .wb { max-width: 820px; margin-inline: auto; width: 100%; }
.sv-breakout { gap: var(--sp-4); }
.bk-broadcast { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.bk-broadcast .input { flex: 1 1 240px; }

/* question + results */
.sv-question .qhead h2 { max-width: 30ch; }
.kans { text-align: start; }
.kans.dim { opacity: .38; }
.kans.correct { border-color: var(--teal); background: rgba(119,203,213,.16); }
.kans.correct::after { content: ""; position: absolute; inset-block-start: -8px; inset-inline-end: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319234F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.kgrid:not(.-host) .kans { min-height: 72px; font-size: 17px; }
.q-foot { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-block-start: var(--sp-4); }
.q-foot p { flex: 1 1 220px; color: var(--stage-muted); font-size: 14px; }
.q-foot .t-good { color: var(--teal); font-weight: 700; } .q-foot .t-bad { color: #FF8A6A; font-weight: 700; }
.q-meter { font-size: 12.5px; color: var(--stage-muted); } .q-meter b { color: #fff; }
.res-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--sp-6); }
.res-dist h2 { color: #fff; font-size: clamp(20px, 1.8vw, 26px); margin-block: 6px var(--sp-4); }
.res-bars { display: grid; gap: 10px; }
.res-bar { display: grid; grid-template-columns: 16px minmax(0, 11em) minmax(0, 1fr) 30px; gap: 10px; align-items: center; font-size: 13.5px; }
.res-bar .rb-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-track { height: 12px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.rb-track i { display: block; height: 100%; border-radius: inherit; background: var(--stage-muted); transition: width .8s var(--ease); }
.res-bar.-right .rb-track i { background: var(--teal); }
.res-bar.-right .rb-l { color: #fff; font-weight: 700; }
.res-you { margin-block-start: var(--sp-4); color: var(--stage-muted); }
.res-you .t-good { color: var(--teal); font-weight: 700; }
.res-lb .qn { display: block; margin-block-end: var(--sp-3); }

/* green room */
.sv-green { justify-content: center; }
.green { max-width: 560px; margin-inline: auto; display: grid; gap: var(--sp-4); }
.green h2 { color: #fff; font-size: clamp(26px, 2.4vw, 36px); }
.green h2 em { color: var(--gold); }
.green-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--stage-ink); }
.green-checks li { display: flex; align-items: center; gap: 10px; }
.green-checks .icon { color: var(--teal); }
.green .btn { justify-self: start; }

.stage-note { position: absolute; inset-block-start: 14px; inset-inline: 14px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(247,193,0,.14); border: 1px solid rgba(247,193,0,.5); color: #fff; font-size: 14px; }
.stage-note .icon { color: var(--gold); }
.react-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.float-react { position: absolute; inset-block-end: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); animation: float-up 1.8s var(--ease) forwards; }
@keyframes float-up { from { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-20px) scale(1); } to { transform: translateY(-260px) scale(.9); opacity: 0; } }

/* participant strip */
.room-strip { display: flex; gap: 8px; overflow-x: auto; padding-block-end: 2px; scrollbar-width: thin; }
.rtile { position: relative; flex: 0 0 148px; aspect-ratio: 16 / 10; border-radius: 10px; border: 1px solid var(--stage-line); display: grid; place-items: center; overflow: hidden; background: linear-gradient(155deg, #2C3D7A, #161E45); }
.rtile.a1 { background: linear-gradient(155deg, #7A3A2A, #2A1712); }
.rtile.a2 { background: linear-gradient(155deg, #1F5F86, #132F45); }
.rtile.a4 { background: linear-gradient(155deg, #3D4A58, #1E262E); }
.rtile.a5 { background: linear-gradient(155deg, #2E7F8A, #153C42); }
.rtile.a6 { background: linear-gradient(155deg, #6B5A1C, #2A230B); }
.rtile .avatar { --av: 40px; opacity: .55; }
.rtile.-nocam { background: #151C3D; }
.rtile.-nocam .avatar { opacity: 1; }
.rt-name { position: absolute; inset-block-end: 6px; inset-inline-start: 6px; max-width: calc(100% - 40px); padding: 1px 7px; border-radius: 5px; background: rgba(8,12,30,.6); font-size: 11.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-hand { position: absolute; inset-block-start: 6px; inset-inline-start: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); }
.rtile .mic-state { position: absolute; inset-block-end: 6px; inset-inline-end: 6px; }
.rtile.-more { background: rgba(255,255,255,.04); display: grid; place-content: center; text-align: center; gap: 2px; font-size: 12px; color: var(--stage-muted); }
.rtile.-more b { font-size: 20px; color: #fff; }
.mic-state { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--stage-ink); flex: 0 0 auto; }
.mic-state .icon:last-child { display: none; }
.mic-state.off { background: rgba(231,75,34,.9); color: #fff; }
.mic-state.off .icon:first-child { display: none; }
.mic-state.off .icon:last-child { display: block; }

/* side panel */
.room-side { min-height: 0; display: flex; flex-direction: column; border-inline-start: 1px solid var(--stage-line); background: rgba(8,12,30,.35); }
.rs-tabs { display: flex; gap: 0; scrollbar-width: none; padding: 8px 8px 0; border-block-end: 1px solid var(--stage-line); overflow-x: auto; flex: 0 0 auto; }
.rs-tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 7px 11px; border: 0; background: none; color: var(--stage-muted); font-size: 13px; font-weight: 650; border-block-end: 2px solid transparent; }
.rs-tabs button.on { color: #fff; border-block-end-color: var(--gold); }
.rs-tabs .count { font-family: var(--font-mono); font-size: 11px; padding: 0 6px; border-radius: 99px; background: rgba(255,255,255,.1); }
.rs-panel { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.rs-panel[hidden] { display: none; }
.rs-summary { display: flex; gap: var(--sp-4); font-size: 12.5px; color: var(--stage-muted); }
.rs-summary b { color: #fff; }
.edot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 5px; }
.edot.-on { background: var(--teal); } .edot.-idle { background: var(--gold); } .edot.-away { background: #FF8A6A; }
.rs-switch { font-size: 13px; color: var(--stage-ink); }
.layout-room .switch input:checked { background: var(--teal-ink); border-color: var(--teal-ink); }
.rs-h { font-size: 12px; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--stage-muted); margin-block-start: var(--sp-2); }

.ppl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ppl-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.ppl-row:hover { background: rgba(255,255,255,.04); }
.ppl-n { flex: 1; min-width: 0; }
.ppl-n b { display: block; font-size: 13.5px; color: #fff; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppl-n small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--stage-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppl-role { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; }
.ppl-role.-Speaker { background: var(--gold); color: var(--navy); }
.ppl-role.-Coordinator { background: var(--teal); color: var(--navy); }
.ppl-hand { color: var(--gold); }
.ppl-eng { display: grid; grid-template-columns: 56px; justify-items: end; gap: 2px; }
.ppl-eng .bar { width: 56px; height: 5px; background: rgba(255,255,255,.1); }
.ppl-eng .mono { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; }
.ppl-eng.-on .mono { color: var(--teal); }
.ppl-eng.-idle .mono { color: var(--gold); } .ppl-eng.-idle .bar > i { background: var(--gold); }
.ppl-eng.-away .mono { color: #FF8A6A; } .ppl-eng.-away .bar > i { background: var(--orange); }
.ppl-menu > summary { list-style: none; }
.ppl-menu > summary::-webkit-details-marker { display: none; }
.ppl-more { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--stage-muted); cursor: pointer; }
.ppl-more:hover { background: rgba(255,255,255,.08); color: #fff; }
.ppl-menu .menu-pop { inset-inline-end: 0; inset-inline-start: auto; min-width: 230px; }
.ppl-menu .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; background: none; text-align: start; font-size: 13.5px; border-radius: 6px; color: var(--ink); }
.ppl-menu .menu-pop button:hover { background: var(--surface-2); }
.ppl-row.-wait { flex-wrap: wrap; border: 1px solid var(--stage-line); }
.ppl-row.-flag { border-color: rgba(247,193,0,.45); background: rgba(247,193,0,.05); }
.ppl-row.-flag small { white-space: normal; }
.ppl-row.-flag small .icon { color: var(--gold); }
.wait-acts { display: flex; gap: 6px; margin-inline-start: auto; }
.wait-h { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.wait-h b { color: #fff; }

.chat { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); flex: 1; align-content: start; }
.chat li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; }
.chat b { color: #fff; font-size: 13px; margin-inline-end: 6px; }
.chat .mono { font-size: 10.5px; color: var(--stage-muted); }
.chat p { font-size: 13.5px; color: var(--stage-ink); margin-block-start: 1px; }
.chat li.-staff p { color: #fff; }
.chat li.-hidden p { font-style: italic; color: var(--stage-muted); }
.chat-hide { width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--stage-muted); opacity: 0; }
.chat li:hover .chat-hide, .chat-hide:focus-visible { opacity: 1; }
.chat-hide:hover { background: rgba(255,255,255,.08); color: #fff; }
.chat-form { display: flex; gap: 6px; padding-block-start: var(--sp-2); border-block-start: 1px solid var(--stage-line); margin-block-start: auto; position: sticky; inset-block-end: -16px; background: #0D1331; padding-block-end: 4px; }
.chat-form .input { flex: 1; }
.qa { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); align-content: start; }
.qa li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
.qa p { font-size: 14px; color: #fff; }
.qa small { font-size: 11.5px; color: var(--stage-muted); }
.qa li.-answered { opacity: .6; }
.qa-up { display: grid; justify-items: center; gap: 0; padding: 4px 0; border-radius: 8px; border: 1px solid var(--stage-line); background: rgba(255,255,255,.04); color: var(--stage-muted); font-size: 12px; }
.qa-up.on { border-color: var(--gold); color: var(--gold); }

.att-kpis { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.att-kpis > div { padding: 10px; border-radius: 10px; border: 1px solid var(--stage-line); background: rgba(255,255,255,.03); }
.att-kpis dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--stage-muted); }
.att-kpis dd { margin: 4px 0 0; font-size: 22px; color: #fff; }
.att-kpis dd small { font-size: 12px; color: var(--stage-muted); }
.att-log td { font-size: 12.5px; }

/* question launcher */
.ql { display: grid; gap: var(--sp-3); }
.ql-h { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.ql-h b { color: #fff; }
.ql-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ql-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; border: 1px solid var(--stage-line); background: rgba(255,255,255,.03); }
.ql-item.-next { border-color: rgba(247,193,0,.55); }
.ql-item.-live { border-color: var(--orange); background: rgba(231,75,34,.1); }
.ql-item.-done { opacity: .62; }
.ql-n { font-size: 12px; color: var(--gold); }
.ql-q { font-size: 13px; color: #fff; line-height: 1.35; }
.ql-q small { display: block; margin-block-start: 3px; font-size: 10.5px; color: var(--stage-muted); }

/* dock */
.room-dock { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: 10px var(--sp-5); border-block-start: 1px solid var(--stage-line); background: rgba(5,8,24,.5); }
.dock-group { display: flex; align-items: center; gap: 6px; }
.dock-btn { display: grid; justify-items: center; gap: 3px; min-width: 62px; padding: 2px 4px; border: 0; background: none; color: var(--stage-ink); font-size: 11.5px; font-weight: 600; text-decoration: none; border-radius: 10px; }
.dock-btn .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid var(--stage-line); transition: background var(--dur-2); }
.dock-btn:hover .ic { background: rgba(255,255,255,.16); }
.dock-btn .ic .icon:nth-child(2) { display: none; }
.dock-btn.off .ic { background: rgba(231,75,34,.9); border-color: transparent; color: #fff; }
.dock-btn.off .ic .icon:first-child { display: none; }
.dock-btn.off .ic .icon:nth-child(2) { display: block; }
.dock-btn.on .ic { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.dock-btn.on .ic .icon:first-child { display: none; }
.dock-btn.on .ic .icon:nth-child(2) { display: block; }
#handBtn.on .ic .icon:first-child { display: block; }
.dock-btn.-warn .ic { border-color: rgba(247,193,0,.5); color: var(--gold); }
.dock-btn.-leave .ic { background: #C23D17; border-color: #C23D17; color: #fff; }
.dock-btn.-leave:hover .ic { background: #E74B22; }
.dock-react { display: flex; gap: 4px; padding: 4px; border-radius: 99px; border: 1px solid var(--stage-line); background: rgba(255,255,255,.04); }
.dock-react button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--stage-ink); display: grid; place-items: center; }
.dock-react button:hover { background: rgba(255,255,255,.1); color: var(--gold); }

/* lobby (before joining) */
.lobby { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-10); align-items: center; padding: var(--sp-10) clamp(16px, 5vw, 72px); overflow: auto; }
.lobby-preview { display: grid; gap: var(--sp-4); }
.lp-cam { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); display: grid; place-items: center; background: linear-gradient(155deg, #2C3D7A, #121A3E); border: 1px solid var(--stage-line); }
.lp-cam .avatar.xl { --av: 110px; font-size: 38px; }
.lp-tag { position: absolute; inset-block-end: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: rgba(8,12,30,.6); font-size: 12px; }
.lp-controls { display: flex; justify-content: center; gap: var(--sp-3); }
.lp-devices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); align-items: end; }
.lp-devices .field + .field { margin: 0; }
.lp-meter { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-3); }
.lvl { display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.lvl i { width: 6px; border-radius: 2px; background: var(--teal); animation: wave 1.2s var(--ease) infinite; }
.lvl i:nth-child(2n) { animation-delay: .2s; } .lvl i:nth-child(3n) { animation-delay: .4s; } .lvl i:nth-child(n+6) { background: rgba(255,255,255,.18); animation: none; height: 5px; }
.lobby-info { display: grid; gap: var(--sp-5); max-width: 520px; }
.lobby-info h2 { color: #fff; font-size: clamp(28px, 2.6vw, 40px); }
.lobby-info h2 em { color: var(--gold); }
.lobby-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lobby-ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; color: var(--stage-ink); }
.lobby-ticks .icon { color: var(--gold); margin-block-start: 2px; }
.lobby-who { display: flex; align-items: center; }
.lobby-who .avatar { margin-inline-end: -6px; box-shadow: 0 0 0 2px var(--stage); }
.lobby-who .muted { margin-inline-start: 14px; font-size: 13px; color: var(--stage-muted); }

/* ended */
.room-ended { flex: 1; display: grid; place-items: center; padding: var(--sp-8) var(--sp-4); overflow: auto; }
.ended-card { width: min(100%, 640px); display: grid; gap: var(--sp-5); padding: var(--sp-8); border-radius: var(--r-lg); border: 1px solid var(--stage-line); background: rgba(255,255,255,.03); }
.ended-card h2 { color: #fff; font-size: clamp(28px, 2.6vw, 38px); }
.ended-card h2 em { color: var(--gold); }
.ended-stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.ended-stats > div { padding: var(--sp-3); border-radius: 10px; border: 1px solid var(--stage-line); }
.ended-stats dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--stage-muted); }
.ended-stats dd { margin: 6px 0 0; font-family: var(--font-mono); font-size: 24px; color: #fff; }
.ended-stats dd small { font-family: var(--font-sans); font-size: 12px; color: var(--stage-muted); }
.ended-stats dd.ok { display: flex; align-items: center; gap: 6px; color: var(--teal); }
.ended-rate { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.stars-in { display: flex; gap: 2px; }
.stars-in button { width: 34px; height: 34px; border: 0; background: none; color: var(--stage-muted); display: grid; place-items: center; }
.stars-in button.on { color: var(--gold); }
.stars-in button.on .icon { fill: currentColor; }
.ended-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ended-next li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--stage-line); }
.ended-next li > span { flex: 1; }
.ended-next b { display: block; color: #fff; font-size: 14px; }
.ended-next small { color: var(--stage-muted); font-size: 12.5px; }
.ended-next .icon { color: var(--gold); }

/* quick question modal */
.qq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qq-o { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); }
.qq-o .input { flex: 1; min-width: 0; }
.qq-o input[type=radio] { accent-color: var(--teal-ink); width: 18px; height: 18px; }

/* room responsive */
@media (max-width: 1100px) { .room-body { grid-template-columns: minmax(0, 1fr) 300px; } .res-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .room { height: auto; min-height: 100dvh; }
  .room-body { grid-template-columns: minmax(0, 1fr); }
  .stage-main { min-height: 440px; }
  .room-side { border-inline-start: 0; border-block-start: 1px solid var(--stage-line); max-height: 560px; }
  .room-dock { position: sticky; inset-block-end: 0; z-index: 5; background: #0A0F28; overflow-x: auto; }
  .lobby { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); padding-block: var(--sp-6); }
  .ended-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .room-top { padding-inline: var(--sp-3); gap: var(--sp-2); flex-wrap: wrap; }
  .rt-meta { width: 100%; justify-content: flex-start; margin-inline-start: 0; }
  .rt-hide, #recChip { display: none; }
  .room-tools { padding-inline: var(--sp-3); flex-wrap: nowrap; overflow-x: auto; }
  .room-tools .atool { flex: 0 0 auto; }
  .room-stage { padding: var(--sp-3); }
  .sv { padding: var(--sp-4); }
  .stage-main { min-height: 460px; }
  .spot .avatar.xl { --av: 96px; font-size: 32px; }
  .rtile { flex-basis: 112px; }
  .room-dock { gap: var(--sp-2); padding-inline: var(--sp-2); justify-content: flex-start; }
  .dock-btn { min-width: 50px; } .dock-btn .ic { width: 40px; height: 40px; }
  .dock-btn .t { font-size: 10.5px; }
  .dock-react { display: none; }
  .res-bar { grid-template-columns: 16px minmax(0, 1fr) 30px; } .res-bar .rb-track { grid-column: 2 / 4; grid-row: 2; }
  .lp-devices, .qq-opts { grid-template-columns: minmax(0, 1fr); }
  .ended-card { padding: var(--sp-5); }
}

/* =====================================================================
   Session calendars and program pages (app + site themes)
   ===================================================================== */
.next-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-8); align-items: center; margin-block-end: var(--sp-10);
  padding: var(--sp-8); border-radius: var(--r-lg); color: var(--stage-ink);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 7px), radial-gradient(130% 110% at 90% -10%, #22306A, var(--stage) 60%);
  box-shadow: inset 0 0 0 1px rgba(247,193,0,.25);
}
.next-hero .qn { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--stage-muted); }
.next-hero h2 { color: #fff; font-size: clamp(28px, 2.6vw, 38px); margin-block: 8px; }
.next-hero h2 em { color: var(--gold); }
.nh-meta { display: flex; align-items: center; gap: 8px; color: var(--stage-muted); font-size: 14px; }
.nh-prep, .nh-checks { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; color: var(--stage-ink); }
.nh-prep li, .nh-checks li { display: inline-flex; align-items: center; gap: 8px; }
.nh-prep .icon { color: var(--gold); }
.nh-checks li { color: var(--stage-muted); }
.nh-checks li.ok { color: var(--stage-ink); }
.nh-checks li.ok .icon { color: var(--teal); }
.nh-side { display: grid; justify-items: center; gap: 10px; padding-inline-start: var(--sp-8); border-inline-start: 1px solid var(--stage-line); text-align: center; }
.nh-side .label { color: var(--stage-muted); }
.nh-count { font-size: clamp(34px, 3.6vw, 48px); color: #fff; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.nh-join { min-width: 240px; justify-content: center; }
.nh-join:disabled { background: rgba(255,255,255,.08); border: 1px solid var(--stage-line); color: var(--stage-muted); cursor: not-allowed; opacity: 1; }
.nh-add { color: var(--stage-ink); }
.nh-add:hover { color: #fff; background: rgba(255,255,255,.08); }
.next-hero .badge-live { font-size: 10px; }

.prog-card { padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.pc-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.pc-h .pdot { margin-block-start: 9px; }
.pc-h h3 { font-size: 20px; }
.pc-h small { color: var(--muted); font-size: 13px; }
.pc-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); padding-block: var(--sp-3); border-block: 1px solid var(--line); }
.pc-stats dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pc-stats dd { margin: 3px 0 0; color: var(--ink); font-size: 16px; }
.pc-f { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; font-size: 13px; }

.sdots { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.sd { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); background: transparent; display: inline-block; flex: 0 0 auto; }
.sd.-attended { background: var(--teal-ink); border-color: var(--teal-ink); }
.sd.-late { background: linear-gradient(90deg, var(--teal-ink) 50%, transparent 50%); border-color: var(--teal-ink); }
.sd.-missed { border-color: var(--danger); background: repeating-linear-gradient(135deg, transparent 0 3px, color-mix(in srgb, var(--danger) 45%, transparent) 3px 5px); }
.sd.-today { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); }
.sd.-up { border-style: dashed; }
.sd-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: calc(var(--sp-8) * -1 + var(--sp-3)) 0 var(--sp-10); font-size: 12.5px; color: var(--muted); }
.sd-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sd-legend .sd { width: 12px; height: 12px; border-width: 1.5px; box-shadow: none; }

/* calendar */
.scal { padding: 0; overflow: hidden; }
.scal-bar { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-4) var(--sp-5); border-block-end: 1px solid var(--line); }
.scal-nav { display: flex; align-items: center; gap: 6px; }
.scal-nav.is-off { visibility: hidden; }
.scal-label { min-width: 11ch; text-align: center; font-size: 21px; }
.scal-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.scal-filters .chip { display: inline-flex; align-items: center; }
.scal-filters .chip:not(.on) { opacity: .55; text-decoration: line-through; }
.scal-filters .chip.on { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.scal-bar > .segmented { margin-inline-start: auto; }
.scal-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-block-end: 1px solid var(--line); }
.scal-dow span { padding: 8px 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.scal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.scal-cell { min-height: 108px; padding: 6px; display: flex; flex-direction: column; gap: 4px; border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); min-width: 0; }
.scal-cell:nth-child(7n) { border-inline-end: 0; }
.scal-cell.-out { background: var(--surface-2); }
.scal-cell.-out .scal-d { color: var(--faint); }
.scal-cell.-past:not(.-out) { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.scal-d { font-size: 12px; color: var(--muted); padding: 2px 4px; align-self: flex-start; border-radius: 6px; }
.scal-cell.-today .scal-d { background: var(--gold); color: var(--on-gold); font-weight: 700; }
.scal-cell.-today { box-shadow: inset 0 0 0 2px var(--gold); }
.scal-ev {
  display: block; width: 100%; text-align: start; padding: 4px 6px; border: 0; border-radius: 6px; font-size: 12px; line-height: 1.3; color: var(--ink); text-decoration: none; cursor: pointer;
  background: color-mix(in srgb, var(--pc) 13%, var(--surface)); box-shadow: inset 3px 0 0 var(--pc);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scal-ev b { font-weight: 600; font-size: 11px; color: var(--muted); }
.scal-ev:hover { background: color-mix(in srgb, var(--pc) 24%, var(--surface)); }
.scal-ev.-past { opacity: .6; }
.scal-ev.-today { background: var(--pc); color: #fff; }
.scal-ev.-today b { color: rgba(255,255,255,.85); }
.scal-ev[hidden] { display: none; }
.scal .agenda { border-block-start: 0; padding-inline: var(--sp-5); }
.ag h3 .pdot { vertical-align: 4px; }

/* dashboard next-live row */
.next-live { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: var(--sp-4) var(--sp-6) 0; padding: 12px; border-radius: var(--r); background: var(--gold-tint); border: 1px solid var(--gold-rule); }
.nl-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.next-live .label { display: block; font-size: 10px; color: var(--gold-ink); }
.next-live b { display: block; color: var(--ink); font-size: 14.5px; }
.next-live small { color: var(--muted); font-size: 12px; }

/* instructor */
.prep-list { list-style: none; margin: 0; padding: 0; }
.prep-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-6); border-block-end: 1px solid var(--line); }
.prep-list li:last-child { border-block-end: 0; }
.prep-list b { display: block; font-size: 14.5px; color: var(--ink); }
.prep-list small { color: var(--muted); font-size: 12.5px; }
.prep-meter { display: flex; gap: 3px; }
.prep-meter i { width: 14px; height: 6px; border-radius: 3px; background: var(--surface-3); }
.prep-meter i.on { background: var(--teal-ink); }
.prep-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-6); align-items: start; }
.prep-side { display: grid; gap: var(--sp-4); position: sticky; inset-block-start: calc(var(--topbar) + var(--sp-4)); }
.kq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.kq-list .kq.rep-row { padding: var(--sp-4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); align-items: stretch; }
.kq-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; }
.kq-n { font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.kq-q { font-weight: 600; }
.kq-acts { display: flex; }
.kq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kq-o { display: flex; align-items: center; gap: 10px; padding-inline-start: 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); }
.kq-o .input { border: 0; background: transparent; }
.kq-f { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }
.field.inline { display: flex; align-items: center; gap: 8px; margin: 0; }
.field.inline + .field.inline { margin: 0; }
.field.inline .select { height: 34px; }
.slide-thumbs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-block-start: var(--sp-4); }
.slide-thumbs span { aspect-ratio: 16 / 9; border-radius: 6px; display: grid; place-items: end start; padding: 4px 6px; font-family: var(--font-mono); font-size: 10px; color: #fff; background: linear-gradient(150deg, #19234F, #2C3D7A); }
.slide-thumbs span.on { box-shadow: 0 0 0 2px var(--gold); }

/* coordinator */
.alerts { list-style: none; margin: 0; padding: 0; }
.alerts li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-6); border-block-end: 1px solid var(--line); }
.alerts li:last-child { border-block-end: 0; }
.alerts b { display: block; font-size: 14.5px; color: var(--ink); }
.alerts small { color: var(--muted); font-size: 12.5px; }
.alerts .-danger > .icon { color: var(--danger); }
.alerts .-warn > .icon { color: var(--gold-ink); }
.ledger tr.is-live td { background: color-mix(in srgb, var(--danger-fill) 6%, transparent); }
.danger-zone summary { display: inline-flex; align-items: center; gap: 8px; color: var(--danger); font-weight: 600; cursor: pointer; }

/* reports */
.eng-score { display: inline-grid; grid-template-columns: 80px auto; gap: 8px; align-items: center; }
.eng-score .bar { height: 6px; }
.eng-score b { font-size: 13px; }
.eng-score.-mid .bar > i { background: linear-gradient(90deg, #D9A800, var(--gold)); }
.eng-score.-low .bar > i, .eng-score.-none .bar > i { background: var(--orange); }
.eng-score.-low b { color: var(--danger); }
.rep-note { justify-content: flex-start; font-size: 12.5px; align-items: flex-start; }
.q-results { list-style: none; margin: 0; padding: var(--sp-2) var(--sp-6) var(--sp-4); }
.q-results li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 110px 40px; gap: var(--sp-3); align-items: center; padding-block: 10px; border-block-end: 1px solid var(--line); font-size: 13.5px; }
.q-results li:last-child { border-block-end: 0; }
.qr-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poll-res { display: grid; gap: 12px; }
.poll-res > div { display: grid; grid-template-columns: minmax(0, 1fr) 140px 40px; gap: var(--sp-3); align-items: center; font-size: 14px; }

/* company matrix */
.matrix th.mx-h, .matrix td.mx { text-align: center; padding-inline: 4px; }
.mx-h { font-weight: 500; }
.mx-h span { display: block; }
.mx-h small { font-size: 10px; color: var(--muted); letter-spacing: 0; text-transform: none; }
.mx-h.-up { opacity: .55; }
.mx-c { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; vertical-align: middle; }
.mx-c.-A { background: var(--teal-ink); color: #fff; }
.mx-c.-L, .mx-c.-E { background: var(--gold-tint); color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--gold-rule); }
.mx-c.-X { background: var(--danger-tint); color: var(--danger); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 40%, transparent); }
.mx-c.-U { border: 1.5px dashed var(--line-strong); }
.mx-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.mx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mx-legend .mx-c { width: 18px; height: 18px; }
.stat-tile .stat.-sm { font-size: 22px; }

/* admin program builder */
.wd-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.wd-pick button { height: 36px; min-width: 50px; padding-inline: 10px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 13px; }
.wd-pick button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.rule-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.rule-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: var(--sp-3); align-items: center; padding: 6px 10px; border-block-end: 1px solid var(--line); font-size: 13.5px; }
.rule-list li:last-child { border-block-end: 0; }
.rule-list .mono { color: var(--gold-ink); font-size: 12px; }
.rule-list small { color: var(--muted); font-size: 11.5px; }
.rule-list li.-skipped { color: var(--faint); text-decoration: line-through; background: var(--surface-2); }
.rule-list li.-skipped button { text-decoration: none; }

/* program page */
.cadence { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-block: var(--sp-4); padding: 10px 14px; border-radius: var(--r-sm); background: var(--gold-tint); border: 1px solid var(--gold-rule); font-size: 14px; }
.cadence .icon { color: var(--gold-ink); }
.cadence b { color: var(--ink); }
.cadence span { color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; }
.plate-live-prog .plate-numeral { font-size: 104px; }
.enrol-status.-soon { font-size: 13px; }
.enrol-status.-soon .icon { color: var(--gold-ink); }
.enrol-b .sdots { margin-block: 10px; }
.enrol-b .sd { width: 18px; height: 18px; }
.psched { list-style: none; margin: 0; padding: 0; border-block-start: 1.5px solid var(--ink); }
.ps { display: grid; grid-template-columns: 28px 52px minmax(0, 1fr) auto; gap: var(--sp-4); align-items: center; padding: var(--sp-3) var(--sp-2); border-block-end: 1px solid var(--line); }
.ps-n { color: var(--gold-ink); font-size: 13px; }
.ps .cal-leaf { width: 52px; }
.ps-t b { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 18px; color: var(--ink); }
.ps-t small { color: var(--muted); font-size: 12px; }
.ps-s { display: flex; align-items: center; gap: 8px; justify-content: flex-end; color: var(--muted); font-size: 12.5px; }
.ps-s > span { display: inline-flex; align-items: center; gap: 8px; }
.ps.-past .ps-t b { color: var(--muted); }
.ps.-today { background: linear-gradient(90deg, var(--gold-tint), transparent 70%); }
.how-live { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }

@media (max-width: 1000px) {
  .next-hero { grid-template-columns: minmax(0, 1fr); padding: var(--sp-6); }
  .nh-side { padding-inline-start: 0; border-inline-start: 0; border-block-start: 1px solid var(--stage-line); padding-block-start: var(--sp-5); justify-items: start; text-align: start; }
  .prep-layout { grid-template-columns: minmax(0, 1fr); }
  .prep-side { position: static; }
  .how-live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .scal-dow { display: none; }
  .scal-grid { grid-template-columns: minmax(0, 1fr); }
  .scal-cell { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; border-inline-end: 0; }
  .scal-cell.-out, .scal-cell:not(:has(.scal-ev)):not(.-today) { display: none; }
  .scal-ev { width: auto; flex: 1 1 200px; }
  .scal-bar > .segmented { margin-inline-start: 0; }
  .pc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prep-list li { grid-template-columns: 48px minmax(0, 1fr); padding-inline: var(--sp-4); }
  .prep-list li > :nth-child(n+3) { grid-column: 2; justify-self: start; }
  .alerts li { grid-template-columns: 20px minmax(0, 1fr); padding-inline: var(--sp-4); }
  .alerts li > .btn { grid-column: 2; justify-self: start; }
  .kq-opts { grid-template-columns: minmax(0, 1fr); }
  .slide-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ps { grid-template-columns: 52px minmax(0, 1fr); }
  .ps-n { display: none; }
  .ps-s { grid-column: 2; justify-content: flex-start; }
  .how-live { grid-template-columns: minmax(0, 1fr); }
  .q-results li { grid-template-columns: 30px minmax(0, 1fr) 40px; }
  .q-results .bar { display: none; }
  .poll-res > div { grid-template-columns: minmax(0, 1fr) 80px 40px; }
  .next-live { margin-inline: var(--sp-4); }
  .nh-join { min-width: 0; width: 100%; }
  .nh-side { justify-items: stretch; }
}

/* design-preview state bar: its own strip above the room, never over the product UI */
.layout-room:has(.demo-states) .room { height: calc(100dvh - 48px); margin-block-start: 48px; }
.layout-room .demo-states { inset-block-end: auto; inset-block-start: 6px; }
@media (max-width: 900px) { .layout-room:has(.demo-states) .room { height: auto; min-height: calc(100dvh - 48px); } .layout-room .demo-states { position: absolute; max-width: calc(100% - 16px); overflow-x: auto; } }

/* wide segmented filters scroll instead of widening the page */
.card-h:has(> .segmented) { flex-wrap: wrap; gap: var(--sp-3); }
.card-h > .segmented, .row > .segmented[data-tabs] { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.card-h > .segmented button, .row > .segmented[data-tabs] button { white-space: nowrap; }
.tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs > a, .tabs > button { white-space: nowrap; flex: 0 0 auto; }
.ledger-wrap { position: relative; }
.input-group .addon { white-space: nowrap; }
.mx-c.-A { color: light-dark(#fff, #0F1530); }

/* always-visible engagement strip (speaker, coordinator, admin) */
.eng-strip { flex: 0 0 auto; display: grid; gap: 8px; padding: var(--sp-3) var(--sp-4); border-block-end: 1px solid var(--stage-line); background: rgba(255,255,255,.025); }
.es-h { display: flex; align-items: center; gap: 10px; }
.es-h .rs-h { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.es-h > b { font-size: 18px; color: #fff; }
.es-more { margin-inline-start: auto; font-size: 12.5px; color: var(--gold); }
.es-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.08); }
.es-bar i { display: block; height: 100%; transition: width .8s var(--ease); }
.es-bar .-on { background: var(--teal); }
.es-bar .-idle { background: var(--gold); }
.es-bar .-away { background: var(--orange); }
.es-legend { display: flex; gap: var(--sp-4); font-size: 12px; color: var(--stage-muted); }
.es-legend b { color: #fff; }
.es-more { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; }
.es-more:hover { text-decoration: underline; }
.rt-eng { position: absolute; inset-inline: 0; inset-block-end: 0; height: 4px; background: rgba(255,255,255,.1); }
.rt-eng i { display: block; height: 100%; background: var(--teal); }
.rt-eng.-idle i { background: var(--gold); }
.rt-eng.-away i { background: var(--orange); }

/* =====================================================================
   Live program inside the lesson player
   ===================================================================== */
.po-sum { display: flex; justify-content: space-between; padding: 0 var(--sp-3) var(--sp-3); font-size: 11px; color: var(--muted); }
.ol-l.-missed .ol-ic { color: var(--danger); }
.ol-l.-missed .ol-d { color: var(--danger); }
.ol-l.-today .ol-ic { color: var(--danger-fill); }
.ol-l.-today .ol-d { display: flex; align-items: center; gap: 6px; }
.ol-l.-today .badge { font-size: 9.5px; padding-block: 1px; }
.ol-l.-up { color: var(--faint); }
.ol-l.-up a { color: var(--faint); }
.ol-l.-up .ol-ic, .ol-l.-up .ol-d { color: var(--faint); opacity: .85; }
.ol-l.-up:not(.-now) { background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--line) 35%, transparent) 6px 7px); }
.ol-l.-up.-now, .ol-l.-up.-now a { color: var(--ink); }

.ll-att { display: flex; align-items: center; gap: 8px; margin-block-start: var(--sp-3); font-size: 14px; color: var(--teal-ink); }
.ll-att.-missed { color: var(--danger); }
.ll-h { font-size: 22px; margin-block: var(--sp-8) var(--sp-3); }
.ll-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ll-chapters li { display: flex; align-items: center; gap: var(--sp-3); font-size: 15px; color: var(--ink-2); }
.ll-qs { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--line); }
.ll-qs li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding-block: 10px; border-block-end: 1px solid var(--line); font-size: 14.5px; }
.ll-qs .mono { color: var(--gold-ink); font-size: 12px; }
.ll-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ll-res li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.ll-res b { display: block; font-size: 13.5px; color: var(--ink); }
.ll-res small { color: var(--muted); font-size: 12px; }
.ll-res .icon { color: var(--muted); }
.ll-sched { list-style: none; margin: 0; padding: 0; }
.ll-sched li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; padding-block: 7px; border-block-end: 1px solid var(--line); font-size: 13px; }
.ll-sched .mono { font-size: 11.5px; color: var(--muted); }
.ll-sched li.-past { color: var(--muted); }
.ll-sched li.-today { color: var(--ink); font-weight: 650; }
.ll-sched li.-up { color: var(--faint); }

.join-win { display: grid; gap: var(--sp-5); }
.jw-card {
  display: grid; gap: var(--sp-4); padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); color: var(--stage-ink);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 7px), radial-gradient(130% 110% at 90% -10%, #22306A, var(--stage) 60%);
  box-shadow: inset 0 0 0 1px rgba(247,193,0,.25);
}
.jw-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jw-top .qn { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--stage-muted); }
.jw-top .badge:not(.badge-live):not(.badge-gold) { background: rgba(255,255,255,.1); color: var(--stage-ink); }
.jw-card h2 { color: #fff; font-size: clamp(30px, 3vw, 44px); }
.jw-by { display: flex; align-items: center; gap: 8px; color: var(--stage-muted); font-size: 14px; }
.jw-count { display: grid; gap: 4px; }
.jw-count .label { color: var(--stage-muted); }
.jw-count b { font-size: clamp(36px, 4vw, 56px); color: #fff; font-weight: 500; line-height: 1; }
.jw-live { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; color: var(--stage-ink); font-size: 14px; }
.jw-live .mono { color: #FF8A6A; }
.jw-faces { display: flex; }
.jw-faces .avatar { margin-inline-end: -6px; box-shadow: 0 0 0 2px var(--stage); }
.jw-acts { gap: var(--sp-3); }
.jw-locked:disabled { background: rgba(255,255,255,.08); border: 1px solid var(--stage-line); color: var(--stage-muted); opacity: 1; cursor: not-allowed; }
.jw-cal { color: var(--stage-ink); }
.jw-cal:hover { background: rgba(255,255,255,.08); color: #fff; }
.jw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 760px) { .jw-grid { grid-template-columns: minmax(0, 1fr); } .ll-qs li { grid-template-columns: 34px minmax(0, 1fr); } .ll-qs li > span:last-child, .ll-qs li > span[data-state] { grid-column: 2; } }
.page-learn-live #noteBtn { display: none; }

/* ==== 90-utilities.css ==== */
/* =====================================================================
   Utilities
   ===================================================================== */
.theme-light { display: none !important; }
:root[data-theme="dark"] .theme-light { display: inline-block !important; }
:root[data-theme="dark"] .theme-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-light { display: inline-block !important; }
  :root:not([data-theme="light"]) .theme-dark { display: none !important; }
}
.center { text-align: center; justify-content: center; }
.mt-2 { margin-block-start: var(--sp-2); } .mt-4 { margin-block-start: var(--sp-4); } .mt-6 { margin-block-start: var(--sp-6); } .mt-8 { margin-block-start: var(--sp-8); }
.mb-4 { margin-block-end: var(--sp-4); } .mb-6 { margin-block-end: var(--sp-6); }
.gap-2 { gap: var(--sp-2) !important; }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }
.ta-end { text-align: end; }
.mb-2 { margin-block-end: var(--sp-2); } .mb-8 { margin-block-end: var(--sp-8); } .mt-3 { margin-block-start: var(--sp-3); }
.block { display: block; }
