/* german5000 — built from the "German5000 Web Mockups" comp.
   Olive = known, amber = learning: the only two colours that carry meaning. */

@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/public-sans.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/newsreader.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-italic.woff2) format('woff2'); }
@font-face { font-family: 'Spline Sans Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/spline-sans-mono.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --ink: #23201a;
  --text: #57513f;
  --muted: #5f5949;
  --faint: #6b6558;
  --paper: #fffdf9;
  --panel: #f7f3ec;
  --panel-2: #faf8f2;
  --panel-3: #f9f6ef;
  --canvas: #efe9df;
  --line: #e0d9cc;
  --line-2: #e7e1d6;
  --line-3: #eee8dd;
  --line-4: #f2ece1;
  --line-5: #f4efe5;
  --rule: #cfc7b6;
  --olive: #55662f;
  --olive-ink: #2f3a1c;
  --olive-deep: #4f5f2a;
  --olive-dot: #6d8038;
  --olive-mid: #8a9b55;
  --olive-line: #a8b485;
  --olive-soft: #eef1e2;
  --olive-softer: #f3f5e9;
  --olive-tint: #fafbf4;
  --olive-chip: #e9eddb;
  --olive-avatar: #e3e7d3;
  --amber-dot: #d29a4a;
  --amber-ink: #7d5211;
  --amber-soft: #f9eed9;
  --amber-seg: #c8ad7a;
  --hard-ink: #8a4b2a;
  --hard-soft: #f6e3d8;
  --hard-bar: #c9772f;
  --empty: #e2dcd0;
  --serif: Newsreader, Georgia, serif;
  --sans: 'Public Sans', system-ui, sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, monospace;
  --gutter: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body.bg-paper { background: var(--panel); }
a { color: var(--olive); text-decoration: none; }
a:hover { color: #3e4c1f; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--ink); }
button { font: inherit; color: inherit; }
code { font: 500 .9em var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; line-height: 1.5; }
.js .nojs-only { display: none; }
body:not(.js) .js-only { display: none; }
@media (hover: none) and (pointer: coarse) { .kbd-hint, .choice kbd, .grade .mono { display: none; } }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; border-radius: 4px; }

.shell { max-width: 1440px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.shell > main { flex: 1; }

/* ── type ── */
.label { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 9px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }
.eyebrow span { width: 16px; height: 1px; background: var(--olive-line); }
.h-display { font: 400 62px/1.04 var(--serif); letter-spacing: -.022em; text-wrap: balance; }
.h-page { font: 400 48px/1.08 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.h-sub { display: block; margin-top: 10px; font: 500 14px/1.2 var(--mono); letter-spacing: .06em; color: var(--muted); }
.h-section { font: 400 34px/1.15 var(--serif); letter-spacing: -.015em; }
.lede { font: 400 18px/1.62 var(--sans); color: var(--text); max-width: 560px; text-wrap: pretty; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font: 450 13px/1 var(--sans); color: var(--muted); }
.meta-row i { width: 3px; height: 3px; border-radius: 50%; background: var(--rule); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14.5px/1 var(--sans); color: var(--paper); background: var(--olive-ink); padding: 14px 22px; border-radius: 10px; border: 1px solid var(--olive-ink); cursor: pointer; text-align: center; }
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-sm { font-size: 14px; padding: 11px 18px; border-radius: 9px; }
.btn-lg { font-size: 16px; padding: 17px 28px; border-radius: 11px; }
.btn-ghost { background: transparent; color: var(--olive-ink); border-color: var(--rule); }
.btn-ghost:hover { background: transparent; color: var(--olive-ink); border-color: var(--olive); }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; padding: 0 0 3px; border-bottom: 1px solid var(--rule); font: 500 14.5px/1 var(--sans); color: var(--text); cursor: pointer; }
.linkish:hover { color: var(--ink); border-color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ── header / footer ── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px var(--gutter); border-bottom: 1px solid var(--line-3); background: var(--paper); }
.top-app { padding-top: 18px; padding-bottom: 18px; border-bottom-color: var(--line-2); }
.top-l { display: flex; align-items: center; gap: 40px; min-width: 0; }
.top-r { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: baseline; gap: 7px; font: 600 19px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand i { width: 5px; height: 5px; border-radius: 50%; background: var(--olive); }
.brand-sm { font-size: 17px; }
.top-nav { display: flex; gap: 26px; font: 450 14px/1 var(--sans); }
.top-nav a { color: var(--text); padding: 4px 0; }
.top-nav a:hover { color: var(--ink); }
.top-nav a[aria-current] { color: var(--ink); font-weight: 600; }
.app-nav a { color: var(--muted); padding: 4px 0 3px; border-bottom: 2px solid transparent; }
.app-nav a[aria-current] { border-bottom-color: var(--olive); }
.top-link { font: 450 14px/1 var(--sans); color: var(--text); }
.top-link:hover { color: var(--ink); }
.top-dir { font: 450 13px/1 var(--sans); color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; padding: 26px var(--gutter); border-top: 1px solid var(--line-3); background: var(--panel); font: 450 13px/1.4 var(--sans); color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.foot nav a { color: var(--text); }
.foot nav a[href^="https"] { color: var(--olive); }
.foot-sep { width: 1px; height: 14px; background: var(--rule); }
.foot-dim { color: var(--muted); }

/* ── the dot grid ── */
.dots { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 7px; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--empty); }
.dots i.k { background: var(--olive-dot); }
.dots i.l { background: var(--amber-dot); }
.dots-teaser { gap: 6px; }
.dots-dash { gap: 4px; }
.axis { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--mono); color: var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 14px; border-top: 1px solid var(--line-2); font: 450 12.5px/1 var(--sans); color: var(--text); }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--empty); }
.legend i.k { background: var(--olive-dot); }
.legend i.l { background: var(--amber-dot); }
.legend-note { margin-left: auto; color: var(--muted); }

