:root{--ink:#20211e;--muted:#777a72;--line:#e6e7e2;--paper:#fff;--ground:#f6f6f2;--olive:#727e40;--error:#9d2925;font-family:"PingFang SC","Noto Sans CJK SC",sans-serif;font-size:14px;color:var(--ink);background:var(--ground);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{background:#fff;border:1px solid #d4d6ce;color:var(--ink);padding:10px 16px;border-radius:5px;cursor:pointer;min-height:40px}button:hover{border-color:#8d9283}button:focus-visible,a:focus-visible{outline:2px solid var(--olive);outline-offset:3px}button:disabled{opacity:.4;cursor:default}.primary{background:var(--ink);border-color:var(--ink);color:#fff}.quiet{border:0;background:transparent}.hidden{display:none!important}.site-header{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:#fff}.wordmark{font-size:22px;font-weight:600;letter-spacing:2px}.wordmark span{font-size:12px;font-weight:400;letter-spacing:1px;margin-left:20px;color:var(--muted)}h1{font-size:26px;line-height:1.35;margin:8px 0 0;font-weight:550}h2{font-size:18px;margin:0 0 24px;font-weight:550}h3{font-size:16px;margin:0;font-weight:550}p{line-height:1.7}.muted,.hint{color:var(--muted);font-size:12px}.eyebrow{font-size:12px;letter-spacing:1px;color:var(--muted)}.login{max-width:432px;margin:88px auto;padding:32px;background:#fff;border:1px solid var(--line)}.login h1{font-size:24px;margin-top:12px}.login form{margin-top:32px}.login input{margin:10px 0 20px}.login button{width:100%}.app{display:flex;max-width:1440px;margin:0 auto;min-height:calc(100vh - 76px)}nav{width:200px;flex-shrink:0;padding:32px 16px;border-right:1px solid var(--line)}nav button{display:block;text-align:left;width:100%;margin-bottom:8px;border:0;background:transparent;padding:12px 20px;color:var(--muted)}nav button[aria-current=page]{background:#e9ebe1;color:var(--ink);font-weight:550}.workspace{flex:1;min-width:0;padding:32px}.workspace-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}.save-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.save-actions span{margin-right:8px}.product-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:24px;align-items:start}.panel{padding:24px;background:var(--paper);border:1px solid var(--line)}.list-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:16px}.list-top h2{margin:0}.product-row{border-top:1px solid var(--line);padding:16px 0}.product-row.selected .product-name{color:var(--olive)}.product-main{display:flex;justify-content:space-between;gap:12px;align-items:start}.product-name{display:block;text-align:left;padding:0;min-height:24px;border:0;font-weight:550;line-height:1.6;background:transparent}.product-price{white-space:nowrap;font-variant-numeric:tabular-nums;padding-top:3px}.product-meta{margin:4px 0 12px;display:flex;gap:12px;flex-wrap:wrap}.product-controls{display:flex;gap:8px;justify-content:flex-end}.product-controls button{font-size:12px;padding:4px 10px;min-height:32px}.status{font-size:11px;display:inline-flex;align-items:center;gap:5px;color:var(--olive)}.status.off{color:var(--muted)}.status:before{content:"";width:5px;height:5px;background:currentColor;border-radius:50%}fieldset{margin:0;border:0;padding:0;min-width:0}label{display:block;font-size:12px;color:#5b5f53;margin-bottom:16px;line-height:1.5}input,textarea,select{display:block;border:1px solid #d6d8cf;padding:10px 12px;width:100%;border-radius:4px;background:#fff;color:var(--ink);margin-top:8px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--olive);box-shadow:0 0 0 2px #727e4015}textarea{resize:vertical;min-height:96px;line-height:1.6}input[type=file]{font-size:12px;padding:8px}input[type=file]::file-selector-button{border:0;background:#eeeeea;padding:6px 10px;margin-right:8px;cursor:pointer}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.form-stack{display:grid;gap:24px}.form-stack .panel{max-width:900px}.image-preview{display:block;max-width:100%;max-height:160px;object-fit:contain;background:#f6f6f2;margin:8px 0}.empty{padding:56px 20px;text-align:center;color:var(--muted);line-height:1.8;border-top:1px solid var(--line)}.empty button{display:block;margin:20px auto 0}.message{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#222;color:#fff;padding:12px 20px;max-width:min(600px,calc(100vw - 32px));z-index:50;box-shadow:0 4px 16px #0002;line-height:1.6}.message.error{background:#852e2a}.message button{color:#fff;background:transparent;border-color:#fff6;margin-left:12px;padding:2px 8px;min-height:28px}.notice{background:#eeefe6;border-left:3px solid var(--olive);padding:12px 16px;font-size:13px;color:#5c6547;margin-bottom:24px;line-height:1.6}.order-row{padding:24px 0;border-top:1px solid var(--line)}.order-top{display:flex;justify-content:space-between;gap:12px}.order-items{line-height:1.9;margin:16px 0}.order-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.order-footer .actions{display:flex;gap:8px}.order-note{padding:12px;background:var(--ground);line-height:1.6}.category-input{min-height:260px}.form-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:8px}.total{font-size:18px;font-variant-numeric:tabular-nums}.last-updated{font-size:12px;color:var(--muted)}@media(max-width:1000px){.product-layout{grid-template-columns:minmax(0,1fr) 320px}nav{width:160px}.workspace{padding:24px}.workspace-header{align-items:start;flex-direction:column}.save-actions{width:100%}}@media(max-width:760px){.site-header{height:64px;padding:0 20px}.app{display:block}nav{width:100%;display:flex;gap:8px;border-right:0;border-bottom:1px solid var(--line);padding:12px 16px;overflow:auto}nav button{white-space:nowrap;width:auto;margin:0;padding:8px 14px}.workspace{padding:24px 16px}.workspace-header{margin-bottom:24px}.product-layout{grid-template-columns:1fr}.panel{padding:20px}.editor{scroll-margin-top:16px}.login{margin:40px 16px;max-width:none;padding:24px}.wordmark{font-size:20px}.wordmark span{margin-left:12px}h1{font-size:24px}.save-actions span{width:100%;margin-bottom:4px}.form-two{grid-template-columns:1fr}.message{bottom:16px}.order-footer{align-items:start}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
 .login-code{font-size:36px;font-weight:600;letter-spacing:6px;font-variant-numeric:tabular-nums;white-space:nowrap;margin:22px 0}.login #wechat-login{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid #eee}.login #wechat-start{width:100%}.login #wechat-challenge p{font-size:13px;line-height:1.8}

.supply-editor{padding-block:12px;border-block:1px solid var(--line,#e5e5df)}.supply-days{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.supply-days label{display:flex;align-items:center;gap:5px}.supply-days input{width:auto}.supply-period{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:12px 0}.supply-period label{flex:1;min-width:120px}

/* Desktop catalogue: filters, table and a separate product editor. */
.product-filters{display:flex;flex-wrap:wrap;align-items:end;gap:16px;padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:24px}.product-filters label{margin:0;flex:1;min-width:136px}.product-filters label:first-child{flex:2;min-width:220px}.product-filters button{flex:none}.product-list .list-top h2{margin-right:auto}.table-wrap{width:100%;overflow:auto}.product-table{width:100%;min-width:760px;border-collapse:collapse;text-align:left;line-height:1.6}.product-table th{background:#f8f8f6;font-weight:500;font-size:12px;color:#666;padding:12px;border-bottom:1px solid var(--line);white-space:nowrap}.product-table td{padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}.product-table th:first-child{width:88px}.product-table img{display:block;object-fit:contain;background:#fff}.product-table strong{display:block;font-weight:500}.product-table small{display:block;margin-top:4px;overflow-wrap:anywhere}.product-table tbody tr:hover{background:#fafbf8}.table-actions{white-space:nowrap}.text-button{min-height:32px;padding:4px 8px;border:0;background:transparent;color:var(--olive)}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding-top:24px}.pagination>.muted{margin-right:auto}.pagination button{padding:6px 12px;min-height:36px}.editor{max-width:980px}.editor-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px;border-bottom:1px solid var(--line);padding-bottom:20px}.editor-heading h2{margin:0}.editor>fieldset{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.editor>fieldset>section,.editor>fieldset>.supply-editor{grid-column:1/-1}.editor>fieldset>div{min-width:0}.editor .panel{margin-top:16px}.workspace-header{position:sticky;top:0;background:var(--ground);z-index:5;padding:16px 0;margin-top:-16px}.product-filters input,.product-filters select{min-height:40px}.product-filters button{min-height:40px}
@media(max-width:760px){.product-filters{gap:12px}.product-filters label{min-width:calc(50% - 12px)}.product-filters label:first-child{flex-basis:100%}.editor>fieldset{display:block}.pagination{flex-wrap:wrap}.pagination>.muted{width:100%}.workspace-header{position:static}.editor-heading{gap:12px;align-items:start}.editor-heading button{white-space:nowrap}.product-table td{padding:8px 12px}.product-table img{width:48px;height:48px}}

.customer-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px}.customer-list{display:flex;flex-direction:column;align-self:start;gap:10px}.customer-list button{white-space:normal;text-align:left;line-height:1.6}.customer-list [aria-current=page]{border-color:#69733a;background:#f4f5ed}.customer-editor>h2{margin:24px 0 14px}.customer-editor>h2:first-child{margin-top:0}.customer-product{border:1px solid #ddd;padding:16px;margin:16px 0}.customer-order-list{display:grid;gap:16px;margin-top:20px}.customer-order-list p{overflow-wrap:anywhere;line-height:1.8}.customer-order-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.customer-order-actions select{width:auto;min-width:100px}.customer-order-actions button{white-space:nowrap}.customer-editor input[type=file]{margin-bottom:20px}@media(max-width:800px){.customer-layout{grid-template-columns:minmax(0,1fr)}.customer-list{max-height:240px;overflow:auto}}

.icp-footer{text-align:center;padding:20px 12px;color:#7c827c;font-size:12px}.icp-footer a{color:inherit;text-decoration:none}
