/* (C) THE MODEL by The Ripper — design system + member app. Written by Claude.
   Dark, cinematic, cyan. Sora for anything that speaks, Inter for anything that
   works, JetBrains Mono for micro-labels. Dark by default, light via
   [data-theme="light"]. No inline styles anywhere: the CSP forbids them. */

@font-face { font-family: 'Sora'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/assets/fonts/Sora.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/Inter.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/assets/fonts/JetBrainsMono.woff2') format('woff2'); }

:root {
  --bg:        #05080b;
  --bg-1:      #0a1117;
  --bg-2:      #0e171e;
  --bg-3:      #132028;
  --line:      #152129;
  --line-2:    #22353f;
  --ink:       #e8f6f8;
  --ink-2:     #b9cdd2;
  --ink-3:     #66838c;
  --accent:    #00e5ff;
  --accent-2:  #35b7c7;
  --accent-ink:#031417;
  --chip:      #00e5ff;
  --chip-ink:  #031417;
  --ok:        #00e5ff;
  --warn:      #e6c76a;
  --bad:       #ff7b7b;
  --glass:     rgba(0,229,255,.06);
  --glow:      0 0 0 1px rgba(0,229,255,.35), 0 10px 34px rgba(0,229,255,.22);
  --shadow-1:  0 1px 2px rgba(0,0,0,.5);
  --shadow-2:  0 2px 4px rgba(0,0,0,.4), 0 22px 60px rgba(0,0,0,.55);

  --display: 'Sora', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail: 244px;
  --wrap: 1180px;
  --r: 12px;
  --r-sm: 8px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg:        #f2f7f8;
  --bg-1:      #ffffff;
  --bg-2:      #e9f1f3;
  --bg-3:      #dce8eb;
  --line:      #d9e4e7;
  --line-2:    #b8cbd0;
  --ink:       #06161b;
  --ink-2:     #3f5a61;
  --ink-3:     #7a949a;
  --accent:    #0096ab;
  --accent-2:  #0b7f90;
  --accent-ink:#ffffff;
  --chip:      #0096ab;
  --chip-ink:  #ffffff;
  --ok:        #0096ab;
  --warn:      #8a6a14;
  --bad:       #b23b3b;
  --glass:     rgba(0,150,171,.06);
  --glow:      0 0 0 1px rgba(0,150,171,.3), 0 10px 30px rgba(0,150,171,.18);
  --shadow-1:  0 1px 2px rgba(6,22,27,.06);
  --shadow-2:  0 2px 6px rgba(6,22,27,.06), 0 16px 44px rgba(6,22,27,.1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 14.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.theming, body.theming * { transition: background-color .28s ease, color .28s ease, border-color .28s ease !important; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; border-radius: 5px; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* ---------------- motion ---------------- */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); transition-delay: var(--d, 0ms); }
.pop { opacity: 0; transform: scale(.96); }
.pop.in { opacity: 1; transform: none; transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); transition-delay: var(--d, 0ms); }
.rise > span { display: inline-block; opacity: 0; transform: translateY(.5em); animation: rise .7s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes spinny { to { transform: rotate(360deg); } }
.loader { width: 15px; height: 15px; border-radius: 99px; display: inline-block; vertical-align: -2px; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spinny .7s linear infinite; }
html[data-hidden] .reveal, html[data-hidden] .pop { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .reveal, .pop { opacity: 1 !important; transform: none !important; }
  .rise > span { opacity: 1; transform: none; }
}

/* ---------------- type ---------------- */

h1, h2 { font-family: var(--display); font-weight: 300; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(34px, 4.4vw, 46px); line-height: 1.04; }
h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
h3, h4 { font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; margin: 0; }
h3 { font-size: 15.5px; line-height: 1.25; }
h1 em, h2 em, .display em { font-style: normal; font-weight: 400; color: var(--accent); }
.display { font-family: var(--display); font-weight: 300; font-size: clamp(42px, 5vw, 66px); line-height: 1.06; letter-spacing: -.03em; }
.eyebrow { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); margin: 0; }
.lede { color: var(--ink-2); font-size: 15.5px; max-width: 64ch; margin: 0; line-height: 1.65; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.num-anim { font-variant-numeric: tabular-nums; }
.mt10 { margin-top: 10px; } .mt14 { margin-top: 14px; } .mt16 { margin-top: 16px; } .mt22 { margin-top: 22px; }
.mt26 { margin-top: 26px; } .mt28 { margin-top: 28px; } .mt32 { margin-top: 32px; } .mt38 { margin-top: 38px; } .mt40 { margin-top: 40px; }
.maxw70 { max-width: 70ch; } .maxw66 { max-width: 66ch; }
.ul { border-bottom: 1px solid var(--line-2); } .ul:hover { border-bottom-color: var(--accent); }

/* ---------------- app shell ---------------- */

.app { display: flex; min-height: 100vh; }
.rail {
  width: var(--rail); flex: none; background: var(--bg-1); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.rail-top { padding: 20px 16px 10px; }
.mark { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 400; font-size: 13.5px; letter-spacing: .3em; text-transform: uppercase; padding: 6px 8px; border-radius: var(--r-sm); transition: background .2s var(--ease); }
.mark:hover { background: var(--bg-2); }
.mark .glyph { width: 28px; height: 28px; flex: none; display: grid; place-items: center; color: var(--ink); transition: transform .5s var(--ease-out); }
.mark .glyph svg { width: 26px; height: 26px; display: block; }
.mark:hover .glyph { transform: rotate(-12deg); }
.mark small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--ink-3); font-weight: 500; margin-top: 3px; text-transform: none; }
.railnav { padding: 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; position: relative; }
.railnav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 14px; font-weight: 500; position: relative; overflow: hidden; transition: color .2s var(--ease), background .2s var(--ease); }
.railnav a svg { width: 17px; height: 17px; flex: none; opacity: .75; transition: opacity .2s, transform .3s var(--ease-out); }
.railnav a:hover { background: var(--bg-2); color: var(--ink); }
.railnav a:hover svg { opacity: 1; transform: translateX(1px); }
.railnav a[aria-current="page"] { background: var(--bg-2); color: var(--ink); }
.railnav a[aria-current="page"] svg { opacity: 1; color: var(--accent); }
.railnav a[aria-current="page"]::after { content: ''; position: absolute; right: 12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--accent); border-radius: 99px; box-shadow: 0 0 10px var(--accent); transform: scale(0); animation: dotin .4s var(--ease-out) forwards; }
@keyframes dotin { to { transform: scale(1); } }
.railnav .lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); padding: 14px 11px 6px; font-weight: 500; }
.rail-foot { padding: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.rail-foot .btn { flex: 1; justify-content: center; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 22px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); position: sticky; top: 0; z-index: 30; }
.topbar .crumb { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: -.01em; }
.topbar .spacer { flex: 1; }
.who { display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-1); transition: border-color .2s var(--ease); }
.who:hover { border-color: var(--line-2); }
.who .av { width: 26px; height: 26px; border-radius: 999px; flex: none; background: var(--bg-3); color: var(--accent); display: grid; place-items: center; font-size: 10.5px; font-weight: 600; overflow: hidden; }
.who .av img { width: 100%; height: 100%; object-fit: cover; }
.who .nm { font-size: 13px; font-weight: 500; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page { padding: 34px 26px 90px; width: 100%; max-width: var(--wrap); margin: 0 auto; }
.page.narrow { max-width: 880px; }

/* ---------------- buttons ---------------- */

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--chip); color: var(--chip-ink); border: 1px solid var(--chip); border-radius: 999px; padding: 10px 18px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-family: var(--sans); cursor: pointer; white-space: nowrap; position: relative; overflow: hidden; transition: transform .18s var(--ease-out), box-shadow .25s var(--ease), opacity .15s, background .2s, border-color .2s; }
.btn::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 60%); opacity: 0; transition: opacity .25s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--glow); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--accent-2); background: var(--bg-2); box-shadow: none; }
.btn.ghost::after { background: radial-gradient(circle at var(--mx,50%) var(--my,50%), var(--glass), transparent 60%); }
.btn.sm { padding: 7px 13px; font-size: 10.5px; letter-spacing: .12em; }
.btn.lg { padding: 14px 26px; font-size: 12px; }
.btn.block { width: 100%; justify-content: center; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 42%, var(--line)); background: transparent; }
.btn .arr { display: inline-block; transition: transform .3s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-1); color: var(--ink-2); cursor: pointer; font-size: 13px; font-family: var(--sans); transition: color .2s, border-color .2s, transform .25s var(--ease-out); }
.icon:hover { color: var(--ink); border-color: var(--accent-2); transform: rotate(-12deg); }
.icon.sm { width: 28px; height: 28px; font-size: 12px; }
.btnrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------------- surfaces ---------------- */

