/* AI-DLC Academy — warm editorial dark / paper light */

:root {
  --inc: #3B82F6;
  --con: #10B981;
  --ops: #F59E0B;
  --legacy: #8A8F98;
  --warn: #E5484D;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --rail-w: 280px;
  --hud-w: 292px;
  --top-h: 56px;
  --prose: 760px;
  --wide: 1040px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0D10;
  --panel: #12151A;
  --panel-2: #171B21;
  --line: #22262F;
  --line-2: #2E333D;
  --ink: #ECE8DF;
  --ink-2: #B9B6AE;
  --muted: #858A93;
  --code-bg: #0E1114;
  --tint-inc: rgba(59,130,246,.12);
  --tint-con: rgba(16,185,129,.12);
  --tint-ops: rgba(245,158,11,.13);
  --tint-warn: rgba(229,72,77,.12);
  --shadow-pop: 0 18px 40px -18px rgba(0,0,0,.7);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #FAF9F5;
  --panel: #F2F0E8;
  --panel-2: #ECE9DF;
  --line: #E0DCD0;
  --line-2: #D3CEC0;
  --ink: #17191D;
  --ink-2: #3D4048;
  --muted: #6D7079;
  --code-bg: #F0EDE4;
  --legacy: #6E737C;
  --inc: #2563EB;
  --con: #0E9F6E;
  --ops: #C27C06;
  --tint-inc: rgba(37,99,235,.09);
  --tint-con: rgba(14,159,110,.10);
  --tint-ops: rgba(194,124,6,.11);
  --tint-warn: rgba(229,72,77,.09);
  --shadow-pop: 0 18px 40px -20px rgba(40,30,10,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-sans);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: color-mix(in srgb, var(--inc) 35%, transparent); }
:focus-visible { outline: 2px solid var(--inc); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--panel); padding: 8px 12px; border: 1px solid var(--line); }
.skip:focus { left: 8px; }

/* ── Top bar ───────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--top-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 16px 0 20px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 15px; }
.mark { width: 26px; height: 26px; fill: none; stroke-width: 2.6; stroke-linecap: round; }
.a-inc { stroke: var(--inc); } .a-con { stroke: var(--con); } .a-ops { stroke: var(--ops); }
.topnav { display: flex; gap: 4px; margin-left: 12px; }
.topnav a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 6px 10px; border-radius: 6px; letter-spacing: -0.01em; }
.topnav a:hover { color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--ink); background: var(--panel); }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sync { font-size: 12px; color: var(--muted); margin-right: 6px; white-space: nowrap; }
.sync::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-right: 6px; vertical-align: 1px; }
.sync[data-state="synced"]::before { background: var(--con); }
.sync[data-state="offline"]::before { background: var(--ops); }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: transparent; border: 1px solid transparent; border-radius: 7px; cursor: pointer; color: var(--ink-2);
}
.icon-btn:hover { border-color: var(--line); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }
.rail-toggle, .hud-toggle { display: none; }

/* ── Workspace ─────────────────────────────────────── */
.workspace {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--hud-w);
  min-height: calc(100vh - var(--top-h));
}
.rail, .hud {
  position: sticky; top: var(--top-h);
  height: calc(100vh - var(--top-h));
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.rail { border-right: 1px solid var(--line); padding: 22px 0 40px; }
.hud { border-left: 1px solid var(--line); padding: 22px 20px 40px; }
.stage { min-width: 0; padding: 40px 48px 120px; outline: none; }
.scrim { position: fixed; inset: var(--top-h) 0 0; background: rgba(0,0,0,.45); z-index: 30; }

/* ── Rail: lifecycle spine ─────────────────────────── */
.rail-head { padding: 0 20px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rail-course { font: 500 19px/1.2 var(--font-display); letter-spacing: -0.01em; margin: 0 0 4px; }
.rail-course a { text-decoration: none; }
.rail-sub { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.streak { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.streak-bars { display: flex; gap: 3px; }
.streak-bars i { width: 5px; height: 14px; border-radius: 1px; background: var(--line-2); }
.streak-bars i.on { background: var(--con); }
.progress-line { height: 3px; background: var(--line); border-radius: 2px; margin-top: 14px; overflow: hidden; }
.progress-line > span { display: block; height: 100%; background: var(--ink-2); transition: width .5s var(--ease); }

.rail-module { padding: 10px 0 14px; }
.rail-module-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 20px 6px; font-size: 12.5px; color: var(--muted); }
.rail-module-title strong { color: var(--ink-2); font-weight: 600; letter-spacing: -0.01em; }
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-item a {
  position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  padding: 8px 18px 8px 20px; text-decoration: none; font-size: 14px; line-height: 1.35; color: var(--ink-2); letter-spacing: -0.01em;
}
.rail-item a:hover { color: var(--ink); background: var(--panel); }
.rail-item a[aria-current="page"] { color: var(--ink); background: var(--panel); }
.rail-item a[aria-current="page"]::after { content: ""; position: absolute; right: 0; top: 6px; bottom: 6px; width: 2px; background: var(--ph); }
/* the spine */
.rail-item a::before { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--ph) 45%, var(--line)); }
.rail-item:first-child a::before { top: 14px; }
.rail-item:last-child a::before { bottom: calc(100% - 14px); }
.node {
  position: relative; z-index: 1; width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--bg); border: 1.5px solid color-mix(in srgb, var(--ph) 70%, var(--line)); color: var(--ink-2);
}
.node.done { background: var(--ph); border-color: var(--ph); color: var(--bg); }
.node.done svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.rail-item .meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.rail-cert { margin: 16px 20px 0; padding: 14px; border: 1px dashed var(--line-2); border-radius: 10px; font-size: 13px; color: var(--muted); }
.rail-cert a { color: var(--ink); font-weight: 600; text-decoration: none; }
.rail-cert.ready { border-style: solid; border-color: color-mix(in srgb, var(--ops) 50%, var(--line)); }

