/* English for Tech Leads – shared styles (offline, no external fonts) */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f0eee8;
  --text: #1d1d1b;
  --muted: #6b6a65;
  --border: #e3e0d8;
  --accent: #2f5bd3;
  --accent-soft: #e8eefc;
  --on-accent: #ffffff;
  --ok: #1f7a45;
  --ok-soft: #e3f4ea;
  --bad: #b93f0c;
  --bad-soft: #fdeee5;
  --warn: #8a5a00;
  --warn-soft: #fdf6dc;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .04);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, "SF Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151513; --surface: #1e1e1b; --surface-2: #2a2a26; --text: #ecebe6; --muted: #a3a29b;
    --border: #36352f; --accent: #8aa9ff; --accent-soft: #1f2a47; --on-accent: #0b1020;
    --ok: #5ad48a; --ok-soft: #173222; --bad: #ff9a5c; --bad-soft: #3b2216; --warn: #f5cf5a; --warn-soft: #332b10;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151513; --surface: #1e1e1b; --surface-2: #2a2a26; --text: #ecebe6; --muted: #a3a29b;
  --border: #36352f; --accent: #8aa9ff; --accent-soft: #1f2a47; --on-accent: #0b1020;
  --ok: #5ad48a; --ok-soft: #173222; --bad: #ff9a5c; --bad-soft: #3b2216; --warn: #f5cf5a; --warn-soft: #332b10;
  --shadow: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--accent); }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
