/* =============================================================================
   tap570.css — labs.llc/tap, labs 570 (20 Nov 2026)
   Page-local skin for the packet-capture desk. House chrome (nav, menu, footer)
   stays on site.css. This sheet gives the main column the same typographic
   system as /root/ and /resolver/ v570: serif headlines, DM Sans body, mono
   figures; a sticky live card; one toolbar; chips; and a compact reading that
   stacks cleanly on a phone. Every rule is scoped to body.t570 so other rooms
   are untouched.
   ============================================================================= */

body.t570 {
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --r-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-space: 8px;
  --r-ok: #15803d;
  --r-ok-bg: rgba(21, 128, 61, .1);
  --r-bad: #b42318;
  --r-bad-bg: rgba(180, 35, 24, .08);
  --r-warn: #a16207;
  --r-warn-bg: rgba(161, 98, 7, .1);
  --r-info: #1d4f91;
  --r-info-bg: rgba(29, 79, 145, .1);
  --r-inf: #6d28d9;
  --r-inf-bg: rgba(109, 40, 217, .1);
  --r-card: var(--paper, #fff);
  --r-line: var(--line);
  --r-shadow: 0 10px 30px rgba(30, 38, 43, .06);
  --r-radius: 14px;
}

html[data-dark] body.t570,
html[data-edition="dark"] body.t570 {
  --r-ok: #4ade80;
  --r-ok-bg: rgba(74, 222, 128, .12);
  --r-bad: #f87171;
  --r-bad-bg: rgba(248, 113, 113, .12);
  --r-warn: #fbbf24;
  --r-warn-bg: rgba(251, 191, 36, .12);
  --r-info: #93c5fd;
  --r-info-bg: rgba(147, 197, 253, .12);
  --r-inf: #c4b5fd;
  --r-inf-bg: rgba(196, 181, 253, .12);
  --r-card: var(--paper, #12161d);
  --r-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}

body.t570 #main .d1,
body.t570 #main .d2,
body.t570 #main h1,
body.t570 #main h2,
body.t570 #main .eng-fact__v,
body.t570 #main .ph__h {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.02em;
}
body.t570 #main .d1 { font-size: clamp(2.15rem, 5vw, 3.55rem); line-height: 1.08; font-weight: 400; }
body.t570 #main .d2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; font-weight: 400; }
body.t570 #main .lede { font-family: var(--r-sans); max-width: 62ch; }
body.t570 #main .eyebrow { letter-spacing: .16em; }
body.t570 #main :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.t570 #main .cw-fig b,
body.t570 #main .trow__fig,
body.t570 #main .trow__rank,
body.t570 #main .trow__sub { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- hero + live card ---------- */
body.t570 .t-hero__in {
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 1080px) {
  body.t570 .t-hero__in {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 332px);
    column-gap: clamp(28px, 4vw, 64px);
  }
  body.t570 .livecard { position: sticky; top: calc(var(--nav-h, 72px) + 16px); }
}
body.t570 .t-hero__copy .hero__act { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .7rem; }

body.t570 .livecard {
  background: var(--r-card);
  border: 1px solid color-mix(in srgb, var(--r-ok) 28%, var(--r-line));
  border-radius: var(--r-radius);
  padding: 18px 18px 16px;
  box-shadow: var(--r-shadow);
}
body.t570 .livecard[data-tone="warn"] { border-color: color-mix(in srgb, var(--r-warn) 40%, var(--r-line)); }
body.t570 .livecard[data-tone="bad"] { border-color: color-mix(in srgb, var(--r-bad) 40%, var(--r-line)); }
body.t570 .livecard[data-tone="idle"] { border-color: var(--r-line); }
body.t570 .livecard[data-state="loading"] { opacity: .8; }
body.t570 .lc__k {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--r-ok);
}
body.t570 .livecard[data-tone="warn"] .lc__k { color: var(--r-warn); }
body.t570 .livecard[data-tone="bad"] .lc__k { color: var(--r-bad); }
body.t570 .livecard[data-tone="idle"] .lc__k { color: var(--ink-55); }
body.t570 .lc__k i {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 4px var(--r-ok-bg); display: inline-block;
}
body.t570 .livecard[data-tone="warn"] .lc__k i { box-shadow: 0 0 0 4px var(--r-warn-bg); }
body.t570 .livecard[data-tone="bad"] .lc__k i { box-shadow: 0 0 0 4px var(--r-bad-bg); }
body.t570 .livecard[data-tone="idle"] .lc__k i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent); }
body.t570 .lc__big { margin: 14px 0 8px; font-size: 13px; color: var(--ink-77); }
body.t570 .lc__big b {
  display: block; margin-bottom: 4px;
  font: 400 1.85rem/1.1 var(--serif); color: var(--ink); word-break: break-all;
}
body.t570 .lc__rows {
  list-style: none; margin: 0 0 10px; padding: 0;
  font: 12.5px/1.9 var(--mono); color: var(--ink-77);
}
body.t570 .lc__rows li {
  display: flex; align-items: baseline; gap: 8px;
  border-bottom: 1px dashed var(--r-line);
}
body.t570 .lc__rows b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
body.t570 .lc__note { margin: 10px 0 0; font-family: var(--r-sans); font-size: 11.5px; line-height: 1.45; color: var(--ink-55); }
body.t570 .lc__btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 8px; padding: 10px 12px;
  border: 1px solid var(--r-line); border-radius: 10px;
  background: transparent; color: var(--ink);
  font: 600 13px var(--r-sans); text-decoration: none; cursor: pointer;
}
body.t570 .lc__btn:hover { border-color: var(--ink); }
body.t570 .lc__btn + .lc__btn { margin-top: 6px; }

body.t570 .t-load {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px; min-height: 26px;
  font: 12.5px/1.4 var(--mono); color: var(--ink-55);
}
body.t570 .t-load[hidden] { display: none; }
body.t570 .t-load::before {
  content: ""; width: 120px; height: 3px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, var(--r-line)));
  animation: t-load 1.1s ease-in-out infinite;
}
body.t570 .t-load.is-done::before { display: none; animation: none; }
@keyframes t-load { 50% { opacity: .35; } }

