/* ---------- Schriften (Geist, OFL – lokal eingebunden) ---------- */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('../fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f2;
  --surface: #fff;
  --fg: #111;
  --muted: #777;
  --muted-2: #888;
  --faint: #b4b4b4;
  --rank: #aaa;
  --dim: #999;
  --soft: #555;
  --body-soft: #444;
  --line: #e4e4e1;
  --line-strong: #111;
  --btn-border: #ccc;
  --kbd-fg: #444;
  --key-empty-bg: #fff;
  --key-empty-fg: #bbb;
  --key-empty-bd: #e6e6e6;
  --space-fg: #666;
  --err: oklch(.56 .2 25);
  --err-bg: oklch(.56 .2 25 / .14);
  --accent: var(--fg);
  --on-accent: #fff;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f0f;
  --surface: #161616;
  --fg: #ededed;
  --muted: #8a8a8a;
  --muted-2: #8a8a8a;
  --faint: #5a5a5a;
  --rank: #5a5a5a;
  --dim: #6a6a6a;
  --soft: #9a9a9a;
  --body-soft: #a8a8a8;
  --line: #242424;
  --line-strong: #ededed;
  --btn-border: #333;
  --kbd-fg: #bbb;
  --key-empty-bg: transparent;
  --key-empty-fg: #555;
  --key-empty-bd: #2a2a2a;
  --space-fg: #bbb;
  --err: oklch(.7 .19 25);
  --err-bg: oklch(.7 .19 25 / .18);
  --accent: var(--fg);
  --on-accent: #0f0f0f;
}
:root[data-theme="light"][data-accent="hue"] { --accent: oklch(.6 .17 var(--hue)); --on-accent: #fff; }
:root[data-theme="dark"][data-accent="hue"] { --accent: oklch(.80 .16 var(--hue)); --on-accent: #0f0f0f; }

/* ---------- Basis ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Geist, system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color .2s, color .2s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fadein { from { opacity: 0; transform: translateY(1.5px); } to { opacity: 1; transform: none; } }

.shell { width: 100%; max-width: 1280px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; }

/* ---------- Kopfzeile ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 28px 48px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
/* Keycap-Icon: Graustufen-Basis + Lichtsaum, der per Maske in der Akzentfarbe eingefärbt wird */
.logo-mark { --glow: oklch(.82 .17 var(--hue, 65)); position: relative; width: 30px; height: 30px; flex: none; border-radius: 7px; overflow: hidden;
  transform: translateY(3px); /* optisch auf die Mitte der Kleinbuchstaben ausrichten */
  background: #0e0e0e url('../img/logo-key.png') center / cover no-repeat; }
.logo-mark::after { content: ''; position: absolute; inset: 0; background: var(--glow); transition: background-color .2s;
  -webkit-mask: url('../img/logo-glow.png') center / cover no-repeat; mask: url('../img/logo-glow.png') center / cover no-repeat; }
:root[data-accent="none"] .logo-mark { --glow: #d6d6d6; }
:root[data-theme="light"] .logo-mark { --glow: oklch(.84 .17 var(--hue, 65)); mix-blend-mode: multiply;
  background: #fefefe url('../img/logo-key-light.png') center / cover no-repeat; }
:root[data-theme="light"] .logo-mark::after { -webkit-mask-image: url('../img/logo-glow-light.png'); mask-image: url('../img/logo-glow-light.png'); }
:root[data-theme="light"][data-accent="none"] .logo-mark { --glow: #b4b4b4; }
.top-right { display: flex; align-items: center; gap: 32px; }
.nav { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav a { transition: color .15s; white-space: nowrap; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--accent); }
.tools { display: flex; align-items: center; gap: 4px; position: relative; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: color .15s, background-color .15s; }
.icon-btn:hover { color: var(--fg); background: var(--line); }
.icon-btn svg { width: 17px; height: 17px; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--line); }

/* Einstellungen */
.popover {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 20;
  width: 280px; padding: 18px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  animation: fadein .15s ease-out;
}
.popover[hidden] { display: none; }
.pop-label { font: 500 12px Geist, sans-serif; color: var(--muted-2); margin-bottom: 10px; }
.pop-label + * { margin-bottom: 20px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 3px; }
.segmented button { font-size: 13px; padding: 7px 0; border-radius: 6px; color: var(--muted); }
.segmented button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.swatches button { aspect-ratio: 1; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px rgba(127,127,127,.25); }
.swatches button[aria-pressed="true"]::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--fg); }
.swatches .neutral { background: linear-gradient(135deg, #111 50%, #ededed 50%); }
.hue-row { display: flex; align-items: center; gap: 12px; margin-bottom: 0 !important; }
.hue-row input { flex: 1; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 4px; outline-offset: 4px;
  background: linear-gradient(90deg, oklch(.75 .15 0), oklch(.75 .15 60), oklch(.75 .15 120), oklch(.75 .15 180), oklch(.75 .15 240), oklch(.75 .15 300), oklch(.75 .15 360)); }
.hue-row input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--fg); cursor: pointer; }
.hue-row input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--fg); cursor: pointer; }
.hue-row span { font: 400 12px Geist, sans-serif; color: var(--muted); width: 32px; text-align: right; }

/* ---------- Allgemeine Bausteine ---------- */
.eyebrow { font: 400 14px/1.4 Geist, sans-serif; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; font-size: 14px; padding: 12px 20px; border-radius: 8px; border: 1px solid var(--btn-border); transition: opacity .15s, transform .1s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn-primary:hover { opacity: .88; border-color: transparent; }
.btn-lg { font-size: 15px; padding: 15px 28px; }
kbd { font: 500 12px Geist, sans-serif; border: 1px solid var(--btn-border); border-radius: 4px; padding: 2px 7px; color: var(--kbd-fg); }
.view { flex: 1; display: flex; flex-direction: column; animation: fadein .25s ease-out; }

/* ---------- Test ---------- */
.test { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 96px 48px 120px; }
.test h1 { margin: 20px 0 0; font-weight: 500; font-size: 56px; line-height: 1.05; letter-spacing: -.035em; text-align: center; text-wrap: balance; max-width: 780px; transition: opacity .3s; }
.test.running h1 { opacity: .18; }
.live { display: flex; gap: 18px; justify-content: center; }
.live b { font-weight: 500; color: var(--fg); }
.typing { position: relative; margin-top: 64px; max-width: 860px; width: 100%; font: 400 26px/1.7 Geist, sans-serif; color: var(--faint); letter-spacing: -.005em; cursor: text; overflow-wrap: break-word; }
.typing .c { position: relative; white-space: pre-wrap; }
.typing .ok { color: var(--fg); }
.typing .bad { color: var(--err); background: var(--err-bg); border-radius: 2px; }
.typing .cur::before { content: ''; position: absolute; left: -1px; top: 50%; width: 2px; height: 28px; margin-top: -15px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.typing.typing-now .cur::before { animation: none; }
.typing.blurred .cur::before { opacity: .35; animation: none; }
.typing textarea { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; resize: none; pointer-events: none; font-size: 16px; }
.focus-hint { position: absolute; inset: -12px; display: grid; place-items: center; background: color-mix(in oklab, var(--bg) 70%, transparent); backdrop-filter: blur(2px); font: 400 14px Geist, sans-serif; color: var(--fg); border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.typing.blurred .focus-hint { opacity: 1; pointer-events: auto; }
.test-meta { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; font-size: 13px; color: var(--muted-2); }
.test-actions { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
.test-actions .hint { font-size: 13px; color: var(--muted-2); }
.focus-chars { display: inline-flex; gap: 8px; }
.focus-chars b { font: 500 13px Geist, sans-serif; color: var(--accent); }

.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; padding: 22px 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); }
.foot b { font-weight: 400; color: var(--fg); }

/* ---------- Ergebnis ---------- */
.res-head { padding: 40px 48px 0; }
.res-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.scope { display: flex; gap: 4px; flex-wrap: wrap; }
.scope button { font-size: 13px; padding: 6px 12px; border-radius: 6px; color: var(--muted); border: 1px solid transparent; }
.scope button:hover { color: var(--fg); }
.scope button[aria-pressed="true"] { color: var(--fg); border-color: var(--btn-border); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; border-top: 1px solid var(--line-strong); }
.metrics-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric { padding: 20px 0 0; }
.metric-value { font-weight: 500; font-size: 48px; letter-spacing: -.04em; line-height: 1.15; }
.metric-value span { font-size: 18px; color: var(--muted-2); margin-left: 6px; letter-spacing: 0; }
.metric-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

.res-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 64px; padding: 64px 48px 0; }
.h2 { font-weight: 500; font-size: 18px; letter-spacing: -.01em; margin: 0 0 20px; }
.h3 { font-weight: 500; font-size: 15px; margin: 0 0 16px; }
.kb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 20px; }
.kb-head .h2 { margin: 0; }
.legend { display: flex; align-items: center; gap: 8px; font: 400 12px Geist, sans-serif; color: var(--muted-2); }
.legend i { width: 120px; height: 8px; border-radius: 2px; }

.kb { --k: 56px; --kg: 6px; display: flex; flex-direction: column; gap: var(--kg); width: max-content; }
.kb-row { display: flex; gap: var(--kg); }
.key { width: var(--k); height: var(--k); border-radius: 6px; border: 1px solid transparent; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--k) * .107) calc(var(--k) * .125); transition: background-color .2s; }
.key .l { font-weight: 500; font-size: calc(var(--k) * .268); line-height: 1.1; }
.key .ms { font: 400 max(9px, calc(var(--k) * .18))/1 Geist, sans-serif; opacity: .8; white-space: nowrap; }
.key .ms small { font-size: .85em; opacity: .8; }
.key { container-type: inline-size; }
@container (max-width: 31px) { .key .ms small { display: none; } }
.kb-scroll { overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
.kb-scroll::-webkit-scrollbar { display: none; }
.key.empty { background: var(--key-empty-bg); color: var(--key-empty-fg); border-color: var(--key-empty-bd); }
.kb-space { height: calc(var(--k) * .786); width: calc(var(--k) * 6.1); border-radius: 6px; margin-left: calc(var(--k) * 3.5); display: flex; align-items: center; justify-content: center; font: 400 10px Geist, sans-serif; color: var(--space-fg); }
:root[data-theme="light"] .key:not(.empty), :root[data-theme="light"] .kb-space { border-color: rgba(0,0,0,.06); }
.kb-space { border: 1px solid transparent; }

.weak-row { display: grid; grid-template-columns: 28px 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.weak-row .rank { font: 400 12px Geist, sans-serif; color: var(--rank); }
.weak-row .ch { font: 500 22px Geist, sans-serif; }
.weak-row .cat { font-size: 13px; color: var(--muted); min-width: 0; line-height: 1.35; }
.weak-row .cat small { display: block; font: 400 11px Geist, sans-serif; color: var(--dim); }
.weak-row .val { font: 400 13px Geist, sans-serif; white-space: nowrap; }
.weak-row.weak .val { color: var(--accent); }
.h2-gap { margin-top: 40px; }
/* Stärken/Schwächen: Platz 6–10 per „Mehr anzeigen“ */
.fold:not([data-open]) .weak-row:nth-child(n+6) { display: none; }
.fold-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 10px 0; border: 0; background: none; font: 400 13px Geist, sans-serif; color: var(--muted); cursor: pointer; }
.fold-btn:hover { color: var(--fg); }
.fold-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.fold-btn i { width: 6px; height: 6px; margin-bottom: 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.fold-btn .less, .fold[data-open] .fold-btn .more { display: none; }
.fold[data-open] .fold-btn .less { display: inline; }
.fold[data-open] .fold-btn i { transform: translateY(3px) rotate(-135deg); }
.weak-row .val span { color: var(--dim); margin-left: 8px; }

.res-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; padding: 64px 48px 0; }
.cat-row { padding: 9px 0; }
.cat-row .t { display: flex; justify-content: space-between; font-size: 13px; }
.cat-row .t span:last-child { font-family: Geist, sans-serif; color: var(--soft); }
.bar { height: 3px; background: var(--line); margin-top: 7px; }
.bar > div { height: 3px; background: var(--accent); transition: width .4s; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.list-row .big { font: 500 16px Geist, sans-serif; white-space: pre; }
.list-row .num { font-family: Geist, sans-serif; color: var(--soft); }
.list-row .conf { display: flex; gap: 10px; align-items: center; }
.list-row .conf .as { color: var(--dim); }
.list-row .conf .got { text-decoration: line-through; color: var(--muted-2); }
.empty-note { font-size: 13px; color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line); }

.res-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin: 64px 48px 0; padding: 28px 0 40px; border-top: 1px solid var(--line-strong); }
.insight { font-size: 15px; line-height: 1.5; color: var(--body-soft); max-width: 620px; text-wrap: pretty; margin: 0; }
.insight b { font-weight: 500; color: var(--accent); }
.res-foot .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.history { padding: 24px 48px 64px; }
.hist-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hist-table th { text-align: left; font: 400 12px Geist, sans-serif; color: var(--muted-2); padding: 0 12px 10px 0; }
.hist-table td { padding: 11px 12px 11px 0; border-top: 1px solid var(--line); font-family: Geist, sans-serif; color: var(--soft); }
.hist-table td:first-child { font-family: Geist, sans-serif; color: var(--fg); }
.hist-table tr { cursor: pointer; }
.hist-table tbody tr:hover td { color: var(--fg); }
.hist-table tr[aria-current="true"] td:first-child { color: var(--accent); }
.hist-table .tag { font: 400 11px Geist, sans-serif; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; margin-left: 8px; }
.hist-table th.r, .hist-table td.r { text-align: right; padding-right: 0; padding-left: 12px; }

.empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 96px 48px; gap: 20px; }
.empty-state h1 { margin: 0; font-weight: 500; font-size: 40px; letter-spacing: -.03em; }
.empty-state p { margin: 0; color: var(--muted); font-size: 15px; max-width: 460px; line-height: 1.5; }

/* ---------- Fortschritt ---------- */
.prog-head { padding: 40px 48px 0; }
.prog-title { margin: 20px 0 0; font-weight: 500; font-size: 48px; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; max-width: 900px; }
.prog-title em { font-style: normal; color: var(--accent); }
.lede { margin: 16px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.prog-head .metrics { margin-top: 40px; }
.metric-delta { font-size: 13px; color: var(--soft); margin-top: 2px; }
.prog-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; padding: 64px 48px 0; }
.prog-charts .h3 { margin-bottom: 4px; }
.chart-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.chart { position: relative; min-height: 220px; }
.ch { display: block; overflow: visible; touch-action: pan-y; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-yl, .ch-xl { font: 400 11px Geist, sans-serif; fill: var(--muted); font-variant-numeric: tabular-nums; }
.ch-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-dot { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.ch-focus { fill: var(--accent); stroke: var(--bg); stroke-width: 2.5; pointer-events: none; }
.ch-cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.ch-hit { fill: transparent; cursor: crosshair; }
.ch-tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; box-shadow: 0 6px 20px rgba(0,0,0,.12); white-space: nowrap; z-index: 2; }
.ch-tip-v { font-weight: 500; font-size: 15px; }
.ch-tip-t { font-size: 12px; color: var(--muted); margin-top: 2px; }
.prog-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 64px; padding: 64px 48px 0; }
.prog-table tr { cursor: default; }
.prog-table td { vertical-align: middle; }
.prog-table .pc-ch { font-weight: 500; font-size: 20px; width: 48px; }
.prog-table .pc-cat { color: var(--muted); line-height: 1.35; }
.prog-table .pc-cat small { display: block; font-size: 11px; color: var(--dim); }
.pc-change { white-space: nowrap; color: var(--muted); }
.pc-change.good { color: var(--fg); font-weight: 500; }
.list-row .pc-change { margin-left: 8px; }
.spark { display: inline-block; vertical-align: middle; overflow: visible; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--accent); }
.spark-none { color: var(--dim); }

