/* /ad-templates — the real-ad library. Built by scripts/build-ad-templates.mjs.
   Palette is BRAND.md only (check-brand-colors.mjs guards it). */
.at {
  --ink: #1A1A1A; --body: #4A4A4A; --muted: #808080;
  --canvas: #FAFAFA; --surface: #FFFFFF; --border: #E5E7EB; --soft: #F0F0F0;
  --blue: #3B82F6; --blue-h: #2563EB; --tint: #DBEAFE; --wash: #EFF6FF;
  --sh-card: 0 4px 16px rgba(10,10,10,0.06), 0 1px 3px rgba(10,10,10,0.04);
  --sh-float: 0 8px 24px rgba(10,10,10,0.08), 0 2px 6px rgba(10,10,10,0.04);
  --ease: cubic-bezier(0, 0, 0.2, 1);
  background: var(--canvas); color: var(--ink);
  padding: 140px 0 96px;
}
@media (max-width: 767px) { .at { padding: 124px 0 64px; } }
.at-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 767px) { .at-wrap { padding: 0 16px; } }

/* Breadcrumb + hero */
.at-crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.at-crumbs a { color: var(--muted); text-decoration: none; }
.at-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.at-crumbs span[aria-hidden] { margin: 0 6px; }
.at-hero { max-width: 880px; }
.at h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 16px; }
.at-lead { font-size: 17px; line-height: 1.6; color: var(--body); margin: 0 0 20px; max-width: 72ch; }
.at-hero .at-lead:has(+ .at-specs-link) { margin-bottom: 8px; }
.at-specs-link { margin: 0 0 20px; font-size: 15px; }
.at-specs-link a { color: var(--blue-h); font-weight: 600; text-decoration: none; }
.at-specs-link a:hover { text-decoration: underline; }
.at-hero-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
@media (max-width: 767px) { .at-hero-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 8px; padding: 0 16px; } .at-hero-links::-webkit-scrollbar { display: none; } }
.at-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.at-pill:hover { border-color: var(--ink); box-shadow: var(--sh-card); }

/* Layout (Snappa-style): categories sidebar + main column with the hero, search and grid */
.at-layout { margin-top: 8px; }
@media (min-width: 1024px) {
  .at-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 40px; align-items: start; }
}

/* Sidebar: categories, filters, free tools */
.at-side { font-size: 15px; }
.at-side-h { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; padding: 0 10px; }
.at-side-h ~ .at-side-h { margin-top: 18px; }
.at-side-nav { margin: 0 0 22px; padding: 0; }
.at-side-nav a { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.at-side-nav a:hover { background: var(--soft); }
.at-side-nav a[aria-current] { background: var(--wash); color: var(--blue-h); font-weight: 600; }
.at-side-nav a[aria-current] .at-n { color: var(--blue-h); }
.at-n { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.at-side-head { display: none; }
@media (min-width: 1024px) {
  .at-side { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; padding: 4px 24px 8px 0; border-right: 1px solid var(--border); }
}

/* Phones and tablets: the sidebar is a bottom sheet behind the "Categories" button */
.at-cats { display: none; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 20px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--body); font: 400 15px Inter, sans-serif; cursor: pointer; }
.at-cats strong { color: var(--ink); font-weight: 600; }
@media (max-width: 1023px) {
  .at-cats { display: inline-flex; }
  .at-side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 82vh; overflow-y: auto; background: var(--canvas); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgba(10,10,10,0.16); padding: 0 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(105%); visibility: hidden; transition: transform 250ms var(--ease), visibility 0s linear 250ms; }
  .at-side.is-open { transform: none; visibility: visible; transition: transform 250ms var(--ease); }
  .at-side-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--canvas); padding: 14px 0 10px; margin-bottom: 8px; border-bottom: 1px solid var(--soft); z-index: 1; }
  .at-side-head strong { font-size: 17px; }
  .at-side-done { background: none; border: 0; color: var(--blue-h); font: 600 15px Inter, sans-serif; min-height: 44px; padding: 0 4px; cursor: pointer; }
  .at-side-nav a { min-height: 44px; }
  .at-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(10,10,10,0.32); }
}

