:root {
  --seed-164-cobalt-indigo: oklch(0.550 0.105 230.0);
  --bg: oklch(1 0 0);
  --surface: oklch(0.988 0.006 230);
  --surface-strong: oklch(0.970 0.012 230);
  --ink: oklch(0.225 0.020 240);
  --ink-soft: oklch(0.350 0.025 238);
  --muted: oklch(0.545 0.025 235);
  --border: oklch(0.905 0.016 230);
  --border-strong: oklch(0.835 0.025 230);
  --brand-50: oklch(0.975 0.018 230);
  --brand-100: oklch(0.945 0.035 230);
  --brand-200: oklch(0.890 0.060 230);
  --brand-300: oklch(0.800 0.085 230);
  --brand-400: oklch(0.680 0.105 230);
  --brand-500: oklch(0.550 0.105 230.0);
  --brand-600: oklch(0.470 0.100 230);
  --brand-700: oklch(0.390 0.087 230);
  --brand-800: oklch(0.310 0.067 230);
  --brand-900: oklch(0.235 0.050 230);
  --signal: oklch(0.68 0.17 43);
  --signal-soft: oklch(0.965 0.045 55);
  --success: oklch(0.570 0.120 155);
  --danger: oklch(0.560 0.190 25);
  --font-sans: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --content: 1280px;
  --header-height: 60px;
  --radius: 10px;
  --radius-control: 8px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --motion-press: 140ms;
  --motion-control: 160ms;
  --motion-overlay: 200ms;
  --motion-drawer: 240ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--bg);
}

html.scroll-locked,
html.scroll-locked body {
  overflow: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

svg.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
strong {
  letter-spacing: -0.018em;
}

::selection {
  color: var(--brand-800);
  background: var(--brand-100);
}

:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--brand-500) 42%, transparent);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: -80px;
  left: 16px;
  padding: 9px 12px;
  border-radius: 7px;
  color: white;
  background: var(--brand-800);
  font-size: 12px;
  font-weight: 650;
}

.skip-link:focus {
  top: 12px;
}

.content-shell {
  width: min(calc(100% - 64px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  width: min(calc(100% - 48px), 1360px);
  height: 100%;
  margin-inline: auto;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  max-width: 100%;
  min-height: 42px;
  gap: 6px;
  color: var(--ink);
}

.brand .brand-lockup {
  width: 142px;
  max-width: 100%;
  height: auto;
  flex: none;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand > span {
  display: none;
}

.brand em {
  align-self: flex-start;
  margin-top: 3px;
  padding: 1px 5px;
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  line-height: 15px;
  letter-spacing: 0.08em;
}

.search-trigger,
.language-switch,
.personal-link,
.mobile-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: var(--radius-control);
  background: transparent;
  cursor: pointer;
}

.search-trigger {
  width: 182px;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
}

.search-trigger kbd,
.command-input kbd {
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: var(--ink-soft);
  background: var(--bg);
  font: 10px/18px var(--font-sans);
}

.desktop-nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 560;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--brand-700);
}

.desktop-nav a.active::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  background: var(--brand-500);
  content: "";
}

.nav-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 6px;
}

.language-switch {
  gap: 6px;
  padding: 0 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.language-switch:hover,
.personal-link:hover {
  color: var(--brand-700);
  background: var(--brand-50);
}

.personal-link {
  gap: 7px;
  padding: 0 9px 0 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.avatar-mini {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--brand-600);
  font-size: 9px;
  font-weight: 760;
}

.mobile-menu-button,
.mobile-nav {
  display: none;
}

.prototype-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.prototype-badge .icon {
  width: 13px;
  height: 13px;
}

.prototype-badge.compact span {
  white-space: nowrap;
}

.public-main {
  overflow: hidden;
}

.hero {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: min(calc(100% - 48px), 960px);
  margin: 0 auto;
  padding: 104px 0 92px;
  text-align: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.hero h1 {
  max-width: 820px;
  margin-top: 24px;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.hero > p {
  max-width: 690px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
  gap: 10px;
}

.button,
.outline-button,
.select-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  gap: 8px;
  padding: 0 15px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--brand-600);
}

.button.primary:hover {
  background: var(--brand-700);
}

.button.secondary,
.outline-button,
.select-button {
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  background: var(--bg);
}

.button.secondary:hover,
.outline-button:hover,
.select-button:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
  background: var(--brand-50);
}

.button.small {
  height: 36px;
  padding-inline: 12px;
}

.button.full {
  width: 100%;
  height: 44px;
}

.avatar-stack {
  display: flex;
  margin-left: 3px;
}

.avatar-stack i {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  margin-left: -4px;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: var(--brand-500);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.avatar-stack i:last-child {
  background: var(--signal);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 64px), var(--content));
  margin: 0 auto 64px;
  border-block: 1px solid var(--border);
}

.stat-strip div {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  padding: 22px 16px;
  border-right: 1px solid var(--border);
}

.stat-strip div:last-child {
  border-right: 0;
}

.stat-strip strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.stat-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 570;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.feature-visual {
  display: grid;
  min-width: 0;
  place-items: center;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.feature-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.feature-copy h2 {
  font-size: 22px;
  font-weight: 650;
  line-height: 1.3;
}

.feature-copy p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
}

.feature-copy a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 650;
}

.feature-copy a .icon {
  width: 15px;
  height: 15px;
}

.orbital-models {
  display: grid;
  grid-template-columns: repeat(4, 38px);
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--brand-200);
  border-radius: 50%;
  background: var(--bg);
}

.orbital-models span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 12px;
  font-weight: 750;
}

.orbital-models span:nth-child(3n) {
  color: oklch(0.50 0.13 45);
  background: var(--signal-soft);
}

.route-visual,
.performance-visual,
.policy-visual {
  position: relative;
  width: 78%;
  height: 70%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.route-visual {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.route-chip {
  z-index: 1;
  padding: 7px 14px;
  border: 1px solid var(--brand-300);
  border-radius: 999px;
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 12px;
  font-weight: 700;
}

.route-lines {
  display: flex;
  width: 65%;
  height: 42px;
  justify-content: space-around;
}

.route-lines i {
  width: 1px;
  height: 100%;
  background: var(--brand-300);
}

.route-nodes {
  display: flex;
  gap: 18px;
}

.route-nodes span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  background: white;
  font-size: 10px;
  font-weight: 720;
}

.performance-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.performance-visual > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.performance-visual .line-chart {
  width: 100%;
  height: 100px;
}

.performance-visual b {
  color: var(--brand-700);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.policy-visual {
  display: grid;
  place-items: center;
  color: var(--brand-700);
}

.policy-shield {
  width: 82px;
  height: 82px;
  stroke-width: 1.15;
}

.policy-visual > span:last-child {
  position: absolute;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--brand-300);
  border-radius: 50%;
  background: white;
  font-size: 11px;
  font-weight: 780;
}

.policy-lock {
  position: absolute;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--signal);
}

.policy-lock .icon {
  width: 14px;
  height: 14px;
}

.policy-lock.one {
  top: 28px;
  left: 31px;
}

.policy-lock.two {
  right: 31px;
  bottom: 28px;
  background: var(--brand-500);
}

.section-block {
  padding-block: 96px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 25px;
  font-weight: 650;
  line-height: 1.25;
}

.section-heading p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.section-heading > a,
.panel-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 650;
}

.section-heading > a .icon,
.panel-heading > a .icon {
  width: 15px;
  height: 15px;
}

.featured-models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--border);
}

.featured-model {
  padding: 24px;
  border-right: 1px solid var(--border);
}

.featured-model:first-child {
  padding-left: 0;
}

.featured-model:last-child {
  padding-right: 0;
  border-right: 0;
}

.featured-model:hover h3 {
  color: var(--brand-700);
}

.featured-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.featured-model h3 {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 650;
}

.featured-model > p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.featured-model dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
  gap: 12px;
}

.featured-model dl div {
  display: flex;
  flex-direction: column;
}

.featured-model dt {
  color: var(--muted);
  font-size: 10px;
}

.featured-model dd {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.provider-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 1px solid var(--brand-200);
  border-radius: 8px;
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.01em;
}

.provider-mark.orange {
  border-color: oklch(0.88 0.08 50);
  color: oklch(0.46 0.13 42);
  background: var(--signal-soft);
}

.provider-mark.indigo,
.provider-mark.violet {
  border-color: oklch(0.88 0.07 285);
  color: oklch(0.45 0.13 285);
  background: oklch(0.97 0.025 285);
}

.provider-mark.rose {
  border-color: oklch(0.89 0.06 10);
  color: oklch(0.48 0.13 10);
  background: oklch(0.97 0.025 10);
}

.provider-mark.teal {
  border-color: oklch(0.87 0.06 175);
  color: oklch(0.43 0.09 175);
  background: oklch(0.97 0.025 175);
}

