.pdf-choice-dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #dacfc8;
  border-radius: 12px;
  color: #2d2a29;
  background: #fbf8f2;
  box-shadow: 0 24px 90px rgba(45, 30, 24, .2);
  font-family: "Avenir Next", Avenir, sans-serif;
}
.pdf-choice-dialog::backdrop { background: rgba(35, 26, 22, .35); }
.pdf-choice-form { padding: 30px; }
.pdf-choice-form h2 { margin: 0 0 24px; font: 400 29px/1.2 Georgia, serif; letter-spacing: -.02em; }
.pdf-choice-options { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pdf-choice-option { display: flex; align-items: flex-start; gap: 13px; padding: 18px; border: 1px solid #dacfc8; border-radius: 7px; cursor: pointer; }
.pdf-choice-option:has(input:checked) { border-color: #8c241d; background: #f5eae3; }
.pdf-choice-option input { flex: none; width: 17px; height: 17px; margin: 3px 0 0; accent-color: #8c241d; }
.pdf-choice-option strong { display: block; margin-bottom: 5px; font-size: 15px; font-weight: 600; }
.pdf-choice-option span span { display: block; color: #6b6460; font-size: 13px; line-height: 1.5; }
.pdf-choice-status { margin: 18px 0 24px; color: #6b6460; font-size: 12px; line-height: 1.5; }
.pdf-choice-actions { display: flex; justify-content: flex-end; gap: 12px; }
.pdf-choice-close { min-height: 42px; padding: 9px 22px; border: 1px solid #8c241d; border-radius: 6px; color: #fffaf5; background: #8c241d; cursor: pointer; }
.pdf-choice-close:hover { background: #751c17; }
.pdf-choice-actions button[type="submit"] { background: transparent; color: #6b6460; border-color: #dacfc8; }
.pdf-choice-actions button[type="submit"]:hover { background: #f5eae3; }
.pdf-choice-actions button:disabled { opacity: .55; cursor: wait; }
.pdf-choice-dialog :focus-visible { outline: 2px solid #8c241d; outline-offset: 4px; }
@media (max-width: 480px) { .pdf-choice-form { padding: 24px 20px; } }
