.pdf-heading { margin: 20px 0 28px; }
.pdf-heading h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.3; letter-spacing: -.025em; margin-bottom: 10px; }
.pdf-heading p { color: var(--qz-ink-secondary); line-height: 1.8; max-width: 65ch; }
.pdf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.pdf-source, .pdf-settings { min-width: 0; }
.pdf-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.pdf-section-head h2, .pdf-settings h2 { font-size: 1rem; font-weight: 650; margin: 0; }
.pdf-section-head .btn { padding: 6px 10px; }
.pdf-drop { border: 1px dashed var(--qz-line-strong); padding: 28px 20px; text-align: center; border-radius: var(--qz-radius-surface); background: var(--qz-surface); }
.pdf-drop.dragging { border-color: var(--qz-accent); background: var(--qz-accent-soft); }
.pdf-drop p { font-size: .875rem; color: var(--qz-ink-secondary); line-height: 1.7; margin-top: 12px; }
.pdf-empty { padding: 32px 0; color: var(--qz-ink-secondary); text-align: center; font-size: .875rem; }
.pdf-list { list-style: none; padding: 0; margin: 16px 0 0; }
.pdf-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--qz-line); }
.pdf-row img { width: 64px; height: 76px; object-fit: contain; background: var(--qz-surface); border: 1px solid var(--qz-line); border-radius: 4px; }
.pdf-file-info { min-width: 0; }
.pdf-file-info strong { display: block; font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; font-weight: 600; }
.pdf-file-info span { display: block; font-size: .8125rem; line-height: 1.6; color: var(--qz-ink-secondary); margin-top: 5px; font-variant-numeric: tabular-nums; }
.pdf-row-actions { display: flex; gap: 2px; }
.pdf-row-actions .btn { padding: 6px 8px; font-size: .8125rem; }
.pdf-settings { border-left: 1px solid var(--qz-line); padding-left: 28px; }
.pdf-settings label { display: block; margin: 20px 0 0; color: var(--qz-ink); line-height: 1.6; }
.pdf-settings select { display: block; width: 100%; margin-top: 8px; }
.pdf-settings .pdf-help { font-size: .8125rem; color: var(--qz-ink-secondary); line-height: 1.8; margin: 16px 0 20px; }
.pdf-settings #pdf-export, .pdf-download { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; text-decoration: none; }
.pdf-status { min-height: 3em; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; font-size: .875rem; color: var(--qz-ink-secondary); margin-top: 16px; }
.pdf-status.error { color: #b42318; }
[data-theme="dark"] .pdf-status.error { color: #fda29b; }
.pdf-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--qz-line); }
.pdf-result p { font-size: .875rem; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.pdf-privacy { padding: 20px 0; margin-top: 28px; border-top: 1px solid var(--qz-line); font-size: .875rem; line-height: 1.8; color: var(--qz-ink-secondary); }
.pdf-privacy strong { color: var(--qz-ink); font-weight: 600; }
.pdf-workspace [hidden] { display: none !important; }
.pdf-workspace select:disabled { opacity: .65; cursor: not-allowed; }
@media (max-width: 850px) {
  .pdf-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pdf-settings { border: 0; border-top: 1px solid var(--qz-line); padding: 24px 0 0; }
  .pdf-settings-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .pdf-settings #pdf-export, .pdf-download { max-width: 360px; }
}
@media (max-width: 520px) {
  .pdf-heading { margin: 12px 0 24px; }
  .pdf-row { grid-template-columns: 52px minmax(0, 1fr); gap: 10px 12px; }
  .pdf-row img { width: 52px; height: 62px; }
  .pdf-row-actions { grid-column: 2; justify-content: flex-end; }
  .pdf-row-actions .btn { padding-inline: 12px; }
  .pdf-settings-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pdf-settings #pdf-export, .pdf-download { max-width: none; }
  .pdf-drop { padding: 24px 16px; }
  .pdf-section-head h2 { font-size: .9375rem; }
}