.card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease-out); }
.card.hoverable:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card + .card { margin-top: 14px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }
.stat { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 58px 16px 18px; position: relative; overflow: hidden; transition: border-color .25s var(--ease), transform .25s var(--ease-out); }
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--accent), transparent); opacity: 0; transition: opacity .3s; }
.stat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.stat:hover::before { opacity: .8; }
.stat .k { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.stat .v { font-family: var(--display); font-weight: 300; font-size: 36px; line-height: 1; margin-top: 8px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .v small { font-family: var(--display); font-size: 20px; color: var(--ink-3); font-weight: 300; }
.stat .v.text { font-size: 15px; line-height: 1.35; margin-top: 9px; letter-spacing: 0; font-family: var(--sans); font-weight: 600; }
.stat .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.stat .ring { position: absolute; right: 15px; top: 15px; }
.bar { height: 4px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 1s var(--ease-out) .15s; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.ring .track { stroke: var(--bg-3); }
.ring .fill { stroke: var(--accent); stroke-dasharray: var(--c); stroke-dashoffset: var(--c); transition: stroke-dashoffset 1.2s var(--ease-out) .2s; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 60%, transparent)); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.tag.solid { background: var(--chip); color: var(--chip-ink); border-color: var(--chip); }
.tag.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 42%, var(--line)); background: color-mix(in srgb, var(--ok) 9%, transparent); }
.tag.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 42%, var(--line)); background: color-mix(in srgb, var(--warn) 9%, transparent); }
.tag.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 42%, var(--line)); background: color-mix(in srgb, var(--bad) 9%, transparent); }

