/* Shared tool flow: step guide, panel labels, drop-zone hints and state line. */
.tf-bar{margin:0 0 14px;padding:14px 16px;border:1px solid #353535;border-radius:12px;background:#151515;display:grid;gap:8px}
.tf-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;counter-reset:none}
.tf-steps li{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:9px;border:1px solid #2c2c2c;color:var(--m,#a2a2a2);font-weight:600;font-size:13px;line-height:1.25;min-width:0}
.tf-num{flex:none;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid #4a4a4a;font-size:12px;font-weight:750}
.tf-steps li.is-done{color:var(--t,#f1f2e9)}
.tf-steps li.is-done .tf-num{background:#2b2b14;border-color:var(--y,#f5df32);color:var(--y,#f5df32)}
.tf-steps li.is-active{color:#161616;background:var(--y,#f5df32);border-color:var(--y,#f5df32)}
.tf-steps li.is-active .tf-num{background:#161616;color:var(--y,#f5df32);border-color:#161616}
.tf-help{margin:0;color:var(--m,#a2a2a2);font-size:12.5px}
.tf-status-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tf-status{margin:0;font-size:13px;font-weight:600;color:var(--t,#f1f2e9);padding-left:18px;position:relative}
.tf-status::before{content:'';position:absolute;left:0;top:.45em;width:9px;height:9px;border-radius:50%;background:#6b6b6b}
.tf-bar[data-state=loaded] .tf-status::before{background:var(--y,#f5df32)}
.tf-bar[data-state=working] .tf-status::before{background:#5aa9ff;animation:tf-pulse 1s infinite alternate}
.tf-bar[data-state=done] .tf-status::before{background:#4ade80}
.tf-bar[data-state=error] .tf-status::before{background:#ff6b6b}
.tf-bar[data-state=error] .tf-status{color:#ffb4b4}
.tf-reset{padding:6px 12px;font-size:12px;min-height:0}
@keyframes tf-pulse{to{opacity:.35}}
@media (prefers-reduced-motion:reduce){.tf-bar[data-state=working] .tf-status::before{animation:none}}
/* Panel labels: absolutely placed so they never change a panel's own layout. */
[data-tf-step]{position:relative;overflow:visible!important}
[data-tf-step]::before{content:attr(data-tf-label);position:absolute;top:-10px;left:12px;z-index:2;padding:1px 9px;border-radius:999px;background:#161616;border:1px solid #4a4a4a;color:var(--y,#f5df32);font-size:10.5px;font-weight:700;letter-spacing:.03em;line-height:1.6;white-space:nowrap;pointer-events:none}
[data-tf-step]{margin-top:14px}
.media-grid>[data-tf-step],.uw-grid>[data-tf-step],.calc-grid>[data-tf-step],.ir-layout>[data-tf-step],.pdfw-layout>[data-tf-step]{margin-top:6px}
[data-tf-step="1"]:is(.ir-drop,.pdfw-drop,.pm-drop,.dropzone,.drop-target,.ats-drop){transition:border-color .15s,background .15s}
.tf-dragover{border-color:var(--y,#f5df32)!important;background:#2a2a12!important}
.tf-accept{margin:6px 0 0;font-size:12px;color:var(--m,#a2a2a2)}
/* Mobile: Upload → Options → Preview. */
@media (max-width:720px){
 .tf-bar{padding:10px;gap:6px}
 .tf-steps li{flex-direction:column;justify-content:center;text-align:center;gap:4px;padding:6px 4px;font-size:11px}
 .tf-num{width:20px;height:20px;font-size:11px}
 .tf-help{display:none}
 .tf-status{font-size:12.5px}
 .ir-layout{display:flex!important;flex-direction:column}
 .ir-layout>.ir-settings{order:1}.ir-layout>main.ir-pane{order:2}
 .pdfw-layout{display:flex!important;flex-direction:column}.pdfw-layout>.pdfw-settings{order:-1}
}
/* Before/after comparison and result stats (image & video tools). */
.cmp-wrap{display:grid;gap:10px;margin-bottom:12px}
.cmp{position:relative;border-radius:10px;overflow:hidden;background:repeating-conic-gradient(#222 0 25%,#2c2c2c 0 50%) 0 0/18px 18px;line-height:0}
.cmp img{display:block;width:100%;height:auto;max-height:420px;object-fit:contain}
.cmp .cmp-after{position:absolute;inset:0;height:100%;clip-path:inset(0 0 0 var(--pos,50%))}
.cmp::after{content:'';position:absolute;top:0;bottom:0;left:var(--pos,50%);width:2px;background:var(--y,#f5df32);box-shadow:0 0 0 1px #0007;pointer-events:none}
.cmp-tag{position:absolute;top:8px;padding:2px 8px;border-radius:6px;background:#000b;color:#fff;font-size:11px;font-weight:700;line-height:1.5}
.cmp-l{left:8px}.cmp-r{right:8px}
.cmp-range{display:grid;gap:4px;font-size:12px;color:var(--m,#a2a2a2)}.cmp-range input{width:100%;accent-color:var(--y,#f5df32)}
.cmp-stats{width:100%;border-collapse:collapse;font-size:13px}
.cmp-stats th,.cmp-stats td{padding:6px 8px;border-bottom:1px solid #2e2e2e;text-align:left}
.cmp-stats thead th{color:var(--m,#a2a2a2);font-weight:600;font-size:12px}
.cmp-stats tbody th{color:var(--m,#a2a2a2);font-weight:600}
.cmp-stats td b{color:var(--y,#f5df32)}
/* Utility extras: keyword list, palette, contrast. */
.tf-kw{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0;padding:0;list-style:none}
.tf-kw li{padding:3px 9px;border-radius:999px;border:1px solid #3a3a3a;font-size:12px}.tf-kw li b{color:var(--y,#f5df32);margin-left:4px}
.tf-swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:6px;margin:6px 0 10px}
.tf-swatches button{min-height:44px;border-radius:8px;border:1px solid #0006;font-size:10.5px;font-weight:700;padding:4px;cursor:pointer}
.tf-contrast{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;font-size:12.5px;margin-top:8px}
.tf-contrast span{padding:5px 8px;border-radius:7px;border:1px solid #333}.tf-contrast .ok{border-color:#2f7d4f;color:#8ff0b3}.tf-contrast .no{border-color:#7d2f2f;color:#ffb0b0}
.tf-err-line{color:#ffb4b4}
/* ===== Workspace layout: upload strip → options | more options | sticky preview & result ===== */
.tf-ws{display:grid;gap:14px;margin-top:12px;align-items:start}
.tf-col{min-width:0;display:grid;gap:12px;align-content:start;padding:12px;border:1px solid #2f2f2f;border-radius:12px;background:#121212}
.tf-col-h{margin:0;font-size:11px;font-weight:750;letter-spacing:.04em;text-transform:uppercase;color:var(--y,#f5df32)}
.tf-col>:is(section,aside,main,div,fieldset){margin-top:0!important}
.tf-col :is(.ir-pane,.media-card,.pdfw-settings,.pm-settings,.split-options,.split-plan,.format-options,.format-result){width:auto!important;max-width:none!important;position:static!important;margin:0!important}
.tf-col .ir-actions{position:static}
.tf-r{border-color:#3d3d22}
.tf-proc{display:grid;gap:8px;padding:12px;border-radius:10px;border:1px solid rgba(250,204,21,.45);background:rgba(250,204,21,.07)}
.tf-proc[hidden]{display:none}
.tf-proc-head{display:flex;align-items:center;gap:10px}
.tf-proc-text{margin:0;flex:1;font-size:13px;font-weight:650;color:var(--y,#facc15)}
.tf-proc-pct{font-size:18px;color:var(--y,#facc15);font-variant-numeric:tabular-nums}
.tf-spin{flex:none;width:22px;height:22px;border-radius:50%;border:3px solid rgba(250,204,21,.25);border-top-color:var(--y,#facc15);animation:tf-rot .8s linear infinite}
.tf-proc-bar{height:8px;border-radius:99px;background:rgba(250,204,21,.16);overflow:hidden}
.tf-proc-bar span{display:block;height:100%;width:0;background:var(--y,#facc15);transition:width .25s}
.tf-proc-bar.is-indeterminate span{width:35%!important;animation:tf-slide 1.1s ease-in-out infinite}
.tf-proc-tools{display:grid;gap:6px}.tf-proc-tools:empty{display:none}
.tf-proc-tools :is(progress,.pdfw-meter,.pm-progress){width:100%}
[data-tf-state=working] .tf-r .tf-proc~*:not(.tf-proc-tools){opacity:.45;transition:opacity .2s}
@keyframes tf-rot{to{transform:rotate(360deg)}}
@keyframes tf-slide{0%{transform:translateX(-100%)}100%{transform:translateX(300%)}}
@media (prefers-reduced-motion:reduce){.tf-spin,.tf-proc-bar.is-indeterminate span{animation:none}}
/* File chip: once a file is in, the upload area collapses to one line. */
.tf-chip{display:flex;align-items:center;gap:10px;min-width:0;width:100%;text-align:left}
.tf-chip-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}
.tf-chip-btn{flex:none;padding:6px 12px;font-size:12px;min-height:0}
.tf-upload.tf-has-file{padding:10px 14px!important;min-height:0!important;display:block!important}
.tf-upload.tf-has-file>:not(.tf-chip){display:none!important}
/* Mobile & tablet: Upload → Options → More options → Preview, one column. */
@media (max-width:1023px){
 .tf-ws{display:flex;flex-direction:column}
 .tf-col{padding:10px}
}
/* Desktop: options | more options | sticky preview. Columns never scroll inside themselves; the page scrolls. */
@media (min-width:1024px){
 .tf-bar{grid-template-columns:auto 1fr;align-items:center;padding:10px 14px;gap:6px 14px}
 .tf-bar .tf-steps{grid-column:1/-1}
 .tf-help{display:none}
 .tf-steps li{padding:6px 10px}
 .tf-upload{padding:12px 16px!important;min-height:0!important}
 .tf-upload:not(.tf-has-file) :is(h2,h3){font-size:16px;margin:0 0 4px}
 .tf-upload:not(.tf-has-file) p{margin:2px 0;font-size:12.5px}
 .tf-ws{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr)}
 .tf-ws.tf-two{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
 .tf-ws.tf-two>.tf-b{display:none}
 /* More options closed: it tucks under Options and the preview gets the extra width. */
 .tf-ws:not(.tf-two):has(>.tf-b.tf-closed){grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);grid-template-rows:auto 1fr}
 .tf-ws:has(>.tf-b.tf-closed)>.tf-a{grid-column:1;grid-row:1}
 .tf-ws:has(>.tf-b.tf-closed)>.tf-b{grid-column:1;grid-row:2}
 .tf-ws:has(>.tf-b.tf-closed)>.tf-r{grid-column:2;grid-row:1/span 2}
 .tf-r{position:sticky;top:96px}
 .tf-col .ir-preview{max-height:min(320px,calc(100vh - 360px))}
 /* Two-column tools (text, calculators, converters): inputs left, sticky result right. */
 .calc-grid>.calc-output,.uc-main>aside.uc-panel,.uw-grid>.uw-card:nth-child(2),.ats-workspace>section.panel:nth-child(2){position:sticky;top:96px}
 .media-grid:not(:has(.dropzone))>aside.media-card{position:sticky;top:96px}
 /* Screenshot editor: tools | settings | canvas on the right. */
 .tool-grid{grid-template-columns:170px 220px minmax(0,1fr)!important}
 .tool-grid>.toolbox{order:1}.tool-grid>aside.editor-panel:not(.toolbox){order:2}.tool-grid>main.canvas-wrap{order:3;position:sticky;top:96px}
}
.tf-proc:not([hidden])~.tf-proc-tools>:is(progress,.pdfw-meter,.pm-progress,.ir-queue-progress,.media-status,[data-status]){display:none!important}
.tf-chip-ico{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#2b2b14;color:var(--y,#f5df32)}
/* Option panels inside a workspace column are a single column; controls never overflow it. */
.tf-col :is(select,input:not([type=checkbox]):not([type=radio]),textarea){max-width:100%;min-width:0}
.tf-col .pdfw-actions{width:auto!important;flex-wrap:wrap}
/* Compact option columns: tighter spacing and two-column field grids, no inner scrollbars. */
.tf-col{gap:8px;padding:10px;overflow:visible}
.tf-col :is(.ir-pane,.media-card,.pdfw-settings,.pm-settings,.split-options,.split-plan,.format-options,.format-result){padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
.tf-col :is(label.field,.field){margin:0}
.tf-col :is(h2,h3,h4){margin:2px 0 0;font-size:14px}
.tf-col p:is(.ir-help,.hint,.muted,small){font-size:12px;margin:0}
.tf-a :is(.ir-settings,.pm-settings,.pdfw-settings,.split-options,.format-options,.media-fields),.tf-b :is(.ir-settings,.pm-settings,.pdfw-settings,.split-options,.format-options,.media-fields){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px 10px!important;align-items:end}
.tf-col :is(.ir-settings,.pm-settings,.pdfw-settings,.split-options,.format-options,.media-fields)>:not(label.field:has(>:is(select,input[type=number],input[type=text],input[type=color]))){grid-column:1/-1!important}
.tf-col :is(.ir-settings,.pm-settings,.pdfw-settings,.split-options,.format-options,.media-fields)>.ir-two{display:contents}
.tf-col :is(.ir-settings,.pm-settings,.pdfw-settings,.split-options,.format-options,.media-fields)>.ir-two>*{grid-column:auto!important}
.tf-b.tf-closed>:not(.tf-col-h){display:none!important}
.tf-b .tf-col-h{margin:0}
.tf-col .tf-more{all:unset;background:none!important;border:0!important;padding:2px 0!important;min-height:0!important;box-shadow:none!important;font-size:11px!important;font-weight:750!important;box-sizing:border-box;display:flex;width:100%;justify-content:space-between;align-items:center;cursor:pointer;font:inherit;color:var(--y,#facc15);text-transform:uppercase;letter-spacing:.04em}
.tf-col .tf-more span{transition:transform .2s}.tf-b:not(.tf-closed) .tf-col .tf-more span{transform:rotate(180deg)}
.tf-col .tf-more:focus-visible{outline:2px solid var(--y,#facc15);outline-offset:3px;border-radius:4px}
@media (max-width:420px){.tf-a :is(.ir-settings,.pm-settings,.pdfw-settings,.split-options,.format-options,.media-fields),.tf-b :is(.ir-settings,.pm-settings,.pdfw-settings,.split-options,.format-options,.media-fields){grid-template-columns:minmax(0,1fr)!important}}
.tf-ws>.tf-col{align-self:stretch}
/* Wide image workspace (Image Resizer, Image Compressor): all main options in one compact column,
   a large preview spanning the rest of the width. More options (advanced) tucks under the options. */
@media (min-width:1024px){
 .tf-ws.tf-wide,.tf-ws.tf-wide.tf-two,.tf-ws.tf-wide:not(.tf-two):has(>.tf-b.tf-closed){grid-template-columns:minmax(330px,390px) minmax(0,1fr);grid-template-rows:auto 1fr}
 .tf-ws.tf-wide>.tf-a{grid-column:1;grid-row:1}
 .tf-ws.tf-wide>.tf-b{grid-column:1;grid-row:2}
 .tf-ws.tf-wide>.tf-r{grid-column:2;grid-row:1/span 2}
 .tf-ws.tf-wide .iv-stage{height:clamp(300px,calc(100vh - 430px),720px)}
}
.tf-ws.tf-wide .tf-r .ir-pane{padding:0!important}
.tf-ws.tf-wide .ir-list{max-height:none!important;overflow:visible!important}
.tf-ws.tf-wide .size-target{margin:0;padding:8px 10px}
.tf-ws.tf-wide .size-chips{gap:5px}.tf-ws.tf-wide .size-chip{padding:4px 9px;font-size:12px;min-height:0}
.tf-ws.tf-wide .tf-r .media-result>img{display:none}
/* Compact option fields in the wide image workspace so every main option fits without inner scrolling. */
.tf-ws.tf-wide .tf-a{gap:8px}
.tf-ws.tf-wide .tf-col :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select){min-height:38px;padding:6px 10px;font-size:14px}
.tf-ws.tf-wide .tf-col :is(label.field,.media-label){gap:4px;font-size:13px}
.tf-ws.tf-wide .tf-col :is(.ir-help,.field-help){font-size:11.5px;line-height:1.4}
.tf-ws.tf-wide .tf-col .ir-h{margin:6px 0 0;font-size:13px}
.tf-ws.tf-wide .tf-r>.media-card>h2,.tf-ws.tf-wide .tf-r .media-card>h2{display:none}
.tf-ws.tf-wide .tf-r .media-result{gap:10px}
@media (min-width:1024px){.tf-ws.tf-wide>.tf-r{align-self:start}}
.tf-ws.tf-wide .tf-col :is(.ir-settings,.media-fields)>label.field:has(>select){grid-column:1/-1!important}
/* ===== Mobile & tablet (stacked, <1024px): Upload strip → Preview & result → Options → More options.
   Desktop (≥1024px) is untouched. The preview moves up once a file is loaded. ===== */
@media (max-width:1023px){
 .tf-ws>.tf-r{order:-1}.tf-ws>.tf-a{order:1}.tf-ws>.tf-b{order:2}
 [data-tf-state=idle] .tf-ws>.tf-r{order:3}
 .tf-ws,.tf-r,.tf-upload{scroll-margin-top:72px}
}
/* ===== Phones (<768px): compact text, controls and boxes. ===== */
@media (max-width:767px){
 body:has([data-tool]) .head h1{font-size:clamp(26px,8vw,34px);margin:8px 0}
 body:has([data-tool]) .head .lead{font-size:14px;line-height:1.45;margin:4px 0}
 body:has([data-tool]) .tool{padding:10px;font-size:13px;line-height:1.45}
 [data-tool] :is(h2,h3){font-size:15px;line-height:1.25;margin:4px 0}
 [data-tool] :is(label,.field,.media-label){font-size:12px}
 [data-tool] .field{gap:4px;margin:6px 0}
 [data-tool] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select){min-height:36px;padding:5px 9px;font-size:13px}
 [data-tool] textarea{font-size:13px;min-height:120px}
 [data-tool] :is(button,.btn){min-height:36px;padding:7px 12px;font-size:13px}
 [data-tool] :is(.chip,.size-chip,.tf-chip-btn,.tf-reset){min-height:32px;padding:4px 9px;font-size:12px}
 [data-tool] p:is(.hint,.muted,.ir-help,.field-help,.tf-accept),[data-tool] small{font-size:11.5px}
 .tf-bar{margin:0 0 8px;padding:6px 8px;gap:4px;border-radius:10px}
 .tf-steps{gap:4px}
 .tf-steps li{flex-direction:row;padding:4px 6px;gap:5px;font-size:10.5px;border-radius:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .tf-num{width:17px;height:17px;font-size:10px}
 .tf-status{font-size:11.5px;padding-left:14px}.tf-status::before{width:7px;height:7px}
 .tf-ws{gap:8px;margin-top:8px}
 .tf-col{padding:8px;gap:6px;border-radius:10px}
 .tf-col-h,.tf-col .tf-more{font-size:10.5px!important}
 [data-tf-step]{margin-top:10px}
 [data-tf-step]::before{font-size:9.5px;top:-8px}
 .tf-upload:not(.tf-has-file){padding:12px!important;min-height:0!important}
 .tf-upload:not(.tf-has-file) :is(h2,h3){font-size:14px;margin:0 0 2px}
 .tf-upload:not(.tf-has-file) p{font-size:12px;margin:2px 0}
 .tf-upload.tf-has-file{padding:6px 10px!important}
 .tf-chip{gap:8px;font-size:12.5px}.tf-chip-ico{width:24px;height:24px}
 .tf-proc{padding:8px;gap:6px}.tf-proc-text{font-size:12px}.tf-proc-pct{font-size:15px}
 .tf-ws.tf-wide .tf-col :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select){min-height:36px;font-size:13px}
 .tf-ws.tf-wide .tf-col :is(label.field,.media-label){font-size:12px}
 .tf-ws.tf-wide .size-chip{padding:3px 8px;font-size:11.5px}
 .cmp-stats{font-size:12px}.cmp-stats th,.cmp-stats td{padding:4px 6px}
 .tf-swatches button{min-height:36px}
}
@media (max-width:767px){.tf-a :is(.ir-settings,.pm-settings,.pdfw-settings,.split-options,.format-options,.media-fields),.tf-b :is(.ir-settings,.pm-settings,.pdfw-settings,.split-options,.format-options,.media-fields){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px 8px!important}}

/* ===== Round 2 (mobile/tablet <1024px only; desktop untouched) ===== */
@media (max-width:1023px){
 /* Preview & result appears only once a file is added. */
 [data-tf-state=idle] .tf-ws>.tf-r{display:none!important}
 /* Nothing may overflow its card: border-box, shrinkable children, wrapping text. */
 [data-tool],.tf-bar{max-width:100%;box-sizing:border-box}
 [data-tool] :is(input,select,textarea,button,.btn,fieldset,table,img,canvas,video,pre){box-sizing:border-box;max-width:100%}
 [data-tool] :is(div,label,section,aside,main,fieldset,form,article,details,li,p,span){min-width:0}
 [data-tool] :is(p,label,legend,li,td,th,dd,dt,small,b,strong,span,a,h2,h3,h4,summary,code){overflow-wrap:anywhere}
 [data-tool] :is(button,.btn,a.btn){white-space:normal;overflow-wrap:anywhere;height:auto;text-overflow:clip;line-height:1.25}
 [data-tool] :is(.ir-row,.ir-actions,.media-actions,.pdfw-actions,.pm-actions,.pm-bar,.size-chips,.size-row,.iv-seg,.iv-zoom,.iv-actions,.calc-actions,.actions,.row,.tf-status-row){flex-wrap:wrap;min-width:0}
 [data-tool] table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
 [data-tool] pre{overflow-x:auto}
 .tf-steps li{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.2;align-items:center;min-width:0}
 .tf-chip{min-width:0;flex-wrap:wrap}.tf-chip-name{min-width:0;overflow-wrap:anywhere}
 /* Image Resizer = Image Compressor layout: File type & file size → Pixel size → queue (only with 2+ files) → More options. */
 .tf-ws[data-recipe=ir]>.tf-a{display:flex;flex-direction:column}
 .tf-ws[data-recipe=ir]>.tf-a>.tf-col-h{order:-2}
 .tf-ws[data-recipe=ir]>.tf-a>.ir-settings{order:1}
 .tf-ws[data-recipe=ir]>.tf-a>aside.ir-pane:not(.ir-settings){order:2}
 .tf-ws[data-recipe=ir]>.tf-a>aside.ir-pane:not(.ir-settings):not(:has(.ir-list>:nth-child(2))){display:none!important}
 .tf-ws[data-recipe=ir] .tf-a .ir-settings>.tf-m-first{order:-1}
 .tf-ws[data-recipe=ir] .tf-hn{display:none}
 .tf-ws[data-recipe=ir] .ir-actions [data-cancel]:disabled{display:none}
}
/* Phones: smaller tool text so labels and buttons fit without cutting. */
@media (max-width:767px){
 body:has([data-tool]) .tool,[data-tool]{font-size:12.5px}
 [data-tool] :is(label,.field,.media-label,legend,.editor-field),.tf-ws.tf-wide .tf-col :is(label.field,.media-label){font-size:11.5px}
 [data-tool] p:is(.hint,.muted,.ir-help,.field-help,.tf-accept,.status),[data-tool] small,[data-tool] .ir-help{font-size:11.5px}
 [data-tool] :is(button,.btn){font-size:12.5px;padding:6px 10px}
 [data-tool] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select),.tf-ws.tf-wide .tf-col :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select){font-size:12.5px}
 [data-tool] :is(h2,h3){font-size:14px}
 .tf-steps li{font-size:10px;padding:4px 5px;gap:4px}
}
/* Ads never sit inside the tool workspace (between preview and options); placed units live above/below it. */
[data-tool-workspace] :is(.google-auto-placed,ins.adsbygoogle:not(.ad-placement ins)),[data-tool] :is(.google-auto-placed,ins.adsbygoogle){display:none!important}
@media (max-width:1023px){[data-tool] input[type=range]{margin-inline:0;width:100%;max-width:100%}}
