/* Access Red Team case monitor (homepage, practice, learn and case pages). Fonts and libraries are self-hosted. */
@font-face { font-family: "Inter"; src: url("/assets/inter-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/inter-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/inter-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/inter-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/plexmono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/plexmono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: var(--site-paper); --panel: var(--site-surface); --panel-2: var(--site-soft);
  --line: var(--site-line); --line-2: var(--site-line-strong);
  --text: var(--site-ink); --muted: var(--site-muted); --dim: var(--site-dim);
  --amber: var(--site-warning); --mint: var(--site-success); --ring: var(--site-dim);
  --met: var(--site-focus); --gap: var(--site-danger); --red: var(--site-accent);
  --display: "Inter", system-ui, "Segoe UI", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: min(1800px, 100% - 48px);
  --r-ctl: 5px; --r-tile: 8px; --r-mark: 2px;
  --ctl-h: 32px;
  --caps: .06em;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--site-focus); outline-offset: 2px; }
a:focus-visible { border-radius: 2px; }
svg :focus { outline: none; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--site-action); color: var(--site-on-action); padding: 10px 14px; z-index: 90; }
.skip:focus { left: 8px; top: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono, .lbl { font: 600 12px/1.35 var(--body); letter-spacing: .005em; color: var(--muted); }
.num { font-family: var(--display); font-weight: 700; line-height: .9; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 56px); line-height: 1.04; letter-spacing: -.022em; text-wrap: balance; max-width: 28ch; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.15; letter-spacing: -.012em; }
h3 { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.25; letter-spacing: -.008em; }
.muted { color: var(--muted); }
.monitor-error { margin-block: 20px; }
/* Report period: an animated slider. Stops sit on a time scale; the filled part runs from the chosen stop to the latest data. */
.period { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; margin: 24px 0 0; }
.period-lbl { font-size: 13px; font-weight: 600; }
.period-slider { --x: .5; position: relative; width: min(100%, 480px); padding: 22px 22px 0; touch-action: none; user-select: none; cursor: pointer; }
.ps-track { position: relative; height: 8px; border-radius: 4px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.ps-fill { position: absolute; top: 0; bottom: 0; right: 0; left: calc(var(--x) * 100%); border-radius: 4px; background: var(--site-action); transition: left .45s cubic-bezier(.2, .8, .2, 1); }
.ps-thumb { position: absolute; top: 50%; left: calc(var(--x) * 100%); width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--panel); box-shadow: 0 0 0 2px var(--site-action), 0 2px 6px var(--site-shadow); transition: left .45s cubic-bezier(.2, .8, .2, 1), transform .15s; }
.period-slider:hover .ps-thumb, .period-slider.drag .ps-thumb { transform: scale(1.12); }
.period-slider.drag .ps-fill, .period-slider.drag .ps-thumb { transition-duration: .18s; }
.ps-stops { position: absolute; inset: 0 22px auto; height: 18px; }
.ps-stops button { position: absolute; left: calc(var(--x) * 100%); top: 0; transform: translateX(-50%); padding: 0 2px; border: 0; background: none; color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: var(--caps); text-transform: uppercase; white-space: nowrap; border-radius: 3px; transition: color .2s; }
.ps-stops button b { font: 700 14px/1 var(--display); letter-spacing: -.01em; margin-right: 1px; text-transform: none; }
.ps-stops button:hover, .ps-stops button[aria-checked="true"] { color: var(--text); }
.ps-stops button[aria-checked="true"] b { color: var(--site-action); }
.ps-stops button:focus-visible { outline-offset: 3px; }
.report-dates { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.monitor-presets { margin-left: auto; position: relative; }
.monitor-presets summary { cursor: pointer; padding: 5px 10px; font-weight: 600; font-size: 13px; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.monitor-presets ul { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; width: max-content; max-width: 85vw; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-ctl); box-shadow: 0 5px 15px var(--site-shadow); }
.monitor-presets a { display: grid; padding: 6px 10px; text-decoration: none; }
.monitor-presets a:hover, .monitor-presets a:focus-visible { background: var(--panel-2); }
.monitor-presets strong { font-size: 14px; }
.monitor-presets a span { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .monitor-presets summary { min-height: 44px; align-content: center; } }

/* The site header and footer are styled in /site.css, shared by every page. */

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: auto auto minmax(0, 5fr) minmax(0, 6fr); gap: 0; margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi { padding: 22px 36px 20px 0; display: grid; gap: 12px; align-content: start; min-width: 0; }
.kpi + .kpi { padding-left: 36px; border-left: 1px solid var(--line); }
.kpi:last-child { padding-right: 0; }
/* The two breakdowns share one baseline: counts on top, proportion bar, then the caption. */
.kpi:has(.units) { grid-template-rows: 1fr auto auto; align-content: stretch; }
.kpi > .num { font-size: clamp(40px, 4.2vw, 64px); }
.kpi .num small { font-size: .32em; font-weight: 600; color: var(--muted); margin-left: 8px; }
.split { display: flex; gap: 6px 28px; flex-wrap: wrap; align-items: flex-start; }
.seg { background: none; border: 0; padding: 2px 0 8px; text-align: left; display: grid; gap: 9px; align-content: start; border-bottom: 2px solid transparent; border-radius: 0; }
.seg .num { font-size: clamp(28px, 2.8vw, 40px); display: flex; align-items: center; gap: 9px; }
.seg .mono { white-space: nowrap; font-weight: 500; transition: color .15s; }
.seg:hover { border-bottom-color: var(--line-2); }
.seg:hover .mono, .seg[aria-pressed="true"] .mono { color: var(--text); }
.seg[aria-pressed="true"] { border-bottom-color: var(--site-ink); }
.seg[aria-pressed="true"] .mono { font-weight: 600; }
.seg:focus-visible { outline-offset: 4px; border-radius: 2px; }
#k-ev .seg .mono { white-space: normal; max-width: 10ch; }
#safeguard-finding { margin-top: 22px; scroll-margin-top: 24px; }
.kpi-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; min-height: 20px; }
.kpi-foot a { font-size: 12.5px; color: var(--muted); }
.kpi-foot a:hover { color: var(--text); }
/* One tick per case under each breakdown. */
.units { display: flex; height: 16px; gap: 1px; align-items: stretch; }
.units .u { flex: 1 1 0; min-width: 0; max-width: 10px; border-radius: 1px; cursor: pointer; transition: opacity .3s, transform .12s; }
.units .u.first:not(:first-child) { margin-left: 5px; }
.units .u.off { opacity: .16; }
.units .u.hov, .units .u.sel { transform: scaleY(1.5); }
.has-sel .units .u:not(.sel):not(.off) { opacity: .45; }

