body.pdf-dialog-open { overflow: hidden; }
.pdf-capture-dialog {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper);
}
.pdf-capture-dialog::backdrop { background: rgba(28, 25, 23, 0.64); }
.pdf-capture-dialog [hidden] { display: none !important; }
.pdf-capture-panel { position: relative; padding: 32px; }
.pdf-capture-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.pdf-capture-close .ayni-icon { --icon-size: 20px; }
.pdf-capture-panel .kicker { padding-right: 32px; margin: 0 0 16px; }
.pdf-capture-panel h2 {
  max-width: none;
  margin: 0 24px 12px 0;
  font-size: clamp(1.75rem, 5vw, 2.1rem);
  line-height: 1.15;
}
.pdf-capture-intro { margin: 0; font-size: 0.875rem; line-height: 1.6; }
.pdf-capture-form { display: grid; gap: 16px; margin-top: 24px; }
.pdf-capture-form .form-field { display: grid; gap: 6px; }
.pdf-capture-form .form-field label { font-size: 0.75rem; font-weight: 600; }
.pdf-capture-form .form-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--ink-muted);
  border-radius: 2px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 0.875rem;
}
.pdf-capture-form .consent-field { align-items: start; font-size: 0.75rem; line-height: 1.6; color: var(--ink-soft); }
.pdf-capture-form .consent-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--terracotta); }
.pdf-capture-form .consent-field a { text-underline-offset: 3px; }
.pdf-capture-panel .button { width: 100%; min-height: 52px; }
.pdf-capture-panel .form-status { min-height: 0; color: var(--ink-soft); font-size: 0.75rem; line-height: 1.6; }
.pdf-capture-panel .form-status:empty { display: none; }
.pdf-capture-panel [data-pdf-download] { margin-top: 24px; }
.pdf-capture-panel .community-invitation { margin-top: 24px; padding-top: 24px; border-color: var(--line); }
.pdf-capture-panel .community-invitation h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.4rem; }
.pdf-capture-panel .community-invitation > p { margin: 0; font-size: 0.875rem; line-height: 1.6; }
.pdf-capture-panel .community-invitation .button { margin: 20px 0 12px; }
.pdf-capture-panel .community-invitation .form-help { color: var(--ink-soft); font-size: 0.75rem; }
.pdf-capture-dialog :is(a, button, input):focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
@media (max-width: 600px) { .pdf-capture-panel { padding: 24px 20px; } }
