/* ===== OWN COPY of the shared theme.css + tool.css rules this tool uses (rule 171, separation plan P3, 2026-10-25) =====
   Copied from theme  by devkit/sep.js (rules that match this box in every state + the class names its own scripts add),
   every selector scoped to :where(#th-tool[data-module="img-convert"] *). The shared files no longer reach inside this box (data-own).
   Change these rules only for THIS tool, in its own chat. ===== */
/* theme.css copy */
:root:where(#th-tool[data-module="img-convert"] *){
  --bg:#FAFAFC; --surface:#FFFFFF; --surface-2:#F2F3F8; --ink:#0B1020; --muted:#5B6275; --line:#E4E6EE;
  --brand:#4338CA; --brand-2:#4F46E5; --brand-ink:#3730A3; --brand-soft:#EEF0FF; --on-brand:#FFFFFF;
  --ai:#7C3AED; --ai-ink:#6D28D9; --ai-soft:#F4EFFF; --blue:#2563EB;
  --grad:linear-gradient(135deg,#2563EB 0%,#4F46E5 45%,#7C3AED 100%);
  --warn:#9A4A07; --ok:#1B6B3A;
  --shadow:0 1px 2px rgba(11,16,32,.04),0 4px 16px rgba(11,16,32,.05);
  --shadow-lg:0 2px 4px rgba(11,16,32,.04),0 24px 60px rgba(11,16,32,.10);
  --radius:16px; --radius-sm:10px;
  --font:'Geist','Geist Variable',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  --serif:'Instrument Serif',ui-serif,Georgia,serif;
  --mono:'Geist Mono','Geist Mono Variable',ui-monospace,SFMono-Regular,Menlo,monospace;
  --dot:rgba(11,16,32,.06); --glow-a:rgba(37,99,235,.14); --glow-b:rgba(124,58,237,.14);
  --stripe:rgba(11,16,32,.035);
  color-scheme:light;
}
:root[data-theme="dark"]:where(#th-tool[data-module="img-convert"] *){
  --bg:#07090F; --surface:#0E121B; --surface-2:#161B27; --ink:#EEF0F6; --muted:#9AA3B8; --line:#212738;
  --brand:#6366F1; --brand-2:#4F46E5; --brand-ink:#A5B4FC; --brand-soft:#171A36; --on-brand:#FFFFFF;
  --ai:#8B5CF6; --ai-ink:#C4B5FD; --ai-soft:#1C1733; --blue:#60A5FA;
  --grad:linear-gradient(135deg,#60A5FA 0%,#818CF8 45%,#C084FC 100%);
  --shadow:0 1px 0 rgba(255,255,255,.03) inset,0 1px 2px rgba(0,0,0,.5),0 8px 24px rgba(0,0,0,.35);
  --shadow-lg:0 1px 0 rgba(255,255,255,.04) inset,0 24px 60px rgba(0,0,0,.55);
  --dot:rgba(255,255,255,.045); --glow-a:rgba(59,130,246,.22); --glow-b:rgba(139,92,246,.24);
  --stripe:rgba(255,255,255,.035);
  color-scheme:dark;
}@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]):where(#th-tool[data-module="img-convert"] *){
  --bg:#07090F; --surface:#0E121B; --surface-2:#161B27; --ink:#EEF0F6; --muted:#9AA3B8; --line:#212738;
  --brand:#6366F1; --brand-2:#4F46E5; --brand-ink:#A5B4FC; --brand-soft:#171A36; --on-brand:#FFFFFF;
  --ai:#8B5CF6; --ai-ink:#C4B5FD; --ai-soft:#1C1733; --blue:#60A5FA;
  --grad:linear-gradient(135deg,#60A5FA 0%,#818CF8 45%,#C084FC 100%);
  --shadow:0 1px 0 rgba(255,255,255,.03) inset,0 1px 2px rgba(0,0,0,.5),0 8px 24px rgba(0,0,0,.35);
  --shadow-lg:0 1px 0 rgba(255,255,255,.04) inset,0 24px 60px rgba(0,0,0,.55);
  --dot:rgba(255,255,255,.045); --glow-a:rgba(59,130,246,.22); --glow-b:rgba(139,92,246,.24);
  --stripe:rgba(255,255,255,.035);
  color-scheme:dark;
  }}
