/* Code Handoff Bench results site. Palette: dataviz reference instance (validated 3-slot
   categorical, blue sequential ramp, fixed status colours). Light and dark are
   both selected, not flipped. */
:root {
  color-scheme: light;
  --page: #e6e3dc;
  --surface: #f1efe9;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #66645f; /* 4.6:1 on --page, 5.1:1 on --surface */
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --ring: rgba(11, 11, 11, 0.10);
  --wash: rgba(11, 11, 11, 0.05);
  --sel-bg: #d9dee6; --sel-ink: #13233a; --sel-ring: #a9b6c8;
  --s1: #2a78d6; /* Anthropic */
  --s2: #eb6834; /* OpenAI */
  --s3: #1baf7a; /* other vendors */
  --good: #0ca30c; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --good-ink: #006300; --bad-ink: #a82222; --warn-ink: #8f5800; /* status text, readable on their tinted cells */
  --q1: #cde2fb; --q2: #b7d3f6; --q3: #9ec5f4; --q4: #86b6ef; --q5: #6da7ec; --q6: #5598e7;
  --q7: #3987e5; --q8: #2670cb; --q9: #256abf; --q10: #1c5cab; --q11: #184f95; --q12: #104281; --q13: #0d366b;
  --radius: 4px;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  /* Headings and chart labels. Defaults to --font; a host page can set it (mikesulsenti.com uses a condensed face). */
  --display: var(--font);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #161a21; --surface: #1f242d; --ink: #e7e9ec; --ink-2: #b9bfc8; --muted: #959ca7;
    --grid: #2b313b; --axis: #3b4350; --ring: rgba(255, 255, 255, 0.09); --wash: rgba(255, 255, 255, 0.045);
    --sel-bg: #34507a; --sel-ink: #f2f5f9; --sel-ring: #4d6b96;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --good-ink: #2fc22f; --bad-ink: #f07272; --warn-ink: #e0a030;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #161a21; --surface: #1f242d; --ink: #e7e9ec; --ink-2: #b9bfc8; --muted: #959ca7;
  --grid: #2b313b; --axis: #3b4350; --ring: rgba(255, 255, 255, 0.09); --wash: rgba(255, 255, 255, 0.045);
    --sel-bg: #34507a; --sel-ink: #f2f5f9; --sel-ring: #4d6b96;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --good-ink: #2fc22f; --bad-ink: #f07272; --warn-ink: #e0a030;
}
/* Embedded preview (T3 Code frame): no page plane, host theme variables where present. */
:root[data-embed] { --page: transparent; }
:root[data-embed] body { background: transparent; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--axis); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--ink-2); }
button { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px 64px; }
:root[data-embed] .wrap { padding: 4px 0 24px; }

/* Header */
.masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand h1 { font-family: var(--display); font-size: 26px; line-height: 1; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
.brand .tag { color: var(--muted); font-size: 13px; }
.lede { color: var(--ink-2); max-width: 760px; margin: 6px 0 0; }
.meta { color: var(--muted); font-size: 12px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.meta .updated { color: var(--ink-2); font-size: 14px; }
.meta .updated b { color: var(--ink); font-size: 16px; font-weight: 700; margin-left: 4px; }
.meta .gen { font-size: 11px; }

.masthead { align-items: flex-start; }
details.changelog { margin: -6px 0 14px; font-size: 13px; }
details.changelog summary { cursor: pointer; color: var(--ink-2); font-weight: 600; display: inline-block; padding: 3px 0; }
details.changelog[open] { background: var(--surface); box-shadow: 0 0 0 1px var(--ring); border-radius: var(--radius); padding: 10px 14px; }
details.changelog .change { margin-top: 8px; }
details.changelog .cdate { color: var(--ink); }
details.changelog .cdate b { margin-right: 6px; }
details.changelog ul { margin: 4px 0 0 0; padding-left: 18px; color: var(--ink-2); }
table.plain.num td, table.plain.num th { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.plain.num td:first-child, table.plain.num th:first-child { text-align: left; }
table.plain .key { display: inline-block; width: 8px; height: 8px; border-radius: 1px; margin-right: 8px; vertical-align: 0; }
td.splitcell { width: 22%; min-width: 120px; }
.split { display: flex; height: 10px; gap: 1px; margin-left: auto; }
.split i { display: block; height: 100%; }

/* Controls: one row, above everything they scope. --controls-top is how far below the viewport top the bar
   sticks; a host page with its own sticky header can raise it. */
:root { --controls-top: 8px; }
.controls { position: sticky; top: var(--controls-top); z-index: 5; display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px; margin-bottom: 14px; background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--ring), 0 6px 18px rgba(0,0,0,.10); }
.ctlrow { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; }
.ctl > label { min-width: 38px; }
:root[data-embed] .controls { position: static; background: transparent; }
/* Labels line up with the first line of options when the options wrap */
.ctl { display: flex; align-items: flex-start; gap: 8px; min-width: 0; max-width: 100%; }
.ctl > label { color: var(--muted); font-size: 12px; line-height: 40px; text-transform: uppercase; letter-spacing: 0.06em; }
.ctl > .opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 4px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--ring); flex-wrap: wrap; }
.seg button { display: inline-flex; align-items: center; border: 0; background: transparent; padding: 7px 14px; border-radius: 3px; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.seg button .vicon { flex: none; margin-right: 7px; }
.ctl .seg button { padding: 7px 12px; }
/* Phones: one swipeable row per control, faded at the edge that has more; the bar stops being sticky. */
/* Native dropdowns: the phone controls (.msel) and "Jump to section" (.tocsel). Options get solid theme colours:
   Chrome paints the open list with the select's own (translucent) background otherwise. */
.msel, .tocsel { display: none; position: relative; min-width: 0; align-items: center; }
.msel select, .tocsel select { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 0; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--ring); padding: 9px 34px 9px 11px; }
.msel select option, .tocsel select option { background-color: var(--surface); color: var(--ink); }
.msel select:focus-visible, .tocsel select:focus-visible { outline: 2px solid var(--sel-ring); outline-offset: 1px; }
.msel::after, .tocsel::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.msel .vicon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none; }
.msel .vicon + select { padding-left: 38px; }
.tocsel { display: flex; margin-left: auto; }
.tocsel select { font-size: 13px; font-weight: 550; padding: 6px 30px 6px 10px; }
@media (max-width: 640px) { .tocsel { flex-basis: 100%; margin-left: 0; } .tocsel select { font-size: 16px; padding: 9px 34px 9px 11px; } }

