header .profile-menu{position:relative;margin:0;text-align:left;flex:0 0 auto}header .profile-menu summary{list-style:none;cursor:pointer;display:flex;border-radius:50%}header .profile-menu summary::-webkit-details-marker{display:none}.profile-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#102a43;color:#fff;font:700 16px system-ui;border:3px solid #e4edf5}.profile-menu summary:focus-visible{outline:3px solid #92b5d1;outline-offset:3px}.profile-dropdown{position:absolute;right:0;top:52px;width:280px;max-width:calc(100vw - 32px);padding:16px;background:white;border:1px solid #dce4ec;box-shadow:0 12px 32px #102a4326;border-radius:12px;z-index:100;color:#102a43;font-family:system-ui,sans-serif}.profile-dropdown strong{display:block;overflow-wrap:anywhere;font-size:13px;margin-bottom:14px}.profile-caption{font-size:11px;color:#66788a;margin:0 0 4px!important}.profile-dropdown a,.profile-dropdown button{display:block;width:100%;text-align:left;font:500 14px system-ui;margin:0;padding:10px;border:0;background:white;color:#102a43;border-radius:7px;text-decoration:none;cursor:pointer}.profile-dropdown a:hover,.profile-dropdown button:hover{background:#eef4f9}header:has(.profile-menu){gap:20px}header nav{margin-left:auto}.site-header .profile-menu{z-index:60}@media(max-width:900px){.site-header .profile-menu{position:absolute;right:16px;top:12px}.site-header .brand{padding-right:42px}.site-header .product-pill{display:none}}

header #account-controls{margin:0;text-align:left;overflow:visible}

/* Keep public-page account menus anchored to the viewport's right edge. */
@media(max-width:900px){
  header:not(.site-header){position:relative;align-items:center;padding:16px 20px;gap:16px;min-height:68px}
  header:not(.site-header)>.brand{padding-right:52px;min-height:40px;display:flex;align-items:center}
  header:not(.site-header)>nav{order:2;flex:0 0 100%;width:100%;margin-left:0;gap:14px;align-items:center}
  header:not(.site-header) #account-controls{position:absolute;right:20px;top:16px;z-index:60}
  header:not(.site-header) .profile-dropdown{right:0;left:auto;width:280px;max-width:calc(100vw - 40px)}
}