.trend {
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.trend.down {
  color: var(--danger);
}

.process-section {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.process-section > .content-shell {
  padding-block: 78px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-block: 1px solid var(--border);
}

.process-step {
  position: relative;
  padding: 30px;
  border-right: 1px solid var(--border);
  background: white;
}

.process-step:last-child {
  border-right: 0;
}

.step-number {
  position: absolute;
  top: 14px;
  right: 17px;
  color: var(--brand-400);
  font: 650 11px/1 var(--font-mono);
}

.step-visual {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--brand-200);
  border-radius: 9px;
  color: var(--brand-700);
  background: var(--brand-50);
}

.process-step h3 {
  margin-top: 22px;
  font-size: 16px;
}

.process-step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.update-list {
  border-top: 1px solid var(--border);
}

.update-list article {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  min-height: 88px;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}

.update-list article > span {
  color: var(--brand-500);
  font: 650 11px/1 var(--font-mono);
}

.update-list h3 {
  font-size: 14px;
  font-weight: 620;
}

.update-list p,
.update-list time {
  color: var(--muted);
  font-size: 11px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  width: min(calc(100% - 64px), var(--content));
  margin: 0 auto;
  padding: 64px 0 24px;
  border-top: 1px solid var(--border);
  gap: 70px;
}

.footer-brand > p {
  max-width: 400px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-columns div {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.footer-columns h3 {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.footer-columns a,
.footer-columns button {
  display: inline-flex;
  align-items: center;
  padding: 0;
  gap: 6px;
  color: var(--muted);
  background: none;
  font-size: 11px;
  cursor: pointer;
}

.footer-link-badge {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 0 6px;
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.footer-columns a:hover,
.footer-columns button:hover {
  color: var(--brand-700);
}

.footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

.info-page {
  min-height: calc(100vh - var(--header-height));
  padding-block: 84px 112px;
}

.info-hero {
  display: flex;
  min-height: 286px;
  max-width: 850px;
  flex-direction: column;
  justify-content: center;
}

.info-hero .prototype-badge {
  align-self: flex-start;
}

.info-hero h1 {
  max-width: 780px;
  margin-top: 24px;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.info-hero p {
  max-width: 720px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 54px;
  border-block: 1px solid var(--border);
}

.info-card {
  display: flex;
  min-width: 0;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  border-right: 1px solid var(--border);
  background: white;
}

.info-card:first-child {
  padding-left: 0;
}

.info-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.info-card > span {
  color: var(--brand-500);
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.info-card > .icon {
  width: 38px;
  height: 38px;
  margin-top: 38px;
  padding: 9px;
  border: 1px solid var(--brand-200);
  border-radius: 9px;
  color: var(--brand-700);
  background: var(--brand-50);
}

.info-card h2 {
  max-width: 300px;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 640;
  line-height: 1.45;
}

.info-card p {
  max-width: 330px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.support-grid .info-card {
  min-height: 310px;
}

.info-contact .button {
  margin-top: auto;
}

.back-to-home {
  display: inline-flex;
  align-items: center;
  margin-top: 38px;
  gap: 7px;
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 650;
}

.back-to-home .icon {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}

.back-to-home:hover {
  color: var(--brand-500);
}

.directory-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: calc(100vh - var(--header-height));
}

.filter-sidebar {
  padding: 28px 22px 80px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.mobile-filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.filter-group {
  border-bottom: 1px solid var(--border);
}

.filter-group > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  font-weight: 620;
  text-align: left;
  cursor: pointer;
}

.filter-group > button .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 140ms var(--ease-out);
}

.filter-group.expanded > button .icon {
  transform: rotate(90deg);
}

.filter-items {
  display: flex;
  flex-direction: column;
  padding: 0 0 13px;
  gap: 6px;
}

.filter-items label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.filter-items input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--brand-500);
}

.filter-option-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 25px;
  padding: 0;
  gap: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.filter-option-button i {
  width: 14px;
  height: 14px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: white;
}

.filter-option-button:hover,
.filter-option-button:focus-visible {
  color: var(--brand-700);
}

.filter-option-button:hover i,
.filter-option-button:focus-visible i {
  border-color: var(--brand-400);
  background: var(--brand-50);
}

.directory-content {
  min-width: 0;
  padding: 36px 36px 96px;
}

.directory-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
}

.directory-header h1 {
  font-size: 34px;
  font-weight: 670;
  line-height: 1.15;
}

.directory-header p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.directory-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mobile-filter-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  gap: 7px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  color: var(--ink-soft);
  background: white;
  font-size: 11px;
  font-weight: 620;
  white-space: nowrap;
  cursor: pointer;
}

.mobile-filter-trigger .icon {
  width: 15px;
  height: 15px;
}

.mobile-filter-trigger em {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 999px;
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 9px;
  font-style: normal;
}

.model-search {
  display: flex;
  align-items: center;
  width: min(280px, 24vw);
  height: 40px;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: white;
}

.model-search .icon {
  width: 16px;
  color: var(--muted);
}

.model-search input,
.command-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.model-search:focus-within {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.view-toggle {
  display: inline-flex;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.view-toggle button {
  padding: 0 10px;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.view-toggle button.active {
  color: var(--brand-700);
  background: white;
  box-shadow: 0 1px 2px color-mix(in oklch, var(--brand-800) 10%, transparent);
}

.modality-tabs,
.rank-type-tabs {
  display: flex;
  align-items: center;
  margin-top: 28px;
  border-bottom: 1px solid var(--border);
  gap: 22px;
}

.modality-tabs button,
.rank-type-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  gap: 7px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 570;
  cursor: pointer;
}

.modality-tabs button span {
  display: grid;
  min-width: 20px;
  height: 18px;
  padding-inline: 5px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 9px;
}

.modality-tabs button.active,
.rank-type-tabs button.active {
  color: var(--brand-700);
}

.modality-tabs button.active::after,
.rank-type-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--brand-500);
  content: "";
}

.prototype-inline {
  display: flex;
  align-items: center;
  margin: 16px 0 8px;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.model-list {
  border-top: 1px solid var(--border);
}

.model-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  min-height: 158px;
  padding: 24px 10px 24px 0;
  border-bottom: 1px solid var(--border);
  gap: 32px;
}

.model-row:hover {
  background: linear-gradient(90deg, var(--brand-50), white 62%);
}

.model-title-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.model-title-line h2 {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.model-id {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font: 10px/1.4 var(--font-mono);
}

.model-row-main > p {
  max-width: 780px;
  margin: 13px 0 12px 46px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.model-meta {
  display: flex;
  flex-wrap: wrap;
  margin-left: 46px;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.model-meta span + span {
  position: relative;
  padding-left: 12px;
}

.model-meta span + span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--border-strong);
  content: "";
}

.model-meta u {
  color: var(--brand-700);
  text-decoration: none;
}

.model-row-volume {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}

.model-row-volume strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.model-row-volume span {
  color: var(--muted);
  font-size: 9px;
}

.no-results {
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
}

.model-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-block: 52px 34px;
  gap: 24px;
}

.model-detail-title {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.model-detail-title .provider-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  font-size: 11px;
}

.model-detail-title h1 {
  font-size: 27px;
  font-weight: 670;
  line-height: 1.25;
}

.model-detail-title button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font: 10px/1.4 var(--font-mono);
  cursor: pointer;
}

.model-detail-title button .icon {
  width: 13px;
  height: 13px;
}

.model-detail-actions {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.model-description {
  grid-column: 1 / -1;
  max-width: 860px;
  color: var(--ink-soft);
  font-size: 13px;
}

.model-facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 6px;
  border-block: 1px solid var(--border);
}

.model-facts div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px 18px;
  border-right: 1px solid var(--border);
}

.model-facts div:first-child {
  padding-left: 0;
}

.model-facts div:last-child {
  border-right: 0;
}

.model-facts span {
  color: var(--muted);
  font-size: 9px;
}

.model-facts strong {
  overflow: hidden;
  margin-top: 3px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-divider {
  height: 1px;
  background: var(--border);
}

.detail-body {
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  padding-block: 38px 100px;
  gap: 56px;
}

.section-nav {
  position: sticky;
  top: 92px;
  align-self: start;
}

.section-nav a,
.section-nav button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 38px;
  gap: 9px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 580;
  text-align: left;
  cursor: pointer;
}

.section-nav a .icon,
.section-nav button .icon {
  width: 15px;
  height: 15px;
}

.section-nav a:hover,
.section-nav a.active,
.section-nav button:hover,
.section-nav button.active {
  color: var(--brand-700);
  background: var(--brand-50);
}

.detail-sections {
  min-width: 0;
}

.detail-section {
  padding: 0 0 64px;
}

.detail-section + .detail-section {
  padding-top: 50px;
  border-top: 1px solid var(--border);
}

.detail-section > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 650;
}

.detail-section > h2 .icon {
  color: var(--brand-600);
}

.detail-section > p {
  max-width: 820px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.data-table {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--border);
}

.table-row {
  display: grid;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row.table-head {
  min-height: 39px;
  color: var(--muted);
  background: var(--surface);
  font-size: 9px;
  font-weight: 650;
}

.table-row > span {
  min-width: 0;
  padding: 0 12px;
}

.provider-table .table-row {
  grid-template-columns: 1.5fr repeat(5, 0.8fr);
}

.provider-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.provider-cell .provider-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 8px;
}

.provider-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-cell i {
  padding: 2px 5px;
  border-radius: 999px;
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 8px;
  font-style: normal;
}

.metric-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
  border-block: 1px solid var(--border);
}

.metric-pair > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 19px 24px;
  border-right: 1px solid var(--border);
}

.metric-pair > div:last-child {
  border-right: 0;
}

.metric-pair span {
  color: var(--muted);
  font-size: 10px;
}

.metric-pair strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.metric-pair small {
  grid-column: 2;
  color: var(--muted);
  font-size: 8px;
}

.chart-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.chart-panel-head,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-panel-head strong {
  font-size: 11px;
}

.chart-panel-head span {
  color: var(--muted);
  font-size: 9px;
}

.line-chart {
  width: 100%;
  height: 180px;
  margin-top: 10px;
  overflow: visible;
}

.line-chart line {
  stroke: var(--border);
  stroke-width: 1;
}

.line-chart polyline {
  fill: none;
  stroke: var(--brand-500);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.line-chart.mini {
  height: 90px;
}

.performance-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  gap: 10px;
}

.performance-cards > div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.performance-cards strong {
  font-size: 11px;
}

.performance-cards span {
  color: var(--muted);
  font-size: 9px;
}

.rankings-page {
  padding-top: 0;
}

.rank-type-tabs {
  margin-top: 0;
  gap: 26px;
}

.rank-type-tabs button {
  height: 52px;
}

.rankings-layout {
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  gap: 52px;
}

.rankings-sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
  padding: 28px 0;
}

.rankings-sidebar a,
.rankings-sidebar button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 39px;
  gap: 9px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 570;
  text-align: left;
  cursor: pointer;
}

.rankings-sidebar a .icon,
.rankings-sidebar button .icon {
  width: 15px;
  height: 15px;
}

.rankings-sidebar a.active,
.rankings-sidebar a:hover,
.rankings-sidebar button.active,
.rankings-sidebar button:hover {
  color: var(--brand-700);
  background: var(--brand-50);
}

.rankings-content {
  min-width: 0;
  padding-bottom: 100px;
}

.rankings-intro {
  display: flex;
  min-height: 275px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.rankings-intro h1 {
  margin-top: 18px;
  font-size: 38px;
  font-weight: 670;
  line-height: 1.15;
}

.rankings-intro p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.rank-chart-section,
.leaderboard-section {
  padding-block: 48px;
  border-bottom: 1px solid var(--border);
}

.section-heading.compact {
  align-items: center;
}

.section-heading.compact h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
}

.section-heading.compact h2 .icon {
  color: var(--brand-600);
}

.stacked-chart {
  display: flex;
  align-items: flex-end;
  height: 260px;
  gap: 4px;
  padding-top: 24px;
  border-bottom: 1px solid var(--border-strong);
  background-size: 100% 25%;
  background-image: linear-gradient(to bottom, var(--border) 1px, transparent 1px);
}

.stacked-chart > span {
  display: flex;
  width: 100%;
  height: var(--h);
  flex-direction: column;
  justify-content: flex-end;
}

.stacked-chart i {
  display: block;
  min-height: 3px;
  flex: 1;
  border-top: 1px solid white;
  background: var(--brand-400);
}

.stacked-chart i:nth-child(2) {
  background: var(--brand-200);
}

.stacked-chart i:nth-child(3) {
  background: var(--brand-600);
}

.stacked-chart i:nth-child(4) {
  background: var(--signal);
}

.chart-axis,
.dashboard-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 8px;
}

.rank-filters {
  display: flex;
  gap: 7px;
}

.rank-filters button {
  display: inline-flex;
  align-items: center;
  height: 34px;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--ink-soft);
  background: white;
  font-size: 10px;
}

.rank-filters .icon {
  width: 13px;
  height: 13px;
}

.leaderboard-list {
  border-top: 1px solid var(--border);
}

.leader-row {
  display: grid;
  grid-template-columns: 30px 36px minmax(0, 1fr) 120px 55px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.rank-number {
  color: var(--muted);
  font: 600 11px/1 var(--font-mono);
}

.leader-row > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.leader-row strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-row small {
  color: var(--muted);
  font-size: 9px;
}

.leader-row > span:nth-last-child(2) {
  color: var(--ink-soft);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.leader-row em {
  color: var(--success);
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  text-align: right;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(440px, 44%) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-height));
}

.auth-panel {
  display: flex;
  width: min(100%, 480px);
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 58px 34px 72px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-heading {
  margin-top: 44px;
}

.auth-heading h1 {
  font-size: 29px;
  font-weight: 670;
  line-height: 1.2;
}

.auth-heading p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.social-auth {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
  gap: 8px;
}

.social-auth button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: white;
  font-size: 11px;
  font-weight: 620;
  cursor: pointer;
}

.social-auth button:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
}

.social-g,
.social-gh {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--brand-500);
  font-size: 9px;
  font-weight: 780;
}

.social-gh {
  background: var(--ink);
}

.or-divider {
  display: flex;
  align-items: center;
  margin: 22px 0;
  color: var(--muted);
  font-size: 9px;
}

.or-divider::before,
.or-divider::after {
  height: 1px;
  flex: 1;
  background: var(--border);
  content: "";
}

.or-divider span {
  padding-inline: 12px;
}

.auth-panel form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-panel form > label:not(.checkbox-row),
.form-two label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 620;
}

.auth-panel input:not([type="checkbox"]) {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  outline: none;
  background: white;
  font-size: 12px;
  font-weight: 450;
}

.auth-panel input:not([type="checkbox"]):focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.form-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.checkbox-row input {
  width: 15px;
  height: 15px;
  flex: none;
  margin: 1px 0 0;
  accent-color: var(--brand-500);
}

.auth-inline-error {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid color-mix(in oklch, var(--danger) 30%, var(--border));
  border-radius: var(--radius-control);
  color: var(--danger);
  background: color-mix(in oklch, var(--danger) 7%, white);
  font-size: 10px;
  font-weight: 580;
  line-height: 1.55;
}

.auth-inline-error[hidden] {
  display: none;
}

.demo-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 9px;
}

