/* Parcel — Ads view (owned by the ads view).
   Page content is scoped under .view-ads; the budget sheet lives in the overlay layer under .ads-sheet.
   Pieces used in both (thumbnails, the feed-style preview) use :is(.view-ads, .ads-sheet). */

/* ================================================================ shared */
:is(.view-ads, .ads-sheet) :is(.ad-thumb, .ad-pthumb) {
  position: relative; display: block; flex: none; overflow: hidden;
  background: var(--bg-3);
}
:is(.view-ads, .ads-sheet) :is(.ad-thumb, .ad-pthumb) svg { width: 100%; height: 100%; display: block; }
/* A whisper of an edge so light art never melts into a white card. */
:is(.view-ads, .ads-sheet) :is(.ad-thumb, .ad-pthumb)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08);
}
.view-ads .ads-notfound { padding-top: var(--sp-8); }

/* ================================================================ feed-style ad preview */
:is(.view-ads, .ads-sheet) .feed {
  background: var(--bg-2); color: var(--label);
  font-size: 14px; line-height: 19px; letter-spacing: -0.08px;
  overflow: hidden;
}
.feed-head { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 12px; }
.feed-avatar {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--teal), var(--blue));
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .2px;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08);
}
.feed-avatar.has-logo { background: none; overflow: hidden; }
.feed-avatar.has-logo .brand-logo { display: block; width: 32px; height: 32px; }
.feed-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.feed-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-sponsored { font-size: 12px; line-height: 15px; color: var(--label-2); }
.feed-dots { flex: none; display: grid; place-items: center; width: 32px; height: 32px; color: var(--label); }
.feed-media { position: relative; aspect-ratio: 1; background: var(--bg-3); }
.feed-media svg { width: 100%; height: 100%; display: block; }
.feed-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 42px; padding: 0 12px 0 12px;
  background: var(--fill-4);
  box-shadow: inset 0 calc(-1 * var(--hairline)) 0 var(--sep);
  font-weight: 600;
}
.feed-cta svg { color: var(--label-2); }
.feed-actions { display: flex; gap: 16px; padding: 10px 12px 0; color: var(--label); }
.feed-text { position: relative; padding: 8px 12px 12px; }
.feed-primary {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  white-space: pre-line; overflow-wrap: anywhere;
}
.feed-primary-name { font-weight: 600; }
.feed-text.is-expanded .feed-primary { display: block; -webkit-line-clamp: unset; }
.feed-morebtn {
  display: none;
  position: absolute; right: 12px; bottom: 12px;
  padding-left: 26px;
  font-size: 14px; line-height: 19px; color: var(--label-2);
  background: linear-gradient(to right, transparent, var(--bg-2) 22px);
}
.feed-morebtn::before { content: ""; position: absolute; inset: -13px -12px -13px 0; }
.feed-morebtn-ell { color: var(--label); }
.feed-text.is-clamped .feed-morebtn { display: block; }
.feed-morebtn:active { opacity: .5; }

/* ================================================================ overview */
/* The top row follows the width it actually has (container query), not the window: with the sidebar at
   ≥ 1024px the column can be narrower than a tablet's. Side-by-side only from 900px of content, and the
   Make card never gets narrower than its button. */
.view-ads .ads-top { container: adstop / inline-size; }
.view-ads .ads-top-grid { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); }
@container adstop (min-width: 900px) {
  .view-ads .ads-top-grid { grid-template-columns: minmax(0, 2.15fr) minmax(280px, 1fr); gap: 20px; }
}

.view-ads .ads-range { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); white-space: nowrap; }
.view-ads .ads-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.view-ads .ads-kpi { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.view-ads .ads-kpi-label {
  display: flex; align-items: center; gap: 2px; min-height: 18px;
  font-size: 13px; line-height: 18px; font-weight: var(--w-semibold); color: var(--label-2);
  white-space: nowrap;
}
.view-ads .ads-kpi-note { font-weight: var(--w-regular); }
.view-ads .ads-kpi-info { margin: -10px -10px -10px -4px; }
.view-ads .ads-kpi-value {
  margin-top: 2px;
  font-family: var(--font-rounded); font-size: 28px; line-height: 34px; font-weight: var(--w-bold); letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.view-ads .ads-kpi-sub { font-size: 13px; line-height: 18px; color: var(--label-2); }
.view-ads .ads-kpi-sub[class*="tone-"] { color: var(--tone-text); }
.view-ads .ads-kpi-phrase { white-space: nowrap; }
@media (max-width: 380px) { .view-ads .ads-kpi-value { font-size: 24px; line-height: 30px; } .view-ads .ads-kpi-note { display: none; } }
/* Wider: a 2 × 2 grid with hairlines between cells (four across never gets enough room for the numbers). */
@container adstop (min-width: 560px) {
  .view-ads .ads-kpis { gap: 0; }
  .view-ads .ads-kpi { padding: 14px 20px 14px 0; }
  .view-ads .ads-kpi:nth-child(even) { padding: 14px 0 14px 20px; box-shadow: inset var(--hairline) 0 0 var(--sep); }
  .view-ads .ads-kpi:nth-child(-n+2) { padding-top: 0; }
  .view-ads .ads-kpi:nth-child(n+3) { padding-bottom: 0; border-top: var(--hairline) solid var(--sep); }
}

/* Make new ads: a full-width button on phone, a banner row on tablets, a quiet card beside the summary on desktop. */
.view-ads .ads-make { display: flex; flex-direction: column; gap: var(--sp-4); }
.view-ads .ads-make-icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 11px; color: #fff;
  background: linear-gradient(140deg, var(--indigo), var(--blue));
}
.view-ads .ads-make-title { font-size: var(--fs-headline); line-height: var(--lh-headline); font-weight: var(--w-semibold); letter-spacing: -0.2px; text-wrap: balance; }
.view-ads .ads-make-sub { margin-top: 4px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); text-wrap: pretty; }
@container adstop (max-width: 559.98px) {
  .view-ads .ads-make { background: none; padding: 0; }
  .view-ads .ads-make-text { display: none; }
}
@container adstop (min-width: 560px) and (max-width: 899.98px) {
  .view-ads .ads-make { flex-direction: row; align-items: center; justify-content: space-between; }
  .view-ads .ads-make-text { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; min-width: 0; }
  .view-ads .ads-make-icon { grid-row: span 2; margin: 0; }
  .view-ads .ads-make-btn { width: auto; flex: none; }
}
@container adstop (min-width: 900px) { .view-ads .ads-make { justify-content: space-between; } }

/* Campaigns */
.view-ads .ads-capline {
  display: flex; align-items: flex-start; gap: 6px;
  margin: -4px 4px 14px;
  font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2);
}
.view-ads .ads-capline svg { flex: none; margin-top: 2px; color: var(--label-3); }
.view-ads .ads-capline.is-over svg { color: var(--orange); }
.view-ads .ads-camp-list { display: flex; flex-direction: column; gap: var(--sp-4); container: adscamps / inline-size; }
@media (min-width: 768px) { .view-ads .ads-camp-list { gap: 20px; } }
.view-ads .ads-camp { overflow: hidden; }
/* Phone: title gets the full width; status and the budget button share the second line. */
.view-ads .ads-camp-head {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas: "art title title" "art sub budget";
  align-items: center; column-gap: 12px;
  padding: 14px 14px 12px 16px;
}
.view-ads .ads-camp-art { grid-area: art; align-self: center; width: 44px; height: 44px; border-radius: 11px; }
.view-ads .ads-camp-text { display: contents; }
.view-ads .ads-camp-title { grid-area: title; }
.view-ads .ads-camp-sub { grid-area: sub; }
.view-ads .ads-budget { grid-area: budget; }
@media (min-width: 600px) {
  .view-ads .ads-camp-head { grid-template-areas: "art title budget" "art sub budget"; }
}
.view-ads .ads-camp-title {
  min-width: 0;
  font-size: var(--fs-headline); line-height: var(--lh-headline); font-weight: var(--w-semibold); letter-spacing: -0.2px;
}
/* The link carries a 44pt hit slop (.hit-slop), so the 2-line clamp lives on the text inside it. */
.view-ads .ads-camp-title a { display: inline-block; max-width: 100%; color: inherit; vertical-align: top; }
.view-ads .ads-camp-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.view-ads .ads-camp-roas { display: none; }
@media (min-width: 600px) { .view-ads .ads-camp-roas { display: block; } }
.view-ads .ads-camp-title a:active { opacity: .5; }
@media (hover: hover) and (pointer: fine) { .view-ads .ads-camp-title a:hover { color: var(--accent-text); } }
.view-ads .ads-camp-sub {
  display: flex; align-items: center; gap: 6px; margin-top: 1px; min-width: 0;
  font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2);
  overflow: hidden; white-space: nowrap;
}
/* The status is short enough for a 320pt phone; the ellipsis only guards very large text sizes. */
.view-ads .ads-camp-status { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Phones: a longer status ("Test stopped · below break-even") takes a second line beside the budget button, never cut. */
@media (max-width: 599.98px) {
  .view-ads .ads-camp-sub { white-space: normal; align-items: flex-start; }
  .view-ads .ads-camp-sub > :is(.ads-dot, .ads-camp-tag) { margin-top: 5px; }
  .view-ads .ads-camp-sub > .ads-camp-tag { margin-top: 0; }
  .view-ads .ads-camp-status { overflow: visible; text-wrap: pretty; }
}
/* Its text starts with " · ", so it cancels the flex gap: the dot gets one space on each side. */
.view-ads .ads-camp-roas { flex: 0 1000 auto; min-width: 0; margin-left: -6px; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.view-ads .ads-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gray); }
.view-ads .ads-dot.is-on { background: var(--green); }
.view-ads .ads-budget {
  position: relative; z-index: 2; flex: none;   /* above the title link's hit slop */
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 9px 0 12px;
  border-radius: 15px; background: var(--fill-3);
  font-size: 15px; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: opacity var(--dur-press) linear, transform var(--dur-press) var(--ease);
}
.view-ads .ads-budget::before { content: ""; position: absolute; inset: -7px -4px; }
.view-ads .ads-budget svg { color: var(--label-2); }
.view-ads button.ads-budget:active { transform: scale(.96); opacity: .7; }
.view-ads button.ads-budget[aria-busy="true"] { opacity: .6; }
@media (hover: hover) and (pointer: fine) { .view-ads button.ads-budget:hover { background: var(--fill-hover); } }
.view-ads .ads-budget.is-static { background: none; padding: 0 2px; font-weight: var(--w-medium); color: var(--label-2); }
.view-ads .ads-camp.is-paused .ads-camp-art { opacity: .6; }