body.t570 .t-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 12px 14px;
  margin: 1.5rem 0 0;
  padding: 14px 16px;
  background: var(--r-card);
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius);
}
body.t570 .t-filter { flex: 1 1 16rem; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
body.t570 .t-lab {
  font: 700 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-55);
}
body.t570 .t-filter input {
  width: 100%; border: 1px solid var(--r-line); background: transparent;
  border-radius: 10px; padding: 10px 12px; font: 15px/1.3 var(--r-sans); color: var(--ink);
}
body.t570 .t-filter input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
body.t570 .t-go {
  appearance: none; border: 0; background: var(--ink); color: var(--paper, #fff);
  border-radius: 10px; padding: 10px 16px; min-height: 42px;
  font: 600 14px var(--r-sans); cursor: pointer;
}
body.t570 .t-go:hover { opacity: .9; }
body.t570 .t-go--ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--r-line);
}
body.t570 .t-chips {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 12px 0 0;
}
body.t570 .t-chip, body.t570 .pfx {
  appearance: none; border: 1px solid var(--r-line); background: var(--r-card);
  color: var(--ink); border-radius: 999px; padding: 5px 10px;
  font: 600 12px/1.2 var(--mono); cursor: pointer;
}
body.t570 .t-chip:hover, body.t570 .pfx:hover { border-color: var(--ink); }
body.t570 .chip {
  display: inline-flex; align-items: center; gap: 4px;
  font: 700 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 7px; border-radius: 6px; white-space: nowrap; border: 1px solid transparent;
}
body.t570 .chip--ok { color: var(--r-ok); background: var(--r-ok-bg); }
body.t570 .chip--bad { color: var(--r-bad); background: var(--r-bad-bg); }
body.t570 .chip--warn { color: var(--r-warn); background: var(--r-warn-bg); }
body.t570 .chip--info { color: var(--r-info); background: var(--r-info-bg); }
body.t570 .chip--type { color: var(--r-inf); background: var(--r-inf-bg); }

