/* Zarq Free Tools: design system. Scoped to .zt-scope so it never leaks into the theme. */

.zt-scope {
	--zt-brand: #0E0E0C;
	--zt-accent: #C5F04A;
	--zt-cat: #2563eb;
	--zt-bg: #ffffff;
	--zt-surface: #ffffff;
	--zt-soft: #F4F4F1;
	--zt-line: #E4E4DE;
	--zt-ink: #0E0E0C;
	--zt-body: #2A2A26;
	--zt-muted: #6F6F62;
	--zt-ok: #15803d;
	--zt-ok-bg: #ecfdf3;
	--zt-err: #b91c1c;
	--zt-err-bg: #fef2f2;
	--zt-warn: #a16207;
	--zt-radius: 16px;
	--zt-radius-sm: 10px;
	--zt-shadow: 0 1px 2px rgba(14, 14, 12, .05), 0 8px 24px -12px rgba(14, 14, 12, .18);
	--zt-shadow-lg: 0 2px 4px rgba(14, 14, 12, .06), 0 20px 48px -20px rgba(14, 14, 12, .3);
	--zt-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--zt-ease: cubic-bezier(.2, .7, .2, 1);
	--zt-cat-soft: color-mix(in srgb, var(--zt-cat) 10%, transparent);
	--zt-cat-line: color-mix(in srgb, var(--zt-cat) 30%, transparent);
	color: var(--zt-body);
	box-sizing: border-box;
}
.zt-scope *, .zt-scope *::before, .zt-scope *::after { box-sizing: inherit; }

html[data-zt-theme="dark"] .zt-scope {
	--zt-bg: #0f100d;
	--zt-surface: #171813;
	--zt-soft: #1f201a;
	--zt-line: #2e3027;
	--zt-ink: #f4f4ef;
	--zt-body: #d8d8cf;
	--zt-muted: #a0a091;
	--zt-ok: #4ade80;
	--zt-ok-bg: rgba(74, 222, 128, .1);
	--zt-err: #f87171;
	--zt-err-bg: rgba(248, 113, 113, .1);
	--zt-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
	--zt-shadow-lg: 0 20px 48px -20px rgba(0, 0, 0, .7);
	--zt-cat-soft: color-mix(in srgb, var(--zt-cat) 18%, transparent);
	--zt-cat-line: color-mix(in srgb, var(--zt-cat) 45%, transparent);
}
html[data-zt-theme="dark"] body.zt-section .zq-main { background: #0f100d; }
html[data-zt-theme="dark"] body.zt-section .zq-main .zt-scope { background: transparent; }

/* ---------- Layout ---------- */
.zt-hub, .zt-category, .zt-single { max-width: 1180px; margin: 0 auto; padding: 8px 0 64px; }
.zt-single { max-width: 1040px; }
.zt-section-block { margin-top: 56px; }
.zt-h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -.02em; color: var(--zt-ink); margin: 0 0 20px; font-weight: 700; }

.zt-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.zt-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; color: var(--zt-muted); }
.zt-breadcrumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--zt-muted); }
.zt-breadcrumbs a { color: var(--zt-muted); text-decoration: none; }
.zt-breadcrumbs a:hover { color: var(--zt-ink); text-decoration: underline; }
.zt-breadcrumbs [aria-current] { color: var(--zt-ink); }

.zt-theme-toggle { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--zt-line); background: var(--zt-surface); color: var(--zt-ink); border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
.zt-theme-toggle:hover { border-color: var(--zt-ink); background: var(--zt-surface); color: var(--zt-ink); }

/* ---------- Hero ---------- */
.zt-hero { padding: 32px 0 8px; }
.zt-hero h1, .zt-tool-head h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.02; letter-spacing: -.035em; color: var(--zt-ink); margin: 12px 0 14px; font-weight: 800; }
.zt-lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--zt-body); max-width: 680px; margin: 0; }
.zt-kicker { display: inline-flex; align-items: center; gap: 6px; font-family: var(--zt-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--zt-ink); background: var(--zt-accent); padding: 6px 10px; border-radius: 999px; }
.zt-hero-cat { display: flex; align-items: center; gap: 16px; }
.zt-hero-cat h1 { margin: 0; }
.zt-hero-icon { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--zt-cat-soft); color: var(--zt-cat); }
.zt-tool-head { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0 20px; }
.zt-tool-head h1 { margin-top: 0; font-size: clamp(30px, 4.4vw, 48px); }

/* ---------- Search ---------- */
.zt-search { position: relative; margin-top: 24px; max-width: 560px; }
.zt-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--zt-muted); pointer-events: none; }
.zt-search input { width: 100%; height: 54px; padding: 0 18px 0 48px; border: 1.5px solid var(--zt-line); border-radius: 14px; background: var(--zt-surface); color: var(--zt-ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.zt-search input:focus { outline: none; border-color: var(--zt-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--zt-accent) 60%, transparent); }
.zt-search-results { margin-top: 32px; }
.zt-empty { color: var(--zt-muted); padding: 16px 0; }

/* ---------- Cards ---------- */
.zt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.zt-card { position: relative; display: flex; gap: 14px; padding: 20px; background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: var(--zt-radius); color: var(--zt-body); text-decoration: none; transition: transform .25s var(--zt-ease), box-shadow .25s var(--zt-ease), border-color .25s; }
.zt-card:hover { transform: translateY(-3px); box-shadow: var(--zt-shadow-lg); border-color: var(--zt-cat-line); color: var(--zt-body); }
.zt-card:focus-visible { outline: 3px solid var(--zt-cat); outline-offset: 2px; }
.zt-card-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--zt-cat-soft); color: var(--zt-cat); }
.zt-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.zt-card-cat { font-family: var(--zt-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--zt-cat); }
.zt-card-title { font-size: 17px; line-height: 1.25; color: var(--zt-ink); font-weight: 700; }
.zt-card-desc { font-size: 14px; line-height: 1.5; color: var(--zt-muted); }
.zt-card-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--zt-ink); }
.zt-card:hover .zt-card-cta svg { transform: translateX(3px); }
.zt-card-cta svg { transition: transform .2s; }