/* ---------------- filter bar ---------------- */

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 12px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--bg-1) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 74px; z-index: 20; box-shadow: var(--shadow-1); }
.toolbar.static { position: static; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { border: 1px solid transparent; background: transparent; color: var(--ink-2); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 500; font-family: var(--sans); cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), color .2s, transform .18s var(--ease-out); }
.chip:hover { background: var(--bg-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--chip); color: var(--chip-ink); }
.chip:active { transform: scale(.96); }
.chip .cnt { opacity: .6; margin-left: 5px; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 11px; }
.search { flex: 1; min-width: 150px; display: flex; align-items: center; gap: 8px; padding-left: 6px; margin: 0; text-transform: none; letter-spacing: 0; }
.search svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.search input { border: none; background: transparent; padding: 4px 0; font-size: 14px; width: 100%; color: var(--ink); }
.search input:focus { outline: none; background: transparent; border: none; }
.kbd { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 2px 7px; background: var(--bg-2); }

/* ---------------- stages + path cards ---------------- */

.stage { margin-top: 40px; }
.stage:first-of-type { margin-top: 24px; }
.stage.hide { display: none; }
.stagehead { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.stagenum { width: 34px; height: 34px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-1); display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--accent); transition: transform .3s var(--ease-out), background .2s; }
.stage:hover .stagenum { transform: rotate(-6deg); background: var(--bg-3); }
.stagehead .t { flex: 1; min-width: 0; }
.stagehead .t b { display: block; font-family: var(--display); font-size: 22px; font-weight: 400; letter-spacing: -.01em; }
.stagehead .t span { font-size: 12.5px; color: var(--ink-3); }
.cpgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.cpcard { display: flex; flex-direction: column; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); padding: 15px 16px 13px; transition: transform .28s var(--ease-out), border-color .25s var(--ease), box-shadow .28s var(--ease), opacity .3s; }
.cpcard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.cpcard.locked { opacity: .46; pointer-events: none; filter: saturate(.3); }
.cpcard.gone { display: none; }
.cphead { display: flex; align-items: flex-start; gap: 11px; }
.cphead .grow { flex: 1; min-width: 0; }
.cphead .t { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: -.01em; }
.cphead .s { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.cpnum { width: 30px; height: 30px; flex: none; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 12px; transition: transform .3s var(--ease-out), background .2s; }
.cpcard:hover .cpnum { transform: rotate(-6deg); background: var(--bg-3); color: var(--accent); }
.cpvids { margin: 13px 0 11px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.cpv { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; background: var(--bg-2); border: 1px solid transparent; transition: background .18s, border-color .18s; }
.cpcard:hover .cpv { background: var(--bg-3); }
.cpv.seen { border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.cpv .grow { flex: 1; min-width: 0; }
.cpv .t { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpv .s { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-3); }
.cpv .vn { flex: none; font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); }
.cpv .seenmark { flex: none; color: var(--ok); display: grid; place-items: center; }
.cpv .seenmark svg { width: 14px; height: 14px; }
.thumbmini { width: 54px; height: 31px; flex: none; border-radius: 6px; overflow: hidden; background: var(--bg-3); position: relative; display: block; }
.thumbmini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s ease; }
.thumbmini img.in { opacity: 1; }
.thumbmini .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 8px; padding: 3px; line-height: 1.15; color: var(--ink-3); text-align: center; overflow: hidden; }
.cpfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.cpfoot .go { transition: transform .25s var(--ease-out), color .2s; }
.cpcard:hover .cpfoot .go { transform: translateX(3px); color: var(--accent); }
.cpbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bg-3); }
.cpbar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .9s var(--ease-out); box-shadow: 0 0 8px var(--accent); }
@media (max-width: 520px) { .cpgrid { grid-template-columns: 1fr; } }

