/* Scoped merger interface; shared tokens and typography come from the universal template. */
.merge-app{padding-top:8px;padding-bottom:26px;color:var(--text)}[hidden]{display:none!important}.merge-app button,.merge-app input,.merge-app select{font:inherit}.merge-app button,.merge-app a,.merge-app input,.merge-app select,.merge-app summary{outline-offset:4px}.merge-app :focus-visible{outline:3px solid var(--brand)}.merge-app button{cursor:pointer}.merge-app button:disabled{cursor:not-allowed;opacity:.48}.engine-status{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px;margin:0 0 18px;min-height:30px}.engine-status>i{color:var(--brand)}.engine-status.ready>i{color:#239d73}.m-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 16px;min-height:44px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font-weight:650;font-size:13px;text-decoration:none;transition:background .2s,transform .2s,box-shadow .2s}.m-btn:hover:not(:disabled){background:var(--soft);transform:translateY(-1px)}.m-btn.primary{background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:0 5px 14px #5269de26}.m-btn.primary:hover:not(:disabled){background:#445ac9}.m-btn.large{padding:17px 28px;font-size:15px;border-radius:14px}.m-btn.small{min-height:36px;padding:7px 11px;font-size:12px}.m-btn.quiet{background:transparent;box-shadow:none}.merge-drop{border:1.5px dashed #bdc7ee;background:linear-gradient(140deg,var(--surface),var(--soft));border-radius:25px;text-align:center;padding:40px 24px 31px;transition:border-color .25s,box-shadow .25s}.merge-drop.dragging{border-color:var(--brand);box-shadow:inset 0 0 0 4px #5269de20}.merge-drop .upload-art{position:relative;width:110px;height:100px;margin:0 auto 24px}.upload-sheet{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;width:62px;height:79px;border:1px solid #ced5ed;border-radius:12px;background:var(--surface);box-shadow:0 7px 16px #5269de12}.upload-sheet.back{transform:rotate(-12deg);left:16px;top:2px}.upload-sheet.front{transform:rotate(7deg);left:35px;top:10px;color:#d35c68;font-size:26px}.upload-sheet b{font-size:10px;letter-spacing:1px}.upload-plus{position:absolute;bottom:0;left:6px;display:grid;place-items:center;width:32px;height:32px;border:3px solid var(--surface);border-radius:50%;background:var(--brand);color:white}.merge-drop h2{font-size:23px;letter-spacing:-.6px;margin:0 0 9px}.merge-drop p{color:var(--muted);font-size:14px;margin:0 0 24px}.merge-drop .drop-hint{font-size:12px;margin:13px 0 23px}.merge-drop small{display:block;color:var(--muted);font-size:11px;line-height:1.7}.merge-drop.compact{padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;margin-bottom:28px}.merge-drop.compact .upload-art,.merge-drop.compact h2,.merge-drop.compact>p:not(.drop-hint),.merge-drop.compact small{display:none}.merge-drop.compact .drop-hint{margin:0}.merge-drop.compact .m-btn{padding:11px 18px;font-size:13px}.m-section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:27px 0 22px}.m-kicker{color:var(--brand);font-size:10px;font-weight:750;letter-spacing:1.7px}.m-section-heading h2{font-size:23px;letter-spacing:-.7px;margin:6px 0 7px}.m-section-heading p{font-size:12px;color:var(--muted);margin:0;line-height:1.65}.m-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.m-segment{display:flex;padding:4px;border:1px solid var(--border);border-radius:12px;background:var(--soft)}.m-segment button{border:0;background:transparent;border-radius:8px;min-height:35px;padding:7px 11px;color:var(--muted);font-size:12px;display:flex;gap:7px;align-items:center}.m-segment button[aria-pressed=true]{background:var(--surface);color:var(--brand);box-shadow:0 2px 5px #14234b09}.file-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.file-card{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:18px;overflow:visible;min-width:0;transition:box-shadow .2s,transform .2s}.file-card:hover{box-shadow:0 8px 25px #14234b0a}.file-card.invalid{border-color:#e99494}.card-thumbnail{height:160px;border-radius:17px 17px 0 0;background:var(--soft);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;padding:14px}.card-thumbnail canvas{max-height:100%;max-width:100%;width:auto;height:auto;box-shadow:0 3px 9px #1112}.card-thumbnail>.bi{font-size:36px;color:#b2bddf}.card-number{position:absolute;left:12px;top:12px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--border);border-radius:8px;min-width:27px;height:27px;font-size:11px;font-weight:750;z-index:1}.drag-handle{position:absolute;right:9px;top:8px;border:0;background:var(--surface);color:var(--muted);border-radius:8px;width:34px;height:34px;cursor:grab!important;touch-action:none;z-index:1}.drag-handle:active{cursor:grabbing!important}.file-details{padding:15px}.file-name{font-size:13px;font-weight:700;margin:0 0 6px;overflow-wrap:anywhere;line-height:1.5}.file-meta{font-size:11px;color:var(--muted);margin:0 0 12px;line-height:1.7}.file-status{display:flex;align-items:center;gap:5px;color:#278462;font-size:10px;margin:0 0 12px}.file-status.error{color:#bd4556}.file-status.pending{color:var(--muted)}.file-actions{display:flex;gap:7px;align-items:center}.file-actions .m-btn{font-size:11px;min-height:34px;padding:7px 10px}.file-actions .remove-file{margin-left:auto;color:#cc5263}.card-more{position:relative}.card-more>summary{list-style:none;cursor:pointer;padding:6px 9px;border:1px solid var(--border);border-radius:8px;min-height:34px;display:grid;place-items:center}.card-more>summary::-webkit-details-marker{display:none}.more-menu{position:absolute;bottom:calc(100% + 7px);right:0;z-index:8;min-width:155px;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 8px 30px #14234b20;display:grid;gap:4px}.more-menu button{padding:9px;border:0;border-radius:7px;background:transparent;color:var(--text);text-align:left;font-size:12px}.more-menu button:hover{background:var(--soft)}.file-grid.list{grid-template-columns:1fr;gap:10px}.file-grid.list .file-card{display:grid;grid-template-columns:85px minmax(0,1fr)}.file-grid.list .card-thumbnail{height:100%;min-height:100px;border-radius:17px 0 0 17px;padding:10px}.file-grid.list .card-thumbnail canvas{max-height:75px}.file-grid.list .file-details{padding:15px 49px 15px 17px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center}.file-grid.list .file-name,.file-grid.list .file-meta,.file-grid.list .file-status{grid-column:1}.file-grid.list .file-actions{grid-column:2;grid-row:1/4}.file-grid.list .file-meta{margin-bottom:3px}.file-grid.list .file-status{margin-bottom:0}.file-grid.list .drag-handle{top:50%;transform:translateY(-50%)}.file-grid.list .card-number{left:6px;top:5px;font-size:10px;min-width:22px;height:22px}.sortable-ghost{opacity:.35}.sortable-chosen{box-shadow:0 0 0 2px var(--brand)}.merge-summary{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--border);background:var(--surface);border-radius:17px;margin:25px 0;padding:22px 12px}.merge-summary>div{text-align:center;padding:0 10px;border-right:1px solid var(--border)}.merge-summary>div:last-child{border:0}.merge-summary span,.result-stats span{display:block;font-size:10px;color:var(--muted);margin-bottom:8px}.merge-summary strong{font-size:21px;letter-spacing:-.6px}.merge-summary .summary-estimate{font-size:11px;letter-spacing:0;font-weight:500}.merge-advanced{border:1px solid var(--border);border-radius:18px;background:var(--surface);overflow:hidden}.merge-advanced>summary{display:flex;align-items:center;gap:13px;padding:21px;cursor:pointer;list-style:none}.merge-advanced>summary::-webkit-details-marker{display:none}.m-settings-icon{background:var(--soft);color:var(--brand);display:grid;place-items:center;width:40px;height:40px;border-radius:12px}.merge-advanced summary strong{font-size:14px}.merge-advanced summary small{display:block;color:var(--muted);font-size:11px;margin-top:6px}.merge-advanced summary>.bi{margin-left:auto;transition:transform .25s}.merge-advanced[open] summary>.bi{transform:rotate(180deg)}.advanced-body{padding:0 24px 24px;animation:merge-reveal .25s ease}.m-settings-group{border-top:1px solid var(--border);padding:23px 0 4px}.m-settings-group h3{font-size:13px;margin:0 0 11px;display:flex;gap:9px;align-items:center}.m-settings-group h3>i{color:var(--brand)}.m-settings-group p{color:var(--muted);font-size:11px;line-height:1.8;margin:8px 0 17px}.m-settings-columns{display:grid;grid-template-columns:1fr 1fr;column-gap:25px;row-gap:16px}.m-field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600}.m-field>small{display:inline;font-weight:400;color:var(--muted)}.m-field input,.m-field select,.selection-row input,.selection-row select,.preview-toolbar input,.organizer-pagination input{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:9px;min-height:43px;padding:10px 11px;width:100%;min-width:0;font-size:12px}.m-field input:disabled{opacity:.45}.m-two-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:12px 0}.m-options{display:grid;grid-template-columns:1fr 1fr;gap:18px 25px}.m-option,.m-consent{display:flex;gap:11px;align-items:flex-start}.m-option input,.m-consent input{accent-color:var(--brand);width:17px;height:17px;margin:2px 0 0;flex-shrink:0}.m-option strong,.m-consent strong{font-size:12px;font-weight:600;line-height:1.5}.m-option small,.m-consent small{display:block;color:var(--muted);font-size:10px;line-height:1.8;margin-top:4px}.m-option em{display:inline-block;font-size:8px;font-style:normal;margin-left:4px;padding:2px 5px;border:1px solid var(--border);border-radius:5px;color:var(--muted);font-weight:400}.m-option.unsupported{opacity:.64}.structure-note{padding:12px 14px;background:var(--soft);border-radius:9px}.m-consent{padding:15px 17px;border:1px solid #cbd6f3;border-radius:13px;background:var(--soft);margin-top:14px}.m-consent.warning{border-color:#e7cba0}.selection-row{display:grid;grid-template-columns:minmax(130px,1fr) 140px minmax(130px,1fr) 70px;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--border)}.selection-name{font-size:12px;overflow-wrap:anywhere}.selection-count{font-size:10px;color:var(--muted)}.selection-error{grid-column:1/-1;font-size:11px;color:#c54c5c}.selection-label{display:flex;flex-direction:column;gap:4px;font-size:10px;color:var(--muted)}.advanced-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.advanced-actions .quiet{margin-left:auto}.m-pill{font-size:10px;border-radius:20px;padding:7px 10px;background:var(--soft);color:var(--brand)}.merge-action{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:27px 0;padding:23px 0}.merge-action strong{font-size:14px}.merge-action p{font-size:11px;color:var(--muted);margin:7px 0 0;line-height:1.7}.merge-cta{font-size:15px;padding:17px 25px;min-width:210px;border-radius:14px}.merge-privacy{text-align:center;font-size:10px;color:var(--muted);margin:24px 0 0;line-height:1.8}.m-alert{background:var(--soft);border:1px solid var(--border);padding:14px 17px;border-radius:11px;font-size:12px;line-height:1.8;margin:15px 0}.m-alert p{margin:0}.m-alert.error{color:#a83248;background:#fff1f3;border-color:#f3ccd5}.dark .m-alert.error{color:#ffb8c6;background:#3d2330;border-color:#683446}.m-alert.warning{background:#fdf8ed;color:#81602e;border-color:#efddb9}.dark .m-alert.warning{background:#312b23;color:#dfcaa5;border-color:#594b33}.document-notices{color:var(--muted);font-size:11px;line-height:1.8}.document-notices p{margin:12px 0}.inline-confirm .m-btn{margin:12px 7px 0 0}.m-toast{padding:12px 16px;border:1px solid #b3dbc7;border-radius:11px;background:#edf9f2;color:#28774c;font-size:12px;margin:12px 0}.dark .m-toast{background:#20392c;color:#a5dfb9;border-color:#395f47}.organizer-panel,.preview-panel{margin-top:25px;padding:0 23px 24px;border:1px solid var(--border);border-radius:18px;background:var(--surface)}.page-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.page-card{border:1px solid var(--border);border-radius:12px;position:relative;min-width:0;overflow:hidden;background:var(--bg)}.page-card .card-thumbnail{height:145px;border-radius:12px 12px 0 0}.page-card .card-thumbnail canvas{box-shadow:none}.page-card p{font-size:10px;padding:0 10px;overflow-wrap:anywhere;color:var(--muted);line-height:1.6}.page-card .page-buttons{display:flex;flex-wrap:wrap;gap:3px;padding:0 7px 9px}.page-buttons button{display:grid;place-items:center;border:1px solid var(--border);border-radius:6px;width:29px;height:29px;background:var(--surface);color:var(--text);font-size:12px}.page-buttons button:last-child{color:#cc5263}.page-position{display:flex;align-items:center;gap:5px;margin:0 8px 9px;font-size:9px;color:var(--muted)}.page-position input{width:48px;min-width:0;border:1px solid var(--border);border-radius:5px;padding:5px;background:var(--surface);color:var(--text)}.organizer-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin-top:20px;font-size:10px;color:var(--muted)}.organizer-pagination label{display:flex;align-items:center;gap:6px}.organizer-pagination input{width:65px;min-height:33px;padding:7px}.processing-card,.merge-result{text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:23px;padding:48px 30px}.processing-card h2,.merge-result h2{font-size:29px;letter-spacing:-1px;margin:12px 0}.processing-card p,.merge-result>p{font-size:12px;color:var(--muted);line-height:1.8;overflow-wrap:anywhere}.processing-card progress{display:block;width:min(100%,420px);height:7px;accent-color:var(--brand);margin:24px auto}.process-orbit,.result-tick{display:grid;place-items:center;width:74px;height:74px;border-radius:23px;margin:0 auto 27px;background:var(--soft);color:var(--brand);font-size:31px}.process-orbit{animation:merge-pulse 1.8s ease infinite}.result-tick{color:#279e73;background:#eaf8f1;animation:merge-reveal .35s ease}.result-stats{display:flex;justify-content:center;gap:44px;margin:27px 0}.result-stats strong{font-size:21px}.result-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:18px 0 26px}.merge-result>small{font-size:10px;color:var(--muted)}.merge-result .m-alert{text-align:left;max-width:650px;margin:18px auto}.preview-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px 0 18px;font-size:11px;color:var(--muted)}.preview-toolbar label{display:flex;align-items:center;gap:7px}.preview-toolbar input{width:60px;min-height:35px;padding:6px}.preview-spacer{flex:1}.preview-layout{display:grid;grid-template-columns:100px minmax(0,1fr);gap:18px}.preview-thumbs{display:flex;flex-direction:column;gap:12px;max-height:650px;overflow:auto;padding:6px}.preview-thumb{border:1px solid var(--border);background:var(--bg);border-radius:7px;padding:7px;color:var(--muted);font-size:10px;min-height:75px;flex-shrink:0}.preview-thumb[aria-current=true]{border-color:var(--brand)}.preview-thumb canvas{display:block;max-width:100%;max-height:100px;margin:auto auto 5px}.preview-paper{background:var(--soft);border-radius:12px;max-height:760px;min-height:250px;overflow:auto;padding:20px;text-align:center}.preview-paper>canvas{max-width:none;height:auto;box-shadow:0 4px 15px #1112;background:#fff;display:block;margin:auto}.preview-paper p{color:var(--muted);font-size:12px}.m-skeleton{animation:merge-pulse 1.6s ease-in-out infinite}.file-grid[aria-busy=true]{opacity:.8}@keyframes merge-reveal{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes merge-pulse{50%{opacity:.45}}@media(min-width:1000px){.file-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:850px){.file-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.m-section-heading{align-items:flex-start;flex-direction:column;gap:16px}.page-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.selection-row{grid-template-columns:minmax(100px,1fr) 120px minmax(100px,1fr)}.selection-count{grid-column:1/-1}.m-options{gap:17px}.file-grid.list .file-details{display:block}.file-grid.list .file-actions{margin-top:8px}.file-grid.list .file-status{margin:8px 0}.merge-summary{padding:18px 5px}}@media(max-width:560px){.merge-drop{padding:29px 17px 24px}.merge-drop h2{font-size:20px}.merge-drop p{font-size:12px}.merge-drop>.m-btn{width:100%}.merge-drop.compact{flex-direction:column;gap:9px;padding:15px}.merge-drop.compact>.m-btn{width:100%}.merge-drop.compact .drop-hint{font-size:10px}.file-grid{gap:12px}.file-grid.list .file-card{grid-template-columns:65px minmax(0,1fr)}.file-details{padding:12px}.file-actions{flex-wrap:wrap}.file-actions .m-btn{padding:6px 8px;font-size:10px}.file-name{font-size:12px}.card-thumbnail{height:135px}.file-grid.list .file-details{padding:12px 40px 12px 12px}.file-grid.list .file-actions{gap:5px}.merge-summary{grid-template-columns:1fr 1fr;gap:22px 0}.merge-summary>div:nth-child(2){border:0}.merge-summary strong{font-size:20px}.m-settings-columns,.m-options{grid-template-columns:1fr}.merge-advanced>summary{padding:17px 15px}.merge-advanced summary small{font-size:10px;line-height:1.6}.advanced-body{padding:0 16px 18px}.selection-row{grid-template-columns:1fr 1fr;gap:8px}.selection-name{grid-column:1/-1}.selection-count{grid-column:auto}.selection-label:has(select){grid-column:1}.selection-label:has(input){grid-column:2}.advanced-actions .m-btn{flex:1 1 auto}.advanced-actions .quiet{margin:0}.merge-action{flex-direction:column;align-items:stretch;gap:17px;margin:16px 0;padding:13px 0}.merge-cta{width:100%}.page-grid{grid-template-columns:1fr 1fr;gap:10px}.organizer-panel,.preview-panel{padding:0 13px 17px}.page-card .card-thumbnail{height:130px}.page-buttons button{width:31px;height:33px}.preview-layout{grid-template-columns:1fr}.preview-thumbs{flex-direction:row;max-height:130px;overflow-x:auto;order:2}.preview-thumb{min-width:65px;max-width:80px;min-height:95px}.preview-paper{padding:12px;min-height:200px}.preview-toolbar{gap:6px}.preview-spacer{display:none}.processing-card,.merge-result{padding:33px 17px}.merge-result h2,.processing-card h2{font-size:25px}.result-stats{gap:23px}.result-stats strong{font-size:18px}.merge-result>.m-btn{width:100%}.result-actions .m-btn{flex:1}.engine-status{font-size:10px;line-height:1.7}}@media(prefers-reduced-motion:reduce){.merge-app *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:560px){.merge-app .drag-handle{width:44px;height:44px}.merge-app .page-buttons button{width:44px;height:44px}.merge-app .file-actions .m-btn,.merge-app .card-more>summary,.merge-app .m-btn.small{min-height:44px}}
@media(max-width:560px){.file-grid.list .file-details{padding-right:58px}.merge-app .file-actions .m-btn,.merge-app .card-more>summary{min-width:44px}.m-segment button{min-height:44px}}


/* Focused page workspaces: document canvas and settings scroll independently. */
.pf-page-tabs{display:none}.pf-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body.pdf-focus-editor .pf-page-tool{position:relative;display:flex;flex-direction:column;gap:8px;width:100%;max-width:none;height:calc(100dvh - var(--pf-header-height,54px));min-height:0;margin:0;padding:10px;overflow:hidden;box-sizing:border-box}
body.pdf-focus-editor .pf-page-tool>.engine-status{flex:0 0 auto;min-height:25px;margin:0;font-size:11px;padding:0 5px}
body.pdf-focus-editor .pf-page-tool>.merge-privacy{display:none}
body.pdf-focus-editor .pf-page-tool>#editor,body.pdf-focus-editor .pf-page-tool #file-workspace{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
body.pdf-focus-editor .pf-page-tool #dropzone,body.pdf-focus-editor .pf-page-tool #drop-zone{display:none!important}
body.pdf-focus-editor .pf-page-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(290px,28vw,370px);gap:12px;flex:1;min-width:0;min-height:0;overflow:hidden}
body.pdf-focus-editor .pf-page-main,body.pdf-focus-editor .pf-page-sidebar{min-width:0;min-height:0;box-sizing:border-box;border:1px solid var(--border);border-radius:15px;background:var(--surface)}
body.pdf-focus-editor .pf-page-main{position:relative;display:flex;flex-direction:column;overflow:hidden;padding:14px;background:var(--soft)}
body.pdf-focus-editor .pf-page-sidebar{overflow:auto;overscroll-behavior:contain;padding:15px;scrollbar-gutter:stable}
body.pdf-focus-editor .pf-page-sidebar>*{max-width:100%;min-width:0}
body.pdf-focus-editor .pf-page-sidebar .m-settings-columns,body.pdf-focus-editor .pf-page-sidebar .m-options{grid-template-columns:1fr}
body.pdf-focus-editor .pf-page-sidebar .m-section-heading,body.pdf-focus-editor .pf-page-main .m-section-heading{margin:0 0 12px;gap:10px}
body.pdf-focus-editor .pf-page-sidebar .m-kicker,body.pdf-focus-editor .pf-page-main .m-kicker{display:none}
body.pdf-focus-editor .pf-page-sidebar h2,body.pdf-focus-editor .pf-page-main h2{font-size:17px;letter-spacing:-.35px;line-height:1.4;margin:0 0 5px}
body.pdf-focus-editor .pf-page-sidebar .rotate-document,body.pdf-focus-editor .pf-page-sidebar .split-document{padding:0 0 14px;margin:0 0 14px;border:0;border-bottom:1px solid var(--border);border-radius:0;gap:10px;background:transparent;flex-wrap:wrap}
body.pdf-focus-editor .pf-page-sidebar .rotate-file-icon,body.pdf-focus-editor .pf-page-sidebar .source-thumb{display:none}
body.pdf-focus-editor .pf-page-sidebar #source-name{font-size:13px;overflow-wrap:anywhere}
body.pdf-focus-editor .pf-page-sidebar .rotate-document-copy{flex-basis:100%;min-width:0}
body.pdf-focus-editor .pf-page-sidebar .rotate-document>.m-toolbar{width:100%}
body.pdf-focus-editor .pf-page-sidebar .rotation-controls,body.pdf-focus-editor .pf-page-sidebar .organizer-toolbar,body.pdf-focus-editor .pf-page-sidebar .extract-selection,body.pdf-focus-editor .pf-page-sidebar .extract-output,body.pdf-focus-editor .pf-page-sidebar .extract-plan,body.pdf-focus-editor .pf-page-sidebar .split-controls{padding:0 0 16px;margin:0 0 16px;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent}
body.pdf-focus-editor .pf-page-sidebar .rotation-controls-top,body.pdf-focus-editor .pf-page-sidebar .organizer-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:12px}
body.pdf-focus-editor .pf-page-sidebar .rotation-controls-top>.m-toolbar{width:100%}
body.pdf-focus-editor .pf-page-sidebar .rotation-scope{display:flex;flex-direction:column;align-items:stretch;gap:10px}
body.pdf-focus-editor .pf-page-sidebar .rotation-scope>*{width:auto;min-width:0;margin:0}
body.pdf-focus-editor .pf-page-sidebar .rotation-actions{gap:8px}
body.pdf-focus-editor .pf-page-sidebar .rotation-actions>.m-btn{flex:1 1 100%;font-size:12px}
body.pdf-focus-editor .pf-page-sidebar .m-toolbar{gap:7px}
body.pdf-focus-editor .pf-page-sidebar .m-toolbar>.m-btn{flex:1 1 auto;padding:8px 10px;font-size:11px}
body.pdf-focus-editor .pf-page-sidebar .merge-advanced{margin:16px 0}
body.pdf-focus-editor .pf-page-sidebar .merge-advanced>summary{padding:13px;gap:9px}
body.pdf-focus-editor .pf-page-sidebar .merge-advanced summary small{display:none}
body.pdf-focus-editor .pf-page-sidebar .advanced-body{padding:0 12px 14px}
body.pdf-focus-editor .pf-page-sidebar .m-settings-group{padding:16px 0}
body.pdf-focus-editor .pf-page-sidebar .m-settings-group h3{font-size:13px}
body.pdf-focus-editor .pf-page-sidebar .merge-action,body.pdf-focus-editor .pf-page-sidebar .rotate-apply-bar,body.pdf-focus-editor .pf-page-sidebar .organizer-save-bar{position:static;display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:15px 0 0;margin:15px 0 0;border:0;border-top:1px solid var(--border);border-radius:0;box-shadow:none;background:transparent}
body.pdf-focus-editor .pf-page-sidebar .merge-cta{width:100%;min-width:0;padding:14px 10px;font-size:13px}
body.pdf-focus-editor .pf-page-sidebar .merge-summary,body.pdf-focus-editor .pf-page-sidebar .removal-summary,body.pdf-focus-editor .pf-page-sidebar .extract-summary,body.pdf-focus-editor .pf-page-sidebar .organizer-summary{grid-template-columns:1fr 1fr;gap:16px 10px;padding:14px 0;margin:14px 0}
body.pdf-focus-editor .pf-page-sidebar .merge-summary>div{border:0}
body.pdf-focus-editor .pf-page-sidebar .merge-summary strong{font-size:18px}
body.pdf-focus-editor .pf-page-sidebar .extract-modes,body.pdf-focus-editor .pf-page-sidebar .extract-output-modes,body.pdf-focus-editor .pf-page-sidebar .split-modes{grid-template-columns:1fr;gap:8px}
body.pdf-focus-editor .pf-page-sidebar .extract-mode,body.pdf-focus-editor .pf-page-sidebar .extract-output-mode,body.pdf-focus-editor .pf-page-sidebar .split-mode{padding:12px;min-height:0}
body.pdf-focus-editor .pf-page-sidebar .split-mode .mode-symbol,body.pdf-focus-editor .pf-page-sidebar .split-mode .mode-number,body.pdf-focus-editor .pf-page-sidebar .split-mode small{display:none}
body.pdf-focus-editor .pf-page-main #pages-workspace,body.pdf-focus-editor .pf-page-main .output-preview{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;padding:0;margin:0;border:0;background:transparent}
body.pdf-focus-editor .pf-page-main #pages-grid,body.pdf-focus-editor .pf-page-main #plan-list,body.pdf-focus-editor .pf-document-grid,body.pdf-focus-editor .pf-page-main #page-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;align-content:start;padding:5px 5px 12px;scrollbar-gutter:stable}
body.pdf-focus-editor .pf-page-main #pages-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}
body.pdf-focus-editor .pf-page-main #pages-grid.list{grid-template-columns:1fr}
body.pdf-focus-editor .pf-page-main #pages-grid.large{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
body.pdf-focus-editor .pf-page-main #pages-grid.small{grid-template-columns:repeat(auto-fill,minmax(125px,1fr))}
body.pdf-focus-editor .pf-page-main #pages-grid .rotation-thumbnail{height:180px}
body.pdf-focus-editor .pf-page-main .organizer-pagination{flex:0 0 auto;margin:10px 0 0;gap:8px}
body.pdf-focus-editor .pf-page-main .page-selection{flex:0 0 auto;margin:0 0 10px;padding:0 0 9px;gap:7px}
body.pdf-focus-editor .pf-page-main .page-selection>.m-btn{min-height:36px;font-size:11px;padding:6px 9px}
body.pdf-focus-editor .pf-page-main .remove-view-controls{margin:0 0 10px}
body.pdf-focus-editor .pf-page-main .removal-bottom-actions{margin:8px 0 0;padding:8px 0 0}
body.pdf-focus-editor .pf-page-main .file-grid{grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:13px}
body.pdf-focus-editor .pf-page-main .file-grid.list{grid-template-columns:1fr}
body.pdf-focus-editor .pf-page-main:has(#organizer:not([hidden]))>.pf-document-grid{display:none}
body.pdf-focus-editor .pf-page-main #organizer{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;margin:0;padding:0;border:0;background:transparent}
body.pdf-focus-editor .pf-page-main #organizer .page-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}
body.pdf-focus-editor .pf-page-tool>.processing-card,body.pdf-focus-editor .pf-page-tool>.merge-result,body.pdf-focus-editor .pf-page-tool>.split-results{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;margin:0}
body.pdf-focus-editor .pf-page-tool>#preview-panel{position:absolute;inset:0;z-index:30;display:flex;flex-direction:column;gap:0;margin:0;padding:15px;border:0;border-radius:0;min-height:0;overflow:hidden;background:var(--bg)}
body.pdf-focus-editor .pf-page-tool>#preview-panel>.m-section-heading{flex:0 0 auto;margin:0 0 8px}
body.pdf-focus-editor .pf-page-tool>#preview-panel .m-kicker{display:none}
body.pdf-focus-editor .pf-page-tool>#preview-panel h2{font-size:17px;margin:0;overflow-wrap:anywhere}
body.pdf-focus-editor .pf-page-tool>#preview-panel .preview-toolbar,body.pdf-focus-editor .pf-page-tool>#preview-panel .preview-edit-actions{flex:0 0 auto;padding:5px 0 10px;gap:7px}
body.pdf-focus-editor .pf-page-tool>#preview-panel .preview-layout{flex:1;min-height:0;grid-template-columns:90px minmax(0,1fr);gap:12px;overflow:hidden}
body.pdf-focus-editor .pf-page-tool>#preview-panel .preview-thumbs{height:100%;max-height:none;min-height:0;overflow:auto;overscroll-behavior:contain;order:0;flex-direction:column}
body.pdf-focus-editor .pf-page-tool>#preview-panel .preview-paper,body.pdf-focus-editor .pf-page-tool>#preview-panel .rotation-preview-paper{flex:1;height:auto;max-height:none;min-height:0;margin:0;overflow:auto;overscroll-behavior:contain}
body.pdf-focus-editor .pf-page-tool>#preview-panel #preview-status:empty{display:none}
body.pdf-focus-editor .pf-page-tool>.m-alert.error{max-height:90px;flex:0 0 auto;overflow:auto;margin:0}
@media(max-width:760px){
 body.pdf-focus-editor .pf-page-tool{padding:7px;gap:6px}
 body.pdf-focus-editor .pf-page-tool>.engine-status{font-size:10px;line-height:1.5;min-height:25px}
 body.pdf-focus-editor .pf-page-tabs{display:flex;flex:0 0 auto;align-self:center;gap:4px;border:1px solid var(--border);border-radius:12px;padding:3px;margin:0 0 7px;background:var(--surface)}
 body.pdf-focus-editor .pf-page-tabs label{position:relative;cursor:pointer}
 body.pdf-focus-editor .pf-page-tabs input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
 body.pdf-focus-editor .pf-page-tabs span{display:flex;align-items:center;justify-content:center;gap:8px;min-height:37px;padding:7px 18px;color:var(--muted);border-radius:8px;font-size:12px;font-weight:650}
 body.pdf-focus-editor .pf-page-tabs input:checked+span{color:var(--brand);background:var(--soft)}
 body.pdf-focus-editor .pf-page-tabs input:focus-visible+span{outline:3px solid var(--brand);outline-offset:1px}
 body.pdf-focus-editor .pf-page-layout{grid-template-columns:minmax(0,1fr);gap:0}
 body.pdf-focus-editor .pf-page-sidebar{display:none;padding:15px}
 body.pdf-focus-editor #editor:has(.pf-page-tabs input[value=settings]:checked) .pf-page-sidebar{display:block}
 body.pdf-focus-editor #editor:has(.pf-page-tabs input[value=settings]:checked) .pf-page-main{display:none}
 body.pdf-focus-editor .pf-page-main{padding:10px}
 body.pdf-focus-editor .pf-page-main .m-section-heading{flex-direction:row;flex-wrap:wrap;margin-bottom:9px}
 body.pdf-focus-editor .pf-page-main .m-section-heading p,body.pdf-focus-editor .pf-page-main #view-note,body.pdf-focus-editor .pf-page-main #page-view-note{font-size:10px}
 body.pdf-focus-editor .pf-page-main #pages-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.pdf-focus-editor .pf-page-main #pages-grid.large{grid-template-columns:1fr}
 body.pdf-focus-editor .pf-page-main #pages-grid.small{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.pdf-focus-editor .pf-page-main #pages-grid .rotation-thumbnail{height:145px}
 body.pdf-focus-editor .pf-page-main .page-selection{flex-wrap:nowrap;overflow:auto;max-width:100%;padding-bottom:9px}
 body.pdf-focus-editor .pf-page-main .page-selection>*{flex-shrink:0}
 body.pdf-focus-editor .pf-page-main .page-selection .range-select-label{display:none}
 body.pdf-focus-editor .pf-page-main .organizer-pagination{gap:6px;font-size:10px}
 body.pdf-focus-editor .pf-page-main .organizer-pagination input{max-width:55px}
 body.pdf-focus-editor .pf-page-main #file-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.pdf-focus-editor .pf-page-main #file-list.list{grid-template-columns:1fr}
 body.pdf-focus-editor .pf-page-tool>#preview-panel{padding:9px}
 body.pdf-focus-editor .pf-page-tool>#preview-panel .preview-layout{grid-template-columns:66px minmax(0,1fr);gap:7px}
 body.pdf-focus-editor .pf-page-tool>#preview-panel .preview-thumb{min-width:0;max-width:100%;min-height:75px}
 body.pdf-focus-editor .pf-page-tool>#preview-panel .preview-toolbar .m-btn{font-size:10px;padding:7px}
 body.pdf-focus-editor .pf-page-tool>#preview-panel .preview-paper{padding:10px}
}

body.pdf-focus-editor .pf-split-selection{display:none;flex-direction:column;flex:1;min-height:0}
body.pdf-focus-editor #split-app:has([data-mode="pages"][aria-pressed="true"]):has([data-page-method="selected"][aria-pressed="true"]) .pf-split-selection{display:flex}
body.pdf-focus-editor #split-app:has([data-mode="pages"][aria-pressed="true"]):has([data-page-method="selected"][aria-pressed="true"]) .output-preview{display:none}
body.pdf-focus-editor #split-app .pf-split-selection #page-grid{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;align-content:start;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:13px;padding:5px}
@media(max-width:760px){body.pdf-focus-editor #split-app .pf-split-selection #page-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}

body.pdf-focus-editor .pf-tool.pf-page-tool{overflow:hidden}

body.pdf-focus-editor .pf-tool .pf-page-tabs input[type="radio"]{opacity:0!important;appearance:none!important;position:absolute!important;inset:0;width:100%;height:100%;border:0!important;box-shadow:none!important;background:transparent!important}

/* Keep the mobile page viewport useful; bulk controls live in Settings. */
body.pdf-focus-editor .pf-page-sidebar #selection-toolbar{margin:0 0 15px;padding:12px}
body.pdf-focus-editor .pf-page-sidebar #arrange-panel,body.pdf-focus-editor .pf-page-sidebar #trash-panel{margin:0 0 15px;padding:12px}
body.pdf-focus-editor .pf-page-sidebar .remove-view-controls{display:grid;grid-template-columns:1fr;gap:10px;padding:0 0 15px;margin:0 0 15px;border-bottom:1px solid var(--border)}
body.pdf-focus-editor .pf-page-sidebar .remove-view-controls .m-field{width:100%;min-width:0}
@media(max-width:760px){
 body.pdf-focus-editor .pf-page-main .removal-bottom-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:8px;margin-top:8px}
 body.pdf-focus-editor .pf-page-main .removal-bottom-actions>span{grid-column:1/-1;font-size:10px}
 body.pdf-focus-editor .pf-page-main .removal-bottom-actions>.m-btn{min-height:44px;padding:8px 6px;font-size:10px;line-height:1.4;flex:none}
 body.pdf-focus-editor .pf-page-main .m-section-heading>div>h2{font-size:16px}
}

/* A continuous document surface, with controls floating above its lower edge. */
body.pdf-focus-editor .pf-reader-tool{padding:0;gap:0}
body.pdf-focus-editor .pf-reader-tool>.engine-status.ready{display:none}
body.pdf-focus-editor .pf-reader-tool>.engine-status{padding:5px 12px}
body.pdf-focus-editor .pf-reader-tool .pf-page-layout{gap:0;grid-template-columns:minmax(0,1fr) clamp(300px,27vw,370px)}
body.pdf-focus-editor .pf-reader-tool .pf-page-main{padding:0;border:0;border-radius:0;background:var(--soft)}
body.pdf-focus-editor .pf-reader-tool .pf-page-sidebar{display:flex;flex-direction:column;padding:0;overflow:hidden;border:0;border-left:1px solid var(--border);border-radius:0;scrollbar-gutter:auto}
body.pdf-focus-editor .pf-page-sidebar-body{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:18px 16px;scrollbar-gutter:stable}
body.pdf-focus-editor .pf-page-sidebar .pf-page-actions{display:flex;flex-direction:column;flex:0 0 auto;gap:8px;margin:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);max-height:165px;overflow:auto}
body.pdf-focus-editor .pf-page-actions>div>strong{font-size:11px}
body.pdf-focus-editor .pf-page-actions>div>p{font-size:10px;line-height:1.5;margin:4px 0 0}
body.pdf-focus-editor .pf-page-actions>.merge-cta{min-height:47px;padding:12px;font-size:13px;flex-shrink:0}
body.pdf-focus-editor .pf-reader-tool .pf-page-sidebar #apply-top,body.pdf-focus-editor .pf-reader-tool .pf-page-sidebar #save-top{display:none}
body.pdf-focus-editor .pf-reader-tool[data-pf-reader=document] .pf-page-main>*:not(.pf-reader-preview){display:none!important}
body.pdf-focus-editor .pf-reader-tool .pf-reader-preview{position:relative;inset:auto;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;margin:0;padding:0;border:0;border-radius:0;background:var(--soft)}
body.pdf-focus-editor .pf-reader-preview>.pf-preview-heading,body.pdf-focus-editor .pf-reader-preview>#preview-status,body.pdf-focus-editor .pf-reader-preview .preview-thumbs{display:none}
body.pdf-focus-editor .pf-reader-preview .preview-layout{display:flex;flex:1;min-height:0;overflow:hidden}
body.pdf-focus-editor .pf-reader-preview .preview-paper,body.pdf-focus-editor .pf-reader-preview .rotation-preview-paper{flex:1;width:100%;height:100%;min-height:0;max-height:none;margin:0;padding:24px 28px 94px;border-radius:0;background:var(--soft);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
body.pdf-focus-editor .pf-page-dock{position:absolute;z-index:45;bottom:14px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:6px;max-width:calc(100% - 24px);box-sizing:border-box;padding:7px 9px;border:1px solid var(--border);border-radius:15px;background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(14px);box-shadow:0 7px 30px #17224022;white-space:nowrap;font-size:11px;color:var(--muted)}
body.pdf-focus-editor .pf-page-dock>.preview-toolbar,body.pdf-focus-editor .pf-page-dock>.preview-edit-actions{display:contents}
body.pdf-focus-editor .pf-page-dock .preview-spacer{display:none}
body.pdf-focus-editor .pf-page-dock .m-btn{min-height:34px;min-width:34px;padding:6px 8px;border:0;box-shadow:none;background:transparent;font-size:11px;gap:5px;flex-shrink:0;transform:none}
body.pdf-focus-editor .pf-page-dock .m-btn:hover{background:var(--soft)}
body.pdf-focus-editor .pf-page-dock .preview-toolbar>.m-btn{font-size:0;gap:0}
body.pdf-focus-editor .pf-page-dock .m-btn i{font-size:15px}
body.pdf-focus-editor .pf-page-dock label{display:flex;align-items:center;gap:5px;font-size:10px}
body.pdf-focus-editor .pf-page-dock input{width:48px;min-height:32px;padding:5px;border-radius:8px;font-size:11px;text-align:center}
body.pdf-focus-editor .pf-page-dock .m-segment{border:0;background:var(--soft);padding:3px;border-radius:9px;gap:0}
body.pdf-focus-editor .pf-page-dock .m-segment button{min-height:28px;padding:4px 7px;font-size:10px}
body.pdf-focus-editor .pf-page-dock .pf-pages-return{border-right:1px solid var(--border);border-radius:0;padding-right:10px}
body.pdf-focus-editor .pf-reader-tool[data-pf-reader=pages] .pf-page-main{padding:14px}
body.pdf-focus-editor .pf-reader-tool.pf-output-preview>#editor[hidden]{display:flex!important}
body.pdf-focus-editor .pf-reader-tool.pf-output-preview>#result{display:none!important}
.pf-header-document{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}
@media(max-width:760px){
 body.pdf-focus-editor .pf-reader-tool .pf-page-layout{grid-template-columns:minmax(0,1fr)}
 body.pdf-focus-editor .pf-reader-tool .pf-page-sidebar{display:none;border:0}
 body.pdf-focus-editor .pf-reader-tool #editor:has(.pf-page-tabs input[value=settings]:checked) .pf-page-sidebar{display:flex}
 body.pdf-focus-editor .pf-reader-tool .pf-page-tabs{margin:6px auto;position:relative;z-index:2}
 body.pdf-focus-editor .pf-reader-preview .preview-paper,body.pdf-focus-editor .pf-reader-preview .rotation-preview-paper{padding:14px 10px 115px}
 body.pdf-focus-editor .pf-page-dock{bottom:10px;padding:6px;gap:3px;max-width:calc(100% - 12px);flex-wrap:wrap;width:max-content;border-radius:13px}
 body.pdf-focus-editor .pf-page-dock .m-btn{min-width:30px;min-height:33px;padding:5px 6px}
 body.pdf-focus-editor .pf-page-dock .pf-pages-return span{display:none}
 body.pdf-focus-editor .pf-page-dock .m-segment{padding:2px}
 body.pdf-focus-editor .pf-page-dock .m-segment button{font-size:9px;padding:4px 5px}
 body.pdf-focus-editor .pf-page-dock #zoom-label,body.pdf-focus-editor .pf-page-dock #preview-zoom{font-size:10px}
 .pf-header-document{display:none}
}
body.pdf-focus-editor .pf-reader-tool .pf-reader-page #preview-stage #preview-canvas{width:100%!important;height:100%!important}
.pf-legacy-stage{position:relative;margin:auto;background:#fff;box-shadow:0 5px 24px #17213a1c}
body.pdf-focus-editor .pf-reader-tool .pf-legacy-stage>canvas{position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;max-width:none;box-shadow:none}
body.pdf-focus-editor .pf-reader-preview>#preview-status.pf-preview-error{display:block;position:absolute;top:12px;left:14px;right:14px;z-index:20;max-height:100px;overflow:auto;margin:0;padding:11px 14px;border:1px solid #e4b7c1;border-radius:10px;background:var(--surface);color:#b3374e;box-shadow:0 4px 14px #18204014;font-size:12px;line-height:1.6}
.dark.pdf-focus-editor .pf-reader-preview>#preview-status.pf-preview-error{color:#f8a9b9}
/* The primary action stays available while either mobile panel is open. */
body.pdf-focus-editor .pf-reader-tool .pf-page-layout{grid-template-rows:minmax(0,1fr) auto}
body.pdf-focus-editor .pf-reader-tool .pf-page-main{grid-column:1;grid-row:1/3}
body.pdf-focus-editor .pf-reader-tool .pf-page-sidebar{grid-column:2;grid-row:1}
body.pdf-focus-editor .pf-reader-tool .pf-page-layout>.pf-page-actions{grid-column:2;grid-row:2;position:relative;display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;margin:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--border);border-left:1px solid var(--border);border-radius:0;background:var(--surface);box-shadow:none;max-height:165px;overflow:auto;z-index:46}
body.pdf-focus-editor .pf-reader-tool .pf-page-actions>div>strong{font-size:11px}
body.pdf-focus-editor .pf-reader-tool .pf-page-actions>div>p{font-size:10px;line-height:1.5;margin:4px 0 0}
body.pdf-focus-editor .pf-reader-tool .pf-page-actions>.merge-cta{width:100%;min-width:0;min-height:47px;padding:12px;font-size:13px;flex-shrink:0}
@media(max-width:760px){
 body.pdf-focus-editor .pf-reader-tool .pf-page-main,body.pdf-focus-editor .pf-reader-tool .pf-page-sidebar{grid-column:1;grid-row:1}
 body.pdf-focus-editor .pf-reader-tool .pf-page-layout>.pf-page-actions{grid-column:1;grid-row:2;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-left:0;gap:0;max-height:80px}
 body.pdf-focus-editor .pf-reader-tool .pf-page-actions>div{display:none}
}
@media(max-width:760px){
 body.pdf-focus-editor .pf-reader-tool .pf-page-layout>.pf-page-actions{position:fixed;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));left:auto;z-index:95;width:auto;max-width:min(270px,calc(100vw - 20px));max-height:80px;margin:0;padding:0;overflow:visible;border:0;border-radius:12px;background:transparent;box-shadow:none}
 body.pdf-focus-editor .pf-reader-tool .pf-page-actions>.merge-cta{width:auto;min-width:156px;min-height:45px;padding:11px 16px;border-radius:12px;font-size:12px;box-shadow:0 5px 24px #19244b33}
 body.pdf-focus-editor .pf-reader-tool .pf-page-dock{bottom:75px}
}
.pf-page-result-action{position:fixed;right:12px;bottom:12px;z-index:95;display:flex;flex-direction:column;gap:7px;max-width:min(330px,calc(100% - 24px));padding:7px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 5px 24px #19244b33}
.pf-page-result-action[hidden]{display:none!important}.pf-page-result-action .m-btn{justify-content:center;min-height:44px;font-size:12px}
body.pdf-focus-editor .pf-has-result-download .pf-page-actions{visibility:hidden}
@media(max-width:760px){
 body.pdf-focus-editor .pf-reader-tool[data-pf-panel=settings] .pf-page-main{display:none}
 body.pdf-focus-editor .pf-reader-tool[data-pf-panel=settings] .pf-page-sidebar{display:flex}
 body.pdf-focus-editor .pf-reader-tool[data-pf-panel=preview] .pf-page-main{display:flex}
}
@media(max-width:760px){body.pdf-focus-editor .pf-page-dock .preview-edit-actions>.m-btn{font-size:0;gap:0}}
@media(max-width:760px){body.pdf-focus-editor .pf-reader-tool .pf-page-dock{bottom:max(75px,var(--pf-action-inset,75px))}}
