/* Algorist, design direction C "Kaart" (D20; Design directions - 2026-11-27.md on Drive).
   Plum for what is yours, gold only for a right answer, no red anywhere. System fonts only (CSP). */
:root {
  --bg: #faf8f5; --card: #ffffff; --text: #1d1721; --muted: #5f5566;
  --plum: #5b2a6e; --on-plum: #ffffff; --learn: #a683b8; --none: #e6dfea;
  --gold: #e9a800; --gold-text: #7a5200; --on-gold: #1d1721;
  --line: #d8cfdd; --keyline: #8b7f92; --key: #ece6ef;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151017; --card: #1f1823; --text: #f1ebf3; --muted: #b5a9bb;
    --plum: #ddb6f0; --on-plum: #1e1024; --learn: #7a5a8b; --none: #2d2433;
    --gold: #f4c04e; --gold-text: #f4c04e; --on-gold: #1d1721;
    --line: #3a3040; --keyline: #7e7186; --key: #2a2130;
  }
}
*, *::before, *::after { box-sizing: border-box; }
/* A screen that fits stays still (#187): no rubber-band bounce of the page in Safari or the home-screen
   app, as in v4. A longer screen still scrolls, it only does not bounce at its ends. */
html, body { overscroll-behavior: none; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.45 var(--sans); font-variant-numeric: tabular-nums; }
p, h1, ol, ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.app { max-width: 430px; margin: 0 auto; }
.screen {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  padding: max(12px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
}
.top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin-bottom: 8px; }
.wordmark { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.note { font-size: 16px; color: var(--muted); margin-top: 12px; text-align: center; }
.link { background: none; border: 0; min-height: 44px; padding: 0 12px; font-size: 18px; color: var(--text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.primary { min-height: 60px; width: 100%; border: 0; border-radius: 16px; background: var(--plum); color: var(--on-plum); font-size: 20px; font-weight: 700; cursor: pointer; }
.action { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.action:empty { display: none; }

/* the Som */
.work { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px 0; }
.question { font-size: clamp(56px, 19vw, 84px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.answer {
  min-width: 220px; height: 88px; padding: 0 20px; display: flex; align-items: center; justify-content: center;
  border: 0; border-bottom: 4px solid var(--text); background: none; font-size: 62px; font-weight: 700; color: var(--plum); cursor: pointer;
}
.caret { display: inline-block; width: 4px; height: 52px; margin-left: 4px; background: var(--plum); border-radius: 2px; }
.correct { font-size: 19px; font-weight: 600; text-align: center; min-height: 0; }
.correct:empty { display: none; }
.is-right .answer { background: var(--gold); color: var(--on-gold); border-color: transparent; border-radius: 18px; }
.is-right .caret { display: none; }
.is-right .correct { color: var(--gold-text); }
.is-right .work { flex: 1; }
.explained .work { flex: 0; padding-top: 0; }
.explained .question { font-size: 56px; }
.explained .answer { height: 72px; font-size: 52px; }
.explained .caret { height: 42px; }
.help .card { margin: 4px 0 12px; }
.explained .help { flex: 1; }

.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.key {
  height: 60px; border: 1px solid var(--line); border-radius: 16px; background: var(--key);
  font-size: 28px; font-weight: 600; display: grid; place-items: center; cursor: pointer;
}
.key:active { background: var(--learn); }
.key-back { color: var(--muted); }

/* the worked solution */
.card { margin-top: 14px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.area { display: grid; gap: 3px; height: 104px; margin: 10px 0 12px; }
.area div { display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 6px; font-size: 17px; line-height: 1.3; min-width: 0; }
.area b { font-size: 26px; line-height: 1.1; }
.area .a1 { background: var(--plum); color: var(--on-plum); }
.area .a2 { background: var(--learn); color: var(--text); }
.total { font-size: 24px; font-weight: 600; }
.total b { font-weight: 700; }
.steps { list-style: none; font-size: 20px; line-height: 1.6; }

/* a wrong answer */
.feedback .right { font-size: 76px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 10px; }
.your { text-decoration: line-through; text-decoration-thickness: 2px; }
.slip { margin-top: 12px; font-size: 20px; line-height: 1.35; font-weight: 600; }

/* the end of a session (issue #43): headline, one line, the Map, one button; the rest behind Details */
.title { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 4px; }
.block { margin-top: 20px; }
.times { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--keyline);
}
.row .sum-text { font-size: 19px; font-weight: 700; white-space: nowrap; }
.row .tags { font-size: 16px; color: var(--muted); }
.row .time { font-size: 18px; font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .is-right .answer { animation: land 0.4s ease-out; }
  @keyframes land { from { transform: scale(0.92); } 60% { transform: scale(1.04); } to { transform: none; } }
}

/* the Map of a Doel (app/src/map.ts): rows are the tables, one cell per Feit. States differ in shape
   and lightness: not yet a hollow outline, in practice mid, Vast dark, today's new Vast gold with an
   outer ring, Komt terug an inner ring with a gap (visible on a dark cell too). */
.mapview { margin-top: 8px; }
.mapwrap { position: relative; }
.map { container-type: inline-size; display: flex; flex-direction: column; gap: 2px; --lab: 26px; }
.maprow, .axb {
  --c: min(32px, calc((100cqw - var(--lab)) / var(--n) - 2px));
  display: grid; grid-template-columns: var(--lab) repeat(var(--n), var(--c)); column-gap: 2px; align-items: center;
}
.maprow {
  width: 100%; height: var(--c); padding: 0; border: 0; border-radius: 4px; background: transparent;
  grid-auto-rows: var(--c); cursor: pointer; text-align: left;
}
.maprow:active { background: var(--key); }
.maprow:focus-visible { outline-offset: 1px; }
.axl { grid-column: 1; font-size: 14px; line-height: 1; color: var(--muted); text-align: right; padding-right: 6px; }
.map-small .axl { font-size: 16px; }
.axb { margin-top: 2px; font-size: 14px; line-height: 18px; color: var(--muted); }
.axb span { text-align: center; }
.cell { display: block; width: 100%; height: 100%; border-radius: 3px; grid-row: 1; }
.map-small .cell { border-radius: 5px; }
.cell.notYet { background: var(--none); box-shadow: inset 0 0 0 1px var(--keyline); }
.cell.inPractice { background: var(--learn); }
.cell.vast { background: var(--plum); }
.cell.today { background: var(--gold); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold-text); position: relative; z-index: 1; }
.cell.ring { box-shadow: inset 0 0 0 2px var(--text), inset 0 0 0 3.5px var(--bg); }
.cell.today.ring { box-shadow: inset 0 0 0 2px var(--text), inset 0 0 0 3.5px var(--bg), 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold-text); }
.hero { position: absolute; top: -4px; right: 0; width: 184px; text-align: right; pointer-events: none; }
.hero .pct { font-size: 62px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.hero .sub { font-size: 17px; line-height: 1.3; margin-top: 6px; }
.hero .up { font-size: 17px; font-weight: 700; color: var(--gold-text); margin-top: 4px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 16px; color: var(--muted); margin-top: 10px; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .cell { width: 14px; height: 14px; flex: none; }
.maphint { font-size: 16px; color: var(--muted); margin-top: 6px; }

/* the row detail */
.rowdetail .back { padding-left: 0; }
.rowtitle { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 2px; }
.feiten { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 17px; }
.feiten th, .feiten td { padding: 8px 4px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.feiten thead th { font-size: 15px; font-weight: 600; color: var(--muted); }
.feiten tbody th { font-weight: 700; white-space: nowrap; }
.feiten tbody th .cell { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; }
.feiten .num { text-align: right; white-space: nowrap; }
.feiten .state { white-space: nowrap; }
.feiten .mark { display: block; font-size: 15px; color: var(--muted); }

/* Vandaag and the end of a session (issue #24) */
.streak { font-size: 17px; color: var(--muted); }
.streak b { color: var(--text); font-size: 20px; }
.map-slot:empty { display: none; }
.end .map-slot { margin-bottom: 4px; }
.goal { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 4px 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.goal .eyebrow { margin-bottom: 0; }
.goal p + p { font-size: 19px; font-weight: 600; }
.primary.quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--keyline); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 19px; font-weight: 600; padding: 9px 13px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--text); white-space: nowrap; }
.lead { font-size: 19px; color: var(--muted); margin-bottom: 4px; }
.lead .keep { display: inline-block; } /* a part moves to the next line whole, and wraps inside only when it is wider than the line */
.guest { margin-top: 6px; }
.guest:empty { display: none; }
.guest .link { padding-left: 0; text-align: left; }
.guest .link:disabled { cursor: default; text-decoration: none; color: var(--muted); }
.after { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.after > .link { margin-left: auto; padding-right: 0; color: var(--muted); }
.more summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 18px; color: var(--muted); cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(-45deg); transition: transform 0.15s; }
.more[open] summary::after { transform: translateY(-3px) rotate(45deg); }
.more[open] { flex-basis: 100%; order: 2; }
.more .block:first-of-type { margin-top: 8px; }
.end .action { padding-top: 12px; }
/* the end screen fits the small viewport (Safari's bars shown), and Klaar stays clear of the home indicator */
.screen.end { min-height: 100vh; min-height: 100svh; padding-bottom: max(18px, calc(env(safe-area-inset-bottom) + 8px)); }
/* the Map on the end screen: cells shrink with the screen height so the whole screen fits, the hint stays on Vandaag */
.end .maprow, .end .axb { --c: min(32px, calc((100cqw - var(--lab)) / var(--n) - 2px), max(12px, calc((100svh - 415px) / (var(--n) + 1) - 2px))); }
.end .maphint { display: none; }
.chips.good li { background: var(--gold); color: var(--on-gold); box-shadow: none; font-weight: 700; }

/* the Doel choice */
.tag { font-size: 15px; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: var(--plum); color: var(--on-plum); }

/* answer entry (D79, #197): the Kladveld above the result, no OK, no Onthoud: 1 2 3 / 4 5 6 / 7 8 9 / · 0 ⌫;
   the field with the focus shows the caret; the keys fill the free height */
.key-zero { grid-column: 2; }
.key-back { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.scratch-line { min-height: 36px; display: flex; align-items: flex-end; }
.scratch {
  min-height: 40px; min-width: 150px; padding: 2px 14px; border: 0; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  background: var(--key); box-shadow: inset 0 0 0 1.5px var(--keyline); color: var(--muted); font-size: 22px; font-weight: 600;
}
.scratch .label { font-size: 15px; font-weight: 600; }
.scratch .caret { height: 22px; width: 3px; margin-left: 0; }
.answer:not(.focused) .caret, .scratch:not(.focused) .caret { visibility: hidden; }
.scratch.focused { box-shadow: inset 0 0 0 2.5px var(--plum); color: var(--text); }
.answer:not(.focused) { border-bottom-color: var(--keyline); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auto { cursor: pointer; }
.setting { margin-top: 10px; padding-right: 16px; }
.setting p:first-child { font-size: 19px; font-weight: 600; }
.goal.setting p + p { font-size: 16px; line-height: 1.35; font-weight: 400; margin-top: 2px; }
.switch {
  flex: none; position: relative; width: 56px; height: 34px; border: 0; border-radius: 17px; padding: 0; cursor: pointer;
  background: var(--none); box-shadow: inset 0 0 0 1.5px var(--keyline);
}
.switch .knob { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1.5px var(--keyline); transition: left 0.15s; }
.switch[aria-checked="true"] { background: var(--plum); box-shadow: none; }
.switch[aria-checked="true"] .knob { left: 26px; box-shadow: none; }

/* the stop sheet (#84) replaces the pause of #31: while it is open the Som is covered and the clock stands still */
.counter { display: flex; align-items: center; gap: 6px; }
.paused .work, .paused .help, .paused .pad, .paused > .action, .paused > .eyebrow, .paused > .note { display: none; }

/* technique Sommen (spec 3, #39): a long Som a size smaller, the intro's name and quiet link, the first step given, the worked example */
.question.long { font-size: clamp(40px, 12.5vw, 64px); }
.explained .question.long { font-size: 44px; }
.link.quiet { color: var(--muted); font-size: 17px; }
.given { font-size: 24px; font-weight: 600; }
.given .muted { font-size: 17px; font-weight: 600; margin-right: 4px; }
.eyebrow.split { margin-top: 14px; }
.chips li.gold { background: var(--gold); color: var(--on-gold); box-shadow: none; font-weight: 700; }
.chips + .muted { margin-top: 6px; font-size: 16px; }
.example .question { margin: 8px 0 14px; }
.example .steps li { animation: step-in 0.2s ease-out; }
@keyframes step-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .example .steps li { animation: none; } }

/* Eerst schatten (spec 3, #40): three ranges above the pad, one tap; the pad, the field and Leg uit come after it */
.schatten { width: 100%; margin-top: 10px; }
.ranges { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.range {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 10px 18px;
  border: 0; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--keyline); color: var(--text); cursor: pointer; text-align: left;
}
.range b { font-size: 22px; font-weight: 700; white-space: nowrap; }
.range span { font-size: 17px; color: var(--muted); text-align: right; margin-left: auto; }
/* a long name ("honderdduizendtallen") goes under the range rather than breaking it */
.range { flex-wrap: wrap; row-gap: 0; }
/* a range stays on one line on a narrow phone (layout round of spec 7) */
@media (max-width: 400px) { .range { padding: 10px 14px; gap: 8px; } .range b { font-size: 19px; } .range span { font-size: 16px; } }
.range:active { background: var(--key); }
.estimating .answer, .estimating .scratch-line, .estimating .correct, .estimating .work > .link:not(.quiet),
.estimating .help, .estimating .pad, .estimating .pause { display: none; }
.schatted { font-size: 17px; }
.verdict { font-size: 18px; font-weight: 600; max-width: 30ch; }
.estimate { font-size: 19px; font-weight: 600; margin-bottom: 4px; }

/* the route question and the comparison (spec 3, #41): first steps as buttons; two short lines after the answer */
.routes .range { justify-content: center; text-align: center; }
.routes .range b { font-size: 20px; }
.compare { display: flex; flex-direction: column; gap: 8px; }
.compare .route { font-size: 18px; line-height: 1.4; }
.compare .label { font-weight: 700; }
.compare .yours { font-size: 16px; }
.is-right .help .card { margin-top: 10px; }

/* Technieken (#42): the quiet line under the Map on Vandaag, the list drawn with the Map's cells, the detail */
.techline { display: block; padding-left: 0; margin-top: 4px; text-align: left; }
.techlist { list-style: none; margin-top: 12px; }
.techrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 18px; text-align: left; cursor: pointer; }
.techrow .cell { width: 20px; height: 20px; flex: none; }
.techname { flex: 1; font-weight: 600; }
.techstate { color: var(--muted); font-size: 16px; text-align: right; }
.techstate .mark { display: block; font-size: 15px; }
.techdetail .techstate { text-align: left; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.techdetail .techstate .cell { width: 16px; height: 16px; flex: none; }
.techdetail > p { font-size: 18px; margin-top: 4px; }
.tip .tiptitle { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.tip p { font-size: 17px; line-height: 1.45; }
.tip .steps { font-size: 18px; margin-top: 8px; }
.techdetail .more { margin-top: 10px; }

/* the Groep screen (#55): who practised today, nothing else; no red, no gold (gold is for a right answer) */
.group-slot:empty { display: none; }
.groupline { display: block; padding-left: 0; text-align: left; }
.groep .top .back { padding-left: 0; }
.switch-groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 17px; cursor: pointer; }
.chip.chosen { box-shadow: inset 0 0 0 2px var(--plum); font-weight: 700; }
.members { list-style: none; margin-top: 16px; }
.member { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.member.me { background: var(--card); border-radius: 14px; box-shadow: inset 0 0 0 2px var(--plum); border-bottom-color: transparent; padding: 8px 10px; }
.initial { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px; background: var(--learn); color: var(--text); }
.initial.m1 { background: #5b2a6e; color: #fff; }
.initial.m2 { background: #2f6b5f; color: #fff; }
.initial.m3 { background: #9a4d1c; color: #fff; }
.initial.m4 { background: #2b4f86; color: #fff; }
.initial.m5 { background: #7a5200; color: #fff; }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nameline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.who .tag { flex: none; }
.who .tag { font-size: 14px; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: var(--plum); color: var(--on-plum); }
.status { display: flex; align-items: center; gap: 6px; font-size: 16px; color: var(--muted); }
.member.done .status { color: var(--text); font-weight: 600; }
.status .role { font-weight: 400; }
.status .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--plum); }
.groep-after { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 16px; }
.groep-after .link { padding-left: 0; }
.leave .row-buttons { display: flex; gap: 8px; }
.leave p { font-size: 16px; }
.nameform { display: flex; flex-direction: column; flex: 1; margin-top: 20px; gap: 6px; }
.field { font: inherit; font-size: 22px; min-height: 56px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--keyline); background: var(--card); color: var(--text); width: 100%; }
.primary:disabled { opacity: 0.45; cursor: default; }
.groep-after > .link { margin-left: 0; padding-right: 12px; color: var(--text); }

/* Vandaag fits the small viewport: the start button is visible without scrolling, also with the group
   line (#55). The Map's cells shrink with the screen height as on the end screen; the quiet lines and
   the cards are compact. */
.screen.today { min-height: 100vh; min-height: 100svh; }
.today .techline, .today .groupline { min-height: 36px; }
.today .goal { margin-top: 10px; padding-top: 10px; padding-bottom: 10px; }
.today .action { padding-top: 12px; }
/* Start stays near the content on a tall screen instead of at its foot (layout round of spec 7) */
.screen.today > .action { margin-top: 0; }

/* Sending an Uitdaging (#56): "Daag iemand uit" shares the Technieken line's row on Vandaag (it wraps
   below only when that line is long); calm screens */
.linkrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 12px; }
.linkrow .challengeline { margin-left: auto; padding-right: 0; white-space: nowrap; }
/* the row's gap spaces the two links, so a short Technieken line keeps "Daag iemand uit" beside it (#69) */
.today .linkrow .challengeline { padding-left: 0; }
.today .challengeline { min-height: 36px; }
.uitdaging .top .back { padding-left: 0; }
.uitdaging .startchoices { gap: 12px; }
.uitdaging .offer { margin-top: 16px; }
.uitdaging .offer p + p { font-size: 19px; }
.uitdaging .linktext { margin-top: 8px; font-size: 16px; color: var(--muted); overflow-wrap: anywhere; user-select: all; }
.uitdaging .linktext[hidden] { display: none; }
.uitdaging .times { list-style: none; margin-top: 8px; }
/* v4 group links (#59): one quiet line above the first Som, a card on Vandaag, the offer on the end screen.
   With the card, Vandaag keeps the start button in view by setting the group line and the setting aside and a smaller Map; the end screen's Map gives up the offer's height. */
.invite-line { font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--plum); text-align: center; }
/* the line takes its height from the Som's spacing, so the pad and the guest note stay in view at 375 × 667 */
.sum.invited .top { margin-bottom: 0; }
.sum.invited .work { padding: 0; gap: 4px; }
.card.invite { margin-top: 6px; padding: 10px 14px 4px; }
.invite-text { font-weight: 600; }
.small { font-size: 15px; line-height: 1.35; }
.link.strong { font-weight: 700; color: var(--plum); }
.card.invite .row-buttons, .join-offer { display: flex; gap: 8px; align-items: center; }
.card.invite .row-buttons .link:first-child, .join-offer .link { padding-left: 0; }
.join-offer { flex-direction: column; align-items: flex-start; gap: 0; margin-top: 6px; }
/* the one question about anonymous counting after the third Daily session (#78) */
.card.count-ask { margin-top: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
/* the end screen with a one-time question (the count question, the tables to 20): the card sits under
   Klaar (layout round of spec 7); the Map gives up some height so the card shows too where the screen
   allows, but its cells never go under the end screen's minimum of 12px */
.end.asking .maprow, .end.asking .axb { --c: min(32px, calc((100cqw - var(--lab)) / var(--n) - 2px), max(12px, calc((100svh - 555px) / (var(--n) + 1) - 2px))); }
.end > .card.count-ask { margin-top: 6px; }
.card.count-ask .row-buttons { display: flex; gap: 16px; align-items: center; }
.card.count-ask .row-buttons .link:first-child { padding-left: 0; }
/* while the card shows, the group line and the setting "Automatisch verder" step aside (back once joined or dismissed);
   since #69 the setting sits under the start button */
.today.invited .setting, .today.invited .group-slot { display: none; }
/* with the card, the greeting and the plan sentence step aside too (#69): the card says what matters now */
.today.invited .greet, .today.invited .plan { display: none; }
.end.invited .maprow, .end.invited .axb { --c: min(32px, calc((100cqw - var(--lab)) / var(--n) - 2px), max(8px, calc((100svh - 515px) / (var(--n) + 1) - 2px))); }
/* After the challenge (#58): on the result screen, "Doe mee met [groep]" with the joining text, then
   "Laat … zien" or "Stuur … naar …"; on the Groep screen, "Je uitdagingen" with the results sent, no winner */
.after-challenge { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 8px; }
.after-challenge > .link, .after-challenge .link { padding-left: 0; text-align: left; }
.after-challenge p:empty { display: none; }
.after-challenge .linktext { font-size: 16px; overflow-wrap: anywhere; user-select: all; }
.after-challenge .linktext[hidden] { display: none; }
.sent-challenges { margin-top: 20px; }
.sent { list-style: none; margin-top: 6px; }
.sent-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sent-row .results { list-style: none; margin-top: 4px; font-size: 17px; }
.sent-row .results li { padding: 2px 0; }
/* Statistieken (#72): the maker's counts without names; Vandaag gets a quiet link at its foot */
.foot .statslink { font-size: 16px; min-height: 32px; padding: 0 4px; }
.stats .top .back { padding-right: 0; }
.segments { display: flex; gap: 6px; margin-top: 4px; }
.segment { flex: 1; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font-size: 17px; box-shadow: inset 0 0 0 1.5px var(--keyline); cursor: pointer; }
.segment.chosen { background: var(--plum); color: var(--on-plum); box-shadow: none; font-weight: 700; }
.stat .headline { font-size: 21px; font-weight: 600; line-height: 1.35; }
.stat .muted { font-size: 16px; margin-top: 4px; }
.statgroup { margin-top: 12px; }
.statrows { display: grid; grid-template-columns: 1fr auto; font-size: 17px; }
.statrows dt, .statrows dd { margin: 0; padding: 5px 0; border-bottom: 1px solid var(--line); }
.statrows dd { text-align: right; padding-left: 12px; }
/* First open and a fuller Vandaag (#69, direction A of the prototype "Welcome and Vandaag - 2026-11-27").
   The Map as a plain picture (map.ts mapPicture): the welcome's large one and the measurement's small one. */
.mappic { display: flex; flex-direction: column; gap: var(--g); --g: 3px; }
.picrow { display: grid; grid-template-columns: repeat(var(--n), var(--c)); grid-auto-rows: var(--c); column-gap: var(--g); }
.mappic .cell { grid-row: 1; }
/* the welcome: the Map appears row by row, fills, a few cells turn gold, then dark; Begin is there from the first second */
.welcome .tagline { font-size: 17px; }
/* the promise line under the name (spec 7 point 5) */
.welcome .promise { font-size: 19px; font-weight: 600; margin: 6px 0 0; }
.welcome .stage { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.welcomemap { --c: min(30px, calc((100vw - 40px) / 9 - 3px), max(16px, calc((100svh - 400px) / 9 - 3px))); margin: 0 auto; }
/* with reduced motion all three captions stand under the Map, so the Map is a little smaller */
.welcome.still .welcomemap { --c: min(30px, calc((100vw - 40px) / 9 - 3px), max(14px, calc((100svh - 490px) / 9 - 3px))); }
.welcomemap .cell { border-radius: 6px; }
/* in dark the empty cells of the welcome Map need a lighter edge to be seen at all (#20) */
@media (prefers-color-scheme: dark) { .welcomemap .cell.notYet { background: #30263a; box-shadow: inset 0 0 0 1.5px #a08fa9; } }
.captions { position: relative; min-height: 84px; }
.cap { position: absolute; inset: 0; font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; opacity: 0; transform: translateY(6px); }
.cap.on { opacity: 1; transform: none; }
.cap small { display: block; font-size: 18px; font-weight: 400; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.welcome.still .captions { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.welcome.still .cap { position: static; font-size: 19px; }
.welcome.still .cap small { font-size: 17px; margin-top: 0; }
.welcome .action { gap: 4px; }
.welcome .again { display: flex; justify-content: center; min-height: 44px; }
.welcome .again .link { visibility: hidden; }
.welcome.ended .again .link { visibility: visible; }
.cell.off { opacity: 0; transform: scale(0.4); }
@media (prefers-reduced-motion: no-preference) {
  .welcomemap .cell { transition: background 0.45s ease, opacity 0.35s ease, transform 0.35s ease, box-shadow 0.45s ease; }
  .cap { transition: opacity 0.45s ease, transform 0.45s ease; }
}
/* the measurement: the small Map in the corner fills with each answer; the one answered last stands out, also in dark mode */
.measuring .top { align-items: flex-start; margin-bottom: 4px; }
.minimap { --c: 5px; --g: 1px; }
.minimap .cell { border-radius: 1.5px; }
.minimap .cell.notYet { box-shadow: inset 0 0 0 1px var(--line); }
.minimap .cell.fresh { box-shadow: 0 0 0 1.5px var(--text); position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .minimap .cell.fresh { animation: fresh 0.5s ease-out; }
  @keyframes fresh { from { transform: scale(2); } to { transform: none; } }
}
/* the line on the measurement's first Som folds away after the answer */
.firstline { font-size: 16px; line-height: 1.35; color: var(--muted); text-align: center; padding: 6px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); max-height: 120px; overflow: hidden; }
/* a little air between the line and the question (#17), less on a short phone so the pad stays in view */
.sum .firstline { margin-bottom: clamp(6px, 1.6svh, 14px); }
.firstline.gone, .sum .firstline.gone { opacity: 0; max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
@media (prefers-reduced-motion: no-preference) { .firstline { transition: opacity 0.5s, max-height 0.5s, padding 0.5s, margin 0.5s; } }
/* the first Som gives the line its height: a smaller Som and field, no room kept for Onthoud until it is used,
   so the pad and the guest note stay in view at 375 × 667 */
.sum.first .work { padding: 0; gap: 4px; }
.sum.first .question { font-size: clamp(48px, 16vw, 72px); }
.sum.first .answer { height: 72px; font-size: 52px; }
.sum.first .caret { height: 42px; }
.sum.first .scratch-line { min-height: 0; }
/* Vandaag: the greeting and the plan sentence; Voortgang: the legend behind "Wat zie ik?", the weeks under the Doel */
.today .greet { font-size: 28px; margin: 0; }
.today .plan { font-size: 17px; line-height: 1.35; color: var(--muted); margin-top: 2px; }
.hero .whatis-toggle { pointer-events: auto; min-height: 36px; padding: 0; margin-top: 2px; font-size: 16px; color: var(--muted); }
.whatis { margin-top: 4px; }
.whatis[hidden] { display: none; }
.whatis .legend { margin-top: 2px; }
.whatis .explain { font-size: 16px; line-height: 1.4; color: var(--muted); margin-top: 6px; }
.whatis .maphint { display: block; }

/* Vandaag (proposal "Vandaag and Voortgang - 2026-11-28"): the week, one line to the Doel (spec 7: its two parts, no bar) */
.week { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 2px 0 12px; text-align: center; }
.week .day { display: grid; justify-items: center; gap: 3px; }
.week .dot { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 15px; font-weight: 700; line-height: 1; }
.week .dot.done { background: var(--plum); border-color: var(--plum); color: var(--on-plum); }
.week .dot.free { border-style: dashed; border-color: var(--keyline); }
.week .dot.today { border: 2.5px solid var(--gold); }
.week .dot.today.done { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.week .dayname { font-size: 13px; color: var(--muted); }
.doel-line { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 12px 14px; text-align: left; font-size: 17px; cursor: pointer; }
.doel-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.doel-line .go { color: var(--plum); font-size: 16px; font-weight: 600; white-space: nowrap; }

/* Voortgang: "Per week vast erbij", one bar per calendar week, this one in plum */
.per-week { margin-top: 12px; padding: 12px 14px; }
.per-week .eyebrow { font-size: 16px; }
.week-bars { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.week-bar { display: grid; grid-template-rows: auto 64px auto; justify-items: stretch; text-align: center; }
.week-bar .n { font-size: 14px; color: var(--muted); min-height: 1.3em; }
.week-bar .col { display: flex; align-items: flex-end; }
.week-bar .col i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--learn); }
.week-bar .col i.now { background: var(--plum); }
.week-bar .wk { margin-top: 4px; font-size: 13px; color: var(--muted); }
.week-bar.current .wk, .week-bar.current .n { color: var(--text); font-weight: 600; }

/* Navigation (#84; prototype "Navigation and flow - 2026-11-27"): three tabs outside a session, the
   account button top right, Instellingen, and in a session the close button and the stop sheet. */
.with-tabs .screen.tabbed { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; max-width: 430px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border-top: 1px solid var(--line);
  /* clears the iPhone's home indicator */
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  min-height: 56px; border: 0; background: none; color: var(--muted); font-size: 14px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--plum); font-weight: 700; }
.top-right { display: flex; align-items: center; gap: 12px; }
.account {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--plum); color: var(--on-plum); font-size: 16px; font-weight: 700; letter-spacing: 0.02em;
}
.account.guest { width: auto; min-width: 44px; padding: 0 12px; border-radius: 22px; background: var(--key); color: var(--muted); font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.top .lead { display: flex; align-items: center; gap: 10px; }
.close {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--key); color: var(--text); font-size: 28px; line-height: 1; display: grid; place-items: center;
}
.sheet-shade { position: fixed; inset: 0; z-index: 20; background: rgba(29, 23, 33, 0.45); display: flex; align-items: flex-end; justify-content: center; }
@media (prefers-color-scheme: dark) { .sheet-shade { background: rgba(0, 0, 0, 0.6); } }
.sheet {
  width: 100%; max-width: 430px; background: var(--card); border-radius: 24px 24px 0 0;
  padding: 22px 20px max(22px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px;
}
.sheet .title { font-size: 26px; margin: 0; }
.sheet .muted { margin-bottom: 6px; }
.secondary {
  min-height: 56px; width: 100%; border: 0; border-radius: 16px; background: transparent; color: var(--text);
  font-size: 19px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--keyline); cursor: pointer;
}
.strong { font-weight: 600; }
.action.inline { margin-top: 16px; padding-top: 0; }
.voortgang .techline { margin-top: 8px; }
.voortgang .goal { margin-top: 12px; }
/* Voortgang in the two parts of Beter rekenen (spec 7): "Feiten" and "Technieken", the switch under the Map */
.voortgang .eyebrow.part { margin: 16px 0 6px; }
.voortgang .eyebrow.part .weeks { font-weight: 400; }
.voortgang .goal.tables20 { margin-top: 10px; }
/* Nog geweten and the Ijkmoment (spec 7): delayed or benchmarked, plain lines; the 12 kinds behind a tap */
.voortgang .measured .card { margin-top: 0; padding: 12px 14px; }
.voortgang .measured .line { margin: 0 0 4px; font-size: 18px; }
.voortgang .measured .muted.small { margin: 6px 0 0; }
.voortgang .measured .more { margin-top: 4px; }
.ijk-kinds { width: 100%; border-collapse: collapse; font-size: 16px; margin-top: 4px; }
.ijk-kinds th, .ijk-kinds td { padding: 5px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.ijk-kinds thead th { color: var(--muted); font-size: 14px; text-align: center; }
.ijk-kinds tbody th { text-align: left; }
/* the names take the width, the two check columns only what they need (layout round of spec 7) */
.ijk-kinds tbody th { width: 100%; }
.ijk-kinds td, .ijk-kinds thead th + th { text-align: center; width: 1%; padding-left: 10px; }
.ijk-kinds td { white-space: nowrap; }
.ijk-kinds thead th + th { line-height: 1.2; }
.ijk-kinds .mark { color: var(--muted); }
.ijk-kinds .mark.right { color: var(--gold-text); font-weight: 700; }
.samen .card { display: flex; flex-direction: column; gap: 4px; }
.samen .groupline { min-height: 44px; }
.taken-row { width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.taken-from { font-weight: 600; }
.instellingen .top .back { padding-right: 0; }
.instellingen .section { margin-top: 18px; margin-bottom: 0; }
.account-card { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.account-card .link { align-self: flex-start; padding-left: 0; }
.account-card .primary { min-height: 52px; font-size: 18px; margin-top: 6px; }
.confirm { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.confirm .link { align-self: center; }
.instellingen .goal.setting { margin-top: 6px; }
.instellingen .goal { margin-top: 10px; }
.instellingen .foot { margin-top: auto; padding-top: 20px; }
.measure-stopped .muted { margin-top: 8px; }
/* a v4 learner's first open (#91): one calm line above the button */
.action .first-open { margin: 0 0 12px; color: var(--text); }
.account-card p[aria-live]:empty, .samen p[aria-live]:empty { display: none; }
.instellingen .foot .statslink { min-height: 44px; }

/* Sign-in by mail code (#90): the e-mail step and the code step; the policy line below */
.signin .address { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.signin .field.code { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.signin-links { display: flex; flex-wrap: wrap; column-gap: 16px; }
.signin-links .link { padding-left: 0; }
.signin-links .primary.quiet { width: auto; }
.signin .policy { text-align: left; font-size: 15px; }
.signin .policy a { color: inherit; text-underline-offset: 3px; }

/* Privacy in Instellingen (#77): the counting switch, the privacy page, Account verwijderen */
.privacy-row { color: var(--text); text-decoration: none; padding-right: 16px; }
.privacy-row .chevron { font-size: 26px; line-height: 1; color: var(--muted); }
.instellingen .privacy-row { margin-top: 10px; }
/* Over de naam: its row in Instellingen (a button drawn as the privacy row) and its screen */
.naam-row { width: 100%; text-align: left; cursor: pointer; min-height: 56px; }
.instellingen .naam-row { margin-top: 18px; }
.naam .top .back { padding-right: 0; }
.naam .title { margin-bottom: 12px; }
.naam p + p { margin-top: 14px; }
/* Over Algorist: its row sits just above Over de naam, the two close together; the screen is drawn as Over de naam */
.instellingen .over-row + .naam-row { margin-top: 10px; }
/* Wat is er nieuw: once for a v4 learner, drawn as Over de naam; the name line, the promise, then Over Algorist and Verder */
.news .news-name { font-weight: 600; }
.news .promise { font-size: 19px; font-weight: 600; margin-top: 6px; }
.news .promise + p { margin-top: 18px; }
.news .over-link { align-self: flex-start; padding-left: 0; }
.delete-part { margin-top: 6px; display: flex; flex-direction: column; }
.delete-part > .link { align-self: flex-start; padding-left: 4px; color: var(--muted); }
.delete-part .confirm { padding: 12px 16px 6px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.delete-part .primary { min-height: 52px; font-size: 18px; margin-top: 6px; }
.delete-part p[aria-live]:empty, .count-slot:empty { display: none; }
.privacy-note { margin-top: 4px; text-align: center; }
.privacy-note a { color: var(--muted); text-underline-offset: 3px; }

/* Herinnering in Instellingen (#103) */
.reminder-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 10px 4px 0; }
.reminder-choice { display: flex; align-items: center; gap: 8px; }
.reminder-choice label, .reminder-via { font-size: 17px; color: var(--muted); }
/* Taal (#92) and the reminder's hour: the same native select */
.reminder-hour, select.lang { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 17px; }
.reminder-hour:disabled, select.lang:disabled, .reminder .chip:disabled { opacity: 0.5; }
.reminder-note, .reminder-status:not(:empty), .reminder-test { margin: 8px 4px 0; }

/* Layout round of spec 7: the whole keypad, 0 and OK included, stays in view without scrolling at
   320 × 568, 375 × 667 and 390 × 844, also after Eerst schatten and with Leg uit open on a Tweede kans.
   The keys, the field and the Som take their size from the screen height; Leg uit scrolls in its own area. */
.sum { --keyh: clamp(48px, 8.5svh, 64px); }
.sum .work { gap: clamp(4px, 1.2svh, 8px); padding: clamp(2px, 1svh, 8px) 0; }
/* D79: the room OK and Onthoud took goes to the keys: the pad takes two thirds of the free height, up to 104px a key */
.sum .work { flex: 1 1 auto; }
.sum .pad { flex: 2 1 auto; grid-auto-rows: minmax(var(--keyh), 1fr); max-height: calc(4 * 104px + 3 * 8px); }
.sum .key { height: auto; min-height: var(--keyh); font-size: clamp(28px, 4.2svh, 38px); }
.sum.explained .pad { flex: 0 0 auto; }
.sum .question { font-size: clamp(44px, min(19vw, 10svh), 84px); }
.sum .question.long { font-size: clamp(34px, min(12.5vw, 8svh), 64px); }
.sum .answer { height: clamp(56px, 12svh, 88px); font-size: clamp(42px, 8.5svh, 62px); }
.sum .caret { height: clamp(32px, 7.5svh, 52px); }
.sum .scratch-line { min-height: clamp(20px, 4.5svh, 36px); }
.sum.first .question { font-size: clamp(40px, min(16vw, 9svh), 72px); }
.sum.first .answer, .sum.explained .answer { height: clamp(52px, 10svh, 72px); font-size: clamp(40px, 7.5svh, 52px); }
.sum.first .caret, .sum.explained .caret { height: clamp(30px, 6svh, 42px); }
.sum.explained .question { font-size: clamp(40px, 8svh, 56px); }
.sum.explained .question.long { font-size: clamp(32px, 6.5svh, 44px); }
.sum.first .scratch-line, .sum.explained .scratch-line { min-height: 0; }
.screen.sum.explained { height: 100vh; height: 100svh; }
.sum.explained .help { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* #199: with Leg uit open the worked solution was clipped to its first line behind the keys. The Som
   and the solution keep the room they need and the keys take what is left, down to their least
   height, so the whole solution shows above the pad; only what is still too tall scrolls in its own area */
.sum.explained { --keyh: clamp(44px, 6.5svh, 52px); }
.sum.explained .work { flex: 0 0 auto; }
.sum.explained .help { flex: 0 1 auto; }
.sum.explained .pad { flex: 1 1 auto; }
/* the end screen's Map labels follow its cells, so small cells keep their labels apart */
.end .axl, .end .axb span { font-size: clamp(11px, var(--c), 14px); }
/* Technieken before anything is Beheerst: one plain line (layout round of spec 7) */
.tech-none { margin-top: 6px; }
.voortgang .tech-none { margin-top: 0; font-size: 17px; }
/* on a short phone the end screen's Map has small cells, so the share beside it is smaller and
   narrower and stays clear of the Map's longer rows (layout round of spec 7) */
@media (max-height: 620px) {
  .end .hero { width: 148px; top: -2px; }
  .end .hero .pct { font-size: 44px; }
  .end .hero .sub { font-size: 15px; line-height: 1.25; margin-top: 2px; }
  .end .hero .up { font-size: 15px; margin-top: 2px; }
  .end > .lead { font-size: 17px; line-height: 1.35; }
}
/* Walkthrough of spec 7: small-screen leftovers at 320 × 568.
   The technique detail keeps "Oefen deze techniek" in view: its action sticks to the bottom while the
   tip scrolls under it. */
.techdetail .action.inline {
  position: sticky; bottom: 0; z-index: 1; margin-top: 12px;
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--bg) 10px);
}
.techdetail .action.inline .muted { margin-top: 4px; font-size: 15px; }
/* Tweede kans with Leg uit open on a short phone: the Som and the field give the worked solution more
   of the room above the pad (the solution still scrolls in its own area, the pad stays in view) */
@media (max-height: 620px) {
  .sum.explained .question { font-size: 34px; }
  .sum.explained .answer { height: 44px; font-size: 34px; }
  .sum.explained .caret { height: 28px; }
  .sum.explained .work { gap: 2px; padding: 0; }
  .sum.explained .help .card { padding-top: 10px; padding-bottom: 10px; }
}

/* After the switch (D75): the note on Vandaag for a v4 learner's first 7 days, one calm line with
   "Wat is er nieuw" and a × top right; it steps aside with the greeting while an invitation shows */
.card.switch-note { position: relative; margin-top: 8px; padding: 10px 44px 10px 14px; font-size: 16px; line-height: 1.4; }
.card.switch-note .link { display: block; min-height: 36px; padding: 0; margin-bottom: -6px; font-size: 16px; text-align: left; }
.card.switch-note .note-close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.switch-note + .plan.restart { margin-top: 8px; }
.today.invited .switch-note { display: none; }
/* on a short phone the greeting steps aside for the note, so Start stays above the tab bar */
@media (max-height: 620px) { .today:has(.switch-note) .greet { display: none; } }

/* What an Uitdaging covers and the choice of it (D81, #203): one line with "Kies iets anders" on the
   start screen; the choose step is a list of parts, each a toggle, a chosen technique with − and + for its Level. */
.uitdaging .cover { margin-top: 12px; }
.uitdaging .coverline { font-size: 17px; line-height: 1.35; }
.uitdaging .cover .choose { padding-left: 0; }
.chooselist { list-style: none; margin-top: 12px; }
.chooselist .choose { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.chooserow { flex: 1; min-height: 52px; padding: 8px 4px 8px 36px; background: none; border: 0; color: var(--text); font: inherit; font-size: 18px; text-align: left; cursor: pointer; position: relative; }
.chooserow::before { content: ""; position: absolute; left: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--text); }
.chooserow.on { font-weight: 700; }
.chooserow.on::before { background: var(--plum); box-shadow: none; }
.chooserow.on::after { content: ""; position: absolute; left: 11px; top: 50%; width: 6px; height: 11px; margin-top: -8px; border: solid var(--on-plum); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.chooserow:disabled { cursor: default; }
.chooserow:disabled:not(.on) { opacity: 0.6; }
.chooselist .level { display: flex; align-items: center; gap: 4px; flex: none; }
.chooselist .levelnum { min-width: 5.5em; text-align: center; font-size: 16px; font-weight: 600; }
.stepper { width: 44px; height: 44px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 2px var(--text); background: none; color: var(--text); font: inherit; font-size: 22px; font-weight: 700; cursor: pointer; }
.stepper:disabled { opacity: 0.35; cursor: default; }

/* "Waar sta ik" on Voortgang (#205) and a member's shared figures in a Groep (#204): plain lines, the
   Level as a stage of ten steps (a picture beside its words, never a score); no ranking, no gold */
.standing .totals { margin: 0 0 6px; font-weight: 600; }
.standing-rows { list-style: none; margin: 0; padding: 0; }
.standing-row { padding: 8px 0; border-top: 1px solid var(--line); }
.standing-row p { margin: 0; }
.standing-row .tname { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.standing-row .tname .name { font-weight: 600; }
.standing-row .tname .level { color: var(--muted); }
.standing-row .figures { font-size: 16px; }
.standing-row .trend { font-size: 15px; }
.stage { display: flex; gap: 3px; margin: 4px 0 2px; max-width: 220px; }
.stage i { flex: 1; height: 6px; border-radius: 3px; background: var(--none); box-shadow: inset 0 0 0 1px var(--keyline); }
.stage i.on { background: var(--plum); box-shadow: none; }
.waar-sta-ik > .muted { margin: 0 0 6px; }
.waar-sta-ik > .muted.small { margin: 6px 0 0; }
.member { flex-wrap: wrap; }
.member .standing-of { margin-top: 4px; }
.member .standing-of summary { cursor: pointer; color: var(--plum); min-height: 32px; display: flex; align-items: center; }
.member .standing-of .card { margin-top: 4px; padding: 10px 12px; }
.groep .share { margin-top: 14px; }
.groep .share .goal.setting { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.groep .share-line { margin: 8px 0 0; }

/* A screen that fits stays still (#187): on a short phone in the home-screen app (320 × 568, the status
   bar's 20 px on top) the first Som was 21 px and Vandaag after the Daily 6 px too tall, so they scrolled
   a little. A little less room between the parts, the keys keep their size. */
@media (max-height: 620px) {
  .sum.first .top { margin-bottom: 0; }
  .sum.first .firstline { padding-top: 3px; padding-bottom: 3px; }
  .sum.first .firstline:not(.gone) { margin-bottom: 4px; }
  .sum.first > .note { margin-top: 4px; }
  .today .goal { margin-top: 6px; }
  .today .action { padding-top: 6px; }
}
