/* ===================================================================
   PTE 79+ Trainer — view-specific layout
   =================================================================== */

/* ================================================================
   EXAM RUNNER — the screen they'll spend most of their time in.
   Deliberately quiet: one task, one timer, nothing else competing.
   ================================================================ */
.runner { display: flex; flex-direction: column; gap: var(--s-5); }

.runner__bar {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  margin: calc(var(--s-6) * -1) calc(var(--s-8) * -1) 0;
  padding-left: var(--s-8); padding-right: var(--s-8);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.runner__id { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.runner__id b { font-size: var(--fs-base); font-weight: 650; }
.runner__id span { font-size: var(--fs-xs); color: var(--text-3); }
.runner__prog { flex: 1; max-width: 220px; }
.runner__count { font-size: var(--fs-sm); font-weight: 650; color: var(--text-2); }

/* Phase strip: shows PREP → RECORD → SCORED so they always know where they are */
.phases { display: flex; align-items: center; gap: var(--s-1); }
.phase {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 3px var(--s-3);
  border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: 650;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--surface-2); color: var(--text-3);
  transition: all var(--t-base);
}
.phase--now { background: var(--accent); color: var(--accent-text); }
.phase--done { background: var(--ok-bg); color: var(--ok); }
.phase__sep { width: 12px; height: 1px; background: var(--border); flex: none; }

/* The prompt card — where the question lives */
.prompt {
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
}
/* Task directive — an accent callout so "what to do" is unmissable */
.prompt__directive {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-3);
  margin-bottom: var(--s-5);
  background: var(--accent-sunk);
  box-shadow: inset 3px 0 0 var(--accent);
  border-radius: var(--r-md);
}
.prompt__directive-icon {
  flex: none; width: 34px; height: 34px; margin-top: 1px;
  display: grid; place-items: center;
  color: var(--accent);
  background: var(--surface);
  border-radius: var(--r-sm);
}
.prompt__directive-icon svg { display: block; }
.prompt__directive-body { flex: 1; min-width: 0; }
.prompt__directive-kicker {
  font-family: var(--ff-mono); font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent); font-weight: 600;
  margin-bottom: 4px;
}
.prompt__instr {
  font-size: var(--fs-md); color: var(--text);
  line-height: 1.55; font-weight: 500;
}
.prompt__instr strong { color: var(--accent); font-weight: 700; }

/* Exam-realistic reading passage */
.passage {
  font-size: var(--fs-exam); line-height: var(--lh-exam);
  max-width: var(--reading-max);
}
.passage--serif { font-family: var(--ff-serif); font-size: 1.125rem; }
.passage p { margin-bottom: var(--s-4); }

/* Read Aloud text: extra large, generous tracking, easy to eye-scan while speaking */
.readaloud {
  font-size: 1.5rem; line-height: 1.85; font-weight: 450;
  letter-spacing: .004em;
  max-width: 42ch;
  padding: var(--s-6);
  background: var(--bg-sunk);
  border-radius: var(--r-lg);
}
/* Chunking cues: teaches WHERE to pause — a direct oral-fluency lever */
.readaloud .chunk { border-bottom: 2px solid transparent; padding-bottom: 1px; }
.readaloud--chunked .chunk {
  border-bottom-color: color-mix(in srgb, var(--skill-speaking) 45%, transparent);
}
.readaloud--chunked .chunk + .chunk { margin-left: 2px; }
.readaloud .pausemark {
  color: var(--skill-speaking); font-weight: 700; opacity: .75;
  padding: 0 3px; user-select: none;
}
/* Stress markers on content words */
.readaloud--stress .stress {
  font-weight: 700;
  color: color-mix(in srgb, var(--skill-speaking) 70%, var(--text));
}
/* Karaoke-style tracker: highlights the word the recogniser has reached */
.readaloud .now {
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 26%, transparent);
}

/* Describe Image: the chart/graph area */
.imgwrap {
  display: flex; flex-direction: column; align-items: stretch; gap: var(--s-3);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
}
/* the chart title lives in HTML, not inside the SVG viewBox, so it wraps
   instead of being clipped at both ends */
