:root{color-scheme:light;--red:#e5322d;--bright:#e5322d;--ink:#202024;--muted:#595962;--line:#dedee1;--paper:#fff;--wash:#f7f7f8;--tint:#fff1f1;--mono:ui-monospace,SFMono-Regular,Consolas,monospace;--sans:Inter,"Segoe UI",Arial,sans-serif;font-family:var(--sans);font-size:16px;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
body{margin:0;line-height:1.55;text-rendering:optimizeLegibility}
button,input,select,textarea{font:inherit}
a{color:var(--red);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{text-decoration:underline}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #126296;outline-offset:3px}
[hidden]{display:none!important}
.wrap,.mast>.inner,.mast>.wrap,.sitefoot>.inner,.sitefoot>.wrap{width:min(1192px,calc(100% - clamp(36px,8vw,112px)));margin-inline:auto}
.mast{border-bottom:1px solid var(--line);background:white}
.mast .inner,.mast .wrap,.mast-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:76px}
.brand{display:inline-flex;align-items:center;color:var(--ink);text-decoration:none;font-size:1.25rem;font-weight:780;letter-spacing:-.06em;white-space:nowrap}
.brand strong,.brand b,.brand .red{color:var(--red)}.brand svg{width:38px;height:38px;margin-right:9px}.brand:hover{text-decoration:none}
.nav,.mast nav{display:flex;gap:clamp(12px,2.3vw,36px);align-items:center}.nav a,.mast nav a{color:var(--ink);text-decoration:none;font-size:.93rem;font-weight:580}.nav a:hover,.mast nav a:hover{color:var(--red)}
main.wrap{padding-bottom:clamp(55px,8vw,110px)}
h1,h2,h3,h4,p,figure{margin:0}h1,h2,h3,h4{letter-spacing:-.045em;line-height:1.12}h1{font-size:clamp(2.55rem,5.8vw,5rem);max-width:24ch}h2{font-size:clamp(1.6rem,3vw,2.35rem)}h3{font-size:1.33rem}p+ p{margin-top:.9rem}
.home-lead{display:grid;grid-template-columns:1.07fr .93fr;gap:clamp(30px,6vw,90px);align-items:center;padding:clamp(38px,5.6vw,82px) 0 clamp(34px,4vw,62px)}
.home-intro h1{font-weight:760;font-size:clamp(3.1rem,6.3vw,6.1rem);line-height:1;letter-spacing:-.075em}
.title-dot{color:var(--bright)}
.home-intro>p{font-size:clamp(1.06rem,1.5vw,1.27rem);color:var(--muted);margin:18px 0 26px;max-width:42ch;line-height:1.5}
#converter-search{max-width:540px;margin:0}
#converter-search label{font-size:.85rem;display:block;font-weight:660;margin-bottom:7px}
.query-row{display:flex;align-items:stretch;background:white;border:1px solid #96969c;padding:4px;border-radius:5px;gap:3px}
.query-row:focus-within{border-color:var(--red)}
.query-row input{min-width:0;flex:1;border:0;box-shadow:none;padding:8px 10px;color:var(--ink);font-size:1rem}
.query-row input:focus-visible{outline:2px solid #126296;outline-offset:-1px}
button,.button,.btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 17px;border:1px solid var(--red);background:var(--red);color:white;border-radius:4px;font-weight:650;line-height:1.25;cursor:pointer;text-decoration:none}
button:hover,.button:hover,.btn:hover{background:#c32621;border-color:#c32621;color:white;text-decoration:none}
button:disabled{cursor:default;opacity:.57}
.popular{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 13px;margin-top:13px;color:var(--muted);font-size:.82rem}
.popular a{color:var(--red);font-weight:620}
.part-figure{background:#f8f7f4;border:1px solid #dedbd4;border-radius:5px;padding:7px 16px 0;overflow:hidden}
.clevis{display:block;width:100%;height:auto;max-height:300px}
.part-figure figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-top:1px solid #d5d1c9;padding:9px 0 11px;color:#44423e;font-size:.86rem}
.part-figure figcaption span:last-child,.count,.section-title>span{font-family:var(--mono);font-size:.74rem;letter-spacing:.015em;color:var(--muted)}
.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:22px}
.section-title>span{white-space:nowrap}
.section-title h2{font-weight:700}
.home-directory{padding-top:24px;border-top:2px solid var(--ink)}
.hub-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-top:3px solid var(--red);border-radius:3px;overflow:hidden}
.hub-card{padding:clamp(16px,1.8vw,26px);display:flex;flex-direction:column;align-items:flex-start;min-width:0;background:#fff}
.hub-card+.hub-card{border-left:1px solid var(--line)}
.hub-card header{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;width:100%}
.hub-card h3{font-size:clamp(1.1rem,1.65vw,1.44rem);letter-spacing:-.045em}
.hub-card h3 a,.tool-list a{color:var(--ink);text-decoration:none}
.hub-card h3 a:hover,.tool-list a:hover{color:var(--red);text-decoration:underline}
.hub-card p{margin:8px 0 0;font-size:.93rem;color:var(--muted);min-height:2.95em}
.hub-card ul{list-style:none;padding:0;margin:15px 0 17px;border-top:1px solid var(--line);width:100%;flex:1}
.hub-card li{padding-top:9px;line-height:1.35}
.hub-card li a{font-size:.92rem;text-decoration:none;color:var(--ink)}.hub-card li a:hover{color:var(--red);text-decoration:underline}
.hub-more{font-weight:680;text-decoration:none;font-size:.87rem}.hub-more span{margin-left:2px}
#tool-search-results{padding:16px 0 36px;scroll-margin-top:20px}#tool-search-results .section-title{margin-bottom:5px}#result-count{color:var(--muted)}
#clear-query{border:0;color:var(--red);background:none;padding:2px;text-decoration:underline}
.search-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;margin:16px 0 0;padding:0;gap:0 28px}
.search-list li{display:flex;gap:8px;justify-content:space-between;align-items:baseline;border-bottom:1px solid var(--line);padding:8px 0}
.search-list span{font-size:.78rem;color:var(--muted)}
.breadcrumbs,.crumbs,.crumb{font-size:.84rem;color:var(--muted);margin:22px 0 16px}.breadcrumbs a,.crumbs a,.crumb a{color:inherit}
.tool-head,.page-head,.directory-head,.page-intro{padding:10px 0 24px}.tool-head p,.page-head p,.directory-head p,.page-intro p,.lede,.intro{font-size:1.1rem;color:var(--muted);max-width:76ch;margin:12px 0 20px}
main.wrap>h1:first-child,.directory>h1:first-child{margin-top:42px}
.workspace{border:1px solid #d7d7da;border-top:3px solid var(--red);background:#fff;border-radius:5px;padding:clamp(18px,3vw,38px);margin:18px 0 32px;overflow-wrap:anywhere}
.workspace p,.guide p{margin:.65em 0}
.workspace label{font-size:.93rem;font-weight:600}
.workspace input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),.workspace select,.workspace textarea{max-width:100%;border:1px solid #9999a1;border-radius:4px;padding:8px 10px;min-height:40px;background:white;color:var(--ink)}
.workspace input[type=color]{width:54px;min-height:40px;border:1px solid #a2a2a9;background:white;border-radius:4px}
.workspace input[type=range],.workspace input[type=checkbox],.workspace input[type=radio]{accent-color:var(--red)}
.workspace input[type=file]{max-width:100%;font-size:.93rem}
.workspace input::file-selector-button{font:inherit;font-weight:630;border:1px solid #aaaab0;padding:6px 10px;background:var(--wash);border-radius:3px;margin-right:10px;color:var(--ink);cursor:pointer}
.workspace fieldset{min-width:0;border:1px solid var(--line);border-radius:4px;padding:14px 18px}
.workspace legend{font-weight:650;padding:0 5px}
.workspace canvas,.workspace svg,.workspace img,.guide img{max-width:100%}
.workspace pre,.guide pre{max-width:100%;overflow:auto;background:var(--wash);padding:12px;border-radius:4px}
.guide,.prose,.content-page{max-width:86ch;overflow-wrap:break-word}
.guide>*+*,.prose>*+*,.content-page>*+*{margin-top:1em}
.guide h2,.guide h3,.prose h2,.content-page h2{margin:1.4em 0 .5em}
.guide ul,.guide ol,.prose ul,.content-page ul{padding-left:1.4em}
table{border-collapse:collapse;width:100%;margin:16px 0;line-height:1.45}
th,td{text-align:left;vertical-align:top;border-bottom:1px solid var(--line);padding:10px 12px}
th{background:var(--wash);font-weight:660}
details{border-bottom:1px solid var(--line);padding:9px 0}summary{font-weight:620;cursor:pointer}
.directory .tool-list,.tool-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:0 26px;list-style:none;padding:0;margin:24px 0}
.tool-list>li,.tool-list>article,.tool-list>a{border-top:1px solid var(--line);padding:14px 0}
.tool-list p{font-size:.91rem;color:var(--muted);margin:5px 0}.tool-list a:hover{text-decoration:underline}
.sitefoot{border-top:1px solid var(--line);background:var(--wash);padding:30px 0;color:var(--muted);font-size:.9rem}
.sitefoot nav{display:flex;flex-wrap:wrap;gap:10px 20px}.sitefoot a{color:var(--ink)}.sitefoot .brand{font-size:1rem}.sitefoot .wrap,.sitefoot .inner{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:18px}
.skip-link,.skip{position:absolute;left:8px;top:-120px;background:#fff;color:var(--red);padding:10px 18px;z-index:10}.skip-link:focus,.skip:focus{top:8px}
@media(max-width:960px){
.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-card:nth-child(3){border-left:0}.hub-card:nth-child(n+3){border-top:1px solid var(--line)}
.hub-card p{min-height:0}.home-lead{gap:28px}.part-figure{padding:6px 10px 0}
}
@media(max-width:720px){
.mast .inner,.mast .wrap,.mast-inner{align-items:flex-start;flex-direction:column;gap:6px;padding:12px 0;min-height:0}
.mast nav,.nav{gap:5px 16px;flex-wrap:wrap}.nav a,.mast nav a{font-size:.84rem}
.home-lead{grid-template-columns:1fr;gap:20px;padding:34px 0 26px}.home-intro>p{margin:12px 0 20px}
.part-figure{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:0 14px 0 0}
.clevis{height:140px;width:100%}.part-figure figcaption{border-top:0;display:grid;gap:2px;margin:0;padding:0}
.workspace{padding:16px;margin-bottom:23px}.guide table{display:block;overflow-x:auto}
.search-list{grid-template-columns:1fr}.section-title{margin-bottom:14px;gap:9px}.home-directory{padding-top:18px}
}
@media(max-width:450px){
.wrap,.mast>.inner,.mast>.wrap,.sitefoot>.inner,.sitefoot>.wrap{width:calc(100% - 30px)}
.hub-grid{grid-template-columns:1fr}.hub-card+.hub-card{border-left:0;border-top:1px solid var(--line)}
.hub-card header{justify-content:space-between}.hub-card ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}.hub-card{padding:17px}.hub-card h3{font-size:1.3rem}
.home-directory .section-title{flex-wrap:wrap}.part-figure figcaption{font-size:.73rem}.part-figure figcaption span:last-child{font-size:.6rem}.clevis{height:122px}
}
@media print{.mast nav,.sitefoot,.popular,#converter-search,.skip,.skip-link{display:none}.wrap{width:100%}.workspace,.guide{break-inside:avoid}}
.brand>span{color:var(--red)}
.tool-list strong,.tool-list span{display:block}.tool-list span{font-weight:400;font-size:.92rem;line-height:1.5;color:var(--muted);margin-top:5px}
.tool-list a{display:block}.tool-list a:hover span{text-decoration:none}.hub-back{margin-top:38px}.trust{padding-top:clamp(32px,5vw,68px)}
.file-workspace,.corel-form{display:grid;gap:12px;align-items:start;justify-items:start;width:100%}
.workspace .dropzone,.workspace .corel-drop,.workspace .cad-drop{display:grid;width:100%;gap:10px;border:1px dashed #d98783;border-radius:4px;background:#fff9f8;padding:clamp(17px,3vw,32px);font-weight:680;font-size:1.1rem}
.workspace .dropzone input[type=file],.workspace .corel-drop input[type=file],.workspace .cad-drop input[type=file]{border:0;background:transparent;padding:0}
.file-workspace>label:not(.dropzone),.file-workspace fieldset label,.corel-options label{display:grid;gap:5px}
.file-workspace fieldset,.corel-options{display:flex;flex-wrap:wrap;gap:12px}
.workspace .file-note,.corel-form>p,.workspace [role=status]{font-size:.91rem;color:var(--muted);margin:0}.workspace [role=status]:empty{display:none}
.workspace a[download]{display:inline-block;font-weight:650;text-underline-offset:3px}.corel-output>img{display:block;max-height:600px;object-fit:contain}
.workspace .conversion-result:empty{display:none}.workspace .conversion-result{max-width:100%;overflow:auto}
.guide .faq{margin-top:32px}.faq h2{margin-bottom:12px}.faq details p{padding:4px 0 8px}
.cad-form{display:grid;justify-items:start;align-items:start;gap:13px}.cad-options{display:flex;flex-wrap:wrap;gap:14px}.cad-options label{display:grid;gap:5px}.cad-options:empty{display:none}
.workspace .cad-drop>span,.cad-form>p,.cad-status,.cad-caption{font-size:.91rem;color:var(--muted);font-weight:400}.workspace .cad-drop{gap:5px}.workspace .cad-drop input{margin-top:8px}.cad-status:empty{display:none}
.cad-result{padding-top:12px;margin-top:12px;border-top:1px solid var(--line)}.cad-result canvas{border:1px solid var(--line);border-radius:3px;cursor:grab}.cad-result a{font-weight:660}
.mast .brand::before{content:"";display:block;flex:none;width:29px;height:29px;background:url("/favicon.svg") center/contain no-repeat;margin-right:9px}

.sample-part { margin: 1rem 0 2rem; padding: 1rem 1.3rem; border-left: 3px solid var(--red); background:#faf8f7; }
.sample-part p { margin:.35rem 0; }
.sample-part a { text-decoration:underline; }
.related {border-top: 1px solid var(--line); margin-top:2rem; padding:1.5rem 0 0;}
.related h2 {font-size:1.25rem; margin-bottom:.6rem;}
.related a {display:inline-block; padding:.35rem .8rem .35rem 0; color:var(--red); text-decoration:underline;}
.home-intro #tool-search-results{max-width:540px;margin:8px 0 0;padding:0;border:1px solid var(--line);border-radius:4px}
.home-intro #tool-search-results .section-title{padding:9px 14px 0;margin:0}
.home-intro #result-title{font-size:1rem;letter-spacing:-.015em}
.home-intro #clear-query{font-size:.84rem;min-height:36px;padding:4px 2px}
.home-intro #result-count{margin:0;padding:0 14px 10px;font-size:.85rem}
.home-intro .search-list{display:block;padding:0;margin:0;max-height:min(18rem,39dvh);overflow:auto;overscroll-behavior:contain}
.home-intro .search-list li{display:block;padding:0;border:0;border-top:1px solid var(--line)}
.search-list a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:7px 14px;color:var(--ink);text-decoration:none}
.search-list a:hover,.search-list a:focus-visible{background:var(--tint);color:var(--red)}
.search-list a:focus-visible{outline-offset:-3px}.search-list strong{font-weight:640}.search-list span{text-align:right}
.home-intro:has(#tool-search-results:not([hidden]))+.part-figure{align-self:start}
.guide.trust{max-width:72ch;line-height:1.7}.trust>.lede{padding-bottom:20px;border-bottom:2px solid var(--red)}.guide code{font-size:.93em;overflow-wrap:anywhere}.guide summary{min-height:44px;padding:9px 0}
.workspace a.download,.corel-output a[download],.conversion-result a[download]{padding:9px 14px;min-height:44px;border:1px solid var(--red);border-radius:4px;background:var(--tint);font-weight:650}
@media(max-width:720px){.home-lead:has(#tool-search-results:not([hidden])) .part-figure{display:none}}

/* Format finder and task workspaces */
.convert-word{color:var(--red)}
.home-intro h1{max-width:13ch;font-size:clamp(3rem,5.8vw,5.25rem);margin-bottom:1.6rem}
.home-lead{align-items:center}
.part-figure figcaption small{color:var(--muted);font-size:.85em}
.part-figure figcaption a{font-weight:650}
.hub-card{border-top:2px solid var(--ink)}
.workspace .cad-settings{display:grid;gap:12px;justify-items:start}
.cad-stage{padding:12px;background:#f6f7f7;border:1px solid var(--line);border-radius:6px}
.cad-stage canvas{display:block;width:100%;height:auto;touch-action:none;cursor:grab}
.cad-stage label,.preview-dim{display:inline-flex;align-items:center;gap:8px;margin:5px;font: .82rem var(--mono)}
.workspace:has(.cad-stage:not([hidden])) .cad-drop{padding:10px 14px;background:white}
.workspace:has(.cad-stage:not([hidden])) .cad-drop span{display:none}
.workspace .color-studio{max-width:none}
.color-studio .rgb-channels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.rgb-channels input{width:100%}
.workspace .color-studio .color-result{display:grid;grid-template-columns:1fr auto;align-content:start;align-items:center;background:#fafafa;padding:14px;border-radius:6px;gap:14px}
.workspace .color-studio .swatch{grid-column:1/-1;width:100%;height:clamp(100px,16vw,220px);border:1px solid #0002;border-radius:3px}
.workspace .color-studio output{font-size:clamp(1.25rem,2vw,2rem)}
@media(min-width:800px){
.workspace .color-studio{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);column-gap:clamp(25px,5vw,75px)}
.color-studio>*{grid-column:1}.workspace .color-studio .color-result{grid-column:2;grid-row:1/span 7}
.workspace:has(.cad-stage:not([hidden])) [id]:has(>.cad-stage),.workspace:has(>.cad-stage:not([hidden])){display:grid;grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr);gap:14px 24px}
.workspace:has(.cad-stage:not([hidden])) .cad-form{display:contents}
.workspace:has(.cad-stage:not([hidden])) .cad-drop{grid-column:1;grid-row:1}
.workspace:has(.cad-stage:not([hidden])) .cad-sample{grid-column:2;grid-row:1;align-self:center;justify-self:start}
.workspace:has(.cad-stage:not([hidden])) .cad-stage{grid-column:1;grid-row:2}
.workspace:has(.cad-stage:not([hidden])) .cad-settings{grid-column:2;grid-row:2;align-content:start}
.cad-result,.cad-status{grid-column:1/-1}
}
@media(max-width:799px){
.workspace:has(.cad-stage:not([hidden])):has(>.cad-stage),.workspace:has(.cad-stage:not([hidden])) [id]:has(>.cad-stage){display:flex;flex-direction:column;gap:12px}
.workspace:has(.cad-stage:not([hidden])) .cad-form{display:contents}
.cad-stage{order:1}.cad-settings{order:2}.cad-status{order:3}.cad-result{order:4}
}

/* Focused launch: six collections and accessible mobile controls */
:root{--red:#d52b27}
.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.hub-card:nth-child(3n+1){border-left:0}
.hub-card:nth-child(n+4){border-top:1px solid var(--line)}
.workspace button,.workspace .button,.workspace .btn,.workspace select{min-height:44px}
.workspace textarea{width:100%;min-width:0;resize:vertical}
.workspace audio,.workspace video{max-width:100%}
.workspace>*{min-width:0}
.workspace [role=status]{line-height:1.55;overflow-wrap:anywhere}
.workspace a[download],.sample-part a[download]{min-height:44px;display:inline-flex;align-items:center}
.sitefoot .wrap{align-items:flex-start}
.sitefoot nav{flex:1;justify-content:flex-end;max-width:820px}
.sitefoot nav a{padding:8px 0}
.sample-part h2{font-size:1.25rem}
.guide h1{font-size:clamp(2rem,4.8vw,3.5rem)}
@media(max-width:960px){
.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.hub-card:nth-child(n){border-left:0}
.hub-card:nth-child(even){border-left:1px solid var(--line)}
.hub-card:nth-child(n+3){border-top:1px solid var(--line)}
}
@media(max-width:720px){
.mast nav,.nav{width:100%;gap:0 16px}
.mast nav a{display:inline-flex;align-items:center;min-height:44px}
.sitefoot nav{flex-basis:100%;justify-content:flex-start;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.sitefoot nav a{min-height:44px;display:flex;align-items:center}
.workspace input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),.workspace select,.workspace textarea{font-size:16px}
.tool-heading h1{font-size:clamp(2rem,8vw,3rem)}
}
@media(max-width:450px){
.hub-grid{grid-template-columns:1fr}
.hub-card:nth-child(n){border-left:0}
.hub-card:nth-child(n+2){border-top:1px solid var(--line)}
}

/* Keep intrinsic file inputs and CAD grid tracks inside narrow screens. */
.cad-form,.file-workspace,.corel-form,.workspace .cad-settings{grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%;width:100%}
.cad-form>*,.file-workspace>*,.corel-form>*,.cad-settings>*,.cad-options>label,.corel-options>label{min-width:0;max-width:100%}
.workspace .cad-drop,.workspace .corel-drop,.workspace .dropzone{grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%}
.workspace input[type=file]{width:100%;min-width:0;max-width:100%}
.cad-stage,.cad-result,.cad-options,.corel-options{min-width:0;max-width:100%}
@media(max-width:720px){.workspace label{max-width:100%;min-width:0}.workspace select{width:100%;min-width:0}.tool-head h1{overflow-wrap:anywhere}.workspace .cad-drop,.workspace .corel-drop,.workspace .dropzone{padding:14px}.cad-stage{width:100%}.cad-stage label{flex-wrap:wrap}.workspace fieldset{max-width:100%}}

/* Launch usability and keyboard focus */
.processing-note{font-size:.94rem;line-height:1.55;padding:10px 12px;border-left:3px solid var(--red);background:#faf8f7;color:var(--ink);margin:12px 0 18px;overflow-wrap:anywhere}
.processing-note a{text-decoration:underline;text-underline-offset:3px}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #a51d19;outline-offset:3px}
.workspace button:disabled{cursor:not-allowed;opacity:.7}
.workspace pre,.guide pre{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:720px){.mast nav a{font-size:.95rem;line-height:1.3}.mast .brand{font-size:1.15rem}.mast .brand::before{width:32px;height:32px}.processing-note{font-size:.9rem}.workspace button{max-width:100%;white-space:normal}.guide a{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Reserve the initial converter footprint while its module loads. */
.workspace[data-tool="pdf-to-markdown"],.workspace[data-tool="pdf-to-text"],.workspace[data-tool="parquet-to-csv"],.workspace[data-tool="csv-to-json"]{min-height:530px}
.workspace[data-tool="step-to-3d-pdf"]{min-height:430px}
.workspace[data-tool="pdf-to-cdr"]{min-height:340px}
.workspace[data-tool="step-to-3d-pdf"] .cad-status,.workspace[data-tool="pdf-to-cdr"] [role=status]{display:block;min-height:3em}
@media(max-width:720px){.workspace[data-tool="step-to-3d-pdf"]{min-height:530px}.workspace[data-tool="pdf-to-cdr"]{min-height:380px}.workspace[data-tool="pdf-to-markdown"],.workspace[data-tool="pdf-to-text"],.workspace[data-tool="parquet-to-csv"],.workspace[data-tool="csv-to-json"]{min-height:560px}}

/* Keep audio controls and following content stable during module startup. */
.workspace[data-tool="caf-to-mp3"]{min-height:300px}
.workspace[data-tool="caf-to-mp3"]>label{display:block;margin:8px 0}
@media(max-width:720px){.workspace[data-tool="caf-to-mp3"]{min-height:480px}.workspace[data-tool="caf-to-mp3"]>label{display:grid;gap:4px}}

/* Result presentation: keep the initial layout stable and expand only after conversion. */
.workspace > img[alt="Converted image preview"]:not([hidden]){
 display:block;width:100%;height:clamp(180px,32vw,360px);object-fit:contain;
 background:#f5f5f5;border:1px solid var(--line);border-radius:6px;
 padding:12px;margin:12px 0;box-sizing:border-box;
}
.workspace > img[alt="Converted image preview"][hidden]{display:none}
.workspace label:has(>textarea){display:grid;gap:8px;width:100%;font-weight:650}
.workspace textarea[readonly]{background:#f8f8f8;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:14px;font: .9rem/1.65 var(--mono);tab-size:2;box-sizing:border-box;overflow:auto}
.workspace[data-tool="svg-to-dxf"]>label:has([data-mm]),.workspace[data-tool="svg-to-dxf"]>label:has([data-tol]){display:grid;gap:6px;margin:10px 0;font-weight:600;max-width:100%}
.workspace[data-tool="svg-to-dxf"] input[type=number]{width:min(100%,18rem);min-height:44px;padding:8px 12px;box-sizing:border-box}
.workspace[data-tool="svg-to-dxf"] [data-run]{margin-top:8px}
.workspace [data-save]:enabled,.workspace [data-download]:enabled{background:var(--red);color:white;border-color:var(--red)}
@media(max-width:720px){.workspace textarea[readonly]{font-size:16px;padding:10px}.workspace[data-tool="svg-to-dxf"] input[type=number]{width:100%}.workspace > img[alt="Converted image preview"]:not([hidden]){height:220px}}

/* Reserve the batch image workspace before its asynchronous module mounts. */
.workspace[data-tool="avif-to-png"]{min-height:440px}
@media(max-width:720px){.workspace[data-tool="avif-to-png"]{min-height:560px}}

.sitefoot .brand::before{content:"";display:block;flex:none;width:24px;height:24px;background:url("/favicon.svg") center/contain no-repeat;margin-right:7px}

#measurement-choice{position:fixed;bottom:12px;right:12px;z-index:100;width:min(360px,calc(100% - 24px));box-sizing:border-box;background:#fff;color:#222;border:1px solid #ccc;border-radius:8px;padding:14px;box-shadow:0 3px 16px #0002}#measurement-choice[hidden]{display:none}#measurement-choice p{margin:0 0 10px;font-size:14px}#measurement-choice button{min-height:44px;padding:8px 12px;border:1px solid #d52b27;border-radius:5px;background:#fff;color:#b3211e;cursor:pointer}#measurement-settings{font:inherit;color:inherit;background:none;border:0;padding:0;text-decoration:underline;cursor:pointer}
