/* ============================================================================
   The Scaling Society · members.ngunza.com
   Design system v3: "The Classroom".
   White surfaces on a cool light ground, graphite ink, one gold accent used as
   FILL (buttons, progress, marks) and never as body text. Fraunces carries the
   big moments (page titles, week numbers), Atkinson Hyperlegible Next carries
   everything students read. Dark plates echo the course covers students know.
   Every colour is a token. Light is the default. See DESIGN.md.
   ========================================================================== */

/* ---------------------------------------------------------------- fonts -- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/fraunces-500-800-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/atkinson-next-200-800-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Next';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/atkinson-next-200-800-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/atkinson-mono-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/atkinson-mono-700-latin.woff2') format('woff2');
}

/* --------------------------------------------------------------- tokens -- */
:root {
  --font-sans: 'Atkinson Next', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-mono: 'Atkinson Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;

  /* type scale: body never below 16px, long-form reads at 17.5 */
  --t-mono:  13px;
  --t-xs:    13.5px;
  --t-sm:    15px;
  --t-body:  17px;
  --t-read:  17.5px;
  --t-lead:  19px;
  --t-h4:    18px;
  --t-h3:    21px;
  --t-h2:    25px;
  --t-h1:    34px;
  --t-display: 42px;
  --lh-tight: 1.12;
  --lh-snug:  1.35;
  --lh-body:  1.55;
  --lh-long:  1.7;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 56px; --s-10: 80px;

  --r-chip: 6px;
  --r-ctl: 10px;
  --r-surface: 16px;
  --r-feature: 22px;
  --r-full: 999px;
  /* legacy aliases still referenced by admin surfaces */
  --r-card: var(--r-surface);
  --r-md: var(--r-ctl);

  --ease: cubic-bezier(.2, .7, .3, 1);
  --rail-w: 288px;
  --tabbar-h: 64px;
  --read: 760px;
}

:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg:         #f5f4f0;
  --surface:    #ffffff;
  --surface-2:  #f1f0eb;
  --surface-3:  #e7e5df;
  --ink:        #12161f;   /* 17.4:1 on white */
  --ink-2:      #3b4353;   /* 10.1:1 */
  --ink-3:      #5f6878;   /* 5.5:1 */
  --line:       #e5e3dd;
  --line-strong:#cbc8bf;
  --gold:       #f2b632;   /* the accent, as fill */
  --gold-deep:  #d9990f;
  --on-gold:    #16120a;   /* 11:1 on the fill */
  --gold-text:  #7d5a00;   /* 6.1:1 on white, for labels only */
  --gold-wash:  rgba(242, 182, 50, .16);
  --green:      #15803d;
  --green-wash: rgba(21, 128, 61, .11);
  --red:        #b42318;
  --red-wash:   rgba(180, 35, 24, .09);
  --blue:       #1d4ed8;
  --blue-wash:  rgba(29, 78, 216, .09);
  --focus:      #1d4ed8;
  --plate:      #161b26;   /* course-cover dark */
  --plate-2:    #232a38;
  --plate-ink:  #f7f3ea;
  --plate-mute: #a9b1c2;
  --track-bg:   #e7e5df;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 1px rgba(16, 24, 40, .03);
  --shadow-2: 0 6px 18px -6px rgba(16, 24, 40, .14), 0 2px 4px rgba(16, 24, 40, .05);
  --shadow-3: 0 24px 48px -16px rgba(16, 24, 40, .28), 0 4px 10px rgba(16, 24, 40, .08);
  --overlay:  rgba(18, 22, 31, .55);
  /* legacy aliases (admin + authored html) */
  --paper: var(--bg); --brass: var(--gold-text); --brass-deep: var(--gold-deep);
  --brass-fill: var(--gold); --on-brass: var(--on-gold); --brass-wash: var(--gold-wash);
  --accent-ink: var(--gold-text); --track-edge: transparent;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:         #0e1219;
  --surface:    #161b25;
  --surface-2:  #1d2431;
  --surface-3:  #28303f;
  --ink:        #eef1f6;
  --ink-2:      #b9c1cf;
  --ink-3:      #8f99aa;
  --line:       #273040;
  --line-strong:#39445a;
  --gold:       #f2b632;
  --gold-deep:  #ffc94d;
  --on-gold:    #16120a;
  --gold-text:  #f3c65c;
  --gold-wash:  rgba(242, 182, 50, .16);
  --green:      #4ade80;
  --green-wash: rgba(74, 222, 128, .14);
  --red:        #f87171;
  --red-wash:   rgba(248, 113, 113, .14);
  --blue:       #7cb0ff;
  --blue-wash:  rgba(124, 176, 255, .14);
  --focus:      #7cb0ff;
  --plate:      #0a0d13;
  --plate-2:    #151a24;
  --plate-ink:  #f7f3ea;
  --plate-mute: #a9b1c2;
  --track-bg:   #28303f;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 8px 20px -8px rgba(0, 0, 0, .6);
  --shadow-3: 0 24px 48px -16px rgba(0, 0, 0, .7);
  --overlay:  rgba(0, 0, 0, .7);
}

/* ----------------------------------------------------------------- base -- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: 700; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
img { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: currentColor; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
button { font-family: inherit; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 26px; height: 26px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-chip); }
.skip-link {
  position: absolute; left: var(--s-3); top: -100px; z-index: 200;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-ctl); font-weight: 600;
}
.skip-link:focus { top: var(--s-3); }
::selection { background: var(--gold-wash); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-full); border: 2px solid transparent; background-clip: padding-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- shell -- */
#app { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }
#main { min-width: 0; }

.rail {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.rail__brand { padding: var(--s-5) var(--s-5) var(--s-4); }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: inherit; }
.brand__mark {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  background: var(--plate); color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.brand__mark::after { content: ""; position: absolute; }
.brand__mark img { width: 26px; height: 26px; display: block; }
.brand__name { font-weight: 800; font-size: 13px; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.brand__name span { display: block; color: var(--ink-3); font-weight: 600; letter-spacing: .08em; font-size: 11.5px; text-transform: none; }

.rail__ctx {
  margin: var(--s-4) var(--s-5) 0; padding: var(--s-3) var(--s-4);
  background: var(--surface-2); border-radius: var(--r-ctl);
}
.rail__ctx-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); }
.rail__ctx-row b { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); }
.rail__ctx .track { margin-top: var(--s-2); }

/* icons, group labels and the brand share one 20px left edge */
.rail__nav { padding: 0 var(--s-2); display: flex; flex-direction: column; gap: 2px; }
.rail__group {
  padding: var(--s-5) var(--s-5) var(--s-2);
  font-size: 11.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.navlink {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 44px; padding: var(--s-2) var(--s-3);
  border-radius: var(--r-ctl);
  color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); font-weight: 600;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.navlink:hover { background: var(--surface-2); color: var(--ink); }
.navlink[aria-current="page"] { background: var(--ink); color: var(--surface); }
:root[data-theme="dark"] .navlink[aria-current="page"] { background: var(--surface-3); color: var(--ink); }
.navlink__ic { color: var(--ink-3); display: grid; place-items: center; }
.navlink[aria-current="page"] .navlink__ic { color: var(--gold); }
.navlink__label { min-width: 0; }
/* the pill never breaks; if a row is too tight, the label wraps instead */
.navlink__tail {
  flex: none; white-space: nowrap;
  margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink-3);
  font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: var(--r-full); background: var(--surface-2);
}
.navlink[aria-current="page"] .navlink__tail { background: rgba(255, 255, 255, .14); color: inherit; }
.navlink__tail.is-done { color: var(--green); }
.navlink__tail.is-hot { background: var(--gold); color: var(--on-gold); }
.rail__foot {
  margin-top: auto; padding: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--t-xs); color: var(--ink-3);
}
.rail__foot a, .rail__foot button { color: var(--ink-2); text-decoration: none; font-weight: 600; font: inherit; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; }
.rail__foot a:hover, .rail__foot button:hover { color: var(--ink); text-decoration: underline; }
.rail__who { color: var(--ink-2); word-break: break-word; margin-bottom: var(--s-3); display: flex; align-items: center; gap: var(--s-3); }
.rail__who .avatar { flex: none; }
.rail__acts { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); }

.avatar {
  width: 36px; height: 36px; border-radius: var(--r-full); display: grid; place-items: center;
  background: var(--gold-wash); color: var(--gold-text); font-weight: 800; font-size: 14px; letter-spacing: .02em;
  border: 1px solid var(--line);
}

/* mobile chrome */
#topbar, #tabbar { display: none; }

/* ------------------------------------------------------------ page grid -- */
.page { max-width: 1180px; margin: 0 auto; padding: var(--s-7) var(--s-8) var(--s-10); }
.page--read { max-width: var(--read); }
.page--narrow { max-width: 620px; }
.page--wide { max-width: 960px; }

.crumb { font-size: var(--t-xs); font-weight: 600; color: var(--ink-3); margin-bottom: var(--s-3); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumb a { color: var(--ink-3); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb .sep { color: var(--line-strong); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); flex: none; }
.eyebrow--plain::before { display: none; }
h1.title {
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-h1);
  letter-spacing: -.012em; line-height: var(--lh-tight); margin: var(--s-2) 0 var(--s-3);
  font-variation-settings: "opsz" 144;
}
h1.title--display { font-size: var(--t-display); }
.lede { font-size: var(--t-lead); line-height: var(--lh-snug); color: var(--ink-2); max-width: 62ch; }
.section {
  font-size: var(--t-h3); font-weight: 800; letter-spacing: -.01em;
  margin: var(--s-8) 0 var(--s-4); display: flex; align-items: baseline; gap: var(--s-3);
}
.section:first-child { margin-top: 0; }
.section .meta { font-weight: 600; }
.section--plain { margin-top: 0; }
.muted { color: var(--ink-3); }
.prose { font-size: var(--t-body); line-height: var(--lh-long); color: var(--ink-2); }
.prose > * + * { margin-top: var(--s-4); }
.meta { font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.pagehead .btnrow { margin-bottom: var(--s-2); }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 46px; padding: var(--s-3) var(--s-5);
  font: inherit; font-size: var(--t-sm); font-weight: 700;
  border-radius: var(--r-ctl); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
  cursor: pointer; text-decoration: none; text-align: center; white-space: nowrap;
  transition: background .14s var(--ease), border-color .14s var(--ease), transform .08s var(--ease), box-shadow .14s var(--ease);
}
.btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn--primary, .btn.primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold); box-shadow: var(--shadow-1); }
.btn--primary:hover, .btn.primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--on-gold); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn--dark:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--surface); }
:root[data-theme="dark"] .btn--dark { background: var(--surface-3); border-color: var(--line-strong); color: var(--ink); }
.btn--lg { min-height: 56px; font-size: var(--t-body); padding: var(--s-4) var(--s-7); border-radius: 12px; }
.btn--sm, .btn.btn-sm { min-height: 44px; padding: var(--s-2) var(--s-4); font-size: var(--t-xs); }
.btn--quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--quiet:hover { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.btn--block { width: 100%; }
.btn--icon { padding: var(--s-2); min-width: 46px; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--surface-2); border-color: var(--line); color: var(--ink-3);
  cursor: not-allowed; pointer-events: none; box-shadow: none;
}
.btn--primary[disabled] { background: var(--gold-wash); border-color: var(--gold); color: var(--gold-text); }
.btn--done { background: var(--green-wash); border-color: var(--green); color: var(--green); }
.btnrow { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.spacer { flex: 1 1 auto; }

/* ----------------------------------------------------------------- chips -- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-full);
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap; line-height: 1.5;
}
.chip .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.chip--done { background: var(--green-wash); color: var(--green); }
.chip--live { background: var(--red-wash); color: var(--red); }
.chip--brass, .chip--gold { background: var(--gold-wash); color: var(--gold-text); }
.chip--locked { background: var(--surface-3); color: var(--ink-3); }
.chip--blue { background: var(--blue-wash); color: var(--blue); }
.chip--dark { background: var(--ink); color: var(--surface); }
.badge {
  display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px;
  border-radius: var(--r-chip); background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.badge.done { background: var(--green-wash); color: var(--green); }
.badge.work { background: var(--gold-wash); color: var(--gold-text); }
.badge.shoot { background: var(--red-wash); color: var(--red); }
.badge.lock { background: var(--surface-3); color: var(--ink-3); }

/* ------------------------------------------------------------- progress -- */
.track { height: 8px; border-radius: var(--r-full); overflow: hidden; background: var(--track-bg); }
.track > i { display: block; height: 100%; background: var(--gold); border-radius: inherit; transition: width .5s var(--ease); }
.track--green > i { background: var(--green); }
.track--sm { height: 5px; }
.track--lg { height: 12px; }

.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .ring__bg { stroke: var(--track-bg); }
.ring .ring__fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.ring__label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--ink);
}
.ring__label small { font-family: var(--font-sans); font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.ring--sm { width: 56px; height: 56px; }
.ring--sm .ring__label { font-size: 14px; }

/* -------------------------------------------------------------- surfaces -- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-surface); box-shadow: var(--shadow-1);
}
.card--pad { padding: var(--s-6); }
.card--flush { overflow: hidden; }
.card--hi { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash), var(--shadow-1); }
.card + .card { margin-top: var(--s-4); }
.card__h {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--t-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: var(--s-4);
}
.card__h .ic { width: 16px; height: 16px; color: var(--gold-text); }
.card__h .chip { margin-left: auto; }
.card__big { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.card__big small { font-family: var(--font-sans); font-size: var(--t-sm); font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.card__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.card p { color: var(--ink-2); font-size: var(--t-sm); line-height: var(--lh-body); }
.card > * + *, .card--pad > * + * { margin-top: var(--s-3); }
.card .btnrow { margin-top: var(--s-4); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); padding: var(--s-6); box-shadow: var(--shadow-1); }
.panel--flush { padding: 0; overflow: hidden; }
.panel + .panel { margin-top: var(--s-4); }
.rule { border-top: 1px solid var(--line); margin: var(--s-7) 0; }
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.stack > .card + .card { margin-top: 0; }

/* the coach: a real human, always with the photo */
.coach { display: flex; gap: var(--s-4); align-items: flex-start; }
.coach__pic {
  flex: none; width: 52px; height: 52px; border-radius: var(--r-full);
  background: var(--surface-2); object-fit: cover; object-position: 50% 22%;
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line);
}
.k__pic { width: 24px; height: 24px; border-radius: var(--r-full); flex: none; object-fit: cover; object-position: 50% 22%; background: var(--surface-2); vertical-align: middle; }
.coach__name { font-weight: 800; font-size: var(--t-sm); }
.coach__role { font-size: var(--t-xs); color: var(--ink-3); }
.coach__body p { margin-top: var(--s-2); }
.portrait { border-radius: var(--r-feature); overflow: hidden; background: #fff; border: 1px solid var(--line); display: block; }
.portrait img { display: block; width: 100%; }

/* ---------------------------------------------------------------- plates --
   The signature. A dark cover plate in the language of the course covers:
   big serif number in gold, a caps label, a gold stripe. Rendered in CSS so
   every week and module gets art without a single image.                  */
.plate {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(120% 90% at 100% 0%, var(--plate-2), var(--plate) 60%);
  color: var(--plate-ink); border-radius: 14px; padding: var(--s-5);
  box-shadow: inset 5px 0 0 var(--gold), inset 0 0 0 1px rgba(255, 255, 255, .05);
  text-decoration: none; min-height: 150px;
}
.plate::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, .9), transparent 70%);
  pointer-events: none;
}
.plate > * { position: relative; }
.plate__k { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--plate-mute); }
.plate__n {
  font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: .95; letter-spacing: -.03em; color: var(--gold);
  font-variation-settings: "opsz" 144;
}
.plate__t { font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.25; margin-top: var(--s-2); }
.plate__t--big { font-size: 22px; letter-spacing: .02em; }
.plate__sub { font-size: var(--t-xs); color: var(--plate-mute); margin-top: var(--s-1); font-weight: 600; }
.plate__foot { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); font-size: var(--t-xs); font-weight: 700; color: var(--plate-mute); }
.plate__foot .track { flex: 1; background: rgba(255, 255, 255, .12); }
.plate--wide { aspect-ratio: 21 / 9; min-height: 0; justify-content: center; padding: var(--s-7); }
.plate--wide .plate__n { font-size: 84px; }
.plate--tile { padding: var(--s-4); min-height: 120px; }
.plate--tile .plate__n { font-size: 44px; }
.plate--mini {
  width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 10px; justify-content: center; align-items: center;
  box-shadow: inset 3px 0 0 var(--gold); font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--gold);
}
.plate--mini::before { display: none; }
.plate--locked { filter: grayscale(.4); opacity: .78; }
.plate--locked .plate__n { color: var(--plate-mute); }
.plate--done { box-shadow: inset 5px 0 0 var(--green), inset 0 0 0 1px rgba(255, 255, 255, .05); }
.plate--done .plate__n { color: var(--green); }
.plate__check { position: absolute; top: var(--s-4); right: var(--s-4); width: 30px; height: 30px; border-radius: var(--r-full); background: var(--green); color: #fff; display: grid; place-items: center; }
.plate__check .ic { width: 16px; height: 16px; stroke-width: 3; }
.plate__lock { position: absolute; top: var(--s-4); right: var(--s-4); width: 30px; height: 30px; border-radius: var(--r-full); background: rgba(255, 255, 255, .1); color: var(--plate-ink); display: grid; place-items: center; }
.plate__lock .ic { width: 15px; height: 15px; }

/* --------------------------------------------------------------- HOME ---- */
.hero {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0;
  overflow: hidden; border-radius: var(--r-feature); box-shadow: var(--shadow-2);
  background: var(--surface); border: 1px solid var(--line);
}
.hero .plate { border-radius: 0; min-height: 100%; padding: var(--s-7); box-shadow: inset 6px 0 0 var(--gold); }
.hero__body { padding: var(--s-7) var(--s-8); min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.hero__title {
  font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -.015em; line-height: 1.12;
  margin: var(--s-3) 0 var(--s-2); font-variation-settings: "opsz" 144;
}
.hero__promise { font-size: var(--t-lead); line-height: var(--lh-snug); color: var(--ink-2); max-width: 48ch; }
.hero__next {
  margin-top: var(--s-6); padding: var(--s-4) var(--s-5);
  display: flex; align-items: center; gap: var(--s-4);
  background: var(--surface-2); border-radius: 14px; border: 1px solid var(--line);
}
.hero__next .plate--mini { width: 52px; height: 52px; font-size: 21px; }
.hero__next-k { font-size: var(--t-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hero__next-t { font-weight: 800; font-size: var(--t-body); line-height: var(--lh-snug); margin-top: 2px; }
.hero__next-m { font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; margin-top: 3px; }
.hero__cta { margin-top: var(--s-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.hero__prog { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); flex: 1; min-width: 180px; }
.hero__prog .track { flex: 1; }
.hero--locked .hero__title { color: var(--ink-2); }

.home { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-6); align-items: start; margin-top: var(--s-6); }
.home__main { min-width: 0; display: flex; flex-direction: column; gap: var(--s-6); }
.home__side { min-width: 0; display: flex; flex-direction: column; gap: var(--s-4); }

/* this week's lesson plan (checklist) */
.plan { padding: var(--s-5) var(--s-6) var(--s-4); }
.plan__head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-3); }
.plan__head h2 { font-size: var(--t-h3); font-weight: 800; letter-spacing: -.01em; }
.plan__head .meta { margin-left: auto; }
.plan__foot { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); }

/* deliverable / standard */
.standard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5); align-items: start; padding: var(--s-6); }
.standard__num {
  font-family: var(--font-display); font-size: 54px; font-weight: 800; color: var(--gold-text); line-height: .9;
  font-variant-numeric: tabular-nums; min-width: 60px; letter-spacing: -.03em;
}
.standard__t { font-size: var(--t-lead); font-weight: 700; line-height: var(--lh-snug); }
.standard p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--t-sm); }

