/* fonts are self-hosted so the page never depends on third-party hosts */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #07090d;
  --bg-2: #0b0e14;
  --panel: rgba(14, 18, 25, 0.78);
  --panel-solid: #0e1219;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #e8edf4;
  --muted: #7f8998;
  --dim: #4a5261;
  --accent: #c6ff3d;
  --accent-ink: #0c1200;
  --info: #6fd3ff;
  --warn: #ffb547;
  --danger: #ff5a6a;
  --radius: 18px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(198, 255, 61, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(111, 211, 255, 0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  /* technical grid */
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: rgba(198, 255, 61, 0.1);
  color: var(--accent);
}

/* ---------- background ---------- */
.bg-traces {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}
.bg-traces .trace {
  fill: none;
  stroke: rgba(198, 255, 61, 0.22);
  stroke-width: 1;
}
.bg-traces .node { fill: var(--accent); opacity: 0.5; }

.bg-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  left: -260px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 61, 0.08), transparent 65%);
  pointer-events: none;
}

/* hidden before the intro animation; the class is only set when app.js runs */
html.anim :is(.brand, .lede, .demo-chip, .panel) { opacity: 0; }

/* ---------- layout ---------- */
.shell {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 28px 32px;
}

.masthead { margin-bottom: 40px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}
.mode-pill {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 181, 71, 0.4);
  color: var(--warn);
  letter-spacing: 0.12em;
}

.title {
  margin: 14px 0 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.title .char { display: inline-block; will-change: transform; }

.lede {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 13px;
}
.demo-name { white-space: nowrap; color: var(--muted); }
.demo-result { display: inline-flex; white-space: nowrap; }
.demo-pfx {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--info);
}
.demo-arrow { width: 36px; height: 12px; fill: none; stroke: var(--dim); stroke-width: 1.5; }
.demo-result { color: var(--accent); }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(198, 255, 61, 0.25), transparent 35%, transparent 70%, rgba(111, 211, 255, 0.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.config { position: sticky; top: 24px; }

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.panel-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.step {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  padding: 3px 7px;
  border: 1px solid rgba(198, 255, 61, 0.3);
  border-radius: 6px;
}

/* ---------- form ---------- */
form { display: grid; gap: 16px; }

.field { display: grid; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label,
legend {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 0;
}
legend { margin-bottom: 9px; }

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font: 14px var(--mono);
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input::placeholder { color: var(--dim); }
input:focus {
  border-color: rgba(198, 255, 61, 0.55);
  box-shadow: 0 0 0 4px rgba(198, 255, 61, 0.08);
  background: rgba(0, 0, 0, 0.5);
}
input.invalid {
  border-color: rgba(255, 90, 106, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 90, 106, 0.1);
}
input:disabled { opacity: 0.55; }

.scope-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.scope-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color 0.3s, background 0.3s;
}
.scope-card:hover { border-color: rgba(255, 255, 255, 0.22); }
.scope-card.checked { border-color: transparent; background: transparent; }
.scope-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.scope-card:has(input:disabled) { cursor: not-allowed; }
.scope-card input { position: absolute; opacity: 0; pointer-events: none; }

.scope-icon {
  width: 40px;
  height: 40px;
  overflow: visible;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: stroke 0.3s, transform 0.3s;
}
.scope-icon rect { fill: rgba(255, 255, 255, 0.03); }
.scope-card:hover .scope-icon { transform: translateY(-2px); }
.scope-card.checked .scope-icon { stroke: var(--accent); }
.scope-card.checked .scope-icon rect { fill: rgba(198, 255, 61, 0.12); }

.scope-text { display: grid; gap: 2px; }
.scope-text b { font-size: 15px; font-weight: 600; color: var(--muted); transition: color 0.3s; }
.scope-text small { font-size: 12px; line-height: 1.35; color: var(--dim); }
.scope-card.checked .scope-text b { color: var(--text); }
.scope-card.checked .scope-text small { color: var(--muted); }

.scope-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background 0.3s, border-color 0.3s;
}
.scope-check svg { width: 12px; height: 12px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.scope-card.checked .scope-check { background: var(--accent); border-color: var(--accent); }
.scope-card.checked .scope-check svg { opacity: 1; }

.scope-glow {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 14px;
  border: 1px solid rgba(198, 255, 61, 0.55);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(198, 255, 61, 0.14), transparent 60%),
    rgba(198, 255, 61, 0.04);
  box-shadow: 0 0 28px -8px rgba(198, 255, 61, 0.45), inset 0 0 18px -10px rgba(198, 255, 61, 0.6);
  pointer-events: none;
}

.ripple {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: rgba(198, 255, 61, 0.35);
  pointer-events: none;
  z-index: -1;
}

.input-wrap { position: relative; }
.input-wrap input { padding-right: 46px; }
.reveal {
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.reveal:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.reveal svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.reveal[aria-pressed="true"] { color: var(--accent); }

.type-groups { display: grid; gap: 14px; }
.type-group { display: grid; gap: 8px; }
.type-group-head { display: flex; align-items: baseline; gap: 8px; }
.type-group-name { font-size: 12.5px; font-weight: 500; color: var(--text); }
.type-group-count { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.group-toggle {
  margin-left: auto;
  padding: 2px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: 500 12px var(--sans);
  cursor: pointer;
}
.group-toggle:hover { color: var(--accent); background: rgba(198, 255, 61, 0.06); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; text-transform: none; letter-spacing: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}
.chip span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
  transition: all 0.2s;
}
.chip input:checked + span {
  color: var(--text);
  border-color: rgba(198, 255, 61, 0.4);
  background: rgba(198, 255, 61, 0.07);
}
.chip input:checked + span::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip input:disabled + span { cursor: not-allowed; opacity: 0.6; }

.toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track {
  flex: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-2);
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s;
}
.toggle input:checked + .toggle-track { background: rgba(255, 181, 71, 0.18); border-color: rgba(255, 181, 71, 0.5); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(18px); background: var(--warn); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle-text { display: grid; gap: 1px; }
.toggle-text strong { color: var(--text); font-size: 14px; font-weight: 600; }
.toggle-text small { color: var(--muted); font-size: 12.5px; }

.actions { display: flex; gap: 10px; margin-top: 4px; }

.run-btn {
  position: relative;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 15px var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 40px -12px rgba(198, 255, 61, 0.6);
}
.run-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.run-btn .run-fill {
  position: absolute;
  inset: 0;
  background: #0c1200;
  transform-origin: left;
  transform: scaleX(0);
  z-index: -1;
}
.run-btn.busy { color: var(--accent); cursor: progress; box-shadow: none; outline: 1px solid rgba(198, 255, 61, 0.4); }
.run-btn.busy .run-icon { display: none; }
.run-btn.dry { background: var(--warn); box-shadow: 0 10px 40px -12px rgba(255, 181, 71, 0.55); }
.run-btn.dry.busy { color: var(--warn); outline-color: rgba(255, 181, 71, 0.4); }
.run-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.run-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 13.5px; }

.ghost-btn {
  height: 54px;
  padding: 0 20px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font: 500 14px var(--sans);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ghost-btn:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.25); }
#stopBtn { color: var(--danger); border-color: rgba(255, 90, 106, 0.35); }