h1 { font-size: 1.7rem; line-height: 1.25; margin: .15em 0 .3em; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 .5em; }
h3 { font-size: 1.05rem; line-height: 1.35; margin: 0 0 .5em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 920px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand { font-weight: 800; text-decoration: none; color: var(--text); margin-right: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a, .nav button { font: inherit; font-size: .9rem; text-decoration: none; color: var(--text); background: transparent; border: 0; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.nav a:hover, .nav button:hover { background: var(--surface-2); }
.nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; line-height: 18px; margin-left: 2px; }
.badge:empty { display: none; }

main { max-width: 920px; margin: 0 auto; padding: 20px 16px 80px; }

/* ---------- cards & blocks ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin: 0 0 16px; }
.card.hero { padding: 22px 22px; }
.block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.block-head h3 { margin: 0 auto 0 0; }
.prose p { margin: .35em 0 .8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: .3em 0 .8em; }
.prose li { margin: .25em 0; }
.prose > :last-child { margin-bottom: 0; }
.callout { border-radius: 10px; padding: 12px 16px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); margin: 0 0 16px; }
.callout.info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.callout h3 { margin-bottom: .3em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); border-radius: 9px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.25; }
.btn:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); filter: none; }
.btn-sm { padding: 5px 10px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 15px; display: inline-grid; place-items: center; color: var(--text); flex-shrink: 0; }
.icon-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.icon-btn.rec { background: var(--bad); color: #fff; border-color: var(--bad); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pill { display: inline-block; font-size: .74rem; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--accent-soft); color: var(--accent); }

/* ---------- tables & lists ---------- */
.tbl-wrap { overflow-x: auto; margin: 4px 0; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tbl tr:last-child td { border-bottom: 0; }

.phrase { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.phrase:last-child { border-bottom: 0; }
.phrase .body { flex: 1; min-width: 0; }
.phrase .en { font-weight: 500; }
.phrase .vi { color: var(--muted); font-size: .9rem; }
.phrase .ctrls { display: flex; gap: 6px; flex-shrink: 0; }
.result { margin-top: 6px; font-size: .92rem; }
.result:empty { display: none; }
.result audio { display: block; height: 34px; margin-top: 6px; max-width: 100%; }

/* ---------- exercises ---------- */
.qs { counter-reset: q; }
.q { padding: 14px 0; border-bottom: 1px solid var(--border); counter-increment: q; }
.q:last-child { border-bottom: 0; padding-bottom: 4px; }
.q-text { line-height: 2; }
.q-text::before { content: counter(q) ". "; font-weight: 700; color: var(--muted); }
.q-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.wrong-sent { color: var(--bad); font-weight: 500; }
.hint { font-size: .85rem; color: var(--muted); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin-top: 8px; }
.opt { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 9px; padding: 8px 12px; font: inherit; cursor: pointer; color: var(--text); line-height: 1.4; }
.opt:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.opt:disabled { cursor: default; }
.opt.is-correct { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.opt.is-wrong { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); text-decoration: line-through; }
input.blank { font: inherit; border: 0; border-bottom: 2px solid var(--accent); background: var(--accent-soft); padding: 0 6px; margin: 0 4px; width: 12ch; min-width: 8ch; max-width: 100%; color: var(--text); border-radius: 5px 5px 0 0; line-height: 1.6; }
input.blank.is-correct { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
input.blank.is-wrong { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); text-decoration: line-through; }
textarea, input.text, select { width: 100%; font: inherit; border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; background: var(--surface); color: var(--text); }
textarea { resize: vertical; line-height: 1.55; }
textarea:disabled { opacity: .85; }
.q-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.fb { margin-top: 10px; font-size: .93rem; border-radius: 9px; }
.fb:empty { display: none; }
.fb.ok, .fb.bad, .fb.neutral { padding: 9px 13px; }
.fb.ok { background: var(--ok-soft); color: var(--ok); }
.fb.bad { background: var(--bad-soft); color: var(--bad); }
.fb.neutral { background: var(--surface-2); }
.fb .explain { color: var(--text); margin-top: 4px; }
.fb .models { color: var(--text); margin: 4px 0 0; padding-left: 1.2em; }

.diff { line-height: 1.9; }
.diff span { padding: 1px 3px; border-radius: 4px; }
.diff .ok { color: var(--ok); }
.diff .miss { background: var(--bad-soft); color: var(--bad); font-weight: 600; text-decoration: underline; }
.diff .extra { color: var(--muted); text-decoration: line-through; }

/* ---------- dialogue ---------- */
.player { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 12px; }
.player select { width: auto; padding: 6px 8px; }
.transcript { border-top: 1px solid var(--border); padding-top: 8px; }
.line { display: flex; gap: 10px; padding: 6px 8px; border-radius: 9px; align-items: flex-start; }
.line.playing { background: var(--accent-soft); }
.line .who { font-weight: 700; min-width: 108px; font-size: .85rem; padding-top: 2px; }
.line .who.A { color: var(--accent); }
.line .who.B { color: var(--warn); }
.line .who.C { color: var(--ok); }
.line .text { flex: 1; }
.line .icon-btn { width: 30px; height: 30px; font-size: 12px; }
.transcript.hidden .text { filter: blur(6px); user-select: none; }

/* ---------- checklists ---------- */
.check { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ok); flex-shrink: 0; cursor: pointer; }
.check.done > .label { color: var(--muted); }
.check .label { flex: 1; }
.check .label b:first-child { display: block; }

details.model { margin-top: 12px; }
details.model summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.model-body { background: var(--surface-2); border-radius: 9px; padding: 12px 14px; margin-top: 8px; white-space: pre-wrap; }

/* ---------- progress / dashboard ---------- */
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--ok); border-radius: 999px; transition: width .3s; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 14px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; }
.stat b { display: block; font-size: 1.5rem; line-height: 1.2; }
.dots { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; max-width: 360px; margin-top: 8px; }
.dot { aspect-ratio: 1; border-radius: 4px; background: var(--surface-2); }
.dot.on { background: var(--ok); }
.dot.today { outline: 2px solid var(--accent); outline-offset: 1px; }
.locked { opacity: .65; }
.phase { border-left: 3px solid var(--border); padding: 2px 0 2px 14px; margin: 12px 0; }
.phase.current { border-color: var(--accent); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .85rem; cursor: pointer; color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- dialog & toast ---------- */
dialog { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); padding: 0; max-width: 540px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0, 0, 0, .4); }
.dlg-body { padding: 20px; max-height: 80vh; overflow-y: auto; }
label.field { display: block; margin: 12px 0; font-weight: 600; font-size: .9rem; }
label.field > select, label.field > input { margin-top: 4px; font-weight: 400; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 8px 18px; border-radius: 999px; font-size: .9rem; z-index: 50; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); }

