/* REI Reps — Version D "Soft". Dark only. Depth from two shadows, never borders. */

:root {
  --bg: #272B32;
  --card: #2C3139;
  --card2: #323841;
  --line: #3A4049;
  --ink: #F2F4F7;
  --sub: #B3B9C4;
  --faint: #7E8692;
  --accent: #2ECC71;
  --accent2: #5CE39A;
  --accent-text: #0B2416;
  --glow: rgba(46, 204, 113, 0.40);
  --tint: rgba(46, 204, 113, 0.14);
  --gold: #F2C94C;
  --red: #FF8A8A;
  --blue: #8EC5FF;
  --mint: #D7F1EA; --mint-ink: #0F3B33;
  --lav: #E6DDFB;  --lav-ink: #2E1F5E;
  --cream: #F7ECD3; --cream-ink: #4A3A12;
  --blush: #F8DCD6; --blush-ink: #4B1F1A;
  --shadow-raised: 9px 9px 22px rgba(0, 0, 0, 0.45), -7px -7px 18px rgba(255, 255, 255, 0.05);
  --shadow-raised-sm: 6px 6px 14px rgba(0, 0, 0, 0.40), -4px -4px 10px rgba(255, 255, 255, 0.05);
  --shadow-inset: inset 7px 7px 14px rgba(0, 0, 0, 0.42), inset -5px -5px 12px rgba(255, 255, 255, 0.04);
  --shadow-btn: 6px 6px 16px rgba(0, 0, 0, 0.45), -4px -4px 12px rgba(255, 255, 255, 0.05), 0 0 24px rgba(46, 204, 113, 0.25);
  --display: 'Sora', sans-serif;
  --body: 'Nunito Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --r: 28px;
  --r-sm: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.reps-body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

main.reps { max-width: 480px; margin: 0 auto; padding: 0 20px 110px; }
main.reps.no-tabs { padding-bottom: 32px; }

/* ---- type ---- */
h1.title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: -0.8px; }
h2.heading { margin: 22px 0 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.3px; }
h3.small-heading { margin: 16px 0 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sub); }
.eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sub); }
.eyebrow.accent { color: var(--accent2); }
.sub { color: var(--sub); }
.muted { color: var(--faint); }
.small { font-size: 12px; }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.error { color: var(--red); font-size: 13px; margin: 8px 0; }
.quote { font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.15; letter-spacing: -0.4px; margin: 6px 0 0; }
.quote.big { font-size: 28px; }

/* ---- surfaces ---- */
.raised { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-raised); }
.raised.sm { border-radius: var(--r-sm); box-shadow: var(--shadow-raised-sm); }
.inset { background: var(--bg); border-radius: 18px; box-shadow: var(--shadow-inset); }
.card { padding: 18px; margin-top: 14px; }
.card.tight { padding: 14px 16px; }
.pastel { border-radius: 20px; padding: 14px; }
.pastel .eyebrow { color: inherit; opacity: 0.75; }
.pastel p { margin: 6px 0 0; font-size: 13px; font-weight: 700; }
.pastel.mint { background: var(--mint); color: var(--mint-ink); }
.pastel.lav { background: var(--lav); color: var(--lav-ink); }
.pastel.cream { background: var(--cream); color: var(--cream-ink); }
.pastel.blush { background: var(--blush); color: var(--blush-ink); }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.panels .span2 { grid-column: span 2; }

