/* Home/project surfaces inherit the personal shell; management styling stays local. */
.team-shell .team-shell-notices:empty{display:none}
.team-shell .team-shell-notices{padding-top:12px}
.team-shell .team-management{min-height:calc(100dvh - 78px);background:transparent;color:inherit}
.team-shell .team-management .team-main{width:var(--home-shell)}
.team-shell .team-library-context{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--studio-muted,#aaa5b3)}
.team-shell .project-cover>img{width:100%;height:100%;object-fit:cover}
.team-shell .header-actions>button:disabled{cursor:not-allowed;opacity:.65}
.team-shell .studio-shortcuts__grid>button:disabled{cursor:not-allowed;opacity:.65}
.team-shell .project-browser .section-heading{align-items:center;flex-wrap:wrap;gap:12px}
.team-shell .project-browser .section-heading h1{min-width:0;overflow-wrap:anywhere}
:root[data-studio-theme="light"] .team-shell .team-management{background:transparent;color:inherit}
:root[data-studio-theme="light"] .team-shell .team-library-context{color:#626b7b}
@media(max-width:640px){.team-shell .team-library-context{max-width:140px}}

/* 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}}
/* The same personal avatar, with a compact workspace badge on its right. */
.work-identity .work-identity-trigger.work-identity-account,
:root[data-studio-theme="light"] .work-identity .work-identity-trigger.work-identity-account{height:40px;min-height:40px;padding:2px;gap:7px;background:transparent;border:0;color:var(--wi-text);border-radius:8px}
.work-identity-account-avatar{display:block;width:36px;height:36px;border-radius:50%;overflow:hidden;flex:none}
.work-identity-account-avatar :is(img,svg){width:100%;height:100%;display:block}
.work-identity-team-label{font-size:12px;font-weight:500;line-height:20px;padding:0 6px;border-radius:5px;color:var(--wi-accent);background:var(--wi-hover);white-space:nowrap}
.work-identity-account[aria-expanded=true] .work-identity-account-avatar{outline:2px solid var(--wi-accent);outline-offset:2px}
@media(max-width:640px){.work-identity-account-avatar{width:30px;height:30px}.work-identity .work-identity-trigger.work-identity-account{gap:5px}.work-identity-team-label{font-size:11px;padding:0 4px}}
