/* Deutsch B1 — направление D «Мягкий». Цветовые схемы — assets/palettes.css. */
[hidden] { display: none !important; }
:root {
  /* direction D «Мягкий» (направление, 14.11.2026) · схема «Слива» по умолчанию; остальные — palettes.css */
  --paper: #f5f2f5; --surface: #ffffff; --fill: #ece6ec; --paper-2: #ece6ec;
  --ink: #1c1c1e; --ink-2: #3c3c43; --muted: #6c6c72; --rule: #e5e5ea; --rule-strong: #c7c7cc;
  --accent: #8a3b7e; --accent-ink: #fff; --accent-soft: #f4e6f1; --ok: #2e7a46; --bad: #c0362c; --gold: #8a6000;
  --m: #1a50ad; --f: #c03318; --n: #03736a; --pl: #7a5a12; --mark: #fff1a8;
  --serif: "Onest", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --sans: "Onest", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --measure: 42rem; --r-s: 10px; --r: 14px; --r-l: 20px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 4px 16px rgb(0 0 0 / .06);
}
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000; --surface: #1c1c1e; --fill: #2c2c2e; --paper-2: #2c2c2e;
    --ink: #f2f2f7; --ink-2: #c7c7cc; --muted: #98989f; --rule: #38383a; --rule-strong: #545458;
    --accent: #a594f9; --accent-ink: #1c1c1e; --accent-soft: #2a2546; --ok: #7cc590; --bad: #f08a8a; --gold: #e0b44a;
    --m: #6aa2f2; --f: #f86a4a; --n: #5ee6c6; --pl: #e0b070; --mark: #4a4115; --shadow: none;
  }
}
:root[data-theme="dark"] {
    --paper: #000; --surface: #1c1c1e; --fill: #2c2c2e; --paper-2: #2c2c2e;
    --ink: #f2f2f7; --ink-2: #c7c7cc; --muted: #98989f; --rule: #38383a; --rule-strong: #545458;
    --accent: #a594f9; --accent-ink: #1c1c1e; --accent-soft: #2a2546; --ok: #7cc590; --bad: #f08a8a; --gold: #e0b44a;
    --m: #6aa2f2; --f: #f86a4a; --n: #5ee6c6; --pl: #e0b070; --mark: #4a4115; --shadow: none;
  }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--serif); font-feature-settings: "kern", "liga"; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 2.1rem; line-height: 1.15; margin: .1em 0 .35em; }
