/* Split PDF (namespaced .sl-) */
.sl-work { display: flex; flex-direction: column; gap: 14px; }
.sl-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sl-badge, .sl-res-badge { flex: 0 0 44px; height: 44px; border-radius: 10px; background: var(--cat-tint) !important; color: var(--cat-ink); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 14px; }
.sl-res-badge { flex-basis: 52px; height: 52px; }
.sl-file-meta { flex: 1 1 180px; min-width: 0; }
.sl-file-meta strong { display: block; overflow-wrap: anywhere; }
.sl-file-meta span { color: var(--muted); font-size: 14px; }
.sl-modes { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sl-selbtns { display: flex; gap: 8px; }
.sl-grid { max-height: 70vh; overflow: auto; padding: 2px; }
.sl-grid figure { position: relative; cursor: pointer; }
.sl-grid label { display: block; cursor: pointer; }
.sl-grid input { position: absolute; top: 12px; left: 12px; width: 22px; height: 22px; margin: 0; accent-color: var(--cat); }
.sl-grid canvas { aspect-ratio: 210 / 297; background: #FFF; object-fit: contain; }
.sl-grid figure.off { opacity: .55; }
.sl-grid figure[data-fileno]::after { content: attr(data-fileno); position: absolute; top: 10px; right: 10px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--cat); color: #FFF; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.sl-grid input:disabled { cursor: default; }
.sl-go { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.sl-range { flex: 1 1 240px; }
.sl-help { margin: -4px 0 0; color: var(--muted); font-size: 14px; }
.sl-help.bad { color: var(--bad); font-weight: 600; }
.sl-list { max-height: 520px; overflow: auto; }
@media (max-width: 480px) {
  .sl-go .btn { width: 100%; }
  .thumbs.sl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sl-grid input { top: 8px; left: 8px; }
}