/* date block for calls */
.datebox {
  flex: none; width: 60px; border-radius: 12px; overflow: hidden; text-align: center;
  border: 1px solid var(--line); background: var(--surface);
}
.datebox__m { background: var(--ink); color: var(--surface); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 0; }
:root[data-theme="dark"] .datebox__m { background: var(--surface-3); color: var(--ink); }
.datebox__d { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.15; padding: 4px 0 6px; }
.datebox--live .datebox__m { background: var(--red); color: #fff; }
.callrow { display: flex; gap: var(--s-4); align-items: flex-start; }
.callrow__t { font-weight: 800; font-size: var(--t-body); line-height: var(--lh-snug); }
.callrow__m { font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; margin-top: 3px; }

/* ------------------------------------------------------------ PROGRAM ---- */
.wk-phase { grid-column: 1 / -1; padding: var(--s-6) 0 0; }
.wk-phase h2 { font-size: var(--t-h3); font-weight: 800; }
.wk-phase p { color: var(--ink-3); font-size: var(--t-sm); margin-top: var(--s-1); }
.wkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
.wk {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface);
  overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
a.wk:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.wk .plate { border-radius: 0; min-height: 132px; }
.wk__body { padding: var(--s-5) var(--s-5) var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.wk__title { font-size: var(--t-h4); font-weight: 800; line-height: var(--lh-snug); letter-spacing: -.01em; }
.wk__outcome { color: var(--ink-2); font-size: var(--t-sm); line-height: var(--lh-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wk__deliver { font-size: var(--t-xs); color: var(--ink-3); display: flex; gap: var(--s-2); align-items: flex-start; line-height: var(--lh-body); }
.wk__deliver b { color: var(--ink-2); font-weight: 800; flex: none; }
.wk__side { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-5) var(--s-5); margin-top: auto; }
.wk__side .track { flex: 1; }
.wk__n { font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wk--current { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash), var(--shadow-2); }
.wk--locked { opacity: .82; }
.wk--locked .wk__title { color: var(--ink-2); }

/* ------------------------------------------------------- lesson lists ---- */
.list { display: flex; flex-direction: column; gap: var(--s-2); }
.lrow {
  display: grid; grid-template-columns: 28px 44px minmax(0, 1fr) auto;
  align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: inherit; min-height: 64px;
  transition: border-color .12s var(--ease), box-shadow .12s var(--ease), transform .12s var(--ease);
}
a.lrow:hover, button.lrow:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.lrow--current { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }
.lrow__check {
  width: 24px; height: 24px; border-radius: var(--r-full);
  border: 2px solid var(--line-strong); display: grid; place-items: center;
  color: transparent; flex: none;
}
.lrow__check .ic { width: 14px; height: 14px; stroke-width: 3.2; }
.lrow--done .lrow__check { background: var(--green); border-color: var(--green); color: #fff; }
.lrow--current .lrow__check { border-color: var(--gold); }
.lrow--done .lrow__title { color: var(--ink-3); }
.lrow__n {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--plate); color: var(--gold); box-shadow: inset 3px 0 0 var(--gold);
  font-family: var(--font-display); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums;
}
.lrow--done .lrow__n { background: var(--surface-2); color: var(--ink-3); box-shadow: inset 3px 0 0 var(--green); }
.lrow--locked .lrow__n { background: var(--surface-3); color: var(--ink-3); box-shadow: none; }
.lrow__title { font-size: var(--t-body); font-weight: 700; min-width: 0; line-height: var(--lh-snug); }
.lrow__title small { display: block; font-weight: 600; color: var(--ink-3); font-size: var(--t-xs); margin-top: 3px; line-height: var(--lh-body); }
.lrow__tail { display: flex; align-items: center; gap: var(--s-3); }
.lrow__tail .meta { display: inline-flex; align-items: center; gap: 5px; }
.lrow__kind { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); }
.lrow__kind .ic { width: 16px; height: 16px; }
.lrow--locked { opacity: .7; cursor: default; background: var(--surface-2); }
.lrow--locked:hover { box-shadow: none; }
.lrow--plain { grid-template-columns: 44px minmax(0, 1fr) auto; }
.lrow--plain .lrow__n { background: var(--surface-2); color: var(--ink-2); box-shadow: none; }
.lrow--nonum { grid-template-columns: minmax(0, 1fr) auto; }
.lrow__go { color: var(--ink-3); }

/* the week's list as a compact checklist (home + lesson rail) */
.curr { display: flex; flex-direction: column; }
.curr__item {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-3); min-height: 48px; border-radius: 10px;
  text-decoration: none; color: var(--ink-2); font-size: var(--t-sm); font-weight: 600; line-height: var(--lh-snug);
}
a.curr__item:hover { background: var(--surface-2); color: var(--ink); }
.curr__item .lrow__check { width: 22px; height: 22px; }
.curr__item .lrow__check .ic { width: 12px; height: 12px; }
.curr__item--done { color: var(--ink-3); }
.curr__item--done .lrow__check { background: var(--green); border-color: var(--green); color: #fff; }
.curr__item--current { background: var(--gold-wash); color: var(--ink); font-weight: 800; }
.curr__item--current .lrow__check { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
.curr__item--locked { color: var(--ink-3); }
.curr__item .meta { font-weight: 600; }
.curr__n { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 700; font-size: var(--t-xs); margin-right: 6px; }

/* ------------------------------------------------------------- LESSON ---- */
.lesson { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-7); align-items: start; }
.lesson__main { min-width: 0; }
.lesson__rail { position: sticky; top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.lesson__head { margin-bottom: var(--s-5); }
.lesson__head h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.012em;
  line-height: var(--lh-tight); margin: var(--s-2) 0 var(--s-3); font-variation-settings: "opsz" 144;
}
.lesson__facts { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.lesson__facts .meta { display: inline-flex; align-items: center; gap: 5px; }

.player { border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--shadow-2); border: 1px solid var(--line-strong); }
.player iframe, .player video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.vidlabel { font-size: var(--t-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: var(--s-5) 0 var(--s-2); }

/* written playbook hero: the plate stands in for the video */
.playbook-hero {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1);
}
.playbook-hero .plate { border-radius: 0; min-height: 100%; }
.playbook-hero__body { padding: var(--s-5) var(--s-6); display: flex; flex-direction: column; justify-content: center; gap: var(--s-2); }
.playbook-hero__body h2 { font-size: var(--t-h3); font-weight: 800; }
.playbook-hero__body p { color: var(--ink-2); font-size: var(--t-sm); }
.playbook-hero__facts { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }

/* lesson sections */
.lesson__section { margin-top: var(--s-7); }
.lesson__section > .section { margin-top: 0; }

/* on this page */
.toc { margin: var(--s-6) 0 var(--s-6); }
.toc__k { font-size: var(--t-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-3); }
.toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); counter-reset: toc; }
.toc a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: var(--s-2) var(--s-4); border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); font-weight: 600;
}
.toc a::before { counter-increment: toc; content: counter(toc); font-size: 12px; font-weight: 800; color: var(--gold-text); }
.toc a:hover { border-color: var(--ink-3); color: var(--ink); }

/* lesson body copy: the reading column */
/* The reading surface. Lesson prose is a surface like every other block on the
   page, not bare ground (DESIGN.md 12). Horizontal padding tracks .tldr/.actions
   at every breakpoint so stacked cards share one text inset. The reading column
   normally binds first (696px beside the outline rail, 760px without it); the
   max-width is the guard that keeps the measure sane if a column ever gets wider. */
.content {
  font-size: var(--t-read); line-height: var(--lh-long); color: var(--ink-2);
  max-width: calc(72ch + 2 * var(--s-6));
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-surface); padding: var(--s-7) var(--s-6); box-shadow: var(--shadow-1);
}
.content > :first-child { margin-top: 0; }
.content > * + * { margin-top: var(--s-4); }
.content :is(h1, h2, h3, h4) { color: var(--ink); margin-top: var(--s-8); scroll-margin-top: var(--s-6); letter-spacing: -.01em; }
.content h1 { font-size: var(--t-h2); font-weight: 800; }
.content h2 { font-size: 23px; font-weight: 800; padding-bottom: var(--s-2); border-bottom: 2px solid var(--line); }
.content h3 { font-size: var(--t-h4); font-weight: 800; }
.content h4 { font-size: var(--t-body); font-weight: 800; }
.content :is(ul, ol) { padding-left: var(--s-6); display: flex; flex-direction: column; gap: var(--s-2); }
.content li::marker { color: var(--gold-text); font-weight: 800; }
.content strong { color: var(--ink); font-weight: 800; }
.content a { color: var(--ink); font-weight: 600; }
.content code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: var(--r-chip); color: var(--ink); }
.content pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: var(--s-4); overflow-x: auto; }
.content pre code { background: none; padding: 0; }
.content blockquote {
  border-left: 4px solid var(--gold); margin: 0; padding: var(--s-2) 0 var(--s-2) var(--s-5);
  color: var(--ink); font-weight: 600; font-style: italic;
}
.content img { border-radius: 12px; border: 1px solid var(--line); display: block; max-width: 100%; height: auto; margin: var(--s-3) 0; box-shadow: var(--shadow-1); }
.content figure { margin: var(--s-4) 0; max-width: 100%; }
.content figure .lib-fig, .content figure.lib-fig, .content .lib-fig { text-align: center; }
.content figcaption { font-size: var(--t-xs); color: var(--ink-3); margin-top: var(--s-2); }
.content hr { margin: var(--s-8) 0; }
/* reading rhythm: a sub-heading sits close to its section, a lead-in hugs its list */
.content h3 { margin-top: var(--s-6); }
.content h2 + h3, .content h2 + p.leadin { margin-top: var(--s-4); }
.content p.leadin + :is(ul, ol) { margin-top: var(--s-2); }
.content li > p, .content blockquote > p { margin: 0; }
.content li + li { margin-top: 0; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.content table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.content :is(th, td) { border: 1px solid var(--line); padding: var(--s-3); text-align: left; vertical-align: top; }
.content th { background: var(--surface-2); color: var(--ink); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .05em; }
.content .leadin { color: var(--ink); font-weight: 700; font-size: var(--t-lead); }
.content p.ts { font-family: var(--font-mono); font-size: var(--t-mono); color: var(--ink-3); }
.content :is(h2, h3) .ts { font-family: var(--font-mono); font-size: var(--t-mono); font-weight: 700; color: var(--gold-text); margin-left: var(--s-3); letter-spacing: 0; vertical-align: middle; }
/* with a video on the page every timestamp is a seek control */
.content .ts[data-seek] { cursor: pointer; border: 1px solid var(--line); border-radius: var(--r-chip); padding: 2px 8px; background: var(--surface-2); }
.content .ts[data-seek]:hover, .content .ts[data-seek]:focus-visible { border-color: var(--gold); }
.content ul.elist { list-style: none; padding-left: 0; }
.content .callout { margin-bottom: 0; }
.content .callout > p:not(.callout__k) { font-size: var(--t-body); color: var(--ink); font-weight: 500; }
.content .callout :is(ul, ol) { margin-top: var(--s-2); font-size: var(--t-body); color: var(--ink); }
.content .callout > * + * { margin-top: var(--s-2); }

/* callouts carry one of five kinds; the kind sets the bar and the label colour */
.callout {
  --co: var(--gold); --co-wash: var(--gold-wash); --co-text: var(--gold-text);
  border: 1px solid var(--line); border-left: 4px solid var(--co);
  background: var(--co-wash); border-radius: var(--r-ctl); padding: var(--s-5); margin-bottom: var(--s-5);
}
.callout[data-kind="warning"] { --co: var(--red); --co-wash: var(--red-wash); --co-text: var(--red); }
.callout[data-kind="example"] { --co: var(--blue); --co-wash: var(--blue-wash); --co-text: var(--blue); }
.callout[data-kind="definition"] { --co: var(--green); --co-wash: var(--green-wash); --co-text: var(--green); }
.callout[data-kind="note"] { --co: var(--line-strong); --co-wash: var(--surface-2); --co-text: var(--ink-3); }
.callout .k, .callout .callout__k { font-size: var(--t-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--co-text); margin: 0; }
.callout p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--t-sm); line-height: var(--lh-body); }