/* ── cards ── */
.card { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; }

/* ── home ── */
.hero { display: grid; grid-template-columns: 1fr minmax(0, 664px); gap: 56px; padding: 76px var(--gutter) 72px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-copy .cta-row { margin-top: 4px; }
.result-card { padding: 30px 32px 26px; display: flex; flex-direction: column; gap: 22px; }
.result-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.result-head .label { margin-bottom: 9px; }
.result-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.result-num span:first-child { font: 400 44px/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.result-num span:last-child { font: 400 20px/1 var(--serif); color: var(--muted); }
.result-level { text-align: right; }
.result-level div:last-child { font: 600 20px/1 var(--sans); color: var(--olive); }
.result-card .legend { padding-top: 4px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-3); border-top: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); }
.pillars > div { background: var(--paper); padding: 40px 40px 44px; display: flex; flex-direction: column; gap: 11px; }
.pillars > div:first-child { padding-left: var(--gutter); }
.pillars > div:last-child { padding-right: var(--gutter); }
.pillar-n { font: 400 26px/1 var(--serif); color: var(--olive); }
.pillar-t { font: 600 17px/1.3 var(--sans); color: var(--ink); }
.pillars p { font: 400 14.5px/1.6 var(--sans); text-wrap: pretty; }
.closer { padding: 60px var(--gutter) 68px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.closer-copy { display: flex; flex-direction: column; gap: 18px; }
.closer-copy p { max-width: 440px; font-size: 16px; line-height: 1.62; }
.mini-list { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.mini-head { padding: 14px 20px; border-bottom: 1px solid var(--line-3); background: var(--panel); font: 500 10.5px/1 var(--mono); letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.mini-row { display: flex; align-items: center; gap: 18px; padding: 15px 20px; border-bottom: 1px solid var(--line-4); color: inherit; }
.mini-row:last-child { border-bottom: 0; }
.mini-row:hover { background: var(--panel-2); color: inherit; }
.rank { font: 500 12px/1 var(--mono); color: var(--faint); }
.mini-row .rank { width: 34px; flex: none; }
.de { font: 400 19px/1.1 var(--serif); color: var(--ink); }
.mini-row .de { width: 120px; flex: none; }
.en { font: 450 14.5px/1.35 var(--sans); color: var(--text); }
.mini-row .en { flex: 1; }
.cefr { font: 500 11px/1 var(--mono); color: var(--olive); }

/* ── word lists ── */
.wl-hero { padding: 44px var(--gutter) 36px; border-bottom: 1px solid var(--line-3); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font: 450 12.5px/1 var(--sans); color: var(--faint); margin-bottom: 22px; }
.crumbs a { color: var(--faint); }
.crumbs [aria-current] { color: var(--text); }
.wl-hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: end; }
.wl-hero-copy { display: flex; flex-direction: column; gap: 18px; }
.wl-hero-copy p { max-width: 640px; font-size: 16.5px; line-height: 1.62; text-wrap: pretty; }
.wl-hero-copy .meta-row { font-size: 12.5px; color: var(--faint); }
.teaser { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.teaser p { font-size: 13.5px; line-height: 1.5; }
.wl-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px var(--gutter); border-bottom: 1px solid var(--line-3); background: var(--panel-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 450 13px/1 var(--sans); color: var(--text); border: 1px solid var(--line); padding: 9px 14px; border-radius: 8px; }
.chip:hover { border-color: var(--olive); color: var(--ink); }
.chip.on { font-weight: 600; color: var(--paper); background: var(--olive-ink); border-color: var(--olive-ink); }
.wl-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.field input, .field select { font: 450 13px/1.2 var(--sans); color: var(--text); border: 1px solid var(--line); background: var(--paper); padding: 9px 14px; border-radius: 8px; height: 36px; }
.field select { padding-right: 30px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.field-search input { width: 220px; }
.field input::placeholder { color: var(--faint); }
.wl-body { display: grid; grid-template-columns: minmax(0, 1fr) 268px; }
.wl-main { padding: 0 0 40px; min-width: 0; }
.wl-row { display: grid; grid-template-columns: 70px 150px 190px 130px 58px minmax(0, 1fr) 40px; gap: 16px; padding: 15px var(--gutter); border-bottom: 1px solid var(--line-5); align-items: center; }
.wl-row:not(.wl-headrow):hover { background: var(--panel-2); }
.wl-headrow { padding-top: 13px; padding-bottom: 13px; border-bottom-color: var(--line-3); font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.wl-row .de { font-size: 21px; overflow-wrap: anywhere; }
.wl-row .de small { font: 400 14px/1 var(--serif); color: var(--faint); }
.wl-row .pos { font: 450 13px/1.3 var(--sans); color: var(--muted); }
.wl-row .ex { font: italic 400 14.5px/1.4 var(--serif); color: var(--text); }
.wl-row.known .rank { color: var(--olive); }
.wl-row.known .rank::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--olive-dot); margin-right: 6px; vertical-align: 1px; }
.wl-row.learning .rank::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-dot); margin-right: 6px; vertical-align: 1px; }
.empty { padding: 30px var(--gutter); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 26px var(--gutter) 0; font: 450 13px/1 var(--sans); color: var(--muted); }
.pager nav { display: flex; flex-wrap: wrap; gap: 7px; }
.pg { font: 500 13px/1 var(--mono); color: var(--text); border: 1px solid var(--line); padding: 8px 13px; border-radius: 7px; }
.pg:hover { border-color: var(--olive); }
.pg.on { color: var(--paper); background: var(--olive-ink); border-color: var(--olive-ink); }
.pg.gap { border-color: transparent; }
.wl-side { border-left: 1px solid var(--line-3); padding: 28px 40px 40px 28px; display: flex; flex-direction: column; gap: 30px; background: var(--panel-2); }
.side-block { display: flex; flex-direction: column; gap: 12px; }
.side-block + .side-block { padding-top: 30px; border-top: 1px solid var(--line-3); }
.side-block p { font-size: 13.5px; line-height: 1.55; text-wrap: pretty; }
.jump { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.jump a { font: 500 12px/1 var(--mono); color: var(--text); background: var(--paper); border: 1px solid var(--line-2); padding: 8px 9px; border-radius: 6px; text-align: center; }
.jump a:hover, .jump a[aria-current] { border-color: var(--olive); color: var(--ink); }
.other { display: flex; flex-direction: column; gap: 9px; font: 450 14px/1.35 var(--sans); }
.other a { color: var(--text); }
.other a:hover { color: var(--ink); }
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 36px var(--gutter); }
.hub-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--paper); color: inherit; }
.hub-card:hover { border-color: var(--olive); color: inherit; }
.hub-n { font: 500 11px/1 var(--mono); letter-spacing: .1em; color: var(--olive); }
.hub-t { font: 400 24px/1.15 var(--serif); color: var(--ink); }
.hub-ex { font: italic 400 15px/1.4 var(--serif); color: var(--muted); }
.hub-note { padding: 0 var(--gutter) 48px; max-width: 820px; display: flex; flex-direction: column; gap: 10px; }

