.face-scanner{border:1px solid #c8ded9;border-radius:20px;padding:22px;background:#fff;color:#173c3b;max-width:700px;margin:20px auto}.face-scanner header{display:flex;justify-content:space-between;gap:12px;align-items:start}.face-scanner h2{margin:0;font-size:24px}.face-scanner p{line-height:1.6}.face-scanner button{font:inherit;padding:11px 16px;border:1px solid #bfd7d2;border-radius:10px;cursor:pointer}.face-scan-primary{background:#0e8075;color:#fff;border-color:#0e8075!important}.face-scanner button:disabled{opacity:.55;cursor:wait}.face-scan-preview{display:none;position:relative;aspect-ratio:3/4;max-width:420px;margin:20px auto;background:#102c2a;border-radius:18px;overflow:hidden}.face-scan-preview.active{display:block}.face-scan-preview video{width:100%;height:100%;object-fit:contain;transform:scaleX(-1)}.face-scan-oval{position:absolute;border:3px dashed #fff9;width:58%;height:61%;border-radius:50%;left:21%;top:18%;box-shadow:0 0 0 200px #001e1c33;pointer-events:none}.face-scan-oval.good{border-color:#54e9bd;border-style:solid}.face-scan-steps{display:flex;justify-content:center;gap:18px;margin:16px}.face-scan-steps span{display:grid;place-items:center;width:34px;height:34px;border:2px solid #c6dad5;border-radius:50%;font-weight:700}.face-scan-steps .current{border-color:#0e8075}.face-scan-steps .complete{background:#0e8075;color:#fff;border-color:#0e8075}.face-scan-hint{font-weight:600;min-height:48px;text-align:center}.face-scanner progress{display:block;width:100%;accent-color:#0e8075;margin:12px 0}.face-scan-shots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.face-scan-shots figure{margin:0;min-width:0}.face-scan-shots img{width:100%;aspect-ratio:3/4;object-fit:contain;background:#e3efed;border-radius:12px}.face-scan-shots figcaption{font-size:12px;text-align:center;margin:6px 0}.face-scan-actions{display:flex;gap:10px;flex-wrap:wrap}.face-scan-error{color:#a71d3d;background:#fff1f4;padding:12px;border-radius:10px}.face-scan-success{color:#126846;background:#e6f8f0;padding:12px;border-radius:10px}.face-scan-page{max-width:860px;padding:20px;margin:auto;font-family:system-ui,sans-serif;color:#173c3b}.face-scan-page h1{font-size:26px}.face-scan-page select{font:inherit;width:100%;padding:12px;border:1px solid #bfd7d2;border-radius:10px}.face-scan-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.face-scan-gallery article{border:1px solid #bfd7d2;border-radius:12px;padding:8px}.face-scan-gallery img{width:100%;height:150px;object-fit:contain;background:#edf5f3}.face-scan-gallery button{display:block;max-width:100%;margin-top:6px;padding:9px;border:1px solid #bfd7d2;border-radius:8px}.face-scan-gallery p{font-size:13px;overflow-wrap:anywhere}html[data-theme=dark] .face-scanner{background:#142b2e;color:#e8fffb;border-color:#315b5c}html[data-theme=dark] .face-scanner p{color:#bddbd6}html[data-theme=dark] .face-scan-page{color:#e8fffb;background:#0e2022}html[data-theme=dark] .face-scanner .face-scan-error{background:#40262c;color:#ffd4d8}html[data-theme=dark] .face-scanner button.secondary{background:#19383a;color:#dcefeb;border-color:#47716f}@media(max-width:550px){.face-scanner{padding:15px}.face-scan-page{padding:12px}.face-scan-actions button{flex:1}.face-scan-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.face-scan-shots{gap:7px}}.face-scan-direction{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);font:700 74px/1 system-ui;color:#fff;text-shadow:0 2px 10px #0009;pointer-events:none}.face-scan-face-status{position:absolute;bottom:12px;left:50%;transform:translate(-50%);white-space:nowrap;padding:6px 13px;border-radius:20px;background:#102c2acc;color:#fff;font-size:14px;pointer-events:none}.face-scan-step-label{text-align:center;margin:4px 0 8px!important;font-size:14px}.face-scan-hint{margin-bottom:4px}.face-scan-oval{transition:border-color .15s ease}.face-scan-steps span{transition:background .15s,border-color .15s}.face-scanner.is-capturing>p{display:none}.face-scanner.is-capturing h2{font-size:20px}.face-scanner.is-capturing header p{font-size:13px;margin:4px 0}.face-scanner.is-capturing .face-scan-preview{margin:12px auto;max-height:46svh}.face-scanner.is-capturing .face-scan-hint{display:block;min-height:40px;margin:8px 0 4px}.face-scanner.is-capturing .face-scan-step-label{display:block}.face-scanner.is-capturing .face-scan-steps{margin:10px 0}.face-scan-page:has(.face-scanner.is-capturing)>h1,.face-scan-page:has(.face-scanner.is-capturing)>p,.face-scan-page:has(.face-scanner.is-capturing)>label,.face-scan-page:has(.face-scanner.is-capturing)>h2,.face-scan-page:has(.face-scanner.is-capturing)>button,.face-scan-page:has(.face-scanner.is-capturing)>.face-scan-gallery{display:none}.face-scan-page:has(.face-scanner.is-capturing) .face-scanner{margin:0 auto}.face-scan-page{min-height:100svh;box-sizing:border-box}html[data-theme=dark]:has(.face-scan-page){background:#0e2022}.face-scan-direction{left:6%;top:43%;transform:translateY(-50%);font-size:48px}.face-scan-direction.is-right{left:auto;right:6%}.face-scanner.is-capturing .face-scan-preview{width:min(100%,420px,calc(46svh * var(--face-ratio,.75)));height:auto}
