/*
 * assets/css/ai-answers.css: the Geneva board's "AI answers" tab (2026-09-29).
 *
 * Loaded lazily by dashboard.html the first time the tab opens, and scoped to #view-ai-answers so it can
 * change nothing else on the board. No new fonts: the board's DM Sans at its existing weights.
 *
 * THE TAB'S TOKENS. The board page declares only seven colour tokens, so the roles the tab needs are
 * aliased here ONCE, every value one the board already uses elsewhere (file:line in the build report):
 *   --aia-you          #344072  the board's navy (right panel, primary buttons)          "You" bar / pill
 *   --aia-board        var(--accent)  the board's green                                 agency on this board
 *   --aia-portal       #D97706  BRAND_COLORS[3]                                          property portal
 *   --aia-list         #0891B2  BRAND_COLORS[5]                                          ranking or review site
 *   --aia-hl           rgba(255,184,59,.10) the pinned-row tint (board-cards.css)          the selected row
 *   --aia-mark         rgba(255,184,59,.30) the filter-bar amber                          the headline's score
 *   --aia-warn-*       #C2410C on #FFF7ED   .bv-trend.breakout                             weak spot / warning
 *   --aia-ok-*         #16A34A on #ECFDF3   .bv-trend.rising                               check passed
 *   --aia-rose-*       #A02525 on #FDECEC, #F5C9C9 border  board-access.js .ba-previewbar  the preview banner
 *   --aia-cta          #2E3866  board-access.js paid action                              Start free trial / Subscribe
 *   --aia-text-2       #4a4a4a  board-shell.css --text-secondary (undefined on the board page itself)
 *
 * Added for the redesign Rossi approved on 1 Oct (no new colour: each is the board's own token, or a token above at
 * a lower strength, and a token at a tint counts as that token):
 *   --aia-text / --aia-muted / --aia-line / --aia-page / --aia-card   the board's --text-primary, --text-muted,
 *                               --border, --bg-primary, --bg-card (with the board's own values as fallbacks)
 *   --aia-on-dark      #ffffff  text on the navy (the right panel's)
 *   --aia-you-10       the navy at 10%            the agency's name in the headline (navy on this band), rank chips
 *   --aia-amber-45     the amber at 45%           the selected option's ring, the "ChatGPT only" chip (.aia-strip's border)
 *   --aia-board-10/40  the green at 10% / 40%     an agency chip's fill and border
 *   --aia-list-10/20/40, --aia-portal-10/40       a ranking site's and a portal's chip
 *   --aia-ok-40 / --aia-warn-40                   the borders of the ok and warning chips
 *   --aia-white-8/16/80                           tints on the navy (rgba(255,255,255,.08) is .aia-btn.ghost-dark's)
 *   --aia-shadow       the text colour at 14%      menus and the "?" text
 *   --aia-scrim        the text colour at 55%      the page behind the "See the answer" window (2 Oct)
 * Retired with their last users: --aia-you-text (the name is navy on its band), --aia-empty-dot, --aia-track (a bar's
 * track is --aia-line), --aia-board-tint (an off-board bar is --aia-board-10 or -40), --aia-neutral-* (a neutral chip is
 * --aia-text-2 on --aia-page). Only the preview's own blocks keep colours of their own (.aia-vs, .aia-lock, .aia-trial,
 * .aia-btn.ghost-dark).
 *
 * THE TAB'S CARDS, in page order (the redesign): the filters and how the questions are asked; AI visibility beside What to
 * fix first; the agency on each assistant; Agencies {assistant} names most beside What ChatGPT says and Named first;
 * Question by question; Websites ChatGPT links to beside Lists ChatGPT copies; the questions we ask; How we measure.
 */
#view-ai-answers {
  --aia-you: #344072;
  --aia-you-tint: rgba(52, 64, 114, .07);
  --aia-board: var(--accent, #1D9E75);
  --aia-portal: #D97706;
  --aia-list: #0891B2;
  --aia-hl: rgba(255, 184, 59, .10);
  --aia-mark: rgba(255, 184, 59, .38);   /* the headline's highlight, raised from .30 so it reads under the serif */
  --aia-amber: #FFB83B;
  /* the stories ring (21 Oct, Rossi: "those Instagram stories circled profile icons"): the board's amber, then the warm
     orange, pink and purple that make the ring read as stories; used by .aia-st-ring only */
  --aia-st-2: #F77737;
  --aia-st-3: #E1306C;
  --aia-st-4: #A13BB8;
  --aia-warn-fg: #C2410C;
  --aia-warn-bg: #FFF7ED;
  --aia-ok-fg: #16A34A;
  --aia-ok-bg: #ECFDF3;
  --aia-rose-fg: #A02525;
  --aia-rose-bg: #FDECEC;
  --aia-rose-border: #F5C9C9;
  --aia-cta: #2E3866;
  --aia-cta-hover: #28315A;
  --aia-go: #15803D;         /* the conversion green: a sector's preview-bar Subscribe (26 Oct 2026), 5.0:1 with white */
  --aia-go-hover: #166534;
  --aia-save: #6EE7A8;        /* what the yearly plan saves, on the navy panel (28 Oct 2026): mint, 6.4:1 on #344072 (measured) */
  --aia-text-2: #4a4a4a;
  --aia-text: var(--text-primary, #1a1a1a);
  --aia-muted: var(--text-muted, #888888);
  --aia-line: var(--border, #e5e5e5);
  --aia-page: var(--bg-primary, #f5f5f5);
  --aia-card: var(--bg-card, #ffffff);
  --aia-on-dark: #ffffff;
  --aia-you-10: rgba(52, 64, 114, .10);
  --aia-amber-45: rgba(255, 184, 59, .45);
  --aia-board-10: rgba(29, 158, 117, .10);
  --aia-board-40: rgba(29, 158, 117, .40);
  --aia-list-10: rgba(8, 145, 178, .10);
  --aia-list-20: rgba(8, 145, 178, .20);
  --aia-list-40: rgba(8, 145, 178, .40);
  --aia-portal-10: rgba(217, 119, 6, .10);
  --aia-portal-40: rgba(217, 119, 6, .40);
  --aia-ok-40: rgba(22, 163, 74, .40);
  --aia-warn-40: rgba(194, 65, 12, .40);
  --aia-white-8: rgba(255, 255, 255, .08);
  --aia-white-16: rgba(255, 255, 255, .16);
  --aia-white-80: rgba(255, 255, 255, .80);
  --aia-shadow: rgba(26, 26, 26, .14);
  --aia-scrim: rgba(26, 26, 26, .55);   /* the dim behind "See the answer" */
  /* ── THE FINAL DESIGN (2 Oct, approved by Rossi). Three fonts, for THIS TAB ONLY: this replaces the tab's
     earlier "no new font imports" rule. dashboard.html loads them beside this file, the first time the tab
     opens, so nobody who never opens it pays for them. Each has a local fallback, and every size below is set
     on the family that carries it, so a blocked font download changes the shape of the page and nothing else. */
  --aia-ui: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --aia-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --aia-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  /* the neutrals the design adds. --aia-muted is the board's #888, which is 3.5:1 on white and too light for
     text at 10-12 px, so every small grey WORD now takes --aia-text-3 (#6b7280, 4.8:1) and --aia-muted is left
     to the few places it already draws a shape. --aia-deco and --aia-deco-2 are chevrons, separators and
     control borders: never words. */
  --aia-text-3: #6b7280;
  --aia-deco: #9aa1a9;
  --aia-deco-2: #d5dae0;
  --aia-off: #b9bfc6;          /* an agency that is not on this board: its bars and its chip dots */
  --aia-divider: #f0f1f3;      /* a line inside a card, and the track a bar sits on */
  --aia-chipbg: #f1f3f5;       /* a count chip and a status pill */
  --aia-tree-rest: #e4e7ea;    /* every agency outside the six coloured ones, in a treemap */
  /* THE SIX TREEMAP COLOURS. The one place this tab adds colours of its own, because no six of the board's
     tokens are far enough apart to be told from each other by someone who is colour-blind, which is what a
     treemap asks of a reader. Each was checked against its neighbours; three of them are lighter than 3:1
     against white, which is why a tile also carries its name and the ranking below repeats the numbers. The
     text colour is stored beside each, since #008300 is the only one that needs white on it. */
  --aia-tree-1: #2a78d6; --aia-tree-2: #eb6834; --aia-tree-3: #1baf7a;
  --aia-tree-4: #eda100; --aia-tree-5: #e87ba4; --aia-tree-6: #008300;
  /* the weekly trend line (3 Oct): one colour per line, each 3:1 or more against white as a line must be. Its grid,
     axis, guide and shadow use the tab's own divider, decorative grey and shadow, the nearest to the coverage chart's */
  --aia-tr-all: #1F2A4F; --aia-tr-chatgpt: #10A37F; --aia-tr-copilot: #0078D4; --aia-tr-gemini: #7B61FF;
  --aia-tr-perplexity: #0E7490; --aia-tr-ai_overviews: #EA4335; --aia-tr-ai_mode: #C2410C;
  --aia-tree-on: #0b0b0b;              /* words on the five light tiles */
  --aia-tree-on-dark: #ffffff;         /* words on the sixth, the dark green */
  --aia-white-88: rgba(255, 255, 255, .88);   /* the body text of the navy band */
  --aia-white-72: rgba(255, 255, 255, .72);   /* its small labels */
  --aia-white-55: rgba(255, 255, 255, .55);   /* a leader's bar in a proof, beside the agency's amber one */
  --aia-radius: 14px;
  --aia-radius-in: 12px;       /* a box inside a card */
  --aia-gap: 18px;

  container-type: inline-size;
  container-name: aia;
  color: var(--text-primary);
  font-family: var(--aia-ui);
  font-size: 13px;
  line-height: 1.45;
  padding-bottom: 32px;
}
/* ── the type system (§3.1 of the final design). A SECTION TITLE is mono, small and upper case; a SMALL LABEL
   (a scorecard's label, a column head, a filter's label, a legend) is smaller mono; a META line, a count chip
   and a rank are mono; a BIG FIGURE is Geist 600; the HEADLINE and a QUOTE are the serif. Everything else is
   Geist. Mono and upper case together need the letter-spacing, or the words close up. ── */
#view-ai-answers .aia-ch-h,
#view-ai-answers .aia-how-btn > span:not(.aia-how-ico):not(.aia-how-chev) {
  font-family: var(--aia-mono); font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--aia-text-2);
}
#view-ai-answers .aia-eyebrow, #view-ai-answers .aia-col-head, #view-ai-answers .aia-colheads,
#view-ai-answers .aia-qt-head, #view-ai-answers .aia-key-lead, #view-ai-answers .aia-field > .aia-label,
#view-ai-answers .aia-sc-label, #view-ai-answers .aia-lock {
  font-family: var(--aia-mono); font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: var(--aia-text-3);
}
/* the small mono in upper case is wider than the sentence case it replaced ("LANGUE DU RAPPORT" is 120 px against
   about 105), which on a phone puts its last letter under the board's own handle for the list of agencies. It can
   lose its end to an ellipsis rather than to a cut: the control under it already says which language is chosen. */
#view-ai-answers .aia-field > .aia-label { font-size: 10.5px; line-height: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-ai-answers .aia-of, #view-ai-answers .aia-tchip, #view-ai-answers .aia-rk,
#view-ai-answers .aia-cell-rank, #view-ai-answers .aia-cf, #view-ai-answers .aia-ch-sub,
#view-ai-answers .aia-ring-cap, #view-ai-answers .aia-proof-label, #view-ai-answers .aia-more {
  font-family: var(--aia-mono);
}
#view-ai-answers .aia-pct { font-family: var(--aia-ui); font-weight: 600; }
#view-ai-answers .aia-fig.s28 .aia-pct, #view-ai-answers .aia-fig.s32 .aia-pct { letter-spacing: -.02em; }
/* the serif carries no weight above 400, so a heavier headline would be synthesised and look smeared */
#view-ai-answers .aia-hero h2, #view-ai-answers .aia-okchip:not(.sm) {
  font-family: var(--aia-serif); font-weight: 400; letter-spacing: 0;
}
#view-ai-answers *, #view-ai-answers *::before, #view-ai-answers *::after { box-sizing: border-box; }

/* The only rules outside the tab: the Posts view's own filters (platforms, dates, the filter button) do
   nothing here and would refetch the Posts view if pressed, so they step aside while the tab is open,
   exactly as they do for the AI board's Google Search view (dashboard.html body.view-brands). */
body.view-ai-answers #pills, body.view-ai-answers #pills-apply-btn,
body.view-ai-answers #date-wrap, body.view-ai-answers #filter-btn { display: none !important; }
/* And the second: while the "See the answer" window is open (2 Oct) the board's own panels step behind it. The page
   the tab is drawn in (#main) is fixed, which makes it its own layer, so a window inside it cannot rise above the
   top bar (100), the left menu (101) or the agency list (90) on its own: the layer itself is raised for as long as
   the window is open, and the dimmed page behind it is then the whole board, as a window should leave it. */
body.aia-answer-open #main { z-index: 1100; }
@media (max-width: 768px) { body.view-ai-answers #tb-plat-btn { display: none !important; } }
/* A signed-in visitor without the Geneva plan got TWO red preview strips here: the board's own ("Geneva Real Estate
   is a separate subscription") and the tab's, each with a Subscribe button. The tab's says what this tab holds, so
   the board's steps aside while the tab is open (it is back on every other view). */
body.view-ai-answers #ba-previewbar { display: none !important; }
/* :where() keeps these resets at the weight of a bare element, so every button class below still wins */
:where(#view-ai-answers) button { font: inherit; color: inherit; cursor: pointer; }
:where(#view-ai-answers) button:disabled { cursor: default; }
#view-ai-answers :where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--aia-board); outline-offset: 2px;
}
/* headings and status lines take focus only when the page hands it to them ("Try again", a sent question), never by
   Tab: a mouse click on the headline, then an arrow key, drew the green ring around it (the sixth review) */
#view-ai-answers h2[tabindex="-1"]:focus, #view-ai-answers [role="status"][tabindex="-1"]:focus { outline: none; }
/* on the navy fix card the ring is the amber: the green does not show on navy */
#view-ai-answers .aia-fixes :focus-visible { outline-color: var(--aia-amber); }
/* a hidden part stays hidden whatever class it carries (the browser's own [hidden] rule loses to any display) */
#view-ai-answers [hidden] { display: none !important; }
#view-ai-answers [lang="fr"] { font-style: normal; }
.aia-stack { display: flex; flex-direction: column; gap: var(--aia-gap); max-width: 1180px; }

/* ── the page grid (the redesign, 1 Oct): 12 columns on a wide tab, sized on the TAB's width, not the screen's (at a
   1440 screen the tab is 900 px, between the board's left menu and its list of agencies). One column up to 728 px,
   the middle layout from 729, the full one from 1052 (the mockup's 760 and 1099 screen widths, less its margins) ── */
.aia-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--aia-gap); }
.aia-grid > [class^="aia-s"] { display: flex; flex-direction: column; min-width: 0; }
.aia-grid > [class^="aia-s"] > .aia-card { flex: 1 1 auto; }
/* The 1 Oct review found Neho's two fixes stretched into an empty navy block beside a taller headline, and the
   rule that fixed it (.aia-row-b > .aia-s4 { align-self: start }) went with the layout: the fixes are a band of
   their own now, not a card beside the headline. The same symptom is kept away by .aia-fix-list's
   `align-items: start`, so a short fix card keeps its own height instead of stretching to a tall neighbour. */
.aia-row-a > .aia-s4 { align-self: stretch; }   /* the scorecards fill the headline's height beside it */
.aia-col { display: flex; flex-direction: column; gap: var(--aia-gap); }
.aia-col > .aia-card:last-child { flex: 1; }
@container aia (min-width: 729px) {
  .aia-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .aia-s12, .aia-s7, .aia-s5 { grid-column: span 12; }
  .aia-s8 { grid-column: span 7; }
  .aia-s4 { grid-column: span 5; }
  .aia-s6 { grid-column: span 6; }
  .aia-s5 > .aia-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@container aia (min-width: 1052px) {
  .aia-s8 { grid-column: span 8; }
  .aia-s4 { grid-column: span 4; }
  .aia-s7 { grid-column: span 7; }
  .aia-s5 { grid-column: span 5; }
  .aia-s5 > .aia-col { display: flex; }
}

/* ── a redesigned card: a one-line header, the body, a footer strip ── */
.aia-card.aia-panel { padding: 0; display: flex; flex-direction: column; min-width: 0; }
.aia-ch { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-bottom: 1px solid var(--aia-divider); }
.aia-ch-main { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; flex: 1; min-width: 0; }
.aia-ch-title { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.aia-ch-ico { display: inline-flex; flex: none; color: var(--aia-you); }
.aia-ch-h { margin: 0; }   /* (its type is the mono section-title rule at the top of this file) */
.aia-ch-sub { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; line-height: 16px; font-weight: 400; color: var(--aia-text-3); }
.aia-ch-sub .aia-logo { width: 14px; height: 14px; }
.aia-sep { color: var(--aia-muted); }
.aia-ch-main.wrapped .aia-ch-sub > .aia-sep:first-child { display: none; }   /* (measureHeads) */
.aia-ch-right { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; }
.aia-cf { margin-top: auto; min-height: 32px; padding: 8px 18px; background: var(--aia-page); border-top: 1px solid var(--aia-divider); border-radius: 0 0 13px 13px; font-size: 11.5px; line-height: 16px; font-weight: 400; color: var(--aia-text-3); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.aia-cf .aia-ico { color: var(--aia-text-2); }
.aia-cf-line { display: inline-flex; align-items: flex-start; gap: 6px; }
@container aia (max-width: 728px) {
  .aia-ch { flex-wrap: wrap; row-gap: 6px; }
  .aia-ch-main { flex: 1 1 200px; }
  /* (the right-hand slot wraps too: the question table's two chips and its logo were wider than a 320 px phone) */
  .aia-ch-right { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
}

/* ── cards and headings ── */
.aia-card { background: var(--aia-card); border: 1px solid var(--aia-line); border-radius: var(--aia-radius); padding: 18px 20px; }
.aia-h2 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aia-sub { color: var(--text-muted); font-size: 12.5px; margin: 4px 0 0; }
.aia-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); margin: 0; }
.aia-muted { color: var(--text-muted); }

/* ── the "You" badge on the preview's top 3 ── */
.aia-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.6; white-space: nowrap; text-transform: none; }
.aia-badge.you { color: var(--aia-on-dark); background: var(--aia-you); font-size: 10.5px; padding: 1px 7px; }

/* ── buttons ── */
.aia-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--aia-line); background: var(--aia-card); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.aia-btn:hover { background: var(--aia-page); }
.aia-btn.primary { background: var(--aia-cta); border-color: var(--aia-cta); color: var(--aia-on-dark); }
.aia-btn.primary:hover { background: var(--aia-cta-hover); }
/* busy (aria-disabled, which keeps keyboard focus where a disabled button would drop it): reads as waiting */
.aia-btn[aria-disabled="true"], .aia-btn[aria-disabled="true"]:hover { opacity: .65; cursor: default; }
.aia-btn.primary[aria-disabled="true"]:hover { background: var(--aia-cta); }
/* the conversion green (Rossi, 26 Oct 2026: the sector preview bar's Subscribe in "the typical green websites usually use
   for conversions"). #15803D, not the brighter #22C55E or #16A34A: white text on those measures 2.3:1 and 3.3:1, on this
   one 5.0:1, so the label stays readable at 13px. */
