:root {
  color-scheme: light;
  --paper: #f4f2ed;
  --surface: #fbfaf7;
  --white: #ffffff;
  --ink: #17191c;
  --ink-soft: #4f555d;
  --ink-faint: #626871;
  --line: #d8d5cd;
  --line-strong: #aaa69d;
  --accent: #2457d6;
  --accent-dark: #173fa8;
  --accent-pale: #e7edfc;
  --success: #1f6c4a;
  --success-pale: #e1f1e8;
  --warning: #8a4b12;
  --shadow-sm: 0 1px 2px rgba(26, 29, 35, 0.08), 0 1px 8px rgba(26, 29, 35, 0.04);
  --shadow-lg: 0 24px 64px rgba(26, 29, 35, 0.18), 0 4px 16px rgba(26, 29, 35, 0.08);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --font-sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(36, 87, 214, 0.32);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(170, 166, 157, 0.64);
  background: rgba(244, 242, 237, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wordmark-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.nav-link::after {
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 2px;
  background: var(--ink);
  content: "";
  opacity: 0;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active::after {
  opacity: 1;
}

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

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
}

.button-secondary:hover,
.button-quiet:hover {
  border-color: var(--line);
  background: var(--white);
}

.button-large {
  min-height: 48px;
  padding-inline: 24px;
  font-size: 16px;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 64px;
  align-items: end;
  padding: 96px 0 80px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.035em;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 650;
  line-height: 1.02;
}

.hero-lede {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.people-stack-showcase {
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
}

.people-stack-scroll {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}

.people-stack-scroll:hover .people-stack-track {
  animation-play-state: paused;
}

.people-stack-track {
  display: flex;
  width: max-content;
  animation: people-ticker 104.17s linear infinite;
  will-change: transform;
}

.people-stack-group {
  display: flex;
}

@keyframes people-ticker {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.people-stack-card {
  display: flex;
  width: 240px;
  min-height: 168px;
  flex: 0 0 240px;
  flex-direction: column;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-right: 0;
  background: rgba(255, 255, 255, 0.28);
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease;
}

.people-stack-card:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.people-stack-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.people-stack-person strong,
.people-stack-person small,
.people-stack-pairing strong,
.people-stack-pairing small {
  display: block;
}

.people-stack-person strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-name-row,
.person-handle-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.person-name-row .person-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-project-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 3px 7px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.creator-project-badge img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.creator-project-glyph {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1;
}

.creator-project-badge.is-compact {
  width: 18px;
  height: 18px;
  padding: 1px;
  border-radius: 5px;
}

.creator-project-badge.is-compact img {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.creator-project-badge.is-compact .creator-project-glyph {
  width: 14px;
  height: 14px;
  font-size: 11px;
}

.creator-project-badge.is-compact .creator-project-label {
  display: none;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-title-row h1 {
  margin: 0;
}

.people-stack-person > span:last-child {
  min-width: 0;
}

.person-handle-row {
  margin-top: 2px;
  gap: 4px;
}

.people-stack-person small,
.people-stack-pairing small {
  color: var(--ink-faint);
  font-size: 10px;
}

.people-stack-pairing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.people-stack-list {
  display: grid;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.people-stack-pairing:last-child {
  border-bottom: 0;
}

.people-stack-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.people-stack-times {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

.people-stack-pairing .brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.people-stack-pairing .brand-icon img {
  width: 16px;
  height: 16px;
}

.people-stack-pairing strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-link {
  margin-top: auto;
  padding-top: 12px;
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link,
.back-link {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.text-link:hover,
.back-link:hover {
  border-bottom-color: currentColor;
}

.signal-panel {
  padding: 24px 0 0 32px;
  border-top: 2px solid var(--ink);
  border-left: 1px solid var(--line);
}

.signal-primary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 32px;
}

.signal-value {
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.signal-label {
  color: var(--ink-soft);
  font-size: 14px;
}

.signal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
}

.signal-stats div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.signal-stats dt {
  min-height: 40px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.4;
}

.signal-stats dd {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 650;
}

.signal-note {
  margin: 24px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.5;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.rankings-heading {
  padding: 48px 0 24px;
  border-top: 1px solid var(--line-strong);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.2;
}

.section-heading .section-kicker {
  margin-bottom: 8px;
}

.heading-note {
  max-width: 44ch;
  margin: 0;
  color: var(--ink-faint);
  font-size: 14px;
  text-align: right;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  padding-bottom: 96px;
}

.ranking-main {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.toolbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.toolbar-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.segmented-control {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.4);
}

.segmented-control button {
  min-height: 32px;
  padding: 4px 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.segmented-control button.is-active {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.filters {
  display: flex;
  gap: 8px;
}

select,
input[type="search"],
.form-control {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
}

select {
  padding: 8px 32px 8px 12px;
}

.ranking-table-wrap {
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table th {
  padding: 12px 8px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.ranking-table th:first-child,
.ranking-table td:first-child {
  padding-left: 0;
}

.ranking-table th:last-child,
.ranking-table td:last-child {
  padding-right: 0;
}

.ranking-table tbody tr {
  border-top: 1px solid var(--line);
  transition: background 160ms ease;
}

.ranking-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.48);
}

.ranking-table td {
  padding: 16px 8px;
  vertical-align: middle;
}

.rank-cell {
  width: 48px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 14px;
}

.model-identity {
  display: flex;
  min-width: 220px;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.brand-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.brand-icon-large {
  width: 56px;
  height: 56px;
}

.brand-icon-large img {
  width: 28px;
  height: 28px;
}

.harness-brand {
  background: #eeece6;
}

.harness-claude-code,
.harness-claude-desktop {
  background: #fbf1ec;
}

.harness-codex,
.harness-codex-app {
  background: #f2f7f5;
}

.harness-gemini-cli,
.harness-antigravity {
  background: #f0f4ff;
}

.harness-kimi-app {
  border-color: #17191d;
  background: #17191d;
}

.harness-self-hosted {
  background: #eef0f2;
}

.harness-copilot {
  background: #f6f0ff;
}

.harness-amp {
  background: #fff1ef;
}

.harness-cursor,
.harness-opencode,
.harness-windsurf,
.harness-cline,
.harness-roo-code {
  background: var(--white);
}

.stack-identity {
  display: flex;
  min-width: 440px;
  align-items: center;
  gap: 16px;
}

.stack-identity.is-compact {
  min-width: 400px;
  gap: 12px;
}

.ranking-table .stack-identity.is-compact,
.stack-column-heading-grid {
  display: grid;
  min-width: 440px;
  grid-template-columns: minmax(200px, 1.05fr) 24px minmax(180px, 0.95fr);
  gap: 8px;
  align-items: center;
}

.ranking-table .stack-side {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
}

.ranking-table .stack-times {
  text-align: center;
}

.stack-column-heading-grid > span {
  text-align: center;
}

.stack-column-heading-grid > span:nth-child(2) {
  color: var(--line-strong);
  font-weight: 500;
}

.stack-side {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.stack-side > span:last-child {
  min-width: 0;
}

.stack-side strong,
.stack-side small {
  display: block;
  white-space: nowrap;
}

.stack-side strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
}

.stack-side small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 11px;
}

.stack-times {
  color: var(--line-strong);
  font-family: var(--font-mono);
  font-size: 14px;
}

.model-glyph {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.model-identity strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}

.model-identity span {
  display: block;
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 12px;
}

.number-cell {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.share-cell {
  min-width: 136px;
}

.share-track {
  width: 88px;
  height: 4px;
  margin-left: auto;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.share-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.share-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.rating-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.change-cell {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 650;
}

.rating-value span {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 500;
}

.row-action {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  font-size: 18px;
}

.ranking-table tr:hover .row-action {
  border-color: var(--line);
  background: var(--surface);
}

.table-footnote {
  margin: 16px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
}

.insight-rail {
  padding-top: 24px;
}

.insight-block {
  padding: 0 0 32px;
  border-bottom: 1px solid var(--line);
}

.insight-block + .insight-block {
  padding-top: 32px;
}

.insight-block h3 {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.2;
}

.insight-block p:not(.section-kicker) {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.trait-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.trait-row span {
  font-weight: 600;
}

.trait-row strong {
  font-family: var(--font-mono);
  font-size: 20px;
}

.page-shell {
  padding-top: 64px;
  padding-bottom: 96px;
}

.page-intro h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 650;
  line-height: 1.05;
}

.page-intro p:not(.eyebrow) {
  max-width: 60ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.split-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-strong);
}

.search-field {
  position: relative;
  display: block;
  flex: 0 0 320px;
}

.search-field svg {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink-faint);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-field input {
  width: 100%;
  padding: 8px 16px 8px 40px;
}

.catalog-filters {
  display: flex;
  gap: 8px;
  padding: 24px 0;
  overflow-x: auto;
}

.catalog-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink-faint);
  font-size: 12px;
}

.catalog-source a {
  color: var(--ink-soft);
  font-weight: 600;
  text-underline-offset: 2px;
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.sync-dot.is-live {
  background: var(--success);
}

.sync-dot.is-offline {
  background: var(--warning);
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.model-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.model-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  min-height: 216px;
  padding: 24px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition: background 160ms ease;
}

.model-card:hover {
  background: var(--surface);
}

.model-card h2 {
  margin: 16px 0 4px;
  font-size: 20px;
  font-weight: 650;
}

.model-card .provider {
  display: block;
  color: var(--ink-faint);
  font-size: 12px;
}

.model-card .meta {
  display: block;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.model-arrow {
  align-self: start;
  font-size: 20px;
  transition: transform 160ms ease;
}

.model-card:hover .model-arrow {
  transform: translateX(4px);
}

.model-score {
  align-self: start;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 650;
}

.model-score small {
  display: block;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.people-toolbar {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-strong);
}

.people-page-shell {
  padding-top: 48px;
  padding-bottom: 80px;
}

.people-intro {
  align-items: center;
  padding-bottom: 32px;
}

.people-intro > div {
  min-width: 0;
}

.people-search {
  flex-basis: 360px;
}

.people-search input {
  min-height: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.people-search svg {
  top: 14px;
}

.directory-note {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.directory-note span {
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.directory-note p {
  max-width: 72ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.people-toolbar p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 14px;
}

.people-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-size: 12px;
}

.people-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.person-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition: background 160ms ease;
}

.person-row:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.person-row:hover {
  background: rgba(255, 255, 255, 0.32);
}

.person-row:hover .person-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.person-row .avatar {
  width: 44px;
  height: 44px;
}

.avatar {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  font-size: 14px;
  font-weight: 650;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-large {
  width: 56px;
  height: 56px;
  font-size: 16px;
}

.person-name {
  display: block;
  font-size: 16px;
  font-weight: 650;
}

.person-meta,
.person-driver {
  display: block;
  color: var(--ink-faint);
  font-size: 12px;
}

.person-driver {
  margin-top: 4px;
}

.person-driver > span {
  margin-right: 4px;
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.person-copy {
  min-width: 0;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
}

.submission-badge {
  display: inline-flex;
  min-height: 20px;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 2px 3px;
  border: 1px solid #b7c6eb;
  border-radius: 999px;
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.submission-check {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 9px;
  line-height: 1;
}

.submission-badge.is-compact {
  min-height: 16px;
  gap: 3px;
  padding: 1px 4px 1px 2px;
  font-size: 7px;
}

.submission-badge.is-compact .submission-check {
  width: 12px;
  height: 12px;
  font-size: 8px;
}

.access-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

.target-state {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.target-state small {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.person-focus {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.detail-shell {
  padding-top: 48px;
  padding-bottom: 96px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line-strong);
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-title-row .model-glyph {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.detail-title-row .brand-icon-large {
  flex: 0 0 auto;
}

.detail-hero h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 650;
  line-height: 1.1;
}

.detail-subtitle {
  margin: 8px 0 0 72px;
  color: var(--ink-soft);
}

.detail-actions {
  display: flex;
  align-items: start;
  justify-content: flex-end;
  gap: 8px;
}

.proof-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 12px;
}

.proof-line::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.proof-line.is-unclaimed::before {
  background: var(--ink-faint);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  padding-top: 48px;
}

.detail-section + .detail-section {
  margin-top: 64px;
}

.detail-section h2 {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 650;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.metric-strip div {
  padding: 24px 16px;
  border-right: 1px solid var(--line);
}

.metric-strip div:first-child {
  padding-left: 0;
}

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

.metric-strip span {
  display: block;
  color: var(--ink-faint);
  font-size: 12px;
}

.metric-strip strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 24px;
}

.score-list {
  margin: 0;
}

.score-row {
  display: grid;
  grid-template-columns: 112px minmax(120px, 1fr) 40px;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.score-row dt {
  color: var(--ink-soft);
  font-size: 14px;
}

.score-row dd {
  margin: 0;
}

.score-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}

.score-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}

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

.pairing-row {
  display: grid;
  grid-template-columns: 220px minmax(120px, 1fr) 48px;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.pairing-name,
.aside-harness {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pairing-name strong,
.pairing-name small {
  display: block;
}

.pairing-name strong {
  font-size: 14px;
}

.pairing-name small {
  color: var(--ink-faint);
  font-size: 11px;
}

.pairing-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.pairing-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}

.pairing-value {
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}

.aside-harness h3,
.aside-harness p {
  margin: 0;
}

.inline-link {
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
}

.profile-stack-feature {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.profile-stack-feature .stack-identity {
  min-width: 0;
}

.person-detail-shell {
  padding-top: 32px;
  padding-bottom: 80px;
}

.person-detail-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 32px 0 40px;
}

.person-profile-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 24px;
}

.person-profile-heading .avatar-large {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
}

.person-profile-heading .eyebrow {
  margin-bottom: 4px;
}

.person-profile-heading h1 {
  font-size: 42px;
}

.person-profile-heading .detail-subtitle {
  margin: 4px 0 0;
}

.profile-submission {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.person-detail-hero .detail-actions {
  align-items: center;
}

.person-detail-grid {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  padding-top: 40px;
}

.person-detail-grid .detail-section + .detail-section {
  margin-top: 48px;
}

.person-detail-grid .profile-stack-feature {
  overflow: hidden;
  padding: 32px;
  border-color: var(--tone-border, var(--line-strong));
  background: var(--tone-soft, var(--surface));
}

.person-detail-grid .profile-stack-feature::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--tone-strong, var(--ink));
  content: "";
}

.primary-stack-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 8px;
  border: 1px solid var(--tone-border, var(--line));
  border-radius: 999px;
  color: var(--tone-strong, var(--ink-soft));
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--tone-border, var(--line)) 42%, transparent);
}

.profile-access-grid > div {
  min-width: 0;
  padding: 0 16px;
  border-right: 1px solid color-mix(in srgb, var(--tone-border, var(--line)) 32%, transparent);
}

.profile-access-grid > div:first-child {
  padding-left: 0;
}

.profile-access-grid > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.profile-access-grid span,
.profile-access-grid strong {
  display: block;
}

.profile-access-grid span {
  color: var(--ink-faint);
  font-size: 11px;
}

.profile-access-grid strong {
  overflow: hidden;
  margin-top: 4px;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-extra-stacks {
  border-top: 1px solid var(--ink);
}

.profile-extra-stack {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.profile-extra-stack .stack-identity {
  min-width: 0;
}

.extra-stack-rank {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
}

.access-detail-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.access-detail-card > div {
  padding: 24px 16px;
  border-right: 1px solid var(--line);
}

.access-detail-card > div:first-child {
  padding-left: 0;
}

.access-detail-card > div:last-child {
  border-right: 0;
}

.access-detail-card span,
.access-detail-card strong {
  display: block;
}

.access-detail-card span {
  color: var(--ink-faint);
  font-size: 11px;
}

.access-detail-card strong {
  margin-top: 8px;
  font-size: 16px;
}

.detail-aside {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.detail-aside-block {
  padding-bottom: 32px;
}

.detail-aside-block + .detail-aside-block {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.detail-aside-block h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 650;
}

.detail-aside-block p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.profile-related {
  padding-left: 24px;
}

.related-people {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.related-person {
  display: grid;
  width: 100%;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.related-person:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related-person .avatar {
  width: 36px;
  height: 36px;
}

.related-person strong,
.related-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-person strong {
  font-size: 13px;
}

.related-person small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10px;
}

.profile-source-link {
  display: grid;
  gap: 4px;
}

.profile-source-link > span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-source-link .text-link {
  justify-self: start;
}

.stack-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.stack-list-copy {
  flex: 1;
  min-width: 0;
}

.stack-rank {
  width: 24px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
}

.stack-list strong {
  display: block;
  font-size: 14px;
}

.stack-list small {
  color: var(--ink-faint);
  font-size: 11px;
}

.site-footer {
  border-top: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  display: flex;
  min-height: 192px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.footer-mark {
  font-size: 20px;
  font-weight: 700;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #b8bcc3;
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links button,
.footer-links span {
  padding: 0;
  border: 0;
  background: transparent;
  color: #cfd2d7;
  font-size: 12px;
}

.footer-links button:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-links span {
  color: #8c9199;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 19, 22, 0.64);
  backdrop-filter: blur(4px);
}

.join-modal {
  position: relative;
  display: flex;
  width: min(100%, 560px);
  max-height: 88vh;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.join-modal.is-wide {
  width: min(100%, 920px);
}

#join-content {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--line);
  background: var(--white);
}

.join-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 24px 64px 0 32px;
}

.join-body-wide {
  padding-inline: 32px;
}

.popular-stack-picker {
  margin-top: 24px;
}

.popular-stack-heading,
.stack-builder-label {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.popular-stack-heading span,
.stack-builder-label span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.popular-stack-heading p {
  margin: 2px 0 0;
  color: var(--ink-faint);
  font-size: 10px;
}

.popular-stack-heading small,
.stack-builder-label small {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.popular-stack-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.popular-stack-option {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--tone-soft, var(--white));
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease;
}

.popular-stack-option:hover {
  border-color: var(--tone-border, var(--line-strong));
  background: var(--tone-hover, var(--paper));
}

.popular-stack-option.is-selected {
  border-color: var(--tone-border, var(--accent));
  background: var(--tone-selected, var(--accent-pale));
}

.popular-stack-icons {
  display: flex;
  align-items: center;
}

.popular-stack-icons .brand-icon {
  width: 32px;
  height: 32px;
}

.popular-stack-icons .brand-icon + .brand-icon {
  margin-left: -8px;
  border-color: var(--line-strong);
}

.popular-stack-icons .brand-icon img {
  width: 17px;
  height: 17px;
}

.popular-stack-copy,
.popular-stack-copy strong,
.popular-stack-copy small {
  display: block;
  min-width: 0;
}

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

.popular-stack-copy strong {
  font-size: 11px;
}

.popular-stack-copy small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 9px;
}

.popular-stack-option.is-selected .selection-mark {
  border-color: var(--tone-strong, var(--accent));
  background: var(--tone-strong, var(--accent));
  color: var(--white);
}

.stack-builder-label {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

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

.tone-openai {
  --tone-soft: #f5f8ff;
  --tone-hover: #edf3ff;
  --tone-selected: #e2ebff;
  --tone-border: #5d83dc;
  --tone-strong: #2457d6;
}

.tone-anthropic {
  --tone-soft: #fff8f5;
  --tone-hover: #fdf1eb;
  --tone-selected: #fae6dc;
  --tone-border: #d97757;
  --tone-strong: #bd5f42;
}

.tone-google {
  --tone-soft: #f6f9ff;
  --tone-hover: #eef4ff;
  --tone-selected: #e4edff;
  --tone-border: #5b86e5;
  --tone-strong: #3f6fd1;
}

.tone-moonshotai {
  --tone-soft: #f5faf9;
  --tone-hover: #edf6f4;
  --tone-selected: #e0f0ec;
  --tone-border: #5b8c82;
  --tone-strong: #3c7168;
}

.tone-zhipuai {
  --tone-soft: #f4f7ff;
  --tone-hover: #eaf0ff;
  --tone-selected: #dde7ff;
  --tone-border: #6684c4;
  --tone-strong: #4969aa;
}

.tone-alibaba {
  --tone-soft: #faf7ff;
  --tone-hover: #f3edff;
  --tone-selected: #ebe1ff;
  --tone-border: #8a67d5;
  --tone-strong: #6f4eb9;
}

.tone-mistral {
  --tone-soft: #fff8f3;
  --tone-hover: #fff0e6;
  --tone-selected: #ffe5d5;
  --tone-border: #ed7a3a;
  --tone-strong: #cf5f23;
}

.tone-deepseek,
.tone-xai,
.tone-cursor,
.tone-opencode,
.tone-cline,
.tone-roo-code,
.tone-windsurf {
  --tone-soft: #fafafa;
  --tone-hover: #f3f3f1;
  --tone-selected: #eaeae7;
  --tone-border: #777771;
  --tone-strong: #252523;
}

.tone-self-hosted {
  --tone-soft: #f6f7f8;
  --tone-hover: #eff1f3;
  --tone-selected: #e5e8eb;
  --tone-border: #7b828a;
  --tone-strong: #454b52;
}

.tone-nvidia {
  --tone-soft: #f7fbf1;
  --tone-hover: #eef7e3;
  --tone-selected: #e3f1d2;
  --tone-border: #76a936;
  --tone-strong: #5d8b24;
}

.tone-copilot {
  --tone-soft: #faf7ff;
  --tone-hover: #f4edff;
  --tone-selected: #ebdfff;
  --tone-border: #8b68d4;
  --tone-strong: #704bb8;
}

.picker-column {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.picker-column legend {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.picker-section-label {
  margin: 0 0 8px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quick-model-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-model-option {
  display: grid;
  min-width: 0;
  min-height: 56px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--tone-soft, var(--white));
  text-align: left;
}

.quick-model-option:hover {
  border-color: var(--tone-border, var(--line-strong));
  background: var(--tone-hover, var(--white));
}

.quick-model-option.is-selected {
  border-color: var(--tone-border, var(--accent));
  background: var(--tone-selected, var(--accent-pale));
}

.quick-model-option .brand-icon {
  width: 32px;
  height: 32px;
}

.quick-model-option .brand-icon img {
  width: 18px;
  height: 18px;
}

.quick-model-option strong,
.quick-model-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-model-option strong {
  font-size: 11px;
}

.quick-model-option small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 9px;
}

.quick-model-option.is-selected .selection-mark {
  border-color: var(--tone-strong, var(--accent));
  background: var(--tone-strong, var(--accent));
  color: var(--white);
}

.more-models {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.more-models summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
}

.more-models summary::-webkit-details-marker {
  display: none;
}

.more-models summary span {
  font-size: 12px;
  font-weight: 650;
}

.more-models summary small {
  color: var(--ink-faint);
  font-size: 9px;
}

.model-picker-search {
  display: block;
  margin-bottom: 8px;
}

.model-picker-search input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--white);
  font: inherit;
  font-size: 12px;
}

.more-model-options {
  max-height: 184px;
}

.model-picker-empty {
  margin: 0;
  padding: 16px;
  color: var(--ink-faint);
  font-size: 11px;
  text-align: center;
}

.picker-options {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.picker-option {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--tone-soft, transparent);
  text-align: left;
}

.picker-option:last-child {
  border-bottom: 0;
}

.picker-option:hover {
  background: var(--tone-hover, var(--paper));
}

.picker-option.is-selected {
  background: var(--tone-selected, var(--accent-pale));
}

.picker-option .brand-icon {
  width: 36px;
  height: 36px;
}

.picker-option .brand-icon img {
  width: 20px;
  height: 20px;
}

.picker-option strong,
.picker-option small {
  display: block;
}

.picker-option strong {
  font-size: 13px;
}

.picker-option small {
  color: var(--ink-faint);
  font-size: 10px;
}

.selection-mark {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
  font-size: 11px;
}

.picker-option.is-selected .selection-mark {
  border-color: var(--tone-strong, var(--accent));
  background: var(--tone-strong, var(--accent));
  color: var(--white);
}

.stack-selection-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 16px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.stack-selection-preview > span:first-child {
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stack-selection-preview .stack-identity {
  min-width: 0;
}

.access-builder {
  margin-top: 32px;
}

.access-mode-picker {
  margin: 0;
  padding: 0;
  border: 0;
}

.access-mode-picker legend,
.plan-select > span {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.access-mode-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.access-mode-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  min-height: 80px;
  padding: 16px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.access-mode-option:last-child {
  border-right: 0;
}

.access-mode-option:hover {
  background: var(--paper);
}

.access-mode-option.is-selected {
  background: var(--accent-pale);
}

.access-radio {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.access-mode-option.is-selected .access-radio {
  border: 5px solid var(--accent);
  background: var(--white);
}

.access-mode-option strong,
.access-mode-option small {
  display: block;
}

.access-mode-option strong {
  font-size: 12px;
}

.access-mode-option small {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 10px;
}

.plan-select {
  display: block;
  margin-top: 24px;
}

.plan-select > span,
.plan-select small {
  display: block;
}

.plan-select select {
  width: 100%;
  min-height: 44px;
  border-color: var(--line-strong);
  background-color: var(--white);
}

.plan-select small {
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 10px;
}

.api-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--white);
}

.api-note .access-dot {
  margin-top: 7px;
}

.api-note strong,
.api-note p {
  display: block;
  margin: 0;
}

.api-note p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

.access-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.access-summary span,
.access-summary small {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.access-summary strong {
  font-size: 14px;
}

.join-progress span {
  height: 3px;
  background: var(--line);
}

.join-progress span.is-active {
  background: var(--accent);
}

.join-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 48px 48px 32px;
}

.join-step-label {
  margin: 0 0 8px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.join-body h2 {
  margin-bottom: 16px;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.15;
}

.join-body > p:not(.join-step-label) {
  max-width: 48ch;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.join-form {
  margin-top: 32px;
}

.form-group + .form-group {
  margin-top: 24px;
}

.form-group label,
.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
}

.choice-list {
  display: grid;
  gap: 8px;
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.choice-row:hover {
  border-color: var(--line-strong);
}

.choice-row input {
  accent-color: var(--accent);
}

.choice-row strong {
  display: block;
  font-size: 14px;
}

.choice-row small {
  display: block;
  color: var(--ink-faint);
  font-size: 11px;
}

.passkey-visual {
  display: grid;
  width: 80px;
  height: 80px;
  margin: 32px 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 24px;
  box-shadow: var(--shadow-sm);
}

.trust-note {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  border-left: 2px solid var(--success);
  background: var(--success-pale);
  color: #214936;
  font-size: 12px;
  line-height: 1.6;
}

.range-row {
  display: grid;
  grid-template-columns: 96px 1fr 32px;
  gap: 16px;
  align-items: center;
  padding: 8px 0;
}

.range-row label {
  color: var(--ink-soft);
  font-size: 12px;
}

.range-row input {
  width: 100%;
  accent-color: var(--accent);
}

.range-row output {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}

.proof-preview {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 14px;
  line-height: 1.7;
}

.proof-preview code {
  display: block;
  margin-top: 16px;
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-all;
}

.join-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 48px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.join-footer .button-primary {
  margin-left: auto;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 64px 24px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.empty-state p {
  max-width: 44ch;
  margin: 0 auto;
  color: var(--ink-faint);
  font-size: 14px;
}

@media (max-width: 960px) {
  .desktop-nav,
  .desktop-only {
    display: none;
  }

  .menu-button {
    display: grid;
    width: 40px;
    height: 40px;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: transparent;
  }

  .menu-button span {
    display: block;
    width: 16px;
    height: 1px;
    background: var(--ink);
  }

  .mobile-nav {
    padding: 8px 24px 24px;
    border-top: 1px solid var(--line);
  }

  .mobile-nav:not([hidden]) {
    display: grid;
  }

  .mobile-nav button {
    min-height: 48px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
  }

  .hero-grid,
  .detail-hero,
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .signal-panel {
    max-width: 560px;
  }

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

  .insight-rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid var(--line);
  }

  .insight-block + .insight-block {
    padding-top: 0;
  }

  .detail-actions {
    justify-content: flex-start;
  }

  .detail-aside {
    padding: 32px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .modal-backdrop {
    padding: 16px;
  }

  .join-modal {
    max-height: calc(100dvh - 32px);
  }

  .join-progress {
    padding: 20px 56px 0 20px;
  }

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

  .header-inner {
    min-height: 64px;
  }

  .header-actions > .button-primary {
    display: none;
  }

  .hero-grid {
    padding: 64px 0;
  }

  .people-stack-showcase {
    padding-top: 24px;
  }

  .people-stack-card {
    width: 224px;
    flex-basis: 224px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-actions,
  .section-heading,
  .toolbar,
  .split-intro,
  .people-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .heading-note {
    text-align: left;
  }

  .filters {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 16px;
  }

  .filters select {
    width: 100%;
  }

  .ranking-table-wrap {
    overflow-x: visible;
  }

  .ranking-table,
  .ranking-table tbody {
    display: block;
    width: 100%;
  }

  .ranking-table thead {
    display: none;
  }

  .ranking-table tbody tr {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 56px 32px;
    gap: 8px;
    align-items: start;
    padding: 16px 0;
  }

  .ranking-table td,
  .ranking-table td:first-child,
  .ranking-table td:last-child {
    padding: 0;
  }

  .ranking-table td:nth-child(2) {
    min-width: 0;
  }

  .ranking-table .rank-cell {
    width: 28px;
  }

  .ranking-table th:nth-child(4),
  .ranking-table td:nth-child(4),
  .ranking-table th:nth-child(5),
  .ranking-table td:nth-child(5) {
    display: none;
  }

  .ranking-table .stack-identity.is-compact {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .ranking-table .stack-side {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
  }

  .ranking-table .stack-side .brand-icon {
    width: 32px;
    height: 32px;
  }

  .ranking-table .stack-side .brand-icon img {
    width: 18px;
    height: 18px;
  }

  .ranking-table .stack-side strong {
    font-size: 12px;
  }

  .ranking-table .stack-side small {
    font-size: 10px;
  }

  .ranking-table .stack-times {
    display: none;
  }

  .ranking-table .share-cell {
    min-width: 0;
  }

  .ranking-table .share-track {
    width: 48px;
  }

  .ranking-table .row-action {
    margin-top: 8px;
  }

  .insight-rail,
  .model-catalog,
  .people-list {
    grid-template-columns: 1fr;
  }

  .model-card {
    min-height: 168px;
    padding: 24px;
  }

  .model-card h2 {
    margin-top: 12px;
  }

  .model-card .meta {
    margin-top: 12px;
  }

  .insight-block {
    padding-top: 24px !important;
  }

  .split-intro {
    gap: 32px;
  }

  .search-field {
    flex-basis: auto;
    width: 100%;
  }

  .person-row:nth-child(odd),
  .person-row:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .directory-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .person-row {
    grid-template-columns: auto minmax(0, 1fr);
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .target-state {
    display: none;
  }

  .directory-note {
    display: none;
  }

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

  .access-detail-card,
  .access-mode-options {
    grid-template-columns: 1fr;
  }

  .access-detail-card > div,
  .access-detail-card > div:first-child {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .access-mode-option {
    min-height: 64px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .access-mode-option:last-child {
    border-bottom: 0;
  }

  .access-summary {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .stack-builder {
    grid-template-columns: 1fr;
  }

  .popular-stack-options {
    grid-template-columns: 1fr;
  }

  .popular-stack-heading,
  .stack-builder-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .stack-selection-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .stack-selection-preview .stack-identity,
  .profile-stack-feature .stack-identity,
  .profile-extra-stack .stack-identity {
    width: 100%;
    flex-wrap: wrap;
  }

  .person-profile-heading {
    align-items: flex-start;
    gap: 16px;
  }

  .person-profile-heading .avatar-large {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .person-profile-heading h1 {
    font-size: 36px;
  }

  .person-detail-hero .detail-actions .button {
    flex: 1 1 0;
  }

  .person-detail-grid .profile-stack-feature {
    padding: 24px;
  }

  .person-detail-grid .section-heading {
    gap: 8px;
  }

  .pairing-row {
    grid-template-columns: 1fr 40px;
    gap: 12px;
  }

  .pairing-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .metric-strip div,
  .metric-strip div:first-child {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .join-body {
    padding: 40px 20px 24px;
  }

  .join-footer {
    padding: 16px 20px;
  }

  .join-footer .button {
    min-height: 44px;
  }

  .range-row {
    grid-template-columns: 80px 1fr 32px;
    gap: 8px;
  }
}

@media (min-width: 521px) and (max-width: 720px) {
  .stack-builder,
  .popular-stack-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-mode-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .access-mode-option {
    min-height: 72px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .access-mode-option:last-child {
    border-right: 0;
  }

  .access-summary {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .profile-access-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
    padding-top: 8px;
  }

  .profile-access-grid > div,
  .profile-access-grid > div:first-child,
  .profile-access-grid > div:last-child {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--tone-border, var(--line)) 32%, transparent);
  }

  .profile-access-grid > div:last-child {
    border-bottom: 0;
  }

  .profile-access-grid strong {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}