/* Hero search + popular searches */
.at-find { margin: 4px 0 36px; }
.at-search-box { position: relative; max-width: 640px; }
.at-search-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.at-search { width: 100%; min-height: 56px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--ink); font: 400 17px Inter, sans-serif; padding: 12px 16px 12px 50px; box-shadow: var(--sh-card); transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.at-search:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint); }
.at-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.at-popular-h { flex: none; font-size: 14px; color: var(--muted); margin-right: 4px; white-space: nowrap; }
.at-qchip { flex: none; min-height: 36px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: 500 14px/1.2 Inter, sans-serif; cursor: pointer; transition: border-color 200ms var(--ease), background-color 200ms var(--ease); }
.at-qchip:hover { border-color: var(--ink); }
.at-qchip[aria-pressed="true"] { background: var(--wash); border-color: var(--blue); color: var(--blue-h); }
@media (max-width: 767px) {
  .at-find { margin-bottom: 28px; }
  .at-search { min-height: 52px; font-size: 16px; }
  .at-popular { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 0; padding: 0 16px; }
  .at-popular::-webkit-scrollbar { display: none; }
  .at-qchip { min-height: 40px; }
}

/* Category heading and count above the grid */
.at-chip { flex: none; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: 500 15px/1.2 Inter, sans-serif; cursor: pointer; transition: all 200ms var(--ease); }
.at-chip:hover { border-color: var(--ink); }
.at-head { scroll-margin-top: 96px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.at .at-head h2:focus { outline: none; }
.at .at-head h2 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.at-count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.at-head-r { display: inline-flex; align-items: baseline; gap: 4px; }
.at-reset { background: none; border: 0; color: var(--blue-h); font: 500 14px Inter, sans-serif; cursor: pointer; padding: 8px; min-height: 40px; }
.at-reset[hidden] { display: none; }
.at-head { margin-bottom: 20px; }
@media (max-width: 767px) { .at-head { margin-bottom: 16px; } }

/* Sidebar filters: one labelled dropdown per filter, under the categories */
.at-side-filters { margin: 0 0 22px; padding: 0 10px; }
.at-side-filters .at-side-h { padding: 0; margin-bottom: 10px; }
.at-sel { display: block; margin: 0 0 12px; }
.at-sel-l { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--body); }
.at-sel-box { position: relative; display: block; }
.at-sel-box::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.at-sel select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 40px; padding: 8px 34px 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); font: 500 14px Inter, sans-serif; text-overflow: ellipsis; cursor: pointer; transition: border-color 200ms var(--ease); }
.at-sel select:hover { border-color: var(--ink); }
.at-sel select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.at-sel select.is-set { border-color: var(--blue); background: var(--wash); color: var(--blue-h); }
.at-side-filters .at-reset { padding: 4px 0; min-height: 32px; }
.at-cats-f { color: var(--muted); }
.at-cats-f.is-set { color: var(--blue-h); font-weight: 600; }
@media (max-width: 1023px) {
  .at-side-filters { padding: 0 10px; }
  .at-sel select { min-height: 44px; font-size: 16px; }
}

/* Grid (masonry columns; each card has a fixed aspect box, so no layout shift) */
.at-grid { list-style: none; margin: 0; padding: 0; columns: 3 240px; column-gap: 16px; }
@media (max-width: 767px) { .at-grid { columns: 2; column-gap: 12px; } }
.tc { break-inside: avoid; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.tc[hidden] { display: none; }
@media (hover: hover) { .tc:hover { transform: translateY(-4px); box-shadow: var(--sh-float); } }
.tc-open { display: block; color: inherit; text-decoration: none; }
.tc-img { display: block; position: relative; background: var(--soft); }
.tc-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tc-meta { display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; }
.tc-text { min-width: 0; flex: 1; }
.tc-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 2px; }
.tc-ind { display: block; font-size: 14px; color: var(--muted); line-height: 1.3; }
@media (max-width: 767px) { .tc-meta { padding: 8px 10px; } }
.at-empty { padding: 48px 16px; text-align: center; color: var(--body); }
.at-empty button { margin-top: 12px; }