.aia-btn.go { background: var(--aia-go); border-color: var(--aia-go); color: var(--aia-on-dark); }
.aia-btn.go:hover { background: var(--aia-go-hover); border-color: var(--aia-go-hover); }
.aia-btn.go:focus-visible { outline: 2px solid var(--aia-go); outline-offset: 2px; }
.aia-btn.amber { background: var(--aia-amber); border-color: var(--aia-amber); color: var(--aia-you); }
.aia-btn.amber:hover { filter: brightness(.96); }
.aia-btn.ghost-dark { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.aia-btn.ghost-dark:hover { background: rgba(255, 255, 255, .08); }

/* ── trial strip and preview banner ── */
.aia-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px; background: var(--aia-hl); border: 1px solid var(--aia-amber-45); font-size: 13px; }
.aia-strip b { font-weight: 700; }
/* the AI visibility card's bar (12 Oct, timeline lane): a line and its button, the button at the far end (a label and a
   BUTTON may sit apart; the line wraps above the button on a phone) */
.aia-cardbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--aia-radius); background: var(--aia-card); border: 1px solid var(--aia-line); }
.aia-cardbar .aia-sub { margin: 0; font-size: 13px; }
.aia-cardbar .aia-btn { margin-left: auto; }
.aia-strip .aia-btn { margin-left: auto; }
.aia-previewbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--aia-rose-bg); border: 1px solid var(--aia-rose-border); color: var(--aia-rose-fg); font-size: 13px; }
.aia-previewbar p { margin: 0; flex: 1 1 260px; }
/* (26 Oct) with the price and guarantee the sentence now runs to the button: 28px between them, not 12, where they share a row */
@media (min-width: 769px) { .aia-previewbar p { margin-right: 16px; } }
.aia-previewbar .aia-price { white-space: nowrap; }
.aia-previewbar b { font-weight: 700; }

/* ── the filter row: the filters (or the preview's check box) and, at its right end, how we measure (Rossi, 29 Sep
   evening: "a well designed panel explaining our process of tracking AI mentions in 2 lines max") ── */
.aia-filters-row { display: flex; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; }
.aia-filters-row > .aia-check { flex: 1 1 420px; }
/* 2. The "how we measure" pill sits at the RIGHT END OF THE FILTER ROW (Rossi, 2 Oct: "why did you move the panel
   framed in red in its own row, move back where the blue arrow is pointing. Feel free to auto adjust the width of all
   panels based on screen size if you need room for this"). It did not fit before because the two menus were held at
   210 and 228 px whatever they had to say: "BARNES Genève" needs 110 and "ChatGPT" 60. They now take the width of
   their own words, down to a floor, and a longer name is shortened with an ellipsis rather than pushing the pill off
   the row. On a screen too narrow for both, the pill still drops below and fills the line rather than floating. */
.aia-filters > .aia-field > .aia-select { min-width: 0; max-width: 260px; }
.aia-filters > .aia-field > .aia-select[data-aia="open-assistant"] { min-width: 0; }
.aia-filters + .aia-process { margin-left: auto; }
/* it fills whatever line it lands on, so it never floats at the right end of an otherwise empty row (Rossi, 7 Oct).
   The class is put on by fitFilters(), which MEASURES the drop: the width where the panel stops fitting beside the
   filters is the board's own (Geneva has two groups of questions, the luxury board nine), so no single number is
   right for both. The container rule below is the same answer for a reader with no JavaScript. */
.aia-filters-row.aia-proc-wide > .aia-process { flex: 1 1 100%; margin-left: 0; }
@container aia (max-width: 1060px) { .aia-filters + .aia-process { flex: 1 1 100%; margin-left: 0; } }
/* the final design makes it a single WHITE pill, 44 px tall like the controls beside it. Its words are unchanged:
   the dates sentence is the one Rossi rewrote himself on 30 Sep ("First time asked: … Last time asked: …") and a
   live check reads it back, so only the type and the background move here. */
.aia-process { flex: 0 1 auto; margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 7px 14px 7px 8px; border: 1px solid var(--aia-line); border-radius: 10px; background: var(--aia-card); color: var(--aia-text-3); }
.aia-process-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--aia-you); color: var(--aia-on-dark); }
.aia-process p { margin: 0; font-family: var(--aia-mono); font-size: 11px; line-height: 15px; font-weight: 400; letter-spacing: .01em; white-space: nowrap; }
/* line 1 and its "?" (the redesign: how the questions are asked moved behind it), then two lines, the dates with a
   calendar in front, wrapping beside it rather than under it */
.aia-process b { display: inline; font-family: var(--aia-ui); color: var(--aia-text); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0; }
.aia-process p > span:not(.aia-tip):not(.aia-process-dates):not(.aia-process-when) { display: block; }
.aia-process p > .aia-ico { color: var(--aia-you); vertical-align: -1px; margin-right: 5px; }
/* the calendar and the day travel together, on every width (they are one element since 7 Oct) */
.aia-process-when { display: flex; align-items: center; gap: 5px; width: fit-content; }
.aia-process-when .aia-ico { flex: none; color: var(--aia-you); }
.aia-process-dates { display: inline-block; vertical-align: top; color: var(--aia-text); }
.aia-process .aia-tip { vertical-align: -3px; }
/* ACROSS THE WHOLE ROW, THE TITLE AND THE SENTENCE SHARE A LINE, rather than stacking with half the band empty beside
   them (Rossi, 1 Oct: "this text should be displayed in the same row as the row above ... as there is space"). The
   sentence follows the title behind a hairline.
   THE ASKING DATES KEEP A LINE OF THEIR OWN, which is the other thing Rossi asked for on 1 Oct ("Maybe rephrase this
   in a new line as 'First time asked: … Last time asked: …'") and which P37 of the live check reads back. They sit at
   the right end of that line as a chip, so the width is taken by something deliberate rather than by empty space.
   Narrower than the words, each part wraps by itself: nothing is forced into a column.
   (These come after the rules above on purpose: they carry the same weight, so the later one is the one that wins.)
   Only where the band can hold the two of them: on a phone the title alone fills the line, and sharing it there put
   the sentence off the right edge. Below this the panel keeps the stacked lines it has always had. */
@container aia (min-width: 620px) {
  /* ONE ROW OF THINGS THAT LINE UP (Rossi, 7 Oct, circling the round icon, the "?" and the date chip: "can you make
     sure the element highlighted in red are properly aligned"). All four parts are now items of one row, so the
     browser centres them on each other instead of each one carrying its own hand-tuned nudge: the circle was sitting
     14px below the title it belongs to, because it was being centred on a band two lines tall while the title was on
     the first; the "?" was 4px low, from a -3px nudge left over from an older layout; and the chip's right inset was
     15px against the circle's 9px on the left, so the two ends of the band did not mirror.
     The date keeps a line of its own WHENEVER IT DOES NOT FIT, which is the wrap doing it rather than a rule forcing
     it, and is what Rossi asked for on 1 Oct and what P37 of the live check reads back on the Geneva board. */
  .aia-proc-wide > .aia-process { padding-right: 8px; }
  .aia-proc-wide > .aia-process > p { flex: 1 1 auto; min-width: 0; white-space: normal;
    display: flex; align-items: center; flex-wrap: wrap; row-gap: 4px; }
  .aia-proc-wide > .aia-process p > b { line-height: 20px; }
  .aia-proc-wide > .aia-process p > span:not(.aia-tip):not(.aia-process-when) { display: inline; margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--aia-line); }
  .aia-proc-wide > .aia-process .aia-tip { vertical-align: 0; }
  .aia-proc-wide > .aia-process .aia-process-when { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--aia-you-10); color: var(--aia-you); font-weight: 600; }
  .aia-proc-wide > .aia-process .aia-process-dates { color: var(--aia-you); }
  /* TWO FULL LINES RATHER THAN ONE AND A HALF (Rossi, 7 Oct, arrow at the empty left end of the second row). Where all
     three parts do not fit on one line, the date chip used to wrap alone to the right with 520 px of empty band beside
     it. fitFilters() measures that wrap and adds .aia-proc-2line; the break below then starts a new line before the
     sentence, so line one is the claim and its "?", line two the sentence at the left and the chip at the right. The
     chip keeps its margin-left:auto, so it still sits at the right end of whatever line it lands on.
     Leading its line, the sentence drops the hairline and the indent that separated it from the title beside it. */
  .aia-proc-wide.aia-proc-2line > .aia-process > p > .aia-proc-br { display: block; flex: 0 0 100%; width: 100%; height: 0; margin: 0; }
  .aia-proc-wide.aia-proc-2line > .aia-process p > span:not(.aia-tip):not(.aia-process-when) { margin-left: 0; padding-left: 0; border-left: 0; }
  /* THE OTHER WAY ROUND, where the sentence and the chip are too long to share the second line (the Geneva board at a
     658 px band): the chip joins the title at the right end of line one and the sentence takes the whole of line two.
     Reordering, not re-writing: the chip is moved in front of the break, so the browser lays it out on line one. */
  .aia-proc-wide.aia-proc-split > .aia-process > p > .aia-process-when { order: 1; }
  .aia-proc-wide.aia-proc-split > .aia-process > p > .aia-proc-br { order: 2; display: block; flex: 0 0 100%; width: 100%; height: 0; margin: 0; }
  .aia-proc-wide.aia-proc-split > .aia-process p > span:not(.aia-tip):not(.aia-process-when) { order: 3; margin-left: 0; padding-left: 0; border-left: 0; }
}
/* the break is a layout element and nothing else: it draws nothing, says nothing to a screen reader, and exists only
   where the rule above switches it on */
.aia-proc-br { display: none; }
/* a phone or a tablet moves the "?" into the panel's top corner, so the sentence has no right end to run to: there
   the lines stay stacked whatever the container measures */
@media (max-width: 768px) {
  .aia-proc-wide > .aia-process p > span:not(.aia-tip):not(.aia-process-when) { display: block; margin-left: 0; padding-left: 0; border-left: 0; }
  .aia-proc-wide > .aia-process .aia-process-when { margin-left: 0; }
}
/* where the lines wrap (a phone, a narrow tab), the "?" sits in the panel's top corner: beside the text it could be
   pushed onto a line of its own ("Nous avons posé ... assistants IA" fills a phone's line) */
.aia-process { position: relative; }

.aia-notice { margin: 8px 0 0; font-size: 12.5px; color: var(--aia-warn-fg); }

/* ── the filter bar ── */
.aia-filters { display: flex; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; }
.aia-field { display: flex; flex-direction: column; gap: 4px; position: relative; }
.aia-field > .aia-label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--aia-text-2); }
.aia-select { display: flex; align-items: center; gap: 8px; min-width: 210px; min-height: 40px; padding: 0 12px; border: 1px solid var(--aia-line); border-radius: 8px; background: var(--aia-card); font-size: 13px; font-weight: 600; text-align: left; }
.aia-select:hover { border-color: var(--aia-muted); }
.aia-select > .aia-ico:last-child { flex: none; color: var(--aia-text-2); }
.aia-select[data-aia="open-assistant"] { min-width: 228px; }
.aia-select .aia-select-main { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aia-select.placeholder .aia-select-main { color: var(--text-muted); font-weight: 500; }
.aia-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: max(100%, 420px); max-width: calc(100vw - 32px); background: var(--aia-card); border: 1px solid var(--aia-line); border-radius: 12px; box-shadow: 0 12px 32px var(--aia-shadow); padding: 6px; }
.aia-pop[hidden] { display: none; }
.aia-pop .aia-pop-head { margin: 0; padding: 8px 10px 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--aia-text-2); }
.aia-search { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--aia-line); border-radius: 8px; font: inherit; font-size: 13px; }
.aia-options { list-style: none; margin: 6px 0 0; padding: 0; max-height: 320px; overflow: auto; }
.aia-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 13px; }
.aia-option:hover, .aia-option.active { background: var(--aia-page); }
.aia-option[aria-selected="true"] { background: var(--aia-hl); box-shadow: inset 0 0 0 1px var(--aia-amber-45); font-weight: 700; }
.aia-pop[data-aia-pop="assistant"] .aia-option { min-height: 48px; padding: 7px 10px; }
/* a line above "All six assistants": the six one by one, then all of them together */
.aia-pop[data-aia-pop="assistant"] .aia-option[data-assistant="all"] { position: relative; margin-top: 9px; }
.aia-pop[data-aia-pop="assistant"] .aia-option[data-assistant="all"]::before { content: ''; position: absolute; left: 6px; right: 6px; top: -5px; height: 1px; background: var(--aia-line); }
.aia-option .aia-opt-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.aia-option .aia-opt-sub { font-size: 12px; line-height: 16px; color: var(--aia-text-2); font-weight: 500; }
/* the assistants' own logos (Rossi, 1 Oct: "insert the platform official logo inside that dropmenu"), on the closed
   menu, its options and the Compare rows; "All six assistants" gets the six, overlapped, each on a white ring */
.aia-logo { flex: none; display: block; width: 18px; height: 18px; object-fit: contain; }
.aia-logo-all { display: grid; place-items: center; color: var(--aia-you); }
.aia-logos { flex: none; display: inline-flex; align-items: center; }
.aia-logos .aia-logo { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--aia-card); box-shadow: 0 0 0 1.5px var(--aia-card), 0 0 0 2.5px var(--aia-line); }
.aia-logos .aia-logo + .aia-logo { margin-left: -2px; }
.aia-option .aia-opt-logo { flex: none; width: 22px; display: grid; place-items: center; }
/* the figure and its count chip on one line ("30%  9 of 30"), never one under the other */
.aia-option .aia-opt-count { flex: none; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; display: flex; flex-direction: row; align-items: baseline; gap: 6px; white-space: nowrap; }
.aia-option[aria-disabled="true"] { color: var(--text-muted); cursor: default; }
.aia-option[aria-disabled="true"]:hover { background: transparent; }
.aia-options .aia-empty { padding: 10px; color: var(--text-muted); font-size: 12.5px; }
.aia-offboard-tag { font-size: 11px; line-height: 14px; color: var(--aia-text-2); font-weight: 500; }

/* ── the name dropdown (Rossi, 4 Nov 2026): one control at every width, on every report, search box first ──
   Wide enough for a long name on one line beside its logo and its tick. The list scrolls under the search box, which
   stays where it is; on a phone the height leaves room for the keyboard. */
.aia-pop[data-aia-pop="agency"] { width: max(100%, 380px); padding: 8px; }
.aia-option .aia-sel-av { width: 28px; height: 28px; font-size: 12px; }
.aia-sel-av.inset img { object-fit: contain; padding: 2px; box-sizing: border-box; }
.aia-select .aia-sel-av { width: 20px; height: 20px; margin-left: -2px; font-size: 10px; }
/* opening it scrolls no further than it must, and its label stays clear of the top bar and the phone's bottom menu */
.aia-pop[data-aia-pop="agency"] { scroll-margin: 132px 0 84px; }
.aia-search-wrap { position: relative; display: block; }
.aia-search-wrap > .aia-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--aia-text-2); pointer-events: none; }
.aia-search-wrap .aia-search { display: block; height: 40px; padding: 0 38px 0 35px; background: var(--aia-page); }
.aia-search-wrap .aia-search:focus { background: var(--aia-card); border-color: transparent; }
#view-ai-answers .aia-search-wrap .aia-search:focus-visible { outline-offset: -2px; }
.aia-search-clear { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: none; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--aia-text-2); }
.aia-search-clear:hover { background: var(--aia-line); color: var(--aia-text); }
.aia-search:not(:placeholder-shown) ~ .aia-search-clear { display: grid; }
.aia-pop[data-aia-pop="agency"] .aia-options { margin-top: 8px; max-height: min(372px, 46vh); scroll-padding: 4px; overscroll-behavior: contain; }
.aia-pop[data-aia-pop="agency"] .aia-option { min-height: 44px; font-weight: 500; }
.aia-pop[data-aia-pop="agency"] .aia-option[aria-selected="true"] { font-weight: 700; }
.aia-opt-name { overflow-wrap: anywhere; }
.aia-opt-name mark { background: none; color: inherit; font-weight: 800; box-shadow: inset 0 -2px 0 var(--aia-amber-45); }
.aia-opt-check { flex: none; display: grid; place-items: center; color: var(--aia-text); }
@media (max-width: 768px) { body.aia-list-open #mnav-panel-tab { visibility: hidden; } }
.aia-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--aia-line); border-radius: 8px; background: var(--aia-card); min-height: 40px; }
.aia-seg button { border: 0; background: transparent; border-radius: 6px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--aia-text-2); }
.aia-seg button[aria-pressed="true"] { background: var(--aia-you); color: var(--aia-on-dark); }
/* the middle layout: the filters fill the first line, the "how we measure" panel starts the second at the left */
@container aia (max-width: 1051px) {
  .aia-filters-row > .aia-process { margin-left: 0; }
}
/* a narrow tab: Agency and AI assistant across the whole width, Sellers or Buyers beside the language, then the panel */
@container aia (max-width: 728px) {
  /* (the two fields of the second line, "Questions from" and "Language", start at the same top and end at the same
     bottom: the language list stretches to the segmented control's height; their labels were 8 px apart, review of 1 Oct) */
  .aia-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; width: 100%; align-items: stretch; }
  .aia-filters > .aia-lang .aia-lang-wrap { flex: 1 1 auto; }
  .aia-filters > .aia-agency-menu, .aia-filters > .aia-asst-field { grid-column: 1 / -1; }
  .aia-filters .aia-select { width: 100%; min-width: 0; }
  .aia-filters .aia-seg { width: 100%; }
  .aia-filters .aia-seg button { flex: 1 1 50%; }
  .aia-filters-row > .aia-process { width: 100%; align-items: flex-start; }
}

/* ── AI visibility, the headline card (the redesign, 1 Oct): the ring of answers at the left, the sentence and its two
   chips beside it; on a narrow tab the sentence runs across the top and the ring sits beside the chips ── */
