/* ════════════════════════════════════════════════════════════
   Notification Center — bell + side drawer
   ════════════════════════════════════════════════════════════ */

.status-rail {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 12px));
  right: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.status-rail > * { pointer-events: auto; }

.notif-bell {
  position: relative;
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg-1) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  color: var(--text-1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out), border-color var(--dur-1);
}
.notif-bell:hover { border-color: var(--border-strong); transform: scale(1.05); }
.notif-bell:active { transform: scale(0.95); }

.notif-dot {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 999px;
  background: var(--down-strong);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bg-0);
  letter-spacing: 0;
  animation: notifPing 2.8s var(--ease-out) infinite;
}
@keyframes notifPing {
  0%, 70%, 100% { transform: scale(1); }
  80% { transform: scale(1.18); }
}

.notif-veil {
  position: absolute; inset: 0;
  background: color-mix(in oklab, var(--bg-0) 60%, transparent);
  backdrop-filter: blur(2px);
  z-index: 70;
  animation: veilIn var(--dur-2) var(--ease-out);
}
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }

.notif-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 88%; max-width: 360px;
  background: var(--bg-1);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 32px color-mix(in oklab, #000 28%, transparent);
  z-index: 71;
  display: flex; flex-direction: column;
  animation: panelSlide var(--dur-3) var(--ease-out);
}
@keyframes panelSlide {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.notif-hdr {
  flex: 0 0 auto;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.notif-ttl { display: flex; flex-direction: column; gap: 2px; }
.notif-kicker {
  font-family: var(--font-serif, var(--font-sans));
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--text-1);
}
.notif-meta {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.notif-close {
  width: 26px; height: 26px;
  border: none; background: transparent;
  color: var(--text-2);
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background var(--dur-1), color var(--dur-1);
}
.notif-close:hover { background: var(--bg-2); color: var(--text-1); }

.notif-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 0;
}

.notif-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-1);
  color: var(--text-1);
}
.notif-row:hover { background: var(--bg-2); }
.notif-row:active { background: var(--bg-3); }

.notif-mark {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  border: 1px solid currentColor;
  margin-top: 2px;
}
.k-signed { color: var(--accent-paper); }
.k-fresh  { color: var(--up-strong); }
.k-alert  { color: var(--down-strong); }
.k-system { color: var(--text-2); }
.k-recap  { color: var(--up); }
.k-opp    { color: var(--score-ai, var(--accent-paper)); }

.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-row-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.notif-row-ttl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.005em;
}
.notif-row-sym {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--accent-paper);
  font-weight: 700;
  flex-shrink: 0;
}
.notif-row-msg {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-2);
  text-wrap: pretty;
}
.notif-row-time {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  margin-top: 2px;
}

.notif-foot {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  background: var(--bg-0);
}
.notif-foot .ch {
  display: inline-flex; align-items: center; gap: 4px;
}
.notif-foot .ch .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3);
}
.notif-foot .ch.on .d {
  background: var(--up-strong);
  box-shadow: 0 0 4px var(--up-strong);
}

/* Make sure the hdr title doesn't sit beneath the bell */
.hdr-top { padding-right: 44px; }
