:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f3f2ee;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.1);
  --border-strong: rgba(11, 11, 11, 0.18);

  --target: #2a78d6;
  --target-soft: #2a78d61f;
  --draft: #4a3aa7;
  --draft-soft: #4a3aa71f;
  --accept: #1baf7a;
  --accept-ink: #0b7a52;
  --accept-soft: #1baf7a24;
  --reject: #e34948;
  --reject-ink: #b42a29;
  --reject-soft: #e3494820;
  --correct: #eb6834;
  --correct-ink: #b8481c;
  --correct-soft: #eb683424;
  --bonus: #2a78d6;
  --bonus-soft: #2a78d624;
  --warn: #c98500;
  --warn-soft: #fab21924;
  --hl: #fff5c2;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #232321;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --target: #3987e5;
    --target-soft: #3987e52e;
    --draft: #9085e9;
    --draft-soft: #9085e92e;
    --accept: #199e70;
    --accept-ink: #3fd19c;
    --accept-soft: #199e7033;
    --reject: #e66767;
    --reject-ink: #ff8a8a;
    --reject-soft: #e6676730;
    --correct: #d95926;
    --correct-ink: #ff9a6b;
    --correct-soft: #d9592633;
    --bonus: #3987e5;
    --bonus-soft: #3987e533;
    --warn: #fab219;
    --warn-soft: #fab21922;
    --hl: #3a3415;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #232321;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --target: #3987e5;
  --target-soft: #3987e52e;
  --draft: #9085e9;
  --draft-soft: #9085e92e;
  --accept: #199e70;
  --accept-ink: #3fd19c;
  --accept-soft: #199e7033;
  --reject: #e66767;
  --reject-ink: #ff8a8a;
  --reject-soft: #e6676730;
  --correct: #d95926;
  --correct-ink: #ff9a6b;
  --correct-soft: #d9592633;
  --bonus: #3987e5;
  --bonus-soft: #3987e533;
  --warn: #fab219;
  --warn-soft: #fab21922;
  --hl: #3a3415;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font: 14px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--target); }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.small { font-size: 12.5px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.brand-mark { display: inline-flex; gap: 2px; }
