*{box-sizing:border-box}body{margin:0;background:#f3ebe6;color:#382629;font:16px/1.55 Arial,Helvetica,sans-serif}.wrap{max-width:640px;margin:32px auto;padding:0 16px 48px}.card{background:#fffaf6;border:1px solid #e5d5cb;border-radius:12px;overflow:hidden}header{background:#4b1520;color:#fff3e5;padding:30px}header p{margin:0}.eyebrow{font-size:12px;letter-spacing:.12em;font-weight:700;color:#f4d3c2}h1{font:normal 32px/1.2 Georgia,serif;margin:12px 0}h2{font-size:19px;margin:0 0 16px}.body{padding:26px 30px 32px}p{margin:0 0 16px}label,legend{font-weight:700}label{display:block;margin:14px 0 6px}.option{display:flex;gap:12px;align-items:flex-start;padding:13px;border:1px solid #d7c5bc;border-radius:8px;font-weight:400;margin:8px 0;cursor:pointer}.option input{width:20px;height:20px;accent-color:#762638;flex:none;margin:2px 0}fieldset{border:0;padding:0;margin:20px 0}.field{margin:16px 0}input:not([type=radio]){width:100%;min-height:48px;padding:12px;border:1px solid #a99790;border-radius:8px;background:#fff;color:#382629;font:16px Arial}button{min-height:48px;padding:12px 20px;border:0;border-radius:8px;background:#762638;color:white;font:700 16px Arial;cursor:pointer}button.secondary{background:#eee3dd;color:#542633;border:1px solid #d7c5bc}button:disabled{opacity:.55;cursor:default}:focus-visible{outline:3px solid #ce8a56;outline-offset:3px}.muted{font-size:14px;color:#6e5d58;margin-top:20px}.status{padding:14px;border-radius:8px;background:#f7e8dc;color:#633723}.success{background:#e8f3eb;color:#174c2a}.error{background:#fae9e6;color:#8a2520}.result{margin:16px 0;padding:18px;border:1px solid #dcc8bc;border-radius:8px}.result strong{font-size:20px}video{width:100%;border-radius:8px;background:#1c1415;margin:12px 0}[hidden]{display:none!important}@media(max-width:480px){.wrap{margin:16px auto}.body,header{padding:22px}h1{font-size:27px}}

.scan-dialog{width:min(90vw,420px);border:0;border-radius:12px;padding:24px;background:#fffaf6;color:#382629;box-shadow:0 12px 36px #1c081277}.scan-dialog::backdrop{background:rgba(30,10,15,.7)}.scan-message{padding:18px;border-radius:8px}.scan-message h2{font-size:21px;line-height:1.3;margin:0 0 10px}.scan-message p{margin:0;white-space:pre-line}.scan-hint{margin:16px 0;color:#6e5d58;font-size:14px}.scan-dialog button{width:100%}

.scan-stats{margin:0 0 20px;padding:16px;border:1px solid #e5d5cb;border-radius:8px;background:#fff}.scan-stats p{margin:0}.scan-stats .stats-label{font-size:12px;letter-spacing:.08em;font-weight:700;color:#754e4a}.scan-stats .scan-count{font-size:21px;line-height:1.3;font-weight:700;color:#4b1520;margin:6px 0}.scan-stats .scan-count-detail{font-size:14px;color:#6e5d58;margin-bottom:12px}.scan-stats button{font-size:14px;min-height:44px;padding:10px 14px}.scan-stats .stats-error{margin-top:8px;color:#8a2520;font-size:14px}