/* authored blocks (HTML written as data, e.g. the Vegas page) */
.content .cards { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.content .cards > * { margin-top: 0; }
.content .card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-surface); padding: var(--s-5); overflow: hidden; }
.content .card--media { padding: 0; }
.content .card__img { width: 100%; height: 150px; object-fit: cover; display: block; border: 0; border-radius: 0; margin: 0; box-shadow: none; }
.content .card__body { padding: var(--s-4) var(--s-5); }
.content .card__k { font-size: var(--t-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.content .card__v { font-size: var(--t-h4); font-weight: 800; color: var(--ink); margin-top: var(--s-1); }
.content .note { color: var(--ink-3); font-size: var(--t-sm); line-height: var(--lh-body); }
.content .card .note { margin-top: var(--s-1); }
.content .card > * + *, .content .card__body > * + * { margin-top: var(--s-1); }
.content .aside {
  background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-ctl) var(--r-ctl) 0; padding: var(--s-4) var(--s-5); font-size: var(--t-sm); line-height: var(--lh-body);
}

/* assignment block: the one action */
.assign { border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--r-surface); background: var(--surface); padding: var(--s-6); box-shadow: var(--shadow-1); }
.assign__k { font-size: var(--t-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); display: flex; align-items: center; gap: 8px; }
.assign h2 { font-size: var(--t-h3); font-weight: 800; margin: var(--s-2) 0 var(--s-4); }
.assign__item { padding: var(--s-4) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: var(--s-3); }
.assign__item:first-of-type { border-top: 0; padding-top: 0; }
.assign__ic { width: 34px; height: 34px; border-radius: 10px; background: var(--gold-wash); color: var(--gold-text); display: grid; place-items: center; }
.assign__ic .ic { width: 18px; height: 18px; }
.assign__label { font-size: var(--t-xs); font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.assign__item p { margin-top: var(--s-1); color: var(--ink-2); font-size: var(--t-sm); line-height: var(--lh-body); }

/* ------------------------------------------------------ READING A LESSON -- */
/* Written lessons (DESIGN.md §12): the summary card first, the body in the
   72ch column, the action checklist last, and on wide screens a sticky
   "On this page" outline that follows the reader. */
.tldr, .actions {
  border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--r-surface);
  background: var(--surface); padding: var(--s-5) var(--s-6); box-shadow: var(--shadow-1);
}
.tldr { margin-top: var(--s-6); }
.actions { margin-top: var(--s-8); scroll-margin-top: var(--s-6); }
.tldr__k, .actions__k, .chapters__k, .rail-toc__k {
  font-size: var(--t-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text);
  display: flex; align-items: center; gap: 8px;
}
.rail-toc__k { color: var(--ink-3); }
.tldr__k .ic, .actions__k .ic, .chapters__k .ic { width: 16px; height: 16px; }
.tldr ul { margin: var(--s-3) 0 0; padding-left: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.tldr li { font-size: var(--t-body); color: var(--ink); line-height: var(--lh-body); }
.tldr li::marker { color: var(--gold-text); font-weight: 800; }

.actions__sub { margin-top: var(--s-1); font-size: var(--t-sm); color: var(--ink-3); }
.actions ol { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.actions li + li { border-top: 1px solid var(--line); }
.actions label {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); align-items: start;
  padding: var(--s-3) 0; min-height: 48px; font-size: var(--t-body); color: var(--ink); line-height: var(--lh-body); cursor: pointer;
}
.actions input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.actions label.is-done { color: var(--ink-3); }
.actions label.is-done span { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.actions__done { margin-top: var(--s-3); font-size: var(--t-sm); font-weight: 700; color: var(--green); display: none; align-items: center; gap: 6px; }
.actions__done .ic { width: 16px; height: 16px; }
.actions.is-complete .actions__done { display: flex; }

/* video chapters under the player: click to seek */
.chapters { margin-top: var(--s-5); }
.chapters ol {
  list-style: none; margin: var(--s-3) 0 0; padding: 0;
  display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.chapters button {
  display: flex; gap: var(--s-3); align-items: baseline; width: 100%; min-height: 44px;
  padding: var(--s-2) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-sm); font-weight: 600; line-height: 1.35; text-align: left; cursor: pointer;
}
.chapters button:hover { border-color: var(--ink-3); background: var(--surface-2); }
.chapters .ts { flex: none; min-width: 44px; font-family: var(--font-mono); font-size: var(--t-mono); font-weight: 700; color: var(--gold-text); }

/* the outline: inline chips by default, a sticky rail beside the text on wide screens */
.read { display: block; }
.read__main { min-width: 0; }
.read__rail { display: none; }
.rail-toc { border-left: 2px solid var(--line); padding-left: var(--s-4); }
.rail-toc ol { list-style: none; margin: var(--s-2) 0 0; padding: 0; }
.rail-toc a {
  position: relative; display: block; padding: 7px 0; color: var(--ink-3);
  font-size: var(--t-sm); font-weight: 600; line-height: 1.35; text-decoration: none;
}
.rail-toc a:hover { color: var(--ink); }
.rail-toc a.is-active { color: var(--ink); font-weight: 800; }
.rail-toc a.is-active::before { content: ""; position: absolute; left: calc(-1 * var(--s-4) - 2px); top: 7px; bottom: 7px; width: 2px; background: var(--gold); }
.rail-toc__end { margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line); }
@media (min-width: 1340px) {
  .page--read.has-rail { max-width: 1040px; }
  .page--read.has-rail .read { display: grid; grid-template-columns: minmax(0, 1fr) 224px; gap: var(--s-8); align-items: start; }
  .page--read.has-rail .read__main { max-width: var(--read); }
  .page--read.has-rail .read__rail { display: block; position: sticky; top: var(--s-6); }
  .page--read.has-rail .toc--inline { display: none; }
}
@media (max-width: 1000px) {
  .content { padding: var(--s-6); }
}
@media (max-width: 700px) {
  .tldr, .actions { padding: var(--s-4) var(--s-5); }
  .content { padding: var(--s-5); }
  .chapters ol { grid-template-columns: 1fr; }
}
@media print {
  .rail-toc, .chapters, .lessonbar, .player, .toc, .res__go, .actions__sub { display: none !important; }
  .read { display: block !important; }
  .tldr, .actions, .callout { box-shadow: none; break-inside: avoid; }
  .content { background: none; border: 0; box-shadow: none; padding: 0; max-width: none; }
  .content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 12px; color: #555; word-break: break-all; }
}

/* lesson attachments */
.res { border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface); padding: var(--s-5) var(--s-6); box-shadow: var(--shadow-1); }
.res__k { display: block; margin-bottom: var(--s-3); font-size: var(--t-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.res__row {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--s-3); margin: 0 calc(-1 * var(--s-3));
  border-top: 1px solid var(--line); border-radius: var(--r-ctl);
  text-decoration: none; color: inherit; min-height: 56px;
}
.res__row:first-of-type { border-top: 0; }
.res__row:hover { background: var(--surface-2); }
.res__kind {
  flex: none; min-width: 56px; text-align: center; font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
  padding: var(--s-2); border-radius: var(--r-ctl); background: var(--plate); color: var(--gold);
}
.res__meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.res__meta strong { font-size: var(--t-sm); color: var(--ink); line-height: var(--lh-body); }
.res__meta .meta { overflow-wrap: anywhere; }
.res__go { flex: none; font-size: var(--t-xs); font-weight: 800; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.res__go .ic { width: 15px; height: 15px; }

/* sticky completion bar */
.lesson__main { padding-bottom: var(--s-4); }
.lessonbar {
  position: sticky; bottom: var(--s-4); z-index: 20;
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); margin-top: var(--s-8);
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow-3);
}
.lessonbar__pos { font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); padding: 0 var(--s-2); }

/* ---------------------------------------------------------- CHECKPOINT ---- */
.qz { max-width: 680px; margin: 0 auto; padding-bottom: var(--s-9); }
.qz__bar { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-7); }
.qz__count { font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qz__bar .track { flex: 1; }
.qz__q { font-family: var(--font-display); font-weight: 700; font-size: var(--t-h2); line-height: var(--lh-snug); margin-bottom: var(--s-6); letter-spacing: -.01em; }
.qz__opts { display: flex; flex-direction: column; gap: var(--s-3); margin: 0; padding: 0; border: 0; }
.qz__opt {
  display: flex; align-items: flex-start; gap: var(--s-4);
  min-height: 58px; padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: var(--t-body); text-align: left; cursor: pointer; line-height: var(--lh-snug);
  transition: border-color .12s var(--ease), background .12s var(--ease);
}
.qz__opt:hover { border-color: var(--ink-3); background: var(--surface-2); }
.qz__opt[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-wash); font-weight: 700; box-shadow: 0 0 0 3px var(--gold-wash); }
.qz__key {
  flex: none; width: 30px; height: 30px; border-radius: 8px; margin-top: -2px;
  background: var(--surface-2); color: var(--ink-2); font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
}
.qz__opt[aria-pressed="true"] .qz__key { background: var(--gold); color: var(--on-gold); }
.qz__nav { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-8); }
.qz__score { text-align: center; padding: var(--s-7) 0; }
.qz__score .n { font-family: var(--font-display); font-size: 64px; font-weight: 700; color: var(--gold-text); line-height: 1; letter-spacing: -.03em; }
.qz__review { border-top: 1px solid var(--line); padding: var(--s-5) 0; }
.qz__verdict { display: flex; align-items: center; gap: var(--s-3); font-weight: 800; font-size: var(--t-sm); }
.qz__verdict--ok { color: var(--green); }
.qz__verdict--no { color: var(--red); }
.qz__explain { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--t-sm); line-height: var(--lh-body); }
.qz__your { margin-top: var(--s-2); font-size: var(--t-xs); color: var(--ink-3); }

/* inline gut-check quiz (inside a lesson) */
.quiz { border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface); padding: var(--s-6); box-shadow: var(--shadow-1); }
.quiz-h { font-size: var(--t-h4); font-weight: 800; }
.quiz-sub { color: var(--ink-3); font-size: var(--t-sm); margin: var(--s-2) 0 var(--s-5); }
.quiz-q + .quiz-q { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.quiz-question { font-weight: 700; margin-bottom: var(--s-4); font-size: var(--t-body); }
.quiz-opts { display: flex; flex-direction: column; gap: var(--s-2); }
.quiz-opt {
  text-align: left; font: inherit; font-size: var(--t-sm); min-height: 48px;
  padding: var(--s-3) var(--s-4); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); border-radius: var(--r-ctl); cursor: pointer;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--ink-3); background: var(--surface-2); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.correct { border-color: var(--green); color: var(--green); }
.quiz-opt.chosen-correct { background: var(--green-wash); border-color: var(--green); color: var(--green); font-weight: 700; }
.quiz-opt.chosen-wrong { background: var(--red-wash); border-color: var(--red); color: var(--red); }
.quiz-opt.chosen-wrong::after { content: " ✕"; font-weight: 700; }
.quiz-opt.correct::after { content: " ✓"; font-weight: 700; }
.quiz-explain { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--ink-2); border-left: 3px solid var(--green); padding: var(--s-2) var(--s-4); background: var(--surface-2); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }

/* --------------------------------------------------------------- CALLS ---- */
.nextcall { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-6); padding: var(--s-7); }
.nextcall--live { border-color: var(--red); }
.nextcall .datebox { width: 84px; align-self: start; }
.nextcall .datebox__d { font-size: 38px; padding: 6px 0 8px; }
.nextcall .datebox__m { font-size: 12px; padding: 6px 0; }
.nextcall h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--t-h2); margin: var(--s-2) 0 var(--s-2); letter-spacing: -.01em; }
.nextcall__when { font-size: var(--t-body); font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.nextcall__when .ic { color: var(--gold-text); }
.nextcall__facts { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-4) 0 var(--s-5); }

.empty-state { border: 1px dashed var(--line-strong); border-radius: var(--r-feature); padding: var(--s-8); background: var(--surface); text-align: left; }
.empty-state > * { max-width: 62ch; }
.empty-state h2 { font-size: var(--t-h3); font-weight: 800; margin-bottom: var(--s-3); }
.empty-state p { color: var(--ink-2); font-size: var(--t-sm); max-width: 56ch; }
.empty-state > * + * { margin-top: var(--s-4); }
.empty-state ul { margin: 0; padding-left: var(--s-5); color: var(--ink-2); font-size: var(--t-sm); display: flex; flex-direction: column; gap: var(--s-2); }
.empty-state__ic { width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); color: var(--ink-3); display: grid; place-items: center; margin-bottom: var(--s-4); }
.empty-state__ic .ic { width: 24px; height: 24px; }
.empty { color: var(--ink-3); font-size: var(--t-sm); }

