#account-menu summary{gap:10px;outline-offset:5px}
#account-menu summary::marker{content:""}
#account-menu .account-popover{position:fixed;top:var(--header-height);right:32px;width:min(310px,calc(100vw - 88px));max-height:calc(100svh - var(--header-height) - 12px);overflow:auto;padding:0;border:1px solid var(--border);border-top-color:var(--accent);border-radius:0 0 16px 16px;background:var(--panel);box-shadow:0 15px 38px #00181f35;transform-origin:top right}
#account-menu[open] .account-popover{animation:account-menu-reveal .16s ease-out}
.account-identity{display:flex;align-items:center;gap:12px;padding:17px 18px;border-bottom:1px solid var(--border)}
.account-identity .avatar{width:42px;height:42px;flex:none}
.account-identity strong{font-size:14px;font-weight:650;overflow-wrap:anywhere}
#account-menu .account-role{padding:3px 0 0;font-size:11px;line-height:1.5}
#account-menu .account-popover>a,#account-menu .account-popover>button{display:flex;align-items:center;gap:10px;width:calc(100% - 16px);margin:6px 8px;padding:10px 12px;border:0;box-shadow:none;background:none;border-radius:9px;font-size:12px}
#account-menu .account-popover>a:hover,#account-menu .account-popover>button:hover{background:var(--soft)}
#account-menu .account-popover>a svg,#account-menu .account-popover>button svg{width:18px;height:18px;flex:none;color:var(--icon-accent,var(--accent))}
#account-menu .theme-menu{padding:13px 18px;margin:0;border:0;border-top:1px solid var(--border)}
#account-menu .theme-menu>span,.account-preference-label{display:block;margin:0 0 9px;font-size:11px;font-weight:500;color:var(--muted)}
#account-menu .theme-segments{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px;background:var(--bg)}
#account-menu .theme-segments button{display:flex;align-items:center;justify-content:center;gap:5px;padding:7px 4px;font-size:11px}
#account-menu .theme-segments svg{width:15px;height:15px;flex:none}
.account-mood-section,.account-accent-section{padding:13px 18px;border-top:1px solid var(--border)}
#account-moods{display:flex;gap:8px}
#account-menu .account-mood-choice{display:grid;place-items:center;width:37px;height:35px;padding:0;border:1px solid transparent;border-radius:9px;background:transparent;box-shadow:none;font-size:19px}
#account-menu .account-mood-choice:hover,#account-menu .account-mood-choice[aria-pressed=true]{border-color:var(--border);background:var(--soft)}
.account-accent-options{display:flex;align-items:center;gap:9px}
#account-menu .account-accent-options button{width:29px;height:29px;min-height:0;padding:3px;border:1px solid transparent;border-radius:50%;background:none;box-shadow:none}
#account-menu .account-accent-options button[aria-pressed=true]{border-color:var(--text)}
.account-accent-options i{display:block;width:21px;height:21px;border-radius:50%;background:#b79b67;border:1px solid #ffffff25}
#account-menu #logout{color:var(--danger);border-top:1px solid var(--border);border-radius:0 0 9px 9px;margin-block:7px;padding-top:13px}
#account-menu #logout svg{color:currentColor}
@keyframes account-menu-reveal{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#account-menu[open] .account-popover{animation:none}}

#account-menu [data-account-accent="gold"] i{background:#efc675}
#account-menu [data-account-accent="teal"] i{background:#28c6bd}
#account-menu [data-account-accent="blue"] i{background:#64a4ed}
#account-menu [data-account-accent="violet"] i{background:#b69af3}