/* On this page: in the left margin from 1640px; the dropdown in the scope line replaces it below that */
.toc { display: none; }
.grid > .card, .grid > .tiles { scroll-margin-top: calc(var(--controls-top) + var(--ctl-h, 0px) + 12px); }
/* The content column stays 1240px wide (it lines up with a host page's header); the list sits in the left
   margin once there is room for it, from 1640px. */
@media (min-width: 1640px) {
  .layout { position: relative; }
  .toc { display: block; position: absolute; top: 0; bottom: 0; right: calc(100% + 28px); width: 176px; }
  .toc-inner { position: sticky; top: calc(var(--controls-top) + var(--ctl-h, 0px) + 12px);
    max-height: calc(100vh - var(--controls-top) - var(--ctl-h, 0px) - 24px); overflow-y: auto; }
  .tocsel { display: none; }
}
.toc-h { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 2px 0 8px 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; box-shadow: inset 1px 0 0 var(--grid); }
.toc button { display: block; width: 100%; text-align: left; background: none; border: 0; border-left: 2px solid transparent; padding: 5px 8px 5px 10px;
  color: var(--ink-2); font: inherit; font-size: 13px; line-height: 1.3; cursor: pointer; }
.toc button:hover { color: var(--ink); background: var(--wash); }
.toc button.on { color: var(--ink); font-weight: 650; border-left-color: var(--ink); }