.zt-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.zt-cat-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--zt-radius); background: var(--zt-cat-soft); border: 1px solid transparent; color: var(--zt-ink); text-decoration: none; transition: border-color .2s, transform .25s var(--zt-ease); }
.zt-cat-card:hover { border-color: var(--zt-cat); transform: translateY(-2px); color: var(--zt-ink); }
.zt-cat-card .zt-card-icon { background: var(--zt-surface); }
.zt-cat-card strong { font-size: 17px; }
.zt-count { font-family: var(--zt-mono); font-size: 12px; color: var(--zt-muted); }

.zt-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 20px; scrollbar-width: none; }
.zt-chips::-webkit-scrollbar { display: none; }
.zt-chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--zt-line); background: var(--zt-surface); color: var(--zt-ink); font-size: 14px; text-decoration: none; white-space: nowrap; }
.zt-chip:hover { border-color: var(--zt-ink); color: var(--zt-ink); }
.zt-chip.is-active { background: var(--zt-ink); color: var(--zt-bg); border-color: var(--zt-ink); }

.zt-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.zt-guide, .zt-guide-link { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--zt-radius); border: 1px solid var(--zt-line); background: var(--zt-surface); text-decoration: none; color: var(--zt-body); }
.zt-guide:hover, .zt-guide-link:hover { border-color: var(--zt-ink); color: var(--zt-body); }
.zt-guide strong, .zt-guide-link strong { color: var(--zt-ink); font-size: 17px; line-height: 1.3; }
.zt-guide-kicker { font-family: var(--zt-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--zt-olive, #5C6B3C); }
.zt-guide-link { position: relative; margin-top: 32px; padding-right: 56px; background: var(--zt-soft); border-color: transparent; }
.zt-guide-link svg { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
.zt-empty-state { padding: 28px; border-radius: var(--zt-radius); background: var(--zt-soft); }

/* ---------- Content ---------- */
.zt-content-layout { display: grid; gap: 40px; margin-top: 56px; }
.zt-content-layout.has-aside { grid-template-columns: minmax(0, 1fr) 300px; }
.zt-aside { position: sticky; top: 24px; align-self: start; }
.zt-prose { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--zt-body); }
.zt-prose h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -.02em; color: var(--zt-ink); margin: 40px 0 14px; }
.zt-prose h3 { font-size: 19px; color: var(--zt-ink); margin: 28px 0 10px; }
.zt-prose p, .zt-prose ul, .zt-prose ol { margin: 0 0 16px; }
.zt-prose li { margin-bottom: 8px; }
.zt-prose a { color: var(--zt-ink); text-decoration: underline; text-decoration-color: var(--zt-cat); text-underline-offset: 3px; }
.zt-prose strong { color: var(--zt-ink); }
.zt-tool-content { margin-top: 48px; }
.zt-faq details { border-bottom: 1px solid var(--zt-line); }
.zt-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; }
.zt-faq summary::-webkit-details-marker { display: none; }
.zt-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--zt-muted); transition: transform .2s; }
.zt-faq details[open] summary::after { transform: rotate(45deg); }
.zt-faq summary h3 { margin: 0; font-size: 17px; }
.zt-faq details p { margin: 0 0 18px; color: var(--zt-body); }

/* ---------- Ads ---------- */
.zt-ad { margin: 40px auto; text-align: center; min-height: 100px; }
.zt-ad-label { display: block; font-family: var(--zt-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--zt-muted); margin-bottom: 6px; }

/* ---------- Tool app shell ---------- */
.zt-app-wrap { margin-top: 4px; }
.zt-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: var(--zt-ok-bg); color: var(--zt-ok); font-size: 13px; font-weight: 600; }
.zt-badge a { color: inherit; font-weight: 400; text-decoration: underline; }
.zt-app { background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: 20px; padding: clamp(16px, 3vw, 28px); box-shadow: var(--zt-shadow); min-height: 280px; }
.zt-note { padding: 16px; border-radius: var(--zt-radius-sm); background: var(--zt-soft); }

.zt-skeleton { display: grid; gap: 12px; }
.zt-skeleton div { height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--zt-soft) 25%, var(--zt-line) 50%, var(--zt-soft) 75%); background-size: 200% 100%; animation: zt-shimmer 1.4s infinite; }
.zt-skeleton div:first-child { height: 180px; border-radius: 16px; }
.zt-skeleton div:last-child { width: 40%; }
@keyframes zt-shimmer { to { background-position: -200% 0; } }

