/* Content Exchange MCR dashboard. Plain CSS, no build step.
   The look (October 18th, 2026): the MCR's, from the Tata Dish Connectivity page (mcr/mcr.css, loaded
   first): its fonts, its dark-first palette and light theme, its glow and blueprint grid, and the
   shared bar (mcr/bar.js). Dark is the default; <html data-theme="light"> comes from mcr/theme.js.
   The neutrals below point at --mcr-*; the colours that carry meaning keep their own values per theme:
   red only for what is red now, green only for what recovered, a blue ramp for how far an incident
   went (--o-*, validated as an ordinal ramp in both themes), the alarm families (--fam-*) and the
   reserved status colours (--st-*). One accent (Tata's cyan) for interaction. The --glass-* names stay
   as the panel edge and shadow. Tokens read by charts (tok()) are plain colours, never color-mix(). */

:root {
  color-scheme: dark;
  --page: var(--mcr-bg);
  --surface-1: var(--mcr-surface);
  --surface-2: var(--mcr-surface-3);
  --surface-solid: var(--mcr-surface);
  --surface-raised: var(--mcr-surface-2);
  --wash: rgba(230, 237, 243, 0.06);
  --text-primary: var(--mcr-ink);
  --text-secondary: #b8c4cf;
  --text-muted: var(--mcr-muted);
  --grid: var(--mcr-line);
  --axis: var(--mcr-line-2);
  --border: var(--mcr-line-2);
  --link: var(--mcr-accent);
  --good-text: var(--mcr-ok);
  --focus: var(--mcr-accent);

  /* panels */
  --glass-edge: var(--mcr-line);
  --glass-shadow: var(--mcr-shadow);
  --glass-shadow-up: var(--mcr-shadow-up);
  --red-edge: rgba(240, 82, 82, 0.48);
  --red-tint: rgba(232, 72, 72, 0.10);
  --warn-edge: rgba(250, 178, 25, 0.50);
  --warn-tint: rgba(250, 178, 25, 0.10);
  --tally-red: #ff4d4d;

  /* how far an incident went: back under 30 min, 30 min or more, posted (one hue, dark to light), still open */
  --o-short: #184f95;
  --o-long: #3987e5;
  --o-posted: #9ec5f4;
  --o-open: #d03b3b;

  /* alarm families: categorical slots 1 to 6, fixed order */
  --fam-outage: #3987e5;
  --fam-content: #d95926;
  --fam-transport: #199e70;
  --fam-bitrate: #c98500;
  --fam-captions: #d55181;
  --fam-other: #008300;
  --series-1: #3987e5;
  --series-2: #d95926;   /* categorical slot 2: the partner leg */
  --series-3: #199e70;
  --series-4: #c98500;

  /* reserved status colours, never themed */
  --st-good: #0ca30c;
  --st-warning: #fab219;
  --st-serious: #ec835a;
  --st-critical: #d03b3b;
  --st-neutral: #898781;

  /* sequential blue ramp, light to dark */
  --seq-100: #cde2fb; --seq-150: #b7d3f6; --seq-200: #9ec5f4; --seq-250: #86b6ef;
  --seq-300: #6da7ec; --seq-350: #5598e7; --seq-400: #3987e5; --seq-450: #2a78d6;
  --seq-500: #256abf; --seq-550: #1c5cab; --seq-600: #184f95; --seq-650: #104281; --seq-700: #0d366b;
  --seq-direction: -1;   /* 1: low values light (light mode); -1: low values dark (dark mode) */

  --font: var(--mcr-f-body);
  --font-display: var(--mcr-f-display);
  --font-mono: var(--mcr-f-mono);
  --radius: 12px;
  --radius-sm: 9px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --wash: rgba(15, 26, 36, 0.05);
  --text-secondary: #303e4b;
  --red-edge: rgba(208, 59, 59, 0.45);
  --red-tint: rgba(208, 59, 59, 0.06);
  --warn-edge: rgba(214, 150, 0, 0.60);
  --warn-tint: rgba(250, 178, 25, 0.10);
  --o-short: #86b6ef;
  --o-long: #2a78d6;
  --o-posted: #104281;
  --fam-outage: #2a78d6;
  --fam-content: #eb6834;
  --fam-transport: #1baf7a;
  --fam-bitrate: #eda100;
  --fam-captions: #e87ba4;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --seq-direction: 1;
}

/* ------------------------------------------------------------------------------------------ */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font: 14.5px/1.45 var(--font);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-width: 1024px;
  min-height: 100vh;
}
/* above the canvas's fixed grid (mcr.css, body.mcr-canvas::before) */
#filters, main, footer { position: relative; z-index: 1; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; font-stretch: 88%; line-height: 1.15; letter-spacing: .005em; }
.muted { color: var(--text-secondary); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: .9em; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* one recipe for every panel */
.card, .tile, .cand, .banner, .bx {
  background: var(--surface-1);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}

/* ---- the bar's Content Exchange items (mcr/bar.js holds the bar) --------------------------- */
.fresh { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.mcr-nav .nav-ext svg { width: 11px; height: 11px; }
/* on the homepage the bar is the MCR's alone */
body.on-home .mcr-sep, body.on-home .mcr-switch, body.on-home .mcr-slot { display: none; }
body.on-home .mcr-nav { visibility: hidden; }

/* segmented controls (time range): Tata's, an accent pill on the one chosen */
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--glass-edge); border-radius: 10px; background: var(--surface-raised); }
.seg button {
  border: 0; background: transparent; padding: 5px 12px; cursor: pointer; color: var(--text-muted); border-radius: 7px;
  font-size: 13px; font-weight: 650; display: inline-flex; align-items: center; gap: 5px; transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.seg button:hover { color: var(--text-primary); }
.seg button[aria-pressed="true"] { background: var(--mcr-accent); color: var(--mcr-accent-ink);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--mcr-accent) 30%, transparent); }
.seg button[aria-pressed="true"] .check { display: inline-block; }
.seg .check { display: none; width: 12px; height: 12px; }
.seg.small button { padding: 3px 9px; font-size: 12.5px; }