@media (max-width: 640px) {
  .controls { padding: 8px 10px; gap: 6px; }
  .ctl > .opts { display: none !important; }
  .msel { display: flex; flex: 1; }
  .ctl > label { align-self: center; }
  .ctlrow { flex-direction: column; align-items: stretch; gap: 6px; }
  .ctl { gap: 6px; }
  .ctl > label { flex: none; min-width: 40px; font-size: 11px; }
  .ctl > .opts { flex: 1; flex-wrap: nowrap; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .ctl > .opts::-webkit-scrollbar { display: none; }
  .ctl .seg { flex: none; flex-wrap: nowrap; }
  .ctl .seg button { padding: 7px 11px; }
  .ctl > .opts.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
  .ctl > .opts.more-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
  .ctl > .opts.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
}
/* Not sticky on phones or on screens up to 900px tall (most laptops), where the stuck bar (two or three rows)
   would cover too much; the on-this-page list and "Jump to section" still reach every section. */
@media (max-width: 640px), (max-height: 900px) { .controls { position: static; } }
/* Tablets and narrow laptops: the dropdowns instead of the button rows, side by side on one line */
@media (min-width: 641px) and (max-width: 1100px) {
  .controls { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 8px 12px; }
  .ctlrow { flex-wrap: nowrap; gap: 8px 18px; flex: 1 1 auto; }
  .ctl { align-items: center; flex: 1 1 0; min-width: 0; }
  .ctl > label { line-height: 1; }
  .ctl > .opts { display: none !important; }
  .msel { display: flex; flex: 1; min-width: 0; }
  .msel select { font-size: 14px; padding: 7px 30px 7px 10px; }
  .msel .vicon + select { padding-left: 36px; }
}
.seg button:hover { color: var(--ink); background: var(--wash); }
.seg button[aria-pressed="true"] { background: var(--sel-bg); color: var(--sel-ink); box-shadow: inset 0 0 0 1px var(--sel-ring); font-weight: 650; }
.seg button .sub { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 4px; }
.seg button.empty { color: var(--muted); }
.spacer { flex: 1; }
.iconbtn { border: 1px solid var(--axis); background: var(--surface); border-radius: 3px; padding: 5px 9px; cursor: pointer; }

/* Cards and sections */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { grid-column: span 12; background: var(--surface); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--ring); padding: 16px 18px 14px; min-width: 0; }
.card.half { grid-column: span 6; }
@media (max-width: 900px) { .card.half { grid-column: span 12; } }
.card h2 { font-family: var(--display); font-size: 15px; margin: 0; font-weight: 650; letter-spacing: -0.005em; }
.card .sub { color: var(--muted); font-size: 12.5px; margin: 2px 0 10px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.card-head .seg button { padding: 3px 8px; font-size: 12px; }
.empty-state { color: var(--muted); padding: 28px 8px; text-align: center; }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; grid-column: span 12; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { background: var(--surface); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--ring); padding: 14px 16px; min-width: 0; }
.tile .label { color: var(--muted); font-size: 12px; }
.tile .value { font-size: 22px; font-weight: 650; margin-top: 4px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .note { color: var(--ink-2); font-size: 12.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Selected lead (full model name) and scope line, under the controls */
.scope { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: -2px 0 14px; }
.leadhead { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.leadhead .vicon { width: 20px; height: 20px; flex: none; }
.leadhead .eyebrow { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.leadhead b { color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.leadhead .lsub { color: var(--ink-2); font-size: 13px; }
.scopetext { color: var(--muted); font-size: 12.5px; }

/* Leads compared (All leads): median per lead and task, plus a strip of every configuration */
table.matrix.lc td.name .vicon { vertical-align: -3px; margin-right: 7px; }
table.matrix.lc th.lc-focus { color: var(--ink); }
table.matrix.lc td.heat.lc-focus { box-shadow: inset 0 0 0 2px var(--ink); }
table.matrix.lc td.lc-stripcell { padding-left: 10px; }
.lc-strip { display: block; overflow: visible; }
.lc-strip .lc-axis { stroke: var(--axis); stroke-width: 1; }
.lc-strip .lc-dot { fill-opacity: .75; stroke: var(--surface); stroke-width: 1; }
.lc-strip .lc-med { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.lc-strip .lc-clip { fill-opacity: 1; stroke: var(--ink-2); }
.lc-scale { margin-top: 2px; }
.lc-none { color: var(--muted); font-size: 12px; }
.lc-scale text { fill: var(--muted); font: 10px var(--display); }

/* Expandable controls (details.xbtn): a bordered button with a chevron, so they read as clickable */
details.xbtn > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 12px; border-radius: 4px;
  background: var(--wash); box-shadow: inset 0 0 0 1px var(--ring); color: var(--ink-2); font-size: 12.5px; font-weight: 600; user-select: none; }
details.xbtn > summary::-webkit-details-marker { display: none; }
details.xbtn > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(-45deg); transition: transform .15s ease; }
details.xbtn[open] > summary::before { transform: translateY(-3px) rotate(45deg); }
details.xbtn > summary:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--axis); }
details.xbtn > summary:focus-visible { outline: 2px solid var(--sel-ring); outline-offset: 1px; }
details.xbtn[open] > summary { margin-bottom: 8px; }

/* Findings: full-width cards; the title row opens the explanation, evidence opens inside it */
.fcards { display: flex; flex-direction: column; gap: 8px; }
.fcard { border-radius: 4px; box-shadow: inset 0 0 0 1px var(--ring); background: var(--surface); }
.fcard[open] { box-shadow: inset 0 0 0 1px var(--axis); }
.fcard > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 11px 14px; border-radius: 4px; }
.fcard > summary::-webkit-details-marker { display: none; }
.fcard > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(-45deg); transition: transform .15s ease; justify-self: center; }
.fcard[open] > summary::before { transform: translateY(-2px) rotate(45deg); }
.fcard > summary:hover { background: var(--wash); }
.fcard > summary:focus-visible { outline: 2px solid var(--sel-ring); outline-offset: -2px; }
.fc-t { font-weight: 650; color: var(--ink); line-height: 1.35; }
.fc-m { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-2); padding: 2px 7px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--ring); white-space: nowrap; }
.fchip .vicon { width: 13px; height: 13px; }
.fchip .key { width: 8px; height: 8px; border-radius: 1px; display: inline-block; }
.fchip .langpill { font-size: 10px; }
.fchip.dim { color: var(--muted); }
.fnd-s { flex: none; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fnd-s.strong { color: var(--good-ink); }
.fc-b { padding: 0 16px 14px 40px; }
.fc-b p { margin: 0 0 10px; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; max-width: 900px; }
.fc-e ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.fc-e li { margin: 2px 0; }
.fnd-more { margin-top: 12px; }
@media (max-width: 640px) {
  .fcard > summary { grid-template-columns: 12px minmax(0, 1fr); }
  .fc-m { grid-column: 2; justify-content: flex-start; }
  .fc-b { padding: 0 12px 12px 30px; }
}
@media (prefers-reduced-motion: reduce) { details.xbtn > summary::before, .fcard > summary::before { transition: none; } }
/* Label above the text: a long label ("⚠ Rules deviation (minor)") beside it squeezed the text into a narrow column */
.entrynote { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 10px; border-radius: 3px; background: var(--wash);
  box-shadow: inset 3px 0 0 var(--ink-2); font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.entrynote b { color: var(--ink); flex: none; }
@media (max-width: 640px) { .fnds { grid-template-columns: minmax(0, 1fr); } }

/* FAQ: one row per question, a chevron inside the row, answers aligned under the question text */
.faq { margin-top: 2px; }
.faq details { border-top: 1px solid var(--grid); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 11px 8px; margin: 0 -8px;
  border-radius: 3px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; flex: none; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(-45deg); transition: transform .15s ease; }
.faq details[open] > summary::before { transform: translateY(-4px) rotate(45deg); }
.faq summary:hover { background: var(--wash); }
.faq summary:focus-visible { outline: 2px solid var(--sel-ring); outline-offset: -2px; }
.faq details p { margin: 0 0 10px 16px; color: var(--ink-2); max-width: 820px; line-height: 1.55; }
.faq details[open] { padding-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .faq summary::before { transition: none; } }

/* Task banner */
.task-banner { grid-column: span 12; display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; align-items: start; }
.task-banner .lang { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--ring); color: var(--ink-2); margin-right: 6px; }
.task-banner p { margin: 6px 0 0; color: var(--ink-2); }
.task-banner .facts { color: var(--muted); font-size: 12.5px; text-align: right; white-space: nowrap; }

/* Matrix */
/* A size container, so an open drawer can match the visible width while the table scrolls under it */
.tablewrap { overflow-x: auto; margin: 0 -4px; container-type: inline-size; }
table.matrix { border-collapse: separate; border-spacing: 2px; width: 100%; font-variant-numeric: tabular-nums; }
table.matrix th { font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; padding: 4px 6px; white-space: nowrap; }
table.matrix th.l, table.matrix td.l { text-align: left; }
table.matrix td { padding: 0 8px; height: 30px; text-align: center; white-space: nowrap; font-size: 13px; }
table.matrix td.name { font-weight: 550; padding-left: 4px; }
table.matrix td.name .key { display: inline-block; width: 8px; height: 8px; border-radius: 1px; margin-right: 8px; vertical-align: 1px; }
table.matrix td.name .fast { color: var(--muted); font-weight: 400; margin-left: 4px; font-size: 12px; }
table.matrix td.name .conduct { color: var(--warn-ink); font-weight: 600; margin-left: 4px; font-size: 12px; cursor: help; }
table.matrix td.heat { border-radius: 2px; font-weight: 600; min-width: 46px; }
table.matrix td.avg { font-weight: 700; }
table.matrix td.dim { color: var(--ink-2); }
table.matrix td.fail { color: var(--bad-ink); font-weight: 600; }
table.matrix tbody tr.row { cursor: pointer; }
table.matrix tbody tr.row:hover td.name, table.matrix tbody tr.row:focus-visible td.name { text-decoration: underline; text-decoration-color: var(--axis); }
table.matrix tbody tr.row:focus-visible { outline: 2px solid var(--s1); outline-offset: -1px; }
table.matrix tr.dnf td { color: var(--muted); font-style: italic; }
table.matrix td.na { color: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--ink-2); font-size: 12px; margin-top: 8px; }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 1px; margin-right: 6px; vertical-align: -1px; }
.legend .swsvg { display: inline-block; margin-right: 5px; vertical-align: -1px; overflow: visible; }
.legend .ramp { display: inline-flex; gap: 2px; vertical-align: -1px; margin: 0 6px; }
.legend .ramp i { width: 14px; height: 10px; border-radius: 1px; display: inline-block; }

