.account-topbar{justify-content:space-between;flex-wrap:nowrap;position:relative;z-index:40;min-height:78px}.topbar-context{font-size:12px;color:#728493;letter-spacing:.03em;overflow-wrap:anywhere}.account-actions{display:flex;gap:14px;align-items:center;flex-shrink:0}.topbar-dropdown{margin:0!important;position:relative;font-size:14px;color:#294354}.topbar-dropdown>summary{display:flex;align-items:center;list-style:none;cursor:pointer;padding:0!important;min-height:44px}.topbar-dropdown>summary::-webkit-details-marker{display:none}.profile-toggle{gap:10px;border-radius:12px;padding:5px 8px!important}.profile-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#dcecf0;color:#245c71;font-size:17px;font-weight:750;flex-shrink:0}.profile-caption{display:grid;gap:3px;max-width:180px}.profile-caption strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-caption small{font-size:10px;color:#748390}.notification-toggle{width:44px;justify-content:center;position:relative;border:1px solid #e0e8ee;border-radius:12px}.notification-count{position:absolute;top:-5px;right:-7px;border-radius:12px;padding:2px 5px;background:#ce4d49;color:white;font-size:10px;min-width:16px;text-align:center;border:2px solid white}.notification-count[hidden]{display:none}.topbar-dropdown[open]>summary{background:#edf5f7}.topbar-popup{position:absolute;right:0;top:calc(100% + 12px);border:1px solid #d9e4ea;background:white;box-shadow:0 16px 44px #16354826;border-radius:14px;padding:18px;width:300px;max-width:calc(100vw - 24px);box-sizing:border-box;max-height:calc(100svh - 170px);overflow:auto}.profile-popup p{font-size:12px;color:#688090;line-height:1.7;overflow-wrap:anywhere}.profile-role{display:inline-block;border-radius:6px;padding:5px 8px;background:#edf4f7;font-size:12px}.profile-popup>.stack-form{max-width:none!important;width:100%;margin-top:16px}.profile-popup .button{background:#fff0ef;color:#a33631;border:1px solid #f0d1ce;min-height:44px;width:100%}.notification-popup{width:370px;padding:0}.popup-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px 16px 8px}.notification-total{font-size:11px;color:#788897}.notification-scope{font-size:11px;line-height:1.65;color:#738695;padding:0 16px}.notification-list{border-top:1px solid #e6edf2}.notification-item{display:grid;gap:8px;text-decoration:none;color:#29495a;padding:14px 16px;border-bottom:1px solid #e7edf2;min-height:56px;line-height:1.55;font-size:13px;overflow-wrap:anywhere}.notification-item small{color:#7a8e9b;font-size:11px}.notification-item.unread{background:#eff7fa;border-left:3px solid #287a97;padding-left:13px}.notification-item:hover{background:#e2eff5}.notification-empty{font-size:13px;line-height:1.8;color:#738491;padding:20px 16px}.notification-read-form{padding:14px 16px}.notification-read-form button{width:100%;min-height:44px;border:1px solid #d4e1e8;border-radius:8px;background:#eff5f8;color:#255b70;cursor:pointer;font-size:12px}.notification-read-form button:disabled{opacity:.5;cursor:default}.notification-status{font-size:11px;color:#6b8190;margin:0;padding:0 16px 12px;line-height:1.7}.account-topbar :focus-visible{outline:3px solid #4889ec;outline-offset:3px}
@media(max-width:760px){.account-topbar{padding:10px 16px;min-height:68px}.topbar-context{font-size:11px;max-width:35%}.account-actions{gap:12px}.profile-caption{max-width:112px}.topbar-dropdown{position:static}.topbar-popup{right:12px;top:calc(100% + 4px);max-height:calc(100svh - 155px)}.notification-popup{width:min(370px,calc(100vw - 24px))}.profile-popup{width:280px}.account-topbar .profile-popup .stack-form{max-width:none}.profile-toggle{gap:7px}.profile-caption strong{font-size:12px}}
@media(max-width:360px){.profile-caption{max-width:90px}.account-topbar{padding:10px 12px}.account-actions{gap:9px}.profile-avatar{width:34px;height:34px}.topbar-context{max-width:25%;font-size:10px}}

.notification-popup .notification-list{max-height:min(360px,40svh);overflow-y:auto;overscroll-behavior:contain}

/* Independent notification menus share one feed, with a counter for each kind. */
.account-topbar .notification-toggle{width:auto;min-width:88px;gap:7px;padding:0 12px!important;border-radius:10px;font-size:12px;font-weight:600;white-space:nowrap}
.notification-toggle svg{flex-shrink:0}
@media(max-width:1100px){.account-topbar .profile-caption{display:none}.account-actions{gap:12px}}
@media(max-width:900px){.account-topbar .topbar-context{display:none}.account-topbar{justify-content:flex-end}.topbar-dropdown{position:static}.topbar-popup{right:12px;top:calc(100% + 4px)}}
@media(max-width:480px){.account-topbar{padding:12px;min-height:68px}.account-actions{width:100%;justify-content:flex-end;gap:10px}.account-topbar .notification-toggle{min-width:0;gap:5px;padding:0 9px!important;font-size:11px}.notification-toggle svg{width:18px;height:18px}.profile-toggle{gap:4px}.profile-avatar{width:34px;height:34px}.notification-count{right:-5px}}
@media(max-width:360px){.account-actions{gap:8px}.account-topbar .notification-toggle{padding:0 6px!important}.profile-toggle>span:last-child{display:none}}
