/* ============================================================
   Notifications & Alerts Hub — full-page surface over the same
   /api/notifications feed the bell dropdown uses. Styles live here
   (not inline in dashboard.html) so the design-lint ratchet holds.
   Token-based + theme-aware.
   ============================================================ */
.nh-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.nh-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.nh-spacer { flex: 1 1 auto; }
.nh-fpill {
  padding: 6px 13px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: transparent; color: var(--text-3); font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.nh-fpill:hover { color: var(--text); border-color: var(--border-strong); }
.nh-fpill.is-on { background: var(--bg-2); color: var(--purple-bright); border-color: var(--purple-bright); }
.nh-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(124,92,252,0.10); color: var(--text);
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.nh-btn:hover { border-color: var(--purple-bright); background: rgba(124,92,252,0.18); }

.nh-list {
  margin-top: 16px; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden;
}
.nh-item {
  display: flex; gap: 12px; padding: 14px 18px;
  cursor: pointer; position: relative; transition: background .12s ease;
  /* The row is a <button>, so it is reachable and operable from the keyboard.
     These undo the button defaults that would otherwise restyle it: it would
     shrink to fit, centre its text, draw its own border, and use the UA font
     and colour rather than the inherited ones. */
  width: 100%; box-sizing: border-box; text-align: left;
  font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--hairline);
}
.nh-item:focus-visible { outline: 2px solid var(--brand, #7c5cfc); outline-offset: -2px; }
.nh-item:last-child { border-bottom: 0; }
.nh-item:hover { background: var(--bg-2); }
.nh-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--muted); }
.nh-sev-high .nh-dot { background: var(--red); }
.nh-sev-medium .nh-dot { background: var(--amber); }
.nh-sev-low .nh-dot { background: var(--muted); }
.nh-item.nh-unread { background: rgba(124,92,252,0.05); }
.nh-item.nh-unread .nh-title { font-weight: 800; }
.nh-body { flex: 1; min-width: 0; }
.nh-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.nh-sevlbl { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.nh-sev-high .nh-sevlbl { color: var(--red); }
.nh-sev-medium .nh-sevlbl { color: var(--amber); }
.nh-ago { margin-left: auto; font-size: 10.5px; color: var(--muted); }
.nh-title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; line-height: 1.3; }
.nh-desc { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.nh-empty { padding: 48px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.nh-empty svg { display: block; margin: 0 auto 10px; opacity: .7; }
.nh-foot { padding: 12px 18px; border-top: 1px solid var(--hairline); font-size: 11.5px; color: var(--muted); text-align: center; }
.nh-foot a { color: var(--purple-bright); text-decoration: none; font-weight: 600; cursor: pointer; }
