.pdf-import-dialog {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  box-sizing: border-box;
  overflow: auto;
  border: 1px solid #dfe6d9;
  border-radius: 20px;
  padding: 24px;
  color: #263e33;
  background: #fff;
  box-shadow: 0 20px 80px #203b3533;
  font-family: inherit;
}
.pdf-import-dialog::backdrop { background: #20352d66; }
.pdf-import-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pdf-import-heading h2 { margin: 0; font-size: 20px; }
.pdf-import-close { width: 36px; height: 36px; flex: 0 0 auto; border: 0; border-radius: 50%; color: inherit; background: #f3f5ef; font-size: 26px; line-height: 1; cursor: pointer; }
.pdf-import-file-name { margin: 10px 0 6px; overflow-wrap: anywhere; font-size: 13px; font-weight: 650; }
.pdf-import-description { margin: 0 0 16px; color: #6f7e71; font-size: 13px; line-height: 1.65; }
.pdf-import-preview-area { display: flex; align-items: center; justify-content: center; min-height: 140px; max-height: min(48dvh, 420px); overflow: hidden; border: 1px solid #e6ebe0; border-radius: 10px; background-color: #fff; background-image: linear-gradient(45deg,#edf0e8 25%,transparent 25%),linear-gradient(-45deg,#edf0e8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf0e8 75%),linear-gradient(-45deg,transparent 75%,#edf0e8 75%); background-size: 16px 16px; background-position: 0 0,0 8px,8px -8px,-8px 0; }
.pdf-import-preview-area canvas { display: block; max-width: 100%; max-height: min(48dvh, 420px); object-fit: contain; }
.pdf-import-status { min-height: 22px; margin: 12px 0; color: #6f7e71; font-size: 13px; line-height: 1.6; }
.pdf-import-status[data-error="true"] { color: #a33e4a; }
.pdf-import-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pdf-import-pager label { display: flex; align-items: center; justify-content: center; gap: 6px; color: #607563; font-size: 13px; white-space: nowrap; }
.pdf-import-pager input { width: 58px; min-width: 0; box-sizing: border-box; border: 1px solid #dce4d5; border-radius: 8px; padding: 9px 4px; color: #263e33; background: #fff; text-align: center; font: inherit; }
.pdf-import-dialog button:focus-visible,.pdf-import-dialog input:focus-visible { outline: 3px solid #86a181; outline-offset: 3px; }
.pdf-import-pager button,.pdf-import-actions button { border: 1px solid #dce4d5; border-radius: 9px; padding: 10px 15px; color: #294b3e; background: #fff; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.pdf-import-dialog button:disabled { opacity: .45; cursor: default; }
.pdf-import-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.pdf-import-actions .pdf-import-use { flex: 1; border-color: #2c5142; color: #fff; background: #2c5142; }
.pdf-import-dialog [hidden] { display: none !important; }
@media (max-width: 420px) {
  .pdf-import-dialog { padding: 18px; border-radius: 16px; }
  .pdf-import-pager { gap: 6px; }
  .pdf-import-pager button { padding: 10px 12px; }
  .pdf-import-pager label { gap: 4px; font-size: 12px; }
  .pdf-import-pager input { width: 48px; }
}