/* Marks used in HTML. Case mark: shape = threat, fill = outcome. Safeguard mark: a shield. */
.g { display: inline-block; width: 15px; height: 15px; flex: none; }
.g .base, .g .half { vector-effect: non-scaling-stroke; stroke-width: 1.6; stroke-linejoin: round; }
.g svg { width: 1.3px; height: 2.6px; overflow: hidden; }
.g.reported .base { fill: var(--amber); stroke: var(--amber); }
.g.averted .base { fill: none; stroke: var(--mint); }
.g .half { fill: var(--mint); stroke: var(--mint); }
.g.unknown .base { fill: none; stroke: var(--ring); }
.g.shape .base { fill: currentColor; stroke: currentColor; stroke-width: 1; }
.lv { display: inline-block; width: 18px; height: 10px; border-radius: 5px; flex: none; }
.lv.reported { background: var(--amber); }
.lv.averted { background: linear-gradient(90deg, var(--mint) 50%, transparent 50%); box-shadow: inset 0 0 0 2px var(--mint); }
.lv.unknown { box-shadow: inset 0 0 0 2px var(--ring); }
.sq { display: inline-block; width: 14px; height: 14px; flex: none; overflow: visible; }
.sq .sh { vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-width: 1; }
.sq .mk { fill: none; stroke: var(--panel); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sq.met .sh { fill: var(--met); stroke: var(--met); }
.sq.gap .sh { fill: var(--gap); stroke: var(--gap); }
.sq.unk .sh { fill: var(--site-soft); stroke: var(--site-line-strong); stroke-width: 1.5; }
.sq.unreviewed .sh { fill: none; stroke: var(--line-2); stroke-width: 1.4; stroke-dasharray: 2 2; }
.oc { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.st { display: inline-flex; align-items: center; gap: 7px; font: 600 12.5px/1.3 var(--body); }
.st.met { color: var(--met); } .st.gap { color: var(--gap); } .st.unk { color: var(--muted); }
.pill { font: 400 11px/1 var(--mono); letter-spacing: var(--caps); text-transform: uppercase; border: 1px solid var(--line-2); padding: 5px 7px; border-radius: 2px; color: var(--muted); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 15px; background: var(--site-action); color: var(--site-on-action); border: 0; border-radius: var(--r-ctl); font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none; transition: background-color .15s, box-shadow .15s; }
.btn:hover { background: var(--site-action-hover); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--site-ink); }
.btn.ghost:active { background: var(--site-hover); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: var(--ctl-h); padding: 4px 12px; border: 1px solid var(--line-2); background: var(--panel); border-radius: var(--r-ctl); font-size: 13px; line-height: 1.2; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--site-ink); background: var(--panel-2); }
.chip:active { background: var(--site-hover); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 500; }
.chip[aria-pressed="true"]:hover, .chip[aria-checked="true"]:hover { background: color-mix(in srgb, var(--text) 86%, var(--bg)); border-color: transparent; }
.chip.x { border-style: dashed; background: transparent; }
.chip.x::after { content: "×"; font-size: 15px; line-height: 1; color: var(--muted); }
.chip.x:hover::after { color: var(--text); }
#f-clear { border-color: transparent; background: transparent; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; padding-inline: 6px; }
#f-clear:hover { color: var(--text); text-decoration-color: currentColor; }

/* ---------- filter bar ---------- */
.fbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 0; min-height: 60px; }
.threats { display: flex; flex-wrap: wrap; gap: 8px; padding-right: 12px; margin-right: 4px; border-right: 1px solid var(--line); }
.fbar .how { margin-left: auto; font-size: 13px; color: var(--muted); }
.fbar .how:hover { color: var(--text); }

/* ---------- monitor grid ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-tile); position: relative; min-width: 0; }
.t-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 12px 16px 0; min-height: 46px; }
.t-head .lbl { font-weight: 500; font-size: 12.5px; }
.t-head .lbl b { color: var(--text); font-weight: 600; font-size: 13px; }
.t-head .lbl .sub { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); }
#check-summary { max-width: 64ch; }
#check-summary b { display: block; }
#check-summary span { display: block; margin-top: 2px; font-weight: 400; line-height: 1.45; }
.t-stage { grid-column: span 8; }
.t-side { grid-column: span 4; display: flex; flex-direction: column; }
.t-time { grid-column: span 12; }
.t-flow { grid-column: span 6; }
.t-checks { grid-column: span 6; }
.t-body { padding: 8px 16px 16px; }
svg { display: block; width: 100%; overflow: visible; }
.seg-ctl { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-ctl); }
.seg-ctl button { background: transparent; border: 0; min-height: 28px; padding: 5px 12px; font: 500 11px/1.2 var(--mono); letter-spacing: var(--caps); text-transform: uppercase; color: var(--muted); transition: background-color .15s, color .15s; }
.seg-ctl button:first-child { border-radius: 4px 0 0 4px; }
.seg-ctl button:last-child { border-radius: 0 4px 4px 0; }
.seg-ctl button + button { border-left: 1px solid var(--line-2); }
.seg-ctl button:hover { color: var(--site-ink); background: var(--panel-2); }
.seg-ctl button[aria-checked="true"] { background: var(--text); color: var(--bg); }
.icon-btn { background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-ctl); min-height: 30px; padding: 5px 11px; font: 500 11px/1.2 var(--mono); letter-spacing: var(--caps); text-transform: uppercase; color: var(--muted); transition: background-color .15s, border-color .15s, color .15s; }
.icon-btn:hover { color: var(--site-ink); border-color: var(--site-ink); background: var(--panel-2); }
.icon-btn:active { background: var(--site-hover); }

/* ---------- svg marks ---------- */
.land { fill: var(--site-map-fill); stroke: var(--site-map-outline); stroke-width: .6; }
.land.has { fill: var(--site-map-area); stroke: var(--site-map-outline); cursor: pointer; }
.land.has:hover, .land.on { fill: var(--site-map-active); stroke: var(--site-focus); }
.state { fill: var(--site-map-fill); stroke: var(--site-map-outline); stroke-width: .7; }
.state.has { fill: var(--site-map-area); stroke: var(--site-map-outline); }
.layer { transition: opacity .6s ease; }
.layer.hide { opacity: 0; pointer-events: none; }
.s-label { font: 400 10.5px var(--mono); letter-spacing: var(--caps); text-transform: uppercase; fill: var(--muted); }
.s-label .n { fill: var(--text); font: 700 20px var(--display); letter-spacing: -.02em; }
.s-label.click { cursor: pointer; } .s-label.click:hover, .s-label.on { fill: var(--site-ink); }
.s-label.on { text-decoration: underline; text-underline-offset: 4px; }
.cross { stroke: var(--site-ink); stroke-width: .75; stroke-dasharray: 2 4; opacity: .35; pointer-events: none; }

