/* Live business cabinet. The archived gallery and student cabinet stay independent. */
body[data-workspace=true] .sidebar{gap:0}
.workspace-module-trigger>.icon:last-child{width:13px;height:13px;margin-left:auto;opacity:.6;transition:transform .18s}
.workspace-module-trigger[aria-expanded=true]>.icon:last-child{transform:rotate(180deg)}
body[data-workspace=true] .sidebar .nav{gap:var(--nav-row-gap);scrollbar-width:thin;overscroll-behavior:contain}
body[data-workspace=true] .sidebar-footer{flex-shrink:0;border-top:1px solid var(--side-line);margin-top:12px;padding-top:12px;gap:var(--nav-row-gap)}
body[data-workspace=true] .workspace-label{display:block;text-align:left}
body[data-workspace=true] .sidebar-footer{min-width:0;grid-template-columns:minmax(0,1fr)}
.crm-nav-module .crm-pipelines-toggle{padding-right:3px}
.crm-nav-module .crm-manage-trigger{width:25px;height:28px}
.workspace-tools{margin-top:12px;padding-top:12px;border-top:1px solid var(--side-line)}
.workspace-tools-trigger{width:100%;text-align:left}
.workspace-tools-trigger>.icon:last-child{margin-left:auto;width:13px;height:13px;opacity:.6;transition:transform .18s}
.workspace-tools-trigger[aria-expanded=true]>.icon:last-child{transform:rotate(180deg)}
#workspace-tools-links{padding-top:5px}
.workspace-module-picker{position:fixed;z-index:48;width:430px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);display:flex;flex-direction:column;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:16px;color:var(--ink);box-shadow:0 16px 48px #10182729,0 2px 8px #1018270c;animation:workspace-picker-in .18s var(--ease)}
.workspace-picker-heading{display:flex;justify-content:space-between;align-items:center;padding:3px 4px 9px 10px;flex-shrink:0}
.workspace-picker-heading strong{font-size:12px;font-weight:500;color:var(--muted)}
.workspace-picker-heading .icon-btn{width:28px;height:28px}
.workspace-picker-heading .icon{width:16px;height:16px}
.workspace-picker-groups{display:grid;grid-template-columns:1fr 1fr;gap:15px 12px;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px}
.workspace-ready-group h2{padding:4px 10px 6px;font-size:10px;font-weight:500;color:var(--muted);line-height:1.6}
.workspace-ready-group>div{display:grid}
.workspace-module-choice>span{flex:1}
.workspace-planned-group{padding:0 0 6px}
.workspace-planned-group h2{font-size:10px;font-weight:500;padding:4px 10px 6px;color:var(--muted);line-height:1.6}
.workspace-planned-group h2 span{font-weight:400;white-space:nowrap}
.workspace-home-modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-width:1050px}
.workspace-home-group{grid-column:1/-1;min-width:0}
.workspace-home-group h2{font-size:12px;font-weight:500;color:var(--muted);margin:0 0 12px}
.workspace-home-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.workspace-home-module{min-height:156px;padding:23px;display:flex;flex-wrap:wrap;align-content:space-between;align-items:center;gap:20px 12px;border:1px solid var(--line);border-radius:15px;background:var(--surface);transition:background .2s,border-color .2s,transform .2s}
.workspace-module-icon{display:flex;align-items:center;justify-content:center;width:39px;height:39px;background:var(--soft);color:var(--accent);border-radius:11px;flex:0 0 39px;margin-right:calc(100% - 39px)}
.workspace-module-icon>.icon{width:21px;height:21px}
.workspace-home-module strong{font-size:14px;font-weight:500}
.workspace-home-module>.icon{width:18px;height:18px;margin-left:auto;color:var(--accent)}
a.workspace-home-module:hover{border-color:color-mix(in srgb,var(--accent) 40%,var(--line));background:color-mix(in srgb,var(--soft) 35%,var(--surface));transform:translateY(-2px)}
.workspace-home-module.is-planned{background:transparent;color:var(--muted);border-color:color-mix(in srgb,var(--line) 70%,transparent)}
.workspace-home-module.is-planned .workspace-module-icon{opacity:.48}
.workspace-home-module.is-planned strong{opacity:.7}
.workspace-development{font-size:11px;margin-left:7px;opacity:.65}
.workspace-module-picker :focus-visible,.workspace-nav-top :focus-visible,.workspace-home-module:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.workspace-nav-top :focus-visible{outline-color:var(--side-accent);outline-offset:-2px}
@keyframes workspace-picker-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media(min-width:701px){
 .compact-menu .sidebar .nav{width:calc(var(--side-width) - 24px);min-width:0}
 .compact-menu .workspace-module-trigger{justify-content:center;padding:10px 0}
 .compact-menu .workspace-module-trigger>span,.compact-menu .workspace-module-trigger>.icon:last-child{display:none}
 .compact-menu .crm-nav-module .crm-nav-item{justify-content:center;padding:9px 0}
 .compact-menu .crm-nav-module .crm-nav-item>span,.compact-menu .crm-nav-module .crm-chevron,.compact-menu .crm-nav-module .crm-manage-trigger,.compact-menu .crm-nav-module #crm-pipelines-inline{display:none}
 .compact-menu .workspace-tools-trigger>.icon:last-child{display:none}
}
@media(max-width:1050px){.workspace-home-modules{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-development{display:block;margin:5px 0 0}}
@media(max-width:700px){
 .workspace-picker-groups{gap:12px 4px}
 .workspace-planned-group h2 span{display:block}
 .workspace-ready-group h2,.workspace-planned-group h2{min-height:42px}
 .workspace-home-modules{gap:12px}
 .workspace-home-group>div{gap:12px}
 .workspace-home-module{padding:17px;min-height:144px}
}
@media(prefers-reduced-motion:reduce){.workspace-module-picker{animation:none}.workspace-module-trigger,.workspace-module-trigger>.icon:last-child,.workspace-tools-trigger>.icon:last-child,.workspace-home-module{transition:none}a.workspace-home-module:hover{transform:none}}

/* Other modules in the selected category, above the current module's divider. */
.workspace-related-link>span{min-width:0}

/* Project context above navigation; personal actions stay at the bottom. */
body[data-workspace=true] .sidebar>.workspace{width:100%;flex-shrink:0;margin:0 0 14px;padding:14px 8px;border-block:1px solid var(--side-line);border-radius:0;min-height:64px}
body[data-workspace=true] .sidebar>.workspace:hover,body[data-workspace=true] .sidebar>.workspace[aria-expanded=true]{background:var(--nav-active)}
body[data-workspace=true] .sidebar>.workspace>.icon:last-child{transition:transform .18s}
body[data-workspace=true] .sidebar>.workspace[aria-expanded=true]>.icon:last-child{transform:rotate(180deg)}
.account-popover-head small{overflow-wrap:anywhere}
.projects-popover{display:flex;flex-direction:column;width:340px}
.projects-popover .projects-list{min-height:0;max-height:300px;overflow:auto;overscroll-behavior:contain}
.projects-popover>.popover-divider,.projects-popover>.new-project-button{flex-shrink:0}
.project-row{display:flex;align-items:center;border-radius:9px;padding-right:5px}
.project-row[data-selected=true],.project-row:hover{background:var(--soft)}
.project-row .project-option{flex:1;min-width:0;background:transparent}
.project-option strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.new-project-button{justify-content:center;border:1px solid var(--line);margin-top:2px}
@media(min-width:701px){
 body[data-workspace=true].compact-menu .sidebar-footer .account-trigger>.account-avatar{display:grid}
 body[data-workspace=true].compact-menu .sidebar>.workspace{justify-content:center;padding-inline:0}
 body[data-workspace=true].compact-menu .sidebar-footer .account-trigger,body[data-workspace=true].compact-menu .sidebar-notifications{justify-content:center;padding-inline:0}
}

/* An intentional resting state for the unfinished home page. */
body[data-workspace=true] .shell:has(.workspace-home-status){padding-bottom:0}
body[data-workspace=true] .content:has(.workspace-home-status){max-width:none;padding:0}
.account-view:has(>.workspace-home-status){padding:0}
.workspace-home-status{min-height:calc(100svh - var(--workspace-header-height));display:grid;place-content:center;justify-items:center;padding:40px 24px 96px;text-align:center}
.workspace-home-status h2{margin:28px 0 10px;font-size:28px;line-height:1.2;letter-spacing:-.7px;font-weight:500;color:var(--ink)}
.workspace-home-status p{max-width:32ch;margin:0;color:var(--muted);font-size:14px;line-height:1.6;text-wrap:balance}
.workspace-home-art{position:relative;width:224px;height:164px}
.workspace-home-outline{position:absolute;inset:9px 4px 23px 28px;border:1px dashed var(--border-hover);border-radius:14px;transform:rotate(8deg)}
.workspace-home-draft{position:absolute;inset:18px 22px 18px 10px;border:1px solid var(--border-hover);border-radius:12px;background:var(--surface);box-shadow:0 6px 18px #00000008;overflow:hidden}
.workspace-home-draft-bar{display:flex;align-items:center;gap:5px;height:28px;padding:0 12px;border-bottom:1px solid var(--line)}
.workspace-home-draft-bar i{width:4px;height:4px;border-radius:50%;background:var(--border-hover)}
.workspace-home-draft-body{display:grid;grid-template-columns:36px 1fr;grid-template-rows:22px 34px;gap:8px;padding:14px}
.workspace-home-draft-body span{border-radius:5px;background:var(--soft);border:1px solid var(--line)}
.workspace-home-draft-body span:first-child{grid-row:1/3}
.workspace-home-draft-body span:last-child{border-style:dashed;background:transparent}
.workspace-home-build-icon{position:absolute;right:4px;bottom:2px;display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--border-hover);border-radius:14px;background:var(--surface);color:var(--muted);box-shadow:0 4px 10px #00000006;transform:rotate(-8deg)}
.workspace-home-build-icon .icon{width:23px;height:23px;stroke-width:1.5}
@media(max-width:700px){.workspace-home-status{padding:32px 20px 72px}.workspace-home-status h2{font-size:25px;letter-spacing:-.5px}}
@media(max-height:520px){.workspace-home-status{padding-block:28px}.workspace-home-art{height:140px}.workspace-home-status h2{margin-top:20px}}
