/* ai-traffic.css — AI traffic's own stylesheet (lane V6).

   New AI traffic UI is styled here, in the kit's tokens (docs/brand-kit.md), never in
   console.css. The screen's existing rules stay where they are until the owner's
   visual port: this file adds, it does not restyle. */

/* The tabs: Overview · Pages · Crawlers (owner ruling D1, 2026-09-23). The kit's
   top-bar tab: coral text on the accent soft when active. */
.atp-tabs { display: flex; gap: 4px; align-items: center; padding: 14px 0 10px; flex-wrap: wrap; }
.atp-tab {
  font: inherit; font-size: var(--text-sm); color: var(--muted); background: none;
  border: 1px solid transparent; border-radius: var(--r-md); padding: 4px 12px; cursor: pointer;
}
.atp-tab:hover { color: var(--ink); border-color: var(--line); }
.atp-tab[aria-selected="true"] { color: var(--accent-text); background: var(--accent-soft); }
.atp-tab:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.atp-tabs .when { margin-left: auto; font-family: var(--mono); font-size: var(--text-xs); color: var(--faint); }

/* The Overview's headline (console kit: "the quality line is the headline"): the
   screen's finding in the kit's title weight, the window's dates to its right, and
   the comparison's derivation on hover. */
.v2-rv-quality .hl { font-size: var(--text-lg); font-weight: 600; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.v2-rv-quality .hl b { font-weight: 700; }
.v2-rv-quality .hl .rng { font-family: var(--mono); font-size: var(--text-xs); font-weight: 400; color: var(--faint); margin-left: 4px; }
.v2-rv-quality .span { flex: none; font-family: var(--mono); font-size: var(--text-xs); color: var(--faint); }

/* The window's own row under the title row: the date control, then the engine pick. */
.v2-rv-head.atr-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px;
  padding: 6px 34px 6px 28px; border-bottom: 1px solid var(--line-light); }
.atr-scope #v2rv-engwrap:empty { display: none; }
/* Chrome like the title row above it, so it spans as that row does: the screen's rule
   that stops a body block short of the scroller's gutter is for content, not chrome. */
#v2rv-head.atr-scope { margin-right: 0; }
@media (max-width: 700px) {
  .v2-rv-head.atr-scope { padding: 6px 16px; }
  /* The shell's facet wrap is `flex: none`, so at 375 the date control stayed 412 px wide
     and never reached its own wrap: here it takes the row and may shrink to it. */
  .atr-scope #v2rv-datewrap { flex: 1 1 100%; min-width: 0; max-width: 100%; }
}

/* A tile's change against the date control's comparison (console kit band: label,
   figure, delta). Muted: a change is a reading, not a verdict. */
.v2-rv-fig .dl { display: block; margin-top: 6px; font-family: var(--mono); font-size: var(--text-xs); color: var(--muted); }
.v2-rv-fig .dl .w { font-family: inherit; color: var(--faint); }

