/* Ôn luyện TSA — giao diện
   Giấy trắng phớt đỏ như bìa sách, mực xanh than, đỏ đô làm màu nhấn.
   Chữ: Be Vietnam Pro (nội dung), Lora (tiêu đề lớn). Bo góc 16px, bóng mềm.
   Màu từng phần lấy từ sách: Toán xanh dương, Đọc hiểu xanh ngọc, Khoa học đỏ cam. */

:root {
  --paper: #fffbf9;
  --paper-2: #fff4f0;
  --surface: #ffffff;
  --surface-2: #fbf6f4;
  --ink: #2b2d42;
  --ink-2: #4a4e66;
  --muted: #7a7f95;
  --line: #f0e2dd;
  --line-2: #e6d3cd;
  --brand: #9e1b1b;
  --brand-2: #c8423b;
  --brand-soft: #fbe9e6;
  --gold: #c9962b;
  --gold-soft: #fbf1dc;
  --ok: #12907e;
  --ok-soft: #e1f4f0;
  --bad: #c8423b;
  --bad-soft: #fbe6e3;
  --warn: #e07a1f;
  --warn-soft: #fdeedd;
  --blue: #2e6fd8;
  --blue-soft: #e6effc;
  --purple: #7048c8;
  --purple-soft: #efe9fb;
  --shadow: 0 1px 2px rgba(43, 45, 66, .05), 0 6px 24px rgba(158, 27, 27, .06);
  --shadow-lg: 0 10px 40px rgba(43, 45, 66, .14);
  --r: 16px;
  --r-sm: 10px;
  --maxw: 1180px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Lora", Georgia, serif;
  --top: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
[data-theme="dark"] {
  --paper: #14151b;
  --paper-2: #1a1b23;
  --surface: #1e2029;
  --surface-2: #252836;
  --ink: #eeedf3;
  --ink-2: #c9cad6;
  --muted: #9396a8;
  --line: #2e3140;
  --line-2: #3a3e50;
  --brand: #f0716a;
  --brand-2: #f58f86;
  --brand-soft: #3a2025;
  --gold: #e3b453;
  --gold-soft: #3a3020;
  --ok: #3cc7b1;
  --ok-soft: #173631;
  --bad: #f2776e;
  --bad-soft: #3d2124;
  --warn: #f3a35a;
  --warn-soft: #3c2b1b;
  --blue: #6ea0f2;
  --blue-soft: #1d2840;
  --purple: #a88af0;
  --purple-soft: #2a2340;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 12px); }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(70px + var(--safe-b));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
strong { font-weight: 700; color: var(--ink); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: var(--maxw); margin: 0 auto; height: var(--top); display: flex; align-items: center; gap: 18px; padding: 0 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #b52424, #7d1414); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .04em; box-shadow: 0 4px 14px rgba(158, 27, 27, .35); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 16px; }
.brand-text small { color: var(--muted); font-size: 12px; }
.topnav { display: none; gap: 4px; margin-left: 12px; }
.topnav a { color: var(--ink-2); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.topnav a:hover { background: var(--brand-soft); text-decoration: none; color: var(--brand); }
.topnav a.on { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .topnav a.on { background: var(--brand); color: #fff; }
.top-actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { border-color: var(--line-2); color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }
[data-theme="light"] .i-sun, [data-theme="dark"] .i-moon { display: none; }
@media (min-width: 900px) { .topnav { display: flex; } }

/* ---------- Tab bar (mobile) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 500; padding: 4px 0; }
.tabbar a:hover { text-decoration: none; }
.tabbar a.on { color: var(--brand); }
.tabbar a.on svg { stroke-width: 2.3; }
.tabbar .tab-main svg { background: linear-gradient(135deg, #b52424, #7d1414); color: #fff; border-radius: 14px; padding: 7px; width: 38px; height: 38px; margin-top: -16px; box-shadow: 0 6px 16px rgba(158, 27, 27, .35); }
@media (min-width: 900px) { .tabbar { display: none; } }
body.exam-mode .tabbar, body.exam-mode .site-foot, body.exam-mode .topbar { display: none; }
body.exam-mode { padding-bottom: 0; }

/* ---------- Buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s; text-decoration: none !important; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: linear-gradient(135deg, #b52424, #8a1717); color: #fff; box-shadow: 0 6px 18px rgba(158, 27, 27, .28); }
.btn.primary:hover { box-shadow: 0 8px 24px rgba(158, 27, 27, .38); }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.sm { padding: 7px 13px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.chip.red { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.gold { background: var(--gold-soft); color: #9a6f12; border-color: transparent; }
[data-theme="dark"] .chip.gold { color: var(--gold); }
.chip.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }

/* ---------- Cards & layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 20px; }
@media (min-width: 700px) { .pad { padding: 26px; } }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
.g4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.section { padding-top: 34px; padding-bottom: 34px; }
.sec-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-title h2 { font-family: var(--serif); font-size: clamp(24px, 4vw, 32px); }
.sec-title p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--brand); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 34px 0 30px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background:
  radial-gradient(40% 50% at 12% 20%, rgba(200, 66, 59, .14), transparent 70%),
  radial-gradient(35% 45% at 88% 12%, rgba(201, 150, 43, .14), transparent 70%),
  radial-gradient(45% 50% at 70% 90%, rgba(158, 27, 27, .10), transparent 70%); pointer-events: none; }
[data-theme="dark"] .hero::before { opacity: .55; }
.hero-in { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.15fr .85fr; gap: 40px; } .hero { padding: 56px 0 44px; } }
.hero h1 { font-family: var(--serif); font-size: clamp(32px, 6.4vw, 56px); line-height: 1.08; margin: 12px 0 14px; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; background: linear-gradient(90deg, var(--brand-2), var(--gold)); border-radius: 4px; opacity: .45; }
.hero .lead { font-size: clamp(16px, 2.2vw, 18.5px); color: var(--ink-2); max-width: 600px; margin: 0 0 22px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cta .btn { padding: 13px 22px; font-size: 16px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 26px; max-width: 560px; }
.hero-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px; text-align: center; }
.hero-stats b { display: block; font-size: clamp(19px, 3.4vw, 26px); color: var(--brand); line-height: 1.1; }
.hero-stats span { font-size: 12px; color: var(--muted); }
.hero-art { position: relative; max-width: 420px; margin: 0 auto; width: 100%; }
.hero-art .book { border-radius: 10px 18px 18px 10px; box-shadow: -10px 22px 50px rgba(158, 27, 27, .22), inset 0 0 0 1px rgba(0,0,0,.04); transform: rotate(-2.5deg); background: #fff; }
.hero-art .float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.hero-art .float b { display: block; font-size: 15px; }
.hero-art .f1 { left: -14px; bottom: 16%; }
.hero-art .f2 { right: -10px; top: 10%; }
.hero-art .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
@media (max-width: 480px) { .hero-art { max-width: 250px; } .hero-art .f1 { left: -6px; } .hero-art .f2 { right: -4px; } }

/* ---------- Exam structure timeline ---------- */
.timeline { display: flex; border-radius: 14px; overflow: hidden; height: 64px; box-shadow: var(--shadow); }
.timeline div { display: flex; flex-direction: column; justify-content: center; padding: 0 14px; color: #fff; min-width: 0; }
.timeline b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline span { font-size: 12.5px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .timeline { height: auto; } .timeline div { padding: 10px 9px; } .timeline b { font-size: 13.5px; } .timeline span { white-space: normal; font-size: 12px; line-height: 1.35; } }
.tl-legend { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 700px) { .tl-legend { grid-template-columns: repeat(3, 1fr); } }
.tl-item { display: flex; gap: 12px; align-items: flex-start; }
.tl-item i { width: 12px; height: 12px; border-radius: 4px; margin-top: 7px; flex: none; }
.tl-item p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Feature cards ---------- */
.feat { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.feat .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.feat h3 { font-size: 18px; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }
.feat a.more { font-weight: 600; margin-top: auto; }

/* ---------- Theory index ---------- */
.part-block { margin-bottom: 26px; }
.part-head { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); color: #fff; position: relative; overflow: hidden; }
.part-head::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.part-head .code { font-weight: 800; font-size: 13px; letter-spacing: .08em; background: rgba(255, 255, 255, .2); padding: 6px 10px; border-radius: 10px; white-space: nowrap; }
.part-head h2 { font-size: clamp(18px, 3vw, 22px); }
.part-head p { margin: 2px 0 0; opacity: .9; font-size: 14px; }
.part-head a { color: #fff; }
.dang-grid { display: grid; gap: 10px; margin-top: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dang-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .dang-grid { grid-template-columns: repeat(3, 1fr); } }
.dang-card { display: flex; gap: 12px; align-items: center; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.dang-card:hover { text-decoration: none; border-color: var(--c); transform: translateY(-1px); box-shadow: var(--shadow); }
.dang-card .id { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); flex: none; }
.dang-card .nm { font-weight: 600; font-size: 15px; line-height: 1.35; }
.dang-card .sub { font-size: 12.5px; color: var(--muted); }
.dang-card .st { margin-left: auto; flex: none; }
.dang-card.done .id { background: var(--c); color: #fff; }
.tick { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.tick svg { width: 14px; height: 14px; stroke-width: 3; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.filter-row button { border: 1px solid var(--line-2); background: var(--surface); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500; }
.filter-row button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- Lesson page ---------- */
.lesson-wrap { display: grid; gap: 28px; padding: 18px 0 40px; }
@media (min-width: 1080px) { .lesson-wrap { grid-template-columns: 250px minmax(0, 1fr); } }
.side-toc { display: none; }
@media (min-width: 1080px) { .side-toc { display: block; position: sticky; top: calc(var(--top) + 16px); align-self: start; max-height: calc(100vh - var(--top) - 32px); overflow: auto; padding-right: 6px; } }
.side-toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 6px 0 8px; }
.side-toc a { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.35; }
.side-toc a:hover { background: var(--surface); text-decoration: none; }
.side-toc a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side-toc a i { font-style: normal; font-weight: 700; font-size: 12px; min-width: 28px; color: var(--muted); }
.side-toc a .d { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.crumb { font-size: 14px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.crumb a { color: var(--muted); }
.lesson-hero { border-radius: 20px; padding: 24px 22px; color: #fff; position: relative; overflow: hidden; }
.lesson-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), radial-gradient(40% 60% at 0% 100%, rgba(0, 0, 0, .12), transparent 70%); }
.lesson-hero > * { position: relative; }
.lesson-hero .big { font-size: 13px; font-weight: 800; letter-spacing: .1em; opacity: .9; }
.lesson-hero h1 { font-family: var(--serif); font-size: clamp(26px, 5vw, 38px); margin: 6px 0 10px; }
.lesson-hero .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.lesson-hero .meta span { background: rgba(255, 255, 255, .18); padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.jump { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; position: sticky; top: var(--top); z-index: 5; background: var(--paper); margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 500; }
.jump a:hover { border-color: var(--c, var(--brand)); color: var(--c, var(--brand)); text-decoration: none; }

.content { max-width: 820px; }
.content > * + * { margin-top: 18px; }
.content p { margin: 0; }
.content h2.sec { font-size: 22px; padding-top: 14px; display: flex; gap: 10px; align-items: center; }
.content h2.sec::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--c, var(--brand)); }
.content h3 { font-size: 18px; color: var(--ink); }
.content ul { margin: 0; padding-left: 22px; }
.content li + li { margin-top: 6px; }

.box { border-radius: 14px; padding: 15px 18px 15px 18px; border: 1px solid var(--bc); background: var(--bg); position: relative; }
.box .lbl { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--fc); margin-bottom: 6px; }
.box .lbl svg { width: 18px; height: 18px; }
.box p + p { margin-top: 6px; }
.box.recog { --bg: var(--blue-soft); --bc: color-mix(in srgb, var(--blue) 25%, transparent); --fc: var(--blue); }
.box.core { --bg: var(--gold-soft); --bc: color-mix(in srgb, var(--gold) 35%, transparent); --fc: #9a6f12; }
[data-theme="dark"] .box.core { --fc: var(--gold); }
.box.trap { --bg: var(--bad-soft); --bc: color-mix(in srgb, var(--bad) 30%, transparent); --fc: var(--bad); }
.box.remember { --bg: var(--ok-soft); --bc: color-mix(in srgb, var(--ok) 30%, transparent); --fc: var(--ok); }
.box.tip { --bg: var(--purple-soft); --bc: color-mix(in srgb, var(--purple) 30%, transparent); --fc: var(--purple); }

.method { border-radius: 18px; border: 2px solid color-mix(in srgb, var(--c) 40%, transparent); background: var(--surface); overflow: hidden; }
.method-head { background: var(--c); color: #fff; padding: 12px 18px; font-weight: 700; display: flex; gap: 10px; align-items: center; letter-spacing: .02em; }
.method ol { list-style: none; margin: 0; padding: 14px 18px 6px; counter-reset: st; }
.method li { counter-increment: st; position: relative; padding: 0 0 14px 44px; }
.method li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.method li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 32px; bottom: 2px; width: 1.5px; background: color-mix(in srgb, var(--c) 22%, transparent); }
.method .extra { padding: 0 18px 14px; color: var(--ink-2); font-size: 15px; }
.method figure { margin: 0; border-top: 1px solid var(--line); background: #fff; padding: 10px; }

figure.fig { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; cursor: zoom-in; }
figure.fig img { margin: 0 auto; border-radius: 6px; width: 100%; height: auto; }
figure.fig figcaption, .method figcaption { font-size: 13.5px; color: #6b6f80; text-align: center; padding: 8px 6px 2px; font-style: italic; }
.formula { font-family: "Times New Roman", var(--serif); font-weight: 700; font-size: 19px; text-align: center; padding: 14px 16px; background: var(--surface); border: 1.5px dashed var(--line-2); border-radius: 12px; overflow-x: auto; }
.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); -webkit-overflow-scrolling: touch; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 460px; }
table.tbl th { background: var(--ink); color: var(--paper); text-align: left; padding: 10px 12px; font-weight: 600; font-size: 13.5px; }
[data-theme="dark"] table.tbl th { background: var(--surface-2); color: var(--ink); }
table.tbl td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.tbl tr:nth-child(even) td { background: var(--surface-2); }

.example { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.ex-head { display: flex; gap: 10px; align-items: center; padding: 12px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ex-head .num { font-weight: 800; color: var(--c); }
.ex-body { padding: 16px 18px; }
.ex-body .q p + p { margin-top: 6px; }
.choices { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
@media (min-width: 560px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: default; font-size: 15px; line-height: 1.45; }
button.choice { cursor: pointer; }
button.choice:hover { border-color: var(--c, var(--brand)); }
.choice .L { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--surface-2); border: 1px solid var(--line-2); flex: none; }
.choice.right { border-color: var(--ok); background: var(--ok-soft); }
.choice.right .L { background: var(--ok); color: #fff; border-color: var(--ok); }
.choice.wrong { border-color: var(--bad); background: var(--bad-soft); }
.choice.wrong .L { background: var(--bad); color: #fff; border-color: var(--bad); }
.reveal { margin-top: 14px; }
.reveal > summary { list-style: none; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 12px; background: var(--c, var(--brand)); color: #fff; font-weight: 600; font-size: 15px; user-select: none; }
.reveal > summary::-webkit-details-marker { display: none; }
.reveal[open] > summary { background: var(--ink); color: var(--paper); }
.reveal > summary .o { display: none; }
.reveal[open] > summary .o { display: inline; }
.reveal[open] > summary .c { display: none; }
.steps { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 14px 42px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 9px; background: var(--c, var(--brand)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.steps .why { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); background: var(--surface-2); border-left: 3px solid var(--gold); padding: 7px 11px; border-radius: 0 10px 10px 0; }
.steps .why b { color: #9a6f12; }
[data-theme="dark"] .steps .why b { color: var(--gold); }
.answer { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 700; }

.wr { display: grid; gap: 10px; }
.wr-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) { .wr-row { grid-template-columns: 1fr 1fr; } }
.wr-row div { padding: 10px 14px; border-radius: 12px; font-size: 15px; display: flex; gap: 10px; }
.wr-row .w { background: var(--bad-soft); }
.wr-row .r { background: var(--ok-soft); }
.wr-row b { flex: none; }
.wr-row .w b { color: var(--bad); }
.wr-row .r b { color: var(--ok); }
.basics { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); }
.basics span.k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 3px 8px; border-radius: 6px; }
.passage { border-left: 4px solid var(--c, var(--ok)); background: var(--surface); padding: 14px 18px; border-radius: 0 14px 14px 0; font-size: 15.5px; }
.passage .lbl { font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--c, var(--ok)); text-transform: uppercase; margin-bottom: 6px; }
.passage p + p { margin-top: 8px; }
.sum { border-radius: 18px; padding: 20px; background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft)); border: 1px solid var(--line); }
.sum h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 10px; }
.sum h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: 14px 0 6px; }
.prac-item { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 16px 18px; }
.prac-item + .prac-item { margin-top: 12px; }
.prac-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.check-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.check-row .input { flex: 1; min-width: 150px; }
.verdict { margin-top: 10px; font-weight: 600; padding: 8px 12px; border-radius: 10px; display: none; }
.verdict.ok { display: block; background: var(--ok-soft); color: var(--ok); }
.verdict.bad { display: block; background: var(--bad-soft); color: var(--bad); }
.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; }
.lesson-nav a { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.lesson-nav a:hover { border-color: var(--brand); text-decoration: none; }
.lesson-nav small { color: var(--muted); display: block; font-size: 12.5px; }
.lesson-nav .nx { text-align: right; }
.done-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-top: 26px; }

/* ---------- Exams ---------- */
.drop { display: block; border: 2px dashed var(--line-2); border-radius: 20px; padding: 34px 20px; text-align: center; background: var(--surface); transition: border-color .2s, background .2s; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop .ic { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 12px; display: grid; place-items: center; background: linear-gradient(135deg, #b52424, #7d1414); color: #fff; box-shadow: 0 8px 20px rgba(158, 27, 27, .3); }
.drop .ic svg { width: 30px; height: 30px; }
.drop h3 { font-size: 19px; }
.drop p { margin: 6px 0 14px; color: var(--muted); }
.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--gold)); border-radius: 99px; transition: width .2s; }
.lib-item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.lib-item + .lib-item { border-top: 1px solid var(--line); }
.lib-item .pdf { width: 44px; height: 52px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 11px; flex: none; position: relative; }
.lib-item .nm { font-weight: 600; line-height: 1.35; }
.lib-item .actions { margin-left: auto; display: flex; gap: 6px; flex: none; }
.exam-card { overflow: hidden; }
.exam-card .top { padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.exam-card h3 { font-size: 19px; }
.exam-card .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.parts-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin: 0 20px 4px; gap: 2px; }
.part-rows { padding: 8px 20px 4px; }
.part-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.part-row:first-child { border-top: 0; }
.part-row .dot { width: 12px; height: 12px; border-radius: 4px; }
.part-row .nm { font-weight: 600; font-size: 15px; }
.part-row .sub { font-size: 13px; color: var(--muted); }
.exam-actions { padding: 14px 20px 18px; display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); background: var(--surface-2); }
.mode-switch { display: inline-flex; padding: 4px; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--line); }
.mode-switch button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.mode-switch button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.edit-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.edit-tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px; }
.edit-tbl td { padding: 4px; }
.edit-tbl input { width: 100%; min-width: 52px; padding: 7px 8px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
.note { padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); font-size: 14.5px; }
.note.red { background: var(--brand-soft); }

/* Exam room */
.room { overflow: hidden; width: 100%; display: grid; grid-template-rows: auto 1fr; height: 100vh; height: 100dvh; }
.room-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.room-bar .ttl { min-width: 0; flex: 1; overflow: hidden; }
.room-bar > * { flex: none; }
.room-bar > .ttl { flex: 1 1 auto; }
.room-bar .ttl b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-bar .ttl small { color: var(--muted); font-size: 12.5px; white-space: nowrap; display: block; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .timer { font-size: 18px; padding: 6px 10px; } .room-bar { gap: 8px; padding: 8px; } .room-bar .ttl b { font-size: 14px; } }
.timer { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 22px; padding: 6px 14px; border-radius: 12px; background: var(--ink); color: var(--paper); letter-spacing: .02em; }
.timer svg { width: 18px; height: 18px; }
.timer.warn { background: var(--warn); color: #fff; }
.timer.danger { background: var(--bad); color: #fff; animation: pulse 1s infinite; }
.timer.over { background: var(--bad); color: #fff; }
@keyframes pulse { 50% { opacity: .65; } }
.part-progress { position: absolute; left: 0; bottom: -1px; height: 3px; background: var(--brand); transition: width 1s linear; }
.room-body { display: grid; min-height: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .room-body { grid-template-columns: minmax(0, 1fr) 380px; } .sheet-scrim, #closeSheet { display: none; } .viewer { grid-column: 1; grid-row: 1; } .sheet { grid-column: 2; grid-row: 1; } }
.viewer { overflow: auto; background: #e9e4e2; padding: 14px 10px 90px; min-height: 0; -webkit-overflow-scrolling: touch; }
[data-theme="dark"] .viewer { background: #0e0f13; }
.viewer .pg { margin: 0 auto 14px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); position: relative; border-radius: 4px; overflow: hidden; }
.viewer .pg canvas { display: block; width: 100%; height: auto; }
.viewer .pg .pn { position: absolute; right: 8px; top: 8px; font-size: 11px; background: rgba(43, 45, 66, .7); color: #fff; padding: 2px 8px; border-radius: 99px; }
.viewer-tools { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(16px + var(--safe-b)); display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 5px; box-shadow: var(--shadow-lg); z-index: 6; }
@media (min-width: 980px) { .viewer-tools { left: calc((100% - 380px) / 2); } }
.viewer-tools .icon-btn { border: 0; width: 38px; height: 38px; }
.viewer-tools .sheet-btn { display: inline-flex; }
@media (min-width: 980px) { .viewer-tools .sheet-btn { display: none; } }
.sheet { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
@media (max-width: 979px) {
  .sheet { position: fixed; left: 0; right: 0; bottom: 0; top: 18%; border-radius: 22px 22px 0 0; border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 30; transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  .sheet.open { transform: none; }
  .sheet-scrim { position: fixed; inset: 0; background: rgba(20, 21, 27, .4); z-index: 29; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .sheet-scrim.open { opacity: 1; pointer-events: auto; }
}
.sheet-head { padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-head .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 0 auto 10px; }
@media (min-width: 980px) { .sheet-head .grab { display: none; } }
.qnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px; margin-top: 10px; max-height: 128px; overflow: auto; }
.qnav button { height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; position: relative; }
.qnav button.ans { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.qnav button.flag::after { content: ""; position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); border: 2px solid var(--surface); }
.qnav button.cur { outline: 2px solid var(--brand); outline-offset: 1px; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.qlist { overflow: auto; padding: 8px 12px 14px; flex: 1; min-height: 0; }
.qrow { padding: 10px 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 8px; }
.qrow.cur { background: var(--brand-soft); border-radius: 12px; border-color: transparent; }
.qrow-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.qrow-top b { font-size: 14px; cursor: pointer; }
.qrow-top .ty { font-size: 11.5px; color: var(--muted); }
.qrow-top .fl { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--muted); padding: 2px; }
.qrow-top .fl.on { color: var(--warn); }
.qrow-top .fl svg { width: 18px; height: 18px; }
.bubbles { display: flex; gap: 7px; flex-wrap: wrap; }
.bubble { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; cursor: pointer; font-size: 14px; }
.bubble:hover { border-color: var(--brand); }
.bubble.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.multi .bubble { border-radius: 10px; }
.ds-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.ds-row span { width: 22px; font-weight: 600; color: var(--muted); }
.ds-row button { min-width: 54px; height: 32px; border-radius: 9px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 13px; cursor: pointer; }
.ds-row button.on.d { background: var(--ok); color: #fff; border-color: var(--ok); }
.ds-row button.on.s { background: var(--bad); color: #fff; border-color: var(--bad); }
.slot-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.slot-row label { display: flex; gap: 4px; align-items: center; font-size: 13px; color: var(--muted); }
.slot-row select, .slot-row input { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); min-width: 58px; }
.fill-in { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); }
.fill-in:focus { border-color: var(--brand); outline: none; }
.sheet-foot { padding: 12px 14px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); display: flex; gap: 8px; }
.pause-cover { position: absolute; inset: 0; background: var(--paper); z-index: 20; display: grid; place-items: center; text-align: center; padding: 20px; }
.interstitial { min-height: 100dvh; display: grid; place-items: center; padding: 24px 18px; }
.interstitial .card { max-width: 520px; width: 100%; text-align: center; padding: 30px 24px; }
.big-ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 16px; color: #fff; }
.big-ic svg { width: 34px; height: 34px; }

/* Results */
.score-hero { display: grid; gap: 18px; align-items: center; }
@media (min-width: 760px) { .score-hero { grid-template-columns: 220px 1fr; } }
.ring { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.ring svg { width: 200px; height: 200px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 14; }
.ring .bg { stroke: var(--surface-2); }
.ring .fg { stroke: url(#rg); stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { font-size: 44px; line-height: 1; font-family: var(--serif); }
.ring .val span { font-size: 13px; color: var(--muted); }
.part-score { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.part-score .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.part-score b { font-size: 22px; }
.part-score .progress { margin-top: 8px; }
.part-score .progress i { background: var(--pc); }
.rv-list { display: grid; gap: 8px; }
.rv { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.rv .n { font-weight: 800; text-align: center; border-radius: 10px; padding: 6px 0; font-size: 14px; }
.rv.ok .n { background: var(--ok-soft); color: var(--ok); }
.rv.bad .n { background: var(--bad-soft); color: var(--bad); }
.rv.skip .n { background: var(--surface-2); color: var(--muted); }
.rv.open .n { background: var(--gold-soft); color: #9a6f12; }
.rv .a { font-size: 14px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.rv .a span { color: var(--muted); }

/* Progress */
.stat { padding: 18px; }
.stat b { font-size: 30px; font-family: var(--serif); display: block; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }
.hist-item { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.hist-item:first-child { border-top: 0; }
.hist-item .sc { font-weight: 800; font-size: 18px; min-width: 64px; text-align: right; }

/* Search, modal, lightbox, toasts */
.search-layer { position: fixed; inset: 0; z-index: 80; background: rgba(20, 21, 27, .45); backdrop-filter: blur(4px); display: flex; justify-content: center; padding: 10px; }
.search-box { width: 100%; max-width: 680px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); align-self: flex-start; margin-top: 4vh; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.search-row { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.search-row input { flex: 1; border: 0; outline: none; background: none; font-size: 17px; min-width: 0; }
.search-results { overflow: auto; padding: 6px; }
.sr { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); align-items: flex-start; }
.sr:hover, .sr.on { background: var(--surface-2); text-decoration: none; }
.sr .t { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); flex: none; margin-top: 2px; }
.sr .x { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
mark { background: var(--gold-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.modal { position: fixed; inset: 0; z-index: 85; background: rgba(20, 21, 27, .55); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .modal { align-items: center; padding: 20px; } }
.modal-card { background: var(--surface); width: 100%; max-width: 860px; max-height: 92vh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 700px) { .modal-card { border-radius: 22px; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.modal-head b { flex: 1; }
.modal-body { overflow: auto; padding: 14px; background: var(--surface-2); }
.modal-body canvas { width: 100%; height: auto; display: block; margin: 0 auto 12px; background: #fff; border-radius: 6px; box-shadow: var(--shadow); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 14, .9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; gap: 10px; }
.lightbox img { max-height: 82vh; max-width: 100%; background: #fff; border-radius: 10px; object-fit: contain; }
.lightbox p { color: #eee; font-size: 14px; margin: 0; text-align: center; max-width: 720px; }
.lightbox .icon-btn { position: absolute; top: 14px; right: 14px; }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); top: 14px; z-index: 95; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 500; font-size: 15px; animation: tin .25s ease; }
.toast.warn { background: var(--warn); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

.site-foot { border-top: 1px solid var(--line); margin-top: 30px; background: var(--paper-2); }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 24px 18px; display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.foot-in b { color: var(--ink); }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; }
.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.spin { width: 36px; height: 36px; border: 3px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: sp 0.8s linear infinite; margin: 30px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
@media print { .topbar, .tabbar, .site-foot, .jump, .side-toc { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