/* month calendar */
.calwrap { margin-top: var(--s-6); }
.cal-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.cal-head h3 { font-size: var(--t-h4); min-width: 190px; text-align: center; font-weight: 800; }
.cal-nav { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 18px; }
.cal-nav:hover { background: var(--surface-2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding: var(--s-2) 0; }
.cal-cell { min-height: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: var(--s-2); overflow: hidden; }
.cal-cell.pad { background: transparent; border-color: transparent; }
.cal-cell.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.cal-day-num { font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cal-cell.today .cal-day-num { color: var(--gold-text); }
.cal-ev {
  display: block; width: 100%; text-align: left; margin-top: 3px;
  background: var(--gold-wash); border: 1px solid transparent; color: var(--ink);
  border-radius: var(--r-chip); padding: 3px 6px; font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-ev:hover, .cal-ev[aria-pressed="true"] { border-color: var(--gold); }
.cal-ev.live { background: var(--red-wash); color: var(--red); font-weight: 700; }

/* ------------------------------------------------------------- BOOKING --- */
.slotday { border-top: 1px solid var(--line); padding: var(--s-5) 0; }
.slotday__d { font-weight: 800; font-size: var(--t-body); margin-bottom: var(--s-4); display: flex; align-items: center; gap: 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: var(--s-3); }
.slot {
  min-height: 50px; min-width: 104px; padding: var(--s-3) var(--s-4);
  font: inherit; font-size: var(--t-sm); font-weight: 800; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .12s var(--ease), background .12s var(--ease);
}
.slot:hover { border-color: var(--gold); background: var(--gold-wash); }
.slot[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.slot[disabled] { background: var(--surface-3); color: var(--ink-3); border-color: var(--line); cursor: not-allowed; text-decoration: line-through; }
.slot--held { border-color: var(--gold); background: var(--gold-wash); }
.slot__tag { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--gold-text); }
.slot[aria-pressed="true"] .slot__tag { color: inherit; }
.creditbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-7); padding: var(--s-5) var(--s-6); }
.creditbar__n { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.creditbar__n small { font-family: var(--font-sans); font-size: var(--t-sm); font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }

/* ------------------------------------------------------- PRODUCT REVIEW -- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-4); }
.process__step { padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.process__n { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--plate); color: var(--gold); font-family: var(--font-display); font-weight: 800; font-size: 18px; box-shadow: inset 3px 0 0 var(--gold); }
.process__step b { font-size: var(--t-sm); font-weight: 800; }
.process__step p { color: var(--ink-3); font-size: var(--t-xs); margin-top: 2px; }

.rev-card { border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface); padding: var(--s-5); box-shadow: var(--shadow-1); }
.rev-card + .rev-card { margin-top: var(--s-4); }
.rev-card.pending { border-left: 4px solid var(--gold); }
.rev-card.answered { border-left: 4px solid var(--green); }
.rev-head { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.rev-head strong { font-size: var(--t-body); }
.rev-head .chip, .rev-head .badge { margin-left: auto; }
.rev-nums { font-size: var(--t-sm); color: var(--ink-2); margin-top: var(--s-2); font-variant-numeric: tabular-nums; }
.rev-asin { font-family: var(--font-mono); font-size: var(--t-mono); color: var(--ink-2); text-decoration: none; border-bottom: 1px dotted var(--line-strong); padding-bottom: 1px; }
.rev-asin:hover { color: var(--ink); border-bottom-color: var(--ink); }
.rev-links { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.rev-notes { font-size: var(--t-sm); color: var(--ink-3); margin-top: var(--s-3); white-space: pre-wrap; overflow-wrap: anywhere; }
.rev-answer {
  margin-top: var(--s-4); background: var(--gold-wash); border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-ctl) var(--r-ctl) 0; padding: var(--s-4) var(--s-5);
  font-size: var(--t-sm); line-height: var(--lh-body); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink);
}
.rev-answer .k { font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); font-weight: 800; margin-bottom: var(--s-2); display: flex; align-items: center; gap: var(--s-2); }
.rev-answer .k img { width: 22px; height: 22px; border-radius: var(--r-full); object-fit: cover; object-position: 50% 20%; }
.rev-card textarea { width: 100%; margin-top: var(--s-3); }
/* The verdict box now arrives pre-filled with a drafted verdict, and the browser default
   for a textarea is monospace, which made a sentence to a student read like code. */
.rev-card textarea, #admin-body .rev-card textarea { font: inherit; font-size: 14px; line-height: 1.55;
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-strong, #3a4248); resize: vertical; min-height: 84px; }

/* private recordings */
.pv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: -8px 0 20px; }
.pv-notes { margin-top: var(--s-6); background: var(--surface-2); border-left: 4px solid var(--gold); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; padding: var(--s-4) var(--s-5); font-size: var(--t-sm); line-height: var(--lh-body); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.pv-notes .eyebrow { margin-bottom: var(--s-2); }

/* ------------------------------------------------------------ COMMUNITY -- */
.twocol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); }
.qna { padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.qna:first-of-type { border-top: 0; padding-top: 0; }
.qna__q { font-weight: 800; font-size: var(--t-body); }
.qna__a { color: var(--ink-2); font-size: var(--t-sm); margin-top: var(--s-2); line-height: var(--lh-body); }
.rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.rules li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s-3); align-items: start; font-size: var(--t-sm); color: var(--ink-2); line-height: var(--lh-body); }
.rules li::before { content: "✓"; width: 24px; height: 24px; border-radius: var(--r-full); background: var(--gold-wash); color: var(--gold-text); font-weight: 800; font-size: 13px; display: grid; place-items: center; margin-top: 1px; }

/* ---------------------------------------------------------------- forms -- */
.form-grid { display: flex; flex-direction: column; gap: var(--s-5); }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-grid label, .field { display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); }
.form-grid :is(input, textarea, select), .field :is(input, textarea, select) {
  font: inherit; font-size: var(--t-body); padding: var(--s-3) var(--s-4);
  min-height: 50px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); width: 100%;
}
.form-grid textarea { min-height: 110px; resize: vertical; }
.form-grid :is(input, textarea, select):focus-visible, .field :is(input, textarea, select):focus-visible { border-color: var(--gold); outline-offset: 0; }
.form-grid input[type="checkbox"] { width: auto; min-height: 0; }
.form-grid label:has(> input[type="checkbox"]), .form-grid label[style*="align-items"] { flex-direction: row; align-items: center; gap: var(--s-3); font-weight: 600; }
::placeholder { color: var(--ink-3); opacity: .8; font-weight: 400; }
.hint { font-size: var(--t-xs); color: var(--ink-3); font-weight: 500; }
.err-msg { font-size: var(--t-xs); color: var(--red); font-weight: 700; display: flex; gap: 6px; align-items: center; }
.err-msg::before { content: "✕"; }
.form-grid button { align-self: flex-start; }

/* ---------------------------------------------------------------- toast -- */
.toast {
  position: fixed; left: 50%; bottom: var(--s-6); transform: translateX(-50%);
  z-index: 120; max-width: min(460px, calc(100vw - 32px));
  background: var(--ink); color: var(--surface);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-ctl);
  font-size: var(--t-sm); font-weight: 700; box-shadow: var(--shadow-3);
}
:root[data-theme="dark"] .toast { background: var(--surface-3); color: var(--ink); border: 1px solid var(--line-strong); }

/* --------------------------------------------------------------- motion -- */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.route-in { animation: rise .24s var(--ease) both; }
@keyframes pulse-live { 50% { box-shadow: 0 0 0 6px var(--red-wash); } }
.is-live { animation: pulse-live 1.8s infinite; }
@keyframes pop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.lrow--done .lrow__check .ic, .curr__item--done .lrow__check .ic { animation: pop .3s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================ ADMIN SHELL ==
   Admin surfaces keep their markup; they sit on the same tokens.           */
.wrap { max-width: 1120px; margin: 0 auto; padding: var(--s-7) var(--s-8) var(--s-10); }
h2.page { font-family: var(--font-display); font-weight: 700; font-size: var(--t-h1); margin: var(--s-2) 0 var(--s-3); letter-spacing: -.012em; }
.sub { color: var(--ink-2); font-size: var(--t-lead); line-height: var(--lh-snug); margin-bottom: var(--s-6); }
@media (max-width: 1000px) { .wrap { padding: var(--s-6) var(--s-4) calc(var(--tabbar-h) + var(--s-9)); } }

.statgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin: var(--s-6) 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); padding: var(--s-5); box-shadow: var(--shadow-1); }
.stat .n { font-family: var(--font-display); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .l { font-size: var(--t-xs); color: var(--ink-3); margin-top: var(--s-1); font-weight: 600; }
.stat.done .n { color: var(--green); }

.sechead { font-size: var(--t-h3); font-weight: 800; margin: var(--s-8) 0 var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.lesson-row { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); border-bottom: 1px solid var(--line); min-height: 60px; }
.lesson-row .ln-num { font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); min-width: 30px; }
.lesson-row .ln-title { font-size: var(--t-sm); font-weight: 700; min-width: 0; }
.lesson-row .ln-title small { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--t-xs); }
.lesson-row .right { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; justify-content: flex-end; }
.dur { font-size: var(--t-xs); font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.deal-table { border: 1px solid var(--line); border-radius: var(--r-surface); overflow: hidden; background: var(--surface); }
.deal-row { display: grid; grid-template-columns: 1fr 110px 90px 70px 70px; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); font-size: var(--t-xs); align-items: center; background: var(--surface); }
.deal-row:last-child { border-bottom: 0; }
.deal-row small { display: block; color: var(--ink-3); }
.deal-head { background: var(--surface-2); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.deal-row.admin-mem { grid-template-columns: 1.4fr 100px 108px 52px 56px 300px; }
.deal-row.admin-queue { grid-template-columns: 34px 1.6fr 76px 104px 300px; }
.deal-row.admin-i18n { grid-template-columns: 1.6fr 110px 90px 90px; }
/* Languages: the note under an English video for a French reader, the Account picker,
   and the French-cut upload box (a second box under every lesson video, admin only). */
.vidnote { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-2) 0 0; font-size: var(--t-sm); color: var(--ink-3); }
.langpick { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-4); }
.langpick .btn { min-width: 120px; }
.upload-box--fr { margin-top: var(--s-3); border-style: dashed; }
.deal-row.admin-i18n-fail { grid-template-columns: minmax(0, 1fr) auto; }
.admin-actions .btn { padding: var(--s-2) var(--s-3); font-size: var(--t-mono); }
.deal-row.revoked { opacity: .55; }
.admin-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.view-sel { min-height: 40px; }

.prod-group { margin-bottom: var(--s-7); }
.prod-group h3 { font-size: var(--t-h4); border-bottom: 1px solid var(--line); padding-bottom: var(--s-3); }
.prod-row { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); cursor: pointer; }
.prod-row .loc { font-size: var(--t-xs); color: var(--ink-3); margin-left: auto; font-weight: 600; }

.upload-box { background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--r-surface); padding: var(--s-5); margin: var(--s-5) 0; }
.upload-box .ub-head { font-weight: 800; font-size: var(--t-sm); display: flex; align-items: center; gap: var(--s-3); }
.upload-box p { color: var(--ink-3); font-size: var(--t-xs); margin: var(--s-2) 0 var(--s-4); }
.ub-row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.up-status { margin-top: var(--s-4); }
.upload-bar { height: 8px; background: var(--surface-3); border-radius: var(--r-full); overflow: hidden; margin-bottom: var(--s-2); }
.upload-bar > i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s var(--ease); }
.up-txt { font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); }
.source-note { font-family: var(--font-mono); font-size: var(--t-mono); color: var(--ink-3); margin-top: var(--s-3); }
.recut-flag { font-size: var(--t-xs); color: var(--gold-text); font-weight: 700; margin-top: var(--s-3); }
.transcript-link { display: inline-block; font-size: var(--t-xs); font-weight: 700; margin-top: var(--s-3); }
.video-slot { border-radius: var(--r-surface); border: 1px solid var(--line-strong); overflow: hidden; background: var(--surface-2); }
.video-slot .placeholder { text-align: center; padding: var(--s-8) var(--s-5); color: var(--ink-2); }
.video-slot .placeholder .big { font-size: var(--t-sm); letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.video-slot .placeholder p { margin-top: var(--s-3); font-size: var(--t-sm); }
.video-slot.shoot .big { color: var(--red); }

/* ------------------------------------------------------------- LIBRARY --- */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: var(--s-5); }
.lib-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface);
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; box-shadow: var(--shadow-1);
  transition: border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.lib-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.lib-cover { aspect-ratio: 1460 / 752; background: var(--plate); overflow: hidden; position: relative; }
.lib-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-cover .chip { position: absolute; top: var(--s-3); right: var(--s-3); }
.lib-body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.lib-body h3 { font-size: var(--t-h4); font-weight: 800; letter-spacing: -.005em; }
.lib-body p { font-size: var(--t-sm); color: var(--ink-2); line-height: var(--lh-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-meta { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); margin-top: auto; padding-top: var(--s-2); font-variant-numeric: tabular-nums; }
.lib-meta .track { flex: 1; }
.lib-course-head { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-6); align-items: center; margin-bottom: var(--s-6); padding: var(--s-5); }
.lib-course-head img { width: 100%; border-radius: 12px; display: block; }
.lib-course-head h1 { margin: 0; }
.lib-course-head .lib-meta { margin-top: var(--s-4); padding-top: 0; }

.lib-card--draft { opacity: .72; border-style: dashed; }
.lib-card--add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 180px; padding: var(--s-5); text-align: center; cursor: pointer;
  border-style: dashed; background: transparent; font: inherit; color: var(--ink-2); box-shadow: none;
}
.lib-card--add small { color: var(--ink-3); font-size: var(--t-xs); }
.lib-add__plus { font-size: 26px; line-height: 1; color: var(--gold-text); }
.lib-add { display: flex; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-3) 0 0; }
.lib-add--new { padding-top: var(--s-5); }
.lrow--draft { opacity: .7; }
.lrow__edit { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid var(--line); border-radius: var(--r-full); color: var(--ink-3); font-size: 12px; }
.lrow__edit:hover { border-color: var(--ink-3); color: var(--ink); }

.sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: var(--overlay); padding: 0; }
.sheet__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface) var(--r-surface) 0 0; width: min(760px, 100%); max-height: 92vh; display: flex; flex-direction: column; box-shadow: var(--shadow-3); }
.sheet__head, .sheet__foot { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-5); flex: none; }
.sheet__head { border-bottom: 1px solid var(--line); }
.sheet__head h2 { font-size: var(--t-h4); margin: 0; flex: 1; }
.sheet__foot { border-top: 1px solid var(--line); }
.sheet__foot .spacer { flex: 1; }
.sheet__body { padding: var(--s-5); overflow-y: auto; }
.sheet__body .meta { font-size: var(--t-xs); color: var(--ink-3); }
@media (min-width: 720px) { .sheet { align-items: center; padding: var(--s-5); } .sheet__panel { border-radius: var(--r-surface); } }

