:root{font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,sans-serif;color:#18211c;background:#eef1ec;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 50% 0,#fff 0,#f6f8f4 30%,#edf0eb)}button,input{font:inherit}button{cursor:pointer}.shell{width:min(100%,520px);min-height:100vh;margin:auto;padding:max(24px,env(safe-area-inset-top)) 18px max(28px,env(safe-area-inset-bottom))}.topbar{display:flex;align-items:center;gap:13px;padding:6px 2px 22px}.brand-mark{display:grid;place-items:center;width:47px;height:47px;border-radius:15px;color:#fff;background:#214f38;box-shadow:0 8px 24px #214f3833}.brand-mark svg{width:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}.eyebrow,.section-kicker{margin:0 0 3px;color:#789081;font-size:10px;font-weight:800;letter-spacing:.16em}h1{margin:0;font-size:22px;line-height:1.15;letter-spacing:-.02em}.data-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:15px;border:1px solid #dfe5de;border-radius:18px;background:#fffc;box-shadow:0 8px 30px #263b2d0b}.data-copy{display:flex;align-items:center;min-width:0;gap:10px}.data-copy>div{min-width:0}.data-copy strong{display:block;font-size:14px}.data-copy p{overflow:hidden;margin:3px 0 0;color:#7b867e;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.status-dot{flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:#c7cec8;box-shadow:0 0 0 5px #edf0ed}.ready .status-dot{background:#4ba872;box-shadow:0 0 0 5px #e2f3e8}.file-button{flex:0 0 auto;padding:9px 12px;border:1px solid #cdd8cf;border-radius:11px;color:#214f38;background:#f5f8f5;font-size:12px;font-weight:750;cursor:pointer}.file-button input{position:absolute;width:1px;height:1px;opacity:0}.scanner-card{padding:20px;border:1px solid #e1e5df;border-radius:26px;background:#fff;box-shadow:0 20px 55px #2c3f3112}.scanner-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px}.scanner-heading h2{margin:0;font-size:19px;letter-spacing:-.02em}.camera-badge{padding:6px 9px;border-radius:20px;color:#7d8780;background:#f0f2ef;font-size:10px}.camera-badge.live{color:#24613f;background:#ddf3e5}.camera-badge.live:before{content:"";display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#34a261;animation:pulse 1.2s infinite}.video-stage{position:relative;display:grid;place-items:center;overflow:hidden;aspect-ratio:1.48;border-radius:18px;background:#e9eee9}.video-stage video{width:100%;height:100%;object-fit:cover;opacity:0}.video-stage.active video{opacity:1}.video-empty{position:absolute;text-align:center;color:#748078}.video-empty p{margin:16px 0 4px;color:#556158;font-size:13px;font-weight:650}.video-empty small{font-size:10px}.barcode-icon{display:flex;align-items:center;justify-content:center;gap:4px;height:47px}.barcode-icon span{display:block;width:3px;height:31px;border-radius:2px;background:#94a299}.barcode-icon span:nth-child(2),.barcode-icon span:nth-child(6){width:6px;height:43px}.barcode-icon span:nth-child(4){width:4px;height:38px}.scan-frame{position:absolute;inset:61% 5% 15%;opacity:0;pointer-events:none;transition:inset .22s ease}.active .scan-frame{opacity:1}.scan-frame i{position:absolute;width:27px;height:22px;border-color:#caffcf;border-style:solid;filter:drop-shadow(0 1px 3px #173d28)}.scan-frame i:nth-child(1){top:0;left:0;border-width:3px 0 0 3px;border-radius:7px 0 0}.scan-frame i:nth-child(2){top:0;right:0;border-width:3px 3px 0 0;border-radius:0 7px 0 0}.scan-frame i:nth-child(3){bottom:0;left:0;border-width:0 0 3px 3px;border-radius:0 0 0 7px}.scan-frame i:nth-child(4){right:0;bottom:0;border-width:0 3px 3px 0;border-radius:0 0 7px}.scan-line{position:absolute;top:0;left:7%;width:86%;height:2px;background:#caffcf;box-shadow:0 0 8px #8cff9d;animation:scan 2s ease-in-out infinite}.primary-button{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;margin-top:14px;padding:14px;border:0;border-radius:14px;color:#fff;background:#214f38;font-weight:750;box-shadow:0 9px 24px #214f3828}.primary-button.stop{background:#78564d}.primary-button:disabled{cursor:wait;opacity:.78}.primary-button svg{width:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.divider{display:flex;align-items:center;gap:12px;margin:20px 0 15px;color:#a0a8a2;font-size:10px}.divider:before,.divider:after{content:"";height:1px;flex:1;background:#edf0ec}.lookup-form label{display:block;margin:0 0 7px 2px;color:#59645c;font-size:11px;font-weight:700}.input-row{display:flex;gap:8px}.input-row input{min-width:0;flex:1;padding:12px 13px;border:1px solid #dfe5df;border-radius:12px;outline:0;background:#fafbfa;font-size:14px;text-transform:uppercase}.input-row input:focus{border-color:#7ba18a;box-shadow:0 0 0 3px #e9f2ec}.input-row button{padding:0 17px;border:0;border-radius:12px;color:#214f38;background:#e4eee7;font-size:13px;font-weight:750}.result-card{margin-top:14px;padding:25px 20px 20px;border:1px solid #cfe5d7;border-radius:24px;text-align:center;background:linear-gradient(145deg,#f7fff9,#edf8f0);box-shadow:0 16px 42px #315d4012}.result-card[hidden]{display:none}.result-icon{display:grid;place-items:center;width:44px;height:44px;margin:auto;border-radius:50%;color:#fff;background:#3c9a63}.result-icon svg{width:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.result-card>p:first-of-type{margin:13px 0 5px;color:#60806b;font-size:11px;font-weight:700;letter-spacing:.08em}.result-card h2{display:block;margin:0;font-size:28px}.order-products{margin-bottom:12px;padding:13px;border:1px solid #cddfd3;border-radius:15px;text-align:left;background:#f8fcf9}.order-products>strong{display:block;margin-bottom:7px;color:#286443;font-size:12px}.order-products ol{margin:0;padding-left:22px;color:#405047;font-size:12px;font-weight:600;line-height:1.6}.order-products li+li{margin-top:5px}.match-section-title{margin:14px 2px 8px;color:#607068;text-align:left;font-size:11px;font-weight:800;letter-spacing:.08em}.product-result{padding:13px;border:1px solid #dbe9df;border-radius:15px;text-align:left;background:#ffffffb8}.product-result+.product-result{margin-top:10px}.product-result>strong{display:block;color:#344a3c;font-size:12px;line-height:1.55}.product-result>p{margin:8px 0 0;color:#7a877f;font-size:10px;font-weight:500}.buyer-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.buyer-chip{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px 7px;padding:7px 10px;border:1px solid #cfe5d7;border-radius:12px;color:#26362d;background:#fff;font-size:14px;text-align:left}.buyer-chip.confirmed{border-color:#ef9a9a;color:#a42121;background:#fff1f1;box-shadow:0 0 0 2px #ffe2e2 inset}.buyer-name{font-size:18px;font-weight:800}.purchase-detail{color:#617068;font-size:11px;font-weight:650;line-height:1.45}.confirmed .purchase-detail{color:#a42121}.buyer-chip small{padding:2px 5px;border-radius:8px;font-size:9px;font-weight:700}.buyer-chip small.high{color:#286443;background:#ddf3e5}.buyer-chip small.medium{color:#8a6422;background:#fff0ca}.buyer-chip.confirmed small{color:#fff;background:#d33434}.export-excel-button{display:block;width:100%;margin:12px 0 0;padding:11px 13px;border:0;border-radius:12px;color:#fff;background:#d33434;font-size:13px;font-weight:800}.matching-text{color:#607068;font-size:14px;font-weight:600}.no-buyer{color:#9a7467;font-size:12px;font-weight:600}.result-spinner{width:21px;height:21px;border:2px solid #ffffff66;border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.result-card #resultNumber{margin:8px 0 17px;color:#738078;font-size:12px}.result-card button{padding:10px 15px;border:1px solid #bdd5c5;border-radius:11px;color:#286443;background:#fff;font-size:12px;font-weight:700}button.buyer-chip{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px 7px;padding:7px 10px;border:1px solid #cfe5d7;color:#26362d;background:#fff;font-size:14px;text-align:left}button.buyer-chip.confirmed{border-color:#ef9a9a;color:#a42121;background:#fff1f1;box-shadow:0 0 0 2px #ffe2e2 inset}button.export-excel-button{display:block;width:100%;margin:12px 0 0;padding:11px 13px;border:0;color:#fff;background:#d33434;font-size:13px;font-weight:800}.result-card.not-found{border-color:#e6d8d1;background:#fff9f6}.not-found .result-icon{background:#a9705e}.not-found h2{font-size:18px}.toast{position:fixed;z-index:10;left:50%;bottom:max(22px,env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 36px);margin:0;padding:11px 16px;border-radius:12px;color:#fff;background:#25362c;box-shadow:0 10px 35px #0003;font-size:12px;opacity:0;transform:translate(-50%,15px);transition:.25s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%)}.toast.error{background:#8c5144}.toast.success{background:#28704a}footer{padding:20px 0 0;color:#929a94;text-align:center;font-size:10px}@keyframes scan{0%,to{top:5%}50%{top:93%}}@keyframes pulse{50%{opacity:.35}}@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:521px){.shell{padding-top:42px;padding-bottom:42px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
