.pdft{position:relative}
.pdft-privacy{font-size:.8rem;color:#2e7d32;background:#edf7ee;border-radius:.5rem;padding:.4rem .75rem;margin-bottom:1rem;display:inline-block}
.pdft-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:170px;border:2px dashed #b9c3d6;border-radius:1rem;background:#f8faff;cursor:pointer;transition:.15s;padding:1.5rem;text-align:center;margin:0}
.pdft-drop:hover,.pdft-drop.pdft-drag{border-color:var(--primary,#3b82f6);background:#eef4ff}
.pdft-drop-icon{font-size:2.6rem;color:var(--primary,#3b82f6);margin-bottom:.5rem}
.pdft-drop-title{font-weight:700;font-size:1.1rem}.pdft-drop-sub{font-size:.85rem;color:#6b7280}
.pdft-files{margin:.75rem 0}
.pdft-file{display:flex;align-items:center;padding:.5rem .75rem;border:1px solid #e5e7eb;border-radius:.6rem;margin-bottom:.4rem;background:#fff}
.pdft-file-name{font-weight:600;word-break:break-all}.pdft-handle{cursor:grab}
.pdft-file-thumb{width:38px;height:38px;object-fit:cover;border-radius:.3rem}
.pdft-options{margin-top:1rem;display:flex;flex-wrap:wrap;margin-left:-.5rem;margin-right:-.5rem}
.pdft-options>.pdft-field{width:100%;padding:0 .5rem}
.pdft-options>.pdft-half{width:50%}
@media(max-width:576px){.pdft-options>.pdft-half{width:100%}}
.pdft-color{height:38px;padding:.2rem;width:100%}
.pdft-run{margin-top:.5rem;border-radius:.75rem;font-weight:700}
.pdft-progress{margin-top:.75rem}
.pdft-grid-wrap{margin:1rem 0;border:1px solid #e5e7eb;border-radius:.75rem;padding:.75rem;background:#fbfcfe}
.pdft-grid-bar{display:flex;flex-wrap:wrap;align-items:center;margin-bottom:.5rem}
.pdft-grid,.pdft-review{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.75rem;max-height:520px;overflow:auto;padding:.25rem}
.pdft-grid[data-size=s]{grid-template-columns:repeat(auto-fill,minmax(85px,1fr))}
.pdft-grid[data-size=l]{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
.pdft-thumb{position:relative;background:#fff;border:2px solid #e5e7eb;border-radius:.5rem;padding:.35rem;text-align:center;cursor:pointer;user-select:none;transition:.12s}
.pdft-grid-order .pdft-thumb,.pdft-grid-organize .pdft-thumb{cursor:grab}
.pdft-thumb:hover{border-color:#9db7ec}
.pdft-thumb.pdft-sel{border-color:var(--primary,#3b82f6);box-shadow:0 0 0 3px rgba(59,130,246,.2)}
.pdft-thumb-img{min-height:110px;display:flex;align-items:center;justify-content:center;transition:transform .2s}
.pdft-thumb-canvas{max-width:100%;height:auto;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.pdft-thumb-loading{width:70%;height:100px;background:linear-gradient(90deg,#f1f3f7,#e7eaf0,#f1f3f7);border-radius:.25rem}
.pdft-thumb-label{font-size:.75rem;color:#6b7280;margin-top:.25rem}
.pdft-check{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;background:#fff;border:2px solid #cbd5e1;color:#fff;font-size:.7rem;display:flex;align-items:center;justify-content:center}
.pdft-sel .pdft-check{background:var(--primary,#3b82f6);border-color:var(--primary,#3b82f6)}
.pdft-blank{width:70%;height:100px;border:1px dashed #cbd5e1;display:flex;align-items:center;justify-content:center;color:#9ca3af;font-size:.8rem}
.pdft-thumb-actions{display:flex;justify-content:center;gap:.25rem;margin-top:.25rem}
.pdft-thumb-actions button{border:0;background:#f1f5f9;border-radius:.3rem;width:28px;height:26px;font-size:.75rem;color:#334155}
.pdft-thumb-actions button:hover{background:#e2e8f0}
.pdft-out-item{display:flex;align-items:center;padding:.6rem 0;border-bottom:1px solid #f1f5f9}
.pdft-out-thumb{width:48px;height:48px;object-fit:cover;border-radius:.3rem;border:1px solid #e5e7eb}
.pdft-out-info{min-width:0}
.pdft-sig-pad{width:100%;max-width:700px;height:auto;aspect-ratio:700/220;border:2px dashed #cbd5e1;border-radius:.5rem;background:#fff;touch-action:none;cursor:crosshair;display:block}
.pdft-place{position:relative;display:inline-block;max-width:100%;border:1px solid #e5e7eb}
.pdft-place-canvas{max-width:100%;max-height:600px;height:auto;display:block;cursor:crosshair}
.pdft-place-mark{position:absolute;pointer-events:none;outline:2px dashed var(--primary,#3b82f6)}
.pdft-place-ph{background:rgba(59,130,246,.15);color:#1d4ed8;font-size:.75rem;text-align:center;padding:.4rem;transform:translateY(-50%)}
.pdft-pre{white-space:pre-wrap;font-size:.75rem;max-height:300px;overflow:auto;background:#f8fafc;padding:.5rem;border-radius:.4rem}
.pdft-big-number{font-size:3rem;font-weight:800;text-align:center;line-height:1}.pdft-big-number small{font-size:1rem;font-weight:600;color:#6b7280}
.pdft-diff{font-family:monospace;font-size:.8rem;border:1px solid #e5e7eb;border-radius:.4rem;padding:.4rem;max-height:300px;overflow:auto}
.pdft-diff-add{background:#e6ffed}.pdft-diff-del{background:#ffeef0}
.pdft-formfill{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:0 1rem;border:1px solid #e5e7eb;border-radius:.6rem;padding:.75rem;max-height:480px;overflow:auto;margin-bottom:1rem}
.pdft-viewer{border:1px solid #e5e7eb;border-radius:.75rem;overflow:hidden;background:#525659}
.pdft-viewer-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;padding:.5rem;background:#f8fafc}
.pdft-viewer-bar .pdft-goto{width:70px}.pdft-viewer-bar .pdft-search{max-width:220px}
.pdft-search-res{background:#f8fafc;padding:0 .5rem .4rem}
.pdft-viewer-pages{height:75vh;overflow:auto;padding:1rem;display:flex;flex-direction:column;align-items:center;gap:1rem}
.pdft-vpage{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.4);max-width:100%;flex-shrink:0}
[data-theme-style=dark] .pdft-drop,[data-theme-style=dark] .pdft-file,[data-theme-style=dark] .pdft-grid-wrap,[data-theme-style=dark] .pdft-thumb{background:#1f2937;border-color:#374151}
