/* The calm redesign (Oct 16, 2026): Ads (ads/). Loaded after styles.css, so a rule here wins over the same rule there.
   Docs/Hub design standard.md has the rules (Motion; Calm and focus). Colours only from the tokens in styles.css. */

/* ---------- Moved from styles.css (Oct 21, 2026): only this area draws these, so they load with it (js/screen-css.js).
   Kept in their old order, ahead of this file's own rules, as before. ---------- */
/* ---------- screens and type ---------- */
.lede { font-size: 1rem; line-height: 1.5; color: var(--text-2); margin-top: -12px; max-width: 70ch; }
/* Two lines under a title (Brandon's Replies: what it is for, then the count): kept together. */
.lede + .lede { margin-top: -20px; font-weight: 600; color: var(--heading); }

/* ---------- plain lists (replies waiting, stock) ---------- */
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- folds ---------- */
.fold-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 20px; border-top: 1px solid var(--border); }

/* ---------- Board: chips, search, rows ---------- */
.rows > .grp-h:not(:first-child) { border-top: 1px solid var(--border); }

/* ---------- Brandon's Today ---------- */
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { padding: 12px 16px; background: var(--surface-2); color: var(--text-2); text-align: left; font: 600 .875rem/1.2 var(--rt-body); letter-spacing: 0; }
.tbl td { padding: 16px; border-top: 1px solid var(--border); vertical-align: top; }
.tbl tbody tr:nth-child(even) td { background: var(--rt-stripe); }
.tbl .who { font-weight: 600; }
.tbl td:last-child { width: 1%; }
.tbl .acts .btn { white-space: nowrap; }

/* ---------- Ads: the Audience Lab editor (js/ads/ads-editor.js and its sections) ---------- */
/* Headers wrap ("Cost per / lead") and the padding is small, so the PC shows every Tests column without scrolling sideways
   and a phone shows Audience, Cost per lead and Verdict (the Library: Option and Status, the rest a swipe away). */
.tbl.tight { font-size: 1rem; }
.tbl.tight td { padding: 10px 6px; }
.tbl.tight th:first-child, .tbl.tight td:first-child { padding-left: 12px; }
.tbl.tight th:last-child, .tbl.tight td:last-child { padding-right: 12px; }
.tbl.tight th.num { white-space: normal; }
.tbl td.aud { min-width: 190px; max-width: 360px; }
@media (max-width: 719px) {
  .tbl td.aud { min-width: 150px; }
}
.tbl tr.go { cursor: pointer; }
.tbl tr.go:hover td { background: var(--rt-hover); }
.tbl tr.is-off td { color: var(--text-3); }
.tbl tr.is-off .rowbtn { text-decoration: line-through; color: var(--text-3); }
.rowbtn { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-weight: 600; text-align: left;
  cursor: pointer; text-decoration: underline 2px var(--link-line); text-underline-offset: 4px; overflow-wrap: anywhere; }
.rowbtn:hover { text-decoration-color: var(--accent); }
.tbl th .sort { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; margin: -8px 0; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.tbl th .sort .ic { width: 16px; height: 16px; }
.tbl th[aria-sort="ascending"] .sort .ic { transform: rotate(180deg); }
/* The Library's Use? (the sheet's tick box): Yes / No that saves at once. */
.use-t { min-width: 64px; min-height: 48px; margin: -8px 0; padding: 0 14px; border: 2px solid var(--border-strong); border-radius: var(--r-pill); background: var(--field);
  color: var(--text); font: 700 1rem/1 var(--rt-body); letter-spacing: 0; text-transform: none; cursor: pointer; }
.use-t[disabled] { opacity: .6; cursor: default; }
.form-status:empty { display: none; }
/* The idea form's option pickers: the names chosen (each with a ×), the search box, and the Library's matches. */
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-chip { display: inline-flex; align-items: center; gap: 2px; min-height: 48px; max-width: 100%; padding: 0 0 0 14px; border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill); background: var(--field); font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.opt-note { color: var(--text-3); }
.opt-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 46px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: none; color: var(--text-2); cursor: pointer; }
.opt-x:hover { background: var(--rt-hover); }
.opt-x .ic { width: 18px; height: 18px; }
.opt-sugg { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-box); background: var(--surface); }
.opt-sugg:empty { display: none; }
.opt-s { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--border);
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.opt-s:last-child { border-bottom: 0; }
.opt-s:hover, .opt-s:focus-visible { background: var(--rt-hover); }
.opt-s:focus-visible { outline-offset: -3px; }
.opt-s-name { font-weight: 600; overflow-wrap: anywhere; }
.opt-s-sub { font-size: 1rem; color: var(--text-3); }
.checks .grp-h { margin: 8px 0 0; }
.ck-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; overflow-wrap: anywhere; }
.ad-2 { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--card-rule); padding: 0; }
.ad-2 p { padding: 4px 8px; }
.ad-2 p:nth-child(odd) { border-right: 1px solid var(--card-rule); }
.ad-h { font-weight: 600; text-decoration: underline; }
.ad-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; align-items: center; }
.ad-g ul { margin: 0; padding: 0; list-style: none; font-weight: 600; }
.ad-r { font-weight: 600; border-top: 1px solid var(--card-rule); border-bottom: 1px solid var(--card-rule); }
.gen-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.disc-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.disc-row:last-child { border-bottom: 0; }
.disc-main { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.disc-main > span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.disc-sel { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px; }
/* themes run longer than layers */
.disc-sel .field { gap: 4px; }
.disc-sel .flabel { font-size: .875rem; }
@media (min-width: 900px) {
  .disc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; }
}
.goal-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.fold.deleted .fold-body > .plain { margin: 0 -16px; }
.choice-list { margin: 0 -16px; }
.choice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 60px; padding: 8px 16px; border-bottom: 1px solid var(--border); }
.choice-row:last-child { border-bottom: 0; }
.choice-row .p-name { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.choice-sw { display: inline-flex; align-items: center; gap: 8px; }
/* Results from Meta (ads-meta.js): Refresh with the last run beside it, the Meta mark of a linked test and its locked
   numbers, New from Meta's ad sets (Link to idea… and Not an audience test under each), Goals → Meta results. */
.meta-bar { display: flex; flex-direction: column; gap: 8px; }
.meta-run { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 14px; }
.meta-run-t { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.meta-accts .choice-list { border-left: 0; border-right: 0; border-radius: 0; }
.meta-accts > .flabel, .meta-key > .flabel { font: 600 1rem/1.2 var(--rt-cond); letter-spacing: 0; color: var(--label); }
/* The Ads overview (ads-overview.js): the week's numbers, Running now in Meta, What to do next; then the tabs and their
   short lines (ads-editor.js), and the "How … works" folds that keep the rules one tap away. */
.ads-ov { gap: 16px; padding-bottom: 20px; border-bottom: 2px solid var(--border-strong); }
.g-row.ad_group { margin-left: 16px; border-left: 3px solid var(--border); }
.copy-text[data-part="negatives"] { white-space: pre-wrap; overflow-wrap: anywhere; }
.term-list { margin: 0; }
@media (max-width: 599px) {
  .ov-tiles.all-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-row.ad_group { margin-left: 8px; }
}
.ov-next { gap: 10px; }
.live-list { margin: 0; }
.live-foot { justify-content: space-between; }
.b-why { white-space: pre-wrap; overflow-wrap: anywhere; }
.tab-intro { font-size: 1.0625rem; color: var(--text-2); }

/* ---------- the Ads redesign (docs/ads-redesign.md): drop-downs, Running now rows, test cards, questions ---------- */
.ads-folds { gap: 12px; }
.ads-fold { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.ads-fold > summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; }
.ads-fold > summary:focus-visible { outline-offset: -3px; }
.ads-fold > .fold-body { padding: 12px 16px 16px; }
.ads-part { gap: 12px; }
.t-groups { gap: 8px; }
.live-row { display: block; padding: 0; }
.live-row + .live-row { border-top: 1px solid var(--border); }
.live-fold { border: 0; border-radius: 0; background: none; }
.live-row.attention { border-left: 4px solid var(--attn-line); }
.big-cpl { font: 700 2.25rem/1 var(--rt-cond); color: var(--heading); font-variant-numeric: tabular-nums; }
.copy-block { gap: 6px; }
.copy-text { white-space: pre-line; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-box); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.q-list > li + li { border-top: 1px solid var(--border); }

/* ---------- The Meta naming tidy-up: levels, paths, Rename in Meta (docs/meta-names.md) ---------- */
.ads-of { display: flex; flex-direction: column; gap: 0; margin: 0; }
.ad-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--border); min-width: 0; }
.rename-filter { margin: 4px 0 8px; }
.rename-list { display: flex; flex-direction: column; gap: 0; margin: 0; }
.rename-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--border); min-width: 0; }
.rename-row.state-renamed { opacity: .8; }
.rename-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rename-old { margin: 0; overflow-wrap: anywhere; }
.rename-old .old-name { text-decoration: line-through; text-decoration-color: var(--text-3); }
.rename-arrow { display: flex; align-items: center; gap: 4px; }
.rename-new { width: 100%; min-width: 0; font-weight: 600; }
.rename-ticks { flex-wrap: wrap; gap: 8px 16px; }
.rename-foot { gap: 6px; margin-top: 12px; }

