/* Muse vs Qwen report — shared styles. Tokens first, dark mode via the same tokens. */
:root {
  color-scheme: light;
  --bg: #fcfcfb; --surface: #ffffff; --line: #e6e5e0; --line-strong: #cfcdc5;
  --ink: #1b1b19; --ink-2: #55534d; --ink-3: #8a877d;
  --accent: #2a5db0;
  --muse: #2a78d6; --qwen36: #eb6834; --qwen38: #1baf7a;
  --ok: #008300; --bad: #e34948; --cut: #eda100;
  --ok-bg: #e8f4e6; --bad-bg: #fbe9e8; --cut-bg: #fdf3dc;
  --code-bg: #f4f3ef;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1a1a19; --surface: #222220; --line: #33332f; --line-strong: #4a4943;
    --ink: #f1efe8; --ink-2: #c3c2b7; --ink-3: #8f8d84;
    --accent: #7aa7ea;
    --muse: #3987e5; --qwen36: #d95926; --qwen38: #199e70;
    --ok: #3fa33f; --bad: #e66767; --cut: #f0b400;
    --ok-bg: #1e2f1e; --bad-bg: #3a2222; --cut-bg: #3a3218;
    --code-bg: #171716;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1a19; --surface: #222220; --line: #33332f; --line-strong: #4a4943;
  --ink: #f1efe8; --ink-2: #c3c2b7; --ink-3: #8f8d84;
  --accent: #7aa7ea;
  --muse: #3987e5; --qwen36: #d95926; --qwen38: #199e70;
  --ok: #3fa33f; --bad: #e66767; --cut: #f0b400;
  --ok-bg: #1e2f1e; --bad-bg: #3a2222; --cut-bg: #3a3218;
  --code-bg: #171716;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
nav.side { border-right: 1px solid var(--line); padding: 22px 18px; position: sticky; top: 0; height: 100vh; overflow: auto; background: var(--bg); }
nav.side .brand { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
nav.side .sub { color: var(--ink-3); font-size: 12px; margin-bottom: 18px; }
nav.side a { display: block; color: var(--ink-2); text-decoration: none; padding: 6px 8px; border-radius: 6px; font-size: 14px; }
nav.side a:hover { background: var(--surface); color: var(--ink); }
nav.side a.current { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
main { padding: 34px clamp(16px, 4vw, 48px) 80px; max-width: 960px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 6px; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin: 44px 0 10px; text-wrap: balance; }
h3 { font-size: 16px; margin: 26px 0 8px; }
p, li { max-width: 68ch; }
.lede { color: var(--ink-2); font-size: 16px; max-width: 68ch; margin: 0 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.claim { font-size: 17px; font-weight: 600; margin: 0 0 6px; max-width: 68ch; text-wrap: balance; }
.note { color: var(--ink-2); font-size: 13.5px; max-width: 68ch; }
figure { margin: 14px 0 0; padding: 18px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
figure figcaption { color: var(--ink-3); font-size: 12.5px; margin-top: 10px; }
.chart { width: 100%; height: 260px; position: relative; }
.chart.tall { height: 320px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
.tablewrap { overflow-x: auto; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-2); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
td.n, th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.correct { background: var(--ok-bg); color: var(--ok); }
.pill.wrong { background: var(--bad-bg); color: var(--bad); }
.pill.truncated { background: var(--cut-bg); color: var(--cut); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.tile .label { font-size: 12.5px; color: var(--ink-2); }
.tile .value { font-size: 30px; font-weight: 600; line-height: 1.1; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.tile .sub { font-size: 12px; color: var(--ink-3); }
.model { font-weight: 600; }
.model.muse { color: var(--muse); } .model.qwen36 { color: var(--qwen36); } .model.qwen38 { color: var(--qwen38); }
code, pre { font-family: var(--mono); font-size: 13px; }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px; padding: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.controls { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 14px 0; font-size: 14px; }
.controls label { color: var(--ink-2); }
select, button.btn, input[type=search] { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px 9px; }
button.btn { cursor: pointer; }
button.btn.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.quick button { font-size: 13px; }
details { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; margin-top: 8px; background: var(--surface); }
details summary { cursor: pointer; color: var(--ink-2); font-size: 13.5px; }
.callout { border-left: 3px solid var(--accent); padding: 8px 14px; background: var(--surface); border-radius: 0 6px 6px 0; margin: 16px 0; max-width: 72ch; }
.small { font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  nav.side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 2px 6px; padding: 12px 16px; }
  nav.side .brand, nav.side .sub { width: 100%; }
  nav.side a { padding: 5px 8px; }
  main { padding: 22px 16px 60px; }
  .chart { height: 240px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
