.incident-desk {
  --incident-background:#0d1a31;
  --incident-panel:#142641;
  --incident-line:#3b5277;
  --incident-text:#edf4ff;
  --incident-muted:#b1c2de;
  --incident-blue:#8db6ff;
  --incident-action:#b6d0ff;
  display:grid;
  gap:15px;
  color:var(--incident-text);
  background:var(--incident-background);
  border:1px solid var(--incident-line);
  border-radius:22px;
  padding:clamp(12px,2.2vw,23px);
  color-scheme:dark;
  min-width:0;
}
.incident-desk :is(h2,h3,h4,p,ul,ol,dl) {margin:0}
.incident-header,.incident-controls,.incident-evidence-tags,.incident-map-tools,.incident-plan-title,.incident-sheet-top {
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.incident-header {justify-content:space-between;gap:14px 21px}
.incident-header>div:first-child {flex:1 1 260px;min-width:0}
.incident-header h2 {font-size:clamp(24px,3.8vw,34px);margin-block-end:5px}
.incident-header p,.incident-muted {color:var(--incident-muted)}
.incident-controls {gap:6px}
.incident-message {
  padding:8px 11px;
  border-inline-start:3px solid #8db6ff;
  border-radius:7px;
  background:#1a2d4d;
  color:#dceaff;
}
.incident-desk[data-incident-state=simulated]>.incident-message {border-inline-start-color:#c9b3ff}
.incident-desk button {
  min-height:42px;
  max-width:100%;
  white-space:normal;
  background:#1b3458;
  border-color:#52709e;
  color:var(--incident-text);
}
.incident-desk button:hover {background:#244571}
.incident-desk button:focus-visible,.incident-desk summary:focus-visible,.incident-desk :is(input,textarea,canvas):focus-visible {
  outline:2px solid #b7d1ff;
  outline-offset:2px;
}
.incident-desk button[aria-pressed=true] {border-color:#b6d0ff;background:#284971}
.incident-desk .incident-action {
  border-color:var(--incident-action);
  color:#102345;
  background:var(--incident-action);
  font-weight:700;
}
.incident-desk .incident-action:hover {background:#d2e2ff}
.incident-body {display:grid;gap:13px;min-width:0}
.incident-legend {
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:5px 13px;
  padding:0;
}
.incident-state {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--incident-evidence-tint,#bfd2f0);
  font-size:13px;
  font-weight:650;
  white-space:nowrap;
}
.incident-state-live {--incident-evidence-tint:#8db6ff}
.incident-state-simulated {--incident-evidence-tint:#c9b3ff}
.incident-state-stale {--incident-evidence-tint:#ffba72}
.incident-dot {
  display:inline-block;
  width:8px;
  height:8px;
  flex:none;
  border-radius:50%;
  background:currentColor;
}
.incident-state-planned .incident-dot {border-radius:2px;transform:rotate(45deg)}
.incident-state-stale .incident-dot {border-radius:2px}
.incident-state-simulated .incident-dot {background:transparent;border:2px solid currentColor}
.incident-grid {display:grid;grid-template-columns:minmax(0,1.7fr) minmax(265px,1fr);gap:13px;min-width:0;align-items:start}
.incident-stage,.incident-inspector,.incident-timeline,.incident-queue,.incident-editor {
  border:1px solid var(--incident-line);
  border-radius:14px;
  background:var(--incident-panel);
  min-width:0;
}
.incident-stage {display:grid;padding:10px;gap:9px}
.incident-presentation {display:flex;gap:6px;flex-wrap:wrap}
.incident-presentation button {min-width:78px}
.incident-map-pane {display:grid;gap:7px}
.incident-viewport {position:relative}
.incident-canvas.spatial-canvas {
  height:clamp(310px,46vh,485px);
  border:1px solid #496285;
  border-radius:10px;
  touch-action:pan-y pinch-zoom;
}
.incident-stage-label {
  display:flex;
  justify-content:space-between;
  position:absolute;
  inset-inline:9px;
  inset-block-start:8px;
  gap:4px 8px;
  color:#c6d6ee;
  font-size:11px;
  flex-wrap:wrap;
  pointer-events:none;
}
.incident-stage-label span {background:#0d1c34ed;padding:3px 6px;border-radius:5px}
.incident-map-tools {gap:5px}
.incident-map-tools button {min-height:38px}
.incident-inspector {align-self:stretch}
.incident-inspector-content {display:grid;gap:10px;padding:13px;min-width:0;align-content:start}
.incident-inspector-content h3 {font-size:clamp(18px,2.55vw,23px);overflow-wrap:anywhere}
.incident-asset,.incident-focused>strong {color:#d5e1fa;overflow-wrap:anywhere}
.incident-severity {
  font-size:12px;
  line-height:1.4;
  color:#ffd1a0;
  border:1px solid #bc8252;
  background:#493324;
  padding:2px 7px;
  border-radius:6px;
}
.incident-evidence {display:grid;gap:6px;border-block-start:1px solid var(--incident-line);padding-block-start:9px}
.incident-evidence>div {display:grid;grid-template-columns:minmax(95px,.8fr) minmax(0,1fr);gap:8px;font-size:13px}
.incident-evidence dt,.incident-node-kind {color:var(--incident-muted);font-size:12px}
.incident-evidence dd {margin:0;overflow-wrap:anywhere}
.incident-focused {display:grid;gap:3px;border-inline-start:3px solid var(--incident-blue);padding-inline:8px}
.incident-impact,.incident-plan {padding-block-start:9px;border-block-start:1px solid var(--incident-line);display:grid;gap:7px}
.incident-dependencies,.incident-nodes,.incident-queue ul {list-style:none;display:grid;gap:6px;padding:0}
.incident-dependencies>li,.incident-node {
  display:grid;
  align-content:start;
  justify-items:start;
  gap:4px;
  border:1px solid #425a80;
  background:#192e4f;
  border-radius:9px;
  padding:7px 9px;
  overflow-wrap:anywhere;
  width:100%;
  text-align:start;
}
.incident-dependencies>li>strong {font-size:13px}
.incident-dependencies>li>button {min-height:34px}
.incident-node {padding:8px 10px}
.incident-timeline,.incident-queue,.incident-editor {padding:11px 13px}
.incident-timeline h3 {font-size:14px;margin-block-end:4px}
.incident-times {
  display:flex;
  list-style:none;
  padding:4px 0 5px;
  gap:6px;
  overflow-x:auto;
  align-items:stretch;
  scrollbar-color:#7396c7 #183356;
}
.incident-times li {display:flex;flex:1 0 min(160px,55vw)}
.incident-desk .incident-time,.incident-desk .incident-queue-item {
  display:grid;
  width:100%;
  justify-items:start;
  gap:4px;
  text-align:start;
  border-radius:8px;
  padding:7px 8px;
  font-size:13px;
  overflow-wrap:anywhere;
}
.incident-example-plan>summary {color:#c7dcff;min-height:44px}
.incident-desk :is(.incident-time,.incident-queue-item) small {font-size:11px;color:var(--incident-muted)}
.incident-editor>summary,.incident-queue summary {color:#c7dcff;min-height:44px}
.incident-editor-form {display:grid;gap:9px;margin-block-start:9px}
.incident-editor-form label {display:grid;gap:5px;color:var(--incident-muted);font-size:13px}
.incident-editor input {max-width:120px}
.incident-editor :is(input,textarea) {background:#11213a;color:#ecf4ff;border-color:#547096}
.incident-desk .incident-sheet {background:var(--incident-panel);color:var(--incident-text);overflow-y:auto}
.incident-sheet-top {
  display:flex;
  justify-content:space-between;
  padding:8px 13px;
  border-block-end:1px solid var(--incident-line);
  position:sticky;
  inset-block-start:0;
  z-index:1;
  background:var(--incident-panel);
}
.incident-sheet-body {padding-block-end:env(safe-area-inset-bottom,0)}
@media(max-width:930px) {
  .incident-grid {grid-template-columns:minmax(0,1.3fr) minmax(225px,1fr)}
}
@media(max-width:730px) {
  .incident-grid {grid-template-columns:1fr}
  .incident-canvas.spatial-canvas {height:clamp(240px,52dvh,390px)}
  .incident-desk .incident-sheet[open] {
    inset:auto 0 0;
    margin:0;
    max-width:none;
    width:100%;
    max-height:88dvh;
    border-radius:17px 17px 0 0;
    border:1px solid var(--incident-line);
  }
}
@media(prefers-reduced-motion:reduce) {
  .incident-desk * {scroll-behavior:auto;transition:none}
}