/* ---------- Über ---------- */
.about { padding: 40px 48px 96px; max-width: 860px; }
.about h1 { margin: 20px 0 48px; font-weight: 500; font-size: 48px; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.about section { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.about h2 { margin: 0; font-weight: 500; font-size: 15px; }
.about p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--body-soft); }
.about p:last-child { margin-bottom: 0; }
.about b { font-weight: 500; color: var(--fg); }
.about .row-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  .metrics-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .res-main { grid-template-columns: minmax(0, 1fr); }
  .kb { --k: min(56px, calc((100vw - 96px - 12 * var(--kg)) / 13)); }
}
@media (max-width: 960px) {
  .prog-charts, .prog-cols { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .prog-title { font-size: 40px; }
  .res-cols { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .test h1 { font-size: 44px; }
}
@media (max-width: 720px) {
  .top { padding: 20px; flex-wrap: wrap; }
  .top-right { gap: 16px; width: 100%; justify-content: space-between; }
  .nav { gap: 16px; font-size: 13px; }
  .nav-long { display: none; }
  .test { padding: 56px 20px 72px; }
  .test h1 { font-size: 34px; }
  .typing { margin-top: 40px; font-size: 18px; }
  .typing .cur::before { height: 22px; margin-top: -12px; }
  .test-meta { gap: 8px 18px; }
  .foot { padding: 18px 20px; gap: 8px 20px; }
  .res-head, .res-main, .res-cols, .history, .about, .prog-head, .prog-charts, .prog-cols { padding-left: 20px; padding-right: 20px; }
  .prog-charts, .prog-cols { padding-top: 48px; }
  .prog-title { font-size: 32px; }
  .res-main, .res-cols { padding-top: 48px; }
  .res-foot { margin: 48px 20px 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-value { font-size: 36px; }
  .kb { --kg: 4px; --k: max(36px, calc((100vw - 40px - 12 * var(--kg)) / 13)); }
  .key { padding: 4px 5px; }
  .about h1 { font-size: 34px; }
  .about section { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hist-table .opt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
