/* Internal-only color layer. Geometry, workflow, brand images and print are unchanged. */
@media screen {
body[data-workspace-design=precision][data-workspace-theme]{
  --theme-page:#f3f6fa;--theme-paper:#fff;--theme-soft:#edf3f9;--theme-hover:#e6eff8;--theme-input:#fff;
  --theme-ink:#243b53;--theme-heading:#173e65;--theme-muted:#52657a;--theme-line:#d5dfec;--theme-input-line:#9eafc3;
  --theme-link:#245b8e;--theme-primary:#173e65;--theme-primary-hover:#245b8e;--theme-focus:#397cbd;
  --theme-good:#28634c;--theme-good-bg:#e9f5ee;--theme-warn:#885014;--theme-warn-bg:#fff3df;
  --theme-error:#a12e43;--theme-error-bg:#fff0f2;--theme-info:#315b88;--theme-info-bg:#eaf2ff;
  --ink:var(--theme-ink);--muted:var(--theme-muted);--line:var(--theme-line);--blue:var(--theme-primary);--surface-soft:var(--theme-soft);
  --surface:var(--theme-paper);--bg:var(--theme-page);--border:var(--theme-line);
  color:var(--theme-ink);background:var(--theme-page);color-scheme:light;
}
body[data-workspace-design=precision][data-workspace-theme=dark]{
  --theme-page:#18232b;--theme-paper:#22313f;--theme-soft:#293b4c;--theme-hover:#30495e;--theme-input:#172532;
  --theme-ink:#e2ebf3;--theme-heading:#edf5ff;--theme-muted:#adc0d4;--theme-line:#425972;--theme-input-line:#7690ab;
  --theme-link:#9accff;--theme-primary:#285d91;--theme-primary-hover:#3474ad;--theme-focus:#95c9ff;
  --theme-good:#a0e3bf;--theme-good-bg:#203e35;--theme-warn:#ffd18a;--theme-warn-bg:#453623;
  --theme-error:#ffb3bd;--theme-error-bg:#472c38;--theme-info:#b7d4ff;--theme-info-bg:#253c58;color-scheme:dark;
}
body[data-workspace-design=precision][data-workspace-theme] .workspace-theme-button{width:36px;height:36px;min-width:36px;min-height:36px;padding:8px;flex:none}
body[data-workspace-design=precision][data-workspace-theme] .workspace-theme-button[aria-pressed=true]{background:#b1d9ff1c;border-color:#b1d9ff40}
body[data-workspace-design=precision][data-workspace-theme] .mainwrap{background:var(--theme-page)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog){color:var(--theme-ink);scrollbar-color:var(--theme-input-line) var(--theme-paper)}
body[data-workspace-design=precision][data-workspace-theme] dialog{background:var(--theme-paper);border-color:var(--theme-line)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(h1,h2,h3,h4,.record-title,.subject,.cs-title,.cs-owner strong,.record-owner strong,.record-amount>strong,.master-table strong,.wb-table a,.wb-metrics strong,.master-summary strong,.empty strong,.fin-empty strong){color:var(--theme-heading)}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.pagehead h1,.care-title h1,.care-now h2){color:var(--theme-heading)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(.muted,.subtitle,.eyebrow,.fieldhelp,.fieldlabel,.record-control>span,.record-total,.master-count,.resultcount,.subline,.customername,.record-subject,.record-owner>span,.record-owner>small,.record-date>small,.record-amount>small,.record-progress>small,.record-footnote,.record-result-bar>p,.record-footer>span,.footnote,.save-note,.boundary,.prose,.datalist dt,.timeline p,.timeline small,.summaryline span,.fin-footnote,.fin-table-note,.fin-empty-small,.fin-empty p,.fin-metric>span,.fin-metric small,.fin-history p,.fin-history small,.fin-check,.cs-meta,.cs-customer,.cs-owner,.cs-axis>small,.cs-axis>p,.cs-entry,.cs-additional>summary,.cs-footer,.cs-peek-status,.cs-peek-note,.cs-peek-details>summary,.cs-quote-facts dt,.care-hint,.care-completion p,.care-action-group>p,.care-option small,.personal-kind,.personal-row small,.personal-row p,.personal-detail-head p,.personal-share p,.personal-history small,.personal-welcome p,.personal-empty p,.classification-note,.save-context,.purchase-sheet-actions [data-sheet-saved]){color:var(--theme-muted)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(.surface,.surfacehead,.summary-head,.stat,.fin-metric,.cs-record,.typechoice,.choice,.status-row,.catalog-result,.care-option,.qd-party,.qd-items,.qd-total,.access-role,.permission-card,.settings-list-button,.cmail-folders,.cmail-message,.cmail-compose,.personal-list,.personal-detail,.purchase-sheet-actions){background:var(--theme-paper);border-color:var(--theme-line);color:var(--theme-ink)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(.surfacehead h2,.summary-head,.statlabel){color:var(--theme-heading)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(.dialoghead,.dialogfoot,.personal-list-heading,.personal-source,.personal-share,.care-meta,.care-now,.care-quote,.care-recommend,.care-inherit,.customer-summary,.equipment,.boundary,.fin-evidence,.fin-allocation-history>div,.fin-csv-help pre,.fin-saved-csv,.purchase-basic-group,.category-tools>summary,.settings-edit-context,.cs-source,.cs-additional .cs-axes,.cs-peek-summary,.cs-document,.qd-note,.input-suggestions){background:var(--theme-soft);background-image:none;border-color:var(--theme-line);color:var(--theme-ink)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(input,textarea,select){background:var(--theme-input);color:var(--theme-ink);border-color:var(--theme-input-line);accent-color:var(--theme-primary)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(input,textarea)::placeholder{color:var(--theme-muted);opacity:1}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(input,textarea,select):is(:disabled,[readonly]){background:var(--theme-soft);color:var(--theme-muted)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(input,textarea,select):focus{outline:2px solid var(--theme-focus);outline-offset:1px;border-color:var(--theme-focus)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(button,a,summary):focus-visible{outline:2px solid var(--theme-focus);outline-offset:3px}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) input::file-selector-button{background:var(--theme-paper);color:var(--theme-ink);border:1px solid var(--theme-input-line);border-radius:5px}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) .button{background:var(--theme-paper);color:var(--theme-link);border-color:var(--theme-line)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) .button:hover:enabled{background:var(--theme-hover);color:var(--theme-heading);border-color:var(--theme-input-line)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) .button.primary{background:var(--theme-primary);color:#fff;border-color:var(--theme-primary)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) .button.primary:hover:enabled{background:var(--theme-primary-hover);color:#fff;border-color:var(--theme-primary-hover)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) .button.ghost{background:transparent;border-color:transparent}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) .button.danger{color:var(--theme-error);border-color:var(--theme-error)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(table th,.worktable th,.record-table th,.ful-table th,.fin-table th,.access-table th,.settings-table th,.qstd-table th,.ibom-table th,.sales-grid th){background:var(--theme-soft);color:var(--theme-muted);border-color:var(--theme-line)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(table td,.status-cell,.cs-axis,.cs-current,.cs-additional,.cs-footer,.cs-source,.cs-quote-view td,.cs-quote-facts>div,.personal-row,.personal-detail-head,.personal-checks label,.personal-history,.personal-history>article,.record-footer,.footnote,.optional,.care-work,.care-meta,.fin-history>li,.fin-pager){border-color:var(--theme-line)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) tbody tr:hover{background:var(--theme-hover)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(.record-next,.cs-meta>a,.cs-current>a,.back,.back-link,.cs-document-section h4,.record-meta>a){color:var(--theme-link)}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.record-queues,.fin-tabs,.oh-tabs,.access-tabs,.acct-nav,.wb-lanes,.ful-filters,.personal-tools>nav,.mgmt-tabs,.org-tabs,.permissions-page>nav[aria-label],.cmail-folders){border-color:var(--theme-line)}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.record-queues,.fin-tabs,.oh-tabs,.access-tabs,.acct-nav,.wb-lanes,.ful-filters,.personal-tools>nav,.mgmt-tabs,.org-tabs,.permissions-page>nav[aria-label],.cmail-folders)>:is(a,button){color:var(--theme-muted)}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.record-queues,.fin-tabs,.oh-tabs,.access-tabs,.acct-nav,.wb-lanes,.ful-filters,.personal-tools>nav,.mgmt-tabs,.org-tabs,.permissions-page>nav[aria-label],.cmail-folders)>:is(.selected,.active,.primary,[aria-current=page],[aria-pressed=true]){background:var(--theme-soft);color:var(--theme-link);border-bottom-color:var(--theme-focus)}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.record-queues-primary>button,.filter,.fin-kind-row button,.record-density>button,.segmented button,.settings-module-tab){background:var(--theme-paper);color:var(--theme-muted);border-color:var(--theme-line)}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.record-queues-primary>button.selected,.record-density>button.selected,.filter.active,.fin-kind-row button.selected,.segmented button.active,.typechoice.active,.choice.active,.selected-path,.settings-module-tab.selected,.settings-list-button.selected,.settings-type-tabs button.selected,.qstd-model[aria-current=true],.qstd-tab[aria-selected=true],.ibom-tabs .button[aria-selected=true],.personal-row.selected){background:var(--theme-soft);color:var(--theme-link);border-color:var(--theme-focus);box-shadow:none}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.record-queue-count,.record-queues>button>span,.fin-tabs>button span){color:var(--theme-link);background:transparent}
body[data-workspace-design=precision][data-workspace-theme] #app #main .record-queue-label{color:inherit;background:transparent}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.record-density,.wb-metrics,.wb-metrics>div,.master-summary,.master-summary>div,.wb-scope,.wb-bottlenecks){border-color:var(--theme-line)}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.segmented,.sectionnumber,.master-form h3 b,.settings-step){background:var(--theme-soft);color:var(--theme-link)}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.care-overview,.ful-progress){background:var(--theme-paper);background-image:none;border-color:var(--theme-line);border-left-color:var(--theme-focus)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(.cs-current,.cs-peek-summary){background:var(--theme-soft);background-image:none;color:var(--theme-ink)}
body[data-workspace-design=precision][data-workspace-theme] #main .cs-status-trigger{background:transparent;color:var(--theme-ink);border:0}
body[data-workspace-design=precision][data-workspace-theme] #main .cs-document{background:var(--theme-soft);color:var(--theme-link);border-color:var(--theme-line)}
body[data-workspace-design=precision][data-workspace-theme] #main .cs-document:hover{background:var(--theme-hover)!important;border-color:var(--theme-input-line)!important}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(.cs-axis>strong,.cs-peek-panel h3){color:var(--theme-heading)}
/* Semantic state colors stay distinct; never invert images, attachments or charts. */
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(.badge.green,.cs-current.done,.fin-total:not(.error),.personal-private){background:var(--theme-good-bg);color:var(--theme-good)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(.cs-axis.done>strong,.cs-axis.done .cs-status-trigger,.fin-file-ready){color:var(--theme-good)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(.notice,.badge.orange){background:var(--theme-warn-bg);color:var(--theme-warn);border-color:var(--theme-warn)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(.notice.info,.badge.blue){background:var(--theme-info-bg);color:var(--theme-info);border-color:var(--theme-line)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(.notice.error,.badge.red,.fin-total.error){background:var(--theme-error-bg);color:var(--theme-error);border-color:var(--theme-error)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(.badge.gray,.cs-axis.restricted,.cs-current.cancelled,.cs-current.restricted){background:var(--theme-soft);color:var(--theme-muted)}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.cs-axis.restricted .cs-status-trigger,.cs-axis.restricted>strong){color:var(--theme-muted)}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.record-queues-primary>button.attention .record-queue-count,.wb-metrics .attention strong,.priority.high,.deadline.overdue,.fin-amount-due,.fin-metric.attention strong){color:var(--theme-warn)}
body[data-workspace-design=precision][data-workspace-theme] :is(#main,dialog) :is(.priority.urgent,.form-error,.dropdown-message.error,.dropdown-delete-action){color:var(--theme-error)}
/* Existing category panels use the same palette, without changing their layout. */
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.record-overview,.ol-record,.oh-cards>a,.cmail-folders,.cmail-compose,.cmail-reader,.settings-editor,.access-card,.master-card,.qstd-model,.ibom-surface,.wb-task,.wb-card){background:var(--theme-paper);border-color:var(--theme-line);color:var(--theme-ink)}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.record-overview-heading strong,.record-department-bar>strong,.record-dept-table td strong){color:var(--theme-heading)}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.record-overview-heading span,.record-dept-heading p,.record-dept-tools>span,.record-dept-table td small,.record-dept-pages,.record-dept-panel,.record-dept-table td,.wb-metrics span,.master-summary span){color:var(--theme-muted)}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.record-department-bar,.ol-conditions span,.ol-axis.restricted){background:var(--theme-soft);color:var(--theme-muted);border-color:var(--theme-line)}
body[data-workspace-design=precision][data-workspace-theme] #app #main .record-department-bar :is(a,button){background:var(--theme-paper);color:var(--theme-muted);border-color:var(--theme-line)}
body[data-workspace-design=precision][data-workspace-theme] #app #main .record-department-bar :is(a,button).selected{background:var(--theme-soft);color:var(--theme-link);border-color:var(--theme-focus)}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.record-dept-late,.oh-warning,.ol-axis.warning strong){color:var(--theme-warn)!important}
body[data-workspace-design=precision][data-workspace-theme] #app #main .record-dept-empty{color:var(--theme-muted)!important}
body[data-workspace-design=precision][data-workspace-theme] #app #main :is(.ol-axis:hover,.input-suggestions button:hover,.input-suggestions button[aria-selected=true]){background:var(--theme-hover)}
body[data-workspace-design=precision][data-workspace-theme] #app #main .ol-warnings{background:var(--theme-warn-bg);color:var(--theme-warn);border-color:var(--theme-line)}
body[data-workspace-design=precision][data-workspace-theme] #app #main .badge:not(.blue,.orange,.red,.green,.gray){background:var(--theme-soft);color:var(--theme-muted)}
body[data-workspace-design=precision][data-workspace-theme] #app #main .cs-document{background:var(--theme-soft);color:var(--theme-link);border-color:var(--theme-line)}
/* Keep the approved shared top/left Ocean Satin gradient. Darken only its satin submenu. */
body[data-workspace-design=precision][data-workspace-theme=dark] .layout.workspace-area-layout{--area-panel:#203b53;--area-ink:#e2ebf3;--area-muted:#b4cce4;--area-paper:#2b4b66;--area-hover:#9accff1c;--area-accent:#285d91}
body[data-workspace-design=precision][data-workspace-theme=dark] .workspace-area-layout .sidebar .nav-area-pane{background-color:#203b53;background-image:linear-gradient(120deg,transparent 10%,#a7d1ff0c 30%,transparent 61%),linear-gradient(155deg,#23425d 0%,#182f46 55%,#102438 100%);color-scheme:dark}
body[data-workspace-design=precision][data-workspace-theme=dark] .workspace-area-layout .nav-area-choice[aria-pressed=true]{background:#294b6b;color:#f4f8ff}
body[data-workspace-design=precision][data-workspace-theme=dark] .workspace-area-layout .nav-area-pane a:focus-visible{outline-color:#95c9ff}
}
@media screen and (max-width:480px){
body[data-workspace-design=precision][data-workspace-theme] .workspace-area-layout .topright{gap:4px}
body[data-workspace-design=precision][data-workspace-theme] .workspace-area-layout .notification-link span{display:none}
}
