.label-print-page { width: min(100%, 800px); margin: 24px auto; background: white; box-shadow: 0 8px 30px #0002; }
.label-a4-preview { display: block; width: 100%; height: auto; background: white; }
.label-photo-preview { display:block; max-width:100%; max-height:420px; object-fit:contain; margin:20px 0; border-radius:8px; }
.label-photo-preview[hidden],#ocr-source[hidden] { display:none; }
.label-id-full { overflow-wrap:anywhere; }
.ocr-text { white-space:pre-wrap; overflow-wrap:anywhere; padding:16px; background:var(--surface-soft); color:var(--text); border-radius:8px; }
#ocr-source { margin:20px 0; }
@page labels { size:A4 portrait; margin:0; }
@media print { .label-print-page { page:labels; width:210mm; height:297mm; margin:0; padding:0; box-shadow:none; break-inside:avoid; } .label-a4-preview { width:210mm; height:297mm; max-width:none; } }
