/* Grow Admin · shared/ap-split-test.css (Kenny 2026-11-11: the Split Test page). Daybreak tokens only (ds/tokens.css,
   shared/ap.css), light + dark, phone-first; solid token colours only (WebKit). Reuses the Funnels classes (shared/ap-sched.css). */
.ap-st-toolbar { margin-bottom: 14px; }
.ap-st-int { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.ap-st-int input { width: 18px; height: 18px; accent-color: var(--accent); }
.ap-st-anchor { display: block; position: relative; top: -72px; }
.ap-st-h { align-items: center; }
.ap-st-url { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.ap-st-test { margin-left: auto; }
.ap-st-kpis { margin-top: 10px; }
.ap-st-empty { margin: 8px 0 0; }
.ap-st-wrap { white-space: normal !important; max-width: 320px; }
.ap-st-tbl th[scope="row"] { text-align: left; font-weight: 500; min-width: 150px; }
.ap-st-tbl th[title] { cursor: help; text-decoration: underline dotted var(--line-2); text-underline-offset: 3px; }
.ap-st-tbl td small.ap-fr-ct, .ap-st-tbl th small.ap-fr-ct { display: block; margin: 1px 0 0; }
/* Column headings wrap (the base .tbl keeps them on one line, which pushed half the columns off screen). */
.ap-st-tbl .tbl thead th { white-space: normal; vertical-align: bottom; line-height: 1.25; }
/* If a table is still wider than its card (phones), the row label stays put while the numbers scroll under it. */
.ap-st-tbl .tbl tbody th[scope="row"], .ap-st-tbl .tbl thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--sf); }
/* Stats down the side, compared things across the top */
.ap-st-flip .tbl { width: auto; min-width: 100%; }
.ap-st-flip .tbl tbody th[scope="row"] { min-width: 0; width: 1%; white-space: nowrap; padding: 8px 14px 8px 10px; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px solid var(--hair, var(--line)); }
.ap-st-flip .tbl thead th[data-st-col] { min-width: 96px; color: var(--ink); font-size: 13.5px; }
.ap-st-flip .tbl thead th[data-st-col] small { font-weight: 500; }
.ap-st-flip .tbl td.num { text-align: right; min-width: 96px; }
/* few columns: keep the numbers close to their labels instead of stretching across the card */
.ap-st-flip[data-cols="1"] .tbl { min-width: 0; width: 100%; max-width: 520px; }
.ap-st-flip[data-cols="2"] .tbl, .ap-st-flip[data-cols="3"] .tbl { min-width: 0; width: 100%; max-width: 760px; }
/* the row label is part of the row: same hover tint, same last-row edge as the cells */
.ap-st-flip .tbl tbody tr:hover th[scope="row"] { background: var(--bg); }
.ap-st-flip .tbl tbody tr:last-child th[scope="row"] { border-bottom: 0; }
.ap-st-flip .ap-st-wrap { margin-left: auto; }

/* state pills (never call a winner on noise): tone, not colour alone - the label carries the meaning */
.ap-st-chip[data-tone="ok"] { background: var(--evt-soft); color: var(--evt-ink); box-shadow: none; }
.ap-st-chip[data-tone="warn"] { background: var(--env-soft); color: var(--env-ink); box-shadow: none; }
.ap-st-chip[data-tone="bad"] { background: var(--disc-soft); color: var(--disc-ink); box-shadow: none; }
.ap-st-chip[data-tone="info"] { background: var(--unread-soft); color: var(--unread-ink); box-shadow: none; }
.ap-st-chip[data-tone="off"] { color: var(--ink-3); }

.ap-st-sub { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair, var(--line)); min-width: 0; }
.ap-st-sub > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; cursor: pointer; list-style: none; font-size: 14.5px; margin-bottom: 8px; }
.ap-st-sub > summary::-webkit-details-marker { display: none; }
.ap-st-sub > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); margin-right: 2px; flex: none; position: relative; top: -1px; }
.ap-st-sub[open] > summary::before { transform: rotate(45deg); top: -3px; }
.ap-st-sub > summary .ap-muted { font-size: 12.5px; font-weight: 400; }
.ap-st-grid { margin-top: 0; grid-template-columns: minmax(0, 1fr); gap: 0; }
.ap-st-grid > .ap-st-sub { margin-top: 14px; }

.ap-st-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.ap-st-sample { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin-top: 10px; }
.ap-st-bar { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 12.5px; color: var(--ink-3); }
.ap-st-bar b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 650; }
.ap-st-bar i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.ap-st-bar u { display: block; height: 100%; background: var(--c6); border-radius: 3px; text-decoration: none; }
.ap-st-sample[data-enough="1"] .ap-st-bar u { background: var(--c1); }

.ap-st-charth { display: flex; justify-content: flex-end; margin: -4px 0 6px; }
.ap-st-chart { min-height: 120px; }
.ap-st-chart .ap-fr-nodata { margin: 40px 0; text-align: center; }
.ap-st-chart .ap-ch-marks circle.is-hollow { fill: var(--sf) !important; stroke-dasharray: 2 2; }
.ap-st-lift[data-up="1"] { color: var(--good-ink); }
.ap-st-lift[data-up="0"] { color: var(--ink-2); }
.ap-st-thin { margin: 0 0 8px; }
.ap-st-aov { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-2); }
.ap-st-eng { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--hair, var(--line)); font-size: 13px; }
.ap-st-eng b { color: var(--ink); }

/* the test form */
.ap-st-vs { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.ap-st-vs legend { padding: 0; font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 4px; }
.ap-st-vrow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 84px 36px; gap: 8px; align-items: end; margin-bottom: 8px; }
.ap-st-vrow input[readonly] { color: var(--ink-3); }
.ap-st-vx { min-width: 36px; padding: 0; justify-content: center; }
.ap-st-vs > .btn { justify-self: start; }

@media (max-width: 560px) {
  .ap-st-flip .tbl tbody th[scope="row"] { white-space: normal; width: 34%; min-width: 104px; padding-right: 8px; }
  .ap-st-flip .tbl thead th[data-st-col], .ap-st-flip .tbl td.num { min-width: 78px; }
  /* the small "x of y" lines may wrap on a phone, so one or two columns always fit the screen */
  .ap-st-flip .ap-fr-ct { white-space: normal; }
  .ap-st-flip[data-cols="1"] .tbl, .ap-st-flip[data-cols="2"] .tbl { table-layout: fixed; max-width: none; }
  .ap-st-flip[data-cols="1"] .tbl thead th[data-st-col], .ap-st-flip[data-cols="2"] .tbl thead th[data-st-col],
  .ap-st-flip[data-cols="1"] .tbl td.num, .ap-st-flip[data-cols="2"] .tbl td.num { min-width: 0; overflow-wrap: anywhere; }
  /* wider tables scroll sideways under the pinned label: a soft edge on the right says there is more */
  .ap-st-tbl { background: linear-gradient(to left, var(--bg), var(--sf) 18px) right / 18px 100% no-repeat local, var(--sf); }
}
@container main (max-width: 760px) {
  .ap-st-sample { grid-template-columns: minmax(0, 1fr); }
  .ap-st-test { margin-left: 0; }
  .ap-st-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-st-charth { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .ap-st-vrow { grid-template-columns: minmax(0, 1fr) 84px 36px; }
  .ap-st-vrow label:first-child { grid-column: 1 / -1; }
}
