/* BrandName design tokens — mockups only. Production should use the system font stack. */
:root {
  --bg: #F3F5F2;
  --surface: #FFFFFF;
  --surface-2: #EAEFED;
  --ink: #12201C;
  --ink-soft: #3A4A44;
  --muted: #5A6B64;
  --line: #D5DDD8;
  --line-strong: #B8C4BE;
  --accent: #0B6E56;
  --accent-hover: #095C48;
  --accent-pressed: #084C3C;
  --accent-soft: #E3F4ED;
  --accent-text: #FFFFFF;
  --danger: #B42318;
  --danger-soft: #FCECEA;
  --danger-ink: #7A1A14;
  --warn: #B54708;
  --focus: #0B6E56;
  --ad-bg: #EFF1EE;
  --ad-ink: #3A4A44;  /* M5: 7.6:1 on --ad-bg */
  --shadow-sm: 0 1px 2px rgba(18, 32, 28, 0.06);
  --shadow-md: 0 10px 28px rgba(18, 32, 28, 0.08), 0 1px 3px rgba(18, 32, 28, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --header-h: 56px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "DejaVu Sans", sans-serif;
  --container: 1120px;
  --hero-w: 720px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

[data-theme="dark"] {
  --bg: #0D1411;
  --surface: #171E1B;
  --surface-2: #1E2824;
  --ink: #F1F5F3;
  --ink-soft: #C5D0CB;
  --muted: #9AA8A2;
  --line: #2A3530;
  --line-strong: #3D4C45;
  --accent: #3DDBB0;
  --accent-hover: #5EE7C1;
  --accent-pressed: #2BC49A;
  --accent-soft: #14352C;
  --accent-text: #0D1411;
  --danger: #F97066;
  --danger-soft: #3A1B18;
  --danger-ink: #FECDC8;
  --warn: #FDB022;
  --focus: #3DDBB0;
  --ad-bg: #1A2320;
  --ad-ink: #8A9892;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-size: 16px; line-height: 1.6; min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.wrap { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.wrap-narrow { width: min(720px, calc(100% - 32px)); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; flex-shrink: 0; }
.brand-mark svg { width: 16px; height: 16px; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; line-height: 1; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink-soft); border-radius: var(--radius-sm); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--ink-soft); border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; font-weight: 600; }
.lang-btn:hover { background: var(--surface-2); color: var(--ink); }
.nav-desk { display: none; align-items: center; gap: 4px; }
.nav-desk a { color: var(--ink-soft); font-size: 14px; font-weight: 550; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.nav-desk a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav-desk { display: flex; }
}

/* Hero */
.hero { position: relative; padding: 40px 0 32px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% 10% auto; height: 280px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; width: min(var(--hero-w), calc(100% - 32px)); margin-inline: auto; text-align: center; }
.crumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumb a { color: var(--muted); }
.crumb span[aria-current] { color: var(--ink-soft); font-weight: 600; }
.hero h1 { font-size: 28px; line-height: 1.2; letter-spacing: -0.035em; font-weight: 750; text-wrap: balance; }
.subline { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); text-wrap: balance; }

.downloader { margin-top: 24px; text-align: left; }
.input-row { display: flex; flex-direction: column; gap: 10px; }
.field { position: relative; display: flex; align-items: center; height: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 12px 0 16px; font-size: 16px; outline: none; color: var(--ink); text-overflow: ellipsis; overflow: hidden; }
.field input::placeholder { color: #8A9691; }
[data-theme="dark"] .field input::placeholder { color: #7B8983; }
.paste-btn { flex-shrink: 0; height: 40px; margin-right: 8px; padding: 0 12px; border: 0; background: var(--surface-2); color: var(--ink-soft); border-radius: 10px; font-size: 14px; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.paste-btn:hover { background: var(--line); color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: var(--radius-md); font-weight: 650; letter-spacing: -0.01em; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-lg { min-height: 56px; padding: 0 22px; font-size: 16px; }
.btn-md { min-height: 48px; padding: 0 16px; font-size: 15px; }
.btn-sm { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--accent); color: var(--accent-text); width: 100%; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-pressed); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: var(--accent-soft); color: var(--accent); }
[data-theme="dark"] .btn-ghost { color: var(--accent); }
.btn-ghost:hover { filter: brightness(0.97); }
.btn-danger { background: var(--danger-soft); color: var(--danger-ink); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

@media (min-width: 720px) {
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 40px; line-height: 1.15; }
  .subline { font-size: 18px; }
  .input-row { flex-direction: row; align-items: stretch; }
  .input-row .field { flex: 1; }
  .input-row .btn-primary { width: auto; min-width: 168px; }
}

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-size: 13px; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--line-strong); color: var(--ink); text-decoration: none; }
.chip.is-active { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
[data-theme="dark"] .chip.is-active { color: var(--accent); }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 16px; color: var(--muted); font-size: 13px; font-weight: 550; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 14px; height: 14px; color: var(--accent); }