/* Group caption ("Running · last 7 days", "Paused · since launch"): the column header row on wide lists. */
.view-ads .ads-cols {
  display: block;
  padding: 10px 16px 4px;
  box-shadow: inset 0 var(--hairline) 0 var(--sep);
  font-size: 12px; line-height: 16px; font-weight: var(--w-semibold); color: var(--label-2);
}
.view-ads .ads-cols span:not(:first-child) { display: none; }
.view-ads .ads-rows + .ads-cols { margin-top: 2px; }
.view-ads .ads-row {
  --thumb: 52px;
  position: relative;
  display: grid; grid-template-columns: var(--thumb) minmax(0, 1fr) auto 10px; align-items: center; column-gap: 12px;
  min-height: 74px; padding: 11px 14px 11px 16px;
  color: inherit;
  transition: background-color var(--dur-press) linear;
}
.view-ads .ads-row::before {
  content: ""; position: absolute; top: 0; right: 0; left: calc(16px + var(--thumb) + 12px);
  height: var(--hairline); background: var(--sep);
}
.view-ads .ads-row-item:first-child .ads-row::before { display: none; }   /* the group caption above has the hairline */
.view-ads .ads-row:active { background: var(--row-pressed); }
@media (hover: hover) and (pointer: fine) { .view-ads .ads-row:hover { background: var(--fill-4); } .view-ads .ads-row:active { background: var(--row-pressed); } }
.view-ads .ads-row:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.view-ads .ads-rows:last-child .ads-row-item:last-child .ads-row { border-radius: 0 0 var(--r-card) var(--r-card); }
.view-ads .ads-row-thumb { width: var(--thumb); height: var(--thumb); border-radius: 10px; }
.view-ads .ads-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.view-ads .ads-row-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: var(--fs-callout); line-height: var(--lh-callout); font-weight: var(--w-semibold); letter-spacing: -0.15px;
  overflow-wrap: anywhere;
}
.view-ads .ads-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.view-ads .ads-row-meta .pill { flex: none; }
.view-ads .ads-row-angle {
  display: none;
  font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.view-ads .ads-row-nums { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; white-space: nowrap; }
.view-ads .ads-row-roas { font-size: var(--fs-callout); line-height: 20px; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
/* ROAS takes the verdict's colour (display.tone); "Learning" and "—" stay secondary grey. */
.view-ads :is(.ads-row-roas, .ads-c-roas)[class*="tone-"] { color: var(--tone-text); }
.view-ads :is(.ads-row-roas, .ads-c-roas).tone-gray { color: var(--label-2); font-weight: var(--w-medium); }
.view-ads .ads-row-unit { font-size: 12px; font-weight: var(--w-medium); color: var(--label-2); }
.view-ads .ads-row-spend { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); font-variant-numeric: tabular-nums; }
.view-ads .ads-c { display: none; }
/* disclosureChevron (16pt) overhangs its narrow track to the left; -1px puts the glyph where list rows have it. */
.view-ads .ads-row-chev { justify-self: end; margin-right: -1px; }
.view-ads .ads-row-item.is-off .ads-row-thumb { opacity: .5; filter: saturate(.5); }
.view-ads .ads-row-item.is-off .ads-row-title { color: var(--label-2); font-weight: var(--w-medium); }
@media (max-width: 360px) {
  .view-ads .ads-row { --thumb: 44px; column-gap: 10px; padding-left: 12px; }
  .view-ads .ads-row::before { left: calc(12px + var(--thumb) + 10px); }
  /* Header and group captions line up with the rows' 12pt edge. */
  .view-ads .ads-camp-head { column-gap: 10px; padding-left: 12px; padding-right: 12px; }
  .view-ads .ads-cols { padding-left: 12px; }
}
@media (max-width: 349.98px) {
  .view-ads .ads-camp-of { display: none; }
}
/* Narrowest phones: the name gets the whole width, then the numbers on one line, then the verdict pill, so neither the
   name nor a long pill ("Stopped by autopilot") is squeezed beside the spend. */
@media (max-width: 349.98px) {
  .view-ads .ads-row {
    grid-template-columns: var(--thumb) minmax(0, 1fr) 10px;
    grid-template-areas: "thumb title chev" "thumb nums chev" "thumb meta chev";
    row-gap: 4px;
  }
  .view-ads .ads-row-nums { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; justify-self: start; text-align: left; }
  .view-ads .ads-row-thumb { grid-area: thumb; }
  .view-ads .ads-row-main { display: contents; }
  .view-ads .ads-row-title { grid-area: title; }
  .view-ads .ads-row-meta { grid-area: meta; }
  .view-ads .ads-row-nums { grid-area: nums; }
  .view-ads .ads-row-chev { grid-area: chev; }
}

/* Wide lists: a quiet macOS-style table with aligned columns. Driven by the list's own width (container
   query), so names never get squeezed by the sidebar: from 720px (Sales joins at 900px) the name keeps ≥ 240px. */
@container adscamps (min-width: 720px) {
  .view-ads .ads-cols, .view-ads .ads-row {
    grid-template-columns: var(--thumb, 52px) minmax(0, 1fr) 92px 64px 150px 12px;
    column-gap: 16px;
  }
  .view-ads .ads-cols {
    display: grid; align-items: end;
    padding: 10px 14px 7px 16px;
  }
  .view-ads .ads-cols span:not(:first-child) { display: block; }
  .view-ads .ads-cols span:first-child { grid-column: 1 / 3; }
  .view-ads .ads-cols span:nth-child(2), .view-ads .ads-cols span:nth-child(3), .view-ads .ads-cols span:nth-child(4) { text-align: right; }
  .view-ads .ads-cols span.ads-cols-sales, .view-ads .ads-c.ads-c-sales { display: none; }
  .view-ads .ads-row-nums { display: none; }
  .view-ads .ads-row-meta > .pill { display: none; }
  .view-ads .ads-row-angle { display: block; }
  .view-ads .ads-row-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .view-ads .ads-c { display: block; font-size: var(--fs-callout); line-height: 20px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
  .view-ads .ads-c-roas { font-weight: var(--w-semibold); }
  .view-ads .ads-c-pill { text-align: left; }
  .view-ads .ads-row { min-height: 72px; }
}
@container adscamps (min-width: 900px) {
  .view-ads .ads-cols, .view-ads .ads-row { grid-template-columns: var(--thumb, 52px) minmax(0, 1fr) 92px 92px 64px 150px 12px; }
  .view-ads .ads-cols span.ads-cols-sales, .view-ads .ads-c.ads-c-sales { display: block; }
}

/* M1.5: tests, refreshes, the stopped state, fresh mode */
.view-ads .ads-fresh { padding-top: var(--sp-4); }
.view-ads .ads-summary-note { margin-top: 14px; padding-top: 12px; box-shadow: inset 0 var(--hairline) 0 var(--sep); font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.view-ads .ads-camp-tag { flex: none; }
.view-ads .ads-budget.is-test { color: var(--accent-text); background: var(--accent-tint); gap: 3px; padding-right: 8px; }
.view-ads .ads-budget.is-test svg { color: var(--accent-text); }
.view-ads a.ads-budget:active { transform: scale(.96); opacity: .7; }
@media (hover: hover) and (pointer: fine) { .view-ads a.ads-budget.is-test:hover { background: var(--accent-tint-hover); } }
.view-ads .ads-row-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
@media (max-width: 519.98px) { .view-ads .ads-camp-extra { display: none; } }
.view-ads .ads-ready-sub { white-space: normal; }
.view-ads .ads-row-tags .pill { flex: none; }

/* Ads that are off fold away under one disclosure row. */
.view-ads .ads-hist-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 48px; padding: 0 16px; text-align: left;
  box-shadow: inset 0 var(--hairline) 0 var(--sep);
  font-size: var(--fs-subhead); line-height: 20px; color: var(--accent-text);
}
.view-ads .ads-hist-note { color: var(--label-2); }
.view-ads .ads-hist-chev { flex: none; color: var(--label-3); transition: transform var(--dur-fast) var(--ease); }
.view-ads .ads-hist-btn[aria-expanded="true"] .ads-hist-chev { transform: rotate(180deg); }
.view-ads .ads-hist-btn:active { background: var(--row-pressed); }
@media (hover: hover) and (pointer: fine) { .view-ads .ads-hist-btn:hover { background: var(--fill-4); } .view-ads .ads-hist-btn:active { background: var(--row-pressed); } }
.view-ads .ads-hist-btn:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.view-ads .ads-camp:has(.ads-hist-body[hidden]) .ads-hist-btn { border-radius: 0 0 var(--r-card) var(--r-card); }
@media (max-width: 360px) { .view-ads .ads-hist-btn { padding-inline: 12px; } }

/* Ready for ads */
.view-ads .ads-ready { overflow: hidden; }
.view-ads .ads-ready-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.view-ads .ads-ready-item + .ads-ready-item::before {
  content: ""; position: absolute; top: 0; right: 0; left: 72px; height: var(--hairline); background: var(--sep);
}
.view-ads .ads-ready-link { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; border-radius: var(--r-md); }
.view-ads .ads-ready-link:active { opacity: .6; }
@media (hover: hover) and (pointer: fine) { .view-ads .ads-ready-link:hover .ads-ready-title { color: var(--accent-text); } }
.view-ads .ads-ready-art { width: 44px; height: 44px; border-radius: 11px; }
.view-ads .ads-ready-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.view-ads .ads-ready-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: var(--fs-callout); line-height: var(--lh-callout); font-weight: var(--w-semibold); overflow-wrap: anywhere; text-wrap: pretty;
}
.view-ads .ads-ready-sub { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
/* Small phones: "Make ads" drops its sparkle so the name and price have room to read. */
@media (max-width: 360px) {
  .view-ads .ads-ready-item { padding-inline: 12px; }
  .view-ads .ads-ready-item .btn .icon { display: none; }
}
.view-ads .ads-ready-foot { padding: 8px 16px 0; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.view-ads .ads-ready-item .btn { flex: none; }

/* ================================================================ Make ads flow */
.view-ads .mk-head { margin: 4px 0 20px; }
.view-ads .mk-title { font-size: var(--fs-title2); line-height: var(--lh-title2); letter-spacing: var(--ls-title2); font-weight: var(--w-bold); text-wrap: balance; overflow-wrap: anywhere; }
.view-ads .mk-sub { margin-top: 4px; max-width: 560px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); text-wrap: pretty; overflow-wrap: anywhere; }
@media (min-width: 768px) { .view-ads .mk-head { margin: 12px 0 24px; } .view-ads .mk-title { font-size: var(--fs-title1); line-height: var(--lh-title1); letter-spacing: var(--ls-title1); } }

.view-ads .mk-missing {
  display: flex; align-items: center; gap: 8px; margin: -6px 0 16px;
  font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2);
}
.view-ads .mk-missing svg { color: var(--accent); flex: none; }
.view-ads .mk-missing.is-stopped { color: var(--label); }
.view-ads .mk-missing.is-stopped svg { color: var(--label-2); }

/* Carry on where you left off */
.view-ads .mk-resume {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: 0 0 24px; padding: 12px 14px 12px 12px;
  border-radius: 16px; background: var(--bg-2); text-align: left;
}
.view-ads .mk-resume-art { width: 44px; height: 44px; border-radius: 10px; }
.view-ads .mk-resume-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.view-ads .mk-resume-title { font-size: var(--fs-callout); line-height: var(--lh-callout); font-weight: var(--w-semibold); color: var(--accent-text); overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .view-ads .mk-resume:hover { background: color-mix(in srgb, var(--bg-2) 96%, var(--label)); } }
.view-ads .mk-resume-sub { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.view-ads .mk-resume-chev { margin-right: -1px; }
@media (min-width: 768px) { .view-ads .mk-resume { max-width: 460px; } }

/* Product picker grid */
.view-ads .mk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
@media (min-width: 600px) { .view-ads .mk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .view-ads .mk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; } }
.view-ads .mk-tile { display: flex; flex-direction: column; min-width: 0; text-align: left; border-radius: 18px; }
.view-ads .mk-tile:focus-visible { outline-offset: 4px; }
.view-ads .mk-tile-art { position: relative; display: block; aspect-ratio: 1; margin-bottom: 10px; border-radius: 18px; }
.view-ads .mk-tile-art .ad-pthumb { width: 100%; height: 100%; border-radius: 18px; }
.view-ads .mk-tile-art::after {
  content: ""; position: absolute; inset: -4px; border-radius: 22px; pointer-events: none;
  box-shadow: 0 0 0 3px var(--accent);
  opacity: 0; transform: scale(.97);
  transition: opacity var(--dur-fast) linear, transform var(--dur-fast) var(--ease);
}
.view-ads .mk-tile.is-selected .mk-tile-art::after { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .view-ads .mk-tile:not(.is-selected):hover .mk-tile-art::after { opacity: .35; transform: none; }
  .view-ads .mk-rtile:hover .mk-rtile-hook { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .view-ads .mk-rtile:not(.is-selected):hover .mk-rtile-art .ad-thumb { opacity: .6; }
}
.view-ads .mk-check {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .2);
  opacity: 0; transform: scale(.4);
  transition: opacity 180ms linear, transform 320ms cubic-bezier(.3, 1.5, .5, 1);
}
.view-ads .is-selected .mk-check { opacity: 1; transform: none; }
.view-ads .mk-tile-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-semibold); letter-spacing: -0.15px;
}
.view-ads .mk-tile-sub {
  margin-top: 2px;
  font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.view-ads .mk-tile-status.is-winner { color: var(--green-text); font-weight: var(--w-medium); }
.view-ads .mk-tile-status.is-testing { color: var(--accent-text); font-weight: var(--w-medium); }

/* Sticky footer with the one primary button. Make ads is full screen (the tab bar steps aside), so it sits on
   the bottom edge and pads itself past whatever the bar area still needs (--tabbar-space: the home indicator on
   phones, 0 on desktop). Just the button: small phones keep their room for the content. */
.view-ads .mk-footer {
  position: sticky; bottom: 0; z-index: 5;
  margin: 12px calc(-1 * var(--gutter)) 0;
  padding: 16px var(--gutter) calc(8px + var(--tabbar-space));
  background: linear-gradient(to bottom, transparent, var(--bg) 16px);
}
@media (min-width: 768px) { .view-ads .mk-footer { padding-bottom: calc(20px + var(--tabbar-space)); margin-top: 16px; } }
.view-ads .mk-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 400px; margin: 0 auto; }
.view-ads .mk-again { display: flex; justify-content: center; margin-top: 16px; }

