/* Grow Admin · shared/ap-ads-test.css (Kenny 2026-11-24: the Ads Test page, Round 1 price-messaging test). Daybreak tokens only
   (ds/tokens.css, shared/ap.css), light + dark, phone-first; solid token colours only (WebKit). Reuses the Funnels / Split
   Test / Free Trial card + table classes. Version colours: Monthly = --c4, Yearly = --c2, No price = --c3. */
.ap-at-toolbar { margin-bottom: 14px; flex-wrap: wrap; gap: 8px 12px; }
.ap-at-toolbar input[type="date"] { min-width: 150px; }
.ap-at-line { margin: 10px 0 0; font-size: 13px; line-height: 1.5; }
.ap-at-empty { margin: 8px 0 0; }
.ap-at-h4 { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ap-at-h4 small { font-weight: 500; }
.ap-at-fresh { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; }
.ap-at-fresh svg { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 2px; }

/* the three versions */
.ap-at-arm { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--c3); color: var(--ink); }
.ap-at-arm[data-arm="a1"] { box-shadow: inset 0 0 0 1.5px var(--c4); }
.ap-at-arm[data-arm="a2"] { box-shadow: inset 0 0 0 1.5px var(--c2); }

/* the verdict */
.ap-at-verdict { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--unread-soft); color: var(--unread-ink); }
.ap-at-verdict[data-tone="ok"] { background: var(--evt-soft); color: var(--evt-ink); }
.ap-at-verdict[data-tone="warn"] { background: var(--disc-soft); color: var(--disc-ink); }
.ap-at-verdict > svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; }
.ap-at-verdict b { font-size: 14px; }
.ap-at-verdict p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; }
.ap-at-verdict p.ap-muted { color: inherit; opacity: .85; }
/* Round 1b: why the clock restarted + the 50/50 setup + the version not running (above the numbers) */
.ap-at-round { margin: 0 0 14px; line-height: 1.5; }
.ap-at-round > svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; }
.ap-at-round p { margin: 0; }
.ap-at-round p + p { margin-top: 4px; }
.ap-at-round b { color: var(--ink); font-weight: 600; }

/* tables: metrics as rows, the three versions + the total as columns */
.ap-at-short { display: none; }
.ap-at-tbl { overflow-x: auto; }
.ap-at-tbl .tbl { min-width: 520px; }
.ap-at-tbl th[scope="row"] { text-align: left; font-weight: 500; white-space: nowrap; }
.ap-at-tbl th[scope="row"] .ap-fn-help { vertical-align: middle; }
.ap-at-tbl .tbl tbody tr:hover th[scope="row"] { background: var(--bg); }
.ap-at-tbl .tbl tbody tr:last-child th[scope="row"] { border-bottom: 0; }
.ap-at-tbl .tbl thead th { white-space: nowrap; vertical-align: bottom; }
.ap-at-tbl .tbl thead th.num { min-width: 104px; }
.ap-at-tbl .tbl td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-at-tbl .tbl td.ap-at-tot, .ap-at-tbl .tbl thead th[data-at-col="total"] { font-weight: 700; background: var(--bg); }
.ap-at-main th[scope="row"], .ap-at-main td { font-weight: 700; color: var(--ink); }
.ap-at-main th[scope="row"] { box-shadow: inset 3px 0 0 var(--c1); }
.ap-at-legend { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; font-size: 12.5px; line-height: 1.45; }
.ap-at-legend li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.ap-at-camps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.ap-at-camp { min-width: 0; }