.aia-hero-body { flex: 1 1 auto; display: grid; grid-template-columns: 168px minmax(0, 1fr); grid-template-areas: "ring head" "ring chips"; column-gap: 28px; row-gap: 16px; align-content: center; padding: 22px 24px; }
.aia-hero-body.nm { display: block; }
.aia-ring { grid-area: ring; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.aia-ring-box { position: relative; width: 168px; height: 168px; }
.aia-ring-box svg { display: block; width: 100%; height: 100%; }
/* the final design's ring: 30 radial ticks, each 6 px across and 20 px long with rounded ends, 12° apart. The
   shown answers are navy from 12 o'clock clockwise, the rest the light grey of a bar's track. At zero every
   tick is a thin line, so an empty ring cannot be mistaken for a full one that failed to paint. */
.aia-tick, .aia-ring-track { fill: none; stroke: var(--aia-line); stroke-linecap: round; }
.aia-tick.on, .aia-ring-arc { fill: none; stroke: var(--aia-you); stroke-linecap: round; }
.aia-tick.zero { stroke: var(--aia-deco); }
.aia-ring-mid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
/* the share, its count chip beside it, under it only where the ring is too small (a phone) */
/* 104px, the inside of the ring: at 134 a short count ("8 of 39") stayed beside its figure and ran over the ticks (7 Nov, measured on the Swiss mortgage report and on the live vision clinics page) */
.aia-ring-mid .aia-rm { max-width: 104px; justify-content: center; align-items: center; column-gap: 3px; }
/* the share inside the ring is the page's largest figure (34 px, the final design) */
.aia-ring-mid .aia-fig.s28 .aia-pct { font-size: 34px; line-height: 38px; letter-spacing: -.02em; }
.aia-ring-mid .aia-pct { color: var(--aia-you); }
.aia-ring-mid .aia-of { padding: 1px 5px; }
.aia-rm.zero { display: inline-flex; align-items: baseline; gap: 4px; }
.aia-rm.zero b { font-size: 32px; line-height: 36px; font-weight: 700; color: var(--aia-you); font-variant-numeric: tabular-nums; }
.aia-rm.zero i { font-style: normal; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--aia-text-2); }
.aia-ring-cap { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--aia-text-2); white-space: nowrap; }
.aia-ring-cap i { flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--aia-you); }
/* The headline, in the serif (§3.1): 38 px / 1.22 where the design draws it, smaller where the column is
   narrower than the mockup's. The mockup had 1384 px of page with no side panel; this tab has at most 1180,
   and only 702 of that once the scorecards sit beside it, so the full 38 px is kept for the width where the
   card runs right across (729-1051, a 1440 screen) and the size steps down where it does not. */
.aia-hero h2 { grid-area: head; align-self: end; margin: 0; max-width: 30em; font-size: 30px; line-height: 1.22; color: var(--aia-text); text-wrap: pretty; }
/* its full 38 px wherever the headline card runs right across the tab, which is every width from the middle
   layout up to the point where the scorecards move in beside it and take 460 px of the line */
@container aia (min-width: 729px) and (max-width: 1159px) {
  .aia-hero h2 { font-size: 38px; }
}
.aia-hero-body.nm h2 { max-width: none; }
.aia-hero-note { margin: 6px 0 0; font-size: 14px; color: var(--aia-text-2); }
/* the agency's name (Rossi, 1 Oct: "navy on a light band"): the navy of its ring and its own bars, on a light navy band */
/* the sentence is in italic serif and the agency's own name stands upright in it, so the reader's eye lands on
   the name first (§3.1). The serif has no bold, so the name is told apart by the upright shape and the navy
   band, never by a weight the browser would have to invent. */
