/* The catalog is a working surface; retain the marketing shell around it. */
.model-catalog-page { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 0; width: 100%; max-width: 1360px; margin: 0 auto; height: 100dvh; min-height: 620px; padding: 120px 24px 24px; background: transparent; font-family: var(--font-sans); font-size: 14px; line-height: var(--text-leading-body); }
.model-catalog-page [hidden] { display: none !important; }
.catalog-sidebar { position: fixed; inset: 104px max(24px, calc((100vw - 1312px) / 2)) 24px auto; z-index: 50; width: min(320px, calc(100% - 40px)); overflow-y: auto; overscroll-behavior: contain; padding: 20px; border-radius: 12px; background: #fff; box-shadow: 0 8px 32px rgba(0, 30, 70, .16); scrollbar-width: thin; scrollbar-color: #a2c9f6 transparent; }
.catalog-sidebar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.catalog-sidebar-heading h2 { margin: 0; font-size: 13px; font-weight: 600; }
.catalog-sidebar-heading button { padding: 4px 0; border: 0; background: none; color: var(--text-muted); font: inherit; font-size: 12px; cursor: pointer; }
.catalog-sidebar-heading button:hover { color: var(--brand-blue); }
.catalog-filter-group { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.catalog-filter-group legend { margin-bottom: 12px; color: var(--text); font-size: 13px; font-weight: 600; }
.catalog-check { display: flex; align-items: center; gap: 9px; min-height: 32px; color: var(--text-secondary); font-size: 13px; cursor: pointer; }
.catalog-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand-blue); cursor: pointer; }
.catalog-check:has(input:checked) { color: var(--accent); }
.catalog-range-value { margin-bottom: 8px; color: var(--text-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
#catalog-context { width: 100%; height: 18px; margin: 4px 0; accent-color: var(--brand-blue); cursor: pointer; }
.catalog-range-labels { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 10px; }
.catalog-price-filter { display: block; margin-bottom: 12px; color: var(--text-secondary); font-size: 12px; }
.catalog-price-input { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 0 10px; min-height: 36px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); background: #fff; }
.catalog-price-input input { width: 100%; min-width: 0; padding: 6px 0; border: 0; background: none; color: var(--text); font: inherit; font-variant-numeric: tabular-nums; }
.catalog-price-input input:focus { outline: 0; }
.catalog-price-input:focus-within { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(var(--brand-blue-rgb), .09); }
.catalog-price-input > span:last-child { flex: 0 0 auto; font-size: 10px; }
.catalog-provider-label { display: block; margin-bottom: 10px; color: var(--text); font-size: 13px; font-weight: 600; }
#catalog-provider { display: block; width: 100%; margin-top: 12px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-secondary); font: inherit; font-size: 12px; font-weight: 400; }
.catalog-author-picker { position: relative; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.catalog-author-picker[open] { border-color: #b6d3fa; box-shadow: 0 4px 16px rgba(25, 75, 130, .06); }
.catalog-author-picker > summary { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 11px; list-style: none; cursor: pointer; color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.catalog-author-picker > summary::-webkit-details-marker { display: none; }
.catalog-author-picker > summary:hover { color: var(--brand-blue); }
.catalog-author-trigger-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; background: #edf5ff; color: var(--brand-blue); }
#catalog-author-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-author-chevron { flex: 0 0 auto; color: var(--text-muted); transform: rotate(180deg); transition: transform .15s ease; }
.catalog-author-picker[open] .catalog-author-chevron { transform: rotate(0); }
.catalog-author-options { display: grid; gap: 4px; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; padding: 8px; border-top: 1px solid var(--border); background: #fff; }
.catalog-author-option { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 38px; padding: 7px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text-secondary); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.catalog-author-option:hover { background: #f5f8fc; }
.catalog-author-option[aria-pressed="true"] { background: #edf5ff; color: #0966d4; font-weight: 600; }
.catalog-author-mark { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border: 1px solid #edf0f4; border-radius: 6px; background: #fff; }
.catalog-author-mark img { width: 16px; height: 16px; object-fit: contain; }
.catalog-author-name { flex: 1; min-width: 0; }
.catalog-results { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.catalog-search { flex: 0 0 auto; margin-bottom: 0; }
.catalog-toolbar { display: flex; align-items: center; gap: 10px; min-height: 42px; margin: 0 0 20px; }
.catalog-search-field { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 120px; padding: 0 13px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-muted); }
.catalog-search-field:focus-within { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(var(--brand-blue-rgb), .08); }
.catalog-search-field > svg { flex-shrink: 0; }
#catalog-search-input { width: 100%; min-width: 0; min-height: 40px; padding: 7px 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; }
#catalog-search-input::placeholder { color: var(--text-muted); }
.catalog-toolbar button, .catalog-columns summary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-secondary); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.catalog-toolbar button:hover:not(:disabled), .catalog-columns summary:hover { border-color: var(--border-strong); color: var(--text); background: #f8fbff; }
.catalog-toolbar button:disabled, #catalog-reset-filters:disabled { opacity: .4; cursor: default; }
.model-catalog-page:not(.catalog-enhanced) :is(.catalog-toolbar, .catalog-types) { display: none; }
.catalog-columns { position: relative; flex: 0 0 auto; }
.catalog-columns summary { list-style: none; }
.catalog-columns summary::-webkit-details-marker { display: none; }
.catalog-columns > div { position: absolute; top: calc(100% + 7px); right: 0; z-index: 10; min-width: 185px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: 0 10px 25px rgba(0, 30, 70, .08); }
.catalog-type-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; min-height: 48px; border-bottom: 1px solid var(--border); }
.catalog-types { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 18px; max-inline-size: 100%; }
.catalog-type { display: inline-flex; max-inline-size: 100%; overflow-wrap: anywhere; align-items: center; gap: 6px; min-height: 48px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-secondary); font: inherit; font-size: 13px; cursor: pointer; }
.catalog-type[aria-pressed="true"] { border-bottom-color: var(--brand-blue); color: var(--accent); font-weight: 600; }
.catalog-type-count { color: var(--text-muted); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.catalog-type-bar .new-models-catalog-link { display: inline-flex; align-items: center; min-height: 44px; margin-inline-start: auto; font-size: 13px; white-space: nowrap; }
.catalog-search-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-model-list] > .catalog-search-hidden { display: none; }
.model-catalog-page .catalog-table-wrapper { position: relative; flex: 1; min-height: 0; overflow: auto; margin-inline: -8px; padding: 0 8px 16px; border: 0; border-radius: 0; background: transparent; scrollbar-width: thin; scrollbar-color: #a2c9f6 transparent; }
.model-catalog-page .catalog-table { min-width: 960px; table-layout: auto; border-spacing: 0 12px; }
.model-catalog-page .catalog-table thead th:nth-child(n) { position: sticky; top: 0; z-index: 3; width: auto; min-width: 72px; height: 48px; padding: 0 14px; background: #edf5ff; color: var(--text-secondary); font-size: 12px; font-weight: 600; text-align: left; vertical-align: middle; white-space: nowrap; box-shadow: inset 0 -1px 0 var(--border); }
.model-catalog-page .catalog-table thead th:first-child { min-width: 220px; }
.model-catalog-page .catalog-table thead th > span { display: inline-flex; align-items: center; min-height: 48px; }
.model-catalog-page .catalog-table tbody tr { position: relative; border-radius: 8px; transition: box-shadow .18s ease; }
.model-catalog-page .catalog-table tbody tr > :is(th, td):nth-child(n) { padding: 12px 14px; color: var(--text-secondary); font-family: var(--font-sans); font-size: 13px; line-height: 22px; text-align: left; vertical-align: top; background: #fff; border: 0; border-block: 1px solid var(--border); border-radius: 0; transition: background .18s ease, border-color .18s ease; }
.model-catalog-page .catalog-table tbody tr > :is(th, td):first-child { border-left: 1px solid var(--border); border-radius: 12px 0 0 12px; }
.model-catalog-page .catalog-table tbody tr > :is(th, td):last-child,
.model-catalog-page.catalog-enhanced:not(.show-cache):not(.show-limit) .catalog-table tbody tr > :nth-last-child(1 of :not([data-catalog-column])),
.model-catalog-page.catalog-enhanced.show-cache:not(.show-limit) .catalog-table tbody tr > :nth-last-child(1 of :not([data-catalog-column="limit"])) { border-right: 1px solid var(--border); border-radius: 0 12px 12px 0; }
.model-catalog-page .catalog-table tbody tr:focus-within > * { background: var(--bg-soft); }
.model-catalog-page .catalog-table .catalog-model-cell:first-child { width: 28%; min-width: 240px; max-width: 320px; padding-left: 16px; }
.model-catalog-page .catalog-table thead th:first-child { z-index: 4; padding-left: 17px; border-right: 0; }
@media (hover: hover) {
  .model-catalog-page .catalog-table > tbody > tr:hover { box-shadow: 0 8px 24px -12px rgba(20, 65, 110, .28); }
  .model-catalog-page .catalog-table tbody tr:hover > * { background: #f8fbff; border-color: var(--border-strong); }
}
@media (prefers-reduced-motion: reduce) {
  .model-catalog-page .catalog-table tbody tr, .model-catalog-page .catalog-table tbody tr > * { transition: none; }
}
.model-catalog-page .catalog-model-name { position: static; gap: 8px; color: var(--text); font-family: var(--font-sans); font-size: 14px; font-weight: 600; line-height: 22px; text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
.model-catalog-page .catalog-model-name:hover { color: var(--text); text-decoration: none; }
.model-catalog-page .catalog-model-name::after { content: ""; position: absolute; inset: 0; z-index: 1; width: auto; height: auto; margin: 0; border-radius: 8px; background: none; mask: none; }
.model-catalog-page .catalog-table tbody :is(button, summary, details[open], a:not(.catalog-model-name)) { position: relative; z-index: 2; }
.model-catalog-page .catalog-model-meta { display: flex; align-items: center; gap: 4px; margin: 5px 0 0; font-size: 11px; font-weight: 400; }
.catalog-provenance { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin-top: 4px; }
.model-catalog-page .catalog-provenance > div { margin-top: 0; }
.catalog-supply-source { margin-top: 4px; color: var(--text-secondary); font-size: 12px; font-weight: 400; line-height: 1.6; }
.model-catalog-page .model-status { padding: 0; border: 0; background: none; font-size: 11px; font-weight: 400; }
.model-catalog-page .model-status::before { width: 4px; height: 4px; }
.model-catalog-page .model-id { margin: 2px 0 0; }
.model-catalog-page .model-id code { min-width: 0; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 11px; }
.model-catalog-page .model-copy { width: 28px; height: 28px; min-height: 28px; padding: 6px; border: 0; background: transparent; color: var(--text-muted); }
.model-catalog-page .catalog-table .catalog-price { color: var(--text); font-family: var(--font-sans); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.catalog-modalities { display: flex; flex-wrap: wrap; gap: 6px; max-width: 80px; }
.catalog-modality { display: inline-flex; align-items: center; gap: 4px; color: var(--text-secondary); font-size: 11px; white-space: nowrap; }
.catalog-modality svg { width: 13px; height: 13px; }
.catalog-modality.is-pending { color: var(--text-muted); }
.catalog-pending-mark { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; border: 1px solid var(--border-strong); border-radius: 50%; font-size: 9px; }
/* Keep the icon rows aligned with the first price/modality line. */
.model-catalog-page .catalog-capabilities { display: grid; grid-template-columns: repeat(5, 20px); gap: 6px; width: max-content; min-width: 124px; padding-top: 1px; }
.model-catalog-page .catalog-provider-cell { min-width: 142px; width: 156px; }
.model-catalog-page .catalog-provider-cell .catalog-supply-source { margin: 0; }
.model-catalog-page .model-supply-icons { display: grid; grid-template-columns: repeat(4, 20px); gap: 4px 6px; padding-top: 1px; }
.model-catalog-page .model-supply-provider { width: 20px; height: 20px; }
.model-catalog-page .model-supply-provider > :is(img, svg) { width: 14px; height: 14px; }
.model-catalog-page :is(.model-capability-status, .model-supply-provider) { position: relative; z-index: 2; }
.model-catalog-page :is(.model-capability-status, .model-supply-provider):is(:hover, :focus-visible) { z-index: 5; }
.model-catalog-page :is(.model-capability-tooltip, .model-supply-tooltip) { top: calc(100% + 6px); bottom: auto; left: 0; transform: none; }
.model-catalog-page .model-supply-tooltip { right: 0; left: auto; }
.catalog-sort-button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; width: 100%; min-height: 48px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.catalog-sort-button:hover:not(:disabled) { color: var(--accent); }
.catalog-sort-button:disabled { cursor: default; }
.catalog-sort-indicator { width: 8px; height: 12px; opacity: .35; }
.catalog-table th[aria-sort="ascending"] .catalog-sort-button, .catalog-table th[aria-sort="descending"] .catalog-sort-button { color: var(--accent); }
.catalog-table th[aria-sort="ascending"] .catalog-sort-indicator, .catalog-table th[aria-sort="descending"] .catalog-sort-indicator { opacity: 1; }
.catalog-table th[aria-sort="ascending"] .sort-down, .catalog-table th[aria-sort="descending"] .sort-up { opacity: .2; }
.catalog-enhanced:not(.show-cache) [data-catalog-column="cache"], .catalog-enhanced:not(.show-limit) [data-catalog-column="limit"] { display: none; }
.catalog-empty { padding: 80px 20px; text-align: center; color: var(--text-muted); }
.catalog-empty > svg { width: 28px; height: 28px; margin-bottom: 14px; }
.catalog-empty h2 { margin-bottom: 8px; color: var(--text-secondary); font-size: var(--text-size-lead); }
.catalog-empty p { font-size: 13px; }
.catalog-empty button { margin-top: 18px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; }
.catalog-data-footer { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 0 0; color: var(--text-muted); font-size: 11px; }
.catalog-data-notes { max-width: 650px; }
.catalog-data-notes > summary { width: fit-content; margin-left: auto; cursor: pointer; }
.catalog-data-notes > div { padding: 18px 0; }
.catalog-data-notes .catalog-note, .catalog-data-notes .evidence-note, .catalog-data-notes .pricing-note { margin: 0 0 10px; font-size: 11px; text-align: left; }
.catalog-data-notes .catalog-legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.catalog-legend-item { display: inline-flex; gap: 4px; align-items: center; }
.model-catalog-page :is(button, summary, select, input[type="range"], input[type="checkbox"]):focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
@media (max-width: 1050px) {
  .model-catalog-page { padding-inline: 20px; }
}
@media (max-width: 800px) {
  .model-catalog-page { display: flex; flex-direction: column; gap: 0; padding: 104px 20px 20px; }
  .catalog-sidebar { top: 80px; right: 20px; bottom: 20px; }
  .catalog-toolbar { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
  .catalog-search-field { flex-basis: 100%; }
  .catalog-toolbar #catalog-search-clear { margin-left: auto; }
  .catalog-types { gap: 0 12px; }
  .catalog-data-footer { font-size: 11px; }
  .model-catalog-page .catalog-table { min-width: 960px; }
  .catalog-check { min-height: 44px; }
  .catalog-sidebar-heading button { min-height: 44px; }
  .model-catalog-page .model-copy { width: 44px; height: 44px; min-height: 44px; padding: 12px; }
}

.catalog-image-rate { display: block; max-width: 80px; margin-top: 5px; color: var(--text-muted); font-family: var(--font-sans); font-size: 9px; line-height: 1.5; }
.catalog-sidebar { scroll-margin-top: 88px; }
.model-catalog-page .catalog-table tbody tr > :nth-child(4) { white-space: nowrap; }

.catalog-sidebar-heading h2 { margin-right: auto; }
.catalog-sidebar-heading { gap: 20px; }
.catalog-sidebar-heading .catalog-close-filters { display: inline-flex; color: var(--accent); font-weight: 600; }
.catalog-comparison { min-width: 184px; font-size: 12px; line-height: var(--text-leading-body); white-space: normal; }
.catalog-comparison [data-comparison-rates] > div { display: flex; justify-content: space-between; gap: 10px; }
.catalog-comparison strong { font-weight: 600; color: var(--text-primary); }
.catalog-comparison strong[data-price-saving="true"] {
  color: #087b45;
}
.catalog-comparison [hidden] { display: none !important; }
.catalog-comparison [data-comparison-unavailable] { display: block; }
.catalog-comparison small { display: block; color: var(--text-secondary); font-size: 10px; }
.catalog-comparison > a { font-size: 11px; margin-right: 6px; }
