/* Only the selected-file workspace changes; the landing page and other tools retain their layouts. */
.compress-editing.compress-mobile .tools-main{padding:0 16px}
.compress-editing [data-tool=compress-pdf][data-compress-mobile] .editor-stage{display:block;padding-bottom:88px}
.compress-editing [data-tool=compress-pdf][data-compress-mobile] .file-area{padding:16px 0 4px;min-height:0}
.compress-editing [data-tool=compress-pdf][data-compress-mobile] .file-toolbar{margin-bottom:12px;flex-wrap:wrap}
.compress-editing [data-tool=compress-pdf][data-compress-mobile] .file-toolbar>[data-file-count]{flex:1;min-width:80px}
.compress-editing [data-tool=compress-pdf][data-compress-mobile] .compress-toolbar-actions{gap:6px;margin-left:auto}
.compress-editing [data-tool=compress-pdf][data-compress-mobile] .editor-stage>.settings{position:static;width:100%;height:auto;min-height:0;max-height:none;padding:0;border:0;border-radius:0;background:transparent;overflow:visible;display:block}
.compress-editing [data-tool=compress-pdf][data-compress-mobile] .editor-stage>.settings>h2,.compress-editing [data-tool=compress-pdf][data-compress-mobile] .editor-stage>.settings>[data-settings]{display:none}
.compress-editing [data-tool=compress-pdf][data-compress-mobile] .process-button{position:fixed;z-index:35;left:0;right:0;bottom:0;width:100%;margin:0;border:10px solid white;border-bottom-width:max(10px,env(safe-area-inset-bottom));border-radius:0;min-height:76px;font-size:18px;box-shadow:0 -4px 18px #20396d0c}
.compress-editing{--tool-panel-width:clamp(330px,32vw,390px)}
.compress-working [data-tool=compress-pdf]>.tool-heading,.compress-working #tools-guide,.compress-working .tools-footer{display:none}
.compress-editing [data-tool=compress-pdf] .editor-stage{margin:0;border:0;border-radius:0;background:transparent}
.compress-editing [data-tool=compress-pdf] .file-area{padding:24px 28px}
.compress-editing [data-tool=compress-pdf] .file-toolbar{margin:0 0 28px;gap:12px;min-height:48px}
.compress-editing [data-file-count]{color:#536579;font-size:13px;font-weight:600;line-height:1.5}
.compress-toolbar-actions{display:flex;align-items:center;gap:12px;flex:none}
.compress-toolbar-actions [data-compress-help]{min-height:44px;border:0;background:transparent;font-size:14px;color:#244e94;padding:8px}
.compress-toolbar-actions .compress-add{display:grid;place-items:center;width:48px;height:48px;min-height:48px;padding:0;border:0;border-radius:50%;background:#244e94;color:#fff;font-size:30px;line-height:1;box-shadow:0 3px 10px #20396d25}
.compress-toolbar-actions .compress-add:hover{background:#183c75}
[data-tool=compress-pdf] .file-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,240px));justify-content:center;align-items:start;gap:24px;padding:8px 0 24px}
[data-tool=compress-pdf] .compress-file-card{position:relative;padding:12px 16px 16px;border:1px solid #d7deea;border-radius:14px;background:white;box-shadow:0 4px 18px #26364d0a}
[data-tool=compress-pdf] .compress-preview{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:254px;padding:42px 6px 12px;margin:0 0 12px;border:0;border-radius:8px;background:#fff;color:#244e94;cursor:zoom-in}
[data-tool=compress-pdf] .compress-preview canvas{max-width:100%;max-height:100%;width:auto;height:auto;box-shadow:0 2px 8px #26364d20}
.compress-zoom-icon{position:absolute;top:0;right:40px;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#f1f5fa}
[data-tool=compress-pdf] .compress-remove{position:absolute;right:12px;top:12px;width:40px;height:40px;display:grid;place-items:center;background:#f1f5fa;border:0;border-radius:50%;color:#536579;padding:9px;cursor:pointer}
.compress-remove:hover,.compress-preview:hover .compress-zoom-icon{background:#e3ecf9;color:#244e94}
.compress-zoom-icon svg,.compress-remove svg,.compress-help-dialog svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
[data-tool=compress-pdf] .file-name{font-size:14px;line-height:1.5;font-weight:500;color:#20396d}
[data-tool=compress-pdf] .file-size{font-size:12px;line-height:1.5;color:#68758b;margin:8px 0 0}
[data-tool=compress-pdf] .file-actions{margin-top:12px}
[data-tool=compress-pdf] .file-actions button{min-width:44px;min-height:44px;font-size:18px}
.compress-editing [data-tool=compress-pdf] .settings>h2{font-size:21px;padding-bottom:18px;margin-bottom:8px}
[data-tool=compress-pdf] .settings select{min-height:44px;font-size:14px;padding:10px 8px}
[data-tool=compress-pdf] .settings .compression-levels{margin:18px 0 20px}
[data-tool=compress-pdf] .settings .quality-choice{padding:12px;gap:10px;margin:10px 0}
[data-tool=compress-pdf] .settings .quality-choice strong{font-size:14px}
[data-tool=compress-pdf] .settings .quality-choice small{font-size:12px;line-height:1.5}
[data-tool=compress-pdf] .quality-choice:focus-within,[data-tool=compress-pdf] .quality-choice input:focus-visible{outline:none}
[data-tool=compress-pdf] .quality-choice:has(input:focus-visible){outline:2px solid #79a8ff;outline-offset:2px}
[data-tool=compress-pdf] .settings .compress-method-note{margin:8px 0 14px;color:#536579;font-size:12px;line-height:1.6}
[data-tool=compress-pdf] .settings .compress-method-warning{padding:10px 12px;border-left:3px solid #b57b23;background:#fff7e9;color:#77521c;border-radius:4px}
.compress-details{border-top:1px solid #dce3ed;margin-top:20px}
.compress-details>summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:13px;font-weight:600;color:#345378}
.compress-editing [data-tool=compress-pdf] .tool-assurance{padding:16px 20px 24px;font-size:12px;max-width:700px;margin:0 auto}
.compress-help-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #d7deea;border-radius:16px;background:#fff;color:#20396d;overflow:hidden}
.compress-help-dialog[open]{display:flex;flex-direction:column}
.compress-help-dialog::backdrop{background:#14263b88}
.compress-help-dialog>header{display:flex;align-items:center;gap:12px;justify-content:space-between;flex:none;padding:16px 20px;border-bottom:1px solid #e1e6ee}
.compress-help-dialog h2{font-size:20px;line-height:1.4;margin:0}
.compress-help-dialog>header button{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:8px;border:0;border-radius:50%;background:#f1f5fa;color:#20396d;cursor:pointer}
.compress-help-body{padding:4px 24px 24px;overflow:auto;overscroll-behavior:contain;font-size:14px;line-height:1.7}
.compress-help-body h2{font-size:18px;margin-top:20px}.compress-help-body ol{padding-left:22px}.compress-help-body li{padding:4px 0}
.compress-help-body .application-guide{text-align:left}.compress-help-body .application-guide>p{text-wrap:pretty}
.compress-help-body summary{cursor:pointer;padding:10px 0;font-weight:600}
@media(min-width:761px){
 .compress-editing [data-tool=compress-pdf] .file-area{min-height:calc(100dvh - var(--tools-header-height) - 110px)}
 .compress-editing [data-tool=compress-pdf] .settings{padding:22px}
 .compress-editing [data-tool=compress-pdf] [data-settings]{padding-right:4px}
 [data-tool=compress-pdf] .settings .compression-levels{margin:12px 0}
 [data-tool=compress-pdf] .settings .quality-choice{padding:9px 10px;margin:6px 0}
}
@media(max-width:760px){
 .compress-editing .tools-main{padding:0 16px}
 .compress-editing [data-tool=compress-pdf] .file-area{padding:16px 0 4px}
 .compress-editing [data-tool=compress-pdf] .file-toolbar{margin-bottom:12px}
 .compress-toolbar-actions{gap:6px}
 [data-tool=compress-pdf] .file-list{grid-template-columns:repeat(auto-fit,minmax(180px,230px));gap:16px;padding-bottom:20px}
 [data-tool=compress-pdf] .compress-preview{height:234px;padding-top:44px}
 [data-tool=compress-pdf] .compress-remove,.compress-zoom-icon{width:44px;height:44px}
 .compress-zoom-icon{right:44px}
 .compress-editing [data-tool=compress-pdf] .settings{border:1px solid #dce3ed;border-radius:14px;padding:18px}
 [data-tool=compress-pdf] .settings input:not([type=radio]),[data-tool=compress-pdf] .settings select{font-size:16px;min-height:46px}
 .compress-editing [data-tool=compress-pdf] .tool-assurance{padding:18px 4px 12px;font-size:11px}
 .compress-editing [data-tool=compress-pdf] .process-button{font-size:18px}
 .compress-help-body{padding:4px 18px 20px}.compress-help-dialog>header{padding:12px 16px}
}
