/* Ramzor — driving theory trainer. Design language: asphalt, lane-yellow, go-green. */
@import url('../../assets/fonts.css');

:root {
  --bg: #EEF0E6; --surface: #FFFFFF; --surface-2: #E2E7D8; --ink: #17301F; --ink-2: #33493A;
  --muted: #566558; --line: #D8DECD; --forest: #1F4A32; --forest-2: #2A5A3F; --accent: #C8F25C; --accent-strong: #1F6B3D; --accent-soft: #E3F5BE;
  --on-accent: #17301F; --ok: #2F9E56; --ok-soft: #DCF3D2; --yellow: #F2B93B; --yellow-soft: #FCEFC9; --red: #DC4F45; --red-soft: #FBE3DF;
  --blue: #2F6FD6; --blue-soft: #E1EBFA; --ok-text: #18703A; --red-text: #B2332B; --blue-text: #2459B5; --shadow: 0 1px 2px rgba(23,48,31,.05), 0 10px 26px rgba(23,48,31,.07);
  --r-lg: 26px; --r-md: 18px; --r-sm: 12px; --fs: 1; --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E1811; --surface: #16251B; --surface-2: #1E3225; --ink: #EDF3E4; --ink-2: #CBD6C6;
  --muted: #9DAD9F; --line: #293D2F; --forest: #1B3A28; --forest-2: #25503A; --accent: #C8F25C; --accent-strong: #C8F25C; --accent-soft: #24401F;
  --on-accent: #142B12; --ok: #4CC777; --ok-soft: #173A22; --yellow: #F5C451; --yellow-soft: #3A2F10; --red: #FF7A6E; --red-soft: #3F1A16;
  --blue: #8AB4FF; --blue-soft: #152844; --ok-text: #4CC777; --red-text: #FF7A6E; --blue-text: #8AB4FF; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1811; --surface: #16251B; --surface-2: #1E3225; --ink: #EDF3E4; --ink-2: #CBD6C6;
  --muted: #9DAD9F; --line: #293D2F; --forest: #1B3A28; --forest-2: #25503A; --accent: #C8F25C; --accent-strong: #C8F25C; --accent-soft: #24401F;
  --on-accent: #142B12; --ok: #4CC777; --ok-soft: #173A22; --yellow: #F5C451; --yellow-soft: #3A2F10; --red: #FF7A6E; --red-soft: #3F1A16;
  --blue: #8AB4FF; --blue-soft: #152844; --ok-text: #4CC777; --red-text: #FF7A6E; --blue-text: #8AB4FF; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: calc(16px * var(--fs)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  line-height: 1.45; min-height: 100dvh; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; position: relative; }
.view { flex: 1; padding: calc(14px + var(--safe-t)) 16px calc(var(--tab-h) + 28px + var(--safe-b)); display: flex; flex-direction: column; gap: 16px; animation: rise .22s ease-out; }
.view.no-tabs { padding-bottom: calc(24px + var(--safe-b)); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- type ---------- */
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h1 { font-size: 1.7rem; font-weight: 650; line-height: 1.12; letter-spacing: -.01em; }
.h2 { font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: url('../icons/icon.svg') center/cover no-repeat; flex: none; }
.brand-name { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-name small { font-size: .62em; font-weight: 500; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.brand-mark i { display: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.lane { height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 30px); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.tight { padding: 14px; border-radius: var(--r-md); }
.card.dark { background: var(--forest); color: #F1F6E8; border-color: var(--forest); position: relative; overflow: hidden; }
.card.dark .muted { color: #B4C7B3; }
.card.dark .eyebrow { color: var(--accent); }
.card.lime { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: none; }
.card.lime .muted { color: color-mix(in srgb, var(--on-accent) 72%, transparent); }
.card.dark::after { content: ''; position: absolute; inset-inline: 18px; bottom: 12px; height: 3px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 16px, transparent 16px 28px); opacity: .45; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; font-size: 1rem; background: var(--surface); border: 1.5px solid var(--line);
  color: var(--ink); transition: transform .08s, background .15s, border-color .15s; text-decoration: none; width: 100%; }
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.dark { background: var(--forest); border-color: var(--forest); color: #F1F6E8; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red-text); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: .9rem; width: auto; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); flex: none; }
.icon-btn.plain { background: transparent; border-color: transparent; }
.icon-btn.on { background: var(--yellow-soft); border-color: var(--yellow); color: var(--ink); }
.icon-btn.on svg { fill: var(--yellow); }
svg.ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] svg.ic.flip { transform: scaleX(-1); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); font-size: .8rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; border: 1px solid transparent; }
.chip.green { background: var(--accent-soft); color: var(--accent-strong); }
.chip.red { background: var(--red-soft); color: var(--red-text); }
.chip.yellow { background: var(--yellow-soft); color: var(--ink); }
.chip.blue { background: var(--blue-soft); color: var(--blue-text); }
button.chip { cursor: pointer; }
button.chip.sel { background: var(--forest); color: #F1F6E8; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }

/* ---------- tab bar (floating pill) ---------- */
.tabs { position: fixed; bottom: calc(12px + var(--safe-b)); left: 50%; transform: translateX(-50%); width: calc(100% - 28px); max-width: 520px; z-index: 20;
  padding: 7px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 50px; border-radius: 999px; color: var(--muted); font-size: .66rem; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.tab.on { background: var(--accent); color: var(--on-accent); }
.tab svg.ic { width: 21px; height: 21px; }

/* ---------- home ---------- */
.forecast { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding-bottom: 28px; }
.ring { width: 104px; height: 104px; position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .trk { stroke: rgba(255,255,255,.12); }
.ring .val { stroke: var(--ring, #C8F25C); transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1); }
.ring .mid { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.ring .mid b { font-size: 1.75rem; font-weight: 800; }
.ring .mid small { display: block; font-size: .68rem; color: #B4C7B3; margin-top: 3px; font-weight: 500; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode { text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 112px; text-decoration: none; color: inherit; transition: transform .1s, border-color .15s; }
.mode:active { transform: scale(.98); }
.mode:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.mode b { font-weight: 600; font-size: 1rem; line-height: 1.2; display: block; }
.mode span.sub { font-size: .8rem; color: var(--muted); }
.sign { width: 38px; height: 38px; display: grid; place-items: center; flex: none; color: var(--ink); }
.sign svg { width: 38px; height: 38px; }
.sign-badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.sign-badge.green { background: var(--accent-soft); color: var(--accent-strong); }
.sign-badge.red { background: var(--red-soft); color: var(--red-text); }
.sign-badge.yellow { background: var(--yellow-soft); color: #8A6500; }
:root[data-theme="dark"] .sign-badge.yellow { color: var(--yellow); }
.sign-badge.blue { background: var(--blue-soft); color: var(--blue-text); }
.sign-badge.ink { background: var(--surface-2); color: var(--ink); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week div { text-align: center; font-size: .68rem; color: var(--muted); font-weight: 600; }
.week i { display: block; height: 34px; border-radius: 10px; background: var(--surface-2); margin-bottom: 4px; position: relative; overflow: hidden; }
.week i b { position: absolute; inset-inline: 0; bottom: 0; background: var(--ok); border-radius: 10px; }
.week .today i { outline: 2px solid var(--forest); outline-offset: 1px; }

/* ---------- progress ---------- */
.bar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; display: flex; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: var(--ok); transition: width .35s ease; }
.bar > i.warn { background: var(--yellow); }
.bar > i.bad { background: var(--red); }
.bar.thin { height: 5px; }

/* ---------- question ---------- */
.q-top { display: flex; align-items: center; gap: 10px; }
.q-top .bar { flex: 1; }
.q-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-text { font-size: 1.22rem; font-weight: 600; line-height: 1.32; overflow-wrap: anywhere; }
.q-img { border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 10px; cursor: zoom-in; width: 100%; }
.q-img img { max-height: 240px; width: auto; object-fit: contain; }
.answers { display: flex; flex-direction: column; gap: 10px; }
.ans { display: flex; align-items: flex-start; gap: 12px; text-align: start; width: 100%; padding: 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--line); font-size: 1.02rem; line-height: 1.35; min-height: 56px; overflow-wrap: anywhere;
  transition: border-color .12s, background .12s, transform .08s; }
.ans:active { transform: scale(.99); }
.ans:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.ans .key { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.ans .txt { flex: 1; padding-top: 3px; }
.ans.sel { border-color: var(--forest); background: var(--accent-soft); }
.ans.sel .key { background: var(--forest); color: var(--accent); }
.ans.ok { border-color: var(--ok); background: var(--ok-soft); }
.ans.ok .key { background: var(--ok); color: #fff; }
.ans.bad { border-color: var(--red); background: var(--red-soft); }
.ans.bad .key { background: var(--red); color: #fff; }
.ans.dim { opacity: .55; }
.ans[disabled] { cursor: default; }
.ans[disabled]:hover { border-color: var(--line); }
.ans.ok[disabled]:hover { border-color: var(--ok); }
.ans.bad[disabled]:hover { border-color: var(--red); }
.explain { border-radius: var(--r-md); padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--ok); animation: rise .2s ease-out; }
.explain.bad { border-inline-start-color: var(--red); }
.explain h3 { font-size: .95rem; font-weight: 700; margin-bottom: 5px; display: flex; align-items: center; gap: 7px; }
.explain p { font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.explain .note { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.peek { border-radius: var(--r-md); padding: 14px 16px; background: var(--blue-soft); border: 1px dashed color-mix(in srgb, var(--blue) 45%, transparent); }
.peek .pq { font-weight: 700; margin-bottom: 8px; }
.peek ol { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 4px; }
.peek li.ok { font-weight: 700; color: var(--ok-text); }
.sticky-cta { position: sticky; bottom: calc(10px + var(--safe-b)); z-index: 5; display: flex; gap: 10px; margin-top: auto; padding-top: 8px; }
.sticky-cta::before { content: ''; position: absolute; inset: -14px -16px calc(-10px - var(--safe-b)); background: linear-gradient(to top, var(--bg) 62%, transparent); z-index: -1; pointer-events: none; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- exam ---------- */
.timer { font-weight: 800; font-size: 1.05rem; padding: 8px 14px; border-radius: 999px; background: var(--forest); color: #F1F6E8; display: inline-flex; align-items: center; gap: 7px; }
.timer.low { background: var(--red); color: #fff; }
.grid30 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.cell { aspect-ratio: 1; border-radius: 12px; background: var(--surface-2); font-weight: 700; display: grid; place-items: center; position: relative; border: 1.5px solid transparent; }
.cell.done { background: var(--forest); color: var(--accent); }
.cell.cur { border-color: var(--ok); }
.cell.ok { background: var(--ok-soft); color: var(--ok-text); }
.cell.bad { background: var(--red-soft); color: var(--red-text); }
.cell.flag::after { content: ''; position: absolute; top: 5px; inset-inline-end: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.score { text-align: center; padding: 26px 18px 34px; }
.score .big { font-size: 4.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.score .big small { font-size: 1.6rem; font-weight: 600; opacity: .6; }
.verdict { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 800; margin-bottom: 14px; }
.verdict.pass { background: var(--accent); color: #17301F; }
.verdict.fail { background: #FF8A7E; color: #3A0D08; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: start; width: 100%; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; min-height: 58px; }
.item:last-child { border-bottom: 0; }
.item:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.item .t { font-weight: 600; }
.item .s { font-size: .84rem; color: var(--muted); }
.item .end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); flex: none; }
.qrow { align-items: flex-start; }
.qrow .t { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; margin-top: 7px; }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--red); } .dot.mid { background: var(--yellow); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border-radius: 999px; padding: 5px; gap: 4px; border: 1px solid var(--line); }
.seg button { min-height: 40px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); padding: 0 8px; }
.seg button.on { background: var(--accent); color: var(--on-accent); }
.field { width: 100%; min-height: 50px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); padding: 0 14px; font-size: 1rem; }
textarea.field { padding: 12px 14px; min-height: 96px; resize: vertical; }
.search { position: relative; }
.search svg { position: absolute; inset-inline-start: 14px; top: 14px; color: var(--muted); }
.search input { padding-inline-start: 44px; }
.option { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--surface); text-align: start; width: 100%; min-height: 68px; }
.option.sel { border-color: var(--ok); background: var(--accent-soft); }
.option b { font-size: 1.05rem; display: block; }
.option .s { font-size: .84rem; color: var(--muted); }
.option .lic { width: 46px; height: 46px; border-radius: 15px; background: var(--forest); color: var(--accent); display: grid; place-items: center; font-weight: 800; flex: none; }
.empty { text-align: center; padding: 34px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .sign-badge { width: 60px; height: 60px; border-radius: 20px; }
.empty .sign-badge svg { width: 30px; height: 30px; }
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.stat b { font-size: 1.45rem; font-weight: 800; display: block; line-height: 1.1; }
.stat span { font-size: .74rem; color: var(--muted); font-weight: 500; }
.hist { display: flex; align-items: flex-end; gap: 6px; height: 120px; position: relative; padding-top: 6px; }
.hist .passline { position: absolute; inset-inline: 0; border-top: 2px dashed var(--muted); }
.hist .passline span { position: absolute; inset-inline-end: 0; top: -19px; font-size: .68rem; font-weight: 700; color: var(--muted); }
.hist a { flex: 1; max-width: 34px; border-radius: 7px 7px 3px 3px; background: var(--red); min-height: 6px; display: block; }
.hist a.pass { background: var(--ok); }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(8,10,12,.55); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 16px calc(20px + var(--safe-b)); max-height: 88dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; animation: up .22s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet::before { content: ''; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 4px; flex: none; }
.zoom { align-items: center; background: rgba(8,10,12,.9); padding: 16px; cursor: zoom-out; }
.zoom img { max-width: 100%; max-height: 90dvh; background: #fff; border-radius: 14px; padding: 12px; }
.toast { position: fixed; bottom: calc(var(--tab-h) + 34px + var(--safe-b)); left: 50%; transform: translateX(-50%); background: var(--forest); color: #F1F6E8; padding: 11px 18px; border-radius: 14px; font-weight: 600; font-size: .92rem; z-index: 80; box-shadow: var(--shadow); animation: rise .2s ease-out; max-width: calc(100% - 32px); text-align: center; }
.boot { flex: 1; display: grid; place-items: center; min-height: 100dvh; }
.boot .brand-mark { width: 72px; height: 72px; border-radius: 16px; animation: pulse 1.2s ease-in-out infinite; }
.boot .brand-mark i { width: 24px; height: 24px; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .75; } }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--ok); }
.price { font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.price small { font-size: 1rem; font-weight: 600; opacity: .7; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check svg { color: var(--ok-text); margin-top: 1px; }
.card.dark .check svg { color: var(--accent); }

@media (min-width: 620px) {
  body { background: color-mix(in srgb, var(--bg) 70%, var(--line)); }
  #app { background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
}

/* ---------- top bar: streak + xp ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pillstat { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--ink); }
.pillstat svg { width: 18px; height: 18px; }
.pillstat.fire svg { fill: #FF8A3D; stroke: #E8641B; }
.pillstat.fire.off svg { fill: var(--surface-2); stroke: var(--muted); }
.pillstat.xp svg { fill: var(--accent); stroke: var(--accent-strong); }
:root[data-theme="dark"] .pillstat.xp svg { stroke: #7FA22C; }

/* ---------- road (learning path) ---------- */
.unit-head { background: var(--forest); color: #F1F6E8; border-radius: var(--r-lg); padding: 16px 18px; display: flex; align-items: center; gap: 14px; position: sticky; top: calc(8px + var(--safe-t)); z-index: 4; box-shadow: var(--shadow); }
.unit-head .eyebrow { color: var(--accent); }
.unit-head b { font-size: 1.08rem; font-weight: 600; display: block; line-height: 1.2; }
.unit-head .pct { margin-inline-start: auto; font-weight: 800; font-size: .9rem; background: rgba(255,255,255,.12); padding: 6px 11px; border-radius: 999px; flex: none; }
.unit-head.done .pct { background: var(--accent); color: var(--on-accent); }
.road { position: relative; margin: 6px 0 2px; }
.road svg.track { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.road .asphalt { fill: none; stroke: var(--surface-2); stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
.road .asphalt.done { stroke: var(--forest); }
.road .dash { fill: none; stroke: var(--surface); stroke-width: 3; stroke-dasharray: 10 12; stroke-linecap: round; opacity: .9; }
.road .dash.done { stroke: var(--accent); }
.node { position: absolute; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
  background: var(--surface); color: var(--muted); border: 3px solid var(--line); box-shadow: 0 5px 0 var(--line); transition: transform .1s, box-shadow .1s; z-index: 2; }
.node:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.node.done { background: var(--accent); color: var(--on-accent); border-color: #A9D63B; box-shadow: 0 5px 0 #8FB82B; }
.node.done:active { box-shadow: 0 1px 0 #8FB82B; }
.node.cur { background: var(--forest); color: var(--accent); border-color: var(--forest-2); box-shadow: 0 5px 0 #12301F, 0 0 0 7px color-mix(in srgb, var(--accent) 45%, transparent); animation: beacon 1.8s ease-in-out infinite; }
@keyframes beacon { 50% { box-shadow: 0 5px 0 #12301F, 0 0 0 12px color-mix(in srgb, var(--accent) 18%, transparent); } }
.node.trophy { border-radius: 22px; }
.node svg.ic { width: 28px; height: 28px; stroke-width: 2.4; }
.node .stars { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); display: flex; gap: 1px; background: var(--bg); padding: 1px 5px; border-radius: 999px; }
.node .stars svg { width: 13px; height: 13px; fill: var(--yellow); stroke: none; }
.node .stars svg.off { fill: var(--line); }
.bubble { position: absolute; transform: translate(-50%, -100%); margin-top: -46px; background: var(--surface); border: 2px solid var(--forest); color: var(--ink); font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 12px; white-space: nowrap; z-index: 3; animation: bob 1.6s ease-in-out infinite; letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: var(--surface); border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: translateX(-50%) rotate(45deg); }
@keyframes bob { 50% { margin-top: -51px; } }
.mascot { width: 84px; height: 84px; flex: none; }
.mascot.sm { width: 56px; height: 56px; }
.mascot.lg { width: 128px; height: 128px; }
.road .mascot { position: absolute; margin: -36px 0 0 -36px; width: 72px; height: 72px; z-index: 1; opacity: .95; }

/* ---------- lesson feedback bar (slides up) ---------- */
.fb { position: sticky; bottom: 0; margin: auto -16px calc(-24px - var(--safe-b)); padding: 16px 16px calc(16px + var(--safe-b)); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; gap: 12px; animation: up .22s cubic-bezier(.2,.8,.2,1); z-index: 6; }
.fb.ok { background: var(--ok-soft); }
.fb.bad { background: var(--red-soft); }
.fb h3 { font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.fb.ok h3 { color: var(--ok-text); } .fb.bad h3 { color: var(--red-text); }
.fb h3 .badge { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.fb.ok h3 .badge { background: var(--ok); } .fb.bad h3 .badge { background: var(--red); }
.fb h3 .badge svg { width: 18px; height: 18px; stroke-width: 3; }
.fb h3 .xp { margin-inline-start: auto; font-size: .9rem; background: var(--accent); color: var(--on-accent); padding: 4px 10px; border-radius: 999px; }
.fb p { font-size: 1rem; line-height: 1.5; color: var(--ink); }
.fb .right { font-weight: 700; }
.fb .note { font-size: .76rem; color: var(--muted); }
.fb.bad .btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.fb.ok .btn.primary { background: var(--ok); border-color: var(--ok); color: #fff; }
.celebrate { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 18px; }
.bigstars { display: flex; gap: 8px; }
.bigstars svg { width: 52px; height: 52px; fill: var(--yellow); stroke: none; animation: pop .45s cubic-bezier(.2,1.6,.4,1) both; }
.bigstars svg:nth-child(2) { animation-delay: .12s; transform-origin: center; margin-top: -12px; }
.bigstars svg:nth-child(3) { animation-delay: .24s; }
.bigstars svg.off { fill: var(--line); }
@keyframes pop { from { transform: scale(0) rotate(-30deg); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 15px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.forecast > div:last-child { min-width: 0; }
.forecast .chip { white-space: normal; }
.fb .right { font-weight: 600; }
.cell { text-decoration: none; color: inherit; }
.num { unicode-bidi: isolate; }
.chip.wrap { white-space: normal; border-radius: 14px; align-items: flex-start; text-align: start; }
.chip.wrap svg { margin-top: 1px; }
.stat b, .score .big, .price, .timer, .node, .ring .mid b { font-weight: 700; }
.view { overflow-x: clip; }
[dir="rtl"] .price { text-align: right; }

/* ---------- profile ---------- */
.avatar { border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 700; flex: none; }
.avatar.in { background: var(--accent); border-color: #A9D63B; color: var(--on-accent); }
.avatar svg.ic { width: 55%; height: 55%; }
.form-err { color: var(--red-text); font-weight: 600; font-size: .92rem; background: var(--red-soft); padding: 10px 14px; border-radius: 12px; }
.field:focus { outline: none; border-color: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.plus-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .7rem; font-weight: 800; letter-spacing: .06em; flex: none; }

/* ---------- plus ---------- */
.compare { padding: 6px 16px; }
.cmp-row { display: grid; grid-template-columns: 1fr 72px 72px; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row > span:not(:first-child) { text-align: center; display: grid; place-items: center; }
.cmp-row svg.ic { color: var(--ok-text); }
.cmp-head { font-weight: 700; font-size: .8rem; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-opt { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 20px 8px 14px; border-radius: var(--r-md); background: var(--surface); border: 2px solid var(--line); }
.plan-opt.sel { border-color: var(--ok); background: var(--accent-soft); }
.plan-opt b { font-size: .92rem; font-weight: 600; }
.plan-price { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.plan-note { font-size: .68rem; color: var(--muted); line-height: 1.3; }
.plan-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--forest); color: var(--accent); font-size: .64rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }

/* ---------- quests + badges ---------- */
.quest { display: flex; align-items: center; gap: 12px; }
.quest-ic { width: 34px; height: 34px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--ink-2); }
.quest-ic svg.ic { width: 18px; height: 18px; }
.quest.done .quest-ic { background: var(--ok); color: #fff; }
.quest-xp { font-size: .78rem; font-weight: 700; color: var(--muted); flex: none; }
.quest.done .quest-xp { color: var(--ok-text); }
.badge-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.badge-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .64rem; font-weight: 600; color: var(--muted); line-height: 1.2; }
.badge-ic { width: 100%; max-width: 58px; aspect-ratio: 1; border-radius: 30%; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.badge-tile.done { color: var(--ink); }
.badge-tile.done .badge-ic { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 #8FB82B; }
.pillstat.pop { animation: pop .35s cubic-bezier(.2,1.6,.4,1); }

/* ---------- games ---------- */
.match { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 12px; }
.match-col { display: flex; flex-direction: column; gap: 10px; }
.match-tile { min-height: 96px; border-radius: var(--r-md); background: var(--surface); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); padding: 10px; display: grid; place-items: center; font-size: .92rem; line-height: 1.3; text-align: center; transition: transform .1s, border-color .12s, background .12s; overflow-wrap: anywhere; }
.match-tile.l { background: #fff; }
.match-tile img { max-height: 74px; width: auto; }
.match-tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.match-tile.sel { border-color: var(--forest); background: var(--accent-soft); box-shadow: 0 4px 0 var(--forest-2); }
.match-tile.l.sel { background: #fff; }
.match-tile.done { border-color: var(--ok); background: var(--ok-soft); box-shadow: none; opacity: .55; }
.match-tile.miss { border-color: var(--red); background: var(--red-soft); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.tf { flex: 1; display: flex; flex-direction: column; gap: 14px; justify-content: space-between; }
.tf-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; transition: transform .28s ease, opacity .28s ease, border-color .15s; min-height: 240px; justify-content: center; }
.tf-card img { max-height: 130px; width: auto; align-self: center; background: #fff; border-radius: 12px; padding: 6px; pointer-events: none; }
.tf-q { font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.tf-a { font-size: 1.08rem; line-height: 1.4; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.tf-fix { font-size: .92rem; font-weight: 600; color: var(--ok-text); }
.tf-card.lean-r { border-color: var(--ok); } .tf-card.lean-l { border-color: var(--red); }
.tf-card.ok { border-color: var(--ok); background: var(--ok-soft); } .tf-card.bad { border-color: var(--red); background: var(--red-soft); }
.tf-card.ok.fly-r { transform: translateX(120%) rotate(14deg) !important; opacity: 0; } .tf-card.ok.fly-l { transform: translateX(-120%) rotate(-14deg) !important; opacity: 0; }
.tf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: sticky; bottom: calc(10px + var(--safe-b)); }
.btn.tf-no { background: var(--red-soft); border-color: var(--red); color: var(--red-text); }
.btn.tf-yes { background: var(--ok-soft); border-color: var(--ok); color: var(--ok-text); }
.sign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sign-tile { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); display: grid; place-items: center; padding: 8px; transition: transform .1s; }
.sign-tile:active { transform: scale(.96); }
.sign-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mode .row.between { align-items: flex-start; }
.btn.sm { white-space: nowrap; }

/* ---------- topic illustration (our drawing, shown when the bank has no picture) ---------- */
.q-art { height: 116px; border-radius: var(--r-md); background: var(--forest); position: relative; overflow: hidden; display: grid; place-items: center; }
.q-art::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(200,242,92,.28), transparent 65%); inset-inline-end: -60px; top: -80px; }
.q-art::after { content: ''; position: absolute; inset-inline: 18px; bottom: 12px; height: 3px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 26px); opacity: .35; }
.q-art svg { width: 68px; height: 68px; position: relative; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.q-art svg .f { fill: var(--accent); }
.q-art svg .x { stroke: #FF8A7E; stroke-width: 4; }
.q-art svg .b { stroke-width: 5; }

/* =====================================================================================
   DESKTOP (1000px and wider). Everything below is additive: phones and tablets are untouched.
   ===================================================================================== */
.side-brand, .side-foot, .tabs.desk-nav, .exam-side, .kb-hint { display: none; }
.dk-side, .dk-main, .dk-col { display: contents; }

@media (min-width: 1000px) {
  html { font-size: calc(16.5px * var(--fs)); }
  body { background: var(--bg); }
  #app { max-width: none; margin: 0; box-shadow: none; background: var(--bg); min-height: 100vh; }
  #app.has-nav { padding-inline-start: 268px; }
  .view { max-width: 1160px; width: 100%; margin: 0 auto; padding: 36px 44px 64px; gap: 22px; }
  .view.no-tabs { padding-bottom: 56px; }
  #app.has-nav .view.no-tabs, #app.focus .view { max-width: 760px; }
  #app.focus .view { padding: 32px 16px 48px; min-height: 100vh; }
  #app.focus.wide .view { max-width: 1120px; padding-inline: 40px; }
  .h1 { font-size: 2.1rem; }

  /* side menu (the phone tab bar, restyled) */
  .tabs, .tabs.desk-nav { display: flex; flex-direction: column; align-items: stretch; gap: 6px; position: fixed; top: 0; bottom: 0; left: 0; right: auto; transform: none;
    width: 268px; max-width: none; padding: 26px 18px 22px; border-radius: 0; border: 0; border-inline-end: 1px solid var(--line); background: var(--surface); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  [dir="rtl"] .tabs, [dir="rtl"] .tabs.desk-nav { left: auto; right: 0; }
  .tab { flex-direction: row; justify-content: flex-start; gap: 14px; height: 52px; padding: 0 18px; font-size: 1rem; border-radius: 16px; }
  .tab svg.ic { width: 23px; height: 23px; }
  .tab:hover { background: var(--surface-2); color: var(--ink); }
  .tab.on, .tab.on:hover { background: var(--accent); color: var(--on-accent); }
  .side-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.45rem; text-decoration: none; color: var(--ink); padding: 0 8px 22px; }
  .side-brand .mascot { width: 44px; height: 44px; }
  .side-foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
  .side-profile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface-2); text-decoration: none; color: var(--ink); }
  .side-profile:hover { background: var(--accent-soft); }
  .side-profile b { display: block; font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-profile small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.3; }

  /* two-column building blocks */
  .dk-col, .dk-side, .dk-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
  .v-practice, .v-stats, .v-result, .v-exam.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; align-content: start; }
  .v-practice > :first-child, .v-stats > :first-child, .v-stats > .statgrid, .v-result > :first-child, .v-exam.two > :first-child { grid-column: 1 / -1; }
  #app.has-nav .view.v-result { max-width: 1160px; }
  .v-exam:not(.two) { max-width: 720px; }

  /* home: the road on one side, forecast and quests pinned on the other */
  .v-home { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 56px; align-items: start; }
  .v-home > .topbar { display: none; }
  .v-home > .dk-main { grid-column: 1; grid-row: 1; width: 100%; max-width: 560px; justify-self: center; gap: 16px; }
  .v-home > .dk-side { grid-column: 2; grid-row: 1; position: sticky; top: 36px; }
  .unit-head { top: 16px; }
  .btn.jump { left: auto !important; right: 500px; bottom: 28px !important; transform: none !important; }
  [dir="rtl"] .btn.jump { right: auto; left: 500px; }
  .node { transition: transform .12s, box-shadow .12s, filter .12s; }
  .node:hover { filter: brightness(1.04); transform: translateY(-2px); }

  /* practice, stats, settings, lists */
  .v-practice .mode-grid { grid-template-columns: 1fr 1fr; }
  .v-stats .statgrid { grid-template-columns: repeat(6, 1fr); }
  .v-settings { display: block; columns: 2; column-gap: 24px; }
  .v-settings > * { break-inside: avoid; margin-bottom: 18px; }
  .v-settings > :first-child { column-span: all; margin-bottom: 22px; }
  .v-browse { max-width: 900px; }
  .v-signs .sign-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
  .sign-tile:hover { border-color: var(--ok); transform: translateY(-2px); }
  .v-plus .plans { gap: 14px; }
  .item:hover, .mode:hover { cursor: pointer; }

  /* lessons and study cards: one calm centred column, bigger type */
  .q-text { font-size: 1.45rem; line-height: 1.3; }
  .q-img img { max-height: 300px; }
  .q-art { height: 136px; }
  .ans { font-size: 1.06rem; padding: 16px 18px; }
  .kb-hint { display: block; text-align: center; }
  .fb { border-radius: 26px; margin: auto 0 0; padding: 22px 24px; }
  .tf-card { min-height: 300px; }
  .match-tile { min-height: 108px; font-size: 1rem; }

  /* mock test: question on one side, the navigator always visible on the other */
  .v-examrun { display: grid; grid-template-columns: minmax(0, 1fr) 330px; column-gap: 48px; align-items: start; align-content: start; }
  .v-examrun > .q-top, .v-examrun > .bar { grid-column: 1 / -1; }
  .v-examrun > :not(.q-top):not(.bar):not(.exam-side) { grid-column: 1; }
  .exam-side { display: flex; flex-direction: column; gap: 14px; grid-column: 2; grid-row: 3 / span 4; position: sticky; top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
  .v-examrun .nav-chip { display: none; }
  .v-examrun .sticky-cta { position: static; margin-top: 8px; }
  .v-examrun .sticky-cta::before { display: none; }
  .cell { cursor: pointer; transition: transform .1s; } .cell:hover { transform: scale(1.06); }

  /* dialogs become centred windows instead of bottom sheets */
  .overlay { align-items: center; padding: 24px; }
  .sheet { border-radius: 28px; max-width: 520px; padding: 26px 26px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
  .sheet::before { display: none; }
  .toast { bottom: 32px; }
  #app.has-nav ~ .toast { left: calc(50% + 134px); }
  [dir="rtl"] #app.has-nav ~ .toast { left: calc(50% - 134px); }
}
@media (min-width: 1000px) and (max-width: 1240px) {
  .v-home { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 32px; }
  .btn.jump { right: 400px; } [dir="rtl"] .btn.jump { left: 400px; }
  .view { padding-inline: 28px; }
}

/* Redrawing the same question must not replay the entrance animation. */
.view.still { animation: none; }
.ans { transition: border-color .12s, background .12s; }
.ans:active { transform: none; }

/* ---------- topic photo (Unsplash), shown when the bank has no picture ---------- */
.q-photo { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 7; }
.q-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-photo-tag { position: absolute; bottom: 8px; inset-inline-end: 8px; background: rgba(14,24,17,.62); color: #F1F6E8; font-size: .66rem; font-weight: 600; letter-spacing: .03em; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (min-width: 1000px) { .q-photo { aspect-ratio: 16 / 6; } }
/* Desktop mock test: keep the previous / next buttons in reach for long questions with pictures. */
@media (min-width: 1000px) {
  .v-examrun .sticky-cta { position: sticky; bottom: 16px; }
  .v-examrun .sticky-cta::before { display: block; inset: -18px -12px -16px; }
}
.explain .tr-note { color: var(--ink-2); background: var(--bg); border-radius: 10px; padding: 8px 10px; }

/* Notch / Dynamic Island: a solid strip under the status bar so scrolled content never shows through the clock.
   Sits above the tab bar and sticky headers, below dialogs (their dimming covers it too). No height in a normal browser tab. */
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: var(--safe-t); background: var(--bg); z-index: 30; pointer-events: none; }

.legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.linklike { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--accent-strong); text-decoration: underline; cursor: pointer; min-height: 32px; }
.legal-doc { max-height: 62vh; overflow: auto; } .legal-doc h1 { font-size: 1.3rem; margin: 0 0 10px; } .legal-doc h2 { font-size: 1.02rem; margin: 16px 0 4px; } .legal-doc p, .legal-doc li { font-size: .94rem; color: var(--ink-2); } .legal-doc ul { padding-inline-start: 20px; margin: 6px 0; } .legal-doc a { color: var(--accent-strong); }