.demo-hint .icon {
  width: 14px;
  height: 14px;
  color: var(--brand-600);
}

.auth-switch {
  margin-top: 22px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.auth-switch a {
  color: var(--brand-700);
  font-weight: 650;
}

.auth-art {
  display: grid;
  margin: 16px 16px 16px 0;
  overflow: hidden;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--brand-700);
}

.auth-art-inner {
  width: min(78%, 580px);
}

.auth-art-inner > span {
  color: var(--brand-200);
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
}

.auth-art-inner h2 {
  max-width: 480px;
  margin-top: 22px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.auth-art-inner > p {
  margin-top: 26px;
  color: var(--brand-200);
  font-size: 12px;
}

.auth-network {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 42px);
  width: fit-content;
  margin-top: 50px;
  gap: 16px;
}

.auth-network i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--brand-400);
  border-radius: 50%;
  background: var(--brand-800);
  font-size: 10px;
  font-style: normal;
  font-weight: 720;
}

.auth-network b {
  position: absolute;
  top: 68px;
  left: 50%;
  padding: 7px 16px;
  border: 1px solid var(--signal);
  border-radius: 999px;
  color: white;
  background: color-mix(in oklch, var(--signal) 38%, var(--brand-800));
  font-size: 10px;
  transform: translateX(-50%);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: 58px minmax(calc(100vh - 58px), auto);
  min-width: 0;
  background: var(--surface);
}

.dashboard-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: white;
}

.dashboard-breadcrumb {
  display: flex;
  align-items: center;
  margin-left: 30px;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
}

.dashboard-breadcrumb i {
  color: var(--border-strong);
  font-style: normal;
}

.dashboard-breadcrumb strong {
  color: var(--ink-soft);
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 8px;
}

.dashboard-avatar {
  display: inline-flex;
  align-items: center;
  height: 36px;
  gap: 7px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 620;
}

.dashboard-avatar:hover {
  background: var(--brand-50);
}

.dashboard-avatar .icon {
  display: grid;
  width: 25px;
  height: 25px;
  padding: 5px;
  border-radius: 50%;
  color: white;
  background: var(--brand-600);
}

.dashboard-sidebar {
  position: sticky;
  top: 58px;
  align-self: start;
  min-height: calc(100vh - 58px);
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  background: white;
}

.workspace-card {
  display: flex;
  align-items: center;
  min-height: 54px;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.workspace-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: none;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: var(--brand-600);
  font-size: 9px;
  font-weight: 760;
}

.workspace-card > div {
  display: flex;
  overflow: hidden;
  flex-direction: column;
}

.workspace-card strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-card small {
  color: var(--muted);
  font-size: 8px;
}

.workspace-card > .icon {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: var(--muted);
}

.dashboard-sidebar nav {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  gap: 2px;
}

.dashboard-sidebar nav a,
.dashboard-sidebar nav button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 37px;
  gap: 9px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 570;
  text-align: left;
  cursor: pointer;
}

.dashboard-sidebar nav .icon {
  width: 15px;
  height: 15px;
}

.dashboard-sidebar nav a:hover,
.dashboard-sidebar nav button:hover,
.dashboard-sidebar nav a.active {
  color: var(--brand-700);
  background: var(--brand-50);
}

.sidebar-label {
  margin: 24px 10px 0;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.sidebar-note {
  margin-top: 34px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.sidebar-note .prototype-badge {
  padding: 3px 6px;
  font-size: 8px;
}

.sidebar-note p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.dashboard-content {
  min-width: 0;
  padding: 34px 36px 80px;
}

.dashboard-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-page-heading h1 {
  font-size: 27px;
  font-weight: 670;
  line-height: 1.2;
}

.dashboard-page-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  border-block: 1px solid var(--border);
  background: white;
}

.dashboard-metrics article {
  position: relative;
  min-height: 146px;
  overflow: hidden;
  padding: 20px;
  border-right: 1px solid var(--border);
}

.dashboard-metrics article:last-child {
  border-right: 0;
}

.dashboard-metrics article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-metrics article span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 620;
}

.dashboard-metrics article em {
  color: var(--brand-500);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.dashboard-metrics article > strong {
  display: block;
  margin-top: 13px;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}

.dashboard-metrics article > small {
  color: var(--success);
  font-size: 8px;
}

.line-chart.sparkline {
  position: absolute;
  right: 16px;
  bottom: 8px;
  width: 42%;
  height: 44px;
  margin: 0;
}

.line-chart.sparkline line {
  display: none;
}

.line-chart.sparkline polyline {
  stroke-width: 1.5;
}

.dashboard-chart-panel,
.dashboard-table-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

.panel-heading h2 {
  font-size: 14px;
  font-weight: 650;
}

.panel-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
}

.legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand-500);
}

.dashboard-bars {
  display: flex;
  align-items: flex-end;
  height: 260px;
  margin-top: 18px;
  gap: 5px;
  border-bottom: 1px solid var(--border-strong);
  background-size: 100% 25%;
  background-image: linear-gradient(to bottom, var(--border) 1px, transparent 1px);
}

.dashboard-bars span {
  width: 100%;
  height: var(--bar);
  border-radius: 2px 2px 0 0;
  background: var(--brand-400);
}

.dashboard-bars span:nth-child(5n) {
  background: var(--signal);
}

.usage-table .table-row {
  grid-template-columns: 1.6fr repeat(4, 1fr);
}

.credit-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 190px;
  margin-top: 24px;
  padding: 28px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

.credit-hero > div:first-child {
  display: flex;
  flex-direction: column;
}

.credit-hero > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.credit-hero > div + div {
  align-items: flex-end;
  padding-left: 40px;
  border-left: 1px solid var(--border);
  text-align: right;
}

.credit-hero span,
.credit-hero small {
  color: var(--muted);
  font-size: 10px;
}

.credit-hero strong {
  margin: 8px 0 2px;
  font-size: 38px;
  font-variant-numeric: tabular-nums;
}

.credit-ring {
  display: grid;
  width: 116px;
  height: 116px;
  place-content: center;
  border: 13px solid var(--brand-100);
  border-top-color: var(--brand-500);
  border-right-color: var(--brand-500);
  border-radius: 50%;
  text-align: center;
  transform: rotate(10deg);
}

.credit-ring > * {
  transform: rotate(-10deg);
}

.credit-ring span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

.settings-row > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-row > div > .icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 8px;
  color: var(--brand-700);
  background: var(--brand-50);
}

.settings-row strong {
  font-size: 11px;
}

.settings-row p {
  color: var(--muted);
  font-size: 9px;
}

.disabled-toggle {
  width: 38px;
  height: 22px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.disabled-toggle span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--border-strong);
}

.credit-table .table-row {
  grid-template-columns: repeat(4, 1fr);
}

.positive {
  color: var(--success);
  font-weight: 650;
}

.prototype-callout {
  display: flex;
  align-items: flex-start;
  margin-top: 24px;
  padding: 15px 17px;
  border: 1px solid var(--brand-200);
  border-radius: var(--radius);
  gap: 11px;
  color: var(--brand-700);
  background: var(--brand-50);
}

.prototype-callout > .icon {
  margin-top: 2px;
}

.prototype-callout strong {
  font-size: 11px;
}

.prototype-callout p {
  color: var(--muted);
  font-size: 9px;
}

.key-table .table-row {
  grid-template-columns: 1.5fr 1.15fr repeat(4, 0.8fr);
}

.key-panel {
  overflow: hidden;
}

.key-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.key-name > .icon {
  width: 29px;
  height: 29px;
  padding: 7px;
  border-radius: 7px;
  color: var(--brand-700);
  background: var(--brand-50);
}

.key-name > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.key-name code {
  overflow: hidden;
  color: var(--muted);
  font: 8px/1.4 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--success);
}

.key-guidance {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

.key-guidance h2 {
  font-size: 14px;
}

.key-guidance pre {
  overflow-x: auto;
  margin: 15px 0 9px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--brand-700);
  background: var(--surface);
  font: 10px/1.7 var(--font-mono);
}

.key-guidance p {
  color: var(--muted);
  font-size: 9px;
}

.search-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  align-items: start;
  padding-top: 12vh;
  background: color-mix(in oklch, var(--brand-900) 32%, transparent);
}

.command-panel {
  width: min(calc(100% - 32px), 580px);
  max-height: 72vh;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 12px;
  background: white;
  box-shadow: 0 24px 70px color-mix(in oklch, var(--brand-900) 22%, transparent);
}

.command-input {
  display: flex;
  align-items: center;
  height: 58px;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.command-input .icon {
  color: var(--muted);
}

.command-label {
  padding: 12px 16px 7px;
  color: var(--muted);
  background: var(--surface);
  font-size: 9px;
  font-weight: 700;
}

.command-results {
  max-height: 54vh;
  overflow-y: auto;
  padding: 6px;
}

.command-results a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  min-height: 54px;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 7px;
}

.command-results a:hover {
  background: var(--brand-50);
}

.command-results a > span {
  display: flex;
  flex-direction: column;
}

.command-results strong {
  font-size: 11px;
}

.command-results small {
  color: var(--muted);
  font-size: 9px;
}

.command-results a > .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.toast {
  position: fixed;
  z-index: 120;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  max-width: min(390px, calc(100% - 32px));
  min-height: 48px;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 9px;
  color: white;
  background: var(--brand-800);
  box-shadow: 0 14px 36px color-mix(in oklch, var(--brand-900) 22%, transparent);
  font-size: 11px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 140ms var(--ease-out), transform 180ms var(--ease-out);
}

.toast .icon {
  color: var(--brand-200);
}

.toast[data-motion-state="open"] {
  opacity: 1;
  transform: translateY(0);
}

.toast[data-motion-state="closing"] {
  transition-duration: 140ms;
}

.home-rankings-preview {
  padding-top: 96px;
}

.home-ranking-list {
  border-block: 1px solid var(--border);
}

.home-ranking-row {
  display: grid;
  grid-template-columns: 42px 34px minmax(0, 1fr) 110px 64px;
  align-items: center;
  min-height: 72px;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.home-ranking-row:last-child {
  border-bottom: 0;
}

.home-ranking-row:hover {
  color: var(--brand-700);
  background: var(--brand-50);
}

.home-ranking-row > span:nth-child(3) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.home-ranking-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-ranking-row small {
  color: var(--muted);
  font-size: 10px;
}

.home-ranking-row > b,
.home-ranking-row > em {
  font-size: 11px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.home-ranking-row > em {
  color: var(--success);
  font-weight: 700;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 230px;
  margin-bottom: 96px;
  padding: 42px 48px;
  gap: 32px;
  border-radius: 12px;
  color: white;
  background: var(--brand-800);
}

.final-cta > div:first-child {
  max-width: 660px;
}

.final-cta > div:first-child > span {
  color: var(--brand-200);
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
}

.final-cta h2 {
  margin-top: 14px;
  font-size: 30px;
  line-height: 1.2;
}

.final-cta p {
  margin-top: 10px;
  color: var(--brand-100);
  font-size: 13px;
}

.final-cta-actions {
  display: flex;
  flex: none;
  gap: 9px;
}

.final-cta .button.secondary {
  border-color: color-mix(in oklch, white 40%, transparent);
  color: white;
  background: transparent;
}

.final-cta .button.primary {
  color: var(--brand-800);
  background: white;
}

.model-not-found {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  padding-block: 96px;
  text-align: center;
}

.not-found-code {
  margin-top: 24px;
  color: var(--brand-300);
  font: 700 clamp(64px, 10vw, 118px)/1 var(--font-mono);
  letter-spacing: -0.08em;
}

.model-not-found h1 {
  margin-top: 18px;
  font-size: 28px;
}

.model-not-found p {
  max-width: 540px;
  margin-top: 10px;
  color: var(--muted);
}

.model-not-found .button {
  margin-top: 28px;
}

.model-not-found .button .icon,
.back-to-models .icon {
  transform: rotate(180deg);
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  gap: 7px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 10px;
}

.detail-breadcrumb a:hover {
  color: var(--brand-700);
}

.detail-breadcrumb .icon {
  width: 12px;
  height: 12px;
}

.model-detail-id {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font: 10px/1.4 var(--font-mono);
}

.model-detail-hero .model-detail-title {
  grid-column: 1 / -1;
}

.detail-capabilities {
  display: flex;
  flex-wrap: wrap;
  margin-top: 18px;
  gap: 7px;
}

.detail-capabilities span {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 9px;
  font-weight: 620;
}

.uptime-summary {
  display: flex;
  align-items: baseline;
  margin-top: 24px;
  gap: 10px;
}

.uptime-summary strong {
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}

.uptime-summary span {
  color: var(--muted);
  font-size: 10px;
}

.uptime-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  margin-top: 18px;
  gap: 5px;
}

.uptime-grid span {
  height: 14px;
  border-radius: 3px;
  background: var(--success);
}

.uptime-grid span.muted {
  background: var(--signal);
}

.benchmark-list {
  margin-top: 24px;
  border-block: 1px solid var(--border);
}

.benchmark-list > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 42px;
  align-items: center;
  min-height: 48px;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.benchmark-list > div:last-child {
  border-bottom: 0;
}

.benchmark-list span,
.benchmark-list strong {
  font-size: 10px;
}

.benchmark-list > div > i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.benchmark-list b {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: var(--brand-500);
}

.benchmark-list strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.related-models {
  margin-top: 18px;
  border-block: 1px solid var(--border);
}

.related-models > a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  min-height: 62px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.related-models > a:last-child {
  border-bottom: 0;
}

.related-models > a:hover {
  color: var(--brand-700);
}

.related-models > a > span {
  display: flex;
  flex-direction: column;
}

.related-models strong {
  font-size: 11px;
}

.related-models small {
  color: var(--muted);
  font-size: 9px;
}

.related-models > a > .icon {
  width: 15px;
  height: 15px;
}

.back-to-models {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  gap: 7px;
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 650;
}

.password-field {
  position: relative;
  display: block;
}

.auth-panel .password-field input {
  padding-right: 112px;
}

.password-field button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  height: 34px;
  gap: 5px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
  font-size: 9px;
  cursor: pointer;
}