/* ---- filter row -------------------------------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  max-width: 1680px; margin: 0 auto; padding: 18px 24px 4px;
}
.filters:empty { display: none; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--glass-edge); border-radius: 999px; background: var(--surface-raised);
  padding: 5px 12px 5px 10px; font-size: 13px; font-weight: 600; color: var(--text-muted); transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--axis); color: var(--text-primary); }
.chip[aria-pressed="true"] { color: var(--text-primary); border-color: var(--mcr-accent); background: var(--mcr-accent-soft); }
.chip .sw { width: 10px; height: 10px; border-radius: 3px; border: 2px solid currentColor; background: transparent; }
.chip[aria-pressed="true"] .sw { background: currentColor; }
.search {
  width: 260px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--glass-edge);
  background: var(--surface-raised); color: var(--text-primary); transition: border-color .15s;
}
.search:focus { border-color: var(--mcr-accent); outline: 0; }
.search::placeholder { color: var(--text-muted); }
.filters label.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.filters select, .inline-select {
  height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--glass-edge); background: var(--surface-raised); font-size: 13px;
}
.filter-label { font-size: 12px; color: var(--text-secondary); margin-right: -6px; }
.utc-note { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; color: var(--text-muted); }

/* ---- layout ------------------------------------------------------------------------------ */
main { max-width: 1680px; margin: 0 auto; padding: 12px 24px 40px; }
.view { transition: opacity 0.15s ease; }
.view.is-loading { opacity: 0.55; pointer-events: none; }
.grid { display: grid; gap: 16px; }
.grid + .grid, .grid + .card, .card + .grid, .card + .card { margin-top: 16px; }
.cols-2-1 { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); }
.cols-1-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols-3-1 { grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr); }
@media (max-width: 1180px) {
  .cols-2-1, .cols-1-1, .cols-3-1 { grid-template-columns: minmax(0, 1fr); }
}

.card { border-radius: var(--radius); padding: 16px 18px 18px; min-width: 0; }
.card-h { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.card-h .titles { flex: 1; min-width: 0; }
.card-h h2 { font-size: 16px; }
.card-h .sub { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.card-h .actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn {
  border: 1px solid var(--glass-edge); background: var(--surface-raised); border-radius: 9px;
  padding: 4px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-secondary); white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}
.btn:hover { border-color: var(--axis); color: var(--text-primary); }
.btn.primary { background: var(--mcr-accent); border-color: transparent; color: var(--mcr-accent-ink); }
.btn.primary:hover { filter: brightness(1.06); color: var(--mcr-accent-ink); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.chart-card .table-box { display: none; }
.chart-card[data-view="table"] .chart-box { display: none; }
.chart-card[data-view="table"] .table-box { display: block; max-height: 520px; overflow: auto; }
.chart { width: 100%; }
.empty { padding: 28px 8px; text-align: center; color: var(--text-secondary); font-size: 13px; }
.note-line { font-size: 12px; color: var(--text-secondary); margin-top: 8px; }

/* ---- legend ------------------------------------------------------------------------------ */
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-secondary); margin: 0 0 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px var(--surface-solid), 0 0 0 3px var(--text-muted); }
.scale { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); }
.scale .ramp { width: 120px; height: 10px; border-radius: 2px; display: inline-block; }
.scale .zero { width: 10px; height: 10px; border-radius: 2px; display: inline-block; background: var(--grid); }

