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

.focused-card-image{position:relative}
[data-focused-workspace] .focused-preview{max-height:none}
.focused-zoom-trigger{border:0;padding:0;color:inherit;cursor:zoom-in}
[data-focused-workspace] .focused-file-card>.pdf-shortcut-menu{position:static;display:block;margin:10px auto 0;border:0;border-radius:50%;min-width:44px;min-height:44px;background:#f1f5fa}
[data-focused-workspace] .focused-remove{top:0;right:0}
.focused-toolbar-actions .focused-replace{font-size:14px;min-height:44px;padding:8px 12px;white-space:nowrap}
[data-focused-workspace] .sort-card-heading{margin:0 0 8px;min-height:40px}
[data-focused-workspace] .focused-file-card .drag-handle{min-height:40px}
.focused-editing [data-focused-workspace] .adv-pages{flex-wrap:wrap}
.focused-editing [data-focused-workspace] .adv-field{min-width:0}
@media(max-width:760px){
 .focused-editing [data-focused-workspace] .file-toolbar{flex-wrap:wrap;align-items:center}
 .focused-toolbar-actions{margin-left:auto}
 .focused-editing [data-focused-workspace] .file-toolbar>[data-file-count]{flex:1;min-width:100px;overflow-wrap:anywhere}
 .focused-editing [data-focused-workspace] .settings input:not([type=radio]):not([type=checkbox]),.focused-editing [data-focused-workspace] .settings select{font-size:16px;min-height:46px}
 .pdf-tool-editing.focused-editing [data-focused-workspace].advanced-security{padding-bottom:96px}
 .pdf-tool-editing.focused-editing [data-focused-workspace].advanced-security .process-button{position:fixed;z-index:20;left:0;right:0;bottom:0;width:100%;border:10px solid white;border-bottom-width:calc(10px + env(safe-area-inset-bottom,0px));border-radius:0;min-height:84px;margin:0;box-shadow:0 -3px 16px #26364d1a;background-clip:padding-box;font-size:19px}
}
