.submit-page {
  --submit-border: #d9dbd7;
  --submit-muted: #707672;
  min-height: calc(100vh - 72px);
  background: #f7f7f5;
}

.submit-mast {
  padding: 72px 0 54px;
  border-bottom: 1px solid var(--submit-border);
  background: #fbfaf7;
}

.submit-mast-grid {
  display: grid;
  grid-template-columns: minmax(430px, .94fr) minmax(440px, 1.06fr);
  gap: 86px;
  align-items: end;
}

.submit-mast h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 500;
  letter-spacing: -.052em;
  line-height: .94;
}

.submit-mast-copy > p {
  max-width: 680px;
  margin: 0;
  color: #626864;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.57;
}

.submit-status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 27px;
  padding-top: 18px;
  border-top: 1px solid #dedfdc;
  color: #777d79;
  font: 10px var(--mono);
}

.submit-status-line strong { color: #313633; }
.live-dot, .error-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #b45539; box-shadow: 0 0 0 4px rgba(180,85,57,.12); }
.error-dot { background: #a43b3b; }

.main-board-section { padding: 66px 0 76px; }

.submit-section-head {
  display: grid;
  grid-template-columns: minmax(440px, .9fr) minmax(430px, 1.1fr);
  gap: 78px;
  align-items: end;
}

.submit-section-head h2, .benchmark-section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4.7vw, 62px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
}

.submit-section-head > p {
  margin: 0;
  color: #696f6b;
  font-size: 13px;
  line-height: 1.75;
}

.inline-running { color: #a94f36; font: 800 11px var(--mono); }

.overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--submit-border);
  border-radius: 13px;
  background: #fff;
}