/* ---------- Pause, resume and budgets in Meta (js/ads/ads-edit.js; docs/meta-edit-contract.md) ---------- */
/* WP2 owns this block: every class of the feature starts with .me- and lives here, nowhere else. */
.me-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.me-budget { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.me-budget > p { margin: 0; overflow-wrap: anywhere; }
.me-sheet .me-what { overflow-wrap: anywhere; }
.me-sheet .me-now { margin: 0; font-weight: 700; }
.me-sheet .me-said { overflow-wrap: anywhere; }
.me-quick { gap: 8px; }
.me-change { margin: 0; font-weight: 600; }
.me-change:empty { display: none; }
.me-problem { margin: 0; color: var(--rt-bad); font-weight: 600; }
.me-problem[hidden] { display: none; }

/* ---------- Simplified Ads: audiences, the Testing label, jobs to credit (js/ads/ads-audiences.js, ads-credits.js) ---------- */
.meta-word { font: 400 .875rem/1.3 var(--rt-body); letter-spacing: 0; text-transform: none; color: var(--text-2); }
.live-row > .nudge, .past-row > .nudge, .live-row > .me-acts { padding: 0 16px 12px; }
.nudge { gap: 6px; }
.nudge-t { margin: 0; font-weight: 700; color: var(--rt-attn); }
.test-note { color: var(--text-2); overflow-wrap: anywhere; }
.test-block { gap: 8px; padding: 10px 14px; background: var(--surface-2); border-radius: var(--r-box); }
.test-result { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.note-box { gap: 8px; }
.past-list { margin: 0; }
.past-row + .past-row { border-top: 1px solid var(--border); }
.ov-past { gap: 10px; }
.credits-done > li + li { border-top: 1px solid var(--border); }
/* Hub clarity (Oct 10, 2026): Running now and Past audiences read as sections of their own under the glance tiles, and
   the verdict key sits right under the lede. */
.ads-ov > .ov-make, .ads-ov > .ov-past { margin-top: 8px; padding-top: 20px; border-top: 2px solid var(--border); }
/* Past audiences, closed at first: its heading is the drop-down's line. Make new ads: one plain line per build. */
.past-all > summary .sub-h { margin: 0; }
.past-all > .fold-body { padding: 12px 16px 16px; }
.ov-make { gap: 10px; }
.ads-key { margin-top: -14px; }
.ads-key .s-main strong { font-size: 1.125rem; }
.verdict-key dt { white-space: nowrap; }

/* ---------- The triangle view and the ad builder (js/ads/ads-triangle.js, ads-builder.js; docs/ads-builder-contract.md) ---------- */
/* WEB owns this block: every class of the feature starts with .tri- or .ab- and lives here, nowhere else. The lines between
   blocks are borders (no images); a wide row scrolls sideways inside its card, never the page. */
.tri-list { gap: 14px; }
.tri-card { gap: 6px; padding: 12px 0 14px; }
.tri-camp { width: min(320px, calc(100vw - 72px)); align-items: center; text-align: center; background: var(--surface-2); border-color: var(--ink-strong); }
.tri-ad { width: 200px; border-width: 1px; background: var(--surface); }
.tri-off { opacity: .8; }
.tri-many > .tri-col, .tri-many > .tri-adcol { padding-top: 16px; }
.tri-many > .tri-col::before, .tri-many > .tri-adcol::before { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 2px solid var(--border-strong); }
.tri-many > :first-child::before { left: 50%; }
.tri-many > :last-child::before { right: 50%; }
.tri-many > .tri-col::after, .tri-many > .tri-adcol::after { content: ""; position: absolute; top: 0; left: calc(50% - 1px); height: 16px; border-left: 2px solid var(--border-strong); }
.tri-name { font-weight: 700; }
.tri-block .tri-name { line-height: 1.25; }
.tri-block .tri-clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tri-block .tri-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tri-budget .tri-val { font: 700 1.25rem/1.1 var(--rt-cond); letter-spacing: .02em; color: var(--heading); }
.tri-block .ab-made, .tri-block .ab-needs, .tri-block .ab-refused { margin-top: 2px; line-height: 1.3; }
.tri-camp .tri-name { font: 700 1.375rem/1.1 var(--rt-cond); letter-spacing: .03em; color: var(--heading); }
.tri-camp .tri-tag { justify-content: center; }
.tri-camp .tri-acts { align-items: center; }
.tri-aud .live-row { display: block; padding: 0; }
.tri-grey .tri-block { background: var(--surface-2); border-color: var(--muted-line); }
.tri-grey .tri-many > .tri-col::before, .tri-grey .tri-many > .tri-col::after,
.tri-grey .tri-many > .tri-adcol::before, .tri-grey .tri-many > .tri-adcol::after { border-color: var(--muted-line); }
/* The ad text check (js/ads/ads-text.js): each running ad's headline and text, two lines then Show all; a flagged ad
   has a red edge and its warning in red; "none" where the words are missing. */
.ad-body.tri-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tri-ad.ad-flag { border: 2px solid var(--rt-bad); }
/* The builder: its blocks are buttons (tap to change), the "+" blocks add one. */
.tri-tap { display: flex; flex-direction: column; align-items: inherit; gap: 4px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit;
  text-align: inherit; cursor: pointer; }
.tri-static { cursor: default; }
.tri-tap:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
.tri-add { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; width: min(260px, calc(100vw - 72px)); padding: 10px 12px;
  border: 2px solid var(--border-strong); border-radius: var(--r-box); background: none; color: var(--link); font: 700 1.0625rem/1.1 var(--rt-cond); letter-spacing: 0;
  cursor: pointer; }
.tri-add-col .tri-add { width: 200px; }
.tri-add:hover { background: var(--rt-hover); }
.ab-needs { margin: 0; font-size: 1rem; font-weight: 600; color: var(--rt-attn); }
.ab-made { margin: 0; font-size: 1rem; font-weight: 600; color: var(--rt-ok); }
.ab-refused { margin: 0; font-size: 1rem; font-weight: 600; color: var(--rt-bad); }
.ab-entry { display: flex; flex-direction: column; gap: 8px; }
.ab-entry .ab-builds { display: flex; flex-direction: column; gap: 4px; }
body.ab-open { overflow: hidden; }
.ab-page { position: fixed; inset: 0; z-index: 50; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); }
/* The head and the page keep the Hub's own column (.wrap: 1180px, centred). */
.ab-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 8px max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter))); background: var(--bar); color: var(--on-bar); }
.ab-head h1 { flex: 1; font: 700 1.375rem/1.05 var(--rt-cond); letter-spacing: 0; }
.ab-back { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 2px solid var(--bar-line); border-radius: var(--r-pill); background: none;
  color: var(--on-bar); font: 700 1rem/1 var(--rt-body); letter-spacing: 0; text-transform: none; cursor: pointer; }