/* Content sections */
.at-sec { margin-top: 72px; }
.at-sec h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 12px; }
.at-sec p { color: var(--body); line-height: 1.7; max-width: 72ch; }
.at-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 15px; }
.at-table th, .at-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--soft); vertical-align: top; }
.at-table th { font-size: 14px; color: var(--muted); font-weight: 600; background: var(--canvas); }
.at-table td a { color: var(--blue-h); }
.at-scroll { overflow-x: auto; border-radius: 12px; }
.at-scroll .at-table { min-width: 680px; }
.at-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.at-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; color: inherit; text-decoration: none; transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.at-card:hover { box-shadow: var(--sh-card); transform: translateY(-4px); }
.at-card strong { display: block; font-size: 17px; margin-bottom: 4px; }
.at-card span { color: var(--body); font-size: 15px; line-height: 1.5; }
.at-note { font-size: 14px; color: var(--muted); }
.at-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 12px; background: linear-gradient(180deg, #1F1F21, #0A0A0A); color: #FFFFFF; font: 600 16px Inter, sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.at-cta:hover { transform: translateY(-2px); box-shadow: var(--sh-float); }
.at-cta-blue { background: linear-gradient(180deg, #3B82F6, #2563EB); }
.at-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.at-faq summary { font-weight: 600; cursor: pointer; font-size: 17px; }
.at-faq details p { margin: 12px 0 0; }

/* Detail (modal on grid pages, full page on direct load): hero (image + recreate box), section tabs, sections */
.td-dialog { width: min(1320px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px; box-shadow: var(--sh-float); background: var(--surface); color: var(--ink); }
.td-dialog::backdrop { background: rgba(10,10,10,0.55); }
@media (max-width: 767px) { .td-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0; } }
.td-close { position: sticky; top: 0; float: right; z-index: 3; margin: 12px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 22px; cursor: pointer; }
.td { padding: 24px; min-width: 0; }
@media (max-width: 900px) { .td { padding: 16px; } }
.at-detail-page .td { padding: 0; }
.td a { color: var(--blue-h); }
.td p, .td li { color: var(--body); line-height: 1.6; font-size: 16px; }
.td h2 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.td-hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .td-hero { grid-template-columns: 1fr; gap: 20px; } }
.td-frame { background: var(--soft); border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; justify-content: center; align-items: center; }
.td-frame img { display: block; max-width: 100%; max-height: min(calc(100vh - 120px), 900px); width: auto; height: auto; border-radius: 4px; }
@media (max-width: 767px) {
  .td-frame { padding: 8px; border-radius: 12px; }
  .td-frame img { max-height: 75vh; }
  .td-dialog .td-close { position: fixed; top: 12px; right: 12px; float: none; margin: 0; box-shadow: var(--sh-card); }
}
.td-head { min-width: 0; }
.td .td-kicker { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--blue-h); }
.at .td-h1 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 12px; }
.td .td-by { margin: 0 0 20px; font-size: 15px; line-height: 1.5; }

