/* ═══════════════════════════════════════════════════════════════
   INCIDENTS CSS — breadcrumb, shield row pulse, HITL live, empty state
   ═══════════════════════════════════════════════════════════════ */

/* ─── BREADCRUMB (floating top bar across screens) ───── */
.inc-breadcrumb {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: var(--bg);
  border: 2px solid var(--t1);
  border-radius: var(--r-c);
  font-family: var(--mono);
  font-size: 11px;
  max-width: 96vw;
}
.inc-breadcrumb .bc-chip {
  font-size: 9px;
  letter-spacing: 0.2em;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--r-chip);
  color: var(--bg);
  text-transform: uppercase;
}
.inc-breadcrumb .bc-chip.severity-critical { background: var(--fail); }
.inc-breadcrumb .bc-chip.severity-high     { background: var(--hold); }
.inc-breadcrumb .bc-chip.severity-medium   { background: var(--hold-wash); color: var(--t1); }
.inc-breadcrumb .bc-id {
  font-weight: 700;
  font-size: 11px;
  color: var(--t1);
  letter-spacing: 0.08em;
}
.inc-breadcrumb .bc-flow {
  display: flex;
  align-items: center;
  gap: 6px;
}
.inc-breadcrumb .bc-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  background: transparent;
  border: 1px solid var(--b2);
  border-radius: var(--r-c);
  color: var(--t2);
  cursor: pointer;
  font-family: var(--mono);
  transition: all .12s;
}
.inc-breadcrumb .bc-step:hover {
  background: var(--s2);
  border-color: var(--t2);
}
.inc-breadcrumb .bc-step .bs-n {
  font-size: 9px;
  font-weight: 700;
  color: var(--t3);
  letter-spacing: 0.15em;
}
.inc-breadcrumb .bc-step .bs-l {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.inc-breadcrumb .bc-step .bs-d {
  font-size: 10px;
  color: var(--t3);
  padding-left: 6px;
  border-left: 1px solid var(--b2);
}
.inc-breadcrumb .bc-step.done {
  background: var(--mint-wash);
  border-color: var(--mint);
  color: var(--t1);
}
.inc-breadcrumb .bc-step.done .bs-n,
.inc-breadcrumb .bc-step.done .bs-d,
.inc-breadcrumb .bc-step.done .bs-l { color: var(--t1); border-color: var(--b3); }
.inc-breadcrumb .bc-step.current {
  background: var(--t1);
  border-color: var(--t1);
  color: var(--bg);
  animation: incBcPulse 1.6s ease-in-out infinite;
}
.inc-breadcrumb .bc-step.current .bs-n,
.inc-breadcrumb .bc-step.current .bs-d,
.inc-breadcrumb .bc-step.current .bs-l { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
.inc-breadcrumb .bc-arrow {
  color: var(--t3);
  font-size: 12px;
}
.inc-breadcrumb .bc-reason {
  color: var(--t2);
  font-size: 11px;
  padding-left: 8px;
  border-left: 1px solid var(--b2);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inc-breadcrumb .bc-close {
  background: transparent;
  border: 0;
  color: var(--t3);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
}
@keyframes incBcPulse {
  0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--t1) 50%, transparent); }
  50%     { box-shadow: 0 0 0 6px transparent; }
}

/* ─── SHIELD ROW · simulate button + pulse ───────────── */
.shield-rule .sr-sim {
  margin-left: 12px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--b2);
  border-radius: var(--r-c);
  color: var(--t2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .12s;
}
.shield-rule .sr-sim:hover {
  background: var(--fail-wash);
  border-color: var(--fail);
  color: var(--fail);
}
.shield-rule.shield-row-pulse {
  animation: incShieldPulse 1s ease-out 2;
  background: color-mix(in srgb, var(--t1) 4%, transparent);
}
@keyframes incShieldPulse {
  0%   { background: color-mix(in srgb, var(--t1) 8%, transparent); }
  100% { background: transparent; }
}

/* ─── HITL live row ──────────────────────────────────── */
.hitl.live-hitl {
  position: relative;
  border-left: 3px solid var(--hold);
  background: var(--bg);
  animation: incHitlIn .4s ease-out;
}
@keyframes incHitlIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hitl.live-hitl .hitl-wait {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--r-chip);
  background: var(--t1);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-right: 8px;
}
.hitl.live-hitl .sev-critical { color: var(--fail); font-weight: 700; }
.hitl.live-hitl .sev-high     { color: var(--hold); font-weight: 700; }
.hitl.live-hitl .sev-medium   { color: var(--hold); font-weight: 700; }
.hitl.live-hitl.hitl-decided {
  transition: opacity .4s, filter .4s;
  opacity: 0.45;
  filter: grayscale(0.5);
  pointer-events: none;
}
.hitl.live-hitl.hitl-decided.approved { border-left-color: var(--mint); }
.hitl.live-hitl.hitl-decided.denied   { border-left-color: var(--fail); }

/* ─── HITL empty state ───────────────────────────────── */
.hitl-empty {
  padding: 40px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hitl-empty .he-chip {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  padding: 4px 10px;
  border-radius: var(--r-chip);
  background: var(--mint);
  color: var(--bg);
}
.hitl-empty .he-title {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--t1);
}
.hitl-empty .he-sub {
  font-size: 13px;
  color: var(--t2);
  max-width: 420px;
  line-height: 1.5;
}
.hitl-empty .link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--t1);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

/* ─── LEDGER NEW block highlight ─────────────────────── */
.ledger.ledger-new {
  animation: incLedgerIn .5s ease-out;
}
@keyframes incLedgerIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── ensure breadcrumb doesn't cover page content ──── */
body:has(.inc-breadcrumb) #content {
  padding-top: 32px;
}
