.wd-scan-dialog {
  box-sizing:border-box; width:min(94vw,560px); max-height:90vh; max-height:90dvh;
  overflow:auto; padding:clamp(14px,3vw,24px); border:1px solid var(--line);
  border-radius:var(--radius,10px); color:var(--ink); background:white;
}
.wd-scan-dialog::backdrop { background:rgb(10 25 47 / 65%); }
.wd-scan-dialog header, .wd-scan-tools { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.wd-scan-dialog header { justify-content:space-between; margin-bottom:12px; }
.wd-scan-dialog h2 { margin:0; }
.wd-scan-dialog [hidden] { display:none !important; }
.wd-scan-dialog .btn { min-height:44px; white-space:normal; }
.wd-scan-view { position:relative; }
.wd-scan-view video { display:block; width:100%; max-height:46vh; background:#101b2e; object-fit:contain; }
.wd-scan-view span { position:absolute; inset:18% 8%; border:2px dashed #fff; outline:1px solid #12213b; pointer-events:none; }
.wd-scan-dialog [role=status] { margin:14px 0; }
.wd-scan-zoom { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:8px; }
.wd-scan-zoom input { flex:1 1 86px; min-height:40px; min-width:0; }
.wd-scan-zoom output { min-width:3em; font-variant-numeric:tabular-nums; }
.wd-scan-results { display:grid; gap:8px; margin:0 0 14px; padding:0; list-style:none; }
.wd-scan-results:empty { display:none; }
.wd-scan-results .btn { display:grid; gap:2px; width:100%; text-align:start; justify-items:start; }
.wd-scan-results small { font-size:.72rem; color:var(--muted); }
.wd-scan-results bdi { max-width:100%; white-space:pre-wrap; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
