body[data-fl-section="models"] .models-featured-page {
  --md-blue: #0968f7;
  --md-ink: #13294b;
  --md-muted: #60789d;
  --md-line: #e5edf7;
  max-width: none;
  margin: 0;
  padding: 0 0 26px;
  background: #f5f8fc;
  color: var(--md-ink);
}

body[data-fl-section="models"] .models-featured-page [hidden] { display: none !important; }

body[data-fl-section="models"] .models-featured-page > main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-fl-section="models"] .models-page-toolbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 7px 20px;
}

body[data-fl-section="models"] .models-page-search {
  width: min(620px, 58%);
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #dce7f4;
  border-radius: 24px;
  background: rgba(255,255,255,.95);
  color: #3769ad;
  box-shadow: 0 4px 14px rgba(43,91,156,.08);
}

body[data-fl-section="models"] .models-page-search > span { font-size: 22px; line-height: 1; }
body[data-fl-section="models"] .models-page-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #203d65; font: 13px/1.4 var(--font-sans); }
body[data-fl-section="models"] .models-page-search input::placeholder { color: #879bb6; }
body[data-fl-section="models"] .models-toolbar-actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
body[data-fl-section="models"] .models-toolbar-actions a,
body[data-fl-section="models"] .models-toolbar-actions button { padding: 7px 4px; border: 0; background: transparent; color: #344f74; font: 600 12px/1.3 var(--font-sans); text-decoration: none; cursor: pointer; }
body[data-fl-section="models"] .models-toolbar-actions .toolbar-submit { padding: 9px 16px; border-radius: 9px; background: var(--md-blue); color: white; box-shadow: 0 5px 12px rgba(9,104,247,.2); }

body[data-fl-section="models"] .models-featured-hero {
  position: relative;
  min-height: 188px;
  max-width: none;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0;
  padding: 24px max(32px, calc((100% - 1400px) / 2));
  border: 0;
  border-radius: 0;
  background: #c8e2fa url("/assets/reference/models-discovery-hero.png") center 49% / cover no-repeat;
  box-shadow: inset 0 -35px 55px rgba(21,74,133,.12);
}

body[data-fl-section="models"] .models-featured-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.74) 36%, rgba(255,255,255,.08) 82%);
  pointer-events: none;
}