.password-field button:hover {
  color: var(--brand-700);
  background: var(--brand-50);
}

.password-field button .icon {
  width: 13px;
  height: 13px;
}

.period-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 10px;
  font-weight: 620;
}

.period-pill .icon {
  width: 14px;
  height: 14px;
}

.dashboard-metrics-four {
  grid-template-columns: repeat(4, 1fr);
}

.dashboard-metrics-four article {
  min-width: 0;
  padding-inline: 16px;
}

.dashboard-metrics-four article > strong {
  font-size: 21px;
}

.overview-activity-panel {
  margin-bottom: 20px;
}

.dashboard-segmented {
  display: inline-flex;
  margin-top: 20px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.dashboard-segmented button {
  min-width: 52px;
  height: 29px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 680;
  cursor: pointer;
}

.dashboard-segmented button.active {
  color: var(--brand-700);
  background: white;
}

.activity-table .table-row {
  grid-template-columns: 1.1fr 1.4fr 0.8fr 0.8fr 0.7fr;
}

.activity-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.activity-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.account-profile-card {
  max-width: 760px;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

.account-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid var(--border);
}

.workspace-icon.large {
  width: 48px;
  height: 48px;
  font-size: 13px;
}

.account-identity h2 {
  font-size: 16px;
}

.account-identity p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.account-profile-card dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 6px 22px;
}

.account-profile-card dl > div {
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.account-profile-card dl > div:nth-child(odd) {
  padding-right: 18px;
}

.account-profile-card dl > div:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.account-profile-card dt {
  color: var(--muted);
  font-size: 9px;
}

.account-profile-card dd {
  overflow: hidden;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-disclosure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 22px 22px;
  padding: 10px 12px;
  border: 1px solid var(--brand-200);
  border-radius: 7px;
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 9px;
}

.account-disclosure .icon {
  width: 14px;
  height: 14px;
}

.preferences-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  gap: 12px;
}

.preference-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 112px;
  align-items: center;
  padding: 18px;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

.preference-card > .icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--brand-200);
  border-radius: 9px;
  color: var(--brand-700);
  background: var(--brand-50);
}

.preference-card > div {
  min-width: 0;
}

.preference-card h2 {
  font-size: 12px;
  font-weight: 650;
}

.preference-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.preference-card button {
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface);
  font-size: 9px;
  font-weight: 620;
  white-space: nowrap;
  cursor: pointer;
}

.preference-card button:hover {
  border-color: var(--brand-200);
  color: var(--brand-700);
  background: var(--brand-50);
}

