@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans.woff2?v=10ce506aa2d3') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-stretch: 85% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono.woff2?v=cceeb6afcdae') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/*
 * @simbase/ui tokens: "The Run" (.impeccable.md). A neutral warm stage, white
 * surfaces for runs and evidence, a drawn bezel, hairlines, two inks, and one
 * blue: the brand, the primary action, and "happening now". Four soft grounds
 * give the site's sections their rhythm. Pass, fail and warn appear only in
 * data. Dark mode is a true dark stage, not an inversion.
 */
:root {
  color-scheme: light dark;

  --stage: #f2f1ee;
  --stage-2: #e9e8e4;
  --surface: #ffffff;
  --bezel: #1a1b1d;
  --hairline: #dedcd7;
  --hairline-strong: #c9c6bf;
  --ink: #141516;
  --ink-2: #65676a;
  --live: #2e5bff;
  --live-ink: #ffffff;
  --live-wash: #e8edff;
  --pass: #1f7a45;
  --fail: #c4302b;
  --warn: #975f0e;
  --fail-wash: #fbeceb;
  --warn-wash: #f8efdf;

  /*
   * Grounds. Soft, low-chroma section backgrounds for the site's band rhythm
   * (shell.css .ground-*); each carries its own secondary ink and hairline so
   * text on it never goes grey-on-colour. Runs and evidence still sit on
   * --surface. --live-deep is the one full-bleed brand band, white text.
   */
  --tint-blue: #e9f0fe;
  --tint-blue-ink: #434d61;
  --tint-blue-line: #cad5ea;
  --tint-sand: #f8efe2;
  --tint-sand-ink: #584b37;
  --tint-sand-line: #e0d2bd;
  --tint-sage: #e8f3ed;
  --tint-sage-ink: #3c5346;
  --tint-sage-line: #c7d9cf;
  --tint-lilac: #f1eefa;
  --tint-lilac-ink: #4f4a5b;
  --tint-lilac-line: #d6d1e3;
  --live-deep: #2348ce;
  --live-deep-ink: #ffffff;
  --live-deep-ink-2: #dfe5fc;

  --radius: 6px;
  --radius-sm: 4px;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);

  --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Type scale: display and h2 set condensed (wdth 90) and tight; everything else normal width. */
  --text-display: clamp(2.5rem, 1.55rem + 3.3vw, 4.25rem);
  --text-h1: clamp(2.25rem, 1.6rem + 2.3vw, 3.5rem);
  --text-h2: clamp(1.75rem, 1.4rem + 1.25vw, 2.5rem);
  --text-h3: 1.1875rem;
  --text-lede: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-mono: 0.875rem;
  --text-meta: 0.8125rem;
  --text-caption: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --stage: #101112;
    --stage-2: #151618;
    --surface: #18191b;
    --bezel: #2a2c2f;
    --hairline: #2b2d30;
    --hairline-strong: #3a3d41;
    --ink: #ecebe8;
    --ink-2: #9c9ea1;
    --live: #6e8bff;
    --live-ink: #0b0c0e;
    --live-wash: #1a2140;
    --pass: #3fb871;
    --fail: #f0605a;
    --warn: #e0a845;
    --fail-wash: #2b1716;
    --warn-wash: #2a2213;

    --tint-blue: #151923;
    --tint-blue-ink: #aeb8cb;
    --tint-blue-line: #2a303d;
    --tint-sand: #1f180f;
    --tint-sand-ink: #c2b5a2;
    --tint-sand-line: #372f23;
    --tint-sage: #131c17;
    --tint-sage-ink: #a8beb1;
    --tint-sage-line: #28332d;
    --tint-lilac: #1a1820;
    --tint-lilac-ink: #bab4c7;
    --tint-lilac-line: #322e39;
    --live-deep: #1f41c7;
    --live-deep-ink: #ffffff;
    --live-deep-ink-2: #dfe5fc;
  }
}

