/* APOSD 精读站：共享样式（派生自 OSTEP 图解站）。所有章节页只引用这一份，不要在页面里重定义这些 token。 */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f0eee8;
  --fg: #1d1d1f;
  --muted: #62625e;
  --faint: #9a9892;
  --border: #dedbd2;
  --accent: #2f5bd3;
  --accent-soft: #e6ecfb;
  --ok: #1f8a4c;
  --ok-soft: #e3f4ea;
  --bad: #c2362b;
  --bad-soft: #fbe6e3;
  --warn: #b7791f;
  --warn-soft: #fcf1dc;
  --code-bg: #f3f1ea;
  --on-accent: #ffffff;
  /* 进程/线程/实体配色：模拟器里 A、B、C… 一律用 --c1..--c8 */
  --c1: #3b6fe0; --c2: #e0673b; --c3: #2f9e6a; --c4: #a855c9;
  --c5: #d6a21e; --c6: #1ca3b8; --c7: #d94f8a; --c8: #6b7280;
  --part0: #6b7280; --part1: #3b6fe0; --part2: #e0673b; --part3: #2f9e6a; --part4: #a855c9; --part5: #b7791f;
  /* 代码高亮 */
  --tk-k: #a626a4; --tk-t: #0e7490; --tk-s: #2f8132; --tk-c: #8a8780; --tk-n: #b45309; --tk-p: #9d4edd;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, "Noto Sans Mono CJK SC", monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #16171a; --surface: #1f2024; --surface-2: #28292e; --fg: #e8e6e1; --muted: #a3a19b; --faint: #6d6b66;
  --border: #34353b; --accent: #7aa2ff; --accent-soft: #232c45; --ok: #4cc27f; --ok-soft: #1b3326;
  --bad: #f07167; --bad-soft: #3a2220; --warn: #c48a18; --warn-soft: #3a2f18; --code-bg: #1a1b1f; --on-accent: #10131a;
  /* 实体色既当文字色（在深色底上）又当色块底色（上面写白字）：亮度取中间值，两种用法对比度都 ≥ 3 */
  --c1: #6590ff; --c2: #ff6021; --c3: #33a870; --c4: #c075e3; --c5: #bd8c0f; --c6: #25a2b4; --c7: #f0639c; --c8: #8c95a2;
  --part1: #6f97ff; --part2: #ff8a5c; --part3: #4cc98d; --part4: #c98ae6; --part5: #d9a441;
  --tk-k: #d58fe0; --tk-t: #5cc6d6; --tk-s: #8fcf7f; --tk-c: #858279; --tk-n: #e7a65a; --tk-p: #c39cf0;
  --shadow: 0 1px 2px rgba(0,0,0,.3);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16171a; --surface: #1f2024; --surface-2: #28292e; --fg: #e8e6e1; --muted: #a3a19b; --faint: #6d6b66;
    --border: #34353b; --accent: #7aa2ff; --accent-soft: #232c45; --ok: #4cc27f; --ok-soft: #1b3326;
    --bad: #f07167; --bad-soft: #3a2220; --warn: #c48a18; --warn-soft: #3a2f18; --code-bg: #1a1b1f; --on-accent: #10131a;
    --c1: #6590ff; --c2: #ff6021; --c3: #33a870; --c4: #c075e3; --c5: #bd8c0f; --c6: #25a2b4; --c7: #f0639c; --c8: #8c95a2;
    --part1: #6f97ff; --part2: #ff8a5c; --part3: #4cc98d; --part4: #c98ae6; --part5: #d9a441;
  --tk-k: #d58fe0; --tk-t: #5cc6d6; --tk-s: #8fcf7f; --tk-c: #858279; --tk-n: #e7a65a; --tk-p: #c39cf0;
    --shadow: 0 1px 2px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.75 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

