/* Grow Admin · shared/ap-seo.css (seo-tracking, Kenny 2026-11-12: the SEO rankings page). Daybreak tokens only
   (ds/tokens.css, shared/ap.css), light + dark, phone-first; solid token colours only (WebKit). */
.ap-seo-kpis { margin-bottom: 6px; }
.ap-seo-window { margin: 4px 0 14px; font-size: 12.5px; }
.ap-seo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.ap-seo-help { margin-left: auto; }
.ap-seo-groups { margin-bottom: 12px; }
.ap-seo-grp { margin-bottom: 14px; padding-bottom: 6px; }
.ap-seo-grp .tbl-wrap { padding: 0; box-shadow: none; }
.ap-seo-tbl th[scope="row"] { text-align: left; font-weight: 500; min-width: 180px; }
.ap-seo-tbl th[scope="row"] b { display: block; color: var(--ink); font-weight: 650; }
.ap-seo-tbl th[scope="row"] small, .ap-seo-tbl td small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.ap-seo-tbl thead th[title] { cursor: help; text-decoration: underline dotted var(--line-2); text-underline-offset: 3px; }
.ap-seo-row { cursor: pointer; }
.ap-seo-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ap-seo-url { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.ap-seo-phrase { color: var(--ink); font-weight: 600; }
.ap-seo-pos { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.ap-seo-pos[data-band="top3"], .ap-seo-pos[data-band="top10"] { color: var(--evt-ink); }
.ap-seo-pos[data-band="top20"] { color: var(--disc-ink); }
.ap-seo-pos[data-band="out"], .ap-seo-pos[data-band="top100"] { color: var(--ink-3); }
.ap-seo-mv { display: inline-block; padding: 1px 5px; border-radius: 5px; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-seo-mv[data-tone="ok"] { background: var(--evt-soft); color: var(--evt-ink); }
.ap-seo-mv[data-tone="bad"] { background: var(--alert-soft); color: var(--alert-ink); }
.ap-seo-mv[data-tone="off"] { color: var(--ink-3); }
.ap-seo-gap { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: var(--r-chip); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.ap-seo-gap[data-tone="ok"] { background: var(--evt-soft); color: var(--evt-ink); }
.ap-seo-gap[data-tone="warn"] { background: var(--disc-soft); color: var(--disc-ink); }
.ap-seo-gap[data-tone="bad"] { background: var(--alert-soft); color: var(--alert-ink); }
.ap-seo-gap[data-tone="off"] { background: var(--bg); color: var(--ink-3); }
.ap-seo-fit, .ap-seo-ret { display: inline-flex !important; align-items: center; gap: 4px; }
/* in drawer paragraphs the retarget / mismatch notes are sentences: plain text flow with the icon inline, never flex columns */
p.ap-seo-ret, .ap-seo-kwl small.ap-seo-ret, .ap-seo-kwl small.ap-seo-fit { display: block !important; }
p.ap-seo-ret svg, .ap-seo-kwl small.ap-seo-ret svg, .ap-seo-kwl small.ap-seo-fit svg { display: inline-block; margin-right: 4px; vertical-align: -2px; }
p.ap-seo-ret b { overflow-wrap: anywhere; }
.ap-seo-fit svg, .ap-seo-ret svg { width: 13px; height: 13px; flex: none; }
.ap-seo-fit[data-fit="mismatch"] { color: var(--disc-ink) !important; }
.ap-seo-pri { margin-top: 2px; }
.ap-seo-spark { width: 104px; }
.ap-seo-sv { display: block; overflow: visible; }
.ap-seo-sv polyline { fill: none; stroke: var(--c1); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ap-seo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.ap-seo-tools .search { flex: 1 1 220px; min-width: 0; }
.ap-seo-sel select.inp { min-height: 44px; padding: 0 30px 0 12px; border-radius: var(--r-pill); max-width: 100%; }
.ap-seo-kw .num { white-space: nowrap; }
/* drawers */
.ap-seo-dr { display: grid; gap: 4px; }
.ap-seo-dr .ap-kpis { margin: 4px 0 6px; }
.ap-seo-why { margin: 0 0 6px; color: var(--ink-2); }
.ap-seo-h { margin: 16px 0 6px; font-size: 14px; letter-spacing: -.01em; }
.ap-seo-kwl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ap-seo-kwl li { display: block; padding: 10px 12px; border-radius: var(--r-tile); background: var(--bg); }
.ap-seo-kwl .linkish { font-weight: 700; }
.ap-seo-kwm { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ap-seo-kwl small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.ap-seo-checks { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.ap-seo-checks li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; padding: 8px 10px; border-radius: var(--r-tile); background: var(--bg); }
.ap-seo-checks li > svg { width: 18px; height: 18px; margin-top: 1px; }
.ap-seo-checks li[data-tone="ok"] > svg { color: var(--evt-ink); }
.ap-seo-checks li[data-tone="bad"] { background: var(--disc-soft); }
.ap-seo-checks li[data-tone="bad"] > svg { color: var(--disc-ink); }
.ap-seo-checks li[data-tone="off"] > svg { color: var(--ink-3); }
.ap-seo-checks b { display: block; font-size: 13.5px; color: var(--ink); }
.ap-seo-checks small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.ap-seo-ctl { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.ap-seo-chart { margin-top: 4px; min-height: 60px; }
.ap-seo-cap { margin: 4px 0 6px; font-size: 12.5px; }
.ap-seo-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 4px; font-size: 12.5px; color: var(--ink-2); }
.ap-seo-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.ap-seo-path { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 650; }
.ap-seo-path svg { width: 13px; height: 13px; }
@container main (max-width: 640px) {
  .ap-seo-tbl th[scope="row"] { min-width: 140px; }
  .ap-seo-spark { display: none; }
  .ap-seo-kw thead th:last-child { display: none; }
  .ap-seo-help { margin-left: 0; }
}
.ap-seo-golive { margin: -6px 0 14px; }