.dot { cursor: pointer; transition: opacity .3s ease; }
.dot .hit { fill: transparent; }
.dot .halo { pointer-events: none; } /* decorative rings must not take clicks from neighbouring dots */
.dot .body { transition: transform .14s ease; transform-box: fill-box; transform-origin: center; }
.dot .base, .dot .half { vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-width: 2; }
.dot .hf { width: 1.3px; height: 2.6px; overflow: hidden; }
.dot.reported .base { fill: var(--amber); stroke: var(--panel); stroke-width: 1.4; paint-order: stroke; }
.dot.averted .base { fill: var(--panel); stroke: var(--mint); }
.dot.averted .half { fill: var(--mint); stroke: var(--mint); }
.dot.unknown .base { fill: var(--panel); stroke: var(--ring); }
.dot .halo { fill: none; stroke: var(--site-ink); stroke-width: 1.6; opacity: 0; transition: opacity .2s; }
.dot.sel .halo { opacity: 1; }
.dot.hov .body { transform: scale(1.35); }
.dot.off { opacity: .12; }
.has-sel .dot:not(.sel):not(.off) { opacity: .45; }
.dot:focus-visible .halo { opacity: 1; stroke-width: 2.4; }
.enter .dot .body { animation: pop .55s cubic-bezier(.2,1.4,.4,1) backwards; animation-delay: calc(var(--i) * 20ms); }
@keyframes pop { from { transform: scale(0); opacity: 0; } }

.axis line { stroke: var(--line); stroke-dasharray: 1 3; }
.axis text { font: 400 10.5px var(--mono); letter-spacing: var(--caps); fill: var(--muted); text-transform: uppercase; }
.axis .end { stroke: var(--red); stroke-width: 1; stroke-dasharray: none; }
.axis .endt { fill: var(--text); }
.latest-t { font: 500 10.5px var(--mono); letter-spacing: var(--caps); fill: var(--text); text-anchor: end; text-transform: uppercase; }
.latest-l { stroke: var(--text); stroke-width: .75; opacity: .6; }
.guide { stroke: var(--site-ink); stroke-width: .75; stroke-dasharray: 2 4; opacity: .4; pointer-events: none; }
.brush .selection { fill: var(--site-focus); fill-opacity: .1; stroke: var(--site-focus); stroke-opacity: .7; }
.brush .overlay { cursor: crosshair; }

.f-thread { cursor: pointer; }
.f-thread path { fill: none; }
.f-thread .hit { stroke: transparent; }
.f-thread .ln { stroke: var(--ring); opacity: .5; stroke-dasharray: 1; pointer-events: none; transition: opacity .2s, stroke .2s; }
.f-thread.reported .ln { stroke: var(--amber); }
.f-thread.averted .ln { stroke: var(--mint); opacity: .7; }
.f-thread.off .ln { opacity: .07; }
.hovering .f-thread:not(.hot):not(.off) .ln { opacity: .1; }
.hovering .f-thread.hot:not(.off) .ln { opacity: .9; }
.picked .f-thread:not(.sel):not(.off) .ln { opacity: .14; }
.f-pick, .f-peek { fill: none; stroke: var(--site-ink); stroke-linecap: round; pointer-events: none; }
.f-peek { opacity: .8; }
.enter .f-thread .ln { animation: draw .9s cubic-bezier(.4,0,.2,1) backwards; animation-delay: calc(250ms + var(--i) * 9ms); }
@keyframes draw { from { stroke-dashoffset: 1; } }
.f-ico .base { fill: var(--muted); }
.f-node { cursor: pointer; transition: opacity .2s; }
.f-node .hitbox { fill: transparent; }
.f-node .box { fill: color-mix(in srgb, var(--panel) 74%, transparent); stroke: var(--line-2); }
.f-node .nb { opacity: .3; }
.f-node.c1 .nb { opacity: .45; }
.f-node:focus-visible .nb { opacity: 1; stroke: var(--site-ink); stroke-width: 2; }
.f-node text { font: 500 12.5px var(--body); fill: var(--muted); }
.f-node text .c { font: 700 16px var(--display); letter-spacing: -.01em; fill: var(--text); font-variant-numeric: tabular-nums; }
.f-node.c1 text { fill: var(--text); }
.f-node:hover text, .f-node.on text, .f-node:hover .c, .f-node.on .c { fill: var(--site-ink); }
.f-node.on .l { text-decoration: underline; }
.f-node.on .box, .f-node:hover .box { stroke: var(--site-ink); }
.f-node.mutedn { opacity: .35; }
.picked .f-node:not(.onpath) { opacity: .35; }
.picked .f-node.onpath text, .picked .f-node.onpath .c { fill: var(--site-ink); }
.f-col { font: 400 10.5px var(--mono); letter-spacing: var(--caps); fill: var(--muted); text-transform: uppercase; }

