:root {
  --bg: #0f1419;
  --panel: #182028;          /* chart surface: the dataviz validator ran against this */
  --border: #2a3441;         /* hairlines and gridlines, one shade off the surface */
  --text: #e6e9ed;
  --muted: #8b96a3;
  --hover: #1f2933;         /* menu and list hover, between --bg and --panel */
  --accent: #3987e5;         /* series slot 1 */
  --warn: #f59e0b;
  --critical: #d03b3b;       /* status: critical. Marks only, never text */
  /* severity: one-hue ordinal ramp (blue 600 -> 150), validated --ordinal */
  --sev-informational: #184f95;
  --sev-low: #256abf;
  --sev-medium: #3987e5;
  --sev-high: #6da7ec;
  --sev-critical: #b7d3f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* --- header + navigation ---------------------------------------------------- */
.header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
}
.title { font-size: 16px; font-weight: 600; }
.title span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.meta { margin-left: auto; display: flex; gap: 14px; align-items: center; color: var(--muted); }
.badge { background: var(--warn); color: #000; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }

/* The menu (nav.js). Level 1: Overview, the groups and Health. The row wraps
   rather than scrolls, so a group's flyout isn't clipped by a scroll box. */
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 24px; border-bottom: 1px solid var(--border); }
.tabs > a, .nav-grp-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  flex: none; white-space: nowrap; color: var(--muted); text-decoration: none;
  background: transparent; border: 1px solid transparent; border-radius: 8px; font: inherit; cursor: pointer;
}
.tabs > a:hover, .nav-grp-btn:hover { color: var(--text); background: var(--hover); }
.tabs > a.active, .nav-grp.current > .nav-grp-btn { color: var(--text); background: var(--panel); border-color: var(--border); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-grp-btn[aria-expanded="true"] { color: var(--text); background: var(--panel); border-color: var(--border); }
.nav-spacer { flex: 1; }
.nav-grp { position: relative; }
.nav-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7; transition: transform .15s; }
.nav-grp-btn[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--critical); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.nav-count[hidden] { display: none; }
/* The flyout: a column per tool, its pages under it. */
.nav-fly {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; display: flex; gap: 6px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45); max-width: calc(100vw - 16px);
}
.nav-fly[hidden] { display: none; }
.nav-col { min-width: 190px; padding: 4px; display: flex; flex-direction: column; }
.nav-col-head, .nav-col-title { padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--text); border-radius: 6px; text-decoration: none; }
.nav-col-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.nav-col-head small { flex-basis: 100%; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.nav-col-title { color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; }
.nav-pg { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 10px 5px 18px; color: var(--muted); text-decoration: none; border-radius: 6px; font-size: 13px; }
.nav-col-title + .nav-pg, .nav-col-title ~ .nav-pg { padding-left: 10px; }
a.nav-col-head:hover, a.nav-pg:hover, a.nav-col-head:focus-visible, a.nav-pg:focus-visible { background: var(--hover); color: var(--text); }
.nav-fly a.here { color: var(--text); background: var(--hover); box-shadow: inset 2px 0 0 var(--accent); }
.nav-pg.disabled { opacity: .5; cursor: default; }
.nav-tag { font-size: 10.5px; font-weight: 400; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; }
/* Level 2: the current group's tools stay in view, so moving between them is one click. */
.nav-strip { display: flex; align-items: center; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.nav-strip[hidden] { display: none; }
.nav-strip::-webkit-scrollbar { display: none; }
.nav-tool { display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; color: var(--muted); text-decoration: none; padding: 9px 12px; border-bottom: 2px solid transparent; }
a.nav-tool:hover { color: var(--text); }
.nav-tool.active { color: var(--text); border-bottom-color: var(--accent); }
.nav-tool.disabled { opacity: .5; cursor: default; }
.nav-crumb { margin-left: auto; padding-left: 16px; flex: none; white-space: nowrap; color: var(--muted); font-size: 12.5px; }
.nav-crumb b { color: var(--text); font-weight: 500; }

.filter-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.filter-row[hidden] { display: none; }
.subtabs { display: flex; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 3px; }
.subtabs a { color: var(--muted); text-decoration: none; padding: 5px 14px; border-radius: 6px; }
.subtabs a.active { background: var(--border); color: var(--text); }
.filters { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: center; }
.filters[hidden] { display: none; } /* display: flex above would otherwise override the hidden attribute */
select { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; }

/* --- layout ----------------------------------------------------------------- */
main { padding: 20px 24px; transition: opacity 0.15s; } /* every tab uses the full window width, like LIAM and Threat Intel */
h2 { font-size: 15px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-head .btn-link { margin-left: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 > .panel { margin-bottom: 16px; }
.pending p { color: var(--muted); max-width: 640px; }
.section-title { margin: 24px 0 12px; font-size: 16px; }

/* --- tiles ------------------------------------------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.tiles-2 { grid-template-columns: repeat(2, 1fr); margin-bottom: 8px; }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.panel .tile { background: var(--bg); }
.tile-label { color: var(--muted); font-size: 12px; }
.tile-value { font-size: 26px; font-weight: 600; margin-top: 2px; }
.tile-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.tile.emph { box-shadow: inset 3px 0 0 var(--critical); } /* status mark beside, text stays ink */

/* --- overview source cards -------------------------------------------------- */
.source-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.source-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
}
.source-card:hover { border-color: var(--accent); }
.source-off { opacity: 0.7; }
.source-name { font-weight: 600; margin-bottom: 10px; }
.source-stats { display: flex; gap: 18px; }
.stat-value { font-size: 22px; font-weight: 600; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat.emph .stat-value::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--critical); margin-right: 6px; vertical-align: middle; }
.source-foot, .source-state { color: var(--muted); font-size: 12px; margin-top: 10px; }

/* --- tables ----------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; }
/* A sortable column header: looks like the header, acts like a button. */
.th-sort { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-transform: inherit; cursor: pointer; }
.th-sort:hover, .th-sort:focus-visible { color: var(--text); text-decoration: underline; }
th[aria-sort] .th-sort { color: var(--text); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
table.compact { max-width: 320px; }
.row-warn td { color: var(--warn); }
.hosts-stale { color: var(--warn); margin: 10px 0; }
/* Something got through to this person/center: status mark beside, text stays ink. */
.row-emph td:first-child { box-shadow: inset 3px 0 0 var(--critical); padding-left: 10px; font-weight: 600; }
.sev { white-space: nowrap; }
.spark-cell { width: 170px; }

/* --- charts ----------------------------------------------------------------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.axis-label { fill: var(--muted); font-size: 12px; }
.value-label { fill: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
.chart [data-tip]:focus, .donut [data-tip]:focus, .sevbar [data-tip]:focus, .spark [data-tip]:focus { outline: 2px solid var(--text); outline-offset: 1px; }

.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut { width: 180px; height: 180px; flex: none; }
.donut-total { fill: var(--text); font-size: 30px; font-weight: 600; }
/* Meraki overview: a share ring and its legend beside the ranked bars. */
.mk-share { display: grid; grid-template-columns: minmax(340px, 520px) 1fr; gap: 24px; align-items: center; }
.mk-share[hidden] { display: none; }
.mk-share > *, .mk-share .donut-wrap, .mk-share .legend { min-width: 0; } /* long center names shrink inside their column instead of spilling onto the bars */
.mk-share .donut { width: 150px; height: 150px; flex: none; }
.mk-share .legend { font-size: 13px; }
#mk-threats td:nth-child(3) { min-width: 260px; } /* the signature name, not squeezed by the site */
.mk-share .legend-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-share .legend-value { flex: none; white-space: nowrap; } /* the count stays on its row */
.legend { list-style: none; margin: 0; padding: 0; flex: 1; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.legend-name { flex: 1; }
.legend-value { color: var(--muted); font-variant-numeric: tabular-nums; }

.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--border); }
.swatch[data-sev="Critical"] { background: var(--sev-critical); }
.swatch[data-sev="High"] { background: var(--sev-high); }
.swatch[data-sev="Medium"] { background: var(--sev-medium); }
.swatch[data-sev="Low"] { background: var(--sev-low); }
.swatch[data-sev="Informational"] { background: var(--sev-informational); }

.spark { width: 160px; height: 32px; display: block; }
.sevbar { width: 160px; height: 14px; display: block; }

.funnel { display: flex; align-items: center; gap: 16px; padding: 18px 0; }
.stage { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px 20px; min-width: 140px; }
.stage-arrow { color: var(--muted); font-size: 13px; flex: 1; text-align: center; }

.tip {
  position: absolute;
  z-index: 10;
  background: #0b0f13;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
}

/* --- controls --------------------------------------------------------------- */
a { color: var(--accent); }
.btn { background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 6px 14px; cursor: pointer; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-link { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; }
.entra-link { margin-left: 8px; white-space: nowrap; }
.entra-link:first-child { margin-left: 0; }

/* --- cases (Open work) ------------------------------------------------------ */
.case-member td { background: var(--bg); font-size: 13px; }
.case-row .btn-link.small { padding: 0; font-size: 12px; }

/* --- case page -------------------------------------------------------------- */
.case-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.case-head h2 { font-size: 18px; margin-bottom: 4px; }
.case-actions { margin-left: auto; }
.case-list { list-style: none; padding: 0; margin: 0 0 14px; }
.case-list li { padding: 4px 0; }
.case-runbook { margin-bottom: 14px; }
.case-runbook-title { font-weight: 600; }
.case-actions-list { margin: 6px 0 0; padding-left: 20px; }
.case-actions-list li { margin-bottom: 3px; }
.case-summary { line-height: 1.5; margin: 6px 0 10px; }
.digest-highlights { margin: 6px 0 0; padding-left: 20px; }
.digest-highlights li { margin-bottom: 3px; }
#case-escalation { border-top: 1px solid var(--border); padding-top: 10px; }
.case-esc-name { font-size: 16px; font-weight: 600; margin: 2px 0 4px; }
/* the case's own Freshservice ticket: a line on the case page, a badge on Open work */
.case-ticket { margin-top: 6px; }
.ti-rw-scroll { max-height: 420px; overflow-y: auto; } /* a busy month stays a panel, not a page */
#ti-rw-body { grid-template-columns: 2fr 1fr; } /* the victim list needs the room */
@media (max-width: 1000px) { #ti-rw-body { grid-template-columns: 1fr; } }
/* Repeat offender (lib/repeats.js): the mark is beside, the text stays ink. Amber the second time, red from the third. */
.repeat-badge { display: inline-block; margin-left: 8px; padding: 0 6px; border: 1px solid var(--warn); border-radius: 4px; color: var(--text); font-size: 11px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.repeat-badge::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-right: 5px; }
.repeat-badge.repeat-3 { border-color: var(--critical); }
.repeat-badge.repeat-3::before { background: var(--critical); }
.ticket-badge.hot { color: #f0b429; border-color: #f0b429; } /* on our network: the one badge that asks for action */
.ti-va-where { display: block; overflow-wrap: anywhere; }
.ti-va-name { min-width: 220px; }
.ticket-badge { display: inline-block; margin-left: 8px; padding: 0 6px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: 1px; }
.case-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
td.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; max-width: 360px; }
td.nowrap, th.nowrap { white-space: nowrap; }
td.when { white-space: nowrap; }
td.when .zone { color: var(--muted); font-size: 11px; }
td.about { min-width: 130px; max-width: 240px; overflow-wrap: anywhere; }
td.item { min-width: 240px; }
.table-scroll { overflow-x: auto; }
.close-list { max-height: 320px; overflow-y: auto; margin: 8px 0; }
.close-group { margin: 6px 0 10px; }
.close-group h3, .close-others h3 { font-size: 12px; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 4px; }
.close-item { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
.close-item input { flex: none; }
.close-item .muted { font-size: 12px; }
.close-others { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
.close-others ul { margin: 0 0 6px; padding-left: 18px; }
.close-done { color: var(--muted); }
.console-link { color: var(--muted); }

/* --- close dialog (Open work) ----------------------------------------------- */
.select-cell { width: 28px; }
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  width: min(560px, 92vw);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
dialog h2 { margin-bottom: 6px; }
.close-list { max-height: 200px; overflow: auto; margin: 12px 0; padding-left: 18px; }
.close-list li { margin-bottom: 4px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.field input:not([type="checkbox"]), .field select, .field textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; }
.close-result { background: var(--bg); border-radius: 6px; padding: 10px 12px; white-space: pre-line; }
/* Threat Intel > On our network: the ticket dialog */
.vat-preview { margin: 12px 0; }
.vat-preview p { margin: 0 0 4px; }
.vat-hosts { max-height: 160px; overflow: auto; margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.vat-hosts li { margin-bottom: 4px; }
.vat-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.vat-grid3 { grid-template-columns: 1fr 1fr 1fr; }
.vat-h { margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--text); }
#va-ticket-dialog { width: min(640px, calc(100vw - 32px)); }
.field select:disabled { color: var(--muted); }
/* Tracker: incident response */
#ir-list-filters[hidden] { display: none; }
.subtabs a.disabled { opacity: 0.5; cursor: default; }
/* Tracker has a sub-tab per program tracker: let them wrap rather than squeeze. */
.tr-subnav { flex-wrap: wrap; }
.ir-filter-row { justify-content: flex-end; }
.ir-head { flex: 1; min-width: 0; }
.ir-title { width: 100%; font: inherit; font-size: 20px; font-weight: 600; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 2px 6px; margin: 2px 0 4px -6px; }
.ir-title:hover, .ir-title:focus { border-color: var(--border); background: var(--bg); outline: none; }
.ir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 14px; margin-top: 12px; }
.ir-grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 0; }
.ir-check { display: flex; gap: 8px; align-items: center; margin: 6px 0 12px; }
.ir-phase { margin-bottom: 12px; }
.ir-phase.current { box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }
.ir-phase-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.ir-task { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; flex-wrap: wrap; }
.ir-task.done > span:first-of-type { color: var(--muted); text-decoration: line-through; }
.ir-addtask { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.ir-addtask input { flex: 1; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; }
.ir-timeline { list-style: none; margin: 12px 0 0; padding: 0; max-height: 420px; overflow-y: auto; }
.ir-tl { padding: 6px 0 6px 10px; border-left: 2px solid var(--border); margin-left: 4px; }
.ir-tl-note { border-left-color: var(--accent); }
.ir-tl-text { white-space: pre-wrap; }
.ir-lessons { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; box-sizing: border-box; }
.ir-clock-hot { font-weight: 600; }
.ir-clock-hot::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--critical); margin-right: 6px; vertical-align: middle; } /* status mark beside, text stays ink */
.case-ir { margin-top: 6px; }
.case-ir.hot { box-shadow: inset 3px 0 0 var(--critical); padding-left: 8px; font-weight: 600; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; align-items: center; }

/* --- on-call settings ------------------------------------------------------- */
.oc-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.oc-form input:not([type="checkbox"]) { font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; }
.oc-checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 12px; }
.oc-form .close-result, .oc-form .dialog-actions { grid-column: 1 / -1; }
.oc-note { grid-column: 1 / -1; margin: -4px 0 12px; max-width: 900px; } /* the PagerDuty note under "Send by" */
.oc-chain { grid-column: 1 / -1; margin-bottom: 12px; }
.oc-chain .panel-head { margin-bottom: 6px; }
.oc-backup { display: grid; grid-template-columns: 24px 1fr 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.oc-chain-foot { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.oc-inline input { width: 64px; margin: 0 4px; }
#oc-ack-msg { margin: 0 0 16px; }

/* The red bars across the top, stuck while scrolling: Active threat (Analysts,
   every page) and PagerDuty suppressed (On-call tab). White on #b42318 is 6.5:1. */
.banners { position: sticky; top: 0; z-index: 900; }
.suppress-banner[hidden] { display: none; }
.suppress-banner + .suppress-banner:not([hidden]) { border-top: 1px solid rgba(255, 255, 255, 0.35); }
.suppress-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 24px; background: #b42318; color: #fff; font-size: 15px; line-height: 1.4; }
.suppress-banner strong { font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; }
.suppress-banner #suppress-text, .suppress-banner #threat-text { flex: 1 1 320px; }
.suppress-banner a.btn { text-decoration: none; }
.suppress-banner .btn-link { color: #fff; }
body.map-only .threat-banner { display: none !important; } /* the map draws them */
.suppress-banner .btn { background: #fff; color: #b42318; font-weight: 600; }
.btn-danger { background: #b42318; }
.oc-sup-help { margin: -4px 0 12px; max-width: 900px; }
.oc-sup-form { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 0 16px; align-items: end; }
.oc-sup-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.oc-sup-reason, .oc-sup-form .dialog-actions { grid-column: 1 / -1; }
.oc-sup-form input { font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; color-scheme: dark; }
#oc-sup-state.oc-sup-on { color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 #b42318; padding-left: 8px; }
#oc-sup-msg { margin-top: 12px; }
.panel-head .push-right { margin-left: auto; }
.panel-head .push-right + .btn-link { margin-left: 0; }

@media (max-width: 1000px) {
  .tiles, .source-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .mk-share { grid-template-columns: 1fr; }
  .oc-form { grid-template-columns: 1fr 1fr; }
}

/* --- phone ------------------------------------------------------------------- */
/* One column, tighter padding, and wide tables scroll inside their panel
   instead of the whole page. Inputs at 16px so iOS doesn't zoom on focus. */
@media (max-width: 700px) {
  .header { flex-wrap: wrap; gap: 4px 10px; padding: 10px 12px; }
  .title span { display: none; }
  .meta { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
  .tabs { padding: 6px 8px; }
  .tabs > a, .nav-grp-btn { padding: 0 10px; }
  .nav-strip { padding: 0 8px; }
  .nav-crumb { display: none; }
  /* The flyout becomes a stacked list across the screen. */
  .nav-grp { position: static; }
  .nav-fly { position: absolute; left: 8px !important; right: 8px; top: auto; flex-direction: column; max-height: 70vh; overflow-y: auto; }
  .tabs { position: relative; }
  main { padding: 12px; }
  .panel { padding: 12px; overflow-x: auto; }
  .zs-drill, .cov-drill, .amd-dialog, .ev-dialog { overflow-x: auto; }
  .panel-head, .case-head, .filter-row, .dialog-actions { flex-wrap: wrap; }
  .filters { margin-left: 0; justify-content: flex-start; }
  .source-grid, .am-panels { grid-template-columns: 1fr; }
  .donut-wrap, .funnel { flex-wrap: wrap; }
  .stage-arrow { flex: none; }
  .ev-fields { grid-template-columns: 1fr; gap: 0; }
  .ev-fields dd { margin-bottom: 8px; }
  .nt-search { margin-left: 0; min-width: 0; width: 100%; }
  input, select, textarea, .oc-form input:not([type="checkbox"]), .field select, .field textarea { font-size: 16px; }
  /* On-call: one column; each backup is a stacked card */
  .oc-form { grid-template-columns: 1fr; }
  .oc-checks { gap: 4px 18px; }
  .oc-checks label { padding: 6px 0; }
  .oc-checks input[type="checkbox"] { width: 18px; height: 18px; vertical-align: -3px; }
  .oc-backup { grid-template-columns: 24px 1fr; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  .oc-backup > :not(.oc-backup-n) { grid-column: 2; }
  .oc-backup .btn-link { justify-self: start; padding: 4px 0; }
  .dialog-actions .btn, .dialog-actions .btn-link { padding: 10px 14px; }
  .am-title { font-size: 22px; letter-spacing: 0.08em; }
  .am-clock { margin-left: 0; }
  .am-seek { margin-left: 0; }
  .signin-card { margin: 0 16px; }
  .suppress-banner { padding: 10px 12px; font-size: 14px; }
  .suppress-banner strong { font-size: 16px; }
  .oc-sup-form { grid-template-columns: 1fr; }
  .oc-sup-form input { font-size: 16px; }
}

/* --- roles ---------------------------------------------------------------------- */
/* Viewers (leadership) see aggregates only: item-level panels, tabs and links
   are marked data-analyst, and their data isn't fetched or served either. */
body.viewer-only [data-analyst] { display: none !important; }
/* Readers (SOC.Reader) see what Analysts see but change nothing: no [data-closer] controls. */
body.read-only [data-closer] { display: none !important; }

/* --- Attack map ------------------------------------------------------------ */
/* Map surface #0b0f14: the type colors (attackmap.js) were validated against it. */
.am-stage { background: #0b0f14; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
.am-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.am-legend { display: flex; gap: 8px; flex-wrap: wrap; }
.am-chip { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px 5px 8px; font: inherit; cursor: pointer; }
.am-chip.off { opacity: 0.45; }
.am-chip-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.am-dot { --c: #888; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent), 0 0 10px var(--c); flex: none; }
.am-clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.am-map { position: relative; width: 100%; aspect-ratio: 1000 / 422; } /* attackmap.js sets the exact crop */
#ov-feed td { overflow-wrap: anywhere; } /* long host and lead names wrap inside their column */
.am-head { position: relative; text-align: center; margin: 4px 0 14px; }
.am-title { font-size: 34px; letter-spacing: 0.14em; margin: 0; line-height: 1.1; }
.am-subtitle { color: var(--muted); font-size: 14px; letter-spacing: 0.04em; margin-top: 2px; }
.am-controls { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.am-speed { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 4px; }
.am-speed-label { margin-right: 4px; }
.am-speed-btn { background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; font: inherit; cursor: pointer; font-variant-numeric: tabular-nums; }
.am-speed-btn.on { color: var(--text); border-color: var(--text); }
.am-speed-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@media (max-width: 900px) { .am-controls, .am-speed { position: static; transform: none; justify-content: center; margin-top: 10px; } }
.am-map svg, .am-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.am-map canvas { pointer-events: none; }
.am-sphere { fill: #0b0f14; }
.am-land { fill: #1d2732; }
.am-borders { fill: none; stroke: #0b0f14; stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.am-site, .am-origin { cursor: pointer; }
.am-map.zoomed svg { cursor: grab; }
.am-map.zoomed svg:active { cursor: grabbing; }
.am-zoom { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 4px; }
.am-zoom-btn { background: rgba(11, 15, 20, 0.85); color: var(--text); border: 1px solid var(--border); border-radius: 6px; min-width: 28px; height: 26px; font: inherit; line-height: 1; cursor: pointer; }
.am-zoom-btn:hover, .am-zoom-btn:focus-visible { border-color: var(--text); }
.am-zoom-reset { padding: 0 8px; font-size: 12px; }
.am-map:not(.zoomed) .am-zoom-reset { display: none; }
body.board .am-zoom { display: none; }
.am-site-dot { fill: var(--text); }
.am-site-ring { fill: none; stroke: var(--text); stroke-opacity: 0.35; stroke-width: 1; }
.am-site.quiet .am-site-dot { fill: var(--muted); opacity: 0.55; }
.am-site:focus-visible .am-site-ring, .am-origin:focus-visible { stroke: var(--text); stroke-width: 2; outline: none; }
.am-origin { --c: #888; fill: var(--c); opacity: 0.8; }
.am-timeline { margin-top: 8px; }
.am-timeline-svg { width: 100%; height: 36px; display: block; }
.am-tl-hit { fill: transparent; }
.am-tl-bar { fill: #3a4757; }
.am-tl-hit:hover + .am-tl-bar { fill: #56677a; }
.am-playhead { fill: var(--text); opacity: 0.7; pointer-events: none; }
.am-timeline { cursor: crosshair; touch-action: none; border-radius: 4px; }
.am-timeline:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.am-tl-sel { fill: rgba(255, 255, 255, 0.12); stroke: var(--text); stroke-opacity: 0.5; stroke-width: 1; pointer-events: none; }
.am-sel { display: flex; gap: 14px; align-items: center; min-height: 22px; margin-top: 4px; }
.am-seek { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.am-seek .am-clock { margin-left: 0; }
.am-step { background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; width: 24px; height: 22px; font: inherit; line-height: 1; cursor: pointer; }
.am-step:hover, .am-step:focus-visible { color: var(--text); border-color: var(--text); }
body.board .am-sel, body.board .am-step { display: none; }
.amd-device { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 4px 0 10px; font-size: 13px; }
.amd-device dt { color: var(--muted); }
.amd-device dd { margin: 0; font-variant-numeric: tabular-nums; }
#amd-devices tr.amd-dev-first td { border-top: 1px solid var(--border); }
.am-panels { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; gap: 16px; }
@media (max-width: 1500px) { .am-panels { grid-template-columns: 1fr 1fr; } }
.am-recent { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.am-recent-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.am-recent-time { min-width: 120px; font-variant-numeric: tabular-nums; }
.am-recent-type { font-weight: 600; min-width: 62px; }
@media (max-width: 1100px) { .am-panels { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .am-site-ring { animation: none; } }
/* LIAM active threats: light ink (not a type hue), tagged and listed, standing until closed. */
.am-threat-line { fill: none; stroke: var(--text); stroke-width: 2.2; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(230, 233, 237, 0.7)); animation: am-threat-flow 0.9s linear infinite; pointer-events: none; }
.am-threat-line.ow { stroke-width: 3; }
.am-threat-hit { fill: none; stroke: transparent; stroke-width: 12; vector-effect: non-scaling-stroke; cursor: pointer; pointer-events: stroke; }
.am-threat-hit:focus-visible { stroke: rgba(230, 233, 237, 0.25); outline: none; }
.am-threat-beacon { cursor: pointer; pointer-events: none; }
.am-threat-ring { fill: none; stroke: var(--text); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(230, 233, 237, 0.8)); }
.am-threat-beacon.ow .am-threat-ring { stroke-width: 3; stroke-dasharray: 4 3; }
.am-threat-tick { stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.am-threat-far { fill: var(--text); filter: drop-shadow(0 0 3px rgba(230, 233, 237, 0.8)); pointer-events: none; }
.am-threat-ringhit { fill: none; stroke: transparent; stroke-width: 9; pointer-events: stroke; }
.am-threat-pulse { fill: none; stroke: var(--text); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: am-threat-pulse 1.6s ease-out infinite; }
.am-threat-tag { fill: var(--text); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; paint-order: stroke; stroke: #0b0f14; stroke-width: 3px; pointer-events: all; }
.am-threat-beacon:focus-visible .am-threat-ring { stroke-width: 3.5; }
.am-threat-beacon:focus-visible { outline: none; }
@keyframes am-threat-flow { to { stroke-dashoffset: -24; } }
@keyframes am-threat-pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .am-threat-line, .am-threat-pulse { animation: none; } .am-threat-pulse { display: none; } }
.am-dot-threat { --c: var(--text); }
.am-threats-panel { margin-bottom: 16px; }
.am-demo-banner { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: rgba(11, 15, 20, 0.9); border: 1px dashed var(--text); border-radius: 6px; padding: 5px 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.am-demo-banner .btn-link { margin-left: 8px; font-weight: 400; }
.am-threat-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.am-threat-row { display: flex; align-items: center; gap: 12px; padding: 7px 4px; border-bottom: 1px solid var(--border); }
.am-threat-row.hl { box-shadow: inset 3px 0 0 var(--text); background: rgba(230, 233, 237, 0.05); }
.am-threat-sev { min-width: 104px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.am-threat-sev::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--critical); margin-right: 6px; vertical-align: middle; } /* status mark beside, text stays ink */
.am-threat-row.ow .am-threat-sev::before { box-shadow: 0 0 0 2px var(--text); }
.am-threat-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.am-threat-what { font-weight: 600; }
.am-threat-falcon { white-space: nowrap; }

/* "Threats stopped" ticker over the map, bottom left. */
.am-ticker { position: absolute; left: 10px; bottom: 10px; width: min(470px, 42%); background: rgba(11, 15, 20, 0.85); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 11.5px; line-height: 1.35; }
.am-ticker-head { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; margin-bottom: 4px; }
.am-ticker ul { list-style: none; margin: 0; padding: 0; }
.am-ticker-row { display: grid; grid-template-columns: 8px 58px 1fr; gap: 0 8px; align-items: center; padding: 3px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.am-ticker-row .am-dot { width: 8px; height: 8px; }
.am-ticker-time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.am-ticker-what { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-ticker-where { grid-column: 3; color: var(--muted); }
@media (max-width: 900px) { .am-ticker { position: static; width: auto; margin-top: 8px; } }

/* --- LIAM drill-down: clickable rows and the event details panel ------------- */
.am-click { cursor: pointer; border-radius: 4px; }
.am-click:hover, .am-click:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }
.am-click:focus-visible { box-shadow: 0 0 0 2px var(--text); }
.am-info { color: var(--muted); font-size: 10.5px; border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; margin-left: auto; white-space: nowrap; }
.am-ticker-row.am-click { grid-template-columns: 8px 58px 1fr auto; }
.am-ticker-row .am-info { grid-column: 4; grid-row: 1 / span 2; align-self: center; margin-left: 6px; }
body.board .am-info { display: none; } /* rows still click; the chips are clutter on a wall screen */
.am-click:hover .am-info, .am-click:focus-visible .am-info { color: var(--text); border-color: var(--text); }
.ev-dialog { width: min(720px, 94vw); max-height: 88vh; overflow-y: auto; }
.ev-head { display: flex; align-items: center; gap: 12px; }
.ev-head h2 { margin: 0; font-size: 17px; }
.ev-verdict { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; border: 1px solid; white-space: nowrap; }
.ev-verdict.ok { color: var(--text); border-color: var(--border); }
.ev-verdict.warn { color: #f0b429; border-color: #f0b429; }
.ev-fields { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 12px 0; }
.ev-fields dt { color: var(--muted); font-size: 12.5px; }
.ev-fields dd { margin: 0; overflow-wrap: anywhere; }
.ev-h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 14px 0 6px; }
.ev-rel { padding: 6px 0; border-top: 1px solid var(--border); }
.ev-rel-label { font-weight: 600; font-size: 13px; }
.ev-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 4px; }
/* --- LIAM breakdown (a site's or country's bar) ------------------------------- */
.bar-click { cursor: pointer; }
.bar-click:hover { fill: rgba(255, 255, 255, 0.05); }
.bar-click:focus-visible { outline: none; stroke: var(--text); stroke-width: 1.5; }
.amd-dialog { width: min(860px, 94vw); }
.rwg-dialog { width: min(820px, 94vw); }
.rwg-dialog table { width: 100%; }
.rwg-list { list-style: none; margin: 0; padding: 0; }
.rwg-list li { padding: 5px 0; border-top: 1px solid var(--border); }
.rwg-list li:first-child { border-top: 0; }
.rwg-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.rwg-chips .chip { font-size: 11.5px; padding: 1px 8px; }
.rwg-dialog .ev-fields { grid-template-columns: 170px 1fr; }
.amd-dialog #amd-types { margin: 10px 0 4px; }
.am-chip-static { cursor: default; }
.amd-time-svg { width: 100%; height: 70px; display: block; }
.amd-dialog table { width: 100%; }
.amd-dialog td .am-dot { display: inline-block; width: 8px; height: 8px; vertical-align: middle; }
.amd-dialog .am-recent { max-height: 260px; }
.amd-dialog .am-recent-row > span:nth-child(3) { flex: 1 1 320px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- map only (?view=map, the Control Panel map tile): LIAM without the dashboard */
body.map-only .header, body.map-only .tabs, body.map-only .nav-strip { display: none !important; }

/* --- framed sign-in (Control Panel tile): the popup needs a click */
.signin-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.signin-card { border: 1px solid var(--border); border-radius: 8px; padding: 24px 28px; max-width: 420px; text-align: center; }
.signin-card h2 { margin: 0 0 8px; font-size: 18px; }
.signin-card .btn { margin-top: 12px; }

/* --- board mode: LIAM alone on a wall TV (fullscreen or #/attackmap/tv) ------ */
body.board .header, body.board .tabs, body.board .am-panels, body.board #am-note { display: none !important; }
body.board main { padding: 10px 16px; max-width: none; }
body.board .am-head { margin: 0 0 8px; }
/* Fit the map to the screen height: the stage keeps the map's aspect ratio. */
body.board .am-stage { width: min(100%, calc((100vh - 200px) * var(--am-ratio, 2.37))); margin: 0 auto; }
body.board.idle, body.board.idle * { cursor: none !important; }

/* Zscaler threat drill-down */
.zs-drill { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin: 8px 0 16px; }
.zs-drill .panel-head h3 { margin: 0; }
.zs-drill p { margin: 6px 0; }
/* Identity risk drill-down */
.id-drill { border-color: var(--accent); }
.id-drill p { margin: 6px 0; }
.id-drill h3 { margin: 14px 0 6px; font-size: 14px; }
.id-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 4px; font-size: 13px; color: var(--muted); }
.id-stats b { color: var(--text); font-size: 15px; margin-right: 2px; }
.id-stats .muted b { color: var(--muted); }
#id-drill-days { margin-top: 8px; }
#id-drill .table-scroll { max-height: 460px; overflow-y: auto; }
/* Clickable tiles (Overview: Endpoint coverage) */
.tile-click { cursor: pointer; }
.tile-click:hover, .tile-click:focus-visible { border-color: var(--accent); outline: none; }
.cov-drill { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin: 0 0 12px; }
.cov-drill .panel-head h3 { margin: 0; }
.cov-centers > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
tr.row-click { cursor: pointer; }
tr.row-click:hover td { background: rgba(57, 135, 229, 0.08); }
.cov-drill .table-scroll, .cov-centers .table-scroll { max-height: 460px; overflow-y: auto; }

/* VPN tab: flagged values carry a status mark beside them; the text stays ink */
.vpn-flag { font-weight: 600; }
.vpn-flag:not(:empty)::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--critical); margin-right: 6px; vertical-align: middle; }
td.mono, .vpn-now .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }

/* VPN tab: network owners drill-down, Connected now, the events pager */
.vpn-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 12px; padding: 2px 10px; font-size: 13px; }
.panel-head .vpn-chip .btn-link, .panel-head .pager .btn-link { margin-left: 0; }
.panel-head .pager, .panel-head .seg { margin-left: auto; }
.pager { display: flex; align-items: center; gap: 10px; }
.vpn-scroll { max-height: 440px; overflow-y: auto; }
.vpn-origin-row { cursor: pointer; }
.vpn-origin-row:hover td, .vpn-origin-row:focus-visible td { background: rgba(57, 135, 229, 0.08); }
.vpn-origin-row[aria-expanded="true"] td { border-bottom-color: transparent; }
.vpn-origin-more td { padding: 4px 12px 12px 24px; color: var(--muted); font-size: 13px; }
.vpn-origin-more td > div + div { margin-top: 4px; }
.vpn-now td { padding-top: 10px; padding-bottom: 10px; }
.vpn-now td:nth-child(3) { white-space: nowrap; }
.vpn-kind { display: inline-block; min-width: 56px; text-align: center; border-radius: 10px; padding: 1px 8px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); }
.vpn-kind-user { border-color: var(--accent); }
.vpn-kind-tunnel { border-style: dashed; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.seg button { background: none; border: 0; color: var(--muted); padding: 4px 12px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* Proofpoint month over month: per-day rate as a bar scaled to its row */
table.mom td, table.mom th { vertical-align: middle; }
.mom-month { min-width: 150px; }
.mom-span { text-transform: none; font-weight: 400; font-size: 11px; }
.mom-cell { min-width: 150px; }
.mom-bar { height: 8px; background: var(--border); border-radius: 4px; margin: 2px 0 4px; max-width: 160px; }
.mom-bar span { display: block; height: 100%; background: #3987e5; border-radius: 4px; }
.mom-val { font-variant-numeric: tabular-nums; }
.mom-total td { font-weight: 600; }
.mom-trend { white-space: nowrap; }
.mom-trend.none { color: var(--muted); }
.mom-trend.up::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-left: 6px; vertical-align: middle; } /* status mark beside, text stays ink */

/* Threat Intel > On our network: CVEs with one fix, grouped under a header row */
tr.va-group td { background: var(--hover, #1f2933); border-top: 1px solid var(--border); }
tr.va-member td:first-child { padding-left: 22px; box-shadow: inset 3px 0 0 var(--border); }

/* --- Read-Out (js/readout.js) ------------------------------------------------- */
/* Brand colors: orange #F19C49 as the accent, red #FC7753 for a red mark. */
#view-readout { --ro-accent: #F19C49; --ro-red: #FC7753; --ro-yellow: #e9c84a; --ro-green: #2fb37e; }
.ro-controls .btn-link:disabled { opacity: 0.5; cursor: default; text-decoration: none; }
.ro-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 16px; padding-left: 12px; box-shadow: inset 3px 0 0 var(--ro-accent); font-size: 20px; font-weight: 600; }
.ro-title .small { font-weight: 400; }
.ro-tag { border: 1px solid var(--ro-accent); border-radius: 999px; padding: 0 8px; font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--text); }
.ro-h3 { margin: 16px 0 8px; font-size: 13px; font-weight: 600; }
.ro-list { margin: 6px 0 0; padding-left: 20px; }
.ro-list li { margin-bottom: 4px; overflow-wrap: anywhere; }
.ro-flags li::marker { color: var(--ro-red); }
#ro-overview, #ro-hot { white-space: pre-line; overflow-wrap: anywhere; max-width: 900px; }
/* Wide tables scroll inside their panel (.table-scroll) rather than squeeze. */
.ro-stats { min-width: 760px; }
.ro-table { min-width: 680px; }
.ro-stats th .ro-range { text-transform: none; font-weight: 400; font-size: 11px; white-space: nowrap; }
.ro-change { color: var(--muted); font-size: 11px; }
/* Trend marks: a shape as well as a color, beside the number (text stays ink). */
.ro-mark { display: inline-block; width: 10px; height: 10px; margin-left: 6px; vertical-align: middle; }
.ro-mark[data-color="green"] { background: var(--ro-green); border-radius: 50%; }
.ro-mark[data-color="yellow"] { background: var(--ro-yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ro-mark[data-color="red"] { background: var(--ro-red); }
.ro-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 6px; }
.ro-legend .ro-mark { margin: 0 6px 0 0; }
.ro-unassigned { font-weight: 600; }
.ro-activity { margin-bottom: 0; }
.ro-activity > div { min-width: 0; }
/* display: grid on .tiles would otherwise override the hidden attribute */
#ro-backlog-tiles[hidden] { display: none; }
#ro-backlog-tiles { margin-bottom: 8px; }
.ro-foot p { margin: 0 0 4px; }
.ro-alarm { box-shadow: inset 3px 0 0 var(--ro-red); font-weight: 600; margin-bottom: 8px; }
.ro-foot .ro-mail-bad { box-shadow: inset 3px 0 0 var(--ro-red); padding-left: 8px; font-weight: 600; }
#ro-confirm p { white-space: pre-line; }
@media (max-width: 700px) {
  .ro-title { font-size: 17px; }
  .ro-controls select { max-width: 100%; }
}

/* Zscaler > Scripts */
.zs-scripts-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.zs-scripts-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.zs-scripts-fields input { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; font: inherit; }
pre.zs-script { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.45; white-space: pre; overflow-x: auto; margin: 0; padding: 12px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); color: var(--text); }