.overview-card { min-height: 124px; padding: 24px; border-left: 1px solid #e1e3df; }
.overview-card:first-child { border-left: 0; }
.overview-card strong, .overview-card span, .overview-card small { display: block; }
.overview-card strong { color: #252926; font: 600 30px var(--mono); }
.overview-card span { margin-top: 8px; color: #3d433f; font-size: 11px; font-weight: 760; text-transform: uppercase; letter-spacing: .055em; }
.overview-card small { margin-top: 7px; color: #929692; font-size: 9px; line-height: 1.45; }
.overview-card-1 strong { color: #267150; }
.overview-card-2 strong { color: #a64f35; }

.main-board-card, .benchmark-card {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--submit-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(26,31,27,.035);
}

.board-card-head, .benchmark-card-head {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 20px;
  border-bottom: 1px solid #e1e3df;
  background: #fbfbf9;
}

.board-card-head > div:first-child span, .board-card-head > div:first-child strong { display: block; }
.board-card-head > div:first-child span { color: #929691; font: 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.board-card-head > div:first-child strong { margin-top: 5px; color: #434844; font-size: 10px; }
.status-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; color: #777d79; font-size: 9px; }
.status-legend span { display: inline-flex; align-items: center; gap: 6px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-dot.verified { background: #32815e; }.status-dot.running { background: #b45539; }.status-dot.pending { border: 1px solid #aeb3af; background: transparent; }

.submit-table-wrap { overflow-x: auto; }
.main-submit-table, .benchmark-table { width: 100%; border-collapse: collapse; }
.main-submit-table { min-width: 1110px; table-layout: fixed; }
.main-submit-table th, .main-submit-table td, .benchmark-table th, .benchmark-table td { border-bottom: 1px solid #e4e6e2; }
.main-submit-table thead th { height: 74px; padding: 10px 13px; border-left: 1px solid #e0e2de; background: #f7f7f5; color: #333834; font-size: 10px; text-align: center; }
.main-submit-table thead th:first-child { border-left: 0; text-align: left; }
.main-submit-table .configuration-heading { width: 255px; padding-left: 22px; font-family: var(--serif); font-size: 16px; }
.benchmark-heading { border-top: 3px solid var(--bench-accent); }
.benchmark-heading span, .benchmark-heading small { display: block; }
.benchmark-heading small { margin-top: 8px; color: #929691; font: 7px var(--mono); letter-spacing: .05em; }
.configuration-group-row td { height: 35px; padding: 0 20px; background: #eeede8; color: #666a66; font: 750 8px var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.configuration-group-row.group-pi td { background: #e9efea; color: #406a58; }
.main-submit-table tbody tr:not(.configuration-group-row):hover, .benchmark-table tbody tr:hover { background: #fafbf9; }
.configuration-cell { min-width: 218px; padding: 13px 18px; }
.configuration-name { display: flex; align-items: center; gap: 9px; color: #282c29; font-family: var(--serif); font-size: 13px; font-weight: 700; white-space: nowrap; }
.configuration-harness { display: block; margin: 4px 0 0 17px; color: #8a8e8a; font: 8px var(--mono); }
.provider-mark { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #777; }
.provider-anthropic { background: #b4543a; }.provider-openai { background: #159174; }.provider-deepseek { background: #536fd5; }.provider-z-ai { background: #171817; }.provider-moonshot { background: #8c4e86; }.provider-xai { background: #111; }
.score-cell { height: 51px; padding: 8px 10px; border-left: 1px solid #e4e6e2; text-align: center; }
.score-value { color: #aaaEaa; font: 10px var(--mono); white-space: nowrap; }
.status-running { background: #fcf5f2; }.status-running .score-value { color: #aa4f36; font-weight: 800; letter-spacing: .08em; }
.status-verified { background: #f3f8f5; }.status-verified .score-value { color: #267150; font-weight: 760; }
.status-review { background: #fff9eb; }.status-review .score-value { color: #8b6518; }
.board-card-foot, .benchmark-card-foot { display: flex; justify-content: space-between; gap: 28px; padding: 14px 20px; background: #fbfbf9; color: #8b908c; font: 8px/1.5 var(--mono); }

.bench-index { position: sticky; z-index: 10; top: 72px; border-block: 1px solid #d8dad6; background: rgba(250,249,245,.96); backdrop-filter: blur(12px); }
.bench-index .portal-container { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bench-index-link { min-height: 54px; padding: 18px 10px 13px; border-bottom: 3px solid transparent; color: #707571; font: 750 8px var(--mono); text-align: center; text-transform: uppercase; letter-spacing: .035em; white-space: nowrap; }
.bench-index-link:hover { border-bottom-color: var(--bench-accent); color: #262a27; text-decoration: none; }

.benchmark-section { --bench-accent: #6c7479; padding: 74px 0 82px; scroll-margin-top: 126px; border-bottom: 1px solid #dadcd8; background: #fbfaf7; }
.benchmark-section:nth-child(even) { background: #f5f6f4; }
.benchmark-section-head { display: grid; grid-template-columns: 72px minmax(340px, .8fr) minmax(380px, 1.2fr); gap: 28px 48px; align-items: end; }
.benchmark-number { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid color-mix(in srgb, var(--bench-accent) 45%, #fff); border-radius: 50%; color: var(--bench-accent); font: 700 12px var(--mono); }
.benchmark-title-group .portal-kicker { color: var(--bench-accent); }
.benchmark-section-head h2 { font-size: clamp(40px, 4.4vw, 58px); }
.benchmark-description { max-width: 630px; margin: 0; color: #6f7470; font-size: 13px; line-height: 1.72; }
.benchmark-card { margin-top: 30px; border-top: 4px solid var(--bench-accent); }
.benchmark-card-head { color: #747a75; font: 9px var(--mono); }
.benchmark-cell-summary { color: #343936; font-weight: 750; }
.benchmark-table { min-width: 1280px; }
.benchmark-table thead th { height: 46px; padding: 8px 13px; background: #f7f7f5; color: #888d88; font: 750 8px var(--mono); text-align: right; text-transform: uppercase; letter-spacing: .045em; }
.benchmark-table thead th:nth-child(2) { text-align: left; }
.benchmark-table tbody td { height: 55px; }
.benchmark-table .configuration-cell { width: 270px; }
.metric-cell { padding: 10px 13px; color: #737974; font: 10px var(--mono); text-align: right; }
.metric-cell.row-index { width: 46px; color: #a1a5a1; text-align: center; }
.metric-cell.positive { color: #267150; font-weight: 750; }.metric-cell.running-text { color: #aa4f36; font-weight: 800; letter-spacing: .07em; }
.endpoint-metric .endpoint-values { display: block; white-space: nowrap; }
.endpoint-metric .endpoint-delta { display: block; margin-top: 3px; font: 750 9px var(--mono); }
.endpoint-delta.increase { color: #178d70; }
.endpoint-delta.decrease { color: #a5543b; }
.status-cell { width: 105px; padding: 10px 16px; text-align: right; }
.submitter-cell, .evidence-cell, .submission-cell { min-width: 112px; padding: 10px 13px; color: #9a9e9a; font: 9px var(--mono); text-align: right; }
.submission-cell { min-width: 220px; text-align: left; }
.github-identity { color: #275f91; font-weight: 750; }
.evidence-link, .commit-link { display: inline-block; color: #4e6259; font-weight: 750; }
.commit-link { margin-left: 8px; color: #898e89; }
.status-badge { display: inline-flex; min-width: 66px; justify-content: center; padding: 6px 9px; border: 1px solid #d7d9d6; border-radius: 999px; color: #878c88; font: 750 7px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.status-badge.running { border-color: #e4c2b7; background: #fbf1ed; color: #a54d35; }.status-badge.verified { border-color: #bad4c6; background: #eff7f2; color: #297153; }.status-badge.review { border-color: #e0c887; background: #fff9e9; color: #876214; }
.submission-name { display: inline-flex; align-items: center; gap: 5px; color: #333936; font-weight: 750; }
.submission-increment { color: #a34f37; font: 800 8px var(--mono); }
.history-row td { height: auto !important; padding: 0 16px 16px 70px; background: #fafbf9; }
.candidate-history { display: grid; grid-template-columns: repeat(5, minmax(145px, 1fr)); gap: 8px; }
.candidate-card { padding: 10px 11px; border: 1px solid #e1e3df; border-radius: 8px; background: #fff; color: #747a75; font: 8px/1.5 var(--mono); }
.candidate-card strong, .candidate-card span { display: block; }
.candidate-card strong { color: #353a36; font-size: 9px; }
.candidate-card .candidate-score { margin-top: 5px; color: #267150; font-weight: 800; }
.candidate-card.error .candidate-score { color: #a43b3b; }.candidate-card.accepted { border-color: #b8d2c3; background: #f2f8f4; }
.benchmark-card-foot a { color: var(--bench-accent); font-weight: 800; }
.submit-load-error { margin: 30px auto; padding: 20px; color: #913d32; text-align: center; }

@media (max-width: 900px) {
  .submit-mast-grid, .submit-section-head { grid-template-columns: 1fr; gap: 30px; }
  .overview-strip { grid-template-columns: repeat(2, 1fr); }
  .overview-card:nth-child(3) { border-top: 1px solid #e1e3df; border-left: 0; }
  .overview-card:nth-child(4) { border-top: 1px solid #e1e3df; }
  .bench-index .portal-container { overflow-x: auto; grid-template-columns: repeat(6, minmax(150px, 1fr)); }
  .benchmark-section-head { grid-template-columns: 60px 1fr; }
  .benchmark-description { grid-column: 2; }
  .candidate-history { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}

@media (max-width: 600px) {
  .submit-mast { padding: 48px 0 38px; }
  .submit-mast h1 { font-size: 47px; }
  .submit-mast-copy > p { font-size: 17px; }
  .main-board-section, .benchmark-section { padding: 50px 0 58px; }
  .overview-strip { grid-template-columns: 1fr; }
  .overview-card, .overview-card:nth-child(3), .overview-card:nth-child(4) { border-top: 1px solid #e1e3df; border-left: 0; }
  .overview-card:first-child { border-top: 0; }
  .board-card-head, .benchmark-card-head, .board-card-foot, .benchmark-card-foot { display: block; }
  .status-legend, .benchmark-protocol, .board-card-foot span:last-child, .benchmark-card-foot a { margin-top: 10px; }
  .bench-index { top: 64px; }
  .benchmark-section { scroll-margin-top: 118px; }
  .benchmark-section-head { grid-template-columns: 46px 1fr; gap: 20px 16px; }
  .benchmark-number { width: 42px; height: 42px; }
  .benchmark-description { grid-column: 1 / -1; }
  .candidate-history { grid-template-columns: 1fr; }
}