/* Writing (AI progress) */
.view-ads .mk-writing { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 440px; margin: 24px auto 0; }
.view-ads .mk-writing .mk-head { margin: 0 0 20px; }
.view-ads .mk-writing .mk-sub { margin-inline: auto; }
.view-ads .mk-writing-art { position: relative; width: 124px; height: 124px; margin-bottom: 24px; }
.view-ads .mk-writing-art .ad-pthumb { width: 100%; height: 100%; border-radius: 28px; box-shadow: var(--shadow-float); }
.view-ads .mk-writing-art::after {
  content: ""; position: absolute; inset: 0; border-radius: 28px; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
  background-size: 260% 100%;
  animation: mk-sheen 1.9s linear infinite;
}
.view-ads .mk-writing-badge {
  position: absolute; right: -9px; bottom: -9px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--indigo), var(--blue));
  box-shadow: 0 0 0 3px var(--bg);
  animation: mk-breathe 2s ease-in-out infinite;
}
@keyframes mk-sheen { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes mk-breathe { 50% { transform: scale(1.08); } }
.view-ads .mk-steps { width: 100%; padding: 6px 16px; border-radius: 18px; background: var(--bg-2); text-align: left; }
.view-ads .mk-retry { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }

/* Swipe deck. The card is square art plus ~190px of feed chrome; --deck-chrome is everything else on screen
   (nav bar, progress, controls), so card + controls fit the window. A 210px floor keeps it usable on 320×568,
   where the card also drops to one line of text (below). */
.view-ads .mk-deck {
  --deck-chrome: 390px;
  --deck-w: min(100%, 460px, max(210px, calc(100dvh - var(--deck-chrome) - var(--safe-top) - var(--safe-bottom))));
  display: flex; flex-direction: column; align-items: center;
  padding-top: 4px;
}
@media (min-width: 768px) { .view-ads .mk-deck { --deck-chrome: 440px; padding-top: 12px; } }
.view-ads .mk-deck-head { width: var(--deck-w); margin-bottom: 14px; }
.view-ads .mk-deck-title { font-size: var(--fs-title3); line-height: var(--lh-title3); font-weight: var(--w-bold); letter-spacing: var(--ls-title3); text-align: center; margin-bottom: 12px; text-wrap: balance; }
.view-ads .mk-deck-title:focus { outline: none; }
@media (max-width: 767.98px) { .view-ads .mk-deck-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.view-ads .mk-segs { display: flex; gap: 4px; }
.view-ads .mk-seg { flex: 1; height: 4px; border-radius: 2px; background: var(--fill-2); transition: background-color 250ms linear; }
.view-ads .mk-seg.is-current { background: var(--accent); }
.view-ads .mk-seg.is-keep { background: var(--green); }
.view-ads .mk-seg.is-skip { background: var(--gray); opacity: .55; }
.view-ads .mk-progress-text {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); font-variant-numeric: tabular-nums;
}
.view-ads .mk-kept.has-kept { color: var(--green-text); font-weight: var(--w-semibold); }

.view-ads .deck { width: var(--deck-w); outline: none; }
.view-ads .deck-stack { position: relative; margin-bottom: 22px; }
.view-ads .deck-card {
  --kk: max(0, calc(var(--k, 0) - var(--lift, 0)));
  position: absolute; top: 0; left: 0; right: 0;
  transform-origin: 50% 100%;
  transform: translateY(calc(var(--kk) * 11px)) scale(calc(1 - var(--kk) * .05));
  opacity: calc(1 - max(0, var(--kk) - 1) * .6);
  transition: transform 420ms var(--ease), opacity 300ms linear;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.view-ads .deck-stack.is-dragging .deck-card { transition: none; }
.view-ads .deck-card.is-top { cursor: grab; }
.view-ads .deck-card.is-dragging { cursor: grabbing; }
.view-ads .deck-card-inner { border-radius: 22px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-float); }
.view-ads .deck-card:not(.is-top) .deck-card-inner { box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 0 0 .5px rgba(0, 0, 0, .04); }
.view-ads .deck-card svg { pointer-events: none; }
/* First-time hint on the first card (touch): sits on the image until the first swipe or tap. */
.view-ads .deck-swipehint {
  position: absolute; left: 0; right: 0; top: 46%; z-index: 4;
  display: flex; justify-content: center; pointer-events: none;
}
.view-ads .deck-swipehint-pill {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(100% - 24px); min-height: 36px; padding: 8px 14px; border-radius: 18px; text-align: center;
  background: rgba(0, 0, 0, .66); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 14px; line-height: 18px; font-weight: var(--w-semibold); letter-spacing: -0.1px; text-wrap: balance;
  animation: deck-nudge 2.4s var(--ease) 600ms infinite;
}
.view-ads .deck-swipehint-pill svg { flex: none; }
@keyframes deck-nudge { 0%, 60%, 100% { transform: none; } 20% { transform: translateX(8px); } 40% { transform: translateX(-8px); } }
/* The stamps sit on the ad image, so they are always a white sticker (fixed colours, readable in both themes). */
.view-ads .deck-stamp {
  position: absolute; top: 104px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 15px 0 12px; border-radius: 18px;
  background: #fff;
  font-size: 17px; font-weight: var(--w-bold); letter-spacing: -0.2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  opacity: 0; pointer-events: none;
}
.view-ads .deck-stamp.is-keep { left: 16px; color: #1C7A33; box-shadow: inset 0 0 0 2px #34C759, 0 6px 20px rgba(0, 0, 0, .22); transform: rotate(-6deg); }
.view-ads .deck-stamp.is-skip { right: 16px; color: #3C3C43; box-shadow: inset 0 0 0 2px #AEAEB2, 0 6px 20px rgba(0, 0, 0, .22); transform: rotate(6deg); }

.view-ads .mk-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 36px; padding: 0 14px;
  box-shadow: inset 0 calc(-1 * var(--hairline)) 0 var(--sep);
  font-size: 13px; line-height: 18px; font-weight: var(--w-semibold);
}
.view-ads .mk-card-angle { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); min-width: 0; white-space: nowrap; }
.view-ads .mk-card-style { color: var(--label-2); font-weight: var(--w-medium); white-space: nowrap; }
/* In the deck, "more" opens the text in a short scrolling well so the buttons stay put. */
.view-ads .deck .feed-text.is-expanded .feed-primary { max-height: calc(19px * 5); overflow-y: auto; overscroll-behavior: contain; }
.view-ads .mk-card .feed-actions { display: none; }
/* Short windows (iPhone SE, landscape): a tighter card so it and the controls both fit. */
@media (max-height: 640px) {
  .view-ads .mk-card .feed-head { height: 46px; }
  .view-ads .mk-card .feed-cta { height: 38px; }
  .view-ads .mk-card .feed-primary { -webkit-line-clamp: 1; }
  .view-ads .mk-card .feed-text { padding-bottom: 10px; }
  .view-ads .mk-card .feed-morebtn { bottom: 10px; }
}

.view-ads .deck-controls-wrap { width: var(--deck-w); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.view-ads .deck-controls { display: flex; align-items: flex-start; justify-content: center; gap: 30px; }
.view-ads .deck-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; -webkit-tap-highlight-color: transparent; }
.view-ads .deck-btn-face {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08), 0 0 0 .5px rgba(0, 0, 0, .05);
  transition: transform 160ms var(--ease), opacity 160ms linear;
}
.view-ads .deck-btn.is-skip .deck-btn-face { color: var(--red); }
.view-ads .deck-btn.is-keep .deck-btn-face { color: var(--green); }
.view-ads .deck-btn.is-undo .deck-btn-face { width: 44px; height: 44px; margin-top: 10px; background: var(--fill-3); color: var(--label-2); box-shadow: none; }
.view-ads .deck-btn-text { font-size: 12px; line-height: 16px; font-weight: var(--w-semibold); color: var(--label-2); }
.view-ads .deck-btn:active .deck-btn-face { transform: scale(.9); }
.view-ads .deck-btn.is-flash .deck-btn-face { animation: deck-flash 260ms var(--ease); }
@keyframes deck-flash { 40% { transform: scale(.88); } }
.view-ads .deck-btn:disabled { cursor: default; }
.view-ads .deck-btn:disabled .deck-btn-face { opacity: .35; transform: none; }
.view-ads .deck-btn:disabled .deck-btn-text { opacity: .5; }
.view-ads .deck-btn:focus-visible { outline: none; }
.view-ads .deck-btn:focus-visible .deck-btn-face { outline: 2.5px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .view-ads .deck-btn:not(:disabled):hover .deck-btn-face { transform: scale(1.05); } }
/* Desktop: Skip and Keep flank the card; Undo and the key hints sit underneath. */
@media (min-width: 768px) {
  .view-ads .mk-deck {
    display: grid; grid-template-columns: minmax(0, 1fr) var(--deck-w) minmax(0, 1fr);
    grid-template-areas: ". head ." "skip deck keep" ". undo ." ". hint .";
    justify-items: center;
  }
  .view-ads .mk-deck-head { grid-area: head; }
  .view-ads .mk-deck .deck { grid-area: deck; }
  .view-ads .deck-controls-wrap, .view-ads .deck-controls { display: contents; }
  .view-ads .deck-btn.is-skip { grid-area: skip; justify-self: end; align-self: center; margin-right: 36px; }
  .view-ads .deck-btn.is-keep { grid-area: keep; justify-self: start; align-self: center; margin-left: 36px; }
  .view-ads .deck-btn.is-undo { grid-area: undo; flex-direction: row; gap: 8px; margin-top: -4px; }
  .view-ads .deck-btn.is-undo .deck-btn-face { width: 36px; height: 36px; margin: 0; }
  .view-ads .deck-btn.is-undo .deck-btn-face svg { width: 16px; height: 16px; }
  .view-ads .deck-btn.is-undo .deck-btn-text { font-size: 13px; }
  .view-ads .deck-hint { grid-area: hint; margin-top: 12px; }
  .view-ads .deck-btn-face { width: 72px; height: 72px; }
}
@media (max-width: 767.98px) {
  /* The controls stay on screen at the bottom edge (the flow is full screen: no tab bar) instead of falling
     below the fold; the card is sized so they never sit on top of it. */
  .view-ads .deck-controls-wrap {
    position: sticky; bottom: 0; z-index: 30;
    padding: 12px 0 calc(8px + var(--tabbar-space));
    background: linear-gradient(to bottom, transparent, var(--bg) 18px);
  }
  .view-ads .deck-stack { margin-bottom: 8px; }
  .view-ads .deck-controls { gap: 36px; }
  .view-ads .deck-btn-text { display: none; }
  .view-ads .deck-btn.is-undo .deck-btn-face { margin-top: 10px; }
}
.view-ads .deck-hint { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-align: center; }
.view-ads .deck-hint kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; margin-right: 2px;
  border-radius: 5px; background: var(--fill-3); color: var(--label);
  font: 600 12px/1 var(--font);
  box-shadow: inset 0 -1px 0 var(--sep);
}
.view-ads .deck-hint-sep { margin: 0 8px; color: var(--label-3); }

