/* Kernel mesher trial: review mock. One stylesheet for every page.
   Colour: only the brand's tokens (brand/tokens.css, vendored unchanged).
   Dark is the brand's primary ground (ink); light is the paper ground, with the
   mark in ink on it (BRAND.md section 1). Roles below pick tokens; no new colour. */
@import url("brand/tokens.css?v=d306d1dcbc26");

:root {
  color-scheme: light dark;
  /* light ground: paper */
  --bg: var(--k-paper);
  --card: var(--k-wash-top);
  --fg: var(--k-ink);
  --strong: var(--k-ink);
  --fg2: var(--k-muted);        /* 4.9:1 on paper */
  --line: var(--k-text);
  --link: var(--k-deep);        /* 10.8:1 on paper; flow (4.1:1) is too light for type here */
  --focus: var(--k-flow);
  --accent: var(--k-flow);
  --stage: var(--k-wash);       /* the ground a car picture sits on */
}
/* Dark: the system's unless the viewer picked light, or the viewer picked dark (header switch, cookie). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--k-ink);
    --card: var(--k-surface);
    --fg: var(--k-text);
    --strong: var(--k-paper);
    --fg2: var(--k-dim);
    --line: var(--k-border);
    --link: var(--k-signal);    /* the accent: focus, links */
    --focus: var(--k-signal);
    --accent: var(--k-signal);
    --stage: radial-gradient(120% 120% at 38% 26%, var(--k-border), var(--k-surface));   /* a raised ground */
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--k-ink);
  --card: var(--k-surface);
  --fg: var(--k-text);
  --strong: var(--k-paper);
  --fg2: var(--k-dim);
  --line: var(--k-border);
  --link: var(--k-signal);    /* the accent: focus, links */
  --focus: var(--k-signal);
  --accent: var(--k-signal);
  --stage: radial-gradient(120% 120% at 38% 26%, var(--k-border), var(--k-surface));   /* a raised ground */
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}
h1, h2, h3 { font-weight: 600; color: var(--strong); line-height: 1.25; }
h1 { font-size: 1.6rem; margin: 0.2em 0 0.4em; }
h2 { font-size: 1.2rem; margin: 1.8em 0 0.5em; }
h3 { font-size: 1rem; margin: 1.2em 0 0.4em; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible, label:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
code, .mono, td.num, .num {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
}
td.num, .num { font-variant-numeric: tabular-nums; }
pre {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 0.75em 1em; white-space: pre-wrap; overflow-wrap: anywhere;
}
p, li { overflow-wrap: break-word; }
.muted { color: var(--fg2); }
.small { font-size: 0.875rem; }

/* -- header: the lockup (BRAND.md section 5) ----------------------------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: 80rem; margin: 0 auto; min-height: 60px; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 0.5rem 1.75rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.lockup {
  /* Inter: cap height 0.727 em, x-height 0.546 em. 1.75rem gives a 20.4 px cap
     height (the lockup's minimum is 20 px). Mark height = cap x 1.16 = 0.843 em,
     centred on the x-height midline (0.273 em): bottom at -0.149 em. Gap 0.34 x
     mark height = 0.287 em. Clear space half the mark height on all sides. */
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.024em;
  line-height: 1;
  padding: 0.42em 0.42em 0.42em 0;
  color: var(--strong);
  text-decoration: none;
  white-space: nowrap;
}
.lockup img { height: 0.843em; width: auto; vertical-align: -0.149em; margin-right: 0.287em; }
.top .lockup { font-size: 1.4rem; padding: 0; }
.chip-trial {
  font: 500 11px 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: var(--fg2);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
nav.main { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
nav.main::-webkit-scrollbar { display: none; }
.top-in > * { flex-shrink: 0; }
.top-in > nav.main { flex-shrink: 1; }
nav.main a {
  font-weight: 500; text-decoration: none; color: var(--fg2); padding: 7px 12px; border-radius: 8px;
  transition: color 150ms ease, background-color 150ms ease;
}
nav.main a[aria-current="page"] { color: var(--strong); background: color-mix(in oklab, var(--fg) 8%, transparent); }
@media (hover: hover) and (pointer: fine) { nav.main a:hover { color: var(--strong); } }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.quota { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg2); white-space: nowrap; }
.quota .mono { color: var(--strong); font-size: 12px; }
progress.qbar {
  -webkit-appearance: none; appearance: none; width: 56px; height: 4px; border: 0; border-radius: 2px;
  background: var(--line); overflow: hidden;
}
progress.qbar::-webkit-progress-bar { background: var(--line); border-radius: 2px; }
progress.qbar::-webkit-progress-value { background: var(--accent); border-radius: 2px; }
progress.qbar::-moz-progress-bar { background: var(--accent); border-radius: 2px; }
button.theme {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--card);
  color: var(--fg2); display: grid; place-items: center; cursor: pointer; padding: 0;
}
/* The switch away from the theme in use: to dark in light, to light in dark. Selectors outrank form.inline. */
.top form.inline.theme-light { display: none; }
:root[data-theme="dark"] .top form.inline.theme-light { display: inline; }
:root[data-theme="dark"] .top form.inline.theme-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .top form.inline.theme-light { display: inline; }
  :root:not([data-theme]) .top form.inline.theme-dark { display: none; }
}
button.signout { font-size: 0.875rem; color: var(--fg2); }
@media (max-width: 960px) { .chip-trial, .qlbl { display: none; } .top-in { gap: 0.5rem 1rem; padding: 0 1rem; } }
@media (max-width: 560px) {
  .quota { display: none; }
  .top-in { gap: 0.5rem; padding: 0 0.75rem; }
  .top .lockup { font-size: 1.15rem; }
  nav.main a { padding: 6px 7px; font-size: 0.9rem; }
  .top-right { gap: 8px; }
  button.theme { width: 28px; height: 28px; }
}