/* ── HUD ───────────────────────────────────────────── */
.hud-block { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.hud-block:last-child { border-bottom: 0; }
.hud h2 { font: 600 13px/1.3 var(--font-sans); color: var(--muted); margin: 0 0 12px; letter-spacing: -0.005em; }
.rank-name { font: 500 21px/1.15 var(--font-display); margin: 0 0 2px; letter-spacing: -0.01em; }
.xp-total { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.xp-total strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.xp-bar { height: 6px; margin: 12px 0 8px; border-radius: 3px; background: var(--line); overflow: hidden; }
.xp-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--inc), var(--con) 55%, var(--ops)); transition: width .6s var(--ease); }
.xp-next { font-size: 12.5px; color: var(--muted); }
.rank-ladder { list-style: none; margin: 14px 0 0; padding: 0; font-size: 12.5px; }
.rank-ladder li { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-ladder li.reached { color: var(--ink-2); }
.rank-ladder li.current { color: var(--ink); font-weight: 600; }

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-badge { width: 44px; text-align: center; font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.mini-badge svg { width: 44px; height: 44px; margin-bottom: 4px; }

.outline { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.outline a { display: block; padding: 5px 0 5px 12px; border-left: 1px solid var(--line); color: var(--muted); text-decoration: none; line-height: 1.35; }
.outline a:hover { color: var(--ink); }
.outline a.active { color: var(--ink); border-left-color: var(--ph, var(--ink)); }

.gloss-search { width: 100%; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font: inherit; font-size: 13.5px; }
.gloss-list { margin: 10px 0 0; padding: 0; }
.gloss-list details { border-bottom: 1px solid var(--line); }
.gloss-list summary { cursor: pointer; padding: 7px 0; font-size: 13.5px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.gloss-list summary::-webkit-details-marker { display: none; }
.gloss-list summary::after { content: "+"; color: var(--muted); }
.gloss-list details[open] summary::after { content: "−"; }
.gloss-list p { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* ── Typography ────────────────────────────────────── */
.prose { max-width: var(--prose); }
.wide { max-width: var(--wide); }
h1, h2, h3 { text-wrap: balance; }
.display {
  font: 400 clamp(36px, 4.6vw, 58px)/1.02 var(--font-display);
  letter-spacing: -0.025em; margin: 0 0 18px;
}
.lesson-title { font: 400 clamp(32px, 3.8vw, 48px)/1.06 var(--font-display); letter-spacing: -0.022em; margin: 10px 0 14px; }
.dek { font: 400 20px/1.45 var(--font-display); color: var(--ink-2); margin: 0 0 22px; max-width: 640px; font-style: italic; }
.prose h2, .section-title {
  font: 500 28px/1.15 var(--font-display); letter-spacing: -0.018em; margin: 52px 0 14px;
}
.prose p { margin: 0 0 18px; color: var(--ink-2); font-size: 17px; line-height: 1.68; }
.prose p strong, .prose li strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 0 0 22px; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 12px; color: var(--ink-2); font-size: 16.5px; line-height: 1.62; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 1px; background: var(--muted); }
code { font: 500 0.88em var(--font-mono); background: var(--panel); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; color: var(--ink); white-space: nowrap; }

.lesson-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13.5px; color: var(--muted); }
.phase-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 500; }
.phase-chip::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--ph); }
.crumb { color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--ink); }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 10px 16px; border-radius: 7px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--ink); text-decoration: none; cursor: pointer;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--bg)); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── Catalog / course overview ─────────────────────── */
.mast { max-width: var(--wide); padding: 16px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.mast-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.mast p.lead { font-size: 18px; color: var(--ink-2); max-width: 560px; margin: 0 0 26px; line-height: 1.6; }
.mast-loop svg { width: 100%; height: auto; max-width: 380px; margin-left: auto; }

.catalog { max-width: var(--wide); display: grid; gap: 0; }
.cat-row {
  display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 22px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.cat-row .bar { align-self: stretch; border-radius: 3px; background: var(--ph); opacity: .85; }
.cat-row.planned .bar { opacity: .3; }
.cat-row h3 { font: 400 26px/1.15 var(--font-display); letter-spacing: -0.015em; margin: 0 0 4px; }
.cat-row .sub { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.cat-row p { color: var(--ink-2); margin: 0; max-width: 620px; font-size: 15px; }
.cat-row .facts { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.cat-row .facts strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
a.cat-row:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.status { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.status.available { color: var(--con); border-color: color-mix(in srgb, var(--con) 45%, transparent); }

.mod-section { max-width: var(--wide); margin-bottom: 40px; }
.mod-head { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 8px; }
.mod-head h2 { font: 400 26px/1.15 var(--font-display); letter-spacing: -0.015em; margin: 0; }
.mod-head p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.mod-head svg { width: 52px; height: 52px; }
.mod-lessons { list-style: none; padding: 0; margin: 0 0 0 74px; border-top: 1px solid var(--line); }
.mod-lessons li a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.mod-lessons .num { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.mod-lessons .t { font-weight: 600; letter-spacing: -0.015em; }
.mod-lessons .d { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.mod-lessons .state { font-size: 13px; color: var(--muted); white-space: nowrap; }
.mod-lessons .state.done { color: var(--con); }
.sources { font-size: 14px; color: var(--muted); }
.sources a { color: var(--ink-2); }

/* ── Lesson player ─────────────────────────────────── */
.player {
  max-width: var(--wide); margin: 26px 0 8px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden;
}
.player-tabs { display: flex; gap: 2px; padding: 8px 10px 0; }
.player-tabs button { background: none; border: 0; padding: 6px 10px; border-radius: 6px 6px 0 0; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; }
.player-tabs button[aria-selected="true"] { color: var(--ink); background: var(--bg); }
.player-screen {
  position: relative; aspect-ratio: 960 / 420; background: var(--bg);
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 24px 24px; background-position: 12px 12px;
}
.player-screen svg.board { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-screen video, .player-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.board .pn { transition: transform .75s var(--ease), opacity .45s ease; }
.board .pn.enter { opacity: 0; }
.board .pn rect.box { fill: var(--panel); stroke: var(--line-2); stroke-width: 1; }
.board .pn rect.tick { fill: var(--tone); }
.board .pn.t-warn rect.box { fill: var(--tint-warn); stroke: color-mix(in srgb, var(--warn) 45%, transparent); }
.board .pn.t-inc rect.box { fill: var(--tint-inc); stroke: color-mix(in srgb, var(--inc) 40%, transparent); }
.board .pn.t-con rect.box { fill: var(--tint-con); stroke: color-mix(in srgb, var(--con) 40%, transparent); }
.board .pn.t-ops rect.box { fill: var(--tint-ops); stroke: color-mix(in srgb, var(--ops) 45%, transparent); }
.board .pn text.l { font: 600 17px var(--font-sans); letter-spacing: -0.02em; fill: var(--ink); }
.board .pn text.s { font: 400 13.5px var(--font-sans); fill: var(--muted); }
.board .edge { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.board .edge.dash { stroke-dasharray: 5 5; }
.board .edge.draw { animation: draw .7s var(--ease) forwards; }
.board .tag { font: 400 34px var(--font-display); letter-spacing: -0.02em; transition: opacity .4s; }
.board .scene-no { font: 500 12px var(--font-sans); fill: var(--muted); }
@keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }

.caption {
  min-height: 74px; padding: 14px 20px 12px; border-top: 1px solid var(--line);
  font: 400 17.5px/1.5 var(--font-display); color: var(--ink); letter-spacing: -0.005em;
}
.caption[hidden] { display: none; }
.controls { display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.ctl { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; color: var(--ink); flex: none; }
.ctl:hover { border-color: var(--muted); }
.ctl svg { width: 15px; height: 15px; fill: currentColor; }
.ctl.toggle svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ctl.toggle[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ctl.play { width: 40px; height: 40px; background: var(--ink); color: var(--bg); border-color: var(--ink); border-radius: 50%; }
.timeline { position: relative; flex: 1; height: 26px; cursor: pointer; touch-action: none; display: flex; gap: 3px; align-items: center; }
.timeline .seg { position: relative; height: 5px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.timeline .seg > span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--tone, var(--ink)); }
.timeline:hover .seg { height: 7px; }
.timeline .knob { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--panel); pointer-events: none; }
.time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 78px; text-align: right; }
.player-foot { display: flex; justify-content: space-between; gap: 10px; padding: 0 16px 12px; font-size: 12.5px; color: var(--muted); }
.player-foot .done { color: var(--con); }

/* ── Content blocks ────────────────────────────────── */
.summary-card { margin: 34px 0 6px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.summary-card h2 { margin-top: 0 !important; }
.objectives { counter-reset: obj; list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.objectives li { counter-increment: obj; display: grid; grid-template-columns: 28px 1fr; gap: 8px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; padding: 0 !important; }
.objectives li::before { content: counter(obj); position: static !important; width: 22px !important; height: 22px !important; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: var(--muted); background: none !important; margin-top: 1px; }

.matrix-wrap { margin: 26px 0 30px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.matrix { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.matrix caption { text-align: left; padding: 14px 16px 12px; font-weight: 600; letter-spacing: -0.015em; border-bottom: 1px solid var(--line); background: var(--panel); }
.matrix th, .matrix td { text-align: left; vertical-align: top; padding: 11px 16px; border-bottom: 1px solid var(--line); line-height: 1.45; }
.matrix thead th { font-weight: 600; color: var(--muted); font-size: 13px; background: var(--panel); }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix td:first-child { font-weight: 600; color: var(--ink); }
.matrix td { color: var(--ink-2); }
.matrix td:last-child { color: var(--ink); }
.matrix thead th:last-child { color: var(--ph, var(--ink)); }

.scenario {
  margin: 28px 0; padding: 20px 24px; border-left: 2px solid var(--ph); background: linear-gradient(90deg, color-mix(in srgb, var(--ph) 8%, transparent), transparent 70%);
  border-radius: 0 10px 10px 0;
}
.scenario h3 { font: italic 400 19px/1.3 var(--font-display); margin: 0 0 8px; }
.scenario p { margin: 0 !important; font-size: 15.5px !important; }

.checkpoint { margin: 32px 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.checkpoint-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.checkpoint-head svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ph); stroke-width: 1.6; }
.checkpoint-head strong { font-size: 14.5px; letter-spacing: -0.015em; }
.checkpoint-head .xp-hint { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.checkpoint-body { padding: 18px 20px 20px; }
.checkpoint-body > p { margin: 0 0 14px !important; color: var(--ink) !important; font-size: 16px !important; }

.choices { display: grid; gap: 8px; }
.choice {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; text-align: left;
  padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 15px; line-height: 1.45; color: var(--ink-2);
}
.choice:hover:not(:disabled) { border-color: var(--muted); color: var(--ink); }
.choice .mk { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); margin-top: 1px; display: grid; place-items: center; }
.choice .mk svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.6; }
.choice.right { border-color: color-mix(in srgb, var(--con) 55%, transparent); background: var(--tint-con); color: var(--ink); }
.choice.right .mk { background: var(--con); border-color: var(--con); }
.choice.wrong { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: var(--tint-warn); color: var(--ink); }
.choice.wrong .mk { background: var(--warn); border-color: var(--warn); }
.choice:disabled { cursor: default; }
.why { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.5; display: block; }
.why b { color: var(--ink); }

.codeblock { margin: 24px 0 28px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--code-bg); }
.codeblock-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.codeblock-head .copy { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.codeblock pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 400 13.5px/1.65 var(--font-mono); color: var(--ink); tab-size: 2; }
.codeblock .c { color: var(--muted); }
.codeblock .k { color: var(--con); }
.codeblock .s { color: var(--ops); }

.diagram { max-width: var(--wide); margin: 30px 0 34px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.diagram-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.diagram-head strong { font-size: 14.5px; letter-spacing: -0.015em; }
.diagram-body { padding: 18px; }
.diagram svg.dg { width: 100%; height: auto; }
.seg-ctl { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.seg-ctl button { background: none; border: 0; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg-ctl button[aria-pressed="true"] { background: var(--panel-2); color: var(--ink); }
.dg text { font-family: var(--font-sans); letter-spacing: -0.015em; }
.dg .lbl { font-size: 14px; font-weight: 600; fill: var(--ink); }
.dg .sm { font-size: 12px; fill: var(--muted); }
.dg .box { fill: var(--bg); stroke: var(--line-2); }
.dg .ln { stroke: var(--muted); fill: none; stroke-width: 1.3; }
.dg .hit { cursor: pointer; }
.dg .hit:hover .box, .dg .hit.sel .box { stroke: var(--ink); }
.dg-detail { margin-top: 14px; padding: 14px 16px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); line-height: 1.55; min-height: 70px; }
.dg-detail strong { color: var(--ink); }
.dg-detail ul { margin: 6px 0 0; padding-left: 18px; }
.dg-fade { transition: opacity .45s ease; }

.calc { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; align-items: start; }
.calc label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; }
.calc label output { float: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; margin-top: 8px; accent-color: var(--con); }
.calc .big { font: 400 52px/1 var(--font-display); letter-spacing: -0.03em; }
.calc .big small { font-size: 18px; color: var(--muted); letter-spacing: 0; }
.stack { margin: 12px 0 4px; }
.stack-row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }
.stack-bar { display: flex; height: 26px; border-radius: 5px; overflow: hidden; background: var(--bg); }
.stack-bar span { height: 100%; transition: width .4s var(--ease); border-right: 1px solid var(--panel); }
.stack-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.stack-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }

/* ── Quiz ──────────────────────────────────────────── */
.quiz { max-width: var(--prose); margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--line); }
.quiz-intro { color: var(--ink-2); font-size: 16px; margin: 0 0 24px; }
.q { margin: 0 0 30px; }
.q-num { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.q h3 { font: 600 18px/1.4 var(--font-sans); letter-spacing: -0.02em; margin: 0 0 12px; }
.q .setup { margin: 0 0 12px; padding: 12px 14px; border-left: 2px solid var(--ph); background: var(--panel); font-size: 15px; color: var(--ink-2); border-radius: 0 8px 8px 0; }
.order-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.order-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px 9px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.order-list li .pos { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.order-list li.right { border-color: color-mix(in srgb, var(--con) 55%, transparent); background: var(--tint-con); }
.order-list li.wrong { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: var(--tint-warn); }
.order-list .mv { display: flex; gap: 4px; }
.order-list .mv button { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; cursor: pointer; color: var(--ink-2); }
.order-list .mv button:disabled { opacity: .3; cursor: default; }
.order-list .mv svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.feedback { margin-top: 10px; padding: 12px 14px; border-radius: 8px; font-size: 14.5px; line-height: 1.5; background: var(--panel); color: var(--ink-2); }
.feedback.ok { border-left: 2px solid var(--con); }
.feedback.no { border-left: 2px solid var(--warn); }
.result { margin-top: 10px; padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.result .score { font: 400 46px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.result h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.02em; }
.result p { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; }
.result.pass { border-color: color-mix(in srgb, var(--con) 45%, transparent); }

.lesson-nav { max-width: var(--prose); display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.lesson-nav a { text-decoration: none; max-width: 48%; }
.lesson-nav small { display: block; color: var(--muted); font-size: 13px; }
.lesson-nav span { font-weight: 600; letter-spacing: -0.015em; }
.lesson-nav .next { text-align: right; margin-left: auto; }
.read-marker { height: 1px; }
.lesson-body.prose { max-width: var(--wide); }
.lesson-body > * { max-width: var(--prose); }
.lesson-body > .diagram { max-width: var(--wide); }

/* ── Certificate ───────────────────────────────────── */
.cert-layout { max-width: var(--wide); display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 44px; align-items: start; }
.holo { perspective: 900px; }
.holo-inner { transition: transform .25s ease-out; transform-style: preserve-3d; border-radius: 50%; }
.holo svg { width: 100%; height: auto; filter: drop-shadow(0 22px 30px rgba(0,0,0,.35)); }
.cert-frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #FAF9F5; }
.cert-frame svg { width: 100%; height: auto; }
.cert-form { display: grid; gap: 10px; max-width: 420px; }
.cert-form label { font-size: 14px; color: var(--ink-2); }
.cert-form input { padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: inherit; font-size: 16px; }
.req-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; max-width: 520px; }
.req-list li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink-2); }
.req-list li i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
.req-list li.ok i { background: var(--con); border-color: var(--con); }
.verify-card { max-width: 640px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.verify-card dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 18px 0 0; font-size: 15px; }
.verify-card dt { color: var(--muted); }
.verify-card dd { margin: 0; }
.mono { font-family: var(--font-mono); font-size: .92em; }

/* ── Toasts ────────────────────────────────────────── */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 12px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); font-size: 14px;
  animation: toast-in .35s var(--ease);
}
.toast .xp { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--con); min-width: 44px; }
.toast.rank .xp { color: var(--ops); }
.toast.out { opacity: 0; transform: translateY(6px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.empty { max-width: 560px; padding: 30px 0; }
.empty p { color: var(--ink-2); }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1280px) {
  .workspace { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .hud { position: fixed; right: 0; top: var(--top-h); z-index: 35; width: min(var(--hud-w), 92vw); background: var(--bg); transform: translateX(100%); transition: transform .3s var(--ease); }
  .hud.open { transform: none; box-shadow: var(--shadow-pop); }
  .hud-toggle { display: grid; }
  .stage { padding: 36px 40px 110px; }
}
@media (max-width: 920px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; left: 0; top: var(--top-h); z-index: 35; width: min(var(--rail-w), 88vw); background: var(--bg); transform: translateX(-100%); transition: transform .3s var(--ease); }
  .rail.open { transform: none; box-shadow: var(--shadow-pop); }
  .rail-toggle { display: grid; }
  .topnav { display: none; }
  .stage { padding: 28px 20px 100px; }
  .mast-grid, .cert-layout, .calc { grid-template-columns: minmax(0, 1fr); }
  .mast-loop svg { margin: 0; max-width: 300px; }
  .mod-lessons { margin-left: 0; }
  .sync { display: none; }
}
@media (max-width: 600px) {
  .prose p { font-size: 16.5px; }
  .caption { font-size: 16px; min-height: 92px; }
  .time { display: none; }
  .cat-row { grid-template-columns: 4px minmax(0, 1fr); }
  .cat-row .facts { grid-column: 2; text-align: left; }
  .result { grid-template-columns: 1fr; }
  .player-screen { aspect-ratio: auto; height: 300px; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .player-screen svg.board { position: static; width: 686px; height: 300px; }
  .player-foot span:first-child::after { content: ". Swipe the board to pan"; }
  .board .pn text.l { font-size: 19px; }
  .board .pn text.s { font-size: 15px; }
  .lesson-nav { flex-direction: column; }
  .lesson-nav a { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .topbar, .rail, .hud, .toasts, .player { display: none !important; }
  .workspace { display: block; }
}

/* ── Checkpoint game ───────────────────────────────── */
.rail-game { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; margin: 14px 20px 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; text-decoration: none; font-size: 14px; }
.rail-game:hover, .rail-game[aria-current="page"] { background: var(--panel); border-color: var(--con); }
.rail-game .meta { display: block; font-size: 12px; color: var(--muted); }
.rail-game-mark svg { width: 26px; height: 26px; fill: none; stroke: var(--con); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.game { max-width: 720px; margin-top: 26px; user-select: none; -webkit-user-select: none; }
.g-intro { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: center; user-select: text; }
.g-demo { position: relative; height: 250px; }
.g-demo .g-card { position: absolute; width: 150px; height: 200px; min-height: 0; top: 24px; padding: 0; }
.g-demo .demo-l { left: 0; transform: rotate(-9deg); }
.g-demo .demo-r { left: 76px; transform: rotate(8deg); }
.g-demo .g-stamp { top: 76px; left: 50%; right: auto; translate: -50% 0; font-size: 15px; }
.g-rules { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 12px; }
.g-rules li { counter-increment: r; display: grid; grid-template-columns: 26px 1fr; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.g-rules li::before { content: counter(r); font: 400 22px/1.1 var(--font-display); color: var(--muted); }
.g-rules li > :first-child { grid-column: 2; }
.g-rules li { display: block; padding-left: 30px; position: relative; }
.g-rules li::before { position: absolute; left: 0; top: 0; }
.g-rules strong { color: var(--ink); }
.g-best, .g-keys { font-size: 13.5px; color: var(--muted); }
.g-keys { margin: 16px 0 0; }

.g-hud { display: flex; align-items: flex-end; gap: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.g-stat { display: grid; gap: 2px; }
.g-stat > span { font-size: 12.5px; color: var(--muted); }
.g-stat strong { font: 400 30px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; transition: color .2s; }
.g-stat.hot strong { color: var(--ops); }
.g-stat.drift { flex: 1; grid-template-columns: auto 1fr; column-gap: 12px; align-items: end; }
.g-stat.drift > span { grid-column: 1 / -1; }
.g-driftbar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 7px; }
.g-driftbar span { display: block; height: 100%; width: 0; background: var(--ops); transition: width .5s var(--ease), background .3s; }
.g-driftbar.danger span { background: var(--warn); }
.g-hud .icon-btn { margin-bottom: 2px; border-color: var(--line); }
.g-hud .icon-btn.off { opacity: .4; }

.g-track { width: 100%; height: auto; margin: 14px 0 4px; fill: none; }
.g-track text { font: 500 12.5px var(--font-sans); fill: var(--muted); letter-spacing: -0.01em; }
.g-track text.cur { fill: var(--ink); font-weight: 700; }
.g-track circle { transition: r .3s; }
.g-defect { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.g-table { position: relative; height: 290px; margin: 10px 0 16px; touch-action: pan-y; }
.g-card {
  position: absolute; inset: 0; margin: auto; width: min(100%, 520px); min-height: 250px; height: fit-content;
  padding: 22px 26px 26px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-pop); overflow: hidden;
}
.g-card.live { cursor: grab; animation: deal .32s var(--ease); touch-action: none; }
.g-card.live:not(.drag) { transition: transform .25s var(--ease); }
.g-card.drag { cursor: grabbing; }
.g-card.under { transform: translateY(12px) scale(.955); opacity: .55; box-shadow: none; height: 250px; }
@keyframes deal { from { transform: translateY(18px) scale(.96); opacity: 0; } }
.g-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.g-gate { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: -0.015em; }
.g-gate::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--ph); }
.g-count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-who { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.g-text { margin: 0; font: 400 22px/1.38 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.g-text code { font-size: .72em; white-space: normal; }
.g-timer { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--line); }
.g-timer span { display: block; height: 100%; background: var(--ph); transform-origin: left; }
.g-timer span.low { background: var(--warn); }
.g-stamp {
  position: absolute; top: 20px; padding: 5px 12px; border: 2.5px solid; border-radius: 7px; opacity: 0;
  font: 800 18px var(--font-sans); letter-spacing: .08em; pointer-events: none; background: var(--panel-2);
}
.g-stamp.yes { left: 22px; color: var(--con); rotate: -10deg; }
.g-stamp.no { right: 22px; color: var(--warn); rotate: 10deg; }
.g-stamp.show { opacity: 1; }

.g-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; margin: 0 auto; }
.g-act { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid; background: transparent; font-weight: 700; font-size: 15.5px; letter-spacing: -0.015em; cursor: pointer; transition: background .15s, transform .1s; }
.g-act:active { transform: scale(.97); }
.g-act.no { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.g-act.no:hover { background: var(--tint-warn); }
.g-act.yes { color: var(--con); border-color: color-mix(in srgb, var(--con) 55%, transparent); }
.g-act.yes:hover { background: var(--tint-con); }
.g-act .k { font-size: 13px; padding: 1px 7px; border: 1px solid currentColor; border-radius: 5px; opacity: .7; }

.g-feedback { max-width: 520px; margin: 16px auto 0; min-height: 96px; padding: 14px 16px; border-radius: 10px; border-left: 3px solid transparent; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); opacity: 0; user-select: text; }
.g-feedback.show { opacity: 1; background: var(--panel); animation: toast-in .25s var(--ease); }
.g-feedback.ok { border-left-color: var(--con); }
.g-feedback.no { border-left-color: var(--warn); }
.g-feedback strong { display: block; color: var(--ink); margin-bottom: 2px; }
.g-feedback .g-next { margin-top: 10px; padding: 6px 12px; font-size: 13.5px; }

.g-end { user-select: text; }
.g-outcome { margin: 0; font-size: 14px; font-weight: 700; color: var(--con); }
.g-end.lost .g-outcome { color: var(--warn); }
.g-rating { font: 400 clamp(38px, 6vw, 60px)/1 var(--font-display); letter-spacing: -0.03em; margin: 6px 0 10px; }
.g-line { margin: 0 0 22px; color: var(--ink-2); font-size: 17px; max-width: 520px; }
.g-summary { display: flex; flex-wrap: wrap; gap: 14px 34px; padding: 18px 0; margin-bottom: 22px; border-block: 1px solid var(--line); }
.g-summary div { display: grid; gap: 2px; }
.g-summary span { font-size: 12.5px; color: var(--muted); }
.g-summary strong { font: 400 28px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.g-summary em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ops); }
.g-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; margin-top: 36px; }
.g-cols h3 { font: 500 21px/1.2 var(--font-display); margin: 0 0 12px; }
.g-review { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.g-review li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 14px; border-radius: 9px; background: var(--panel); border-left: 3px solid var(--con); font-size: 14px; }
.g-review li.no { border-left-color: var(--warn); }
.g-review .tag { font-weight: 600; font-size: 12.5px; color: var(--muted); padding-top: 2px; }
.g-review p { margin: 0 0 4px; color: var(--ink); line-height: 1.45; }
.g-review p.verdict { color: var(--ink-2); font-size: 13.5px; margin: 0; }
.g-name { display: grid; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.g-board { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.g-board li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.g-board li.me { font-weight: 700; color: var(--con); }
.g-board li.muted { display: block; color: var(--muted); font-size: 13.5px; border: 0; }
.g-board .pos { color: var(--muted); }
.g-board .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 920px) {
  .g-intro, .g-cols { grid-template-columns: minmax(0, 1fr); }
  .g-demo { display: none; }
}
@media (max-width: 600px) {
  .g-hud { gap: 16px; }
  .g-stat strong { font-size: 24px; }
  .g-text { font-size: 19px; }
  .g-table { height: 320px; }
  .g-track text { font-size: 24px; }
  .g-track { overflow: visible; }
  .g-track text:not(.cur) { display: none; }
  .g-act .k { display: none; }
  .g-review li { grid-template-columns: 1fr; gap: 4px; }
}

/* ── Lab task lists ────────────────────────────────── */
.checkpoint.lab { border-style: dashed; }
.lab-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lab-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 0 !important; margin: 0 !important; }
.lab-steps li::before { display: none; }
.lab-steps input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--con); cursor: pointer; }
.lab-steps label { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.lab-steps input:checked + label { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.lab-steps label code { text-decoration: none; display: inline-block; }