#view-ai-answers .aia-hero h2 { font-style: italic; }
.aia-hero .aia-hero-agency { font-style: normal; color: var(--aia-you); background: var(--aia-you-10); font-weight: 400; padding: 0 5px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.aia-hero .aia-score { background: var(--aia-mark); border-radius: 4px; padding: 0 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.aia-hero-chips { grid-area: chips; align-self: start; display: flex; flex-wrap: wrap; gap: 8px; }
/* under a zero headline, how many answers were read in all and where the agency does show up (wholeReadingHtml): its own
   line above the pills, inside their cell, because the body is a grid of named areas and a new cell would land loose */
.aia-hero-chips > .aia-hero-note { flex: 1 1 100%; margin: 0 0 2px; line-height: 1.45; }
/* "Week 1" and its "?" in one chip */
.aia-tchip.aia-week { padding: 2px 2px 2px 9px; line-height: 18px; }
.aia-week .aia-tip { vertical-align: top; margin-left: 4px; }
@container aia (max-width: 728px) {
  .aia-hero-body { grid-template-columns: 120px minmax(0, 1fr); grid-template-areas: "head head" "ring chips"; column-gap: 16px; padding: 16px; }
  .aia-ring-box { width: 120px; height: 120px; }
  .aia-ring-mid .aia-rm { max-width: 92px; }
  .aia-ring { align-items: flex-start; }   /* (a caption wider than the ring runs into the gap, not past the card's edge) */
  .aia-ring-mid .aia-fig.s28 .aia-pct { font-size: 24px; line-height: 28px; }
  .aia-hero h2 { font-size: 25px; line-height: 1.25; }
  .aia-hero-chips { align-self: center; }
}

/* ══ THE SCORECARDS (the final design, 2 Oct): four small cards beside the headline, where "What to fix first"
   used to sit. Each is one label, one big figure and one sub-line, and none of those three ever wraps (§3.5):
   a name too long for its card ends in "…" and gives itself in full on hover.

   WHERE THEY SIT, and why it is not simply "beside the headline at every width". The mockup had 1384 px of page
   and no side panel. This tab is at most 1180 px wide, and 702 of that once a 460 px column of scorecards sits
   beside it, which leaves the serif headline 454 px instead of the mockup's 660. So:
     · tab 1052 px and over  → beside the headline, 2 x 2, as drawn
     · tab 729 to 1051 px    → under it, one row of four, and the headline card runs right across at its full
                               38 px, which is the proportion the mockup actually shows (a 1440 screen lands here)
     · a phone               → under it, 2 x 2
   ══ */
.aia-scores { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: var(--aia-gap); }
.aia-sc { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 124px; padding: 14px 16px; background: var(--aia-card); border: 1px solid var(--aia-line); border-radius: var(--aia-radius-in); text-align: left; }
.aia-sc-top { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.aia-sc-label { flex: 1 1 auto; min-width: 0; font-size: 10.5px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aia-sc-mark { flex: none; display: inline-flex; align-items: center; }
.aia-sc-mark .aia-logo { width: 14px; height: 14px; }
.aia-sc-mark > .aia-ico { color: var(--aia-deco); }
.aia-sc-fig { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; font-family: var(--aia-ui); font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -.02em; color: var(--aia-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.aia-sc-fig .aia-star { display: inline-flex; }
.aia-sc-fig .aia-star .aia-ico { display: block; }
.aia-sc-fig .aia-wchip { align-self: center; font-size: 11px; }
.aia-sc-sub { margin: 0; font-family: var(--aia-ui); font-size: 12.5px; line-height: 17px; font-weight: 400; color: var(--aia-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the sub-line is ordinary inline text, not a flex box with a gap, so its middot has to carry its own spaces:
   without this it read "1 sur 30·leader 17 %". The same trap as the count chip that lost its spaces. */
.aia-sc-sub .aia-sep { margin: 0 5px; }
/* the fourth card is the way to the other side of the questions, so the whole card is the button */
button.aia-sc { font: inherit; color: inherit; width: 100%; }
button.aia-sc:hover { border-color: var(--aia-you); }
button.aia-sc .aia-sc-mark > .aia-ico { color: var(--aia-you); }
/* the line under the cards in a week whose map shows no stars (3 Oct): why the map card shows a place, not stars.
   Plain wrapping text, not a card: it explains one card and must not compete with the four figures above it. */
.aia-sc-note { margin: 10px 2px 0; font-family: var(--aia-ui); font-size: 12px; line-height: 17px; color: var(--aia-text-3); }
/* a card with nothing to show says which figure is missing, in words, never a blank or a bare dash */
.aia-sc-fig.none { font-size: 24px; line-height: 32px; color: var(--aia-text-2); }
/* HOW WIDE A SCORECARD HAS TO BE, measured rather than assumed. Its longest label is "ÉTOILES SUR LA CARTE"
   (about 146 px in the 10.5 px mono) plus its ChatGPT mark, and its longest sub-line is "9 sur 30 · 1re ex aequo
   sur 44" (about 185 px in the 12.5 px Geist). With 32 px of padding that is 220 px, which is exactly the minimum
   the brief gives. At 181 px, which is what a quarter of this tab comes to at a 1440 screen, both of those ended
   in "…" and the card said nothing. So the number of columns is chosen from the room there actually is: */
@container aia (min-width: 458px) { .aia-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container aia (min-width: 934px) { .aia-scores { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* ...and the cards sit UNDER the headline until there is room for a 460 px column beside it. Within this tab's
   1180 px that happens at about a 1600 px screen; below it the headline card runs right across instead, which is
   the proportion the mockup draws, and the scorecards take the next row in one strip of four. */
@container aia (min-width: 729px) {
  .aia-row-a > .aia-s8, .aia-row-a > .aia-s4 { grid-column: span 12; }
}
@container aia (min-width: 1160px) {
  .aia-row-a { grid-template-columns: minmax(0, 1fr) 460px; }
  .aia-row-a > .aia-s8, .aia-row-a > .aia-s4 { grid-column: auto; }
  .aia-row-a > .aia-s4 .aia-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container aia (max-width: 728px) {
  .aia-sc { min-height: 108px; padding: 12px 14px; }
  .aia-sc-fig { font-size: 28px; line-height: 32px; }
}

/* ── What to fix first (the redesign, 1 Oct): the board's navy, one row per fix, a press opens its proof and its one
   action on white ── */
/* ══ "À CORRIGER EN PREMIER" — THE NAVY BAND, FULL WIDTH, NEAR THE FOOT OF THE PAGE (the final design, 2 Oct).
   It was a narrow card of collapsed rows beside the headline. It is now a band right across the page with EVERY
   FIX OPEN: a reader who scrolls this far came for what to do, so nothing worth doing sits behind a press any
   more, and the accordion is gone. One column per fix, each at least 240 px, so four fixes read as four columns
   on a wide tab, as 2 x 2 in the middle layout and one under the other on a phone. With no fixes the band is
   not drawn at all, and nor is the chip in the headline that jumps to it.
   Everything inside a fix now sits on the NAVY rather than on a white inner panel, so each piece that used to
   be styled for white is given its navy colours below. ══ */
.aia-fixes { background: var(--aia-you); border-color: var(--aia-you); color: var(--aia-on-dark); scroll-margin-top: 16px; }
.aia-fixes .aia-ch { border-bottom-color: var(--aia-white-16); min-height: 58px; }
/* the one section title that is not the small mono: it is the page's call to action, so it keeps its own size */
#view-ai-answers .aia-fixes .aia-ch-h { font-family: var(--aia-ui); font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--aia-on-dark); }
.aia-fixes .aia-ch-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--aia-amber); color: var(--aia-text); }
.aia-fixes .aia-ch-sub, .aia-fixes .aia-ch .aia-sep { color: var(--aia-white-72); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; }
/* FOUR COLUMNS OR TWO, NEVER THREE. auto-fit would pick three at this tab's width and leave the fourth fix alone
   on a row of its own, which reads as an afterthought rather than as the fourth of four. So the count is chosen:
   four across where four fit at 240 px each, otherwise 2 x 2, otherwise one under the other. */
.aia-fix-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px 18px 18px; align-items: start; }
@container aia (min-width: 540px) { .aia-fix-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container aia (min-width: 1060px) { .aia-fix-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.aia-fix { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--aia-white-16); border-radius: var(--aia-radius-in); background: var(--aia-white-8); }
.aia-fix-h { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.aia-fix-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--aia-amber); color: var(--aia-text); font-family: var(--aia-mono); font-size: 12px; line-height: 26px; font-weight: 600; text-align: center; }
.aia-fix-title { min-width: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.aia-fix-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.aia-fix-chips > * { font-family: var(--aia-mono); font-size: 11px; }
.aia-fix-body { margin: 0; padding: 0; background: none; color: var(--aia-white-88); font-size: 13px; line-height: 1.5; }
/* the fix another card pointed at keeps an amber edge, so the reader sees which one they were sent to */
.aia-fix.pointed { border-color: var(--aia-amber); box-shadow: inset 0 0 0 1px var(--aia-amber); }
/* the proof, now on the navy: the agency's bar amber, the leader's white. The label keeps its sentence case
   (it is a sentence, not a label): set in upper case it ran to three lines of shouting inside a 240 px card. */
.aia-fixes .aia-proof-label { color: var(--aia-white-72); font-size: 11px; line-height: 15px; letter-spacing: 0; text-transform: none; }
.aia-fix-proof { padding: 10px; border-radius: 10px; background: var(--aia-white-8); }
.aia-fixes .aia-pbar-nm { color: var(--aia-on-dark); }
.aia-fixes .aia-pbar-nm.me { color: var(--aia-amber); }
.aia-fixes .aia-bar { background: var(--aia-white-16); }
.aia-fixes .aia-bar-fill { background: var(--aia-white-55); }
.aia-fixes .aia-bar-fill.k-you { background: var(--aia-amber); }
.aia-fixes .aia-pct, .aia-fixes .aia-stars-n, .aia-fixes .aia-stars-none { color: var(--aia-on-dark); }
.aia-fixes .aia-of, .aia-fixes .aia-tchip { background: var(--aia-white-8); border-color: var(--aia-white-16); color: var(--aia-on-dark); }
.aia-fixes .aia-action { color: var(--aia-white-88); font-size: 13px; line-height: 1.5; font-weight: 400; }
.aia-fixes .aia-action > .aia-ico { color: var(--aia-amber); }
.aia-fixes .aia-fix-text { color: var(--aia-white-88); }
/* the star shows by itself on the navy, so it loses the dark edge it needs on white */
.aia-fixes .aia-star path { stroke: none; }
/* one cell per answer: the ones that showed the agency in amber, the rest a white line */
.aia-fixes .aia-cellrow i { background: var(--aia-white-16); }
.aia-fixes .aia-cellrow i.on { background: var(--aia-amber); }
/* a missing question, and the button to go and see who wins it */
.aia-fixes .aia-missq-item { background: var(--aia-white-8); border-color: var(--aia-white-16); color: var(--aia-on-dark); }
.aia-fixes .aia-minisq i { border-color: var(--aia-white-55); }
.aia-fixes .aia-linkbtn { background: var(--aia-white-16); color: var(--aia-on-dark); }
.aia-fixes .aia-linkbtn:hover { background: var(--aia-white-8); }
.aia-fixes .aia-linkbtn > .aia-ico { color: var(--aia-amber); }
/* HOW TO WIN A MISSING QUESTION (14 Oct, Rossi): each question is a button that opens what to do about it, so the
   list stacks one per line, full width, with the arrow at the line's end. The first five show; "Show N more" the rest. */
/* the rest of a chip list (Geneva) flows on in the same rows as the first five, so no row is left half empty when it
   opens; the stacked list (luxury) keeps it a column. [hidden] still wins (the !important rule near the top). */
.aia-missq.aia-missq-rest { display: contents; }   /* both classes: .aia-missq (display:flex) comes later in this file */
.aia-missq-win { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.aia-missq-win .aia-missq.aia-missq-rest { display: flex; flex-direction: column; gap: 6px; }
.aia-win { min-width: 0; }
.aia-win-btn { width: 100%; cursor: pointer; font: inherit; font-size: 12px; line-height: 16px; font-weight: 500; text-align: left; }
.aia-win-btn > span:not(.aia-minisq) { flex: 1 1 auto; min-width: 0; }
.aia-win-btn > .aia-ico { flex: none; color: var(--aia-amber); transition: transform .15s ease; }
.aia-win-btn[aria-expanded="true"] > .aia-ico { transform: rotate(180deg); }
.aia-fixes .aia-win-btn:hover, .aia-fixes .aia-win-btn[aria-expanded="true"] { border-color: var(--aia-amber); }
.aia-win-body { margin: 6px 0 4px 6px; padding: 2px 0 2px 12px; border-left: 2px solid var(--aia-amber); color: var(--aia-white-88); font-size: 12.5px; line-height: 1.5; }
.aia-win-q { margin: 0 0 6px; font-weight: 600; color: var(--aia-on-dark); }
.aia-win-fact { margin: 0 0 6px; }
.aia-win-n { color: var(--aia-white-72); white-space: nowrap; }
.aia-win-todo { margin: 10px 0 4px; font-weight: 600; color: var(--aia-amber); }
.aia-win-steps { margin: 0; padding-left: 18px; }
.aia-win-steps li { margin: 0 0 6px; }
.aia-fixes .aia-missq-more { margin: 10px 8px 0 0; background: var(--aia-white-16); color: var(--aia-on-dark); }
.aia-fixes .aia-missq-more:hover { background: var(--aia-white-8); }
.aia-fixes .aia-missq-more > .aia-ico { color: var(--aia-amber); }
.aia-fixes .aia-missq-out { margin: 12px 0 0; }   /* after .aia-proof-label, which sets 0 0 6px later in this file */
/* the admin's note stays a light box: it is somebody else's words, quoted, and it should catch the eye here */
.aia-fixes .aia-warnbox { color: var(--aia-text); }
/* (the "?" inside this band gets its colours with the rest of the tips, further down, so the tab's one
   .aia-tip-pop rule is still the first one anything reading this file meets) */
@container aia (max-width: 728px) {
  .aia-fix-list { padding: 14px 14px 16px; gap: 12px; }
}
.aia-fix-empty { margin: 0; padding: 14px 16px; font-size: 13px; line-height: 18px; color: var(--aia-white-80); }
/* with nothing to fix, the band names the next gain on its own line, in full white so it reads as the thing to do
   rather than as a footnote to the good news (Rossi, 2 Oct) */
.aia-fix-next { display: block; margin-top: 6px; color: var(--aia-on-dark); }
.aia-fixes .aia-cf { background: var(--aia-white-8); border-top-color: var(--aia-white-16); color: var(--aia-on-dark); }
.aia-fixes .aia-cf .aia-ico { color: var(--aia-amber); }
.aia-cf .aia-sep { margin: 0 6px; }
.aia-cf .aia-nw { white-space: nowrap; }   /* (a date never splits from its month: "checked Sep" over "25") */
.aia-fixes .aia-cf .aia-sep { color: var(--aia-white-80); }
.aia-okdot { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--aia-ok-bg); }
.aia-fixes .aia-cf .aia-okdot .aia-ico, .aia-okdot .aia-ico { color: var(--aia-ok-fg); }
/* on Buyers: the fixes come from seller answers, said in one line with the way back */
.aia-fix-scope { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 8px 16px; background: var(--aia-white-8); border-bottom: 1px solid var(--aia-white-16); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--aia-on-dark); }
.aia-fix-scope > .aia-ico { flex: none; color: var(--aia-amber); }
.aia-fs-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 2px 10px; border: 0; border-radius: 999px; background: var(--aia-amber); color: var(--aia-text); font-size: 12px; line-height: 16px; font-weight: 700; }
.aia-fs-btn:hover { box-shadow: inset 0 0 0 2px var(--aia-text); }
/* the proof inside a fix: a label, bars or chips, then the one action */
.aia-proof-label { margin: 0 0 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--aia-text-2); }
.aia-fix-text { margin: 0; }
/* the name column is 124 px rather than the brief's 108: at 108 "BARNES Genève" broke across two lines inside a
   fix card, and a name on two lines is the thing the one-line rule exists to stop. The card has the room. */
.aia-pbar { display: grid; grid-template-columns: minmax(0, 124px) minmax(40px, 1fr) max-content; align-items: center; gap: 10px; min-height: 28px; }
.aia-pbar-nm { font-size: 13px; line-height: 18px; font-weight: 600; overflow-wrap: anywhere; }
.aia-pbar-nm.me { color: var(--aia-you); font-weight: 700; }
.aia-pbar > .aia-fig { flex-wrap: nowrap; white-space: nowrap; }
.aia-action { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0; font-size: 13px; line-height: 18px; font-weight: 700; }
.aia-action > .aia-ico { flex: none; margin-top: 1px; color: var(--aia-you); }
.aia-missq { display: flex; flex-wrap: wrap; gap: 6px; }
.aia-missq-item { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px 3px 6px; border: 1px solid var(--aia-line); border-radius: 8px; background: var(--aia-card); font-size: 12px; line-height: 16px; font-weight: 500; }
.aia-minisq { flex: none; display: inline-flex; gap: 2px; }
.aia-minisq i { width: 9px; height: 9px; border-radius: 2px; border: 1.5px solid var(--aia-muted); }
.aia-linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-top: 10px; padding: 4px 10px; border: 0; border-radius: 8px; background: var(--aia-you-10); color: var(--aia-you); font-size: 13px; line-height: 18px; font-weight: 600; }
.aia-linkbtn:hover { background: var(--aia-you-tint); text-decoration: underline; }
.aia-cellrow { display: grid; gap: 2px; height: 14px; margin: 8px 0 6px; }
.aia-cellrow i { border-radius: 2px; background: var(--aia-line); }
.aia-cellrow i.on { background: var(--aia-you); }
.aia-stars { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.aia-stars-n { display: inline-flex; align-items: center; gap: 4px; font-size: 18px; line-height: 24px; font-weight: 700; }
.aia-stars-none { margin: 0 0 6px; font-size: 18px; line-height: 24px; font-weight: 600; }
.aia-onmap { margin-bottom: 0; }
.aia-onmap .aia-tip { vertical-align: -4px; }
/* the star: the amber, with an edge on white (none on the navy, where the amber shows by itself) */
.aia-star { display: inline-block; color: var(--aia-amber); }
.aia-star .aia-ico { display: block; }
.aia-star path { stroke: var(--aia-text); stroke-width: 1px; }
.aia-nchip .aia-star { vertical-align: -1px; }
.aia-nchip .aia-star path { stroke: none; }
@media (pointer: coarse) {
  .aia-fs-btn, .aia-linkbtn { min-height: 44px; }
}

/* ── the agency on each assistant (the redesign, 1 Oct, in place of Compare): a cell per assistant, by share, then
   "All six" after a line; 2 across on a narrow tab, 3 in the middle layout, all in one row on a wide one ── */
.aia-asst-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.aia-strip-div { display: none; background: var(--aia-line); }
.aia-cell { position: relative; min-width: 0; border: 1px solid var(--aia-line); border-radius: 10px; background: var(--aia-card); }
.aia-cell:hover { border-color: var(--aia-muted); }
.aia-cell.on { border-color: var(--aia-you); box-shadow: inset 0 0 0 1px var(--aia-you); background: var(--aia-hl); }
.aia-cell.all { grid-column: 1 / -1; }
.aia-cell-btn { display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; min-height: 96px; padding: 10px 10px 12px 12px; border: 0; border-radius: 9px; background: transparent; text-align: left; }
.aia-cell-btn:disabled { color: var(--aia-muted); }
.aia-cell:has(.aia-cell-btn:disabled):hover { border-color: var(--aia-line); }
.aia-cell-name { display: flex; align-items: center; gap: 6px; min-height: 32px; font-size: 13.5px; line-height: 18px; font-weight: 600; }
/* Google's two cells carry a "?" at the top right of the CELL, which overlaps the maker line and nothing else, so the
   room for it is reserved on that line alone. Reserving it on the whole name block cost the name 22px and wrapped
   "AI Overviews" onto a second line in a 152 px cell (a 2560 px screen), which pushed that one figure 17 px below the
   other six: live_check P35 reads a row of cells as level or not. */
.aia-cell-name.has-tip .aia-cell-pre { padding-right: 22px; }
/* a phone narrower than 390: "Google" over "AI Overviews" takes three lines there, so every name keeps that height and
   the figures of a row of cells stay level (live_check P35) */
@container aia (max-width: 349px) { .aia-cell-name { min-height: 50px; align-items: flex-start; } }
.aia-cell-name2 { display: flex; flex-direction: column; min-width: 0; }
/* who makes the assistant, over its name (the final design): the small mono, upper case. A brand name, so it is
   never translated, and Perplexity's empty line still takes its height so a row of cards stays level. */
.aia-cell-pre { font-family: var(--aia-mono); font-size: 9.5px; line-height: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--aia-text-3); }
.aia-cell > .aia-tip { position: absolute; z-index: 2; top: 10px; right: 6px; margin: 0; }
.aia-cell-bar { display: block; height: 4px; border-radius: 2px; background: var(--aia-divider); overflow: hidden; }
.aia-cell-bar > i { display: block; height: 100%; border-radius: 2px; background: var(--aia-you); }
.aia-asst-strip .aia-of { padding: 1px 7px; }   /* (a little narrower: "Aucune  0 sur 30" keeps one line in a wide row of seven) */
.aia-cell-rank { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--aia-text-2); }
@container aia (min-width: 729px) {
  .aia-asst-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 16px 14px; }
  .aia-cell-btn { min-height: 0; }
}
@container aia (min-width: 1052px) {
  .aia-asst-strip { grid-template-columns: repeat(6, minmax(0, 1fr)) 1px minmax(0, 1.15fr); }
  .aia-strip-div { display: block; }
  .aia-cell.all { grid-column: auto; }
}

/* ══ WHO FILLS THE ANSWERS, ASSISTANT BY ASSISTANT (new in the final design, 2 Oct): one box per assistant,
   each showing that assistant's top ten agencies as tiles sized by how many of its answers show them.

   THE COLOUR FOLLOWS THE AGENCY, NEVER ITS RANK. The six colours are handed out once per report, to the six
   agencies that turn up in the most of the twelve top-ten lists (six assistants x two sides), and the selected
   agency is kept out of them because it has the navy. So switching assistant or side moves the tiles and never
   repaints one, which is the whole point: a reader learns a colour once and can then follow one agency across
   all six boxes. (Three of the six are lighter than 3:1 against white, which is why a tile carries its own
   name and the ranking underneath gives the same numbers as text.)

   ROOM. Six across needs about 170 px a box, so 1110 px of tab. Below that it is 3 x 2. On a PHONE it is one box
   per row (Rossi, 2 Oct: "the tree maps on mobile should be displayed as one per row"). Two across left a 166 px
   box on a 390 px phone, and measured there only 33 of the 60 tiles could show their agency: 15 were down to a
   single letter and 12 to a name with no count. On a 360 px phone it was worse, 22 of 60 with 28 bare letters. One
   per row gives a 346 px box and every tile its name. The plot stops being square there, because a square one cost
   2,392 px of scrolling for this one section: at three units wide to two tall it is 1,700 px and still 58 of 60
   tiles fully named. Width is what a label needs, and height is what the reader pays for. ══ */
.aia-tms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px 18px 16px; }
@container aia (max-width: 559px) { .aia-tms { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
@container aia (min-width: 560px) { .aia-tms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container aia (min-width: 1110px) { .aia-tms { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } }
.aia-tm { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.aia-tm-head { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 28px; padding: 0 1px 6px; border-bottom: 1px solid var(--aia-line); }
.aia-tm.on .aia-tm-head { border-bottom: 2px solid var(--aia-you); padding-bottom: 5px; }
.aia-tm-head .aia-logo { width: 16px; height: 16px; }
.aia-tm-nm { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--aia-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the chosen agency's share for this assistant. Its NAME shows while there is room for it; at six boxes across
   there is not, so the name drops and the section's own header is what says whose share this is. */
.aia-tm-you { flex: 0 1 auto; min-width: 0; display: inline-flex; gap: 4px; font-family: var(--aia-mono); font-size: 10.5px; line-height: 14px; color: var(--aia-text-3); white-space: nowrap; }
.aia-tm-you > span:last-child { flex: none; }
.aia-tm-you-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@container aia (min-width: 1110px) { .aia-tm-you-nm { display: none; } }
/* It used to be hidden on a phone: two boxes sharing the width left about 39 px for the assistant's name, so
   "ChatGPT" became "ChatG…" and a reader could not tell the boxes apart. One box per row has room for both. */
/* a box with nothing in it says which of the two reasons it is empty, so a working page and a broken one differ */
.aia-tm-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; font-size: 11px; line-height: 14px; color: var(--aia-text-3); text-align: center; }
/* the plot is square, so the box with its 28 px header comes out at about 7:8, the mockup's 210 x 240 */
.aia-tm-plot { position: relative; margin-top: 8px; aspect-ratio: 1 / 1; background: var(--aia-page); border-radius: 6px; overflow: hidden; }
/* and it stops being square on a phone, where one box per row would otherwise make this section 2,392 px tall. At
   three wide to two tall the tiles keep the width their labels need and the section costs 1,700 px instead. */
@container aia (max-width: 559px) { .aia-tm-plot { aspect-ratio: 3 / 2; } }
/* a tile sits at its exact share of the box. Its 1 px border is the page colour, so two neighbours read as a
   2 px gap without any of the rounding errors that subtracting pixels from percentages would bring. */
.aia-tt { position: absolute; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; gap: 1px; padding: 3px 4px; border: 1px solid var(--aia-page); border-radius: 4px; background: var(--aia-tree-rest); color: var(--aia-text); }
.aia-tt-nm { font-size: 11px; line-height: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aia-tt-n { font-family: var(--aia-mono); font-size: 11px; line-height: 13px; font-weight: 400; white-space: nowrap; opacity: .8; }
.aia-tt-in { font-size: 10px; line-height: 12px; font-weight: 700; white-space: nowrap; }
/* what a tile shows depends on how big it actually came out, measured after the draw (fitTreemaps) */
.aia-tt[data-lab="full"] .aia-tt-in, .aia-tt[data-lab="name"] .aia-tt-in, .aia-tt[data-lab="none"] .aia-tt-in { display: none; }
.aia-tt[data-lab="name"] .aia-tt-n, .aia-tt[data-lab="init"] .aia-tt-n, .aia-tt[data-lab="none"] .aia-tt-n { display: none; }
.aia-tt[data-lab="init"] .aia-tt-nm, .aia-tt[data-lab="none"] .aia-tt-nm { display: none; }
.aia-tt[data-lab="init"] { justify-content: center; align-items: center; padding: 0; }
.aia-tt[data-lab="none"] { padding: 0; }
.aia-tt.c1 { background: var(--aia-tree-1); color: var(--aia-tree-on); }
.aia-tt.c2 { background: var(--aia-tree-2); color: var(--aia-tree-on); }
.aia-tt.c3 { background: var(--aia-tree-3); color: var(--aia-tree-on); }
.aia-tt.c4 { background: var(--aia-tree-4); color: var(--aia-tree-on); }
.aia-tt.c5 { background: var(--aia-tree-5); color: var(--aia-tree-on); }
.aia-tt.c6 { background: var(--aia-tree-6); color: var(--aia-tree-on-dark); }
.aia-tt.you { background: var(--aia-you); color: var(--aia-on-dark); box-shadow: inset 0 0 0 2px var(--aia-amber); }
.aia-tm-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding: 0 18px 16px; }
.aia-tm-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 11.5px; line-height: 16px; color: var(--aia-text-3); }
.aia-tm-key-item { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.aia-tm-key-item > i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--aia-tree-rest); }
.aia-tm-key-item.you > i { background: var(--aia-you); box-shadow: inset 0 0 0 1.5px var(--aia-amber); }
.aia-tm-key-item.c1 > i { background: var(--aia-tree-1); } .aia-tm-key-item.c2 > i { background: var(--aia-tree-2); }
.aia-tm-key-item.c3 > i { background: var(--aia-tree-3); } .aia-tm-key-item.c4 > i { background: var(--aia-tree-4); }
.aia-tm-key-item.c5 > i { background: var(--aia-tree-5); } .aia-tm-key-item.c6 > i { background: var(--aia-tree-6); }
.aia-tm-cap { flex: 0 1 auto; margin: 0; font-family: var(--aia-mono); font-size: 10.5px; line-height: 14px; letter-spacing: .04em; color: var(--aia-text-3); text-align: right; }

/* ══ THE WEEKLY TREND LINE (3 Oct, Rossi: "I want the line chart look and feel and style to look like the line chart on
   the youtube-ai-coverage.html page, so make sure to copy it"). Copied from the YouTube AI coverage board
   (coverage.html: .chart-chips, .bchip, .chart-guide, .chart-tip, .chart-hint) at the same sizes, weights, corners and
   shadow; only the colour names are the tab's own (border, muted text, card). The drawing itself is in drawTrend. ══ */
.aia-tr-body { padding: 14px 18px 16px; }
.aia-tr-chips { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.aia-bchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--aia-line); border-radius: 20px; padding: 4px 10px 4px 7px; font: inherit; font-size: 11.5px; line-height: 16px; cursor: pointer; background: var(--aia-card); color: var(--aia-text-3); }
.aia-bchip .d { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.aia-bchip.on { border-color: transparent; color: var(--aia-on-dark); font-weight: 600; }
.aia-bchip .x { font-size: 12px; opacity: .7; }
.aia-bchip.dim { opacity: .35; cursor: not-allowed; }
.aia-bchip:focus-visible { outline: 2px solid var(--aia-you); outline-offset: 2px; }
.aia-chip-hint { font-size: 10.5px; color: var(--aia-text-3); }
.aia-chip-hint.full { color: var(--aia-text); }
.aia-tr-canvas { position: relative; width: 100%; min-height: 280px; }
.aia-tr-hint { margin: 6px 0 0; font-size: 10.5px; line-height: 15px; color: var(--aia-text-3); }
.aia-tr-guide { position: absolute; z-index: 19; pointer-events: none; width: 1px; background: var(--aia-shadow); }
.aia-tr-tip { position: absolute; z-index: 20; pointer-events: none; background: var(--aia-card); border: 1px solid var(--aia-line); border-radius: 10px; box-shadow: 0 6px 20px var(--aia-shadow); padding: 8px 10px; font-size: 11px; min-width: 160px; max-width: 300px; }
.aia-tr-tip .ct-date { font-family: var(--aia-mono); font-size: 10px; color: var(--aia-text-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.aia-tr-tip .ct-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; white-space: nowrap; }
.aia-tr-tip .ct-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.aia-tr-tip .ct-name { font-weight: 600; color: var(--aia-text); }
.aia-tr-tip .ct-val { margin-left: auto; padding-left: 14px; color: var(--aia-text-3); font-family: var(--aia-mono); font-size: 10.5px; }
.aia-tr-tip .ct-val b { color: var(--aia-text); font-weight: 700; }
/* a finger, not a pointer: every control of this tab is 44 px tall on a touch screen (P44), so the chips are too there.
   The coverage chart's chips are 26 px, which suits a mouse and is too small to hit with a thumb; on a computer they
   keep that size exactly. */
@media (pointer: coarse) { .aia-bchip { min-height: 44px; padding: 4px 14px 4px 11px; } }
/* a phone: the drawing is 220 px tall (drawTrend), and the card keeps the 5 px sides every panel has there */
@media (max-width: 768px) { .aia-tr-canvas { min-height: 220px; } .aia-tr-body { padding-left: 5px; padding-right: 5px; } }

/* ── the questions we ask (the redesign, 1 Oct): one header line (its icon, the six assistants' logos, how many from
   each side, then its two buttons, under the title on a narrow card), the suggest form under it, the lists below ── */
.aia-ch.wraps { flex-wrap: wrap; row-gap: 8px; }
.aia-q-card .aia-ch-sub .aia-logos .aia-logo { width: 18px; height: 18px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.aia-q-card .aia-ch-sub .aia-logos .aia-logo + .aia-logo { margin-left: 4px; }
.aia-qhead-right { display: inline-flex; align-items: center; gap: 8px; }
.aia-obtn, .aia-abtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; border-radius: 8px; font-size: 13px; line-height: 18px; white-space: nowrap; }
.aia-obtn { padding: 0 12px; border: 1px solid var(--aia-line); background: var(--aia-card); font-weight: 600; }
.aia-obtn:hover { border-color: var(--aia-muted); }
.aia-abtn { padding: 0 14px; border: 0; background: var(--aia-amber); color: var(--aia-text); font-weight: 700; }
.aia-abtn:hover { box-shadow: inset 0 0 0 2px var(--aia-text); }
.aia-obtn > .aia-ico, .aia-morebtn > .aia-ico, .aia-dom-btn > .aia-ico, .aia-how-chev { transition: transform .15s ease; }
.aia-obtn[aria-expanded="true"] > .aia-ico, .aia-morebtn[aria-expanded="true"] > .aia-ico, .aia-dom-btn[aria-expanded="true"] > .aia-ico,
.aia-how-btn[aria-expanded="true"] .aia-how-chev { transform: rotate(180deg); }
.aia-q-lists { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 32px; padding: 16px; }
.aia-ql-h { margin: 0 0 8px; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--aia-text); }
.aia-ql { list-style: none; margin: 0; padding: 0; counter-reset: aia-q; display: flex; flex-direction: column; gap: 8px; }
.aia-ql li { counter-increment: aia-q; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 6px; font-size: 13px; line-height: 18px; }
.aia-ql li::before { content: counter(aia-q); grid-row: span 2; text-align: right; color: var(--aia-text-2); font-variant-numeric: tabular-nums; }
.aia-ql-main { font-weight: 500; color: var(--aia-text); }
.aia-ql-fr { grid-column: 2; font-size: 12px; line-height: 16px; color: var(--aia-text-2); }
/* the suggest form, right under the header: the price sentence on the tab's amber tint, then the form */
.aia-suggest-box { padding: 12px 16px 16px; border-bottom: 1px solid var(--aia-line); }
.aia-suggest { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--aia-hl); border: 1px solid var(--aia-amber-45); font-size: 13px; line-height: 18px; }
.aia-suggest-form { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid var(--aia-line); border-radius: 10px; background: var(--aia-card); }
.aia-suggest-form textarea { width: 100%; min-height: 72px; padding: 8px 10px; border: 1px solid var(--aia-line); border-radius: 8px; font: inherit; font-size: 13px; resize: vertical; }
.aia-suggest-form .aia-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aia-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.aia-form-msg { font-size: 12.5px; }
.aia-form-msg.err { color: var(--aia-warn-fg); }
@container aia (min-width: 729px) {
  .aia-q-lists { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@container aia (max-width: 728px) {
  /* a narrow card: the two buttons under the title, each across the whole width */
  .aia-ch.wraps .aia-ch-right { flex: 1 1 100%; }
  .aia-qhead-right { flex: 1 1 100%; flex-wrap: wrap; }
  .aia-qhead-right > button { flex: 1 1 100%; min-height: 44px; }
}

/* ── How we measure (the redesign, 1 Oct): one button, closed by default, the method in full under it ── */
.aia-how-h { margin: 0; }
.aia-how-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 8px 16px; border: 0; border-radius: 11px; background: transparent; color: var(--aia-text); font-size: 15px; line-height: 20px; font-weight: 700; text-align: left; }
.aia-how-btn:hover { background: var(--aia-page); }
.aia-how-ico { display: inline-flex; flex: none; color: var(--aia-you); }
.aia-how-chev { display: inline-flex; flex: none; margin-left: auto; color: var(--aia-text-2); }
.aia-how-body p { margin: 0; padding: 0 16px 16px; max-width: 80em; font-size: 13px; line-height: 19px; color: var(--aia-text-2); }

/* ── the preview's figures (its social media and AI visibility panel) ── */
.aia-kpi-val { font-size: 25px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin: 0; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.aia-kpi-val.small { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.aia-kpi-foot { font-size: 12px; color: var(--aia-text-2); margin: 0; }

/* ── bars (ranking, compare, sources) ── */
.aia-rows { display: flex; flex-direction: column; gap: 2px; }
.aia-row { display: grid; grid-template-columns: 34px minmax(0, 1.3fr) minmax(40px, 1fr) max-content; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; }
.aia-row.you { background: var(--aia-hl); font-weight: 700; }
.aia-row .aia-rank { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.aia-row .aia-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
.aia-row .aia-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aia-row .aia-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12.5px; white-space: nowrap; }
/* AI visibility (30 Sep): a whole percent first, and beside it, always, the count it comes from, in the darker grey so
   it stays readable (the old muted grey was about 3.5:1). In a row: percentages under percentages, counts under counts. */
.aia-pct { font-weight: 700; font-variant-numeric: tabular-nums; }
/* THE COUNT CHIP (the redesign, 1 Oct): every count sits beside its figure as a small grey chip, "30%  9 of 30".
   inline-block, never flex: a flex box drops the spaces at its pieces' edges ("1 of 30answers"). Every other chip of
   the tab follows the same rule. */
.aia-of { display: inline-block; min-height: 20px; padding: 1px 8px; border-radius: 999px; background: var(--aia-page); border: 1px solid var(--aia-line); color: var(--aia-text-2); font-size: 12px; line-height: 16px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap; }
.aia-tchip { display: inline-block; min-height: 20px; padding: 1px 8px; border-radius: 999px; background: var(--aia-page); border: 1px solid var(--aia-line); color: var(--aia-text-2); font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.aia-tchip.on-white, .aia-of.on-white { background: var(--aia-card); }
/* a figure and its chip, on one line; .aia-fit.stack puts every chip of a row under its figure together (fitFigures) */
.aia-fig { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.aia-fig .aia-pct { white-space: nowrap; }
.aia-fig.s13 .aia-pct { font-size: 13px; line-height: 18px; }
.aia-fig.s18 .aia-pct { font-size: 18px; line-height: 24px; }
.aia-fig.s24 .aia-pct { font-size: 24px; line-height: 28px; letter-spacing: -.01em; }
.aia-fig.s28 .aia-pct { font-size: 28px; line-height: 32px; letter-spacing: -.01em; }
.aia-fig.s32 .aia-pct { font-size: 32px; line-height: 36px; letter-spacing: -.01em; }
.aia-fit.stack .aia-fig { flex-direction: column; align-items: flex-start; }
/* the preview's three AI figures keep their count under the figure (frozen with the preview) */
.aia-kpi-val.fig { align-items: baseline; flex-wrap: wrap; column-gap: 8px; row-gap: 0; }
.aia-vs-nums .aia-kpi-val.fig { flex-direction: column; align-items: flex-start; row-gap: 0; }
.aia-vs-nums .aia-kpi-val.fig .aia-of { font-size: 12px; }
/* a list row's figure: the percentage, then its chip, never wrapping (it takes the room it needs) */
.aia-row .aia-val { display: grid; grid-template-columns: minmax(0, max-content) max-content; column-gap: 6px; justify-items: end; align-items: baseline; white-space: nowrap; }
.aia-row .aia-val .aia-pct { font-size: 13px; }
.aia-rows .aia-pct.zero { font-weight: 500; color: var(--aia-text-2); }
.aia-row.you .aia-of { font-weight: 500; }
.aia-none { grid-column: 1 / -1; justify-self: end; }
.aia-col-head { margin: 8px 0 0; padding-right: 8px; text-align: right; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--aia-text-2); }
.aia-track { display: block; height: 12px; border-radius: 3px; background: var(--aia-line); overflow: hidden; }
.aia-fill { display: block; height: 100%; border-radius: 3px; background: var(--aia-board); }
.aia-fill.k-you { background: var(--aia-you); }
.aia-fill.k-agency { background: var(--aia-board); }
.aia-fill.k-off { background: var(--aia-board-10); border: 1.5px dashed var(--aia-board); }
.aia-fill.k-portal { background: var(--aia-portal); }
.aia-fill.k-ranking { background: var(--aia-list); }
.aia-fill.k-other { background: var(--aia-muted); }
.aia-sw { display: inline-block; flex: none; width: 16px; height: 8px; border-radius: 4px; }
.aia-sw.k-you { background: var(--aia-you); }
.aia-sw.k-agency { background: var(--aia-board); }
.aia-sw.k-off { background: var(--aia-off); }   /* (the bar it stands for: .aia-bar-fill.k-off) */
.aia-sw.k-portal { background: var(--aia-portal); }
.aia-sw.k-ranking { background: var(--aia-list); }
.aia-sw.k-other { background: var(--aia-muted); }
/* the redesign's bar: 8 px, the kind's colour on a grey track (the agency's own in navy) */
.aia-bar { display: block; height: 8px; border-radius: 4px; background: var(--aia-divider); overflow: hidden; }
.aia-bar-fill { display: block; height: 100%; border-radius: 4px; background: var(--aia-board); }
.aia-bar-fill.k-you { background: var(--aia-you); }
.aia-bar-fill.k-agency { background: var(--aia-board); }
/* an agency not on this board: a plain grey bar (the final design, §3.2), not a faded green that read as a
   half-measured agency on the board */
.aia-bar-fill.k-off { background: var(--aia-off); }
.aia-bar-fill.k-ranking { background: var(--aia-list); }
.aia-bar-fill.k-portal { background: var(--aia-portal); }
.aia-bar-fill.k-other { background: var(--aia-muted); }
/* the key under a card: "KEY", then a sample of each kind it shows and what it means */
.aia-key { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--aia-text-2); }
.aia-key-lead { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--aia-text-2); }
.aia-key-item { display: inline-flex; align-items: center; gap: 5px; }
/* an agency's picture beside its name: the board's own, else its letter on its kind's tint */
.aia-av { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; font-size: 10px; line-height: 1; font-weight: 700; }
.aia-av.sq { border-radius: 5px; }
.aia-av-img { background: var(--aia-card); box-shadow: inset 0 0 0 1px var(--aia-line); }
.aia-av-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aia-av-img.is-you { overflow: visible; box-shadow: 0 0 0 2px var(--aia-you); }
.aia-av-img.is-you img { border-radius: inherit; }
.aia-av-letter { color: var(--aia-text); border: 1px solid transparent; background: var(--aia-page); }
.aia-av-letter.k-agency { background: var(--aia-board-10); border-color: var(--aia-board-40); }
.aia-av-letter.k-off { background: var(--aia-card); border: 1px dashed var(--aia-board); }
.aia-av-letter.k-ranking { background: var(--aia-list-10); border-color: var(--aia-list-40); }
.aia-av-letter.k-portal { background: var(--aia-portal-10); border-color: var(--aia-portal-40); }
.aia-av-letter.k-other { background: var(--aia-page); border-color: var(--aia-line); }
.aia-av-letter.k-you { background: var(--aia-you); border-color: var(--aia-you); color: var(--aia-on-dark); }
/* the "?" (Rossi, 1 Oct: "a tooltip small question icon and when hovered or clicked on mobile, explain the difference
   between Google AI overviews Vs Google AI Mode"): hover where there is a mouse, focus, or a press; its text drops
   under the row, the row's width, so it never runs off a narrow screen */
/* (the redesign, 1 Oct: the one "?" for every explanation moved behind one; its text opens under it, centred on it and
   kept inside the screen by placeTip, as wide as its words up to 280 px) */
.aia-tip { position: relative; display: inline-flex; flex: none; margin-left: 4px; }
.aia-tip-btn { position: relative; z-index: 1; flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1px solid var(--aia-muted); background: var(--aia-card); color: var(--aia-text-2); font-size: 11px; font-weight: 700; line-height: 1; }
.aia-tip-btn::before { content: ''; position: absolute; inset: -9px; }   /* a 36 px press area around the 18 px circle (44 px on a touch screen, below) */
@media (pointer: coarse) { .aia-tip-btn::before { inset: -13px; } .aia-tip { margin-left: 8px; } }
.aia-tip-btn:hover, .aia-tip.open .aia-tip-btn { border-color: var(--aia-you); color: var(--aia-you); }
.aia-tip-pop { display: none; position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: max-content; max-width: min(280px, calc(100vw - 32px)); padding: 10px 12px; border-radius: 8px; background: var(--aia-you); color: var(--aia-on-dark); font-size: 12px; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; box-shadow: 0 8px 24px var(--aia-shadow); }
/* on the navy fix card: a white ring, amber when it is open */
.aia-fixes .aia-ch .aia-tip-btn { background: transparent; border-color: var(--aia-white-80); color: var(--aia-on-dark); }
.aia-fixes .aia-ch .aia-tip-btn:hover, .aia-fixes .aia-ch .aia-tip.open .aia-tip-btn { border-color: var(--aia-amber); color: var(--aia-amber); }
/* a "?" INSIDE a fix card, now that a fix sits on the navy rather than on a white inner panel: a white ring, and
   its text near-black, because the tab's navy pop would be invisible on the navy card */
.aia-fixes .aia-fix-body .aia-tip-btn { background: transparent; border-color: var(--aia-white-80); color: var(--aia-on-dark); }
.aia-fixes .aia-fix-body .aia-tip-btn:hover, .aia-fixes .aia-fix-body .aia-tip.open .aia-tip-btn { border-color: var(--aia-amber); color: var(--aia-amber); }
.aia-fixes .aia-fix-body .aia-tip-pop { background: var(--aia-text); color: var(--aia-on-dark); }
@media (hover: hover) { .aia-tip:hover .aia-tip-pop { display: block; } }
/* (a strip from the "?" down to its text while the pointer shows it, so the pointer can move onto the text) */
@media (hover: hover) { .aia-tip:hover .aia-tip-btn::after { content: ''; position: absolute; left: -9px; right: -9px; top: 100%; height: 40px; } }
.aia-tip.open .aia-tip-pop { display: block; }
.aia-tip.shut:not(.open) .aia-tip-pop { display: none; }   /* a text the pointer opened, hidden with Escape */
/* the admin's note, inside its row of What to fix first: an orange edge and a warning sign */
.aia-warnbox { display: flex; gap: 9px; padding: 10px 12px; border-left: 3px solid var(--aia-warn-fg); border-radius: 0 6px 6px 0; background: var(--aia-warn-bg); color: var(--aia-text); font-size: 13px; line-height: 18px; }
.aia-warnbox svg { flex: 0 0 auto; margin-top: 1px; color: var(--aia-warn-fg); }
.aia-warnbox p { margin: 0; }

/* ── Agencies {assistant} names most (the redesign, 1 Oct): rank, picture, name, bar, figure. Every row takes the
   list's own columns (subgrid), so the figure column is as wide as the widest figure and every bar lines up; the name
   wraps, never cut. On a narrow tab the bar goes under the name, the figure stays on the name's line. ── */
.aia-rrows { display: grid; grid-template-columns: 24px 20px minmax(0, 1fr) minmax(60px, 30%) max-content; column-gap: 10px; padding: 0 0 8px; }
.aia-rrows > * { grid-column: 1 / -1; }
.aia-colheads, .aia-rrow { display: grid; grid-template-columns: subgrid; align-items: center; padding: 0 16px; }
@supports not (grid-template-columns: subgrid) {
  .aia-colheads, .aia-rrow { grid-template-columns: 24px 20px minmax(0, 1fr) minmax(60px, 30%) 124px; column-gap: 10px; }
}
.aia-colheads { padding-top: 10px; padding-bottom: 6px; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--aia-text-2); }
.aia-rrow { min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.aia-rrow.you { background: var(--aia-hl); }
.aia-rk { text-align: right; font-size: 13px; line-height: 18px; color: var(--aia-text-2); font-variant-numeric: tabular-nums; }
.aia-nm { min-width: 0; font-size: 13px; line-height: 18px; font-weight: 500; overflow-wrap: anywhere; }
.aia-rrow.you .aia-nm { color: var(--aia-you); font-weight: 700; }
.aia-rrow .aia-val { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.aia-rrow .aia-pct { font-size: 13px; line-height: 18px; }
.aia-rrow .aia-pct.zero { font-weight: 500; color: var(--aia-text-2); }
.aia-rrows > .aia-row-gap { padding: 0 16px 0 50px; color: var(--aia-muted); font-size: 13px; line-height: 14px; }
@container aia (max-width: 728px) {
  .aia-rrows { grid-template-columns: 24px 20px minmax(0, 1fr) max-content; }
  .aia-rrow { row-gap: 4px; padding-top: 6px; padding-bottom: 6px; }
  .aia-rrow > .aia-rk { grid-column: 1; grid-row: 1; }
  .aia-rrow > .aia-av { grid-column: 2; grid-row: 1; }
  .aia-rrow > .aia-nm { grid-column: 3; grid-row: 1; }
  .aia-rrow > .aia-val { grid-column: 4; grid-row: 1; }
  .aia-rrow > .aia-bar { grid-column: 3 / 5; grid-row: 2; height: 4px; }
  .aia-colheads { display: flex; justify-content: space-between; }
  .aia-colheads > span:empty { display: none; }
  .aia-cf > .aia-lsep { display: none; }
}

/* ── Websites ChatGPT links to (the redesign, 1 Oct): a lettered square, the website, a bar, the figure; the agency's
   own websites last, by its name. The rows share the list's columns like the ranking's, so every bar lines up. On a
   narrow tab the bar goes under the name, the figure stays on the name's line. ── */
/* (the first column holds the row's 16 px left padding too: a subgrid row's padding is added to the items at its edges) */
.aia-wgrid { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(60px, 36%) max-content; column-gap: 10px; padding: 0 0 4px; }
.aia-wgrid > * { grid-column: 1 / -1; }
.aia-wrow { display: grid; grid-template-columns: subgrid; align-items: center; min-height: 36px; padding: 4px 16px; }
@supports not (grid-template-columns: subgrid) {
  .aia-wgrid .aia-colheads, .aia-wrow { grid-template-columns: 20px minmax(0, 1fr) minmax(60px, 36%) 124px; column-gap: 10px; }
}
.aia-wrow.you { background: var(--aia-hl); }
.aia-wrow.you .aia-nm { color: var(--aia-you); font-weight: 700; }
.aia-wrow .aia-val { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.aia-wrow .aia-pct { font-size: 13px; line-height: 18px; }
.aia-wrow .aia-pct.zero { font-weight: 500; color: var(--aia-text-2); }
.aia-key-row { padding: 8px 16px 12px; }
.aia-cf-glyph { flex: none; display: inline-flex; margin-top: 2px; }
.aia-cf .aia-cf-glyph .aia-ico { color: var(--aia-portal); }
@container aia (max-width: 1051px) {
  .aia-wgrid { grid-template-columns: 36px minmax(0, 1fr) max-content; }
  .aia-wgrid > .aia-colheads { display: flex; justify-content: space-between; }
  .aia-wgrid > .aia-colheads > span:empty { display: none; }
  .aia-wgrid > .aia-colheads > span:first-child + span { margin-left: 30px; }
  .aia-wrow { row-gap: 4px; padding-top: 6px; padding-bottom: 6px; }
  .aia-wrow > .aia-av { grid-column: 1; grid-row: 1; }
  .aia-wrow > .aia-nm { grid-column: 2; grid-row: 1; }
  .aia-wrow > .aia-val { grid-column: 3; grid-row: 1; }
  .aia-wrow > .aia-bar { grid-column: 2 / 4; grid-row: 2; height: 4px; }
}

/* ── Lists ChatGPT copies (the redesign, 1 Oct): the page (its arrow opens what it is), the share of seller answers
   citing it on a light bar, and whether the agency is on it, in words. On a tab narrower than the full layout each page
   is a block of three lines, the last one saying what its chip answers ── */
.aia-lgrid, .aia-lrow { display: grid; grid-template-columns: minmax(0, 1fr) 160px 150px; column-gap: 12px; }
.aia-colheads.aia-lgrid { grid-template-columns: minmax(0, 1fr) 160px 150px; }
.aia-lrow { align-items: center; min-height: 40px; padding: 5px 16px; }
.aia-lrows > .aia-lrow + .aia-lrow, .aia-lrows > .aia-lrow + .aia-lists-rest, .aia-lists-rest > .aia-lrow + .aia-lrow { border-top: 1px solid var(--aia-line); }
.aia-dm { min-width: 0; }
.aia-dom-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; max-width: 100%; padding: 0; border: 0; background: transparent; color: var(--aia-text); font-size: 13px; line-height: 18px; font-weight: 500; text-align: left; }
.aia-dom-btn > span { min-width: 0; overflow-wrap: anywhere; }
.aia-dom-btn > .aia-ico { flex: none; color: var(--aia-text-2); }
.aia-dom-btn:hover > span, .aia-dom-btn[aria-expanded="true"] > span { text-decoration: underline; text-underline-offset: 2px; }
.aia-dom-txt { display: block; padding-left: 20px; font-size: 13px; line-height: 18px; font-weight: 500; overflow-wrap: anywhere; }
.aia-dom-desc { grid-column: 1 / -1; margin: 0; padding: 0 0 4px 20px; font-size: 12px; line-height: 16px; color: var(--aia-text-2); }
.aia-cited { position: relative; display: flex; align-items: center; min-height: 28px; padding-left: 8px; }
.aia-cited-bar { position: absolute; left: 0; top: 3px; bottom: 3px; max-width: 100%; border-radius: 4px; background: var(--aia-list-20); }
.aia-cited > .aia-fig { position: relative; flex-wrap: nowrap; white-space: nowrap; }
.aia-cited .aia-of { background: var(--aia-card); }
.aia-onit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.aia-onit > .aia-tchip { background: var(--aia-page); }
.aia-morebtn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 36px; margin: 6px 16px 12px; padding: 4px 10px; border: 0; border-radius: 8px; background: var(--aia-you-tint); color: var(--aia-you); font-size: 13px; line-height: 18px; font-weight: 600; }
.aia-morebtn:hover { background: var(--aia-you-10); }
.aia-lrows { display: flex; flex-direction: column; }
@container aia (max-width: 1051px) {
  .aia-colheads.aia-lgrid { display: none; }
  .aia-lrow { grid-template-columns: minmax(0, 1fr); row-gap: 4px; padding-top: 8px; padding-bottom: 8px; }
  .aia-lrow .aia-mlab { display: inline-block; }
  .aia-cited { align-self: start; }
}
@media (pointer: coarse) {
  .aia-dom-btn, .aia-morebtn, .aia-obtn, .aia-abtn { min-height: 44px; }
  /* (the quotes card's "One thing to correct": 44 px under a thumb, its words still centred on the warning sign) */
  button.aia-warnbtn { padding-top: 12px; padding-bottom: 12px; }
  button.aia-warnbtn > .aia-ico:first-child { top: 14px; }
}

/* ── What ChatGPT says about {agency}: its own words, one green chip each, then the pointer to the note's fix ── */
.aia-qchips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px 16px; }
.aia-qchips > * { max-width: 100%; }
.aia-qchips-none { margin: 0; font-size: 13px; line-height: 18px; color: var(--aia-text-2); }
.aia-warnbtn > .aia-ico:last-child:not(:first-child) { vertical-align: -2px; margin-left: 6px; }
.aia-warnbtn:hover { border-color: var(--aia-warn-fg); }

/* ── Who ChatGPT names first (the final design, 2 Oct): a short leader list in place of the old big share, which
   is now a scorecard. One row per agency: its name, a bar, its share and the count it comes from. ── */
.aia-nf-body { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 16px 16px; }
.aia-nfrows { display: flex; flex-direction: column; gap: 2px; }
.aia-nfrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 120px) max-content; column-gap: 10px; align-items: center; min-height: 34px; padding: 4px 6px; border-radius: 8px; }
.aia-nfrow.you { background: var(--aia-hl); }
.aia-nfrow.you .aia-nm { color: var(--aia-you); font-weight: 700; }
.aia-nfrow .aia-val { display: inline-flex; align-items: baseline; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.aia-nfrow .aia-pct { font-size: 13px; line-height: 18px; }
.aia-nfrow .aia-pct.zero { font-weight: 500; color: var(--aia-text-2); }
@container aia (max-width: 420px) {
  /* a narrow card: the bar goes under the name, the figure stays on the name's line */
  .aia-nfrow { grid-template-columns: minmax(0, 1fr) max-content; row-gap: 4px; }
  .aia-nfrow > .aia-nm { grid-column: 1; grid-row: 1; }
  .aia-nfrow > .aia-val { grid-column: 2; grid-row: 1; }
  .aia-nfrow > .aia-bar { grid-column: 1 / 3; grid-row: 2; height: 4px; }
}
.aia-nf-body .aia-pct.zero { color: var(--aia-text); }
.aia-nf-line { margin: 0; font-size: 13px; line-height: 22px; color: var(--aia-text); }
.aia-nf-line > .aia-nw { white-space: nowrap; }
.aia-nf-line .aia-fig { flex-wrap: nowrap; margin-left: 2px; }

/* ── question by question (the redesign, 1 Oct): one line per question. Its label and arrow, the agency's squares
   and count, then the names in every answer on one line ("+N more", fitChips). The two groups are bands across the
   table (Rossi, 1 Oct: "the user can't tell those are sub-headlines, cant differentiate from the bold text
   underneath"): navy where the agency appears (the navy of its squares), orange where it never does, in bold, while a
   question's label is regular, so a band can never read as a question. On a narrow tab each question is a block. ── */
.aia-qsum { display: inline-flex; flex-wrap: wrap; gap: 6px; }
/* (the middle column: a 20 px square and its 4 px gap per answer, then the count chip, "0 sur 3" the widest) */
.aia-qt-head, .aia-qt-row { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--aia-qt-runs, 3) * 24px + 68px) minmax(0, 1.6fr); gap: 16px; }
/* 4. a column heading NEVER breaks over two lines: the middle one used to read the agency name plus ", of 3",
   which no agency name fits in a 140 px column, so every report showed a heading with its last word orphaned on a
   second line (Rossi, 2 Oct, framed in red). The heading is now short words, and this keeps it to one line whatever
   the language or the name. */
.aia-qt-head > [role="columnheader"] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aia-qt-head { align-items: center; padding: 9px 16px; background: var(--aia-page); border-bottom: 1px solid var(--aia-line); font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--aia-text-2); }
.aia-qt-group > [role="cell"] { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px 8px 13px; border-left: 3px solid; font-size: 13px; line-height: 18px; font-weight: 700; }
.aia-qt-group.yes > [role="cell"] { background: var(--aia-you-10); border-left-color: var(--aia-you); color: var(--aia-text); }
.aia-qt-group.no > [role="cell"] { background: var(--aia-warn-bg); border-left-color: var(--aia-warn-fg); color: var(--aia-warn-fg); }
.aia-band-ico { flex: none; width: 14px; height: 14px; border-radius: 3px; }
.aia-qt-group.yes .aia-band-ico { background: var(--aia-you); }
.aia-qt-group.no .aia-band-ico { border: 1.5px solid var(--aia-warn-fg); background: var(--aia-card); }
.aia-qt-group .aia-tchip { flex: none; margin-left: auto; background: var(--aia-card); }
#view-ai-answers .aia-qt-group:focus { outline: 2px solid var(--aia-you); outline-offset: -2px; }   /* where "See who wins them" lands */
.aia-qt-row { align-items: center; min-height: 44px; padding: 8px 16px; }
.aia-qt-row + .aia-qt-row { border-top: 1px solid var(--aia-line); }
.aia-qt-row.open { align-items: start; }
.aia-qt-ask { min-width: 0; }
.aia-qt-btn { display: inline-flex; align-items: flex-start; gap: 4px; min-height: 24px; padding: 3px 0; border: 0; background: transparent; color: var(--aia-text); font-size: 13px; line-height: 18px; font-weight: 400; text-align: left; }
.aia-qt-btn > .aia-ico { flex: none; margin-top: 1px; color: var(--aia-text-2); transition: transform .15s ease; }
.aia-qt-btn[aria-expanded="true"] > .aia-ico { transform: rotate(180deg); }
.aia-qt-btn:hover .aia-qt-lbl, .aia-qt-btn[aria-expanded="true"] .aia-qt-lbl { text-decoration: underline; text-underline-offset: 2px; }
.aia-qt-fr { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: var(--aia-text-2); }
.aia-sqs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 24px; }
.aia-sq { flex: none; width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid var(--aia-muted); background: var(--aia-card); }
.aia-sq.on { background: var(--aia-you); border-color: var(--aia-you); }
.aia-sq-run { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 4px; }   /* (the squares and their count never part) */
.aia-sqs .aia-tchip { margin-left: 4px; }
.aia-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.aia-chips-none { font-size: 12px; line-height: 16px; color: var(--aia-text-2); }
.aia-mlab { display: none; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--aia-text-2); }
@media (pointer: coarse) {
  .aia-qt-btn { min-height: 44px; align-items: center; }
}
@container aia (max-width: 728px) {
  .aia-qt-head { display: none; }
  .aia-qt-row { grid-template-columns: minmax(0, 1fr); gap: 4px; align-items: start; padding: 8px 16px 10px; }
  .aia-qt-btn { min-height: 44px; align-items: center; }
  .aia-mlab { display: inline-block; }
  .aia-sqs .aia-mlab { margin-right: 4px; }
}
/* KIND CHIPS (the redesign, 1 Oct): what kind of name a chip holds is told by a shape as well as a colour (a dot for an
   agency on this board, a dashed ring for one not on it yet, a list for a ranking site, a house for a portal), all in
   the text colour on a light tint of the kind's colour; the agency itself is white on navy, by its name. inline-block
   like every chip of the tab. */
