:root{--fv-interaction:150ms;--fv-ease:cubic-bezier(.2,.7,.2,1)}
.whatsapp-floating{width:56px;height:56px;min-height:56px;padding:0;border-radius:50%;transition:transform 180ms var(--fv-ease),box-shadow 180ms var(--fv-ease),background-color 180ms}.whatsapp-floating:hover{transform:translateY(-3px);box-shadow:0 9px 26px #173c2c40}.whatsapp-floating:active{transform:scale(.96)}.whatsapp-floating:focus-visible{outline:3px solid var(--primary);outline-offset:4px}body:has(.cx-processing[aria-busy=true]) [data-floating-support],body:has(.pe-editor) [data-floating-support]{display:none}
html{scroll-padding-top:100px}.upload-zone:focus-within{border-color:var(--primary)}.tool-card:focus-visible{outline:3px solid var(--primary);outline-offset:4px}.nav-group-toggle:active{transform:translateY(1px)}
@media(prefers-reduced-motion:no-preference){html:focus-within{scroll-behavior:smooth}}
@media(prefers-reduced-motion:reduce){.whatsapp-floating{transition:none!important;transform:none!important}.file-loader-art *,.file-loader-track span,.spinner{animation:none!important}}
.theme-choice{display:inline-flex;align-items:center;gap:6px;font-size:11px;white-space:nowrap}
.theme-choice select{min-height:44px;max-width:94px;padding:5px 8px;border:1px solid var(--border);border-radius:8px;background:var(--background);color:var(--text)}
.tool-card,.fv-card,.fv-button,.btn,.nav-group-toggle,.nav-tool-grid a,.form-control,.fv-input{transition:background-color var(--fv-interaction),border-color var(--fv-interaction),box-shadow var(--fv-interaction),transform var(--fv-interaction)}
.fv-card:focus-within{border-color:var(--primary)}
.btn:active:not(:disabled),.fv-button:active:not(:disabled){transform:translateY(1px)}
.fv-input:focus-visible,.form-control:focus-visible{box-shadow:0 0 0 3px #28645124}
.fv-input[aria-invalid=true],.form-control[aria-invalid=true]{border-color:var(--danger)}
.foundation-error{position:fixed;inset:100px 16px auto auto;z-index:1100;width:min(420px,calc(100% - 32px));padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--background);color:var(--text);box-shadow:0 12px 40px #0002}
.foundation-error h2{font-size:20px;margin:0 0 10px}.foundation-error p{margin:0 0 12px}.foundation-error-actions{display:flex;gap:12px;flex-wrap:wrap}.foundation-error button,.foundation-error a{min-height:44px}
.upload-progress{width:100%;height:10px;accent-color:var(--primary);margin-top:16px}
html[data-theme=dark]{color-scheme:dark;--primary:#9ad2b2;--primary-dark:#c4e8d0;--secondary:#d9b67e;--background:#13221d;--surface:#1c3027;--text:#e0ede5;--muted:#b2c5b8;--border:#3a5446;--danger:#ffb1b9;--warning:#e9c68b;--success:#a5dabb}
html[data-theme=dark] body{background:var(--background);color:var(--text)}
html[data-theme=dark] :is(.site-header,.site-footer,.nav-dropdown,.tool-card,.customer-card,.contact-form,.login-form,.access-choice,.cookie-banner,.status-panel,.options-panel,.file-row,.conversion-prompt,.foundation-error,.fv-tools-controls,.fv-tools-filters button){background:var(--surface);color:var(--text);border-color:var(--border)}
html[data-theme=dark] :is(.hero,.steps-section,.faq-section,.upload-zone,.quiet-banner,.notice.info-note){background:#1a2c23;border-color:var(--border)}
html[data-theme=dark] :is(.nav-dropdown-heading,.nav-tool-grid a,.nav-all-link,.footer-bottom){border-color:var(--border)}
html[data-theme=dark] :is(.nav-tool-grid a,.nav-group-toggle,.cookie-copy h2,.access-choice strong,.download-name-row input,.fv-tools-filters button){color:var(--text)}
html[data-theme=dark] :is(.nav-help,.nav-dropdown-heading p,.nav-dropdown-heading strong,.footer-links a,.cookie-copy p,.access-choice p){color:var(--muted)}
html[data-theme=dark] :is(.form-control,.form-select,.fv-tools-controls input,.download-name-row input){background:#13221d;color:var(--text);border-color:var(--border)}
html[data-theme=dark] :is(.btn-primary,.nav-signup,.cookie-choice.accept){background:#38775c;color:#fff;border-color:#569674}
html[data-theme=dark] :is(.btn-light,.cookie-choice,.nav-toggle){background:#263e32;color:var(--text);border-color:var(--border)}
html[data-theme=dark] :is(.tool-icon,.nav-tool-icon,.fv-tool-status){background:#294d3b;color:#c1e4cc}
html[data-theme=dark] :is(.tool-icon.image,.fv-tool-status.fv-tool-unavailable){background:#4a3b24;color:#f3d5a2}
html[data-theme=dark] .tool-icon.document{background:#273e58;color:#c0d5f0}
html[data-theme=dark] .nav-links a:hover,html[data-theme=dark] .nav-links a[aria-current=page]{background:#294335;color:var(--text)}
html[data-theme=dark] .fv-tools-filters button[aria-pressed=true]{background:#38775c;color:#fff}
html[data-theme=dark] .notice:not(.info-note){background:#482831;color:#ffcad0}
html[data-theme=dark] .file-processing-loader{background:linear-gradient(125deg,#1c3027,#263c30);color:var(--text);border-color:var(--border)}
html[data-theme=dark] :is(.file-loader-copy p,.conversion-prompt p){color:var(--muted)}
html[data-theme=dark] :is(.compression-workflow,.compression-workflow li,.original-pdf-recovery){background:var(--surface);color:var(--text);border-color:var(--border)}
/* Document canvases/images intentionally retain their actual document colors. */
@media(min-width:1024px) and (max-width:1250px){.theme-choice span{display:none}.theme-choice select{max-width:80px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.tool-card,.fv-card,.fv-button,.btn,.nav-group-toggle,.nav-tool-grid a,.form-control,.fv-input{transition:none!important;transform:none!important}}
