.notification-trigger{position:relative}
.notification-badge{position:absolute;top:0;right:0;min-width:1.1rem;border-radius:1rem;background:var(--accent,#6d28d9);color:#fff;font-size:.65rem;padding:.1rem .25rem}
#notifications-dialog{width:min(480px,calc(100vw - 32px));max-height:min(680px,calc(100dvh - 48px));padding:0;overflow:hidden;border:1px solid var(--border);border-radius:24px;box-shadow:0 24px 80px #32234124}
#notifications-dialog[open]{display:flex;flex-direction:column}
#notifications-dialog>.system-feedback[data-state=ready]{display:none}
#notifications-dialog .dialog-heading{flex-shrink:0;margin:0;padding:20px 20px 8px;gap:12px}
#notifications-dialog .dialog-heading h2{margin:0;font-size:21px;letter-spacing:-.5px}
#notifications-dialog .icon-button{width:48px;height:48px;border-radius:14px;background:transparent;color:var(--muted);flex-shrink:0}
#notifications-dialog .icon-button:hover:not(:disabled){background:var(--accent-soft);color:var(--accent)}
#notifications-dialog .icon-button:disabled{opacity:.35}
#notifications-dialog .icon-button svg{width:20px;height:20px}
.notification-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 20px 14px;border-bottom:1px solid var(--border);flex-shrink:0}
.notification-filters{display:flex;gap:4px;padding:4px;background:var(--surface-soft);border-radius:16px}
.notification-filters button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 14px;border:0;border-radius:12px;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:550;cursor:pointer;white-space:nowrap}
.notification-filters button[aria-pressed=true]{background:#fff;color:var(--accent);box-shadow:0 1px 4px #32234112}
.notification-count{min-width:20px;padding:2px 5px;border-radius:6px;background:var(--accent-soft);color:var(--accent);font-size:11px;line-height:16px;font-variant-numeric:tabular-nums}
.notification-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 12px 12px;scroll-padding:12px}
.notification-list{list-style:none;padding:0;margin:0}
.notification-row{display:flex;align-items:flex-start;gap:0;border-radius:16px;margin:4px 0;padding:4px}
.notification-row.is-unread{background:color-mix(in srgb,var(--accent) 6%,white)}
.notification-open{display:flex;align-items:flex-start;gap:12px;text-align:left;background:transparent;color:inherit;border:0;border-radius:12px;padding:12px 8px;min-height:72px;flex:1;min-width:0;cursor:pointer}
.notification-open:hover{background:color-mix(in srgb,var(--accent) 4%,transparent)}
.notification-content{min-width:0;overflow-wrap:anywhere}
.notification-open strong{display:block;font-size:14px;font-weight:500;line-height:1.5}
.is-unread .notification-open strong{font-weight:650}
.notification-detail{display:block;font-size:12px;line-height:1.5;margin-top:4px;color:var(--muted)}
.notification-open time{display:block;font-size:11px;color:var(--muted);margin-top:8px;line-height:1.5}
.notification-symbol{position:relative;display:grid;place-items:center;width:32px;height:32px;border-radius:10px;flex-shrink:0;color:var(--accent);background:var(--surface-soft)}
.notification-symbol svg{width:18px;height:18px}
.is-unread .notification-symbol{background:white}
.is-unread .notification-symbol:after{content:'';position:absolute;top:-2px;right:-2px;width:7px;height:7px;border-radius:50%;background:var(--accent);border:2px solid white;box-sizing:content-box}
#notifications-dialog .notification-row>.icon-button{margin-top:4px;width:44px;min-width:44px;height:44px;min-height:44px}
.notification-delivery{display:inline-block;font-size:11px;color:var(--muted);line-height:1.5;margin:4px 8px 0 0}
.notification-status{flex-shrink:0;font-size:12px;color:var(--muted);margin:0;padding:12px 24px 4px;overflow-wrap:anywhere}
.notification-status:empty{display:none}
.notification-empty{display:flex;flex-direction:column;align-items:center;gap:16px;padding:40px 16px;color:var(--muted);text-align:center}
.notification-empty strong{font-size:14px;font-weight:500}
.notification-empty-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:18px;background:var(--surface-soft);color:var(--accent)}
.notification-empty-icon svg{width:24px;height:24px}
.notification-scroll>.button{display:flex;justify-content:center;width:100%;margin-top:12px}
#notifications-dialog button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
#notifications-dialog [hidden]{display:none!important}
@media(max-width:600px){
 #notifications-dialog{inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:calc(var(--visible-height,100dvh) - max(16px,env(safe-area-inset-top)));border-radius:24px 24px 0 0;border-bottom:0}
 #notifications-dialog .dialog-heading{padding:16px 16px 8px}
 .notification-tools{padding:0 16px 12px;gap:8px}
 .notification-scroll{padding:8px 8px max(16px,env(safe-area-inset-bottom))}
 .notification-filters button{padding-inline:12px}
}
@media(forced-colors:active){.notification-filters button[aria-pressed=true],.notification-row.is-unread{outline:1px solid Highlight}.notification-symbol:after{forced-color-adjust:none;background:Highlight}}