:root:where(#th-tool[data-module="img-convert"] *){
  /* spacing scale (4 px steps) */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px; --sp-7:32px; --sp-8:40px;
  /* what the spacing is for */
  --gap-label:6px;      /* label → its box, box → its hint line */
  --gap-msg:12px;       /* v1.40: a box → the message or hint under it — the smallest space between two different things */
  --gap-min:8px;        /* v1.40: the absolute minimum between any two boxes, buttons or messages (the spacing check fails below it) */
  --gap-item:12px;      /* items in a list, choice cards in a box */
  --gap-grid:16px;      /* boxes/cards side by side */
  --gap-block:20px;     /* blocks inside one part of a tool (input → result → check) */
  --gap-section:22px;   /* main parts of a tool card */
  --sec-pad:26px;       /* space above a new part that starts with a divider line */
  --pad-box:16px;       /* inside a bordered box */
  --pad-card:12px 14px; /* inside a small choice card */
  --pad-result:24px 26px; /* inside the big result panel */
  --r-box:16px; --r-card:12px; --r-btn:12px; --r-pill:999px;
  --tap:44px;           /* smallest thing a finger has to hit */
  --h-btn:44px;         /* v1.39.1 THE button height (owner rule: every normal button is this tall — never set a custom height) */
  --h-btn-sm:36px;      /* small buttons in tool toolbars (.btn.sm) */
  --pad-field:14px 16px; /* inside every text box and output panel: text never touches a border */
  /* type scale = the Word Counter / Case Converter / KM to Miles standard; never bigger */
  --fs-meta:12.5px;     /* counts, small notes */
  --fs-label:13px;      /* field labels, box titles, hints */
  --fs-sm:14px;         /* checklist lines, choice text */
  --fs-body:15px;       /* sentences, buttons, part titles */
  --fs-input:20px;      /* the main text box */
  --fs-slug:22px;       /* one-line mono result */
  --fs-result:clamp(30px,3vw,36px); /* big number result (v1.37: was up to 48 px — owner: too big) */
  /* v1.37 ToolHa type standard (owner 2026-09-30): nothing bigger than these, no text smaller than --fs-min */
  --fs-hero:clamp(36px,5vw,60px);  /* ONE big hero title per landing page (home, All tools, A–Z, company pages) */
  --fs-h1:clamp(30px,3.4vw,42px);  /* page / tool title */
  --fs-h2:clamp(22px,2.2vw,28px);  /* section titles */
  --fs-h3:clamp(17px,1.5vw,19px);  /* v1.41.3: a smaller title for an optional part inside a tool (between --fs-h2 and a box title) */
  --fs-min:12.5px;                 /* smallest normal text (notes, units, counts) */
  --fs-tag:12px;                   /* only UPPERCASE labels, badges and number pins */
  --lh-tight:1.35; --lh-text:1.5;
}@media (width <= 768px){
:root:where(#th-tool[data-module="img-convert"] *){--pad-field:12px 14px;--gap-grid:14px;--gap-block:16px;--gap-section:18px;--sec-pad:22px;--pad-box:14px;--pad-result:20px;--fs-slug:19px}}
*:where(#th-tool[data-module="img-convert"] *){box-sizing:border-box}
html:where(#th-tool[data-module="img-convert"] *){-webkit-text-size-adjust:100%}
body:where(#th-tool[data-module="img-convert"] *){margin:0;font-family:var(--font);background:var(--bg);color:var(--ink);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
a:where(#th-tool[data-module="img-convert"] *){color:var(--brand-ink);text-decoration:none}
a:hover:where(#th-tool[data-module="img-convert"] *){text-decoration:underline;text-underline-offset:3px}
h1:where(#th-tool[data-module="img-convert"] *),h2:where(#th-tool[data-module="img-convert"] *),h3:where(#th-tool[data-module="img-convert"] *){line-height:1.1;letter-spacing:-.02em;margin:0}
p:where(#th-tool[data-module="img-convert"] *){margin:0}
button:where(#th-tool[data-module="img-convert"] *),input:where(#th-tool[data-module="img-convert"] *),select:where(#th-tool[data-module="img-convert"] *),textarea:where(#th-tool[data-module="img-convert"] *){font:inherit;color:inherit}
:focus-visible:where(#th-tool[data-module="img-convert"] *){outline:3px solid color-mix(in srgb,var(--ai) 55%,transparent);outline-offset:2px;border-radius:6px}
.wrap:where(#th-tool[data-module="img-convert"] *){max-width:1280px;margin:0 auto;padding:0 32px}
.muted:where(#th-tool[data-module="img-convert"] *){color:var(--muted)}
.btn:where(#th-tool[data-module="img-convert"] *){height:var(--h-btn);padding:0 18px;border-radius:12px;border:1px solid transparent;display:inline-flex;align-items:center;gap:8px;font-weight:650;cursor:pointer;font-size:15px}
:root:where(#th-tool[data-module="img-convert"] *){
  --btn-grad:linear-gradient(120deg,var(--brand-2) 0%,var(--ai) 100%);
  /* v1.35 main typing box (see tool.css "v1.35"): same height as the homepage search box (76 px, 72 px on phones) */
  --h-main:76px;--r-main:20px;
  --field-ring:linear-gradient(120deg,var(--brand-2) 0%,var(--ai) 100%);
  --field-glow:0 6px 22px -10px color-mix(in srgb,var(--ai) 45%,transparent);
  --field-glow-hover:0 8px 28px -10px color-mix(in srgb,var(--ai) 60%,transparent);
  --btn-grad-hover:linear-gradient(120deg,color-mix(in srgb,var(--brand-2) 40%,var(--ai)) 0%,color-mix(in srgb,var(--ai) 88%,#fff) 100%);
  --btn-glow:0 6px 18px -9px color-mix(in srgb,var(--ai) 60%,transparent);
  --btn-glow-hover:0 10px 26px -9px color-mix(in srgb,var(--ai) 85%,transparent);
  --btn-glow-press:0 3px 10px -6px color-mix(in srgb,var(--ai) 70%,transparent);
  --btn2-border:color-mix(in srgb,var(--brand) 24%,var(--line));
  --btn2-border-hover:color-mix(in srgb,var(--brand) 55%,var(--line));
  --btn2-bg-hover:color-mix(in srgb,var(--brand) 5%,var(--surface));
  --btn2-shade:0 8px 20px -12px color-mix(in srgb,var(--brand) 60%,transparent);
}
.btn:where(#th-tool[data-module="img-convert"] *){transition:border-color .3s ease,background-color .3s ease,box-shadow .3s ease,color .2s ease}
.btn-brand:where(#th-tool[data-module="img-convert"] *){position:relative;isolation:isolate;border-color:transparent;color:#fff;background:var(--btn-grad) border-box;box-shadow:var(--btn-glow);filter:none}
.btn-brand:where(#th-tool[data-module="img-convert"] *)::before{content:"";position:absolute;inset:-1px;z-index:-1;border-radius:inherit;pointer-events:none;background:var(--btn-grad-hover);opacity:0;transition:opacity .35s ease}
.btn-brand:hover:where(#th-tool[data-module="img-convert"] *){text-decoration:none;filter:none;box-shadow:var(--btn-glow-hover)}
.btn-brand:hover:where(#th-tool[data-module="img-convert"] *)::before{opacity:1}
.btn-brand:active:where(#th-tool[data-module="img-convert"] *){box-shadow:var(--btn-glow-press)}
.btn-ghost:where(#th-tool[data-module="img-convert"] *){background:var(--surface);border-color:var(--btn2-border);color:var(--ink);box-shadow:0 1px 2px rgba(11,16,32,.04)}
.btn-ghost:hover:where(#th-tool[data-module="img-convert"] *){text-decoration:none;background:var(--btn2-bg-hover);border-color:var(--btn2-border-hover);box-shadow:var(--btn2-shade)}
.btn[disabled]:where(#th-tool[data-module="img-convert"] *)::before{display:none}@media (prefers-reduced-motion:reduce){
.btn:where(#th-tool[data-module="img-convert"] *),.btn:where(#th-tool[data-module="img-convert"] *)::before{transition:none}}
body:has(>.hdr):where(#th-tool[data-module="img-convert"] *)::before{content:"";position:absolute;left:0;right:0;top:0;height:760px;z-index:-1;pointer-events:none;background-image:linear-gradient(var(--dot) 1px,transparent 1px),linear-gradient(90deg,var(--dot) 1px,transparent 1px);background-size:56px 56px;background-position:50% -1px;-webkit-mask-image:radial-gradient(ellipse 75% 100% at 50% 0%,#000 35%,transparent 80%);mask-image:radial-gradient(ellipse 75% 100% at 50% 0%,#000 35%,transparent 80%)}@media (width <= 768px){
body:has(>.hdr):where(#th-tool[data-module="img-convert"] *)::before{height:560px;-webkit-mask-image:linear-gradient(#000 45%,transparent);mask-image:linear-gradient(#000 45%,transparent)}}@media print{
body:where(#th-tool[data-module="img-convert"] *)::before{display:none!important;content:none!important}}
.card:where(#th-tool[data-module="img-convert"] *){background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.inp:where(#th-tool[data-module="img-convert"] *){height:46px;border:1px solid var(--line);border-radius:12px;padding:0 14px;background:var(--surface);font-size:16px;width:100%}
textarea.inp:where(#th-tool[data-module="img-convert"] *){height:auto;padding:var(--pad-field);line-height:var(--lh-text)}
.inp:focus:where(#th-tool[data-module="img-convert"] *){outline:none;border-color:var(--ai);box-shadow:0 0 0 4px color-mix(in srgb,var(--ai) 18%,transparent)}
select.inp:where(#th-tool[data-module="img-convert"] *){appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 18px) 20px,calc(100% - 13px) 20px;background-size:5px 5px;background-repeat:no-repeat;padding-right:36px}@media (width <= 1024px){
.wrap:where(#th-tool[data-module="img-convert"] *){padding:0 18px}}@media (width <= 768px){
body:where(#th-tool[data-module="img-convert"] *){padding-bottom:68px}}@media (width <= 576px){
:root:where(#th-tool[data-module="img-convert"] *){--h-main:72px}}
[hidden]:where(#th-tool[data-module="img-convert"] *){display:none!important}
:root:where(#th-tool[data-module="img-convert"] *){--acc0:#7C3AED;--acc1:#2563EB;--acc2:#0D9488;--acc3:#D97706;--acc4:#DB2777;--acc5:#059669}
:root[data-theme="dark"]:where(#th-tool[data-module="img-convert"] *){--acc0:#8B5CF6;--acc1:#60A5FA;--acc2:#2DD4BF;--acc3:#FBBF24;--acc4:#F472B6;--acc5:#34D399}@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]):where(#th-tool[data-module="img-convert"] *){--acc0:#8B5CF6;--acc1:#60A5FA;--acc2:#2DD4BF;--acc3:#FBBF24;--acc4:#F472B6;--acc5:#34D399}}
small:where(#th-tool[data-module="img-convert"] *){font-size:max(var(--fs-min),.85em)}
.btn:not(.tool-actions .btn):where(#th-tool[data-module="img-convert"] *){height:auto!important;min-height:var(--h-btn);padding-top:8px;padding-bottom:8px;line-height:1.25}
.btn.sm:not(.tool-actions .btn):where(#th-tool[data-module="img-convert"] *){height:auto!important;min-height:var(--h-btn-sm);padding-top:6px;padding-bottom:6px}
html:where(#th-tool[data-module="img-convert"] *),body:where(#th-tool[data-module="img-convert"] *){overflow-x:clip}@supports (appearance:base-select){
html select:not([multiple]):not([size]):where(#th-tool[data-module="img-convert"] *),html select:not([multiple]):not([size]):where(#th-tool[data-module="img-convert"] *)::picker(select){appearance:base-select}
html select:not([multiple]):not([size]):where(#th-tool[data-module="img-convert"] *){align-items:center}
html select:not([multiple]):not([size]):where(#th-tool[data-module="img-convert"] *)::picker-icon{display:none}
html select:not([multiple]):not([size]):where(#th-tool[data-module="img-convert"] *)::picker(select){
    box-sizing:border-box;min-inline-size:anchor-size(self-inline);
    max-inline-size:min(calc(100% - 16px),max(anchor-size(self-inline),20rem));
    max-block-size:min(24rem,calc(100dvh - 16px));overflow:auto;overscroll-behavior:contain;
    position-area:var(--th-pick-area,block-end span-all);justify-self:anchor-center;margin:4px 8px;padding:4px;border:1px solid var(--line);border-radius:12px;
    background:var(--surface);color:var(--ink);box-shadow:0 12px 32px rgba(15,23,42,.18);
    position-try-order:normal;position-try-fallbacks:flip-block,--th-pick-fit}
html select:not([multiple]):not([size]) option:where(#th-tool[data-module="img-convert"] *){
    padding:8px 10px;border-radius:8px;white-space:normal;overflow-wrap:anywhere;line-height:1.35;gap:8px;min-block-size:36px}
html select:not([multiple]):not([size]) option:is(:hover,:focus-visible):where(#th-tool[data-module="img-convert"] *){background:color-mix(in srgb,var(--brand) 10%,transparent);outline:none}
html select:not([multiple]):not([size]) option:checked:where(#th-tool[data-module="img-convert"] *){background:color-mix(in srgb,var(--brand) 16%,transparent);color:var(--brand-ink);font-weight:600}
html select:not([multiple]):not([size]) option:disabled:where(#th-tool[data-module="img-convert"] *){opacity:.5}
html select:not([multiple]):not([size]) optgroup:where(#th-tool[data-module="img-convert"] *){font-weight:700;padding-block:4px}
html select:not([multiple]):not([size]) option:where(#th-tool[data-module="img-convert"] *)::checkmark{color:var(--brand-ink)}}
/* tool.css copy */
:root:where(#th-tool[data-module="img-convert"] *){--h-drop:17.5rem}
.t-drop:where(#th-tool[data-module="img-convert"] *){position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--gap-item);min-height:var(--h-drop);padding:var(--pad-result);border:2px dashed color-mix(in srgb,var(--brand) 45%,var(--line));border-radius:var(--r-card);background:color-mix(in srgb,var(--brand) 4%,var(--surface));text-align:center;cursor:pointer;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}
.t-drop[hidden]:where(#th-tool[data-module="img-convert"] *){display:none}
.t-drop:hover:where(#th-tool[data-module="img-convert"] *),.t-drop.is-drag:where(#th-tool[data-module="img-convert"] *){border-color:var(--brand);border-style:solid;background:color-mix(in srgb,var(--brand) 10%,var(--surface))}
.t-drop:focus-visible:where(#th-tool[data-module="img-convert"] *){outline:none;border-color:var(--brand);border-style:solid;box-shadow:var(--field-glow-hover)}
.t-drop-i:where(#th-tool[data-module="img-convert"] *){transition:transform .2s ease}
.t-drop:hover .t-drop-i:where(#th-tool[data-module="img-convert"] *),.t-drop.is-drag .t-drop-i:where(#th-tool[data-module="img-convert"] *){transform:translateY(-3px) scale(1.03)}@media (prefers-reduced-motion:reduce){
.t-drop-i:where(#th-tool[data-module="img-convert"] *){transition:none}
.t-drop:hover .t-drop-i:where(#th-tool[data-module="img-convert"] *),.t-drop.is-drag .t-drop-i:where(#th-tool[data-module="img-convert"] *){transform:none}}
.tool:where(#th-tool[data-module="img-convert"] *){padding:24px;display:flex;flex-direction:column;gap:18px;position:relative;border-radius:24px}
.tool:where(#th-tool[data-module="img-convert"] *)::before{content:"";position:absolute;inset:-1px;border-radius:25px;padding:1px;background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 55%,transparent),transparent 35%,transparent 65%,color-mix(in srgb,var(--ai) 55%,transparent));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}@media (width <= 1024px){
.tool:where(#th-tool[data-module="img-convert"] *){padding:16px}}
.tool-zone:where(#th-tool[data-module="img-convert"] *){padding-bottom:8px}
.tool:where(#th-tool[data-module="img-convert"] *){padding:22px 24px 20px;gap:16px}
.inp.sm:where(#th-tool[data-module="img-convert"] *){height:36px;font-size:14px;padding:0 34px 0 12px;width:auto;border-radius:10px;background-position:calc(100% - 16px) 16px,calc(100% - 11px) 16px}
.btn.sm:where(#th-tool[data-module="img-convert"] *){height:var(--h-btn-sm);padding:0 12px;font-size:14px;border-radius:10px}
#th-tool .t-fullrow:where(#th-tool[data-module="img-convert"] *){grid-column:1/-1!important;flex:1 1 100%!important;max-width:100%!important;min-width:0}
#th-tool .t-selw:where(#th-tool[data-module="img-convert"] *){display:contents}
#th-tool .t-selw.on:where(#th-tool[data-module="img-convert"] *){display:grid;min-width:0;max-width:100%}
#th-tool .t-selw.on>select:where(#th-tool[data-module="img-convert"] *){grid-area:1/1;width:100%!important;max-width:100%!important;height:auto!important;color:transparent!important;-webkit-text-fill-color:transparent;text-shadow:none}
#th-tool .t-selw.on>select option:where(#th-tool[data-module="img-convert"] *){color:var(--ink);-webkit-text-fill-color:var(--ink)}
#th-tool .t-selt:where(#th-tool[data-module="img-convert"] *){display:none}
#th-tool .t-selw.on>.t-selt:where(#th-tool[data-module="img-convert"] *){display:block;grid-area:1/1;align-self:center;min-width:0;pointer-events:none;white-space:normal;overflow-wrap:anywhere;text-align:start;z-index:1}
#th-tool .t-fullrow select:where(#th-tool[data-module="img-convert"] *),#th-tool select.t-fullrow:where(#th-tool[data-module="img-convert"] *){width:100%;max-width:100%}
#th-tool:where(#th-tool[data-module="img-convert"] *){overflow-wrap:break-word}@media (width <= 576px){
.tool:where(#th-tool[data-module="img-convert"] *){padding:16px}}
.tool-hero:where(#th-tool[data-module="img-convert"] *){position:relative;overflow-x:clip;padding-bottom:30px}
.tool-hero:where(#th-tool[data-module="img-convert"] *)::after{content:"";position:absolute;left:50%;top:120px;width:900px;max-width:100%;height:360px;transform:translateX(-50%);background:radial-gradient(closest-side at 35% 50%,var(--glow-a),transparent 70%),radial-gradient(closest-side at 65% 50%,var(--glow-b),transparent 70%);filter:blur(24px);opacity:.8;pointer-events:none}
.tool-hero>.wrap:where(#th-tool[data-module="img-convert"] *){position:relative;z-index:1}
.tool-zone .tool:where(#th-tool[data-module="img-convert"] *){max-width:1040px;margin:0 auto;background:var(--surface);box-shadow:var(--shadow-lg)}
.tool-zone .tool:where(#th-tool[data-module="img-convert"] *){transition:box-shadow .25s}
.tool-zone .tool:focus-within:where(#th-tool[data-module="img-convert"] *){box-shadow:var(--shadow-lg),0 0 0 4px color-mix(in srgb,var(--brand) 14%,transparent)}@media print{
html:root:where(#th-tool[data-module="img-convert"] *),html:root[data-theme="dark"]:where(#th-tool[data-module="img-convert"] *),html:root:not([data-theme="light"]):where(#th-tool[data-module="img-convert"] *){--bg:#fff;--surface:#fff;--surface-2:#F3F4F6;--ink:#111;--muted:#4B5563;--line:#D1D5DB;--brand-soft:#EEF0FF;--brand-ink:#3730A3;color-scheme:light}
body:where(#th-tool[data-module="img-convert"] *){background:#fff!important;color:#111}
dialog:where(#th-tool[data-module="img-convert"] *){display:none!important}
.tool-hero:where(#th-tool[data-module="img-convert"] *){background:none!important;padding:0!important}
.tool:where(#th-tool[data-module="img-convert"] *){box-shadow:none!important;border:1px solid #D1D5DB!important;break-inside:auto}
.tool :is(tr,li,figure,img,svg,canvas,.t-msg,.t-btnrow,.uc-thermo):where(#th-tool[data-module="img-convert"] *){break-inside:avoid}
.tool :is(h2,h3,h4,legend,summary,label,thead,.t-bx-h,.t-sec-h):where(#th-tool[data-module="img-convert"] *){break-after:avoid}
body:where(#th-tool[data-module="img-convert"] *){padding-bottom:0!important}
.tool-zone:where(#th-tool[data-module="img-convert"] *){padding-bottom:0!important}
.tool .btn:where(#th-tool[data-module="img-convert"] *){display:none!important}
details:not([open])>*:not(summary):where(#th-tool[data-module="img-convert"] *){display:none}
a:where(#th-tool[data-module="img-convert"] *){color:inherit;text-decoration:none}}@media print{
.tool:where(#th-tool[data-module="img-convert"] *)::before,.tool:where(#th-tool[data-module="img-convert"] *)::after,.tool-hero:where(#th-tool[data-module="img-convert"] *)::after{display:none!important;content:none!important}}
.t-stack:not([hidden]):where(#th-tool[data-module="img-convert"] *){display:flex;flex-direction:column;gap:var(--gap-block)}
.t-box:where(#th-tool[data-module="img-convert"] *){margin:0;min-width:0;border:1px solid var(--line);border-radius:var(--r-box);padding:var(--pad-box);background:var(--surface);display:flex;flex-direction:column;gap:var(--gap-item)}
.t-box>legend:where(#th-tool[data-module="img-convert"] *){float:left;width:100%;padding:0;margin:0 0 var(--gap-item);font-size:var(--fs-label);font-weight:650;color:var(--ink)}
.t-bx>legend:where(#th-tool[data-module="img-convert"] *){margin-bottom:0;font-size:var(--fs-body);font-weight:700}
.t-bx>legend small:where(#th-tool[data-module="img-convert"] *){display:block;margin-top:2px;font-size:var(--fs-label);font-weight:400;line-height:var(--lh-text);color:var(--muted)}
.t-bx-b:where(#th-tool[data-module="img-convert"] *){display:flex;flex-direction:column;gap:var(--gap-block);min-width:0}
.t-tone:where(#th-tool[data-module="img-convert"] *){--tone:var(--brand);border-color:color-mix(in srgb,var(--tone) 40%,var(--line));border-top:5px solid var(--tone);background:color-mix(in srgb,var(--tone) 8%,var(--surface))}
.t-tone>legend:where(#th-tool[data-module="img-convert"] *){color:color-mix(in srgb,var(--tone) 62%,var(--ink))}
.t-tone>legend small:where(#th-tool[data-module="img-convert"] *){color:var(--muted)}
.t-tone>legend:where(#th-tool[data-module="img-convert"] *)::before{content:"";display:inline-block;width:10px;height:10px;margin-right:8px;border-radius:50%;background:var(--tone)}
.t-tone-0:where(#th-tool[data-module="img-convert"] *){--tone:var(--acc0)}
.t-tone-1:where(#th-tool[data-module="img-convert"] *){--tone:var(--acc1)}
.t-tone-2:where(#th-tool[data-module="img-convert"] *){--tone:var(--acc2)}
.t-tone-5:where(#th-tool[data-module="img-convert"] *){--tone:var(--acc5)}
.t-choice:where(#th-tool[data-module="img-convert"] *){display:flex;align-items:flex-start;gap:var(--sp-3);min-height:var(--tap);padding:var(--pad-card);border:1.5px solid var(--line);border-radius:var(--r-card);background:var(--surface-2);cursor:pointer;font-size:var(--fs-sm);line-height:var(--lh-tight);transition:border-color .15s,background-color .15s}
.t-choice:hover:where(#th-tool[data-module="img-convert"] *){border-color:color-mix(in srgb,var(--brand) 45%,var(--line))}
.t-choice:has(input:checked):where(#th-tool[data-module="img-convert"] *){border-color:var(--brand);background:color-mix(in srgb,var(--brand) 9%,var(--surface))}
.t-choice>input:where(#th-tool[data-module="img-convert"] *){flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:var(--brand)}
.t-hint:where(#th-tool[data-module="img-convert"] *){display:block;margin-top:var(--gap-label);font-size:var(--fs-label);color:var(--muted)}
.t-msg:where(#th-tool[data-module="img-convert"] *){margin:0;padding:10px 14px;border-radius:var(--r-card);font-size:var(--fs-sm);font-weight:600;line-height:var(--lh-text);color:var(--warn);background:color-mix(in srgb,var(--warn) 9%,var(--surface));border:1px solid color-mix(in srgb,var(--warn) 30%,var(--line))}
.t-msg.is-info:where(#th-tool[data-module="img-convert"] *){color:var(--ink);background:var(--brand-soft);border-color:color-mix(in srgb,var(--brand) 25%,var(--line))}
.t-msg[hidden]:where(#th-tool[data-module="img-convert"] *){display:none}
:root[data-theme="dark"] .t-msg:where(#th-tool[data-module="img-convert"] *){color:color-mix(in srgb,var(--warn) 40%,#fff)}
:root[data-theme="dark"] .t-msg.is-info:where(#th-tool[data-module="img-convert"] *){color:var(--ink)}@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]) .t-msg:where(#th-tool[data-module="img-convert"] *){color:color-mix(in srgb,var(--warn) 40%,#fff)}
:root:not([data-theme="light"]) .t-msg.is-info:where(#th-tool[data-module="img-convert"] *){color:var(--ink)}}
.tool :is(input,textarea):where(#th-tool[data-module="img-convert"] *)::placeholder{color:color-mix(in srgb,var(--muted) 70%,transparent);opacity:1;font-weight:400;font-size:max(12px,.875em);letter-spacing:0}
:root:where(#th-tool[data-module="img-convert"] *){--glow-card:0 16px 36px -20px color-mix(in srgb,var(--ai) 50%,transparent),0 1px 2px rgba(11,16,32,.04)}
.btn-block:where(#th-tool[data-module="img-convert"] *){width:100%;justify-content:center}
.ag-i:where(#th-tool[data-module="img-convert"] *){flex:none;display:inline-grid;place-items:center;width:22px;height:22px;padding:0;border-radius:50%;border:1px solid color-mix(in srgb,var(--brand) 35%,var(--line));background:var(--brand-soft);color:var(--brand-ink);font:italic 700 13px/1 Georgia,serif;cursor:help}
.ag-i:hover:where(#th-tool[data-module="img-convert"] *),.ag-i[aria-expanded="true"]:where(#th-tool[data-module="img-convert"] *){background:var(--brand);border-color:var(--brand);color:#fff}
.ag-i:focus-visible:where(#th-tool[data-module="img-convert"] *){outline:2px solid var(--ai);outline-offset:2px}
.ag-how>summary:where(#th-tool[data-module="img-convert"] *){list-style:none;display:flex;align-items:center;gap:10px;width:100%;min-height:var(--tap);cursor:pointer;border-radius:10px;font-size:var(--fs-sm);font-weight:650;color:var(--ink)}
.ag-how>summary:where(#th-tool[data-module="img-convert"] *)::-webkit-details-marker{display:none}
.ag-sum-w:where(#th-tool[data-module="img-convert"] *){display:inline-flex;align-items:center;gap:10px}
.ag-how>summary:hover .ag-sum-t:where(#th-tool[data-module="img-convert"] *){color:var(--brand-ink);text-decoration:underline;text-underline-offset:3px}
.ag-how>summary:hover .ag-i:where(#th-tool[data-module="img-convert"] *),.ag-how[open]>summary .ag-i:where(#th-tool[data-module="img-convert"] *){background:var(--brand);border-color:var(--brand);color:#fff}
.ag-how>summary:focus-visible:where(#th-tool[data-module="img-convert"] *){outline:2px solid var(--ai);outline-offset:2px}
.ag-how .ag-howt:where(#th-tool[data-module="img-convert"] *){margin-top:var(--gap-label);padding:var(--pad-field);border-radius:var(--r-card);background:var(--surface-2)}
.ag-howt:where(#th-tool[data-module="img-convert"] *){margin-top:10px;display:grid;gap:8px;font-size:var(--fs-sm);line-height:var(--lh-text);color:var(--ink)}
.ag-howt p:where(#th-tool[data-module="img-convert"] *){margin:0}@media print{
.ag-i:where(#th-tool[data-module="img-convert"] *){display:none!important}}
:where(.tool) :is(input,select,textarea):where(#th-tool[data-module="img-convert"] *){max-width:100%}@container tool (width <= 22.5rem){
select.inp:where(#th-tool[data-module="img-convert"] *){padding-right:26px;background-position:calc(100% - 13px) 20px,calc(100% - 8px) 20px}
select.inp.sm:where(#th-tool[data-module="img-convert"] *){padding-right:28px;background-position:calc(100% - 14px) 16px,calc(100% - 9px) 16px}}@container tool (width <= 22.5rem){
select.inp:where(:not(.sm)):where(#th-tool[data-module="img-convert"] *){padding-left:10px;padding-right:24px}}
#th-tool .t-btnrow:where(#th-tool[data-module="img-convert"] *){display:flex;flex-wrap:nowrap;align-items:stretch;gap:8px;margin:0}
#th-tool .t-btnrow>.btn:where(#th-tool[data-module="img-convert"] *){flex:1 1 auto;min-width:min-content;justify-content:center;text-align:center;white-space:normal}
#th-tool .t-btnrow>label.btn:where(#th-tool[data-module="img-convert"] *){font-size:14px;font-weight:650;color:var(--ink)}@container tool (width > 36rem){
#th-tool .t-btnrow.t-btnrow-nat>.btn:where(#th-tool[data-module="img-convert"] *){flex:0 1 auto}}@container tool (width <= 22.5rem){
#th-tool .t-btnrow>.btn.sm:where(#th-tool[data-module="img-convert"] *){padding-left:8px;padding-right:8px;gap:6px}}
#th-tool .t-btnrow:has(>.btn~.btn):not(:has(>.btn~.btn~.btn)):where(#th-tool[data-module="img-convert"] *){flex-wrap:wrap}
#th-tool .t-btnrow:has(>.btn~.btn):not(:has(>.btn~.btn~.btn))>.btn:where(#th-tool[data-module="img-convert"] *){flex:1 1 max-content;max-width:none}@container tool (width > 36rem){
#th-tool .t-btnrow.t-btnrow-nat:has(>.btn~.btn):not(:has(>.btn~.btn~.btn))>.btn:where(#th-tool[data-module="img-convert"] *){flex:0 1 auto}}
#th-tool .t-btnrow:has(>.btn~.btn~.btn):where(#th-tool[data-module="img-convert"] *){flex-wrap:wrap}
#th-tool .t-btnrow:has(>.btn~.btn~.btn)>.btn:where(#th-tool[data-module="img-convert"] *){flex:1 1 0px;max-width:none;min-width:min(100%,max(0px,calc((480px - 100%) * 999)))}
#th-tool .t-btnrow:has(>.btn~.btn~.btn~.btn~.btn)>.btn:where(#th-tool[data-module="img-convert"] *){min-width:min(100%,max(0px,calc((600px - 100%) * 999)))}@container tool (width > 36rem){
#th-tool .t-btnrow.t-btnrow-nat:has(>.btn~.btn~.btn)>.btn:where(#th-tool[data-module="img-convert"] *){flex:0 1 auto}}
#th-tool .t-btnrow:has(>.btn~.btn~.btn~.btn):not(:has(>.btn~.btn~.btn~.btn~.btn))>.btn:where(#th-tool[data-module="img-convert"] *){flex:0 1 auto;min-width:min(calc(50% - 4px),max(0px,calc((600px - 100%) * 999)));max-width:max(calc(50% - 4px),calc((100% - 600px) * 999))}
#th-tool .t-btnrow.t-stack>.btn:where(#th-tool[data-module="img-convert"] *){flex:1 1 100%!important;max-width:none!important}
#th-tool .t-bal:where(#th-tool[data-module="img-convert"] *){flex-wrap:wrap!important}
#th-tool .t-bal>.btn:where(#th-tool[data-module="img-convert"] *){flex:1 1 var(--bal-w)!important;max-width:var(--bal-w)!important;min-width:0!important}
#th-tool .btn.t-noicon>svg:where(#th-tool[data-module="img-convert"] *){display:none}
#th-tool .btn:not(.sm)>svg:where(#th-tool[data-module="img-convert"] *){width:18px!important;height:18px!important}
#th-tool .btn>svg:where(#th-tool[data-module="img-convert"] *){flex:none}
#th-tool .t-btnrow.t-nat:where(#th-tool[data-module="img-convert"] *){justify-content:center}
#th-tool .t-btnrow.t-nat>.btn:where(#th-tool[data-module="img-convert"] *){flex:0 1 auto!important;max-width:100%}
#th-tool .t-next:where(#th-tool[data-module="img-convert"] *){display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--gap-item) var(--gap-grid);padding:var(--pad-box);border:1px dashed var(--line);border-radius:var(--radius-sm);background:var(--surface-2)}
#th-tool .t-next[hidden]:where(#th-tool[data-module="img-convert"] *){display:none}
#th-tool .t-next p:where(#th-tool[data-module="img-convert"] *){flex:1 1 240px;min-width:0;margin:0;font-size:var(--fs-body);color:var(--ink)}
#th-tool .t-next .btn:where(#th-tool[data-module="img-convert"] *){flex:none;max-width:100%}
#th-tool .t-next-card:where(#th-tool[data-module="img-convert"] *){gap:var(--gap-item) var(--gap-grid);padding:var(--pad-box) 20px;border:1.5px solid transparent;border-radius:var(--radius);background:radial-gradient(420px 200px at 0% 0%,var(--glow-a),transparent 70%) padding-box,linear-gradient(var(--surface),var(--surface)) padding-box,var(--grad) border-box;box-shadow:var(--shadow)}
#th-tool .t-next-art:where(#th-tool[data-module="img-convert"] *){position:relative;flex:none;width:118px;height:92px}
#th-tool .t-next-ph:where(#th-tool[data-module="img-convert"] *){position:absolute;inset:0}
#th-tool .t-next-ph img:where(#th-tool[data-module="img-convert"] *){position:absolute;width:84px;height:64px;object-fit:cover;border:3px solid var(--surface);border-radius:10px;background:var(--surface-2);box-shadow:0 6px 16px rgba(11,16,32,.18)}
#th-tool .t-next-ph img:first-child:where(#th-tool[data-module="img-convert"] *){left:0;top:18px;transform:rotate(-7deg)}
#th-tool .t-next-ph img:last-child:where(#th-tool[data-module="img-convert"] *){left:30px;top:6px;transform:rotate(5deg)}
#th-tool .t-next-pen:where(#th-tool[data-module="img-convert"] *){position:absolute;right:0;bottom:0;display:grid;place-items:center;width:34px;height:34px;border:2px solid var(--surface);border-radius:12px;background:var(--grad);color:#fff;box-shadow:0 6px 14px rgba(79,70,229,.35)}
#th-tool .t-next-tx:where(#th-tool[data-module="img-convert"] *){flex:999 1 300px;min-width:0}
#th-tool .t-next .t-next-kick:where(#th-tool[data-module="img-convert"] *){display:flex;width:fit-content;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;background:var(--ai-soft);color:var(--ai-ink);font-size:var(--fs-tag);font-weight:650}
#th-tool .t-next .t-next-h:where(#th-tool[data-module="img-convert"] *){margin:var(--gap-label) 0;font-size:1.125rem;font-weight:720;line-height:1.3;letter-spacing:-.01em}
#th-tool .t-next-card .t-next-h + p:where(#th-tool[data-module="img-convert"] *){color:var(--muted)}
#th-tool .t-next-chips:where(#th-tool[data-module="img-convert"] *),#th-tool .t-next-ok:where(#th-tool[data-module="img-convert"] *){display:flex;flex-wrap:wrap;gap:var(--gap-label);margin:var(--gap-item) 0 0;padding:0;list-style:none}
#th-tool .t-next-chips li:where(#th-tool[data-module="img-convert"] *){padding:2px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);font-size:var(--fs-tag);font-weight:550}
#th-tool .t-next-ok:where(#th-tool[data-module="img-convert"] *){gap:4px var(--gap-grid);margin-top:var(--gap-min)}
#th-tool .t-next-ok li:where(#th-tool[data-module="img-convert"] *){display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:600}
#th-tool .t-next-ok svg:where(#th-tool[data-module="img-convert"] *){width:14px;height:14px;color:var(--brand-ink)}
#th-tool .t-next-go:where(#th-tool[data-module="img-convert"] *){flex:1 1 210px;display:flex;flex-direction:column;align-items:center;gap:var(--gap-label);text-align:center}
#th-tool .t-next-go .btn:where(#th-tool[data-module="img-convert"] *){width:100%;justify-content:center}
#th-tool .t-next-go small:where(#th-tool[data-module="img-convert"] *){color:var(--muted);font-size:var(--fs-tag)}@media print{
#th-tool .t-next:where(#th-tool[data-module="img-convert"] *){display:none}}
#th-tool:where(#th-tool[data-module="img-convert"] *){container:tool/inline-size}
#th-tool :where(img,video,iframe):where(#th-tool[data-module="img-convert"] *){max-width:100%}
#th-tool:has(.uc-dir):where(#th-tool[data-module="img-convert"] *){-webkit-tap-highlight-color:transparent}
/* ===== end of the own copy; the tool's own rules follow ===== */
/* own tooltip (.imgconvert-tip) + toast (.imgconvert-toast): copied from theme.css .th-tt / .toast and renamed (rule 171 (j)) */
.imgconvert-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(20px);background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:12px;font-size:14px;font-weight:600;opacity:0;transition:.25s;z-index:60;pointer-events:none}
.imgconvert-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.imgconvert-tip{position:fixed;z-index:9999;left:0;top:0;padding:7px 11px;border-radius:10px;background:var(--ink);color:var(--bg);font:500 12.5px/1.45 var(--font,system-ui,sans-serif);box-shadow:0 6px 24px rgba(11,16,32,.22);pointer-events:none;opacity:0;transform:translateY(3px);transition:opacity .12s,transform .12s;white-space:normal;overflow-wrap:anywhere}
.imgconvert-tip.on{opacity:1;transform:none}
.imgconvert-tip::after{content:"";position:absolute;left:var(--ax,50%);bottom:-5px;width:10px;height:10px;margin-left:-5px;background:inherit;transform:rotate(45deg);border-radius:2px}
.imgconvert-tip.below::after{bottom:auto;top:-5px}@media (prefers-reduced-motion:reduce){
.imgconvert-tip{transition:none}}@media print{
.imgconvert-toast{display:none}}
/* ToolHa module: Picture converters (img-convert), first page HEIC to JPG Converter (#014). Only this tool's own parts;
   boxes, buttons, messages and spacing come from the shared theme classes (.t-box .t-bx .t-bx-b .t-tone-N, .t-btnrow,
   .t-choice, .t-msg, .t-hint, .ag-how). Every number is a token (Spacing Ladder). */
#th-tool.icv{display:flex;flex-direction:column;gap:var(--gap-block);--icv-ok:#166534}
:root[data-theme="dark"] #th-tool.icv{--icv-ok:#4ade80}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) #th-tool.icv{--icv-ok:#4ade80}}
.icv .icv-ask{display:flex;flex-direction:column;gap:var(--gap-item);text-align:center}
.icv .icv-q{margin:0;font-size:var(--fs-h2);line-height:var(--lh-tight)}
.icv .icv-sub{margin:0;color:var(--muted);font-size:var(--fs-body)}
.icv .icv-help{justify-content:center}

/* the drop box: the tool's main input (gradient ring like the main box of every tool) */
/* rule 161: the drop box look, hover / drag-over, icon lift and height come from the shared .t-drop / .t-drop-i in tool.css */
.icv.icv-has .icv-drop{padding:var(--pad-box)}
.icv.icv-has .icv-dropi{display:none}
.icv .icv-dropi{display:inline-flex;color:var(--brand)}
.icv .icv-dropt{font-weight:700;font-size:var(--fs-h3)}
.icv .icv-dsm{font-size:var(--fs-label)}
.icv .icv-msg,.icv .t-msg,.icv .t-hint{margin:0}
/* the paste spot (Paste button): takes Ctrl+V / ⌘+V or a touch-and-hold Paste */
.icv .icv-pin{min-height:var(--h-btn);padding:var(--pad-card);border:2px dashed var(--brand);border-radius:var(--r-card);background:color-mix(in srgb,var(--brand) 6%,var(--surface));text-align:center;font-weight:650;color:var(--ink);caret-color:transparent;outline:none;cursor:text;overflow:hidden;white-space:nowrap}
.icv .icv-pin:empty::before{content:attr(data-ph);white-space:normal}
.icv .icv-pin:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 35%,transparent)}
@container tool (width <= 22.5rem){.icv .icv-gox{display:none}}

/* the list of photos */
.icv .icv-box legend small{margin-top:var(--gap-label)}
.icv .icv-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--gap-item)}
.icv .icv-cnt{font-size:var(--fs-sm);font-weight:650}
.icv .icv-barb{display:flex;flex-wrap:wrap;gap:var(--gap-min)}
.icv .icv-list{container-type:inline-size;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,22rem),1fr));gap:var(--gap-min);max-height:44rem;overflow:auto}
.icv .icv-fi{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:var(--gap-min) var(--gap-item);padding:var(--pad-card);border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);min-width:0}
.icv .icv-fi.is-skip{background:var(--surface-2)}
.icv .icv-th{flex:none;width:calc(var(--sp-6) * 2);height:calc(var(--sp-6) * 2);border-radius:var(--sp-2);object-fit:cover;background:var(--surface-2)}
.icv .icv-thi{display:inline-grid;place-items:center;color:var(--muted)}
.icv .icv-fb2{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--sp-1)}
.icv .icv-fn{font-size:var(--fs-sm);font-weight:650;overflow-wrap:anywhere}
.icv .icv-fz{font-size:var(--fs-label)}
.icv .icv-chips{display:flex;flex-wrap:wrap;gap:var(--gap-min)}
.icv .icv-chip{display:inline-flex;align-items:center;gap:var(--sp-1);padding:0 var(--sp-2);border-radius:999px;background:var(--brand-soft);color:var(--brand-ink);font-size:var(--fs-tag);font-weight:650;line-height:1.9}
.icv .icv-chip.is-off{background:var(--surface-2);color:var(--muted)}
.icv .icv-st{display:flex;align-items:flex-start;gap:var(--sp-1);font-size:var(--fs-label);color:var(--muted)}
.icv .icv-st.is-done{color:var(--icv-ok);font-weight:600;overflow-wrap:anywhere}
.icv .icv-st.is-done svg{flex:none;margin-top:1px}
.icv .icv-st.is-skip{color:var(--ink)}
.icv .icv-st.is-work{color:var(--brand-ink);font-weight:600}
.icv .icv-spin{flex:none;width:var(--sp-3);height:var(--sp-3);margin-top:2px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:icv-spin .8s linear infinite}
@keyframes icv-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.icv .icv-spin{animation-duration:2.4s}}
.icv .icv-iacts{grid-column:2/-1;display:flex;flex-wrap:wrap;gap:var(--gap-min)}
@container (max-width:21rem){.icv .icv-iacts{grid-column:1/-1}}
.icv .icv-fx{flex:none;display:inline-grid;place-items:center;width:var(--h-btn-sm);height:var(--h-btn-sm);border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.icv .icv-fx:hover,.icv .icv-fx:focus-visible{background:var(--surface-2);color:var(--ink)}
.icv .icv-prog{display:flex;flex-direction:column;gap:var(--gap-label)}
.icv .icv-prog[hidden]{display:none}
.icv .icv-pbar{height:var(--sp-2);border-radius:999px;background:var(--surface-2);overflow:hidden}
.icv .icv-pbar i{display:block;height:100%;width:0;border-radius:inherit;background:var(--brand);transition:width .25s}
.icv #icv-ptext{font-size:var(--fs-label);color:var(--muted);overflow-wrap:anywhere}

/* picture quality: open above the Convert button (owner round 19): three cards + a 0-100 slider with a value pill */
.icv .icv-qual{display:flex;flex-direction:column;gap:var(--gap-item);padding-top:var(--gap-item);border-top:1px dashed var(--line)}
.icv .icv-qs{display:flex;flex-direction:column;gap:var(--gap-label)}
.icv .icv-qsl{font-size:var(--fs-sm);font-weight:650}
.icv .icv-qrow{display:flex;align-items:center;gap:var(--gap-item)}
.icv .icv-qrow input[type=range]{flex:1;min-width:0;height:var(--h-btn-sm);margin:0;accent-color:var(--brand);cursor:pointer;background:transparent}
.icv .icv-qrow input[type=range]:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:999px}
.icv .icv-qv{flex:none;min-width:4.2em;padding:0 var(--sp-2);border-radius:999px;background:var(--brand-soft);color:var(--brand-ink);font-size:var(--fs-sm);font-weight:700;line-height:2;text-align:center;font-variant-numeric:tabular-nums}
.icv .icv-qhint{display:flex;flex-direction:column;gap:var(--sp-1)}
/* size limit (round 21): the tick changes only from its box (design DNA), the words are not a click target */
.icv .icv-lim{display:flex;flex-direction:column;gap:var(--gap-label)}
.icv .icv-limt{display:flex;align-items:center;gap:var(--sp-1)}
.icv .icv-limbx{display:inline-grid;place-items:center;margin:calc(var(--sp-3) * -1) 0 calc(var(--sp-3) * -1) calc(var(--sp-3) * -1);padding:var(--sp-3);cursor:pointer}
.icv .icv-limbx input{width:var(--sp-5);height:var(--sp-5);margin:0;accent-color:var(--brand);cursor:pointer}
.icv .icv-limt .icv-qsl{cursor:default}
.icv .icv-limb{display:flex;flex-direction:column;gap:var(--gap-item)}
.icv .icv-limb[hidden]{display:none}
.icv .icv-limr{display:flex;gap:var(--gap-min);max-width:16rem}
.icv .icv-limr #icv-limn{flex:1;min-width:0}
.icv .icv-limr #icv-limu{flex:none;width:auto}
.icv .icv-limq{display:flex;flex-wrap:wrap;gap:var(--gap-min)}
.icv .icv-limc{min-height:var(--h-btn-sm);padding:0 var(--sp-3);border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font:inherit;font-size:var(--fs-sm);font-weight:600;cursor:pointer}
.icv .icv-limc:hover,.icv .icv-limc:focus-visible{border-color:var(--brand)}
.icv .icv-limc[aria-pressed="true"]{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-ink)}
.icv .icv-dim{opacity:.55}
.icv .icv-qtot{margin:0;font-weight:600;color:var(--ink)}
.icv .icv-qtot[hidden]{display:none}

/* the result */
.icv .icv-big{margin:0;font-size:var(--fs-h3);font-weight:650;line-height:var(--lh-tight)}
.icv .icv-big b{font-size:var(--fs-result);font-weight:800;color:var(--icv-ok);font-variant-numeric:tabular-nums}
.icv .icv-say{margin:0;font-size:var(--fs-body)}
.icv .icv-acts[hidden]{display:none}
.icv .icv-rnote{margin:0}
.icv .icv-rnote:empty{display:none}

/* look closer */
.icv .icv-lpick{display:flex;flex-direction:column;gap:var(--gap-label);max-width:28rem}
.icv .icv-lpick[hidden]{display:none}
.icv .icv-lpick label{font-size:var(--fs-label);font-weight:600}
.icv .icv-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:var(--gap-item)}
.icv .icv-pair figure{margin:0;display:flex;flex-direction:column;gap:var(--gap-label);min-width:0}
.icv .icv-pair figcaption{font-size:var(--fs-label);font-weight:650}
.icv .icv-pair canvas{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:var(--sp-2);background:var(--surface-2)}

/* the choices fold (same look as the other tools' "Your Choices") */
.icv .icv-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:var(--gap-item)}
.icv .icv-cb{display:flex;flex-direction:column;gap:var(--gap-label)}
.icv .icv-ct{font-weight:700;font-size:var(--fs-body)}
.icv .icv-cb small{color:var(--muted)}
.icv .icv-est{display:block;color:var(--ink);font-weight:600}
.icv .icv-est:empty{display:none}
.icv .icv-rec{display:inline-block;margin-left:var(--sp-1);padding:0 var(--sp-2);border-radius:999px;background:var(--icv-ok);color:var(--surface);font-size:var(--fs-tag);font-weight:700;line-height:1.6;vertical-align:middle}
.icv .icv-fold{border-style:solid;border-width:5px 1px 1px;border-radius:var(--r-card)}
.icv .icv-fs{list-style:none;cursor:pointer;padding:var(--pad-box);display:flex;align-items:center;gap:var(--gap-item)}
.icv .icv-fs::-webkit-details-marker{display:none}
.icv .icv-fs>.icv-fm{flex:1;min-width:0}
.icv .icv-fm{display:flex;flex-direction:column;gap:var(--gap-label)}
.icv .icv-fr{display:flex;align-items:center;gap:var(--gap-item);flex-wrap:wrap}
.icv .icv-ft{font-weight:700;font-size:var(--fs-body);color:color-mix(in srgb,var(--tone) 62%,var(--ink))}
.icv .icv-ft::before{content:"";display:inline-block;width:10px;height:10px;margin-right:8px;border-radius:50%;background:var(--tone)}
.icv .icv-chg{padding:0 var(--sp-2);border-radius:999px;background:color-mix(in srgb,var(--brand) 14%,var(--surface));color:var(--brand);font-size:var(--fs-tag);font-weight:700;line-height:1.7}
.icv .icv-chg[hidden]{display:none}
.icv .icv-now{font-size:var(--fs-label);color:var(--muted)}
.icv .icv-chev{flex:none;display:inline-flex;padding:var(--sp-1);border-radius:50%;background:var(--tone);color:var(--surface);transition:transform .15s}
.icv .icv-fold[open] .icv-chev{transform:rotate(180deg)}
.icv .icv-fb{display:flex;flex-direction:column;gap:var(--gap-item);padding:0 var(--pad-box) var(--pad-box)}
.icv .icv-gh{margin:0;font-size:var(--fs-label);font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.icv .icv-gh:not(:first-child){padding-top:var(--gap-item);border-top:1px dashed var(--line)}
.icv .icv-tip{--icv-tipd:calc(var(--sp-4) + var(--sp-1) / 2);position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--icv-tipd);height:var(--icv-tipd);margin-left:var(--sp-1);border:1px solid var(--btn2-border,var(--line));border-radius:50%;color:var(--muted);font-size:var(--fs-tag);font-weight:700;font-style:normal;line-height:1;cursor:help;vertical-align:middle;transition:color .15s,border-color .15s} /* rule 132: 18 px circle, 12 px letter */
.icv .icv-tip::after{content:"";position:absolute;inset:calc(var(--sp-2) * -1)}
.icv .icv-tip:hover,.icv .icv-tip:focus-visible{color:var(--brand-ink);border-color:var(--brand-ink)}
.icv .icv-tipline{margin:0;text-align:center}
.icv .icv-src{font-size:var(--fs-label)}

@media print{
  #th-tool.icv .icv-qual{display:none!important}
  #th-tool.icv .icv-drop,#th-tool.icv .icv-help,#th-tool.icv .icv-pbox,#th-tool.icv .icv-fold,#th-tool.icv .icv-acts,#th-tool.icv .icv-go,#th-tool.icv .icv-fx,#th-tool.icv .icv-iacts,#th-tool.icv .icv-barb,#th-tool.icv .icv-look,#th-tool.icv .icv-tipline{display:none!important}
  #th-tool.icv .icv-list{max-height:none;overflow:visible}
}

/* rule 151: in a narrow file list the buttons go under the name, so the name, size and state never shrink to nothing */
.icv .icv-list{container-type:inline-size}
@container (max-width:260px){.icv .icv-fi{grid-template-columns:minmax(0,1fr)}.icv .icv-fi>.icv-fx{justify-self:end}}

/* (Mother 2026-10-25, owner "চালাও": Design Check findings, contrast 4.5:1 / tap targets 24 px) */
.icv .icv-chg{color:var(--brand-ink)}

/* ===== OWN COPY (rule 171) of Table to Image's progress panel (table-image.css .ti-pg*, round 34) for rule 182 (owner 2026-10-23): every save,
   .zip, copy and hand-over shows it. It floats at the bottom of the page as a child of body (outside the tool box), so it uses the site tokens. ===== */
.icv-pg{position:fixed;inset-inline:var(--gap-item);bottom:28px;margin:0 auto;max-inline-size:26rem;z-index:61;display:flex;flex-direction:column;gap:var(--gap-item);padding:var(--gap-item);border-radius:var(--r-card);border:1px solid color-mix(in srgb,var(--brand) 35%,var(--line));background:color-mix(in srgb,var(--brand) 6%,var(--surface));box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 8%,transparent),var(--shadow);animation:icv-pg-in .25s ease both}
.icv-pg[hidden]{display:none}
.icv-pgh{display:flex;align-items:center;gap:var(--gap-item);min-inline-size:0}
.icv-pgring{--p:0;position:relative;flex:none;display:grid;place-items:center;inline-size:3rem;block-size:3rem;border-radius:50%;background:conic-gradient(var(--brand) calc(var(--p)*1%),color-mix(in srgb,var(--brand) 16%,var(--surface)) 0)}
.icv-pgring::before{content:'';position:absolute;inset:5px;border-radius:50%;background:var(--surface)}
.icv-pgring>b{position:relative;font-size:12px;font-weight:800;color:var(--brand);font-variant-numeric:tabular-nums}
.icv-pgx{display:flex;flex-direction:column;flex:1 1 auto;min-inline-size:0}
.icv-pgt{font-size:var(--fs-body);color:var(--ink);overflow-wrap:anywhere}
.icv-pgs{font-size:var(--fs-label);color:var(--muted);overflow-wrap:anywhere}
.icv-pgc{flex:none;padding:4px 10px;border-radius:var(--r-pill);background:var(--brand);color:#fff;font-size:var(--fs-label);font-weight:700;font-variant-numeric:tabular-nums}
.icv-pgc[hidden]{display:none}
.icv-pgbar{position:relative;display:block;block-size:8px;border-radius:var(--r-pill);background:color-mix(in srgb,var(--brand) 14%,var(--surface));overflow:hidden}
.icv-pgbar>i{position:absolute;inset:0 auto 0 0;width:0;border-radius:inherit;background:linear-gradient(90deg,color-mix(in srgb,var(--brand) 70%,#fff),var(--brand));transition:width .35s ease;overflow:hidden}
.icv-pgbar>i::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);transform:translateX(-100%);animation:icv-pg-sheen 1.4s ease-in-out infinite}
.icv-pgtl{display:flex;flex-wrap:wrap;gap:var(--gap-label)}
.icv-pgtl[hidden]{display:none}
.icv-pt{position:relative;display:inline-flex;align-items:center;justify-content:center;inline-size:2.25rem;block-size:2.25rem;border-radius:8px;background:var(--surface);border:1px solid var(--line);font-size:11px;font-weight:700;color:var(--muted)}
.icv-pt.is-wait{background:linear-gradient(100deg,var(--surface) 30%,color-mix(in srgb,var(--brand) 10%,var(--surface)) 50%,var(--surface) 70%) 0 0/300% 100%;animation:icv-pg-wait 1.6s ease-in-out infinite}
.icv-pt.is-now{border:2px solid var(--brand);color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 18%,transparent);animation:icv-pg-now 1s ease-in-out infinite alternate}
.icv-pt.is-ok{border-color:transparent;color:var(--ink);box-shadow:var(--shadow);animation:icv-pg-pop .35s cubic-bezier(.2,1.4,.4,1) both}
.icv-pt.is-ok::after{content:'';position:absolute;right:2px;bottom:2px;width:14px;height:14px;border-radius:50%;background:var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;box-shadow:0 0 0 2px var(--surface)}
.icv-pt.icv-ptmore{background:var(--brand-soft);border-color:transparent;color:var(--brand);font-size:13px}
.icv-pgm{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--gap-label) var(--gap-item);font-size:var(--fs-label);color:var(--muted);font-variant-numeric:tabular-nums}
.icv-pgl{font-weight:700;color:var(--brand)}
.icv-pgl[hidden]{display:none}
.icv-pgcan{display:flex;justify-content:flex-end}
.icv-pgcan[hidden]{display:none}
.icv-pgsr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
@media (prefers-reduced-motion:reduce){.icv-pg,.icv-pgbar>i::after,.icv-pt{animation:none}.icv-pgbar>i{transition:none}}
@keyframes icv-pg-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes icv-pg-sheen{to{transform:translateX(100%)}}
@keyframes icv-pg-wait{0%{background-position:100% 0}100%{background-position:0 0}}
@keyframes icv-pg-now{from{box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 10%,transparent)}to{box-shadow:0 0 0 5px color-mix(in srgb,var(--brand) 22%,transparent)}}
@keyframes icv-pg-pop{from{transform:scale(.8)}to{transform:none}}

