.pdf-photo-panel .panel-heading{margin-bottom:16px}
.pdf-photo-panel .panel-heading h2{flex-shrink:0}
.pdf-drop{position:relative;padding:34px 18px;text-align:center;border:1.5px dashed #c7d2bc;border-radius:13px;background:#fbfcf9}
.pdf-drop.dragging{background:#e5f0d6;border-color:#427047}
.pdf-drop:focus-within{outline:3px solid #6b9146;outline-offset:3px}
.pdf-drop>.button{margin-top:16px}
.pdf-drop>.field-help{margin-top:12px;font-size:13px}
.pdf-order-hint{margin-top:17px}
.pdf-list{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:10px}
.pdf-row{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fafcf7}
.pdf-row[data-state="failed"]{background:var(--red-bg);border-color:#d8b5a9}
.pdf-thumbnail{width:72px;height:80px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);background:white;border-radius:6px;overflow:hidden}
.pdf-thumbnail img{max-width:100%;max-height:100%;object-fit:contain}
.pdf-row strong{font-size:14px;overflow-wrap:anywhere;word-break:normal}
.pdf-row .field-help{font-size:13px;margin-top:3px}
.pdf-row-controls{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px}
.pdf-row-controls button{padding:6px 10px;min-height:44px;min-width:44px;border:1px solid #d9e2cf;border-radius:7px;background:white;color:var(--green);font-size:13px;line-height:1.3}
.pdf-settings select{display:block;width:100%;padding:10px;min-height:44px;border:1px solid #cad6bd;border-radius:8px;background:white}
.pdf-settings fieldset>.input-label:first-of-type{margin-top:0}
.pdf-quality{margin:20px 0;line-height:1.7}
.pdf-workspace .result{margin-top:20px}
#pdf-create{justify-content:center}
#pdf-progress-label{font-size:14px;color:var(--green)}
#pdf-clear{white-space:normal;text-align:right}
@media(max-width:740px){.pdf-drop{padding:24px 12px}.pdf-workspace{gap:16px}.pdf-row{grid-template-columns:56px minmax(0,1fr);gap:10px;padding:10px}.pdf-thumbnail{width:56px;height:72px}.pdf-row-controls button{padding:6px 8px}}
@media(max-width:380px){.pdf-photo-panel .panel-heading h2{font-size:16px;gap:7px}.pdf-photo-panel .panel-heading{flex-wrap:wrap}.pdf-row-controls{gap:3px}}

.pdf-image-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pdf-image-options>div{min-width:0}.pdf-image-preview{display:block;max-width:100%;max-height:240px;object-fit:contain;margin:12px auto;background:white;border:1px solid #dfe3d9;border-radius:8px}.pdf-image-preview[hidden]{display:none}#tools-image-settings input,#tools-image-settings select{width:100%;min-width:0;box-sizing:border-box}#tools-results a{overflow-wrap:anywhere}

#tools-image-range{min-height:44px;padding:10px 12px;border:1px solid var(--line,#cdd9c5);border-radius:9px;background:#fff;color:inherit;font:inherit}.pdf-image-details{margin:12px 0}.pdf-image-details summary{min-height:44px;padding:10px 0;box-sizing:border-box;cursor:pointer;color:#235b43;font-size:.9rem}.pdf-image-details p{margin-top:4px}
