:root{--ink:#10232c;--muted:#64777e;--line:#d8e5e3;--canvas:#edf5f3;--teal:#0b8b82;--teal-dark:#076b65;--mint:#e0f5ef;--navy:#102b36;--danger:#b5473b;--amber:#a56612}*{box-sizing:border-box}[hidden]{display:none!important}html{background:var(--canvas)}body{margin:0;min-width:320px;color:var(--ink);background:radial-gradient(circle at 8% 2%,#51b7a529,transparent 26rem),linear-gradient(180deg,#f8fbfa,var(--canvas));font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,textarea,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}.app-shell{width:min(1240px,100%);min-height:100vh;margin:auto;padding:22px clamp(14px,4vw,46px)}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.brand-lockup{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;color:#fff;background:linear-gradient(145deg,var(--navy),var(--teal));box-shadow:0 10px 24px #076b6538;font-size:1.5rem}.eyebrow{margin:0;color:var(--teal-dark);font-size:.67rem;font-weight:900;letter-spacing:.13em}.topbar h1{margin:2px 0 0;font-size:clamp(1.2rem,3vw,1.65rem)}.topbar h1 small{color:var(--muted);font-size:.7em;font-weight:500}.privacy-chip{padding:8px 11px;border:1px solid #c6e0db;border-radius:999px;color:var(--teal-dark);background:#ffffffaa;font-size:.7rem;font-weight:800}.progress{display:flex;align-items:center;justify-content:center;max-width:650px;margin:0 auto 18px}.progress span{display:flex;align-items:center;gap:6px;color:#91a2a5;font-size:.68rem;font-weight:800}.progress span b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#dfe8e6}.progress span small{font-weight:500}.progress span.active{color:var(--teal-dark)}.progress span.active b{color:#fff;background:var(--teal)}.progress i{width:70px;height:2px;margin:0 9px;background:#d6e2df}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start}.panel,.instruction-card{border:1px solid #cbdedb;border-radius:22px;background:#fffffff2;box-shadow:0 18px 50px #28575a12}.capture-panel,.review-section,.qr-section{padding:clamp(15px,2.5vw,25px)}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.panel-heading>div{display:flex;align-items:center;gap:9px}.panel-heading h2{margin:0;font-size:1rem}.panel-heading p{margin:1px 0 0;color:var(--muted);font-size:.67rem}.step-number{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;color:var(--teal-dark);background:var(--mint);font-size:.68rem;font-weight:900}.status-chip{padding:5px 8px;border-radius:999px;color:var(--muted);background:#eef4f2;font-size:.6rem;font-weight:900}.camera-stage{position:relative;display:grid;place-items:center;height:clamp(230px,36vh,340px);overflow:hidden;border:1px dashed #aec8c4;border-radius:17px;background:#e8efed}.camera-stage video,.camera-stage img{width:100%;height:100%;object-fit:cover;background:#142b32}.empty-camera{display:grid;place-items:center;text-align:center;color:var(--muted)}.empty-camera strong{color:var(--ink);font-size:.82rem}.empty-camera p{margin:3px 0;font-size:.7rem}.large-icon{font-size:2.8rem;color:#78a8a0}.scan-guide{position:absolute;inset:8%}.scan-guide span{position:absolute;width:28px;height:28px;border-color:#7ce1ce;border-style:solid}.scan-guide span:nth-child(1){top:0;left:0;border-width:2px 0 0 2px}.scan-guide span:nth-child(2){top:0;right:0;border-width:2px 2px 0 0}.scan-guide span:nth-child(3){bottom:0;left:0;border-width:0 0 2px 2px}.scan-guide span:nth-child(4){right:0;bottom:0;border-width:0 2px 2px 0}.scanning-layer{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:#071e24bb}.scan-line{position:absolute;left:8%;right:8%;height:2px;background:linear-gradient(90deg,transparent,#6ff1d3,transparent);box-shadow:0 0 18px #4debc5;animation:scan 1.6s ease-in-out infinite}@keyframes scan{0%,100%{top:15%}50%{top:85%}}.scanner-message{display:flex;align-items:center;gap:8px;min-height:20px;margin:10px 2px;color:var(--muted);font-size:.69rem}.scanner-message>span{width:7px;height:7px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 4px #0b8b8218}.error-text{color:var(--danger)!important}.capture-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:9px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:45px;padding:0 14px;border:1px solid transparent;border-radius:12px;font-size:.76rem;font-weight:900}.btn.primary,.submit-button{color:#fff;background:linear-gradient(135deg,var(--teal-dark),var(--teal));box-shadow:0 10px 22px #076b652b}.btn.secondary{color:var(--ink);border-color:var(--line);background:#fff}.help{margin-top:12px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;color:var(--muted);font-size:.68rem}.help summary{color:var(--ink);font-weight:800}.instruction-card{display:grid;grid-template-columns:34px 1fr;padding:22px;gap:2px 9px}.instruction-card>span{grid-row:span 2;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:var(--teal-dark);background:var(--mint);font-weight:900}.instruction-card h2{margin:2px 0;font-size:.82rem}.instruction-card p{margin:0 0 20px;color:var(--muted);font-size:.68rem}.link-button{border:0;color:var(--teal-dark);background:none;font-size:.7rem;font-weight:800}.review-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px}.paper-preview{height:360px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#e9efed}.paper-preview img{max-width:100%;max-height:100%;object-fit:contain}.mini-note{margin:6px;color:var(--muted);text-align:center;font-size:.65rem}.row-editor{display:grid;gap:10px}.order-row{padding:13px;border:1px solid var(--line);border-radius:13px;background:#f9fbfa}.row-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.row-head small{color:var(--muted)}.delete-row{padding:4px 7px;border:0;color:var(--danger);background:none;font-size:.64rem;font-weight:800}.product-picker{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:9px}.product-picker label{position:relative}.product-picker input{position:absolute;opacity:0}.product-picker span{display:flex;align-items:center;gap:4px;padding:6px 8px;border:1px solid #ccdcd9;border-radius:8px;color:var(--muted);background:#fff;font-size:.62rem;font-weight:700}.product-picker input:checked+span{color:#fff;border-color:var(--teal);background:var(--teal)}.product-picker b{font-size:.67rem}.field-grid{display:grid;grid-template-columns:1.3fr repeat(4,1fr);gap:7px}.field-grid label{color:var(--muted);font-size:.6rem;font-weight:800}.field-grid label small{font-weight:500}.field-grid input{width:100%;margin-top:4px;padding:9px 7px;border:1px solid #bfd0cd;border-radius:8px;outline:none}.field-grid input:focus{border-color:var(--teal);box-shadow:0 0 0 3px #0b8b8212}.add-row{width:100%;margin-top:9px}.warning-box{margin-bottom:12px;padding:11px 13px;border:1px solid #ecd7ac;border-radius:11px;color:#805314;background:#fff7e6;font-size:.68rem}.warning-box ul{margin:5px 0 0;padding-left:18px}.output-card{display:grid;grid-template-columns:180px 1fr;gap:12px;margin-top:15px;padding:13px;border-radius:13px;background:#10272f;color:#d7fff5}.output-card strong{display:block}.output-card small{display:block;margin-top:3px;color:#91b4b3;font-size:.62rem}.output-card textarea{min-height:100px;padding:10px;border:1px solid #ffffff18;border-radius:8px;resize:vertical;color:#d7fff5;background:#071c22;font:13px/1.7 Consolas,monospace}.confirm-box{display:flex;align-items:flex-start;gap:10px;margin:14px 0;padding:13px;border:1px solid var(--line);border-radius:12px;background:#f8fbfa}.confirm-box input{width:19px;height:19px;accent-color:var(--teal)}.confirm-box b,.confirm-box small{display:block}.confirm-box small{color:var(--muted)}.submit-button{width:100%;border:0;background:linear-gradient(135deg,#0a655f,#0b9b90)}.submit-message{min-height:20px;text-align:center;font-size:.7rem}.qr-section{max-width:570px;margin:0 auto;text-align:center}.success-check{display:grid;place-items:center;width:48px;height:48px;margin:5px auto 10px;border-radius:50%;color:#fff;background:#198754;font-size:1.5rem}.qr-section h2{margin:5px 0 0}.qr-section>p{margin:3px 0;color:var(--muted)}.order-qr{display:grid;place-items:center;width:min(330px,90vw);height:min(330px,90vw);margin:16px auto;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 14px 38px #153c411c}.order-qr svg{width:100%;height:100%}.reference{display:block;font:800 1rem Consolas,monospace}.expiry{font-size:.68rem}.live-status{display:flex;align-items:center;justify-content:center;gap:8px;margin:13px auto;padding:10px;border-radius:10px;color:#805314;background:#fff5d9;font-size:.7rem;font-weight:800}.live-status span{width:8px;height:8px;border-radius:50%;background:#e2a62b;animation:pulse 1s infinite}.live-status.done,.live-status.approved{color:#176347;background:#e2f6ee}.live-status.done span,.live-status.approved span{width:auto;height:auto;background:none;animation:none}.live-status.rejected{color:#982e29;background:#fff0ed}.live-status.rejected span{width:auto;height:auto;background:none;animation:none}@keyframes pulse{50%{opacity:.3}}.security-note{font-size:.68rem!important}.qr-section>.btn{margin-top:10px}footer{display:flex;justify-content:space-between;gap:15px;padding:15px 3px 0;color:#71878b;font-size:.64rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:850px){.workspace{grid-template-columns:1fr}.instruction-card{display:none}.review-layout{grid-template-columns:1fr}.paper-preview{height:270px}.topbar{align-items:flex-start}.privacy-chip{font-size:0;width:35px;height:35px;padding:0}.privacy-chip:after{content:'✓';display:grid;place-items:center;height:100%;font-size:1rem}.field-grid{grid-template-columns:1.3fr 1fr 1fr}.field-grid label:nth-last-child(-n+2){grid-column:span 1}.output-card{grid-template-columns:1fr}.progress span{font-size:.6rem}.progress i{width:25px}}@media(max-width:520px){.app-shell{padding:13px 10px}.capture-panel,.review-section,.qr-section{padding:13px}.panel{border-radius:17px}.camera-stage{height:270px}.capture-actions{grid-template-columns:1fr}.field-grid{grid-template-columns:1fr 1fr}.field-grid label:first-child{grid-column:span 2}.progress span{flex-direction:column;gap:2px;text-align:center}.progress span small{display:none}footer{flex-direction:column;gap:2px}.order-qr{width:min(300px,88vw);height:min(300px,88vw)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;scroll-behavior:auto!important}}
