/* Jog status: the public sibling of Jog's admin (docs/status-page.md). Same ground (admin's still sand: a
   coarse and a fine grain tile and the paper tooth), same faces (Source Serif 4 titles, Inter words, IBM Plex
   Mono figures and ticks), same chart panes on --surface, chips, segmented controls, glass tips and sheets,
   and the same chart grammar: a live legend over each plot, figures in a right gutter, one cursor shared by
   every time chart, expand to a sheet. Colours are light-dark() pairs; the theme only flips color-scheme.
   Data colours are validated with the dataviz validator (--pairs all): uptime states ordered by lightness;
   Jog and Jog Max as a pair, Jog Max in Matt's burnt orange (landing.css), toned to pass against Jog's
   green, always labelled; Down at night is a rose so Jog Max's orange never reads as an alarm; the wait percentiles one green ramp. Text never wears a data colour. */
@font-face { font-family: "Inter Variable"; src: url("fonts/inter-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter Variable"; src: url("fonts/inter-math.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+2009, U+200A, U+202F, U+2264-2265; }
@font-face { font-family: "Source Serif 4 Variable"; src: url("fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --serif: "Source Serif 4 Variable", Georgia, serif;
  --sans: "Inter Variable", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ground: light-dark(#e9d7b8, #352c24);
  --bg: light-dark(#f5f0e7, #1f1814);
  --row-hover: light-dark(rgb(255 255 255 / .55), rgb(255 250 235 / .035));
  --ochre-text: light-dark(#6b4c16, #d9b46c);
  --surface: light-dark(#f4ebda, #261e19);
  --surface-2: light-dark(#ebdfca, #231b17);
  --line: light-dark(#d9cdb9, #3d322a);
  --line-2: light-dark(#bfb096, #57493d);
  --ink: light-dark(#2a2119, #f1e9dc);
  --ink-2: light-dark(#4b4036, #cfc3b3);
  --ink-3: light-dark(#574a3e, #a99b8b);
  --grid: light-dark(rgb(52 40 18 / .08), rgb(255 250 235 / .07));
  --rim: light-dark(rgb(255 255 255 / .7), rgb(255 250 235 / .04));
  --shade: light-dark(rgb(52 40 18 / .2), rgb(8 5 3 / .66));
  --shade-near: light-dark(rgb(52 40 18 / .07), rgb(8 5 3 / .4));
  --glass: light-dark(rgb(252 250 245 / .8), rgb(42 33 27 / .84));
  --glass-edge: light-dark(rgb(255 255 255 / .7), rgb(255 250 235 / .09));
  --glass-hairline: light-dark(rgb(52 40 18 / .13), rgb(8 5 3 / .55));
  --glass-sheen: light-dark(rgb(255 255 255 / .4), rgb(255 250 235 / .03));
  --hover: light-dark(rgb(74 52 22 / .06), rgb(255 250 235 / .065));
  --thumb: light-dark(#f4ebda, #382d26);
  --shadow-card: inset 0 1px 0 var(--rim), 0 1px 2px var(--shade-near);
  --green: light-dark(#3a5520, #a7c47a);
  --red: light-dark(#a33024, #e8907e);
  --brand-dot: light-dark(#5f7f3a, #8fae5e);
  /* data: uptime states, validated as a trio (lightest honey, then green, darkest brick) */
  --up: light-dark(#5a873b, #3e8655);
  --part: light-dark(#e0a43a, #bd871c);
  --down: light-dark(#9a2a1e, #e8909a);
  --unm: light-dark(#b5a68c, #6b5c4c);
  /* "No share recorded" (an alert open that records no share: maybe all lost, maybe none): a pale honey ground and
     thin honey hatching, quieter than a known loss's solid honey, at the full height it counts as lost. */
  --maybe: light-dark(color-mix(in oklch, #e0a43a 16%, #f4ebda), color-mix(in oklch, #bd871c 22%, #261e19));
  --hatch-line: light-dark(color-mix(in oklch, #e0a43a 85%, #f4ebda), color-mix(in oklch, #bd871c 70%, #261e19));
  --hatch: repeating-linear-gradient(135deg, var(--hatch-line) 0 1px, var(--maybe) 1px 4px);
  /* data: the on-time bar, how soon test jobs started: deep green (within 10 s) to pale (1 to 2 min), then a muted
     tan for "later", never honey or red; the "later" tan stands 1.34:1 from the pale green by day (4.45:1 by
     night), so the late share never merges into "within 2 min". */
  --ot1: light-dark(#3d6a27, #3e8655);
  --ot2: light-dark(#6a9446, #5f9a6c);
  --ot3: light-dark(#9cbb7a, #7fae8a);
  --ot4: light-dark(#c8d9ac, #a3c4aa);
  --ot-late: light-dark(#c9b48f, #5a4a3c);
  /* data: runners (validated as a pair) and the wait ramp (one hue, light to dark) */
  --jog: light-dark(#5f7f3a, #5aa572);
  --max: light-dark(#dc4619, #c4521a);
  /* The late zone, the period before and the hover band (.x-band) are light enough that, where all three overlap,
     each 99% line still holds 3:1 against them (3.02:1 at the least as drawn, Jog Max's on the light card). */
  --late-zone: light-dark(rgb(52 40 18 / .03), rgb(255 250 235 / .027));
  --prev: light-dark(rgb(42 33 25 / .042), rgb(241 233 220 / .042));
  --focus: light-dark(#5f7f3a, #8fae5e);
  --m-fade: 110ms; --m-exit: 130ms; --m-move: 200ms; --m-morph: 320ms;
  --e-settle: cubic-bezier(.2, .8, .2, 1); --e-leave: cubic-bezier(.4, 0, 1, 1); --e-pop: cubic-bezier(.3, 1.32, .52, 1);
  --pad: 18px;
  --gap: 20px;
  --gutter: 40px;
  --top-h: 104px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body { color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 20px; font-optical-sizing: auto; font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100vh; }
body.locked { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: light-dark(rgb(95 127 58 / .22), rgb(143 174 94 / .26)); }
html { scrollbar-color: light-dark(#a68a60, #6b5848) transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
[hidden] { display: none !important; }

/* the ground: admin's still sand bed (a coarse and a fine grain tile) and the paper tooth, fixed */
.sand { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--coarse, none) 0 0 / 310px 310px, var(--grit, none) 0 0 / 256px 256px, var(--ground); }
.sand::after { content: ""; position: absolute; inset: 0; opacity: .16; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.13  0 0 0 0 0.1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sand::after { opacity: .5; mix-blend-mode: soft-light; } }
:root[data-theme="dark"] .sand::after { opacity: .5; mix-blend-mode: soft-light; }

.shell { max-width: 1520px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 1700px) { .shell { max-width: 1720px; } }
@media (max-width: 1023px) { :root { --gutter: 24px; } }
@media (max-width: 719px) { :root { --gutter: 16px; --pad: 14px; --gap: 14px; --top-h: 100px; } }

/* the header and the toolbar under it: one sticky band, glass once the page scrolls under it */
.top { position: sticky; top: 0; z-index: 20; transition: background-color var(--m-move) var(--e-settle), box-shadow var(--m-move) var(--e-settle); }
.top.scrolled { background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8); box-shadow: 0 1px 0 var(--glass-hairline); }
.top-in { height: 56px; display: flex; align-items: center; gap: 16px; }
.word { display: inline-flex; align-items: baseline; gap: 9px; text-decoration: none; border-radius: 6px; flex: none; }
.word .j { font-family: var(--serif); font-size: 26px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; }
.word .ws { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: inset 0 1px 0 var(--rim), 0 1px 1.5px var(--shade-near); font-size: 13px; font-weight: 560; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.pill .dot.up { background: var(--up); box-shadow: none; }
.pill .dot.part { background: var(--part); box-shadow: 0 0 0 3px color-mix(in oklch, var(--part) 22%, transparent); }
.pill .dot.down { background: var(--down); box-shadow: 0 0 0 3px light-dark(rgb(196 72 52 / .12), rgb(232 120 98 / .14)); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.read { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.read .age { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; min-width: 10ch; }
.health { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.health.ok { background: var(--up); } .health.warn { background: var(--part); } .health.bad { background: var(--down); }
.health.stale { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.health.ping { animation: ping 1200ms var(--e-settle) 1; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 light-dark(rgb(90 135 59 / .45), rgb(143 174 94 / .45)); } 100% { box-shadow: 0 0 0 8px transparent; } }
.zone-chip { height: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px 0 7px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: inset 0 1px 0 var(--rim), 0 1px 1.5px var(--shade-near); font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--ink-2); cursor: pointer; }
.zone-chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.zone-chip:hover { color: var(--ink); border-color: var(--ink-3); }
/* The bar: its island's row (the filter, the time chip, Compare; web/src/status/islands.tsx) and a row for its chips
   and the covers line, both held from the first paint, so the island drawing into them moves nothing. Below 1024 px
   the covers line is hidden, so the second row is held only while the link holds a filter (index.html's head). */
.bar { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 6px; padding-block: 6px; }
.bar-row { display: flex; align-items: center; min-height: 38px; min-width: 0; }
.bar-row > * { flex: 1 1 auto; min-width: 0; }
.bar-row2 { display: flex; align-items: center; gap: 8px; min-height: 30px; min-width: 0; }
.bar-row2 .chips:not(:has(.jt-chip)) { display: none; }
@media (max-width: 1023px) { .bar-row2:not(:has(.jt-chip)) { display: none; } :root[data-filtered] .bar-row2 { display: flex; } }
@media (pointer: coarse) { .bar-row { min-height: 44px; } }

/* segmented controls (admin's .dt-seg and window picker .av-seg) */
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); flex: none; }
.seg button { min-height: 24px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: .01em; cursor: pointer; transition: color var(--m-fade) ease, background-color var(--m-fade) ease; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--thumb); color: var(--ink); box-shadow: inset 0 1px 0 var(--rim), 0 0 0 1px var(--line-2), 0 1px 2px var(--shade-near); }
.seg.icons button { width: 30px; padding: 0; display: grid; place-items: center; }
.seg.icons svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.seg.wide { padding: 3px; border-radius: 11px; }
.seg.wide button { min-height: 26px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.seg.wide button[aria-pressed="true"] { background: light-dark(rgb(255 255 255 / .86), rgb(255 250 235 / .1)); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.seg.small button { min-height: 24px; padding: 0 9px; font-size: 12px; font-weight: 500; }

/* tools and Linear-style chips (admin #8176) */
.tool { height: 30px; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); box-shadow: inset 0 1px 0 var(--rim), 0 1px 1.5px var(--shade-near); font-size: 13px; color: var(--ink-2); flex: none; }
.tool { gap: 7px; padding: 0 10px; font-weight: 500; cursor: pointer; transition: border-color var(--m-fade) ease, color var(--m-fade) ease, background-color var(--m-fade) ease; }
.tool:hover { border-color: var(--ink-3); color: var(--ink); }
.tool svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; }
.tool[aria-pressed="true"] { color: var(--ink); background: var(--thumb); }
.tool[aria-pressed="true"] svg { stroke: var(--ink); }
.tool[aria-pressed="false"] { color: var(--ink-3); box-shadow: none; background: transparent; }
.tool:disabled { opacity: .45; cursor: default; }
.rdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.rdot.jog { background: var(--jog); } .rdot.max { background: var(--max); }
.covers { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 1023px) { .covers { display: none; } }
.covers b { font-weight: 500; color: var(--ink-2); }
.noscript-note:empty { display: none; }

/* menus: liquid glass over the page */
.menu { position: fixed; z-index: 40; min-width: 210px; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 5px; border-radius: 14px; font-size: 13px;
  background: radial-gradient(140% 70% at 50% -30%, var(--glass-sheen), transparent), light-dark(rgb(252 249 243 / .84), rgb(34 27 22 / .84));
  -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 .5px var(--glass-hairline), 0 2px 6px -2px var(--shade-near), 0 24px 48px -20px var(--shade);
  animation: drop var(--m-move) var(--e-pop); transform-origin: top left; }
.menu.closing { animation: undrop var(--m-exit) var(--e-leave) forwards; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.965); } }
@keyframes undrop { to { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu .mh { padding: 6px 9px 4px 39px; font-size: 11px; font-weight: 560; letter-spacing: .02em; color: var(--ink-3); }
.menu button { width: 100%; height: 30px; display: grid; grid-template-columns: 22px minmax(0, 1fr) 14px; align-items: center; gap: 8px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; text-align: left; cursor: pointer; color: var(--ink); }
.menu button:hover, .menu button:focus-visible { background: var(--hover); outline: none; }
.menu button .ic { display: grid; place-items: center; }
.menu button .ck { width: 14px; height: 14px; stroke: var(--ink); stroke-width: 1.6; fill: none; opacity: 0; }
.menu button[aria-checked="true"] .ck { opacity: 1; }
.menu button[aria-disabled="true"] { color: var(--ink-3); }
.menu .note { padding: 2px 9px 6px 39px; font-size: 12px; color: var(--ink-3); }
.menu .sep { height: 1px; margin: 4px 6px; background: var(--line); }

/* overview: the state beside the range's figures */
.overview { margin-top: 12px; display: grid; grid-template-columns: calc(var(--pad) + var(--rail)) minmax(0, 1fr); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); overflow: hidden; }
.state-tile { display: grid; grid-template-rows: minmax(96px, 1fr) auto; grid-template-columns: minmax(0, 1fr); border-right: 1px solid var(--line); min-width: 0; overflow: hidden; }
.state-tile .art { position: relative; overflow: hidden; background: #a7b4c4; }
.state-tile .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 62%; display: block; transition: filter 1600ms cubic-bezier(.2, .7, .2, 1); }
.state-tile .art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -1px 0 light-dark(rgb(52 40 18 / .12), rgb(8 5 3 / .5)); }
.state-tile.drained .art img { filter: grayscale(.85) contrast(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .state-tile:not(.drained) .art img { filter: brightness(.82) contrast(1.05) saturate(.95); } }
:root[data-theme="dark"] .state-tile:not(.drained) .art img { filter: brightness(.82) contrast(1.05) saturate(.95); }
.state-body { height: 4px; padding: 0; background: var(--ink-3); }
.state-tile[data-state="up"] .state-body { background: var(--up); } .state-tile[data-state="part"] .state-body { background: var(--part); } .state-tile[data-state="down"] .state-body { background: var(--down); }
.state-tile .state-sub { display: none; }
.state-sub { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.state-sub .seg-t { white-space: normal; }
.state-sub .muted { color: var(--ink-3); }

/* the figure row: hairline-separated tiles, never boxes */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-width: 0; }
.kpi { position: relative; padding: 14px var(--pad) 12px; border-left: 1px solid var(--line); min-width: 0; container-type: inline-size; }
.kpi:first-child { border-left: 0; }
.kpi .lab { font-size: 13px; font-weight: 500; letter-spacing: -0.003em; color: var(--ink-3); display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; min-height: 20px; }
.kpi .lab .tipm { text-decoration: underline dotted color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: help; }
.kpi .fig { margin-top: 6px; font-family: var(--mono); font-weight: 400; font-size: min(clamp(1.5rem, 1.2rem + .9vw, 1.875rem), calc((100cqi / var(--fig-chars, 9) - .5px) / .58)); line-height: 1.1; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi .fig .u { color: var(--ink-3); }
.kpi .fig .ge { color: var(--ink-3); }
.kpi .fig .dp { margin: 0 -0.2em; }
.kpi .at { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.kpi .delta { margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--ink-3); min-height: 32px; }
.kpi .delta b { margin-right: 5px; }
.kpi .delta b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.kpi .delta .none { display: none; }
.kpi .delta .better { color: var(--green); } .kpi .delta .worse { color: var(--red); } .kpi .delta .flat { color: var(--ink-2); }
.kpi { display: flex; flex-direction: column; }
.kpi .spark { margin-top: auto; padding-top: 10px; height: 32px; }
.kpi .spark svg { display: block; overflow: visible; }
.kpi.scrub .fig { color: var(--ink-2); }
@media (max-width: 1239px) { .overview { grid-template-columns: minmax(0, 1fr); } .state-tile { grid-template-columns: minmax(0, 1fr); grid-template-rows: 64px 4px; border-right: 0; } .state-tile .art img { object-position: 64% 58%; } }
@media (max-width: 899px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi:last-child { grid-column: span 2; } .kpi:nth-child(odd) { border-left: 0; } .kpi { border-top: 1px solid var(--line); } .kpi:nth-child(-n+2) { border-top: 0; } }


/* scope chips in a pane's head: solid when applied, dashed when not applied here */
.scopes { display: inline-flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.scope { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 500; letter-spacing: .01em; color: var(--ink-3); white-space: nowrap; }
.scope.on { padding: 0 2px; border: 1px solid transparent; color: var(--ink-3); font-size: 12px; transform: translateY(2px); }
.scope.off { border: 1px dashed color-mix(in srgb, var(--ink-3) 75%, transparent); background: transparent; cursor: help; }
.scope .rdot { width: 6px; height: 6px; }

/* the grid of chart panes, rows of equal height */
.grid { margin-top: var(--gap); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.span-12 { grid-column: span 12; } .span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; }
@media (max-width: 899px) { .span-7, .span-5 { grid-column: span 12; } }
.card { min-width: 0; display: flex; }
.pane { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-card), 0 0 0 1px var(--line); padding: 0 var(--pad) 12px; display: flex; flex-direction: column; }
.ph { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 0 calc(-1 * var(--pad)); padding: 0 10px 0 var(--pad); }
.ph h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.1875rem; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; }
.ph .seg { margin-left: auto; }
.expand { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; flex: none; transition: background-color 120ms ease, color 120ms ease; }
.ph .seg + .expand { margin-left: 0; }
.expand:hover { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.expand svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* the legend: keys with live values, the "at" readout flush right */
.legend { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; min-height: 22px; margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.legend .k { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.legend .k i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; flex: none; align-self: center; }
.legend .k i.line { height: 2px; border-radius: 1px; }
.legend .k i.band { height: 10px; background: var(--prev) !important; box-shadow: inset 0 0 0 1px light-dark(rgb(42 33 25 / .12), rgb(241 233 220 / .14)); }
.legend .k i.cap { background: linear-gradient(var(--c) 0 3px, var(--surface) 0 4px, var(--up) 0); }
.legend .k i.maybe { background: var(--hatch) !important; height: 10px; }
.legend .k i.hollow { background: transparent !important; box-shadow: inset 0 0 0 1px var(--line-2); }
.legend .k i.dotk { width: 8px; height: 8px; border-radius: 50%; }
.legend .k i.ring { width: 8px; height: 8px; border-radius: 50%; background: transparent !important; box-shadow: inset 0 0 0 2px var(--c); }
.legend .k b { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; min-width: 6ch; }
.legend .k.muted { color: var(--ink-3); font-size: 12px; }
.legend .at { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.legend .at b { font-family: var(--mono); font-weight: 500; color: var(--ink-2); }
.reading { min-height: 32px; margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--ink-2); }
.reading b { font-weight: 600; color: var(--ink); }
.reading .mono { font-size: 12px; }
/* A resting chart's note: one short muted label, its definition in its title. */
.reading .hint { color: var(--ink-3); cursor: help; }
.plot { position: relative; margin-top: 10px; flex: 1; }
.plot svg, .speed svg, .lanes svg, .kpi svg { display: block; overflow: visible; -webkit-user-select: none; user-select: none; touch-action: pan-y; }
.plot svg:focus-visible, .lanes svg:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
svg text { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
svg text.words { font-family: var(--sans); font-size: 12px; letter-spacing: 0; }
svg text.name { font-family: var(--sans); font-size: 13px; font-weight: 500; fill: var(--ink); letter-spacing: -0.005em; }
svg text.sub { font-family: var(--sans); font-size: 12px; fill: var(--ink-3); letter-spacing: 0; }
svg text.fig { font-size: 13px; font-weight: 500; fill: var(--ink); }
svg text.fig.measuring { font-size: 11px; font-weight: 400; fill: var(--ink-2); }
svg text.d { font-size: 11px; font-weight: 500; }
svg text.rail-fig { font-size: 20px; font-weight: 400; fill: var(--ink); letter-spacing: -0.03em; }
svg text.strong { fill: var(--ink-2); font-weight: 500; }
svg text.halo, svg text.fig.halo { paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.g-line { stroke: var(--grid); shape-rendering: crispEdges; }
.g-floor { stroke: var(--line-2); shape-rendering: crispEdges; }
.g-rule { stroke: var(--ink-3); shape-rendering: crispEdges; opacity: .7; }
.g-stub { stroke: var(--line-2); shape-rendering: crispEdges; }
.x-hair { stroke: var(--ink-3); stroke-opacity: .55; shape-rendering: crispEdges; pointer-events: none; }
.x-band { fill: var(--ink-3); fill-opacity: .05; pointer-events: none; }
.late-zone { fill: var(--late-zone); }
.unread { fill: url(#hatch); }
/* A figure withheld or not yet there: one muted line in the card's flow, never a frame, so nothing reads as broken; a
   card that holds only that line takes its own height. */
.notice { margin: 12px 0 4px; font-size: 13px; color: var(--ink-3); }
.card:has(.notice) { align-self: start; }
/* A withheld figure in a tile or the dock: the words, muted and small, in place of a dash. */
.nofig { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }

/* uptime: a heat strip a part; losses at true height, a tick above any cell that lost anything */
.u-row .up { fill: var(--up); } .u-row .lost-part { fill: var(--part); } .u-row .lost-down { fill: var(--down); } .u-row .lost-unm { fill: var(--unm); }
.u-row .none { fill: none; stroke: var(--line); }
.u-tick { fill: var(--ink-3); }
.u-tick.down { fill: var(--down); }
.u-sel { fill: none; stroke: var(--ink); stroke-width: 1.5; pointer-events: none; }
.u-name { cursor: default; }
.u-name.more { cursor: pointer; }

/* waits */
.wash { fill: var(--w95); fill-opacity: .12; }
.prev-band { fill: var(--prev); }
/* Every wait and speed line is 2 px; a line's casing (.w-case) is drawn 6, 2 px a side. */
.w-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
/* A wait line's casing: the colour of what the chart sits on (the card's surface, the full-screen sheet's ground). */
.w-case { fill: none; stroke: var(--chart-bg, var(--surface)); stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.sheet { --chart-bg: var(--bg); }

/* disruptions: a lane a part on the range's axis, then the newest rows */
.lanes { margin-top: 12px; }
.lanes .trk { fill: var(--line); }
.lanes .evm { cursor: pointer; }
.events { margin: 0 calc(-1 * var(--pad)) 0; flex: 1; }
.events table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.events th { text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-3); padding: 8px 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; font-family: var(--sans); }
.events th:first-child, .events td:first-child { padding-left: var(--pad); }
.events th:last-child, .events td:last-child { padding-right: var(--pad); text-align: right; }
.events td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: baseline; color: var(--ink-2); }
.events tbody tr { cursor: pointer; transition: background-color 120ms ease; }
.events tbody tr:hover { background: var(--row-hover); }
.events tbody tr:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; background: var(--hover); }
.events tbody tr.hl { background: var(--hover); }
.events td.when { font-family: var(--mono); font-size: 12px; color: var(--ink); white-space: nowrap; }
.events td.when span { color: var(--ink-3); }
.events td.what b { font-weight: 560; color: var(--ink); }
.events td.dur { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.events td.dur.open { color: var(--ink); font-weight: 500; }
.events .k { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 8px; vertical-align: 0; }
.events .k.maybe { background: var(--hatch) !important; }
/* A run with no known loss reads quieter than one with: its words and figures a step lighter, never removed. */
.events tr.unsure td, .events tr.unsure td.when, .events tr.unsure td.what b, .events tr.unsure .mb .mv { color: var(--ink-3); }
.events tr.unsure td.what b { font-weight: 400; }
.events .quiet { padding: 32px var(--pad); text-align: center; color: var(--ink-3); }
.events .more { margin: 10px var(--pad) 2px; border: 0; background: none; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.events .more svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.events .more:hover { color: var(--ink); }

/* runner speed: a row a size, both runners' daily medians in a sparkline */
.speed { margin: 10px calc(-1 * var(--pad)) 0; flex: 1; }
.speed table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.speed col.c-size { width: 84px; } .speed col.c-fig { width: 72px; } .speed col.c-chg { width: 116px; }
.metric-row { margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.metric-row::-webkit-scrollbar { display: none; }
.speed th { text-align: right; font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--ink-3); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.speed th:first-child { text-align: left; padding-left: var(--pad); }
.speed th.sp { text-align: left; }
.speed td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-family: var(--mono); font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; vertical-align: middle; }
.speed tr:last-child td { border-bottom: 0; }
.speed td:first-child { text-align: left; padding-left: var(--pad); font-family: var(--sans); font-weight: 560; }
.speed td.sc { width: 44%; padding-right: var(--pad); }
.speed td .rdot, .speed th .rdot { margin-right: 6px; vertical-align: 1px; }
.speed td.blank { color: var(--ink-3); }
.speed td.chg { font-size: 12px; color: var(--ink-2); }
.speed td.chg.none { color: var(--ink-3); font-family: var(--sans); }
.band { fill-opacity: .14; }

/* tooltip: admin's glass tip; it lives in the open sheet when there is one, so it stacks above it */
.tip { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; transform: translate(var(--x, 0), var(--y, 0)); min-width: 168px; max-width: min(520px, 100vw - 16px); padding: 8px 11px; border-radius: 10px; font-size: 12px; line-height: 1.45; color: var(--ink);
  background: linear-gradient(180deg, var(--glass-sheen), transparent 38%), color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 .5px var(--glass-hairline), 0 2px 6px -2px var(--shade-near), 0 28px 60px -30px var(--shade);
  opacity: 0; transition: opacity var(--m-exit) var(--e-leave); }
.tip.on { opacity: 1; transform: translate(var(--x, 0), var(--y, 0)); transition: opacity var(--m-fade) ease-out; }
.tip .th { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; margin-bottom: 4px; }
.tip .th .mono { font-weight: 500; color: var(--ink-2); }
.tip .tr { display: flex; justify-content: space-between; gap: 16px; }
.tip .tr > span:first-child { color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.tip .tr > span:last-child { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.tip .tr i { width: 12px; height: 4px; border-radius: 2px; display: inline-block; }
.tip .tr i.dot { width: 8px; height: 8px; border-radius: 50%; }
.tip .ts { color: var(--ink-3); margin-top: 4px; }
.tip .tr.dim > span { color: var(--ink-3); font-weight: 400; }
.tip .tsep { height: 1px; margin: 6px 0 4px; background: var(--glass-hairline); }
.tip em.was { font-style: normal; font-weight: 400; color: var(--ink-3); margin-left: 6px; }

/* the sheet: a chart full screen, or a day minute by minute */
.sheet { inset: 24px; width: min(1680px, 100vw - 48px); height: calc(100dvh - 48px); max-width: none; max-height: none; margin: auto; padding: 18px 20px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); color: var(--ink); box-shadow: 0 24px 80px rgb(20 12 4 / .28); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in var(--m-move) var(--e-pop); }
.sheet.closing { animation: sheet-out var(--m-exit) var(--e-leave) forwards; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(12px); } }
.sheet::backdrop { background: light-dark(rgb(40 30 12 / .55), rgb(8 5 3 / .72)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.015em; }
.sheet-head .step { display: inline-flex; gap: 4px; margin-left: 6px; }
.sheet-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.sheet-body .plot, .sheet-body .speed { flex: 1; }
@media (max-width: 719px) { .sheet { inset: 0; width: 100vw; height: 100dvh; border-radius: 0; } }

/* a day, minute by minute, beside the same day the week before */
.drill { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; padding-top: 16px; }
.drill .dv { font-family: var(--mono); font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; }
.drill .dv .u { color: var(--ink-3); }
.drill .dm { margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.drill .evs { margin-top: 16px; display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 2px 10px; align-items: baseline; font-size: 12px; line-height: 16px; color: var(--ink-2); }
.drill .evs i { width: 8px; height: 8px; border-radius: 2px; grid-row: span 2; align-self: start; margin-top: 4px; }
.drill .evs .t { font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.drill .evs .t + span { margin-bottom: 8px; }
.drill .grids { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.drill .gcap { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.drill .gcap b { font-weight: 600; color: var(--ink-2); }
.mgrid { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 6px; }
.mgrid .h { font-family: var(--mono); font-size: 11px; line-height: 12px; height: 12px; color: var(--ink-3); text-align: right; }
.mgrid .hsep { grid-column: 1 / -1; height: 4px; }
.mrow { display: grid; grid-template-columns: repeat(60, minmax(0, 1fr)); column-gap: 1px; height: 12px; margin-bottom: 1px; }
.mrow i { position: relative; background: var(--up); border-radius: 1px; }
.mrow i:nth-child(15n + 1):not(:first-child) { margin-left: 2px; }
/* A minute that lost anything: its share at true height from the top, and a 3 px corner notch so a small
   loss still shows without being drawn larger than it was. */
.mrow i.part { background: linear-gradient(var(--part) 0 var(--s), var(--up) 0); }
.mrow i.part::after, .mrow i.maybe::after { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 3px; background: var(--part); border-radius: 1px 0 1px 0; }
.mrow i.maybe::after { background: var(--hatch-line); }
.mrow i.maybe { background: var(--hatch); }
.mrow i.down { background: var(--down); } .mrow i.unm { background: var(--unm); }
.mrow i.none, .mrow i.pend { background: color-mix(in oklab, var(--ink) 5%, var(--surface)); }
.mrow i.hot { box-shadow: 0 0 0 1px var(--surface), 0 0 0 2px var(--ink); z-index: 1; }
.mrow i.in-ev { box-shadow: inset 0 0 0 1px var(--ink); }
.mgrid .mx { grid-column: 2; position: relative; height: 16px; margin-top: 4px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.mgrid .mx span { position: absolute; top: 0; }
@media (max-width: 1023px) { .drill { grid-template-columns: minmax(0, 1fr); } .drill .grids { grid-template-columns: minmax(0, 1fr); } }

footer.foot { margin: 48px 0 0; padding: 18px 0 36px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
footer.foot a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
footer.foot a:hover { color: var(--ink); }
footer.foot cite { font-style: italic; font-family: var(--serif); color: var(--ink-2); }

/* loading: panes hold their place hatched, never empty axes; first paint sweeps the strips in once */
.loading .pane .plot, .loading .pane .speed, .loading .pane .events, .loading .kpis { min-height: 180px; background: repeating-linear-gradient(45deg, transparent 0 6px, color-mix(in srgb, var(--line-2) 40%, transparent) 6px 7.5px); border-radius: 8px; }
.loading .kpis { min-height: 128px; }
.intro .u-row { animation: sweep 520ms var(--e-settle) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.swap { animation: swap var(--m-move) var(--e-settle); }
@keyframes swap { from { opacity: .4; } }

@media (max-width: 719px) {
  .top-in { gap: 10px; }
  .word .ws { display: none; }
  .read .lbl { display: none; }
  .pill { height: 28px; font-size: 12px; }
  .ph { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .ph .seg.small { order: 3; flex: 1 0 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .ph .seg.small button { flex: none; }
  .seg-t { white-space: normal !important; }
  .legend .at { margin-left: 0; width: 100%; }
}
@media (forced-colors: active) {
  .plot svg, .speed svg, .lanes svg, .kpi svg, .legend i, .rdot, .pill .dot, .health, .mrow i, .events .k { forced-color-adjust: none; }
  .seg button[aria-pressed="true"], .tool[aria-pressed="true"] { outline: 2px solid Highlight; }
  .sand { display: none; }
}
@media print {
  :root { color-scheme: light; }
  .top, .expand, .seg, .tip, .menu, .sand, .events .more { display: none !important; }
  .pane, .overview { box-shadow: none; border: 1px solid #ccc; }
  .grid { display: block; } .card { break-inside: avoid; margin-top: 12px; }
  .events { max-height: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}

/* GitHub's own reports, as context: a quiet band under the bar while one stands, in the page's neutral ink and
   never a state colour, and the last 30 days' list at the foot of Disruptions */
.gh { margin: 2px 0 10px; display: flex; gap: 10px; align-items: flex-start; padding: 9px 14px 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font-size: 13px; line-height: 18px; }
.gh[hidden], .gh-recent[hidden] { display: none; }
.gh-i { width: 15px; height: 15px; flex: none; margin-top: 1.5px; fill: none; stroke: var(--ink-3); stroke-width: 1.4; stroke-linecap: round; }
.gh-body { min-width: 0; flex: 1; }
.gh-line { margin: 0; color: var(--ink-2); }
.gh-line + .gh-line, .gh-rest { margin-top: 4px; }
.gh-what { color: var(--ink); overflow-wrap: anywhere; }
.gh-what q { font-weight: 500; }
.gh-bit { white-space: nowrap; }
.gh a, .gh-recent a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.gh a:hover, .gh-recent a:hover { color: var(--ink); text-decoration-color: currentColor; }
.gh-more { margin-top: 2px; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 12px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.gh-more:hover { color: var(--ink); }
.gh-recent { margin: 10px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); border-top: 1px solid var(--line); }
.gh-recent summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 0 2px; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.gh-recent summary::-webkit-details-marker { display: none; }
.gh-recent summary::after { content: "▸"; font-size: 11px; color: var(--ink-3); }
.gh-recent details[open] summary::after { content: "▾"; }
.gh-recent summary:hover { color: var(--ink); }
.gh-rows { list-style: none; margin: 8px 0 0; padding: 0; }
.gh-row { display: grid; grid-template-columns: 196px minmax(0, 1fr) minmax(0, auto); gap: 2px 14px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; color: var(--ink-2); }
.gh-when { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.gh-t { overflow-wrap: anywhere; }
.gh-t q { color: var(--ink); }
.gh-parts { font-size: 12px; color: var(--ink-3); }
.gh-foot { margin: 8px 0 2px; font-size: 12px; line-height: 17px; color: var(--ink-3); }
@media (max-width: 719px) {
  .gh { padding: 8px 12px 8px 10px; }
  .gh-bit { white-space: normal; }
  .gh-row { grid-template-columns: minmax(0, 1fr); }
}

/* the ongoing loss, said where it's seen: under the uptime rows and as its own line on a phone */
.ongoing { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.ongoing i { width: 8px; height: 8px; border-radius: 50%; background: var(--part); align-self: center; flex: none; }
.ongoing i.down { background: var(--down); }
.ongoing b { font-weight: 560; color: var(--ink); }
.pill .dot.lossy { background: var(--part); box-shadow: none; }
svg text.share-late { fill: var(--ochre-text); }
.u-lane.part { fill: var(--part); } .u-lane.down { fill: var(--down); } .u-lane.unm { fill: var(--unm); } .u-lane.maybe { stroke: none; }
.u-col { fill: none; stroke: var(--ink-2); stroke-width: 1; pointer-events: none; shape-rendering: crispEdges; }
.since { fill: var(--ink-3); font-family: var(--sans); font-size: 11px; }
@media (max-width: 719px) {
  .top-in { flex-wrap: wrap; height: auto; padding-top: 10px; row-gap: 8px; }
  .pill { order: 3; flex: 1 0 100%; white-space: normal; height: auto; min-height: 30px; padding: 5px 12px; }
  .speed td.sc { display: none; }
  .speed tr.spark-row td { display: table-cell; padding-top: 0; }
}

/* KPI chips on a row of their own, so every figure sits on one baseline */
.kpi .lab { flex-wrap: nowrap; white-space: nowrap; }
.kpi .chiprow { display: flex; gap: 4px; min-height: 20px; margin-top: 4px; overflow: hidden; }
@media (max-width: 719px) {
  .top { padding-bottom: 4px; }
  .zone-chip span { display: none; } .zone-chip { padding: 0 6px; }
  #theme button:not([aria-pressed="true"]) { display: none; }
  .ph h2 { white-space: normal; font-size: 1.0625rem; }
  .ph { flex-wrap: nowrap; }
  .sheet-head { flex-wrap: wrap; }
  .sheet-head #sheet-close { margin-left: auto; }
}
.metric-row .seg { flex-wrap: nowrap; } .metric-row .seg button { white-space: nowrap; flex: none; }
@media (max-width: 719px) { .speed th.sp { display: none; } .speed col:last-child { width: 0; } }

html { scrollbar-gutter: stable; }
@media (hover: none) { .expand { width: 40px; height: 40px; } .seg.icons button { min-height: 36px; } }

/* ---- round 3 ------------------------------------------------------------------------------------------ */
/* The rail: names and figures left of each time chart, as wide as the painting's column. */
:root { --rail: 242px; }
@media (max-width: 1139px) { :root { --rail: 196px; } }
/* The sand on the page itself, so it reaches every edge, the scrollbar's gutter and a full-page capture. */
html { background: var(--coarse, none) 0 0 / 310px 310px, var(--grit, none) 0 0 / 256px 256px, var(--ground); }
.sand { background: none; }
/* The read dot shows only when the figures aren't fresh. */
.health.ok { display: none; }
/* Night menus: the page behind is dimmed, never read through. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .menu { -webkit-backdrop-filter: blur(24px) saturate(1.5) brightness(.5); backdrop-filter: blur(24px) saturate(1.5) brightness(.5); } }
:root[data-theme="dark"] .menu { -webkit-backdrop-filter: blur(24px) saturate(1.5) brightness(.5); backdrop-filter: blur(24px) saturate(1.5) brightness(.5); }
/* Before anything was kept: admin's quiet wash and a dotted edge, not the "not read" hatch. */
.unread { fill: light-dark(rgb(52 40 18 / .05), rgb(255 250 235 / .06)); }
.unread-edge { stroke: var(--ink-3); stroke-dasharray: 1 3; stroke-opacity: .7; }
/* The synced column: admin's band, a wash and a faint ring. */
.u-col { fill: var(--ink-3); fill-opacity: .1; stroke: color-mix(in srgb, var(--ink) 16%, transparent); }
/* "No share recorded": honey hatching everywhere it appears. */
.mrow { height: var(--mh, 12px); }
.mgrid .h { height: var(--mh, 12px); line-height: var(--mh, 12px); }
.zone-chip { height: 30px; }
.kpi .meta, .reading, .legend, .events td { text-wrap: pretty; }
/* A figure leads to its chart. */
.kpi[data-go] { cursor: pointer; transition: background-color var(--m-fade) ease; }
.kpi[data-go]:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.kpi:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.card.ring .pane { box-shadow: var(--shadow-card), 0 0 0 2px var(--focus); transition: box-shadow var(--m-move) var(--e-settle); }
/* KPI tile: label, figure, one meta line (scope chips and the change), the spark; no reserved rows. */
.kpi .chiprow { display: none; }
.kpi .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; min-height: 20px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.kpi .meta .delta { display: inline-block; margin: 0; min-height: 0; }
.kpi .meta .vs { display: block; }
/* Empty readouts take no room. */
.reading:empty { display: none; }
.sheet-body .reading:empty { display: block; }
.speed { flex: none; }

/* The painting: a column beside the figures down to 1140, a narrow strip to 900, a spine below that.
   Never a banner across the page. */
@media (min-width: 1140px) and (max-width: 1239px) {
  .overview { grid-template-columns: calc(var(--pad) + var(--rail)) minmax(0, 1fr); }
  .state-tile { grid-template-rows: minmax(96px, 1fr) auto; border-right: 1px solid var(--line); }
  .state-tile .art img { object-position: 66% 62%; }
}
@media (max-width: 1139px) {
  .overview { grid-template-columns: 96px minmax(0, 1fr); }
  .state-tile { grid-template-rows: minmax(0, 1fr) 4px; border-right: 1px solid var(--line); }
  .state-tile .art img { object-position: 62% 60%; }
}
@media (max-width: 899px) { .overview { grid-template-columns: 64px minmax(0, 1fr); } }
@media (max-width: 599px) { .overview { grid-template-columns: 40px minmax(0, 1fr); } }

/* Tablet: the figures 3 + 2. */
@media (min-width: 600px) and (max-width: 899px) {
  .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .kpis > .kpi:nth-child(n) { grid-column: span 2; border-left: 1px solid var(--line); border-top: 0; }
  .kpis > .kpi:nth-child(n+4) { grid-column: span 3; border-top: 1px solid var(--line); }
  .kpis > .kpi:nth-child(1), .kpis > .kpi:nth-child(4) { border-left: 0; }
}
/* Phone: the figures as a list, as in Stocks: the label and its note, the spark, the figure. */
@media (max-width: 599px) {
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .kpis > .kpi:nth-child(n) { display: grid; grid-template-columns: minmax(0, 1fr) 52px 104px; grid-template-areas: "lab spark fig" "meta spark fig"; column-gap: 10px; align-items: center; padding: 10px var(--pad); grid-column: auto; border-left: 0; border-top: 1px solid var(--line); }
  .kpis > .kpi:first-child { border-top: 0; }
  .kpi .lab { grid-area: lab; white-space: normal; min-height: 0; }
  .kpi .meta { grid-area: meta; margin-top: 2px; min-height: 0; }
  .kpi .meta .vs { display: inline; margin-left: 4px; }
  .kpi .spark { grid-area: spark; margin: 0; padding: 0; height: 22px; }
  .kpi .fig { grid-area: fig; margin: 0; justify-self: end; font-size: 1.375rem; }
}
/* Phone and short screens: only the controls stay; the header scrolls away. */
@media (max-width: 719px), (max-height: 500px) and (max-width: 1023px) {
  .top { display: contents; }
  .bar { position: sticky; top: 0; z-index: 20; transition: background-color var(--m-move) var(--e-settle), box-shadow var(--m-move) var(--e-settle); }
  .bar.scrolled { background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8); box-shadow: 0 1px 0 var(--glass-hairline); }
}
@media (max-width: 719px) { #c-events .scopes { display: none; } }
/* final judge */
.reading, .reading .mono, .drill .dm, .drill .evs { font-size: 13px; line-height: 18px; }
.kpi .lab .short { display: none; }
@container (max-width: 160px) { .kpi .lab .long { display: none; } .kpi .lab .short { display: inline; } }
/* Under the cursor a figure is the hour's, so the range's change beside it steps back. */
.kpi.scrub .meta .delta { visibility: hidden; }
/* Disruptions' head: its title, order and full screen on one line; scope chips on their own line beneath. */
#c-events .ph { flex-wrap: wrap; row-gap: 0; }
#c-events .ph .scopes:has(.scope + .scope) { order: 3; flex: 1 0 100%; padding-bottom: 10px; }
#c-events .ph:has(.scopes .scope + .scope) { padding-top: 9px; row-gap: 6px; }
#c-events .ph .scopes:empty { display: none; }
#c-events .ph #ev-sort { margin-left: auto; }
@media (max-width: 719px) { #c-events .ph { flex-wrap: wrap; } #c-events .ph h2 { white-space: nowrap; } }
/* round 4 */
.sheet-body .plot { flex: 1 1 0; min-height: 0; overflow: hidden; }
/* The previous period: two quiet dashed lines, never a filled hill. */
/* A day opened on a disruption: the minutes outside it step back, no lattice of outlines. */
.mgrid.has-ev .mrow i:not(.in-ev) { opacity: .32; }
.mrow i.in-ev { box-shadow: none; }
/* A failed first read: no loading hatch, the panes quiet under the pill's words. */
html.failed .pane .plot, html.failed .pane .speed, html.failed .pane .events, html.failed .kpis { background: none; animation: none; }
html.failed .grid, html.failed .kpis { opacity: .4; }
/* The wait ramps follow the entity: every runner is ink; a picked runner wears its own. One per runner and one for
   every runner, validated as ordinal ramps against both panes in each theme: each 99% line clears 3:1 against the
   bare pane, and a line over a shaded zone (later than 2 minutes, the period before) is cased in the pane's colour
   (.w-case), so what touches it is the pane's own colour. The big chart wears the picked runner's; the small charts their own. */
:root {
  --all-50: light-dark(#3a2f27, #e6dccd); --all-95: light-dark(#76685b, #9c8e7f); --all-99: light-dark(#918374, #776a5e);
  --jog-50: light-dark(#344a1d, #b3cf86); --jog-95: light-dark(#597833, #84a05c); --jog-99: light-dark(#788c59, #60724b);
  --max-50: light-dark(#7f2a0c, #eea07c); --max-95: light-dark(#c43c12, #d5612d); --max-99: light-dark(#c76c44, #a45736);
  --w50: var(--all-50); --w95: var(--all-95); --w99: var(--all-99);
}
:root[data-runner="jog"] { --w50: var(--jog-50); --w95: var(--jog-95); --w99: var(--jog-99); }
:root[data-runner="max"] { --w50: var(--max-50); --w95: var(--max-95); --w99: var(--max-99); }
/* Phone and touch (round 4). */
.why { display: none; }
/* A tapped or clicked chart, row or point keeps no browser ring; the keyboard keeps the green one. */
svg:focus:not(:focus-visible), svg [tabindex]:focus:not(:focus-visible) { outline: none; }
.mrow { touch-action: pan-y; }
.sheet-body > .legend, .sheet-body > .reading { flex: none; }
.sheet-body .events { margin: 0; }
.sheet-body .speed { overflow-x: auto; }
@media (max-width: 719px) {
  .why { display: block; order: 4; flex: 1 0 100%; margin: -2px 0 2px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
  .why:empty { display: none; }
  .pill { font-size: 13px; }
  .sheet-head { position: relative; padding-right: 84px; }
  .sheet-head #sheet-close { position: absolute; top: 0; right: 0; margin: 0; }
  /* Nothing changes height under a finger: one-line notes, fixed rows, readings with their room kept. */
  .kpi .meta { flex-wrap: wrap; white-space: normal; overflow: visible; }
  .kpi .meta .vs { display: none; }
  .kpi .fig { position: relative; }
  .kpi .fig .at { position: absolute; right: 0; top: 100%; margin: 2px 0 0; white-space: nowrap; }
  .pane .reading { min-height: 54px; }
}
@media (max-width: 399px) { .speed .chg { display: none; } .speed col.c-chg { width: 0; } }
.sheet-body .speed { margin: 10px 0 0; }
/* The scrub stamp gets a line of its own under the figure, so it never runs past the tile. */
/* The tile's moment line keeps its 14 px whether or not it has words, so reading a chart never moves the tiles. */
@media (min-width: 600px) { .kpi .fig .at { display: block; min-height: 14px; margin: 2px 0 0; font-size: 11px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
/* Round 5: a custom range and drag to zoom. */
.brush { fill: var(--ink); fill-opacity: .07; stroke: var(--ink-2); stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 3 2; pointer-events: none; }
.brush-lab { font-family: var(--mono); font-size: 11px; fill: var(--ink); pointer-events: none; }
.plot svg { cursor: default; }
@media (hover: hover) and (pointer: fine) { #p-uptime svg, #p-waits svg { cursor: crosshair; } }
/* Narrow phones: a change keeps its figure whole; its word steps back before the figure is cut. */
@media (max-width: 399px) { .kpi .meta .delta { font-size: 0; } .kpi .meta .delta b { font-size: 12px; margin: 0; } .kpi .meta .scope { flex: none; } }
/* Round 6 (judge). */
@media (min-width: 600px) { .kpi { display: grid; grid-template-rows: auto auto auto 1fr; } .kpi .spark { align-self: end; } }
.kpis:has(.kpi.scrub) .kpi:not(.scrub) { opacity: .45; transition: opacity 160ms ease-out; }
#sheet-title:focus { outline: none; }
@media (max-width: 719px) {
  .pill { width: auto; flex: 0 1 auto; align-self: center; }
  .ph .seg.small { flex: 0 0 auto; margin-left: auto; }
  .ph { flex-wrap: wrap; }
  .ph .scopes:has(.scope + .scope) { order: 4; flex-basis: 100%; padding-bottom: 8px; }
  .ph h2 { white-space: nowrap; }
}
.events .mag { width: 96px; padding-left: 4px; padding-right: 4px; vertical-align: middle; }
.events .mb { display: flex; align-items: center; height: 12px; }
.events .mb i { display: block; height: 8px; }
.events .mt i:first-child { border-radius: 2px 0 0 2px; } .events .mt i:last-child { border-radius: 0 2px 2px 0; }
@media (max-width: 719px) { .events .mag { width: 40px; } }
.sheet-head .tool.copy { margin-left: auto; height: 30px; }
.sheet-head .tool.copy svg.tick, .sheet-head .tool.copy.ok svg.link { display: none; }
.sheet-head .tool.copy.ok svg.tick { display: block; stroke: var(--up); stroke-width: 1.8; }
.sheet-head .tool.copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.sheet-head .tool.copy + .expand { margin-left: 6px; }
@media (max-width: 719px) { .sheet-head .tool.copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .sheet-head .tool.copy { position: absolute; top: 0; right: 40px; width: 34px; padding: 0; justify-content: center; } }
@media (max-width: 399px) { .kpi .meta .delta.note { font-size: 12px; } }
@media (max-width: 719px) { .sheet-head .tool.copy.failed { width: auto; padding: 0 10px; } .sheet-head .tool.copy.failed span { position: static; width: auto; height: auto; clip-path: none; font-size: 13px; } }
/* The one-column phone tile has a fixed height, so nothing moves under a finger; its note ends in an ellipsis. */
@media (max-width: 599px) { .kpis > .kpi:nth-child(n) { height: auto; min-height: 64px; } }
@media (max-width: 719px) { .kpi .meta .delta.note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 100%; } }
/* Round 7 (judge). Below 1240 the run's bar sits under its words; on a phone its date stacks over its time. */
.events .mb-in { display: none; }
@media (max-width: 1239px) { .events .mag { display: none; } .events .mb-in { display: block; margin-top: 4px; } .events .mb-in .mb { height: 8px; } }
@media (max-width: 719px) { .events td.when span { display: block; } .kpi .meta .delta.note { white-space: normal; overflow: visible; } }
@media (max-width: 719px) { .events th:first-child { white-space: normal; } }
@media (max-width: 379px) { #r-uptime, #r-waits { min-height: 76px; } }
/* Round 8. */
svg text.spark-y { font-size: 10px; fill: var(--ink-3); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
/* Runner speed's rows: faint day lines, the newest values in the gutter in their runner's colour, the unit in the head. */
.g-day { stroke: var(--grid); stroke-dasharray: 1 3; shape-rendering: crispEdges; }
svg text.spark-end { font-size: 11px; font-weight: 500; fill: var(--c, var(--ink-2)); }
.speed th.sp .sp-u { color: var(--ink-3); font-weight: 400; }
/* Round 9. */
/* The phone's figure row: a narrower spine, the short labels, and no solid chip echoing the bar's filters (a
   dashed one, what a figure can't follow, stays). */
@media (max-width: 599px) {
  .overview { grid-template-columns: 24px minmax(0, 1fr); }
  .kpi .lab .long { display: none; } .kpi .lab .short { display: inline; }
  .kpi .meta .scope.on:not(.when) { display: none; }
}
/* Words in the sans, figures in the mono, as admin sets them. */
.kpi .delta b.flat, .speed td.chg, .events td.dur.open { font-family: var(--sans); }
.kpi .delta b.flat { font-weight: 500; letter-spacing: 0; }
.speed td.chg b { font-family: var(--mono); }
svg text.d.words { font-family: var(--sans); font-size: 12px; }
/* The phone's time-to-start legend: smaller, and no time words at rest (the chip says them). */
@media (max-width: 719px) { #l-waits { font-size: 12px; } #l-waits .at.rest { display: none; } }
svg rect.rail-band { fill: var(--prev); stroke: light-dark(rgb(42 33 25 / .12), rgb(241 233 220 / .14)); }
/* The metric tabs fade at the card's edge while there are more to scroll to. */
@media (max-width: 599px) { .metric-row:not(.end) { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); } }
/* On a phone a figure's note says its first words; the rest is in its tip. */
/* A tile's sub-line shows its first words; the rest is in its title, dotted, at every width. */
.kpi .meta .delta .more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kpi .meta .delta.note { cursor: help; text-decoration: underline dotted color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.speed p.ph-chg { display: none; margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
.speed p.ph-chg b { font-family: var(--mono); font-weight: 500; color: var(--ink-2); }
@media (max-width: 399px) { .speed p.ph-chg { display: block; } }
.events th.mag { white-space: nowrap; vertical-align: bottom; }
.events th.mag .mag-h { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.events th.mag svg.mag-scale { display: block; margin-top: 2px; color: var(--line-2); overflow: visible; }
.events th.mag svg.mag-scale text { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
/* Round 10. */
/* The nines meters say their scale: 90% and 99% in the figures' face. */
svg text.size-l { fill: var(--ink-2); }
/* 900 to 1239 px: Disruptions keeps one line a run, its bar in its own column (both cards are full width at every
   width now). */
@media (min-width: 900px) and (max-width: 1239px) {
  .events td.when span { display: inline; } .events .mag { display: table-cell; } .events .mb-in { display: none; }
}
/* A slice of Starting jobs names the part, then the slice in the quieter ink. */
svg text tspan.nm-2 { fill: var(--ink-3); font-weight: 400; }
/* Words beside a figure are set in the sans. */
svg text tspan.w, .w { font-family: var(--sans); letter-spacing: 0; }
/* No change to give at rest: one note in the legend in place of a column of dashes. */
.legend .cmp-note { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.legend .cmp-note + .at { margin-left: 0; }
/* Phone Runner speed: one rule a size, the change between the figures and the spark, figures on the content edge. */
@media (max-width: 719px) {
  .speed tr[data-v] td { border-bottom: 0; padding-bottom: 2px; }
  .speed tr.spark-row td { padding-right: var(--pad); padding-bottom: 10px; }
  .speed td.chg, .speed th.chg { padding-right: var(--pad); }
}
@media (max-width: 399px) {
  .speed tr[data-v] > td:nth-last-child(3), .speed thead th:nth-last-child(3) { padding-right: var(--pad); }
}
.speed .ph-c { display: none; }
@media (max-width: 399px) {
  .speed .ph-c { display: block; margin-top: 1px; font-family: var(--sans); font-size: 12px; line-height: 16px; color: var(--ink-3); letter-spacing: 0; }
  .speed .ph-c b { font-family: var(--mono); font-weight: 500; color: var(--ink-2); }
  .speed tr.spark-row td { padding-top: 4px; padding-bottom: 8px; }
}
/* Phone Disruptions head: title, then the order, then full screen last, as every card has it; the first column
   says only the zone (the date stacks in its cell). */
@media (max-width: 719px) {
  #c-events .ph #ev-sort { margin-left: auto; }
  #c-events .ph .expand { order: 9; margin-left: 0; }
  .events th .began { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* Figures' scrub stamps are words and times: the sans, with figures in step. */
.kpi .fig .at, .kpi .at { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0; }
/* "no comparison" keeps its reason in its title, at every width. */
.legend .cmp-note .cmp-why { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.legend .cmp-note { cursor: help; text-decoration: underline dotted color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
/* Round 11. */
/* The sticky bar's glass is nearly opaque, so the text scrolled under it never reads through (as admin's sidebar). */
.top.scrolled, .bar.scrolled { background: color-mix(in srgb, var(--ground) 94%, transparent); }
@media (max-width: 719px) {
  /* The phone sheet's head: Copy and Close, two 40 px targets 8 px apart, both above the rule. */
  .sheet-head { padding-right: 96px; min-height: 40px; }
  .sheet-head h2 { font-size: 1rem; }
  .sheet-head .tool.copy { position: absolute; top: 0; right: 48px; width: 40px; height: 40px; padding: 0; justify-content: center; }
  .sheet-head #sheet-close { width: 40px; height: 40px; }
  /* A sheet's own segmented control scrolls inside the head, never the sheet sideways. */
  #sheet-step:has([data-m]) { flex: 1 1 100%; min-width: 0; margin-left: 0; }
  #sheet-step:has([data-m]) .seg { flex: 1 1 100%; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  #sheet-step:has([data-m]) .seg::-webkit-scrollbar { display: none; }
  #sheet-step:has([data-m]) .seg button { white-space: nowrap; flex: none; }
}
/* A unit after a mono figure: the sans, its thin space with it (set by the page). */
.un { font-family: var(--sans); letter-spacing: 0; font-variant-numeric: normal; }
.read .age { font-family: var(--sans); letter-spacing: 0; }
/* A tip ended with its view goes at once, never fading over figures that changed under it. */
.tip.now { transition: none !important; }
/* Round 12. */
/* The panel menu sits over figures: a .92 tint under the same blur. */
#menu { background: radial-gradient(140% 70% at 50% -30%, var(--glass-sheen), transparent), light-dark(rgb(252 249 243 / .92), rgb(34 27 22 / .92)); }
@media (max-width: 719px) {
  /* The phone sheet's head keeps its 40 px buttons 3 px clear of the rule. */
  .sheet-head { min-height: 44px; }
  /* Full-screen Time to start says its window in the chip, so no resting "7 d" line. */
}
/* Runner speed: a runner with no week-on-week figure is said once, beside the legend's time. */
.legend .wow-note { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.legend .wow-note + .at { margin-left: 0; }
@media (max-width: 719px) { .legend .wow-note { margin-left: 0; width: 100%; white-space: normal; } }
/* A panel's menu, left of its full-screen button: the same square, three dots. */
.ph .pm { margin-left: auto; }
.ph .pm + .expand, .ph .seg + .pm { margin-left: 0; }
.expand.pm svg circle { fill: currentColor; stroke: none; }
.expand.pm[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.menu svg.mi { width: 15px; height: 15px; fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.menu .note:last-child { padding-top: 6px; max-width: 230px; }
.menu .lf-h { padding: 6px 8px; max-width: 300px; font-size: 12px; color: var(--ink-2); }
.menu .link-f { display: block; width: min(320px, calc(100vw - 40px)); height: 32px; margin: 2px 4px 4px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); color: var(--ink); font: 12px var(--mono); }
.menu .link-f:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
@media (pointer: coarse), (hover: none) { #menu button { height: 44px; } }
@media (max-width: 719px) { #c-events .ph .pm { order: 9; margin-left: 0; } #c-events .ph #ev-sort + .pm { margin-left: 0; } }
@media print { .pm, #sheet-csv { display: none !important; } }
/* The full-screen view's Download CSV, beside its Copy link. */
.sheet-head .tool.copy.csv { margin-left: 0; }
.sheet-head .tool.copy.csv[hidden] { display: none; }
@media (max-width: 719px) {
  .sheet-head { padding-right: 144px; }
  .sheet-head .tool.copy.csv { right: 96px; }
}
/* Under 380 px, Disruptions puts Newest and Largest under its title. */
@media (max-width: 379px) {
  #c-events .ph h2 { flex: 1 1 auto; }
  #c-events .ph #ev-sort { order: 10; flex: 0 0 100%; margin: 6px 0 0; }
}
/* 900 to 1239 px: Disruptions' words take what they need (at most 56ch) and the bar's column takes the rest as its
   track, so each run's bar starts just after the longest words, never across the card. */
@media (min-width: 900px) and (max-width: 1239px) {
  .events th:first-child, .events td.when, .events td.dur, .events th:last-child { width: 1%; }
  .events th:nth-child(2) { width: 56ch; }
  .events th.mag, .events td.mag { width: auto; padding-left: 16px; }
}
/* Full-screen Time to start: Jog and Jog Max side by side under the chart (stacked on a phone), and the point's table. */
.w-mult { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 14px; }
@media (max-width: 719px) { .w-mult { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.w-m { min-width: 0; }
.w-m svg { display: block; }
.w-mh { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; min-height: 20px; margin-bottom: 4px; font-size: 12px; color: var(--ink-3); }
.w-mh .nm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.w-mh .f b { font-weight: 500; color: var(--ink-2); }
.w-mh .at { margin-left: auto; }
.w-none { margin: 0; padding: 8px 0 4px; font-size: 13px; color: var(--ink-3); }
.w-tbl table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.w-tbl caption { text-align: left; padding-bottom: 6px; font-size: 12px; color: var(--ink-3); }
.w-tbl caption b { font-weight: 500; color: var(--ink-2); }
.w-tbl th { text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-3); padding: 3px 0; }
.w-tbl thead th { border-bottom: 1px solid var(--line); }
.w-tbl tbody th { color: var(--ink-2); font-size: 13px; }
.w-tbl td { padding: 3px 0 3px 8px; text-align: right; white-space: nowrap; color: var(--ink); }
.w-tbl td.none { color: var(--ink-3); font-size: 12px; text-align: center; white-space: normal; }
.w-tbl thead th:not(:first-child) { text-align: right; padding-left: 8px; }
.w-tbl td.better { color: var(--green); } .w-tbl td.worse { color: var(--red); } .w-tbl td.flat { color: var(--ink-3); }
.w-tbl td.better, .w-tbl td.worse { font-family: var(--mono); }
.w-tbl td.flat { font-family: var(--sans); }
.w-tbl p { margin: 6px 0 0; font-size: 12px; line-height: 16px; color: var(--ink-3); }
@media (max-width: 1139px) { .w-tbl table { font-size: 12px; } .w-tbl td { padding-left: 6px; } }
@media (max-width: 719px) { .w-tbl { margin-top: 12px; } .w-tbl table { font-size: 13px; } }
/* 720 to 1199 px: Runner speed's measures take their own line in the full-screen head, so the title, Copy link,
   Download CSV and Close keep the first line whole and nothing scrolls sideways. */
@media (min-width: 720px) and (max-width: 1199px) {
  .sheet-head:has(#sheet-step [data-m]) { flex-wrap: wrap; row-gap: 8px; }
  #sheet-step:has([data-m]) { order: 5; flex: 1 1 100%; min-width: 0; margin-left: 0; }
  #sheet-step:has([data-m]) .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
}
/* Round 13. */
/* The day sheet's stepper: a 40 x 36 target on touch. */
@media (hover: none), (pointer: coarse) { #sheet-step [data-step] { width: 40px; height: 36px; } }
/* A day has no CSV, so the phone head keeps no room for it, and the title shrinks before the stepper leaves its row. */
@media (max-width: 719px) {
  .sheet-head:has(#sheet-csv[hidden]) { padding-right: 96px; }
  .sheet-head:has(#sheet-step [data-step]) { flex-wrap: wrap; }
  .sheet-head:has(#sheet-step [data-step]) h2 { flex: 1 1 0; min-width: 0; }
  .sheet-head:has(#sheet-step [data-step]) #sheet-scope { order: 5; flex: 1 1 100%; }
  .sheet-head:has(#sheet-step [data-step]) #sheet-step { margin-left: 0; }
}
/* A day with no measured minute: one line, in place of the grids. */
.drill.empty { grid-template-columns: minmax(0, 1fr); }
.d-empty { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.drill .grids .d-empty { padding: 8px 0; border-top: 1px solid var(--line); }
/* Full-screen Time to start stacked (under 1024 px): its table in flow under the chart. */
.w-tbl.flow { margin-top: 12px; max-width: 520px; }
/* The small charts' resting window, "7 d:", leads the figures in the words' ink. */
.w-mh .f.win { color: var(--ink-2); }
/* Disruptions on a card 900 px and wider (by the card's own width), and full screen from a 720 px window: Began, the
   bar's column and Lasted take what they need, Lasted flush right; What takes the rest. The two blocks match. */
.events { container-type: inline-size; container-name: ev; }
@container ev (min-width: 900px) {
  .events table { width: 100%; table-layout: auto; }
  .events th:first-child, .events td.when { width: 1%; white-space: nowrap; }
  .events th:nth-child(2), .events td.what { width: auto; }
  .events th.mag, .events td.mag { display: table-cell; width: 96px; padding-left: 12px; padding-right: 4px; }
  .events .mb-in { display: none; }
  .events th:last-child, .events td.dur { width: 1%; white-space: nowrap; text-align: right; padding-left: 24px; }
}
@media (min-width: 720px) {
  .sheet-body .events table { width: 100%; table-layout: auto; }
  .sheet-body .events th:first-child, .sheet-body .events td.when { width: 1%; white-space: nowrap; }
  .sheet-body .events th:nth-child(2), .sheet-body .events td.what { width: auto; }
  .sheet-body .events th.mag, .sheet-body .events td.mag { display: table-cell; width: 96px; padding-left: 12px; padding-right: 4px; }
  .sheet-body .events .mb-in { display: none; }
  .sheet-body .events th:last-child, .sheet-body .events td.dur { width: 1%; white-space: nowrap; text-align: right; padding-left: 24px; }
}
/* The two small charts' plots line up whichever header wraps. */
.w-mult { align-items: end; }
/* Round 14. */
/* Card heads from 720 px: the scope chips sit beside the title while they fit on one row, else drop as a block to a
   row of their own under it; the menu and full-screen buttons stay pinned at the top right, full screen last.
   Disruptions keeps its own rule (its order control rides the title's line). Phones keep theirs. */
:root { --hb: 30px; }
@media (hover: none) { :root { --hb: 40px; } }
@media (min-width: 720px) {
  .card:not(#c-events) .ph { position: relative; flex-wrap: wrap; align-content: flex-start; row-gap: 6px; padding: 9px calc(18px + 2 * var(--hb)) 9px var(--pad); }
  .card:not(#c-events) .ph h2 { min-height: 30px; display: flex; align-items: center; }
  .card:not(#c-events) .ph .scopes { flex: 0 1 auto; }
  .card:not(#c-events) .ph > .expand { position: absolute; top: calc(24px - var(--hb) / 2); margin: 0; }
  .card:not(#c-events) .ph > .expand.pm { right: calc(18px + var(--hb)); }
  .card:not(#c-events) .ph > .expand:not(.pm) { right: 10px; }
  /* The full-screen head: the same rule, its Copy link, CSV and Close one group pinned at the top right. */
  .sheet-head { position: relative; flex-wrap: wrap; row-gap: 8px; padding-right: var(--acts, 300px); }
  .sheet-head h2 { line-height: 30px; }
  .sheet-head #sheet-scope { flex: 0 1 auto; }
  .sheet-head .sh-acts { position: absolute; top: 0; right: 0; display: flex; align-items: center; gap: 6px; }
  .sheet-head .sh-acts .tool.copy, .sheet-head .sh-acts .tool.copy + .expand, .sheet-head .sh-acts .tool.copy.csv { margin: 0; }
}
@media (max-width: 719px) { .sheet-head .sh-acts { display: contents; } }
/* Compare pressed: a fill 1.2:1 or more off the bar's sand (lighter by day; admin's --surface-2 by night), an ink-3 edge and an ink dot
   before its word; where Compare is only its icon, the dot sits at the icon's top right. */
:root { --pressed: light-dark(#faf5ec, #231b17); }
#compare { position: relative; }
#compare svg { order: 0; } #compare span { order: 2; }
#compare[aria-pressed="true"] { background: var(--pressed); border-color: var(--ink-3); }
#compare[aria-pressed="true"]::after { content: ""; order: 1; width: 6px; height: 6px; margin: 0 -1px; border-radius: 50%; background: var(--ink); flex: none; }
@media (max-width: 899px) { #compare[aria-pressed="true"]::after { position: absolute; top: 4px; right: 4px; margin: 0; } }
/* Disruptions: the minutes a run may have lost in the range, printed beside its bar, the figure "Largest" sorts by. */
.events .mag { width: 1%; white-space: nowrap; }
@container ev (min-width: 900px) { .events th.mag, .events td.mag { width: 1%; } }
@media (min-width: 720px) { .sheet-body .events th.mag, .sheet-body .events td.mag { width: 1%; } }
.events .mb .mv { margin-left: 6px; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--ink-2); white-space: nowrap; }
/* By size full screen: the sheet fits its content, the rows having grown to take the height (sizesChart). */
@media (min-width: 720px) {
  #sheet[data-view="sizes"] { height: fit-content; max-height: calc(100dvh - 48px); }
  #sheet[data-view="sizes"] .sheet-body .plot { flex: none; }
}
/* Runner speed: a dotted stub's key, only when one is drawn. */
.legend .k i.stub { position: relative; width: 20px; height: 8px; background: repeating-linear-gradient(90deg, var(--c) 0 2px, transparent 2px 5px) left center / 14px 1px no-repeat !important; }
.legend .k i.stub::after { content: ""; position: absolute; right: 0; top: 1px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
/* Phone: while a day is read, the change line, and from 400 to 719 px the Week on week column, names that day. */
.speed .ph-c.day, .speed td.chg.day { color: var(--ink-2); font-family: var(--sans); }
.events .mb .mt { display: flex; align-items: center; width: 84px; height: 100%; flex: none; }
/* A narrow table (under 900 px) stacks the figure under its bar, in the bar's column and in the bar under What that
   a phone shows, and the column's head takes two lines, so the column stays as narrow as round 13's and What keeps
   its line. */
@container ev (max-width: 899px) {
  .events td.mag .mb, .events .mb-in .mb { flex-wrap: wrap; height: auto; row-gap: 1px; }
  .events td.mag .mb .mt { height: 12px; }
  .events .mb-in .mb .mt { height: 8px; }
  .events td.mag .mb .mv, .events .mb-in .mb .mv { flex-basis: 100%; margin: 0; font-size: 11px; line-height: 14px; }
  .events th.mag { white-space: normal; }
  .events th.mag .mag-h { width: 96px; white-space: normal; line-height: 15px; }
}
/* The wait ramps' 95% and 99% steps, set so each 99% line holds 3:1 against what lies 4 px off it under the late
   zone, the period before and the hover band all together (with their lighter fills, 3.02:1 at the least as drawn;
   3.8 to 4.3:1 on the bare pane). 95% to 99% is 1.48 to 1.51:1 for every runner; median to 95% is 1.92 (light) and
   2.04 (dark) for every runner, 1.45 and 1.60 for Jog, 1.39 and 1.31 for Jog Max. The medians are unchanged. */
:root {
  --all-95: light-dark(#66594e, #a99989); --all-99: light-dark(#817567, #897b6d);
  --jog-95: light-dark(#496329, #89a55f); --jog-99: light-dark(#6b7d4f, #6f8457);
  --max-95: light-dark(#a7320e, #fb7337); --max-99: light-dark(#b3613c, #be6540);
}
/* The stub key's words wrap under its swatch rather than run past the card on a phone. */
.legend .k.stub-k { white-space: normal; align-items: center; min-width: 0; }
.legend .k.stub-k i.stub { align-self: center; }
.legend .k.stub-k span[title] { cursor: help; text-decoration: underline dotted color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }


/* Started within: the share started within 2 min leads, one linear on-time bar under it (the period before as a
   thin bar when Compare reaches it), and the cuts as a small table, each row lit with its band. */
.ots { display: flex; flex-direction: column; gap: 28px; margin-top: 18px; }
.ots.many { gap: 36px; }
.ot-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ot-who { display: inline-flex; align-items: center; gap: 6px; width: 100%; font-size: 13px; font-weight: 560; color: var(--ink); }
.ot-fig { font-family: var(--mono); font-size: 2rem; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ot-fig .dp { margin: 0 -0.2em; } .ot-fig .u { color: var(--ink-3); }
.ot-cap { font-size: 14px; color: var(--ink-2); }
.ot-was { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.ot-was b { font-family: var(--mono); font-weight: 500; color: var(--ink-2); }
.ot-bar { display: flex; height: 18px; margin-top: 12px; border-radius: 5px; overflow: hidden; background: var(--ot-late); }
.ot-bar.was { height: 6px; margin-top: 5px; border-radius: 3px; opacity: .55; }
.ot-bar i { display: block; height: 100%; flex: none; transition: filter var(--m-fade) ease; }
/* The 1 px seam is taken from the green band's right edge, never from the "later" sliver. */
.ot-bar i:not(.late) { box-shadow: inset -1px 0 0 var(--surface); }
.ot .b1 { background: var(--ot1); } .ot .b2 { background: var(--ot2); } .ot .b3 { background: var(--ot3); } .ot .b4 { background: var(--ot4); } .ot .late { background: var(--ot-late); }
.ot-bar i.lit { filter: brightness(1.08) saturate(1.1); }
.ot-t { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.ot-t th, .ot-t td { padding: 6px 0; text-align: right; font-weight: 400; color: var(--ink-2); }
.ot-t thead th { font-size: 12px; color: var(--ink-3); padding-bottom: 6px; }
.ot-t tbody th { text-align: left; }
.ot-t td { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); width: 7.5em; }
.ot-t .was, .ot-t td.was { color: var(--ink-3); }
.ot-t tr.later th, .ot-t tr.later td:not(.was) { color: var(--ink-2); }
.ot-t tbody tr.lit { background: var(--hover); }
.ot-k { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }
.ot-k.late { box-shadow: inset 0 0 0 1px light-dark(rgb(52 40 18 / .14), rgb(255 250 235 / .12)); }
.sheet .ots.many { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 48px; }

/* The dock: once the figure row has scrolled under the header, its five figures ride under it, small, out of the page's
   flow (fixed), so showing it moves nothing. A fixed-width slot first says what they are for: the range, or the moment
   a chart reads; a figure that doesn't follow the cursor dims, and a figure's dashed scope rides with it. One line at
   every width, sideways on a narrow screen, its cut edge faded. Fixed widths and tabular figures. */
:root { --dock-h: 34px; }
.dock { position: fixed; left: 0; right: 0; top: var(--top-h); z-index: 19; background: color-mix(in oklab, var(--bg) 98%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 1px 0 var(--glass-hairline), inset 0 1px 0 var(--glass-hairline); }
.dock[hidden] { display: none; }
html.docked { scroll-padding-top: calc(var(--top-h) + var(--dock-h) + 16px); }
.dock-in { display: flex; align-items: center; gap: 22px; height: var(--dock-h); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; white-space: nowrap; }
.dock-in::-webkit-scrollbar { display: none; }
@media (max-width: 1239px) { .dock-in { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); } }
.dock .dm { flex: none; width: 17ch; font-family: var(--mono); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.dock .dm.scrub { color: var(--ink); }
.dock .dk { flex: none; display: inline-flex; align-items: baseline; gap: 7px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink-3); font-size: 12px; transition: opacity 160ms ease-out; }
.dock .dk:hover .dl { color: var(--ink-2); }
.dock .dv { min-width: 7ch; font-family: var(--mono); font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.dock .dv .u, .dock .dv .ge { color: var(--ink-3); }
.dock .dv .dp { margin: 0 -0.15em; }
.dock .dsub { font-size: 11px; color: var(--ink-3); }
.dock .dsc { height: 18px; display: inline-flex; align-items: center; padding: 0 5px; border: 1px dashed color-mix(in srgb, var(--ink-3) 75%, transparent); border-radius: 5px; font-size: 11px; color: var(--ink-3); }
.dock:has(.dk.scrub) .dk:not(.scrub) { opacity: .45; }
@media (max-width: 719px) { :root { --dock-h: 32px; } .dock-in { gap: 16px; } .dock .dm { width: 16ch; } }