@media (max-width: 1120px) {
  .desktop-nav a {
    padding-inline: 7px;
  }

  .search-trigger {
    width: 150px;
  }

  .feature-card {
    grid-template-columns: 44% 56%;
  }

  .feature-copy {
    padding: 25px;
  }

  .directory-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .directory-tools {
    width: 100%;
  }

  .model-search {
    width: auto;
    flex: 1;
  }

  .model-detail-actions .outline-button:nth-child(2) {
    display: none;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .search-trigger {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    width: 36px;
    color: var(--ink-soft);
  }

  .mobile-nav {
    display: flex;
    position: absolute;
    top: 59px;
    right: 0;
    left: 0;
    flex-direction: column;
    padding: 8px 16px 14px;
    border-bottom: 1px solid var(--border);
    background: white;
    box-shadow: 0 14px 30px color-mix(in oklch, var(--brand-900) 8%, transparent);
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 8px;
    border-bottom: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 580;
  }

  .mobile-nav a.active {
    color: var(--brand-700);
  }

  .mobile-nav .icon {
    width: 14px;
    height: 14px;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-visual {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .directory-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    display: none;
  }

  .mobile-filter-trigger {
    display: inline-flex;
  }

  .model-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .model-facts div:nth-child(3) {
    border-right: 0;
  }

  .model-facts div:nth-child(n + 4) {
    border-top: 1px solid var(--border);
  }

  .detail-body {
    grid-template-columns: 1fr;
  }

  .section-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }

  .section-nav a,
  .section-nav button {
    width: auto;
    flex: none;
  }

  .rankings-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rankings-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .rankings-sidebar a,
  .rankings-sidebar button {
    width: auto;
    flex: none;
  }

  .auth-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-art {
    display: none;
  }

  .dashboard-shell {
    grid-template-columns: 184px minmax(0, 1fr);
  }

  .dashboard-header .brand > span,
  .dashboard-header .brand em,
  .dashboard-breadcrumb,
  .dashboard-header .prototype-badge {
    display: none;
  }

  .dashboard-content {
    padding-inline: 24px;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-metrics article {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .dashboard-metrics article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 56px;
  }

  body {
    font-size: 14px;
  }

  .content-shell {
    width: min(calc(100% - 32px), var(--content));
  }

  .nav-shell {
    width: calc(100% - 24px);
    gap: 10px;
  }

  .brand {
    min-height: 34px;
  }

  .brand .brand-lockup {
    width: 112px;
    height: auto;
  }

  .brand em {
    margin-top: 1px;
    padding-inline: 4px;
    font-size: 8px;
    line-height: 14px;
  }

  .site-header {
    height: var(--header-height);
  }

  .mobile-nav {
    top: 55px;
  }

  .personal-link span:last-child {
    display: none;
  }

  .hero {
    width: calc(100% - 32px);
    padding: 68px 0 58px;
  }

  .hero-kicker > span:last-child {
    display: none;
  }

  .hero h1 {
    margin-top: 19px;
    font-size: 35px;
    line-height: 1.1;
  }

  .hero > p {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.72;
  }

  .hero-actions {
    width: 100%;
    margin-top: 26px;
  }

  .hero-actions .button {
    flex: 1;
    padding-inline: 10px;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    width: calc(100% - 32px);
    margin-bottom: 42px;
  }

  .stat-strip div:nth-child(2) {
    border-right: 0;
  }

  .stat-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .stat-strip div {
    padding-block: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-visual {
    min-height: 210px;
  }

  .feature-copy {
    padding: 24px;
  }

  .feature-copy h2 {
    font-size: 19px;
  }

  .section-block {
    padding-block: 64px;
  }

  .section-heading {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .featured-models {
    grid-template-columns: 1fr;
  }

  .featured-model,
  .featured-model:first-child,
  .featured-model:last-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .featured-model:last-child {
    border-bottom: 0;
  }

  .process-section > .content-shell {
    padding-block: 58px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .update-list article {
    grid-template-columns: 26px 1fr;
    min-height: 108px;
    gap: 10px;
  }

  .update-list time {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    padding-top: 44px;
    gap: 34px;
  }

  .info-page {
    padding-block: 56px 72px;
  }

  .info-hero {
    min-height: 230px;
  }

  .info-hero h1 {
    margin-top: 20px;
    font-size: 36px;
  }

  .info-hero p {
    margin-top: 16px;
    font-size: 12px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .info-card,
  .info-card:first-child,
  .info-card:last-child {
    min-height: 210px;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .info-card:last-child {
    border-bottom: 0;
  }

  .info-card > .icon {
    margin-top: 28px;
  }

  .support-grid .info-card {
    min-height: 250px;
  }

  .footer-columns {
    gap: 18px;
  }

  .directory-content {
    padding: 28px 16px 70px;
  }

  .directory-header h1 {
    font-size: 29px;
  }

  .directory-tools {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .mobile-filter-trigger {
    width: 100%;
  }

  .model-search {
    grid-column: 1 / -1;
    width: 100%;
  }

  .directory-tools .outline-button {
    display: none;
  }

  .view-toggle {
    display: none;
  }

  .modality-tabs {
    overflow-x: auto;
    margin-top: 21px;
    gap: 18px;
  }

  .modality-tabs button {
    flex: none;
  }

  .model-row {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 20px 0;
    gap: 14px;
  }

  .model-row:hover {
    background: white;
  }

  .model-row-main > p,
  .model-meta {
    margin-left: 0;
  }

  .model-row-main > p {
    margin-top: 12px;
  }

  .model-meta {
    gap: 5px 9px;
  }

  .model-meta span + span {
    padding-left: 9px;
  }

  .model-row-volume {
    align-items: flex-start;
    flex-direction: row;
    justify-content: flex-start;
    gap: 6px;
    text-align: left;
  }

  .model-row-volume strong {
    font-size: 12px;
  }

  .model-row-volume span {
    align-self: center;
  }

  .model-detail-hero {
    grid-template-columns: 1fr;
    padding-block: 34px 26px;
  }

  .model-detail-title h1 {
    font-size: 23px;
  }

  .model-detail-actions {
    grid-row: 4;
    flex-wrap: wrap;
  }

  .model-detail-actions .outline-button {
    flex: 1;
  }

  .model-detail-actions .button {
    flex: 1;
  }

  .model-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .model-facts div,
  .model-facts div:first-child {
    padding: 12px;
    border-right: 1px solid var(--border);
    border-top: 1px solid var(--border);
  }

  .model-facts div:nth-child(odd) {
    padding-left: 0;
  }

  .model-facts div:nth-child(even) {
    border-right: 0;
  }

  .model-facts div:nth-child(-n + 2) {
    border-top: 0;
  }

  .detail-body {
    padding-block: 24px 68px;
    gap: 30px;
  }

  .section-nav {
    width: calc(100vw - 32px);
  }

  .detail-section {
    padding-bottom: 44px;
  }

  .detail-section + .detail-section {
    padding-top: 36px;
  }

  .detail-section > h2 {
    font-size: 19px;
  }

  .provider-table,
  .usage-table,
  .credit-table,
  .key-table {
    overflow-x: auto;
  }

  .provider-table .table-row {
    grid-template-columns: 154px repeat(5, 92px);
    min-width: 614px;
  }

  .metric-pair {
    grid-template-columns: 1fr;
  }

  .metric-pair > div {
    padding-inline: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .metric-pair > div:last-child {
    border-bottom: 0;
  }

  .performance-cards {
    grid-template-columns: 1fr;
  }

  .rank-type-tabs {
    overflow-x: auto;
    width: calc(100vw - 32px);
    gap: 22px;
  }

  .rank-type-tabs button {
    flex: none;
  }

  .rankings-sidebar {
    width: calc(100vw - 32px);
  }

  .rankings-intro {
    min-height: 220px;
  }

  .rankings-intro h1 {
    font-size: 30px;
  }

  .rank-chart-section,
  .leaderboard-section {
    padding-block: 38px;
  }

  .rank-chart-section .section-heading,
  .leaderboard-section .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .stacked-chart {
    height: 210px;
    gap: 2px;
  }

  .leader-row {
    grid-template-columns: 25px 34px minmax(0, 1fr) 64px;
    gap: 7px;
  }

  .leader-row > span:nth-last-child(2) {
    font-size: 9px;
  }

  .leader-row em {
    display: none;
  }

  .home-rankings-preview {
    padding-top: 62px;
  }

  .home-ranking-row {
    grid-template-columns: 28px 32px minmax(0, 1fr) 66px;
    min-height: 64px;
    gap: 9px;
  }

  .home-ranking-row > em {
    display: none;
  }

  .home-ranking-row > b {
    font-size: 9px;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 62px;
    padding: 28px 24px;
  }

  .final-cta h2 {
    font-size: 24px;
  }

  .final-cta-actions {
    width: 100%;
  }

  .final-cta-actions .button {
    flex: 1;
  }

  .model-not-found {
    min-height: calc(100vh - 56px);
    padding-block: 64px;
  }

  .detail-breadcrumb {
    margin-bottom: 22px;
  }

  .detail-capabilities {
    margin-top: 14px;
  }

  .uptime-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .benchmark-list > div {
    grid-template-columns: 84px minmax(0, 1fr) 32px;
    gap: 9px;
  }

  .related-models > a {
    min-height: 58px;
  }

  .auth-page {
    min-height: calc(100vh - var(--header-height));
  }

  .auth-panel {
    width: 100%;
    padding: 38px 20px 56px;
  }

  .auth-heading {
    margin-top: 34px;
  }

  .auth-heading h1 {
    font-size: 26px;
  }

  .social-auth {
    grid-template-columns: 1fr;
  }

  .form-two {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    display: block;
    min-height: 100vh;
  }

  .dashboard-header {
    height: 56px;
  }

  .dashboard-sidebar {
    position: sticky;
    z-index: 30;
    top: 56px;
    display: flex;
    min-height: 0;
    overflow-x: auto;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .workspace-card,
  .dashboard-sidebar .sidebar-label,
  .dashboard-sidebar .sidebar-note,
  .dashboard-sidebar nav:nth-of-type(2) {
    display: none;
  }

  .dashboard-sidebar nav {
    flex-direction: row;
    margin: 0;
    gap: 4px;
  }

  .dashboard-sidebar nav a {
    width: auto;
    flex: none;
    padding-inline: 11px;
  }

  .dashboard-sidebar nav a .icon {
    width: 14px;
    height: 14px;
  }

  .dashboard-content {
    padding: 26px 16px 64px;
  }

  .dashboard-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-page-heading h1 {
    font-size: 25px;
  }

  .dashboard-page-heading > button {
    align-self: stretch;
  }

  .period-pill {
    align-self: flex-start;
  }

  .dashboard-metrics {
    margin-top: 18px;
  }

  .dashboard-segmented {
    display: flex;
    width: 100%;
  }

  .dashboard-segmented button {
    flex: 1;
  }

  .dashboard-chart-panel,
  .dashboard-table-panel {
    padding: 15px;
  }

  .dashboard-bars {
    height: 210px;
    gap: 3px;
  }

  .usage-table .table-row {
    grid-template-columns: 160px repeat(4, 88px);
    min-width: 512px;
  }

  .activity-table .table-row {
    grid-template-columns: 118px 150px 86px 72px 64px;
    min-width: 490px;
  }

  .account-profile-card dl {
    grid-template-columns: 1fr;
  }

  .account-profile-card dl > div:nth-child(odd),
  .account-profile-card dl > div:nth-child(even) {
    padding: 14px 0;
    border-left: 0;
  }

  .account-profile-card dl > div:last-child {
    border-bottom: 0;
  }

  .credit-hero {
    min-height: 160px;
    padding: 22px;
  }

  .credit-hero strong {
    font-size: 28px;
  }

  .credit-ring {
    width: 90px;
    height: 90px;
    border-width: 10px;
  }

  .credit-table .table-row {
    grid-template-columns: repeat(4, 110px);
    min-width: 440px;
  }

  .key-table .table-row {
    grid-template-columns: 190px 150px repeat(4, 100px);
    min-width: 740px;
  }

  .preferences-grid {
    grid-template-columns: 1fr;
  }

  .preference-card {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 104px;
    padding: 15px;
    gap: 11px;
  }

  .preference-card > .icon {
    width: 38px;
    height: 38px;
    padding: 9px;
  }

  .search-overlay {
    padding-top: 64px;
  }

  .command-panel {
    width: calc(100% - 24px);
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

@media (max-width: 390px) {
  .language-switch {
    padding-inline: 6px;
  }

  .prototype-badge:not(.compact) span {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .password-field button span {
    display: none;
  }

  .auth-panel .password-field input {
    padding-right: 48px;
  }

  .hero-actions .button {
    font-size: 11px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns div:last-child {
    grid-column: 1 / -1;
  }

  .dashboard-header-actions .dashboard-avatar span {
    display: none;
  }

  .credit-hero {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .credit-hero > div + div {
    align-items: flex-start;
    margin-top: 20px;
    padding: 20px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
    text-align: left;
  }

  .preference-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .preference-card > .icon {
    width: 36px;
    height: 36px;
    padding: 8px;
  }

  .preference-card button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.workspace-card-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  text-align: left;
}

.workspace-card-copy strong,
.workspace-card-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-network i img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Expanded Exrouter surfaces */

.provider-mark {
  overflow: hidden;
  background: white;
}

.provider-mark img {
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.orbital-models span {
  overflow: hidden;
  background: white;
}

.orbital-models span img,
.route-nodes span img,
.avatar-stack img {
  display: block;
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.route-nodes span,
.avatar-stack i {
  overflow: hidden;
  background: white;
}

.site-footer {
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 2.2fr);
  gap: clamp(42px, 6vw, 96px);
}

.footer-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}

.footer-workspace-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 18px;
  padding: 0 13px;
  gap: 7px;
  border: 1px solid var(--brand-300);
  border-radius: var(--radius-control);
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 11px;
  font-weight: 650;
}

.footer-workspace-link .icon {
  width: 14px;
  height: 14px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-status i,
.reference-status i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--success) 12%, transparent);
}

.surface-page {
  min-height: calc(100vh - var(--header-height));
  padding-block: 66px 112px;
}

.surface-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.surface-heading > div:first-child {
  max-width: 760px;
}

.surface-heading h1 {
  max-width: 780px;
  margin-top: 15px;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.surface-heading p {
  max-width: 700px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.surface-metrics {
  display: flex;
  align-items: center;
  flex: none;
  gap: 24px;
}

.surface-metrics span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.surface-metrics strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

/* Chat */

.chat-workbench {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}

.chat-sidebar {
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 7px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.chat-new {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-bottom: 9px;
  gap: 8px;
  border: 1px solid var(--brand-300);
  border-radius: 8px;
  color: var(--brand-700);
  background: white;
  font-size: 11px;
  font-weight: 650;
}

.chat-new .icon {
  width: 15px;
  height: 15px;
}

.chat-sidebar-label {
  padding: 8px 7px 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.chat-thread {
  width: 100%;
  min-height: 48px;
  padding: 8px;
  border-radius: 7px;
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
}

.chat-thread:hover,
.chat-thread:focus-visible {
  background: white;
}

.chat-thread > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
}

.chat-thread .icon {
  width: 14px;
  height: 14px;
  color: var(--brand-600);
}

.chat-thread small {
  display: block;
  margin: 4px 0 0 21px;
  color: var(--muted);
  font-size: 8px;
}

.chat-sidebar-tools {
  display: grid;
  margin-top: auto;
  padding-top: 12px;
  gap: 5px;
  border-top: 1px solid var(--border);
}

.chat-sidebar-tools button {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 8px;
  gap: 7px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  text-align: left;
}

.chat-sidebar-tools button:hover {
  color: var(--brand-700);
  background: white;
}

.chat-sidebar-tools .icon {
  width: 13px;
  height: 13px;
}

.chat-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 620px;
}

.chat-toolbar {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 10px 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.chat-toolbar label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.chat-toolbar label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.chat-toolbar select {
  min-width: min(320px, 46vw);
  height: 36px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--ink);
  background: white;
  font-size: 10px;
}

.chat-model-meta {
  margin-left: auto;
  color: var(--muted);
  font: 9px/1 var(--font-mono);
}

.chat-toolbar-actions {
  display: flex;
  gap: 6px;
}

.chat-toolbar-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 9px;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 8px;
  white-space: nowrap;
}

.chat-toolbar-actions .icon {
  width: 13px;
  height: 13px;
  color: var(--brand-600);
}

.chat-toolbar-actions kbd {
  color: var(--muted);
  font: 7px/1 var(--font-mono);
}

.chat-toolbar > button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--ink-soft);
  background: white;
}

.chat-toolbar > button .icon {
  width: 16px;
  height: 16px;
}

.chat-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  margin: auto;
  padding: 54px 24px;
  text-align: center;
}

.chat-empty .provider-mark {
  width: 48px;
  height: 48px;
  border-radius: 11px;
}

.chat-empty h2 {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 650;
}

.chat-empty > p {
  max-width: 520px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
  gap: 8px;
}

.chat-suggestions button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 10px;
}

.chat-suggestions .icon {
  width: 13px;
  height: 13px;
}

.chat-composer {
  margin: 0 20px 20px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 24px color-mix(in oklch, var(--brand-900) 5%, transparent);
}

.chat-composer textarea {
  width: 100%;
  min-height: 72px;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 12px;
}

.chat-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chat-composer-footer > span {
  color: var(--muted);
  font-size: 9px;
}

.chat-composer-tools {
  display: flex;
  overflow-x: auto;
  margin-bottom: 8px;
  gap: 6px;
  scrollbar-width: none;
}

.chat-composer-tools button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 8px;
  white-space: nowrap;
}

.chat-composer-tools .icon {
  width: 12px;
  height: 12px;
}

/* Apps */

.category-pills {
  display: flex;
  overflow-x: auto;
  margin-bottom: 22px;
  gap: 7px;
  scrollbar-width: none;
}

.category-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 10px;
  white-space: nowrap;
}

.category-pills span.active {
  border-color: var(--brand-300);
  color: var(--brand-700);
  background: var(--brand-50);
}

.app-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.apps-page .surface-heading > div:first-child {
  max-width: 980px;
}

.apps-page .surface-heading h1 {
  font-size: clamp(38px, 3.4vw, 50px);
  text-wrap: balance;
}

.apps-ranking-section {
  margin-top: 38px;
}

.apps-ranking-section:first-of-type {
  margin-top: 0;
}

.apps-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 18px;
}

.apps-section-heading > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.apps-section-heading > div > span {
  color: var(--brand-500);
  font: 700 8px/1 var(--font-mono);
}

.apps-section-heading h2 {
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.apps-section-heading > p {
  color: var(--muted);
  font-size: 9px;
}

.app-card-rank {
  margin-bottom: 14px;
  color: var(--muted);
  font: 700 8px/1 var(--font-mono);
}

.app-card {
  display: flex;
  min-width: 0;
  min-height: 286px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}

.app-card:hover {
  border-color: var(--brand-300);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.app-card-top em {
  color: var(--success);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.app-card h2 {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 650;
}

.app-card > p {
  min-height: 48px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.app-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0;
  padding-block: 13px;
  border-block: 1px solid var(--border);
  gap: 12px;
}

.app-card dl div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-card dt {
  color: var(--muted);
  font-size: 8px;
}

.app-card dd {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}

.app-card > button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  gap: 6px;
  color: var(--brand-700);
  background: transparent;
  font-size: 10px;
  font-weight: 650;
}

.app-card > button .icon {
  width: 14px;
  height: 14px;
}

.trending-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}

.trending-list > button {
  display: grid;
  grid-template-columns: 34px 38px minmax(0, 1fr) 80px 64px 18px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 0 18px;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  background: white;
  text-align: left;
}

.trending-list > button:last-child {
  border-bottom: 0;
}

.trending-list > button:hover {
  background: var(--surface);
}

.trending-list b {
  color: var(--muted);
  font: 700 8px/1 var(--font-mono);
}

.trending-list span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.trending-list strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trending-list small {
  color: var(--muted);
  font-size: 8px;
}

.trending-list em,
.trending-list i {
  font-size: 9px;
  font-style: normal;
  text-align: right;
}

.trending-list i {
  color: var(--success);
  font-weight: 700;
}

.trending-list .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.apps-category-rankings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 38px;
  gap: 14px;
}

.apps-category-rankings > article {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}

.apps-category-rankings .apps-section-heading > button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-700);
  background: transparent;
  font-size: 8px;
  font-weight: 650;
}

.apps-category-rankings .apps-section-heading .icon {
  width: 12px;
  height: 12px;
}

.apps-category-rankings article > div:last-child {
  display: grid;
}

.apps-category-rankings article > div:last-child > button {
  display: grid;
  grid-template-columns: 24px 36px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 58px;
  gap: 9px;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  background: white;
  text-align: left;
}

.apps-category-rankings article > div:last-child > button > b {
  color: var(--muted);
  font: 700 8px/1 var(--font-mono);
}

.apps-category-rankings article > div:last-child > button > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.apps-category-rankings article > div:last-child strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apps-category-rankings article > div:last-child small,
.apps-category-rankings article > div:last-child em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

/* Documentation */

.docs-page {
  min-height: calc(100vh - var(--header-height));
  padding-block: 26px 104px;
}

.docs-topbar {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
}

.docs-topbar > span {
  margin-right: auto;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.docs-topbar .docs-home-link {
  margin-right: auto;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.docs-topbar a,
.docs-topbar button {
  color: var(--muted);
  background: transparent;
  font-size: 9px;
}

.docs-topbar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.docs-topbar .icon {
  width: 13px;
  height: 13px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 156px;
  align-items: start;
  margin-top: 34px;
  gap: 44px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-sidebar strong,
.docs-toc strong {
  margin: 12px 0 5px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 720;
}

.docs-sidebar a,
.docs-toc a,
.docs-toc span {
  min-height: 31px;
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 9px;
}

.docs-sidebar a.active {
  color: var(--brand-700);
  background: var(--brand-50);
  font-weight: 650;
}

.docs-article {
  min-width: 0;
  max-width: 760px;
}

.docs-article h1 {
  margin-top: 20px;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 680;
  letter-spacing: -0.035em;
}

.docs-lead {
  margin-top: 17px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.docs-article > section:not(.docs-code) {
  margin-top: 42px;
}

.docs-article h2 {
  font-size: 19px;
  font-weight: 650;
}

.docs-article ul {
  display: grid;
  margin-top: 14px;
  padding-left: 20px;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 12px;
}

.docs-code {
  margin: 38px 0 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--brand-900);
}

.docs-code > div {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  gap: 10px;
  border-bottom: 1px solid color-mix(in oklch, white 12%, transparent);
}

.docs-code > div span {
  padding: 4px 7px;
  border-radius: 4px;
  color: var(--success);
  background: color-mix(in oklch, var(--success) 14%, transparent);
  font: 700 8px/1 var(--font-mono);
}

.docs-code code {
  color: oklch(0.9 0.02 230);
  font: 10px/1.6 var(--font-mono);
}

.docs-code pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
}

.docs-code > p {
  padding: 12px 18px;
  border-top: 1px solid color-mix(in oklch, white 12%, transparent);
  color: oklch(0.72 0.02 230);
  font-size: 9px;
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Compare and resource directories */

.compare-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
  gap: 7px;
}

.compare-presets > span {
  margin-right: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.compare-presets button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  background: white;
  font-size: 9px;
}

.compare-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 170px;
  margin-bottom: 18px;
  gap: 10px;
}

.compare-selector > button {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0 14px;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--ink-soft);
  background: white;
  text-align: left;
}

.compare-selector > button:hover {
  border-color: var(--brand-300);
}

.compare-selector > button > span {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  font-weight: 650;
}

.compare-selector small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
}

.compare-selector .icon {
  width: 15px;
  height: 15px;
  color: var(--brand-600);
}

.compare-selector > button > .icon:last-child {
  color: var(--muted);
}

.compare-selector .compare-add {
  justify-content: center;
  flex-wrap: wrap;
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 9px;
  font-weight: 650;
  text-align: center;
}

.compare-selector .compare-add small {
  width: 100%;
  text-align: center;
}

.compare-example-label {
  display: flex;
  align-items: center;
  margin: 5px 0 10px;
  gap: 8px;
}

.compare-example-label span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.compare-example-label small {
  color: var(--muted);
  font-size: 8px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 164px repeat(3, minmax(190px, 1fr));
  min-width: 800px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}

.compare-page {
  overflow-x: hidden;
}

.compare-labels,
.compare-grid > article {
  display: grid;
  grid-template-rows: 94px repeat(6, 58px);
  min-width: 0;
}

.compare-labels {
  color: var(--muted);
  background: var(--surface);
}

.compare-labels > *,
.compare-grid > article > span {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-top: 1px solid var(--border);
  font-size: 10px;
}

.compare-labels > div {
  border-top: 0;
}

.compare-grid > article {
  border-left: 1px solid var(--border);
}

.compare-model-head {
  display: flex;
  align-items: center;
  padding: 18px;
  gap: 11px;
}

.compare-model-head small {
  color: var(--muted);
  font-size: 8px;
}

.compare-model-head h2 {
  margin-top: 3px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-page .surface-heading {
  margin-bottom: 24px;
}

.reference-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 9px;
  white-space: nowrap;
}

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

.resource-grid article {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}

.resource-grid article > span {
  color: var(--brand-500);
  font: 650 9px/1 var(--font-mono);
}

.resource-grid article > .icon,
.resource-provider {
  display: grid;
  width: 42px;
  height: 42px;
  margin-top: 22px;
  place-items: center;
  border: 1px solid var(--brand-200);
  border-radius: 9px;
  color: var(--brand-700);
  background: var(--brand-50);
}

.resource-provider .provider-mark {
  width: 34px;
  height: 34px;
  border: 0;
}

.resource-grid h2 {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 650;
}

.resource-grid p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.resource-grid button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
  gap: 6px;
  color: var(--brand-700);
  background: transparent;
  font-size: 10px;
  font-weight: 650;
}

.resource-grid button .icon {
  width: 14px;
  height: 14px;
}

/* Model directory states */

.filter-items[hidden] {
  display: none;
}

.filter-option-button.selected {
  color: var(--brand-700);
  font-weight: 650;
}

.filter-option-button.selected i {
  display: grid;
  place-items: center;
  border-color: var(--brand-500);
  color: white;
  background: var(--brand-600);
}

.filter-option-button.selected i .icon {
  width: 10px;
  height: 10px;
}

.sort-control {
  position: relative;
}

.sort-control > .select-button[aria-expanded="true"] {
  border-color: var(--brand-400);
  color: var(--brand-700);
}

.sort-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  width: 190px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  box-shadow: 0 16px 42px color-mix(in oklch, var(--brand-900) 12%, transparent);
  opacity: 0;
  transform: translateY(-4px) scale(0.985);
  transform-origin: top right;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}

.sort-menu[data-motion-state="open"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sort-menu[data-motion-state="closing"] {
  transition-duration: 120ms;
}

.sort-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 10px;
  text-align: left;
}

.sort-menu button:hover,
.sort-menu button.active {
  color: var(--brand-700);
  background: var(--brand-50);
}

.sort-menu .icon {
  width: 14px;
  height: 14px;
}

.model-list.table-view {
  overflow-x: auto;
  border-top: 1px solid var(--border);
}

.model-table-row {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(4, minmax(100px, 0.75fr));
  min-width: 760px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 10px;
}

.model-table-row:hover:not(.model-table-head) {
  background: var(--brand-50);
}

.model-table-row > span {
  padding: 10px 14px;
}

.model-table-row > span:first-child {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.model-table-row > span:first-child .provider-mark {
  grid-row: 1 / 3;
}

.model-table-row strong,
.model-table-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-table-row small {
  color: var(--muted);
  font-size: 8px;
}

.model-table-head {
  min-height: 42px;
  color: var(--muted);
  background: var(--surface);
  font-size: 8px;
  font-weight: 700;
}

.drawer-backdrop {
  position: fixed;
  z-index: 105;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: color-mix(in oklch, var(--brand-900) 32%, transparent);
  opacity: 0;
  transition: opacity 160ms var(--ease-out);
}

.drawer-backdrop[data-motion-state="open"] {
  opacity: 1;
}

.filter-drawer {
  display: flex !important;
  width: min(390px, 92vw);
  height: 100%;
  overflow-y: auto;
  flex-direction: column;
  padding: 18px 20px 0;
  border-right: 0;
  border-left: 1px solid var(--border);
  background: white;
  box-shadow: -18px 0 48px color-mix(in oklch, var(--brand-900) 12%, transparent);
  transform: translateX(100%);
  transition: transform var(--motion-drawer) var(--ease-drawer);
}

.drawer-backdrop[data-motion-state="open"] .filter-drawer {
  transform: translateX(0);
}

.drawer-backdrop[data-motion-state="closing"] .filter-drawer {
  transition-duration: 160ms;
}

.filter-drawer .mobile-filter-title {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 46px;
  margin: 0;
  background: white;
}

.filter-drawer .mobile-filter-title button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--ink-soft);
  background: white;
}

