/* One navigation column; all surfaces use the existing employee palette. */
body.workspace-shell{--workspace-side:238px;--workspace-tools:64px}
body.workspace-shell .site-header{margin-left:0!important;padding-left:24px!important}
body.workspace-shell .app-rail{display:none!important}
body.workspace-shell main.container{margin-left:var(--workspace-side)!important;margin-right:var(--workspace-tools)!important;width:calc(100% - var(--workspace-side) - var(--workspace-tools))!important;max-width:none!important;padding:30px 32px 70px!important}
body.workspace-shell .hub-navigation{position:fixed!important;left:0!important;top:48px!important;bottom:0;width:var(--workspace-side)!important;padding:18px 14px!important;display:flex!important;background:var(--theme-surface)!important;border-right:1px solid var(--theme-line)!important;z-index:35;scrollbar-width:thin;overflow-y:auto}
.hub-nav-heading{display:flex;justify-content:space-between;align-items:center;padding:0 8px 14px;color:var(--theme-ink);font-size:13px}
body.workspace-shell #workspaceMenuClose{display:none}
body.workspace-shell .workspace-create{margin-bottom:14px;border-radius:9px;min-height:44px;display:flex;align-items:center;justify-content:center;background:var(--theme-accent)!important;color:var(--theme-on-accent)!important;border-color:var(--theme-accent)!important}
body.workspace-shell .hub-navigation nav{display:flex!important;flex-direction:column!important;align-items:stretch;flex-wrap:nowrap;gap:2px;margin:0 0 10px}
body.workspace-shell .hub-navigation nav a{display:flex;min-height:40px;padding:9px 11px;gap:5px;font-size:13px;line-height:1.5;color:var(--theme-ink)!important;border-radius:7px;overflow-wrap:anywhere}
body.workspace-shell .hub-navigation nav a:hover{background:var(--theme-soft)!important}
body.workspace-shell .hub-navigation a[aria-current=page],body.workspace-shell .workspace-tools a[aria-current=page]{background:var(--theme-soft)!important;color:var(--theme-accent)!important;font-weight:700}
.hub-nav-group{border:0!important;border-top:1px solid var(--theme-line)!important;border-radius:0!important;padding:10px 0!important;margin:0!important;background:transparent!important;box-shadow:none!important}
.hub-nav-group>summary{font-weight:650;font-size:12px;padding:9px 8px;min-height:36px;color:var(--theme-muted);cursor:pointer;list-style-position:inside}
.hub-nav-group>summary span{float:right;font-size:10px;font-weight:400}
.hub-nav-group>summary:focus-visible,.workspace-shell a:focus-visible,.workspace-shell button:focus-visible{outline:2px solid var(--theme-accent)!important;outline-offset:2px}
.hub-nav-group .hub-company-group{margin:0!important;border:0!important;background:transparent!important;padding:0!important}
.hub-company-group>summary{font-size:12px;padding:10px 8px;color:var(--theme-muted);cursor:pointer}
body.workspace-shell .hub-navigation .hub-subtle-link{display:block;padding:8px;font-size:11px;color:var(--theme-muted)!important;line-height:1.7}
body.workspace-shell #workspaceRecent a{display:block;font-size:12px;min-height:44px}
#workspaceRecent a strong{display:block;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#workspaceRecent a small{font-size:10px;color:var(--theme-muted);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.workspace-shell .workspace-footer{padding:14px 8px 4px!important;margin-top:auto;font-size:11px;color:var(--theme-muted)!important;border-color:var(--theme-line)}
.workspace-footer a{display:block;padding:9px 0;min-height:36px;color:var(--theme-ink)}
body.workspace-shell .workspace-tools{display:flex;position:fixed;right:0;top:48px;bottom:0;width:64px;background:var(--theme-surface);border-left:1px solid var(--theme-line);padding:18px 4px;flex-direction:column;gap:12px;z-index:25}
.workspace-tools a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:58px;font-size:10px;border-radius:8px;color:var(--theme-ink)!important}
.workspace-tools a span{font-size:22px;line-height:1}
body.workspace-shell .hub-mobile-tools,body.workspace-shell .workspace-menu-toggle{display:none!important}
.workspace-shade[hidden]{display:none!important}
.hub-page-heading,.hub-section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.hub-section-heading h2{font-size:23px!important;margin:0!important}.hub-section-heading .eyebrow{margin:0 0 6px}
.hub-back,.hub-section-heading>a{font-size:13px;white-space:nowrap;color:var(--theme-accent)}
body.workspace-shell .hub-hint{color:var(--theme-muted)!important;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.home-projects{margin-top:36px;scroll-margin-top:70px}.home-projects>h3{margin:26px 0 14px;font-size:15px!important}
.hub-home-search{display:flex;gap:10px;align-items:center;max-width:480px}.hub-home-search label{font-size:12px;white-space:nowrap;margin:0}.hub-home-search input{min-width:0}.hub-home-search button{flex-shrink:0;min-height:42px}
.hub-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.workspace-shell .hub-project-card{display:flex;flex-direction:column;gap:14px;min-width:0;min-height:174px;padding:20px;background:var(--theme-surface)!important;border:1px solid var(--theme-line);border-radius:14px;position:relative;overflow:hidden;color:var(--theme-ink)!important;box-shadow:0 6px 22px -20px #102348}
.hub-project-card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--project-color,var(--theme-accent))}
.hub-project-card:hover{border-color:var(--theme-accent)}.hub-project-card strong{font-size:16px;line-height:1.6;overflow-wrap:anywhere}.hub-project-card small{font-size:11px;color:var(--theme-muted)}.hub-project-card .hub-project-meta{margin-top:auto;font-size:11px;color:var(--theme-muted)}
.hub-favorite-mark{color:var(--theme-accent);font-size:12px}.hub-empty{padding:24px;border:1px dashed var(--theme-line);border-radius:12px;color:var(--theme-muted);font-size:13px;grid-column:1/-1;background:var(--theme-surface)}
.hub-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:18px;background:var(--theme-surface);border:1px solid var(--theme-line);border-radius:12px}
.hub-filters label{display:flex;flex-direction:column;gap:6px;margin:0;font-size:12px;min-width:0;flex:1 1 140px}.hub-filters .hub-query{flex:2 1 180px}.hub-filters :is(input,select,button){height:42px;min-height:42px;margin:0}.hub-filters button{flex:0 0 auto}.hub-filters .hub-check{flex:0 0 100%;display:flex;flex-direction:row;align-items:center;gap:7px;min-height:28px}.hub-check input{width:16px!important;height:16px!important;min-height:16px!important}
.hub-items{display:grid;gap:10px}.hub-items[data-projects=true]{grid-template-columns:repeat(3,minmax(0,1fr))}.hub-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;border:1px solid var(--theme-line);border-radius:12px;background:var(--theme-surface);min-width:0;color:var(--theme-ink)!important}.hub-row>div{min-width:0}.hub-row strong{display:block;font-size:14px;line-height:1.65;overflow-wrap:anywhere}.hub-row small{display:block;margin-top:6px;line-height:1.6;font-size:11px;color:var(--theme-muted)}.hub-row:hover{border-color:var(--theme-accent)}.hub-row .task-status{flex:none}
#hubMore,#homeProjectsMore{display:block;margin:20px auto;min-height:44px}#hubMore[hidden],#homeProjectsMore[hidden],#homeFavoritesMore[hidden],#hubDashboard[hidden]{display:none!important}
.hub-dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}.hub-stat{display:block;border:1px solid var(--theme-line);border-radius:12px;padding:18px;background:var(--theme-surface);color:var(--theme-ink)}.hub-stat strong{display:block;font-size:28px;margin-top:10px}.hub-stat span{font-size:12px;color:var(--theme-muted)}
.hub-gantt-heading{display:flex;justify-content:space-between;padding:10px 0;font-size:12px;color:var(--theme-muted)}.hub-gantt-row{display:grid;grid-template-columns:minmax(140px,28%) minmax(0,1fr);gap:18px;align-items:center;padding:14px;border-bottom:1px solid var(--theme-line);background:var(--theme-surface)}.hub-gantt-label{min-width:0;color:var(--theme-ink);font-size:12px;overflow-wrap:anywhere}.hub-gantt-label small{display:block;margin-top:6px;color:var(--theme-muted);font-size:10px}.hub-gantt-track{height:28px;background:var(--theme-soft);border-radius:5px;position:relative;overflow:hidden}.hub-gantt-bar{position:absolute;top:0;bottom:0;border-radius:5px;min-width:5px;background:var(--theme-accent);opacity:.9}.hub-gantt-bar[data-status=done]{opacity:.45}.hub-gantt-progress{height:100%;background:var(--theme-on-accent);opacity:.28}.hub-gantt-row .task-status{font-size:10px;margin-top:5px}
@media(min-width:1180px){body.workspace-shell.chat-dock-open main.container{width:calc(100% - var(--workspace-side) - 420px)!important;margin-right:420px!important}body.workspace-shell.chat-dock-open .workspace-tools{display:none!important}}
@media(max-width:1300px){.hub-project-grid,.hub-items[data-projects=true]{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){body.workspace-shell{--workspace-side:0px;--workspace-tools:0px}body.workspace-shell .site-header{padding-left:58px!important}body.workspace-shell main.container{margin:0!important;width:100%!important;padding:26px 24px 85px!important}body.workspace-shell .workspace-tools{display:none!important}body.workspace-shell .hub-navigation{display:none!important;width:270px!important;max-width:calc(100vw - 36px);top:0!important;z-index:120;padding:18px 14px!important}body.workspace-shell.workspace-menu-open .hub-navigation{display:flex!important}body.workspace-shell .workspace-menu-toggle{display:grid!important;place-items:center;position:fixed;top:3px;left:8px;width:42px;height:42px;min-height:42px;z-index:31;padding:0;background:transparent!important;border:0!important;font-size:22px;color:var(--theme-ink)!important}body.workspace-shell #workspaceMenuClose{display:block!important;min-height:40px;width:40px;padding:0;font-size:25px;background:transparent;color:var(--theme-ink);border:0}.workspace-shade{position:fixed;inset:0;background:#0b172c66;z-index:119}body.workspace-shell .hub-mobile-tools{display:flex!important;border-top:1px solid var(--theme-line);padding-top:10px}.workspace-menu-open{overflow:hidden}body.workspace-shell .hub-navigation .workspace-footer{display:block!important}}
@media(max-width:720px){body.workspace-shell main.container{padding:20px 16px 90px!important}body.workspace-shell .site-header{padding-left:12px!important;padding-right:10px!important}body.workspace-shell .site-header .brand-logo{width:160px!important}body.workspace-shell .site-header .brand-title{display:none!important}.hub-page-heading{align-items:flex-start;gap:8px}.hub-page-heading h1{font-size:24px}.hub-page-heading .hub-back{font-size:11px}.hub-project-grid,.hub-items[data-projects=true]{grid-template-columns:1fr}.hub-project-card{min-height:146px!important}.hub-home-search{gap:6px}.hub-home-search label{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.hub-section-heading{gap:8px}.hub-section-heading h2{font-size:21px!important}.hub-filters{padding:14px;gap:10px}.hub-filters label{flex-basis:calc(50% - 5px)}.hub-filters .hub-query{flex-basis:100%}.hub-row{padding:14px;gap:8px}.hub-row strong{font-size:13px}.hub-dashboard{gap:10px}.hub-stat{padding:14px}.hub-stat strong{font-size:24px}.hub-gantt-row{grid-template-columns:minmax(90px,38%) minmax(0,1fr);gap:10px;padding:12px 6px}body.workspace-shell .mobile-work-tabs>button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:20%;margin:0;padding:8px 4px;border:0;border-radius:0;min-height:54px;background:transparent!important;color:var(--theme-ink)!important;font-size:11px}.mobile-work-tabs>button span{font-size:19px}body.workspace-shell .hub-navigation nav a{min-height:44px}body.workspace-shell .hub-nav-heading{display:flex!important}}
body.workspace-shell.chat-popup-window :is(.hub-navigation,.workspace-tools,.workspace-menu-toggle),body.chat-panel-embedded :is(.hub-navigation,.workspace-tools,.workspace-menu-toggle,.workspace-shade){display:none!important}
body.workspace-shell.chat-popup-window main.container{width:100%!important;margin:0!important}
body.workspace-shell #assignedTasks .assigned-task-list{max-height:240px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;scrollbar-width:thin;padding-right:6px}body.workspace-shell #assignedTasks .assigned-task-list>article{margin:0!important;padding:14px!important}body.workspace-shell #assignedTasks .assigned-task-list h3{margin:0;font-size:14px}body.workspace-shell #assignedTasks .assigned-task-list p{font-size:11px;margin:8px 0 0}.assigned-task-list .assigned-empty{grid-column:1/-1}@media(max-width:720px){body.workspace-shell #assignedTasks{padding:18px!important}body.workspace-shell #assignedTasks .assigned-task-list{grid-template-columns:1fr;max-height:210px}}
.hub-action-row{display:flex;gap:12px;align-items:center;background:var(--theme-surface);border:1px solid var(--theme-line);border-radius:12px;padding-right:16px;min-width:0}.hub-action-row .hub-row{border:0;flex:1;min-width:0}.hub-action-row>button,.hub-download{flex:none;min-height:44px;display:flex;align-items:center;justify-content:center;font-size:12px;padding:8px;color:var(--theme-accent)}
body.workspace-shell #workHome>.home-hero{order:0}body.workspace-shell #workHome>#assignedTasks{order:1;margin:22px 0 0!important}body.workspace-shell #workHome>.home-projects{order:2}
body.workspace-shell .hub-navigation>*{flex-shrink:0}body.workspace-shell .hub-navigation button.hub-subtle-link{width:100%;text-align:left;background:transparent;border:0;min-height:40px}#workspaceRecentToggle[hidden]{display:none!important}

body.workspace-shell:has(.hub-navigation[data-partner=true]){--workspace-tools:0px}

/* Separate sibling controls: a favorite button never activates the workspace link. */
body.workspace-shell article.hub-project-card{padding:0;display:block}
body.workspace-shell .hub-project-open{display:flex;flex-direction:column;gap:14px;min-height:174px;padding:20px;color:var(--theme-ink)!important;text-decoration:none}
.hub-project-open>:first-child{padding-right:44px;min-height:24px}
body.workspace-shell .hub-favorite-toggle{position:absolute;right:8px;top:8px;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0!important;margin:0;border:0!important;border-radius:7px;background:transparent!important;color:var(--theme-muted)!important;line-height:1;z-index:1;box-shadow:none!important}
body.workspace-shell .hub-favorite-toggle svg{display:block;width:22px!important;height:22px!important;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linejoin:round;pointer-events:none}
body.workspace-shell .hub-favorite-toggle[aria-pressed=true]{background:transparent!important;color:var(--theme-accent)!important}
body.workspace-shell .hub-favorite-toggle[aria-pressed=true] svg{fill:currentColor}
body.workspace-shell .hub-favorite-toggle:focus-visible,.hub-project-open:focus-visible{outline:3px solid var(--theme-accent);outline-offset:-3px}
.hub-favorite-toggle:disabled{cursor:wait;opacity:.65}.hub-favorite-toggle[aria-busy=true]{opacity:1}
#homeFavoriteStatus:empty,#hubFavoriteStatus:empty{display:none}
@media(max-width:720px){body.workspace-shell .hub-project-open{min-height:146px}}

/* Mobile uses one drawer trigger, beside Home in the bottom navigation. */
@media(max-width:720px){
 body.workspace-shell .workspace-menu-toggle{display:none!important}
 body.workspace-shell .site-header .brand{min-height:44px}
 /* An open conversation hides the bottom tabs, so retain its top escape/menu. */
 body.workspace-shell.chat-mobile-room:not(.chat-popup-window) .workspace-menu-toggle{display:grid!important;z-index:42;top:calc(var(--chat-brand-top,0px) + 3px)}
 body.workspace-shell.chat-mobile-room .site-header{padding-left:52px!important}
 body.workspace-shell.chat-mobile-room .site-header .brand-logo{width:112px!important}
}
