/* AD Report # 5 Ops Dashboard: the Assurance Summary, light and dark. Generated from adr1/assets/css/noc.css plus
   the audit layer at the end; edit the layer, not the copied rules above it. */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@500;600;700&family=Source+Sans+3:wght@400;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #060C0C; --bg-2: #0A1414; --panel: #0D1817; --panel-2: #112120; --line: rgba(140, 210, 195, .12); --line-2: rgba(140, 210, 195, .22);
  --ink: #E6EEEC; --ink-2: #BFD0CB; --muted: #82998F; --teal: #2FB89A; --teal-dim: #1A6F62;
  --st-ok: #34C79A; --st-warn: #F2B33D; --st-alert: #F0503C; --st-info: #6AA8E0;
  --st-ok-bg: rgba(52, 199, 154, .12); --st-warn-bg: rgba(242, 179, 61, .13); --st-alert-bg: rgba(240, 80, 60, .15);
  --g-ocean-1: #12393A; --g-ocean-2: #061517; --g-land: #1F3B37; --g-land-hi: #2F6157; --g-border: rgba(150, 225, 205, .42);
  --g-grat: rgba(140, 210, 195, .09); --g-glow: rgba(47, 184, 154, .28); --g-label: rgba(225, 242, 237, .78);
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.noc-loading { display: grid; place-items: center; height: 100vh; color: var(--muted); font-weight: 600; }

/* ---------- layout: header / [left | globe | right] / DC wall ---------- */
.noc-app { height: 100vh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; padding: 10px 14px 12px;
  background: radial-gradient(1200px 700px at 50% 45%, rgba(47, 184, 154, .07), transparent 70%), var(--bg); }