main { max-width: 68rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
/* The Cars page for one car: as wide as the header, its content edges on the header's (the lockup, Sign out). */
main.wide { max-width: 80rem; padding: 1rem 1.5rem 3rem; }
@media (max-width: 960px) { main.wide { padding: 1rem 1rem 3rem; } }
footer {
  max-width: 68rem; margin: 0 auto; padding: 1rem; border-top: 1px solid var(--line);
  font-size: 0.875rem; color: var(--fg2);
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
}

/* -- cards, facts, status ------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.75rem 1.5rem; margin: 0; }
.facts div { min-width: 0; }
.facts dt { font-size: 0.8rem; color: var(--fg2); font-weight: 500; }
.facts dd { margin: 0; font-weight: 500; color: var(--strong); overflow-wrap: anywhere; }
.badge {
  display: inline-block; font-weight: 500; font-size: 0.8rem; line-height: 1.4;
  padding: 0.05em 0.55em; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap;
}
/* ink on a ramp colour: 13.8:1 bright, 8.1:1 signal, 4.8:1 attention (errors only) */
.st-done { background: var(--k-bright); color: var(--k-ink); border-color: var(--k-bright); }
.st-running { background: var(--k-signal); color: var(--k-ink); border-color: var(--k-signal); }
.st-queued { background: transparent; color: var(--fg); }
.st-failed, .r-fail { background: var(--k-attention); color: var(--k-ink); border-color: var(--k-attention); }
.lead { font-size: 1.05rem; }
.say-go { font-weight: 600; color: var(--strong); }
.button {
  display: inline-block; font-weight: 500; text-decoration: none;
  background: var(--strong); color: var(--bg); border-radius: 6px; padding: 0.5em 1em;
}
.button.secondary { background: transparent; color: var(--link); border: 1px solid var(--line); }
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.downloads li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }

/* -- tables: cards on a phone, no horizontal scroll ----------------------- */
table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; font-size: 0.925rem; }
th, td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: 0.8rem; color: var(--fg2); }
tr.changed td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
td .sub { display: block; font-size: 0.8rem; color: var(--fg2); }
@media (max-width: 44rem) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 0.75rem; padding: 0.25rem 0.5rem; background: var(--card); }
  tr.changed { box-shadow: inset 3px 0 0 var(--accent); }
  tr.changed td:first-child { box-shadow: none; }
  td { border: 0; padding: 0.3rem 0; display: grid; grid-template-columns: minmax(6.5rem, 38%) 1fr; gap: 0.75rem; }
  td::before { content: attr(data-label); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size: 0.8rem; font-weight: 500; color: var(--fg2); }
  td > div { min-width: 0; overflow-wrap: anywhere; }
  td[data-label=""] { grid-template-columns: 1fr; }
  td[data-label=""]::before { display: none; }
  .lockup { font-size: 1.75rem; }
}

/* -- pictures: placeholders only ------------------------------------------ */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
figure { margin: 0; }
.ph {
  aspect-ratio: 16 / 9; border: 1px dashed var(--line); border-radius: 8px; background: var(--card);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--fg2); font-size: 0.85rem; padding: 0.5rem;
}
.ph.wide { aspect-ratio: 3 / 1; }
figcaption { font-size: 0.875rem; margin-top: 0.4rem; }