.filter-drawer-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  margin: auto -20px 0;
  padding: 14px 20px;
  gap: 8px;
  border-top: 1px solid var(--border);
  background: white;
}

.filter-drawer .filter-group:last-of-type {
  margin-bottom: 96px;
}

/* Rankings expanded insights */

.ranking-context-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 14px;
  padding: 0 10px;
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 9px;
  font-weight: 650;
}

.ranking-insight-panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}

.ranking-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  gap: 10px;
}

.ranking-insight-grid article {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.ranking-insight-grid article > span {
  color: var(--muted);
  font-size: 9px;
}

.ranking-insight-grid article > strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

.ranking-insight-grid .line-chart {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  width: calc(100% - 24px);
  height: 62px;
}

.ranking-note {
  display: flex;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  gap: 9px;
  border: 1px solid var(--brand-200);
  border-radius: 7px;
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 10px;
}

.ranking-note .icon {
  width: 15px;
  height: 15px;
  flex: none;
}

/* Generic one-level detail overlay */

.detail-overlay,
.detail-overlay-backdrop,
.overlay-backdrop {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: color-mix(in oklch, var(--brand-900) 34%, transparent);
}

.detail-overlay {
  opacity: 0;
  transition: opacity 160ms var(--ease-out);
}

.detail-overlay[data-motion-state="open"] {
  opacity: 1;
}

.detail-overlay-panel,
.detail-panel,
.overlay-panel {
  width: min(100%, 520px);
  max-height: min(720px, calc(100vh - 48px));
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  box-shadow: 0 24px 72px color-mix(in oklch, var(--brand-900) 20%, transparent);
}

.detail-overlay .detail-panel {
  opacity: 0;
  transform: scale(0.985);
  transform-origin: center;
  transition: opacity var(--motion-overlay) var(--ease-out), transform var(--motion-overlay) var(--ease-out);
}

.detail-overlay[data-motion-state="open"] .detail-panel {
  opacity: 1;
  transform: scale(1);
}

.detail-overlay[data-motion-state="closing"] .detail-panel {
  transition-duration: 160ms;
}

.detail-overlay-header,
.detail-panel-header,
.overlay-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.detail-overlay-header h2,
.detail-panel-header h2,
.overlay-panel-header h2 {
  font-size: 18px;
  font-weight: 660;
}

.detail-overlay-header p,
.detail-panel-header p,
.overlay-panel-header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.detail-overlay-close,
.detail-panel-header > button,
.overlay-panel-header > button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--ink-soft);
  background: white;
}