.imgwrap__title {
  font-weight: 650; font-size: var(--fs-md); line-height: 1.3;
  text-align: center; color: var(--text);
}
.imgwrap svg { width: 100%; height: auto; max-height: 460px; }

/* Answer area beneath the prompt */
.answer { display: flex; flex-direction: column; gap: var(--s-4); }

.wordcount {
  display: flex; align-items: center; gap: var(--s-4);
  font-size: var(--fs-sm); color: var(--text-2);
}
.wordcount__n { font-weight: 700; font-size: var(--fs-md); color: var(--text); }
.wordcount--ok   .wordcount__n { color: var(--ok); }
.wordcount--warn .wordcount__n { color: var(--warn); }
.wordcount--bad  .wordcount__n { color: var(--danger); }

/* Runner footer with the primary action */
.runner__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border-soft);
}

@media (max-width: 720px) {
  .runner__bar {
    margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) 0;
    padding-left: var(--s-4); padding-right: var(--s-4);
    flex-wrap: wrap;
  }
  .phases { display: none; }
  .readaloud { font-size: 1.25rem; padding: var(--s-4); }
  .prompt { padding: var(--s-4); }
}

/* ================================================================
   RESULT / SCORECARD
   ================================================================ */
.scorecard {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-8);
  align-items: center;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
}
@media (max-width: 720px) {
  .scorecard { grid-template-columns: 1fr; gap: var(--s-5); justify-items: center; text-align: center; }
}

