:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#1a1a1a;background:#f4f4f4;--red:#b5121b;--red-dark:#8c0e15;--black:#151515;--border:#d7d7d7}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input{font:inherit}
header{background:var(--black);color:#fff;border-bottom:5px solid var(--red);box-shadow:0 2px 9px #0003}
.header-inner{max-width:760px;min-height:78px;margin:auto;padding:12px 20px;display:flex;align-items:center;gap:18px}
.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-logo{display:block;width:155px;max-height:46px;object-fit:contain;object-position:left center;flex:none}.brand-copy{color:#ddd;text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:700;white-space:nowrap}
.header-context{margin-left:auto;color:#ddd;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
main{max-width:760px;margin:auto;padding:28px 20px 68px}.eyebrow{color:var(--red-dark);font-size:11px;font-weight:800;letter-spacing:.12em}h1{font-size:clamp(26px,5vw,34px);line-height:1.12;margin:8px 0 10px;letter-spacing:-.035em}.intro{color:#565656;margin:0 0 22px;line-height:1.5}
.card{background:#fff;border:1px solid var(--border);border-radius:6px;padding:20px;margin:12px 0;box-shadow:0 2px 5px #00000008}.card h2{font-size:17px;margin:0 0 8px}.card p{line-height:1.48;color:#555}
button{cursor:pointer;border-radius:5px;padding:11px 15px;border:1px solid #777;background:#fff;color:#222;font-weight:750;min-height:46px}button:hover{background:#f3f3f3}.primary{background:var(--red);border-color:var(--red);color:#fff;width:100%}.primary:hover{background:var(--red-dark)}button:disabled{opacity:.48;cursor:not-allowed}
.progress{display:flex;justify-content:space-between;gap:12px;align-items:center;border-left:5px solid var(--red)}.progress strong{font-size:16px}.progress span{color:#555}
.step-head{display:flex;align-items:center;gap:12px}.number{border-radius:50%;background:#ececec;color:#333;width:34px;height:34px;display:grid;place-items:center;font-weight:800;flex:none}.step-head h2{margin:0}.step p{margin:9px 0 14px 46px;font-size:14px}.captures{list-style:none;padding:0;margin:0 0 15px 46px}.captures li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #e4e4e4;font-size:14px;min-height:92px}.captures li span{flex:1}.step-actions{margin-left:46px}
.capture-button{display:inline-block;border-radius:5px;padding:12px 16px;background:#fff;border:1px solid var(--red);color:var(--red-dark);font-weight:750;cursor:pointer;min-height:46px}.capture-button:hover{background:#fff5f5}input[type=file]{position:absolute;width:1px;height:1px;opacity:0}.remove{border:0;color:var(--red-dark);padding:7px;font-size:13px;min-height:36px}.finish{margin-top:22px}
#notice:not(:empty){padding:12px 16px;border-radius:5px;border-left:4px solid #256b3b;background:#f1f8f3;margin:0 0 18px}#notice.error{border-left-color:var(--red);background:#fff0f0;color:var(--red-dark)}footer{text-align:center;color:#777;font-size:11px;padding:20px}
.field{display:block;margin:15px 0;font-weight:750}.field span{display:block;color:#666;font-size:12px;font-weight:400;margin:3px 0}.field input{width:100%;border:1px solid #aaa;border-radius:5px;padding:12px;font-size:16px}.field input:focus-visible,button:focus-visible,.capture-button:focus-visible{outline:3px solid #d55d62;outline-offset:2px}
#outputList{padding-left:20px;line-height:2}a{color:var(--red-dark);font-weight:700}.step.done{border-left:5px solid #256b3b}.step.done .number{background:#256b3b;color:#fff}.capture-preview{width:76px;height:76px;object-fit:cover;border-radius:5px;border:1px solid #ccc;flex:none}
.step .field{margin:14px 0 14px 46px}.step .field input{margin-top:7px}.captures li.document-capture{display:grid;grid-template-columns:1fr auto;gap:10px}.document-preview{grid-column:1/-1;width:100%;height:auto;max-height:390px;object-fit:contain;background:#f4f4f4}.scan-warning{color:var(--red-dark);font-weight:700}
#start button{width:100%;margin-top:10px}#recentPackets:not(:empty){border-top:1px solid var(--border);margin-top:20px;padding-top:10px}#recentPackets button{text-align:left}
@media(max-width:520px){.header-inner{min-height:70px;padding:10px 16px}.brand-logo{width:125px}.brand-copy{font-size:10px}.header-context{display:none}main{padding:24px 16px 54px}.card{padding:17px}.step p,.captures,.step-actions,.step .field{margin-left:0}.step-head{gap:9px}.step-head h2{font-size:16px}}