/* Findings drawer */
tr.drawer td { padding: 6px 4px 14px; text-align: left; white-space: normal; }
/* Pinned to the visible part of a sideways-scrolling table, so findings read without scrolling right */
.drawer-box { position: sticky; left: 10px; max-width: calc(100cqw - 20px); }
.drawer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.seatbox { box-shadow: 0 0 0 1px var(--ring); border-radius: 3px; padding: 10px 12px; }
.seatbox h4 { margin: 0 0 2px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 8px; }
.seatbox .why { color: var(--ink-2); font-size: 12.5px; margin-bottom: 6px; }
.finding { font-size: 12.5px; padding: 5px 0; border-top: 1px solid var(--grid); }
.finding .t { font-weight: 550; }
.finding .d { color: var(--ink-2); margin-top: 2px; }
.finding, .seatbox .why, .drawer-foot { overflow-wrap: anywhere; }
.finding.fp .t { text-decoration: line-through; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; margin-right: 6px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cat { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--ring); color: var(--ink-2); margin-right: 6px; }
.cat.slop { box-shadow: inset 0 0 0 1px var(--s2); }
.drawer-foot { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* Charts */
.chart { width: 100%; position: relative; }
.chart svg { display: block; overflow: visible; }
.chart text { fill: var(--ink-2); font: 11.5px var(--display); }
.chart .axis-label { fill: var(--muted); font-size: 11px; }
.chart .tick text { fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart .refline { stroke: var(--ink-2); stroke-width: 1; }
.chart .rowlabel { fill: var(--ink); font-size: 12px; }
/* stacked row labels (narrow bar charts) sit over grid and reference lines */
.chart .halo { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.chart .valuelabel { fill: var(--ink-2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.chart .mark { cursor: default; transition: opacity .12s; }
.chart .mark:hover, .chart .mark:focus { opacity: .82; outline: none; }
.chart .hit { fill: transparent; }
.panels { display: grid; grid-template-columns: 1fr; gap: 0 24px; }
.panels.multi { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.panel { min-width: 0; }
.chart .basemark { stroke: var(--ink-2); stroke-width: 1; opacity: .7; }
.tile.pick { box-shadow: 0 0 0 1px var(--ring), inset 0 3px 0 var(--ink); }
.chart .frontier { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linejoin: round; opacity: .55; }
.chart .ptlabel { fill: var(--ink); font-size: 11.5px; }
.chart .ptlabel.minor { fill: var(--ink-2); }
.chart-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
details.tableview { margin-top: 8px; font-size: 12.5px; }

details.tableview table { border-collapse: collapse; margin-top: 6px; font-variant-numeric: tabular-nums; }
details.tableview td, details.tableview th { padding: 3px 10px 3px 0; text-align: left; border-bottom: 1px solid var(--grid); }

/* Tooltip */
#tip { position: fixed; z-index: 50; pointer-events: none; background: var(--surface); color: var(--ink); border-radius: 3px;
  box-shadow: 0 0 0 1px var(--ring), 0 8px 24px rgba(0,0,0,.14); padding: 9px 11px; font-size: 12.5px; min-width: 160px; max-width: 300px; opacity: 0; transition: opacity .08s; }
#tip.on { opacity: 1; }
#tip .tt { font-weight: 650; margin-bottom: 4px; }
#tip .row { display: flex; justify-content: space-between; gap: 14px; }
#tip .row b { font-variant-numeric: tabular-nums; }
#tip .row span { color: var(--ink-2); }
#tip .note { color: var(--muted); margin-top: 4px; font-size: 11.5px; }

/* Leads and tasks */
table.plain { border-collapse: collapse; width: 100%; font-size: 13px; }
table.plain th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11.5px; padding: 4px 10px 6px 0; border-bottom: 1px solid var(--grid); }
table.plain td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--grid); vertical-align: top; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.status i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.linkbtn { border: 0; background: none; padding: 0; text-decoration: underline; text-decoration-color: var(--axis); text-underline-offset: 2px; cursor: pointer; color: var(--ink); font-size: 12.5px; }
.taskgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.taskcard { box-shadow: 0 0 0 1px var(--ring); border-radius: 3px; padding: 12px; cursor: pointer; background: transparent; text-align: left; border: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.taskcard .foot { margin-top: auto; padding-top: 8px; }
.taskcard:hover { background: var(--wash); }
.taskcard .lang { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.taskcard .title { font-weight: 650; margin: 2px 0 4px; }
.taskcard .desc { color: var(--ink-2); font-size: 12.5px; }
.taskcard .foot { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* Brief dialog */
dialog { border: 0; border-radius: 4px; padding: 0; max-width: min(860px, 94vw); width: 860px; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--ring), 0 20px 60px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(0,0,0,.45); }
dialog .dhead { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--grid); position: sticky; top: 0; background: var(--surface); }
dialog .dbody { padding: 4px 22px 22px; max-height: 76vh; overflow: auto; font-size: 13.5px; }
dialog .dleads { padding: 10px 16px 8px; border-bottom: 1px solid var(--grid); display: flex; flex-direction: column; gap: 6px; }
dialog .dleads .seg { flex-wrap: wrap; align-self: flex-start; }
dialog .dleads .seg button { padding: 6px 11px; font-size: 13px; }
dialog .dleads .dlead-meta { color: var(--muted); font-size: 12px; }
table.matrix.lc th .lc-brief { font: inherit; font-weight: 600; color: inherit; }
table.matrix.lc th .lc-brief:hover { color: var(--ink); }
table.matrix.lc td.lc-open { cursor: pointer; }
table.matrix.lc td.lc-open:hover, table.matrix.lc td.lc-open:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
dialog .dbody pre { background: var(--wash); padding: 10px 12px; border-radius: 2px; overflow-x: auto; font: 12px/1.5 var(--mono); }
dialog .dbody code { font: 12px var(--mono); background: var(--wash); padding: 0 4px; border-radius: 2px; }
dialog .dbody pre code { background: none; padding: 0; }
dialog .dbody h1 { font-size: 18px; } dialog .dbody h2 { font-size: 15px; margin-top: 18px; } dialog .dbody h3 { font-size: 13.5px; }
footer.foot { color: var(--muted); font-size: 12px; margin-top: 28px; line-height: 1.6; }
footer.foot b { color: var(--ink-2); font-weight: 600; }
@media (forced-colors: active) { .chart .mark { stroke: CanvasText; stroke-width: 1; } }

/* Effort tag, language pills, icon theme button */
.effort { display: inline-block; margin-left: 6px; padding: 0 5px; font-size: 11px; line-height: 16px; font-weight: 600; color: var(--ink-2);
  border-radius: 2px; box-shadow: inset 0 0 0 1px var(--axis); background: var(--wash); vertical-align: 1px; letter-spacing: .02em; }
.langpill { display: inline-block; padding: 0 6px; margin-right: 7px; border-radius: 2px; font-size: 11.5px; line-height: 18px; font-weight: 700;
  color: #fff; background: var(--lc); vertical-align: 1px; letter-spacing: .02em; }
.seg button .langpill { margin-right: 6px; }
.seg button.empty .langpill { opacity: 1; }
.taskcard .langpill { margin-bottom: 4px; }
.task-banner h2 .langpill { font-size: 12px; }
.themebtn { width: 34px; padding: 0; color: var(--ink); }
table.matrix th { white-space: nowrap; }

/* Top bar, intro, What's new */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--grid); }
.topactions { display: flex; gap: 8px; align-items: center; }
.topactions .iconbtn { box-sizing: border-box; height: 34px; margin: 0; line-height: 1; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.iconbtn.repo { gap: 7px; padding: 0 12px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; }
.iconbtn.repo[hidden] { display: none; }
.intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 14px; flex-wrap: wrap; }
.intro .lede { margin: 0; }
.newsbtn { margin-left: 10px; font: inherit; font-size: 12.5px; font-weight: 650; color: var(--ink); background: var(--wash); cursor: pointer;
  border: 1px solid var(--axis); border-radius: 3px; padding: 3px 10px; display: inline-flex; align-items: center; gap: 6px; vertical-align: 1px; }
.newsbtn:hover { background: var(--surface); border-color: var(--ink-2); }
.newsbtn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--critical); display: inline-block; }
.newsbtn .dot[hidden] { display: none; }
#news .change { padding: 12px 0; border-bottom: 1px solid var(--grid); }
#news .change:last-child { border-bottom: 0; }
#news h3 { margin: 0 0 6px; font-size: 14px; }
#news .cdate { display: inline-block; font-variant-numeric: tabular-nums; color: var(--ink-2); margin-right: 8px; font-weight: 600; }
#news ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
#news li { margin: 3px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 2px; }
.chipslabel { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 2px; }
.mchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 8px 2px 0; border-radius: 2px;
  background: color-mix(in srgb, var(--vc) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vc) 55%, transparent); color: var(--ink); }
