.profile-dropdown{position:fixed;inset:auto;margin:0;width:330px;max-width:calc(100vw - 24px);padding:8px;border:1px solid #e9e5df;border-radius:19px;background:#fff;color:#202125;box-shadow:0 12px 40px #36271418,0 2px 8px #36271408;overflow-y:auto;overscroll-behavior:contain;font-family:inherit}
.profile-dropdown:not(:popover-open){display:none}
.profile-dropdown:popover-open{animation:profile-menu-in .16s ease-out both}
.profile-dropdown::backdrop{background:transparent}
.profile-menu-person{display:flex;align-items:center;gap:11px;padding:14px 10px 18px;border-bottom:1px solid #eeebe7;margin:0 3px 5px}
.profile-menu-person>.avatar{--a:42px}
.profile-menu-person>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.profile-menu-person b{font-size:15px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-menu-person small{font-size:11px;color:#95929b}
.profile-dropdown button{font-family:inherit;cursor:pointer}
.profile-edit-link{display:flex;align-items:center;gap:3px;border:0;background:none;color:#8b8790;font-size:11px;padding:8px 0 8px 5px}
.profile-edit-link svg{width:13px;height:13px}
.profile-edit-link:hover{color:var(--orange)}
.profile-menu-setting{display:flex;align-items:center;gap:12px;width:100%;min-height:67px;padding:12px;border:0;border-radius:12px;background:none;text-align:left;color:#8e8b92}
.profile-menu-setting>svg{width:20px;height:20px;flex:none}
.profile-menu-setting>span{flex:1;display:flex;flex-direction:column;gap:5px;min-width:0}
.profile-menu-setting b{font-size:14px;font-weight:550;color:#303034;line-height:1.25}
.profile-menu-setting small{color:#a19ca2;font-size:10px;line-height:1.4}
.profile-menu-setting:hover,.profile-menu-links button:hover{background:#faf7f3}
.profile-menu-switch{position:relative;width:35px;height:21px;border:1px solid #e0dcda;border-radius:20px;background:#eae7e4;flex:none;transition:background .18s,border-color .18s}
.profile-menu-switch:after{content:'';position:absolute;top:2px;left:2px;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #2920171f;transition:transform .18s}
.profile-menu-setting[aria-checked=true] .profile-menu-switch{background:#ff641c;border-color:#ff641c}
.profile-menu-setting[aria-checked=true] .profile-menu-switch:after{transform:translateX(14px)}
.profile-menu-links{padding-top:6px;border-top:1px solid #eeebe7;margin-top:5px}
.profile-menu-links button{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:11px 12px;border:0;border-radius:11px;background:none;color:#8e8b92;text-align:left}
.profile-menu-links button svg{width:19px;height:19px;flex:none}
.profile-menu-links button span{flex:1;font-size:13px;color:#454247}
.profile-menu-links button svg:last-child{width:15px;height:15px;color:#b2adb2}
.profile-menu-links button[hidden]{display:none}
.profile-dropdown button:focus-visible,.header .profile-trigger:focus-visible{outline:2px solid #ff8a4f;outline-offset:-2px;border-radius:10px}
.profile-trigger>span:last-child{transition:transform .18s}
.profile-trigger[aria-expanded=true]>span:last-child{transform:rotate(180deg)}
.is-anonymous .avatar.face-0:not([data-chat-identity]){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='24' fill='%23eeeae4'/%3E%3Ccircle cx='24' cy='18' r='8' fill='%23a39a90'/%3E%3Cpath d='M9 43c0-10 6-15 15-15s15 5 15 15' fill='%23a39a90'/%3E%3C/svg%3E");background-size:cover;background-position:center}
@keyframes profile-menu-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:761px) and (max-width:1000px){.header .profile-trigger{display:flex}.header-actions{gap:10px}.header-inner{gap:14px}.desktop-nav{gap:13px}}
@media(max-width:760px){.header .profile-trigger{display:flex;padding:2px}.header .profile-trigger .avatar{--a:32px}.header .profile-trigger>span:last-child{display:none}.header-actions{gap:6px}.profile-dropdown{width:330px}.profile-menu-person{padding-top:12px}}
/* Shared native popover: a compact overlay for both mobile header invokers. */
@media(max-width:1000px){
 .profile-dropdown{width:260px;padding:8px 10px;border-radius:14px;opacity:0;transform:translateY(-6px);transition:opacity .14s ease,transform .17s ease,display .17s allow-discrete,overlay .17s allow-discrete}
 .profile-dropdown:popover-open{opacity:1;transform:none;animation:none}
 @starting-style{.profile-dropdown:popover-open{opacity:0;transform:translateY(-6px)}}
 .profile-menu-person{position:relative;gap:10px;padding:10px 5px 14px;margin:0 3px 5px;min-height:64px}
 .profile-menu-person>.avatar{--a:34px}
 .profile-menu-person>span:nth-child(2){gap:4px;padding-right:20px}
 .profile-menu-person b{font-size:14px}
 .profile-menu-person small{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .profile-edit-link{position:absolute;inset:0;width:100%;min-height:44px;justify-content:flex-end;padding:0 5px;background:transparent}
 .profile-edit-link>span{display:none}
 .profile-edit-link svg{width:17px;height:17px}
 .profile-menu-setting{gap:12px;min-height:44px;padding:10px 9px;border-radius:8px}
 .profile-menu-setting b{font-size:14px;font-weight:450}
 .profile-menu-setting small{display:none}
 .profile-menu-setting>svg{width:20px;height:20px}
 .profile-menu-links{margin-top:7px;padding-top:6px}
 .profile-menu-links button{min-height:44px;padding:10px 9px;border-radius:8px}
 .profile-menu-links button span{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.profile-dropdown:popover-open{animation:none}.profile-menu-switch,.profile-menu-switch:after,.profile-trigger>span:last-child{transition:none}}
@media(prefers-reduced-motion:reduce){.profile-dropdown{transition:none;transform:none}}

/* Sent messages keep the identity selected at send time. */
.chat-message .avatar[data-chat-identity="anonymous"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='24' fill='%23eeeae4'/%3E%3Ccircle cx='24' cy='18' r='8' fill='%23a39a90'/%3E%3Cpath d='M9 43c0-10 6-15 15-15s15 5 15 15' fill='%23a39a90'/%3E%3C/svg%3E");background-size:cover;background-position:center}