/* play button */
.play { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: none; align-items: center; justify-content: center; padding: 0; cursor: pointer; justify-self: end; }
.js .play { display: inline-flex; }
.play i { width: 0; height: 0; border-left: 7px solid var(--text); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; margin-left: 2px; }
.play:hover { border-color: var(--olive); background: var(--olive-softer); }
.play.speaking { border-color: var(--olive); background: var(--olive-soft); }
.play-lg { width: 30px; height: 30px; border-color: var(--rule); }
.play-lg i { border-left: 8px solid var(--olive-ink); border-top-width: 5.5px; border-bottom-width: 5.5px; }

/* ── prose pages ── */
.prose { padding: 56px var(--gutter) 72px; max-width: 820px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font: 400 28px/1.2 var(--serif); margin-top: 22px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.prose ul { margin: 0; padding-left: 20px; }
.prose em { font-family: var(--serif); font-size: 1.08em; }
.notice { padding: 14px 18px; background: var(--amber-soft); border-radius: 10px; color: var(--amber-ink); }

/* ── app pages (test / dashboard / review) ── */
.shell-app { background: var(--panel); }
.test-progress { gap: 10px; }
.test-progress .mono { font: 500 11.5px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.segs { display: flex; gap: 3px; }
.segs span { width: 13px; height: 4px; border-radius: 2px; background: var(--empty); }
.segs .k { background: var(--olive-dot); }
.segs .m { background: var(--amber-seg); }
.segs .n { background: var(--rule); }
.segs .cur { background: var(--olive-ink); }
.test-progress .top-link { font-size: 13px; color: var(--muted); margin-left: 16px; }

.test-intro { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 80px; display: flex; flex-direction: column; gap: 22px; }
.test-intro p { font-size: 17px; line-height: 1.62; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; font-size: 15px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--olive-dot); }

.test-grid { display: grid; grid-template-columns: minmax(0, 1fr) 348px; min-height: calc(100vh - 66px); }
.test-main { padding: 64px 60px 56px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.word-card { width: 100%; max-width: 620px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 18px; padding: 44px 48px 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 1px 3px rgba(60, 50, 30, .05); text-align: center; }
.word-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.word-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--rule); }
.word-meta b { font-weight: 500; color: var(--olive); }
.word-big { font: 400 56px/1.1 var(--serif); letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.word-say { display: flex; align-items: center; gap: 14px; margin-top: 2px; min-height: 30px; }
.choices-wrap { width: 100%; max-width: 620px; display: flex; flex-direction: column; gap: 18px; }
.prompt { font: 450 15px/1.3 var(--sans); text-align: center; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font: 450 16px/1.3 var(--sans); color: var(--ink); text-align: left; cursor: pointer; }
.choice:hover { border-color: var(--olive); background: var(--olive-tint); }
.choice kbd { width: 24px; height: 24px; flex: none; border-radius: 7px; background: var(--line-4); display: flex; align-items: center; justify-content: center; font: 500 11.5px/1 var(--mono); color: var(--muted); }
.choice.right { border-color: var(--olive); background: var(--olive-soft); }
.choice.wrong { border-color: var(--hard-bar); background: var(--hard-soft); }
.choice:disabled { cursor: default; }
.choice-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.choice-foot .muted { color: var(--faint); }

.test-side { border-left: 1px solid var(--line-2); background: var(--paper); padding: 40px 36px; display: flex; flex-direction: column; gap: 34px; }
.side-sec { display: flex; flex-direction: column; gap: 14px; }
.side-sec + .side-sec { padding-top: 34px; border-top: 1px solid var(--line-3); }
.lvl-now { display: flex; align-items: baseline; gap: 9px; }
.lvl-now span:first-child { font: 400 40px/1 var(--serif); color: var(--ink); }
.lvl-trend { font: 450 14px/1 var(--sans); color: var(--olive); }
.lvl-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.lvl-bars span { height: 9px; border-radius: 2px; background: var(--empty); }
.lvl-names { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; font: 500 10.5px/1 var(--mono); color: var(--faint); }
.lvl-names .on { color: var(--olive); }
.est { font: 400 26px/1.1 var(--serif); color: var(--ink); }
.est-bar { position: relative; height: 8px; background: var(--line-4); border-radius: 4px; overflow: hidden; }
.est-bar span { position: absolute; top: 0; bottom: 0; background: var(--olive-dot); border-radius: 4px; transition: left .3s, width .3s; }
.axis2 { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--mono); color: var(--faint); }
.last3 { display: flex; flex-direction: column; gap: 12px; }
.last3 div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.last3 .de { font-size: 17px; }
.st { font: 500 11px/1 var(--mono); color: var(--faint); }
.st.k { color: var(--olive); }
.st.m { color: var(--amber-ink); }