/* the flow: step label + one bar per version */
.ap-at-flow { display: grid; gap: 2px; margin: 4px 0 6px; }
.ap-at-flowh, .ap-at-flowr { display: grid; grid-template-columns: minmax(170px, 1fr) repeat(3, minmax(120px, 1.3fr)); align-items: center; gap: 4px 14px; }
.ap-at-flowh { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ap-at-flowr { padding: 7px 0; border-bottom: 1px solid var(--hair, var(--line)); }
.ap-at-flowr:last-child { border-bottom: 0; }
.ap-at-fl { font-size: 13.5px; display: flex; align-items: center; gap: 4px; min-width: 0; }
.ap-at-fc { display: grid; grid-template-columns: minmax(40px, 1fr) auto; align-items: center; gap: 2px 8px; min-width: 0; }
.ap-at-fc b { font-variant-numeric: tabular-nums; text-align: right; }
.ap-at-fc small { grid-column: 1 / -1; margin: 0; }
.ap-at-bar { display: block; height: 10px; border-radius: 5px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
html[data-mode="dark"] .ap-at-bar { background: #2A2F34; box-shadow: inset 0 0 0 1px #6B737B; }
html[data-mode="dark"] .ap-at-fc small, html[data-mode="dark"] .ap-at-fc .ap-muted, html[data-mode="dark"] .ap-at-tl .ap-muted, html[data-mode="dark"] .ap-at-tl small { color: var(--ink-3); }
html[data-mode="dark"] .ap-at-tl li:not([data-at-s="click"]):not([data-at-s="signup"]):not([data-at-s="trial"]):not([data-at-s="call"]):not([data-at-s="purchase"]) .ap-at-dot { background: #9AA1A9; }
.ap-at-bar u { display: block; height: 100%; border-radius: 5px; background: var(--c3); text-decoration: none; }
.ap-at-bar u[data-arm="a1"] { background: var(--c4); }
.ap-at-bar u[data-arm="a2"] { background: var(--c2); }
.ap-at-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.ap-at-mini { min-width: 0; }
.ap-at-mini .ap-at-empty { font-size: 13px; }
.ap-at-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.ap-at-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 4px 0; border-bottom: 1px solid var(--hair, var(--line)); }
.ap-at-list li:last-child { border-bottom: 0; }
.ap-at-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ap-at-list b { font-variant-numeric: tabular-nums; }

/* journeys */
.ap-at-js { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ap-at-j { padding: 12px 14px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.ap-at-jh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.ap-at-jsrc { margin: 6px 0 4px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.ap-at-jsrc small { display: block; margin: 1px 0 0; white-space: normal; }
.ap-at-tl { list-style: none; margin: 6px 0 0; padding: 0 0 0 4px; display: grid; gap: 6px; }
.ap-at-tl li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 8px; font-size: 13px; line-height: 1.4; }
.ap-at-tl li small.ap-fr-ct { display: block; white-space: normal; margin: 1px 0 0; }
.ap-at-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--cprev); }
.ap-at-tl li[data-at-s="click"] .ap-at-dot { background: var(--c2); }
.ap-at-tl li[data-at-s="signup"] .ap-at-dot, .ap-at-tl li[data-at-s="trial"] .ap-at-dot { background: var(--c4); }
.ap-at-tl li[data-at-s="call"] .ap-at-dot { background: var(--c3); }
.ap-at-tl li[data-at-s="purchase"] .ap-at-dot { background: var(--c1); }

/* before the test / no data */
.ap-at-before { margin: 8px 0 16px; }

@container main (max-width: 1320px) {
  .ap-at-camps { grid-template-columns: minmax(0, 1fr); }
}
@container main (max-width: 860px) {
  .ap-at-minis { grid-template-columns: minmax(0, 1fr); }
}
@container main (max-width: 640px) {
  .ap-at-tbl .tbl { min-width: 0; font-size: 12px; }
  .ap-at-tbl .tbl td.num { font-size: 11.5px; }
  .ap-at-tbl .tbl thead th.num { min-width: 0; }
  .ap-at-tbl .tbl th, .ap-at-tbl .tbl td { padding-left: 4px; padding-right: 4px; }
  .ap-at-tbl .tbl th:first-child, .ap-at-tbl .tbl td:first-child { padding-left: 8px; }
  .ap-at-tbl th[scope="row"] { white-space: normal; min-width: 0; width: 34%; overflow-wrap: normal; word-break: normal; hyphens: manual; line-height: 1.3; }
  .ap-at-tbl .tbl td.num { overflow: hidden; text-overflow: ellipsis; }
  .ap-at-tbl th[scope="row"] .ap-fn-help { display: none; }
  .ap-at-tbl .ap-at-full { display: none; }
  .ap-at-tbl .ap-at-short { display: inline; }
  .ap-at-tbl .ap-at-arm { padding: 1px 6px; font-size: 11px; }
  .ap-at-tbl .tbl { table-layout: fixed; width: 100%; }
  .ap-at-flowh { display: none; }
  .ap-at-flowr { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ap-at-fc { grid-template-columns: 92px minmax(40px, 1fr) auto; }
  .ap-at-fc::before { content: attr(data-label); font-size: 12px; color: var(--ink-3); }
  .ap-at-fc small { grid-column: 2 / -1; }
  .ap-at-toolbar input[type="date"] { min-width: 0; width: 100%; }
}
