﻿.models-hero {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
      gap: 28px;
      align-items: stretch;
      padding: 38px 0 28px;
    }

    .eyebrow {
      display: inline-flex;
      width: fit-content;
      margin-bottom: 14px;
      padding: 7px 10px;
      border: 1px solid rgba(51, 102, 153, 0.22);
      border-radius: 999px;
      background: #f4f8fb;
      color: #336699;
      font-size: 13px;
      font-weight: 800;
    }

    .models-hero h1 {
      max-width: 980px;
      font-size: clamp(36px, 5.4vw, 66px);
    }

    .lead {
      max-width: 820px;
      margin-top: 18px;
      color: #243240;
      font-size: clamp(17px, 2vw, 21px);
    }

    .hero-card,
    .insight-card,
    .tool-panel,
    .source-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      box-shadow: var(--shadow);
    }

    .hero-card {
      display: grid;
      align-content: center;
      gap: 18px;
      padding: 24px;
      background: linear-gradient(135deg, #ffffff 0%, #f4f8fb 70%);
    }

    .hero-stat {
      display: grid;
      gap: 3px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--line);
    }

    .hero-stat strong {
      color: #336699;
      font-size: 34px;
      line-height: 1;
    }

    .hero-stat span {
      color: var(--muted);
      font-size: 14px;
    }

    .note {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .models-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 24px;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 11px 16px;
      border: 1px solid #336699;
      border-radius: 8px;
      background: #336699;
      color: #fff;
      font-weight: 800;
      text-decoration: none;
    }

    .button.secondary {
      border-color: #99CC33;
      background: #99CC33;
      color: #102000;
    }

    .button.ghost {
      background: #fff;
      color: #336699;
    }

    .insight-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
      margin: 20px 0 34px;
    }

    .insight-card {
      padding: 18px;
      box-shadow: none;
    }

    .insight-card strong {
      display: block;
      margin-bottom: 6px;
      color: #336699;
      font-size: 20px;
    }

    .insight-card p {
      color: var(--muted);
      font-size: 14px;
    }

    .tool-panel {
      display: grid;
      gap: 14px;
      margin: 16px 0 20px;
      padding: 18px;
      box-shadow: none;
    }

    .filters {
      display: grid;
      grid-template-columns: 1.3fr repeat(3, minmax(150px, 0.6fr));
      gap: 12px;
    }

    .filters label span {
      color: #243240;
      font-size: 13px;
    }

    .summary-line {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      color: var(--muted);
      font-size: 14px;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      min-height: 28px;
      padding: 4px 9px;
      border: 1px solid rgba(51, 102, 153, 0.2);
      border-radius: 999px;
      background: #f4f8fb;
      color: #336699;
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }

    .pill.green {
      border-color: rgba(153, 204, 51, 0.45);
      background: rgba(153, 204, 51, 0.14);
      color: #335500;
    }

    .table-wrap {
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      box-shadow: var(--shadow);
    }

    table {
      width: 100%;
      min-width: 1180px;
      border-collapse: collapse;
    }

    th,
    td {
      padding: 14px 13px;
      border-bottom: 1px solid var(--line);
      text-align: left;
      vertical-align: top;
      font-size: 14px;
    }

    th {
      position: sticky;
      top: 0;
      z-index: 1;
      background: #f4f8fb;
      color: #243240;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.02em;
    }

    .sort-button {
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      width: 100%;
      min-height: 30px;
      padding: 0;
      border: 0;
      background: transparent;
      color: inherit;
      cursor: pointer;
      font: inherit;
      font-weight: 800;
      letter-spacing: inherit;
      text-align: left;
      text-transform: inherit;
    }

    .sort-button::after {
      content: "↕";
      flex: 0 0 auto;
      color: #6a7785;
      font-size: 12px;
    }

    .sort-button[aria-sort="ascending"]::after {
      content: "↑";
      color: #336699;
    }

    .sort-button[aria-sort="descending"]::after {
      content: "↓";
      color: #336699;
    }

    .sort-button:focus-visible {
      outline: 3px solid rgba(153, 204, 51, 0.65);
      outline-offset: 3px;
      border-radius: 4px;
    }

    td:first-child {
      min-width: 210px;
      font-weight: 800;
    }

    td:nth-child(8) {
      min-width: 260px;
    }

    .model-name {
      display: grid;
      gap: 6px;
    }

    .model-name small {
      color: var(--muted);
      font-weight: 400;
    }

    .largest-list {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 12px;
      margin: 16px 0 34px;
    }

    .largest-list .source-card {
      padding: 16px;
      box-shadow: none;
    }

    .largest-list strong {
      display: block;
      margin-bottom: 5px;
      color: #336699;
    }

    .source-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 14px;
    }

    .source-card {
      padding: 16px;
      box-shadow: none;
    }

    .source-card a {
      font-weight: 800;
      text-decoration: none;
    }

    .source-card p {
      margin-top: 8px;
      color: var(--muted);
      font-size: 14px;
    }

    .updated {
      margin: 20px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

    .empty-state {
      display: none;
      padding: 22px;
      border: 1px solid var(--line);
      border-radius: 8px;
      color: var(--muted);
      background: #fff;
    }

    @media (max-width: 920px) {
      .models-hero,
      .filters {
        grid-template-columns: 1fr;
      }

      .insight-grid,
      .largest-list,
      .source-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 620px) {
      .insight-grid,
      .largest-list,
      .source-grid {
        grid-template-columns: 1fr;
      }

      th,
      td {
        padding: 12px 10px;
      }
    }