.brand-mark i { width: 7px; height: 16px; border-radius: 2px; display: block; }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(2) { background: var(--accept); }
.brand-mark i:nth-child(3) { background: var(--correct); }
.brand-mark i:nth-child(4) { background: var(--draft); opacity: .35; }
.models { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.spacer { flex: 1; }
.iconbtn {
  border: 1px solid var(--border); background: var(--surface); border-radius: 8px;
  padding: 5px 10px; cursor: pointer; font-size: 13px;
}
.iconbtn:hover { border-color: var(--border-strong); }

/* ---------- layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px 60px;
  max-width: 1680px; margin: 0 auto;
}
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); padding: 12px 16px 48px; } }
.side { position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 80px); overflow: auto; }
@media (max-width: 1000px) { .side { position: static; max-height: none; } }
.main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  min-width: 0;
}
.card-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head .sub { color: var(--muted); font-size: 12.5px; }

/* ---------- controls ---------- */
.ctl { margin-bottom: 14px; }
.ctl label.lab { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 12.5px; margin-bottom: 4px; }
.ctl label.lab .val { font-family: var(--mono); font-weight: 500; color: var(--ink-2); }
.ctl .help { font-size: 11.5px; color: var(--muted); line-height: 1.4; margin-top: 3px; }
textarea {
  width: 100%; min-height: 78px; resize: vertical;
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px;
  background: var(--surface-2);
}
input[type="number"], select {
  width: 100%; border: 1px solid var(--border-strong); border-radius: 8px; padding: 6px 8px; background: var(--surface-2);
}
input[type="range"] { width: 100%; accent-color: var(--target); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip {
  border: 1px solid var(--border); background: var(--surface-2); border-radius: 999px;
  padding: 2px 9px; font-size: 12px; cursor: pointer;
}
.chip:hover { border-color: var(--border-strong); }
.seg { display: flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.seg button { flex: 1; border: 0; background: transparent; padding: 6px 4px; cursor: pointer; font-size: 13px; }
.seg button.on { background: var(--ink); color: var(--surface); font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin-bottom: 8px; }
.check input { margin-top: 3px; }
.run {
  width: 100%; padding: 10px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--surface); font-weight: 650; font-size: 14px;
}
.run:disabled { opacity: .5; cursor: progress; }
.status { font-size: 12px; margin-top: 8px; min-height: 18px; }
.status.err { color: var(--reject-ink); }
.side details summary { cursor: pointer; font-weight: 600; font-size: 12.5px; margin: 6px 0 10px; }

/* ---------- token chips ---------- */
.tok {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.2;
  padding: 3px 5px; margin: 2px 1px; border-radius: 5px;
  border: 1px solid transparent; white-space: pre; cursor: default;
  position: relative;
}
.tok .ws { color: var(--muted); opacity: .7; }
.tok.prompt { color: var(--muted); background: var(--surface-2); }
.tok.first, .tok.bonus { background: var(--bonus-soft); border-color: color-mix(in srgb, var(--bonus) 55%, transparent); }
.tok.accepted { background: var(--accept-soft); border-color: color-mix(in srgb, var(--accept) 55%, transparent); }
.tok.correction { background: var(--correct-soft); border-color: color-mix(in srgb, var(--correct) 65%, transparent); }
.tok.rejected { background: var(--reject-soft); border-color: color-mix(in srgb, var(--reject) 60%, transparent); text-decoration: line-through; text-decoration-color: var(--reject); }
.tok.discarded { opacity: .45; border: 1px dashed var(--border-strong); text-decoration: line-through; }
.tok.draft { background: var(--draft-soft); border-color: color-mix(in srgb, var(--draft) 55%, transparent); }
.tok.target { background: var(--target-soft); border-color: color-mix(in srgb, var(--target) 55%, transparent); }
.tok.ctx { background: var(--surface-2); color: var(--ink-2); }
.tok.sel { outline: 2px solid var(--ink); outline-offset: 1px; }
.tok sup { font-family: var(--sans); font-size: 9px; margin-left: 3px; color: var(--ink-2); }
.tape { line-height: 2.1; }
.tape .iter { display: inline; cursor: pointer; border-radius: 6px; }
.tape .iter:hover .tok:not(.prompt) { filter: brightness(0.96); outline: 1px solid var(--border-strong); }
.tape .iter.sel .tok { outline: 2px solid var(--ink); outline-offset: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-2); margin: 10px 0 2px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.stat .k { font-size: 11.5px; color: var(--muted); }
.stat .v { font-size: 22px; font-weight: 650; margin-top: 2px; }
.stat .d { font-size: 11.5px; color: var(--ink-2); }

/* ---------- inspector ---------- */
.inspector-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper { display: flex; gap: 6px; align-items: center; }
.stepper button { min-width: 34px; }
.steps { display: flex; gap: 4px; flex-wrap: wrap; margin: 14px 0 16px; }
.step-tab {
  flex: 1 1 120px; text-align: left; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 10px; padding: 8px 10px; font-size: 12.5px;
}
.step-tab b { display: block; font-size: 13px; }
.step-tab .muted { font-size: 11.5px; }
.step-tab.on { background: var(--surface); border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.step-tab .num { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center; font-size: 11px; background: var(--ink); color: var(--surface); margin-right: 6px; }
.inspect-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 1250px) { .inspect-grid { grid-template-columns: minmax(0, 1fr); } }
.explain { border-left: 3px solid var(--border-strong); padding: 2px 0 2px 14px; }
.explain h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 4px; }
.explain h4:first-child { margin-top: 0; }
.explain p, .explain li { font-size: 13.5px; color: var(--ink-2); }
.explain ul { padding-left: 18px; margin: 0 0 8px; }
.explain .eq { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); border-radius: 6px; padding: 6px 9px; margin: 6px 0; color: var(--ink); overflow-x: auto; white-space: pre; }
.callout { border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 10px 0; border: 1px solid; }
.callout.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.callout.info { background: var(--target-soft); border-color: color-mix(in srgb, var(--target) 40%, transparent); }
.callout b { font-weight: 650; }