.detail-overlay-close .icon,
.detail-panel-header > button .icon,
.overlay-panel-header > button .icon {
  width: 15px;
  height: 15px;
}

.detail-overlay-body,
.detail-panel-body,
.overlay-panel-body {
  padding: 20px;
}

.detail-overlay-options,
.detail-option-list,
.overlay-option-list {
  display: grid;
  gap: 7px;
}

.detail-overlay-options button,
.detail-option-list button,
.overlay-option-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--ink-soft);
  background: white;
  font-size: 10px;
  text-align: left;
}

.detail-overlay-options button:hover,
.detail-overlay-options button.active,
.detail-option-list button:hover,
.detail-option-list button.active,
.overlay-option-list button:hover,
.overlay-option-list button.active {
  border-color: var(--brand-300);
  color: var(--brand-700);
  background: var(--brand-50);
}

.detail-overlay-footer,
.detail-panel-footer,
.overlay-panel-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 20px;
  gap: 8px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

@media (max-width: 1080px) {
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .docs-layout {
    grid-template-columns: 174px minmax(0, 1fr);
    gap: 30px;
  }

  .docs-toc {
    display: none;
  }

  .app-directory-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .surface-page {
    padding-block: 38px 78px;
  }

  .surface-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
    padding-bottom: 22px;
    gap: 18px;
  }

  .surface-heading h1 {
    font-size: 34px;
  }

  .surface-heading p {
    font-size: 12px;
  }

  .surface-metrics {
    width: 100%;
    justify-content: flex-start;
  }

  .chat-workbench {
    grid-template-columns: 1fr;
    min-height: 660px;
  }

  .chat-sidebar {
    overflow-x: auto;
    flex-direction: row;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .chat-new,
  .chat-thread {
    width: auto;
    min-width: 150px;
    margin: 0;
  }

  .chat-sidebar-label {
    display: none;
  }

  .chat-thread small {
    display: none;
  }

  .chat-main {
    min-height: 570px;
  }

  .chat-toolbar {
    flex-wrap: wrap;
  }

  .chat-toolbar label {
    min-width: 0;
    flex: 1;
  }

  .chat-toolbar select {
    width: 100%;
    min-width: 0;
  }

  .chat-model-meta {
    order: 4;
    width: 100%;
    margin-left: 0;
  }

  .chat-toolbar-actions {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .chat-empty {
    padding: 38px 18px;
  }

  .chat-suggestions {
    display: grid;
    width: 100%;
  }

  .chat-suggestions button {
    justify-content: space-between;
  }

  .chat-composer {
    margin: 0 12px 12px;
  }

  .app-directory-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .apps-category-rankings {
    grid-template-columns: 1fr;
  }

  .trending-list > button {
    grid-template-columns: 26px 34px minmax(0, 1fr) 48px 15px;
    padding-inline: 12px;
    gap: 8px;
  }

  .trending-list > button > em {
    display: none;
  }

  .app-card,
  .resource-grid article {
    min-height: 238px;
  }

  .docs-page {
    padding-block: 18px 78px;
  }

  .docs-topbar {
    overflow-x: auto;
    gap: 14px;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    margin-top: 22px;
    gap: 24px;
  }

  .docs-sidebar {
    position: static;
    overflow-x: auto;
    flex-direction: row;
    padding-bottom: 8px;
    gap: 6px;
  }

  .docs-sidebar strong {
    display: none;
  }

  .docs-sidebar a {
    min-height: 34px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    white-space: nowrap;
  }

  .docs-article h1 {
    font-size: 34px;
  }

  .docs-lead {
    font-size: 13px;
  }

  .compare-page {
    overflow-x: auto;
  }

  .compare-presets,
  .compare-selector,
  .compare-grid {
    width: max-content;
  }

  .compare-selector {
    grid-template-columns: repeat(2, 200px) 150px;
  }

  .compare-grid {
    grid-template-columns: 128px repeat(3, 190px);
    min-width: 698px;
  }

  .compare-labels > *,
  .compare-grid > article > span {
    padding-inline: 11px;
  }

  .ranking-insight-panel {
    padding: 16px;
  }

  .ranking-insight-grid {
    grid-template-columns: 1fr;
  }

  .detail-overlay,
  .detail-overlay-backdrop,
  .overlay-backdrop {
    align-items: end;
    padding: 0;
  }

  .detail-overlay-panel,
  .detail-panel,
  .overlay-panel {
    width: 100%;
    max-height: min(82vh, 720px);
    border-width: 1px 0 0;
    border-radius: 14px 14px 0 0;
  }

  .detail-overlay .detail-panel {
    transform: translateY(100%);
    transform-origin: bottom center;
    transition-duration: var(--motion-drawer);
    transition-timing-function: var(--ease-drawer);
  }

  .detail-overlay[data-motion-state="open"] .detail-panel {
    transform: translateY(0);
  }
}

@media (max-width: 390px) {
  .site-footer {
    width: calc(100% - 32px);
    padding-top: 48px;
    gap: 38px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .footer-columns div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .surface-page {
    padding-block: 30px 64px;
  }

  .surface-heading h1,
  .docs-article h1 {
    font-size: 30px;
  }

  .surface-metrics {
    gap: 18px;
  }

  .surface-metrics strong {
    font-size: 21px;
  }

  .chat-workbench {
    min-height: 610px;
    border-radius: 9px;
  }

  .chat-new,
  .chat-thread {
    min-width: 132px;
  }

  .chat-main {
    min-height: 520px;
  }

  .chat-toolbar {
    padding-inline: 11px;
  }

  .chat-empty h2 {
    font-size: 19px;
  }

  .chat-composer-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-composer .button {
    align-self: flex-end;
  }

  .category-pills {
    margin-right: -16px;
    padding-right: 16px;
  }

  .app-card,
  .resource-grid article {
    padding: 18px;
  }

  .apps-section-heading {
    align-items: flex-start;
  }

  .apps-section-heading > p {
    max-width: 118px;
    text-align: right;
  }

  .docs-topbar > span {
    min-width: max-content;
  }

  .docs-code pre {
    padding: 14px;
  }

  .compare-grid {
    grid-template-columns: 112px repeat(3, 176px);
    min-width: 640px;
  }

  .compare-model-head {
    padding: 12px;
  }

  .drawer-backdrop {
    align-items: flex-end;
  }

  .filter-drawer {
    width: 100%;
    height: min(88vh, 760px);
    border-top: 1px solid var(--border);
    border-left: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -18px 48px color-mix(in oklch, var(--brand-900) 12%, transparent);
    transform: translateY(100%);
  }

  .drawer-backdrop[data-motion-state="open"] .filter-drawer {
    transform: translateY(0);
  }

  .sort-menu {
    position: fixed;
    z-index: 112;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    transform: translateY(8px) scale(0.985);
    transform-origin: bottom center;
  }

  .sort-menu[data-motion-state="open"] {
    transform: translateY(0) scale(1);
  }

  .model-table-row {
    grid-template-columns: 220px repeat(4, 92px);
    min-width: 588px;
  }

  .ranking-insight-grid article {
    min-height: 150px;
  }

  .detail-overlay-header,
  .detail-panel-header,
  .overlay-panel-header,
  .detail-overlay-body,
  .detail-panel-body,
  .overlay-panel-body {
    padding: 16px;
  }
}

/* Actual detail overlay contract */

.detail-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.detail-panel > header > div > span {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-500);
  font: 700 8px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.detail-panel > header h2 {
  font-size: 19px;
  font-weight: 670;
  letter-spacing: -0.02em;
}

.detail-panel > header > button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--ink-soft);
  background: white;
}

.detail-panel > header > button:hover,
.detail-panel > header > button:focus-visible {
  border-color: var(--brand-300);
  color: var(--brand-700);
  background: var(--brand-50);
}

.detail-panel > header > button .icon {
  width: 15px;
  height: 15px;
}

.detail-panel-body {
  padding: 20px;
}

.overlay-lead {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
  gap: 8px;
}

.contact-details span {
  display: flex;
  min-width: 0;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 9px;
}

.contact-details .icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--brand-600);
}

.overlay-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.overlay-form-grid label,
.overlay-choice-list > label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.overlay-form-grid label.full {
  grid-column: 1 / -1;
}

.overlay-form-grid label > span,
.overlay-choice-list > label:not(.toggle-row) > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
}

.overlay-form-grid input,
.overlay-form-grid select,
.overlay-form-grid textarea,
.overlay-choice-list textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  outline: 0;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 10px;
}

.overlay-form-grid input,
.overlay-form-grid select {
  height: 40px;
  padding: 0 11px;
}

.overlay-form-grid textarea,
.overlay-choice-list textarea {
  min-height: 96px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.6;
}

.overlay-form-grid input:focus,
.overlay-form-grid select:focus,
.overlay-form-grid textarea:focus,
.overlay-choice-list textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.overlay-choice-list {
  display: grid;
  margin-bottom: 16px;
  gap: 9px;
}

.overlay-option-list {
  display: grid;
  gap: 8px;
}

.overlay-option-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink-soft);
  background: white;
  text-align: left;
}

.overlay-option-list button > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.overlay-option-list button strong {
  font-size: 11px;
  font-weight: 650;
}

.overlay-option-list button small {
  color: var(--muted);
  font-size: 8px;
}

.overlay-option-list button > .icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.overlay-option-list button:hover,
.overlay-option-list button:focus-visible,
.overlay-option-list button.selected {
  border-color: var(--brand-400);
  color: var(--brand-700);
  background: var(--brand-50);
}

.overlay-option-list button.selected {
  box-shadow: inset 3px 0 0 var(--brand-600);
}

.toggle-row {
  display: flex !important;
  align-items: center;
  flex-direction: row !important;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px 12px;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.toggle-row > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.toggle-row strong {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}

.toggle-row small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.toggle-row input[type="checkbox"] {
  width: 34px;
  height: 18px;
  flex: none;
  accent-color: var(--brand-600);
  cursor: pointer;
}

.workspace-overlay-card {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 13px;
  border: 1px solid var(--brand-200);
  border-radius: 9px;
  background: var(--brand-50);
}

.workspace-overlay-card h3 {
  font-size: 13px;
  font-weight: 670;
}

.workspace-overlay-card p,
.workspace-overlay-card div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.overlay-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.overlay-summary div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 12px;
  gap: 4px;
  border-right: 1px solid var(--border);
}

.overlay-summary div:last-child {
  border-right: 0;
}

.overlay-summary dt {
  color: var(--muted);
  font-size: 8px;
}

.overlay-summary dd {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overlay-notice {
  display: flex;
  align-items: flex-start;
  margin: 14px 0;
  padding: 11px 12px;
  gap: 8px;
  border: 1px solid var(--brand-200);
  border-radius: 7px;
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 9px;
  line-height: 1.55;
}

.overlay-notice .icon {
  width: 14px;
  height: 14px;
  flex: none;
}

.key-preview {
  display: grid;
  margin: 14px 0;
  padding: 13px;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.key-preview > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
}

.key-preview code {
  overflow-x: auto;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--brand-700);
  background: white;
  font: 10px/1.4 var(--font-mono);
  white-space: nowrap;
}

.key-preview small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.detail-panel-body > .button.full {
  margin-top: 16px;
}

