:root{color-scheme:light;--ink:#203d33;--muted:#7c8881;--green:#234e3c;--line:#e2e6df;--pink:#fce4ec;--paper:#fffefa;--surface:#f4f5ef}*{box-sizing:border-box}body{margin:0;background:var(--surface);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.6}button,input,select{font:inherit}button,a,select{touch-action:manipulation}button,a{transition:background .16s,transform .16s}button{cursor:pointer}button:disabled,select:disabled{cursor:wait;opacity:.5}button:hover:not(:disabled){filter:brightness(.95)}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #a7c9a0;outline-offset:3px}button{border:0}a{color:inherit;text-decoration:none}.topbar{height:90px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(32px,calc((100vw - 1280px)/2));background:#f9faf5}.brand{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:650;letter-spacing:1px}.brand-mark{width:40px;height:40px;border-radius:12px;background:var(--green);color:#eef4da;display:grid;place-items:center;font-size:22px;font-weight:500}.brand small{display:block;font-size:9px;letter-spacing:2px;color:var(--muted);font-weight:500;line-height:1.2}.text-button{background:none;padding:8px 0;color:var(--muted);font-size:13px}.text-button:hover{color:var(--green)}.workspace{max-width:1280px;margin:0 auto;padding:45px 32px 24px}.page-intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{color:#7c906c;letter-spacing:2px;font-size:10px;font-weight:700;margin:0 0 10px}h1{font-size:34px;letter-spacing:-1px;line-height:1.4;font-weight:600;margin:0 0 10px}h1 span{color:#7c8b6d}h2{font-size:21px;line-height:1.5;letter-spacing:-.4px;font-weight:600;margin:8px 0}h3{font-size:17px;font-weight:500}.muted{color:var(--muted)}p{margin:8px 0}.small{font-size:12px}.date-pill{border:1px solid #dce3d4;border-radius:12px;padding:16px 20px;background:#f0f3e8;display:grid;grid-template-columns:auto auto auto;align-items:center;gap:0 10px;font-size:12px}.date-pill strong{font-size:16px;font-variant-numeric:tabular-nums}.date-pill small{grid-column:2/4;color:var(--muted);font-size:11px}.status-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:#7e9b64;margin-right:5px}.actions-grid{display:grid;grid-template-columns: .85fr 1.3fr;gap:18px;margin-bottom:26px}.action-card{border:1px solid var(--line);background:var(--paper);padding:26px 28px;border-radius:15px}.action-card p{color:var(--muted);font-size:13px}.step-label{font-size:11px;color:#8a967d;letter-spacing:1px;margin-bottom:13px}.step-label span{font-size:10px;letter-spacing:1px;margin-right:10px;background:#edf1e5;border-radius:5px;padding:4px 7px;color:var(--green)}.capture-card{background:#edf1e6;border-color:#dce4d2}.last-time{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);padding:16px 0 18px}.last-time strong{font-weight:500;color:#49634d}.primary{display:inline-flex;align-items:center;justify-content:center;gap:20px;background:var(--green);color:#f7faf1;border-radius:7px;padding:12px 21px;font-weight:500;min-height:44px;white-space:nowrap}.capture-card .primary{width:100%}.compare-card select,input{background:white;border:1px solid #dce2d5;border-radius:7px;padding:11px 12px;color:var(--ink)}.results{border:1px solid var(--line);border-radius:15px;background:var(--paper);overflow:hidden}.section-heading{display:flex;justify-content:space-between;align-items:center;padding:25px 28px 22px;border-bottom:1px solid var(--line)}.section-heading .eyebrow{margin-bottom:3px;font-size:9px}.section-heading h2{margin:0}.section-heading p{margin:5px 0 0}.outline-button{background:transparent;border:1px solid #ccd6c7;border-radius:7px;padding:9px 15px;color:var(--green);font-size:12px;white-space:nowrap;cursor:pointer;display:inline-block}.outline-button.disabled{color:#abb3a6;border-color:#e0e5dc;cursor:default;pointer-events:none}.empty-state{text-align:center;padding:55px 20px 62px;color:#87917f}.empty-icon{margin:auto;width:52px;height:52px;border:1px solid #dfe6d6;border-radius:14px;display:grid;place-items:center;font-size:35px;line-height:1;color:#97a78b;background:#f5f7ef}.empty-state h3{margin:15px 0 7px;color:#6c7a64}.empty-state p{font-size:12px;line-height:1.9;color:#9aa491}.workspace-footer{display:flex;justify-content:space-between;align-items:center;color:#8e9986;font-size:11px;padding:17px 2px}.workspace-footer button{font-size:11px}.footer-separator{padding:0 12px;color:#c6cebd}.message{background:#e6efdf;color:#34532c;border:1px solid #ccdcbc;padding:12px 17px;border-radius:8px;margin:0 0 22px;font-size:13px}.message.error,.error{color:#9d3c48}.message.error{background:#fff0f0;border-color:#f1cfd1}.message.working{background:#fff8e8;border-color:#e8d9b5;color:#86652c}.stats{display:flex;gap:26px;padding:18px 28px;border-bottom:1px solid var(--line);align-items:center;font-size:12px}.stats>div{display:flex;align-items:center;gap:7px;color:#7f8c7a}.stats strong{font-size:24px;font-weight:500;margin-left:8px;font-variant-numeric:tabular-nums;color:var(--ink)}.stat-dot{width:7px;height:7px;border-radius:50%}.add{background:#6b9d80}.delete{background:#b9a582}.change{background:#d49bac}.filter-label{margin-left:auto;display:flex;gap:10px;align-items:center;font-size:11px;color:var(--muted)}.filter-label select{border:1px solid var(--line);border-radius:5px;padding:5px;color:var(--ink);background:transparent}.table-wrap{overflow:auto;max-height:620px}table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px;text-align:left}th{position:sticky;top:0;z-index:1;background:#f1f4ea;font-weight:500;color:#7d8b70;padding:12px 15px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:14px 15px;border-bottom:1px solid #eef0e8;max-width:350px;min-width:90px;white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top}td:first-child{min-width:55px;color:#a7b09d}td:nth-child(2){min-width:100px}td:nth-child(3),td:nth-child(4){min-width:130px}td:last-child{min-width:200px}.changed-cell{background:var(--pink)}.type-badge{font-size:10px;padding:4px 8px;border-radius:4px;display:inline-block;white-space:nowrap}.type-add{background:#e9f1e5;color:#5d865b}.type-delete{background:#f1ece2;color:#a08b60}.type-change{background:#f9e9ee;color:#b87690}.result-foot{padding:8px 27px}dialog{border:1px solid var(--line);border-radius:15px;padding:28px;max-width:calc(100vw - 30px);color:var(--ink);background:var(--paper)}dialog::backdrop{background:#172f2480;backdrop-filter:blur(3px)}dialog p{color:var(--muted);font-size:13px;line-height:1.9}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:26px}.login-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at top,#e1e9d6,transparent 65%),var(--surface);padding:25px}.login-card{max-width:440px;width:100%;background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:42px}.login-card .brand-mark{margin-bottom:28px;width:50px;height:50px}.login-card h1{font-size:29px}.login-card>p{font-size:12px}.login-card form{margin:28px 0 23px}.login-card label{display:block;font-size:12px;margin-bottom:8px;color:var(--muted)}.login-card input{display:block;width:100%;margin-bottom:18px}.login-card button{width:100%}[hidden]{display:none!important}@media(min-width:1500px){.workspace{padding-top:65px}.page-intro{margin-bottom:40px}.actions-grid{margin-bottom:30px}}@media(max-width:800px){.topbar{height:76px;padding:0 22px}.workspace{padding:30px 20px}.page-intro{align-items:flex-start;gap:20px}h1{font-size:26px}.date-pill{padding:12px;grid-template-columns:auto 1fr;gap:4px}.date-pill .status-dot{display:none}.date-pill strong{grid-column:1/3}.date-pill small{grid-column:1/3}.actions-grid{grid-template-columns:1fr}.action-card{padding:23px}.stats{gap:15px;padding:15px}.stats strong{font-size:20px;margin-left:0}.filter-label{gap:5px}.section-heading{padding:20px;gap:12px}.section-heading p{max-width:230px}.workspace-footer{align-items:flex-start;gap:14px}.footer-separator{display:none}.workspace-footer>div{max-width:230px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Supplier comparison and ten-column detail table. */
.type-delete{color:#c62828;background:#fff0ee}.type-add{color:#16803c;background:#e9f1e5}.type-change{color:#9c6500;background:#fff4d6}.stat-dot.delete{background:#c62828}.stat-dot.change{background:#b38718}table th,table td{text-align:center;vertical-align:middle}td:nth-child(3){min-width:95px}td:nth-child(4),td:nth-child(5){min-width:130px}td:nth-child(6),td:nth-child(9){min-width:180px}td:nth-child(10){min-width:240px}@media(max-width:800px){.stats{flex-wrap:wrap}}

/* Compact comparison form: supplier left, today's order right. */
.compare-card h2{margin:0 0 20px}.compare-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.compare-field{min-width:0}.compare-field label{display:block;margin-bottom:7px;color:var(--muted);font-size:12px}.compare-field select{display:block;width:100%;min-width:0;height:46px;text-overflow:ellipsis}.compare-submit{display:flex;justify-content:center;margin-top:22px}.compare-submit .primary{min-width:160px}.compare-card .compare-hint{text-align:center;font-size:11px;margin:9px 0 0;color:#9aa491}@media(max-width:480px){.compare-filters{grid-template-columns:1fr}.compare-submit{margin-top:18px}}

.today-download-row{margin-top:19px;text-align:center}.today-download{font-size:12px;color:#49634d;text-decoration:underline;text-underline-offset:4px;cursor:pointer}.today-download:hover{color:var(--green)}.today-download[aria-disabled="true"]{color:#9aa491;cursor:default;text-decoration:none}

.workspace-footer{justify-content:flex-end}
/* Align the two primary actions and their secondary rows. */
.capture-card,.compare-card{display:flex;flex-direction:column}.capture-card .primary{margin-top:auto}.compare-submit{margin-top:auto;padding-top:22px}.today-download-row,.compare-card .compare-hint{height:20px;min-height:20px;margin:18px 0 0;line-height:20px}
/* Match both actions at about half the previous capture button width. */
.actions-grid .primary{width:160px;max-width:100%;min-width:0}.capture-card .primary{align-self:center}

/* Paired old/new values in the difference report. */
td:nth-child(6),td:nth-child(7){min-width:140px}td:nth-child(8),td:nth-child(9),td:nth-child(10){min-width:95px}td:nth-child(11),td:nth-child(12){min-width:90px}td:nth-child(13){min-width:240px}