/* ---------------- forms ---------------- */

label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; font-weight: 500; }
input[type=text], input[type=password], input[type=date], input[type=number], select, textarea { width: 100%; background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; font-family: var(--sans); font-size: 14px; transition: border-color .2s var(--ease), background .2s, box-shadow .2s; }
textarea { min-height: 150px; resize: vertical; line-height: 1.65; }
textarea.short { min-height: 74px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent-2); outline: none; background: var(--bg-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
.field + .field { margin-top: 16px; }
.note { font-size: 12.5px; color: var(--ink-3); }
.note strong { color: var(--ink-2); font-weight: 600; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }

/* ---------------- tables + rows ---------------- */

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-2); font-weight: 500; }
tbody tr { transition: background .18s; }
tbody tr:hover { background: var(--bg-2); }
td.wrapcell { white-space: normal; min-width: 230px; }
td.neg { color: var(--bad); }
.rows { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-1); }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); transition: background .18s, padding-left .22s var(--ease-out); }
.row:last-child { border-bottom: none; }
.row:hover { background: var(--bg-2); padding-left: 20px; }
.row .n { font-family: var(--mono); font-size: 11.5px; color: var(--accent-2); width: 22px; flex: none; text-align: right; }
.row .grow { flex: 1; min-width: 0; }
.row .t { display: block; font-weight: 500; }
.row .s { display: block; font-size: 12px; color: var(--ink-3); }

/* ---------------- utils ---------------- */