/* The base layer: the stage, the two faces, focus, and the text styles pages share. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  background: var(--stage);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  font-kerning: normal;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}
p,
li,
dd,
figcaption {
  text-wrap: pretty;
}
p {
  margin: 0 0 0.85em;
}
a {
  color: inherit;
}
strong,
b {
  font-weight: 600;
}
img,
video,
svg {
  max-width: 100%;
}
code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  font-variant-numeric: tabular-nums;
}
[hidden] {
  display: none !important;
}
::selection {
  background: color-mix(in srgb, var(--live) 24%, transparent);
}
:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: 2px;
  border-radius: 2px;
}

a.link,
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--live) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 140ms;
}
a.link:hover,
.prose a:hover {
  text-decoration-color: var(--live);
}

.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--stage);
  font-size: var(--text-small);
  text-decoration: none;
}
.skip:focus {
  top: 0.75rem;
}
.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.wrap--narrow {
  max-width: 60rem;
}

/* Text styles. Display and h2 are the one typographic move: condensed, tight. */
.display {
  font-size: var(--text-display);
  font-weight: 600;
  font-stretch: 90%;
  line-height: 1.02;
  letter-spacing: -0.032em;
}
.h1 {
  font-size: var(--text-h1);
  font-weight: 600;
  font-stretch: 90%;
  line-height: 1.04;
  letter-spacing: -0.028em;
}
.h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  font-stretch: 90%;
  line-height: 1.08;
  letter-spacing: -0.024em;
}
.h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.lede {
  max-width: 62ch;
  font-size: var(--text-lede);
  line-height: 1.5;
  color: var(--ink-2);
}
.small {
  font-size: var(--text-small);
}
.muted {
  color: var(--ink-2);
}
.mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
}
.meta {
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  line-height: 1.5;
  color: var(--ink-2);
}
/* A plain small label: sentence case, the secondary ink. Never numbered, never shouting. */
.label {
  font-size: var(--text-meta);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-2);
}
.label-ink {
  color: var(--ink);
}
.tabular {
  font-variant-numeric: tabular-nums lining-nums;
}
.hairline {
  border-top: 1px solid var(--hairline);
}
.ui {
  font-family: var(--font-sans);
}
code.inline,
.prose code,
p code,
li code,
dd code,
td code {
  padding: 0.08em 0.32em;
  border-radius: 3px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}
@media (max-width: 40rem) {
  .hide-sm {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/*
 * Working parts for product pages: the surface panel, buttons, fields, the
 * table, notices, particulars and the usage meter.
 */
.panel {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.85rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--hairline);
}
.panel__head h2,
.panel__head h3 {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink);
}
.panel__body {
  padding: 1.1rem 1.25rem 1.25rem;
}
.panel__foot {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--hairline);
}

/* ----------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 140ms,
    border-color 140ms,
    color 140ms;
}
.btn:hover {
  border-color: var(--ink-2);
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary,
.btn.primary {
  border-color: var(--live);
  background: var(--live);
  color: var(--live-ink);
}
.btn-primary:hover,
.btn.primary:hover {
  border-color: color-mix(in srgb, var(--live) 86%, var(--ink));
  background: color-mix(in srgb, var(--live) 86%, var(--ink));
}
.btn-ghost {
  background: transparent;
}
.btn-danger,
.btn.danger {
  border-color: color-mix(in srgb, var(--fail) 45%, var(--hairline));
  color: var(--fail);
}
.btn-danger:hover,
.btn.danger:hover {
  border-color: var(--fail);
  background: var(--fail-wash);
}
.btn-sm,
.btn.sm {
  min-height: 2.25rem;
  padding: 0.4rem 0.75rem;
  font-size: var(--text-meta);
}
@media (pointer: coarse) {
  .btn-sm,
  .btn.sm {
    min-height: 2.75rem;
  }
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn svg {
  flex: none;
}
.linkish {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent);
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ------------------------------------------------------------ fields -- */
.field {
  min-width: 0;
  margin-bottom: 1rem;
}
.field > label,
label.field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink);
}
.field .opt {
  font-weight: 400;
  color: var(--ink-2);
}
input[type='text'],
input[type='email'],
input[type='url'],
input[type='password'],
input[type='number'],
input:not([type]),
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
}
input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--ink-2) 85%, transparent);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--live);
  outline: 2px solid color-mix(in srgb, var(--live) 35%, transparent);
  outline-offset: 0;
}
input[disabled] {
  opacity: 0.55;
}
input[type='checkbox'],
input[type='radio'] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--live);
}

