/* Moneto bridges page, live front. Built from design/key-screen (version 1, George's pick, 18 November).
   Part 1 is key-screen.css unchanged, part 2 is version 1's own rules unchanged, part 3 adds the states
   the picture does not show, from the same tokens. */

/* ---- Part 1: key-screen.css ---- */
@font-face { font-family:"Manrope"; font-style:normal; font-weight:200 800; font-display:swap;
  src:url(assets/manrope-greek-variable.woff2) format("woff2");
  unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family:"Manrope"; font-style:normal; font-weight:200 800; font-display:swap;
  src:url(assets/manrope-latin-ext-variable.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:"Manrope"; font-style:normal; font-weight:200 800; font-display:swap;
  src:url(assets/manrope-latin-variable.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --font-sans:"Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text:#002877;
  --fg-2:#3D4E6C;
  --sapphire:#234C9E;
  --magenta:#BF1A8A;
  --magenta-bright:#D9249F;
  --magenta-hover:#C42F94;
  --well:#EFF2F8;
  --border:#7798D433;
  --border-strong:#7798D4;
  --field-border:#E4E9F3;
  --sidebar:#BF1A8A08;
  --wash:#BF1A8A0D;
  --warning-border:#BF1A8A33;
  --sapphire-3:#234C9E12;
  --danger-text:#B42318;
  --danger-soft:#FDECEA;
  --danger-border:#F6CBC6;
  --gutter:40px;
}

* { box-sizing:border-box; margin:0; padding:0; }
html, body { height:100%; }
body { font-family:var(--font-sans); font-optical-sizing:auto; font-size:14px; line-height:20px; color:var(--text); background:#FFFFFF; -webkit-font-smoothing:antialiased; }
button { font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
a { color:inherit; text-decoration:none; }
:where(button,a):focus-visible { outline:2px solid var(--magenta); outline-offset:3px; }
::selection { background:#BF1A8A33; color:#002877; }
.num { font-variant-numeric:tabular-nums; }
.ic { width:16px; height:16px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ic.s14 { width:14px; height:14px; }
.ic.s18 { width:18px; height:18px; stroke-width:1.7; }
.file-name { font-size:13px; font-weight:600; color:var(--text); letter-spacing:-.005em; overflow-wrap:anywhere; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Shell: 220px rail, 64px topbar, white canvas */
.shell { height:100vh; display:grid; grid-template-columns:220px minmax(0,1fr); }
.rail { display:flex; flex-direction:column; padding:30px 18px 18px; background:var(--sidebar); border-right:1px solid var(--border); min-height:0; }
.rail-logo { display:flex; align-items:center; min-height:32px; margin:0 12px 40px; }
.rail-logo img { width:146px; height:auto; display:block; }
.rail-nav { display:flex; flex-direction:column; gap:6px; }
.rail-nav a { display:flex; align-items:center; gap:11px; min-height:46px; padding:12px 14px; border-radius:10px; font-size:13px; font-weight:700; line-height:18px; color:var(--magenta); }
.rail-nav a:hover { background:#FFFFFF99; }
.rail-nav a.active { background:#FFFFFF; box-shadow:0 3px 12px #234C9E08; }
.rail-nav a .count { margin-left:auto; font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }
.rail-bottom { margin-top:auto; padding-top:28px; }
.rail-bottom > a { display:flex; gap:10px; align-items:center; padding:10px 8px; font-size:12px; color:var(--fg-2); border-radius:8px; }
.rail-office { display:flex; align-items:center; gap:10px; width:100%; padding:17px 8px; margin-top:14px; border-top:1px solid var(--border); text-align:left; }
.rail-office-avatar { width:34px; height:34px; display:grid; place-items:center; flex-shrink:0; border-radius:0 11px; background:#FFFFFF; color:var(--magenta); font-size:12px; font-weight:700; }
.rail-office-copy { min-width:0; flex:1; }
.rail-office-copy strong { display:block; color:var(--sapphire); font-size:13px; font-weight:700; line-height:18px; }
.rail-office-copy span { display:block; margin-top:2px; font-size:11px; line-height:16px; color:var(--fg-2); }
.rail-office > .ic { color:var(--fg-2); }
.rail-credit { display:flex; justify-content:center; gap:4px; padding-top:8px; font-size:10px; color:var(--fg-2); }
.rail-credit strong { font-weight:700; }

.workspace { display:flex; flex-direction:column; min-width:0; min-height:0; }
.topbar { height:64px; min-height:64px; padding:0 var(--gutter); display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--border); background:#FFFFFF; }
.crumbs { display:flex; align-items:center; gap:10px; font-size:12px; color:var(--fg-2); }
.crumbs .ic { color:var(--magenta); width:14px; height:14px; }
.crumbs span:last-child { color:var(--text); font-weight:500; }
.topbar-right { margin-left:auto; display:flex; align-items:center; gap:17px; font-size:12px; color:var(--fg-2); }
.machine-flag { display:inline-flex; align-items:center; gap:8px; height:30px; padding:0 12px; border-radius:9999px; background:var(--well); color:var(--sapphire); font-weight:600; }
.machine-flag i { width:7px; height:7px; border-radius:50%; background:var(--sapphire); }
.panel { flex:1; min-height:0; overflow:auto; background:#FFFFFF; }
.page { padding:34px var(--gutter) 48px; max-width:1440px; }

/* Page head */
.eyebrow { font-size:12px; line-height:16px; font-weight:600; color:var(--magenta); }
.display { font-size:30px; line-height:36px; font-weight:800; letter-spacing:-.03em; color:var(--sapphire); }
.lede { margin-top:6px; font-size:13px; line-height:18px; color:var(--fg-2); }
.h-section { font-size:18px; line-height:26px; font-weight:700; letter-spacing:-.012em; color:var(--sapphire); }
.h-card { font-size:14px; line-height:20px; font-weight:700; letter-spacing:-.006em; color:var(--sapphire); }
.meta { font-size:12px; line-height:16px; color:var(--fg-2); }
.section-head { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:14px; }
.section-head .meta { white-space:nowrap; }

/* Buttons */
.btn-run { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:39px; padding:0 16px; border-radius:0 12px; background:linear-gradient(-90deg,#BF1A8A 14.57%,#D9249F 81.43%); color:#FFFFFF; font-size:13px; line-height:18px; font-weight:700; letter-spacing:-.02em; white-space:nowrap; flex-shrink:0; }
.btn-run:hover { background:#C42F94; }
.btn-run .ic { width:14px; height:14px; fill:#FFFFFF; stroke:#FFFFFF; stroke-width:1.5; }
.btn-ghost { display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 10px; border-radius:8px; font-size:13px; font-weight:700; color:var(--magenta); white-space:nowrap; }
.btn-ghost:hover { background:var(--wash); }

/* Result chips: written label plus icon, never color alone */
.chip { display:inline-flex; align-items:center; gap:6px; height:22px; padding:0 9px; border-radius:9999px; font-size:12px; line-height:16px; font-weight:600; white-space:nowrap; }
.chip .ic { width:13px; height:13px; stroke-width:2; }
.chip.ok { background:var(--well); color:var(--sapphire); }
.chip.stop { background:var(--wash); color:var(--magenta); box-shadow:inset 0 0 0 1px var(--warning-border); }
.chip.fail { background:var(--danger-soft); color:var(--danger-text); box-shadow:inset 0 0 0 1px var(--danger-border); }
.chip.quiet { background:#FFFFFF; color:var(--fg-2); box-shadow:inset 0 0 0 1px var(--border); }
.chip.off { background:var(--well); color:var(--fg-2); }
.chip.live { background:var(--sapphire); color:#FFFFFF; }

/* Signature summary panel (opposing corners, internal rules) */
.summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:22px 0; border:1px solid var(--border); border-radius:0 20px; background:#FFFFFF; }
.summary-cell { min-width:0; min-height:84px; padding:0 24px; border-right:1px solid var(--border); }
.summary-cell:last-child { border-right:0; }
.summary-label { display:flex; align-items:center; gap:8px; font-size:12px; line-height:18px; font-weight:500; color:var(--fg-2); }
.summary-label .ic { color:var(--magenta); stroke-width:1.7; }
.summary-figure { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 10px; margin:8px 0 3px; color:var(--sapphire); }
.summary-figure strong { font-size:34px; line-height:1.15; font-weight:800; letter-spacing:-.03em; font-variant-numeric:tabular-nums; white-space:nowrap; }
.summary-figure span { font-size:12px; font-weight:500; color:var(--fg-2); white-space:nowrap; }
.summary-note { font-size:12px; line-height:17px; color:var(--fg-2); }
.summary-cell.zero .summary-figure strong { color:var(--sapphire); }

/* Run record */
.run { border:1px solid var(--border); border-radius:0 20px; background:#FFFFFF; }
.run-head { display:flex; align-items:flex-start; gap:16px; padding:22px 24px 18px; }
.run-title { min-width:0; flex:1; }
.run-title-line { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.run-name { font-size:26px; line-height:32px; font-weight:700; letter-spacing:-.03em; color:var(--sapphire); }
.run-sub { margin-top:4px; font-size:13px; line-height:18px; color:var(--fg-2); }
.facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0 24px; padding:14px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.fact { min-width:0; padding-right:16px; }
.fact + .fact { padding-left:16px; border-left:1px solid var(--border); }
.fact dt { font-size:12px; line-height:16px; color:var(--fg-2); }
.fact dd { margin-top:4px; font-size:14px; line-height:20px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; }
.run-body { padding:18px 24px 22px; }
.block-label { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; font-size:12px; line-height:16px; font-weight:600; color:var(--fg-2); }

.files { width:100%; border-collapse:collapse; }
.files th { padding:0 12px 8px 0; text-align:left; font-size:12px; line-height:16px; font-weight:500; color:var(--fg-2); white-space:nowrap; }
.files th.r, .files td.r { text-align:right; padding-right:0; padding-left:12px; }
.files td { padding:11px 12px 11px 0; border-top:1px solid var(--border); font-size:13px; line-height:18px; vertical-align:middle; font-variant-numeric:tabular-nums; }
.files td.kind { color:var(--fg-2); white-space:nowrap; }
.file-cell { display:flex; align-items:center; gap:10px; min-width:0; }
.file-ic { width:30px; height:30px; display:grid; place-items:center; flex-shrink:0; border-radius:8px; background:var(--well); color:var(--sapphire); }

.checks { list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 20px; }
.checks li { display:flex; align-items:flex-start; gap:8px; font-size:13px; line-height:18px; color:var(--text); }
.checks li .ic { margin-top:1px; color:var(--sapphire); stroke-width:2; }
.checks li.bad .ic { color:var(--magenta); }

.note { list-style:none; padding:12px 14px; border-radius:10px; background:var(--well); }
.note li { display:grid; grid-template-columns:44px minmax(0,1fr); gap:10px; font-size:13px; line-height:20px; color:var(--text); }
.note li time { color:var(--fg-2); font-variant-numeric:tabular-nums; font-weight:600; }

.scope { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:12px; line-height:17px; color:var(--fg-2); }
.scope .step { display:inline-flex; align-items:center; gap:6px; font-weight:600; color:var(--sapphire); }
.scope .step.next { color:var(--fg-2); font-weight:500; padding:2px 8px; border:1px dashed var(--border-strong); border-radius:6px; }
.scope .arrow { color:var(--border-strong); }

/* Inset blocks and rows */
.inset { padding:18px 20px; border-radius:0 16px; background:var(--well); }
.box { padding:20px 22px; border:1px solid var(--border); border-radius:12px; background:#FFFFFF; }
.rows { list-style:none; }
.rows li { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid var(--border); font-size:13px; line-height:18px; }
.rows li:first-child { border-top:0; padding-top:0; }
.rows .k { color:var(--fg-2); }
.rows .v { font-weight:700; color:var(--text); text-align:right; font-variant-numeric:tabular-nums; }
.rows .v small { display:block; font-size:12px; font-weight:400; color:var(--fg-2); }

.plain { font-size:13px; line-height:19px; color:var(--text); }
.plain strong { color:var(--sapphire); font-weight:700; }

/* Day strip */
.days { display:flex; gap:6px; }
.day { width:62px; display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 0 9px; border-radius:10px; border:1px solid var(--border); background:#FFFFFF; color:var(--text); }
.day small { font-size:11px; line-height:14px; color:var(--fg-2); }
.day b { font-size:18px; line-height:22px; font-weight:800; letter-spacing:-.02em; color:var(--sapphire); font-variant-numeric:tabular-nums; }
.day i { width:16px; height:3px; margin-top:3px; border-radius:3px; background:var(--sapphire); }
.day.none i { background:var(--field-border); }
.day.none b { color:var(--fg-2); font-weight:600; }
.day.stop { border-color:var(--warning-border); background:var(--wash); }
.day.stop i { background:var(--magenta); }
.day.stop b { color:var(--magenta); }
.day.current { border-color:var(--magenta); box-shadow:0 3px 12px #234C9E08; }
.day-nav { width:30px; display:grid; place-items:center; border-radius:8px; color:var(--magenta); }
.day-nav:hover { background:var(--wash); }

/* Stage track: where a carrier stands on the road */
.track { display:inline-flex; gap:3px; vertical-align:middle; }
.track i { width:14px; height:4px; border-radius:2px; background:var(--field-border); }
.track i.on { background:var(--sapphire); }
.track.wait i { background:var(--warning-border); }

.legend { display:flex; flex-wrap:wrap; gap:8px 10px; align-items:center; }

/* Tighter laptop rhythm, from the same tokens (rail 200px, gutter 28px) */
@media (max-width:1365px) {
  :root { --gutter:28px; }
  .shell { grid-template-columns:200px minmax(0,1fr); }
  .rail { padding-inline:14px; }
  .rail-logo { margin-inline:10px; }
  .rail-logo img { width:140px; }
  .page { padding-top:28px; }
  .summary-cell { padding:0 18px; }
  .summary-figure strong { font-size:30px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition-duration:.01ms !important; animation-duration:.01ms !important; } }

/* ---- Part 2: version 1 ---- */
.run-split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; margin-top:22px; }
.run-foot { margin-top:20px; padding-top:16px; border-top:1px solid var(--border); }
.sched-note { display:flex; gap:8px; align-items:flex-start; margin-top:14px; padding:12px 14px; border-radius:10px; background:var(--well); font-size:13px; line-height:19px; color:var(--text); }
.sched-note .ic { margin-top:2px; color:var(--magenta); }
.rows li .k small { font-weight:400; }
.rows .v, .rows .v small { white-space:nowrap; }
.run-split .checks { grid-template-columns:minmax(0,1fr); }
.block-label .path { display:inline-flex; align-items:center; gap:6px; font-weight:500; }
.chip.wait { background:var(--wash); color:var(--magenta); }
.stop-detail { padding:14px 16px; border:1px solid var(--warning-border); border-radius:10px; background:var(--wash); }
.stop-head { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin-bottom:10px; font-size:13px; }
.stop-head strong { color:var(--sapphire); font-weight:700; }
.stop-note { background:#FFFFFF; }
.foot-scope { max-width:70ch; margin-top:36px; padding-top:18px; border-top:1px solid var(--border); font-size:12px; line-height:18px; color:var(--fg-2); }

.head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.head-copy { min-width:0; }
.v1-grid { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px; margin-top:28px; align-items:start; }
.v1-side { display:flex; flex-direction:column; gap:16px; }
.v1-section { margin-top:44px; }
.ledger { border:1px solid var(--border); border-radius:0 16px; }
.ledger-row { display:grid; grid-template-columns:190px 120px minmax(0,1fr) 190px; gap:16px; align-items:center; padding:16px 22px; border-top:1px solid var(--border); font-size:13px; line-height:18px; }
.ledger-row:first-child { border-top:0; }
.ledger-row .when strong { display:block; color:var(--sapphire); font-weight:700; font-size:14px; }
.ledger-row .when span { font-size:12px; color:var(--fg-2); }
.ledger-row .res { justify-self:end; }
.ledger-row.quiet { color:var(--fg-2); }
.ledger-row.flag { background:#FFFFFF; }
.ledger-row .stop-detail { grid-column:1 / -1; }
.ledger-row.flag .stop-detail .stop-head { display:none; }
.ledger-head { display:grid; grid-template-columns:190px 120px minmax(0,1fr) 190px; gap:16px; padding:12px 22px; background:var(--well); border-radius:0 16px 0 0; font-size:12px; color:var(--fg-2); font-weight:500; }
.ledger-head span:last-child { text-align:right; }
.estate-counts { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.estate-counts .chip b { font-variant-numeric:tabular-nums; font-weight:800; }
.estate { width:100%; border-collapse:collapse; border:1px solid var(--border); }
.estate-wrap { border:1px solid var(--border); border-radius:0 16px; overflow:hidden; }
.estate { border:0; }
.estate th { padding:12px 16px; background:var(--head, var(--well)); text-align:left; font-size:12px; font-weight:500; color:var(--fg-2); white-space:nowrap; }
.estate td { padding:12px 16px; border-top:1px solid var(--border); font-size:13px; line-height:18px; vertical-align:middle; }
.estate td.name { font-weight:700; color:var(--sapphire); }
.estate td.muted { color:var(--fg-2); }
.estate tr.ready td { background:#FFFFFF; }
@media (max-width:1365px) {
  .v1-grid { grid-template-columns:minmax(0,1fr) 300px; gap:20px; }
  .day { width:54px; }
  .ledger-row, .ledger-head { grid-template-columns:170px 90px minmax(0,1fr) 180px; }
}

/* ---- Part 3: live states ---- */
.sprite { position:absolute; width:0; height:0; overflow:hidden; }
.rows li .k .sub { display:block; margin-top:2px; }
[hidden] { display:none !important; }

/* Day strip: a day whose worst result is a refusal, a crash or an unreadable record */
.day.fail { border-color:var(--danger-border); background:var(--danger-soft); }
.day.fail i { background:var(--danger-text); }
.day.fail b { color:var(--danger-text); }
.day-nav[aria-disabled="true"] { opacity:.35; cursor:default; }
.day-nav[aria-disabled="true"]:hover { background:none; }

/* The machine flag when the computer does not answer */
.machine-flag.down { background:var(--wash); color:var(--magenta); }
.machine-flag.down i { background:var(--magenta); }
.machine-flag.unknown { color:var(--fg-2); }
.machine-flag.unknown i { background:var(--fg-2); }

/* Page notice: data on screen is older than the last attempt to read it */
.notice { display:flex; gap:10px; align-items:flex-start; margin-bottom:22px; padding:12px 14px; border:1px solid var(--warning-border); border-radius:10px; background:var(--wash); font-size:13px; line-height:19px; color:var(--text); }
.notice .ic { margin-top:2px; color:var(--magenta); }
.notice strong { color:var(--sapphire); font-weight:700; }

/* Run button states and George's run messages */
.btn-run:disabled { background:var(--well); color:var(--fg-2); cursor:not-allowed; }
.btn-run:disabled .ic { fill:var(--fg-2); stroke:var(--fg-2); }
.btn-run.ghosted { visibility:hidden; }
.run-status { display:flex; gap:8px; align-items:flex-start; margin:0 24px 14px; padding:12px 14px; border-radius:10px; background:var(--well); font-size:13px; line-height:19px; color:var(--text); }
.run-status .ic { margin-top:2px; color:var(--magenta); }
.run-status.attention { border:1px solid var(--warning-border); background:var(--wash); }
.run-status.bad { border:1px solid var(--danger-border); background:var(--danger-soft); color:var(--danger-text); }
.run-status.bad .ic { color:var(--danger-text); }
.run-status strong { font-weight:700; }

/* A run without files: refused, crashed, unreadable or still running */
.no-files { padding:14px 16px; border-radius:10px; background:var(--well); font-size:13px; line-height:19px; color:var(--text); }
.no-files.attention { border:1px solid var(--warning-border); background:var(--wash); }
.no-files.bad { border:1px solid var(--danger-border); background:var(--danger-soft); }
.files td.kind.bad { color:var(--magenta); font-weight:600; }
.file-name.withheld { color:var(--fg-2); font-weight:500; }
.checks li .code { font-weight:700; color:var(--sapphire); }
.checks li .lvl { color:var(--fg-2); white-space:nowrap; }
.checks li.skip .ic { color:var(--fg-2); }
.checks.none { display:block; font-size:13px; color:var(--fg-2); }
.note li time:empty::before { content:""; }

/* Ledger: the day chosen in the strip */
.ledger-row.selected { box-shadow:inset 3px 0 0 var(--magenta); }
.ledger-row .when a:hover strong { text-decoration:underline; text-underline-offset:3px; }
.ledger-empty { padding:16px 22px; font-size:13px; color:var(--fg-2); }

/* Confirm dialog: same box, corners and buttons as the page */
.confirm { margin:auto; width:min(440px, calc(100vw - 48px)); padding:24px; border:1px solid var(--border); border-radius:0 20px; background:#FFFFFF; color:var(--text); box-shadow:0 3px 12px #234C9E08; }
.confirm::backdrop { background:#00287726; }
.confirm h2 { font-size:18px; line-height:26px; font-weight:700; letter-spacing:-.012em; color:var(--sapphire); }
.confirm p { margin-top:8px; font-size:13px; line-height:19px; color:var(--text); }
.confirm-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }

/* Narrow laptop: one column, the day strip under the title, wide tables scroll inside their frame */
@media (max-width:1180px) {
  .head { flex-wrap:wrap; align-items:flex-start; }
  .v1-grid { grid-template-columns:minmax(0,1fr); }
  .v1-side { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .summary { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:22px; }
  .summary-cell:nth-child(2) { border-right:0; }
  .ledger-row, .ledger-head { grid-template-columns:150px 90px minmax(0,1fr) 170px; padding-inline:16px; }
  .estate-wrap { overflow-x:auto; }
}
@media (max-width:900px) {
  .shell { grid-template-columns:minmax(0,1fr); height:auto; }
  .rail { display:none; }
  .panel { overflow:visible; }
  .topbar { flex-wrap:wrap; height:auto; padding-block:12px; }
  .v1-side { grid-template-columns:minmax(0,1fr); }
  .facts { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:12px; }
  .fact:nth-child(3) { padding-left:0; border-left:0; }
  .run-split { grid-template-columns:minmax(0,1fr); }
  .ledger-row, .ledger-head { grid-template-columns:minmax(0,1fr) auto; }
  .ledger-head span:nth-child(2), .ledger-head span:nth-child(3) { display:none; }
  .ledger-row > div:nth-child(2), .ledger-row > div:nth-child(3) { grid-column:1 / -1; }
}

/* ---- Part 4: design review 1 ---- */
/* Until the first answer: one waiting block, no empty frames */
.waiting-block { display:none; }
body.waiting .waiting-block { display:flex; gap:12px; align-items:flex-start; padding:22px 24px; border:1px solid var(--border); border-radius:0 20px; background:#FFFFFF; }
body.waiting .waiting-block .ic { margin-top:2px; color:var(--magenta); }
body.waiting .waiting-block .meta { margin-top:4px; font-size:13px; line-height:19px; }
body.waiting .summary, body.waiting .v1-grid, body.waiting .v1-section, body.waiting .foot-scope { display:none; }

/* «Θέλουν ματιά» above zero is the one number set in magenta */
.summary-cell.look .summary-figure strong { color:var(--magenta); }

/* Run cards stack with the side panels' gap */
#cards { display:flex; flex-direction:column; gap:16px; }

/* Steps a run did not reach stay on the road, muted */
.scope .step.off { color:var(--border-strong); font-weight:500; }

/* Files table: fixed columns, the same place in every state */
.files { table-layout:fixed; }
.files col.c-checks { width:130px; }
.files col.c-size { width:110px; }
.files col.c-rows { width:120px; }
.files td.kind { overflow:hidden; text-overflow:ellipsis; }

/* Checks: the level after a failed check, in plain words */
.checks li.bad .lvl { color:var(--magenta); font-weight:600; }

/* A note without times starts at the left edge */
.note.untimed li { grid-template-columns:minmax(0,1fr); }

/* Banner close button sits at the right, as in the result banner */
.run-status-text { flex:1; min-width:0; }
.run-status .btn-ghost { align-self:center; margin:-6px -6px -6px 0; }

/* Narrow laptop: the carriers table drops «Πορεία» so «Αρχεία» has room */
@media (max-width:1180px) {
  .estate th:nth-child(3), .estate td:nth-child(3) { display:none; }
  .estate td { white-space:normal; }
}

/* A summary figure the page cannot trust reads «Άγνωστο», quieter, in the same height */
.summary-cell.unknown .summary-figure strong { font-size:18px; line-height:39px; font-weight:700; letter-spacing:-.012em; color:var(--fg-2); }

/* ---- Design review 2 ---- */
/* Narrow laptop: the legend sits under the history heading, so the heading stays on one line */
@media (max-width:1180px) {
  .section-head.with-legend { flex-direction:column; align-items:flex-start; gap:10px; }
}
/* A task's last result stays on one line */
.rows li .k .sub { white-space:nowrap; }
/* A scheduled task: name and chip on the first line, its lines under both, the panel's full width */
.rows li.task { flex-wrap:wrap; row-gap:0; }
.rows li.task .task-subs { flex-basis:100%; }
.rows li.task .task-subs .sub { display:block; margin-top:2px; color:var(--fg-2); }
/* A summary note that needs two lines breaks evenly, never one word alone */
.summary-note { text-wrap:balance; }
/* A quiet span («Σαββατοκύριακο 14–15/11») keeps to one line; its row has nothing beside it */
.ledger-row.quiet .when strong { white-space:nowrap; }
