/* =============================================================
   Security AI — Component Catalog (s-*)
   ============================================================= */

/* ─── Button ─── */
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.s-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.s-btn--sm  { height: 28px; padding: 0 10px; font-size: 11px; }
.s-btn--lg  { height: 40px; padding: 0 18px; font-size: 13px; }

.s-btn--primary {
  background: var(--cyan-grad);
  color: #001218;
  border-color: transparent;
  box-shadow: var(--cyan-glow);
}
.s-btn--primary:hover {
  color: #001218;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34,211,238,0.40);
}
.s-btn--ghost {
  background: transparent;
}
.s-btn--ghost:hover {
  background: var(--surface);
  border-color: var(--border-cyan);
  color: var(--cyan);
}
.s-btn--danger {
  background: var(--sev-crit-soft);
  border-color: rgba(239,68,68,0.30);
  color: var(--sev-crit);
}
.s-btn--danger:hover {
  background: rgba(239,68,68,0.18);
  color: var(--sev-crit);
}

.s-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── Card ─── */
.s-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.s-card:hover {
  border-color: var(--border-strong);
}
.s-card--glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.s-card--bordered { border-color: var(--border-strong); }
.s-card--threat {
  border-color: rgba(239,68,68,0.30);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(239,68,68,0.04) 100%);
}
.s-card--threat-active {
  animation: s-threat-glow 2s var(--ease) infinite;
}

.s-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.s-card__head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.s-card__head h3 i {
  color: var(--cyan);
  font-size: 13px;
}

.s-card__body { padding: 18px; }
.s-card__foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ─── Status badge ─── */
.s-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--sev-low-soft);
  color: var(--sev-low);
  border: 1px solid rgba(34,197,94,0.20);
}
.s-status__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: s-pulse 2s var(--ease) infinite;
}
.s-status--ok   { background: var(--sev-low-soft);  color: var(--sev-low);  border-color: rgba(34,197,94,0.20); }
.s-status--warn { background: var(--sev-med-soft);  color: var(--sev-med);  border-color: rgba(234,179,8,0.20); }
.s-status--crit { background: var(--sev-crit-soft); color: var(--sev-crit); border-color: rgba(239,68,68,0.30); }
.s-status--info { background: var(--sev-info-soft); color: var(--sev-info); border-color: rgba(56,189,248,0.20); }
.s-status--cyan { background: var(--cyan-soft);     color: var(--cyan);     border-color: var(--border-cyan); }

/* ─── Severity Chip ─── */
.s-sev-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: var(--r-pill);
  font-family: var(--en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.s-sev-chip__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.s-sev-chip--critical { background: var(--sev-crit-soft); color: var(--sev-crit); border: 1px solid rgba(239,68,68,0.30); }
.s-sev-chip--critical .s-sev-chip__dot { animation: s-pulse 1.4s var(--ease) infinite; }
.s-sev-chip--high     { background: var(--sev-high-soft); color: var(--sev-high); border: 1px solid rgba(249,115,22,0.30); }
.s-sev-chip--high .s-sev-chip__dot { animation: s-pulse 1.6s var(--ease) infinite; }
.s-sev-chip--medium   { background: var(--sev-med-soft);  color: var(--sev-med);  border: 1px solid rgba(234,179,8,0.30); }
.s-sev-chip--low      { background: var(--sev-low-soft);  color: var(--sev-low);  border: 1px solid rgba(34,197,94,0.30); }
.s-sev-chip--info     { background: var(--sev-info-soft); color: var(--sev-info); border: 1px solid rgba(56,189,248,0.30); }

/* ─── KPI Card ─── */
.s-kpi {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
}
.s-kpi::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(34,211,238,0.06), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none;
}
.s-kpi:hover {
  border-color: var(--border-cyan);
  transform: translateY(-1px);
  box-shadow: var(--shadow-cyan);
}
.s-kpi:hover::before { opacity: 1; }

