.pdf-dialog { width: min(42rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; }
.pdf-dialog > section { display: grid; gap: 1rem; }
.pdf-dialog label { display: grid; gap: .4rem; }
.pdf-dialog textarea { width: 100%; max-height: min(12rem, 28dvh); box-sizing: border-box; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.pdf-dialog input { min-width: 0; max-width: 100%; box-sizing: border-box; }
.pdf-dialog [role=status] { min-height: 1.5em; }
.pdf-dialog [data-pdf=flags], .pdf-dialog [data-pdf=duplicate] { font-size: .9em; }
.pdf-dialog label.checkbox { grid-template-columns: auto 1fr; align-items: start; }
