.live-scan{max-width:900px;margin:auto}.live-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;justify-content:space-between}.live-toolbar button{min-height:48px}.live-stage{position:relative;background:#12241d;border-radius:10px;overflow:hidden;max-height:55dvh}.live-stage video{display:block;width:100%;max-height:55dvh;object-fit:contain}.live-stage canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.live-scan progress{width:100%;height:12px;accent-color:#258345}.live-auto{display:block;padding:12px 0}.live-auto input{width:22px;height:22px;vertical-align:middle}#liveHint{font-size:15px;color:#243e32;font-weight:600;min-height:40px}#liveThumb{max-width:140px;max-height:90px;border:2px solid #278347;border-radius:6px}#liveThumb[hidden]{display:none}@media(max-width:650px){.live-toolbar{gap:8px}.live-toolbar button{flex:1}.live-stage,.live-stage video{max-height:46dvh}}

#modal:has(.live-scan){width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}
#modal:has(.live-scan) .modal-head{padding:10px 16px}
#modal:has(.live-scan) .modal-body{padding:12px 16px}
.live-stage,.live-stage video{max-height:60dvh}
.live-camera-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:10px 0}
.live-camera-tools label{display:flex;align-items:center;gap:8px;flex:1}
.live-camera-tools input[type=range]{min-width:100px;width:100%;padding:8px}
#liveCapture{min-height:56px;font-size:18px;flex:1}
#liveNative{min-height:56px;font-weight:600;border:2px solid #42624e}
@media(orientation:landscape) and (max-height:900px){.live-stage,.live-stage video{max-height:52dvh}}

#liveFrameSize{padding:12px;background:#eef3e8;border-radius:10px}#liveFrameSize label{display:flex;align-items:center;gap:12px;margin:8px 0}#liveFrameSize input{flex:1;min-width:80px}

#modal:has(.live-scan){overflow:hidden;box-sizing:border-box}#modal:has(.live-scan) #modalContent{display:flex;flex-direction:column;height:100%;min-height:0}#modal:has(.live-scan) .modal-head{flex:none}#modal:has(.live-scan) .modal-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.live-pinned-actions{flex:none;background:white;border-top:1px solid #ddd;padding:10px max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));z-index:2}.live-pinned-actions button{white-space:normal;min-width:0}.live-pinned-actions #liveCapture,.live-pinned-actions #liveNative{flex:1;font-size:16px}@media(max-height:500px){#modal:has(.live-scan) .modal-head small{display:none}#modal:has(.live-scan) .modal-head h2{font-size:18px;margin:0}.live-pinned-actions{padding-top:6px}.live-pinned-actions button{min-height:44px!important}}