/* Review keepers */
.view-ads .mk-rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
@media (min-width: 600px) { .view-ads .mk-rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .view-ads .mk-rgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 18px; } }
.view-ads .mk-rtile { display: flex; flex-direction: column; min-width: 0; text-align: left; border-radius: 16px; }
.view-ads .mk-rtile:focus-visible { outline-offset: 4px; }
.view-ads .mk-rtile-art { position: relative; display: block; aspect-ratio: 1; margin-bottom: 10px; border-radius: 16px; }
.view-ads .mk-rtile-art .ad-thumb { width: 100%; height: 100%; border-radius: 16px; transition: opacity 200ms linear, filter 200ms linear; }
.view-ads .mk-rtile:not(.is-selected) .mk-rtile-art .ad-thumb { opacity: .42; filter: saturate(.3); }
.view-ads .mk-rtile .mk-check {
  opacity: 1; transform: none;
  background: rgba(0, 0, 0, .18); color: transparent;
  box-shadow: inset 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, .25);
}
.view-ads .mk-rtile.is-selected .mk-check { background: var(--accent); color: #fff; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .2); animation: mk-tick 320ms cubic-bezier(.3, 1.5, .5, 1); }
@keyframes mk-tick { from { transform: scale(.6); } }
.view-ads .mk-rtile-angle { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.view-ads .mk-rtile-hook {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-semibold); letter-spacing: -0.15px;
}
.view-ads .mk-rtile:not(.is-selected) .mk-rtile-hook { color: var(--label-2); font-weight: var(--w-medium); }

/* Done / waiting */
.view-ads .mk-done { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 480px; margin: 20px auto 0; }
.view-ads .mk-done .mk-sub { margin-inline: auto; text-wrap: balance; }
.view-ads .mk-done-mark {
  display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 20px;
  border-radius: 50%; color: #fff;
  animation: mk-pop 620ms cubic-bezier(.3, 1.45, .5, 1) both;
}
.view-ads .mk-done-mark.is-green { background: var(--green); }
.view-ads .mk-done-mark.is-orange { background: var(--orange); }
@keyframes mk-pop { from { transform: scale(.4); opacity: 0; } }
/* The launched list and the "What happens now" card below it are both standard cards. */
.view-ads .mk-newads { width: 100%; margin-top: 24px; border-radius: var(--r-card); background: var(--bg-2); box-shadow: var(--shadow-card); overflow: hidden; text-align: left; }
.view-ads .mk-newad { position: relative; }
.view-ads .mk-newad + .mk-newad::before { content: ""; position: absolute; top: 0; right: 0; left: 68px; height: var(--hairline); background: var(--sep); }
.view-ads .mk-newad-link { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px 10px 12px; color: inherit; transition: background-color var(--dur-press) linear; }
.view-ads .mk-newad-link:active { background: var(--row-pressed); }
@media (hover: hover) and (pointer: fine) { .view-ads .mk-newad-link:hover { background: var(--fill-4); } .view-ads .mk-newad-link:active { background: var(--row-pressed); } }
.view-ads .mk-newad-thumb { width: 44px; height: 44px; border-radius: 9px; }
.view-ads .mk-newad-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.view-ads .mk-newad-title { font-size: var(--fs-callout); line-height: var(--lh-callout); font-weight: var(--w-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-ads .mk-newad-sub { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.view-ads .mk-newad .pill { flex: none; }
.view-ads .mk-newad-chev { margin-right: -1px; }
.view-ads .mk-next { width: 100%; margin-top: 16px; }
.view-ads .mk-next-list { counter-reset: mk; display: flex; flex-direction: column; gap: 10px; }
.view-ads .mk-next-list li {
  counter-increment: mk; position: relative; padding-left: 32px;
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label); text-wrap: pretty;
}
.view-ads .mk-next-list li::before {
  content: counter(mk); position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fill-3); color: var(--label-2);
  font-size: 12px; font-weight: var(--w-bold);
}
.view-ads .mk-done-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; max-width: 360px; margin-top: 28px; }
.view-ads .mk-fineprint { margin-top: 12px; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--label-2); }

