/* Dark is the page's own look and its default; the reader's choice of light is kept (theme.js). Every colour is a
   variable set once per theme. The series and family colours are each theme's own steps of the same hues, checked
   against that theme's background. */
:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); color-scheme: dark;
  --bg: #18171c; --raised: #201f26; --hover: #2a2831; --strip: #1e1d23; --label-bg: #18171ce6;
  --ink: #ecebf0; --muted: #a39eae; --line: #2f2d36; --axis: #5a5665; --grid: #25232b; --mark: #9d98a8; --accent: #b79cf0;
  --shadow: 0 4px 14px #0009;
  --passed: #58c4a3; --failed: #f0946a;
  --warn-line: #6b4630; --warn-bg: #33231a; --warn-ink: #f0a67c;
  --tag-line: #45424d; --tag-bg: #26242c; --tag-ink: #b9b4c4;
  --grey: #9a95a6;
  /* One per line of the context chart, in this order. */
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  /* One per family of the memory chart. The first four pass every pairwise check on this background. */
  --f1: #3987e5; --f2: #d55181; --f3: #c98500; --f4: #008300; --f5: #e66767;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff; --raised: #fff; --hover: #f6f4f8; --strip: #faf9fb; --label-bg: #ffffffe6;
  --ink: #24222a; --muted: #706b78; --line: #e8e5ec; --axis: #bdb7c6; --grid: #f0edf4; --mark: #6d6876; --accent: #7250ae;
  --shadow: 0 4px 14px #24222a1f;
  --passed: #28725e; --failed: #a2502d;
  --warn-line: #efcfb8; --warn-bg: #fdf3ec; --warn-ink: #a2502d;
  --tag-line: #dcd8e2; --tag-bg: #f4f2f7; --tag-ink: #57525e;
  --grey: #8a8494;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  /* These five pass every pairwise check on white. */
  --f1: #2a78d6; --f2: #1baf7a; --f3: #eda100; --f4: #008300; --f5: #e34948;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
input, button { font: inherit; }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.page { width: 100%; margin: 36px auto; padding: 0 28px; }
header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
h1 { font-size: 23px; font-weight: 600; letter-spacing: -.03em; margin: 0; }
nav { display: flex; align-items: baseline; gap: 20px; font-size: 12px; color: var(--muted); }
nav a { text-decoration: none; white-space: nowrap; }
.theme-toggle { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); color: var(--ink); font-size: 11px; white-space: nowrap; cursor: pointer; }
.theme-toggle:hover { border-color: var(--axis); }
.theme-toggle[hidden] { display: none; }
/* Which benchmark release the page shows; absent while there is only one. */
.releases { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -12px 0 22px; }
.releases:empty { display: none; }
.releases .chip { text-decoration: none; }
.release-title { font-size: 11px; color: var(--muted); margin-right: 2px; }
.release-note { flex-basis: 100%; font-size: 11px; color: var(--muted); max-width: 110ch; }
.chart { width: 100%; }
/* Cases passed up the side, peak VRAM + RAM along the bottom; API models in a strip of their own. */
.scatter { position: relative; margin: 6px 0 26px; }
.family-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); color: inherit; font-size: 11px; cursor: pointer; }
.chip:hover { border-color: var(--axis); }
.chip.on { border-color: var(--ink); background: var(--hover); font-weight: 550; }
.chip.clear { color: var(--muted); }
.chip-swatch { width: 9px; height: 9px; border-radius: 50%; }
.chip-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.scatter-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 11px; color: var(--muted); margin-bottom: 18px; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; }
.legend-mark { display: inline-block; width: 10px; height: 10px; background: var(--mark); }
.legend-mark.circle { border-radius: 50%; }
.legend-mark.diamond { width: 9px; height: 9px; border-radius: 1px; transform: rotate(45deg); }
.legend-mark.hollow { background: var(--bg); border: 2px solid var(--mark); }
.legend-mark.ladder { width: 16px; height: 2px; border-radius: 1px; opacity: .55; }
.legend-mark.line { width: 16px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 7px); opacity: .5; }
.y-caption { font-size: 12px; color: var(--muted); margin: 0 0 12px 38px; }
.scatter-body { --plot-height: 420px; display: flex; gap: 16px; padding-left: 38px; }
.scatter-plot, .api-strip { container-type: size; position: relative; height: var(--plot-height); border-bottom: 1px solid var(--axis); }
.scatter-plot { flex: 1; border-left: 1px solid var(--axis); }
.api-strip { flex: 0 0 150px; background: var(--strip); }
.context-line { fill: none; stroke-width: 2; stroke-linejoin: round; opacity: .9; vector-effect: non-scaling-stroke; }
.context-line.faded { opacity: .1; }
.context-line.selected, .context-line.focus { stroke-width: 3.5; opacity: 1; }
/* Cases against context: a legend above the plot names every line by its colour and its dashes; each line has a
   dot at every context size it was read at. */
