/* ToolChowk extra engines (sheet | join | pdf | batch). Loaded after tools.css. */
/* ---------- tools2 additions ---------- */
.t2-cropbox{display:grid;gap:16px;justify-items:center;width:100%}
.t-seg+.t2-cropbox{margin-top:6px}
.t2-sheet img{max-height:min(46vh,440px);border-radius:2px;box-shadow:0 0 0 1px var(--line)}
.t-result>.t-seg{margin-bottom:2px}
.t-result .t-dl:not(.t-primary){margin-top:-6px}
/* join: two upload slots */
.t2-slots{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;width:100%;max-width:520px}
.t2-slot{position:relative;display:flex;align-items:center;gap:10px;min-height:72px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer;min-width:0;transition:border-color .15s,background .15s}
.t2-slot:hover{border-color:color-mix(in oklab,var(--accent) 50%,var(--line))}
.t2-slot.t2-next{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.t2-slot.t2-filled{background:var(--surface-2)}
.t2-slot img{width:44px;height:44px;object-fit:cover;border-radius:6px;flex:none;background:#fff;border:1px solid var(--line)}
.t2-slot-ic{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:8px;background:var(--accent-soft);color:var(--accent)}
.t2-slot-tx{display:grid;gap:1px;min-width:0}
.t2-slot-tx strong{font-size:.98rem}
.t2-slot-tx small{font-size:.8rem;color:var(--text-3);line-height:1.25}
.t2-slot .t-tick{position:absolute;top:6px;right:6px}
.t2-joinwrap{padding:12px;background:var(--surface-2)}
.t2-joincv{display:block;max-width:100%;height:auto;max-height:min(40vh,380px);width:auto;background:#fff;box-shadow:0 0 0 1px var(--line),var(--shadow)}
.t2-wh>.t-field:last-child{flex:1}
.t2-kb{display:grid;gap:12px;justify-items:center;width:100%}
.t2-range input{width:100%}
/* pdf: sortable list */
.t2-sort{counter-reset:none}
.t2-row{padding:8px 8px 8px 6px;gap:8px;cursor:grab}
.t2-row.t2-drag{opacity:.45}
.t2-row.t2-over{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.t2-grip{display:flex;color:var(--text-3);flex:none}
.t2-grip svg{width:18px;height:18px}
.t2-thumb{width:48px;height:48px;object-fit:cover;border-radius:6px;flex:none;background:#fff;border:1px solid var(--line)}
.t-root .t-act .t-btn{min-height:48px;min-width:48px}
.t-act .t2-ib{width:48px;padding:0}
.t-root input[type=range]{height:48px}
.t2-ib:disabled{opacity:.35;cursor:default}
.t2-add{width:100%;max-width:520px;border-style:dashed}
.t2-opts{display:grid;gap:12px;justify-items:center;width:100%;max-width:520px}
.t2-kbbox{width:100%}
.t2-pdfcard{display:flex;align-items:center;gap:14px;width:100%;max-width:420px;padding:16px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);text-align:left}
.t2-pdfic{display:grid;place-items:center;width:52px;height:52px;flex:none;border-radius:12px;background:var(--accent-soft);color:var(--accent)}
.t2-pdfcard .t-file-txt strong{font-size:1rem}
.t2-pdfcard .t-file-txt span{font-size:.9rem}
/* batch: progress */
.t2-bar{width:100%;max-width:520px;height:8px;border-radius:99px;background:var(--surface-2);border:1px solid var(--line);overflow:hidden}
.t2-bar span{display:block;height:100%;width:0;background:var(--accent);transition:width .25s}
.t-file-txt .t-from{font-weight:500;text-decoration-thickness:1px}
@media(max-width:460px){.t2-slots{gap:8px}.t2-slot{flex-direction:column;align-items:flex-start;gap:6px;padding:10px}.t2-row .t2-grip{display:none}.t-act{gap:4px}}