.noc-main { display: grid; grid-template-columns: minmax(300px, 22vw) minmax(0, 1fr) minmax(300px, 22vw); gap: 12px; min-height: 0; }
.noc-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.noc-side > h2 { white-space: nowrap; overflow: hidden; margin: 2px 4px 0; font-size: 13px; letter-spacing: .01em; color: var(--muted); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.noc-side > h2 .n { margin-left: auto; font-size: 11px; letter-spacing: .04em; }
.noc-panels { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }

/* ---------- header ---------- */
.noc-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.noc-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.noc-brand img { width: 30px; height: 30px; }
.noc-brand b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.noc-brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.noc-links { display: flex; gap: 2px; flex-wrap: wrap; min-width: 0; overflow: hidden; max-height: 30px; }
.noc-links a { padding: 6px 9px; border-radius: 0; font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.noc-links a:hover { background: var(--panel-2); color: #fff; }
.noc-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.noc-overall { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 0; background: var(--panel); border: 1px solid var(--line); }
.noc-overall .big { font-size: 13px; font-weight: 900; letter-spacing: .12em; padding: 4px 10px; border-radius: 0; }
.noc-overall .cnt { display: flex; gap: 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.noc-overall .cnt span { display: inline-flex; align-items: center; gap: 5px; }
.noc-meta { text-align: right; line-height: 1.25; }
.noc-meta .clock { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.noc-meta small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.noc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 0; background: var(--panel); font-size: 12px; font-weight: 800; cursor: pointer; color: var(--ink-2); }
.noc-btn:hover { background: var(--panel-2); color: #fff; }
.noc-btn svg { flex: none; }

/* ---------- status bits ---------- */
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--st-ok); }
.dot.warn { background: var(--st-warn); } .dot.alert { background: var(--st-alert); box-shadow: 0 0 0 3px rgba(240, 80, 60, .2); } .dot.info { background: var(--st-info); }
.chip { font-size: 10px; font-weight: 900; letter-spacing: .12em; padding: 3px 8px; border-radius: 0; text-transform: uppercase; flex: none; }
.chip.ok, .big.ok { background: var(--st-ok-bg); color: var(--st-ok); }
.chip.warn, .big.warn { background: var(--st-warn-bg); color: var(--st-warn); }
.chip.alert, .big.alert { background: var(--st-alert-bg); color: var(--st-alert); }
.big.alert { animation: noc-blink 2s ease-in-out infinite; }
@keyframes noc-blink { 50% { background: rgba(240, 80, 60, .32); } }

/* ---------- side panels ---------- */
.pnl { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 10px 14px; border-radius: 0; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); min-height: 0; flex: 1 1 0; overflow: hidden; }
.pnl::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--st-ok); }
.pnl.warn::before { background: var(--st-warn); } .pnl.alert::before { background: var(--st-alert); }
.pnl.alert { border-color: rgba(240, 80, 60, .35); }
.pnl-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pnl-head h3 { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnl-head h3 a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pnl-head .chip { margin-left: 8px; }
.pnl-head h3 { margin-right: auto; }
.pnl-val { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pnl-val b { white-space: nowrap; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.pnl-val span { font-size: 11.5px; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pnl-bar { display: flex; height: 5px; border-radius: 0; overflow: hidden; background: rgba(255, 255, 255, .06); gap: 2px; }
.pnl-bar i { display: block; height: 100%; }
.pnl-rows { flex: 1 1 0; display: flex; flex-direction: column; gap: 3px; min-height: 0; overflow: hidden; }
.pnl-row { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); min-width: 0; line-height: 1.35; }
.pnl-row .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pnl-row .v { margin-left: auto; flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.pnl-row .dot { width: 7px; height: 7px; box-shadow: none; }
a.pnl-row:hover .t { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.pnl-more { font-size: 11px; font-weight: 800; color: var(--teal); white-space: nowrap; flex: none; }
.pnl-more:hover { text-decoration: underline; }

/* ---------- globe ---------- */
.noc-globe { position: relative; min-height: 0; border-radius: 0; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(60% 60% at 50% 50%, rgba(47, 184, 154, .06), transparent 70%), var(--bg-2); }
.noc-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.g-over { position: absolute; z-index: 2; pointer-events: none; }
.g-over > * { pointer-events: auto; }
.g-title { top: 12px; left: 14px; }
.g-title b { display: block; font-size: 15px; font-weight: 800; }
.g-title span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.g-speed { top: 12px; right: 12px; display: flex; align-items: center; gap: 6px; }
.g-reset { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; margin-right: 6px; border-radius: 0; border: 1px solid var(--line-2); background: rgba(10, 20, 20, .8); color: var(--ink-2); font-size: 12px; font-weight: 800; cursor: pointer; }
.g-reset:hover { color: #fff; background: var(--teal-dim); }
.g-reset:active svg { transform: rotate(-90deg); }
.g-reset svg { transition: transform .2s; }
.g-speed small { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-right: 2px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 0; background: rgba(10, 20, 20, .8); border: 1px solid var(--line-2); }
.seg button { border: 0; background: transparent; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 0; font-size: 12px; font-weight: 800; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.seg button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.seg button[aria-pressed="true"] { background: var(--teal-dim); color: #fff; }
.g-legend { left: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 5px; padding: 9px 11px; border-radius: 0; background: rgba(8, 18, 18, .78); border: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--ink-2); }
.g-legend div { display: flex; align-items: center; gap: 7px; }
.g-legend .ln { width: 18px; height: 0; border-top: 2px solid var(--st-ok); }
.g-legend .ln.warn { border-color: var(--st-warn); } .g-legend .ln.alert { border-top-style: dashed; border-color: var(--st-alert); }
.lg-regions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.lg-regions span { display: inline-flex; align-items: center; gap: 6px; }
.lg-regions i { width: 12px; height: 9px; border-radius: 0; opacity: .85; }
.lg-toggle { margin-top: 4px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); border-radius: 0; padding: 4px 8px; font-size: 11px; font-weight: 700; color: var(--ink-2); cursor: pointer; text-align: left; }
.lg-toggle:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.lg-toggle b { color: var(--teal); }
.lg-toggle[aria-pressed="false"] b { color: var(--muted); }
.g-regions { left: 50%; transform: translateX(-50%); bottom: 12px; }
.g-regions .seg button { gap: 6px; }
.g-regions .dot { width: 7px; height: 7px; box-shadow: none; }
.g-refresh { right: 14px; bottom: 14px; font-size: 11px; font-weight: 700; color: var(--muted); text-align: right; }
.g-refresh button { margin-top: 4px; }

/* ---------- DC wall ---------- */
.noc-wall { display: flex; flex-direction: column; gap: 6px; }
.noc-wall > h2 { margin: 0 4px; font-size: 13px; letter-spacing: .01em; color: var(--muted); font-weight: 800; display: flex; gap: 14px; align-items: center; }
.noc-wall > h2 .leg { display: inline-flex; gap: 12px; font-size: 11px; letter-spacing: .04em; font-weight: 700; }
.noc-wall > h2 .leg span { display: inline-flex; align-items: center; gap: 5px; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 5px; }
.dct { position: relative; display: block; padding: 5px 7px 5px 9px; border-radius: 0; background: var(--panel); border: 1px solid var(--line); min-width: 0; cursor: pointer; }
.dct::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; border-radius: 0 3px 3px 0; background: var(--st-ok); }
.dct.warn::before { background: var(--st-warn); } .dct.alert::before { background: var(--st-alert); }
.dct.warn { background: linear-gradient(90deg, rgba(242, 179, 61, .10), var(--panel) 70%); }
.dct.alert { background: linear-gradient(90deg, rgba(240, 80, 60, .18), var(--panel) 75%); border-color: rgba(240, 80, 60, .4); }
.dct:hover, .dct.hl { border-color: rgba(255, 255, 255, .55); }
.dct b { display: flex; align-items: center; gap: 4px; font-size: 10.5px; letter-spacing: -.01em; font-weight: 800; white-space: nowrap; overflow: hidden; }
.dct b .rg { margin-left: auto; font-size: 9px; font-weight: 800; color: var(--muted); letter-spacing: .06em; }
.dct b .dot { width: 7px; height: 7px; box-shadow: none; }
.dct small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; font-variant-numeric: tabular-nums; }
.dct.warn small { color: #E9C37A; } .dct.alert small { color: #F7907F; }

/* ---------- hover card ---------- */
.noc-tip { position: fixed; z-index: 50; width: 300px; padding: 12px 14px; border-radius: 0; background: rgba(9, 20, 20, .96); border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); font-size: 12px; pointer-events: none; backdrop-filter: blur(6px); }
.noc-tip .hd { display: flex; align-items: center; gap: 8px; }
.noc-tip .hd b { font-size: 14px; font-weight: 800; }
.noc-tip .hd .chip { margin-left: auto; }
.noc-tip .loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; margin: 3px 0 8px; }
.noc-tip .loc img { width: 18px; height: 13px; border-radius: 0; }
.noc-tip .why { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.noc-tip .why div { display: flex; gap: 7px; align-items: flex-start; font-weight: 700; }
.noc-tip .why .dot { margin-top: 4px; width: 7px; height: 7px; box-shadow: none; }
.noc-tip dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; }
.noc-tip dt { color: var(--muted); font-weight: 600; }
.noc-tip dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.noc-tip .foot { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); color: var(--teal); font-weight: 800; font-size: 11px; }
/* side-panel pop-ups: the row the DC card was opened from, lists of DCs or computers, a check's details */
.noc-tip .hd b { overflow-wrap: anywhere; line-height: 1.3; }
.noc-tip .ctx { margin: 0 0 8px; padding: 6px 8px; border-radius: 0; border: 1px solid var(--line); }
.noc-tip .ctx small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.noc-tip .ctx div { display: flex; gap: 7px; align-items: flex-start; font-weight: 700; }
.noc-tip .ctx .dot, .noc-tip .tl .dot { flex: none; margin-top: 4px; width: 7px; height: 7px; box-shadow: none; }
.noc-tip .sec { margin: 8px 0 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.noc-tip .why + .sec, .noc-tip .loc + .sec { margin-top: 0; }
.noc-tip .tls { display: flex; flex-direction: column; gap: 2px; }
.noc-tip .tl { display: flex; gap: 7px; align-items: flex-start; min-width: 0; }
.noc-tip .tl b { flex: none; font-weight: 800; white-space: nowrap; }
.noc-tip .tl .tl-s { min-width: 0; margin-left: auto; padding-left: 8px; color: var(--muted); font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noc-tip .txt { margin: 6px 0 0; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.noc-tip .more { margin-top: 4px; color: var(--muted); font-weight: 700; }

/* ---------- shorter screens (e.g. 1366×768): headline values only, one-line DC tiles ---------- */
@media (max-height: 900px) {
  .noc-app { gap: 8px; padding: 8px 10px; }
  .pnl { padding: 7px 10px 7px 12px; gap: 3px; }
  .pnl-val b { font-size: 18px; }
  .pnl-bar { display: none; }
  .dct { padding: 4px 6px 4px 8px; }
  .dct small { display: none; }
  .noc-meta .clock { font-size: 17px; }
}
/* ---------- smaller screens: keep it usable, allow scrolling ---------- */
@media (max-width: 1280px) {
  .noc-links { display: none; }
  .noc-main { grid-template-columns: minmax(260px, 26vw) minmax(0, 1fr) minmax(260px, 26vw); }
}
@media (max-width: 1000px), (max-height: 700px) {
  .noc-app { height: auto; min-height: 100vh; }
  .noc-main { grid-template-columns: 1fr; }
  .noc-globe { height: 72vh; order: -1; }
  .pnl { flex: none; }
  .noc-head { flex-wrap: wrap; }
  .noc-right { margin-left: 0; flex-wrap: wrap; }
}

/* "click anywhere to go full screen" hint (browsers need a click or key press before going full screen) */
.noc-fs-hint { position: fixed; z-index: 60; left: 50%; top: 64px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 0; background: rgba(9, 20, 20, .94); border: 1px solid var(--teal-dim); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); font-size: 13px; font-weight: 700; color: var(--ink); transition: opacity .6s; pointer-events: auto; }
.noc-fs-hint svg { color: var(--teal); }
.noc-fs-hint button { border: 0; background: rgba(255, 255, 255, .06); color: var(--ink-2); width: 26px; height: 26px; border-radius: 0; cursor: pointer; font-size: 16px; line-height: 1; }
.noc-fs-hint button:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.noc-fs-hint.faded { opacity: .7; }
.noc-fs-hint.faded:hover { opacity: 1; }
.g-legend .lg-regions { display: grid; grid-template-columns: auto auto; gap: 4px 12px; }
.noc-btn.noc-back[hidden] { display: none; }
.noc-btn.noc-back:disabled { opacity: .45; cursor: default; }
/* DC wall: a mini flag in place of the status dot (the left bar carries the status) */
.dct b .dct-flag { flex: none; width: 14px; height: 10px; border-radius: 0; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.22); }
.dct b { gap: 5px; }
.dct { padding: 5px 5px 5px 8px; }
.dct b { gap: 4px; font-size: 10px; letter-spacing: -.025em; }
.dct b .dct-flag { width: 13px; height: 9px; }
.dct small { font-size: 9.5px; letter-spacing: -.01em; }

/* ---------- loading animation (ADR.loaderHtml): spinning globe, orbiting replication dots, real progress ---------- */
.adr-loader { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 64px 20px; color: var(--ld-muted); animation: adr-ld-in .35s ease-out both; }
.adr-loader-brand { font-weight: 800; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.adr-loader-globe { width: var(--ld-size, 132px); height: var(--ld-size, 132px); overflow: visible; }
.adr-loader-globe .g-body { fill: var(--ld-fill); stroke: var(--ld-ring); stroke-width: 1.4; }
.adr-loader-globe .g-lat { fill: none; stroke: var(--ld-faint); }
.adr-loader-globe .g-lat2 { opacity: .7; }
.adr-loader-globe .g-mer { transform-origin: 75px 75px; animation: adr-ld-mer 3.2s linear infinite; }
.adr-loader-globe .g-mer ellipse { fill: none; stroke: var(--ld-a); stroke-width: 1.5; opacity: .85; }
.adr-loader-globe .g-orbit { transform-origin: 75px 75px; animation: adr-ld-spin 2.4s linear infinite; }
.adr-loader-globe .g-orbit-b { animation-duration: 3.6s; animation-direction: reverse; }
.adr-loader-globe .g-path { fill: none; stroke: var(--ld-faint); stroke-dasharray: 2 6; }
.adr-loader-globe .g-sat { fill: var(--ld-a); filter: drop-shadow(0 0 4px var(--ld-glow)); }
.adr-loader-globe .g-sat-b { opacity: .8; }
.adr-loader-bar { width: 200px; max-width: 70vw; height: 3px; border-radius: 0; background: var(--ld-faint); overflow: hidden; }
.adr-loader-bar i { display: block; height: 100%; width: 4%; border-radius: 0; background: var(--ld-a); transition: width .25s ease-out; }
.adr-loader-cap { font-size: 13px; font-weight: 600; min-height: 1.4em; text-align: center; }
.adr-loader-cap .n { color: var(--ld-a); font-variant-numeric: tabular-nums; }
.adr-fade-in { animation: adr-ld-in .45s ease-out both; }
@keyframes adr-ld-mer { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
@keyframes adr-ld-spin { to { transform: rotate(360deg); } }
@keyframes adr-ld-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .adr-loader-globe .g-mer, .adr-loader-globe .g-orbit { animation-duration: 8s; } .adr-fade-in, .adr-loader { animation: none; } }

.noc-loading .adr-loader { --ld-size: 168px; --ld-a: var(--teal); --ld-muted: var(--muted); --ld-fill: #0B2524; --ld-ring: var(--g-border); --ld-faint: rgba(140,210,195,.16); --ld-glow: rgba(47,184,154,.6); gap: 22px; }

/* =====================================================================
   AD Report # 5 · Ops Dashboard audit layer: the Assurance Summary
   One screen with no scrolling at 1440 x 900 and larger: a running head, eight key figures, then three
   columns of ruled panels on white sheets. Sizes are in rem so the whole screen scales up on big displays.
   ===================================================================== */
:root {
  color-scheme: light;
  --bg: #E4E8EC; --sheet: #FFFFFF; --well: #F3F5F7;
  --ink: #1C2228; --ink-2: #2C343C; --muted: #5A6672; --rule: #E3E7EB; --line: #C9D0D8; --line-strong: #1C2228; --frame: #121820;
  --accent: #1F3A5F; --accent-ink: #FFFFFF; --accent-hover: #142A47; --accent-soft: rgba(31, 58, 95, .08);
  --ok: #2E6B47; --warn: #8A5A00; --alert: #A3221B;
  --d-pass: #DCE8DF; --d-pass-e: #9DBBA6; --d-warn: #E3A93B; --d-warn-e: #8A5A00; --d-fail: #A3221B; --d-fail-e: #6E1712; --d-info: #FFFFFF; --d-info-e: #8A949E;
  --meter: #EEF1F4; --m-ok: #2E6B47; --m-warn: #E3A93B; --m-alert: #A3221B;
  --shadow: 0 1px 2px rgba(20,30,40,.08), 0 6px 18px rgba(20,30,40,.07);
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ld-muted: #5A6672; --ld-fill: #FFFFFF; --ld-ring: #1F3A5F; --ld-faint: rgba(31,58,95,.25);
  --g-land: #FFFFFF; --g-border: #1F3A5F; --g-grat: rgba(31,58,95,.2); --g-glow: rgba(31,58,95,.08);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1419; --sheet: #1A2129; --well: #212A33;
  --ink: #E3E8ED; --ink-2: #C9D1D9; --muted: #98A4B0; --rule: #2A333D; --line: #3A4652; --line-strong: #C9D1D9; --frame: #F2F5F8;
  --accent: #8FB3E0; --accent-ink: #0F1419; --accent-hover: #A9C6EA; --accent-soft: rgba(143, 179, 224, .12);
  --ok: #7CC49A; --warn: #E3B25C; --alert: #F08A80;
  --d-pass: #2C4A39; --d-pass-e: #4E7A60; --d-warn: #E3B25C; --d-warn-e: #B88A35; --d-fail: #E0685D; --d-fail-e: #F08A80; --d-info: #1A2129; --d-info-e: #7D8894;
  --meter: #2A333D; --m-ok: #7CC49A; --m-warn: #E3B25C; --m-alert: #E0685D;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.3);
  --ld-muted: #98A4B0; --ld-fill: #1A2129; --ld-ring: #8FB3E0; --ld-faint: rgba(143,179,224,.3);
  --g-land: #1A2129; --g-border: #8FB3E0; --g-grat: rgba(143,179,224,.25); --g-glow: rgba(143,179,224,.1);
}

/* type follows the screen's width and height together, so the page grows into large screens */
html { font-size: 13.5px; font-size: clamp(13.5px, min(.75vw, 1.5vh), 22px); }
body { font-size: max(14px, 1rem); }
html, body { background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.4; height: auto; min-height: 100%; }
a { color: inherit; }
.adr-loader-brand { font-family: var(--serif); font-weight: 700; color: var(--accent); }

/* colour helpers */
.t-ok { color: var(--ok); } .t-warn { color: var(--warn); } .t-alert { color: var(--alert); } .t-muted { color: var(--muted); } .t-ink { color: var(--ink); }
.b { font-weight: 700; } .r { text-align: right; } .nw { white-space: nowrap; }

/* ---------- frame ---------- */
.as-app { min-height: 100vh; display: flex; flex-direction: column; }
.as-head { background: var(--sheet); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.2rem; padding: .4rem 1.45rem; min-height: 3.5rem; box-sizing: border-box; }
.as-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; min-width: 0; }
.as-brand { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--accent); text-decoration: none; }
.as-brand:hover { color: var(--accent-hover); }
.as-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--frame); }
.as-meta { color: var(--muted); font-size: .96rem; }
.as-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.as-count { color: var(--muted); font-variant-numeric: tabular-nums; padding-right: .3rem; font-size: .96rem; }
.as-btn { display: inline-flex; align-items: center; gap: .4rem; height: 2.5rem; min-height: 36px; padding: 0 .7rem; border: 1px solid var(--line); background: var(--sheet); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 0; }
.as-btn:hover { border-color: var(--line-strong); }
.as-btn:focus-visible, .as-app a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.as-btn.as-link { border-color: transparent; color: var(--accent); }
.as-btn.as-link:hover { background: var(--accent-soft); }
.as-btn.as-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.as-btn.as-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.as-btn.spinning svg { animation: as-spin .8s linear infinite; }
@keyframes as-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .as-btn.spinning svg { animation: none; } }
/* light / dark switch (the dashboard has no site.css, so it is styled here) */
.theme-toggle { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: .5rem; height: 2.5rem; min-height: 36px; padding: 0 .7rem 0 .3rem; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); cursor: pointer; font-weight: 600; }
.theme-toggle:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle .tt-track { position: relative; display: inline-flex; align-items: center; justify-content: space-between; width: 52px; height: 26px; padding: 0 6px; box-sizing: border-box; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.theme-toggle .tt-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--accent); transition: transform .2s ease; }
.theme-toggle[aria-checked="true"] .tt-knob { transform: translateX(26px); }
.theme-toggle .tt-sun, .theme-toggle .tt-moon { position: relative; z-index: 1; }
.theme-toggle[aria-checked="false"] .tt-sun, .theme-toggle[aria-checked="true"] .tt-moon { color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .theme-toggle .tt-knob { transition: none; } }

