.work-identity{position:relative;font:14px/1.45 Inter,"PingFang SC","Microsoft YaHei",sans-serif;min-width:0}
.work-identity button{font:inherit;white-space:nowrap;cursor:pointer}
.work-identity .work-identity-trigger{display:flex;align-items:center;gap:8px;height:36px;min-height:36px;padding:4px 10px;border:1px solid #b493d23d;border-radius:8px;background:var(--studio-surface,#25212c);color:var(--studio-text,#ece6f5)}
.work-identity-avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:26px;height:26px;border-radius:50%;background:#5b3e76;color:#eee0ff;font-size:13px;overflow:hidden}
.work-identity-avatar img{width:100%;height:100%;object-fit:cover}
.work-identity-name{max-width:160px;overflow:hidden;text-overflow:ellipsis}
.work-identity-role{font-size:12px;color:#c4a7e1;padding:1px 5px;border-radius:4px;background:#a78bc41a}
.work-identity-panel{position:absolute;right:0;top:calc(100% + 10px);width:min(310px,calc(100vw - 24px));max-height:calc(100dvh - 90px);overflow:auto;scrollbar-width:none;z-index:180;padding:12px;border:1px solid #ffffff24;border-radius:14px;background:var(--studio-surface,#201e24);box-shadow:0 16px 40px #0007;color:var(--studio-text,#ece6f5)}
.work-identity-panel::-webkit-scrollbar{display:none}
.work-identity-panel header{display:flex;align-items:center;justify-content:space-between;padding:0 4px 10px;border-bottom:1px solid #ffffff12}
.work-identity-panel header strong{font-size:14px}.work-identity-panel small{display:block;color:var(--studio-muted,#a6a1af);font-size:12px;margin-top:2px}
.work-identity-panel header button{display:grid;place-items:center;width:28px;min-height:28px;padding:0;background:transparent;border:0;color:inherit}
.work-identity-options{padding:8px 0}.work-identity-panel button{color:inherit;border:1px solid transparent;border-radius:8px;background:transparent}
.work-identity-options button{display:flex;align-items:center;gap:10px;text-align:left;width:100%;min-height:48px;padding:8px}
.work-identity-options button>span:not(.work-identity-avatar){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.work-identity-options button[aria-current=true]{background:#b492d419;border-color:#b492d42a}
.work-identity-panel button:hover{background:#b492d419}.work-identity button:focus-visible{outline:2px solid #c4a7e1;outline-offset:2px}
.work-identity-actions{border-top:1px solid #ffffff12;padding:8px 0}.work-identity-actions p{display:flex;justify-content:space-between;margin:2px 8px 8px;font-size:12px;color:var(--studio-muted,#aaa5b3)}
.work-identity-actions button,.work-identity-panel footer button{display:flex;align-items:center;gap:10px;min-height:36px;width:100%;padding:7px 8px;text-align:left}
.work-identity-panel footer{display:block;margin:0;padding:8px 0 0;border-top:1px solid #ffffff12}
.team-home-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:10px 0 24px}.team-home-summary button{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px!important;min-height:74px!important;text-align:left}.team-home-summary strong{font-size:22px}.team-identity-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.team-identity-directory button{display:flex;align-items:center;gap:14px;padding:20px;text-align:left}.team-identity-directory small{display:block;color:var(--studio-muted,#aaa5b3)}
.team-workspace .team-global-nav button[aria-current=page]{color:#c5a5ef;border-bottom-color:#b48ddd}.team-workspace .team-studio-brand{cursor:pointer;background:none;border:0;padding:0}.team-workspace .team-header-inner{min-height:64px}.team-workspace .team-header{min-height:64px}
@media(max-width:700px){.work-identity-name{max-width:105px}.work-identity-role{display:none}.team-home-summary{gap:8px}.team-home-summary button{padding:10px!important;flex-wrap:wrap}.team-workspace .team-header-inner{gap:10px}.team-workspace .team-studio-brand span{display:none}}

.team-identity-avatar{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;background:#352843;border:1px solid #58426e;color:#d9bef6;font-size:18px;font-weight:600}.team-identity-avatar img{height:100%;width:100%;object-fit:cover}.team-account-menu{position:relative;min-width:0}.team-context-line{display:flex;align-items:center;justify-content:space-between;gap:8px}.team-context-line button,.team-context-options button{display:flex;align-items:center;gap:8px;font:inherit;color:#e5ddec;border:1px solid transparent;border-radius:8px;background:transparent;cursor:pointer;min-height:34px;padding:6px 10px;text-align:left;white-space:nowrap}.team-context-trigger{min-width:0}.team-context-trigger>span:not(.team-identity-avatar){max-width:180px;overflow:hidden;text-overflow:ellipsis}.team-context-line .team-create-shortcut{font-size:12px;color:#cbb2ef}.team-context-line button:hover,.team-context-options button:hover{background:#292332;border-color:#4b3a60}.team-context-options{position:absolute;top:calc(100% + 8px);right:0;width:300px;max-width:calc(100vw - 32px);max-height:min(440px,60dvh);overflow:auto;padding:10px;background:#1b1822;border:1px solid #40354e;border-radius:12px;box-shadow:0 16px 42px #0007;z-index:55}.team-context-options>button{width:100%;padding:10px;white-space:normal}.team-context-options>button>span:not(.team-identity-avatar){flex:1;min-width:0;overflow-wrap:anywhere}.team-context-options small{display:block;font-size:11px;color:#a99db9;font-weight:400}.team-context-options>small{padding:10px}.team-context-options>p{font-size:11px;color:#a99db9;border-top:1px solid #36303f;padding:12px 10px 0;margin:8px 0 3px}.team-context-options .team-context-all{border-top:1px solid #36303f;border-radius:0;margin-top:7px;font-size:12px;color:#cbb2ef}.profile-popover .team-account-menu{border-block:1px solid #38303f;margin:12px 0;padding:7px 0}.profile-popover .team-context-options{position:static;width:100%;max-width:none;margin-top:8px;box-shadow:none}.team-account-menu :focus-visible{outline:2px solid #bd9ee5;outline-offset:2px}
.team-account-menu { font-family: Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif; }
.team-context-line button,.team-context-options button { color: #dedbe5; font-size: 13px; }
.team-context-line .team-create-shortcut { color: #bda0df; }
.team-context-options { background: #202123; border-color: #3d3b42; padding: 12px; border-radius: 14px; scrollbar-width: none; }
.team-context-options::-webkit-scrollbar { display: none; width: 0; height: 0; }
.team-context-options button { background: transparent; border-color: transparent; }
.team-context-line button:hover,.team-context-options button:hover { background: #2c2b30; border-color: transparent; }
.team-context-options small,.team-context-options>p { color: #a5a1ad; }
.team-context-options>p,.team-context-options .team-context-all { border-color: #ffffff17; }
.profile-popover .team-account-menu { border-color: #ffffff17; }
.profile-popover .team-context-options { margin-top: 4px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.profile-popover .team-context-options:empty { margin-top: 0; }
.team-context-trigger[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
.team-context-line .team-context-trigger:disabled { opacity: 1; cursor: default; }
.team-context-options .team-context-more { color: #bda0df; }
.profile-popover .team-context-line button,.profile-popover .team-context-options button { font-size: 14px; line-height: 20px; }
.profile-popover .team-context-line .team-create-shortcut { font-size: 13px; }
.profile-popover .team-context-options small { font-size: 12px; line-height: 18px; }

/* Explicit theme tokens keep account controls readable after lazy page CSS loads. */
.work-identity{--wi-bg:#201e24;--wi-text:#ece6f5;--wi-muted:#aaa5b3;--wi-border:#ffffff24;--wi-soft:#ffffff12;--wi-hover:#b492d419;--wi-accent:#d2b6ed;color:var(--wi-text)}
.work-identity .work-identity-trigger{justify-content:flex-start;background:var(--wi-bg);color:var(--wi-text);border-color:var(--wi-border);font-size:14px}
.work-identity .work-identity-panel{background:var(--wi-bg);color:var(--wi-text);border-color:var(--wi-border);text-align:left;box-shadow:0 16px 40px #0003}
.work-identity .work-identity-panel button{font-size:14px;line-height:20px;color:var(--wi-text);border:1px solid transparent;background:transparent;justify-content:flex-start;min-height:36px}
.work-identity .work-identity-panel header{border-color:var(--wi-soft)}.work-identity .work-identity-panel header button{justify-content:center;width:28px;min-height:28px;height:28px;padding:0}
.work-identity .work-identity-options button{display:flex;align-items:center;gap:10px;text-align:left;width:100%;min-height:48px;padding:7px 8px}
.work-identity .work-identity-options button[aria-current=true]{background:var(--wi-hover);border-color:var(--wi-soft)}
.work-identity .work-identity-panel button:hover:not(:disabled){background:var(--wi-hover);border-color:transparent}
.work-identity .work-identity-panel small,.work-identity .work-identity-actions p{color:var(--wi-muted)}
.work-identity .work-identity-role{color:var(--wi-accent);background:var(--wi-hover)}
.work-identity .work-identity-actions,.work-identity .work-identity-panel footer{border-color:var(--wi-soft)}
.work-identity .work-identity-actions button,.work-identity .work-identity-panel footer button{display:flex;align-items:center;gap:10px;min-height:36px;width:100%;padding:7px 8px;text-align:left}
.work-identity .studio-theme-control{padding:8px;border-color:var(--wi-soft)}.work-identity .studio-theme-options button{justify-content:center;min-height:32px;padding:5px;font-size:12px}.work-identity .studio-theme-options button[aria-checked=true]{background:var(--wi-hover);color:var(--wi-accent)}
.team-workspace .team-header-inner .team-studio-brand{justify-content:flex-start;cursor:pointer;background:transparent;border:0;padding:0}.team-workspace .team-global-nav{height:64px}
.team-workspace .team-header .work-identity svg{width:auto;height:auto;flex-shrink:0}
.team-page.team-workspace .team-header,.team-workspace .team-header .team-header-inner{min-height:64px}
.team-workspace .team-header-inner .team-studio-brand{justify-self:start}
:root[data-studio-theme="light"] .work-identity{--wi-bg:#fff;--wi-text:#232937;--wi-muted:#626b7b;--wi-border:#dce0e9;--wi-soft:#e3e5ed;--wi-hover:#eee8f9;--wi-accent:#6942a5}
:root[data-studio-theme="light"] .work-identity .work-identity-trigger{background:#f1edf7;color:#232937;border-color:#d8cce9}
:root[data-studio-theme="light"] .work-identity .work-identity-panel{background:#fff;color:#232937;border-color:#dce0e9}
:root[data-studio-theme="light"] .work-identity .work-identity-panel button{background:transparent;border-color:transparent;color:#232937}
:root[data-studio-theme="light"] .work-identity .work-identity-options button[aria-current=true],:root[data-studio-theme="light"] .work-identity .work-identity-panel button:hover:not(:disabled){background:#eee8f9;border-color:transparent}
:root[data-studio-theme="light"] .work-identity .studio-theme-options button[aria-checked=true]{background:#fff;color:#6942a5}
:root[data-studio-theme="light"] .work-identity .work-identity-avatar{background:#e8def5;color:#6942a5}
:root[data-studio-theme="light"] .profile-popover .team-account-menu :is(.team-context-trigger,.team-create-shortcut,.team-context-options button){background:transparent;color:#232937;border-color:transparent}
:root[data-studio-theme="light"] .profile-popover .team-account-menu .team-create-shortcut,:root[data-studio-theme="light"] .profile-popover .team-account-menu .team-context-more{color:#6942a5}
:root[data-studio-theme="light"] .profile-popover .team-account-menu button:hover:not(:disabled){background:#eee8f9;color:#232937}
:root[data-studio-theme="light"] .profile-popover .team-account-menu .team-context-options{background:transparent;color:#232937}
:root[data-studio-theme="light"] .team-account-menu .team-context-options small{color:#626b7b}
:root[data-studio-theme="light"] .team-account-menu .team-identity-avatar{background:#e8def5;border-color:#d5c6e8;color:#6942a5}
:root[data-studio-theme="light"] .team-page.team-workspace{--team-border:#dce0e9;--team-muted:#626b7b;color:#232937;background:radial-gradient(circle at 16% 6%,#8864d10a,transparent 28%),#f5f6fa}
:root[data-studio-theme="light"] .team-workspace .team-header{background:#fffffff2;border-bottom-color:#e5e6ed}
:root[data-studio-theme="light"] .team-workspace .team-header-inner .team-studio-brand{color:#232937;background:transparent;border-color:transparent}
:root[data-studio-theme="light"] .team-workspace .team-global-nav button{color:#626b7b}
:root[data-studio-theme="light"] .team-workspace .team-global-nav button[aria-current=page]{color:#6942a5}
@media(max-width:960px){.team-workspace .team-global-nav{height:42px}}

.profile-popover{scrollbar-width:none}.profile-popover::-webkit-scrollbar{display:none}

/* Explicit light surfaces also cover the previously deployed lazy team stylesheet. */
:root[data-studio-theme="light"] :is(.team-page.team-workspace,.team-dialog){--team-border:#dce0e9;--team-muted:#626b7b;color:#232937}
:root[data-studio-theme="light"] .team-workspace .team-main button,:root[data-studio-theme="light"] .team-dialog button{background:#fff;color:#343b4b;border-color:#dce0e9}
:root[data-studio-theme="light"] .team-workspace .team-main button:hover:not(:disabled),:root[data-studio-theme="light"] .team-dialog button:hover:not(:disabled){background:#eee8f9;border-color:#cbb9e3;color:#59338c}
:root[data-studio-theme="light"] .team-workspace .team-main :is(.team-workspace-nav button,.team-project-create,.team-project-access){background:transparent;border-color:transparent;color:#626b7b}
:root[data-studio-theme="light"] .team-workspace .team-main .team-workspace-nav button[aria-current=page]{color:#6942a5}
:root[data-studio-theme="light"] .team-workspace .team-project-create>span{background:#e9e7ee;border-color:#d7d3df;color:#343b4b}
:root[data-studio-theme="light"] .team-workspace .team-project-create>span svg{color:#626b7b}
:root[data-studio-theme="light"] .team-workspace .team-project-create:hover>span{background:#e2dce9;border-color:#a992bc}
:root[data-studio-theme="light"] .team-workspace .team-main :is(.team-home-summary button,.team-settings-summary>div,.team-settings-layout,.team-avatar-editor,.team-table,.team-project:not(.team-project-card),.team-permission-choices label){background:#fff;border-color:#dce0e9;color:#232937}
:root[data-studio-theme="light"] .team-workspace .team-main :is(.team-settings-layout>nav,.team-row.table-head){background:#f0f1f6;border-color:#dce0e9}
:root[data-studio-theme="light"] .team-workspace .team-main .team-settings-layout>nav button{background:transparent;border-color:transparent;color:#626b7b}
:root[data-studio-theme="light"] .team-workspace .team-main .team-settings-layout>nav button[aria-current=page],:root[data-studio-theme="light"] .team-workspace .team-permission-choices label.selected{background:#eee8f9;border-color:#d8cce9;color:#6942a5}
:root[data-studio-theme="light"] .team-workspace .team-main :is(.team-settings-summary strong,.team-settings-section h2,.team-role-guide strong,.team-profile-readonly,.team-empty h1,.team-empty h2){color:#232937}
:root[data-studio-theme="light"] .team-workspace .team-main :is(.team-heading p,.team-project-card>p,.team-project-create>small,.team-settings-summary span,.team-settings-summary small,.team-settings-summary em,.team-settings-section>p,.team-id,.team-avatar-editor p,.team-role-guide span,.team-permission-choices small,.team-profile-readonly small,.team-identity-directory small){color:#626b7b}
:root[data-studio-theme="light"] .team-workspace .team-project-canvases>button>span:first-child{color:#343b4b}
:root[data-studio-theme="light"] .team-workspace .team-project-canvases>button>span:last-child{color:#6942a5}
:root[data-studio-theme="light"] .team-workspace .team-main :is(.team-search,.team-project-cover){background:#e9ebf2;border-color:#dce0e9;color:#626b7b}
:root[data-studio-theme="light"] .team-workspace .team-search input{color:#232937}
:root[data-studio-theme="light"] .team-workspace .team-badge,:root[data-studio-theme="light"] .team-workspace .team-identity-avatar{background:#e8def5;border-color:#d5c6e8;color:#6942a5}
:root[data-studio-theme="light"] .team-dialog{background:#fff;border-color:#dce0e9;color:#232937}
:root[data-studio-theme="light"] .team-dialog :is(p,.team-field>span,.team-import-card>small,.team-import-footer small,.team-avatar-editor p),:root[data-studio-theme="light"] .team-workspace .team-field>span{color:#626b7b}
:root[data-studio-theme="light"] .team-dialog :is(header,.team-profile-form footer,.team-import-footer){border-color:#dce0e9}
:root[data-studio-theme="light"] .team-dialog :is(.team-form-note,.team-import-cover,.team-search){background:#f0f1f6;color:#626b7b;border-color:#dce0e9}
:root[data-studio-theme="light"] .team-dialog .team-import-card>strong{color:#232937}
:root[data-studio-theme="light"] :is(.team-workspace,.team-dialog) .team-field :is(input,textarea){background:#fff!important;border-color:#d2cedb!important;color:#232937}
:root[data-studio-theme="light"] .team-dialog :is(select,input:not([type=checkbox]),textarea){background:#fff;border-color:#d2cedb;color:#232937}
:root[data-studio-theme="light"] .team-dialog>.team-search input{background:transparent;border-color:transparent}
:root[data-studio-theme="light"] .team-workspace .team-main button.primary,:root[data-studio-theme="light"] .team-dialog button.primary{background:#8155b6;border-color:#8155b6;color:#fff}
:root[data-studio-theme="light"] .team-workspace .team-main .team-copy-id{color:#626b7b!important;background:transparent;border-color:transparent}