/* tools */
.tool-panel { display: flex; gap: var(--s-5); align-items: flex-start; }
.tool-logo { flex: none; width: 64px; height: 64px; border-radius: 14px; background: #fff; overflow: hidden; border: 1px solid var(--line); }
.tool-logo img { width: 100%; height: 100%; object-fit: cover; }
.tool-body { min-width: 0; }
.tool-body h3 { font-size: var(--t-h4); font-weight: 800; display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.tool-body p { color: var(--ink-2); font-size: var(--t-sm); line-height: var(--lh-body); margin-top: var(--s-3); }

/* daily target list (admin) */
.day-card { border: 1px solid var(--line); border-radius: var(--r-surface); overflow: hidden; margin-bottom: var(--s-4); background: var(--surface); }
.day-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--surface-2); font-size: var(--t-sm); font-weight: 800; }
.day-count { margin-left: auto; font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; }
.deal-card { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); background: var(--surface); font-size: var(--t-sm); }
.store-chip { flex: none; width: 34px; height: 34px; border-radius: var(--r-ctl); display: grid; place-items: center; font-weight: 800; }
.deal-main { min-width: 0; }
.deal-main a { color: var(--ink); text-decoration: none; font-weight: 700; }
.deal-main small { display: block; color: var(--ink-3); font-size: var(--t-xs); }
.deal-nums { margin-left: auto; font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.roi-badge { flex: none; background: var(--green-wash); color: var(--green); font-weight: 800; padding: 5px 9px; border-radius: var(--r-chip); font-size: var(--t-xs); }

/* evidence pack */
.ev-table { width: 100%; border-collapse: collapse; font-size: var(--t-xs); }
.ev-table :is(th, td) { border: 1px solid var(--line); padding: var(--s-2) var(--s-3); text-align: left; vertical-align: top; word-break: break-word; }
.ev-table th { background: var(--surface-2); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

/* onboarding gate */
.terms-overlay { position: fixed; inset: 0; z-index: 150; background: var(--overlay); display: grid; place-items: center; padding: var(--s-4); backdrop-filter: blur(6px); overflow-y: auto; }
.terms-card { width: min(720px, 100%); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-feature); padding: var(--s-8); max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-3); }
.terms-card h1 { font-size: 14px; letter-spacing: .16em; font-weight: 800; }
.terms-card .tag { font-size: var(--t-xs); font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin: var(--s-2) 0 var(--s-6); }
.gate-step { display: flex; gap: var(--s-4); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-surface); padding: var(--s-5); margin-top: var(--s-4); }
.gate-step.done { border-color: var(--green); opacity: .7; }
.gate-step.locked-step { opacity: .5; pointer-events: none; }
.gs-num { flex: none; width: 34px; height: 34px; border-radius: var(--r-full); background: var(--gold); color: var(--on-gold); font-weight: 800; display: grid; place-items: center; }
.gate-step.done .gs-num { background: var(--green); color: #fff; }
.gs-body { font-size: var(--t-sm); min-width: 0; }
.gs-body p { color: var(--ink-2); margin: var(--s-2) 0 var(--s-3); font-size: var(--t-sm); }
.sign-embed { background: #fff; border-radius: var(--r-ctl); margin-top: var(--s-3); min-height: 380px; }
.sign-frame { width: 100%; height: min(64vh, 620px); border: 0; border-radius: var(--r-ctl); display: block; background: #fff; }
.gate-cal { max-height: 300px; overflow-y: auto; margin-top: var(--s-3); }
.gate-cal-day { margin-bottom: var(--s-4); }
.gate-cal-date { font-weight: 800; font-size: var(--t-sm); margin-bottom: var(--s-3); }

/* admin: security flags */
.risk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-5); margin-bottom: var(--s-4); }
.risk-head { display: flex; align-items: flex-start; gap: var(--s-4); }
.risk-head small { display: block; color: var(--ink-3); font-size: var(--t-sm); font-weight: 400; margin-top: 2px; }
.risk-right { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); flex: none; }
.risk-score { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 20px; color: var(--ink-2); }
.risk-score small { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.risk-chip { display: inline-block; padding: 3px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.risk-chip--high { background: var(--red-wash); color: var(--red); }
.risk-chip--watch { background: var(--gold-wash); color: var(--gold-text); }
.risk-why { margin: var(--s-4) 0 0; padding-left: 18px; color: var(--ink-2); font-size: var(--t-sm); line-height: var(--lh-snug); }
.risk-why li { margin-bottom: 4px; }
.risk-actions { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); flex-wrap: wrap; }
.risk-dismissed { color: var(--ink-3); font-size: var(--t-sm); }

/* Live Call Archive: search + filters */
.lca-controls { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.lca-controls input[type="search"] {
  width: 100%; padding: 14px 18px; font: inherit; font-size: var(--t-body);
  background: var(--surface); color: var(--ink); min-height: 52px;
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl); outline: none; transition: border-color .12s var(--ease);
}
.lca-controls input[type="search"]:focus { border-color: var(--gold); }
.lca-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.lca-chiprow--sub { align-items: center; }
.lca-sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 4px; }
.lca-chip { padding: 7px 14px; font-size: var(--t-sm); cursor: pointer; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-full); transition: all .12s var(--ease); font: inherit; font-size: var(--t-sm); font-weight: 600; min-height: 38px; }
.lca-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.lca-chip.is-on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
:root[data-theme="dark"] .lca-chip.is-on { background: var(--surface-3); color: var(--ink); border-color: var(--line-strong); }
.lca-chip--clear { color: var(--ink-3); border-style: dashed; }
.lca-list { margin-top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.lca-year { font-size: var(--t-sm); font-weight: 800; letter-spacing: .08em; color: var(--ink-3); padding: var(--s-5) var(--s-2) var(--s-2); }
.lca-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: var(--s-4);
  padding: var(--s-4) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: inherit; transition: border-color .12s var(--ease), box-shadow .12s var(--ease);
}
.lca-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.lca-row__check { width: 22px; height: 22px; margin-top: 2px; border-radius: var(--r-full); border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; color: transparent; flex: none; }
.lca-row--done .lca-row__check { background: var(--green); border-color: var(--green); color: #fff; }
.lca-row__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lca-row__title { font-weight: 700; line-height: var(--lh-snug); }
.lca-row--done .lca-row__title { color: var(--ink-3); }
.lca-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--t-sm); }
.lca-tag { padding: 2px 9px; font-size: var(--t-xs); border-radius: var(--r-full); background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.lca-tag:hover { border-color: var(--ink-3); color: var(--ink); }
.lca-type { padding: 2px 9px; font-size: var(--t-xs); border-radius: var(--r-full); font-weight: 700; }
.lca-type--weekly { background: var(--gold-wash); color: var(--gold-text); }
.lca-type--beginner { background: var(--green-wash); color: var(--green); }
.lca-type--masterclass { background: var(--blue-wash); color: var(--blue); }
.lca-type--mastermind { background: var(--gold-wash); color: var(--gold-text); border: 1px solid var(--gold); }
.lca-type--session { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }
.lca-type--guest { background: var(--plate); color: var(--gold); }
@media (max-width: 640px) { .lca-chiprow { gap: 5px; } .lca-chip { padding: 6px 12px; } }

/* login + join share the system; their page-specific rules live inline. */

@media print {
  body { background: #fff !important; color: #000 !important; }
  .rail, #topbar, #tabbar, .no-print, .toast { display: none !important; }
  #app { display: block; }
  .evidence, .evidence * { color: #000 !important; background: #fff !important; border-color: #999 !important; }
  .page { max-width: 100%; padding: 0; }
}

/* ========================================================= TRACK RECORD =
   The badge is the week plate shrunk to a medal: the same dark plate and
   gold stripe (green for a verified outcome), the level in Fraunces gold.
   Locked is a dashed outline on the ground, never colour alone: locked
   tiles also carry a lock icon and a "3 of 10" fraction.                 */
.bp {
  position: relative; flex: none; width: 64px; height: 64px; border-radius: 12px;
  display: grid; place-items: center; overflow: hidden; color: var(--plate-ink);
  background: radial-gradient(120% 90% at 100% 0%, var(--plate-2), var(--plate) 62%);
  box-shadow: inset 5px 0 0 var(--gold), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.bp .ic { width: 26px; height: 26px; margin-left: 4px; }
.bp em { position: absolute; right: 6px; bottom: 2px; font: normal 800 15px/1 var(--font-display); color: var(--gold); font-variation-settings: "opsz" 144; }
.bp--out { box-shadow: inset 5px 0 0 var(--green), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bp--locked { background: var(--surface-2); color: var(--ink-3); box-shadow: none; border: 1.5px dashed var(--line-strong); }
.bp--locked .ic { margin-left: 0; }
.bp--locked em { color: var(--ink-3); }
.bp--lg { width: 96px; height: 96px; border-radius: 18px; box-shadow: inset 7px 0 0 var(--gold), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bp--lg.bp--out { box-shadow: inset 7px 0 0 var(--green), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bp--lg .ic { width: 40px; height: 40px; }
.bp--lg em { font-size: 22px; right: 10px; bottom: 6px; }
.bp--sm { width: 48px; height: 48px; border-radius: 10px; box-shadow: inset 4px 0 0 var(--gold), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bp--sm.bp--out { box-shadow: inset 4px 0 0 var(--green), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bp--sm .ic { width: 21px; height: 21px; margin-left: 3px; }
.bp--sm em { font-size: 13px; right: 5px; bottom: 2px; }
.bp--xs { width: 36px; height: 36px; border-radius: 8px; box-shadow: inset 3px 0 0 var(--gold), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bp--xs.bp--out { box-shadow: inset 3px 0 0 var(--green), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bp--xs .ic { width: 17px; height: 17px; margin-left: 2px; }
.bp--locked.bp--sm, .bp--locked.bp--xs, .bp--locked.bp--lg { box-shadow: none; }

/* next badge (Home module, earn moment) */
.nextb { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: center; padding: var(--s-4); background: var(--surface-2); border-radius: 12px; }
.nextb__k { font-size: var(--t-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.nextb__t { font-weight: 800; font-size: var(--t-body); margin: 2px 0 var(--s-2); }
.nextb .meta { margin-top: 6px; }
.rec-mod .card__row { align-items: flex-end; }
.rec-rank { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rec-rank small { font-family: var(--font-sans); font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); }

/* deliverable under this week's standard */
.std__form { margin-top: var(--s-4); display: grid; gap: var(--s-2); }
.std__form .fld { font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); }
.std__row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.std__row input { flex: 1 1 220px; min-width: 0; min-height: 44px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-sm); padding: 0 var(--s-3); }
.std__done { margin-top: var(--s-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-ctl); background: var(--green-wash); color: var(--ink-2); font-size: var(--t-sm); }
.std__done > .ic { color: var(--green); stroke-width: 2.6; }
.std__done .btn { margin-left: auto; }
/* Cards side by side in a two-column grid share a top edge (the stacked-card gap is for columns). */
.twocol > .card + .card { margin-top: 0; }
.std__done strong { color: var(--ink); }

/* the record page */
.rec-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-top: var(--s-7); overflow: hidden; }
.rec-stats > div { display: flex; flex-direction: column; gap: 4px; padding: var(--s-5) var(--s-6); border-right: 1px solid var(--line); }
.rec-stats > div:last-child { border-right: 0; }
.rec-stats__k { font-size: var(--t-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.rec-stats__v { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 144; }
.rec-stats__v small { font-family: var(--font-sans); font-size: var(--t-sm); font-weight: 700; color: var(--ink-3); letter-spacing: 0; }
.rec-stats__v--sm { font-size: 22px; color: var(--ink-2); padding-top: 8px; }
.shelf { margin-top: var(--s-5); }
.card.shelf + .card.shelf { margin-top: var(--s-5); }
.shelf__h { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 700; margin: 0 0 var(--s-4); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.bt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: center; padding: var(--s-3); border-radius: 12px; background: var(--surface-2); }
.bt__n { font-weight: 800; font-size: var(--t-sm); line-height: 1.3; }
.bt .track { margin-top: 7px; }
.bt .meta { margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.bt--locked .bt__n { color: var(--ink-2); }
.rec-lower { margin-top: var(--s-5); align-items: start; }
.rec-lower .card + .card { margin-top: 0; }
.pts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.pts li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--s-3); align-items: baseline; font-size: var(--t-sm); color: var(--ink-2); }
.pts__n { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.challenge { margin-top: var(--s-5); border-left: 4px solid var(--gold); }
.challenge--won { border-left-color: var(--green); }
.challenge__t { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 700; }
.challenge__won { display: flex; align-items: center; gap: var(--s-2); font-weight: 800; color: var(--green) !important; }

/* wins list (record + Community) */
.wl { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.wl li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-2) var(--s-3) var(--s-2) var(--s-2); border-radius: 12px; background: var(--surface-2); }
.wl b { font-size: var(--t-sm); }
.wl .meta { display: block; }

/* the board (Community) */
.comm-rec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); margin-top: var(--s-6); align-items: start; }
.comm-rec .card + .card { margin-top: 0; }
.board__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.board__t { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 700; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-ctl); background: var(--surface-2); }
.seg button { font: inherit; font-size: var(--t-xs); font-weight: 800; border: 0; background: none; color: var(--ink-3); padding: 7px 12px; min-height: 36px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lb li { display: grid; grid-template-columns: 32px auto minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-2) var(--s-3); border-radius: var(--r-ctl); }
.lb--admin li { grid-template-columns: 32px minmax(0, 1fr) auto; }
.lb li.you { background: var(--gold-wash); }
.lb .lb__gap { display: block; height: 1px; padding: 0; margin: var(--s-2) var(--s-3); background: var(--line); }
.lb__r { font-family: var(--font-display); font-weight: 700; font-size: 19px; text-align: center; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lb li:nth-child(-n+3) .lb__r { color: var(--gold-text); }
.lb__n { display: flex; align-items: center; gap: var(--s-2); font-weight: 700; font-size: var(--t-sm); min-width: 0; }
.lb__p { font-weight: 800; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.lb__p small { color: var(--ink-3); font-weight: 700; font-size: var(--t-xs); }
.av { width: 32px; height: 32px; border-radius: var(--r-full); display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--surface-3); color: var(--ink-2); }
.chip--you { background: var(--gold); color: var(--on-gold); }

/* Telegram card */
.tgcard__t { font-size: 25px; font-weight: 800; }
.tgcard__add { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); padding: var(--s-4); border-radius: var(--r-ctl); background: var(--surface-2); font-size: var(--t-sm); color: var(--ink-2); }
.checkline { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-sm); font-weight: 600; color: var(--ink); min-height: 44px; }
.checkline input { width: 20px; height: 20px; accent-color: var(--gold-deep); flex: none; }

/* log a win */
.winform { display: grid; gap: var(--s-5); margin-top: var(--s-7); }
.winform .fld { display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); }
.winform :is(input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), textarea) { min-height: 46px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-body); padding: var(--s-2) var(--s-3); }
.winform__2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.picks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.picks legend { font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); margin-bottom: var(--s-3); padding: 0; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.pick--taken span { opacity: .55; }
.pick small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.drop { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px var(--s-3); align-items: center; padding: var(--s-5); border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--surface-2); cursor: pointer; }
.drop:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.drop > .ic { grid-row: span 2; width: 28px; height: 28px; color: var(--ink-3); }
.drop b { font-size: var(--t-sm); }
.drop img { grid-column: 1 / -1; max-height: 220px; width: auto; justify-self: start; border-radius: var(--r-ctl); border: 1px solid var(--line); margin-top: var(--s-3); }

/* the earn moment */
.earn-overlay { position: fixed; inset: 0; z-index: 160; background: var(--overlay); display: grid; place-items: center; padding: var(--s-4); backdrop-filter: blur(4px); }
.earn { position: relative; width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-feature); box-shadow: var(--shadow-3); padding: var(--s-8) var(--s-7) var(--s-7); display: grid; justify-items: center; text-align: center; gap: var(--s-2); animation: earn-in .32s var(--ease); }
.earn .bp--lg { margin: var(--s-3) 0 var(--s-2); animation: earn-pop .5s var(--ease) .08s both; }
.earn__k { font-size: var(--t-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.earn__t { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.015em; }
.earn__p { color: var(--ink-2); font-size: var(--t-body); max-width: 34ch; }
.earn .nextb { width: 100%; text-align: left; margin-top: var(--s-4); }
.earn__btns { justify-content: center; margin-top: var(--s-5); }
.earn__x { position: absolute; top: var(--s-3); right: var(--s-3); }
@keyframes earn-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes earn-pop { from { opacity: 0; transform: scale(.6) rotate(-6deg); } 60% { transform: scale(1.06) rotate(1deg); } to { opacity: 1; transform: none; } }

/* verdict chips on a lead answer (admin surfaces) */
.verdicts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: var(--s-3) 0 var(--s-2); }
.verdict { position: relative; }
.verdict input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.verdict span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-full); border: 1px solid var(--line-strong); font-size: var(--t-sm); font-weight: 800; color: var(--ink-2); background: var(--surface); }
.verdict--buy input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.verdict--watch input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.verdict--pass input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.verdict input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.win-proof { display: block; max-width: min(360px, 100%); max-height: 260px; border-radius: var(--r-ctl); border: 1px solid var(--line); margin: var(--s-3) 0; }
.tg-bubble { margin-top: var(--s-2); padding: var(--s-3) var(--s-4); border-radius: 14px 14px 14px 4px; background: var(--surface-2); font-size: var(--t-sm); line-height: 1.5; max-width: 520px; }

/* the certificate: a plate you can print */
.cert {
  position: relative; margin-top: var(--s-5); padding: var(--s-9) var(--s-9) var(--s-8);
  border-radius: var(--r-feature); color: var(--plate-ink); overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, var(--plate-2), var(--plate) 60%);
  box-shadow: inset 10px 0 0 var(--gold), var(--shadow-2);
}
.cert::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 32px 32px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, .9), transparent 70%);
}
.cert > * { position: relative; }
.cert__k { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--plate-mute); }
.cert__t { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--gold); margin-top: var(--s-2); font-variation-settings: "opsz" 144; }
.cert__name { font-family: var(--font-display); font-size: clamp(36px, 6vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin-top: var(--s-7); text-wrap: balance; font-variation-settings: "opsz" 144; }
.cert__what { font-size: var(--t-lead); color: var(--plate-mute); margin-top: var(--s-3); max-width: 46ch; }
.cert__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-6); margin-top: var(--s-9); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .14); }
.cert__sig { font-family: var(--font-display); font-style: italic; font-size: 26px; font-weight: 600; }
.cert__role, .cert__meta { font-size: var(--t-xs); color: var(--plate-mute); }
.cert__meta { text-align: right; display: grid; gap: 2px; }
.cert__meta .mono { font-family: var(--font-mono); font-size: 12px; }