.aia-chip { display: inline-block; min-height: 24px; max-width: 100%; padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--aia-text); overflow-wrap: anywhere; white-space: normal; }
.aia-glyph { display: inline-block; vertical-align: -2px; margin-right: 5px; }
.aia-glyph .aia-ico { display: block; }
.aia-chip.k-agency { background: var(--aia-board-10); border-color: var(--aia-board-40); }
.aia-chip.k-off { background: var(--aia-card); border: 1px dashed var(--aia-board); }
.aia-chip.k-ranking { background: var(--aia-list-10); border-color: var(--aia-list-40); }
.aia-chip.k-portal { background: var(--aia-portal-10); border-color: var(--aia-portal-40); }
.aia-chip.k-other { background: var(--aia-page); border-color: var(--aia-line); }
.aia-chip.k-you { background: var(--aia-you); border-color: var(--aia-you); color: var(--aia-on-dark); font-weight: 700; }
.aia-chip.k-agency .aia-glyph, .aia-chip.k-off .aia-glyph { color: var(--aia-board); }
.aia-chip.k-ranking .aia-glyph { color: var(--aia-list); }
.aia-chip.k-portal .aia-glyph { color: var(--aia-portal); }
.aia-chip.k-other .aia-glyph { color: var(--aia-muted); }
/* (a key's sample chip: the same colours, smaller; an empty sample holds only its shape) */
.aia-chip.aia-chip-key { min-height: 20px; padding: 1px 9px; }
.aia-chip.aia-chip-key > .aia-glyph:only-child { margin-right: 0; }
.aia-more { font-size: 12px; color: var(--aia-text-2); white-space: nowrap; }