/* ---------- checks matrix ---------- */
.legend { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; font: 500 12px/1.3 var(--body); color: var(--muted); }
.legend span { display: inline-flex; gap: 7px; align-items: center; }
.legend b { color: var(--text); font-weight: 500; }
.cx { display: grid; gap: 0; }
.cx-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 4px 0; border-top: 1px solid var(--line); }
.cx-row:first-child { border-top: 0; }
.cx-row > button { background: none; border: 0; padding: 4px 0; min-height: 30px; text-align: left; display: flex; gap: 10px; align-items: baseline; min-width: 0; color: var(--muted); border-radius: 2px; }
.cx-row > button .id { font: 500 11.5px/1.35 var(--mono); color: var(--text); flex: none; padding: 0 4px; margin: 0 -4px; border-radius: 2px; }
/* Full control names: wrap to two lines instead of cutting them off. */
.cx-row > button .nm { font-size: 12.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.cx-row > button:hover .nm, .cx-row.on > button .nm { color: var(--site-ink); }
.cx-row > button:hover .nm { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.cx-row.on > button .nm { font-weight: 500; }
.cx-row.on > button .id { background: var(--text); color: var(--bg); }
.cells { display: flex; flex-wrap: wrap; gap: 2px; min-height: 16px; align-items: center; }
.cell { display: inline-flex; width: 18px; height: 18px; cursor: pointer; transition: opacity .3s, transform .12s; }
.cell .sq { width: 100%; height: 100%; }
.cell.hov, .cell.sel { transform: scale(1.35); outline: 1.5px solid var(--site-ink); outline-offset: 1px; border-radius: 4px; z-index: 1; position: relative; }
.cell.off { opacity: .16; }
.has-sel .cell:not(.sel):not(.off) { opacity: .45; }
.cx-none { font: 400 11px var(--mono); letter-spacing: var(--caps); color: var(--muted); text-transform: uppercase; }
.enter .cell { animation: cellin .4s ease backwards; animation-delay: calc(400ms + var(--i) * 9ms); }
@keyframes cellin { from { opacity: 0; transform: scale(.3); } }

.months { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(48px, 1fr); gap: 3px; overflow-x: auto; padding: 2px 28px 16px; scrollbar-width: thin; }
.months.long { grid-auto-columns: minmax(72px, 1fr); }
.months button { display: grid; grid-template-rows: 22px auto; gap: 5px; background: transparent; border: 0; border-top: 1px solid var(--line-2); border-radius: 0 0 var(--r-ctl) var(--r-ctl); min-height: 32px; padding: 0 2px 6px; font: 500 11px var(--mono); letter-spacing: var(--caps); text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: background-color .15s, color .15s; }
.months .mb { display: flex; align-items: flex-start; height: 22px; }
.months .mb i { display: block; width: 100%; min-height: 2px; background: var(--line-2); border-radius: 0 0 2px 2px; transition: background-color .15s; }
.months .mt b { color: var(--text); font-weight: 500; }
.months button:hover { color: var(--site-ink); background: var(--panel-2); }
.months button:hover .mb i { background: var(--muted); }
.months button:focus-visible { outline-offset: -2px; }
.months button[aria-pressed="true"] { color: var(--text); border-top-color: var(--text); background: var(--panel-2); }
.months button[aria-pressed="true"] .mb i { background: var(--text); }
.zoom { display: inline-flex; gap: 4px; }
.zoom button { width: 30px; height: 30px; display: inline-grid; place-items: center; background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-ctl); color: var(--muted); font: 500 14px/1 var(--mono); transition: background-color .15s, border-color .15s, color .15s; }
.zoom button:hover { color: var(--site-ink); border-color: var(--site-ink); background: var(--panel-2); }
.zoom button:disabled { opacity: .38; pointer-events: none; }
.dot.out { opacity: 0 !important; pointer-events: none; }

/* ---------- side panel ---------- */
.side-in { padding: 6px 16px 16px; overflow: auto; flex: 1; min-height: 0; }
.latest li { border-top: 1px solid var(--line); }
.latest li:first-child { border-top: 0; }
.latest button { width: 100%; background: none; border: 0; text-align: left; display: grid; grid-template-columns: 52px 13px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 11px 0; }
.latest button .g { align-self: start; margin-top: 3px; }
.latest button:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.latest button:focus-visible { outline-offset: -2px; border-radius: 3px; }
.latest .d { font: 400 11px/1.65 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.latest b { font-weight: 500; font-size: 14px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.latest li:first-child .d { color: var(--text); }
.cp { display: grid; gap: 14px; }
.cp h2 { font-size: 22px; line-height: 1.18; text-wrap: balance; }
.cp h2:focus-visible { outline-offset: 4px; border-radius: 2px; }
.cp .tags { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.cp .q { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; }
.cp .q p { font-size: 14px; line-height: 1.5; }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.clamp.open { -webkit-line-clamp: unset; }
.more { background: none; border: 0; padding: 2px 0; color: var(--muted); font-size: 12.5px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; justify-self: start; }
.more:hover { color: var(--text); text-decoration-color: currentColor; }
.cp .ev { display: grid; gap: 8px; }
.cp .ev li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; }
.cp .ev .sq { margin-top: 3px; }
.cp .ev .cond { display: block; color: var(--text); }
.cp .ev .st { margin-top: 3px; white-space: normal; }
.cp-act { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.cp-act .sp { margin-left: auto; display: flex; gap: 6px; }
.sq-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; flex: none; background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-ctl); font-size: 15px; line-height: 1; transition: background-color .15s, border-color .15s; }
.sq-btn:hover { border-color: var(--site-ink); background: var(--panel-2); }
.sq-btn:active { background: var(--site-hover); }
#side-head .sq-btn { margin-block: -4px; }

.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--panel); color: var(--muted); border: 1px solid var(--line-2); padding: 8px 11px 9px; border-radius: var(--r-ctl); font-size: 12.5px; line-height: 1.4; max-width: 280px; box-shadow: 0 6px 18px var(--site-shadow); }
.tip b { display: block; font-weight: 600; color: var(--text); }
.tip .mono { color: var(--site-muted); font-weight: 500; }

