/* AIOps Command Center — dark NOC theme */

:root {
  --bg: #0b0f14;
  --panel: #111822;
  --panel-border: #1d2b3a;
  --text: #d7e0ea;
  --text-dim: #7c8ba0;
  --green: #2ecc71;
  --amber: #f39c12;
  --red: #e74c3c;
  --blue: #3498db;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, "SFMono-Regular",
    Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
}

.grid {
  display: grid;
  height: 100vh;
  gap: 10px;
  padding: 10px;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: auto 1fr 1fr auto;
  grid-template-areas:
    "header header"
    "zone1  zone2"
    "zone1  zone3"
    "ticker ticker";
}

.panel {
  background: linear-gradient(180deg, var(--panel), #0e141c);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(52, 152, 219, 0.03) inset,
    0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

/* ---------- header ---------- */

.header {
  grid-area: header;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 18px;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-title h1 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px 2px rgba(46, 204, 113, 0.7);
  flex: none;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

#scenario-select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 13px;
  min-width: 220px;
}

#trigger-btn {
  background: rgba(52, 152, 219, 0.12);
  color: var(--blue);
  border: 1px solid rgba(52, 152, 219, 0.5);
  border-radius: 6px;
  padding: 6px 16px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

#trigger-btn:hover {
  background: rgba(52, 152, 219, 0.22);
  box-shadow: 0 0 12px rgba(52, 152, 219, 0.35);
}

#trigger-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.health-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  white-space: nowrap;
}

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  flex: none;
}

.chip.ok { color: var(--text); }
.chip.ok .dot { background: var(--green); box-shadow: 0 0 6px rgba(46, 204, 113, 0.8); }

.chip.err { color: var(--text); }
.chip.err .dot { background: var(--red); box-shadow: 0 0 6px rgba(231, 76, 60, 0.8); }

.chip.warn .dot { background: var(--amber); box-shadow: 0 0 6px rgba(243, 156, 18, 0.8); }

.replay-badge {
  flex: 0 0 auto;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber);
  border: 1px solid rgba(243, 156, 18, 0.6);
  background: rgba(243, 156, 18, 0.1);
  box-shadow: 0 0 10px rgba(243, 156, 18, 0.35);
  animation: replay-pulse 2s ease-in-out infinite;
}

@keyframes replay-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ---------- zones ---------- */

.zone1 {
  grid-area: zone1;
  position: relative;
  min-height: 0;
}

.zone1-stage {
  position: absolute;
  inset: 0;
}

#topo-map, #particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#particles {
  pointer-events: none;
}

.zone2 {
  grid-area: zone2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
  gap: 10px;
}

#pipeline {
  width: 100%;
  height: 40%;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

.incident-card {
  flex: 1 1 auto;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 10px 12px;
}

.incident-card.resolved {
  border-left: 3px solid var(--green);
}

.zone3 {
  grid-area: zone3;
  padding: 12px;
  min-height: 0;
  display: flex;
}

.runbook-panel {
  flex: 1 1 auto;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 10px 12px;
}

.placeholder {
  color: var(--text-dim);
  font-size: 13px;
  margin: 4px 0;
}

/* ---------- ticker ---------- */

.ticker-bar {
  grid-area: ticker;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.ticker {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--text-dim);
}

.ticker-item {
  color: var(--text);
}

.ticker-item.sev-critical { color: var(--red); }
.ticker-item.sev-error { color: var(--red); }
.ticker-item.sev-warn { color: var(--amber); }
.ticker-item.sev-info { color: var(--text-dim); }

.ticker-item.flash { animation: ticker-flash 1s ease-out 2; }

@keyframes ticker-flash {
  0%, 100% { background: transparent; }
  50% { background: rgba(231, 76, 60, 0.25); }
}

/* ---------- topology map ---------- */

.node-rect {
  fill: rgba(255, 255, 255, 0.02);
  stroke: var(--panel-border);
  stroke-width: 1;
}