.s-kpi__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.s-kpi__icon.--crit  { background: var(--sev-crit-soft);  color: var(--sev-crit); }
.s-kpi__icon.--high  { background: var(--sev-high-soft);  color: var(--sev-high); }
.s-kpi__icon.--med   { background: var(--sev-med-soft);   color: var(--sev-med);  }
.s-kpi__icon.--low   { background: var(--sev-low-soft);   color: var(--sev-low);  }
.s-kpi__icon.--info  { background: var(--sev-info-soft);  color: var(--sev-info); }
.s-kpi__icon.--cyan  { background: var(--cyan-soft);      color: var(--cyan);     }
.s-kpi__icon.--blue  { background: var(--blue-soft);      color: var(--blue);     }
.s-kpi__icon.--violet{ background: var(--violet-soft);    color: var(--violet);   }
.s-kpi__icon.--magenta{ background: var(--magenta-soft);  color: var(--magenta);  }

.s-kpi__body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.s-kpi__value {
  font-family: var(--en);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.s-kpi__label {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.s-kpi__delta {
  font-family: var(--en);
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.s-kpi__delta--up   { color: var(--sev-low); }
.s-kpi__delta--down { color: var(--sev-crit); }

.s-kpi__spark {
  width: 60px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  opacity: 0.7;
}

/* ─── Live Stream (terminal-like) ─── */
.s-stream {
  position: relative;
  height: 340px;
  overflow-y: auto;
  padding: 12px;
  background: var(--bg-deep);
  font-family: var(--mono);
  font-size: 11px;
}
.s-stream::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 2px,
    rgba(34,211,238,0.015) 2px,
    rgba(34,211,238,0.015) 3px
  );
  pointer-events: none;
}
.s-stream::-webkit-scrollbar { width: 4px; }

.s-stream__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: var(--r-sm);
  margin-bottom: 1px;
  animation: s-fade-up 240ms var(--ease);
  position: relative;
  z-index: 1;
}
.s-stream__item:hover { background: var(--surface); }

.s-stream__time {
  color: var(--text-faint);
  flex-shrink: 0;
  width: 56px;
  font-size: 10px;
}
.s-stream__sev {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--sev-info);
  box-shadow: 0 0 6px currentColor;
}
.s-stream__sev.--critical { background: var(--sev-crit); color: var(--sev-crit); }
.s-stream__sev.--high     { background: var(--sev-high); color: var(--sev-high); }
.s-stream__sev.--medium   { background: var(--sev-med);  color: var(--sev-med);  }
.s-stream__sev.--low      { background: var(--sev-low);  color: var(--sev-low);  }
.s-stream__sev.--info     { background: var(--sev-info); color: var(--sev-info); }

.s-stream__msg {
  flex: 1;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s-stream__msg b {
  color: var(--text);
  font-weight: 600;
}

.s-stream__tag {
  font-family: var(--en);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.s-stream__tag.--blocked { background: var(--sev-low-soft);  color: var(--sev-low); }
.s-stream__tag.--alert   { background: var(--sev-crit-soft); color: var(--sev-crit); }
.s-stream__tag.--monitor { background: var(--sev-info-soft); color: var(--sev-info); }

/* ─── Geo origin list ─── */
.s-geo-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding: 14px;
}
.s-geo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--t-fast) var(--ease);
}
.s-geo-item:hover {
  border-color: var(--border-cyan);
  transform: translateX(2px);
}
.s-geo-flag {
  font-size: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.s-geo-info { flex: 1; min-width: 0; }
.s-geo-name {
  font-size: 12px;
  font-weight: 700;
}
.s-geo-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
}
.s-geo-bar {
  height: 3px;
  background: var(--surface-3);
  border-radius: 2px;
  margin-top: 5px;
  overflow: hidden;
}
.s-geo-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sev-high), var(--sev-crit));
  border-radius: 2px;
  transition: width var(--t-slow) var(--ease);
}

/* ─── Threat Gauge (semicircle) ─── */
.s-gauge {
  position: relative;
  width: 180px;
  height: 100px;
}
.s-gauge svg {
  width: 100%;
  height: 100%;
  display: block;
}
.s-gauge__track {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 12;
  stroke-linecap: round;
}
.s-gauge__fill {
  fill: none;
  stroke: var(--sev-low);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset var(--t-slow) var(--ease), stroke var(--t-base);
  filter: drop-shadow(0 0 6px currentColor);
}
.s-gauge--ok   .s-gauge__fill { stroke: var(--sev-low); }
.s-gauge--warn .s-gauge__fill { stroke: var(--sev-med); }
.s-gauge--high .s-gauge__fill { stroke: var(--sev-high); }
.s-gauge--crit .s-gauge__fill { stroke: var(--sev-crit); }

