:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#263b38;background:#f4f5f1;font-synthesis:none;--ink:#263b38;--muted:#7a8984;--line:#e5e9e3;--green:#173f3c;--accent:#ce643e;--paper:#fff;--soft:#edf3ee}*{box-sizing:border-box}body{margin:0;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b5d4ca;outline-offset:2px}button{border:0}h1,h2,h3,p{margin:0}h1{font-size:27px;font-weight:650;letter-spacing:-.8px}h2{font-size:17px}h3{font-size:15px}p{line-height:1.75}small,.muted{color:var(--muted)}.mono{font-variant-numeric:tabular-nums}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:7px;background:white;padding:10px 15px;color:var(--ink);font-weight:550;white-space:nowrap}.btn:hover{background:#f0f4ef}.btn.primary{color:#fff;background:var(--green);border-color:var(--green)}.btn.primary:hover{background:#24524c}.btn.accent{color:#fff;background:var(--accent);border-color:var(--accent)}.btn.danger{color:#b84736;border-color:#efd3ca}.btn.small{padding:6px 10px;font-size:12px}.btn.text{background:transparent;border-color:transparent;padding:5px;color:#2d7064}.link{background:none;padding:0;color:#246d60;text-align:left;line-height:1.5;font-weight:550}.link:hover{text-decoration:underline}.stack{display:flex;flex-direction:column;gap:16px}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.spread{display:flex;align-items:center;justify-content:space-between;gap:14px}.grow{flex:1}.caption{font-size:11px;text-transform:uppercase;letter-spacing:2px;font-weight:600;color:#829c92}.badge{display:inline-flex;padding:4px 8px;border-radius:4px;font-size:11px;line-height:1.3;background:#eff2ee;color:#66766d;white-space:nowrap}.badge.good{background:#eaf3ec;color:#477752}.badge.warn{background:#fff1df;color:#9a681e}.badge.bad{background:#fcebe7;color:#b5503b}.badge.blue{background:#e8f1f4;color:#4f7683}.empty{padding:48px 20px;text-align:center;color:var(--muted);line-height:1.8}.hint{padding:13px 15px;background:#f1f5ef;border-radius:7px;color:#667b6b;font-size:12px;line-height:1.75}.hint.warning{background:#fff4e8;color:#916426}.error{background:#fff0ec;color:#a34c39;padding:12px 14px;border-radius:6px;line-height:1.6}.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#173f3c;color:#b7ccc4;padding:34px 20px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;color:#fff;padding:0 8px}.seal{display:grid;place-items:center;background:#cd6948;color:white;width:40px;height:42px;border-radius:4px;font-family:serif;font-size:17px;font-weight:750;line-height:1.05;letter-spacing:1px;padding:3px}.brand strong{font-size:18px;letter-spacing:1.8px}.brand small{display:block;font-size:10px;letter-spacing:1.5px;color:#a7c0b8;margin-top:4px}.nav-label{font-size:10px;letter-spacing:1.5px;color:#73978e;margin:39px 14px 12px}.nav{display:flex;flex-direction:column;gap:5px}.nav button{background:transparent;text-align:left;padding:13px 15px;border-radius:6px;color:#bfd1c9;display:flex;align-items:center;gap:12px;font-size:13px}.nav button:hover{background:#224a45}.nav button.active{background:#e9eee4;color:#254a40;font-weight:650}.nav-icon{width:17px;font-size:17px;text-align:center}.sidebar-bottom{margin-top:auto;padding:28px 9px 0;font-size:11px;line-height:1.8;color:#84a59a}.sidebar-bottom strong{color:#b9cec4;font-weight:500}.workspace{grid-column:2;min-width:0}.topbar{height:72px;background:#fbfcf9;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:14px}.breadcrumb{font-size:12px;color:#88948b;display:flex;gap:10px}.breadcrumb strong{color:#52665b;font-weight:500}.avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e5ebe0;color:#58744f}.userbox{font-size:12px;display:flex;align-items:center;gap:10px}.content{padding:32px 38px 40px;max-width:1720px;margin:auto}.page-heading{margin-bottom:25px}.page-heading p{font-size:12px;color:#819085;margin-top:9px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.kpi{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px 21px;min-width:0}.kpi-label{font-size:12px;color:#7d8d81;display:flex;justify-content:space-between;gap:8px}.kpi-value{font-size:27px;line-height:1.3;margin:17px 0 10px;font-weight:600;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.kpi small{font-size:11px}.kpi.dark{background:#244c43;color:#fff;border-color:#244c43}.kpi.dark .kpi-label,.kpi.dark small{color:#b1c7b7}.panel{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}.panel-head{padding:21px 23px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head p{color:var(--muted);font-size:11px;margin-top:7px}.panel-body{padding:23px}.dashboard-columns{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}.task-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line)}.task-item{background:#fff;text-align:left;padding:20px 17px;color:var(--ink)}.task-item:hover{background:#f6f8f3}.task-item span{font-size:12px;color:#809081}.task-item strong{display:block;font-size:23px;margin:10px 0 4px;font-weight:550}.task-item small{font-size:10px}.toolbar{padding:16px 22px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--line)}.toolbar .filter{min-width:150px}.search{min-width:200px;flex:1;max-width:350px}.field-input,input:not([type=checkbox]):not([type=file]),select,textarea{width:100%;border:1px solid #dfe5dc;border-radius:6px;padding:10px 11px;color:var(--ink);background:#fff;min-width:0}.search input{background:#f8faf6;font-size:12px}input[type=checkbox]{accent-color:#285e4c}textarea{resize:vertical;min-height:78px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}thead{background:#f8faf5}th{font-size:11px;text-align:left;color:#7b8b7b;font-weight:500;padding:14px 20px;border-bottom:1px solid var(--line)}td{font-size:12px;padding:17px 20px;border-bottom:1px solid #edf0e9;vertical-align:middle}tbody tr:last-child td{border:0}tbody tr:hover{background:#fbfcf8}.cell-sub{font-size:10px;color:#89948a;margin-top:6px}.money{text-align:right;font-variant-numeric:tabular-nums}.table-footer{display:flex;justify-content:space-between;gap:12px;padding:14px 21px;background:#fcfdf9;font-size:11px;color:#8b968c;border-top:1px solid var(--line)}.table-actions{display:flex;gap:7px;align-items:center}.section-space{margin-top:22px}.summary-line{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid #edf0e8;font-size:12px}.summary-line:last-child{border:0}.bar-row{margin:17px 0}.bar-label{display:flex;justify-content:space-between;gap:12px;font-size:11px;margin-bottom:9px}.bar-track{background:#edf1e8;height:6px;border-radius:4px;overflow:hidden}.bar-fill{background:#a5b38b;height:100%;border-radius:4px}.banner{background:#e9eee0;display:flex;gap:16px;align-items:center;padding:19px 23px;border-radius:9px;color:#5c7354}.banner strong{font-size:13px}.banner p{font-size:11px;margin-top:5px}.tabs{display:flex;gap:6px;flex-wrap:wrap}.tab{padding:9px 14px;border-radius:6px;background:#f0f3ed;color:#65795f;font-size:12px}.tab.active{background:#285348;color:white}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#f7f8f2}.login-story{background:#173f3c;padding:58px 10%;display:flex;flex-direction:column;justify-content:space-between;color:#fff;position:relative;overflow:hidden}.login-story:after{content:"";position:absolute;width:520px;height:520px;border:1px solid #31564b;border-radius:50%;right:-220px;bottom:10%;box-shadow:0 0 0 80px #1b423b,0 0 0 81px #31564b,0 0 0 160px #1b423b,0 0 0 161px #31564b;pointer-events:none}.login-story>*{position:relative;z-index:1}.login-story h1{font-size:43px;line-height:1.6;letter-spacing:3px;margin:70px 0 22px}.login-story p{color:#aac2b5;line-height:2;font-size:13px}.login-story footer{font-size:11px;color:#83a492;margin-top:100px;letter-spacing:2px}.login-form-area{display:grid;place-items:center;padding:45px}.login-card{max-width:370px;width:100%}.login-card h2{font-size:26px;margin:12px 0}.login-card p{font-size:12px;color:#899486;margin-bottom:28px}.login-card .btn{width:100%;margin-top:8px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field>span{font-size:12px;font-weight:550}.field small{font-size:11px;line-height:1.5}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field.wide{grid-column:1 / -1}.checkbox-field{display:flex;align-items:center;gap:8px;padding:8px 0}.modal-backdrop{position:fixed;inset:0;z-index:60;background:#16292377;display:flex;align-items:center;justify-content:center;padding:24px}.modal{width:620px;max-height:calc(100vh - 48px);overflow:auto;background:#fff;border-radius:12px;box-shadow:0 15px 100px #102d2525}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:22px 25px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}.modal-header h2{font-size:18px}.close{background:none;color:#7d8b7b;font-size:25px;padding:1px 7px}.modal-body{padding:24px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:17px 25px;background:#f7f9f4;border-top:1px solid var(--line)}.modal-body .error{margin-top:18px}.drawer-backdrop{position:fixed;inset:0;background:#122c2255;z-index:50;display:flex;justify-content:flex-end}.drawer{width:800px;max-width:94vw;background:#f6f7f2;overflow:auto;box-shadow:-10px 0 60px #17302222}.drawer-header{padding:24px 29px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.drawer-body{padding:24px;display:flex;flex-direction:column;gap:19px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.detail-grid small{display:block;margin-bottom:6px;font-size:11px}.detail-grid span{font-size:12px;overflow-wrap:anywhere}.detail-total{padding:18px 22px;display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);font-size:13px}.fulfillment-card{border:1px solid var(--line);border-radius:7px;padding:16px;background:#fff;display:flex;flex-direction:column;gap:12px}.fulfillment-card .table-actions{flex-wrap:wrap}.line-editor{padding:13px;border:1px solid var(--line);border-radius:7px;margin:12px 0}.line-editor-fields{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:8px;align-items:end}.line-editor-fields .field>span{font-size:11px}.notify{position:fixed;right:24px;bottom:24px;z-index:100;max-width:450px;padding:14px 19px;background:#244b3e;color:#fff;border-radius:8px;box-shadow:0 8px 35px #15362133;font-size:13px;line-height:1.6}.notify.bad{background:#984f40}.customer-shell{max-width:1200px;margin:auto;padding:0 24px 100px}.customer-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:26px 0;border-bottom:1px solid var(--line);margin-bottom:26px}.customer-header .brand{padding:0;color:var(--green)}.customer-header .brand small{color:#7c927e}.customer-nav{display:flex;gap:8px}.customer-nav button{background:transparent;color:#798673;padding:10px 16px;border-radius:6px}.customer-nav button.active{color:#224b3e;background:#e8eee2;font-weight:600}.catalog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.product{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.product-visual{height:144px;display:flex;justify-content:center;align-items:center;background:#edf0e3;position:relative;color:#86976d}.product-visual.alt1{background:#f3e9dc;color:#b7956c}.product-visual.alt2{background:#e5ece6;color:#7e9e8d}.product-symbol{font-size:50px;font-family:serif;border:1px solid currentColor;border-radius:35px 35px 8px 8px;width:78px;height:98px;display:flex;align-items:center;justify-content:center;opacity:.65}.product-image{width:100%;height:100%;object-fit:contain}.product-body{padding:21px}.product-body h3{margin-bottom:9px}.product-meta{font-size:11px;color:#88907c;line-height:1.9}.product-price{font-size:24px;color:#aa5b3e;font-weight:600;margin:20px 0 14px}.product-price small{font-size:11px;font-weight:400;color:#87917b;margin-left:4px}.quantity{display:flex;align-items:center;gap:6px}.quantity input{width:65px!important;text-align:center;padding:6px!important}.quantity button{background:#f0f4e9;border-radius:4px;color:#566d50;width:29px;height:29px}.cart-bar{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:1152px;width:calc(100% - 48px);padding:15px 22px;border:1px solid #dce3d3;background:#fff;border-radius:10px;box-shadow:0 8px 50px #3146271c;display:flex;justify-content:space-between;align-items:center;z-index:30}.cart-bar strong{font-size:22px;color:#a65338}.cart-bar small{margin-right:15px}.customer-order{padding:20px 23px}.customer-order+.customer-order{border-top:1px solid var(--line)}.customer-order .row{margin-top:13px}.status-line{display:flex;gap:7px;flex-wrap:wrap}.import-preview{max-height:270px;overflow:auto;border:1px solid var(--line);border-radius:7px}.import-preview th,.import-preview td{padding:9px 12px}.print-title{display:none}.toolbar input[type=file]{font-size:12px;width:230px}.audit-text{max-width:400px;white-space:normal;overflow-wrap:anywhere}.mobile-menu{display:none}.loading{min-height:100vh;display:grid;place-items:center;color:#6a826e}.loading span:before{content:"";display:block;width:28px;height:28px;border:3px solid #d5e2d3;border-top-color:#315f4a;border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 15px}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1500px){.content{padding-top:40px}.kpi{padding:26px}.kpi-value{font-size:31px}}
@media(max-width:1100px){.sidebar{width:190px;padding:30px 13px}.shell{grid-template-columns:190px minmax(0,1fr)}.content{padding:25px 22px}.topbar{padding:0 22px}.kpi-grid{gap:10px}.kpi{padding:17px}.kpi-value{font-size:23px}.dashboard-columns{grid-template-columns:1fr}.task-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:760px){.shell{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s;width:220px}.sidebar.open{transform:none;box-shadow:5px 0 60px #142f3055}.workspace{width:100%}.mobile-menu{display:block;background:none;color:var(--green);font-size:22px}.topbar{height:60px;padding:0 17px}.topbar .breadcrumb{display:none}.content{padding:23px 16px}.page-heading{align-items:flex-start}.page-heading h1{font-size:24px}.page-heading .row{gap:6px}.page-heading .btn{font-size:11px;padding:8px 10px}.kpi-grid{grid-template-columns:repeat(2,1fr)}.kpi-value{font-size:23px;margin:13px 0 7px}.kpi small{font-size:10px}.panel-head,.panel-body{padding:17px}.task-grid{grid-template-columns:repeat(2,1fr)}th,td{padding:13px 15px}.toolbar{padding:12px 15px}.search{min-width:140px}.login{display:block}.login-story{padding:27px 25px}.login-story h1{font-size:26px;margin:35px 0 12px;line-height:1.6}.login-story p,.login-story footer{display:none}.login-form-area{padding:33px 26px}.login-card h2{font-size:23px}.login-story:after{width:210px;height:210px;right:-90px;bottom:-40px}.customer-shell{padding:0 16px 120px}.customer-header{padding:20px 0;flex-wrap:wrap;margin-bottom:19px}.customer-header .brand strong{font-size:16px}.customer-header .brand small{font-size:9px}.customer-header .userbox{font-size:11px}.customer-nav{order:3;width:100%;justify-content:space-around;margin-top:7px;border-top:1px solid var(--line);padding-top:11px}.customer-nav button{padding:10px 15px;font-size:12px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-visual{height:115px}.product-symbol{font-size:39px;width:60px;height:79px}.product-body{padding:14px 12px}.product-body h3{font-size:13px}.product-meta{font-size:10px}.product-price{font-size:20px;margin:15px 0 12px}.product-body>.spread{flex-wrap:wrap;gap:11px}.product-body .btn{font-size:11px;padding:7px 9px;flex:1}.quantity input{width:46px!important}.quantity button{width:25px;height:26px}.cart-bar{bottom:12px;width:calc(100% - 24px);padding:13px 15px}.cart-bar small{display:block;font-size:10px}.cart-bar strong{font-size:20px}.cart-bar .btn{font-size:12px}.modal-backdrop{padding:12px;align-items:center}.modal{max-height:calc(100dvh - 24px)}.modal-header{padding:18px}.modal-body{padding:19px}.modal-footer{padding:15px 19px}.form-grid{grid-template-columns:1fr;gap:15px}.drawer{max-width:100%;width:100%}.drawer-header{padding:19px}.drawer-body{padding:16px}.line-editor-fields{grid-template-columns:1fr 1fr}.line-editor-fields .field:first-child{grid-column:1 / -1}.notify{left:18px;right:18px;bottom:18px;max-width:none}.detail-grid{gap:15px 12px}.customer-order{padding:18px 16px}.banner{padding:16px}.table-actions{flex-wrap:wrap}}
@media print{body{background:white}.sidebar,.topbar,.page-heading>.row,.toolbar,.table-actions,.btn,.close,.modal-backdrop,.customer-header,.cart-bar{display:none!important}.shell{display:block}.workspace{width:100%}.content{padding:0}.drawer-backdrop{position:static;background:none;display:block}.drawer{width:100%;max-width:none;background:white;overflow:visible;box-shadow:none}.drawer-header{padding:10px}.drawer-body{padding:10px}.drawer-open #app{display:none}.panel{break-inside:avoid}.print-title{display:block}table{white-space:normal}.panel-head{padding:12px}.table-wrap{overflow:visible}th,td{padding:9px}.kpi-grid{grid-template-columns:repeat(4,1fr)}.panel-body{padding:12px}}

.seal{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;font-size:15px;letter-spacing:1px;line-height:1.1}.seal span{display:block;white-space:nowrap}

/* Small-screen pilot ergonomics; business workflows remain unchanged. */
.experience-note{display:flex;align-items:flex-start;gap:10px;padding:11px 14px;margin-bottom:20px;border:1px solid #eadfca;border-radius:7px;background:#fbf5e9;color:#886c40;font-size:12px;line-height:1.65}
.experience-note strong{white-space:nowrap;font-weight:600}
.login-card .experience-note{margin-bottom:22px;font-size:11px}
.sidebar{overflow-y:auto;overscroll-behavior:contain}
.table-wrap{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.table-scroll-hint{display:none}
@media(max-width:760px){
  input:not([type=checkbox]):not([type=file]),select,textarea,.search input{font-size:16px}
  .login-story h1{margin-top:24px;margin-bottom:8px;font-size:24px}
  .login-form-area{padding-top:25px}
  .login-card .btn{min-height:44px}
  .table-scroll-hint{display:block;padding:10px 15px;background:#f2f5ed;color:#6b7d63;font-size:11px}
  .table-wrap{max-width:100%}
  .customer-nav button,.customer-header .btn,.product-body .btn{min-height:40px}
  .quantity button{width:32px;min-width:32px;height:38px}
  .quantity input{min-height:38px}
  .cart-bar{gap:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));flex-wrap:wrap}
  .cart-bar>div:first-child{min-width:0;flex:1}
  .cart-bar>.row{margin-left:auto}
  .cart-bar .btn{min-height:40px}
  .cart-bar strong{overflow-wrap:anywhere}
  .customer-shell{padding-bottom:calc(145px + env(safe-area-inset-bottom,0px))}
  .topbar .userbox{min-width:0;flex-wrap:wrap;justify-content:flex-end;gap:7px}
  .topbar .userbox>span{min-width:0;overflow-wrap:anywhere}
  .topbar{min-height:60px;height:auto;padding-top:10px;padding-bottom:10px}
}
@media print{.experience-note,.table-scroll-hint{display:none!important}}
