/* Base reset (the claude.ai version gets the same from its page skeleton) */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Layout: sidebar + fluid main for overview screens; focused exercise screen with a side help column. */
:root {
  --bg: #F6F7F9; --surface: #FFFFFF; --surface-2: #EEF0F3; --line: #E3E6EB; --line-strong: #C5CAD3;
  --ink: #14213D; --muted: #5B6270;
  --brand: #14213D; --brand-ink: #FFFFFF; --brand-muted: #C9D1E3; --brand-chip: #26355A;
  --accent: #1F4FD8; --accent-ink: #FFFFFF; --accent-soft: #E8EEFC;
  --sun: #FFC93C; --sun-ink: #14213D; --sun-soft: #FFF4D6; --sun-strong: #7A4B00; --minor: #B7791F;
  --good: #157A3C; --good-ink: #FFFFFF; --good-soft: #E6F4EC;
  --bad: #B42318; --bad-soft: #FDECEA;
  --hot: #C2410C; --hot-soft: #FDEDE5;
  --violet: #6B3FA0; --violet-soft: #F0E9FA;
  --teal: #0F766E; --teal-soft: #E0F2EF;
  --g-m: #1E7A46; --g-n: #7B3FA0; --g-f: #B4530A; --g-pl: #C02942;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1524; --surface: #172036; --surface-2: #1F2A44; --line: #27324D; --line-strong: #3A4766;
    --ink: #E8ECF5; --muted: #A3ADC2;
    --brand: #1B2B57; --brand-ink: #FFFFFF; --brand-muted: #C9D1E3; --brand-chip: #2A3C6E;
    --accent: #7EA2FF; --accent-ink: #0F1524; --accent-soft: #1E2E5C;
    --sun: #FFC93C; --sun-ink: #14213D; --sun-soft: #3A2F12; --sun-strong: #FFD873; --minor: #E0A23C;
    --good: #5CC48A; --good-ink: #0F1524; --good-soft: #15331F;
    --bad: #FF8A80; --bad-soft: #3D1A1A;
    --hot: #FF9A6B; --hot-soft: #3A2016;
    --violet: #C3A6F0; --violet-soft: #2C2140;
    --teal: #5ED3C3; --teal-soft: #12332F;
    --g-m: #5CC48A; --g-n: #C9A0F0; --g-f: #FF9F5A; --g-pl: #FF7A8A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1524; --surface: #172036; --surface-2: #1F2A44; --line: #27324D; --line-strong: #3A4766;
  --ink: #E8ECF5; --muted: #A3ADC2;
  --brand: #1B2B57; --brand-ink: #FFFFFF; --brand-muted: #C9D1E3; --brand-chip: #2A3C6E;
  --accent: #7EA2FF; --accent-ink: #0F1524; --accent-soft: #1E2E5C;
  --sun: #FFC93C; --sun-ink: #14213D; --sun-soft: #3A2F12; --sun-strong: #FFD873; --minor: #E0A23C;
  --good: #5CC48A; --good-ink: #0F1524; --good-soft: #15331F;
  --bad: #FF8A80; --bad-soft: #3D1A1A;
  --hot: #FF9A6B; --hot-soft: #3A2016;
  --violet: #C3A6F0; --violet-soft: #2C2140;
    --teal: #5ED3C3; --teal-soft: #12332F;
    --g-m: #5CC48A; --g-n: #C9A0F0; --g-f: #FF9F5A; --g-pl: #FF7A8A;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
}
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
kbd { padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }

/* Shell */
.shell { display: flex; flex-wrap: wrap; gap: 24px; padding-block: 16px 32px; max-width: 1360px; margin: 0 auto; }
.side { flex: 1 1 220px; max-width: 100%; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; }
.main { flex: 999 1 560px; min-width: 0; padding-top: 12px; }
.wrap { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--sun); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { flex: 1 1 170px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.badge { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--hot); color: var(--surface); font-size: 12px; font-weight: 600; }
.streak { padding: 14px; border-radius: 14px; background: var(--sun-soft); color: var(--sun-strong); display: flex; gap: 10px; align-items: center; }
.streak b { display: block; font-size: 15px; }
.streak span span { font-size: 13px; }
.side-foot { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); padding: 0 6px; }
.side-foot label { display: flex; flex-direction: column; gap: 4px; }
.side-foot select { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; }
.sync { display: flex; align-items: center; gap: 8px; }
.sync i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); flex-shrink: 0; }
.sync.ok i { background: var(--good); }
.sync.err i { background: var(--bad); }

/* Common blocks */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 34px); font-weight: 700; letter-spacing: -0.01em; }
.page-head p { color: var(--muted); max-width: 62ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.card-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row > * { flex: 1 1 320px; }
.pill-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.pill-link:hover { border-color: var(--line-strong); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-good { background: var(--good); color: var(--good-ink); }
.btn-sun { background: var(--sun); color: var(--sun-ink); min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); font-weight: 500; }
.btn-outline:hover { border-color: var(--muted); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-danger { background: var(--bad); color: var(--surface); }
.btn:disabled { opacity: .5; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.bar.hot > i { background: var(--hot); }
.bar.good > i { background: var(--good); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tone-blue { background: var(--accent-soft); color: var(--accent); }
.tone-sun { background: var(--sun-soft); color: var(--sun-strong); }
.tone-green { background: var(--good-soft); color: var(--good); }
.tone-red { background: var(--hot-soft); color: var(--hot); }
.tone-teal { background: var(--teal-soft); color: var(--teal); }
.g-m { color: var(--g-m); } .g-n { color: var(--g-n); } .g-f { color: var(--g-f); } .g-pl { color: var(--g-pl); }
.pic { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 16px; background: var(--surface-2); color: var(--ink); overflow: hidden; }
.pic-sm { width: 56px; height: 56px; } .pic-md { width: 88px; height: 88px; } .pic-lg { width: 132px; height: 132px; }
.pic .emoji { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; line-height: 1; }
.pic-sm .emoji { font-size: 30px; } .pic-md .emoji { font-size: 48px; } .pic-lg .emoji { font-size: 72px; }
.pic svg { width: 84%; height: auto; }
.daytile { display: flex; flex-direction: column; width: 70%; aspect-ratio: 1; max-width: 100%; border-radius: 12%; background: var(--surface); border: 2px solid var(--line-strong); overflow: hidden; }
.daytile i { display: block; height: 26%; background: var(--accent); }
.daytile b { flex: 1; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.6em; }
.pic-sm .daytile b { font-size: 15px; } .pic-md .daytile b { font-size: 24px; } .pic-lg .daytile b { font-size: 36px; }
.freq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10%; width: 56%; }
.freq i { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--teal); }
.freq i.on { background: var(--teal); }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; }
.vchips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 500; }
.vchips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.glegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-weight: 600; align-items: center; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.vcard { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: left; color: var(--ink); min-width: 0; }
.vcard:hover { border-color: var(--line-strong); }
.vcard .vw { font-size: 18px; font-weight: 600; margin-top: 6px; overflow-wrap: anywhere; }
.vcard .ven { font-size: 14px; color: var(--muted); }
.vcard .vpl { font-size: 13px; font-weight: 500; }
.vcard .vex { font-size: 13px; color: var(--muted); font-style: italic; }
.vcard .vok { font-size: 12px; font-weight: 600; color: var(--good); }
.word-q { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.en-word { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.word-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; background: var(--bg); }
.word-card > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wc-word { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
#wordInput { max-width: 420px; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.lcard { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.lcard:hover { border-color: var(--line-strong); }
.lnum { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.lcard .lt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lcard b { font-size: 16px; }
.bookref { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--sun-soft); color: var(--sun-strong); font-size: 12px; font-weight: 600; align-self: flex-start; }
.lesson { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.lesson .lp { font-size: 16px; line-height: 1.65; max-width: 68ch; }
.lesson .tip { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.lesson .tip svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.lesson .bk { padding: 14px 16px; border-radius: 12px; background: var(--sun-soft); color: var(--sun-strong); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.lesson .tbl { font-size: 15px; }
.lesson .tbl td { padding: 8px 10px; }
.exl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.exl li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 16px; }
.exl button, .say-btn { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.back-link:hover { color: var(--ink); }
.vg-reg { background: var(--good-soft); color: var(--good); } .vg-vok { background: var(--sun-soft); color: var(--sun-strong); } .vg-trenn { background: var(--accent-soft); color: var(--accent); } .vg-untrenn { background: var(--teal-soft); color: var(--teal); } .vg-unreg { background: var(--violet-soft); color: var(--violet); } .vg-praet { background: var(--bad-soft); color: var(--bad); }
.konj-q { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; font-family: var(--font-display); font-weight: 700; }
.konj-q .kp { font-size: clamp(28px, 3.4vw, 40px); color: var(--accent); }
.konj-q .kplus { font-size: 24px; color: var(--muted); }
.konj-q .kinf { font-size: clamp(28px, 3.4vw, 40px); }
#konjInput { max-width: 360px; }
.ktbl td { font-size: 16px; }
.ktbl tr.hi td { background: var(--accent-soft); }
.kpre { color: var(--accent); font-weight: 600; }
.verb-detail .tbl-wrap { max-width: 480px; }
.vcard[aria-pressed="true"] { border: 2px solid var(--accent); padding: 13px; }
.path-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
.unit { display: flex; flex-direction: column; gap: 10px; }
.unit-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 16px 20px; border-radius: 16px; }
.unit-head h2 { flex: 1 1 200px; font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--ink); }
.unit-head .unit-n { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.unit-0 { background: var(--accent-soft); color: var(--accent); } .unit-1 { background: var(--teal-soft); color: var(--teal); } .unit-2 { background: var(--violet-soft); color: var(--violet); } .unit-3 { background: var(--hot-soft); color: var(--hot); } .unit-4 { background: var(--sun-soft); color: var(--sun-strong); }
.path { list-style: none; margin: 0; padding: 16px 0 24px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.pstep { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(calc(var(--o) * 1px)); max-width: 200px; text-align: center; }
.pstep.current { margin-top: 26px; }
.pnode { width: 76px; height: 76px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 0 rgba(0, 0, 0, .22); transition: transform .1s ease, box-shadow .1s ease; }
.pnode:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .22); }
.pstep.current .pnode { box-shadow: 0 6px 0 rgba(0, 0, 0, .22), 0 0 0 9px var(--accent-soft); }
.pstep.done .pnode { background: var(--good); color: var(--good-ink); }
.pstep.locked .pnode { background: var(--surface-2); color: var(--muted); box-shadow: 0 6px 0 var(--line); cursor: not-allowed; }
.plabel { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.plabel small { font-size: 12px; font-weight: 500; color: var(--muted); }
.pstep.locked .plabel { color: var(--muted); }
.bubble { position: absolute; top: -34px; padding: 4px 12px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; animation: bob 1.4s ease-in-out infinite; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } .pnode { transition: none; } }
.story { max-width: 780px; margin: 0 auto; padding-block: 24px 0; display: flex; flex-direction: column; gap: 16px; }
.story-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-bottom: 8px; }
.st-line { display: flex; gap: 12px; align-items: flex-start; }
.st-ava { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 26px; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.st-bubble { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.st-line.narr .st-bubble { background: transparent; border: none; border-left: 3px solid var(--line-strong); border-radius: 0; padding: 4px 0 4px 14px; }
.st-who { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.st-text { font-size: 18px; line-height: 1.6; }
.wd { background: none; border: none; padding: 0; font: inherit; color: inherit; border-bottom: 2px dotted var(--accent); border-radius: 0; cursor: help; }
.wd:hover { color: var(--accent); }
.st-en { font-size: 14px; color: var(--muted); }
.st-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.mini { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.mini[aria-pressed="true"] { background: var(--accent-soft); }
.st-q { gap: 12px; }
.st-res { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.st-res.good { color: var(--good); } .st-res.bad { color: var(--bad); }
.st-foot { position: sticky; bottom: 0; padding: 12px 0 calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; z-index: 4; }
.st-end { gap: 12px; }
.tone-ink { background: var(--surface-2); color: var(--ink); }
.en-sentence { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.3; padding: 18px 20px; border-radius: 14px; background: var(--bg); }
.helpw { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.helpw .w { padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.claude-box { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.tone-violet { background: var(--violet-soft); color: var(--violet); }
.empty { padding: 16px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 14px; }

/* Home */
.hero { background: var(--brand); color: var(--brand-ink); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.hero .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sun); }
.hero h2 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; }
.hero p { color: var(--brand-muted); }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .chips span { padding: 6px 12px; border-radius: 999px; background: var(--brand-chip); font-size: 14px; }
.hero .go { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero .go span { color: var(--brand-muted); font-size: 14px; }
.hero kbd { background: transparent; color: var(--brand-ink); border-color: var(--brand-muted); }
.home-top { display: flex; flex-wrap: wrap; gap: 20px; }
.home-top .hero { flex: 2 1 440px; }
.home-top .card { flex: 1 1 260px; }
.big-num { display: flex; align-items: baseline; gap: 8px; }
.big-num b { font-family: var(--font-display); font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; }
.kv { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.kv div { display: flex; justify-content: space-between; }
.kv b { font-variant-numeric: tabular-nums; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.mode { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: left; color: var(--ink); }
.mode:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.mode .ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.mode b { font-size: 16px; }
.mode .d { font-size: 14px; color: var(--muted); }
.mode .m { font-size: 13px; color: var(--muted); margin-top: auto; }
.weak { display: flex; align-items: center; gap: 12px; }
.weak > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.weak .t { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.weak .t span:first-child { font-weight: 500; }
.chapter-badge { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 24px; }

/* Review */
.tiles { display: flex; flex-wrap: wrap; gap: 16px; }
.tiles .card { flex: 1 1 170px; gap: 4px; }
.tiles .card b { font-family: var(--font-display); font-size: 32px; font-variant-numeric: tabular-nums; }
.tiles .due { flex: 2 1 320px; background: var(--brand); color: var(--brand-ink); border: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.tiles .due .card-label { color: var(--sun); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.tiles .due b { font-size: 48px; line-height: 1; }
.tiles .due span { color: var(--brand-muted); }
.mist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mist li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mist .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mist .meta .due-now { color: var(--hot); }
.mist .pair { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; overflow-wrap: anywhere; }
.mist s { color: var(--bad); }
.confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; background: var(--bad-soft); }

/* Chapter */
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics span { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; }
.cheat { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.cheat .card { gap: 10px; }
.cheat h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--line-strong); }
.tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td.v { color: var(--accent); font-weight: 600; }
.ex-list { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ex-list div { display: flex; gap: 10px; }
.ex-list dt, .ex-list .k { min-width: 92px; color: var(--muted); }
.mark { color: var(--accent); font-weight: 600; }

/* Session */
.topbar { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.quit { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 8px; border-radius: 10px; border: none; background: transparent; color: var(--muted); font-weight: 500; }
.quit:hover { background: var(--surface-2); color: var(--ink); }
.prog { flex: 1 1 240px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.prog .bar { flex: 1; height: 10px; }
.prog .bar > i { background: var(--good); transition: width .3s ease; }
.prog-title { font-size: 14px; font-weight: 600; white-space: nowrap; }
.ex-wrap { max-width: 1120px; margin: 0 auto; padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ex { flex: 999 1 560px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 22px; }
.ex-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ex-side .card h2 { font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.ex-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ex-title { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
.ex-sub { color: var(--muted); }
.q { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.player { background: var(--bg); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.player-top { display: flex; align-items: center; gap: 18px; }
.play { width: 68px; height: 68px; flex-shrink: 0; border-radius: 999px; border: none; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; }
.play:hover { filter: brightness(1.15); }
.wave { flex: 1; min-width: 0; height: 52px; display: flex; align-items: center; gap: 4px; overflow: hidden; }
.wave span { width: 4px; flex-shrink: 0; border-radius: 2px; background: var(--line-strong); }
.player.playing .wave span { background: var(--accent); animation: wv 0.9s ease-in-out infinite alternate; }
.player.playing .wave span:nth-child(3n) { animation-delay: -.3s; }
.player.playing .wave span:nth-child(3n+1) { animation-delay: -.6s; }
@keyframes wv { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .player.playing .wave span { animation: none; } .mode:hover { transform: none; } }
.player-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.seg button { min-height: 36px; padding: 0 12px; border: none; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.transcript { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line-strong); font-size: 16px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 500; text-align: left; }
.opt:hover:not(:disabled) { border-color: var(--accent); }
.opt .k { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.opt.is-right { border: 2px solid var(--good); background: var(--good-soft); font-weight: 600; }
.opt.is-right .k { background: var(--good); border-color: var(--good); color: var(--good-ink); }
.opt.is-wrong { border: 2px solid var(--bad); background: var(--bad-soft); }
.opt.is-wrong .k { background: var(--bad); border-color: var(--bad); color: var(--surface); }
.opt:disabled:not(.is-right):not(.is-wrong) { opacity: .6; }
.fb { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px; }
.fb.good { background: var(--good-soft); }
.fb.bad { background: var(--bad-soft); }
.fb > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 280px; }
.fb .head { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.fb.good .head { color: var(--good); }
.fb.bad .head { color: var(--bad); }
.fb .btn kbd { background: transparent; color: inherit; border-color: currentColor; opacity: .75; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field textarea, .field input { width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); font-size: 18px; line-height: 1.5; resize: vertical; }
.field textarea:disabled, .field input:disabled { background: var(--bg); }
.field input { max-width: 260px; }
.umlauts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.umlauts button { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-size: 16px; }
.umlauts button:hover { border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.result { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 16px; background: var(--bg); }
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.result-head h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.tokens { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 10px; font-size: 22px; line-height: 1.2; }
.tk { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 3px; }
.tk small { font-size: 12px; min-height: 15px; }
.tk b { font-weight: 500; padding: 2px 6px; border-radius: 6px; }
.tk-minor b { background: var(--sun-soft); border-bottom: 3px solid var(--minor); }
.tk-minor small { color: var(--sun-strong); text-decoration: line-through; }
.tk-bad b { background: var(--bad-soft); border-bottom: 3px solid var(--bad); }
.tk-bad small { color: var(--bad); }
.tk-bad small.x { text-decoration: line-through; }
.tk-extra b { color: var(--bad); text-decoration: line-through; font-weight: 400; }
.tk-extra small { color: var(--bad); }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.notes li { display: flex; gap: 10px; align-items: baseline; }
.notes li i { width: 10px; height: 10px; flex-shrink: 0; border-radius: 3px; }
.notes li i.minor { background: var(--minor); }
.notes li i.bad { background: var(--bad); }
.legend { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.legend span { display: flex; align-items: center; gap: 10px; }
.legend b { font-weight: 500; padding: 1px 8px; border-radius: 6px; border-bottom: 3px solid var(--line-strong); }
.legend .lm b { background: var(--sun-soft); border-color: var(--minor); }
.legend .lb b { background: var(--bad-soft); border-color: var(--bad); }
.zone { min-height: 96px; padding: 16px; border: 2px dashed var(--line-strong); border-radius: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.zone.ok { border-style: solid; border-color: var(--good); background: var(--good-soft); }
.zone.no { border-style: solid; border-color: var(--bad); background: var(--bad-soft); }
.zone .hint { color: var(--muted); font-size: 14px; }
.tile { min-height: 48px; padding: 0 16px; border: 1px solid var(--line-strong); border-bottom-width: 3px; border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 18px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.tile:hover:not(:disabled) { border-color: var(--accent); }
.tile small { font-size: 11px; font-weight: 600; color: var(--muted); }
.tile.used { visibility: hidden; }
.end-punct { font-size: 22px; font-weight: 600; color: var(--muted); }
.bank { display: flex; flex-wrap: wrap; gap: 10px; }
.sentence { font-size: 22px; line-height: 1.6; }
.blank { display: inline-block; min-width: 90px; border-bottom: 3px solid var(--ink); text-align: center; padding: 0 6px; }
.blank.ok { color: var(--good); border-color: var(--good); font-weight: 600; }
.blank.no { color: var(--bad); border-color: var(--bad); font-weight: 600; }
.clock-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.digital { font-family: var(--font-display); font-size: 56px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.clock { width: 140px; height: 140px; max-width: 100%; color: var(--ink); }
.shortcuts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; font-size: 14px; }
.shortcuts dd { margin: 0; color: var(--muted); }
.rule { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.rule p { color: var(--muted); }
.rule .ex { flex: none; display: block; gap: 0; border: 0; background: var(--bg); padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--brand); color: var(--brand-ink); padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 20; max-width: calc(100vw - 32px); }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--sun-soft); color: var(--sun-strong); font-size: 14px; }

/* Summary */
.sum-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.sum-score b { font-family: var(--font-display); font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; }
.sum-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.sum-list div { padding: 14px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 2px; }
.sum-list b { font-variant-numeric: tabular-nums; font-size: 18px; }

/* ---------------- Chapters page, toggles ---------------- */
.ch-list { display: flex; flex-direction: column; gap: 16px; }
.ch-card.is-cur { border: 2px solid var(--accent); padding: 19px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; min-height: 44px; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }
.side-ch { font-size: 13px; font-weight: 600; color: var(--ink); }
.side-foot select { font-size: 14px; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-close { display: none; width: 44px; height: 44px; border: none; border-radius: 12px; background: var(--surface-2); color: var(--ink); align-items: center; justify-content: center; }
.pf { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.pf-user { font-weight: 600; color: var(--ink); }
.pf a, .pf button { text-align: left; background: none; border: none; padding: 6px 0; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; min-height: 36px; }
.mtop, .tabbar, .scrim { display: none; }
.pstep { transform: translateX(calc(var(--o) * var(--k, 1) * 1px)); }

/* ---------------- Touch devices: no keyboard hints ---------------- */
@media (hover: none) {
  kbd, .kbd-hint, .shortcuts-card { display: none !important; }
}

/* ---------------- Phones ---------------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell { display: block; padding-block: 0 calc(84px + env(safe-area-inset-bottom, 0px)); }
  .main { padding-top: 4px; }
  .wrap { gap: 18px; }
  .mtop { display: flex; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 15; align-items: center; justify-content: space-between; gap: 10px; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); border-bottom: 1px solid var(--line); }
  .mtop .brand { padding: 0; }
  .mtop .brand-mark { width: 32px; height: 32px; font-size: 13px; }
  .mtop .brand-name { font-size: 17px; }
  .mtop-ch { font-size: 13px; font-weight: 600; color: var(--muted); }
  .side { display: none; }
  body.menu-open .side { display: flex; position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); z-index: 40; border-radius: 20px 0 0 20px; overflow-y: auto; padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) 16px; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; border: none; background: rgba(10, 15, 30, .45); }
  .side-close { display: inline-flex; }
  .nav a { flex-basis: 100%; min-height: 48px; font-size: 16px; }
  .side-foot select { font-size: 16px; min-height: 44px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border: none; background: none; color: var(--muted); font-size: 11px; font-weight: 500; text-decoration: none; border-radius: 12px; }
  .tabbar [aria-current="page"] { color: var(--accent); font-weight: 700; background: var(--accent-soft); }
  .tabbar .badge { position: absolute; top: 2px; right: 50%; margin-right: -26px; font-size: 10px; padding: 0 6px; }
  .page-head h1 { font-size: 26px; }
  .page-head { gap: 12px; }
  .page-head > .btn, .page-head > .pill-link { width: 100%; justify-content: center; }
  .hero { padding: 20px; border-radius: 18px; }
  .hero .go .btn { flex: 1 1 100%; }
  .home-top .card, .row > * { flex-basis: 100%; }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mode { padding: 14px; }
  .mode .d { display: none; }
  .path-card .btn { flex: 1 1 auto; }
  .tiles .card { flex-basis: calc(50% - 8px); }
  .topbar-in { gap: 8px; padding-block: 8px; }
  .prog-title { display: none; }
  .ex-wrap { padding-block: 14px 28px; gap: 14px; }
  .ex { padding: 18px 16px; border-radius: 16px; gap: 18px; }
  .ex-side .card { padding: 16px; }
  .opts { grid-template-columns: 1fr; gap: 10px; }
  .actions { justify-content: stretch; }
  .actions .btn, .fb .btn { flex: 1 1 100%; }
  .fb { padding: 16px; }
  .player { padding: 14px; }
  .player-top { gap: 12px; }
  .play { width: 60px; height: 60px; }
  .player-ctrl .btn-ghost { margin-left: 0 !important; }
  .seg button { padding: 0 10px; font-size: 13px; }
  .tokens { font-size: 19px; gap: 6px 8px; }
  .sentence { font-size: 19px; }
  .digital { font-size: 44px; }
  .clock { width: 120px; height: 120px; }
  .tile { min-height: 46px; font-size: 16px; padding: 0 12px; }
  .zone { padding: 12px; min-height: 80px; }
  .field textarea, .field input { font-size: 17px; }
  .en-sentence { font-size: 21px; padding: 14px 16px; }
  .word-q { gap: 14px; }
  .pic-lg { width: 104px; height: 104px; } .pic-lg .emoji { font-size: 56px; }
  .konj-q .kp, .konj-q .kinf { font-size: 30px; }
  .vgrid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
  .vcard { padding: 12px; }
  .vcard .vex { display: none; }
  .lgrid { grid-template-columns: 1fr; }
  .cheat, .lesson { gap: 14px; }
  .lesson .lp { font-size: 16px; }
  .pstep { --k: .55; max-width: 170px; }
  .pnode { width: 68px; height: 68px; }
  .unit-head { padding: 14px 16px; }
  .story { padding-block: 14px 0; gap: 12px; }
  .st-text { font-size: 17px; }
  .st-ava { width: 38px; height: 38px; font-size: 22px; }
  .st-foot .btn { flex: 1 1 100%; }
  .confirm .btn { flex: 1 1 auto; }
  .tbl { font-size: 14px; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------------- Login, password and admin pages ---------------- */
.boot-msg { padding: 40px 0; text-align: center; color: var(--muted); }
.auth { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding-block: 24px; }
.auth-card { width: 100%; max-width: 420px; gap: 18px; padding: 28px 24px; }
.auth-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.auth-top .brand { padding: 0; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .field input { max-width: none; font-size: 17px; }
.auth-form .btn { width: 100%; min-height: 48px; }
.auth-err { padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-size: 14px; }
.admin { max-width: 960px; margin: 0 auto; padding-block: 24px 48px; display: flex; flex-direction: column; gap: 20px; }
.admin .field input { max-width: none; }
.admin-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.pw-row { display: flex; gap: 8px; }
.pw-row input { flex: 1; min-width: 0; }
.users { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.users li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.users .who { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.users .who b { font-size: 17px; }
.users .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.users .acts .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
.cred { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: var(--good-soft); }
.cred code { font-size: 17px; font-weight: 600; background: var(--surface); padding: 2px 8px; border-radius: 6px; }