/* ---- chrome ---- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 0; }
.iconbtn { width: 38px; height: 38px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-raised-sm); display: flex; align-items: center; justify-content: center; border: 0; flex: none; }
.spacer { width: 38px; }
.streak { display: flex; align-items: center; gap: 6px; background: var(--card); box-shadow: var(--shadow-raised-sm); border-radius: 999px; padding: 7px 12px 7px 9px; font-family: var(--mono); font-size: 12px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--card); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35); padding: 10px 0 calc(14px + env(safe-area-inset-bottom)); }
.tabbar-inner { max-width: 480px; margin: 0 auto; display: flex; justify-content: space-around; padding: 0 28px; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.tab.on { color: var(--accent2); }
.tab svg { width: 22px; height: 22px; }
.segments { display: flex; gap: 6px; margin-top: 14px; }
.segments i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); display: block; }
.segments i.on { background: var(--accent2); }
.segments i.half { background: var(--accent2); opacity: 0.45; }
.track { height: 8px; border-radius: 8px; background: var(--bg); box-shadow: var(--shadow-inset); overflow: hidden; }
.track > i { display: block; height: 100%; border-radius: 8px; background: var(--accent); }
.track.gold > i { background: var(--gold); }
.track.faint > i { background: var(--faint); }

/* ---- buttons ---- */
.pill { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); color: var(--accent-text); border: 0; border-radius: 999px; padding: 16px 20px; font-weight: 800; font-size: 16px; box-shadow: var(--shadow-btn); width: 100%; transition: transform 0.08s ease, box-shadow 0.08s ease; }
.pill:active { transform: translateY(2px); box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.45), -2px -2px 8px rgba(255, 255, 255, 0.04); }
.pill.ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow-raised-sm); font-weight: 700; }
.pill.sm { padding: 12px 16px; font-size: 14px; width: auto; }
.pill svg { width: 18px; height: 18px; flex: none; }
.helper { text-align: center; color: var(--faint); font-size: 12px; margin-top: 10px; }
.linkish { color: var(--sub); font-size: 12px; font-weight: 700; }
.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; background: var(--card); box-shadow: var(--shadow-raised-sm); border-radius: 999px; padding: 7px 12px; }
.chip.accent { color: var(--accent2); background: var(--tint); box-shadow: none; }
.chip.warn { color: var(--gold); background: rgba(242, 201, 76, 0.12); box-shadow: none; }
.chip.mono { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.center { justify-content: center; }

/* ---- rings ---- */
.ring { position: relative; flex: none; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-raised); }
.ring svg { position: absolute; inset: 0; }
.ring .track-c { stroke: var(--bg); }
.ring .glow-c { stroke: var(--accent); stroke-opacity: 0.35; }
.ring .arc-c { stroke: var(--accent2); }
.ring .arc-c, .ring .glow-c { animation: ringfill 0.9s ease-out both; }
@keyframes ringfill { from { stroke-dashoffset: var(--circ); } }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ring-label b { font-family: var(--display); font-weight: 700; letter-spacing: -1px; line-height: 1; }
.ring-label span { font-size: 12px; color: var(--sub); }

/* ---- today ---- */
.hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 22px; }
.hero .eyebrow { margin-bottom: 4px; }
.session { display: flex; align-items: center; gap: 16px; }
.session .body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.session .name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.3px; line-height: 1.1; }
.upnext { display: flex; align-items: center; gap: 14px; }
.upnext .body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.upnext .who { font-weight: 800; font-size: 15px; }
.upnext .what { font-size: 12px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.avatar { border-radius: 999px; background: var(--accent); color: var(--accent-text); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; flex: none; }
.avatar.halo { box-shadow: 0 0 0 6px var(--glow); }
.avatar.lg { box-shadow: 0 0 40px var(--glow); }
.rows { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.row-soft { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-raised-sm); color: inherit; }
.row-soft .well { width: 38px; height: 38px; border-radius: 12px; background: var(--bg); box-shadow: var(--shadow-inset); display: flex; align-items: center; justify-content: center; flex: none; }
.row-soft .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--accent2); box-shadow: 0 0 10px var(--accent2); }
.row-soft .dot.gold { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.row-soft .dot.faint { background: var(--faint); box-shadow: none; }
.row-soft .body { display: flex; flex-direction: column; flex: 1; gap: 6px; min-width: 0; }
.row-soft .line1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.row-soft .line1 b { font-weight: 800; }
.row-soft .meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sub); white-space: nowrap; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 22px; }
.section-head h2 { margin: 0; }

