/* Live business cabinet. The archived gallery and student cabinet stay independent. */
body[data-workspace=true] .sidebar{gap:0}
.workspace-nav-top{flex-shrink:0;padding-bottom:15px;margin-bottom:9px;border-bottom:1px solid var(--side-line)}
.workspace-nav-top>.nav-link{margin-bottom:13px}
.workspace-module-trigger{display:flex;align-items:center;gap:11px;width:100%;min-height:43px;padding:10px 12px;border:1px solid var(--side-line);border-radius:10px;color:var(--nav-selected);text-align:left;font-size:12px;font-weight:500;transition:background .18s,border-color .18s}
.workspace-module-trigger>.icon{width:18px;height:18px;flex-shrink:0}
.workspace-module-trigger>.icon:last-child{width:13px;height:13px;margin-left:auto;opacity:.6;transition:transform .18s}
.workspace-module-trigger:hover,.workspace-module-trigger[aria-expanded=true]{background:var(--nav-active);border-color:color-mix(in srgb,var(--nav-ink) 30%,transparent)}
.workspace-module-trigger[aria-expanded=true]>.icon:last-child{transform:rotate(180deg)}
body[data-workspace=true] .sidebar .nav{gap:4px;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:5px}
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-nav-item{font-size:12px;min-height:37px;padding:8px 12px;gap:11px;border-radius:9px}
.crm-nav-module .crm-nav-item>.icon{width:18px;height:18px}
.crm-nav-module .crm-pipelines-toggle{padding-right:3px}
.crm-nav-module .crm-pipeline-tree{margin:4px 0 8px 20px}
.crm-nav-module .crm-pipeline-tree .crm-nav-item{font-size:11px;min-height:34px;gap:7px;padding:8px}
.crm-nav-module .crm-pipeline-tree .icon{width:15px;height:15px}
.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-ready-group .workspace-module-choice{background:transparent;color:var(--ink);border:1px solid transparent}
.workspace-ready-group .workspace-module-choice[aria-current=page]{background:var(--soft);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}
.workspace-module-choice{display:flex;align-items:center;gap:11px;width:100%;min-height:39px;padding:10px;border-radius:9px;text-align:left;font-size:12px}
.workspace-module-choice>.icon{width:18px;height:18px;flex-shrink:0}
.workspace-module-choice>span{flex:1}
a.workspace-module-choice:hover{background:color-mix(in srgb,var(--accent) 13%,var(--surface))}
.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-module-choice:disabled{color:var(--muted);opacity:.55;cursor:default;background:transparent;box-shadow:none;transform:none}
.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-module-choice{min-height:43px}
 .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}
 .workspace-nav-top{padding-bottom:12px;margin-bottom:5px}
}
@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-modules{display:grid;gap:3px;margin-top:7px}
.workspace-related-link{width:100%;min-height:37px;text-align:left;gap:11px}
.workspace-related-link>.icon{width:18px;height:18px;flex-shrink:0}
.workspace-related-link>span{min-width:0}
.workspace-related-link small{display:block;font-size:10px;line-height:1.3;margin-top:1px;font-weight:400}
.workspace-related-link:disabled{color:var(--nav-ink);opacity:.48;cursor:default;background:transparent;box-shadow:none}

/* 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)}
body[data-workspace=true] .sidebar-footer .account-trigger,body[data-workspace=true] .sidebar-notifications{width:100%;margin:0;min-height:44px;padding:7px 10px;gap:11px;text-align:left;color:var(--nav-ink);font-size:12px}
body[data-workspace=true] .sidebar-footer .account-trigger:hover,body[data-workspace=true] .sidebar-footer .account-trigger[aria-expanded=true]{background:var(--nav-active);color:var(--nav-selected)}
.sidebar-footer .account-avatar{width:28px;height:28px;font-size:10px}
body[data-workspace=true] .sidebar-notifications>.icon{width:28px;height:21px}
.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}
.project-settings-button{flex-shrink:0;opacity:0;pointer-events:none;color:var(--muted)}
.project-row:hover .project-settings-button,.project-row:focus-within .project-settings-button{opacity:1;pointer-events:auto}
.project-settings-button:hover{color:var(--accent);background:var(--surface)}
.new-project-button{justify-content:center;border:1px solid var(--line);margin-top:2px}
@media(hover:none){.project-settings-button{opacity:1;pointer-events:auto}}
@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}
}