/* ---- stat tiles -------------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1300px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.tile-label { font-size: 12.5px; color: var(--text-muted); }
.tile-value { font-family: var(--font-display); font-stretch: 80%; font-size: 28px; font-weight: 750; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile-value.small { font-size: 22px; }
.tile-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 550; }
.status svg { flex-shrink: 0; }

/* ---- tables ------------------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl th {
  text-align: left; font-family: var(--font-display); font-stretch: 85%; font-weight: 700; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-muted); padding: 7px 8px; border-bottom: 1px solid var(--axis); white-space: nowrap; position: sticky; top: 0;
  background: var(--surface-solid); z-index: 1;
}
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--text-primary); }
.tbl th .arrow { font-size: 10px; margin-left: 3px; color: var(--text-muted); }
.tbl td { padding: 6px 8px; border-bottom: 1px solid var(--grid); vertical-align: top; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl tr.row td { transition: background .15s; }
.tbl tr.row:hover td { background: var(--surface-raised); }
.tbl tr.clickable { cursor: pointer; }
.tbl .sec { display: block; font-size: 12px; color: var(--text-secondary); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl tr.detail td { background: var(--wash); padding: 10px 14px 12px 36px; }
.tbl .exp { border: 0; background: transparent; cursor: pointer; padding: 0 4px 0 0; color: var(--text-secondary); font-size: 11px; width: 18px; }
.tbl .exp[aria-expanded="true"] { transform: rotate(90deg); }
.more-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--text-secondary); }
.detail-grid { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 4px 14px; font-size: 13px; }
.detail-grid dt { color: var(--text-secondary); }
.detail-grid dd { margin: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  border: 1px solid var(--border); background: var(--wash); border-radius: 999px;
  padding: 0 8px; font-size: 12px; line-height: 20px; color: var(--text-primary);
}
.badge svg { flex-shrink: 0; }
a.badge:hover { text-decoration: none; background: var(--surface-2); border-color: var(--axis); }
.code {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; line-height: 18px; padding: 0 6px; margin: 1px 4px 1px 0;
  border-radius: 4px; background: var(--wash); color: var(--text-secondary); white-space: nowrap;
}
.fam { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fam .sw { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.sev { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.sev.none { font-weight: 400; color: var(--text-secondary); }

/* ---- bar list (noisiest objects) --------------------------------------------------------- */
.barlist { list-style: none; margin: 0; padding: 0; }
.barlist li { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 10px; align-items: center; padding: 4px 0; }
.barlist .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.barlist .track { display: flex; align-items: center; gap: 6px; min-width: 0; }
.barlist .bar { height: 12px; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.barlist .val { font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.barlist li:hover .bar { filter: brightness(1.12); }

/* ---- patterns ---------------------------------------------------------------------------- */
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.cand { border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cand-h { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; }
.cand-h a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cand .meta { font-size: 12px; color: var(--text-secondary); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.cand .summary { font-size: 13px; }
.cand .findings { display: flex; flex-wrap: wrap; gap: 5px; }
.finding { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-secondary); white-space: nowrap; }
.cand .foot { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.inline-msg { font-size: 12px; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 5px; }
.inline-msg.err { color: var(--text-primary); }
.mass { list-style: none; margin: 0; padding: 0; }
.mass li { padding: 9px 0; border-bottom: 1px solid var(--grid); }
.mass li:last-child { border-bottom: 0; }
.mass .names { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; }

/* ---- object page ------------------------------------------------------------------------- */
.obj-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.obj-head h1 { font-size: 20px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; font-size: 13px; }
.facts div { display: flex; gap: 6px; }
.facts dt { color: var(--text-secondary); }
.facts dd { margin: 0; }

/* ---- notes and forms --------------------------------------------------------------------- */
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { padding: 10px 0; border-bottom: 1px solid var(--grid); }
.notes li:last-child { border-bottom: 0; }
.notes .nh { font-size: 12px; color: var(--text-secondary); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.notes .nb { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 3px; font-size: 13.5px; }
.tag { font-size: 11px; padding: 0 6px; border-radius: 4px; background: var(--wash); color: var(--text-secondary); }
.note-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.note-form textarea {
  width: 100%; min-height: 64px; resize: vertical; padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-edge); background: var(--surface-raised); transition: border-color .15s;
}
.note-form textarea:focus { border-color: var(--mcr-accent); outline: 0; }
.note-form .row { display: flex; align-items: center; gap: 10px; }

/* ---- reports ----------------------------------------------------------------------------- */
.report-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.report-list li a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--text-primary); }
.report-list li a:hover { background: var(--wash); text-decoration: none; }
.report-list li a[aria-current="true"] { background: var(--mcr-accent-soft); font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mcr-accent) 40%, transparent); }
.report-list .d { font-size: 12px; color: var(--text-secondary); display: block; font-weight: 400; }
.md { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.md h2 { font-size: 19px; margin: 4px 0 10px; }
.md h3 { font-size: 15.5px; margin: 18px 0 6px; }
.md h4, .md h5, .md h6 { font-size: 14px; margin: 14px 0 4px; }
.md p { margin: 8px 0; }
.md ul, .md ol { margin: 6px 0; padding-left: 22px; }
.md li { margin: 2px 0; }
.md code { font: 12px var(--font-mono); background: var(--wash); padding: 1px 5px; border-radius: 4px; }
.md pre { background: var(--wash); padding: 10px 12px; border-radius: 8px; overflow: auto; }
.md pre code { background: transparent; padding: 0; }
.md blockquote { margin: 8px 0; padding: 2px 12px; border-left: 3px solid var(--axis); color: var(--text-secondary); }
.md hr { border: 0; border-top: 1px solid var(--grid); margin: 16px 0; }
.md table { border-collapse: collapse; margin: 10px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.md th, .md td { border-bottom: 1px solid var(--grid); padding: 5px 10px; text-align: left; }
.md th { border-bottom-color: var(--axis); color: var(--text-muted); font-family: var(--font-display); font-stretch: 85%; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; }
.report-meta { font-size: 12px; color: var(--text-secondary); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; }

/* ---- chart tooltip (ECharts appends it inside the chart box) ----------------------------- */
.tt { font: 12px/1.45 var(--font); color: var(--text-primary); min-width: 160px; max-width: 360px; white-space: normal; }
.tt-h { font-weight: 600; margin-bottom: 4px; overflow-wrap: anywhere; }
.tt-s { color: var(--text-secondary); }
.tt-row { display: flex; align-items: center; gap: 7px; }
.tt-row b { font-variant-numeric: tabular-nums; min-width: 22px; }
.tt-key { width: 12px; height: 3px; border-radius: 2px; flex-shrink: 0; }
.tt-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1px 10px; }
.tt-grid span:nth-child(odd) { color: var(--text-secondary); }

/* ---- footer ------------------------------------------------------------------------------ */
footer { max-width: 1680px; margin: 0 auto; padding: 0 24px 28px; font-size: 12.5px; color: var(--text-muted); display: flex; gap: 16px; }
.banner { padding: 10px 14px; border-radius: var(--radius-sm); display: flex; gap: 8px; align-items: center; }

@media (forced-colors: active) {
  .barlist .bar, .legend .sw, .fam .sw { forced-color-adjust: none; }
}

/* ---- Board: the penalty box (October 7th, 2026) ---------------------------------------- */
.btn.refresh { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 13px; color: var(--text-primary); }
.btn.refresh.busy svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bh-updated { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-right { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; }
.f-right .utc-note { margin-left: 0; }
.gl { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.gl .f { fill: currentColor; stroke: none; }
.lamp { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--st-good); }
.lamp.red { background: var(--tally-red); box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.22); }

.bx { position: relative; overflow: hidden; border-radius: 16px; padding: 18px; margin-top: 4px; }
.bx.hot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--st-critical); }
.bx-head { display: flex; align-items: flex-end; gap: 26px; margin-bottom: 16px; }
.bx-hero { display: flex; align-items: flex-end; gap: 14px; min-width: 0; }
.bx-fig { font-family: var(--font-display); font-stretch: 78%; font-size: 64px; line-height: .86; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.bx-lbl { font-family: var(--font-display); font-stretch: 88%; font-size: 19px; font-weight: 700; line-height: 1.2; }
.bx-lbl small { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-top: 3px; }
.bx-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 3px; }
.bx-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--glass-edge);
  background: var(--surface-raised); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.bx-long { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--text-muted); padding-bottom: 2px; min-width: 0; max-width: 40%; }
.bx-long b { display: block; color: var(--text-primary); font-family: var(--font-display); font-stretch: 88%; font-size: 15.5px; font-weight: 700; }
.bx-long span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-clear { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 6px 4px 4px; }
.bx-clear h2 { font-size: 24px; font-weight: 750; font-stretch: 85%; }
.bx-clear p { margin: 3px 0 0; color: var(--text-secondary); }
.bx-ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(12, 163, 12, 0.12); color: var(--st-good); }
.bx-ok .gl { width: 30px; height: 30px; stroke-width: 2.2; }
.bx-ok.none { background: var(--wash); color: var(--text-secondary); }
.bx-clear .bx-long { max-width: none; white-space: nowrap; }

/* large tiles: at least 380 px, so three across on a 1440 px screen with room for the ZEN Master text (October 7th, 2026) */
.bx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 18px; }
.bx-tiles:not(.sm) { container: bx / inline-size; }
/* a group's tiles are the size of the large ones (October 14th, 2026, Jarrett), as many across as the box
   has columns: the queries count them as auto-fill does (n tiles of 380 px and n - 1 gaps of 18 px). The
   group's padding leaves each about 6 px narrower; auto-fill inside the group would drop a column instead. */
.bx-tiles.sm { grid-template-columns: repeat(var(--bx-cols, 1), minmax(0, 1fr)); }
@container bx (min-width: 778px) { .bx-tiles.sm { --bx-cols: 2; } }
@container bx (min-width: 1176px) { .bx-tiles.sm { --bx-cols: 3; } }
@container bx (min-width: 1574px) { .bx-tiles.sm { --bx-cols: 4; } }
@container bx (min-width: 1972px) { .bx-tiles.sm { --bx-cols: 5; } }
.rt { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--red-edge); border-radius: 12px; overflow: hidden; cursor: pointer;
  background: var(--surface-raised); transition: border-color .15s, transform .15s, box-shadow .15s; }