body.t570 .t-glance {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 10px 16px; margin: 0;
}
body.t570 .t-fig { display: flex; flex-direction: column; gap: 2px; }
body.t570 .t-fig span { font: 700 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-55); }
body.t570 .t-fig b { font: 400 1.25rem/1.2 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body.t570 .t-fig small { font: 12px/1.35 var(--r-sans); color: var(--ink-55); }

body.t570 .t-empty { padding: 28px 16px; text-align: center; color: var(--ink-77); }
body.t570 .t-empty h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 8px; color: var(--ink); }
body.t570 .t-empty p { margin: 0 auto; max-width: 46ch; color: var(--ink-55); font-size: 14px; line-height: 1.5; }
body.t570 .t-err {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 10px;
  border-left: 3px solid var(--r-bad); background: var(--r-bad-bg);
  font-size: 14px; line-height: 1.5; color: var(--ink);
}
body.t570 a.t-link {
  color: inherit; text-decoration: none; border-bottom: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent);
}
body.t570 a.t-link:hover { border-bottom-style: solid; color: var(--accent); }
body.t570 .t-src {
  font: 700 9px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-55); margin-left: .35rem;
}
body.t570 .t-compare {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 12px; margin-top: 4px;
}
body.t570 .t-side {
  border: 1px solid var(--r-line); border-radius: 12px; padding: 12px 14px;
  background: color-mix(in srgb, var(--ink) 2%, var(--r-card));
}
body.t570 .t-side__h {
  margin: 0 0 8px; font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
body.t570 .t-side p { margin: 0 0 4px; font: 12.5px/1.45 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
body.t570 .t-verdict {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 10px;
  border-left: 3px solid var(--r-info); background: var(--r-info-bg);
  font-size: 14px; line-height: 1.5;
}
body.t570 .t-stamp { margin-top: 1.4rem; font: 12px/1.5 var(--mono); color: var(--ink-55); }
body.t570 .method-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.6rem 2rem; margin-top: 1.6rem;
}
body.t570 .m-h, body.t570 .mn-h3 {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 .45rem; font-family: var(--mono);
}
body.t570 .m-d { margin: 0; font-size: .92rem; line-height: 1.65; color: var(--ink-77); }
body.t570 #method code, body.t570 #main code { font-family: var(--mono); font-size: .9em; }

body.t570 .eng-fact {
  border-radius: 12px;
  background: var(--r-card);
  box-shadow: none;
}
body.t570 .eng-fact__v { font-size: 1.85rem; }
body.t570 .rpt-nav {
  background: var(--r-card);
  border-radius: var(--r-radius);
  box-shadow: var(--r-shadow);
}
body.t570 .console {
  border-radius: var(--r-radius);
  background: var(--r-card);
}
html[data-dark] body.t570 .trow__bar { background: rgba(255,255,255,.07); }

@media (max-width: 720px) {
  body.t570 .t-toolbar { padding: 12px; }
  body.t570 .tbl--tk .trow,
  body.t570 .tbl--conv .trow,
  body.t570 .tbl--port .trow,
  body.t570 .tbl--dns .trow {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 12px 10px 14px;
    border-bottom: 1px solid var(--r-line);
    gap: .25rem .8rem;
  }
  body.t570 .trow__rank { display: none; }
  body.t570 .tbl--tk .trow__kinds { display: flex; grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  body.t570 .t-load::before { animation: none; }
}

/* Original TAP desk rules, scoped, plus the print report. */

body.t570 .vh{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
body.t570 code{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:.92em; }
body.t570 .lede code{ padding:.05em .35em; border-radius:4px; border:1px solid var(--line); color:var(--ink-77); }

/* while a file is over the window */
body.t570.is-dragging .dz{ border-color: var(--accent); background: rgba(30,38,43,.03); }
body.t570.is-dragging #dropzone{ box-shadow: 0 0 0 2px var(--accent) inset; }

/* the drop zone */
body.t570 .dz{
    display:flex; flex-direction:column; align-items:center; text-align:center;
    gap:.55rem; padding:2rem 1.2rem;
    border:1.5px dashed var(--line); border-radius:12px;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
body.t570 .dz__icon{ color: var(--ink-55); }
body.t570 .dz__lead{ margin:0; font-size:1rem; font-weight:600; color:var(--ink); max-width:44ch; }
body.t570 .dz__lead code{ font-weight:500; }
body.t570 .dz__sub{ margin:0; font-size:.86rem; color:var(--ink-55); }
body.t570 .dz__act{ margin-top:.5rem; }
body.t570 .dz__note,
body.t570 #dz-note{ margin:.2rem 0 0; }

/* a running/parse state that replaces the empty zone */
body.t570 .dz--busy{ border-style:solid; }
body.t570 .prog{ width:100%; max-width:34rem; }
body.t570 .prog__bar{ height:8px; border-radius:999px; background:var(--line-soft); overflow:hidden; }
body.t570 .prog__fill{ height:100%; width:0; background:var(--accent); border-radius:999px; transition:width .12s linear; }
body.t570 .prog__txt{ margin:.5rem 0 0; font-size:.82rem; color:var(--ink-55); font-variant-numeric:tabular-nums; }
body.t570 .dz--error .dz__lead{ color: var(--taken); }

body.t570 .rpt-block{ margin-top:1.1rem; }
body.t570 .rpt-two{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1rem; margin-top:1.1rem; }
@media (max-width:820px){ body.t570 .rpt-two{ grid-template-columns:minmax(0,1fr); } }
body.t570 .rpt-again{ margin-top:1.4rem; }

/* the header figures reuse .cw-figs/.cw-fig — nothing to add but the L4 row's
   quieter top rule spacing */
body.t570 .l4{ margin-top:.4rem; }

/* a proportional-bar table (talkers, conversations, ports). One grid; the bar
   is a full-width track under the row that fills to width% of the max. */
body.t570 .tbl{ display:flex; flex-direction:column; }
body.t570 .trow{
    position:relative; display:grid; align-items:center; gap:.3rem .8rem;
    padding:.6rem .7rem; border-bottom:1px solid var(--line-soft);
    overflow:hidden;
}
body.t570 .trow:last-child{ border-bottom:0; }
/* the bar sits behind the text as a soft wash so the numbers stay readable */
body.t570 .trow__bar{
    position:absolute; left:0; top:0; bottom:0; width:0;
    background: rgba(30,38,43,.06);
    border-right:2px solid var(--accent);
    z-index:0; transition:width .35s var(--ease);
}
/* NOT `.trow > *`. That selector and `.trow__bar` have the same specificity,
   and this one comes later — so it was quietly overriding the bar's
   `position:absolute` and turning it into an in-flow GRID ITEM. The bar then
   took column one, every real cell shifted right by a track, and the byte
   figure fell off the end onto a second row: names floated in the middle of
   the row at a different x on every line, and the reading was unscannable.
   It only became visible when the tables were given their column grid — until
   then every row was a single stacked column and there was nothing to shift. */
body.t570 .trow > *:not(.trow__bar){ position:relative; z-index:1; }
body.t570 .trow__rank{ font-size:.7rem; font-weight:700; color:var(--ink-55); font-variant-numeric:tabular-nums; }
body.t570 .trow__name{ font-weight:600; color:var(--ink); overflow-wrap:anywhere; min-width:0; }
body.t570 .trow__name small{ display:block; font-weight:500; font-size:.72rem; color:var(--ink-55); letter-spacing:normal; }
body.t570 .trow__fig{ font-variant-numeric:tabular-nums; font-weight:700; color:var(--ink); white-space:nowrap; text-align:right; }
body.t570 .trow__sub{ font-size:.72rem; color:var(--ink-55); font-variant-numeric:tabular-nums; white-space:nowrap; text-align:right; }
body.t570 .trow__kinds{ display:flex; gap:.25rem; flex-wrap:wrap; }

/* talkers: rank | name | kinds | figure */
body.t570 .tbl--tk .trow{ grid-template-columns: 1.4rem minmax(6rem,1fr) auto auto; }
@media (max-width:560px){
    body.t570 .tbl--tk .trow{ grid-template-columns: 1.4rem minmax(0,1fr) auto; }
    body.t570 .tbl--tk .trow__kinds{ display:none; }
}
/* conversations: rank | a↔b | kind | figure */
body.t570 .tbl--conv .trow{ grid-template-columns: 1.4rem minmax(0,1fr) auto; }
/* ports: rank | kind+port | figure */
body.t570 .tbl--port .trow{ grid-template-columns: 1.4rem minmax(0,1fr) auto; }

body.t570 .chip{
    font-size:.6rem; font-weight:700; letter-spacing:.06em;
    padding:.14rem .4rem; border-radius:999px;
    border:1px solid var(--line); color:var(--ink-55); white-space:nowrap;
}
body.t570 .chip--kind{ color:var(--ink-77); }
body.t570 .conv__pair{ display:flex; align-items:center; gap:.45rem; flex-wrap:wrap; min-width:0; }
body.t570 .conv__ip{ font-weight:600; color:var(--ink); overflow-wrap:anywhere; }
body.t570 .conv__ar{ color:var(--ink-55); flex:0 0 auto; }

body.t570 .tk__sortbar{ display:flex; align-items:center; gap:.7rem; }
body.t570 .tk__sortlbl{ font-size:.6rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-55); }

/* the 100%-stacked share bar (protocol mix, local/external) */
body.t570 .stack{
    display:flex; width:100%; height:26px; border-radius:7px; overflow:hidden;
    border:1px solid var(--line); background:var(--paper);
}
body.t570 .stack__seg{ height:100%; min-width:2px; }
body.t570 .stack__seg:not(:last-child){ border-right:1px solid var(--paper); }
body.t570 .stack--lan{ height:22px; }
body.t570 .legend{ display:flex; flex-wrap:wrap; gap:.5rem 1.1rem; margin-top:.2rem; }
body.t570 .legend__i{ display:flex; align-items:center; gap:.4rem; font-size:.76rem; color:var(--ink-77); }
body.t570 .legend__sw{ width:11px; height:11px; border-radius:3px; flex:0 0 auto; border:1px solid var(--line); }
body.t570 .legend__pct{ color:var(--ink-55); font-variant-numeric:tabular-nums; }

/* the timeline */
body.t570 .tl__cv{ display:block; width:100%; height:150px; }
body.t570 .tl__axis{ display:flex; justify-content:space-between; margin-top:.35rem;
            font-size:.66rem; color:var(--ink-55); font-variant-numeric:tabular-nums; }

/* the notes list */
body.t570 .flags{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:.5rem; }
body.t570 .flags li{ font-size:.86rem; color:var(--ink-77); display:flex; gap:.5rem; align-items:baseline; }
body.t570 .flags li::before{ content:''; width:5px; height:5px; border-radius:50%; background:var(--accent); flex:0 0 auto; transform:translateY(-2px); }

/* capture options + command blocks */
body.t570 .opts{ display:grid; grid-template-columns:repeat(auto-fit,minmax(12rem,1fr)); gap:1.1rem; }
body.t570 .opt__opt{ font-weight:400; text-transform:none; letter-spacing:0; color:var(--ink-55); }
body.t570 .opt--iface .field{ width:100%; }
body.t570 .cmd{ margin-top:1.3rem; }
body.t570 .cmd__head{ display:flex; align-items:center; justify-content:space-between; gap:.7rem; margin-bottom:.5rem; flex-wrap:wrap; }
body.t570 .cmd__os{ font-size:.625rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-55); }
body.t570 .cmd__pre{
    margin:0; padding:.9rem 1rem; border-radius:10px;
    border:1px solid var(--line); background:var(--paper);
    overflow-x:auto;
}
body.t570 .cmd__pre code{ font-size:.82rem; line-height:1.7; color:var(--ink); white-space:pre; }
body.t570 .cmd--launch{ border-top:1px solid var(--line-soft); padding-top:1rem; }
body.t570 .cmd__dl{ color:var(--info); text-decoration:none; font-weight:600; }
body.t570 .cmd__dl:hover{ text-decoration:underline; }
body.t570 .cmd__copy.is-done{ border-color:var(--free); color:var(--free); }
body.t570 .launch{ display:grid; grid-template-columns:repeat(auto-fit,minmax(15rem,1fr)); gap:1.2rem 1.6rem; }
body.t570 .launch__os{ min-width:0; }
body.t570 .launch__h{ font-size:.7rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-55); margin:0 0 .35rem; }
body.t570 .launch__d{ margin:0; font-size:.92rem; line-height:1.6; color:var(--ink); }
body.t570 .launch__note{ margin-top:1.1rem; padding-top:1rem; border-top:1px solid var(--line-soft); }

/* one-click jumps across the reading; sticks just under the site nav */
body.t570 .rpt-nav{
    position:sticky; top:calc(var(--nav-h) + .5rem); z-index:40;
    display:flex; flex-wrap:wrap; gap:.4rem; align-items:center;
    margin-top:1.2rem; padding:.5rem .6rem;
    border:1px solid var(--line); border-radius:12px;
    background:var(--paper);
}
body.t570 .rpt-nav__c{
    font-size:.72rem; font-weight:700; letter-spacing:.05em;
    padding:.32rem .7rem; border-radius:999px;
    border:1px solid var(--line); color:var(--ink-77);
    text-decoration:none; background:none; cursor:pointer;
    font-family:inherit; line-height:1.2;
}
body.t570 .rpt-nav__c:hover{ border-color:var(--ink); color:var(--ink); }
body.t570 .rpt-nav__save{ margin-left:auto; color:var(--accent); border-color:var(--accent); }
body.t570 .rpt-nav__save:hover{ background:var(--accent); border-color:var(--accent); color:#fff; }
/* anchored blocks land below the sticky bars, not under them */
body.t570 .rpt-block[id],
body.t570 #flags-block{ scroll-margin-top:calc(var(--nav-h) + 4.4rem); }

/* the drill-down banner */
body.t570 .focusbar{
    display:flex; align-items:center; justify-content:space-between; gap:.8rem; flex-wrap:wrap;
    margin-top:.8rem; padding:.6rem .9rem;
    border:1px solid var(--accent); border-radius:10px;
    font-size:.85rem; font-weight:600; color:var(--ink);
}
body.t570 .focusbar__x{
    font-size:.72rem; font-weight:700; padding:.3rem .7rem; border-radius:999px;
    border:1px solid var(--line); background:none; color:var(--ink-77);
    cursor:pointer; font-family:inherit;
}
body.t570 .focusbar__x:hover{ border-color:var(--ink); color:var(--ink); }

/* a talker row is a control now */
body.t570 .tbl__more{
    font-size:.68rem; color:var(--ink-55); padding:.45rem .7rem .1rem;
    border-top:1px solid var(--line-soft);
}
body.t570 .trow--click{ cursor:pointer; }
body.t570 .trow--click:hover .trow__name{ color:var(--accent); }
body.t570 .trow--click:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
body.t570 .trow.is-focus{ box-shadow:0 0 0 1.5px var(--accent) inset; border-radius:8px; }

/* ------------------------------------------------------------- THE ENGINE
   The section used to be an eyebrow, a heading and a button. It is the part of
   the page that asks for the most trust — "fetch this and hand it your whole
   network" — and it was the thinnest thing on the page. */
body.t570 .eng-facts{
    display: grid; gap: .5rem; margin-top: 1.4rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 860px) { body.t570 .eng-facts{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { body.t570 .eng-facts{ grid-template-columns: minmax(0, 1fr); } }
body.t570 .eng-fact{
    border: 1px solid var(--line); border-radius: 3px;
    padding: .7rem .75rem; background: var(--tint);
}
body.t570 .eng-fact__k{
    font-size: .5rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--ink-55); font-weight: 700;
}
body.t570 .eng-fact__v{
    font-size: 1.5rem; line-height: 1.05; letter-spacing: -.03em;
    margin-top: .15rem; font-variant-numeric: tabular-nums;
}
body.t570 .eng-fact__s{ font-size: .68rem; color: var(--ink-55); margin-top: .3rem; line-height: 1.45; }

body.t570 .eng-sub{
    font-size: .5rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--ink-55); font-weight: 700; margin-top: 1.1rem;
}
body.t570 .eng-sub--gap{ margin-top: 1.4rem; }

body.t570 .eng-list{ list-style: none; margin: .5rem 0 0; padding: 0; }
body.t570 .eng-list li{
    display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .7rem;
    align-items: baseline; padding: .32rem 0;
    border-top: 1px solid var(--line-soft); font-size: .78rem;
}
body.t570 .eng-list li:first-child{ border-top: 0; }
body.t570 .eng-list b{
    font-size: .5rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-55); font-weight: 700;
}
body.t570 .eng-list span{ color: var(--ink-77); line-height: 1.5; }
@media (max-width: 520px) {
    body.t570 .eng-list li{ grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}

/* The self-test result. One line per assertion, its own tick, and the measured
   value beside it — a green word on its own would be a claim, not a proof. */
body.t570 .eng-checks{ list-style: none; margin: .7rem 0 0; padding: 0; }
body.t570 .eng-checks[hidden]{ display: none; }
body.t570 .eng-checks li{
    display: grid; grid-template-columns: 1rem minmax(0, 1fr) auto; gap: .55rem;
    align-items: baseline; padding: .26rem 0;
    border-top: 1px solid var(--line-soft);
    font-size: .74rem; font-variant-numeric: tabular-nums;
}
body.t570 .eng-checks li:first-child{ border-top: 0; }
body.t570 .eng-checks__m{ font-weight: 700; }
body.t570 .eng-checks li.is-ok   .eng-checks__m{ color: var(--free); }
body.t570 .eng-checks li.is-bad  .eng-checks__m{ color: var(--taken); }
body.t570 .eng-checks__n{ color: var(--ink-77); overflow-wrap: anywhere; }
body.t570 .eng-checks__v{ color: var(--ink-55); white-space: nowrap; }
body.t570 .eng-checks li.is-bad .eng-checks__v{ color: var(--taken); }

/* =============================================================== THE PRINT REPORT
   A capture reading is exactly the kind of thing that gets mailed to somebody,
   pinned to a ticket, or kept. So this is a real document, not a screenshot of
   an app: LABS letterhead, the capture named at the top, and every panel set to
   stay whole across a page break.

   THREE RULES GOVERN THE WHOLE SHEET:

   1. IT PRINTS AS PAPER, ALWAYS. The dark edition is a screen edition. Nobody
      wants a black PDF and no printer wants to lay down that much toner, so the
      tokens are redefined here for both editions and everything downstream —
      including the timeline canvas, which reads --ink and --accent at draw time
      — follows without a second copy.
   2. ONLY THE READING PRINTS. The hero, the method, the engine panel, the drop
      zone, the jump bar, every button and the whole estate chrome are screen
      furniture and carry no information on paper.
   3. NOTHING SPLITS THAT SHOULD NOT. A talker row cut in half across two pages
      is worse than a page that ends early.
   ============================================================================ */
body.t570 .ph,
body.t570 .pf{ display: none; }


@media print {
    /* ---------------------------------------------------------- the page ---- */
    @page { margin: 14mm 12mm 16mm; }

    /* Paper, in both editions. */
    html, html[data-dark] {
        --ink:        #1A1A1A;
        --ink-77:     rgba(26, 26, 26, .80);
        --ink-55:     rgba(26, 26, 26, .58);
        --paper:      #ffffff;
        --tint:       #ffffff;
        --sunk:       #F4F4F4;
        --line:       rgba(26, 26, 26, .26);
        --line-soft:  rgba(26, 26, 26, .13);
        --accent:     #B03A00;
        --free:       #1A6B34;
        --taken:      #A02020;
        background:   #fff !important;
    }
    html[data-dark] body, body { background: #fff !important; color: var(--ink) !important; }
    /* THE BANDS ARE LITERALS, SO THEY NEED ANSWERING SEPARATELY.
       Redefining the tokens turns almost everything to paper, but
       `html[data-dark] .band--tint { background: #0F151B }` is a flat colour,
       not a token — so the letterhead printed as white type on a black slab at
       the top of page one while the rest of the document came out correctly.
       Every surface that is painted rather than tokenised is listed here. */
    .band, .band--tint, .band--deep,
    html[data-dark] .band, html[data-dark] .band--tint, html[data-dark] .band--deep,
    main, #main, #reading, .wrap, #report {
        background: #fff !important; background-image: none !important;
    }
    html[data-dark] .band--deep, html[data-dark] .band--deep * { color: var(--ink) !important; }

    /* ------------------------------------------------- what does not print ---- */
    .nav, .menu, .foot, .skip, .hero, #capture, #method, #engine, #shelf,
    #dropzone, .rpt-nav, .focusbar, .toasts, .wxt, #toasts,
    .livecard, .t-toolbar, .t-chips, .t-filter, .t-load, #t-recents,
    .t-actions, #rpt-compare-btn, #rpt-csv, #rpt-txt, #rpt-copy,
    /* the screen section's own head — "The reading / Drop a capture." is an
       instruction to somebody sitting at the page, and means nothing on paper
       where the capture has already been read. The letterhead is the title. */
    #reading > .wrap > .eyebrow, #reading > .wrap > .d2, #reading > .wrap > .lede,
    .lx-toast, .assistant, .asst, .btn, button, .seg, .tk-mode,
    [data-mode], .mode-pill, .lx-ask, #ask, #search, .search {
        display: none !important;
    }
    /* …but the console heads stay: they name each panel. */
    .console__head { display: flex !important; }
    .console__dot { display: none !important; }

    main, .band, .wrap, #reading { padding: 0 !important; margin: 0 !important; max-width: none !important; }
    #report { display: block !important; }

    /* ------------------------------------------------------- the letterhead --- */
    .ph {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0 14px; align-items: start;
        padding-bottom: 9px; margin-bottom: 16px;
        border-bottom: 2px solid var(--ink);
    }
    .ph__mark img { width: 92px; height: auto; display: block; margin-top: 2px; }
    .ph__k {
        font-size: 7pt; letter-spacing: .18em; text-transform: uppercase;
        color: var(--ink-55); font-weight: 700;
    }
    .ph__h { font-size: 17pt; line-height: 1.1; letter-spacing: -.02em; margin-top: 2px; }
    .ph__s { font-size: 8.5pt; color: var(--ink-77); margin-top: 3px; }
    .ph__meta {
        font-size: 7.5pt; color: var(--ink-55); text-align: right;
        white-space: pre-line; line-height: 1.5; font-variant-numeric: tabular-nums;
    }

    /* A fixed element repeats on every printed page in the engines that support
       it; where it does not, it is the foot of page one and says nothing the
       letterhead has not. Either way it is never wrong. */
    .pf {
        display: flex !important; position: fixed; bottom: 0; left: 0; right: 0;
        justify-content: space-between;
        font-size: 7pt; color: var(--ink-55); letter-spacing: .04em;
        border-top: 1px solid var(--line-soft); padding-top: 4px;
    }

    /* --------------------------------------------------------- the panels ---- */
    .rpt-block, .console {
        break-inside: avoid; page-break-inside: avoid;
        border: 1px solid var(--line) !important; border-radius: 0 !important;
        background: #fff !important; box-shadow: none !important;
        margin: 0 0 10px !important;
    }
    .console__head {
        border-bottom: 1px solid var(--line) !important;
        padding: 5px 8px !important; background: #FAFAFA !important;
    }
    .console__title { font-size: 8pt; letter-spacing: .13em; text-transform: uppercase; }
    .console__body { padding: 8px !important; display: block !important; }
    .r-stat, .cw-stat { font-size: 7.5pt; color: var(--ink-55); }

    /* The timeline is the one panel worth its own page when it lands badly. */
    #rpt-timeline { break-before: auto; }

    /* --------------------------------------------------------- the tables ---- */
    body { font-size: 9pt; }
    .tbl { overflow: visible !important; }
    .trow {
        break-inside: avoid; page-break-inside: avoid;
        padding: 3px 4px !important; font-size: 8.5pt;
        border-bottom: 1px solid var(--line-soft) !important;
    }
    /* THE PROPORTIONAL BAR, WITHOUT ITS EDGE. On screen the accent border is
       the bar's leading edge and reads as a measure. In print, on the rows that
       are only two per cent of the traffic, that edge is a two-pixel red tick
       floating at the left margin with nothing attached to it — it reads as a
       printing fault. The wash alone carries the proportion on paper. */
    .trow__bar { background: rgba(26,26,26,.08) !important; border-right: 0 !important; }
    .trow__name { font-weight: 600; }
    .trow__name small { font-size: 7.5pt; }
    .trow__fig  { font-weight: 700; }
    .trow__sub  { font-size: 7.5pt; }
    .chip, .chip--kind {
        font-size: 6.5pt !important; border: 1px solid var(--line) !important;
        background: #fff !important; color: var(--ink-77) !important;
        padding: 0 3px !important;
    }

    .cw-figs { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
    .cw-fig  { break-inside: avoid; border: 1px solid var(--line-soft); padding: 5px 6px; }

    /* The canvas is redrawn in print ink by tap.js before the dialog opens. */
    canvas { max-width: 100% !important; height: auto !important; }
    .stack, .stack__seg { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

    /* Anything that scrolls on screen must show everything on paper. */
    [style*="overflow"], .scroll, .tbl, .eng-list { overflow: visible !important; max-height: none !important; }

    a[href]::after { content: none !important; }   /* no URL spew after every link */
}

/* =============================================================================
   v570b polish — 20 Nov 2026
   Window stats: one mono grid, no wrap orphans.
   House buttons and status chips (no stray blue/green, no double rings).
   Restored two-tone bands and tinted inner console bodies.
   ============================================================================= */

/* ---- typography of figures: mono, one size, ellipsis ---- */
body.t570 #main .cw-fig b,
body.t570 #main .t-fig b,
body.t570 #main .trow__fig {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--ink);
}
body.t570 #main .eng-fact__v {
  font-family: var(--serif); /* display number in the facts strip is a headline, not a stat grid */
}

body.t570 .cw-figs,
body.t570 .t-glance,
body.t570 #fig-head,
body.t570 #l4-figs,
body.t570 #lan-figs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr));
  gap: 14px 16px;
  border-top: 0;
  padding-top: 0;
  margin: 0;
  align-items: start;
}
body.t570 .cw-fig,
body.t570 .t-fig {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
body.t570 .cw-fig__l,
body.t570 .t-fig > span:first-child {
  font: 700 10px/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.t570 .cw-fig b,
body.t570 .t-fig b {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
  font: 700 1rem/1.25 var(--mono);
}
body.t570 .t-fig small {
  font: 11.5px/1.35 var(--r-sans);
  color: var(--ink-55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.t570 .t-fig__chips {
  display: flex; flex-wrap: nowrap; gap: 4px; min-width: 0; overflow: hidden;
}
body.t570 .t-fig__chips .chip {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 700 10px/1 var(--mono);
  letter-spacing: .04em;
  text-transform: none;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid var(--r-line);
  background: color-mix(in srgb, var(--ink) 4%, var(--r-card));
  color: var(--ink);
}
@media (max-width: 420px) {
  body.t570 .cw-figs,
  body.t570 .t-glance,
  body.t570 #fig-head,
  body.t570 #l4-figs,
  body.t570 #lan-figs {
    grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr));
    gap: 12px 12px;
  }
}

/* ---- two-tone bands + tinted inner panels (old rhythm, kept) ---- */
body.t570 .band--tint { background: #FAFAFA; }
html[data-dark] body.t570 .band--tint,
html[data-edition="dark"] body.t570 .band--tint { background: #0F151B; }

/* White card head, recessed grey body — the Capture-in look */
body.t570 .console {
  background: rgba(30, 38, 43, .035);
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
body.t570 .console__head {
  background: var(--paper, #fff);
}
body.t570 .dz {
  background: transparent;
}
body.t570 .eng-fact {
  background: var(--tint, #FAFAFA);
  border: 1px solid var(--line);
}
html[data-dark] body.t570 .console,
html[data-edition="dark"] body.t570 .console {
  background: rgba(255, 255, 255, .035);
}
html[data-dark] body.t570 .console__head,
html[data-edition="dark"] body.t570 .console__head {
  background: var(--paper);
}
html[data-dark] body.t570 .eng-fact,
html[data-edition="dark"] body.t570 .eng-fact {
  background: color-mix(in srgb, var(--paper) 70%, #0F151B);
}

/* ---- house buttons: one primary fill, one ghost outline, one focus ring ---- */
body.t570 .btn,
body.t570 .t-go,
body.t570 .lc__btn,
body.t570 .rpt-nav__c,
body.t570 .cmd__copy,
body.t570 .run .btn--go {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--r-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  text-transform: none;
  text-decoration: none;
  padding: .72rem 1.15rem;
  min-height: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
  cursor: pointer;
}
body.t570 .btn:hover,
body.t570 .t-go:hover,
body.t570 .rpt-nav__c.t-btn--primary:hover,
body.t570 #rpt-save:hover,
body.t570 .run .btn--go:hover {
  background: #000;
  color: #fff;
  border-color: transparent;
  opacity: 1;
  transform: translateY(-1px);
}
body.t570 .btn--ghost,
body.t570 .t-go--ghost,
body.t570 .lc__btn,
body.t570 .rpt-nav__c,
body.t570 .cmd__copy,
body.t570 #rpt-print,
body.t570 #rpt-csv,
body.t570 #rpt-txt,
body.t570 #rpt-compare-btn {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
body.t570 .btn--ghost:hover,
body.t570 .t-go--ghost:hover,
body.t570 .lc__btn:hover,
body.t570 .rpt-nav__c:hover,
body.t570 .cmd__copy:hover,
body.t570 #rpt-print:hover,
body.t570 #rpt-csv:hover,
body.t570 #rpt-txt:hover,
body.t570 #rpt-compare-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-1px);
}
body.t570 #rpt-save,
body.t570 .rpt-nav__save {
  margin-left: auto;
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}
body.t570 #rpt-save:hover,
body.t570 .rpt-nav__save:hover {
  background: #000;
  color: #fff;
  border-color: transparent;
}
body.t570 .btn:focus,
body.t570 .t-go:focus,
body.t570 .lc__btn:focus,
body.t570 .rpt-nav__c:focus,
body.t570 .cmd__copy:focus,
body.t570 .seg__b:focus,
body.t570 .run .btn--go:focus {
  outline: none;
}
body.t570 .btn:focus-visible,
body.t570 .t-go:focus-visible,
body.t570 .lc__btn:focus-visible,
body.t570 .rpt-nav__c:focus-visible,
body.t570 .cmd__copy:focus-visible,
body.t570 .seg__b:focus-visible,
body.t570 .t-chip:focus-visible,
body.t570 .run .btn--go:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}
body.t570 .btn[disabled],
body.t570 .run .btn--go[disabled],
body.t570 .run .btn--go[disabled]:hover {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}
body.t570 .run .btn--go[disabled]::before { content: none; }
body.t570 .cmd__copy.is-done {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---- status chip (engine ready / loading / error) ---- */
body.t570 .t-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1.2 var(--r-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper, #fff);
  white-space: nowrap;
}
body.t570 .t-status[hidden] { display: none; }
body.t570 .t-status i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  display: inline-block; flex: 0 0 auto;
}
body.t570 .t-status[data-tone="idle"] i {
  background: var(--ink-55);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent);
}
body.t570 .t-status[data-tone="load"] i {
  background: var(--accent);
}
body.t570 .t-status[data-tone="bad"] {
  border-color: color-mix(in srgb, var(--r-bad) 45%, var(--line));
}
body.t570 .t-status[data-tone="bad"] i {
  background: var(--r-bad);
  box-shadow: 0 0 0 3px var(--r-bad-bg);
}
body.t570 .cw-stat--live { color: var(--ink-77); } /* un-green the old "Ready" word */

/* ---- step circles: house ink / accent, not the rainbow ---- */
body.t570 .stop { --sc: var(--ink); }
body.t570 .stop[data-stop="1"],
body.t570 .stop[data-stop="2"],
body.t570 .stop[data-stop="3"],
body.t570 .stop[data-stop="4"],
body.t570 .stop[data-stop="5"] { --sc: var(--ink); }
body.t570 .stop[data-state="wait"] {
  opacity: .5;
  color: var(--ink-55);
  border-color: var(--line);
  background: transparent;
}
body.t570 .stop[data-state="now"] {
  background: var(--ink);
  color: var(--paper, #fff);
  border-color: var(--ink);
  opacity: 1;
}
body.t570 .stop[data-state="now"]::after {
  border-color: var(--ink);
}
body.t570 .stop[data-state="done"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper, #fff);
  opacity: 1;
}
body.t570 .rpt-nav .stop,
body.t570 .rpt-nav__save .stop,
body.t570 #rpt-save .stop {
  width: 1.15rem; height: 1.15rem; font-size: .62rem;
  margin-right: .15rem; vertical-align: 0;
}

/* self-test rows: ink tick, bad only when a check fails */
body.t570 .eng-checks li.is-ok .eng-checks__m { color: var(--ink); }
body.t570 .eng-checks li.is-bad .eng-checks__m { color: var(--r-bad); }
body.t570 .eng-checks li.is-ok .eng-checks__v { color: var(--ink-55); }

/* live card status uses accent, not a second green */
body.t570 .livecard .lc__k { color: var(--ink-55); }
body.t570 .livecard[data-tone="ok"] .lc__k { color: var(--ink); }
body.t570 .livecard .lc__k i {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
body.t570 .livecard[data-tone="idle"] .lc__k i {
  background: var(--ink-55);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent);
}
body.t570 .livecard[data-tone="warn"] .lc__k { color: var(--r-warn); }
body.t570 .livecard[data-tone="warn"] .lc__k i { background: var(--r-warn); box-shadow: 0 0 0 4px var(--r-warn-bg); }
body.t570 .livecard[data-tone="bad"] .lc__k { color: var(--r-bad); }
body.t570 .livecard[data-tone="bad"] .lc__k i { background: var(--r-bad); box-shadow: 0 0 0 4px var(--r-bad-bg); }

@media print {
  body.t570 .t-status, body.t570 .rpt-nav { display: none !important; }
  body.t570 .cw-figs, body.t570 #fig-head, body.t570 #l4-figs, body.t570 #lan-figs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  body.t570 .cw-fig b, body.t570 .t-fig b { white-space: nowrap; }
}

body.t570 .btn[hidden],
body.t570 .t-go[hidden],
body.t570 .t-status[hidden],
body.t570 [hidden] { display: none !important; }
body.t570 .run__kbd.is-bad { color: var(--r-bad); }
body.t570 .run__kbd.is-ok { color: var(--ink-77); }


/* Dark-mode house buttons: ink fill, paper text — never hardcoded white-on-white */
body.t570 .btn,
body.t570 .t-go,
body.t570 .lc__btn,
body.t570 .rpt-nav__c,
body.t570 .cmd__copy,
body.t570 .run .btn--go,
body.t570 #rpt-save,
body.t570 .rpt-nav__save {
  color: var(--paper);
}
body.t570 .btn--ghost,
body.t570 .t-go--ghost,
body.t570 .lc__btn,
body.t570 .rpt-nav__c,
body.t570 .cmd__copy,
body.t570 #rpt-print,
body.t570 #rpt-csv,
body.t570 #rpt-txt,
body.t570 #rpt-compare-btn {
  color: var(--ink);
}
body.t570 .btn:hover,
body.t570 .t-go:hover,
body.t570 .rpt-nav__c.t-btn--primary:hover,
body.t570 #rpt-save:hover,
body.t570 .run .btn--go:hover,
body.t570 .rpt-nav__save:hover {
  background: #000;
  color: #fff;
  border-color: transparent;
}
html[data-dark] body.t570 .btn:hover,
html[data-edition="dark"] body.t570 .btn:hover,
html[data-dark] body.t570 .t-go:hover,
html[data-edition="dark"] body.t570 .t-go:hover,
html[data-dark] body.t570 #rpt-save:hover,
html[data-edition="dark"] body.t570 #rpt-save:hover,
html[data-dark] body.t570 .rpt-nav__save:hover,
html[data-edition="dark"] body.t570 .rpt-nav__save:hover,
html[data-dark] body.t570 .run .btn--go:hover,
html[data-edition="dark"] body.t570 .run .btn--go:hover {
  background: rgba(255, 255, 255, .86);
  color: var(--paper);
  border-color: transparent;
}
body.t570 .btn--ghost:hover,
body.t570 .t-go--ghost:hover,
body.t570 .lc__btn:hover,
body.t570 .rpt-nav__c:hover,
body.t570 .cmd__copy:hover,
body.t570 #rpt-print:hover,
body.t570 #rpt-csv:hover,
body.t570 #rpt-txt:hover,
body.t570 #rpt-compare-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
body.t570 .btn[disabled],
body.t570 .run .btn--go[disabled],
body.t570 .run .btn--go[disabled]:hover {
  color: var(--paper);
  background: var(--ink);
}
body.t570 #rpt-save,
body.t570 .rpt-nav__save {
  color: var(--paper);
  background: var(--ink);
}
body.t570 .rpt-nav__lbl { color: inherit; }
body.t570 .rpt-nav .stop,
body.t570 .rpt-nav__save .stop,
body.t570 #rpt-save .stop {
  flex: 0 0 auto;
  width: 1.15rem !important;
  height: 1.15rem !important;
  min-width: 1.15rem;
  min-height: 1.15rem;
}

/* Orbitron — the squared instrument face used on /undersea/ for cable figures
   (e.g. Umoja: “2028 ready for service”, “2 landings”). SIL OFL 1.1, already
   self-hosted on labs.llc as a variable 400–900 latin subset. Reused here;
   font-display: swap, not preloaded, not on the critical path. */
@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('/assets/fonts/orbitron-latin.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;
}

/* Big headline figures only. Labels, body, and table cells stay as they are. */
body.t570 #main #fig-head .cw-fig b,
body.t570 #main #fig-head .t-fig b,
body.t570 #main .eng-fact__v,
body.t570 #main .lc__rows b,
body.t570 #main .tl-peak {
  font-family: 'Orbitron', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  font-synthesis: none;
}
body.t570 #main .eng-fact__v {
  font-size: 1.5rem;
  line-height: 1.15;
}
body.t570 #main .tl-peak {
  font-size: 1rem;
  color: var(--ink);
}

