html.camera-scanner-open{overflow:hidden}
.camera-scanner{--scanner-u:min(.1851851852vw,1px);position:fixed;inset:0;width:100%;max-width:540px;height:100%;height:100dvh;max-height:100dvh;margin:0 auto;padding:0;border:0;overflow:auto;overscroll-behavior:contain;background:#303030;color:white;font-family:inherit}
.camera-scanner::backdrop{background:#303030}
.camera-scanner-shell{min-height:100%;display:flex;flex-direction:column}
.camera-scanner-header{display:flex;align-items:center;gap:calc(18 * var(--scanner-u));height:calc(72 * var(--scanner-u));min-height:48px;padding:0 calc(22 * var(--scanner-u));flex-shrink:0;background:var(--blue,#1d3d81)}
.camera-scanner-header h2{margin:0;font-size:calc(25 * var(--scanner-u));font-weight:400;line-height:1.4;letter-spacing:1px}
.camera-scanner-back{display:grid;place-items:center;min-width:36px;min-height:40px;margin-left:-8px;padding:6px;border:0;background:transparent;color:white}
.camera-scanner-back svg{width:calc(25 * var(--scanner-u));min-width:18px;height:28px;fill:none;stroke:currentColor;stroke-width:2}
.camera-scanner button:focus-visible{outline:2px solid white;outline-offset:3px}
.camera-scanner-stage{position:relative;width:100%;height:min(104vw,560px);min-height:180px;max-height:calc(100dvh - 140px);flex-shrink:0;overflow:hidden;background:#171717}
.camera-scanner-video{display:block;width:100%;height:100%;object-fit:cover;background:#171717}
.camera-scanner-waiting{position:absolute;inset:0;display:grid;place-items:center;padding:25px;text-align:center;color:#d1d1d1;font-size:15px;letter-spacing:.5px}
.camera-scanner-target{position:absolute;left:4%;right:4%;top:22%;bottom:22%;pointer-events:none}
.camera-corner{position:absolute;width:calc(40 * var(--scanner-u));height:calc(40 * var(--scanner-u));min-width:24px;min-height:24px;border-color:white;border-style:solid;border-width:0}
.camera-corner-tl{left:0;top:0;border-top-width:2px;border-left-width:2px}
.camera-corner-tr{right:0;top:0;border-top-width:2px;border-right-width:2px}
.camera-corner-bl{left:0;bottom:0;border-bottom-width:2px;border-left-width:2px}
.camera-corner-br{right:0;bottom:0;border-bottom-width:2px;border-right-width:2px}
.camera-scanner-line{position:absolute;left:0;right:0;top:50%;height:2px;background:#ff1f22;box-shadow:0 0 4px #ff1f2250}
.camera-scanner[data-state="ready"] .camera-scanner-waiting{display:none}
.camera-scanner[data-state="ready"] .camera-scanner-line{animation:camera-scan-sweep 3s ease-in-out infinite alternate}
.camera-scanner:not([data-state="ready"]) .camera-scanner-target{opacity:.35}
.camera-scanner:not([data-state="ready"]) .camera-scanner-line{display:none}
.camera-scanner-controls{padding:22px 24px max(26px,env(safe-area-inset-bottom));text-align:center}
.camera-scanner-status{max-width:430px;margin:0 auto;color:#d4d4d4;font-size:13px;line-height:1.8;letter-spacing:.2px}
.camera-scanner[data-state="error"] .camera-scanner-status{color:#fff}
.camera-scanner-retry{margin-top:18px;padding:10px 22px;border:1px solid #919191;border-radius:6px;background:transparent;color:white;font:inherit;font-size:14px;line-height:1.4}
.camera-scanner-retry:hover{background:#ffffff12}
.camera-scanner [hidden]{display:none!important}
@keyframes camera-scan-sweep{from{top:15%}to{top:85%}}
@media(prefers-reduced-motion:reduce){.camera-scanner[data-state="ready"] .camera-scanner-line{animation:none}}
