/* Shared catalog: columns respond to available space, including the dashboard. */
html body .catalog-section{min-width:0;container-type:inline-size}
html body .catalog-section .model-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
@container(min-width:560px){html body .catalog-section .model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(min-width:860px){html body .catalog-section .model-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container(min-width:1120px){html body .catalog-section .model-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@supports not (container-type:inline-size){@media(min-width:680px){html body .catalog-section .model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1100px){html body .catalog-section .model-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:1440px){html body .catalog-section .model-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}}
html body .catalog-section .model-card{min-width:0;display:flex;flex-direction:column;padding:14px 20px;border:1px solid var(--line-soft);border-radius:12px;gap:0}
html body .catalog-section .card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:32px}
html body .catalog-section .model-monogram{width:32px;height:32px;flex:none;background:transparent;border-radius:7px}
html body .catalog-section .model-monogram img{width:28px;height:28px;object-fit:contain;filter:none;opacity:1}
html body .catalog-section .model-availability{flex:none;margin-left:auto;font-size:9px;line-height:1.5;white-space:nowrap}
html body .catalog-section .model-card h3{min-height:1.35em;margin:10px 0 8px;font-size:18px;line-height:1.35;font-weight:600;letter-spacing:-.035em;overflow-wrap:anywhere}
html body .catalog-section .model-id{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;padding:2px 8px;border-radius:7px}
html body .catalog-section .model-id code{min-width:0;font-size:10px;line-height:1.6;overflow-wrap:anywhere}
html body .catalog-section .model-id .copy-button{flex:none;min-height:28px;padding:4px 6px;font-size:11px;line-height:20px}
html body .catalog-section .model-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;padding-top:10px}
html body .catalog-section .model-prices>div{min-width:0}
html body .catalog-section .model-prices span{display:block;font-size:8px;line-height:1.6;letter-spacing:.03em}
html body .catalog-section .model-prices strong{display:block;margin-top:3px;font-size:20px;line-height:1.3;font-weight:550;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html body .catalog-section .model-prices small{font-size:11px;font-weight:400}
html body .catalog-section .model-limits{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 7px;margin:8px 0 10px;font-size:10px;line-height:1.7}
html body .catalog-section .model-limits>span+span::before{margin-right:7px}
html body .catalog-section .model-capabilities{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:9px;font-size:9px;line-height:1.7}
html body .catalog-section .model-capabilities>span:first-child{min-width:0;overflow-wrap:anywhere}
html body .catalog-section .model-free-badge{flex:none;font-size:9px;white-space:nowrap}
html body .catalog-section .model-grid>.empty-state{grid-column:1/-1}
/* Integration stays scoped to the homepage section. */
html body.api-home .developer-section{padding-block:64px}
html body.api-home .developer-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:start;gap:clamp(32px,4vw,64px)}
html body.api-home .developer-grid>div{min-width:0}
html body.api-home .developer-grid>div:first-child{padding-top:6px}
html body.api-home .developer-grid h2{margin:16px 0 0;font-size:clamp(32px,3.2vw,46px);line-height:1.12;font-weight:600;letter-spacing:-.05em}
html body.api-home .developer-grid>div>p{max-width:42ch;margin:20px 0 24px;font-size:14px;line-height:1.8}
html body.api-home .developer-grid .button{min-height:42px;margin:0;padding:10px 16px;font-size:12px;line-height:20px;border-radius:7px}
html body.api-home .developer-grid .code-panel{align-self:start;margin:0;border-radius:12px}
html body.api-home .developer-grid .code-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:8px 20px}
html body.api-home .developer-grid .code-toolbar>span{font:500 11px/1.5 var(--mono)}
html body.api-home .developer-grid .code-toolbar .copy-button{flex:none;min-height:30px;padding:5px 8px;font-size:11px;line-height:20px}
html body.api-home .developer-grid .code-panel pre{max-width:100%;margin:0;padding:22px 20px;font-size:12px;line-height:1.75;overflow:auto;tab-size:4}
html body.api-home .developer-grid .code-panel pre code{font-size:inherit;line-height:inherit}
html body.api-home .developer-grid .code-panel>.fine{max-width:none;margin:0;padding:13px 20px;border-top:1px solid var(--line-soft);font-size:11px;line-height:1.7;background:#ffffff02}
@media(max-width:900px){html body.api-home .developer-grid{grid-template-columns:minmax(0,1fr);gap:28px}html body.api-home .developer-section{padding-block:48px}}
@media(max-width:480px){html body .catalog-section .model-card{padding:14px 18px}html body.api-home .developer-grid .code-toolbar{padding-inline:16px}html body.api-home .developer-grid .code-panel pre{padding:18px 16px;font-size:11px}html body.api-home .developer-grid .code-panel>.fine{padding:12px 16px}}
html body .catalog-section .model-grid{scroll-margin-top:90px}
html body .catalog-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;margin-top:20px}
html body .catalog-pagination-status{margin:0;color:var(--muted);font-size:11px;line-height:1.6}
html body .catalog-pagination-controls,html body .catalog-page-numbers{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px}
html body .catalog-page-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:36px;min-height:36px;width:auto;margin:0;padding:7px 10px;border:1px solid var(--line-soft);border-radius:7px;background:transparent;color:var(--muted);font:500 11px/20px var(--sans);cursor:pointer;transition:background-color 150ms ease,color 150ms ease}
html body .catalog-page-button svg{display:block;flex:none;width:14px;height:14px}
html body .catalog-page-button[aria-current=page]{background:#0066ff;border-color:#0066ff;color:#fff}
html body .catalog-page-button:disabled{opacity:.35;cursor:default}
html body .catalog-page-gap{display:inline-flex;justify-content:center;width:14px;color:var(--muted);font-size:12px}
@media(hover:hover){html body .catalog-page-button:not(:disabled):not([aria-current=page]):hover{background:#ffffff08;color:var(--ink)}}
@media(max-width:600px){html body .catalog-pagination{justify-content:center}html body .catalog-pagination-status{flex-basis:100%;text-align:center}}
@media(max-width:480px){html body .catalog-page-button{min-width:36px;min-height:40px;padding:9px 8px}html body .catalog-page-direction-label{display:none}}

html body .catalog-section .model-grid[data-page-changing] .model-card:not([hidden]){animation:catalog-card-enter 180ms cubic-bezier(.22,1,.36,1) both}
@keyframes catalog-card-enter{from{opacity:.35;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){html body .catalog-section .model-grid[data-page-changing] .model-card:not([hidden]){animation:none}}

html body .catalog-section .model-grid{transition:min-height 160ms ease}
@media(prefers-reduced-motion:reduce){html body .catalog-section .model-grid{transition:none}}

html body .catalog-section .model-card{align-self:start;height:fit-content}

html body .catalog-tools .sort-label{min-width:190px}
html body .catalog-tools .sort-label select{width:100%}
