body.workbench-shell {
  --gold:#f0a322; --gold2:#ffc95d; --goldDeep:#a86309; --goldSoft:#fff2d9; --goldLine:#eed2a4;
  --bg:#f4f6f9; --soft:#f8f9fb; --line:#e3e6ec; --card:#fff; --r-lg:8px;
}
.dark body.workbench-shell {--bg:#121922;--card:#1a2431;--soft:#161f2b;--line:#2d3848;--goldDeep:#ffbe55;--goldSoft:#3b2e1b;--goldLine:#6d522c;}
.workbench-shell > .nav {
  height:78px;min-height:78px;padding:0 24px;position:fixed;inset:0 0 auto;z-index:60;
  background:var(--card);border-bottom:2px solid var(--goldLine);box-shadow:0 3px 18px #2732460a;
  display:flex;gap:12px;flex-wrap:nowrap;align-items:center;
}
.workbench-shell .shell-brand {display:flex;align-items:center;gap:10px;flex:1;min-width:0;text-decoration:none;}
.shell-brand > img {width:44px;height:44px;object-fit:contain;flex-shrink:0;}
.shell-brand > span {font-size:18px;font-weight:650;letter-spacing:.3px;color:var(--goldDeep);line-height:1.6;white-space:nowrap;}
.shell-brand small {display:block;font-size:10px;font-weight:400;letter-spacing:1px;color:var(--muted);}
.workbench-shell #nav {display:flex;position:static;align-items:center;gap:6px;flex-wrap:nowrap;background:none;border:0;padding:0;width:auto;max-width:none;box-shadow:none;transform:none;opacity:1;visibility:visible;max-height:none;min-width:0;overflow:visible;}
.workbench-shell #nav .navlink {display:inline-flex;white-space:nowrap;font-size:13px;padding:9px 12px;min-width:0;}
.workbench-shell #nav .who {font-size:12px;white-space:nowrap;}
.workbench-shell #nav .who .role {display:none;}
.workbench-shell #nav .logoutBtn,.workbench-shell #nav .themeBtn {white-space:nowrap;font-size:12px;}
.workbench-shell #shellFullscreen {flex:none;}
.workbench-shell #navToggle,.workbench-shell #shellSidebarToggle {display:none!important;}
.workbench-shell .pagehead,.workbench-shell #siteFoot {display:none!important;}
.workbench-shell .container {width:auto!important;max-width:none!important;margin:78px 0 0 208px!important;padding:24px 28px 80px!important;}
.workbench-shell #app > .workspace-tabs {
  position:fixed!important;top:78px;left:0;bottom:0;width:208px;padding:18px 14px 20px;
  display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:16px;
  flex-wrap:nowrap;border:0;border-right:1px solid var(--line);border-radius:0;margin:0;background:var(--bg);overflow-y:auto;z-index:55;box-shadow:none;
}
.workbench-shell #app > .workspace-tabs:before {content:none;}
.workbench-shell #app > .workspace-tabs:after {content:'祥盛印捷 / 业务协作平台';font-size:10px;color:var(--muted);padding:14px 10px 0;margin-top:auto;}
.shell-nav-group {display:flex;flex-direction:column;gap:3px;flex:none;}
.shell-nav-group[hidden] {display:none;}
.shell-nav-group h2 {font-size:11px;font-weight:500;color:var(--muted);letter-spacing:1px;margin:0 10px 5px;line-height:1.6;}
.workbench-shell #app > .workspace-tabs button {
  flex:none;text-align:left;border-radius:6px;padding:8px 14px;font-size:13px;white-space:normal;
  color:var(--ink2);background:transparent;border:1px solid transparent;line-height:1.5;min-height:37px;
}
.workbench-shell #app > .workspace-tabs button:hover {background:var(--card);color:var(--goldDeep);}
.workbench-shell #app > .workspace-tabs button[aria-current=page] {background:var(--goldSoft);border-color:var(--goldLine);color:var(--goldDeep);}
.workbench-shell #app > .workspace-tabs button.hidden {display:none!important;}
.workspace-module-nav {display:flex;align-items:center;gap:20px;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:22px;padding:0 0 14px;flex-wrap:wrap;}
.workspace-module-nav > strong {font-size:14px;color:var(--muted);}
.workspace-module-nav nav {display:flex;gap:6px;flex-wrap:wrap;}
.workspace-module-nav a {padding:8px 16px;border-radius:6px;text-decoration:none;font-size:13px;white-space:nowrap;color:var(--muted);border:1px solid transparent;}
.workspace-module-nav a[aria-current=page] {color:var(--goldDeep);background:var(--goldSoft);border-color:var(--goldLine);font-weight:650;}
.workbench-shell .workspace-heading {margin-bottom:18px;gap:16px;}
.workbench-shell .workspace-heading h2 {font-size:23px;line-height:1.5;}
.workbench-shell #app table th,.workbench-shell #app table td {border-color:var(--line);}
.workbench-shell #panel-orders .order-table-scroll {max-width:100%;}
.workbench-shell .container:has(#app.hidden) {margin-left:0!important;}
.workbench-shell .mission-card .table-wrap {border-radius:0;}
.workbench-shell .mission-card table td {padding:14px 18px;}
.workbench-shell .mission-card table th {padding:10px 18px;font-size:11px;background:var(--card);}
.shell-nav-backdrop {position:fixed;inset:70px 0 0;z-index:52;border:0;background:#0f172a55;cursor:pointer;padding:0;}
.shell-nav-backdrop[hidden] {display:none;}
@media(max-width:1450px) {
  .workbench-shell > .nav {padding:0 18px;gap:8px;}
  .workbench-shell #nav .who {display:none;}
  .shell-brand small {font-size:9px;letter-spacing:.5px;}
  .workbench-shell #nav .navlink {padding:8px 10px;}
}
.tablet-shell.workbench-shell > .nav {height:70px;min-height:70px;padding:0 14px;gap:8px;}
.tablet-shell .shell-brand > img {width:36px;height:36px;}
.tablet-shell .shell-brand > span {font-size:16px;}
.tablet-shell .shell-brand small {display:none;}
.tablet-shell.workbench-shell #shellFullscreen {display:none;}
.tablet-shell.workbench-shell .container {margin-left:0!important;margin-top:70px!important;padding:20px 18px 80px!important;}
.tablet-shell.workbench-shell #app > .workspace-tabs {top:70px;transform:translateX(-100%);box-shadow:12px 0 28px #18203315;max-width:calc(100% - 36px);}
.tablet-shell.workbench-shell.sidebar-open #app > .workspace-tabs {transform:translateX(0);}
.tablet-shell.workbench-shell #navToggle,.tablet-shell.workbench-shell #shellSidebarToggle {display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;height:auto!important;min-height:34px;padding:6px 10px!important;border-radius:6px;font-size:12px;white-space:nowrap;flex:none;border:1px solid var(--line);background:var(--card);color:var(--ink);}
.tablet-shell.workbench-shell #navToggle.open {background:var(--goldSoft);color:var(--goldDeep);}
.tablet-shell.workbench-shell #nav {display:none!important;position:fixed!important;top:70px;left:12px;right:12px;width:auto!important;max-height:calc(100dvh - 90px);overflow-y:auto;flex-direction:column;align-items:stretch;background:var(--card);border:1px solid var(--line);border-radius:8px;padding:10px;box-shadow:0 12px 28px #18203325;}
.tablet-shell.workbench-shell #nav.open {display:flex!important;}
.tablet-shell.workbench-shell #nav .navlink {font-size:14px;padding:12px 16px;justify-content:flex-start;}
.tablet-shell.workbench-shell #nav .who {display:flex;padding:10px;justify-content:flex-start;}
.tablet-shell.workbench-shell #nav .logoutBtn,.tablet-shell.workbench-shell #nav .themeBtn {min-height:38px;}
.compact-shell.workbench-shell > .nav {padding:0 6px;gap:4px;}
.compact-shell .shell-brand {gap:0;}
.compact-shell .shell-brand > span {display:none;}
.compact-shell .shell-brand > img {width:26px;height:26px;}
.compact-shell.workbench-shell #navToggle,.compact-shell.workbench-shell #shellSidebarToggle {padding:5px 8px!important;font-size:11px;}
@media(max-width:500px) {
  .tablet-shell.workbench-shell > .nav {padding:0 10px;gap:6px;}
  .shell-brand > span {font-size:14px!important;letter-spacing:0;}
  .tablet-shell .shell-brand > img {width:30px;height:30px;}
  .tablet-shell.workbench-shell .container {padding:18px 12px 80px!important;}
  .workspace-module-nav {gap:8px;margin-bottom:16px;}
  .workspace-module-nav nav {gap:2px;}
  .workspace-module-nav a {padding:8px 10px;font-size:12px;white-space:normal;}
}
.workbench-shell #app .field {min-width:0!important;}
.workbench-shell .workspace-heading .row {flex-wrap:wrap;}
.workbench-shell .workspace-heading,.workbench-shell .workspace-heading > div {min-width:0;}

.workbench-shell:not(.tablet-shell):not([data-workspace-panel=mission]) .workbench-robot {left:30px;right:auto;z-index:56;}
.workbench-shell:not(.tablet-shell):not([data-workspace-panel=mission]) .robot-shortcuts {left:220px;right:auto;z-index:57;}
.workbench-shell:not(.tablet-shell):not([data-workspace-panel=mission]) #app > .workspace-tabs:after {padding-bottom:110px;}

body.workbench-shell select {background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:12px 8px!important;}

/* Keep the default assistant dock clear of the scrollable work menu. */
.workbench-shell.robot-default-position:not(.tablet-shell):not([data-workspace-panel=mission]) #app > .workspace-tabs {bottom:140px;}
.workbench-shell:not(.tablet-shell):not([data-workspace-panel=mission]) #app > .workspace-tabs:after {padding-bottom:0;}

.tablet-shell #workspaceSidebar[aria-hidden=true] {visibility:hidden;pointer-events:none;}
