/* All decorative bitmap requests are confined to the two marble modes. */
.background{background:var(--bg)}
html[data-theme="dark"] .background{background:radial-gradient(ellipse at 12% 12%,#b076352e,transparent 60%),linear-gradient(115deg,#11101655,#1b110a55),url('assets/marble_dark.jpg') center/cover}
html[data-theme="dark"] .glass{background:linear-gradient(137deg,#211c1be8,#161517ed);border-color:#b27b496b;box-shadow:0 18px 50px #0004,inset 0 1px #e8c49114}
.theme-picker{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}
.theme-picker select{max-width:150px;min-height:40px;padding:6px 10px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px}
.login-theme{align-self:center}.sidebar-theme{padding:8px 16px;border-top:1px solid var(--line)}
html[data-theme="light"],html[data-theme="lite"]{color-scheme:light;--bg:#f4f2ee;--panel:#fffefa;--panel2:#eee7df;--line:#c4b5a5;--orange:#a34f17;--orange2:#7c3810;--text:#262322;--muted:#645b53;--danger:#a12817}
html[data-theme="light"] .background{background:#e8e5df}
html[data-theme="light"] .background:before{content:'';position:absolute;inset:0;background:url('assets/marble_dark.jpg') center/cover;filter:invert(1) grayscale(1);opacity:.62}
html[data-theme="light"] .background:after{content:'';position:absolute;inset:0;background:linear-gradient(120deg,#fff7e54d,transparent 45%,#ffffff55)}
html:not([data-theme="dark"]) .glass,html:not([data-theme="dark"]) .kpi{background:#fffffff0;border-color:var(--line);box-shadow:0 8px 26px #4031220c}
html:not([data-theme="dark"]) :is(.sidebar,.topbar){background:#fffdf8f5;border-color:var(--line)}
html:not([data-theme="dark"]) :is(.account-panel,.wf-line,.wf-order,.wf-details,.wf-progress-row,.quantity-cell,.revision-box){background:#f2ece5;border-color:var(--line)}
html:not([data-theme="dark"]) :is(.nav-item,.breadcrumb,.breadcrumb strong,.data-table td,.entity-row,.detail-row span,.detail-row strong,.kpi-title,.quantity-cell span,.quantity-cell strong,.revision-box span,.revision-box strong,.wf-field,.wf-line-head b,.wf-details summary,.wf-shipment>strong,.wf-order-footer,.source-picker,.archive-summary>summary){color:var(--text)}
html:not([data-theme="dark"]) :is(.eyebrow,.nav-heading,.kpi-bottom,.login-note strong,.login-brand span,.status-text){color:#8b431a!important}
html:not([data-theme="dark"]) .nav-item:hover{background:#eee4da}
html:not([data-theme="dark"]) .nav-item[aria-current="page"]{background:#f2dfcb;color:#71320e;box-shadow:inset -3px 0 #a95420}
html:not([data-theme="dark"]) :is(.login-card input,.recovery-card input,.search-input,.scope-select,.wf-input){background:#fff;color:var(--text);border-color:#a59483}
html:not([data-theme="dark"]) :is(.refresh,.icon-button,.sidebar-bottom button,.pager button,.read-only-tag,.entity-chip,.release-badge){background:#f3e6d8;color:#71320e;border-color:#bd9978}
html:not([data-theme="dark"]) :is(.login-footer,.login-note span,.load-message,.app-footer){color:var(--muted)}
html:not([data-theme="dark"]) .data-table th{background:#ebddce;color:#603317}
html:not([data-theme="dark"]) .data-table tr:nth-child(even){background:#f4efe8}
html:not([data-theme="dark"]) :is(.help-note,.wf-warning,.wf-area){background:#fff0de;color:#613b1a;border-color:#b88b60}
html:not([data-theme="dark"]) :is(.wf-autonote,.wf-progress-state,.sync-pill,.wf-result){color:#216238}
html:not([data-theme="dark"]) .notice{color:#754321}
html[data-theme="lite"] *,html[data-theme="lite"] *:before,html[data-theme="lite"] *:after{animation:none!important;transition:none!important;box-shadow:none!important;backdrop-filter:none!important;filter:none!important;scroll-behavior:auto!important}
html[data-theme="lite"] .background{background:#f5f4f0!important}
html[data-theme="lite"] .background:before,html[data-theme="lite"] .background:after{display:none!important;background-image:none!important}
html[data-theme="lite"] :is(.glass,.kpi,.topbar,.sidebar){background:#fff!important}
html[data-theme="lite"] .primary{background:#ef9956}
html[data-theme="lite"] :is(.login-brand img,.sidebar-top img){display:none}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:400px){.theme-picker select{min-width:125px}.topbar{flex-wrap:wrap}.top-actions{margin-inline-start:auto}}

.nav-group>summary{cursor:pointer;padding:10px 0;list-style-position:inside}.nav-group[open]>summary{margin-bottom:4px}
