/* Shared tool presentation: compact introduction, visible upload and readable controls. */
.tool-view main:not(.editor-main){max-width:1200px;margin-inline:auto;width:calc(100% - 40px);padding-top:24px}
.tool-view .back{display:inline-block;margin-bottom:16px;font-size:14px}
.tool-view .section-tool-hero,.tool-view.user-tool-page .user-tool-intro{min-height:0;padding:24px 28px;margin:0 0 16px;border-radius:24px}
.tool-view .section-tool-hero{padding-right:210px}
.tool-view .section-tool-hero h1,.tool-view.user-tool-page .user-tool-intro h1{font-size:28px;line-height:1.25;letter-spacing:-.5px;margin:0 0 10px;max-width:none;text-wrap:initial}
.tool-view .section-tool-hero p:not(.eyebrow),.tool-view.user-tool-page .tool-lead{max-width:760px;font-size:15px;line-height:1.65;margin:0 0 8px}
.tool-view .section-tool-hero>.eyebrow,.tool-view .section-tool-hero>h2,.tool-view .intro-badge{display:none}
.tool-view .section-example{right:22px;top:16px;bottom:16px;width:160px;gap:8px}
.tool-view .example-file{width:68px;min-height:90px;padding:10px 8px;box-shadow:0 6px 12px #22483612}
.tool-view .example-file>b{font-size:13px;margin:6px 0}.tool-view .example-file>em,.tool-view .example-file>span{display:none}
.tool-view.user-tool-page .user-tool-intro{grid-template-columns:minmax(0,1fr) 170px;gap:14px}
.tool-view .intro-art{min-height:0}.tool-view .intro-art svg{height:120px}.tool-view .intro-art-chip{display:none}
.tool-view .intro-start{min-height:40px;padding:9px 14px;margin-right:10px}
.tool-view .intro-steps{grid-column:1/-1;margin-top:4px;gap:10px}
.tool-view .intro-steps li{padding:10px 12px}.tool-view .intro-steps .step-number{display:none}
.tool-view .intro-steps h2{font-size:14px;margin:0 0 4px}.tool-view .intro-steps p{font-size:12px;line-height:1.5;margin:0}
.tool-view .section-quick-steps{margin-bottom:16px;gap:10px}.tool-view .section-quick-steps li{padding:10px 12px}
.tool-view .dropzone{position:relative;width:100%;max-width:none;box-sizing:border-box;min-height:96px;padding:16px;border:2px dashed #5679ee;border-radius:14px;background:#edf2ff;color:#174cbb;gap:5px}
.tool-view .dropzone strong{font-size:18px;color:#174cbb}.tool-view .dropzone>svg,.tool-view .dropzone>.upload-icon{display:none}
.tool-view .dropzone input[type=file]{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);border:0}
.tool-view .dropzone:focus-within{outline:3px solid #7955db;outline-offset:3px}
.tool-view .tool-privacy{margin:10px 0 14px}.tool-view .tool-panel{border-radius:18px;padding:20px}
.tool-view .tool-panel h2,.tool-view .ocr-output-heading label{font-size:20px;line-height:1.35}
.tool-view .ocr-output-heading{align-items:center;gap:12px}.tool-view .ocr-output-heading label{font-weight:700}
.tool-view .ocr-output,.tool-view[data-export] .ocr-output{min-height:0}
.tool-view .ocr-grid{align-items:start}
.tool-view #ocr-text{flex:0 0 auto;min-height:180px;height:220px;resize:vertical;line-height:1.6}
.tool-view .bill-picker{margin:16px 0 8px;padding:12px;gap:10px}
.tool-view .bill-picker label{padding:10px 12px;min-height:0}
.tool-view #bill-help{margin:8px 0 14px;font-size:13px}
.tool-view .ocr-box #office-export{min-height:48px;padding:12px 18px;margin-top:14px;border-radius:9px}
.tool-view .ocr-drop{min-height:180px}.tool-view .ocr-drop strong{font-size:17px}
.tool-view .photo-workflow-nav{margin:0 0 18px}.tool-view .photo-workflow-nav a{padding:10px 14px}
.tool-view .tool-controls :is(input:not([type=range]):not([type=checkbox]):not([type=color]),select){min-height:44px}
.tool-view .tool-panel :is(p,.tool-hint){line-height:1.65}
.tool-view .file-name,.tool-view #file-list{overflow-wrap:anywhere}
@media(max-width:760px){
 .tool-view main:not(.editor-main){width:calc(100% - 28px);padding-top:18px}
 .tool-view .section-tool-hero,.tool-view.user-tool-page .user-tool-intro{padding:20px;border-radius:20px;display:block}
 .tool-view .section-tool-hero h1,.tool-view.user-tool-page .user-tool-intro h1{font-size:25px}
 .tool-view .section-example,.tool-view .intro-art{display:none}
 .tool-view .intro-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:16px 0 0}
 .tool-view .intro-steps li{padding:10px 7px}.tool-view .intro-steps p{display:none}.tool-view .intro-steps h2{font-size:12px;margin:0}
 .tool-view .section-quick-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.tool-view .section-quick-steps li{display:block;padding:10px 8px}.tool-view .section-quick-steps li>b{display:none}
 .tool-view .tool-panel{padding:16px}.tool-view .dropzone{min-height:100px}
 .tool-view .photo-workflow-nav a{min-width:0;flex-basis:100%;font-size:13px}
 .tool-view>header nav>a:first-child{display:inline-flex}
}

/* File order actions stay distinct from removal across shared tool pages. */
.tool-view #file-list{list-style:none;padding:0;max-height:420px}.tool-view #file-list .file-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e2e8f0}.file-row-name{min-width:0;overflow-wrap:anywhere;flex:1}.file-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.tool-view #file-list .file-actions button{min-height:44px;padding:9px 12px;margin:0;border:1px solid #cbd5e1;border-radius:8px;font-size:13px;white-space:nowrap;background:#edf2fb;color:#253c59}.tool-view #file-list .file-actions .file-remove{margin-left:20px;background:#fff;color:#9a3947;border-color:#e6c8cd}.file-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:#fff6ed;border-radius:8px;margin:10px 0}.file-undo[hidden]{display:none}.file-undo button{min-height:44px;padding:9px 12px;border:1px solid #cbd5e1;border-radius:8px;background:white}.tool-view #file-list button:focus-visible,.file-undo button:focus-visible{outline:3px solid #205adb;outline-offset:3px}.tool-view .page-actions #page-remove{margin-top:14px;min-height:44px;color:#9a3947;border-color:#e6c8cd}.tool-view .page-actions #page-up,.tool-view .page-actions #page-down{min-height:44px}@media(max-width:700px){.tool-view #file-list .file-row{align-items:stretch;flex-direction:column;gap:10px}.file-actions{width:100%}.tool-view #file-list .file-actions button{padding:9px 10px;flex:1}.tool-view #file-list .file-actions .file-remove{margin-left:12px;flex:0 0 auto}.tool-view .page-actions{flex-wrap:wrap}.tool-view .page-actions #page-remove{margin-top:0;margin-left:auto}}

/* Keep the preview and its file actions together. */
.file-order-heading{font-weight:700;font-size:18px;margin:22px 0 12px}.file-order-heading[hidden]{display:none}
.tool-view #file-list.file-card-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;max-height:none;margin:0 0 22px;overflow:visible}
.tool-view #file-list .file-row{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:16px;border:1px solid #d5dfea;border-radius:14px;background:#fff;min-width:0}
.file-card-top{display:flex;flex-direction:column;position:relative;gap:12px}.file-order-badge{position:absolute;top:0;left:0;z-index:1;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#214f43;color:#fff;font-size:13px;font-weight:700}
.file-card-preview{height:144px;display:flex;align-items:center;justify-content:center;background:#f3f5fa;border-radius:9px;color:#62748c;font-size:12px;padding:10px}.file-card-preview img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 2px 7px #172b471a}.file-card-detail{min-width:0;display:grid;gap:5px}.file-row-name{display:block;font-size:14px;font-weight:600;line-height:1.5;min-height:42px}.file-card-meta{font-size:12px;color:#62748c}.file-actions{margin-top:auto;display:grid;grid-template-columns:1fr 1fr auto;gap:6px}.tool-view #file-list .file-actions button{font-size:12px;padding:9px 8px}.tool-view #file-list .file-actions .file-remove{margin-left:8px}
@media(max-width:600px){.tool-view #file-list.file-card-list{grid-template-columns:1fr;gap:10px}.tool-view #file-list .file-row{padding:12px;gap:12px}.file-card-top{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:12px}.file-card-preview{height:86px;padding:6px}.file-order-badge{top:-5px;left:-5px;width:24px;height:24px;font-size:12px}.file-row-name{min-height:0}.tool-view #file-list .file-actions button{min-height:44px;font-size:13px}.tool-view #file-list .file-actions .file-remove{margin-left:14px}.file-order-heading{font-size:16px;margin-top:18px}}

.file-actions .file-remove:only-child{grid-column:3}.file-actions button{min-width:0}

@media(max-width:600px){.tool-view .site-updates{position:relative;right:auto;bottom:auto;width:fit-content;max-width:calc(100% - 24px);margin:16px 12px 16px auto}.tool-view .site-updates-panel{max-width:calc(100vw - 24px)}}

.delete-pages-view .file-card-preview,.delete-pages-view .file-order-badge{display:none}.delete-pages-view .file-card-top{display:block}.delete-pages-view .file-row-name{min-height:0}.delete-pages-view #file-list.file-card-list{display:block}.delete-pages-view #file-list .file-row{flex-direction:row;align-items:center;gap:12px}.delete-pages-view .file-card-top{flex:1;min-width:0}.delete-pages-view .preview-heading{display:grid;gap:7px;margin:18px 0 12px}.delete-pages-view .preview-heading strong{font-size:20px}.delete-pages-view .preview-heading span{font-size:13px;color:#62748c}.delete-selection-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;font-size:14px}.delete-selection-summary button{min-height:44px;background:white;border:1px solid #cbd5e1;border-radius:8px;padding:9px 12px}.delete-pages-view .page-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.delete-pages-view .delete-page-card{position:relative;display:flex;flex-direction:column;gap:8px;align-items:stretch;background:#fff;border:2px solid #d5dfea;border-radius:12px;padding:12px;cursor:pointer;min-width:0;color:#253c59;text-align:left}.delete-page-number{font-size:14px;font-weight:700;padding-right:26px}.delete-page-marker{position:absolute;top:10px;right:10px;font-size:20px;color:#62748c}.delete-page-image{display:flex;height:180px;align-items:center;justify-content:center;background:#f3f5fa;border-radius:7px;padding:8px}.delete-pages-view .delete-page-image canvas{max-width:100%;max-height:100%;width:auto;height:auto}.delete-page-state{display:block;text-align:center;font-size:12px;font-weight:600;min-height:30px;padding:7px 2px;border-radius:6px;background:#e7f5ef;color:#214f43}.delete-pages-view .delete-page-card.selected{border-color:#c44760;background:#fff4f6}.delete-page-card.selected .delete-page-marker{color:#b72d49}.delete-page-card.selected .delete-page-state{background:#fbe1d3;color:#8b3045}.delete-page-card:focus-visible{outline:3px solid #205adb;outline-offset:3px}.delete-page-ranges{margin:18px 0;font-size:14px}.delete-page-ranges summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px}.delete-page-ranges summary:before{content:'+'}.delete-page-ranges[open] summary:before{content:'−'}.delete-page-ranges #pages-field{display:grid;gap:8px}@media(max-width:600px){.delete-pages-view .page-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.delete-pages-view .delete-page-card{padding:9px}.delete-page-image{height:140px;padding:5px}.delete-page-number{font-size:13px}.delete-page-state{font-size:11px;min-height:36px;display:grid;place-items:center}.delete-selection-summary{align-items:flex-start;font-size:13px}.delete-selection-summary button{font-size:12px;flex-shrink:0}.delete-pages-view .preview-heading strong{font-size:18px}}

.delete-pages-view .page-preview-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));overflow:visible}.delete-pages-view .delete-page-card span{white-space:normal;overflow:visible;text-overflow:clip;margin-top:0}.delete-pages-view .delete-page-card.selected span:after{content:none}.delete-pages-view .delete-page-number{font-size:14px}.delete-pages-view .delete-page-marker{font-size:20px}.delete-pages-view .delete-page-state{font-size:12px;line-height:1.4;min-height:40px}@media(max-width:600px){.delete-pages-view .page-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.delete-pages-view .delete-page-number{font-size:13px}.delete-pages-view .delete-page-state{font-size:11px;min-height:44px}}

.delete-pages-view .delete-page-card{cursor:default}.delete-page-action{display:block;width:100%;min-height:44px;border:1px solid #e3bdc5;border-radius:8px;background:#fff4f6;color:#a52d46;font-size:13px;font-weight:600;padding:10px 8px}.delete-page-action:focus-visible{outline:3px solid #205adb;outline-offset:3px}.delete-page-action:disabled{opacity:.5;cursor:default}.deleted-pages{margin:22px 0 8px;padding:16px;background:#f7f8fa;border:1px solid #dce3eb;border-radius:12px}.deleted-pages[hidden]{display:none}.deleted-pages h3{margin:0 0 6px;font-size:17px}.deleted-pages p{margin:0 0 14px;font-size:13px;color:#62748c;line-height:1.5}.deleted-page-list{display:grid;gap:8px}.delete-pages-view .deleted-page-list .delete-page-card{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e2e8f0;background:white;border-radius:8px}.deleted-page-list .delete-page-image{display:none}.delete-pages-view .deleted-page-list .delete-page-number{padding:0;color:#62748c;font-size:13px}.deleted-page-list .delete-page-action{width:auto;flex-shrink:0;background:white;border-color:#b5c7e2;color:#205adb}.delete-pages-view .page-preview-grid:empty{display:none}@media(max-width:600px){.deleted-pages{padding:12px}.delete-page-action{font-size:12px}.deleted-page-list .delete-page-action{padding:10px 8px}.delete-selection-summary{align-items:center}}

.compress-view #file-list{padding:0;list-style:none;max-height:none;margin:18px 0}.compress-file-card{display:flex;gap:16px;align-items:center;border:1px solid #d5dfea;border-radius:14px;background:white;padding:14px!important}.compress-file-preview{width:90px;height:108px;flex-shrink:0;background:#f3f5fa;border-radius:9px;padding:8px;display:flex;align-items:center;justify-content:center;color:#62748c}.compress-file-preview canvas{max-width:100%;max-height:100%;object-fit:contain}.compress-file-detail{display:grid;gap:8px;flex:1;min-width:0}.compress-file-detail strong{font-size:15px;overflow-wrap:anywhere}.compress-file-detail span{font-size:13px;color:#62748c}.compress-view #file-list #change-pdf{min-height:44px;padding:10px 14px;margin:0;border:1px solid #cbd5e1;background:white;border-radius:8px}.compress-view #advanced-options h2{font-size:20px;margin:20px 0 12px}.compress-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.compress-view .compress-option{display:flex;align-items:flex-start;gap:10px;padding:16px;border:1px solid #d5dfea;background:white;border-radius:12px;cursor:pointer;margin:0}.compress-option:has(input:checked){background:#e7f5ef;border-color:#2b7560}.compress-option input{width:18px;height:18px;margin:2px 0 0;flex-shrink:0;accent-color:#205adb}.compress-option span{display:grid;gap:8px}.compress-option strong{font-size:14px;line-height:1.5}.compress-option small{font-size:12px;line-height:1.6;color:#526b80}.compress-size-comparison{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.compress-size-comparison>div{display:grid;gap:8px;background:#e7f5ef;padding:16px;border-radius:10px}.compress-size-comparison span{font-size:13px;color:#526b80}.compress-size-comparison strong{font-size:23px;color:#214f43}.compress-view #comparison #download{margin:0 0 20px;min-height:44px}.compress-view .compare-grid[hidden]{display:none}.compress-view #quality[hidden],.compress-view #quality-help[hidden]{display:none}@media(max-width:600px){.compress-file-card{flex-wrap:wrap;gap:12px}.compress-file-preview{width:68px;height:84px}.compress-view #change-pdf{width:100%}.compress-options{grid-template-columns:1fr;gap:8px}.compress-view .compress-option{padding:12px;gap:10px}.compress-size-comparison{gap:6px}.compress-size-comparison>div{padding:10px 8px}.compress-size-comparison strong{font-size:17px}.compress-size-comparison span{font-size:11px}.compress-view #comparison #download{display:block;text-align:center}}

.compress-view #advanced-options .compress-option{display:flex;flex-direction:row;align-items:flex-start}.compress-view #advanced-options .compress-option input{width:18px;height:18px}.compress-quality-note{font-size:13px;line-height:1.6;color:#62748c}.compress-quality-note summary{cursor:pointer;min-height:44px;padding:10px 0}.compress-quality-note p{margin:0 0 12px}.compress-view #comparison .comparison-title{flex-wrap:wrap;gap:12px}.compress-view #comparison .preview-scroll{max-height:420px}.compress-view #comparison:not(.zoomed) .preview-scroll canvas{width:auto;max-width:100%;max-height:400px;margin:auto;display:block}

.compress-view #advanced-options h2{font-size:16px;line-height:1.4;margin:16px 0 10px}

/* Compact compression choices, with the selected setting explained below. */
.compress-view .compress-options{display:flex;flex-wrap:wrap;gap:8px}
.compress-view #advanced-options .compress-option{position:relative;min-height:44px;padding:10px 16px;border-radius:8px;align-items:center;justify-content:center;gap:0;flex:0 1 auto}
.compress-view .compress-option span{display:block}.compress-view .compress-option small{display:none}.compress-view .compress-option strong{font-size:13px;font-weight:600}
.compress-view #advanced-options .compress-option input{position:absolute;width:1px;height:1px;opacity:0;margin:0}
.compress-view .compress-option:has(input:checked){background:#e7f5ef;border-color:#2b7560;color:#214f43;box-shadow:inset 0 0 0 1px #2b7560}
.compress-view .compress-option:has(input:focus-visible){outline:3px solid #205adb;outline-offset:3px}.compress-view .compress-option:has(input:disabled){opacity:.55;cursor:default}
.compress-view #quality-help{font-size:13px;line-height:1.6;margin:10px 0 16px;color:#526b80;max-width:700px}
@media(max-width:600px){.compress-view #advanced-options .compress-option{flex:1 1 125px;padding:10px 12px}}

.compress-view .compress-quality-explainer,.compress-view .compress-image-note{font-size:12px;line-height:1.6;color:#62748c;margin:8px 0}.compress-view .compress-image-note{margin-top:0}

.compress-view .compression-slider{max-width:760px;margin:12px 0 16px}.compress-view #advanced-options .compression-slider label{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px;font-size:14px;font-weight:600}.compression-slider output{font-size:16px;color:#205adb;font-weight:700;min-width:48px;text-align:right}.compress-view #advanced-options #compression-quality{display:block;box-sizing:border-box;width:100%;height:44px;margin:0;padding:0;accent-color:#205adb;cursor:pointer;background:transparent;border:0}.compression-slider input:focus-visible{outline:2px solid #205adb;outline-offset:3px}.compression-scale{display:flex;justify-content:space-between;gap:14px;color:#62748c;font-size:12px;line-height:1.5;margin-top:2px}.compression-slider input:disabled{opacity:.5;cursor:default}

.compress-view #advanced-options .compression-slider label{flex-direction:row;text-align:left;width:100%}.compress-view .compression-slider output{width:auto;margin:0;text-align:right}

.compress-view .compression-slider{width:100%;max-width:none}.compress-view #advanced-options{width:100%}.compress-view #advanced-options #compression-quality{direction:ltr}

.delete-top-controls{margin:16px 0 22px}.delete-top-controls .delete-page-ranges{margin:0 0 8px}.delete-top-controls #status:empty{display:none}.delete-top-controls .dialog-privacy{margin-bottom:0}.delete-pages-view #process{margin-top:18px}.delete-pages-view .delete-top-controls #download{min-height:44px}

.delete-pages-view #download-deleted-pdf{display:block;min-height:44px;margin:0 0 18px;width:100%}

.delete-pages-view .deleted-download-section{display:flex;justify-content:center;align-items:center;padding:22px 0;margin:18px 0;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}.delete-pages-view .deleted-download-section[hidden]{display:none}.delete-pages-view .deleted-download-section #download-deleted-pdf{display:inline-flex;align-items:center;justify-content:center;width:auto;max-width:100%;min-height:44px;margin:0;padding:12px 22px}.delete-pages-view .deleted-download-section+.deleted-pages{margin-top:18px}@media(max-width:600px){.delete-pages-view .deleted-download-section{padding:18px 0;margin:16px 0}.delete-pages-view .deleted-download-section #download-deleted-pdf{padding:12px 16px}}
