/*
 * toolbox.css - the Toolbox's own pieces on top of site.css (copied from 4carbon.in, then independent):
 * dashboard search and cards, tool frame, Windows 11 form controls, drop zone, results, FAQ, ad cards.
 * Mobile first. No inline styles anywhere (CSP), so every look lives here.
 */
.brand-by { font-weight: 400; font-size: 12px; color: var(--text-3); margin-left: -4px; align-self: flex-end; padding-bottom: 6px; }
.muted { color: var(--text-3); }
.narrow { max-width: 760px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ dashboard */
.hero-tools { padding: 18px 0 16px; }
.hero-tools h1 { max-width: 20ch; font-size: 26px; margin-bottom: 6px; }
.hero-tools .lead { font-size: 15px; margin-bottom: 14px; }
.search { position: relative; max-width: 560px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search input { width: 100%; height: 46px; padding: 0 14px 0 40px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--stroke-strong); border-bottom: 2px solid #8a8a8a; border-radius: var(--radius); box-shadow: var(--shadow); }
.search input:focus { outline: none; border-bottom-color: var(--accent); }
.search-hint { margin: 8px 0 0; font-size: 13px; color: var(--text-2); }
.search-hint:empty { display: none; }

/* Trust points: one row always. On phones it glides sideways (a marquee); it stops for reduced motion. */
.trust-wrap { margin: 12px calc(var(--gutter) * -1) 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.trust { list-style: none; display: flex; width: max-content; margin: 0; padding: 0 var(--gutter); font-size: 13px; color: var(--text-2); animation: marquee 26s linear infinite; }
.trust-wrap:hover .trust, .trust-wrap:focus-within .trust { animation-play-state: paused; }
.trust li { display: flex; align-items: center; gap: 6px; padding-right: 22px; white-space: nowrap; }
.trust svg { width: 16px; height: 16px; flex: none; color: var(--accent-ink); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .trust { animation: none; }
  .trust-wrap { overflow-x: auto; scrollbar-width: none; }
  .trust .dup { display: none; }
}

.cat h2 { margin-bottom: 2px; }
.cat-sub { margin: 0 0 10px; color: var(--text-2); font-size: 14px; }
.section.cat { padding-top: 20px; }
.tool-grid { grid-template-columns: 1fr; gap: 8px; }
.tool-card { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); padding: 12px 14px; }
.tool-card .ic { width: 40px; height: 40px; }
.tool-card-text { min-width: 0; }
.tool-card-text b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
/* Every card description is exactly two lines tall, so the cards in a row line up. */
.tool-card-text span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; line-height: 18px; height: 36px; color: var(--text-2); margin-top: 2px; }
.tool-card:active { transform: scale(.99); }
.none { margin: 20px 0 0; color: var(--text-2); }
.all-link { margin: 12px 0 0; font-size: 14px; }

/* ------------------------------------------------------------------ tool page */
/* Compact header on phones: the tool itself should be on the first screen. */
.tool-head { background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); border-bottom: 1px solid var(--stroke); padding: 10px 0 14px; }
.crumbs { display: flex; gap: 6px; font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.tool-title { display: flex; gap: 12px; align-items: center; }
.ic-lg { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, #fff1dc, #ffe1c2); }
.ic-lg svg { width: 22px; height: 22px; }
.tool-head h1 { font-size: 21px; line-height: 1.2; font-weight: 600; margin: 0; }
.tool-head .lead { margin: 3px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.4; }
.tool-body { padding: 12px 0 0; }

/*
 * One layout system for every tool (owner request 2026-11-18: even sizes, consistent rows, compact on phones):
 * - .tool, .stack and .result lay their children out top to bottom with ONE gap; children set no outer margin,
 *   so a message or result never sticks to its neighbour.
 * - every single-line control (text box, list, segmented choice, colour, button) is exactly --ctl tall.
 * - .row puts fields side by side: .cols-2/.cols-3 on every screen (short values), .md-2/.md-3 from 600px.
 *   Labels stay on one line, so the boxes in a row always line up.
 */
.tool { --ctl: 44px; --gap: 12px; padding: 14px; }
.tool, .stack { display: flex; flex-direction: column; gap: var(--gap); }
.tool > *, .stack > * { margin: 0; }
.tool p { margin: 0; }
.privacy-note { display: flex; gap: 6px; align-items: center; margin: 10px 2px 0; font-size: 12.5px; color: var(--text-3); }
.privacy-note svg { width: 15px; height: 15px; flex: none; }

.row { display: grid; gap: var(--gap) 10px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label, .flabel { display: block; font-size: 13px; font-weight: 600; color: var(--text); line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flabel .hint { font-weight: 400; }
.hint, .tool .hint { font-size: 12.5px; line-height: 1.4; color: var(--text-3); }

input.in, select.in, textarea.in {
  display: block; width: 100%; margin: 0; padding: 0 12px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface);
  border: 1px solid var(--stroke-strong); border-bottom-color: #8a8a8a; border-radius: var(--radius-sm); appearance: none; -webkit-appearance: none;
  box-shadow: inset 0 -1px 0 transparent; transition: box-shadow .12s, border-color .12s;
}
input.in, select.in { height: var(--ctl); line-height: normal; }
select.in { padding-right: 34px; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5c5c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 14px; }
textarea.in { height: auto; min-height: 112px; padding: 10px 12px; resize: vertical; line-height: 1.5; font-size: 15px; }
textarea.in.short { min-height: 88px; }
textarea.mono, .mono { font-family: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace; font-size: 13.5px; }
:is(input, textarea).in::placeholder { color: #8a8a8a; opacity: 1; }
:is(input, select, textarea).in:focus { outline: none; border-bottom-color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); }
:is(input, select, textarea).in[aria-invalid="true"] { border-bottom-color: #c42b1c; box-shadow: inset 0 -1px 0 #c42b1c; }
:is(input, textarea).in[readonly] { background: var(--surface-2); }
input[type=color].in { padding: 4px; cursor: pointer; }
input[type=date].in { min-width: 0; }
input[type=range] { display: block; width: 100%; height: var(--ctl); margin: 0; accent-color: var(--accent); }

/* A box with its unit inside on the right: [ 50        KB ] */
.affix { position: relative; }
.affix .in { padding-right: 46px; }
.affix .unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 600; color: var(--text-3); pointer-events: none; }
.affix .unit.pre { right: auto; left: 12px; }
.affix .in.has-pre { padding-left: 30px; }
/* A box with a button glued to its right: [ password ][Show] */
.join { display: flex; }
.join .in { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.join .btn { flex: none; border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; min-width: 72px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; padding: 2px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }
.checks { display: grid; gap: 6px 16px; }

/* Segmented choice (radio buttons that look like a Windows 11 selector bar). One line; swipes sideways if it must. */
.seg { display: flex; gap: 2px; height: var(--ctl); padding: 3px; background: #efefef; border-radius: var(--radius); border: 1px solid var(--stroke); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg label { flex: 1 0 auto; position: relative; display: flex; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); border-radius: var(--radius-sm); white-space: nowrap; transition: background-color .15s, color .15s; }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04); }
.seg input:focus-visible + span { outline: 2px solid var(--text); outline-offset: -2px; }

/* Chips: quick values (50 KB, 100 KB ...). One line on phones, swipe for more. */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; height: 34px; padding: 0 13px; border-radius: 17px; border: 1px solid var(--stroke-strong); background: var(--surface); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap; }
.chips button:hover { border-color: #b3b3b3; }
.chips button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
/* Big chips: the main buttons of a text tool (UPPERCASE, lowercase ...), equal tiles. */
.chips.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); overflow: visible; }
.chips.tiles button { height: 40px; border-radius: var(--radius-sm); }

/* Drop zone: the tap target for picking files. A slim bar on phones, a roomy box on bigger screens. */
.drop { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; text-align: left; min-height: 74px; padding: 12px 16px; border: 1.5px dashed #b9b9b9; border-radius: var(--radius); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop svg { grid-row: span 2; width: 30px; height: 30px; color: var(--accent-ink); }
.drop b { font-size: 15px; line-height: 1.3; }
.drop small { color: var(--text-3); font-size: 12.5px; line-height: 1.35; }
.drop.compact { min-height: var(--ctl); padding: 6px 14px; }
.drop.compact svg { grid-row: auto; width: 22px; height: 22px; }
.drop.compact small { display: none; }

/* More options: one quiet fold. */
details.more { border-top: 1px solid var(--stroke); }
details.more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--link); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin: 0 2px; }
details.more[open] > summary::before { transform: rotate(45deg); }
details.more > .stack { padding: 4px 0 2px; }

/* Buttons: equal size, side by side, full width on phones. */
.tool-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.tool .btn { min-height: 0; }
.tool-actions .btn, .tool .join .btn, .copy-row .btn { height: var(--ctl); padding: 0 14px; font-size: 15px; }
.tool .btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: transparent; }
.btn-ghost:hover { background: rgba(0, 0, 0, .05); }
.btn-icon { height: 34px; width: 34px; padding: 0; }
/* Small tools under a picture (turn, flip, choose another): one row of equal buttons. */
.mini-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.mini-actions .btn { height: 36px; padding: 0 10px; font-size: 13.5px; }

/* Messages and progress. Spacing comes from the stack, so a message never touches its neighbours. */
.msg, .tool .msg { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.45; background: #f0f6fc; border-left: 3px solid #005fb8; color: var(--text); }
.msg-ok, .tool .msg-ok { background: #effaf0; border-left-color: #0f7b0f; }
.msg-warn, .tool .msg-warn { background: #fff8e1; border-left-color: #9d5d00; }
.msg-err, .tool .msg-err { background: #fdf0ef; border-left-color: #c42b1c; }
.msg:empty { display: none; }
.progress { height: 4px; flex: none; border-radius: 2px; background: #e6e6e6; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.progress.busy span { width: 35%; animation: slide 1.1s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

/* Results */
.result { display: flex; flex-direction: column; gap: var(--gap); padding: 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--stroke); }
.result > * { margin: 0; }
.result-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.result-head b { font-size: 15px; }
.stat { display: flex; flex-wrap: wrap; gap: 6px; }
.stat span { font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 10px; background: #ececec; color: var(--text-2); }
.stat .good { background: #dff6dd; color: #0e5c0e; }
.stat .bad { background: #fde7e9; color: #9b1c12; }
.preview { display: grid; place-items: center; background: #fff; border: 1px solid var(--stroke); border-radius: var(--radius-sm); overflow: hidden; }
.preview img, .preview canvas { max-width: 100%; max-height: 360px; width: auto; height: auto; }
.checker { background-color: #fff; background-image: linear-gradient(45deg, #e9e9e9 25%, transparent 25%), linear-gradient(-45deg, #e9e9e9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e9e9e9 75%), linear-gradient(-45deg, transparent 75%, #e9e9e9 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; }
.out { width: 100%; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.out-text { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--stroke); font-size: 16px; line-height: 1.5; min-height: var(--ctl); white-space: pre-wrap; word-break: break-word; }

/* Two text boxes, input and result: one above the other on phones, side by side from 768px. */
.io { display: grid; gap: var(--gap); }

/* File lists (merge, image to PDF, batch results) */
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.files:empty { display: none; }
.files li { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 7px 7px 7px 9px; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius-sm); font-size: 14px; }
.files .thumb { width: 40px; height: 40px; flex: none; border-radius: 4px; object-fit: cover; background: #f0f0f0; border: 1px solid var(--stroke); }
.files .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .fmeta { display: block; font-size: 12px; color: var(--text-3); }
.files .fbtns { display: flex; gap: 2px; flex: none; }
.files .btn { height: 34px; min-height: 34px; }
.files .btn-icon svg { width: 16px; height: 16px; }

/* Page thumbnails (rotate, split preview) */
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.page { position: relative; display: grid; gap: 4px; justify-items: center; padding: 6px; border: 1px solid var(--stroke); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font: inherit; font-size: 12px; color: var(--text-2); }
.page canvas { max-width: 100%; height: auto; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); transition: transform .2s var(--ease); }
.page:hover { border-color: var(--accent); }
.page.r90 canvas { transform: rotate(90deg) scale(.75); }
.page.r180 canvas { transform: rotate(180deg); }
.page.r270 canvas { transform: rotate(270deg) scale(.75); }

/* Stats tiles (word counter, age): four in a row even on phones. */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stats div { padding: 8px 6px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--stroke); text-align: center; min-width: 0; }
.stats b { display: block; font-size: 19px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.stats span { display: block; font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result .stats div { background: var(--surface); }
.big-answer { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0; }

/* Tables (unit converter, URL parts, regex matches) */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #efefef; vertical-align: top; }
.tbl th { font-weight: 600; color: var(--text-2); font-size: 12.5px; }
.tbl td.num { font-variant-numeric: tabular-nums; word-break: break-all; }
.tbl tr.hl td { background: var(--accent-soft); }
.tbl-wrap { border: 1px solid var(--stroke); border-radius: var(--radius-sm); overflow: auto; max-height: 360px; background: var(--surface); }
.tbl-wrap .tbl tr:last-child td { border-bottom: 0; }

/* Pattern finder highlights */
.hl-out { white-space: pre-wrap; word-break: break-word; }
.hl-out mark { background: #ffe08a; border-radius: 2px; padding: 0 1px; }
.hl-out mark:nth-of-type(2n) { background: #b9e3ff; }
.cheat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin: 0; font-size: 13px; }
.cheat div { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.cheat dt { flex: none; min-width: 44px; font-family: "Cascadia Mono", Consolas, monospace; font-weight: 600; color: var(--accent-ink); }
.cheat dd { margin: 0; color: var(--text-2); }

/* Cropper frame */
.crop-box { max-height: 56vh; background: #f3f3f3; border-radius: var(--radius-sm); overflow: hidden; }
.crop-box img { display: block; max-width: 100%; }

/* QR */
.qr-out { display: grid; place-items: center; padding: 14px; background: #fff; border: 1px solid var(--stroke); border-radius: var(--radius); }
.qr-out canvas { width: 220px; height: 220px; image-rendering: pixelated; }
.qr-caption { margin: 8px 0 0; text-align: center; font-size: 14px; font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 0 14px; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; color: var(--text-3); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 14px; color: var(--text-2); font-size: 14px; }
.tool-page .steps li { margin-bottom: 8px; }

/* Prose pages (privacy, about) */
.prose h1 { font-size: 28px; font-weight: 600; margin: 0 0 6px; }
.prose h2 { font-size: 18px; margin: 22px 0 6px; }
.prose p, .prose li { color: var(--text-2); }
.prose li { margin: 4px 0; }

/* 4Carbon card */
.company { display: grid; gap: 14px; align-items: center; }
.company img { width: 140px; border-radius: 4px; background: #000; }
.company h2 { font-size: 18px; margin: 0 0 4px; }
.company .actions { margin-top: 12px; }

/* Ads: a quiet, labelled card that sits in the page flow. Space is reserved so nothing jumps. */
.ad { margin: 20px 0 0; padding: 8px 8px 10px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface-2); text-align: center; }
.ad-label { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.ad .adsbygoogle { display: block; min-height: 100px; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }

.foot-note { color: var(--text-3); font-size: 12px; }

/* Tool pages on phones: tighter sections below the tool. */
.tool-page .section { padding-top: 22px; }
.tool-page .section h2 { font-size: 19px; margin-bottom: 10px; }

@media (min-width: 600px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company { grid-template-columns: auto 1fr; gap: 20px; }
  .company img { width: 160px; }
  .chips { flex-wrap: wrap; overflow: visible; }
  .trust-wrap { margin: 14px 0 0; -webkit-mask-image: none; mask-image: none; }
  .trust { animation: none; flex-wrap: wrap; width: auto; padding: 0; gap: 6px 0; }
  .trust .dup { display: none; }
  .drop { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 4px; min-height: 140px; padding: 22px 16px; }
  .drop svg { grid-row: auto; width: 34px; height: 34px; }
  .drop.compact { grid-template-columns: auto auto; justify-content: center; min-height: var(--ctl); padding: 6px 14px; }
  .tool-actions { display: flex; flex-wrap: wrap; }
  .tool-actions .btn { min-width: 168px; }
  .stats { gap: 8px; }
  .stats div { padding: 10px 12px; text-align: left; }
  .stats b { font-size: 22px; }
  .stats span { font-size: 12.5px; }
  .hero-tools { padding: 26px 0 22px; }
  .hero-tools h1 { font-size: 32px; }
}
@media (min-width: 768px) {
  .tool-head { padding: 18px 0 22px; }
  .tool-head h1 { font-size: 28px; }
  .tool-head .lead { font-size: 15px; }
  .ic-lg { width: 48px; height: 48px; }
  .ic-lg svg { width: 26px; height: 26px; }
  .tool-body { padding-top: 16px; }
  .tool { --gap: 14px; padding: 22px; }
  .io { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .io textarea.in { min-height: 200px; }
  .qr-out canvas { width: 240px; height: 240px; }
  .ad .adsbygoogle { min-height: 250px; }
  .tool-page .section { padding-top: 28px; }
  .tool-page .section h2 { font-size: 22px; }
}
@media (min-width: 1024px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-body .wrap, .tool-head .wrap { max-width: 900px; }
}
@media print {
  .ad, .tool-head .crumbs, .privacy-note { display: none; }
}