/* ------------------------------------------------------------- table -- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
}
.table th,
.table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: baseline;
}
.table thead th {
  border-bottom: 1px solid var(--hairline-strong);
  font-size: var(--text-meta);
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.table tbody tr:last-child td,
.table tbody tr:last-child th {
  border-bottom: 0;
}
.table tbody th {
  font-weight: 500;
}
.table .r {
  text-align: right;
}
.table .mono {
  font-size: var(--text-meta);
}

/* ----------------------------------------------------------- notices -- */
.notice {
  position: relative;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem 0.8rem;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ink-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--text-small);
  color: var(--ink);
}
.notice-ok {
  border-left-color: var(--pass);
}
.notice-bad {
  border-left-color: var(--fail);
  background: var(--fail-wash);
}
.notice-warn {
  border-left-color: var(--warn);
  background: var(--warn-wash);
}
.notice p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------- particulars -- */
.particulars {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.45rem 1.25rem;
  margin: 0;
}
.particulars dt {
  font-size: var(--text-small);
  color: var(--ink-2);
}
.particulars dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ meter -- */
.meter {
  display: block;
  width: 100%;
  height: 0.5rem;
}
.meter .track {
  fill: var(--stage-2);
}
.meter .fill {
  fill: var(--ink);
}
.meter.hot .fill {
  fill: var(--warn);
}
.meter.full .fill {
  fill: var(--fail);
}

/*
 * The run primitives: the drawn device frame, the run strip, the verdict line,
 * the step list, the phase bar, status dots, code blocks and the run card
 * that holds them. The same classes render the marketing site's hero and the
 * product's evidence page.
 */

/* ---------------------------------------------------------- device frame -- */
/*
 * A thin, flat, drawn bezel: a rounded rectangle and nothing else. No side
 * buttons, no drawn island, no hardware outline; the real screenshot carries
 * the device. Radii scale with the frame's own width (container units).
 */