/* ================================================================ ad detail */
.view-ads .ad-detail { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.view-ads .ad-preview { width: 100%; max-width: 440px; margin: 0 auto; }
.view-ads .ad-preview .feed { border-radius: 20px; box-shadow: var(--shadow-card); }
.view-ads .ad-preview-note { margin-top: 8px; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--label-2); text-align: center; }
.view-ads .ad-main { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
/* Phone: the preview keeps the page's 16pt gutter, so its edges line up with every card below it. */
@media (max-width: 767.98px) {
  .view-ads .ad-preview { max-width: none; }
}
/* Single column: the header (angle, hook, verdict pill, actions) leads, like an App Store page; then the preview. */
@media (max-width: 1179.98px) {
  .view-ads .ad-detail { gap: var(--sp-4); }
  .view-ads .ad-main { display: contents; }
  .view-ads .ad-head { order: -1; }
  .view-ads .ad-preview { margin-bottom: var(--sp-2); }
}
@media (min-width: 1180px) {
  .view-ads .ad-detail { display: grid; grid-template-columns: minmax(0, 384px) minmax(0, 1fr); gap: 32px; align-items: start; }
  .view-ads .ad-preview { position: sticky; top: calc(var(--navbar-h) + 16px); margin: 0; }
}

.view-ads .ad-head { padding: 0 4px 4px; }
.view-ads .ad-angle { display: flex; align-items: center; gap: 6px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); font-weight: var(--w-semibold); color: var(--accent-text); }
.view-ads .ad-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.view-ads .ad-product-link {
  display: inline-flex; align-items: center; gap: 3px; max-width: 100%; margin-top: 10px;
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--accent-text);
}
.view-ads .ad-product-name { min-width: 0; overflow-wrap: anywhere; }
.view-ads .ad-product-link svg { flex: none; }
.view-ads .ad-product-link:active { opacity: .5; }
@media (hover: hover) and (pointer: fine) { .view-ads .ad-product-link:hover .ad-product-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } }
.view-ads .ad-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.view-ads .ad-paused-note { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); }
.view-ads .ad-paused-note svg { flex: none; margin-top: 1px; color: var(--label-2); }
.view-ads .ad-paused-note a { color: var(--accent-text); }

.view-ads .ad-since { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); white-space: nowrap; }
.view-ads .ad-vtext { font-size: var(--fs-subhead); line-height: var(--lh-subhead); text-wrap: pretty; }
.view-ads .ad-vbar { position: relative; display: block; margin-top: 14px; }
.view-ads .ad-vbar-caption { margin-top: 6px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-align: center; }
.view-ads .ad-vbar-track { display: block; height: 8px; border-radius: 4px; background: var(--fill-3); overflow: hidden; }
.view-ads .ad-vbar-fill { display: block; height: 100%; border-radius: 4px; background: var(--tone); transition: width 600ms var(--ease); }
.view-ads .ad-vbar-labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--label-2); font-variant-numeric: tabular-nums; }
/* ROAS vs break-even: "Break-even 1.4×" sits over its tick, "3.0× ROAS" under the end of the fill. */
.view-ads .ad-vbar-bar { position: relative; display: block; }
.view-ads .ad-vbar-tick { position: absolute; top: -6px; width: 2px; height: 20px; margin-left: -1px; border-radius: 1px; background: var(--label); }
.view-ads .ad-vbar-row { position: relative; display: block; height: 16px; font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
.view-ads .ad-vbar-row.is-top { margin-bottom: 8px; }
.view-ads .ad-vbar-row:not(.is-top) { margin-top: 8px; }
.view-ads .ad-vbar-be, .view-ads .ad-vbar-now { position: absolute; top: 0; white-space: nowrap; }
.view-ads .ad-vbar-be { color: var(--label-2); font-weight: var(--w-medium); }
.view-ads .ad-vbar-now { font-weight: var(--w-semibold); color: var(--tone-text); }
.view-ads .ad-vbar-now.tone-gray { color: var(--label-2); }

.view-ads .ad-numbers .segmented { width: 196px; flex: none; }
.view-ads .ad-chartcard .segmented { width: 164px; flex: none; }
.view-ads .ad-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
@media (min-width: 600px) { .view-ads .ad-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.view-ads .ad-stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.view-ads .ad-stat-label { display: flex; align-items: center; min-height: 18px; font-size: 13px; line-height: 18px; font-weight: var(--w-semibold); color: var(--label-2); white-space: nowrap; }
.view-ads .ad-stat-label .info-btn { margin: -10px -10px -10px -6px; }
.view-ads .ad-stat-value { margin-top: 2px; font-family: var(--font-rounded); font-size: 24px; line-height: 30px; font-weight: var(--w-bold); letter-spacing: -0.4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-ads .ad-stat-value[class*="tone-"] { color: var(--tone-text); }
.view-ads .ad-stat-value.tone-gray { color: var(--label-2); }
.view-ads .ad-stat-sub { font-size: 13px; line-height: 18px; color: var(--label-2); }
.view-ads .ad-stat-sub[class*="tone-"] { color: var(--tone-text); }
/* "More numbers": the funnel metrics fold away (a disclosure row, like Settings). */
.view-ads .ad-more {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  min-height: 44px; margin-top: 14px; padding: 0;
  box-shadow: inset 0 var(--hairline) 0 var(--sep);
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-medium); color: var(--accent-text); text-align: left;
}
.view-ads .ad-more-chev { color: var(--label-3); transition: transform var(--dur-fast) var(--ease); }
.view-ads .ad-more[aria-expanded="true"] .ad-more-chev { transform: rotate(180deg); }
.view-ads .ad-more:active { opacity: .5; }
.view-ads .ad-more:focus-visible { outline-offset: 2px; border-radius: 6px; }
@media (hover: hover) and (pointer: fine) { .view-ads .ad-more:hover span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } }
.view-ads .ad-mlist { margin-top: 0; }
.view-ads .ad-mrow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  min-height: 40px; padding: 10px 0;
  box-shadow: inset 0 var(--hairline) 0 var(--sep);
  font-size: var(--fs-subhead); line-height: var(--lh-subhead);
}
.view-ads .ad-mrow:last-child { padding-bottom: 0; }
.view-ads .ad-mrow-note { color: var(--label-2); }
.view-ads .ad-mrow-value { font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; white-space: nowrap; }

