:root {
  color-scheme: light;
  --bg: #f4f3ef;
  --surface: #fcfcfb;
  --border: #e3e1da;
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #7d7b75;
  --grid: #e8e6e0;
  --accent: #2a78d6;
  --accent-soft: #d8e6f8;
  --good: #0f7b3e; --good-bg: #dcf1e3;
  --warn: #8a5a00; --warn-bg: #fbecc8;
  --bad: #b42323;  --bad-bg: #fbe0df;
  --idle: #5c5b57; --idle-bg: #ebe9e3;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111110; --surface: #1a1a19; --border: #2c2c2a;
    --text: #f0efec; --text-2: #c3c2b7; --muted: #8f8e86; --grid: #2a2a28;
    --accent: #3987e5; --accent-soft: #1e3352;
    --good: #5fd08a; --good-bg: #173524;
    --warn: #f0b84a; --warn-bg: #3a2d10;
    --bad: #f08080;  --bad-bg: #3d1a1a;
    --idle: #b5b4ac; --idle-bg: #2a2a28;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111110; --surface: #1a1a19; --border: #2c2c2a;
  --text: #f0efec; --text-2: #c3c2b7; --muted: #8f8e86; --grid: #2a2a28;
  --accent: #3987e5; --accent-soft: #1e3352;
  --good: #5fd08a; --good-bg: #173524;
  --warn: #f0b84a; --warn-bg: #3a2d10;
  --bad: #f08080;  --bad-bg: #3d1a1a;
  --idle: #b5b4ac; --idle-bg: #2a2a28;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 40px 16px 56px; }

.head h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 10px 0 12px; font-weight: 650; }
.lede { color: var(--text-2); max-width: 64ch; margin: 0 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot.live { background: var(--good); animation: pulse 2s ease-in-out infinite; }
.dot.done { background: var(--good); }
.dot.fail { background: var(--bad); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .dot.live { animation: none; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.hero { padding: 24px; margin-bottom: 16px; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.hero-num { font-size: clamp(52px, 10vw, 76px); font-weight: 650; letter-spacing: -.03em; line-height: 1; margin-top: 6px; }
.hero-num .unit { font-size: .45em; color: var(--text-2); margin-left: 2px; font-weight: 600; }
.eta { text-align: right; }
.eta-val { font-size: 24px; font-weight: 600; margin-top: 4px; }
.meter { height: 12px; border-radius: 99px; background: var(--accent-soft); margin: 20px 0 14px; overflow: hidden; }
.meter-fill { height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width .8s ease; }
.now { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now code { color: var(--text-2); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.tile { padding: 16px 18px; min-width: 0; }
.tile .val { font-size: 28px; font-weight: 620; letter-spacing: -.01em; margin-top: 4px; }

.badge { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 99px; background: var(--idle-bg); color: var(--idle); white-space: nowrap; }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad  { background: var(--bad-bg);  color: var(--bad); }
.badge.good::before { content: "✓ "; }
.badge.bad::before  { content: "✕ "; }
.badge.warn::before { content: "● "; }

.charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.chart { margin: 0; padding: 16px 16px 10px; min-width: 0; }
.chart figcaption { display: flex; flex-direction: column; margin-bottom: 8px; }
.ctitle { font-size: 15px; font-weight: 600; }
.plot { height: 150px; position: relative; }
.plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.plot .grid line { stroke: var(--grid); stroke-width: 1; }
.plot .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.plot .area { fill: var(--accent); opacity: .12; }
.plot .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.plot .cap { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.plot .cross { stroke: var(--text-2); stroke-width: 1; }
.plot .pt { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.plot .empty { fill: var(--muted); font-size: 13px; }

.tip { position: fixed; pointer-events: none; z-index: 10; background: var(--text); color: var(--surface); font-size: 12.5px; padding: 6px 9px; border-radius: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tip b { font-weight: 650; }

.checks { padding: 22px 24px; }
.checks h2 { font-size: 18px; margin: 0 0 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; }
.steps li .badge { justify-self: start; margin-top: 2px; }
.steps li.lol .badge { margin-top: 9px; }
.steps p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.fine { color: var(--muted); font-size: 13px; margin: 18px 0 0; border-top: 1px solid var(--border); padding-top: 14px; }

.foot { color: var(--muted); font-size: 12.5px; margin-top: 22px; text-align: center; }

@media (max-width: 820px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .charts { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding-top: 28px; }
  .eta { text-align: left; }
  .steps li { grid-template-columns: 1fr; gap: 4px; }
  .tile .val { font-size: 24px; }
}
