.pdf-image-main { padding-top: 58px; }
.pdf-image-hero { grid-template-columns: minmax(0,1fr) 245px; }
.pdf-image-visual { position: relative; width: 225px; height: 185px; }
.pdf-image-visual > span { position: absolute; left: 8px; top: 15px; width: 116px; height: 150px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: #ba6049; box-shadow: 0 20px 42px rgba(70,46,36,.15); font: 850 18px Georgia,serif; transform: rotate(-5deg); }
.pdf-image-visual > i { position: absolute; left: 103px; top: 73px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #292725; box-shadow: 0 8px 17px rgba(0,0,0,.16); font-style: normal; }
.pdf-image-visual > b { position: absolute; right: 3px; width: 91px; height: 67px; display: grid; place-items: center; border: 1px solid #d5cec5; border-radius: 11px; background: #fffefa; box-shadow: 0 13px 27px rgba(52,44,37,.1); font: 850 12px Georgia,serif; }
.pdf-image-visual > b:first-of-type { top: 12px; color: #775336; transform: rotate(5deg); }
.pdf-image-visual > b:last-of-type { bottom: 14px; color: #3b6377; transform: rotate(-3deg); }
.pdf-image-workbench { position: relative; padding: 27px; border: 1px solid rgba(105,98,88,.2); border-radius: 28px; background: rgba(255,254,250,.86); box-shadow: 0 28px 75px rgba(54,47,37,.1), inset 0 1px #fff; backdrop-filter: blur(14px); }
.pdf-image-empty[hidden], .pdf-image-editor[hidden], #pdfImageLoading[hidden], #pdfImageProgress[hidden] { display: none; }
.pdf-image-capabilities { grid-template-columns: repeat(3,1fr); }
.pdf-image-filebar { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #e2ddd4; border-radius: 14px; padding: 11px 13px; background: #f7f4ee; }
.pdf-image-filebar > div { min-width: 0; display: flex; align-items: center; gap: 8px; }
.pdf-image-filebar strong { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.pdf-image-filebar span, .pdf-image-filebar small { border-radius: 7px; padding: 6px 8px; color: #777169; background: #ece8e1; font-size: 8px; }
.pdf-image-filebar label, .pdf-image-filebar button { min-height: 32px; display: inline-flex; align-items: center; border: 1px solid #d9d3ca; border-radius: 8px; padding: 0 10px; background: #fffefa; font-size: 9px; font-weight: 800; cursor: pointer; }
.pdf-image-filebar label { color: #fff; border-color: #292725; background: #292725; }
.pdf-image-layout { display: grid; grid-template-columns: minmax(0,1fr) 275px; align-items: start; gap: 12px; margin-top: 12px; }
.pdf-image-pages-panel, .pdf-image-options { border: 1px solid #e1dcd3; border-radius: 18px; background: #fffefa; }
.pdf-image-pages-panel { min-width: 0; padding: 16px; }
.pdf-image-selection { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; margin-bottom: 14px; }
.pdf-image-selection > div:first-child { display: grid; gap: 4px; }
.pdf-image-selection > div:first-child span { color: #ab5945; font-size: 7px; font-weight: 850; letter-spacing: .14em; }
.pdf-image-selection > div:first-child strong { font-size: 11px; }
.pdf-image-quick-select { display: flex; gap: 4px; }
.pdf-image-quick-select button, #pdfImageRangeForm button { min-height: 32px; border: 1px solid #d8d2c8; border-radius: 7px; padding: 0 9px; background: #f3f0ea; font-size: 8px; font-weight: 800; cursor: pointer; }
#pdfImageRangeForm { display: grid; grid-template-columns: 95px auto; gap: 4px; }
#pdfImageRangeForm input { min-width: 0; height: 32px; border: 1px solid #d8d2c8; border-radius: 7px; outline: 0; padding: 0 8px; font-size: 8px; }
#pdfImageRangeForm button { color: #fff; border-color: #2e2b28; background: #2e2b28; }
#pdfImageRangeError { grid-column: 1/-1; min-height: 0; margin: -5px 0 0; color: #ba4934; font-size: 7px; }
#pdfImageRangeError:empty { display: none; }
.pdf-image-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.pdf-image-page-card { position: relative; border: 1px solid #ddd7ce; border-radius: 11px; padding: 7px; background: #f4f1eb; cursor: pointer; }
.pdf-image-page-card.selected { border-color: #b85f49; box-shadow: 0 0 0 3px rgba(184,95,73,.1); }
.pdf-image-page-card canvas { width: 100%; height: auto; display: block; border-radius: 6px; background: #fff; }
.pdf-image-page-card > span { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; color: #716a62; font-size: 7px; font-weight: 800; }
.pdf-image-page-card input { width: 15px; height: 15px; margin: 0; accent-color: #b85f49; }
.pdf-image-options { position: sticky; top: 14px; padding: 20px; }
.pdf-image-options h3 { margin: 6px 0 0; font-size: 17px; }
.pdf-image-options > p { margin: 8px 0 17px; color: #8b857c; font-size: 8px; line-height: 1.55; }
.pdf-image-options fieldset { border: 0; margin: 0 0 13px; padding: 0; }
.pdf-image-options legend, .pdf-image-setting > span { display: block; margin-bottom: 7px; color: #726c64; font-size: 8px; font-weight: 800; }
.format-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.format-options label { cursor: pointer; }
.format-options input { position: absolute; opacity: 0; pointer-events: none; }
.format-options span { min-height: 52px; display: grid; place-items: center; gap: 2px; border: 1px solid #d9d3ca; border-radius: 8px; background: #f6f3ed; }
.format-options input:checked + span { color: #fff; border-color: #2e2b28; background: #2e2b28; }
.format-options b { font-size: 8px; }
.format-options small { color: #999188; font-size: 6px; }
.format-options input:checked + span small { color: #c9c3bb; }
.pdf-image-setting { display: grid; margin-top: 13px; }
.pdf-image-setting > span { display: flex; justify-content: space-between; }
.pdf-image-setting select, .pdf-image-name { height: 40px; border: 1px solid #d9d3ca; border-radius: 9px; padding: 0 10px; background: #fff; font-size: 9px; }
.pdf-image-setting select { width: 100%; }
.pdf-image-setting input[type="range"] { width: 100%; accent-color: #b85f49; }
.pdf-image-name { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.pdf-image-name input { min-width: 0; border: 0; outline: 0; background: transparent; font-size: 9px; }
.pdf-image-name b { color: #aaa39a; font-size: 7px; }
.pdf-image-output-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 13px 0 10px; }
.pdf-image-output-stats span { display: grid; gap: 3px; border-radius: 8px; padding: 9px; background: #f3f0ea; }
.pdf-image-output-stats small { color: #999188; font-size: 6px; }
.pdf-image-output-stats strong { font: 750 15px Georgia,serif; }
@media (max-width: 1040px) { .pdf-image-layout { grid-template-columns: 1fr; } .pdf-image-options { position: static; } }
@media (max-width: 800px) { .pdf-image-hero { grid-template-columns: 1fr; } .pdf-image-visual { display: none; } .pdf-image-selection { grid-template-columns: 1fr; } .pdf-image-grid { grid-template-columns: repeat(3,1fr); } .pdf-image-capabilities { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .pdf-image-workbench { padding: 13px; border-radius: 21px; } .pdf-image-filebar { align-items: flex-start; flex-direction: column; } .pdf-image-filebar > div { flex-wrap: wrap; } .pdf-image-grid { grid-template-columns: repeat(2,1fr); } #pdfImageRangeForm { grid-template-columns: 1fr auto; } }