/* ---- charts ---- */
.chart-card { padding: 16px; margin-top: 14px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .glow { stroke: var(--accent); stroke-opacity: 0.35; stroke-width: 8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart .line { stroke: var(--accent2); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart .dot-end { fill: var(--ink); }
.chart .axis-label { font-family: var(--mono); font-size: 9.5px; fill: var(--faint); }
.chart .axis-label.on { fill: var(--accent2); }
.chart .bar { fill: var(--card2); }
.chart .bar.on { fill: var(--accent); }
.chart .bar-pill { fill: var(--ink); }
.chart .bar-val { font-family: var(--mono); font-size: 10px; fill: var(--bg); }
.chart .radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.chart .radar-axis { stroke: var(--line); stroke-width: 1; }
.chart .radar-poly { fill: var(--accent); fill-opacity: 0.28; stroke: var(--accent2); stroke-width: 2; stroke-linejoin: round; }
.chart .radar-dot { fill: var(--accent2); }
.chart .radar-label { font-family: var(--mono); font-size: 9.5px; fill: var(--sub); }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.stat { padding: 14px; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.8px; margin-top: 6px; }
.stat .num small { font-size: 16px; color: var(--sub); font-weight: 400; }
.stat .cap { font-size: 11px; color: var(--sub); }
.empty { color: var(--faint); font-size: 13px; padding: 18px 0; text-align: center; }

/* ---- recall ---- */
.progress-line { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.bar-thin { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 12px; }
.bar-thin i { display: block; height: 100%; background: var(--accent2); border-radius: 4px; }
.flashcard { margin-top: 20px; padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.flashcard .front { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: -0.6px; }
.hint { display: flex; align-items: center; gap: 10px; color: var(--sub); font-size: 14px; }
.hint svg { width: 20px; height: 20px; flex: none; }
.card-back { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; animation: rise 0.35s ease-out both; }
.prose p { margin: 0 0 10px; font-size: 16px; line-height: 1.5; }
.prose ul, .prose ol { padding-left: 20px; margin: 6px 0 10px; }
.prose li { margin: 3px 0; }
.prose h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sub); margin: 12px 0 4px; }
.prose blockquote { margin: 10px 0; padding: 10px 14px; border-radius: 0 14px 14px 0; background: var(--card2); border-left: 3px solid var(--accent2); color: var(--sub); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0 12px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.prose th { color: var(--sub); font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
.prose code { background: var(--card2); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.grade-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.grade { border: 0; background: var(--card); box-shadow: var(--shadow-raised-sm); border-radius: 16px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: transform 0.08s ease; }
.grade:active { transform: translateY(2px); }
.grade b { font-weight: 800; font-size: 15px; }
.grade small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sub); }
.grade.again b { color: var(--red); }
.grade.good b { color: var(--blue); }
.grade.easy b { color: var(--accent2); }

/* ---- decide ---- */
.caller-head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 22px; text-align: center; }
.halo { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; }
.halo::before { content: ''; position: absolute; inset: 0; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-raised); }
.halo::after { content: ''; position: absolute; inset: 18px; border-radius: 999px; background: var(--bg); box-shadow: var(--shadow-inset); }
.halo .avatar { position: relative; z-index: 1; width: 86px; height: 86px; font-size: 40px; }
.caller-name { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.6px; line-height: 1; }
.audio-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 16px; }
.playbtn { width: 40px; height: 40px; border-radius: 999px; background: var(--accent); border: 0; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: var(--shadow-btn); }
.playbtn svg { width: 16px; height: 16px; }
.wave { display: flex; align-items: center; gap: 3px; height: 32px; flex: 1; min-width: 0; overflow: hidden; }
.wave i { width: 3px; border-radius: 3px; background: var(--line); display: block; flex: none; }
.wave i.on { background: var(--accent2); }
.audio-bar.playing .wave i.on { animation: pulse 1.1s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scaleY(0.55); } }
.audio-bar audio { display: none; }
.audio-time { font-family: var(--mono); font-size: 11px; color: var(--sub); }
.field { display: block; margin-top: 14px; }
.field .eyebrow { display: block; margin-bottom: 6px; }
.field .label-text { display: block; margin-bottom: 6px; font-size: 14px; }
textarea.inset, input.inset { width: 100%; font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink); border: 0; border-radius: 18px; padding: 14px; resize: vertical; min-height: 96px; }
textarea.inset:focus { outline: 2px solid var(--accent2); outline-offset: 1px; }
textarea.inset::placeholder { color: var(--faint); }
.setup { margin-top: 12px; color: var(--sub); font-size: 14px; }
.facts { margin-top: 10px; }
.facts ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.facts.unknown .eyebrow { color: var(--gold); }