.device {
  container-type: inline-size;
  margin: 0;
  min-width: 0;
}
.device__bezel {
  position: relative;
  padding: 2.6cqi;
  border-radius: 13cqi;
  background: var(--bezel);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hairline-strong) 60%, transparent);
}
.device--android .device__bezel {
  padding: 2.4cqi;
  border-radius: 8cqi;
}
.device__screen {
  position: relative;
  overflow: hidden;
  border-radius: 10.6cqi;
  background: var(--stage-2);
}
.device--android .device__screen {
  border-radius: 5.8cqi;
}
.device__screen > img,
.device__screen > video {
  display: block;
  width: 100%;
  height: auto;
}
.device__empty {
  aspect-ratio: 1206 / 2622;
  display: grid;
  place-content: center;
  height: 100%;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--ink-2);
}
.device--android .device__empty {
  aspect-ratio: 1080 / 2400;
}
.device__caption {
  margin-top: 0.7rem;
  min-width: 0;
}
.device__step {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.device__name {
  display: block;
  overflow: hidden;
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--ink-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}
a.device__open {
  display: block;
  border-radius: 13cqi;
}

/* ------------------------------------------------------------- run strip -- */
.run-strip {
  --n: 4;
  --gap: clamp(0.75rem, 1.6vw, 1.5rem);
  margin: 0;
  min-width: 0;
}
.run-strip--n2 {
  --n: 2;
}
.run-strip--n3 {
  --n: 3;
}
.run-strip--n5 {
  --n: 5;
}
.run-strip__frames,
.run-strip__timeline {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.run-strip__frame {
  min-width: 0;
  transition: opacity 240ms var(--ease-out);
}
.run-strip__frame[data-state='pending'] .device__screen > img {
  opacity: 0.2;
  filter: grayscale(1);
}
.run-strip__frame[data-state='pending'] .device__step {
  color: var(--ink-2);
}
.run-strip__frame .device__screen > img {
  transition:
    opacity 320ms var(--ease-out),
    filter 320ms var(--ease-out);
}
.run-strip__timeline {
  position: relative;
  margin-top: 1rem;
}
/* The hairline runs from the first tick to the last. */
.run-strip__timeline::before,
.run-strip__progress {
  position: absolute;
  top: 0.3rem;
  left: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n) / 2);
  right: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n) / 2);
  height: 1px;
  background: var(--hairline-strong);
  content: '';
}
/* Ink when the run is over; live blue only while a player is moving it. */
.run-strip__progress {
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(var(--progress, 1));
}
.run-strip__progress[data-live] {
  background: var(--live);
}
.run-strip__mark {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  min-width: 0;
  text-align: center;
}
.run-strip__tick {
  position: relative;
  z-index: 1;
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  background: var(--surface);
}
.run-strip__mark[data-state='done'] .run-strip__tick {
  border-color: var(--ink);
  background: var(--ink);
}
.run-strip__mark[data-state='live'] .run-strip__tick {
  border-color: var(--live);
  background: var(--live);
}
.run-strip__at {
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  line-height: 1.3;
  color: var(--ink);
}
.run-strip__delta {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  line-height: 1.3;
  color: var(--ink-2);
}
.run-strip__verdict {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

/* ---------------------------------------------------------- verdict line -- */
/* One line of type. Colour goes on the status word only; never a stamp, never a tick. */
.verdict {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  line-height: 1.5;
  color: var(--ink);
}
/* The verdict as the headline of a run: the one place mono goes large. */
.verdict--lg {
  font-size: clamp(1.125rem, 0.95rem + 0.75vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.verdict__status {
  font-weight: 700;
}
.verdict__sep {
  color: var(--ink-2);
}
.verdict__rest {
  color: var(--ink);
}
.verdict--passed .verdict__status {
  color: var(--pass);
}
.verdict--failed .verdict__status {
  color: var(--fail);
}
.verdict--error .verdict__status,
.verdict--timeout .verdict__status {
  color: var(--warn);
}
.verdict--running .verdict__status {
  color: var(--live);
}
.verdict--pending .verdict__status,
.verdict--cancelled .verdict__status {
  color: var(--ink-2);
}

/* ------------------------------------------------------------- step list -- */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  line-height: 1.45;
  counter-reset: none;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.34rem 0.6rem 0.34rem 0.5rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}
.step:last-child {
  border-bottom: 0;
}
.step::before {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  width: 2px;
  background: transparent;
  content: '';
}
.step__n {
  color: var(--ink-2);
  text-align: right;
}
.step__what {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.step__action {
  font-weight: 600;
}
.step__target {
  color: var(--ink-2);
}
.step__took {
  color: var(--ink-2);
  text-align: right;
  white-space: nowrap;
}
.step--pending {
  color: var(--ink-2);
}
.step--pending .step__action {
  font-weight: 400;
}
.step--pending .step__took {
  visibility: hidden;
}
.step--live {
  background: var(--live-wash);
}
.step--live::before {
  background: var(--live);
}
.step--live .step__n,
.step--live .step__took {
  color: var(--ink);
}
.step--live .step__target {
  color: var(--ink);
}
.step--failed::before {
  background: var(--fail);
}
.step--failed .step__n,
.step--failed .step__took {
  color: var(--fail);
}
.step--skipped {
  color: var(--ink-2);
}
.step--skipped .step__action {
  font-weight: 400;
}
/* Why a step failed, under it, wrapping: the one place a step runs past a line. */
.step__note {
  grid-column: 2 / -1;
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.step--failed .step__note {
  color: var(--fail);
}

/* More frames than fit: a fixed frame width, and the strip scrolls sideways. */
.run-strip--many .run-strip__frames,
.run-strip--many .run-strip__timeline {
  grid-template-columns: none;
  grid-auto-columns: 10.5rem;
  grid-auto-flow: column;
  width: max-content;
}
.run-strip--many .run-strip__timeline::before,
.run-strip--many .run-strip__progress {
  left: 5.25rem;
  right: 5.25rem;
}

/* ------------------------------------------------------------- run card -- */
/*
 * The run as one object: the verdict and what ran in the head, then the strip
 * of real screens beside the step list. The site's hero and the top of every
 * evidence page.
 */
.run-card {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
}
.run-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1rem 1rem 0.9rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
}
.run-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  padding: 1.5rem 1.25rem 1.25rem;
}
@media (min-width: 64rem) {
  .run-card__head {
    padding-inline: 1.75rem 1.25rem;
  }
  .run-card__body {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 2.5rem;
    padding: 1.75rem 1.75rem 1.5rem;
  }
}
.run-card .steps {
  align-self: start;
}
.run-card__strip {
  min-width: 0;
}
/* Two or three screens stay phone-sized rather than filling the card. */
@media (min-width: 48rem) {
  .run-card .run-strip {
    max-width: calc(var(--n) * 11.5rem + (var(--n) - 1) * var(--gap));
  }
}
.run-card__strip:has(.run-strip--many) {
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
/* Small screens: the strip scrolls sideways at a size you can read. */
@media (max-width: 47.99rem) {
  .run-card__strip {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }
  .run-card .run-strip {
    --gap: 0.75rem;
  }
  .run-card .run-strip__frames,
  .run-card .run-strip__timeline {
    width: calc(var(--n) * 10.5rem + (var(--n) - 1) * var(--gap));
  }
  .run-card .run-strip--many .run-strip__frames,
  .run-card .run-strip--many .run-strip__timeline {
    width: max-content;
  }
  .run-card .run-strip__frame {
    scroll-snap-align: start;
  }
}
.player-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0 0.7rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  font-weight: 500;
  cursor: pointer;
}
.player-control:hover {
  border-color: var(--hairline-strong);
}
.player-control svg {
  width: 0.875rem;
  height: 0.875rem;
}
@media (pointer: coarse) {
  .player-control {
    min-height: 2.75rem;
  }
}

/* ------------------------------------------------------------- phase bar -- */
.phases {
  margin: 0;
}
.phases__bar {
  display: block;
  width: 100%;
  height: 0.5rem;
}
.phases__bar rect {
  fill: var(--ink);
}
.phases__bar rect.alt {
  fill: color-mix(in srgb, var(--ink) 50%, var(--surface));
}
.phases__bar rect.unbilled {
  fill: var(--hairline-strong);
}
.phases__legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--text-meta);
}
.phases__legend li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--hairline);
}
.phases__legend .muted {
  color: var(--ink-2);
}