/* The Overview's body (console kit): two columns of cards, the month table below. */
.atr-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
/* A table wider than its card scrolls inside the card, never the page. */
.atr-card > :not(.atr-ch):not(.atr-door) { max-width: 100%; overflow-x: auto; }
@media (max-width: 1100px) { .atr-grid { grid-template-columns: minmax(0, 1fr); } }
.atr-card { display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 12px; }
.atr-ch { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.atr-ch h3 { margin: 0; font-size: var(--text-md); font-weight: 600; color: var(--ink); }
.atr-ch .sp { flex: 1; }
.atr-door {
  align-self: flex-end; margin-top: auto; padding: 10px 0 0; font: inherit; font-size: var(--text-xs);
  color: var(--accent-text); background: none; border: 0; cursor: pointer;
}
.atr-door:hover { text-decoration: underline; text-underline-offset: 3px; }
.atr-door:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.atr-pg {
  display: grid; grid-template-columns: minmax(0, 1fr) 72px 44px 60px; gap: 10px; align-items: center;
  padding: 7px 0; border-top: 1px solid var(--line-light); font-size: var(--text-sm);
}
.atr-pg.head { border-top: 0; padding-top: 0; font-size: var(--text-xs); color: var(--faint); }
.atr-pg .pn { font-family: var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atr-pg .pn.none { font-family: inherit; color: var(--muted); }
.atr-pg .n { font-family: var(--mono); color: var(--ink); text-align: right; }
.atr-pg .n.k { color: var(--muted); }
.atr-pg.head .pn, .atr-pg.head .n { font-family: inherit; color: var(--faint); }
.atr-foot { padding-top: 8px; font-family: var(--mono); font-size: var(--text-xs); color: var(--faint); }
/* The rank and vendor tables were built for a full-width pane (28px gutters, wide
   column floors). In a card they take the card's gutter and floors a card can hold. */
.atr-card .v2-rv-rank2, .atr-card .v2-rv-vend { border-bottom: 0; }
.atr-card .v2-rv-rank2 .hrow, .atr-card .v2-rv-rank2 .row,
.atr-card .v2-rv-vend .hrow, .atr-card .v2-rv-vend .row { padding: 7px 0; gap: 10px; }
.atr-card .v2-rv-rank2 .hrow, .atr-card .v2-rv-rank2 .row {
  grid-template-columns: minmax(92px, 1.15fr) minmax(40px, 1.4fr) minmax(56px, .7fr) minmax(40px, .55fr) minmax(52px, .6fr);
}
.atr-card .v2-rv-vend .hrow, .atr-card .v2-rv-vend .row {
  gap: 8px; grid-template-columns: minmax(72px, 1.1fr) minmax(60px, 1fr) minmax(56px, .9fr) minmax(58px, .8fr) minmax(50px, .75fr) minmax(72px, .8fr);
}

/* Paired cards: one declared height per grid row (v2rvPairCap sets the capacity).
   Head (padding, title, the box's gap, column heads) + capacity x the kit's 42px
   row + foot (gap, the door, padding). Rows take the kit's row height so the
   capacity is honest. */
.atr-card.pair { height: calc(96px + var(--atr-cap, 5) * var(--sec-row) + 56px); }
.atr-card.pair > :not(.atr-ch):not(.atr-door) { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.atr-card .v2-rv-rank2 .row, .atr-card .v2-rv-vend .row, .atr-card .atr-pg:not(.head) {
  min-height: var(--sec-row); padding-top: 0; padding-bottom: 0;
}
/* The week chart draws into the card: the plot takes whatever the head leaves. */
.atr-card .v2-rv-week { display: flex; flex-direction: column; padding: 0; border-bottom: 0; }
/* The last week's 44px hover target reaches 22px past the plot; clipped sideways
   only, so a week's reading (which opens upward) is never cut. */
.atr-card.pair > .v2-rv-week { overflow-x: clip; overflow-y: visible; }
/* One column: nothing beside a card, so nothing to pair with. Each sizes to itself. */
@media (max-width: 1100px) {
  .atr-card.pair { height: auto; }
  .atr-card.pair > :not(.atr-ch):not(.atr-door) { flex: none; overflow-y: visible; }
}
.atr-card .v2-rv-plotwrap { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; }
.atr-card .v2-rv-plotbox { min-height: 0; }
.atr-card .v2-rv-week svg { height: 100%; min-height: 130px; }
/* The type floor (12px) inside the cards: the chart's axes and the month table's
   column pills and sub-lines were drawn at 11. */
.atr-card .v2-rv-yax i, .atr-card .v2-rv-week .x, .atr-card .v2-rv-cols .lb, .atr-card .v2-rv-cols button,
.atr-card .v2-rv-months .mrow .mo .note, .atr-card .v2-rv-months .mrow .cell .sub { font-size: var(--text-xs); }

/* By engine: an engine the list knows and the window did not see is a muted 0; an
   engine analytics can never attribute says so across the figures. */
.v2-rv-rank2 .row.off { cursor: default; }
.v2-rv-rank2 .row.off .v, .v2-rv-rank2 .row.off .n { color: var(--faint); font-weight: 400; }
.v2-rv-rank2 .row.na .k { grid-column: 1 / 3; color: var(--muted); }
.v2-rv-rank2 .row.na .v { grid-column: 3 / -1; text-align: right; color: var(--faint); }

/* The Pages table: fixed layout, mono figures right-aligned, one rule per row. */
.atp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.atp-table { width: 100%; min-width: 1120px; border-collapse: collapse; table-layout: fixed; }
.atp-table th, .atp-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-light); text-align: right; }
.atp-table th:first-child, .atp-table td:first-child { text-align: left; width: 26%; }
.atp-table th:nth-child(2), .atp-table td:nth-child(2) {
  text-align: left; width: 16%; font-family: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.atp-table th {
  font-size: var(--text-xs); font-weight: 500; color: var(--faint); vertical-align: bottom; line-height: 1.3;
}
.atp-table th button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}
.atp-table th[aria-sort] button { color: var(--ink); }
.atp-table td { font-family: var(--mono); font-size: var(--text-sm); color: var(--ink); white-space: nowrap; }
.atp-table td:first-child { font-family: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atp-table tr:last-child td { border-bottom: 0; }
/* Status, the last column: words, not a figure. A lead in ink; the rest muted. */
.atp-table th:last-child, .atp-table td.atp-st {
  text-align: left; width: 13%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.atp-table td.atp-st { font-family: inherit; color: var(--muted); }
.atp-table td.atp-st.lead { color: var(--ink); font-weight: 500; }
.atp-q { color: var(--faint); }
.atp-part { color: var(--faint); margin-left: 4px; }
.atp-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 2px; font-family: var(--mono); font-size: var(--text-xs); color: var(--faint); }
.atp-foot .sp { flex: 1; }
.atp-note { padding: 24px 2px; color: var(--muted); font-size: var(--text-sm); }

/* Sessions: the line of readings above the table (plan: "a compact line of readings"). */
.ats-sum { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 14px; padding: 2px 2px 0; }
.ats-sum div { display: grid; gap: 2px; }
.ats-sum dt { font-size: var(--text-xs); color: var(--faint); }
.ats-sum dd { margin: 0; font-family: var(--mono); font-size: var(--text-sm); color: var(--ink); }
.ats-table { min-width: 980px; }
.ats-table th:first-child, .ats-table td:first-child { width: 18%; }
.ats-table th:nth-child(2), .ats-table td:nth-child(2) {
  text-align: right; width: auto; font-family: var(--mono); overflow: visible; white-space: nowrap;
}
.ats-table th:nth-child(2) { font-family: inherit; }
.ats-table th:last-child { text-align: right; width: auto; }

/* The foot's count opens the unclassified-referrer worklist below the table. */
.ats-link {
  font: inherit; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px;
}
.ats-link:hover { color: var(--ink); }
.ats-link:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ats-work { margin: 4px 0 18px; max-width: 880px; }
.ats-work .ats-act { display: flex; gap: 6px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.ats-work select, .ats-work .ats-new {
  font: inherit; font-size: var(--text-sm); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 3px 6px;
}
.ats-work .ats-new { width: 12em; }
.ats-work .atp-d-act { margin-left: 0; }

/* A page's name opens its drawer. */
.atp-pg {
  font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left;
}
/* A page row's Agent door (AGT gate 1a): the name truncates, the door keeps its width. */
.atp-pgcell { display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
.atp-pgcell .atp-pg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atp-pgcell .v2-ag-mini { flex: none; }
.atp-pg:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.atp-pg:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* The page drawer: facts, four aligned trends on one day axis, the sentence, the tables. */
/* A drawer's Agent door (AGT gate 1a), above its facts. */
.atp-d-agent { margin: 0 0 var(--sp-6); }
.atp-d-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 18px; font-size: var(--text-sm); }
.atp-d-meta dt { color: var(--faint); }
.atp-d-meta dd { margin: 0; color: var(--ink); }
.atp-d-trends { border-top: 1px solid var(--line); }
.atp-d-tr {
  display: grid; grid-template-columns: 9.5em 5em 1fr; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line-light); font-size: var(--text-sm);
}
.atp-d-tr .w { color: var(--muted); }
.atp-d-tr .v { font-family: var(--mono); color: var(--ink); text-align: right; }
.atp-spark { display: block; width: 100%; height: 24px; overflow: visible; }
.atp-spark path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.atp-spark path.gap { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 2 3; }
.atp-d-axis {
  display: flex; justify-content: space-between; margin-left: calc(14.5em + 24px);
  padding-top: 4px; font-family: var(--mono); font-size: var(--text-xs); color: var(--faint);
}
/* The page's product, answered by an admin: a text control beside the answer, and the
   picker below it. */
.atp-d-act {
  font: inherit; font-size: var(--text-xs); color: var(--muted); background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 1px 8px; margin-left: 6px;
}
.atp-d-act:hover { color: var(--ink); border-color: var(--muted); }
.atp-d-act.on { color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }
.atp-d-act:focus-visible, .atp-d-edit select:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.atp-d-act:disabled { opacity: 0.5; cursor: default; }
.atp-d-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.atp-d-edit select {
  font: inherit; font-size: var(--text-sm); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 3px 6px; max-width: 100%;
}
.atp-d-edit .atp-d-act { margin-left: 0; }

/* Page opportunities in the drawer: what was observed, its counts, the next move. */
.atp-d-leads { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.atp-d-leads li {
  display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line-light); font-size: var(--text-sm);
}
.atp-d-leads .w { color: var(--muted); }
.atp-d-leads li.lead .w { color: var(--ink); font-weight: 500; }
.atp-d-leads .d { font-family: var(--mono); font-size: var(--text-xs); color: var(--faint); }
.atp-d-leads .n { color: var(--muted); }
.atp-d-leads .n .k { color: var(--faint); margin-right: 8px; }
.atp-d-note { margin: 16px 0 0; font-size: var(--text-sm); color: var(--muted); line-height: 1.5; }
.atp-d-h { margin: 22px 0 8px; font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.atp-d-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.atp-d-table th, .atp-d-table td { padding: 6px 0 6px 10px; border-bottom: 1px solid var(--line-light); text-align: right; white-space: nowrap; }
.atp-d-table th:first-child, .atp-d-table td:first-child { padding-left: 0; text-align: left; white-space: normal; }
.atp-d-table th { font-size: var(--text-xs); font-weight: 500; color: var(--faint); }
.atp-d-table td { font-family: var(--mono); color: var(--ink); }
.atp-d-table td:first-child { font-family: inherit; }

/* ---- Crawlers (V6 P4): Summary | Request log ---------------------------------- */
#v2rv-bots { display: grid; gap: 16px; }
.atc-head { display: flex; align-items: center; gap: 10px; }
.atc-head .sp, .atc-logbar .sp, .atc-key .sp { flex: 1; }
.atc-body { display: grid; gap: 16px; }
.atc-leads dd .sub { display: block; font-family: var(--sans); font-size: var(--text-xs); color: var(--faint); }
.atc-mute { color: var(--faint); }
.atc-door { padding: 0; border: 0; background: none; font: inherit; font-size: var(--text-xs); color: var(--accent-text); cursor: pointer; }
.atc-door:hover { text-decoration: underline; text-underline-offset: 3px; }
.atc-door:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.atc-series svg { display: block; width: 100%; height: 120px; }
.atc-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 8px; font-size: var(--text-xs); color: var(--muted); }
.atc-key .k { display: inline-flex; align-items: center; gap: 6px; }
.atc-key i { width: 10px; height: 2px; border-radius: 1px; }
.atc-x { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--mono); font-size: var(--text-xs); color: var(--faint); }
.atc-origin { min-width: 0; }
.atc-origin th, .atc-origin td { padding: 7px 6px; font-size: var(--text-sm); text-align: right; border-top: 1px solid var(--line-light); }
.atc-origin thead th { border-top: 0; font-size: var(--text-xs); font-weight: 400; color: var(--faint); }
.atc-origin th[scope="row"] { text-align: left; font-weight: 400; color: var(--body); }
.atc-origin td { font-family: var(--mono); color: var(--ink); }
.atc-bots { min-width: 1040px; }
.atc-bots .atc-pick { width: 34px; text-align: center; }
.atc-compare .atc-cmp-row { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1.6fr) minmax(0, 1.4fr) minmax(120px, .8fr);
  gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-light); font-size: var(--text-sm); }
