.benchmark-progress {
  background: #eaf0f4;
  border-bottom: 1px solid #d4e0e9;
}

.truth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  margin-bottom: 18px;
  border: 1px solid #e8c56c;
  border-radius: 12px;
  background: #fff3d6;
  color: #66501b;
}

.truth-banner strong {
  color: #5b4308;
  font-size: 17px;
}

.truth-banner span { max-width: 650px; }
.truth-banner.failure {
  border-color: #f3a6b2;
  background: #fff0f3;
  color: #7c2637;
}
.truth-banner.failure strong { color: #8d1f35; }

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

.matrix-grid article {
  min-height: 210px;
  padding: 20px;
  border: 1px solid #d5e0e8;
  border-radius: 12px;
  background: #fff;
}

.matrix-grid article > b {
  color: #92a4b5;
  font: 700 12px "SFMono-Regular", Consolas, monospace;
}

.matrix-grid h3 { margin: 12px 0 8px; font-size: 20px; }

.matrix-grid article > span {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 750;
}

.matrix-grid .partial { background: #dff5f1; color: #087b6d; }
.matrix-grid .pending { background: #fff0c9; color: #795b09; }
.matrix-grid .failed { background: #ffe1e7; color: #9a1e39; }
.matrix-grid p { margin: 12px 0 0; color: #637689; font-size: 14px; }

.contract-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0;
  border: 1px solid #d5e0e8;
  border-radius: 12px;
  background: #fff;
}

.contract-row div { padding: 18px; border-right: 1px solid #d5e0e8; }
.contract-row div:last-child { border: 0; }
.contract-row span {
  display: block;
  margin-bottom: 5px;
  color: #718497;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contract-row strong { font-size: 13px; }
.button.dark { border-color: #0a1a2c; background: #0a1a2c; color: #fff; }

.failure-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #663044;
  border-radius: 14px;
  background: #663044;
}
.failure-card div,
.failure-card a { min-height: 88px; padding: 19px; background: #231725; }
.failure-card span { display: block; color: #c89eae; font-size: 12px; }
.failure-card strong { display: block; margin-top: 5px; color: #ff9db0; }
.failure-card a { display: grid; place-items: center; color: #fff; font-weight: 750; text-decoration: none; }

.xy-chart { margin: 0 0 18px; padding: 24px; border: 1px solid #1d3851; border-radius: 14px; background: #0d1e2f; color: #dce8f2; }
.xy-chart figcaption { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.xy-chart h3 { margin: 3px 0 0; color: #fff; font-size: 24px; }
.xy-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; color: #aebfd0; font-size: 12px; }
.xy-legend span::before { content: ""; display: inline-block; width: 20px; height: 3px; margin: 0 7px 3px 0; border-radius: 2px; }
.xy-legend .native-key::before { background: #2dd4bf; }
.xy-legend .postgres-key::before { background: #60a5fa; }
.xy-legend .failure-key::before { background: #fb7185; }
.xy-scroll { overflow-x: auto; }
.xy-chart svg { display: block; width: 100%; min-width: 720px; height: auto; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.grid-lines line { stroke: #20384d; stroke-width: 1; }
.axis-lines line { stroke: #6e8499; stroke-width: 1.5; }
.x-ticks text, .y-ticks text { fill: #9fb1c4; font-size: 12px; }
.x-ticks text { text-anchor: middle; }
.y-ticks text { text-anchor: end; }
.axis-title { fill: #cbd8e4; font-size: 13px; font-weight: 650; text-anchor: middle; }
.failure-zone { fill: #fb718512; stroke: #fb718566; stroke-dasharray: 5 5; }
.failure-label, .failure-code { fill: #ff9db0; font-size: 13px; font-weight: 800; text-anchor: middle; }
.failure-code { font-size: 11px; }
.failure-x { fill: none; stroke: #fb7185; stroke-width: 6; stroke-linecap: round; }
.series { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.native-series { stroke: #2dd4bf; }
.postgres-series { stroke: #60a5fa; }
.native-points circle { fill: #0d1e2f; stroke: #2dd4bf; stroke-width: 4; }
.postgres-points circle { fill: #0d1e2f; stroke: #60a5fa; stroke-width: 4; }
.series-label { font-size: 12px; font-weight: 750; }
.native-label { fill: #5eead4; }
.postgres-label { fill: #93c5fd; }
.xy-findings { padding-top: 16px; border-top: 1px solid #20384d; color: #b7c6d4; font-size: 13px; line-height: 1.55; }
.xy-findings strong { color: #fff; }
.xy-findings span { display: block; margin-top: 4px; color: #8fa3b7; }

.scale-chart {
  padding: 26px;
  margin-bottom: 18px;
  border: 1px solid #1d3851;
  border-radius: 14px;
  background: #0d1e2f;
}
.scale-head,
.scale-row { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 16px; }
.scale-head { margin-bottom: 13px; color: #8fa3b7; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.scale-row { align-items: center; margin: 9px 0; }
.scale-row > b { color: #cbd8e4; }
.scale-row > div { position: relative; height: 30px; overflow: hidden; border-radius: 5px; background: #172b3e; }
.scale-row i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 5px; background: linear-gradient(90deg,#14b8a6,var(--mint)); }
.scale-row i.postgres { background: linear-gradient(90deg,#2563eb,var(--blue)); }
.scale-row div span { position: relative; z-index: 1; display: block; padding: 5px 9px; color: #fff; font-size: 12px; font-style: normal; }
.scale-row.disqualified > div { border: 1px solid #793447; background: #291824; }
.scale-row.disqualified div span { color: #ff9db0; font-weight: 750; }
.scale-chart > p { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid #20384d; color: #9fb1c4; font-size: 13px; }
.current-results { margin-bottom: 14px; }
.status.failed { background: #fb718526; color: #ff9db0; }
.results-caveat { margin: 0; color: #9fb1c4; font-size: 13px; }
.historical-head { margin-top: 78px; }

@media (max-width: 800px) {
  .truth-banner { align-items: flex-start; flex-direction: column; }
  .matrix-grid { grid-template-columns: 1fr 1fr; }
  .contract-row { grid-template-columns: 1fr 1fr; }
  .contract-row div:nth-child(2) { border-right: 0; }
  .contract-row div:nth-child(-n+2) { border-bottom: 1px solid #d5e0e8; }
  .failure-card { grid-template-columns: 1fr 1fr; }
  .failure-card a { grid-column: span 2; }
  .scale-head,
  .scale-row { grid-template-columns: 50px 1fr 1fr; gap: 8px; }
  .xy-chart figcaption { align-items: flex-start; flex-direction: column; }
  .xy-legend { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .matrix-grid, .contract-row { grid-template-columns: 1fr; }
  .contract-row div { border-right: 0; border-bottom: 1px solid #d5e0e8; }
  .failure-card { grid-template-columns: 1fr; }
  .failure-card a { grid-column: auto; }
  .scale-head { display: none; }
  .scale-row { grid-template-columns: 36px 1fr; }
  .scale-row > div:last-child { grid-column: 2; }
}
