.pdf-editor{min-width:0}.pdf-editor [hidden]{display:none!important}.pdf-editor label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600}.pdf-editor input:not([type=file]),.pdf-editor select,.pdf-editor textarea{max-width:100%;min-height:44px;border:1px solid #d9dee5;border-radius:9px;background:#f8f9fb;padding:10px;color:#17283f;font:inherit}.pdf-editor textarea{resize:vertical}.pdf-editor input:focus-visible,.pdf-editor textarea:focus-visible,.pdf-editor select:focus-visible{outline:2px solid #f05c36;outline-offset:2px}.pdf-editor-upload{padding:26px;align-items:center;cursor:pointer}.pdf-editor-upload input{max-width:100%;font:inherit}.pdf-editor-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:22px 0}.pdf-editor-toolbar label{min-width:110px}.pdf-editor-controls{display:grid;grid-template-columns:minmax(0,1fr) 100px 70px;gap:14px;padding:20px;background:#fff;border:1px solid #e1e7ef;border-radius:14px}.pdf-editor-buttons{display:flex;gap:10px;flex-wrap:wrap;grid-column:1/-1}.pdf-editor-buttons .button{cursor:pointer}.pdf-editor-layout{display:grid;grid-template-columns:106px minmax(0,1fr);gap:16px;margin:20px 0}.pdf-editor-thumbnails{max-height:780px;overflow:auto;display:flex;align-items:stretch;flex-direction:column;gap:10px;padding:4px}.pdf-editor-thumb{border:1px solid #d9dee5;border-radius:8px;background:#fff;padding:6px;cursor:pointer;color:#526780;font:inherit;font-size:12px}.pdf-editor-thumb[aria-current=true]{border:2px solid #f05c36;background:#fff7f1}.pdf-editor-thumb canvas{display:block;width:100%;height:auto;background:#fff;margin-bottom:4px}.pdf-editor-preview{min-width:0;background:#edf1f7;padding:18px;align-self:start;border-radius:12px;overflow:hidden}.pdf-editor-paper{position:relative;background:#fff;box-shadow:0 3px 14px #10233c17;line-height:0}.pdf-editor-paper>canvas{display:block;width:100%;height:auto}.pdf-editor-overlay{position:absolute;inset:0;overflow:hidden}.pdf-editor-element{position:absolute;border:1px dashed transparent;touch-action:none;cursor:move;min-width:4px;min-height:4px;padding:0;background:none}.pdf-editor-element img{display:block;width:100%;height:100%;pointer-events:none;user-select:none}.pdf-editor-element[aria-selected=true]{border-color:#e95c37;outline:2px solid #fff8}.pdf-editor-element:focus-visible{outline:2px solid #e95c37}.pdf-editor-handle{position:absolute;right:-9px;bottom:-9px;width:24px;height:24px;border-radius:50%;background:#f05c36;border:3px solid #fff;cursor:nwse-resize;box-shadow:0 1px 4px #0003}.pdf-editor-selection{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:14px;background:#fff;border:1px solid #e1e7ef;border-radius:10px}.pdf-editor-selection input{width:130px}.pdf-editor-sign-dialog{width:min(640px,94vw);padding:24px;border:1px solid #d9dee5;border-radius:16px;color:#17283f}.pdf-editor-sign-dialog::backdrop{background:#15263f88}.pdf-editor-sign-dialog canvas{display:block;width:100%;height:auto;border:1px solid #d9dee5;border-radius:10px;background:#f8f9fb;touch-action:none;margin:16px 0}.pdf-editor .button:disabled{opacity:.5;cursor:wait}@media(max-width:700px){.pdf-editor-controls{grid-template-columns:1fr 80px;padding:14px}.pdf-editor-controls>label:first-child{grid-column:1/-1}.pdf-editor-layout{grid-template-columns:minmax(0,1fr);gap:12px}.pdf-editor-thumbnails{flex-direction:row;max-height:145px;max-width:100%}.pdf-editor-thumb{flex:0 0 72px}.pdf-editor-thumb canvas{max-height:100px;object-fit:contain}.pdf-editor-preview{padding:9px}.pdf-editor-toolbar{gap:8px}.pdf-editor-toolbar .button{padding:10px;font-size:12px}.pdf-editor-sign-dialog{padding:16px}.pdf-editor-sign-dialog h2{font-size:20px}}

.pdf-editor-batch{margin:18px 0;border:1px solid #e1e7ef;background:#fff;border-radius:12px;overflow:hidden}.pdf-editor-batch>summary{cursor:pointer;padding:18px;font-weight:750;font-size:14px;color:#17283f;line-height:1.6}.pdf-editor-batch .pdf-editor-controls{border:0;border-radius:0;grid-template-columns:repeat(3,minmax(0,1fr))}.pdf-editor-batch .setting-help{grid-column:1/-1;margin:0}.pdf-editor-batch input[type=file]{max-width:100%;font-size:12px}.pdf-editor-batch .pdf-editor-buttons span{font-size:12px;color:#687b91;align-self:center}@media(max-width:650px){.pdf-editor-batch .pdf-editor-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.pdf-editor-batch .pdf-editor-controls>label:first-child{grid-column:auto}}

/* Existing batch controls, with one discoverable entry point and scoped field groups. */
.pdf-editor-batch-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;background:#fff;border:1px solid #e1e7ef;border-radius:14px;margin:16px 0}
.pdf-editor-batch-entry strong{font-size:15px;color:#17283f}
.pdf-editor-batch-entry p{margin:5px 0 0;font-size:13px;color:#607087;line-height:1.6}
.pdf-editor-batch-entry__actions{display:flex;gap:8px;flex-wrap:wrap}
.pdf-editor [data-batch-shortcut]{min-height:44px;white-space:normal;word-break:keep-all}
.pdf-editor [data-batch-shortcut]:disabled{cursor:not-allowed}
.pdf-editor-batch{scroll-margin-top:100px}
.pdf-editor-batch>summary:focus-visible{outline:2px solid #f05c36;outline-offset:-4px}
.pdf-editor-batch label{min-width:0}
.pdf-editor-batch .pdf-editor-batch-scope{grid-column:1/-1;margin:0;font-size:13px;line-height:1.7;color:#425d7d}
.pdf-editor-batch-image-field{grid-column:1/-1}
.pdf-editor-batch input[type=file]{width:100%;min-width:0}
.pdf-editor-batch [data-batch-image-info]{min-width:0;overflow-wrap:anywhere}
@media(max-width:650px){.pdf-editor-batch-entry{align-items:stretch;flex-direction:column;padding:16px;gap:12px}.pdf-editor-batch-entry__actions .button{flex:1;min-width:0;padding:10px;font-size:13px}}

@media(max-width:650px){.pdf-editor-batch .pdf-editor-controls>label:first-child{grid-column:1/-1}}

.pdf-editor .pdf-editor-batch-status{color:#226c49}.pdf-editor .pdf-editor-batch-status--error{color:#b42318}

/* Keep the resize handle outside the artwork so a small check can be dragged.
   The numeric width control remains available at a page edge. */
.pdf-editor .pdf-editor-handle{right:-27px;bottom:-27px}