.atc-cmp-name { font-family: var(--mono); color: var(--ink); }
.atc-cmp-bars { display: flex; align-items: flex-end; gap: 1px; height: 32px; }
.atc-cmp-bars i { flex: 1; min-width: 1px; background: var(--series-1); border-radius: 1px 1px 0 0; }
.atc-cmp-mix { display: grid; gap: 2px; font-size: var(--text-xs); color: var(--muted); }
.atc-cmp-paths { font-family: var(--mono); font-size: var(--text-xs); color: var(--faint); text-align: right; }
.atc-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.atc-f { display: grid; gap: 3px; font-size: var(--text-xs); color: var(--faint); }
.atc-f input, .atc-f select { height: 30px; min-width: 128px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: var(--text-sm); }
.atc-logbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.atc-counts { display: inline-flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: var(--text-xs); color: var(--muted); }
/* The log: a fixed viewport, a spacer as tall as every loaded row, and only the rows the
   scroll position needs drawn into it, each placed at its own offset. */
.atc-log { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.atc-lh, .atc-lr { display: grid; align-items: center; gap: 10px; padding: 0 12px;
  grid-template-columns: 150px minmax(120px, 1fr) 118px 88px minmax(160px, 2fr) minmax(120px, 1fr) 84px 120px; }
.atc-lh { position: sticky; top: 0; z-index: 1; height: 34px; min-width: 1040px; border-bottom: 1px solid var(--line);
  background: var(--surface); font-size: var(--text-xs); color: var(--faint); }
.atc-lv { position: relative; height: 480px; overflow-y: auto; overflow-x: auto; scrollbar-gutter: stable; }
.atc-lv:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.atc-ls { position: relative; min-width: 1040px; }
.atc-lr { position: absolute; left: 0; right: 0; height: 36px; border-top: 1px solid var(--line-light); font-size: var(--text-sm); }
.atc-lr:focus { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.atc-lr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atc-lr .t, .atc-lr .p, .atc-lr .n { font-family: var(--mono); font-size: var(--text-xs); }
.atc-lr .n { text-align: right; }
.atc-lr .v.verified { color: var(--ok); }
.atc-lr .v.spoofed { color: var(--danger); }
.atc-lr .v.unverifiable { color: var(--muted); }
.atc-empty b { color: var(--ink); font-weight: 600; }

/* ---- Setup (V6 P5): the seven-group checklist ------------------------------------ */
#v2rv-setup { display: grid; gap: 16px; max-width: 880px; }
.ats-head h2 { margin: 0; font-size: var(--text-lg); font-weight: 600; color: var(--ink); }
.ats-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ats-g { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.ats-gh { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.ats-gh .sp { flex: 1; }
.ats-gh h3 { margin: 0; font-size: var(--text-md); font-weight: 600; color: var(--ink); }
.ats-gh .num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line); font-family: var(--mono); font-size: var(--text-xs); color: var(--muted); }
.ats-g.done .num { border-color: var(--ok-border); background: var(--ok-bg); color: var(--ok); }
.ats-gb { display: grid; gap: 10px; padding: 0 16px 14px 48px; }
.ats-gb:empty { display: none; }
:is(.ats-gh, .ats-src) .st { font-size: var(--text-xs); color: var(--muted); white-space: nowrap; }
:is(.ats-gh, .ats-src) .st.healthy { color: var(--ok); }
:is(.ats-gh, .ats-src) :is(.st.needs_attention, .st.stale, .st.waiting) { color: var(--warn); }
:is(.ats-gh, .ats-src) .st.sync_failed { color: var(--danger); }
.ats-cause { margin: 0; font-size: var(--text-sm); color: var(--ink); }
.ats-cause.mu { color: var(--muted); }
.ats-before { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--body); }
.ats-before li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ats-before b { font-weight: 400; color: var(--faint); font-size: var(--text-xs); }
.ats-facts { display: grid; gap: 4px; margin: 0; font-size: var(--text-sm); }
.ats-facts div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; }
.ats-facts dt { font-size: var(--text-xs); color: var(--faint); }
.ats-facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.ats-facts .mu, .ats-src .mu { color: var(--faint); font-family: var(--mono); font-size: var(--text-xs); }
.ats-door { padding: 0; margin-left: 8px; border: 0; background: none; font: inherit; font-size: var(--text-xs); color: var(--accent-text); cursor: pointer; }
.ats-door:hover { text-decoration: underline; text-underline-offset: 3px; }
.ats-door:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ats-sources { display: grid; border-top: 1px solid var(--line-light); }
.ats-src { display: grid; grid-template-columns: minmax(0, 1fr) auto 140px; gap: 10px; align-items: center; padding: 7px 0;
  border-bottom: 1px solid var(--line-light); font-size: var(--text-sm); }
