/* Only scoped PDF tool styling. Does not change existing site tools. */
.pdf-panel{display:grid;gap:1.1rem}
.pdf-panel .pdf-intro{padding:0.85rem 1.1rem;border-radius:12px;background:rgba(49,92,243,.06);font-size:.94rem;line-height:1.6}
.pdf-panel .pdf-file-note{font-size:.91rem;line-height:1.5;margin:0;opacity:.8}
.pdf-panel .pdf-input{width:100%;min-width:0;max-width:100%;box-sizing:border-box;border:1px solid #cfd7e7;border-radius:10px;padding:12px;background:#fff;color:#182b46}
.pdf-panel .pdf-input[type=file]{cursor:pointer}
.pdf-panel .pdf-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem}
.pdf-panel .pdf-row .field{min-width:0}
.pdf-panel .pdf-row label,.pdf-panel .field label{display:block;font-weight:700;margin:0 0 .35rem}
.pdf-panel .pdf-help{font-size:.88rem;line-height:1.5;color:#526078;margin:.3rem 0 0}
.pdf-panel [data-pdf-status]{min-height:1.4em;line-height:1.5;margin:.1rem 0;font-weight:600}
.pdf-panel [data-pdf-status].is-error{color:#b02020}
.pdf-panel .pdf-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem}
.pdf-panel .pdf-actions .btn[hidden]{display:none!important}
.pdf-panel [data-pdf-details]{font-size:.9rem;color:#526078}
@media(max-width:640px){.pdf-panel .pdf-actions .btn{width:100%;justify-content:center;text-align:center}.pdf-panel{gap:.85rem}}

/* v0.11.54: split preview, grouped ranges and explicit downloads */
.pdf-panel[data-pdf-tool="split"]{width:100%;max-width:860px;margin-inline:auto}
.pdf-split-choose{border:1px solid #d7dfeb;border-radius:14px;padding:1rem;display:grid;gap:.7rem;min-width:0}
.pdf-split-choose legend{font-weight:750;padding:0 .35rem}
.pdf-split-choice{display:flex;align-items:center;gap:.7rem;padding:.75rem .85rem;background:#f7f9fc;border:1px solid #e4eaf4;border-radius:10px;cursor:pointer;line-height:1.45}
.pdf-split-choice:has(input:checked){border-color:#5578d5;background:#eff4ff}
.pdf-split-choice input{width:18px;height:18px;flex-shrink:0;accent-color:#315fd1}
.pdf-split-ranges{display:grid;gap:.4rem;min-width:0}
.pdf-split-ranges[hidden]{display:none}
.pdf-split-ranges label{line-height:1.5;font-size:.91rem}
.pdf-split-ranges textarea{width:100%;min-width:0;box-sizing:border-box;min-height:78px;border:1px solid #bfc9dc;border-radius:10px;padding:.8rem;font:inherit;resize:vertical;color:#17233a;background:white}
.pdf-split-preview,.pdf-split-results{min-width:0}
.pdf-split-preview:not(:empty),.pdf-split-results:not(:empty){border:1px solid #dce4f0;padding:1rem;border-radius:13px;background:#fcfdff;display:grid;gap:.8rem}
.pdf-split-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,195px),1fr));gap:.6rem;max-height:365px;overflow:auto}
.pdf-split-card{display:flex;flex-direction:column;gap:.2rem;border:1px solid #dce5f3;border-radius:10px;background:white;padding:.8rem;min-width:0}
.pdf-split-card span{font-size:.88rem;color:#55627a;overflow-wrap:anywhere}
.pdf-split-results .pdf-split-download{justify-content:center;text-align:center;white-space:normal;overflow-wrap:anywhere;font-size:.89rem}
.pdf-split-preview p{margin:0;color:#526078}
.pdf-panel[data-pdf-tool="split"] [data-pdf-process]:disabled{opacity:.52;cursor:not-allowed}
@media(max-width:640px){.pdf-split-choose{padding:.8rem}.pdf-split-preview:not(:empty),.pdf-split-results:not(:empty){padding:.8rem}.pdf-split-list{grid-template-columns:1fr}}