/* -- the "not built yet" marker and its toggle ---------------------------- */
.nb {
  display: inline-block; vertical-align: 0.1em; margin-left: 0.35em;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.68rem; font-weight: 400; line-height: 1.3; letter-spacing: 0;
  color: var(--fg2); border: 1px dashed var(--fg2); border-radius: 3px; padding: 0 0.35em;
  white-space: nowrap; text-transform: none;
}
/* Hide every marker: tick the box in the footer, or add class "no-nb" to <html>. */
html.no-nb .nb, html:has(#nb-hide:checked) .nb { display: none; }
.toggle { cursor: pointer; }

/* -- sign-in -------------------------------------------------------------- */
.signin { max-width: 26rem; margin: 12vh auto 0; text-align: center; }
.signin .lockup { display: inline-block; font-size: 2.25rem; }
.notice { border-left: 3px solid var(--k-attention); padding: 0.5rem 1rem; text-align: left; }

/* -- guide ---------------------------------------------------------------- */
.guide { max-width: 46rem; }
.guide p, .guide li { line-height: 1.6; }

/* -- live pages: additions to the reviewed mock (no new colour) ------------ */
/* The mock's inline style attributes, as classes (the pages' Content-Security-Policy has no inline style). */
.flush { margin-bottom: 0; }
.flush-top { margin-top: 0; }
/* Forms: sign-out in the header, the settings form, the run button. */
form.inline { display: inline; margin: 0; }
button.button { border: 0; font: inherit; font-weight: 500; cursor: pointer; }
button.button.secondary { border: 1px solid var(--line); }
button.linkbutton {
  border: 0; background: none; padding: 0; font: inherit; color: var(--link);
  text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer;
}
input[type="text"], input[type="email"] {
  font: inherit; font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em; width: 100%; max-width: 9rem; padding: 0.25em 0.4em;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
}
input[type="email"] { max-width: 20rem; font-family: inherit; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 1rem 0; }
.surface-picture { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
h4 { font-size: 0.95rem; font-weight: 600; color: var(--strong); margin: 1rem 0 0.3rem; }

/* -- the flow: quota line, running banner --------------------------------- */
.quota { font-size: 0.875rem; color: var(--fg2); white-space: nowrap; }
.running-banner { border-bottom: 1px solid var(--line); background: var(--card); font-size: 0.925rem; }
.running-banner .inner {
  max-width: 68rem; margin: 0 auto; padding: 0.4rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem;
}
.running-banner a { font-weight: 500; }

/* -- Cars: one row per car, its next step on the right ---------------------- */
/* A car picture sits on the brand's wash (light) or a raised ground (dark); contain keeps an opaque or a
   transparent picture whole. */
.stage { background: var(--stage); display: block; }
.stage img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.dims { font-size: 0.8rem; color: var(--fg2); }
.state { font-size: 0.9rem; display: grid; gap: 0.15rem; }
.state .badge { margin-right: 0.25em; }
.next { display: grid; gap: 0.3rem; justify-items: end; text-align: right; }
.next .button { min-width: 10.5rem; text-align: center; }
.more { font-size: 0.825rem; display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; justify-content: flex-end; }
.more a, .more button { white-space: nowrap; }
@media (max-width: 56rem) {
  .next { justify-items: start; text-align: left; }
  .more { justify-content: flex-start; }
}

/* -- Mesh setup: the summary first, the settings behind Adjust settings ------- */
.setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); gap: 1.5rem; align-items: start; }
.setup > * { min-width: 0; }
.setup > div { display: grid; gap: 1rem; }
.setup-side { display: grid; gap: 1rem; }
.setup-head { display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr; gap: 1rem 1.25rem; align-items: center; }
.setup-head .stage { aspect-ratio: 2 / 1; border: 1px solid var(--line); border-radius: 10px; overflow: clip; }
.setup-head h1 { margin: 0 0 0.2rem; }
.setup-head p { margin: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem;
  display: grid; gap: 0.8rem; }
.panel > * { margin: 0; min-width: 0; }
.panel h2 { font-size: 1rem; margin: 0; }
.panel .badge { margin-left: 0.3em; vertical-align: 0.1em; }
.big { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem 1.5rem; margin: 0; }
.big div, .spec div { min-width: 0; }
.big dt, .spec dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fg2); }
.big dd { margin: 0; font-size: 1.35rem; font-weight: 600; color: var(--strong); line-height: 1.2; }
.big dd small { display: block; font-size: 0.825rem; font-weight: 400; color: var(--fg2); }
.spec { display: grid; margin: 0; }
.spec div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.25rem 1rem; padding: 0.45rem 0;
  border-top: 1px solid var(--line); }
.spec dd { margin: 0; font-size: 0.925rem; overflow-wrap: anywhere; }
.checks { list-style: none; padding: 0; font-size: 0.925rem; display: grid; gap: 0.25rem; }
.checks li { display: flex; gap: 0.5rem; align-items: baseline; }
.checks li::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; flex: none;
  box-shadow: 0 0 0 1px var(--line); }
.checks li.ok::before { background: var(--k-bright); }
.checks li.warn::before { background: var(--k-attention); }
.diff { list-style: none; padding: 0; display: grid; gap: 0.2rem; font-size: 0.925rem; }
.diff li { padding-left: 0.9rem; box-shadow: inset 3px 0 0 var(--accent); }
.quiet { font-size: 0.875rem; margin: 0; }
details.more-setup { border-top: 1px solid var(--line); padding-top: 0.5rem; }
details.more-setup > summary { cursor: pointer; font-weight: 500; color: var(--link); }
details.adjust > summary.button { list-style: none; cursor: pointer; border: 1px solid var(--line); }
details.adjust > summary::-webkit-details-marker { display: none; }
details.adjust[open] > summary { margin-bottom: 0.75rem; }
details.more-setup .card { margin-top: 0.5rem; }
/* Review and run beside Adjust settings; the settings form opens on its own full-width line. */
.setup-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 1rem; }
.setup-actions > details[open] { flex: 1 1 100%; }
details.run-steps > summary { cursor: pointer; font-weight: 600; color: var(--strong); }
details.run-steps[open] > summary { margin-bottom: 0.6rem; }
.dims.attention { color: var(--fg); border-left: 3px solid var(--k-attention); padding-left: 0.5rem; margin-top: 0.2rem; }
@media (max-width: 56rem) {
  .setup, .setup-head { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; }
}

/* -- Saved setups: what differs, what it produced ---------------------------- */
.saved { display: grid; gap: 1rem; }
.sv { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem 1.5rem; align-items: start; }
.sv > * { min-width: 0; margin: 0; }
.sv h3 { font-size: 1.1rem; margin: 0; overflow-wrap: anywhere; }
.sv-main { display: grid; gap: 0.6rem; }
.sv-main > * { margin: 0; }
.sv-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 0.6rem; font-size: 0.825rem;
  color: var(--fg2); display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; justify-content: space-between; }
.empty { border: 1px dashed var(--line); border-radius: 10px; padding: 1.5rem; display: grid; gap: 0.75rem;
  justify-items: start; }
.empty p { margin: 0; }
@media (max-width: 44rem) { .sv { grid-template-columns: 1fr; } .sv .next { justify-items: start; text-align: left; }
  .sv .more { justify-content: flex-start; } }