/* Trait breakdown rows (e.g. Content / Fluency / Pronunciation) */
.traits { display: flex; flex-direction: column; gap: var(--s-3); }
.trait { display: grid; grid-template-columns: 130px 1fr auto; gap: var(--s-3); align-items: center; }
.trait__name { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.trait__bar { height: 7px; background: var(--surface-3); border-radius: var(--r-full); overflow: hidden; }
.trait__fill { height: 100%; border-radius: var(--r-full); transition: width var(--t-slow); }
.trait__val { font-size: var(--fs-sm); font-weight: 700; min-width: 52px; text-align: right; }
@media (max-width: 560px) {
  .trait { grid-template-columns: 1fr auto; }
  .trait__bar { grid-column: 1 / -1; order: 3; }
}

/* Dot-scale for small integer rubrics (0-5) — clearer than a bar at this size */
.dots { display: flex; gap: 3px; }
.dots__d {
  width: 14px; height: 6px; border-radius: 3px;
  background: var(--surface-3);
}
.dots__d--on { background: var(--accent); }

/* Feedback list: what to fix, ordered by impact */
.fixes { display: flex; flex-direction: column; gap: var(--s-2); }
.fix {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: var(--fs-sm); line-height: 1.55;
}
.fix__rank {
  flex: none; width: 20px; height: 20px; border-radius: var(--r-full);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 750;
  background: var(--surface-3); color: var(--text-2);
}
.fix--high .fix__rank { background: var(--danger); color: #fff; }
.fix--med  .fix__rank { background: var(--warn); color: #fff; }
.fix--low  .fix__rank { background: var(--info); color: #fff; }

/* ================================================================
   DASHBOARD
   ================================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-8);
  align-items: center;
  padding: var(--s-6) var(--s-8);
  background:
    radial-gradient(1200px 200px at 0% 0%,
      color-mix(in srgb, var(--skill-speaking) 12%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
}
.hero__title { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.02em; }
.hero__sub { color: var(--text-2); margin-top: var(--s-2); max-width: 56ch; }
.hero__points { display: flex; align-items: center; gap: var(--s-6); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: var(--s-5); }
}

/* Points ledger: current → projected */
.ledger { display: flex; flex-direction: column; gap: var(--s-2); }
.ledger__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-4); font-size: var(--fs-sm);
  padding: var(--s-2) 0;
  border-bottom: 1px dashed var(--border-soft);
}
.ledger__row:last-child { border-bottom: none; }
.ledger__row--total {
  font-size: var(--fs-md); font-weight: 700;
  border-top: 2px solid var(--border); border-bottom: none;
  margin-top: var(--s-2); padding-top: var(--s-3);
}
.ledger__n { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Big arrow 75 → 85 */
.pointsjump {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.pointsjump__n {
  font-size: var(--fs-3xl); font-weight: 750; line-height: 1;
  letter-spacing: -.04em;
}
.pointsjump__n--now { color: var(--text-3); }
.pointsjump__n--goal { color: var(--ok); }
.pointsjump__arrow { color: var(--text-3); font-size: var(--fs-xl); }
.pointsjump__cap { font-size: var(--fs-xs); color: var(--text-3); text-align: center; margin-top: 4px; }

/* Skill grid on the dashboard */
.skillgrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-4); }
@media (max-width: 900px) { .skillgrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .skillgrid { grid-template-columns: 1fr; } }

.skillcard {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--skc, var(--accent));
  border-radius: var(--r-lg);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.skillcard--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.skillcard__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.skillcard__name { font-size: var(--fs-sm); font-weight: 650; color: var(--skc); }
.skillcard__score { font-size: var(--fs-3xl); font-weight: 750; line-height: 1; letter-spacing: -.04em; }
.skillcard__gap { font-size: var(--fs-xs); color: var(--text-2); }

/* Streak calendar heatmap */
.heat { display: flex; gap: 3px; }
.heat__col { display: flex; flex-direction: column; gap: 3px; }
.heat__cell {
  width: 11px; height: 11px; border-radius: 3px;
  background: var(--surface-3);
}
.heat__cell[data-lv="1"] { background: color-mix(in srgb, var(--ok) 25%, var(--surface-3)); }
.heat__cell[data-lv="2"] { background: color-mix(in srgb, var(--ok) 48%, var(--surface-3)); }
.heat__cell[data-lv="3"] { background: color-mix(in srgb, var(--ok) 72%, var(--surface-3)); }
.heat__cell[data-lv="4"] { background: var(--ok); }
.heat__cell--today { box-shadow: 0 0 0 2px var(--accent); }

/* ================================================================
   PRACTICE HUB — task type picker
   ================================================================ */
.tasklist { display: flex; flex-direction: column; gap: var(--s-2); }

.taskrow {
  display: grid;
  grid-template-columns: 34px 1fr 100px 120px auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--skc, var(--border));
  border-radius: var(--r-md);
  text-align: left; width: 100%;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.taskrow:hover { background: var(--surface-2); transform: translateX(2px); text-decoration: none; }
.taskrow__code {
  font-size: var(--fs-xs); font-weight: 750; font-family: var(--ff-mono);
  color: var(--skc); letter-spacing: -.02em;
}
.taskrow__name { font-weight: 600; }
.taskrow__meta { font-size: var(--fs-xs); color: var(--text-3); margin-top: 1px; }
.taskrow__score { font-size: var(--fs-lg); font-weight: 700; }
.taskrow__bar { }
@media (max-width: 860px) {
  .taskrow { grid-template-columns: 32px 1fr auto; }
  .taskrow__bar, .taskrow__score { display: none; }
}

/* Weakness callout ordered by impact */
.weakrow {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--surface-2);
  border-left: 3px solid var(--danger);
}

/* ================================================================
   PROGRESS / ANALYTICS
   ================================================================ */
.chartcard { display: flex; flex-direction: column; gap: var(--s-4); }
.chartcard__canvas { width: 100%; }
.chart-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: var(--fs-xs); }
.chart-legend__item {
  display: flex; align-items: center; gap: var(--s-2);
  color: var(--text-2); font-weight: 550;
  cursor: pointer; user-select: none;
}
.chart-legend__item[aria-pressed="false"] { opacity: .4; }
.chart-legend__swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }

.svgchart { display: block; width: 100%; overflow: visible; }
.svgchart .axis-line { stroke: var(--border); stroke-width: 1; }
.svgchart .grid-line { stroke: var(--grid-line); stroke-width: 1; }
/* radar axis labels: mono uppercase name, dark display value beneath
   (design: PTE Dashboard.html -> .radar <text> groups) */
