/* 清透薄荷主题：只覆盖视觉，不覆盖显隐、布局、权限或业务状态。 */
:root,:host,body.cs-ui{
  --green:#257454;--green-dark:#226849;--green-deep:#2e5b47;--deep:#2e5b47;
  --green-soft:#e5f8ec;--mint:#e5f8ec;--nav:#dcf5e6;--bg:#f4fbf6;
  --text:#29483d;--ink:#29483d;--muted:#667d71;--line:#d9eade;
  --mint-action:#c2efd3;--mint-action-hover:#ace5c2;--lilac:#eee9fa;--honey:#fff3d1;
  --ui-shadow:0 5px 24px #38634c07;--shadow:0 10px 34px #38634c0b;
}
html{background:#f4fbf6}
body,body.cs-ui{color:var(--ink);background:radial-gradient(ellipse at 96% 0%,#ece7fa88,transparent 34%),radial-gradient(ellipse at 10% 5%,#ddf8e6bb,transparent 40%),#f4fbf6;background-attachment:fixed}
body :is(h1,h2,h3){color:#29483d}
a{color:#267253}
button.primary,.cs-ui button.primary,.cs-ui .primary,dialog.iq-dialog button.iq-primary,.ops-tools button,.file-button{
  background:linear-gradient(125deg,#bceecd,#d5f5df)!important;border-color:#acdcbc!important;color:#24533e!important;
  box-shadow:0 3px 10px #67ac8115!important;
}
button.primary:hover,.cs-ui .primary:hover,dialog.iq-dialog button.iq-primary:hover{background:#afe6c4!important;color:#204c38!important;filter:none}
button:not(:disabled):focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #87cba4!important;outline-offset:3px}
input[type=checkbox],input[type=radio]{accent-color:#34805b}
.cs-ui input:not([type=checkbox]):not([type=radio]):not([type=file]),.cs-ui select,.cs-ui textarea,input:not([type=checkbox]):not([type=radio]),select,textarea{border-color:#cfe4d6;color:#29483d}
input::placeholder,textarea::placeholder{color:#74877d}
.cs-ui :is(input,select,textarea):focus{border-color:#80bf99;box-shadow:0 0 0 3px #b7e9c94d}
button:not(.primary):not(.danger):not(:disabled):hover,a.btn:hover{border-color:#a4d5b6}
.cs-ui :is(.panel,.card,.device-card,.order-card,.entry),.panel,.card{border-color:#d9eade;box-shadow:0 4px 20px #37654405}
.cs-ui .panel-head{background:#fcfffc;border-color:#e3efe6}
.notice:not(.error),.cs-ui .notice:not(.error),.iq-dialog .iq-hint{background:#ecf9ed;border-color:#d7eddb;color:#486852}
.cs-ui .tag:not(.status-repair):not(.status-qc):not(.status-sold):not(.sold):not(.out):not(.status-transit),.badge{background:#e3f5e8;color:#396b4c}
.cs-ui dialog,dialog{border:1px solid #d7e8dc;box-shadow:0 22px 80px #335d4630}
.cs-ui dialog::backdrop,dialog::backdrop{background:#365b4847;backdrop-filter:blur(3px)}
/* 浅色导航，保留原来的宽度和小屏折叠规则。 */
.cs-erp aside,.cs-alliance aside,.cs-operations .ops-sidebar{
  background:radial-gradient(ellipse at 0% 100%,#ebe6f9b0,transparent 45%),linear-gradient(155deg,#d7f5df,#ebf8ed 70%);
  border-right:1px solid #cce6d4;color:#315741;box-shadow:5px 0 24px #477f4e04;
}
.cs-erp .brand,.cs-alliance .brand,.cs-operations .ops-sidebar .ops-brand{color:#315741}
.cs-erp .brand small,.cs-alliance .brand span{color:#60836c}
.cs-erp aside nav button,.cs-alliance aside nav button,.cs-alliance aside nav a,.cs-operations .ops-sidebar a{color:#52715d;background:transparent}
.cs-erp aside nav button:hover,.cs-alliance aside nav button:hover,.cs-alliance aside nav a:hover,.cs-operations .ops-sidebar a:hover{color:#2f6143;background:#ffffffa6}
.cs-erp aside nav button.active,.cs-alliance aside nav button.active,.cs-operations .ops-sidebar a[aria-current]{background:#fffdf4;color:#315d40;box-shadow:0 3px 12px #5f856811,inset 3px 0 #83c99b}
.cs-erp aside nav button.active::after{background:#8a74b0}
.cs-erp .nav-caption{color:#65816b}
.cs-erp .aside-foot,.cs-alliance .aside-bottom,.cs-operations .ops-sidebar p{background:#ffffff59;border-color:#cce2d1;color:#607c67}
.online-dot{color:#416e4e}.online-dot::before{background:#66b77f;box-shadow:0 0 0 4px #66b77f20}
/* 看板：薄荷、浅紫、奶油黄轻量区分不同指标。 */
.cs-erp .welcome{background:radial-gradient(ellipse at 95% 0%,#eae4fa99,transparent 44%),linear-gradient(105deg,#dff7e7,#f7fce9);border-color:#cee8d5;color:#315b43}
.cs-erp .welcome h2,.cs-erp .welcome p,.cs-erp .welcome .eyebrow{color:#466a50}
.cs-erp .cards .metric.profit,.cs-erp .report-highlight,.cs-alliance .metrics .metric:first-child,.cs-workbench .today-metric,.cs-ui .staff-entry>div:first-of-type>div:first-child{
  background:linear-gradient(120deg,#c9efd7,#e5f8d9)!important;border-color:#c9e7d1!important;color:#2b563e!important;
}
.cs-erp .metric.profit strong,.cs-erp .metric.profit label,.cs-erp .metric.profit small,.cs-erp .report-highlight :is(strong,b,span,small,p,h2,h3),.cs-alliance .metrics .metric:first-child :is(strong,b,span,small),.cs-workbench .today-metric :is(strong,small,.hero-bottom,.hero-top),.cs-ui .staff-entry>div:first-of-type>div:first-child :is(b,strong,small,span,a){color:#315e44!important}
.cs-ui .staff-entry>div:first-of-type>div:nth-child(2),.cs-workbench .month-metric{background:#eeeafa!important;border-color:#dfd7ee!important;color:#615078!important}
.cs-erp .metric:nth-child(2) .metric-icon,.cs-mobile .quick-grid button:nth-child(2) span{background:#eee8fa;color:#796297}
.cs-erp .metric:nth-child(3) .metric-icon,.cs-mobile .quick-grid button:nth-child(3) span{background:#fff2ce;color:#8c7438}
.cs-erp .user-pill{background:#edf6e2;border-color:#d8e8c9;color:#5e7544}
.cs-erp .inventory-total-card{background:#e9f8e7;border-color:#d1e9d1}.cs-erp .inventory-total-card strong{color:#3d6a47}
.cs-erp .category-chips span{background:#eaf5e5;color:#547449}
.cs-erp :is(.inventory-subnav,.quick-filters,.qc-filter-row) button.active{background:#d9f1e0;color:#365f46;border-color:#bedfc8}
.cs-erp .toolbar>button:not(.primary){background:#f5fcf6;color:#46684f;border-color:#cfe5d5}
.cs-erp th,thead th{background:#edf8ef;color:#536e5c;border-color:#d8e9dc}
.cs-erp tbody tr:hover td{background:#f1fbf3}.cs-erp tbody tr:has(input[data-batch-device]:checked) td{background:#e0f4e4}
.cs-erp .action-btn{background:#e6f6e9;color:#3b724e}.cs-erp .action-btn.detail{background:#efebf7;color:#726184}
/* 登录和手机工作台沿用相同的淡色层次。 */
.cs-erp .auth-screen,.cs-mobile .login-view{background:radial-gradient(ellipse at 85% 10%,#e8dff8aa,transparent 38%),radial-gradient(ellipse at 8% 75%,#d0f1d7,transparent 46%),linear-gradient(135deg,#f4fff3,#e5f7ec 60%,#f9f8ec)}
.cs-erp .auth-card,.cs-mobile .login-card{border-color:#d7eadb;box-shadow:0 20px 70px #4f86501a}
.cs-mobile .app{background:transparent}.cs-mobile .app>header{background:#f6fff7ed;border-bottom:1px solid #e1efe4}
.cs-mobile .hero,.cs-mobile .profile,.cs-mobile .mw-income{background:linear-gradient(120deg,#caf0d8,#e7f8dc);border:1px solid #cde7d1;color:#30563e;box-shadow:0 5px 20px #77aa7712}
.cs-mobile .hero :is(span,strong,b,em),.cs-mobile .profile :is(h1,h2,h3,p,span,small,b),.cs-mobile .mw-income :is(strong,span,a,b,small){color:#345f46}
.cs-mobile .mw-income-bottom{color:#577560;border-color:#bddcc5}.cs-mobile .mw-income-top i{background:#e4ddf3}
.cs-mobile .mw-stats{border:1px solid #dfebe1;background:#ffffffdb}.cs-mobile .mw-stats>div:nth-child(2){background:#f4f0fb}.cs-mobile .mw-stats>div:nth-child(3){background:#fff9e9}
.cs-mobile nav{background:#fcfffaef;border-color:#d7e9dc;box-shadow:0 -3px 18px #58886708}.cs-mobile nav button.active{color:#33784f}
.cs-mobile .scan-nav i{background:linear-gradient(130deg,#b7ebcb,#d9f3d5);color:#315c44;box-shadow:0 4px 12px #81b99222}
.cs-mobile .search-row button{background:#c1efd2;color:#315b43}.cs-mobile .chips button.active{background:#dbf3e3;border-color:#c2e2cc;color:#356648}
.cs-mobile .mg-home-search{border-color:#d2e7d9;background:#fff}.cs-mobile .quick-grid span{background:#e5f5e7;color:#3f7351}
.cs-mobile .app[data-screen=home]>header{background:#d9f4e2;color:#2d5940}
.cs-mobile .app[data-screen=home]>header #greeting{color:#5b7d66}
.cs-mobile .app[data-screen=home]>header #oa-notification-trigger{background:#ffffff94;color:#45694c}
.cs-mobile .mg-launchpad{background:radial-gradient(ellipse at 96% 90%,#eee5f7aa,transparent 42%),linear-gradient(180deg,#d9f4e2,#e6f8e5)}
.cs-mobile .mg-launchpad .quick-grid button{color:#375f46}
.cs-mobile .mg-launchpad .quick-grid button:nth-child(n) span{background:#f8fff4c9;color:#4a805a;border-radius:12px}
.cs-mobile .mg-launchpad .quick-grid button:nth-child(2) span{background:#eee7f8;color:#7a6199}
.cs-mobile .mg-launchpad .quick-grid button:nth-child(3) span{background:#fff2ce;color:#8b773f}
.cs-mobile .mg-launchpad .quick-grid button:nth-child(4) span{background:#def2ed;color:#4d8377}
.cs-mobile .mw-complete,.cs-mobile .card-actions .mw-sell,.cs-mobile #mobile-business-overview .hero{background:#c5eed5;color:#315d44;border-color:#b7ddc4}
.cs-mobile .toast,.cs-mobile #mw-success{background:#dcf1e2;color:#315c42;border:1px solid #badbc5;box-shadow:0 5px 18px #719f6d22}
.cs-erp .metric.profit .metric-icon{background:#fff3d2;color:#88703b}
#turnover-alerts .ta-primary{background:#c8edd4;color:#315b41;border-color:#b7dac2}
#turnover-alerts .ta-primary:hover{background:#b6e5c6;color:#284f38}
/* 对外货架：清浅的薄荷顶部，留白展示机器照片。 */
header.top{background:radial-gradient(ellipse at 92% 0%,#eee6fb9c,transparent 42%),linear-gradient(110deg,#d3f3df,#eff9e8);color:#2c533e;border-bottom:1px solid #cfe6d5}
header.top h1{color:#2b533d}header.top small{color:#537861}header.top button,header.top a.btn{background:#ffffffcf;border-color:#c6dfce;color:#3c6249}
.tabs button.active{background:#d0efda;color:#315c43;border-color:#b9ddc5}
.tabs button[data-inventory-quote]{background:#f0eafa;color:#6d5a87;border-color:#e0d5ef}
.shop-hero{border-color:#d2e9d9;background:radial-gradient(ellipse at 100% 0%,#f1eafa9c,transparent 42%)}
.price{color:#377a52}.eyebrow{color:#598467}.placeholder{background:linear-gradient(125deg,#e0f5e5,#f4effa);color:#688570}
.toolbar{background:#f4fbf6ee}.phone-outline{border-color:#93b89b}.phone-outline:after{background:#93b89b}
.details div{background:#f0f9f1}.iq-dialog .iq-hint{background:#ecf8e9}
#message,#toast{background:#dbf1e2;color:#2e573f;border:1px solid #bcdec8;box-shadow:0 5px 20px #4e7b4e18}
/* 独立工作台及嵌入运营面板。 */
.cs-workbench .hero-bottom,.cs-workbench .month-metric .hero-bottom{color:#687958}
.cs-workbench nav,.cs-workbench .filters{background:#eaf6e9;border-color:#d7e8d6}
.cs-workbench .month-card.selected{background:#e0f3df;border-color:#b5d9b2}
.cs-alliance .trial{background:#eef8e4;color:#5b7750;border-color:#dae9d1}
:host .ops-tools button,:host .file-button{background:#c5efd5;color:#315d44}:host nav{background:#e8f5e9}:host nav button.active{background:#f1ebfa;color:#6d5c83}
:host .notice{background:#edf8ec;border-color:#d9ead6}:host .task-publisher>summary{color:#477850}
@media(prefers-reduced-motion:reduce){button{transition:none!important}}

/* 叶影水光：只在页头与侧栏收尾处点缀，业务区域保留纯净底色。 */
body,body.cs-ui{background:radial-gradient(ellipse at 100% 0%,#eeebf8aa,transparent 36%),linear-gradient(145deg,#f1f8f4,#f8faf7);background-attachment:fixed}
.cs-erp aside,.cs-alliance aside,.cs-operations .ops-sidebar{
 background:url('/garden-light.svg') 64% bottom / auto 240px no-repeat,linear-gradient(165deg,#d9f2e4,#edf7eb 68%,#e9e7f3);
 border-right:1px solid #d4e5d9;
}
.cs-erp aside nav button.active,.cs-alliance aside nav button.active{background:#ffffffd9;box-shadow:inset 3px 0 #86bea0,0 4px 14px #55836b0d}
header.top,.cs-erp .welcome,.shop-hero{
 background:url('/garden-light.svg') right center / auto 240px no-repeat,linear-gradient(115deg,#def3e7,#e6f4e9 52%,#eae8f5);
 border-color:#d4e5d9;box-shadow:none;
}
header.top{border-bottom:1px solid #d4e5d9}
.cs-erp .welcome::before,.cs-erp .welcome::after{content:none}
.cs-erp .welcome-logo{box-shadow:0 6px 24px #6e9d7812;border:1px solid #ffffffc9}
.cs-erp main>header,.cs-alliance main>header,.cs-workbench header{background:transparent}
.cs-ui .panel-head{background:#fafdf9;border-bottom-color:#e2ece5}
.cs-erp .auth-screen,.cs-mobile .login-view{
 background:url('/garden-light.svg') right bottom / min(1100px,150%) auto no-repeat,radial-gradient(ellipse at 5% 5%,#dbf3e3,transparent 60%),linear-gradient(130deg,#f5faf3,#e9f5ec 55%,#eeebf7);
}
.cs-erp .auth-card,.cs-mobile .login-card{border-color:#d8e5dc;box-shadow:0 22px 75px #66896518}
.cs-mobile .app[data-screen=home]>header{background:#e0f3e7}
.cs-mobile .mg-launchpad{background:url('/garden-light.svg') right bottom / auto 150px no-repeat,linear-gradient(115deg,#e0f3e7,#e7f4e9 60%,#eeebf7)}
.cs-mobile .mg-launchpad .quick-grid button:nth-child(n) span{background:#ffffffdf;box-shadow:0 3px 9px #6b95750d}
.cs-mobile .mg-launchpad .quick-grid button:nth-child(2) span{background:#f0eaf9}
.cs-mobile .mg-launchpad .quick-grid button:nth-child(3) span{background:#fff5db}
.cs-mobile .mg-launchpad .quick-grid button:nth-child(4) span{background:#e1f2ec}
.cs-ui .panel,.panel{border-color:#dee8e0;box-shadow:0 5px 22px #446c5105}
.shop-hero{border-radius:16px;padding-left:20px;padding-right:20px}
.tabs button.active{background:#cbe9d8;border-color:#b8d9c6;box-shadow:0 2px 6px #548b6410}
@media(max-width:640px){
 header.top{background-size:auto 145px,100% 100%}
 .shop-hero{background-size:auto 150px,100% 100%;background-position:right top,center}
}