@media (max-width: 600px) {
  body { font-size: 15px; }
  .card { padding: 14px 14px; }
  h1 { font-size: 1.4rem; }
  .line .who { min-width: 70px; }
  .opts { grid-template-columns: 1fr; }
  .phrase { flex-direction: column; gap: 6px; }
}

/* =====================================================================
   Course / book layout
   ===================================================================== */
:root { --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, Cambria, serif; }

/* ---------- course landing ---------- */
.course-hero { padding: 26px 0 18px; }
.course-hero h1 { font-family: var(--serif); font-size: 2.5rem; margin: .1em 0 .25em; }
.lead { font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; color: var(--text); margin: 14px 0 0; }
.lead p { margin: 0; }
.course-hero .lead { max-width: 680px; margin-top: 0; }
.progress.big { height: 10px; max-width: 520px; margin: 20px 0 6px; }
.continue { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; margin: 20px 0 4px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); max-width: 680px; }
.continue > :not(.continue-arrow) { grid-column: 1; }
.continue b { font-family: var(--serif); font-size: 1.15rem; }
.continue-arrow { grid-column: 2; grid-row: 1 / span 3; font-size: 1.6rem; color: var(--accent); }
.continue:hover { border-color: var(--accent); }

/* ---------- syllabus / outline ---------- */
.syl-week { border-bottom: 1px solid var(--border); }
.syl-week > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 14px 6px; }
.syl-week > summary::-webkit-details-marker { display: none; }
.syl-week > summary:hover .syl-title { color: var(--accent); }
.syl-ch { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.syl-caret { display: inline-block; transition: transform .15s; }
.syl-week[open] .syl-caret { transform: rotate(90deg); }
.syl-meta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.syl-title { flex-basis: 100%; font-family: var(--serif); font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.syl-week.compact .syl-title { font-size: .98rem; }
.syl-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 10px; border-radius: 9px; text-decoration: none; color: var(--text); line-height: 1.4; }
.syl-week.compact .syl-item { padding: 7px 8px; font-size: .9rem; }
.syl-item:hover { background: var(--surface-2); }
.syl-item.current { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.syl-item:last-child { margin-bottom: 10px; }
.syl-ico { width: 18px; flex-shrink: 0; text-align: center; color: var(--muted); }
.syl-item.done .syl-ico { color: var(--ok); font-weight: 700; }
.syl-text { flex: 1; min-width: 0; }
.syl-num { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.syl-item.current .syl-num { color: inherit; }
.syl-kind { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; }
.syl-min { font-size: .78rem; color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.syl-locked { display: flex; gap: 12px; padding: 14px 6px; color: var(--muted); border-bottom: 1px solid var(--border); }
.syl-locked:last-child { border-bottom: 0; }
.stat .dots { margin-top: 6px; }
.stat .dot { background: var(--border); }
.stat .dot.on { background: var(--ok); }
.lvl { display: inline-flex; gap: 3px; vertical-align: middle; }
.lvl i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.lvl i.on { background: var(--warn); }

/* ---------- lesson shell ---------- */
.menu-btn { display: none; }
.readbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; pointer-events: none; }
.readbar i { display: block; height: 100%; width: 0; background: var(--accent); }
.course-mode .topbar-inner { max-width: 1280px; }
.shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); max-width: 1280px; margin: 0 auto; align-items: start; }
.course-mode main { max-width: 860px; width: 100%; margin: 0 auto; padding: 28px 24px 80px; }
.sidebar { position: sticky; top: 54px; max-height: calc(100vh - 54px); overflow-y: auto; border-right: 1px solid var(--border); padding: 18px 14px 24px; scrollbar-width: thin; }
.ol-head { padding: 0 6px 14px; border-bottom: 1px solid var(--border); }
.ol-head .progress { margin: 12px 0 4px; }
.ol-course { font-size: .85rem; font-weight: 600; text-decoration: none; }
.ol-foot { display: flex; flex-direction: column; gap: 2px; padding: 12px 6px 0; }
.ol-foot a { text-decoration: none; color: var(--text); font-size: .9rem; padding: 4px 0; }
.ol-foot a:hover { color: var(--accent); }
.backdrop { display: none; }

/* ---------- book page ---------- */
.page { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 44px 56px 36px; }
.page .card { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0 0 38px; border-radius: 0; }
.page .card.box { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; }
.page .callout { margin: 0 0 38px; }
.page h3 { font-family: var(--serif); font-size: 1.28rem; line-height: 1.3; }
.page .prose { font-family: var(--serif); font-size: 1.08rem; line-height: 1.75; }
.page .prose.small, .page .callout .prose { font-family: var(--font); font-size: .95rem; line-height: 1.65; }
.page .phrase .en { font-family: var(--serif); font-size: 1.07rem; }
.page .q-text { font-family: var(--serif); font-size: 1.05rem; }
.secnum { color: var(--accent); font-family: var(--font); font-weight: 700; font-size: .78em; margin-right: 10px; letter-spacing: .02em; }
.lesson-head { border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 32px; }
.lesson-num { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 10px; }
.lesson-head h1 { font-family: var(--serif); font-size: 2.15rem; line-height: 1.2; margin: 6px 0 12px; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .88rem; color: var(--muted); align-items: center; }
.vi-toggle { font: inherit; font-size: .8rem; border: 1px dashed var(--border); background: transparent; color: var(--muted); border-radius: 6px; padding: 1px 8px; cursor: pointer; margin-top: 3px; }
.vi-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* commute days & listening resources */
.day { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; }
.day.done { opacity: .75; }
.day .check { padding: 0; }
.day-body { margin: 4px 0 0 28px; }
.day-task { margin-top: 10px; }
.res { display: flex; gap: 12px; align-items: center; padding: 10px 12px; margin-top: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); }
.res:hover { border-color: var(--accent); }
.res-ico { font-size: 1.3rem; }
.res-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.res-go { color: var(--accent); font-weight: 700; }