.svgchart .axis-text {
  fill: var(--text-3); font-size: 11px; font-weight: 400;
  font-family: var(--ff-mono); letter-spacing: .12em; text-transform: uppercase;
}
.svgchart .axis-val { fill: var(--text); font-size: 15px; font-weight: 700; font-family: var(--ff-disp); letter-spacing: -.02em; }
.svgchart .goal-line { stroke: var(--text-2); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .7; }
.svgchart .goal-text { fill: var(--text-2); font-size: 10px; font-weight: 700; }
.svgchart .series-line { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.svgchart .series-area { opacity: .12; }
.svgchart .series-dot { stroke: var(--surface); stroke-width: 2; }
.svgchart .bar-rect { transition: opacity var(--t-fast); }
.svgchart .bar-rect:hover { opacity: .75; }
.svgchart .radar-web { fill: none; stroke: var(--border); stroke-width: 1; }
.svgchart .radar-poly { stroke-width: 2; }
.svgchart .hit { fill: transparent; cursor: crosshair; }

.chart-tip {
  position: absolute;
  padding: var(--s-2) var(--s-3);
  background: var(--text); color: var(--bg);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.5;
  pointer-events: none; white-space: pre-line;
  box-shadow: var(--shadow-2);
  transform: translate(-50%, calc(-100% - 10px));
  opacity: 0; transition: opacity var(--t-fast);
  z-index: var(--z-sticky);
}
.chart-tip--on { opacity: 1; }
.chart-host { position: relative; }

/* ================================================================
   STUDY MATERIAL / LIBRARY
   ================================================================ */
.doc { max-width: 76ch; }
.doc h2 { margin: var(--s-8) 0 var(--s-3); }
.doc h3 { margin: var(--s-6) 0 var(--s-2); }
.doc h4 { margin: var(--s-5) 0 var(--s-2); color: var(--text-2); }
.doc p, .doc ul, .doc ol { margin-bottom: var(--s-4); line-height: 1.7; }
.doc li { margin-bottom: var(--s-2); }
.doc code {
  background: var(--surface-2); padding: 1px 5px;
  border-radius: 4px; font-size: .88em;
}
.doc blockquote {
  margin: var(--s-4) 0; padding: var(--s-3) var(--s-4);
  border-left: 3px solid var(--border-loud);
  background: var(--surface-2);
  color: var(--text-2); font-style: italic;
}
.doc table { margin-bottom: var(--s-5); font-size: var(--fs-sm); }
.doc strong { font-weight: 650; color: var(--text); }

/* Template block with copy affordance */
.tmpl {
  position: relative;
  padding: var(--s-4) var(--s-5);
  background: var(--bg-sunk);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  font-family: var(--ff-mono); font-size: var(--fs-sm);
  line-height: 1.85;
  white-space: pre-wrap;
  margin-bottom: var(--s-4);
}
.tmpl__slot {
  background: var(--accent-sunk); color: var(--accent);
  padding: 1px 4px; border-radius: 4px; font-weight: 650;
}
.tmpl__copy { position: absolute; top: var(--s-2); right: var(--s-2); }

/* Table of contents rail */
.toc {
  position: sticky; top: var(--s-6);
  display: flex; flex-direction: column; gap: 1px;
  font-size: var(--fs-sm);
  max-height: calc(100vh - var(--s-12));
  overflow-y: auto;
}
.toc__link {
  padding: var(--s-2) var(--s-3);
  border-left: 2px solid var(--border-soft);
  color: var(--text-2);
  transition: all var(--t-fast);
}
.toc__link:hover { color: var(--text); border-left-color: var(--border-loud); text-decoration: none; }
.toc__link--on { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc__link--sub { padding-left: var(--s-6); font-size: var(--fs-xs); }

/* Accordion */
.acc { border: 1px solid var(--border-soft); border-radius: var(--r-md); overflow: hidden; }
.acc + .acc { margin-top: var(--s-2); }
.acc__btn {
  display: flex; align-items: center; gap: var(--s-3);
  width: 100%; padding: var(--s-3) var(--s-4);
  background: var(--surface); text-align: left;
  font-weight: 600; font-size: var(--fs-base);
  transition: background var(--t-fast);
}
.acc__btn:hover { background: var(--surface-2); }
.acc__chev { margin-left: auto; color: var(--text-3); transition: transform var(--t-base); flex: none; }
.acc--open .acc__chev { transform: rotate(90deg); }
.acc__panel { padding: 0 var(--s-4) var(--s-4); border-top: 1px solid var(--border-soft); padding-top: var(--s-4); }

/* ================================================================
   STUDY PLAN
   ================================================================ */
.week {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border-soft);
}
.week:last-child { border-bottom: none; }
.week__no {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-3);
  padding-top: 2px;
}
.week--now .week__no { color: var(--accent); }
.week--now { background: var(--accent-sunk); border-radius: var(--r-md); padding: var(--s-4); }
.week__focus { font-weight: 650; margin-bottom: var(--s-2); }
.week__items { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.daycard {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
}
.daycard--done { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-bg); }

