body.models-page {
  color: #111827;
  background: #fff;
}

.models-page__main {
  overflow-x: clip;
}

.catalog-filter-toolbar {
  max-width: 100%;
  overflow-x: auto;
}

.catalog-filter-toolbar-shell {
  max-width: 1344px;
}

.catalog-hero {
  background: radial-gradient(100% 50% at 50% 0%, rgb(37 99 235 / 5%), transparent 60%);
}

.catalog-hero__inner {
  max-width: 1344px;
}

.catalog-hero__eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 9px;
  border-radius: 3px;
  background: #0f172a;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.catalog-model-grid-section {
  max-width: 1344px;
  padding-inline: 32px;
}

.models-page #models-value-cards {
  margin-top: 88px;
}

.models-page [data-provider-ticker] > div,
.models-page #models-value-cards > div,
.models-page #models-install-snippets > div,
.models-page [data-catalog-hub-slot="team-use-case-grid"] > section > div,
.models-page #models-catalog-faq,
.models-page .catalog-strip > div,
.models-page .global-footer__columns,
.models-page .global-footer__bottom {
  max-width: 1344px;
}

.models-page .models-provider-ticker__glyph {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #64748b;
}

.models-page .models-provider-ticker__glyph svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.models-page .catalog-hero-code__path {
  display: inline-block;
  min-width: 216px;
}

.models-page [data-catalog-hub-slot="team-use-case-grid"] > section > div {
  padding-bottom: 0;
}

.models-page #models-team-use-case-grid-title {
  font-weight: 700;
}

.models-page .catalog-strip > div {
  padding-block: 88px;
}

.models-page .catalog-strip h2 + div {
  margin-top: 24px;
}

.catalog-model-card__icon {
  box-sizing: border-box;
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  object-fit: contain;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.catalog-model-card__modality {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.catalog-model-card__modality--video { background: #dbeafe; color: #2563eb; }
.catalog-model-card__modality--image { background: #f3e8ff; color: #8b5cf6; }
.catalog-model-card__modality--music { background: #fef3c7; color: #d97706; }
.catalog-model-card__modality--llm { background: #fce7f3; color: #db2777; }
.catalog-model-card__modality--neutral { background: #f1f5f9; color: #64748b; }

.catalog-model-card__name {
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.catalog-model-card__provider {
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.catalog-model-card__description {
  display: -webkit-box;
  max-width: 100%;
  margin: 12px 0 0;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-model-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
}

.models-header__bar {
  border-bottom: 1px solid #e2e8f0;
}

.models-header__secondary {
  background: #f8fafc;
  border-top: 0;
  border-bottom: 1px solid #e2e8f0;
}

.models-header__mega-column {
  min-width: 0;
}

.models-header__mega-started {
  display: flex;
  flex-direction: column;
  padding-left: 32px;
  border-left: 1px solid #f1f5f9;
}

.models-header__mega-started p {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.models-header__mega-capabilities {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}

.models-header__mega-capability {
  display: block;
  margin-inline: -12px;
  padding: 9px 12px;
  border-radius: 4px;
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-decoration: none;
}

.models-header__mega-capability:hover,
.models-header__mega-capability:focus-visible {
  background: #f8fafc;
  color: #2563eb;
}

.models-header__mega-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.models-header__mega-actions .models-header__mega-all {
  display: inline-flex;
  align-items: center;
  height: 36px;
  margin-top: 0;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
}

.models-header__mega-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #2563eb;
  border-radius: 3px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.models-header__mega-cta:hover,
.models-header__mega-cta:focus-visible {
  background: #1d4ed8;
  color: #fff;
}

.catalog-hero__primary {
  gap: 10px;
}

@media (min-width: 1024px) {
  .catalog-hero__copy h1 {
    text-wrap: nowrap;
    white-space: nowrap;
  }
}

html:not([lang="en"]) .catalog-hero__copy h1 {
  text-wrap: balance;
  white-space: normal;
}

@media (max-width: 560px) {
  .catalog-hero__inner {
    padding: 44px 18px 72px;
  }

  .catalog-hero__copy h1 {
    font-size: 32px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-wrap: nowrap;
    white-space: nowrap;
  }

  .catalog-hero__copy p {
    font-size: 16px;
  }

  .models-page #model-playground {
    padding-top: 44px;
  }

  .models-page .catalog-strip > div {
    padding-inline: 18px;
    padding-block: 44px;
  }

  .models-page .catalog-strip h2 {
    font-size: 24px;
    line-height: 1.15;
  }
}

.model-version-hero__codeblock .catalog-codeblock-pane,
.model-version-hero__codeblock pre {
  background: #0f172a;
  color: #e2e8f0;
}

.model-version-hero__codeblock pre {
  box-sizing: border-box;
  min-height: 330px;
  padding: 22px 24px;
  font-size: 13px;
  line-height: 1.9;
}

.model-version-hero__codeblock pre code {
  color: #e2e8f0;
}

[data-catalog-model-detail-page] .model-version-hero {
  background: radial-gradient(100% 50% at 50% 0%, rgb(37 99 235 / 5%), transparent 60%);
}

[data-catalog-model-detail-page] .model-version-hero__primary-action {
  gap: 10px;
}

[data-catalog-model-detail-slot="model-playground"] {
  box-sizing: border-box;
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
  padding-top: 0;
}

.model-detail-playground-heading {
  padding-top: 0;
}

.model-detail-playground-heading__eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 3px 7px;
  border-radius: 2px;
  background: #2563eb;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.model-detail-playground-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
}

.model-detail-playground-heading p {
  margin: 10px 0 24px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.model-detail-playground-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 20px;
  align-items: start;
}

[data-catalog-model-detail-page] #model-playground {
  min-width: 0;
  padding: 0;
}

[data-catalog-model-detail-page] #model-playground > .mx-auto:first-of-type {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-catalog-model-detail-page] #model-playground .model-playground__panel {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 22px;
}

.model-detail-playground-preview {
  min-width: 0;
}

.model-detail-playground-preview__media {
  display: flex;
  aspect-ratio: 16 / 9;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  background: #f1f5f9;
}

.model-detail-playground-preview__play {
  position: relative;
  width: 52px;
  height: 52px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
}

.model-detail-playground-preview__play::after {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #64748b;
  content: "";
  transform: translate(-50%, -50%);
}

.model-detail-playground-preview p {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 700px) {
  [data-catalog-model-detail-slot="model-playground"] {
    width: calc(100% - 36px);
  }

  .model-detail-playground-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.models-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.models-header__bar,
.models-header__secondary {
  box-sizing: border-box;
  padding-inline: max(32px, calc((100% - 1280px) / 2));
}

.models-header__bar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.models-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.models-header__logo {
  width: 24px;
  height: 24px;
  flex: none;
}

.models-header__brand-accent {
  color: #2563eb;
}
