@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-display:swap;font-weight:200 800;src:url(../fonts/bricolage-grotesque-latin-opsz-normal.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:"Bricolage Grotesque";font-style:normal;font-display:swap;font-weight:200 800;src:url(../fonts/bricolage-grotesque-latin-ext-opsz-normal.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}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:100 900;src:url(../fonts/onest-latin-wght-normal.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:"Onest";font-style:normal;font-display:swap;font-weight:100 900;src:url(../fonts/onest-latin-ext-wght-normal.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}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:100 900;src:url(../fonts/onest-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-display:swap;font-weight:400;src:url(../fonts/ibm-plex-mono-latin-400-normal.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:"IBM Plex Mono";font-style:normal;font-display:swap;font-weight:500;src:url(../fonts/ibm-plex-mono-latin-500-normal.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}
/* ScrubPic 2.0.0 */
/* Layout: one centred column. Empty: short headline + a big drop zone as the focal point. With files: the drop zone folds into a slim bar and the results take over. */
:root {
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --ink: #141A24;
  --muted: #5A6475;
  --line: #D9DEE6;
  --accent: #2A47E8;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3E8FD;
  --strike: rgba(42, 71, 232, 0.45);
  --good: #17805A;
  --good-soft: #DDF2E8;
  --warn: #9A5B00;
  --warn-soft: #FBEBCF;
  --bad: #B3341B;
  --bad-soft: #F8E1DB;
  --shadow: 0 1px 2px rgba(20, 26, 36, 0.06), 0 6px 20px -12px rgba(20, 26, 36, 0.18);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1016; --surface: #151A22; --ink: #E7EBF2; --muted: #98A2B4; --line: #262D39;
    --accent: #8197FF; --accent-ink: #0B0F1A; --accent-soft: #1C2445; --strike: rgba(129, 151, 255, 0.5);
    --good: #5BCB9C; --good-soft: #12291F; --warn: #E6B04F; --warn-soft: #2E2410; --bad: #F08A72; --bad-soft: #321914;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -14px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1016; --surface: #151A22; --ink: #E7EBF2; --muted: #98A2B4; --line: #262D39;
  --accent: #8197FF; --accent-ink: #0B0F1A; --accent-soft: #1C2445; --strike: rgba(129, 151, 255, 0.5);
  --good: #5BCB9C; --good-soft: #12291F; --warn: #E6B04F; --warn-soft: #2E2410; --bad: #F08A72; --bad-soft: #321914;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -14px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

/* gutters */
.top-inner, .frame, .foot-inner {
  max-width: 920px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* header */
.top { border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.wordmark { display: inline-block; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; font-variation-settings: "opsz" 48; }
.wordmark b { color: var(--accent); font-weight: inherit; }
.wordmark.small { font-size: 1.05rem; }
.top-tag { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.01em; }

/* stage */
.stage { display: grid; gap: 22px; padding-block: clamp(28px, 6vh, 64px) 56px; }
.hero { display: grid; gap: 10px; justify-items: center; text-align: center; }
h1 { margin: 0; font-family: var(--display); font-weight: 750; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; font-variation-settings: "opsz" 96; max-width: 16ch; }
.h1-second { color: var(--accent); }
.lede { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* the drop zone: the main thing on the page */
.drop {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 18px; text-align: center; cursor: pointer;
  min-height: clamp(280px, 44vh, 440px); padding: 36px 24px;
  border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 24px;
  background: var(--surface);
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 14%, transparent) 1px, transparent 1.4px);
  background-size: 18px 18px;
  transition: border-color .15s, background-color .15s, transform .15s, box-shadow .15s;
}
.drop:hover { border-color: var(--accent); box-shadow: 0 18px 50px -30px color-mix(in srgb, var(--accent) 70%, transparent); }
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
body.dragging .drop { border-style: solid; border-color: var(--accent); background-color: var(--accent-soft); transform: scale(1.012); }
.drop-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); transition: transform .2s; }
.drop-ic svg { width: 42px; height: 42px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.drop:hover .drop-ic, body.dragging .drop-ic { transform: translateY(-4px); }
.drop-text { display: grid; gap: 6px; }
.drop-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); letter-spacing: -0.02em; }
.drop-title .compact { display: none; }
.when-coarse { display: none; }
@media (pointer: coarse) { .when-fine { display: none; } .when-coarse { display: inline; } }
.drop-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 1.05rem; }
.drop-formats { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; }

/* what it finds: struck-through chips, no sentences */
.finds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.finds li { padding: 5px 12px; border-radius: 999px; font-size: 0.86rem; color: var(--muted); border: 1px solid var(--line); background: var(--surface); text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* with files: hero and chips step aside, drop zone becomes a slim bar */
body.has-files .hero, body.has-files .finds { display: none; }
body.has-files .stage { padding-block-start: 24px; }
body.has-files .drop {
  min-height: 0; grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; align-items: center; text-align: left;
  gap: 14px; padding: 12px 14px; border-radius: 16px; background-image: none;
}
body.has-files .drop-ic { width: 44px; height: 44px; }
body.has-files .drop-ic svg { width: 22px; height: 22px; }
body.has-files .drop-title { font-size: 1.05rem; }
body.has-files .drop-title .full { display: none; }
body.has-files .drop-title .compact { display: inline; }
body.has-files .drop-btn { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }
@media (max-width: 480px) { body.has-files .drop-formats { display: none; } }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.86rem; color: var(--muted); margin-right: 4px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--line); transition: background-color .15s; flex: none; }
.switch .thumb { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track .thumb { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2.5px solid var(--accent); outline-offset: 2px; }

/* results */
.results { min-width: 0; display: grid; gap: 14px; }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; min-height: 44px; }
.summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 0.95rem; color: var(--muted); min-width: 0; }
.summary strong { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.badge { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--muted); }
.btn.quiet:hover { color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: default; }

