/* YardMaths Image tools (/image/ only). Light and dark follow the device setting. Same brand family as the site and /pdf/
   (black lacquer, champagne, Bricolage Grotesque, the Y3f logo) in its own picture universe: transparency checks, before / after
   handles, picture cards. Ad slots: height kept while an ad loads (no jump), nothing when there is no ad. */
@font-face { font-family: "Bricolage Grotesque"; src: url(/assets/fonts/bricolage-grotesque-latin-wght.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  color-scheme: light dark;
  --bg: #f4f1ea; --bg-2: #ebe6db; --card: #fffdf9; --card-2: #f7f3eb;
  --ink: #15140f; --ink-2: #57524a; --ink-3: #676157;
  --line: rgba(21, 20, 15, .11); --line-2: rgba(21, 20, 15, .21);
  --gold: #7a5c2a; --gold-2: #b08a4a; --champ: #d6b77a; --champ-soft: rgba(176, 138, 74, .12);
  --main-bg: #15140f; --main-ink: #f3e7cc; --main-hi: #2b2820;
  --ck-a: #ffffff; --ck-b: #e4e0d8; --ck-da: #2a2d31; --ck-db: #1d2023;
  --focus: #1d5fc9; --err: #a12a1b; --err-bg: #fbeae6; --ok: #2d6a45; --ok-bg: #e7f3ea; --warn-bg: #fbf3e1;
  --shadow: 0 1px 2px rgba(21, 20, 15, .05), 0 14px 34px -20px rgba(21, 20, 15, .32);
  --r: 20px; --r-s: 12px;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d0f; --bg-2: #101317; --card: #14181c; --card-2: #1a1f24;
    --ink: #eee9df; --ink-2: #aeb2b6; --ink-3: #8b9096;
    --line: rgba(238, 233, 223, .09); --line-2: rgba(238, 233, 223, .2);
    --gold: #e2c98f; --gold-2: #d6b77a; --champ: #d6b77a; --champ-soft: rgba(214, 183, 122, .1);
    --main-bg: #d9bd83; --main-ink: #14110a; --main-hi: #ecd5a3;
    --ck-a: #3a3e43; --ck-b: #2c3035;
    --focus: #f3e2b8; --err: #ff9f90; --err-bg: #2a1512; --ok: #8fd0a4; --ok-bg: #11241a; --warn-bg: #251f12;
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -28px rgba(0, 0, 0, .9);
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 4.75rem; }
body.ix { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.ix { background-image: radial-gradient(56rem 24rem at 12% -9rem, var(--champ-soft), transparent 70%); background-repeat: no-repeat; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
img, svg, canvas { max-width: 100%; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; font-weight: 640; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); letter-spacing: -.035em; font-weight: 600; }
h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.8rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
.ix-vh, .it-live { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ix-skip { position: absolute; left: .75rem; top: -3rem; z-index: 50; background: var(--main-bg); color: var(--main-ink); padding: .6rem 1rem; border-radius: 10px; }
.ix-skip:focus { top: .75rem; }
.ix-wrap { width: 100%; max-width: 75rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* Transparency checks (shared by previews, lists, the compare handle, the brush) */
.it-ck { background-color: var(--ck-a); background-image: conic-gradient(var(--ck-b) 25%, transparent 0 50%, var(--ck-b) 0 75%, transparent 0); background-size: 18px 18px; }
.it-ck.it-ck-light { --ck-a: #ffffff; --ck-b: #e4e0d8; }
.it-ck.it-ck-dark { --ck-a: #3a3e43; --ck-b: #2a2e33; }
.it-ck.it-ck-white { background: #fff; }
.it-ck.it-ck-black { background: #000; }

/* Header and footer */
.ix-head { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 86%, transparent); position: sticky; top: 0; z-index: 20; -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.ix-head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.ix-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 640; font-size: 1.1rem; letter-spacing: -.01em; min-height: 2.75rem; }
.ix-brand .logo { width: 2rem; height: 2rem; flex: none; }
.ix-brand b { font-weight: 700; color: var(--main-ink); border-radius: 6px; padding: .05rem .42rem; font-size: .78em; letter-spacing: .04em; margin-left: .1rem;
  background: var(--main-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--champ) 40%, transparent); }
.ix-brand-t { white-space: nowrap; }
.ix-nav { display: flex; gap: .25rem; }
.ix-nav a { color: var(--ink-2); text-decoration: none; padding: .45rem .75rem; border-radius: 999px; font-size: .95rem; min-height: 2.75rem; display: inline-flex; align-items: center; white-space: nowrap; }
.ix-nav a:hover { color: var(--ink); background: var(--card); }
.ix-nav a[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ix-nav a.ix-back { margin-left: .5rem; border: 1px solid var(--line); color: var(--ink); font-weight: 560; }
.ix-nav a.ix-back:hover { background: var(--card); }
@media (max-width: 520px) { html { scroll-padding-top: 7rem; } .ix-head-in { flex-wrap: wrap; row-gap: 0; padding-block: .25rem; } .ix-nav { width: 100%; justify-content: space-between; } .ix-nav a.ix-back { margin-left: 0; } }
.ix-foot { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--bg-2); padding: 2.5rem 0 2rem; font-size: .95rem; color: var(--ink-2); }
.ix-foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-bottom: 1.5rem; }
.ix-foot-top p { margin: 0; max-width: 34rem; }
.ix-foot-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem 1.5rem; margin: 0 0 1.5rem; }
.ix-foot-h { font-weight: 640; color: var(--ink); margin: 0 0 .35rem; }
.ix-foot ul { list-style: none; margin: 0; padding: 0; }
.ix-foot li a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 2.25rem; }
.ix-foot li a:hover { color: var(--ink); text-decoration: underline; }
.ix-foot-links { display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem !important; }
.ix-copy { margin: 1rem 0 0; font-size: .85rem; color: var(--ink-3); }

/* Breadcrumb */
.crumbs { margin: 1.1rem 0 0; font-size: .9rem; color: var(--ink-3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 .2rem 0 .4rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Tool page head */
.ix-hero { display: flex; align-items: flex-start; gap: 1rem; margin: .9rem 0 .8rem; }
.ix-hero-i { flex: none; width: 3.25rem; height: 3.25rem; border-radius: 15px; display: grid; place-items: center; color: var(--main-ink); box-shadow: var(--shadow);
  background: var(--main-bg); background-image: conic-gradient(color-mix(in srgb, var(--champ) 18%, transparent) 25%, transparent 0 50%, color-mix(in srgb, var(--champ) 18%, transparent) 0 75%, transparent 0); background-size: 13px 13px; }
.ix-hero-i svg { width: 1.8rem; height: 1.8rem; }
.ix-hero h1 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem); }
.ix-lead { text-wrap: pretty; color: var(--ink-2); font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); margin: .5rem 0 0; max-width: 46rem; }
.ix-trust { list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.ix-trust li { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .28rem .7rem .28rem .5rem; }
.ix-trust svg { width: 1rem; height: 1rem; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- The tool box ---------------- */
.it { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(.7rem, 2.4vw, 1.2rem); }
.it-drop { position: relative; min-height: 17rem; border-radius: calc(var(--r) - 6px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .55rem; padding: 1.75rem 1rem; cursor: pointer; overflow: hidden; isolation: isolate;
  border: 2px dashed color-mix(in srgb, var(--gold-2) 55%, transparent); background-color: var(--card-2); transition: border-color .15s, background-color .15s; }
.it-drop::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; background-image: conic-gradient(var(--line) 25%, transparent 0 50%, var(--line) 0 75%, transparent 0); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, transparent 30%, #000 100%); mask-image: radial-gradient(70% 80% at 50% 50%, transparent 30%, #000 100%); }
.it-drop:hover, .it-over .it-drop { border-color: var(--gold-2); }
.it-over .it-drop { background-color: var(--champ-soft); }
.it-over .it-list { outline: 2px dashed var(--gold-2); outline-offset: 4px; border-radius: var(--r-s); }
.it-drop-i { width: 3.6rem; height: 3.6rem; border-radius: 17px; display: grid; place-items: center; color: var(--gold); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.it-drop-svg { width: 1.95rem; height: 1.95rem; }
.it-drop-t { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 620; letter-spacing: -.015em; margin: .25rem 0 .2rem; }
.it-drop-n { color: var(--ink-3); font-size: .9rem; margin: .1rem 0 0; max-width: 30rem; }
.it-drop-msg { margin: .35rem 0 0; padding: .45rem .8rem; border-radius: 10px; background: var(--err-bg); color: var(--err); font-size: .92rem; max-width: 34rem; }
.it-nojs { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: var(--r-s); background: var(--warn-bg); }

/* Buttons */
.it-btn { -webkit-appearance: none; appearance: none; font: inherit; font-weight: 620; font-size: 1rem; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; padding: .7rem 1.25rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, box-shadow .15s, transform .05s; }
.it-btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.it-btn:active:not(:disabled) { transform: translateY(1px); }
.it-btn-main { background: var(--main-bg); color: var(--main-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 8px 20px -10px rgba(21, 20, 15, .55); }
.it-btn-main:hover:not(:disabled) { background: var(--main-hi); }
.it-btn-soft { background: var(--card-2); color: var(--ink); border-color: var(--line-2); }
.it-btn-soft:hover:not(:disabled) { border-color: var(--gold-2); }
.it-btn-ghost { background: transparent; color: var(--ink-2); }
.it-btn-ghost:hover:not(:disabled) { color: var(--ink); background: var(--card-2); }
.it-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.it-pick { position: relative; font-size: 1.05rem; padding: .85rem 1.6rem; min-height: 3.2rem; }
.it-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.it-pick:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.it-ib { -webkit-appearance: none; appearance: none; font: inherit; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none; border-radius: 11px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; padding: 0; }
.it-ib svg { width: 1.15rem; height: 1.15rem; }
.it-ib:hover:not(:disabled) { border-color: var(--gold-2); color: var(--gold); }
.it-ib:disabled { opacity: .35; cursor: default; }
.it-ib[aria-pressed="true"] { background: var(--main-bg); color: var(--main-ink); border-color: var(--main-bg); }
.it-ib-x:hover:not(:disabled) { color: var(--err); border-color: var(--err); }

/* Messages and the list of pictures */
.it-msgs:empty { display: none; }
.it-msgs { display: grid; gap: .5rem; margin: 0 0 .9rem; }
.it-note { display: flex; align-items: flex-start; gap: .55rem; margin: 0; padding: .55rem .5rem .55rem .8rem; border-radius: var(--r-s); font-size: .95rem; background: var(--warn-bg); }
.it-note > svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: .15rem; }
.it-note span { flex: 1; }
.it-note-err { background: var(--err-bg); color: var(--err); }
.it-note-ok { background: var(--ok-bg); color: var(--ok); }
.it-note .it-ib { width: 2.75rem; height: 2.75rem; border: 0; background: transparent; color: inherit; margin: -.4rem 0; }
.it-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .55rem; }
.it-item { display: flex; align-items: center; gap: .75rem; min-width: 0; min-height: 4.1rem; padding: .45rem .5rem .45rem .45rem; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-s); }
.it-thumb { flex: none; width: 3.1rem; height: 3.1rem; border-radius: 8px; overflow: hidden; display: grid; place-items: center; color: var(--ink-3); border: 1px solid var(--line); background-size: 10px 10px; }
.it-thumb > svg { width: 1.4rem; height: 1.4rem; }
.it-thumb canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.it-meta { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.it-name { font-weight: 600; font-size: .95rem; line-height: 1.3; display: flex; min-width: 0; white-space: nowrap; }
.it-nm-b { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.it-nm-e { flex: none; }
.it-info { font-size: .83rem; color: var(--ink-3); line-height: 1.35; }
.it-info.it-info-s { display: flex; flex-wrap: wrap; margin-left: -1.1em; clip-path: inset(0 0 0 1.1em); }
.it-is { white-space: nowrap; margin-left: 1.1em; position: relative; }
.it-sep { position: absolute; left: -1.1em; width: 1.1em; text-align: center; white-space: pre; }
.it-acts { display: flex; align-items: center; gap: .4rem; flex: none; }
.it-chg { min-height: 2.75rem; padding: .45rem 1rem; font-size: .92rem; }
.it-error { border-color: color-mix(in srgb, var(--err) 55%, transparent); background: var(--err-bg); }
.it-error .it-info { color: var(--err); white-space: normal; }
.it-error .it-thumb { color: var(--err); }
.it-reading .it-thumb > svg { animation: it-pulse 1.2s ease-in-out infinite; }
@keyframes it-pulse { 50% { opacity: .35; } }
.it-list.it-single { grid-template-columns: minmax(0, 1fr); }

/* Settings (shared classes for tools, src/image/_FORMAT.md) */
.it-extra { margin: .9rem 0 0; }
.it-sec { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card-2); padding: .9rem; margin: 0 0 .9rem; min-width: 0; }
.it-sec > h3, .it-sec > legend { font-size: 1rem; margin: 0 0 .65rem; padding: 0; }
.it-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); align-items: start; }
.it-f { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.it-lab, .it-f > label { font-size: .88rem; font-weight: 560; color: var(--ink-2); margin: 0; }
.it-help { font-size: .82rem; color: var(--ink-3); line-height: 1.4; margin: 0; }
.it-in { width: 100%; min-height: 2.75rem; padding: .5rem .7rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 1rem; }
.it-in:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.it-in[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.it-in:disabled { opacity: .6; }
.it-chk { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; }
.it-chk input { width: 1.3rem; height: 1.3rem; accent-color: var(--gold-2); flex: none; margin: 0; }
.it-chk label { font-size: .95rem; }
.it-seg { display: flex; flex-wrap: wrap; gap: .35rem; }
.it-seg button { min-height: 2.75rem; padding: .45rem .8rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: .92rem; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; line-height: 1.1; }
.it-seg button svg { width: 1.1rem; height: 1.1rem; }
.it-seg button[aria-pressed="true"] { background: var(--main-bg); color: var(--main-ink); border-color: var(--main-bg); }
.it-seg button:disabled { opacity: .45; cursor: default; }
.it-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.it-err-t { color: var(--err); font-size: .88rem; margin: 0; }
.it-sl-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.it-sl-v { font-size: .88rem; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.it-range { -webkit-appearance: none; appearance: none; width: 100%; height: 2.75rem; background: transparent; margin: 0; cursor: pointer; --p: 50%; }
.it-range::-webkit-slider-runnable-track { height: .4rem; border-radius: 999px; background: linear-gradient(90deg, var(--gold-2) var(--p), var(--line-2) var(--p)); }
.it-range::-moz-range-track { height: .4rem; border-radius: 999px; background: var(--line-2); }
.it-range::-moz-range-progress { height: .4rem; border-radius: 999px; background: var(--gold-2); }
.it-range::-webkit-slider-thumb { -webkit-appearance: none; width: 1.5rem; height: 1.5rem; margin-top: -.55rem; border-radius: 50%; background: var(--card); border: 2px solid var(--gold-2); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.it-range::-moz-range-thumb { width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--card); border: 2px solid var(--gold-2); }
.it-range:focus-visible { outline: none; }
.it-range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--focus); outline-offset: 2px; }
.it-co-row { display: flex; gap: .4rem; align-items: center; }
.it-co-sw { -webkit-appearance: none; appearance: none; width: 2.75rem; height: 2.75rem; padding: .2rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); cursor: pointer; flex: none; }
.it-co-sw::-webkit-color-swatch-wrapper { padding: 0; } .it-co-sw::-webkit-color-swatch { border: 0; border-radius: 7px; }
.it-co-hex { max-width: 8.5rem; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.it-picking { cursor: crosshair !important; }
.it-bd { width: 1.05rem; height: 1.05rem; border-radius: 4px; border: 1px solid var(--line-2); display: inline-block; flex: none; }
.it-bd-light { background: conic-gradient(#e4e0d8 25%, #fff 0 50%, #e4e0d8 0 75%, #fff 0); background-size: 8px 8px; }
.it-bd-dark { background: conic-gradient(#2a2e33 25%, #3a3e43 0 50%, #2a2e33 0 75%, #3a3e43 0); background-size: 8px 8px; }
.it-bd-white { background: #fff; } .it-bd-black { background: #000; }

/* Before / after comparison */
.it-cmp { position: relative; width: 100%; max-height: 72vh; aspect-ratio: var(--ar, 1.5); margin: 0 auto; border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line); touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; --x: 50%; }
.it-cmp-a, .it-cmp-b { position: absolute; inset: 0; display: grid; place-items: center; }
.it-cmp-a { clip-path: inset(0 calc(100% - var(--x)) 0 0); background: var(--card-2); }
.it-cmp-c { width: 100%; height: 100%; object-fit: contain; display: block; }
.it-cmp-bar { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none; }
.it-cmp-knob { position: absolute; top: 50%; left: 50%; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; border-radius: 50%; display: grid; place-items: center; background: var(--main-bg); color: var(--main-ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .35), 0 0 0 2px #fff; }
.it-cmp-knob svg { width: 1.3rem; height: 1.3rem; }
.it-cmp-t { position: absolute; top: .6rem; font-size: .78rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: rgba(15, 14, 10, .72); color: #f3e7cc; pointer-events: none; }
.it-cmp-t1 { left: .6rem; } .it-cmp-t2 { right: .6rem; }
.it-cmp-r { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 2.75rem; margin: 0; opacity: 0; cursor: ew-resize; }
.it-cmp:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Crop editor */
.it-crop { position: relative; width: 100%; max-height: 70vh; aspect-ratio: var(--ar, 1.5); margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.it-crop-img { width: 100%; height: 100%; display: block; border-radius: 6px; }
.it-crop-shade { position: absolute; inset: 0; background: rgba(8, 9, 10, .55); pointer-events: none; border-radius: 6px; }
.it-crop-area { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); cursor: move; outline: none;
  background-image: linear-gradient(rgba(255, 255, 255, .45) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .45) 1px, transparent 1px); background-size: 33.333% 33.333%; background-position: -1px -1px; }
.it-crop-area:focus-visible { box-shadow: 0 0 0 3px var(--focus); }
.it-crop-h { position: absolute; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; padding: 0; border: 0; background: transparent; cursor: pointer; }
.it-crop-h::after { content: ""; position: absolute; left: 50%; top: 50%; width: .95rem; height: .95rem; margin: -.475rem 0 0 -.475rem; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.it-crop-h:focus-visible::after { background: var(--focus); }
.it-crop-nw { left: 0; top: 0; cursor: nwse-resize; } .it-crop-n { left: 50%; top: 0; cursor: ns-resize; } .it-crop-ne { left: 100%; top: 0; cursor: nesw-resize; } .it-crop-e { left: 100%; top: 50%; cursor: ew-resize; }
.it-crop-se { left: 100%; top: 100%; cursor: nwse-resize; } .it-crop-s { left: 50%; top: 100%; cursor: ns-resize; } .it-crop-sw { left: 0; top: 100%; cursor: nesw-resize; } .it-crop-w { left: 0; top: 50%; cursor: ew-resize; }

/* Brush (refine the cut-out) */
.it-br { display: grid; gap: .6rem; }
.it-br-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem 1rem; }
.it-br-tools .it-sl { flex: 1 1 11rem; max-width: 18rem; }
.it-br-hist, .it-br-zoom { display: flex; gap: .3rem; }
.it-br-port { position: relative; width: 100%; max-height: 70vh; overflow: auto; border-radius: var(--r-s); border: 1px solid var(--line); overscroll-behavior: contain; }
.it-br-port:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.it-br-stage { position: relative; width: 100%; aspect-ratio: var(--ar, 1.5); }
.it-br-c { display: block; width: 100%; height: 100%; touch-action: none; cursor: none; }
.it-br-ring { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .35); background: rgba(220, 60, 40, .16); }
.it-br-ring-r { background: rgba(60, 170, 100, .2); }
.it-br-help { margin: 0; }

/* Progress and result */
.it-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.it-has .it-bar { position: sticky; bottom: 0; z-index: 6; background: var(--card); padding-bottom: .75rem; box-shadow: 0 -14px 16px -18px rgba(0, 0, 0, .35); }
.it-has.it-busy .it-bar { position: static; box-shadow: none; }
.it-bar-l, .it-bar-r { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.it-bar-r { margin-left: auto; justify-content: flex-end; }
.it-hint { margin: 0; font-size: .9rem; color: var(--ink-3); }
.it-go { min-width: 11rem; font-size: 1.05rem; padding: .85rem 1.5rem; min-height: 3.2rem; }
.it-done .it-go { background: var(--card-2); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.it-prog { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--r-s); background: var(--card-2); border: 1px solid var(--line); }
.it-prog-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .55rem; }
.it-prog-l { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-prog-track { height: .55rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.it-prog-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-2), var(--champ)); transition: width .2s; }
.it-stop { min-height: 2.75rem; padding: .4rem .9rem; font-size: .92rem; }
.it-result { margin-top: 1rem; padding: 1.1rem; border-radius: var(--r-s); background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); outline: none; scroll-margin-top: 5rem; }
.it-res-head { display: flex; gap: .75rem; align-items: flex-start; }
.it-res-i { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--bg); }
.it-res-i svg { width: 1.3rem; height: 1.3rem; }
.it-res-head > div { min-width: 0; }
.it-res-t { font-weight: 650; font-size: 1.15rem; margin: 0; }
.it-res-s { margin: .1rem 0 0; color: var(--ink-2); font-size: .92rem; display: flex; flex-wrap: wrap; min-width: 0; }
.it-res-f { display: inline-flex; min-width: 0; max-width: 100%; white-space: nowrap; }
.it-res-acts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .4rem; }
.it-res-n { margin: 0; font-size: .85rem; color: var(--ink-3); }
.it-res-each { margin: .4rem 0 .6rem; font-size: .92rem; }
.it-res-each summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; font-weight: 600; }
.it-res-each ul { margin: 0; padding-left: 1.2rem; max-height: 14rem; overflow: auto; }
.it-res-each li { margin: .2rem 0; overflow-wrap: anywhere; }
.it-pv { margin: .6rem 0 .5rem; }
.it-pv-th { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.it-pv-th li { display: flex; flex-direction: column; gap: .25rem; max-width: 10rem; }
.it-pv-img { display: grid; place-items: center; width: 10rem; height: 7.5rem; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background-size: 12px 12px; }
.it-pv-img canvas { max-width: 100%; max-height: 100%; display: block; }
.it-pv-l { font-size: .8rem; color: var(--ink-2); }
.it-pv-more { align-self: center; font-size: .9rem; color: var(--ink-2); }
.it-pv-sz { display: grid; gap: .35rem; max-width: 26rem; }
.it-pv-row { display: grid; grid-template-columns: 3.5rem 1fr 4.5rem; gap: .5rem; align-items: center; font-size: .85rem; }
.it-pv-bar { height: .55rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.it-pv-bar span { display: block; height: 100%; background: var(--ink-3); border-radius: inherit; }
.it-pv-after .it-pv-bar span { background: var(--ok); }
.it-pv-v { text-align: right; font-variant-numeric: tabular-nums; }
.it-busy .it-list { opacity: .6; }

/* A stage for tools that show the picture big (compare, brush, crop) */
.it-stage { display: grid; gap: .75rem; }
.it-stage-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .6rem 1rem; }
.it-tabs { display: flex; gap: .3rem; padding: .25rem; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; }
.it-tabs button { min-height: 2.75rem; padding: .4rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.it-tabs button[aria-selected="true"] { background: var(--main-bg); color: var(--main-ink); }
.it-bdsel .it-seg button { padding: .4rem .65rem; }
.it-wait { display: grid; place-items: center; min-height: 15rem; border-radius: var(--r-s); border: 1px solid var(--line); text-align: center; padding: 1.5rem; color: var(--ink-2); }

.ix-privacy { display: flex; align-items: flex-start; gap: .5rem; margin: .8rem .25rem 0; font-size: .9rem; color: var(--ink-2); max-width: 52rem; }
.ix-privacy svg { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .2rem; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ix-privacy strong { color: var(--ink); font-weight: 640; }

/* ---------------- Content under the tool ---------------- */
.ix-content { max-width: 46rem; }
.ix-content section { margin-top: 2.75rem; }
.ix-content h2 { margin-bottom: .85rem; }
.ix-content p, .ix-content li { text-wrap: pretty; }
.ix-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.ix-steps li { counter-increment: s; position: relative; padding: .7rem .9rem .7rem 3.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); }
.ix-steps li::before { content: counter(s); position: absolute; left: .75rem; top: .7rem; width: 1.65rem; height: 1.65rem; border-radius: 7px; display: grid; place-items: center; font-size: .85rem; font-weight: 700; background: var(--main-bg); color: var(--main-ink); }
.ix-list { padding-left: 1.2rem; margin: 0 0 1rem; }
.ix-list li { margin: .4rem 0; }
.ix-list li::marker { color: var(--gold-2); }
.ix-table { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); }
.ix-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ix-table th, .ix-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ix-table thead th { font-weight: 650; background: var(--card-2); }
.ix-table tr:last-child > * { border-bottom: 0; }
.ix-faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); margin: .55rem 0; }
.ix-faq summary { position: relative; cursor: pointer; font-weight: 620; padding: .95rem 3rem .95rem 1.1rem; list-style: none; min-height: 2.75rem; }
.ix-faq summary::-webkit-details-marker { display: none; }
.ix-faq summary::after { content: ""; position: absolute; right: 1.15rem; top: 50%; width: .55rem; height: .55rem; border-right: 2px solid var(--gold-2); border-bottom: 2px solid var(--gold-2); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.ix-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.ix-faq-a { padding: 0 1.1rem .4rem; color: var(--ink-2); }
.ix-rel { margin-top: 3rem; }
.ix-rel > h2 { margin-bottom: 1rem; }
.ix-all { margin: 1rem 0 0; font-weight: 600; }
.ix-upd { margin-top: 2.5rem; font-size: .88rem; color: var(--ink-3); }

/* Cards */
.ix-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: .75rem; }
.ix-card a, .ix-card-a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: .8rem; height: 100%; padding: 1rem; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ix-card a:hover { border-color: var(--gold-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.ix-card-i { grid-row: span 2; width: 2.7rem; height: 2.7rem; border-radius: 12px; display: grid; place-items: center; color: var(--k, var(--gold)); background: color-mix(in srgb, var(--k, var(--gold)) 12%, transparent); position: relative; overflow: hidden; }
.ix-card-i::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: conic-gradient(color-mix(in srgb, var(--k, var(--gold)) 14%, transparent) 25%, transparent 0 50%, color-mix(in srgb, var(--k, var(--gold)) 14%, transparent) 0 75%, transparent 0); background-size: 10px 10px; }
.ix-card-i svg { width: 1.5rem; height: 1.5rem; position: relative; }
.ix-k-background { --k: #7a5c2a; } .ix-k-resize-crop { --k: #2a5a8a; } .ix-k-convert-compress { --k: #2d6a45; } .ix-k-edit-text { --k: #7a3b6e; } .ix-k-privacy { --k: #9a3a24; }
@media (prefers-color-scheme: dark) { .ix-k-background { --k: #e2c98f; } .ix-k-resize-crop { --k: #9cc3ec; } .ix-k-convert-compress { --k: #8fd0a4; } .ix-k-edit-text { --k: #e0a6d4; } .ix-k-privacy { --k: #f0a58e; } }
.ix-card-t { display: block; font-size: 1.02rem; font-weight: 640; letter-spacing: -.01em; margin: .1rem 0 .15rem; }
.ix-card-s { display: block; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.ix-soon .ix-card-a { background: transparent; border-style: dashed; color: var(--ink-2); }
.ix-soon .ix-card-i { filter: saturate(.3); opacity: .75; }
.ix-soon .ix-card-s { font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ix-grid-big .ix-card a { padding: 1.15rem; }
.ix-glist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: .75rem; }
.ix-gcard a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem 1.1rem; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ix-gcard a:hover { border-color: var(--gold-2); box-shadow: var(--shadow); }
.ix-gcard-k { font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.ix-gcard-t { font-size: 1.02rem; font-weight: 630; line-height: 1.3; }
.ix-gcard-s { font-size: .88rem; color: var(--ink-2); line-height: 1.45; }

/* ---------------- Hub ---------------- */
.ix-hub-head { padding: clamp(1.4rem, 4vw, 2.75rem) 0 .5rem; display: grid; gap: 1.5rem; }
.ix-hub-head h1 { font-size: clamp(2.05rem, 1.3rem + 3.1vw, 3.45rem); }
.ix-search { position: relative; margin: 1.3rem 0 .4rem; max-width: 36rem; }
.ix-search svg { position: absolute; left: 1rem; top: 50%; width: 1.25rem; height: 1.25rem; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.ix-search input { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: .9rem 1.2rem .9rem 2.9rem; min-height: 3.3rem; box-shadow: var(--shadow); -webkit-appearance: none; appearance: none; }
.ix-search input::placeholder { color: var(--ink-3); }
.ix-search input:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.ix-count { min-height: 1.5rem; margin: 0 0 .6rem; font-size: .9rem; color: var(--ink-3); }
.ix-demo { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ix-demo svg { display: block; width: 100%; height: auto; }
.ix-ck-a { fill: #fff; } .ix-ck-b { fill: #e4e0d8; }
@media (prefers-color-scheme: dark) { .ix-ck-a { fill: #3a3e43; } .ix-ck-b { fill: #2a2e33; } }
.ix-demo-line { stroke: #fff; stroke-width: 2.5; } .ix-demo-knob { fill: #15140f; stroke: #fff; stroke-width: 2.5; } .ix-demo-arr { fill: none; stroke: #f3e7cc; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ix-demo figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; font-size: .82rem; font-weight: 600; color: var(--ink-2); border-top: 1px solid var(--line); }
.ix-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .5rem 0 1.5rem; }
.ix-chips a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 560; min-height: 2.75rem; }
.ix-chips a:hover { border-color: var(--gold-2); }
.ix-chips span { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ix-cats { display: grid; gap: 2.25rem; }
.ix-cat-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: .9rem; }
.ix-cat-h p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.ix-none { padding: 1rem 1.2rem; background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--r-s); color: var(--ink-2); }
.ix-filtered .ix-cat { margin: 0; }
@media (min-width: 60em) {
  .ix-hub-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; column-gap: 2.5rem; padding-top: 2rem; }
}
@media (max-width: 59.99em) { .ix-hub-head .ix-demo { width: min(100%, 26rem); justify-self: center; } }
@media (max-width: 40em) { .ix-hub-head .ix-demo { width: min(72%, 15.5rem); } .ix-hub-head .ix-demo figcaption { padding: .35rem .6rem; font-size: .74rem; } }
/* card grids: balanced rows (no half-empty last row for 3, 4, 5 or 6 cards) */
@media (min-width: 40.0625em) { .ix-grid.ix-n3, .ix-grid.ix-n5, .ix-grid.ix-n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ix-grid.ix-n2, .ix-grid.ix-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ix-glist.ix-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .ix-grid.ix-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ix-grid.ix-n2 { grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); } }
.ix-why { margin-top: 3.5rem; padding: clamp(1.25rem, 4vw, 2rem); border-radius: var(--r); background: var(--main-bg); color: var(--main-ink); position: relative; overflow: hidden; }
.ix-why::after { content: ""; position: absolute; right: -2rem; top: -2rem; width: 12rem; height: 12rem; opacity: .14; background-image: conic-gradient(currentColor 25%, transparent 0 50%, currentColor 0 75%, transparent 0); background-size: 24px 24px; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.ix-why h2 { color: inherit; margin-bottom: 1.1rem; position: relative; }
.ix-why ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.1rem 1.5rem; position: relative; }
.ix-why strong { display: block; font-size: 1.02rem; margin-bottom: .25rem; }
.ix-why span { font-size: .93rem; opacity: .84; line-height: 1.5; }

/* ---------------- Guides ---------------- */
.ix-page-head { padding: 1.25rem 0 .5rem; max-width: 46rem; }
.ix-art-grid { display: grid; gap: 2rem; }
@media (min-width: 64em) { .ix-art-grid { grid-template-columns: minmax(0, 46rem) minmax(0, 16rem); justify-content: space-between; } .ix-article .ix-toc { display: none; } }
@media (max-width: 63.99em) { .ix-side { display: none; } }
.ix-side .ix-toc { position: sticky; top: 5rem; margin-top: 1.25rem; }
.ix-toc-go { margin-top: .9rem; width: 100%; white-space: normal; text-align: center; }
.ix-article { max-width: 46rem; min-width: 0; }
.ix-art-head { margin: 1rem 0 1.25rem; }
.ix-meta { margin: .6rem 0 0; font-size: .9rem; color: var(--ink-3); }
.ix-article .ix-content > p:first-child { font-size: 1.1rem; }
.ix-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem; margin: 1.5rem 0; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ix-cta-i { flex: none; width: 2.8rem; height: 2.8rem; border-radius: 12px; display: grid; place-items: center; background: var(--main-bg); color: var(--main-ink); }
.ix-cta-i svg { width: 1.5rem; height: 1.5rem; }
.ix-cta > div { flex: 1 1 14rem; }
.ix-cta-t { margin: 0; font-weight: 640; }
.ix-cta-s { margin: .1rem 0 0; font-size: .9rem; color: var(--ink-2); }
.ix-toc { margin: 1.5rem 0 0; padding: 1rem 1.2rem; border-radius: var(--r-s); background: var(--bg-2); border: 1px solid var(--line); font-size: .95rem; }
.ix-toc-h { margin: 0 0 .4rem; font-weight: 650; }
.ix-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .2rem; }
.ix-toc li { padding: .15rem 0; }
.ix-toc li a { display: inline; }
.ix-sources ul { padding-left: 1.2rem; font-size: .92rem; color: var(--ink-2); }
.ix-sources li { margin: .3rem 0; overflow-wrap: anywhere; }

/* Ad slots: a quiet reserved height while an ad loads (so nothing jumps), none when the slot is empty or unfilled. */
.ad-slot { display: block; width: 100%; max-width: 100%; margin: 0 auto; text-align: center; }
.ad-slot:empty { display: none; }
.ad-slot ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-slot ins.adsbygoogle:not([data-ad-status="filled"]) { max-height: 0 !important; overflow: hidden !important; }
.ad-slot:has(ins.adsbygoogle[data-ad-status="filled"]) { margin: 2.5rem auto; min-height: 250px; }

@media (max-width: 40em) {
  body.ix { font-size: 1rem; }
  .ix-head-in { min-height: 3.4rem; gap: .5rem; }
  .ix-brand { font-size: 1rem; gap: .45rem; }
  .ix-brand .logo { width: 1.75rem; height: 1.75rem; }
  .ix-nav a { padding: .4rem .5rem; font-size: .88rem; }
  .it-bdsel .it-seg button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .it-bdsel .it-seg button { width: 2.75rem; justify-content: center; padding: 0; }
  .it-bdsel .it-bd { width: 1.3rem; height: 1.3rem; }
  .ix-hero { gap: .75rem; margin: .7rem 0 .6rem; }
  .ix-hero-i { width: 2.75rem; height: 2.75rem; border-radius: 12px; }
  .ix-hero-i svg { width: 1.5rem; height: 1.5rem; }
  .ix-hero h1 { font-size: 1.55rem; }
  .ix-lead { font-size: .97rem; margin-top: .35rem; }
  .ix-trust { gap: .35rem; margin-bottom: .8rem; }
  .ix-trust li { font-size: .8rem; }
  .it-drop { min-height: 14rem; padding: 1.25rem .75rem; }
  .it-bar-r { width: 100%; }
  .it-go { width: 100%; }
  .it-hint { width: 100%; text-align: center; order: -1; }
  .it-res-acts .it-btn { flex: 1 1 100%; }
  .it-item { gap: .55rem; }
  .it-thumb { width: 2.75rem; height: 2.75rem; }
  .ix-hub-head { padding: .9rem 0 0; gap: 1rem; }
  .ix-hub-head h1 { font-size: 1.8rem; }
  .ix-hub-head .ix-lead { font-size: .95rem; }
  .ix-search { margin: .8rem 0 .2rem; }
  .ix-search input { min-height: 2.9rem; padding: .65rem 1rem .65rem 2.7rem; font-size: 1rem; }
  .ix-count { min-height: 0; margin: 0; }
  .ix-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: .6rem 0 1.1rem; }
  .ix-chips a { flex: none; }
  .ix-cats { gap: 1.6rem; }
  .ix-cats .ix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .ix-cats .ix-card a, .ix-cats .ix-card-a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; row-gap: .5rem; padding: .75rem .8rem; }
  .ix-cats .ix-card-i { grid-row: auto; width: 2.4rem; height: 2.4rem; }
  .ix-cats .ix-card-t { font-size: .95rem; margin: 0; line-height: 1.25; }
  .ix-cats .ix-card:not(.ix-soon) .ix-card-s { display: none; }
  .ix-cat-h p { display: none; }
  .it-cmp, .it-br-port { max-height: 62vh; }
  .it-grid > .it-f:has(> select), .it-grid > :has(> select.it-in) { grid-column: 1 / -1; }
  select.it-in { font-size: .9rem; }
  .it-prog-l { white-space: normal; overflow: visible; }   /* the step name is read in full on phones (e.g. the one-time model download) */
  .it-br-tools .it-sl { max-width: none; }
}
@media (max-width: 25em) {
  .ix-head-in { padding: 0 .75rem; }
}
/* Fair-use notice (site.js, as on /pdf/): a dark box that reads the dark theme variables of the main site; it is the only div with
   a class directly under body here, so it gets those variables back, and its plain button gets the main site's gold look. */
body.ix > div[class] { --ink: #efe9dd; --ink-2: #aab0a7; --gold: #e2c98f; --gold-hi: #f3e2b8; --link: #e2c98f; --focus: #f3e2b8; --lacquer: #111815; --r-lg: 22px; --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body.ix > div[class] .btn { font: 620 1rem/1.2 var(--font); color: #15110a; background: #d9bd83; border: 0; border-radius: 999px; padding: .8rem 1.25rem; min-height: 2.75rem; cursor: pointer; }
body.ix > div[class] .btn:hover { background: #ecd5a3; }
body.ix > div[class] .btn:focus-visible { outline: 3px solid #f3e2b8; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