/* pager */
.pager { margin-top: 44px; border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.pager-done { display: flex; justify-content: center; }
.pager-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pager-link { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); }
.pager-link:hover { border-color: var(--accent); }
.pager-link.next { text-align: right; grid-column: 2; }
.pager-link b { font-weight: 600; font-size: .92rem; }

@media (max-width: 960px) {
  .shell { display: block; }
  .menu-btn { display: inline-grid; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: min(330px, 86vw); max-height: none; z-index: 40; background: var(--surface); transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 30px rgba(0, 0, 0, .25); border-right: 0; }
  .nav-open .sidebar { transform: none; }
  .nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35; }
  .course-mode main { padding: 16px 12px 60px; }
  .page { padding: 26px 18px 24px; border-radius: 12px; }
  .lesson-head h1 { font-size: 1.6rem; }
  .course-hero h1 { font-size: 1.9rem; }
  .page .card.box { padding: 16px 14px; }
  .day-body { margin-left: 0; }
}
@media (max-width: 600px) {
  .pager-links { grid-template-columns: 1fr; }
  .pager-link.next { grid-column: 1; }
}

@media (max-width: 600px) {
  .topbar-inner { flex-wrap: nowrap; gap: 6px; padding: 8px 12px; }
  .brand-text { display: none; }
  .brand { margin-right: 0; font-size: 1.2rem; }
  .nav { flex-wrap: nowrap; overflow-x: auto; margin-left: auto; scrollbar-width: none; }
  .nav a, .nav button { padding: 6px 8px; white-space: nowrap; }
  .sidebar { top: 0; }
}

/* ---------- review, updates & misc ---------- */
.continue.due { border-left-color: var(--bad); }
.continue.due .continue-arrow { color: var(--bad); }
.q-text.no-num::before { content: none; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.toast.update { display: flex; align-items: center; gap: 10px; }
.toast.update .btn { padding: 3px 10px; }
