/* Monitor: a calm, dense ops console. Dark first; light via OS preference or the theme cookie.
   One accent (periwinkle) for interaction; status colours are always paired with an icon and a word. */

:root {
  --bg: #121922; --bg-top: #0f151d; --panel: #18212c; --panel-2: #1d2733; --line: #273340; --line-2: #354352;
  --text: #e3e9f0; --muted: #94a2b4; --faint: #66768a;
  --accent: #8ea9ff; --accent-ink: #0c1430;
  --ok: #4cc38a; --warn: #f0b545; --fail: #ff7062; --unknown: #a7b3c4;
  --qr-bg: #fff;
  --radius: 10px; --radius-sm: 6px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #edf1f5; --bg-top: #ffffff; --panel: #ffffff; --panel-2: #f4f6f9; --line: #d8dfe7; --line-2: #c3cdd9;
    --text: #17212d; --muted: #536174; --faint: #8592a3;
    --accent: #3456d1; --accent-ink: #ffffff;
    --ok: #16804c; --warn: #9a5f00; --fail: #c4352a; --unknown: #627287;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #edf1f5; --bg-top: #ffffff; --panel: #ffffff; --panel-2: #f4f6f9; --line: #d8dfe7; --line-2: #c3cdd9;
  --text: #17212d; --muted: #536174; --faint: #8592a3;
  --accent: #3456d1; --accent-ink: #ffffff;
  --ok: #16804c; --warn: #9a5f00; --fail: #c4352a; --unknown: #627287;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 0.9375rem/1.5 var(--sans); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.0625rem; }
p { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
code { font-family: var(--mono); font-size: 0.8125rem; overflow-wrap: anywhere; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.r { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 10; padding: 8px 12px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }
main:focus { outline: none; }

.ico { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }

/* ---------- status: colour + icon + word ---------- */
.st-ok { --c: var(--ok); } .st-warn { --c: var(--warn); } .st-fail { --c: var(--fail); } .st-unknown { --c: var(--unknown); }
.st {
  display: inline-flex; align-items: center; gap: 0.35em; white-space: nowrap;
  padding: 0.125em 0.55em 0.125em 0.4em; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; line-height: 1.35;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
}
.s-ok { fill: var(--ok); } .s-warn { fill: var(--warn); } .s-fail { fill: var(--fail); } .s-unknown { fill: var(--unknown); }

/* ---------- shell ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px;
  padding: 0 32px; min-height: 56px;
  background: var(--bg-top); border-bottom: 1px solid var(--line);
}
.brand, .gate-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 22px; height: 22px; color: var(--accent); }
.nav { flex: 1 1 auto; min-width: 0; }
.nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.nav a {
  display: block; padding: 17px 10px 15px; white-space: nowrap;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.875rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.tools { display: flex; align-items: center; gap: 14px; font-size: 0.875rem; }
.tools form { margin: 0; }
.who { color: var(--muted); text-decoration: none; }
.who:hover, .who.is-current { color: var(--text); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 0.8125rem; white-space: nowrap; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.live.is-on::before { background: var(--ok); }
.live.is-off { color: var(--warn); }
.live.is-off::before { background: var(--warn); }
.live:empty { display: none; }
.icon-btn, .link-btn {
  font: inherit; color: var(--muted); background: none; border: 0; padding: 6px; cursor: pointer; border-radius: var(--radius-sm);
}
.icon-btn { display: inline-grid; place-items: center; font-size: 1rem; }
.icon-btn:hover, .link-btn:hover { color: var(--text); }
.link-btn { padding: 6px 2px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

.shell main { display: flex; flex-direction: column; gap: 28px; max-width: 1240px; margin: 0 auto; padding: 28px 32px 64px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.page-head h1 { font-size: 1.75rem; }
.page-head p { margin-top: 4px; max-width: 70ch; }
.page-sum { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; }

.empty {
  display: flex; gap: 12px; align-items: flex-start; padding: 28px; max-width: 72ch;
  border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted);
}
.empty .ico { font-size: 1.25rem; color: var(--faint); margin-top: 1px; }
.empty strong { color: var(--text); font-weight: 600; }

.alert, .banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px;
  border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 11%, var(--panel)); color: var(--text);
}
.alert { --c: var(--fail); }
.alert .ico { color: var(--fail); margin-top: 3px; }
.banner { --c: var(--warn); padding: 16px 20px; }
.banner > .ico { font-size: 1.375rem; color: var(--warn); margin-top: 1px; }
.banner-title { font-weight: 650; font-size: 1.0625rem; }
.banner p + p { color: var(--muted); margin-top: 2px; }

/* ---------- overview: status strip ---------- */
.strip {
  --c: var(--ok);
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  border-left: 6px solid var(--c); overflow: hidden;
}
.strip-warn { --c: var(--warn); } .strip-fail { --c: var(--fail); } .strip-unknown { --c: var(--unknown); }
.strip:not(.strip-ok) { background: color-mix(in srgb, var(--c) 7%, var(--panel)); }
.strip-head { display: flex; align-items: center; gap: 18px; padding: 22px 24px; }
.strip-icon { width: 44px; height: 44px; flex: none; color: var(--c); }
.strip h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; }
.strip-meta { margin-top: 4px; color: var(--muted); }
.problems { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.problems li + li { border-top: 1px solid var(--line); }
.problems a {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto 10rem; gap: 4px 16px; align-items: center;
  padding: 10px 24px; color: var(--text); text-decoration: none;
}
.problems a:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.p-name { font-weight: 550; min-width: 0; }
.p-sys { margin-left: 10px; color: var(--muted); font-weight: 400; font-size: 0.875rem; }
.p-val { text-align: right; font-weight: 600; }
.p-since { color: var(--muted); font-size: 0.875rem; text-align: right; }

/* ---------- overview: system cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.card { --c: var(--ok); }
.card-warn { --c: var(--warn); } .card-fail { --c: var(--fail); } .card-unknown { --c: var(--unknown); }
.card-link {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; position: relative;
}
.card:not(.card-ok) .card-link { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: inset 0 3px 0 var(--c); }
.card-link:hover { border-color: var(--line-2); background: var(--panel-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-name { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
.card-sub { color: var(--muted); font-size: 0.8125rem; }
.card-item { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 0.875rem; }
.ci-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-val { font-weight: 650; white-space: nowrap; }
.card-foot { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 0.8125rem; }
.keybar { display: block; width: 100%; height: 8px; margin-top: 14px; border-radius: 4px; overflow: hidden; }

/* ---------- sparklines and charts (SVG drawn by app.js) ---------- */
.spark { display: block; width: 100%; height: 30px; overflow: visible; }
.spark .line, .plot .line { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark .area, .plot .area { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: none; }
.spark .base, .plot .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.band.s-ok { fill: color-mix(in srgb, var(--ok) 55%, transparent); }
.spark .nodata { fill: var(--faint); font-size: 9px; }

/* ---------- 24 h lanes ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.sec-head p { font-size: 0.875rem; }
.lanes { padding: 16px 18px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.lane { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 14px; padding: 5px 0; }
.lane-name { color: var(--text); text-decoration: none; font-size: 0.875rem; font-weight: 550; }
.lane-name:hover { color: var(--accent); }
.lane-track { display: block; width: 100%; height: 16px; border-radius: 3px; background: var(--panel-2); }
.lane-track .s-ok { fill: color-mix(in srgb, var(--ok) 45%, var(--panel-2)); }
.lane-axis { display: flex; justify-content: space-between; margin: 6px 0 0 calc(7.5rem + 14px); color: var(--faint); font-size: 0.75rem; }

/* ---------- system page: checks ---------- */
.group-title { font-size: 0.9375rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.checks { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.check + .check { border-top: 1px solid var(--line); }
.check:target { box-shadow: inset 3px 0 0 var(--accent); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.check summary {
  display: grid; align-items: center; gap: 4px 16px; padding: 10px 16px;
  grid-template-columns: 7.5rem minmax(0, 1fr) 6.5rem minmax(6rem, 9rem) 8.5rem 1rem;
}
.check summary:hover, .run summary:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.c-name { display: flex; flex-direction: column; min-width: 0; }
.c-label { font-weight: 550; }
.c-detail { color: var(--muted); font-size: 0.8125rem; overflow-wrap: anywhere; }
.c-detail:empty { display: none; }
.c-val { text-align: right; font-weight: 650; white-space: nowrap; }
.c-since { color: var(--muted); font-size: 0.8125rem; text-align: right; white-space: nowrap; }
.chev { color: var(--faint); transition: transform 0.15s ease; }
details[open] > summary .chev { transform: rotate(90deg); }
.c-more { padding: 4px 16px 16px calc(7.5rem + 32px); }
.chart-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.c-id { color: var(--muted); }
.ranges { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.ranges button { font: inherit; font-size: 0.8125rem; padding: 4px 12px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.ranges button + button { border-left: 1px solid var(--line-2); }
.ranges button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chart-body { position: relative; padding-left: 4.5rem; }
.y-max, .y-min { position: absolute; left: 0; width: 4rem; text-align: right; font-size: 0.75rem; color: var(--faint); }
.y-max { top: 0; } .y-min { bottom: 10px; }
.plot { display: block; width: 100%; height: 170px; }
.x-axis { display: flex; justify-content: space-between; padding-left: 4.5rem; margin-top: 4px; font-size: 0.75rem; color: var(--faint); }
.chart-note { margin-top: 10px; font-size: 0.8125rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 0.8125rem; white-space: nowrap; background: var(--panel-2); }
tbody th { font-weight: 550; }
th.r, td.r { text-align: right; }
td.hot { color: var(--fail); font-weight: 650; }
td.warm { color: var(--warn); font-weight: 650; }
tfoot th, tfoot td { font-weight: 650; background: var(--panel-2); }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8125rem; color: var(--muted); font-weight: 550; }
.filters .grow { flex: 1 1 16rem; }
.filter-count { margin-left: auto; font-size: 0.8125rem; }
select, input {
  font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 8px 10px; min-height: 40px;
}
input:focus-visible, select:focus-visible { outline-offset: 0; border-color: var(--accent); }

.keys th[scope="row"] { min-width: 13rem; }
.k-prov { display: block; font-weight: 650; }
.k-var { display: block; font-weight: 400; font-size: 0.8125rem; }
.k-var code { color: var(--muted); }
.fp { padding: 2px 6px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); letter-spacing: 0.04em; }
.quota { min-width: 12rem; }
.q-nums { display: block; white-space: nowrap; }
.q-note { display: block; font-size: 0.8125rem; color: var(--muted); }
.meter { display: block; width: 100%; max-width: 12rem; height: 6px; margin: 5px 0 3px; border-radius: 3px; overflow: hidden; }
.m-track { fill: var(--panel-2); stroke: var(--line); }
.q-trend { color: var(--text); }
.q-out { margin-top: 4px; }
.shared { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--muted); }
table.keys tr:target { box-shadow: inset 3px 0 0 var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* ---------- jobs ---------- */
.runs { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.run + .run { border-top: 1px solid var(--line); }
.run summary {
  display: grid; align-items: center; gap: 4px 16px; padding: 12px 16px;
  grid-template-columns: 7.5rem minmax(0, 1fr) 7rem 9rem minmax(0, 18rem) 1rem;
}
.r-name { display: flex; flex-direction: column; font-size: 0.875rem; }
.r-title { font-weight: 650; font-size: 0.9375rem; }
.r-dur { text-align: right; font-weight: 600; }
.r-sum { font-size: 0.875rem; }
.r-sum strong { color: var(--fail); }
.r-counts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8125rem; color: var(--muted); }
.r-counts b { color: var(--text); font-weight: 650; }
.run-more { display: flex; flex-direction: column; gap: 16px; padding: 4px 16px 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; font-size: 0.875rem; }
.facts dt { color: var(--muted); font-size: 0.8125rem; }
.facts dd { margin: 0; }
.sub-title { font-size: 0.875rem; }
.failed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.failed li { display: flex; align-items: center; gap: 10px; }
.run .table-wrap { background: var(--bg); }

/* ---------- events ---------- */
.events tr.day th { background: var(--panel-2); color: var(--muted); font-size: 0.8125rem; font-weight: 600; padding-top: 8px; padding-bottom: 8px; }
.events tbody th a { color: var(--text); text-decoration: none; }
.events tbody th a:hover { color: var(--accent); text-decoration: underline; }
.ev-sys { display: block; font-weight: 400; font-size: 0.8125rem; }
.change { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.arrow { color: var(--faint); }
.events td.r strong { color: var(--text); }
.ev-fail td.r strong { color: var(--fail); }
.ev-warn td.r strong { color: var(--warn); }

/* ---------- account and forms ---------- */
.account { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.panel { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.panel.wide { grid-column: 1 / -1; }
.panel .table-wrap { border: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.stack label { display: flex; flex-direction: column; gap: 5px; font-size: 0.875rem; font-weight: 550; }
.hint { font-size: 0.8125rem; color: var(--muted); margin-top: -4px; }
.btn {
  font: inherit; font-weight: 600; min-height: 40px; padding: 8px 16px; cursor: pointer;
  color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-sm);
}
.btn:hover { filter: brightness(1.08); }
.stack .btn { align-self: flex-start; }
.btn-quiet { color: var(--text); background: none; border-color: var(--line-2); min-height: 32px; padding: 4px 12px; font-size: 0.8125rem; }
.sessions form { margin: 0; }
.tag { font-size: 0.8125rem; color: var(--muted); }

/* ---------- sign-in steps ---------- */
.gate main { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.gate-card {
  width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.gate-card.wide { max-width: 540px; }
.gate-brand { margin-bottom: 10px; }
.gate-card .stack .btn { align-self: stretch; }
.gate-alt { margin: 0; }
.gate-foot { font-size: 0.8125rem; }
.code { font-family: var(--mono); font-size: 1.375rem; letter-spacing: 0.3em; text-align: center; }
.steps { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 18px; }
.steps li::marker { color: var(--muted); font-weight: 650; }
.steps p { margin-bottom: 8px; }
.qr-frame { width: 220px; max-width: 100%; padding: 6px; background: var(--qr-bg); border-radius: var(--radius-sm); }
.qr { display: block; width: 100%; height: auto; }
.secret { font-family: var(--mono); font-size: 1.0625rem; letter-spacing: 0.06em; word-spacing: 0.3em; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-wrap: anywhere; user-select: all; }
.uri summary { color: var(--accent); font-size: 0.8125rem; }
.uri code { display: block; margin-top: 6px; color: var(--muted); }

/* ---------- narrow screens ---------- */
@media (max-width: 900px) {
  .check summary { grid-template-columns: 7.5rem minmax(0, 1fr) auto 1rem; }
  .check .spark { grid-column: 2 / 4; grid-row: 2; }
  .check .c-since { grid-column: 2 / 4; text-align: left; }
  .c-more { padding-left: 16px; }
  .run summary { grid-template-columns: 7.5rem minmax(0, 1fr) auto 1rem; }
  .run .r-sum, .run .r-counts { grid-column: 2 / 4; }
}
@media (max-width: 720px) {
  .top { padding: 0 16px; gap: 0 12px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -16px; }
  .nav ul { padding: 0 8px; }
  .nav a { padding: 10px 8px 9px; }
  .tools { margin-left: auto; gap: 8px; }
  .tools .live { display: none; }
  .shell main { padding: 20px 16px 48px; gap: 22px; }
  .strip-head { padding: 18px 16px; gap: 14px; align-items: flex-start; }
  .strip-icon { width: 32px; height: 32px; }
  .problems a { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px 16px; }
  .p-since { grid-column: 2 / 4; text-align: left; }
  .p-sys { display: block; margin-left: 0; }
  .lane { grid-template-columns: 5.5rem 1fr; gap: 10px; }
  .lane-axis { margin-left: calc(5.5rem + 10px); }
  .lane-axis span:nth-child(2), .lane-axis span:nth-child(4) { display: none; }
  .check summary, .run summary { grid-template-columns: minmax(0, 1fr) auto 1rem; padding: 12px; }
  .check .c-st, .run .r-st { grid-column: 1 / 3; }
  .check .c-name, .run .r-name { grid-column: 1; grid-row: 2; }
  .check .c-val, .run .r-dur { grid-column: 2; grid-row: 2; }
  .check .chev, .run .chev { grid-column: 3; grid-row: 1; }
  .check .spark, .check .c-since, .run .r-sum, .run .r-counts { grid-column: 1 / 4; grid-row: auto; }
  .c-more { padding: 4px 12px 14px; }
  .chart-body, .x-axis { padding-left: 3.25rem; }
  .y-max, .y-min { width: 2.9rem; }
  /* keys: one block per key */
  table.keys thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.keys, table.keys tbody, table.keys tr, table.keys th, table.keys td { display: block; }
  table.keys tr { padding: 12px 14px; border-top: 1px solid var(--line); }
  table.keys tbody tr:first-child { border-top: 0; }
  table.keys th, table.keys td { border: 0; padding: 3px 0; text-align: left; }
  table.keys td[data-label] { display: flex; justify-content: space-between; gap: 16px; }
  table.keys td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 0.8125rem; }
  table.keys td.quota { flex-direction: column; gap: 2px; }
  .filter-count { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
