.user-status{gap:9px!important;margin-left:auto!important;padding-left:18px;flex:0 0 auto;min-height:44px}
.user-status>*{flex:0 0 auto}
.user-status .user-quota{display:none!important}
.user-status .user-name{display:inline-flex!important;align-items:center;min-height:44px;max-width:none!important;overflow:visible!important;color:var(--text-primary);font-weight:600;text-overflow:clip!important;white-space:nowrap}
.user-status .user-avatar.account-avatar-trigger,.user-status .user-avatar.account-settings-trigger{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;overflow:hidden!important;cursor:pointer}
.user-status .user-avatar.account-settings-trigger::after{display:none!important;content:none!important}
.user-status .user-avatar.account-avatar-trigger:focus-visible{outline:2px solid var(--accent-start,#c98a2a);outline-offset:2px}
.topbar .theme-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0;flex:none}
/* Keep the theme and account controls in their final positions before the
   deferred progress rail is revealed, preventing a full-width header jump. */
@media(min-width:1441px){.topbar .theme-btn{margin-left:auto}.topbar .user-status{margin-left:0!important}}
.user-status .wechat-bind-trigger,.user-status .btn-logout,.avf-workspace-switch-trigger{min-height:44px!important}
.user-status .wechat-bind-trigger{margin-right:2px}
.user-status .btn-logout{padding:0 12px}
.avf-identity-shell{position:relative;display:inline-flex;align-items:center;flex:none;font-family:inherit}
.avf-workspace-switch-trigger{min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 10px;border:1px solid var(--border-color);border-radius:7px;background:var(--bg-tertiary);color:var(--text-secondary);font:inherit;font-size:13px;white-space:nowrap;cursor:pointer;transition:transform 120ms cubic-bezier(.23,1,.32,1),opacity 120ms cubic-bezier(.23,1,.32,1)}
.avf-workspace-switch-trigger:hover{color:var(--text-primary)}
.avf-workspace-switch-trigger:active{transform:translateY(1px)}
.avf-workspace-switch-trigger:focus-visible,.avf-workspace-switch-target:focus-visible{outline:2px solid var(--accent-start,#c98a2a);outline-offset:2px}
.avf-workspace-switch-trigger svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;transition:transform 200ms cubic-bezier(.23,1,.32,1)}
.avf-identity-shell.is-open .avf-workspace-switch-trigger svg{transform:rotate(180deg)}
.avf-workspace-switch-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:12000;width:310px;overflow:hidden;border:1px solid var(--border-color);border-radius:12px;background:var(--bg-card);color:var(--text-primary);box-shadow:0 20px 52px rgba(38,28,12,.18);transform-origin:top right;animation:avfWorkspaceMenuIn 200ms cubic-bezier(.23,1,.32,1)}
.avf-workspace-switch-menu[hidden]{display:none!important}
@keyframes avfWorkspaceMenuIn{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:none}}
.avf-workspace-switch-head{padding:15px 16px 13px;border-bottom:1px solid var(--border-color)}
.avf-workspace-switch-head strong,.avf-workspace-switch-head small{display:block}
.avf-workspace-switch-head strong{font-size:15px;font-weight:600;color:var(--text-primary)}
.avf-workspace-switch-head small{margin-top:2px;color:var(--text-secondary);font-size:12px}
.avf-workspace-switch-current{min-height:48px;display:flex;align-items:center;justify-content:space-between;margin:10px 10px 6px;padding:0 12px;border-radius:9px;background:var(--bg-tertiary);color:var(--text-primary);font-size:13px}
.avf-workspace-switch-current small{color:var(--text-muted,var(--text-secondary));font-size:12px}
.avf-workspace-switch-target{width:calc(100% - 20px);min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 10px 10px;padding:8px 12px;border:1px solid rgba(201,138,42,.32);border-radius:9px;background:rgba(201,138,42,.07);color:var(--text-primary);text-align:left;cursor:pointer;transition:transform 120ms cubic-bezier(.23,1,.32,1),opacity 120ms cubic-bezier(.23,1,.32,1)}
.avf-workspace-switch-target:hover{border-color:rgba(201,138,42,.58)}
.avf-workspace-switch-target:active{transform:translateY(1px)}
.avf-workspace-switch-target:disabled{opacity:.58;cursor:wait}
.avf-workspace-switch-target strong,.avf-workspace-switch-target small{display:block}
.avf-workspace-switch-target strong{font-size:13px;font-weight:600}
.avf-workspace-switch-target small{max-width:190px;margin-top:2px;overflow:hidden;color:var(--text-secondary);font-size:11.5px;text-overflow:ellipsis;white-space:nowrap}
.avf-workspace-switch-state{color:var(--accent-start,#c98a2a);font-size:12px;white-space:nowrap}
@media(max-width:720px){.avf-workspace-switch-trigger{min-height:44px;padding:0 9px}.avf-workspace-switch-trigger span{display:none}.avf-workspace-switch-trigger:before{content:'切换';font-size:12px}.avf-workspace-switch-menu{position:fixed;right:12px;top:auto;bottom:max(12px,env(safe-area-inset-bottom));width:calc(100vw - 24px);transform-origin:bottom right;animation-duration:320ms}.avf-workspace-switch-current{min-height:52px}.avf-workspace-switch-target{min-height:62px}}
@media(max-width:1180px) and (min-width:721px){.topbar{row-gap:8px}.topbar .user-status{flex-basis:100%;justify-content:flex-end;padding:0}}
@media(max-width:720px){.topbar .user-status{width:100%;justify-content:flex-end;gap:8px!important;padding:0}.user-status .vip-badge,.user-status .user-quota{display:none!important}}
@media(min-width:721px) and (max-width:1440px){.topbar:has(.avf-progress-rail:not([hidden])){flex-wrap:wrap!important;row-gap:8px!important}.topbar:has(.avf-progress-rail:not([hidden])) .topbar-title{order:1}.topbar:has(.avf-progress-rail:not([hidden])) .theme-btn{order:2;margin-left:auto}.topbar:has(.avf-progress-rail:not([hidden])) .user-status{order:3;flex-basis:auto;margin-left:auto!important;padding-left:18px}.topbar:has(.avf-progress-rail:not([hidden])) .avf-progress-rail{order:4;flex:1 0 100%;width:100%}}
@media(prefers-reduced-motion:reduce){.avf-workspace-switch-trigger,.avf-workspace-switch-trigger svg,.avf-workspace-switch-target{transition:none}.avf-workspace-switch-menu{animation:none}}