.as-body { flex: 1 1 auto; padding: 1rem 1.45rem 1.1rem; display: flex; flex-direction: column; gap: 1rem; }

/* ---------- key figures ---------- */
.as-kpis { margin: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); background: var(--sheet); border-top: 3px solid var(--line-strong); box-shadow: var(--shadow); }
.as-kpi { display: block; padding: .55rem 1rem .6rem; border-right: 1px solid var(--rule); text-decoration: none; color: inherit; min-width: 0; }
.as-kpi:last-child { border-right: 0; }
.as-kpi:hover { background: var(--accent-soft); }
.as-kpi dt { color: var(--ink-2); font-size: .85rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-kpi .v { margin: .05rem 0 0; font-family: var(--serif); font-weight: 700; font-size: 1.95rem; line-height: 1.1; color: var(--frame); font-variant-numeric: tabular-nums; }
.as-kpi .v.warn { color: var(--warn); } .as-kpi .v.alert { color: var(--alert); } .as-kpi .v.ok { color: var(--frame); }
.as-kpi .s { margin: .1rem 0 0; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- columns of panels ---------- */
.as-cols { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, .92fr); gap: 1rem; align-items: stretch; }
.as-col > .as-panel:last-child, .as-col > .as-grow { flex: 1 1 auto; }
.as-col.as-col4 { display: none; }
/* on a desktop screen the dashboard is exactly one screen high; optional rows fill what room is left */
@media (min-width: 1280px) and (min-height: 700px) {
  .as-app { height: 100vh; }
  .as-body, .as-cols, .as-col { min-height: 0; }
  .as-cols { grid-template-rows: minmax(0, 1fr); }
}
.as-t tr.as-sub th { padding-top: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.extra[hidden], .as-sub[hidden] { display: none !important; }
.as-findings li.extra .fid { color: var(--warn); }
.as-findings li.extra.sev-low .fid { color: var(--muted); }
.as-findings li.extra .fa { text-transform: capitalize; }
@media (min-width: 1760px) {
  .as-cols { grid-template-columns: minmax(0, 1.12fr) minmax(0, .96fr) minmax(0, .88fr) minmax(0, 1.1fr); }
  .as-col.as-col4 { display: flex; }
}
/* DC status wall */
.as-wall { display: flex; flex-direction: column; gap: .55rem; }
.as-wall { gap: .35rem; }
.as-wall .wr { font-size: .8rem; font-weight: 700; color: var(--ink-2); letter-spacing: .04em; margin-bottom: .2rem; }
.as-wall .wr small { font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: .3rem; }
.as-wall .wc { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.9rem, 1fr)); gap: .16rem; }
.as-wall .as-key { margin-top: .1rem; }
.as-chip { display: block; font: 600 .78rem/1.2 var(--font); font-variant-numeric: tabular-nums; letter-spacing: .01em; padding: .13rem .35rem; border-left: 3px solid; text-decoration: none; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-chip.ok { border-color: var(--d-pass-e); background: color-mix(in srgb, var(--d-pass) 35%, transparent); }
.as-chip.warn { border-color: var(--d-warn-e); background: color-mix(in srgb, var(--d-warn) 22%, transparent); }
.as-chip.alert { border-color: var(--d-fail-e); background: color-mix(in srgb, var(--d-fail) 12%, transparent); color: var(--alert); font-weight: 700; }
.as-chip:hover { outline: 1px solid var(--accent); text-decoration: none; }
.as-barcell { width: 45%; }
.as-bar { display: block; height: .6rem; background: var(--meter); }
.as-bar i { display: block; height: 100%; background: var(--d-warn-e); }
.as-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.as-panel { background: var(--sheet); box-shadow: var(--shadow); padding: .85rem 1.15rem .8rem; min-width: 0; }
.as-panel h2 { margin: 0 0 .35rem; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.25; color: var(--frame); }
.as-panel h2 small { font-family: var(--font); font-weight: 400; font-size: .92rem; color: var(--muted); }
.as-panel a { text-decoration: none; }
.as-panel a:hover { text-decoration: underline; color: var(--accent); }
.as-none { margin: .2rem 0; color: var(--ok); font-weight: 600; }

/* tables */
.as-t { width: 100%; border-collapse: collapse; font-size: 1rem; }
.as-t thead th { text-align: left; font-size: .9rem; font-weight: 700; padding: .25rem .6rem .25rem 0; border-top: 2px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.as-t thead th.r { text-align: right; }
.as-t th, .as-t td { padding: .17rem .6rem .17rem 0; vertical-align: middle; }
.as-t tr > :last-child { padding-right: 0; }
.as-t tbody tr { border-bottom: 1px solid var(--rule); }
.as-t tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.as-t tfoot tr { border-bottom: 2px solid var(--line-strong); font-weight: 700; }
.as-t tfoot th { text-align: left; }
.as-t td { font-variant-numeric: tabular-nums; }
.as-t-plain tbody tr:first-child { border-top: 1px solid var(--rule); }
.as-t-plain tbody th { font-weight: 400; color: var(--ink-2); white-space: normal; }

/* control-area squares and the key */
.as-dots { display: flex; flex-wrap: wrap; gap: 2px; }
.as-dots i, .as-key i { display: inline-block; width: .75rem; height: .75rem; box-sizing: border-box; border: 1px solid; }
.as-dots i.pass, .as-key i.pass { background: var(--d-pass); border-color: var(--d-pass-e); }
.as-dots i.warn, .as-key i.warn { background: var(--d-warn); border-color: var(--d-warn-e); }
.as-dots i.fail, .as-key i.fail { background: var(--d-fail); border-color: var(--d-fail-e); }
.as-dots i.info, .as-key i.info { background: var(--d-info); border-color: var(--d-info-e); }
.as-key { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-top: .45rem; font-size: .9rem; color: var(--ink-2); }
.as-key span { display: inline-flex; align-items: center; gap: .35rem; }

/* findings */
.as-findings { list-style: none; margin: 0; padding: 0; }
.as-findings li { display: flex; gap: .7rem; align-items: baseline; border-top: 1px solid var(--rule); padding: .3rem 0; }
.as-findings .fid { font-family: var(--serif); font-weight: 700; color: var(--alert); min-width: 1.5rem; }
.as-findings li > div { min-width: 0; flex: 1; }
.as-findings .fh { display: flex; justify-content: space-between; gap: .6rem; }
.as-findings .fh a { font-weight: 700; color: var(--frame); }
.as-findings .fa { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.as-findings .ft { color: var(--ink-2); font-size: .92rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.as-findings .fh a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-findings .fh { min-width: 0; }
.as-findings .none { color: var(--ok); font-weight: 600; display: block; }

/* region health bar */
.as-hbar { display: flex; height: .72rem; width: 6rem; background: var(--meter); }
.as-hbar i.pass { background: var(--d-pass-e); } .as-hbar i.warn { background: var(--d-warn); } .as-hbar i.fail { background: var(--d-fail); }

/* coverage meters */
.as-cov { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .6rem; padding: .32rem 0 .42rem; border-top: 1px solid var(--rule); color: inherit; }
.as-cov:hover { text-decoration: none !important; background: var(--accent-soft); }
.as-cov .cl small { color: var(--muted); font-size: .88rem; }
.as-cov b { font-variant-numeric: tabular-nums; }
.as-meter { grid-column: 1 / -1; height: .42rem; background: var(--meter); margin-top: .28rem; position: relative; }
.as-meter i { position: absolute; left: 0; top: 0; bottom: 0; }
.as-meter i.ok { background: var(--m-ok); } .as-meter i.warn { background: var(--m-warn); } .as-meter i.alert { background: var(--m-alert); }

/* the opinion */
.as-opinion { border: 2px solid var(--line-strong); box-shadow: var(--shadow); }
.as-opinion .op-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.as-opinion .op-k { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--muted); }
.as-opinion .op-v { font-family: var(--serif); font-weight: 700; font-size: 2.35rem; line-height: 1.1; }
.as-opinion .op-score { text-align: right; }
.as-opinion .op-score b { display: block; font-family: var(--serif); font-size: 1.95rem; line-height: 1.1; color: var(--frame); }
.as-opinion .op-score small { color: var(--muted); font-size: .9rem; }
.as-stack { display: flex; height: .6rem; margin: .6rem 0 .3rem; }
.as-stack i.pass { background: var(--m-ok); } .as-stack i.warn { background: var(--d-warn); } .as-stack i.fail { background: var(--d-fail); } .as-stack i.info { background: var(--d-info-e); }
.as-opinion .op-n { font-size: .9rem; color: var(--muted); margin-bottom: .4rem; }
.as-opinion p { margin: 0; color: var(--ink-2); }
.as-opinion p a { color: var(--accent); font-weight: 600; }

/* forest at a glance */
.as-glance { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.as-glance dt, .as-glance dd { padding: .2rem 0; border-top: 1px solid var(--rule); }
.as-glance dt { color: var(--ink-2); padding-right: .6rem; }
.as-glance dd { margin: 0; font-weight: 600; }

/* ---------- smaller windows: the columns stack and the page scrolls ---------- */
/* entity tooltips (the same as on the report pages): hover any DC name */
:root { --tip-bg: #1C2228; --tip-edge: transparent; }
:root[data-theme="dark"] { --tip-bg: #0B0F13; --tip-edge: #3A4652; }
.ent-tip { position: absolute; z-index: 50; pointer-events: none; min-width: 210px; max-width: 320px; padding: 11px 13px; border-radius: 0; background: var(--tip-bg); color: #FFF; border: 1px solid var(--tip-edge); font-size: 12px; line-height: 1.45; box-shadow: 0 8px 22px rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 4px; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .12s, transform .12s, visibility 0s .12s; }
.ent-tip.on { opacity: 1; visibility: visible; transform: none; transition: opacity .12s, transform .12s; }
.ent-tip .et-head { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.ent-tip .et-head b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
.ent-tip .muted { color: #CFC6B5; }
.ent-tip .mono { font-size: 11px; color: #CFC6B5; }
.ent-tip .et-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.ent-tip .et-badges > span { display: inline-flex; gap: 6px; align-items: center; color: #CFC6B5; }
.ent-tip .badge { font-size: 10px; padding: 2px 8px; }
.ent-tip .et-foot { margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.14); color: #8FE0D4; font-weight: 700; }
/* DCDiag-by-test pop-up: one line per failing DC */
.ent-tip.as-dttip { max-width: 360px; }
.ent-tip .et-dc { display: flex; gap: 7px; align-items: center; min-width: 0; }
.ent-tip .et-dc i { flex: none; width: .7rem; height: .7rem; box-sizing: border-box; border: 1px solid; }
.ent-tip .et-dc i.pass { background: var(--d-pass); border-color: var(--d-pass-e); }
.ent-tip .et-dc i.warn { background: var(--d-warn); border-color: var(--d-warn-e); }
.ent-tip .et-dc i.fail { background: var(--d-fail); border-color: var(--d-fail-e); }
.ent-tip .et-dc b { flex: none; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; white-space: nowrap; }
.ent-tip .et-dc span { min-width: 0; margin-left: auto; padding-left: 8px; color: #CFC6B5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-t tr[data-dt] { cursor: default; }
.ent-tip .flag { box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.ent-tip .flag { width: 20px; height: 15px; object-fit: cover; vertical-align: -2px; display: inline-block; flex-shrink: 0; }
.ent-tip .with-flag { display: flex; align-items: center; gap: 7px; }
.ent-tip .badge { display: inline-block; font-weight: 700; white-space: nowrap; }
.ent-tip .badge.pass { background: #D5E3DD; color: #0B4743; } .ent-tip .badge.warn { background: #F3E2BD; color: #6B4600; }
.ent-tip .badge.fail { background: #F2D3D0; color: #7A1A14; } .ent-tip .badge.info, .ent-tip .badge.neutral { background: #E4E8EC; color: #3A4652; }
.ent-tip .et-note { margin-top: 2px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.14); color: #FFF; }
.ent-tip .et-foot { color: #A9C7EA; }
a.ent-link { text-decoration: none; }
.as-findings .ft a.ent-link { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }

@media (max-width: 1279px) {
  .as-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-col:nth-child(3), .as-col.as-col4 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .as-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .as-kpi:nth-child(4) { border-right: 0; }
  .as-kpi:nth-child(-n+4) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  .as-cols, .as-col:nth-child(3), .as-col.as-col4 { grid-template-columns: minmax(0, 1fr); display: flex; flex-direction: column; }
  .as-cols { display: flex; flex-direction: column; }
  .as-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-kpi { border-bottom: 1px solid var(--rule); }
  .as-kpi:nth-child(2n) { border-right: 0; }
  .as-head { padding: .6rem 1rem; }
  .as-body { padding: .8rem 1rem 1rem; }
  .as-tools .as-btn span, .as-count { display: none; }
  .as-col { width: 100%; }
  .as-panel { overflow-x: auto; }
  .as-findings .fh { flex-wrap: wrap; }
}
@media print {
  .as-tools { display: none; }
  .as-app { min-height: 0; }
  .as-panel, .as-kpis { box-shadow: none; border: 1px solid var(--line); }
}
