.pdf-image-page .pdf-image-main { padding-block: 36px 48px; }
.pdf-image-main h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -.04em; }
.pdf-image-intro { margin: 9px 0 24px; color: #48665f; }
.pdf-image-workspace { display: grid; grid-template-columns: minmax(240px, 310px) minmax(0, 1fr); align-items: start; gap: 18px; }
.pdf-image-settings, .pdf-image-preview { display: grid; gap: 15px; padding: 17px; border: 1px solid #d6e1da; border-radius: 16px; background: #fff; box-shadow: 0 8px 26px #173f3910; }
.pdf-image-drop { position: relative; display: grid; place-content: center; gap: 6px; min-height: 112px; padding: 12px; border: 1px dashed #8baa9b; border-radius: 10px; background: #f3f8f4; color: #173f39; text-align: center; cursor: pointer; }
.pdf-image-drop:hover, .pdf-image-drop.is-dragging { border-color: #245e4d; background: #e6f1e9; }
.pdf-image-drop:focus-within { outline: 2px solid #245e4d; outline-offset: 3px; }
.pdf-image-drop input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; clip-path: inset(50%); }
.pdf-image-drop span, .pdf-image-name { font-size: 13px; color: #48665f; }
.pdf-image-name, #pdf-image-status { margin: 0; overflow-wrap: anywhere; }
.pdf-image-options, .pdf-image-options label { display: grid; gap: 8px; }
.pdf-image-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pdf-image-settings select, .pdf-image-pages input { min-height: 40px; margin: 0; padding: 5px 8px; border: 1px solid #c4d1c8; border-radius: 8px; background: #f9fbf9; }
#pdf-image-download { min-height: 42px; }
.pdf-image-page button:disabled { opacity: .5; cursor: default; }
#pdf-image-status { font-size: 13px; color: #48665f; }
#pdf-image-status:empty { display: none; }
#pdf-image-status[data-error] { color: #9e392c; }
.pdf-image-preview h2 { margin: 0; font-size: 16px; }
.pdf-image-sheet { display: grid; place-items: center; min-height: 240px; padding: 14px; border-radius: 11px; background: #e8efea; text-align: center; }
.pdf-image-sheet canvas { max-width: 100%; max-height: 58vh; width: auto; height: auto; background: #fff; box-shadow: 0 6px 20px #173f3920; object-fit: contain; }
.pdf-image-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.pdf-image-pages[hidden] { display: none; }
.pdf-image-pages div { display: flex; align-items: center; gap: 6px; }
.pdf-image-settings label, .pdf-image-pages label { margin: 0; }
.pdf-image-pages input { width: 65px; }
.pdf-image-pages button { min-height: 40px; }
@media (max-width: 700px) {
  .pdf-image-page .pdf-image-main { padding-block: 24px 36px; }
  .pdf-image-workspace { grid-template-columns: minmax(0, 1fr); }
  .pdf-image-sheet { min-height: 180px; }
}
