/* Agent pages share the AI model layout and comparison components. */
.ag .am-hero h1, .ag .am-col__name, .ag .am-card__title { overflow-wrap: anywhere; }
.ag.am--detail .am-hero { grid-template-columns: minmax(0, 1fr); }
.ag-compare-card { scroll-margin-top: calc(var(--bar) + 1rem); }
.ag-meta, .ag-source { color: var(--muted); font-size: .875rem; margin-block: .75rem; }
.ag-source a, .ag-list a, .ag-scroll td a { text-decoration: underline; text-underline-offset: .2em; }
.ag-picker { margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.ag-picker .am-field { flex: 1 1 12rem; font-size: .9375rem; }
.ag-directory { text-align: left; }
.ag .am-table.ag-directory td { white-space: normal; }
.ag .am-pair { min-height: 0; }
.ag-list { padding-inline-start: 1.25rem; margin-block: .5rem 1rem; }
.ag-list li + li { margin-top: .4rem; }
.ag-commands { border: 1px solid var(--line); background: var(--paper-2); border-radius: 8px; padding: .75rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.ag-scroll-hint { display: none; margin-bottom: .75rem; }
.ag-table.am-sxs { table-layout: fixed; min-width: 35rem; }
.ag-table.am-sxs--3 { min-width: 49rem; }
.ag-table.am-sxs :is(thead th:first-child, tbody th) { width: 9rem; }
.ag-table.am-sxs th, .ag-table.am-sxs td { overflow-wrap: anywhere; }
.ag-table.am-sxs td { vertical-align: top; }
.ag-table.am-sxs td > :first-child { margin-top: 0; }
.ag-table.am-sxs td > :last-child { margin-bottom: 0; }
.ag-table.am-sxs thead th small { white-space: normal; }
.ag .am-combo__opt--logo { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); column-gap: .65rem; align-items: center; }
.ag .am-combo__opt--logo .am-logo { grid-row: 1 / span 2; }
.ag .am-combo__opt--logo :is(.am-combo__name, .am-combo__meta) { grid-column: 2; overflow-wrap: anywhere; }
.ag .am-form:not(.am-form--wide) .am-combo__list { position: static; max-height: 13rem; margin-top: .35rem; }
@media (max-width: 759px) {
  .ag .am-form--wide .am-combo__list { position: static; max-height: 13rem; margin-top: .35rem; }
  .ag .am-table.ag-directory tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .ag .am-table.ag-directory th { padding-right: 0; }
  .ag-table.am-sxs :is(thead th:first-child, tbody th) { width: 7rem; min-width: 7rem; }
}
@media (max-width: 608px) {
  .ag-scroll-hint--2 { display: block; }
}
@media (max-width: 832px) {
  .ag-scroll-hint--3 { display: block; }
}
@media (min-width: 1100px) {
  .ag-detail { grid-template-areas: "main compare"; }
  .ag-detail .am-detail__main { grid-area: main; }
  .ag-detail .am-detail__side { grid-area: compare; }
}
