.camera-tools{display:grid;gap:6px;flex:none;min-width:0}.camera-tools select{width:100%;min-width:0;padding:7px;font-size:11px}.camera-tool-buttons{display:flex;gap:5px}.camera-tool-buttons:empty{display:none}.camera-tool-buttons button{flex:1;min-height:34px;padding:7px;font-size:11px}.camera-range{display:flex;align-items:center;gap:8px;font-size:11px}.camera-range span{min-width:36px}.camera-range input{flex:1;min-width:0;padding:0;accent-color:var(--accent,#91c46c);height:24px}.camera-range output{min-width:24px;text-align:right;font-variant-numeric:tabular-nums}.camera-stage video,.invite-camera-stage video{object-fit:contain;cursor:default}.camera-stage,.invite-camera-stage{min-height:100px}#scan-dialog[open]{overflow-y:auto}.invite-camera-stage{flex:1;overflow:hidden}.invite-camera-stage video{width:100%;height:100%}#invite-scan-dialog[open]{display:flex;flex-direction:column;gap:8px;max-height:calc(100dvh - 20px);overflow-y:auto}.scanner-buttons{flex-wrap:wrap}.camera-tools button{white-space:normal}@media(max-height:550px){.camera-tools{gap:2px}.camera-tool-buttons button{min-height:28px;padding:4px}.camera-tools select{padding:4px}.camera-range input{height:18px}}

/* Keep the displayed frame identical to the image sent to the decoder. */
#scan-video,#invite-video{object-fit:contain;cursor:default;background:#101914}
#invite-scan-dialog[open]{width:min(96vw,560px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:12px;box-sizing:border-box}
#invite-scan-dialog .invite-camera-stage{flex:1 1 auto;height:min(50dvh,420px);min-height:140px}
#invite-scan-dialog .camera-tools{gap:4px}
#invite-scan-dialog .invite-scan-actions{display:flex;flex-wrap:wrap;gap:5px}
#invite-scan-dialog .invite-scan-actions button{flex:1;min-height:36px;padding:7px}
#invite-scan-status{flex:none;margin:0;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
@media(max-height:600px){#invite-scan-dialog .invite-camera-stage{height:35dvh;min-height:125px}#invite-scan-dialog .camera-tools select{padding:4px}#invite-scan-dialog .invite-scan-top h2{font-size:15px;margin:0}}

#invite-qr-photo,#scan-photo{display:none!important}
#invite-scan-dialog .invite-reticle{height:75%;width:auto;aspect-ratio:1;max-width:80%;max-height:280px}
