/* Targeted fixes only: editable PDF-to-Text output, compressor ZIP guard,
   original cropper controls, and instant native cross-page navigation. */

/* Keep page switching native and immediate. Cross-document view-transition
   snapshots are intentionally disabled because they add visible delay and
   extra GPU/memory work on both low-end and high-end devices. */

/* PDF to Text stays in its original textarea layout and remains editable. */
.tool-page[data-tool-page="pdf-to-text"] #pdfToTextResult{
  display:block!important;
  min-height:330px;
  resize:vertical;
}
.pdf-rich-editor-shell,
#pdfToTextFormattedDownloadBtn{
  display:none!important;
}

/* Image compressor removable cards (existing feature retained). */
.tool-page[data-tool-page="image-compressor"] .compressor-card{position:relative}
.compressor-remove-btn{
  position:absolute;top:10px;right:10px;z-index:4;width:32px;height:32px;
  border:0;border-radius:50%;background:#ef4444;color:#fff;font-size:21px;
  font-weight:900;line-height:1;display:inline-flex;align-items:center;
  justify-content:center;cursor:pointer;box-shadow:0 7px 16px rgba(185,28,28,.28)
}
.compressor-remove-btn:hover{background:#dc2626;transform:translateY(-1px)}

/* A ZIP button must never appear for zero or one compressed file. */
.tool-page[data-tool-page="image-compressor"] #compressZipBtn:not(.ezy-multi-ready),
.tool-page[data-tool-page="image-compressor"] #compressZipBottomWrap:not(.ezy-multi-ready){
  display:none!important;
}
.tool-page[data-tool-page="image-compressor"] #compressZipBtn.ezy-multi-ready{
  display:inline-flex!important;
}
.tool-page[data-tool-page="image-compressor"] #compressZipBottomWrap.ezy-multi-ready{
  display:flex!important;
}

/* The temporary crop refresh control is intentionally removed. */
#cropRefreshBtn{display:none!important}

@media(max-width:640px){
  .tool-page[data-tool-page="pdf-to-text"] #pdfToTextResult{min-height:290px}
}

/* FINAL GLOBAL SCROLL + NAVIGATION STABILITY FIX v3
   Removes expensive full-page repaint triggers and prevents lower sections
   from being painted late during fast swipes. Tool UI and conversion logic
   are intentionally untouched. */
html,
body,
.page{
  scroll-behavior:auto!important;
  background-attachment:scroll!important;
}
html::before,
html::after,
body::before,
body::after,
.page::before,
.page::after{
  background-attachment:scroll!important;
}
.tool-page-help,
.quality-content,
.more-tools-panel,
.home-detail-panel,
.why-panel,
.faq-section,
.site-footer,
.footer.site-footer,
.footer-grid,
.footer-brand-block,
.footer-link-group,
.footer-bottom{
  content-visibility:visible!important;
  contain:none!important;
  contain-intrinsic-size:auto!important;
}
.home-detail-panel,
.why-panel,
.faq-section,
.tool-page-help,
.more-tools-panel,
.site-footer,
.footer.site-footer{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  -webkit-filter:none!important;
  filter:none!important;
  will-change:auto!important;
  -webkit-transform:none!important;
  transform:none!important;
  -webkit-backface-visibility:visible!important;
  backface-visibility:visible!important;
}
@media (max-width:1200px), (pointer:coarse), (hover:none){
  html,
  body,
  .page{
    background-attachment:scroll!important;
    overscroll-behavior-y:auto;
  }
  .upload-box,
  .extra-upload-box,
  .panel,
  .tools-panel,
  .extra-tool-panel,
  .pdf-options,
  .home-detail-card,
  .why-card,
  .faq-item,
  .tool-guide-card,
  .related-faq-card,
  .more-tool-card,
  .legal-modal-overlay{
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    will-change:auto!important;
  }
  .home-detail-card,
  .why-card,
  .faq-item,
  .more-tool-card{
    -webkit-transform:none!important;
    transform:none!important;
  }
}

/* COMPACT LARGE-BATCH CARDS
   Keep the roomy existing layout for small jobs. Each tool switches at its
   tested safe threshold so larger batches stay scannable. */
body.tool-page{
  --ezy-batch-columns:6;
}