.rt:hover { transform: translateY(-1px); box-shadow: var(--glass-shadow-up); }
.rt:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rt .mv-screen, .dr-b .mv-screen { border-bottom: 0; }
.rt .mv-screen::after, .dr-b .mv-screen::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 26%, transparent 70%, rgba(0, 0, 0, 0.35)); }
.ov { position: absolute; z-index: 3; display: flex; gap: 5px; align-items: center; max-width: calc(100% - 16px); }
.ov.tl { left: 8px; top: 8px; max-width: 64%; } .ov.tr { right: 8px; top: 8px; }
.ov-chip { display: inline-flex; align-items: center; gap: 5px; min-width: 0; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(8, 10, 16, 0.76); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; }
.ov-chip span { overflow: hidden; text-overflow: ellipsis; }
.ov-chip.alarm { background: rgba(196, 36, 36, 0.92); border-color: rgba(255, 255, 255, 0.22); }
.ov-chip .gl { width: 12px; height: 12px; }
.ov-chip svg { flex-shrink: 0; }
.ov-chip.at { position: absolute; z-index: 3; right: 8px; bottom: 8px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ov-timer { font-family: var(--font-mono); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, 0.72); border-radius: 7px; padding: 0 9px; line-height: 31px; color: #fff; white-space: nowrap; }
.ov-frame { position: absolute; inset: 0; z-index: 4; border: 2px solid var(--tally-red); pointer-events: none; }
/* the foot of a red picture: severity and both legs, then the alarm in ZEN Master's own words across the
   bottom, like a multiviewer's label (full text and every message on hover) */
.ov-foot { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ov-row { display: flex; gap: 5px; align-items: center; max-width: calc(100% - 16px); margin: 0 8px; }
.ov-row:last-child { margin-bottom: 8px; }
.ov-zm { align-self: stretch; display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px 9px 14px; background: rgba(6, 8, 13, 0.84);
  border-top: 1px solid rgba(255, 255, 255, 0.12); color: #fff; font-size: 13px; line-height: 1.35; }
.ov-zm-t { flex: 1; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.ov-zm-t b { color: #ff9e9e; font-weight: 650; margin-right: 6px; }
.ov-zm-n { flex-shrink: 0; height: 18px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 11px; font-weight: 650; line-height: 18px; }
.rt.has-zm .ov-chip.at { bottom: auto; top: 46px; }
/* no picture: the slate's words sit between the top chips and the foot, clear of both */
.rt.has-foot .mv-slate { padding: 40px 16px 76px; }
.bx-group-zm { margin: -4px 0 10px; font-size: 12.5px; color: var(--text-secondary); overflow-wrap: anywhere; }
.bx-group-zm b { color: var(--text-primary); font-weight: 650; margin-right: 6px; }
/* hover for what a word means (data-gloss) or what ZEN Master says (data-zm) */
[data-gloss], [data-zm] { cursor: help; }
a[data-gloss], .rt [data-gloss], .rt [data-zm], .rt[data-zm] { cursor: pointer; }
.tt-zm { max-width: 420px; }
.tt-zm .zm-e { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--grid); }
.zm-m { font-weight: 600; overflow-wrap: anywhere; }
.dr-zm { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.dr-zm div { display: flex; flex-direction: column; gap: 1px; }
.dr-zm small { font-size: 11.5px; color: var(--text-muted); }
/* acknowledgements: "I have this one", shared by everyone */
.btn.ack { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; font-weight: 650; background: var(--mcr-accent); border-color: transparent; color: var(--mcr-accent-ink);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--mcr-accent) 22%, transparent); }
.btn.ack:hover { filter: brightness(1.06); color: var(--mcr-accent-ink); background: var(--mcr-accent); }
.btn.ack .gl { width: 13px; height: 13px; stroke-width: 2.2; }
.rt-ack { display: flex; align-items: center; gap: 8px; min-height: 28px; min-width: 0; font-size: 12.5px; }
.ack-by { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; color: var(--text-primary); }
.ack-by > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ack-by .gl { color: var(--text-secondary); stroke-width: 2.2; }
.ack-by small { font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.ack-undo { margin-left: auto; background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--link); cursor: pointer; }
.ack-undo:hover { text-decoration: underline; }
.ack-undo[disabled] { opacity: .6; cursor: default; }
.ov-chip.ackd { background: rgba(255, 255, 255, 0.94); color: #10141d; border-color: transparent; }
.ov-chip.ackd .gl { width: 12px; height: 12px; stroke-width: 2.4; }
.ack-all-done { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ack-all-done .gl { stroke-width: 2.2; }
.bx-chips .btn.ack { height: 26px; }
.dr-ack { padding: 2px 0; }
button[data-gloss] { cursor: pointer; }
/* Broadcasters: the account's broadcaster health (October 8th, 2026) */
.bx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 4px 0 16px; }
@media (max-width: 1000px) { .bx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bx-kpi { padding: 14px 16px; border: 1px solid var(--glass-edge); border-radius: 12px; background: var(--surface-1); min-width: 0; }
.bx-kpi[data-bx-open] { cursor: pointer; }
.bx-kpi[data-bx-open]:hover { border-color: var(--axis); }
.bx-kpi .l { font-size: 12.5px; color: var(--text-secondary); }
.bx-kpi .v { display: flex; align-items: center; gap: 7px; font-size: 30px; font-weight: 650; line-height: 1.2; margin: 2px 0; }
.bx-kpi .v svg { width: 18px; height: 18px; }
.bx-kpi .s { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.bx-kpi.warn { border-color: var(--st-warning); }
.bx-kpi.crit { border-color: var(--st-critical); }
.bx-det { margin-bottom: 16px; }
.bx-det h2.with-copy { gap: 4px; }
.bx-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .bx-charts { grid-template-columns: minmax(0, 1fr); } }
.bx-charts .card { margin: 0; box-shadow: none; }
.bx-nogpu-note { align-self: center; padding: 16px; color: var(--text-secondary); font-size: 13px; }
.bx-tbl td { vertical-align: middle; }
.bx-tbl tr.grp td { padding-top: 14px; font-weight: 650; font-size: 13px; color: var(--text-primary); border-bottom: 1px solid var(--axis); }
.bx-tbl tr.grp .gl { margin-right: 6px; vertical-align: -2px; color: var(--text-secondary); }
.bx-tbl tr.row.on { background: var(--wash); }
.bx-tbl .nm { font-weight: 600; }
.bx-tbl .nm > span { white-space: nowrap; }
.bx-stale { display: inline-flex; align-items: center; gap: 5px; color: var(--text-primary); }
.bx-m { display: grid; grid-template-columns: 50px 44px 96px; align-items: center; gap: 8px; }
.bx-m.old { opacity: .5; }
.bx-v { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; font-weight: 600; justify-content: flex-end; }
/* --bxc: the reading's colour on the green-to-red scale (bxHeat in app.js) */
.bx-meter { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--bxc, var(--st-good)) 20%, transparent); overflow: hidden; }
.bx-meter i { display: block; height: 100%; border-radius: 3px; background: var(--bxc, var(--st-good)); }
.bx-spark { display: block; overflow: visible; cursor: crosshair; }
.bx-spark path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bx-spark circle { stroke: var(--surface-1); stroke-width: 1.5; }
.bx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.bx-scale { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.bx-scale .bar { position: relative; width: 140px; height: 8px; border-radius: 4px; }
.bx-scale .bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--surface-1); }
.bx-spark .base { stroke: var(--grid); stroke-width: 1; }
span.bx-spark.none { width: 96px; height: 26px; }
.bx-nogpu { font-size: 12.5px; }

/* copy an object's name */
.copy { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; padding: 0; margin-left: 2px;
  border: 1px solid transparent; border-radius: 6px; background: none; color: var(--text-muted); cursor: pointer; vertical-align: middle; }
.copy:hover { background: var(--wash); border-color: var(--border); color: var(--text-primary); }
.copy:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.copy .gl { width: 14px; height: 14px; }
.copy.done { color: var(--link); }
.with-copy { display: flex; align-items: center; gap: 2px; min-width: 0; }
.with-copy > span { min-width: 0; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 12px); max-width: min(560px, calc(100% - 32px));
  padding: 9px 14px; border-radius: 8px; background: var(--surface-solid); border: 1px solid var(--axis); color: var(--text-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.15; } }
/* unacknowledged: the whole tile blinks red, its outline and the picture's frame together, until someone acknowledges it */
.rt.unacked::after { content: ""; position: absolute; inset: 0; z-index: 5; border: 3px solid var(--tally-red); border-radius: inherit; pointer-events: none;
  animation: blink-ring 1.2s infinite; }
@keyframes blink-ring { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.rt.unacked .ov-frame { animation: blink 1.2s infinite; }
/* only warnings open on it: amber, as ZEN Master shows a warning (October 9th, 2026, Matt); the rest as red */
.lamp.warn { background: var(--st-warning); box-shadow: 0 0 0 3px rgba(250, 178, 25, 0.25); }
.rt.warn, .bx-group.warn { border-color: var(--warn-edge); }
.bx-group.warn { background: var(--warn-tint); }
.rt.warn .ov-frame, .ov-frame.warn, .rt.warn.unacked::after { border-color: var(--st-warning); }
.rt.warn .ov-chip.alarm, .ov-chip.alarm.warn { background: rgba(250, 178, 25, 0.95); border-color: rgba(0, 0, 0, 0.18); color: #1a1a19; }
.rt.warn .ov-zm-t b { color: #ffd27a; }
.rt.warn .mv-screen.no-pic .mv-slate, .dr-b .mv-screen:has(.ov-frame.warn).no-pic .mv-slate { background: radial-gradient(120% 95% at 50% 0%, #3a2c10 0%, #120d05 72%); }
.tally.red.warn { background: var(--st-warning); box-shadow: 0 0 0 3px rgba(250, 178, 25, 0.30); animation-name: tally-warn; }
@keyframes tally-warn { 0%, 100% { box-shadow: 0 0 0 3px rgba(250, 178, 25, 0.32); } 50% { box-shadow: 0 0 0 6px rgba(250, 178, 25, 0); } }
.cd-head:has(.cd-state.red.warn) { border-color: var(--warn-edge); background: linear-gradient(90deg, var(--warn-tint), transparent 60%), var(--surface-1); }
.cd-head:has(.cd-state.red.warn)::before { background: var(--st-warning); }
.cd-head:has(.cd-state.red.warn) .mv-pill.alarm { background: rgba(250, 178, 25, 0.95); border-color: rgba(0, 0, 0, 0.18); color: #1a1a19; }
.bx.hot.warn::before { background: var(--st-warning); }
.rt-body { display: flex; flex-direction: column; gap: 8px; padding: 13px 15px 15px; min-width: 0; }
.rt-name { font-size: 16px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.rt-title { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -4px; }
.rt-meta { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-route { display: flex; align-items: center; gap: 8px; min-height: 20px; font-size: 12.5px; font-weight: 600; }
.rt-route .gl { color: var(--text-secondary); }
.rt-route small { font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.rt-link { display: inline-flex; color: var(--text-secondary); }
.rt-link:hover { color: var(--link); }
.rt-prog { flex: 1; min-width: 40px; height: 6px; border-radius: 3px; background: var(--grid); overflow: hidden; display: block; }
.rt-prog i { display: block; height: 100%; border-radius: 3px; background: var(--text-primary); transition: width 1s linear; }
.rt-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--grid); }
.rt-bar i { flex: 1; background: var(--st-critical); }
.rt-ax { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-muted); margin-top: 4px; }
/* a group's tile: the large tile's picture, under it only the name */
.rt.sm .rt-body { padding: 10px 13px 12px; }
.rt.sm .rt-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-group { grid-column: 1 / -1; border: 1px solid var(--red-edge); border-radius: 12px; padding: 12px; background: var(--red-tint); }
.bx-group-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13.5px; color: var(--text-secondary); }
.bx-group-h b { color: var(--text-primary); font-weight: 650; font-size: 14.5px; }
.bx-group-h .right { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 240px; color: var(--text-primary); font-weight: 600; font-size: 12.5px; justify-content: flex-end; }

.bx-sec { display: flex; align-items: baseline; gap: 10px; margin: 26px 2px 12px; }
.bx-sec h2 { font-size: 16px; font-weight: 650; }
.bx-sec span { color: var(--text-muted); font-size: 13px; }
.bx-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bx-grid > .card + .card { margin-top: 0; }
#bd-a { grid-column: span 8; } #bd-b, #bd-c, #bd-d, #bd-e { grid-column: span 4; }
@media (max-width: 1280px) { #bd-a { grid-column: 1 / -1; } #bd-b, #bd-c, #bd-d, #bd-e { grid-column: span 6; } }
.sub-h { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; font-size: 12.5px; font-weight: 650; color: var(--text-secondary); }
.sub-h .legend { margin: 0 0 0 auto; font-weight: 500; }
.dotk { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--o-posted); box-shadow: 0 0 0 2px var(--surface-1); }
.draw { width: 100%; min-height: 20px; }
.draw svg, .spark svg, .dr-chart svg { display: block; overflow: visible; }
.ax { font-size: 11px; fill: var(--text-muted); font-variant-numeric: tabular-nums; }
.ax.now { fill: var(--text-primary); font-weight: 650; }
.gline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.nowl { stroke: var(--text-secondary); stroke-width: 1; }
.xh { stroke: var(--text-secondary); stroke-width: 1; opacity: 0; pointer-events: none; }
.hovering .xh { opacity: .55; }
.bar-dim { opacity: .5; }
.went-v { font-size: 38px; font-weight: 650; line-height: 1; letter-spacing: -.01em; }
.went-l { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.delta.bad { color: var(--st-serious); } .delta.good { color: var(--good-text); }
.delta .gl { width: 12px; height: 12px; }
.went-split { display: flex; gap: 2px; height: 22px; margin: 16px 0 12px; }
.went-split i { display: block; min-width: 3px; }
.went-split i:first-child { border-radius: 4px 0 0 4px; } .went-split i:last-child { border-radius: 0 4px 4px 0; } .went-split i:only-child { border-radius: 4px; }
.went-split i:hover { filter: brightness(1.15); }
.went-list { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px 10px; align-items: center; font-size: 13px; }
.went-list .sw { width: 10px; height: 10px; border-radius: 2px; }
.went-list .c { font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.went-list .p { color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; min-width: 34px; }
.went-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--grid); }
.went-minis b { display: block; font-size: 19px; font-weight: 650; }
.went-minis span { font-size: 12px; color: var(--text-muted); }
.fam-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fam-tile { border: 1px solid var(--glass-edge); border-radius: 10px; padding: 10px 12px 8px; background: var(--surface-raised); min-width: 0; }
.fam-tile .l { font-size: 12.5px; color: var(--text-secondary); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fam-tile .v { display: flex; align-items: baseline; gap: 8px; margin: 2px 0; }
.fam-tile .v b { font-size: 24px; font-weight: 650; }
.spark { height: 34px; }
.most { display: flex; flex-direction: column; gap: 9px; }
.most-r { display: grid; grid-template-columns: minmax(0, 1fr) 120px 40px; gap: 10px; align-items: center; font-size: 12.5px; cursor: pointer; border-radius: 6px; }
.most-r:hover .n span:last-child { color: var(--link); }
.most-r .n { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.most-r .n span:last-child { overflow: hidden; text-overflow: ellipsis; }
.most-r .t { height: 10px; position: relative; }
.most-r .t i { position: absolute; left: 0; top: 0; bottom: 0; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--series-1); }
.most-r .t i.red { background: var(--st-critical); }
.most-r .v { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.tbl.rec td { vertical-align: middle; }
.tbl.rec .th { width: 76px; padding-right: 0; }
.tbl.rec .th .mv-screen { width: 64px; border-radius: 5px; filter: grayscale(1) brightness(.7); }
.tbl.rec .th .mv-screen::after { display: none; }
.tbl.rec .th .mv-slate span, .tbl.rec .th .mv-slate small, .tbl.rec .th .ov-chip { display: none; }
.tbl.rec .th .mv-slate svg { width: 16px; height: 16px; }
.tbl.rec tr.row { cursor: pointer; }
.tbl.rec tr.row:hover .th .mv-screen { filter: none; }
.tbl.rec .nm { font-weight: 600; }
.tbl.rec .al { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); white-space: nowrap; }
.dbar { position: relative; width: 120px; height: 8px; border-radius: 4px; background: var(--grid); display: inline-block; vertical-align: middle; margin-right: 10px; }
.dbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--st-critical); opacity: .85; }
.dbar b { position: absolute; top: -3px; bottom: -3px; width: 2px; left: 25%; background: var(--text-secondary); }
.routec { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
a.routec:hover { color: var(--link); text-decoration: none; }

/* the side panel */
.dr-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(5, 7, 12, 0.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.dr-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(500px, 92vw); display: flex; flex-direction: column;
  background: var(--surface-solid); border-left: 1px solid var(--glass-edge); box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .6);
  transform: translateX(100%); transition: transform .22s ease; visibility: hidden; }
body.dr-open .dr-scrim { opacity: 1; pointer-events: auto; }
body.dr-open .dr-panel { transform: none; visibility: visible; }
.dr-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--glass-edge); }
.dr-t { flex: 1; min-width: 0; }
.dr-t b { display: block; font-size: 15.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-t span { display: block; font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-h .btn.primary { padding: 5px 12px; font-size: 13px; font-weight: 600; }
.dr-h .btn.primary:hover { text-decoration: none; }
.dr-x { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--text-secondary); }
.dr-x:hover { background: var(--wash); color: var(--text-primary); }
.dr-b { padding: 16px 18px 28px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.dr-b > * { flex-shrink: 0; }
.dr-b .mv-screen { border-radius: 10px; }
.dr-state { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13.5px; }
.dr-facts { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 13px; }
.dr-facts dt { color: var(--text-secondary); }
.dr-facts dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.dr-h3 { font-size: 12.5px; font-weight: 650; color: var(--text-secondary); margin-bottom: 6px; }
.dr-occ div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--grid); font-size: 12.5px; }
.dr-occ div span:nth-child(2) { font-variant-numeric: tabular-nums; font-weight: 600; }
/* the hand-drawn charts' tooltip, like the ECharts ones */
.ctt { position: fixed; z-index: 60; display: none; pointer-events: none; background: var(--surface-solid); border: 1px solid var(--axis); border-radius: 8px;
  padding: 8px 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .16); }
@media (prefers-reduced-motion: reduce) { .dr-panel, .dr-scrim { transition: none; } }
label.check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-secondary); cursor: pointer; }
.tally { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--st-good);
  box-shadow: 0 0 0 3px rgba(12, 163, 12, 0.22); }
