.site-header .brand{flex-shrink:0}.site-header .nav-actions{min-width:0;flex-shrink:1;gap:12px}
.account-menu{position:relative;min-width:0;max-width:100%}.account-toggle{list-style:none;display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;padding:7px 9px;border:1px solid transparent;border-radius:11px;cursor:pointer;color:var(--ui-text,#263957)}.account-toggle::-webkit-details-marker{display:none}.account-toggle:hover,.account-menu[open] .account-toggle{background:var(--ui-subtle,#f3f6fd);border-color:var(--ui-border,#e0e7f4)}.account-toggle:focus-visible{outline:3px solid var(--ui-focus-border,#9eb1ff);outline-offset:3px}
.account-avatar{width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:var(--ui-accent-bg,#edf2ff);color:var(--ui-link,#375ce9);display:grid;place-items:center}.account-avatar .menu-icon{width:21px;height:21px}.account-identity{display:grid;min-width:0;max-width:min(220px,24vw);gap:2px}.account-identity strong,.account-identity small,.account-popover-identity strong,.account-popover-identity small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-identity strong{font-size:14px;font-weight:750;color:var(--ui-text,#17243c)}.account-identity small{font-size:12px;line-height:1.3}.account-chevron{flex-shrink:0;color:var(--ui-muted,#8191aa);transition:transform .16s}.account-menu[open] .account-chevron{transform:rotate(180deg)}
.account-popover{position:absolute;z-index:100;top:calc(100% + 9px);right:0;width:264px;max-width:calc(100vw - 28px);padding:8px;background:var(--ui-surface,white);border:1px solid var(--ui-border,#dce4f3);border-radius:14px;box-shadow:0 14px 40px #253b7d24}.account-popover-identity{padding:10px 12px 13px;border-bottom:1px solid var(--ui-border,#e4eaf4);margin-bottom:5px;min-width:0}.account-popover-identity strong{font-size:14px}.account-popover-identity small{font-size:12px;margin-top:3px}.signed-in .site-header .account-popover a,.site-header .account-popover .account-logout{display:flex;align-items:center;justify-content:flex-start;width:100%;gap:10px;padding:11px 12px;border:0;border-radius:8px;color:var(--ui-muted,#475a77);background:transparent;font-size:14px;font-weight:600;text-align:left;line-height:1.3}.site-header .account-popover a:hover,.site-header .account-popover .account-logout:hover{background:var(--ui-accent-bg,#edf2ff);color:var(--ui-link,#375ce9);transform:none}.account-popover .menu-icon{width:19px;height:19px;flex-shrink:0}.site-header .account-popover form{border-top:1px solid var(--ui-border,#e4eaf4);margin-top:5px;padding-top:5px}.account-menu-count{margin-left:auto;color:var(--ui-link,#375ce9);background:var(--ui-accent-bg,#e9eeff);font-size:11px;border-radius:12px;padding:3px 6px}
.signed-in .site-header .nav-actions .account-bell{position:relative;display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:0;border:1px solid var(--ui-border,#dce4f3);background:var(--ui-surface,#fff);border-radius:11px;color:var(--ui-muted,#53647d)}.account-bell .menu-icon{width:23px;height:23px}.signed-in .site-header .nav-actions .account-bell.has-unread,.signed-in .site-header .nav-actions .account-bell.current{background:var(--ui-accent-bg,#edf2ff);border-color:var(--ui-border,#d2ddff);color:var(--ui-link,#375ce9)}.account-badge{position:absolute;top:-5px;right:-6px;min-width:19px;height:19px;display:grid;place-items:center;padding:0 4px;border:2px solid var(--ui-border,#fff);background:#e34555;color:white;border-radius:12px;font-size:10px;font-weight:800;box-shadow:0 2px 6px #e3455544}.cabinet-page .site-header{background:var(--ui-surface,#fff)}.cabinet-page .account-toggle{border-left:1px solid var(--ui-border,#e2e8f2);border-radius:0 10px 10px 0;padding-left:14px}.cabinet-page .account-toggle:hover,.cabinet-page .account-menu[open] .account-toggle{border-radius:10px}
@media(max-width:900px){.account-identity{max-width:min(180px,28vw)}}
@media(max-width:540px){.site-header .nav-actions{gap:8px}.account-toggle{gap:5px;padding:4px}.account-avatar{width:32px;height:32px;flex-basis:32px}.account-avatar .menu-icon{width:18px;height:18px}.account-identity{max-width:min(100px,22vw)}.account-identity strong{font-size:12px}.account-identity small{display:none}.account-chevron{width:12px;height:12px}.signed-in .site-header .nav-actions .account-bell{width:36px;height:36px;flex-basis:36px}.account-bell .menu-icon{width:19px;height:19px}.cabinet-page .account-toggle{padding-left:6px;border-left-color:transparent}.signed-in .site-header .account-popover a{padding:11px 12px;font-size:14px}.site-header{gap:7px}.account-popover{width:244px}}
@media(max-width:365px){.account-identity{max-width:45px}.account-toggle{gap:3px}.account-avatar{width:28px;height:28px;flex-basis:28px}.site-header .nav-actions{gap:4px}.cabinet-page .site-header{padding-inline:9px}.cabinet-page .account-toggle{padding-left:3px}}