/* ------------------------------------------------------------ status dot -- */
.dot {
  display: inline-block;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ink-2);
  vertical-align: 0.08em;
}
.dot--live,
.dot--busy,
.dot--running {
  background: var(--live);
}
.dot--pass,
.dot--ready {
  background: var(--pass);
}
.dot--fail {
  background: var(--fail);
}
.dot--warn {
  background: var(--warn);
}
.dot--idle,
.dot--pending {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink-2);
}
/* A value the page withholds (a machine path), named in angle brackets: `<machine path>`. */
.withheld {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--ink-2);
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  white-space: nowrap;
}

/* ------------------------------------------------------------ code block -- */
.code {
  position: relative;
  margin: 1rem 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}
.code__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.25rem;
  padding: 0.3rem 0.4rem 0.3rem 0.9rem;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--text-caption);
  color: var(--ink-2);
}
.code pre {
  margin: 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-size: var(--text-meta);
  line-height: 1.65;
  color: var(--ink);
  tab-size: 2;
}
.code--wrap pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code .p {
  color: var(--ink-2);
  user-select: none;
}
.code .c {
  color: var(--ink-2);
}
.code .k {
  color: var(--ink);
  font-weight: 600;
}
.code .s {
  color: var(--live);
}
.copy {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 0.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: var(--text-caption);
  cursor: pointer;
}
.copy:hover {
  border-color: var(--hairline);
  color: var(--ink);
}
@media (pointer: coarse) {
  .copy {
    min-height: 2.75rem;
  }
}