.s-gauge__value {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.s-gauge__num {
  font-family: var(--en);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.s-gauge__label {
  font-family: var(--en);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ─── Radar Chart ─── */
.s-radar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 320px;
  margin: 0 auto;
}
.s-radar__bg circle {
  fill: none;
  stroke: rgba(34,211,238,0.10);
  stroke-width: 1;
}
.s-radar__divs line {
  stroke: rgba(34,211,238,0.08);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.s-radar__label {
  font-family: var(--en);
  font-size: 9px;
  font-weight: 700;
  fill: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 3px;
}
.s-radar__sweep {
  transform-origin: 50% 50%;
  animation: s-radar-sweep 4s linear infinite;
}
.s-radar__sweep path {
  fill: url(#radar-grad);
}
.s-radar__pings circle {
  filter: drop-shadow(0 0 4px currentColor);
  transition: r 200ms;
}
.s-radar__center {
  fill: var(--cyan);
  filter: drop-shadow(0 0 8px var(--cyan));
}

/* ─── Attack Chain (kill chain) ─── */
.s-attack-chain {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px;
  overflow-x: auto;
}
.s-chain-step {
  flex: 1;
  min-width: 80px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r);
  font-size: 10px;
  color: var(--text-muted);
  transition: all var(--t-base) var(--ease);
  position: relative;
}
.s-chain-step__icon {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text-dim);
}
.s-chain-step__label {
  font-weight: 600;
}
.s-chain-step.--done {
  border-color: var(--border-cyan);
  background: var(--cyan-soft);
}
.s-chain-step.--done .s-chain-step__icon { color: var(--cyan); }
.s-chain-step.--active {
  border-color: var(--sev-crit);
  background: var(--sev-crit-soft);
  box-shadow: 0 0 16px rgba(239,68,68,0.30);
  animation: s-pulse 1.5s var(--ease) infinite;
}
.s-chain-step.--active .s-chain-step__icon { color: var(--sev-crit); }

.s-chain-arrow {
  flex: 0 0 14px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  margin: 0 -1px;
  position: relative;
}
.s-chain-arrow::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -3px;
  width: 0; height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid rgba(34,211,238,0.4);
}

/* ─── Tag (IOC / MITRE) ─── */
.s-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}
.s-tag--mitre  { background: var(--violet-soft);  color: var(--violet); border-color: rgba(167,139,250,0.20); }
.s-tag--ioc    { background: var(--magenta-soft); color: var(--magenta); border-color: rgba(236,72,153,0.20); }
.s-tag--policy { background: var(--blue-soft);    color: var(--blue);   border-color: rgba(96,165,250,0.20); }
.s-tag--cyan   { background: var(--cyan-soft);    color: var(--cyan);   border-color: var(--border-cyan); }

/* ─── Tables ─── */
.s-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
}
.s-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.s-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  text-align: left;
  font-family: var(--en);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
.s-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-faint);
  color: var(--text-muted);
}
.s-table tbody tr {
  transition: background var(--t-fast) var(--ease);
  position: relative;
}
.s-table tbody tr:hover {
  background: var(--surface);
}
.s-table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--cyan);
}
.s-table--threats tbody tr.--crit { background: rgba(239,68,68,0.03); }
.s-table--threats tbody tr.--crit:hover td:first-child { box-shadow: inset 3px 0 0 var(--sev-crit); }
.s-table--threats tbody tr.--high { background: rgba(249,115,22,0.02); }
.s-table--threats tbody tr.--high:hover td:first-child { box-shadow: inset 3px 0 0 var(--sev-high); }

.s-table .--num { text-align: right; font-variant-numeric: tabular-nums; }
.s-table .--center { text-align: center; }
.s-table .--code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
}

