/* Shared header: keep member tools outside the navigation's normal flow. */
.site-header [hidden]{display:none!important}
.site-header .header-actions{min-width:0;align-items:center;flex-wrap:nowrap}
.site-header .member-header-tools{position:relative;display:flex;align-items:center;flex:0 0 auto;order:0;margin-inline-end:auto}
.site-header .member-header-tools:has(.member-notifications[hidden]){display:none}
.signed-in-member .topbar [data-login],.signed-in-member .topbar [data-logout]{display:none!important}
.site-header .member-notifications{position:relative;display:grid;place-items:center;width:28px;height:35px;padding:0;background:none;border:0;color:#ff5359;cursor:pointer;flex:none}
.site-header .member-notifications svg{display:block;width:24px;height:24px;stroke:currentColor}
.site-header .notification-count{position:absolute;top:0;right:-4px;min-width:16px;height:16px;padding:0 3px;display:grid;place-items:center;border-radius:10px;background:#ff5359;color:#fff;font-size:10px;font-weight:700}
.site-header .notification-popover{position:absolute;z-index:1000;top:calc(100% + 12px);inset-inline-start:0;width:340px;max-width:calc(100vw - 24px);padding:0;border:1px solid #e1e4e8;border-radius:16px;background:#fff;color:#222;box-shadow:0 12px 38px #0002;overflow:hidden;text-align:left;direction:ltr;font-size:14px;line-height:1.6}
.site-header .notification-popover>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid #eee;background:#fff}
.site-header .notification-popover button{font:inherit;background:transparent;border:0;color:#ff5359;padding:0;cursor:pointer;font-size:12px}
.site-header .notification-list{max-height:360px;overflow:auto}
.site-header .notification-empty{padding:24px 16px;margin:0;text-align:center;color:#78808a}
.site-header .notification-item{display:flex;flex-direction:column;gap:4px;padding:14px 16px;color:#222;text-decoration:none;border-bottom:1px solid #eee}
.site-header .notification-item.unread{background:#fff7f7}
.site-header .notification-item:hover{background:#f5f6f7}
.site-header .notification-item small{color:#78808a;font-size:11px}
.site-header .nav-inner{display:flex;align-items:stretch;gap:0}
.site-header .nav-link{flex:1;min-width:0}
.signed-in-member .quick-note{background:#f8d9a8;border-color:#ffbf00}
.signed-in-member .quick-note .note-icon{background:#666}
@media(max-width:760px){
 .site-header .member-header-tools{margin:0;order:-1}
 .site-header .notification-popover{position:fixed;top:62px;left:12px;right:12px;width:auto;max-width:none;inset-inline-start:12px}
 .site-header .member-notifications{width:20px;height:28px}
 .site-header .member-notifications svg{width:20px;height:24px}
 .site-header .nav-link{min-width:0}
}
.site-header .brand{min-width:0;white-space:nowrap}
@media(min-width:1051px){.site-header .topbar{grid-template-columns:160px 130px 174px minmax(0,1fr)}}
@media(min-width:761px) and (max-width:1050px){.site-header .topbar{grid-template-columns:145px 115px 160px minmax(0,1fr);gap:16px}.site-header .brand-name{font-size:22px}}
.notification-toolbar{display:flex;gap:8px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid #e8ede6}.notification-toolbar button,.notification-popover footer button{font:inherit;font-size:.8rem;cursor:pointer;border:1px solid #d9e3d4;border-radius:8px;padding:7px 10px;background:#fff;color:#36553f}.notification-toolbar button[aria-pressed="true"]{background:#e6f0de;border-color:#89a57b}.notification-status{margin:0;padding:10px 16px;color:#62705f;font-size:.8rem;line-height:1.7}.notification-popover footer{display:flex;justify-content:space-between;gap:10px;padding:12px 16px;border-top:1px solid #e8ede6}.notification-popover button:disabled{opacity:.5;cursor:wait}.notification-item[aria-busy="true"]{opacity:.6;pointer-events:none}.notification-list{max-height:min(50vh,430px);overflow-y:auto;overscroll-behavior:contain}.notification-popover a:focus-visible,.notification-popover button:focus-visible{outline:3px solid #c9a248;outline-offset:2px}.notification-popover header button[data-notifications-close]{font-size:1.35rem;padding:0 8px}.notification-item strong,.notification-item span{overflow-wrap:anywhere}.notification-item.unread{border-inline-start:3px solid #5e824e}@media(max-width:600px){.notification-popover{position:fixed;top:90px;inset-inline:12px;width:auto;max-width:none;max-height:calc(100dvh - 110px);overflow-y:auto}}
