/* Layout: AivraSol look. White pages, orange accent, slate ink, condensed display headings; tools first, article + sidebar below */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F6F7F8;
  --ink: #191F24;
  --slate: #333F48;
  --muted: #5F666B;
  --line: #E1E3E5;
  --accent: #FF5B35;
  --accent-hover: #F04A22;
  --accent-text: #B8380F;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(255, 91, 53, .08);
  --mark: rgba(255, 91, 53, .2);
  --good: #1A6F45;
  --bad: #B3261E;
  --warn: #A35F00;
  --shadow: 0 1px 10px rgba(0, 0, 0, .08), 0 2px 15px rgba(0, 0, 0, .04);
  --c-image: #0A66C2; --c-pdf: #E00000; --c-text: #6A47DB; --c-random: #B86F00;
  --c-time: #D62976; --c-calc: #1E7A4C; --c-convert: #1769FF; --c-life: #FF5B35;
  --c-health: #1FAF55; --c-money: #0E7C86; --c-social: #E2457F; --c-qr: #333F48;
  --c-media: #C2185B; --c-study: #3F51B5; --c-dev: #2E7D32; --c-home: #8D5A2B; --c-device: #00838F;
  --f-display: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-num: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 4px;
  --header-h: 68px;
}
/* Light by default; dark only when the visitor picks it with the switch (remembered on their device). */
:root[data-theme="dark"] {
  --bg: #12161A; --surface: #191F24; --surface-2: #20272D; --ink: #F1F3F4; --slate: #D5DADD; --muted: #A3AAB0; --line: #2E373E;
  --accent: #FF6B47; --accent-hover: #FF825F; --accent-text: #FF9677; --accent-ink: #12161A; --accent-soft: rgba(255, 107, 71, .12); --mark: rgba(255, 107, 71, .28);
  --good: #4CC98A; --bad: #FF8A80; --warn: #F5B544; --shadow: 0 1px 10px rgba(0, 0, 0, .5);
  --c-image: #5AA4F0; --c-pdf: #FF7070; --c-text: #A893FF; --c-random: #F5B544; --c-time: #F07AB4; --c-calc: #4CC98A; --c-convert: #7C9BFF; --c-life: #FF8A66;
  --c-health: #4CD983; --c-money: #4CC3CC; --c-social: #FF86AE; --c-qr: #D5DADD; --c-media: #F06292; --c-study: #8C9EFF; --c-dev: #81C784; --c-home: #D7A06A; --c-device: #4DD0E1;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--muted); font: 400 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-underline-offset: 3px; } /* darker orange: readable on white (WCAG AA) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 1.25em; height: 1.25em; flex: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}

/* ---------- Header + hamburger ---------- */
.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.site .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--slate); text-decoration: none; font: 400 30px/1 var(--f-display); letter-spacing: .02em; margin-right: auto; }
.brand svg { width: 32px; height: 32px; }
.brand b { color: var(--accent); font-weight: 400; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; padding: 10px 11px; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--accent-text); border-bottom-color: var(--accent); }
.main-nav a.cta { margin-left: 10px; color: var(--accent-ink); background: var(--accent); border: 0; border-radius: var(--r); padding: 12px 18px; }
.main-nav a.cta:hover { background: var(--accent-hover); }
.nav-toggle { display: none; align-items: center; gap: 6px; height: 42px; padding: 0 14px 0 11px; border: 1.5px solid #FFD6C8; background: var(--surface); color: var(--accent-text); border-radius: 999px; font: 600 13px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .x { display: none; }
.nav-open .nav-toggle { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.nav-open .nav-toggle .x { display: inline; }
.nav-open .nav-toggle .bars { display: none; }
.nav-shade { display: none; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); right: 0; bottom: 0; z-index: 49; width: min(380px, 100%); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 20px; background: var(--surface); border-left: 1px solid var(--line); overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s .3s; }
  .main-nav a { display: flex; align-items: center; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .main-nav a svg { width: 20px; height: 20px; color: var(--cat, var(--accent)); }
  .main-nav a.cta { margin: 20px 0 0; justify-content: center; }
  .nav-open .main-nav { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
  .nav-open .nav-shade { display: block; position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 48; background: rgba(25, 31, 36, .45); }
  .nav-open { overflow: hidden; }
}
@media (min-width: 1081px) { .main-nav a svg { display: none; } }
.announce { background: var(--slate); color: #fff; font-size: 14px; text-align: center; padding: 9px 16px; }
.announce a { color: #FFD6C8; }
.ad-slot { margin: 24px auto; text-align: center; min-height: 0; }
.ad-slot:empty { display: none; }

/* ---------- Footer ---------- */
footer.foot { margin-top: 80px; background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer.foot .wrap { padding-block: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
footer.foot h2, footer.foot .foot-h { font: 700 13px/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 0 0 12px; }
footer.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
footer.foot a { color: var(--muted); text-decoration: none; }
footer.foot a:hover { color: var(--ink); }
footer.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Icon tiles (colour per category) ---------- */
.tile { --cat: var(--accent); display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; flex: none; color: var(--cat); background: color-mix(in srgb, var(--cat) 13%, var(--surface)); }
.tile svg { width: 22px; height: 22px; }
.tile.lg { width: 60px; height: 60px; border-radius: 8px; }
.tile.lg svg { width: 28px; height: 28px; }
[data-cat="image"] { --cat: var(--c-image); } [data-cat="pdf"] { --cat: var(--c-pdf); } [data-cat="text"] { --cat: var(--c-text); }
[data-cat="random"] { --cat: var(--c-random); } [data-cat="time"] { --cat: var(--c-time); } [data-cat="calc"] { --cat: var(--c-calc); }
[data-cat="convert"] { --cat: var(--c-convert); } [data-cat="life"] { --cat: var(--c-life); }
[data-cat="health"] { --cat: var(--c-health); } [data-cat="money"] { --cat: var(--c-money); } [data-cat="social"] { --cat: var(--c-social); } [data-cat="qr"] { --cat: var(--c-qr); }
[data-cat="media"] { --cat: var(--c-media); } [data-cat="study"] { --cat: var(--c-study); } [data-cat="dev"] { --cat: var(--c-dev); } [data-cat="home"] { --cat: var(--c-home); } [data-cat="device"] { --cat: var(--c-device); }

/* ---------- Homepage ---------- */
.hero { padding-block: 56px 28px; }
.hero h1 { font: 400 clamp(48px, 8vw, 92px)/.95 var(--f-display); letter-spacing: .005em; color: var(--slate); margin: 0 0 18px; max-width: 14ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero > p { font-size: 18px; color: var(--muted); max-width: 58ch; margin: 0 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 13.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--accent); }
.hero { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.search { position: relative; max-width: 620px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input[type="search"] { width: 100%; font: 400 17px var(--f-body); padding: 17px 18px 17px 50px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.stats li { display: inline-flex; align-items: center; gap: 6px; }
.stats svg { width: 16px; height: 16px; color: var(--accent); }
.catnav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; margin-top: 18px; scrollbar-width: none; }
.catnav a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 9px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.catnav a svg { width: 16px; height: 16px; color: var(--cat); }
.catnav a:hover { border-color: var(--cat); }
.cat { margin-top: 44px; scroll-margin-top: 80px; }
.cat-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cat-head h2 { font: 400 38px/1 var(--f-display); letter-spacing: .01em; color: var(--slate); margin: 0; }
.cat-head p { color: var(--muted); margin: 0; }
.no-results { color: var(--muted); padding: 30px 0; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: color-mix(in srgb, var(--cat) 55%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.card div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card strong { font: 600 16px/1.3 var(--f-body); color: var(--ink); }
.card span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.badge { align-self: flex-start; font: 700 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; padding: 4px 7px; border-radius: 6px; color: var(--accent-text); background: var(--accent-soft); }

/* ---------- Tool page head ---------- */
main { padding-block: 24px 0; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.tool-head { display: flex; gap: 16px; align-items: center; margin: 18px 0 10px; }
.tool-head h1 { font: 400 clamp(40px, 6vw, 64px)/1 var(--f-display); letter-spacing: .01em; color: var(--slate); margin: 0; text-wrap: balance; }
.answer { font-size: 18px; line-height: 1.6; max-width: 75ch; margin: 0 0 24px; color: var(--muted); }
.answer strong { color: var(--ink); }

/* ---------- Tool panel ---------- */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; box-shadow: var(--shadow); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } .tool { padding: 16px; } }
.inputs { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.group-title { font: 700 12px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f > span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.check { display: flex; align-items: center; gap: 9px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
input:not([type]), input[type="text"], input[type="number"], input[type="time"], input[type="date"], input[type="datetime-local"], input[type="url"], input[type="password"], input[type="search"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit; font-size: 16px; width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink);
}
input[type="number"], input[type="time"], input[type="date"], input[type="datetime-local"] { font-family: var(--f-num); font-size: 15px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
input[type="color"] { width: 56px; height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
textarea { min-height: 220px; resize: vertical; line-height: 1.55; }
textarea.mono { font-family: var(--f-num); font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

.list { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding-block: 12px; border-bottom: 1px solid var(--line); }
.row:first-child { padding-top: 0; }
.row .f { flex: 1 1 88px; }
.row .f-name { flex: 2 1 150px; }
.row .check { flex: 0 0 auto; padding-bottom: 10px; }
.rm { flex: none; width: 40px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.rm:hover { color: var(--bad); border-color: var(--bad); }

.add, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; font: 500 14px/1.2 var(--f-body); letter-spacing: .04em; text-transform: uppercase; padding: 12px 18px; border-radius: var(--r); cursor: pointer; text-decoration: none; align-self: flex-start; }
.add { border: 1px dashed var(--accent); color: var(--accent-text); background: transparent; }
.add:hover { background: var(--accent-soft); }
.btn { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; color: var(--accent-text); border-color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: var(--accent-ink); }
.btn.big-btn { font-size: 15px; min-height: 52px; padding: 14px 24px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); background: var(--surface-2); border-radius: 11px; padding: 3px; gap: 3px; align-self: flex-start; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 7px 13px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 13.5px/1 var(--f-body); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip:hover, .chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* File drop zone */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 34px 18px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); cursor: pointer; transition: background .15s; }
.drop:hover, .drop.over { background: var(--accent-soft); }
.drop svg { width: 38px; height: 38px; color: var(--accent); }
.drop strong { font: 600 17px/1.3 var(--f-body); color: var(--ink); }
.drop span { color: var(--muted); font-size: 14.5px; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.files img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--surface-2); flex: none; }
.files .meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.files .meta b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .meta small { color: var(--muted); font-size: 13.5px; }
.files .move { display: flex; gap: 4px; }
.files .move button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.saving { color: var(--good); font-weight: 700; }

/* ---------- Results ---------- */
.out { background: var(--surface-2); border-radius: 6px; padding: 20px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.out p { margin: 0; }
.kicker { font: 700 12px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.big { font: 700 clamp(24px, 3.6vw, 34px)/1.15 var(--f-body); letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.huge { font: 700 clamp(44px, 9vw, 96px)/1 var(--f-num); letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-align: center; }
.sub { color: var(--muted); }
mark { background: linear-gradient(transparent 55%, var(--mark) 55%); color: inherit; padding: 0 .06em; }
.num { font-family: var(--f-num); font-size: .92em; }
.note { font-size: 14.5px; color: var(--muted); }
.note:empty { display: none; }
.empty { color: var(--muted); }
.verdict { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; padding: 7px 11px; border-radius: 999px; align-self: flex-start; background: color-mix(in srgb, currentColor 12%, transparent); }
.verdict.ok { color: var(--good); } .verdict.tight { color: var(--warn); } .verdict.no { color: var(--bad); }
.verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font: 700 11px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td.n, .tbl th.n { text-align: right; font-family: var(--f-num); font-size: 14px; white-space: nowrap; }
.tbl tr.win td { background: var(--accent-soft); }
.tbl tfoot td { font-weight: 700; border-bottom: 0; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat b { font: 700 24px/1.15 var(--f-num); letter-spacing: -.02em; overflow-wrap: anywhere; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.steps time { font-family: var(--f-num); font-size: 14px; font-weight: 500; padding-top: 2px; }
.steps .what small { display: block; color: var(--muted); }
.transfer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.transfer .amt { margin-left: auto; font-family: var(--f-num); font-weight: 500; }
.copyrow { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.copybox { white-space: pre-wrap; font-family: var(--f-num); font-size: 14px; line-height: 1.7; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; }
.matrix input[type="number"] { min-width: 64px; }
.matrix input[type="text"] { min-width: 120px; }
.matrix select { min-width: 64px; }
.matrix td, .matrix th { padding: 6px; }
.private { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 12px 4px 0; }
.private svg { width: 16px; height: 16px; color: var(--good); }

/* ---------- Article + sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 44px; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 72ch; min-width: 0; }
.prose h2 { font: 600 24px/1.3 var(--f-body); letter-spacing: -.01em; color: var(--ink); margin: 1.7em 0 .5em; text-wrap: balance; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font: 600 19px/1.3 var(--f-body); color: var(--ink); margin: 1.4em 0 .4em; }
.prose p, .prose li { margin: 0 0 .9em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.formula { font-family: var(--f-num); font-size: 14.5px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 13px 15px; overflow-x: auto; white-space: pre; margin: 0 0 1em; }
details.faq { border-top: 1px solid var(--line); padding: 14px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq p { margin: 8px 0 0; color: var(--muted); }
.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
.side section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.side h2 { font: 700 13px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.side a { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.side a:hover { background: var(--surface-2); }
.side .tile { width: 32px; height: 32px; border-radius: 9px; }
.side .tile svg { width: 17px; height: 17px; }
@media (max-width: 960px) { .side { position: static; } }

/* ---------- Simple pages ---------- */
.page { max-width: 72ch; }
.page h1 { font: 400 clamp(44px, 6vw, 64px)/1 var(--f-display); color: var(--slate); margin: 18px 0 16px; }
.page h2 { font: 600 22px/1.3 var(--f-body); color: var(--ink); margin: 1.6em 0 .5em; }
@media (min-width: 1081px) { .main-nav a.more { display: none; } }

/* PDF page thumbnails */
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.pg { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: grab; }
.pg-img { aspect-ratio: 1; display: grid; place-items: center; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.pg-img img { max-width: 100%; max-height: 100%; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.pg-label { font-size: 13px; font-weight: 600; color: var(--ink); text-align: center; }
.pg-act { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.pg-act button { width: 30px; height: 30px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 15px; line-height: 1; }
.pg-act button:hover { border-color: var(--accent); color: var(--accent-text); }
.pg.del { opacity: .45; border-style: dashed; }
.pg.del .pg-img { filter: grayscale(1); }
.pg.sel { outline: 3px solid var(--accent); outline-offset: -1px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stage { position: relative; max-width: 100%; overflow: auto; background: var(--surface-2); border-radius: 6px; padding: 10px; text-align: center; }
.stage canvas { max-width: 100%; height: auto; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }

/* ---------- media tools ---------- */
.bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.player { width: 100%; max-height: 360px; border-radius: 6px; background: #000; display: block; }
audio.player { background: transparent; max-height: none; }
.wave { width: 100%; height: 110px; display: block; border-radius: 6px; border: 1px solid var(--line); touch-action: none; cursor: crosshair; }
.trim { position: relative; height: 34px; }
.trim input[type=range] { position: absolute; inset: 0; width: 100%; pointer-events: none; background: none; -webkit-appearance: none; appearance: none; margin: 0; }
.trim input[type=range]::-webkit-slider-thumb { pointer-events: auto; }
.trim input[type=range]::-moz-range-thumb { pointer-events: auto; }
.rec-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--bad); margin-right: 6px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.timer-big { font: 700 44px/1 var(--f-num); letter-spacing: -.02em; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.thumbs img { height: 64px; border-radius: 4px; flex: none; }
/* ---------- dev & writing tools ---------- */
.mono, textarea.mono { font-family: var(--f-num); font-size: 14px; }
.hl mark { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.diff { font-family: var(--f-num); font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-height: 480px; overflow-y: auto; }
.diff del { background: color-mix(in srgb, var(--bad) 22%, transparent); text-decoration: line-through; }
.diff ins { background: color-mix(in srgb, var(--good) 22%, transparent); text-decoration: none; }
.swatch { height: 140px; border-radius: 8px; border: 1px solid var(--line); }
.flash { min-height: 220px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 22px; font-weight: 600; cursor: pointer; user-select: none; overflow-wrap: anywhere; }
.flash.back { background: var(--accent-soft); }
.typing { font: 500 19px/1.8 var(--f-num); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-wrap: anywhere; }
.typing .ok { color: var(--good); } .typing .bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 15%, transparent); } .typing .cur { border-left: 2px solid var(--accent); }
.sig-preview { background: #fff; color: #222; border: 1px solid var(--line); border-radius: 8px; padding: 16px; overflow-x: auto; }
.prose code, .answer code, .note code { overflow-wrap: anywhere; }
/* Big result numbers scale with their panel, not the window, so long figures never overflow. */
.out { container-type: inline-size; }
.huge { font-size: clamp(34px, 15cqi, 96px); overflow-wrap: anywhere; }
@media (min-width: 768px) { .catnav { flex-wrap: wrap; overflow-x: visible; } }

/* ===================== 2026 refresh ===================== */
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--r); }
.skip:focus { left: 8px; }
/* Header buttons: search + theme */
.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 500 14px/1 var(--f-body); cursor: pointer; flex: none; }
.hbtn:hover { border-color: var(--accent); color: var(--accent-text); }
.hbtn svg { width: 19px; height: 19px; }
.search-btn span, .search-btn kbd { display: none; }
.search-btn kbd, .qs kbd { font: 600 11px/1 var(--f-num); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; background: var(--surface-2); }
@media (min-width: 1240px) { .search-btn { padding: 0 10px 0 14px; } .search-btn span, .search-btn kbd { display: inline; } .search-btn { color: var(--muted); } }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: inline; }
.site .wrap { gap: 10px; }
.main-nav { margin-right: 6px; }
.main-nav a small { display: none; }
@media (max-width: 1080px) {
  .main-nav a small { display: inline; margin-left: auto; font: 600 12px/1 var(--f-num); color: var(--muted); background: var(--surface-2); padding: 4px 7px; border-radius: 999px; }
  .site .wrap { gap: 8px; }
}
@media (max-width: 380px) { .theme-toggle { display: none; } .nav-toggle { padding: 0 11px; } }

/* Quick search */
.qs { position: fixed; inset: 0; z-index: 80; background: rgba(18, 22, 26, .55); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: max(10vh, 16px) 16px 16px; }
.qs-open { overflow: hidden; }
.qs-box { width: min(640px, 100%); background: var(--surface); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); overflow: hidden; display: flex; flex-direction: column; max-height: 75vh; }
.qs-input { display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-bottom: 1px solid var(--line); }
.qs-input svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.qs-input input[type="search"] { border: 0; padding: 14px 0; font-size: 17px; background: transparent; }
.qs-input input:focus { outline: none; }
.qs-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.qs-list a { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.qs-list a.on, .qs-list a:hover { background: var(--accent-soft); }
.qs-list .tile { width: 38px; height: 38px; }
.qs-list .tile svg { width: 19px; height: 19px; }
.qs-list b { display: block; font-weight: 600; }
.qs-list small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.qs-head { font: 700 11.5px/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 10px 6px; }
.qs-empty { padding: 18px 10px; color: var(--muted); }

/* Homepage */
.home .hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding-block: 56px 44px; margin-bottom: 0;
  background: radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px) 0 0 / 22px 22px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero .lead { font-size: 18.5px; max-width: 54ch; margin: 0 0 26px; }
.hero-pop { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 18px 50px rgba(25, 31, 36, .1); }
.hero-pop ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.hero-pop a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.hero-pop a:hover { background: var(--surface-2); }
.hero-pop .tile { width: 40px; height: 40px; }
.hero-pop b { display: block; font-weight: 600; font-size: 15px; }
.hero-pop small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .home .hero { padding-block: 36px 30px; } }
.section-title { font: 400 clamp(32px, 4vw, 42px)/1 var(--f-display); color: var(--slate); letter-spacing: .01em; margin: 0 0 18px; }
.cat-tiles-wrap { margin-top: 44px; scroll-margin-top: 90px; }
.cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.cat-tile { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); height: 100%; transition: transform .15s, border-color .15s, box-shadow .15s; }
.cat-tile:hover { transform: translateY(-2px); border-color: var(--cat); box-shadow: var(--shadow); }
.cat-tile b { font-weight: 600; }
.cat-tile small { color: var(--muted); font-size: 13px; margin-top: -8px; }
.cat-head h2 a { color: inherit; text-decoration: none; }
.cat-head h2 a:hover { color: var(--accent); }
.cat-all { margin-left: auto; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.why { margin-top: 64px; }
.why ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.why li { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 12px; background: var(--surface-2); }
.why li svg { width: 28px; height: 28px; color: var(--accent); }
.why b { color: var(--ink); font-size: 17px; }
.why span { font-size: 15px; }
.home-faq { margin-top: 56px; max-width: 820px; }
.card { border-radius: 10px; }

/* Tool page */
.tool-head { align-items: flex-start; }
.tool-head h1 { margin-top: 2px; }
.trust { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-weight: 500; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 15px; height: 15px; color: var(--good); }
.tool-page .tool { border-top: 3px solid var(--cat, var(--accent)); border-radius: 10px; }
.under-tool { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 14px 0 0; }
.under-tool .private { margin: 0; }
.share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.share span { margin-right: 4px; font-weight: 500; }
.share a, .share button { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; position: relative; }
.share a:hover, .share button:hover { color: var(--accent); border-color: var(--accent); }
.share svg { width: 17px; height: 17px; }
.share button b { display: none; position: absolute; bottom: 115%; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font: 600 12px/1 var(--f-body); padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.share button.done b { display: block; }
.updated { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 28px; }
.updated a { color: var(--accent-text); }
.side-all { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 14.5px; text-decoration: none; }

/* Category pages */
.cat-hero { display: flex; gap: 18px; align-items: center; margin: 18px 0 8px; }
.cat-hero h1 { font: 400 clamp(42px, 6vw, 68px)/1 var(--f-display); color: var(--slate); margin: 0; letter-spacing: .01em; }
.cat-hero .eyebrow { margin: 0 0 6px; }
.tile.xl { width: 72px; height: 72px; border-radius: 12px; }
.tile.xl svg { width: 34px; height: 34px; }
.cat-intro { max-width: 78ch; font-size: 17px; margin-bottom: 26px; }
.cat-intro p { margin: 0 0 12px; }
.other-cats { margin-top: 48px; }
.other-cats h2 { font: 700 13px/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.other-cats .catnav { flex-wrap: wrap; overflow: visible; }

/* Footer brand */
.foot-brand { grid-column: span 2; max-width: 360px; }
.foot-brand .brand { margin-bottom: 10px; }
.foot-brand p { margin: 0 0 10px; font-size: 14.5px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 6px 14px; }
footer.foot h2 a, footer.foot .foot-h a { color: var(--ink); text-decoration: none; }
@media (max-width: 560px) { .foot-brand { grid-column: 1 / -1; } }
main.home { padding-top: 0; }
.tool-head > div { min-width: 0; }

/* ---------- Hosted QR codes ---------- */
.qr-host { max-width: 760px; padding-top: 28px; }
.qr-host.wide { max-width: 980px; }
.qr-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.qr-card h1 { font: 400 clamp(32px, 5vw, 46px)/1.05 var(--f-display); color: var(--slate); margin: 0; letter-spacing: .01em; overflow-wrap: anywhere; }
.qr-card p { margin: 0; }
.qr-gone { align-items: center; text-align: center; padding: 44px 26px; }
.qr-gone > svg { width: 48px; height: 48px; color: var(--warn); }
.qr-media { max-width: 100%; max-height: 70vh; border-radius: 8px; display: block; margin: 0 auto; background: var(--surface-2); }
.qr-pdf { width: 100%; height: 72vh; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.qr-small { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent-text); text-decoration: underline; cursor: pointer; font: inherit; }
.qr-box { display: grid; place-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr-box canvas { width: min(260px, 100%); height: auto; image-rendering: pixelated; }
.hq-manage { border: 1px dashed var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.manage-grid { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 720px) { .manage-grid { grid-template-columns: minmax(0, 1fr); } .qr-card { padding: 18px; } }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding: 6px; background: var(--surface-2); border-radius: 8px; }
.spark i { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 2px; }
/* Verification card (also used for the live preview in the generator) */
.vcard { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.vcard h1, .vcard .vtitle { font: 400 clamp(28px, 4.5vw, 40px)/1.05 var(--f-display); color: var(--slate); margin: 16px 18px 6px; letter-spacing: .01em; overflow-wrap: anywhere; }
.vcard-head { display: flex; gap: 12px; align-items: center; padding: 14px 18px; color: #fff; }
.vcard-head svg { width: 34px; height: 34px; flex: none; }
.vcard-head b { display: block; font: 700 20px/1.1 var(--f-body); }
.vcard-head small { opacity: .9; font-size: 13.5px; }
.vcard-head.ok { background: #1E7A4C; } .vcard-head.tight { background: #A35F00; } .vcard-head.no { background: #B3261E; }
.vtable { width: calc(100% - 36px); margin: 6px 18px 16px; border-collapse: collapse; font-size: 15.5px; }
.vtable th { text-align: left; color: var(--muted); font-weight: 600; padding: 9px 12px 9px 0; width: 38%; vertical-align: top; border-bottom: 1px solid var(--line); }
.vtable td { color: var(--ink); padding: 9px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.vnote { margin: 0 18px 16px !important; font-size: 14.5px; color: var(--muted); }
.vfile { display: flex; flex-direction: column; gap: 10px; }
.hq-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hq-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.hq-points svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 1px; }
.hq-points b { color: var(--ink); }
.qr-ghost canvas { opacity: .6; width: 180px; }
.file-preview { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.fp-media { display: grid; place-items: center; }
.fp-media img, .fp-media canvas { max-width: 100%; max-height: 320px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); background: #fff; }
/* Before/after comparison slider */
.checker { background-color: #fff; background-image: linear-gradient(45deg, #e6e8ea 25%, transparent 25%), linear-gradient(-45deg, #e6e8ea 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e6e8ea 75%), linear-gradient(-45deg, transparent 75%, #e6e8ea 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
/* AI at work: the visitor's photo with a soft scanning band */
.ai-work { display: flex; justify-content: center; }
.ai-work span { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.ai-work img { display: block; max-width: 100%; max-height: 420px; width: auto; height: auto; filter: saturate(.85); }
.ai-work i { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(255, 91, 53, .0) 35%, rgba(255, 91, 53, .28) 50%, rgba(255, 91, 53, 0) 65%, transparent 100%); background-size: 100% 220%; animation: aiScan 1.8s ease-in-out infinite; }
@keyframes aiScan { from { background-position: 0 100%; } to { background-position: 0 -120%; } }
@media (prefers-reduced-motion: reduce) { .ai-work i { animation: none; background: rgba(255, 91, 53, .12); } }
.compare { --pos: 50%; position: relative; width: 100%; max-height: 520px; border-radius: 8px; overflow: hidden; user-select: none; margin: 0 auto; }
.compare img, .compare canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--accent); transform: translateX(-50%); z-index: 2; pointer-events: none; }
.compare .handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.ocr-preview { display: flex; flex-direction: column; gap: 8px; }
.ocr-stage { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.ocr-stage canvas { width: 100%; height: auto; display: block; }
.ocr-text { min-height: 300px; font-size: 15px; }
.heic-big { display: grid; place-items: center; background: var(--surface); border-radius: 8px; padding: 8px; }
.heic-big img { max-width: 100%; max-height: 340px; border-radius: 6px; }
.sig-pad-wrap { position: relative; }
.sig-pad { width: 100%; height: 220px; display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; touch-action: none; cursor: crosshair; }
.sig-line { position: absolute; left: 8%; right: 8%; bottom: 52px; border-bottom: 1.5px dashed #c9ced2; pointer-events: none; }
.sig-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.sig-font { font-size: 30px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #111; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig-font.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.sig-doc { background: #fff; color: #333; border: 1px solid var(--line); border-radius: 8px; padding: 22px; font-family: Georgia, serif; }
.sig-doc p { margin: 0 0 12px; font-size: 15px; }
.sig-slot { height: 110px; border-bottom: 1.5px solid #333; display: flex; align-items: flex-end; }
.sig-slot img { max-height: 100px; max-width: 100%; margin-bottom: -6px; }
.sig-doc > span { font-size: 13px; color: #777; }
.pp-wrap { display: grid; place-items: center; background: var(--surface); border-radius: 8px; padding: 12px; }
.pp-stage { position: relative; width: min(300px, 100%); cursor: grab; touch-action: none; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.pp-stage:active { cursor: grabbing; }
.pp-stage canvas { width: 100%; height: 100%; display: block; }
.pp-guide { position: absolute; inset: 0; pointer-events: none; }
.pp-guide .g-top { position: absolute; left: 0; right: 0; top: calc(var(--top) - 1.5%); height: 3%; background: rgba(255, 91, 53, .22); border-top: 1px dashed #FF5B35; border-bottom: 1px dashed #FF5B35; }
.pp-guide .g-chin { position: absolute; left: 0; right: 0; top: var(--chin-a); height: calc(var(--chin-b) - var(--chin-a)); background: rgba(30, 122, 76, .18); border-top: 1px dashed #1E7A4C; border-bottom: 1px dashed #1E7A4C; }
.pp-guide .g-oval { position: absolute; left: 50%; top: var(--top); height: calc((var(--chin-a) + var(--chin-b)) / 2 - var(--top)); aspect-ratio: 0.72; transform: translateX(-50%); border: 2px dashed rgba(255, 255, 255, .85); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
/* Resume builder */
.rb-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rb-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.rb-color input { width: 56px; }
.rb-sec { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: var(--surface); }
.rb-sec[open] { padding-bottom: 14px; }
.rb-sec > summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 13px 0; list-style-position: inside; }
.rb-sec > .f, .rb-sec > .fields, .rb-sec > .list { margin-top: 6px; }
.rb-out { position: sticky; top: calc(var(--header-h) + 12px); max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; }
.rb-preview { display: flex; flex-direction: column; gap: 14px; }
.rb-page { width: 100%; height: auto; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .14); border-radius: 2px; }
@media (max-width: 860px) { .rb-grid { grid-template-columns: minmax(0, 1fr); } .rb-out { position: static; max-height: none; } }
.letter { background: #fff; color: #222; border: 1px solid var(--line); border-radius: 8px; padding: 26px 28px; font: 15px/1.65 Georgia, "Times New Roman", serif; min-height: 420px; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.letter p { margin: 0 0 14px; }
.letter:focus { outline: 2px solid var(--accent); }
.segs { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.segs li { display: flex; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.segs li:last-child { border-bottom: 0; }
.segs button { flex: none; font: 600 12.5px/1 var(--f-num); color: var(--accent-text); background: var(--accent-soft); border: 0; border-radius: 6px; padding: 5px 7px; cursor: pointer; height: fit-content; }
.pdf-thumbs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.pdf-thumbs canvas { max-width: calc(50% - 5px); height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.pdf-thumbs figure { margin: 0; width: calc(25% - 8px); min-width: 72px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pdf-thumbs figure canvas { max-width: 100%; max-height: 160px; width: auto; }
.pdf-thumbs figcaption { font-size: 12px; color: var(--muted); }
.pdf-thumbs .more { width: 100%; text-align: center; margin: 0; }

/* ---------- PDF editor ---------- */
.pe-start { display: grid; gap: 12px; justify-items: start; }
.pe-start .drop { width: 100%; padding: 48px 20px; }
.pe-app { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.pe-bar { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 8px; border-bottom: 1px solid var(--line); background: var(--surface); }
.pe-tools { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; max-width: 100%; }
.pe-tools button, .pe-actions > button:not(.btn) { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 52px; height: 50px; padding: 4px 6px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap; }
.pe-tools button svg, .pe-actions button svg { width: 20px; height: 20px; }
.pe-tools button:hover, .pe-actions > button:not(.btn):hover:not(:disabled) { background: var(--surface-2); }
.pe-tools button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.pe-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.pe-actions > button:not(.btn) { min-width: 40px; height: 40px; }
.pe-actions > button:disabled { opacity: .35; cursor: default; }
.pe-actions .btn { margin-left: 8px; }
.pe-zoom { min-width: 46px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.pe-props { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 48px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 13px; }
.pe-props[hidden], .pe-p[hidden] { display: none !important; }
.pe-hint { color: var(--muted); }
.pe-hint.warn { color: #b45309; font-weight: 600; }
.pe-p { display: inline-flex; align-items: center; gap: 6px; }
.pe-p > span { color: var(--muted); }
.pe-p select, .pe-p input[type=number] { height: 32px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; }
.pe-p input[type=number] { width: 64px; }
.pe-p input[type=range] { width: 90px; accent-color: var(--accent); }
.pe-tog { padding: 0 10px; height: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.pe-tog input { accent-color: var(--accent); }
.pe-colors button, .pe-inks button { width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 2px solid var(--surface); background: var(--c); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.pe-colors button.on, .pe-inks button.on { box-shadow: 0 0 0 2px var(--accent); }
.pe-colors input[type=color] { width: 30px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.pe-del { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.pe-del svg { width: 16px; height: 16px; }
.pe-del#del:hover { color: #dc2626; border-color: #dc2626; }
.pe-main { display: flex; height: min(78vh, 900px); min-height: 420px; }
.pe-thumbs { flex: 0 0 132px; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); background: var(--surface); }
.pe-thumbs button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: 2px solid transparent; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.pe-thumbs button.on { border-color: var(--accent); color: var(--ink); }
.pe-tc canvas { display: block; max-width: 96px; height: auto; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); background: #fff; }
.pe-scroll { flex: 1; overflow: auto; background: #E9ECEF; overscroll-behavior: contain; }
:root[data-theme="dark"] .pe-scroll { background: #0B0E11; }
.pe-pages { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 16px; width: max-content; min-width: 100%; box-sizing: border-box; }
.pe-page { position: relative; flex: none; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.pe-page > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pe-layer { position: absolute; inset: 0; touch-action: pan-x pan-y pinch-zoom; }
.pe-app:not([data-tool="select"]) .pe-layer { cursor: crosshair; touch-action: none; }
.pe-app[data-tool="text"] .pe-layer, .pe-app[data-tool="edit"] .pe-layer { cursor: text; }
.pe-o { position: absolute; touch-action: none; user-select: none; -webkit-user-select: none; }
.pe-app[data-tool="select"] .pe-o { cursor: move; }
.pe-o svg { position: absolute; overflow: visible; pointer-events: none; }
.pe-o svg path { pointer-events: visiblePainted; }
.pe-rect svg path, .pe-ellipse svg path { pointer-events: all; }
.pe-menu { position: relative; }
.pe-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); padding: 6px; display: grid; }
.pe-menu-list[hidden] { display: none; }
.pe-menu-list button { display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; background: none; border-radius: 7px; color: var(--ink); font: 500 14px/1.2 var(--f-body); cursor: pointer; text-align: left; }
.pe-menu-list button:hover { background: var(--surface-2); }
.pe-menu-list svg { width: 18px; height: 18px; flex: none; }
.pe-menu > button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ink); cursor: pointer; }
.pe-menu > button:hover { background: var(--surface-2); }
.pe-menu > button svg { width: 20px; height: 20px; }
.pe-note { display: block; width: 100%; height: 100%; }
.pe-note svg { position: static; width: 100%; height: 100%; fill: var(--c, #facc15); stroke: #3f3f46; stroke-width: 1.5; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.pe-notepop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: 220px; padding: 6px; background: #FFF8C5; border: 1px solid #E5D36A; border-radius: 8px; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); cursor: auto; }
.pe-notepop textarea { width: 100%; border: 0; background: transparent; resize: vertical; font: 14px/1.4 var(--f-body); color: #1f2937; outline: none; user-select: text; -webkit-user-select: text; }
.pe-tog input[type=color] { width: 26px; height: 22px; padding: 0; border: 0; background: none; }
.pe-o img { display: block; width: 100%; height: 100%; pointer-events: none; }
.pe-highlight { mix-blend-mode: multiply; }
.pe-t { white-space: pre; outline: none; min-width: 4px; cursor: inherit; }
.pe-o.editing { cursor: text; user-select: text; -webkit-user-select: text; }
.pe-o.editing .pe-t { user-select: text; -webkit-user-select: text; cursor: text; }
.pe-o.sel::after, .pe-o:hover::after { content: ""; position: absolute; inset: -4px; border: 1px dashed var(--accent); border-radius: 2px; pointer-events: none; }
.pe-app:not([data-tool="select"]) .pe-o:not(.sel):hover::after { display: none; }
.pe-o.sel::after { border-style: solid; border-width: 1.5px; }
.pe-h { position: absolute; z-index: 2; width: 12px; height: 12px; border: 2px solid var(--accent); border-radius: 50%; background: #fff; touch-action: none; }
.pe-h[data-h="nw"] { left: -10px; top: -10px; cursor: nwse-resize; }
.pe-h[data-h="ne"] { right: -10px; top: -10px; cursor: nesw-resize; }
.pe-h[data-h="sw"] { left: -10px; bottom: -10px; cursor: nesw-resize; }
.pe-h[data-h="se"] { right: -10px; bottom: -10px; cursor: nwse-resize; }
.pe-o.editing .pe-h { display: none; }
.pe-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pe-foot #pageinfo { margin-right: auto; }
.linkish { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
#pe > .out { margin-top: 16px; }
.pe-narrow { display: none; }
.tool:has(.pe) { padding: 14px; }
.pe-guides { position: absolute; inset: 0; pointer-events: none; }
.pe-g { position: absolute; border: 1px dashed rgba(29, 78, 216, .45); border-radius: 2px; background: rgba(29, 78, 216, .04); }
.pe-hover { position: absolute; pointer-events: none; z-index: 3; border: 2px solid #1d4ed8; border-radius: 3px; background: rgba(29, 78, 216, .08); }
.pe-hover.del { border-color: #dc2626; background: rgba(220, 38, 38, .12); }
.pe-band { position: absolute; z-index: 3; pointer-events: none; border: 2px dashed #dc2626; background: rgba(220, 38, 38, .1); }
.pe-ie { position: absolute; z-index: 6; white-space: pre; }
.pe-iet { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 1px; min-width: 8px; cursor: text; background: rgba(255, 255, 255, .55); }
.pe-app[data-tool="delete"] .pe-layer { cursor: pointer; }
.pe-dlg { width: min(560px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.pe-dlg::backdrop { background: rgba(0, 0, 0, .45); }
.pe-dlg h2 { margin: 0 0 12px; font-size: 20px; }
.pe-dlg form { display: grid; gap: 12px; }
.pe-dlg canvas { width: 100%; aspect-ratio: 3; background: #fff; border: 1px dashed var(--line); border-radius: 8px; touch-action: none; cursor: crosshair; display: block; }
.pe-dlg input[type=text] { width: 100%; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; box-sizing: border-box; }
.pe-signprev { margin: 8px 0 0; padding: 10px; min-height: 70px; font: 700 48px PeHand, cursive; color: #111827; background: #fff; border-radius: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pe-inks { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .pe-thumbs { display: none; }
  .pe-main { height: 70vh; min-height: 360px; }
  .pe-tools button { min-width: 48px; height: 46px; font-size: 10px; }
  .pe-props { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .pe-props > * { flex: none; }
  .pe-menu-list { right: auto; left: 0; }
  .pe-actions { width: 100%; justify-content: space-between; margin-left: 0; }
  .pe-actions .btn { margin-left: auto; padding-inline: 12px; }
  .pe-pages { padding: 10px; gap: 10px; }
  .tool:has(.pe) { padding: 6px; margin-inline: -10px; }
  .pe-wide { display: none; }
  .pe-narrow { display: inline; }
}

/* Toasts: always dark, so they stand out on both themes */
.toasts { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; justify-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: #1B2228; color: #fff; border: 1px solid rgba(255, 255, 255, .1); padding: 11px 16px; border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); font: 500 14.5px/1.35 var(--f-body); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; max-width: 100%; overflow-wrap: anywhere; }
.toast.in { opacity: 1; transform: none; }
.toast svg { width: 18px; height: 18px; flex: none; color: #4CC98A; }
.toast.err svg { color: #FF8A80; }
@media (prefers-reduced-motion: reduce) { .toast { transition: opacity .2s; transform: none; } }

/* Phones: the result comes first, in the normal page flow (see miniPreview in app.js), and a mini preview
   floats in the corner while the visitor scrolls down to the options. Add data-nosticky to an .out panel to opt out. */
@media (max-width: 860px) {
  .tool-grid > .out.live:not([data-nosticky]) { order: -1; }
  /* No boxes that scroll inside the page on phones: they grow with their content instead. */
  .ocr-stage, .segs, .copybox, .diff { max-height: none !important; }
}
.pip { position: fixed; right: 10px; bottom: 10px; z-index: 60; display: flex; align-items: flex-start; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .28)); animation: pip-in .18s ease-out; }
.pip[hidden] { display: none; }
.pip-view { display: block; padding: 0; border: 2px solid var(--surface); border-radius: 10px; overflow: hidden; cursor: pointer; background-color: var(--surface); line-height: 0; position: relative; }
.pip-view::after { content: "↑ Result"; position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 0; font: 700 11.5px/1 var(--f-body); color: #fff; background: rgba(15, 20, 25, .62); text-align: center; letter-spacing: .02em; }
.pip-view canvas { display: block; max-width: 40vw; max-height: 30vh; }
.pip-svg { width: min(150px, 34vw); max-height: 30vh; display: flex; justify-content: center; background: var(--surface-2); }
.pip-svg svg { width: auto; height: 100%; max-height: 30vh; max-width: 100%; }
.pip-x { position: absolute; top: -9px; left: -9px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); background: var(--ink); color: var(--surface); font: 700 16px/1 var(--f-body); cursor: pointer; display: grid; place-items: center; padding: 0; }
.pip-tab { border: 0; border-radius: 999px; padding: 10px 14px; background: var(--ink); color: var(--surface); font: 700 13px/1 var(--f-body); cursor: pointer; }
.pip-view[hidden], .pip-x[hidden], .pip-tab[hidden] { display: none; }
@keyframes pip-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (min-width: 861px) { .pip { display: none !important; } }

/* Daily limit dialog */
.limit-dlg { position: fixed; inset: 0; z-index: 1100; background: rgba(10, 14, 18, .55); display: grid; place-items: center; padding: 16px; }
.limit-box { background: var(--surface); color: var(--muted); border-radius: 14px; padding: 24px; max-width: 440px; width: 100%; display: grid; gap: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.limit-box h2 { margin: 0; font: 700 22px/1.25 var(--f-body); color: var(--ink); }
.limit-box p { margin: 0; }
.aka { margin: -6px 0 14px; font-size: 13.5px; color: var(--muted); max-width: 72ch; }

/* Install-app offer on phones (site.js) */
.install-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70; max-width: 520px; margin: 0 auto; padding: 12px 12px 12px 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); font: 14px/1.4 var(--f-body); animation: pip-in .2s ease-out; }
.install-row { display: flex; align-items: center; gap: 12px; }
.install-row img { flex: none; width: 44px; height: 44px; border-radius: 11px; }
.install-row > div { flex: 1; min-width: 0; }
.install-row b { display: block; font-size: 15px; }
.install-row span { display: block; color: var(--muted); font-size: 13px; }
.install-bar .install-go { flex: none; padding: 10px 18px; }
.install-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-2, #F3F4F5); color: var(--ink); font: 700 20px/1 var(--f-body); cursor: pointer; display: grid; place-items: center; padding: 0; }
.install-ios { padding-top: 14px; }
.install-ios .install-x { position: absolute; top: 8px; right: 8px; }
.install-ios ol { margin: 12px 0 2px; padding-left: 22px; }
.install-ios li { margin: 4px 0; }
.install-ios svg { vertical-align: -3px; color: #0A84FF; }
.install-ios::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 14px; height: 14px; margin-left: -7px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.nav-install { display: none; }
@media (max-width: 860px) {
  .nav-install:not([hidden]) { order: -1; display: block; width: 100%; margin: 14px 0 6px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); color: var(--accent-text, var(--accent)); font: 700 15px/1 var(--f-body); text-align: center; cursor: pointer; }
}

/* Speed: the browser skips laying out page sections that are off screen until they're scrolled near
   (the homepage lists every tool). "auto" remembers each section's real height once it has been drawn. */
.home .cat, .home .why, .home .home-faq, .cat-page .other-cats, .foot { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.foot { contain-intrinsic-size: auto 1100px; }

/* Local file tools: say on the upload box itself that files stay on the device (the site's main difference). */
.tool-page[data-local] .drop::after { content: "Your files never leave your device"; display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1.3 var(--f-body); color: var(--good); padding-left: 20px; background: no-repeat left center / 15px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7A4C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
[data-theme="dark"] .tool-page[data-local] .drop::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CC98A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }

/* Phones: the tool comes straight after the heading; the short intro moves below it (it stays in the page for search engines). */
@media (max-width: 700px) {
  .tool-page { display: flex; flex-direction: column; }
  .tool-page > * { order: 5; }
  .tool-page > .crumbs, .tool-page > .tool-head { order: 0; }
  .tool-page > .tool { order: 1; margin-top: 6px; }
  .tool-page > .under-tool { order: 2; }
  .tool-page > .answer { order: 3; margin: 18px 0 8px; font-size: 16px; }
  .tool-page > .aka { order: 4; }
}
.disclaimer { font-size: 13.5px; color: var(--muted); margin: -4px 0 18px; }