.view-ads .ad-chart-total { margin: -4px 0 14px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.view-ads .ad-chart { padding-top: 8px; }

.view-ads .ad-outlook { font-size: var(--fs-subhead); line-height: var(--lh-subhead); text-wrap: pretty; }
.view-ads .ad-made {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; padding-bottom: 12px;
  box-shadow: inset 0 calc(-1 * var(--hairline)) 0 var(--sep);
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); text-wrap: pretty;
}
.view-ads .ad-made a { color: var(--accent-text); }
.view-ads .ad-made.is-after { margin: 10px 0 0; padding: 0; box-shadow: none; color: var(--label-2); }
.view-ads .ad-made a:active { opacity: .5; }
.view-ads .ad-notes { margin-top: 12px; }
.view-ads .ad-note { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0 0; margin-top: 11px; box-shadow: inset 0 var(--hairline) 0 var(--sep); }
.view-ads .ad-note-icon {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, transparent);
}
.view-ads .ad-note-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-size: var(--fs-subhead); line-height: var(--lh-subhead); }
.view-ads .ad-note-time { font-size: 12px; line-height: 16px; color: var(--label-2); margin-top: 2px; }
.view-ads .ad-note .btn { flex: none; margin: -4px -8px 0 0; }
.view-ads .ad-nonotes { margin-top: 10px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.view-ads .ad-details { margin-top: var(--sp-2); }
.view-ads .ad-details .list-section + .list-section { margin-top: var(--sp-6); }
.view-ads .ad-copyrow .list-row-subtitle { white-space: normal; color: var(--label); }

/* ================================================================ budget sheet */
.bs-sheet .bs-body { --gap: 16px; }
@media (min-width: 768px) { .bs-sheet .bs-body { --gap: 12px; } }
.bs-sheet .bs-card { padding: 16px; border-radius: 16px; background: var(--bg-2); }
.bs-sheet .bs-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bs-sheet .bs-hero-text { display: flex; flex-direction: column; min-width: 0; }
.bs-sheet .bs-label { font-size: 13px; line-height: 18px; font-weight: var(--w-semibold); color: var(--label-2); }
.bs-sheet .bs-amount-line { display: flex; align-items: baseline; white-space: nowrap; }
.bs-sheet .bs-amount {
  font-family: var(--font-rounded); font-size: 40px; line-height: 46px; font-weight: var(--w-bold); letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.bs-sheet .bs-per { margin-left: 6px; font-size: 17px; line-height: 22px; font-weight: var(--w-medium); color: var(--label-2); }
.bs-sheet .bs-week { margin-top: 6px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }

.bs-sheet .bs-cap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bs-sheet .bs-cap-title { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-semibold); }
.bs-sheet .bs-cap-title .info-btn { margin: -9px -9px -9px -4px; }
.bs-sheet .bs-cap-amount { font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.bs-sheet .bs-bar { position: relative; margin: 30px 0 12px; }
.bs-sheet .bs-track { display: flex; height: 10px; border-radius: 5px; background: var(--fill-3); overflow: hidden; }
.bs-sheet .bs-seg { display: block; height: 100%; transition: width 320ms var(--ease), background-color 200ms linear; }
.bs-sheet .bs-seg.is-others, .bs-sheet .bs-dot.is-others { background: color-mix(in srgb, var(--accent) 36%, var(--bg-2)); }
.bs-sheet .bs-seg.is-this, .bs-sheet .bs-dot.is-this { background: var(--accent); }
/* The tests' share of the cap (DECISIONS §28): reserved, so it reads as a quiet hatched block. */
.bs-sheet .bs-seg.is-tests, .bs-sheet .bs-dot.is-tests {
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--teal) 55%, var(--bg-2)) 0 3px, color-mix(in srgb, var(--teal) 30%, var(--bg-2)) 3px 6px);
}
.bs-sheet .bs-seg.is-tests + .bs-seg { box-shadow: inset 1.5px 0 0 var(--bg-2); }
.bs-sheet .bs-leg[hidden] { display: none; }
.bs-sheet .bs-jump { margin-top: 10px; }
.bs-sheet .bs-jump[hidden] { display: none; }
.bs-sheet .bs-step { display: block; margin-top: 10px; }
.bs-sheet .bs-capnote { margin-top: 10px; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--label-2); text-wrap: pretty; }
.bs-sheet .bs-seg.is-this { box-shadow: inset 1.5px 0 0 var(--bg-2); }
.bs-sheet .bs-bar.is-over .bs-seg.is-this, .bs-sheet .bs-cap:has(.bs-bar.is-over) .bs-dot.is-this { background: var(--orange); }
.bs-sheet .bs-captick { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--label); transition: left 320ms var(--ease); }
.bs-sheet .bs-captick-label {
  position: absolute; bottom: calc(100% + 3px); left: 1px; transform: translateX(-50%);
  font-size: 11px; line-height: 13px; font-weight: var(--w-semibold); color: var(--label-2); white-space: nowrap;
}
.bs-sheet .bs-bar:not(.is-over) .bs-captick-label { left: auto; right: 1px; transform: none; }
.bs-sheet .bs-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.bs-sheet .bs-leg { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.bs-sheet .bs-leg-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-sheet .bs-leg-val { color: var(--label); font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.bs-sheet .bs-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.bs-sheet .bs-status {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 14px; padding-top: 12px; box-shadow: inset 0 var(--hairline) 0 var(--sep);
  font-size: var(--fs-subhead); line-height: var(--lh-subhead);
}
.bs-sheet .bs-status svg { flex: none; margin-top: 2px; --knockout: var(--bg-2); }
.bs-sheet .bs-status strong { font-weight: var(--w-semibold); }
.bs-sheet .bs-status.is-over { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.bs-sheet .bs-status.is-over strong { display: block; font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label); }
.bs-sheet .bs-status.is-ok svg { color: var(--green); }
.bs-sheet .bs-status.is-over svg { color: var(--orange); }
.bs-sheet .bs-status.is-info { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.bs-sheet .bs-status.is-info strong { display: block; font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label); }
.bs-sheet .bs-status.is-info svg { color: var(--label-3); }

.bs-sheet .bs-facts { border-radius: 16px; background: var(--bg-2); overflow: hidden; }
.bs-sheet .bs-fact { position: relative; display: flex; align-items: flex-start; gap: 13px; padding: 12px 16px; }
.bs-sheet .bs-fact + .bs-fact::before { content: ""; position: absolute; top: 0; right: 0; left: 58px; height: var(--hairline); background: var(--sep); }
.bs-sheet .bs-fact .icon-tile { margin-top: 1px; }
.bs-sheet .bs-fact-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bs-sheet .bs-fact-title { font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-semibold); }
.bs-sheet .bs-fact-sub { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }

/* Actions: a footer pinned under the scrolling cards (same pattern as Add to store), so the buttons and their
   note never fall off the bottom of a short window. */
.bs-sheet .bs-foot {
  flex: none; position: relative; z-index: 2;
  padding: 12px 16px 10px;
  background: var(--material);
  -webkit-backdrop-filter: var(--material-filter); backdrop-filter: var(--material-filter);
  box-shadow: inset 0 var(--hairline) 0 var(--sep);
}
.bs-sheet.is-modal .bs-foot { padding: 14px 24px 14px; }
.bs-sheet .bs-actions { display: flex; flex-direction: column; gap: 8px; }
.bs-sheet .bs-actions .btn-plain { margin-top: -2px; }
.bs-sheet .bs-fineprint { margin-top: 8px; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--label-2); text-align: center; text-wrap: pretty; }

/* ================================================================ motion preferences */
@media (prefers-reduced-motion: reduce) {
  .view-ads .mk-writing-art::after, .view-ads .mk-writing-badge, .view-ads .deck-swipehint-pill { animation: none; }
  .view-ads .deck-card { transition: opacity 150ms linear; }
}

/* ================================================================ forced colours (Windows High Contrast)
   The verdict bar, the cap bar, the deck progress and the status dot are drawn with background colours, which
   forced-colour mode drops: give tracks a border and fills a system colour. */
@media (forced-colors: active) {
  .view-ads .ad-vbar-track, .bs-sheet .bs-track { border: 1px solid CanvasText; background: Canvas; }
  .view-ads .ad-vbar-fill, .bs-sheet .bs-seg.is-this, .bs-sheet .bs-dot.is-this { forced-color-adjust: none; background: Highlight; }
  .bs-sheet .bs-seg.is-others, .bs-sheet .bs-dot.is-others { forced-color-adjust: none; background: GrayText; }
  .bs-sheet .bs-seg.is-tests, .bs-sheet .bs-dot.is-tests { forced-color-adjust: none; background: repeating-linear-gradient(135deg, GrayText 0 3px, Canvas 3px 6px); }
  .view-ads .ad-vbar-tick, .bs-sheet .bs-captick { forced-color-adjust: none; background: CanvasText; }
  .view-ads .mk-seg { forced-color-adjust: none; background: GrayText; }
  .view-ads .mk-seg.is-current, .view-ads .mk-seg.is-keep { background: Highlight; }
  .view-ads .ads-dot { forced-color-adjust: none; background: GrayText; }
  .view-ads .ads-dot.is-on { background: Highlight; }
  .view-ads .mk-check { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .view-ads .mk-tile.is-selected .mk-tile-art::after { box-shadow: 0 0 0 3px Highlight; }
  .view-ads .deck-btn-face, .view-ads .deck-card-inner { border: 1px solid CanvasText; }
  .view-ads .deck-swipehint-pill { border: 1px solid CanvasText; }
}

/* ================================================================ v2: "Ads | Emails" switch (SPEC-v2 §6) */
.view-ads .ads-switch { margin: 0 0 var(--sp-6); }
.view-ads .ads-switch .segmented { width: 100%; }
@media (min-width: 768px) { .view-ads .ads-switch { max-width: 360px; } }

/* ================================================================ v2: Fiverr videos in ad lists (SPEC-v2 §9) */
:is(.view-ads, .view-products) .ad-vthumb {
  position: relative; display: block; flex: none; overflow: hidden; background: var(--bg-3);
}
:is(.view-ads, .view-products) .ad-vthumb-art, :is(.view-ads, .view-products) .ad-vthumb-art svg { display: block; width: 100%; height: 100%; }
:is(.view-ads, .view-products) .ad-vthumb::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .38), transparent 46%);
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08);
}
/* The video badge: a play glyph and the length, bottom left, like Photos. White on a dark scrim (≥ 4.5:1 on any art). */
:is(.view-ads, .view-products) .ad-vbadge {
  position: absolute; left: 4px; bottom: 4px; z-index: 1;
  display: inline-flex; align-items: center; gap: 2px; padding: 1px 4px 1px 3px; border-radius: 5px;
  background: rgba(0, 0, 0, .62); color: #fff;
  font-size: 10px; line-height: 13px; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; letter-spacing: .1px;
}
:is(.view-ads, .view-products) .ad-vbadge svg { width: 8px; height: 8px; }
.view-ads .ads-videos { overflow: hidden; }

/* Make ads: the kind of ad (AI images | Video from Fiverr) and a product's videos on its tile. */
.view-ads .mk-mode { margin: -4px 0 20px; }
.view-ads .mk-mode .segmented { width: 100%; }
@media (min-width: 768px) { .view-ads .mk-mode { max-width: 380px; margin-top: -8px; } }
.view-ads .mk-tile-video {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 2px;
  font-size: 12px; line-height: 16px; font-weight: var(--w-semibold); color: var(--purple-text);
}
.view-ads .mk-tile-video[hidden] { display: none; }

/* ================================================================ v2: Emails (#/ads/emails) */
.view-ads .em { container: em / inline-size; }
.view-ads .em-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.view-ads .em-col { display: flex; flex-direction: column; gap: var(--sp-6); min-width: 0; }
.view-ads .em-col > * { margin-top: 0; }
@container em (min-width: 820px) {
  .view-ads .em-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
  .view-ads .em-col { gap: 20px; }
}
.view-ads .em-aside { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); white-space: nowrap; }
.view-ads .em-lead { font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); text-wrap: pretty; }
.view-ads .em-fine { margin-top: 12px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.view-ads .em-quiet { font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); }
.view-ads .em-label { font-size: var(--fs-footnote); line-height: var(--lh-footnote); font-weight: var(--w-semibold); color: var(--label-2); }

/* The numbered steps (shared with a flow page) */
.view-ads .em-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.view-ads .em-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.view-ads .em-step-n {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent-text);
  font-size: 13px; font-weight: var(--w-bold); font-variant-numeric: tabular-nums;
}
.view-ads .em-step-text { min-width: 0; padding-top: 2px; }
.view-ads .em-step-title { font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-semibold); text-wrap: pretty; }
.view-ads .em-step-detail { margin-top: 2px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.view-ads .em-step-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-medium); color: var(--accent-text);
}
@media (hover: hover) and (pointer: fine) { .view-ads .em-step-link:hover { text-decoration: underline; } }
.view-ads .em-todo {
  display: flex; align-items: center; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: var(--hairline) solid var(--sep);
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-medium);
}
.view-ads .em-todo.is-done { color: var(--green-text); }
.view-ads .em-setup-btn { margin-top: 14px; }
/* "Set up After purchase" stays whole at 320: the chevron gives way first, then the words may take a second line. */
@container em (max-width: 300px) { .view-ads .em-setup-btn .icon { display: none; } }
.view-ads .em-setup-btn .btn-label { white-space: normal; text-wrap: balance; text-align: center; }
/* Card titles beside an accessory ("About 5 minutes", "Step 3") wrap instead of being cut on small phones. */
.view-ads :is(.em, .em-flow, .vd) .card-title { white-space: normal; overflow: visible; text-wrap: balance; }
.view-ads :is(.em, .em-flow, .vd) .card-heading { align-items: flex-start; }
.view-ads :is(.em, .em-flow, .vd) .card-heading > .icon { flex: none; margin-top: 2px; }