/* the other chips of the redesign: a pill in the headline card (.aia-pchip: rank, ok, neutral), a count on the navy
   (.aia-nchip), a warning (.aia-wchip), a quote ChatGPT gave (.aia-okchip, .sm a one-line pill), a correction to make
   (.aia-warnbtn), "ChatGPT only" (.aia-scope-chip). All inline-block, their icon set in the line. */
.aia-pchip, .aia-nchip, .aia-wchip, .aia-okchip, .aia-warnbtn, .aia-scope-chip { display: inline-block; border: 1px solid transparent; border-radius: 999px; text-align: left; }
:is(.aia-pchip, .aia-nchip, .aia-wchip, .aia-okchip.sm, .aia-scope-chip, .aia-tchip) > .aia-ico { vertical-align: -2px; }
:is(.aia-pchip, .aia-nchip, .aia-wchip, .aia-okchip.sm, .aia-scope-chip, .aia-tchip) > .aia-ico:first-child { margin-right: 4px; }
:is(.aia-pchip, .aia-nchip, .aia-wchip, .aia-scope-chip, .aia-tchip) > .aia-ico:last-child:not(:first-child) { margin-left: 4px; }
.aia-pchip { min-height: 28px; padding: 5px 11px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--aia-text); }
.aia-pchip.rank { background: var(--aia-you-10); border-color: var(--aia-you-10); }
.aia-pchip.rank > .aia-ico { color: var(--aia-you); }
.aia-pchip.ok { background: var(--aia-ok-bg); border-color: var(--aia-ok-40); }
.aia-pchip.ok > .aia-ico { color: var(--aia-ok-fg); }
.aia-pchip.neutral { background: var(--aia-page); border-color: var(--aia-line); }
/* "À corriger en premier · 4 actions ↓": the amber call to action in the headline card, with the count in a white
   pill inside it. It jumps to the navy band and puts focus on its heading. */