.blank { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.blank h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 20px; }
.blank p { margin: 0 auto 16px; max-width: 46ch; color: var(--ink-3); font-size: 13.5px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .25s, transform .3s var(--ease-out); z-index: 500; pointer-events: none; box-shadow: var(--shadow-2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.hide { display: none !important; }
.spin { color: var(--ink-3); font-size: 13px; display: flex; align-items: center; gap: 9px; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.center-col { max-width: 420px; margin: 0 auto; }
.railtoggle { display: none; }
@media (max-width: 900px) {
  .rail { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .28s var(--ease-out); z-index: 60; box-shadow: var(--shadow-2); }
  body.nav-open .rail { transform: none; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 50; animation: fadein .25s ease; }
  @keyframes fadein { from { opacity: 0; } }
  .railtoggle { display: grid; }
  .page { padding: 24px 16px 70px; }
  .topbar { padding: 0 16px; }
  .toolbar { top: 68px; }
}
@media (max-width: 520px) {
  .who .nm { display: none; }
  .toolbar { border-radius: var(--r); }
  .topbar .crumb { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------------- glossary ---------------- */

.g { border-bottom: 1px dotted var(--accent-2); cursor: help; color: var(--ink); }
.g:hover, .g.on { border-bottom-color: var(--accent); background: var(--glass); }
#pop { position: absolute; z-index: 400; display: none; padding: 13px 15px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); box-shadow: var(--shadow-2); max-width: 330px; }
#pop.on { display: block; animation: popin .22s var(--ease-out); }
@keyframes popin { from { opacity: 0; transform: translateY(-4px); } }
#pop b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 5px; }
#pop span { display: block; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
#pop .ex { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--ink-3); }
#pop .ex i { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }

/* ================= study view ================= */

.page.flush { padding: 0; max-width: none; }
.study-body { overflow: hidden; }
.studybar { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--line); background: var(--bg-1); position: relative; z-index: 3; }
.studybar .crumb { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.studybar .crumb:hover { color: var(--ink); }
.studybar .crumb svg { width: 14px; height: 14px; }
.studybar .lab { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: -.01em; }
.studybar .grow { flex: 1; }
.laytog { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--bg-3); }
.laytog button { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 7px; transition: background .18s, color .18s; }
.laytog button:hover { color: var(--ink-2); }
.laytog button[aria-pressed="true"] { background: var(--chip); color: var(--chip-ink); }
.study-body .app { height: 100vh; height: 100dvh; min-height: 0; }
.study-body .main { min-height: 0; }
.page.flush { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.split { display: grid; gap: 0; flex: 1; min-height: 0; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split[data-layout="video"] { grid-template-columns: minmax(0, 1fr) 0; }
.split[data-layout="notes"] { grid-template-columns: 0 minmax(0, 1fr); }
.split[data-layout="video"] .pane.notes, .split[data-layout="notes"] .pane.video { display: none; }
.pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.pane.notes { border-left: 1px solid var(--line); background: var(--bg-1); }
.vstrip { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.vtab { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-3); border-radius: 10px; padding: 7px 11px; cursor: pointer; text-align: left; font-size: 12px; transition: border-color .18s, background .18s, color .18s; }
.vtab:hover { border-color: var(--line-2); color: var(--ink-2); }
.vtab.on { border-color: var(--accent-2); background: var(--bg-3); color: var(--ink); }
.vtab .n { width: 19px; height: 19px; flex: none; border-radius: 6px; background: var(--bg-3); display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 10px; }
.vtab.on .n { background: var(--chip); color: var(--chip-ink); }
.vtab .tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtab .dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
#stage { flex: 1; min-height: 0; display: flex; }
.stagewrap { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 14px; gap: 12px; }
.player { position: relative; flex: 1; min-height: 0; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.player.empty { display: grid; place-items: center; background: var(--bg-2); }
.player.empty span { color: var(--ink-3); font-size: 13px; }
/* click-to-load facade: a thumbnail and a play button until the member asks for YouTube */
.facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; background: #000; cursor: pointer; display: block; overflow: hidden; }
.facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease, transform .8s var(--ease-out); }
.facade img.in { opacity: .85; }
.facade:hover img.in { opacity: 1; transform: scale(1.03); }
.facade::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%); }
.facade .play { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(0,229,255,.12), 0 10px 40px rgba(0,229,255,.35); transition: transform .3s var(--ease-out), box-shadow .3s; }
.facade:hover .play { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(0,229,255,.12), 0 14px 50px rgba(0,229,255,.45); }
.facade .play svg { width: 28px; height: 28px; margin-left: 4px; }
.facade .cap { position: absolute; left: 16px; bottom: 14px; right: 16px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #cfeff3; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.facade .cap i { width: 20px; height: 1px; background: var(--accent); display: block; }
.stagefoot { display: flex; align-items: flex-start; gap: 14px; flex: none; }
.stagefoot .grow { flex: 1; min-width: 0; }
.stagefoot .ttl { margin: 0; font-family: var(--sans); font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; }
.stagefoot .sub { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.panehead { display: flex; align-items: center; gap: 12px; flex: none; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.tabs { display: inline-flex; gap: 4px; flex: 1; }
.ptab { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 8px; transition: background .18s, color .18s; }
.ptab.on { background: var(--bg-3); color: var(--ink); }
.panebody { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; }
.nbox { margin-bottom: 14px; }
.nhead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.nhead .k { flex: 1; min-width: 0; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nbox.active .nhead .k { color: var(--accent); }
.nhead .cnt { font-size: 11px; color: var(--ink-3); flex: none; font-family: var(--mono); }
.nta { width: 100%; min-height: 128px; resize: vertical; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); color: var(--ink); padding: 12px 13px; font-size: 14.5px; line-height: 1.65; font-family: var(--sans); transition: border-color .18s, background .18s, box-shadow .18s; }
.nta:focus { outline: none; border-color: var(--accent-2); background: var(--bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.nbox.active .nta { border-color: var(--line-2); }
.pane.notes[data-font="serif"] .nta { font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif; font-size: 15.5px; }
.pane.notes[data-font="mono"] .nta { font-family: var(--mono); font-size: 13.5px; }
.prompts { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 4px; }
.prompts li { position: relative; padding-left: 14px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.prompts li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 1px; background: var(--accent-2); }
.promptbtn { border: 0; background: none; padding: 0; margin: 0 0 8px; color: var(--accent-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.promptbtn:hover { color: var(--accent); }
.notefoot { display: flex; align-items: center; gap: 12px; padding-top: 4px; flex-wrap: wrap; }
.notefoot .grow { flex: 1; text-align: right; }
.notefoot .btn svg { width: 12px; height: 12px; }
@media (max-width: 1000px) {
  .study-body { overflow: auto; }
  .study-body .app { height: auto; min-height: 100vh; }
  .page.flush { flex: none; }
  .split, .split[data-layout="video"], .split[data-layout="notes"] { grid-template-columns: minmax(0, 1fr); flex: none; min-height: 0; height: auto; }
  .split[data-layout="video"] .pane.notes, .split[data-layout="notes"] .pane.video { display: flex; }
  .pane.notes { border-left: 0; border-top: 1px solid var(--line); }
  .player { aspect-ratio: 16/9; flex: none; }
  .laytog { display: none; }
  .panebody { overflow: visible; }
}
@media (max-width: 620px) {
  .studybar { flex-wrap: wrap; padding: 10px 14px; }
  .vtab .tt { display: none; }
  .vtab { flex: none; }
  .facade .play { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
}

/* ================= guide ================= */

.guide h2 { margin-top: 52px; }
.guide h2:first-of-type { margin-top: 0; }
.guide p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; max-width: 66ch; }
.guide p strong { color: var(--ink); font-weight: 500; }
.quoteblock { margin: 18px 0 0; padding: 22px 26px; border-left: 2px solid var(--accent); background: linear-gradient(90deg, var(--glass), transparent 70%); border-radius: 0 var(--r) var(--r) 0; }
.quoteblock p { margin: 0; font-family: var(--display); font-weight: 300; font-size: 19px; line-height: 1.5; color: var(--ink); max-width: 60ch; }
.quoteblock p + p { margin-top: 12px; }
.quoteblock .sig { display: block; margin-top: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }
.steps3 { display: grid; gap: 12px; margin-top: 18px; }
.step3 { display: flex; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); align-items: baseline; }
.step3 .n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--accent-2); flex: none; width: 28px; }
.step3 b { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: -.01em; margin-bottom: 4px; }
.step3 span { color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 18px; }
.pg { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); transition: border-color .25s, transform .3s var(--ease-out); }
.pg:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pg b { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 5px; }
.pg span { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.callout { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); color: var(--ink); font-size: 15px; line-height: 1.6; max-width: 70ch; }

/* ================= platforms ================= */

.plats { display: grid; gap: 14px; margin-top: 30px; }
.plat { display: block; padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); transition: transform .28s var(--ease-out), border-color .25s var(--ease), box-shadow .28s var(--ease); }
.plat:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.pl-head { display: flex; align-items: center; gap: 13px; }
.pl-head .grow { flex: 1; min-width: 0; }
.pl-head .t { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: -.01em; }
.pl-head .s { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.pl-mark { width: 40px; height: 40px; flex: none; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); transition: transform .3s var(--ease-out), background .2s; }
.plat:hover .pl-mark { transform: rotate(-6deg); background: var(--bg-3); }
.pl-go { flex: none; font-size: 12px; font-weight: 600; color: var(--ink-3); transition: color .2s; }
.plat:hover .pl-go { color: var(--accent); }
.pl-why { margin: 13px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; }
.pl-why strong { color: var(--ink); font-weight: 600; }
.pl-pull { display: flex; gap: 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.pl-lab { flex: none; width: 96px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; color: var(--accent-2); }
@media (max-width: 560px) { .pl-pull { flex-direction: column; gap: 4px; } .pl-lab { width: auto; } .pl-go { display: none; } }

/* ================= journal ================= */

.jrow4 { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.jrow4 .field { margin: 0; }
.jform .field + .field { margin-top: 14px; }
.jform .jrow4 + .field { margin-top: 14px; }
.jform .jrow4 .field, .jform .jrow4 .field + .field { margin-top: 0; }
.checkgrid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 0; }
.ck { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; font-family: var(--sans); font-size: 13px; font-weight: 450; line-height: 1.45; text-transform: none; letter-spacing: 0; color: var(--ink-2); margin-bottom: 0; transition: border-color .18s, background .18s, color .18s; }
.ck:hover { border-color: var(--line-2); }
.ck input { width: auto; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.ck span { flex: 1; min-width: 0; }
.ck:has(input:checked) { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); color: var(--ink); }
.cksum { margin: 4px 0 16px; }
.cksum .okc { color: var(--ok); }
.cmpwrap { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmp { padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); position: relative; overflow: hidden; }
.cmp::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; }
.cmp.good::before { background: var(--ok); }
.cmp.bad::before { background: var(--bad); }
.cmp .lbl { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cmp .big { display: block; margin: 8px 0 6px; font-family: var(--display); font-weight: 300; font-size: 44px; letter-spacing: -.02em; }
.cmp .sub { display: block; font-size: 12px; color: var(--ink-3); }
.rowacts { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
@media (max-width: 880px) { .jrow4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cmpwrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .jrow4, .checkgrid { grid-template-columns: minmax(0, 1fr); } }

/* ================= concepts ================= */

.clist { max-width: 900px; border-top: 1px solid var(--line); margin-top: 26px; }
.cx { border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.cx-h { display: flex; align-items: baseline; gap: 16px; width: 100%; text-align: left; background: none; border: none; color: inherit; font-family: inherit; cursor: pointer; padding: 20px 4px 20px 0; transition: padding-left .28s var(--ease-out); }
.cx-h:hover, .cx-h:focus-visible { padding-left: 8px; }
.cx-h:focus-visible { outline: none; }
.cx-h:focus-visible .nm { text-decoration: underline; text-underline-offset: 5px; }
.cx-h .grow { flex: 1; min-width: 0; }
.cx-h .nm { display: block; font-family: var(--display); font-weight: 400; font-size: 25px; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.cx-h .nm i { font-style: normal; color: var(--ink-3); font-size: 13px; letter-spacing: .02em; margin-left: 10px; font-family: var(--mono); }
.cx-h .sb { display: block; margin-top: 6px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.plus { flex: none; width: 14px; height: 14px; position: relative; align-self: center; opacity: .5; transition: transform .5s var(--ease-out), opacity .3s; }
.plus::before, .plus::after { content: ''; position: absolute; background: var(--accent); left: 0; top: 6.5px; width: 14px; height: 1px; }
.plus::after { transform: rotate(90deg); }
.cx-h:hover .plus { opacity: 1; }
.cx.open .cx-h .plus { transform: rotate(45deg); opacity: 1; }
.cx.open .cx-h { padding-bottom: 6px; }
.cx-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.cx.open .cx-b { grid-template-rows: 1fr; }
.cx-b > div { overflow: hidden; }
.cx-i { padding: 2px 0 26px; max-width: 72ch; opacity: 0; transform: translateY(-5px); transition: opacity .4s var(--ease), transform .5s var(--ease-out); }
.cx.open .cx-i { opacity: 1; transform: none; transition-delay: .1s; }
.cx-r { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.cx-r:first-child { border-top: none; padding-top: 4px; }
.cx-r > span:first-child { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.cx-r p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.cx-r p b { color: var(--ink); font-weight: 600; }
.cx-r.lead p { color: var(--ink); font-size: 15.5px; }
.cx-r.clk { border-top: none; padding: 14px 0 16px; }
.cx-r.clk p { color: var(--ink); border-left: 2px solid var(--accent); padding-left: 14px; }
.cx-r.wh p { font-size: 12.5px; color: var(--ink-3); }
.cx-r.nt p { font-size: 13px; color: var(--ink-3); font-style: italic; }
.cxvs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 2px; }
.cxvs > div { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px; background: var(--bg-1); }
.cxvs b { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--accent); margin-bottom: 6px; }
.cxvs span { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 620px) { .cx-r { grid-template-columns: 1fr; gap: 5px; } .cx-h .nm { font-size: 21px; } .cx-h .nm i { display: block; margin: 4px 0 0; } .cxvs { grid-template-columns: 1fr; } }

/* ================= the framework ================= */

.fw-pick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 26px; }
.fw-pick button { border: 1px solid var(--line); background: var(--bg-1); color: var(--ink-2); border-radius: 999px; padding: 9px 18px; font-family: var(--sans); font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), color .2s, border-color .2s, transform .18s var(--ease-out); }
.fw-pick button:hover { border-color: var(--line-2); color: var(--ink); }
.fw-pick button[aria-pressed="true"] { background: var(--chip); color: var(--chip-ink); border-color: var(--chip); }
.fw-pick button:active { transform: scale(.97); }
.fw-pick button i { font-style: normal; font-family: var(--mono); font-size: 10.5px; opacity: .6; margin-left: 8px; }
.fw { max-width: 900px; margin-top: 30px; }
.fw.gone { display: none; }
.fw-head { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.fw-head h2 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.fw-head h2 .tag { vertical-align: middle; margin-left: 12px; font-size: 9.5px; }
.fw-head .clock { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--accent-2); margin-bottom: 9px; text-transform: uppercase; }
.fw-head p { margin: 11px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 68ch; }
.fw-head .note { margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); max-width: 68ch; padding-left: 13px; border-left: 1px solid var(--line-2); }
.fw-legs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.fw-legs > div { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 15px; background: var(--bg-1); }
.fw-legs b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 7px; }
.fw-legs span { font-size: 13.5px; line-height: 1.55; color: var(--ink); }
@media (max-width: 760px) { .fw-legs { grid-template-columns: 1fr; } }
.fw-steps { margin-top: 32px; border-top: 1px solid var(--line); position: relative; --p: 0; }
.fw-steps::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--accent); transform: scaleY(var(--p)); transform-origin: top; opacity: .9; box-shadow: 0 0 8px var(--accent); }
.fw-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 20px; padding: 20px 0 20px 22px; border-bottom: 1px solid var(--line); align-items: baseline; }
.fw-step .n { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .1em; color: var(--ink-3); }
.fw-step .t { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: -.015em; color: var(--ink); line-height: 1.2; }
.fw-step .s { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.fw-step .s b { color: var(--ink); font-weight: 600; }
.fw-step .w { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.fw-step .w i { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-right: 7px; color: var(--accent-2); }
@media (max-width: 620px) { .fw-step { grid-template-columns: 1fr; padding-left: 18px; } .fw-step .n { margin-bottom: 6px; } .fw-step .t { font-size: 19px; } }
.fw-pass { margin-top: 30px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px 22px; background: var(--bg-1); }
.fw-pass .eyebrow { margin: 0 0 12px; }
.fw-pass ul { margin: 0; padding: 0; list-style: none; }
.fw-pass li { position: relative; padding: 8px 0 8px 20px; font-size: 14px; line-height: 1.6; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.fw-pass li:last-child { border-bottom: none; }
.fw-pass li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 7px; height: 1px; background: var(--accent); }
.fw-pass li b { color: var(--ink); font-weight: 600; }

/* ================= data stack ================= */

.ol { margin: 0; padding-left: 19px; color: var(--ink-2); font-size: 13px; }
.ol li { margin-bottom: 6px; }
.ol li:last-child { margin-bottom: 0; }
.card p { margin: 0; }
.card p + .ol { margin-top: 12px; }
.card .eyebrow + h3 { margin: 10px 0 8px; }
.card h3 + p { margin: 0; }