/* Drop zone */
.zt-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 220px; padding: 28px 20px; border: 2px dashed var(--zt-cat-line); border-radius: 16px; background: var(--zt-cat-soft); text-align: center; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .25s, transform .2s; }
.zt-drop:hover { border-color: var(--zt-cat); }
.zt-drop:focus-visible { outline: none; border-color: var(--zt-cat); box-shadow: 0 0 0 4px var(--zt-cat-line); }
.zt-drop.is-over { border-style: solid; border-color: var(--zt-cat); box-shadow: 0 0 0 6px var(--zt-cat-line), 0 0 40px -6px var(--zt-cat); transform: scale(1.01); }
.zt-drop.is-shake { animation: zt-shake .4s; border-color: var(--zt-err); }
.zt-drop-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--zt-surface); color: var(--zt-cat); box-shadow: var(--zt-shadow); }
.zt-drop-title { font-size: 18px; font-weight: 700; color: var(--zt-ink); margin: 0; }
.zt-drop-sub { font-size: 14px; color: var(--zt-muted); margin: 0; }
.zt-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.zt-drop.is-compact { min-height: 0; flex-direction: row; padding: 14px 18px; gap: 12px; }
.zt-drop.is-compact .zt-drop-icon { width: 40px; height: 40px; box-shadow: none; }
.zt-drop.is-compact .zt-drop-title { font-size: 15px; }
@keyframes zt-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* Buttons */
.zt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1.5px solid var(--zt-ink); background: var(--zt-ink); color: var(--zt-bg); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, color .2s, box-shadow .2s; }
.zt-btn:hover { background: var(--zt-ink); color: var(--zt-bg); box-shadow: 0 6px 18px -8px var(--zt-ink); transform: translateY(-1px); }
.zt-btn:active { transform: translateY(0); }
.zt-btn:focus-visible { outline: 3px solid var(--zt-cat); outline-offset: 2px; }
.zt-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.zt-btn-accent { background: var(--zt-accent); border-color: var(--zt-accent); color: #0E0E0C; }
.zt-btn-accent:hover { background: var(--zt-accent); color: #0E0E0C; }
.zt-btn-ghost { background: transparent; color: var(--zt-ink); border-color: var(--zt-line); }
.zt-btn-ghost:hover { background: var(--zt-soft); color: var(--zt-ink); border-color: var(--zt-ink); box-shadow: none; }
.zt-btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.zt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Controls */
.zt-controls { display: grid; gap: 18px; margin: 20px 0; }
.zt-field { display: grid; gap: 8px; }
.zt-label { font-size: 13px; font-weight: 600; color: var(--zt-ink); display: flex; justify-content: space-between; gap: 8px; }
.zt-label output { font-family: var(--zt-mono); font-weight: 500; color: var(--zt-muted); }
.zt-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--zt-soft); }
.zt-seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--zt-body); font: inherit; font-size: 14px; cursor: pointer; }
.zt-seg button:hover { background: transparent; color: var(--zt-ink); }
.zt-seg button[aria-pressed="true"] { background: var(--zt-surface); color: var(--zt-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.zt-seg button:focus-visible { outline: 2px solid var(--zt-cat); outline-offset: 1px; }
.zt-range { width: 100%; accent-color: var(--zt-cat); height: 28px; }
.zt-input, .zt-select { height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--zt-line); background: var(--zt-surface); color: var(--zt-ink); font: inherit; font-size: 15px; }
.zt-input:focus, .zt-select:focus { outline: none; border-color: var(--zt-cat); }
.zt-inline { display: flex; align-items: center; gap: 8px; }
.zt-hint { font-size: 13px; color: var(--zt-muted); margin: 0; }
.zt-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* File list */
.zt-files { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.zt-file { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--zt-line); background: var(--zt-surface); animation: zt-in .35s var(--zt-ease) both; }
.zt-file.is-active { border-color: var(--zt-cat); box-shadow: 0 0 0 3px var(--zt-cat-soft); }
.zt-file-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--zt-soft); cursor: pointer; border: 0; padding: 0; overflow: hidden; }
.zt-file-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zt-file-name { font-size: 14px; font-weight: 600; color: var(--zt-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.zt-file-meta { font-size: 13px; color: var(--zt-muted); margin: 2px 0 0; font-family: var(--zt-mono); }
.zt-file-meta .is-good { color: var(--zt-ok); font-weight: 600; }
.zt-file-meta .is-bad { color: var(--zt-err); }
.zt-file-actions { display: flex; gap: 6px; align-items: center; }
.zt-icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--zt-line); background: var(--zt-surface); color: var(--zt-ink); cursor: pointer; padding: 0; }
.zt-icon-btn:hover { border-color: var(--zt-ink); background: var(--zt-surface); color: var(--zt-ink); }
.zt-icon-btn:focus-visible { outline: 2px solid var(--zt-cat); outline-offset: 1px; }
@keyframes zt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Progress */
.zt-progress { height: 6px; border-radius: 999px; background: var(--zt-soft); overflow: hidden; margin-top: 6px; }
.zt-progress span { display: block; height: 100%; width: 0; background: var(--zt-cat); border-radius: inherit; transition: width .3s var(--zt-ease); }
.zt-progress.is-indeterminate span { width: 40%; animation: zt-indet 1.1s infinite ease-in-out; }
@keyframes zt-indet { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Success check */
.zt-check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--zt-ok); color: #fff; }
.zt-check svg { stroke-dasharray: 24; stroke-dashoffset: 24; animation: zt-draw .45s .1s var(--zt-ease) forwards; }
@keyframes zt-draw { to { stroke-dashoffset: 0; } }