.hint {
  margin: 2px 0 0;
  font: 12.5px var(--mono);
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hint-arrow { margin: 0 8px; }
.hint-new { color: var(--muted); }
.hint-new b { font-weight: 500; color: var(--info); }
.hint.error { color: var(--danger); white-space: normal; }

/* ---------- run ---------- */
.status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.status b { font-weight: 500; }
.status.running i { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.status.done i { background: var(--info); }
.status.failed i { background: var(--danger); }

.stages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.stage {
  position: relative;
  padding: 11px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, opacity 0.3s;
}
.stage.off { display: none; }
.stage-count.na { color: var(--dim); }
.stage.active { border-color: rgba(198, 255, 61, 0.45); background: rgba(198, 255, 61, 0.04); }
.stage.done { border-color: rgba(111, 211, 255, 0.25); }
.stage.failed { border-color: rgba(255, 90, 106, 0.45); }

.stage-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 33px; }
.stage-name { font-size: 12.5px; font-weight: 500; line-height: 1.3; min-width: 0; }
.stage-count { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.stage-bar {
  height: 3px;
  margin: 12px 0 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.stage-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #e9ffa8);
  transform-origin: left;
  transform: scaleX(0);
}
.stage.failed .stage-bar i { background: var(--danger); }
.stage-stats { display: flex; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.stage-stats b { font-weight: 500; }
.stage-stats .s-ok b { color: var(--accent); }
.stage-stats .s-skip b { color: var(--muted); }
.stage-stats .s-err b { color: var(--danger); }
.stage-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(198, 255, 61, 0.1), transparent);
  transform: translateX(-100%);
  pointer-events: none;
}

/* ---------- terminal ---------- */
.terminal {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 5, 8, 0.75);
  overflow: hidden;
}
.term-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.filters { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.filter {
  flex: none;
  padding: 5px 10px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 12.5px var(--sans);
  cursor: pointer;
}
.filter span { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-left: 3px; }
.filter:hover { color: var(--text); }
.filter.active { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.filter.active span { color: var(--accent); }
.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.log {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  height: 420px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  scrollbar-width: thin;
  scrollbar-color: var(--dim) transparent;
}
.log li { padding: 3px 16px; display: flex; gap: 12px; align-items: baseline; white-space: nowrap; }
.log .placeholder { color: var(--muted); }
.log .prompt { color: var(--accent); }
.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 4px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.row .t { color: var(--dim); flex: none; }
.row .badge {
  flex: none;
  width: 72px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1px 0;
  border-radius: 5px;
}
.row .kind { flex: none; color: var(--muted); width: 150px; overflow: hidden; text-overflow: ellipsis; }
.row .msg { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row .msg .old { color: var(--text); }
.row .msg .pfx { display: inline-block; overflow: hidden; vertical-align: bottom; color: var(--info); }
.row .msg .arrow { color: var(--dim); margin: 0 8px; }
.row .msg .new { color: var(--accent); }
.row .msg .why { color: var(--danger); opacity: 0.85; }

.row.ok .badge { background: rgba(198, 255, 61, 0.12); color: var(--accent); }
.row.dry .badge { background: rgba(255, 181, 71, 0.12); color: var(--warn); }
.row.dry .msg .new { color: var(--warn); }
.row.skip .badge { background: rgba(255, 255, 255, 0.05); color: var(--dim); }
.row.skip .msg { color: var(--dim); }
.row.err .badge { background: rgba(255, 90, 106, 0.14); color: var(--danger); }
.row.info .badge { color: var(--info); background: rgba(111, 211, 255, 0.1); }
.row.info .msg { color: var(--muted); }
.row.section {
  margin-top: 10px;
  padding-top: 8px;
  color: var(--text);
  font-weight: 500;
}
.row.section::before { content: "──"; color: var(--dim); }
.row.section:first-child { margin-top: 0; }

.log[data-filter="ok"] .row:not(.ok):not(.dry),
.log[data-filter="skip"] .row:not(.skip),
.log[data-filter="err"] .row:not(.err) { display: none; }

/* ---------- summary ---------- */
.summary {
  margin-top: 18px;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid rgba(198, 255, 61, 0.3);
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(198, 255, 61, 0.1), transparent 70%),
    rgba(0, 0, 0, 0.3);
  display: grid;
  gap: 18px;
}
.summary.failed { border-color: rgba(255, 90, 106, 0.4); background: radial-gradient(500px 200px at 0% 0%, rgba(255, 90, 106, 0.1), transparent 70%), rgba(0, 0, 0, 0.3); }
.summary-head { display: flex; justify-content: space-between; align-items: baseline; }
.summary-kicker { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.summary-time { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric { display: grid; gap: 2px; }
.metric b { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: -0.03em; }
.metric span { font-size: 13px; color: var(--muted); }
.metric.ok b { color: var(--accent); }
.metric.skip b { color: var(--muted); }
.metric.err b { color: var(--danger); }
.summary .ghost-btn { justify-self: start; height: 44px; }


/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .config { position: relative; top: 0; }
}
@media (max-width: 640px) {
  .shell { padding: 32px 16px 24px; }
  .panel { padding: 20px 16px; }
  .field-row { grid-template-columns: 1fr; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row .kind { display: none; }
  .row .t { display: none; }
  .log { height: 360px; }
  .demo-chip { font-size: 12px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
}
