/* narzędzia PDF: łączenie, podział, kompresja, obracanie, JPG na PDF */
.converter.tool{max-width:860px}
.tl-panel{padding:18px 18px 20px}
.tl-panel[hidden]{display:none!important}
.tl-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.tl-head b{font-size:15px;color:#0b2545}
.tl-head .tl-btns{display:flex;gap:8px;flex-wrap:wrap}
.converter .tl-sm{padding:9px 14px;font-size:14px;border-radius:999px}
.tl-files{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.tl-file{display:flex;align-items:center;gap:12px;padding:10px 12px;background:#fff5f5;border:1px solid #fecaca;border-radius:14px;cursor:grab}
.tl-file.drag{opacity:.45}
.tl-file.over,.tl-card.over{outline:2px dashed #E31C23;outline-offset:2px}
.tl-file .file-icon{width:42px;height:42px;font-size:12px}
.tl-file .file-icon.img{background:#f59e0b}
.tl-grip{color:#c4a3a6;font-size:13px;letter-spacing:-2px;user-select:none}
.tl-finfo{flex:1;min-width:0}
.tl-finfo .file-name{font-weight:700;font-size:14.5px;color:#0b2545;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl-finfo .file-meta{font-size:13px;color:#5a6b80;margin-top:2px}
.tl-acts{display:flex;gap:4px;flex-shrink:0}
.tl-mini{width:34px;height:34px;border-radius:10px;border:1px solid #fecdd3;background:#fff;color:#0b2545;font-size:16px;font-weight:700;cursor:pointer;line-height:1;display:grid;place-items:center;font-family:inherit;touch-action:manipulation}
.tl-mini:hover{border-color:#E31C23;color:#c41820}
.tl-mini.del:hover{background:#fef2f2}
.tl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:12px;margin-bottom:16px;max-height:560px;overflow:auto;padding:4px}
.tl-card{position:relative;background:#fff;border:2px solid #fde2e4;border-radius:14px;padding:8px;display:flex;flex-direction:column;gap:6px;transition:border-color .15s,box-shadow .15s}
.tl-th{aspect-ratio:3/4;display:grid;place-items:center;background:#f8f8fa;border-radius:8px;overflow:hidden;transition:transform .25s ease}
.tl-th canvas,.tl-th img{max-width:100%;max-height:100%;display:block;box-shadow:0 1px 4px rgba(15,23,42,.18);background:#fff}
.tl-ph{font-size:22px;font-weight:800;color:#d1d5db}
.tl-cap{font-size:12.5px;color:#3d4f66;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl-cardbar{display:flex;justify-content:center;gap:6px}
.tl-imgs .tl-card{cursor:grab}
.tl-pages .tl-card.pick{cursor:pointer}
.tl-pages .tl-card.pick:hover{border-color:#fda4af}
.tl-pages .tl-card.sel{border-color:#E31C23;box-shadow:0 0 0 2px rgba(227,28,35,.18)}
.tl-pages .tl-card.sel:after{content:"✓";position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:50%;background:#E31C23;color:#fff;font-weight:800;font-size:14px;display:grid;place-items:center}
.tl-pages .tl-card.rot{border-color:#f59e0b}
.nopick .tl-card{cursor:default}
.tl-opts{margin-bottom:14px}
.tl-opts .format-label{margin:14px 0 8px}
.tl-seg{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
.tl-seg .format-btn{min-height:64px}
.tl-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.tl-hint{font-size:13.5px;color:#5a6b80;margin:10px 0 0;line-height:1.45}
.tl-row .tl-hint{margin:0}
.tl-input{flex:1;min-width:200px;padding:11px 14px;border:2px solid #fecdd3;border-radius:12px;font:inherit;font-size:15px;color:#0b2545;background:#fff}
.tl-input:focus{outline:none;border-color:#E31C23}
.tl-num{flex:0 0 90px;min-width:0}
.tl-check{display:flex;gap:10px;align-items:flex-start;margin-top:14px;padding:12px 14px;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;font-size:14px;line-height:1.45;color:#3d4f66;cursor:pointer}
.tl-check input{margin-top:3px;width:18px;height:18px;accent-color:#E31C23;flex-shrink:0}
.converter.tool #tl-run{width:100%}
.converter.tool .notice a{color:inherit;text-decoration:underline}
@media (max-width:600px){
 .tl-panel{padding:14px 12px 16px}
 .tl-grid{grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:8px;max-height:460px}
 .tl-seg{grid-template-columns:1fr 1fr}
 .tl-file{gap:8px;padding:8px}
 .tl-grip{display:none}
 .tl-mini{width:32px;height:32px}
}
/* karta narzędzia na stronie głównej i w stopce */
.tool-ic.t-merge{background:linear-gradient(135deg,#3b82f6,#1d4ed8)}
.tool-ic.t-split{background:linear-gradient(135deg,#f97316,#c2410c)}
.tool-ic.t-zip{background:linear-gradient(135deg,#10b981,#047857)}
.tool-ic.t-rot{background:linear-gradient(135deg,#8b5cf6,#6d28d9)}
.tool-ic.t-img{background:linear-gradient(135deg,#f59e0b,#b45309)}