.tally.red { background: #ff4d4d; box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.28); animation: tally 2s ease-in-out infinite; }
@keyframes tally { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.30); } 50% { box-shadow: 0 0 0 6px rgba(255, 77, 77, 0); } }

/* the screen: a ZEN Master picture, kept on a dark slate in both themes like a monitor */
.mv-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #06080d; color: #fff;
  border-bottom: 1px solid var(--glass-edge); }
.mv-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.mv-screen.has-pic img { opacity: 1; }
.mv-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 30%, transparent 62%, rgba(0, 0, 0, 0.5)); }
.mv-slate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 0 16px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.78);
  background: radial-gradient(120% 95% at 50% 0%, #1b2233 0%, #0a0d15 72%); }
.mv-slate svg { opacity: .6; margin-bottom: 2px; }
.mv-slate small { font-size: 11px; color: rgba(255, 255, 255, 0.52); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-screen.has-pic .mv-slate { display: none; }
.mv-screen.loading .mv-slate > * { visibility: hidden; }
.mv-screen.loading .mv-slate { background: linear-gradient(100deg, #0b0f18 30%, #182033 50%, #0b0f18 70%); background-size: 220% 100%;
  animation: mv-shimmer 1.6s linear infinite; }
@keyframes mv-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.rt .mv-screen.no-pic .mv-slate, .dr-b .mv-screen:has(.ov-frame).no-pic .mv-slate { background: radial-gradient(120% 95% at 50% 0%, #3a1820 0%, #12080c 72%); }
.mv-row { position: absolute; z-index: 2; left: 8px; right: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mv-row.top { top: 9px; }
.mv-row.bot { bottom: 8px; align-items: flex-end; }
.mv-row > span:first-child { min-width: 0; display: flex; gap: 5px; overflow: hidden; }
.mv-row > span:first-child .mv-pill { flex-shrink: 0; }
.mv-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  line-height: 18px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(8, 10, 16, 0.55); border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%); }
.mv-pill.alarm { background: rgba(196, 40, 40, 0.80); border-color: rgba(255, 255, 255, 0.20); }
.mv-pill.at { font-weight: 500; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.86); flex-shrink: 0; }
.mv-pill .sev { gap: 4px; }

/* ---- Card page ---------------------------------------------------------------------------- */
.back { display: inline-block; margin: 0 0 10px; font-size: 13px; }
.back::before { content: "\2039\00a0"; }
.cd-head h1 { font-size: 21px; margin: 8px 0 10px; }
.cd-state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.cd-state.red .status { font-weight: 650; }
.cd-head { position: relative; overflow: hidden; }
.cd-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--st-good); }
.cd-head:has(.cd-state.red) { border-color: var(--red-edge); background: linear-gradient(90deg, var(--red-tint), transparent 60%), var(--surface-1); }
.cd-head:has(.cd-state.red)::before { background: #ff4d4d; }
.cd-head.with-screen { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 30%, 400px); gap: 20px; align-items: start; }
.cd-head .mv-screen { border-radius: 12px; border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.cd-sample { margin-top: 10px; font-size: 12.5px; color: var(--text-secondary); }
.says-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 12px; }
.says-nums div { display: flex; flex-direction: column; }
.says-nums b { font-size: 20px; font-weight: 600; }
.says-nums span { font-size: 12px; color: var(--text-secondary); }
ul.says { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
ul.says li { display: flex; gap: 10px; align-items: baseline; }
ul.says .kind { flex-shrink: 0; min-width: 140px; font-size: 12px; color: var(--text-secondary); }
@media (max-width: 900px) { .says-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } ul.says .kind { min-width: 100px; } }
ul.says li > span:last-child { min-width: 0; }

/* ---- since when (a card's header) --------------------------------------------------------- */
.pc-since { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.pc-since .ic-clock { flex-shrink: 0; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  .tally.red, .tally.red.warn, .mv-screen.loading .mv-slate, .btn.refresh.busy svg { animation: none; }
  .rt, .rt:hover { transition: none; transform: none; }
  .rt.unacked .ov-frame, .rt.unacked::after { animation: none; }   /* a steady red ring instead */
}

/* remove, mask and ZEN Master links (October 8th, 2026) */
.act { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--surface-solid); color: var(--text-secondary); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.act:hover { background: var(--wash); color: var(--text-primary); text-decoration: none; }
.act:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.act[disabled] { opacity: .6; cursor: default; }
.rt-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bx-chips .btn.zm-all { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; font-weight: 600; text-decoration: none; }
.copy.zm { text-decoration: none; }
.copy.zm svg { width: 11px; height: 11px; }
.bx-off { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.off-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; }
.off-h .gl { width: 13px; height: 13px; align-self: center; color: var(--text-secondary); }
.off-h span { color: var(--text-muted); font-size: 12.5px; }
.off-row { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 6px 4px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface-raised); font-size: 13px; cursor: pointer; }
.off-row:hover { background: var(--wash); }
.off-row:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.off-n { font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.off-w { flex: 1; min-width: 0; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.off-row .act { margin-left: auto; }
.dr-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.dr-off { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.dr-off .gl { width: 13px; height: 13px; flex-shrink: 0; }
.dr-off .act { margin-left: auto; }
.dr-form { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); }
.dr-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.dr-form label small { font-weight: 500; color: var(--text-muted); }
.dr-form select, .dr-form input { height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-solid);
  color: var(--text-primary); font-size: 13px; font-weight: 500; }
.dr-form select:focus-visible, .dr-form input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.dr-form p { margin: 0; font-size: 12.5px; color: var(--text-secondary); }
.f-btns { display: flex; gap: 8px; }

/* the live player in the side panel (October 8th, 2026) */
.mv-screen .mv-live { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; background: #000; }
.mv-play { position: absolute; z-index: 5; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.mv-play svg { width: 30px; height: 30px; margin-left: 4px; }
.mv-play:hover { background: rgba(0, 0, 0, 0.75); transform: scale(1.06); }
.mv-play:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.mv-screen.live .mv-play, .mv-screen.live-busy .mv-play, .mv-screen.live-fail .mv-play { display: none; }
.mv-live-ov { position: absolute; z-index: 5; color: #fff; font-size: 13px; }
.mv-live-ov.busy { inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(0, 0, 0, 0.55); font-weight: 600; }
.mv-live-ov.fail { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px;
  background: rgba(8, 10, 15, 0.9); text-align: center; line-height: 1.35; font-size: 12.5px; overflow: hidden; }
.mv-live-ov.fail b { font-size: 14px; }
.mv-live-ov.fail .act { background: rgba(255, 255, 255, 0.95); color: #10141d; border-color: transparent; }
.mv-live-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 2px; }
.mv-live-ov.on { left: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; }
.mv-live-ov.on .live-on { color: #fff; background: rgba(0, 0, 0, 0.72); border-radius: 999px; padding: 3px 9px; font-size: 12px; }
.mv-stop { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; border: 0;
  background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.mv-stop svg { width: 12px; height: 12px; }
.mv-stop:hover { background: rgba(0, 0, 0, 0.9); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.live-on { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--text-primary); }
.live-on i { width: 8px; height: 8px; border-radius: 50%; background: var(--tally-red); animation: live-dot 1.6s ease-in-out infinite; }
@keyframes live-dot { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-on i { animation: none; } }
.ic2 { display: inline-flex; align-items: center; white-space: nowrap; vertical-align: middle; }

/* ---- Home: the MCR's dashboards, in the MCR look (October 18th, 2026) ----------------------- */
body.on-home main, body.on-home footer { max-width: 1240px; }
.home { position: relative; padding: 30px 0 6px; }
/* a slow aurora behind it all, above the grid (main is its stacking context) */
.home-aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.home-aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .55; will-change: transform; }
.home-aurora i:nth-child(1) { left: -22vmax; top: -38vmax; animation: home-aur1 28s ease-in-out infinite alternate;
  background: radial-gradient(circle, color-mix(in srgb, var(--mcr-accent) 20%, transparent), transparent 62%); }
.home-aurora i:nth-child(2) { right: -26vmax; top: -24vmax; animation: home-aur2 34s ease-in-out infinite alternate;
  background: radial-gradient(circle, rgba(64, 126, 247, .16), transparent 62%); }
:root[data-theme="light"] .home-aurora i { opacity: .4; }
@keyframes home-aur1 { to { transform: translate(16vmax, 9vmax) scale(1.12); } }
@keyframes home-aur2 { to { transform: translate(-12vmax, 14vmax) scale(.92); } }

.home-hero { margin-bottom: 26px; }
.home-eye { display: inline-flex; align-items: center; gap: 10px; min-height: 18px; }
.home-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mcr-faint); flex: none; transition: background .3s; }
.home-dot.ok { background: var(--mcr-ok); animation: home-beacon 2.4s infinite; }
.home-dot.bad { background: var(--mcr-bad); animation: home-beacon-bad 1.2s infinite; }
@keyframes home-beacon { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mcr-ok) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes home-beacon-bad { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mcr-bad) 70%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
.home-h1 { margin-top: 12px; font: 800 clamp(36px, 4.4vw, 54px)/1.04 var(--mcr-f-display); font-stretch: 78%; letter-spacing: -.012em; }
.home-lede { margin: 10px 0 0; max-width: 64ch; color: var(--text-muted); font-size: 15.5px; }

.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hc {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 7px; min-height: 242px;
  padding: 22px 22px 18px; border-radius: 16px; color: var(--text-primary);
  background: linear-gradient(180deg, color-mix(in srgb, var(--mcr-surface-2) 70%, var(--mcr-surface)), var(--mcr-surface));
  border: 1px solid var(--mcr-line); box-shadow: var(--mcr-shadow);
  transition: transform .4s var(--mcr-ease), border-color .4s, box-shadow .4s;
}
a.hc:hover { text-decoration: none; transform: translateY(-4px); border-color: color-mix(in srgb, var(--mcr-accent) 45%, var(--mcr-line));
  box-shadow: var(--mcr-shadow-up), 0 0 0 1px color-mix(in srgb, var(--mcr-accent) 16%, transparent); }
a.hc:focus-visible { outline: 2px solid var(--mcr-accent); outline-offset: 3px; border-radius: 16px; }
/* a spotlight that follows the pointer, and a line of light that sweeps the top edge */
.hc-spot { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--mcr-accent) 13%, transparent), transparent 62%); }
a.hc:hover .hc-spot { opacity: 1; }
.hc::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--mcr-accent) 80%, transparent), transparent); transition: transform .9s var(--mcr-ease); }
a.hc:hover::after { transform: translateX(100%); }
.hc-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.hc-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: var(--mcr-accent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--mcr-accent) 22%, transparent), color-mix(in srgb, var(--mcr-accent) 5%, transparent));
  border: 1px solid color-mix(in srgb, var(--mcr-accent) 26%, transparent); transition: transform .4s var(--mcr-ease), box-shadow .4s; }
