/* QR Scanner — the hero uploader (with a camera button beside Choose file),
   then either the live camera card or the decoded result card (layout from
   styles/components/form.css + uploader.css). Only the intake button pair,
   the camera stage and the decoded text are the page's own. */

.qs-intake {
  --gap: var(--space-2);
  justify-content: center;
}

/* Camera stage: the square viewfinder centred on a dark flush row. */
.qs-stage {
  display: flex;
  justify-content: center;
  padding: var(--space-4);
  background: #000;
}
.qs-video-wrap {
  position: relative;
  inline-size: min(100%, 460px);
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qs-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.qs-reticle {
  position: absolute;
  inset: 22%;
  border-radius: 14px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.qs-reticle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.qs-text {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.5;
  user-select: all;
}