/* public /verify page */
.verify { min-height: 100vh; display: grid; place-items: center; padding: var(--s-6); background: var(--bg); }
.verify__card { width: min(480px, 100%); text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-feature); box-shadow: var(--shadow-2); padding: var(--s-8) var(--s-7); }
.verify__k { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.verify__ok { width: 56px; height: 56px; margin: var(--s-5) auto 0; border-radius: var(--r-full); display: grid; place-items: center; background: var(--green); color: #fff; font-size: 28px; font-weight: 800; }
.verify__h { font-family: var(--font-display); font-size: 28px; margin-top: var(--s-4); }
.verify__name { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-top: var(--s-5); }
.verify__what { color: var(--ink-2); margin-top: var(--s-2); }
.verify__code { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); margin-top: var(--s-5); }

@media (max-width: 1000px) {
  .comm-rec { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tiles, .winform__2 { grid-template-columns: 1fr; }
  .rec-stats > div { padding: var(--s-4); border-bottom: 1px solid var(--line); }
  .rec-stats__v { font-size: 28px; }
  .cert { padding: var(--s-7) var(--s-6) var(--s-6); }
  .earn { padding: var(--s-7) var(--s-5) var(--s-5); }
}
@media (prefers-reduced-motion: reduce) {
  .earn, .earn .bp--lg { animation: none; }
}
@media print {
  .cert { box-shadow: inset 10px 0 0 var(--gold); -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; margin: 0; }
  .site-banner, .earn-overlay { display: none !important; }
}

/* ============================================================= RESPONSIVE = */
@media (max-width: 1240px) {
  .home { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-5); }
  .lesson { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-6); }
  .hero { grid-template-columns: 240px minmax(0, 1fr); }
}

@media (max-width: 1000px) {
  :root { --t-display: 34px; --t-h1: 29px; --t-h2: 23px; }
  #app { grid-template-columns: 1fr; }
  .rail { display: none; }
  .rail.is-open { display: flex; position: fixed; inset: 56px 0 0 0; z-index: 90; height: auto; width: 100%; border-right: 0; background: var(--surface); }

  #topbar {
    display: flex; align-items: center; gap: var(--s-3);
    position: sticky; top: 0; z-index: 80; min-height: 56px;
    padding: var(--s-2) var(--s-4);
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  #topbar .tb-mark { display: flex; align-items: center; gap: var(--s-2); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
  #topbar .tb-mark .brand__mark { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; }
  #topbar .tb-mark .brand__mark img { width: 20px; height: 20px; }
  #topbar .tb-ctx { margin-left: auto; font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  #menu-btn { min-width: 44px; min-height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: var(--r-ctl); color: var(--ink); cursor: pointer; }

  #tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
    background: var(--surface); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0); box-shadow: 0 -8px 24px -12px rgba(16, 24, 40, .18);
  }
  .tabitem {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: var(--tabbar-h); padding: var(--s-2) var(--s-1);
    text-decoration: none; color: var(--ink-3); font-size: 11.5px; font-weight: 700;
    background: none; border: 0; cursor: pointer; font-family: inherit;
  }
  .tabitem__ic { display: grid; place-items: center; width: 34px; height: 26px; border-radius: 8px; }
  .tabitem__ic .ic { width: 22px; height: 22px; }
  .tabitem[aria-current="page"] { color: var(--ink); }
  .tabitem[aria-current="page"] .tabitem__ic { background: var(--gold-wash); color: var(--gold-text); }

  .page { padding: var(--s-5) var(--s-4) calc(var(--tabbar-h) + var(--s-9)); }
  .home, .lesson, .twocol { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .lesson__rail { position: static; }
  .form-2col { grid-template-columns: 1fr; }
  .statgrid { grid-template-columns: 1fr 1fr; }

  .hero { grid-template-columns: 1fr; }
  .hero .plate { min-height: 150px; padding: var(--s-5); box-shadow: inset 0 6px 0 var(--gold); }
  .hero__body { padding: var(--s-5); }
  .hero__title { font-size: 27px; }
  .hero__cta .btn--lg { width: 100%; }

  .nextcall { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-5); }
  .playbook-hero { grid-template-columns: 1fr; }
  .playbook-hero .plate { min-height: 120px; }
  .lib-course-head { grid-template-columns: 1fr; }
  .lib-course-head img { width: 100%; }
  .tool-panel { flex-direction: column; }
  .standard { grid-template-columns: 1fr; gap: var(--s-2); }

  .lrow { grid-template-columns: 24px 40px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3); }
  .lrow__n { width: 40px; height: 40px; font-size: 16px; }
  .lrow__tail { grid-column: 3; margin-top: var(--s-1); }
  .lrow--plain { grid-template-columns: 40px minmax(0, 1fr); }
  .lrow--nonum { grid-template-columns: minmax(0, 1fr); }
  .lrow--nonum .lrow__tail { grid-column: 1; }

  .deal-row, .deal-row.admin-mem { grid-template-columns: minmax(0, 1fr) 80px; font-size: var(--t-xs); }
  .deal-row span:nth-child(n+3), .deal-head span:nth-child(n+3) { display: none; }
  .deal-row.admin-mem .admin-actions { display: flex; grid-column: 1 / -1; }
  .deal-row.admin-mem span:nth-child(n+3) { display: none; }
  .deal-row.admin-mem span.admin-actions { display: flex; }
  .deal-row.admin-queue { grid-template-columns: 28px minmax(0, 1fr); }
  .deal-row.admin-queue span:nth-child(n+3) { display: none; }
  .deal-row.admin-queue span.admin-actions { display: flex; grid-column: 1 / -1; }

  .lessonbar { position: fixed; left: var(--s-3); right: var(--s-3); bottom: calc(var(--tabbar-h) + var(--s-3)); margin: 0; }
  .lesson { padding-bottom: 84px; }
  .lesson__rail .mod--dupe { display: none; }
  .toast { bottom: calc(var(--tabbar-h) + var(--s-4)); }
}

@media (max-width: 700px) {
  .cal-cell { min-height: 62px; padding: 3px; }
  .cal-ev { font-size: 10px; padding: 2px 3px; }
  .cal-head h3 { min-width: 0; flex: 1; font-size: var(--t-sm); }
  .qz__q { font-size: var(--t-h3); }
  .empty-state { padding: var(--s-6); }
  .panel, .card--pad { padding: var(--s-5); }
  .slot { min-width: 0; }
  .wkgrid { grid-template-columns: 1fr; }
  .plate--wide .plate__n { font-size: 60px; }
  .lessonbar__pos { display: none; }
}

@media (max-width: 400px) {
  .statgrid { grid-template-columns: 1fr; }
  .tabitem { font-size: 10.5px; }
}

/* ---------------------------------------------------------- v3 additions -- */
/* journey strip: progress is endowed, enrolment is the first stamp */
.journey { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: flex; gap: var(--s-2); flex-wrap: wrap; }
.journey__step > a, .journey__step > span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px 4px 6px;
  border-radius: var(--r-full); background: var(--surface-2); color: var(--ink-3);
  text-decoration: none; font-size: 12.5px; font-weight: 800;
}
.journey__step > a:hover { background: var(--surface-3); color: var(--ink); }
.journey__step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-3); font-style: normal; }
.journey__step i .ic { width: 12px; height: 12px; stroke-width: 3; }
.journey__step.is-done > * { color: var(--green); background: var(--green-wash); }
.journey__step.is-done i { background: var(--green); color: #fff; }
.journey__step.is-cur > * { background: var(--gold-wash); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--gold); }
.journey__step.is-cur i { background: var(--gold); color: var(--on-gold); }
.journey__step.is-locked > * { opacity: .7; }

.infogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4); margin-top: var(--s-6); }
.bonusgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-4); margin-top: var(--s-7); }
.bonus { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-5); text-decoration: none; color: inherit; transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.bonus:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.bonus__ic { width: 54px; height: 54px; border-radius: 14px; background: var(--plate); color: var(--gold); display: grid; place-items: center; flex: none; box-shadow: inset 3px 0 0 var(--gold); }
.bonus__body { flex: 1; min-width: 0; }
.bonus__body b { font-size: var(--t-body); font-weight: 800; display: block; }
.bonus__body p { margin-top: 4px; }
.bonus__tail { display: flex; align-items: center; gap: 8px; color: var(--ink-3); flex: none; }
.progcard { min-width: 280px; margin-bottom: var(--s-2); }

a.hero__next { text-decoration: none; color: inherit; transition: border-color .12s var(--ease), background .12s var(--ease); }
a.hero__next:hover { border-color: var(--line-strong); background: var(--surface); }
.hero__next-k, .hero__next-t, .hero__next-m { display: block; }
.hero__next .plate--mini { display: grid; }

/* grids and stacks own their spacing */
.home__side > .card + .card, .home__main > .card + .card, .infogrid > .card + .card, .bonusgrid > .card + .card,
.lesson__rail > .card + .card, .pagehead > .card + .card, .home__main > * + .card { margin-top: 0; }
.lrow--locked .lrow__check { color: var(--ink-3); border-style: dashed; }
.lrow--plain .lrow__n .ic { color: var(--gold-text); }
.rail__who .avatar { width: 34px; height: 34px; font-size: 13px; }
@media (max-width: 700px) { .progcard { width: 100%; } .hero__title { font-size: 25px; } }

/* lesson bar on phones: one wide primary action, Next beside it; the previous
   arrow lives in the lesson header so it never forces a horizontal scroll. */
@media (max-width: 700px) {
  .lessonbar { padding: var(--s-2) var(--s-3); gap: var(--s-2); }
  .lessonbar .btn--icon { display: none; }
  .lessonbar > .btn:first-child { flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.2; padding-left: var(--s-3); padding-right: var(--s-3); }
  .lessonbar .spacer { display: none; }
}


/* ---- Member store ---------------------------------------------------- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.pcard__img { position: relative; background: #fff; aspect-ratio: 1 / 1; }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pcard__swap {
  position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  cursor: pointer; box-shadow: 0 2px 8px rgba(16, 24, 40, .12);
}
.pcard__swap:hover { color: var(--ink); border-color: var(--line-strong); }
.pcard__body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.pcard__name { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.15; margin: 0; }
.pcard__spec { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.45; margin: 0; }
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: auto; padding-top: var(--s-2); }
.chip--sm { font-size: 11.5px; padding: 2px 8px; }
.pcard__sizes { font-size: var(--t-xs); color: var(--ink-3); }
.pcard__foot { display: flex; align-items: baseline; gap: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.pcard__price { font-family: var(--font-display); font-size: 23px; font-weight: 700; }
.pcard__cost { font-size: var(--t-xs); color: var(--ink-3); }
@media (max-width: 1180px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr; } }

.pcard--hero { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.pcard--fix { border-color: var(--red); }
.pcard__flag { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.pcard__flag--fix { color: var(--red); }
.pcard__fixnote { font-size: var(--t-xs); color: var(--red); line-height: 1.45; margin: 0; }

.pcard__buy { display: flex; gap: var(--s-2); align-items: center; margin-top: var(--s-3); }
.pcard__size {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 var(--s-3);
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-sm);
}
.pcard__buybtn { flex: 0 0 auto; min-height: 44px; }

/* ============================================================================
   CAPSULE 01 STORE
   A real storefront inside the Classroom language: white surfaces, one gold
   accent as fill, Fraunces on the names. Product photography sits on the
   garment's own cream so the mockups read as a set rather than six cut-outs.
   ========================================================================== */