/* Live region / results */
.live { width: min(var(--hero-w), calc(100% - 32px)); margin: 20px auto 0; }
.skel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.skel-thumb { border-radius: 10px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; height: 128px; }
.skel-line { height: 12px; border-radius: 6px; background: var(--surface-2); margin-bottom: 10px; }
.skel-line.w60 { width: 60%; }
.skel-line.w90 { width: 90%; }
.skel-line.w40 { width: 40%; }
.skel-btns { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.skel-btn { height: 48px; border-radius: 12px; background: var(--surface-2); }
.skel-caption { color: var(--muted); font-size: 14px; text-align: center; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; }

.result-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 16px; }
.result-top { display: grid; grid-template-columns: 108px 1fr; gap: 16px; align-items: start; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; background: #1a2a24; aspect-ratio: 3 / 4; }
.thumb-art { width: 100%; height: 100%; background:
  radial-gradient(circle at 30% 20%, #f2c9a0 0 18%, transparent 19%),
  radial-gradient(circle at 70% 70%, #0b6e56 0 30%, transparent 31%),
  linear-gradient(160deg, #6aa7c4 0%, #d9b08a 45%, #0b6e56 100%); }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb-play span { width: 36px; height: 36px; border-radius: 50%; background: rgba(18,32,28,0.7); color: #fff; display: grid; place-items: center; }
.thumb-time { position: absolute; right: 6px; bottom: 6px; background: rgba(18,32,28,0.8); color: #fff; font-size: 11px; font-weight: 650; padding: 2px 6px; border-radius: 6px; }
.result-meta .author { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.result-meta .kind { color: var(--muted); font-size: 12px; font-weight: 550; margin-top: 2px; }
.result-meta .caption { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.result-actions .btn { width: 100%; }
.btn-size { margin-left: auto; font-weight: 500; color: color-mix(in srgb, currentColor 70%, transparent); font-size: 13px; }

.item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
@media (min-width: 720px) { .item-grid { grid-template-columns: repeat(4, 1fr); } }
.item-tile { background: var(--surface-2); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.item-tile .tile-art { aspect-ratio: 1; }
.item-tile .tile-bar { padding: 8px; }
.item-tile .btn { width: 100%; }

.error-box { display: flex; gap: 12px; align-items: flex-start; background: var(--danger-soft); color: var(--danger-ink); border-radius: var(--radius-md); padding: 14px 16px; }
.error-box svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; color: var(--danger); }
.error-box strong { display: block; font-size: 15px; font-weight: 700; }
.error-box p { margin-top: 4px; font-size: 14px; line-height: 1.45; }

/* Ads */
.ad-slot { margin: 28px auto; background: var(--ad-bg); color: var(--ad-ink); border: 1px dashed color-mix(in srgb, var(--ad-ink) 40%, var(--line)); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.ad-slot span.size { font-weight: 500; letter-spacing: 0; text-transform: none; opacity: 0.8; }
.ad-slot.ad-leader { width: min(728px, calc(100% - 32px)); height: 90px; }
.ad-slot.ad-mpu { width: 300px; height: 250px; }
.ad-slot.ad-responsive { width: min(728px, calc(100% - 32px)); min-height: 90px; }
.ad-anchor { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ad-bg); border-top: 1px dashed color-mix(in srgb, var(--ad-ink) 40%, var(--line)); height: 56px; display: flex; align-items: center; justify-content: center; color: var(--ad-ink); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ad-anchor .close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: var(--ad-ink); cursor: pointer; display: grid; place-items: center; }
body.has-anchor { padding-bottom: 56px; }
@media (min-width: 900px) {
  .ad-anchor { display: none; }
  body.has-anchor { padding-bottom: 0; }
  .ad-mobile-only { display: none; }
}
@media (max-width: 899px) {
  .ad-desktop-only { display: none; }
}

/* Sections */
.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.03em; font-weight: 750; text-align: center; text-wrap: balance; }
.lede { text-align: center; color: var(--ink-soft); max-width: 640px; margin: 10px auto 0; }
@media (min-width: 720px) {
  .section { padding: 72px 0; }
  .section h2 { font-size: 28px; }
}

.steps { display: grid; gap: 16px; margin-top: 28px; }
.step { display: grid; grid-template-columns: 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.step-copy h3 { font-size: 17px; letter-spacing: -0.02em; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.step p { color: var(--ink-soft); font-size: 15px; }
.mini-ui { background: var(--surface-2); border-radius: 12px; padding: 12px; min-height: 88px; display: flex; align-items: center; justify-content: center; }
.fake-share { width: 100%; max-width: 220px; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); overflow: hidden; font-size: 12px; }
.fake-share .row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.fake-share .row:first-child { border-top: 0; }
.fake-share .row.is-hi { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.fake-field { width: 100%; height: 36px; border-radius: 8px; border: 1px solid var(--accent); background: var(--surface); display: flex; align-items: center; padding: 0 8px; font-size: 11px; color: var(--muted); }
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-rows: auto 1fr auto; }
}

.tool-groups { display: grid; gap: 32px; margin-top: 32px; }
.tool-group h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.mono { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line-strong); display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink-soft); background: var(--surface); }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px; text-decoration: none; color: inherit; min-height: 88px; }
.tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); text-decoration: none; }
.tool-card h4 { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.tool-card p { font-size: 13px; color: var(--muted); line-height: 1.4; }
@media (min-width: 800px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
}

.features { display: grid; gap: 12px; margin-top: 28px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; }
.feat h3 { font-size: 16px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.feat p { color: var(--ink-soft); font-size: 14px; }
.feat svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
@media (min-width: 800px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

.devices { display: grid; gap: 16px; margin-top: 28px; }
.dev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.dev h3 { font-size: 17px; margin: 10px 0 8px; }
.dev p { color: var(--ink-soft); font-size: 15px; }
@media (min-width: 800px) {
  .devices { grid-template-columns: repeat(3, 1fr); }
}

.prose { max-width: 720px; margin: 0 auto; }
.prose p { margin: 14px 0; color: var(--ink-soft); }
.prose h3 { font-size: 18px; margin: 28px 0 8px; letter-spacing: -0.02em; }
.prose ul { margin: 10px 0 10px 20px; color: var(--ink-soft); }
.prose li { margin: 6px 0; }

.faq { max-width: 720px; margin: 28px auto 0; display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 16px; }
.faq summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 650; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); flex-shrink: 0; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 6px; }
.faq details p { padding: 0 0 16px; color: var(--ink-soft); font-size: 15px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 16px; }
.foot-grid { display: grid; gap: 28px; }
.foot-col h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.foot-col a { display: block; color: var(--ink-soft); font-size: 14px; padding: 4px 0; text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-col a.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0; color: var(--ink); }
.foot-col a.brand:hover { text-decoration: none; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.55; }
.legal p + p { margin-top: 8px; }
@media (min-width: 800px) {
  .foot-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}

.consent { position: fixed; left: 12px; right: 12px; bottom: 68px; z-index: 35; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.consent p { font-size: 13px; color: var(--ink-soft); }
.consent .row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 900px) {
  .consent { left: auto; right: 24px; bottom: 24px; width: 380px; }
}

/* Guide extras */
.howto-ol { counter-reset: step; list-style: none; margin: 20px 0; display: grid; gap: 16px; }
.howto-ol li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 16px 16px 56px; position: relative; }
.howto-ol li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 13px; }

/* Design system board */
.ds { background: #F3F5F2; color: #12201C; padding: 48px 56px 72px; }
.ds-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid #D5DDD8; }
.ds-hero h1 { font-size: 36px; letter-spacing: -0.04em; }
.ds-hero p { color: #5A6B64; max-width: 460px; }
.ds-sec { margin: 40px 0; }
.ds-sec > h2 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #5A6B64; margin-bottom: 16px; font-weight: 700; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.swatch { border-radius: 12px; overflow: hidden; border: 1px solid #D5DDD8; background: #fff; }
.swatch .chip-c { height: 72px; }
.swatch figcaption { padding: 8px 10px 10px; font-size: 12px; }
.swatch strong { display: block; font-size: 13px; }
.type-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #EAEFED; }
.type-row .meta { font-size: 12px; color: #5A6B64; }
.ds-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ds-card { background: #fff; border: 1px solid #D5DDD8; border-radius: 16px; padding: 20px; }
.ds-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ds-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.token-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.token-table th, .token-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #EAEFED; }
.token-table th { color: #5A6B64; font-weight: 600; }
.ds-dark { background: #0D1411; color: #F1F5F3; border-radius: 16px; padding: 24px; }
.ds-dark .swatch { background: #171E1B; border-color: #2A3530; color: #F1F5F3; }
.ico-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ico { width: 72px; text-align: center; font-size: 11px; color: #5A6B64; }
.ico i { width: 44px; height: 44px; margin: 0 auto 6px; border: 1px solid #D5DDD8; border-radius: 10px; display: grid; place-items: center; background: #fff; color: #12201C; }
.ico svg { width: 20px; height: 20px; }
.focus-demo:focus { outline: 2px solid #0B6E56; outline-offset: 3px; }
.ad-demo { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ad-demo-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }

/* Screenshot helpers */
html.screenshot-full .site-header { position: static; backdrop-filter: none; }
html.screenshot-full .consent { position: relative; margin: 16px auto 8px; width: min(380px, calc(100% - 24px)); left: auto; right: auto; bottom: auto; }
html.screenshot-full .ad-anchor { position: relative; left: auto; right: auto; bottom: auto; margin-top: 8px; }
html.screenshot-full body.has-anchor { padding-bottom: 0; }
@media (min-width: 900px) {
  html.screenshot-full .ad-anchor { display: none; }
}

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

@media (max-width: 430px) {
  .paste-btn { padding: 0 10px; gap: 4px; }
  .field input { padding-left: 12px; }
}

/* —— v2 revisions: nav, monogram, errors, tables, countdown —— */
.brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { font-weight: 750; font-size: 17px; letter-spacing: -0.03em; }
.nav-desk { display: none; align-items: center; gap: 2px; }
.nav-desk > a, .nav-drop > button {
  color: var(--ink-soft); font-size: 14px; font-weight: 600; padding: 8px 12px;
  border-radius: 8px; text-decoration: none; background: transparent; border: 0;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px; height: 40px;
}
.nav-desk > a:hover, .nav-drop > button:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-drop { position: relative; }
.nav-drop.is-open > button { background: var(--surface-2); color: var(--ink); }
.nav-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 6px; z-index: 50;
}
.nav-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 550; text-decoration: none; }
.nav-menu a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-menu a span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav-desk { display: flex; }
}

.live.tight { margin-top: 16px; }
.result-card + .ad-slot, .live + .ad-slot, .live + .ad-mobile-only, .live + .ad-desktop-only { margin-top: 28px; }

.get-table { width: 100%; border-collapse: collapse; margin: 20px 0 0; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.get-table th, .get-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.get-table th { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--surface-2); }
.get-table tr:last-child td { border-bottom: 0; }
.get-table a { font-weight: 600; }

.countdown-btn { opacity: 1 !important; cursor: not-allowed; background: var(--surface-2) !important; color: var(--ink-soft) !important; border: 1px solid var(--line); }
.countdown-btn .secs { font-variant-numeric: tabular-nums; font-weight: 750; letter-spacing: 0.02em; }

.error-box a { font-weight: 650; color: var(--danger-ink); text-decoration: underline; }
[data-theme="dark"] .error-box a { color: var(--danger-ink); }

.errors-board { background: var(--bg); padding: 48px 56px 72px; }
.errors-board h1 { font-size: 32px; letter-spacing: -0.04em; margin-bottom: 8px; }
.errors-board .lede { text-align: left; margin: 0 0 28px; }
.errors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.errors-grid .error-box { min-height: 100%; }
.err-meta { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

.btn[disabled].countdown-btn { opacity: 1; }
.btn-primary[disabled] { opacity: 0.5; }


/* —— v3 revisions: a11y targets, contrast, compact results, consent, drawers, legal —— */

/* M5 already applied on :root --ad-ink. M4: 44px targets. m5: placeholder contrast. */
.field input::placeholder { color: #4E5E58; }
[data-theme="dark"] .field input::placeholder { color: #9AA8A2; }

.paste-btn { height: 44px; min-height: 44px; min-width: 44px; padding: 0 14px; }
.btn-sm { min-height: 44px; min-width: 44px; padding: 0 14px; }
.chip { min-height: 44px; height: auto; padding: 0 16px; }
.chip.is-soon,
.chip[aria-disabled="true"] {
  border-style: dashed; color: var(--muted); background: var(--surface);
  pointer-events: none; cursor: default;
}
.chip.is-soon .soon {
  margin-left: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}

.nav-desk > a,
.nav-drop > button {
  min-height: 44px; height: 44px; padding: 0 12px;
}
.nav-menu a {
  min-height: 44px; display: flex; flex-direction: column; justify-content: center;
  padding: 8px 12px;
}
.foot-col a {
  min-height: 44px; display: flex; align-items: center; padding: 0;
}
.foot-col a.brand { min-height: auto; }

/* B1: clear the 56px sticky ad, plus a 24px gap, so no item is covered. */
body.has-anchor { padding-bottom: 80px; }
body.has-anchor .live,
body.has-anchor .result-card,
body.has-anchor .error-box {
  margin-bottom: 8px;
}
/* Keep a gap between the last result button and the sticky ad (C10). */
.live { padding-bottom: 8px; }
@media (max-width: 899px) {
  body.has-anchor .live { padding-bottom: 24px; }
}

/* Compact hero on result / error / loading so the full button stack clears the ad on a 844px fold. */
.hero.is-compact { padding: 16px 0 8px; }
.hero.is-compact h1 { font-size: 24px; }
.hero.is-compact .subline { font-size: 15px; margin-top: 6px; }
.hero.is-compact .downloader { margin-top: 14px; }
.hero.is-compact .chips { margin-top: 10px; }
.hero.is-compact .trust { margin-top: 10px; }
.hero.is-compact .crumb { margin-bottom: 8px; }
@media (max-width: 719px) {
  .hero.is-compact .input-row { flex-direction: row; align-items: stretch; }
  .hero.is-compact .input-row .field { flex: 1; }
  .hero.is-compact .input-row .btn-primary { width: auto; min-width: 112px; padding: 0 14px; }
  .hero.is-compact .result-top { grid-template-columns: 72px 1fr; }
  .hero.is-compact + .live .result-top,
  .page-result .result-top { grid-template-columns: 72px 1fr; }
  .page-result .thumb { aspect-ratio: 3 / 4; }
}
@media (min-width: 720px) {
  .hero.is-compact { padding: 32px 0 16px; }
  .hero.is-compact h1 { font-size: 32px; }
}

/* Watermark clarification under the trust line (m4). */
.trust-note { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }

/* M8: in-flow consent so it never covers how-to cards. */
.consent-inline {
  position: static;
  width: min(640px, calc(100% - 32px));
  margin: 8px auto 28px;
  left: auto; right: auto; bottom: auto;
  box-shadow: var(--shadow-md);
}
.consent-inline p { font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.consent-inline .gpc { font-size: 12px; color: var(--muted); }
html.screenshot-full .consent-inline { width: min(640px, calc(100% - 32px)); margin: 8px auto 28px; }

/* Coming soon / legal-draft banners */
.banner {
  width: min(var(--hero-w), calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.45;
}
.banner strong { display: block; font-size: 14px; margin-bottom: 2px; }
.banner-soon { background: #F8E6C8; color: #7A3E05; border: 1px solid #E8C48A; }
[data-theme="dark"] .banner-soon { background: #3A2A14; color: #FDB022; border-color: #5A3F18; }
.banner-legal { background: #F8E6C8; color: #7A3E05; border: 1px solid #E8C48A; }
.banner-legal .tag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; background: #7A3E05; color: #fff; padding: 2px 6px;
  border-radius: 4px; margin-right: 8px; vertical-align: middle;
}

/* Disabled form on coming-soon tools */
.downloader.is-disabled { opacity: 0.55; pointer-events: none; }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(18,32,28,0.4); z-index: 45;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 88vw);
  background: var(--surface); z-index: 46; box-shadow: var(--shadow-md);
  padding: 12px 8px 24px; overflow: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.drawer a, .drawer button.drawer-link {
  min-height: 44px; display: flex; flex-direction: column; justify-content: center;
  padding: 8px 12px; border-radius: 8px; color: var(--ink-soft); font-weight: 600;
  font-size: 15px; text-decoration: none; background: transparent; border: 0; text-align: left; width: 100%;
  cursor: pointer;
}
.drawer a:hover, .drawer button.drawer-link:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.drawer .sub { font-size: 12px; font-weight: 500; color: var(--muted); }
.drawer .group-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding: 12px 12px 4px;
}

/* 404 */
.notfound { text-align: center; padding: 64px 0 80px; width: min(640px, calc(100% - 32px)); margin: 0 auto; }
.notfound .code { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.notfound h1 { font-size: 36px; letter-spacing: -0.04em; margin: 8px 0 12px; }
.notfound p { color: var(--ink-soft); margin-bottom: 24px; }
.notfound .links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.notfound .links a { min-height: 44px; }

/* Trust / legal pages */
.legal-page { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 72px; }
.legal-page h1 { font-size: 32px; letter-spacing: -0.035em; margin: 8px 0 12px; }
.legal-page .meta-line { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.legal-page h2 { font-size: 20px; letter-spacing: -0.02em; margin: 32px 0 8px; }
.legal-page h3 { font-size: 16px; margin: 20px 0 6px; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page p { margin: 10px 0; }
.legal-page ul, .legal-page ol { margin: 8px 0 8px 20px; }
.legal-page li { margin: 6px 0; }
.contact-form, .dmca-form {
  margin-top: 20px; display: grid; gap: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px;
}
.contact-form label, .dmca-form label { font-size: 13px; font-weight: 650; color: var(--ink-soft); }
.contact-form input, .contact-form select, .contact-form textarea,
.dmca-form input, .dmca-form select, .dmca-form textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); padding: 10px 12px; font: inherit;
}
.contact-form textarea, .dmca-form textarea { min-height: 140px; resize: vertical; }
.faq-page .faq { max-width: none; }

/* Tool-card coming soon */
.tool-card.is-soon { opacity: 0.7; border-style: dashed; pointer-events: none; }
.tool-card .soon-tag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-top: 6px;
}

/* Table row coming soon */
.get-table .is-soon td { color: var(--muted); }
.get-table .soon-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-left: 6px; }

/* Post-retest nav demo board */
.nav-demo { padding: 400px 24px 80px; min-height: 640px; }

/* B1 carousel: compact item rows on mobile so every slide button clears the sticky ad. */
@media (max-width: 899px) {
  .page-result .item-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
  }
  .page-result .item-tile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
  }
  .page-result .item-tile .tile-art {
    aspect-ratio: 1;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  .page-result .item-tile .tile-bar {
    padding: 0;
    flex: 1;
    min-width: 0;
  }
  .page-result .item-tile .btn { min-height: 44px; }
}

.drawer-head .brand {
  flex-direction: row;
  align-items: center;
  width: auto;
  padding: 0;
  min-height: 44px;
  gap: 10px;
}
.drawer-head { flex-wrap: nowrap; }


/* v4: compact URL fields, home-fold consent before ad-1, Facebook plain link already in markup */
@media (max-width: 719px) {
  .hero.is-compact .paste-btn { padding: 0 10px; }
  .hero.is-compact .paste-btn svg { flex-shrink: 0; }
  .hero.is-compact .field input { font-size: 14px; letter-spacing: -0.01em; }
  .hero.is-compact .input-row .btn-primary { min-width: 100px; padding: 0 10px; }
  /* N3: tighten the fold hero so the consent actions sit on the first screen, above ad-1. */
  .home-fold .hero { padding: 20px 0 8px; }
  .home-fold .hero h1 { font-size: 26px; }
  .home-fold .consent-inline { margin: 8px auto 16px; padding: 12px; }
  .home-fold .consent-inline p { font-size: 13px; line-height: 1.4; }
  .home-fold .consent-inline .gpc { margin-top: 0; }
}
@media (min-width: 720px) and (max-width: 899px) {
  .home-fold .consent-inline { margin: 8px auto 16px; }
}


/* v4 n1: mid-ellipsis filled URLs, last path segment stays visible */
.field { position: relative; }
.field.is-filled input.has-mirror {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.field .url-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 8px 0 16px;
  font-size: 16px;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
}
.field .url-scheme,
.field .url-host {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.field .url-path,
.field .url-end { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 719px) {
  .hero.is-compact .url-mid { font-size: 13px; letter-spacing: -0.02em; padding-left: 12px; }
  .hero.is-compact .field.is-filled .paste-btn { display: none; }
  /* Longer “Getting the file…” label must not clip the last URL segment. */
  .hero.is-compact .input-row .btn-primary {
    min-width: 0;
    padding: 0 8px;
    font-size: 13px;
    flex: 0 1 auto;
  }
}

.field .url-mid-short { display: none; }
@media (max-width: 719px) {
  .hero.is-compact .field.is-filled .url-mid-full { display: none; }
  .hero.is-compact .field.is-filled .url-mid-short { display: flex; }
}

/* —— v5: premium-simple craft, paste-first, ux-direction-v5.md —— */
/* System font stack is in :root --font. No @font-face, no Inter. */

:root {
  --season-accent: transparent;
  --hero-wash: color-mix(in srgb, var(--accent) 12%, transparent);
}

.theme-ig { --hero-wash: color-mix(in srgb, #C45A86 10%, color-mix(in srgb, var(--accent) 8%, transparent)); }
.theme-tt { --hero-wash: color-mix(in srgb, #2A9B96 10%, color-mix(in srgb, var(--accent) 8%, transparent)); }
.theme-fb { --hero-wash: color-mix(in srgb, #3B6BC4 10%, color-mix(in srgb, var(--accent) 8%, transparent)); }
body.season-winter { --season-accent: #6E8FAF; }

.hero-v5 { position: relative; overflow: hidden; }
.hero-v5::before {
  content: "";
  position: absolute;
  inset: -10% 0 auto;
  height: 280px;
  background:
    radial-gradient(closest-side, var(--hero-wash), transparent 70%),
    radial-gradient(closest-side at 80% 0%, color-mix(in srgb, var(--season-accent) 18%, transparent), transparent 65%);
  pointer-events: none;
}
.hero-stage { position: relative; width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.hero-v5 .hero-inner { width: 100%; text-align: center; position: relative; z-index: 1; }
.hero-copy-scrim { background: color-mix(in srgb, var(--bg) 72%, transparent); border-radius: var(--radius-lg); padding: 0; }

/* Motif is out of flow on small screens: behind the H1 + form, never above the input, 0 flow height. */
.hero-motif {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: min(200px, 52%);
  height: 200px;
  max-height: 200px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-motif svg { width: 100%; height: 100%; color: var(--accent); }

/* Compact result/error/loading: a 24–32 px corner watermark only. */
.hero.is-compact .hero-motif {
  width: 32px;
  height: 32px;
  max-height: 32px;
  inset-block-start: 12px;
  inset-inline-end: 8px;
  opacity: 0.35;
}

@media (min-width: 768px) {
  .hero-v5:not(.is-compact) .hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: center;
    gap: 24px;
    width: min(calc(var(--hero-w) + 260px), calc(100% - 32px));
  }
  .hero-v5:not(.is-compact) .hero-inner { text-align: start; }
  .hero-v5:not(.is-compact) .crumb,
  .hero-v5:not(.is-compact) .trust,
  .hero-v5:not(.is-compact) .chips,
  .hero-v5:not(.is-compact) .type-tabs { justify-content: flex-start; }
  .hero-v5:not(.is-compact) .hero-motif {
    position: relative;
    inset: auto;
    width: 240px;
    height: 240px;
    max-height: 240px;
    opacity: 0.85;
  }
}
@media (min-width: 1024px) {
  .hero-v5:not(.is-compact) .hero-stage { grid-template-columns: minmax(0, 1fr) 280px; width: min(calc(var(--hero-w) + 320px), calc(100% - 32px)); }
  .hero-v5:not(.is-compact) .hero-motif { width: 280px; height: 280px; max-height: 280px; }
  .hero-v5:not(.is-compact) .hero-inner { max-width: 720px; }
}

/* Type tabs — compact, quiet, above the paste box on tool pages. */
.type-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0 0;
  padding-block: 2px;
  justify-content: flex-start;
  scrollbar-width: thin;
}
@media (min-width: 768px) {
  .type-tabs { flex-wrap: wrap; overflow: visible; }
}

.type-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.type-tab:hover { border-color: var(--line-strong); color: var(--ink); text-decoration: none; }
.type-tab.is-active { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.type-tab.is-soon {
  opacity: 0.72;
  cursor: default;
  color: var(--muted);
}
.type-ico { width: 18px; height: 18px; display: grid; place-items: center; }
.type-ico svg { width: 16px; height: 16px; }
.type-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 2px 6px;
}

/* Make the paste box the obvious focus. */
.hero-v5 .downloader { margin-top: 16px; }
.hero-v5 .field { box-shadow: var(--shadow-md); }

/* Home 360×640 fold: no type tabs, no recents, no in-flow art. Consent is the remainder. */
.home-fold .type-tabs,
.home-fold .recents { display: none; }
.home-fold .hero-motif { opacity: 0.28; }

/* Recents — 36 px row under trust, only when populated. */
.recents {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 12px;
  font-size: 13px;
}
.recents-label { color: var(--muted); font-weight: 600; flex-shrink: 0; }
.recents-list { display: flex; gap: 8px; overflow-x: auto; min-width: 0; }
.recent-chip {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: start;
  cursor: pointer;
}
.recent-title { font-size: 12px; font-weight: 650; line-height: 1.2; }
.recent-meta { font-size: 11px; color: var(--muted); }
.recents-clear, .btn-text {
  border: 0; background: none; color: var(--accent); font-weight: 650; font-size: 14px;
  cursor: pointer; min-height: 44px; padding: 0 8px;
}
.history-btn {
  flex-shrink: 0; width: 44px; height: 44px; margin-inline-end: 4px;
  border: 0; background: transparent; color: var(--ink-soft);
  border-radius: var(--radius-sm); display: grid; place-items: center; cursor: pointer;
}
.history-btn:hover { background: var(--surface-2); color: var(--ink); }

/* Step strip: snap-scroll < 768, 3-col grid from 768. Art below the fold, lazy. */
.steps.step-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
  padding-block: 4px 8px;
  margin-top: 28px;
}
.steps.step-strip .step {
  flex: 0 0 auto;
  width: min(280px, calc(100% - 48px));
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-art {
  aspect-ratio: 4 / 3;
  max-height: 168px;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-2));
  color: var(--ink);
}
.step-art img, .step-art svg { width: 100%; height: 100%; object-fit: contain; }
.step-copy h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) {
  .steps.step-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    scroll-snap-type: none;
  }
  .steps.step-strip .step { width: auto; }
  .step-art { max-height: 200px; }
}

/* Success: Download another + slim install bar, not a modal, not an ad. */
.after-result { margin-top: 8px; text-align: start; }
.install-bar {
  max-height: 56px;
  min-height: 44px;
  margin: 12px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}
.install-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Format buttons in the result and in the modal. */
.format-actions .is-disabled,
.btn.is-disabled,
.btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.15); }

/* Download modal, popup v2 — user-initiated, buttons active at once, no countdown, no auto-start, no 'Download now'. */
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--ink) 28%, transparent);
  display: grid;
  place-items: center;
  padding: 16px;
}
.dl-modal {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px 20px 20px;
  text-align: center;
}
.modal-close {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  width: 44px; height: 44px;
  border: 0; background: transparent; color: var(--ink-soft);
  border-radius: var(--radius-sm); display: grid; place-items: center; cursor: pointer;
}
.modal-close:hover { background: var(--surface-2); color: var(--ink); }
.dl-modal h2 { font-size: 20px; letter-spacing: -0.03em; margin: 8px 0 6px; }
.dl-modal #dl-desc { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }
.dl-modal .format-actions { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .hero-v5::before, .hero-motif { animation: none !important; }
}

/* Features with small original icons. */
.features .feat { position: relative; padding-inline-start: 0; }
.feat-ico { width: 28px; height: 28px; color: var(--accent); margin-bottom: 10px; }
.feat-ico svg { width: 28px; height: 28px; }

/* 404 illustration */
.notfound-art { width: 200px; height: auto; margin: 0 auto 16px; color: var(--ink); }

/* 360-wide fold: keep Download fully on screen on tool pages. */
@media (max-width: 400px) {
  .hero-v5:not(.is-compact) { padding: 16px 0 12px; }
  .hero-v5:not(.is-compact) h1 { font-size: 26px; }
  .hero-v5:not(.is-compact) .subline { font-size: 14px; margin-top: 6px; }
  .hero-v5 .type-tabs { margin-top: 8px; }
}

/* Home 360×640: Accept / Reject / Manage must sit above ad-1 (N3).
   Hide platform chips on this short fold only; they remain on 390×844.
   Type tabs and recents stay hidden so the paste box + consent win the fold. */
@media (max-width: 400px) and (max-height: 700px) {
  body.theme-home .type-tabs,
  body.theme-home .recents,
  body.theme-home .chips { display: none; }
  body.theme-home .hero:not(.is-compact) { padding: 12px 0 6px; }
  body.theme-home .hero:not(.is-compact) h1 { font-size: 24px; line-height: 1.18; }
  body.theme-home .hero:not(.is-compact) .subline { font-size: 13px; margin-top: 4px; }
  body.theme-home .hero-v5 .downloader { margin-top: 10px; }
  body.theme-home .trust { margin-top: 8px; }
  body.theme-home .consent-inline { margin: 6px auto 8px; padding: 10px 12px; gap: 8px; }
  body.theme-home .consent-inline p { font-size: 12px; line-height: 1.35; }
}

/* RTL: flip decorative scenes, keep form first in DOM. */
[dir="rtl"] .hero-motif,
[dir="rtl"] .step-art img { transform: scaleX(-1); }

/* English placeholder copy must keep its punctuation; this is a layout sketch, not a translation. */
[dir="rtl"] .hero h1,
[dir="rtl"] .subline,
[dir="rtl"] .trust,
[dir="rtl"] .consent-inline p,
[dir="rtl"] .section-kicker,
[dir="rtl"] .howto-intro,
[dir="rtl"] .feat p,
[dir="rtl"] .type-label,
[dir="rtl"] .chip {
  unicode-bidi: isolate;
  direction: ltr;
}

/* Paste micro-feedback (storyboard, CSS only in the mockup). */
.field.is-valid { border-color: var(--accent); }
.paste-btn.is-done { color: var(--accent); }


/* —— v5.1 visual pass: illustrated heroes, device step sets, depth, icons, illustrated states —— */
/* Still premium-simple: one paste card, one Download. Art is inline SVG, 0 requests, never above the input. */

.theme-home { --p1: #FF8A3D; --p2: #F0457A; --p3: #2D6BF0; --p4: #2CE6E0; }
.theme-ig   { --p1: #FFB547; --p2: #F0457A; --p3: #8B3FD9; --p4: #FF8A3D; }
.theme-tt   { --p1: #2CE6E0; --p2: #FF3D71; --p3: #2CE6E0; --p4: #FF3D71; }
.theme-fb   { --p1: #2D6BF0; --p2: #69A3FF; --p3: #1A4FC9; --p4: #69A3FF; }
:root { --p1: #3DDBB0; --p2: #0B6E56; --p3: #3DDBB0; --p4: #0B6E56; }

.brand-mark { background: linear-gradient(135deg, #16A47F, var(--accent)); box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--accent) 60%, transparent); }
[data-theme="dark"] .brand-mark { background: linear-gradient(135deg, #5EE7C1, var(--accent)); }

/* Hero wash: a soft platform mesh (CSS only, 0 bytes of image). */
.hero-v5::before {
  inset: 0;
  height: auto;
  background:
    radial-gradient(60% 70% at 88% 18%, color-mix(in srgb, var(--p1) 16%, transparent), transparent 70%),
    radial-gradient(50% 60% at 70% 90%, color-mix(in srgb, var(--p2) 12%, transparent), transparent 70%),
    radial-gradient(45% 60% at 8% 10%, color-mix(in srgb, var(--p3) 9%, transparent), transparent 70%),
    radial-gradient(closest-side at 80% 0%, color-mix(in srgb, var(--season-accent) 18%, transparent), transparent 65%);
}
.hero-v5::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 80% at 80% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 80% at 80% 30%, #000, transparent 75%);
  opacity: .5;
}
.hero.is-compact::after { display: none; }

/* Motif: mobile = soft backdrop at the end edge, 0 flow height; desktop = beside the form. */
.hero-motif { opacity: .28; width: 216px; height: 189px; max-height: 189px; inset-block-start: -8px; inset-inline-end: -92px;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 45%); mask-image: linear-gradient(90deg, transparent 8%, #000 45%); }
.hero-motif svg { width: 100%; height: 100%; }
.home-fold .hero-motif { opacity: .18; }
@media (min-width: 480px) and (max-width: 767px) {
  .hero-motif { inset-inline-end: -40px; opacity: .24; width: 230px; height: 201px; max-height: 201px; }
}
@media (min-width: 768px) {
  .hero-v5:not(.is-compact) .hero-motif { opacity: 1; width: 240px; height: 210px; max-height: 210px; -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 1024px) {
  .hero-v5:not(.is-compact) .hero-stage { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; width: min(calc(var(--hero-w) + 360px), calc(100% - 48px)); }
  .hero-v5:not(.is-compact) .hero-motif { width: 320px; height: 280px; max-height: 280px; }
}
.hero.is-compact .hero-motif { -webkit-mask-image: none; mask-image: none; width: 34px; height: 30px; max-height: 30px; inset-block-start: -8px; inset-inline-end: 4px; opacity: .6; }

/* Subtle motion hints, desktop only, off under reduced motion. */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero-motif .flow { animation: v51-flow 1.4s linear infinite; }
  .hero-motif .float { animation: v51-float 6s ease-in-out infinite; }
  .hero-motif .float2, .notfound-art .float2 { animation: v51-float 4.5s ease-in-out infinite; }
  .hero-motif .twinkle { animation: v51-twinkle 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes v51-flow { to { stroke-dashoffset: -22; } }
@keyframes v51-float { 50% { transform: translateY(-4px); } }
@keyframes v51-twinkle { 50% { transform: scale(.7); opacity: .6; } }

/* Paste card: layered shadow + faint gradient border. One card, one action. */
.hero-v5:not(.is-compact) .downloader {
  padding: 8px;
  border: 1.5px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--p1) 55%, var(--line)), color-mix(in srgb, var(--p2) 45%, var(--line)) 55%, color-mix(in srgb, var(--p3) 45%, var(--line))) border-box;
  box-shadow:
    0 1px 2px rgba(18, 32, 28, .06),
    0 10px 24px -8px rgba(18, 32, 28, .14),
    0 28px 56px -24px color-mix(in srgb, var(--p2) 38%, transparent);
}
.hero-v5:not(.is-compact) .downloader .field { box-shadow: none; background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); border-color: var(--line); }
.hero-v5:not(.is-compact) .downloader .field:focus-within { border-color: var(--accent); }
.hero-v5:not(.is-compact) .downloader .btn-primary { box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
@media (max-width: 719px) { .hero-v5:not(.is-compact) .input-row { gap: 8px; } }
[data-theme="dark"] .hero-v5:not(.is-compact) .downloader { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.6), 0 28px 56px -24px color-mix(in srgb, var(--p2) 30%, transparent); }

/* Type tabs: 44 px targets, platform-tinted icon tiles (original icons, no logos). */
.type-tab { height: 44px; min-height: 44px; padding: 0 14px 0 6px; gap: 8px; font-size: 13px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.type-tab[data-p="ig"] { --tp: #C2336B; --tpb: #FDE4EE; }
.type-tab[data-p="tt"] { --tp: #0A7270; --tpb: #DDF7F6; }   /* v5.2.2 MF-06: was #0B7D7A (4.42:1 on #DDF7F6) */
.type-tab[data-p="fb"] { --tp: #1F5BD6; --tpb: #E2ECFF; }
[data-theme="dark"] .type-tab[data-p="ig"] { --tp: #FF8DB5; --tpb: #3A1C2A; }
[data-theme="dark"] .type-tab[data-p="tt"] { --tp: #5CF0EA; --tpb: #12302F; }
[data-theme="dark"] .type-tab[data-p="fb"] { --tp: #8DB6FF; --tpb: #172848; }
.type-ico { width: 32px; height: 32px; border-radius: 999px; background: var(--tpb, var(--accent-soft)); color: var(--tp, var(--accent)); }
.type-ico svg { width: 18px; height: 18px; }
.type-tab.is-active { background: var(--tpb, var(--accent-soft)); border-color: color-mix(in srgb, var(--tp, var(--accent)) 45%, transparent); color: var(--tp, var(--accent)); }
.type-tab.is-active .type-ico { background: var(--tp, var(--accent)); color: #fff; }
.type-tab.is-soon .type-ico { background: var(--surface-2); color: var(--muted); }
.type-badge { font-size: 10px; }

/* Platform tiles (home tool groups) and feature tiles. */
.plat-tile { width: 32px; height: 32px; display: inline-grid; flex-shrink: 0; }
.plat-tile svg { width: 32px; height: 32px; }
.tool-group h3 { font-size: 16px; gap: 10px; }
.tool-card { position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tool-card p { font-size: 14px; }
.feat { padding: 22px; position: relative; overflow: hidden; }
.feat::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 10%, transparent), transparent); pointer-events: none; }
.feat-ico { display: block; width: 44px; height: 44px; margin-bottom: 14px; }
.feat-ico svg { width: 44px; height: 44px; }
.feat h3 { font-size: 17px; }
.feat p { font-size: 15px; }

/* Device cards on tool pages. */
.dev-badge { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.dev-badge svg { width: 24px; height: 24px; }

/* How-to: iPhone | Android | Desktop toggle (CSS radios) + 4 illustrated steps. */
.howto { margin-top: 24px; }
.dev-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dev-toggle { display: flex; width: max-content; max-width: 100%; margin: 0 auto 4px; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.dev-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 650; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.dev-ico { width: 20px; height: 20px; display: grid; place-items: center; }
.dev-ico svg { width: 20px; height: 20px; }
.dev-r-ios:checked ~ .dev-toggle .dev-t-ios,
.dev-r-android:checked ~ .dev-toggle .dev-t-android,
.dev-r-desktop:checked ~ .dev-toggle .dev-t-desktop { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(18,32,28,.08), 0 4px 10px -4px rgba(18,32,28,.18); }
.dev-r-ios:focus-visible ~ .dev-toggle .dev-t-ios,
.dev-r-android:focus-visible ~ .dev-toggle .dev-t-android,
.dev-r-desktop:focus-visible ~ .dev-toggle .dev-t-desktop { outline: 2px solid var(--focus); outline-offset: 2px; }
.howto .dv { display: none; }
.dev-r-ios:checked ~ .steps .dv-ios,
.dev-r-android:checked ~ .steps .dv-android,
.dev-r-desktop:checked ~ .steps .dv-desktop { display: block; }
.steps.step4 .step { padding: 14px 14px 18px; gap: 10px; }
.steps.step4 .step-art { order: -1; background: transparent; border-radius: 14px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent); max-height: none; }
.steps.step4 .step-copy h3 { font-size: 17px; }
.steps.step4 .step p { font-size: 16px; }
.dv-cap { order: -1; margin-top: -2px; font-size: 14px !important; font-weight: 600; color: var(--accent) !important; line-height: 1.4; }
.howto .dv-cap { display: none; }
.dev-r-ios:checked ~ .steps .dv-cap.dv-ios,
.dev-r-android:checked ~ .steps .dv-cap.dv-android,
.dev-r-desktop:checked ~ .steps .dv-cap.dv-desktop { display: block; }
.steps.step-strip.step4 .step { width: min(296px, calc(100% - 40px)); }
@media (min-width: 768px) {
  .steps.step-strip.step4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps.step-strip.step4 .step { width: auto; }
}
@media (min-width: 1024px) {
  .steps.step-strip.step4 { grid-template-columns: repeat(4, 1fr); }
}
.section-howto { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 4%, transparent) 30%, transparent); }

/* Body copy is 16 px everywhere it is read as prose (no zoom on mobile). */
.step p, .dev p, .faq details p, .prose p, .prose li { font-size: 16px; }
.error-box strong { font-size: 16px; }
.trust { font-size: 14px; }

/* Illustrated error states (inline 56 px spots, no request). */
.error-box.has-art { align-items: center; }
.err-art { width: 52px; height: 52px; flex-shrink: 0; }
.err-art svg { width: 52px; height: 52px; }

/* Empty state: history list opened on a first visit. */
.history-pop { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 20px; text-align: center; }
.empty-art { width: 160px; height: 112px; margin: 0 auto 8px; }
.empty-art svg { width: 160px; height: 112px; }
.empty-title { font-size: 18px; letter-spacing: -0.02em; }
.empty-copy { color: var(--ink-soft); font-size: 16px; margin-top: 4px; }

/* 404 with an illustration (broken ribbon, empty file, the Bee placeholder mascot). */
.notfound-art { width: min(320px, 100%); aspect-ratio: 320 / 220; height: auto; margin: 0 auto 8px; }
.notfound-art svg { width: 100%; height: 100%; }
.notfound .code { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); }

/* Download modal (popup v2): soft branded top wash. */
.dl-modal { background: radial-gradient(120% 50% at 50% 0%, color-mix(in srgb, #3DDBB0 12%, transparent), transparent 60%), var(--surface); }

/* v5.1 QA fixes */
@media (max-width: 400px) {
  .dev-toggle { gap: 2px; padding: 3px; }
  .dev-tab { padding: 0 11px; gap: 6px; font-size: 15px; }
  .dev-ico, .dev-ico svg { width: 18px; height: 18px; }
}
/* 44 px hit areas without moving layout */
.bar .brand, .foot-col a.brand { min-height: 44px; }
.crumb a { display: inline-block; padding: 12px 5px; margin: -12px -5px; }
/* Mobile reading sizes: prose and controls at 16 px; labels stay 14 px minimum */
@media (max-width: 767px) {
  .hero-v5:not(.is-compact) .subline, body.theme-home .hero:not(.is-compact) .subline { font-size: 16px; }
  .paste-btn { font-size: 16px; }
  .chip { font-size: 15px; }
  .crumb { font-size: 14px; }
  .type-label { font-size: 15px; }
  .type-badge { font-size: 11px; }
}
/* Phone landscape (e.g. 844×390): paste box + Download must clear the sticky ad */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-v5:not(.is-compact) { padding: 10px 0 8px; }
  .hero-v5:not(.is-compact) h1 { font-size: 24px; line-height: 1.15; }
  .hero-v5:not(.is-compact) .subline { font-size: 16px; margin-top: 4px; }
  .hero-v5 .type-tabs { flex-wrap: nowrap; overflow-x: auto; margin-top: 8px; justify-content: flex-start; scrollbar-width: none; }
  .hero-v5 .downloader { margin-top: 10px; }
  .hero-v5:not(.is-compact) .hero-stage { grid-template-columns: minmax(0, 1fr) 200px; gap: 20px; align-items: center; }
  .hero-v5:not(.is-compact) .hero-motif { width: 200px; height: 175px; max-height: 175px; }
  .hero-v5 .chips, .hero-v5 .recents { display: none; }
  .hero-v5 .trust { margin-top: 6px; }
}
/* Home 360×640 fold after the v5.1 card: keep Accept / Reject / Manage on screen */
@media (max-width: 400px) {
  .trust { gap: 6px 12px; font-size: 14px; }
  .trust span { gap: 4px; }
}
@media (max-width: 400px) and (max-height: 700px) {
  body.theme-home .hero:not(.is-compact) h1 { font-size: 23px; }
  body.theme-home .hero:not(.is-compact) .subline { font-size: 16px; line-height: 1.35; }
  body.theme-home .hero-v5:not(.is-compact) .downloader { padding: 6px; }
  body.theme-home .hero-v5:not(.is-compact) .input-row { gap: 6px; }
  body.theme-home .trust { flex-wrap: nowrap; gap: 10px; font-size: 13px; }
  body.theme-home .hero:not(.is-compact) { padding: 10px 0 4px; }
  body.theme-home .consent-inline { margin: 4px auto 6px; }
}
/* Tablet: home has 10 type tabs; keep them on one swipe row so the paste card stays high */
@media (min-width: 768px) and (max-width: 1023px) {
  body.theme-home .hero-v5 .type-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}
@media (min-width: 768px) { .hero-v5:not(.is-compact) .trust-note { text-align: start; } }

/* —— Popup v2 (owner decision): no countdown; one separated ad slot below every button —— */
body:has(.modal-layer) .ad-anchor { display: none; }   /* the modal's slot is the only ad on screen */
.dl-modal { padding: 22px 20px 20px; }
.dl-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 44px 6px; }
.dl-head h2 { margin: 0; }
.dl-ok { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #14A07C, #0B6E56); box-shadow: 0 4px 10px -4px rgba(11,110,86,.6); }
.dl-modal #dl-desc { font-size: 15px; line-height: 1.45; margin-bottom: 16px; }
.dl-modal .format-actions { display: grid; gap: 10px; margin-top: 0; }
.dl-modal .format-actions .btn { width: 100%; min-height: 48px; }
/* Ad zone — ranking-playbook §3.4 (owner, latest; replaces the 24 px gap rule):
   >= 150 px of non-interactive space to any download/format button, the input and the X; >= 48 px to anything else;
   a bordered box labelled "Advertisements" (no fill, no pill, no icon); never directly against the primary button;
   slot height <= 30% of the dialog. Viewports that cannot hold that without pushing buttons out of view get NO slot. */
.modal-ad-buffer { min-height: 160px; display: flex; align-items: center; justify-content: center; padding: 0 8px; }
.modal-file-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.modal-ad-zone { margin: 0 auto; width: fit-content; max-width: 100%; padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; box-shadow: none; }
.modal-ad-zone .ad-label { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: start; margin: 0 0 6px; }
.ad-slot.ad-modal { display: grid; place-items: center; width: 320px; height: 100px; margin: 0; border-radius: 2px; box-shadow: none; flex-shrink: 0;
  background: transparent; border: 1px dashed color-mix(in srgb, var(--muted) 40%, transparent); color: var(--muted); }
.ad-slot.ad-modal.is-placeholder { border-style: solid; border-color: var(--line);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 7%, var(--surface)) 0 10px, var(--surface) 10px 20px); }
.ad-fill { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: color-mix(in srgb, var(--muted) 80%, transparent); }
/* Frame note (design annotation, not product UI): only visible where the slot is omitted. */
.ad-omit-note { display: none; position: fixed; inset-inline: 8px; inset-block-end: 8px; z-index: 90; margin: 0; padding: 6px 10px;
  font: 600 12px/1.35 system-ui, sans-serif; color: #6B4A00; background: #FFF4CC; border: 1px dashed #C99A00; border-radius: 4px; text-align: center; }
/* Omit the slot: narrower than 380 px (the 320 px slot + 150 px clearance cannot sit inside the dialog with its padding)
   or shorter than 700 px (buffer + slot would push the dialog past the viewport). */
@media (max-width: 379px), (max-height: 699px) {
  .modal-ad-buffer, .modal-ad-zone { display: none; }
  .ad-omit-note { display: block; }
}
@media (max-width: 479px) { .modal-layer { padding: 12px; } .dl-modal { padding: 20px 10px 16px; max-height: calc(100vh - 24px); } }
/* Phone landscape: two-column buttons keep every format in the first view (slot is omitted here). */
@media (orientation: landscape) and (max-height: 500px) {
  .modal-layer { padding: 8px; }
  .dl-modal { width: min(460px, 100%); padding: 14px 16px; max-height: calc(100vh - 16px); }
  .dl-modal .format-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dl-modal #dl-desc { margin-bottom: 10px; }
}
@media (max-width: 767px) {
  .dl-modal #dl-desc { font-size: 16px; line-height: 1.4; }
  .hero.is-compact .subline { font-size: 16px; }
  .result-card .author { font-size: 16px; }
}
.carousel-note { margin: 12px 0 4px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
/* While the dialog is open, page ad slots under the scrim are hidden (space kept, so no layout shift):
   the dialog's own slot, where rendered, is the only ad on screen; an obscured ad is never shown. */
body:has(.modal-layer) .ad-slot:not(.ad-modal) { visibility: hidden; }
/* Carousel slide buttons on phones: keep "JPG · 1" on one line (drop the glyph; the label already says what it saves). */
@media (max-width: 899px) {
  .page-result .item-tile .btn { white-space: nowrap; padding-inline: 6px; gap: 4px; font-size: 15px; }
  .page-result .item-tile .btn svg { display: none; }
}

/* ===================== v5.2 ===================== */
/* Gating labels (MASTER-SPEC v1.0.13 C14 / F8): non-clickable "Soon" labels, never links. */
.soon-badge { display: inline-block; margin-inline-start: 6px; padding: 1px 6px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 700;
  letter-spacing: .02em; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); vertical-align: middle; }
.nav-soon { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); font-weight: 600; cursor: default; }
.drawer-soon, .foot-soon { display: flex; align-items: center; min-height: 44px; color: var(--muted); cursor: default; }
.btn.is-soon { color: var(--muted); border-style: dashed; cursor: default; box-shadow: none; pointer-events: none; }
.chip.is-soon { cursor: default; }
/* All visible HTML text >= 12 px (audit should-fix 4). */
.type-badge, .chip.is-soon .soon, .tool-card .soon-tag, .get-table .soon-tag { font-size: 12px !important; }
.thumb-time, .err-meta, .recent-meta, .mono, .ico, .fake-field { font-size: 12px; }
.modal-ad-zone .ad-label { font-size: 12px; line-height: 16px; }
.ad-anchor { font-size: 12px; }
/* Home leads with TikTok while Instagram and Facebook are gated (gating.HOME_STATE == "tt"). */
.theme-home.home-lead-tt { --p1: #2CE6E0; --p2: #FF3D71; --p3: #2CE6E0; --p4: #FF3D71;
  --hero-wash: color-mix(in srgb, #2A9B96 10%, color-mix(in srgb, var(--accent) 8%, transparent)); }
/* Design annotations (never shipped). */
.gated-note { position: fixed; inset-block-start: 4px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 96; margin: 0;
  max-width: calc(100% - 128px); padding: 3px 8px; font: 600 12px/1.3 system-ui, sans-serif; color: #6B4A00; background: #FFF4CC;
  border: 1px dashed #C99A00; border-radius: 4px; text-align: center; pointer-events: none; }
[dir="rtl"] .gated-note { transform: translateX(50%); }
.ad-omit-page { display: none; position: fixed; inset-block-start: 4px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 96; margin: 0;
  max-width: calc(100% - 128px); padding: 3px 8px; font: 600 12px/1.3 system-ui, sans-serif; color: #6B4A00; background: #FFF4CC;
  border: 1px dashed #C99A00; border-radius: 4px; text-align: center; pointer-events: none; }
body:has(.gated-note) .ad-omit-page { inset-block-start: 44px; }
body.anchor-guarded .ad-omit-page { display: block; }
html.screenshot-full .ad-omit-page { display: none !important; }

/* §3.4 for page ads (audit must-fix 2): >= 150 px clear of download/format buttons and the input, >= 48 px from other controls. */
main .ad-slot:not(.ad-modal),
.result-card + .ad-slot, .live + .ad-slot, .live + .ad-mobile-only, .live + .ad-desktop-only { margin-top: 160px; margin-bottom: 64px; }
/* Sticky anchor: hidden by the guard script (space stays reserved, no CLS) when a result card or the dialog is in view,
   or when spacing fails; full-page review shots leave it out. */
.ad-anchor.is-guarded { visibility: hidden; }
html.screenshot-full .ad-anchor { display: none !important; }

/* Modal (audit must-fix 3): opaque scrim, page behind is inert, result-card buttons hidden while open. */
.modal-layer { background: #1B2420; }
[data-theme="dark"] .modal-layer { background: #070B0A; }
body:has(.modal-layer) .result-card .format-actions,
body:has(.modal-layer) .result-card .btn,
body:has(.modal-layer) .item-tile .btn { visibility: hidden; }
/* Carousel results: the slide grid's buttons sit at the card's lower edge; give ad-1 extra clearance. */
body:has(.item-tile) main .ad-slot:not(.ad-modal) { margin-top: 184px; }
/* The page-level anchor note is a QA annotation for page frames; the open dialog covers the page (its own omit note covers the modal slot). */
body:has(.modal-layer) .ad-omit-page { display: none !important; }
/* Anchor note sits where the anchor would be (bottom centre), clear of the header. */
.ad-omit-page, body:has(.gated-note) .ad-omit-page { inset-block-start: auto; inset-block-end: 6px; }
/* v5.2: page anchor note sits in the header gap (between logo and menu), never over content or buttons. */
.ad-omit-page, body:has(.gated-note) .ad-omit-page { inset-block-start: 6px; inset-block-end: auto; }
@media (max-width: 479px) {
  .ad-omit-page, body:has(.gated-note) .ad-omit-page { inset-inline-start: 158px; transform: none; width: 136px; max-width: none; white-space: normal; line-height: 1.25; padding: 3px 6px; text-align: center; }
}
/* v5.2: short gated note on phones, in the header gap; the anchor note drops below the header when both show. */
.gated-note .gn-s { display: none; }
body:has(.gated-note) .ad-omit-page { inset-block-start: 62px; }
@media (max-width: 479px) {
  .gated-note .gn-l { display: none; }
  .gated-note .gn-s { display: inline; }
  .gated-note { inset-inline-start: 158px; transform: none; width: 136px; max-width: none; line-height: 1.25; padding: 3px 6px; }
}
/* v5.2 polish: drawer Soon rows align with drawer links; desktop gated note sits under the header, clear of the nav. */
.drawer .drawer-soon { padding: 8px 12px; gap: 8px; font-size: 15px; font-weight: 600; }
@media (min-width: 480px) {
  .gated-note { inset-block-start: 62px; }
  body:has(.gated-note) .ad-omit-page { inset-block-start: 96px; }
}

/* ===== v5.2b — reviewer pass in real Chrome (1920 / 393) ===== */
/* (3) type pills wrap; never a sideways scroller or a scrollbar */
.type-tabs, .hero-v5 .type-tabs, body.theme-home .hero-v5 .type-tabs {
  flex-wrap: wrap !important; overflow: visible !important; scrollbar-width: none; -webkit-mask-image: none !important; mask-image: none !important; }
.type-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 479px) {
  .type-tabs, .hero-v5 .type-tabs { justify-content: center; gap: 6px; }
  .type-tab { padding: 0 12px 0 6px; gap: 6px; }
}
/* (2) phone hero art: below the input, never behind the H1 / subline; hidden on the compact (result) hero and the consent fold */
@media (max-width: 479px) {
  .hero-v5 .hero-stage { display: block; }
  .hero-v5:not(.is-compact) .hero-motif { position: static !important; display: block; inset: auto !important; transform: none !important;
    width: 176px !important; height: 154px !important; max-height: 154px !important; margin: 14px auto 0; opacity: 1 !important;
    -webkit-mask-image: none !important; mask-image: none !important; }
  .hero.is-compact .hero-motif, .home-fold .hero-motif { display: none !important; }
}
/* (5) how-it-works strip fills the §3.4 buffer above ad-1 (non-interactive) */
.how-mini { max-width: 960px; margin: 40px auto 0; padding: 0 16px; }
.how-mini ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.how-mini li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line, #E3E8E5);
  font-size: 14px; line-height: 1.35; color: var(--ink-soft); }
.how-mini li strong { color: var(--ink); }
.how-mini .hm-ico { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
@media (max-width: 599px) { .how-mini ol { grid-template-columns: 1fr; gap: 8px; } .how-mini li { padding: 10px 12px; } }
main .how-mini + .ad-slot:not(.ad-modal), main .how-mini + .ad-slot + .ad-slot:not(.ad-modal) { margin-top: 40px; }
.home-fold .how-mini { display: none; }
body.home-fold .how-mini + .ad-slot, body.home-fold .how-mini + .ad-slot + .ad-slot { margin-top: 160px; }
/* DS-1 guide slots render as plain text until the guide is live (AD-10); DS-3/4 annotations */
.link-slot { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; cursor: default; }
.nav-soon.link-slot { text-decoration: none; }
.mock-note { position: static !important; display: block; transform: none !important; margin: 0 0 16px; max-width: none; text-align: start;
  padding: 6px 10px; font: 600 12px/1.4 system-ui, sans-serif; color: #6B4A00; background: #FFF4CC; border: 1px dashed #C99A00; border-radius: 4px; }
/* Compact (result/state) hero: the 34 px corner art sat inside the breadcrumb row; drop it so it never touches text. */
.hero.is-compact .hero-motif { display: none !important; }
/* Phones: Soon pills drop their icon tile so the five home pills fit on two rows (360–430). */
@media (max-width: 479px) {
  .type-tab.is-soon .type-ico { display: none; }
  .type-tab.is-soon { padding: 0 8px 0 12px; gap: 6px; }
  .type-tab .type-ico { width: 30px; height: 30px; }
}
/* DS-1 slot polish: header "Guides" matches the other Soon labels; footer slot aligns with footer links. */
.site-header .nav-soon.link-slot { font-weight: inherit; }
.site-footer .nav-soon { padding-inline: 0; min-height: 0; font-weight: inherit; }
/* AR-1 home depth sections (brief-fixes §14.1) */
.home-depth .prose-wrap { max-width: 820px; }
.home-depth p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 12px 0 0; }
.home-depth .table-wrap { overflow-x: auto; }
.home-depth .get-table td, .home-depth .get-table th { font-size: 15px; }
.home-depth .get-table th { font-size: 12px; }

/* ===== v5.2.1: desktop (>= 1024) mode pills on ONE row — tighter pills, smaller gap and Soon tags; 44 px tall, text >= 12 px ===== */
@media (min-width: 1024px) {
  .hero-v5 .type-tabs, body.theme-home .hero-v5 .type-tabs { flex-wrap: nowrap !important; gap: 4px; max-width: none; width: max-content; }
  .hero-v5 .type-tab { height: 44px; min-height: 44px; padding: 0 10px 0 5px; gap: 5px; font-size: 13px; }
  .hero-v5 .type-tab .type-ico { width: 30px; height: 30px; }
  .hero-v5 .type-tab.is-soon { padding: 0 6px 0 5px; }
  .hero-v5 .type-tab.is-soon .type-ico { width: 26px; height: 26px; }
  .hero-v5 .type-badge { font-size: 12px; padding: 1px 5px; letter-spacing: 0.02em; margin-inline-start: 0; }
}
@media (min-width: 1024px) {
  .hero-v5 .type-tab.is-soon .type-ico { display: none; }
  .hero-v5 .type-tab.is-soon { padding: 0 6px 0 12px; gap: 6px; }
  .hero-v5 .type-badge { text-transform: none; letter-spacing: 0; padding: 1px 6px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-v5:not(.is-compact) .hero-stage { grid-template-columns: minmax(0, 1fr) 240px; }
  .hero-v5:not(.is-compact) .hero-motif { width: 240px; height: 210px; max-height: 210px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-v5 .type-tabs, body.theme-home .hero-v5 .type-tabs { gap: 3px; }
  .hero-v5 .type-tab { padding: 0 8px 0 5px; }
  .hero-v5 .type-tab.is-soon { padding: 0 5px 0 10px; }
}


/* ===================== v5.2.2 — WCAG 2.2 AA fixes (ux-a11y-audit-v5.2.1.md) ===================== */
/* MF-02 (2.4.11): keep focused controls clear of the 56 px sticky header and the 56 px ad anchor / install bar. */
:root { --header-h: 56px; }
html { scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: 72px; }

/* MF-03 (1.4.3): file size on the primary button. Was color-mix(currentColor 70%) = #B6D4CC on #0B6E56 (3.92:1). */
.btn-primary .btn-size { color: #E3F1EC; }

/* MF-04 (1.4.1): in-text links are underlined, not colour-only. Buttons, chips, tabs, cards and nav are excluded. */
:is(p, li, td, .faq) a:not(.btn):not(.chip):not(.type-tab):not(.tool-card):not(.brand):not([class*="nav"]) {
  text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
:is(.site-header, .site-footer, .drawer, nav, .crumb, .nav-menu) a { text-decoration: none; }
:is(.site-header, .site-footer, .drawer, nav, .crumb, .nav-menu) a:hover { text-decoration: underline; }

/* MF-05 (1.4.3): hero trust line on the platform wash. Was --muted #5A6B64 (4.24:1 worst case on the pink wash). */
.hero .trust { color: var(--ink-soft); }

/* MF-07 (1.4.10): device tabs fit 320 px. Under 360 px the tabs go icon-only; the text stays as the accessible
   name (visually hidden, not display:none). flex-wrap is the fallback if a locale string is longer. */
.dev-toggle { flex-wrap: wrap; justify-content: center; }
@media (max-width: 359px) {
  .dev-tab { padding: 0 14px; min-width: 44px; justify-content: center; }
  .dev-tab .dev-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}

/* MF-01 (frames; behaviour is Adam's): the filled field. The URL mirror is display only and never takes the tap;
   the real input covers the whole field (opacity 0 until focused, then shown with the full URL). */
.field .url-mid { pointer-events: none; }
.field.is-filled input.has-mirror { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: auto;
  z-index: 1; padding: 0 112px 0 16px; border: 0; background: var(--surface); font-size: 16px; color: var(--ink); }
.field.is-filled input.has-mirror:focus { opacity: 1; }
.field.is-filled:focus-within .url-mid { visibility: hidden; }
.field .clear-btn, .field .paste-btn { position: relative; z-index: 2; }
.clear-btn { flex-shrink: 0; width: 44px; height: 44px; margin-inline-end: 4px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-soft); display: grid; place-items: center; cursor: pointer; }
.clear-btn:hover { background: var(--surface-2); color: var(--ink); }
.clear-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (max-width: 719px) { .field.is-filled input.has-mirror { padding-inline-end: 52px; } }

/* MF-09 frames: inline bad-link / empty message under the field. */
.field.is-invalid { border-color: var(--danger); }
.field-error { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--danger-soft); color: var(--danger-ink); font-size: 15px; line-height: 1.45; text-align: start; }
.field-error .fe-ico { flex-shrink: 0; margin-top: 2px; color: var(--danger); }
.field-error strong { display: block; font-weight: 700; }
.field-error-hint { display: block; font-size: 14px; }

/* MF-01: every error box ends with "Try another link" (+ "Try again" where a retry makes sense). */
.error-box .err-body { flex: 1; min-width: 0; }
.error-box .err-msg { margin: 0; }
.error-box .err-extra { margin-top: 8px; }
.err-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.err-actions .btn { min-height: 44px; }
.err-actions .btn svg { width: auto; height: auto; margin: 0; color: currentColor; }
.error-box.has-art { align-items: flex-start; }
.countdown-btn[aria-disabled="true"] { cursor: not-allowed; }

/* Format picked ONCE on the result card (ux-direction §2.7, ruling 19 Nov 2026): radio rows, then one action. */
.format-pick { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
.fp-legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.fp-list { display: grid; gap: 8px; }
@media (min-width: 560px) { .fp-list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.fp-opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: var(--radius-md);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 650; cursor: pointer; }
.fp-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.fp-dot { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 2px solid #5A6B64; background: var(--surface); }
.fp-name { display: inline-flex; align-items: center; gap: 6px; }
.fp-name svg { width: 16px; height: 16px; }
.fp-size { margin-inline-start: auto; font-size: 13px; font-weight: 550; color: var(--muted); }
.fp-opt:has(input:checked) { border-color: var(--accent); border-width: 2px; padding: 0 13px; background: var(--accent-soft); }
.fp-opt:has(input:checked) .fp-dot { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); background: var(--accent); }
.fp-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.format-single { margin: 14px 0 0; display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.format-single .fp-k { color: var(--muted); font-weight: 550; }
.format-single .fp-name { font-weight: 700; }
.result-card .format-actions { margin-top: 12px; }
.result-card .format-actions .fp-go { width: 100%; min-height: 52px; }
body:has(.modal-layer) .result-card .format-pick { visibility: hidden; }

/* Popup v2.2: one preset Download button; file details line; note under the button where the slot is omitted. */
.dl-modal #dl-desc .dl-file { display: block; font-weight: 650; color: var(--ink); }
.dl-modal #dl-desc .dl-hint { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.dl-modal .modal-actions .btn { min-height: 52px; font-size: 16px; }
.modal-file-note.is-compact-note { display: none; }
.dl-modal > .modal-file-note { margin-top: 14px; }
@media (max-width: 379px), (max-height: 699px) { .modal-file-note.is-compact-note { display: block; } }
@media (orientation: landscape) and (max-height: 500px) { .dl-modal .format-actions { grid-template-columns: 1fr; } }

/* SF-02 / SF-03: loading keeps the result card's height so ad-1 and the install bar do not jump. */
/* Reserve = TikTok result card (3 options) + install bar, measured: ad-1 starts at the same y in loading and result. */
.live[aria-busy="true"] { min-height: 470px; }
@media (max-width: 1023px) { .live[aria-busy="true"] { min-height: 486px; } }
@media (max-width: 767px) { .live[aria-busy="true"] { min-height: 550px; } }
@media (max-width: 379px) { .live[aria-busy="true"] { min-height: 569px; } }
.input-row .btn[aria-disabled="true"] { opacity: .78; cursor: progress; }

/* SF-10: visible field focus in every state; resting field border >= 3:1 against the page. */
.field, .hero-v5:not(.is-compact) .downloader .field { border-color: #7A8A83; }
[data-theme="dark"] .field, [data-theme="dark"] .hero-v5:not(.is-compact) .downloader .field { border-color: #6E7D77; }
.field:focus-within, .hero-v5:not(.is-compact) .downloader .field:focus-within, .field.is-valid { border-color: var(--accent); }
.field.is-invalid, .hero-v5:not(.is-compact) .downloader .field.is-invalid { border-color: var(--danger); }
.field:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.field.is-invalid:focus-within { outline-color: var(--danger); }

/* SF-12: stand-alone in-text links get a 44 px hit area. */
td a { display: inline-flex; align-items: center; min-height: 44px; }

/* SF-14: RTL anchor close uses the logical side. */
.ad-anchor .close { right: auto; inset-inline-end: 8px; }

/* SF-15: the error copy board reflows at 320 px. */
.err-meta { overflow-wrap: anywhere; }
.errors-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.errors-board { max-width: 100%; overflow-wrap: anywhere; }

/* SF-16: "Soon" badges darker (were --muted on --surface-2, 4.46–4.85:1). */
.soon-badge, .type-badge, .chip .soon, .soon-tag { color: var(--ink-soft); }
@media (max-width: 600px) { .errors-board { padding: 24px 16px 48px; } .errors-grid { grid-template-columns: 1fr; } }
/* MF-07 follow-up: comparison tables reflow at 320 px (were 2–3 px too wide). */
@media (max-width: 400px) { .get-table { table-layout: fixed; } .get-table th, .get-table td { padding: 10px; overflow-wrap: anywhere; } }
/* MF-07 follow-up: the design-system sheet also reflows at 320 px. */
@media (max-width: 600px) {
  .ds { padding: 24px 16px 48px; }
  .ds-grid-2, .type-row { grid-template-columns: minmax(0, 1fr); }
  .ds-card { min-width: 0; padding: 16px; }
  .type-row > * { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 600px) { .ds .ad-demo-row { flex-wrap: wrap; } .ds .ad-demo-row > * { max-width: 100%; min-width: 0; } }
@media (max-width: 600px) { .ad-demo, .ad-demo-row { min-width: 0; max-width: 100%; } .ad-demo-row .ad-slot { max-width: 100%; } }