/* -- Plan: settings on one side, estimate and run on the other ------------- */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 1.5rem; align-items: start; }
.plan-side { position: sticky; top: 1rem; }
.plan-side .card:first-child { margin-top: 0; }
.plan-side .facts { grid-template-columns: 1fr; gap: 0.5rem; margin-bottom: 0.75rem; }
.group-intent { margin-top: 0; }
.steps { padding-left: 1.25rem; margin: 0; font-size: 0.925rem; }
.steps li + li { margin-top: 0.4rem; }
.run .button { font-size: 1.05rem; }
@media (max-width: 56rem) { .plan-grid { grid-template-columns: 1fr; } .plan-side { position: static; } }

/* -- Job --------------------------------------------------------------------- */
.stages { list-style: none; padding: 0; margin: 0.5rem 0 1rem; display: grid; gap: 0.35rem; }
.stages li { padding-left: 1.4rem; position: relative; }
.stages li::before { content: ""; position: absolute; left: 0.2rem; top: 0.45em; width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 1px solid var(--line); }
.stages .stage-done::before { background: var(--k-bright); border-color: var(--k-bright); }
.stages .stage-now { font-weight: 600; color: var(--strong); }
.stages .stage-now::before { background: var(--k-signal); border-color: var(--k-signal); }
.stages .stage-next { color: var(--fg2); }
.result-line .part { white-space: nowrap; }
.result-line .figures { display: inline; }   /* not the picture grid's .figures; the side panel stacks it below */
.setup-side .result-line > * { display: block; }
.setup-side .result-line > .sep { display: none; }
details.ask > summary:not(.button) { cursor: pointer; font-weight: 500; color: var(--link); }
details.ask > summary.button { list-style: none; cursor: pointer; }
details.ask > summary::-webkit-details-marker { display: none; }
details.ask[open] { flex: 1 1 100%; }
details.ask textarea { font: inherit; width: 100%; max-width: 40rem; padding: 0.4em 0.5em; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px; }
textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* -- Jobs ---------------------------------------------------------------------- */
.filter { margin: 0.5rem 0; font-size: 0.925rem; }
.filter select { margin-left: 0.4rem; }
/* -- live pages: the mock's flow, as built ------------------------------------- */
select {
  font: inherit; padding: 0.25em 0.4em; max-width: 12rem;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
}
button.button[disabled] { opacity: 0.55; cursor: not-allowed; }
.button.compact { padding: 0.2em 0.6em; font-size: 0.9rem; }
.save input[type="text"] { max-width: 100%; }

/* -- Car workspace: the car, its setup, its runs, its saved setups ---------------- */
.workspace { display: grid; gap: 1.25rem; }
.workspace > * { margin: 0; min-width: 0; }
.ws-area h2 { margin: 0 0 0.6rem; }
.panel.ws-area h2 { margin: 0; }
details.geometry { font-size: 0.825rem; margin-top: 0.3rem; }
details.geometry > summary { cursor: pointer; color: var(--link); }
details.geometry p { margin: 0.3rem 0 0; }
.runs { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: clip;
  background: var(--card); }
.runs li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 11rem; gap: 0.3rem 1rem;
  align-items: center; padding: 0.55rem 1rem; }
.runs li + li { border-top: 1px solid var(--line); }
.runs .button { text-align: center; }
@media (max-width: 44rem) { .runs li { grid-template-columns: 1fr; } .runs .button { justify-self: start; } }

/* What this setup builds (settings changes off): space under Review and run */
.built-setup { margin-top: 1.5rem; }

/* -- Agent page (connect_page): lean, ruled rows, no cards; tabs are links (no script) -- */
.agent-pg { max-width: 760px; }
.agent-pg .eyebrow { font: 500 11px 'JetBrains Mono', ui-monospace, Menlo, monospace; text-transform: uppercase;
  letter-spacing: .05em; color: var(--fg2); margin: 0.5rem 0 0; }
.agent-pg h1 { font-size: 2rem; letter-spacing: -0.02em; margin: 0.2rem 0 0.3rem; }
.agent-pg h2 { font-size: 1.05rem; margin: 0 0 0.6rem; }
.srv { margin: 1.1rem 0 0; border-top: 1px solid var(--line); }
.srv > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); }
.srv dt { font: 500 11px 'JetBrains Mono', ui-monospace, Menlo, monospace; text-transform: uppercase;
  letter-spacing: .05em; color: var(--fg2); }
.srv dd { margin: 0; min-width: 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.select-all, .codebox pre { -webkit-user-select: all; user-select: all; }
.agent-sec { margin-top: 2.2rem; }
.client-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.client-tabs a { text-decoration: none; color: var(--fg2); font-weight: 500; padding: 8px 12px 9px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.client-tabs a[aria-current="page"] { color: var(--strong); border-bottom-color: var(--strong); }
.untested { font: 12px 'JetBrains Mono', ui-monospace, Menlo, monospace; color: var(--fg2); margin: -0.5rem 0 0.8rem; }
ol.agent-steps { list-style: none; counter-reset: step; margin: 0 0 1rem; padding: 0 0 0 26px; position: relative; }
ol.agent-steps::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px;
  background: var(--line); }
ol.agent-steps li { counter-increment: step; position: relative; margin: 0 0 0.8rem; }
ol.agent-steps li::before { content: ""; position: absolute; left: -26px; top: 0.55em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--fg2); }
.codebox pre { margin: 0; padding: 14px; background: color-mix(in oklab, var(--fg) 5%, transparent);
  border: 1px solid var(--line); border-radius: 10px; white-space: pre-wrap; word-break: break-all; }