.hc-ic svg { width: 28px; height: 28px; }
a.hc:hover .hc-ic { transform: scale(1.06) rotate(-3deg); box-shadow: 0 10px 30px color-mix(in srgb, var(--mcr-accent) 28%, transparent); }
.hc-go { width: 22px; height: 22px; margin-top: 4px; color: var(--mcr-faint); transition: transform .4s var(--mcr-ease), color .4s; }
a.hc:hover .hc-go { color: var(--mcr-accent); transform: translateX(5px); }
.hc-t { font: 750 24px/1.1 var(--mcr-f-display); font-stretch: 84%; }
.hc-d { font-size: 14px; color: var(--text-muted); max-width: 54ch; }
.hc-live { position: relative; overflow: hidden; margin-top: auto; display: flex; align-items: center; gap: 16px; min-height: 56px;
  padding: 10px 14px 10px 17px; border-radius: 12px; background: var(--mcr-surface-2); border: 1px solid var(--mcr-line); }
.hc-live::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mcr-faint); transition: background .3s; }
.hc-live[data-state="ok"]::before { background: var(--mcr-ok); }
.hc-live[data-state="warn"]::before { background: var(--mcr-warn); }
.hc-live[data-state="bad"]::before { background: var(--mcr-bad); animation: home-bar 1.1s steps(1) infinite; }
@keyframes home-bar { 50% { opacity: .3; } }
.hc-fig { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.hc-fig b { font: 800 30px/1 var(--mcr-f-display); font-stretch: 78%; font-variant-numeric: tabular-nums; }
.hc-live[data-state="bad"] .hc-fig b { color: var(--mcr-bad); }
.hc-live[data-state="none"] .hc-fig b { color: var(--mcr-faint); }
.hc-fig small { font-size: 13px; color: var(--text-muted); }
.hc-ctx { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--mcr-line-2);
  background: var(--mcr-surface); font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.hc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mcr-faint); flex: none; }