/* ---------- secondary pages ---------- */
.page-head { padding: 40px 0 28px; display: grid; gap: 14px; }
.crumbs { padding-top: 20px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs + .page-head { padding-top: 24px; }
.locator { padding: 10px 0 2px; }
.locator .tk { stroke: var(--line-2); stroke-width: 1.5; }
.locator .tk.me { stroke: var(--site-ink); stroke-width: 2.5; }
.four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.four .tile { padding: 20px 22px 22px; display: grid; gap: 14px; align-content: start; }
.four .tile > h2.lbl, .learn .tile > h2.lbl { font-size: 13px; letter-spacing: 0; color: var(--text); }
.four .big { font-size: 17px; line-height: 1.5; letter-spacing: -.006em; max-width: 68ch; text-wrap: pretty; }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0 14px; font-size: 14px; line-height: 1.45; border-top: 1px solid var(--line); margin-top: 2px; }
.kv dt, .kv dd { padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 12.5px; font-weight: 500; padding-top: 10px; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; padding-bottom: 0; }
.cond { border-left: 3px solid var(--line-2); padding-left: 14px; display: grid; gap: 6px; }
.cond + .cond { margin-top: 4px; }
.cond .cond-head a.mono:hover { color: var(--text); }
.cond.met { border-left-color: var(--met); } .cond.gap { border-left-color: var(--gap); }
.cond p { font-size: 14px; line-height: 1.5; max-width: 72ch; }
.srcs { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 14px; }
.srcs a { overflow-wrap: anywhere; }
details > summary { cursor: pointer; font-size: 13px; color: var(--muted); border-radius: 2px; }
details > summary:hover { color: var(--text); }
details[open] > summary { margin-bottom: 8px; color: var(--text); }
.sim { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.sim a { padding: 16px 18px; text-decoration: none; display: grid; gap: 8px; align-content: start; transition: border-color .15s, background-color .15s; }
.sim a:hover { border-color: var(--site-ink); }
.sim a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sim b { font-weight: 600; font-size: 15px; line-height: 1.35; }
.sim .oc { font-size: 13px; white-space: normal; }

.teams { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 0 28px; }
.ctls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ctl { padding: 18px 20px; display: grid; gap: 10px; align-content: start; scroll-margin-top: 16px; }
.ctl:target { border-color: var(--site-ink); box-shadow: 0 0 0 1px var(--site-ink); }
.ctl .id { font: 500 11.5px/1.4 var(--mono); letter-spacing: .02em; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; }
.ctl .id span:first-child { color: var(--text); letter-spacing: var(--caps); }
.ctl h3 { font-size: 19px; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.ctl .own { font-size: 13px; line-height: 1.45; color: var(--muted); }
.ctl > a.mono:hover { color: var(--text); }
.ctl > a.mono { justify-self: start; }
.ctl .cells { padding: 4px 0; }
.ctl .cells a { display: block; }
.ctl details p, .ctl details li { font-size: 13.5px; line-height: 1.5; color: var(--site-ink); }
.ctl details .lbl { margin: 12px 0 4px; }
.ctl details { border-top: 1px solid var(--line); padding-top: 10px; }
.ctl details ol { list-style: decimal; padding-left: 18px; }
.fam-h { grid-column: 1 / -1; display: flex; gap: 12px; align-items: baseline; padding-top: 28px; }
.fam-h .lbl { font: 500 11.5px var(--mono); letter-spacing: var(--caps); }
.fam-h:first-child { padding-top: 0; }

.learn { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.learn .tile { padding: 20px 22px 22px; display: grid; gap: 14px; align-content: start; }
.learn .tile > p.measure { font-size: 15px; line-height: 1.55; max-width: 76ch; text-wrap: pretty; }
.l4 { grid-column: span 4; } .l6 { grid-column: span 6; } .l8 { grid-column: span 8; } .l12 { grid-column: span 12; }
.defs { display: grid; gap: 0; }
.defs > div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 3px 12px; padding: 11px 0; border-top: 1px solid var(--line); align-items: baseline; }
.defs > div:last-child { padding-bottom: 0; }
.defs .num { font-size: 26px; }
.defs dt { font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.defs dd { grid-column: 2; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.defs dt { grid-column: 2; grid-row: 1; }
.defs dd { grid-row: 2; }
.defs dd.num { grid-column: 1; grid-row: 1 / span 2; color: var(--text); font-size: 24px; line-height: 1; }
.steps { counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.steps li:last-child, .lim li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); font: 700 20px/1.05 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lim li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.lim b, .steps b { font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .t-stage, .t-side, .t-flow, .t-checks { grid-column: span 12; }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kpi:nth-child(3) { padding-left: 0; border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kpi:nth-child(2) { padding-right: 0; }
  .l4, .l6, .l8 { grid-column: span 12; }
  .t-side { max-height: none !important; }
  .cx-row { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
}
/* Three controls per family: keep the row of three, then go straight to one column (no orphan card). */
@media (max-width: 880px) {
  .ctls { grid-template-columns: minmax(0, 1fr); }
  .ctl details p, .ctl details ol { max-width: 76ch; }
}
@media (max-width: 760px) {
  .four, .sim { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --wrap: calc(100% - 24px); --ctl-h: 44px; }
  h1 { font-size: clamp(28px, 8.4vw, 34px); }
  .period-slider { width: 100%; }
  .report-dates { width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .kpi { padding: 16px 12px 16px 0; }
  .kpi + .kpi { padding-left: 16px; }
  .kpi:nth-child(n+3) { grid-column: 1 / -1; padding-left: 0; padding-right: 0; border-left: 0; }
  .split { gap: 4px 22px; }
  .seg { min-height: 44px; }
  #k-ev { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 10px; }
  .kpi-foot a { padding-block: 6px; }
  .threats { display: contents; }
  .fbar .how { padding-block: 12px; }
  .grid { gap: 8px; }
  .t-head { padding: 10px 12px 0; }
  .t-body { padding: 6px 12px 12px; }
  .head-ctl { flex-wrap: wrap; gap: 8px; }
  .seg-ctl button, .icon-btn { min-height: 40px; }
  .zoom button { width: 40px; height: 40px; }
  .months { padding: 2px 12px 12px; }
  .months button { min-height: 48px; }
  .cx-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 6px 0 10px; }
  .cx-row > button { min-height: 40px; align-items: center; }
  .cell { width: 17px; height: 17px; }
  .f-node text { font-size: 11px; }
  .f-node text .c { font-size: 14px; }
  .four .tile, .learn .tile { padding: 16px 16px 18px; }
  .ctl { padding: 16px; }
  .kv { grid-template-columns: 92px minmax(0, 1fr); }
  .side-in { padding: 6px 12px 14px; }
  .latest button { padding: 13px 0; }
  .sq-btn { width: 44px; height: 44px; }
  .btn { min-height: 44px; }
  .more { padding: 10px 0; margin-block: -6px; }
  .page-head { padding: 28px 0 22px; }
  .teams { padding-bottom: 20px; }
  .ctl details > summary, .four details > summary, .case-index > summary { padding-block: 8px; }
  .ctl > a.mono { padding-block: 8px; }
  .case-sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 14px 14px 0 0; background: var(--panel); color: var(--text); box-shadow: 0 -12px 40px var(--site-shadow); }
  .case-sheet::backdrop { background: rgba(8, 14, 22, .6); }
  .case-sheet .t-side { max-height: 68vh !important; max-height: 68dvh !important; border: 0; border-radius: 14px 14px 0 0; }
  .case-sheet .t-head { padding: 14px 16px 0; }
  .case-sheet .side-in { overscroll-behavior: contain; padding: 8px 16px 0; }
  .case-sheet .cp-act { position: sticky; bottom: 0; background: var(--panel); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  body:has(.case-sheet[open]) { overflow: hidden; }
}
@media (max-width: 370px) {
  #k-ev { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .fbar .how { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- site integration: no inline styles (CSP style-src 'self') ---------- */
.contents { display: contents; }
.head-ctl { display: inline-flex; align-items: center; gap: 10px; }
.seg .sq-lg { width: 18px; height: 18px; }
.units .b-amber { background: var(--amber); } .units .b-mint { background: var(--mint); } .units .b-ring { background: var(--ring); }
.units .b-met { background: var(--met); } .units .b-gap { background: var(--gap); } .units .b-unk { background: var(--site-line-strong); }
.latest .empty-row { padding: 12px 0; }
.case-index { margin-top: 12px; }
.case-index > summary { padding: 14px 16px; font-size: 13px; font-weight: 600; color: var(--text); border-radius: var(--r-tile); }
.case-index > summary:hover { background: var(--panel-2); }
.case-index[open] > summary { margin-bottom: 4px; border-radius: var(--r-tile) var(--r-tile) 0 0; }
.case-index ol { columns: 3 320px; column-gap: 32px; column-rule: 1px solid var(--line); padding: 0 16px 16px; }
.case-index li { break-inside: avoid; display: grid; grid-template-columns: 13px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 6px 0; font-size: 13.5px; line-height: 1.4; }
.case-index li .g { align-self: start; margin-top: 3px; }
.case-index li .mono { display: block; margin-top: 2px; font-weight: 400; }
.row-wrap { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; }
.cond-head { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; }
.strong { font-weight: 600; }
.mt6 { margin-top: 6px; }
.ex { font-size: 14px; line-height: 1.5; }
.pager { display: flex; justify-content: space-between; gap: 12px; padding-top: 24px; }
.key { display: flex; gap: 12px 32px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.measure { max-width: 80ch; }
.coverage { margin-top: 12px; }
.coverage { max-width: 760px; }
.coverage > div { display: grid; grid-template-columns: minmax(130px, 200px) minmax(210px, 1fr) auto; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.coverage > div:last-child { padding-bottom: 0; }
.coverage dt { font-weight: 600; }
.coverage dd { color: var(--muted); }
.coverage dd:last-child { color: var(--text); text-align: right; }
@media (max-width: 560px) {
  .coverage > div { grid-template-columns: minmax(0, 1fr) auto; }
  .coverage dd:nth-child(2) { grid-row: 2; grid-column: 1 / -1; overflow-wrap: anywhere; }
}
.units .b-unreviewed { background: repeating-linear-gradient(135deg, var(--line-2) 0 2px, var(--panel-2) 2px 4px); }

/* Software inventory */
.software-catalog { max-width: 1220px; margin-inline: auto; }
.software-catalog .page-head { border-bottom: 1px solid var(--line); }
.software-catalog .page-head > p:first-of-type { max-width: 68ch; }
.software-jumps { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.software-jumps a { display: inline-flex; align-items: center; min-height: var(--ctl-h); font-weight: 600; }
.software-section { display: grid; gap: 12px; margin-block: 30px 42px; scroll-margin-top: 12px; }
.software-section > p { max-width: 84ch; }
.software-filters { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(128px, 1fr)) auto; gap: 12px; align-items: end; margin-block: 4px; }
.software-filters > div { display: grid; gap: 5px; }
.software-filters label { font-size: 13px; font-weight: 600; }
.software-filters input, .software-filters select { width: 100%; min-width: 0; min-height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: 7px 10px; background: var(--panel); }
.software-filters button { min-height: 42px; justify-content: center; }
.software-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px; }
.software-product, .software-record { display: grid; gap: 7px; padding: 15px 18px; overflow-wrap: anywhere; scroll-margin-top: 12px; }
.software-product > p:not(.mono) { font-size: 14px; }
.software-product details, .software-deployment details { border-top: 1px solid var(--line); margin-top: 2px; padding-top: 5px; }
.software-product summary, .software-deployment summary { cursor: pointer; font-size: 14px; font-weight: 600; padding-block: 5px; min-height: var(--ctl-h); }
.software-product details > p, .software-deployment details > p { font-size: 13px; margin-top: 5px; }
.software-product:target, .software-record:target, .software-source-list li:target { border-color: var(--site-focus); outline: 1px solid var(--site-focus); }
.software-evidence { display: grid; gap: 10px; margin-top: 8px; }
.software-evidence li, .software-related { font-size: 14px; }
.software-evidence li > .mono { margin-bottom: 3px; }
.software-related { display: grid; gap: 6px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.software-record > p, .software-record > a { font-size: 14px; }
.software-source-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 8px 18px; overflow-wrap: anywhere; }
.software-source-list li { padding-block: 12px; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }

@media (max-width: 840px) {
  .software-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .software-filters button { justify-self: start; }
}
@media (max-width: 640px) {
  .software-grid, .software-source-list { grid-template-columns: minmax(0, 1fr); }
  .software-filters input, .software-filters select, .software-filters button { min-height: 44px; }
  .software-product, .software-record { padding-inline: 14px; }
}

/* Homepage entry to the response guide */

/* "What should I do?" page (/monitor/respond/). Merged into monitor.css by the integrator. */
.respond { max-width: 1220px; margin-inline: auto; }
.respond .page-head { border-bottom: 1px solid var(--line); }
.respond-lead, .respond-summary { max-width: 70ch; font-size: 17px; line-height: 1.45; }
.respond-chooser ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.respond-chooser li { display: grid; align-content: start; gap: 4px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-tile); background: var(--panel); }
.respond-chooser a { display: inline-flex; align-items: center; min-height: 44px; }
.respond-chooser span { color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) { .respond-chooser ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .respond-chooser ul { grid-template-columns: minmax(0, 1fr); } }
.respond-situation { display: grid; gap: 14px; margin-block: 34px 46px; scroll-margin-top: 12px; }
.respond-situation > h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.012em; max-width: 40ch; }
.respond-situation:target > h2 { text-decoration: underline; text-decoration-color: var(--site-focus); text-underline-offset: 6px; }
.respond-rule { max-width: 70ch; padding: 12px 16px; border-color: var(--line-2); font-weight: 600; }
.respond-audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.respond-audience { display: grid; gap: 10px; padding: 16px 20px; overflow-wrap: anywhere; }
.respond-audience h3 { font-size: 15px; }
.respond-steps { list-style: decimal; padding-left: 1.4em; display: grid; gap: 8px; max-width: 70ch; }
.respond-steps li::marker { font-weight: 600; color: var(--muted); }
.respond-options { list-style: disc; padding-left: 1.2em; margin-top: 6px; display: grid; gap: 4px; }
.respond-evidence { display: grid; gap: 8px; }
.respond-evidence h3 { font-size: 15px; }
.respond-evidence ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 24px; }
.respond-evidence li { display: grid; gap: 4px; padding-block: 10px; border-top: 1px solid var(--line); font-size: 14px; max-width: 70ch; overflow-wrap: anywhere; }
.respond-evidence li > a { justify-self: start; display: inline-flex; align-items: center; min-height: var(--ctl-h); }
.respond-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; }
.respond-next .btn { min-height: 44px; }
.respond-closing { display: grid; gap: 6px; max-width: 70ch; margin-block: 10px 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .respond-audiences { grid-template-columns: minmax(0, 1fr); }
  .respond-audience { padding: 14px 16px; }
  .respond-evidence li > a { min-height: 44px; }
}

/* Outage recovery page (/monitor/respond/outage/). */
.outage-page { max-width: 1220px; margin-inline: auto; }
.outage-page .page-head { border-bottom: 1px solid var(--line); }
.outage-page .page-head > p:first-of-type { max-width: 68ch; font-size: 16px; }
.outage-jumps { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.outage-jumps a { display: inline-flex; align-items: center; min-height: var(--ctl-h); font-weight: 600; }
.outage-section { display: grid; gap: 12px; margin-block: 30px 42px; scroll-margin-top: 12px; }
.outage-section > p { max-width: 84ch; }
.outage-section h3 { font-size: 15px; line-height: 1.35; }
.outage-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; counter-reset: outage-step; }
.outage-steps li { display: grid; gap: 6px; align-content: start; padding: 15px 18px; counter-increment: outage-step; }
.outage-steps h3::before { content: counter(outage-step) ". "; color: var(--muted); }
.outage-steps p { font-size: 14px; }
.outage-emergency, .outage-lesson, .outage-note { padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--panel); }
.outage-emergency strong, .outage-lesson strong, .outage-gap strong { margin-right: 6px; }
.outage-record { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.outage-q { display: grid; gap: 8px; padding: 15px 18px; scroll-margin-top: 12px; }
.outage-q h3 .lbl { margin-right: 4px; }
.outage-states { display: grid; gap: 8px; }
.outage-states > div { padding-top: 8px; border-top: 1px solid var(--line); }
.outage-states dt { font-weight: 600; font-size: 14px; }
.outage-states dd { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.outage-print { display: grid; gap: 10px; margin-top: 14px; scroll-margin-top: 12px; }
.outage-note { font-size: 14px; max-width: 84ch; }
.outage-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--panel); }
.outage-template { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.outage-template caption { text-align: left; padding: 10px 12px; font-weight: 600; }
.outage-template th, .outage-template td { border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.outage-template thead th { font-weight: 600; background: var(--panel-2); }
.outage-template tbody th, .outage-template td { height: 40px; }
.outage-template tr > :first-child { border-left: 0; }
.outage-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.outage-lane-box { display: grid; gap: 8px; padding: 15px 18px; overflow-wrap: anywhere; }
.outage-lane { display: grid; gap: 0; }
.outage-lane li { display: grid; gap: 4px; padding-block: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.outage-src { font-size: 13px; color: var(--muted); }
.outage-gap { font-size: 13px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.outage-links { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 880px) {
  .outage-record, .outage-lanes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .outage-steps { grid-template-columns: minmax(0, 1fr); }
  .outage-steps li, .outage-q, .outage-lane-box { padding-inline: 14px; }
  .outage-jumps a, .outage-links .btn, .outage-src a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Print: drop site chrome and start the blank handoff template on its own sheet. */
@media print {
  body:has(.outage-page) .top, body:has(.outage-page) .skip, body:has(.outage-page) .review, body:has(.outage-page) .foot, .outage-noprint { display: none !important; }
  .outage-page { max-width: none; }
  .outage-page .tile, .outage-emergency, .outage-lesson, .outage-note { break-inside: avoid; background: none; }
  .outage-lanes, .outage-record { grid-template-columns: minmax(0, 1fr); }
  .outage-print { break-before: page; }
  .outage-scroll { overflow: visible; border: 0; }
  .outage-template { min-width: 0; font-size: 10pt; }
  .outage-template th, .outage-template td { border: 1px solid currentColor; }
  .outage-template thead th { background: none; }
  .outage-template thead { display: table-header-group; }
  .outage-template tbody th, .outage-template td { height: 0.5in; }
  .outage-template tr { break-inside: avoid; }
  @page { margin: 0.5in; }
}

/* Software notices on /monitor/software/: notice cards, role blocks, history and source routes. */
.notice-pointer { font-weight: 600; }
.notice-pointer a { display: inline-flex; align-items: center; min-height: var(--ctl-h); }
.notice-card h3 { font-size: 16px; line-height: 1.35; }
.notice-card > p { font-size: 14px; }
.notice-facts { display: grid; gap: 3px; font-size: 14px; padding-block: 6px; border-block: 1px solid var(--line); }
.notice-facts dd { margin: 0 0 5px; }
.notice-roles { display: grid; gap: 8px; }
.notice-role { display: grid; gap: 3px; padding: 9px 11px; background: var(--panel-2); border-radius: var(--r-ctl); font-size: 14px; }
.notice-role h4 { margin: 0; }
.notice-history { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.notice-history .mono { margin-bottom: 2px; }
.notice-card a, .software-source-list a { overflow-wrap: anywhere; }
.software-section > h3 { font-size: 16px; margin-top: 6px; }

@media (max-width: 640px) {
  .notice-card > p > a, .notice-role a, .notice-pointer a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- practice: response exercises ---------- */
.exercise-section { display: grid; gap: 12px; padding-bottom: 36px; scroll-margin-top: 12px; }
.exercise-section > h2 { font-size: 22px; font-weight: 600; line-height: 1.25; }
.exercise-section > p { max-width: 68ch; font-size: 14px; line-height: 1.5; }
.exercise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.exercise-card { padding: 18px 20px; display: grid; gap: 10px; align-content: start; overflow-wrap: anywhere; scroll-margin-top: 16px; }
.exercise-card:target { border-color: var(--site-ink); box-shadow: 0 0 0 1px var(--site-ink); }
.exercise-card h3 { font-size: 19px; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.exercise-card p, .exercise-card li, .exercise-card td, .exercise-card th { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.exercise-card .lbl { margin-top: 4px; }
.exercise-meta { font: 500 11.5px/1.4 var(--mono); letter-spacing: .02em; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; }
.exercise-tag { color: var(--text); letter-spacing: var(--caps); text-transform: uppercase; border: 1px solid var(--line-2); border-radius: var(--r-mark); padding: 0 6px; }
.exercise-who .lbl { display: block; margin: 0 0 2px; }
.exercise-scenario { background: var(--panel-2); border: 1px dashed var(--line-2); border-radius: var(--r-ctl); padding: 10px 12px; display: grid; gap: 4px; }
.exercise-scenario .lbl { margin: 0; }
.exercise-steps { list-style: decimal; padding-left: 20px; display: grid; gap: 4px; }
.exercise-steps .mono { white-space: nowrap; }
.exercise-receipt { width: 100%; border-collapse: collapse; table-layout: fixed; }
.exercise-receipt caption { text-align: left; padding-bottom: 4px; caption-side: top; }
.exercise-receipt th, .exercise-receipt td { border: 1px solid var(--line-2); padding: 6px 8px; text-align: left; vertical-align: top; }
.exercise-receipt thead th { font: 600 12px/1.35 var(--body); color: var(--muted); }
.exercise-receipt tbody th { font-weight: 500; width: 62%; }
.exercise-receipt td { height: 2.6em; }
.exercise-stop { border-left: 3px solid var(--site-ink); padding-left: 10px; }
.exercise-stop .lbl { margin: 0 0 2px; }
.exercise-links, .exercise-evidence { display: grid; gap: 6px; }
.exercise-links a, .exercise-situation { display: inline-flex; align-items: center; gap: 6px; min-height: var(--ctl-h); text-decoration: underline; text-underline-offset: 2px; }
.exercise-evidence .muted { display: block; color: var(--muted); }
.exercise-situation { justify-self: start; }
.exercise-card a:focus-visible { outline: 2px solid var(--site-focus); outline-offset: 2px; }

@media (max-width: 880px) {
  .exercise-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .exercise-card { padding: 16px 16px 18px; }
  .exercise-links a, .exercise-situation { min-height: 44px; }
}
@media print {
  .exercise-section ~ .teams, .exercise-section ~ .ctls { display: none; }
  .exercise-grid { grid-template-columns: minmax(0, 1fr); }
  .exercise-card { break-inside: avoid; border-color: var(--site-ink); box-shadow: none; }
  .exercise-receipt th, .exercise-receipt td { border-color: var(--site-ink); }
  .exercise-receipt td { height: 3.2em; }
}