body[data-tool-page="image-converter"] :is(#fileGrid.ezy-converter-compact-batch,#fileGrid:has(>.file-card:nth-child(7))),
body[data-tool-page="image-compressor"] #compressorGrid:has(>.compressor-card:nth-child(5)),
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))),
body[data-tool-page="pdf-to-image"] #pdfImageOutputGrid:has(>.pdf-image-card:nth-child(5)),
body[data-tool-page="image-resizer"] #resizeGrid:has(>.new-file-card:nth-child(5)),
body[data-tool-page="pdf-compressor"] #pdfCompressList:has(>.pdf-compress-item:nth-child(5)),
body[data-tool-page="pdf-merger"] #mergeList:has(>.new-order-card:nth-child(5)),
body[data-tool-page="pdf-page-remover"] #removeGrid:has(>.new-page-card:nth-child(5)){
  display:grid!important;
  grid-template-columns:repeat(var(--ezy-batch-columns),minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:12px!important;
}

/* Image Converter */
body[data-tool-page="image-converter"] :is(#fileGrid.ezy-converter-compact-batch,#fileGrid:has(>.file-card:nth-child(7))) .file-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:7px!important;
  min-height:300px!important;
  padding:9px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body[data-tool-page="image-converter"] :is(#fileGrid.ezy-converter-compact-batch,#fileGrid:has(>.file-card:nth-child(7))) .thumb{
  width:100%!important;
  height:105px!important;
  flex:0 0 105px!important;
  object-fit:contain!important;
}
body[data-tool-page="image-converter"] :is(#fileGrid.ezy-converter-compact-batch,#fileGrid:has(>.file-card:nth-child(7))) .file-name{
  padding-right:25px!important;
  font-size:13px!important;
}
body[data-tool-page="image-converter"] :is(#fileGrid.ezy-converter-compact-batch,#fileGrid:has(>.file-card:nth-child(7))) .file-meta{
  margin-bottom:5px!important;
  font-size:11.5px!important;
}
body[data-tool-page="image-converter"] :is(#fileGrid.ezy-converter-compact-batch,#fileGrid:has(>.file-card:nth-child(7))) .file-info{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body[data-tool-page="image-converter"] :is(#fileGrid.ezy-converter-compact-batch,#fileGrid:has(>.file-card:nth-child(7))) .control-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  gap:6px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body[data-tool-page="image-converter"] :is(#fileGrid.ezy-converter-compact-batch,#fileGrid:has(>.file-card:nth-child(7))) .control-row select,
body[data-tool-page="image-converter"] :is(#fileGrid.ezy-converter-compact-batch,#fileGrid:has(>.file-card:nth-child(7))) .control-row .small-btn{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  padding:7px 8px!important;
  font-size:12px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body[data-tool-page="image-converter"] :is(#fileGrid.ezy-converter-compact-batch,#fileGrid:has(>.file-card:nth-child(7))) .remove{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  z-index:3!important;
  margin:0!important;
}
body[data-tool-page="image-converter"] :is(#fileGrid.ezy-converter-compact-batch,#fileGrid:has(>.file-card:nth-child(7))) .file-card-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-top:8px!important;
  gap:0!important;
  box-sizing:border-box!important;
}
body[data-tool-page="image-converter"] :is(#fileGrid.ezy-converter-compact-batch,#fileGrid:has(>.file-card:nth-child(7))) .download-btn{
  grid-column:1 / -1!important;
  justify-self:stretch!important;
  align-self:stretch!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:8px!important;
  font-size:13px!important;
  line-height:1.25!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:normal!important;
}

/* Image Compressor */
body[data-tool-page="image-compressor"] #compressorGrid:has(>.compressor-card:nth-child(5)) .compressor-card{
  height:298px!important;
  padding:7px!important;
}
body[data-tool-page="image-compressor"] #compressorGrid:has(>.compressor-card:nth-child(5)) .compressor-preview-shell{
  height:112px!important;
  flex-basis:112px!important;
}
body[data-tool-page="image-compressor"] #compressorGrid:has(>.compressor-card:nth-child(5)) .compressor-card-body{
  padding-top:7px!important;
}
body[data-tool-page="image-compressor"] #compressorGrid:has(>.compressor-card:nth-child(5)) .compressor-name{
  font-size:12px!important;
}
body[data-tool-page="image-compressor"] #compressorGrid:has(>.compressor-card:nth-child(5)) .compressor-stats{
  min-height:54px!important;
  margin-bottom:6px!important;
  font-size:11.5px!important;
  line-height:1.4!important;
}
body[data-tool-page="image-compressor"] #compressorGrid:has(>.compressor-card:nth-child(5)) .compressor-download-btn{
  min-height:38px!important;
  padding:8px!important;
  font-size:13px!important;
}