.node-name {
  fill: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.node-tier {
  fill: var(--text-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sparkline {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2px;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.75;
}

.status-ring {
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
}

.status-ring.status-green { fill: var(--green); filter: drop-shadow(0 0 3px rgba(46, 204, 113, 0.8)); }
.status-ring.status-amber { fill: var(--amber); filter: drop-shadow(0 0 4px rgba(243, 156, 18, 0.9)); }
.status-ring.status-red { fill: var(--red); filter: drop-shadow(0 0 5px rgba(231, 76, 60, 0.95)); }

.status-ring.pulse {
  animation: ring-pulse 2s ease-out 1;
}

@keyframes ring-pulse {
  0% { transform: scale(1); }
  25% { transform: scale(2.2); }
  100% { transform: scale(1); }
}

/* ---------- pipeline ---------- */

.stage-rect {
  fill: rgba(255, 255, 255, 0.02);
  stroke: var(--panel-border);
  stroke-width: 1;
  transition: stroke 0.2s ease, fill 0.2s ease;
}

.pipeline-stage.active .stage-rect {
  stroke: var(--blue);
  fill: rgba(52, 152, 219, 0.08);
}

.pipeline-stage.flash-done .stage-rect {
  stroke: var(--green);
  fill: rgba(46, 204, 113, 0.14);
}

.stage-label {
  fill: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.stage-sub {
  fill: var(--text-dim);
  font-family: var(--mono);
  font-size: 10px;
}

.stage-thinking {
  fill: var(--blue);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 2px;
}

.stage-arrow {
  stroke: var(--panel-border);
  stroke-width: 1.5;
}

.arrow-head {
  fill: var(--panel-border);
}

.pipeline-packet {
  fill: var(--blue);
  filter: drop-shadow(0 0 6px rgba(52, 152, 219, 0.9));
}

/* ---------- incident card ---------- */

.incident-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.incident-id {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.incident-meta {
  color: var(--text-dim);
  font-size: 12px;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
}

.badge-degraded { color: var(--amber); border-color: rgba(243, 156, 18, 0.6); background: rgba(243, 156, 18, 0.1); }
.badge-resolved { color: var(--green); border-color: rgba(46, 204, 113, 0.6); background: rgba(46, 204, 113, 0.1); }
.badge-complete { color: var(--blue); border-color: rgba(52, 152, 219, 0.6); background: rgba(52, 152, 219, 0.1); }
.badge-error { color: var(--red); border-color: rgba(231, 76, 60, 0.6); background: rgba(231, 76, 60, 0.1); }
/* provisional (rendered-at-open) RCA results, replaced in place by final frames */
.badge-provisional { color: var(--amber); border-color: rgba(243, 156, 18, 0.6); background: rgba(243, 156, 18, 0.08); border-style: dashed; }
/* phase-2a self-heal: AI resolve is blue (distinct from operator green);
   a failed heal escalates to a human in red */
.badge-resolved-ai { color: var(--blue); border-color: rgba(52, 152, 219, 0.7); background: rgba(52, 152, 219, 0.14); }
.badge-escalate { color: var(--red); border-color: rgba(231, 76, 60, 0.7); background: rgba(231, 76, 60, 0.14); }

/* top action row in the runbook panel: PRELIMINARY tag + upper resolve button */
.runbook-actions.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.runbook-actions.top .resolve-btn { margin-top: 0; margin-left: auto; }
.runbook-actions.top .heal-btn { margin-top: 0; margin-left: auto; }
.runbook-actions.top .escalate-btn { margin-top: 0; margin-left: auto; }
/* first button in the row takes the auto push; the rest sit beside it */
.runbook-actions.top .heal-btn ~ .resolve-btn,
.runbook-actions.top .heal-btn ~ .escalate-btn,
.runbook-actions.top .escalate-btn ~ .resolve-btn { margin-left: 8px; }
.runbook-actions.top:empty { display: none; }

.queued-badge {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 11px;
  border: 1px dashed var(--panel-border);
  border-radius: 999px;
  padding: 2px 8px;
}

.blast-radius {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tier-chip {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tier-chip.tier-web { background: rgba(52, 152, 219, 0.16); }
.tier-chip.tier-app { background: rgba(155, 89, 182, 0.16); }
.tier-chip.tier-mq { background: rgba(22, 160, 133, 0.16); }
.tier-chip.tier-kafka { background: rgba(41, 128, 185, 0.16); }
.tier-chip.tier-db2 { background: rgba(142, 68, 173, 0.16); }
.tier-chip.tier-oracle { background: rgba(52, 73, 94, 0.28); }
.tier-chip.tier-unknown { background: rgba(255, 255, 255, 0.05); }

/* thin bars shared by confidence + runbook score charts:
   4px rounded ends, value label in ink text beside (never in the fill),
   winner highlighted, non-winners muted — never status-colored */

.bar-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  flex: 1 1 auto;
  overflow: hidden;
}

.bar-fill {
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
}

.hypotheses .hyp-row + .hyp-row { margin-top: 10px; }

.hyp-row.muted { opacity: 0.55; }
.hyp-row.muted .bar-fill { opacity: 0.6; }

.hyp-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
  font-size: 12.5px;
}

.hyp-cause { color: var(--text); }
.hyp-conf { color: var(--text); font-variant-numeric: tabular-nums; }

.hyp-reason {
  color: var(--text-dim);
  font-size: 11.5px;
  margin-top: 4px;
}

/* ---------- runbook panel ---------- */

.runbook-slide {
  transform: translateX(24px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.runbook-slide.in {
  transform: translateX(0);
  opacity: 1;
}

.rationale {
  margin: 0 0 10px;
  padding: 6px 10px;
  border-left: 2px solid var(--blue);
  color: var(--text-dim);
  font-size: 12px;
  font-style: normal;
}

.score-chart { margin-bottom: 12px; }

.score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.score-row + .score-row { margin-top: 2px; }

.score-row.muted { opacity: 0.55; }
.score-row.muted .bar-fill { opacity: 0.6; }

.score-id {
  flex: 0 0 60px;
  color: var(--text);
  font-weight: 600;
}

.score-val {
  flex: 0 0 48px;
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.runbook-title {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text);
}

.runbook-md {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.runbook-md h1, .runbook-md h2, .runbook-md h3,
.runbook-md h4, .runbook-md h5, .runbook-md h6 {
  color: var(--text);
  margin: 12px 0 6px;
}

.runbook-md ul, .runbook-md ol { margin: 6px 0; padding-left: 20px; }
.runbook-md li { margin: 2px 0; }
.runbook-md p { margin: 6px 0; }

.runbook-md code {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--mono);
  color: var(--blue);
}

.resolve-btn {
  display: inline-block;
  margin-top: 14px;
  background: rgba(46, 204, 113, 0.12);
  color: var(--green);
  border: 1px solid rgba(46, 204, 113, 0.5);
  border-radius: 6px;
  padding: 6px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.resolve-btn:hover {
  background: rgba(46, 204, 113, 0.22);
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.35);
}

.resolve-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- phase-2a AI self-heal (P4) ---------- */

.heal-btn {
  display: inline-block;
  margin-top: 14px;
  background: rgba(52, 152, 219, 0.12);
  color: var(--blue);
  border: 1px solid rgba(52, 152, 219, 0.5);
  border-radius: 6px;
  padding: 6px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.heal-btn:hover {
  background: rgba(52, 152, 219, 0.22);
  box-shadow: 0 0 12px rgba(52, 152, 219, 0.35);
}

.heal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.heal-block {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(52, 152, 219, 0.35);
  border-radius: 8px;
  background: rgba(52, 152, 219, 0.06);
  font-size: 12.5px;
}

.heal-block-head {
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.heal-step,
.heal-validation {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.heal-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  flex: 0 0 14px;
  font-weight: 700;
}

.heal-icon.ok { color: var(--green); }
.heal-icon.err { color: var(--red); }

.heal-icon.spinner {
  border: 2px solid rgba(52, 152, 219, 0.25);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: heal-spin 0.8s linear infinite;
}

@keyframes heal-spin {
  to { transform: rotate(360deg); }
}

.heal-validation { border-top: 1px dashed rgba(52, 152, 219, 0.3); margin-top: 6px; padding-top: 8px; }
.heal-validation.pending { color: var(--text-dim); }
.heal-validation.ok { color: var(--green); }
.heal-validation.failed { color: var(--red); }

.heal-narration {
  margin-top: 8px;
  font-style: italic;
  color: var(--text-dim);
}

/* a failed heal reveals the runbook's Escalation section prominently */
.escalation-highlight {
  color: var(--red);
  border-left: 3px solid var(--red);
  padding-left: 8px;
  background: rgba(231, 76, 60, 0.08);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text);
  border: 1px solid rgba(231, 76, 60, 0.6);
  background: rgba(231, 76, 60, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- escalation (walkthrough feedback 2026-07-13) ---------- */

.escalate-btn {
  display: inline-block;
  margin-top: 14px;
  background: rgba(231, 76, 60, 0.12);
  color: var(--red);
  border: 1px solid rgba(231, 76, 60, 0.5);
  border-radius: 6px;
  padding: 6px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.escalate-btn:hover {
  background: rgba(231, 76, 60, 0.22);
  box-shadow: 0 0 12px rgba(231, 76, 60, 0.35);
}

.escalate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Full-width banner: the human handoff must be impossible to miss */
.escalate-banner {
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid rgba(231, 76, 60, 0.7);
  border-left-width: 5px;
  border-radius: 6px;
  background: rgba(231, 76, 60, 0.14);
  color: var(--red);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: escalate-pulse 1.6s ease-in-out 3;
}

@keyframes escalate-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(231, 76, 60, 0); }
  50% { box-shadow: 0 0 18px rgba(231, 76, 60, 0.55); }
}

/* diagnostics collected by a heal step (2026-07-13) */
.heal-artifacts {
  margin: -2px 0 6px 26px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim, #8b98a9);
  opacity: 0.9;
}

/* deployed-version tag in the header title */
.version-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  vertical-align: middle;
  margin-left: 4px;
}

/* Trigger button doubles as the in-flight beacon (interactive replay) */
#trigger-btn.in-flight {
  color: var(--amber);
  border-color: rgba(243, 156, 18, 0.6);
  background: rgba(243, 156, 18, 0.1);
  opacity: 1;
  cursor: default;
  animation: in-flight-pulse 1.8s ease-in-out infinite;
}

@keyframes in-flight-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(243, 156, 18, 0); }
  50% { box-shadow: 0 0 12px rgba(243, 156, 18, 0.45); }
}

/* Big in-flight banner over the topology map — impossible to miss */
.inflight-banner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 26px;
  border: 2px solid rgba(243, 156, 18, 0.8);
  border-radius: 8px;
  background: rgba(20, 14, 2, 0.85);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
  animation: in-flight-pulse 1.8s ease-in-out infinite;
}

/* ---------- incident strip (phase 3: simultaneous incidents) ---------- */

.incident-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 auto;
}

.incident-strip[hidden] { display: none; }

.strip-chip {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.strip-chip:hover { box-shadow: 0 0 8px rgba(52, 152, 219, 0.35); }
.strip-chip.focused { border-color: var(--blue); color: var(--text); box-shadow: 0 0 8px rgba(52, 152, 219, 0.4); }
.strip-chip.busy { color: var(--text-dim); }
.strip-chip.ready { color: var(--green); border-color: rgba(46, 204, 113, 0.45); }
.strip-chip.healing { color: var(--blue); border-color: rgba(52, 152, 219, 0.55); animation: in-flight-pulse 1.8s ease-in-out infinite; }
.strip-chip.warn { color: var(--amber); border-color: rgba(243, 156, 18, 0.5); }
.strip-chip.esc { color: var(--red); border-color: rgba(231, 76, 60, 0.6); }
.strip-chip.ok { color: var(--green); border-color: rgba(46, 204, 113, 0.6); }
.strip-chip.ok-ai { color: var(--blue); border-color: rgba(52, 152, 219, 0.6); }

/* ---------- executive readability (2026-07-13) ---------- */

.panel-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex: 0 0 auto;
}

.zone1-stage .panel-title {
  position: absolute;
  top: 10px;
  left: 14px;
  z-index: 3;
  pointer-events: none;
}

.mini-head {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 8px 0 4px;
}

.rb-code {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-left: 8px;
}

/* first-visit explainer (public replay builds) */
#welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 8, 12, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-card {
  max-width: 560px;
  margin: 20px;
  padding: 26px 30px;
  background: linear-gradient(180deg, var(--panel), #0e141c);
  border: 1px solid rgba(52, 152, 219, 0.5);
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(52, 152, 219, 0.15);
  font-size: 13.5px;
  line-height: 1.55;
}

.welcome-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
}

.welcome-card ol { margin: 10px 0; padding-left: 22px; }
.welcome-card li { margin: 6px 0; }
.welcome-hint { color: var(--text-dim); font-size: 12.5px; }

#welcome-dismiss {
  margin-top: 12px;
  background: rgba(52, 152, 219, 0.15);
  color: var(--blue);
  border: 1px solid rgba(52, 152, 219, 0.6);
  border-radius: 8px;
  padding: 9px 22px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#welcome-dismiss:hover { background: rgba(52, 152, 219, 0.28); }

/* zone3 is display:flex (row) — stack the panel title ABOVE the runbook
   panel, not beside it (it was squeezing the panel into an indent) */
.zone3 {
  flex-direction: column;
  gap: 8px;
}

/* strip stays compact: two rows max, then scrolls */
.incident-strip {
  max-height: 62px;
  overflow-y: auto;
}