.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 12px; min-width: 0; }
.card.example { border-style: dashed; box-shadow: none; }
.card-top { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .ic { width: 24px; height: 24px; }
.meta { min-width: 0; display: grid; gap: 2px; }
.fname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsub { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.neutral { background: var(--bg); color: var(--muted); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.busy { background: var(--accent-soft); color: var(--accent); }
.chip.partial { background: var(--accent-soft); color: var(--accent); }
.chip.busy::before { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* what the file reveals */
.reveal { margin: 0; display: grid; gap: 3px; font-size: 0.98rem; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.eyebrow { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* choose what to delete */
.choose-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 32px; }
.choose-btn { display: inline-flex; align-items: center; gap: 6px; }
.choose-btn .ic { width: 1.1em; height: 1.1em; }
.hint { font-size: 0.82rem; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--accent); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* groups of hidden info */
.groups { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.grp { display: grid; grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr); gap: 4px 14px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.grp:last-child { border-bottom: 0; }
.card.choosing .grp { grid-template-columns: 26px minmax(0, 11.5rem) minmax(0, 1fr); }
.gname { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.glabel { font-size: 0.9rem; font-weight: 550; color: var(--ink); }
label.glabel { cursor: pointer; }
.grp .val-wrap { display: inline; min-width: 0; }
.grp .val { position: relative; font-family: var(--mono); font-size: 0.8rem; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.map-link { font-size: 0.8rem; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.map-link:hover { text-decoration: underline; }
.facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 12px; align-items: baseline; min-width: 0; }
.facts dt { font-size: 0.8rem; color: var(--muted); }
.facts dd { margin: 0; justify-self: start; position: relative; font-family: var(--mono); font-size: 0.8rem; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.facts dd.strong { font-weight: 600; }

/* the tick box: ticked = will be deleted */
.tick { appearance: none; -webkit-appearance: none; margin: 0; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; align-self: center; transition: background-color .12s, border-color .12s; }
.tick::after { content: ""; width: 10px; height: 6px; border-left: 2.2px solid var(--accent-ink); border-bottom: 2.2px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.tick:checked { background: var(--accent); border-color: var(--accent); }
.tick:checked::after { opacity: 1; }
.tick:disabled { cursor: not-allowed; opacity: .45; }
.tick:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

/* removed values are struck through; kept ones are not */
.mark {
  background-image: linear-gradient(var(--strike), var(--strike)); background-repeat: no-repeat;
  background-position: 0 58%; background-size: 100% 1.5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 2px; margin: 0 -2px;
  animation: strike .42s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms + 120ms);
}
@keyframes strike { from { background-size: 0% 1.5px; } }
.is-kept .mark { background-image: none; animation: none; }
.grp.is-kept .val, .grp.is-kept .facts dd { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.01em; white-space: nowrap; }
.pill .ic { width: 0.95em; height: 0.95em; stroke-width: 2.4; }
.pill.kept { background: var(--good-soft); color: var(--good); }
.pill.always { background: var(--bg); color: var(--muted); font-weight: 550; }
.pill.small { font-size: 0.68rem; padding: 1px 7px; }

/* every detail */
.all { border-top: 1px solid var(--line); padding-top: 4px; }
.all > summary { cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--accent); padding: 6px 0; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.all > summary::-webkit-details-marker { display: none; }
.all > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.all[open] > summary::before { transform: rotate(45deg) translate(-1px, -1px); }
.all > summary:hover { text-decoration: underline; }
.dgroup { padding: 10px 0 4px; display: grid; gap: 6px; }
.dgroup h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 650; }
.dgroup dl { margin: 0; display: grid; grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr); gap: 4px 14px; }
.dgroup dt { font-size: 0.82rem; color: var(--ink); overflow-wrap: anywhere; }
.dgroup dd { margin: 0; font-family: var(--mono); font-size: 0.78rem; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.dgroup dd.is-kept { color: var(--ink); }

@media (max-width: 560px) {
  .grp, .card.choosing .grp { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .card.choosing .grp { grid-template-columns: 26px minmax(0, 1fr); }
  .card.choosing .grp > :last-child { grid-column: 2; }
  .dgroup dl { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .dgroup dd { margin-bottom: 6px; }
}

.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.kept-line { font-size: 0.82rem; color: var(--muted); min-width: 0; flex: 1 1 16rem; }
.kept-line b { color: var(--good); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.note { margin: 0; font-size: 0.85rem; padding: 8px 10px; border-radius: 9px; background: var(--warn-soft); color: var(--warn); }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.empty-msg { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* footer */

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 20;
  max-width: min(92vw, 30rem); padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--bg);
  font-size: 0.9rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
}

/* phone: keep bulk actions in reach */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
@media (max-width: 760px) {
  .results-head.sticky { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); padding-block: 8px; margin-block: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- site-wide: navigation, long-form content, ad spaces, side column, footer ---------- */
.top-nav { display: flex; align-items: center; gap: 18px; }
.top-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--accent); }
@media (max-width: 440px) { .top-tag { display: none; } }

/* side column for ad C on big screens */
body.has-rail .frame, body.has-rail .top-inner, body.has-rail .foot-inner { max-width: 1300px; }
body.has-rail .frame { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.rail-sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); padding-block: 40px; }
.main-col { min-width: 0; }

/* ad spaces */
.ad { display: grid; gap: 4px; justify-items: stretch; margin-block: 8px; min-width: 0; }
.ad-label { margin: 0; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.ad-slot { min-width: 0; overflow: hidden; }
.ad-A .ad-slot { min-height: 90px; }
.ad-B .ad-slot { min-height: 120px; }
.ad-C .ad-slot { min-height: 600px; width: 300px; }
.ad-E .ad-slot { min-height: 200px; }
@media (max-width: 600px) { .ad-A .ad-slot { min-height: 60px; } .ad-E .ad-slot { min-height: 160px; } }
.files > .ad { list-style: none; margin-block: 14px; }
body.has-files .ad-A { display: none; }
.ad.is-placeholder .ad-slot {
  display: grid; place-items: center; border-radius: 12px; border: 1.5px dashed var(--line);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted);
  background: repeating-linear-gradient(45deg, var(--surface) 0 10px, var(--bg) 10px 20px);
}

/* long-form content under the tool, and guide pages */
.content { display: grid; gap: 36px; padding-block: 8px 64px; }
.content.page { padding-top: clamp(28px, 5vh, 52px); }
.section { display: grid; gap: 14px; min-width: 0; }
.section > h2, .article h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem); letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.prose, .article { font-size: 1.04rem; line-height: 1.68; }
.prose > *, .article > * { margin: 0; max-width: 68ch; }
.prose { display: grid; gap: 14px; }
.prose h2, .article h2 { margin-top: 18px; }
.prose h3, .article h3 { margin: 6px 0 0; font-size: 1.1rem; font-weight: 650; }
.prose a, .article a, .faq a, .page-intro a { color: var(--accent); text-underline-offset: 2px; }
.prose ul, .prose ol, .article ul, .article ol { padding-left: 1.3em; display: grid; gap: 6px; }
.prose li::marker, .article li::marker { color: var(--accent); }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.1em; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.85rem; }
.defs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; }
.defs dt { font-weight: 650; }
.defs dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .defs { grid-template-columns: minmax(0, 1fr); gap: 2px; } .defs dd { margin-bottom: 8px; } }
.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 0.94rem; line-height: 1.45; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--bg); }
.note { margin: 0; font-size: 0.92rem; color: var(--muted); }

.link-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.link-cards a { display: grid; gap: 4px; height: 100%; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.link-cards a:hover { border-color: var(--accent); transform: translateY(-1px); }
.link-cards strong { font-weight: 650; }
.link-cards span { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--muted); line-height: 1.6; max-width: 68ch; }

.crumbs { font-size: 0.86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.article { display: grid; gap: 14px; }
.article h1, .page-intro h1 { margin: 0; font-family: var(--display); font-weight: 750; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; max-width: 22ch; }
.article-meta { font-size: 0.86rem; color: var(--muted); }
.page-intro { display: grid; gap: 10px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--accent-soft); max-width: 68ch; }
.cta p { margin: 0; }
.cta .btn { text-decoration: none; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-inner { padding-block: 32px 28px; display: grid; gap: 24px; font-size: 0.9rem; color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }
.foot-about p { margin: 8px 0 0; max-width: 34ch; line-height: 1.5; }
.foot h2 { margin: 0 0 8px; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); font-weight: 650; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.fine { margin: 0; font-size: 0.8rem; border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

.skip{position:absolute;left:-9999px}.skip:focus{left:16px;top:8px;z-index:50;background:var(--surface);padding:8px 12px;border-radius:8px}