/* Image to PDF: cards can be dragged; their visual order is the PDF order. */
body[data-tool-page="image-to-pdf"] .pdf-thumb-card{
  cursor:grab;
  user-select:none;
  touch-action:pan-y pinch-zoom;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,opacity .16s ease;
}
body[data-tool-page="image-to-pdf"] .pdf-thumb-paper,
body[data-tool-page="image-to-pdf"] .pdf-thumb-paper img{
  -webkit-user-drag:none;
  user-drag:none;
  user-select:none;
  -webkit-user-select:none;
}
body[data-tool-page="image-to-pdf"] .pdf-thumb-paper img{pointer-events:none}
body[data-tool-page="image-to-pdf"] .pdf-thumb-card:active{cursor:grabbing}
body[data-tool-page="image-to-pdf"] .pdf-thumb-card.is-dragging{
  opacity:.42;
  transform:scale(.97);
}
body[data-tool-page="image-to-pdf"] .pdf-thumb-card.is-drag-over{
  border:2px solid #3478ff!important;
  box-shadow:0 0 0 4px rgba(52,120,255,.14),0 12px 24px rgba(14,25,45,.14)!important;
  transform:translateY(-3px);
}
body[data-tool-page="image-to-pdf"] #pdfPreviewGrid.ezy-touch-reordering{
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
}
body[data-tool-page="image-to-pdf"] .pdf-thumb-card.ezy-touch-armed{
  transform:scale(.985);
}
body[data-tool-page="image-to-pdf"] .pdf-thumb-card.is-touch-dragging{
  position:relative;
  z-index:8;
  opacity:.24;
  cursor:grabbing;
  touch-action:none;
  -webkit-touch-callout:none;
  box-shadow:0 0 0 4px rgba(52,120,255,.16),0 16px 30px rgba(14,25,45,.2)!important;
}
body[data-tool-page="image-to-pdf"] .ezy-pdf-touch-ghost{
  position:fixed!important;
  z-index:2147483000!important;
  margin:0!important;
  pointer-events:none!important;
  touch-action:none!important;
  opacity:.94!important;
  transform:rotate(1deg) scale(1.025)!important;
  transition:none!important;
  overflow:hidden;
  background:var(--card,#fff)!important;
  box-shadow:0 22px 52px rgba(14,25,45,.32),0 0 0 3px rgba(52,120,255,.25)!important;
}
body[data-tool-page="image-to-pdf"] .ezy-pdf-touch-ghost .pdf-remove{display:none!important}
body.ezy-pdf-touch-reordering{
  overscroll-behavior-y:contain;
}
@media(hover:none),(pointer:coarse){
  body[data-tool-page="image-to-pdf"] .pdf-thumb-card{
    -webkit-touch-callout:none;
  }
  body[data-tool-page="image-to-pdf"] .pdf-drag-handle{
    top:2px;
    width:54px;
    height:40px;
    display:grid;
    place-items:center;
    pointer-events:auto;
    touch-action:none;
    cursor:grab;
    -webkit-tap-highlight-color:transparent;
  }
}
body[data-tool-page="image-to-pdf"] .pdf-page-position{
  position:absolute;
  top:9px;
  left:9px;
  z-index:4;
  max-width:calc(100% - 78px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding:4px 7px;
  border-radius:7px;
  background:#eaf2ff;
  color:#2563eb;
  font-size:11px;
  font-weight:900;
  pointer-events:none;
}
body[data-tool-page="image-to-pdf"] .pdf-drag-handle{
  position:absolute;
  top:9px;
  left:50%;
  z-index:3;
  color:#718096;
  font:900 18px/1 Arial,sans-serif;
  letter-spacing:-5px;
  transform:translateX(-50%) rotate(90deg);
  pointer-events:none;
}
/* Fit previews preserve each image ratio, while every outer card stays equal. */
body[data-tool-page="image-to-pdf"] :is(
  #pdfPreviewGrid.ezy-pdf-fit-batch,
  #pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(5)):has(.pdf-thumb-paper.pdf-fit)
)>.pdf-thumb-card{
  display:flex!important;
  flex-direction:column!important;
  height:226px!important;
  min-height:226px!important;
  box-sizing:border-box!important;
}
body[data-tool-page="image-to-pdf"] :is(
  #pdfPreviewGrid.ezy-pdf-fit-batch,
  #pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(5)):has(.pdf-thumb-paper.pdf-fit)
)>.pdf-thumb-card .pdf-thumb-name{
  width:100%!important;
  margin-top:auto!important;
}
body[data-tool-page="image-to-pdf"] :is(
  #pdfPreviewGrid.ezy-pdf-fit-batch,
  #pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(5)):has(.pdf-thumb-paper.pdf-fit)
)>.pdf-add-bottom{
  height:226px!important;
  min-height:226px!important;
  box-sizing:border-box!important;
}
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-thumb-card{
  min-width:0!important;
  min-height:210px!important;
  padding:38px 8px 9px!important;
}
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-thumb-paper,
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-thumb-paper.pdf-a4,
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-thumb-paper.pdf-letter{
  width:88px!important;
  height:124px!important;
  margin:0 auto 8px!important;
}
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-thumb-paper.landscape,
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-thumb-paper.pdf-a4.landscape,
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-thumb-paper.pdf-letter.landscape{
  width:120px!important;
  height:84px!important;
  margin:20px auto 28px!important;
}
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-thumb-name{
  font-size:11.5px!important;
}
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-add-bottom{
  height:176px!important;
  min-height:176px!important;
}
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))){
  counter-reset:ezy-pdf-page;
  gap:9px!important;
}
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6)))>.pdf-thumb-card{
  counter-increment:ezy-pdf-page;
  height:176px!important;
  min-height:176px!important;
  padding:34px 6px 7px!important;
  border-radius:11px!important;
}
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-page-position{
  width:27px;
  height:27px;
  max-width:none;
  padding:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  overflow:visible;
  text-overflow:clip;
  font-size:0;
  line-height:1;
}
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-page-position::after{
  content:counter(ezy-pdf-page);
  font-size:12px;
  line-height:1;
  font-weight:900;
}
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-drag-handle{
  top:11px;
  font-size:16px;
}
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-remove{
  top:7px!important;
  right:7px!important;
  width:30px!important;
  height:30px!important;
  font-size:18px!important;
}
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-thumb-paper,
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-thumb-paper.pdf-a4,
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-thumb-paper.pdf-letter{
  width:74px!important;
  height:104px!important;
  margin:0 auto 6px!important;
}
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-thumb-paper.landscape,
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-thumb-paper.pdf-a4.landscape,
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-thumb-paper.pdf-letter.landscape{
  width:100px!important;
  height:70px!important;
  margin:17px auto 23px!important;
}
body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6))) .pdf-thumb-name{
  font-size:10.5px!important;
}
@media(min-width:761px){
  body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6)))>.pdf-thumb-card,
  body[data-tool-page="image-to-pdf"] :is(#pdfPreviewGrid.ezy-pdf-large-batch,#pdfPreviewGrid:has(>.pdf-thumb-card:nth-of-type(6)))>.pdf-add-bottom{
    width:100%!important;
    max-width:112px!important;
    justify-self:center!important;
  }
}
@media(min-width:981px){
  body[data-tool-page="image-to-pdf"] #pdfWorkspace{
    grid-template-columns:minmax(0,1fr) minmax(320px,390px)!important;
    align-items:start!important;
  }
  body[data-tool-page="image-to-pdf"] #pdfWorkspace .pdf-options{
    width:auto!important;
    grid-column:2!important;
  }
}

