/* osir.co.uk: QR Code Scanner & Safety Checker */

.qs-pane { margin-top: 16px; }
.qs-cam { position: relative; width: 100%; max-width: 560px; aspect-ratio: 4 / 3; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #0c1020; border: 1px solid var(--border-strong); }
.qs-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.qs-cam.is-on video { opacity: 1; }
.qs-cam-frame { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .28); border: 3px solid rgba(255, 255, 255, .85); opacity: 0; transition: opacity .3s; pointer-events: none; }
.qs-cam.is-on .qs-cam-frame { opacity: 1; }
.qs-cam-idle { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; color: #c3c9dc; font-size: 15px; }
.qs-cam-idle .icon { color: #9aa3bd; }
.qs-cam.is-on .qs-cam-idle { display: none; }
.qs-status { margin-top: 8px; min-height: 1.4em; }
.qs-engine { margin-top: 12px; }
.qs-preview { display: block; margin: 14px auto 0; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); background: #fff; }

.qs-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; }
.qs-dest { display: grid; gap: 2px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-solid); border-left: 6px solid var(--border-strong); min-width: 0; }
.qs-dest.qs-good { border-left-color: #16a34a; }
.qs-dest.qs-warn { border-left-color: #d97706; }
.qs-dest.qs-bad { border-left-color: #dc2626; }
.qs-dest-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.qs-dest-domain { font-family: var(--mono); font-size: clamp(20px, 4.5vw, 30px); font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; line-height: 1.2; }
.qs-dest-sub { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.qs-val { overflow-wrap: anywhere; white-space: pre-wrap; }
.qs-advice { margin-top: 18px; }
.qs-advice h3 { font-size: 16px; font-weight: 750; }
.qs-raw { margin-top: 16px; }
.qs-raw summary { cursor: pointer; font-weight: 650; font-size: 14px; color: var(--text-2); }
.qs-raw-text { margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }
#qs-pick { margin-top: 10px; }
#qs-pick .t-tabs { margin-top: 6px; }
.tool-info p.ti-p { margin-top: 10px; color: var(--text-2); }

@media (max-width: 560px) {
  .qs-cam { aspect-ratio: 3 / 4; }
  .qs-cam-frame { width: 72%; }
  #qs-tabs { display: flex; }
  #qs-tabs .t-tab { flex: 1 1 auto; justify-content: center; padding: 7px 8px; font-size: 13.5px; }
}