.codebox pre code { font-size: 0.85rem; }
.say { font-weight: 500; color: var(--strong); }
.say::before { content: "\201C"; } .say::after { content: "\201D"; }
.mono-label { font: 500 11px 'JetBrains Mono', ui-monospace, Menlo, monospace; text-transform: uppercase;
  letter-spacing: .05em; color: var(--fg2); margin: 1.1rem 0 0.5rem; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-chips code { font-size: 0.8rem; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
ol.agent-steps li:last-child::before { background: var(--fg2); }   /* the last step, filled: the end of the steps */

/* Narrow screens: a fade at the menu's right edge says it scrolls. */
@media (max-width: 560px) {
  nav.main { -webkit-mask-image: linear-gradient(to right, black 85%, transparent);
             mask-image: linear-gradient(to right, black 85%, transparent); }
}

/* -- Jobs page --------------------------------------------------------------------------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin: 0.5rem 0 1rem; }
.page-head h1 { margin: 0 0 0.3rem; } .page-head .lead { margin: 0; }
.page-head > div { flex: 1 1 0; min-width: 0; max-width: 40rem; }   /* the lead wraps; the button stays right */
.page-head > a.button { flex: none; }
.jobs-panel td[data-label="Cells"], .jobs-panel td[data-label="Meshing"], .jobs-panel td[data-label="Run by"],
.jobs-panel td[data-label="Submitted"], .jobs-panel td[data-label="Job"] { white-space: nowrap; }
a.button.secondary { display: inline-block; text-decoration: none; padding: 0.45rem 0.9rem; border-radius: 8px;
  border: 1px solid var(--line); color: var(--strong); font-weight: 500; }
.jobs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-bottom: 0.9rem; }
nav.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: color-mix(in oklab, var(--fg) 6%, transparent); }
nav.seg a { text-decoration: none; color: var(--fg2); font-weight: 500; font-size: 0.875rem; padding: 4px 12px;
  border-radius: 999px; }
nav.seg a[aria-current="page"] { background: var(--bg); color: var(--strong); box-shadow: 0 0 0 1px var(--line); }
form.car-filter { margin: 0; font-size: 0.875rem; }
.jobs-panel { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.jobs-panel table { margin: 0; width: 100%; }
.jobs-panel th { font: 500 11px 'JetBrains Mono', ui-monospace, Menlo, monospace; text-transform: uppercase;
  letter-spacing: .05em; color: var(--fg2); text-align: left; }
.jobs-panel tr { position: relative; }
.jobs-panel td[data-label="Job"] a { color: var(--strong); text-decoration: none;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.jobs-panel td[data-label="Job"] a::after { content: ""; position: absolute; inset: 0; }   /* the whole row opens the job */
@media (hover: hover) and (pointer: fine) {
  .jobs-panel tbody tr:hover { background: color-mix(in oklab, var(--fg) 4%, transparent); } }
.car-cell { display: flex; align-items: center; gap: 10px; }
.car-cell img, .thumb-empty { width: 64px; height: 38px; object-fit: cover; border-radius: 6px; flex: none;
  background: var(--stage); }
.thumb-empty { display: inline-block; }
.car-cell .sub { display: block; font-size: 0.75rem; color: var(--fg2); }
.tag { font: 500 11px 'JetBrains Mono', ui-monospace, Menlo, monospace; border: 1px solid var(--line);
  border-radius: 999px; padding: 0 6px; color: var(--fg2); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--fg2); }
.chip.ok i { background: var(--k-bright); }
.chip.warn i { background: transparent; box-shadow: inset 0 0 0 2px var(--k-attention); }   /* flagged: a ring */
.chip.bad i { background: var(--k-attention); } .chip.run i { background: var(--accent); }
@media (max-width: 560px) {
  .jobs-panel td[data-label="Meshing"], .jobs-panel td[data-label="Run by"],
  .jobs-panel td[data-label="Submitted"] { display: none; }
}


/* The Cars page for one car (html.car_setup_page), ported from the v3 mock (trial-app-v3, 2026-11-24). */
/* Widths: above 1180px the car list 232px and the estimate 272px, the rest to the middle (688px at the widest);
   1025-1180px 208px and 256px; 761-1024px the car list and the middle, the estimate below; 760px and less one column. */
.cs { display: grid; grid-template-columns: 232px minmax(0, 1fr) 272px; gap: 20px; align-items: start; }
.cs-cars { position: sticky; top: 80px; max-height: calc(100vh - 100px); display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 8px 8px; }
.cs-cars-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 6px 8px; }
.cs-cars-h h2 { margin: 0; font-size: 1rem; }
.clist { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.crow { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 8px;
  border-radius: 9px; color: var(--fg); text-decoration: none; }
.crow:hover { background: color-mix(in oklab, var(--fg) 5%, transparent); }
.crow.cur { background: color-mix(in oklab, var(--accent) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 45%, transparent); }
.cthumb { width: 58px; height: 35px; border-radius: 7px; background: var(--stage); overflow: hidden; }
.cthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctext { min-width: 0; } .ctext b, .ctext span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctext b { font-size: 0.85rem; } .ctext span { font-size: 10.5px; }
.cs-main { min-width: 0; }
.cs-stage { position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--stage);
  overflow: hidden; min-height: 260px; }
