/* Warm-network cockpit. Deliberately the same visual vocabulary as the other BRG
   command queue pages (twenty-live-target-queue, cloudflare-launch-signoff): same
   sage-neutral palette, 8px radii, Menlo labels, tabular numerals. Operator surfaces
   should be boringly consistent, not distinctive.
   Not identical, on purpose: --muted, --amber and --red are darker here and the
   focus ring is stronger (#2a7f9e at 2px vs #8abbd1 at 3px) so every text pair
   clears 4.5:1 and control borders clear 3:1 for WCAG 1.4.11. */
:root{color-scheme:light;--bg:#f4f6f2;--panel:#fbfcf8;--ink:#17201c;--muted:#54645b;--line:#d8ded6;--line-strong:#bcc8bf;--line-control:#6b756e;--green:#0b7450;--green-soft:#e8f5ee;--amber:#7a5100;--amber-soft:#fff5e1;--blue:#1f6078;--blue-soft:#e8f3f7;--red:#98352a;--red-soft:#fee9e4;--shadow:0 8px 18px rgba(23,32,28,.06)}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font-family:Aptos,Inter,Arial,system-ui,sans-serif;font-size:14px;line-height:1.5}
.shell{width:min(1460px,calc(100% - 32px));margin:auto;padding:28px 0 52px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

header{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;border-bottom:1px solid var(--line);padding-bottom:18px}
.label{margin:0 0 8px;color:var(--blue);font:700 12px/1.4 Menlo,Consolas,monospace;text-transform:uppercase}
h1{max-width:860px;margin:0;font-size:36px;line-height:1.12;letter-spacing:-.01em;text-wrap:balance}
h2{margin:0;font-size:17px;line-height:1.25}
h3{margin:0;font-size:15px;line-height:1.3}
p{max-width:82ch;margin:10px 0 0;color:var(--muted);text-wrap:pretty}
a{color:var(--blue)}

nav,.toolbar,.metrics,.scopes,.routes,.tags{display:flex;flex-wrap:wrap;gap:8px}
/* Controls get --line-control, not --line: a 1px --line border is only ~1.3:1 on
   this background, so a white button on a near-white page had a near-invisible
   boundary (WCAG 1.4.11 wants 3:1 for control edges). --line-control is 4.8:1 on
   white and 4.3:1 on the page. Panel and card borders keep the softer --line. */
nav a,button,.search input{min-height:44px;border:1px solid var(--line-control);border-radius:8px;background:#fff;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;padding:0 12px;text-decoration:none;font-weight:800;font-family:inherit;font-size:14px}
button{cursor:pointer;transition:background-color .16s ease,border-color .16s ease}
nav a:hover,button:hover{border-color:var(--line-strong);background:#f8faf6}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #2a7f9e;outline-offset:2px}
button[disabled]{cursor:not-allowed;opacity:.55}

.toolbar{align-items:center;margin:16px 0 0}
.search{flex:1 1 260px;display:flex}
.search input{width:100%;justify-content:flex-start;font-weight:500}
.toolbar #status{margin:0;max-width:none;font-weight:800;color:var(--green);white-space:pre-wrap}
.toolbar #status.err{color:var(--red)}
.live-pill{display:inline-flex;align-items:center;gap:8px;min-height:44px;border:1px solid var(--line-strong);border-radius:999px;background:#fff;padding:0 14px;font-weight:800}
.dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 0 rgba(11,116,80,.45);animation:pulse 1.8s infinite}
.live-pill.stale .dot{background:var(--amber);animation:none}
.live-pill.err .dot{background:var(--red);animation:none}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(11,116,80,.45)}70%{box-shadow:0 0 0 8px rgba(11,116,80,0)}100%{box-shadow:0 0 0 0 rgba(11,116,80,0)}}

.metrics{display:grid;grid-template-columns:repeat(6,1fr);margin:16px 0;gap:12px}
.metrics article,.panel{background:var(--panel);border:1px solid var(--line);border-radius:8px}
.metrics article{padding:14px}
.metrics strong{display:block;font-size:29px;line-height:1.05;font-variant-numeric:tabular-nums}
.metrics span,.badge,.tag,.meta,.cnt{font:700 11px/1.35 Menlo,Consolas,monospace;text-transform:uppercase;color:var(--muted)}

.scopes{margin:0 0 14px}
.scopes button{gap:8px}
.scopes button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.scopes button[aria-pressed="true"] .cnt{color:#c9d6cd}

.split{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.6fr);gap:14px;align-items:start}
.panel{padding:16px;box-shadow:var(--shadow)}
.panel-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}
.panel-head p{margin-top:5px}
.side{display:grid;gap:14px}
.badge,.tag{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;background:#fff;padding:5px 9px}

.rows{display:grid;gap:10px}
.row{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;align-items:start;border:1px solid var(--line);border-radius:8px;background:#fff;padding:12px}
.row.distress{background:#fffdfc}
.score{display:grid;place-items:center;min-height:44px;border-radius:8px;background:var(--blue-soft);color:var(--blue);font:800 17px/1 Menlo,Consolas,monospace}
.row.distress .score{background:var(--red-soft);color:var(--red)}
.who{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}
.who h3{font-size:16px}
.at{color:var(--muted)}
.offer{margin:9px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fafcf8;color:var(--ink);font-weight:600;max-width:none}
.offer .why{display:block;margin-top:5px;color:var(--muted);font-weight:400}
.next{margin-top:8px;font-size:13px}
.links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.links a{min-height:44px;font-size:13px}

.tag.ev{background:var(--green-soft);border-color:#b6d7c5;color:var(--green)}
.tag.role{background:var(--amber-soft);border-color:#e0c188;color:var(--amber)}
.tag.door{background:var(--blue-soft);border-color:#b9d6df;color:var(--blue)}
.tag.warn{background:var(--red-soft);border-color:#e6b3a8;color:var(--red)}
.tag.info{background:var(--blue-soft);border-color:#b9d6df;color:var(--blue)}
.tag.plain{color:var(--muted)}
/* An email is an identifier an operator may copy, so it must never be case-mangled
   by the shared .tag uppercase rule. */
.tag.email{text-transform:none;font-family:Menlo,Consolas,monospace}
.cap-note{margin:12px 0 0;font-size:13px;color:var(--muted)}

.routes{display:grid;gap:8px}
.routes button{width:100%;justify-content:space-between;text-align:left;gap:10px;padding:10px 12px;min-height:52px}
.routes button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.routes .rn{display:block;font-weight:800;font-size:13px;text-transform:none}
.routes .rm{display:block;font:700 11px/1.4 Menlo,Consolas,monospace;color:var(--muted);text-transform:uppercase}
.routes button[aria-pressed="true"] .rm{color:#c9d6cd}
.routes .rc{font-variant-numeric:tabular-nums;font-size:16px}

.guard p{max-width:none;font-size:13px}
.more{width:100%;margin-top:12px}
.empty,.err{border:1px dashed var(--line-strong);border-radius:8px;background:#fff;padding:18px;text-align:center;color:var(--muted)}
.err{border-style:solid;border-color:#e6b3a8;background:var(--red-soft);color:var(--red);text-align:left;font-weight:600}
.skel{border:1px solid var(--line);border-radius:8px;background:#fff;padding:12px;display:grid;gap:9px}
.skel i{display:block;height:11px;border-radius:4px;background:linear-gradient(90deg,#eef1ec,#e2e7de,#eef1ec);background-size:200% 100%;animation:sheen 1.2s linear infinite}
.skel i:nth-child(1){width:38%;height:15px}
.skel i:nth-child(2){width:72%}
.skel i:nth-child(3){width:54%}
@keyframes sheen{0%{background-position:100% 0}100%{background-position:-100% 0}}

@media(max-width:1180px){.metrics{grid-template-columns:repeat(3,1fr)}.split{grid-template-columns:1fr}}
@media(max-width:820px){header{display:grid;align-items:start}h1{font-size:28px}.metrics{grid-template-columns:1fr 1fr}.toolbar>*{width:100%}.live-pill{justify-content:center}.scopes button{flex:1 1 46%}.row{grid-template-columns:1fr}.score{width:58px}}
@media(max-width:560px){.shell{width:min(100% - 22px,1460px)}.metrics{grid-template-columns:1fr}.metrics strong{font-size:26px}.panel{padding:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.dot{box-shadow:none}.skel i{background:#e8ece6}}