/* The page shell: header with the caret lockup, the body column, and the footer. */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--stage) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
}
.site-head__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
}
.lockup {
  display: inline-flex;
  flex: none;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.lockup svg {
  display: block;
  width: auto;
  height: 1.5rem;
}
.site-head__tag {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--ink-2);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
  font-size: var(--text-small);
}
.site-nav a {
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  text-decoration: none;
  transition: color 140ms;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
}
.site-foot {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  font-size: var(--text-small);
  color: var(--ink-2);
}
.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem;
}
.site-foot__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page {
  padding-block: clamp(2rem, 5vw, 3.5rem) 3rem;
}
.page--narrow {
  max-width: 44rem;
}
.page h1 {
  margin: 0 0 1rem;
  font-size: var(--text-h1);
  font-weight: 600;
  font-stretch: 90%;
  line-height: 1.04;
  letter-spacing: -0.028em;
}
.page .panel + .panel {
  margin-top: 1.5rem;
}
.page .panel__body > p:last-child {
  margin-bottom: 0;
}
.section-head {
  margin-bottom: 1.5rem;
}
.section-head__title {
  font-size: var(--text-h2);
  font-weight: 600;
  font-stretch: 90%;
  line-height: 1.08;
  letter-spacing: -0.024em;
}
h1.section-head__title {
  font-size: var(--text-h1);
}
.section-head__lede {
  max-width: 42rem;
  margin-top: 0.75rem;
  color: var(--ink-2);
}

/*
 * Grounds: full-bleed section backgrounds. A tinted ground swaps the stage and
 * re-points the secondary ink and hairlines at its own hue, so nothing inside
 * reads grey-on-colour; surfaces (runs, tables, code) stay white on top.
 * .ground-live is the brand band: deep blue, white text, and the primary
 * button turned inside out (white, blue label). Dark mode keeps it blue.
 */
.ground {
  background: var(--stage);
  color: var(--ink);
}
.ground-blue {
  --stage: var(--tint-blue);
  --ink-2: var(--tint-blue-ink);
  --hairline: var(--tint-blue-line);
}
.ground-sand {
  --stage: var(--tint-sand);
  --ink-2: var(--tint-sand-ink);
  --hairline: var(--tint-sand-line);
}
.ground-sage {
  --stage: var(--tint-sage);
  --ink-2: var(--tint-sage-ink);
  --hairline: var(--tint-sage-line);
}
.ground-lilac {
  --stage: var(--tint-lilac);
  --ink-2: var(--tint-lilac-ink);
  --hairline: var(--tint-lilac-line);
}
.ground-blue,
.ground-sand,
.ground-sage,
.ground-lilac {
  --stage-2: color-mix(in oklab, var(--stage) 88%, var(--ink-2));
  --hairline-strong: color-mix(in oklab, var(--hairline) 70%, var(--ink-2));
}
.ground-live {
  --stage: var(--live-deep);
  --stage-2: color-mix(in oklab, var(--live-deep) 80%, #000);
  --surface: color-mix(in oklab, var(--live-deep) 84%, #000);
  --ink: var(--live-deep-ink);
  --ink-2: var(--live-deep-ink-2);
  --hairline: color-mix(in oklab, var(--live-deep) 65%, var(--live-deep-ink));
  --hairline-strong: color-mix(in oklab, var(--live-deep) 45%, var(--live-deep-ink));
  --live: var(--live-deep-ink);
  --live-ink: var(--live-deep);
  color-scheme: dark;
}
.ground-live ::selection {
  background: color-mix(in srgb, var(--live-deep-ink) 30%, transparent);
}
.ground-live .btn-primary:hover,
.ground-live .btn.primary:hover {
  border-color: var(--live-deep-ink-2);
  background: var(--live-deep-ink-2);
}
