/* pages/alerts.css — Protection alerts history (parent console). Page-specific
 * styles only; tokens, panels, buttons and the empty state come from the shared
 * webkit (kit.css), so light + dark and AA contrast carry over. The list wraps at
 * phone width with no sideways scroll. */

.al-head h1 { margin-bottom: 4px; }
.al-intro { max-width: 64ch; margin-top: 0; }

.al-list { list-style: none; margin: 0; padding: 0; }
.al-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 2px; border-top: 1px solid var(--border);
}
.al-list .al-row:first-child { border-top: none; }
.al-row:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

/* The shield is decorative (the words say what happened); its colour repeats the
 * event: red turned off, amber may be off, green back on. */
.al-ico { flex: none; display: inline-flex; margin-top: 1px; }
.al-ico .ico { width: 20px; height: 20px; }
.al-off .al-ico { color: var(--danger); }
.al-maybe .al-ico { color: var(--warn); }
.al-on .al-ico { color: var(--ok); }

.al-main { min-width: 0; flex: 1; }
.al-what { font-size: 0.95rem; font-weight: 650; color: var(--text); }
/* device and child names are user data: wrap, never overflow the panel */
.al-who { font-size: 0.86rem; margin-top: 2px; overflow-wrap: anywhere; word-break: break-word; }

.al-when { flex: none; text-align: right; font-size: 0.86rem; }
.al-dur { font-size: 0.8rem; margin-top: 2px; }

.al-more { display: flex; justify-content: center; margin: 4px 0 var(--gap); }

@media (max-width: 640px) {
  .al-row { flex-wrap: wrap; }
  .al-main { flex-basis: calc(100% - 32px); }
  .al-when { flex-basis: 100%; text-align: left; padding-left: 32px; }
}
