:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fbfcff;
  --text: #101828;
  --muted: #667085;
  --muted-strong: #475467;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --brand: #5f25e6;
  --brand-dark: #3f1aa8;
  --aureka-teal: #2563eb;
  --teal-dark: #1d4ed8;
  --teal-soft: #edf3ff;
  --green: #5f25e6;
  --amber: #c26a00;
  --red: #b44b58;
  --chart-blue: #2563eb;
  --chart-purple: #5f25e6;
  --chart-amber: #f59e0b;
  --chart-rose: #c02663;
  --ink-soft: #ffffff;
  --shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.05);
  --content-max: 1280px;
  --page-gutter: clamp(18px, 4vw, 56px);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.auth-gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(24px, 5vw, 64px);
  background: #ffffff;
}

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

.auth-card {
  width: min(100%, 580px);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 42px);
}

.auth-card .subtitle {
  max-width: 500px;
}

.auth-brand {
  justify-content: center;
  margin-bottom: 24px;
}

.auth-intro {
  margin-bottom: 22px;
  min-width: 0;
  text-align: center;
}

.auth-intro h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 6vw, 38px);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  padding: 16px 0 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.navline,
.hero,
.benchmark-header,
.section-head,
.cluster-layout,
.submit-form {
  display: flex;
  align-items: center;
}

.navline {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 0;
}

.benchmark-board-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.benchmark-board-tabs[hidden] { display: none; }
.benchmark-board-tabs button {
  background: #fff;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 14px 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.benchmark-board-tabs button.active,
.benchmark-board-tabs button[aria-selected="true"] {
  border-bottom-color: var(--brand-dark);
  color: var(--brand-dark);
}
.benchmark-board-tabs button:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 3px;
}

.b-board-release-note { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 18px; }
#b-results-table .b-history-row > td { position: static; padding: 0; max-width: none; }
#b-results-table .b-model-cell { overflow-wrap: anywhere; }

.navline,
main {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-max));
  margin-left: auto;
  margin-right: auto;
}

.hero,
.benchmark-header,
.kpi-row,
.split-summary {
  width: 100%;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
}

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

.brand-mark span {
  border-left: 1px solid var(--line-strong);
  padding-left: 13px;
  color: var(--brand-dark);
  font-size: 14px;
}

.navlinks {
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #f6f7fb;
  box-shadow: var(--shadow-soft);
  padding: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.nav-actions,
.guest-session,
.account-corner {
  display: flex;
  align-items: center;
}

.nav-actions {
  gap: 10px;
}

.guest-session {
  gap: 9px;
  white-space: nowrap;
}

.account-corner {
  gap: 9px;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  color: var(--muted-strong);
  padding: 4px 5px 4px 10px;
  white-space: nowrap;
}

.account-corner span {
  max-width: 180px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
}

.daily-upload-quota {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 7px;
  min-width: 132px;
  border-left: 1px solid var(--line);
  padding: 1px 10px;
}

.daily-upload-quota[hidden] { display: none; }
.daily-upload-quota span { max-width: none; color: var(--muted); font-size: 10px; font-weight: 700; }
.daily-upload-quota strong { color: var(--brand-dark); font-size: 17px; line-height: 1; text-align: right; }
.daily-upload-quota small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; line-height: 1.25; }

.account-corner .button {
  min-height: 30px;
  padding: 6px 10px;
}

.guest-session span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 760;
}

.guest-session .button {
  min-height: 38px;
  padding: 8px 13px;
}

.guest-session[hidden],
.account-corner[hidden] {
  display: none;
}

.page-switcher {
  min-width: 520px;
}

