/* Djana website. Palette from the Djana Box itself (dark red), set on deep oxblood; the navy badge stays navy.
   Served as a file: the template minifier mangles inline CSS. Fonts are served from static/fonts, never a font CDN
   (security xdr/34 RGN-R05b): Inter for text (owner, 2026-10-20; variable, one file for every weight) and Montserrat
   for headings, both SIL OFL 1.1 (licences beside them). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/InterVariable.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("fonts/InterVariable-Italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/Montserrat-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/Montserrat-Bold.ttf") format("truetype"); }
:root {
  /* One token set, two values (xdr/23 v1.15, IW-18): the dark values here; the light ones under [data-scheme="light"]
     below. Every colour on a console page comes from these tokens (tints mix a token with transparency), never a
     literal, so both themes stay complete. The only literals left are what must not follow the theme: the platforms'
     own brand marks on the enrolment chooser, the printed device sticker (black on white paper) and mask gradients. */
  color-scheme: dark;
  --bg: #140A0C;          /* oxblood night */
  --surface: #1E1013;     /* panels */
  --raised: #29161A;      /* fields, hover */
  --line: #3D2128;        /* borders, map rings */
  --box: #8E1B24;         /* Djana Box red: primary actions */
  --box-lit: #B3303A;     /* hover, router node */
  --on-box: #FFFFFF;      /* text on the red */
  --rose: #E8A3AA;        /* links, map edges, active nav */
  --text: #F6ECEC;
  --muted: #B89EA3;
  --placeholder: #8A7277;
  --online: #4FD18B;
  --online-bg: #10291D;
  --online-line: #1F4D35;
  --attn: #F2A541;        /* needs you */
  --attn-bg: #3A2610;
  --attn-line: #5A3A12;
  --attn-surface: #23130F;
  --error-bg: #3A1418;
  --error: #FFB4B8;
  --error-line: #5A1E24;
  --check-hover: #C23A45;
  --mark: #F5F5F7;        /* monochrome platform marks (Apple, phone) */
  --now: #FF5A64;
  --faint: #5C4246;       /* calendar days outside the month */
  --shade-1: #3A1A1F; --shade-2: #5A2028; --shade-3: #8E1B24;
  --map-1: #2A1217; --map-2: #1A0B0E; --map-3: #140A0C;
  --shadow: rgb(0 0 0 / .45);
  --scrim: rgb(10 4 6 / .72);
  --display: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Light: the same tokens on warm paper. Text and links hold 4.5:1 or more on --bg, --surface and --raised; muted text
   too (scripts/e2e/console_layout_web.mjs and scripts/ui/theme-conformance.mjs check every visible text in both themes).
   Without JavaScript a person on System gets these on a light device too (the media block after this one). */
:root[data-scheme="light"] {
  color-scheme: light;
  --bg: #FAF6F6;
  --surface: #FFFFFF;
  --raised: #F3EAEB;
  --line: #E0CFD2;
  --box: #8E1B24;
  --box-lit: #A6262F;
  --on-box: #FFFFFF;
  --rose: #9C2733;
  --text: #241216;
  --muted: #6B5357;
  --placeholder: #8C7579;
  --online: #17693F;
  --online-bg: #E2F3E9;
  --online-line: #A6D6BA;
  --attn: #8F4E00;
  --attn-bg: #FCEFD9;
  --attn-line: #E5C189;
  --attn-surface: #FFF7EA;
  --error-bg: #FCE6E8;
  --error: #9B1C27;
  --error-line: #EBB2B8;
  --check-hover: #A6262F;
  --mark: #3B2A2D;
  --now: #D92B38;
  --faint: #C5B3B6;
  --shade-1: #F6DADD; --shade-2: #E9A9B0; --shade-3: #B3303A;
  --map-1: #FFFFFF; --map-2: #FBF3F4; --map-3: #F5EBEC;
  --shadow: rgb(60 20 28 / .16);
  --scrim: rgb(36 18 22 / .45);
}
/* System without JavaScript (no data-scheme yet): the device's own setting picks the same light values. Keep this block
   identical to the one above (scripts/ui/theme-conformance.mjs compares them). */
@media (prefers-color-scheme: light) {
  :root[data-theme="system"]:not([data-scheme="dark"]):not([data-scheme="light"]) {
    color-scheme: light;
    --bg: #FAF6F6;
    --surface: #FFFFFF;
    --raised: #F3EAEB;
    --line: #E0CFD2;
    --box: #8E1B24;
    --box-lit: #A6262F;
    --on-box: #FFFFFF;
    --rose: #9C2733;
    --text: #241216;
    --muted: #6B5357;
    --placeholder: #8C7579;
    --online: #17693F;
    --online-bg: #E2F3E9;
    --online-line: #A6D6BA;
    --attn: #8F4E00;
    --attn-bg: #FCEFD9;
    --attn-line: #E5C189;
    --attn-surface: #FFF7EA;
    --error-bg: #FCE6E8;
    --error: #9B1C27;
    --error-line: #EBB2B8;
    --check-hover: #A6262F;
    --mark: #3B2A2D;
    --now: #D92B38;
    --faint: #C5B3B6;
    --shade-1: #F6DADD; --shade-2: #E9A9B0; --shade-3: #B3303A;
    --map-1: #FFFFFF; --map-2: #FBF3F4; --map-3: #F5EBEC;
    --shadow: rgb(60 20 28 / .16);
    --scrim: rgb(36 18 22 / .45);
}
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--body); }
a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; max-width: 70ch; }
.muted { color: var(--muted); }

/* Shell: sidebar + content */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 6px 22px; color: var(--text); font: 700 18px var(--display); }
.brand:hover { text-decoration: none; }
.brand img { height: 26px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { color: var(--muted); padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.side nav a:hover { background: var(--raised); color: var(--text); text-decoration: none; }
.side nav a.on { background: var(--raised); color: var(--text); box-shadow: inset 3px 0 0 var(--box-lit); }
.side .who { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.side .who a { display: inline-block; margin-top: 6px; }
main { padding: 36px 44px; max-width: 1180px; width: 100%; min-width: 0; }  /* min-width: a grid item may shrink below its content, so wide tabs and tables scroll inside it */
.crumbs { font-size: 13px; margin-bottom: 8px; color: var(--muted); }

/* Page header with Space tabs */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pagehead h1 { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-bottom-color: var(--box-lit); }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 18px; }
.panel > h2:first-child { margin-top: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; color: var(--text); }
.tile:hover { border-color: var(--box); text-decoration: none; }
.tile h3 { margin-bottom: 6px; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 8px; border: 1px solid transparent; background: var(--box); color: var(--on-box); font: 600 14px var(--body); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--box-lit); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--line); }
.btn-quiet:hover { background: var(--raised); }
.btn-attn { background: var(--box); }
.btn-danger { background: var(--error-bg); color: var(--error); border-color: var(--error-line); }
.btn-danger:hover { background: color-mix(in srgb, var(--error-bg) 80%, var(--error)); }
input, select, textarea { font: inherit; color: var(--text); background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
input::placeholder { color: var(--placeholder); }
input:focus, select:focus { border-color: var(--rose); outline: none; }
form.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form.row input { flex: 1 1 200px; }
form.inline { display: inline; }
label { color: var(--muted); font-size: 13px; }

/* Status */
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--raised); color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; flex: none; }
.chip.ok { background: var(--online-bg); color: var(--online); }
.chip.attn { background: var(--attn-bg); color: var(--attn); }
.error { background: var(--error-bg); color: var(--error); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--error-line); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); margin-right: 6px; vertical-align: middle; }
.dot.ok { background: var(--online); box-shadow: 0 0 0 3px color-mix(in srgb, var(--online) 15%, transparent); }

/* Lists */
.list { display: flex; flex-direction: column; }
.list .item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.list .item:first-child { border-top: 0; }
.list .item .sub { color: var(--muted); font-size: 13px; }
/* A row's first part (what it is) takes the room; its last (state, actions) keeps its own width (IW-19). */
.list .item > :is(div, p):first-child:not(:only-child) { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.list .item > :last-child:not(:only-child) { flex: 0 1 auto; }
/* Tables (xdr/23 v1.15, IW-19): a table fills its container; its columns take what their content needs, and long
   values wrap by word. A table too wide for its container scrolls inside its own region (.tablewrap), never the page.
   Controls in a cell never force it wider than the table can give. */
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; overflow-wrap: break-word; }
td select, td input:not([type="checkbox"]):not([type="radio"]), td textarea { max-width: 100%; min-width: 0; }
select { max-width: 100%; text-overflow: ellipsis; }
.tablewrap { overflow-x: auto; max-width: 100%; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }

/* The live map: the one bold thing */
.mapwrap { position: relative; background: radial-gradient(ellipse at 50% 50%, var(--map-1) 0%, var(--map-2) 60%, var(--map-3) 100%); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
svg.map { width: 100%; height: auto; display: block; }
svg.map .ring { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; }
svg.map .edge { stroke: color-mix(in srgb, var(--rose) 28%, transparent); stroke-width: 1.5; }
svg.map .node { fill: var(--rose); stroke: var(--bg); stroke-width: 3; }
svg.map .node.gw { fill: var(--box-lit); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--box-lit) 80%, transparent)); }
svg.map .node.gone { fill: var(--bg); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 3; }
svg.map text { font: 500 13px var(--body); fill: var(--text); }
svg.map a:hover .node { fill: var(--text); }
.maplegend { position: absolute; left: 14px; bottom: 12px; font-size: 12px; color: var(--muted); display: flex; gap: 14px; }
.livebadge { position: absolute; right: 14px; top: 12px; font-size: 12px; color: var(--muted); }
code.link { display: block; padding: 10px; background: var(--raised); border-radius: 8px; word-break: break-all; }

/* Narrow screens: sidebar becomes a top bar */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 12px 16px; }
  .brand { margin: 0 12px 0 0; }
  .side nav { flex-direction: row; }
  .side .who { margin: 0 0 0 auto; border: 0; padding: 0; font-size: 0; }
  .side .who a { font-size: 13px; margin: 0; }
  .side nav a.on { box-shadow: inset 0 -2px 0 var(--box-lit); }
  svg.map text { font-size: 18px; }
  main { padding: 22px 16px; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  svg.map .node.fresh { animation: arrive 1.6s ease-out 1; }
  @keyframes arrive { 0% { r: 4; opacity: .2; } 60% { r: 19; } 100% { r: 13; opacity: 1; } }
}

/* Printed box label (light, for paper) */
.sticker { width: 62mm; padding: 4mm; border: 1px dashed #C0D6EA; text-align: center; font-family: system-ui, sans-serif; color: #13263A; background: #fff; }
.sticker-logo { width: 40mm; }
.sticker-qr { width: 34mm; height: 34mm; display: block; margin: 2mm auto; }
.sticker-serial { font: 700 16pt ui-monospace, Menlo, monospace; letter-spacing: 1px; }
.sticker-hint { font-size: 8pt; color: #5B6B7C; }
@media print { .sticker { border: 0; } }

/* Landing */
.landing { min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.landing-logo { width: 220px; margin-bottom: 28px; }
.landing-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.landing-mark { width: 72px; height: 72px; margin: -10px; }
.landing-wordmark { font-size: 56px; font-weight: 700; letter-spacing: -2px; line-height: 1; color: var(--text); }
.landing-title { font-size: 40px; max-width: 16ch; }
.landing-map { width: 100%; }
.landing-map .ring { fill: none; stroke: var(--line); stroke-dasharray: 2 5; }
.landing-map .edge { stroke: color-mix(in srgb, var(--rose) 30%, transparent); stroke-width: 1.5; }
.landing-map .node { fill: var(--rose); stroke: var(--bg); stroke-width: 3; }
.landing-map .node.gw { fill: var(--box-lit); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--box-lit) 90%, transparent)); }
.landing-map .node.gone { fill: var(--bg); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 3; }
@media (max-width: 860px) { .landing { grid-template-columns: 1fr; } .landing-title { font-size: 30px; } }

/* Space sections: applications, endpoints, storage, data sources */
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs a { white-space: nowrap; }
label > input, label > textarea { display: block; width: 100%; margin-top: 6px; }
textarea { font-family: ui-monospace, Menlo, monospace; font-size: 12px; resize: vertical; }
textarea:focus { border-color: var(--rose); outline: none; }
details.more summary { cursor: pointer; color: var(--rose); font-size: 13px; margin-top: 4px; }
details.more .list { margin-top: 6px; gap: 2px; }
details.confirm { display: inline-block; margin-left: 8px; }
details.confirm summary { list-style: none; cursor: pointer; color: var(--text); font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; display: inline-block; }
details.confirm summary:hover { background: var(--raised); }
details.confirm summary::-webkit-details-marker { display: none; }
details.confirm[open] summary { color: var(--text); }
.confirmbox { margin-top: 8px; padding: 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; text-align: left; max-width: 280px; }
.confirmbox p { margin: 0 0 10px; font-size: 13px; }
.sourcegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sourcecard { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); color: var(--text); }
.sourcecard:hover { border-color: var(--rose); text-decoration: none; }
.sourcecard .sub { color: var(--muted); font-size: 13px; }

/* Live updates: a changed row or node pulses once (static/live.js) */
@media (prefers-reduced-motion: no-preference) {
  .list .item.fresh { animation: rowflash 1.8s ease-out 1; }
  @keyframes rowflash { 0% { background: color-mix(in srgb, var(--rose) 22%, transparent); } 100% { background: transparent; } }
}
#livestate { font-size: 11px; vertical-align: middle; margin-left: 8px; }
[hidden] { display: none !important; }

/* Space page: status at a glance, with quick links to the boxes, the devices and what needs a look. */
.status { display: grid; gap: 12px; margin-bottom: 20px; }
.statusline { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.statusline .dot { width: 10px; height: 10px; margin: 0; background: var(--muted); }
.statusline .dot.ok { background: var(--online); }
.statusline .dot.attn { background: var(--attn); }
.statusline .dot.bad { background: var(--error); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { display: grid; gap: 4px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--text); }
.stat:hover { border-color: var(--box); text-decoration: none; }
.stat .value { font-size: 20px; font-weight: 600; }
.stat .value.ok { color: var(--online); }
.stat .value.attn { color: var(--attn); }
.stat .value.bad { color: var(--error); }
.stat .label { color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Alerts inbox and incidents. */
.chip.bad { background: var(--error-bg); color: var(--error); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.filters select { width: auto; min-width: 0; }
.alertside { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; max-width: 46%; }
.alertactions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; width: 100%; }
.alertactions form { margin: 0; }
/* A decided alert's (or incident's) group, beside its status chip (security-jlis): plain words, no tone or icon. */
.decided { color: var(--muted); font-size: 12px; font-weight: 500; }
/* An alert's Close opens its reason below the row, full width (security-jlis): the row wraps, its text column takes
   the room the side leaves, and the form is the row's last line. */
.list .item.alertrow { flex-wrap: wrap; }
.list .item.alertrow > div:first-child:not(:only-child) { flex: 1 1 0; }
.list .item.alertrow > .alertclose:last-child { flex: 1 0 100%; }
.alertclose[hidden] { display: none; }
.alertclose form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; }
.alertclose label { font-size: 13px; font-weight: 600; color: var(--text); }
.alertclose select { width: auto; min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .alertrow, .list .item.alertrow { flex-direction: column; align-items: stretch; gap: 8px; }
  .alertside { justify-content: flex-start; max-width: none; }
  .alertactions { justify-content: flex-start; }
  .list .item.alertrow > div:first-child:not(:only-child) { flex: none; }
  .list .item.alertrow > .alertclose:last-child { flex: none; }
}

/* Incident summaries written by the model (docs/plans/alerts-incidents-response.md §4.5). */
.aimark { font-size: 12px; margin: 0 0 10px; }
.aimark .chip { font-size: 11px; margin-right: 4px; }

/* Scrollbars in the theme's colours (Firefox and current Chrome/Safari use the standard properties; older WebKit the
   pseudo-elements). Thin thumbs in the border colour on a transparent track; WebKit lightens the thumb under the pointer. */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }

/* Live traffic: each row's two ends, who started it → who answered, and connections started from the internet. */
.tail-ends { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.tail-ends > div { min-width: 0; overflow-wrap: anywhere; }
.tail-arrow { color: var(--muted); padding-top: 1px; }
tr.incoming td { background: color-mix(in srgb, var(--attn) 8%, transparent); }
tr.incoming td:first-child { box-shadow: inset 3px 0 0 var(--attn); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
[x-cloak] { display: none !important; }
.btn-quiet.on { border-color: var(--rose); color: var(--rose); }

/* Radios keep their native shape (the field style above is for text inputs). */
input[type="radio"] { padding: 0; width: auto; background: none; border: 0; accent-color: var(--box-lit); margin: 3px 0 0; flex: none; }
/* One checkbox everywhere (owner, 2026-10-14): the console's red square with a white tick, never the browser's
   grey. Disabled boxes keep that look, faded, so a locked choice still reads as on or off. */
input[type="checkbox"] { appearance: none; -webkit-appearance: none; box-sizing: border-box; width: 18px; height: 18px;
  margin: 3px 0 0; padding: 0; flex: none; display: inline-grid; place-content: center; vertical-align: middle;
  background: var(--raised); border: 1.5px solid var(--placeholder); border-radius: 4px; cursor: pointer;
  transition: background-color .12s, border-color .12s; }
input[type="checkbox"]::before { content: ""; width: 10px; height: 10px; background: var(--on-box); transform: scale(0);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); transition: transform .12s; }
input[type="checkbox"]:checked { background: var(--box-lit); border-color: var(--box-lit); }
input[type="checkbox"]:checked::before { transform: scale(1); }
input[type="checkbox"]:hover:not(:disabled) { border-color: var(--rose); }
input[type="checkbox"]:checked:hover:not(:disabled) { background: var(--check-hover); border-color: var(--check-hover); }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
input[type="checkbox"]:disabled { opacity: .7; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { input[type="checkbox"], input[type="checkbox"]::before { transition: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 13px; }
.mono-sm { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head .filters { margin: 0; }
.empty { color: var(--muted); margin: 4px 0 0; }

/* Network protection: the verdict says first whether anything is wrong. */
.verdict { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; margin-bottom: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.verdict .mark { width: 14px; height: 14px; border-radius: 50%; margin-top: 9px; flex: none; background: var(--muted); }
.verdict.ok .mark { background: var(--online); box-shadow: 0 0 0 5px color-mix(in srgb, var(--online) 14%, transparent); }
.verdict.attn { border-color: var(--attn-line); }
.verdict.attn .mark { background: var(--attn); box-shadow: 0 0 0 5px color-mix(in srgb, var(--attn) 16%, transparent); }
.verdict h2 { font-size: 24px; line-height: 1.25; margin: 0 0 6px; }
.verdict p { margin: 0; }
.boxstate { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; }

/* Coverage: one segment per device online, lit when the box sees what it looks up. */
.coverage { display: flex; gap: 3px; height: 12px; margin: 4px 0 10px; max-width: 640px; }
.coverage span { flex: 1; min-width: 4px; border-radius: 3px; background: var(--raised); border: 1px solid var(--line); }
.coverage span.seen { background: var(--online); border-color: var(--online); }
.coverage-line { font-family: var(--display); font-weight: 600; font-size: 17px; margin: 0 0 4px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; margin-top: 14px; }
.cols2 h3 { margin: 0 0 6px; }
.cols2 .count { font-family: var(--body); font-weight: 500; }
.devlist { list-style: none; margin: 0 0 8px; padding: 0; }
.devlist li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.devlist li:first-child { border-top: 0; }
.devlist li .muted { font-size: 13px; text-align: right; }

/* Settings inside a box: how it listens, router steps. */
.setup { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.setup > summary { cursor: pointer; font-weight: 600; color: var(--rose); }
.setup[open] > summary { margin-bottom: 12px; }
.setup.open { border: 1px solid var(--attn-line); border-radius: 12px; padding: 16px 18px; background: var(--attn-surface); }
.setup.open h3 { color: var(--attn); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices fieldset, fieldset.choices { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.choices fieldset:disabled, fieldset.choices:disabled { opacity: .6; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.choice:hover { background: var(--raised); }
.choice:has(input:checked) { border-color: var(--rose); background: var(--raised); }
.choice span { display: flex; flex-direction: column; gap: 2px; }
.choice .muted { font-size: 13px; }
.choice.off { cursor: default; opacity: .55; }
.choice.off:hover { background: none; }
/* How a Djana Box listens (security-jor, components/listen.wtz, pages/listen.wtz): "Help me choose", the option cards
   (each the radio's label) and the comparison page. */
.chip.rec { background: transparent; color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.lm-advice { border: 1px solid var(--line); border-left: 3px solid var(--rose); border-radius: 10px; background: var(--raised); padding: 12px 16px; margin: 0 0 14px; }
.lm-advice h4 { margin: 0 0 6px; font-family: var(--display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--rose); }
.lm-advice-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.lm-advice-line { margin: 0 0 6px; font-weight: 600; }
.lm-why { margin: 0 0 6px; padding-left: 20px; font-size: 14px; display: grid; gap: 2px; }
.lm-advice .small { margin: 0; }
.lm-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lm-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lm-card.off { border-style: dashed; }
.lm-card.in-use, .lm-card:has(input:checked) { border-color: var(--rose); }
.lm-card:has(input:checked) { background: var(--raised); }
.lm-card:has(input:focus-visible) { outline: 2px solid var(--rose); outline-offset: 2px; }
.lm-choice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px 12px; cursor: pointer; flex: 1; }
.lm-card.off .lm-choice { cursor: default; }
.lm-choice input { margin: 4px 0 0; flex: none; width: 18px; height: 18px; accent-color: var(--box-lit); }
.lm-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.lm-card > .lm-text { padding: 14px 16px 12px; }
.lm-top { display: flex; gap: 12px; align-items: center; }
.lm-thumb { flex: none; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.lm-thumb svg { display: block; width: 96px; height: auto; }
.lm-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lm-title strong { font-family: var(--display); font-size: 16px; }
.lm-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.lm-facts { display: grid; gap: 6px; font-size: 14px; }
.lm-fact { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; }
.lm-k { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.lm-waits { font-size: 14px; color: var(--attn); }
.lm-health { margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--line); font-size: 14px; display: flex; gap: 2px; align-items: baseline; }
.lm-health .dot { flex: none; }
.lm-health .dot.attn { background: var(--attn); }
.lm-health a { white-space: nowrap; }
.lm-more { margin: 12px 0 6px; }
/* The Listening tab: the live status line (swapped alone), and Save under the option cards. */
.lm-status .lm-now { margin: 0 0 4px; }
.panel .lm-status .lm-health { margin: 0 0 6px; }
.choices fieldset > .lm-cards, .choices fieldset > .lm-save { grid-column: 1 / -1; }
.lm-save { margin: 6px 0 0; }
.listen-line { margin: 6px 0 12px; }
.lm-diagram { overflow-x: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin: 10px 0; }
.lm-diagram:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.lm-diagram svg { display: block; width: 100%; min-width: 640px; height: auto; }
.lm-dl { margin-top: 6px; }
.lm-notes { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 3px; }
.lm-notes:empty { display: none; }
.panel .lm-health, .lm-section .lm-health { padding: 0; margin: 10px 0 14px; border-top: 0; max-width: none; }
.lm-section:focus { outline: none; }
.lm-part { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); margin: 28px 0 4px; }
.lm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lm-table th, .lm-table td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.lm-table thead th { color: var(--rose); font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.lm-table tbody th { min-width: 150px; font-family: var(--body); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text); }
.lm-table tbody th .lm-chips { display: flex; }
.lm-table tbody th .lm-chips { margin-top: 4px; }
.lm-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 760px) {
  .lm-cards { grid-template-columns: 1fr; }
  .lm-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lm-table, .lm-table tbody, .lm-table tr, .lm-table th, .lm-table td { display: block; }
  .lm-table tbody tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .lm-table th, .lm-table td { border: 0; padding: 4px 0; }
  .lm-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
}
@media (max-width: 420px) {
  .lm-fact { grid-template-columns: 1fr; gap: 0; }
  .lm-choice { padding: 12px; }
  .lm-thumb svg { width: 80px; }
}
.address { font-family: ui-monospace, Menlo, monospace; font-size: 22px; letter-spacing: .02em; margin: 2px 0 14px; user-select: all; }
.routers { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.routers .btn { padding: 6px 12px; font-size: 14px; }
.steps { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 6px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 10px 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 720px) {
  .cols2 { grid-template-columns: 1fr; }
  .verdict { padding: 18px; }
  .verdict h2 { font-size: 20px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
}
.attn-text { color: var(--attn); }

/* Traffic */
.listening { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.listening .chip { font-size: 13px; padding: 3px 12px; }
.listening p { margin: 0; color: var(--muted); }
.tail-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tail-controls select { width: auto; padding: 8px 12px; }
.hour-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hour-filters .search { flex: 1 1 260px; max-width: 420px; padding: 8px 12px; }
tr.hour-head th { text-align: left; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--text); background: var(--raised); padding: 8px 12px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
@media (max-width: 720px) {
  .tail-controls { width: 100%; }
  .tail-controls select { flex: 1 1 100%; }
  .hour-filters > div { width: 100% !important; }
}

/* Devices (Djana Agent) */
.device-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 16px; }
.dtile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.dtile strong { font-family: var(--display); font-size: 22px; }
.dtile.ok strong { color: var(--online); }
.dtile.attn strong { color: var(--attn); }
.dtile.bad strong { color: var(--error); }
/* The Devices list (xdr/26 01 P1-R45): each tile is its state's list; the search takes the row's free width. */
a.dtile { color: inherit; text-decoration: none; }
a.dtile:hover, a.dtile:focus-visible { border-color: var(--muted); }
.devfilters { margin: 0 0 12px; }
.devfilters input[type="search"] { flex: 1 1 28ch; min-width: 0; }
@media (max-width: 640px) { .devfilters input[type="search"], .devfilters .btn { flex: 1 1 100%; } }
.devcount { margin: 0 0 8px; }
.devmoved { margin: 0 0 8px; }

/* A page's own sections as pills (a protected device: Overview, Software, What it reported). */
.kv { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.notice { background: var(--online-bg); color: var(--online); padding: 10px 14px; border-radius: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; cursor: pointer; }
.check > span { display: flex; flex-direction: column; gap: 2px; }
.cmd { display: flex; align-items: flex-start; gap: 10px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 10px 10px 10px 14px; margin: 4px 0 10px; }
.cmd pre { flex: 1; min-width: 0; margin: 0; padding-top: 8px; font: 13px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-all; }
.cmd .btn { flex: none; padding: 6px 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
/* Icons (static/icons: Lucide line icons, ISC; brand-* platform logos, Simple Icons CC0 and Windows drawn here): drawn in the text colour through a mask; a picked choice turns them rose. */
.ico { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; color: var(--muted); }
.choice .ico { margin-top: -1px; }
.choice:has(input:checked) .ico { color: var(--rose); }
.ico-brand-linux { -webkit-mask-image: url(/static/icons/brand-linux.svg); mask-image: url(/static/icons/brand-linux.svg); }
.ico-brand-apple { -webkit-mask-image: url(/static/icons/brand-apple.svg); mask-image: url(/static/icons/brand-apple.svg); }
.ico-brand-windows { -webkit-mask-image: url(/static/icons/brand-windows.svg); mask-image: url(/static/icons/brand-windows.svg); }
.ico-brand-android { -webkit-mask-image: url(/static/icons/brand-android.svg); mask-image: url(/static/icons/brand-android.svg); }
.ico-brand-ios { -webkit-mask-image: url(/static/icons/brand-ios.svg); mask-image: url(/static/icons/brand-ios.svg); }
/* Platform logos in their brand colours (Simple Icons hex; Apple's black shown white on this dark theme, Windows in
   Microsoft blue). They keep their colour when picked: the card's border shows the pick. */
.ico.ico-brand-linux, .choice:has(input:checked) .ico-brand-linux { color: #FCC624; }
.ico.ico-brand-apple, .choice:has(input:checked) .ico-brand-apple { color: var(--mark); }
.ico.ico-brand-windows, .choice:has(input:checked) .ico-brand-windows { color: #0078D4; }
.ico.ico-brand-android, .choice:has(input:checked) .ico-brand-android { color: #34A853; }
.ico.ico-brand-ios, .choice:has(input:checked) .ico-brand-ios { color: var(--mark); }
.ico-ticket { -webkit-mask-image: url(/static/icons/ticket.svg); mask-image: url(/static/icons/ticket.svg); }
.ico-tickets { -webkit-mask-image: url(/static/icons/tickets.svg); mask-image: url(/static/icons/tickets.svg); }
/* Choice cards led by an icon: the radio is kept for keyboards and screen readers but not drawn; the card shows the pick. */
.choices.tiles .choice, .choices.iconed .choice { position: relative; }
.choices.tiles .choice input, .choices.iconed .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice:has(input:focus-visible) { outline: 2px solid var(--rose); outline-offset: 2px; }
.choices.tiles { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choices.tiles .choice { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 18px 12px 16px; }
.choices.tiles .ico { width: 32px; height: 32px; margin: 0; }
.choices.iconed .choice { align-items: center; gap: 14px; padding: 14px 16px; }
.choices.iconed .ico { width: 26px; height: 26px; margin: 0; }
/* Summary dashboards (a Space, a device): a row of numbers, then tiles that each link into the details. */
.dash-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 18px; }
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; align-items: start; }
.dash > .panel { margin-bottom: 0; }
a.plain { color: inherit; }
.list a.linkrow { color: inherit; text-decoration: none; }
.list a.linkrow:hover strong { color: var(--rose); }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.suggest .btn { padding: 4px 10px; font-size: 12px; }
/* A device's event rows: what happened (chip), the thing, its details; time and actions on the right. */
.evrow { align-items: flex-start; }
.evmain { display: flex; gap: 12px; align-items: flex-start; min-width: 0; flex: 1; }
.evmain > .chip { margin-top: 2px; min-width: 72px; text-align: center; }
.evwhat { overflow-wrap: anywhere; }
.evside { text-align: right; display: flex; align-items: center; gap: 8px; flex: none; }
.evtools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.evtools form { margin: 0; }
.livesw { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.livesw:has(input:checked) span { color: var(--online); }
.evrow.fresh { animation: evfresh 2.5s ease-out; }
@keyframes evfresh { from { background: color-mix(in srgb, var(--rose) 14%, transparent); } to { background: transparent; } }
@media (max-width: 640px) {
  .evrow { flex-direction: column; gap: 6px; }
  .evside { text-align: left; }
}
.evmain > div { min-width: 0; flex: 1; }
.evrow .sub { overflow-wrap: anywhere; }
/* A device list's facts on the shared filter bar (26.02 P2-W08): each value keeps its Show only / Hide beside it; lines
   break between facts, a long value wraps inside its own. */
.evfacts { display: flex; flex-wrap: wrap; align-items: center; }
.evfact { min-width: 0; max-width: 100%; }
.evhead { display: inline-block; max-width: 100%; }
.evval { overflow-wrap: anywhere; }
.evsep { color: var(--muted); white-space: pre; }
.evutil { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 12px; margin: 0 0 4px; }

/* Events explorer and fleet inventory (xdr/09 §3.11) */
.subtabs { margin-bottom: 16px; }
.subtabs a { font-size: 14px; padding: 6px 12px; }
.facets { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 4px 0 10px; }
.facets label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.facets select, .facets input[type="datetime-local"] { min-width: 150px; }
.facets .query { flex: 1 1 320px; min-width: 0; font-family: var(--mono, ui-monospace, monospace); font-size: 13px; }
.chips-line, .searches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.searches .chip a { color: var(--text); }
.chip.saved { display: inline-flex; gap: 6px; align-items: center; }
.linkish { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 2px; font: inherit; }
.save-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 14px; }
.save-search input { max-width: 260px; }
.events-table { width: 100%; border-collapse: collapse; }
.events-table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.events-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.events-table td:first-child { white-space: nowrap; }
/* Device and Type stay on one line where there is room for them and their Show only / Hide actions (P2-W07). */
@media (min-width: 1100px) { .events-table td:nth-child(2), .events-table td:nth-child(3) { white-space: nowrap; } }
/* A removed device's longer name (26.02 OD-P2-14) wraps instead of widening the Device column. */
@media (min-width: 1100px) { .events-table td.dev-removed { white-space: normal; min-width: 9em; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
pre.raw { max-height: 420px; overflow: auto; background: var(--raised); padding: 10px; border-radius: 8px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.plain-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ndv-backdrop { position: fixed; inset: 0; z-index: 30; background: var(--scrim); display: flex; justify-content: center; align-items: flex-start; overflow: auto; padding: 24px 16px; }
/* The detail is a <dialog> (security-6xf.11): the browser's own dialog box and ::backdrop give way to the overlay above. */
dialog.ndv-backdrop { margin: 0; width: auto; height: auto; max-width: none; max-height: none; border: 0; color: inherit; }
dialog.ndv-backdrop:not([open]) { display: none; }
dialog.ndv-backdrop::backdrop { background: transparent; }
.ndv { display: grid; grid-template-columns: 20rem minmax(0, 1fr) 20rem; gap: 16px; width: min(1400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.ndv-side { min-width: 0; }
.ndv-main h2 { margin: 0; font-size: 20px; }
@media (max-width: 1279px) {
  .ndv-backdrop { justify-content: flex-end; padding: 0; }
  .ndv { grid-template-columns: 1fr; width: min(640px, 100%); min-height: 100vh; border-radius: 0; }
  .ndv-main { order: -1; }
}
@media (max-width: 640px) {
  .facets select, .facets input[type="datetime-local"] { min-width: 0; width: 100%; }
  .facets label { flex: 1 1 45%; }
  .events-table thead { display: none; }
  .events-table tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .events-table td { display: block; border: 0; padding: 2px 0; }
  /* Stacked cells name what they hold (the table's headings are hidden here). */
  .events-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; }
}
/* The explorer's results heading (26.02 P2-W07): filter actions land here, below the sticky shell. */
/* The delay line (xdr/26 06 P6-R06, §4.1; components/ingest_delay.wtz): a muted notice above a list's results, never
   the green confirmation or the amber warning. The wrapper stays, holding nothing, while ingest is current. */
.ingest-delay-line { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 6px; max-width: none; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--raised); color: var(--muted); font-size: 14px;
  overflow-wrap: anywhere; }
.ingest-delay-line .ui-icon { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.ingest-delay-empty { display: block; margin-top: 2px; }
/* The line's one link (xdr/26 06 §9 OD-16): to the Space's Event checking page. */
.ingest-delay-more { display: block; width: fit-content; margin-top: 2px; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 14px 0 6px; }
.results-head h2 { margin: 0; font-size: 16px; scroll-margin-top: 140px; }
.results-head p { margin: 0; }
.events-table .cell-value { display: block; }

/* Live Devices list (xdr/09 §3.5.2): an empty reason line takes no room. */
[data-reason]:empty { display: none; }

/* Policy editor (xdr/09 §3.14): each collector on one line, its switches and interval to the right. */
.policy-row { align-items: center; gap: 16px; }
.policy-fields { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.policy-fields label { display: inline-flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.policy-fields input[type="number"] { width: 7em; margin: 0; }
.review { border-color: var(--rose); }
.kv-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
.kv-table th, .kv-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .policy-row, .list .item.policy-row { flex-direction: column; align-items: stretch; gap: 8px; } .policy-fields { justify-content: flex-start; } }

/* UI polish (2026-10): fields never wider than their container (a select is as wide as its longest option), a
   visible focus ring on fields too, small buttons, and a cue when a tab bar scrolls. */
input, select, textarea { max-width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--rose); outline-offset: 1px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.tabs { scroll-behavior: smooth; }
.tabs.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.tabs.more-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); }
.tabs.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
form.invite { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: end; }
form.invite label { display: flex; flex-direction: column; gap: 6px; }
/* The People tab's household (security xdr/27 SB-W04): "Add a person", a person's devices and Rename in place. */
form.invite.add-person { grid-template-columns: minmax(0, 1fr) auto; }
form.invite.add-person > p { grid-column: 1 / -1; }
.people-devices a, .people-suggest a { overflow-wrap: anywhere; }
details.people-rename { display: inline-block; }
details.people-rename > summary { list-style: none; cursor: pointer; }
details.people-rename > summary::-webkit-details-marker { display: none; }
details.people-rename[open] > form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
details.people-rename[open] > form input { min-width: 0; max-width: 220px; }
form.panel label > input { margin-top: 6px; }
@media (max-width: 640px) {
  form.invite { grid-template-columns: 1fr; }
  .policy-fields { width: 100%; }
}
.policy-row > div:first-child { flex: 1 1 auto; }
/* Severity: an icon as well as the colour and the word (xdr/09 §1.8). */
.chip.sev { display: inline-flex; align-items: center; gap: 5px; }
.chip.sev::before { content: ""; width: 9px; height: 9px; flex: none; background: currentColor; }
.sev-high::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sev-medium::before { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.sev-low::before { border-radius: 50%; }
.sev-info::before { border-radius: 50%; background: transparent !important; box-shadow: inset 0 0 0 1.5px currentColor; }
.filters select { flex: 0 1 auto; }
@media (max-width: 640px) { .filters select { flex: 1 1 100%; } }
/* A device's header: its health and the reason together under the name. */
.devhead h1 { margin: 0 0 6px; }
.devstate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; }
/* Its lifecycle (xdr/26 01 P1-W12): the owners' menu at the header's end, rename in place, the banner of a device that
   left, and the confirmation dialogs (modal with JavaScript, a panel in the page without). */
.devhead-main { min-width: 0; flex: 1 1 320px; }
.devmenu { position: relative; flex: none; }
.devmenu > summary { list-style: none; gap: 6px; padding: 8px 12px; min-height: 40px; }
.devmenu > summary::-webkit-details-marker { display: none; }
.devmenu > summary .ui-icon { width: 16px; height: 16px; transition: transform 120ms; }
.devmenu[open] > summary .ui-icon { transform: rotate(180deg); }
.devmenu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; margin: 0; padding: 6px;
  list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px var(--shadow); }
.devmenu-list a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--text); font-weight: 500; min-height: 40px; }
.devmenu-list a:hover, .devmenu-list a:focus-visible { background: var(--raised); text-decoration: none; }
.devmenu-list a.devmenu-danger { color: var(--error); }
.devrename { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.devrename[hidden] { display: none; }
.devrename input[name="name"] { flex: 1 1 260px; min-width: 0; font: 700 22px/1.2 var(--display); padding: 6px 10px; }
.devrename-error { flex: 1 1 100%; margin: 0; }
.devgone { margin: 6px 0 10px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--muted);
  border-radius: 8px; background: var(--surface); max-width: 70ch; }
.devgone p { margin: 0 0 8px; }
.devgone-what { overflow-wrap: anywhere; }
.devgone .btn { margin-top: 2px; }
dialog.devask { position: static; display: block; margin: 0 0 18px; padding: 18px 20px; max-width: 600px; width: 100%;
  color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
dialog.devask:modal { position: fixed; inset: 0; margin: auto; width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  overflow: auto; box-shadow: 0 20px 60px var(--shadow); }
dialog.devask::backdrop { background: var(--scrim); }
dialog.devask h2 { overflow-wrap: anywhere; }
dialog.devask p { overflow-wrap: anywhere; }
.devask-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.devask-actions form { margin: 0; }
/* The Devices list's bulk bar and confirmation (xdr/26 01 P1-R31, P1-W13). */
.devbulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.devbulk[hidden] { display: none; }
.devbulk-count { font-weight: 600; margin-inline-end: 4px; }
.devbulk-note { flex: 1 1 100%; }
.devpick { flex: none; margin: 0; }
.devpick-col { width: 28px; padding-inline-end: 0; }
.devtable .devpick-col { vertical-align: middle; }
.devbulk-names { max-height: 30vh; overflow: auto; margin: 10px 0; padding-inline-start: 20px; }
.devbulk-names li { overflow-wrap: anywhere; }
.devbulk-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.devbulk-field input, .devbulk-field select { min-width: 0; }
.devbulk-confirm { margin: 0; }
@media (max-width: 640px) { .devbulk .btn { flex: 1 1 calc(50% - 8px); } }
@media (max-width: 640px) { .devmenu-list { right: auto; left: 0; } }
/* Rules: one compact row each, with its on/off switch. */
.rulefilters { margin: 0 0 6px; }
.rulefilters input[type="search"] { flex: 1 1 260px; }
/* The Rules page's filter form (security-cr5.36): each field labelled above its control; the button at their foot. */
.rulefilters label { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.rulefilters label:first-child { flex: 1 1 260px; }
.rulefilters > div { display: flex; align-items: flex-end; }
.rulefacts .chip { margin-left: 2px; }
.rulerow { align-items: flex-start; }
.ruleside { display: flex; gap: 8px; align-items: center; flex: none; }
.ruleside form { margin: 0; }
.switch { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--muted); font: 600 12px var(--body); cursor: pointer; }
.switch span { width: 28px; height: 16px; border-radius: 999px; background: var(--line); position: relative; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: left .15s; }
.switch.on { color: var(--online); border-color: var(--online-line); }
.switch.on span { background: var(--online-bg); }
.switch.on span::after { left: 14px; background: var(--online); }
@media (max-width: 640px) { .rulerow { flex-direction: column; } .ruleside { flex-wrap: wrap; } }
.ico-phone { -webkit-mask-image: url(/static/icons/phone.svg); mask-image: url(/static/icons/phone.svg); }
.ico.ico-phone, .choice:has(input:checked) .ico-phone { color: var(--mark); }
.legal { max-width: 70ch; margin: 0 auto; padding: 24px 0; }
/* Devices: the short list (home) and the table (other kinds). */
.nowrap { white-space: nowrap; }
.devside { display: flex; align-items: center; gap: 10px; flex: none; }
.devtable td { vertical-align: middle; }
.devtable .sub { white-space: normal; }
.devtable .device-identity-text { min-width: 12em; }
@media (max-width: 640px) {
  .list .item.devrow { flex-direction: column; align-items: stretch; gap: 6px; }
  .devside { justify-content: flex-start; flex-wrap: wrap; }
}

/* Fleet investigation (xdr/09 §3.11.1): the pinned device chip, items grouped with their devices, why a piece of
   evidence is suspicious, and the response buttons (greyed with the reason when a device can't run one). */
.chip.pin { display: inline-flex; gap: 6px; align-items: center; background: var(--raised); color: var(--text); }
.chip.pin a { color: var(--muted); text-decoration: none; }
.inv-group td { background: var(--raised); }
/* The inventory's Item column is a program path or a command line (U7): it wraps, so the row's Investigate stays in view
   beside the Inspector panel; the events table's one-line Device and Type columns above don't apply to it. */
.events-table.inv-table td:nth-child(2) { white-space: normal; }
.inv-group .chip { margin-left: 8px; }
.inv-help { margin: 4px 0 10px; }
.inv-help summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.why-alert { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 8px 0 12px; }
.why-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.why h4 { margin: 8px 0 0; font-size: 13px; color: var(--muted); font-weight: 500; }
.respond-buttons { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-start; }
.respond-off { display: flex; flex-direction: column; gap: 4px; max-width: 280px; }
.respond-off .btn[disabled] { opacity: .45; cursor: not-allowed; align-self: flex-start; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.row-actions .respond-off { max-width: 220px; }
.next-steps .item { align-items: flex-start; }
.investigate .notes { margin: 0 0 12px; padding-left: 18px; color: var(--muted); }

/* Files tab: the one-file history scope, so a filtered list is never mistaken for every file. */
.file-scope { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 0 0 12px; padding: 12px 14px; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; }
.file-scope-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-scope-text .mono-sm { overflow-wrap: anywhere; }

/* An entity's Overview (xdr/23 IW-04a): its properties as label/value pairs, long values wrapping. */
.entity-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px 28px; margin: 0; }
.entity-facts dt { color: var(--muted); font-size: 13px; }
.entity-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.entity-value { margin: 2px 0 0; overflow-wrap: anywhere; }

/* Live event lists (owner, 2026-10-14): the stream's state and what waits, under the list's header; a pointer to rows
   that arrived above while scrolled down. */
.livestatus { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 24px; margin: -4px 0 10px; }
.newabove { position: sticky; top: 64px; z-index: 5; display: block; margin: 0 auto 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--rose); background: var(--raised); color: var(--text); font: 600 13px var(--body); cursor: pointer;
  box-shadow: 0 6px 18px var(--shadow); }
.newabove:hover { background: var(--line); }
/* The explorer's live tail (26.02 P2-R31, components/live_status.wtz): Live sits at the right end of the results line,
   before Fields; a live row flashes in as on a device's lists, and goes where its time puts it. */
.results-head .livesw { margin-left: auto; min-height: 36px; }
.results-head .livesw ~ .fl { margin-left: 0; }
@media (pointer: coarse) { .results-head .livesw { min-height: 44px; } }
.events-table tr.fresh { animation: evfresh 2.5s ease-out; }
@media (prefers-reduced-motion: reduce) { .evrow.fresh, .events-table tr.fresh { animation: none; } }

/* Platform marks before a protected device's name (components/platform_icon.wtz): monochrome in the muted text colour,
   20px in a 24px slot, aligned with the name line; never the enrollment page's brand colours. Decorative: the
   platform is in the text beside it. */
.platform-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--platform-slot, 24px); height: var(--platform-slot, 24px); color: var(--muted); }
.platform-icon > .ico[class], .platform-icon > .ui-icon { display: block; flex: none; width: var(--platform-size, 20px); height: var(--platform-size, 20px); margin: 0; color: var(--muted); }
/* A device's identity: its pick box when the list has bulk actions, its platform mark, then its name and lines, which take
   the rest of the row and wrap by word (owner, 2026-10-26: a name wrapped letter by letter when the pick box pushed it
   into the mark's 24px column, and `overflow-wrap: anywhere` let it shrink to one letter). */
.device-identity { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.device-identity > .devpick { flex: none; margin-top: 3px; }
.device-identity > .platform-icon { flex: none; }
.device-identity-text { flex: 1 1 auto; min-width: min(12em, 100%); overflow-wrap: break-word; }
.list .item > .device-identity { flex: 1 1 auto; }
.device-platform-label { --platform-slot: 18px; --platform-size: 16px; display: inline-flex; align-items: center; gap: 6px; vertical-align: bottom; }
@media (max-width: 640px) {
  .list .item.devrow > .device-identity { flex: none; }
  .list .item.devrow > .devside { padding-inline-start: 34px; }
}
/* The Network tab's device rows (components/network.wtz, static/live.js; security-71p3): the name and its lines take the
   room; the state (Online, the open ports seen, the check) keeps to the right in at most half the row, its words
   wrapping between words, and goes below the name on a phone (devrow). */
.list .item.netrow { align-items: flex-start; }
.list .item.netrow > .netside { flex: 0 1 auto; max-width: 50%; min-width: 0; text-align: right; overflow-wrap: break-word; }
@media (max-width: 640px) {
  .list .item.netrow > .netside { max-width: none; text-align: left; }
}

/* The shared filter bar and value actions (xdr/26.02 P2-W06; components/filter_bar.wtz, value_actions.wtz; the only
   place these selectors live, `make check-ui-components`). Pills are native disclosures whose action lists open in the
   flow (no floating menu to clip at 390px); targets are 36px, 44px on touch. */
.fb { margin: 6px 0 10px; min-width: 0; }
.fb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; min-width: 0; }
.fb-pill, .fb-add { min-width: 0; max-width: 100%; }
.fb-pill[open], .fb-add[open] { flex: 1 1 100%; }
.fb-pill > summary, .fb-add > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  max-width: 100%; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised);
  color: var(--text); font: 500 13px var(--body); cursor: pointer; }
.fb-pill > summary::-webkit-details-marker, .fb-add > summary::-webkit-details-marker { display: none; }
.fb-pill > summary:hover, .fb-add > summary:hover { border-color: var(--rose); }
.fb-pill > summary .ui-icon, .fb-add > summary .ui-icon { flex: none; width: 16px; height: 16px; }
.fb-words { min-width: 0; overflow-wrap: anywhere; }
.fb-not > summary { border-color: var(--error-line); }
.fb-off > summary { color: var(--muted); border-style: dashed; }
.fb-off .fb-words { text-decoration: line-through; }
.fb-state, .fb-pin { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 999px; background: var(--surface);
  color: var(--muted); font-size: 12px; flex: none; }
.fb-pin { color: var(--rose); }
.fb-pin .ui-icon { width: 14px; height: 14px; }
.fb-actions { list-style: none; margin: 6px 0 0; padding: 6px; display: flex; flex-wrap: wrap; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.fb-actions li { margin: 0; }
.fb-post { display: inline; margin: 0; }
.fb-item { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 8px; border: 0; background: transparent;
  color: var(--text); font: 500 13px var(--body); cursor: pointer; text-decoration: none; }
.fb-item:hover, .fb-item:focus-visible { background: var(--raised); text-decoration: none; }
.fb-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 6px 0 0; padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.fb-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; min-width: 0; flex: 1 1 180px; }
.fb-field select, .fb-field input { min-height: 36px; width: 100%; min-width: 0; margin: 0; }
.fb-grow { flex: 2 1 240px; }
.fb-field[hidden] { display: none; }
.fb-field [aria-invalid="true"] { border-color: var(--error); }
.fb-help { flex: 1 1 100%; margin: -2px 0 0; max-width: none; }
.fb-error-line { flex: 1 1 100%; margin: 0; }
.fb-buttons { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.fb-notices { list-style: none; margin: 0 0 8px; }
.fb-note { margin: 6px 0 0; }
.fb-announce { margin: 4px 0 0; min-height: 0; }
.fb-announce:empty { display: none; }
.fb-undo { margin-left: 8px; font-weight: 500; }
.fb-why { color: var(--muted); white-space: normal; }
.fb-confirm { margin: 0 0 8px; padding: 12px; border: 1px solid var(--rose); border-radius: 10px; background: var(--surface); }
.fb-confirm > p { margin: 0 0 8px; overflow-wrap: anywhere; }
.fb-confirm .fb-buttons { align-items: center; }
.va { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; vertical-align: middle; }
.va-act, .va-more > summary { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; list-style: none; padding: 0; }
.va-more > summary::-webkit-details-marker { display: none; }
.va-act:hover, .va-act:focus-visible, .va-more > summary:hover { background: var(--raised); color: var(--text); }
.va-act[disabled] { opacity: .45; cursor: not-allowed; }
.va-act .ui-icon, .va-more .ui-icon { width: 16px; height: 16px; }
.va-more { position: relative; display: inline-flex; flex-direction: column; }
.va-menu { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding: 4px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; }
.va-menu a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; color: var(--text); font-size: 13px; }
/* Desktop shows the actions on hover or focus (never hidden from the keyboard); touch always shows them. */
@media (hover: hover) and (pointer: fine) {
  .va { opacity: 0; transition: opacity .12s; }
  :hover > .va, .va:focus-within, .va:has(details[open]) { opacity: 1; }
}
@media (any-pointer: coarse) {
  .va { opacity: 1; }
  .va-act, .va-more > summary { width: 44px; height: 44px; }
  .fb-pill > summary, .fb-add > summary, .fb-item, .va-menu a { min-height: 44px; }
}
/* A device list's facts and headline (26.02 P2-W08) with a mouse only: the actions float beside the value while they
   show, so hidden ones leave no gaps in a dense line; touch keeps them in the line, always shown. */
@media (hover: hover) and (pointer: fine) and (not (any-pointer: coarse)) {
  .evfact, .evhead { position: relative; }
  .evfact > .va, .evhead > .va { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin: 0;
    padding: 0 2px 0 4px; z-index: 2; background: var(--surface); border-radius: 8px; pointer-events: none; }
  .evfact:hover > .va, .evhead:hover > .va, .evfact > .va:focus-within, .evhead > .va:focus-within,
  .evfact > .va:has(details[open]), .evhead > .va:has(details[open]) { pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) { .va { transition: none; } }

/* The events field list and extra columns (xdr/26.02 P2-R11, P2-R12, P2-W11; components/field_list.wtz, the only place
   these selectors live). "Fields" sits at the right end of the results line; open, its panel takes the line's width.
   Fields are disclosures in a grid that wraps to one column at 390px; an open field takes the whole row. Counts are
   words; the bars only echo them. Targets are 36px, 44px on touch. */
.results-head .fl { margin-left: auto; min-width: 0; max-width: 100%; }
.results-head .fl[open] { flex: 1 1 100%; }
.fl > summary { list-style: none; display: flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; margin-left: auto;
  min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised);
  color: var(--text); font: 500 13px var(--body); cursor: pointer; }
.fl > summary::-webkit-details-marker { display: none; }
.fl > summary:hover { border-color: var(--rose); }
.fl > summary .ui-icon { flex: none; width: 16px; height: 16px; }
.fl[open] > summary .ui-icon:last-child { transform: rotate(180deg); }
.fl-body { margin: 8px 0 0; padding: 12px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.fl-body[aria-busy="true"] { opacity: .7; }
.fl-page { margin: 0 0 16px; }
.fl-load, .fl-back { margin: 0; }
.fl-back { margin: 0 0 10px; }
.fl-back a { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; }
.fl-back .ui-icon { width: 16px; height: 16px; }
.fl-panel h3 { margin: 0 0 4px; font-size: 14px; }
.fl-note { margin: 0 0 8px; }
.fl-cols { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.fl-col { display: inline-flex; align-items: center; gap: 2px; padding: 0 0 0 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; overflow-wrap: anywhere; }
.fl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 2px 12px; align-items: start; }
.fl-list > li { margin: 0; min-width: 0; }
.fl-list > li:has(> .fl-field[open]) { grid-column: 1 / -1; }
.fl-field > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: baseline;
  min-height: 36px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.fl-field > summary::-webkit-details-marker { display: none; }
.fl-field > summary:hover, .fl-field > summary:focus-visible { background: var(--raised); }
.fl-field[open] > summary { background: var(--raised); }
.fl-name { min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.fl-name .mono-sm { margin-left: 6px; font-weight: 400; }
.fl-bar { grid-column: 1 / -1; display: block; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.fl-bar > span { display: block; height: 100%; background: var(--rose); }
.fl-detail { padding: 4px 8px 8px; min-width: 0; }
.fl-vhead { margin: 4px 0; color: var(--muted); }
.fl-vlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fl-vlist > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; align-items: center; margin: 0; }
.fl-value { min-width: 0; overflow-wrap: anywhere; }
.fl-more { margin: 4px 0 0; }
.fl-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 0; }
.fl-act { gap: 6px; min-height: 36px; padding: 6px 12px; font: 500 13px var(--body); }
.fl-act .ui-icon { flex: none; width: 16px; height: 16px; }
.fl-act[disabled] { opacity: .55; cursor: not-allowed; }
.fl-why { flex: 1 1 100%; }
.fl-remove { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: 2px;
  vertical-align: middle; border-radius: 6px; color: var(--muted); }
.fl-remove .ui-icon { width: 14px; height: 14px; }
.fl-remove:hover, .fl-remove:focus-visible { background: var(--raised); color: var(--text); }
@media (any-pointer: coarse) {
  .fl > summary, .fl-field > summary, .fl-act, .fl-back a { min-height: 44px; }
  .fl-remove { width: 44px; height: 44px; }
}

/* The events histogram (xdr/26.02 P2-R15, P2-W10; components/histogram.wtz, the only place these selectors live). The
   bars are a decorative SVG stretched to the full width; over them a grid of transparent links, one per bucket that holds
   events, each a whole column tall so it is easy to hit; focus and hover light the column. The axis shows the range's
   ends and, on a wide screen, three times between. The "Zoom to" picker below is the way in on touch and by keyboard.
   No page-level horizontal scroll at 390px or 200%. */
.hg { margin: 12px 0 4px; min-width: 0; }
.hg-wait { min-height: 24px; }
.hg-load { margin: 0; }
.hg-load a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.hg-load .ui-icon { width: 16px; height: 16px; }
.hg-cap { margin: 0 0 6px; color: var(--muted); }
.hg-cap a { color: var(--text); }
.hg-span { margin-left: 4px; }
.hg-notice { margin: 0; }
.hg-notice a { margin-left: 6px; color: inherit; text-decoration: underline; }
.hg-plot { position: relative; height: 72px; border-bottom: 1px solid var(--line); }
.hg-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.hg-rect { fill: var(--rose); opacity: .85; }
.hg-base { stroke: var(--line); stroke-width: 1; }
.hg-hits { position: absolute; inset: 0; display: grid; }
.hg-bar { grid-row: 1; display: block; min-width: 0; border-radius: 3px; outline-offset: -2px; }
.hg-bar:hover, .hg-bar:focus-visible { background: color-mix(in srgb, var(--rose) 18%, transparent); }
.hg-bar:focus-visible { outline: 2px solid var(--rose); }
.hg-sel { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--rose) 22%, transparent);
  border-left: 1px solid var(--rose); border-right: 1px solid var(--rose); pointer-events: none; }
.hg-plot[data-hg-drag] { cursor: crosshair; touch-action: pan-y; }
.hg-axis { position: relative; height: 20px; margin: 2px 0 0; white-space: nowrap; }
.hg-tick { position: absolute; top: 2px; transform: translateX(-50%); }
.hg-tick:first-child { transform: none; }
.hg-tick:last-child { transform: translateX(-100%); }
.hg-empty, .hg-more { margin: 4px 0 0; }
.hg-empty a { margin-left: 6px; }
.hg-zoom { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 6px 0 0; }
.hg-zoom label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.hg-zoom select { min-width: 0; max-width: 100%; min-height: 36px; }
.hg-zoom .btn { min-height: 36px; }
.hg-back { margin: 0 0 10px; }
.hg-back a { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; }
.hg-back .ui-icon { width: 16px; height: 16px; }
@media (max-width: 640px) { .hg-minor { display: none; } }
@media (any-pointer: coarse) {
  .hg-load a, .hg-zoom select, .hg-zoom .btn, .hg-back a { min-height: 44px; }
}
@media (forced-colors: active) {
  .hg-rect { fill: CanvasText; opacity: 1; }
  .hg-base { stroke: CanvasText; }
  .hg-bar:focus-visible { outline: 2px solid Highlight; }
  .hg-sel { background: Highlight; opacity: .3; }
}

/* MITRE ATT&CK® chips (xdr/26 03 P3-R13; components/attack_chips.wtz): one per pairing, wrapping, never truncated.
   The chip is text; its trailing icon opens attack.mitre.org. The technique's first sentence shows on hover or keyboard
   focus (Escape hides it, static/djana.js) and is the link's description for screen readers. */
.attack-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 6px 0 0; min-width: 0; }
.attack-row-label { color: var(--muted); font-size: 13px; }
.attack-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; min-width: 0; max-width: 100%; vertical-align: middle; }
.attack-item { position: relative; display: inline-flex; max-width: 100%; min-width: 0; }
.chip.attack-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; white-space: normal; color: var(--text);
  border: 1px solid var(--line); padding: 1px 4px 1px 10px; line-height: 1.45; }
.attack-chip:not(:has(.attack-external, .attack-filter)) { padding-right: 10px; }
.attack-label { min-width: 0; overflow-wrap: anywhere; }
.attack-label-link { color: var(--text); }
.attack-label-link:hover, .attack-label-link:focus-visible { color: var(--rose); text-decoration: underline; }
.attack-external, .attack-filter { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px;
  height: 28px; margin: -4px 0; border-radius: 999px; color: var(--muted); }
.attack-external:hover, .attack-external:focus-visible, .attack-filter:hover, .attack-filter:focus-visible { background: var(--raised);
  color: var(--rose); text-decoration: none; }
.attack-external .ui-icon, .attack-filter .ui-icon { width: 14px; height: 14px; }
.attack-about { display: none; position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; width: max-content;
  max-width: min(36ch, calc(100vw - 32px)); padding: 8px 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; color: var(--text); font-size: 13px; line-height: 1.45; white-space: normal;
  box-shadow: 0 6px 18px var(--shadow); }
/* A bridge over the gap below the chip, so the pointer can move onto the description without it closing. */
.attack-about::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; }
.attack-item:not([data-dismissed]):is(:hover, :focus-within) > .attack-about { display: block; }
@media (any-pointer: coarse) { .attack-external, .attack-filter { width: 44px; height: 44px; margin: -10px -4px; } }
/* The Alerts list's ATT&CK filters and grouping (xdr/26 03 P3-R15, P3-R16, §4.2; templates/pages/alerts.wtz): "Add a
   tactic" and the technique field add a value; active ones are removable pills (each a link to the list without it). */
.attack-add { display: inline-flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.attack-add input[name="technique"] { width: 26ch; min-width: 0; }
/* The open alerts by group (security-r2pd.3): chips linking to each group's list; the chosen one is outlined. */
.alert-levels { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 12px; }
.chip.alert-level { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 10px; text-decoration: none; }
.chip.alert-level[aria-current="true"] { outline: 2px solid currentColor; outline-offset: 1px; }
@media (any-pointer: coarse) { .chip.alert-level { min-height: 44px; } }
.attack-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 8px; }
.chip.attack-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 2px 6px 2px 10px;
  border: 1px solid var(--line); color: var(--text); white-space: normal; overflow-wrap: anywhere; }
.chip.attack-pill:hover, .chip.attack-pill:focus-visible { border-color: var(--rose); text-decoration: none; }
.attack-pill .ui-icon { flex: none; width: 14px; height: 14px; color: var(--muted); }
.attack-clear { font-size: 13px; }
.attack-notice { background: var(--attn-bg); color: var(--attn); padding: 8px 12px; border-radius: 8px; margin: 0 0 8px; }
.alert-group { margin: 14px 0 0; }
.alert-group > h3 { margin: 0 0 4px; font-size: 15px; }
.attack-group-note { margin: 8px 0 0; }
/* An incident's attack stages (03 P3-R17; components/attack_stages.wtz): an ordered list read as a chain; the chevrons
   are drawn here, so they are never read out. */
.attack-stages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; min-width: 0; }
.attack-stages li { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.attack-stages li + li::before { content: "\203A"; padding: 0 8px; color: var(--muted); font-size: 16px; line-height: 1; }
.attack-stages .chip { white-space: normal; overflow-wrap: anywhere; }
.attack-stages a.chip { border: 1px solid var(--line); color: var(--text); }
.attack-stages a.chip:hover, .attack-stages a.chip:focus-visible { border-color: var(--rose); text-decoration: none; }
.attack-stages-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 6px 0 0; min-width: 0; }
.attack-stages-block { margin: 12px 0 0; }
.attack-stages-block h3 { font-size: 14px; margin: 0 0 6px; }
.attack-stages-block p { margin: 6px 0 0; }
@media (any-pointer: coarse) { .chip.attack-pill, .attack-stages a.chip { min-height: 44px; } }
/* The Rules page's ATT&CK coverage (xdr/26 03 P3-R26; templates/pages/rules_coverage.wtz): techniques by tactic, each
   with its rules (links to where each is switched or edited) and its alerts in 30 days; the gaps in closed disclosures
   per tactic. Rows wrap and stack at phone width; nothing scrolls sideways. */
.cov-list { list-style: none; margin: 0; padding: 0; }
.cov-list .item.cov-row { align-items: flex-start; flex-wrap: wrap; }
.cov-main { flex: 1 1 24ch; min-width: 0; }
.cov-side { flex: none; font-size: 13px; }
.cov-rules { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cov-rules li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.cov-rule { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; overflow-wrap: anywhere; }
.cov-rules .sub { color: var(--muted); font-size: 13px; }
.cov-state { margin: 4px 0 0; }
.cov-group { margin: 14px 0 0; }
.cov-group > h4, .cov-gaps > summary { margin: 0 0 4px; font-size: 15px; }
.cov-gaps { border-top: 1px solid var(--line); padding: 8px 0; }
.cov-gaps > summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; gap: 6px; }
.cov-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.cov-filters input[type="search"] { flex: 1 1 24ch; min-width: 0; }
.cov-notice { background: var(--attn-bg); color: var(--attn); padding: 8px 12px; border-radius: 8px; margin: 0 0 8px; }
@media (max-width: 640px) { .cov-side { flex-basis: 100%; } }
@media (any-pointer: coarse) { .cov-gaps > summary, .cov-rule { min-height: 44px; } }
/* The rule editor's ATT&CK panel and tag picker (03 P3-R27; templates/pages/custom_rule.wtz). */
.rule-attack { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.rule-attack > h3 { margin: 0 0 4px; font-size: 14px; }
.rule-attack ul { margin: 4px 0 0; padding-left: 18px; }
.rule-attack li { overflow-wrap: anywhere; }
.rule-attack-warnings strong { color: var(--attn); }
.tag-picker { display: grid; gap: 6px; min-width: 0; }
.tag-picker-row { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.tag-picker-row input[type="search"] { flex: 1 1 28ch; min-width: 0; }
.tag-hits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tag-hit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; width: 100%; text-align: left; padding: 6px 10px;
  background: var(--raised); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; cursor: pointer; }
.tag-hit:hover, .tag-hit:focus-visible { border-color: var(--rose); }
.tag-hit-label { overflow-wrap: anywhere; min-width: 0; }
.tag-hits-note { margin: 0; }
@media (any-pointer: coarse) { .tag-hit { min-height: 44px; } }
.lab-attack-warning { color: var(--attn); }
@media (max-width: 640px) { .attack-add, .attack-add select, .attack-add input[name="technique"] { flex: 1 1 100%; width: 100%; } }

/* The ATT&CK page (xdr/26 03 P3-R19 to P3-R25, §4.3; P3-W09; templates/pages/attack.wtz, attack_technique.wtz). The
   matrix scrolls on both axes inside its own region, tactic headers sticky at its top; a cell's alerts are text and
   shading (0, 1-2, 3-9, 10+), its coverage text: colour is never the only signal. Below 900px of viewport, or where
   docked panels leave the content less than 560px (a container query), the matrix gives way to one disclosure per
   tactic; between, it scrolls sideways in its own region. */
.attack-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin: 0 0 8px; }
.attack-field { display: inline-flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; color: var(--muted); }
.attack-field select { min-width: 0; max-width: 100%; }
.attack-exports { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0 0 8px; }
.attack-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 12px; }
.attack-key { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 1px 8px;
  border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
.attack-shade-0 { background: var(--surface); }
.attack-shade-1 { background: var(--shade-1); }
.attack-shade-2 { background: var(--shade-2); }
.attack-shade-3 { background: var(--shade-3); color: var(--on-box); }
.attack-page { container-type: inline-size; min-width: 0; }
.attack-matrix-wrap { position: relative; }
.attack-matrix-scroll { overflow: auto; max-height: min(78vh, 900px); border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); scrollbar-width: none; }
.attack-matrix-scroll::-webkit-scrollbar { display: none; }
.attack-matrix-scroll:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.attack-matrix { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 8px; width: max-content;
  padding: 0 8px 8px; align-items: start; }
.attack-col { min-width: 0; }
.attack-col-head { position: sticky; top: 0; z-index: 2; margin: 0 0 6px; padding: 8px 2px 6px; background: var(--bg);
  border-bottom: 1px solid var(--line); font: 600 13px/1.3 var(--body); letter-spacing: 0; }
.attack-col-head a { display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.attack-col-head a:hover, .attack-col-head a:focus-visible { color: var(--rose); text-decoration: none; }
.attack-col-total { color: var(--muted); font-weight: 400; font-size: 12px; }
.attack-col-empty { margin: 4px 2px; }
.attack-cells { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.attack-cell { position: relative; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.attack-cell:hover, .attack-cell:focus-within { border-color: var(--rose); }
.attack-cell-link { display: flex; flex-direction: column; gap: 1px; min-height: 44px; padding: 6px 30px 6px 8px;
  color: var(--text); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; border-radius: 8px; }
.attack-cell-link:hover { text-decoration: none; }
.attack-cell-name { font-weight: 600; }
.attack-cell-id { font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.attack-cell-count { font-size: 12px; }
.attack-cover { font-size: 12px; color: var(--muted); }
.attack-cover.covered { color: var(--online); }
.attack-cover.trial, .attack-cover.partly { color: var(--attn); }
.attack-cell-inspect { position: absolute; top: 4px; right: 4px; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.attack-cell-inspect:hover { background: var(--raised); color: var(--rose); }
.attack-cell-inspect .ui-icon { width: 14px; height: 14px; }
.attack-subs { border-top: 1px solid var(--line); font-size: 12px; }
.attack-subs > summary { cursor: pointer; padding: 4px 8px; color: var(--muted); border-radius: 0 0 8px 8px; }
.attack-subs ul { list-style: none; margin: 0; padding: 0 4px 4px; display: flex; flex-direction: column; gap: 4px; }
.attack-sub { border: 1px solid var(--line); border-radius: 6px; }
.attack-sub a { display: flex; flex-direction: column; padding: 4px 6px; color: var(--text); overflow-wrap: anywhere; }
.attack-sub a:hover, .attack-sub a:focus-visible { color: var(--rose); text-decoration: none; }
.attack-sub-name { font-weight: 500; }
.attack-scroll { position: absolute; top: calc(50% - 18px); z-index: 3; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--text); cursor: pointer; box-shadow: 0 2px 8px var(--shadow); }
.attack-scroll:hover, .attack-scroll:focus-visible { color: var(--rose); border-color: var(--rose); }
.attack-scroll-left { left: 4px; }
.attack-scroll-right { right: 4px; }
.attack-scroll[hidden] { display: none; }
.attack-list { display: none; }
.attack-list-tactic { border-top: 1px solid var(--line); padding: 8px 0; }
.attack-list-tactic > summary { cursor: pointer; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.attack-list-rows { list-style: none; margin: 4px 0 0; padding: 0; }
.attack-list-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; margin: 0 0 6px; border: 1px solid var(--line);
  border-radius: 8px; min-width: 0; overflow-wrap: anywhere; }
.attack-list-row > a { color: var(--text); }
.attack-list-subs { list-style: none; margin: 4px 0 0; padding: 0 0 0 14px; display: flex; flex-direction: column; gap: 4px; }
.attack-list-subs a { color: var(--text); }
@media (max-width: 899px) {
  .attack-matrix-wrap { display: none; }
  .attack-list { display: block; }
}
@container (max-width: 559px) {
  .attack-matrix-wrap { display: none; }
  .attack-list { display: block; }
}
.attack-footer { margin: 24px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.attack-footer p { margin: 0 0 6px; }
.attack-license pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; font-size: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.attack-technique h2 .attack-cell-id { font-size: 0.8em; }
.attack-tech-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.attack-tech-actions .ui-icon { width: 14px; height: 14px; vertical-align: -2px; }
.attack-description { max-width: 75ch; }
.attack-facts { margin: 0 0 8px; }
.attack-tactic-counts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.attack-stage h3 { font-size: 16px; }
/* A business Space overview's "ATT&CK coverage and hits" tile (xdr/26 03 P3-W18, templates/pages/space_summary.wtz). */
.attack-tile h4 { margin: 14px 0 6px; }
.attack-tile-caption { margin: 10px 0 2px; }
.attack-tile-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.attack-tile-tactics a { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; min-width: 0; overflow-wrap: anywhere; }
.attack-tile-technique { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-top: 1px solid var(--line); min-width: 0; }
.attack-tile-technique:first-child { border-top: 0; }
.attack-tile-technique .attack-chips { flex-wrap: wrap; }
.attack-tile-technique .attack-chip { white-space: normal; overflow-wrap: anywhere; }
.attack-tile-facts { font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.attack-tile-kv { margin: 0 0 8px; }
.attack-tile .attack-footer { margin-top: 12px; }
@media (any-pointer: coarse) { .attack-tile-tactics a, .attack-tile-facts a { min-height: 44px; display: inline-flex; align-items: center; } .attack-tile-tactics a { display: flex; } }
/* A technique's Djana checks (xdr/26 03 P3-R32, P3-W15): each check over its results, endpoints as wrapping links. */
.attack-posture .item.attack-posture-check { display: block; }
.attack-posture-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.attack-posture-head .ui-icon { width: 12px; height: 12px; vertical-align: -1px; }
.attack-posture-group { margin: 6px 0 0; overflow-wrap: anywhere; }
.attack-posture-group summary { cursor: pointer; }
.attack-posture-endpoints { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.attack-posture-endpoints.inline { display: inline-flex; margin: 0; vertical-align: baseline; }
@media (any-pointer: coarse) { .attack-posture-endpoints a, .attack-posture-group summary { display: inline-block; min-height: 44px; line-height: 44px; } }
@media (any-pointer: coarse) { .attack-cell-inspect { width: 44px; height: 44px; top: 0; right: 0; } .attack-cell-link { padding-right: 48px; } .attack-subs > summary { min-height: 44px; display: flex; align-items: center; } }
@media (max-width: 720px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 6px; } }
/* How current a vulnerability list is, and what Djana checks on a device (26.04 P4-W05, templates/components/vuln_fresh.wtz). */
.vuln-fresh { margin: 6px 0 10px; }
.vuln-fresh p { margin: 4px 0; overflow-wrap: anywhere; }
.vuln-fresh .chips-line { margin: 4px 0; }
.vuln-fresh .chips-line .chip { white-space: normal; overflow-wrap: anywhere; max-width: 100%; box-sizing: border-box; }
.vuln-stale-note { color: var(--attn); }
.vuln-behind-list { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0; padding: 0; list-style: none; }
.vuln-behind-list li { min-width: 0; overflow-wrap: anywhere; }
/* Check again (26.04 P4-W06, templates/components/vuln_check.wtz): the button with what it does or when it can run
   again beside it (wrapping under it on a phone), then the latest check's progress as plain text. */
.vuln-check { margin: 8px 0 12px; }
.vuln-check-form { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; }
.vuln-check-form.respond-off { flex-direction: row; max-width: none; }
.vuln-check-form p, .vuln-check > .vuln-check-body > p { margin: 0; flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.vuln-check-progress { margin-top: 6px; }
.vuln-check-progress p { margin: 2px 0; overflow-wrap: anywhere; }
/* The KEV banner (26.04 P4-W20, templates/components/vuln_kev.wtz): what CISA newly knows attackers use, said in words;
   the red edge and heading are a second cue, never the only one. Dismiss keeps a 44 px target; long ids, titles and
   device names wrap inside the panel at 390 px and 200% zoom. */
.vuln-kev { margin: 8px 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--error); border-radius: 8px; background: var(--raised); }
.vuln-kev-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.vuln-kev-head h3 { margin: 0; font-size: 15px; color: var(--error); }
.vuln-kev-dismiss { min-height: 44px; min-width: 44px; padding: 8px 14px; }
.vuln-kev-lead { margin: 6px 0; overflow-wrap: anywhere; }
.vuln-kev-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vuln-kev-list > li { min-width: 0; overflow-wrap: anywhere; }
.vuln-kev-list .sub { color: var(--muted); font-size: 13px; }
.vuln-kev-foot { margin: 6px 0 0; overflow-wrap: anywhere; }
.vuln-coverage-panel { margin: 10px 0 12px; }
.vuln-coverage-panel h4 { margin: 0 0 6px; font-size: 14px; }
.kv.vuln-coverage { margin: 0; }
.kv.vuln-coverage dd .chip { margin-right: 6px; }
@media (max-width: 640px) {
  .kv.vuln-coverage { grid-template-columns: 1fr; gap: 2px; }
  .kv.vuln-coverage dd { margin-bottom: 8px; }
}

/* Due dates (26.04 P4-W09, components/vuln_due.wtz and pages/vuln_targets.wtz): the age and due line wraps; the targets
   form is one row per priority (label, days), each field's error under it; Time to fix stacks on a phone. */
.vuln-due, .vuln-device-due { overflow-wrap: anywhere; }
.vuln-targets-form { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 0; max-width: 520px; }
.vuln-targets-form .btn { align-self: flex-start; }
.vuln-targets-form p { margin: 0; }
.vuln-target { display: grid; grid-template-columns: minmax(90px, 140px) auto; align-items: center; gap: 4px 12px; }
.vuln-target-input { display: inline-flex; align-items: center; gap: 6px; }
.vuln-target-input input { width: 6em; min-height: 44px; }
.vuln-target-error { grid-column: 1 / -1; color: var(--error); font-size: 13px; overflow-wrap: anywhere; }
.vuln-targets-error a { display: block; margin-top: 4px; color: inherit; overflow-wrap: anywhere; }
.vuln-targets-note { margin: 6px 0; overflow-wrap: anywhere; }
.vuln-digest { margin-top: 20px; max-width: 520px; }
.vuln-digest h3 { margin: 0 0 6px; }
.vuln-digest-form { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 0; }
.vuln-digest-form .btn { align-self: flex-start; }
.vuln-digest-form p { margin: 0; overflow-wrap: anywhere; }
.vuln-digest-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.vuln-digest-switch input { width: 20px; height: 20px; }
.vuln-fix-times h3 { margin: 0 0 4px; }
.kv.vuln-fix-list dd { overflow-wrap: anywhere; }
/* Decisions on vulnerabilities (26.04 P4-W08): the decision form, decisions in force and their review flag. */
.vuln-decide { display: flex; flex-direction: column; gap: 12px; margin: 10px 0 0; max-width: 620px; }
.vuln-decide-title { margin: 0; font-size: 15px; }
.vuln-decide-group { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 10px; margin: 0; min-width: 0; }
.vuln-decide-group legend { padding: 0 4px; font-weight: 600; }
.vuln-decide-group p { margin: 6px 0 0; }
.vuln-choice { display: flex; align-items: flex-start; gap: 8px; min-height: 44px; padding: 4px 0; cursor: pointer; overflow-wrap: anywhere; }
.vuln-choice input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.vuln-choice span { min-width: 0; }
.vuln-decide-field { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.vuln-decide-field p { margin: 0; }
.vuln-decide-field input { min-height: 44px; max-width: 100%; }
.vuln-decide-error a, .vuln-decide-error span { display: block; margin-top: 4px; color: inherit; overflow-wrap: anywhere; }
.vuln-decide-actions, .vuln-decide-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vuln-decide-links { margin: 10px 0 4px; }
.vuln-decide-note { margin: 6px 0; overflow-wrap: anywhere; }
.vuln-decision .sub, .vuln-held dd, .vuln-review-line { overflow-wrap: anywhere; }
.vuln-review-line { color: var(--attn); }
.vuln-decision-actions form { margin: 0; }
.vuln-held { margin: 10px 0 0; }
.vuln-held h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; }
.vuln-held .kv { margin: 6px 0; }
.vuln-exceptions-title { margin: 14px 0 6px; font-size: 14px; }
@media (max-width: 640px) {
  .kv.vuln-fix-list, .kv.vuln-targets-values { grid-template-columns: 1fr; gap: 2px; }
  .kv.vuln-fix-list dd, .kv.vuln-targets-values dd { margin-bottom: 8px; }
}

/* A network device that is an endpoint (security-57d, components/endpoint_mark.wtz): one link holding the endpoint's
   name and health; long names wrap. */
.endpoint-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 4px; }
.endpoint-mark { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; min-height: 24px; text-decoration: none; border-radius: 999px; }
.endpoint-mark .endpoint-name { color: var(--text); white-space: normal; overflow-wrap: anywhere; flex: 0 1 auto; }
.endpoint-mark:hover { text-decoration: none; }
.endpoint-mark:hover .endpoint-name { color: var(--rose); }
@media (any-pointer: coarse) { .endpoint-mark { min-height: 44px; } }
.seen-as { margin: 2px 0 0; }
/* A Box view's heading and its Box picker (components/box_head.wtz; owner, 2026-10-16): switch to another Box of the
   Space and stay on the same view. A native disclosure; its list floats under it on wide screens, flows on narrow. */
.boxhead-name { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; min-width: 0; }
.boxhead-name h2 { overflow-wrap: anywhere; }
.boxpick { position: relative; }
.boxpick > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--text); font-size: 13px; font-weight: 600; }
.boxpick > summary::-webkit-details-marker { display: none; }
.boxpick > summary:hover, .boxpick[open] > summary { border-color: var(--rose); }
.boxpick > summary .ui-icon { flex: none; width: 16px; height: 16px; }
.boxpick[open] > summary .ui-icon:last-child { transform: rotate(180deg); }
.boxpick-count { color: var(--muted); font-weight: 500; }
.boxpick-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: max-content; min-width: 280px; max-width: min(400px, calc(100vw - 32px)); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px var(--shadow); display: grid; gap: 2px; }
.boxpick-item { padding: 8px 10px; border-radius: 6px; min-width: 0; }
.boxpick-item.current { background: var(--raised); }
.boxpick-name { display: inline-block; overflow-wrap: anywhere; }
.boxpick-item .sub { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--muted); font-size: 13px; }
.boxpick-item a.boxpick-name strong { color: var(--rose); }
@media (max-width: 640px) { .boxpick-list { position: static; width: auto; min-width: 0; max-width: none; margin-top: 6px; box-shadow: none; } }
@media (any-pointer: coarse) { .boxpick > summary { min-height: 44px; } }
/* A Space's Event storage (xdr/26.06 P6-R14, P6-R15; pages/event_storage.wtz, the only place these selectors live):
   today's figures, the devices that had events not kept, and a decorative 30-day line chart (kept in rose, not kept in
   amber, one scale) whose summary and daily table say the same in text. No page-level horizontal scroll at 390px. */
.event-storage .es-h { font-size: 15px; margin: 18px 0 6px; }
.es-today { margin: 0 0 6px; overflow-wrap: anywhere; }
.es-today a strong { color: var(--text); }
.es-dropped { margin: 0 0 6px; }
.es-over { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: var(--attn-bg); color: var(--attn); }
.es-status { margin: 0 0 8px; }
.es-details > summary, .es-table > summary { cursor: pointer; color: var(--rose); min-height: 36px; display: list-item; }
.es-devices { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.es-devices li { overflow-wrap: anywhere; }
.es-chart { margin: 16px 0 0; min-width: 0; }
.es-chart figcaption { color: var(--muted); margin: 0 0 6px; }
.es-plot { position: relative; height: 72px; border-bottom: 1px solid var(--line); }
.es-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.es-base { stroke: var(--line); stroke-width: 1; }
.es-kept, .es-drop { fill: none; stroke-width: 2; stroke-linejoin: round; }
.es-kept { stroke: var(--rose); }
.es-drop { stroke: var(--attn); stroke-dasharray: 4 3; }
.es-axis { display: flex; justify-content: space-between; margin: 2px 0 0; }
.es-key { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--muted); }
.es-sw { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--rose); }
.es-sw-drop { border-top: 2px dashed var(--attn); margin-left: 10px; }
.es-table { margin: 8px 0 0; }
.es-table table { min-width: 280px; }
@media (any-pointer: coarse) { .es-details > summary, .es-table > summary { min-height: 44px; } }
@media (forced-colors: active) {
  .es-kept { stroke: CanvasText; }
  .es-drop, .es-sw-drop { stroke: Highlight; border-top-color: Highlight; }
  .es-base { stroke: CanvasText; }
}

/* Prepared exports (xdr/26 06 P6-R16, §4.1; P6-W10): the sheet and the Exports list. */
.export-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 10px; }
.list .item.export-row { flex-wrap: wrap; align-items: flex-start; }
.export-main { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.export-state { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: flex-end; max-width: 100%; }
.export-state form { margin: 0; }
.export-selected { background: var(--raised); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.export-record { flex-basis: 100%; margin: 6px 0 0; }
.export-record code { word-break: break-all; }
@media (max-width: 640px) { .export-state { justify-content: flex-start; } }

/* Blocked sites (security/docs/product/xdr/27 §6.1, §6.1a; SB-W05; templates/pages/site_blocks.wtz). The 24-hour dial
   (midnight at the top, clockwise; blocked time solid, a quick exception hatched, now as a tick), the week strip and
   the month view; the schedule editor's variants follow its own controls (:has), so it works without script. */
.sb-cap { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--attn-line); border-radius: 10px; background: var(--attn-surface); }
.sb-cap.ok { border-color: var(--line); background: var(--surface); }
.sb-cap p { margin: 0 0 4px; }
.sb-cap p:last-child { margin: 0; }
.sb-now { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); }
.sb-now-head { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.sb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--box-lit); box-shadow: 0 0 0 4px color-mix(in srgb, var(--box-lit) 20%, transparent); }
.sb-filters { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 10px; }
.sb-fgroup { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sb-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: 13px; }
.sb-chip:hover { background: var(--raised); text-decoration: none; }
.sb-chip.on { border-color: var(--rose); color: var(--rose); background: var(--raised); }
.list .item.sb-rule { align-items: flex-start; flex-wrap: wrap; }
.sb-rule.sb-selected { background: var(--raised); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.sb-mini { flex: none; width: 36px; height: 36px; margin-top: 2px; }
.sb-main { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.sb-site { color: var(--text); }
.sb-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; }
.sb-state { font-weight: 600; }
.sb-state.blocked { color: var(--error); }
.sb-state.open { color: var(--online); }
.sb-state.ended { color: var(--muted); }
.sb-state.problem { color: var(--attn); }
.sb-notice { color: var(--attn); }
.sb-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-actions .btn { padding: 6px 12px; font-size: 13px; }
.sb-dial { display: block; overflow: visible; }
.sb-track { stroke: var(--line); }
.sb-arc { stroke: var(--box-lit); stroke-linecap: butt; }
.sb-hold { stroke: var(--online); stroke-dasharray: 2 3; }
.sb-hold.sb-force { stroke: var(--attn); }
line.sb-tick { stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.sb-mark { fill: var(--muted); font: 600 10px var(--body); }
.sb-handle { fill: var(--text); stroke: var(--box); stroke-width: 2; cursor: grab; touch-action: none; }
.sb-handle:focus-visible { outline: none; stroke: var(--rose); stroke-width: 4; }
.sb-detail { margin: 6px 0 12px; }
.sb-detail h3 { margin: 18px 0 8px; }
.sb-detail-top { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.sb-detail-facts { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.sb-bigdial { position: relative; width: 168px; height: 168px; flex: none; }
.sb-centre { position: absolute; inset: 46px 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text); font: 600 11px/1.3 var(--body); text-align: center; cursor: pointer; padding: 2px; }
.sb-centre:focus-visible { outline: 2px solid var(--rose); }
.sb-centre-times { display: none; }
.sb-bigdial.times .sb-centre-now { display: none; }
.sb-bigdial.times .sb-centre-times { display: inline; }
.sb-holdline { color: var(--online); }
.sb-quick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.sb-confirm { margin: 8px 0 12px; padding: 12px 14px; border: 1px solid var(--rose); border-radius: 10px; background: var(--raised); }
.sb-confirm p { margin: 0 0 8px; }
.sb-what { font-weight: 600; }
.sb-inline { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sb-inline input, .sb-inline select { padding: 6px 8px; }
.sb-pictures { margin: 12px 0 4px; }
.sb-changes, .sb-warn { margin: 0 0 6px; }
.sb-warn { color: var(--attn); }
.sb-strip { display: grid; gap: 4px; margin: 8px 0 4px; }
.sb-strow { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: center; }
.sb-stday { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-stbar { position: relative; height: 18px; border-radius: 4px; background: var(--raised); border: 1px solid var(--line); overflow: visible; }
.sb-stbar.skipped { background: repeating-linear-gradient(135deg, var(--raised) 0 6px, var(--surface) 6px 12px); }
.sb-band { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; background: var(--box-lit); display: block; }
a.sb-band:hover, a.sb-band:focus-visible { outline: 2px solid var(--rose); outline-offset: 1px; }
.sb-band.from-above { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.sb-band.from-above::before { content: ""; position: absolute; left: -1px; top: -6px; width: 3px; height: 6px; background: var(--box-lit); }
.sb-band.to-below { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.sb-band.hold { top: 6px; bottom: 6px; background: repeating-linear-gradient(135deg, var(--online) 0 3px, transparent 3px 6px); }
.sb-band.hold.force { background: repeating-linear-gradient(135deg, var(--attn) 0 3px, transparent 3px 6px); }
.sb-nowline { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--now); }
.sb-nowline::before { content: ""; position: absolute; top: -3px; left: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--now); }
.sb-skip { position: absolute; right: 6px; top: 0; font-size: 11px; line-height: 16px; color: var(--muted); }
.sb-stscale { display: flex; justify-content: space-between; margin-left: 100px; font-size: 11px; color: var(--muted); }
.sb-table, .sb-month, .sb-except, .sb-covgroup, .sb-bounds-d, .sb-dateset, .sb-winskip { margin: 6px 0; }
.sb-table > summary, .sb-month > summary, .sb-except > summary, .sb-covgroup > summary, .sb-bounds-d > summary, .sb-dateset > summary, .sb-winskip > summary { cursor: pointer; color: var(--rose); }
.sb-cal { border-collapse: separate; border-spacing: 4px; margin: 6px 0; }
.sb-cal th { font-size: 11px; color: var(--muted); font-weight: 500; }
.sb-cal td { width: 34px; height: 34px; text-align: center; border-radius: 50%; font-size: 12px; border: 1px solid transparent; }
.sb-cal td.on { background: color-mix(in srgb, var(--box-lit) 35%, transparent); }
.sb-cal td.skipped { border-color: var(--rose); background: transparent; }
.sb-cal td.clock { box-shadow: inset 0 -3px 0 var(--attn); }
.sb-cal td.today { outline: 2px solid var(--text); outline-offset: -2px; }
.sb-cal td.blank { color: var(--faint); }
.sb-legend { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.sb-key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid transparent; vertical-align: middle; }
.sb-key.on { background: color-mix(in srgb, var(--box-lit) 35%, transparent); }
.sb-key.skipped { border-color: var(--rose); }
.sb-key.clock { box-shadow: inset 0 -3px 0 var(--attn); }
.sb-sheet { border-color: var(--rose); }
.sb-form { display: grid; gap: 14px; }
.sb-field { display: grid; gap: 6px; min-width: 0; }
.sb-field > input, .sb-field select { max-width: 520px; width: 100%; }
.sb-field p { margin: 0; }
.sb-radio { display: flex; gap: 8px; align-items: flex-start; }
.sb-radio.off { opacity: .6; }
.sb-device, .sb-personpick, .sb-when-until, .sb-when-for, .sb-when-schedule { display: none; }
.sb-who:has(input[name="who"][value="device"]:checked) .sb-device,
.sb-who:has(input[name="who"][value="person"]:checked) .sb-personpick { display: grid; gap: 6px; }
.sb-kind-site, .sb-kind-service { display: grid; gap: 6px; }
.sb-what:has(input[name="kind"][value="service"]:checked) .sb-kind-site,
.sb-what:has(input[name="kind"][value="site"]:checked) .sb-kind-service { display: none; }
.sb-services > summary { cursor: pointer; color: var(--rose); }
.sb-services dl { margin: 6px 0 0; }
.sb-sites { overflow-wrap: anywhere; }
.sb-effect { display: none; }
.sb-who:has(input[name="who"][value="device"]:checked) .sb-effect,
.sb-who:has(input[name="who"][value="person"]:checked) .sb-effect { display: grid; gap: 4px; }
.sb-when:has(input[name="when"][value="until"]:checked) .sb-when-until,
.sb-when:has(input[name="when"][value="for"]:checked) .sb-when-for { display: block; }
.sb-when:has(input[name="when"][value="schedule"]:checked) .sb-when-schedule { display: grid; gap: 12px; }
.sb-seg { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sb-seg label { position: relative; cursor: pointer; }
.sb-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sb-seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-left: 1px solid var(--line); }
.sb-seg label:first-child span { border-left: 0; }
.sb-seg input:checked + span { background: var(--raised); color: var(--rose); font-weight: 600; }
.sb-seg input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: -2px; }
.sb-seg-small span { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.sb-num { width: 90px; }
.sb-zoneprompt { padding: 10px 12px; border: 1px solid var(--attn-line); border-radius: 10px; background: var(--attn-surface); }
.sb-zoneprompt p { margin: 0 0 8px; }
.sb-hidden-form { display: none; }
.sb-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.sb-preset { position: relative; display: block; cursor: pointer; }
.sb-preset input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sb-preset > span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.sb-preset input:checked + span { border-color: var(--rose); background: var(--raised); }
.sb-preset input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.sb-editor { display: grid; gap: 12px; }
.sb-block { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.sb-block.invalid { border-color: var(--error); }
.sb-blockhead { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.sb-blockhead select { padding: 6px 8px; margin-left: 6px; }
.sb-kept { margin: 0; }
.sb-days, .sb-dom { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-day { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); font-weight: 600; font-size: 13px; cursor: pointer; user-select: none; }
.sb-domday { width: 32px; height: 32px; font-size: 12px; }
.sb-day:has(input:checked) { background: var(--box-lit); border-color: var(--box-lit); color: var(--on-box); }
.sb-day:has(input:focus-visible) { outline: 2px solid var(--rose); outline-offset: 2px; }
.sb-day:not(:has(input:checked)) > span[aria-hidden] { text-decoration: line-through; color: var(--muted); }
.sb-domday:not(:has(input:checked)) > span { text-decoration: none; }
.sb-r-days, .sb-r-biweekly, .sb-r-interval, .sb-r-monthly-day, .sb-r-monthly-weekday, .sb-r-once, .sb-r-dates, .sb-w-same, .sb-w-split, .sb-w-each { display: none; }
.sb-block:has(.sb-repeat option[value="weekly"]:checked) .sb-r-days,
.sb-block:has(.sb-repeat option[value="biweekly"]:checked) .sb-r-days,
.sb-block:has(.sb-repeat option[value="biweekly"]:checked) .sb-r-biweekly,
.sb-block:has(.sb-repeat option[value="interval"]:checked) .sb-r-interval,
.sb-block:has(.sb-repeat option[value="monthly-day"]:checked) .sb-r-monthly-day,
.sb-block:has(.sb-repeat option[value="monthly-weekday"]:checked) .sb-r-monthly-weekday,
.sb-block:has(.sb-repeat option[value="once"]:checked) .sb-r-once { display: grid; gap: 8px; }
.sb-block:not(:has(.sb-repeat option[value="once"]:checked)):not(:has(.sb-repeat option[value="kept"]:checked)) .sb-r-dates { display: block; }
.sb-block:has(.sb-repeat option[value="dates"]:checked) .sb-bounds-d > summary { display: none; }
.sb-block:not(:has(.sb-repeat option[value="kept"]:checked)) .sb-w-same { display: block; }
.sb-block:has(.sb-repeat option[value="weekly"]:checked):has(.sb-mode input[value="split"]:checked) .sb-w-same,
.sb-block:has(.sb-repeat option[value="biweekly"]:checked):has(.sb-mode input[value="split"]:checked) .sb-w-same,
.sb-block:has(.sb-repeat option[value="weekly"]:checked):has(.sb-mode input[value="each"]:checked) .sb-w-same,
.sb-block:has(.sb-repeat option[value="biweekly"]:checked):has(.sb-mode input[value="each"]:checked) .sb-w-same { display: none; }
.sb-block:has(.sb-repeat option[value="weekly"]:checked):has(.sb-mode input[value="split"]:checked) .sb-w-split,
.sb-block:has(.sb-repeat option[value="biweekly"]:checked):has(.sb-mode input[value="split"]:checked) .sb-w-split,
.sb-block:has(.sb-repeat option[value="weekly"]:checked):has(.sb-mode input[value="each"]:checked) .sb-w-each,
.sb-block:has(.sb-repeat option[value="biweekly"]:checked):has(.sb-mode input[value="each"]:checked) .sb-w-each { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sb-block:has(.sb-days .sb-day input[value="0"]:not(:checked)) .sb-w-each [data-day="0"],
.sb-block:has(.sb-days .sb-day input[value="1"]:not(:checked)) .sb-w-each [data-day="1"],
.sb-block:has(.sb-days .sb-day input[value="2"]:not(:checked)) .sb-w-each [data-day="2"],
.sb-block:has(.sb-days .sb-day input[value="3"]:not(:checked)) .sb-w-each [data-day="3"],
.sb-block:has(.sb-days .sb-day input[value="4"]:not(:checked)) .sb-w-each [data-day="4"],
.sb-block:has(.sb-days .sb-day input[value="5"]:not(:checked)) .sb-w-each [data-day="5"],
.sb-block:has(.sb-days .sb-day input[value="6"]:not(:checked)) .sb-w-each [data-day="6"] { display: none; }
.sb-win { display: grid; gap: 4px; min-width: 0; }
.sb-winbody { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sb-wintimes { display: grid; gap: 6px; }
.sb-wintimes label { display: flex; gap: 8px; align-items: center; }
.sb-wintimes input[type="time"] { padding: 6px 8px; }
.sb-allday { gap: 6px; }
.sb-rows { margin: 0; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.sb-chips legend { font-weight: 600; margin-bottom: 4px; }
.sb-chips > p { flex-basis: 100%; margin: 0; }
.sb-togglechip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; }
.sb-togglechip:has(input:checked) { border-color: var(--rose); background: var(--raised); }
.sb-togglechip input { margin: 0; }
.sb-daterow { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sb-daterow input { padding: 6px 8px; }
.sb-preview { padding: 10px 12px; border-radius: 10px; background: var(--raised); }
.sb-sentence { margin: 0 0 2px; }
.sb-buttons, .sb-editor-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* "What this rule might catch" (xdr/27 OD-SB-30): the Boxes' estimate in the sheet. */
.sb-lookups { border-top: 1px solid var(--line); margin: 12px 0; padding-top: 10px; }
.sb-lookups h3 { margin: 0 0 6px; font-size: 1rem; }
.sb-lookups-list { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 4px; }
.sb-lookups-list li { overflow-wrap: anywhere; }
.sb-lookups-names { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.sb-https { max-width: 70ch; }
.sb-settings > summary, .sb-calendars > summary { cursor: pointer; list-style: none; }
.sb-settings > summary h2, .sb-calendars > summary h2 { display: inline; margin: 0; }
.sb-settings[open] > summary, .sb-calendars[open] > summary { margin-bottom: 12px; }
.sb-zoneform { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sb-values { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; }
.sb-value { display: inline-block; position: relative; }
.sb-value > summary { cursor: pointer; list-style: none; color: var(--text); border-bottom: 1px dotted var(--muted); }
.sb-value > summary::-webkit-details-marker { display: none; }
.sb-value-menu { display: grid; gap: 4px; margin: 4px 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13px; }
.sb-person { margin-top: 2px; }
@media (max-width: 640px) {
  .sb-strow { grid-template-columns: 62px 1fr; }
  .sb-stscale { margin-left: 70px; }
  .sb-seg { display: grid; grid-template-columns: 1fr 1fr; }
  .sb-seg span { border-left: 0; border-top: 1px solid var(--line); }
  .sb-presets { grid-template-columns: 1fr 1fr; }
  .sb-w-split, .sb-w-each { grid-template-columns: 1fr !important; }
  .sb-actions { width: 100%; }
}
@media (any-pointer: coarse) { .sb-chip, .sb-day { min-height: 44px; } .sb-day { min-width: 44px; } }
@media (forced-colors: active) {
  .sb-arc, .sb-band { stroke: Highlight; background: Highlight; }
  .sb-day:has(input:checked) { background: Highlight; color: HighlightText; }
}

/* Alert delivery (xdr/26 05 §5, P5-W21): channels, routes, the shown-once secret. */
.nd-notice { padding: 10px 14px; border-radius: 8px; background: var(--online-bg); color: var(--text); }
.nd-secret { border-color: var(--rose); }
.nd-secret-value { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.nd-secret-value code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; user-select: all; padding: 8px 10px; background: var(--raised); border-radius: 8px; }
.nd-channel-list { display: grid; gap: 12px; }
.nd-channel { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.nd-channel-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.nd-channel-name { margin: 0; font-size: 16px; }
.nd-channel-name a { color: var(--text); text-decoration: none; }
.nd-channel-name a:hover, .nd-channel-name a:focus-visible { text-decoration: underline; }
.nd-state { text-decoration: none; }
.nd-facts { margin: 10px 0; }
.nd-actions { margin-top: 8px; }
.nd-actions form { display: inline; }
.nd-rotate summary, .nd-remove summary { list-style: none; cursor: pointer; }
.nd-rotate summary::-webkit-details-marker, .nd-remove summary::-webkit-details-marker { display: none; }
.nd-rotate-form, .nd-remove-form { display: grid; gap: 10px; margin-top: 10px; max-width: 480px; }
.nd-add { margin-top: 14px; }
.nd-add > summary { list-style: none; cursor: pointer; display: inline-block; }
.nd-add > summary::-webkit-details-marker { display: none; }
.nd-form { display: grid; gap: 12px; max-width: 640px; margin-top: 14px; }
.nd-form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0; min-width: 0; }
.nd-check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0; }
.nd-route-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.nd-route { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.nd-route-words { margin: 0; flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.nd-page .notify-log table { width: 100%; }
@media (max-width: 640px) { .nd-page .notify-log { overflow-x: auto; } }

/* New and returning devices in the console (security xdr/29 §6.1, ND-W04): components/new_devices.wtz and
   pages/new_devices.wtz. Suspicious shows an icon and the word, never colour alone (ND-R39). */
.nd-card { margin-top: 12px; }
.nd-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.nd-head h2 { margin: 0; }
.nd-sub { font-size: 14px; margin: 14px 0 6px; }
.chip.nd-suspicious { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.chip.nd-suspicious .ui-icon { width: 14px; height: 14px; }
a.chip { text-decoration: none; }
a.chip:hover, a.chip:focus-visible { text-decoration: underline; }
.nd-rowchip { margin-top: 4px; }
.nd-answers { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 10px; }
.nd-answers form.inline, .nd-question form.inline { display: inline-flex; margin: 0; }
details.nd-answer, details.nd-change { display: inline-block; }
details.nd-answer > summary, details.nd-change > summary { list-style: none; cursor: pointer; color: var(--text); font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; display: inline-block; min-height: 32px; box-sizing: border-box; }
details.nd-answer > summary::-webkit-details-marker, details.nd-change > summary::-webkit-details-marker { display: none; }
details.nd-answer[open] > summary, details.nd-change[open] > summary { background: var(--raised); }
details.nd-change { display: block; margin-top: 10px; }
.nd-form { display: grid; gap: 8px; margin-top: 8px; padding: 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; max-width: 420px; }
.nd-form label { display: grid; gap: 4px; font-size: 13px; }
.nd-question, .nd-notice { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 6px; }
.nd-addresses { list-style: none; padding: 0; margin: 0; }
.nd-auto { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.nd-undo { display: inline-flex; margin: 0 0 0 8px; }
.nd-confirm { margin: 10px 0; padding: 12px; border: 1px solid var(--attn); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nd-confirm > p { flex: 1 1 100%; }
.nd-bulk { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.nd-bulk label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.nd-list td, .nd-burst td { vertical-align: top; overflow-wrap: anywhere; }
.nd-settings { display: grid; gap: 12px; }
.nd-settings fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: grid; gap: 8px; min-width: 0; }
.nd-settings fieldset.nd-readonly { border: 0; padding: 0; }
.nd-settings legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
.nd-settings label { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; }
.nd-settings input[type="number"] { width: 6em; }
svg.map .node.suspicious { stroke: var(--attn); stroke-width: 5; stroke-dasharray: none; }
@media (max-width: 640px) {
  .nd-form { max-width: none; }
  .nd-bulk label, .nd-filter label { flex: 1 1 100%; }
}
.nd-burst form.inline { display: flex; flex-wrap: wrap; gap: 6px; }
.nd-burst select { max-width: 100%; min-width: 0; }
/* File reputation (security xdr/28 §7.1, FR-W08): the File verdict card, Files, Quarantined files, File checks. */
.fr-card { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); min-width: 0; }
.panel > .fr-card { margin-top: 0; border: 0; padding: 0; }
.fr-head { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.fr-score { flex: none; min-width: 64px; height: 64px; border-radius: 12px; background: var(--raised); color: var(--text); font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.fr-score:hover { text-decoration: none; }
.fr-headtext { min-width: 0; flex: 1 1 auto; }
.fr-title { margin: 0 0 4px; font-size: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fr-line { margin: 0 0 4px; overflow-wrap: anywhere; }
.fr-copies { margin-top: 10px; }
.fr-copy { padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.fr-copyhead { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.fr-name, .fr-path, .fr-hash { overflow-wrap: anywhere; word-break: break-word; }
.fr-path, .fr-hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.fr-copyacts, .fr-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.fr-hint { margin: 6px 0 0; }
.fr-details { margin-top: 10px; }
.fr-details summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.fr-details h4 { margin: 12px 0 6px; font-size: 13px; }
.fr-caps, .fr-sources, .fr-vaults { margin: 6px 0; padding-left: 18px; }
.fr-sources li, .fr-caps li { margin: 4px 0; overflow-wrap: anywhere; }
.fr-facts dd { min-width: 0; overflow-wrap: anywhere; }
.fr-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 12px; }
.fr-filter label { display: grid; gap: 4px; }
.fr-filter label.fr-check { display: flex; align-items: center; gap: 6px; }
.fr-results { font-size: 15px; }
.fr-files .item, .fr-qlist .item { align-items: flex-start; }
.fr-notice p { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .fr-head { flex-direction: column; gap: 8px; }
  .fr-filter label { flex: 1 1 100%; }
  .fr-filter select { width: 100%; }
  .fr-files .item, .fr-qlist .item { flex-direction: column; }
}

/* Threat intelligence (xdr/26 05 §5, P5-W08): Rules → Indicators and a source's page. */
.ti-cards { display: grid; gap: 12px; }
.ti-source { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; display: block; }
.ti-source-head, .ti-source-page { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.ti-source-name { margin: 0; font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.ti-source-name a { color: var(--text); text-decoration: none; }
.ti-source-name a:hover, .ti-source-name a:focus-visible { text-decoration: underline; }
.ti-source-title { margin: 0; overflow-wrap: anywhere; }
.ti-state { text-decoration: none; }
.ti-what { margin: 6px 0 0; }
.ti-facts { margin: 10px 0; }
.ti-facts dd { overflow-wrap: anywhere; }
.ti-actions form { display: inline; }
.ti-remove summary { list-style: none; cursor: pointer; }
.ti-remove summary::-webkit-details-marker { display: none; }
.ti-remove form { display: grid; gap: 10px; margin-top: 10px; max-width: 480px; }
.ti-add { margin-top: 14px; }
.ti-add > summary { list-style: none; cursor: pointer; display: inline-block; }
.ti-add > summary::-webkit-details-marker { display: none; }
.ti-form { display: grid; gap: 12px; max-width: 640px; margin-top: 14px; }
.ti-form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0; min-width: 0; display: grid; gap: 10px; }
.ti-form textarea, .ti-form input[type="text"], .ti-form input[type="url"], .ti-form input[type="password"] { width: 100%; box-sizing: border-box; }
.ti-hint { display: block; }
.ti-check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0; }
.ti-test { margin-top: 14px; }
.ti-value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; }
.ti-test-table, .ti-sample-table { width: 100%; }
.ti-refusals { margin: 4px 0 0; padding-left: 18px; overflow-wrap: anywhere; }

/* Lookup tables (xdr/26 05 §5, P5-W02): the Tables view and a table's page. Names are code; the editor's table scrolls
   inside its region at 390px and 200% zoom, never the page. */
.lk-name { font-family: ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.lk-form { display: grid; gap: 10px; margin-top: 10px; max-width: 720px; }
.lk-form label { display: grid; gap: 4px; font-size: 13px; }
.lk-csv { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.lk-add { margin-top: 14px; }
.lk-add > summary, .lk-remove > summary { list-style: none; cursor: pointer; display: inline-block; }
.lk-add > summary::-webkit-details-marker, .lk-remove > summary::-webkit-details-marker { display: none; }
.lk-remove form { display: grid; gap: 10px; margin-top: 10px; max-width: 480px; }
.lk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lk-table th { text-align: left; font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.lk-table td { padding: 3px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lk-table td input:not([type="checkbox"]) { width: 100%; min-width: 9rem; font-family: ui-monospace, Menlo, monospace; }
.lk-key { font-family: ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .lk-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Detection health (xdr/26 05 §5, P5-R26, P5-W11): tiles that lead to where each figure is looked into, then the
   sections. Tables scroll inside their labelled region at 390px and 200% zoom, never the page; long names wrap. */
.detection-health .dh-h { font-size: 15px; margin: 22px 0 6px; }
.detection-health .dh-sub { font-size: 13px; margin: 12px 0 4px; }
.dh-kept { margin: 0 0 12px; overflow-wrap: anywhere; }
.dh-dropped { display: inline-block; margin-left: 4px; color: var(--attn); }
.dh-tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 0 0 8px; }
.dh-tile { display: grid; gap: 4px; min-width: 0; }
.dh-tile-value { font-size: 20px; overflow-wrap: anywhere; }
.dh-tile-sub { color: var(--muted); overflow-wrap: anywhere; }
.dh-tile[data-tone="attn"] { border-color: var(--attn); }
.dh-tile[data-tone="attn"] .dh-tile-value { color: var(--attn); }
.dh-tile[data-tone="bad"] { border-color: var(--error); }
.dh-tile[data-tone="bad"] .dh-tile-value { color: var(--error); }
.dh-tile[data-tone="ok"] .dh-tile-value { color: var(--online); }
.dh-table th[scope="row"], .dh-table td { overflow-wrap: break-word; }
#dh-device-table { min-width: 640px; }
.dh-table .dh-off, .dh-table .dh-act { display: block; }
.dh-log { overflow-wrap: anywhere; word-break: break-all; }
.dh-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.dh-list li { overflow-wrap: anywhere; }
#dh-geo[data-tone="bad"] > a, #dh-geo[data-tone="bad"] { color: var(--error); }

/* A device's Diagnostics (xdr/26 07 P7-W34): one table per family; the capability id stays muted under its name. */
.diag-family { margin: 16px 0 4px; font-size: 14px; }
.diag-table { min-width: 720px; }
.diag-table th[scope="row"], .diag-table td { overflow-wrap: break-word; }
.diag-table th[scope="row"] { color: var(--text); font-size: 14px; font-weight: 500; }
.diag-table th[scope="row"] .mono-sm { display: block; }
#see .item > a.chip { text-decoration: none; }
/* Compliance (xdr/26 05 P5-R32, P5-W14): the disclaimer, the count per status, the period choice. */
.cp-disclaimer { border-left: 3px solid var(--rose); padding: 6px 12px; margin: 8px 0 14px; }
.cp-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.cp-summary a.chip { text-decoration: none; }
.cp-summary a.chip[aria-current="true"] { box-shadow: inset 0 0 0 1px currentColor; }
.cp-periods { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 10px; }
.cp-periods a.on { color: var(--text); font-weight: 600; }
.cp-detail { margin-top: 12px; }
/* Settings → Automatic response (P8-W24): each safeguard, its default and, while loosened, a plain warning beside it. */
.ar-group { border: 0; padding: 0; margin: 0 0 18px; }
.ar-group legend { font-weight: 600; margin-bottom: 8px; }
.ar-item { padding: 10px 0; border-top: 1px solid var(--line); }
.ar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ar-row input[type="number"] { width: 6em; }
.ar-help { margin: 4px 0 0; }
.ar-warning, .ar-summary { margin: 6px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--attn-bg); color: var(--attn); }
.ar-summary { margin-bottom: 12px; }
#ar-save { margin-top: 8px; }
#ar-fixed { margin-top: 18px; }
.ar-ask-list { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.ar-ask-warning { color: var(--attn); }
/* Settings → Automatic response (security xdr/26-parity-program/08 P8-W11). */
.autoresp-state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 16px; }
.autoresp-state p { margin: 0; flex: 1 1 24em; }
.autoresp-entries, .autoresp-offered, .autoresp-grants, .autoresp-done { list-style: none; padding: 0; margin: 0 0 16px; }
.autoresp-entries > li, .autoresp-offered > li, .autoresp-grants > li, .autoresp-done > li { padding: 12px 0; border-top: 1px solid var(--line); }
.autoresp-entries p, .autoresp-offered p, .autoresp-grants p, .autoresp-done p { margin: 4px 0; }
.autoresp-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.autoresp-buttons form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.autoresp-buttons input[type="text"] { width: 10em; }
.autoresp-sheet { margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
.autoresp-sheet table { width: 100%; }

/* Settings tables (a form's rows of choices, such as My email's per-notice table; xdr/23 IW-19): the first column says
   what, the others hold one control each at its natural width. Below 640px each row stacks, its cells labelled. */
.settings-table td { vertical-align: middle; }
.settings-table td:first-child { width: 100%; min-width: 14em; }
.settings-table td:not(:first-child) { white-space: nowrap; }
.my-email-form { display: grid; gap: 12px; }
.my-email-form > label, .my-email-form > fieldset:not(.my-email-nd) { max-width: 640px; }
@media (max-width: 640px) {
  .settings-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .settings-table, .settings-table tbody, .settings-table tr, .settings-table td { display: block; width: auto; min-width: 0; }
  .settings-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .settings-table td { border: 0; padding: 4px 0; white-space: normal; }
  .settings-table td:not(:first-child)::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
  .settings-table select { width: 100%; }
}

/* Network equipment (security xdr/36 Section 6.1, SNMP-W11; pages/network_equipment.wtz). */
.ne-main { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1 1 auto; }
.ne-what { min-width: 0; overflow-wrap: anywhere; }
.ne-role { display: inline-flex; align-items: center; color: var(--rose); margin-right: 6px; flex: none; }
.ne-state { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ne-reason { color: var(--attn); }
.ne-actions, .ne-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ne-buttons { margin: 12px 0; }
.ne-found { margin-top: 24px; }
.ne-sheet { margin: 0 0 20px; }
.ne-form { display: grid; gap: 12px; }
.ne-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; align-items: end; }
.ne-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ne-field input, .ne-field select { width: 100%; }
.ne-cred { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; min-width: 0; }
.ne-cred legend { padding: 0 6px; color: var(--text); }
.ne-warn, .ne-warn-shown, .ne-warnings { color: var(--attn); background: var(--attn-bg); border: 1px solid var(--attn-line); border-radius: 8px; padding: 8px 12px; margin: 0; }
.ne-warnings { padding-left: 28px; }
/* Each warning and field shows when it fits the choice (SNMP-R06, R07): a plain line, never a step. Without :has()
   every field and warning shows. */
@supports selector(:has(a)) {
  .ne-cred:has(.ne-snmp option[value="v3"]:checked) :is(.ne-warn-community, .ne-warn-routed, .ne-community) { display: none; }
  .ne-form:has(input[name="routed_subnet"]:placeholder-shown) .ne-warn-routed { display: none; }
  .ne-cred:not(:has(.ne-snmp option[value="v3"]:checked)) :is(.ne-v3, .ne-warn-weak, .ne-warn-plain) { display: none; }
  .ne-cred:not(:has(.ne-auth option[value="md5"]:checked, .ne-priv option[value="des"]:checked, .ne-priv option[value="3des"]:checked)) .ne-warn-weak { display: none; }
  .ne-cred:not(:has(.ne-priv option[value=""]:checked)) .ne-warn-plain { display: none; }
  .ne-cred:has(.ne-priv option[value=""]:checked) .ne-privpass { display: none; }
}
.ne-test { margin: 12px 0; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); }
.notice.ne-off { background: var(--attn-bg); color: var(--attn); border: 1px solid var(--attn-line); }
.ne-test.ok { background: var(--online-bg); border-color: var(--online-line); }
.ne-test.attn { background: var(--attn-bg); border-color: var(--attn-line); }
.ne-test p { margin: 0 0 6px; }
.ne-test-tables, .ne-coverage-list { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.ne-test-tables li, .ne-coverage-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ne-save { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.ne-facts { display: grid; grid-template-columns: minmax(8em, max-content) 1fr; gap: 6px 16px; margin: 0; }
.ne-facts dt { color: var(--muted); }
.ne-facts dd { margin: 0; overflow-wrap: anywhere; }
.ne-device .panel { margin-bottom: 16px; }
.ne-device h2 { display: flex; align-items: center; gap: 4px; overflow-wrap: anywhere; }
.ne-check { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 14px; }
@media (max-width: 640px) {
  .ne-facts { grid-template-columns: 1fr; gap: 2px; }
  .ne-facts dd { margin-bottom: 8px; }
  .ne-state { align-items: flex-start; }
}
/* Devices behind a port and Wi-Fi clients (security xdr/36 SNMP-R36). */
.ne-behind-row { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.ne-behind-row + .ne-behind-row { margin-top: 4px; }
.ne-behind-row.stale > :first-child { color: var(--muted); }
.ne-client-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ne-discovery-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; align-items: end; max-width: 720px; margin-top: 12px; }
/* How the network is wired (security xdr/36 SNMP-R41; netequip_wiring.rs). */
.ne-wiring { margin: 16px 0; }
.ne-wiring-wrap { overflow-x: auto; border: 0; }
svg.map.ne-wiring-map { display: block; width: auto; max-width: none; height: auto; }
.ne-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin: 8px 0; }
.ne-wiring-map .wedge { stroke: var(--line); stroke-width: 1.5; }
.ne-wiring-map .wedge.link { stroke: var(--rose); stroke-width: 2; }
.ne-wiring-map .wedge.dashed { stroke-dasharray: 5 4; }
.ne-wiring-map .wnode { stroke-width: 2; }
.ne-wiring-map .wnode.managed { fill: var(--box-lit); stroke: var(--box-lit); }
.ne-wiring-map .wnode.device { fill: var(--rose); stroke: var(--rose); }
.ne-wiring-map .wnode.mac, .ne-wiring-map .wnode.more { fill: var(--surface); stroke: var(--muted); }
.ne-wiring-map .wnode.subnet { fill: var(--surface); stroke: var(--rose); }
svg.map.ne-wiring-map text { fill: var(--text); font-size: 11px; }
.ne-dot-managed { background: var(--box-lit); }
.ne-dot-device { background: var(--rose); }
.ne-dash { display: inline-block; width: 18px; border-top: 2px dashed var(--muted); vertical-align: middle; margin-right: 6px; }
.ne-vlan-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin: 0; }
.ne-wiring-words ul { margin: 6px 0 0; padding-left: 20px; }
