.portal-header-actions{min-width:0;color:var(--foreground);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;margin-left:auto;font-size:14px;display:flex}details.portal-user-menu{color:var(--foreground);flex:none;font-size:13px;position:relative}.portal-user-menu>summary{cursor:pointer;outline-offset:3px;background:0 0;border:1px solid #0000;border-radius:9px;align-items:center;gap:9px;min-height:42px;padding:4px 7px 4px 4px;list-style:none;display:flex}.portal-user-menu>summary::-webkit-details-marker{display:none}.portal-user-menu>summary:hover,.portal-user-menu[open]>summary{background:var(--muted);border-color:var(--border)}.portal-user-avatar{background:var(--muted);width:34px;height:34px;color:var(--foreground);border-radius:50%;flex:0 0 34px;justify-content:center;align-items:center;font-size:12px;font-weight:600;display:inline-flex;position:relative}.portal-user-avatar>img{object-fit:cover;border-radius:50%;width:100%;height:100%}.portal-user-avatar>i{border:2px solid var(--card);background:#49c993;border-radius:50%;width:10px;height:10px;position:absolute;bottom:-1px;right:-1px}.portal-user-avatar>i[data-status=away]{background:#e6b64c}.portal-user-avatar>i[data-status=offline]{background:#eb6676}.portal-user-name{text-overflow:ellipsis;white-space:nowrap;max-width:min(210px,30vw);font-weight:500;overflow:hidden}.portal-user-chevron{width:25px;height:25px;color:var(--muted-foreground);background:var(--muted);border-radius:7px;justify-content:center;align-items:center;display:inline-flex}.portal-user-chevron>svg{transition:transform .15s}.portal-user-menu[open] .portal-user-chevron>svg{transform:rotate(180deg)}.portal-user-popover{z-index:1200;width:276px;max-width:calc(100vw - 24px);max-height:min(540px,var(--user-menu-space,calc(100dvh - 90px)));background:var(--card,#191f33);color:var(--foreground,#edf2fc);border:1px solid var(--border);border-radius:10px;padding:6px;position:absolute;top:calc(100% + 8px);right:0;overflow:auto;box-shadow:0 10px 26px #0003}.portal-user-identity{border-bottom:1px solid var(--border);gap:5px;margin-bottom:4px;padding:10px;display:grid}.portal-user-identity strong{overflow-wrap:anywhere;font-size:13px}.portal-user-identity small{color:var(--muted-foreground);font-size:12px}.portal-user-popover nav{border-bottom:1px solid var(--border);margin-bottom:4px;padding-bottom:4px;display:grid}.portal-user-popover button{width:100%;min-height:38px;color:inherit;box-shadow:none;font:inherit;text-align:left;white-space:normal;background:0 0;border:0;border-radius:6px;align-items:center;gap:9px;margin:0;padding:9px 10px;text-decoration:none;display:flex}.portal-user-popover button:hover,.portal-user-popover button[aria-current=page]{background:var(--accent);color:var(--accent-foreground)}.portal-user-popover .portal-theme-toggle:after{content:attr(aria-label)}.portal-user-extra{border-bottom:1px solid var(--border);margin-bottom:4px;padding:4px}.portal-user-popover .portal-user-logout{color:#ed8491;border-top:1px solid var(--border);border-radius:0 0 6px 6px;margin-top:4px}.portal-user-popover p[role=alert]{color:#ed8491;padding:0 10px;font-size:12px}@media (max-width:600px){.portal-user-name{max-width:140px}.portal-header-actions{gap:7px}.portal-user-popover button{min-height:44px}}@media (prefers-reduced-motion:reduce){.portal-user-chevron>svg{transition:none}}.portal-unified-header{border-bottom:1px solid var(--border);background:var(--card);height:auto;min-height:70px;color:var(--foreground);flex-wrap:wrap;flex:none;gap:16px;padding:10px 20px}html[data-portal-theme] .portal-user-menu .portal-user-options .portal-theme-toggle{width:100%;height:auto;min-height:38px;color:inherit;font:inherit;text-align:left;background:0 0;border:0;border-radius:6px;justify-content:flex-start;align-items:center;gap:9px;margin:0;padding:9px 10px;display:flex}