body[data-fl-section="models"] .models-featured-copy { position: relative; z-index: 1; max-width: 720px; }
body[data-fl-section="models"] .models-featured-copy .eyebrow { margin: 0 0 4px; color: #315f9c; font: 700 11px/1.5 var(--font-mono); letter-spacing: .1em; }
body[data-fl-section="models"] .models-featured-copy h1 { margin: 0; color: #102447; font: 800 clamp(34px,4.5vw,50px)/1.08 var(--font-sans); letter-spacing: -.035em; }
body[data-fl-section="models"] .models-featured-copy h1 em { color: var(--md-blue); font-style: normal; }
body[data-fl-section="models"] .models-featured-copy .lead { max-width: 610px; margin: 8px 0 0; color: #405e85; font-size: 14px; line-height: 1.55; }

body[data-fl-section="models"] .models-quick-links {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 9px;
  max-width: 1440px;
  margin: -8px auto 14px;
  padding: 0 20px;
  border: 0;
}

body[data-fl-section="models"] .models-quick-links a {
  min-width: 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2ebf5;
  border-radius: 11px;
  background: rgba(255,255,255,.97);
  color: #213d62;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(41,79,128,.08);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

body[data-fl-section="models"] .models-quick-links a:hover { transform: translateY(-2px); border-color: #9fc3ef; box-shadow: 0 8px 17px rgba(41,79,128,.13); }
body[data-fl-section="models"] .models-quick-links a > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
body[data-fl-section="models"] .models-quick-links b { overflow: hidden; color: #1a3154; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
body[data-fl-section="models"] .models-quick-links small { overflow: hidden; color: #7388a7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
body[data-fl-section="models"] .models-quick-links i { margin-left: auto; color: #6382a9; font-size: 18px; font-style: normal; }
body[data-fl-section="models"] .models-quick-links .quick-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 9px; font-size: 16px; }
body[data-fl-section="models"] .icon-star { background: #fff3d6; color: #ef9b0c; }
body[data-fl-section="models"] .icon-grid { background: #eaf2ff; color: #1970f4; }
body[data-fl-section="models"] .icon-city { background: #e4f6ff; color: #138bb8; }
body[data-fl-section="models"] .icon-gift { background: #fff0f0; color: #ee5763; }
body[data-fl-section="models"] .icon-agent { background: #edf0ff; color: #586df3; }

body[data-fl-section="models"] .featured-model-section { max-width: 1400px; margin: 0 auto; padding: 0 0 18px; }
body[data-fl-section="models"] .featured-model-heading,
body[data-fl-section="models"] .featured-agent-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 10px; }
body[data-fl-section="models"] .featured-model-heading h2,
body[data-fl-section="models"] .featured-agent-heading h2 { margin: 0; color: #172c4d; font: 800 22px/1.25 var(--font-sans); }
body[data-fl-section="models"] .featured-model-heading h2 small { color: #637996; font: 600 13px/1 var(--font-sans); }
body[data-fl-section="models"] .team-tested-note { display: inline-flex; margin-top: 4px; padding: 4px 9px; border-radius: 99px; background: #e5f0ff; color: #1766d7; font-size: 10px; font-weight: 750; }
body[data-fl-section="models"] .all-models-link { display: grid; justify-items: end; gap: 2px; color: var(--md-blue); font-size: 13px; font-weight: 800; text-decoration: none; }
body[data-fl-section="models"] .all-models-link small { color: #7e91aa; font-size: 9px; font-weight: 500; }
body[data-fl-section="models"] .model-filter-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 11px; }
body[data-fl-section="models"] .model-filter-chips,
body[data-fl-section="models"] .model-view-controls { display: flex; align-items: center; gap: 8px; }
body[data-fl-section="models"] .model-filter-chips button,
body[data-fl-section="models"] .model-view-controls button,
body[data-fl-section="models"] .model-view-controls select { min-height: 34px; padding: 0 14px; border: 1px solid #e1e9f4; border-radius: 20px; background: #fff; color: #435d80; font: 700 11px/1 var(--font-sans); cursor: pointer; }
body[data-fl-section="models"] .model-filter-chips button span { margin-left: 3px; color: #8a9bb3; font-size: 10px; font-weight: 500; }
body[data-fl-section="models"] .model-filter-chips button.is-active,
body[data-fl-section="models"] .model-view-controls button.is-active { border-color: var(--md-blue); background: var(--md-blue); color: #fff; box-shadow: 0 5px 12px rgba(9,104,247,.18); }
body[data-fl-section="models"] .model-filter-chips button.is-active span { color: rgba(255,255,255,.84); }
body[data-fl-section="models"] .model-view-controls select { padding: 0 10px; }
body[data-fl-section="models"] .model-view-controls button { width: 34px; min-width: 34px; padding: 0; border-radius: 8px; font-size: 16px; }
body[data-fl-section="models"] .featured-model-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
body[data-fl-section="models"] .featured-model-card { min-width: 0; min-height: 203px; display: flex; flex-direction: column; padding: 11px 12px 9px; border: 1px solid var(--md-line); border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(41,79,128,.04); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
body[data-fl-section="models"] .featured-model-card:hover { transform: translateY(-2px); border-color: #bbd2ef; box-shadow: 0 9px 18px rgba(41,79,128,.1); }
body[data-fl-section="models"] .featured-model-card[hidden] { display: none !important; }
body[data-fl-section="models"] .featured-model-card-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
body[data-fl-section="models"] .featured-model-mark { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(140deg,#e8f1ff,#d6e7ff); color: #1764ce; font-size: 11px; font-weight: 850; }
body[data-fl-section="models"] .featured-model-provider { min-width: 0; overflow: hidden; color: #6981a3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
body[data-fl-section="models"] .featured-model-badge { margin-left: auto; flex: 0 0 auto; padding: 3px 6px; border-radius: 5px; background: #fff0c8; color: #b36b00; font-size: 8px; font-weight: 850; white-space: nowrap; }
body[data-fl-section="models"] .featured-model-card h3 { margin: 7px 0 2px; color: #14294a; font: 800 14px/1.25 var(--font-sans); overflow-wrap: anywhere; }
body[data-fl-section="models"] .featured-model-summary { min-height: 26px; margin: 3px 0 5px; color: #7388a6; font-size: 9px; line-height: 1.4; }
body[data-fl-section="models"] .featured-model-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; }
body[data-fl-section="models"] .featured-model-chips span { padding: 3px 6px; border: 0; border-radius: 5px; background: #eaf4ff; color: #2873c7; font-size: 8px; line-height: 1; }
body[data-fl-section="models"] .featured-model-facts { display: flex; align-items: center; gap: 0; margin-top: auto; border-top: 1px solid #edf1f6; border-bottom: 1px solid #edf1f6; }
body[data-fl-section="models"] .featured-model-facts span { min-width: 0; flex: 1; display: flex; align-items: center; gap: 5px; padding: 5px 4px; background: transparent; }
body[data-fl-section="models"] .featured-model-facts span + span { border-left: 1px solid #edf1f6; }
body[data-fl-section="models"] .featured-model-facts small { color: #8294ad; font-size: 8px; white-space: nowrap; }
body[data-fl-section="models"] .featured-model-facts b { overflow: hidden; color: #465f83; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
body[data-fl-section="models"] .featured-model-actions { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 6px; }
body[data-fl-section="models"] .featured-model-actions a { color: var(--md-blue); font-size: 9px; font-weight: 750; text-decoration: none; white-space: nowrap; }
body[data-fl-section="models"] .models-empty-state { padding: 28px 12px; color: #7187a5; text-align: center; font-size: 12px; }
body[data-fl-section="models"] .models-load-more { display: block; margin: 12px auto 0; padding: 8px 14px; border: 1px solid #cbdcf1; border-radius: 8px; background: #fff; color: var(--md-blue); font-size: 11px; font-weight: 750; cursor: pointer; }

body[data-fl-section="models"] .featured-agents-section { max-width: 1400px; margin: 0 auto; padding: 13px 20px 22px; border-top: 1px solid #e4ebf3; }
body[data-fl-section="models"] .featured-agent-heading { margin-bottom: 9px; }
body[data-fl-section="models"] .featured-agent-heading > div { min-width: 0; }
body[data-fl-section="models"] .featured-agent-heading h2 { display: inline-block; }
body[data-fl-section="models"] .featured-agent-heading p { margin: 3px 0 0; color: #7186a4; font-size: 10px; }
body[data-fl-section="models"] .featured-agent-heading > a { flex: 0 0 auto; color: var(--md-blue); font-size: 11px; font-weight: 750; text-decoration: none; }
body[data-fl-section="models"] .featured-agent-count { color: #758aa6; font-size: 9px; white-space: nowrap; }
body[data-fl-section="models"] .featured-agent-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
body[data-fl-section="models"] .featured-agent-card { min-width: 0; display: flex; gap: 8px; padding: 10px; border: 1px solid var(--md-line); border-radius: 9px; background: #fff; box-shadow: 0 3px 9px rgba(41,79,128,.035); }
body[data-fl-section="models"] .featured-agent-mark { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 8px; background: #e7f4eb; color: #16804b; font-size: 11px; font-weight: 850; }
body[data-fl-section="models"] .featured-agent-content { min-width: 0; flex: 1; }
body[data-fl-section="models"] .featured-agent-content h3 { margin: 0; color: #14294a; font-size: 11px; line-height: 1.3; }
body[data-fl-section="models"] .featured-agent-content small { color: #778ca8; font-size: 8px; }
body[data-fl-section="models"] .featured-agent-content p { height: 30px; overflow: hidden; margin: 4px 0; color: #607897; font-size: 8px; line-height: 1.45; }
body[data-fl-section="models"] .featured-agent-tags { display: flex; flex-wrap: wrap; gap: 3px; }
body[data-fl-section="models"] .featured-agent-tags span { max-width: 100%; overflow: hidden; padding: 3px 5px; border-radius: 4px; background: #eff4ff; color: #6179a3; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
body[data-fl-section="models"] .featured-agent-content > a { display: inline-block; margin-top: 5px; color: var(--md-blue); font-size: 8px; font-weight: 750; text-decoration: none; }
body[data-fl-section="models"] .models-page-footer { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px max(24px, calc((100% - 1400px) / 2)); background: #0b3568 url("/assets/reference/footer-mountain-art.png") center/cover no-repeat; color: #fff; }
body[data-fl-section="models"] .models-page-footer > div { display: grid; gap: 2px; }
body[data-fl-section="models"] .models-page-footer strong { font: 800 22px/1 var(--font-sans); }
body[data-fl-section="models"] .models-page-footer span,
body[data-fl-section="models"] .models-page-footer p { margin: 0; color: #d6e7fb; font-size: 9px; }
body[data-fl-section="models"] .models-page-footer p { max-width: 560px; }
body[data-fl-section="models"] .models-page-footer > a { color: #fff; font-size: 10px; text-decoration: none; }
body[data-fl-section="models"] .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

body[data-fl-section="models"] .featured-model-grid.is-list { grid-template-columns: 1fr; }
body[data-fl-section="models"] .featured-model-grid.is-list .featured-model-card { min-height: 90px; display: grid; grid-template-columns: minmax(180px,1.1fr) minmax(100px,.8fr) minmax(150px,1fr) minmax(170px,1fr); align-items: center; gap: 8px; }
body[data-fl-section="models"] .featured-model-grid.is-list .featured-model-card h3,
body[data-fl-section="models"] .featured-model-grid.is-list .featured-model-summary,
body[data-fl-section="models"] .featured-model-grid.is-list .featured-model-chips,
body[data-fl-section="models"] .featured-model-grid.is-list .featured-model-facts,
body[data-fl-section="models"] .featured-model-grid.is-list .featured-model-actions { margin: 0; }

@media (max-width: 1120px) {
  body[data-fl-section="models"] .featured-model-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body[data-fl-section="models"] .featured-agent-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  body[data-fl-section="models"] .models-quick-links { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body[data-fl-section="models"] .featured-model-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body[data-fl-section="models"] .featured-agent-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body[data-fl-section="models"] .featured-model-grid.is-list .featured-model-card { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body[data-fl-section="models"] .featured-model-grid { grid-template-columns: 1fr; }
  body[data-reference-style="v1"][data-fl-section="models"] .models-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body[data-fl-section="models"] .models-page-toolbar { align-items: stretch; flex-direction: column; gap: 8px; padding: 10px 14px; }
  body[data-fl-section="models"] .models-page-search { width: 100%; }
  body[data-fl-section="models"] .models-toolbar-actions { justify-content: space-between; gap: 6px; }
  body[data-fl-section="models"] .models-featured-hero { min-height: 168px; padding: 22px 18px; background-position: 57% center; }
  body[data-fl-section="models"] .models-featured-hero::after { background: linear-gradient(90deg,rgba(255,255,255,.91),rgba(255,255,255,.63) 70%,rgba(255,255,255,.24)); }
  body[data-fl-section="models"] .models-featured-copy h1 { font-size: 32px; }
  body[data-fl-section="models"] .models-quick-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 0 12px; }
  body[data-fl-section="models"] .models-quick-links a { min-height: 57px; gap: 7px; padding: 8px; }
  body[data-fl-section="models"] .models-quick-links .quick-icon { width: 28px; height: 28px; flex-basis: 28px; }
  body[data-fl-section="models"] .models-featured-page > main { padding: 0 12px 18px !important; }
  body[data-fl-section="models"] .featured-model-heading,
  body[data-fl-section="models"] .featured-agent-heading { align-items: flex-start; }
  body[data-fl-section="models"] .model-filter-toolbar { align-items: flex-start; flex-direction: column; }
  body[data-fl-section="models"] .model-filter-chips { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  body[data-fl-section="models"] .model-filter-chips button { flex: 0 0 auto; padding: 0 10px; }
  body[data-fl-section="models"] .featured-model-grid { gap: 7px; }
  body[data-fl-section="models"] .featured-model-card { min-height: 200px; padding: 9px; }
  body[data-fl-section="models"] .featured-model-card h3 { font-size: 12px; }
  body[data-fl-section="models"] .featured-agent-grid { grid-template-columns: 1fr; }
  body[data-fl-section="models"] .featured-agent-card { min-height: 92px; }
  body[data-fl-section="models"] .models-page-footer { align-items: flex-start; flex-direction: column; gap: 10px; padding: 18px; }
}

/* Match the approved discovery-page board while keeping the shared FreeLLM rail. */
@media (min-width: 701px) {
  html body.fl-ui-v2[data-reference-style="v1"][data-fl-section="models"] {
    padding: 0 !important;
  }
}

body[data-reference-style="v1"][data-fl-section="models"] .models-featured-page {
  box-sizing: border-box;
  width: calc(100% - var(--fl-menu-rail-width, 158px));
  margin: 0 0 0 var(--fl-menu-rail-width, 158px);
  padding: 0;
  overflow: hidden;
  background: #f5f8fc;
}

body[data-reference-style="v1"][data-fl-section="models"] .models-page-toolbar { display: none !important; }

html body.fl-ui-v2[data-reference-style="v1"][data-fl-section="models"][data-visual-style="aurora"] .ref-topbar.ref-topbar {
  left: calc(var(--fl-menu-rail-width, 158px) + 24px) !important;
  right: 22px !important;
  top: 5px !important;
  height: 39px !important;
  min-height: 39px !important;
  gap: 12px !important;
}

html body.fl-ui-v2[data-reference-style="v1"][data-fl-section="models"][data-visual-style="aurora"] .ref-search.ref-search {
  flex: 0 1 580px !important;
  width: min(580px, 54vw) !important;
  max-width: 580px !important;
  height: 36px !important;
  margin-left: clamp(78px, 11.5vw, 150px) !important;
  padding: 0 14px !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 3px 12px rgba(39,91,154,.1) !important;
}

html body.fl-ui-v2[data-reference-style="v1"][data-fl-section="models"][data-visual-style="aurora"] .ref-search.ref-search input {
  font-size: 12px !important;
}

body[data-reference-style="v1"][data-fl-section="models"] .models-featured-hero {
  min-height: 180px;
  padding: 38px 20px 20px;
  background-position: center 47%;
}

body[data-reference-style="v1"][data-fl-section="models"] .models-featured-hero::after {
  z-index: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.68) 38%, rgba(255,255,255,.02) 86%);
}

body[data-reference-style="v1"][data-fl-section="models"] .models-featured-sign {
  position: absolute;
  z-index: 1;
  top: 78px;
  right: 8%;
  width: clamp(165px, 19vw, 220px);
  transform: rotate(3deg);
  filter: drop-shadow(0 7px 7px rgba(30,54,72,.24));
}
body[data-reference-style="v1"][data-fl-section="models"] .models-featured-sign::before {
  position: absolute;
  z-index: -1;
  top: -14px;
  left: 14%;
  width: 72%;
  height: 18px;
  border: 1px solid rgba(106,67,31,.35);
  border-bottom: 0;
  background: linear-gradient(90deg,#805b38,#b58a5c 48%,#765233);
  content: "";
}
body[data-reference-style="v1"][data-fl-section="models"] .models-featured-sign span {
  display: block;
  padding: 3px 8px;
  border: 1px solid rgba(106,67,31,.4);
  background:
    repeating-linear-gradient(0deg, rgba(100,59,28,.09) 0 1px, transparent 1px 10px),
    linear-gradient(180deg,#edc995,#d9a46a 55%,#e9bd87);
  color: #2c2419;
  font: 850 clamp(13px,1.45vw,18px)/1.22 var(--font-sans);
  text-align: center;
  text-shadow: 0 1px rgba(255,255,255,.38);
}
body[data-reference-style="v1"][data-fl-section="models"] .models-featured-sign span:first-child { border-radius: 4px 4px 0 0; }
body[data-reference-style="v1"][data-fl-section="models"] .models-featured-sign span + span { border-top: 0; border-radius: 0 0 4px 4px; }

body[data-reference-style="v1"][data-fl-section="models"] .models-featured-copy .eyebrow { display: none; }
body[data-reference-style="v1"][data-fl-section="models"] .models-featured-copy { z-index: 2; max-width: 740px; }
body[data-reference-style="v1"][data-fl-section="models"] .models-featured-copy h1 {
  font-size: clamp(34px, 3.55vw, 46px);
  letter-spacing: -.025em;
}
body[data-reference-style="v1"][data-fl-section="models"] .models-featured-copy h1 em {
  text-decoration: underline;
  text-decoration-color: #f4c94d;
  text-decoration-thickness: 5px;
  text-underline-offset: 4px;
}
body[data-reference-style="v1"][data-fl-section="models"] .models-featured-copy .lead {
  max-width: 670px;
  margin-top: 8px;
  font-size: 14px;
}

body[data-reference-style="v1"][data-fl-section="models"] .models-quick-links {
  gap: 8px;
  margin-top: -2px;
  margin-bottom: 12px;
  padding: 0 18px;
}
body[data-reference-style="v1"][data-fl-section="models"] .models-quick-links a {
  min-height: 66px;
  padding: 9px 10px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(41,79,128,.055);
}
body[data-reference-style="v1"][data-fl-section="models"] .models-quick-links .quick-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 10px;
  font-size: 18px;
}

body[data-reference-style="v1"][data-fl-section="models"] .models-featured-page > main {
  max-width: 1440px;
  padding: 0 20px 22px !important;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-section {
  max-width: none;
  padding-bottom: 14px;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-heading { margin-bottom: 8px; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-heading h2,
body[data-reference-style="v1"][data-fl-section="models"] .featured-agent-heading h2 {
  font-size: 23px;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-heading h2::before {
  width: auto;
  height: auto;
  flex-basis: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  content: "★";
  display: inline-block;
  margin-right: 7px;
  color: #f2b51b;
  font-size: 25px;
  vertical-align: -1px;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-agent-heading h2::before {
  width: auto;
  height: auto;
  flex-basis: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  content: "🤖";
  display: inline-block;
  margin-right: 7px;
  font-size: 21px;
  vertical-align: 1px;
}
body[data-reference-style="v1"][data-fl-section="models"] .team-tested-note {
  margin: 0 0 0 9px;
  padding: 4px 10px;
  vertical-align: 2px;
  font-size: 10px;
}
body[data-reference-style="v1"][data-fl-section="models"] .model-filter-toolbar { margin: 8px 0 11px; }
body[data-reference-style="v1"][data-fl-section="models"] .model-filter-chips button { min-height: 34px; padding-inline: 16px; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-card {
  min-height: 207px;
  padding: 8px 10px 9px;
  border-radius: 9px;
  box-shadow: 0 3px 10px rgba(41,79,128,.045);
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-card-top {
  min-height: 19px;
  justify-content: flex-start;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-badge {
  margin: 0;
  padding: 3px 7px;
  background: #ffedba;
  color: #a96000;
  font-size: 9px;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 6px;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-title-row > div { min-width: 0; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-mark {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 9px;
  background: linear-gradient(145deg, #f2f7ff, #dceaff);
  color: #1869df;
  font-size: 14px;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-title-row h3 {
  overflow: hidden;
  margin: 0 0 3px;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-provider {
  display: block;
  font-size: 10px;
  line-height: 1.2;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-summary {
  min-height: 36px;
  display: -webkit-box;
  overflow: hidden;
  margin: 2px 0 6px;
  color: #647997;
  font-size: 10px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-chips { gap: 4px; margin: 0 0 6px; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-chips span {
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 9px;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-chips .capability-text { background: #e6f2ff; color: #1b68c8; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-chips .capability-image { background: #e5f8ff; color: #1885a7; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-chips .capability-video { background: #e5faef; color: #14845a; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-chips .capability-audio { background: #f0eaff; color: #7550c7; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-chips .capability-reasoning { background: #fff1e5; color: #c46419; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-facts { min-height: 26px; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-facts small { font-size: 9px; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-facts b { font-size: 10px; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-speed { display: grid; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-actions [data-compare-toggle] { display: inline-flex; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-actions {
  padding-top: 6px;
  border-top: 1px solid #edf1f6;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-actions a {
  font-size: 10px;
}

body[data-reference-style="v1"][data-fl-section="models"] .featured-agents-section {
  max-width: none;
  padding: 13px 20px 18px;
  border-top-color: #e4ebf3;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-agent-heading { align-items: flex-start; margin-bottom: 10px; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-agent-heading p { font-size: 11px; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-agent-card {
  min-height: 126px;
  padding: 10px;
  border-radius: 9px;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-agent-mark {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 9px;
  font-size: 13px;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-agent-content h3 { font-size: 12px; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-agent-content small { font-size: 9px; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-agent-content p { height: 34px; font-size: 9px; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-agent-tags span { font-size: 8px; }
body[data-reference-style="v1"][data-fl-section="models"] .featured-agent-content > a { font-size: 9px; }

body[data-reference-style="v1"][data-fl-section="models"] .models-page-footer {
  min-height: 126px;
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr .9fr 1.45fr;
  align-items: start;
  gap: 20px;
  padding: 17px 22px 14px;
  background: linear-gradient(180deg, rgba(5,31,67,.88), rgba(5,36,78,.9)), url("/assets/reference/models-discovery-hero.png") center 78% / cover no-repeat;
}
body[data-reference-style="v1"][data-fl-section="models"] .models-footer-brand,
body[data-reference-style="v1"][data-fl-section="models"] .models-footer-links,
body[data-reference-style="v1"][data-fl-section="models"] .models-footer-updates { min-width: 0; display: grid; align-content: start; gap: 5px; }
body[data-reference-style="v1"][data-fl-section="models"] .models-footer-brand strong { color: #fff !important; font-size: 22px; }
body[data-reference-style="v1"][data-fl-section="models"] .models-footer-brand span,
body[data-reference-style="v1"][data-fl-section="models"] .models-footer-brand small { color: #d1e4fa !important; font-size: 9px; }
body[data-reference-style="v1"][data-fl-section="models"] .models-footer-links strong,
body[data-reference-style="v1"][data-fl-section="models"] .models-footer-updates > strong { color: #fff !important; font-size: 10px; }
body[data-reference-style="v1"][data-fl-section="models"] .models-footer-links strong { color: #fff !important; font-size: 10px; }
body[data-reference-style="v1"][data-fl-section="models"] .models-footer-links a,
body[data-reference-style="v1"][data-fl-section="models"] .models-footer-updates a { color: #d1e4fa !important; font-size: 10px; text-decoration: none; }
body[data-reference-style="v1"][data-fl-section="models"] .models-footer-links a { color: #d1e4fa !important; font-size: 10px; text-decoration: none; }
body[data-reference-style="v1"][data-fl-section="models"] .models-footer-updates p { margin: 0; color: #d1e4fa !important; font-size: 10px; line-height: 1.45; }

@media (max-width: 1120px) {
  body[data-reference-style="v1"][data-fl-section="models"] .featured-model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-reference-style="v1"][data-fl-section="models"] .models-page-footer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body[data-reference-style="v1"][data-fl-section="models"] .models-footer-updates { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  body[data-reference-style="v1"][data-fl-section="models"] .models-featured-page { width: 100%; margin-left: 0; }
  body[data-reference-style="v1"][data-fl-section="models"] .models-featured-hero { min-height: 168px; padding: 34px 18px 18px; }
  body[data-reference-style="v1"][data-fl-section="models"] .models-featured-page > main { padding-inline: 14px !important; }
  body[data-reference-style="v1"][data-fl-section="models"] .models-page-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body[data-reference-style="v1"][data-fl-section="models"] .models-featured-sign { display: none; }
}

body[data-reference-style="v1"][data-fl-section="models"] .featured-evidence-filters,
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-speed,
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-actions [data-compare-toggle] {
  display: none !important;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-facts span:nth-child(n+3) {
  display: none !important;
}
body[data-reference-style="v1"][data-fl-section="models"] .models-quick-links { margin-bottom: 4px; }

/* Keep the landing page's desktop composition at the viewport size used by the prototype. */
body[data-reference-style="v1"][data-fl-section="models"] .models-quick-links {
  margin-top: -38px;
  margin-bottom: 20px;
}
body[data-reference-style="v1"][data-fl-section="models"] .models-featured-hero { min-height: 216px; }
body[data-reference-style="v1"][data-fl-section="models"] .models-featured-copy { transform: translateY(-18px); }
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-mark,
body[data-reference-style="v1"][data-fl-section="models"] .featured-agent-mark {
  position: relative;
  overflow: hidden;
}
body[data-reference-style="v1"][data-fl-section="models"] .brand-icon-fallback,
body[data-reference-style="v1"][data-fl-section="models"] .brand-icon-image {
  grid-area: 1 / 1;
}
body[data-reference-style="v1"][data-fl-section="models"] .brand-icon-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}
body[data-reference-style="v1"][data-fl-section="models"] .brand-icon-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
  background: #fff;
}
body[data-reference-style="v1"][data-fl-section="models"] .featured-model-mark.has-brand-image .brand-icon-fallback,
body[data-reference-style="v1"][data-fl-section="models"] .featured-agent-mark.has-brand-image .brand-icon-fallback {
  visibility: hidden;
}
@media (min-width: 980px) {
  body[data-reference-style="v1"][data-fl-section="models"] .featured-model-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body[data-reference-style="v1"][data-fl-section="models"] .featured-agent-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body[data-reference-style="v1"][data-fl-section="models"] .featured-model-section { padding-bottom: 0; }
  body[data-reference-style="v1"][data-fl-section="models"] .models-load-more { margin: 2px auto 0; padding: 4px 10px; font-size: 10px; }
  body[data-reference-style="v1"][data-fl-section="models"] .featured-agents-section { padding: 4px 20px 18px; }
  body[data-reference-style="v1"][data-fl-section="models"] .featured-model-card {
    height: 212px;
    min-height: 212px;
    overflow: hidden;
  }
  body[data-reference-style="v1"][data-fl-section="models"] .featured-model-title-row { margin: 2px 0 4px; }
  body[data-reference-style="v1"][data-fl-section="models"] .featured-model-summary { min-height: 30px; margin: 2px 0 4px; font-size: 9px; }
  body[data-reference-style="v1"][data-fl-section="models"] .featured-model-chips { max-height: 34px; overflow: hidden; gap: 3px; margin: 0 0 4px; }
  body[data-reference-style="v1"][data-fl-section="models"] .featured-model-chips span { padding: 3px 5px; font-size: 8px; }
  body[data-reference-style="v1"][data-fl-section="models"] .featured-model-facts { min-height: 26px; }
  body[data-reference-style="v1"][data-fl-section="models"] .featured-model-facts span { padding: 3px; }
  body[data-reference-style="v1"][data-fl-section="models"] .featured-model-actions { padding-top: 4px; }
}
@media (max-width: 1120px) and (min-width: 980px) {
  body[data-reference-style="v1"][data-fl-section="models"] .models-quick-links a { gap: 7px; padding: 8px; }
  body[data-reference-style="v1"][data-fl-section="models"] .models-quick-links .quick-icon { width: 32px; height: 32px; flex-basis: 32px; }
  body[data-reference-style="v1"][data-fl-section="models"] .models-quick-links i { display: none; }
  body[data-reference-style="v1"][data-fl-section="models"] .models-quick-links b { font-size: 10px; }
  body[data-reference-style="v1"][data-fl-section="models"] .models-quick-links small { font-size: 8px; }
}
@media (max-width: 979px) and (min-width: 701px) {
  body[data-reference-style="v1"][data-fl-section="models"] .featured-model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-reference-style="v1"][data-fl-section="models"] .featured-agent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  body[data-reference-style="v1"][data-fl-section="models"] {
    overflow-x: hidden;
  }
  body[data-reference-style="v1"][data-fl-section="models"] .models-featured-page {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip;
  }
  body[data-reference-style="v1"][data-fl-section="models"] .models-quick-links,
  body[data-reference-style="v1"][data-fl-section="models"] .models-featured-page > main,
  body[data-reference-style="v1"][data-fl-section="models"] .featured-model-section,
  body[data-reference-style="v1"][data-fl-section="models"] .featured-agents-section,
  body[data-reference-style="v1"][data-fl-section="models"] .models-page-footer {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
  }
  body[data-reference-style="v1"][data-fl-section="models"] .models-quick-links {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 430px) {
  body[data-reference-style="v1"][data-fl-section="models"] .models-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  body[data-reference-style="v1"][data-fl-section="models"] .models-quick-links a {
    width: auto !important;
    min-width: 0 !important;
  }
}

/* P1-2: per-model multi-channel directory; not a team-tested carousel. */
body[data-fl-section="models"] .multi-route-models {
  max-width: 1400px;
  margin: 0 auto 28px;
  padding: 25px;
  background: var(--aurora-surface, #fff);
  border: 1px solid var(--aurora-line, #dfe7f3);
  border-radius: 14px;
}
body[data-fl-section="models"] .multi-route-models .featured-model-heading {margin-bottom:18px}
body[data-fl-section="models"] .multi-route-models h2 {margin:0 0 5px}
body[data-fl-section="models"] .multi-route-models p {margin:0;color:#526a86;line-height:1.7}
body[data-fl-section="models"] .model-route-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));
  gap:16px;
}
body[data-fl-section="models"] .model-route-card {
  min-width:0;
  padding:22px;
  border:1px solid #dfe7f3;
  border-radius:12px;
  background:#fff;
}
body[data-fl-section="models"] .model-route-card h3 {margin:0 0 10px;font-size:19px;line-height:1.4}
body[data-fl-section="models"] .model-route-card h3 a {color:#1744e8;text-decoration:none}
body[data-fl-section="models"] .model-route-card p {font-size:14px}
body[data-fl-section="models"] .model-route-card strong {color:#102745}
body[data-fl-section="models"] .model-route-links {display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
body[data-fl-section="models"] .model-route-links a {
  display:inline-block;
  max-width:100%;
  overflow-wrap:anywhere;
  padding:7px 10px;
  border-radius:8px;
  border:1px solid #dfe7f3;
  color:#1744e8;
  background:#f5f9ff;
  font-size:12px;
  font-weight:600;
}
@media (max-width: 600px) {
  body[data-fl-section="models"] .multi-route-models {padding:16px;margin-bottom:20px}
  body[data-fl-section="models"] .model-route-card {padding:16px}
}
