.insight-dashboard { margin: 0 0 32px; }
.insight-dashboard>header { margin-bottom:20px; }
.insight-filters { display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:16px;align-items:end;margin-bottom:20px; }
.insight-actions { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0; }
.insight-chart-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:20px; }
.insight-panel { padding:22px;min-width:0; }
.insight-panel h3,.insight-timeline h3 { margin:0 0 8px; }
.insight-panel p,.insight-scope { color:#526879;font-size:.85rem;line-height:1.6; }
.insight-panel details { margin-top:16px; }
.insight-chart { display:block;width:100%;height:auto;min-height:190px;margin:18px 0;overflow:visible; }
.insight-chart-label { font:11px system-ui,sans-serif;fill:#405765; }
.insight-axis { stroke:#dbe3e8;stroke-width:1; }
.insight-axis.insight-axis-base { stroke:#8ca0ab;stroke-width:1.5; }
.insight-chart-value { font:600 11px system-ui,sans-serif;fill:#26333c; }
.insight-bar { fill:#087f83; }
.insight-bar.band-LOW { fill:#077453; }.insight-bar.band-MEDIUM { fill:#936009; }.insight-bar.band-HIGH { fill:#b75215; }.insight-bar.band-CRITICAL { fill:#b2223f; }
.insight-donut { min-height:224px; }
/* Slice fills are the discipline tag hues, so the ring and the tag on an alert agree. */
.insight-slice { fill:#31424d;stroke:#fff;stroke-width:1.5; }
.insight-slice.slice-AML{fill:#1b4a7a;}.insight-slice.slice-CFT{fill:#5b2d82;}
.insight-slice.slice-CTF{fill:#5b2d82;}.insight-slice.slice-FRAUD{fill:#8d2b21;}
.insight-slice.slice-AGENT{fill:#1d5c39;}.insight-slice.slice-BOTH{fill:#7a4c10;}
.insight-donut-total { font:700 22px system-ui,sans-serif;fill:#16232b; }
.insight-pager { display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px; }
.insight-pager>span { margin-right:auto; }
.insight-alert-heading,.insight-timeline { margin:0 0 28px; }
.insight-lead { font-size:1.05rem;line-height:1.65;max-width:68ch; }
[data-insight-explanation] h3 { margin-top:22px; }
.insight-warnings { padding:18px;border-left:4px solid #ac6a08;background:#fff8e8;border-radius:8px;margin:20px 0; }
.insight-warnings h4 { margin:0; }.insight-warnings ul { margin-bottom:0; }
.insight-timeline { border-top:1px solid #d7e2e8;padding-top:24px; }
.insight-timeline .field { max-width:350px;margin:16px 0; }
.insight-dashboard table,.insight-timeline table { min-width:480px; }
.insight-dashboard .table-wrap,.insight-timeline .table-wrap { max-width:100%;overflow:auto; }
.insight-dashboard button:focus-visible,.insight-dashboard summary:focus-visible,.insight-timeline select:focus-visible { outline:3px solid #216ecc;outline-offset:3px; }
.staff-original-evidence dd { overflow-wrap:anywhere; }
.insight-baseline { margin:28px 0; }
.insight-baseline dl { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 16px; }
.insight-baseline dd { margin:0;overflow-wrap:anywhere; }
@media(max-width:1000px){.insight-filters{grid-template-columns:repeat(2,minmax(0,1fr));}.insight-chart-grid{grid-template-columns:1fr;}.insight-actions{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:520px){.insight-filters{grid-template-columns:1fr;}.insight-panel{padding:16px;}.insight-actions{gap:10px;}.insight-actions .staff-stat{padding:14px;}.insight-actions .staff-stat span{overflow-wrap:anywhere;}.insight-dashboard{margin-bottom:24px;}}
@media(prefers-reduced-motion:reduce){.insight-dashboard *,.insight-timeline *{animation:none!important;transition:none!important;}}

.insight-headline { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px; }
.insight-headline-item { background:#f4f7f9;border:1px solid #e2e9ed;border-radius:8px;padding:12px 14px; }
.insight-headline-item span { display:block;font:500 12px system-ui,sans-serif;color:#516470;margin-bottom:4px; }
.insight-headline-item strong { font:700 22px system-ui,sans-serif;color:#16232b;line-height:1.1; }
.insight-legend { display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:-6px 0 4px;font:12px system-ui,sans-serif;color:#516470; }
.insight-legend-key { display:inline-block;width:10px;height:10px;border-radius:2px;background:#087f83;margin-right:2px; }
.insight-legend-key.band-LOW{background:#077453;}.insight-legend-key.band-MEDIUM{background:#936009;}.insight-legend-key.band-HIGH{background:#b75215;}.insight-legend-key.band-CRITICAL{background:#b2223f;}
@media(max-width:1000px){.insight-headline{grid-template-columns:repeat(2,minmax(0,1fr));}}

.control-tag { display:inline-block;margin-left:6px;padding:1px 7px;border-radius:10px;font:700 10px/1.7 system-ui,sans-serif;letter-spacing:.04em;vertical-align:middle;background:#e8eef2;color:#31424d;border:1px solid #d3dee5; }
.control-tag.tag-AML{background:#e7f0fb;color:#1b4a7a;border-color:#c7ddf3;}
.control-tag.tag-CFT{background:#f3ebfa;color:#5b2d82;border-color:#e0cef2;}
.control-tag.tag-FRAUD{background:#fdeceb;color:#8d2b21;border-color:#f6cfcb;}
.control-tag.tag-AGENT{background:#eaf6ef;color:#1d5c39;border-color:#cfe8da;}
.control-tag.tag-BOTH{background:#fdf3e3;color:#7a4c10;border-color:#f2ddbc;}

.insight-rule-line { margin:2px 0 8px;font:13px system-ui,sans-serif;color:#31424d; }
.insight-rule-line small { color:#6b7c87;font:11px ui-monospace,SFMono-Regular,Menlo,monospace;margin-left:6px; }

.response-mode-banner{--response-banner-gap:16px;margin:var(--response-banner-gap) 24px 16px;padding:12px 16px;border:1px solid #adcfc9;border-left:4px solid #087c77;border-radius:8px;background:#edf7f5;color:#143e40;font-size:13px;line-height:1.5;flex-shrink:0}
.response-mode-banner[data-mode="UNKNOWN"]{background:#fff4df;border-color:#bd8732;color:#674611}
.drawer>.response-mode-banner{margin:var(--response-banner-gap) 20px var(--response-banner-gap)}
@media(max-width:650px){.response-mode-banner{--response-banner-gap:12px;margin:var(--response-banner-gap) 12px 12px}}

.workspace>.response-mode-banner{position:sticky;top:calc(var(--response-header-height,84px) + var(--response-banner-gap));z-index:19}
.drawer{grid-template-rows:auto auto minmax(0,1fr)}
.drawer-body{min-height:0}
.case-feed-slice{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;margin:12px 0}
@media(max-width:650px){.case-feed-slice{grid-template-columns:1fr 1fr}.case-feed-slice>label:first-child{grid-column:1/-1}}

.staff-position-evidence { overflow-wrap:anywhere; }
.staff-position-evidence code { display:block; white-space:normal; overflow-wrap:anywhere; }
#case-scope-form > .field { margin-bottom:12px; }
