@font-face {
  font-family: "IBM Plex Sans KR";
  src: url("/static/vendor/ibm-plex/IBMPlexSansKR-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans KR";
  src: url("/static/vendor/ibm-plex/IBMPlexSansKR-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans KR";
  src: url("/static/vendor/ibm-plex/IBMPlexSansKR-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans KR";
  src: url("/static/vendor/ibm-plex/IBMPlexSansKR-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/vendor/ibm-plex/IBMPlexMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/vendor/ibm-plex/IBMPlexMono-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/vendor/ibm-plex/IBMPlexMono-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/vendor/ibm-plex/IBMPlexMono-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #17212b;
  --muted: #667380;
  --faint: #8c98a3;
  --line: #dbe1e5;
  --line-strong: #c9d1d7;
  --canvas: #eef1f3;
  --surface: #ffffff;
  --rail: #161d25;
  --rail-soft: #222c36;
  --blue: #246b9b;
  --teal: #15796d;
  --green: #27835c;
  --amber: #a56616;
  --rust: #b14c34;
  --red: #bd3c43;
  --shadow: 0 8px 24px rgba(23, 33, 43, .07);
  --font-sans: "IBM Plex Sans KR", Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

/* Snort3 rule control plane */
.rule-control-grid { display: grid; gap: 16px; }
.rule-control-grid .grid-surface { padding: 0; overflow: hidden; }
.rule-control-grid .section-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.rule-catalog-panel { min-height: 260px; }
.rule-summary small { display: block; margin-top: 4px; color: var(--muted); }
.rule-management-head { align-items: center; }
.rule-management-head h2 { font-size: 25px; line-height: 1.15; }
.rule-management-head .workspace-actions { flex-wrap: wrap; justify-content: flex-end; }
.rule-management-head .workspace-actions button { min-height: 34px; padding: 6px 10px; font-size: 13px; line-height: 1; white-space: nowrap; }
.rule-management-head .workspace-actions button .lucide { width: 13px; height: 13px; }
.triage-summary.rule-summary { grid-template-columns: repeat(4, minmax(170px, 1fr)); width: 100%; max-width: none; gap: 8px; }
.triage-summary.rule-summary > div { min-width: 0; min-height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-items: start; gap: 5px 12px; padding: 11px 13px; }
.rule-summary span { overflow-wrap: normal; word-break: keep-all; white-space: nowrap; }
.rule-summary b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 23px; }
.rule-summary small { grid-column: 1; grid-row: 2; margin: 0; overflow-wrap: normal; font-size: 11px; line-height: 1.35; word-break: keep-all; }
.rule-editor { min-height: 180px; font: 13px/1.55 var(--font-mono); tab-size: 2; }
.rule-choice-list { display: grid; gap: 7px; max-height: 280px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); }
.rule-choice { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; }
.rule-choice input { width: 17px; height: 17px; }
.rule-choice span { display: grid; gap: 2px; }
.rule-choice small { color: var(--muted); }

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { background: var(--canvas); font-family: var(--font-sans); font-size: 19.5px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, .button, input, select, textarea { font-size: 13.5px; }
button, .button { min-height: 34px; padding: 7px 11px; color: #33404b; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: #fff; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
button:hover, .button:hover { border-color: #8ea0ad; background: #f7f9fa; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { color: #fff; border-color: #1d6679; background: #1d6679; font-weight: 700; }
button.primary:hover { background: #18566a; }
a { color: inherit; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
input, select, textarea { width: 100%; min-height: 34px; padding: 7px 9px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(36, 107, 155, .12); }
textarea { min-height: 100px; resize: vertical; }
code, pre, time, .data-note { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.rail { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 220px; display: flex; flex-direction: column; color: #d8e0e6; background: var(--rail); }
.brand { height: 70px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid #2a343e; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: #102027; border-radius: 6px; background: #8fd2c4; font-size: 27px; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand strong { color: #fff; font-size: 25.5px; letter-spacing: .8px; }
.brand small { margin-top: 3px; color: #7f8d9b; font-size: 12px; letter-spacing: 1.6px; }
#navigation { flex: 1; overflow: auto; padding: 14px 10px; }
.nav-group { display: grid; gap: 3px; margin-bottom: 14px; }
.nav-group > p { margin: 0 10px 5px; color: #748290; font-size: 13.5px; }
.nav-group button { width: 100%; min-height: 39px; display: grid; grid-template-columns: 27px 1fr; align-items: center; gap: 7px; padding: 7px 9px; color: #9da9b4; border-color: transparent; background: transparent; text-align: left; }
.nav-group button span { width: 26px; height: 26px; display: grid; place-items: center; color: #7f909d; border-radius: 5px; background: #202a34; font-weight: 700; }
.nav-group button b { font-size: 16.5px; }
.nav-group button:hover { color: #e7ecef; background: #202932; }
.nav-group button.active { color: #fff; border-color: #344653; background: #2a3742; }
.nav-group button.active span { color: #102027; background: #8fd2c4; }
.rail-status { min-height: 64px; display: flex; align-items: center; gap: 9px; padding: 12px 17px; border-top: 1px solid #2a343e; }
.rail-status b, .rail-status small { display: block; }
.rail-status b { color: #dce3e7; font-size: 13.5px; }
.rail-status small { margin-top: 3px; color: #768693; font-size: 12px; }

.status-dot { width: 8px; height: 8px; flex: 0 0 8px; display: inline-block; border-radius: 50%; background: #89939c; }
.status-dot.ok { background: #35a675; box-shadow: 0 0 0 3px rgba(53, 166, 117, .12); }
.status-dot.pending { background: #d39738; }
.status-dot.danger { background: #bd3c43; box-shadow: 0 0 0 3px rgba(189, 60, 67, .12); }
.status-dot.off { background: #9aa4ac; }

.shell { min-height: 100vh; margin-left: 220px; }
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--line); background: #fff; }
.page-identity p { margin: 0 0 3px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; }
.page-identity h1 { display: block; margin: 0; font-size: 31.5px; }
.page-identity > span { color: var(--muted); font-size: 15px; }
.top-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.health-chip { min-height: 30px; display: flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; background: #f8fafb; font-size: 13.5px; }
.top-actions time { color: #4d5b66; font-size: 13.5px; }
.icon-button { width: 34px; min-width: 34px; padding: 0; font-size: 25.5px; }
.icon-button.inverse { color: #fff; border-color: #495661; background: #26313a; }
.toggle-button { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; }
.toggle-button i { width: 24px; height: 13px; padding: 2px; border-radius: 10px; background: #b8c1c7; }
.toggle-button i::after { content: ""; display: block; width: 9px; height: 9px; border-radius: 50%; background: #fff; transition: margin .15s; }
.toggle-button.active i { background: var(--teal); }
.toggle-button.active i::after { margin-left: 11px; }

.time-console { min-height: 232px; padding: 12px 24px 11px; border-bottom: 1px solid var(--line); background: #f8fafb; }
.time-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.time-head > div:first-child { display: flex; align-items: baseline; gap: 9px; }
.time-head b { color: var(--blue); font: 13.5px var(--font-mono); }
.time-head span { color: #4f5d67; font: 13.5px var(--font-mono); }
.time-presets { display: flex; gap: 3px; }
.time-presets button { min-height: 27px; padding: 4px 8px; color: var(--muted); border-color: transparent; background: transparent; font-size: 12px; }
.time-presets button.active { color: var(--blue); border-color: #9cb9cd; background: #fff; }
.time-presets button.live { color: var(--red); }
.time-presets .time-lens-toggle { width: 27px; min-width: 27px; padding: 4px; color: #526b76; border-color: rgba(72, 102, 116, .22); background: rgba(255, 255, 255, .68); }
.time-presets .time-lens-toggle .lucide { width: 12px; height: 12px; }
.time-console.collapsed { min-height: 42px; padding-top: 7px; padding-bottom: 7px; }
.time-console.collapsed > :not(.time-head) { display: none; }
.timeline { position: relative; height: 104px; display: grid; grid-template-columns: repeat(48, minmax(2px, 1fr)); align-items: stretch; gap: 0; margin: 10px 0 0; padding: 8px 5px 4px; overflow: hidden; border-bottom: 1px solid #aebec5; background: repeating-linear-gradient(to bottom, rgba(112, 137, 149, .09) 0 1px, transparent 1px 29px); user-select: none; }
.time-bucket { z-index: 1; position: relative; min-width: 0; height: 91px; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: default; }
.time-bucket::after { content: ""; position: absolute; inset: 0 50% 0 auto; width: 1px; background: rgba(117, 142, 153, .07); }
.time-legend .pcap::before { background: #4d7fae; }
.time-legend .alert::before { background: #dc5964; }
.time-legend .network::before { background: #e6a11e; }
.time-legend .logs::before { background: #405a8f; }
.time-legend .analysis::before { background: #8b62ad; }
.time-bucket.selected { background: rgba(74, 164, 166, .035); box-shadow: none; }
.time-bucket.selection-start { border-left: 1px solid rgba(45, 126, 134, .25); box-shadow: none; }
.time-bucket.selection-end { border-right: 1px solid rgba(45, 126, 134, .25); box-shadow: none; }
.time-bucket:hover { filter: brightness(1.08); }
.timeline-line { z-index: 2; position: absolute; inset: 8px 5px 4px; width: calc(100% - 10px); height: 91px; overflow: visible; pointer-events: none; }
.timeline-series polyline { fill: none; stroke-width: 1.75; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; opacity: .82; }
.timeline-series .timeline-area { stroke: none; opacity: .065; }
.timeline-series circle { stroke-width: 1; vector-effect: non-scaling-stroke; }
.timeline-series.pcap .timeline-area { fill: #4d7fae; opacity: .09; }
.timeline-series.alert .timeline-area { fill: #dc5964; }
.timeline-series.network .timeline-area { fill: #e6a11e; }
.timeline-series.logs .timeline-area { fill: #405a8f; }
.timeline-series.analysis .timeline-area { fill: #8b62ad; }
.timeline-series.pcap polyline { stroke: #4d7fae; }.timeline-series.pcap circle { fill: #4d7fae; stroke: #f8fbfb; }
.timeline-series.alert polyline { stroke: #dc5964; }.timeline-series.alert circle { fill: #dc5964; stroke: #fff; }
.timeline-series.network polyline { stroke: #e6a11e; }.timeline-series.network circle { fill: #e6a11e; stroke: #fff; }
.timeline-series.logs polyline { stroke: #405a8f; }.timeline-series.logs circle { fill: #405a8f; stroke: #fff; }
.timeline-series.analysis polyline { stroke: #8b62ad; }.timeline-series.analysis circle { fill: #8b62ad; stroke: #fff; }
.timeline-labels { display: grid; align-items: center; min-height: 17px; color: #71818a; font: 10.5px var(--font-mono); }
.timeline-labels time { text-align: center; white-space: nowrap; }
.timeline-labels time.start { text-align: left; }
.timeline-labels time.end { text-align: right; }
.time-brush { position: relative; height: 22px; margin: 1px 0 3px; touch-action: none; user-select: none; cursor: crosshair; }
.time-brush-track { position: absolute; inset: 7px 0 auto; height: 10px; border: 1px solid #d2dade; border-radius: 3px; background: repeating-linear-gradient(to right, #f3f6f7 0, #f3f6f7 calc(2.0833% - 1px), #e2e8ea calc(2.0833% - 1px), #e2e8ea 2.0833%); box-shadow: none; }
.time-brush-selection { position: absolute; top: 5px; left: 0; width: 100%; min-width: 12px; height: 14px; display: flex; align-items: center; justify-content: center; color: #55747b; border: 1px solid rgba(63, 137, 146, .27); border-radius: 3px; background: rgba(82, 166, 169, .045); cursor: grab; box-shadow: none; }
.time-brush-selection:active { cursor: grabbing; }
.time-brush-selection span { max-width: calc(100% - 30px); overflow: hidden; font: 10.5px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.time-brush-handle { position: absolute; top: -3px; width: 8px; height: 18px; border: 1px solid rgba(57, 119, 131, .48); border-radius: 3px; background: rgba(255, 255, 255, .94); cursor: ew-resize; box-shadow: none; }
.time-brush-handle::after { content: ""; position: absolute; top: 5px; left: 2px; width: 2px; height: 6px; border-left: 1px solid #6f929a; border-right: 1px solid #6f929a; }
.time-brush-handle.start { left: -4px; }
.time-brush-handle.end { right: -4px; }
.time-legend { display: flex; align-items: center; gap: 11px; margin-bottom: 5px; color: var(--muted); font-size: 10.5px; }
.time-legend span { display: inline-flex; align-items: center; gap: 4px; }
.time-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; }
.time-legend small { margin-left: auto; color: var(--faint); font-size: 10.5px; }
.time-inputs { min-height: 38px; display: flex; align-items: center; gap: 8px; padding-top: 5px; border-top: 1px solid rgba(102, 128, 140, .13); }
.time-inputs label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.time-inputs input { width: 176px; min-height: 29px; padding: 5px 7px; font: 12px var(--font-mono); }
.time-inputs button { min-height: 29px; padding: 5px 9px; font-size: 12px; }
.time-inputs > small { margin-left: auto; color: var(--faint); font-size: 12px; }

main { min-height: calc(100vh - 204px); padding: 20px 24px 52px; outline: 0; }
.loading, .error-panel { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.loading > span { width: 26px; height: 26px; border: 3px solid #d9e0e4; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-panel b { color: var(--red); font-size: 22.5px; }

.command-strip { display: grid; grid-template-columns: repeat(6, 1fr); min-height: 104px; margin-bottom: 14px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.command-strip > div { min-width: 0; display: grid; align-content: center; gap: 4px; padding: 15px 17px; border-right: 1px solid var(--line); }
.command-strip > div:last-child { border-right: 0; }
.command-strip span { color: var(--muted); font-size: 13.5px; }
.command-strip strong { font: 37.5px var(--font-mono); }
.command-strip small { overflow: hidden; color: var(--faint); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.warning-text { color: var(--amber); }
.danger-text { color: var(--red); }

.overview-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.surface, .grid-surface { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.surface { min-height: 260px; padding: 16px; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-all { grid-column: 1 / -1; }
.section-head { min-height: 38px; display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h3 { margin: 0 0 3px; font-size: 19.5px; }
.section-head span { color: var(--muted); font-size: 12px; }
.text-action { min-height: 25px; padding: 3px 5px; color: var(--blue); border: 0; background: transparent; font-size: 13.5px; }
.flow-chart { height: 170px; display: flex; align-items: end; gap: 3px; padding: 8px 4px 0; border-bottom: 1px solid var(--line); }
.flow-chart button { height: 100%; flex: 1; display: flex; align-items: end; padding: 0; border: 0; border-radius: 0; background: transparent; }
.flow-chart i { width: 100%; min-height: 2px; background: #337c91; }
.flow-chart button:hover i { background: var(--rust); }
.flow-axis { display: flex; justify-content: space-between; padding-top: 7px; color: var(--faint); font: 12px var(--font-mono); }
.bar-list { display: grid; gap: 11px; }
.bar-list > div { display: grid; grid-template-columns: minmax(80px, 1fr) 2fr 48px; align-items: center; gap: 8px; }
.bar-list span { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.bar-list i, .rate-bar i { height: 6px; overflow: hidden; background: #e7ecee; }
.bar-list i b, .rate-bar i b { display: block; height: 100%; background: var(--teal); }
.bar-list strong { font: 13.5px var(--font-mono); text-align: right; }
.source-readiness { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.source-readiness button { min-width: 0; display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; border-color: transparent; background: #f4f7f8; text-align: left; }
.source-readiness span { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.source-readiness b { font: 13.5px var(--font-mono); }

/* Situation room command center */
body.overview-page { color: #dce6ec; background: #0b0f14; }
body.overview-page .rail { border-right: 1px solid #26313b; background: #0d1218; }
body.overview-page .brand { border-bottom-color: #26313b; }
body.overview-page .brand-mark { color: #071112; background: #45d1c5; box-shadow: 0 0 22px rgba(69, 209, 197, .24); }
body.overview-page .nav-group button.active { border-color: #35515d; background: #1b2932; box-shadow: inset 3px 0 #45d1c5; }
body.overview-page .nav-group button.active span { background: #45d1c5; }
body.overview-page .shell { background: #0b0f14; }
body.overview-page .topbar { height: 66px; color: #f4f8fa; border-bottom-color: #27313a; background: #10161d; }
body.overview-page .page-identity p { color: #49cfc5; }
body.overview-page .page-identity h1 { color: #f5f8fa; font-size: 34.5px; }
body.overview-page .top-actions time { color: #91a3ae; }
body.overview-page .health-chip { color: #d9e4e9; border-color: #2d3b45; background: #161f27; }
body.overview-page .icon-button,
body.overview-page .toggle-button { color: #cbd8de; border-color: #34434e; background: #172028; }
body.overview-page .icon-button:hover,
body.overview-page .toggle-button:hover { color: #fff; border-color: #4d6673; background: #202c35; }
body.overview-page .time-console { min-height: 100px; padding: 9px 20px 8px; color: #c7d4da; border-bottom-color: #26313b; background: #111820; }
body.overview-page .time-head b { color: #49cfc5; }
body.overview-page .time-head span { color: #91a3ae; }
body.overview-page .time-presets button { color: #82939e; }
body.overview-page .time-presets button.active { color: #55ddd2; border-color: #345861; background: #19252d; }
body.overview-page .time-presets button.live { color: #ff6970; }
body.overview-page .timeline { height: 30px; margin: 6px 0; }
body.overview-page .time-bucket { min-height: 30px; background: #202a32; }
body.overview-page .time-bucket i { background: #277c89; }
body.overview-page .time-bucket:hover i { background: #51d9cd; box-shadow: 0 0 8px rgba(81, 217, 205, .45); }
body.overview-page .time-inputs input { color: #d5e0e5; border-color: #34434e; background: #172028; color-scheme: dark; }
body.overview-page .time-inputs label { color: #7f929e; }
body.overview-page .time-inputs > small { color: #657580; }
body.overview-page button.primary { border-color: #178b91; background: #178b91; }
body.overview-page main { min-height: calc(100vh - 166px); padding: 12px 18px 40px; background: #0b0f14; }
body.overview-page .loading,
body.overview-page .error-panel { color: #91a3ae; border-color: #28333d; background: #131a21; }

.command-statusline { min-height: 32px; display: flex; align-items: center; gap: 9px; margin-bottom: 8px; padding: 6px 10px; color: #7f929e; border: 1px solid #26323c; background: #10171e; font: 12px var(--font-mono); }
.command-statusline > div { display: flex; align-items: center; gap: 7px; color: #c8d7dd; }
.command-statusline > i { color: #51616c; font-style: normal; }
.command-statusline > strong { margin-left: auto; color: #4fd7cd; font-size: 12px; }
.command-kpis { display: grid; grid-template-columns: repeat(8, minmax(118px, 1fr)); gap: 7px; margin-bottom: 8px; }
.command-kpi { position: relative; min-width: 0; min-height: 92px; overflow: hidden; padding: 11px 12px 9px; border: 1px solid #2a3540; border-radius: 4px; background: #151c24; box-shadow: 0 8px 26px rgba(0, 0, 0, .18); }
.command-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #4dcfc5; }
.command-kpi header { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.command-kpi header span { overflow: hidden; color: #96a7b0; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.command-kpi header > i { width: 5px; height: 5px; border-radius: 50%; background: #4dcfc5; box-shadow: 0 0 9px currentColor; }
.command-kpi > strong { display: block; margin-top: 7px; color: #f3f7f9; font: 33px var(--font-mono); }
.command-kpi footer { display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: end; gap: 5px; margin-top: 7px; }
.command-kpi footer small { overflow: hidden; color: #5f707b; font: 9px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.command-kpi footer > div { height: 14px; display: flex; align-items: end; gap: 1px; }
.command-kpi footer i { min-width: 1px; flex: 1; background: #3fbab2; opacity: .72; }
.command-kpi.actionable { cursor: pointer; transition: border-color .14s ease, transform .14s ease, box-shadow .14s ease; }
.command-kpi.actionable:hover, .command-kpi.actionable:focus-visible { border-color: color-mix(in srgb, var(--page-accent) 60%, #9babb3); outline: none; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(28, 48, 59, .14); }
.command-kpi.red::before, .command-kpi.red header > i, .command-kpi.red footer i { background: #f05b62; }
.command-kpi.red { box-shadow: inset 0 0 24px rgba(240, 91, 98, .05), 0 8px 26px rgba(0, 0, 0, .18); }
.command-kpi.amber::before, .command-kpi.amber header > i, .command-kpi.amber footer i { background: #f3a545; }
.command-kpi.blue::before, .command-kpi.blue header > i, .command-kpi.blue footer i { background: #5a9df8; }
.command-kpi.violet::before, .command-kpi.violet header > i, .command-kpi.violet footer i { background: #b98be7; }
.command-kpi.green::before, .command-kpi.green header > i, .command-kpi.green footer i { background: #47c98b; }
.command-kpi.rust::before, .command-kpi.rust header > i, .command-kpi.rust footer i { background: #e3794f; }

.command-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.command-panel { min-width: 0; overflow: hidden; border: 1px solid #293540; border-radius: 5px; background: #141b22; box-shadow: 0 12px 32px rgba(0, 0, 0, .2); }
.command-panel-head { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid #27333d; background: #171f27; }
.command-panel-head > div { min-width: 0; }
.command-panel-head h2 { margin: 0 0 4px; color: #edf3f6; font-size: 16.5px; }
.command-panel-head span { color: #637580; font: 10.5px var(--font-mono); }
.command-panel-head button { min-height: 25px; padding: 4px 7px; color: #69d9d0; border-color: #33434e; background: #11181f; font-size: 10.5px; }
.command-panel-head button:hover { color: #fff; border-color: #4f6a76; background: #202b34; }
.signal-panel { grid-column: span 8; min-height: 300px; }
.priority-panel { grid-column: span 4; min-height: 300px; }
.queue-panel { grid-column: span 8; min-height: 322px; }
.attackers-panel { grid-column: span 4; min-height: 322px; }
.protocol-panel, .sources-panel, .rules-panel { grid-column: span 4; min-height: 306px; }
.analysis-panel { grid-column: 1 / -1; min-height: 220px; }

.signal-chart { position: relative; height: 190px; margin: 17px 14px 0; border-bottom: 1px solid #384651; }
.signal-grid-lines { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.signal-grid-lines i { width: 100%; border-top: 1px solid #202c35; }
.signal-columns { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(48, minmax(2px, 1fr)); align-items: end; gap: 3px; }
.signal-column { min-width: 0; height: 100%; display: flex; align-items: end; padding: 0; border: 0; border-radius: 0; background: transparent; }
.signal-column:hover { background: rgba(255, 255, 255, .025); }
.signal-column > span { width: 100%; height: var(--column-height); min-height: 2px; display: flex; flex-direction: column-reverse; overflow: hidden; background: #26323b; transition: filter .15s; }
.signal-column:hover > span { filter: brightness(1.35); box-shadow: 0 0 12px rgba(73, 207, 197, .22); }
.signal-column i { min-height: 1px; display: block; }
.signal-column .source-alert { background: #f05b62; }
.signal-column .source-pcap { background: #21c7c2; }
.signal-column .source-suricata { background: #f3a545; }
.signal-column .source-firewall { background: #e3794f; }
.signal-column .source-access { background: #5a9df8; }
.signal-column .source-mariadb { background: #b98be7; }
.signal-column .source-modsec { background: #ee72b7; }
.signal-column .source-auditd { background: #9aa7b2; }
.signal-column .source-dns { background: #57b77f; }
.signal-column .source-ftp { background: #d59a57; }
.signal-column .source-snmp { background: #6f8fd8; }
.signal-axis { display: flex; justify-content: space-between; margin: 6px 14px 0; color: #596b76; font: 10.5px var(--font-mono); }
.signal-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 11px 14px 0; color: #83959f; font: 10.5px var(--font-mono); }
.signal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.signal-legend i { width: 7px; height: 7px; }

.donut-layout { height: 246px; display: grid; grid-template-columns: minmax(130px, 1.05fr) minmax(110px, .95fr); align-items: center; gap: 4px; padding: 10px 12px; }
.donut-layout.compact { height: 256px; }
.donut-plot { position: relative; width: min(170px, 100%); aspect-ratio: 1; justify-self: center; }
.donut-plot svg { width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); filter: drop-shadow(0 0 7px rgba(69, 209, 197, .12)); }
.donut-plot > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-plot strong { color: #f1f6f8; font: 30px var(--font-mono); }
.donut-plot span { margin-top: 2px; color: #6f818c; font: 10.5px var(--font-mono); }
.donut-legend { display: grid; gap: 3px; }
.donut-legend button { min-width: 0; min-height: 31px; display: grid; grid-template-columns: 7px minmax(32px, 1fr) auto auto; align-items: center; gap: 6px; padding: 4px 5px; color: #a9b8c0; border-color: transparent; background: transparent; text-align: left; }
.donut-legend button:hover { border-color: #2f414b; background: #1b252d; }
.donut-legend button > i { width: 7px; height: 7px; }
.donut-legend button span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.donut-legend button b { color: #e2ebef; font: 12px var(--font-mono); }
.donut-legend button small { width: 34px; color: #657782; font: 10.5px var(--font-mono); text-align: right; }

.command-queue { display: grid; }
.command-queue > button { min-height: 45px; display: grid; grid-template-columns: 29px 70px minmax(0, 1fr) 52px 42px; align-items: center; gap: 8px; padding: 6px 10px; color: #b8c6cd; border: 0; border-bottom: 1px solid #232e37; border-radius: 0; background: transparent; text-align: left; }
.command-queue > button:hover { background: #1a252d; }
.queue-priority { width: 27px; height: 22px; display: grid; place-items: center; color: #0f151b; background: #798994; font: 10.5px var(--font-mono); font-style: normal; font-weight: 900; }
.queue-priority.p1 { color: #fff; background: #e9535b; box-shadow: 0 0 12px rgba(233, 83, 91, .28); }
.queue-priority.p2 { background: #e9a044; }
.queue-priority.p3 { background: #5a9df8; }
.queue-time { color: #637580; font: 10.5px var(--font-mono); }
.command-queue div { min-width: 0; }
.command-queue div b, .command-queue div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-queue div b { color: #dbe5e9; font-size: 12px; }
.command-queue div small { margin-top: 4px; color: #667985; font: 10.5px var(--font-mono); }
.command-queue > button > strong { color: #f3a545; font: 15px var(--font-mono); text-align: right; }
.command-queue > button > em { color: #f0b35d; border: 1px solid #5b472a; padding: 3px 4px; font: 9px var(--font-mono); font-style: normal; text-align: center; }

.command-bars { display: grid; gap: 3px; padding: 10px 12px; }
.command-bars button { min-height: 30px; display: grid; grid-template-columns: 22px minmax(74px, .8fr) 1.5fr 54px; align-items: center; gap: 7px; padding: 4px; color: #a8b6be; border-color: transparent; background: transparent; text-align: left; }
.command-bars button:hover { border-color: #2f414b; background: #1a242c; }
.command-bars button > i { color: #50616c; font: 10.5px var(--font-mono); font-style: normal; }
.command-bars button > span { overflow: hidden; font: 12px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.command-bars button > em { height: 5px; overflow: hidden; background: #26323a; }
.command-bars button > em b { display: block; height: 100%; background: #36beb5; box-shadow: 0 0 7px rgba(54, 190, 181, .3); }
.command-bars button > strong { color: #dae4e8; font: 12px var(--font-mono); text-align: right; }

.source-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 10px; background: #26313a; }
.source-matrix button { min-width: 0; min-height: 76px; display: grid; align-content: space-between; gap: 4px; padding: 8px; color: #8ea0aa; border: 0; border-radius: 0; background: #151d24; text-align: left; }
.source-matrix button:hover { background: #1c2830; }
.source-matrix button.offline { opacity: .62; background: #11171d; }
.source-matrix header { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 5px; }
.source-matrix header span { overflow: hidden; font: 10.5px var(--font-mono); text-overflow: ellipsis; }
.source-matrix header em { color: #657782; font: 9px var(--font-mono); font-style: normal; }
.source-matrix button.ready header em { color: #43c58a; }
.source-matrix strong { color: #e3ecef; font: 21px var(--font-mono); }
.source-matrix small { color: #536570; font: 9px var(--font-mono); }

.rule-pressure { display: grid; gap: 1px; padding: 8px 10px; }
.rule-pressure button { min-height: 41px; display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: 3px 8px; padding: 5px 6px; color: #a8b6be; border: 0; border-bottom: 1px solid #232e37; border-radius: 0; background: transparent; text-align: left; }
.rule-pressure button:hover { background: #1a252d; }
.rule-pressure header { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.rule-pressure header b { color: #e2eaee; font: 12px var(--font-mono); }
.rule-pressure header span { color: #667985; font: 9px var(--font-mono); }
.rule-pressure p { grid-column: 1; margin: 0; overflow: hidden; color: #71838e; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.rule-pressure button > div { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: 1fr 30px; align-items: center; gap: 5px; }
.rule-pressure button > div i { height: 4px; overflow: hidden; background: #27323b; }
.rule-pressure button > div i b { display: block; height: 100%; background: #e47950; }
.rule-pressure button > div strong { color: #dce6ea; font: 10.5px var(--font-mono); text-align: right; }
.rule-pressure button > small { grid-column: 2; color: #60727d; font: 9px var(--font-mono); text-align: right; }

.analysis-feed { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 10px; background: #26313a; }
.analysis-feed button { min-width: 0; min-height: 54px; display: grid; grid-template-columns: 4px 72px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px 9px; color: #a9b8c0; border: 0; border-radius: 0; background: #151d24; text-align: left; }
.analysis-feed button:hover { background: #1c2830; }
.analysis-state { width: 3px; height: 28px; background: #788894; }
.analysis-state.success { background: #45c98b; box-shadow: 0 0 8px rgba(69, 201, 139, .3); }
.analysis-state.danger { background: #f05b62; }
.analysis-state.warning { background: #f3a545; }
.analysis-feed time { color: #627580; font-size: 10.5px; }
.analysis-feed div { min-width: 0; }
.analysis-feed div b, .analysis-feed div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analysis-feed div b { color: #e0e9ed; font-size: 12px; }
.analysis-feed div small { margin-top: 4px; color: #667985; font: 10.5px var(--font-mono); }
.analysis-feed .badge { min-height: 18px; }
body.overview-page .empty { color: #697b86; }
body.overview-page .empty b { color: #9cadb6; }

.workspace-head { min-height: 66px; display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.workspace-head > div:first-child > span { color: var(--teal); font: 12px var(--font-mono); }
.workspace-head h2 { margin: 4px 0 3px; font-size: 30px; }
.workspace-head p { max-width: 850px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.workspace-actions { display: flex; align-items: center; gap: 7px; }
.data-note { color: var(--muted); font-size: 12px; }
.source-tabs { display: flex; gap: 5px; margin-bottom: 8px; overflow-x: auto; scrollbar-width: thin; }
.source-tabs button { min-width: 115px; display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 6px; color: var(--muted); background: #f7f9fa; text-align: left; white-space: nowrap; }
.source-tabs button.active { color: #143a49; border-color: #5c8798; background: #fff; box-shadow: inset 0 -2px #287d82; }
.source-tabs button span { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; }
.source-tabs button b { font: 12px var(--font-mono); }
.detection-source-tabs { display: flex; gap: 5px; margin: 0 0 10px; padding: 6px; overflow-x: auto; border: 1px solid var(--line); background: #fff; scrollbar-width: thin; }
.detection-source-tabs button { min-width: 104px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); background: #f5f7f8; white-space: nowrap; }
.detection-source-tabs button.active { color: #66420d; border-color: #c9984f; background: #fff5df; box-shadow: inset 0 -2px var(--page-accent); }
.detection-source-tabs button b { min-width: 24px; padding: 2px 5px; color: #6e5835; background: rgba(174, 114, 23, .1); font: 10.5px var(--font-mono); }
.compact-head { margin-top: 16px; }
.detection-findings .table-scroll { max-height: 640px; }
.attack-classifier { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 10px; margin-bottom: 8px; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, .72); }
.attack-classifier header { display: grid; align-content: center; gap: 3px; padding: 1px 5px; border-right: 1px solid var(--line); }
.attack-classifier header b, .attack-classifier header span { display: block; }
.attack-classifier header b { font-size: 15px; }
.attack-classifier header span, .attack-classifier header small { color: var(--muted); font-size: 10.5px; }
.attack-type-control { display: grid; grid-template-columns: auto minmax(220px, 420px); align-items: center; justify-content: start; gap: 6px 10px; }
.attack-type-control label { color: var(--muted); font-size: 12px; }
.attack-type-control select { min-height: 38px; width: 100%; padding: 7px 32px 7px 10px; border-color: var(--page-accent); background-color: #f8fafb; color: #143a49; font-size: 13.5px; }
.attack-type-control select:disabled { border-color: var(--line); color: var(--muted); }
.attack-classifier p { margin: auto 5px; color: var(--muted); font-size: 12px; }
.lens-toolbar { min-height: 54px; display: grid; grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(120px, 1fr)) auto auto; align-items: end; gap: 7px; margin-bottom: 8px; padding: 9px; border: 1px solid var(--line); background: #fff; }
.lens-toolbar.has-flow { grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(120px, 1fr)) auto auto; }
.lens-toolbar.compact { grid-template-columns: minmax(280px, 600px) auto; justify-content: start; }
.lens-toolbar label { display: grid; gap: 3px; color: var(--muted); font-size: 10.5px; }
.lens-toolbar input { min-height: 32px; font-size: 13.5px; }
.lens-toolbar .search { position: relative; display: block; }
.lens-toolbar .search span { position: absolute; top: 8px; left: 9px; color: var(--faint); }
.lens-toolbar .search input { padding-left: 27px; }
.single-workspace { min-width: 0; }
.multi-workspace-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; padding-bottom: 8px; scrollbar-gutter: stable; }
.multi-workspace { min-width: 100%; display: flex; align-items: stretch; }
.investigation-pane { min-width: 360px; flex: 0 0 auto; }
.investigation-pane.only-pane { min-width: 0; flex: 1 1 100%; }
.investigation-pane .grid-surface { height: 100%; }
.pane-divider { width: 12px; min-width: 12px; align-self: stretch; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: col-resize; touch-action: none; }
.pane-divider i { width: 3px; height: 54px; border-radius: 3px; background: #a9bbc3; transition: height .14s ease, background .14s ease; }
.pane-divider:hover i, .pane-divider:active i { height: 90px; background: var(--page-accent); }
.grid-surface { overflow: hidden; box-shadow: none; }
.grid-head { height: 58px; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); background: #f7f9fa; }
.grid-head-actions { display: flex; align-items: center; gap: 6px; }
.grid-head-actions > button { width: 29px; min-width: 29px; padding: 0; }
.pane-role { padding: 5px 7px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 10.5px; }
.pane-source-label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.pane-source-label select { width: 145px; min-height: 29px; font-size: 12px; }
.grid-head b, .grid-head span { display: block; }
.grid-head b { font-size: 16.5px; }
.grid-head span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.column-picker { position: relative; }
.column-picker summary { min-width: 68px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; cursor: pointer; font-size: 12px; list-style: none; }
.column-picker > div { position: absolute; z-index: 4; top: 31px; right: 0; width: 220px; max-height: 340px; overflow: auto; padding: 8px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.column-picker label { display: flex; align-items: center; gap: 7px; padding: 5px; font-size: 12px; }
.column-picker input { width: auto; min-height: 0; }
.table-scroll { width: 100%; max-height: 560px; overflow: auto; }
.data-table { width: 100%; min-width: 850px; border-collapse: separate; border-spacing: 0; }
.data-table th { position: sticky; top: 0; z-index: 2; height: 35px; padding: 7px 9px; color: #53616b; border-right: 1px solid #e1e5e8; border-bottom: 1px solid var(--line-strong); background: #edf1f3; font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; cursor: default; }
.data-table th[data-sort] { cursor: pointer; }
.data-table td { max-width: 310px; height: 39px; padding: 7px 9px; overflow: hidden; color: #26343e; border-right: 1px solid #e8ecee; border-bottom: 1px solid #e5e9eb; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.data-table tbody tr:nth-child(even) { background: #fafbfc; }
.data-table tbody tr:hover { background: #edf7f5; }
.data-table td > span:not(.badge), .data-table td > code { display: block; overflow: hidden; text-overflow: ellipsis; }
.data-table td b, .data-table td small { display: block; }
.data-table td small { margin-top: 3px; color: var(--faint); font-size: 10.5px; }
.data-table button { min-height: 25px; padding: 3px 7px; font-size: 12px; }
.row-actions { width: 68px; min-width: 68px; text-align: center; }
.row-actions button { width: 26px; min-width: 26px; margin-right: 2px; padding: 0; }
.row-actions button.selected { color: #fff; border-color: var(--teal); background: var(--teal); }
.signature-cell { min-width: 260px; white-space: normal !important; line-height: 1.35; }
.reason-cell { min-width: 220px; }
.count-badge { width: 30px; display: inline-grid !important; place-items: center; padding: 3px; color: #24414b; border-radius: 10px; background: #dcebee; font: 12px var(--font-mono); }
.decision-buttons { min-width: 138px; white-space: nowrap; }
.decision-buttons button { margin-right: 3px; }
.rule-state-button { min-width: 74px; font-weight: 700; }
.rule-state-button.active { color: #17634f; border-color: #7bc7b2; background: #e8f7f1; }
.rule-state-button.disabled { color: #9b3f36; border-color: #e2aaa3; background: #fff0ed; }
.rule-disabled-row > td { background: #fff8f6; color: #7b706d; }
.rule-disabled-row td:first-child b { text-decoration: line-through; }
.high-fp-rules { margin-bottom: 8px; border-left: 4px solid #cf6d62; }
.high-fp-toolbar { min-height: 42px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: #fff8f6; }
.high-fp-toolbar span { color: var(--muted); font-size: 12px; }
.high-fp-toolbar span b { margin-right: 3px; color: #9b3f36; font-size: 17px; }
.high-fp-toolbar > div { display: flex; align-items: center; gap: 8px; }
.high-fp-toolbar button { color: #8c332d; border-color: #d9a39d; background: #fff; font-weight: 700; }
.high-fp-toolbar button:hover:not(:disabled) { border-color: #c86e64; background: #fff0ed; }
.source-tag { display: inline-block !important; padding: 3px 6px; color: #25576b; border-radius: 3px; background: #dfecef; font: 12px var(--font-mono); }
.source-state { display: inline-flex; align-items: center; gap: 6px; font: 10.5px var(--font-mono); }
.pagination { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; color: var(--muted); font-size: 12px; }
.pagination button { width: 32px; margin-left: 4px; padding: 0; }
.pagination button.page-number.active { color: #fff; border-color: var(--page-accent); background: var(--page-accent); }
.evidence-tray { min-height: 72px; display: grid; grid-template-columns: 160px 1fr; gap: 14px; align-items: center; margin-top: 8px; padding: 9px 11px; border: 1px solid #b7d4d0; border-left: 4px solid var(--teal); background: #f4faf8; }
.evidence-tray > div:first-child span, .evidence-tray > div:first-child strong, .evidence-tray > div:first-child small { display: block; }
.evidence-tray > div:first-child span { color: var(--teal); font: 10.5px var(--font-mono); }
.evidence-tray > div:first-child strong { margin: 2px 0; font-size: 24px; }
.evidence-tray > div:first-child small { color: var(--muted); font-size: 10.5px; }
.evidence-chips { display: flex; gap: 5px; overflow-x: auto; }
.evidence-chips button { max-width: 210px; min-height: 40px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 5px; padding: 5px 7px; text-align: left; }
.evidence-chips button b { color: var(--teal); font-size: 10.5px; text-transform: uppercase; }
.evidence-chips button { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.evidence-chips button i { font-style: normal; }

.triage-summary { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 6px; margin-bottom: 8px; }
.triage-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); background: #fff; }
.triage-summary span { color: var(--muted); font-size: 12px; }
.triage-summary b { font: 22.5px var(--font-mono); }
.risk-policy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 10px; margin-bottom: 22px; }
.risk-policy-editor { min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.risk-policy-card { min-width: 0; display: grid; align-content: start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--surface-shadow); }
.risk-policy-card > header { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.risk-policy-card > header b, .risk-policy-card > header span { display: block; }
.risk-policy-card > header b { font-size: 15px; }
.risk-policy-card > header span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.risk-field-grid { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 8px; }
.risk-policy-card textarea { min-height: 82px; resize: vertical; }
.risk-policy-preview { position: sticky; top: 14px; display: grid; gap: 10px; padding: 14px; color: #dfe9ed; border: 1px solid #263945; border-radius: var(--radius-lg); background: #17232b; box-shadow: 0 16px 34px rgba(19, 33, 42, .18); }
.risk-policy-preview > header { display: grid; grid-template-columns: 1fr auto; align-items: end; padding-bottom: 11px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.risk-policy-preview > header span { grid-column: 1 / -1; color: #81cfc6; font: 10px var(--font-mono); letter-spacing: .8px; }
.risk-policy-preview > header b { font: 48px var(--font-mono); line-height: 1; }
.risk-policy-preview > header em { padding: 4px 6px; color: #17232b; background: #81cfc6; font: 10px var(--font-mono); font-style: normal; font-weight: 800; }
.risk-policy-preview .field { color: #9db0b9; }
.risk-policy-preview input, .risk-policy-preview select { color: #e8f0f3; border-color: #3b515e; background-color: #21313b; }
.risk-policy-preview ol { display: grid; gap: 5px; margin: 0; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); list-style: none; }
.risk-policy-preview li { display: flex; justify-content: space-between; gap: 8px; color: #91a4ad; font-size: 11px; }
.risk-policy-preview li b { color: #edf4f6; font-family: var(--font-mono); }
.risk-policy-preview > button { min-height: 38px; }
.risk-policy-preview > small { color: #80949e; font-size: 10.5px; line-height: 1.45; }
.risk-history-head { margin-top: 4px; }
.alert-status-tabs { display: flex; gap: 5px; margin-bottom: 8px; padding: 5px; border: 1px solid var(--line); background: #fff; }
.alert-status-tabs button { min-width: 112px; min-height: 34px; color: var(--muted); background: #f5f7f8; }
.alert-status-tabs button.active { color: #174e58; border-color: #79aaa8; background: #e8f4f2; }
.alert-status-tabs b { margin-left: 5px; font: 11px var(--font-mono); }
.alert-review .table-scroll { max-height: 640px; }
.bulk-disposition { min-height: 46px; display: flex; align-items: center; gap: 7px; margin-bottom: 8px; padding: 7px 10px; border: 1px solid #b7d4d0; background: #f4faf8; }
.bulk-disposition b { min-width: 90px; color: var(--teal); font-size: 13px; }
.alert-select { min-width: 70px; display: flex; align-items: center; gap: 7px; }
.alert-select input,
#select-all-alerts,
#select-all-pcap-events,
#select-all-findings,
#select-all-high-fp,
[data-high-fp-version] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0;
}
.data-table tr.bulk-selected { background: #e6f4f1 !important; }
.alert-review .data-table tr.disposition-true_positive { background: #edf8f2; }
.alert-review .data-table tr.disposition-false_positive { background: #fff0f1; }
.alert-review .data-table tr.disposition-benign { background: #f1f4f6; }
.alert-review .data-table tr.disposition-undetermined { background: #fff8e8; }
.alert-review .data-table tr.disposition-true_positive:hover { background: #e1f3e9; }
.alert-review .data-table tr.disposition-false_positive:hover { background: #fbe3e5; }
.alert-review .data-table tr.disposition-benign:hover { background: #e8edef; }
.alert-review .data-table tr.disposition-undetermined:hover { background: #f9efcf; }
.grid-surface .data-table tr.disposition-true_positive { background: #edf8f2; }
.grid-surface .data-table tr.disposition-false_positive { background: #fff0f1; }
.grid-surface .data-table tr.disposition-benign { background: #f1f4f6; }
.grid-surface .data-table tr.disposition-undetermined { background: #fff8e8; }
.incident-queue .data-table tr.needs-review { box-shadow: inset 4px 0 var(--amber); }
.incident-queue .data-table td:nth-child(3) { min-width: 260px; }
.incident-queue .data-table td:nth-child(6) { min-width: 150px; }
.incident-link { display: grid; gap: 3px; max-width: 100%; padding: 0; color: inherit; border: 0; background: transparent; text-align: left; }
.incident-link:hover b { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.incident-link small { color: var(--muted); }
.review-flag { color: #a76516 !important; font-weight: 700; }
.incident-detail-summary { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.incident-detail-summary-copy { min-width: 0; display: grid; gap: 5px; }
.incident-action-switch { min-width: 0; display: flex; align-items: center; justify-content: flex-end; }
.incident-action-options { display: flex; max-width: 0; overflow: hidden; opacity: 0; transform: translateX(12px); transition: max-width .26s ease, margin .26s ease, opacity .18s ease, transform .26s ease; pointer-events: none; }
.incident-action-switch.open .incident-action-options { max-width: 250px; margin-right: 7px; opacity: 1; transform: none; pointer-events: auto; }
.incident-action-options button { min-width: 48px; min-height: 34px; padding: 6px 9px; border-color: #cbd7da; border-radius: 0; background: #f8fafb; font-size: 11.5px; }
.incident-action-options button:first-child { border-radius: 7px 0 0 7px; }
.incident-action-options button:last-child { border-radius: 0 7px 7px 0; }
.incident-action-options button + button { margin-left: -1px; }
.incident-action-options button:hover, .incident-action-options button.active { position: relative; z-index: 1; color: #075d59; border-color: #79aaa6; background: #e9f4f2; }
.incident-action-toggle { min-width: 104px; min-height: 38px; display: grid; grid-template-columns: auto auto 15px; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px; color: #29444c; border-color: #9eb9bc; background: #f1f7f6; }
.drawer-summary .incident-action-toggle span { color: #61737a; font-size: 10px; font-weight: 700; }
.drawer-summary .incident-action-toggle b { color: #143b3d; font-size: 12px; line-height: 1; }
.incident-action-toggle .lucide { width: 14px; height: 14px; transition: transform .25s ease; }
.incident-action-switch.open .incident-action-toggle .lucide { transform: rotate(180deg); }
.incident-rule-context { margin-bottom: 12px; padding: 13px; color: var(--ink); border: 1px solid #a9c5c2; background: #f7fbfa; }
.incident-rule-context > header { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.incident-rule-context > header span { color: var(--teal); font: 10.5px var(--font-mono); letter-spacing: .07em; }
.incident-rule-context > header h3 { margin: 3px 0 0; color: #263d46; font-size: 17px; }
.incident-rule-context > header small { color: var(--muted); font: 10.5px var(--font-mono); }
.incident-rule-list { display: grid; gap: 7px; }
.incident-rule-card { overflow: hidden; border: 1px solid #c8d6d9; background: #fff; }
.incident-rule-card > header { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 9px 10px; border-bottom: 1px solid #d9e2e4; }
.incident-rule-card header div { display: grid; gap: 3px; min-width: 0; }
.incident-rule-card header b { color: #263d46; font-size: 12.5px; }
.incident-rule-card header small { color: var(--muted); font-size: 10.5px; }
.incident-rule-card header em { color: #936018; font: 9.5px var(--font-mono); font-style: normal; white-space: nowrap; }
.rule-set-membership { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px 10px; color: #61727a; font-size: 10px; }
.rule-set-membership span { padding: 3px 6px; border: 1px solid #c8d9d7; background: #edf5f3; }
.incident-rule-card pre { margin: 0; overflow-wrap: anywhere; padding: 9px 10px; color: #d7eee8; background: #172229; font-size: 10.5px; line-height: 1.55; white-space: pre-wrap; }
.rule-version-caution { margin: 8px 0; padding: 7px 9px; color: #5d6970; border-left: 3px solid var(--amber); background: #fffaf1; font-size: 10.5px; line-height: 1.5; }
.detector-method-list { display: grid; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.detector-method-list li { display: grid; grid-template-columns: 190px minmax(0, 1fr) 120px; gap: 8px; padding: 7px 9px; border: 1px solid #d3dfe1; background: #fff; }
.detector-method-list b { color: #28464f; font-size: 11px; }
.detector-method-list span { color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.detector-method-list em { color: var(--teal); font: 9.5px var(--font-mono); font-style: normal; text-align: right; }
.incident-verdict-guide { margin-bottom: 12px; padding: 13px; border: 1px solid #a9c5c2; background: #f7fbfa; }
.incident-verdict-guide > header { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.incident-verdict-guide > header span { color: var(--teal); font: 10.5px var(--font-mono); letter-spacing: .06em; }
.incident-verdict-guide > header h3 { margin: 3px 0 0; color: #263d46; font-size: 17px; }
.incident-verdict-guide > header small { color: var(--muted); font: 11px var(--font-mono); }
.evidence-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.evidence-check { min-width: 0; display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; gap: 7px; align-items: center; padding: 8px; border: 1px solid var(--line); background: #fff; }
.evidence-check .check-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.evidence-check .check-icon .lucide { width: 13px; height: 13px; }
.evidence-check div { display: grid; gap: 2px; min-width: 0; }
.evidence-check b { font-size: 11.5px; }
.evidence-check div span { overflow: hidden; color: var(--muted); font-size: 10.5px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.evidence-check em { font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.evidence-check.supported .check-icon { color: #166447; background: #e1f2e9; }
.evidence-check.supported em { color: #166447; }
.evidence-check.partial .check-icon { color: #976017; background: #f9ecd7; }
.evidence-check.partial em, .evidence-check.missing em { color: #976017; }
.evidence-check.missing .check-icon { color: #a23d43; background: #f8e3e5; }
.analyst-caution { margin: 8px 0 0; padding: 8px 10px; color: #5d6970; border-left: 3px solid var(--amber); background: #fffaf1; font-size: 11px; line-height: 1.5; }
.incident-progress > h3 { margin-bottom: 10px; font-size: 18px; }
.timeline-direction { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 7px 10px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 11px; }
.timeline-direction b, .timeline-direction em { color: var(--teal); font: 10px var(--font-mono); font-style: normal; }
.timeline-direction span { flex: 1; }
.incident-evidence-timeline { display: grid; }
.incident-evidence-item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding-bottom: 13px; }
.incident-evidence-item:not(:last-child)::before { content: ""; position: absolute; top: 26px; bottom: -3px; left: 23px; width: 2px; background: #9fc6c2; }
.timeline-marker { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: 4px; padding-top: 5px; }
.timeline-marker b { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; border: 4px solid #edf3f4; border-radius: 50%; background: var(--teal); font: 10px var(--font-mono); }
.timeline-marker span { color: #61717a; font: 9px var(--font-mono); }
.timeline-event { min-width: 0; overflow: hidden; border: 1px solid #cbd9de; background: #fff; box-shadow: 0 7px 18px rgba(22, 35, 43, .05); }
.timeline-event > summary { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; gap: 14px; align-items: center; padding: 13px 15px; background: #eef4f5; cursor: pointer; list-style: none; }
.timeline-event > summary::-webkit-details-marker { display: none; }
.timeline-event > summary:hover { background: #e7f0f1; }
.timeline-event > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; }
.timeline-event[open] > summary { border-bottom: 1px solid var(--line); }
.timeline-event-body { animation: timeline-body-reveal .18s ease-out; }
@keyframes timeline-body-reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.timeline-event-title { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 9px; align-items: center; min-width: 0; }
.timeline-event-title > span { color: var(--teal); font: 10.5px var(--font-mono); letter-spacing: .05em; }
.timeline-event-title > b { overflow: hidden; color: #263d46; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-event-title > small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.incident-evidence-item time { color: #52636b; font: 11px/1.45 var(--font-mono); text-align: right; }
.timeline-event-meta { display: flex; align-items: center; gap: 11px; }
.timeline-event-meta em { color: var(--teal); font: 10px var(--font-mono); font-style: normal; }
.timeline-event-meta span { display: inline-flex; align-items: center; gap: 3px; color: #61737a; font-size: 10px; font-weight: 700; white-space: nowrap; }
.timeline-event-meta .lucide { width: 14px; height: 14px; transition: transform .2s ease; }
.timeline-event[open] .timeline-event-meta .lucide { transform: rotate(180deg); }
.finding-context-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 16px; padding: 8px 15px; color: #5b6b72; border-bottom: 1px solid var(--line); background: #fafcfc; font-size: 11px; }
.finding-context-line > span { overflow-wrap: anywhere; }
.finding-context-line b { margin-right: 7px; color: #2b6f70; }
.evidence-trace { display: inline; color: #53656d; text-align: right; }
.evidence-trace b { color: #2b6f70; }
.finding-decision-basis { margin: 13px 15px 9px; padding: 12px 13px; border: 0; border-left: 4px solid var(--teal); background: #f3f8f8; }
.finding-decision-basis > header { display: flex; align-items: start; justify-content: space-between; gap: 9px; }
.finding-decision-basis header div { display: grid; gap: 5px; }
.finding-decision-basis header span { color: var(--teal); font-size: 10.5px; font-weight: 800; }
.finding-decision-basis header b { color: #28464f; font-size: 13.5px; line-height: 1.5; }
.finding-decision-basis header em { color: var(--teal); font: 10px var(--font-mono); font-style: normal; white-space: nowrap; }
.finding-decision-basis > p { margin: 7px 0 10px; color: #5c6c73; font-size: 11.5px; line-height: 1.5; }
.finding-decision-basis ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.finding-decision-basis li { min-width: 0; display: grid; gap: 3px; padding: 7px 8px; border-top: 2px solid #bdd5d2; background: #fff; }
.finding-decision-basis li span { overflow-wrap: anywhere; color: #687981; font-size: 10px; }
.finding-decision-basis li b { overflow-wrap: anywhere; color: #314951; font-size: 11.5px; }
.evidence-fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; padding: 0 15px 13px; }
.evidence-fact-grid.single { grid-template-columns: 1fr; }
.evidence-fact-grid section { min-width: 0; padding: 10px 0 3px; border: 0; border-top: 1px solid #d7e1e4; background: #fff; }
.evidence-fact-grid h4 { margin: 0 0 8px; color: #38515b; font-size: 12.5px; }
.evidence-fact-grid ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.evidence-fact-grid li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 9px; font-size: 11.5px; line-height: 1.5; }
.evidence-fact-grid li b { color: #60717a; font-weight: 700; }
.evidence-fact-grid li span { overflow-wrap: anywhere; white-space: pre-wrap; }
.evidence-facts-empty { margin: 0 15px 12px; padding: 9px 11px; color: #77858b; background: #f7f9fa; font-size: 11.5px; }
.evidence-raw { border-top: 1px solid var(--line); }
.evidence-raw summary { padding: 10px 15px; color: var(--muted); background: #f7f9fa; cursor: pointer; font-size: 11.5px; }
.evidence-raw pre { max-height: 440px; margin: 0; overflow: auto; padding: 14px 15px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; white-space: pre; }
.alert-review .data-table tr.bulk-selected, .grid-surface .data-table tr.bulk-selected { box-shadow: inset 4px 0 var(--teal), inset 0 0 0 1px #79aaa8; }
.badge { display: inline-flex; align-items: center; min-height: 20px; padding: 3px 7px; border-radius: 3px; font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.badge.success { color: #1b6848; background: #dff2e8; }
.badge.danger { color: #a93238; background: #f8e1e3; }
.badge.warning { color: #87540f; background: #f7ead6; }
.badge.pending { color: #58636c; background: #e7ecef; }
.badge.neutral { color: #53616b; background: #edf0f2; }
.tp { display: inline !important; color: var(--green); font-weight: 800; }
.fp { display: inline !important; color: var(--red); font-weight: 800; }
.rate-bar { min-width: 124px; display: grid; grid-template-columns: minmax(64px, 1fr) 48px; align-items: center; gap: 8px; }
.rate-bar span { font-variant-numeric: tabular-nums; text-align: right; }
.rate-bar i b.coverage { background: var(--blue); }
.muted { color: var(--faint); }
.result-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.case-layout { min-height: 560px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.case-list, .case-detail { border: 1px solid var(--line); background: #fff; }
.case-list { min-width: 0; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 7px; scrollbar-width: thin; }
.case-list > button { min-width: 290px; max-width: 390px; min-height: 64px; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 8px; border-color: transparent; background: #f7f9fa; text-align: left; }
.case-list > button.active { border-color: #83aaa9; background: #edf7f4; }
.case-list b, .case-list small { display: block; }
.case-list > button > span { min-width: 0; }
.case-list b { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.case-list small { margin-top: 5px; color: var(--muted); font-size: 10.5px; }
.case-detail { min-width: 0; padding: 17px; }
.case-detail > header { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.case-detail > header span:first-child { color: var(--teal); font: 12px var(--font-mono); }
.case-detail h2 { margin: 4px 0; font-size: 27px; }
.case-detail p { margin: 0; color: var(--muted); font-size: 13.5px; }
.case-meta, .lens-chips, .case-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.case-meta span { color: var(--muted); font-size: 12px; }
.lens-chips span { padding: 4px 6px; color: #245e62; border-radius: 3px; background: #e2f0ee; font: 12px var(--font-mono); }
.case-actions button { min-height: 28px; font-size: 12px; }
.case-evidence { margin-top: 18px; }
.case-evidence h3 { margin: 0 0 8px; font-size: 16.5px; }

.notice { min-height: 44px; display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 10px; margin-bottom: 12px; padding: 8px 12px; border: 1px solid var(--line); border-left-width: 4px; background: #fff; }
.notice b { font-size: 13.5px; }
.notice span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.notice.info { border-left-color: var(--blue); }
.notice.warning { border-left-color: var(--amber); }
.notice.danger { border-left-color: var(--red); }

.address-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.geo-pagination { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; margin-top: 9px; border-top: 1px solid var(--line); }
.geo-pagination button { min-width: 28px; height: 28px; padding: 0 7px; color: var(--muted); border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; font: 600 9px "IBM Plex Mono"; }
.geo-pagination button:hover:not(:disabled) { color: var(--page-accent); border-color: var(--line); background: var(--soft); }
.geo-pagination button.active { color: #fff; border-color: var(--page-accent); background: var(--page-accent); }
.geo-pagination button:disabled { opacity: .35; }
.geo-map-panel { margin-bottom: 12px; }
.geo-map { position: relative; min-height: 320px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 45%, #173f4a 0, #0d2731 70%); }
.geo-map svg { display: block; width: 100%; height: min(52vw, 460px); min-height: 320px; }
.geo-map svg { cursor: grab; touch-action: none; user-select: none; }
.geo-map svg.dragging { cursor: grabbing; }
.geo-controls { position: absolute; z-index: 4; top: 12px; right: 12px; display: flex; gap: 5px; }
.geo-controls button { min-width: 32px; height: 32px; padding: 0 9px; color: #e9f7f7; border: 1px solid #70929b; border-radius: var(--radius-md); background: #122f38e8; font: 600 13px "IBM Plex Mono"; }
.geo-popup { position: absolute; z-index: 5; width: 220px; padding: 12px; color: #eaf8f8; border: 1px solid #7ba2aa; border-radius: var(--radius-lg); background: #102a33f2; box-shadow: 0 10px 28px #0008; transform: translateX(-50%); pointer-events: auto; }
.geo-popup[hidden] { display: none; }
.geo-popup b, .geo-popup span, .geo-popup small { display: block; }
.geo-popup b { margin-bottom: 5px; font: 600 11px "IBM Plex Mono"; }
.geo-popup span, .geo-popup small { color: #bcd0d4; font-size: 12px; }
.geo-popup small { margin-top: 4px; }
.geo-popup button { position: absolute; top: 5px; right: 7px; color: #dcebed; border: 0; background: none; }
.geo-grid { fill: none; stroke: #86aeb7; stroke-width: .6; opacity: .16; }
.geo-land { fill: #527682; fill-rule: evenodd; stroke: #8dafb5; stroke-width: .45; opacity: .78; }
.geo-land path:hover { fill: #648b96; }
.geo-marker circle:first-child { fill: #ff725c; stroke: #ffd7c8; stroke-width: 1.5; opacity: .72; }
.geo-marker circle:last-of-type { fill: #fff; pointer-events: none; }
.geo-marker { cursor: help; filter: drop-shadow(0 0 5px #ff725c); }
.geo-marker:hover circle:first-child { fill: #ffc15c; opacity: .95; }
.geo-marker:focus { outline: none; }
.geo-marker:focus circle:first-child { fill: #ffc15c; stroke-width: 3; opacity: 1; }
.address-list { display: grid; }
.address-list > div { min-height: 38px; display: grid; grid-template-columns: minmax(120px, 1fr) 2fr 60px; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.address-list b { font: 13.5px var(--font-mono); }
.address-list span { color: var(--muted); font-size: 12px; }
.address-list strong { text-align: right; }

.file-analysis { margin-bottom: 12px; border: 1px solid var(--line); background: #fff; }
.file-analysis > header { display: flex; justify-content: space-between; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.file-analysis > header span:first-child { color: var(--teal); font: 11px var(--font-mono); letter-spacing: .06em; }
.file-analysis h3 { margin: 4px 0; font-size: 19px; }
.file-analysis header p { margin: 0; color: var(--muted); font-size: 12px; }
#file-analysis-form { display: grid; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.file-analysis-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px 10px; padding: 10px; border: 1px dashed #8eaeb7; background: #f3faf9; }
.file-analysis-upload label { min-width: 0; cursor: pointer; }
.file-analysis-upload label span, .file-analysis-upload label b, .file-analysis-upload label small { display: block; }
.file-analysis-upload label span { color: var(--teal); font: 10px var(--font-mono); }
.file-analysis-upload label b { margin-top: 3px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.file-analysis-upload label small, .file-analysis-upload > small { color: var(--muted); font-size: 10.5px; }
.file-analysis-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.file-analysis-upload > button { min-height: 34px; white-space: nowrap; }
.file-upload-progress { grid-column: 1 / -1; height: 4px; overflow: hidden; background: #dce7e8; }
.file-upload-progress i { display: block; width: 0; height: 100%; background: var(--teal); transition: width .15s linear; }
.file-analysis-upload > small { grid-column: 1 / -1; }
.file-analysis-selection { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.file-analysis-selection article { position: relative; min-width: 0; display: grid; gap: 3px; padding: 10px; border: 1px solid var(--line); background: #f7f9fa; }
.file-analysis-selection span { color: var(--muted); font: 10px var(--font-mono); }
.file-analysis-selection b, .file-analysis-selection small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-analysis-selection b { padding-right: 80px; font-size: 13px; }
.file-analysis-selection small { color: var(--muted); font-size: 11px; }
.file-analysis-selection button { position: absolute; top: 9px; right: 9px; min-height: 26px; padding: 3px 7px; font-size: 10px; }
.file-analysis-fields { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 8px; }
.file-analysis-fields label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.file-analysis-fields > button { min-height: 34px; white-space: nowrap; }
.file-analysis-jobs { max-height: 260px; overflow: auto; }
.file-analysis-job { min-height: 58px; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.file-analysis-job:last-child { border-bottom: 0; }
.file-analysis-job b, .file-analysis-job small, .file-analysis-job em { display: block; }
.file-analysis-job b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-analysis-job small { margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.file-analysis-job em { margin-top: 4px; color: var(--red); font-size: 11px; font-style: normal; }
.file-analysis-job > span { color: var(--muted); font-size: 11px; text-align: right; }
.file-analysis-job.running, .file-analysis-job.queued { background: #fffbf2; }
.file-analysis-job.failed { background: #fff7f7; }
.file-layout { min-height: 550px; display: grid; grid-template-columns: 340px minmax(0, 1fr); border: 1px solid var(--line); background: #fff; }
.file-list { max-height: 650px; overflow: auto; border-right: 1px solid var(--line); }
.file-list > button { width: 100%; min-height: 58px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; }
.file-ext { width: 36px; height: 30px; display: grid; place-items: center; color: #245b6c; background: #e1edf1; font: 10.5px var(--font-mono); text-transform: uppercase; }
.file-list b, .file-list small { display: block; }
.file-list b { font-size: 13.5px; }
.file-list small { max-width: 185px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.file-list em { color: var(--faint); font-size: 10.5px; font-style: normal; }
.file-preview { min-width: 0; padding: 14px; }
.file-preview > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.file-preview-actions { display: flex; align-items: center; gap: 6px; }
.file-preview header b, .file-preview header small { display: block; }
.file-preview header small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.file-preview pre { max-height: 560px; margin: 0; overflow: auto; padding: 13px; color: #d9e1e6; background: #182129; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; }

.health-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.engine-capture-panel { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding: 11px 14px; border: 1px solid var(--line); border-left: 4px solid #8da0aa; background: #fff; }
.engine-capture-panel.active { border-left-color: var(--teal); background: #f5fbfa; }
.engine-capture-panel > div { display: grid; grid-template-columns: 9px auto; align-items: center; gap: 2px 8px; }
.engine-capture-panel > div > i { grid-row: span 3; }
.engine-capture-panel span { color: var(--muted); font: 10px var(--font-mono); letter-spacing: .06em; }
.engine-capture-panel b { font-size: 17px; }
.engine-capture-panel small { color: var(--muted); font-size: 11px; }
.health-grid article { min-height: 100px; display: grid; grid-template-columns: 10px 1fr; align-content: center; gap: 3px 8px; padding: 14px; border: 1px solid var(--line); background: #fff; }
.health-grid i { grid-row: span 3; margin-top: 3px; }
.health-grid span { color: var(--muted); font-size: 12px; }
.health-grid b { font: 22.5px var(--font-mono); }
.health-grid small { overflow: hidden; color: var(--faint); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.engine-summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 12px; border: 1px solid var(--line); background: var(--line); }
.engine-summary-strip > div { min-height: 72px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 3px 10px; padding: 11px 13px; background: #fdfefe; }
.engine-summary-strip span, .engine-summary-strip small { color: var(--muted); font-size: 10.5px; }
.engine-summary-strip b { grid-row: span 2; font: 26px var(--font-mono); }
.system-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.engine-system-layout { align-items: start; }
.stage-list { display: grid; }
.stage-list > div { min-height: 35px; display: grid; grid-template-columns: 1fr auto 8px; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.stage-list span { font: 13.5px var(--font-mono); }
.stage-list b { color: var(--faint); font-size: 10.5px; }
.audit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.audit-list > div { min-height: 42px; display: grid; grid-template-columns: 125px 1fr 1fr auto; align-items: center; gap: 8px; padding: 7px 9px; background: #fff; }
.audit-list time, .audit-list small { color: var(--muted); font-size: 10.5px; }
.audit-list b, .audit-list span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.engine-stage-list { display: grid; gap: 1px; overflow-x: auto; background: var(--line); }
.engine-stage-row { min-width: 980px; min-height: 58px; display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(100px, 1fr) 80px repeat(6, minmax(70px, .75fr)); align-items: center; gap: 8px; padding: 7px 10px; background: #fff; }
.engine-stage-row header { min-width: 0; display: grid; grid-template-columns: 8px 1fr; gap: 2px 8px; align-items: center; }
.engine-stage-row header i { grid-row: span 2; }
.engine-stage-row header b { overflow: hidden; font: 13px var(--font-mono); text-overflow: ellipsis; }
.engine-stage-row header span { color: var(--muted); font-size: 9.5px; }
.engine-stage-row strong { text-align: right; font: 12px var(--font-mono); }
.engine-stage-row small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.engine-rate { height: 7px; overflow: hidden; border-radius: 99px; background: #e6ecee; }
.engine-rate i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2c827c, #5ab9a9); }
.engine-stage-row.stale .engine-rate i { background: #d59a57; }
.engine-history { height: 190px; display: flex; align-items: end; gap: 3px; padding: 12px 8px 0; border-bottom: 1px solid var(--line); background: linear-gradient(to top, rgba(52, 89, 99, .06) 1px, transparent 1px); background-size: 100% 25%; }
.engine-history > div { min-width: 3px; height: 100%; flex: 1; display: flex; align-items: end; }
.engine-history i { width: 100%; min-height: 3px; background: #438c88; opacity: .8; }
.engine-instance-list { display: grid; gap: 1px; background: var(--line); }
.engine-instance-list > div { min-height: 48px; display: grid; grid-template-columns: 8px minmax(100px, 1fr) minmax(90px, 1fr) 1.5fr auto; align-items: center; gap: 8px; padding: 7px 9px; background: #fff; }
.engine-instance-list b { font: 12px var(--font-mono); }
.engine-instance-list span, .engine-instance-list small { overflow: hidden; color: var(--muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.engine-instance-list em { color: #52726f; font-size: 10px; font-style: normal; }
.engine-component-table td:nth-child(1) { min-width: 220px; }
.engine-component-table td:nth-child(3) { max-width: 260px; color: var(--muted); font-size: 11px; }
.engine-component-table td:nth-child(5) { min-width: 190px; font-size: 10.5px; }

.empty { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 20px; color: var(--muted); text-align: center; }
.empty b { color: #4c5963; font-size: 16.5px; }
.empty span { max-width: 520px; font-size: 12px; line-height: 1.5; }

.drawer { position: fixed; z-index: 40; top: 0; right: -560px; width: min(560px, 94vw); height: 100vh; overflow: auto; border-left: 1px solid #2f3a44; background: #f2f5f6; box-shadow: -18px 0 40px rgba(15, 24, 31, .22); transition: right .2s ease; }
.drawer.open { right: 0; }
.drawer.alert-investigation { top: 50%; right: auto; left: 50%; width: min(1180px, 96vw); height: 90vh; border: 1px solid #52636d; border-radius: 8px; box-shadow: 0 28px 80px rgba(15, 24, 31, .38); opacity: 0; transform: translate(-50%, -48%); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.drawer.alert-investigation.open { right: auto; opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.drawer.alert-investigation #drawer-body { max-width: none; }
.drawer > header { position: sticky; top: 0; z-index: 2; height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: #fff; background: #1c252d; }
.drawer > header span { color: #8fd2c4; font: 12px var(--font-mono); }
.drawer h2 { margin: 4px 0 0; font-size: 24px; }
#drawer-body { padding: 13px; }
.drawer-summary { display: grid; gap: 5px; margin-bottom: 10px; padding: 13px; border-left: 4px solid var(--teal); background: #fff; }
.drawer-summary span, .drawer-summary small { color: var(--muted); font-size: 12px; }
.drawer-summary b { font-size: 16.5px; line-height: 1.4; }
.detail-list { display: grid; gap: 6px; }
.detail-list section { min-width: 0; border: 1px solid var(--line); background: #fff; }
.detail-list header { min-height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border-bottom: 1px solid var(--line); background: #edf1f3; }
.detail-list header b { font-size: 12px; }
.detail-list header button { width: 25px; min-width: 25px; min-height: 22px; padding: 0; }
.detail-list pre { max-height: 260px; margin: 0; overflow: auto; padding: 9px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.correlation-note { display: grid; gap: 4px; margin-bottom: 12px; padding: 11px; border: 1px solid #dfc494; background: #fff9ee; }
.correlation-note b { color: #8f5918; font-size: 15px; }
.correlation-note span, .correlation-note small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.evidence-detail { margin-top: 14px; }
.evidence-detail h3 { margin: 0 0 7px; color: #344b56; font-size: 15px; }
.record-detail { margin-bottom: 6px; border: 1px solid var(--line); background: #fff; }
.record-detail summary { display: grid; grid-template-columns: 115px minmax(0, 1fr) auto; gap: 7px; align-items: center; padding: 9px; cursor: pointer; }
.record-detail summary b, .record-detail summary span, .record-detail summary em { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.record-detail summary em { color: var(--muted); font-style: normal; }
.record-detail pre { max-height: 340px; margin: 0; overflow: auto; padding: 10px; border-top: 1px solid var(--line); background: #f7f9fa; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.alert-investigation .record-detail pre { max-height: 480px; white-space: pre; }
.record-empty { margin: 0; padding: 16px; color: var(--muted); border: 1px dashed var(--line-strong); background: #fff; font-size: 12px; text-align: center; }

.modal { width: min(620px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 24px 70px rgba(17, 27, 35, .28); }
.modal::backdrop { background: rgba(18, 28, 36, .55); }
.modal form > header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f4f7f8; }
.modal header span { color: var(--teal); font: 12px var(--font-mono); }
.modal h2 { margin: 4px 0 0; font-size: 25.5px; }
#modal-body { display: grid; gap: 10px; padding: 16px; }
.modal form > footer { display: flex; justify-content: end; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); }
.field { display: grid; gap: 5px; color: var(--muted); font-size: 13.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.form-note { margin: 0; padding: 9px; color: var(--muted); border-left: 3px solid var(--amber); background: #faf7f0; font-size: 12px; line-height: 1.5; }
.subject-box { display: grid; gap: 5px; padding: 10px; border: 1px solid var(--line); background: #f7f9fa; }
.subject-box b { font-size: 15px; }
.subject-box span { color: var(--muted); font-size: 12px; }

.toast { position: fixed; z-index: 80; right: 18px; bottom: 18px; max-width: min(420px, calc(100vw - 36px)); padding: 11px 14px; color: #fff; border-left: 4px solid #67c1a4; background: #202a32; box-shadow: var(--shadow); font-size: 13.5px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.danger { border-left-color: #e46a68; }

@media (max-width: 1450px) {
  .command-kpis { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1200px) {
  .rail { width: 68px; }
  .brand { padding: 0 15px; }
  .brand > div, .nav-group > p, .nav-group button b, .rail-status div { display: none; }
  .nav-group button { display: grid; grid-template-columns: 1fr; justify-items: center; padding: 6px; }
  .shell { margin-left: 68px; }
  .command-strip { grid-template-columns: repeat(3, 1fr); }
  .risk-policy-layout { grid-template-columns: 1fr; }
  .risk-policy-preview { position: static; grid-template-columns: repeat(3, 1fr); }
  .risk-policy-preview > header, .risk-policy-preview ol, .risk-policy-preview > button, .risk-policy-preview > small { grid-column: 1 / -1; }
  .command-strip > div:nth-child(3) { border-right: 0; }
  .command-strip > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .investigation-pane { min-width: 420px; }
  .health-grid { grid-template-columns: repeat(2, 1fr); }
  .engine-summary-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  body { padding-bottom: 60px; }
  .rail { inset: auto 0 0; width: 100%; height: 60px; flex-direction: row; border-top: 1px solid #34404a; }
  .brand, .rail-status { display: none; }
  #navigation { display: flex; gap: 3px; padding: 5px; overflow-x: auto; }
  .nav-group { display: contents; }
  .nav-group button { min-width: 48px; min-height: 48px; }
  .nav-group button span { background: transparent; }
  .shell { margin-left: 0; }
  .topbar { height: 66px; padding: 0 12px; }
  .page-identity > span, .health-chip, .top-actions time, .toggle-button span { display: none; }
  .time-console { min-height: 116px; padding: 9px 10px; }
  .time-head { align-items: start; }
  .time-head > div:first-child { display: grid; gap: 2px; }
  .time-head span { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .time-presets button { padding: 3px 5px; }
  .timeline { gap: 1px; }
  .time-inputs label { min-width: 0; flex: 1; }
  .time-inputs label { font-size: 0; }
  .time-inputs input { width: 100%; }
  .time-inputs > small { display: none; }
  main { padding: 12px 8px 28px; }
  .command-strip { grid-template-columns: repeat(2, 1fr); }
  .command-strip > div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .command-strip > div:nth-child(even) { border-right: 0 !important; }
  .overview-layout, .address-layout, .system-layout { grid-template-columns: 1fr; }
  .overview-layout > *, .system-layout > * { grid-column: 1 !important; }
  body.overview-page .topbar { height: 62px; }
  body.overview-page .time-console { min-height: 94px; }
  body.overview-page main { padding: 8px 7px 25px; }
  .command-statusline > span, .command-statusline > i { display: none; }
  .command-kpis { grid-template-columns: repeat(2, 1fr); }
  .command-grid { grid-template-columns: 1fr; }
  .command-panel { grid-column: 1 !important; }
  .signal-columns { gap: 1px; }
  .analysis-feed { grid-template-columns: 1fr; }
  .workspace-head { display: grid; }
  .workspace-actions { flex-wrap: wrap; }
  .lens-toolbar { grid-template-columns: 1fr 1fr; }
  .lens-toolbar .search { grid-column: 1 / -1; }
  .source-tabs button { min-width: 105px; }
  .evidence-tray { grid-template-columns: 1fr; }
  .triage-summary { grid-template-columns: 1fr 1fr; }
  .risk-policy-editor { grid-template-columns: 1fr; }
  .risk-field-grid { grid-template-columns: repeat(2, minmax(90px, 1fr)); }
  .risk-policy-preview { grid-template-columns: 1fr; }
  .risk-policy-preview > header, .risk-policy-preview ol, .risk-policy-preview > button, .risk-policy-preview > small { grid-column: 1; }
  .case-list > button { min-width: min(290px, calc(100vw - 48px)); }
  .file-analysis-selection { grid-template-columns: 1fr; }
  .file-analysis-upload { grid-template-columns: 1fr; }
  .file-analysis-upload > button, .file-upload-progress, .file-analysis-upload > small { grid-column: 1; }
  .file-analysis-fields { grid-template-columns: 1fr 1fr; }
  .file-analysis-fields > button { grid-column: 1 / -1; }
  .file-layout { grid-template-columns: 1fr; }
  .file-list { max-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
  .health-grid { grid-template-columns: 1fr 1fr; }
  .audit-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .top-actions .toggle-button { display: none; }
  .time-presets button:nth-child(1), .time-presets button:nth-child(3), .time-presets button:nth-child(5) { display: none; }
  .command-strip { grid-template-columns: 1fr 1fr; }
  .command-strip strong { font-size: 30px; }
  .command-kpi { min-height: 84px; padding: 9px 10px 8px; }
  .command-kpi > strong { font-size: 27px; }
  .command-kpi footer { grid-template-columns: 1fr 42px; }
  .command-statusline > strong { font-size: 10.5px; }
  .risk-field-grid { grid-template-columns: 1fr; }
  .command-queue > button { grid-template-columns: 27px minmax(0, 1fr) 42px; }
  .command-queue .queue-time, .command-queue > button > em { display: none; }
  .donut-layout { grid-template-columns: minmax(118px, .9fr) minmax(112px, 1.1fr); padding: 8px; }
  .donut-plot strong { font-size: 24px; }
  .source-matrix { grid-template-columns: repeat(3, 1fr); padding: 7px; }
  .source-matrix button { min-height: 68px; padding: 6px; }
  .health-grid { grid-template-columns: 1fr; }
  .engine-summary-strip { grid-template-columns: 1fr 1fr; }
  .lens-toolbar { grid-template-columns: 1fr; }
  .lens-toolbar .search { grid-column: auto; }
  .triage-summary { grid-template-columns: 1fr 1fr; }
}

/* UI system: glass controls, solid evidence */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --page-accent: #3bbeb7;
  --control-bg: rgba(248, 251, 252, .9);
  --control-bg-strong: rgba(245, 249, 250, .97);
  --control-line: rgba(65, 88, 101, .18);
  --control-highlight: rgba(255, 255, 255, .88);
  --surface-shadow: 0 10px 30px rgba(37, 57, 68, .08);
  --control-shadow: 0 18px 48px rgba(34, 53, 63, .14);
}

body[data-page="overview"] { --page-accent: #168f8b; }
body[data-page="investigate"] { --page-accent: #167f7b; }
body[data-page="alerts"] { --page-accent: #d04750; }
body[data-page="cases"] { --page-accent: #7c58b0; }
body[data-page="quality"] { --page-accent: #ae7217; }
body[data-page="ip-control"] { --page-accent: #b55332; }
body[data-page="data"] { --page-accent: #3276bf; }
body[data-page="files"] { --page-accent: #2b8055; }
body[data-page="geo"] { --page-accent: #158a98; }
body[data-page="sources"] { --page-accent: #25835b; }
body[data-page="system"] { --page-accent: #7558aa; }

html { background: #e8eef1; }
body { background: #e8eef1; }
button, .button, input, select, textarea { letter-spacing: 0; }
button:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--page-accent);
  outline-offset: 2px;
}
button .ui-icon, .button .ui-icon, button > .lucide, .button > .lucide {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  stroke-width: 1.75;
}
button:has(> .ui-icon), button:has(> .lucide), .button:has(> .ui-icon), .button:has(> .lucide) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rail {
  inset: 12px auto 12px 12px;
  width: 224px;
  overflow: hidden;
  border: 1px solid var(--control-line);
  border-radius: var(--radius-lg);
  background: var(--control-bg);
  color: #4c606b;
  box-shadow: var(--control-shadow), inset 0 1px var(--control-highlight);
  backdrop-filter: blur(28px) saturate(125%);
  -webkit-backdrop-filter: blur(28px) saturate(125%);
  transition: width .2s ease, transform .2s ease;
}
.rail::after {
  content: "";
  position: absolute;
  inset: 70px 0 auto;
  height: 1px;
  background: var(--control-highlight);
  opacity: .45;
  pointer-events: none;
}
.brand {
  position: relative;
  height: 70px;
  gap: 10px;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid rgba(97, 122, 135, .16);
}
.brand-mark,
body.overview-page .brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-md);
  background: #7fd5ca;
  box-shadow: inset 0 1px rgba(255, 255, 255, .38), 0 8px 20px rgba(49, 198, 187, .16);
}
.brand-mark b { position: relative; z-index: 1; font-size: 24px; }
.brand-mark > i {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(7, 21, 25, .45);
  border-radius: 50%;
  background: #0b2024;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .2);
}
.brand strong { font-size: 22.5px; letter-spacing: 1px; }
.brand small { margin-top: 4px; font-size: 10.5px; letter-spacing: 1.4px; }
.brand strong { color: #182832; }
.brand small { color: #657984; }
.rail-collapse {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  margin-left: auto;
  padding: 0;
  color: #617681;
  border-color: transparent;
  border-radius: var(--radius-md);
  background: transparent;
}
.rail-collapse:hover { color: #173743; border-color: var(--control-line); background: rgba(31, 83, 99, .07); }
.rail-collapse .lucide { width: 15px; height: 15px; }

#navigation {
  padding: 13px 9px 10px;
  scrollbar-color: rgba(109, 135, 148, .28) transparent;
}
.nav-group { gap: 3px; margin-bottom: 12px; }
.nav-group > p {
  height: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 9px 5px;
  color: #71838d;
  font: 10.5px var(--font-mono);
  letter-spacing: .7px;
}
.nav-group > p i { height: 1px; flex: 1; background: rgba(75, 102, 115, .16); }
.nav-group button {
  position: relative;
  min-height: 39px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  justify-content: stretch;
  justify-items: stretch;
  gap: 7px;
  padding: 5px 8px;
  overflow: hidden;
  color: #536975;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  transition: color .14s ease, background .14s ease, border-color .14s ease, transform .14s ease;
}
.nav-group button::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 2px;
  border-radius: 2px;
  background: var(--page-accent);
  box-shadow: 0 0 10px var(--page-accent);
  opacity: 0;
  transform: scaleY(.4);
  transition: opacity .14s ease, transform .18s ease;
}
.nav-group button .nav-icon {
  width: 17px;
  height: 17px;
  justify-self: center;
  color: #657b86;
  transition: color .14s ease, transform .18s ease;
}
.nav-group button b { width: 100%; justify-self: start; overflow: hidden; font-size: 15px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.nav-group button:hover { color: #183844; border-color: rgba(63, 104, 120, .15); background: rgba(67, 126, 143, .07); transform: translateX(1px); }
.nav-group button:hover .nav-icon { color: #2f6574; transform: scale(1.05); }
.nav-group button.active {
  color: #142f39;
  border-color: color-mix(in srgb, var(--page-accent) 34%, #b8c6cc);
  background: color-mix(in srgb, var(--page-accent) 10%, #fff);
  box-shadow: inset 0 1px #fff, 0 7px 18px rgba(35, 64, 75, .09);
}
.nav-group button.active::before { opacity: 1; transform: scaleY(1); }
.nav-group button.active .nav-icon { color: var(--page-accent); filter: drop-shadow(0 0 5px rgba(72, 211, 200, .2)); }
.nav-badge {
  width: fit-content;
  min-width: 18px;
  justify-self: end;
  padding: 2px 5px;
  color: #415b67;
  border: 1px solid rgba(73, 99, 111, .16);
  border-radius: 8px;
  background: rgba(94, 126, 141, .1);
  font: 10.5px var(--font-mono);
  font-style: normal;
  text-align: center;
}
[data-page="alerts"] .nav-badge { color: #ae3038; border-color: rgba(211, 68, 77, .26); background: rgba(233, 92, 99, .1); }

.rail-status {
  min-height: 126px;
  display: grid;
  gap: 3px;
  padding: 9px;
  border-top: 1px solid rgba(116, 141, 153, .13);
  background: rgba(222, 231, 235, .38);
}
.rail-status > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 5px 3px;
  color: #6b7e88;
  font: 9px var(--font-mono);
  letter-spacing: .6px;
}
.rail-status > p b { color: #48c991; font-size: 9px; }
.rail-status > button {
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  color: #536a75;
  border-color: transparent;
  background: transparent;
  text-align: left;
}
.rail-status > button:hover { color: #173844; border-color: rgba(79, 112, 126, .16); background: rgba(73, 125, 143, .07); }
.rail-health-icon { position: relative; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(91, 119, 131, .16); border-radius: var(--radius-md); background: rgba(255, 255, 255, .62); }
.rail-health-icon > .lucide { width: 14px; height: 14px; color: #607b87; }
.rail-health-icon .status-dot { position: absolute; right: -1px; bottom: -1px; width: 6px; height: 6px; border: 1px solid #eef4f6; }
.rail-status button > span:nth-child(2) { min-width: 0; }
.rail-status button b, .rail-status button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-status button b { color: #304a56; font-size: 12px; }
.rail-status button small { margin-top: 3px; color: #778891; font: 9px var(--font-mono); }
.rail-health-arrow { width: 12px; height: 12px; color: #71858e; }

.shell {
  min-height: 100vh;
  margin-left: 248px;
  padding-top: 12px;
  background: var(--canvas);
  transition: margin-left .2s ease;
}
.control-deck {
  position: relative;
  z-index: 15;
  margin: 0 16px 0 0;
  overflow: hidden;
  color: #263b45;
  border: 1px solid var(--control-line);
  border-radius: var(--radius-lg);
  background: var(--control-bg);
  box-shadow: var(--control-shadow), inset 0 1px var(--control-highlight);
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
}
.topbar, body.overview-page .topbar {
  height: 64px;
  padding: 0 16px;
  color: #1a303a;
  border-bottom: 1px solid rgba(133, 160, 173, .13);
  background: transparent;
}
.page-identity p {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 4px;
  color: #6c808a;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1px;
}
.page-identity p .lucide { width: 9px; height: 9px; }
.page-identity p span { color: var(--page-accent); }
.page-identity h1, body.overview-page .page-identity h1 {
  margin: 0;
  color: #152a34;
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: .07em;
}
.top-actions { gap: 7px; }
.health-chip, body.overview-page .health-chip {
  min-height: 29px;
  color: #3f5864;
  border-color: rgba(76, 105, 118, .17);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .64);
  box-shadow: inset 0 1px #fff;
}
.top-actions time, body.overview-page .top-actions time { color: #697d87; }
.top-actions .icon-button, body.overview-page .top-actions .icon-button,
.top-actions .toggle-button, body.overview-page .top-actions .toggle-button {
  color: #526b77;
  border-color: rgba(74, 105, 119, .18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 1px #fff;
}
.top-actions .icon-button:hover, body.overview-page .top-actions .icon-button:hover,
.top-actions .toggle-button:hover, body.overview-page .top-actions .toggle-button:hover { color: #173945; border-color: rgba(65, 105, 121, .3); background: #fff; }
.icon-button .lucide { width: 16px; height: 16px; }

.time-console, body.overview-page .time-console {
  min-height: 100px;
  padding: 8px 16px 9px;
  color: #475f6a;
  border-bottom: 0;
  background: rgba(225, 233, 237, .42);
}
.time-head > div:first-child { gap: 14px; }
.time-head b, body.overview-page .time-head b { display: inline-flex; align-items: center; gap: 5px; color: var(--page-accent); font-size: 11px; font-weight: 600; line-height: 1.2; letter-spacing: .05em; }
.time-head b .lucide { width: 11px; height: 11px; }
.time-head span, body.overview-page .time-head span { color: #697e88; font-size: 11px; line-height: 1.2; letter-spacing: .015em; }
.time-presets button, body.overview-page .time-presets button { border-radius: var(--radius-sm); }
.time-presets button.active, body.overview-page .time-presets button.active { color: #145a5d; border-color: rgba(37, 132, 136, .3); background: rgba(59, 190, 183, .11); box-shadow: inset 0 1px #fff; }
.time-presets button.live { display: inline-flex; align-items: center; gap: 4px; }
.time-presets button.live .lucide { width: 10px; height: 10px; }
.timeline, body.overview-page .timeline { height: 104px; margin: 8px 0 0; }
.time-bucket, body.overview-page .time-bucket { min-height: 91px; background: transparent; }
.time-bucket i, body.overview-page .time-bucket i { background: color-mix(in srgb, var(--page-accent) 64%, #395565); }
.time-inputs > .lucide { width: 12px; height: 12px; color: #607681; }
.time-inputs input, body.overview-page .time-inputs input { color: #253d48; border-color: rgba(72, 102, 116, .2); background: rgba(255, 255, 255, .72); color-scheme: light; }
.time-inputs button { display: inline-flex; align-items: center; gap: 5px; }
.time-inputs button .lucide { width: 12px; height: 12px; }

main, body.overview-page main {
  min-height: calc(100vh - 188px);
  padding: 14px 16px 50px 0;
}
body:not(.overview-page) main { color: var(--ink); background: var(--canvas); }
body.overview-page .shell { background: #e8eef1; }

/* Situation room light operations palette */
body.overview-page { color: #263a44; background: #e8eef1; }
body.overview-page .rail { color: #4c606b; border-color: var(--control-line); background: var(--control-bg); }
body.overview-page .brand { border-bottom-color: rgba(75, 102, 115, .16); }
body.overview-page .brand-mark { color: #0b3031; background: #7fd5ca; box-shadow: inset 0 1px #dffffa, 0 8px 20px rgba(36, 139, 132, .16); }
body.overview-page .nav-group button.active { color: #142f39; border-color: color-mix(in srgb, var(--page-accent) 34%, #b8c6cc); background: color-mix(in srgb, var(--page-accent) 10%, #fff); box-shadow: inset 0 1px #fff, 0 7px 18px rgba(35, 64, 75, .09); }
body.overview-page .topbar { color: #1a303a; border-bottom-color: rgba(74, 101, 113, .14); background: transparent; }
body.overview-page .page-identity h1 { color: #152a34; }
body.overview-page .top-actions time { color: #697d87; }
body.overview-page .health-chip { color: #3f5864; border-color: rgba(76, 105, 118, .17); background: rgba(255, 255, 255, .64); }
body.overview-page .icon-button,
body.overview-page .toggle-button { color: #526b77; border-color: rgba(74, 105, 119, .18); background: rgba(255, 255, 255, .62); }
body.overview-page .icon-button:hover,
body.overview-page .toggle-button:hover { color: #173945; border-color: rgba(65, 105, 121, .3); background: #fff; }
body.overview-page .time-console { color: #475f6a; border-bottom-color: transparent; background: rgba(225, 233, 237, .42); }
body.overview-page .time-head span { color: #697e88; }
body.overview-page .time-presets button { color: #5e737e; }
body.overview-page .time-presets button.active { color: #145a5d; border-color: rgba(37, 132, 136, .3); background: rgba(59, 190, 183, .11); }
body.overview-page .time-presets button.live { color: #c93943; }
body.overview-page .time-inputs input { color: #253d48; border-color: rgba(72, 102, 116, .2); background: rgba(255, 255, 255, .72); color-scheme: light; }
body.overview-page .time-inputs label { color: #617782; }
body.overview-page .time-inputs > small { color: #778a93; }
body.overview-page button.primary { border-color: #16817f; background: #16817f; }
body.overview-page main { color: #263a44; background: #e8eef1; }
body.overview-page .loading,
body.overview-page .error-panel { color: #5f747e; border-color: #cfdae0; background: #fff; }

.command-statusline { color: #687d87; border-color: #cfdade; background: rgba(255, 255, 255, .76); box-shadow: inset 0 1px #fff; }
.command-statusline > div { color: #2e4854; }
.command-statusline > i { color: #8a9aa2; }
.command-statusline > strong { color: #147c78; }
.command-kpi { border-color: #d2dce1; background: #fff; box-shadow: 0 8px 22px rgba(37, 57, 68, .08), inset 0 1px #fff; }
.command-kpi header span { color: #566c77; }
.command-kpi > strong { color: #162b35; }
.command-kpi footer small { color: #7c8e97; }
.command-kpi footer i { background: #168f8b; opacity: .8; }
.command-kpi.red { box-shadow: inset 0 0 24px rgba(208, 71, 80, .035), 0 8px 22px rgba(37, 57, 68, .08); }
.command-kpi.red::before, .command-kpi.red header > i, .command-kpi.red footer i { background: #d94850; }
.command-kpi.amber::before, .command-kpi.amber header > i, .command-kpi.amber footer i { background: #d88920; }
.command-kpi.blue::before, .command-kpi.blue header > i, .command-kpi.blue footer i { background: #397fcb; }
.command-kpi.violet::before, .command-kpi.violet header > i, .command-kpi.violet footer i { background: #895bbd; }
.command-kpi.green::before, .command-kpi.green header > i, .command-kpi.green footer i { background: #258a61; }
.command-kpi.rust::before, .command-kpi.rust header > i, .command-kpi.rust footer i { background: #c75f3c; }

.command-panel { border-color: #ced9de; background: #fff; box-shadow: 0 10px 28px rgba(37, 57, 68, .08); }
.command-panel-head { border-bottom-color: #dbe3e7; background: #f5f8f9; }
.command-panel-head h2 { color: #1a303a; }
.command-panel-head span { color: #73858e; }
.command-panel-head button { color: #176e6c; border-color: #c8d7db; background: #fff; }
.command-panel-head button:hover { color: #115b59; border-color: #8fb5ba; background: #f2f8f8; }
.signal-chart { border-bottom-color: #c9d5da; }
.signal-grid-lines i { border-top-color: #e6ecef; }
.signal-column:hover { background: rgba(31, 114, 119, .045); }
.signal-column > span { background: #dce5e9; }
.signal-column:hover > span { filter: saturate(1.05) brightness(.96); box-shadow: 0 0 0 1px rgba(22, 143, 139, .16); }
.signal-axis { color: #7d8e96; }
.signal-legend { color: #526973; }
.donut-plot svg { filter: drop-shadow(0 3px 5px rgba(36, 64, 75, .09)); }
.donut-plot strong { color: #162b35; }
.donut-plot span { color: #73858e; }
.donut-legend button { color: #526873; }
.donut-legend button:hover { border-color: #d0dce0; background: #f4f8f9; }
.donut-legend button b { color: #223a45; }
.donut-legend button small { color: #768992; }

.command-queue > button { color: #465d68; border-bottom-color: #e2e8eb; }
.command-queue > button:hover { background: #f3f7f8; }
.queue-priority { color: #fff; background: #667d88; }
.queue-time { color: #778a93; }
.command-queue div b { color: #233b46; }
.command-queue div small { color: #758892; }
.command-queue > button > strong { color: #b66b12; }
.command-queue > button > em { color: #9a5e16; border-color: #e1caa9; background: #fff9ef; }
.command-bars button { color: #465e69; }
.command-bars button:hover { border-color: #d0dce0; background: #f3f7f8; }
.command-bars button > i { color: #80919a; }
.command-bars button > em { background: #e0e8eb; }
.command-bars button > em b { background: #168f8b; box-shadow: none; }
.command-bars button > strong { color: #203944; }

.source-matrix { background: #d8e1e5; }
.source-matrix button { color: #516873; background: #fff; }
.source-matrix button:hover { background: #f1f7f7; }
.source-matrix button.offline { background: #f1f4f5; }
.source-matrix header em { color: #768993; }
.source-matrix button.ready header em { color: #237e59; }
.source-matrix strong { color: #1b333e; }
.source-matrix small { color: #7b8d96; }
.rule-pressure button { color: #4c636e; border-bottom-color: #e2e8eb; }
.rule-pressure button:hover { background: #f3f7f8; }
.rule-pressure header b { color: #203944; }
.rule-pressure header span, .rule-pressure p { color: #748892; }
.rule-pressure button > div i { background: #e1e8eb; }
.rule-pressure button > div strong { color: #314b57; }
.rule-pressure button > small { color: #7b8d96; }

.analysis-feed { background: #d8e1e5; }
.analysis-feed button { color: #4d646f; background: #fff; }
.analysis-feed button:hover { background: #f1f7f7; }
.analysis-feed time { color: #778a93; }
.analysis-feed div b { color: #203944; }
.analysis-feed div small { color: #758892; }
body.overview-page .empty { color: #73868f; }
body.overview-page .empty b { color: #3e5661; }

.workspace-head {
  position: relative;
  min-height: 56px;
  align-items: center;
  margin: 0 0 10px;
  padding: 4px 3px 10px 12px;
  border-bottom: 1px solid rgba(105, 126, 138, .18);
}
.workspace-head::before {
  content: "";
  position: absolute;
  inset: 9px auto 15px 0;
  width: 3px;
  border-radius: 2px;
  background: var(--page-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--page-accent) 28%, transparent);
}
.workspace-head > div:first-child > span { color: var(--page-accent); font-size: 10.5px; }
.workspace-head h2 { margin: 3px 0 0; font-size: 27px; }
.workspace-head p { display: none; }
.workspace-actions button, .workspace-actions .button { min-height: 31px; }
.explorer-actions button, .explorer-actions .button {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 13.5px;
  line-height: 1.2;
}
.explorer-actions button .lucide, .explorer-actions .button .lucide { width: 13px; height: 13px; }
.surface, .grid-surface, .case-list, .case-detail, .file-layout {
  border-color: rgba(128, 148, 159, .24);
  border-radius: var(--radius-lg);
  box-shadow: var(--surface-shadow), inset 0 1px rgba(255, 255, 255, .6);
}
.grid-surface { box-shadow: var(--surface-shadow), inset 0 2px var(--page-accent); }
.grid-head { min-height: 48px; padding: 8px 12px; background: rgba(236, 241, 243, .86); }
.lens-toolbar {
  border-color: rgba(128, 148, 159, .25);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px rgba(22, 35, 43, .05), inset 0 1px #fff;
}
.lens-toolbar .search span { display: grid; place-items: center; }
.lens-toolbar .search .lucide { width: 13px; height: 13px; }
.source-tabs { gap: 4px; padding: 2px; }
.source-tabs button { border-radius: var(--radius-md); }
.source-tabs button.active { border-color: color-mix(in srgb, var(--page-accent) 55%, #98aab3); box-shadow: inset 0 -2px var(--page-accent), 0 5px 12px rgba(24, 43, 52, .07); }
.data-table th { height: 37px; background: #edf2f4; }
.data-table td { height: 41px; }
.data-table tbody tr { transition: background .12s ease, box-shadow .12s ease; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--page-accent) 7%, #fff); box-shadow: inset 3px 0 var(--page-accent); }
.data-table tbody tr.report-selected {
  background: color-mix(in srgb, var(--page-accent) 11%, #fff) !important;
  box-shadow: inset 4px 0 var(--page-accent), inset 0 0 0 1px color-mix(in srgb, var(--page-accent) 24%, #dfe6e9);
}
.row-actions button, .data-table td:first-child > button, .detail-list header button, .pagination button {
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-sm);
}
.row-actions button .lucide, .data-table td:first-child > button .lucide { width: 13px; height: 13px; }
.evidence-chips button { grid-template-columns: auto minmax(0, 1fr) auto; }
.evidence-chips button > span { overflow: hidden; text-overflow: ellipsis; }
.evidence-chips button > .lucide { width: 12px; height: 12px; }
.evidence-tray:has(.evidence-chips:empty) { min-height: 56px; grid-template-columns: 1fr; }
.evidence-tray:has(.evidence-chips:empty) .evidence-chips { display: none; }
.empty > .lucide { width: 22px; height: 22px; color: color-mix(in srgb, var(--page-accent) 55%, #8797a0); }
.empty > b { margin-top: 2px; }

.drawer {
  top: 12px;
  right: calc(-1 * min(580px, 94vw) - 28px);
  bottom: 12px;
  width: min(580px, calc(100vw - 24px));
  height: auto;
  border: 1px solid rgba(191, 211, 220, .28);
  border-radius: var(--radius-lg);
  background: rgba(238, 243, 245, .9);
  box-shadow: -20px 0 52px rgba(4, 11, 16, .28), inset 0 1px rgba(255, 255, 255, .65);
  backdrop-filter: blur(30px) saturate(120%);
  -webkit-backdrop-filter: blur(30px) saturate(120%);
}
.drawer.open { right: 12px; }
.drawer > header {
  height: 70px;
  border-radius: 7px 7px 0 0;
  background: rgba(18, 27, 34, .94);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px);
}
.drawer > header span { color: var(--page-accent); }
.drawer-summary { border-left-color: var(--page-accent); border-radius: var(--radius-md); box-shadow: var(--surface-shadow); }
.detail-list section { overflow: hidden; border-radius: var(--radius-md); box-shadow: 0 5px 14px rgba(22, 35, 43, .045); }
.drawer.evidence-workspace {
  top: 12px;
  right: 12px;
  bottom: 12px;
  left: 12px;
  width: auto;
  height: auto;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.drawer.evidence-workspace.open { right: 12px; opacity: 1; transform: none; pointer-events: auto; }
.drawer.evidence-workspace #drawer-body { max-width: none; padding: 16px; }
.analysis-evidence-workspace { display: grid; gap: 12px; }
.evidence-workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); background: #fff; }
.evidence-workspace-head span { color: var(--page-accent); font: 10px var(--font-mono); }
.evidence-workspace-head h3 { margin: 3px 0; font-size: 25px; }
.evidence-workspace-head p { margin: 0; color: var(--muted); font-size: 12px; }
.evidence-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.evidence-disposition { display: flex; align-items: center; gap: 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.evidence-disposition > span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font: 11px var(--font-sans); font-weight: 800; }
.evidence-disposition button { min-height: 32px; padding: 6px 12px; font-weight: 850; }
.evidence-disposition .decision-true { border-color: #77cbbb; color: #0b6c5c; background: #e8f8f4; }
.evidence-disposition .decision-false { border-color: #e9a4a4; color: #9c3030; background: #fff0f0; }
.evidence-judgment-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.evidence-judgment-grid article { min-width: 0; padding: 12px; border: 1px solid #cbd9de; border-top: 3px solid var(--page-accent); background: #fff; }
.evidence-judgment-grid article.caution { border-top-color: #d89536; background: #fffaf1; }
.evidence-judgment-grid span, .evidence-judgment-grid b { display: block; }
.evidence-judgment-grid span { margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 800; }
.evidence-judgment-grid b { font-size: 13px; line-height: 1.5; }
.evidence-pivots { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 7px 10px; border: 1px solid var(--line); background: #f8fbfb; }
.evidence-pivots > b { margin-right: 5px; color: #425962; font-size: 12px; }
.evidence-pivots button { min-height: 32px; }
.evidence-records { min-width: 0; border: 1px solid var(--line); background: #fff; }
.evidence-records > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.evidence-records > header span { color: var(--page-accent); font: 9px var(--font-mono); }
.evidence-records > header h3 { margin: 2px 0 0; font-size: 17px; }
.evidence-records > header small { color: var(--muted); }
.primary-evidence { border-top: 3px solid var(--page-accent); box-shadow: 0 7px 22px rgba(28, 62, 74, .07); }
.primary-evidence > header { background: linear-gradient(90deg, rgba(18, 143, 123, .07), #fff 34%); }
.evidence-role { display: inline-flex; min-width: max-content; align-items: center; padding: 4px 7px; border: 1px solid #cbd8dd; border-radius: 999px; color: #425962; background: #f5f8f9; font-size: 10px; font-weight: 850; }
.evidence-role.primary { border-color: #72cabb; color: #0c6b5c; background: #e8f8f4; }
.evidence-role.support { border-color: #9bc9ef; color: #28618b; background: #eff7fd; }
.evidence-role.corroboration { border-color: #d2c1ed; color: #674794; background: #f7f2fd; }
.evidence-role.anchor { border-color: #efca78; color: #7c5912; background: #fff8e7; }
.evidence-role.missing { border-color: #efaaaa; color: #9e3434; background: #fff0f0; }
.evidence-record-table { min-width: 1320px; }
.evidence-record-table td { vertical-align: top; }
.evidence-identity-cell, .context-record-id { white-space: nowrap; }
.evidence-identity-cell button, .context-record-id button { display: block; min-height: 25px; margin-top: 5px; padding: 2px 7px; color: #315e72; border-color: #b9ccd5; background: #f7fafb; font-size: 10px; }
.evidence-mechanism { border: 1px solid var(--line); background: #fff; }
.evidence-mechanism > summary { padding: 11px 13px; cursor: pointer; font-weight: 800; }
.evidence-mechanism > div { padding: 0 12px 12px; }
.evidence-mechanism > div > pre { max-height: 420px; overflow: auto; padding: 10px; background: #f6f8f9; font-size: 10px; }
.evidence-context-explorer { min-width: 0; border: 1px solid var(--line); background: #fff; }
.evidence-context-explorer > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.evidence-context-explorer > header span { color: var(--page-accent); font: 9px var(--font-mono); }
.evidence-context-explorer > header h3 { margin: 2px 0 0; font-size: 18px; }
.evidence-context-explorer > header small { color: var(--muted); }
.evidence-context-controls { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(180px, .8fr) minmax(300px, 2fr) auto auto; align-items: end; gap: 7px; padding: 10px; border-bottom: 1px solid var(--line); background: #f5f8f9; }
.evidence-context-controls label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 800; }
.evidence-time-range > span { display: grid; grid-template-columns: 1fr 72px; }
.evidence-time-range input { border-radius: 4px 0 0 4px; }
.evidence-time-range select { border-left: 0; border-radius: 0 4px 4px 0; }
.evidence-source-counts { display: flex; gap: 5px; padding: 8px 10px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.evidence-source-counts span { min-width: max-content; display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid #d0dce1; border-radius: 999px; color: var(--muted); background: #fff; font-size: 10px; }
.evidence-source-counts b { color: var(--ink); }
.evidence-relation-legend { display: flex; align-items: center; gap: 12px; padding: 7px 11px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; }
.evidence-relation-legend span::before { content: ""; width: 8px; height: 8px; display: inline-block; margin-right: 4px; border-radius: 2px; background: #dce3e6; }
.evidence-relation-legend .flow::before { background: #91ddd1; }
.evidence-relation-legend .pair::before { background: #9bc9ef; }
.evidence-relation-legend .ip::before { background: #f1cf86; }
.evidence-relation-legend .time::before { background: #c9b8ee; }
.evidence-context-scroll { max-height: 520px; }
.evidence-context-table { min-width: 1240px; }
.evidence-context-table tbody tr[data-context-row] { cursor: pointer; transition: opacity .15s, background .15s, box-shadow .15s; }
.evidence-context-table tr.relation-selected, .evidence-record-table tr.relation-selected { background: #e6f7f3 !important; box-shadow: inset 5px 0 #178d7a; }
.evidence-context-table tr.relation-flow { background: #eefaf7; box-shadow: inset 4px 0 #42b7a3; }
.evidence-context-table tr.relation-pair { background: #eff7fd; box-shadow: inset 4px 0 #5a9fd4; }
.evidence-context-table tr.relation-ip { background: #fff8e9; box-shadow: inset 4px 0 #d9a744; }
.evidence-context-table tr.relation-time { background: #f6f1fd; box-shadow: inset 4px 0 #9674cf; }
.evidence-context-table tr.relation-muted { opacity: .4; }
.evidence-context-table tr.relation-muted:hover { opacity: .78; }
.context-source-name { min-width: 112px; color: #314b56; font-size: 12px; font-weight: 800; white-space: nowrap; }
.evidence-detail-row > td { padding: 0 !important; border-top: 0 !important; background: #f7fafb !important; }
.evidence-detail-slide { max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-5px); transition: max-height .25s ease, opacity .18s ease, transform .25s ease; }
.evidence-detail-slide.open { max-height: 520px; opacity: 1; transform: none; border-bottom: 1px solid var(--line); }
.evidence-detail-content { padding: 14px 18px 16px; }
.evidence-detail-content > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.evidence-detail-content > header b { font-size: 13px; }
.evidence-detail-content > header span { color: var(--muted); font-size: 11px; }
.evidence-detail-content pre { max-height: 400px; margin: 0; overflow: auto; padding: 14px 16px; color: #253941; border: 1px solid #cbd8dd; background: #fff; font: 13px/1.6 var(--font-mono); white-space: pre; }
.context-relation { font-size: 10px; font-weight: 800; }
#drawer-body.loading { opacity: .58; pointer-events: none; }
.modal {
  overflow: hidden;
  border-color: rgba(176, 197, 207, .48);
  border-radius: var(--radius-lg);
  background: rgba(250, 252, 253, .94);
  backdrop-filter: blur(28px) saturate(115%);
  -webkit-backdrop-filter: blur(28px) saturate(115%);
}
.modal form > header { box-shadow: inset 0 2px var(--page-accent); }
.toast { border-radius: var(--radius-md); backdrop-filter: blur(16px); }

body.rail-collapsed .rail { width: 68px; }
body.rail-collapsed .shell { margin-left: 92px; }
body.rail-collapsed .brand { height: 90px; justify-content: center; padding: 10px 0 35px; }
body.rail-collapsed .brand > div { display: none; }
body.rail-collapsed .rail-collapse { position: absolute; right: 19px; bottom: 6px; }
body.rail-collapsed .rail::after { top: 90px; }
body.rail-collapsed #navigation { padding-inline: 7px; }
body.rail-collapsed .nav-group > p { margin-inline: 8px; }
body.rail-collapsed .nav-group > p span { display: none; }
body.rail-collapsed .nav-group button { grid-template-columns: 1fr; justify-items: center; padding: 5px; }
body.rail-collapsed .nav-group button b { display: none; }
body.rail-collapsed .nav-badge { position: absolute; top: 2px; right: 2px; min-width: 13px; padding: 1px 3px; font-size: 7.5px; }
body.rail-collapsed .rail-status { min-height: 98px; padding: 7px; }
body.rail-collapsed .rail-status > p, body.rail-collapsed .rail-status button > span:nth-child(2), body.rail-collapsed .rail-health-arrow { display: none; }
body.rail-collapsed .rail-status > button { min-height: 38px; grid-template-columns: 1fr; justify-items: center; padding: 4px; }

@media (max-width: 1200px) and (min-width: 821px) {
  .rail { width: 68px; }
  .shell { margin-left: 92px; }
  .brand { height: 90px; justify-content: center; padding: 10px 0 35px; }
  .brand > div { display: none; }
  .rail-collapse { position: absolute; right: 19px; bottom: 6px; }
  .rail::after { top: 90px; }
  #navigation { padding-inline: 7px; }
  .nav-group > p { margin-inline: 8px; }
  .nav-group > p span { display: none; }
  .nav-group button { grid-template-columns: 1fr; justify-items: center; padding: 5px; }
  .nav-group button b { display: none; }
  .nav-badge { position: absolute; top: 2px; right: 2px; min-width: 13px; padding: 1px 3px; font-size: 7.5px; }
  .rail-status { min-height: 98px; padding: 7px; }
  .rail-status > p, .rail-status button > span:nth-child(2), .rail-health-arrow { display: none; }
  .rail-status > button { min-height: 38px; grid-template-columns: 1fr; justify-items: center; padding: 4px; }
}

@media (max-width: 820px) {
  body { padding-bottom: 76px; }
  .rail, body.rail-collapsed .rail {
    inset: auto 8px 8px;
    width: auto;
    height: 62px;
    border-radius: var(--radius-lg);
  }
  .rail::after, .brand, .rail-status, .rail-collapse { display: none; }
  #navigation, body.rail-collapsed #navigation { gap: 2px; padding: 5px; }
  .nav-group button, body.rail-collapsed .nav-group button {
    min-width: 58px;
    min-height: 50px;
    grid-template-columns: 1fr;
    grid-template-rows: 22px 12px;
    justify-items: center;
    align-content: center;
    gap: 2px;
    padding: 3px 5px;
  }
  .nav-group button::before { inset: auto 12px 0; width: auto; height: 2px; transform: scaleX(.4); }
  .nav-group button.active::before { transform: scaleX(1); }
  .nav-group button b, body.rail-collapsed .nav-group button b { display: block; max-width: 54px; font-size: 10px; text-align: center; }
  .nav-group button .nav-icon { width: 17px; height: 17px; }
  .nav-badge, body.rail-collapsed .nav-badge { top: 1px; right: 2px; }
  .shell, body.rail-collapsed .shell { margin-left: 0; padding-top: 8px; }
  .control-deck { margin: 0 8px; }
  .topbar, body.overview-page .topbar { height: 60px; padding: 0 10px; }
  .page-identity h1, body.overview-page .page-identity h1 { font-size: 23px; letter-spacing: .05em; }
  .time-console, body.overview-page .time-console { min-height: 94px; padding-inline: 9px; }
  main, body.overview-page main { padding: 10px 8px 30px; }
  .workspace-head { min-height: 50px; }
  .drawer { top: 8px; bottom: 78px; width: calc(100vw - 16px); }
  .drawer.open { right: 8px; }
  .drawer.alert-investigation { top: 8px; bottom: 78px; left: 8px; width: calc(100vw - 16px); height: auto; transform: none; }
  .drawer.alert-investigation.open { transform: none; }
  .drawer.evidence-workspace { top: 8px; right: 8px; bottom: 78px; left: 8px; }
  .drawer.evidence-workspace.open { right: 8px; }
  .evidence-workspace-head, .evidence-head-actions { align-items: flex-start; flex-direction: column; }
  .evidence-disposition { padding: 8px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .evidence-judgment-grid { grid-template-columns: 1fr 1fr; }
  .incident-detail-summary { grid-template-columns: 1fr; gap: 10px; }
  .incident-action-switch { justify-content: flex-start; }
  .evidence-pivots { flex-wrap: wrap; }
  .evidence-context-controls { grid-template-columns: 1fr 1fr; }
  .evidence-condition-search { grid-column: 1 / -1; }
  .evidence-relation-legend { flex-wrap: wrap; }
  .incident-rule-context > header, .incident-verdict-guide > header { align-items: start; flex-direction: column; }
  .evidence-checklist, .evidence-fact-grid, .finding-decision-basis ul { grid-template-columns: 1fr; }
  .detector-method-list li { grid-template-columns: 1fr; }
  .detector-method-list em { text-align: left; }
  .evidence-trace { align-items: flex-start; flex-direction: column; }
  .evidence-trace span { text-align: left; }
  .incident-evidence-item { grid-template-columns: 48px minmax(0, 1fr); gap: 5px; }
  .incident-evidence-item:not(:last-child)::before { left: 19px; }
  .timeline-marker b { width: 30px; height: 30px; }
  .timeline-event > summary { grid-template-columns: 1fr auto; }
  .timeline-event-title { grid-column: 1 / -1; }
  .timeline-event > summary time { grid-column: 1; text-align: left; }
}

@media (max-width: 480px) {
  .health-chip, .top-actions time { display: none; }
  .top-actions { gap: 5px; }
  .time-head > div:first-child span { max-width: 155px; }
  .time-inputs > .lucide { display: none; }
  .evidence-judgment-grid { grid-template-columns: 1fr; }
  .evidence-context-controls { grid-template-columns: 1fr; }
  .evidence-condition-search { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-contrast: more) {
  .rail, .control-deck, .drawer { backdrop-filter: none; -webkit-backdrop-filter: none; border-color: #7e919b; }
  .nav-group button.active { border-color: var(--page-accent); }
}

.capture-layout { display: grid; grid-template-columns: minmax(360px, .72fr) minmax(0, 1.28fr); gap: 12px; }
.capture-form, .capture-console-panel { min-height: 560px; overflow: hidden; }
.capture-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 18px; }
.capture-fields label, .capture-option-field { display: grid; gap: 6px; }
.capture-fields .wide { grid-column: 1 / -1; }
.capture-fields label > span, .capture-option-field > span { color: #63737c; font-size: 13.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.capture-fields input, .capture-fields select { width: 100%; height: 38px; border: 1px solid #d6e0e4; border-radius: var(--radius-sm); background: #fbfcfd; padding: 0 10px; color: #1d2c34; }
.capture-fields input:focus, .capture-fields select:focus { outline: 2px solid color-mix(in srgb, var(--page-accent) 24%, transparent); border-color: var(--page-accent); }
.capture-option-select { position: relative; }
.capture-option-select summary { height: 38px; display: flex; align-items: center; padding: 0 34px 0 10px; overflow: hidden; color: #1d2c34; border: 1px solid #d6e0e4; border-radius: var(--radius-sm); background: #fbfcfd; cursor: pointer; list-style: none; }
.capture-option-select summary::-webkit-details-marker { display: none; }
.capture-option-select summary::after { content: ""; position: absolute; top: 14px; right: 13px; width: 7px; height: 7px; border-right: 2px solid #71818a; border-bottom: 2px solid #71818a; transform: rotate(45deg); transition: transform .15s; }
.capture-option-select[open] summary { border-color: var(--page-accent); outline: 2px solid color-mix(in srgb, var(--page-accent) 24%, transparent); }
.capture-option-select[open] summary::after { top: 17px; transform: rotate(225deg); }
.capture-option-select summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.capture-option-list { position: absolute; z-index: 5; top: 44px; left: 0; right: 0; max-height: 268px; overflow: auto; padding: 6px; border: 1px solid #cad6db; border-radius: var(--radius-sm); background: #fff; box-shadow: 0 12px 28px rgba(25, 43, 52, .16); }
.capture-option-list label { min-height: 38px; display: grid; grid-template-columns: 20px 45px 1fr; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; cursor: pointer; }
.capture-option-list label:hover { background: #eef5f6; }
.capture-option-list input { width: 16px; height: 16px; min-height: 16px; padding: 0; }
.capture-option-list b { color: #1d2c34; font: 700 13px var(--font-mono); }
.capture-option-list small { color: #657680; font-size: 12.5px; }
.capture-actions { display: flex; align-items: center; gap: 8px; padding: 0 18px 18px; }
.capture-actions button { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; }
.capture-actions small { margin-left: auto; color: #7a8991; font-size: 12px; }
.capture-console-panel { display: grid; grid-template-rows: 60px 1fr; background: #10191f; border-color: #25353e; }
.capture-console-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 17px; border-bottom: 1px solid #293840; background: #172229; }
.capture-console-panel > header div { display: grid; gap: 3px; min-width: 0; }
.capture-console-panel > header span { color: #82939c; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.capture-console-panel > header b { overflow: hidden; color: #dce7eb; font-size: 16.5px; text-overflow: ellipsis; white-space: nowrap; }
.capture-state { display: inline-flex; align-items: center; gap: 6px; color: #8f9ea6; font-size: 13.5px; letter-spacing: .08em; }
.capture-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.capture-state.running { color: #38d99a; }
.capture-state.running i { box-shadow: 0 0 0 5px rgba(56, 217, 154, .1); animation: capture-pulse 1.5s infinite; }
.capture-state.error { color: #ff737a; }
.capture-output { overflow: auto; min-height: 0; margin: 0; padding: 17px; background: #10191f; color: #b9d8c7; font: 16.5px/1.65 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
@keyframes capture-pulse { 50% { opacity: .45; } }

@media (max-width: 1000px) {
  .capture-layout { grid-template-columns: 1fr; }
  .capture-form { min-height: auto; }
  .capture-console-panel { min-height: 460px; }
}

@media (max-width: 560px) {
  .capture-fields { grid-template-columns: 1fr; }
  .capture-fields .wide { grid-column: auto; }
  .capture-actions { flex-wrap: wrap; }
  .capture-actions small { width: 100%; margin-left: 0; }
}

/* Situation room bento composition */
.command-kpis {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, 96px);
  gap: 10px;
  margin-bottom: 10px;
}
.command-kpi {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 10px 12px 8px;
  border-radius: var(--radius-lg);
}
.command-kpi:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 3; padding: 16px 17px 13px; border-color: color-mix(in srgb, var(--page-accent) 34%, #d2dce1); background: color-mix(in srgb, var(--page-accent) 5%, #fff); }
.command-kpi:nth-child(2) { grid-column: 4 / 6; grid-row: 1; }
.command-kpi:nth-child(3) { grid-column: 6 / 8; grid-row: 1; }
.command-kpi:nth-child(4) { grid-column: 8 / 10; grid-row: 1; background: color-mix(in srgb, #d94850 3%, #fff); }
.command-kpi:nth-child(5) { grid-column: 10 / 13; grid-row: 1; background: color-mix(in srgb, #d88920 4%, #fff); }
.command-kpi:nth-child(6) { grid-column: 4 / 7; grid-row: 2; background: color-mix(in srgb, #258a61 3%, #fff); }
.command-kpi:nth-child(7) { grid-column: 7 / 10; grid-row: 2; }
.command-kpi:nth-child(8) { grid-column: 10 / 13; grid-row: 2; }
.command-kpi:nth-child(1) header span { color: #37606a; font-size: 13.5px; }
.command-kpi:nth-child(1) > strong { margin-top: 17px; font-size: 51px; }
.command-kpi:nth-child(1) footer { grid-template-columns: 1fr 86px; margin-top: 22px; }
.command-kpi:nth-child(1) footer small { font-size: 10.5px; }
.command-kpi:not(:nth-child(1)) > strong { margin-top: 5px; font-size: 27px; }
.command-kpi:not(:nth-child(1)) footer { margin-top: 4px; }
.command-kpi:not(:nth-child(1)) footer > div { height: 11px; }

.command-grid { gap: 10px; }
.command-panel { border-radius: var(--radius-lg); }
.signal-panel { grid-column: span 8; min-height: 314px; }
.priority-panel { grid-column: span 4; min-height: 314px; background: #fbfdfd; }
.queue-panel { grid-column: span 7; min-height: 322px; }
.attackers-panel { grid-column: span 5; min-height: 322px; background: #fbfcfd; }
.protocol-panel { grid-column: span 3; min-height: 306px; }
.sources-panel { grid-column: span 5; min-height: 306px; }
.rules-panel { grid-column: span 4; min-height: 306px; }
.analysis-panel { min-height: 220px; }
.signal-panel .command-panel-head,
.analysis-panel .command-panel-head { border-bottom: 0; background: transparent; }
.signal-panel .command-panel-head { padding-bottom: 0; }
.priority-panel .command-panel-head { background: color-mix(in srgb, var(--page-accent) 4%, #f5f8f9); }
.queue-panel .command-panel-head { box-shadow: inset 3px 0 #d88920; }
.sources-panel .command-panel-head { box-shadow: inset 3px 0 #258a61; }
.signal-chart { height: 197px; margin-top: 13px; }
.analysis-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 10px 10px; background: transparent; }
.analysis-feed button { min-height: 54px; border: 1px solid #dbe4e8; border-radius: var(--radius-md); background: #fff; }
.analysis-feed button:first-child { grid-column: auto; min-height: 54px; background: #fff; }

@media (max-width: 1200px) and (min-width: 821px) {
  .command-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, 96px); }
  .command-kpi:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .command-kpi:nth-child(2),
  .command-kpi:nth-child(3),
  .command-kpi:nth-child(4),
  .command-kpi:nth-child(5),
  .command-kpi:nth-child(6),
  .command-kpi:nth-child(7) { grid-column: span 1; grid-row: span 1; }
  .command-kpi:nth-child(8) { grid-column: span 2; grid-row: span 1; }
  .queue-panel { grid-column: span 8; }
  .attackers-panel { grid-column: span 4; }
}

@media (max-width: 820px) {
  .command-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 8px; }
  .command-kpi:nth-child(n) { grid-column: auto; grid-row: auto; min-height: 108px; padding: 10px 11px 8px; }
  .command-kpi:nth-child(1) { grid-column: 1 / -1; min-height: 168px; padding: 14px 15px 11px; }
  .command-kpi:nth-child(8) { grid-column: 1 / -1; }
  .command-kpi:nth-child(1) > strong { margin-top: 11px; font-size: 42px; }
  .command-kpi:nth-child(1) footer { grid-template-columns: 1fr 74px; margin-top: 13px; }
  .command-grid { grid-template-columns: 1fr; gap: 8px; }
  .signal-panel,
  .priority-panel,
  .queue-panel,
  .attackers-panel,
  .protocol-panel,
  .sources-panel,
  .rules-panel,
  .analysis-panel { grid-column: 1; }
  .analysis-feed { grid-template-columns: 1fr; }
  .analysis-feed button:first-child { grid-column: 1; }
}

/* ALPACA detail pass: brand, hierarchy, and operational micro-states */
:root {
  --page-accent: #376985;
  --canvas: #e9eef1;
  --control-line: rgba(60, 83, 96, .2);
  --surface-shadow: 0 8px 24px rgba(31, 49, 59, .075);
  --control-shadow: 0 18px 44px rgba(31, 48, 58, .13);
}

body[data-page="overview"] { --page-accent: #2f6b88; }
body[data-page="investigate"] { --page-accent: #4e62a5; }
body[data-page="cases"] { --page-accent: #7457a3; }
body[data-page="incidents"] { --page-accent: #b34d58; }
body[data-page="risk-policy"] { --page-accent: #a1681d; }
body[data-page="quality"] { --page-accent: #93691b; }
body[data-page="rule-management"] { --page-accent: #416f8f; }
body[data-page="ip-control"] { --page-accent: #ad523c; }
body[data-page="data"] { --page-accent: #316fa8; }
body[data-page="files"] { --page-accent: #337558; }
body[data-page="geo"] { --page-accent: #347786; }
body[data-page="sources"] { --page-accent: #39775d; }
body[data-page="tcpdump"] { --page-accent: #526b7d; }
body[data-page="system"] { --page-accent: #695895; }

.rail {
  background: rgba(247, 250, 251, .93);
  box-shadow: 0 18px 48px rgba(30, 48, 58, .14), inset 0 1px rgba(255, 255, 255, .92);
}
.rail::before,
.control-deck::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 12px auto;
  height: 1px;
  background: rgba(255, 255, 255, .92);
  pointer-events: none;
}
.brand { height: 74px; gap: 9px; padding: 0 9px 0 11px; }
.rail::after { top: 74px; }
.brand-mark,
body.overview-page .brand-mark {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.brand-mark img,
body.overview-page .brand-mark img { width: 40px; height: 40px; display: block; }
.brand > div { min-width: 0; }
.brand strong {
  color: #172b36;
  font-size: 20px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: 0;
}
.brand small {
  margin-top: 5px;
  overflow: hidden;
  color: #667c88;
  font: 8px var(--font-mono);
  line-height: 1;
  letter-spacing: 0;
  text-overflow: clip;
  white-space: nowrap;
}
.rail-collapse { width: 27px; min-width: 27px; }

#navigation { padding-top: 11px; }
.nav-group { margin-bottom: 10px; }
.nav-group > p { margin-bottom: 4px; color: #70828c; }
.nav-group button { min-height: 40px; grid-template-columns: 30px minmax(0, 1fr) auto; }
.nav-group button .nav-icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  color: #607580;
  border: 1px solid rgba(77, 103, 116, .13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .44);
}
.nav-group button:hover .nav-icon { color: #315e72; border-color: rgba(61, 94, 110, .22); background: rgba(255, 255, 255, .78); }
.nav-group button.active {
  border-color: color-mix(in srgb, var(--page-accent) 27%, #c4d0d5);
  background: color-mix(in srgb, var(--page-accent) 8%, #f8fbfc);
  box-shadow: inset 0 1px rgba(255, 255, 255, .95), 0 6px 16px rgba(30, 50, 60, .075);
}
.nav-group button.active::before { box-shadow: none; }
.nav-group button.active .nav-icon {
  color: var(--page-accent);
  border-color: color-mix(in srgb, var(--page-accent) 32%, #d2dde2);
  background: color-mix(in srgb, var(--page-accent) 9%, #fff);
  filter: none;
}
.nav-badge { border-radius: var(--radius-sm); }
.nav-group > p { color: #526872; }
.nav-group button { color: #2c4652; }
.nav-group button b,
.nav-group button.active b { font-weight: 400; }
.nav-group button:hover { color: #142f3a; }
.nav-group button.active { color: #102b36; }
.nav-badge { color: #294550; border-color: rgba(57, 84, 96, .24); background: rgba(76, 111, 126, .1); }

/* IBM Plex stays crisp when the command room uses Medium headings, not synthetic-heavy labels. */
.command-kpi header span { font-weight: 500; }
.command-panel-head h2 { font-weight: 500; }
.command-kpi > strong,
.observation-ring strong,
.risk-cell strong { font-weight: 400; }

@media (min-width: 821px) {
  body.rail-collapsed .nav-badge {
    top: 5px;
    right: 6px;
    width: 7px;
    min-width: 7px;
    height: 7px;
    min-height: 7px;
    display: block;
    overflow: hidden;
    padding: 0;
    color: transparent;
    border: 0;
    border-radius: 50%;
    background: #43788b;
    font-size: 0;
    box-shadow: 0 0 0 2px #f8faf9;
  }
}
@media (max-width: 1200px) and (min-width: 821px) {
  .nav-badge {
    top: 5px;
    right: 6px;
    width: 7px;
    min-width: 7px;
    height: 7px;
    min-height: 7px;
    display: block;
    overflow: hidden;
    padding: 0;
    color: transparent;
    border: 0;
    border-radius: 50%;
    background: #43788b;
    font-size: 0;
    box-shadow: 0 0 0 2px #f8faf9;
  }
}

/* Evidence grids sit directly on the canvas; avoid a second slab behind the window. */
.single-workspace .grid-surface,
.investigation-pane .grid-surface {
  border-color: #cbd6da;
  box-shadow: none;
}
.single-workspace .grid-head,
.investigation-pane .grid-head { background: #f8f9f9; }

/* Investigation is a long-reading work surface: separate layers with lines, not elevation. */
body[data-page="investigate"] .control-deck {
  border-color: #cfd8dc;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body[data-page="investigate"] .control-deck::before { display: none; }
body[data-page="investigate"] .topbar,
body[data-page="investigate"] .health-chip,
body[data-page="investigate"] .top-actions .icon-button,
body[data-page="investigate"] .top-actions .toggle-button,
body[data-page="investigate"] .time-presets button,
body[data-page="investigate"] .source-tabs button,
body[data-page="investigate"] .lens-toolbar { box-shadow: none; }
body[data-page="investigate"] .time-console { background: #f7f9fa; }
body[data-page="investigate"] .lens-toolbar {
  border-color: #d3dcdf;
  background: #fff;
}
body[data-page="investigate"] .source-tabs button.active {
  border-color: color-mix(in srgb, var(--page-accent) 58%, #a8b5bb);
  box-shadow: none;
}

.control-deck { box-shadow: 0 16px 42px rgba(31, 48, 58, .115), inset 0 1px rgba(255, 255, 255, .92); }
.page-identity p { color: #71838d; font-weight: 650; letter-spacing: 0; }
.page-identity p::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid color-mix(in srgb, var(--page-accent) 74%, #fff);
  border-radius: 50%;
  background: color-mix(in srgb, var(--page-accent) 18%, #fff);
}
.page-identity h1,
body.overview-page .page-identity h1 { letter-spacing: 0; }
.health-chip { font-size: 12px; }
.top-actions .icon-button,
.top-actions .toggle-button { box-shadow: inset 0 1px rgba(255, 255, 255, .92), 0 2px 7px rgba(37, 57, 68, .04); }

.time-console,
body.overview-page .time-console { background: rgba(229, 236, 239, .5); }
.time-head b,
body.overview-page .time-head b { letter-spacing: 0; }
.time-presets button.active,
body.overview-page .time-presets button.active {
  color: var(--page-accent);
  border-color: color-mix(in srgb, var(--page-accent) 35%, #cad6db);
  background: color-mix(in srgb, var(--page-accent) 9%, #fff);
}
.time-brush-selection {
  color: color-mix(in srgb, var(--page-accent) 78%, #314a57);
  border-color: color-mix(in srgb, var(--page-accent) 35%, #c3d0d6);
  background: color-mix(in srgb, var(--page-accent) 7%, rgba(255, 255, 255, .7));
}
.time-brush-handle { border-color: color-mix(in srgb, var(--page-accent) 50%, #9dafb8); }
.time-brush-handle::after { border-color: color-mix(in srgb, var(--page-accent) 65%, #6f8290); }

.command-statusline { border-color: #cbd7dc; box-shadow: inset 3px 0 var(--page-accent), inset 0 1px #fff; }
.command-statusline > strong { color: #2a6d88; }
.command-kpi,
.command-panel,
.surface,
.grid-surface,
.case-list,
.case-detail,
.file-layout { border-color: #ced9de; }
.command-kpi { box-shadow: 0 7px 19px rgba(33, 52, 62, .07), inset 0 1px #fff; }
.command-kpi::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, .92);
  pointer-events: none;
}
.command-kpi:not(.red):not(.amber):not(.blue):not(.violet):not(.green):not(.rust)::before,
.command-kpi:not(.red):not(.amber):not(.blue):not(.violet):not(.green):not(.rust) header > i,
.command-kpi:not(.red):not(.amber):not(.blue):not(.violet):not(.green):not(.rust) footer i { background: var(--page-accent); }
.command-panel { box-shadow: 0 9px 25px rgba(33, 52, 62, .075); }
.command-panel-head { border-bottom-color: #d7e1e5; background: #f5f8f9; }
.command-panel-head button { color: #315f75; }
.command-panel-head button:hover { color: #244d61; border-color: #9fb7c2; background: #f5f9fb; }
.workspace-head::before { box-shadow: none; }
.grid-surface { box-shadow: 0 8px 24px rgba(31, 49, 59, .075), inset 0 2px var(--page-accent); }
.data-table th {
  color: #4b606b;
  border-bottom-color: #c7d4da;
  background: rgba(235, 241, 244, .97);
  box-shadow: inset 0 1px rgba(255, 255, 255, .82);
}
.data-table td { border-right-color: #e4eaed; border-bottom-color: #e1e7ea; }

@media (max-width: 1200px) and (min-width: 821px) {
  .brand { height: 90px; }
  .brand-mark,
  .brand-mark img { width: 40px; height: 40px; }
  .rail::after { top: 90px; }
  .nav-group button .nav-icon { width: 28px; height: 28px; }
}

@media (max-width: 820px) {
  .nav-group > p { display: none; }
  .nav-group button,
  body.rail-collapsed .nav-group button {
    min-width: 58px;
    min-height: 50px;
    grid-template-columns: 1fr;
    grid-template-rows: 22px 12px;
    justify-items: center;
    align-content: center;
    gap: 2px;
    padding: 3px 5px;
  }
  .nav-group button .nav-icon { width: 21px; height: 21px; padding: 2px; border: 0; background: transparent; }
  .page-identity p::before { display: none; }
  .time-legend small { display: none; }
}

/* Operational status and wide-workspace corrections */
.high-fp-rules .section-head {
  min-height: 64px;
  margin: 0;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.high-fp-empty {
  min-height: 96px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}
.high-fp-empty b { color: #445862; font-size: 14px; }
.high-fp-empty span { font-size: 11px; }

.incident-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  margin-bottom: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  background: #fff;
}
.incident-toolbar .alert-status-tabs {
  align-self: stretch;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.incident-filters {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 150px auto auto;
  align-items: end;
  gap: 7px;
}
.incident-filters > label { display: grid; gap: 3px; color: var(--muted); font-size: 10.5px; }
.incident-filters input, .incident-filters select { width: 100%; min-height: 34px; }
.incident-filters .search { position: relative; display: block; }
.incident-filters .search > span { position: absolute; top: 9px; left: 9px; color: var(--faint); }
.incident-filters .search input { padding-left: 28px; }
.incident-filters button { min-height: 34px; white-space: nowrap; }

.engine-instance-list > div {
  grid-template-columns: 8px minmax(100px, 1fr) minmax(120px, 1fr) 1.4fr auto auto;
}
.engine-instance-list em { padding: 3px 6px; border-radius: 3px; font-weight: 750; white-space: nowrap; }
.engine-heartbeat.live { color: #286d57; background: #e6f4ed; }
.engine-heartbeat.stale { color: #8b5a1a; background: #faedd9; }
.sensor-connection.connected { color: #17634f; background: #dff2e8; }
.sensor-connection.disconnected { color: #973d42; background: #f8e1e3; }
.sensor-connection.process { color: #65737c; background: #edf1f3; }

@media (max-width: 1100px) {
  .incident-toolbar { grid-template-columns: 1fr; }
  .incident-toolbar .alert-status-tabs { width: fit-content; }
  .engine-instance-list > div { grid-template-columns: 8px 1fr 1fr auto; }
  .engine-instance-list small, .engine-heartbeat { display: none; }
}

@media (max-width: 700px) {
  .incident-filters { grid-template-columns: 1fr 1fr; }
  .incident-filters .search { grid-column: 1 / -1; }
  .triage-summary.rule-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .incident-filters { grid-template-columns: 1fr; }
  .incident-filters .search { grid-column: auto; }
  .incident-toolbar .alert-status-tabs { width: 100%; }
  .incident-toolbar .alert-status-tabs button { min-width: 0; flex: 1; }
  .time-inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .time-inputs button { grid-column: 1 / -1; }
  .high-fp-toolbar { align-items: start; }
  .high-fp-toolbar .data-note { width: 100%; line-height: 1.45; }
}

/* Situation room: crisp neutral surfaces and operational drilldowns */
body.overview-page {
  --control-bg: rgba(250, 250, 249, .97);
  --control-bg-strong: rgba(252, 252, 251, .99);
  --control-line: rgba(61, 64, 63, .17);
  color: #293b43;
  background: #fbfcfb;
}
body.overview-page .shell { background: #fbfcfb; }
body.overview-page .rail {
  border-color: #d8d9d6;
  background: rgba(250, 250, 248, .98);
  box-shadow: 0 14px 38px rgba(42, 44, 43, .1), inset 0 1px #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.overview-page .control-deck {
  border-color: #d8d9d6;
  background: #fbfbfa;
  box-shadow: 0 12px 34px rgba(42, 44, 43, .085), inset 0 1px #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.overview-page .topbar { background: #fff; }
body.overview-page main { background: #fbfcfb; }
body.overview-page .time-console { background: #fbfbfa; }
.command-kpis { margin-bottom: 10px; }
.command-kpi,
.command-panel { border-color: #d4d6d3; background: #fff; box-shadow: 0 5px 16px rgba(42, 44, 43, .06); }
.command-kpi.red { background: #fff7f7; box-shadow: 0 5px 16px rgba(97, 40, 44, .06); }
.command-kpi.amber { background: #fffbf5; }
.command-kpi.green { background: #f8fcfa; }
.command-kpi:nth-child(1) { background: #fff; }
body.overview-page .command-kpi > strong {
  font-size: 26px;
  line-height: 1.05;
}
.command-panel-head { min-height: 52px; padding: 10px 12px; border-bottom-color: #dedfdd; background: #fafaf9; }
.command-panel-head h2 { font-size: 16px; }
.command-panel-head span { font-size: 9.5px; }
.risk-wait-panel .command-panel-head,
.attackers-panel .command-panel-head { background: #fafaf9; }

.observation-kpi { grid-template-rows: auto minmax(0, 1fr) auto; }
.observation-ring {
  width: 132px;
  height: 132px;
  place-self: center;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--observation-ring);
  box-shadow: inset 0 0 0 1px rgba(58, 83, 95, .08);
}
.observation-ring > span {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border: 1px solid #e0e7ea;
  border-radius: 50%;
  background: #fff;
}
.observation-ring strong { color: #152d38; font: 22px var(--font-mono); }
.observation-kpi footer > div { gap: 2px; }

.risk-wait-panel { background: #fff; }
.risk-matrix {
  height: 232px;
  display: grid;
  grid-template-columns: 64px repeat(4, minmax(0, 1fr));
  grid-template-rows: 24px repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 10px 12px 12px;
}
.risk-matrix > span { align-self: end; padding-bottom: 3px; color: #71838c; font-size: 9.5px; text-align: center; }
.risk-axis { display: flex; align-items: center; color: #60737d; font: 9.5px var(--font-mono); }
.risk-axis::before { content: ""; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.risk-axis.critical { color: #cb3d48; }
.risk-axis.high { color: #d36f35; }
.risk-axis.medium { color: #c18b25; }
.risk-axis.low { color: #3f7fa4; }
.risk-cell {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid #d5dfe3;
  border-radius: 3px;
  color: #3f7fa4;
  background: #f8fafb;
}
.risk-cell.critical { color: #cb3d48; }
.risk-cell.high { color: #d36f35; }
.risk-cell.medium { color: #c18b25; }
.risk-cell.heat-1 { background: #f4f7f9; }
.risk-cell.heat-2 { border-color: color-mix(in srgb, currentColor 25%, #d5dfe3); background: color-mix(in srgb, currentColor 7%, #fff); }
.risk-cell.heat-3 { border-color: color-mix(in srgb, currentColor 34%, #d5dfe3); background: color-mix(in srgb, currentColor 12%, #fff); }
.risk-cell.heat-4 { border-color: color-mix(in srgb, currentColor 44%, #d5dfe3); background: color-mix(in srgb, currentColor 18%, #fff); }
.risk-cell:hover:not(:disabled) { border-color: currentColor; transform: translateY(-1px); }
.risk-cell:disabled { opacity: .48; }
.risk-cell strong { color: #243b46; font: 15px var(--font-mono); }
.risk-unscored { min-height: 24px; margin: -8px 12px 8px auto; padding: 2px 7px; color: #6d7f88; border-color: #d6e0e4; background: #f8fafb; font-size: 9.5px; }
.risk-unscored b { margin-left: 5px; color: #344e5a; }

.killchain-panel { grid-column: 1 / -1; min-height: 114px; }
.killchain-panel .command-panel-head { min-height: 40px; padding-block: 8px; box-shadow: inset 3px 0 #596f9d; }
.killchain-panel .command-panel-head h2 { margin-bottom: 0; }
.protocol-panel .command-panel-head,
.sources-panel .command-panel-head,
.rules-panel .command-panel-head,
.queue-panel .command-panel-head,
.attackers-panel .command-panel-head,
.signal-panel .command-panel-head,
.risk-wait-panel .command-panel-head,
.analysis-panel .command-panel-head { min-height: 40px; padding-block: 7px; }
.protocol-panel .command-panel-head h2,
.sources-panel .command-panel-head h2,
.rules-panel .command-panel-head h2,
.queue-panel .command-panel-head h2,
.attackers-panel .command-panel-head h2,
.signal-panel .command-panel-head h2,
.risk-wait-panel .command-panel-head h2,
.analysis-panel .command-panel-head h2 { margin-bottom: 0; }
.killchain {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  padding: 0 12px 10px;
}
.killchain::before { display: none; }
.killchain button {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 3px 1fr;
  align-items: end;
  gap: 10px 8px;
  padding: 13px 10px 9px;
  overflow: visible;
  border: 0;
  border-right: 1px solid #d7dad8;
  border-radius: 0;
  background: #fff;
  text-align: left;
}
.killchain button:last-child { border-right: 0; }
.killchain button:not(:first-child)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: -9px;
  width: 18px;
  height: 26px;
  background: #fff;
  transform: translateY(-50%);
  pointer-events: none;
}
.killchain button:not(:first-child)::after {
  content: "›";
  position: absolute;
  z-index: 3;
  top: 50%;
  left: -8px;
  width: 16px;
  color: #536b76;
  font: 600 20px/1 var(--font-sans);
  text-align: center;
  transform: translateY(-54%);
  pointer-events: none;
}
.killchain button:hover:not(:disabled) { background: #f8f9f7; }
.killchain button:disabled { opacity: 1; }
.killchain button > i { width: 28px; height: 3px; grid-column: 1 / -1; align-self: start; background: #5c96dc; font-size: 0; font-style: normal; }
.killchain button:nth-child(2) > i { background: #8396a8; }
.killchain button:nth-child(3) > i { background: #27bdb7; }
.killchain button:nth-child(4) > i { background: #ee9132; }
.killchain button:nth-child(5) > i { background: #ef665d; }
.killchain button:nth-child(6) > i { background: #9a68ca; }
.killchain button:nth-child(7) > i { background: #4d7fae; }
.killchain button > span { min-width: 0; overflow: hidden; color: #536971; font-size: 10.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.killchain button > strong { color: #203640; font: 19px var(--font-mono); line-height: 1; }

.protocol-panel, .sources-panel, .rules-panel { min-height: 326px; }
.protocol-panel { grid-column: span 3; }
.sources-panel { grid-column: span 5; }
.rules-panel { grid-column: span 4; }
.source-matrix { gap: 1px; padding: 10px; background: #dedfdd; }
.source-matrix button { border-radius: 0; }
.source-matrix button.state-live,
.source-matrix button.state-recent { background: #fff; }
.source-matrix button.state-delayed,
.source-matrix button.state-quiet { background: #fffdf8; }
.source-matrix button.state-stale,
.source-matrix button.state-clock { background: #fff8f8; }
.source-matrix button.state-empty { background: #fafafa; }
.source-matrix button.state-missing { opacity: 1; background: #f5f5f3; }
.source-matrix button.state-live header em,
.source-matrix button.state-recent header em { color: #247b58; }
.source-matrix button.state-delayed header em,
.source-matrix button.state-quiet header em { color: #a56b19; }
.source-matrix button.state-stale header em,
.source-matrix button.state-missing header em,
.source-matrix button.state-clock header em { color: #b94048; }
.source-matrix button.state-empty header em { color: #78868c; }

body[data-page="sources"] { --canvas: #f3f3f1; background: #f2f2f0; }
body[data-page="sources"] .shell { background: #f2f2f0; }
body[data-page="sources"] .control-deck { border-color: #d8d9d6; background: #fbfbfa; backdrop-filter: none; -webkit-backdrop-filter: none; }
body[data-page="sources"] main { background: #f3f3f1; }
.source-inventory-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 1px;
  border: 1px solid #d5d8d5;
  border-radius: var(--radius-lg);
  background: #d8dad7;
  box-shadow: 0 7px 20px rgba(42, 44, 43, .055);
}
.source-inventory-card {
  position: relative;
  min-width: 0;
  min-height: 142px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 8px;
  padding: 12px 13px 10px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  text-align: left;
}
.source-inventory-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #35a675; }
.source-inventory-card.state-delayed::before,
.source-inventory-card.state-quiet::before { background: #d39738; }
.source-inventory-card.state-stale::before,
.source-inventory-card.state-missing::before,
.source-inventory-card.state-clock::before { background: #bd3c43; }
.source-inventory-card.state-empty::before { background: #89959a; }
.source-inventory-card.state-delayed,
.source-inventory-card.state-quiet { background: #fffdf8; }
.source-inventory-card.state-stale,
.source-inventory-card.state-clock { background: #fff8f8; }
.source-inventory-card.state-empty,
.source-inventory-card.state-missing { background: #fafafa; }
.source-inventory-card:hover { z-index: 1; background: #f6f8f6; box-shadow: inset 0 0 0 1px #9fafb1; }
.source-inventory-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.source-inventory-card header span { display: inline-flex; align-items: center; gap: 6px; color: #5b7079; font: 10px var(--font-mono); }
.source-inventory-card header em { color: #62757d; font: 9px var(--font-mono); font-style: normal; }
.source-inventory-card > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.source-inventory-card > div b { overflow: hidden; color: #243a44; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.source-inventory-card > div small { color: #7b8b90; font: 9px var(--font-mono); }
.source-inventory-card > strong { align-self: end; color: #172e38; font: 25px var(--font-mono); }
.source-inventory-card > strong small { margin-left: 6px; color: #819097; font-size: 8.5px; font-weight: 500; }
.source-inventory-card footer { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #6e8087; font: 9px var(--font-mono); }
.source-inventory-card footer code { overflow: hidden; color: #566c75; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.drawer.source-inspector { background: #f3f3f1; backdrop-filter: none; -webkit-backdrop-filter: none; }
.drawer.source-inspector > header { color: #1c333d; border-bottom: 1px solid #d9dcd9; background: #fff; box-shadow: none; backdrop-filter: none; }
.drawer.source-inspector > header span { color: #60767e; }
.drawer.source-inspector > header .icon-button { color: #536970; border-color: #d3d9d8; background: #fff; }
.source-drawer-status { display: grid; gap: 10px; margin-bottom: 10px; padding: 14px; border: 1px solid #d7dad7; border-left: 4px solid #35a675; border-radius: var(--radius-md); background: #fff; }
.source-drawer-status.state-delayed,
.source-drawer-status.state-quiet { border-left-color: #d39738; background: #fffdf8; }
.source-drawer-status.state-stale,
.source-drawer-status.state-missing,
.source-drawer-status.state-clock { border-left-color: #bd3c43; background: #fff8f8; }
.source-drawer-status.state-empty { border-left-color: #89959a; }
.source-drawer-status header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.source-drawer-status header span { display: inline-flex; align-items: center; gap: 6px; color: #5d7179; font: 10px var(--font-mono); }
.source-drawer-status header b { color: #253d46; font: 11px var(--font-mono); }
.source-drawer-status > strong { color: #172f39; font: 29px var(--font-mono); }
.source-drawer-status > strong small { margin-left: 6px; color: #778990; font-size: 9px; }
.source-drawer-status p { margin: 0; color: #60737a; font-size: 11px; line-height: 1.45; }
.source-drawer-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 10px; overflow: hidden; border: 1px solid #daddda; border-radius: var(--radius-md); background: #daddda; }
.source-drawer-facts article { min-width: 0; min-height: 72px; display: grid; align-content: center; gap: 4px; padding: 9px 10px; background: #fff; }
.source-drawer-facts span { color: #718187; font-size: 9.5px; }
.source-drawer-facts b { overflow: hidden; color: #253c45; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.source-drawer-facts small { color: #7a8b91; font: 9px var(--font-mono); }
.source-drawer-fields { margin-bottom: 10px; padding: 11px; border: 1px solid #daddda; border-radius: var(--radius-md); background: #fff; }
.source-drawer-fields h3 { margin: 0 0 8px; color: #2a414a; font-size: 12px; }
.source-drawer-fields > div { display: flex; flex-wrap: wrap; gap: 4px; }
.source-drawer-fields span { padding: 3px 6px; color: #536970; border: 1px solid #d9dedc; background: #fafaf9; font: 9px var(--font-mono); }
.source-drawer-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; padding: 10px 0 2px; background: linear-gradient(transparent, #f3f3f1 30%); }
.analysis-panel { min-height: 210px; }
.queue-panel .command-queue > button {
  min-height: 39px;
  grid-template-columns: 29px 62px minmax(0, 1fr) 40px 42px;
  gap: 6px;
  padding: 5px 10px;
}
.queue-panel .command-queue div {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) minmax(130px, 1fr);
  align-items: center;
  gap: 10px;
}
.queue-panel .command-queue div small { margin-top: 0; }
.queue-panel .command-queue div b { font-weight: 400; }
.queue-panel .command-queue > button > strong { font-size: 13px; }

.dashboard-filter-chip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  padding: 4px 7px 4px 10px;
  color: #355f75;
  border: 1px solid #b9ccd6;
  background: #f3f8fa;
  font-size: 10.5px;
}
.dashboard-filter-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-filter-chip button { min-height: 22px; padding: 2px 5px; border: 0; background: transparent; }

@media (max-width: 1200px) and (min-width: 821px) {
  .source-inventory-matrix { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .risk-matrix { grid-template-columns: 58px repeat(4, minmax(0, 1fr)); }
  .killchain { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .killchain::before { display: none; }
  .killchain button:last-child { grid-column: span 2; }
}

@media (max-width: 820px) {
  .source-inventory-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .observation-ring { width: 116px; height: 116px; }
  .observation-ring > span { width: 82px; height: 82px; }
  .observation-ring strong { font-size: 22px; }
  .risk-matrix { height: 224px; grid-template-columns: 58px repeat(4, minmax(0, 1fr)); padding: 8px; }
  .killchain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .killchain::before { display: none; }
  .killchain button:last-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .source-inventory-matrix { grid-template-columns: 1fr; }
  .source-drawer-facts { grid-template-columns: 1fr; }
  .risk-matrix { overflow-x: auto; grid-template-columns: 58px repeat(4, 62px); }
  .killchain { grid-template-columns: 1fr; }
  .killchain button:last-child { grid-column: auto; }
}

/* Time Lens keeps every control available, but can collapse to its range header. */
.time-console.collapsed,
body.overview-page .time-console.collapsed {
  min-height: 42px;
  padding: 7px 16px;
}
.time-console.collapsed > :not(.time-head) { display: none; }
.time-window-readable {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.time-controls { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.time-head .time-inputs {
  min-height: 0;
  gap: 5px;
  padding: 0;
  border-top: 0;
}
.time-head .time-inputs label { gap: 4px; font-size: 9.5px; }
.time-head .time-inputs input { width: 148px; min-height: 27px; padding: 4px 6px; font-size: 10.5px; }
.time-head .time-inputs button { min-height: 27px; padding: 4px 7px; color: #fff; font-size: 10.5px; }
.time-head .time-inputs button span,
.time-head .time-inputs button .lucide { color: #fff; }
.time-console.collapsed .time-inputs { display: none; }
.source-grid-scroll { scrollbar-gutter: stable; }
.source-data-table { min-width: max(100%, calc(var(--source-columns) * 128px + 42px)); }
.source-data-table th:first-child,
.source-data-table td:first-child { position: sticky; left: 0; box-shadow: 1px 0 #dfe5e8; }
.source-data-table th:first-child { z-index: 5; background: #edf2f4; }
.source-data-table td:first-child { z-index: 3; background: #fff; }
.source-data-table tbody tr:nth-child(even) td:first-child { background: #fafbfc; }
.source-data-table tbody tr:hover td:first-child { background: #edf7f5; }
.row-primary-cell { min-width: 0; display: flex; align-items: center; gap: 5px; }
.row-inspect-link { max-width: 100%; min-height: 0 !important; overflow: hidden; padding: 0 !important; color: inherit; border: 0; background: transparent; font: inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.row-inspect-link:hover { color: #1e6277; text-decoration: underline; text-underline-offset: 2px; }
.row-inspect-link:focus-visible { border-radius: 2px; outline: 2px solid #4d8faa; outline-offset: 2px; }
.row-evidence-button { width: 22px; min-width: 22px; min-height: 22px !important; margin-left: auto; padding: 0 !important; color: #6f8188; border-color: #d4dde0; opacity: .55; }
.row-evidence-button .lucide { width: 11px; height: 11px; }
.source-data-table tr:hover .row-evidence-button,
.row-evidence-button:focus-visible,
.row-evidence-button.selected { opacity: 1; }
.row-evidence-button.selected { color: #fff; border-color: #278f79; background: #278f79; }
.column-picker[open] summary { color: #245c6f; border-color: #8eb2c0; background: #f6fafb; }
.column-picker[data-dirty="true"] summary::after { content: " · 적용"; color: #287b67; font-size: 9px; }
.filter-builder { position: relative; align-self: end; }
.filter-builder > summary { min-height: 34px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; color: #536a74; border: 1px solid #cbd6da; border-radius: 5px; background: #fff; cursor: pointer; font-size: 10.5px; list-style: none; white-space: nowrap; }
.filter-builder > summary::-webkit-details-marker { display: none; }
.filter-builder > summary .lucide { width: 12px; height: 12px; }
.filter-builder[open] > summary { color: #245c6f; border-color: #8eb2c0; background: #f5fafb; }
.filter-builder > div { position: absolute; z-index: 8; top: 39px; right: 0; width: min(520px, 80vw); overflow: hidden; border: 1px solid #cbd6da; border-radius: 7px; background: #fff; box-shadow: 0 14px 34px rgba(31, 49, 59, .16); }
.filter-builder header { min-height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 6px 9px; border-bottom: 1px solid #dde4e6; }
.filter-builder header b { color: #2b4651; font-size: 11px; }
.filter-builder header button { min-height: 24px; padding: 3px 5px; border: 0; background: transparent; }
.filter-builder header .lucide { width: 12px; height: 12px; }
.filter-builder section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 9px; }
.filter-builder section label { display: grid; gap: 3px; color: #687b82; font-size: 9.5px; }
.filter-builder section input { width: 100%; min-height: 30px; font-size: 10.5px; }
.lens-toolbar:not(.compact) { grid-template-columns: minmax(250px, 1.8fr) repeat(3, minmax(120px, 1fr)) auto auto auto; }
.page-actions-only { min-height: 36px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-bottom: 8px; }
.page-actions-only > span { color: #62737a; font-size: 10.5px; }
.section-title { margin: 14px 2px 7px; color: #263d46; font-size: 14px; }
.metric-info { width: 17px; min-width: 17px; min-height: 17px; margin-left: 3px; padding: 0; border-radius: 50%; font-size: 9px; }
.operational-chip { padding: 4px 7px; border: 1px solid #cad4d7; background: #fff; }
.operational-chip.ok { color: #267157; border-color: #afd4c5; background: #f4faf7; }
.operational-chip.warning { color: #945d18; border-color: #e3c89e; background: #fff9ef; }

/* Dense evidence tables: one visual line per record, detail lives in inspectors. */
.data-table th { height: 32px; padding-block: 5px; font-size: 11px; }
.data-table td { height: 34px; padding-block: 5px; font-size: 11.5px; }
.data-table td b,
.data-table td small { display: inline; }
.data-table td small { margin: 0; font-size: 9.5px; }
.data-table td small:not(:empty)::before { content: " · "; }
.data-table td > code,
.data-table td > span:not(.badge) { display: inline; }
.data-table button { min-height: 23px; padding: 2px 6px; font-size: 10.5px; }
.table-primary-link { max-width: 100%; overflow: hidden; padding: 0 !important; color: #244b62; border: 0; background: transparent; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.rule-inspector-code { margin: 10px 0 0; padding: 12px; overflow: auto; color: #dce7eb; border-radius: 6px; background: #19272f; font: 10.5px/1.55 var(--font-mono); white-space: pre-wrap; }

/* Compact incident tabs and a single bulk decision surface. */
.incident-toolbar .alert-status-tabs button { min-width: 74px; min-height: 30px; padding: 4px 8px; }
.incident-bulk-bar { display: grid; grid-template-columns: auto minmax(240px, 1fr) auto; align-items: center; gap: 9px; margin-bottom: 8px; padding: 6px 8px; border: 1px solid #cdd7da; border-radius: 6px; background: #fff; }
.incident-bulk-bar > b { min-width: 62px; color: #315c70; font-size: 11px; }
.incident-bulk-bar label { min-width: 0; display: grid; grid-template-columns: auto minmax(120px, 1fr); align-items: center; gap: 7px; color: #697a81; font-size: 10px; }
.incident-bulk-bar textarea { width: 100%; min-height: 28px; height: 28px; padding: 5px 7px; resize: vertical; font-size: 11px; }
.incident-bulk-bar > div { display: flex; gap: 4px; }
.incident-bulk-bar button { min-height: 28px; padding: 4px 8px; font-size: 10.5px; }
.incident-queue .row-actions { min-width: 62px; }
.incident-queue td:nth-child(5) { min-width: 190px; }
.incident-queue .row-actions input { width: 14px; min-height: 14px; margin-right: 4px; }
.incident-link { max-width: 320px; overflow: hidden; padding: 0; border: 0; background: transparent; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.review-flag { margin-left: 5px; padding: 2px 4px; color: #9a6019; background: #faecd5; font-size: 9px; }

/* Case workbench: vertical memory list and stable detail context. */
.case-layout { grid-template-columns: 300px minmax(0, 1fr); align-items: stretch; min-height: 560px; }
.case-list { display: grid; align-content: start; gap: 1px; max-height: 720px; overflow-x: hidden; overflow-y: auto; padding: 0; border-radius: 7px; background: #dfe5e7; }
.case-list > button { width: 100%; min-width: 0; max-width: none; min-height: 48px; padding: 7px 9px; border: 0; border-radius: 0; background: #fff; }
.case-list b { font-size: 11.5px; }
.case-list small { margin-top: 2px; font-size: 9.5px; }
.case-detail { padding: 14px; border-radius: 7px; }
.case-detail h2 { font-size: 19px; }

/* Risk preview belongs to the same bright settings surface. */
.risk-policy-preview { color: #2b414a; border-color: #d2dcdf; background: #fff; box-shadow: 0 8px 24px rgba(31, 49, 59, .075); }
.risk-policy-preview > header { border-bottom-color: #dfe5e7; }
.risk-policy-preview > header span { color: #357b72; }
.risk-policy-preview > header b { color: #1f3741; }
.risk-policy-preview > header em { color: #6f5317; background: #f7e4b7; }
.risk-policy-preview .field { color: #62757d; }
.risk-policy-preview input,
.risk-policy-preview select { color: #253d48; border-color: #d2dcdf; background-color: #fafbfa; }
.risk-policy-preview ol { border-color: #e1e6e8; }
.risk-policy-preview li { color: #64767d; }
.risk-policy-preview li b { color: #243b45; }
.risk-policy-preview > small { color: #78888e; }
.incident-detail-note { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; margin: 8px 0; padding: 7px 9px; color: #667980; border: 1px solid #d5dde0; border-radius: 6px; background: #fff; font-size: 10px; }
.incident-detail-note textarea { min-height: 38px; padding: 6px 8px; resize: vertical; font-size: 11px; }
.compact-basis > header,
.incident-verdict-guide.compact > header { min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid #dce3e5; }
.compact-basis > header h3,
.incident-verdict-guide.compact > header h3 { margin: 0; font-size: 13px; }
.compact-basis > header small,
.incident-verdict-guide.compact > header small { color: #718188; font: 9.5px var(--font-mono); }
.incident-basis-list { display: grid; }
.incident-basis-row { border-bottom: 1px solid #e0e5e7; background: #fff; }
.incident-basis-row:last-child { border-bottom: 0; }
.incident-basis-row > summary { min-height: 36px; display: grid; grid-template-columns: 84px minmax(150px, .8fr) minmax(220px, 1.3fr) auto 14px; align-items: center; gap: 8px; padding: 6px 9px; cursor: pointer; list-style: none; }
.incident-basis-row > summary::-webkit-details-marker { display: none; }
.incident-basis-row > summary span { color: #346b86; font: 9px var(--font-mono); text-transform: uppercase; }
.incident-basis-row > summary b,
.incident-basis-row > summary em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.incident-basis-row > summary b { color: #263e48; font-size: 11px; }
.incident-basis-row > summary em { color: #5c7078; font-size: 10.5px; font-style: normal; }
.incident-basis-row > summary strong { color: #75868c; font-size: 9.5px; font-weight: 600; }
.incident-basis-row > summary .lucide { width: 12px; height: 12px; transition: transform .15s; }
.incident-basis-row[open] > summary .lucide { transform: rotate(180deg); }
.incident-basis-row > div { padding: 8px 9px 10px 101px; border-top: 1px solid #eef1f2; background: #fafbfa; }
.incident-basis-row dl { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 1px; margin: 0; background: #e0e5e7; }
.incident-basis-row dt,
.incident-basis-row dd { margin: 0; padding: 6px 8px; background: #fff; font-size: 10px; }
.incident-basis-row dt { color: #647980; }
.incident-basis-row dd { color: #263f49; }
.basis-rule-detail { margin-top: 7px; }
.basis-rule-detail span { color: #79611f; font-size: 9px; }
.basis-rule-detail pre { margin: 4px 0 0; padding: 8px; overflow: auto; color: #dce7eb; background: #19272f; font: 9.5px/1.45 var(--font-mono); white-space: pre-wrap; }
.rule-snapshot-note { display: block; padding: 6px 9px; color: #7b898e; border-top: 1px solid #e3e7e8; font-size: 9px; }
.incident-verdict-guide.compact { margin-top: 8px; border: 1px solid #d7dfe1; border-radius: 7px; background: #fff; }
.incident-verdict-guide.compact ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px; background: #e0e5e7; list-style: none; }
.incident-verdict-guide.compact li { min-height: 34px; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 6px 8px; background: #fff; }
.incident-verdict-guide.compact li .lucide { width: 12px; height: 12px; }
.incident-verdict-guide.compact li b { overflow: hidden; color: #344d56; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.incident-verdict-guide.compact li em { color: #63767d; font-size: 9px; font-style: normal; }
.incident-verdict-guide.compact li.supported span { color: #2e8b68; }
.incident-verdict-guide.compact li.partial span { color: #b37a24; }
.incident-verdict-guide.compact li.missing span { color: #bd4b51; }
.incident-analysis-facts { display: grid; margin: 8px 0; overflow: hidden; border: 1px solid #d8dfe1; border-radius: 7px; background: #e1e6e8; }
.incident-analysis-facts > div { min-height: 34px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 9px; background: #fff; }
.incident-analysis-facts > div + div { border-top: 1px solid #e1e6e8; }
.incident-analysis-facts b { color: #315d70; font-size: 10px; }
.incident-analysis-facts span { overflow: hidden; color: #465c65; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.incident-analysis-facts em { color: #78878c; font: 9px var(--font-mono); font-style: normal; }
.drawer > header { color: #253d47; border-bottom: 1px solid #d4dde0; background: #fff; }
.drawer > header span { color: #6b7f87; }
.drawer > header h2 { color: #213a45; }
.drawer > header .icon-button.inverse { color: #526872; border-color: #ccd7db; background: #f7f9f9; }
.compact-basis { border-color: #d4dee1; background: #fff; }
@media (max-width: 820px) {
  .time-console.collapsed,
  body.overview-page .time-console.collapsed { min-height: 40px; padding-inline: 9px; }
  .time-head { flex-wrap: wrap; gap: 6px; }
  .time-controls { width: 100%; display: grid; gap: 5px; }
  .time-presets { justify-content: flex-end; }
  .time-head .time-inputs {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) auto;
  }
  .time-head .time-inputs label { min-width: 0; }
  .time-head .time-inputs input { width: 100%; min-width: 0; }
  .incident-bulk-bar { grid-template-columns: 1fr; }
  .case-layout { grid-template-columns: 1fr; }
  .case-list { max-height: 230px; }
  .incident-basis-row > summary { grid-template-columns: 70px minmax(0, 1fr) auto 14px; }
  .incident-basis-row > summary em { display: none; }
  .incident-basis-row > div { padding-left: 9px; }
  .incident-verdict-guide.compact ol { grid-template-columns: 1fr; }
  .lens-toolbar:not(.compact) { grid-template-columns: 1fr 1fr; }
  .lens-toolbar:not(.compact) .search { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .time-head .time-inputs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px; }
  .time-head .time-inputs > .lucide { display: none; }
  .time-head .time-inputs label { font-size: 0; }
  .time-head .time-inputs button { grid-column: auto; width: 28px; min-width: 28px; padding-inline: 6px; }
  .time-head .time-inputs button span { display: none; }
}

/* Pure-white operations field with vivid blue reserved for small interactive signals. */
:root {
  --canvas: #fff;
  --surface: #fff;
  --blue: #0b84c6;
  --teal: #0b84c6;
  --line: #e1e6e9;
  --line-strong: #cdd6db;
  --control-bg: #fff;
  --control-bg-strong: #fff;
  --control-line: #d8e0e4;
  --surface-shadow: none;
  --control-shadow: none;
}
html,
body[data-page],
body[data-page] .shell,
body[data-page] main { background: #fff; }
body[data-page] .rail,
body[data-page] .control-deck,
body[data-page] .topbar,
body[data-page] .time-console {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body[data-page] .rail,
body[data-page] .control-deck { border-color: #d8e0e4; box-shadow: none; }
body[data-page] .rail-status,
body[data-page] .health-chip,
body[data-page] .top-actions .icon-button,
body[data-page] .top-actions .toggle-button,
body[data-page] .source-tabs button,
body[data-page] .detection-source-tabs button,
body[data-page] .lens-toolbar,
body[data-page] .evidence-tray { background: #fff; }
body[data-page] .command-panel,
body[data-page] .command-kpi { box-shadow: none; }
body[data-page] .command-panel-head { background: #fff; }
body[data-page="sources"],
body[data-page="sources"] .shell,
body[data-page="sources"] main,
body[data-page="sources"] .drawer.source-inspector { --canvas: #fff; background: #fff; }

body[data-page="overview"],
body[data-page="investigate"],
body[data-page="data"],
body[data-page="rule-management"] { --page-accent: #0b84c6; }

button.primary,
body.overview-page button.primary {
  color: #fff;
  border-color: #0b84c6;
  background: #0b84c6;
}
button.primary:hover,
body.overview-page button.primary:hover { border-color: #0875b2; background: #0875b2; }
input:focus,
select:focus,
textarea:focus { border-color: #0b84c6; box-shadow: 0 0 0 2px rgba(11, 132, 198, .13); }

.signal-column .source-pcap { background: #0b84c6; }
.command-kpi.blue::before,
.command-kpi.blue header > i,
.command-kpi.blue footer i { background: #0b84c6; }
.command-kpi:not(.red):not(.amber):not(.violet):not(.green):not(.rust) footer i,
.command-bars button > em b { background: #0b84c6; }
.timeline-series.pcap .timeline-area { fill: #0b84c6; }
.timeline-series.pcap polyline { stroke: #0b84c6; }
.timeline-series.pcap circle { fill: #0b84c6; }
.time-legend .pcap::before { background: #0b84c6; }
.nav-group button b { font-size: 11.5px; }

/* Compact global header: page identity supports the work surface instead of dominating it. */
body[data-page] .topbar {
  height: 54px;
  padding-inline: 14px;
}
body[data-page] .page-identity p {
  margin-bottom: 2px;
  font-size: 8.5px;
  line-height: 1;
}
body[data-page] .page-identity h1,
body.overview-page .page-identity h1 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.12;
}
body[data-page] .top-actions { gap: 6px; }
body[data-page] .health-chip {
  min-height: 27px;
  padding: 4px 7px;
  font-size: 11px;
}
body[data-page] .top-actions time { font-size: 11.5px; }
body[data-page] .top-actions .icon-button {
  width: 29px;
  min-width: 29px;
  min-height: 29px;
  padding: 5px;
}
body[data-page] .top-actions .toggle-button {
  min-height: 29px;
  padding: 5px 8px;
  font-size: 11.5px;
}
body[data-page] .top-actions .toggle-button i { width: 21px; height: 12px; }
body[data-page] .top-actions .toggle-button i::after { width: 8px; height: 8px; }
body[data-page] .top-actions .toggle-button.active i::after { margin-left: 9px; }
@media (max-width: 480px) {
  body[data-page] .topbar { height: 50px; padding-inline: 10px; }
  body[data-page] .page-identity h1,
  body.overview-page .page-identity h1 { font-size: 18px; }
}