.aia-pchip.go { background: var(--aia-amber); border-color: var(--aia-amber); color: var(--aia-text); font-weight: 600; }
.aia-pchip.go:hover { box-shadow: inset 0 0 0 2px var(--aia-text); }
.aia-pchip.go .aia-pchip-n { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--aia-white-80); font-family: var(--aia-mono); font-size: 11px; font-weight: 600; white-space: nowrap; }
button.aia-pchip { font-family: inherit; font-size: 12px; line-height: 16px; font-weight: 600; }
button.aia-pchip:hover .aia-pchip-lbl { text-decoration: underline; text-underline-offset: 2px; }
.aia-nchip { min-height: 20px; padding: 1px 8px; background: var(--aia-white-8); border-color: var(--aia-amber-45); color: var(--aia-amber); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.aia-nchip > .aia-ico { color: var(--aia-amber); }
.aia-wchip { min-height: 20px; padding: 1px 8px; background: var(--aia-warn-bg); border-color: var(--aia-warn-40); color: var(--aia-warn-fg); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
/* "Point faible" / "Weak spot" (the final design asks for a RED tag, not the orange of a warning): the board's own
   rose, which is the same red to the eye as the mockup's and keeps the tab on the board's palette */
.aia-wchip.weak { background: var(--aia-rose-bg); border-color: var(--aia-rose-border); color: var(--aia-rose-fg); }
/* a quote: several lines, its tick hanging at the left of all of them */
.aia-okchip { position: relative; padding: 6px 11px 6px 30px; border-radius: 10px; background: var(--aia-ok-bg); border-color: var(--aia-ok-40); color: var(--aia-text); font-size: 13px; line-height: 18px; font-weight: 500; }
.aia-okchip > .aia-ico:first-child { position: absolute; left: 9px; top: 8px; color: var(--aia-ok-fg); }
.aia-okchip.sm { padding: 1px 8px 1px 6px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.aia-okchip.sm > .aia-ico:first-child { position: static; }
.aia-warnbtn { position: relative; padding: 6px 11px 6px 30px; border-radius: 10px; background: var(--aia-warn-bg); border-color: var(--aia-warn-40); color: var(--aia-warn-fg); font-family: inherit; font-size: 13px; line-height: 18px; font-weight: 600; }
.aia-warnbtn > .aia-ico:first-child { position: absolute; left: 9px; top: 8px; }
.aia-warnbtn:hover .aia-warnbtn-lbl { text-decoration: underline; text-underline-offset: 2px; }
/* the right end of a ChatGPT-only card: its logo, or "ChatGPT only" while another assistant is shown */
.aia-scope { display: inline-flex; align-items: center; }
.aia-scope-logo { display: inline-flex; align-items: center; }
.aia-scope-chip { min-height: 22px; padding: 2px 8px; background: var(--aia-hl); border-color: var(--aia-amber-45); color: var(--aia-text); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.aia-scope-chip > .aia-logo { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.aia-fixes .aia-scope-chip { color: var(--aia-amber); background: var(--aia-white-8); }
.aia-fixes .aia-scope-logo { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--aia-card); }
@media (pointer: coarse) {
  /* a pill that is a button gets a 44 px press area without growing */
  button.aia-pchip { position: relative; }
  button.aia-pchip::after { content: ''; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; }
}

/* ── preview: social vs AI, the hidden rows, teasers, the trial panel ── */
.aia-vs { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0; overflow: hidden; }
.aia-vs > div { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.aia-vs > div + div { border-top: 1px solid var(--border, #e5e5e5); background: #FFFBEA; }
.aia-vs-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.aia-vs-nums .aia-kpi-val { font-size: 22px; }
.aia-vs-sector .aia-vs-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* two figures, no empty third */
/* the full-width sector card has room for the count beside its figure (rule 3b); it wraps under it only when narrow */
.aia-vs-sector .aia-vs-nums .aia-kpi-val.fig { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.aia-hidden-rows { position: relative; margin-top: 2px; }
.aia-hidden-rows .aia-rows { filter: blur(5px); opacity: .65; user-select: none; pointer-events: none; }
.aia-hidden-rows .aia-unlock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.aia-teasers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.aia-teaser { display: flex; flex-direction: column; gap: 7px; }
.aia-teaser.warn { border: 1.5px solid var(--aia-you); }
.aia-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #B5680E; }
.aia-teaser.warn .aia-lock { color: var(--aia-warn-fg); }
.aia-teaser h3 { margin: 0; font-size: 15px; font-weight: 700; }
.aia-teaser p { margin: 0; font-size: 12.5px; color: var(--aia-text-2); }
.aia-trial { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; background: var(--aia-you); color: #fff; border: 0; padding: 22px 24px; }
.aia-trial h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: #fff; text-wrap: balance; }   /* two even lines, never one word alone on the second */
.aia-trial ul { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .88); }
.aia-trial-cta { display: flex; flex-direction: column; gap: 10px; }
.aia-trial-cta p { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .75); text-align: center; }
.aia-trial-cta .aia-btn { min-height: 44px; font-size: 14px; }
/* the money-back line under the price note: a tick in the panel's gold, the words a shade brighter than the note */
.aia-trial-cta p.aia-guarantee { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.aia-trial-cta p.aia-guarantee svg { color: var(--aia-amber); flex-shrink: 0; }

/* ── states ── */
.aia-state { padding: 26px 18px; text-align: center; color: var(--text-muted); font-size: 13px; }
.aia-state .aia-btn { margin-top: 10px; }
.aia-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.aia-check { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.aia-check .aia-field { flex: 1 1 280px; max-width: 520px; }
/* the Language menu (the mockups' "Language" field): the closed look of the other fields over a plain browser list, the
   tab's own chevron on top; as wide as its words, in the preview's check row too */
.aia-field.aia-lang, .aia-check .aia-field.aia-lang { flex: 0 0 auto; max-width: none; }
.aia-lang-wrap { position: relative; display: inline-flex; }
.aia-select.aia-lang-select { appearance: none; -webkit-appearance: none; flex: 1 1 auto; min-width: 0; padding-right: 34px; cursor: pointer; font-family: inherit; color: inherit; }
.aia-lang-wrap svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.aia-field.aia-lang.inline { flex-direction: row; align-items: center; gap: 8px; margin-left: auto; }
.aia-field.aia-lang.inline .aia-select { min-height: 32px; }
.aia-check .aia-search { height: 42px; font-size: 14px; }
.aia-examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--text-muted); }
.aia-examples button { border: 1px solid var(--aia-line); background: var(--aia-card); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.aia-check .aia-btn { min-height: 42px; }   /* level with the search box; phones raise it to 44px below */
.aia-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── wider content column: side by side (sized on the tab's own width, not the screen's) ── */
@container aia (min-width: 640px) {
  .aia-vs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .aia-vs > div + div { border-top: 0; border-left: 1px solid var(--border, #e5e5e5); }
  /* a Geneva sector has no social half (no posts or ads by design): its one half takes the whole row */
  .aia-vs.aia-vs-sector { grid-template-columns: minmax(0, 1fr); }
  .aia-teasers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aia-q-lists { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
}
@container aia (min-width: 760px) {
  .aia-trial { grid-template-columns: minmax(0, 1fr) 280px; align-items: center; }
}
/* a narrow tablet (the tab under 460 px, e.g. 800 wide with the list open): the "how we measure" lines wrap rather
   than push the page sideways (30 Sep: with the doubled gap on the left, 372 px were left for a pill of about 406) */
@container aia (max-width: 459px) {
  .aia-process p { white-space: normal; }
  .aia-process { padding-right: 38px; }
  .aia-process .aia-tip { position: absolute; top: 9px; right: 10px; margin: 0; }
  .aia-process-dates { max-width: calc(100% - 18px); text-wrap: balance; }
}

/* ── SEE THE ANSWER (2026-10-02, Rossi's Decision Desk answer "Yes, both") ─────────────────────────
   The link on each question of the table, and the window it opens: the three tries of that question as
   they came back, each with the day and time it was asked and the websites it linked to, and the
   agency's name marked in the amber the tab already uses for a marked figure. The window sits over the
   page (above the board's own sticky bars, below the page loader), and on a phone it takes the whole
   screen. No colour of its own: the navy, the amber, the page and card greys, and the text colour at
   55% behind it (--aia-scrim). */
/* (its own line under the question, never trailing the label on long rows and under it on short ones) */
.aia-seebtn { display: flex; width: fit-content; align-items: center; gap: 5px; min-height: 26px; margin-top: 5px; padding: 3px 9px 3px 7px; border: 0; border-radius: 8px; background: var(--aia-you-10); color: var(--aia-you); font-size: 12px; line-height: 16px; font-weight: 600; }
.aia-seebtn:hover { background: var(--aia-you-tint); text-decoration: underline; text-underline-offset: 2px; }
.aia-seebtn .aia-ico { flex: none; }
.aia-ans-scrim { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--aia-scrim); }
.aia-ans-card { display: flex; flex-direction: column; width: min(760px, 100%); max-height: min(88vh, 940px); background: var(--aia-card); border-radius: var(--aia-radius); box-shadow: 0 18px 48px var(--aia-shadow); overflow: hidden; text-align: left; }
.aia-ans-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: 1px solid var(--aia-line); }
.aia-ans-head-main { flex: 1 1 auto; min-width: 0; }
.aia-ans-kicker { display: flex; align-items: center; gap: 6px; margin: 0 0 5px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--aia-text-2); }
.aia-ans-h { margin: 0; font-size: 17px; line-height: 23px; font-weight: 700; color: var(--aia-text); }
.aia-ans-q { margin: 5px 0 0; font-size: 13px; line-height: 18px; color: var(--aia-text-2); }
.aia-ans-mark-note { margin: 9px 0 0; font-size: 12px; line-height: 17px; color: var(--aia-text-2); }
.aia-ans-x { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--aia-page); color: var(--aia-text-2); }
.aia-ans-x:hover { background: var(--aia-line); color: var(--aia-text); }
.aia-ans-asst { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--aia-line); background: var(--aia-page); }
.aia-ans-asst-lbl { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--aia-text-2); }
.aia-ans-tab { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 4px 10px; border: 1px solid var(--aia-line); border-radius: 999px; background: var(--aia-card); color: var(--aia-text); font-size: 12px; line-height: 16px; font-weight: 500; }
.aia-ans-tab:hover { border-color: var(--aia-you); }
.aia-ans-tab.on { border-color: var(--aia-you); background: var(--aia-you); color: var(--aia-on-dark); font-weight: 700; }
.aia-ans-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px; }
.aia-ans-try + .aia-ans-try { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--aia-line); }
.aia-ans-try-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; }
.aia-ans-try-head h4 { margin: 0; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--aia-text); }
.aia-ans-when { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 16px; color: var(--aia-text-2); }
.aia-ans-when .aia-ico { flex: none; }
.aia-ans-text { margin-top: 9px; padding: 12px 14px; border: 1px solid var(--aia-line); border-radius: 10px; background: var(--aia-page); font-size: 13px; line-height: 20px; color: var(--aia-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.aia-ans-mark { padding: 0 2px; border-radius: 3px; background: var(--aia-mark); color: var(--aia-text); font-weight: 700; }
.aia-ans-none { margin: 9px 0 0; padding: 12px 14px; border: 1px dashed var(--aia-line); border-radius: 10px; font-size: 13px; line-height: 19px; color: var(--aia-text-2); }
.aia-ans-src { margin-top: 12px; }
.aia-ans-src h5 { margin: 0 0 7px; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--aia-text-2); }
.aia-ans-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.aia-ans-links > li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; font-size: 13px; line-height: 18px; }
.aia-ans-links a { color: var(--aia-you); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.aia-ans-dom { font-size: 12px; line-height: 16px; color: var(--aia-muted); }
.aia-ans-nolinks, .aia-ans-wait { margin: 0; font-size: 13px; line-height: 19px; color: var(--aia-text-2); }
.aia-ans-wait.err { color: var(--aia-warn-fg); }
.aia-ans-stamp { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--aia-you-10); font-size: 12px; line-height: 17px; color: var(--aia-text); }
.aia-ans-stamp .aia-ico { flex: none; margin-top: 1px; color: var(--aia-you); }
/* what a reader needs before the first answer: why there are three, what is marked, and the fingerprint line */
.aia-ans-intro { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--aia-line); }
.aia-ans-why { margin: 0 0 8px; font-size: 12.5px; line-height: 18px; color: var(--aia-text-2); }
.aia-ans-intro .aia-ans-mark-note { margin: 0 0 8px; }
.aia-ans-intro .aia-ans-stamp { margin: 0; }
.aia-ans-tools { margin-top: 10px; }
.aia-ans-exact { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 3px 10px; border: 1px solid var(--aia-line); border-radius: 999px; background: var(--aia-card); color: var(--aia-text-2); font-size: 12px; line-height: 16px; font-weight: 600; }
.aia-ans-exact:hover { border-color: var(--aia-you); color: var(--aia-you); }
.aia-ans-exact[aria-pressed="true"] { border-color: var(--aia-you); background: var(--aia-you-10); color: var(--aia-you); }
/* the six assistants: their own row, so a phone can scroll them sideways instead of stacking three rows deep */
.aia-ans-asst-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
/* when Google showed no summary at all: one line above the three readings, then a short line in each */
.aia-ans-nonetop { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--aia-page); font-size: 12.5px; line-height: 18px; color: var(--aia-text-2); }
/* the Google map ChatGPT draws above its answer, folded away (every byte kept, nothing reworded) */
.aia-ans-map { margin-top: 9px; }
.aia-ans-maptog { display: flex; width: 100%; align-items: flex-start; gap: 6px; min-height: 30px; padding: 7px 10px; border: 1px dashed var(--aia-line); border-radius: 10px; background: var(--aia-page); color: var(--aia-text-2); font-size: 12px; line-height: 17px; font-weight: 500; text-align: left; }
.aia-ans-maptog:hover { border-color: var(--aia-you); color: var(--aia-text); }
.aia-ans-maptog .aia-ico { flex: none; margin-top: 1px; transition: transform .15s ease; }
.aia-ans-map.open .aia-ans-maptog .aia-ico { transform: rotate(180deg); }
.aia-ans-mapbox { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--aia-line); border-radius: 10px; background: var(--aia-page); font-size: 12px; line-height: 18px; color: var(--aia-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
/* THE ANSWER DRAWN AS THE ASSISTANT WROTE IT. The exact view keeps its own line breaks (pre-wrap); the drawn one has
   real paragraphs, lists and tables, so pre-wrap there would add a blank line between every block. */
.aia-ans-text.raw { white-space: pre-wrap; }
.aia-ans-text.rich { white-space: normal; }
.aia-ans-text.rich > :first-child { margin-top: 0; }
.aia-ans-text.rich > :last-child { margin-bottom: 0; }
.aia-ans-text.rich p { margin: 0 0 10px; }
.aia-ans-text.rich strong { font-weight: 700; color: var(--aia-text); }
.aia-ans-text.rich a { color: var(--aia-you); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.aia-ans-mdh { margin: 14px 0 7px; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--aia-text); }
.aia-ans-mdul, .aia-ans-mdol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 5px; }
.aia-ans-mdul { list-style: disc; }
.aia-ans-mdol { list-style: decimal; }
.aia-ans-mdul .aia-ans-mdul { margin: 5px 0 0; list-style: circle; }
.aia-ans-hr { margin: 12px 0; border: 0; border-top: 1px solid var(--aia-line); }
.aia-ans-quote { margin: 0 0 10px; padding: 2px 0 2px 10px; border-left: 3px solid var(--aia-line); color: var(--aia-text-2); }
.aia-ans-code { padding: 1px 4px; border-radius: 4px; background: var(--aia-card); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
/* a table of agencies: a real table, and it scrolls inside the window rather than widening the page */
.aia-ans-tblwrap { margin: 0 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.aia-ans-tbl { border-collapse: collapse; width: 100%; min-width: 320px; font-size: 12.5px; line-height: 17px; }
.aia-ans-tbl th, .aia-ans-tbl td { padding: 6px 9px; border: 1px solid var(--aia-line); text-align: left; vertical-align: top; }
.aia-ans-tbl th { background: var(--aia-card); font-weight: 700; color: var(--aia-text); }
/* a picture the assistant put in its answer: the words it carried, labelled, never a dead address */
.aia-ans-pic { display: inline-flex; align-items: baseline; gap: 4px; }
.aia-ans-pictag { padding: 0 4px; border-radius: 4px; background: var(--aia-card); color: var(--aia-muted); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
/* THE COOKIE NOTICE SITS BEHIND THE ANSWER WINDOW while it is open. It is drawn at the very top of the page (z-index
   2147483000 in assets/trk-consent.js) and covered the bottom of the window at 1366 and a third of it on a phone,
   the fingerprint line with it, for anyone who had not yet answered it — which includes everyone opening the report
   from a shared link. It comes back the moment the window closes. */
body.aia-answer-open #trk-cc { z-index: 1090; }

/* ── a touch screen of any width (a tablet held sideways gets the middle layout): 44 px targets ── */
@media (pointer: coarse) {
  .aia-select, .aia-seg button, .aia-btn, .aia-option, .aia-search { min-height: 44px; }
  .aia-seebtn, .aia-ans-tab { min-height: 44px; }
  .aia-ans-x { width: 44px; height: 44px; }
}

/* ── phones: stacked cards, 44px targets, nothing wider than the screen ── */
@media (max-width: 768px) {
  #view-ai-answers { font-size: 13.5px; }
  .aia-select, .aia-seg, .aia-seg button, .aia-btn, .aia-option, .aia-search { min-height: 44px; }
  .aia-check .aia-btn, .aia-examples button { min-height: 44px; }   /* handoff 9: every button 44px tall on a phone */
  .aia-radio { min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; }   /* the whole label is the target */
  .aia-filters .aia-field, .aia-filters .aia-select { width: 100%; min-width: 0; }
  .aia-filters-row > .aia-filters, .aia-filters-row > .aia-check { width: 100%; }
  .aia-process { margin-left: 0; max-width: none; width: 100%; }
  .aia-process p { white-space: normal; }   /* a phone is narrower than the two lines: they wrap rather than overflow */
  .aia-process { padding-right: 38px; }
  .aia-process .aia-tip { position: absolute; top: 9px; right: 10px; margin: 0; }
  .aia-process-dates { max-width: calc(100% - 18px); text-wrap: balance; }
  .aia-seg { width: 100%; }
  .aia-seg button { flex: 1 1 50%; }
  .aia-fs-btn { min-height: 44px; margin-left: 0; }
  .aia-linkbtn { min-height: 44px; }
  /* a phone: the figure and its chip on the name's line, the bar under the name */
  .aia-row { grid-template-columns: 30px minmax(0, 1fr) max-content; grid-template-areas: "rank name val" ". bar bar"; row-gap: 5px; }
  .aia-col-head { display: none; }
  .aia-row .aia-rank { grid-area: rank; }
  .aia-row .aia-name { grid-area: name; }
  .aia-row .aia-track { grid-area: bar; }
  .aia-row .aia-val { grid-area: val; }
  .aia-strip .aia-btn { margin-left: 0; }
  .aia-previewbar .aia-btn { width: 100%; }
  /* the answer window takes the whole screen on a phone, so a long answer has the room to be read */
  .aia-ans-scrim { padding: 0; align-items: stretch; justify-content: stretch; }
  .aia-ans-card { width: 100%; max-height: none; border-radius: 0; }
  .aia-ans-head, .aia-ans-body { padding: 14px; }
  /* THE SIX ASSISTANTS ON ONE LINE, scrolled sideways. Wrapped, they ran to three rows and 165 px, and with the
     header above them the first screen of a 390 px phone held no answer at all (the review of 2 Oct). The targets
     stay 44 px tall; the row scrolls inside the window, so the page itself never scrolls sideways. */
  .aia-ans-asst { padding: 8px 14px; align-items: flex-start; flex-direction: column; gap: 5px; }
  .aia-ans-asst-row { flex-wrap: nowrap; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .aia-ans-asst-row::-webkit-scrollbar { display: none; }
  .aia-ans-tab { flex: none; }
  .aia-ans-tbl { font-size: 12px; }
}

/* ════ A PHONE GIVES ITS WIDTH TO THE WORDS, NOT TO THE MARGINS (Rossi, 2 Oct, on three screenshots) ════
   He asked for 5 px of padding left and right on the panels, the same everywhere, and said it should buy enough room
   for two things that were wrapping onto a second line: the dates sentence in "how we measure", and the "À corriger en
   premier" button under the headline. Measured on a 390 px phone before changing anything: the dates need 297 px on one
   line and the button 234 px, against 294 px and 188 px of room. The padding alone fixes the dates. The button needed
   one more thing, below.
   This is the panels only. Chips, pills and buttons keep their own padding: a pill with 5 px of room reads as a mistake,
   not as a pill. */
@media (max-width: 768px) {
  .aia-ch, .aia-cf, .aia-hero-body, .aia-tms, .aia-tm-foot, .aia-colheads, .aia-rrow, .aia-qchips, .aia-nf-body,
  .aia-qt-head, .aia-qt-row, .aia-wrow, .aia-key-row, .aia-lrow, .aia-sc, button.aia-sc, .aia-fix-list, .aia-fix,
  .aia-asst-strip, .aia-how-btn, .aia-q-lists, .aia-suggest-box { padding-left: 5px; padding-right: 5px; }

  /* "how we measure": the dates sentence on one line. The "?" sits over the first line, so only that line keeps room
     for it; the sentence underneath uses the full width. */
  .aia-process { padding-left: 5px; padding-right: 5px; }
  .aia-process .aia-tip { right: 5px; }
  .aia-process p > b { padding-right: 24px; }
  /* (white-space is a shorthand: a text-wrap declaration AFTER it quietly undoes its nowrap half, which is how this
     line stayed on two lines through the first attempt) */
  .aia-process-dates { max-width: none; white-space: nowrap; }
  /* the room for that one line comes out of the panel's own furniture, not out of the type: the round mark loses 6 px,
     the gap beside it 2 px, and the little calendar in front of the dates goes (it says nothing the words do not) */
  /* The round mark and the little calendar are decoration; the sentence is not. On a phone they cost it 47 px, which is
     the difference between one readable line and 9 px type, so they step aside and the words keep their size. */
  .aia-process-ico { display: none; }
  .aia-process p > svg { display: none; }   /* the little calendar in front of the dates */

  /* the two menus fill the width again: the 260 px ceiling that keeps a long agency name from pushing the "how we
     measure" panel off the filter row on a computer has no job on a phone, where every field is its own line */
  .aia-filters > .aia-field > .aia-select { max-width: none; }
}

/* Under about 380 px the dates do not fit the width at their own size, so the two small lines step down one. The
   earlier note here measured the wrong element and said 228 px: the dates line is 305 px at 10 px, against 276 px of
   room on a 320 px phone and 316 px on a 360 px one, and a two-figure day ("Oct 20") adds 6 px more. At 9.5 px it is
   290 px at worst, which fits every phone from 350 px up with room to spare. */
@media (max-width: 379px) {
  .aia-process p { font-size: 9.5px; }
}

/* Below 350 px the sentence cannot be one line at any size worth reading, so it wraps again. That is a 2016 phone
   (the first iPhone SE): on every phone sold since, it stays on the one line Rossi asked for. Shrinking the type
   further instead would have cost the whole panel its readability to save one line break on the narrowest screen
   there is, and a page that slides sideways is worse than a sentence on two lines. */
@media (max-width: 349px) {
  .aia-process-dates { white-space: normal; }
}

/* The headline's buttons get the whole width under the ring rather than a 188 px column beside it, so "À corriger en
   premier - 4 actions" reads as one line instead of two. Below 440 px the ring and a 234 px button cannot share a row
   at any padding: 120 + 16 + 234 is wider than the phone. */
@container aia (max-width: 440px) {
  .aia-hero-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "ring" "chips"; row-gap: 14px; }
  .aia-hero-chips { align-self: start; }
}

/* ════ THE QUESTION GROUPS SCROLL SIDEWAYS, SO THE LANGUAGE KEEPS ITS PLACE ON THE ROW ════
   Rossi, 6 Oct 2026, on the luxury tab at 1440: "can you make that menu scrollable horizontal to avoid the language
   option ... to be on its own row? I prefer everything in the same 1 row."

   WHY IT ONLY SHOWED UP NOW. A board with two kinds of question (Geneva: sellers and buyers) has always fitted on one
   line. The luxury board has nine groups, "All" plus eight product categories, and they pushed the language list onto
   a second row. A flex line is broken BEFORE its items are shrunk, so letting the groups shrink was not enough: the
   row itself has to stop wrapping, and then the groups are the one field allowed to give way. Every other field is
   pinned at its own width, which is why Geneva's row cannot move.

   MEASURED, so the breakpoint is not a guess: the other three fields take 453px together with their gaps, and the
   strip keeps a 180px floor where three names are still readable, so one row needs a container of 633px. The rule
   starts at 729px, which is exactly where the narrow grid layout further up stops, so the two can never fight. A
   1440 screen gives this tab a 900px container and a 1280 screen gives 788, so both are on one row; below that the
   narrow layout takes over as it always did. (The old line said 980px, which was a guess, and it was wrong: it never
   fired at the width Rossi was looking at.) */
.aia-side-field { position: relative; }
/* what is still off the edge, said with a fade rather than left to be discovered: a group nobody can see is not a
   control. The fade sits inside the strip's own border and is the strip's own colour, so it reads as depth, not as a
   box. Neither side shows when everything already fits. */
.aia-side-field::before, .aia-side-field::after {
  content: ''; position: absolute; bottom: 1px; height: 38px; width: 26px; pointer-events: none;
  opacity: 0; transition: opacity .15s ease; border-radius: 7px;
}
.aia-side-field::before { left: 1px; background: linear-gradient(to right, var(--aia-card), transparent); }
.aia-side-field::after { right: 1px; background: linear-gradient(to left, var(--aia-card), transparent); }
.aia-side-field.aia-more-left::before, .aia-side-field.aia-more-right::after { opacity: 1; }

@container aia (min-width: 729px) {
  .aia-filters { flex-wrap: nowrap; min-width: 0; max-width: 100%; }
  /* pinned: these keep exactly the width they had before this rule existed */
  .aia-filters > .aia-agency-menu,
  .aia-filters > .aia-asst-field,
  .aia-filters > .aia-lang { flex: 0 0 auto; }
  /* the one field that gives way, down to a floor where three names are still readable */
  .aia-filters > .aia-side-field { min-width: 0; flex: 0 1 auto; }
  .aia-filters > .aia-side-field > .aia-seg {
    overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; min-width: 180px;
  }
  .aia-filters > .aia-side-field > .aia-seg::-webkit-scrollbar { display: none; }
  .aia-filters > .aia-side-field > .aia-seg > button { flex: 0 0 auto; white-space: nowrap; }
}

/* ════ THE TOP ROWS AT 460 TO 728 PX, AND A BOARD WITH MANY QUESTION GROUPS (7 Oct, the homepage embed) ════
   Rossi, on the luxury tab embedded on the homepage: "a lot of elements not lining up properly in the same row".
   Measured in that frame (a 728 px container, a 760 px window), three faults, all of them also on the real board on a
   phone or a small tablet:
   1. NINE BUTTONS IN HALF-WIDTH SLOTS. The narrow layout gives each question group half the line (flex 1 1 50%), which
      is right for Geneva's two and wrong for the luxury board's nine: they shrank to 45-89 px and wrapped their names
      onto up to four lines ("Pens / and / everyday / objects"), a 75 px tall row of uneven buttons. A strip of more
      than three groups now does at every width what it already did above 729 px: one line, scrolled sideways, each
      name on one line. Geneva's two keep their halves (the rule needs a fourth button to exist).
   2. AGENCY AND AI ASSISTANT ON A FULL LINE EACH where both fit side by side. From 460 px of container they share the
      first line in the same two columns as the line under them (question groups | language), so the four controls
      line up in a grid; below 460 px (a phone held upright) they stack as before.
   3. THE "?" ON TOP OF THE DATE CHIP. Under 768 px of WINDOW the "?" is pinned in the band's corner with 38 px kept
      free for it, but from 620 px of CONTAINER the band is laid out as one row and its own rule takes that 38 px back
      (it is the stronger selector), so the chip ran under the "?". Where the band is one row, the "?" is now an
      ordinary item of that row, beside the title, as it is on a computer (commit 1d91b86). */
.aia-filters > .aia-side-field > .aia-seg:has(> button:nth-child(4)) {
  flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.aia-filters > .aia-side-field > .aia-seg:has(> button:nth-child(4))::-webkit-scrollbar { display: none; }
.aia-filters > .aia-side-field > .aia-seg:has(> button:nth-child(4)) > button { flex: 0 0 auto; white-space: nowrap; }
@container aia (min-width: 460px) and (max-width: 728px) {
  .aia-filters > .aia-agency-menu { grid-column: 1; }
  .aia-filters > .aia-agency-menu > .aia-select { max-width: none; }   /* it shares the line with the assistant: no gap between them */
  .aia-filters > .aia-asst-field { grid-column: 2; }
}
@media (max-width: 768px) {
  @container aia (min-width: 620px) {
    .aia-proc-wide > .aia-process { padding-right: 8px; align-items: center; }
    .aia-proc-wide > .aia-process .aia-tip { position: static; margin: 0 0 0 6px; }
    .aia-proc-wide > .aia-process p > b { padding-right: 0; }   /* (kept for a pinned "?" that is not pinned here) */
    .aia-proc-wide > .aia-process p > span:not(.aia-tip):not(.aia-process-when) { display: inline; margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--aia-line); }
    .aia-proc-wide > .aia-process .aia-process-when { margin-left: auto; }
  }
}

/* 4. A STRIP THAT SEEMS TO END. With nine groups the strip shows six and cuts the seventh at its edge, and the fade that
   says "there is more" is the strip's own white on white: in the homepage frame the row read as finished at "Palace
   hotels". The fade now carries an arrow on the side where more groups are waiting, wider so the arrow sits on solid
   ground, and only while there is more that way (the same aia-more-left / aia-more-right the tab already sets). */
.aia-side-field::before, .aia-side-field::after { width: 44px; background-repeat: no-repeat; }
.aia-side-field::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E"), linear-gradient(to left, var(--aia-card) 55%, transparent); background-position: right 8px center, 0 0; background-size: 16px 16px, 100% 100%; }
.aia-side-field::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E"), linear-gradient(to right, var(--aia-card) 55%, transparent); background-position: left 8px center, 0 0; background-size: 16px 16px, 100% 100%; }
.aia-side-field::before, .aia-side-field::after { height: calc(100% - 22px); }

/* ────────── READ ONE OF THE ANSWERS (the preview's published sample, 2026-10-07) ──────────
   Rossi's Decision Desk answer `homepage-see-the-answer-texts`: one question, all six assistants. The card sits
   between the questions and the locked ranking, because that is the point in the page where a reader has just been
   told what we counted and has no way of checking it. The question is set in the type the answers themselves use, so
   it reads as the thing that was asked rather than as another heading. */
.aia-sample-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px 16px; }
.aia-sample-q { margin: 0; font-family: var(--aia-ui); font-size: 15px; line-height: 21px; font-weight: 600; color: var(--aia-text); }
.aia-seebtn.big { min-height: 38px; padding: 8px 14px 8px 12px; border-radius: 10px; font-size: 13.5px; }
.aia-sample-note { margin: 0; font-size: 12px; line-height: 17px; color: var(--aia-text-3); }

/* ────────── WHAT A PUBLIC COPY DOES NOT CARRY (Rossi, 2026-10-07) ──────────
   The card keeps its head, its count and its size, so a reader sees how much is there; the panel below stands where
   the content would be. It is not a blur over words: the words are not in the page at all (the frozen report is a
   public file, so they are left out of it). Styled as a quiet panel rather than a wall, because it sits inside a
   report that is otherwise open. */
.aia-locked { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px 16px 16px; padding: 26px 18px;
  border: 1px dashed var(--aia-line); border-radius: 12px; background:
    repeating-linear-gradient(135deg, var(--aia-card) 0 10px, var(--aia-chipbg) 10px 20px); text-align: center; }
.aia-locked-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--aia-you-10); color: var(--aia-you); }
.aia-locked-t { margin: 0; font-family: var(--aia-ui); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--aia-text); }
.aia-locked-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 10px;
  background: var(--aia-you); color: var(--aia-on-dark); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.aia-locked-btn:hover { filter: brightness(1.08); }
