.pdf-hero{text-align:center;max-width:56rem;margin:0 auto 1.5rem}.pdf-hero h1{margin:1rem 0 .75rem;font-size:clamp(1.5rem,3vw,2.2rem);font-weight:750;line-height:1.2}.pdf-tool-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.85rem;display:grid}.pdf-tool-card{text-align:left;border:1px solid var(--glass-ring);background:var(--glass-input);cursor:pointer;border-radius:1rem;flex-direction:column;gap:.5rem;padding:1.1rem;transition:border-color .15s,transform .15s,box-shadow .15s;display:flex}.pdf-tool-card:hover{border-color:#6b5cf666;transform:translateY(-2px);box-shadow:0 12px 26px #0f172a1a}.pdf-tool-icon{border-radius:.7rem;flex-shrink:0;justify-content:center;align-items:center;width:2.4rem;height:2.4rem;display:flex}.pdf-tool-icon svg{width:20px;height:20px}.pdf-tool-card h2{margin:0;font-size:.92rem}.pdf-tool-card p{margin:0;line-height:1.4}.pdf-back{margin-bottom:.9rem}.pdf-workspace-card{padding:1.4rem}.pdf-campo{max-width:360px}.pdf-tool-actions{flex-wrap:wrap;gap:.6rem;margin-top:1rem;display:flex}.pdf-add-more{margin:.9rem 0}.pdf-file-chips{margin-top:.9rem}.pdf-error{color:#dc2626;margin-top:1rem;font-size:.85rem;font-weight:600}.dark .pdf-error{color:#f87171}.pdf-actions{border-top:1px solid var(--glass-ring);justify-content:flex-end;gap:.6rem;margin-top:1.25rem;padding-top:1rem;display:flex}.pdf-thumbs-hint{margin:1rem 0 .6rem}.pdf-thumbs-loading{margin-top:1rem}.pdf-thumbs-sel{flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:.7rem;display:flex}.pdf-thumb[aria-selected]{-webkit-user-select:none;user-select:none}.pdf-thumbs{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.85rem;display:grid}.pdf-thumb{background:var(--glass-input);border:1px solid var(--glass-ring);border-radius:.85rem;flex-direction:column;gap:.4rem;padding:.5rem;display:flex;position:relative}.pdf-thumb-drag{cursor:grab}.pdf-thumb-clickable{cursor:pointer}.pdf-thumb-selected{outline:2px solid var(--brand-500);outline-offset:2px}.pdf-thumb-check{z-index:4;color:#fff;pointer-events:none;background:#79c987;border:1px solid #36934a;border-radius:50%;place-items:center;width:24px;height:24px;display:grid;position:absolute;top:.5rem;right:.5rem;box-shadow:0 1px 4px #0000001f}.pdf-thumb-check svg{fill:none;stroke:currentColor;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round;width:23px;height:23px}.pdf-thumb-has-crop{outline-offset:2px;outline:2px solid #2563eb}.pdf-thumb-canvas{background:#fff;border-radius:.5rem;justify-content:center;align-items:center;min-height:110px;display:flex;overflow:hidden}.pdf-thumb-canvas img{max-width:100%;height:auto;transition:transform .15s;display:block}.pdf-thumb-badge{z-index:2;color:#fff;background:#0f172abf;border-radius:.4rem;padding:.05rem .35rem;font-size:.65rem;font-weight:700;position:absolute;top:.5rem;left:.5rem}.pdf-thumb-rotation-badge{z-index:2;color:#fff;background:#0f172abf;border-radius:.4rem;padding:.05rem .35rem;font-size:.62rem;font-weight:700;position:absolute;top:.5rem;right:.5rem}.pdf-thumb-crop-badge{z-index:2;color:#fff;background:#2563eb;border-radius:.4rem;padding:.1rem .4rem;font-size:.6rem;font-weight:700;position:absolute;top:.5rem;right:.5rem}.pdf-thumb-actions{justify-content:center;gap:.4rem;display:flex}.pdf-thumb-actions button{background:var(--glass-bg);color:var(--ink-soft);cursor:pointer;border:0;border-radius:.5rem;padding:.3rem .55rem;font-size:.9rem}.pdf-thumb-actions button:hover{color:var(--brand-500)}.pdf-thumb-delete{color:var(--ink-faint);cursor:pointer;background:0 0;border:0;align-self:center;padding:.15rem;font-size:.85rem}.pdf-thumb-delete:hover{color:var(--danger)}.pdf-thumb-crop-btn{border:1px solid var(--glass-ring);background:var(--glass-bg);color:var(--ink-soft);cursor:pointer;border-radius:.5rem;padding:.3rem .5rem;font-size:.72rem;font-weight:600}.pdf-thumb-crop-btn:hover{border-color:var(--brand-500);color:var(--brand-500)}.pdf-file-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.85rem;display:grid}.pdf-file-card{background:var(--glass-input);border:1px solid var(--glass-ring);cursor:grab;border-radius:.9rem;flex-direction:column;gap:.3rem;padding:.7rem;display:flex;position:relative}.pdf-file-badge{z-index:2;color:#fff;background:#0f172abf;border-radius:.4rem;padding:.05rem .35rem;font-size:.65rem;font-weight:700;position:absolute;top:.6rem;left:.6rem}.pdf-file-thumb{background:#fff;border-radius:.6rem;justify-content:center;align-items:center;height:130px;display:flex;overflow:hidden}.pdf-file-thumb img{object-fit:contain;max-width:100%;max-height:100%}.pdf-file-fallback{color:var(--ink-faint);font-size:.75rem;font-weight:700}.pdf-file-name{white-space:nowrap;text-overflow:ellipsis;margin:.2rem 0 0;font-size:.75rem;font-weight:600;overflow:hidden}.pdf-file-remove{color:#fff;cursor:pointer;background:#0f172ab3;border:0;border-radius:50%;width:22px;height:22px;font-size:.9rem;line-height:1;position:absolute;top:.5rem;right:.5rem}.pdf-file-remove:hover{background:var(--danger)}.pdf-crop-overlay{z-index:100;background:#0f172ad1;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.pdf-crop-modal{background:var(--glass-bg-strong);border:1px solid var(--glass-ring);border-radius:1.1rem;flex-direction:column;max-width:96vw;max-height:92vh;display:flex;overflow:hidden}.pdf-crop-head{border-bottom:1px solid var(--glass-ring);justify-content:space-between;align-items:center;gap:.75rem;padding:.9rem 1.1rem;display:flex}.pdf-crop-head h3{margin:0;font-size:.9rem}.pdf-crop-close{background:var(--glass-input);width:30px;height:30px;color:var(--ink-soft);cursor:pointer;border:0;border-radius:.6rem;font-size:1rem}.pdf-crop-body{background:#0f172a40;justify-content:center;align-items:center;padding:1rem;display:flex;overflow:auto}.pdf-crop-stage{touch-action:none;-webkit-user-select:none;user-select:none;background-size:cover;position:relative;box-shadow:0 10px 30px #00000059}.pdf-crop-shade{pointer-events:none;background:#0f172a99;position:absolute}.pdf-crop-box{box-sizing:border-box;cursor:move;border:2px solid #3b82f6;position:absolute}.pdf-crop-size{color:#fff;white-space:nowrap;background:#2563eb;border-radius:.35rem;padding:.15rem .45rem;font-size:.68rem;position:absolute;top:-1.9rem;left:0}.pdf-crop-handle{background:#3b82f6;border:2px solid #fff;border-radius:50%;width:13px;height:13px;position:absolute;box-shadow:0 1px 5px #00000080}.pdf-crop-handle-nw{cursor:nwse-resize;top:-8px;left:-8px}.pdf-crop-handle-n{cursor:ns-resize;top:-8px;left:50%;transform:translate(-50%)}.pdf-crop-handle-ne{cursor:nesw-resize;top:-8px;right:-8px}.pdf-crop-handle-e{cursor:ew-resize;top:50%;right:-8px;transform:translateY(-50%)}.pdf-crop-handle-se{cursor:nwse-resize;bottom:-8px;right:-8px}.pdf-crop-handle-s{cursor:ns-resize;bottom:-8px;left:50%;transform:translate(-50%)}.pdf-crop-handle-sw{cursor:nesw-resize;bottom:-8px;left:-8px}.pdf-crop-handle-w{cursor:ew-resize;top:50%;left:-8px;transform:translateY(-50%)}.pdf-crop-foot{border-top:1px solid var(--glass-ring);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;padding:.9rem 1.1rem;display:flex}.pdf-crop-actions{gap:.6rem;display:flex}@media (max-width:640px){.pdf-tool-grid{grid-template-columns:1fr 1fr}}@media (max-width:420px){.pdf-tool-grid{grid-template-columns:1fr}}.pdf-recebido{text-align:center;background:color-mix(in oklab, var(--brand-500) 10%, transparent);border:1px solid color-mix(in oklab, var(--brand-500) 30%, transparent);border-radius:1rem;flex-wrap:wrap;justify-content:center;align-items:center;gap:.75rem;margin:0;padding:.75rem 1rem;font-size:.85rem;display:flex}.pdf-thumb-zoom{flex-wrap:wrap;align-items:center;gap:.75rem;margin:1rem 0;font-size:.85rem;display:flex}.pdf-thumb-zoom input{width:min(240px,100%);accent-color:var(--brand-500);cursor:pointer}.pdf-thumb-zoom output{font-variant-numeric:tabular-nums;min-width:3rem}.pdf-thumbs-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin:1rem 0;display:flex}.pdf-thumbs-toolbar .pdf-thumb-zoom{margin:0}.pdf-replace-file{align-items:center;gap:.5rem;display:inline-flex}.pdf-replace-file svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:17px;height:17px}.pdf-file-list-controls{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.75rem;display:flex}.pdf-file-list-controls .pdf-thumb-zoom{margin:0}.pdf-thumb-canvas img{width:100%}.pdf-thumbs{gap:1.75rem;padding:1rem}.pdf-thumb{padding-top:2.5rem}.pdf-thumb-toolbar{gap:.25rem;display:flex;position:absolute;top:.4rem;right:.4rem}.pdf-thumb-toolbar button{border:1px solid var(--glass-ring);background:var(--glass-bg-strong);width:30px;height:30px;color:var(--ink-soft);cursor:pointer;border-radius:50%;place-items:center;padding:.35rem;display:grid}.pdf-thumb-toolbar button:hover,.pdf-thumb-toolbar button:focus-visible{color:var(--brand-500);border-color:var(--brand-500)}.pdf-thumb-toolbar button:disabled{opacity:.4;cursor:default}.pdf-thumb-toolbar svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;width:18px;height:18px}.pdf-file-card .pdf-thumb-toolbar{right:2.2rem}.pdf-thumb>.pdf-thumb-badge{box-sizing:border-box;place-items:center;min-width:24px;height:24px;display:grid;top:.5rem}.pdf-thumb>.pdf-thumb-toolbar{flex-wrap:wrap;justify-content:center;align-items:center;gap:.35rem;margin-top:auto;padding-top:.35rem;display:flex;position:static}.pdf-thumb-status{pointer-events:none;justify-content:center;align-items:center;gap:.25rem;height:24px;display:flex;position:absolute;top:.5rem;left:2.25rem;right:2.25rem}.pdf-thumb-status .pdf-thumb-rotation-badge,.pdf-thumb-status .pdf-thumb-crop-badge{font-size:.6rem;position:static}.pdf-insert-blank{z-index:3;border:1px solid var(--glass-ring);background:var(--glass-bg-strong);width:30px;height:30px;color:var(--brand-500);cursor:pointer;border-radius:50%;place-items:center;padding:0;font-size:1.4rem;display:grid;position:absolute;top:50%;right:-1.8rem;transform:translate(-50%,-50%);box-shadow:0 2px 8px #0000001f}.pdf-insert-blank:hover,.pdf-insert-blank:focus-visible{border-color:var(--brand-500)}.pdf-insert-blank svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;width:18px;height:18px;display:block}.pdf-insert-before{left:-1rem;right:auto}.pdf-blank-thumb{aspect-ratio:3/4;color:#64748b;place-items:center;width:100%;font-size:.75rem;display:grid}.pdf-page-preview{width:min(900px,94vw)}.pdf-page-preview-body{place-items:center;min-height:0;padding:2rem;display:grid;overflow:auto}.pdf-page-preview-body img{object-fit:contain;max-width:100%;max-height:65vh}.pdf-blank-preview{aspect-ratio:3/4;color:#64748b;background:#fff;place-items:center;width:min(400px,60vw);display:grid}.pdf-thumbs{align-items:start}.pdf-thumb-canvas{background:0 0;flex-shrink:0;min-height:0}.pdf-rotated-page{flex-shrink:0;width:100%;height:auto;display:block}.pdf-thumb-canvas .pdf-rotated-page{border-radius:.5rem;width:100%;height:auto;overflow:hidden;max-width:100%!important}.pdf-image-settings{border:1px solid var(--glass-ring);box-sizing:border-box;border-radius:1rem;gap:1rem;width:100%;min-width:0;max-width:none;margin:1.25rem 0 0;padding:1rem;display:grid}.pdf-image-settings>legend{padding:0 .4rem;font-weight:700}.pdf-image-choice{border:0;min-width:0;margin:0;padding:0}.pdf-image-choice legend{margin-bottom:.5rem;font-size:.85rem;font-weight:600}.pdf-image-choice-row{gap:.6rem;display:flex}.pdf-image-option{border:1px solid var(--glass-ring);background:var(--glass-input);cursor:pointer;text-align:center;border-radius:.75rem;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:.5rem;min-width:0;padding:.85rem .35rem;font-size:.8rem;display:flex;position:relative}.pdf-image-option.active{border-color:var(--brand-500);background:color-mix(in oklab, var(--brand-500) 10%, transparent)}.pdf-image-option:focus-within{outline:2px solid var(--brand-500);outline-offset:2px}.pdf-image-option input{opacity:0;width:1px;height:1px;position:absolute}.pdf-image-option svg{fill:none;stroke:currentColor;stroke-width:2px;width:32px;height:32px}.pdf-image-choice:disabled{opacity:.5}.pdf-image-choice:disabled label{cursor:default}.pdf-image-merge{cursor:pointer;align-items:center;gap:.6rem;font-size:.85rem;display:flex}.pdf-image-merge input{width:20px;height:20px;accent-color:var(--brand-500);flex-shrink:0}