.result { max-width: 980px; margin: 0 auto; padding: 64px var(--gutter) 80px; display: flex; flex-direction: column; gap: 22px; }
.result-big { display: flex; align-items: baseline; gap: 11px; }
.result-big span:first-child { font: 400 84px/1 var(--serif); letter-spacing: -.025em; color: var(--ink); }
.result-big span:last-child { font: 400 30px/1 var(--serif); color: var(--faint); }
.result-grid { background: var(--paper); padding: 28px 30px 24px; display: flex; flex-direction: column; gap: 20px; }

/* dashboard */
.app { display: block; }
.app-loading { padding: 80px var(--gutter); }
.app-empty { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 80px; display: flex; flex-direction: column; gap: 20px; }
.app-empty p { font-size: 17px; line-height: 1.62; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 372px; }
.dash-main { padding: 44px 44px 48px var(--gutter); display: flex; flex-direction: column; gap: 38px; min-width: 0; }
.dash-side { border-left: 1px solid var(--line-2); background: var(--paper); padding: 44px 40px; display: flex; flex-direction: column; gap: 32px; }
.dash-side > section + section { padding-top: 32px; border-top: 1px solid var(--line-3); }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.dash-num { display: flex; align-items: baseline; gap: 11px; margin: 12px 0; }
.dash-num span:first-child { font: 400 68px/1 var(--serif); letter-spacing: -.025em; color: var(--ink); }
.dash-num span:last-child { font: 400 26px/1 var(--serif); color: var(--faint); }
.dash-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 450 13.5px/1 var(--sans); }
.dash-sub i { width: 3px; height: 3px; border-radius: 50%; background: var(--rule); }
.dash-sub .up { color: var(--olive); font-weight: 600; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-grid { background: var(--paper); padding: 28px 30px 24px; display: flex; flex-direction: column; gap: 20px; }
.dash-grid .dots { gap: 4px; }
.dash-grid .legend { border-top-color: var(--line-4); }
.sec { display: flex; flex-direction: column; gap: 16px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sec-head a, .sec-head span:last-child { font: 450 13px/1 var(--sans); color: var(--olive); }
.miles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.miles > div { background: var(--paper); padding: 18px 16px; display: flex; flex-direction: column; gap: 9px; }
.miles span:nth-child(1) { font: 500 10.5px/1 var(--mono); color: var(--faint); }
.miles span:nth-child(2) { font: 600 15px/1 var(--sans); color: var(--ink); }
.miles span:nth-child(3) { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--olive-dot) var(--p), var(--empty) var(--p)); }
.miles .done { background: var(--olive-soft); }
.miles .done span:nth-child(1) { color: var(--olive); }
.miles .done span:nth-child(2) { color: var(--olive-ink); }
.miles .done span:nth-child(3) { background: var(--olive-deep); }
.plan { background: var(--paper); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.plan-row { display: grid; grid-template-columns: 78px minmax(0, 1.1fr) minmax(0, 1.3fr) 68px 118px; gap: 18px; padding: 16px 24px; border-bottom: 1px solid var(--line-5); align-items: center; }
.plan-row:last-child { border-bottom: 0; }
.plan-row:not(.plan-head):hover { background: var(--panel-2); }
.plan-head { padding-top: 13px; padding-bottom: 13px; border-bottom-color: var(--line-3); background: var(--panel-3); font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.tag { font: 600 11px/1 var(--mono); letter-spacing: .05em; padding: 6px 9px; border-radius: 5px; justify-self: start; color: var(--muted); background: var(--line-4); white-space: nowrap; }
.tag.learning { color: var(--amber-ink); background: var(--amber-soft); }
.tag.due { color: var(--olive-ink); background: var(--olive-chip); }
.tag.hard { color: var(--hard-ink); background: var(--hard-soft); }
.today { display: flex; align-items: center; gap: 20px; }
.ring { width: 80px; height: 80px; border-radius: 50%; background: conic-gradient(var(--olive-dot) 0 var(--p), var(--line-3) var(--p) 100%); display: flex; align-items: center; justify-content: center; flex: none; }
.ring div { width: 62px; height: 62px; border-radius: 50%; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring b { font: 400 22px/1 var(--serif); color: var(--ink); }
.ring small { font: 500 9.5px/1 var(--mono); color: var(--faint); margin-top: 3px; }
.today-t { display: flex; flex-direction: column; gap: 6px; }
.today-t b { font: 600 15px/1.3 var(--sans); color: var(--ink); }
.today-t span { font: 450 13px/1.45 var(--sans); color: var(--muted); }
.goal { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.goal select { font: 450 13px/1 var(--sans); color: var(--text); border: 1px solid var(--line); border-radius: 7px; background: var(--paper); padding: 5px 8px; }
.streak-n { display: flex; align-items: baseline; gap: 8px; }
.streak-n b { font: 400 30px/1 var(--serif); color: var(--ink); }
.week { display: flex; gap: 7px; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.week span { width: 24px; height: 24px; border-radius: 7px; background: var(--line-4); }
.week .on span { background: var(--olive-dot); }
.week .today span { background: #dfe4cf; border: 1px dashed var(--olive-line); }
.week small { font: 500 9.5px/1 var(--mono); color: var(--faint); }
.week .today small { color: var(--olive); }
.hard-row { display: flex; flex-direction: column; gap: 5px; }
.hard-row > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hard-row .de { font-size: 18px; }
.hard-row small { font: 450 12.5px/1 var(--sans); color: var(--muted); }
.hard-row > span { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--hard-bar) var(--p), var(--line-4) var(--p)); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modes a { font: 450 13.5px/1 var(--sans); color: var(--ink); background: var(--panel); padding: 13px 14px; border-radius: 9px; }
.modes a:hover { background: var(--olive-soft); color: var(--ink); }
.dash-foot { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.dash-foot button { font-size: 12.5px; }

/* review */
.rv { display: grid; grid-template-columns: minmax(0, 1fr) 348px; min-height: calc(100vh - 66px); }
.rv-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rv-modes a { font: 450 13px/1 var(--sans); color: var(--text); border: 1px solid var(--line); padding: 9px 14px; border-radius: 8px; background: var(--paper); }
.rv-modes a[aria-current] { color: var(--paper); background: var(--olive-ink); border-color: var(--olive-ink); font-weight: 600; }
.reveal { width: 100%; max-width: 620px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.reveal .en { font-size: 20px; color: var(--ink); }
.reveal .ex { font: italic 400 17px/1.45 var(--serif); color: var(--text); }
.reveal .exEn { font-size: 14px; color: var(--muted); }
.grade { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.type-row { display: flex; gap: 10px; width: 100%; }
.type-row input { flex: 1; min-width: 0; font: 400 22px/1.2 var(--serif); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--paper); }
.type-row input:focus { outline: 2px solid var(--olive); outline-offset: 1px; }
.feedback { font: 450 15px/1.4 var(--sans); }
.feedback.ok { color: var(--olive); }
.feedback.no { color: var(--hard-ink); }
.hard-list { max-width: 900px; padding: 44px var(--gutter) 60px; display: flex; flex-direction: column; gap: 24px; }


/* ── word page ── */
.wl-row .de a { color: inherit; }
.wl-row .de a:hover { color: var(--olive); text-decoration: underline; text-decoration-color: var(--olive-line); text-underline-offset: 4px; }
.wd { max-width: 1040px; width: 100%; margin: 0 auto; padding: 40px var(--gutter) 64px; }
.wd-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding-bottom: 36px; border-bottom: 1px solid var(--line-3); }
.wd-hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wd-h1 { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font: 400 64px/1.02 var(--serif); letter-spacing: -.022em; overflow-wrap: anywhere; }
.wd-h1 small { font-size: .5em; color: var(--faint); letter-spacing: 0; }
.wd-en { font: 400 24px/1.35 var(--serif); color: var(--ink); max-width: 620px; }
.wd-note { font-size: 14.5px; max-width: 620px; }
.wd-status { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.wd-status p { font-size: 14px; }
.wd-status.known { background: var(--olive-tint); border-color: var(--olive-line); }
.wd-status.learning { background: var(--amber-soft); border-color: #e8cf9f; }
.wd-sec { padding: 34px 0; border-bottom: 1px solid var(--line-3); display: flex; flex-direction: column; gap: 14px; }
.wd-sec:last-child { border-bottom: 0; }
.wd-sec p { max-width: 720px; font-size: 15.5px; line-height: 1.65; }
.wd-lede { color: var(--muted); }
.wd-ex { margin: 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--olive-line); display: flex; flex-direction: column; gap: 6px; }
.wd-ex p:first-child { font: italic 400 25px/1.4 var(--serif); color: var(--ink); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wd-ex-en { color: var(--muted); }
.wd-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wd-form { padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 20px; }
.wd-form:target { border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-soft); }
.wd-form-w { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wd-form-w .de { font: 400 24px/1.1 var(--serif); color: var(--ink); }
.wd-form-en { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; font-size: 14.5px; color: var(--text); }
.wd-sec .wd-form-ex { font-size: 14px; line-height: 1.5; }
.wd-form-ex > span[lang] { font-family: var(--serif); font-style: italic; font-size: 15.5px; color: var(--ink); }
.wd-form-ex .play { vertical-align: -7px; margin-left: 4px; }
.wd .rank { font: 500 12px/1 var(--mono); color: var(--faint); }
.wd .cefr { font: 500 11px/1 var(--mono); color: var(--olive); }
.wd-bar { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--olive-line), var(--empty)); margin-top: 8px; }
.wd-bar span { position: absolute; top: -5px; width: 3px; height: 16px; margin-left: -1.5px; border-radius: 2px; background: var(--olive-ink); }
.wd-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wd-chips a { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 18px/1.1 var(--serif); }
.wd-chips a:hover { border-color: var(--olive); }
.wd-chips small { font: 450 12.5px/1.3 var(--sans); color: var(--muted); }
.wd-near-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.wd-near-list li { display: grid; grid-template-columns: 64px 220px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 11px 18px; border-bottom: 1px solid var(--line-5); }
.wd-near-list li:last-child { border-bottom: 0; }
.wd-near-list li > :nth-child(2) { font: 400 19px/1.2 var(--serif); overflow-wrap: anywhere; }
.wd-near-list a { color: var(--ink); }
.wd-near-list a:hover { color: var(--olive); }
.wd-near-list [aria-current] { background: var(--olive-softer); }
.wd-near-list [aria-current] > :nth-child(2) { color: var(--olive-ink); font-weight: 500; }
.wd-near-list .en { font-size: 14px; color: var(--text); }
.wd-lists { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
.wd-lists li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-4); font-size: 14.5px; }


/* ── guides ── */
.wd-warn { font-size: 14.5px; max-width: 620px; padding: 12px 16px; border-radius: 10px; background: var(--hard-soft); color: var(--hard-ink); }
.wd-warn a { color: var(--hard-ink); text-decoration: underline; }
.wd-hero-1 { grid-template-columns: minmax(0, 1fr); }
.guide .h-section { font-size: 30px; }
.gd-split { display: flex; height: 38px; border-radius: 10px; overflow: hidden; max-width: 620px; font: 500 13px/38px var(--mono); }
.gd-split span { padding: 0 12px; white-space: nowrap; overflow: hidden; }
.gd-der, .gtag.gd-der { background: #dde6ef; color: #213a55; }
.gd-die, .gtag.gd-die { background: #f4dfd6; color: #6e2f16; }
.gd-das, .gtag.gd-das { background: #e3ead2; color: #33401a; }
.gtag { display: inline-block; padding: 4px 9px; border-radius: 6px; font: 600 12px/1 var(--mono); }
.gr { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.gr-row { display: grid; grid-template-columns: 80px 64px 190px minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: baseline; padding: 12px 18px; border-bottom: 1px solid var(--line-5); font-size: 14px; scroll-margin-top: 20px; }
.gr-row:last-child { border-bottom: 0; }
.gr-head { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); }
.gr-suf { font: 400 22px/1 var(--serif); color: var(--ink); }
.gr-rel { display: flex; flex-direction: column; gap: 6px; font: 500 12px/1 var(--mono); color: var(--muted); }
.gr-bar { height: 6px; border-radius: 3px; background: var(--empty); overflow: hidden; }
.gr-bar i { display: block; height: 100%; background: var(--olive-dot); }
.gr-ex { line-height: 1.55; }
.gr-ex a { color: var(--ink); }
.gr-lab { display: none; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gd-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; max-width: 720px; font-size: 15.5px; }
.gd-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gd-col { border: 1px solid var(--line-2); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.gd-col-h { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.gd-col ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.gd-col li a { font: 400 18px/1.2 var(--serif); color: var(--ink); margin-right: 8px; }
.gd-col li .muted { font-size: 13px; }
.gd-q { font: 600 15.5px/1.4 var(--sans); color: var(--ink); margin-top: 8px; }
.cg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.cg a { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); height: 100%; }
.cg a:hover { border-color: var(--olive); }
.cg .de { font: 400 19px/1.15 var(--serif); }
.cg-en { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.ff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ff-item { border: 1px solid var(--line-2); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 20px; }
.ff-head { display: flex; align-items: center; gap: 12px; }
.ff-head .rank { margin-left: auto; }
.ff-w { font: 400 28px/1.1 var(--serif); }
.ff-w a { color: var(--ink); }
.ff-cmp { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.ff-not { padding: 4px 9px; border-radius: 6px; background: var(--hard-soft); color: var(--hard-ink); text-decoration: line-through; text-decoration-color: rgba(138, 75, 42, .5); }
.ff-is { padding: 4px 9px; border-radius: 6px; background: var(--olive-soft); color: var(--olive-ink); font-weight: 600; }
.wd-sec .ff-item p { font-size: 14.5px; }
.ff-ex > span[lang] { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink); }
.gq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; padding: 12px 0 20px; }
.gq-intro { display: flex; flex-direction: column; gap: 20px; }
.gq-range { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 15px; }
.gq-range legend { margin-bottom: 12px; }
.gq-range label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.gq-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.gq-en { text-align: center; color: var(--muted); font-size: 15px; margin-top: 6px; }
.gq-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gq-choices .choice { justify-content: center; font: 400 24px/1 var(--serif); }
.gq-missed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
.gq-missed li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-4); }
.gq-missed a { font: 400 18px/1.2 var(--serif); color: var(--ink); }
.gq-result { display: flex; flex-direction: column; gap: 18px; }
.hub-guides { padding: 12px 0 0; }
.hub-guides > .label { padding: 0 var(--gutter); }
.hub-guides .hub { padding-top: 16px; }

/* ── responsive ── */
@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; }
  .h-display { font-size: 52px; }
  .wl-row { grid-template-columns: 58px 140px minmax(0, 1fr) 110px 44px 30px; }
  .wl-row .ex { display: none; }
  .wl-headrow span:nth-child(6) { display: none; }
  .test-grid, .rv, .dash { grid-template-columns: 1fr; }
  .test-side, .dash-side { border-left: 0; border-top: 1px solid var(--line-2); }
  .miles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .wd-hero { grid-template-columns: 1fr; gap: 28px; }
  .wd-forms, .wd-lists, .gd-cols, .ff, .gq-missed { grid-template-columns: 1fr; }
  .gr-row { grid-template-columns: 64px 56px minmax(0, 1fr); }
  .gr-row > :nth-child(4), .gr-row > :nth-child(5) { grid-column: 1 / -1; }
  .gr-row > :nth-child(4) { display: none; }
  .gr-head > :nth-child(5) { display: none; }
  .gr-lab { display: inline; }
  /* Phones keep the nav: it drops to its own scrollable row under the brand. */
  .top { flex-wrap: wrap; row-gap: 12px; }
  .top-l { display: contents; }
  .top-nav { order: 3; flex: 1 1 100%; gap: 22px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
  .top-nav::-webkit-scrollbar { display: none; }
  .test-progress { min-width: 0; }
  .wl-hero-grid, .wl-body, .closer { grid-template-columns: 1fr; gap: 32px; }
  .wl-side { border-left: 0; border-top: 1px solid var(--line-3); padding: 28px var(--gutter); }
  .pillars { grid-template-columns: 1fr; }
  .pillars > div { padding: 32px var(--gutter) !important; }
  .field-search input { width: 100%; }
  .wl-controls, .field-search { flex: 1 1 100%; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 14.5px; }
  .top { padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .top-r { gap: 12px; }
  .top-link { font-size: 13px; }
  .top .btn-sm { padding: 9px 12px; font-size: 13px; }
  .h-display { font-size: 40px; }
  .h-page { font-size: 34px; }
  .h-section { font-size: 28px; }
  .lede { font-size: 16.5px; }
  .hero { padding-top: 36px; padding-bottom: 44px; }
  .btn-lg { width: 100%; }
  .result-card { padding: 22px 18px; }
  .dots { gap: 4px; }
  .result-num span:first-child { font-size: 36px; }
  .wl-row { grid-template-columns: 44px minmax(0, 1fr) 30px; gap: 4px 12px; padding-top: 12px; padding-bottom: 12px; }
  .wl-row .en { grid-column: 2; grid-row: 2; font-size: 13.5px; }
  .wl-row .pos, .wl-row .cefr { display: none; }
  .wl-row .rank { grid-row: 1 / span 2; }
  .wl-row .au { grid-column: 3; grid-row: 1 / span 2; }
  .wl-headrow { display: none; }
  .wl-tools { padding-top: 12px; padding-bottom: 12px; }
  .field, .field select { flex: 1; }
  .field-search { flex-basis: 100%; }
  .field select { width: 100%; }
  .mini-row .de { width: 90px; }
  .mini-row .cefr { display: none; }
  .test-main { padding: 28px var(--gutter) 36px; gap: 26px; }
  .word-card { padding: 30px 18px 26px; }
  .word-big { font-size: 42px; }
  .choices { grid-template-columns: 1fr; }
  .choice { padding: 15px 16px; }
  .test-side, .dash-side { padding: 28px var(--gutter); }
  .test-progress .top-link { margin-left: 4px; white-space: nowrap; }
  .test-progress .mono { white-space: nowrap; }
  .segs { display: none; }
  .dash-main { padding: 28px var(--gutter) 36px; gap: 30px; }
  .dash-num span:first-child, .result-big span:first-child { font-size: 54px; }
  .miles { grid-template-columns: repeat(2, 1fr); }
  .plan-row { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 4px 12px; padding: 13px 16px; }
  .plan-row > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .plan-row > :nth-child(4) { display: none; }
  .plan-row > :nth-child(5) { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .plan-head { display: none; }
  .foot { flex-direction: column; align-items: flex-start; }
  .legend-note { margin-left: 0; flex-basis: 100%; }
  .wd { padding-top: 24px; padding-bottom: 40px; }
  .wd-h1 { font-size: 46px; gap: 14px; }
  .wd-en { font-size: 20px; }
  .wd-ex p:first-child { font-size: 21px; }
  .wd-near-list li { grid-template-columns: 48px minmax(0, 1fr); gap: 2px 12px; padding: 10px 14px; }
  .wd-near-list .en { grid-column: 2; }
}