.todo {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: var(--fs-sm);
  transition: background var(--t-fast);
}
.todo:hover { background: var(--hover); }
.todo--done { opacity: .55; }
.todo--done .todo__name { text-decoration: line-through; }
.todo__check {
  flex: none; width: 18px; height: 18px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border-loud);
  display: grid; place-items: center;
  transition: all var(--t-fast);
}
.todo--done .todo__check { background: var(--ok); border-color: var(--ok); color: #fff; }
.todo__name { flex: 1; min-width: 0; }

/* ================================================================
   ONBOARDING / USER PICKER
   ================================================================ */
.gate {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: var(--s-6);
  background:
    radial-gradient(900px 420px at 20% 0%,  color-mix(in srgb, var(--skill-speaking) 14%, transparent), transparent 70%),
    radial-gradient(900px 420px at 85% 20%, color-mix(in srgb, var(--skill-listening) 12%, transparent), transparent 70%),
    var(--bg);
}
.gate__box { width: 100%; max-width: 480px; text-align: center; }
.gate__logo {
  width: 64px; height: 64px; margin: 0 auto var(--s-5);
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--skill-speaking), var(--skill-listening));
  color: #fff; font-weight: 800; font-size: var(--fs-lg);
  box-shadow: var(--shadow-3);
}
.gate__users { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-8); }
.usercard {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: left; width: 100%;
  transition: all var(--t-fast);
}
.usercard:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.usercard__body { flex: 1; min-width: 0; }
.usercard__name { font-weight: 650; font-size: var(--fs-md); }
.usercard__meta { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }

/* ================================================================
   MOCK TEST
   ================================================================ */
.mockbar {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--s-6);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.mockbar__part { font-size: var(--fs-sm); font-weight: 650; }
.mockbar__seg {
  flex: 1; display: flex; gap: 2px; height: 5px;
  max-width: 480px;
}
.mockbar__tick { flex: 1; background: var(--surface-3); border-radius: 2px; }
.mockbar__tick--done { background: var(--ok); }
.mockbar__tick--now  { background: var(--accent); }

/* Exam mode strips all chrome */
body.exam-mode .sidebar { display: none; }
body.exam-mode .app { grid-template-columns: 1fr; }
body.exam-mode { padding-bottom: 0; }

/* ================================================================
   POINTS CALCULATOR
   ================================================================ */
.calcrow {
  display: grid;
  grid-template-columns: 1fr 200px 62px;
  gap: var(--s-4); align-items: center;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border-soft);
}
.calcrow__label { font-size: var(--fs-base); font-weight: 550; }
.calcrow__note { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.calcrow__pts {
  text-align: right; font-weight: 700; font-size: var(--fs-md);
  font-family: var(--font-mono); white-space: nowrap;
}
@media (max-width: 720px) {
  /* stack the control under the label, but keep the points value beside the
     label rather than stranded on a row of its own */
  .calcrow { grid-template-columns: 1fr 62px; align-items: start; }
  .calcrow > :first-child { grid-column: 1; grid-row: 1; }
  .calcrow__pts { grid-column: 2; grid-row: 1; }
  .calcrow select, .calcrow .select,
  .calcrow > .u-col { grid-column: 1 / -1; grid-row: 2; }
}

.bignum {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.bignum__n { font-size: var(--fs-4xl); font-weight: 750; line-height: 1; letter-spacing: -.04em; }
.bignum__l { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-top: var(--s-2); font-weight: 650; }