/* Section tabs: anchor links, sticky under the site header */
.td-tabs { display: flex; gap: 4px; margin: 32px 0 0; padding: 0; background: var(--canvas); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.td-dialog .td-tabs { background: var(--surface); }
.td-tabs::-webkit-scrollbar { display: none; }
.td .td-tabs a { flex: none; padding: 12px 14px; font-size: 15px; font-weight: 500; color: var(--body); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; min-height: 44px; display: inline-flex; align-items: center; }
.td .td-tabs a:hover { color: var(--ink); }
.td .td-tabs a[aria-current="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.td-sec { margin-top: 32px; scroll-margin-top: 88px; }
.td-dialog .td-sec { scroll-margin-top: 16px; }
.td .td-label { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-h); }
.td .td-lead { margin: 0; max-width: 760px; font-size: 20px; line-height: 1.5; color: var(--ink); }
.td-why { max-width: 760px; }
.td .td-why-sum { margin: 0 0 10px; font-size: 18px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.td-why ul { margin: 0; padding-left: 20px; list-style: disc; }
.td-why li { margin-bottom: 6px; }
.td .td-run { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--body); }

/* Recreate box + form */
.td-recreate { margin: 0; padding: 24px; border-radius: 20px; background: #E8F0FE; border: 0; box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12), 0 2px 8px 2px rgba(60, 64, 67, 0.08); }
.td-recreate h2 { margin: 0 0 12px; }
.td-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.td-form label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.td-form label .td-hint { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 4px; }
.td-form input[type="text"], .td-form input[type="email"], .td-form input[type="tel"] { width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 8px 14px; font: 400 16px Inter, sans-serif; }
.td-form input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.td-form input[aria-invalid="true"] { border-color: #DC2626; }
.td-row { display: flex; flex-wrap: wrap; gap: 8px; }
.td-row input { flex: 1 1 200px; width: auto; min-width: 0; }
.td-row .at-cta { flex: 0 0 auto; min-width: 96px; }
.td .td-offer { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.td-offer strong { overflow-wrap: anywhere; }
.td-change { border: 0; background: none; padding: 0 2px; font: 500 15px Inter, sans-serif; color: var(--blue-h); text-decoration: underline; cursor: pointer; min-height: 24px; }
.td-step-2 input + .td-err { margin-top: 6px; }
.td-step-2 input + .td-err + label, .td-step-2 input + label { margin-top: 14px; }
.td-step-2 .td-send { width: 100%; margin-top: 16px; }
.td .td-small { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.td .td-err { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: #DC2626; }
.td-err[hidden] { display: none; }
.td .td-status { margin: 10px 0 0; min-height: 0; font-size: 15px; color: #DC2626; }
.td-status:empty { display: none; }
.td .td-fine { margin-top: 10px; font-size: 13px; }
.td-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.td-send:disabled { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }
/* Thank-you: where the ad went, then one line into Bytown. No boxes: a tick, a hairline, a blue button. */
.td-done { display: grid; gap: 16px; }
.td .td-done-ok { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--ink); font-size: 16px; line-height: 1.5; }
.td-tick { flex: 0 0 24px; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: #2563EB; color: #FFFFFF; font-size: 13px; font-weight: 700; line-height: 1; }
.td-done-ok strong { overflow-wrap: anywhere; }
.td-hook { padding-top: 16px; border-top: 1px solid rgba(37, 99, 235, 0.18); }
.td-done .td-hook h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.td .td-done .td-hook p { margin: 4px 0 0; color: var(--muted); }
.td-done .at-cta { width: 100%; }
.td .td-done a.at-cta { color: #FFFFFF; }

/* Prompt card + AI buttons */
.td-ai { max-width: 760px; padding: 20px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-card); }
.td-ai-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.td-ai-head h2 { margin: 0; }
.td-ai-head .td-small { margin: 4px 0 0; }
.td-prompt { margin: 0; padding: 14px 16px; max-height: 280px; overflow: auto; background: var(--canvas); border: 1px solid var(--border); border-radius: 12px; color: var(--ink); font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.td-llm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.td-llm .td-small { margin: 0 4px 0 0; }
.td-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: 500 15px Inter, sans-serif; text-decoration: none; cursor: pointer; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.td a.td-btn { color: var(--ink); }
.td-btn:hover { border-color: var(--ink); box-shadow: var(--sh-card); }
.td-btn-dark { background: linear-gradient(180deg, #1F1F21, #0A0A0A); color: #FFFFFF; border-color: #0A0A0A; }
.td-btn-dark:hover { border-color: #0A0A0A; }
.td-ico { width: 18px; height: 18px; flex: none; }
.td-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #FFFFFF; font: 500 15px/1.4 Inter, sans-serif; box-shadow: var(--sh-float); }

/* More like this */
.td-more-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.td-more-head h2 { margin: 0; }
.td .td-more-head a { font-size: 15px; font-weight: 500; text-decoration: none; }
.td-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 767px) { .td-more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.td .td-more a { display: block; color: var(--ink); text-decoration: none; }
.td .td-more a[hidden] { display: none; }
.td-more-img { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--soft); }
.td-more-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.td-more-t { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; font-weight: 500; }
.td-show-more { display: flex; margin: 20px auto 0; }

/* Safe-zone overlay (checker) */
.sz { position: absolute; inset: 0; pointer-events: none; }
.sz i { position: absolute; background: rgba(59,130,246,0.28); }
.sz .sz-t { left: 0; right: 0; top: 0; } .sz .sz-b { left: 0; right: 0; bottom: 0; }
.sz .sz-l { left: 0; } .sz .sz-r { right: 0; }

/* Safe-zone checker */
.szc { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .szc { grid-template-columns: 1fr; } }
.szc-stage { position: relative; width: 100%; max-width: 360px; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #1A1A1A; margin: 0 auto; }
.szc-stage img, .szc-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.szc-drop { display: block; border: 2px dashed var(--border); border-radius: 12px; padding: 20px; text-align: center; background: var(--surface); cursor: pointer; color: var(--body); }
.szc-drop.is-over { border-color: var(--blue); background: var(--wash); }
.szc-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.szc-legend { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--body); margin: 12px 0; }
.szc-legend i { width: 16px; height: 16px; border-radius: 4px; background: rgba(59,130,246,0.28); border: 1px solid var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .tc, .at-card, .at-cta, .at-chip, .td-btn { transition: none; }
}