:root { --cream-plate: #f4efe3; }
.page--store, .page--pdp { max-width: 1180px; }

/* ------------------------------------------------------------------ hero -- */
.shero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--s-8); align-items: center; margin-bottom: var(--s-8);
}
.shero__copy { display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start; }
.shero__eyebrow {
  font-size: var(--t-mono); font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-text);
}
.shero__title {
  font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800; line-height: 1.05; letter-spacing: -.015em; margin: 0; text-wrap: balance;
}
.shero__lede { font-size: var(--t-lead); line-height: var(--lh-snug); color: var(--ink-2); max-width: 54ch; margin: 0; }
.shero__closes {
  display: flex; gap: var(--s-2); align-items: flex-start; margin: 0;
  font-size: var(--t-sm); color: var(--ink-2);
  background: var(--gold-wash); border-radius: var(--r-ctl); padding: var(--s-3) var(--s-4);
}
.shero__closes .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--gold-text); }
.shero__closes--shut { background: var(--surface-2); }
.shero__closes--shut .ic { color: var(--ink-3); }
.shero__jump { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.shero__art {
  background: var(--cream-plate); border-radius: var(--r-feature);
  padding: var(--s-6); box-shadow: var(--shadow-2);
}
.shero__art img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }

/* ------------------------------------------------------------ trust strip -- */
.shipstrip {
  list-style: none; margin: 0 0 var(--s-9); padding: var(--s-4) var(--s-5);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
.shipstrip li { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--t-sm); color: var(--ink-2); }
.shipstrip .ic { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 1px; }
.shipstrip strong { color: var(--ink); }

/* --------------------------------------------------------------- sections -- */
.sblock { margin-bottom: var(--s-9); }
.sblock__head { max-width: 66ch; margin-bottom: var(--s-6); }
.sblock__head p { font-size: var(--t-body); color: var(--ink-2); margin: var(--s-2) 0 0; }
.sblock__foot { font-size: var(--t-sm); color: var(--ink-3); margin: var(--s-5) 0 0; max-width: 70ch; }

/* --------------------------------------------------------- charter blocks -- */
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); align-items: stretch; }
.bcard {
  position: relative; display: flex; flex-direction: column; gap: var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s-6); scroll-margin-top: 90px;
}
.bcard--lift { border-color: var(--gold); box-shadow: var(--shadow-2); }
.bcard--top { background: var(--plate); border-color: var(--plate); color: var(--plate-ink); }
.bcard--top .bcard__line, .bcard--top .bcard__note, .bcard--top .bcard__price small { color: var(--plate-mute); }
.bcard--top .bcard__list li { border-color: rgba(247, 243, 234, .14); }
.bcard--top .bcard__list li span:last-child { color: var(--plate-mute); }
.bcard__flag {
  position: absolute; top: -11px; left: var(--s-6);
  background: var(--gold); color: var(--on-gold); border-radius: var(--r-chip);
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px;
}
.bcard__strip { display: flex; gap: var(--s-1); }
.bcard__strip span {
  flex: 1; aspect-ratio: 1; background: var(--cream-plate);
  border-radius: var(--r-chip); overflow: hidden; display: block;
}
.bcard__strip img { width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: multiply; }
.bcard__head { display: flex; flex-direction: column; gap: var(--s-1); }
.bcard__name { font-family: var(--font-display); font-size: 27px; font-weight: 800; line-height: 1.1; margin: 0; }
.bcard__line { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }
.bcard__price { display: flex; flex-direction: column; gap: 2px; }
.bcard__price strong { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.bcard__price small { font-size: var(--t-xs); color: var(--ink-3); }
.bcard__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bcard__list li {
  display: flex; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-2) 0; border-top: 1px solid var(--line);
  font-size: var(--t-sm); font-variant-numeric: tabular-nums;
}
.bcard__list li:first-child { border-top: 0; }
.bcard__list li span:last-child { color: var(--ink-3); flex: none; }
.bcard__list li.is-key span:first-child { font-weight: 700; }
.bcard__list li.is-key span:last-child { color: var(--gold-text); font-weight: 700; }
.bcard--top .bcard__list li.is-key span:last-child { color: var(--gold); }
.bcard__note { font-size: var(--t-xs); color: var(--ink-3); margin: 0; }
.bcard__btn { margin-top: auto; width: 100%; }

/* --------------------------------------------------------- single pieces -- */
.sgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.scard {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.scard:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.scard__img { background: var(--cream-plate); aspect-ratio: 1; }
.scard__img img { width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: multiply; }
.scard__body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-1); flex: 1; }
.scard__name { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.15; margin: 0; }
.scard__spec { font-size: var(--t-xs); color: var(--ink-3); margin: 0; }
.scard__foot { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-3); }
.scard__price { font-family: var(--font-display); font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; }
.scard__cta { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); font-weight: 600; color: var(--gold-text); }
.scard__cta .ic { width: 15px; height: 15px; }

/* ------------------------------------------------------------------- faq -- */
.sfaq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-6) var(--s-7) var(--s-7); }
.sfaq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); margin-top: var(--s-5); }
.sfaq__grid h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 0 0 var(--s-2); }
.sfaq__grid p { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }

/* ----------------------------------------------------------- product page -- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-8); align-items: start; }
.pdp__gallery { display: flex; flex-direction: column; gap: var(--s-3); position: sticky; top: 80px; }
.pdp__main { background: var(--cream-plate); border-radius: var(--r-feature); overflow: hidden; }
.pdp__main img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.pdp__thumbs { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.pdp__thumb {
  width: 72px; height: 72px; padding: 0; cursor: pointer; overflow: hidden;
  background: var(--cream-plate); border: 2px solid transparent; border-radius: var(--r-ctl);
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: multiply; }
.pdp__thumb.is-on { border-color: var(--ink); }
.pdp__thumb:hover { border-color: var(--line-strong); }

.pdp__buy { display: flex; flex-direction: column; gap: var(--s-4); align-items: stretch; }
.pdp__eyebrow { font-size: var(--t-mono); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.pdp__name { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; line-height: 1.08; margin: 0; text-wrap: balance; }
.pdp__tagline { font-size: var(--t-lead); color: var(--ink-2); margin: 0; }
.pdp__price { font-family: var(--font-display); font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: var(--s-3); }
.pdp__price small { font-family: var(--font-sans); font-size: var(--t-xs); font-weight: 400; color: var(--ink-3); }
.pdp__form { display: flex; flex-direction: column; gap: var(--s-3); }
.pdp__label { font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); }
.pdp__size {
  min-height: 52px; padding: 0 var(--s-4); font: inherit; font-size: var(--t-body);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
}
.pdp__btn { width: 100%; }
.pdp__btn[disabled] { opacity: .55; cursor: not-allowed; }
.pdp__reassure { font-size: var(--t-xs); color: var(--ink-3); text-align: center; margin: 0; }
.pdp__credits {
  display: flex; gap: var(--s-2); align-items: flex-start; margin: 0;
  font-size: var(--t-sm); color: var(--ink-2);
  background: var(--gold-wash); border-radius: var(--r-ctl); padding: var(--s-3) var(--s-4);
}
.pdp__credits .ic { width: 18px; height: 18px; flex: none; color: var(--gold-text); margin-top: 1px; }
.pdp__credits strong { color: var(--ink); }
.pdp__locked { background: var(--surface-2); border-radius: var(--r-ctl); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start; }
.pdp__locked p { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }
.pdp__facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2) var(--s-5); margin: 0; font-size: var(--t-sm); }
.pdp__facts dt { color: var(--ink-3); font-weight: 600; }
.pdp__facts dd { margin: 0; color: var(--ink-2); }

.pdp__lower { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-8); margin-top: var(--s-9); align-items: start; }
.pdp__copy p { font-size: var(--t-read); line-height: var(--lh-read); color: var(--ink-2); margin: 0 0 var(--s-4); max-width: 66ch; }
.pdp__retire { font-weight: 600; color: var(--ink); }
.pdp__cross { background: var(--surface); border: 1px solid var(--gold); border-radius: var(--r-card); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; }
.pdp__cross h3 { font-family: var(--font-display); font-size: 23px; font-weight: 700; margin: 0; }
.pdp__cross p { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------------ size dialog -- */
.bmodal {
  position: fixed; inset: 0; z-index: 90; background: var(--overlay);
  display: flex; align-items: center; justify-content: center; padding: var(--s-5);
  overflow-y: auto;
}
.bmodal__box {
  position: relative; width: min(480px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-feature); padding: var(--s-7);
  display: flex; flex-direction: column; gap: var(--s-4); box-shadow: var(--shadow-3);
}
.bmodal__x {
  position: absolute; top: var(--s-4); right: var(--s-4);
  width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer;
  background: var(--surface-2); border: 0; border-radius: var(--r-full);
  color: var(--ink-2); font-size: 22px; line-height: 1;
}
.bmodal__x:hover { background: var(--line); color: var(--ink); }
.bmodal__title { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin: 0; line-height: 1.1; }
.bmodal__sub { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }
.bmodal__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.bmodal__pname { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-sm); font-weight: 600; min-width: 0; }
.bmodal__pname img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--r-chip); background: var(--cream-plate); mix-blend-mode: multiply; flex: none; }
.bmodal__row select {
  min-height: 48px; min-width: 118px; padding: 0 var(--s-3); font: inherit; font-size: var(--t-sm);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
}
.bmodal__one { font-size: var(--t-xs); color: var(--ink-3); margin: 0; }
.bmodal__go { width: 100%; }
.bmodal__go[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------- narrow -- */
@media (max-width: 1080px) {
  .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgrid { grid-template-columns: 1fr; }
  .bcard__strip span { max-width: 132px; }
}
@media (max-width: 900px) {
  .shero { grid-template-columns: 1fr; gap: var(--s-6); }
  .shero__art { order: -1; }
  .shipstrip { grid-template-columns: 1fr; gap: var(--s-3); }
  .pdp, .pdp__lower { grid-template-columns: 1fr; gap: var(--s-6); }
  .pdp__gallery { position: static; }
  .sfaq__grid { grid-template-columns: 1fr; gap: var(--s-5); }
}
@media (max-width: 560px) {
  .sgrid { grid-template-columns: 1fr; }
  .pdp__thumb { width: 60px; height: 60px; }
  .bmodal__row { flex-direction: column; align-items: stretch; gap: var(--s-2); }
  .bmodal__row select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .scard { transition: none; }
  .scard:hover { transform: none; }
}

/* three-piece capsule: the singles row is three wide, not four */
.sgrid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .sgrid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sgrid--three { grid-template-columns: 1fr; } }

/* what the same thing costs bought separately, and the standing-rate anchor */
.bcard__save { font-size: var(--t-sm); color: var(--ink-3); margin: 0; }
.bcard__save b { color: var(--ink); font-weight: 700; }
.bcard--top .bcard__save { color: var(--plate-mute); }
.bcard--top .bcard__save b { color: var(--plate-ink); }
.bcard__price small b { color: var(--gold-text); }
.bcard--top .bcard__price small b { color: var(--gold); }
.anchorline {
  display: flex; gap: var(--s-2); align-items: flex-start;
  background: var(--gold-wash); border-radius: var(--r-ctl);
  padding: var(--s-3) var(--s-4); font-size: var(--t-sm); color: var(--ink-2);
  margin: var(--s-3) 0 0; max-width: 78ch;
}
.anchorline .ic { width: 18px; height: 18px; flex: none; color: var(--gold-text); margin-top: 1px; }
.anchorline strong { color: var(--ink); }
@media (max-width: 1080px) { .bcard__strip span { max-width: none; } }

/* ------------------------------------------------- founder pack extras -- */
/* the value stack: what each part costs bought on its own */
.vstack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vstack li { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.vstack li:first-child { border-top: 0; }
.vstack li > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.vstack li small { font-size: var(--t-xs); color: var(--ink-3); font-weight: 400; }
.vstack li > span:last-child { flex: none; color: var(--ink-2); }
.vstack__t { border-top: 1px solid var(--line-strong) !important; font-weight: 700; }
.vstack__t > span:last-child { text-decoration: line-through; color: var(--ink-3) !important; }
.vstack__y { border-top: 2px solid var(--ink) !important; align-items: baseline; }
.vstack__y > span:first-child { font-weight: 700; font-size: var(--t-body); }
.vstack__y > span:last-child { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--ink) !important; line-height: 1; }
.bcard--top .vstack li { border-color: rgba(247,243,234,.14); }
.bcard--top .vstack li > span:last-child, .bcard--top .vstack li small { color: var(--plate-mute); }
.bcard--top .vstack__t { border-top-color: rgba(247,243,234,.3) !important; }
.bcard--top .vstack__y { border-top-color: var(--gold) !important; }
.bcard--top .vstack__y > span:last-child { color: var(--plate-ink) !important; }
.vstack__save { display: flex; gap: var(--s-2); align-items: flex-start; margin: 0; font-size: var(--t-sm); color: var(--ink-2); background: var(--gold-wash); border-radius: var(--r-ctl); padding: var(--s-3) var(--s-4); }
.vstack__save .ic { width: 17px; height: 17px; flex: none; color: var(--gold-text); margin-top: 1px; }
.vstack__save strong { color: var(--ink); }
.bcard--top .vstack__save { background: rgba(242,182,50,.14); color: var(--plate-mute); }
.bcard--top .vstack__save strong { color: var(--plate-ink); }
.bcard--top .vstack__save .ic { color: var(--gold); }

