.merge-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:12px}.merge-steps{display:grid;gap:10px;min-width:0}.merge-panel{min-width:0;padding:12px 14px}.merge-panel h2{margin:0 0 10px;font-size:18px}.merge-file{gap:9px;margin-top:8px;padding:9px;border:1px solid var(--pdf-line);border-radius:9px}.merge-file-icon{display:grid;place-items:center;width:46px;height:46px;flex:none;color:#bf3645;background:#fceef0;border-radius:50%}.merge-file-icon svg{width:26px;height:26px}.merge-file-actions{display:flex;flex-wrap:wrap;gap:5px}.merge-file-actions button,.merge-file-actions .pdf-import{min-height:34px;padding:5px 9px;font-size:13px}.merge-file .pdf-status:not(:empty){flex-basis:100%}.merge-selection{display:grid;grid-template-columns:minmax(0,1fr) minmax(135px,26%);gap:12px;align-items:start;margin-top:8px}.merge-source-pages{display:flex;gap:8px;overflow:auto;padding:4px}.merge-source-page{position:relative;display:grid;gap:4px;flex:0 0 78px;text-align:center;cursor:pointer}.merge-source-page input{position:absolute;left:3px;top:4px;accent-color:var(--pdf-blue)}.merge-thumb{display:grid;place-items:center;overflow:hidden;background:#fff;border:1px solid var(--pdf-line);border-radius:6px;width:100%;height:82px}.merge-thumb img{width:100%;height:100%;object-fit:contain}.merge-source-page:has(input:checked) .merge-thumb,.merge-source-page:focus-within .merge-thumb{outline:2px solid var(--pdf-blue);outline-offset:-1px}.merge-all{display:inline-flex;gap:6px;align-items:center}.merge-range{min-width:0}.merge-range input{width:100%}.merge-range small,.merge-all small{color:#536688}.merge-range p{margin:4px 0 0;color:#a22024;font-size:13px}.merge-empty{color:#536688;margin:8px 0 0;font-size:14px}.merge-source-tag{display:inline-block;min-width:29px;padding:2px 6px;border-radius:12px;background:#e8edf8}.pdf-merge .merge-preview-button{min-height:0;padding:0;border:0;background:transparent}.merge-preview-button .merge-thumb{width:44px;height:42px}.merge-export{margin-top:12px}.merge-dialog{border:1px solid var(--pdf-line);border-radius:12px;width:min(750px,calc(100% - 28px));max-height:92vh;color:var(--pdf-ink);padding:14px}.merge-dialog::backdrop{background:#14213b70}.merge-dialog>div:first-child{display:flex;gap:10px;justify-content:space-between;align-items:center;overflow-wrap:anywhere}.merge-dialog canvas{display:block;max-width:100%;max-height:66vh;width:auto;height:auto;object-fit:contain;margin:0 auto}.merge-dialog .pdf-view-controls{margin-top:8px;align-items:center}@media(max-width:960px){.merge-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:500px){.merge-selection{grid-template-columns:minmax(0,1fr)}}.merge-insert{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-top:10px}.merge-insert [data-kind=error]{color:#a22024}.merge-order-help{color:#536688;font-size:13px;margin:0 0 8px}.merge-output-pages{height:auto;max-height:590px}.pdf-editor .merge-output-page{grid-template-columns:auto auto minmax(0,1fr) auto auto;height:auto;min-height:54px;align-items:center;border:1px solid var(--pdf-line);border-radius:8px;gap:8px}.merge-output-page[data-source=B]{background:#edf3ff}.merge-output-page[data-drop]{outline:2px solid var(--pdf-blue);outline-offset:-2px}.pdf-editor .merge-grip,.pdf-editor .merge-remove{display:inline-flex;width:34px;min-height:34px;padding:4px}.pdf-editor .merge-grip{cursor:grab;touch-action:none;font-size:20px}.pdf-editor .merge-remove{color:#a22024}.merge-remove svg{fill:none;stroke:currentColor;stroke-width:1.8}.merge-output-page .merge-source-tag{justify-self:start;overflow-wrap:anywhere}@media(max-width:820px){.merge-output-pages{display:block;max-height:390px}.merge-output-pages li+li{margin-top:6px}}
