/* One positioned dropdown shared by public and internal headers. */
.header-session-tools{display:flex;gap:6px;align-items:center;min-width:0}
.account-menu{position:relative;width:220px;max-width:100%;min-width:0;color:inherit;font-size:12px}
.account-menu summary{display:flex;align-items:center;gap:6px;list-style:none;cursor:pointer;padding:6px 8px;border:1px solid #8397ac;border-radius:6px;height:44px;white-space:nowrap}
.account-menu summary::-webkit-details-marker{display:none}.account-menu summary strong{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.account-icon{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8}
.account-dropdown{position:absolute;top:calc(100% + 8px);right:0;width:288px;max-width:calc(100vw - 24px);z-index:50;background:white;color:#23364a;border:1px solid #8397ac;border-radius:8px;box-shadow:0 8px 24px #102b4633;max-height:calc(100dvh - 180px);overflow-y:auto;overscroll-behavior:contain;text-align:left}
.account-identity{padding:10px 12px;border-bottom:1px solid #dce4ed;overflow-wrap:anywhere}.account-memberships p{margin:5px 0;font-size:12px;color:#53677c}
.account-menu .account-menu-actions{display:grid;gap:2px;padding:6px;margin:0;background:white;color:#23364a}
.account-menu .account-menu-actions a{display:flex!important;align-items:center;min-height:40px;padding:8px;color:#102b46!important;text-decoration:none;font-size:13px;border-radius:4px}
.account-menu-actions form{margin:0}.account-menu .account-menu-actions button{display:block;width:auto;max-width:100%;min-height:40px;padding:8px;text-align:left;font:inherit;border:1px solid transparent;border-radius:4px;background:white;color:#942735;white-space:normal}
.account-card{max-width:680px}.account-card input{display:block;width:100%}.account-card form{max-width:440px}
.account-menu :focus-visible{outline:3px solid #e6ac39;outline-offset:2px}.account-menu a:active,.account-menu button:active{box-shadow:inset 0 0 0 2px currentColor}
.topbar:has(.account-menu){height:88px;flex-wrap:nowrap;align-items:center}.topbar nav:has(.account-menu){flex-wrap:nowrap;min-width:0}.topbar .session-context{margin-left:auto;min-width:0;flex-shrink:0;order:10}
.public-header:has(.account-menu) .header-inner{height:88px;flex-wrap:nowrap;padding-top:12px;padding-bottom:12px}
@media(hover:hover){.account-menu summary:hover{background:#214c70;color:white}.account-menu .account-menu-actions a:hover{background:#e0edf5;color:#102b46}.account-menu .account-menu-actions button:hover{background:#f9dce0;border-color:#ad4a59;color:#7d1f2c}}
@media(max-width:720px){
 .topbar:has(.account-menu){height:144px;flex-wrap:wrap;align-content:center;gap:8px}
 .topbar nav:has(.account-menu){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px auto;width:100%;margin-left:0;gap:6px}
 .topbar .session-context{grid-column:2;grid-row:1;order:initial;max-width:60vw}
 .topbar .warehouse-nav{grid-column:1;grid-row:1;font-size:11px}
 .topbar .header-session-tools{grid-column:1/-1;grid-row:2}
 .topbar .header-session-tools button{font-size:10px;padding:2px 6px;min-height:28px}
 .account-menu{width:180px}.account-menu .account-menu-actions a,.account-menu .account-menu-actions button{min-height:44px}
 .public-header:has(.account-menu) .header-inner{height:132px;flex-wrap:wrap;gap:8px}
 .public-header nav:has(.account-menu){margin-left:auto}
}
@media(prefers-reduced-motion:reduce){.account-menu *{transition:none}}

/* Profile content does not change the shared fixed header/dropdown geometry. */
.account-initials,.profile-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;background:#dceaf4;color:#102b46;font-weight:700}.account-initials{width:24px;height:24px;font-size:10px}
.profile-workspace{max-width:980px;width:100%;margin-right:auto}.profile-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}.profile-heading p{margin:0}.profile-avatar{width:44px;height:44px}
.profile-editor{margin:0}.profile-editor fieldset{border:0;padding:0;margin:0;min-width:0}.profile-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-sections section{margin:0 0 12px}
.profile-field input,.profile-field select{width:100%;min-width:0}.profile-field label{font-size:12px}.profile-field .errorlist{padding-left:18px}.profile-actions{display:flex;gap:8px;align-items:center;margin:8px 0 16px}
@media(max-width:720px){.profile-sections{grid-template-columns:minmax(0,1fr)}.profile-field input,.profile-field select{min-height:44px}}