.ats-src .nm { color: var(--ink); overflow-wrap: anywhere; }
.ats-src .mu { text-align: right; }
.ats-act { grid-column: 1 / -1; font-size: var(--text-xs); color: var(--warn); }
.ats-prov summary { cursor: pointer; font-size: var(--text-xs); color: var(--accent-text); }
.ats-prov summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ats-p { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr) 96px; gap: 4px 12px; align-items: baseline;
  padding: 8px 0; border-top: 1px solid var(--line-light); font-size: var(--text-sm); }
.ats-p .nm { color: var(--ink); }
.ats-p .pu { display: block; font-size: var(--text-xs); color: var(--faint); }
.ats-p .av, .ats-p .cav, .ats-p .det { font-size: var(--text-xs); color: var(--muted); }
.ats-p .av b { font-weight: 500; color: var(--body); }
.ats-p .det { grid-column: 1 / -1; }
/* A built provider's access and first-sync window (CIT P8): its own row, under the caveat. */
.ats-p .acc { grid-column: 1 / -1; font-size: var(--text-xs); color: var(--muted); }
.ats-p .lk { grid-column: 4; grid-row: 1; display: flex; justify-content: flex-end; gap: 12px; }
.ats-p .doc { font-size: var(--text-xs); color: var(--accent-text); }
@media (max-width: 720px) {
  .ats-gb { padding-left: 16px; }
  .ats-p { grid-template-columns: minmax(0, 1fr) auto; }
  .ats-p .lk { grid-column: 2; }
  .ats-src { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .ats-src .nm { grid-column: 1 / -1; }
  .ats-p .av, .ats-p .cav, .ats-p .det { grid-column: 1 / -1; }
  .ats-facts div, .ats-before li { grid-template-columns: 104px minmax(0, 1fr); }
}

/* Setup · the outcomes choice (drawn only for a reader who may change it) */
.ats-ke { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; padding: 10px 0 0; border: 0;
  border-top: 1px solid var(--line-light); }
.ats-ke legend { float: left; margin-right: 6px; padding: 0; font-size: var(--text-xs); color: var(--faint); }
.ats-ke-o { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: var(--text-xs); color: var(--ink); }
.ats-save { height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  font: inherit; font-size: var(--text-xs); color: var(--ink); cursor: pointer; }
.ats-save:hover { border-color: var(--accent-text); color: var(--accent-text); }
.ats-save:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ats-save:disabled { opacity: .5; cursor: default; }
.ats-who, .atp-d-who { margin: 0; font-size: var(--text-xs); color: var(--faint); }

/* Setup · a host two properties measure (SiteProperty C) */
.ats-ovs { display: grid; gap: 8px; }
.ats-ov { display: grid; gap: 4px; margin: 0; padding: 8px 0 0; border: 0; border-top: 1px solid var(--line-light); }
.ats-ov legend { padding: 0; font-family: var(--mono); font-size: var(--text-xs); color: var(--ink); }
.ats-ov-o { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: var(--text-sm); color: var(--ink); }
.ats-ov-o .mu { font-size: var(--text-xs); color: var(--faint); }
.ats-ov .ats-save { justify-self: start; margin-top: 4px; }

/* AI traffic on a product (V6 P6, ai-traffic-product.js): whose pages the figures read, how
   much of the window's AI traffic that is, and what has no page. One line, above the
   figures it qualifies. */
.atr-scope-strip { margin: 0 0 12px; font-size: var(--text-sm); line-height: 1.5; color: var(--muted); }
.atr-scope-strip b { font-weight: 500; color: var(--ink); }
.atr-scope-strip .mu { display: block; font-size: var(--text-xs); color: var(--muted); }
.v2-scopebar > .atr-scope-strip { margin: 0; }
