/* watermark.oktio.app — the page's only stylesheet (CSP style-src 'self': no inline
   style anywhere). Tokens and grammar are the about.oktio.app tool pages'
   (qr-code-generator/index.html): monochrome #202020, the brand gradient only on
   the primary button, Inter as the one UI font (only Inter ships with this
   project). Touch targets ≥ 44 px, inputs 16 px (no zoom on focus in iOS Safari). */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #202020; --body: #45474D; --muted: #5F6A7D; --line: rgba(32,32,32,.10); --line-strong: rgba(32,32,32,.22);
  --bg: #FFFFFF; --bg-soft: #FAFAFA; --dark: #080810; --ok: #047857; --err: #8a1c1c; --err-bg: #fff4f4; --warn: #7a4a00; --warn-bg: #fff8e6;
  --accent: #6b4bd6; --focus: #7445f6;
  --btn-grad: linear-gradient(135deg, #7445f6 0%, #dc2743 55%, #c5450c 100%);
  --card-shadow: 0 1px 2px rgba(32,32,32,.04), 0 6px 16px rgba(32,32,32,.03);
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--body); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 750; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
/* Buttons and controls answer on press (apple-design: feedback on pointer-down). */
button, .btn, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ic { width: 20px; height: 20px; flex: 0 0 auto; }
.ic-lg { width: 28px; height: 28px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 12px 16px; border-radius: var(--r-sm); background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── Header and hero: the dark band of the sister pages ── */
.top { background: var(--dark); color: #fff; }
.top-in { display: flex; align-items: center; min-height: 56px; }
.brand { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.brand-name { font-weight: 800; letter-spacing: -.01em; font-size: 18px; color: #fff; }
.brand-by { color: rgba(255,255,255,.66); }
.hero { position: relative; overflow: hidden; background: var(--dark); color: rgba(255,255,255,.74); padding: 32px 0 56px;
  background-image: radial-gradient(560px 360px at 88% -10%, rgba(116,69,246,.22), transparent 70%), radial-gradient(420px 300px at -6% 110%, rgba(253,29,29,.12), transparent 70%); }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.74); margin-bottom: 12px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -.022em; font-weight: 800; max-width: 760px; overflow-wrap: anywhere; hyphens: auto; text-wrap: balance; }
.hero-sub { margin-top: 16px; max-width: 640px; font-size: 1.0625rem; line-height: 1.6; }
.points { list-style: none; padding: 0; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9375rem; color: rgba(255,255,255,.86); }
.points li { display: flex; align-items: center; gap: 8px; }
.points .ic { color: #34d399; width: 18px; height: 18px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.25; cursor: pointer; text-decoration: none; text-align: center; background: var(--ink); color: #fff; transition: transform .1s ease-out, background-color .15s ease, box-shadow .15s ease, opacity .15s ease; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 10px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-brand { background: var(--btn-grad) border-box; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); box-shadow: 0 8px 22px rgba(220,39,67,.18); font-size: 16px; min-height: 52px; }
.btn-brand[aria-disabled="true"] { background: #d9d9de; color: #4b4f58; text-shadow: none; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(32,32,32,.04); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; flex: 0 0 auto; transition: transform .1s ease-out, background-color .15s ease; }
.icon-btn:active { transform: scale(.94); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.chip { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 8px 14px; border-radius: 999px; border: 1px dashed var(--line-strong); background: #fff; color: var(--ink); font-size: 14px; cursor: pointer; transition: transform .1s ease-out; }
.chip:active { transform: scale(.97); }
.link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; display: inline-flex; align-items: center; min-height: 44px; }

/* ── The tool ── */
.tool-sec { background: var(--bg-soft); padding: 32px 0 56px; scroll-margin-top: 0; }
.tool-sec:focus { outline: none; }
/* Narrow: one column in flow order — photos, the preview (sticky while the
   settings below are edited, plan 12), watermark, create. A flex column, so the
   sticky preview's containing block is the whole tool, not one grid row. */
.tool { display: flex; flex-direction: column; gap: 16px; }
.step { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; box-shadow: var(--card-shadow); padding: 20px; }
.step legend, .step .legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font-size: 1.125rem; font-weight: 750; color: var(--ink); float: left; width: 100%; }
.step legend + *, .step .legend + * { clear: both; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.step:disabled { opacity: .6; }

.drop { display: flex; flex-direction: column; gap: 8px; }
.drop-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 120px; padding: 18px; border: 2px dashed var(--line-strong); border-radius: var(--r-md); background: var(--bg-soft); color: var(--ink); font-weight: 650; font-size: 1rem; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .1s ease-out; }
.drop-btn:hover { background: #f3f1fb; border-color: rgba(116,69,246,.5); }
.drop-btn:active { transform: scale(.99); }
.drop.over .drop-btn { background: #efeaff; border-color: var(--focus); border-style: solid; }
.drop .btn-sm { align-self: flex-start; }
.hint { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.status { font-size: .9375rem; color: var(--ink); margin-top: 10px; }
.status:empty { display: none; }
.input-sum { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sum-line { font-weight: 650; color: var(--ink); }
.note { padding: 12px 14px; border-radius: var(--r-sm); border-left: 3px solid var(--focus); background: var(--bg-soft); font-size: .9375rem; line-height: 1.5; color: var(--body); }
.note-warn { border-left-color: #c97a00; background: var(--warn-bg); color: var(--warn); }
.alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--err-bg); border: 1px solid rgba(220,39,67,.25); color: var(--err); font-size: .9375rem; line-height: 1.5; }
.alert p + p { margin-top: 4px; }
.skipped { border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.skipped summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 12px; cursor: pointer; list-style: none; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.skipped summary::-webkit-details-marker, .faq summary::-webkit-details-marker, .custom summary::-webkit-details-marker { display: none; }
.skipped ul { list-style: none; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; font-size: .875rem; overflow-wrap: anywhere; }
.chev { transition: transform .2s ease; color: var(--muted); }
details[open] > summary .chev { transform: rotate(180deg); }

.field { margin-top: 16px; min-width: 0; }
.field:first-of-type { margin-top: 0; }
.field label, .field .lbl { display: block; font-size: .875rem; font-weight: 650; color: var(--ink); margin-bottom: 6px; line-height: 1.35; }
.opt { font-weight: 500; color: var(--muted); }
.field input[type="text"] { display: block; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; color: var(--ink); font-size: 16px; -webkit-appearance: none; appearance: none; }
.field input[type="text"]:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #b4233a; }
.field .hint { margin-top: 6px; }
.err { margin-top: 6px; font-size: .875rem; font-weight: 600; color: #b4233a; }
.err:empty { display: none; }
.field.check { display: flex; gap: 12px; align-items: flex-start; }
/* A 44 × 44 px target with a 24 px box drawn from two own SVGs (CSP img-src 'self': no data: URI). */
.field.check input { flex: 0 0 auto; width: 44px; height: 44px; margin: 0 -10px 0 -10px; padding: 0; border: 0; border-radius: 10px; -webkit-appearance: none; appearance: none; background: url(/images/checkbox-off.svg) center / 44px 44px no-repeat; cursor: pointer; transition: transform .1s ease-out; }
.field.check input:checked { background-image: url(/images/checkbox-on.svg); }
.field.check input:active { transform: scale(.94); }
.field.check input:focus-visible { outline: 2px solid var(--focus); outline-offset: -6px; }
@media (forced-colors: active) { .field.check input { -webkit-appearance: auto; appearance: auto; width: 24px; height: 24px; margin: 10px 0 0; background: none; } }
.field.check label { display: flex; align-items: center; min-height: 44px; margin: 0; cursor: pointer; }
.field.check .hint { margin-top: 0; }

.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #f0f0f3; }
.seg button { flex: 1 1 auto; min-height: 40px; min-width: 44px; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--body); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s ease, color .15s ease, transform .1s ease-out; }
.seg button:active { transform: scale(.97); }
.seg button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(32,32,32,.14); }
.seg button:disabled { opacity: .5; cursor: not-allowed; }
/* 44 px targets: 40 px button + the group's 4 px padding count as the hit area on
   one side only, so the wide groups use full 44 px buttons. */
.seg-wide button { min-height: 44px; }

.custom { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.custom summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 14px; cursor: pointer; list-style: none; font-weight: 650; color: var(--ink); }
.custom-in { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.custom-in .field { margin-top: 0; }
.range { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; }
.range label { font-size: .875rem; font-weight: 650; color: var(--ink); }
.range output { font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--body); }
.range input, .range .hint { grid-column: 1 / -1; }
.range input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--focus); cursor: pointer; background: transparent; }

.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sizes button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease-out; }
.sizes button:active { transform: scale(.98); }
.sizes button b { font-size: .9375rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.sizes button span { font-size: .8125rem; line-height: 1.35; color: var(--muted); }
.sizes button[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.remember { margin-top: 18px; }
#resetBtn { margin-top: 10px; }

/* Preview */
.pv { position: sticky; top: 0; z-index: 5; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; box-shadow: 0 6px 20px rgba(32,32,32,.08); padding: 12px; }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.pv-title { font-size: 1rem; }
.pv-head .seg button { font-size: 13px; padding: 8px 10px; }
.pv-head .lbl-short { display: none; }
.pv-stage { position: relative; display: grid; place-items: center; min-height: 160px; border-radius: var(--r-sm); background: #17171c; overflow: hidden; }
.pv-stage canvas { display: block; max-width: 100%; max-height: var(--pv-max, 58vh); width: auto; height: auto; }
/* Actual size: one output pixel per CSS pixel, scrollable both ways (keyboard: the
   stage is focusable). Phone width: the 390 px frame of a phone screen. */
.pv-stage[data-view="actual"] { display: block; overflow: auto; max-height: var(--pv-max, 58vh); place-items: initial; }
.pv-stage[data-view="actual"] canvas { max-width: none; max-height: none; }
.pv-stage[data-view="phone"] canvas { width: min(390px, 100%); max-height: none; }
.pv-stage[data-view="phone"] { padding: 12px 0; max-height: var(--pv-max, 58vh); overflow: auto; display: block; }
.pv-stage[data-view="phone"] canvas { margin: 0 auto; border-radius: 6px; }
.pv-skel { position: absolute; inset: 0; background: linear-gradient(100deg, #1d1d23 30%, #2a2a31 50%, #1d1d23 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.pv-msg { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 8px; background: rgba(8,8,16,.82); color: #fff; font-size: .875rem; line-height: 1.4; text-align: center; }
.pv-msg:empty { display: none; }
.pv-nav { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.pv-pos { flex: 1 1 auto; min-width: 0; text-align: center; font-size: .875rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-pos b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Step 3 */
.confirm { padding: 12px 14px; border-radius: var(--r-sm); background: #f3f1fb; border: 1px solid rgba(116,69,246,.2); color: var(--ink); font-weight: 600; line-height: 1.45; margin-bottom: 12px; overflow-wrap: anywhere; }
.confirm:empty { display: none; }
.missing { list-style: none; padding: 0; margin-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: .875rem; color: var(--muted); }
.missing:empty { display: none; }
.missing li::before { content: "• "; }
.keep-open { margin-top: 10px; }
.run-h { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.bar { height: 10px; border-radius: 999px; background: #ececf0; overflow: hidden; }
/* No transition: the bar shows done / total in every frame (a restarted ease-out never caught up, T-5128). */
.bar-fill { height: 100%; width: 0; border-radius: inherit; background: var(--btn-grad); }
.run-count { margin: 10px 0 14px; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
/* The separator only once there is a time estimate (design audit T-5143). */
#runLeft:not(:empty)::before { content: '·'; margin: 0 .4em; }
.res-h { font-size: 1.125rem; font-weight: 750; color: var(--ink); line-height: 1.35; }
.res-h:focus { outline: none; }
.res-list { list-style: none; padding: 0; margin: 8px 0 12px; display: flex; flex-direction: column; gap: 4px; font-size: .9375rem; }
#resBox .skipped { margin-bottom: 10px; }
.outs { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.share-parts { display: flex; flex-direction: column; gap: 8px; }
.share-parts:empty { display: none; }
#moreBtn { margin-bottom: 12px; }
.res-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#againHint { margin-top: 8px; }

/* Thumbnails */
.grid-sec { margin-top: 24px; }
.grid-sec h3 { font-size: 1.125rem; margin-bottom: 12px; }
.thumbs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.thumb { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; overflow: hidden; box-shadow: var(--card-shadow); }
.thumb-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #17171c; cursor: zoom-in; aspect-ratio: 1; overflow: hidden; }
/* Out of flow, so a portrait photo's intrinsic height never stretches the square tile. */
.thumb-open img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.thumb-foot { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; }
.thumb-name { flex: 1 1 auto; min-width: 0; font-size: .8125rem; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb-save { flex: 0 0 44px; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: var(--ink); }
.thumb-save:hover { background: var(--bg-soft); }

.privacy-line { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; font-size: .9375rem; color: var(--ok); font-weight: 500; }

/* 1 : 1 dialog: full screen on phones */
.dlg { width: min(1240px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-md); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.dlg::backdrop { background: rgba(8,8,16,.72); }
.dlg[open] { display: flex; flex-direction: column; }
.dlg-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.dlg-title { flex: 1 1 auto; min-width: 0; font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg-body { overflow: auto; background: #17171c; min-height: 0; flex: 1 1 auto; }
.dlg-body img { display: block; margin: 0 auto; max-width: none; }

/* Discard confirmation: a small alert, centred on every width (an alert, not a sheet) */
.ask { width: min(440px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: var(--r-md); background: #fff; color: var(--body); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.ask::backdrop { background: rgba(8,8,16,.72); }
.ask-title { font-size: 1.125rem; line-height: 1.3; font-weight: 750; color: var(--ink); }
.ask-text { margin-top: 8px; line-height: 1.5; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
/* Side by side only while both labels fit on one line; otherwise each takes a full row (Back above). */
.ask-actions .btn { flex: 1 1 auto; white-space: nowrap; }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: #721717; }

/* ── Sections ── */
section.soft { background: var(--bg-soft); }
#can, #privacy, #faq, #about { padding: 56px 0; }
#can h2, #privacy h2, #faq h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.015em; margin-bottom: 20px; }
.h-small { font-size: 1.125rem !important; margin-bottom: 8px !important; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--card-shadow); padding: 20px; min-width: 0; }
.card h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.ticks, .crosses { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li, .crosses li { position: relative; padding-left: 26px; line-height: 1.5; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.ticks li::before { content: "✓"; color: var(--ok); }
.crosses li::before { content: "✕"; color: #b4233a; }
.lead { margin-top: 20px; font-size: 1.0625rem; color: var(--ink); font-weight: 600; }
#can .note { margin-top: 14px; }
.small { margin-top: 12px; font-size: .875rem; color: var(--muted); }
#privacy p + p, #about p + p { margin-top: 10px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--card-shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); line-height: 1.35; }
.faq details p { padding: 0 16px 16px; line-height: 1.65; }

.foot { background: var(--dark); color: rgba(255,255,255,.66); padding: 32px 0; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot-h { font-weight: 600; color: rgba(255,255,255,.8); margin-bottom: 4px; }
.langs ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; margin-left: -10px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: rgba(255,255,255,.7); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot a[aria-current="page"] { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.foot :focus-visible { outline-color: #fff; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; margin-left: -10px; align-self: flex-end; }
.cr { padding: 0 10px; }

.unsupported { padding: 16px 18px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(201,122,0,.3); font-weight: 600; line-height: 1.5; }

/* ── Wide: steps left, the preview right and sticky beside them ── */
@media (min-width: 1024px) {
  .tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "s1 pv" "s2 pv" "s3 pv"; align-items: start; gap: 16px 24px; }
  .s1 { grid-area: s1; } .s2 { grid-area: s2; } .s3 { grid-area: s3; }
  .pv { grid-area: pv; top: 16px; --pv-max: calc(100vh - 170px); }
  .tool-sec { padding: 40px 0 72px; }
}
@media (max-width: 1023.98px) {
  /* Sticky at the top while step 2 is edited: kept short so the fields stay usable. */
  .pv { --pv-max: 30svh; border-radius: 0 0 var(--r-md) var(--r-md); margin: 0 -24px; padding: 10px 24px 12px; }
  .pv-head { margin-bottom: 8px; }
  .pv-stage { min-height: 120px; }
  /* While the batch runs and on the result, the settings are locked: the preview stops sticking. */
  .tool[data-phase="running"] .pv, .tool[data-phase="result"] .pv { position: relative; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .pv { margin: 0 -16px; padding: 8px 16px 10px; }
  .hero { padding: 24px 0 40px; }
  .step { padding: 16px; }
  .two { grid-template-columns: 1fr; }
  .sizes { grid-template-columns: 1fr; }
  .sizes button { min-height: 52px; flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  /* One row for the view switch, with the short labels (all 44 px); the heading stays for screen readers only. */
  .pv-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .pv-head .seg { width: 100%; flex-wrap: nowrap; }
  .pv-head .seg button { flex: 1 1 0; min-width: 0; padding: 8px 6px; }
  .pv-head .lbl-long { display: none; }
  .pv-head .lbl-short { display: inline; }
  .res-actions { grid-template-columns: 1fr; }
  .dlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .ask-actions .btn { flex-basis: 100%; }
  #can, #privacy, #faq, #about { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  /* transition-property defaults to all: the .001ms above still eases the width, and WebKit
     drew the bar 20–67 pp behind the count (T-5142). The bar gets no transition at all. */
  .bar-fill { transition: none !important; }
  .btn:active, .icon-btn:active, .chip:active, .seg button:active, .drop-btn:active, .sizes button:active, .field.check input:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .pv-msg { background: #080810; }
}
@media (prefers-contrast: more) {
  .step, .card, .pv, .faq details { border-color: var(--ink); }
  .hint, .opt { color: var(--body); }
}
