/* Morgan Voice — "pro booth": a dark recording space, one signal green. Mono only for numbers. */
:root {
  --bg: #0e0f0e;
  --surface: #151714;
  --raised: #181a17;
  --sunk: #121411;
  --line: #222420;
  --line-2: #2a2c28;
  --ink: #e8e6e0;
  --ink-strong: #f4f2ec;
  --ink-2: #c9c7c0;
  --muted: #8a8c86;
  --faint: #6b6d67;
  --accent: #3dae4a;
  --accent-dim: #2f6e35;
  --accent-tint: #1f2a1e;
  --accent-panel: #1a2219;
  --accent-border: #2e3a2c;
  --warn: #e8a13a;
  --warn-tint: #2e2416;
  --brand: #046307;

  /* older names still used by some screens */
  --emerald: var(--accent);
  --emerald-tint: var(--accent-tint);
  --emerald-on: #9fd8a6;
  --signal: var(--accent);
  --track: var(--line-2);
  --line-soft: var(--line);

  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-logo: "Anton", "Arial Narrow", sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;
  --f-script: "Courier Prime", "Courier New", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }

/* ---------- type ---------- */
/* page titles in the look of Morgan's course slides */
.h1 { font-family: var(--f-logo); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 3.6vw, 44px); letter-spacing: .3px; line-height: 1; color: var(--ink-strong); }
.h2 { font-size: 19px; font-weight: 700; letter-spacing: -.2px; color: var(--ink-strong); }
.h3 { font-size: 15px; font-weight: 600; }
.mono { font-family: var(--f-mono); }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
.hand { font-family: var(--f-hand); font-weight: 500; font-size: 26px; line-height: 1.1; color: var(--ink-strong); }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.logo b { font-family: var(--f-logo); font-weight: 400; font-size: 22px; letter-spacing: .5px; }
.logo i { font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------- app shell: sidebar + content ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px; padding: 20px 14px max(16px, env(safe-area-inset-bottom, 0px));
  background: #111210; border-right: 1px solid var(--line);
}
/* sidebar: who you are, today, then exercises grouped by what they train */
.side .logo { padding: 2px 10px 16px; }
.sb-me { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 0 0 14px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, var(--accent-panel), var(--sunk) 70%); border: 1px solid var(--accent-border); transition: border-color .15s; }
.sb-me:hover, .side .sb-me[aria-current="page"] { border-color: var(--accent); background: linear-gradient(135deg, var(--accent-panel), var(--sunk) 70%); }
.sb-av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font-family: var(--f-logo); font-size: 15px; box-shadow: 0 0 0 2px var(--accent-dim); }
.sb-av img { width: 100%; height: 100%; object-fit: cover; }
.sb-me-t { display: grid; gap: 2px; min-width: 0; }
.sb-me-t b { font-size: 14px; color: var(--ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-me-t > span:not(.sb-xp) { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-xp { height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; margin-top: 3px; }
.sb-xp span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.sb-fire { display: inline-flex; align-items: center; gap: 3px; font: 700 13px var(--f-mono); color: var(--faint); }
.sb-fire.on { color: var(--warn); }
.sb-group { display: grid; gap: 1px; padding-bottom: 10px; }
.sb-group + .sb-group { padding-top: 10px; border-top: 1px solid var(--line); }
.sb-label { padding: 2px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.sb-item { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: background .12s, color .12s; }
.sb-item svg { flex: none; color: var(--muted); transition: color .12s; }
.sb-item.sm { padding: 7px 10px; font-size: 13.5px; }
.sb-item:hover { background: var(--raised); color: var(--ink-strong); }
.sb-item:hover svg { color: var(--ink-2); }
.sb-t { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .sb-item[aria-current="page"] { background: var(--accent-panel); color: var(--ink-strong); }
.side .sb-item[aria-current="page"] svg { color: var(--accent); }
.side .sb-item[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sb-ai { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--accent); padding: 1px 5px; border-radius: 4px; background: var(--accent-tint); }
.sb-cnt { font-size: 11px; font-weight: 700; color: var(--bg); background: var(--accent); border-radius: 9px; padding: 1px 7px; }
.sb-ring { --p: 0; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 10px var(--f-mono); color: var(--ink-2);
  background: radial-gradient(closest-side, #111210 76%, transparent 78%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line-2) 0); }
.sb-steps { display: grid; gap: 0; margin: 0 0 4px 19px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.sb-step { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 7px; font-size: 13px; color: var(--muted); text-decoration: none; }
.sb-step:hover { background: var(--raised); color: var(--ink-strong); }
/* the dot sits centred on the timeline line (x = 19.5 px from the group's edge) and hides it */
.sb-dot { position: relative; z-index: 1; flex: none; width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); background: #111210; margin-left: -27.5px; color: var(--bg); }
.sb-step.done { color: var(--faint); }
.sb-step.done .sb-t { text-decoration: line-through; text-decoration-color: var(--line-2); }
.sb-step.done .sb-dot { background: var(--accent); border-color: var(--accent); }
.sb-step.now { color: var(--ink-strong); }
.sb-step.now .sb-dot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.sb-step.res .sb-dot { border-color: var(--accent); }
.side .sb-step[aria-current="page"] { background: var(--accent-panel); color: var(--ink-strong); }
.sb-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; gap: 4px; }
.sb-btn { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-size: 11px; text-decoration: none; }
.sb-btn:hover { background: var(--raised); color: var(--ink-strong); }
.sb-btn[aria-pressed="true"] svg { color: var(--accent); }
.linkish { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.linkish:hover, .side-foot a:hover { color: var(--ink); }
.avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--line-2); color: var(--ink); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.avatar.brand { background: var(--brand); color: #fff; }
.avatar.lg { flex-basis: 40px; width: 40px; height: 40px; }
.col { min-width: 0; display: flex; flex-direction: column; }
.col.fixed { height: 100vh; height: 100dvh; }
.col-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.col.fixed .runner { flex: 1 1 auto; min-height: 0; height: auto; }
.mbar, .scrim { display: none; }

.page { flex: 1 1 auto; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px max(28px, env(safe-area-inset-right, 0px)) 48px max(28px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
footer.page { flex: 0 0 auto; padding-top: 0; }
.page-foot { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.page-foot a { color: var(--muted); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.green { background: var(--accent-panel); border-color: var(--accent-border); }
.card.green .eyebrow, .card.green .muted { color: var(--emerald-on); }
.card.soft { background: var(--sunk); }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--line-2); }
.grid { display: grid; gap: 16px; }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-l3 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
.g-l2 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.g-main-aside { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.empty { color: var(--muted); font-size: 14px; }
.stat .eyebrow { margin-bottom: 4px; }
.stat b { display: block; font-size: 24px; font-weight: 700; color: var(--ink-strong); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  background: var(--accent); color: var(--bg);
}
.btn:hover { filter: brightness(1.08); }
.btn.lg { height: 52px; padding: 0 22px; font-size: 15px; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn.line, .btn.dark, .btn.muted-btn { background: var(--raised); color: var(--ink); border-color: var(--line-2); }
.btn.muted-btn { color: var(--muted); }
.btn.soft, .btn.white { background: var(--accent-tint); color: var(--accent); border-color: var(--accent-border); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost { background: transparent; color: var(--accent); padding: 0 8px; border-color: transparent; }
.btn:disabled { background: var(--raised); color: var(--faint); border-color: var(--line); filter: none; }
.btn.wide { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--raised); font-size: 13px; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }
.tag { font-size: 12px; font-weight: 500; background: var(--raised); border: 1px solid var(--line-2); color: var(--ink-2); border-radius: 6px; padding: 2px 8px; }
.tag.green { background: var(--accent-tint); border-color: transparent; color: var(--accent); }
.tag.warn { background: var(--warn-tint); border-color: transparent; color: var(--warn); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border-radius: 6px; padding: 5px 9px; background: var(--raised); color: var(--ink-2); }
.pill.good { background: var(--accent-tint); color: var(--accent); }
.pill.warn { background: var(--warn-tint); color: var(--warn); }
.pill.streak { background: var(--warn-tint); color: var(--warn); }
.segmented { display: inline-flex; gap: 2px; background: var(--sunk); border: 1px solid var(--line); border-radius: 6px; padding: 3px; }
.segmented button { height: 32px; padding: 0 12px; border: 0; border-radius: 4px; background: transparent; font-size: 13px; color: var(--muted); }
.segmented button[aria-selected="true"] { background: var(--line-2); color: var(--ink-strong); }

.rec {
  width: 68px; height: 68px; border-radius: 50%; border: 3px solid var(--ink); background: var(--bg); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.rec::after { content: ""; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); transition: all .15s ease; }
.rec svg { display: none; }
.rec:hover:not(:disabled)::after { box-shadow: 0 0 18px rgba(61, 174, 74, .6); }
.rec.on::after { width: 24px; height: 24px; border-radius: 4px; box-shadow: 0 0 18px var(--accent); animation: glow 1.4s ease-in-out infinite; }
.rec .sq { display: none; }
.rec:disabled { border-color: var(--line-2); }
.rec:disabled::after { background: var(--line-2); }
@keyframes glow { 50% { box-shadow: 0 0 4px var(--accent); } }
.play { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--raised); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.play.sm { flex-basis: 32px; width: 32px; height: 32px; }
.play.playing { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.play:disabled { color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .rec.on::after { animation: none; } .rec::after { transition: none; } }

.label, .field label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.input { width: 100%; height: 46px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--sunk); padding: 0 14px; font-size: 15px; color: var(--ink); }
.input::placeholder { color: var(--faint); }
textarea.input { height: auto; min-height: 76px; padding: 12px 14px; resize: vertical; }
select.input { appearance: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bar { height: 6px; border-radius: 2px; background: var(--line-2); flex: 1 1 auto; min-width: 40px; position: relative; overflow: hidden; }
.bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--accent); }
.bar > span.gain { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.card > .bar, .stack > .bar { flex: none; }
.wave { display: block; width: 100%; }
.banner { border-radius: 6px; padding: 12px 16px; font-size: 14px; background: var(--warn-tint); color: #f3cf96; border: 1px solid #4a3a20; }
.toast { position: fixed; left: 50%; bottom: calc(124px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink-strong); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: calc(100% - 32px); }

.note { display: flex; gap: 12px; align-items: flex-start; }
.note .ic { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-weight: 700; font-size: 13px; }
.note .ic.good { background: var(--accent-tint); color: var(--accent); }
.note .ic.warn { background: var(--warn-tint); color: var(--warn); }
.note-t { font-weight: 600; font-size: 15px; color: var(--ink-strong); }
.note-d { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.coach-note { display: flex; gap: 14px; align-items: baseline; }
.coach-note b { font-family: var(--f-mono); font-size: 12px; color: var(--ink); }

/* ---------- Today ---------- */
.tracks { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.trk { display: grid; grid-template-columns: 34px minmax(140px, 220px) minmax(0, 1fr) 110px; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.trk:first-child { border-top: 0; }
.trk:hover { background: var(--raised); }
.trk.next { background: var(--accent-panel); }
.trk .mk { width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; font-weight: 700; background: var(--raised); color: var(--faint); }
.trk.done .mk { background: var(--accent-tint); color: var(--accent); }
.trk.next .mk { background: var(--accent); color: var(--bg); }
.trk .nm { font-weight: 600; font-size: 15px; display: block; }
.trk .wh { font-size: 13px; color: var(--muted); display: block; margin-top: 2px; }
.trk .st { font-size: 13px; text-align: right; color: var(--muted); }
.trk.next .st { color: var(--accent); }
.dots { display: flex; gap: 4px; }
.dots span { flex: 1; height: 6px; border-radius: 2px; background: var(--line-2); }
.dots span.on { background: var(--accent); }
.dots span.today { outline: 1px solid var(--ink); outline-offset: 1px; }
.take-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.take-row .t { min-width: 0; flex: 1 1 auto; }
.take-row .t div:first-child { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skill-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.skill-row .nm { flex: 0 1 120px; min-width: 0; }
.skill-row .d { flex: 0 0 auto; text-align: right; font-family: var(--f-mono); font-size: 12px; color: var(--accent); }

/* ---------- Library ---------- */
.ex-card { min-height: 190px; }
.ex-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Progress: mixer ---------- */
.mixer { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ch { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; padding: 14px 8px; text-decoration: none; color: var(--ink); }
.ch .fader { width: 18px; height: 170px; border-radius: 3px; background: var(--line-2); position: relative; }
.ch .fader span { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px; background: linear-gradient(0deg, var(--accent-dim), var(--accent)); box-shadow: 0 0 12px rgba(61, 174, 74, .35); }
.ch .lv { font-size: 16px; font-weight: 700; }
.ch .nm { font-size: 13px; text-align: center; color: var(--ink-2); }
.ch .d { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.ch .go { font-size: 12px; color: var(--muted); }
.ch:hover { border-color: var(--line-2); }
.levels { display: grid; gap: 4px; }
.levels span { height: 8px; background: var(--line-2); }
.level-names { display: grid; gap: 4px; font-size: 11px; color: var(--faint); }

/* ---------- practice ---------- */
.runner { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--bg); }
.run-top {
  flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; min-height: 64px;
  padding: 18px max(32px, env(safe-area-inset-right, 0px)) 14px 32px; border-bottom: 1px solid var(--line);
}
.run-top .where { font-size: 13px; color: var(--muted); }
.run-top .ttl { font-family: var(--f-logo); font-weight: 400; text-transform: uppercase; font-size: 26px; letter-spacing: .3px; line-height: 1; color: var(--ink-strong); }
.stage-main { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 24px max(28px, env(safe-area-inset-right, 0px)) 24px max(28px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 16px; }
.stage-main > * { width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto; }
.ex-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
.ex-head p { font-size: 15px; color: var(--ink-2); max-width: 640px; }
.ex-head p strong { color: var(--ink-strong); }
.stage-foot {
  flex: 0 0 auto; min-height: 104px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 10px max(28px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(28px, env(safe-area-inset-left, 0px));
  background: var(--sunk); border-top: 1px solid var(--line);
}
.stage-foot > :first-child { justify-self: start; }
.stage-foot > :nth-child(2) { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stage-foot > :last-child { justify-self: end; display: flex; gap: 8px; }
.rec-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.rec-label.on { color: var(--accent); }
.mic-warn { max-width: 260px; text-align: center; font-size: 12px; font-weight: 600; color: var(--warn); }
.banner.info { background: var(--sunk); color: var(--ink-2); border-color: var(--line-2); }

.booth { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: stretch; }
.meters { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.meter b { display: block; font-family: var(--f-mono); font-size: 30px; font-weight: 700; color: var(--ink-strong); margin-top: 2px; }
.meter b.green { color: var(--accent); }
.meter b.sm { font-size: 20px; }
.quote { font-size: 28px; font-weight: 600; letter-spacing: -.3px; line-height: 1.3; color: var(--ink-strong); }
.line-text { font-size: 24px; line-height: 1.42; font-weight: 500; color: var(--ink-strong); }
.line-text em { font-style: normal; color: var(--accent); }
.plot { position: relative; height: 320px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); overflow: hidden; }
.plot canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.floors { display: flex; gap: 6px; flex-wrap: wrap; }
.floors span { padding: 6px 10px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.floors span.now { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }
.floors span.done { color: var(--accent); border-color: var(--accent-border); }
.emotion { background: var(--accent-panel); border: 1px solid var(--accent-border); border-radius: 10px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.emotion b { font-size: 40px; font-weight: 800; letter-spacing: -.8px; line-height: 1.05; color: var(--ink-strong); }
.count { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--accent); display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 24px; font-weight: 700; }
.direction { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.direction .tag { flex: 0 0 auto; }
.direction div { font-size: 15px; color: var(--ink-2); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.markers { position: relative; height: 62px; padding-top: 8px; }
.markers .m { position: absolute; top: 0; width: 1px; height: 60px; }

.script { background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 26px 30px; font-family: var(--f-script); font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.script .slug { font-weight: 700; color: var(--ink); }
.script .who { margin: 18px 0 0 32%; }
.script .who.me { color: var(--accent); font-weight: 700; }
.script .say { margin: 0 10% 0 16%; }
.script .paren { margin: 0 0 0 26%; color: var(--muted); }
.script .mark { color: var(--ink-strong); background: linear-gradient(transparent 62%, rgba(61, 174, 74, .3) 62%, rgba(61, 174, 74, .3) 90%, transparent 90%); }
.take-list { display: flex; flex-direction: column; gap: 6px; }
.take-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--sunk); }
.take-item.now { border-color: var(--accent-border); background: var(--accent-panel); }
.take-item.locked { color: var(--faint); border-style: dashed; background: transparent; }
.dot { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-weight: 700; font-size: 12px; background: var(--raised); color: var(--faint); }
.dot.done { background: var(--accent-tint); color: var(--accent); }
.dot.now { background: var(--accent); color: var(--bg); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--raised); font-size: 13px; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.qa .q { font-size: 12px; font-weight: 500; color: var(--muted); }
.qa .a { font-size: 15px; line-height: 1.45; margin-top: 2px; color: var(--ink-2); }

/* ---------- Pitch Ladder readouts ---------- */
.now-card { margin: -8px; padding: 8px; border-radius: 8px; transition: background .15s ease; }
.now-card[data-state="in"] { background: var(--accent-panel); }
.now-card[data-state="out"] { background: var(--warn-tint); }
.now-say { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.now-card[data-state="in"] .now-say { color: var(--ink-strong); }
.now-card[data-state="out"] .now-say { color: var(--warn); }
.bar.pass { overflow: visible; }
.bar.pass i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }

.booth { position: relative; }
.moment { position: absolute; inset: -6px; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 12px; background: rgba(14, 15, 14, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.moment-card { width: min(620px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 24px 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--accent-border); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(61, 174, 74, .15); animation: rise .3s ease both; }
.moment-top { display: flex; align-items: center; gap: 22px; }
.moment-top .k { font-size: 14px; font-weight: 600; color: var(--accent); }
.moment-top .k.warn { color: var(--warn); }
.moment-top .big { font-size: 30px; font-weight: 800; letter-spacing: -.5px; color: var(--ink-strong); }
.moment-tip { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 10px; background: var(--accent-panel); border: 1px solid var(--accent-border); min-height: 64px; }
.moment-tip p { font-size: 15px; line-height: 1.5; color: var(--ink); }
.moment-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- Emotional Switch ---------- */
.how3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how3 li { display: flex; gap: 12px; align-items: flex-start; }
.how3 .n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.how3 b { display: block; font-weight: 600; color: var(--ink-strong); }
.how3 span:not(.n) { display: block; font-size: 14px; color: var(--muted); }
.emo-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.emo-chip { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--ink-2); }
.emo-chip .k { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.emo-chip b { font-size: 15px; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emo-chip.now { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.emo-chip.now .k { color: var(--bg); }
.emo-chip.done { background: var(--accent-tint); border-color: var(--accent-border); color: var(--ink-strong); }
.emo-chip.done .k { color: var(--accent); }
.emo-chip.done:hover, .emo-chip.playing { border-color: var(--accent); }
.emo-chip.playing .k { color: var(--ink-strong); }
.emo-stage {
  flex: 1 1 auto; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px; text-align: center;
  background: radial-gradient(ellipse 60% 70% at 50% 45%, #1c2a1b 0%, var(--sunk) 75%); border: 1px solid var(--accent-border); border-radius: 14px;
}
.emo-stage .k { font-size: 14px; font-weight: 600; color: var(--emerald-on); }
.emo-stage b { font-size: 60px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; color: var(--ink-strong); }
.emo-stage .hint { font-size: 20px; color: var(--ink-2); }
.emo-stage .said { margin-top: 8px; font-size: 24px; font-weight: 600; color: var(--ink-strong); opacity: .9; }
.countdown { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 16px; color: var(--ink-2); text-align: left; }
.countdown small { display: block; font-size: 14px; color: var(--muted); }
.countdown.on { color: var(--accent); font-weight: 600; }
.rec-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: glow 1.4s ease-in-out infinite; }
.take-bar { width: min(360px, 80%); height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.take-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }
.take-row.now { background: var(--accent-panel); }

/* ---------- AI reads + results ---------- */
.ai-head { display: flex; align-items: center; gap: 10px; }
.ai-tag { margin-left: auto; flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-tint); border-radius: 6px; padding: 2px 8px; }
.ai-basis { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line-2); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.ai-basis b { color: var(--ink-strong); }
.ai-basis .ico { flex: 0 0 auto; font-size: 16px; line-height: 1.2; color: var(--accent); }
.ai-basis.local .ico { color: var(--muted); }
.ai-numbers { max-width: 100%; overflow-x: auto; font-size: 13px; color: var(--ink-2); }
.ai-numbers summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 4px 0; width: fit-content; }
.ai-numbers table { width: 100%; margin-top: 6px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ai-numbers th, .ai-numbers td { padding: 6px 8px 6px 0; text-align: left; border-top: 1px solid var(--line); white-space: nowrap; }
.ai-numbers thead th { border-top: 0; font-size: 12px; font-weight: 500; color: var(--muted); }
.ai-numbers tbody th { font-weight: 600; color: var(--ink); }
.ai-numbers td { font-family: var(--f-mono); font-size: 12px; }
.ai-numbers details[open] summary, .ai-numbers[open] summary { margin-bottom: 2px; }
.ai-mark { flex: 0 0 28px; height: 28px; border-radius: 8px; background: var(--accent-tint); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.ai-wait { display: flex; align-items: center; gap: 10px; padding: 18px 0; color: var(--muted); font-size: 14px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.switch-results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
.fmap { position: relative; height: 290px; margin: 4px 0 6px; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.fmap .ax-y { position: absolute; left: 8px; top: 0; font-size: 12px; color: var(--faint); }
.fmap .ax-x { position: absolute; right: 0; bottom: -20px; font-size: 12px; color: var(--faint); }
.dot-take { position: absolute; transform: translate(-9px, 9px); display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 14px; white-space: nowrap; }
.dot-take span { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); transition: transform .15s ease; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.dot-take:hover span, .dot-take.playing span { transform: scale(1.3); }
.dot-take.playing { color: var(--ink-strong); font-weight: 600; }
@keyframes pop { from { transform: scale(0); } }
.range-card { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--accent-panel); border: 1px solid var(--accent-border); }
.range-card > b { font-family: var(--f-mono); font-size: 30px; color: var(--accent); }
.range-card > b small { font-size: 16px; color: var(--muted); }
.delta { margin-left: auto; font-size: 13px; font-weight: 700; }
.delta.up { color: var(--accent); }
.delta.down { color: var(--warn); }
.verdicts { display: flex; flex-direction: column; }
.verdict { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); animation: rise .35s ease both; }
.verdict:nth-child(2) { animation-delay: .06s; } .verdict:nth-child(3) { animation-delay: .12s; } .verdict:nth-child(4) { animation-delay: .18s; } .verdict:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.verdict .ic { flex: 0 0 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.verdict .ic.good { background: var(--accent-tint); color: var(--accent); }
.verdict .ic.warn { background: var(--warn-tint); color: var(--warn); }
.verdict > div { flex: 1 1 auto; min-width: 0; }
.verdict b { display: block; font-size: 14px; color: var(--ink-strong); }
.verdict p { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.verdict .redo { flex: 0 0 auto; color: var(--warn); border-color: #4a3a20; }
.xp-fly { position: fixed; z-index: 70; pointer-events: none; font-weight: 800; font-size: 18px; color: var(--accent); text-shadow: 0 0 12px rgba(61, 174, 74, .7); }
.score-ring .arc { transition: stroke-dashoffset 1.1s cubic-bezier(.3, .7, .4, 1); filter: drop-shadow(0 0 8px rgba(61, 174, 74, .6)); }
.score-ring .pct { fill: var(--ink-strong); font-size: 26px; font-weight: 800; font-family: var(--f-body); }

/* ---------- Director Mode ---------- */
.path { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.path li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.path li + li::before { content: ""; width: 22px; height: 1px; background: var(--line-2); margin-right: 2px; }
.path .mk { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--raised); color: var(--faint); }
.path li.done .mk { background: var(--accent-tint); color: var(--accent); }
.path li.now { color: var(--ink-strong); font-weight: 600; }
.path li.now .mk { background: var(--accent); color: var(--bg); }
.path button { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.direction-banner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 16px 22px; border-radius: 12px; border: 1px solid var(--accent-border); background: radial-gradient(ellipse 70% 120% at 20% 50%, #1c2a1b 0%, var(--surface) 80%); }
.direction-banner span { display: block; font-size: 13px; font-weight: 600; color: var(--emerald-on); }
.direction-banner b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.5px; color: var(--ink-strong); }
.direction-banner p { margin-left: auto; max-width: 300px; font-size: 14px; color: var(--ink-2); }
.scene-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.scene-grid .script { font-size: 15px; line-height: 1.5; padding: 20px 26px; }
.scene-grid .script .who { margin-top: 12px; }
.script .act { margin-top: 10px; }
.script .say.me { color: var(--ink-strong); background: rgba(61, 174, 74, .12); border-radius: 4px; padding: 2px 6px; }
.script.dim .act, .script.dim .who:not(.me), .script.dim .say:not(.me) { color: var(--faint); }
.brief { display: flex; flex-direction: column; gap: 2px; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.brief span { font-size: 12px; color: var(--muted); }
.brief b { font-size: 15px; font-weight: 500; color: var(--ink); }
.brief.key { background: var(--accent-panel); border-color: var(--accent-border); }
.brief.key span { color: var(--emerald-on); }
.brief.key b { font-size: 17px; font-weight: 700; color: var(--ink-strong); }

.compare { display: flex; flex-direction: column; gap: 12px; animation: rise .35s ease both; }
.compare-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.ctable { gap: 0; }
.crow { display: grid; grid-template-columns: 130px 1fr 1fr; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.crow.words > div { display: block; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.crow.words > div.b { color: var(--emerald-on); }
.crow.head { border-top: 0; padding-top: 0; font-size: 12px; color: var(--muted); }
.crow .b { color: var(--emerald-on); }
.crow > div { display: flex; align-items: center; gap: 8px; }
.crow i { font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--muted); width: 62px; }
.crow i.b { color: var(--accent); font-weight: 700; }
.cbar { flex: 1 1 auto; height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.cbar span { display: block; height: 100%; border-radius: 4px; background: var(--faint); transition: width .6s ease; }
.cbar span.b { background: var(--accent); box-shadow: 0 0 8px rgba(61, 174, 74, .5); }
.director-notes { border-color: var(--accent-border); }
.director-notes p { font-size: 15px; line-height: 1.5; color: var(--ink); }

/* ---------- welcome / done ---------- */
.welcome { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.welcome-l { padding: 48px 64px; display: flex; flex-direction: column; gap: 28px; }
.welcome-r { background: radial-gradient(ellipse 70% 60% at 55% 40%, #1b2a1a 0%, var(--bg) 70%); padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; border-left: 1px solid var(--line); }
.welcome ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.welcome li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.num { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 5px; background: var(--raised); color: var(--muted); font-family: var(--f-mono); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.num.on { background: var(--accent); color: var(--bg); }
.done-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); background: radial-gradient(ellipse 60% 50% at 30% 30%, #142313 0%, var(--bg) 70%); }
.done-grid { width: 100%; max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }

/* ---------- practice complete ---------- */
.done-v8 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stats4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wrap-h { margin-top: 4px; font-size: 46px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.02; color: var(--ink-strong); }
.stat b small { font-size: 14px; color: var(--muted); }
.day-read { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.day-read li { animation: rise .35s ease both; }
.day-read li:nth-child(2) { animation-delay: .08s; } .day-read li:nth-child(3) { animation-delay: .16s; }
.focus { padding: 10px 12px; border-radius: 8px; background: var(--accent-panel); font-size: 14px; color: var(--ink-2); }
.focus b { color: var(--ink-strong); }
.week-line { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.4s ease forwards; filter: drop-shadow(0 0 6px rgba(61, 174, 74, .6)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .week-line { animation: none; stroke-dashoffset: 0; } .verdict, .day-read li, .compare, .moment-card { animation: none; } }

/* ---------- account ---------- */
.account { gap: 14px; }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.acc-row > div:first-child { flex: 1 1 320px; min-width: 0; }
.acc-row b { color: var(--ink-strong); }
.acc-link { display: flex; gap: 8px; flex: 1 1 360px; }
.acc-link .input { height: 36px; font-family: var(--f-mono); font-size: 12px; }
.btn.danger { background: transparent; color: var(--warn); border-color: #4a3a20; }

/* ---------- notes ---------- */
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; align-items: start; }
.msg { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 8px; border: 1px solid transparent; background: transparent; text-align: left; width: 100%; color: var(--ink); }
.msg:hover { background: var(--surface); }
.msg.unread .k::before { content: "● "; }
.msg[aria-pressed="true"] { background: var(--accent-panel); border-color: var(--accent-border); }
.msg .k { font-size: 12px; font-weight: 600; color: var(--accent); }
.msg .k.hw { color: var(--warn); }
.msg .p { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- coach ---------- */
.coach-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; height: 60px; background: #0a0b0a; border-bottom: 1px solid var(--line); }
.coach-top .logo i { color: var(--warn); }
.coach-main { padding: 20px 28px 40px; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1320px; }
.q-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 8px; background: transparent; text-align: left; color: var(--ink); }
.q-item:hover { background: var(--raised); }
.q-item[aria-pressed="true"] { background: var(--accent-panel); }
.newdot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.scrub { flex: 1 1 auto; height: 4px; border-radius: 2px; background: var(--line-2); }
.scrub > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); }

/* ---------- take report (report.js) ---------- */
:root { --lime: #9bc53d; --bad: #e0604a; --bad-tint: #2e1a16; }
.rp { display: flex; flex-direction: column; gap: 16px; animation: rp-in .35s ease both; }
@keyframes rp-in { from { opacity: 0; transform: translateY(6px); } }
.rp .good { color: var(--accent); } .rp .ok { color: var(--lime); } .rp .warn { color: var(--warn); } .rp .bad { color: var(--bad); }
.pill.bad { background: var(--bad-tint); color: var(--bad); }
.rp-head { flex-direction: row; align-items: center; gap: 26px; padding: 22px 24px; }
.rp-head-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rp-verdict { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.3px; color: var(--ink-strong); }
.rp-summary { font-size: 15px; color: var(--ink-2); max-width: 760px; }
.rp-dial { position: relative; flex: 0 0 auto; display: grid; place-items: center; }
.rp-dial svg { position: absolute; inset: 0; }
.rp-dial .arc { stroke: currentColor; transition: stroke-dashoffset 1s ease; }
.rp-dial > div { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.rp-dial b { font-family: var(--f-mono); font-size: 40px; font-weight: 700; color: var(--ink-strong); }
.rp-dial span { font-size: 12px; color: var(--muted); margin-top: 4px; }
.rp-srcs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 2px; }
.rp-src { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--faint); }
.rp-src.on { color: var(--emerald-on); }
.rp-next { flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.hand-sm { font-family: var(--f-hand); font-size: 24px; line-height: 1.1; color: var(--ink-strong); flex: 1 1 200px; }
.rp-grid, .rp-coach { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.rp-coach { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.rp-item { display: flex; gap: 12px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--line); }
.rp-item:first-of-type { border-top: 0; padding-top: 2px; }
.rp-item > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rp-item b { font-size: 15px; color: var(--ink-strong); }
.rp-item p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.rp-item .ic { flex: 0 0 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-tint); color: var(--accent); }
.rp-item .ic.n { background: var(--warn-tint); color: var(--warn); font: 700 13px var(--f-mono); }
.rp-practice { font-size: 14px; color: var(--ink); background: var(--sunk); border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px; line-height: 1.45; }
.rp-practice span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.rp-hear { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--raised); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.rp-hear:hover { color: var(--ink-strong); border-color: var(--accent-dim); }
.rp-skill { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.rp-skill-top { display: grid; grid-template-columns: 118px 64px minmax(40px, 1fr) 34px; align-items: center; gap: 10px; }
.rp-skill .nm { font-weight: 600; font-size: 14px; color: var(--ink-strong); }
.rp-skill b { font-size: 16px; text-align: right; }
.rp-skill p { font-size: 13px; color: var(--muted); line-height: 1.45; padding-left: 128px; }
.rp-basis { font-size: 11px; font-weight: 600; letter-spacing: .3px; color: var(--faint); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; text-align: center; cursor: help; }
.rp-bar { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.rp-bar > span { display: block; height: 100%; border-radius: 4px; background: currentColor; animation: rp-grow .8s ease both; }
@keyframes rp-grow { from { width: 0 !important; } }
.rp-num-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rp-num { background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rp-num span { font-size: 12px; color: var(--muted); }
.rp-num b { font-size: 21px; color: var(--ink-strong); }
.rp-num i { font-style: normal; font-size: 11px; color: var(--faint); }
.rp-words { font-size: 18px; line-height: 2.05; color: var(--ink); }
.rp .w { border-radius: 4px; padding: 1px 2px; cursor: pointer; transition: background .12s; }
.rp .w:hover, .rp .w:focus-visible { background: var(--line-2); }
.rp .w.lit { background: var(--accent); color: var(--bg); }
.rp .w.stress { font-weight: 700; color: var(--ink-strong); box-shadow: inset 0 -2px 0 var(--accent); }
.rp .w.fill { color: var(--warn); background: var(--warn-tint); }
.rp .w.rep { color: var(--warn); text-decoration: underline wavy var(--warn); text-underline-offset: 4px; }
.rp .w.unclear { text-decoration: underline dotted var(--bad) 2px; text-underline-offset: 5px; }
.rp .w.chg, .rp .w.add { color: var(--lime); box-shadow: inset 0 -2px 0 var(--lime); }
.rp .w.miss { color: var(--faint); text-decoration: line-through; cursor: default; }
.rp .ps { display: inline-block; font: 600 11px/1 var(--f-mono); color: var(--muted); border: 1px dashed var(--line-2); border-radius: 4px; padding: 3px 4px; vertical-align: 2px; margin: 0 2px; }
.rp-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.rp-legend.words .w { cursor: default; font-size: 13px; }
.rp-legend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: -6px; }
.lg-pitch { background: var(--accent); } .lg-loud { background: rgba(61, 174, 74, .3); } .lg-pause { background: #23261f; border: 1px dashed var(--line-2); } .lg-mark { background: var(--warn); border-radius: 50% !important; width: 8px !important; }
.tl-wrap { position: relative; }
.tl { display: block; width: 100%; height: 130px; cursor: crosshair; background: var(--sunk); border-radius: 8px; }
.tl-loud { fill: rgba(61, 174, 74, .14); }
.tl-pitch { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.tl-pause { fill: #1a1c17; }
.tl-head { stroke: var(--ink-strong); stroke-width: 1.5; }
.tl-mark { position: absolute; top: -8px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg); background: var(--warn); color: var(--bg); font: 700 11px var(--f-mono); padding: 0; }
.rp-quote { font-family: var(--f-hand); font-size: 24px; line-height: 1.15; color: var(--ink-strong); }
.rp-moment { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.rp-moment > span:nth-child(2) { flex: 1 1 200px; }
.rp-moment .rp-hear { height: 26px; }
.rp-wait { min-height: 220px; justify-content: center; }
.rp-steps { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rp-steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--faint); }
.rp-steps .mk { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); flex: 0 0 auto; }
.rp-steps .now { color: var(--ink-strong); }
.rp-steps .now .mk { border-color: var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.rp-steps .done { color: var(--muted); }
.rp-steps .done .mk { background: var(--accent); border-color: var(--accent); }
.rp-scale { padding: 0 4px; }
.rp-scale p { margin-top: 6px; max-width: 760px; }
/* compact summary beside a line (Line Generator) */
.rp-mini { flex-direction: row; gap: 18px; align-items: center; }
.rp-mini .rp-dial b { font-size: 28px; }
/* Speech Lab */
.sl-text { font-size: 21px; line-height: 1.6; color: var(--ink-strong); white-space: pre-wrap; }
.sl-topic { font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.3px; color: var(--ink-strong); }
.sl-hist { display: flex; flex-direction: column; gap: 0; }
.sl-hist button { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 4px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; color: var(--ink-2); font-size: 13px; }
.sl-hist button:hover, .sl-hist button[aria-current="true"] { background: var(--raised); }
.sl-hist b { font: 700 18px var(--f-mono); }
.sl-spark { display: block; width: 100%; height: 56px; }
.sl-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.sl-skills li::before { content: "●"; color: var(--accent); font-size: 9px; margin-right: 8px; vertical-align: 2px; }
.sl-skills small { color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .rp, .rp-bar > span { animation: none; } .rp-dial .arc { transition: none; } }
@media (max-width: 1100px) { .rp-grid, .rp-coach { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .rp-head { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .rp-verdict { font-size: 20px; }
  .rp-num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-skill-top { grid-template-columns: minmax(0, 1fr) auto 34px; }
  .rp-skill-top .rp-bar { grid-column: 1 / -1; grid-row: 2; }
  .rp-skill p { padding-left: 0; }
  .rp-words { font-size: 16px; }
  .sl-text { font-size: 18px; }
  .sl-topic { font-size: 21px; }
  .sl-skills { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  .g-main-aside, .inbox, .coach-main { grid-template-columns: minmax(0, 1fr); }
  .booth { grid-template-columns: minmax(0, 1fr); }
  .meters { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .meters .push { display: none; }
  .two, .scene-grid, .switch-results, .compare-grid, .done-v8 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; width: min(300px, 86vw); height: auto; padding-top: max(20px, env(safe-area-inset-top, 0px)); transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .55); }
  .mbar {
    display: flex; align-items: center; gap: 12px; flex: 0 0 auto; position: sticky; top: 0; z-index: 30; height: 56px;
    padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .menu { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--raised); font-size: 18px; }
  .mbar-t { font-weight: 600; font-size: 16px; color: var(--ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .run-top { padding: 12px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); min-height: 0; }
  .run-top .ttl { display: none; }
  .page { padding: 16px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); gap: 14px; }
  .g-21, .g-3, .g-2, .g-l3, .g-l2, .g-main-aside, .inbox, .done-grid, .coach-main, .welcome { grid-template-columns: minmax(0, 1fr); }
  .mixer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trk { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .trk svg { display: none; }
  .h1 { font-size: 24px; }
  .stage-main { padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); }
  .stage-foot { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); min-height: 96px; }
  .stage-foot .btn { padding: 0 10px; font-size: 13px; }
  .quote { font-size: 22px; }
  .line-text { font-size: 19px; }
  .plot { height: 220px; }
  .emotion b { font-size: 30px; }
  .how3 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .emo-strip { display: flex; overflow-x: auto; }
  .emo-chip { flex: 0 0 132px; }
  .emo-stage { min-height: 300px; padding: 20px 16px; }
  .emo-stage b { font-size: 38px; letter-spacing: -.8px; }
  .emo-stage .hint { font-size: 17px; }
  .emo-stage .said { font-size: 19px; }
  .direction-banner b { font-size: 22px; }
  .moment { position: fixed; inset: 0; z-index: 60; border-radius: 0; align-items: flex-start; overflow-y: auto; padding: max(16px, env(safe-area-inset-top, 0px)) 12px 24px; }
  .moment-top { gap: 14px; }
  .wrap-h { font-size: 32px; }
  .stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moment-top .big { font-size: 22px; }
  .moment-card { padding: 18px; }
  .score-ring { width: 88px; height: 88px; }
  .direction-banner p { margin-left: 0; }
  .scene-grid > section { order: -1; }
  .welcome-l { padding: 28px 18px; }
  .welcome-r { display: none; }
  .coach-top, .coach-main { padding-left: 16px; padding-right: 16px; }
  .script { padding: 18px; font-size: 14px; }
  .script .who { margin-left: 22%; }
  .script .say { margin: 0 2% 0 8%; }
}

/* ---------- coach console (views/coach.js, coach/) ---------- */
.cx { min-height: 100vh; background: var(--bg); }
.cx-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 0 28px; height: 60px; background: rgba(10, 11, 10, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.cx-top .logo i { color: var(--warn); }
.cx-tabs { display: flex; gap: 4px; margin-right: auto; }
.cx-tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 6px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.cx-tab:hover { color: var(--ink); background: var(--raised); }
.cx-tab[aria-current="page"] { color: var(--ink-strong); background: var(--line-2); }
.cx-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #07140a; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-top-r { display: flex; align-items: center; gap: 10px; }
.segmented.sm button { height: 28px; padding: 0 10px; font-size: 12.5px; }
.segmented button[aria-pressed="true"] { background: var(--line-2); color: var(--ink-strong); }
.cx-icon { width: 36px; padding: 0; justify-content: center; color: var(--muted); }
.cx-icon.spin svg { animation: cx-spin .8s linear infinite; }
.input.sm { height: 36px; font-size: 13px; padding: 0 10px; width: auto; }
select.input.sm { padding-right: 28px; }
.cx-main { max-width: 1440px; margin: 0 auto; padding: 22px 28px 48px; display: flex; flex-direction: column; gap: 18px; }
.cx-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 60px 0; justify-content: center; }
.cx-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: cx-spin .8s linear infinite; vertical-align: -2px; }
@keyframes cx-spin { to { transform: rotate(360deg); } }
.cx-demo { font-size: 13px; color: var(--ink-2); background: var(--warn-tint); border: 1px solid #4a3a1e; border-radius: 8px; padding: 10px 14px; }
.cx-demo b { color: var(--warn); }

.cx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cx-kpi { gap: 6px; padding: 16px 18px; }
.cx-kv { display: flex; align-items: baseline; gap: 8px; }
.cx-kv b { font-size: 36px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; color: var(--ink-strong); }
.cx-kv .muted { font-size: 13px; }
.cx-kpi-link { text-decoration: none; color: inherit; transition: border-color .15s; }
.cx-kpi-link:hover { border-color: var(--accent-border); }
.cx-kpi-link.attn { border-color: #4a3a1e; }
.cx-kpi-link.attn .cx-kv b { color: var(--warn); }
.cx-d { font-size: 12.5px; color: var(--muted); }
.cx-d.up { color: var(--accent); } .cx-d.down { color: var(--bad); }
.cx-d span { color: var(--muted); }

.cx-grid { display: grid; gap: 18px; align-items: start; }
.cx-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.cx-11 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cx-111 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-card { gap: 14px; padding: 18px 20px; }
.cx-ch { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.cx-ch .h3 { color: var(--ink-strong); }
.cx-ch p { margin-top: 2px; }
.cx-big { font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.cx-chart { width: 100%; min-height: 220px; }
.cx-chart svg { display: block; overflow: visible; }
.cx-hit:hover { fill: rgba(255, 255, 255, .035); }
.cx-band line, .cx-band circle { opacity: 0; transition: opacity .1s; }
.cx-band:hover line, .cx-band:hover circle { opacity: 1; }
.cx-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); justify-content: flex-end; }
.cx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cx-legend i { width: 10px; height: 10px; border-radius: 3px; }
.cx-empty { color: var(--muted); font-size: 14px; padding: 12px 0; }
.cx .good { color: var(--accent); } .cx .ok { color: var(--lime); } .cx .warn { color: var(--warn); } .cx .bad { color: var(--bad); }
.cx .up { color: var(--accent); } .cx .down { color: var(--bad); }
.cx .pill.good { color: var(--accent); }

/* tooltip */
.cx-tip { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; min-width: 150px; max-width: 280px; padding: 10px 12px; border-radius: 8px; background: #1f221e; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: 12.5px; opacity: 0; transition: opacity .1s; }
.cx-tip.on { opacity: 1; }
.cx-th { font-weight: 600; color: var(--ink-strong); margin-bottom: 6px; }
.cx-tr { display: flex; align-items: center; gap: 8px; color: var(--ink-2); line-height: 1.7; }
.cx-tr i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 8px; }
.cx-tr span { flex: 1; }
.cx-tr b { color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.cx-tq { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-2); color: var(--ink-2); font-style: italic; }

/* horizontal bars */
.cx-hbars { display: flex; flex-direction: column; gap: 9px; }
.cx-hbar { display: grid; grid-template-columns: minmax(84px, 120px) minmax(0, 1fr) 56px; align-items: center; gap: 12px; font-size: 13px; }
.cx-hl { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-ht { position: relative; height: 10px; border-radius: 5px; background: #1f221e; }
.cx-hf { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 5px 5px 0; background: var(--accent); min-width: 2px; }
.cx-hf.ok { background: var(--lime); } .cx-hf.warn { background: var(--warn); } .cx-hf.bad { background: var(--bad); }
.cx-hm, .cx-mk { position: absolute; top: -4px; width: 2px; height: 18px; border-radius: 1px; background: var(--ink-strong); transform: translateX(-1px); box-shadow: 0 0 0 2px var(--surface); }
.cx-mk { position: relative; display: inline-block; top: 3px; height: 13px; margin: 0 2px; }
.cx-hv { text-align: right; color: var(--ink-strong); font-weight: 600; }
.cx-hv small, td small { font-size: 11px; margin-left: 4px; font-weight: 600; }

/* heatmap + calendar */
.cx-heat { display: grid; grid-template-columns: 30px repeat(12, minmax(0, 1fr)); gap: 3px; align-items: center; }
.cx-hh { font-size: 10.5px; color: var(--muted); }
.cx-hd { font-size: 11px; color: var(--muted); }
.cx-hc { aspect-ratio: 1.4; border-radius: 3px; min-height: 12px; }
.cx-hc:hover, .cx-cd:hover { outline: 1px solid var(--ink-2); outline-offset: 1px; }
.cx-ramp { display: flex; align-items: center; gap: 3px; justify-content: flex-end; font-size: 11px; color: var(--muted); margin-top: 6px; }
.cx-ramp i { width: 12px; height: 10px; border-radius: 2px; }
.cx-ramp span { margin: 0 4px; }
.cx-cal { display: grid; grid-template-rows: repeat(7, auto); gap: 3px; }
.cx-cal span { aspect-ratio: 1; border-radius: 3px; min-width: 0; }
.cx-strip { display: inline-flex; gap: 2px; }
.cx-strip i { width: 7px; height: 16px; border-radius: 2px; }

/* attention, rows, feed */
.cx-att, .cx-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cx-att a, .cx-rows a { display: flex; align-items: center; gap: 12px; padding: 9px 8px; margin: 0 -8px; border-radius: 8px; color: inherit; text-decoration: none; }
.cx-att a:hover, .cx-rows a:hover { background: var(--raised); }
.cx-att-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cx-att-t .small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-flag { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; background: var(--raised); color: var(--ink-2); }
.cx-flag.reply { background: #16263a; color: #7fb3f0; }
.cx-flag.review { background: var(--accent-tint); color: var(--accent); }
.cx-flag.drop { background: var(--bad-tint); color: var(--bad); }
.cx-flag.quiet { background: var(--warn-tint); color: var(--warn); }
.cx-allgood { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 8px; background: var(--accent-panel); }
.cx-allgood b { color: var(--accent); }
.cx-rn { flex: 1; min-width: 0; display: flex; flex-direction: column; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-rn .small { overflow: hidden; text-overflow: ellipsis; }
.cx-rv { font-weight: 700; min-width: 34px; text-align: right; }
.cx-when { flex: 0 0 auto; min-width: 72px; text-align: right; }
.cx-kdot { display: inline-block; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 3px; vertical-align: 0; }
.cx-score { display: inline-flex; justify-content: center; min-width: 34px; padding: 2px 6px; border-radius: 5px; background: var(--raised); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.cx-streak { font-size: 11.5px; font-weight: 600; color: var(--warn); background: var(--warn-tint); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }

/* system strip */
.cx-sys { flex-direction: row; flex-wrap: wrap; gap: 14px 28px; padding: 14px 20px; }
.cx-sys-i { display: flex; gap: 10px; align-items: flex-start; flex: 1 1 200px; }
.cx-sys-i div { display: flex; flex-direction: column; font-size: 13px; }
.cx-led { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--faint); }
.cx-led.on { background: var(--accent); box-shadow: 0 0 0 3px rgba(61, 174, 74, .18); }

/* tables */
.cx-table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.cx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cx-table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.cx-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.cx-table .cx-n { text-align: right; }
.cx-table tbody tr { cursor: pointer; }
.cx-table tbody tr:hover, .cx-table tbody tr:focus-visible { background: var(--raised); outline: none; }
.cx-table.compact td { padding: 8px 10px; }
.cx-who { display: flex; align-items: center; gap: 10px; }
.cx-who > span:last-child { display: flex; flex-direction: column; }

/* student */
.cx-back { color: var(--muted); text-decoration: none; }
.cx-back:hover { color: var(--ink); }
.cx-hero { flex-direction: row; align-items: center; gap: 18px; padding: 22px 24px; flex-wrap: wrap; }
.cx-hero .avatar { background: var(--accent-panel); color: var(--accent); border: 1px solid var(--accent-border); }
.cx-hero-t { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-chip { height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 12.5px; }
.cx-chip:hover { color: var(--ink); }
.cx-chip[aria-pressed="true"] { background: #16263a; border-color: #2c4e78; color: #9cc4f5; }
.cx-voice { display: flex; flex-direction: column; gap: 10px; }
.cx-vbar { position: relative; height: 14px; border-radius: 7px; background: #1f221e; margin-top: 6px; }
.cx-vr { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: linear-gradient(90deg, #24492a, #3f9b49); }
.cx-vh { position: absolute; top: -5px; width: 3px; height: 24px; border-radius: 2px; background: var(--ink-strong); transform: translateX(-1px); box-shadow: 0 0 0 2px var(--surface); }
.cx-dl { margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cx-dl dt { font-size: 12px; color: var(--muted); }
.cx-dl dd { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.cx-dl dd b { color: var(--ink-strong); }
.cx-quotes { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cx-quotes blockquote { margin: 0; padding: 10px 12px; border-left: 2px solid var(--line-2); background: var(--sunk); border-radius: 0 6px 6px 0; font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.cx-quotes cite { font-style: normal; font-size: 12px; color: var(--muted); }
.cx-compose { display: flex; flex-direction: column; gap: 10px; }
.cx-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-height: 520px; overflow: auto; }
.cx-thread li { display: flex; flex-direction: column; gap: 6px; }
.cx-msg { padding: 10px 12px; border-radius: 8px; font-size: 14px; display: flex; flex-direction: column; gap: 3px; max-width: 92%; }
.cx-msg.me { background: var(--raised); align-self: flex-start; }
.cx-msg.them { background: #16263a; align-self: flex-end; }
.cx-hw { color: var(--warn); }

/* review */
.cx-review { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 18px; align-items: start; }
.cx-queue { padding: 10px; gap: 8px; position: sticky; top: 80px; max-height: calc(100vh - 100px); }
.cx-qf { display: flex; flex-direction: column; gap: 8px; padding: 4px 4px 8px; border-bottom: 1px solid var(--line); }
.cx-qf .segmented { width: 100%; }
.cx-qf .segmented button { flex: 1; }
.cx-qf select { flex: 1; min-width: 0; }
.cx-ql { overflow: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.cx-ql .q-item { position: relative; padding: 10px 10px 10px 14px; }
.cx-kbar { position: absolute; left: 4px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; }
.cx-qr { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.cx-ell { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-panel { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cx-plain { color: inherit; text-decoration: none; }
.cx-plain:hover { text-decoration: underline; }
.cx-line { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.cx-nm { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; font-weight: 700; background: var(--ink); color: var(--bg); border-radius: 3px; padding: 2px 6px; font-family: var(--f-mono); }
.cx-aisum { display: flex; gap: 16px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line); }
.cx-aiscore { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 8px 10px; border-radius: 8px; background: var(--raised); }
.cx-aiscore b { font-size: 30px; line-height: 1; font-weight: 700; }
.cx-aiscore span { font-size: 11.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.cx-verdict { font-size: 16px; font-weight: 600; color: var(--ink-strong); line-height: 1.35; }
.cx-aisum .tag b { margin-left: 3px; }
.cx-fold summary { cursor: pointer; color: var(--ink-strong); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.cx-fold summary::after { content: "Hide"; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.cx-fold:not([open]) summary::after { content: "Show"; }
.cx-fold summary::-webkit-details-marker { display: none; }

@media (max-width: 1180px) {
  .cx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-21, .cx-111 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cx-21 > :first-child { grid-column: 1 / -1; }
  .cx-111 > :last-child { grid-column: 1 / -1; }
  .cx-review { grid-template-columns: 320px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .cx-top { position: static; height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .cx-tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .cx-range { order: 4; }
  .cx-top-r { margin-left: auto; }
  .cx-main { padding: 16px 16px 40px; gap: 14px; }
  .cx-21, .cx-11, .cx-111, .cx-review { grid-template-columns: minmax(0, 1fr); }
  .cx-queue { position: static; max-height: 60vh; }
  .cx-kv b { font-size: 30px; }
}
@media (max-width: 560px) {
  .cx-top .logo i { display: none; }
  .cx-range { width: 100%; }
  .cx-range button { flex: 1; padding: 0 4px; }
  .cx-kpis { gap: 10px; }
  .cx-kpi { padding: 14px; }
  .cx-ch { flex-direction: column; }
  .cx-legend { justify-content: flex-start; }
  .cx-hbar { grid-template-columns: 92px minmax(0, 1fr) 48px; gap: 8px; }
  .cx-hero { padding: 18px; }
  .cx-aisum { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .cx-spin, .cx-icon.spin svg { animation: none; } }
/* dumbbell: comparison (hollow) → now (filled) on a 40–100 scale */
.cx-db { display: flex; flex-direction: column; gap: 4px; }
.cx-dbrow { display: grid; grid-template-columns: minmax(84px, 120px) minmax(0, 1fr) 56px; align-items: center; gap: 12px; font-size: 13px; min-height: 26px; }
.cx-dbt { position: relative; height: 22px; }
.cx-dbt > i { position: absolute; top: 2px; bottom: 2px; width: 1px; background: #232622; }
.cx-dbt::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #262925; }
.cx-dbaxis { min-height: 14px; }
.cx-dbaxis .cx-dbt { height: 14px; }
.cx-dbaxis .cx-dbt::before { display: none; }
.cx-dbaxis em { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 10.5px; color: var(--muted); }
.cx-dbl { position: absolute; top: 50%; height: 2px; margin-top: -1px; opacity: .55; }
.cx-dbo, .cx-dbn { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; }
.cx-dbo { border: 2px solid #8a8c86; background: var(--surface); }
.cx-dbn { box-shadow: 0 0 0 2px var(--surface); width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.cx-dbrow:hover .cx-dbt::before { background: #3a3d38; }
.cx-key-now, .cx-key-ref { width: 10px !important; height: 10px !important; border-radius: 50% !important; }
.cx-key-now { background: var(--accent); }
.cx-key-ref { border: 2px solid #8a8c86; }
.rp-held { font-size: 13px; color: var(--warn); background: var(--warn-tint); border-radius: 6px; padding: 8px 12px; }
/* 3-2-1 before recording, on the record button itself */
.rec.count::after { display: none; }
.rec-n { font-size: 30px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; animation: rec-n .9s ease-out both; }
@keyframes rec-n { from { transform: scale(1.35); opacity: .3; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rec-n { animation: none; } }

/* report: Morgan's checks, the director's question, a reel spot by spot */
.rp-question { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--sunk); border-radius: 8px; font-weight: 600; display: grid; gap: 2px; }
.rp-flag { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--sunk); font-size: 14px; line-height: 1.5; }
.rp-flag.warn { border-left: 3px solid var(--warn); }
.rp-spot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rp-spot-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 10px; border-radius: 10px; background: var(--sunk); }
.rp-spot-list li.best { outline: 1px solid var(--accent); }
.rp-spot-list .n { color: var(--ink-3, var(--muted)); padding-top: 2px; }
.rp-spot-list p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }

/* warm-up */
.wu-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.wu-dots button { width: 28px; height: 8px; border-radius: 4px; border: 0; background: var(--line-2); cursor: pointer; padding: 0; }
.wu-dots button.done { background: var(--accent); opacity: .55; }
.wu-dots button.now { background: var(--accent); }
.wu-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.55; color: var(--ink-2); }
.wu-lines { display: grid; gap: 8px; }
.quote.sm { font-size: 18px; padding: 10px 14px; }
.wu-timer { display: flex; align-items: center; gap: 14px; }
.wu-timer b { font-size: 34px; font-weight: 700; }
.wu-result { margin: 0; font-size: 15px; line-height: 1.55; }
.wu-siren { width: 100%; height: 120px; background: var(--sunk); border-radius: 10px; display: block; margin-bottom: 8px; }
.wu-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wu-chip { background: var(--sunk); border-radius: 10px; padding: 10px; display: grid; gap: 2px; border: 1px solid transparent; }
.wu-chip span { font-size: 12px; color: var(--ink-2); }
.wu-chip b { font-size: 18px; }
.wu-chip.good { border-color: var(--accent); }
.wu-chip.warn { border-color: var(--warn); }
.wu-lights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wu-light { text-align: left; display: grid; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--sunk); color: var(--ink); cursor: pointer; font: inherit; }
.wu-light i { width: 18px; height: 18px; border-radius: 50%; }
.wu-light.green i { background: #3dae4a; } .wu-light.yellow i { background: #e8a13a; } .wu-light.red i { background: #e0604a; }
.wu-light span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.wu-light.on { outline: 2px solid var(--accent); }
.wu-advice { padding: 12px 14px; }
#wu-next.pulse { box-shadow: 0 0 0 4px rgba(61,174,74,.25); }
@media (max-width: 560px) { .wu-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wu-lights { grid-template-columns: 1fr; } }

/* tongue twisters and accents */
.tw-text { font-size: 24px; line-height: 1.35; font-weight: 600; }
.tw-list { display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.tw-list button { display: flex; justify-content: space-between; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.tw-list button[aria-pressed="true"] { border-color: var(--accent); background: var(--sunk); }
.tw-list i { font-style: normal; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.ac-features { margin: 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.5; color: var(--ink-2); font-size: 15px; }
label.btn.disabled { opacity: .5; pointer-events: none; }



/* ---------- sign in: Morgan's portrait beside the way in, in the look of her course slides ---------- */
.si { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--bg); }
.si-photo { position: relative; margin: 0; overflow: hidden; background: #1a1a1a; }
.si-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: contrast(1.04); animation: si-drift 24s ease-out both; }
.si-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 55%, var(--bg) 100%), linear-gradient(0deg, rgba(14,15,14,.92) 0%, rgba(14,15,14,.35) 28%, transparent 50%); }
.si-photo figcaption { position: absolute; left: clamp(20px, 4vw, 48px); bottom: clamp(20px, 5vh, 48px); right: 18%; z-index: 1; display: grid; gap: 6px; animation: si-up .7s .35s ease-out both; }
.si-hand { font-family: var(--f-hand); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; color: #7fd389; transform: rotate(-2deg); transform-origin: left; }
.si-who { font-size: 13px; color: var(--ink-2); letter-spacing: .2px; }
.si-who b { color: var(--ink-strong); font-weight: 600; }
.si-side { position: relative; display: flex; align-items: center; padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 64px);
  background: radial-gradient(60% 50% at 80% 10%, rgba(61,174,74,.10), transparent 70%), var(--bg); }
.si-in { width: 100%; max-width: 480px; display: grid; gap: 22px; }
.si-in > * { animation: si-up .6s ease-out both; }
.si-in > :nth-child(2) { animation-delay: .06s; } .si-in > :nth-child(3) { animation-delay: .12s; }
.si-in > :nth-child(4) { animation-delay: .18s; } .si-in > :nth-child(n+5) { animation-delay: .24s; }
.si-title { font-family: var(--f-logo); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 5.2vw, 72px); line-height: .95; letter-spacing: .3px; color: var(--ink-strong); }
.si-title em { font-style: normal; color: var(--accent); display: block; }
.si-lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.si-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.si-feats li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.si-n { font-family: var(--f-logo); font-size: 22px; line-height: 1.1; color: var(--accent); }
.si-feats b { display: block; color: var(--ink-strong); font-weight: 600; }
.si-feats span:not(.si-n) { font-size: 14px; color: var(--muted); line-height: 1.5; }
.si-why { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--warn-tint); border: 1px solid rgba(232,161,58,.35); }
.si-why b { color: var(--ink-strong); }
.si-why span { font-size: 14px; color: var(--ink-2); }
.si-why code { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.si-go { justify-content: center; font-size: 17px; padding: 16px 22px; box-shadow: 0 10px 30px -10px rgba(61,174,74,.55); }
.si-fine { font-size: 13px; color: var(--faint); line-height: 1.5; }
@keyframes si-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes si-drift { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .si-photo img, .si-photo figcaption, .si-in > * { animation: none; } }
@media (max-width: 860px) {
  .si { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .si-photo { height: 36vh; min-height: 240px; }
  .si-photo::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(14,15,14,.55) 32%, transparent 60%); }
  .si-photo figcaption { right: 20px; bottom: 18px; }
  .si-side { align-items: flex-start; padding-top: 8px; }
  .si-in { gap: 16px; }
  .si-in > .logo { display: none; } /* the caption under her photo already says who this is */
  .si-title { font-size: 42px; }
  .si-lead { font-size: 16px; }
  /* on a phone the way in comes before the list */
  .si-why, .si-go, .si-fine { order: 1; }
  .si-feats { order: 2; }
}

/* ---------- profile ---------- */
.pf { display: grid; gap: 16px; }
.pf-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 22px; border-radius: 16px; border: 1px solid var(--line);
  background: radial-gradient(80% 120% at 0% 0%, rgba(61,174,74,.16), transparent 60%), var(--surface); }
.pf-av { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent-tint); border: 2px solid var(--accent); flex: none; }
.pf-av img { width: 100%; height: 100%; object-fit: cover; }
.pf-av span { font-family: var(--f-logo); font-size: 32px; color: var(--accent); }
.pf-who { display: grid; gap: 6px; min-width: 0; }
.pf-name { font-family: var(--f-logo); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 4vw, 44px); line-height: 1; color: var(--ink-strong); letter-spacing: .3px; }
.pf-level { display: grid; gap: 6px; max-width: 460px; }
.pf-bar { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.pf-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); }
.pf-streak { display: grid; justify-items: center; gap: 0; padding: 12px 18px; border-radius: 14px; background: var(--sunk); border: 1px solid var(--line-2); min-width: 120px; text-align: center; }
.pf-streak.on { border-color: rgba(232,161,58,.45); background: linear-gradient(180deg, rgba(232,161,58,.12), var(--sunk)); }
.pf-flame { font-size: 22px; filter: grayscale(1); opacity: .5; }
.pf-streak.on .pf-flame { filter: none; opacity: 1; }
.pf-streak b { font-size: 34px; line-height: 1.1; color: var(--ink-strong); }
.pf-streak span { font-size: 12px; color: var(--ink-2); }
.pf-streak i { font-style: normal; font-size: 11px; color: var(--muted); margin-top: 2px; }
.pf-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pf-tile { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; }
.pf-tile span { font-size: 12.5px; color: var(--muted); }
.pf-tile b { font-size: 28px; color: var(--ink-strong); line-height: 1.2; }
.pf-tile b small { font-size: 14px; color: var(--muted); font-family: var(--f-body); }
.pf-tile i { font-style: normal; font-size: 12px; color: var(--faint); }
.pf-tile b.good { color: var(--accent); } .pf-tile b.warn { color: var(--warn); }
.pf-card { gap: 12px; }
.pf-cal { max-width: 440px; }
.pf-card > .btn { align-self: flex-start; justify-self: start; }
.pf-skills { display: grid; gap: 10px; }
.pf-skill { display: grid; grid-template-columns: 96px 1fr 34px 44px; gap: 10px; align-items: center; }
.pf-skill .nm { font-weight: 600; font-size: 14px; }
.pf-skill small { font-size: 12px; text-align: right; }
.pf-skill small.up { color: var(--accent); } .pf-skill small.down { color: #e0604a; }
.pf-bests { display: grid; gap: 6px; }
.pf-best { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--sunk); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.pf-best:hover { border-color: var(--line-2); }
.pf-best span { display: grid; font-weight: 600; font-size: 14px; }
.pf-best i { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.pf-best b { font-size: 22px; }
.pf-best b.good { color: var(--accent); } .pf-best b.warn { color: var(--warn); }
.pf-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pf-badge { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line); color: var(--muted); }
.pf-badge b { color: var(--ink-2); font-size: 14px; }
.pf-badge .small { line-height: 1.35; }
.pf-badge i { font-style: normal; font-size: 11.5px; color: var(--faint); }
.pf-bi { font-size: 26px; filter: grayscale(1); opacity: .35; }
.pf-badge.got { border-color: var(--accent-border); background: linear-gradient(180deg, var(--accent-panel), var(--sunk)); color: var(--ink-2); }
.pf-badge.got b { color: var(--ink-strong); }
.pf-badge.got .pf-bi { filter: none; opacity: 1; }
.pf-ok { color: var(--accent) !important; font-weight: 600; }
.pf-mini { height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; margin-top: 4px; }
.pf-mini span { display: block; height: 100%; background: var(--accent-dim); }
.pf-lights { display: flex; gap: 5px; flex-wrap: wrap; }
.pf-lights i { width: 16px; height: 16px; border-radius: 50%; }
.pf-acc { display: flex; gap: 16px; align-items: center; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .pf-hero { grid-template-columns: auto 1fr; }
  .pf-streak { grid-column: 1 / -1; grid-template-columns: auto auto auto auto; justify-content: center; align-items: baseline; gap: 8px; }
  .pf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-av { width: 64px; height: 64px; }
}

/* ---------- leaderboard ---------- */
.lb-page { display: grid; gap: 18px; }
.lb-av { flex: none; border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--f-logo); color: #fff; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 60%); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px color-mix(in srgb, var(--c) 60%, transparent); }
.lb-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; max-width: 640px; width: 100%; margin: 6px auto 0; }
.lb-step { display: grid; justify-items: center; gap: 6px; text-align: center; position: relative; min-width: 0; }
.lb-crown { font-size: 26px; line-height: 1; margin-bottom: -4px; animation: lb-bob 2.4s ease-in-out infinite; }
.lb-pnick { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-strong); }
.lb-pnick i { font-style: normal; font-weight: 400; color: var(--muted); }
.lb-pval { font-size: 13px; color: var(--ink-2); }
.lb-block { width: 100%; border-radius: 12px 12px 4px 4px; display: grid; place-items: start center; padding-top: 8px; font-family: var(--f-logo); font-size: 30px; color: rgba(255,255,255,.85);
  background: linear-gradient(180deg, var(--accent-panel), var(--sunk)); border: 1px solid var(--accent-border); border-bottom: 0; }
.lb-step.p1 .lb-block { height: 120px; background: linear-gradient(180deg, rgba(61,174,74,.35), var(--accent-panel)); border-color: var(--accent); }
.lb-step.p2 .lb-block { height: 88px; }
.lb-step.p3 .lb-block { height: 64px; }
.lb-step.me .lb-block { box-shadow: inset 0 0 0 2px var(--accent); }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 760px; width: 100%; margin-inline: auto; }
.lb-list li { display: grid; grid-template-columns: 30px auto minmax(0, 1fr) minmax(60px, 160px) 54px 56px; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.lb-list li.me { border-color: var(--accent); background: var(--accent-panel); }
.lb-n { color: var(--muted); text-align: right; }
.lb-nick { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lb-nick i { font-style: normal; font-weight: 400; color: var(--muted); }
.lb-track { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.lb-track span { display: block; height: 100%; border-radius: 3px; opacity: .85; }
.lb-st { color: var(--warn); text-align: right; white-space: nowrap; }
.lb-list b { text-align: right; color: var(--ink-strong); }
.lb-you { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border-color: var(--accent-border); background: linear-gradient(90deg, var(--accent-panel), var(--surface)); }
.lb-you.join { grid-template-columns: 1fr; }
.lb-you-t { display: grid; gap: 2px; min-width: 0; }
.lb-you-t b { font-size: 20px; color: var(--ink-strong); }
.lb-you-v { font-size: 28px; color: var(--accent); }
.lb-you-v small { font-size: 13px; color: var(--muted); font-family: var(--f-body); }
.lb-set { grid-column: 1 / -1; font-size: 13px; }
.lb-set summary { cursor: pointer; color: var(--muted); }
.lb-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 32px; }
.lb-empty > span { font-size: 36px; }
.lb-loading { height: 220px; border-radius: 14px; background: linear-gradient(90deg, var(--surface), var(--raised), var(--surface)); background-size: 200% 100%; animation: lb-shimmer 1.2s linear infinite; }
.lb-why { max-width: 640px; }
@keyframes lb-bob { 50% { transform: translateY(-4px); } }
@keyframes lb-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .lb-crown, .lb-loading { animation: none; } }
@media (max-width: 600px) {
  .lb-list li { grid-template-columns: 24px auto minmax(0, 1fr) 44px; gap: 10px; }
  .lb-track, .lb-st { display: none; }
  .lb-step.p1 .lb-block { height: 96px; } .lb-step.p2 .lb-block { height: 70px; } .lb-step.p3 .lb-block { height: 52px; }
  .lb-you { grid-template-columns: auto 1fr; }
  .lb-you-v { grid-column: 2; }
}

/* ---------- today ---------- */
.td { display: grid; gap: 18px; }
.td-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: stretch; overflow: hidden; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(70% 140% at 0% 0%, rgba(61,174,74,.18), transparent 60%), linear-gradient(180deg, var(--surface), var(--sunk)); }
.td-hero-t { display: grid; align-content: center; gap: 16px; padding: clamp(22px, 4vw, 40px); }
.td-title { font-family: var(--f-logo); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 5vw, 68px); line-height: .95; color: var(--ink-strong); letter-spacing: .3px; }
.td-title em { display: block; font-style: normal; color: var(--accent); }
.td-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.td-cta .btn { box-shadow: 0 10px 30px -12px rgba(61,174,74,.6); }
.td-morgan { position: relative; margin: 0; min-height: 260px; }
.td-morgan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.td-morgan::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--surface) 0%, transparent 30%), linear-gradient(0deg, rgba(14,15,14,.9), transparent 55%); }
.td-morgan figcaption { position: absolute; left: 18px; right: 16px; bottom: 16px; z-index: 2; display: grid; gap: 2px; }
.td-hand { font-family: var(--f-hand); font-weight: 700; font-size: 26px; line-height: 1.05; color: #8fdc98; transform: rotate(-2deg); transform-origin: left; }
.td-sig { font-size: 12px; color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; }
.td-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.td-step { position: relative; display: grid; align-content: start; gap: 6px; padding: 18px; min-height: 160px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); transition: transform .15s, border-color .15s, background .15s; }
.td-step:hover { transform: translateY(-2px); border-color: var(--line-2); }
.td-n { font-family: var(--f-logo); font-size: 34px; line-height: 1; color: var(--faint); height: 36px; display: flex; align-items: center; }
.td-step b { font-size: 16px; color: var(--ink-strong); }
.td-what { font-size: 13px; color: var(--muted); line-height: 1.45; }
.td-st { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--faint); letter-spacing: .02em; }
.td-step.next { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-panel), var(--surface)); box-shadow: 0 12px 30px -18px rgba(61,174,74,.8); }
.td-step.next .td-n, .td-step.next .td-st { color: var(--accent); }
.td-step.done { background: var(--sunk); }
.td-step.done .td-n { color: var(--accent); }
.td-step.done b { color: var(--ink-2); }
.td-step.done .td-st { color: var(--accent); }
.td-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.td-stat { display: grid; gap: 6px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.td-stat:hover { border-color: var(--line-2); }
.td-stat b { font-size: 28px; color: var(--ink-strong); line-height: 1.1; }
.td-stat b small { font-size: 13px; color: var(--muted); font-family: var(--f-body); }
.td-week { display: flex; gap: 4px; }
.td-week i { flex: 1; height: 22px; border-radius: 5px; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 600; color: var(--faint); background: var(--sunk); border: 1px solid var(--line); }
.td-week i.on { background: var(--accent-dim); border-color: var(--accent-dim); color: var(--ink-strong); }
.td-week i.today { border-color: var(--accent); }
.td-note { display: grid; gap: 8px; padding: 18px 20px; border-radius: 16px; text-decoration: none; color: var(--ink); background: linear-gradient(135deg, var(--accent-panel), var(--surface) 70%); border: 1px solid var(--accent-border); }
.td-note .td-hand { transform: none; font-size: 28px; color: var(--ink-strong); }
.td-further { display: grid; gap: 10px; margin-top: 4px; }
.td-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.td-card { position: relative; display: grid; align-content: start; gap: 6px; padding: 18px 18px 40px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.td-card:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.td-card b { font-size: 17px; line-height: 1.3; color: var(--ink-strong); }
.td-go { position: absolute; right: 16px; bottom: 14px; color: var(--accent); }
@media (max-width: 1100px) { .td-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .td-hero { grid-template-columns: 1fr; }
  .td-morgan { min-height: 0; height: 200px; order: -1; }
  .td-morgan::before { background: linear-gradient(0deg, var(--surface) 0%, rgba(21,23,20,.4) 45%, transparent 70%); }
  .td-hero-t { padding-top: 6px; }
  .td-row, .td-cards { grid-template-columns: 1fr; }
  .td-step { min-height: 0; }
}

/* ---------- exercises: a booth with Morgan in the corner ---------- */
.runner { background: radial-gradient(90% 60% at 50% -10%, rgba(61,174,74,.09), transparent 60%), var(--bg); }
.run-top { align-items: center; gap: 10px 20px; min-height: 76px; padding: 14px max(32px, env(safe-area-inset-right, 0px)) 14px 32px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(14,15,14,.6), transparent); }
.run-title { display: grid; gap: 4px; min-width: 0; }
.run-where { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.run-top .ttl { font-size: 30px; }
.run-steps { display: flex; gap: 4px; }
.run-steps i { width: 26px; height: 5px; border-radius: 3px; background: var(--line-2); }
.run-steps i.done { background: var(--accent-dim); }
.run-steps i.now { background: var(--accent); }
.run-tip { margin: 0 0 0 auto; display: flex; align-items: center; gap: 10px; max-width: 360px; }
.run-tip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 2px var(--accent-dim); flex: none; }
.run-tip figcaption { display: grid; gap: 0; }
.run-tip span { font-family: var(--f-hand); font-weight: 700; font-size: 21px; line-height: 1.05; color: #8fdc98; }
.run-tip i { font-style: normal; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* the record dock */
.stage-foot { min-height: 112px; background: linear-gradient(0deg, var(--bg) 40%, rgba(14,15,14,.85)); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.rec { width: 78px; height: 78px; border: 0; background: radial-gradient(circle, var(--sunk) 62%, transparent 63%); box-shadow: 0 0 0 3px var(--line-2), 0 0 0 9px rgba(61,174,74,.07); position: relative; transition: box-shadow .2s, transform .15s; }
.rec::after { width: 50px; height: 50px; background: radial-gradient(circle at 35% 30%, #6fd27a, var(--accent) 55%, #2b8a37); box-shadow: 0 6px 20px -4px rgba(61,174,74,.7); }
.rec:hover:not(:disabled) { transform: scale(1.04); box-shadow: 0 0 0 3px var(--accent-dim), 0 0 0 10px rgba(61,174,74,.12); }
.rec.on { box-shadow: 0 0 0 3px var(--accent), 0 0 0 10px rgba(61,174,74,.16); }
.rec.on::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); animation: rec-pulse 1.6s ease-out infinite; }
.rec.on::after { width: 26px; height: 26px; border-radius: 6px; background: #e8564a; box-shadow: 0 0 18px rgba(232,86,74,.6); animation: none; }
.rec.count { box-shadow: 0 0 0 3px var(--accent), 0 0 0 10px rgba(61,174,74,.16); }
.rec:disabled { box-shadow: 0 0 0 3px var(--line); }
.rec:disabled::after { background: var(--line-2); box-shadow: none; }
.rec-label { font-size: 12px; letter-spacing: .02em; }
.rec-label.on { color: #ff8a7f; }
@keyframes rec-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rec.on::before { animation: none; } }
#foot-l .btn, #foot-r .btn { border-radius: 999px; }

/* shared pieces, a little softer and rounder */
.runner .card { border-radius: 16px; background: linear-gradient(180deg, var(--surface), #131512); }
.runner .card.green { background: linear-gradient(135deg, var(--accent-panel), var(--surface) 75%); }
.runner .quote { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.5px; line-height: 1.25; }
.btn { border-radius: 10px; }
.btn.lg { border-radius: 12px; }
.tag { border-radius: 999px; padding: 3px 10px; }
.segmented { border-radius: 999px; padding: 4px; }
.segmented button { border-radius: 999px; padding: 0 14px; }
.segmented button[aria-selected="true"], .segmented button[aria-pressed="true"] { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.chip { border-radius: 999px; }
.eyebrow { letter-spacing: .01em; }

@media (max-width: 860px) {
  .run-top { min-height: 0; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
  .run-tip { margin-left: 0; max-width: none; }
  .run-tip img { width: 32px; height: 32px; }
  .run-tip span { font-size: 18px; }
  .stage-foot { min-height: 96px; }
  .rec { width: 70px; height: 70px; }
  .rec::after { width: 44px; height: 44px; }
}
.lg-prep { gap: 14px; }
.lg-qs { margin: 0; padding: 0; list-style: none; counter-reset: q; display: grid; gap: 10px; }
.lg-qs li { counter-increment: q; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; }
.lg-qs li::before { content: "0" counter(q); grid-row: span 2; font-family: var(--f-logo); font-size: 22px; line-height: 1.1; color: var(--accent); }
.lg-qs b { color: var(--ink-strong); font-size: 15px; }
.lg-qs span { font-size: 13px; color: var(--muted); }
.lg-crit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lg-crit span { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.lg-crit b { font-size: 13.5px; color: var(--ink-strong); }
/* warm-up and twister, in the booth look */
.wu-card h2 { font-family: var(--f-logo); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: .3px; }
.wu-steps { list-style: none; padding: 0; counter-reset: w; gap: 8px; }
.wu-steps li { counter-increment: w; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: baseline; color: var(--ink-2); font-size: 15.5px; }
.wu-steps li::before { content: counter(w); font-family: var(--f-logo); font-size: 18px; color: var(--accent); text-align: right; }
.wu-timer { padding: 12px 16px; border-radius: 14px; background: var(--sunk); border: 1px solid var(--line); align-self: flex-start; }
.wu-timer b { font-size: 40px; color: var(--ink-strong); }
.wu-dots button { height: 6px; }
.tw-text { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.6px; line-height: 1.15; color: var(--ink-strong); }
.tw-reps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tw-reps span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(61,174,74,calc(.06 + var(--i) * .07)), var(--sunk)); }
.tw-reps b { font-family: var(--f-logo); font-weight: 400; font-size: 22px; color: var(--accent); line-height: 1; }
.ac-features { list-style: none; padding: 0; counter-reset: f; gap: 10px; }
.ac-features li { counter-increment: f; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: baseline; color: var(--ink-2); }
.ac-features li::before { content: counter(f); font-family: var(--f-logo); font-size: 18px; color: var(--accent); text-align: right; }
.ac-text { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.4px; line-height: 1.3; color: var(--ink-strong); }

/* ---------- progress ---------- */
.pg { display: grid; gap: 16px; }
.pf-tile i .up, .pf-tile i.up, .pf-tile .up { color: var(--accent); font-style: normal; }
.pf-tile .down { color: #e0604a; font-style: normal; }
.pg-chart { min-height: 220px; }
.pg-skills { display: grid; gap: 8px; }
.pg-skill { display: grid; grid-template-columns: 130px 1fr 44px; gap: 12px; align-items: center; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.pg-skill:hover { background: var(--raised); }
.pg-skill .nm { display: grid; font-weight: 600; font-size: 14px; }
.pg-skill .nm i { font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.pg-track { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.pg-track span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); }
.pg-skill b { text-align: right; font-size: 13px; color: var(--faint); }
.pg-skill b.up { color: var(--accent); }
.pg-then { display: grid; gap: 10px; }
.pg-take { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line); }
.pg-take.now { border-color: var(--accent-border); background: linear-gradient(90deg, var(--accent-panel), var(--sunk)); }
.pg-take b { font-size: 22px; }
.pg-take b.good, .pg-score.good { color: var(--accent); } .pg-take b.warn, .pg-score.warn { color: var(--warn); } .pg-take b.bad, .pg-score.bad { color: #e0604a; }
.pg-ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-log { display: grid; }
.pg-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(80px, 200px) 44px; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.pg-row:first-child { border-top: 0; }
.pg-t { display: grid; min-width: 0; }
.pg-t b { font-size: 14px; color: var(--ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-t span { font-size: 12px; color: var(--muted); }
.pg-t em { font-style: normal; color: var(--accent); }
.pg-score { text-align: right; font-size: 18px; }
@media (max-width: 600px) { .pg-row { grid-template-columns: auto minmax(0, 1fr) 40px; } .pg-wave { display: none; } .pg-skill { grid-template-columns: 110px 1fr 40px; } }

/* ---------- report, in Morgan's look ---------- */
.rp-head { border-radius: 18px; padding: 26px 28px; background: radial-gradient(70% 120% at 0% 0%, rgba(61,174,74,.14), transparent 60%), linear-gradient(180deg, var(--surface), #131512); }
.rp-dial { filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
.rp-dial b { font-family: var(--f-logo); font-weight: 400; font-size: 52px; letter-spacing: .5px; }
.rp-verdict { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.5px; }
.rp-summary { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.rp-question { display: flex; gap: 12px; align-items: center; margin-top: 6px; padding: 12px 14px; border-radius: 14px; background: var(--sunk); border: 1px solid var(--accent-border); border-left: 0; }
.rp-question img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 2px var(--accent-dim); flex: none; }
.rp-question div { display: grid; gap: 2px; }
.rp-question b { font-size: 15px; color: var(--ink-strong); }
/* the next-take note: a handwritten card from Morgan */
.rp-next { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; padding: 18px 22px; border-radius: 16px; transform: rotate(-.6deg);
  background: linear-gradient(135deg, #1d2b1d, #172117); border: 1px solid var(--accent-border); box-shadow: 0 14px 34px -20px rgba(61,174,74,.7); }
.rp-next .run-where { grid-column: 1; }
.rp-next-t { grid-column: 1; font-family: var(--f-hand); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; color: #9fe2a7; }
.rp-next-sig { grid-column: 1; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rp-next .btn { grid-column: 2; grid-row: 1 / span 3; }
.rp .h3 { font-family: var(--f-logo); font-weight: 400; text-transform: uppercase; font-size: 19px; letter-spacing: .4px; color: var(--ink-strong); }
.rp .card { border-radius: 16px; }
.rp-item .ic.n { font-family: var(--f-logo); font-weight: 400; font-size: 16px; }
.rp-basis { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; border: 0; background: transparent; color: var(--faint); padding: 0; }
@media (max-width: 600px) { .rp-next { grid-template-columns: 1fr; transform: none; } .rp-next .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; } }
