/* Incidents polish — clickable incident cards + PM rows → drawer */
.slo-inc { cursor: pointer; transition: background 0.08s, border-color 0.08s; }
.slo-inc:hover { background: var(--s2); }
.slo-inc.on { background: var(--s2); box-shadow: inset 3px 0 0 var(--t1); }
.pm-tbl tr[data-pmid] { cursor: pointer; transition: background 0.08s; }
.pm-tbl tr[data-pmid]:hover { background: var(--s2); }
.pm-tbl tr[data-pmid].on { background: var(--s3); }
.slo-inc .si-actions button { cursor: pointer; }

.inc-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 500px; background: var(--s1);
  border-left: 1px solid var(--b2);
  border-radius: var(--r) 0 0 var(--r);
  overflow: hidden;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.18s ease-out;
  display: flex; flex-direction: column;
  font-family: var(--sans);
}
.inc-drawer.open { transform: translateX(0); }

.inc-dh {
  padding: 14px 16px; border-bottom: 1px solid var(--b2);
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  background: var(--t1); color: var(--bg);
}
.inc-dh.sev2 { background: var(--hold-wash); color: var(--t1); border-bottom-color: var(--hold); }
.inc-dh.sev3 { background: var(--hold-wash); color: var(--t1); }
.inc-dh.pm   { background: var(--s3); color: var(--t1); }
.inc-dh .kind { font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.78; margin-bottom: 4px; }
.inc-dh h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; line-height: 1.15; }
.inc-dh .sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; margin-top: 5px; }
.inc-dh .x { background: transparent; border: 1px solid currentColor; border-radius: var(--r-c); color: inherit; width: 26px; height: 26px; font-family: var(--mono); font-size: 14px; cursor: pointer; line-height: 1; }
.inc-dh .x:hover { background: var(--b2); }

.inc-db { flex: 1; overflow-y: auto; }
.inc-sec { border-bottom: 1px solid var(--b2); padding: 14px 16px; }
.inc-sec:last-child { border-bottom: 0; }
.inc-sec h4 { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t3); margin-bottom: 10px; display: flex; justify-content: space-between; }
.inc-sec h4 .pill { font-weight: 700; padding: 2px 6px; border: 1px solid currentColor; border-radius: var(--r-chip); }

.inc-kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-family: var(--mono); font-size: 11px; }
.inc-kv .k { color: var(--t3); letter-spacing: 0.04em; text-transform: uppercase; font-size: 10px; }
.inc-kv .v { color: var(--t1); text-align: right; }
.inc-kv .v.err { color: var(--fail); }
.inc-kv .v.warn { color: var(--hold); }
.inc-kv .v.lnk { color: var(--t1); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.inc-tl { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 14px; }
.inc-tl::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 1px; background: var(--t3); }
.inc-tl-row { display: grid; grid-template-columns: 64px 70px 1fr; gap: 8px; padding: 7px 0; align-items: start; position: relative; }
.inc-tl-row::before { content: ""; position: absolute; left: -13px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--t1); border: 1px solid var(--bg); }
.inc-tl-row.now::before { background: var(--t1); animation: incPulse 1.4s ease-in-out infinite; }
@keyframes incPulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--t1) 50%, transparent); } 50% { box-shadow: 0 0 0 4px transparent; } }
.inc-tl-row .t { font-family: var(--mono); font-size: 10px; color: var(--t3); padding-top: 1px; }
.inc-tl-row .k { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 2px 4px; border: 1px solid currentColor; border-radius: var(--r-chip); text-align: center; align-self: start; }
.inc-tl-row .k.k-detect { color: var(--fail); }
.inc-tl-row .k.k-alert { color: var(--hold); }
.inc-tl-row .k.k-ack, .inc-tl-row .k.k-eng-eng { color: var(--t2); }
.inc-tl-row .k.k-mitigate, .inc-tl-row .k.k-resolve { color: var(--mint); }
.inc-tl-row .b { font-size: 12px; line-height: 1.45; color: var(--t1); }

.inc-actions-list { display: flex; flex-direction: column; gap: 6px; }
.inc-action-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--b2); border-radius: var(--r-c); background: var(--bg); }
.inc-action-row .chk { width: 14px; height: 14px; border: 1.4px solid var(--t1); border-radius: var(--r-chip); display: inline-block; }
.inc-action-row.done .chk { background: var(--mint); border-color: var(--mint); }
.inc-action-row.done .body { text-decoration: line-through; color: var(--t3); }
.inc-action-row .body { font-size: 12px; line-height: 1.4; }
.inc-action-row .own { font-family: var(--mono); font-size: 10px; color: var(--t3); }

.inc-df {
  padding: 12px 16px; border-top: 1px solid var(--b2);
  display: flex; flex-wrap: wrap; gap: 8px; background: var(--s2);
}
.inc-df button {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 12px; background: var(--bg); border: 1.5px solid var(--t1); border-radius: var(--r-c);
  color: var(--t1); cursor: pointer;
  flex: 1; min-width: 110px; transition: transform 0.06s, box-shadow 0.06s;
}
.inc-df button.primary { background: var(--t1); color: var(--bg); box-shadow: var(--lift); }
.inc-df button.danger  { border-color: var(--fail); color: var(--fail); }
.inc-df button.ok      { border-color: var(--mint); color: var(--mint); }

.inc-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 199; opacity: 0; pointer-events: none; transition: opacity 0.18s; }
.inc-scrim.open { opacity: 1; pointer-events: auto; }