/* ─── EPS Counter ─── */
.s-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--en);
  font-variant-numeric: tabular-nums;
}
.s-counter__num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(34,211,238,0.40);
}
.s-counter__unit {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* ─── Filter tabs ─── */
.s-filter-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.s-filter-tab {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.s-filter-tab:hover { color: var(--text); }
.s-filter-tab.is-active {
  background: var(--cyan-soft);
  color: var(--cyan);
}

/* ─── Anomaly bar ─── */
.s-anomaly-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 6px;
}
.s-anomaly-bar__label {
  flex: 0 0 140px;
  font-size: 12px;
  font-weight: 600;
}
.s-anomaly-bar__track {
  flex: 1;
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}
.s-anomaly-bar__fill {
  height: 100%;
  background: var(--cyan-grad);
  border-radius: 3px;
  transition: width var(--t-slow) var(--ease);
}
.s-anomaly-bar__fill.--med  { background: linear-gradient(90deg, var(--sev-med), var(--sev-high)); }
.s-anomaly-bar__fill.--high { background: linear-gradient(90deg, var(--sev-high), var(--sev-crit)); }
.s-anomaly-bar__score {
  flex: 0 0 60px;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

/* ─── Heatmap ─── */
.s-heatmap {
  display: grid;
  gap: 2px;
  font-family: var(--mono);
  font-size: 10px;
}
.s-heatmap__cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--surface-2);
  transition: all var(--t-fast);
  cursor: pointer;
}
.s-heatmap__cell.--lv1 { background: rgba(34,211,238,0.10); }
.s-heatmap__cell.--lv2 { background: rgba(34,211,238,0.25); }
.s-heatmap__cell.--lv3 { background: rgba(34,211,238,0.45); }
.s-heatmap__cell.--lv4 { background: rgba(239,68,68,0.30); }
.s-heatmap__cell.--lv5 { background: rgba(239,68,68,0.55); box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.s-heatmap__cell:hover { transform: scale(1.2); z-index: 1; outline: 1px solid var(--cyan); }

/* ─── Empty / Loading ─── */
.s-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 16px;
  color: var(--text-dim);
  text-align: center;
}
.s-empty i {
  font-size: 32px;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.s-empty__msg { font-size: 13px; font-weight: 600; }
.s-empty__sub { font-size: 11px; color: var(--text-faint); }

.s-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--surface-3);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: s-spin 600ms linear infinite;
  display: inline-block;
}

/* ─── Toast ─── */
.s-toast-stack {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}
.s-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-strong);
  border-left-width: 3px;
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  animation: s-fade-up 240ms var(--ease);
  font-size: 12px;
  color: var(--text);
}
.s-toast--info { border-left-color: var(--cyan); }
.s-toast--ok   { border-left-color: var(--sev-low); }
.s-toast--warn { border-left-color: var(--sev-med); }
.s-toast--crit { border-left-color: var(--sev-crit); animation: s-fade-up 240ms var(--ease), s-glitch 360ms var(--ease) 240ms; }
.s-toast i { margin-top: 2px; flex-shrink: 0; }
.s-toast--info i { color: var(--cyan); }
.s-toast--ok i   { color: var(--sev-low); }
.s-toast--warn i { color: var(--sev-med); }
.s-toast--crit i { color: var(--sev-crit); }
.s-toast b { display: block; margin-bottom: 2px; font-weight: 700; }
.s-toast__sub { color: var(--text-dim); font-size: 11px; }

/* ─── Detail meta grid (alert detail 등) ─── */
.s-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}
.s-meta-grid > div {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.s-meta-grid dt {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.s-meta-grid dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* ─── Timeline ─── */
.s-tl {
  list-style: none;
  margin: 0;
  padding: 6px 0 0 16px;
  position: relative;
}
.s-tl::before {
  content: '';
  position: absolute;
  left: 4px; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--border);
}
.s-tl li {
  position: relative;
  padding: 0 0 12px 18px;
}
.s-tl li:last-child { padding-bottom: 0; }
.s-tl li::before {
  content: '';
  position: absolute;
  left: -8px; top: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border-strong);
  z-index: 1;
}
.s-tl li.--done::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.s-tl li.--active::before {
  background: var(--cyan); border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
  animation: s-pulse 1.4s var(--ease) infinite;
}
.s-tl__time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
}
.s-tl__msg {
  font-size: 12px;
  color: var(--text);
  margin-top: 2px;
}