@media (max-width: 390px) {
  .detail-panel {
    max-height: 88vh;
  }

  .detail-panel > header,
  .detail-panel-body {
    padding: 16px;
  }

  .detail-panel > header h2 {
    font-size: 17px;
  }

  .contact-details,
  .overlay-form-grid {
    grid-template-columns: 1fr;
  }

  .overlay-form-grid label.full {
    grid-column: auto;
  }

  .contact-details span {
    min-height: 39px;
  }

  .toggle-row {
    min-height: 58px;
    padding: 9px 10px;
    gap: 10px;
  }

  .workspace-overlay-card {
    padding: 13px;
  }

  .overlay-summary {
    grid-template-columns: 1fr;
  }

  .overlay-summary div {
    flex-direction: row;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .overlay-summary div:last-child {
    border-bottom: 0;
  }

  .overlay-option-list button {
    min-height: 54px;
  }
}

/* Official company, support, legal, and refund pages */

.official-page {
  min-height: calc(100vh - var(--header-height));
  padding-block: 66px 112px;
}

.official-hero {
  display: grid;
  max-width: 900px;
  padding-bottom: 44px;
  gap: 14px;
}

.official-eyebrow {
  color: var(--brand-600);
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.official-hero h1 {
  max-width: 850px;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 660;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.official-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.official-navigation {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}

.official-navigation a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-right: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 640;
  text-align: center;
  transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.official-navigation a:last-child {
  border-right: 0;
}

.official-navigation a:hover,
.official-navigation a:focus-visible,
.official-navigation a.active {
  color: var(--brand-700);
  background: var(--brand-50);
}

.official-navigation a.active {
  box-shadow: inset 0 -2px 0 var(--brand-600);
}

.official-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  margin-top: 62px;
  gap: 64px;
}

.official-toc {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.official-toc > span {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.official-toc button {
  width: 100%;
  padding: 8px 9px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  line-height: 1.45;
  text-align: left;
  transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.official-toc button:hover,
.official-toc button:focus-visible {
  color: var(--brand-700);
  background: white;
}

.official-content {
  min-width: 0;
}

.official-section {
  scroll-margin-top: calc(var(--header-height) + 24px);
  padding: 0 0 48px;
  border-bottom: 1px solid var(--border);
}

.official-section + .official-section {
  padding-top: 48px;
}

.official-section h2 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 660;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.official-section > p {
  max-width: 800px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.9;
}

.official-section > p + p {
  margin-top: 14px;
}

.official-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}

.official-detail-list > div {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.official-detail-list > div:nth-child(2n) {
  border-right: 0;
}

.official-detail-list > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.official-detail-list dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.official-detail-list dd,
.official-detail-list dd a {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.65;
}

.official-detail-list dd a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.official-detail-list dd a .icon {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 3px;
  color: var(--brand-600);
}

.official-item-list {
  display: grid;
  margin-top: 22px;
  gap: 10px;
  list-style: none;
}

.official-item-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 18px 20px;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
}

.official-item-list li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  color: var(--brand-700);
  background: var(--brand-50);
  font: 700 9px/1 var(--font-mono);
}

.official-item-list h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 660;
  line-height: 1.5;
}

.official-item-list p {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.official-page .back-to-home {
  margin-top: 42px;
}

/* Credits purchase and bank-transfer flow */

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-method-grid button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  min-height: 96px;
  align-items: center;
  padding: 15px;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--ink-soft);
  background: white;
  text-align: left;
  transition: color 150ms var(--ease-out), border-color 150ms var(--ease-out), background-color 150ms var(--ease-out), transform 150ms var(--ease-out);
}

.payment-method-grid button:hover,
.payment-method-grid button:focus-visible {
  border-color: var(--brand-400);
  color: var(--brand-700);
  background: var(--brand-50);
  transform: translateY(-2px);
}

.payment-method-grid button > .icon:first-child {
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 1px solid var(--brand-200);
  border-radius: 8px;
  background: white;
}

.payment-method-grid button > .icon:last-child {
  width: 15px;
  height: 15px;
}

.payment-method-grid button span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.payment-method-grid strong {
  font-size: 11px;
  font-weight: 670;
}

.payment-method-grid small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.payment-detail-panel {
  width: min(100%, 680px);
}

.payment-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 6px;
  color: var(--brand-700);
  background: transparent;
  font-size: 9px;
  font-weight: 650;
}

.payment-back .icon {
  width: 13px;
  height: 13px;
  transform: rotate(180deg);
}

.bank-transfer-details {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
}

.bank-transfer-details > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  border-bottom: 1px solid var(--border);
}

.bank-transfer-details > div:last-child {
  border-bottom: 0;
}

.bank-transfer-details dt,
.bank-transfer-details dd {
  min-width: 0;
  padding: 11px 13px;
  font-size: 9px;
  line-height: 1.6;
}

.bank-transfer-details dt {
  color: var(--muted);
  background: var(--surface);
  font-weight: 650;
}

.bank-transfer-details dd {
  overflow-wrap: anywhere;
  border-left: 1px solid var(--border);
  color: var(--ink);
  font-weight: 620;
}

.payment-transfer-notice,
.wallet-development-card {
  display: flex;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px;
  gap: 10px;
  border: 1px solid var(--brand-200);
  border-radius: 9px;
  color: var(--brand-800);
  background: var(--brand-50);
}

.payment-transfer-notice > .icon,
.wallet-development-card > .icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.payment-transfer-notice p,
.wallet-development-card p {
  font-size: 9px;
  line-height: 1.65;
}

.wallet-development-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.overlay-option-list > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink-soft);
  background: white;
  text-align: left;
  transition: color 150ms var(--ease-out), border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.overlay-option-list > a:hover,
.overlay-option-list > a:focus-visible {
  border-color: var(--brand-400);
  color: var(--brand-700);
  background: var(--brand-50);
}

.overlay-option-list > a > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.overlay-option-list > a strong {
  font-size: 11px;
  font-weight: 650;
}

.overlay-option-list > a small {
  color: var(--muted);
  font-size: 8px;
}

.overlay-option-list > a > .icon {
  width: 16px;
  height: 16px;
  flex: none;
}

@media (max-width: 760px) {
  .official-page {
    padding-block: 44px 76px;
  }

  .official-hero {
    padding-bottom: 30px;
  }

  .official-hero h1 {
    font-size: 34px;
  }

  .official-hero p {
    font-size: 12px;
  }

  .official-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .official-navigation a {
    min-height: 48px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 10px;
  }

  .official-navigation a:nth-child(2n) {
    border-right: 0;
  }

  .official-navigation a:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .official-layout {
    grid-template-columns: 1fr;
    margin-top: 34px;
    gap: 30px;
  }

  .official-toc {
    position: static;
    overflow-x: auto;
    flex-direction: row;
    padding: 8px;
  }

  .official-toc > span {
    display: none;
  }

  .official-toc button {
    width: auto;
    flex: none;
    white-space: nowrap;
  }

  .official-section {
    padding-bottom: 34px;
  }

  .official-section + .official-section {
    padding-top: 34px;
  }

  .official-section h2 {
    font-size: 21px;
  }

  .official-section > p,
  .official-item-list p {
    font-size: 12px;
  }

  .official-detail-list {
    grid-template-columns: 1fr;
  }

  .official-detail-list > div,
  .official-detail-list > div:nth-child(2n),
  .official-detail-list > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .official-detail-list > div:last-child {
    border-bottom: 0;
  }

  .official-item-list li {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 15px;
    gap: 10px;
  }

  .official-item-list li > span {
    width: 27px;
    height: 27px;
  }

  .payment-method-grid {
    grid-template-columns: 1fr;
  }

  .bank-transfer-details > div {
    grid-template-columns: 1fr;
  }

  .bank-transfer-details dt {
    padding-bottom: 5px;
  }

  .bank-transfer-details dd {
    padding-top: 5px;
    border-left: 0;
  }
}

/* Motion refinement — OpenRouter-informed, Exrouter-specific */

.button,
.outline-button,
.select-button,
.search-trigger,
.language-switch,
.personal-link,
.mobile-menu-button,
.mobile-filter-trigger,
.view-toggle button,
.detail-panel > header > button {
  transition: color var(--motion-control) var(--ease-out),
    background-color var(--motion-control) var(--ease-out),
    border-color var(--motion-control) var(--ease-out),
    transform var(--motion-press) var(--ease-out);
}

.button:active,
.outline-button:active,
.select-button:active,
.search-trigger:active,
.language-switch:active,
.personal-link:active,
.mobile-menu-button:active,
.mobile-filter-trigger:active,
.view-toggle button:active,
.detail-panel > header > button:active {
  transform: scale(0.98);
}

.feature-card,
.feature-visual {
  transition: border-color var(--motion-control) var(--ease-out),
    background-color var(--motion-control) var(--ease-out),
    transform var(--motion-control) var(--ease-out);
}

.app-card,
.resource-grid article {
  transition: border-color var(--motion-control) var(--ease-out),
    background-color var(--motion-control) var(--ease-out);
}

.feature-copy a .icon,
.section-heading > a .icon,
.panel-heading > a .icon,
.app-card > button .icon,
.resource-grid button .icon,
.back-to-home .icon {
  transition: transform var(--motion-control) var(--ease-out);
}

.model-row,
.model-table-row:not(.model-table-head),
.command-results a,
.filter-option-button {
  transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.search-overlay[data-motion-source="pointer"] {
  opacity: 0;
  transition: opacity 160ms var(--ease-out);
}

.search-overlay[data-motion-source="pointer"] .command-panel {
  opacity: 0;
  transform: translateY(-4px) scale(0.99);
  transform-origin: top center;
  transition: opacity 170ms var(--ease-out), transform 170ms var(--ease-out);
}

.search-overlay[data-motion-source="pointer"][data-motion-state="open"],
.search-overlay[data-motion-source="pointer"][data-motion-state="open"] .command-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.search-overlay[data-motion-source="pointer"][data-motion-state="closing"],
.search-overlay[data-motion-source="pointer"][data-motion-state="closing"] .command-panel {
  transition-duration: 140ms;
}

.mobile-nav {
  opacity: 0;
  transform: translateY(-6px);
  transform-origin: top center;
  transition: opacity 150ms var(--ease-out), transform 160ms var(--ease-out);
}

.mobile-nav[data-motion-state="open"] {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav[data-motion-state="closing"] {
  transition-duration: 120ms;
}

.orbital-models span {
  animation: exrouter-provider-float 4s var(--ease-in-out) infinite;
}

.orbital-models span:nth-child(2) { animation-delay: -0.32s; }
.orbital-models span:nth-child(3) { animation-delay: -0.64s; }
.orbital-models span:nth-child(4) { animation-delay: -0.96s; }
.orbital-models span:nth-child(5) { animation-delay: -1.28s; }
.orbital-models span:nth-child(6) { animation-delay: -1.6s; }
.orbital-models span:nth-child(7) { animation-delay: -1.92s; }
.orbital-models span:nth-child(8) { animation-delay: -2.24s; }
.orbital-models span:nth-child(9) { animation-delay: -2.56s; }
.orbital-models span:nth-child(10) { animation-delay: -2.88s; }
.orbital-models span:nth-child(11) { animation-delay: -3.2s; }
.orbital-models span:nth-child(12) { animation-delay: -3.52s; }

@keyframes exrouter-provider-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    border-color: var(--brand-200);
  }

  .feature-card:hover .feature-visual {
    transform: translateY(-3px) scale(1.02);
  }

  .feature-copy a:hover .icon,
  .section-heading > a:hover .icon,
  .panel-heading > a:hover .icon,
  .app-card > button:hover .icon,
  .resource-grid button:hover .icon {
    transform: translateX(2px);
  }

  .back-to-home:hover .icon {
    transform: translateX(-2px) rotate(180deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orbital-models span {
    animation: none;
  }

  .button:active,
  .outline-button:active,
  .select-button:active,
  .search-trigger:active,
  .language-switch:active,
  .personal-link:active,
  .mobile-menu-button:active,
  .mobile-filter-trigger:active,
  .view-toggle button:active,
  .detail-panel > header > button:active,
  .feature-card:hover .feature-visual,
  .search-overlay[data-motion-source="pointer"] .command-panel,
  .drawer-backdrop .filter-drawer,
  .detail-overlay .detail-panel,
  .sort-menu,
  .mobile-nav,
  .toast {
    transform: none !important;
  }

  .search-overlay[data-motion-source="pointer"],
  .search-overlay[data-motion-source="pointer"] .command-panel,
  .drawer-backdrop,
  .drawer-backdrop .filter-drawer,
  .detail-overlay,
  .detail-overlay .detail-panel,
  .sort-menu,
  .mobile-nav,
  .toast {
    transition-duration: 120ms;
  }
}
