
.qr-preview { width: min(100%, 20rem); aspect-ratio: 1; border-radius: var(--apa-r-sm); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.qr-preview:empty { background: var(--surface); }
.qr-preview svg { display: block; width: 100%; height: 100%; }
.qr-caption { margin: -0.5rem 0 0; font-weight: 600; text-align: center; }
.qr-caption:empty { display: none; }
.qr-error { margin: 0; color: var(--apa-red-text); font-size: var(--apa-text-md); text-align: center; }
.qr-stage .hint { margin: 0; text-align: center; }
@media print {
  @page { margin: 2cm; }
  body { background: #fff !important; color: #000 !important; }
  .site-header, .site-footer, .tool-intro, aside, .qr-stage .actions, .qr-stage .hint, .qr-error, .toast { display: none !important; }
  .page, .tool-layout, .panel { display: block; border: 0 !important; padding: 0 !important; margin: 0 auto !important; max-width: none; width: auto; background: none !important; }
  .qr-preview { width: 8cm; margin: 3cm auto 0.5cm; box-shadow: none; border-radius: 0; }
  .qr-caption { font-size: 16pt; color: #000; margin: 0; }
}