h2 { font-size: 1.3rem; margin: 0 0 .5em; }
h3 { font-size: 1.08rem; margin: 1.2em 0 .4em; }
h1 small, h2 small { color: var(--muted); font-weight: 400; font-size: .7em; font-family: var(--sans); letter-spacing: 0; }
small { font-size: .82em; }
.muted { color: var(--muted); }
.lead { color: var(--ink-2); font-size: 1.12rem; font-style: italic; margin-top: 0; }
kbd { font-family: var(--sans); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 0 .35em; font-size: .8em; }
/* UI chrome is sans, reading text is serif */
.top, .btn, button, input, select, .pill, .tag, .stats, .eyebrow, .steps, .score, .lmeta, .meta, .kbd, table.t th, .umlauts, .grades, .ex-num, #toast, .countdown, .streak { font-family: var(--sans); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 22px; padding: 12px max(20px, calc((100vw - 64rem) / 2)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); font-size: .92rem; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.flag { width: 14px; height: 10px; border-radius: 1px; background: linear-gradient(#222 0 33%, #c00 33% 66%, #e8b400 66%); }
#nav { display: flex; gap: 22px; flex: 1; }
#nav a { padding: 4px 0; color: var(--ink-2); text-decoration: none; border-bottom: 1.5px solid transparent; }
#nav a i { display: none; }
#nav a:hover { color: var(--ink); }
#nav a.active { color: var(--ink); border-bottom-color: var(--accent); }
.icon-btn { color: var(--ink-2); text-decoration: none; font-size: 1.25rem; line-height: 1; padding: 2px 4px; }
.icon-btn:hover { color: var(--ink); }
.streak { display: flex; align-items: center; gap: 8px; color: var(--ink-2); white-space: nowrap; text-decoration: none; font-size: .88rem; }
.streak b { color: var(--ink); }
.streak svg { transform: rotate(-90deg); }
.streak .track { stroke: var(--rule-strong); } .streak .val { stroke: var(--accent); } .streak.done .val { stroke: var(--ok); }
main { max-width: var(--measure); margin: 0 auto; padding: 36px 20px 96px; }
/* session (focus) mode: no navigation, only ✕ */
.close, .ftitle { display: none; }
body.focus .close { display: block; color: var(--ink); text-decoration: none; font-size: 1.15rem; line-height: 1; padding: 4px 6px 4px 0; }
body.focus .ftitle { display: block; flex: 1; color: var(--ink-2); }
body.focus .logo, body.focus #nav, body.focus .icon-btn, body.focus .tabbar { display: none !important; }
/* phone tab bar */
.tabbar { display: none; }
@media (max-width: 820px) {
  body { font-size: 16.5px; }
  .top { gap: 14px; padding: 10px 16px; }
  .logo { flex: 1; }
  #nav { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; justify-content: space-around; padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .7rem; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 64px; padding: 4px 0; color: var(--muted); text-decoration: none; }
  .tabbar a i { font-style: normal; font-size: 1.2rem; line-height: 1.2; }
  .tabbar a.active { color: var(--accent); }
  main { padding: 22px 16px calc(96px + env(safe-area-inset-bottom)); }
  h1 { font-size: 1.65rem; }
}
/* launcher blocks: Today, Учить, Экзамен, План */
.meta-line { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--sans); font-size: .88rem; color: var(--muted); margin: -4px 0 22px; }
.meta-line .ok { color: var(--ok); }
.cta { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 16px 20px; margin: 0 0 26px; background: var(--ink); color: var(--paper); border-radius: 10px; text-decoration: none; font-family: var(--sans); }
.cta small { grid-column: 1; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; opacity: .7; }
.cta b { grid-column: 1; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 2px 0; }
.cta span { grid-column: 1; font-size: .85rem; opacity: .7; }
.cta i { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-style: normal; font-size: 1.5rem; }
.cta:hover { opacity: .93; }
.cta.done { background: var(--paper-2); color: var(--ink); }
.sec { font-family: var(--sans); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 26px 0 6px; }
.queue { list-style: none; margin: 0 0 8px; padding: 0; }
.queue li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.queue li > a { flex: 1; color: var(--ink); text-decoration: none; }
.queue li > a:hover { color: var(--accent); }
.queue .m { font-family: var(--sans); font-size: .82rem; color: var(--muted); white-space: nowrap; }
.queue .chk { width: 18px; height: 18px; flex: 0 0 auto; border: 1.5px solid var(--rule-strong); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-family: var(--sans); }
.queue input[type=checkbox] { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--ink); }
.queue li.done .chk { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.queue li.done .chk::after { content: "✓"; }
.queue li.done > a { color: var(--muted); text-decoration: line-through; }
.queue li:not(.done) ~ li:not(.done) > a { font-weight: 400; }
.row-link { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.row-link > span { flex: 1; min-width: 0; }
.row-link small { display: block; color: var(--muted); font-family: var(--sans); }
.row-link i { font-style: normal; color: var(--muted); font-family: var(--sans); font-size: 1.2rem; }
.row-link:hover b, .row-link:hover > span { color: var(--accent); }
.row-link.quiet { color: var(--ink-2); font-size: .92rem; }
.seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 8px; padding: 2px; margin: 0 0 18px; font-family: var(--sans); font-size: .9rem; }
.seg a { padding: 5px 16px; border-radius: 6px; color: var(--ink-2); text-decoration: none; }
.seg a.on { background: var(--ink); color: var(--paper); }
.summary { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: .92rem; }
.summary .ln { display: flex; justify-content: space-between; gap: 12px; }
.summary .ln span { color: var(--ink-2); }
.summary b { font-variant-numeric: tabular-nums; }
.pass { color: var(--ok); } .fail { color: var(--bad); }
.next-block { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 22px 0 6px; font-family: var(--sans); font-size: .9rem; }
.next-block .btn { white-space: normal; text-align: center; }
.logmin { margin-top: 12px; align-items: center; font-family: var(--sans); font-size: .9rem; }
.tablewrap { overflow-x: auto; }
mark { background: var(--mark); color: inherit; }

/* ---------- sections («card» = раздел страницы, без коробок) ---------- */
.card { padding: 22px 0 20px; margin: 0; border-top: 1px solid var(--rule); }
main > .card:first-child, .hero + .card { border-top: 0; }
.card > h2:first-child { font-size: .74rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: .9em; }
.card > h2:first-child small { text-transform: none; letter-spacing: 0; font-size: 1em; }
.card.theory > h2:first-child, #pre > h2, #ex > h2, #task > h2, #lcards > h2 { font-family: var(--serif); font-size: 1.35rem; text-transform: none; letter-spacing: -.01em; color: var(--ink); }
.muted-card { color: var(--ink-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--rule); }
.grid2 > .card { border-top: 0; }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } .grid2 > .card + .card { border-top: 1px solid var(--rule); } }
.row { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.row.wrap { flex-wrap: wrap; }

/* ---------- today ---------- */
.hero { display: flex; justify-content: space-between; align-items: center; gap: 20px 28px; margin-bottom: 22px; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.hero h1 { margin: 0; }
.hero-side { display: flex; gap: 26px; align-items: center; }
.ring { position: relative; width: 84px; height: 84px; flex: 0 0 auto; }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: var(--rule); } .ring .val { stroke: var(--accent); transition: stroke-dashoffset .6s; }
.ring.done .val { stroke: var(--ok); }
.ring .lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--sans); line-height: 1.1; }
.ring .lbl b { font-size: 1.2rem; } .ring .lbl span { font-size: .66rem; color: var(--muted); }
.countdown, .flame { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; font-family: var(--sans); }
.countdown b, .flame b { font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: var(--ink); font-weight: 600; }
.countdown span, .flame span { font-size: .76rem; color: var(--muted); }
.week-dots { display: flex; gap: 6px; margin-top: 4px; }
.week-dots i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--rule-strong); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: .62rem; font-family: var(--sans); color: var(--muted); }
.week-dots i.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.week-dots i.today { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--accent); }
.stats { display: flex; gap: 28px; margin-bottom: 14px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; font-weight: 600; }
.stats span { font-size: .75rem; color: var(--muted); }
.bar { height: 3px; background: var(--rule); overflow: hidden; margin: 8px 0; }
.bar i { display: block; height: 100%; background: var(--ink); transition: width .4s; }
.banner { border-left: 2px solid var(--gold); padding: 6px 0 6px 14px; margin: 6px 0 22px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--ink-2); }
.banner.ok { border-left-color: var(--ok); }
.warn-inline { color: var(--bad); font-size: .92rem; }
.next { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.2rem; }
.next small { font-family: var(--sans); color: var(--muted); white-space: nowrap; }
.goals { list-style: none; padding: 0; margin: 0; }
.goals li { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.goals li:last-child { border-bottom: 0; }
.goals label, .next label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.goals a, .next a { color: var(--ink); text-decoration-color: var(--rule-strong); }
.goals a:hover, .next a:hover { text-decoration-color: var(--accent); }
input[type=checkbox] { accent-color: var(--ink); width: 16px; height: 16px; margin-top: 6px; flex: 0 0 auto; }
.goals input:checked + span, .goals input:checked + span a { color: var(--muted); text-decoration: line-through; }
.day { padding-left: 1.2em; margin: 0; } .day li { margin: 3px 0; }
.pill { display: inline-block; border: 1px solid var(--rule-strong); border-radius: 99px; padding: 1px 10px; font-size: .8rem; color: var(--ink-2); }
.tag { display: inline-block; font-size: .72rem; padding: 0 7px; border-radius: 99px; border: 1px solid var(--rule-strong); color: var(--ink-2); white-space: nowrap; font-family: var(--sans); }
.tag.ok { border-color: var(--ok); color: var(--ok); }
.pass { color: var(--ok); font-weight: 600; } .fail { color: var(--bad); font-weight: 600; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 9px 18px; border-radius: 6px; font-size: .92rem; font-weight: 500; cursor: pointer; text-decoration: none; line-height: 1.3; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: .35; cursor: not-allowed; background: var(--ink); border-color: var(--ink); }
.btn.small { padding: 5px 12px; font-size: .84rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.wide { width: 100%; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 2px 0; text-align: left; }
input[type=text], input[type=number], input[type=date], input[type=search], input:not([type]), select, textarea {
  font-size: .95rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 6px; padding: 7px 10px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 1px; border-color: var(--accent); }
textarea { width: 100%; resize: vertical; font-family: var(--serif); font-size: 1.02rem; line-height: 1.5; }
input[type=search] { width: 100%; margin-bottom: 14px; }
.settings { display: grid; gap: 10px; font-family: var(--sans); font-size: .92rem; }
.settings label { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.settings label.inline { justify-content: flex-start; }

/* ---------- german markup ---------- */
.de { font-weight: 600; }
.ru { color: var(--muted); font-style: italic; }
b.m, .m { color: var(--m); } b.f, .f { color: var(--f); } b.n, .n { color: var(--n); } b.pl, .pl { color: var(--pl); }
mark { background: var(--mark); color: inherit; padding: 0 2px; border-radius: 2px; }
.speak { background: none; border: 0; cursor: pointer; font-size: .78em; padding: 0 3px; opacity: .45; vertical-align: baseline; filter: grayscale(1); }
.speak:hover { opacity: 1; filter: none; }
.ex { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; padding: 6px 0; border-bottom: 1px dotted var(--rule-strong); }
.ex:last-child { border-bottom: 0; }
.rule, .hack, .warn, .ru-map { padding: 4px 0 4px 18px; margin: 18px 0; border-left: 2px solid; }
.rule::before, .hack::before, .warn::before, .ru-map::before { display: block; font-family: var(--sans); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-bottom: 2px; }
.rule { border-color: var(--ink); } .rule::before { content: "Правило"; color: var(--ink-2); }
.hack { border-color: var(--gold); } .hack::before { content: "Лайфхак"; color: var(--gold); }
.warn { border-color: var(--bad); } .warn::before { content: "Типичная ошибка"; color: var(--bad); }
.ru-map { border-color: var(--n); } .ru-map::before { content: "Как в русском"; color: var(--n); }
table.t { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: .95rem; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
table.t th, table.t td { padding: 6px 12px 6px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
table.t tr:last-child td { border-bottom: 0; }
table.t th { font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.card, .page { overflow-x: auto; }
details { margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
.page h2 { margin-top: 1.8em; padding-top: .8em; border-top: 1px solid var(--rule); }

/* ---------- lessons ---------- */
.back { display: inline-block; margin-bottom: 14px; text-decoration: none; font-family: var(--sans); font-size: .86rem; color: var(--muted); }
.lessons { display: flex; flex-direction: column; }
.lesson-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover b { color: var(--accent); }
.lesson-row b { font-size: 1.08rem; font-weight: 600; }
.lesson-row small { display: block; color: var(--muted); font-style: italic; }
.lmeta { font-size: .76rem; color: var(--muted); text-align: right; }
.lid { font-family: var(--sans); font-weight: 600; font-size: .8rem; color: var(--accent); letter-spacing: .04em; }
.lid.big { font-size: .82rem; display: block; margin-bottom: 6px; }
.lesson-head h1 { margin: 0 0 .2em; }
.lesson-head .lead { margin: 0; }
.lesson-meta { display: flex; gap: 18px; color: var(--muted); margin: 12px 0 8px; flex-wrap: wrap; font-family: var(--sans); font-size: .82rem; }
.exam-link { border-left: 2px solid var(--accent); padding-left: 14px; color: var(--ink-2); }
.steps { position: sticky; top: 51px; z-index: 5; display: flex; gap: 18px; overflow-x: auto; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 10px 0; margin: 4px 0 6px; border-bottom: 1px solid var(--rule); font-size: .82rem; }
.steps a { white-space: nowrap; color: var(--ink-2); text-decoration: none; }
.steps a:hover { color: var(--accent); }
.soon { padding-left: 0; list-style: none; color: var(--muted); } .soon li { padding: 4px 0; }
.lesson-done { display: flex; gap: 14px; align-items: center; margin: 28px 0; flex-wrap: wrap; }
.checklist { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; }
.de-block { background: var(--paper-2); padding: 14px 18px; border-radius: 4px; }
.copyable { white-space: pre-wrap; line-height: 1.55; }
.copy-btn { margin: 4px 0; }

/* ---------- exercises ---------- */
.umlauts { display: flex; gap: 2px; margin: 6px 0 10px; position: sticky; top: 96px; z-index: 4; width: fit-content; background: var(--paper); padding: 3px; border: 1px solid var(--rule-strong); border-radius: 6px; }
.umlauts button { min-width: 32px; padding: 3px 7px; border: 0; background: transparent; color: var(--ink); border-radius: 4px; cursor: pointer; font-size: .95rem; }
.umlauts button:hover { background: var(--paper-2); }
.exercise { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ex-num { flex: 0 0 28px; font-size: .78rem; font-weight: 600; color: var(--muted); padding-top: 4px; }
.exercise.ok .ex-num { color: var(--ok); } .exercise.ok .ex-num::after { content: "✓"; margin-left: 2px; }
.exercise.bad .ex-num { color: var(--bad); } .exercise.bad .ex-num::after { content: "✗"; margin-left: 2px; }
.ex-body { flex: 1; min-width: 0; }
.ex-q { margin-bottom: 10px; font-size: 1.05rem; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1px solid var(--rule-strong); background: transparent; color: var(--ink); border-radius: 6px; padding: 6px 14px; cursor: pointer; font-family: var(--serif); font-size: 1rem; }
.opt:hover { border-color: var(--ink); }
.opt.right { border-color: var(--ok); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.opt.wrong { border-color: var(--bad); color: var(--bad); text-decoration: line-through; }
.gapline { line-height: 2.2; }
input.gap { padding: 1px 6px; margin: 0 3px; min-width: 4ch; line-height: 1.3; height: 1.85em; border: 0; border-bottom: 1.5px solid var(--ink-2); border-radius: 0; background: transparent; font-family: var(--serif); font-size: 1.02rem; font-weight: 600; }
input.gap:focus { outline: 0; border-bottom-color: var(--accent); }
input.right { border-color: var(--ok) !important; color: var(--ok); }
input.wrong { border-color: var(--bad) !important; color: var(--bad); text-decoration: line-through; }
.correction { color: var(--ok); font-weight: 600; margin-right: 6px; }
.order-line { min-height: 46px; border-bottom: 1.5px solid var(--ink-2); padding: 6px 0; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.order-bank { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tok { border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); border-radius: 5px; padding: 5px 11px; cursor: pointer; font-family: var(--serif); font-size: 1rem; font-weight: 600; }
.tok:hover { border-color: var(--ink); }
.order-line .tok { background: var(--paper-2); border-color: transparent; }
.feedback { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--rule-strong); }
.exercise.ok .feedback { border-left-color: var(--ok); } .exercise.bad .feedback { border-left-color: var(--bad); }
.exercise.ok .feedback > b:first-child { color: var(--ok); font-family: var(--sans); font-size: .85rem; }
.exercise.bad .feedback > b:first-child { color: var(--bad); font-family: var(--sans); font-size: .85rem; }
.explain { margin-top: 4px; color: var(--ink-2); }
.note { font-size: .9rem; color: var(--pl); }
.models { margin-top: 6px; }
.selfcheck .row { flex-wrap: wrap; font-family: var(--sans); font-size: .9rem; }
.score { margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* ---------- flashcards ---------- */
.cards-wrap { max-width: 38rem; margin: 0 auto; }
.cards-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.cards-top select { max-width: 270px; font-size: .85rem; }
.flash { background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 26px 26px 22px; min-height: 360px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 0 var(--rule), 0 14px 30px -20px rgba(0,0,0,.3); }
.flash.done { align-items: center; justify-content: center; text-align: center; }
.flash .meta { display: flex; gap: 12px; font-size: .72rem; color: var(--muted); align-items: center; text-transform: uppercase; letter-spacing: .06em; }
.badge { color: var(--gold); font-weight: 700; }
.flash .front, .flash .back { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.flash .back { border-top: 1px solid var(--rule); padding-top: 16px; }
.flash .big { font-size: 2rem; line-height: 1.25; font-weight: 600; }
.flash .big.ru { font-weight: 400; font-style: normal; color: var(--ink); }
.flash .hint { color: var(--muted); font-size: .9rem; font-style: italic; }
.flash .pl { font-size: .95rem; } .flash .note { color: var(--muted); font-size: .92rem; }
.big-speak { font-size: 1.1rem; }
.flash .actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.grades { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grade { border: 1px solid var(--rule-strong); background: transparent; border-radius: 6px; padding: 9px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--ink); }
.grade b { font-weight: 600; font-size: .92rem; } .grade small { color: var(--muted); font-size: .74rem; }
.grade.again b { color: var(--bad); } .grade.hard b { color: var(--pl); } .grade.good b { color: var(--ok); } .grade.easy b { color: var(--m); }
.grade:hover { border-color: var(--ink); }
.kbd { text-align: center; font-size: .78rem; margin-top: 14px; }
@media (max-width: 820px) { .kbd { display: none; } .flash { padding: 20px 16px; min-height: 320px; } .flash .big { font-size: 1.6rem; } }

/* ---------- vocab ---------- */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); column-gap: 28px; }
.topic { padding: 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.topic:hover b { color: var(--accent); }
.topic b { font-weight: 600; } .topic small { color: var(--muted); font-family: var(--sans); }
table.vocab td:first-child { white-space: nowrap; }
@media (max-width: 820px) { table.vocab td:nth-child(3), table.vocab th:nth-child(3) { display: none; } table.vocab td:first-child { white-space: normal; } }

/* ---------- plan ---------- */
.week { border-bottom: 1px solid var(--rule); padding: 8px 0; margin: 0; }
.week summary { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: baseline; list-style: none; font-weight: 400; }
.week summary::-webkit-details-marker { display: none; }
.week summary b { font-weight: 600; }
.week summary small { display: block; color: var(--muted); font-family: var(--sans); }
.wnum { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--muted); }
.week.current .wnum, .week.current summary b { color: var(--accent); }
.week .goals { margin: 8px 0 6px 46px; }
.wdone { color: var(--muted); font-size: .8rem; font-family: var(--sans); }

/* ---------- hören ---------- */
.tracks { list-style: none; padding: 0; columns: 2; }
@media (max-width: 820px) { .tracks { columns: 1; } }
.player audio { width: 100%; margin: 10px 0; }
.exam-player .big { font-size: 1.5rem; font-weight: 600; margin: 12px 0; }
.modes { font-family: var(--sans); font-size: .92rem; }
.modes label { margin-right: 16px; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 9px 18px; border-radius: 6px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hero-side { flex-wrap: wrap; row-gap: 14px; }
.flash .meta span { white-space: nowrap; }
@media (max-width: 820px) {
  .hero-side { gap: 14px 22px; width: 100%; }
  .ring { width: 72px; height: 72px; } .ring svg { width: 72px; height: 72px; }
  .countdown b, .flame b { font-size: 1.9rem; }
  .flash .meta { flex-wrap: wrap; }
}
.mockform label.pt { display: flex; flex-direction: column; font-family: var(--sans); font-size: .76rem; color: var(--muted); gap: 2px; }
.mockform label.pt input { width: 6.5em; }
/* timer & writing trainer */
.timer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; padding: 8px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.timer .tlabel { font-family: var(--sans); font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.timer .tval { font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 1.5rem; min-width: 4ch; }
.timer.ending .tval { color: var(--accent); } .timer.over .tval { color: var(--bad); }
.timer-slot .timer { position: sticky; top: 52px; background: var(--paper); z-index: 4; }
.situation p { margin: .4em 0; }
.leitpunkte { margin: .4em 0 0; }
.leitpunkte li { margin: 3px 0; }
.prompt { max-height: 240px; overflow: auto; font-family: var(--sans); font-size: .85rem; }
/* article trainer */
.art-flash { min-height: 300px; }
.art-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; }
.art-btn { border: 1.5px solid var(--rule-strong); background: transparent; border-radius: 8px; padding: 14px 4px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; font-family: var(--serif); }
.art-btn b { font-size: 1.5rem; } .art-btn small { font-family: var(--sans); color: var(--muted); font-size: .7rem; }
.art-btn.m b { color: var(--m); } .art-btn.f b { color: var(--f); } .art-btn.n b { color: var(--n); }
.art-btn:hover:not(:disabled) { border-color: var(--ink); }
.art-btn.right { border-color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok); }
.art-btn.wrong { border-color: var(--bad); opacity: .6; }
.art-fb { text-align: center; } .art-fb .hack, .art-fb .warn { text-align: left; }
.art-tips ul { padding-left: 1.2em; } .art-tips li { margin: 6px 0; }
.cards-top .row { flex-wrap: wrap; }
@media (max-width: 820px) { .cards-top select { max-width: 100%; flex: 1 1 100%; } }
@media (max-width: 820px) { .cards-top .row { width: 100%; } .cards-top select { width: 100%; min-width: 0; } }


/* =====================================================================
   Direction D «Мягкий»: серый фон, белые карточки, скругления, мягкие тени,
   фиолетовый акцент. Слой поверх базовых правил выше.
   ===================================================================== */
body { font: 17px/1.55 var(--sans); }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: 2rem; }
.lead { font-style: normal; color: var(--muted); font-size: 1.05rem; }
.ru { font-style: normal; }
.eyebrow { color: var(--muted); }
.top { border-bottom: 0; background: color-mix(in srgb, var(--paper) 85%, transparent); }
.logo { font-family: var(--sans); }
#nav { gap: 4px; }
#nav a { padding: 6px 14px; border-radius: 999px; border-bottom: 0; }
#nav a.active { background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.tabbar { border-top: 0; box-shadow: 0 -1px 0 var(--rule); }

/* surfaces */
.card, .summary, .queue, .lessons, .week, .flash, .exercise, .step-foot { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.card { padding: 18px 20px; margin: 0 0 14px; border-top: 0; }
.card > h2:first-child { color: var(--muted); }
.card.theory > h2:first-child { font-family: var(--sans); }
.grid2 { column-gap: 14px; border-top: 0; }
.grid2 > .card + .card { border-top: 0 !important; }
.summary { padding: 16px 20px; border: 0; }
.queue { padding: 0 16px; }
.queue li:last-child { border-bottom: 0; }
.queue .chk { border-radius: 50%; width: 22px; height: 22px; border-color: var(--rule-strong); }
.queue li.done .chk { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.queue input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); }
.lessons { padding: 0 16px; }
.week { padding: 12px 16px; margin: 0 0 8px; border-bottom: 0; }
.row-link { background: var(--surface); border-radius: var(--r-s); box-shadow: var(--shadow); padding: 13px 16px; margin: 0 0 8px; border-bottom: 0; }
.row-link.quiet { background: transparent; box-shadow: none; }
.sec { margin: 28px 0 10px; }
.topics { gap: 10px; }
.topic { background: var(--surface); border-radius: var(--r-s); box-shadow: var(--shadow); padding: 12px 14px; border-bottom: 0; }
.topic .bar { margin-bottom: 0; }

/* call to action */
.cta { background: var(--accent); color: var(--accent-ink); border-radius: var(--r-l); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); padding: 18px 22px; }
.cta b { font-family: var(--sans); }
.cta small, .cta span { opacity: .85; }
.cta.done { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* controls */
.btn { background: var(--accent); border: 0; color: var(--accent-ink); border-radius: 12px; padding: 12px 20px; font-weight: 600; font-size: .95rem; }
.btn:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn:disabled, .btn:disabled:hover { background: var(--accent); opacity: .35; }
.btn.small { padding: 7px 14px; border-radius: 10px; font-size: .86rem; }
.btn.ghost { background: var(--fill); color: var(--ink); border: 0; }
.btn.ghost:hover { background: color-mix(in srgb, var(--fill) 85%, var(--ink)); }
.btn.danger { background: transparent; border: 1px solid var(--bad); }
.seg { background: var(--fill); border: 0; border-radius: 10px; padding: 3px; }
.seg a { border-radius: 8px; padding: 6px 18px; }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
input[type=text], input[type=number], input[type=date], input[type=search], input:not([type]), select, textarea { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-s); padding: 10px 12px; }
input[type=search] { background: var(--surface); box-shadow: var(--shadow); border-color: transparent; }
textarea { font-family: var(--sans); }
input[type=checkbox] { accent-color: var(--accent); }
.pill, .tag { border: 0; background: var(--fill); }
.tag.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.bar { height: 6px; border-radius: 3px; background: var(--fill); }
.bar i { background: var(--accent); border-radius: 3px; }

/* reading blocks */
.rule, .hack, .warn, .ru-map { border-left: 0; border-radius: 12px; padding: 12px 16px; background: color-mix(in srgb, var(--c) 9%, transparent); }
.rule { --c: var(--ink); } .hack { --c: var(--gold); } .warn { --c: var(--bad); } .ru-map { --c: var(--n); }
.banner { border-left: 0; border-radius: 12px; padding: 10px 14px; background: color-mix(in srgb, var(--gold) 12%, transparent); }
.banner.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); }
.exam-link { border-left: 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); }
.de-block { background: var(--fill); border-radius: 12px; }
table.t { border-top: 0; border-bottom: 0; }
table.t th { border-bottom: 1px solid var(--rule-strong); }
.page h2 { border-top: 0; }
.ex { border-bottom: 1px solid var(--rule); }

/* exercises */
.exercise { padding: 16px 18px; margin: 0 0 10px; border-bottom: 0; }
.opt, .tok { border-radius: 10px; background: var(--fill); border-color: transparent; font-family: var(--sans); padding: 8px 14px; }
.opt:hover, .tok:hover { border-color: var(--rule-strong); }
.opt.right { background: color-mix(in srgb, var(--ok) 12%, transparent); }
.opt.wrong { background: color-mix(in srgb, var(--bad) 10%, transparent); }
input.gap { font-family: var(--sans); background: transparent; }
.order-line .tok { background: var(--accent-soft); }
.feedback { border-left: 0; padding: 10px 14px; border-radius: 10px; background: var(--fill); }
.exercise.ok .feedback { background: color-mix(in srgb, var(--ok) 10%, transparent); }
.exercise.bad .feedback { background: color-mix(in srgb, var(--bad) 8%, transparent); }
.umlauts { background: var(--surface); border: 0; box-shadow: var(--shadow); border-radius: 10px; }

/* flashcards */
.flash { border: 0; border-radius: var(--r-l); box-shadow: 0 2px 6px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .10); }
.grade { border: 0 !important; background: var(--surface); box-shadow: var(--shadow); border-radius: 12px; }
.art-btn { background: var(--surface); border: 0; box-shadow: var(--shadow); border-radius: 14px; font-family: var(--sans); }
#toast { border-radius: 12px; }

/* lesson steps */
.lprog { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: .85rem; color: var(--muted); margin: 0 0 18px; }
.lprog .bar { flex: 1; margin: 0; }
.step-title { margin: 0 0 14px; font-size: 1.5rem; }
.step-list { list-style: none; padding: 0 16px; margin: 0 0 14px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.step-list li { border-bottom: 1px solid var(--rule); }
.step-list li:last-child { border-bottom: 0; }
.step-list a { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; color: var(--ink); text-decoration: none; }
.step-list a:hover b { color: var(--accent); }
.step-list .n { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 600; font-family: var(--sans); background: var(--fill); color: var(--ink-2); }
.step-list li.done .n { background: var(--accent); color: var(--accent-ink); }
.step-list li.cur .n { box-shadow: 0 0 0 2px var(--accent); }
.step-list b { font-weight: 500; }
.step-list small { font-family: var(--sans); color: var(--muted); white-space: nowrap; }
.step-body > .card:first-child { margin-top: 0; }
.step-foot { position: sticky; bottom: 12px; display: flex; gap: 10px; align-items: center; padding: 10px; margin-top: 18px; z-index: 5; }
.step-foot .btn.next { flex: 1; text-align: center; }
@media (max-width: 820px) {
  h1 { font-size: 1.7rem; }
  .card { padding: 16px; }
  body.focus main { padding-bottom: 40px; }
  .step-foot { bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* card context: example sentence, cloze, chips */
.flash .ctx { font-size: 1.05rem; line-height: 1.45; max-width: 34rem; color: var(--ink-2); }
.flash button.ctx { background: var(--fill); border: 0; border-radius: 12px; padding: 10px 14px; font-family: var(--sans); cursor: pointer; text-align: center; }
.flash button.ctx:hover { background: color-mix(in srgb, var(--fill) 80%, var(--accent)); }
.flash button.ctx::after { content: " 🔊"; font-size: .8em; opacity: .55; }
.flash .ctx.ru { color: var(--muted); font-size: .98rem; }
.flash .ctx.cloze { background: var(--fill); border-radius: 12px; padding: 10px 14px; }
.flash .tw { color: var(--accent); font-weight: 600; }
.flash .gapw { color: var(--accent); letter-spacing: .08em; }
.flash .chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip { font-size: .85rem; background: var(--accent-soft); color: var(--ink-2); border-radius: 999px; padding: 3px 10px; }
.vex { font-size: .88rem; margin-top: 3px; }
.vex.de { cursor: pointer; color: var(--ink-2); }
.vex .tw { font-weight: 600; }
.flash .big-speak { margin-top: -6px; }
.ttslog { background: var(--fill); border-radius: var(--r-s); padding: 10px 12px; font-size: .78rem; white-space: pre-wrap; word-break: break-word; margin: 10px 0 0; }

/* Sprachbausteine */
.sb-head .seg { margin: 10px 0 4px; }
.sb-text p { line-height: 2.1; }
.sbsel { display: inline-block; width: auto; max-width: 12em; padding: 2px 6px; margin: 0 2px; font: inherit; font-size: .95rem; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); vertical-align: baseline; }
.sbsel.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.sbsel.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--surface)); }
.sbsel:disabled { opacity: 1; color: var(--ink); }
.sb-bank { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.sb-bank .chip.used { opacity: .4; text-decoration: line-through; }
.sb-ex { padding-left: 2.2em; margin: 14px 0; }
.sb-ex li { margin: 0 0 10px; font-size: .95rem; }
.sb-ex li.ok::marker { color: var(--ok); } .sb-ex li.bad::marker, .sb-ex li.skip::marker { color: var(--bad); }
.sb-ex li.pending { color: var(--muted); }
.sb-ex li div { color: var(--ink-2); font-size: .92rem; }
.sb-cat { display: grid; grid-template-columns: minmax(8em, 1fr) 1fr auto auto; gap: 10px; align-items: center; margin: 8px 0 0; font-size: .92rem; }
.sb-cat .bar { margin: 0; }
#sbtime.late { color: var(--bad); font-weight: 600; }
@media (max-width: 820px) { .sb-cat { grid-template-columns: 1fr 5em auto; } .sb-cat a, .sb-cat > span:last-child:empty { grid-column: 1 / -1; } }

/* print: pages (шпаргалка) without app chrome */
@media print {
  .top, .tabbar, .back, .step-foot, .speak, #toast { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .card, .de-block, .rule, .warn, .hack, .summary { box-shadow: none !important; break-inside: avoid; }
  main { padding: 0 !important; max-width: none !important; }
  h2 { break-after: avoid; }
}

/* Lesen */
.lgrid { display: block; }
.ltext p, .lad p { margin: 0 0 .7em; line-height: 1.6; }
.ltext { position: relative; }
.lnum { position: absolute; top: 12px; right: 14px; font-weight: 700; color: var(--muted); font-size: .85rem; }
.lsrc { font-size: .82rem; margin: 0; }
.lhead { font-size: 1.25rem; margin: 0 0 4px; color: var(--ink) !important; }
.lsub { color: var(--muted); font-style: italic; }
.ads { display: grid; gap: 10px; }
.lad { margin: 0 !important; padding: 12px 14px 12px 40px !important; position: relative; }
.lad p { margin: 0; font-size: .95rem; }
.lad.used { opacity: .45; }
.lletter { position: absolute; left: 14px; top: 12px; color: var(--accent); }
.lbank { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px 14px; margin: 0 0 14px; }
.lh { padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.lh:last-child { border-bottom: 0; }
.lh b { color: var(--accent); margin-right: 4px; }
.lh.used { opacity: .4; text-decoration: line-through; }
.ltask { margin: 0 0 12px; }
.ltask > span { display: block; font-weight: 600; margin: 0 0 4px; font-size: .9rem; }
.ltask.card p { margin: 0 0 10px; }
.lsel { width: 100%; max-width: 100%; }
.lopt { display: block; width: 100%; text-align: left; margin: 0 0 6px; }
.lopt b { color: var(--accent); margin-right: 6px; }
.lopt.sel { box-shadow: 0 0 0 2px var(--accent) inset; }
.lopt:disabled { cursor: default; color: var(--ink); }
.lrevbox { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; font-size: .92rem; display: grid; gap: 6px; }
.lrevbox.ok { background: color-mix(in srgb, var(--ok) 10%, transparent); }
.lrevbox.bad { background: color-mix(in srgb, var(--bad) 8%, transparent); }
.lpairs { display: flex; flex-wrap: wrap; gap: 6px; }
mark.ev { background: none; color: inherit; padding: 0; margin: 0; transition: background .3s; }
mark.ev.on { background: var(--mark); border-radius: 3px; }
mark.ev.flash-ev { box-shadow: 0 0 0 3px var(--accent); }
.gl { text-decoration: underline dotted var(--accent); text-underline-offset: 3px; cursor: help; }
.lexam .gl { text-decoration: none; cursor: auto; }
.ljump { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 6; box-shadow: var(--shadow); }
#ltime.late { color: var(--bad); font-weight: 600; }
@media (min-width: 1000px) {
  body.focus main:has(.lgrid) { max-width: 1180px; }
  .lgrid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
  .lright { position: sticky; top: 70px; max-height: calc(100vh - 160px); overflow: auto; padding: 2px 4px 2px 2px; }
  .ljump { display: none; }
}

#netbar { position: fixed; left: 50%; top: 10px; transform: translateX(-50%); z-index: 50; background: var(--bad); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: .88rem; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }
