/* TOEFL 2026 Speaking — Take an Interview practice
   One stylesheet for all pages. Light/dark follow the system. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #dfe3e8;
  --border-strong: #c6ccd4;
  --text: #16191d;
  --muted: #5f6875;
  --faint: #8b95a3;
  --accent: #3b5bdb;
  --accent-soft: #e7ecfd;
  --good: #2f8f4e;
  --good-soft: #e4f4e9;
  --warn: #b57614;
  --warn-soft: #fbf1de;
  --bad: #c2372c;
  --bad-soft: #fbe9e7;
  --live: #d6336c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 20, 26, .06), 0 6px 18px rgba(16, 20, 26, .05);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
          "Malgun Gothic", "Noto Sans KR", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --surface: #191c22;
    --surface-2: #21252d;
    --border: #2b313a;
    --border-strong: #3a424e;
    --text: #e8eaee;
    --muted: #a0a9b6;
    --faint: #74808f;
    --accent: #7b93f5;
    --accent-soft: #1e2542;
    --good: #58c07c;
    --good-soft: #16301f;
    --warn: #d9a441;
    --warn-soft: #2e2513;
    --bad: #ef7a6d;
    --bad-soft: #331b18;
    --live: #f06595;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ layout */
.shell { max-width: 940px; margin: 0 auto; padding: 0 20px 80px; }
.shell--wide { max-width: 1140px; }

header.top {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 20;
}
.top__in {
  max-width: 1140px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.brand {
  font-weight: 650; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 9px;
  color: inherit; text-decoration: none; border-radius: 7px; padding: 3px 7px; margin: -3px -7px;
}
.brand:hover { background: var(--surface-2); }
.brand b { font-size: 15px; }
.brand span { font-size: 12px; color: var(--faint); font-weight: 450; }
nav.tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
nav.tabs a {
  padding: 6px 12px; border-radius: 8px; font-size: 13.5px;
  color: var(--muted); text-decoration: none; font-weight: 500;
}
nav.tabs a:hover { background: var(--surface-2); color: var(--text); }
nav.tabs a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

h1 { font-size: 25px; letter-spacing: -.02em; margin: 30px 0 6px; font-weight: 650; }
h2 { font-size: 17px; letter-spacing: -.01em; margin: 0 0 12px; font-weight: 620; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 600; }
.lede { color: var(--muted); margin: 0 0 26px; font-size: 14.5px; }

/* ------------------------------------------------------------------- cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.card--flat { box-shadow: none; }
.card__head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: -4px 0 14px;
}
.card__head h2 { margin: 0; }

/* ----------------------------------------------------------------- buttons */
button, .btn {
  font: inherit; font-weight: 550; font-size: 14px;
  padding: 9px 17px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  transition: background .12s, border-color .12s, opacity .12s;
}
button:hover:not(:disabled), .btn:hover { background: var(--surface-2); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
button.primary:hover:not(:disabled) { filter: brightness(1.08); background: var(--accent); }
button.big { padding: 13px 30px; font-size: 15.5px; border-radius: 11px; }
button.ghost { border-color: transparent; background: transparent; color: var(--muted); }
button.ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
button.danger { color: var(--bad); border-color: var(--bad); background: transparent; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row--end { justify-content: flex-end; }
.spacer { flex: 1; }

/* -------------------------------------------------------------- indicators */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 550; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
  white-space: nowrap;
}
.pill--good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill--bad  { background: var(--bad-soft);  color: var(--bad);  border-color: transparent; }
.pill--accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* The attempt code. Monospace and tabular so a column of them lines up digit for
   digit, which is the whole point of quoting one. */
.code {
  font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em;
  font-size: 12px; font-weight: 550; padding: 2px 7px; border-radius: 6px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
  white-space: nowrap; cursor: pointer;
}
.code:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.code--copied { color: var(--good); border-color: transparent; background: var(--good-soft); }
.code--none { color: var(--faint); cursor: default; border-style: dashed; }
.code--lg { font-size: 14px; padding: 4px 10px; }

.dot--live { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.spinner {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 2px solid var(--border-strong); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ topic picker */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 9px; }
.topic {
  text-align: left; padding: 11px 13px; border-radius: 10px; line-height: 1.4;
  border: 1px solid var(--border); background: var(--surface);
}
.topic:hover { border-color: var(--accent); }
.topic[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.topic b { display: block; font-size: 13.5px; font-weight: 600; }
.topic span { display: block; font-size: 11.5px; color: var(--faint); margin-top: 1px; }

/* ------------------------------------------------------------- exam runner */
.stage {
  min-height: 340px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px; text-align: center;
  padding: 34px 20px;
}
.stage__label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.stage__title { font-size: 22px; font-weight: 620; letter-spacing: -.01em; margin: 0; }
.stage__hint { color: var(--muted); font-size: 14px; max-width: 46ch; margin: 0; }

.qtrack { display: flex; gap: 6px; justify-content: center; margin-bottom: 4px; }
.qtrack i {
  width: 30px; height: 4px; border-radius: 2px; background: var(--border-strong); display: block;
}
.qtrack i.done { background: var(--good); }
.qtrack i.now { background: var(--accent); }

/* countdown ring */
/* Count-in. Same footprint as the recording ring so the stage doesn't jump when the
   countdown hands over to the timer. */
.countin { width: 168px; height: 168px; display: grid; place-items: center; }
.countin__n {
  font-size: 96px; font-weight: 600; line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.countin__n--tick { animation: countpop .55s cubic-bezier(.2, .9, .3, 1); }
@keyframes countpop {
  from { transform: scale(1.35); opacity: .25; }
  to { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .countin__n--tick { animation: none; }
}

.ring { position: relative; width: 168px; height: 168px; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--border); }
.ring .bar { stroke: var(--live); stroke-linecap: round; transition: stroke-dashoffset .2s linear, stroke .3s; }
.ring .bar.calm { stroke: var(--accent); }
.ring__num {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
}
.ring__num b { font-size: 44px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.ring__num span { font-size: 11.5px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }

/* speaker animation while the interviewer talks */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 46px; }
.bars i {
  width: 6px; background: var(--accent); border-radius: 3px; display: block;
  animation: talk 1s ease-in-out infinite;
}
.bars i:nth-child(1) { animation-delay: 0s; }
.bars i:nth-child(2) { animation-delay: .12s; }
.bars i:nth-child(3) { animation-delay: .24s; }
.bars i:nth-child(4) { animation-delay: .36s; }
.bars i:nth-child(5) { animation-delay: .18s; }
@keyframes talk { 0%, 100% { height: 11px; } 50% { height: 44px; } }

/* live mic level */
.meter {
  width: 220px; height: 7px; border-radius: 4px; background: var(--surface-2);
  overflow: hidden; border: 1px solid var(--border);
}
.meter i { display: block; height: 100%; width: 0%; background: var(--live); transition: width .07s linear; }
.meter--quiet i { background: var(--warn); }

/* -------------------------------------------------------------- transcript */
.answers { display: grid; gap: 12px; }
.answer { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.answer__head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.answer__n { font-weight: 650; font-size: 13px; }
.answer__q { font-size: 13px; color: var(--muted); flex: 1 1 260px; min-width: 0; }
.answer__body { padding: 13px 15px; }
.transcript { font-size: 14.5px; margin: 0; white-space: pre-wrap; }
.transcript--empty { color: var(--bad); font-style: italic; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
audio { width: 100%; margin-top: 11px; height: 34px; }

/* ------------------------------------------------------------------ report */
.scoreline { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.bigscore { display: flex; align-items: baseline; gap: 3px; }
.bigscore b { font-size: 46px; font-weight: 620; letter-spacing: -.03em; line-height: 1; }
.bigscore span { font-size: 17px; color: var(--faint); }
.scoremeta { display: grid; gap: 3px; font-size: 13.5px; }
.scoremeta .k { color: var(--faint); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; }

.traits { display: grid; gap: 9px; margin-top: 4px; }
.trait { display: grid; grid-template-columns: 130px 1fr 58px; gap: 11px; align-items: center; font-size: 13px; }
/* Meter: the unfilled track is a lighter step of the same ramp, so the level reads
   across the whole bar rather than stopping at a neutral gap. */
.trait__bar { height: 7px; border-radius: 4px; background: var(--accent-soft); overflow: hidden; }
.trait__bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.trait__val {
  text-align: right; font-variant-numeric: tabular-nums; color: var(--muted);
  font-size: 12.5px; white-space: nowrap;
}
.trait__name small { color: var(--faint); display: block; font-size: 10.5px; line-height: 1.3; }

.callout {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 12px 15px; border-radius: 0 9px 9px 0; font-size: 14px; margin: 14px 0 0;
}
.callout--warn { border-color: var(--warn); background: var(--warn-soft); }
.callout h3 { margin-bottom: 5px; }
.callout p, .callout ul { margin: 0; }
.callout ul { padding-left: 19px; }
.callout li + li { margin-top: 5px; }

.qcard { border: 1px solid var(--border); border-radius: 11px; background: var(--surface); margin-bottom: 13px; overflow: hidden; }
.qcard__head {
  display: flex; gap: 11px; align-items: center; flex-wrap: wrap;
  padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  cursor: pointer; user-select: none;
}
.qcard__score {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-weight: 650; font-size: 15px;
  background: var(--accent-soft); color: var(--accent);
}
.qcard__body { padding: 16px; display: none; }
.qcard[open] .qcard__body { display: block; }
.qcard__q { font-size: 13.5px; color: var(--muted); flex: 1 1 240px; min-width: 0; }
.chev { color: var(--faint); transition: transform .15s; }
.qcard[open] .chev { transform: rotate(90deg); }

.compare { display: grid; gap: 12px; margin-top: 13px; }
@media (min-width: 780px) { .compare { grid-template-columns: 1fr 1fr; } }
.panel { border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; background: var(--surface-2); }
.panel h3 { color: var(--faint); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.panel p { margin: 0; font-size: 14px; }
.panel--model { background: var(--good-soft); border-color: transparent; }
.panel--model h3 { color: var(--good); }
/* The reachable answer. Accent rather than green: it is the one to use now, and it
   should not read as a lesser version of the model answer beneath it. */
.panel--mid { background: var(--accent-soft); border-color: transparent; }
.panel--mid h3 { color: var(--accent); }
.panel__note { margin-top: 8px !important; font-size: 13px !important; color: var(--muted); }

/* The six moves of the mid answer: the part that carries over to the next topic. */
.frames { margin-top: 12px; display: grid; gap: 7px; }
.frames__k {
  display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); font-weight: 600;
}
.slot {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 11px;
  display: grid; gap: 3px 12px; align-items: baseline;
}
@media (min-width: 640px) { .slot { grid-template-columns: 96px 1fr; } }
.slot__k { font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.slot__reason {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 500;
  color: var(--muted); background: var(--surface-2);
  border-radius: 999px; padding: 1px 7px;
}
.frame__en { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.frame__in { font-size: 13.5px; color: var(--text); margin-top: 3px; }

.issues { display: grid; gap: 10px; margin-top: 13px; }
.issue { border: 1px solid var(--border); border-left: 3px solid var(--bad); border-radius: 0 9px 9px 0; padding: 10px 13px; }
.issue b { font-size: 13.5px; display: block; }
.issue .ev {
  font-family: var(--mono); font-size: 12.5px; background: var(--bad-soft); color: var(--bad);
  padding: 3px 7px; border-radius: 5px; display: inline-block; margin: 5px 0; word-break: break-word;
}
.issue .fix { font-size: 13.5px; color: var(--muted); margin: 0; }
.issue__pick { display: flex; justify-content: flex-end; margin-top: 6px; }

/* Add-to-notebook toggle. Quiet until it has been pressed — the point is that most
   items stay unpicked, so an unpressed button must not read as an unfinished task. */
button.pickbtn {
  padding: 4px 10px; font-size: 12px; font-weight: 550; border-radius: 7px;
  border-color: var(--border); background: transparent; color: var(--muted);
  white-space: nowrap;
}
button.pickbtn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
button.pickbtn--on {
  border-color: var(--good); color: var(--good); background: var(--good-soft);
}

table.upgrades { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 12px; }
table.upgrades th {
  text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding: 0 10px 6px 0; border-bottom: 1px solid var(--border);
}
table.upgrades td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
table.upgrades tr:last-child td { border-bottom: none; }
table.upgrades .their { color: var(--muted); text-decoration: line-through var(--faint); }
table.upgrades .better { color: var(--good); font-weight: 550; }

/* ----------------------------------------------------------------- history */
table.sessions { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.sessions th {
  text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding: 0 12px 8px 0; border-bottom: 1px solid var(--border);
}
table.sessions td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--border); }
table.sessions tr:hover td { background: var(--surface-2); }
table.sessions a { color: var(--accent); text-decoration: none; font-weight: 550; }
table.sessions a:hover { text-decoration: underline; }
.num { font-variant-numeric: tabular-nums; }

/* Chart marks: 2px line, ≥8px markers filled with the series colour and carrying a
   2px surface ring, 10% area wash, solid hairline grid one step off the surface. */
.chart { width: 100%; display: block; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent); opacity: .1; }
.chart .pt { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .cross { stroke: var(--border-strong); stroke-width: 1; }
.chart text { fill: var(--faint); font-size: 10.5px; font-family: var(--sans); }
.chart text.tick { font-variant-numeric: tabular-nums; }
.chart text.endlabel { fill: var(--muted); font-weight: 600; font-size: 11.5px; }

.charttip {
  position: absolute; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .1s;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 7px 10px; font-size: 12.5px; box-shadow: var(--shadow); white-space: nowrap;
}
.charttip b { font-variant-numeric: tabular-nums; }
.chartwrap { position: relative; }

/* ---------------------------------------------------------------- notebook */
.nbgroup__wrap { border-top: 1px solid var(--border); }
.nbgroup {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap; width: 100%;
  padding: 11px 2px; background: transparent; border: 0; border-radius: 0;
  text-align: left; font-size: 14px; color: var(--text);
}
.nbgroup:hover { background: var(--surface-2); }
.nbgroup__hint { font-size: 12px; color: var(--faint); }

.nb {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 12px 14px; margin: 0 0 10px 20px;
  background: var(--surface);
}
.nb--learned { border-left-color: var(--good); opacity: .62; }
.nb__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.nb__jump { font-size: 12px; color: var(--accent); text-decoration: none; }
.nb__jump:hover { text-decoration: underline; }
.nb__star {
  padding: 2px 7px; font-size: 15px; line-height: 1; border: 0;
  background: transparent; color: var(--faint);
}
.nb__star:hover { background: var(--surface-2); color: var(--warn); }
.nb__star--on { color: var(--warn); }

.nb__title { margin: 0 0 10px; font-size: 14px; font-weight: 550; }
.nb__pair { display: grid; gap: 10px; }
@media (min-width: 700px) { .nb__pair { grid-template-columns: 1fr 1fr; } }
.nb__k {
  display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; margin-bottom: 3px;
}
/* Wrong and right sit side by side. The struck-through/underlined treatment carries the
   distinction without leaning on colour alone. */
.nb__their {
  margin: 0; font-size: 15px; color: var(--bad);
  text-decoration: line-through var(--bad-soft) 2px;
}
.nb__better { margin: 0; font-size: 15px; color: var(--good); font-weight: 550; }
.nb__why { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.nb__note {
  margin-top: 10px; font-size: 13px; padding: 8px 11px; border-radius: 8px;
  background: var(--accent-soft); color: var(--text);
}
.nb__note b { color: var(--accent); }
.nb__reveal { text-align: center; margin-top: 16px; }

/* Example sentence. Set apart from the answer so it reads as context rather than as
   part of what you were asked to say. */
.example__box { margin-top: 14px; }
.example {
  margin: 4px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted);
  padding: 10px 13px; border-radius: 9px; background: var(--surface-2);
  border: 1px solid var(--border);
}
.example b { color: var(--good); font-weight: 650; }

.nbinput {
  flex: 1 1 200px; padding: 7px 11px; border-radius: 8px; font-size: 13.5px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}

/* Word-level diff for Listen and Repeat. Colour carries the category, but each word
   also changes shape — struck through, underlined, bracketed — so the four states stay
   apart without relying on colour vision. */
.diff { margin: 0; font-size: 16px; line-height: 2.1; }
.diff .w { padding: 2px 5px; border-radius: 5px; margin-right: 3px; white-space: nowrap; }
.w--hit { color: var(--text); }
.w--del { background: var(--bad-soft); color: var(--bad); text-decoration: line-through; }
.w--sub { background: var(--warn-soft); color: var(--warn); }
.w--sub i { font-style: normal; opacity: .85; }
.w--sub i::before { content: ' → '; opacity: .6; }
.w--ins { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--border-strong); }
/* Marked wrong, but the recogniser was unsure — the doubt belongs on screen. */
.w--shaky { border: 1px dashed currentColor; }
.w--shaky sup { font-size: 10px; opacity: .8; margin-left: 2px; }

.difflegend {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px;
  font-size: 12px; color: var(--faint);
}
.difflegend i { font-style: normal; padding: 1px 5px; border-radius: 4px; margin-right: 4px; }

/* Grading progress. The bar reports how much of the reply has actually been written,
   so it moves in uneven steps — no easing that would imply steady progress. */
.gradebar { width: 100%; }
.gradebar__head {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 13.5px; margin-bottom: 9px;
}
.gradebar__head b { font-variant-numeric: tabular-nums; min-width: 40px; }
.gradebar__track {
  height: 7px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border); overflow: hidden;
}
.gradebar__track i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--accent); transition: width .4s ease-out;
}

/* ------------------------------------------------------------------- misc */
.note {
  font-size: 12.5px; color: var(--faint); border-top: 1px dashed var(--border);
  padding-top: 11px; margin-top: 16px;
}
.note b { color: var(--muted); }
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.err {
  background: var(--bad-soft); color: var(--bad); border: 1px solid transparent;
  border-radius: 9px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 14px;
  white-space: pre-wrap; word-break: break-word;
}
.hidden { display: none !important; }
kbd {
  font-family: var(--mono); font-size: 11.5px; background: var(--surface-2);
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px;
}
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.switch input { accent-color: var(--accent); width: 15px; height: 15px; }