/* ---------- 顶栏（由 ostep.js 注入） ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1080px; margin: 0 auto; padding: 8px 20px; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.topbar .home { font-weight: 700; color: var(--fg); white-space: nowrap; }
.topbar .crumb { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.topbar button, .topbar a.btn { font: inherit; font-size: 13px; }

/* ---------- 版式 ---------- */
main { max-width: 920px; margin: 0 auto; padding: 32px 20px 80px; }
.chapter-head { margin: 8px 0 28px; }
.chapter-head .kicker { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chapter-head .kicker .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chapter-head h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin: 8px 0 4px; letter-spacing: -.01em; }
.chapter-head .en { color: var(--muted); font-size: 17px; margin: 0; }
h2 { font-size: 24px; margin: 56px 0 12px; padding-top: 8px; line-height: 1.3; }
h2 .num { color: var(--faint); font-weight: 500; margin-right: 8px; }
h3 { font-size: 19px; margin: 32px 0 8px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 1.4em; margin: 0 0 14px; }
li { margin: 4px 0; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* 本页目录 */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; font-size: 14.5px; margin: 0 0 24px; }
.toc b { display: block; font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.toc ol { margin: 0; columns: 2; column-gap: 28px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- 标注框 ---------- */
.crux, .callout, .tip, .warn, .aside, .key {
  border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; border: 1px solid var(--border); background: var(--surface);
}
.crux { border-left: 4px solid var(--accent); background: var(--accent-soft); }
.crux::before { content: "关键问题 · THE CRUX"; display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 4px; }
.tip { border-left: 4px solid var(--ok); background: var(--ok-soft); }
.tip::before { content: "提示"; display: block; font-size: 12px; font-weight: 700; color: var(--ok); margin-bottom: 4px; }
.warn { border-left: 4px solid var(--bad); background: var(--bad-soft); }
.warn::before { content: "常见误区"; display: block; font-size: 12px; font-weight: 700; color: var(--bad); margin-bottom: 4px; }
.aside { border-left: 4px solid var(--warn); background: var(--warn-soft); }
.aside::before { content: attr(data-title); display: block; font-size: 12px; font-weight: 700; color: var(--warn); margin-bottom: 4px; }
.aside:not([data-title])::before { content: "旁注"; }
.key { border-left: 4px solid var(--fg); }
.crux > :last-child, .callout > :last-child, .tip > :last-child, .warn > :last-child, .aside > :last-child, .key > :last-child { margin-bottom: 0; }

/* 要点卡片网格 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.card h4 { margin: 0 0 6px; font-size: 15.5px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- 代码 ---------- */
code { font-family: var(--mono); font-size: .88em; background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
pre { position: relative; background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; font: 13.5px/1.6 var(--mono); margin: 14px 0; }
pre code { background: none; padding: 0; font-size: inherit; }
pre .copy { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity .15s; }
pre:hover .copy { opacity: 1; }
pre .hl { background: color-mix(in srgb, var(--warn) 22%, transparent); display: inline-block; width: 100%; }
.cmd::before { content: "$ "; color: var(--faint); user-select: none; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; margin: 14px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
th, td { border-bottom: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; font-size: 13.5px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 图 ---------- */
figure.fig { margin: 22px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; overflow-x: auto; }
figure.fig svg { display: block; margin: 0 auto; height: auto; }
figure.fig figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; text-align: center; }
/* SVG 内常用类：一律用 token，保证深浅主题都清楚 */
svg text { fill: var(--fg); font-family: var(--font); }
svg .mono, svg text.mono { font-family: var(--mono); }
svg .t-muted { fill: var(--muted); }
svg .stroke { stroke: var(--fg); fill: none; }
svg .box { fill: var(--surface-2); stroke: var(--border); }
svg .box-strong { fill: var(--surface); stroke: var(--fg); }
svg .accent { fill: var(--accent); }
svg .accent-soft { fill: var(--accent-soft); stroke: var(--accent); }
svg .ok-soft { fill: var(--ok-soft); stroke: var(--ok); }
svg .bad-soft { fill: var(--bad-soft); stroke: var(--bad); }
svg .warn-soft { fill: var(--warn-soft); stroke: var(--warn); }
svg .arrow { stroke: var(--muted); fill: none; stroke-width: 1.5; }

/* ---------- 交互模拟器 ---------- */
.sim { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin: 26px 0; box-shadow: var(--shadow); overflow: hidden; }
.sim-head { padding: 12px 18px; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; background: var(--surface-2); }
.sim-head .tag { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--on-accent); background: var(--accent); border-radius: 4px; padding: 1px 7px; }
.sim-head h3, .sim-head h4 { margin: 0; font-size: 16.5px; }
.sim-head .desc { color: var(--muted); font-size: 14px; flex-basis: 100%; }
.sim-body { padding: 16px 18px; }
.sim-body > :last-child { margin-bottom: 0; }
.controls { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 14px; font-size: 14px; }
.controls label { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.controls .sep { width: 1px; height: 22px; background: var(--border); }
.stage { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px; overflow-x: auto; min-height: 60px; }
.readout { font-family: var(--mono); font-size: 13.5px; background: var(--code-bg); border-radius: 8px; padding: 10px 12px; margin-top: 12px; white-space: pre-wrap; }
.narrate { margin-top: 12px; padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); font-size: 14.5px; min-height: 44px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.stat { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; }
.stat .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .l { font-size: 12.5px; color: var(--muted); }

button, .btn { font: 14px var(--font); border: 1px solid var(--border); background: var(--surface); color: var(--fg); padding: 6px 12px; border-radius: 7px; cursor: pointer; line-height: 1.3; }
button:hover, .btn:hover { border-color: var(--accent); text-decoration: none; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button:disabled { opacity: .45; cursor: not-allowed; }
input[type="number"], input[type="text"], select, textarea { font: 14px var(--mono); background: var(--surface); color: var(--fg); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; }
input[type="number"] { width: 5.5em; }
input[type="range"] { accent-color: var(--accent); }
textarea { width: 100%; min-height: 80px; }

/* 通用小方块（内存格、页框、磁盘块、队列元素） */
.cell { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); font: 12.5px var(--mono); margin: 2px; transition: background .2s, border-color .2s, transform .2s; }
.cell.on { border-color: var(--accent); background: var(--accent-soft); }
.cell.hit { border-color: var(--ok); background: var(--ok-soft); }
.cell.miss { border-color: var(--bad); background: var(--bad-soft); }
.cell.pulse { transform: scale(1.08); }
.pill { display: inline-block; font-size: 12.5px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }

/* ---------- 练习 ---------- */
.exercise { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin: 16px 0; }
.exercise .q::before { content: "预测 → 验证"; display: block; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .05em; margin-bottom: 4px; }
details.reveal { margin-top: 8px; }
details.reveal > summary { cursor: pointer; color: var(--accent); font-size: 14.5px; }
details.reveal[open] > summary { margin-bottom: 8px; }
details.reveal > div { border-left: 3px solid var(--ok); padding: 4px 0 4px 14px; }

.mcq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin: 14px 0; }
.mcq .q { font-weight: 600; margin-bottom: 8px; }
.mcq .opts { display: grid; gap: 6px; }
.mcq .opts button { text-align: left; width: 100%; }
.mcq .opts button.right { border-color: var(--ok); background: var(--ok-soft); }
.mcq .opts button.wrong { border-color: var(--bad); background: var(--bad-soft); }
.mcq .explain { display: none; margin-top: 10px; font-size: 14.5px; border-left: 3px solid var(--ok); padding-left: 12px; }
.mcq.answered .explain { display: block; }
.quiz-score { font-size: 14px; color: var(--muted); }

/* 实验 */
.lab { border: 1px dashed var(--border); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; background: var(--surface); }
.lab::before { content: "动手重构 · 在 Linux / WSL 终端运行"; display: block; font-size: 12px; font-weight: 700; color: var(--ok); letter-spacing: .05em; margin-bottom: 6px; }
.lab-src { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.lab-src code { overflow-wrap: anywhere; }

/* ---------- 页脚导航 ---------- */
.chapter-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.chapter-nav a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; color: var(--fg); }
.chapter-nav a:hover { border-color: var(--accent); text-decoration: none; }
.chapter-nav small { display: block; color: var(--muted); font-size: 12.5px; }
.chapter-nav .next { text-align: right; grid-column: 2; }
.done-box { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 40px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: 15px; }
.done-box input { width: 18px; height: 18px; accent-color: var(--ok); }

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  main { padding: 20px 16px 60px; }
  .chapter-nav { grid-template-columns: 1fr; }
  .chapter-nav .next { grid-column: 1; }
}
.site-footer { text-align: center; font-size: 12.5px; padding: 18px 16px 28px; border-top: 1px solid var(--border); }
.site-footer a { color: var(--muted); }
@media print { .site-footer { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ================= APOSD 新增组件 ================= */
/* 顶栏导航 */
.topnav { display: flex; gap: 2px; }
.topnav a.nav { color: var(--muted); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.topnav a.nav:hover { color: var(--fg); background: var(--surface-2); text-decoration: none; }
.topnav a.nav.on { color: var(--accent); font-weight: 600; }
@media (max-width: 560px) { .topbar .crumb, .topbar a.btn { display: none; } .topnav { margin-left: auto; } .topbar-inner { padding: 8px 12px; gap: 8px; } }

/* 代码高亮与行号 */
.tk-k { color: var(--tk-k); } .tk-t { color: var(--tk-t); } .tk-s { color: var(--tk-s); }
.tk-c { color: var(--tk-c); font-style: italic; } .tk-n { color: var(--tk-n); } .tk-p { color: var(--tk-p); }
pre.numbered code, pre.code code { display: block; }
pre.code .ln { display: block; white-space: pre; min-height: 1.6em; }
pre.numbered .ln { display: block; padding-left: 3.2em; position: relative; min-height: 1.6em; white-space: pre; }
pre.numbered .ln::before { content: attr(data-n); position: absolute; left: 0; width: 2.4em; text-align: right; color: var(--faint); user-select: none; }
pre .ln.mark { background: color-mix(in srgb, var(--warn) 20%, transparent); box-shadow: inset 3px 0 0 var(--warn); }
pre .ln.mark-ok { background: color-mix(in srgb, var(--ok) 18%, transparent); box-shadow: inset 3px 0 0 var(--ok); }

/* 改前 / 改后 */
.ba { margin: 16px 0; }
.ba-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: -1px; }
.ba-tab { border-bottom-left-radius: 0; border-bottom-right-radius: 0; font-size: 13.5px; color: var(--muted); }
.ba-tab.on { color: var(--fg); font-weight: 600; background: var(--code-bg); border-bottom-color: var(--code-bg); }
.ba-tab.tone-bad.on { box-shadow: inset 0 3px 0 var(--bad); }
.ba-tab.tone-ok.on { box-shadow: inset 0 3px 0 var(--ok); }
.ba-tab.tone-neutral.on { box-shadow: inset 0 3px 0 var(--accent); }
.ba-pane > pre:first-child { margin-top: 0; border-top-left-radius: 0; }
.ba-pane > p { font-size: 14.5px; }

/* 徽章 */
.badge { display: inline-block; font-size: 12.5px; line-height: 1.5; padding: 1px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; margin: 1px 2px; }
.badge:hover { text-decoration: none; filter: brightness(1.1); }
.flag-badge { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: var(--bad-soft); }
.principle-badge { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-soft); }

/* 读前 / 读后 */
.reading { border-left: 4px solid var(--part1); background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); border-left-width: 4px; padding: 14px 18px; margin: 18px 0; }
.reading::before { content: attr(data-title); display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.reading:not([data-title])::before { content: "读原书时留意"; }
.reading > :last-child { margin-bottom: 0; }
.counter { border-left: 4px solid var(--warn); background: var(--warn-soft); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; border: 1px solid var(--border); border-left-width: 4px; }
.counter::before { content: attr(data-title); display: block; font-size: 12px; font-weight: 700; color: var(--warn); margin-bottom: 4px; }
.counter:not([data-title])::before { content: "反方观点 / 适用边界"; }
.counter > :last-child { margin-bottom: 0; }
blockquote.quote { margin: 16px 0; padding: 8px 16px; border-left: 3px solid var(--faint); color: var(--muted); font-style: italic; }
blockquote.quote cite { display: block; font-style: normal; font-size: 13px; margin-top: 4px; }
.note-tip { margin: 4px 0 14px; }

/* ================= 训练题（drill.js） ================= */
.drill { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin: 18px 0; box-shadow: var(--shadow); overflow: hidden; }
.drill-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.drill-head .type { --tc: var(--accent); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tc) 50%, transparent); border-radius: 4px; padding: 0 7px; }
.drill-head .type.t-flag { --tc: var(--bad); } .drill-head .type.t-ab { --tc: var(--c4); }
.drill-head .type.t-write { --tc: var(--ok); } .drill-head .type.t-judge { --tc: var(--accent); } .drill-head .type.t-card { --tc: var(--muted); }
.drill-head h4 { margin: 0; font-size: 15.5px; }
.drill-head .meta { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.drill-body { padding: 14px 16px; }
.drill-body > :last-child { margin-bottom: 0; }
.drill-body pre { margin: 10px 0; }
.drill .choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; margin: 12px 0; }
.drill .choices button { text-align: left; }
.drill .choices button.sel { border-color: var(--accent); background: var(--accent-soft); }
.drill .choices button.right { border-color: var(--ok); background: var(--ok-soft); }
.drill .choices button.wrong { border-color: var(--bad); background: var(--bad-soft); }
.drill .choices button.missed { border-color: var(--ok); border-style: dashed; }
.drill .opts { display: grid; gap: 6px; margin: 12px 0; }
.drill .opts button { text-align: left; width: 100%; }
.drill .opts button.right { border-color: var(--ok); background: var(--ok-soft); }
.drill .opts button.wrong { border-color: var(--bad); background: var(--bad-soft); }
.drill .ab-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.drill .ab-col { min-width: 0; }
.drill .ab-col h5 { margin: 6px 0 0; font-size: 14px; }
.drill .verdict { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 14.5px; }
.drill .verdict.ok { background: var(--ok-soft); border-left: 3px solid var(--ok); }
.drill .verdict.partial { background: var(--warn-soft); border-left: 3px solid var(--warn); }
.drill .verdict.bad { background: var(--bad-soft); border-left: 3px solid var(--bad); }
.drill .explain { margin-top: 10px; font-size: 14.5px; }
.drill .explain > :last-child { margin-bottom: 0; }
.drill .rubric { list-style: none; padding: 0; margin: 8px 0; }
.drill .rubric li { display: flex; gap: 8px; align-items: flex-start; }
.drill .rubric input { margin-top: 6px; accent-color: var(--ok); }
.drill .rate { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; align-items: center; font-size: 14px; }
.drill .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.drill .card-face { font-size: 17px; padding: 8px 0; }
.drill .card-back { border-top: 1px dashed var(--border); margin-top: 10px; padding-top: 10px; }
.drill-embed-more { font-size: 14px; margin: -6px 0 18px; }