.b-results-page { padding-bottom: 64px; }
.b-results-hero {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 0 26px;
}
.b-results-hero h1 { font-size: clamp(34px, 4vw, 52px); margin: 6px 0 10px; }
.b-results-hero .subtitle { max-width: 720px; }
.b-freeze-badge {
  border-left: 3px solid var(--chart-blue);
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  padding: 7px 0 7px 18px;
}
.b-freeze-badge span, .b-freeze-badge small { color: var(--muted-strong); font-size: 12px; }
.b-freeze-badge strong { font-size: 20px; }
.b-release-summary {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
}
.b-release-summary > div { display: grid; gap: 5px; padding: 20px 24px; }
.b-release-summary > div + div { border-left: 1px solid var(--line); }
.b-release-summary span, .b-release-summary small { color: var(--muted-strong); font-size: 12px; }
.b-release-summary strong { font-size: 22px; }
.b-results-main { padding: 26px; }
.b-results-head { align-items: start; }
.b-results-podium {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 30px;
}
.b-podium-place {
  border: 1px solid #dfe4ec;
  border-top: 4px solid #7c3aed;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px 20px;
}
.b-podium-place.place-1 { border-top-color: #2563eb; }
.b-podium-place.place-2 { border-top-color: #6d5bd0; }
.b-podium-place.place-3 { border-top-color: #9b7be5; }
.b-podium-place > span { color: var(--muted-strong); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.b-podium-place > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-podium-place > small { color: var(--muted-strong); }
.b-podium-place > b { font-size: 28px; }
.b-results-table { border-collapse: separate; border-spacing: 0; min-width: 920px; width: 100%; }
.b-results-table th, .b-results-table td { border-bottom: 1px solid var(--line); padding: 14px 12px; text-align: left; }
.b-results-table th { color: var(--muted-strong); font-size: 12px; }
.b-results-table th:nth-child(1), .b-results-table td:nth-child(1) { text-align: center; width: 64px; }
.b-results-table th:nth-child(n+4):nth-child(-n+6), .b-results-table td:nth-child(n+4):nth-child(-n+6) { text-align: right; width: 132px; }
.b-results-table .top-1 { background: #eef5ff; }
.b-results-table .top-2 { background: #f5f2ff; }
.b-results-table .top-3 { background: #faf7ff; }
.b-model-cell { align-items: center; display: flex; gap: 10px; justify-content: space-between; min-width: 0; }
.b-model-cell > span { overflow-wrap: anywhere; }
.b-history-toggle { background: transparent; border: 0; color: var(--chart-blue); cursor: pointer; flex: 0 0 auto; font: inherit; font-size: 12px; font-weight: 750; }
.b-history-list { display: grid; gap: 8px; padding: 8px 24px 16px 74px; }
.b-history-list > div { display: grid; gap: 12px; grid-template-columns: minmax(220px, 1fr) 180px repeat(3, 100px); }
.b-history-list small { color: var(--muted-strong); }
.b-history-list b { text-align: right; }
.b-results-privacy { color: var(--muted-strong); font-size: 12px; margin: 18px 0 0; }

@media (max-width: 760px) {
  .b-results-hero { align-items: start; flex-direction: column; padding-top: 28px; }
  .b-release-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-release-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .b-release-summary > div:nth-child(4) { border-top: 1px solid var(--line); }
  .b-results-podium { grid-template-columns: 1fr; }
  .b-history-list { padding-left: 12px; }
  .b-history-list > div { grid-template-columns: 1fr; }
  .b-history-list b { text-align: left; }
}

.navlinks a {
  text-decoration: none;
}

.navlinks a:hover {
  background: #ffffff;
  color: var(--chart-blue);
}

.navlinks a {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 16px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.navlinks a.active {
  border-color: var(--chart-blue);
  background: var(--chart-blue);
  box-shadow: 0 2px 7px rgba(37, 99, 235, 0.22);
  color: #ffffff;
}

.navlinks a:focus-visible {
  outline: 3px solid rgba(95, 37, 230, 0.22);
  outline-offset: 2px;
}

.hero {
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.hero > div {
  max-width: 860px;
}

.benchmark-header {
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.benchmark-header > div {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 9px;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6px;
  font-size: 21px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 15px;
  letter-spacing: 0;
}

.subtitle,
.section-head p,
.panel-head span,
.status-text {
  color: var(--muted);
}

.subtitle {
  margin-bottom: 0;
  max-width: 820px;
  color: var(--muted-strong);
  line-height: 1.58;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  padding: 8px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.kpi-row article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 17px 18px;
}

.kpi-row span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.kpi-row strong {
  display: block;
  margin-bottom: 8px;
  color: #0b1220;
  font-size: 31px;
  line-height: 1;
}

.kpi-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
}

.split-summary {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.split-summary-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding: 4px 14px 4px 2px;
}

.split-summary-head span {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.split-summary-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.split-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.split-row article {
  min-width: 0;
  border-radius: 7px;
  background: var(--surface-soft);
  padding: 12px 14px;
}

.split-row span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: none;
}

.split-row strong {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--brand-dark);
  font-size: 24px;
  line-height: 1;
}

.split-row small {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
  color: #334155;
  font-size: 18px;
  font-weight: 800;
}

.split-row strong em,
.split-row small em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.split-row strong b,
.split-row small b {
  font: inherit;
}

.split-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
}

main {
  display: grid;
  gap: 20px;
  padding: 22px 0 46px;
}

.page-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
}

.page-view[hidden] {
  display: none;
}

.surface {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.analytics-overview {
  border: 0;
  box-shadow: none;
  padding: 0;
}

.benchmark-access {
  padding: 19px 20px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 16px 17px;
}

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

.download-card .button {
  width: 100%;
}

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

.split-analysis-section {
  padding: 20px;
}

.split-analysis-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.split-figure {
  min-width: 0;
  padding: 20px 0;
}

.split-class-figure {
  grid-column: span 7;
  padding-right: 20px;
}

.split-venn-figure {
  grid-column: span 5;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.split-detail-figure {
  grid-column: span 6;
  border-top: 1px solid var(--line);
}

.split-detail-figure:nth-child(3) {
  padding-right: 20px;
}

.split-detail-figure:nth-child(4) {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.split-detail-figure .split-horizontal-row {
  grid-template-columns: minmax(145px, 180px) minmax(0, 1fr) 36px;
  gap: 10px;
}

.split-figure-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.split-figure-head h3,
.split-figure-head p {
  margin: 0;
}

.split-figure-head h3 {
  font-size: 16px;
}

.split-figure-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.split-chart {
  width: 100%;
}

#split-class-chart {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 292px;
  padding-top: 8px;
}

.split-class-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  padding: 0 8px 40px 0;
  text-align: right;
}

.split-class-groups {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  min-width: 420px;
  border-bottom: 1px solid var(--line-strong);
}

.split-class-groups::before {
  position: absolute;
  top: calc(50% - 20px);
  right: 0;
  left: 0;
  border-top: 1px solid var(--line);
  content: "";
  pointer-events: none;
}

.split-class-group {
  display: grid;
  grid-template-rows: 238px 40px;
  min-width: 0;
}

.split-class-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(5px, 1vw, 12px);
  padding: 24px 8px 0;
}

.split-vertical-bar {
  position: relative;
  width: clamp(18px, 3vw, 42px);
  height: max(2px, var(--bar-height));
  min-height: 2px;
  border: 0;
  border-radius: 4px 4px 1px 1px;
  background: var(--chart-blue);
  cursor: pointer;
  padding: 0;
  transition: filter 140ms ease, opacity 140ms ease;
}

.split-vertical-bar.train {
  background: var(--chart-purple);
}

.split-vertical-bar span {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  color: var(--text);
  font-size: 11px;
  font-weight: 720;
  transform: translateX(-50%);
}

.split-class-label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 5px 0;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

.split-venn {
  display: grid;
  min-height: 292px;
}

.venn-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.venn-panel {
  min-width: 0;
}

.venn-panel h4 {
  margin: 0 0 5px;
  font-size: 13px;
  text-align: center;
}

.venn-stage {
  position: relative;
  width: min(100%, 250px);
  height: 178px;
  margin: 0 auto;
}

.venn-circle {
  position: absolute;
  top: 5px;
  width: 158px;
  height: 158px;
  border: 2px solid;
  border-radius: 50%;
}

.venn-circle.test {
  left: 0;
  border-color: rgba(37, 99, 235, 0.76);
  background: rgba(37, 99, 235, 0.19);
}

.venn-circle.train {
  right: 0;
  border-color: rgba(95, 37, 230, 0.76);
  background: rgba(95, 37, 230, 0.19);
}

.venn-region {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 3px;
  width: 68px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 8px 4px;
  text-align: center;
}

.venn-region span {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
}

.venn-region strong {
  font-size: 22px;
  line-height: 1;
}

.venn-test-only {
  top: 61px;
  left: 17px;
}

.venn-shared {
  top: 61px;
  left: 50%;
  transform: translateX(-50%);
}

.venn-train-only {
  top: 61px;
  right: 17px;
}

.venn-holdout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.venn-holdout strong {
  color: var(--text);
  font-size: 15px;
}

.split-horizontal-list {
  display: grid;
  gap: 7px;
}

.split-horizontal-row {
  display: grid;
  grid-template-columns: minmax(165px, 220px) minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  min-height: 25px;
}

.split-row-label {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.split-horizontal-row > strong {
  font-size: 12px;
  text-align: right;
}

.split-row-track,
.coverage-track {
  overflow: hidden;
  height: 17px;
  border: 0;
  border-radius: 3px;
  background: #eef1f6;
  padding: 0;
}

.split-row-fill {
  display: block;
  min-width: 2px;
  height: 17px;
  border: 0;
  border-radius: 3px;
  background: var(--chart-blue);
  cursor: pointer;
  padding: 0;
}

.split-row-fill.train {
  background: var(--chart-purple);
}

.coverage-track {
  display: flex;
  width: 100%;
  cursor: pointer;
}

.coverage-track i {
  display: block;
  height: 100%;
}

.coverage-track .train {
  background: var(--chart-purple);
}

.coverage-track .test {
  background: var(--chart-blue);
}

.coverage-track .holdout {
  background: var(--chart-amber);
}

.aggregate-mark:hover {
  filter: brightness(0.94);
}

.aggregate-mark:focus-visible,
.aggregate-mark.selected {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
}

.legend-bar.train {
  background: var(--chart-purple);
}

.legend-bar.holdout {
  background: var(--chart-amber);
}

.download-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.download-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-dark);
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.download-card p {
  margin: 0;
  color: var(--muted-strong);
}

.inline-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 720;
}

.template-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.benchmark-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.benchmark-grid > .surface,
.leaderboard-section {
  min-width: 0;
}

.section-head {
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}

.section-head p {
  margin-bottom: 0;
  line-height: 1.5;
}

.state-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f9fafb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  padding: 7px 11px;
}

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

.chart-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 17px;
}

.chart-panel.full {
  grid-column: 1 / -1;
  padding: 19px 20px 17px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-head span {
  font-size: 12px;
}

.title-with-info {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}

.info-button {
  display: inline-grid;
  width: 17px;
  height: 17px;
  min-width: 17px;
  place-items: center;
  border: 1px solid #b8c1d1;
  border-radius: 50%;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  transform: translateY(-1px);
}

.info-button:hover,
.info-button:focus-visible,
.info-button.active {
  border-color: var(--brand);
  background: #f4f0ff;
  color: var(--brand);
  outline: none;
}

.floating-tooltip {
  position: fixed;
  z-index: 40;
  max-width: min(320px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.16);
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  padding: 11px 12px;
  pointer-events: none;
}

.floating-tooltip strong {
  display: block;
  margin-bottom: 5px;
  color: #0b1220;
  font-size: 12px;
}

.floating-tooltip p {
  margin: 0;
  color: var(--muted-strong);
  overflow-wrap: anywhere;
}

.leaderboard-table .model-name:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.floating-tooltip dl {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 14px;
  margin: 7px 0 0;
}

.floating-tooltip dt {
  color: var(--muted);
}

.floating-tooltip dd {
  margin: 0;
  color: #111827;
  font-weight: 760;
  text-align: right;
}

.chart-legend-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #52625d;
  white-space: nowrap;
}

.chart-legend-inline i {
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 999px;
}

.legend-bar {
  width: 22px;
  height: 8px;
  background: var(--chart-blue);
}

.legend-bar.estimate {
  border: 2px solid var(--chart-blue);
  background: #dbeafe;
}

.legend-line {
  width: 28px;
  height: 3px;
  background: var(--chart-amber);
}

.tabs {
  display: inline-grid;
  grid-auto-flow: column;
  overflow: hidden;
  min-width: min(100%, 420px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #f2f4f7;
  padding: 3px;
}

.composition-card .panel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.composition-card .tabs {
  grid-auto-flow: initial;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
}

.composition-card .tab-button {
  min-width: 0;
  overflow: hidden;
  padding-right: clamp(8px, 1.8vw, 18px);
  padding-left: clamp(8px, 1.8vw, 18px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #53627a;
  cursor: pointer;
  font-weight: 760;
  padding: 6px 18px;
}

.tab-button.active {
  background: #ffffff;
  color: #121b2e;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);
}

.tab-caption {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.chart {
  display: block;
  width: 100%;
  height: 250px;
}

.chart-panel.full #growth-chart {
  height: 330px;
}

.axis {
  stroke: #cbd5e1;
  stroke-width: 1;
}

.grid {
  stroke: #edf2f7;
  stroke-width: 1;
}

.growth-bar {
  fill: var(--chart-blue);
  cursor: pointer;
  transition: opacity 160ms ease, filter 160ms ease;
}

.forecast-bar {
  fill: #dbeafe;
  stroke: var(--chart-blue);
  stroke-width: 1.4;
}

.growth-bar:hover,
.growth-bar.selected,
.rate-dot:hover,
.rate-dot.selected {
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.28));
  opacity: 0.86;
}

.growth-bar.selected {
  stroke: var(--brand);
  stroke-width: 2;
}

.rate-axis {
  stroke: rgba(245, 158, 11, 0.56);
}

.line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.line.actual {
  stroke: var(--aureka-teal);
}

.line.forecast {
  stroke: var(--brand);
  stroke-dasharray: 6 6;
}

.growth-rate-line {
  stroke: var(--chart-amber);
}

.growth-rate-line.forecast {
  stroke: var(--chart-amber);
  stroke-dasharray: none;
}

.rate-grid {
  stroke: rgba(245, 158, 11, 0.16);
  stroke-dasharray: 4 4;
  stroke-width: 1;
}

.dot {
  fill: var(--aureka-teal);
  stroke: #ffffff;
  stroke-width: 1.5;
}

.rate-dot {
  fill: #ffffff;
  stroke: var(--chart-amber);
  stroke-width: 2;
  cursor: pointer;
  transition: filter 160ms ease, r 160ms ease;
}

.forecast-dot {
  fill: #fff5e6;
}

.rate-dot.selected {
  r: 5;
}

.axis-label,
.x-label,
.point-label,
.legend-label {
  fill: var(--muted);
  font-size: 11px;
}

.axis-title {
  fill: #152033;
  font-size: 12px;
  font-weight: 760;
}

.axis-title.rate,
.axis-label.rate {
  fill: #b45309;
}

.axis-label.left {
  text-anchor: end;
}

.axis-label.right {
  text-anchor: start;
}

.legend-label.trend {
  fill: var(--aureka-teal);
}

.x-label {
  text-anchor: middle;
}

.point {
  stroke: #ffffff;
  stroke-width: 1.4;
}

.point.mab {
  fill: var(--aureka-teal);
}

.point.vhh {
  fill: var(--brand);
}

.point-label {
  fill: #40514c;
  font-weight: 650;
}

.bar-list {
  display: grid;
  gap: 12px;
}

.bar-list.compact {
  gap: 9px;
}

.bar-list.separated {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.pie-composition {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(190px, 1fr);
  gap: clamp(12px, 1.6vw, 18px);
  align-items: center;
  min-height: 258px;
}

.pie-chart {
  display: block;
  width: min(232px, 100%);
  height: auto;
  margin: 0 auto;
}

.pie-slice {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
}

.pie-slice:hover,
.pie-slice.selected {
  opacity: 0.88;
  filter: drop-shadow(0 2px 6px rgba(16, 24, 40, 0.18));
  transform: scale(1.018);
}

.pie-total {
  fill: var(--text);
  font-size: 18px;
  font-weight: 820;
  text-anchor: middle;
}

.pie-total-label {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-anchor: middle;
}

.pie-legend {
  display: grid;
  justify-content: start;
  gap: 8px;
  min-width: 0;
}

.pie-legend-row {
  display: grid;
  grid-template-columns: 10px minmax(72px, max-content) max-content max-content;
  column-gap: 8px;
  row-gap: 0;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  border-radius: 6px;
  padding: 2px 4px;
}

.pie-legend-row:hover,
.pie-legend-row.selected {
  background: #f8fafc;
}

.pie-legend-row i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.pie-legend-row span {
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pie-legend-row strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.pie-legend-row em {
  min-width: 36px;
  color: var(--muted);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.65fr) minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.bar-row span:first-child {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--chart-blue), var(--brand));
}

.bar-value {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.two-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.two-bars strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

.cdr-bars {
  display: grid;
  gap: 18px;
  padding: 18px 8px 18px;
}

.cdr-row {
  display: grid;
  grid-template-columns: 170px minmax(160px, 1fr) 84px;
  gap: 14px;
  align-items: center;
}

.cdr-row span {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.cdr-track {
  position: relative;
  height: 30px;
  background: #eef2f7;
}

.cdr-track::before {
  position: absolute;
  top: -26px;
  bottom: -26px;
  left: 0;
  width: 1px;
  background: #d7e0ea;
  content: "";
}

.cdr-fill {
  height: 100%;
}

.cdr-fill.blue {
  background: var(--chart-blue);
}

.cdr-fill.purple {
  background: var(--brand);
}

.cdr-fill.amber {
  background: var(--chart-amber);
}

.cdr-fill.rose {
  background: var(--chart-rose);
}

.cdr-row strong {
  color: #2d3438;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chart-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.45;
}

.chart-note::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.germline-panel {
  overflow-x: auto;
  padding: 6px 0 0;
}

.heatmap-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 118px repeat(var(--heat-cols), minmax(72px, 1fr));
  gap: 1px;
  min-width: 860px;
  align-items: stretch;
}

.heatmap-x,
.heatmap-y,
.heatmap-cell {
  min-height: 36px;
  display: grid;
  align-items: center;
  border-radius: 2px;
}

.heatmap-row {
  display: contents;
}

.heatmap-x {
  justify-items: center;
  color: #1c2436;
  font-size: 10px;
  font-weight: 680;
  line-height: 1.15;
  text-align: center;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.heatmap-y {
  justify-items: end;
  padding-right: 12px;
  color: #1c2436;
  font-size: 11px;
  font-weight: 680;
}

.heatmap-cell {
  justify-items: center;
  color: #0f172a;
  font-size: 11px;
  font-weight: 740;
  font-variant-numeric: tabular-nums;
}

.heatmap-foot {
  grid-column: 1 / span 6;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.heatmap-scale {
  grid-column: 1 / -1;
  justify-self: end;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
  margin-top: 12px;
  padding-right: 14px;
}

.heatmap-scale i {
  width: 120px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #eff4ff, var(--chart-blue), var(--brand));
}

.germline-top {
  max-width: 900px;
  padding: 12px 0 6px;
}

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

.legend i {
  width: 116px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eff4ff, var(--chart-blue), var(--brand));
}

.target-map-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.target-map-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.target-map-controls select {
  min-width: 170px;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  padding: 6px 32px 6px 10px;
}

.cluster-layout {
  align-items: stretch;
  gap: 14px;
}

.cluster-canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 260px;
  aspect-ratio: 16 / 5.7;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

#klk5-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.tooltip {
  position: absolute;
  z-index: 4;
  max-width: 260px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  padding: 9px 10px;
  pointer-events: none;
}

.search-field,
.submit-form label {
  display: grid;
  gap: 6px;
}

.search-field span,
.submit-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

input[type="search"],
input[type="text"],
.submit-form select {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 8px 10px;
}

.submit-form input[type="text"],
.submit-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

table {
  width: 100%;
  min-width: 1780px;
  border-collapse: collapse;
}

.leaderboard-views {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.leaderboard-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f5f8;
  padding: 4px;
}

.leaderboard-tab {
  display: grid;
  min-width: 0;
  min-height: 54px;
  place-content: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  padding: 8px 12px;
  text-align: center;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.leaderboard-tab strong {
  color: inherit;
  font-size: 14px;
  line-height: 1.25;
}

.leaderboard-tab small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.leaderboard-tab:hover,
.leaderboard-tab:focus-visible {
  border-color: #d8cff0;
  background: #faf9ff;
  color: var(--brand-dark);
  outline: none;
}

.leaderboard-tab.active {
  border-color: #d4c8ef;
  background: #ffffff;
  color: var(--brand-dark);
  box-shadow: 0 1px 3px rgba(45, 28, 91, 0.12);
}

.leaderboard-tab.active small {
  color: #69558e;
}

.leaderboard-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.leaderboard-panel[hidden] {
  display: none;
}

.leaderboard-panel > .table-wrap {
  border: 0;
  border-radius: 0;
}

.leaderboard-table {
  --rank-column-width: 72px;
  --model-column-width: 250px;
  --metric-column-width: 132px;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
}

.leaderboard-table[data-view="summary"] {
  min-width: 1040px;
}

.leaderboard-table[data-view="summary"] > thead > tr > th:nth-child(n+4):nth-child(-n+6),
.leaderboard-table[data-view="summary"] > tbody > tr.leaderboard-main-row > td:nth-child(n+4):nth-child(-n+6),
.leaderboard-table:not([data-view="summary"]) > thead > tr > th:nth-child(n+4),
.leaderboard-table:not([data-view="summary"]) > tbody > tr.leaderboard-main-row > td:nth-child(n+4) {
  width: var(--metric-column-width);
  min-width: var(--metric-column-width);
  max-width: var(--metric-column-width);
}

.leaderboard-table > thead > tr > th:nth-child(1),
.leaderboard-table > tbody > tr > td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 2;
  width: var(--rank-column-width);
  min-width: var(--rank-column-width);
  max-width: var(--rank-column-width);
  background: #ffffff;
}

.leaderboard-table > thead > tr > th:nth-child(2),
.leaderboard-table > tbody > tr > td:nth-child(2) {
  position: sticky;
  left: var(--rank-column-width);
  z-index: 2;
  width: var(--model-column-width);
  min-width: var(--model-column-width);
  max-width: var(--model-column-width);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 8px 0 12px -12px rgba(29, 22, 57, 0.72);
  white-space: normal;
}

.leaderboard-table > thead > tr > th:nth-child(1),
.leaderboard-table > thead > tr > th:nth-child(2) {
  z-index: 3;
  background: #f9fafb;
}

.leaderboard-table .empty-row,
.leaderboard-table .leaderboard-history-row > td {
  position: static;
  width: auto;
  min-width: 0;
  max-width: none;
  background: #ffffff;
}

.leaderboard-table > tbody > tr.random-baseline-row > td {
  background: #f3f0f8;
  border-top: 2px solid #a996c9;
  border-bottom: 2px solid #a996c9;
  color: #463c59;
}

.leaderboard-table > tbody > tr.random-baseline-row > td:first-child {
  box-shadow: inset 4px 0 0 #7658aa;
}

.leaderboard-table > tbody > tr.random-baseline-row .model-name {
  font-weight: 750;
}

.model-cell-content { display: flex; align-items: center; gap: 8px; min-width: 0; }
.model-name {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: inherit;
  line-height: 1.35;
  overflow-wrap: anywhere;
  padding: 0;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.model-name:hover,
.model-name:focus-visible { color: var(--brand-dark); outline: none; text-decoration: underline; text-decoration-color: #c5b5ee; text-underline-offset: 3px; }
.history-toggle { display: inline-grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border: 1px solid #c9c2df; border-radius: 4px; background: #fff; color: var(--brand-dark); cursor: pointer; font-size: 15px; font-weight: 800; line-height: 1; padding: 0; }
.history-toggle:hover, .history-toggle:focus-visible { border-color: var(--brand); background: #f4f0ff; outline: none; }
.leaderboard-table .leaderboard-history-row > td { border-bottom: 1px solid #cfc3ec; padding: 0; }
.history-panel { border-left: 3px solid var(--brand); background: #faf9ff; padding: 14px 16px 16px; }
.history-panel-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.history-panel-head strong { color: var(--text); font-size: 13px; }
.history-panel-head span { color: var(--muted); font-size: 11px; }
.history-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.history-table { min-width: 940px; border-collapse: collapse; }
.history-table th, .history-table td { padding: 8px 9px; font-size: 11px; white-space: nowrap; }
.history-table th:first-child, .history-table td:first-child { width: 330px; white-space: normal; }
.history-run-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.history-model-name { min-width: 0; overflow-wrap: anywhere; border: 0; background: transparent; color: var(--text); cursor: pointer; font: inherit; font-weight: 650; padding: 0; text-align: left; }
.history-model-name:hover, .history-model-name:focus-visible { color: var(--brand-dark); outline: none; text-decoration: underline; text-decoration-color: #c5b5ee; text-underline-offset: 3px; }
.history-badge { border-radius: 3px; background: #e8ddff; color: #5421a8; font-size: 9px; line-height: 1.4; padding: 2px 5px; white-space: nowrap; }

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f9fafb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.sortable-column {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  padding: 0;
  text-align: left;
  text-transform: inherit;
}

.sortable-column span {
  min-width: 10px;
  color: var(--brand);
  font-size: 9px;
}

.sortable-column:hover,
.sortable-column:focus-visible {
  color: var(--brand-dark);
}

td {
  font-size: 14px;
}

.metric-top {
  color: #25115f;
  font-weight: 780;
  transition: background-color 140ms ease;
}

.metric-top-1 {
  background: #d8c9ff;
  box-shadow: inset 0 0 0 1px #b69cf7;
}

.metric-top-2 {
  background: #e9e0ff;
  box-shadow: inset 0 0 0 1px #d2c0fb;
}

.metric-top-3 {
  background: #f4f0ff;
  box-shadow: inset 0 0 0 1px #e4dafd;
}

.target-drawer-scrim {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(16, 24, 40, 0.16);
  backdrop-filter: blur(1px);
}

.target-drawer-scrim[hidden],
.target-drawer[hidden] { display: none; }

.target-drawer {
  position: fixed;
  z-index: 91;
  top: 0;
  right: 0;
  display: flex;
  width: min(640px, 100vw);
  height: 100dvh;
  flex-direction: column;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #ffffff;
  box-shadow: -18px 0 48px rgba(16, 24, 40, 0.14);
  padding: 26px 28px 22px;
  transform: translateX(16px);
  transition: transform 160ms ease;
}

.target-drawer.open { transform: translateX(0); }

.target-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.target-drawer-head h2 { margin: 0; font-size: 24px; line-height: 1.15; }
.target-drawer-head .section-kicker { margin-bottom: 3px; }
.target-drawer-model { max-width: 510px; margin: 4px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.target-drawer-close { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted-strong); cursor: pointer; font-size: 24px; line-height: 1; }
.target-drawer-close:hover, .target-drawer-close:focus-visible { border-color: #cfc3ec; color: var(--brand-dark); outline: none; }

.target-score-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.target-score-summary > div { display: grid; gap: 2px; padding: 14px 10px; }
.target-score-summary > div + div { border-left: 1px solid var(--line); }
.target-score-summary span { color: var(--muted); font-size: 11px; }
.target-score-summary strong { font-size: 18px; line-height: 1.1; }

.target-class-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 22px; border: 1px solid var(--line); border-radius: 8px; background: #f4f5f8; padding: 4px; }
.target-class-tab { min-height: 44px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted-strong); cursor: pointer; font-weight: 760; }
.target-class-tab.active { border-color: #e2d9f6; background: #fff; box-shadow: var(--shadow-soft); color: var(--brand-dark); }
.target-class-tab:focus-visible { outline: 3px solid rgba(95, 37, 230, 0.18); outline-offset: 1px; }
.target-score-formula { margin: 13px 0 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.target-score-formula strong { color: var(--muted-strong); }

.target-performance-content { display: grid; gap: 22px; margin-top: 16px; }
.target-score-legend { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; border: 1px solid #e3deec; border-radius: 6px; background: #faf9fc; color: var(--muted-strong); padding: 9px 12px; }
.target-score-legend > span { display: flex; align-items: center; gap: 6px; font-size: 10px; }
.target-score-legend > span:nth-child(3) { justify-content: flex-end; }
.target-score-legend > span i { width: 18px; height: 4px; border-radius: 3px; }
.target-score-legend i.positive { background: #6842b8; }
.target-score-legend i.negative { background: #c98252; }
.target-score-legend > b { color: #655b73; font-size: 10px; font-weight: 750; }
.target-score-legend > small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; text-align: center; }
.target-category-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.target-category-head > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.target-category-head i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--brand); }
.target-category-blue .target-category-head i { background: var(--chart-blue); }
.target-category-gray .target-category-head i { background: #98a2b3; }
.target-category-head > div > strong { font-size: 14px; }
.target-category-head > div > span { color: var(--muted); font-size: 11px; }
.target-category-head p { display: flex; align-items: baseline; gap: 7px; margin: 0; text-align: right; }
.target-category-head p span { color: var(--muted); font-size: 10px; }
.target-category-head p strong { color: var(--brand-dark); font-size: 16px; }
.target-performance-row { display: grid; gap: 8px; min-height: 78px; border-bottom: 1px solid #eceef2; padding: 12px 2px; }
.target-performance-row:last-child { border-bottom: 0; }
.target-performance-main { display: grid; grid-template-columns: minmax(100px, 1fr) auto auto; align-items: center; gap: 10px; }
.target-performance-main > strong { overflow: hidden; color: var(--text); font-size: 14px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.target-performance-main > span { color: var(--muted); font-size: 10px; }
.target-performance-main > p { display: flex; align-items: baseline; gap: 7px; margin: 0; white-space: nowrap; }
.target-performance-main > p small { color: var(--muted); font-size: 9px; }
.target-performance-main > p b { min-width: 48px; font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.target-mean-value.positive b { color: #56329e; }
.target-mean-value.negative b { color: #a85f32; }
.target-mean-value.neutral b { color: var(--muted-strong); }
.target-mean-track { position: relative; height: 9px; overflow: hidden; border-radius: 5px; background: #eff1f4; }
.target-mean-track > i { position: absolute; z-index: 2; top: 0; bottom: 0; left: 50%; width: 1px; background: #6f6879; }
.target-mean-track > span { position: absolute; top: 2px; height: 5px; border-radius: 3px; }
.target-mean-track > span.positive { background: #6842b8; }
.target-mean-track > span.negative { background: #c98252; }
.target-mean-track > span.neutral { left: calc(50% - 2px) !important; width: 4px !important; background: #81798d; }
.target-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e5e7eb; border-radius: 5px; background: #fafbfc; }
.target-metric-grid > span { display: grid; gap: 3px; min-width: 0; padding: 7px 9px; }
.target-metric-grid > span + span { border-left: 1px solid #e5e7eb; }
.target-metric-grid small { overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.target-metric-grid b { color: #332c3f; font-size: 12px; font-variant-numeric: tabular-nums; }
.target-category-gray .target-performance-main > p b { color: var(--muted); font-weight: 600; }
.target-category-empty { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.target-privacy-note { margin: auto 0 0; border-left: 3px solid var(--brand); background: #faf9ff; color: var(--muted-strong); font-size: 11px; line-height: 1.5; padding: 10px 12px; }

.leaderboard-table th.threshold-column,
.leaderboard-table td.threshold-column {
  background: #f8fafc;
  color: #64748b;
}

.leaderboard-table th.threshold-column {
  box-shadow: inset 1px 0 0 #dbe3ee;
}

.leaderboard-table td.threshold-column {
  font-variant-numeric: tabular-nums;
  font-weight: 640;
  box-shadow: inset 1px 0 0 #e2e8f0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.empty-row {
  color: var(--muted);
  text-align: center;
}

.auth-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: #ffffff;
}

.auth-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.auth-status > div {
  display: grid;
  gap: 2px;
}

.auth-status span,
.auth-form span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.auth-status strong {
  color: var(--text);
  font-size: 15px;
}

.auth-status small {
  max-width: 270px;
  color: var(--muted-strong);
  line-height: 1.35;
  text-align: right;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f3f5f8;
}

.auth-tabs[hidden],
.auth-tab-panel[hidden] {
  display: none;
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-weight: 780;
}

.auth-tab:hover {
  color: var(--text);
}

.auth-tab.active {
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: var(--brand-dark);
}

.auth-tab:focus-visible {
  outline: 3px solid rgba(95, 37, 230, 0.2);
  outline-offset: 1px;
}

.auth-tab-panel {
  display: grid;
  gap: 16px;
}

.auth-panel-copy h2 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: 0;
}

.auth-panel-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-form {
  display: grid;
  gap: 13px;
}

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

.auth-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.auth-form .remember-field {
  display: flex;
  align-items: center;
  gap: 9px;
}

.auth-form .remember-field input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--brand);
}

.auth-form .remember-field span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 680;
  text-transform: none;
}

.auth-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 9px 11px;
}

.auth-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(95, 37, 230, 0.12);
  outline: 0;
}

.login-form .button,
.password-form .button,
.register-complete-form .button {
  width: 100%;
}

.register-request-form {
  grid-template-columns: minmax(210px, 1fr) auto;
  align-items: end;
}

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

.register-complete-form .button {
  grid-column: 1 / -1;
}

.registration-step {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.registration-step-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.registration-step-head span {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.registration-step-head strong {
  font-size: 13px;
}

.password-form {
  gap: 14px;
}

#logout-button {
  width: 100%;
}

#logout-button[hidden] {
  display: none;
}

.guest-mode-button {
  margin-top: 2px;
  border-color: #cfc5f7;
  color: var(--brand-dark);
}

.guest-mode-button[hidden],
[data-authenticated-only][hidden],
.guest-lock[hidden],
.leaderboard-private[hidden] {
  display: none;
}

.guest-lock {
  display: grid;
  justify-items: center;
  min-height: 260px;
  place-content: center;
  text-align: center;
}

.guest-lock h2 {
  margin: 3px 0 6px;
  font-size: 24px;
  letter-spacing: 0;
}

.guest-lock p:not(.section-kicker) {
  margin: 0 0 18px;
  color: var(--muted);
}

.guest-lock .button {
  min-width: 130px;
}

#auth-message {
  min-height: 20px;
  margin: 14px 0 0;
  text-align: center;
}

.submit-form {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(190px, 0.9fr) minmax(190px, 0.9fr) auto;
  gap: 14px;
  align-items: end;
  width: 100%;
  min-width: 0;
}

.submit-form label {
  min-width: 0;
}

.submitter-field {
  grid-column: 1;
  grid-row: 1;
}

.model-field {
  grid-column: 1 / 3;
  grid-row: 1;
}

.file-field {
  grid-column: 3 / 5;
  grid-row: 1;
}

.submission-column-row {
  display: contents;
}

.submission-column-row > label:nth-child(1) {
  grid-column: 1;
  grid-row: 2;
}

.submission-column-row > label:nth-child(2) {
  grid-column: 2;
  grid-row: 2;
}

.submission-column-row > .button {
  grid-column: 3 / 5;
  grid-row: 2;
}

.submission-column-row .button {
  min-height: 38px;
  white-space: nowrap;
}

.field-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.file-control {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 38px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
}

.file-control:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.file-control strong {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--line-strong);
  background: #f7f8fb;
  color: var(--text);
  font-size: 12px;
  padding: 0 12px;
  white-space: nowrap;
}

.file-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-control input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.status-text {
  margin: 14px 0 0;
}

code {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f9fafb;
  padding: 1px 5px;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.benchmark-rationale,
.benchmark-landscape,
.benchmark-protocol {
  overflow: hidden;
}

.benchmark-rationale .section-head,
.benchmark-landscape .section-head,
.benchmark-protocol .section-head {
  align-items: flex-start;
}

.rationale-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) repeat(2, minmax(0, 0.96fr));
  border-top: 1px solid var(--line);
}

.rationale-layout > div {
  min-width: 0;
  padding: 18px 20px 2px;
}

.rationale-layout > div:first-child {
  padding-left: 0;
}

.rationale-layout > div + div {
  border-left: 1px solid var(--line);
}

.rationale-layout > div:last-child {
  padding-right: 0;
}

.scenario-column {
  display: grid;
  gap: 18px;
}

.scenario-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
}

.scenario-index {
  color: var(--chart-blue);
  font-size: 12px;
  font-weight: 800;
}

.scenario-row h3,
.challenge-column h3,
.quality-column h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.scenario-row p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.55;
}

.evidence-list {
  display: grid;
  gap: 11px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  display: grid;
  gap: 2px;
}

.evidence-list strong {
  color: var(--text);
  font-size: 13px;
}

.evidence-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.landscape-head {
  margin-bottom: 14px;
}

.landscape-callouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}

.landscape-callouts > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 13px 16px;
}

.landscape-callouts > div:first-child {
  padding-left: 0;
}

.landscape-callouts > div + div {
  border-left: 1px solid var(--line);
}

.landscape-callouts > div:last-child {
  padding-right: 0;
}

.landscape-callouts strong {
  color: var(--brand-dark);
  font-size: 13px;
}

.landscape-callouts span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.comparison-table-wrap {
  overflow-x: auto;
  margin: 18px -2px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.comparison-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 13px;
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: #f7f8fb;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.comparison-table thead th:nth-child(1) {
  width: 18%;
}

.comparison-table thead th:nth-child(2) {
  width: 20%;
}

.comparison-table thead th:nth-child(3) {
  width: 16%;
}

.comparison-table thead th:nth-child(4) {
  width: 23%;
}

.comparison-table thead th:nth-child(5) {
  width: 23%;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table tbody th {
  color: var(--text);
  font-weight: 760;
}

.comparison-table tbody th strong,
.comparison-table tbody th a {
  display: inline-block;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.comparison-table tbody th a:hover {
  text-decoration: underline;
}

.comparison-table tbody th span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
}

.comparison-table tbody td {
  color: var(--muted-strong);
  line-height: 1.45;
}

.comparison-own-row th,
.comparison-own-row td {
  background: #f4f0ff;
}

.comparison-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.comparison-notes details {
  min-width: 0;
  padding: 14px 16px 0;
}

.comparison-notes details:first-child {
  padding-left: 0;
}

.comparison-notes details + details {
  border-left: 1px solid var(--line);
}

.comparison-notes details:last-child {
  padding-right: 0;
}

.comparison-notes summary,
.target-disclosure summary {
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
}

.comparison-note-body {
  margin-top: 10px;
}

.comparison-note-body p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.comparison-note-body strong {
  color: var(--muted-strong);
}

.protocol-grid {
  display: grid;
  grid-template-columns: 0.92fr 0.9fr 1.18fr;
  border-top: 1px solid var(--line);
}

.protocol-grid > article {
  min-width: 0;
  padding: 18px 20px 0;
}

.protocol-grid > article:first-child {
  padding-left: 0;
}

.protocol-grid > article + article {
  border-left: 1px solid var(--line);
}

.protocol-grid > article:last-child {
  padding-right: 0;
}

.protocol-label {
  display: block;
  margin-bottom: 12px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.protocol-stats {
  display: grid;
  gap: 7px;
  margin: 0;
}

.protocol-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eef0f4;
  padding-bottom: 6px;
}

.protocol-stats dt {
  color: var(--muted);
}

.protocol-stats dd {
  margin: 0;
  color: var(--text);
  font-weight: 760;
  text-align: right;
}

.target-disclosure {
  margin-top: 10px;
}

.target-disclosure p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.protocol-copy h3 {
  margin: 0 0 3px;
  font-size: 13px;
}

.protocol-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.protocol-copy small {
  display: block;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.5;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metric-list li {
  display: grid;
  gap: 2px;
}

.metric-list b {
  color: var(--text);
  font-size: 12px;
}

.metric-list span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.score-formula {
  margin: 13px 0 0;
  border-left: 3px solid var(--chart-blue);
  background: #f7f9ff;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.5;
  padding: 8px 10px;
}

@media (max-width: 980px) {
  .submit-section .submit-form {
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  .hero,
  .benchmark-header,
  .section-head,
  .cluster-layout {
    align-items: stretch;
    flex-direction: column;
  }

  .analytics-grid,
  .two-bars,
  .benchmark-grid,
  .download-options {
    grid-template-columns: 1fr;
  }

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

  .split-class-figure,
  .split-venn-figure,
  .split-detail-figure {
    grid-column: 1 / -1;
    padding-right: 0;
    padding-left: 0;
  }

  .split-venn-figure,
  .split-detail-figure {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .split-detail-figure:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }

  .split-class-figure {
    overflow-x: auto;
  }

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

  .split-summary {
    grid-template-columns: 1fr;
  }

  .split-summary-head {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 12px;
  }

  .target-map-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .rationale-layout,
  .protocol-grid,
  .comparison-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .rationale-layout > div,
  .rationale-layout > div:first-child,
  .rationale-layout > div:last-child,
  .protocol-grid > article,
  .protocol-grid > article:first-child,
  .protocol-grid > article:last-child,
  .comparison-notes details,
  .comparison-notes details:first-child,
  .comparison-notes details:last-child {
    padding: 16px 0;
  }

  .rationale-layout > div + div,
  .protocol-grid > article + article,
  .comparison-notes details + details {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .landscape-callouts > div,
  .landscape-callouts > div:first-child,
  .landscape-callouts > div:last-child {
    padding: 11px 0;
  }

  .landscape-callouts > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .leaderboard-table {
    --rank-column-width: 56px;
    --model-column-width: 180px;
  }

  .leaderboard-tabs {
    gap: 3px;
    padding: 3px;
  }

  .leaderboard-tab {
    min-height: 44px;
    padding: 7px 4px;
  }

  .leaderboard-tab strong {
    font-size: 12px;
  }

  .leaderboard-tab small {
    display: none;
  }

  .target-drawer-scrim { display: none; }
  .target-drawer {
    position: fixed;
    width: 100%;
    padding: 20px 18px 18px;
    border-left: 0;
    box-shadow: none;
  }
  .target-performance-main { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .target-performance-main > p { grid-column: 1 / -1; justify-content: space-between; }
  .target-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .target-metric-grid > span:nth-child(3) { border-left: 0; }
  .target-metric-grid > span:nth-child(n+3) { border-top: 1px solid #e5e7eb; }

  .submit-form,
  .submit-section .submit-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .auth-gate {
    padding: 16px;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .auth-brand {
    flex-wrap: wrap;
    gap: 8px;
  }

  .auth-brand span {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .auth-intro h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  .auth-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .auth-status small {
    max-width: none;
    text-align: left;
  }

  .register-request-form,
  .register-complete-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .register-complete-form .button {
    grid-column: auto;
  }

  .submitter-field,
  .model-field,
  .file-field,
  .submission-column-row > label:nth-child(1),
  .submission-column-row > label:nth-child(2),
  .submission-column-row > .button {
    grid-column: auto;
    grid-row: auto;
  }

  .submission-column-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  .submission-column-row > label,
  .submission-column-row > .button {
    width: 100%;
  }

  main,
  .navline {
    width: calc(100% - 32px);
  }

  .kpi-row,
  .split-row {
    grid-template-columns: 1fr;
  }

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

  .nav-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .guest-session {
    justify-content: space-between;
  }

  .account-corner {
    justify-content: space-between;
    width: 100%;
  }

  .daily-upload-quota { margin-left: auto; }

  .navlinks {
    width: 100%;
  }

  .split-figure-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .split-detail-figure .split-horizontal-row {
    grid-template-columns: minmax(100px, 125px) minmax(0, 1fr) 30px;
    gap: 8px;
  }

  .split-scroll-chart {
    overflow-x: visible;
  }

  .split-horizontal-list {
    min-width: 0;
  }

  .split-class-groups {
    min-width: 0;
  }

  .venn-stage {
    transform: none;
  }

  .venn-panels {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .page-switcher {
    min-width: 0;
  }

  .navlinks a {
    flex: 1 1 0;
    text-align: center;
  }

  .download-card {
    align-items: stretch;
    flex-direction: column;
  }

  .navlinks {
    flex-wrap: wrap;
    gap: 12px;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .pie-composition {
    grid-template-columns: 1fr;
  }

  .tabs {
    grid-auto-flow: row;
    width: 100%;
  }

  .composition-card .panel-head {
    grid-template-columns: 1fr;
  }

  .title-with-info {
    white-space: normal;
  }

  .analytics-overview,
  .analytics-grid,
  .chart-panel,
  .chart-panel.full,
  .chart {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-legend-inline {
    display: flex;
    flex-wrap: wrap;
    white-space: normal;
  }

  .cdr-row {
    grid-template-columns: 1fr;
  }

  .cdr-row span {
    text-align: left;
  }

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

  .benchmark-rationale,
  .benchmark-landscape,
  .benchmark-protocol {
    padding: 17px;
  }

  .comparison-table-wrap {
    margin-right: 0;
    width: 100%;
  }
}

/* V3 upgrade layer: preserve V2 layout and interaction dimensions. */
.v3-release-notice{display:flex;align-items:center;gap:20px;padding:20px 24px;margin:24px 0;border:1px solid #d9c4ff;border-left:4px solid #6500ff;border-radius:6px;background:#fcfaff}.v3-release-badge{color:#6500ff;font-size:12px;font-weight:800;white-space:nowrap}.v3-release-notice p{margin:5px 0 0;color:#78678a;font-size:13px}.v3-release-notice a{margin-left:auto;white-space:nowrap;color:#6500ff;font-weight:700}.v3-museum-link{font-size:13px;color:#735487;text-decoration:none;white-space:nowrap}.v3-evolution-image{width:100%;height:auto;display:block}.v3-feature-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;border-top:1px solid #eee5fb;padding:22px 0}.v3-feature-strip b{display:block;color:#6500ff;font-size:26px}.v3-feature-strip span{font-size:13px;color:#786a86}.v3-level-explainer p{font-size:14px;line-height:1.8}.leaderboard-view-tabs{grid-template-columns:repeat(8,minmax(0,1fr))!important}.leaderboard-view-tab{min-width:0!important}.leaderboard-view-tab small{font-size:11px}.v3-task-view-note{font-size:12px;color:#78678a;padding:12px 2px;margin:0}.target-class-tabs{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.target-class-tab{padding:9px 3px!important;font-size:11px;min-width:0}.v3-submission-tasks{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:12px 24px;gap:8px;background:#faf7ff}.v3-submission-tasks span{display:block;font-size:11px;color:#776388}.v3-submission-tasks strong{font-size:14px;color:#6500ff}.site-header{border-bottom:2px solid #eadfff}.state-pill{border-color:#d9c4ff}.benchmark-board-tabs{display:none!important}
@media(max-width:850px){.v3-release-notice{flex-wrap:wrap;gap:12px}.v3-release-notice a{margin-left:0}.leaderboard-view-tabs{display:flex!important;overflow-x:auto!important;max-width:100%;gap:4px}.leaderboard-view-tab{flex:0 0 110px!important}.v3-feature-strip{grid-template-columns:repeat(2,1fr)}.v3-submission-tasks{padding:12px}.v3-museum-link{font-size:12px}.nav-actions{flex-wrap:wrap}}
.leaderboard-tabs{grid-template-columns:repeat(8,minmax(0,1fr))!important}.leaderboard-tab{min-width:0!important}.leaderboard-tab small{font-size:10px}.page-switcher a.active{background:#6500ff!important}.v3-score-baseline-note{margin:18px 0 0;font-size:13px;color:#66567b;line-height:1.7}@media(max-width:850px){.leaderboard-tabs{display:flex!important;max-width:100%;overflow-x:auto!important}.leaderboard-tab{flex:0 0 110px!important}}@media(max-width:850px){.navline{flex-wrap:wrap!important}.nav-actions{flex:1 1 100%!important;width:100%;min-width:0!important;max-width:100%}.navlinks.page-switcher{width:100%!important;min-width:0!important;max-width:100%}.page-switcher a{min-width:0!important;white-space:normal}.leaderboard-tabs{min-width:0;width:100%}}