.ai-trends { min-width: 0; margin: 24px 0; padding-block: 20px; border-block: 1px solid var(--line); color: var(--ink); letter-spacing: 0; }
.at-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ab .at-heading h3 { margin: 0; font-size: 15px; }
.at-modes { display: inline-flex; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; }
.at-modes label { position: relative; margin: 0; cursor: pointer; }
.at-modes input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; border: 0; }
.at-modes span { display: block; padding: 8px 16px; min-width: 68px; min-height: 38px; box-sizing: border-box; text-align: center; font-size: 13px; color: var(--muted); border-radius: 4px; }
.at-modes input:checked + span { color: #174ca6; background: #e8effc; font-weight: 600; }
.at-modes input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.at-modes label:hover span { color: var(--ink); }
.at-modes:disabled { opacity: .55; }
.at-modes:disabled label { cursor: default; }
.at-note, .at-warning, .at-error { margin: 12px 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.at-note { color: var(--muted); }
.at-warning { color: #805018; }
.at-error { color: #a0392c; }
.at-loading { min-height: 240px; padding-top: 18px; color: var(--muted); }
.at-summary { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 20px 0; }
.at-summary > div { min-width: 0; flex: 1 1 180px; }
.at-summary dt { font-size: 12px; color: var(--muted); }
.at-summary dd { margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.at-figure { margin: 20px 0 12px; }
.at-figure figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.at-scale { color: var(--muted); font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.at-chart { display: block; width: 100%; height: 216px; overflow: visible; margin-top: 8px; }
.at-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.at-axis { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.at-bar { fill: #3267b5; pointer-events: none; }
.at-partial { fill: #528193; }
.at-unknown { fill: none; stroke: #805018; stroke-width: 3; stroke-dasharray: 3 2; pointer-events: none; }
.at-hit { fill: transparent; cursor: crosshair; }
.at-hit:hover, .at-hit:focus { fill: #3267b512; }
.at-hit:focus-visible { outline: 2px solid var(--blue); outline-offset: -1px; }
.at-tooltip { min-height: 3.4em; margin: 6px 0 0; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.at-details summary { width: fit-content; padding-block: 8px; cursor: pointer; font-size: 13px; color: var(--blue); }
.at-table { max-width: 100%; max-height: 420px; overflow: auto; margin-top: 8px; overscroll-behavior: contain; }
.at-table table { width: 100%; min-width: 600px; table-layout: fixed; }
.at-table th:first-child { width: 110px; }
.at-table th:nth-child(2), .at-table th:nth-child(3) { width: 26%; }
.at-table td, .at-table tbody th { font-size: 12px; font-family: var(--sans); font-weight: 400; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; white-space: normal; line-height: 1.7; }
.at-retry { width: 40px; height: 40px; }
.ai-trends summary:focus-visible, .ai-trends button:focus-visible, .at-table:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.at-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .at-summary { gap: 14px; }
  .at-summary > div { flex-basis: 100%; }
  .at-modes span { min-height: 44px; padding-block: 11px; }
  .at-tooltip { min-height: 5.1em; }
}