/* Summary bar */
.zt-summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--zt-soft); }
.zt-summary-stat { display: flex; flex-direction: column; }
.zt-summary-stat strong { font-size: 22px; color: var(--zt-ink); letter-spacing: -.02em; }
.zt-summary-stat span { font-size: 13px; color: var(--zt-muted); }
.zt-summary .zt-saved { color: var(--zt-ok); }

/* Compare slider */
.zt-compare { position: relative; margin: 18px auto 0; border-radius: 14px; overflow: hidden; background: repeating-conic-gradient(var(--zt-soft) 0 25%, var(--zt-surface) 0 50%) 0 0 / 20px 20px; user-select: none; touch-action: pan-y; aspect-ratio: var(--zt-ar, 16 / 10); max-height: 70vh; }
.zt-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.zt-compare .zt-after { clip-path: inset(0 0 0 var(--zt-pos, 50%)); }
.zt-compare-handle { position: absolute; top: 0; bottom: 0; left: var(--zt-pos, 50%); width: 0; border-left: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none; }
.zt-compare-handle::after { content: ""; position: absolute; top: 50%; left: -19px; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230E0E0C' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.zt-compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.zt-compare input[type=range]:focus-visible + .zt-compare-handle::after { outline: 3px solid var(--zt-cat); outline-offset: 2px; }
.zt-compare-tag { position: absolute; top: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(14, 14, 12, .75); color: #fff; font-family: var(--zt-mono); font-size: 11px; pointer-events: none; }
.zt-compare-tag.is-left { left: 10px; }
.zt-compare-tag.is-right { right: 10px; }

/* Toasts */
.zt-toasts { position: fixed; z-index: 99999; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.zt-toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #0E0E0C; color: #fff; font-size: 14px; line-height: 1.45; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); animation: zt-toast-in .3s var(--zt-ease) both; pointer-events: auto; }
.zt-toast.is-error { background: #7f1d1d; }
.zt-toast.is-ok { background: #14532d; }
.zt-toast.is-out { animation: zt-toast-out .25s ease forwards; }
@keyframes zt-toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes zt-toast-out { to { opacity: 0; transform: translateY(8px); } }

.zt-error-box { padding: 14px 16px; border-radius: 12px; background: var(--zt-err-bg); color: var(--zt-err); font-size: 14px; margin-top: 12px; }

.screen-reader-text.zt-sr, .zt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.zt-content-layout.has-aside { grid-template-columns: 1fr; }
	.zt-aside { position: static; }
}
@media (max-width: 600px) {
	.zt-hub, .zt-category, .zt-single { padding-bottom: 40px; }
	.zt-hero { padding-top: 20px; }
	.zt-tool-head { gap: 12px; padding-top: 12px; }
	.zt-tool-head .zt-hero-icon { width: 48px; height: 48px; border-radius: 12px; }
	.zt-grid { grid-template-columns: 1fr; gap: 12px; }
	.zt-cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.zt-cat-card { padding: 16px; }
	.zt-row-2 { grid-template-columns: 1fr; }
	.zt-file { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 8px; }
	.zt-file-thumb { width: 44px; height: 44px; }
	.zt-file-meta { font-size: 12px; }
	.zt-file-actions { gap: 4px; }
	.zt-actions .zt-btn { flex: 1 1 auto; }
	.zt-prose { font-size: 16px; }
	.zt-section-block, .zt-content-layout { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.zt-scope *, .zt-toast { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.zt-check svg { stroke-dashoffset: 0; }
}

.zt-scope [hidden] { display: none !important; }

/* =========================================================
   Rich page content: designed sections instead of plain prose
   ========================================================= */
.zt-rich { --zt-rich-max: 1040px; max-width: var(--zt-rich-max); color: var(--zt-body); font-size: 16.5px; line-height: 1.65; }
.zt-tool-content { margin-top: 40px; }
.zt-rich p { margin: 0 0 14px; }
.zt-rich a { color: var(--zt-ink); text-decoration: underline; text-decoration-color: var(--zt-cat); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.zt-rich strong { color: var(--zt-ink); }
.zt-rich h3 { color: var(--zt-ink); }

.zt-lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; letter-spacing: -.01em; color: var(--zt-ink); max-width: 820px; margin: 0 0 8px !important; padding-left: 20px; border-left: 4px solid var(--zt-cat); }

.zt-block { margin: 56px 0 0; }
.zt-block > h2 { position: relative; font-size: clamp(24px, 3vw, 34px); line-height: 1.12; letter-spacing: -.025em; color: var(--zt-ink); margin: 0 0 24px; font-weight: 800; scroll-margin-top: 90px; }
.zt-block[data-kicker]::before { content: attr(data-kicker); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; grid-column: 1 / -1; font-family: var(--zt-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--zt-cat); }

/* Steps: oversized outlined numbers joined by a line */
.zt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: zt-step; position: relative; }
.zt-steps::before { content: ""; position: absolute; top: 38px; left: 8%; right: 8%; border-top: 2px dashed var(--zt-cat-line); }
.zt-steps li { position: relative; counter-increment: zt-step; padding: 0 22px 24px; background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: 20px; margin: 0; }
.zt-steps li::before { content: "0" counter(zt-step); display: inline-grid; place-items: center; width: 76px; height: 76px; margin: -1px 0 6px; transform: translateY(0); font-family: var(--zt-mono); font-size: 26px; font-weight: 700; color: var(--zt-ink); background: var(--zt-accent); border-radius: 0 0 22px 22px; position: relative; z-index: 1; }
.zt-steps h3 { font-size: 19px; line-height: 1.25; margin: 14px 0 8px; }
.zt-steps p { margin: 0; color: var(--zt-body); font-size: 15.5px; }

/* Features: bento grid, first tile in ink */
.zt-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.zt-features li { margin: 0; padding: 22px; border-radius: 18px; background: var(--zt-soft); position: relative; overflow: hidden; }
.zt-features li::before { content: ""; display: block; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 9px; background: var(--zt-cat) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.zt-features h3 { font-size: 17px; margin: 0 0 6px; }
.zt-features p { margin: 0; font-size: 15px; color: var(--zt-body); }
.zt-features li:first-child { grid-column: span 2; background: #0E0E0C; color: #d8d8cf; }
.zt-features li:first-child::before { background-color: var(--zt-accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230E0E0C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.zt-features li:first-child h3 { color: #fff; font-size: 22px; letter-spacing: -.01em; }
.zt-features li:first-child p { color: #c9c9bd; font-size: 16px; max-width: 520px; }
.zt-features li:first-child::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--zt-accent) 35%, transparent), transparent 70%); }
.zt-features li:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 30px 1fr; column-gap: 16px; align-items: start; }
.zt-features li:last-child::before { grid-row: span 2; margin: 0; }

/* Use cases: numbered cards with a colored top rule, horizontal scroll on phones */
.zt-uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: zt-use; }
.zt-use { counter-increment: zt-use; padding: 22px 22px 20px; border-radius: 18px; border: 1px solid var(--zt-line); background: var(--zt-surface); border-top: 4px solid var(--zt-cat); }
.zt-use::before { content: "Use case " counter(zt-use, decimal-leading-zero); font-family: var(--zt-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--zt-muted); }
.zt-use h3 { font-size: 18px; margin: 8px 0 6px; }
.zt-use p { margin: 0; font-size: 15.5px; }

/* Explainers: heading on the left, text on the right */
.zt-explain { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px 48px; padding-top: 40px; border-top: 1px solid var(--zt-line); }
.zt-explain > h2 { position: sticky; top: 24px; align-self: start; font-size: clamp(22px, 2.4vw, 28px); margin: 0; }
.zt-explain-body { font-size: 17px; line-height: 1.7; }
.zt-explain-body p:first-child { font-size: 1.08em; color: var(--zt-ink); }
.zt-explain-body p:last-child { margin-bottom: 0; }

/* Callout */
.zt-callout { position: relative; padding: 24px 24px 22px 76px; border-radius: 20px; background: color-mix(in srgb, var(--zt-accent) 22%, var(--zt-surface)); border: 1px solid color-mix(in srgb, var(--zt-accent) 60%, transparent); }
.zt-callout::before { content: "!"; position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #0E0E0C; color: var(--zt-accent); font-weight: 800; font-family: var(--zt-mono); }
.zt-callout > h2 { font-size: 20px; margin: 0 0 8px; }
.zt-callout p { margin: 0; color: var(--zt-ink); }
html[data-zt-theme="dark"] .zt-callout { background: color-mix(in srgb, var(--zt-accent) 10%, var(--zt-surface)); }

/* Points (category intro) */
.zt-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--zt-line); border-radius: 20px; overflow: hidden; background: var(--zt-surface); }
.zt-points li { margin: 0; padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.zt-points li + li { border-left: 1px solid var(--zt-line); }
.zt-points strong { font-size: 22px; letter-spacing: -.02em; color: var(--zt-cat); }
.zt-points span { font-size: 15px; color: var(--zt-body); }

/* FAQ as cards */
.zt-faq-list { display: grid; gap: 10px; }
.zt-faq details { border: 1px solid var(--zt-line); border-radius: 16px; background: var(--zt-surface); padding: 0 20px; transition: border-color .2s, box-shadow .2s; }
.zt-faq details[open] { border-color: var(--zt-cat-line); box-shadow: 0 0 0 3px var(--zt-cat-soft); }
.zt-faq summary { padding: 18px 0; }
.zt-faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--zt-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%230E0E0C' stroke-width='2.5' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; }
.zt-faq details[open] summary::after { transform: rotate(45deg); background-color: var(--zt-accent); }
.zt-faq summary h3 { font-size: 17px; line-height: 1.35; }
.zt-faq details p { margin: 0 0 18px; }

/* On this page */
.zt-onpage { display: flex; gap: 8px; align-items: center; overflow-x: auto; margin: 36px 0 0; padding: 10px 0; border-top: 1px solid var(--zt-line); border-bottom: 1px solid var(--zt-line); scrollbar-width: none; }
.zt-onpage::-webkit-scrollbar { display: none; }
.zt-onpage-label { flex: none; font-family: var(--zt-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--zt-muted); margin-right: 4px; }
.zt-onpage a { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--zt-soft); color: var(--zt-ink); font-size: 13px; text-decoration: none; white-space: nowrap; }
.zt-onpage a:hover { background: var(--zt-ink); color: var(--zt-bg); }
html { scroll-behavior: smooth; }

/* Hub "why" strip */
.zt-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-radius: 22px; overflow: hidden; background: #0E0E0C; }
.zt-why-item { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; color: #c9c9bd; font-size: 14.5px; line-height: 1.5; }
.zt-why-item + .zt-why-item { border-left: 1px solid rgba(255, 255, 255, .08); }
.zt-why-item strong { color: #fff; font-size: 17px; }
.zt-why-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--zt-accent); color: #0E0E0C; margin-bottom: 8px; }

/* =========================================================
   Tool UI components (phases 2 to 4)
   ========================================================= */
.zt-check-row { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--zt-body); cursor: pointer; min-height: 32px; }
.zt-check-row input { width: 18px; height: 18px; accent-color: var(--zt-cat); margin: 0; }
.zt-checks { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 0; }
.zt-checks legend { padding: 0; margin-bottom: 6px; }
.zt-checks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zt-color { width: 52px; height: 40px; padding: 2px; border: 1.5px solid var(--zt-line); border-radius: 10px; background: var(--zt-surface); cursor: pointer; }
.zt-textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.55; resize: vertical; width: 100%; font: inherit; font-size: 15.5px; }
.zt-editor { min-height: 220px; }
.zt-mono { font-family: var(--zt-mono) !important; font-size: 13.5px !important; tab-size: 4; }
.zt-input { width: 100%; }
.zt-inline .zt-input, .zt-dims .zt-input { width: 100%; }
.zt-dims { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.zt-dim { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--zt-ink); }
.zt-dim-x { padding-bottom: 10px; color: var(--zt-muted); font-size: 18px; }
.zt-center { justify-content: center; margin-top: 14px; }
.zt-right { text-align: right; }
.zt-end { align-self: end; }
.zt-inline-controls { margin-top: 0; }
.zt-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--zt-soft); font-size: 14px; }
.zt-status:empty { display: none; }
.zt-status.is-ok { background: var(--zt-ok-bg); color: var(--zt-ok); }
.zt-status.is-bad { background: var(--zt-err-bg); color: var(--zt-err); }
.zt-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.zt-more { margin-top: 12px; border: 1px solid var(--zt-line); border-radius: 14px; padding: 0 16px; }
.zt-more > summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--zt-ink); font-size: 14.5px; }
.zt-more[open] > summary { border-bottom: 1px solid var(--zt-line); margin-bottom: 14px; }
.zt-more > div, .zt-more > .zt-controls { padding-bottom: 14px; }