/* PDF to Image */
body[data-tool-page="pdf-to-image"] #pdfImageOutputGrid:has(>.pdf-image-card:nth-child(5)) .pdf-image-card{
  height:268px!important;
  padding:9px!important;
}
body[data-tool-page="pdf-to-image"] #pdfImageOutputGrid:has(>.pdf-image-card:nth-child(5)) .pdf-image-card canvas,
body[data-tool-page="pdf-to-image"] #pdfImageOutputGrid:has(>.pdf-image-card:nth-child(5)) .pdf-image-card img{
  height:178px!important;
  max-height:178px!important;
  flex-basis:178px!important;
}
body[data-tool-page="pdf-to-image"] #pdfImageOutputGrid:has(>.pdf-image-card:nth-child(5)) .pdf-image-card button{
  min-height:42px!important;
  padding:9px!important;
  font-size:13px!important;
}

/* Image Resizer */
body[data-tool-page="image-resizer"] #resizeGrid:has(>.new-file-card:nth-child(5)) .new-file-card{
  padding:9px!important;
  border-radius:14px!important;
}
body[data-tool-page="image-resizer"] #resizeGrid:has(>.new-file-card:nth-child(5)) .new-file-thumb{
  height:108px!important;
}
body[data-tool-page="image-resizer"] #resizeGrid:has(>.new-file-card:nth-child(5)) .new-file-name{
  margin-top:7px!important;
  font-size:12px!important;
}
body[data-tool-page="image-resizer"] #resizeGrid:has(>.new-file-card:nth-child(5)) .new-file-meta{
  font-size:11px!important;
}