/* ---- reveal ---- */
.transcript { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.turn { display: flex; gap: 10px; animation: rise 0.4s ease-out both; }
.turn:nth-child(2) { animation-delay: 0.08s; }
.turn:nth-child(3) { animation-delay: 0.16s; }
.turn .av { width: 30px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 12px; flex: none; margin-top: 18px; }
.turn .av.you { background: var(--ink); color: var(--bg); }
.turn .av.caller { background: var(--accent); color: var(--accent-text); }
.turn .av.seller { background: var(--card2); color: var(--ink); }
.turn .body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.bubble { background: var(--card); box-shadow: var(--shadow-raised-sm); border-radius: 4px 18px 18px 18px; padding: 12px 14px; white-space: pre-wrap; }
.bubble.caller { background: var(--tint); box-shadow: none; font-size: 16px; font-weight: 600; }
.bubble .prose p { font-size: inherit; margin: 0 0 6px; }
.bubble .prose p:last-child { margin-bottom: 0; }
.why-note { font-size: 12px; color: var(--sub); }
.debrief { padding: 16px 18px; margin-top: 12px; }
.debrief q { font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.35; font-style: italic; quotes: '\201C' '\201D'; }
.rubric { padding: 18px; margin-top: 18px; }
.rubric fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.rating legend { display: block; margin-bottom: 8px; }
.rating legend b { display: block; font-weight: 800; font-size: 14px; }
.rating legend span { display: block; color: var(--sub); font-size: 13px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; text-align: center; background: var(--card2); border-radius: 12px; padding: 11px 4px; font-size: 14px; color: var(--sub); box-shadow: var(--shadow-raised-sm); transition: transform 0.08s ease; }
.seg input:checked + span { background: var(--accent); color: var(--accent-text); font-weight: 800; box-shadow: var(--shadow-btn); }
.seg input:focus-visible + span { outline: 2px solid var(--accent2); }
.seg label:active span { transform: translateY(1px); }
.footer-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
details.watch { margin-top: 12px; }
details.watch summary { cursor: pointer; color: var(--sub); font-size: 13px; }
details.watch ul { padding-left: 18px; margin: 6px 0 0; font-size: 14px; }

/* ---- study ---- */
.timeline { list-style: none; margin: 10px 0 0; padding: 0 0 0 22px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; margin: 0 0 12px; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: -19px; top: 6px; width: 8px; height: 8px; border-radius: 999px; background: var(--accent2); box-shadow: 0 0 8px var(--accent2); }
.plain-list { padding-left: 18px; margin: 6px 0; font-size: 14px; }
.plain-list li { margin: 4px 0; }

/* ---- close / done ---- */
.checklist { display: grid; gap: 8px; margin: 10px 0 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--card2); font-size: 13px; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.done-card { padding: 36px 20px; margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.done-card h1 { font-size: 30px; }
.lesson-box { padding: 14px 16px; margin-top: 12px; font-style: italic; color: var(--sub); }

/* ---- history ---- */
ul.attempts { list-style: none; padding: 0; margin: 0; }
ul.attempts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
ul.attempts li:last-child { border-bottom: 0; }
.att-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- motion ---- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-in { animation: rise 0.4s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 700px) {
  main.reps { padding-top: 10px; }
}

/* ---- port additions (used by the screen templates) ---- */
.streak svg { color: var(--accent2); }
.session-card { display: flex; flex-direction: column; gap: 14px; }
.avatar.md { width: 46px; height: 46px; font-size: 21px; box-shadow: 0 0 0 6px var(--glow); }
.avatar.sm { width: 34px; height: 34px; font-size: 15px; }
.upnext .arrow { color: var(--accent2); display: flex; flex: none; }
.chips .chip { max-width: 100%; white-space: normal; text-align: left; line-height: 1.3; }
.chip svg { width: 14px; height: 14px; margin-right: 5px; flex: none; }
.chart-val { font-family: var(--mono); font-size: 10px; color: var(--accent2); white-space: nowrap; flex: none; }
.blocks3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.blocks3 a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border-radius: 14px; background: var(--card2); box-shadow: var(--shadow-raised-sm); font-size: 13px; font-weight: 800; text-align: center; min-height: 44px; }
.blocks3 a small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sub); font-weight: 500; }
.blocks3 a.next { background: var(--tint); color: var(--accent2); }
.blocks3 a.done { color: var(--sub); }
.blocks3 a.done small { color: var(--accent2); }
.moment-title { font-weight: 700; font-size: 15px; margin-top: 2px; }
.setup p { font-size: 14px; margin: 0 0 8px; }
.setup p:last-child { margin-bottom: 0; }
.says { margin-top: 18px; padding: 0 4px; }
.who-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who-row b { display: block; font-size: 15px; line-height: 1.1; }
.panels-note { margin-top: 18px; }
.pastel ul, .pastel ol { margin: 6px 0 0; padding-left: 18px; font-size: 13px; font-weight: 700; }
.ring .arc-c, .ring .glow-c { transition: stroke-dashoffset 0.4s ease; }
.timeline li p { margin: 0; }
.focus { display: flex; align-items: center; gap: 14px; margin-top: 12px; border-radius: 22px; padding: 16px; }
.focus .body { flex: 1; min-width: 0; }
.focus-name { font-family: var(--display); font-weight: 700; font-size: 18px; margin-top: 4px; }
.focus svg { flex: none; }
.dom-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 26px; }
.dom-head h2 { margin: 2px 0 0; }
.node .meta2 { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--sub); }
.skill-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 56px; gap: 10px; align-items: center; padding: 8px 0; font-size: 13px; }
.skill-val { font-family: var(--mono); font-size: 11px; text-align: right; white-space: nowrap; }
.skill-val small { color: var(--faint); margin-left: 4px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
ul.plain li:last-child { border-bottom: 0; }
.mt { margin-top: 14px; }

/* ---- recorder (build 2: spoken answers) ---- */
.recorder { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 12px; }
.recorder .rec-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.recorder .rec-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recbtn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--card2); color: var(--accent2); box-shadow: var(--shadow-raised-sm); display: flex; align-items: center; justify-content: center; flex: none; transition: transform 0.08s ease; }
.recbtn:active { transform: translateY(1px); }
.recbtn svg { width: 20px; height: 20px; }
.recorder.recording .recbtn { background: var(--red); color: var(--bg); box-shadow: 0 0 24px rgba(255, 138, 138, 0.35); }
.recorder.recording .wave i { background: var(--red); animation: pulse 0.9s ease-in-out infinite alternate; }
.recorder.recording .wave i:nth-child(3n) { animation-delay: 0.12s; }
.recorder.recording .wave i:nth-child(3n+1) { animation-delay: 0.24s; }
.recorder.ready .wave i { background: var(--accent2); }
.recorder.playing .wave i { animation: pulse 1.1s ease-in-out infinite alternate; }
.recorder .rec-play { width: 36px; height: 36px; }
.recorder .rec-play svg { width: 14px; height: 14px; }
.recorder.failed .rec-label { color: var(--gold); }

/* ---- confidence + key-point checklist (build 2, task 2) ---- */
.seg.conf { margin-top: 6px; }
.checklist.kp { margin: 10px 0 0; }
.check p { margin: 0; }
.check input { width: 18px; height: 18px; flex: none; }
.kp-result { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.kp-result b { font-size: 15px; }
.kp-form { display: block; }
.flip-gate.nudged { animation: nudge 0.3s ease; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