.zt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.zt-toolbar-sep { width: 1px; height: 24px; background: var(--zt-line); margin: 0 4px; }
.zt-icon-btn[disabled] { opacity: .4; cursor: not-allowed; }

/* Image batch preview */
.zt-preview { margin: 16px 0 0; text-align: center; padding: 14px; border-radius: 14px; background: repeating-conic-gradient(var(--zt-soft) 0 25%, var(--zt-surface) 0 50%) 0 0 / 20px 20px; }
.zt-preview img { max-width: 100%; max-height: 50vh; border-radius: 8px; box-shadow: var(--zt-shadow); }
.zt-preview figcaption { margin-top: 10px; font-family: var(--zt-mono); font-size: 12.5px; color: var(--zt-muted); }
.zt-file-badge { display: grid; place-items: center; font-family: var(--zt-mono); font-weight: 700; font-size: 14px; color: var(--zt-cat); background: var(--zt-cat-soft); }
.zt-sortable .zt-file { cursor: grab; }
.zt-file.is-dragging { opacity: .5; }

/* Thumb grid (JPG to PDF) */
.zt-thumbs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.zt-thumb { position: relative; margin: 0; border: 1px solid var(--zt-line); border-radius: 12px; overflow: hidden; background: var(--zt-soft); animation: zt-in .3s var(--zt-ease) both; }
.zt-thumb img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; }
.zt-thumb-n { position: absolute; top: 6px; left: 6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #0E0E0C; color: #fff; font-family: var(--zt-mono); font-size: 12px; display: grid; place-items: center; }
.zt-thumb-actions { display: flex; justify-content: center; gap: 4px; padding: 6px; background: var(--zt-surface); }
.zt-thumb-actions .zt-icon-btn { width: 32px; height: 32px; }

/* Cropper */
.zt-crop-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 200px; padding: 10px; border-radius: 14px; background: repeating-conic-gradient(var(--zt-soft) 0 25%, var(--zt-surface) 0 50%) 0 0 / 20px 20px; touch-action: none; user-select: none; }
.zt-crop-canvas { display: block; max-width: 100%; }
.zt-crop-box { position: absolute; box-shadow: 0 0 0 9999px rgba(14, 14, 12, .55); outline: 2px solid #fff; cursor: move; touch-action: none; }
.zt-crop-stage { overflow: hidden; }
.zt-crop-box::before, .zt-crop-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(255, 255, 255, .35); }
.zt-crop-box::before { left: 33.33%; right: 33.33%; border-top: 0; border-bottom: 0; }
.zt-crop-box::after { top: 33.33%; bottom: 33.33%; border-left: 0; border-right: 0; }
.zt-crop-box:focus-visible { outline: 3px solid var(--zt-accent); }
.zt-crop-h { position: absolute; width: 22px; height: 22px; background: #fff; border: 2px solid #0E0E0C; border-radius: 50%; z-index: 2; }
.zt-crop-nw { left: -11px; top: -11px; cursor: nwse-resize; }
.zt-crop-ne { right: -11px; top: -11px; cursor: nesw-resize; }
.zt-crop-sw { left: -11px; bottom: -11px; cursor: nesw-resize; }
.zt-crop-se { right: -11px; bottom: -11px; cursor: nwse-resize; }
.zt-crop-dim { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); padding: 2px 8px; border-radius: 6px; background: rgba(14, 14, 12, .8); color: #fff; font-family: var(--zt-mono); font-size: 11px; white-space: nowrap; pointer-events: none; }

/* QR */
.zt-qr { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.zt-qr-right { position: sticky; top: 20px; display: grid; gap: 14px; }
.zt-qr-frame { display: grid; place-items: center; aspect-ratio: 1; border-radius: 18px; background: var(--zt-soft); padding: 18px; }
.zt-qr-canvas { width: 100%; max-width: 340px; height: auto; image-rendering: pixelated; border-radius: 8px; }
.zt-qr-empty { color: var(--zt-muted); text-align: center; margin: 0; }
.zt-qr-payload { display: block; max-height: 80px; overflow: auto; font-family: var(--zt-mono); font-size: 11.5px; color: var(--zt-muted); word-break: break-all; white-space: pre-wrap; }
.zt-qr-video { display: block; width: 100%; max-height: 60vh; margin-top: 14px; border-radius: 14px; background: #000; object-fit: cover; }
.zt-result { margin-top: 18px; padding: 18px; border-radius: 16px; border: 1px solid var(--zt-line); background: var(--zt-surface); }
.zt-result-kind { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--zt-ink); }
.zt-result-text { margin: 12px 0; padding: 14px; border-radius: 12px; background: var(--zt-soft); font-family: var(--zt-mono); font-size: 14px; white-space: pre-wrap; word-break: break-all; color: var(--zt-ink); }

/* Text stats */
.zt-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.zt-stat { padding: 14px; border-radius: 14px; background: var(--zt-soft); display: flex; flex-direction: column; gap: 2px; }
.zt-stat strong { font-size: 24px; letter-spacing: -.02em; color: var(--zt-ink); line-height: 1.1; }
.zt-stat span { font-size: 12.5px; color: var(--zt-muted); }
.zt-stat.is-main { background: #0E0E0C; }
.zt-stat.is-main strong { color: var(--zt-accent); }
.zt-stat.is-main span { color: #c9c9bd; }
.zt-kw { display: grid; gap: 8px; padding-bottom: 14px; }
.zt-kw-row { display: grid; grid-template-columns: 140px 1fr 110px; gap: 10px; align-items: center; font-size: 14px; }
.zt-kw-word { font-weight: 600; color: var(--zt-ink); overflow: hidden; text-overflow: ellipsis; }
.zt-kw-bar { height: 8px; border-radius: 999px; background: var(--zt-soft); overflow: hidden; }
.zt-kw-bar span { display: block; height: 100%; background: var(--zt-cat); border-radius: inherit; }
.zt-kw-n { font-family: var(--zt-mono); font-size: 12px; color: var(--zt-muted); text-align: right; }
.zt-chipset { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.zt-chip-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--zt-line); background: var(--zt-surface); color: var(--zt-ink); font: inherit; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s; }
.zt-chip-btn:hover { border-color: var(--zt-ink); background: var(--zt-surface); color: var(--zt-ink); }
.zt-chip-btn:active { background: var(--zt-accent); color: #0E0E0C; }
.zt-chip-btn:focus-visible { outline: 2px solid var(--zt-cat); outline-offset: 2px; }

/* Meters (SERP, password) */
.zt-meter { display: grid; gap: 6px; margin: -6px 0 6px; }
.zt-meter-bar { display: block; height: 8px; border-radius: 999px; background: var(--zt-soft); overflow: hidden; }
.zt-meter-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--zt-muted); transition: width .25s var(--zt-ease); }
.zt-meter.is-good .zt-meter-bar span { background: var(--zt-ok); }
.zt-meter.is-low .zt-meter-bar span { background: #d97706; }
.zt-meter.is-bad .zt-meter-bar span { background: var(--zt-err); }
.zt-meter-text { font-size: 12.5px; color: var(--zt-muted); font-family: var(--zt-mono); }
.zt-counter { font-family: var(--zt-mono); font-weight: 400; color: var(--zt-muted); }
.zt-counter.is-bad { color: var(--zt-err); }

/* SERP card (light, like Google) */
.zt-serp { margin-top: 12px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid #dadce0; font-family: Arial, sans-serif; color: #202124; }
.zt-serp.is-mobile { max-width: 400px; }
.zt-serp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.zt-serp-fav { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; font-size: 13px; color: #5f6368; flex: none; }
.zt-serp-site > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.zt-serp-name { font-size: 14px; color: #202124; }
.zt-serp-url { font-size: 12px; color: #4d5156; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-serp-title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin-bottom: 4px; }
.zt-serp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; }
.zt-serp-desc b { color: #202124; }

.zt-code { margin: 8px 0 12px; padding: 16px; border-radius: 14px; background: #0E0E0C; color: #e7f7b8; font-family: var(--zt-mono); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; max-height: 520px; overflow: auto; }

/* Password */
.zt-pw { display: grid; gap: 8px; margin-bottom: 14px; }
.zt-pw-row { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-radius: 14px; background: #0E0E0C; }
.zt-pw-text { flex: 1; min-width: 0; font-family: var(--zt-mono); font-size: clamp(15px, 2.4vw, 20px); color: var(--zt-accent); word-break: break-all; background: none; }
.zt-pw-row .zt-icon-btn { background: #1f201a; border-color: #2e3027; color: #fff; }

/* Calculators */
.zt-calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.zt-calc { padding: 18px; border-radius: 16px; border: 1px solid var(--zt-line); background: var(--zt-surface); display: grid; gap: 12px; }
.zt-calc-title { margin: 0; font-size: 16px; color: var(--zt-ink); }
.zt-calc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.zt-calc-row .zt-input { width: 110px; flex: 1 1 90px; }
.zt-calc-out { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--zt-cat-soft); }
.zt-calc-res { font-weight: 700; color: var(--zt-ink); font-size: 16px; }
.zt-age-big { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.zt-age-part { flex: 1 1 120px; padding: 18px; border-radius: 16px; background: #0E0E0C; display: flex; flex-direction: column; }
.zt-age-part strong { font-size: clamp(34px, 6vw, 52px); line-height: 1; color: var(--zt-accent); letter-spacing: -.03em; }
.zt-age-part span { color: #c9c9bd; font-size: 14px; margin-top: 4px; }

/* Social platforms */
.zt-platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.zt-plat { padding: 14px; border-radius: 14px; border: 1px solid var(--zt-line); background: var(--zt-surface); display: grid; gap: 8px; }
.zt-plat-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.zt-plat-name { font-weight: 600; font-size: 14px; color: var(--zt-ink); }
.zt-plat-head strong { font-family: var(--zt-mono); font-size: 12px; color: var(--zt-muted); font-weight: 500; }
.zt-plat .zt-meter-bar span { background: var(--zt-cat); }
.zt-plat.is-warn .zt-meter-bar span { background: #d97706; }
.zt-plat.is-bad { border-color: var(--zt-err); }
.zt-plat.is-bad .zt-meter-bar span { background: var(--zt-err); }
.zt-plat-left { font-size: 12.5px; color: var(--zt-muted); }
.zt-plat.is-bad .zt-plat-left { color: var(--zt-err); font-weight: 600; }
.zt-plat-note { font-size: 12px; color: var(--zt-muted); line-height: 1.4; }

@media (max-width: 900px) {
	.zt-steps { grid-template-columns: 1fr; gap: 0; }
	.zt-steps::before { top: 20px; bottom: 20px; left: 37px; right: auto; border-top: 0; border-left: 2px dashed var(--zt-cat-line); }
	.zt-steps li { display: grid; grid-template-columns: 76px 1fr; column-gap: 16px; padding: 0 0 18px; border: 0; background: none; border-radius: 0; }
	.zt-steps li::before { grid-row: span 2; width: 76px; height: 64px; margin: 0; border-radius: 18px; }
	.zt-steps h3 { margin-top: 6px; }
	.zt-features { grid-template-columns: 1fr 1fr; }
	.zt-explain { grid-template-columns: 1fr; gap: 14px; }
	.zt-explain > h2 { position: static; }
	.zt-why { grid-template-columns: 1fr 1fr; }
	.zt-why-item:nth-child(3) { border-left: 0; }
	.zt-why-item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
	.zt-split, .zt-qr { grid-template-columns: 1fr; }
	.zt-qr-right { position: static; }
}
@media (max-width: 600px) {
	.zt-block { margin-top: 44px; }
	.zt-steps li { grid-template-columns: 60px 1fr; }
	.zt-steps li::before { width: 60px; height: 56px; font-size: 20px; }
	.zt-steps::before { left: 29px; }
	.zt-features { grid-template-columns: 1fr; }
	.zt-features { gap: 0; background: var(--zt-soft); border-radius: 18px; overflow: hidden; }
	.zt-features li, .zt-features li:first-child, .zt-features li:last-child { grid-column: auto; display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; padding: 16px; border-radius: 0; background: none; }
	.zt-features li + li { border-top: 1px solid var(--zt-line); }
	.zt-features li::before, .zt-features li:last-child::before { grid-row: span 2; width: 26px; height: 26px; margin: 0; border-radius: 8px; }
	.zt-features h3 { font-size: 16px; margin: 2px 0 4px; }
	.zt-features li:first-child { padding: 20px 16px; background: #0E0E0C; }
	.zt-features li:first-child h3 { font-size: 19px; }
	.zt-features li:first-child::before { margin-top: 2px; }
	.zt-uses { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
	.zt-uses::-webkit-scrollbar { display: none; }
	.zt-use { flex: 0 0 82%; scroll-snap-align: start; }
	.zt-points { grid-template-columns: 1fr; }
	.zt-points li + li { border-left: 0; border-top: 1px solid var(--zt-line); }
	.zt-callout { padding: 64px 18px 18px; }
	.zt-callout::before { left: 18px; top: 18px; }
	.zt-why { grid-template-columns: 1fr; }
	.zt-why-item + .zt-why-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
	.zt-explain-body { font-size: 16px; }
	.zt-calc-grid { grid-template-columns: 1fr; }
	.zt-checks-grid { grid-template-columns: 1fr; }
	.zt-kw-row { grid-template-columns: 90px 1fr 84px; }
	.zt-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.zt-stat { padding: 10px; border-radius: 12px; }
	.zt-stat strong { font-size: 18px; }
	.zt-stat span { font-size: 11.5px; }
	.zt-lede { padding-left: 14px; }
}
