/* Eight independent visual directions; print templates retain their own styling. */
@media screen {
body.workplace-theme[data-theme]{--t-bg:#edf3f7;--t-panel:#fff;--t-soft:#f3f7fa;--t-text:#263d50;--t-muted:#526a7a;--t-line:#cddbe5;--t-accent:#087ca5;--t-on:#fff;--t-nav:#e2edf4;--t-radius:12px;--t-font:"Segoe UI",Arial,sans-serif;--t-shadow:0 3px 15px #223a5010;background:var(--t-bg);color:var(--t-text);font-family:var(--t-font)}
body.workplace-theme[data-theme] .app-shell,body.workplace-theme[data-theme] .screen{background:transparent;color:var(--t-text)}
body.workplace-theme[data-theme] .window-bar{background:var(--t-panel);color:var(--t-text);border-color:var(--t-line);gap:10px;padding:0 16px}
body.workplace-theme[data-theme] .window-bar strong{color:var(--t-text);font-family:var(--t-font);font-size:16px}
body.workplace-theme[data-theme] .window-bar strong small{color:var(--t-muted)}
body.workplace-theme[data-theme] .workspace-brand-note{display:none}
body.workplace-theme[data-theme] .workspace-search{background:var(--t-soft);border-color:var(--t-line);margin-left:4px;min-width:100px}
body.workplace-theme[data-theme] .workspace-search input{color:var(--t-text)}
body.workplace-theme[data-theme] :is(#interfaceThemeToggle,.workspace-ai-button,.communications-toggle){background:var(--t-soft);color:var(--t-text);border:1px solid var(--t-line);border-radius:var(--t-radius);height:36px;padding:0 12px;white-space:nowrap;font:600 12px var(--t-font);cursor:pointer}
body.workplace-theme[data-theme] .brand-orb{background:var(--t-accent);color:var(--t-on);border-radius:var(--t-radius)}
body.workplace-theme[data-theme] .sidebar{background:var(--t-nav);border-color:var(--t-line)}
body.workplace-theme[data-theme] #navigation button{color:var(--t-muted);border-radius:var(--t-radius);font-family:var(--t-font)}
body.workplace-theme[data-theme] #navigation button :is(span,.nav-label){color:inherit}
body.workplace-theme[data-theme] #navigation button:hover{background:var(--t-soft);color:var(--t-text)}
body.workplace-theme[data-theme] #navigation button.active{background:var(--t-accent);color:var(--t-on);box-shadow:none}
body.workplace-theme[data-theme] :is(.nav-group-label,.menu-label,.shift-card small,.shift-card span){color:var(--t-muted)}
body.workplace-theme[data-theme] .screen :is(h1,h2,h3){color:var(--t-text);font-family:var(--t-font)}
body.workplace-theme[data-theme] :is(.screen-title p,.dashboard-heading p,.journal-status){color:var(--t-muted)}
body.workplace-theme[data-theme] :is(.panel,.home-search-panel,.home-analytics,.order-detail,.modal-window,.client-profile,.client-list,.supplier-profile,.supplier-list,.order-master-fields,.spec-card-fields,.order-card-fields,.client-card-fields,.production-card,.dynamic-record-card,.order-tabs,.client-tabs,.film-supplier-tabs,.order-action-footer,.client-overview,.client-journal,.dimensions-block,.specification-summary,.cutting-unified-params,.cutting-workspace,.vacuum-film-calculation,.work-order-cut-map){background:var(--t-panel);color:var(--t-text);border-color:var(--t-line);border-radius:var(--t-radius);box-shadow:var(--t-shadow)}
body.workplace-theme[data-theme] :is(.panel>header,.panel>footer,.home-analytics>header,.journal-toolbar,.order-live-search,.film-search,.dialog-tab-content,.analytics-grid,.modal-window header,.modal-window footer){background:var(--t-panel);color:var(--t-text);border-color:var(--t-line)}
body.workplace-theme[data-theme] :is(.screen,.modal-window,.ai-rail,.communications-drawer) :is(input,select,textarea){background:var(--t-panel);color:var(--t-text);border-color:var(--t-line);font-family:var(--t-font);border-radius:calc(var(--t-radius) / 2)}
body.workplace-theme[data-theme] :is(.screen,.modal-window) label{color:var(--t-muted)}
body.workplace-theme[data-theme] :is(.screen,.modal-window) button{background:var(--t-soft);color:var(--t-text);border-color:var(--t-line);border-radius:calc(var(--t-radius) / 2);font-family:var(--t-font)}
body.workplace-theme[data-theme] :is(.screen,.modal-window) button:is(.primary,.neon-button,.active),body.workplace-theme[data-theme] .screen :is([data-command="add-order"],[data-command="add-client"],[data-command="add-film"]){background:var(--t-accent);color:var(--t-on);border-color:var(--t-accent)}
body.workplace-theme[data-theme] :is(button,input,textarea,select):focus-visible{outline:3px solid var(--t-accent);outline-offset:3px}
body.workplace-theme[data-theme] :is(table,table td){background:var(--t-panel);color:var(--t-text);border-color:var(--t-line);font-family:var(--t-font)}
body.workplace-theme[data-theme] table th{background:var(--t-soft);color:var(--t-muted);border-color:var(--t-line)}
body.workplace-theme[data-theme] table td b{color:var(--t-text)}
body.workplace-theme[data-theme] table :is(tr.selected,tr:hover) td{background:var(--t-soft)}
body.workplace-theme[data-theme] :is(.global-search,.analytics-grid>section,.analytics-kpis article,.ai-message,.ai-voice-controls,.spec-readonly-note,.order-finance>span,.client-kpis>article,.supplier-kpis>article,.client-metrics>div,.vacuum-film-grid>span){background:var(--t-soft);color:var(--t-text);border-color:var(--t-line);border-radius:var(--t-radius)}
body.workplace-theme[data-theme] .analytics-kpis article{border-top:3px solid var(--t-accent)}
body.workplace-theme[data-theme] :is(.analytics-kpis article b,.order-finance b,.client-kpis b,.supplier-kpis b,.vacuum-film-grid b,.analytics-bar strong){color:var(--t-text)}
body.workplace-theme[data-theme] :is(.analytics-kpis article span,.analytics-bar,.ai-rail label,.ai-state-label){color:var(--t-muted)}
body.workplace-theme[data-theme] .analytics-bar i{background:var(--t-soft)}
body.workplace-theme[data-theme] .analytics-bar i b{background:var(--t-accent)}
body.workplace-theme[data-theme] .global-result-card{background:var(--t-panel)!important;color:var(--t-text)!important;border-color:var(--t-line)!important}
body.workplace-theme[data-theme] .global-result-card :is(span,small){color:var(--t-muted)}
body.workplace-theme[data-theme] :is(.ai-rail,.communications-drawer,.comm-history article,.communications-drawer header,.communications-drawer nav){background:var(--t-panel);color:var(--t-text);border-color:var(--t-line)}
body.workplace-theme[data-theme] .hologram{background:var(--t-soft)!important;border-color:var(--t-line)}
body.workplace-theme[data-theme] .hologram::after{color:var(--t-accent)}
body.workplace-theme[data-theme] .screen :is(.danger,td.danger){color:#b52b39}
body.workplace-theme[data-theme] .screen :is(.good,td.good){color:#28733d}
/* 01 / OFFICE: familiar spacious navigation and calm blue cards. */
body.workplace-theme[data-theme="office"] .workspace{grid-template-columns:218px minmax(0,1fr)}
/* 02 / LEDGER: horizontal section ribbon and dense monochrome sheets. */
body.workplace-theme[data-theme="ledger"]{--t-bg:#f1f1ef;--t-panel:#fff;--t-soft:#e9e9e6;--t-nav:#fff;--t-text:#242424;--t-muted:#575752;--t-line:#bcbcb5;--t-accent:#262626;--t-radius:0px;--t-shadow:none}
body.workplace-theme[data-theme="ledger"] .workspace{display:block}
body.workplace-theme[data-theme="ledger"] .sidebar{position:sticky;top:68px;height:66px;width:100%;padding:10px 16px;z-index:30;border-bottom:2px solid var(--t-accent);overflow:auto}
body.workplace-theme[data-theme="ledger"] #navigation{display:flex;gap:5px;width:max-content}
body.workplace-theme[data-theme="ledger"] #navigation button{width:auto;min-width:115px;height:42px;margin:0;border:1px solid var(--t-line);justify-content:center}
body.workplace-theme[data-theme="ledger"] :is(.menu-label,.nav-group-label,.shift-card){display:none}
body.workplace-theme[data-theme="ledger"] .screen{padding:16px 22px}
body.workplace-theme[data-theme="ledger"] table :is(td,th){padding:6px 9px;font-size:11px}
body.workplace-theme[data-theme="ledger"] .screen h1{text-transform:uppercase;font-size:21px;letter-spacing:2px;font-weight:800}
body.workplace-theme[data-theme="ledger"] .analytics-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:0}
body.workplace-theme[data-theme="ledger"] .analytics-kpis article{padding:12px;border-top:1px solid var(--t-line)}
/* 03 / BLUEPRINT: right tools, technical grid and fine outlines. */
body.workplace-theme[data-theme="blueprint"]{--t-bg:#0d2746;--t-panel:#123556;--t-soft:#194364;--t-nav:#0a213c;--t-text:#e8f6ff;--t-muted:#b4d2e8;--t-line:#426b88;--t-accent:#99e6ff;--t-on:#09243f;--t-radius:2px;--t-shadow:none;--t-font:Consolas,"Courier New",monospace;background-image:linear-gradient(#acd9ff0b 1px,transparent 1px),linear-gradient(90deg,#acd9ff0b 1px,transparent 1px);background-size:24px 24px}
body.workplace-theme[data-theme="blueprint"] .workspace{grid-template-columns:minmax(0,1fr) 236px}
body.workplace-theme[data-theme="blueprint"] .sidebar{grid-column:2;grid-row:1;border-left:1px solid var(--t-line);border-right:0}
body.workplace-theme[data-theme="blueprint"] .screen{grid-column:1;grid-row:1;padding:30px}
body.workplace-theme[data-theme="blueprint"] .screen h1{letter-spacing:2px;text-transform:uppercase;font-size:23px}
body.workplace-theme[data-theme="blueprint"] .panel>header{border-bottom:1px dashed var(--t-line)}
/* 04 / AURORA: floating glass rail, soft gradients and spacious round cards. */
body.workplace-theme[data-theme="aurora"]{--t-bg:#17122b;--t-panel:#25213e;--t-soft:#342c50;--t-nav:#25213eef;--t-text:#f5edff;--t-muted:#c7bbdf;--t-line:#60516f;--t-accent:#d9b1ff;--t-on:#241136;--t-radius:22px;--t-shadow:0 12px 34px #09051a33;background-image:radial-gradient(ellipse at 15% 15%,#823fae55,transparent 48%),radial-gradient(ellipse at 90% 70%,#20778366,transparent 50%);background-attachment:fixed;background-size:150% 150%}
body.workplace-theme[data-theme="aurora"][data-theme-motion="true"]{animation:interwood-aurora 24s ease-in-out infinite alternate}
@keyframes interwood-aurora{from{background-position:0% 0%}to{background-position:90% 65%}}
body.workplace-theme[data-theme="aurora"] .workspace{grid-template-columns:206px minmax(0,1fr);gap:18px;padding:20px}
body.workplace-theme[data-theme="aurora"] .sidebar{top:88px;height:calc(100vh - 110px);border:1px solid var(--t-line);border-radius:30px;backdrop-filter:blur(15px);padding:18px 12px}
body.workplace-theme[data-theme="aurora"] .screen{padding:8px 12px 40px}
body.workplace-theme[data-theme="aurora"] .screen h1{font-size:32px;font-weight:300}
body.workplace-theme[data-theme="aurora"] .analytics-kpis article{border-top:0;background:linear-gradient(145deg,#493563,#283b50);padding:26px}
body.workplace-theme[data-theme="aurora"] #navigation button.active{box-shadow:0 4px 22px #c794ff35}
/* 05 / ATELIER: oversized serif titles, warm paper and two-column menu. */
body.workplace-theme[data-theme="atelier"]{--t-bg:#eae2d5;--t-panel:#fffaf1;--t-soft:#f0e6d5;--t-nav:#e2d3be;--t-text:#382f25;--t-muted:#685845;--t-line:#b7a58d;--t-accent:#93432a;--t-on:#fff7ed;--t-radius:3px;--t-shadow:4px 4px 0 #a48b6f25}
body.workplace-theme[data-theme="atelier"] .workspace{grid-template-columns:286px minmax(0,1fr)}
body.workplace-theme[data-theme="atelier"] #navigation{grid-template-columns:1fr 1fr;gap:7px}
body.workplace-theme[data-theme="atelier"] .nav-group-label{grid-column:1/-1;margin:16px 3px 3px}
body.workplace-theme[data-theme="atelier"] #navigation button{height:76px;white-space:normal;flex-direction:column;justify-content:center;text-align:center;padding:8px 4px;margin:0;border:1px solid var(--t-line);background:var(--t-panel)}
body.workplace-theme[data-theme="atelier"] #navigation button.active{background:var(--t-accent)}
body.workplace-theme[data-theme="atelier"] .screen h1{font-family:Georgia,"Times New Roman",serif;font-size:38px;font-weight:400}
body.workplace-theme[data-theme="atelier"] .screen-title{border-bottom:3px double var(--t-line);padding-bottom:18px}
body.workplace-theme[data-theme="atelier"] .analytics-kpis article b{font-family:Georgia,serif;font-size:34px}
/* 06 / TERMINAL: compact amber console with bottom navigation. */
body.workplace-theme[data-theme="terminal"]{--t-bg:#171917;--t-panel:#20241f;--t-soft:#2b3028;--t-nav:#191d18;--t-text:#ecebdc;--t-muted:#babda8;--t-line:#62664e;--t-accent:#f0c66a;--t-on:#23251b;--t-radius:0px;--t-shadow:none;--t-font:Consolas,"Courier New",monospace}
body.workplace-theme[data-theme="terminal"] .workspace{display:block;min-height:calc(100vh - 68px)}
body.workplace-theme[data-theme="terminal"] .sidebar{position:fixed;inset:auto 0 0;height:110px;width:100%;z-index:45;padding:10px 18px;border:0;border-top:2px solid var(--t-accent);overflow:auto}
body.workplace-theme[data-theme="terminal"] #navigation{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,38px);grid-auto-columns:170px;gap:5px}
body.workplace-theme[data-theme="terminal"] #navigation button{height:36px;margin:0;border:1px solid var(--t-line);font-size:11px;text-transform:uppercase}
body.workplace-theme[data-theme="terminal"] :is(.menu-label,.nav-group-label,.shift-card){display:none}
body.workplace-theme[data-theme="terminal"] .screen{padding:18px 24px 135px}
body.workplace-theme[data-theme="terminal"] table :is(th,td){padding:6px 8px;font-size:11px}
body.workplace-theme[data-theme="terminal"] .screen h1{font-size:24px;text-transform:uppercase;letter-spacing:1px}
body.workplace-theme[data-theme="terminal"] .screen h1::before{content:'> ';color:var(--t-accent)}
body.workplace-theme[data-theme="terminal"] .analytics-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
body.workplace-theme[data-theme="terminal"] .analytics-kpis article{padding:12px}
/* 07 / GALLERY: geometric canvas with a collapsible overlay navigator. */
body.workplace-theme[data-theme="gallery"]{--t-bg:#fafaf6;--t-panel:#fff;--t-soft:#edf3e9;--t-nav:#fff;--t-text:#233629;--t-muted:#51644f;--t-line:#bfccba;--t-accent:#275d43;--t-on:#fff;--t-radius:16px;--t-shadow:0 8px 24px #3557330b;background-image:radial-gradient(circle at 96% 5%,#efcd7466 0 180px,transparent 181px),linear-gradient(135deg,transparent 65%,#c3dbbf44 65% 78%,transparent 78%);background-attachment:fixed}
body.workplace-theme[data-theme="gallery"] .workspace{display:block}
body.workplace-theme[data-theme="gallery"] .sidebar{position:fixed;left:14px;top:82px;height:calc(100vh - 100px);width:258px;border:1px solid var(--t-line);border-radius:18px;box-shadow:0 15px 70px #19382040;z-index:45}
body.workplace-theme[data-theme="gallery"] .screen{max-width:1260px;margin:auto;padding:38px 40px 60px}
body.workplace-theme[data-theme="gallery"] .screen h1{font-size:40px;font-weight:700;letter-spacing:-1.6px}
body.workplace-theme[data-theme="gallery"] .analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.workplace-theme[data-theme="gallery"] .analytics-kpis article{border-top:0;padding:25px 28px;border-left:7px solid var(--t-accent)}
body.workplace-theme[data-theme="gallery"] .analytics-kpis article:nth-child(3n+2){border-left-color:#b88928}
body.workplace-theme[data-theme="gallery"] .analytics-kpis article:nth-child(3n){border-left-color:#728ea5}
/* Collapse remains functional in every composition. */
body.workplace-theme[data-theme].sidebar-collapsed .sidebar{display:none}
body.workplace-theme[data-theme].sidebar-collapsed .workspace{grid-template-columns:minmax(0,1fr)}
body.workplace-theme[data-theme="blueprint"].sidebar-collapsed .screen{grid-column:1}
body.workplace-theme[data-theme="terminal"].sidebar-collapsed .screen{padding-bottom:35px}
body.workplace-theme[data-theme="aurora"].sidebar-collapsed .workspace{gap:0}
body.workplace-theme[data-theme]:is([data-theme="blueprint"],[data-theme="aurora"],[data-theme="terminal"]) .screen :is(.danger,td.danger){color:#ffadb5}
body.workplace-theme[data-theme]:is([data-theme="blueprint"],[data-theme="aurora"],[data-theme="terminal"]) .screen :is(.good,td.good){color:#a1e4ae}
/* A neutral theme gallery keeps previews comparable. */
body .theme-picker[hidden]{display:none!important}
body.workplace-theme .theme-picker{display:block;position:fixed;inset:0;width:min(1100px,94vw);height:auto;max-height:90vh;margin:auto;padding:24px;background:#f4f4f0;color:#232a28;border:1px solid #bec6bf;border-radius:18px;box-shadow:0 30px 100px #0006;overflow:auto;backdrop-filter:none;font:14px "Segoe UI",Arial,sans-serif}
.theme-picker::backdrop{background:#09131db0;backdrop-filter:blur(5px)}
.theme-picker>header{display:flex;justify-content:space-between;gap:20px;margin-bottom:20px}
.theme-picker h2{font-size:28px;margin:5px 0 8px;letter-spacing:-.7px;color:#232a28}
.theme-picker header small{font-size:10px;letter-spacing:2px;color:#536257}.theme-picker header p{margin:0;color:#546057}
.theme-picker button{cursor:pointer;font:inherit}.theme-picker #themePickerClose{border:1px solid #bcc5bf;background:#fff;color:#26352a;border-radius:50%;width:36px;height:36px;font-size:24px;flex-shrink:0}
.theme-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.theme-picker [data-theme-choice]{text-align:left;padding:0;overflow:hidden;border:2px solid #d4dad3;border-radius:10px;background:white;color:#26342b;display:flex;flex-direction:column}
.theme-picker [data-theme-choice]:hover{border-color:#739282}.theme-picker [data-theme-choice].selected{border-color:#275d43;box-shadow:0 0 0 2px #275d4320}
.theme-choice-copy{padding:12px;flex:1}.theme-choice-copy>span{font-size:10px;color:#526553}.theme-choice-copy h3{margin:5px 0;font-size:19px;color:#26342b}.theme-choice-copy p{font-size:12px;line-height:1.5;margin:6px 0;color:#4c5b50}.theme-selected-label{display:block;font-size:11px;color:#275d43;visibility:hidden;margin-top:10px}.selected .theme-selected-label{visibility:visible}
.theme-picker footer{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:20px}.theme-picker footer label{display:flex;align-items:center;gap:6px;color:#344738}.theme-picker footer p{flex:1;min-width:200px;font-size:12px;color:#526353}.theme-picker #themePickerDone{background:#275d43;color:#fff;border:0;border-radius:8px;padding:10px 24px}.theme-picker input{accent-color:#275d43}
.theme-mini{position:relative;height:120px;width:100%;background:#edf3f7;overflow:hidden;--mini-paper:#fff;--mini-ink:#5294b8;flex-shrink:0}.theme-mini i{position:absolute;display:block;background:var(--mini-paper);border:1px solid #8883}.mini-nav{left:0;top:0;width:23%;height:100%;background:var(--mini-ink)!important}.mini-title{left:28%;top:12%;width:44%;height:8%;background:var(--mini-ink)!important}.mini-card{top:30%;height:24%;width:19%;border-radius:4px}.mini-card.a{left:28%}.mini-card.b{left:51%}.mini-card.c{left:74%}.mini-table{left:28%;top:64%;width:65%;height:28%;background:repeating-linear-gradient(var(--mini-paper) 0 7px,#8883 7px 8px)!important}.theme-mini>span{position:absolute;right:9px;top:8px;font:bold 15px monospace;color:var(--mini-ink)}
.mini-ledger{background:#f1f1ef;--mini-ink:#333}.mini-ledger .mini-nav{width:100%;height:18%}.mini-ledger .mini-title{left:5%;top:27%;height:5%}.mini-ledger .mini-card{top:39%;height:12%}.mini-ledger .mini-table{left:5%;width:90%;height:38%;top:56%}.mini-ledger>span{color:#fff}
.mini-blueprint{background-color:#0d2746;background-image:linear-gradient(#ffffff16 1px,transparent 1px),linear-gradient(90deg,#ffffff16 1px,transparent 1px);background-size:10px 10px;--mini-ink:#9be7ff;--mini-paper:#184060}.mini-blueprint .mini-nav{left:auto;right:0;width:20%;background:#2e6188!important}.mini-blueprint .mini-title,.mini-blueprint .mini-card.a,.mini-blueprint .mini-table{left:6%}.mini-blueprint .mini-card.b{left:29%}.mini-blueprint .mini-card.c{left:52%}.mini-blueprint>span{right:26%}
.mini-aurora{background:radial-gradient(at 20% 10%,#b564bf,transparent 80%),linear-gradient(135deg,#2c1d49,#398d91);--mini-paper:#61557c;--mini-ink:#e8c7ff}.mini-aurora .mini-nav{left:4%;top:8%;height:84%;width:18%;border-radius:20px;background:#34294e!important}.mini-aurora .mini-card,.mini-aurora .mini-table{border-radius:10px}
.mini-atelier{background:#e4d5c0;--mini-paper:#fff5df;--mini-ink:#98462d}.mini-atelier .mini-nav{width:30%;background:repeating-linear-gradient(transparent 0 18px,#e4d5c0 18px 22px),repeating-linear-gradient(90deg,#98462d 0 23px,#e4d5c0 23px 27px)!important}.mini-atelier .mini-title{left:36%;width:43%;height:13%}.mini-atelier .mini-card.a{left:36%}.mini-atelier .mini-card.b{left:60%;width:30%}.mini-atelier .mini-card.c{display:none}.mini-atelier .mini-table{left:36%;width:55%}
.mini-terminal{background:#171917;--mini-paper:#31372a;--mini-ink:#edc16b}.mini-terminal .mini-nav{top:auto;bottom:0;width:100%;height:20%}.mini-terminal .mini-title{left:6%}.mini-terminal .mini-card{height:18%}.mini-terminal .mini-table{left:6%;width:88%;top:57%;height:15%}
.mini-gallery{background:radial-gradient(circle at 92% 15%,#e8ca6d 0 40px,transparent 41px),#f8faf4;--mini-ink:#386849}.mini-gallery .mini-nav{left:5%;top:8%;width:10%;height:10%;border-radius:5px}.mini-gallery .mini-title{left:20%;top:15%;width:48%;height:14%}.mini-gallery .mini-card{top:43%;height:42%;border-left:4px solid var(--mini-ink);width:37%;border-radius:8px}.mini-gallery .mini-card.a{left:10%}.mini-gallery .mini-card.b{left:53%;border-left-color:#c6a34c}.mini-gallery .mini-card.c,.mini-gallery .mini-table{display:none}
@media(max-width:1100px){body.workplace-theme[data-theme] .window-bar strong{font-size:13px}body.workplace-theme[data-theme] .workspace-search{max-width:240px}body.workplace-theme[data-theme] .analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){body.workplace-theme[data-theme] .window-bar{padding:0 8px;gap:6px}body.workplace-theme[data-theme] .window-bar strong{font-size:12px}body.workplace-theme[data-theme] .brand-orb,body.workplace-theme[data-theme] .window-bar strong small{display:none}body.workplace-theme[data-theme] :is(#interfaceThemeToggle,.workspace-ai-button,.communications-toggle){padding:0 7px;font-size:11px}body.workplace-theme[data-theme] .workspace-search{display:none}body.workplace-theme[data-theme] .workspace{display:block;padding:0}body.workplace-theme[data-theme] .sidebar{position:fixed;inset:68px auto 0 0;width:240px;height:calc(100vh - 68px);z-index:45;border:1px solid var(--t-line);border-radius:0;box-shadow:10px 0 30px #0004}body.workplace-theme[data-theme] #navigation{display:grid;grid-template-columns:1fr;grid-template-rows:none;grid-auto-flow:row;width:auto}body.workplace-theme[data-theme] #navigation button{height:auto;min-height:38px;flex-direction:row;width:100%;justify-content:start}body.workplace-theme[data-theme] .screen{padding:20px 14px 35px}body.workplace-theme[data-theme] .screen h1{font-size:28px}.theme-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-picker h2{font-size:22px}.theme-picker{padding:16px!important}}
@media(prefers-reduced-motion:reduce){body.workplace-theme[data-theme="aurora"]{animation:none!important}}
}
@media print{#interfaceThemeToggle,#interfaceThemeDialog{display:none!important}}

@media screen {
body.workplace-theme[data-theme] .workspace{transition:none}
body.workplace-theme[data-theme] .auth-gate{background:var(--t-bg);color:var(--t-text)}
body.workplace-theme[data-theme] .auth-card{background:var(--t-panel);color:var(--t-text);border-color:var(--t-line)}
body.workplace-theme[data-theme] .auth-card :is(h1,h2){color:var(--t-text)}
body.workplace-theme[data-theme] .auth-card :is(label,p,small){color:var(--t-muted)}
body.workplace-theme[data-theme] .auth-card :is(input,button){background:var(--t-soft);color:var(--t-text);border-color:var(--t-line)}
}

@media screen {
body.workplace-theme[data-theme] .global-search-filters{background:transparent!important}
body.workplace-theme[data-theme] :is(input,textarea)::placeholder{color:var(--t-muted);opacity:1}
body.workplace-theme[data-theme] :is(.home-analytics>header small,.analytics-empty,.dashboard-heading p){color:var(--t-muted)}
body.workplace-theme[data-theme] .sidebar-toggle{color:var(--t-text)}
body.workplace-theme[data-theme="aurora"] :is(.panel,.home-analytics,.home-search-panel){background:#25213ee8;backdrop-filter:blur(12px)}
}

/* 08 / iPhone Air: translucent dock, app library and grouped cards. */
#iosDock{display:none}
@media screen {
body.workplace-theme[data-theme="ios"]{--t-bg:#f2f2f7;--t-panel:#ffffff;--t-soft:#f2f3f8;--t-nav:#ffffffea;--t-text:#1c1c1e;--t-muted:#595963;--t-line:#d6d6df;--t-accent:#0067d9;--t-on:#fff;--t-radius:24px;--t-shadow:0 8px 30px #34456a0a;--t-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background-image:radial-gradient(ellipse at 0% 10%,#c5d9ff88,transparent 45%),radial-gradient(ellipse at 100% 65%,#e5d5f588,transparent 50%),radial-gradient(ellipse at 60% 100%,#cae9e477,transparent 40%);background-attachment:fixed}
body.workplace-theme[data-theme="ios"] .window-bar{background:#ffffffba;backdrop-filter:blur(24px) saturate(1.4);border-bottom:1px solid #ffffffb0}
body.workplace-theme[data-theme="ios"] .brand-orb{background:linear-gradient(145deg,#6cbbff,#007aff);border-radius:11px;box-shadow:inset 0 1px 2px #fff8}
body.workplace-theme[data-theme="ios"] .workspace{display:block;padding:0}
body.workplace-theme[data-theme="ios"] .screen{max-width:1220px;margin:auto;padding:32px 34px 140px}
body.workplace-theme[data-theme="ios"] .screen h1{font-size:36px;font-weight:750;letter-spacing:-1.3px}
body.workplace-theme[data-theme="ios"] .screen-title,body.workplace-theme[data-theme="ios"] .dashboard-heading{margin-bottom:28px}
body.workplace-theme[data-theme="ios"] :is(.panel,.home-search-panel,.home-analytics){border:1px solid #ffffffd9;background:#ffffffdd;box-shadow:0 10px 36px #343e6310}
body.workplace-theme[data-theme="ios"] .screen :is(input,select,textarea){min-height:38px;border-radius:12px;background:#f3f3f8;border-color:transparent}
body.workplace-theme[data-theme="ios"] .screen :is(button.active,button.primary){border-radius:12px}
body.workplace-theme[data-theme="ios"] .global-search-filters{display:flex;width:max-content;max-width:100%;flex-wrap:wrap;gap:3px;border-radius:13px;background:#eeeeF3!important;padding:4px}
body.workplace-theme[data-theme="ios"] .global-search-filters button{border-radius:10px;background:transparent;color:#41414a}
body.workplace-theme[data-theme="ios"] .global-search-filters button.active{background:#fff;color:#1c1c1e;border-color:transparent;box-shadow:0 2px 5px #0002}
body.workplace-theme[data-theme="ios"] .analytics-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.workplace-theme[data-theme="ios"] .analytics-kpis article{position:relative;border:0;border-radius:20px;padding:23px;background:#f5f6fa}
body.workplace-theme[data-theme="ios"] .analytics-kpis article::before{content:'';display:block;width:26px;height:6px;background:#007aff;border-radius:10px;margin-bottom:13px}
body.workplace-theme[data-theme="ios"] .analytics-kpis article:nth-child(3n+2)::before{background:#a04ac9}
body.workplace-theme[data-theme="ios"] .analytics-kpis article:nth-child(3n)::before{background:#229762}
body.workplace-theme[data-theme="ios"] .analytics-kpis article b{font-size:30px;font-weight:650;letter-spacing:-1px}
body.workplace-theme[data-theme="ios"] table th{background:#f5f5fa;font-size:11px;font-weight:600}
body.workplace-theme[data-theme="ios"] table td{padding:13px 12px}
body.workplace-theme[data-theme="ios"] .sidebar{position:fixed;inset:86px auto 116px 50%;width:min(620px,calc(100vw - 32px));height:auto;transform:translateX(-50%);z-index:65;padding:22px;background:#ffffffeb;backdrop-filter:blur(30px) saturate(1.3);border:1px solid #fff;border-radius:30px;box-shadow:0 24px 90px #182c5040;overflow:auto}
body.workplace-theme[data-theme="ios"] #navigation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:none;grid-auto-flow:row;gap:10px;width:auto}
body.workplace-theme[data-theme="ios"] :is(.menu-label,.shift-card){display:none}
body.workplace-theme[data-theme="ios"] .nav-group-label{grid-column:1/-1;font-size:11px;font-weight:700;letter-spacing:1px;margin:10px 4px 3px}
body.workplace-theme[data-theme="ios"] #navigation button{flex-direction:column;justify-content:center;height:82px;margin:0;padding:8px 4px;gap:6px;border-radius:18px;white-space:normal;text-align:center;font-size:11px;background:transparent;color:#3a3a42}
body.workplace-theme[data-theme="ios"] #navigation button>span{display:grid;place-items:center;width:32px;height:32px;min-width:32px;background:linear-gradient(145deg,#62b6ff,#007aff);color:white;border-radius:10px;font-size:20px;box-shadow:inset 0 1px 1px #fff7}
body.workplace-theme[data-theme="ios"] #navigation button:nth-of-type(4n+2)>span{background:linear-gradient(145deg,#b18bfc,#7654cf)}
body.workplace-theme[data-theme="ios"] #navigation button:nth-of-type(4n+3)>span{background:linear-gradient(145deg,#ffba62,#e98b22)}
body.workplace-theme[data-theme="ios"] #navigation button:nth-of-type(4n)>span{background:linear-gradient(145deg,#61d89e,#228656)}
body.workplace-theme[data-theme="ios"] #navigation button.active{background:#e8effc;color:#005ccc}
body.workplace-theme[data-theme="ios"] #iosDock{position:fixed;display:flex;align-items:center;justify-content:center;gap:6px;bottom:18px;left:50%;transform:translateX(-50%);z-index:70;width:min(530px,calc(100vw - 24px));padding:8px;border:1px solid #ffffffed;border-radius:30px;background:#ffffffcc;backdrop-filter:blur(28px) saturate(1.7);box-shadow:0 12px 45px #22345026,inset 0 1px #fff}
body.workplace-theme[data-theme="ios"] #iosDock button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:transparent;color:#555561;border-radius:22px;padding:9px 5px;font:600 11px var(--t-font);cursor:pointer}
body.workplace-theme[data-theme="ios"] #iosDock button span{font-size:23px;line-height:26px;letter-spacing:1px}
body.workplace-theme[data-theme="ios"] #iosDock button.active,body.workplace-theme[data-theme="ios"] #iosMore[aria-expanded="true"]{background:#e3edff;color:#005dcc}
body.workplace-theme[data-theme="ios"] .modal-window{border-radius:28px;box-shadow:0 25px 100px #20385a30}
.mini-ios{background:radial-gradient(at 0% 0%,#a9cdff,transparent 70%),radial-gradient(at 100% 90%,#d5b8f4,transparent 70%),#eef2f9;--mini-ink:#007aff}
.mini-ios .mini-nav{left:20%;top:auto;bottom:6%;height:18%;width:60%;border-radius:20px;background:#ffffffcc!important;box-shadow:0 3px 12px #22345020}
.mini-ios .mini-title{left:8%;top:10%;width:44%;height:10%;border-radius:4px}
.mini-ios .mini-card{top:30%;height:35%;border-radius:10px;width:25%;border:0;box-shadow:0 3px 10px #44668812}
.mini-ios .mini-card.a{left:8%}.mini-ios .mini-card.b{left:37%}.mini-ios .mini-card.c{left:66%}.mini-ios .mini-table{display:none}
@media(max-width:800px){body.workplace-theme[data-theme="ios"] .screen{padding:22px 14px 125px}body.workplace-theme[data-theme="ios"] .analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}body.workplace-theme[data-theme="ios"] #navigation{grid-template-columns:repeat(3,minmax(0,1fr))}body.workplace-theme[data-theme="ios"] .sidebar{padding:15px}body.workplace-theme[data-theme="ios"] .screen h1{font-size:30px}}
}
@media print{#iosDock{display:none!important}}

/* Keep text and SVG artwork at native layout resolution, including HiDPI screens. */
@media screen {
body.workplace-theme .interface-icon{display:block;width:24px;height:24px;flex-shrink:0;shape-rendering:geometricPrecision}
body.workplace-theme #navigation button>span{display:grid;place-items:center;min-width:24px}
body.workplace-theme[data-theme="ios"] #navigation .interface-icon{width:22px;height:22px}
body.workplace-theme #iosDock .interface-icon{width:26px;height:26px}
body.workplace-theme .screen{animation:interwood-screen-fade .2s ease both}
@keyframes interwood-screen-fade{from{opacity:0}to{opacity:1}}
body.workplace-theme[data-theme="ios"] .sidebar{left:0;right:0;margin-inline:auto;transform:none}
body.workplace-theme[data-theme="ios"] #iosDock{left:0;right:0;margin-inline:auto;transform:none}
@media(prefers-reduced-motion:reduce){body.workplace-theme .screen{animation:none}}
}

/* iPhone Glass: resolution-independent surfaces, bounded blur. */
body.workplace-theme[data-theme="ios"]{--t-font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(ellipse at 10% 10%,#b8d9ff 0,transparent 52%),radial-gradient(ellipse at 90% 35%,#d8c7ff 0,transparent 55%),radial-gradient(ellipse at 40% 95%,#b9ebdf 0,transparent 55%),#edf3fa;color:#17283c}
body.workplace-theme[data-theme="ios"] :is(.app-shell,.workspace,.screen){background:transparent}
body.workplace-theme[data-theme="ios"] :is(.sidebar,#iosDock,.topbar,.modal-window){background:rgba(247,251,255,.76)!important;backdrop-filter:blur(14px) saturate(1.25);border:1px solid rgba(255,255,255,.9);box-shadow:0 16px 48px #25466b20,inset 0 1px 0 #fff;border-radius:24px}
body.workplace-theme[data-theme="ios"] :is(.modal-window>header,.modal-window>footer){background:rgba(244,249,255,.92)!important;color:#17283c}
body.workplace-theme[data-theme="ios"] :is(.panel,.home-search-panel,.home-analytics,.specification-summary,.order-totals span,.analytics-kpis article){background:rgba(255,255,255,.58)!important;border:1px solid #ffffffc9;border-radius:18px;box-shadow:0 4px 16px #31547a0b}
body.workplace-theme[data-theme="ios"] :is(input,select,textarea){background:rgba(255,255,255,.82)!important;color:#17283c!important;border:1px solid #8daac55c;border-radius:12px}
body.workplace-theme[data-theme="ios"] :is(input,select,textarea):focus{outline:2px solid #007aff;outline-offset:1px}
body.workplace-theme[data-theme="ios"] table{background:#ffffff70;color:#17283c}
body.workplace-theme[data-theme="ios"] table th{background:#eaf2f9e8;color:#254260}
body.workplace-theme[data-theme="ios"] table tr.selected{background:#d6e9ff!important}
body.workplace-theme[data-theme="ios"] .modal-backdrop{background:#24446222;backdrop-filter:none!important}
body.workplace-theme[data-theme="ios"] :is(.crm-pan button,button){border-radius:12px}
body.workplace-theme[data-theme="ios"] .interface-icon{shape-rendering:geometricPrecision}
body.workplace-theme[data-theme="ios"] .crm-window-frame{filter:none}
@media(prefers-reduced-motion:reduce){body.workplace-theme[data-theme="ios"] *{animation:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-transparency:reduce){body.workplace-theme[data-theme="ios"] :is(.sidebar,#iosDock,.topbar,.modal-window){background:#f5f9ff!important;backdrop-filter:none}}
@media print{body.workplace-theme[data-theme="ios"]{background:white!important}body.workplace-theme[data-theme="ios"] *{backdrop-filter:none!important;box-shadow:none!important}}

#crmWindowsDesktop,#crmWindowsTaskbar{display:none}
@media screen{
body.workplace-theme[data-theme="windows"]{--t-bg:#dce9fa;--t-panel:#f9fbfe;--t-soft:#edf2f8;--t-accent:#0067c0;--t-text:#202c3a;--t-radius:8px;--t-font:"Segoe UI",Arial,sans-serif;background:radial-gradient(ellipse at 75% 30%,#57b2f1 0,transparent 42%),radial-gradient(ellipse at 38% 70%,#7d9cea 0,transparent 48%),linear-gradient(135deg,#d5ebff,#376bc0);background-attachment:fixed}
body.workplace-theme[data-theme="windows"] .screen{padding-bottom:85px}
body.workplace-theme[data-theme="windows"] .sidebar{position:fixed;left:12px;bottom:64px;top:auto!important;width:min(560px,calc(100vw - 24px));max-height:75vh;overflow:auto;border-radius:8px;background:#f4f8fff5;border:1px solid #fff;box-shadow:0 12px 45px #10275040;z-index:90;padding:18px}
body.workplace-theme[data-theme="windows"] #navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
body.workplace-theme[data-theme="windows"] #navigation .nav-group-label{grid-column:1/-1}
body.workplace-theme[data-theme="windows"] #navigation button{white-space:normal;border-radius:6px;min-height:58px;font-size:12px}
body.workplace-theme[data-theme="windows"] :is(.shift-card,.menu-label){display:none}
body.workplace-theme[data-theme="windows"] .modal-window{border-radius:8px!important;background:#f9fbfe!important;border:1px solid #8a9ebc;box-shadow:0 18px 48px #14294140}
body.workplace-theme[data-theme="windows"] .modal-window>header{background:#eaf1fa!important;padding:12px 16px;min-height:42px}
body.workplace-theme[data-theme="windows"] .modal-window>header h2{font:600 14px "Segoe UI",sans-serif}
body.workplace-theme[data-theme="windows"] .modal-window>header>button:hover{background:#c42b1c!important;color:white!important}
body.workplace-theme[data-theme="windows"] :is(input,select,textarea,button){border-radius:4px}
body.workplace-theme[data-theme="windows"] #crmWindowsTaskbar{display:flex;position:fixed;bottom:0;left:0;right:0;height:54px;z-index:95;align-items:center;gap:7px;padding:5px 12px;background:#edf4fff2;border-top:1px solid #fff;box-shadow:0 -2px 12px #15305812}
#crmWindowsTaskbar button{height:40px;padding:0 14px;border:0;border-radius:5px;background:transparent;color:#173653;cursor:pointer}#crmWindowsTaskbar button:hover{background:#fff}#crmWindowsTaskbar [data-win-current]{border-bottom:3px solid #0067c0;background:#ffffffa8}.win-logo{font-size:25px;color:#0078d4;vertical-align:middle}.win-task-brand{margin-left:auto;font-size:12px;color:#4a617c}
body.workplace-theme[data-theme="windows"] #crmWindowsDesktop:not([hidden]){display:grid;grid-template-columns:repeat(auto-fill,100px);grid-auto-rows:104px;align-content:start;gap:14px;position:fixed;inset:90px 0 55px;z-index:55;overflow:auto;padding:24px;background:radial-gradient(ellipse at 75% 30%,#57b2f1 0,transparent 42%),linear-gradient(135deg,#c1e2ff,#376bc0)}
#crmWindowsDesktop button{border:1px solid transparent;border-radius:5px;background:transparent;color:#102948;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;font:600 12px "Segoe UI",sans-serif;cursor:pointer;padding:8px}#crmWindowsDesktop button:hover,#crmWindowsDesktop button:focus-visible{background:#ffffff65;border-color:#fff}#crmWindowsDesktop .interface-icon{width:36px;height:36px;color:#0067c0;filter:drop-shadow(0 2px 2px #ffffff90)}
.mini-windows{background:linear-gradient(135deg,#c1e2ff,#376bc0);--mini-ink:#0067c0}.mini-windows .mini-nav{left:0;right:0;top:auto;bottom:0;width:100%;height:15%;background:#edf4ff!important}.mini-windows .mini-card{border-radius:3px;background:#f9fbfe!important}
}
@media(max-width:650px){.win-task-brand{display:none}#crmWindowsTaskbar button{padding:0 7px;font-size:11px}}
@media print{#crmWindowsDesktop,#crmWindowsTaskbar{display:none!important}}

@media screen{
body[data-theme="windows"] #crmWindowsDesktop button>span:first-child{background:linear-gradient(145deg,#ffffff,#a9ceff);padding:10px;border-radius:12px;box-shadow:inset 1px 2px 2px white,3px 6px 0 #2a5c9655,5px 9px 14px #12345b30;transform:perspective(500px) rotateY(-9deg) rotateX(7deg)}
body[data-theme="windows"] #crmWindowsDesktop button:hover>span:first-child{transform:perspective(500px) rotateY(0) translateY(-3px)}
body[data-theme="windows"] #crmWindowsTaskbar button{box-shadow:inset 0 1px #fff,0 2px 2px #20476c20}
body[data-theme="windows"] .modal-window{box-shadow:0 24px 55px #0b234952,0 5px 0 #9eb3cc!important}
#crmModelPreview{width:min(1000px,94vw);max-height:92vh;border:1px solid #a2b7cf;border-radius:10px;background:#f5f8fc;color:#182e44;padding:20px;overflow:auto}#crmModelPreview::backdrop{background:#15283d88}#crmModelPreview header{display:flex;justify-content:space-between;align-items:center}#crmModelPreview h2{font:600 20px 'Segoe UI'}#crmModelPreview button{padding:8px 12px;cursor:pointer}#crmModelPreview .model-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:20px}#crmModelPreview form{display:grid;gap:10px;align-content:start}#crmModelPreview label{display:grid;gap:4px;font-size:13px}#crmModelPreview input,#crmModelPreview select{width:100%;box-sizing:border-box;padding:6px}#crmModelPreview canvas{width:100%;height:440px;background:radial-gradient(#fff,#dfe8f2);border:1px solid #bdcddd;border-radius:8px;touch-action:none;cursor:grab}#crmModelPreview small{color:#536779}#crmModelPreview p{font-size:13px}
@media(max-width:650px){#crmModelPreview .model-layout{grid-template-columns:1fr}#crmModelPreview canvas{height:300px}}
}

/* Reserve a separate right-hand lane for quick navigation. */
@media screen {
 body.workplace-theme[data-theme="ios"] .app-shell{width:calc(100% - 104px);min-width:0;margin-right:104px}
 body.workplace-theme[data-theme="ios"] .screen{padding-bottom:32px}
 body.workplace-theme[data-theme="ios"] #iosDock{left:auto;right:10px;top:90px;bottom:auto;margin:0;transform:none;width:84px;max-height:calc(100dvh - 104px);overflow-y:auto;flex-direction:column;justify-content:flex-start;box-sizing:border-box;padding:6px;gap:4px}
 body.workplace-theme[data-theme="ios"] #iosDock button{flex:0 0 auto;width:100%;padding:10px 3px}
 body.workplace-theme[data-theme="ios"]:has(.modal-backdrop:not([hidden]),dialog[open]) #iosDock{visibility:hidden;pointer-events:none}
}

/* Keep quick navigation tucked against the edge until hovered or focused. */
@media screen {
 body.workplace-theme[data-theme="ios"] .app-shell{width:100%;margin-right:0}
 body.workplace-theme[data-theme="ios"] #iosDock{right:0;transform:translateX(calc(100% - 12px));transition:transform .18s ease;overflow:visible}
 body.workplace-theme[data-theme="ios"] #iosDock::before{content:"";position:absolute;left:2px;top:35%;height:30%;width:4px;border-radius:4px;background:#007aff;pointer-events:none}
 body.workplace-theme[data-theme="ios"] #iosDock:hover,body.workplace-theme[data-theme="ios"] #iosDock:has(button:focus-visible){transform:translateX(0)}
 body.workplace-theme[data-theme="ios"] #iosDock:hover::before,body.workplace-theme[data-theme="ios"] #iosDock:has(button:focus-visible)::before{opacity:0}
}
@media(prefers-reduced-motion:reduce){body.workplace-theme[data-theme="ios"] #iosDock{transition:none}}

@media screen {
 body.workplace-theme[data-theme="ios"] .client-overview-grid>section{background:#f6f9fd!important;border-color:#cbd7e5!important;color:#203247!important}
 body.workplace-theme[data-theme="ios"] .client-overview-grid :is(h3,p,b,span){color:#203247!important;opacity:1}
 body.workplace-theme[data-theme="ios"] .client-overview-grid :is(.profile-completeness span,.ai-profile-note){color:#465b70!important}
 body.workplace-theme[data-theme="ios"] .client-overview-grid .ai-profile-note{background:#edf2fa!important}
 body.workplace-theme[data-theme="ios"] .client-overview-grid :is(.good,.client-credit){color:#086342!important}
 body.workplace-theme[data-theme="ios"] .client-overview-grid .danger{color:#a62436!important}
}

/* Explicit dark surfaces keep readable text across interface themes. */
@media screen {
 body.workplace-theme :is(.order-master-fields>label,.client-finance-kpis>span,.ai-preview-summary>span,.ai-group-list>article,.gpt-chat-messages>article){background:#102235!important;color:#fff!important}
 body.workplace-theme :is(.order-master-fields>label,.client-finance-kpis>span,.ai-preview-summary>span,.ai-group-list>article,.gpt-chat-messages>article) :is(b,strong,small,p,span,h2,h3,label){color:#fff!important;opacity:1}
 body.workplace-theme .client-order-drawer{background:#102235!important;color:#fff!important}
 body.workplace-theme .client-order-editor>h2,body.workplace-theme .client-order-editor>label,body.workplace-theme .client-order-drawer>header{color:#fff!important}
 body.workplace-theme .client-order-editor>label :is(input,textarea,select),body.workplace-theme .ai-group-list :is(input,textarea,select){background:#fff!important;color:#182b3e!important;opacity:1}
 body.workplace-theme .ai-group-list article header{background:#102235!important;color:#fff!important}
 body.workplace-theme .ai-group-list th{background:#102235!important;color:#fff!important}
}

/* Global navigation remains usable above CRM cards without covering their header. */
@media screen {
 body.workplace-theme .window-bar{position:sticky!important;top:0!important;z-index:1300!important;isolation:isolate}
 body.workplace-theme .sidebar{z-index:1301!important;position:relative}
 body.workplace-theme .modal-backdrop{top:var(--crm-navigation-height,68px)!important;height:calc(100dvh - var(--crm-navigation-height,68px))!important}
 body.workplace-theme .workspace-search{display:flex!important;min-width:100px}
}

/* The sticky header is in normal flow; no spacer for the former fixed header. */
@media screen {body.workplace-theme .app-shell{padding-top:0!important;margin-top:0!important}}