.ab-back .ic { transform: rotate(90deg); }
.ab-main { display: flex; flex-direction: column; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 16px var(--gutter) calc(40px + var(--safe-b)); }
.ab-acct { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ab-acct p { flex: 1 1 240px; margin: 0; }
.ab-steps { margin: 6px 0 0; padding-left: 22px; }
.ab-steps li { margin: 4px 0; overflow-wrap: anywhere; }
.ab-plan { gap: 10px; border-top: 1px solid var(--border); padding-top: 12px; }
.ab-plan ul { margin: 0; padding-left: 20px; }
.ab-plan li { margin: 2px 0; overflow-wrap: anywhere; }
.ab-foot { display: flex; flex-direction: column; gap: 10px; }
.ab-progress { width: 100%; height: 14px; accent-color: var(--link); }
.ab-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 8px 18px; border: 2px solid var(--border-strong); border-radius: var(--r-box);
  background: var(--field); text-align: left; cursor: pointer; }
.ab-chip strong { font: 700 1.125rem/1.1 var(--rt-cond); letter-spacing: .04em; }
.ab-chip[aria-pressed="true"] { border-color: var(--pick); background: var(--pick); color: var(--on-pick); }
.ab-chip[disabled] { opacity: .55; cursor: default; }
/* Each choice as tall as its words (flex: none: a list that scrolls never squeezes them); a greyed one keeps its reason readable. */
.ab-pick { display: flex; flex-direction: column; gap: 8px; max-height: min(440px, calc(55 * var(--vh))); overflow-y: auto; padding: 2px; }
.ab-pick > * { flex: none; }
.ab-opt { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; width: 100%; height: auto; min-height: 56px; padding: 10px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--r-box); background: var(--field); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.ab-opt strong { font: 700 1.0625rem/1.25 var(--rt-body); }
.ab-opt[aria-pressed="true"] { border: 2px solid var(--ink-strong); background: var(--rt-ok-bg); }
.ab-opt[disabled] { border-style: solid; background: var(--surface-2); color: var(--text-2); cursor: default; }
.ab-search { display: flex; gap: 8px; }
.ab-search input { flex: 1; min-width: 0; }
.ab-ichips { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-ichip { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 4px 8px 4px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  background: var(--field); cursor: pointer; }
.ab-ichip .ic { width: 16px; height: 16px; }
.ab-group { display: flex; flex-direction: column; gap: 6px; }
.ab-count { margin: 0; font-size: .9375rem; color: var(--text-3); text-align: right; }
.ab-thumb { display: block; max-width: 160px; max-height: 160px; border-radius: 12px; border: 1px solid var(--border); }
.ab-problem { margin: 0; color: var(--rt-bad); font-weight: 600; }
.ab-warn { margin: 0; color: var(--rt-warn); font-weight: 600; }
.ab-problem:empty, .ab-warn:empty, .ab-problem[hidden] { display: none; }
.ab-line { margin: 0; overflow-wrap: anywhere; }

/* ---------- Ads, to the Hub design standard (Oct 11, 2026) ----------
   Brandon's design standard (Docs/Hub design standard.md) on every Ads view: the Ads tab ([data-screen="ads"]) and the
   builder ([data-screen="ads-builder"]), on top of the shared look (Hub polish, phase 1, PR #59: type scale, pills,
   cards, sheets, solid lines); only what is the Ads screens' own is here, scoped to those two. No ALL-CAPS, no emoji, no coloured left stripes, no dashed lines, nothing that scrolls sideways, and every
   number one unbroken piece. Tokens only (test/web/look.test.mjs). Screen only: the printed audience cards keep their
   own look. */
@media screen {
  [data-screen="ads"], [data-screen="ads-builder"] { font-size: 1rem; }
  [data-screen="ads"] .lede { font-size: 1rem; }
  [data-screen="ads"] div.tile { border-style: solid; background: var(--surface); border-radius: 22px; }
  [data-screen="ads"] .kv dd { font-size: .9375rem; }
  /* A choice that can never apply (already in the Library) is hidden, not greyed out (check 12). */
  [data-screen="ads"] .disc-row input[type="checkbox"][disabled][aria-label^="Add "] { visibility: hidden; }
  [data-screen="ads"] .ads-fold .ads-fold > summary .s-main > strong { font: 700 1rem/1.3 var(--rt-body); letter-spacing: 0; color: var(--text); }
}
@media (max-width: 600px) {
  [data-screen="ads"] .ads-fold > summary { padding: 10px 14px; }
  [data-screen="ads"] .ads-fold > .fold-body { padding: 12px 12px 14px; }
}
@media screen {
  [data-screen="ads"] .ads-ov > :is(.ov-make, .ov-past) { margin-top: 8px; padding-top: 0; border-top: 0; }
  [data-screen="ads"] .ov-past, [data-screen="ads"] .ov-make { gap: 16px; }
  /* Tables: no striped rows. */
  [data-screen="ads"] .tbl tbody tr:nth-child(even) td { background: none; }
  [data-screen="ads"] .grp-h { font: 600 .875rem/1.3 var(--rt-body); color: var(--text-2); }
  [data-screen="ads"] .ads-fold > summary { min-height: 60px; padding: 12px 20px; }
  [data-screen="ads"] .ads-fold.stage > summary .s-main > strong { font: 700 1.0625rem/1.3 var(--rt-body); color: var(--text); }
  [data-screen="ads"] .ads-fold .ads-fold { background: var(--field); }
  /* The headline tiles: a quiet label over a big number that never breaks. */
  [data-screen="ads"] .ov-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
  [data-screen="ads"] .ov-tiles .tile { gap: 6px; padding: 18px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
  [data-screen="ads"] .ov-tiles .tn { font-size: 2.375rem; white-space: nowrap; overflow-wrap: normal; }
  [data-screen="ads"] .ov-tiles .tm { font-size: .875rem; }
  [data-screen="ads"] .ov-tiles .tm .pill { margin-right: 6px; }
  /* A section's heading: its title, its count in a small pill, one quiet line. */
  .ad-sec-h { display: flex; flex-direction: column; gap: 4px; }
  .past-all > summary .ad-sec-h, .past-all > summary .sub-h { margin: 0; }
  .ad-empty { display: flex; align-items: flex-start; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; }
  .ad-empty > .ic { flex: none; width: 24px; height: 24px; color: var(--link); }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-list { gap: 20px; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-card { gap: 16px; padding: 20px; border-radius: 22px; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-camp { position: static; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 24px; width: auto;
    padding: 0; border: 0; background: none; text-align: left; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-camp .tri-tag { justify-content: flex-start; }
  .tri-camp-main { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-camp .tri-name { font: 700 1.25rem/1.3 var(--rt-body); letter-spacing: 0; color: var(--heading); overflow-wrap: anywhere; }
  .tri-camp-sub { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: .875rem; line-height: 1.45; color: var(--text-3); }
  .tri-camp-sub > span:not(:last-child)::after { content: "·"; margin: 0 8px; }
  .tri-camp-tot { display: flex; flex-direction: column; gap: 2px; }
  .ad-tot { display: flex; flex-wrap: wrap; gap: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
  .ad-tot > span { white-space: nowrap; }
  .ad-tot > span:not(:last-child)::after { content: "·"; margin: 0 8px; font-weight: 400; color: var(--text-3); }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-camp .tri-acts { flex: 0 1 auto; align-items: stretch; margin: 0; }
  .tri-camp .me-budget { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 10px 10px 16px; background: var(--surface-2); border-radius: 18px; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px;
    align-items: start; justify-content: stretch; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-col { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 0; padding: 16px;
    background: var(--field); border: 1px solid var(--border); border-radius: 20px; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-many > .tri-col { padding-top: 16px; }
  .tri-col:has(.live-row.attention) { border-color: var(--attn-line); }
  .tri-head-row .tri-name { font-size: 1.0625rem; }
  .tri-grey .tri-col { background: var(--surface); }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-grey .tri-block { background: none; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-ad { width: auto; gap: 6px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-ad.ad-flag { border: 2px solid var(--rt-bad); }
  .ad-thumb { flex: none; display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; background: var(--nav-tint);
    color: var(--link); font: 700 .75rem/1 var(--rt-body); }
  .ad-prev-t .tri-name { overflow-wrap: anywhere; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-add { width: 100%; min-height: 56px; border: 1px solid var(--border-strong); border-style: solid; border-radius: 16px;
    font: 600 .9375rem/1.2 var(--rt-body); letter-spacing: 0; text-transform: none; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-camp .tri-tap { align-items: flex-start; }
  /* A fold inside a card ("3 ads", "More"): a quiet line with a chevron, no box. */
  [data-screen="ads"] .tri-col .ads-fold { background: none; border: 0; border-radius: 0; }
  [data-screen="ads"] .tri-col .ads-fold > summary { min-height: 44px; padding: 0; gap: 8px; }
  [data-screen="ads"] .tri-col .ads-fold > summary .s-main > strong { font: 600 .9375rem/1.3 var(--rt-body); color: var(--link); }
  [data-screen="ads"] .tri-col .ads-fold > .fold-body { padding: 4px 0 0; border-top: 0; }
  [data-screen="ads"] .tri-body { margin: 0; overflow: visible; background: none; border: 0; border-radius: 0; }
  [data-screen="ads"] .tri-aud .live-row, [data-screen="ads"] .tri-aud .past-row, .ad-aud { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 0; border: 0; text-align: left; }
  [data-screen="ads"] .live-row.attention { border-left: 0; }
  [data-screen="ads"] .live-row > .nudge, [data-screen="ads"] .past-row > .nudge, [data-screen="ads"] .live-row > .me-acts { padding: 0; }
  .ad-card-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 10px; }
  .ad-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .ad-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .ad-rec { display: flex; }
  .rec-none { font-size: .875rem; color: var(--text-3); }
  /* Today / Last 7 days / Since it started: three columns whose lines line up across (subgrid). */
  .ad-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; padding: 12px; background: var(--surface-2); border-radius: 14px; }
  .ad-stat { display: grid; grid-template-rows: subgrid; row-gap: 2px; min-width: 0; }
  .ad-stats.r2 { grid-template-rows: repeat(2, auto); }
  .ad-stats.r2 > .ad-stat { grid-row: span 2; }
  .ad-stats.r3 { grid-template-rows: repeat(3, auto); }
  .ad-stats.r3 > .ad-stat { grid-row: span 3; }
  .ad-stats.r4 { grid-template-rows: repeat(4, auto); }
  .ad-stats.r4 > .ad-stat { grid-row: span 4; }
  .ad-stats.r5 { grid-template-rows: repeat(5, auto); }
  .ad-stats.r5 > .ad-stat { grid-row: span 5; }
  .ad-stats.r6 { grid-template-rows: repeat(6, auto); }
  .ad-stats.r6 > .ad-stat { grid-row: span 6; }
  .ad-stat > .wrap { white-space: normal; }
  .ad-stats { overflow-wrap: normal; }
  .ad-stat > span { margin: 0; padding: 0; text-indent: 0; }
  .ad-stat-h { font: 600 .8125rem/1.3 var(--rt-body); color: var(--text-3); }
  .ad-stat-v { font: 700 1rem/1.3 var(--rt-body); color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .ad-stat-s { font-size: .875rem; line-height: 1.35; color: var(--text-2); font-variant-numeric: tabular-nums; }
  .ad-stat-s .num, .ad-stat-h { white-space: nowrap; }
}
@media (max-width: 420px) {
  .ad-stat-h { white-space: normal; }
}
@media screen {
  .ad-facts { display: flex; flex-wrap: wrap; gap: 4px 0; }
  .ad-facts > span:not(:last-child)::after { content: "·"; margin: 0 8px; }
  .ad-aud .nudge { gap: 8px; padding: 12px; background: var(--rt-attn-bg); border-radius: 14px; }
  .ad-aud .nudge-t { color: var(--text); }
  .ad-more-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .875rem; color: var(--text-3); }
  [data-screen="ads"] .test-block { padding: 12px; border-radius: 14px; }
}
@media (min-width: 1000px) {
  [data-screen="ads"] .tri-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
  [data-screen="ads"] .tri-list > .tri-card:not(.tri-solo) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-card { padding: 16px 12px; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .tri-col { padding: 14px 12px; }
  .ad-stats { column-gap: 8px; padding: 10px; }
}
@media screen {
  /* Google: a campaign's header row (its cost and verdict beside the name, More under it), and the LSA card. */
  .g-camp-now { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .g-camp-more { flex: 1 1 100%; }
  [data-screen="ads"] .tri-camp .card-more > summary { min-height: 44px; padding: 0; gap: 8px; }
  [data-screen="ads"] .tri-camp .ads-fold.card-more { background: none; border: 0; border-radius: 0; }
  [data-screen="ads"] .tri-camp .card-more > summary .s-main > strong { font: 600 .9375rem/1.3 var(--rt-body); color: var(--link); }
  [data-screen="ads"] .tri-camp .card-more > .fold-body { padding: 4px 0 0; border-top: 0; }
  .g-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .g-facts li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .g-facts .lbl, .ad-more-line .lbl { font: 600 .875rem/1.3 var(--rt-body); color: var(--text-3); }
  .g-lsa { gap: 16px; }
  [data-screen="ads"] .q-list > li + li { border-top: 1px solid var(--border); }
  [data-screen="ads"] .credits-done .p-name { font-weight: 600; font-size: .9375rem; }
  [data-screen="ads"] .g-row.ad_group { margin-left: 0; border-left: 0; }
  [data-screen="ads"] .g-facts { font-size: .9375rem; }
  [data-screen="ads"] .g-lsa .ad-card-h { align-items: center; }
}
@media (max-width: 720px) {
  [data-screen="ads"] .tbl.stacks thead { display: none; }
  [data-screen="ads"] .tbl.stacks, [data-screen="ads"] .tbl.stacks tbody { display: block; }
  [data-screen="ads"] .tbl.stacks tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-bottom: 12px; padding: 16px;
      background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
  [data-screen="ads"] .tbl.stacks td { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; border: 0; background: none; width: auto; }
  [data-screen="ads"] .tbl.stacks td:first-child { grid-column: 1 / -1; }
  [data-screen="ads"] .tbl.stacks td:first-child::before { content: none; }
  [data-screen="ads"] .tbl-wrap.sorts .tbl.stacks thead { display: block; margin-bottom: 12px; }
  [data-screen="ads"] .tbl-wrap.sorts .tbl.stacks thead tr { display: flex; flex-wrap: wrap; gap: 6px; }
  [data-screen="ads"] .tbl-wrap.sorts .tbl.stacks th { padding: 0 10px; border-radius: var(--r-pill); }
  [data-screen="ads"] .tbl.stacks td[data-label]::before { content: attr(data-label); font: 600 .8125rem/1.3 var(--rt-body); color: var(--text-3); }
  [data-screen="ads"] .tbl.stacks td:empty { display: none; }
}
@media screen {
  /* The Notebook's old tests (14 numbers each) are cards at every width, 2 to 3 across: read-only history. */
  [data-screen="ads"] .tbl-wrap.old-tests { overflow: visible; border: 0; background: none; }
  [data-screen="ads"] .old-tests .tbl.stacks thead { display: none; }
  [data-screen="ads"] .old-tests .tbl.stacks { display: block; }
  [data-screen="ads"] .old-tests .tbl.stacks tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; align-items: start; }
  [data-screen="ads"] .old-tests .tbl.stacks tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0; padding: 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
  [data-screen="ads"] .old-tests .tbl.stacks td { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; border: 0; background: none; width: auto; }
  [data-screen="ads"] .old-tests .tbl.stacks td:first-child { grid-column: 1 / -1; }
  [data-screen="ads"] .old-tests .tbl.stacks td:first-child::before { content: none; }
  [data-screen="ads"] .old-tests .tbl.stacks td[data-label]::before { content: attr(data-label); font: 600 .8125rem/1.3 var(--rt-body); color: var(--text-3); }
  [data-screen="ads"] .old-tests .tbl.stacks td:empty { display: none; }
  /* The Ads sheets (forms, budgets, pause, the builder's blocks: class ads-sheet): sentence case for the Ads screens' own
     labels; the sheet itself is the shared one. */
  .sheet.ads-sheet :not(.ad-cards *) { text-transform: none !important; }
  /* Ad text check: the warning card and the lines inside an ad. */
  [data-screen="ads"] .at-card { border-radius: 22px; }
  /* The builder: the same campaign card, its header row and audience cards. */
  [data-screen="ads-builder"] .ab-head h1 { text-transform: none; letter-spacing: 0; }
  [data-screen="ads-builder"] .tri-camp { padding: 0; }
  [data-screen="ads-builder"] .tri-block .tri-name { font-size: 1.0625rem; }
  [data-screen="ads-builder"] .tri-aud.tri-own > .tri-tag { padding-inline: 0; }
  /* Its buttons side by side, the main one solid (wrapping only on a narrow screen). */
  [data-screen="ads-builder"] .ab-foot { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
}

/* ---------- Final design pass (Oct 11, 2026; Docs/Hub design standard.md, every screen) ---------- */
/* Ads: the kind of an ad (Photo, Carousel) in its small square at a readable size. */
.ad-thumb { font-size: .8125rem; }

/* ===== Design match: ads ===== */
@media screen {
  /* The screen's name is in the top bar: its hidden heading takes no room here. */
  .has-side [data-screen="ads"].ads-screen > .st { display: contents; }
  [data-screen="ads"] a.btn.small { text-decoration: none; }
  [data-screen="ads"] .pill.rec { min-height: 0; }
  /* The channel switch: compact, as wide as its words. */
  [data-screen="ads"] .seg.ch-switch { display: inline-flex; align-self: flex-start; gap: 2px; width: auto; padding: 3px; border: 0; border-radius: 12px; background: var(--surface); }
  [data-screen="ads"] .seg.ch-switch button { min-height: 36px; padding: 0 14px; border-radius: 10px; font: 600 .8125rem/1 var(--rt-body); color: var(--text-2); }
  [data-screen="ads"] .seg.ch-switch button[aria-pressed="true"] { background: var(--pick); color: var(--on-pick); }
}
@media (max-width: 899px) {
  [data-screen="ads"] .seg.ch-switch button { min-height: 44px; }
}
@media screen {
  /* The overview: the tiles across, then two columns on a computer. */
  [data-screen="ads"] .ads-ov { gap: 22px; padding: 0; border: 0; }
  [data-screen="ads"] .ov-tiles.all-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
  [data-screen="ads"] .ov-tiles .tile, [data-screen="ads"] div.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-height: 0; padding: 10px 12px;
    border: 0; border-radius: 12px; background: var(--surface); }
  [data-screen="ads"] .ov-tiles .tn { font: 800 1.75rem/1.1 var(--rt-cond); color: var(--text); white-space: nowrap; }
  [data-screen="ads"] .ov-tiles .tn.word { font-size: 1.375rem; line-height: 1.3; }
  [data-screen="ads"] .ov-tiles .tn.dot-before::before { width: 7px; height: 7px; margin-right: 6px; vertical-align: .2em; }
  [data-screen="ads"] .ov-tiles .tm { font-size: .75rem; line-height: 1.35; color: var(--text-3); }
  [data-screen="ads"] .ov-tiles .tm .pill { margin: 0 4px 2px 0; }
  .ads-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
  .ads-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
}
@media (min-width: 1000px) {
  .ads-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
@media screen {
  [data-screen="ads"] .ad-empty { padding: 12px 14px; border: 0; border-radius: 12px; background: var(--surface); }
  [data-screen="ads"] .ad-empty .empty-line { margin: 0; font: 700 .875rem/1.35 var(--rt-body); }
}
@media screen {
  /* A state of the live read (loading aside): one quiet row with the dot. */
  .ads-state { display: flex; padding: 12px 14px; border-radius: 12px; background: var(--surface); }
  .ads-state strong { font: 700 .875rem/1.35 var(--rt-body); color: var(--text); }
  .ads-state .b-why { font-size: .8125rem; color: var(--text-2); }
  /* The drafts and builds: a row each. */
  [data-screen="ads"] .ov-make .ab-entry { display: flex; flex-direction: column; gap: 6px; }
  [data-screen="ads"] .ov-make .ab-builds { display: flex; flex-direction: column; gap: 6px; }
  [data-screen="ads"] .ov-make .btn.link.ab-line:hover { background: var(--surface-2); }
  [data-screen="ads"] :is(.ads-key, .past-all, .credits-fold) > summary { justify-content: flex-start; gap: 8px; min-height: 44px; padding: 0 4px; background: none; }
  [data-screen="ads"] :is(.ads-key, .past-all, .credits-fold) > summary .s-main { flex: 0 1 auto; }
  [data-screen="ads"] .ads-key > summary .s-main > .meta { display: none; }
  [data-screen="ads"] :is(.ads-key, .past-all, .credits-fold) > summary .chev { width: 16px; height: 16px; color: var(--text-2); }
  [data-screen="ads"] :is(.ads-key, .past-all, .credits-fold) > .fold-body { padding: 4px 0 0; border: 0; }
  [data-screen="ads"] p.past-t { margin: 0; padding: 0 4px; }
  .verdict-key { display: flex; flex-direction: column; gap: 6px; margin: 0; }
  .verdict-key .vk-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
  .verdict-key dt { flex: none; margin: 0; }
  .verdict-key dd { margin: 0; font-size: .75rem; line-height: 1.45; color: var(--text-2); }
}
@media (max-width: 520px) {
  .verdict-key .vk-row { flex-direction: column; gap: 6px; }
}
@media screen {
  /* Past audiences: the chip, a row each, the daily copy's footer. */
  [data-screen="ads"] .past-body { gap: 6px; }
  [data-screen="ads"] .past-body .chip { min-height: 32px; padding: 0 12px; border: 0; background: var(--surface-2); font: 600 .75rem/1 var(--rt-body); }
}
@media (max-width: 899px) {
  [data-screen="ads"] .past-body .chip { min-height: 44px; }
}
@media screen {
  .past-lines { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
  .past-line { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--surface);
    color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .past-line:hover { background: var(--surface-2); }
  .pl-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .pl-a { font-size: .875rem; line-height: 1.3; overflow-wrap: anywhere; }
  .pl-camp { font-size: .75rem; color: var(--text-3); }
  [data-screen="ads"] .meta-bar { gap: 6px; padding: 4px 0 0; border: 0; background: none; }
  [data-screen="ads"] .meta-run { align-items: center; gap: 8px 12px; }
  /* Jobs to credit: the heading and its count, one quiet line, a row per job. */
  .cr-h { display: flex; align-items: baseline; gap: 8px; }
  .cr-n { font: 800 1.25rem/1 var(--rt-cond); color: var(--text); }
  .cr-n.dot-before::before { margin-right: 5px; vertical-align: .2em; }
  [data-screen="ads"] .ads-credits .q-list { gap: 8px; }
  [data-screen="ads"] .ads-credits .q-list > li { gap: 8px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--surface); }
  [data-screen="ads"] .ads-credits .q-list > li + li { border-top: 0; }
  .cr-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  .cr-main { flex: 1 1 180px; display: flex; flex-direction: column; min-width: 0; }
  [data-screen="ads"] .cr-main .cr-who { font: 700 .875rem/1.3 var(--rt-body); color: var(--text); }
  .cr-sub { font-size: .75rem; line-height: 1.4; color: var(--text-3); }
  [data-screen="ads"] .cr-main .cr-why { font-size: .75rem; line-height: 1.4; color: var(--text-3); }
  .cr-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
  [data-screen="ads"] .cr-pick .searchbar { gap: 8px; }
  [data-screen="ads"] .credits-done { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; background: none; }
  [data-screen="ads"] .credits-done .p-name { font: 400 .8125rem/1.4 var(--rt-body); }
  /* Tools: the search, then a tile per tool, two across. */
  [data-screen="ads"] .ads-tools .field.search { margin: 0; }
  [data-screen="ads"] .ads-tools .field.search input { min-height: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--surface); font-size: 1rem; }
}
@media (max-width: 899px) {
  [data-screen="ads"] .ads-tools .field.search input { min-height: 44px; height: 44px; }
}
@media screen {
  .tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tool-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 12px; border: 0; border-radius: 12px; background: var(--surface);
    color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .tool-tile:hover { background: var(--surface-2); }
  .tool-tile[hidden] { display: none; }
  .ic.tt-ic { width: 19px; height: 19px; color: var(--cta); }
  .tt-name { font: 700 .8125rem/1.3 var(--rt-body); }
  .tt-sub { font-size: .75rem; line-height: 1.4; color: var(--text-3); overflow-wrap: anywhere; }
  .tool-grid > .empty-line { grid-column: 1 / -1; margin: 0; font-size: .8125rem; }
  /* A page over the overview (a campaign, a tool): "← All campaigns", the header, then the page. */
  .ads-page { display: flex; flex-direction: column; max-width: 900px; }
  .ads-back { align-self: flex-start; min-height: 40px; margin: 0 0 8px; padding: 0; border: 0; background: none; color: var(--cta); font: 600 .9375rem/1 var(--rt-body); cursor: pointer; }
}
@media (max-width: 899px) {
  .ads-back { min-height: 44px; }
}
@media screen {
  .camp-head { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--pick); color: var(--on-pick); }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .camp-head .camp-eb { font: 800 .75rem/1.2 var(--rt-cond); letter-spacing: .1em; text-transform: uppercase !important; color: var(--on-pick); }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .camp-head .camp-name { margin: 0; font: 800 1.875rem/.95 var(--rt-cond); letter-spacing: 0; text-transform: uppercase !important; color: var(--on-pick); overflow-wrap: anywhere; }
  .camp-line { font-size: .875rem; line-height: 1.4; color: var(--on-pick); }
  .camp-top { display: flex; align-items: flex-start; gap: 12px; }
  .camp-words { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .camp-acts { flex: none; display: flex; gap: 6px; }
  /* The header's Edit (ads-change.js): an outline on the --pick colour; on a past campaign's quiet header, as any button. */
  [data-screen="ads"] .camp-head:not(.quiet) .camp-acts .btn.small { background: none; box-shadow: inset 0 0 0 1px var(--on-pick); color: var(--on-pick); }
  [data-screen="ads"] .camp-head:not(.quiet) .camp-acts .btn.small:hover { background: none; box-shadow: inset 0 0 0 2px var(--on-pick); }
  .camp-after { margin-top: 10px; }
  [data-screen="ads"] .camp-head.quiet :is(.camp-eb, .camp-line) { color: var(--text-3); }
  [data-screen="ads"] .camp-head.quiet .camp-name { color: var(--text); }
  .camp-budget { margin-top: 8px; }
  .camp-budget .me-budget { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  [data-screen="ads"] .camp-budget .me-budget > .sz { flex: 1 1 100%; margin: 0; font-size: .75rem; color: var(--text-3); }
  .camp-budget .me-budget .acts { gap: 6px; }
  /* The audiences (Brandon, Oct 15, 2026: slim cards + More): a card each, open at first; its top (name, pills, how many
     ads, the last 7 days), quiet lines under it, its buttons with More, then its ads inside the card. */
  .camp-auds { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
  .aud-card { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; background: var(--surface); }
  [data-screen="ads"] .camp-auds > .aud-card { border: 0; }
  .aud-card > .node { display: flex; flex-direction: column; border: 0; background: none; }
  .node-head { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px; color: var(--text); cursor: pointer; }
  .node-r1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; width: 100%; }
  [data-screen="ads"] .node-head .node-name { font: 700 .9375rem/1.3 var(--rt-body); color: var(--text); overflow-wrap: anywhere; }
  .node-r1 .ad-pills { justify-content: flex-start; gap: 6px; }
  .node-n { margin-left: auto; font-size: .75rem; color: var(--text-3); }
  .node:not([open]) > .node-head .chev { transform: rotate(-90deg); }
  .node-line .num, .aud-num .num { white-space: nowrap; }
  .node-cpl { font-weight: 700; white-space: nowrap; }
  .node-cpl.dot-before::before { margin-right: 5px; }
  .node-detail { display: flex; flex-direction: column; gap: 4px; padding: 0 14px 4px; }
  [data-screen="ads"] .node-detail > p { margin: 0; font-size: .75rem; line-height: 1.45; color: var(--text-3); }
  [data-screen="ads"] .node-detail .aud-num .lbl { color: var(--text-3); }
  [data-screen="ads"] .node-detail .test-note { font-size: .8125rem; color: var(--text-2); }
  [data-screen="ads"] .node-detail .nudge { gap: 8px; margin-top: 6px; padding: 0; background: none; border-radius: 0; }
  [data-screen="ads"] .node-detail .nudge .nudge-t { margin: 0; font-size: .8125rem; color: var(--text-2); }
  [data-screen="ads"] .node-detail .nudge .acts, [data-screen="ads"] .node-acts .acts { gap: 6px; }
  .node-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 14px 12px; }
  .node-acts > .me-acts { display: contents; }
  [data-screen="ads"] .node-acts .me-acts .pill { align-self: center; }
  /* More: a small button; open, it takes its own row under the main buttons. */
  .aud-more > summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; }
  .aud-more > summary::-webkit-details-marker { display: none; }
  .aud-more > summary .chev { width: 14px; height: 14px; color: var(--text-3); transition: transform .15s var(--ease); }
  .aud-more:not([open]) > summary .chev { transform: rotate(-90deg); }
  .aud-more[open] { flex-basis: 100%; }
  .aud-more-body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
  [data-screen="ads"] .aud-more-body > .aud-since { flex-basis: 100%; margin: 0 0 2px; font-size: .75rem; color: var(--text-3); }
  [data-screen="ads"] .aud-more-body .aud-since .lbl { font: 400 .75rem/1.4 var(--rt-body); color: var(--text-3); }
  [data-screen="ads"] .aud-more-body :is(.btn.small, a.btn.small) { background: var(--surface); }
  [data-screen="ads"] .aud-more-body :is(.btn.small, a.btn.small):hover { background: var(--border); }
  .node-test { margin: 0 14px 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
  [data-screen="ads"] .node-test .test-block { padding: 0; background: none; }
  [data-screen="ads"] .node-test :is(.btn.small:not(.primary), a.btn.small):hover { background: var(--border); }
  /* An ad inside its audience's card: its kind in a striped square, its name, its numbers, its headline (its words under
     Show words), its status and Pause. The builder draws its ads with the same row. */
  .node-ads { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0 14px 14px; list-style: none; }
  .ad-node { padding: 0; border: 0; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .ad-node .tri-ad.ad-row { display: flex; flex-direction: row; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0;
    border-radius: 12px; background: var(--rt-stripe); color: var(--text); font: inherit; text-align: left; opacity: 1; }
  [data-screen="ads"] .ad-node .tri-ad.ad-row.tri-off .ad-main { opacity: .8; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .ad-row .ad-thumb { flex: none; align-self: flex-start; display: grid; place-items: center; width: 40px; min-width: 40px; height: 40px;
    padding: 0; border-radius: 8px; background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--surface) 6px 12px); color: var(--text-3);
    font: 600 .75rem/1 ui-monospace, monospace; }
  .ad-main { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .ad-name { min-width: 0; font: 700 .875rem/1.3 var(--rt-body); overflow-wrap: anywhere; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .ad-main .tri-ln .tri-lbl { color: var(--text-3); font-weight: 400; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .ad-main .tri-ln .tri-val { color: var(--text-2); }
  [data-screen="ads"] .ad-main .ad-body[hidden] { display: none; }
  [data-screen="ads"] .ad-main .ad-warn .ic { display: none; }
  [data-screen="ads"] .ad-main .ad-warn::before { content: ""; flex: none; width: 7px; height: 7px; margin: .4em 6px 0 0; border-radius: 50%; background: var(--alert); }
  .ad-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .ad-st { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); font: 700 .75rem/1.2 var(--rt-body); }
  .ad-st.at-pill { background: var(--rt-attn-bg); color: var(--text); }
  .ad-st.dot-before::before { margin-right: 5px; }
  [data-screen="ads"] .ad-side .me-acts { margin: 0; }
  .ad-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
  /* Google-style audience cards (Brandon, Oct 27, 2026: "Replace it"): always open; the big cost with its verdict beside
     it, the Today / Last 7 days / Overall box, then More and the ads as toggles with Pause audience at the side. An open
     toggle drops under the buttons on its own row. */
  .aud-box { gap: 12px; padding: 14px; }
  .aud-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
  [data-screen="ads"] .aud-head .node-name { font: 700 .9375rem/1.3 var(--rt-body); color: var(--text); overflow-wrap: anywhere; }
  .aud-head .ad-pills { justify-content: flex-start; }
  .aud-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .aud-box > .node-detail { padding: 0; }
  .aud-box .node-test { margin: 0; }
  .aud-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .aud-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
  .aud-btns > .me-acts { display: contents; }
  .aud-acts > details[open] { order: 1; flex-basis: 100%; }
  .aud-fold > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; list-style: none; cursor: pointer;
    font: 600 .875rem/1.3 var(--rt-body); color: var(--link); }
  .aud-fold > summary::-webkit-details-marker { display: none; }
  .aud-fold > summary .chev { width: 14px; height: 14px; transition: transform .15s var(--ease); }
  .aud-fold:not([open]) > summary .chev { transform: rotate(-90deg); }
  .aud-box .node-ads { padding: 6px 0 0; }
  [data-screen="ads"] .aud-more-body > .aud-fact { flex-basis: 100%; margin: 0; font-size: .8125rem; color: var(--text-2); }
  .ad-numbers { padding: 0 10px 4px; }
  .ad-stats.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .aud-box { padding: 12px; }
  .node-head, .node-detail, .node-acts { padding-left: 12px; padding-right: 12px; }
  .node-ads { padding: 0 12px 12px; }
  .node-test { margin: 0 12px 12px; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .ad-node .tri-ad.ad-row { flex-wrap: wrap; }
  [data-screen="ads"] .ad-side { flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; padding-left: 52px; }
}
@media screen {
  /* A tool's page: its inner drop-downs as rows on the card colour, no borders. */
  .tool-page { gap: 0; }
  .tool-head { margin-bottom: 12px; }
  .tool-q { margin: 0 0 8px; font-size: .75rem; color: var(--text-3); }
  .tool-body { gap: 12px; }
  [data-screen="ads"] .tool-page .ads-fold { border: 0; border-radius: 14px; background: var(--surface); }
  [data-screen="ads"] .tool-page .ads-fold > summary { min-height: 52px; padding: 10px 14px; }
  [data-screen="ads"] .tool-page .ads-fold > summary .s-main > strong { font: 700 .9375rem/1.3 var(--rt-body); color: var(--text); }
  [data-screen="ads"] .tool-page .ads-fold > summary .s-main > .meta { font-size: .75rem; color: var(--text-3); }
  [data-screen="ads"] .tool-page .ads-fold > .fold-body { padding: 4px 14px 14px; border-top: 0; }
  [data-screen="ads"] .tool-page .ads-fold .ads-fold { background: var(--surface-2); }
  [data-screen="ads"] .tool-page .tab-intro { margin: 0; font-size: .75rem; color: var(--text-3); }
  [data-screen="ads"] .ads-col .tri-list { display: flex; flex-direction: column; gap: 8px; }
  [data-screen="ads"] .ads-col .tri-col { padding: 12px 14px; border: 0; border-radius: 14px; background: var(--surface-2); }
  [data-screen="ads"] .ads-col .tri-col:has(.live-row.attention) { border: 0; }
  [data-screen="ads"] .ads-col .tri-camp .tri-name, [data-screen="ads"] .ads-col .ad-card-h .p-name { font: 700 1rem/1.3 var(--rt-body); }
  [data-screen="ads"] .ads-col .ad-big .big-cpl { font: 800 1.75rem/1.1 var(--rt-cond); }
  [data-screen="ads"] .ads-col .ad-stats { padding: 10px; border-radius: 12px; background: var(--rt-stripe); }
  [data-screen="ads"] .ads-col .g-row.attention { border: 0; }
  [data-screen="ads"] .ads-col .term-list > li { border: 0; border-radius: 12px; background: var(--surface); }
  [data-screen="ads"] .ads-tools .field.search .ic { left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); }
  [data-screen="ads"] .ads-tools .field.search input { padding-left: 38px !important; }
  [data-screen="ads"] .ad-main .tri-ln .tri-lbl, [data-screen="ads"] .aud-card .aud-num .lbl { font: 400 .75rem/1.4 var(--rt-body); color: var(--text-3); }
  [data-screen="ads"] .ads-key + .ov-past { margin-top: -18px; }
  [data-screen="ads"] li.aud-card, [data-screen="ads"] li.ad-node { border-bottom: 0; }
  [data-screen="ads"] .aud-more-body .rec-none { font-size: .75rem; }
  /* Larger text: the fixed 11-16 px sizes above scale too. */
  html.big-text [data-screen="ads"] :is(.cc-l, .tt-sub, .pl-camp, .cr-why, .aud-num, .ad-nums) { font-size: .8125rem; }
}

/* ---------- the builder: "← Ads", one line about the draft, then the campaign as a campaign's page draws it (ads-builder.js;
   Brandon, Oct 15, 2026: "one shared layout"): the header, the audiences as cards, each audience's ads inside its card.
   A draft's blocks are buttons that say Edit. ---------- */
@media screen {
  [data-screen="ads-builder"] .ab-head { gap: 6px; background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
  [data-screen="ads-builder"] .ab-head .ab-back { min-height: 44px; padding: 0; border: 0; background: none; color: var(--cta); font: 600 .9375rem/1 var(--rt-body); }
  [data-screen="ads-builder"] .ab-head .ab-back .ic { transform: rotate(90deg); width: 16px; height: 16px; }
  [data-screen="ads-builder"] .ab-head h1 { font: 800 1.5rem/1 var(--rt-cond); letter-spacing: .02em; text-transform: uppercase !important; color: var(--text); }
  [data-screen="ads-builder"] .ab-top { gap: 6px; }
  [data-screen="ads-builder"] .ab-acct { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
  [data-screen="ads-builder"] .ab-view { display: flex; flex-direction: column; }
  [data-screen="ads-builder"] .camp-head.ab-camp { padding: 0; }
  [data-screen="ads-builder"] .ab-view .tri-tap:not(.ad-row) { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 16px; border: 0;
    border-radius: 16px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
  [data-screen="ads-builder"] .ab-view .tri-tap.tri-static:not(.ad-row) { flex-direction: column; gap: 2px; cursor: default; }
  [data-screen="ads-builder"] .ab-words { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
  [data-screen="ads-builder"] .ab-view .ab-camp :is(.tri-ln, .tri-ln .tri-lbl, .ab-made, .ab-needs, .ab-refused) { color: var(--on-pick); }
  [data-screen="ads-builder"] .ab-view .tri-ln .tri-lbl { font-size: .8125rem; color: var(--text-3); }
  [data-screen="ads-builder"] .ab-view .tri-clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  [data-screen="ads-builder"] .ab-view .tri-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  [data-screen="ads-builder"] .ab-aud .tri-name { font: 700 .9375rem/1.3 var(--rt-body); color: var(--text); }
  [data-screen="ads-builder"] .ab-view .ad-main .tri-name { font: 700 .875rem/1.3 var(--rt-body); }
  [data-screen="ads-builder"] .ab-view .ab-needs { font-weight: 700; }
  [data-screen="ads-builder"] .ab-edit { flex: none; padding: 6px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text); font: 600 .8125rem/1.2 var(--rt-body); }
  [data-screen="ads-builder"] .ab-view .tri-tap:hover .ab-edit { background: var(--border); }
  [data-screen="ads-builder"] .ab-view .ad-row .ab-edit { background: var(--surface); }
  [data-screen="ads-builder"] .ab-camp .ab-edit, [data-screen="ads-builder"] .ab-camp .tri-tap:hover .ab-edit { background: none; box-shadow: inset 0 0 0 1px var(--on-pick); color: var(--on-pick); }
  [data-screen="ads-builder"] .ab-view .ad-side { align-self: flex-start; }
  [data-screen="ads-builder"] .ab-view .tri-add { min-height: 38px; width: auto; padding: 0 12px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--cta);
    font: 600 .8125rem/1.2 var(--rt-body); }
  [data-screen="ads-builder"] .ab-view .ab-add-aud .tri-add { width: 100%; min-height: 44px; }
  [data-screen="ads-builder"] :is(.ab-refused, .ab-problem) { color: var(--text); }
  [data-screen="ads-builder"] :is(.ab-refused, .ab-problem)::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--alert); vertical-align: middle; }
  [data-screen="ads-builder"] .ab-foot .btn { border-radius: 10px; }
}
@media (max-width: 520px) {
  [data-screen="ads-builder"] .ab-view .tri-tap:not(.ad-row) { padding: 12px; }
}
@media screen {
  /* The audience sheet in short parts (Who, Where, Interests, Budget), each with its heading. */
  .sheet.ab-sheet .ab-part { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
  .sheet.ab-sheet .ab-part > .field { margin: 0; }
  .sheet.ab-sheet .ab-part-h { margin: 0; font: 800 1.0625rem/1.3 var(--rt-body); color: var(--text); }
}
/* ---------- end of the rules moved from styles.css ---------- */

/* ---------- the exact replica (Oct 23, 2026): the design's MarketingAdsPage ----------
   The page, header, hero, row of numbers, card, heading and campaign rows are the shared design pieces (.ds-* in
   styles.css); these rules add what the Hub has and the design doesn't. */
.ads-screen .ads-ov { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.ads-screen .ads-head { display: flex; flex-direction: column; gap: 22px; }
/* The Google and LSA views' head (ads-google.js costHero and its tiles): the big cost per lead, blue when it is on target,
   and the four small tiles under it, two by two on a phone and four across on a computer (above the generic rules). */
[data-screen="ads"] .ads-hero .hero-v { font-size: 3.25rem; }
[data-screen="ads"] .ads-hero.on .hero-n { color: var(--cta); }
@media (min-width: 900px) { [data-screen="ads"] .ads-hero .hero-v { font-size: 4rem; } }
body.big-text [data-screen="ads"] .ads-hero .hero-v { font-size: 3.5rem; }
[data-screen="ads"] .ov-tiles.ov-tiles4, [data-screen="ads"] .ads-head > .tiles.ov-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { [data-screen="ads"] .ov-tiles.ov-tiles4, [data-screen="ads"] .ads-head > .tiles.ov-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
[data-screen="ads"] .ov-tiles4 .tile { padding: 12px 14px; border-radius: 16px; }
[data-screen="ads"] .ov-tiles4 .tn { font-size: 1.625rem; }
/* The hero's label in the design's capitals (Ads' old rule in styles.css keeps capitals off everywhere else). */
.ads-screen.ds-page .ads-hero p.ds-eyebrow { text-transform: uppercase !important; }
.ads-screen .ads-metrics .ads-cpl.on strong { color: var(--cta); }
.ads-screen .ads-metrics .ads-cpl.over strong::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--rt-bad); vertical-align: .25em; }
/* The Campaigns card: the design's rows, as buttons; the states of the live read and Meta's footer inside it. */
.ads-screen .ov-run { display: flex; flex-direction: column; gap: 0; }
.ads-screen .ov-run > .ds-section-heading { flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ads-screen .ov-run > .ads-state, .ads-screen .ov-run > .ad-empty, .ads-screen .ov-run > .meta { margin-bottom: 12px; }
.camp-list { display: flex; flex-direction: column; }
.camp-card { width: 100%; padding: 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.camp-card:hover .cc-name, .camp-card:focus-visible .cc-name { color: var(--link); }
.camp-card .cc-w { min-width: 0; }
.camp-card .cc-name { overflow-wrap: anywhere; }
.camp-card .cc-v.ok { color: var(--cta); }
.camp-card .cc-v.dot-before::before { margin-right: 4px; }
.camp-card .cc-spend { flex: none; }
.ads-screen .live-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--ds-line); }
@media (max-width: 520px) {
  .camp-card { flex-wrap: wrap; padding: 10px 0; }
  .camp-card .cc-w { flex-basis: calc(100% - 60px); }
  .camp-card .cc-spend { margin-left: 52px; }
  .camp-card .ds-status { margin-left: auto; }
}

/* The goals line of the Google, LSA and All views: one quiet line and the icon. */
[data-screen="ads"] .ads-goals { display: flex; align-items: center; gap: 4px; max-width: none; margin: 0; font-size: .8125rem; line-height: 1.4; color: var(--text-3); }
[data-screen="ads"] .ads-goals span { flex: 1; min-width: 0; }

/* The big title and its "?" sit on one row (the older rule made the title row vanish into its parent, which dropped the "?" under it). */
.has-side [data-screen="ads"].ads-screen > .st, [data-screen="ads"].ads-screen > .st { display: flex; }
[data-screen="ads"] > .under { margin-top: -10px; }

/* Icon buttons on the campaign header (its colour) and in an audience's row of buttons. */
[data-screen="ads"] .camp-head:not(.quiet) .camp-acts .ib { border-color: var(--on-pick); color: var(--on-pick); background: none; }
[data-screen="ads"] .camp-head:not(.quiet) .camp-acts .ib:hover { background: none; box-shadow: inset 0 0 0 1px var(--on-pick); }
[data-screen="ads"] .node-acts .ib, [data-screen="ads"] .ad-btns .ib { border-color: transparent; background: var(--surface-2); }
[data-screen="ads"] .ib[aria-busy="true"] { opacity: .5; }

/* An icon's name in the hero and the campaign's header opens below the button (above it would run under the card's top edge). */
[data-screen="ads"] .hero-a .ib[data-tip]::after, [data-screen="ads"] .camp-acts .ib[data-tip]::after { bottom: auto; top: calc(100% + 8px); }

/* Build new ads: the draft's state is one quiet line; the Page, phone and website open with a tap; Edit is a drawing. */
[data-screen="ads-builder"] .ab-top { gap: 2px; }
[data-screen="ads-builder"] .ab-state-line { margin: 0; font-size: .8125rem; color: var(--text-3); }
[data-screen="ads-builder"] .ab-acct-more > .more-s { min-height: 44px; padding: 0; }
[data-screen="ads-builder"] .ab-acct-more .more-b { padding: 0 0 8px; }
[data-screen="ads-builder"] .ab-edit { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; }
[data-screen="ads-builder"] .ab-edit .ic { width: 18px; height: 18px; }
[data-screen="ads"] .ads-goals { margin-top: -6px; }

/* Tools sit behind one quiet row; the fold's row is the heading, so the section's own heading is for screen readers only. */
.ads-tools-more > .more-b { padding-inline: 0; }
.ads-tools-more .ads-tools > .sub-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Switching between Marketing's tabs (ads/mk-shape.js switchIn): one page, so the new tab fades in quickly instead of rising.
   Reduce motion gets the same quick fade (css/motion.css). */
.mk-switch.enter-rise { animation: cr-fade var(--motion-fast) ease-out backwards; }

/* ---------- the navy redesign, step 5: Marketing (Oct 23, 2026; docs/navy-redesign.md) ----------
   Brandon's Figma Make design draws Ads, Suggestions, SEO and Chat under one round pill of tabs (the design's
   .subnav: the chosen one solid blue), titles in sentence case, the big number in a plain card under a quiet label,
   and the day's numbers as one strip split by thin lines. Only tokens; Light takes the same shapes. These rules sit
   here because ads.css is Marketing's own file and every screen loads it. */
/* The tab strip itself: styles.css (.ds-subnav.mk-tabs), as every Marketing tab draws it and only Ads loads this file. */
/* The big card: a plain card with the design's quiet label over a big tight number. The tab strip is the page's first child
   (app.js puts it inside the .ds-page), so these reach the hero through its siblings. (The titles need nothing here:
   styles.css's .st h1[data-lt] is already tight and never in capitals.) */
.mk-tabs ~ * .hero-plain { gap: 8px; padding: 24px; background: linear-gradient(145deg, var(--surface), var(--bg)); }
.mk-tabs ~ * .hero-plain .hero-k { font: 600 .875rem/1.3 var(--rt-body); letter-spacing: 0; color: var(--text-3); }
.mk-tabs ~ * .hero-plain .hero-n { letter-spacing: -.04em; }
/* The channel switch: the design's round pills. */
[data-screen="ads"] .seg.ch-switch { border-radius: var(--r-pill); }
[data-screen="ads"] .seg.ch-switch button { border-radius: var(--r-pill); }