/* PHONE: keep the report's language picker out from under the drawer handle.

   The site's own drawer handle (#mnav-panel-tab) is fixed to the right edge, 22 px wide, vertically centred: on a
   390 px phone it occupies x 368-390, y 390-454. On a board whose ONLY view is this one there is far less above the
   picker than on Geneva, so the picker lands at y 404 and its right edge reaches x 374 - six pixels underneath the
   handle. The handle is fixed and therefore on top, so those six pixels include part of the chevron, and a thumb
   aimed at the picker opens the drawer instead.

   Scoped to the AI-answers-only boards because that is where it was measured. Geneva escapes it by content height
   alone (its picker sits at y 527, below the handle), which is luck rather than design: if Geneva's layout ever
   shortens, drop the scoping and let every board clear the handle. */
@media (max-width: 767px) {
  body.board-ai-answers-only .aia-field.aia-lang.inline { margin-right: 28px; }
}

/* ════ 21 OCT, ROSSI ON THE VISION CLINICS REPORT, AT A PHONE'S WIDTH ════ */

/* 1. "make the options inside there displayed in 1 line and horizontally scrollable on mobile". The question groups kept
   half the line each and wrapped their own names onto three lines ("Après / 45 / ans"). Now one line at every width,
   each name on one line, the strip scrolling sideways when they do not all fit (the fade and its arrow, set by
   fitSides, say which side has more). Two short groups still share the line between them (flex-grow), so the Geneva
   board keeps its two halves. */
@container aia (max-width: 728px) {
  .aia-filters > .aia-side-field { min-width: 0; }
  .aia-filters > .aia-side-field > .aia-seg { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .aia-filters > .aia-side-field > .aia-seg::-webkit-scrollbar { display: none; }
  .aia-filters > .aia-side-field > .aia-seg > button { flex: 1 0 auto; white-space: nowrap; }
}

/* 2. "this panel is too densed with text, it's missing proper spaces in-between lines" (in both languages). On a phone
   the panel had 5 px of padding and its three lines sat 15 px apart, so the title, the sentence and the dates ran into
   one block. They now have room around them and a clear gap between each line. */
@media (max-width: 768px) {
  .aia-filters-row > .aia-process { padding: 12px 14px; }
  .aia-process .aia-tip { top: 11px; right: 12px; }
  .aia-process p { line-height: 18px; }
  .aia-process p > b { line-height: 20px; }
  .aia-process p > span:not(.aia-tip):not(.aia-process-dates):not(.aia-process-when) { margin-top: 6px; }
  .aia-process p > .aia-process-when { margin-top: 8px; }
  /* with room around the panel, the two dates no longer fit one phone line: they break BETWEEN the two sentences,
     never inside one (each sentence is its own unbreakable piece, processHtml) */
  .aia-process-dates { white-space: normal; }
  .aia-process-dates > .aia-pd { white-space: nowrap; }
  /* the calendar stays on the first date's line when the two break apart */
  .aia-process p > .aia-process-when { align-items: flex-start; }
  .aia-process-when > .aia-ico { margin-top: 3px; }
}
@container aia (max-width: 728px) {
  .aia-filters > .aia-side-field > .aia-seg > button { padding: 0 11px; }
}

/* 3. THE ROW OF ROUND LOGOS (storiesHtml in assets/ai-answers.js): Rossi asked for the look of Instagram's stories, so
   the ring keeps their warm gradient, the one colour on the tab that is not the board's own; it is what says "press me".
   A ring whose card was seen in this visit turns grey, as on Instagram. The name under each logo is cut to one line. */
/* the row sits in a card like every block under it (Rossi, 22 Oct, framing it in red: "change the background of this
   stories panel"; option 1 of three, "a card like the rest"): on the bare grey page it read as part of the header rather
   than a picker. The card spans the column exactly; the list's own 6 px padding keeps a ring's hover and focus outline
   inside it. */
.aia-stories { position: relative; margin: 0; padding: 8px 6px 6px; background: var(--aia-card); border: 1px solid var(--aia-line); border-radius: var(--aia-radius); }
/* `contain: paint` keeps the row's own sideways travel inside the row. Without it the logos that sit off the right
   edge were still counted by everything above, so on a narrow column the WHOLE panel slid sideways under a finger,
   not just the logos (measured 23 Oct in the homepage's window: the panel was 781px wide in a 354px column, and it
   dragged 427px). Rossi: "This embeded ai-answers panel you see is horizontally scrollable for no reason." */
.aia-st-list { list-style: none; margin: 0; padding: 6px 6px 4px; display: flex; gap: 14px; overflow-x: auto; contain: paint; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-behavior: smooth; }
.aia-st-list::-webkit-scrollbar { display: none; }
.aia-st-list > li { flex: 0 0 auto; }
.aia-st { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--aia-text); }
.aia-st-ring { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; padding: 3px; box-sizing: border-box;
  background: linear-gradient(45deg, var(--aia-amber) 0%, var(--aia-st-2) 30%, var(--aia-st-3) 62%, var(--aia-st-4) 100%); transition: transform .15s ease; }
.aia-st.seen .aia-st-ring { background: var(--aia-line); }
/* the name on screen wears the board's navy, whether or not its card was seen: before, it went grey and so looked the
   least chosen of the row (Rossi's screenshot, 22 Oct) */
.aia-st.on .aia-st-ring, .aia-st.on.seen .aia-st-ring { background: var(--aia-you); }
.aia-st-pic { display: grid; place-items: center; width: 100%; height: 100%; box-sizing: border-box; border-radius: 50%; overflow: hidden; background: var(--aia-card); border: 2.5px solid var(--aia-card); }
.aia-st-pic img { width: 74%; height: 74%; object-fit: contain; }
/* a board's own profile picture fills its circle, as in the right-hand list (23 Oct: inset, the luxury brands' square
   pictures read as small squares inside the ring) */
.aia-st-pic img.fill { width: 100%; height: 100%; object-fit: cover; }
.aia-st-letter { font-family: var(--aia-ui); font-size: 22px; font-weight: 700; color: var(--aia-you); }
.aia-st-nm { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; line-height: 15px; font-weight: 500; color: var(--aia-text-2); }
.aia-st.on .aia-st-nm { font-weight: 700; color: var(--aia-text); }
.aia-st:hover .aia-st-ring { transform: scale(1.04); }
.aia-st:focus-visible { outline: none; }
.aia-st:focus-visible .aia-st-ring { box-shadow: 0 0 0 2px var(--aia-card), 0 0 0 4px var(--aia-you); }
.aia-st[aria-busy="true"] .aia-st-ring { animation: aia-st-spin 1s linear infinite; }
@keyframes aia-st-spin { to { filter: hue-rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .aia-st-ring { transition: none; } .aia-st[aria-busy="true"] .aia-st-ring { animation: none; } }
/* more to one side: on a computer a round arrow there (Instagram's own), on a touch screen the row is swiped */
.aia-st-go { position: absolute; top: 33px; z-index: 2; display: none; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--aia-line); border-radius: 50%; background: var(--aia-card); color: var(--aia-text); box-shadow: 0 2px 8px var(--aia-shadow); cursor: pointer; }
.aia-st-go.prev { left: 8px; }
.aia-st-go.next { right: 8px; }
@media (hover: hover) and (pointer: fine) {
  .aia-stories.aia-more-left .aia-st-go.prev, .aia-stories.aia-more-right .aia-st-go.next { display: grid; }
  /* a white fade under each arrow, so it never sits on a half-cut logo */
  .aia-stories.aia-more-left::before, .aia-stories.aia-more-right::after { content: ''; position: absolute; top: 0; bottom: 0; width: 64px; z-index: 1; pointer-events: none; }
  .aia-stories.aia-more-left::before { left: 0; border-radius: var(--aia-radius) 0 0 var(--aia-radius); background: linear-gradient(to left, transparent, var(--aia-card) 55%); }
  .aia-stories.aia-more-right::after { right: 0; border-radius: 0 var(--aia-radius) var(--aia-radius) 0; background: linear-gradient(to right, transparent, var(--aia-card) 55%); }
}
/* on a computer the row stands three times further from the filters than the column's own 18 px (Rossi, 21 Oct, red
   arrows on vision clinics: "triple the current spacing gap"): 18 + 36 = 54 px. A phone keeps 18. */
@media (min-width: 769px) { .aia-stories { margin-bottom: 36px; } }
@media (max-width: 768px) {
  .aia-st-list { gap: 10px; }
  .aia-st { width: 70px; }
  .aia-st-ring { width: 64px; height: 64px; }
  /* (a 70 px button holds a 64 px ring, 3 px in from each side) */
  .aia-stories { padding: 6px 2px 4px; }
}

/* ── the subscriber's panels, shown locked to a visitor (28 Oct, Rossi: "display the panel framed in red fully ... but
   make the area highlighted in blue blurry", and "a blurred version of the Week by Week panel"). The names and logos stay
   sharp; only the figures blur, and they are placeholders, never the real ones (assets/ai-answers.js previewStripHtml). ── */
.aia-cell.locked .aia-cell-btn { cursor: pointer; }
.aia-cell.locked .aia-cell-btn:disabled { cursor: default; }
.aia-lockfig { display: flex; flex-direction: column; gap: 6px; filter: blur(5px); opacity: .7; user-select: none; pointer-events: none; }
.aia-cell.locked:hover { border-color: var(--aia-you); }
/* the footer is set in the mono; its button keeps every other button's face, and its lock reads on the navy */
#view-ai-answers .aia-asst-locked .aia-strip-unlock { margin-left: auto; font-family: var(--aia-ui); font-size: 13px; }
#view-ai-answers .aia-asst-locked .aia-strip-unlock .aia-ico { color: currentColor; }
#view-ai-answers .aia-asst-locked .aia-cf { padding-top: 10px; padding-bottom: 10px; }
.aia-tr-lockwrap { position: relative; }
.aia-tr-lockpic { filter: blur(6px); opacity: .55; user-select: none; pointer-events: none; }
.aia-tr-lockpic svg { display: block; margin-top: 12px; }
.aia-tr-locked .aia-unlock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.aia-unlock-in { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.aia-unlock-t { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--aia-text); }
/* (28 Oct) a visitor's row of logos: the business on screen plays its free card; every other circle wears a grey ring and
   a small lock in its corner (Rossi chose "the others are locked" on the Decision Desk). The logo stays sharp: a blurred
   logo reads as a broken page, not a lock. */
.aia-st-ring { position: relative; }
.aia-st.locked .aia-st-ring { background: var(--aia-line); }
.aia-st-lock { position: absolute; right: -3px; bottom: -3px; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--aia-text); color: var(--aia-card); border: 2px solid var(--aia-card); box-sizing: border-box; }
.aia-st-lock .aia-ico { display: block; }
/* (28 Oct) what the yearly plan saves, on its button in the navy panel: mint, bold, so it reads at a glance beside the
   white price (Rossi: "in a eye catching font color over this current panel bg color") */
.aia-btn .aia-save { margin-left: 10px; color: var(--aia-save); font-weight: 800; white-space: nowrap; }

/* A CUSTOM BOARD ASKS FIVE ASSISTANTS, NOT SIX (7 Nov 2026), so its two rows of assistants are one box narrower and neither
   ends on a hole: the strip keeps "All" after its divider, and the boxes share the width. Where three boxes a row is all
   that fits, the two of the second row take the row's whole width between them. */
@container aia (min-width: 1052px) {
  .aia-five .aia-asst-strip { grid-template-columns: repeat(5, minmax(0, 1fr)) 1px minmax(0, 1.15fr); }
}
@container aia (min-width: 560px) and (max-width: 759px) {
  .aia-five .aia-tms { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .aia-five .aia-tms > .aia-tm { grid-column: span 2; }
  .aia-five .aia-tms > .aia-tm:nth-child(n+4) { grid-column: span 3; }
}
@container aia (min-width: 760px) {
  .aia-five .aia-tms { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
}
/* a link wearing a button's look (a custom board's "Manage questions") */
a.aia-abtn, a.aia-btn { text-decoration: none; }
/* the count on a name in a custom board's question table */
.aia-chip b { font-weight: 600; margin-left: 2px; }
/* (below the width where the strip is one row) five assistants and "All" are six boxes, so "All" takes the sixth place and
   no row ends on a hole */
.aia-five .aia-asst-strip .aia-cell.all { grid-column: auto; }
/* five boxes in a row where six never are: the assistant's name keeps its own line and the account's share goes under it,
   or both are cut to "ChatG..." */
@container aia (min-width: 760px) and (max-width: 1109px) {
  .aia-five .aia-tm-head { flex-wrap: wrap; row-gap: 2px; }
  .aia-five .aia-tm-nm { flex: 1 1 auto; max-width: none; }
  .aia-five .aia-tm-you { flex: 1 0 100%; margin-left: 0; }
}
a.aia-btn { color: var(--aia-text); }
/* on a phone the label over a custom board's names takes its own line, so the names keep the line under it */
@media (max-width: 768px) { .aia-five .aia-chips .aia-mlab { flex-basis: 100%; } }
/* WHAT THE ASSISTANTS SAY ABOUT THE COMPANY (2026-11-12, the Trafigura board's ten questions that name it): the tone split,
   two key figures, the past cases brought up, assistant by assistant, and the pages quoted (aboutHtml in ai-answers.js). */
.aia-about-card { padding-bottom: 16px; }
.aia-ab-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding: 4px 16px 16px; border-bottom: 1px solid var(--aia-divider); }
.aia-ab-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; color: var(--aia-text-2); margin-bottom: 8px; }
.aia-ab-stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--aia-divider); gap: 2px; }
.aia-ab-seg { display: block; height: 100%; flex: none; }
.aia-ab-seg.bad, .aia-ab-dot.bad { background: var(--aia-rose-fg); }
.aia-ab-seg.mid, .aia-ab-dot.mid { background: var(--aia-off); }
.aia-ab-seg.good, .aia-ab-dot.good { background: var(--aia-ok-fg); }
.aia-ab-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; line-height: 18px; }
.aia-ab-legend li { display: inline-flex; align-items: baseline; gap: 6px; }
.aia-ab-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; align-self: center; }
.aia-ab-n { display: inline-flex; gap: 6px; align-items: baseline; }
.aia-ab-figs { display: flex; flex-wrap: wrap; gap: 16px 32px; align-content: start; }
.aia-ab-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 16px 16px 0; }
.aia-ab-h3 { font-size: 14px; line-height: 20px; font-weight: 600; margin: 0 0 8px; color: var(--aia-text); }
.aia-ab-col .aia-ab-h3 ~ .aia-ab-h3 { margin-top: 20px; }
.aia-ab-rows { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 32%) max-content; column-gap: 12px; row-gap: 8px; align-items: center; }
.aia-ab-row { display: contents; }
.aia-ab-row .aia-val { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; font-size: 13px; }
.aia-ab-wide { padding: 20px 16px 0; }
.aia-ab-tw { overflow-x: auto; }
.aia-ab-t { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.aia-ab-t th, .aia-ab-t td { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--aia-divider); white-space: nowrap; }
.aia-ab-t thead th { font-size: 12px; font-weight: 600; color: var(--aia-text-2); }
.aia-ab-t tbody th { font-weight: 500; }
.aia-ab-pages { margin: 0; padding: 0 0 0 20px; display: grid; gap: 10px; font-size: 13px; line-height: 18px; }
.aia-ab-page a { color: var(--aia-text); font-weight: 500; overflow-wrap: anywhere; }
.aia-ab-meta { display: block; color: var(--aia-text-3); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
@container aia (max-width: 728px) {
  .aia-ab-top, .aia-ab-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .aia-ab-top, .aia-ab-cols, .aia-ab-wide { padding-left: 12px; padding-right: 12px; }
  /* a phone gives each case its own line, its bar and figure under it: beside a bar the name broke mid-word (12 Nov) */
  .aia-ab-rows { grid-template-columns: minmax(0, 1fr) max-content; row-gap: 4px; }
  .aia-ab-row .aia-nm { grid-column: 1 / -1; margin-top: 6px; }
}