.cs-stage img { display: block; width: 100%; height: 320px; object-fit: contain; }
/* With script the stage starts as an empty panel the size of its 3D view (stage.css .stg-canvas), until the view
   draws (stg-live) or the script shows the picture instead (stg-pic). */
@media (scripting: enabled) {
  .cs-stage:not(.stg-live):not(.stg-pic)::before { content: ""; display: block; aspect-ratio: 4 / 3; max-height: 460px;
    min-height: 280px; }
}
.cs-title { position: absolute; left: 18px; top: 14px; }
.cs-title h1 { margin: 2px 0 0; font-size: 1.6rem; }
.cs-title .dims { margin: 2px 0 0; }
.seg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 14px 0 4px;
  border: 1px solid var(--line); border-radius: 12px; background: color-mix(in oklab, var(--fg) 4%, var(--card)); }
.seg3 button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 16px; border: 0;
  border-radius: 9px; background: none; color: var(--fg2); font: inherit; cursor: default; }
.seg3 button b { font-size: 15px; color: inherit; } .seg3 button span { font: 12px 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.seg3 button.on { background: var(--card); color: var(--strong); box-shadow: 0 0 0 1px var(--fg); }
.seg3 button:disabled { opacity: .55; }
.setbar { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; font-size: 0.9rem; }
.setbar .linkish { margin-left: auto; background: none; border: 0; color: var(--link); text-decoration: underline;
  cursor: pointer; font: inherit; padding: 0; }
.sgrp { margin-top: 20px; }
.sgrp-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.sgrp-h h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg2); }
.sgrp-h span { font-size: 12.5px; color: var(--fg2); }
.spanel { padding: 0; display: block; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px;
  border-bottom: 1px solid var(--line); }
.srow:last-child { border-bottom: 0; }
.srow.ch { box-shadow: inset 3px 0 0 var(--accent); }
.srow .nm b { display: block; font-size: 0.9rem; }
.srow .nm span { font: 11.5px 'JetBrains Mono', ui-monospace, Menlo, monospace; color: var(--fg2); }
.step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
  background: var(--card); }
.step button { width: 34px; height: 32px; border: 0; background: none; color: var(--fg2); font: 500 16px inherit;
  cursor: pointer; margin: 0; padding: 0; }
.step button:hover:not(:disabled) { background: color-mix(in oklab, var(--fg) 6%, transparent); color: var(--fg); }
.step button:disabled { opacity: .4; cursor: default; }
.step .v { min-width: 96px; text-align: center; font: 500 14px 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color: var(--strong); border-left: 1px solid var(--line); border-right: 1px solid var(--line); line-height: 32px; }
.step .v:only-child { border: 0; }
.step .v i { font-style: normal; font-size: 11.5px; color: var(--fg2); margin-left: 4px; }
.step .v input, .lyr input { width: 64px; height: 28px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--bg); color: var(--strong); text-align: right; padding: 0 8px;
  font: 12.5px 'JetBrains Mono', ui-monospace, Menlo, monospace; margin: 0; max-width: none; }
