/* Muse presentation: one screen palette; account themes change accents only. TV and print retain their own styles. */
/* ERP 2026-11-11: shared control readability; preserve account themes and print layouts. */
@media screen {
  html:root:root body :is(button,input,select,textarea,a){-webkit-tap-highlight-color:transparent}
  html:root:root body :is(button,input,select,textarea,a,summary):focus-visible{
    outline:2px solid var(--erp44-brand,#a84977)!important;outline-offset:3px;
  }
  html:root:root body :is(.toolbar,.querybar,.filterbar,.s-filter,.cw-filters,.wf-tools){row-gap:10px;align-items:end}
  html:root:root body :is(.toolbar,.querybar,.filterbar,.s-filter,.cw-filters) :is(input,select,button){min-height:36px}
  html:root:root body :is(.toolbar,.querybar,.filterbar,.s-filter,.cw-filters) label{line-height:1.5}
  html:root:root body :is(input,textarea)::placeholder{color:#748094;opacity:1}
  html:root:root body :is(button:disabled,input:disabled,select:disabled,textarea:disabled){cursor:not-allowed;box-shadow:none!important}
  html:root:root body :is(#app,#content,dialog,.erp-drawer34) button:disabled{color:#6f7786!important;background:#eef0f5!important;border-color:#dce0e8!important;opacity:.8}
  html:root:root body :is(.table-wrap,.table-scroll,.cw-table-scroll,.erp-table-scroll34,.pa51-table-wrap){overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#a7adbc #eef0f5}
  html:root:root body :is(.table-wrap,.table-scroll,.cw-table-scroll,.erp-table-scroll34) th{line-height:1.5;font-weight:600}
  html:root:root body :is(.table-wrap,.table-scroll,.cw-table-scroll,.erp-table-scroll34) td{line-height:1.55}
  html:root:root body .erp-nav-icon{flex:0 0 19px;width:19px;height:19px;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  html:root:root body #wf-nav .wf-nav-item>button[data-wf-open]{min-height:39px;display:flex;align-items:center;gap:11px;line-height:1.5;text-align:left}
  html:root:root body #wf-nav .wf-nav-item>button[data-wf-open] .erp-nav-icon{margin:0;opacity:.85}
  html:root:root body #wf-nav .wf-nav-item>button.active .erp-nav-icon{opacity:1}
  html:root:root body #wf-nav .wf-group-alibaba>h2{color:#d6e6ff}
  html:root:root body #wf-tabs>span>button[aria-label^="关闭"]{min-width:28px;min-height:30px;display:grid;place-items:center;line-height:1}
  html:root:root body #wf-page-actions{gap:10px;flex-wrap:wrap}
  html:root:root body #wf-page-actions .wf-page-location{display:flex;align-items:center;gap:12px;min-width:0}
  html:root:root body #wf-back{white-space:nowrap;min-height:32px;padding:5px 11px;color:var(--erp44-brand)!important;border:1px solid var(--erp44-line)!important;background:var(--erp44-surface,#fff)!important;border-radius:7px}
  html:root:root body #wf-back:hover:not(:disabled){background:var(--erp44-soft)!important}
  html:root:root body #wf-nav [data-wf-open],html:root:root body .nav [data-view],html:root:root body .nav [data-s-view],html:root:root body .nav [data-act=nav]{scroll-margin-block:18px}
  html:root:root body :is(.form-error,.form-feedback,[role=alert]){overflow-wrap:anywhere}
  html:root:root body .a1688-page :is(.a1688-filter label,.a1688-scope,.a1688-boundary){line-height:1.5}
  html:root:root body .a1688-page .s-table th{background:#f1f5fa!important;color:#53667c!important}
  html:root:root body .a1688-page .s-table td small{color:#687b91}
  html:root:root body.live-embedded>.main>.topbar,
  html:root:root body.live-embedded #pagehead [data-act="favorite"]{display:none!important}
  html:root:root body #app #pa-root :is(.pa-period,.pa-sort) button[aria-pressed="true"]{background:var(--erp44-brand-strong,#943a61)!important;color:#fff!important;border-color:var(--erp44-brand-strong,#943a61)!important}
  html:root:root body #app #pa-root .pa-tabs button{background:transparent!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;color:var(--erp44-muted)!important;box-shadow:none!important}
  html:root:root body #app #pa-root .pa-tabs button[aria-selected="true"]{color:var(--erp44-brand-strong)!important;border-bottom-color:var(--erp44-brand)!important;font-weight:600}
  html:root:root body #wf-back{color:var(--erp44-brand-strong,#943a61)!important}
}
@media screen and (prefers-reduced-motion:reduce){
  html:root:root body :is(button,a,input,select,textarea){transition:none!important}
}

/* MUSE52 START — 2026-11-12. Presentation only; no status/permission/data transformations. */
@media screen {
 html:root:root:root {
  --theme45-hue:333;--muse-page:#F5F2EE;--muse-side:#FFFFFF;--muse-card:#FFFFFF;--muse-card-soft:#F5F2EE;
  --muse-ink:#33302E;--muse-muted:#746E69;--muse-line:#E6DFD8;--muse-field:#D5CCC4;
  --muse-brand:#C24B78;--muse-brand-deep:#A93C65;--muse-soft:#F9E8EF;
  --muse-ok:#2F8F66;--muse-ok-bg:#EAF5EF;--muse-warn:#D98A16;--muse-warn-bg:#FCF1DD;
  --muse-bad:#CF4444;--muse-bad-bg:#FBE9E9;--muse-info:#3E7CB1;--muse-info-bg:#EAF2F9;
  --erp44-bg:var(--muse-card-soft);--erp44-surface:var(--muse-card);--erp44-ink:var(--muse-ink);
  --erp44-muted:var(--muse-muted);--erp44-line:var(--muse-line);--erp44-brand:var(--muse-brand);
  --erp44-brand-strong:var(--muse-brand-deep);--erp44-soft:var(--muse-soft);--erp44-purple:var(--muse-brand-deep);
  --erp44-shadow:0 3px 16px #78552806;--erp46-field:var(--muse-field);--erp46-slate:var(--muse-ink);
  --erp46-nav-ink:var(--muse-muted);--erp-money:var(--muse-ink);--erp-qty:var(--muse-ink);
  --erp-success:var(--muse-ok);--erp-danger:var(--muse-bad);--erp-pending:var(--muse-warn);
  --erp46-danger:var(--muse-bad);--erp46-danger-soft:var(--muse-bad-bg);--erp46-danger-line:#EBCACA;
  --erp46-warning:var(--muse-warn);--erp46-warning-soft:var(--muse-warn-bg);--erp46-warning-line:#EDDCB8;
  --erp46-success:var(--muse-ok);--erp46-success-soft:var(--muse-ok-bg);--erp46-success-line:#CEE5D8;
  --erp-font-body:13px;--erp-font-table:13px;--erp-font-note:12px;--erp-primary:var(--muse-brand);
  --erp-ink:var(--muse-ink);--ink:var(--muse-ink);--erp-line:var(--muse-line);--line:var(--muse-line);
  --brand:var(--muse-brand);--erp-blue:var(--muse-info);--erp-soft:var(--muse-soft);--paper:var(--muse-page);
  --bg:var(--muse-card-soft);--text:var(--muse-ink);--muted:var(--muse-muted);--primary:var(--muse-brand);
 }
 html:root:root:root[data-erp-theme=blue]{--theme45-hue:207;--muse-brand:#2E70BB;--muse-brand-deep:#225B98;--muse-soft:#EAF2FC}
 html:root:root:root[data-erp-theme=green]{--theme45-hue:156;--muse-brand:#28785E;--muse-brand-deep:#1D5B46;--muse-soft:#EAF5EE}
 html:root:root:root[data-erp-theme=apricot]{--theme45-hue:27;--muse-brand:#A45D25;--muse-brand-deep:#81471A;--muse-soft:#FCF0E0}
 html:root:root:root body {background:var(--muse-card-soft);color:var(--muse-ink);font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-size:13px;line-height:1.5;-webkit-font-smoothing:antialiased}
 html:root:root:root body:has(>.wf-shell),html:root:root:root body:has(>#app>.wf-shell){padding:8px;background:var(--muse-page)}
 html:root:root:root body .wf-shell {height:calc(100dvh - 16px);grid-template-columns:196px minmax(0,1fr);border:1px solid var(--muse-line);border-radius:12px;background:#fff;box-shadow:0 8px 30px #78552812;overflow:hidden}
 html:root:root:root body .wf-shell>.wf-main{height:100%;width:auto;min-height:0;background:var(--muse-card-soft)}
 html:root:root:root body .wf-shell>.wf-sidebar{width:196px;min-width:196px;padding:12px 8px;background:var(--muse-side)!important;border:0;border-right:1px solid var(--muse-line);color:var(--muse-muted)}
 html:root:root:root body #wf-nav{scrollbar-gutter:auto;scrollbar-width:thin;scrollbar-color:#D4C5B3 transparent;padding:0 2px}
 html:root:root:root body #wf-nav section{margin:9px 0 13px;border:0;border-radius:0;background:transparent}
 html:root:root:root body #wf-nav h2{background:transparent;border:0;padding:0;margin:0;color:var(--muse-muted)}
 html:root:root:root body #wf-nav h2>button{padding:9px 10px 6px;min-height:30px;font-size:12px;font-weight:650;color:var(--muse-muted)!important;background:transparent;border:0}
 html:root:root:root body #wf-nav .wf-nav-item{margin:3px 0;border:0!important;border-radius:9px;background:transparent!important;box-shadow:none}
 html:root:root:root body #wf-nav .wf-nav-item>button[data-wf-open]{font-size:13px!important;line-height:1.5!important;min-height:36px;padding:8px 9px;color:var(--muse-muted)!important;gap:8px;font-weight:500!important;border:0;border-radius:9px;background:transparent!important}
 html:root:root:root body #wf-nav .wf-nav-item>button[data-wf-fav]{padding:4px;min-width:24px;color:var(--muse-muted);background:transparent}
 html:root:root:root body #wf-nav .wf-nav-item:hover{background:#FFF!important}
 html:root:root:root body #wf-nav .wf-nav-item:has(>button.active){background:var(--muse-soft)!important}
 html:root:root:root body #wf-nav .wf-nav-item>button.active{background:var(--muse-soft)!important;color:var(--muse-brand-deep)!important;font-weight:650!important;border:0!important}
 html:root:root:root body :is(.wf-sidebar,.side,.shell>aside) :is(.icon,svg){color:currentColor;opacity:.85}
 html:root:root:root body #wf-home-button{margin:0 0 9px;width:100%;min-height:36px;text-align:left;padding:8px 12px;border:0!important;background:transparent!important;color:var(--muse-ink)!important;border-radius:9px;font-size:14px}
 html:root:root:root body #wf-home-button.active{background:var(--muse-soft)!important;color:var(--muse-brand-deep)!important;font-weight:650}
 html:root:root:root body .wf-shell>header.wf-header{display:grid;grid-template-columns:180px minmax(190px,1fr) minmax(180px,240px) 50px 148px;grid-template-rows:48px 28px;padding:7px 16px 5px;gap:4px 16px;background:#FFF!important;border-bottom:1px solid var(--muse-line);box-shadow:none;min-height:0}
 html:root:root:root body .wf-shell>header.wf-header>strong.hb44-brand{grid-column:1;grid-row:1;min-height:0}
 html:root:root:root body .wf-header .hb44-identity{gap:4px}
 html:root:root:root body .wf-header .hb44-name{font-size:21px;letter-spacing:.5px;color:var(--muse-brand-deep);line-height:1.2}
 html:root:root:root body .wf-header .hb44-name::after{display:none}
 html:root:root:root body .wf-header .hb44-signature{font-size:11px;color:var(--muse-muted);line-height:15px;min-height:0}
 html:root:root:root body .wf-header>.hb44-status-panel{grid-column:2;grid-row:1;padding:0 0 0 14px;border-left:1px solid var(--muse-line);min-width:0;--hb44-ink:var(--muse-ink);--hb44-accent:var(--muse-muted);--hb44-muted:var(--muse-muted)}
 html:root:root:root body .wf-header .hb44-copy{display:flex;flex-direction:column;gap:1px;align-items:flex-start}
 html:root:root:root body .wf-header .hb44-kicker{font-size:11px;line-height:14px;letter-spacing:0;color:var(--muse-muted)}
 html:root:root:root body .wf-header .hb44-headline{line-height:20px;gap:5px;flex-wrap:nowrap;max-width:100%}
 html:root:root:root body .wf-header .hb44-title{font-size:14px;line-height:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html:root:root:root body .wf-header .hb44-status-icon{font-size:17px;width:20px;flex-basis:20px;line-height:21px}
 html:root:root:root body .wf-header .hb44-phase{font-size:10px;line-height:15px;padding:0 5px;background:var(--muse-card-soft);border-color:var(--muse-line);color:var(--muse-muted)}
 html:root:root:root body .wf-header .hb44-quote{font-size:11px;line-height:15px;padding:0;border:0;color:var(--muse-muted);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
 html:root:root:root body .wf-header .wp44-quicksearch{grid-column:3;grid-row:1;width:100%;min-width:0;margin:0}
 html:root:root:root body .wf-shell>header.wf-header .wp44-quicksearch #wf-search{min-height:34px;height:34px;border:1px solid var(--muse-line);background:var(--muse-card-soft)!important;font-size:13px;border-radius:9px;color:var(--muse-ink);padding-block:6px}
 html:root:root:root body .wf-header .wp44-quicksearch :is(svg,kbd){color:var(--muse-muted);stroke:currentColor}
 html:root:root:root body .wf-shell>header.wf-header #wf-module-tabs{grid-column:4;grid-row:1;min-width:0;width:auto;gap:0;margin:0}
 html:root:root:root body #wf-module-tabs button{display:none!important}
 html:root:root:root body .wf-shell>header.wf-header #wf-module-tabs a.wf-website-link{padding:6px;color:var(--muse-muted)!important;font-size:12px}
 html:root:root:root body .wf-header .wp44-account{grid-column:5;grid-row:1;max-width:148px}
 html:root:root:root body .wf-shell>header.wf-header #wp44-account-button{background:transparent;border:1px solid var(--muse-line);border-radius:10px;padding:5px 7px;max-width:148px;color:var(--muse-ink)!important}
 html:root:root:root body .wf-header .wp44-account-copy strong{font-size:12px;max-width:82px;color:var(--muse-ink)}
 html:root:root:root body .wf-header .wp44-account-copy small{font-size:11px;color:var(--muse-muted)}
 html:root:root:root body .wf-header .wp44-account img{width:30px;height:30px;border-color:var(--muse-line)}
 html:root:root:root body .wf-header .wp44-ticker,html:root:root:root body .wf-header .wp44-ticker:hover{grid-column:1/-1;grid-row:2;min-height:30px;padding:0 10px;border:0;background:var(--muse-card-soft)!important;border-radius:7px;color:var(--muse-ink)}
 html:root:root:root body .wf-header .wp44-ticker::before{font-size:11px;color:var(--muse-muted);border-color:var(--muse-line)}
 html:root:root:root body .wf-header .wp44-ticker-window{line-height:28px;padding:0}
 html:root:root:root body .wf-header .wp44-ticker-item{font-size:12px;line-height:28px;gap:7px}
 html:root:root:root body .wf-header .wp44-ticker-item>strong{color:var(--muse-muted)}
 html:root:root:root body .wf-header .wp44-notice-text{color:var(--muse-ink)}
 html:root:root:root body .wf-tab-row{background:#FFF;border-bottom:1px solid var(--muse-line);min-height:38px;padding:3px 12px;gap:10px}
 html:root:root:root body .wf-tabs{background:#FFF;padding:0;min-height:34px;gap:4px}
 html:root:root:root body .wf-tabs>span{border:1px solid transparent;border-radius:8px;background:transparent;box-shadow:none;margin:0}
 html:root:root:root body .wf-tabs>span.active{border:1px solid var(--muse-line)!important;background:var(--muse-soft)!important;box-shadow:none}
 html:root:root:root body .wf-tabs button{font-size:12px;padding:6px 8px;min-height:32px;color:var(--muse-muted);background:transparent!important;border:0!important}
 html:root:root:root body .wf-tabs>span.active button{color:var(--muse-brand-deep)!important;font-weight:650}
 html:root:root:root body #wf-tabs>span>button[aria-label^="关闭"]{min-height:28px;min-width:24px;padding:4px;color:var(--muse-muted)!important}
 html:root:root:root body #wf-more-tabs{min-height:32px;max-width:160px;font-size:12px}
 html:root:root:root body #wf-page-actions{padding:5px 16px;background:var(--muse-card-soft);border:0;font-size:12px;min-height:36px}
 html:root:root:root body #wf-page-actions button{min-height:28px;padding:4px 9px;font-size:12px;background:#FFF;color:var(--muse-muted)}
 html:root:root:root body #wt-strip{min-height:32px;background:var(--muse-card-soft);border:1px solid var(--muse-line);border-radius:8px}
 html:root:root:root body #wt-strip .wt-strip-item{font-size:12px;color:var(--muse-muted)}
 html:root:root:root body .wf-main iframe{background:var(--muse-card-soft)}
 html:root:root:root body :is(.workspace,.s-workspace,.cw-workspace){color:var(--muse-ink)}
 html:root:root:root.wf-embedded body .workspace,html:root:root:root body.live-embedded .workspace{padding:14px 16px 24px;background:var(--muse-card-soft)}
 html:root:root:root body :is(.heading,.s-heading,.cw-heading,.pagehead){margin-bottom:12px;gap:10px}
 html:root:root:root body :is(.heading,.s-heading,.cw-heading,.pagehead) h1{font-size:20px;line-height:1.4;font-weight:700;color:var(--muse-ink);letter-spacing:0;margin:0 0 4px}
 html:root:root:root body :is(.heading,.s-heading,.cw-heading,.pagehead) p{font-size:13px;color:var(--muse-muted);margin:4px 0}
 html:root:root:root body :is(.card,.s-panel,.panel,.cw-panel,.wf-service,.metric,.s-stat,.pa-metrics article){background:#FFF;border:1px solid var(--muse-line);border-radius:14px;box-shadow:none;color:var(--muse-ink)}
 html:root:root:root body :is(.card,.s-panel,.panel,.cw-panel,.wf-service){padding:12px}
 html:root:root:root body :is(.card,.s-panel,.panel,.cw-panel,.wf-service) h2{font-size:15px;color:var(--muse-ink);font-weight:650}
 html:root:root:root body :is(.card,.s-panel,.panel,.cw-panel,.wf-service) h3{font-size:14px;color:var(--muse-ink);font-weight:650}
 html:root:root:root body :is(button,.shell button,dialog button){font-size:13px;min-height:30px;padding:5px 10px;line-height:1.4;border-radius:7px;border-color:var(--muse-field);color:var(--muse-muted);background:#FFF;box-shadow:none;font-weight:550}
 html:root:root:root body button[data-erp-tone]{--erp-action34:var(--muse-brand-deep);--erp-action-soft34:var(--muse-soft);--erp-action-line34:var(--muse-line)}
 html:root:root:root body :is(button,.shell button,dialog button):hover:not(:disabled){background:var(--muse-card-soft);border-color:var(--muse-brand);color:var(--muse-brand-deep);box-shadow:none}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button:is(.primary,[type=submit],[data-erp-tone=primary]),html:root:root:root body :is(button.primary,input[type=submit],a.primary){background:var(--muse-brand)!important;color:#FFF!important;border-color:var(--muse-brand)!important;box-shadow:none}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button:is(.primary,[type=submit],[data-erp-tone=primary]):hover:not(:disabled){background:var(--muse-brand-deep)!important;border-color:var(--muse-brand-deep)!important;color:#FFF!important}
 html:root:root:root body button:is(.danger,[data-erp-tone=danger]){color:var(--muse-bad)!important;background:#FFF!important;border-color:#E9BFB9!important}
 html:root:root:root body button:is(.danger,[data-erp-tone=danger]):hover:not(:disabled){background:var(--muse-bad-bg)!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button:disabled{background:#F3F0EC!important;color:#80766D!important;border-color:#E4DCD1!important;opacity:.8;cursor:not-allowed;box-shadow:none!important}
 html:root:root:root body :is(input,select,textarea){font-size:13px;color:var(--muse-ink);background:#FFF;border-color:var(--muse-field);border-radius:9px;accent-color:var(--muse-brand);line-height:1.5}
 html:root:root:root body :is(input:not([type=checkbox]):not([type=radio]),select){min-height:32px;padding:5px 9px}
 html:root:root:root body :is(input,textarea)::placeholder{color:#887C70;opacity:1}
 html:root:root:root body :is(input,select,textarea):focus{border-color:var(--muse-brand);box-shadow:0 0 0 3px var(--muse-soft)}
 html:root:root:root body :is(label,.s-formgrid label,.field>span){font-size:13px;font-weight:550;color:var(--muse-muted)}
 html:root:root:root body :is(table,.s-table,th,td){font-size:13px;font-variant-numeric:tabular-nums}
 html:root:root:root body :is(th,.shell th,.workspace th,.a1688-page .s-table th){background:var(--muse-card-soft)!important;color:var(--muse-muted)!important;border-color:var(--muse-line);font-weight:600;line-height:20px;padding:7px 10px}
 html:root:root:root body :is(td,.s-table td,.workspace td){padding:6px 10px;border-color:var(--muse-line);color:var(--muse-ink);line-height:21px}
 html:root:root:root body tbody tr:nth-child(even)>td{background-color:#FCFBF9}
 html:root:root:root body tbody tr:hover>td{background-color:#F7F4F0}
 html:root:root:root body :is(.table-wrap,.table-scroll,.cw-table-scroll,.erp-table-scroll34,.pa51-table-wrap){border-color:var(--muse-line);border-radius:10px;scrollbar-width:thin;scrollbar-color:#CDBDA9 #F8F3EA}
 html:root:root:root body :is(.money,.amount,.price-value,.num,.quantity,.metric strong,.s-stat strong,.pa-metrics strong){color:var(--muse-ink);font-variant-numeric:tabular-nums}
 html:root:root:root body :is(.sub,.secondary,.muted,.s-hint,.cw-sub,.cw-footnote,.subtle,.footer-note,td small){color:var(--muse-muted);font-size:12px}
 html:root:root:root body :is(.toolbar,.querybar,.filterbar,.s-filter,.cw-filters,.wf-tools,.ca-filter){background:var(--muse-card-soft);border-color:var(--muse-line);border-radius:10px;gap:8px;padding:10px}
 html:root:root:root body :is(.tag,.badge,.s-badge,.status){font-size:12px;border-radius:6px}
 html:root:root:root body :is(.badge.green,.s-badge.green,.status.success,.tag.success){background:var(--muse-ok-bg);color:var(--muse-ok);border-color:#CEE5D8}
 html:root:root:root body :is(.badge.red,.s-badge.red,.status.error,.tag.danger){background:var(--muse-bad-bg);color:var(--muse-bad);border-color:#F0CCC7}
 html:root:root:root body :is(.badge.yellow,.s-badge.orange,.status.warning){background:var(--muse-warn-bg);color:var(--muse-warn);border-color:#EFDCB6}
 html:root:root:root body :is(.wf-normal,.wf-vip){background:var(--muse-soft);color:var(--muse-brand-deep);border:1px solid var(--muse-line);font-size:12px}
 html:root:root:root body :is(.pa-metrics article,.metric,.s-stat){border-top:1px solid var(--muse-line);padding:12px 14px}
 html:root:root:root body .pa-metrics strong{font-size:24px}
 html:root:root:root body #app #pa-root :is(.pa-period,.pa-sort){background:var(--muse-card-soft)}
 html:root:root:root body #app #pa-root :is(.pa-period,.pa-sort) button[aria-pressed=true]{background:var(--muse-brand)!important;border-color:var(--muse-brand)!important;color:#FFF!important}
 html:root:root:root body #app #pa-root .pa-tabs button[aria-selected=true]{background:transparent!important;color:var(--muse-brand-deep)!important;border-bottom-color:var(--muse-brand)!important}
 html:root:root:root body :is(dialog:not(#output),.wp44-drawer,.wp44-dialog,.wp44-dialog-head,.wp44-dialog-footer){background:#FFF;color:var(--muse-ink);border-color:var(--muse-line)}
 html:root:root:root body :is(.erp-drawer-head34,.erp-drawer-scroll34){background:#FFF!important;border-color:var(--muse-line)!important;color:var(--muse-ink)}
 html:root:root:root body :is(.erp-drawer-foot34,.dialog-foot){background:var(--muse-card-soft)!important;border-color:var(--muse-line)!important}
 html:root:root:root body :is(.editor-section,.kit-section4,.dispatch-panel29,.quick-party,.dialog .form-ledger,.dialog .wage-hint>div,.dialog .drop,.cs38-history article,.s-section,.cw-info>section){background:var(--muse-card-soft);color:var(--muse-ink);border-color:var(--muse-line)}
 html:root:root:root body dialog:not(#output)::backdrop{background:#35291F55}
 html:root:root:root body :is(#notice,.toast){background:var(--muse-ink);color:#FFF;border-radius:10px;box-shadow:0 5px 18px #35291F20}
 html:root:root:root body :is(.shell>aside,.side){background:var(--muse-side)!important;color:var(--muse-muted);border-color:var(--muse-line)}
 html:root:root:root body :is(.shell>aside,.side) .nav :is(button,a){color:var(--muse-muted)!important;background:transparent}
 html:root:root:root body :is(.shell>aside,.side) .nav :is(button.active,a.active){background:var(--muse-soft)!important;color:var(--muse-brand-deep)!important;border-color:var(--muse-line)!important}
 html:root:root:root body :is(.brand,.nav-label,.aside-bottom,.side-bottom){color:var(--muse-muted)}
 html:root:root:root body .brand :is(.brandmark,.brand-logo){display:none}
 html:root:root:root body :is(.wf-tv-entry,.wf-tv-actions){box-shadow:none}
}
@media screen and (max-width:1100px){
 html:root:root:root body .wf-shell{grid-template-columns:178px minmax(0,1fr)}
 html:root:root:root body .wf-shell>.wf-sidebar{width:178px;min-width:178px}
 html:root:root:root body .wf-shell>header.wf-header{grid-template-columns:155px minmax(150px,1fr) 180px 38px 138px;column-gap:10px;padding-inline:12px}
 html:root:root:root body .wf-header .hb44-name{font-size:21px}
 html:root:root:root body .wf-header .hb44-phase{display:none}
 html:root:root:root.wf-embedded body .workspace,html:root:root:root body.live-embedded .workspace{padding:16px}
}
@media screen and (max-width:800px){
 html:root:root:root body:has(>#app>.wf-shell){padding:0}
 html:root:root:root body .wf-shell{height:100dvh;border-radius:0;grid-template-columns:158px minmax(0,1fr)}
 html:root:root:root body .wf-shell>.wf-sidebar{width:158px;min-width:158px;padding-inline:5px}
 html:root:root:root body .wf-shell>header.wf-header{grid-template-columns:155px minmax(110px,1fr) 138px;grid-template-rows:48px 32px 30px;gap:5px 10px}
 html:root:root:root body .wf-header .wp44-account{grid-column:3;grid-row:1}
 html:root:root:root body .wf-header>.hb44-status-panel{grid-column:2;grid-row:1;padding-left:9px}
 html:root:root:root body .wf-header .hb44-quote{display:none}
 html:root:root:root body .wf-header .wp44-quicksearch{grid-column:1/3;grid-row:2;width:100%}
 html:root:root:root body .wf-shell>header.wf-header #wf-module-tabs{grid-column:3;grid-row:2}
 html:root:root:root body .wf-header .wp44-ticker,html:root:root:root body .wf-header .wp44-ticker:hover{grid-row:3}
 html:root:root:root body #wf-nav .wf-nav-item>button[data-wf-open]{font-size:12px!important;padding:8px 5px;gap:5px}
 html:root:root:root body .wf-tab-row{flex-wrap:wrap;padding-inline:7px}
 html:root:root:root body #wt-strip{max-width:100%}
}
/* MUSE52 END */

@media screen {
 html:root:root:root body #wf-page-actions button{background:#FFF!important;color:var(--muse-muted)!important}
 html:root:root:root body .wf-header .hb44-copy span{margin-left:0}
 html:root:root:root body #app #pa-root .pa-filter{padding:10px 12px;margin:10px 0}
 html:root:root:root body #app #pa-root .pa-filter-fields{margin-top:10px}
 html:root:root:root body #app #pa-root .pa-metrics{gap:10px;margin:10px 0}
 html:root:root:root body #app #pa-root .pa-metrics article{padding:11px 12px}
 html:root:root:root body #app #pa-root .pa-metrics strong{font-size:24px;margin:5px 0}
 html:root:root:root body #app #pa-root .pa-panel{padding:12px;margin-top:10px}
 html:root:root:root body #app #pa-root .pa-panel-heading{gap:10px}
}
@media screen and (min-width:850px){
 html:root:root:root body #app #pa-root .pa-filter-fields{grid-template-columns:minmax(160px,1.6fr) minmax(120px,1fr) minmax(130px,1fr) minmax(130px,1fr) auto auto;gap:10px}
 html:root:root:root body #app #pa-root .pa-filter-fields>*{grid-column:auto;grid-row:auto;min-width:0}
 html:root:root:root body #app #pa-root .pa-filter-fields>button{min-width:60px;min-height:35px}
}

@media screen {
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button:is(.danger,[data-erp-tone=danger]):not(:disabled){color:var(--muse-bad)!important;background:#FFF!important;border-color:#E9BFB9!important;box-shadow:none!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button:is(.danger,[data-erp-tone=danger]):hover:not(:disabled){color:var(--muse-bad)!important;background:var(--muse-bad-bg)!important;border-color:var(--muse-bad)!important}
 html:root:root:root body #app :is(.cw-metrics,.cd-metrics)>button{background:#FFF!important;color:var(--muse-ink)!important;border:1px solid var(--muse-line)!important;border-radius:13px;box-shadow:none!important;text-align:left}
 html:root:root:root body #app :is(.cw-metrics,.cd-metrics)>button:hover{background:var(--muse-card-soft)!important;border-color:var(--muse-brand)!important}
 html:root:root:root body #app :is(.cw-metrics,.cd-metrics)>button :is(strong,[data-erp-number34]){color:var(--muse-ink)!important}
}

/* Business surfaces: compact type and fixed status semantics across personal themes. */
@media screen {
 html:root:root:root body :is(h1,h2,h3,h4){color:var(--muse-ink);font-family:inherit}
 html:root:root:root body :is(dialog,.wp44-dialog,.erp-drawer34) :is(h1,h2,h3){color:var(--muse-ink)!important}
 html:root:root:root body h1{font-size:20px} html:root:root:root body h2{font-size:16px} html:root:root:root body h3{font-size:14px}
 html:root:root:root body :is(.workspace,.sales-shell,dialog,.wp44-drawer) :is(label,.field,.field>span){font-size:12px;line-height:18px;font-weight:500;color:var(--muse-muted)}
 html:root:root:root body :is(.toolbar,.querybar,.filterbar,.s-filter,.cw-filters) :is(input:not([type=checkbox]):not([type=radio]),select,button){min-height:34px}
 html:root:root:root body :is(.table-wrap,.s-table,.erp-table-scroll34,dialog) :is(th,td,input,select,button,.link){font-size:13px}
 html:root:root:root body :is(.table-wrap,.s-table,.erp-table-scroll34) :is(th,td){padding:6px 10px;line-height:21px}
 html:root:root:root body :is(.table-wrap,.s-table,.erp-table-scroll34) td button{min-height:26px;padding:3px 8px;margin-block:0}
 html:root:root:root body :is(.table-wrap,.s-table,.erp-table-scroll34) td>button+button{margin-inline-start:4px}
 html:root:root:root body :is(small,.sub,.secondary,.muted,.hint,.s-hint,.cw-sub,.cw-footnote,.metric-note,.metric-label,.pagination,.footer-note,.a1688-time small){font-size:12px;line-height:18px;color:var(--muse-muted)}
 html:root:root:root body :is(.money,.num,.amount,.quantity,[data-erp-value]){font-variant-numeric:tabular-nums}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button[data-erp-tone]:not([data-erp-button-role]):not(.primary):not([type=submit]):not([data-erp-tone=primary]):not([data-erp-tone=view]):not(.link):not([data-erp-tone=danger]):not(.danger):not(.active):not(.selected):not([aria-selected=true]):not([aria-pressed=true]):not(:disabled){background:#FFF!important;color:var(--muse-ink)!important;border-color:var(--muse-line)!important;box-shadow:none!important;filter:none}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button:is(.link,[data-erp-tone=view]):not([data-erp-button-role]):not(.primary):not([type=submit]):not(:disabled),html:root:root:root body a:not(.primary):not(.home-entry):not(.wf-tv-play){color:var(--muse-muted)!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button[data-erp-tone=view]:not([data-erp-button-role]):not(.primary):not([type=submit]):not(:disabled){background:transparent!important;border-color:transparent!important;box-shadow:none!important;text-decoration:none}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button.link:not([data-erp-button-role]):not(.primary):not(:disabled){background:transparent!important;border-color:transparent!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button[data-erp-tone]:not([data-erp-button-role]):not(.primary):not([type=submit]):not([data-erp-tone=primary]):not([data-erp-tone=view]):not(.link):not([data-erp-tone=danger]):not(.danger):not(:disabled):hover{background:var(--muse-card-soft)!important;border-color:var(--muse-field)!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button:is(.active,.selected,[aria-selected=true],[aria-pressed=true]):not(.danger):not([data-erp-tone=danger]):not(:disabled){background:var(--muse-soft)!important;color:var(--muse-brand-deep)!important;border-color:var(--muse-brand)!important;box-shadow:none}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button:is(.danger,[data-erp-tone=danger]):not(:disabled){background:#FFF!important;color:var(--muse-bad)!important;border-color:#EBCACA!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button:is(.danger,[data-erp-tone=danger]):not(:disabled):hover{background:var(--muse-bad-bg)!important}
 html:root:root:root body :is(.tag,.badge,.s-badge,.status):not(.green):not(.red):not(.orange):not(.success):not(.error):not(.warning):not(.danger):not([data-erp-status]){background:var(--muse-info-bg);color:var(--muse-info);border-color:#D4E3EF;font-size:11px;line-height:18px}
 html:root:root:root body :is(.tag.green,.badge.green,.note.green,[data-erp-status=success]){color:var(--muse-ok)!important;background:var(--muse-ok-bg)!important;border-color:#CEE5D8!important}
 html:root:root:root body :is(.tag.red,.badge.red,[data-erp-status=danger],.form-error,.s-error:not(:empty),.wp44-error,.toast.error){color:var(--muse-bad)!important;background:var(--muse-bad-bg)!important;border-color:#EBCACA!important}
 html:root:root:root body :is(.tag.orange,.badge.yellow,.s-badge.orange,.note.orange,.warning,.wp44-warning,[data-erp-status=pending],[data-erp-status=warning]){color:#9D6109!important;background:var(--muse-warn-bg)!important;border-color:#EDDCB8!important}
 html:root:root:root body :is(.tag.orange,.badge.yellow,.s-badge.orange,.note.orange,.warning,.wp44-warning,[data-erp-status=pending],[data-erp-status=warning]) :is(svg,.icon){color:var(--muse-warn)}
 html:root:root:root body .balance-due{color:var(--muse-warn)!important}
 html:root:root:root body :is(.wf-normal,.wf-vip){font-size:11px;min-height:20px;padding:1px 7px;background:var(--muse-card-soft);color:var(--muse-muted)}
 html:root:root:root body :is(.dash-panel,.dash-ring>div,.info-cell,.form-ledger,.wp44-dialog,.wp44-dialog-head,.wp44-dialog-footer,.wp44-announcement,#wp44-compose){background:#FFF;color:var(--muse-ink);border-color:var(--muse-line)}
 html:root:root:root body #app :is(.dash-metrics,.cw-metrics,.cd-metrics)>button{background:#FFF!important;color:var(--muse-ink)!important;border:1px solid var(--muse-line)!important;text-align:left;box-shadow:none!important}
 html:root:root:root body #app :is(.dash-metrics,.cw-metrics,.cd-metrics)>button :is(span,strong,b,[data-erp-value]){color:var(--muse-ink)!important}
 html:root:root:root body #app :is(.dash-metrics,.cw-metrics,.cd-metrics)>button small{color:var(--muse-muted)!important}
 html:root:root:root body #app :is(.dash-metrics,.cw-metrics,.cd-metrics)>button:hover{border-color:var(--muse-brand)!important}
 html:root:root:root body .erp-small-icon{color:inherit;opacity:.8}
 html:root:root:root body #wf-nav .wf-nav-item>button[data-wf-open]{min-height:32px;padding:5px 8px}
 html:root:root:root body .wf-header #wp44-account-menu{background:#FFF;color:var(--muse-ink);border:1px solid var(--muse-line)}
 html:root:root:root body .wf-header #wp44-account-menu button{color:var(--muse-ink);background:transparent}
 html:root:root:root body .wf-header #wp44-account-menu .wp44-menu-logout{color:var(--muse-bad)!important}
 html:root:root:root body :is(.wp44-dialog label small,.wp45-theme-option small,.wp44-dialog-footer>span){font-size:12px!important;color:var(--muse-muted)}
 html:root:root:root body :is(.shipment-action-bar,.order-selection-bar,.purchase-selection-bar,.account-selection-bar,.card-selection-bar){background:#46413E!important;border-color:#46413E;color:#FFF}
 html:root:root:root body :is(.shipment-action-bar>strong,.order-selection-bar>strong,.order-selection-bar summary,.purchase-selection-bar #selection-summary,.account-selection-bar #ca-selection,.card-selection-bar>strong) :is(span,b,strong,[data-erp-value]){color:#FFF!important}
 html:root:root:root [data-theme-sample=berry]{--sample-primary:#C24B78;--sample-secondary:#DDA0B6;--sample-soft:#F9E8EF}
 html:root:root:root [data-theme-sample=blue]{--sample-primary:#2E70BB;--sample-secondary:#A7C3DE;--sample-soft:#EAF2FC}
}

@media screen {
 html:root:root:root body :is(.info,.hint,.note,.connection-card):not(.red):not(.orange):not(.green):not(.warning):not(.error):not([data-erp-status]){color:var(--muse-muted);background:var(--muse-info-bg);border-color:#D4E3EF}
 html:root:root:root body :is(.erp-drawer-head34,.dialog-head,.wp44-dialog-head){padding:12px 16px}
 html:root:root:root body :is(.erp-drawer-head34,.dialog-head,.wp44-dialog-head) h2{font-size:16px}
}

/* MUSE54: a compact home canvas; retain native page scrolling and all controls. */
@media screen {
 html:root:root:root body #wf-home{padding:12px 16px 20px}
 html:root:root:root body #wf-home .ehd-todo-mark :is(span,b,strong){font:inherit!important;color:inherit!important}
}
/* MUSE V2: primary actions, ordinary viewing and status colors have separate roles. */
@media screen {
 html:root:root:root body :is(.table-wrap,.s-table,.erp-table-scroll34) input[type=checkbox]{width:16px!important;min-width:16px!important;max-width:16px!important;height:16px!important;min-height:16px!important;padding:0!important;flex:0 0 16px}
 html:root:root:root body #app #wf-home :is(.ehd-text-link,.ehd-metric-link,.ehd-action.secondary){color:#32658F!important;background:transparent!important;border-color:transparent!important}
 html:root:root:root body #app #wf-home .ehd-action.primary{color:#fff!important;background:var(--muse-brand)!important;border-color:var(--muse-brand)!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button:is(.primary,[type=submit],[data-erp-tone=primary]):not(:disabled){font-size:14px;font-weight:650}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button:is(.link,[data-erp-tone=view]):not([data-erp-button-role]):not(.primary):not([type=submit]):not(:disabled):hover{color:var(--muse-ink)!important;background:transparent!important;border-color:transparent!important;text-decoration:underline;text-underline-offset:3px}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button:is(.link,[data-erp-tone=view]):not([data-erp-button-role]):not(.primary):not([type=submit]):focus-visible{outline:2px solid var(--muse-brand)!important;outline-offset:2px}
 html:root:root:root body :is(.toolbar,.querybar,.filterbar,.s-filter,.cw-filters,.pa-filter-fields) label{font-size:12px;line-height:18px;font-weight:500}
 html:root:root:root body :is(.table-wrap,.table-scroll,.cw-table-scroll,.erp-table-scroll34){max-width:100%;min-width:0}
 html:root:root:root body :is(.workspace,.s-workspace,.cw-workspace,.wf-main){min-width:0}
 html:root:root:root body :is(td,th) :is(.num,.amount,.money,.quantity){font-variant-numeric:tabular-nums}
}
/* SEMANTIC BUTTONS57: presentation roles only; keep existing controls and event handlers. */
@media screen {
 html:root:root:root body button[data-erp-button-role]{--button57-ink:var(--muse-muted);--button57-bg:#FFF;--button57-hover:var(--muse-card-soft);--button57-line:var(--muse-field);--button57-focus:var(--muse-muted);--button57-hover-ink:var(--button57-ink)}
 html:root:root:root body button[data-erp-button-role=brand]{--button57-ink:#FFF;--button57-bg:var(--muse-brand);--button57-hover:var(--muse-brand-deep);--button57-line:var(--muse-brand);--button57-focus:var(--muse-brand-deep);--button57-hover-ink:#FFF}
 html:root:root:root body button[data-erp-button-role=info]{--button57-ink:#32658F;--button57-bg:var(--muse-info-bg);--button57-hover:#DCEBF7;--button57-line:#BED4E7;--button57-focus:var(--muse-info)}
 html:root:root:root body button[data-erp-button-role=success]{--button57-ink:#236F4F;--button57-bg:var(--muse-ok-bg);--button57-hover:#D7ECDF;--button57-line:#B9DBC9;--button57-focus:var(--muse-ok)}
 html:root:root:root body button[data-erp-button-role=pending]{--button57-ink:#925900;--button57-bg:var(--muse-warn-bg);--button57-hover:#F8E5BE;--button57-line:#E8CDA1;--button57-focus:#AD6A09}
 html:root:root:root body button[data-erp-button-role=danger]{--button57-ink:#B33535;--button57-bg:var(--muse-bad-bg);--button57-hover:#F5D5D5;--button57-line:#E7BABA;--button57-focus:var(--muse-bad)}
 /* Explicit roles outrank legacy .primary and submit styles, so querying stays blue. */
 html:root:root:root body :is(#app,#content,#pagehead,dialog,.erp-drawer34,.wp44-drawer,.wp44-dialog) button[data-erp-button-role][data-erp-button-role]:not(.ehd-action){line-height:20px;min-height:34px;padding:6px 11px;border-radius:7px;box-shadow:none!important}
 html:root:root:root body :is(#app,#content,#pagehead,dialog,.erp-drawer34,.wp44-drawer,.wp44-dialog) button[data-erp-button-role][data-erp-button-role]:not(:disabled){color:var(--button57-ink)!important;background:var(--button57-bg)!important;border:1px solid var(--button57-line)!important;filter:none!important;font-size:13px!important;font-weight:550;transition:background-color .14s,border-color .14s,color .14s}
 html:root:root:root body :is(#app,#content,#pagehead,dialog,.erp-drawer34,.wp44-drawer,.wp44-dialog) button[data-erp-button-role][data-erp-button-role]:not(:disabled):hover{color:var(--button57-hover-ink)!important;background:var(--button57-hover)!important;border-color:var(--button57-focus)!important;text-decoration:none;filter:none!important}
 html:root:root:root body :is(#app,#content,#pagehead,dialog,.erp-drawer34,.wp44-drawer,.wp44-dialog) button[data-erp-button-role][data-erp-button-role]:focus-visible{outline:2px solid var(--button57-focus)!important;outline-offset:3px;box-shadow:none!important}
 html:root:root:root body :is(#app,#content,#pagehead,dialog,.erp-drawer34,.wp44-drawer,.wp44-dialog) button[data-erp-button-role][data-erp-button-role]:active:not(:disabled){border-color:var(--button57-focus)!important;box-shadow:inset 0 1px 2px #00000014!important}
 html:root:root:root body :is(#app,#content,#pagehead,dialog,.erp-drawer34,.wp44-drawer,.wp44-dialog) :is(td,.a1688-order-ids,.cw-actions) button[data-erp-button-role][data-erp-button-role]:not(:disabled){min-height:28px;padding:3px 8px;line-height:20px}
 html:root:root:root body :is(#app,#content,#pagehead,dialog,.erp-drawer34,.wp44-drawer,.wp44-dialog) button.link[data-erp-button-role][data-erp-button-role]:not(:disabled){background:transparent!important;border-color:transparent!important;padding-inline:6px}
 html:root:root:root body :is(#app,#content,#pagehead,dialog,.erp-drawer34,.wp44-drawer,.wp44-dialog) button.link[data-erp-button-role][data-erp-button-role]:not(:disabled):hover{background:var(--button57-hover)!important;border-color:var(--button57-line)!important;text-decoration:underline;text-underline-offset:3px}
 /* Selected filters still identify the personal theme; danger/complete actions keep their meaning. */
 html:root:root:root body :is(#app,#content,#pagehead,dialog,.erp-drawer34) :is(.tabs,.cw-tabs,.detail-tabs,.dash-period,.pa-period,.pa-sort,.pa-tabs,.a1688-status-tabs) button[data-erp-button-role][data-erp-button-role]:is(.active,.selected,[aria-selected=true],[aria-pressed=true]):not(:disabled){color:var(--muse-brand-deep)!important;background:var(--muse-soft)!important;border-color:var(--muse-brand)!important}
 html:root:root:root body :is(#app,#content,#pagehead,dialog,.erp-drawer34,.wp44-drawer,.wp44-dialog) button[data-erp-button-role][data-erp-button-role]:disabled{color:#80766D!important;background:#F3F0EC!important;border:1px solid #E4DCD1!important;opacity:.8;cursor:not-allowed;filter:none!important;box-shadow:none!important}
 html:root:root:root body :is(#app,#content,#pagehead,dialog,.erp-drawer34,.wp44-drawer,.wp44-dialog) button[data-erp-button-role][data-erp-button-role][aria-disabled=true]{color:#80766D!important;background:#F3F0EC!important;border-color:#E4DCD1!important;opacity:.8;cursor:not-allowed;filter:none!important;box-shadow:none!important}
 html:root:root:root body :is(#app,#content,#pagehead,dialog,.erp-drawer34,.wp44-drawer,.wp44-dialog) button[data-erp-button-role] .erp-small-icon{color:inherit!important;opacity:.9}
}
@media screen and (prefers-reduced-motion:reduce){html:root:root:root body button[data-erp-button-role]{transition:none!important}}
/* 1688 store/filter controls had an older component-level color override. */
@media screen {
 html:root:root:root body #app .a1688-page button[data-erp-button-role][data-erp-button-role][data-erp-button-role]:not(:disabled){color:var(--button57-ink)!important;background:var(--button57-bg)!important;border:1px solid var(--button57-line)!important}
 html:root:root:root body #app .a1688-page button[data-erp-button-role][data-erp-button-role][data-erp-button-role]:not(:disabled):hover{color:var(--button57-hover-ink)!important;background:var(--button57-hover)!important;border-color:var(--button57-focus)!important}
}
/* VALUES57 GENERATED: tools/build_semantics57.py */
/* Muse semantic values 57. Presentation only: no numeric parsing or business rules.
   Append after the existing screen palette. TV does not load theme45.css. */
@media screen {
 html:root:root:root body {
  --value-ink57:var(--muse-ink,#33302E);
  --value-muted57:var(--muse-muted,#746E69);
  --value-pending57:#9D6109;
  --value-success57:#287D58;
  --value-danger57:var(--muse-bad,#CF4444);
  --value-info57:var(--muse-info,#3E7CB1);
 }

 /* A total is not a warning. Plain amounts, prices, quantities and KPIs stay ink. */
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :where(.metric>.value,.metric-value) {
  color:var(--value-ink57)!important;font-variant-numeric:tabular-nums;
 }
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is([data-erp-value="money"],[data-erp-value="quantity"],.erp-num,.pa-number,.a1688-amount,.a1688-quantity,.cost-total,.style-cost-value,#estimate) {
  color:var(--value-ink57)!important;font-variant-numeric:tabular-nums;
 }
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is(.cw-total,.s-total,.style-cost) strong {
  color:var(--value-ink57)!important;font-variant-numeric:tabular-nums;
 }
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is([data-erp-value="pending"],[data-erp-value="warning"]) {color:var(--value-pending57)!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) [data-erp-value="success"] {color:var(--value-success57)!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) [data-erp-value="danger"] {color:var(--value-danger57)!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) [data-erp-value="info"] {color:var(--value-info57)!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) [data-erp-value="neutral"] {color:var(--value-muted57)!important}
 /* Existing KPI buttons force their descendants to ink; restore explicit tones. */
 html:root:root:root body #app :is(.cw-metrics,.cd-metrics,.dash-metrics,.dash-extra)>button :is([data-erp-value="pending"],[data-erp-value="warning"]) {color:var(--value-pending57)!important}
 html:root:root:root body #app :is(.cw-metrics,.cd-metrics,.dash-metrics,.dash-extra)>button [data-erp-value="success"] {color:var(--value-success57)!important}
 html:root:root:root body #app :is(.cw-metrics,.cd-metrics,.dash-metrics,.dash-extra)>button [data-erp-value="danger"] {color:var(--value-danger57)!important}
 html:root:root:root body #app :is(.cw-metrics,.cd-metrics,.dash-metrics,.dash-extra)>button [data-erp-value="info"] {color:var(--value-info57)!important}
 html:root:root:root body #app :is(.cw-metrics,.cd-metrics,.dash-metrics,.dash-extra)>button [data-erp-value="neutral"] {color:var(--value-muted57)!important}

 /* Existing financial facts override generic money spans; no sign-based inference. */
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is(.ca-unpaid,.unpaid-text,.balance-due,.ca-order-balance.is-outstanding,.ca-order-balance.is-refund):not(button),
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is(.ca-unpaid,.unpaid-text,.balance-due,.ca-order-balance.is-outstanding,.ca-order-balance.is-refund) :is(strong,b,[data-erp-value]) {
  color:var(--value-pending57)!important;
 }
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is(.ca-paid,.paid-text,.ca-order-balance.is-settled):not(button),
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is(.ca-paid,.paid-text,.ca-order-balance.is-settled) :is(strong,b,[data-erp-value]) {
  color:var(--value-success57)!important;
 }
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is(.ca-waived,.ca-order-balance.is-partial),
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is(.ca-waived,.ca-order-balance.is-partial) [data-erp-value] {
  color:var(--value-muted57)!important;
 }
 /* These real metric keys distinguish completed refunds from refunds still due. */
 html:root:root:root body #app :is(.cw-metrics,.cd-metrics,.dash-metrics,.dash-extra) :is([data-cd="receipts"],[data-cd="refunds"]) :is(strong,[data-erp-value]) {color:var(--value-success57)!important}
 html:root:root:root body #app :is(.cw-metrics,.cd-metrics,.dash-metrics,.dash-extra) :is([data-cd="unpaid"],[data-cd="refund-due"]) :is(strong,[data-erp-value]) {color:var(--value-pending57)!important}
 html:root:root:root body #app :is(.cw-metrics,.cd-metrics,.dash-metrics,.dash-extra) [data-cd="overdue"] :is(strong,[data-erp-value]) {color:var(--value-danger57)!important}

 /* Recorded stock is distinct from unrecorded stock and an actual negative balance. */
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is(.cs38-negative,[data-production-qty40="negative"]),
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is(.cs38-negative,[data-production-qty40="negative"]) [data-erp-value] {color:var(--value-danger57)!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is(.cs38-positive,[data-production-qty40="actual"]),
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is(.cs38-positive,[data-production-qty40="actual"]) [data-erp-value] {color:var(--value-ink57)!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is(.cs38-zero,.cs38-unknown,[data-production-qty40="zero"]),
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is(.cs38-zero,.cs38-unknown,[data-production-qty40="zero"]) [data-erp-value] {color:var(--value-muted57)!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) [data-production-qty40="pending"],
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) [data-production-qty40="pending"] [data-erp-value] {color:var(--value-pending57)!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) [data-production-qty40="done"],
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) [data-production-qty40="done"] [data-erp-value] {color:var(--value-success57)!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) [data-production-qty40="plan"],
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) [data-production-qty40="plan"] [data-erp-value] {color:var(--value-info57)!important}
 /* Customer-owned material warnings already come from the stored low-stock flag. */
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) .cs-low,
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) .cs-low [data-erp-value] {color:var(--value-pending57)!important}
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) .cs-ok [data-erp-value] {color:var(--value-ink57)!important}

 /* State chips: shared meaning across procurement, sales, 1688, production and admin. */
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is([data-erp-status="pending"],[data-erp-status="warning"],.a1688-status-unpaid,.a1688-status-unshipped,.a1688-mapping.is-stale) {
  color:var(--value-pending57)!important;background:var(--muse-warn-bg,#FCF1DD)!important;border-color:#EDDCB8!important;
 }
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is([data-erp-status="success"],.a1688-status-shipped,.a1688-mapping.is-mapped) {
  color:var(--value-success57)!important;background:var(--muse-ok-bg,#EAF5EF)!important;border-color:#CEE5D8!important;
 }
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) [data-erp-status="danger"] {
  color:var(--value-danger57)!important;background:var(--muse-bad-bg,#FBE9E8)!important;border-color:#EBCACA!important;
 }
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is([data-erp-status="info"],.tag.blue,.badge.blue,.s-badge.blue,.cs-status-sent,.a1688-mapping:not(.is-mapped):not(.is-stale)) {
  color:var(--value-info57)!important;background:var(--muse-info-bg,#EAF2F8)!important;border-color:#D4E3EF!important;
 }
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is([data-erp-status="neutral"],.a1688-status-closed,.a1688-status-unknown,.cs-status-closed) {
  color:var(--value-muted57)!important;background:var(--muse-card-soft,#F5F2EE)!important;border-color:var(--muse-line,#E6DFD8)!important;
 }
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) :is([data-erp-status],.a1688-status,.a1688-mapping,.cs-status-closed) [data-erp-value] {color:inherit!important}

 /* These existing tab keys keep platform counts separate from selection styling. */
 html:root:root:root body #app .a1688-page :is(.a1688-tabs,.a1688-status-tabs) button[data-a1688-tab="all"]>span {color:var(--value-ink57)!important}
 html:root:root:root body #app .a1688-page :is(.a1688-tabs,.a1688-status-tabs) button:is([data-a1688-tab="unpaid"],[data-a1688-tab="unshipped"],[data-a1688-tab="aftersales"]):not(:disabled)>span {color:var(--value-pending57)!important}
 html:root:root:root body #app .a1688-page :is(.a1688-tabs,.a1688-status-tabs) button[data-a1688-tab="shipped"]:not(:disabled)>span {color:var(--value-success57)!important}
 html:root:root:root body #app .a1688-page :is(.a1688-tabs,.a1688-status-tabs) button[data-a1688-tab]:disabled>span {color:var(--value-muted57)!important}
 html:root:root:root body #app .a1688-page :is(.a1688-tabs,.a1688-status-tabs) button[data-a1688-tab]>span [data-erp-value] {color:inherit!important}

 /* Preserve legibility in the existing dark batch bars and filled action buttons. */
 html:root:root:root body :is(.shipment-action-bar,.order-selection-bar,.purchase-selection-bar,.account-selection-bar,.card-selection-bar) {
  --value-ink57:#FFF;--value-muted57:#E7DED6;--value-pending57:#FFDF9C;--value-success57:#BDE8D0;--value-danger57:#FFC5C5;--value-info57:#C6E2F7;
 }
 html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) button:is(.primary,[type="submit"],[data-erp-tone="primary"],[data-erp-button-role]):not([data-erp-metric]) [data-erp-value] {color:inherit!important}
}
/* VALUES57 END */
/* NAV54 GENERATED: tools/build_nav54.py */
/* Compact navigation summaries; business-state colors do not follow personal themes. */
@media screen{
html:root:root:root body #wf-nav .wf-nav-item>button:is([data-wf-open],[data-wf-todos]){display:flex;align-items:center;gap:7px;min-width:0;min-height:32px;padding:5px 8px;font-size:13px!important;line-height:1.5!important;text-align:left;border:0;background:transparent;color:var(--muse-ink,#33302e)!important;flex:1}
html:root:root:root body #wf-nav .wf-nav-item>button.active:is([data-wf-open],[data-wf-todos]){color:var(--muse-brand-deep,#a93c65)!important}
html:root:root:root body #wf-nav .wf-nav-label{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root:root:root body #wf-nav .erp-nav-icon{width:15px;height:15px;flex:0 0 15px;margin:0}
html:root:root:root body #wf-nav .wf-nav-item>button[data-wf-fav]{flex:0 0 20px;min-width:20px;width:20px;padding:3px 2px}
html:root:root:root body #wf-nav .wf-nav-todos{padding-right:0}
html:root:root:root body #wf-nav .wf-nav-todos>button{border-radius:8px;font-weight:500}
html:root:root:root body #wf-nav .wf-nav-count{display:inline-flex;align-items:center;justify-content:center;gap:1px;margin-left:auto;flex:0 0 auto;min-width:19px;max-width:62px;height:18px;padding:0 5px;border:0;border-radius:9px;font-family:inherit;font-size:11px!important;line-height:18px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:0;background:#e9e2da!important;color:#615a52!important}
html:root:root:root body #app #wf-nav .wf-nav-count[data-count-tone="pending"]{background:#fff0d8!important;color:#925900!important;box-shadow:inset 0 0 0 1px #f3dcae}
html:root:root:root body #app #wf-nav [data-wf-todos] .wf-nav-count[data-count-tone="pending"]{background:var(--muse-brand,#C24B78)!important;color:#fff!important;box-shadow:none}
html:root:root:root body #app #wf-nav .wf-nav-count[data-count-tone="danger"]{background:#cf4444!important;color:#fff!important}
html:root:root:root body #app #wf-nav .wf-nav-count[data-count-qualified="true"]{background:#eaf2f9!important;color:#32658f!important;box-shadow:inset 0 0 0 1px #d5e5f2}
html:root:root:root body #wf-nav .wf-nav-count-note{font-size:9px;line-height:1;letter-spacing:0;font-weight:500;color:inherit!important}
html:root:root:root body #wf-nav .wf-group-common>h2{font-size:11px!important;letter-spacing:1px;font-weight:600;padding:10px 8px 4px;color:var(--muse-muted,#6f6b66)}
/* Active section, actionable counts and informational cache remain distinct. */
html:root:root:root body #wf-nav .wf-nav-item:has(>button.active){box-shadow:inset 3px 0 0 var(--muse-brand,#C24B78)!important}
html:root:root:root body #wf-nav .wf-nav-item>button.active:is([data-wf-open],[data-wf-todos]){font-weight:650!important}
html:root:root:root body #wf-nav .wf-nav-item:hover:not(:has(>button.active)){background:var(--muse-soft,#F9E8EF)!important}
html:root:root:root body #wf-nav .wf-nav-item>button:hover:is([data-wf-open],[data-wf-todos]){color:var(--muse-brand-deep,#A93C65)!important}
html:root:root:root body #wf-home-button{display:flex;align-items:center;gap:8px}
html:root:root:root body #wf-home-button.active{box-shadow:inset 3px 0 0 var(--muse-brand,#C24B78)!important}
html:root:root:root body #wf-home-button:hover{background:var(--muse-soft,#F9E8EF)!important;color:var(--muse-brand-deep,#A93C65)!important}
html:root:root:root body #wf-home-button .erp-nav-icon{width:15px;height:15px;flex:0 0 15px}
}

/* 81: fixed quick entry and explicit numeric text colours requested by users. */
@media screen {
html:root:root:root body #app #wf-tabs button.wf-quick-entry81{color:#fff!important;background:var(--muse-brand,#c24b78)!important;border:1px solid var(--muse-brand,#c24b78)!important;border-radius:7px;margin:4px 6px;font-size:13px!important;font-weight:600;white-space:nowrap}
html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) [data-erp-value="money"]{color:#925900!important;font-variant-numeric:tabular-nums}
html:root:root:root body :is(#app,#content,dialog,.erp-drawer34) [data-erp-value="quantity"]{color:#32658f!important;font-variant-numeric:tabular-nums}
}
