:root {
  color-scheme: light;
  --ink: #191b1c;
  --muted: #6d736f;
  --faint: #929893;
  --canvas: #eceeeb;
  --surface: #ffffff;
  --surface-soft: #f6f7f5;
  --line: #d6dad6;
  --line-strong: #b8bdb8;
  --accent: #d34838;
  --accent-soft: #f8e9e6;
  --green: #187d68;
  --blue: #3d68ba;
  --sans: "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

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

.app {
  width: min(1540px, 100%);
  margin: 0 auto;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.mast {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.85fr) 260px;
  min-height: 116px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand-block,
.mast-manifesto,
.mast-readout {
  min-width: 0;
  padding: 22px 26px;
}

.brand-block {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  column-gap: 18px;
  border-right: 1px solid var(--line);
}

.brand-block p {
  grid-column: 1 / -1;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.brand-block h1 {
  font-size: 34px;
  font-weight: 680;
  line-height: 1;
}

.brand-block span {
  align-self: end;
  color: var(--muted);
  font-size: 13px;
}

.mast-manifesto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.mast-manifesto strong {
  font-size: 20px;
  font-weight: 620;
  line-height: 1.25;
}

.mast-manifesto p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.mast-readout {
  display: grid;
  align-content: center;
  background: var(--surface-soft);
}

.mast-readout span,
.mast-readout small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.mast-readout strong {
  margin: 7px 0;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 650;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.signal-block {
  min-width: 0;
  min-height: 108px;
  padding: 18px 20px;
  overflow: hidden;
  background: var(--surface-soft);
  border-right: 1px solid var(--line);
}

.signal-block:last-child {
  border-right: 0;
}

.signal-block span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.signal-block strong {
  display: block;
  margin: 8px 0 6px;
  font-family: var(--mono);
  font-size: 29px;
  font-weight: 620;
  line-height: 1;
}

.signal-block:first-child strong,
.signal-block:last-child strong {
  color: var(--accent);
}

.signal-block p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.switchboard {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.switchboard-head {
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(670px, 1.2fr);
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

.switchboard-head > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 26px;
  border-right: 1px solid var(--line);
}

.switchboard-head p,
.section-head p,
.event-band > header p {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.switchboard-head h2,
.section-head h2,
.event-band > header h2 {
  font-size: 22px;
  font-weight: 620;
  line-height: 1.2;
}

.metric-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(108px, 1fr));
  min-width: 0;
  overflow-x: auto;
  background: var(--surface);
}

.metric-tab {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 103px;
  padding: 13px 14px;
  cursor: pointer;
  background: var(--surface);
  border-right: 1px solid var(--line);
  text-align: left;
}

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

.metric-tab:hover {
  background: var(--surface-soft);
}

.metric-tab[data-active="true"] {
  box-shadow: inset 0 -3px 0 var(--accent);
  background: var(--accent-soft);
}

.metric-tab span,
.metric-tab small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.metric-tab strong {
  align-self: center;
  font-size: 15px;
  font-weight: 620;
}

.scoreboard {
  display: grid;
  grid-template-columns: 220px minmax(540px, 1fr) 330px;
  min-height: 702px;
}

.metric-hero {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  background: var(--surface-soft);
  border-right: 1px solid var(--line);
}

.metric-code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
}

.metric-direction {
  align-self: flex-start;
  margin-top: 12px;
  padding: 4px 7px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 650;
}

.metric-hero h3 {
  margin-top: 28px;
  font-size: 26px;
  font-weight: 650;
}

.metric-full-name,
.metric-description {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.hero-value {
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-value span,
.coverage-readout span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.hero-value strong {
  display: block;
  margin: 8px 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
}

.hero-value p {
  min-height: 34px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.coverage-readout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 22px;
}

.coverage-readout strong {
  font-family: var(--mono);
  font-size: 13px;
}

.coverage-readout i {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  background: var(--line);
  border-radius: 3px;
}

.coverage-readout i::after {
  display: block;
  width: var(--coverage);
  height: 100%;
  content: "";
  background: var(--ink);
}

.metric-description {
  margin-top: auto;
  padding-top: 24px;
}

.raw-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

.raw-link:hover {
  text-decoration: underline;
}

.metric-hero > small {
  margin-top: 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.ranking-panel {
  min-width: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.ranking-head,
.ranking-row {
  display: grid;
  grid-template-columns: 56px minmax(180px, 1fr) minmax(130px, 0.7fr) 82px;
  align-items: center;
}

.ranking-head {
  min-height: 40px;
  padding-right: 14px;
  color: var(--muted);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 650;
}

.ranking-head span:first-child {
  grid-column: 1 / 3;
  padding-left: 16px;
}

.ranking-head span:nth-child(2) {
  grid-column: 3;
}

.ranking-head span:last-child {
  grid-column: 4;
  text-align: right;
}

.ranking-row {
  width: 100%;
  min-height: 51px;
  padding-right: 14px;
  cursor: pointer;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.ranking-row:hover {
  background: var(--surface-soft);
}

.ranking-row[data-active="true"] {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.ranking-row[data-missing="true"] {
  color: var(--faint);
  background: #fafbfa;
}

.row-rank {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
}

.row-model {
  display: grid;
  grid-template-columns: 7px 1fr;
  min-width: 0;
  padding: 6px 12px 6px 0;
}

.row-model i {
  grid-row: 1 / 3;
  align-self: stretch;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.row-model strong,
.row-model small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-model strong {
  font-size: 14px;
  font-weight: 620;
}

.row-model small,
.row-bar small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.row-bar {
  display: grid;
  gap: 5px;
}

.row-bar > i {
  display: block;
  height: 5px;
  overflow: hidden;
  background: var(--line);
  border-radius: 3px;
}

.row-bar > i::after {
  display: block;
  width: var(--value);
  height: 100%;
  content: "";
  background: var(--accent);
}

.ranking-row > b {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  text-align: right;
}

.selected-model {
  min-width: 0;
  background: var(--surface);
}

.model-title {
  min-height: 180px;
  padding: 22px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.model-title span {
  display: inline-block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.model-title h3 {
  max-width: 100%;
  margin-top: 22px;
  overflow-wrap: anywhere;
  font-size: 25px;
  font-weight: 650;
  line-height: 1.05;
}

.model-title p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.active-score {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.active-score span,
.active-score small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.active-score strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
}

.model-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.model-facts > div {
  min-height: 58px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.model-facts span,
.model-facts strong {
  display: block;
}

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

.model-facts strong {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.benchmark-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.benchmark-matrix > a,
.benchmark-matrix > div {
  min-height: 68px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benchmark-matrix > :nth-child(even) {
  border-right: 0;
}

.benchmark-matrix > a:hover {
  background: var(--surface-soft);
}

.benchmark-matrix [data-missing="true"] {
  color: var(--faint);
}

.benchmark-matrix span,
.benchmark-matrix strong,
.benchmark-matrix small {
  display: block;
}

.benchmark-matrix span,
.benchmark-matrix small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.benchmark-matrix strong {
  margin: 5px 0;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
}

.watch-copy {
  padding: 15px 18px;
  background: var(--accent-soft);
}

.watch-copy span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
}

.watch-copy p {
  margin-top: 7px;
  color: #5c4a47;
  font-size: 11px;
  line-height: 1.45;
}

.official-links {
  display: grid;
  padding: 10px 18px 18px;
}

.official-links a {
  padding: 8px 0;
  color: var(--blue);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
}

.event-band {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.event-band > header {
  padding: 22px;
  background: var(--surface-soft);
  border-right: 1px solid var(--line);
}

.event-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(200px, 1fr));
  min-width: 0;
  overflow-x: auto;
}

.event-item {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 174px;
  padding: 16px;
  background: var(--surface);
  border-top: 3px solid var(--line-strong);
  border-right: 1px solid var(--line);
}

.event-item:hover {
  background: var(--surface-soft);
}

.event-item[data-status="watch"],
.event-item[data-status="deadline"] {
  border-top-color: var(--accent);
}

.event-item span,
.event-item b {
  font-family: var(--mono);
  font-size: 9px;
}

.event-item span {
  color: var(--muted);
}

.event-item b {
  align-self: start;
  justify-self: start;
  margin-top: 8px;
  padding: 3px 6px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-weight: 500;
}

.event-item strong {
  align-self: end;
  margin: 18px 0 8px;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.25;
}

.event-item p {
  min-height: 42px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.lower-deck {
  display: grid;
  grid-template-columns: minmax(610px, 1.2fr) minmax(400px, 0.8fr);
  border-bottom: 1px solid var(--line);
}

.clock-panel {
  border-right: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 94px;
  padding: 18px 22px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.section-head > span {
  max-width: 22ch;
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.clock-list {
  background: var(--surface);
}

.clock-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(120px, 1fr) 58px 145px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}

.clock-name {
  display: grid;
  grid-template-columns: 7px 1fr;
  padding: 7px 12px;
}

.clock-name i {
  grid-row: 1 / 3;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.clock-name strong {
  font-size: 13px;
  font-weight: 620;
}

.clock-name small,
.clock-row em {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clock-track {
  height: 5px;
  overflow: hidden;
  background: var(--line);
  border-radius: 3px;
}

.clock-track i {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--accent);
}

.clock-row > b {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
}

.clock-row em {
  padding: 0 10px;
}

.source-list {
  background: var(--surface);
}

.source-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1.2fr) 20px;
  align-items: center;
  min-height: 62px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.source-row:hover {
  background: var(--surface-soft);
}

.source-row span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.source-row strong {
  font-size: 13px;
  font-weight: 620;
}

.source-row small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.source-row[data-status="error"] small { color: var(--accent); }

.evidence-status, .view-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  line-height: 1.6;
}

.view-nav { margin-top: 12px; }

.evidence-status {
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.evidence-status a, .view-nav a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.source-row b {
  color: var(--blue);
  font-weight: 500;
}

.footnotes {
  display: grid;
  grid-template-columns: 210px 1fr;
  background: var(--surface-soft);
}

.footnotes > strong {
  padding: 24px;
  border-right: 1px solid var(--line);
  font-size: 19px;
  font-weight: 620;
}

.footnotes > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.footnotes p {
  min-height: 66px;
  padding: 14px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.45;
}

.footnotes p span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 650;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

@media (max-width: 1180px) {
  .scoreboard {
    grid-template-columns: 210px minmax(540px, 1fr);
  }

  .selected-model {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(500px, 1.2fr);
    border-top: 1px solid var(--line);
  }

  .model-title {
    grid-row: 1 / 5;
    min-height: 100%;
    border-right: 1px solid var(--line);
  }

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

  .benchmark-matrix > :nth-child(even) {
    border-right: 1px solid var(--line);
  }

  .benchmark-matrix > :nth-child(3n) {
    border-right: 0;
  }

  .official-links {
    grid-column: 2;
  }

  .lower-deck {
    grid-template-columns: 1fr;
  }

  .clock-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .mast {
    grid-template-columns: 1fr 1fr;
  }

  .mast-readout {
    grid-column: 1 / -1;
    min-height: 82px;
    border-top: 1px solid var(--line);
  }

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

  .signal-block:nth-child(3) {
    border-right: 0;
  }

  .signal-block:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .switchboard-head {
    grid-template-columns: 1fr;
  }

  .switchboard-head > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-tabs {
    grid-template-columns: repeat(6, 126px);
  }

  .scoreboard {
    grid-template-columns: 200px minmax(520px, 1fr);
    overflow-x: auto;
  }

  .selected-model {
    min-width: 720px;
  }

  .event-band {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .footnotes {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 680px) {
  .app {
    border: 0;
  }

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

  .brand-block,
  .mast-manifesto,
  .mast-readout {
    border-right: 0;
  }

  .brand-block {
    min-height: 104px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
  }

  .brand-block h1 {
    font-size: 29px;
  }

  .mast-manifesto {
    min-height: 92px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
  }

  .mast-manifesto strong {
    font-size: 18px;
  }

  .mast-readout {
    min-height: 88px;
    padding: 16px 20px;
    border-top: 0;
  }

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

  .signal-block {
    min-height: 100px;
    padding: 15px 17px;
  }

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

  .signal-block:nth-child(even) {
    border-right: 0;
  }

  .signal-block:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .signal-block:last-child {
    grid-column: 1 / -1;
  }

  .signal-block strong {
    font-size: 25px;
  }

  .scoreboard {
    display: block;
    min-height: 0;
    overflow: visible;
  }

  .metric-hero {
    min-height: 390px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-description {
    margin-top: 26px;
  }

  .ranking-panel {
    border-right: 0;
  }

  .ranking-head {
    display: none;
  }

  .ranking-row {
    grid-template-columns: 48px minmax(0, 1fr) 76px;
    min-height: 62px;
    padding-right: 12px;
  }

  .row-bar {
    display: none;
  }

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

  .selected-model {
    display: block;
    min-width: 0;
  }

  .model-title {
    min-height: 190px;
    border-right: 0;
  }

  .benchmark-matrix {
    grid-template-columns: 1fr 1fr;
  }

  .benchmark-matrix > :nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .benchmark-matrix > :nth-child(even) {
    border-right: 0;
  }

  .official-links {
    grid-column: auto;
  }

  .event-band {
    grid-template-columns: 1fr;
  }

  .event-band > header {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .event-list {
    grid-template-columns: repeat(6, 210px);
  }

  .clock-row {
    grid-template-columns: minmax(160px, 1fr) 58px 115px;
    padding-right: 8px;
  }

  .clock-track {
    display: none;
  }

  .clock-row em {
    padding: 0;
    text-align: right;
  }

  .source-row {
    grid-template-columns: 34px 1fr 20px;
  }

  .source-row small {
    display: block;
    grid-column: 2;
    grid-row: 2;
    margin-top: 5px;
    line-height: 1.6;
  }

  .source-row b {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

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

  .footnotes > strong {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footnotes > div {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.price-evidence { margin: 12px 0; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.price-evidence a { display: block; margin-top: 6px; color: inherit; }