/* Flows */
.view-ads .em-flow-row .list-row-subtitle { text-wrap: pretty; }

/* Results */
.view-ads .em-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.view-ads .em-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.view-ads .em-kpi + .em-kpi { padding-left: 12px; box-shadow: inset var(--hairline) 0 0 var(--sep); }
.view-ads .em-kpi-label { font-size: 13px; line-height: 18px; font-weight: var(--w-semibold); color: var(--label-2); text-wrap: balance; }
/* A money figure is never cut short (V009): it keeps its whole width, and phones get one row per number instead. */
.view-ads .em-kpi-value {
  font-family: var(--font-rounded); font-size: 24px; line-height: 30px; font-weight: var(--w-bold); letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
@container em (max-width: 560px) {
  .view-ads .em-kpis { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .view-ads .em-kpi { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; }
  .view-ads .em-kpi:first-child { padding-top: 0; }
  .view-ads .em-kpi + .em-kpi { padding-left: 0; box-shadow: inset 0 var(--hairline) 0 var(--sep); }
  .view-ads .em-kpi-label { font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-regular); color: var(--label); }
  .view-ads .em-kpi-value { font-size: 20px; line-height: 26px; font-weight: var(--w-semibold); }
}

/* Rules */
.view-ads .em-rules-list { display: flex; flex-direction: column; gap: 10px; }
.view-ads .em-rules-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; }
.view-ads .em-rules-list p { font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); text-wrap: pretty; }
.view-ads .em-rules-list strong { color: var(--label); font-weight: var(--w-semibold); }
.view-ads .em-rules-tick { margin-top: 3px; color: var(--green); }
.view-ads .em-fresh, .view-ads .em-notfound { padding-top: var(--sp-4); }

/* ================================================================ v2: one flow (#/ads/emails/:flow) */
.view-ads .em-flow-head { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.view-ads .em-flow-head .icon-tile { flex: none; border-radius: 12px; }
.view-ads .em-flow-head-text { min-width: 0; }
.view-ads .em-flow-title { font-size: var(--fs-title2); line-height: var(--lh-title2); font-weight: var(--w-bold); letter-spacing: -0.3px; }
.view-ads .em-flow-trigger { margin-top: 2px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); text-wrap: pretty; }
.view-ads .em-flow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.view-ads .em-status { margin-top: var(--sp-6); }
.view-ads .em-flow-steps.is-quiet .card-heading { color: var(--label-2); }
.view-ads .em-emails-head { gap: 12px; flex-wrap: wrap; }
.view-ads .em-emails-head .segmented { width: 200px; }
.view-ads .em-email-list { display: flex; flex-direction: column; gap: var(--sp-8); }
.view-ads .em-email { container: emmail / inline-size; min-width: 0; }
.view-ads .em-email + .em-email { padding-top: var(--sp-7); border-top: var(--hairline) solid var(--sep); }
.view-ads .em-email-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 14px; }
.view-ads .em-email-title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-title3); line-height: var(--lh-title3); font-weight: var(--w-semibold); }
.view-ads .em-email-n {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--fill-3); color: var(--label-2); font-size: 13px; font-weight: var(--w-bold);
}
.view-ads .em-email-when { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.view-ads .em-email-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@container emmail (min-width: 640px) {
  .view-ads .em-email-grid:not(.is-desktop) { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 28px; }
}
/* The phone preview (about 900px tall) sticks only on screens tall enough to show all of it. */
@media (min-height: 1000px) {
  @container emmail (min-width: 640px) {
    .view-ads .em-email-grid:not(.is-desktop) .em-email-preview-col { position: sticky; top: calc(var(--navbar-h) + var(--safe-top) + 12px); }
  }
}
.view-ads .em-email-grid.is-desktop .em-email-preview-col { max-width: 860px; }
@container emmail (min-width: 760px) {
  .view-ads .em-email-grid.is-desktop .em-email-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px; align-items: start; }
  .view-ads .em-email-grid.is-desktop .em-email-details > :is(.em-label, .emp-inbox, .em-copy-list) { grid-column: 1; }
  .view-ads .em-email-grid.is-desktop .em-email-details > :is(.copy-block, .em-stats, .em-stats-none, .em-who) { grid-column: 2; }
  .view-ads .em-email-grid.is-desktop .em-email-details > .em-label { grid-row: 1; }
  .view-ads .em-email-grid.is-desktop .em-email-details > .emp-inbox { grid-row: 2; }
  .view-ads .em-email-grid.is-desktop .em-email-details > .em-copy-list { grid-row: 3 / span 3; }
  .view-ads .em-email-grid.is-desktop .em-email-details > .copy-block { grid-row: 1 / span 3; }
}
.view-ads .em-email-details { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.view-ads .em-email-details > .em-label { margin-bottom: -4px; }
.view-ads .em-copy-list { margin: 0; }
.view-ads .em-copyrow .list-row-subtitle { color: var(--label); font-size: var(--fs-body); line-height: var(--lh-body); overflow-wrap: anywhere; }
.view-ads .em-copyrow .list-row-title { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); font-weight: var(--w-semibold); }
.view-ads .em-rewrite-row .list-row-title { color: var(--accent-text); }
.view-ads .em-stats { padding: 12px 14px 14px; border-radius: var(--r-lg); background: var(--bg-2); }
.view-ads .em-stats-head { display: flex; align-items: center; gap: 8px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.view-ads .em-stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.view-ads .em-stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.view-ads .em-stat-value { font-family: var(--font-rounded); font-size: 19px; line-height: 24px; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Narrow: 2 × 2, so "Sales $199.80" keeps all its digits. */
@container emmail (max-width: 380px) { .view-ads .em-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; } }
.view-ads .em-stat-label { font-size: 12px; line-height: 16px; color: var(--label-2); }
.view-ads .em-stats-none { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); padding: 2px 4px; }
.view-ads .em-who { display: flex; gap: 6px; align-items: flex-start; padding: 0 4px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.view-ads .em-who .icon { margin-top: 3px; flex: none; }
.view-ads .em-who strong { color: var(--label); font-weight: var(--w-semibold); }

/* ---- The email, drawn in the brand (a picture: fixed colours, never the app theme). Text pairs ≥ 4.5:1. */
.view-ads .emp-device { --device-max: 340px; }
.view-ads .emp {
  font-family: var(--font); color: #1D1D1F; background: #FFFFFF; text-align: left;
  font-size: 15px; line-height: 21px; letter-spacing: -0.1px;
}
.view-ads .emp p { margin: 0; }
.view-ads .emp-mailhead { padding: 2px 16px 14px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.view-ads .emp-nav { display: flex; align-items: center; gap: 2px; height: 36px; margin-left: -6px; color: #0063D1; font-size: 17px; }
.view-ads .emp-from { display: flex; align-items: center; gap: 10px; margin-top: 6px; min-width: 0; }
.view-ads .emp-avatar {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  background: var(--em-bg); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12);
}
.view-ads .emp-avatar svg { width: 78%; height: 78%; display: block; }
.view-ads .emp-from-text { min-width: 0; flex: 1 1 auto; }
.view-ads .emp-from-name { font-weight: 600; font-size: 15px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-ads .emp-from-addr { font-weight: 400; color: rgba(60, 60, 67, .78); }
.view-ads .emp-from-to { font-size: 13px; line-height: 17px; color: rgba(60, 60, 67, .78); }
.view-ads .emp-from-time { flex: none; align-self: flex-start; font-size: 13px; line-height: 20px; color: rgba(60, 60, 67, .78); }
.view-ads .emp-subject { margin-top: 12px; font-size: 20px; line-height: 25px; font-weight: 700; letter-spacing: -0.3px; overflow-wrap: anywhere; }
.view-ads .emp-canvas { background: var(--em-tint); padding: 14px 10px 18px; }
.view-ads .emp-card {
  background: var(--em-bg); color: var(--em-ink); border-radius: 12px; padding: 22px 18px 24px;
  font-family: var(--em-font); box-shadow: 0 0 0 1px var(--em-line);
}
.view-ads .emp-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.view-ads .emp-logo svg { height: 26px; width: auto; max-width: 100%; display: block; }
.view-ads .emp-heading { font-size: 22px; line-height: 27px; font-weight: var(--em-head-weight); letter-spacing: -0.3px; margin-bottom: 4px; text-wrap: balance; }
.view-ads .emp-p { margin-top: 10px !important; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.view-ads .emp-btn-wrap { margin-top: 20px !important; text-align: center; }
.view-ads .emp-btn {
  display: inline-block; padding: 12px 24px; border-radius: var(--em-radius);
  background: var(--em-btn); color: var(--em-on-btn); font-size: 15px; line-height: 20px; font-weight: 600;
}
.view-ads .emp-item { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--em-line); }
.view-ads .emp-item-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--em-muted); }
.view-ads .emp-item-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.view-ads .emp-item-art { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; }
.view-ads .emp-item-art svg { width: 100%; height: 100%; display: block; }
.view-ads .emp-item-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.view-ads .emp-item-title { font-weight: 600; overflow-wrap: anywhere; text-wrap: pretty; }
.view-ads .emp-item-qty { font-size: 13px; line-height: 17px; color: var(--em-muted); }
.view-ads .emp-item-price { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.view-ads .emp-item-track { margin-top: 8px !important; font-size: 13px; line-height: 17px; color: var(--em-muted); }
.view-ads .emp-foot { padding: 14px 8px 0; text-align: center; font-size: 12px; line-height: 17px; color: var(--em-muted); font-family: var(--em-font); }
.view-ads .emp-foot p + p { margin-top: 2px; }
.view-ads .emp-unsub { text-decoration: underline; }
.view-ads .emp.is-desktop .emp-deskhead { padding: 16px 24px 14px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.view-ads .emp.is-desktop .emp-subject { margin-top: 0; font-size: 21px; line-height: 26px; }
.view-ads .emp.is-desktop .emp-from { margin-top: 10px; }
.view-ads .emp.is-desktop .emp-canvas { padding: 26px 20px 30px; }
.view-ads .emp.is-desktop .emp-card, .view-ads .emp.is-desktop .emp-foot { max-width: 560px; margin-inline: auto; }
.view-ads .emp.is-desktop .emp-card { padding: 30px 36px 32px; }
/* The inbox line (a picture of Mail's list). */
.view-ads .emp-inbox {
  display: flex; gap: 8px; padding: 10px 14px 11px 10px; border-radius: var(--r-lg);
  background: #FFFFFF; color: #1D1D1F; color-scheme: light; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1);
  font-family: var(--font);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .view-ads .emp-inbox { box-shadow: none; } }
:root[data-theme="dark"] .view-ads .emp-inbox { box-shadow: none; }
.view-ads .emp-inbox-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #007AFF; }
.view-ads .emp-inbox-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; font-size: 15px; line-height: 20px; }
.view-ads .emp-inbox-top { display: flex; justify-content: space-between; gap: 8px; }
.view-ads .emp-inbox-from { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-ads .emp-inbox-time { flex: none; font-size: 14px; color: rgba(60, 60, 67, .78); }
.view-ads .emp-inbox-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-ads .emp-inbox-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: rgba(60, 60, 67, .78); }

/* ---- Rewrite sheet (overlay layer) */
.em-sheet .em-working { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 16px; text-align: center; color: var(--label-2); font-size: var(--fs-subhead); line-height: var(--lh-subhead); }
.em-sheet .em-working.is-failed .icon { color: var(--orange); }
.em-sheet .em-rw-now { margin-bottom: 16px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--bg-2); }
.em-sheet .em-label { font-size: var(--fs-footnote); line-height: var(--lh-footnote); font-weight: var(--w-semibold); color: var(--label-2); margin-bottom: 4px; }
.em-sheet .em-rw-subject { font-size: var(--fs-callout); line-height: var(--lh-callout); font-weight: var(--w-semibold); overflow-wrap: anywhere; }
.em-sheet .em-rw-preview { margin-top: 2px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); overflow-wrap: anywhere; }
.em-sheet .em-rw-more { display: flex; justify-content: center; margin-top: 16px; }
.em-sheet .em-fine { margin-top: 16px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }

/* ================================================================ v2: Video from Fiverr (#/ads/video) */
.view-ads .vd { container: vd / inline-size; }
.view-ads .vd-empty { padding-top: var(--sp-6); }
.view-ads .vd-intro { display: flex; align-items: center; gap: 16px; margin: 4px 0 var(--sp-6); }
.view-ads .vd-intro-art { width: 64px; height: 64px; border-radius: 14px; }
.view-ads .vd-intro-text { min-width: 0; }
.view-ads .vd-intro-title { font-size: var(--fs-title2); line-height: var(--lh-title2); font-weight: var(--w-bold); letter-spacing: -0.3px; text-wrap: balance; }
.view-ads .vd-intro-sub { margin-top: 4px; max-width: 620px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); text-wrap: pretty; }
.view-ads .vd-intro-warn { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--orange-text); }
.view-ads .vd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.view-ads .vd-col { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
@container vd (min-width: 860px) {
  .view-ads .vd-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
  .view-ads .vd-col { gap: 20px; }
}
.view-ads .vd-stepnum { font-size: var(--fs-footnote); line-height: var(--lh-footnote); font-weight: var(--w-semibold); color: var(--label-2); white-space: nowrap; }
.view-ads .vd-lead, .view-ads .vd-text { font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); text-wrap: pretty; }
.view-ads .vd-sub { margin: 18px 0 8px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-semibold); }
.view-ads .vd-hooks { display: flex; flex-direction: column; gap: 6px; }
.view-ads .vd-hooks li { padding: 8px 12px; border-radius: var(--r-md); background: var(--bg-3); font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-medium); }
.view-ads .vd-timeline { display: flex; gap: 2px; min-height: 52px; border-radius: var(--r-md); overflow: hidden; }
.view-ads .vd-seg {
  display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; padding: 7px 8px;
  background: color-mix(in srgb, var(--seg) 18%, var(--bg-2)); color: var(--label);
}
.view-ads .vd-seg.is-0 { --seg: var(--orange); }
.view-ads .vd-seg.is-1 { --seg: var(--blue); }
.view-ads .vd-seg.is-2 { --seg: var(--teal); }
.view-ads .vd-seg.is-3 { --seg: var(--indigo); }
.view-ads .vd-seg-label { font-size: 12px; line-height: 15px; font-weight: var(--w-semibold); overflow-wrap: anywhere; hyphens: auto; }
.view-ads .vd-seg-time { font-size: 11px; line-height: 14px; color: var(--label-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.view-ads .vd-plan { margin-top: 12px; display: grid; gap: 2px; }
.view-ads .vd-plan dt { margin-top: 8px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); font-weight: var(--w-semibold); }
.view-ads .vd-plan dt:first-child { margin-top: 0; }
.view-ads .vd-plan dd { margin: 0; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.view-ads .vd-format { display: flex; align-items: flex-start; gap: 6px; margin: 14px 0; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.view-ads .vd-format .icon { flex: none; margin-top: 2px; }
.view-ads .vd-fine { margin-top: 12px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.view-ads .vd-callout {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 14px; padding: 12px 14px;
  border-radius: var(--r-lg); background: color-mix(in srgb, var(--orange) 13%, var(--bg-2));
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); text-wrap: pretty;
}
.view-ads .vd-callout-icon { color: var(--orange-text); margin-top: 1px; }
.view-ads .vd-callout-title { font-weight: var(--w-semibold); margin-bottom: 2px; }
.view-ads .vd-rules { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.view-ads .vd-rules li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); text-wrap: pretty; }
.view-ads .vd-rule-tick { margin-top: 4px; color: var(--green); }
.view-ads .vd-licence { margin: 0 -2px; }
.view-ads .vd-licence .list { background: var(--bg-3); }
.view-ads .vd-licence-note { margin: 8px 4px 14px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.view-ads .vd-upload .upload-zone:disabled { opacity: .55; cursor: not-allowed; }
.view-ads .vd-videos .section-header { margin-bottom: 10px; }
.view-ads .vd-none { padding: 14px 16px; border-radius: var(--r-card); background: var(--bg-2); font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); }
.view-ads .vd-list { display: flex; flex-direction: column; gap: 12px; }
.view-ads .vd-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; border-radius: var(--r-card); background: var(--bg-2); }
.view-ads .vd-item.is-new { animation: vd-new 1.6s var(--ease-out) 1; }
@keyframes vd-new { from { box-shadow: 0 0 0 3px var(--accent-tint-hover); } to { box-shadow: 0 0 0 3px transparent; } }
.view-ads .vd-media { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; }
.view-ads .vd-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.view-ads .vd-media.is-placeholder {
  display: grid; place-items: center;
  background: radial-gradient(120% 70% at 50% 42%, hsl(var(--hue) 38% 93%), hsl(var(--hue) 26% 74%));
}
.view-ads .vd-media.is-placeholder::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .34), transparent 40%); }
.view-ads .vd-poster-art { display: block; width: 116%; aspect-ratio: 1; margin-inline: -8%; }
.view-ads .vd-poster-art svg { width: 100%; height: 100%; display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .view-ads .vd-media.is-placeholder { background: radial-gradient(120% 70% at 50% 42%, hsl(var(--hue) 16% 30%), hsl(var(--hue) 14% 12%)); } }
:root[data-theme="dark"] .view-ads .vd-media.is-placeholder { background: radial-gradient(120% 70% at 50% 42%, hsl(var(--hue) 16% 30%), hsl(var(--hue) 14% 12%)); }
.view-ads .vd-item-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.view-ads .vd-item-name { font-size: var(--fs-callout); line-height: var(--lh-callout); font-weight: var(--w-semibold); overflow-wrap: anywhere; }
.view-ads .vd-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.view-ads .vd-item-plan { margin-top: 4px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); text-wrap: pretty; }
.view-ads .vd-item-note { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.view-ads .vd-remove { align-self: flex-start; margin: 2px 0 -6px -10px; color: var(--red-text); }
@media (prefers-reduced-motion: reduce) { .view-ads .vd-item.is-new { animation: none; } }
@media (forced-colors: active) {
  .view-ads .vd-seg, .view-ads .vd-callout, .view-ads .em-stats, .view-ads .vd-item { border: 1px solid CanvasText; }
  .view-ads .ad-vbadge { forced-color-adjust: none; background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
}
.view-ads .em-wrap .list-row-subtitle { white-space: normal; overflow-wrap: anywhere; text-wrap: pretty; }
.view-ads .em-email-details > .em-label { padding: 0 16px; }
.view-ads .em-flow-row .list-row-subtitle { white-space: normal; }
.view-ads .em-flow-sub { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin-top: 3px; }
@container em (min-width: 600px) { .view-ads .em-setup-btn.btn-block { display: inline-flex; width: auto; min-width: 280px; padding-inline: 28px; } }
.view-ads .ads-vlink { display: block; color: inherit; border-radius: inherit; }
.view-ads .ads-vlink:active .ads-row { background: var(--row-pressed); }
@media (hover: hover) and (pointer: fine) { .view-ads .ads-vlink:hover .ads-row { background: var(--fill-4); } }
.view-ads .ads-vlink:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.view-ads .ads-rows:last-child .ads-row-item:last-child .ads-vlink { border-radius: 0 0 var(--r-card) var(--r-card); }
