/* page-alerts.css — extracted from style.css 2026-05-27 (UX-6 cut 7).
 *
 * /alerts page styling. Two non-contiguous source blocks folded here:
 *   - /alerts page (Phase C anomaly + AI verdict + ntfy push) — the
 *     primary page layout, alert cards, severity strips, AI verdict
 *     callouts.
 *   - /alerts action bar (Phase D-1 cpfence buttons on alert cards) —
 *     the per-card action buttons added when cpfence integration shipped.
 *
 * Selectors: `.alert-*`, `.alerts-*`.
 *
 * Note: /admin/automation-log uses `.autolog-*` and lives in
 * page-admin.css despite being semantically related to /alerts actions.
 *
 * Loaded AFTER style.css + components.css via base.html.
 */

/* ─── /alerts page (Phase C anomaly + AI verdict + ntfy push) ─── */
/* ─── /alerts page (Phase C anomaly + AI verdict + ntfy push) ─── */
.alerts-page { /* LIVE-3: was capped at 1100px — now fills main.container (1280px), consistent with the /system/* pages on a wide monitor */ }
.alerts-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0 22px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.alerts-ntfy-config { font-size: 14px; }
.alerts-ntfy-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.alerts-ntfy-form input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}
.alerts-empty {
  padding: 30px 20px;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: 8px;
  text-align: center;
}
.alerts-list { display: flex; flex-direction: column; gap: 12px; }
.alert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 14px 18px;
}
.alert-card-red    { border-left-color: var(--red); }
.alert-card-yellow { border-left-color: var(--yellow); }
.alert-card-acked  { opacity: 0.55; }
.alert-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.alert-card-sev {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 3px;
  color: #fff;
}
.alert-card-sev-red    { background: var(--red); }
.alert-card-sev-yellow { background: var(--yellow); color: #5a4400; }
.alert-card-title { margin: 0; font-size: 16px; font-weight: 600; flex: 1; }
.alert-card-time { font-size: 14px; }
.alert-card-detail { margin: 8px 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.alert-card-ai {
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
}
.alert-card-ai-yes   { background: #fee2e2; border-left: 3px solid var(--red); }
.alert-card-ai-maybe { background: #fef3c7; border-left: 3px solid var(--yellow); }
.alert-card-ai-no    { background: var(--bg-soft); border-left: 3px solid var(--text-mute); }
[data-theme="dark"] .alert-card-ai-yes   { background: #450a0a; }
[data-theme="dark"] .alert-card-ai-maybe { background: #422006; }
.alert-card-ai-head { font-weight: 600; margin-bottom: 6px; }
.alert-card-ai-reason { color: var(--text); margin-bottom: 6px; }
.alert-card-ai-action { color: var(--text-2); font-size: 14px; }
.alert-card-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.alert-card-pkey { font-family: var(--mono); font-size: 14px; flex: 1; }
.alerts-footnote { margin-top: 32px; font-size: 14px; text-align: center; }

/* (UX-6 cut 4 fold-in, 2026-05-27) Recent panel header + materializer
 * health badge rules moved to page-home.css. */

/* ─── /admin/ai-usage dashboard ─── */

/* ─── /alerts action bar (Phase D-1 cpfence buttons) ─── */
.alert-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 4px 0;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: 6px;
  font-size: 14px;
}
.alert-card-actions-label {
  margin-right: 8px;
  color: var(--text-2);
}
.alert-card-actions-label code {
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 14px;
}
.alert-card-actions-divider {
  color: var(--text-mute);
  margin: 0 6px;
}
.alert-card-action-form { display: inline; margin: 0; }