.ctxline { margin-bottom: 10px; line-height: 2; }
.ctxline .ell { color: var(--muted); font-family: var(--mono); margin-right: 4px; }
.tag { font-size: 10.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; }
.tag.draft { color: var(--draft); background: var(--draft-soft); }
.tag.target { color: var(--target); background: var(--target-soft); }
.tag.ok { color: var(--accept-ink); background: var(--accept-soft); }
.tag.no { color: var(--reject-ink); background: var(--reject-soft); }
.tag.fix { color: var(--correct-ink); background: var(--correct-soft); }
.tag.gray { color: var(--muted); background: var(--surface-2); }

/* draft step cards */
.dsteps { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.dstep { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--surface); }
.dstep.fresh { animation: pop .35s ease-out; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.dstep-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12px; }
.fed { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }

/* distribution bars */
.dist { display: flex; flex-direction: column; gap: 3px; }
.drow { display: grid; grid-template-columns: minmax(0, 92px) minmax(0, 1fr) 46px; gap: 6px; align-items: center; font-size: 11.5px; }
.drow .lbl { font-family: var(--mono); white-space: pre; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.drow .bar { height: 10px; background: var(--surface-2); border-radius: 0 4px 4px 0; position: relative; overflow: hidden; }
.drow .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; }
.drow .num { text-align: right; font-family: var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.drow.chosen .lbl { color: var(--ink); font-weight: 700; }
.drow.chosen .lbl::before { content: "▸ "; }
.drow.pair .bar { height: 7px; }
.pairbars { display: flex; flex-direction: column; gap: 2px; }

/* verify diagram */
.vdiag { overflow-x: auto; padding-bottom: 6px; }
.vcols { display: grid; gap: 6px; min-width: max-content; }
.vcol { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 84px; }
.vcol .arrow { color: var(--muted); font-size: 13px; line-height: 1; }
.vcol .lbl { font-size: 10.5px; color: var(--muted); text-align: center; }
.vbox { border: 1px dashed var(--border-strong); border-radius: 8px; padding: 6px; font-size: 11.5px; text-align: center; width: 100%; background: var(--surface-2); }
.vbox b { font-family: var(--mono); font-weight: 600; }
.model-band {
  grid-column: 1 / -1; text-align: center; padding: 8px; border-radius: 8px; font-weight: 650; font-size: 12.5px;
  background: var(--target-soft); color: var(--target); border: 1px solid color-mix(in srgb, var(--target) 40%, transparent);
}

/* accept cards */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.chk { border: 1px solid var(--border); border-radius: 10px; padding: 10px; position: relative; }
.chk.ok { border-color: color-mix(in srgb, var(--accept) 55%, transparent); }
.chk.no { border-color: color-mix(in srgb, var(--reject) 60%, transparent); box-shadow: 0 0 0 3px var(--reject-soft); }
.chk.skip { opacity: .5; border-style: dashed; }
.chk-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; font-size: 12px; margin-top: 8px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.uline { position: relative; height: 26px; margin: 8px 0 2px; }
.uline .track { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 2px; background: var(--reject-soft); }
.uline .acc { position: absolute; left: 0; top: 11px; height: 4px; border-radius: 2px; background: var(--accept); }
.uline .u { position: absolute; top: 3px; width: 2px; height: 20px; background: var(--ink); }
.uline .u::after { content: "u"; position: absolute; top: -2px; left: 4px; font-size: 10px; font-family: var(--mono); color: var(--ink); }
.uline .ticks { position: absolute; top: 18px; left: 0; right: 0; display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); font-family: var(--mono); }
.verdict { font-weight: 700; font-size: 12.5px; margin-top: 8px; }
.verdict.ok { color: var(--accept-ink); }
.verdict.no { color: var(--reject-ink); }

