/* Layout: fixed top bar, lesson sidebar on the left, one lesson at a time in the main column.
   Dark single-theme by choice (studio-monitor look); neutrals lean slightly blue. */
:root {
  color-scheme: dark;
  --bg: #0A0B0D;
  --paper: #121418;
  --paper-2: #171A1F;
  --sunken: #07080A;
  --line: #262A31;
  --line-2: #343943;
  --ink: #EEF0F4;
  --muted: #9BA1AC;
  --faint: #7A808C;

  --blue: #6993FF;
  --blue-strong: #006FFF;
  --blue-wash: rgba(105, 147, 255, .12);
  --blue-edge: rgba(105, 147, 255, .32);

  /* information colours: what a representation carries */
  --sem: #00BFA6;        /* linguistic / phonetic content */
  --aco: #E28C7C;        /* acoustic detail, timbre, channel */
  --pro: #B77DB8;        /* prosody, speaker */
  --quant: #F4B942;      /* discretization, bits */
  --cont: #6993FF;       /* continuous vectors */
  --steel: #4890AF;

  /* pipeline box fills */
  --fixed: #2E3035; --fixed-line: #474B53;
  --learned: #2F2B78; --learned-line: #5B55C8;
  --qbox: #3D300D; --qbox-line: #8A6A1E;
  --teacher: #0B3F37; --teacher-line: #138A6E;
  --lm: #14304F; --lm-line: #2F67A6;

  --font-display: 'Geist', 'Hanken Grotesk', system-ui, sans-serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -.03em; }
h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
h3 { font-size: 19px; line-height: 1.3; }
h4 { font-size: 14px; font-weight: 600; }
p + p { margin-top: 12px; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration: none; }
a:hover { text-decoration: underline; }
strong, b { font-weight: 600; color: var(--ink); }
em { font-style: italic; }
code, .mono { font-family: var(--font-mono); font-size: .88em; }
code { color: #C9D6FF; background: rgba(105, 147, 255, .08); padding: 1px 5px; border-radius: 4px; }
button, input, select { font: inherit; color: inherit; }
:is(button, a, summary, input, select, [tabindex]):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 7px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--paper-2); color: var(--ink);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .12s var(--ease), border-color .12s var(--ease), color .12s;
}
.btn:hover { border-color: var(--faint); background: #1D2128; }
.btn.primary { background: var(--blue-strong); border-color: var(--blue-strong); color: #fff; }
.btn.primary:hover { background: #0058CC; }
.btn[aria-pressed=true], .seg button[aria-pressed=true] { background: var(--blue-wash); border-color: var(--blue); color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--paper-2); }
.btn:disabled { opacity: .4; cursor: default; }
.btn .ico { width: 14px; height: 14px; flex: 0 0 14px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--sunken); }
.seg button { min-height: 32px; padding: 4px 11px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.seg button:hover { color: var(--ink); }

/* ---------- shell ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: rgba(10, 11, 13, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: 0 0 30px; }
.brand-name { font-family: var(--font-display); font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.topbar-actions { display: flex; gap: 6px; align-items: center; }
#menu-toggle { display: none; }
#glossary-open-2 { display: none; }

.shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); align-items: start; }
.sidebar {
  position: sticky; top: calc(64px + env(safe-area-inset-top, 0px));
  height: calc(100vh - 64px); overflow-y: auto;
  padding: 24px 14px 40px 20px;
  border-right: 1px solid var(--line);
  background: #08090B;
  scrollbar-width: thin;
}
.nav-group { margin-bottom: 18px; }
.nav-group-label {
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.nav-group-label i { width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--faint)); }
.chapter {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 6px;
  padding: 7px 10px; border: 1px solid transparent; border-radius: 8px;
  color: var(--muted); font-size: 13.5px; line-height: 1.3;
}
.chapter:hover { color: var(--ink); background: var(--paper); text-decoration: none; }
.chapter-num { font-family: var(--font-mono); font-size: 10px; color: var(--faint); }
.chapter-meta { font-family: var(--font-mono); font-size: 9.5px; color: var(--faint); }
.chapter[aria-current=page] { background: var(--blue-wash); border-color: var(--blue-edge); color: #CFDBFF; }
.chapter[aria-current=page] .chapter-num { color: var(--blue); }

main {
  min-width: 0; max-width: 1240px; width: 100%;
  padding-block: 28px 48px;
  padding-left: max(16px, min(4vw, 56px)); padding-right: max(16px, min(4vw, 56px));
}
main:focus { outline: none; }

/* ---------- lesson scaffolding ---------- */
.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
}
.eyebrow .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.eyebrow .dim { color: var(--faint); }
.lesson-header { display: grid; gap: 14px; margin-bottom: 28px; }
.lede { max-width: 760px; color: var(--muted); font-size: 17.5px; line-height: 1.6; }
.lede b { color: var(--ink); font-weight: 500; }
.hero {
  position: relative; overflow: hidden;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: radial-gradient(110% 130% at 88% -10%, rgba(0, 111, 255, .22), transparent 55%), var(--sunken);
}
.prose { max-width: 740px; color: #C9CDD5; }
.prose p { margin-top: 0; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 20px; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.section { margin-top: 44px; }
.section > h2 { margin-bottom: 12px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

.lab {
  margin-top: 22px;
  padding: clamp(16px, 2.4vw, 26px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper);
}
.lab-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.lab-top h3 { margin-bottom: 4px; }
.lab-top p { color: var(--muted); font-size: 14px; max-width: 640px; }
.evidence {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--muted);
}
.evidence::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--faint)); }
.evidence.computed { --c: var(--sem); }
.evidence.recorded { --c: var(--blue); }
.evidence.illustrative { --c: var(--quant); }
.evidence.reported { --c: var(--pro); }

.controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: 14px; }
.control { display: grid; gap: 6px; min-width: 150px; }
.control label { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); }
.control output { font-family: var(--font-mono); color: var(--ink); font-size: 12px; }
input[type=range] { width: 100%; accent-color: var(--blue); height: 20px; }
select { background: var(--sunken); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; min-height: 36px; }

.canvas-wrap { position: relative; width: 100%; border-radius: var(--r-md); background: var(--sunken); border: 1px solid var(--line); overflow: hidden; }
.canvas-wrap canvas, .canvas-wrap svg { display: block; width: 100%; }
.fig-caption { margin-top: 10px; font-size: 13px; color: var(--muted); max-width: 820px; }
.fig-caption b { color: var(--muted); font-weight: 500; }
.readout { overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.readout b { color: var(--ink); font-weight: 500; }
.live-note { min-height: 22px; margin-top: 10px; font-size: 14px; color: #C9CDD5; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }

/* ---------- spec strip ---------- */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 1px; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.spec { padding: 14px 16px; background: var(--sunken); min-width: 0; }
.spec-v { font-family: var(--font-display); font-size: 25px; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.spec-v small { font-size: 13px; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.spec-k { margin-top: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }

/* ---------- pipeline ---------- */
.pipe { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin-top: 4px; }
.pipe-step { display: flex; align-items: center; }
.pipe-box {
  display: grid; gap: 3px; align-content: center;
  min-width: 112px; max-width: 220px; min-height: 76px; padding: 10px 13px;
  border: 1px solid; border-radius: var(--r-md);
  text-align: left; cursor: pointer; color: var(--ink);
  transition: transform .15s var(--ease), filter .15s;
}
.pipe-box:hover { transform: translateY(-1px); filter: brightness(1.18); }
.pipe-box[aria-pressed=true] { outline: 2px solid var(--ink); outline-offset: 2px; }
.pipe-box strong { font-size: 14px; font-weight: 600; line-height: 1.25; }
.pipe-box span { font-size: 12px; line-height: 1.35; opacity: .85; }
.pipe-box em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; opacity: .7; }
.pipe-box.fixed { background: var(--fixed); border-color: var(--fixed-line); }
.pipe-box.learned { background: var(--learned); border-color: var(--learned-line); }
.pipe-box.learned span { color: #CAC6FF; }
.pipe-box.quant { background: var(--qbox); border-color: var(--qbox-line); }
.pipe-box.quant span { color: #F6D58C; }
.pipe-box.teacher { background: var(--teacher); border-color: var(--teacher-line); border-style: dashed; }
.pipe-box.teacher span { color: #8BE3C6; }
.pipe-box.lm { background: var(--lm); border-color: var(--lm-line); }
.pipe-box.lm span { color: #A9CBF2; }
.pipe-par { display: grid; gap: 6px; }
.pipe-join { display: block; text-align: center; font: 500 13px var(--font-mono); color: var(--quant); line-height: 1; }
.pipe-join:empty { display: none; }
.pipe-box.frozen { background: var(--learned); border-color: var(--learned-line); border-style: dashed; }
.pipe-box.frozen span { color: #CAC6FF; }
.pipe-legend i.dashed { border-style: dashed; }
.pipe-step.row-start .pipe-arrow { visibility: hidden; }
.pipe { row-gap: 12px; }
.pipe-arrow { width: 26px; height: 2px; background: var(--line-2); position: relative; flex: 0 0 26px; }
.pipe-arrow::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 6px solid var(--line-2); border-right: 0; }
.pipe-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.pipe-legend span { display: inline-flex; align-items: center; gap: 7px; }
.pipe-legend i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid; }
.pipe-detail { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--sunken); border: 1px solid var(--line); font-size: 14px; color: #C9CDD5; min-height: 54px; }
.pipe-detail b { color: var(--ink); }
.pipe-detail .shape { font-family: var(--font-mono); font-size: 12px; color: var(--quant); }

/* ---------- math ---------- */
.math-block {
  margin: 16px 0; padding: 16px 18px;
  border-left: 2px solid var(--blue); border-radius: 0 var(--r-md) var(--r-md) 0;
  background: linear-gradient(90deg, rgba(105, 147, 255, .07), transparent 70%);
  overflow-x: auto; overflow-y: hidden;
}
.math-block .math-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.math-block p { font-size: 14px; color: var(--muted); margin-top: 8px; }
mjx-container { color: var(--ink); }
mjx-container[display=true] { margin: 6px 0 !important; }
.math-steps { display: grid; gap: 2px; margin: 16px 0; counter-reset: step; }
.math-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 12px; padding: 12px 6px; border-top: 1px solid var(--line); }
.math-step::before { counter-increment: step; content: counter(step); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line-2); font: 500 11px var(--font-mono); color: var(--muted); }
.math-step > div { min-width: 0; overflow-x: auto; }
.math-step h4 { margin-bottom: 4px; }
.math-step p { font-size: 14.5px; color: #C2C7CF; }

details.deep { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
details.deep summary { padding: 12px 16px; cursor: pointer; font-size: 14px; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 10px; }
details.deep summary::-webkit-details-marker { display: none; }
details.deep summary::before { content: '+'; font-family: var(--font-mono); color: var(--blue); width: 12px; }
details.deep[open] summary::before { content: '−'; }
details.deep > div { padding: 0 16px 16px; font-size: 14.5px; color: #C2C7CF; }

/* ---------- lens card ---------- */
.lenses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.lens { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--sunken); min-width: 0; }
.lens-src { font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.lens h4 { margin: 4px 0 10px; font-size: 14.5px; }
.lens dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 13px; }
.lens dt { color: var(--faint); }
.lens dd { margin: 0; color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--faint)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* information budget bars */
.budget { display: grid; gap: 9px; }
.budget-row { display: grid; grid-template-columns: 116px minmax(0, 1fr) 54px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.budget-bar { height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.budget-bar i { display: block; height: 100%; border-radius: 4px; background: var(--c); transition: width .5s var(--ease); }
.budget-row span:last-child { font-family: var(--font-mono); font-size: 11px; text-align: right; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 400; background: var(--sunken); position: sticky; top: 0; }
td { font-variant-numeric: tabular-nums; }
td code { white-space: normal; word-break: break-all; }
.table-wrap.wrap td { white-space: normal; min-width: 90px; }
.pipe-par { border: 1px dashed var(--line-2); border-radius: 16px; padding: 6px; }
.lab-input { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--muted); text-align: right; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .02); }
td.num, th.num { text-align: right; }

.callout { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--blue-edge); border-radius: var(--r-md); background: var(--blue-wash); font-size: 14.5px; color: #D5DEF5; }
.callout.warn { border-color: rgba(244, 185, 66, .35); background: rgba(244, 185, 66, .07); color: #F2E2BC; }
.callout b { color: #fff; }

.sources { font-size: 12.5px; color: var(--faint); margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); }
.sources a { color: var(--muted); }
.sources ol { padding-left: 18px; margin: 6px 0 0; display: grid; gap: 3px; }

/* audio bench */
.bench { display: grid; gap: 8px; }
.bench-row { display: grid; grid-template-columns: 34px minmax(140px, 1fr) minmax(0, 3fr) 128px; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--sunken); }
.bench-row.playing { border-color: var(--blue); }
.play { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper-2); display: grid; place-items: center; cursor: pointer; color: var(--ink); padding: 0; }
.play:hover { border-color: var(--blue); }
.play svg { width: 12px; height: 12px; }
.bench-label { font-size: 13.5px; }
.bench-label small { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }
.bench-row canvas { width: 100%; height: 34px; display: block; }
.bench-metric { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; }

/* pagination */
.pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.pagination .btn { min-height: 48px; padding: 10px 18px; }
.pagination .btn.primary { max-width: 100%; }
footer.page-foot { margin-top: 26px; font-size: 12px; color: var(--faint); }

/* glossary dialog */
dialog { max-width: 680px; width: calc(100% - 32px); max-height: 82vh; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
.dialog-top { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.dialog-body { padding: 8px 20px 20px; overflow-y: auto; }
.dialog-body input { width: 100%; margin: 10px 0 12px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--sunken); }
dl.terms { margin: 0; display: grid; gap: 0; }
dl.terms dt { font-weight: 600; margin-top: 12px; font-size: 14px; }
dl.terms dd { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }

/* token strips */
.tok { font-family: var(--font-mono); }

@media (max-width: 1000px) {
  .split, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; position: fixed; inset: calc(64px + env(safe-area-inset-top, 0px)) 0 0 0; height: auto; z-index: 30; border-right: 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .sidebar.open { display: block; }
  #menu-toggle { display: inline-flex; }
  .brand-sub { display: none; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .pipe { flex-direction: column; align-items: stretch; }
  .pipe-step { flex-direction: column; align-items: stretch; }
  .pipe-box { max-width: none; min-height: 0; }
  .pipe-arrow { width: 2px; height: 16px; flex: 0 0 16px; margin: 0 auto; }
  .pipe-arrow::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top: 6px solid var(--line-2); border-bottom: 0; }
  .bench-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .bench-row canvas { grid-column: 1 / -1; }
  .budget-row { grid-template-columns: 96px minmax(0, 1fr) 44px; }
}
@media (max-width: 560px) {
  .topbar-actions .ghost { display: none; }
  #glossary-open-2 { display: inline-flex; }
  .brand-name { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.specs:empty { display: none; }
