/* Top-right notification host. Client-driven (notifications.js), distinct
   from the bottom-right SSE-target .toast-stack. */

.notif-host {
  position: fixed;
  top: 64px; right: 16px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.notif-card {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  font-size: 13px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}
.notif-card.is-visible { opacity: 1; transform: translateY(0); }
.notif-card.is-leaving { opacity: 0; transform: translateY(-6px); }

.notif-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-wash);
  color: var(--ink);
  font-size: 15px; font-weight: 700;
  font-family: var(--font-mono);
}
.notif-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.notif-card-title { font-weight: 600; font-size: 13px; color: var(--ink); }
.notif-card-msg   { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }

.notif-card-actions {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px;
}
.notif-card-action {
  height: 28px; padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--accent-deep);
  background: var(--accent);
  color: var(--ink);
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
}
.notif-card-action:hover { background: color-mix(in srgb, var(--accent) 85%, white); }

.notif-card-close {
  align-self: start;
  width: 24px; height: 24px;
  border: 0; background: transparent;
  color: var(--ink-3);
  font-size: 16px; line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}
.notif-card-close:hover { background: var(--bg-sunk); color: var(--ink); }

.notif-card.is-update .notif-card-icon { background: var(--accent-wash); color: var(--ink); }
.notif-card.is-info   .notif-card-icon { background: var(--info-soft); color: var(--info); }
.notif-card.is-error  .notif-card-icon { background: var(--bad-soft); color: var(--bad); }