/* the three rules of the drop */
.rules3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-bottom: var(--s-8); }
.rule3 { border-top: 2px solid var(--ink); padding-top: var(--s-3); display: flex; flex-direction: column; gap: var(--s-2); }
.rule3__n { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.rule3 p { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }

/* founder pieces: shown, not priced */
.sgrid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.scard__inpack { font-size: var(--t-xs); font-weight: 700; color: var(--gold-text); }

/* the permanent black and gold line */
.cgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.ccard__img { background: var(--surface-2); aspect-ratio: 1; }
.ccard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccard__body { padding: var(--s-3) var(--s-4) var(--s-4); display: flex; flex-direction: column; gap: 2px; }
.ccard__name { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0; line-height: 1.2; }
.ccard__spec { font-size: var(--t-xs); color: var(--ink-3); margin: 0; }
.ccard__price { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-top: var(--s-2); font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) { .sgrid--four, .cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .rules3 { grid-template-columns: 1fr; gap: var(--s-4); } .sgrid--four, .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sgrid--four, .cgrid { grid-template-columns: 1fr 1fr; } .vstack__y > span:last-child { font-size: 28px; } }

/* ===== Lead teardown recorder (admin) + the member-facing walkthrough =====
   The overlay is deliberately loud and fixed: while it is up, Chris is talking
   over a shared screen and needs the state and the stop button findable without
   hunting. See docs/designs/lead-review-recorder.md */
.rec-ov { position: fixed; inset: auto auto 20px 20px; z-index: 9000; max-width: min(380px, calc(100vw - 40px)); }
.rec-panel { background: var(--surface, #14181a); color: var(--ink-1, #e8eef1); border: 1px solid var(--line, #2a3236);
  border-radius: 14px; padding: 16px 18px; box-shadow: 0 18px 48px rgba(0, 0, 0, .45); font-size: 14px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3, #9fb0ba); flex: none; }
.rec-dot.is-live { background: #e0533f; animation: recPulse 1.4s ease-in-out infinite; }
@keyframes recPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.rec-meter { height: 6px; border-radius: 999px; background: var(--line, #2a3236); overflow: hidden; margin: 0 0 12px; }
.rec-meter > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4ba36b, #d8a24a); transition: width .1s linear; }
.rec-prog { height: 6px; border-radius: 999px; background: var(--line, #2a3236); overflow: hidden; margin-top: 12px; }
.rec-prog > i { display: block; height: 100%; width: 0; background: #d8a24a; transition: width .25s ease; }
.rev-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rev-answer--vid .player { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .rec-dot.is-live { animation: none; } }

/* Site-wide notice (Admin -> Settings -> Maintenance banner). Top of every route; gold wash so it reads as ours, not as an error. */
.site-banner { background: var(--gold-wash); border: 1px solid var(--gold-deep); border-radius: var(--r-ctl); color: var(--ink); font-size: var(--t-sm); line-height: var(--lh-snug); padding: var(--s-3) var(--s-4); margin: 0 0 var(--s-5); text-align: center; }

/* ===== Teardown stage (admin) + the member's Vault choice =====
   The stage is what Chris's whole monitor captures while he records, so it holds one
   lead and nothing else. Everything on it lands in a Vault lesson in 90 days. */
.td-stage { max-width: 68ch; }
.td-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin: 10px 0 6px; }
.td-asin { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .04em;
  background: var(--line, #2a3236); color: var(--ink-1, #e8eef1); padding: 3px 9px; border-radius: 6px; }
.td-num { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.td-num b { color: var(--accent, #d8a24a); margin: 0 4px; font-weight: 800; }
.td-link { margin: 4px 0 0; font-size: 13px; word-break: break-all; }
.td-notes { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--accent, #d8a24a);
  border-radius: 6px; background: var(--surface-2, rgba(127, 127, 127, .07)); font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; }
.td-notes .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; margin-bottom: 6px; }
.td-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 24px 0 14px; }

/* A quiet way out, not a prompt: this reads as a note with a link in it. */
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: inherit;
  color: var(--accent, #d8a24a); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkish:disabled { opacity: .5; cursor: default; }
.rev-vault { margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; opacity: .78; }

/* ===== Teardown session ===== */
.sess-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; margin-bottom: 18px; border: 1px solid var(--line, #2a3236); border-radius: 12px;
  background: var(--surface-2, rgba(127, 127, 127, .07)); }
.sess-bar .meta { margin: 4px 0 0; max-width: 52ch; }
.sess-pick { margin: -8px 0 20px; font-size: 13px; }
.sess-pick > summary { cursor: pointer; color: var(--ink-3, #9fb0ba); padding: 4px 0; }
.sess-row { display: flex; align-items: flex-start; gap: 9px; padding: 5px 0; line-height: 1.45; }
.sess-row input { width: auto; margin-top: 3px; flex: none; }
.sess-pos { font-weight: 800; font-size: 14px; letter-spacing: .01em; }
/* The lead name inside the floating window, which is only ~260px wide. */

/* ===== The recording controller =====
   This window is ON SCREEN for the whole take, so it is inside the Vault lesson at 90
   days. It gets designed like something Chris chose to have there, not like a debug
   panel: one dark card, the lead and its numbers as the subject, and the two links he
   would otherwise be hunting for mid-sentence.
   Sized for the ~300px Document PiP window, and it degrades to the bottom-left of the
   page when Document PiP is unavailable. */
.rf-body { background: #0b0e0f; }
.rec-ov .rec-panel.rf { width: 288px; }
.rec-panel.rf {
  box-sizing: border-box; width: 100%; padding: 14px 15px 13px;
  background: linear-gradient(180deg, #14181a 0%, #0e1213 100%);
  color: #e8eef1; border: 1px solid #262f34; border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  font: 500 13px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.rf-body .rec-panel.rf { border: 0; border-radius: 0; box-shadow: none; min-height: 100vh; }

.rf-top { display: flex; align-items: center; gap: 8px; }
.rf-state { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #cfdae0; }
.rf-pos { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: #d8a24a; background: rgba(216, 162, 74, .12); border: 1px solid rgba(216, 162, 74, .3);
  padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.rec-dot.is-paused { background: #d8a24a; }

.rf-lead { margin: 11px 0 0; font-size: 13.5px; font-weight: 650; line-height: 1.35; color: #f2f6f8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rf-asin { margin: 5px 0 0; font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em; color: #7f929c; }

.rf-money { display: flex; align-items: flex-end; gap: 10px; margin: 12px 0 0;
  padding: 9px 11px; border-radius: 9px; background: rgba(255, 255, 255, .035); border: 1px solid #222b30; }
.rf-money > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rf-k { font-size: 9.5px; letter-spacing: .11em; text-transform: uppercase; color: #6f838d; }
.rf-money b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: #f2f6f8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-arrow { color: #d8a24a; padding-bottom: 3px; flex: none; }
.rf-arrow .ic { width: 15px; height: 15px; }

.rf-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
.rf-links:has(> :only-child) { grid-template-columns: 1fr; }
.rf-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 6px; font: 600 12px/1 system-ui, sans-serif; color: #dbe4e9; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid #2b3439; border-radius: 8px;
  transition: background .12s ease, border-color .12s ease; }
.rf-link:hover { background: rgba(216, 162, 74, .13); border-color: rgba(216, 162, 74, .45); color: #f4e6cd; }
.rf-link .ic { width: 13px; height: 13px; opacity: .8; }

.rf-clock { margin: 13px 0 7px; font-variant-numeric: tabular-nums; font-size: 31px; font-weight: 800;
  letter-spacing: .01em; line-height: 1; color: #f2f6f8; }
/* The panel is always dark, so its meter cannot borrow the page theme's track
   colour: in light mode that resolves pale and the meter looks empty-full. */
.rec-panel.rf .rec-meter { height: 5px; margin: 0; background: rgba(255, 255, 255, .09); }
.rec-panel.rf .rec-prog { background: rgba(255, 255, 255, .09); }
.rec-panel.rf .rec-dot { background: #6f838d; }
.rec-panel.rf .rec-dot.is-live { background: #e0533f; }
.rec-panel.rf .rec-dot.is-paused { background: #d8a24a; }

.rf-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rf-btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 10px; font: 700 12px/1 system-ui, sans-serif; color: #e8eef1; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid #2b3439; border-radius: 8px;
  transition: filter .12s ease, background .12s ease; }
.rf-btn:hover { filter: brightness(1.18); }
.rf-btn .ic { width: 13px; height: 13px; }
.rf-btn--go { background: #d8a24a; border-color: #d8a24a; color: #1a1206; }
.rf-btn--stop { background: #c9483a; border-color: #c9483a; color: #fff; }
.rf-btn--quiet { flex: 0 0 auto; background: none; border-color: transparent; color: #7f929c; }
.rf-btn--quiet:hover { color: #cfdae0; }

.rf-foot { margin: 10px 0 0; font-size: 11px; line-height: 1.4; color: #7f929c; }

/* ===== Unsent takes =====
   The recovery panel lists every take still on disk, so it is a list, not the single
   line the old one-file offer could get away with. Wider than the recorder panel and
   scrollable, because a bad session can leave five of these behind. */
.rec-ov .rec-panel.rf--takes { width: 340px; }
.rf-takes { margin-top: 11px; max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.rf-take { padding: 10px 11px; border-radius: 10px;
  background: rgba(255, 255, 255, .035); border: 1px solid #222b30; }
.rf-take-h { margin: 0; font-size: 13px; font-weight: 650; line-height: 1.3; color: #f2f6f8;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-take-m { margin: 4px 0 0; font-size: 11px; font-variant-numeric: tabular-nums; color: #7f929c; }
.rf-take .rf-actions { margin-top: 9px; }
.rf-take .rf-btn { font-size: 12px; padding: 6px 10px; }
@media (prefers-reduced-motion: reduce) { .rec-dot.is-live { animation: none; } }
/* The stage's own warning line, on the page rather than in the floating controller. */
.td-warn { max-width: 60ch; margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3, #9fb0ba); }

/* ===== Camera bubble control =====
   The bubble itself only exists inside the recorded frame, so this is the handle for
   it: a scale model of the captured screen with the bubble in it, dragged directly.
   Lives in the floating controller because that is the one surface still reachable
   once Chris has tabbed away to Keepa. */
.rf-cam { display: flex; align-items: center; gap: 10px; margin-top: 11px;
  padding: 9px 10px; border-radius: 9px; background: rgba(255, 255, 255, .035); border: 1px solid #222b30; }
.rf-cam-map { position: relative; width: 92px; height: 52px; flex: none; cursor: grab;
  border-radius: 5px; border: 1px solid #39444a; background: repeating-linear-gradient(135deg, #171d20 0 6px, #141a1d 6px 12px);
  touch-action: none; }
.rf-cam-map:active { cursor: grabbing; }
.rf-cam-puck { position: absolute; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%;
  background: #d8a24a; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); pointer-events: none; }
.rf-cam-side { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rf-cam-toggle { align-self: flex-start; padding: 5px 10px; cursor: pointer;
  font: 700 11px/1 system-ui, sans-serif; letter-spacing: .02em; color: #1a1206;
  background: #d8a24a; border: 1px solid #d8a24a; border-radius: 999px; }
.rf-cam.is-off .rf-cam-toggle { background: none; border-color: #39444a; color: #8fa1aa; }
.rf-cam.is-off .rf-cam-map { opacity: .4; pointer-events: none; }
.rf-cam.is-off .rf-cam-puck { background: #6f838d; border-color: #9fb0ba; }
.rf-cam-hint { font-size: 10px; letter-spacing: .04em; color: #6f838d; }

/* ===== The floating window as a Loom-style camera bubble =====
   Chris records his whole monitor, so this window IS captured: what he sees here is what
   the viewer sees, in the spot he dragged it to. That is the whole mechanism, and why the
   welded compositor is switched off whenever this window is open.

   Chrome will not let a web page open a borderless or circular window, so the bubble is
   a circle on a dark field, and the window's title strip sits above it. Everything is
   built to make that read as one deliberate object rather than a video call tile. */
.rfb { display: flex; flex-direction: column; min-height: 100vh; background: #0b0e0f; }
.rf-body .rfb .rec-panel.rf { min-height: 0; }

.rfb-cam { position: relative; flex: none; display: grid; place-items: center; padding: 12px 12px 6px; }
.rfb-cam video {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%;
  background: #1a2023; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 10px 30px rgba(0, 0, 0, .55);
}
/* Mirroring is a per-person taste call and it is baked into the recording, since the
   recording is simply this window: mirrored reads naturally to him, unmirrored keeps a
   product label the right way round for students. Off by default for that reason. */
.rfb-cam video.is-mirrored { transform: scaleX(-1); }
.rfb.is-panel .rfb-cam { padding: 12px 70px 2px; }
.rfb.no-cam .rfb-cam { display: none; }

/* Dot and elapsed time on the lower rim of the circle, always visible, so a live take
   is obvious without hovering. */
.rfb-hud { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px;
  background: rgba(8, 11, 12, .82); color: #f2f6f8; border: 1px solid rgba(255, 255, 255, .14);
  font: 800 12px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.rfb-hud .rec-dot { width: 8px; height: 8px; background: #6f838d; }
.rfb-hud .rec-dot.is-live { background: #e0533f; }
.rfb-hud .rec-dot.is-paused { background: #d8a24a; }
.rfb.is-panel .rfb-hud { bottom: 6px; font-size: 11px; }

/* The compact action row under the bubble. Between takes it stays up, because that is
   when he needs Record. During a live take it fades out until the pointer is on the
   window, so the recording shows his face and not a strip of buttons. */
.rfb-bar { display: flex; align-items: center; gap: 6px; padding: 4px 12px 12px; transition: opacity .18s ease; }
.rfb.is-bubble.is-recording .rfb-bar { opacity: 0; }
.rfb.is-bubble.is-recording:hover .rfb-bar { opacity: 1; }
.rfb-pos { font: 700 10.5px/1 system-ui, sans-serif; letter-spacing: .06em; color: #d8a24a;
  background: rgba(216, 162, 74, .12); border: 1px solid rgba(216, 162, 74, .3);
  padding: 4px 7px; border-radius: 999px; font-variant-numeric: tabular-nums; flex: none; }
.rfb-actions { display: flex; gap: 6px; flex: 1 1 auto; }
.rfb-actions .rf-btn { padding: 8px 8px; }
.rfb-more { flex: none; background: none; border: 0; padding: 6px 2px; cursor: pointer;
  font: 600 11px/1 system-ui, sans-serif; color: #7f929c; text-decoration: underline; text-underline-offset: 2px; }
.rfb-more:hover { color: #dbe4e9; }

/* In panel mode the full controller sits under a smaller bubble. */
.rfb.is-panel #rf-panel-host .rec-panel.rf { border: 0; border-radius: 0; box-shadow: none; padding-top: 8px; }
.rfb.is-bubble #rf-panel-host .rec-panel.rf { display: none; }

/* The camera row in panel mode, when the bubble is the real window. */
.rf-cam--live { justify-content: space-between; }
.rf-cam-opts { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.rf-cam-opt { padding: 4px 9px; cursor: pointer; font: 600 10.5px/1 system-ui, sans-serif; color: #cfdae0;
  background: rgba(255, 255, 255, .05); border: 1px solid #2b3439; border-radius: 999px; white-space: nowrap; }
.rf-cam-opt:hover { border-color: rgba(216, 162, 74, .45); color: #f4e6cd; }
.rf-cam-opt[aria-pressed="true"] { border-color: rgba(216, 162, 74, .55); color: #f4e6cd; }
@media (prefers-reduced-motion: reduce) { .rfb-bar { transition: none; } }

/* Verified by Amazon (Log a win): sits between the lede and the form. */
.amz { margin-top: var(--s-6); border-left: 4px solid var(--green); }
.amz + .winform { margin-top: var(--s-5); }

/* ===== Verdict drafted from the walkthrough =====
   Sits directly above the verdict picker, so the draft and the thing it prefilled read as
   one unit. The quoted line is the evidence: the words of his that the verdict rests on. */
.draft-note { margin: 10px 0 8px; padding: 9px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5;
  display: flex; flex-direction: column; gap: 5px; }
.draft-note .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.draft-note--ok { background: rgba(74, 222, 128, .07); border: 1px solid rgba(74, 222, 128, .25); }
.draft-note--wait { background: var(--surface-2, rgba(127, 127, 127, .07)); border: 1px dashed var(--line, #2a3236);
  color: var(--ink-3, #9fb0ba); flex-direction: row; align-items: center; }
.draft-note--none { background: rgba(216, 162, 74, .07); border: 1px solid rgba(216, 162, 74, .25); display: block; }
.draft-heard { display: block; font-size: 12.5px; font-style: italic; color: var(--ink-3, #9fb0ba); quotes: "\201C" "\201D"; }
.draft-note .linkish { align-self: flex-start; font-size: 12px; }
.sess-bar--drafts { border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .06); }

/* Account: which badge the bot sets as the member's Telegram tag. */
.tagpick { display: grid; gap: var(--s-2); font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); margin-top: var(--s-3); }
.tagpick select { min-height: 44px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; padding: 0 var(--s-3); max-width: 360px; }
