/* Header notification center and transient feedback. */
.account-header-actions{display:flex;align-items:center;gap:14px;flex-shrink:0}
.notification-center{display:flex;align-items:center}
.notification-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--white);color:var(--green);cursor:pointer;transition:background .18s,border-color .18s}
.notification-bell:hover,.notification-bell[aria-expanded="true"]{background:#edf2e9;border-color:#a6b7a5}
.notification-badge{position:absolute;top:-4px;right:-5px;min-width:19px;height:19px;padding:0 4px;border:2px solid var(--paper);border-radius:999px;background:var(--green);color:#fff;font:600 10px/15px var(--sans);text-align:center}
.notification-popover{position:fixed;z-index:250;width:min(390px,calc(100vw - 24px));max-height:calc(100dvh - 120px);display:flex;flex-direction:column;border:1px solid var(--line);border-radius:18px;background:var(--white,#fffefb);box-shadow:0 16px 56px #20352624;overflow:hidden;animation:notification-enter .18s ease-out both}
.notification-popover-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px 12px;border-bottom:1px solid var(--line)}
.notification-popover h2{margin:0;font:650 17px/1.4 var(--sans);letter-spacing:-.02em}
.notification-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);font:24px/1 var(--sans);cursor:pointer}
.notification-close:hover{background:var(--paper-2,#eeece4);color:var(--ink)}
.notification-popover-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;max-height:420px}
.notification-entry{position:relative;display:block;padding:16px 20px 16px 28px;border-bottom:1px solid var(--line);text-decoration:none;overflow-wrap:anywhere}
.notification-entry:last-child{border-bottom:0}
.notification-entry.is-unread{background:#f2f5ec}
.notification-entry.is-unread:before{content:'';position:absolute;left:12px;top:23px;width:6px;height:6px;border-radius:50%;background:var(--green)}
.notification-entry:hover{background:#edf2e9}
.notification-entry-label{display:block;font:600 11px/1.5 var(--mono);letter-spacing:.03em;color:var(--green)}
.notification-entry p{margin:5px 0 8px;font-size:14px;line-height:1.5;white-space:pre-wrap}
.notification-entry time{display:block;font-size:11px;color:var(--muted)}
.notification-read-all{flex-shrink:0;width:100%;min-height:46px;padding:12px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--green);font:600 13px var(--sans);cursor:pointer}
.notification-read-all:hover{background:#edf2e9}
.notification-read-all:disabled{opacity:.5;cursor:wait}
.notification-empty{padding:28px 24px;color:var(--muted);font-size:14px;text-align:center}
.notification-empty strong{display:block;color:var(--ink);margin-bottom:8px;font-size:15px}
.notification-empty p{margin:0;font-size:13px;line-height:1.6}
.notification-popover-error{padding:12px 16px;margin:0;font-size:13px;color:#8c3d36;background:#fbf1ed}
.notification-toasts{position:fixed;z-index:300;bottom:max(20px,env(safe-area-inset-bottom));right:24px;display:grid;gap:10px;width:min(370px,calc(100vw - 32px));pointer-events:none}
.notification-toast{display:flex;align-items:flex-start;gap:8px;padding:14px 12px 14px 18px;border:1px solid var(--line);border-left:3px solid var(--green);border-radius:14px;background:var(--white,#fffefb);box-shadow:0 8px 32px #20352621;pointer-events:auto;animation:notification-enter .2s ease-out both}
.notification-toast-error{border-left-color:#a34c40}
.notification-toast-content{flex:1;min-width:0;text-decoration:none;color:var(--ink);overflow-wrap:anywhere}
.notification-toast-content strong{display:block;font-size:13px;line-height:1.5}
.notification-toast-content p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.form-message.feedback-as-toast{display:none}
@keyframes notification-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:850px){.topbar>.menu-toggle{order:3;margin-left:0}.topbar>.account-header-actions{order:2;margin-left:auto;margin-right:10px}.notification-popover{max-height:calc(100dvh - 110px)}.notification-toasts{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}.notification-close{width:44px;height:44px;min-height:44px}}
@media(prefers-reduced-motion:reduce){.notification-popover,.notification-toast{animation:none}.notification-bell{transition:none}}

.notification-floating{position:fixed;top:max(16px,env(safe-area-inset-top));right:16px;z-index:200}

.notification-popover-actions{display:flex;flex-shrink:0;border-top:1px solid var(--line)}
.notification-popover-actions .notification-read-all{flex:1;width:auto;border-top:0}
.notification-clear{color:var(--muted)}
