:root {
  color-scheme: light;
  --bg: #fcfcfb;
  --surface: #f4f3f0;
  --ink: #16161a;
  --ink-2: #4a4944;
  --ink-3: #6b6a64;
  --rule: #dcdad4;
  --grid: #e8e6e1;
  --accent: #1c5cab;
  --m1: #86b6ef;  /* Haiku 4.5  - ordinal steps of one hue (model size order) */
  --m2: #2a78d6;  /* Sonnet 5 */
  --m3: #104281;  /* Opus 5.5 */
  --ok: #1d6b3a;
  --bad: #a3322b;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", "SFMono-Regular", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #161615;
    --surface: #1f1f1d;
    --ink: #f2f1ec;
    --ink-2: #c3c2b7;
    --ink-3: #9e9d95;
    --rule: #3a3a36;
    --grid: #2b2b28;
    --accent: #86b6ef;
    --m1: #256abf;
    --m2: #5598e7;
    --m3: #b7d3f6;
    --ok: #7fcf98;
    --bad: #f0928a;
  }
}

* { box-sizing: border-box; }
html { font-size: 15px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 1rem/1.55 var(--sans);
  -webkit-text-size-adjust: 100%;
}
main { max-width: 1060px; margin: 0 auto; padding: 1.5rem 1.1rem 3rem; }
main.doc { max-width: 820px; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
h1 { font-size: 1.75rem; line-height: 1.2; margin: .4rem 0 .6rem; letter-spacing: -.01em; }
h2 {
  font-size: 1.05rem; margin: 2.4rem 0 .7rem; padding-top: .6rem; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-weight: 600; letter-spacing: .01em;
}
h2 .num { color: var(--accent); margin-right: .5rem; }
h3 { font-size: .95rem; margin: 1.4rem 0 .4rem; }
p { margin: .5rem 0; max-width: 72ch; }
code, .mono { font-family: var(--mono); font-size: .9em; }
pre { background: var(--surface); padding: .7rem .9rem; overflow-x: auto; border: 1px solid var(--rule); font-size: .85rem; white-space: pre-wrap; }
small, .muted { color: var(--ink-3); }
.eyebrow { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.lede { font-size: 1.05rem; color: var(--ink-2); }

.prereg {
  font-family: var(--mono); font-size: .85rem; border-left: 3px solid var(--accent);
  background: var(--surface); padding: .6rem .9rem; margin: 1rem 0; max-width: 72ch;
}
.prereg b { color: var(--ink); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; margin: 1rem 0; }
.tile { border: 1px solid var(--rule); padding: .6rem .8rem; background: var(--surface); }
.tile .k { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); display: flex; align-items: center; gap: .4rem; }
.tile .v { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile .s { font-family: var(--mono); font-size: .78rem; color: var(--ink-2); }
.sw { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; flex: none; }

.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-family: var(--mono); font-size: .8rem; color: var(--ink-2); margin: .3rem 0; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.chartwrap { position: relative; }
svg.chart { width: 100%; height: auto; display: block; }
svg.chart text { fill: var(--ink-2); font-family: var(--mono); font-size: 11px; }
svg.chart .grid { stroke: var(--grid); stroke-width: 1; }
svg.chart .axis { stroke: var(--rule); }
svg.chart .whisker { stroke: var(--ink); stroke-width: 1.5; }
svg.chart .halo { stroke: var(--bg); stroke-width: 4.5; stroke-linecap: round; }
svg.chart .lbl { fill: var(--ink); font-size: 10.5px; }
svg.chart .hit { fill: transparent; cursor: default; }
svg.chart .hit:hover + .bar, svg.chart g.bargrp:hover .bar { opacity: .85; }
.tip {
  position: absolute; pointer-events: none; background: var(--bg); border: 1px solid var(--rule);
  padding: .4rem .55rem; font-family: var(--mono); font-size: .78rem; line-height: 1.4; box-shadow: 0 2px 8px rgba(0,0,0,.15);
  white-space: nowrap; display: none; z-index: 5;
}

.tablewrap { overflow-x: auto; margin: .6rem 0; }
table { border-collapse: collapse; font-size: .85rem; width: 100%; }
th, td { text-align: left; padding: .3rem .55rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--mono); font-weight: 600; font-size: .78rem; color: var(--ink-2); background: var(--surface); }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); white-space: nowrap; }
.v-supported { color: var(--ok); font-weight: 600; }
.v-not { color: var(--bad); font-weight: 600; }
.pill { font-family: var(--mono); font-size: .75rem; padding: 0 .35rem; border: 1px solid var(--rule); border-radius: 3px; white-space: nowrap; }

.findings li { margin: .35rem 0; max-width: 78ch; }

/* explorer */
.filters { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: end; margin: .6rem 0; font-family: var(--mono); font-size: .8rem; }
.filters label { display: flex; flex-direction: column; gap: .15rem; color: var(--ink-3); }
select, input[type=search] {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); padding: .25rem .4rem; min-width: 9rem;
}
#count { color: var(--ink-2); margin-left: auto; }
.item { border: 1px solid var(--rule); margin: .5rem 0; background: var(--bg); }
.item > summary { list-style: none; cursor: pointer; padding: .4rem .6rem; display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; font-family: var(--mono); font-size: .82rem; }
.item > summary::-webkit-details-marker { display: none; }
.item > summary .id { font-weight: 600; min-width: 5.5rem; }
.item > summary .q { font-family: var(--sans); color: var(--ink-2); flex: 1 1 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item[open] > summary { border-bottom: 1px solid var(--rule); background: var(--surface); }
.item .body { padding: .5rem .7rem .7rem; }
.item pre { font-size: .8rem; max-height: 22rem; }
.marks { display: inline-flex; gap: .3rem; }
.mk { font-family: var(--mono); font-size: .72rem; padding: 0 .3rem; border-radius: 3px; border: 1px solid currentColor; }
.mk.ok { color: var(--ok); }
.mk.no { color: var(--bad); }
.ans td:first-child { white-space: nowrap; }
.ans pre { margin: 0; padding: .2rem .4rem; font-size: .78rem; max-height: 8rem; }
.more { font: inherit; font-family: var(--mono); font-size: .8rem; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); padding: .35rem .8rem; cursor: pointer; }

.crumb { font-family: var(--mono); font-size: .85rem; }
.note { font-size: .85rem; color: var(--ink-3); border-left: 3px solid var(--rule); padding-left: .7rem; }
footer { border-top: 1px solid var(--rule); max-width: 1060px; margin: 0 auto; padding: 1rem 1.1rem 2rem; font-family: var(--mono); font-size: .8rem; color: var(--ink-3); display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 600px) {
  html { font-size: 14px; }
  h1 { font-size: 1.4rem; }
  #count { margin-left: 0; }
}
@media (forced-colors: active) {
  .sw, .bar { forced-color-adjust: none; }
}

/* narrow screens: keep the chart legible by letting it scroll sideways instead of shrinking */
.chartscroll { overflow-x: auto; }
@media (max-width: 700px) { svg.chart { min-width: 640px; } }
.item > summary .q { min-width: 0; }
.item, .filters, main { min-width: 0; }
section { min-width: 0; overflow-wrap: anywhere; }
td { overflow-wrap: normal; }
