/* One shared workbench frame for business modules and employee conversations. */
:root{--ws-frame:#f5f7f4;--ws-surface:#fff;--ws-soft:#f2f5f0;--ws-selected:#e8eee5;--ws-ink:#252d27;--ws-muted:#61705d;--ws-line:#e1e7dd;--ws-accent:#2b553b;--ws-sidebar:208px;--surface:var(--ws-surface);--surface-soft:var(--ws-soft);--surface-active:var(--ws-selected);--frame:var(--ws-frame);--thread:#fafbf8;--accent:var(--ws-accent);--accent-ink:#244a33;--subtle:#66745f;--self:#e1ecd9;--control:#dce2d7}
.workspace-unified{background:var(--ws-frame);color:var(--ws-ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px}
.workspace-unified .app-shell{display:block;min-height:100dvh;background:var(--ws-frame)}
.workspace-unified .sidebar{width:var(--ws-sidebar);background:var(--ws-frame);border-right:1px solid var(--ws-line);box-shadow:none;border-radius:0;top:0;left:0;bottom:0;height:100dvh;padding:22px 12px 12px;display:flex;flex-direction:column;color:var(--ws-ink);z-index:25}
.workspace-unified .sidebar .brand{padding:0 7px 21px;border:0;gap:9px;display:flex;flex-shrink:0}
.workspace-unified .sidebar .brand-mark{width:38px;height:38px;border:0;background:none;border-radius:0;box-shadow:none}
.workspace-unified .sidebar .brand-mark img{width:100%;height:100%;object-fit:contain}
.workspace-unified .sidebar .brand b{font-size:18px;line-height:1.25;letter-spacing:.02em;color:var(--ws-accent)}
.workspace-unified .sidebar .brand small{font-size:10px;letter-spacing:0;color:var(--ws-muted);margin-top:6px;white-space:nowrap}
.workspace-unified .sidebar .nav-section,.workspace-unified .unified-nav-section{padding:10px 12px 14px;font-size:11px;line-height:1.5;color:var(--ws-muted);font-weight:400;letter-spacing:0}
.workspace-unified .unified-nav-section{padding-top:23px}
.workspace-unified .sidebar .nav{flex:1;overflow:auto;min-height:0;padding:0;scrollbar-width:thin;scrollbar-color:var(--ws-line) transparent}
.workspace-unified .business-nav-groups{gap:3px}
.workspace-unified .business-nav-group{border:0;background:none!important;border-radius:8px;overflow:visible}
.workspace-unified .nav-group-row,.workspace-unified .nav-sort-item{position:relative}
.workspace-unified .nav-button,.workspace-unified .nav-group-trigger{width:100%;margin:0!important;min-height:42px;padding:11px 12px;gap:11px;border:0;border-radius:8px;text-align:left;display:flex;align-items:center;background:none;color:var(--ws-muted);font-size:14px;font-weight:400;line-height:1.4;box-shadow:none}
.workspace-unified .nav-button:before{display:none!important}
.workspace-unified .nav-button:hover,.workspace-unified .nav-group-trigger:hover{background:var(--ws-soft);color:var(--ws-ink)}
.workspace-unified .nav-button.active,.workspace-unified .nav-group-trigger.active{color:var(--ws-accent);background:var(--ws-selected);font-weight:600;box-shadow:none}
.workspace-unified .nav-button>.icon,.workspace-unified .nav-group-trigger>.icon{height:18px;width:18px;opacity:1;color:inherit}
.workspace-unified .nav-button>i{color:var(--ws-muted);font-size:15px;font-style:normal;margin-left:auto}
.workspace-unified .nav-sort-handle{opacity:0;position:absolute;right:0;width:12px;min-width:12px;padding:0;color:var(--ws-muted);background:transparent;border:0}
.workspace-unified .nav-group-row:hover>.nav-sort-handle,.workspace-unified .nav-sort-handle:focus-visible{opacity:.7}
.workspace-unified .nav-sort-handle:focus-visible{outline:2px solid var(--ws-accent)}
.workspace-unified .nav-count{margin-left:auto;background:#db514f;color:white;border:0;min-width:18px;height:18px;font-size:10px;border-radius:10px;line-height:18px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center}
.workspace-unified .sidebar-nav-tools{margin:0 0 7px;padding:0 5px;min-height:24px;gap:6px;display:flex}
.workspace-unified .sidebar-nav-tools button{min-height:27px;font-size:10px;padding:4px 5px;color:var(--ws-muted);border:0;background:none}
.workspace-unified .sidebar-nav-tools .icon{width:14px;height:14px}
.workspace-unified .sidebar-menu-search{padding:0 4px 12px;margin:0}
.workspace-unified .sidebar-menu-search label{border:1px solid var(--ws-line);background:var(--ws-surface);border-radius:8px;min-height:32px;padding:5px 8px}
.workspace-unified .sidebar-menu-search input{font-size:11px;color:var(--ws-ink);background:none;padding:1px 0}
.workspace-unified .sidebar-menu-search small{display:none}
.workspace-unified .sidebar-bottom{padding:16px 7px 0;margin-top:auto;border:0;flex-shrink:0}
.workspace-unified .sidebar-status{font-size:10px;color:var(--ws-muted);display:flex;align-items:center;gap:6px;padding-bottom:14px}
.workspace-unified .sidebar-status .dot{color:#9bb68f}
.workspace-unified .sidebar-bottom p{display:none}
.unified-profile{border-top:1px solid var(--ws-line);display:flex;align-items:center;gap:9px;width:100%;padding:14px 0 0;color:var(--ws-ink);background:none;text-align:left;cursor:pointer}
.unified-profile .role-avatar{width:34px;height:34px;border-radius:10px;background:var(--ws-selected);color:var(--ws-accent);font-size:14px;flex-shrink:0}
.unified-profile strong{display:block;font-size:12px;font-weight:600}
.unified-profile small{display:block;margin-top:5px;font-size:10px;color:var(--ws-muted)}
.workspace-unified .main-wrap{margin-left:var(--ws-sidebar);width:calc(100% - var(--ws-sidebar));min-width:0;background:var(--ws-frame)}
.workspace-unified .topbar{height:66px;min-height:66px;position:sticky;top:0;background:var(--ws-frame);border:0;box-shadow:none;padding:0 24px;color:var(--ws-ink);display:flex;align-items:center;gap:12px;z-index:22}
.workspace-unified .system-title{display:flex;gap:12px;align-items:center;font-size:13px;font-weight:400;white-space:nowrap;color:var(--ws-ink);min-width:0}
.workspace-unified .system-title strong{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis}
.workspace-unified .system-title .unified-breadcrumb{display:flex;font-size:12px;font-weight:400;color:var(--ws-muted);letter-spacing:0;gap:12px;align-items:center;margin:0;white-space:nowrap}
.unified-breadcrumb i{font-style:normal;font-size:15px;color:var(--ws-muted)}
.workspace-unified .topbar-actions{gap:9px;min-width:0;margin-left:auto;display:flex;align-items:center}
.workspace-unified .topbar-actions>.current-role{display:none}
.workspace-unified .topbar-actions>.button{min-height:31px;font-size:11px;padding:6px 9px;background:none;color:var(--ws-muted);border:1px solid var(--ws-line);border-radius:7px}
.workspace-unified .topbar-actions>.unified-im-shortcut{border:0;display:inline-flex;align-items:center;gap:6px}
.unified-im-shortcut [data-im-unread]{background:#db514f;color:white;border-radius:9px;min-width:17px;padding:2px 4px;line-height:13px;font-size:10px}
.workspace-unified .topbar-date{font-size:11px;color:var(--ws-muted)}
.workspace-unified .topbar .icon-button,.workspace-unified .topbar .logout{width:32px;height:32px;min-height:32px;display:inline-flex;align-items:center;justify-content:center;color:var(--ws-muted);background:none;border-radius:8px;border:0;flex-shrink:0}
.workspace-unified .topbar .icon-button:hover,.workspace-unified .topbar .logout:hover{background:var(--ws-selected)}
.workspace-unified .topbar .unified-theme-button .icon{width:18px;height:18px}
.workspace-unified .content{padding:20px 24px 28px;max-width:none;min-width:0}
.workspace-unified .page-heading{margin:0 0 22px;align-items:center;gap:15px}
.workspace-unified .page-heading h1{font-size:24px;font-weight:650;line-height:1.4;letter-spacing:0;color:var(--ws-ink)}
.workspace-unified .page-heading .eyebrow{display:none}
.workspace-unified .page-heading p{font-size:12px;color:var(--ws-muted);line-height:1.8;margin-top:7px}
.workspace-unified .card{box-shadow:none;border-color:var(--ws-line);border-radius:12px;background:var(--ws-surface)}
.workspace-unified .button{border-radius:8px;box-shadow:none}
.workspace-unified .heading-actions{padding:0}
.workspace-unified .heading-actions .button{font-size:12px;min-height:36px}
.workspace-unified .workflow-global-host,.workspace-unified #customer-order-notice-host{margin:0 24px}
.workspace-unified .workflow-global-host:empty,.workspace-unified #customer-order-notice-host:empty{display:none}
.workspace-unified .demo-banner{background:var(--ws-soft);border-color:var(--ws-line);color:var(--ws-muted);font-size:11px;border-radius:8px}
.workspace-unified .nav-flyout{background:var(--ws-surface);color:var(--ws-ink);border-color:var(--ws-line);box-shadow:0 10px 30px #1c301820}
.workspace-unified .nav-flyout .nav-button{color:var(--ws-ink)}
.workspace-unified .sidebar .nav-group-search-hint{font-size:10px;color:var(--ws-muted)}
.workspace-unified .footer-note{font-size:10px;color:var(--ws-muted)}
.workspace-unified .stat-card:before{display:none}
.workspace-unified #personal-task-calendar{margin-bottom:22px}
.workspace-unified #personal-task-calendar .tc-calendar{max-width:none}
body.is-im-page .page-heading,body.is-im-page .content>.demo-banner,body.is-im-page .footer-note,body.is-im-page .workflow-global-host,body.is-im-page #customer-order-notice-host{display:none!important}
body.is-im-page .content{padding:0 20px 20px;height:calc(100dvh - 66px);display:flex;flex-direction:column;min-height:0}
body.is-im-page .content>.workspace-return-bar{flex:none;margin:0 0 6px}
body.is-im-page #staff-im-root{height:100%;min-height:0;max-height:none}
body.im-chat-open .content>.workspace-return-bar{display:none}
body.workspace-unified .business-nav-group .nav-group-trigger>.nav-count{flex:0 0 auto}
@media(min-width:761px){
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar,
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"] .sidebar{inset:0 auto 0 0;width:var(--ws-sidebar);height:100dvh;max-height:100dvh;border-radius:0;background:var(--ws-frame);border:0;border-right:1px solid var(--ws-line);box-shadow:none}
  body.workspace-unified.is-im-page:not(.mw-enabled):not(.touch-fullscreen) .content{padding:0 20px 20px}
}
body.is-im-page #page-content{flex:1;min-width:0;min-height:0}
body.is-im-page .topbar #global-search-host{display:none}
[data-workspace-theme=dark]{color-scheme:dark;--ws-frame:#151915;--ws-surface:#1e241d;--ws-soft:#252d23;--ws-selected:#303c2d;--ws-ink:#e7ede3;--ws-muted:#b0bfaa;--ws-line:#354130;--ws-accent:#adcca1;--surface:var(--ws-surface);--surface-soft:var(--ws-soft);--surface-active:var(--ws-selected);--frame:var(--ws-frame);--thread:#1a2119;--accent:var(--ws-accent);--accent-ink:#c1dab7;--subtle:#a6b69f;--self:#354c2e;--control:#485b41;--ink:#e7ede3;--text:#d3dfcc;--muted:#b0bfaa;--canvas:#151915;--line:#354130;--green:#adcca1;--green-dark:#d0e5c6;--green-light:#2a3d25}
[data-workspace-theme=dark] .staff-im{color-scheme:dark;--im-frame:#151815;--im-surface:#1e221e;--im-soft:#252a25;--im-active:#303a2f;--im-thread:#191d19;--im-ink:#e7ebe5;--im-muted:#aab4a6;--im-subtle:#a0ad97;--im-line:#30372e;--im-control:#414b3e;--im-accent:#accaa0;--im-accent-ink:#bfd6b4;--im-accent-soft:#31412e;--im-self:#32462e;--im-red:#ee7772;--im-shadow:0 12px 40px #0005;--accent-soft:#31412e}
[data-workspace-theme=dark] .tc-task-status.is-overdue,[data-workspace-theme=dark] .tc-summary button.has-overdue b,[data-workspace-theme=dark] .tc-error{color:#e9a38e}
[data-workspace-theme=dark] .workspace-unified :is(.card,.modal,.modal-header,.modal-footer,.modal-content,.task-row,.line-item,.stock-row,.table-wrap,.table-scroll,.toolbar,.tabs-bar,.notice,.empty-state,.detail-field,.nav-flyout-panel,.mw-menu-sheet,.pw-board-column,.pw-task,.crm-panel,.commercial-record){background:var(--ws-surface);color:var(--ws-ink);border-color:var(--ws-line)}
[data-workspace-theme=dark] .workspace-unified :is(input,select,textarea){color:var(--ws-ink);background:var(--ws-soft);border-color:var(--ws-line)}
[data-workspace-theme=dark] .workspace-unified :is(th,td){background:var(--ws-surface);color:var(--ws-ink);border-color:var(--ws-line)}
[data-workspace-theme=dark] .workspace-unified :is(.button.secondary,.button.ghost,.tab,.pill,.notice,.stat-card){background:var(--ws-soft);color:var(--ws-ink);border-color:var(--ws-line)}
[data-workspace-theme=dark] .workspace-unified .button:not(.secondary):not(.ghost):not(.danger){background:#375d2f;color:#edf6e8;border-color:#456e3c}
[data-workspace-theme=dark] .workspace-unified .topbar-actions>.button{background:none;color:var(--ws-muted)}
@media(min-width:1700px){:root{--ws-sidebar:224px}.workspace-unified .sidebar{padding-left:18px;padding-right:18px}}
@media(max-width:1200px) and (min-width:761px){:root{--ws-sidebar:190px}.workspace-unified .sidebar .brand{padding-left:2px;gap:6px}.workspace-unified .sidebar .brand b{font-size:16px}.workspace-unified .sidebar .brand small{font-size:9px}.workspace-unified .topbar-date{display:none}.workspace-unified .topbar-actions>a{display:none}.workspace-unified .nav-button,.workspace-unified .nav-group-trigger{font-size:13px}}
@media(min-width:761px){body.workspace-unified[data-desktop-nav=icons]{--ws-sidebar:70px}body.workspace-unified[data-desktop-nav=icons] .sidebar .brand{padding-left:1px}body.workspace-unified[data-desktop-nav=icons] .sidebar .brand>div,body.workspace-unified[data-desktop-nav=icons] .sidebar .nav-section,body.workspace-unified[data-desktop-nav=icons] .unified-nav-section,body.workspace-unified[data-desktop-nav=icons] .sidebar .scope-note,body.workspace-unified[data-desktop-nav=icons] .unified-profile>span:last-child{display:none}body.workspace-unified[data-desktop-nav=icons] .sidebar .nav-button,body.workspace-unified[data-desktop-nav=icons] .sidebar .nav-group-trigger{justify-content:center;padding:12px 8px}body.workspace-unified[data-desktop-nav=icons] .sidebar .nav-button>span:not(.icon):not(.nav-count),body.workspace-unified[data-desktop-nav=icons] .sidebar .nav-button>i{display:none}body.workspace-unified[data-desktop-nav=icons] .sidebar .nav-count{position:absolute;top:0;right:0}body.workspace-unified[data-desktop-nav=icons] .sidebar .sidebar-status{font-size:0}body.workspace-unified[data-desktop-nav=icons] .unified-profile{justify-content:center}body.workspace-unified[data-desktop-nav=icons] .main-wrap{margin-left:70px;width:calc(100% - 70px)}}
@media(max-width:760px){.workspace-unified .sidebar{width:248px;left:-260px;border-right:1px solid var(--ws-line);z-index:70;padding-top:22px}.workspace-unified .sidebar.open{left:0}.workspace-unified .mobile-backdrop.show{display:block;z-index:65}.workspace-unified .main-wrap{margin-left:0;width:100%;padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))}.workspace-unified .topbar{height:59px;min-height:59px;padding:0 14px;gap:9px}.workspace-unified .topbar .menu-toggle{width:34px;min-width:34px}.workspace-unified .topbar .system-title{font-size:13px;max-width:60vw;overflow:hidden}.workspace-unified .system-title .unified-breadcrumb{display:none}.workspace-unified .system-title strong{font-size:14px}.workspace-unified .topbar-actions{gap:4px}.workspace-unified .topbar-actions>.button,.workspace-unified .topbar-date,.workspace-unified .topbar .logout{display:none}.workspace-unified .topbar .unified-theme-button{width:44px;height:44px;min-height:44px}.workspace-unified .content{padding:19px 16px}.workspace-unified .page-heading h1{font-size:22px}.workspace-unified .page-heading p{font-size:12px}.workspace-unified .workflow-global-host,.workspace-unified #customer-order-notice-host{margin-left:16px;margin-right:16px}.workspace-unified .mw-bottom-nav{background:var(--ws-surface);border-color:var(--ws-line);box-shadow:none}.workspace-unified .mw-bottom-item{color:var(--ws-muted)}.workspace-unified .mw-bottom-item.is-current{color:var(--ws-accent);background:transparent}.workspace-unified .mw-bottom-item .mw-icon{background:none;color:inherit}.workspace-unified .mw-bottom-item .nav-count{background:#db514f;color:white}.workspace-unified .mw-page-hero,.workspace-unified .mw-header-band{background:var(--ws-frame)}body.is-im-page .main-wrap{padding-bottom:0}body.is-im-page .topbar{display:none}body.is-im-page .content{padding:0;height:calc(100dvh - 69px - env(safe-area-inset-bottom,0px))}body.im-chat-open .mw-bottom-host{display:none}body.im-chat-open .content{height:100dvh}body.is-im-page .mw-home-host,body.is-im-page .mw-page-summary{display:none!important}.workspace-unified .nav-button,.workspace-unified .nav-group-trigger{min-height:44px}.workspace-unified #personal-task-calendar{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.workspace-unified *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Preserve the reference's quiet, compact frame while keeping menu tools available. */
@media (min-width:761px){
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen){--ws-sidebar:192px}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav=icons]{--ws-sidebar:70px}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar{padding:24px 12px 12px}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .brand{padding:0 9px 24px;gap:9px}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .brand-mark{width:34px;height:34px}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-section{margin:0!important;padding:10px 12px 12px;font-size:11px;line-height:1.5}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar-nav-tools{position:absolute;top:91px;right:10px;display:flex;gap:1px;margin:0;padding:0;min-height:0}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar-nav-tools button{display:inline-flex;align-items:center;justify-content:center;width:27px;min-width:27px;height:27px;min-height:27px;flex:none;padding:5px;border:0;background:transparent;color:var(--ws-muted)}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar-nav-tools button:hover{background:var(--ws-selected);color:var(--ws-ink)}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .nav-mode-label{display:none}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar-menu-search{margin:0 0 8px;padding:0 4px;min-height:0}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar-menu-search.is-collapsed{display:none}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar-menu-search input{color:var(--ws-ink)!important}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar-menu-search input::placeholder{color:var(--ws-muted)}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav{flex:1;min-height:0;overflow:auto}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav>.nav-sort-item{margin:0!important}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button{min-height:41px;padding:0 12px;font-size:13px;font-weight:400;color:var(--ws-muted);background:transparent;border:0}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button:hover{background:var(--ws-soft);color:var(--ws-ink)}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button.active{background:var(--ws-selected);color:var(--ws-accent);font-weight:650;border:0}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button.active .icon{color:var(--ws-accent)}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-sort-handle{opacity:0}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-group-row:hover>.nav-sort-handle,body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-sort-handle:focus-visible{opacity:.7}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-group-trigger>i{margin-left:auto;color:var(--ws-muted)}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .unified-nav-section{padding:24px 12px 12px}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .topbar{height:66px;min-height:66px;background:var(--ws-frame);padding:0 24px}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen).is-im-page .content{height:calc(100dvh - 66px)}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav=icons] .sidebar-nav-tools{position:static;flex-direction:column;margin:0 0 8px}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav=icons] .sidebar .nav-button{min-height:44px}
}
body.workspace-unified .nav-count[hidden],body.workspace-unified [data-im-unread][hidden]{display:none!important}

/* Collaboration is the primary workspace; the profile remains the personal entry. */
body.workspace-unified .sidebar-bottom { padding: 12px 7px 8px; }
body.workspace-unified .unified-profile { position:relative; width:46px; height:46px; min-height:46px; margin:8px 0 0; padding:2px; border:0; border-radius:50%; display:grid; place-items:center; background:transparent; box-shadow:none; }
body.workspace-unified .unified-profile:focus-visible { outline:2px solid var(--ws-accent); outline-offset:2px; }
body.workspace-unified .unified-profile .role-avatar { width:40px; height:40px; border-radius:50%; overflow:hidden; }
body.workspace-unified .unified-profile .role-avatar img { width:100%; height:100%; border-radius:50%; object-fit:cover; }
body.workspace-unified .profile-pending { position:absolute; right:-2px; top:-2px; display:grid; place-items:center; min-width:19px; height:19px; padding:0 4px; border:2px solid var(--ws-surface); border-radius:999px; background:#db514f; color:white; font-size:10px; line-height:1; }
body.workspace-unified .profile-pending[hidden] { display:none; }
body.workspace-unified .nav-collaboration .nav-group-row { padding-right:0; }
body.workspace-unified .personal-dashboard-layout { display:grid; grid-template-columns:minmax(285px, 30%) minmax(0,1fr); gap:18px; align-items:start; }
body.workspace-unified .personal-dashboard-layout #personal-task-calendar { min-width:0; margin:0; }
body.workspace-unified .personal-dashboard-content { min-width:0; }
@media (max-width:900px) { body.workspace-unified .personal-dashboard-layout { grid-template-columns:minmax(0,1fr); } }
@media(min-width:761px) {
  body.workspace-unified[data-desktop-nav=icons] .unified-profile > .profile-pending:not([hidden]) { display:grid; }
}

/* Unified work area: cool mist background, a quiet paper navigation panel,
   and the rice-green accent retained for the current workspace. */
body.workspace-unified{
  --ws-frame:#edf2f4;--ws-surface:#fff;--ws-soft:#f3f6f7;
  --ws-selected:#e4f0ec;--ws-ink:#202e35;--ws-muted:#51636a;
  --ws-line:#dce5e7;--ws-accent:#245d49;
  --surface:var(--ws-surface);--surface-soft:var(--ws-soft);--surface-active:var(--ws-selected);
  --frame:var(--ws-frame);--thread:#f8fafb;--accent:var(--ws-accent);--accent-ink:#234b3f;--subtle:#60727a;--self:#dfeee8;--control:#d8e3e3;
  color:var(--ws-ink);font-size:14px;
}
@media(min-width:761px){
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen){--ws-sidebar:226px}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav=icons]{--ws-sidebar:82px}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar,
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav=icons] .sidebar{
    inset:12px auto 12px 12px;width:calc(var(--ws-sidebar) - 24px);height:calc(100dvh - 24px);
    max-height:calc(100dvh - 24px);padding:20px 10px 12px;background:var(--ws-surface);
    border:1px solid var(--ws-line);border-radius:17px;box-shadow:none;
  }
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .brand{padding:2px 7px 20px;gap:9px}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .brand b{font-size:17px;letter-spacing:0;color:#245d49}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .brand small{font-size:10px;color:var(--ws-muted)}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-section,
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .unified-nav-section{padding:12px 10px 9px;font-size:11px;color:var(--ws-muted)}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar-nav-tools{top:77px;right:8px}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button{
    min-height:40px;padding:0 10px;border-radius:9px;color:#43575e;font-size:13px;font-weight:500;
    background:transparent;border-color:transparent;box-shadow:none;
  }
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button:hover{background:var(--ws-soft);color:var(--ws-ink)}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button.active{
    background:var(--ws-selected);color:#20513f;font-weight:650;border-color:transparent;
  }
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button.active .icon{color:#28654e}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button:focus-visible,
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar-nav-tools button:focus-visible{outline:2px solid #26765a;outline-offset:1px}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar-bottom{border-top:1px solid var(--ws-line);padding:10px 7px 0}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .sidebar-status{padding-bottom:5px;font-size:11px;color:var(--ws-muted)}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .main-wrap{margin-left:var(--ws-sidebar);width:calc(100% - var(--ws-sidebar));background:var(--ws-frame)}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen) .topbar{background:var(--ws-frame);height:70px;min-height:70px;padding:0 25px;color:var(--ws-ink)}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen).is-im-page .content{height:calc(100dvh - 70px);padding:0 20px 20px}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav=icons] .sidebar{padding:18px 7px 12px}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav=icons] .main-wrap{margin-left:82px;width:calc(100% - 82px)}
  body.workspace-unified:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav=icons] .sidebar-nav-tools{position:static}
}
body.workspace-unified .staff-im{
  --im-frame:#edf2f4;--im-surface:#fff;--im-soft:#f4f7f8;--im-active:#e4efeb;
  --im-thread:#f8fafb;--im-ink:#23333a;--im-muted:#51636a;--im-subtle:#5b6f77;
  --im-line:#dfe8e9;--im-control:#cddcde;--im-accent:#2b7056;--im-accent-ink:#245543;
  --im-accent-soft:#e2f0eb;--im-self:#dfeee8;--im-red:#cc3d3d;
}
body.workspace-unified .staff-im .im-search-field{background:#fff;border-color:#e5ecee}
body.workspace-unified .staff-im .im-thread-header{background:#fff}
body.workspace-unified .staff-im .im-conversation.active{background:var(--im-active)}
body.workspace-unified .topbar-actions>.button{color:var(--ws-muted);background:var(--ws-surface);border-color:var(--ws-line)}
body.workspace-unified .topbar-actions>.unified-im-shortcut{background:var(--ws-surface);border:1px solid var(--ws-line)}
body.workspace-unified .page-heading h1{color:var(--ws-ink)}
body.workspace-unified .card{background:var(--ws-surface);border-color:var(--ws-line);border-radius:14px}

/* Keep the personal entry accessible in the compact navigation. */
@media (min-width:761px) {
  body.workspace-unified:not(.mw-enabled)[data-desktop-nav=icons] .sidebar .sidebar-bottom { display:flex; flex-direction:column; align-items:center; padding:8px 0 0; width:100%; }
  body.workspace-unified:not(.mw-enabled)[data-desktop-nav=icons] .sidebar .sidebar-status { display:none; }
  body.workspace-unified:not(.mw-enabled)[data-desktop-nav=icons] .sidebar .unified-profile { margin:0; }
}
body.workspace-unified .nav-direct-group[data-nav-group="customer-orders"] > .nav-group-row { background:transparent; border:0; }

/* Keep the assistant launcher clear of the message composer. */
@media(min-width:761px){body.workspace-unified.is-im-page .ea-launcher{bottom:150px}}
@media(max-width:760px){
  body.workspace-unified.is-im-page .ea-launcher{top:16px;right:78px;bottom:auto;width:44px;height:44px;justify-content:center}
  body.workspace-unified.is-im-page .ea-launcher-orbit{width:44px;height:44px}
  body.workspace-unified.is-im-page .ea-launcher-label{display:none}
  body.workspace-unified.is-im-page .ea-ready-dot{width:10px;height:10px;border-width:2px}
  body.workspace-unified.im-chat-open .ea-launcher{top:72px;right:8px}
  body.workspace-unified.im-chat-open .staff-im .im-messages{padding-right:60px}
}