/* tables stay mono for alignment */
body.t570 #main .trow__fig,
body.t570 #main .eng-checks__v {
  font-family: var(--mono);
}

/* ---- timeline (v570b) ---- */
body.t570 .tl-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem;
  margin: 0 0 .7rem;
}
body.t570 .tl-stage {
  position: relative;
  width: 100%;
}
body.t570 .tl__cv {
  display: block; width: 100%; height: 220px;
  cursor: crosshair;
  border-radius: 8px;
  touch-action: none;
}
body.t570 .tl__cv:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body.t570 .tl__axis {
  display: flex; justify-content: space-between; gap: .4rem;
  margin-top: .4rem;
  font-size: .66rem; color: var(--ink-55);
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
}
body.t570 .tl__axis span { white-space: nowrap; }
body.t570 .tl-tip {
  position: absolute; z-index: 5; pointer-events: none;
  min-width: 10.5rem; max-width: 18rem;
  padding: .5rem .65rem .55rem;
  background: var(--paper, #fff);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(30, 38, 43, .12);
  font-size: .75rem; line-height: 1.4;
}
html[data-dark] body.t570 .tl-tip,
html[data-edition="dark"] body.t570 .tl-tip {
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
}
body.t570 .tl-tip[hidden] { display: none !important; }
body.t570 .tl-tip__t {
  display: flex; justify-content: space-between; align-items: baseline; gap: .8rem;
  margin: 0 0 .35rem;
}
body.t570 .tl-tip__t b.tl-peak { font-size: .92rem; }
body.t570 .tl-tip__t span { color: var(--ink-55); font-family: var(--mono); font-size: .66rem; }
body.t570 .tl-tip__row {
  display: flex; justify-content: space-between; gap: .8rem; align-items: baseline;
  font-size: .72rem;
}
body.t570 .tl-tip__row i {
  font-style: normal; display: inline-block; width: 7px; height: 7px;
  border-radius: 1px; margin-right: .4rem; vertical-align: 0;
}
body.t570 .tl-tip__row b { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
body.t570 .legend__i {
  cursor: pointer;
  user-select: none;
}
body.t570 .legend__i[aria-pressed="false"] { opacity: .38; }
body.t570 .legend__i:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
body.t570 #tl-reset { margin-left: auto; }
@media print {
  body.t570 .tl-toolbar, body.t570 .tl-tip { display: none !important; }
  body.t570 .tl__cv { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  body.t570 .tl-tip { transition: none; }
}
body.t570 #tl-legend .legend__i { appearance:none; background:none; border:0; margin:0; padding:0; font:inherit; color:inherit; cursor:pointer; display:inline-flex; align-items:center; gap:.4rem; }
body.t570 #rpt-timeline.console, body.t570 #rpt-timeline .console__body, body.t570 .tl-stage { overflow: visible; }