.series-legend { display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0 0 12px -8px; padding: 0; list-style: none; }
.legend-series { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: inherit; font-size: 12px; line-height: 1.3; text-align: left; cursor: pointer; }
.legend-series:hover, .legend-series.focus { background: var(--hover); }
.legend-series.selected .series-name { color: var(--accent); }
.legend-series:focus-visible { outline-offset: 1px; }
.series-name { font-weight: 550; overflow-wrap: anywhere; }
.series-meta { color: var(--muted); font-size: 11px; }
.series-value { color: var(--muted); font-variant-numeric: tabular-nums; }
.line-key { display: block; flex: none; width: 30px; height: 12px; }
.sample-dot.faded { opacity: .1; }
.sample-dot { position: absolute; z-index: 1; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); transform: translate(-50%, 50%); pointer-events: none; }
.crosshair { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink); opacity: .3; pointer-events: none; }
.crosshair[hidden] { display: none; }
.curves.has-focus .context-line:not(.focus):not(.selected) { opacity: .14; }
.curves.has-focus .sample-dot:not(.focus) { opacity: .14; }
.curves.has-focus .legend-series:not(.focus), .curves.has-focus .scatter-point:not(.focus) { opacity: .4; }
.curves .chart-tip { max-width: 380px; gap: 3px; }
.tip-row { display: grid; grid-template-columns: 26px 2.4em minmax(0, 1fr); align-items: center; gap: 7px; }
.tip-row strong { text-align: right; }
.tip-row.lit span { font-weight: 600; }
.grid-row { position: absolute; left: 0; right: 0; height: 1px; background: var(--grid); pointer-events: none; }
.grid-col { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--grid); pointer-events: none; }
.y-tick { position: absolute; right: calc(100% + 9px); top: 0; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.x-tick { position: absolute; top: calc(var(--plot-height) + 7px); left: 0; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.x-tick.end { transform: translateX(-100%); }
.x-tick.start { transform: none; }
.strip-title { position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.axis-caption { text-align: center; padding-top: 34px; font-size: 12px; color: var(--muted); }
.plot-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.family-line { fill: none; stroke-width: 2; stroke-linejoin: round; opacity: .55; vector-effect: non-scaling-stroke; }
.family-line.faded { opacity: .08; }
.frontier { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; opacity: .4; vector-effect: non-scaling-stroke; }
/* A 24px hit area around an 11px dot; the dot keeps a 2px ring of the background where it crosses lines. */
.scatter-point { position: absolute; z-index: 2; width: 24px; height: 24px; transform: translate(calc(-50% + var(--nudge, 0px)), 50%); border: 0; padding: 0; background: none; color: inherit; cursor: pointer; }
.scatter-point .result-dot { display: block; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--dot, var(--accent)); box-shadow: 0 0 0 2px var(--bg); transform: translate(-50%, -50%); }
.scatter-point.diamond .result-dot { width: 10px; height: 10px; border-radius: 1px; transform: translate(-50%, -50%) rotate(45deg); }
.scatter-point.provisional .result-dot { background: var(--bg); border: 2px solid var(--dot, var(--accent)); }
.scatter-point.faded { opacity: .15; }
.scatter-point .interval { position: absolute; left: 50%; width: 2px; border-radius: 1px; background: var(--dot, var(--accent)); opacity: .35; transform: translateX(-50%); pointer-events: none; }
.point-label { position: absolute; width: max-content; max-width: 210px; padding: 1px 3px; border-radius: 3px; background: var(--label-bg); line-height: 1.3; pointer-events: none; }
.point-label.place-right { left: calc(50% + 11px); top: 50%; transform: translateY(-50%); }
.point-label.place-left { right: calc(50% + 11px); top: 50%; transform: translateY(-50%); text-align: right; }
.point-label.place-above { bottom: calc(50% + 11px); left: 50%; transform: translateX(-50%); text-align: center; }
.point-label.place-below { top: calc(50% + 11px); left: 50%; transform: translateX(-50%); text-align: center; }
.point-label.unplaced { display: none; }
.label-number { display: none; font-size: 10px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.point-label.as-number > :not(.label-number) { display: none; }
.point-label.as-number .label-number { display: block; }
.point-key { margin: 14px 0 0; padding-left: 22px; columns: 2 220px; column-gap: 24px; font-size: 11px; color: var(--muted); }
.point-key[hidden] { display: none; }
.point-key li { break-inside: avoid; margin-bottom: 3px; padding-left: 2px; }
.point-key li::marker { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.model-name { display: block; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.point-meta { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.member-name { display: block; font-size: 10px; color: var(--muted); }
.scatter-point:hover .model-name, .scatter-point.selected .model-name { color: var(--accent); }
.scatter-point:focus-visible { outline: 0; }
.scatter-point:focus-visible .result-dot, .scatter-point.selected .result-dot { outline: 2px solid var(--accent); outline-offset: 4px; }
.chart-tip { position: absolute; z-index: 5; display: flex; flex-direction: column; gap: 2px; max-width: 260px; padding: 8px 10px; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); font-size: 11px; pointer-events: none; }
.chart-tip[hidden] { display: none; }
.chart-tip strong { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tip-muted { color: var(--muted); }
.table-view { margin-top: 26px; font-size: 12px; }
.table-view summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.table-view .case-table { margin-top: 12px; }
.sortable .sort { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.sortable tr.faded td { opacity: .4; }
.run-detail { margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 12px; }
.detail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
h2 { font-size: 15px; margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.close-detail { font-size: 11px; color: var(--muted); border: 0; background: none; white-space: nowrap; cursor: pointer; }
.detail-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 38px; }
h3 { font-size: 12px; margin: 0 0 12px; font-weight: 600; }
.settings-heading { margin-top: 24px; }
.case-table { width: 100%; border-collapse: collapse; font-size: 11px; margin-bottom: 22px; }
.case-table td, .case-table th { padding: 7px 5px; border-bottom: 1px solid var(--line); text-align: right; }
.case-table th { font-size: 10px; color: var(--muted); font-weight: 500; }
.case-table td:first-child, .case-table th:first-child { text-align: left; padding-left: 0; }
.case-id { overflow-wrap: anywhere; }
.budget-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--warn-line); border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); font-size: 9px; line-height: 15px; white-space: nowrap; vertical-align: 1px; cursor: help; }
.cutoff-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--tag-line); border-radius: 8px; background: var(--tag-bg); color: var(--tag-ink); font-size: 9px; line-height: 15px; white-space: nowrap; vertical-align: 1px; cursor: help; }
.numeric { font-variant-numeric: tabular-nums; }
.passed { color: var(--passed); }
.failed { color: var(--failed); }
.setting-list { display: grid; grid-template-columns: 1fr 1fr; margin: 0; gap: 8px 12px; }
.setting-list dt { color: var(--muted); }
.setting-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.setting-list code.sha { font-size: 0.8em; word-break: break-all; }
/* One block per run: outcomes, the machine and server it ran on, and its speed (ADR 0020). */
.run-blocks { display: grid; gap: 12px; margin-bottom: 22px; }
.run-block { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.run-block-head { font-weight: 550; margin-bottom: 8px; overflow-wrap: anywhere; }
.run-block .setting-list { grid-template-columns: max-content 1fr; gap: 5px 14px; }
.run-block .setting-list dd { text-align: left; }
.setting-list code.flags { font-size: 0.85em; color: var(--muted); }
.setting-list code.flags .flag { white-space: nowrap; }
/* Grid columns may shrink below a wide table, which then scrolls in its own box. */
.detail-layout > * { min-width: 0; }
.table-scroll { overflow-x: auto; margin-bottom: 22px; }
.table-scroll .speed-table { min-width: 620px; margin-bottom: 0; }
.speed-table td { vertical-align: top; }
.speed-table td.case-id { text-align: left; }
.speed-table th { text-align: left; }
.speed-table th:nth-last-child(-n+4) { text-align: right; }
.speed-table td:last-child, .speed-table th:last-child { text-align: right; }
.speed-filter { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 2px; font-size: 11px; color: var(--muted); }
.speed-filter select { font: inherit; font-size: 12px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--raised); color: var(--ink); }
.detail-note { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 16px 0; }
.record-id { color: var(--muted); overflow-wrap: anywhere; white-space: pre-line; font: 10px/1.7 ui-monospace, monospace; margin-top: 16px; }
footer { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 15px; font-size: 11px; color: var(--muted); }
footer a { margin-left: auto; }
.empty { padding: 45px 10px; text-align: center; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .page { margin: 22px auto; padding: 0 18px; }
  h1 { font-size: 20px; }
  header { gap: 12px; margin-bottom: 20px; }
  nav { gap: 12px; font-size: 11px; }
  .scatter-body { --plot-height: 360px; gap: 10px; padding-left: 28px; }
  .y-caption { margin-left: 28px; }
  .api-strip { flex-basis: 92px; }
  .point-label { max-width: 140px; }
  .model-name { font-size: 11px; line-height: 1.35; }
  .point-meta { font-size: 9px; line-height: 1.4; }
  .x-tick, .y-tick, .strip-title { font-size: 10px; }
  .detail-layout { grid-template-columns: 1fr; gap: 28px; }
  footer a { margin-left: 0; }
}
@media (max-width: 480px) {
  .scatter-body { --plot-height: 420px; }
  .api-strip { flex-basis: 64px; }
  .x-tick, .y-tick, .strip-title { font-size: 9px; }
}