/* PDF Compressor */
body[data-tool-page="pdf-compressor"]:has(#pdfCompressList>.pdf-compress-item:nth-child(5)) .pdf-compress-batch{
  max-width:none!important;
}
body[data-tool-page="pdf-compressor"] #pdfCompressList:has(>.pdf-compress-item:nth-child(5)){
  --ezy-batch-columns:5;
}
body[data-tool-page="pdf-compressor"] #pdfCompressList:has(>.pdf-compress-item:nth-child(5)) .pdf-compress-item{
  position:relative!important;
  display:block!important;
  min-width:0!important;
  padding:9px!important;
}
body[data-tool-page="pdf-compressor"] #pdfCompressList:has(>.pdf-compress-item:nth-child(5)) .pdf-compress-thumb{
  width:100%!important;
  height:105px!important;
  padding:4px!important;
}
body[data-tool-page="pdf-compressor"] #pdfCompressList:has(>.pdf-compress-item:nth-child(5)) .pdf-compress-item-info{
  margin-top:7px!important;
  padding-right:30px!important;
}
body[data-tool-page="pdf-compressor"] #pdfCompressList:has(>.pdf-compress-item:nth-child(5)) .pdf-compress-item-info strong{
  font-size:12px!important;
}
body[data-tool-page="pdf-compressor"] #pdfCompressList:has(>.pdf-compress-item:nth-child(5)) .pdf-compress-item-info small{
  font-size:10.5px!important;
}
body[data-tool-page="pdf-compressor"] #pdfCompressList:has(>.pdf-compress-item:nth-child(5)) .pdf-compress-remove{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  width:30px!important;
  height:30px!important;
}

/* PDF Merger */
body[data-tool-page="pdf-merger"] #mergeList:has(>.new-order-card:nth-child(5)) .new-order-card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-content:start!important;
  gap:7px!important;
  min-width:0!important;
  padding:9px!important;
}
body[data-tool-page="pdf-merger"] #mergeList:has(>.new-order-card:nth-child(5)) .new-order-number{
  position:absolute!important;
  top:14px!important;
  left:14px!important;
  z-index:3!important;
  width:30px!important;
  height:30px!important;
  border-radius:9px!important;
  font-size:12px!important;
}
body[data-tool-page="pdf-merger"] #mergeList:has(>.new-order-card:nth-child(5)) .new-order-thumb{
  width:100%!important;
  height:102px!important;
}
body[data-tool-page="pdf-merger"] #mergeList:has(>.new-order-card:nth-child(5)) .new-order-details strong{
  font-size:12px!important;
}
body[data-tool-page="pdf-merger"] #mergeList:has(>.new-order-card:nth-child(5)) .new-order-details small{
  font-size:10.5px!important;
}
body[data-tool-page="pdf-merger"] #mergeList:has(>.new-order-card:nth-child(5)) .new-order-actions{
  justify-content:space-between!important;
  gap:4px!important;
}
body[data-tool-page="pdf-merger"] #mergeList:has(>.new-order-card:nth-child(5)) .new-icon-btn{
  min-width:29px!important;
  height:30px!important;
  padding:0 6px!important;
  font-size:11px!important;
}

/* PDF Page Remover */
body[data-tool-page="pdf-page-remover"] #removeGrid:has(>.new-page-card:nth-child(5)) .new-page-card{
  padding:8px!important;
  border-radius:13px!important;
}
body[data-tool-page="pdf-page-remover"] #removeGrid:has(>.new-page-card:nth-child(5)) .new-page-card img{
  height:128px!important;
}
body[data-tool-page="pdf-page-remover"] #removeGrid:has(>.new-page-card:nth-child(5)) .new-remove-mark{
  inset:8px 8px 30px!important;
}

@media(max-width:1280px){
  body.tool-page{--ezy-batch-columns:5}
}
@media(max-width:1000px){
  body.tool-page{--ezy-batch-columns:4}
  body[data-tool-page="pdf-compressor"] #pdfCompressList:has(>.pdf-compress-item:nth-child(5)){
    --ezy-batch-columns:4;
  }
}
@media(max-width:760px){
  body.tool-page{--ezy-batch-columns:3}
  body[data-tool-page="pdf-compressor"] #pdfCompressList:has(>.pdf-compress-item:nth-child(5)){
    --ezy-batch-columns:3;
  }
}
@media(max-width:560px){
  body.tool-page{--ezy-batch-columns:2}
  body[data-tool-page="pdf-compressor"] #pdfCompressList:has(>.pdf-compress-item:nth-child(5)){
    --ezy-batch-columns:2;
  }
}
@media(max-width:380px){
  body.tool-page{--ezy-batch-columns:1}
  body[data-tool-page="pdf-compressor"] #pdfCompressList:has(>.pdf-compress-item:nth-child(5)){
    --ezy-batch-columns:1;
  }
}
