/* Notifications badge, drawer, routed page, and feedback detail. */
.notification-shell { position: relative; }
.notification-button { position: relative; min-width: 42px; padding-inline: 12px; }
:root:not([data-theme="light"]) .notification-button > i { color: #facc15; }
.notification-button.has-new-notification { animation: notification-attention 1.1s ease-out; }
@keyframes notification-attention {
  0%, 100% { box-shadow: none; transform: translateY(0); }
  35% { box-shadow: 0 0 0 5px color-mix(in srgb,#14b8a6 14%,transparent); transform: translateY(-1px); }
}
.notification-badge { position: absolute; inset-block-start: -5px; inset-inline-end: -5px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; color: #fff; border: 2px solid var(--panel); border-radius: 999px; background: #dc2626; font-size: .67rem; font-weight: 850; }
.notification-drawer { position: absolute; z-index: 120; inset-block-start: calc(100% + 10px); inset-inline-end: 0; width: min(420px,calc(100vw - 24px)); max-height: min(640px,calc(100vh - 90px)); overflow: auto; padding: 12px; color: var(--text); border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb,var(--panel) 96%,transparent); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.notification-drawer > header, .notification-drawer > footer, .notifications-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notification-drawer > header { padding: 4px 4px 10px; border-bottom: 1px solid var(--border); }
.notification-drawer > header > div { display: grid; gap: 2px; text-align: start; }
.notification-drawer > header small, .notification-item small { color: var(--muted); }
.notification-drawer > footer { justify-content: center; padding-top: 10px; border-top: 1px solid var(--border); }
.notification-drawer-list, .notifications-list { display: grid; gap: 8px; padding-block: 8px; }
.notification-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 11px; padding: 13px; color: var(--text); border: 1px solid var(--border); border-radius: 15px; background: color-mix(in srgb,var(--panel) 92%,transparent); }
.notification-item.unread { border-color: color-mix(in srgb,#14b8a6 48%,var(--border)); background: color-mix(in srgb,#14b8a6 8%,var(--panel)); }
.notification-item.time-sensitive { border-inline-start: 4px solid #f59e0b; }
.notification-item-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #2dd4bf; border-radius: 11px; background: color-mix(in srgb,#14b8a6 13%,transparent); }
.notification-item.time-sensitive .notification-item-icon { color: #f59e0b; background: color-mix(in srgb,#f59e0b 14%,transparent); }
.notification-item-copy { min-width: 0; display: grid; gap: 5px; text-align: start; }
.notification-item-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.notification-item-copy p { margin: 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.notification-unread-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #14b8a6; }
.notification-item-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 4px; }
.notification-item-actions .btn { white-space: nowrap; }
.notifications-page { display: grid; gap: 14px; }
.notifications-toolbar { padding: 12px 14px; }
.notification-feedback-detail { max-width: 760px; display: grid; gap: 14px; margin-inline: auto; padding: 24px; }
.notification-feedback-detail h2, .notification-feedback-detail p { margin: 0; }
.notification-feedback-detail p { font-size: 1.06rem; line-height: 1.7; white-space: pre-wrap; }
.notification-feedback-detail footer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); }

@media (max-width: 720px) {
  .notification-drawer { position: fixed; inset: 68px 12px auto 12px; width: auto; }
  .notification-item { grid-template-columns: auto minmax(0,1fr); }
  .notification-item-actions { grid-column: 1 / -1; align-items: stretch; flex-direction: row; }
  .notification-item-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .notification-button, .notification-item { animation: none !important; transition: none !important; }
}