/* kv cache */
.cache { display: flex; flex-direction: column; gap: 10px; }
.cache-row .name { font-size: 12px; font-weight: 600; margin-bottom: 4px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cells { display: flex; gap: 2px; flex-wrap: wrap; }
.cell {
  min-width: 30px; height: 36px; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9.5px; padding: 0 3px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--ink-2); white-space: pre; max-width: 70px; overflow: hidden;
}
.cell .i { font-size: 8.5px; color: var(--muted); }
.cell.kept { background: var(--target-soft); border-color: color-mix(in srgb, var(--target) 35%, transparent); }
.cell.kept.d { background: var(--draft-soft); border-color: color-mix(in srgb, var(--draft) 35%, transparent); }
.cell.crop { background: repeating-linear-gradient(45deg, var(--reject-soft) 0 4px, transparent 4px 8px); border: 1px dashed var(--reject); color: var(--reject-ink); }
.cell.pending { border: 1.5px dashed var(--ink); background: transparent; color: var(--ink); }
.cell.missing { border: 1.5px dashed var(--draft); background: transparent; color: var(--draft); }

/* code panel */
.code-wrap { display: grid; grid-template-columns: minmax(0, 1fr); }
.code {
  font-family: var(--mono); font-size: 12px; line-height: 1.55;
  background: var(--surface-2); border-radius: 10px; border: 1px solid var(--border);
  max-height: 460px; overflow: auto; padding: 8px 0;
}
.code .ln { display: grid; grid-template-columns: 46px minmax(0, 1fr); white-space: pre; padding-right: 12px; }
.code .ln .n { color: var(--muted); text-align: right; padding-right: 12px; user-select: none; }
.code .ln.hl { background: var(--hl); }
.code .ln.hl .n { color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--warn); }
.code .kw { color: #a2366e; }
.code .str { color: #2f7d32; }
.code .com { color: var(--muted); font-style: italic; }
.code .num { color: #b0590e; }
.code .fn { color: var(--target); }
:root[data-theme="dark"] .code .kw { color: #f08dc0; }
:root[data-theme="dark"] .code .str { color: #8fd18f; }
:root[data-theme="dark"] .code .num { color: #f2a95c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .code .kw { color: #f08dc0; }
  :root:not([data-theme="light"]) .code .str { color: #8fd18f; }
  :root:not([data-theme="light"]) .code .num { color: #f2a95c; }
}
.code-jumps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

/* charts */
.chart { width: 100%; display: block; }
.chart text { font-family: var(--sans); font-size: 11px; fill: var(--muted); }
.chart .grid line { stroke: var(--grid); }
.chart .axis { stroke: var(--axis); }
.tip {
  position: fixed; z-index: 100; pointer-events: none;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 8px 10px; font-size: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.15);
  max-width: 320px; display: none;
}
.tip .t-h { font-weight: 650; margin-bottom: 3px; }
.tip table { border-collapse: collapse; }
.tip td { padding: 0 6px 0 0; }
.tip td.r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr); } }
.cmp { font-size: 13px; line-height: 1.9; }
.cmp .tok { font-size: 11.5px; padding: 2px 3px; }
.diverge { background: var(--warn-soft) !important; border-color: var(--warn) !important; }

/* lab */
.lab-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 1100px) { .lab-grid { grid-template-columns: minmax(0, 1fr); } }
.vocab-edit { display: grid; grid-template-columns: 70px 1fr 44px 1fr 44px; gap: 6px 8px; align-items: center; font-size: 12px; }
.vocab-edit .h { font-weight: 650; font-size: 11.5px; color: var(--muted); }
.vocab-edit input[type="range"].p { accent-color: var(--target); }
.vocab-edit input[type="range"].q { accent-color: var(--draft); }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.btn { border: 1px solid var(--border-strong); background: var(--surface-2); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.intro .st { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface-2); }
.intro .st .h { font-weight: 650; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.intro .st p { font-size: 13px; color: var(--ink-2); margin: 0; }
.notes li { margin-bottom: 8px; font-size: 13.5px; color: var(--ink-2); }
.notes li b { color: var(--ink); }
.empty { padding: 40px 10px; text-align: center; color: var(--muted); }
kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; }
details.more > summary { cursor: pointer; color: var(--ink-2); font-size: 13px; margin-top: 6px; }
.replay-banner { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; }
@media (max-width: 700px) {
  .topbar { position: static; padding: 10px 16px; }
  .side { top: 0; }
}