.hc-dot.ok { background: var(--mcr-ok); } .hc-dot.warn { background: var(--mcr-warn); }
.hc-dot.bad { background: var(--mcr-bad); animation: home-beacon-bad 1.2s infinite; }
.hc-spark { width: 128px; height: 30px; flex: none; }
.hc-spark .l { fill: none; stroke: var(--mcr-accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.hc-spark .a { fill: var(--mcr-accent-soft); }
.hc.soon { border-style: dashed; border-color: var(--mcr-line-2); background: color-mix(in srgb, var(--mcr-surface) 45%, transparent); box-shadow: none; }
.hc.soon .hc-ic { color: var(--mcr-muted); background: var(--mcr-surface-2); border-color: var(--mcr-line); }
.hc.soon .hc-t { color: var(--text-secondary); }
.hc-soon { font: 600 10.5px/1 var(--mcr-f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px;
  color: var(--mcr-muted); border: 1px solid var(--mcr-line-2);
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--mcr-accent) 18%, transparent) 50%, transparent 70%) var(--mcr-surface-2);
  background-size: 220% 100%; animation: home-shimmer 3.2s ease-in-out infinite; }
@keyframes home-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* coming in: the line, the greeting and the lede, then each card a moment after the last (backwards
   fill only, so a hover's lift is never held back by the entrance's end state) */
@keyframes home-rise { from { opacity: 0; transform: translateY(14px); } }
.home-hero > * { animation: home-rise .7s var(--mcr-ease) backwards; }
.home-hero > :nth-child(2) { animation-delay: .06s; }
.home-hero > :nth-child(3) { animation-delay: .12s; }
.hc { animation: home-rise .75s var(--mcr-ease) backwards; animation-delay: calc(.18s + var(--i, 0) * .08s); }

@media (prefers-reduced-motion: reduce) {
  .home-aurora i, .home-hero > *, .hc, .hc-soon, .home-dot.ok, .home-dot.bad, .hc-dot.bad, .hc-live[data-state="bad"]::before { animation: none; }
  .hc, .hc-ic, .hc-go, .hc::after, .hc-spot { transition: none; }
  a.hc:hover, a.hc:hover .hc-ic, a.hc:hover .hc-go { transform: none; }
}
