header .header-profile{position:relative;flex-shrink:0}
#header-profile-toggle{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid #a6cc39;border-radius:50%;padding:0;background:#d0ff43;color:#14200a;cursor:pointer;overflow:hidden}
#header-profile-toggle .profile-avatar{display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;border-radius:50%;font:700 23px/1 system-ui;background:transparent;color:inherit}
#header-profile-toggle img{width:100%;height:100%;object-fit:cover;border-radius:50%}
#header-profile-toggle[aria-expanded=true]{box-shadow:0 0 0 3px #d0ff432a}
#header-profile-popover{position:absolute;right:0;top:calc(100% + 12px);width:260px;max-width:calc(100vw - 28px);box-sizing:border-box;padding:18px;border:1px solid #627742;border-radius:14px;background:#192111;box-shadow:0 12px 35px #0009;z-index:100;color:#f4f5eb}
#header-profile-popover[hidden]{display:none}
#header-profile-popover strong{display:block;font-size:15px;line-height:1.4;margin-bottom:14px;overflow-wrap:anywhere}
.header-profile-actions{display:flex;flex-direction:column;gap:8px}
.header-profile-actions button{width:100%;padding:11px;border:1px solid #748b40;border-radius:7px;background:#11180c;color:#d0ff43;font:600 14px system-ui;cursor:pointer}
.header-profile-actions button[hidden]{display:none}
.header-profile-actions #profile-login-open{background:#d0ff43;color:#14200a}
#header-profile button:focus-visible{outline:2px solid #f5f5ed;outline-offset:3px}
@media(max-width:560px){.library-ready header{flex-wrap:nowrap;gap:10px;min-height:84px}.library-ready header nav{width:auto;gap:10px;margin-left:auto}.library-ready header .header-identity>.brand{font-size:clamp(23px,5.9vw,33px)}.library-ready header .language-switch button{padding:6px 8px;font-size:12px}.library-ready header .language-switch{gap:0}#header-profile-toggle{width:40px;height:40px}}

.header-profile-actions #header-profile-logout{background:transparent;border-color:transparent;color:#b8bdae;font-weight:500}
.header-profile-actions #header-profile-logout:hover{background:#ffffff09;color:#f4f5eb}

.profile-admin-actions[hidden]{display:none!important}.profile-admin-actions{display:flex;flex-direction:column;gap:9px;width:100%;padding-top:10px;border-top:1px solid #465332}#header-profile-popover .profile-admin-actions a,#header-profile-popover .profile-admin-actions button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:12px 16px;border:1px solid #75913d;border-radius:8px;color:#d0ff43;background:#17200f;text-decoration:none;font:700 14px/1.3 system-ui;text-align:center}.profile-admin-actions button:disabled{opacity:.55;cursor:default}

/* The friends button is visible before the social panel is loaded. */
header .header-profile{display:flex;align-items:center;gap:10px}header .cc-social-entry{position:relative;display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:0;border-radius:50%;background:#1b2315;border:1px solid #56683b;color:#d0ff43;line-height:1}header .cc-social-entry[hidden]{display:none}header .cc-social-entry svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.cc-social-count{position:absolute;top:-4px;right:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:#d0ff43;color:#111;border:2px solid #11160e;font:700 10px/14px sans-serif}.cc-social-count[hidden]{display:none}@media(max-width:600px){header .header-profile{gap:8px}header .cc-social-entry{width:38px;height:38px}header .cc-social-entry svg{width:21px;height:21px}}

#header-profile-popover .admin-sync-status{font-size:12px;line-height:1.5;color:#c5ccb9;margin:0;overflow-wrap:anywhere}.admin-sync-status[hidden]{display:none}
