:root{--red:#c71924;--red-dark:#9f111a;--green:#3e664d;--bg:#f6f4ef;--text:#1d2227;--muted:#697078;--line:#ddd8cf}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text)}header{height:72px;background:#fff;border-bottom:3px solid var(--red);display:flex;align-items:center;padding:8px max(16px,env(safe-area-inset-left));gap:12px;position:sticky;top:0;z-index:20}header img{height:54px}header span{font-weight:800;font-size:20px;flex:1}.ghost{border:0;background:none;color:var(--red)}main{max-width:760px;margin:0 auto;padding:18px}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 4px 18px #0000000d}.narrow{max-width:430px;margin:8vh auto;text-align:center}.hero-logo{width:190px;max-width:70%;margin-bottom:10px}h1,h2{margin-top:0}label{display:block;font-weight:650;margin:12px 0}input,textarea{width:100%;border:1px solid #cfcac1;border-radius:10px;padding:13px;font:inherit;margin-top:6px;background:#fff}.pin{text-align:center;letter-spacing:.45em;font-size:26px}.primary,.secondary,.button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border-radius:10px;border:0;padding:11px 16px;font:inherit;font-weight:750;text-decoration:none;cursor:pointer}.primary{background:var(--red);color:white}.primary:active{background:var(--red-dark)}.secondary{background:#eef3ef;color:var(--green);border:1px solid #cbd8cf}.big{width:100%;min-height:62px;font-size:18px;margin:8px 0}.steps{display:flex;overflow:auto;gap:7px;margin-bottom:12px}.steps span{white-space:nowrap;padding:7px 10px;border-radius:20px;background:#e9e5dd;font-size:12px}.steps .active{background:var(--red);color:#fff}.radio-row{display:flex;gap:16px;flex-wrap:wrap}.radio-row label,.check{font-weight:600}.radio-row input,.check input{width:auto;margin-right:6px}.nav{display:flex;gap:10px;justify-content:space-between;margin-top:20px}.nav>*{flex:1}.results{border-radius:10px;overflow:hidden}.result{padding:10px;background:#f5f7f5;border-bottom:1px solid #dde2dd;cursor:pointer}.products{display:grid;gap:10px}.product{display:grid;grid-template-columns:84px 1fr auto;gap:12px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:9px}.product img{width:78px;height:88px;object-fit:contain;border-radius:8px;background:white}.qty{display:flex;align-items:center;gap:8px}.qty button{width:36px;height:36px;border:0;border-radius:8px;background:#edf2ee;color:var(--green);font-size:22px}.qty b{min-width:24px;text-align:center}.camera{background:var(--red);color:#fff;border-radius:10px;padding:13px;text-align:center}.camera input{display:none}.preview-img{width:100%;max-height:330px;object-fit:contain;border-radius:10px;margin:10px 0}#signature{width:100%;height:280px;border:2px dashed #b9b5ad;border-radius:12px;touch-action:none;background:#fff}.rotate-note{background:#fff3cd;border:1px solid #edd98d;border-radius:10px;padding:10px;margin-bottom:12px}.summary-row{display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid #eee}.summary-products{margin:12px 0;padding:12px;background:#f7f7f5;border-radius:10px}.archive-head{display:flex;justify-content:space-between;align-items:center}.archive-item{padding:12px 0;border-bottom:1px solid #eee;display:grid;grid-template-columns:1fr auto;gap:8px}.status{font-size:12px;padding:4px 8px;border-radius:12px;background:#dcebdd;color:#295738}.muted,.hint{color:var(--muted);font-size:13px}#toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);background:#222;color:#fff;padding:10px 14px;border-radius:9px;display:none;z-index:99}@media(max-width:560px){main{padding:12px}.card{padding:15px}.product{grid-template-columns:70px 1fr;}.product img{width:64px;height:74px}.qty{grid-column:2}.radio-row{gap:8px}.radio-row label{flex:1;min-width:130px}}@media(orientation:landscape) and (max-height:600px){.signature-step{padding:10px 16px}.signature-step h2,.signature-step p{display:none}.signature-step #signature{height:calc(100vh - 190px)}.signature-step .rotate-note{display:none}}