.mchip i { width: 4px; align-self: stretch; background: var(--vc); border-radius: 2px 0 0 2px; }
.mchip .role { font-weight: 500; font-size: 10.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
/* Tiles: prominent titles, pick highlighted by colour, not a border */
.tile .label { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: -.005em; }
.tile.pick { box-shadow: 0 0 0 1px var(--ring); }
.tile.pick .label { color: var(--pick); }
:root { --pick: #1c7a4d; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --pick: #4cc38a; } }
:root[data-theme="dark"] { --pick: #4cc38a; }

.tile ol.picks { margin: 6px 0 0; padding-left: 20px; }
.tile ol.picks li { margin: 2px 0; }
.tile ol.picks li::marker { color: var(--pick); font-weight: 700; }
.tile .pname { font-weight: 700; font-size: 15px; }
.tile .pmeta { display: block; color: var(--ink-2); font-size: 12px; }
.tiles { grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Score matrix sized for 8+ judges */
table.matrix th.jcol { white-space: normal; width: 62px; max-width: 74px; line-height: 1.15; vertical-align: bottom; padding: 2px 3px 4px; }
table.matrix td.heat { min-width: 42px; padding: 0 4px; }
table.matrix td { padding: 0 6px; }
table.matrix th.avgcol, table.matrix td.avgcol { border-left: 2px solid var(--surface); padding-left: 10px; }
table.matrix tr.grouprow th { height: 18px; padding: 0 3px; }
table.matrix th.group { color: var(--ink-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--axis); text-align: center; }
.tile .value { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; }
.tile .note { white-space: normal; }

/* repeat runs: spread markers, run tabs */
table.matrix td.heat .pm { display: block; font-size: 10px; font-weight: 500; opacity: .8; line-height: 1; margin-top: 1px; }
.chart .whisker { fill: none; stroke-width: 1.4; opacity: .7; }
.chart .barwhisker { stroke: var(--ink); opacity: .55; }
.runtabs { margin: 2px 0 10px; }
.runtabs button { padding: 3px 10px; font-size: 12px; }
/* judge agreement */
.kpis { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 4px 0 12px; }
.kpis div { display: flex; align-items: baseline; gap: 8px; }
.kpis b { font-size: 20px; font-variant-numeric: tabular-nums; }
.kpis span { color: var(--muted); font-size: 12.5px; }
/* empty selection */
.emptycard h2 { margin-bottom: 8px; }
.emptycard p { color: var(--ink-2); margin: 6px 0; max-width: 72ch; }
/* downloads */
.dl { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--muted); }
.dl::before { content: "Download"; }

/* expandable rows: whole-row hover, chevron, open state */
table.matrix td.name .chev { display: inline-block; width: 12px; margin-right: 4px; color: var(--muted); font-size: 10px; transition: transform .12s; }
table.matrix td.name .chev::before { content: "▶"; }
table.matrix td.name .chev.none::before { content: ""; }
table.matrix tbody tr.row.open td.name .chev { transform: rotate(90deg); color: var(--ink); }
table.matrix tbody tr.row.expandable:hover td:not(.heat), table.matrix tbody tr.row.open td:not(.heat) { background: var(--wash); }
table.matrix tbody tr.row.expandable:hover td.heat, table.matrix tbody tr.row.open td.heat { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
table.matrix tbody tr.row.expandable:hover td.name .chev { color: var(--ink); }
table.matrix tbody tr.row:not(.expandable) { cursor: default; }
tr.drawer td { padding: 16px 8px 20px; background: var(--wash); border-radius: 0 0 3px 3px; }
.taskbox h4 .tbtag { color: var(--muted); font-weight: 500; margin-left: 6px; }
.taskbox h4 .langpill { font-size: 10.5px; line-height: 16px; margin-right: 6px; }
.taskbox .linkbtn { margin-top: 8px; font-size: 12px; }
.ojudge .ojh { display: flex; justify-content: space-between; gap: 8px; }
.seatbox { background: var(--surface); }
/* score vs cost: two tool groups */
.toolrow { display: flex; gap: 8px; flex-wrap: wrap; }
.outnote { color: var(--muted); }
/* tooltip swatch, focusable split bars */
#tip .tt .tsw { display: inline-block; width: 10px; height: 10px; border-radius: 1px; margin-right: 6px; vertical-align: -1px; }
.split:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; }
.split i { cursor: default; }
/* benchmark cost */
.costgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 8px 28px; }
.costblock h3 { font-size: 12.5px; font-weight: 650; color: var(--ink-2); margin: 6px 0 4px; }
.costblock .langpill { font-size: 10.5px; line-height: 16px; }

/* Top picks (two columns) beside one combined stats card */
.tiles { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile ol.picks { columns: 2; column-gap: 28px; }
.tile ol.picks li { break-inside: avoid; margin: 2px 0 8px; }
@media (max-width: 560px) { .tile ol.picks { columns: 1; } }
.tile.stats { display: flex; flex-direction: column; gap: 10px; }
.tile.stats .stat + .stat { border-top: 1px solid var(--grid); padding-top: 8px; }
.tile.stats .label { font-size: 12px; }
.tile .sname { font-weight: 700; font-size: 15px; margin-top: 2px; }

/* cheapest/quickest (green) and dearest/slowest (red) in the score table */
table.matrix td.best { color: var(--good-ink); background: color-mix(in srgb, var(--good) 16%, transparent); font-weight: 650; border-radius: 2px; }
table.matrix td.worst { color: var(--bad-ink); background: color-mix(in srgb, var(--critical) 13%, transparent); font-weight: 650; border-radius: 2px; }

table.plain.num td.harnesscell { text-align: left; white-space: normal; min-width: 150px; max-width: 230px; font-size: 12px; }
td.harnesscell .hp + .hp { margin-top: 4px; }
td.harnesscell .prov { display: block; color: var(--ink); }
td.harnesscell .hz { display: block; }
td.harnesscell .info { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; margin-left: 5px; border: 1px solid var(--muted); border-radius: 50%; font: italic 600 9px/1 Georgia, serif; color: var(--muted); cursor: help; vertical-align: 1px; }
td.harnesscell .info:hover, td.harnesscell .info:focus { color: var(--ink); border-color: var(--ink); outline: none; }
table.plain.num.tokens th:nth-child(2) { text-align: left; }

/* Score table: model names stay put while the score columns scroll sideways (phones) */
table.matrix td.name, table.matrix th.l, table.matrix tr.grouprow th:first-child { position: sticky; left: 0; z-index: 1;
  background: var(--surface); box-shadow: 2px 0 0 var(--surface); }
table.matrix tbody tr.row.expandable:hover td.name, table.matrix tbody tr.row.open td.name { background: linear-gradient(var(--wash), var(--wash)), var(--surface); }
.leadtable .linkbtn { white-space: nowrap; }

/* Tablets and phones */
@media (max-width: 900px) { .wrap { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 640px) {
  .wrap { padding-top: 20px; }
  .grid, .tiles { gap: 12px; }
  .card { padding: 14px 12px 12px; }
  .tile { padding: 12px 14px; }
  .meta { align-items: flex-start; text-align: left; }
  .task-banner { grid-template-columns: minmax(0, 1fr); }
  .task-banner .facts { text-align: left; white-space: normal; }
  /* names may wrap, with a hanging indent past the chevron and colour key */
  table.matrix td.name { white-space: normal; width: 156px; min-width: 156px; max-width: 156px; line-height: 1.25; padding: 5px 4px 5px 32px; text-indent: -28px; }
  table.matrix td.name > * { text-indent: 0; }
  .tablewrap > table.plain th:first-child, .tablewrap > table.plain td:first-child { position: sticky; left: 0; z-index: 1;
    background: var(--surface); box-shadow: 1px 0 0 var(--grid); }
  table.plain.num td:first-child { white-space: normal; min-width: 128px; }
  table.plain th, table.plain td { padding-left: 4px; }
  .leadtable { min-width: 600px; }
  .leadtable td:first-child { min-width: 132px; }
  dialog .dbody { padding: 4px 14px 16px; }
}

/* Council judges: second table (review cost and time) */
.card h3.subhead { font-size: 14px; font-weight: 650; margin: 20px 0 4px; color: var(--ink); }
.card > .sub { color: var(--muted); font-size: 12.5px; }
.fchip .langpill { margin: 0 2px 0 0; }
.loadstate { padding: 18px 20px; color: var(--ink-2); } .loadstate button { margin-top: 8px; font-size: 13px; }
table.matrix td.name .vicon { width: 13px; height: 13px; margin-right: 7px; vertical-align: -2px; }
.entrynote.conductnote { box-shadow: inset 3px 0 0 var(--warning); }
.taskcard .go { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.taskcard:hover .go, .taskcard:focus-visible .go { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.taskcard .foot b { font-weight: 600; color: var(--muted); }
.chartsvg:focus-visible { outline: 2px solid var(--sel-ring); outline-offset: 2px; border-radius: 2px; }
.chart .mark:focus-visible { outline: 2px solid var(--sel-ring); }
.tile .pickrule { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.45; max-width: 760px; }
/* Intro: how it works, and links to the method, findings and FAQ */
.introtext { max-width: 780px; }
.howto { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; margin: 12px 0 0; padding: 0; }
.howto li { counter-increment: step; position: relative; padding-left: 26px; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.howto li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--axis);
  color: var(--ink-2); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.howto li b { color: var(--ink); display: block; }
.introlinks { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; }
.introlinks a, .introlinks .linkbtn { font-size: 13px; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .howto { grid-template-columns: minmax(0, 1fr); gap: 6px; } .howto li b { display: inline; margin-right: 4px; } }
@media (max-width: 640px) { #gen { display: none; } }
dialog .dbody table.plain { margin: 6px 0 12px; font-size: 12.5px; }
@media (max-width: 900px) { .howto li b::after { content: ":"; } }
table.plain td .vicon { width: 13px; height: 13px; vertical-align: -2px; }

/* Cost-split palettes: light uses the blue ramp; dark reverses its lightness so no segment sinks into the surface */
:root { --cb-in: var(--q5); --cb-cr: var(--q2); --cb-cw: var(--q9); --cb-out: var(--q13); --cc-1: var(--q5); --cc-2: var(--q9); --cc-3: var(--q13); }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --cb-in: #3987e5; --cb-cr: #1c5cab; --cb-cw: #86b6ef; --cb-out: #cde2fb; --cc-1: #6da7ec; --cc-2: #2a78d6; --cc-3: #cde2fb; } }
:root[data-theme="dark"] { --cb-in: #3987e5; --cb-cr: #1c5cab; --cb-cw: #86b6ef; --cb-out: #cde2fb; --cc-1: #6da7ec; --cc-2: #2a78d6; --cc-3: #cde2fb; }

/* Wide screens: slightly tighter buttons so task and effort view share the second row of the bar */
@media (min-width: 1101px) {
  .controls .seg button { padding: 7px 9px; }
  .controls .seg button .langpill { margin-right: 5px; }
  .controls .seg button .vicon { margin-right: 6px; }
  .controls .ctlrow { gap: 10px 14px; }
}

/* Sideways-scrolling tables: a fade on the side with more columns (set by app.js) */
.tablewrap.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.tablewrap.more-r.more-l, .tablewrap.more-l { -webkit-mask-image: none; mask-image: none; }
.tablewrap.more-r.more-l { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }

/* Phones: the lede already says what the numbered steps say, and the Lead dropdown already names the lead,
   so both give way to put the results on an earlier screen. */
@media (max-width: 640px) {
  .howto { display: none; }
  .leadhead .eyebrow, .leadhead > b, .leadhead > .vicon, .leadhead > svg { display: none; }
}
@media (max-width: 900px) { .meta { align-items: flex-start; text-align: left; } }
.seg button[aria-pressed="true"] .sub { color: inherit; font-weight: 400; }

/* Brand marks in charts and legends */
.chart .bmark-bg { fill: var(--surface); }
.legend .vicon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; }

/* Tokens and cost: the model name and its effort tag stay on one line (they wrap only on phones) */
table.plain.tokens td:first-child { white-space: nowrap; }
table.plain.tokens td:first-child .effort { margin-left: 4px; }
@media (max-width: 640px) { table.plain.tokens td:first-child { white-space: normal; } }
.fc-b .fc-go { display: inline-block; margin: 0 0 10px; font-size: 13px; font-weight: 600; }