.step .v input { border: 0; background: none; text-align: center; }
input.ch { box-shadow: inset 3px 0 0 var(--accent); }
/* The layers table: fixed column shares, so it fits its card at any width; the boxes fill their column up to 88px. */
.lyr { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.85rem; table-layout: fixed; }
.lyr th { font: 500 10.5px 'JetBrains Mono', ui-monospace, Menlo, monospace; text-transform: uppercase; letter-spacing: .04em;
  color: var(--fg2); text-align: right; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.lyr th:first-child, .lyr td:first-child { text-align: left; }
.lyr td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lyr th:nth-child(1) { width: 17%; } .lyr th:nth-child(2) { width: 15%; } .lyr th:nth-child(3) { width: 21%; }
.lyr th:nth-child(4) { width: 16%; } .lyr th:nth-child(5) { width: 17%; } .lyr th:nth-child(6) { width: 14%; }
.lyr tr:last-child td { border-bottom: 0; }
.cs-side { position: sticky; top: 80px; }
.est { display: block; }
.est .res-keys { margin-top: 8px; }
.est .res-keys dd.pend { font-size: 18px; color: var(--fg2); }
.est meter { width: 100%; height: 6px; margin-top: 12px; }
.estlist { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px;
  font-size: 0.85rem; }
.estlist li { display: flex; justify-content: space-between; gap: 10px; }
.estlist li > span:first-child { flex: none; }
.estlist .yp { min-width: 0; text-align: right; } .estlist .nw { white-space: nowrap; }
.estlist li span:last-child { font: 12.5px 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.est-act { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.est-act form, .est-act .button { width: 100%; margin: 0; }
@media (max-width: 1180px) { .cs { grid-template-columns: 208px minmax(0, 1fr) 256px; gap: 16px; } }
@media (max-width: 1024px) { .cs { grid-template-columns: 208px minmax(0, 1fr); } .cs-side { grid-column: 1 / -1; position: static; } }
@media (max-width: 760px) { .cs { grid-template-columns: minmax(0, 1fr); } .cs-cars { position: static; max-height: 280px; }
  .srow { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 44rem) {   /* the layers table stays a table on a phone, as the result page's checks */
  .lyr { display: table; } .lyr thead { display: table-header-group; position: static; width: auto; height: auto;
    overflow: visible; clip: auto; } .lyr tbody { display: table-row-group; }
  .lyr tr { display: table-row; border: 0; margin: 0; padding: 0; background: none; }
  .lyr th, .lyr td { display: table-cell; width: auto; padding: 6px 4px; } .lyr td::before { content: none; }
  .lyr th { font-size: 9.5px; letter-spacing: 0; } .lyr input { padding: 0 4px; font-size: 12px; } }
/* Runs here: the status and job number on one line, when, by whom and the setup beneath, the button beside both. */
.cs .runs li { grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; }
.cs .runs li > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs .runs li > span:nth-child(2) { grid-column: 1; grid-row: 2; }
.cs .runs li > .button { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }
/* Saved setups here: the title beside its button, the run's link kept whole. */
.cs .sv-main a { white-space: nowrap; }
.cs .sv .next .button { white-space: nowrap; }
@media (max-width: 44rem) { .cs .runs li { grid-template-columns: minmax(0, 1fr); }
  .cs .runs li > span:nth-child(2), .cs .runs li > .button { grid-column: auto; grid-row: auto; } }
.enter-apply { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Busy while a setup action is answered (carsetup.js): the controls inert, never disabled (a disabled control would
   drop out of the form being sent). */
.cs-busy { cursor: progress; }
.cs-busy .cs-main form :is(button, input), .cs-busy .cs-side form button { pointer-events: none; }
.cs-busy .cs-main form button, .cs-busy .cs-side form button { opacity: .6; }
.est-keys { margin: 8px 0 0; }
.est-keys > div { display: flex; flex-direction: column; gap: 2px; }
.est-keys dt { font: 500 10.5px 'JetBrains Mono', ui-monospace, Menlo, monospace; text-transform: uppercase;
  letter-spacing: .05em; color: var(--fg2); }
.est-keys dd { margin: 4px 0 0; font: 500 28px/1.05 'JetBrains Mono', ui-monospace, Menlo, monospace;
  letter-spacing: -0.03em; color: var(--strong); }
.est-keys dd.pend { font-size: 18px; color: var(--fg2); }
.est-keys span { font-size: 12px; color: var(--fg2); }
.step .v input.ch { box-shadow: none; }
.lyr input { width: 100%; max-width: 88px; }

/* -- the Job page's mesh views: radio buttons select the large view, no script (the CSP) ---------- */
.res-views { display: grid; gap: 10px; }
.res-views > input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.vhero { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--k-paper); }
.vhero .vh { display: none; margin: 0; }
.vhero .vh img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--k-paper); }
.vhero .vh1 img { object-fit: contain; }
.vhero figcaption, .vthumbs .mono-label { display: block; padding: 6px 10px; border-top: 1px solid var(--line);
  background: var(--card); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#v0:checked ~ .vhero .vh0, #v1:checked ~ .vhero .vh1, #v2:checked ~ .vhero .vh2, #v3:checked ~ .vhero .vh3,
#v4:checked ~ .vhero .vh4 { display: block; }
.vthumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.vthumbs .vt { display: block; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  opacity: .75; transition: opacity .15s ease, border-color .15s ease; }
.vthumbs .vt:hover { opacity: 1; }
.vthumbs .mono-label { font-size: 9.5px; letter-spacing: .03em; padding: 5px 7px; }
.vthumbs .vt img { display: block; width: 100%; height: 84px; object-fit: cover; background: var(--k-paper); }
.vthumbs .vt1 img { object-position: 25% 70%; }
#v0:checked ~ .vthumbs .vt0, #v1:checked ~ .vthumbs .vt1, #v2:checked ~ .vthumbs .vt2, #v3:checked ~ .vthumbs .vt3,
#v4:checked ~ .vthumbs .vt4 { opacity: 1; border-color: var(--fg2); box-shadow: 0 0 0 1px var(--fg2); }
.res-views > input:focus-visible ~ .vthumbs { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
@media (max-width: 560px) { .vthumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* The result page (a done job; html._result), from the v3 mock (Mio, 2026-11-24). */
.crumbs { color: var(--fg2); }
.res-meta { margin: 0.3rem 0 0; }
.res-state { margin: 0.7rem 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.res-keys { margin: 1rem 0 0; display: flex; gap: 48px; flex-wrap: wrap; }
.res-keys > div { display: flex; flex-direction: column; gap: 2px; }
.res-keys dt { font: 500 10.5px 'JetBrains Mono', ui-monospace, Menlo, monospace; text-transform: uppercase;
  letter-spacing: .05em; color: var(--fg2); }
.res-keys dd { margin: 4px 0 0; font: 500 28px/1.05 'JetBrains Mono', ui-monospace, Menlo, monospace;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--strong); }
.res-keys span { font-size: 12px; color: var(--fg2); }
.res-dls { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 20px; align-items: center; }
.res-dl1 { display: inline-flex; align-items: center; gap: 10px; }
.res-dl1 .button { margin: 0; }
.res-dl1 .mono { font-size: 12.5px; }
.res-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start;
  margin-top: 24px; }
.res-split > .res-views { position: sticky; top: 84px; }
.res-picture figure { margin: 0; }
.res-checks-panel { padding: 0; overflow-x: auto; overflow-y: hidden; margin: 0; }
.res-checks { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.85rem; }
.res-checks th { text-align: left; font: 500 11px 'JetBrains Mono', ui-monospace, Menlo, monospace;
  text-transform: uppercase; letter-spacing: .04em; color: var(--fg2); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.res-checks td { padding: 8px 14px; border-bottom: 1px solid var(--line); }
.res-checks .r { text-align: right; white-space: nowrap; }
.res-checks .r .small { display: inline-block; max-width: 11em; white-space: normal; }
.res-checks td.num.zero { color: var(--fg2); }
.res-checks td code.sub { display: inline; font-size: 0.75rem; color: var(--fg2); }
/* a row past its limit (or an Informational count): marked in words beside the name, and a ring as on the chip */
.res-checks .flag-mark { font: 600 11px 'JetBrains Mono', ui-monospace, Menlo, monospace; text-transform: uppercase;
  letter-spacing: .04em; margin-left: 6px; white-space: nowrap; }
.res-checks .flag-mark::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--k-attention); margin-right: 5px; vertical-align: 1px; }
.res-checks tbody tr.grp th { font: 600 14px 'Inter', system-ui, sans-serif; text-transform: none; letter-spacing: 0;
  color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, var(--card)); padding: 12px 14px 10px;
  border-top: 1px solid var(--line); }
.res-checks tbody:first-of-type tr.grp th { border-top: 0; }
.res-checks tbody tr:not(.grp) > td:first-child { padding-left: 34px; }
.res-note { margin: 0; padding: 8px 14px; }
.res-sec { margin-top: 28px; }
.res-sec-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.res-sec-h h2 { margin: 0; }
@media (max-width: 1100px) { .res-split { grid-template-columns: minmax(0, 1fr); } .res-split > .res-views { position: static; } }
@media (max-width: 560px) { .res-keys { gap: 24px; } .res-keys dd { font-size: 22px; } .res-dls { flex-direction: column;
  align-items: flex-start; } }
/* the checks table stays a table on a phone (4 short columns fit at 360 px); the app's card layout needs data-labels */
@media (max-width: 44rem) {
  .res-checks { display: table; font-size: 0.8rem; }
  .res-checks thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .res-checks tbody { display: table-row-group; }
  .res-checks tr { display: table-row; border: 0; border-radius: 0; margin: 0; padding: 0; background: none; }
  .res-checks th, .res-checks td { display: table-cell; width: auto; padding: 7px 8px; }
  .res-checks td::before { content: none; }
  .res-checks tbody tr:not(.grp) > td:first-child { padding-left: 18px; }
}

/* The Guide page (html.guide_doc): contents beside the document. */
.docs { display: grid; grid-template-columns: 210px minmax(0, 46rem); gap: 44px; justify-content: center; }
.toc { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; }
.toc-h { font: 500 11px 'JetBrains Mono', ui-monospace, Menlo, monospace; text-transform: uppercase; letter-spacing: .05em;
  color: var(--fg2); margin-bottom: 8px; }
.toc a { text-decoration: none; color: var(--fg2); padding: 5px 10px; border-left: 2px solid var(--line); }
.toc a:hover, .toc a:focus-visible { color: var(--strong); border-left-color: var(--strong); }
.doc { min-width: 0; }
.doc-h { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.eyebrow { font: 500 11px 'JetBrains Mono', ui-monospace, Menlo, monospace; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); }
.doc h1 { font-size: 2rem; letter-spacing: -0.025em; margin: 6px 0; }
.lead { font-size: 1rem; color: var(--fg2); margin: 0; }
.doc section { padding-top: 28px; scroll-margin-top: 80px; }
.doc h2 { font-size: 1.3rem; letter-spacing: -0.015em; margin: 0 0 12px; }
.doc h3, .doc h4 { font-size: 0.95rem; margin: 26px 0 10px; }
.doc p, .doc li { font-size: 0.95rem; line-height: 1.65; }
.doc code { font: 12.5px 'JetBrains Mono', ui-monospace, Menlo, monospace; border: 1px solid var(--line);
  background: color-mix(in oklab, var(--fg) 5%, var(--card)); padding: 1px 5px; border-radius: 5px; }
.steps { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; margin: 0 0 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 36px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 7px;
  border: 1px solid var(--line); background: color-mix(in oklab, var(--fg) 5%, var(--card));
  font: 500 12px 'JetBrains Mono', ui-monospace, Menlo, monospace; display: grid; place-items: center; color: var(--strong); }
.tbl { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; background: var(--card); margin: 4px 0 12px; }
.tbl table { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.85rem; }
.tbl th { text-align: left; font: 500 11px 'JetBrains Mono', ui-monospace, Menlo, monospace; text-transform: uppercase;
  letter-spacing: .04em; color: var(--fg2); padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--fg) 4%, var(--card)); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.tbl tr:last-child td { border-bottom: 0; }
@media (max-width: 900px) { .docs { grid-template-columns: minmax(0, 1fr); gap: 16px; } .toc { position: static; } }
@media (max-width: 44rem) {   /* guide tables stay tables on a phone (markdown gives no data-labels for cards) */
  .tbl table { display: table; } .tbl thead { display: table-header-group; position: static; width: auto; height: auto;
    overflow: visible; clip: auto; } .tbl tbody { display: table-row-group; }
  .tbl tr { display: table-row; border: 0; margin: 0; padding: 0; background: none; }
  .tbl th, .tbl td { display: table-cell; width: auto; padding: 8px 10px; } .tbl td::before { content: none; } }

/* The Jobs page's car filter: the select and its Show button one height, side by side. */
.car-filter { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; }
.car-filter label { display: inline-flex; align-items: center; gap: 0.4rem; }
.car-filter select, .car-filter .button { box-sizing: border-box; height: 2.25rem; margin: 0; border-radius: 6px; }
.car-filter select { padding: 0 0.5em; }
.car-filter .button { padding: 0 1em; line-height: calc(2.25rem - 2px); }
