:root {
  --ink: #1f2433;
  --muted: #657083;
  --line: #d9dee7;
  --soft: #f5f7fa;
  --paper: #ffffff;
  --blue: #2f6fcb;
  --orange: #d96f31;
  --green: #257f63;
  --bad: #b94b48;
  --warn: #e4c55a;
  --shadow: 0 12px 28px rgba(23, 31, 48, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #eef2f6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  display: block;
  padding: 14px 28px 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar-grid {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  flex-wrap: nowrap;
  width: 100%;
}
.topbar-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.topbar.header-compact {
  padding: 10px 20px 8px;
}
.topbar.header-compact .topbar-details { display: none; }
.topbar.header-compact .topbar-grid { align-items: center; }
.topbar.header-focus {
  padding: 8px 16px 6px;
}
.topbar.header-focus .topbar-details { display: none; }
.topbar.header-focus .layout-btn:not(#headerExpandBtn) { display: none; }
.topbar.header-focus .tabs { width: 100%; }
.topbar-main { min-width: 0; flex: 1 1 auto; }

.layout-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: end;
}
.layout-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.layout-btn:hover { border-color: #aeb9ca; background: #f3f6fa; color: var(--ink); }
.layout-btn[aria-pressed="true"] {
  border-color: var(--blue);
  background: #eef5ff;
  color: #1f4f96;
}
.layout-btn-muted[aria-pressed="true"] {
  border-color: #9eb6dc;
  background: #f7faff;
  color: #466089;
}

.fold-block {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fold-block.fold-banner {
  margin-bottom: 12px;
  box-shadow: none;
  border-style: dashed;
  background: transparent;
}
.fold-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  user-select: none;
}
.fold-summary::-webkit-details-marker { display: none; }
.fold-summary::before {
  content: "▾";
  color: var(--blue);
  font-size: 14px;
  margin-right: 8px;
  transition: transform .15s ease;
}
.fold-block:not([open]) .fold-summary::before { transform: rotate(-90deg); }
.fold-summary-banner {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.fold-hint {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}
.fold-body { padding: 0 16px 16px; }
.fold-banner .fold-body { padding: 0 12px 12px; }
.fold-block > .guide-card,
.fold-block > .abstract-card,
.fold-block > .viz-card { margin: 0; box-shadow: none; border: 0; }
.fold-block .guide-card-primary { margin-bottom: 0; }

.paper-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.paper-bar-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.paper-bar-btn:hover { border-color: #aeb9ca; background: #f3f6fa; }

.bibtex-block {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 11px;
  overflow-x: auto;
  max-width: 720px;
}

.eyebrow {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 12px;
}

h1, h2, h3, p { margin: 0; }
h1 { font-size: 34px; letter-spacing: 0; }
.site-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}
h2 { font-size: 20px; }
h3 { font-size: 15px; }
.paper-title {
  max-width: 840px;
  margin-top: 6px;
  color: #39445a;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}
.authors {
  max-width: 940px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab, .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
}
.tab, .pill { transition: background .15s ease, border-color .15s ease, color .15s ease; }
.tab:hover, .pill:hover { border-color: #aeb9ca; background: #f3f6fa; }
.tab.active, .pill.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.tab.active:hover, .pill.active:hover { background: var(--ink); }
.content-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  width: min(720px, 100%);
}
.content-tab {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  color: var(--ink);
  text-align: left;
  padding: 9px 10px;
  cursor: pointer;
}
.content-tab span {
  display: block;
  font-weight: 800;
  font-size: 13px;
}
.content-tab small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}
.content-tab.active {
  border-color: var(--blue);
  background: linear-gradient(180deg, #eef5ff, #fff);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 203, .22);
}

main { padding: 22px 28px 42px; }

.control-band {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 1.1fr .9fr 1.15fr;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.control-band.hidden,
label[data-control].hidden { display: none !important; }

.key-finding {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #eef5ff;
  color: #2a3d5c;
  font-size: 14px;
  line-height: 1.5;
}

.hero-tagline {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}

.hero-stat-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.hero-stat {
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f4f8ff);
  box-shadow: none;
}

.hero-stat b {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  color: var(--blue);
  margin-bottom: 6px;
}

.hero-stat span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #465063;
}

.paper-fig-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.paper-bar-btn-disabled {
  opacity: 0.72;
  cursor: not-allowed;
  background: #f3f5f8;
  color: var(--muted);
}

.paper-bar-btn-disabled:hover {
  border-color: var(--line);
  background: #f3f5f8;
}

.guide-card-primary {
  border-color: #c5d8f3;
  background: linear-gradient(180deg, #fff, #f7faff);
  margin-bottom: 16px;
}
.guide-lead {
  margin: 8px 0 14px;
  color: #465063;
  font-size: 14px;
  line-height: 1.55;
  max-width: 980px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.cta-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid var(--line);
}
.cta-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.cta-secondary {
  background: #fff;
  color: var(--ink);
}
.cta-btn:hover { filter: brightness(0.97); }

.info-banner {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #465063;
  font-size: 13px;
  line-height: 1.5;
}
.info-banner-primary {
  border-color: #c5d8f3;
  background: #eef5ff;
}
.inline-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--blue);
  font-weight: 750;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.term-inline {
  border-bottom: 1px dotted #8aa0c0;
}
.term-with-info {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.term-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid #c5d4ea;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  flex: 0 0 auto;
}
.term-info-btn:hover {
  background: #dbeaff;
}

.glossary-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.glossary-card-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.glossary-preview { margin-top: 0; }
.glossary-more-note {
  margin-top: 8px !important;
  color: var(--muted);
  font-size: 12px;
}
.cta-glossary {
  background: #eef5ff;
  color: var(--blue);
  border-color: #c5d8f3;
  font-weight: 800;
}

.glossary-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  z-index: 30;
}
.glossary-modal.open { display: flex; }
.glossary-modal-panel {
  width: min(720px, 100%);
  max-height: min(80vh, 760px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.glossary-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.glossary-close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.glossary-modal-body {
  overflow: auto;
  padding: 14px 18px 18px;
  display: grid;
  gap: 12px;
}
.glossary-modal-item b {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.glossary-modal-item p {
  color: #465063;
  font-size: 13px;
  line-height: 1.45;
}

.replicates-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.table-scroll-wrap { margin-top: 6px; }
.table-scroll-note {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.heat-color-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
.heat-color-bar {
  flex: 1;
  max-width: 220px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(37,127,99), rgb(210,232,207), rgb(244,221,124), rgb(222,105,72), rgb(158,35,42));
  border: 1px solid var(--line);
}

.model-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.model-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}
.model-legend-chip b {
  color: var(--blue);
  font-size: 10px;
}
.model-legend-chip span {
  color: #465063;
}

.floating-tip {
  position: fixed;
  z-index: 40;
  max-width: min(360px, calc(100vw - 16px));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 31, 48, 0.18);
  pointer-events: none;
}
.floating-tip-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--blue);
  margin-bottom: 4px;
}
.floating-tip-body {
  font-size: 12px;
  line-height: 1.45;
  color: #334057;
}

.heat-model-col {
  cursor: help;
}

.compact-heat {
  min-width: 0 !important;
  width: 100%;
  table-layout: fixed;
}
.compact-heat th,
.compact-heat td {
  padding: 4px 3px;
  font-size: 10px;
  height: auto;
  min-width: 0;
  width: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-heat th:first-child,
.compact-heat th[scope="row"],
.compact-heat td:first-child {
  width: 108px;
  min-width: 108px;
  font-size: 11px;
  text-align: left;
  background: #f8fafc;
  font-weight: 750;
}
.heat-table th[scope="row"] {
  text-align: left;
  background: #f8fafc;
  font-weight: 750;
}

.render-error-banner {
  margin: 12px;
  padding: 12px 14px;
  border: 1px solid #f0b4b4;
  border-radius: 8px;
  background: #fff5f5;
  color: #7a1f1f;
  font-size: 13px;
}

.leaderboard-hint {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 10px;
}
.rank-empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #465063;
  font-size: 13px;
  line-height: 1.5;
}
.rank-empty-hint { margin-top: 8px; color: var(--muted); font-size: 12px; }

.qual-back-link {
  display: none;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.qual-quick-picks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.qual-quick-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.qual-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.qual-quick-chip.active { border-color: var(--blue); background: #eef5ff; }
.qual-empty-state {
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}
.qual-tab-desc {
  margin: 0;
  padding: 0 16px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  border-bottom: 1px solid var(--line);
}
.role-point { cursor: pointer; outline: none; }
.role-point .role-dot,
.role-point .role-halo,
.role-point .role-label {
  transition: transform .16s ease, opacity .16s ease, r .16s ease;
}
.role-point:hover .role-dot,
.role-point.is-active .role-dot,
.role-point:focus-visible .role-dot {
  stroke-width: 2.4;
}
.role-point:hover .role-halo,
.role-point.is-active .role-halo,
.role-point:focus-visible .role-halo {
  opacity: 0.34;
}
.role-scatter-has-focus .role-point:not(.is-active) {
  opacity: 0.28;
}
.role-scatter-has-focus .role-point.is-active .role-label {
  fill: #0f1728;
}

.compact-heat td b { font-size: 11px; }
.compact-heat td small { font-size: 9px; margin-top: 1px; }

.compact-stability {
  min-width: 0 !important;
  width: 100%;
}
.compact-stability th,
.compact-stability td {
  padding: 6px 8px;
  font-size: 11px;
  height: auto;
}
.compact-stability td:first-child,
.compact-stability th:first-child {
  width: auto;
  min-width: 120px;
}
.stability-row.active { background: #eef5ff; }
.stability-details { margin-top: 10px; }
.stability-detail {
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.stability-detail.hidden { display: none; }
.stability-detail-head {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}
.stability-run-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stability-run-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
}
.glossary-list {
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}
.glossary-list dt {
  font-weight: 800;
  font-size: 13px;
}
.glossary-list dd {
  margin: 2px 0 0;
  color: #465063;
  font-size: 13px;
  line-height: 1.45;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(238, 242, 246, 0.92);
  z-index: 20;
}
.loading-overlay.hidden { display: none; }
.loading-card {
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 700;
  max-width: 360px;
}
.loading-title { font-weight: 800; margin-bottom: 10px; }
.loading-sub { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; font-weight: 500; }
.loading-skeleton { display: grid; gap: 8px; margin-top: 4px; }
.loading-skeleton span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef1f5, #f8fafc, #eef1f5);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}
.loading-skeleton span:nth-child(2) { width: 88%; animation-delay: .15s; }
.loading-skeleton span:nth-child(3) { width: 72%; animation-delay: .3s; }
@keyframes skeleton-pulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
body.loading main { opacity: 0.35; pointer-events: none; }
body.qual-loading #qualText { opacity: 0.55; }

.qual-loading-note {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  background: #f3f8ff;
  color: #334057;
  font-size: 12px;
  font-weight: 650;
}
.qual-loading-note.hidden { display: none; }
.qual-loading-inline {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 0;
}

.method-roster-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.method-roster-note {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  max-width: 72ch;
}
.model-roster-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.model-roster-group {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.model-roster-group.model-roster-baseline {
  background: #f8fafc;
}
.model-roster-group.model-roster-focal {
  background: #f3f8ff;
  border-color: #d7e3f5;
}
.model-roster-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 8px;
}
.model-roster-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #eef1f5;
  color: #5a6577;
  font-size: 10px;
  font-weight: 800;
}
.model-roster-focal .model-roster-count {
  background: #dfeafb;
  color: #2f6fcb;
}
.model-roster-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.model-roster-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}
.model-roster-baseline .model-roster-chip {
  background: #fff;
  color: #5a6577;
}
.model-roster-focal .model-roster-chip {
  border-color: #c8daf5;
  background: #fff;
  color: #172033;
}

.tab:focus-visible,
.pill:focus-visible,
.cta-btn:focus-visible,
.paper-bar-btn:focus-visible,
.inline-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: white;
  color: var(--ink);
  font-size: 14px;
}

.panel { display: none; }
.panel.active { display: block; }

.guide-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.abstract-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid rgba(47,111,203,.55);
  border-radius: 8px;
  padding: 18px 28px 18px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: stretch;
  gap: 32px;
}
.abstract-body { min-width: 0; }
.abstract-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-left: 32px;
  padding-right: 4px;
  border-left: 1px solid var(--line);
}
.abstract-logos a { display: block; line-height: 0; width: 100%; text-align: center; }
.abstract-logos img {
  width: auto;
  height: auto;
  object-fit: contain;
}
.abstract-logos .logo-dial {
  width: 100%;
  max-width: 340px;
}
.abstract-logos .logo-haas {
  width: 100%;
  max-width: 280px;
}
@media (max-width: 900px) {
  .abstract-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 22px;
  }
  .abstract-logos {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 0;
    padding-top: 16px;
    border-left: none;
    border-top: 1px solid var(--line);
    gap: 36px;
  }
  .abstract-logos .logo-dial { max-width: 260px; }
  .abstract-logos .logo-haas { max-width: 200px; }
}
.abstract-card h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 0 0 8px;
}
.abstract-card p {
  max-width: 980px;
  margin: 0 0 10px;
  color: #465063;
  font-size: 14.5px;
  line-height: 1.6;
}
.abstract-card p:last-child { margin-bottom: 0; }
.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.resource-link:hover {
  border-color: rgba(47,111,203,.55);
  box-shadow: var(--shadow);
}
.resource-link svg { flex: 0 0 auto; }
.authors a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.authors a:hover { color: var(--ink); }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.guide-grid p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.guide-grid b { color: var(--ink); }
.guide-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.step-num {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-top: 1px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin: 22px 2px 12px;
}
.section-heading p { color: var(--muted); max-width: 760px; font-size: 14px; }

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.metric {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.metric:nth-child(2) { border-top-color: var(--green); }
.metric:nth-child(3) { border-top-color: var(--orange); }
.metric:nth-child(4) { border-top-color: var(--ink); }
.metric b { display: block; font-size: 24px; }
.metric span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(47,111,203,.1), transparent 44%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.project-hero h2 {
  max-width: 780px;
  font-size: 30px;
  line-height: 1.08;
  margin-top: 5px;
}
.project-hero p {
  max-width: 880px;
  margin-top: 10px;
  color: #465063;
  font-size: 15px;
  line-height: 1.55;
}
.project-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.project-stats div {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
}
.project-stats b {
  display: block;
  font-size: 24px;
}
.project-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.finding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.finding-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.finding-card b {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}
.finding-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.viz-card, .text-pane, .model-list, .rationale-list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.viz-card { padding: 16px; overflow: auto; }
.viz-card.heat-viz-card { overflow: visible; }
.viz-card h3 { margin-bottom: 12px; }
.compact-figure {
  max-width: 560px;
  margin: 0 auto;
}

.role-swap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 340px);
  gap: 22px;
  align-items: start;
}
.role-swap-left { min-width: 0; }
.role-swap-left .svg-wrap { max-width: 520px; margin: 0 auto; }
.role-swap-right { min-width: 0; }
.role-info {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(47, 111, 203, 0.04), transparent 48%),
    #fbfcfe;
  padding: 14px 12px 12px;
}
.role-info-head {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.role-info-sub {
  margin: 4px 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.role-model-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 480px;
  overflow: auto;
  padding-right: 2px;
  scroll-behavior: smooth;
}
.role-model-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 8px 10px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.role-model-row:hover,
.role-model-row.is-active,
.role-model-row:focus-visible {
  background: #fff;
  border-color: #d5dce8;
  box-shadow: 0 4px 14px rgba(23, 31, 48, 0.06);
  outline: none;
}
.role-model-row.lean-aug.is-active,
.role-model-row.lean-aug:hover {
  border-color: rgba(47, 111, 203, 0.35);
  background: linear-gradient(90deg, rgba(47, 111, 203, 0.08), #fff 55%);
}
.role-model-row.lean-auto.is-active,
.role-model-row.lean-auto:hover {
  border-color: rgba(217, 111, 49, 0.35);
  background: linear-gradient(90deg, rgba(217, 111, 49, 0.1), #fff 55%);
}
.role-model-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.role-model-name {
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.role-model-lean {
  font-size: 11px;
  color: var(--muted);
}
.role-model-row.lean-aug .role-model-lean { color: #2a5fad; }
.role-model-row.lean-auto .role-model-lean { color: #b85a22; }
.role-model-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.role-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  min-width: 42px;
}
.role-score em {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.role-score b {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}
.role-score-auto b { color: #b85a22; }
.role-score-aug b { color: #2a5fad; }

.role-quadrants .q-aug { fill: rgba(47, 111, 203, 0.07); }
.role-quadrants .q-auto { fill: rgba(217, 111, 49, 0.08); }
.role-quadrants .q-both { fill: rgba(37, 127, 99, 0.06); }
.role-quadrants .q-weak { fill: rgba(90, 107, 130, 0.05); }
.role-q-label { fill: #6b7587; }
.role-q-label.q-aug-label { fill: #3a6fbf; }
.role-q-label.q-auto-label { fill: #c2662a; }
.role-q-label.q-both-label { fill: #2f7a5f; }
.role-q-label.q-weak-label { fill: #6b7587; }

@media (max-width: 900px) {
  .role-swap-layout { grid-template-columns: 1fr; }
  .role-model-list { max-height: 320px; }
}

.heat-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
.heat-table:not(.compact-heat) {
  min-width: 720px;
}
.heat-table th, .heat-table td {
  border: 1px solid white;
  text-align: center;
  padding: 8px 6px;
  font-size: 12px;
  height: 36px;
}
.heat-table th {
  background: #eef2f6;
  color: #334057;
  font-weight: 800;
  position: sticky;
  top: 0;
}
.heat-table th:first-child {
  text-align: left;
  width: 150px;
  left: 0;
  z-index: 1;
}
.heat-table td:first-child {
  text-align: left;
  background: #f8fafc;
  font-weight: 750;
  position: sticky;
  left: 0;
}
.heat-na {
  background: #f1f3f6 !important;
  color: #7b8494 !important;
  font-size: 11px !important;
  font-weight: 700;
}
.replicate-heat td small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
  opacity: .78;
}
.stability-table {
  min-width: 900px;
}
.stability-table td,
.stability-table th {
  font-size: 11px;
}
.stability-table td:first-child,
.stability-table th:first-child {
  width: 170px;
}
.validation-card {
  margin-bottom: 18px;
}
.validation-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 12px;
}
.validation-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.validation-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  border: 1px solid #cfe0f6;
  font-size: 12px;
  font-weight: 800;
}
.validation-note {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.validation-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
.validation-cols h3 {
  margin: 6px 0 10px;
}
.validation-table-block {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}
.validation-heat td small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
  opacity: .78;
}
.validation-models {
  min-width: 760px;
}
.validation-heat {
  min-width: 980px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.05fr) minmax(150px, 1fr) 64px;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 13px;
}
.bar-row button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.bar-row button:hover {
  border-color: #8eb0e8;
  background: #f8fbff;
  box-shadow: 0 1px 0 rgba(47, 111, 203, .08);
}
.row-chevron {
  justify-self: end;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  opacity: 0.45;
  transition: opacity .15s ease, transform .15s ease;
}
.bar-row button:hover .row-chevron {
  opacity: 1;
  transform: translateX(2px);
}
.stability-row {
  cursor: pointer;
  transition: background .15s ease;
}
.stability-row:hover {
  background: #f8fbff;
}
.row-chevron-cell {
  color: var(--muted);
  font-size: 16px;
  opacity: 0.45;
  text-align: right;
  width: 24px;
}
.stability-row:hover .row-chevron-cell {
  opacity: 1;
}
.bar-row button.active {
  border-color: var(--blue);
  background: #eef5ff;
}
.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #edf1f5;
  color: #334057;
  font-weight: 900;
}
.rank-badge.top {
  background: var(--ink);
  color: #fff;
}
.leader-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.bar-track { background: #edf1f5; height: 26px; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--blue); border-radius: 5px; }

.svg-wrap svg { width: 100%; height: auto; display: block; }
.legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.role-legend {
  display: none;
}
.chart-note {
  margin: 4px 0 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.rubric-label {
  display: inline-block;
  cursor: help;
  border-bottom: 1px dotted #93a0b5;
}
.contestant:hover .score-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.rubric-detail {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.rubric-detail b { display: block; margin-bottom: 5px; }
.rubric-detail p { color: var(--muted); font-size: 13px; line-height: 1.45; }

.qual-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 16px;
  align-items: start;
}
.model-list, .rationale-list { padding: 12px; max-height: 740px; overflow: auto; }
.model-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  background: white;
  padding: 10px;
  border-radius: 7px;
  margin-bottom: 8px;
  cursor: pointer;
  text-align: left;
}
.model-button.active { border-color: var(--blue); background: #eef5ff; }
.model-button span:last-child { color: var(--muted); font-size: 12px; }
.model-button .model-role {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.text-pane { overflow: hidden; }
.text-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.role-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.role-chip {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 8px 10px;
}
.role-chip b {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0;
}
.role-chip span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 800;
}
#qualText {
  padding: 16px;
  max-height: 700px;
  overflow: auto;
}
.qual-doc { display: flex; flex-direction: column; gap: 16px; }
.qual-section {
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.qual-sec-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.qual-sec-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink);
}
.qual-sec-sub { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.qual-sec-body { padding: 14px 16px; font-size: 13px; line-height: 1.62; color: #2c3444; }
.qual-sec-body.qual-empty { color: var(--muted); font-style: italic; }
.qual-section.qual-task { border-left-color: var(--blue); }
.qual-section.qual-task .qual-sec-head { background: #eef5ff; }
.qual-section.qual-output { border-left-color: var(--blue); }
.qual-section.qual-output .qual-sec-head { background: #eef5ff; }
.qual-section.qual-assistant { border-left-color: #7a5af0; }
.qual-section.qual-assistant .qual-sec-head { background: #f1ecfe; }
.qual-section.qual-worker { border-left-color: var(--green); }
.qual-section.qual-worker .qual-sec-head { background: #e9f6f0; }
.qual-section.qual-evaluator { border-left-color: var(--orange); }
.qual-section.qual-evaluator .qual-sec-head { background: #fdeee3; }
.qual-sec-body.md > *:first-child { margin-top: 0; }
.qual-sec-body.md > *:last-child { margin-bottom: 0; }
.qual-sec-body .md-h { margin: 14px 0 6px; line-height: 1.3; color: var(--ink); }
.qual-sec-body .md-h1 { font-size: 16px; }
.qual-sec-body .md-h2 { font-size: 15px; }
.qual-sec-body .md-h3 { font-size: 13.5px; }
.qual-sec-body .md-h4 {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.qual-sec-body p { margin: 0 0 10px; }
.qual-sec-body .md-list { margin: 0 0 10px; padding-left: 20px; }
.qual-sec-body .md-list li { margin: 3px 0; }
.qual-sec-body code {
  background: #eef1f6;
  border-radius: 4px;
  padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}
.qual-sec-body .md-code {
  background: #f4f6fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  max-height: none;
}
pre {
  margin: 0;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  max-height: 680px;
  overflow: auto;
}
.rationale {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.rationale:first-of-type { border-top: 0; }
.rationale .meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.score-chip {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #edf1f5;
  font-size: 12px;
  margin-left: 4px;
}
.contestants {
  display: grid;
  gap: 10px;
  margin: 10px 0 14px;
}
.contestant-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.contestant-detail.winner {
  border-color: var(--blue);
  background: #eef5ff;
}
.contestant-detail summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
  list-style: none;
}
.contestant-detail summary::-webkit-details-marker { display: none; }
.contestant-detail summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-right: 4px;
  border-radius: 50%;
  background: #e9eef6;
  color: var(--muted);
  font-weight: 900;
  flex: 0 0 auto;
}
.contestant-detail[open] summary::before { content: "-"; }
.score-inline {
  padding: 2px 14px 14px;
  background: #fff;
}
.mini-score {
  width: 100%;
  border-collapse: collapse;
}
.mini-score td {
  border-bottom: 1px solid #edf1f5;
  padding: 8px 5px;
  vertical-align: top;
  font-size: 13px;
}
.mini-score td:nth-child(2) {
  width: 230px;
}
.mini-score td:last-child {
  text-align: right;
  font-weight: 800;
  width: 48px;
}
.mini-track {
  height: 14px;
  border-radius: 999px;
  background: #edf1f5;
  overflow: hidden;
}
.mini-fill {
  height: 100%;
  border-radius: 999px;
}

/* ── Methodology diagram ───────────────────────────────────────── */

.method-card { margin-bottom: 16px; overflow: visible; }
.method-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.method-head p { color: var(--muted); font-size: 13px; }

.method-card button {
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.method-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.method-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.method-block-title {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.title-roles { background: #dde4f5; color: #2b3a63; }
.title-regimes { background: #f3e4c8; color: #6b5320; }

.role-rows { display: grid; }
.role-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid #eef1f5;
  background: #fff;
  transition: background .15s ease;
}
.role-row:first-child { border-top: 0; }
.role-row:hover { background: #f6f9fc; }
.role-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.role-icon svg { width: 21px; height: 21px; }
.icon-worker { background: #e7eefb; color: var(--blue); }
.icon-assistant { background: #fbeee3; color: var(--orange); }
.icon-evaluator { background: #e3f1ec; color: var(--green); }
.role-copy b { display: block; font-size: 13px; }
.role-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }

.regime-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #eef1f5;
  height: calc(100% - 33px);
}
.regime {
  border: 0;
  padding: 12px 14px;
  background: #fff;
  transition: background .15s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.regime:hover { background: #f6f9fc; }
.regime b { display: block; font-size: 13px; padding-bottom: 4px; }
.regime small { color: var(--muted); font-size: 11.5px; line-height: 1.45; display: block; }
.regime-auto b { color: var(--orange); }
.regime-aug b { color: var(--blue); }

.pipeline-title {
  display: inline-block;
  margin: 2px 0 12px;
  padding: 5px 12px;
  border: 1px solid #cfddd2;
  border-radius: 7px;
  background: #e8f1e9;
  color: #2c5740;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pipeline {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.pipe-node {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pipe-node:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(23, 31, 48, .1); }
.pipe-node b { font-size: 13px; }
.pipe-node > span { color: var(--muted); font-size: 11.5px; line-height: 1.4; }

.input-node { flex: 0 1 150px; border-color: #b9c8e6; background: #eef3fc; }
.pipe-lanes { flex: 1.5 1 280px; display: grid; gap: 8px; }
.lane { width: 100%; }
.lane-auto { border-color: #ecc9ae; background: #fdf6f0; }
.lane-aug { border-color: #b9cdec; background: #f0f6fe; }
.lane-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.lane-auto .lane-tag { color: var(--orange); }
.lane-aug .lane-tag { color: var(--blue); }
.lane-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mini-chip {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}
.mini-chip.ghost { border-style: dashed; color: var(--muted); font-weight: 650; }
.mini-arrow { color: var(--muted); font-weight: 800; }
.lane-note { color: var(--muted); font-size: 11px; }

.eval-node { flex: 1 1 170px; border-color: #93cfd4; background: #e9f7f8; }
.results-node { flex: 1 1 170px; border-color: #a9cbb4; background: #ecf5ee; }

.pipe-arrow {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #8a94a6;
}
.pipe-arrow svg { width: 22px; height: 22px; }
.pipe-arrow em {
  font-style: normal;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.method-card [data-stage].active {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(31, 36, 51, .16);
}
.role-row.active, .regime.active {
  background: #f0f4f9;
  box-shadow: inset 3px 0 0 var(--ink);
}

.method-detail {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 10px;
  background: #f8fafc;
}
.method-detail b { display: block; font-size: 14px; margin-bottom: 5px; }
.method-detail p { color: #465063; font-size: 13px; line-height: 1.55; max-width: 1020px; }
.method-detail .pill { margin-top: 10px; }

/* ── Findings snapshot ─────────────────────────────────────────── */

.findings-card {
  margin-bottom: 16px;
}

.section-heading.compact {
  margin-bottom: 12px;
}

.section-heading.compact h2 {
  font-size: 18px;
}

.findings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.finding-summary-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1.5px solid #c5cedc;
  border-radius: 4px;
  padding: 18px 18px 16px 20px;
  min-height: 188px;
  box-shadow: 4px 4px 0 rgba(26, 34, 51, 0.07);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96)),
    linear-gradient(180deg, #fff, #f4f7fb);
}

.finding-summary-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #94a3b8;
}

.finding-summary-card.finding-card--auto {
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(217, 111, 49, 0.16), transparent 55%),
    linear-gradient(180deg, #fffdf8, #fff8f0);
  border-color: #e4b892;
}

.finding-summary-card.finding-card--auto::before {
  background: linear-gradient(180deg, #d96f31, #b45309);
}

.finding-summary-card.finding-card--aug {
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(47, 111, 203, 0.16), transparent 55%),
    linear-gradient(180deg, #fbfcff, #eef4ff);
  border-color: #b6c8e8;
}

.finding-summary-card.finding-card--aug::before {
  background: linear-gradient(180deg, #2f6fcb, #1d4f9c);
}

.finding-summary-card.finding-card--spec {
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(47, 127, 99, 0.16), transparent 55%),
    linear-gradient(180deg, #f7fbf9, #eaf6ef);
  border-color: #a9cbb8;
}

.finding-summary-card.finding-card--spec::before {
  background: linear-gradient(180deg, #2f7f63, #1f5c47);
}

.finding-summary-card .summary-kicker {
  display: inline-block;
  color: #1a2233;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 34, 51, 0.08);
}

.finding-card--auto .summary-kicker { color: #8f3d0c; border-color: rgba(217, 111, 49, 0.28); }
.finding-card--aug .summary-kicker { color: #163f84; border-color: rgba(47, 111, 203, 0.28); }
.finding-card--spec .summary-kicker { color: #1f5c47; border-color: rgba(47, 127, 99, 0.28); }

.finding-summary-card .finding-headline,
.finding-summary-card b {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #1a2233;
  margin: 0 0 12px;
}

.finding-metric {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 34, 51, 0.08);
}

.finding-metric-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #1a2233;
}

.finding-card--auto .finding-metric-num { color: #c45a1a; }
.finding-card--aug .finding-metric-num { color: #1f5fbf; }
.finding-card--spec .finding-metric-num { color: #2f7f63; }

.finding-metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #5a6780;
  line-height: 1.25;
  padding-bottom: 4px;
}

.finding-metric--split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
  padding: 8px;
}

.finding-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(47, 127, 99, 0.22);
  text-align: center;
}

.finding-chip b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
  margin: 0;
  color: #2f7f63;
}

.finding-chip em {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4d5f52;
}

.finding-summary-card p {
  margin: 0;
  color: #3d4a5c;
  font-size: 13px;
  line-height: 1.45;
}

.finding-summary-card p strong {
  color: #1a2233;
  font-weight: 700;
}

.winner-block {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.winner-block h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.winner-block h3 span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.winner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.winner-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  font-size: 12px;
  color: #334057;
}

.winner-pill b {
  color: var(--ink);
  font-size: 12px;
}

.winner-pill em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

/* ── Misc polish ───────────────────────────────────────────────── */

.heat-table td { transition: filter .1s ease; }
.heat-table tbody td:hover { filter: brightness(.93); }
select:focus, button:focus-visible, .tab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.model-button { transition: border-color .15s ease, background .15s ease; }
.model-button:hover { border-color: #aeb9ca; }

@media (max-width: 1000px) {
  .topbar { padding: 0 16px; }
  .topbar-grid { align-items: stretch; }
  .layout-toolbar { justify-content: start; }
  .hero-stat-band { grid-template-columns: 1fr; }
  .control-band, .two-col, .metric-row, .qual-grid, .guide-grid, .role-strip, .project-hero, .finding-grid, .hero-stat-band { grid-template-columns: 1fr; }
  .control-band { grid-template-columns: 1fr !important; }
  .qual-back-link { display: inline-flex; }
  .qual-grid { display: flex; flex-direction: column; }
  .model-list, .rationale-list, .text-pane { max-height: none; }
  .findings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-stats { grid-template-columns: 1fr 1fr; }
  .content-tabs { grid-template-columns: 1fr 1fr; }
  .method-top, .regime-cols { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; align-items: stretch; }
  .input-node, .pipe-lanes, .eval-node, .results-node { flex: 1 1 auto; }
  .pipe-arrow { flex-direction: row; }
  .pipe-arrow svg { transform: rotate(90deg); }
}

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

/* Current layout with the original pre-redesign CentaurBench palette. */
:root {
  --ink: #1f2433;
  --muted: #657083;
  --line: #d9dee7;
  --soft: #f5f7fa;
  --paper: #ffffff;
  --blue: #2f6fcb;
  --orange: #d96f31;
  --green: #257f63;
  --bad: #b94b48;
  --warn: #e4c55a;
  --shadow: none;
}

body {
  background: #eef2f6;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.topbar {
  padding: 0 clamp(20px, 4vw, 64px) 0;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #d9dee7;
  backdrop-filter: blur(10px);
}

.topbar-grid {
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
}

.layout-toolbar { display: none; }

.tabs {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 1 1 0;
  min-width: max-content;
  min-height: 56px;
  padding: 14px clamp(10px, 1.4vw, 22px);
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #465063;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}

.tab:hover {
  border-color: #aeb9ca;
  background: transparent;
  color: var(--ink);
}

.tab.active,
.tab.active:hover {
  border-color: var(--orange);
  background: transparent;
  color: var(--ink);
}

.topbar-details {
  padding: 17px 0 20px;
  border-top: 1px solid #d9dee7;
}

.paper-title {
  max-width: 940px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.authors {
  max-width: 1000px;
  margin-top: 9px;
  color: #657083;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.authors a { color: #2f6fcb; text-underline-offset: 2px; }

.paper-bar { margin-top: 13px; }

.paper-bar-btn,
.layout-btn,
.pill,
.cta-btn,
.qual-quick-chip {
  border-radius: 3px;
  box-shadow: none;
}

.paper-bar-btn {
  min-height: 30px;
  padding: 0 10px;
  background: transparent;
  font-size: 11px;
}

main {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 34px clamp(20px, 4vw, 64px) 72px;
}

h2,
.hero-tagline,
.metric-card b,
.finding-summary-card b {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h2 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.018em;
}

h3 {
  font-size: 14px;
  letter-spacing: .015em;
}

.section-heading {
  max-width: 920px;
  margin: 10px 0 22px;
}

.section-heading h2 { margin-bottom: 6px; }

.section-heading p,
.project-hero p,
.abstract-body p {
  color: #465063;
  line-height: 1.65;
}

.control-band {
  position: relative;
  margin: 0 0 30px;
  padding: 15px 18px;
  border: 1px solid #c5d8f3;
  border-radius: 2px;
  background: #eef5ff;
  box-shadow: none;
}

.control-band label {
  color: #465063;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
}

select {
  border-color: #c5d8f3;
  border-radius: 2px;
  background-color: #ffffff;
}

.fold-block,
.viz-card,
.guide-card,
.abstract-card,
.finding-card,
.metric-card,
.text-pane,
.model-list,
.rationale-list,
.glossary-modal-panel {
  border-color: #d9dee7;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: none;
}

.fold-block {
  margin-bottom: 24px;
  overflow: visible;
}

.fold-summary {
  padding: 14px 18px;
  border-bottom: 1px solid transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
}

.fold-block[open] > .fold-summary { border-color: #eef1f5; }
.fold-summary::before { color: var(--orange); }
.fold-hint { color: #657083; font-family: inherit; font-weight: 400; }
.fold-body { padding: 18px 20px 22px; }

.hero-tagline {
  max-width: 900px;
  margin: 4px 0 24px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 66px);
  font-style: normal;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.eyebrow {
  color: var(--orange);
  font-size: 11px;
  letter-spacing: .11em;
}

.hero-stat-band,
.findings-grid,
.finding-grid,
.metric-row {
  gap: 1px;
  border: 1px solid #d9dee7;
  background: #d9dee7;
}

.hero-stat,
.finding-summary-card,
.finding-card,
.metric-card {
  border: 0;
  border-radius: 0;
  background: var(--paper);
}

.finding-summary-card { background: var(--paper); }
.finding-summary-card .summary-kicker { color: var(--orange); }

.viz-card {
  padding: clamp(16px, 2.2vw, 28px);
  margin-bottom: 20px;
}

.viz-card > h3 {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d9dee7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.content-tabs {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #d9dee7;
  gap: 0;
}

.content-tab {
  min-height: 50px;
  padding: 7px 14px 9px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
}

.content-tab:hover { background: #eef5ff; }

.content-tab.active {
  border-color: var(--orange);
  background: transparent;
  box-shadow: none;
}

.content-tab span { font-size: 12px; }
.content-tab small { color: #657083; }

.inline-link {
  color: #2f6fcb;
  font-family: inherit;
  text-underline-offset: 2px;
}

.role-chip,
.model-button,
.qual-section,
.rationale-card {
  border-radius: 2px;
}

.role-chip { background: #eef5ff; }

.heat-table th {
  background: #eef1f5;
  color: #464944;
  font-size: 11px;
}

.heat-table td,
.heat-table th { border-color: #d9dee7; }

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

@media (max-width: 1120px) {
  .topbar-grid { align-items: stretch; }
  .tabs { width: 100%; }
}

@media (max-width: 680px) {
  .topbar { padding: 0 12px; }
  main { padding: 24px 14px 50px; }
  .tab {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 14px;
  }
  .topbar-details { padding-bottom: 16px; }
  .content-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-tagline { font-size: 38px; }
}

/* Keep the pre–Beer Game palette with a normal sans-serif type system. */
h1,
h2,
h3,
.paper-title,
.authors,
.site-subtitle,
.fold-summary,
.control-band label,
.hero-tagline,
.metric-card b,
.finding-summary-card b {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.topbar h1,
.paper-title,
.hero-tagline { font-weight: 700; }

h2 { font-weight: 650; }

.site-subtitle {
  font-style: normal;
  font-weight: 500;
}

.fold-block,
.viz-card,
.finding-card,
.metric-card,
.method-block,
.qual-section,
.rationale-card,
.paper-bar-btn,
.pill,
.cta-btn,
.qual-quick-chip {
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.viz-card:hover,
.finding-card:hover,
.metric-card:hover,
.method-block:hover {
  border-color: #aeb9ca;
  box-shadow: 0 12px 28px rgba(23, 31, 48, .09);
  transform: translateY(-2px);
}

.paper-bar-btn:hover,
.pill:hover,
.cta-btn:hover,
.qual-quick-chip:hover { transform: translateY(-1px); }

.panel.active { animation: panel-enter .28s ease-out both; }

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Preserve the subtle background motion without changing the original design. */
.ambient-canvas {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: .30;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ambient-canvas { opacity: .18; }
}

/* —— ACE-style landing (Overview) —— */
.landing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 0 64px;
}
.ace-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  border: 1px solid #cfd7e4;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(23, 31, 48, 0.06);
}
.landing-hero-frame {
  background:
    radial-gradient(ellipse 90% 70% at 8% 0%, rgba(47, 111, 203, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 60% at 96% 12%, rgba(217, 111, 49, 0.10), transparent 50%),
    linear-gradient(165deg, #fbfcfe 0%, #f3f6fb 48%, #eef3f8 100%);
  margin-bottom: 8px;
}
.landing-hero-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(47, 111, 203, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 203, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  animation: heroGridDrift 28s linear infinite;
}
@keyframes heroGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 32px 18px, -24px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-hero-wash { animation: none; }
}
@media (max-width: 900px), (pointer: coarse) {
  .landing-hero-wash { animation: none; }
}
.landing-hero {
  position: relative;
  z-index: 1;
  padding: 32px 28px 26px;
  text-align: left;
}
.landing-hero-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  margin-bottom: 16px;
}
.landing-hero-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.landing-hero-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 0 0 auto;
}
.landing-hero-logos a {
  display: block;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  transition: opacity .15s ease, transform .2s ease;
}
.landing-hero-logos a:hover { opacity: .88; transform: translateY(-1px); }
.landing-hero-logos img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}
.landing-hero-logos .logo-dial {
  width: 148px;
  height: 148px;
}
.landing-hero-logos .logo-haas {
  width: 168px;
  height: 168px;
}
@media (max-width: 700px) {
  .landing-hero { padding: 22px 18px 20px; }
  .landing-hero-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .landing-hero-logos {
    justify-content: flex-start;
    gap: 16px;
  }
  .landing-hero-logos .logo-dial {
    width: 104px;
    height: 104px;
  }
  .landing-hero-logos .logo-haas {
    width: 118px;
    height: 118px;
  }
}
.landing-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.landing-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 18ch;
  color: #1a2233;
}
.landing-lede {
  font-size: 18px;
  line-height: 1.55;
  color: #334057;
  max-width: 62ch;
  margin: 0 0 8px;
}
.landing-lede-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}
.regime-defs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
}
.regime-def {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
  backdrop-filter: blur(4px);
}
.regime-def-auto { border-color: rgba(47, 111, 203, 0.28); }
.regime-def-aug { border-color: rgba(217, 111, 49, 0.30); }
.regime-def b {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--ink);
}
.regime-def span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #465063;
}
.hero-stat-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  max-width: 820px;
  border: 0;
  background: transparent;
}
.hero-stat {
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: none;
  padding: 12px 14px;
}
.hero-stat b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.hero-stat span {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: #5a667a;
}
@media (max-width: 700px) {
  .regime-defs { grid-template-columns: 1fr; }
  .hero-stat-band { grid-template-columns: 1fr; }
}
.landing-section {
  margin-top: 40px;
  padding-top: 8px;
  scroll-margin-top: 72px;
}
.ace-section {
  border-top: 1px solid #e2e7ef;
  padding-top: 32px;
}
.ace-kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.landing-section-head h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #1a2233;
}
.landing-section-head p {
  color: #465063;
  font-size: 15px;
  line-height: 1.55;
  max-width: 70ch;
  margin: 0 0 16px;
}
.overview-tasks .landing-section-head h3 {
  font-family: Georgia, "Times New Roman", serif;
}
.task-attr-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 650;
  color: #2a3344;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a.task-attr-inline:hover {
  color: #1a4f9c;
  border-bottom-color: rgba(26, 79, 156, 0.35);
}
.task-source-logo {
  display: inline-block;
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  flex: 0 0 auto;
}
.task-source-logo.openai {
  /* Source asset is black-on-transparent; keep ink visible on light paper */
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #e2e7ef;
  padding: 1px;
  box-sizing: content-box;
}
.task-source-logo.anthropic {
  border-radius: 3px;
  background: #111;
}
.compact-head h4 {
  margin: 0 0 4px;
  font-size: 16px;
}
.compact-head p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #5a667a;
}
.landing-scatter-card {
  padding: 18px;
  margin-top: 16px;
}
.overview-scatter { margin-bottom: 18px; }
.landing-scatter-wrap svg {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.takeaway-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.takeaway-card b {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.takeaway-card p {
  margin: 0;
  color: #465063;
  font-size: 14px;
  line-height: 1.45;
}
.method-figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.method-figure img,
.method-figure svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  image-rendering: auto;
  -webkit-user-drag: none;
}
.method-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* Overview task browser — Compare-aligned editorial chrome */
.overview-tasks {
  --tone-analytical: #1f5fbf;
  --tone-analytical-soft: #e8f1ff;
  --tone-analytical-deep: #163f84;
  --tone-planning: #c45a1a;
  --tone-planning-soft: #fff0e4;
  --tone-planning-deep: #8f3d0c;
  --tone-interactive: #0f766e;
  --tone-interactive-soft: #e6f6f3;
  --tone-interactive-deep: #0b5a54;
  --tone-default: #5a667a;
  --tone-default-soft: #eef2f7;
  --tone-default-deep: #334057;
}
.overview-task-browser {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.overview-task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 2px;
}
.overview-task-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  text-align: left;
  border: 1px solid #d9e0ea;
  background: #fffdf8;
  border-radius: 4px;
  padding: 11px 12px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  box-shadow: inset 4px 0 0 #c5cedb;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.overview-task-btn.tone-analytical { box-shadow: inset 4px 0 0 var(--tone-analytical); }
.overview-task-btn.tone-planning { box-shadow: inset 4px 0 0 var(--tone-planning); }
.overview-task-btn.tone-interactive { box-shadow: inset 4px 0 0 var(--tone-interactive); }
.overview-task-btn:hover {
  border-color: #b7c4d8;
  background: #f8fafc;
}
.overview-task-btn.active {
  border-color: #b7c4d8;
  background: #fff;
}
.overview-task-btn.tone-analytical.active {
  border-color: rgba(31, 95, 191, 0.45);
  background: var(--tone-analytical-soft);
  box-shadow: inset 5px 0 0 var(--tone-analytical);
}
.overview-task-btn.tone-planning.active {
  border-color: rgba(196, 90, 26, 0.45);
  background: var(--tone-planning-soft);
  box-shadow: inset 5px 0 0 var(--tone-planning);
}
.overview-task-btn.tone-interactive.active {
  border-color: rgba(15, 118, 110, 0.45);
  background: var(--tone-interactive-soft);
  box-shadow: inset 5px 0 0 var(--tone-interactive);
}
.overview-task-btn .task-idx {
  grid-row: 1 / span 2;
  align-self: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #eef2f7;
  color: #4d5a70;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.overview-task-btn.tone-analytical.active .task-idx { background: var(--tone-analytical); color: #fff; }
.overview-task-btn.tone-planning.active .task-idx { background: var(--tone-planning); color: #fff; }
.overview-task-btn.tone-interactive.active .task-idx { background: var(--tone-interactive); color: #fff; }
.overview-task-btn b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a2233;
}
.overview-task-btn small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.overview-task-detail {
  border: 1px solid #d9e0ea;
  border-radius: 4px;
  background: #fffdf8;
  box-shadow: var(--shadow);
  padding: 0;
  min-height: 280px;
  overflow: hidden;
}
.overview-task-detail-head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid #e8edf4;
  border-left: 5px solid var(--tone-default);
  background:
    linear-gradient(120deg, var(--tone-default-soft) 0%, #fffdf8 62%);
}
.overview-task-detail-head.tone-analytical {
  border-left-color: var(--tone-analytical);
  background: linear-gradient(120deg, var(--tone-analytical-soft) 0%, #fffdf8 62%);
}
.overview-task-detail-head.tone-planning {
  border-left-color: var(--tone-planning);
  background: linear-gradient(120deg, var(--tone-planning-soft) 0%, #fffdf8 62%);
}
.overview-task-detail-head.tone-interactive {
  border-left-color: var(--tone-interactive);
  background: linear-gradient(120deg, var(--tone-interactive-soft) 0%, #fffdf8 62%);
}
.overview-task-detail .task-type-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--tone-default-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #d9e0ea;
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 8px;
}
.overview-task-detail-head.tone-analytical .task-type-pill {
  color: var(--tone-analytical-deep);
  border-color: rgba(31, 95, 191, 0.28);
}
.overview-task-detail-head.tone-planning .task-type-pill {
  color: var(--tone-planning-deep);
  border-color: rgba(196, 90, 26, 0.28);
}
.overview-task-detail-head.tone-interactive .task-type-pill {
  color: var(--tone-interactive-deep);
  border-color: rgba(15, 118, 110, 0.28);
}
.overview-task-detail h4 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #1a2233;
}
.overview-task-detail .task-source-line,
.overview-task-detail .task-tagline {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #4a5568;
}
.task-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.task-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d9e0ea;
  background: #fff;
  border-radius: 4px;
  padding: 5px 9px 5px 6px;
  font-size: 12px;
  font-weight: 650;
  color: #2a3344;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
a.task-source-badge:hover {
  border-color: #b8c6da;
  background: #f7f9fc;
  color: #1a4f9c;
}
.task-source-badge .task-source-logo {
  width: 18px;
  height: 18px;
}
.task-source-badge-plain {
  padding-left: 9px;
}
.overview-task-detail .task-prompt-label {
  margin: 14px 18px 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5a667a;
}
.overview-task-detail .task-prompt-doc {
  margin: 0 14px 16px;
  border: 1px solid #e6ebf2;
  border-radius: 4px;
  background: #fbfcfe;
  max-height: 340px;
  overflow: auto;
}
.overview-task-detail .task-prompt-doc .compare-doc-body {
  padding: 12px 14px 14px;
  max-width: none;
  font-size: 13.5px;
  line-height: 1.55;
}
.overview-task-detail .task-prompt-doc .compare-section {
  background: #fff;
}
.overview-task-detail .task-prompt-doc .compare-bullets li::marker {
  color: #3d5a80;
}

/* Podium / winners */
.overview-podium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}
.podium-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 14px 14px 10px;
}
.podium-panel h4 {
  margin: 0 0 10px;
  font-size: 15px;
}
.podium-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid #eef1f5;
}
.podium-row:first-of-type { border-top: 0; }
.podium-task {
  font-size: 12px;
  font-weight: 700;
  color: #334057;
  padding-top: 4px;
}
.medal {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 8px;
  padding: 7px 8px;
  min-height: 48px;
}
.medal-gold {
  background: linear-gradient(180deg, #fff8e8 0%, #fff3d1 100%);
  border: 1px solid #e6d19a;
}
.medal-silver {
  background: linear-gradient(180deg, #f5f7fa 0%, #eef1f5 100%);
  border: 1px solid #d5dbe5;
}
.medal .medal-rank {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.1;
  color: inherit;
}
.medal-silver .medal-rank { color: inherit; }
.medal .medal-model {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.medal .medal-mean {
  font-size: 11px;
  color: var(--muted);
}
.overview-heat-stack { margin-top: 8px; }

/* Compare teaser — compact real Compare preview */
.compare-teaser {
  --compare-a: #1f5fbf;
  --compare-b: #c45a1a;
  --compare-ink: #1a2233;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(31, 95, 191, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(196, 90, 26, 0.08), transparent 50%),
    #fbfcfe;
  padding: 14px;
  box-shadow: var(--shadow);
}
.compare-teaser-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.compare-teaser-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 650;
  font-family: inherit;
  color: #465063;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.compare-teaser-chip:hover { border-color: #aeb9ca; color: var(--ink); }
.compare-teaser-chip.active {
  border-color: rgba(47, 111, 203, 0.45);
  background: #eef4fc;
  color: var(--ink);
}
.compare-teaser-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}
.compare-teaser-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  min-height: 220px;
  min-width: 0;
}
.compare-teaser-panel.a { border-left: 4px solid var(--compare-a); }
.compare-teaser-panel.b { border-left: 4px solid var(--compare-b); }
.compare-teaser-panel header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.compare-teaser-panel h4 {
  margin: 0;
  font-size: 15px;
}
.compare-teaser-mode {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--muted);
}
.compare-teaser-excerpt {
  flex: 1 1 auto;
  max-height: 220px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.5;
  color: #334057;
  padding-right: 4px;
  border-radius: 6px;
  background: #fbfcfe;
}
.compare-teaser-excerpt .compare-doc { min-height: 0; }
.compare-teaser-excerpt .compare-doc-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.compare-teaser-excerpt .compare-doc-body {
  font-size: 12.5px;
  line-height: 1.45;
}
.compare-teaser-excerpt .compare-section {
  margin: 0 0 8px;
  padding: 8px 10px;
}
.compare-teaser-excerpt .compare-section-title { font-size: 13px; }
.compare-teaser-mean {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e7edf5;
}
.compare-teaser-mean-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  color: #5a6780;
}
.compare-teaser-mean-chip b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  color: var(--compare-ink);
}
.compare-teaser-mean-chip small { color: #8a93a3; }
.compare-teaser-vs {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a93a3;
}
.compare-teaser-evidence { margin-top: 12px; }
.compare-teaser-evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.compare-teaser-spine,
.compare-teaser-rationale-wrap {
  border: 1px solid #d7dee9;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}
.compare-teaser-spine-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #617089;
}
.compare-teaser-spine-legend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: #465063;
}
.compare-teaser-spine-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.compare-teaser-spine-legend .dot.a { background: var(--compare-a); }
.compare-teaser-spine-legend .dot.b { background: var(--compare-b); }
.compare-teaser-spine-row {
  display: grid;
  grid-template-columns: minmax(96px, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid #e7edf5;
}
.compare-teaser-spine-row:first-of-type { border-top: 0; }
.compare-teaser-spine-dim {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--compare-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compare-teaser-spine-cell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.compare-teaser-spine-cell .bar-track {
  height: 8px;
  border-radius: 2px;
  background: #e6ecf4;
  overflow: hidden;
}
.compare-teaser-spine-cell .bar-fill {
  height: 100%;
  border-radius: 2px;
}
.compare-teaser-spine-cell .bar-fill.a { background: var(--compare-a); }
.compare-teaser-spine-cell .bar-fill.b { background: var(--compare-b); }
.compare-teaser-spine-val {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 2.2em;
  text-align: right;
  color: var(--compare-ink);
}
.compare-teaser-spine-val.is-better { color: #1a7a58; }
.compare-teaser-rationale { margin: 0; }
.compare-teaser-rationale p {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.compare-teaser-note {
  margin: 12px 2px 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #5a6780;
}

/* Explore cards */
.explore-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.explore-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.explore-card:hover {
  border-color: #b7c4d8;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(23, 31, 48, 0.1);
}
.explore-card-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.explore-card b {
  font-size: 16px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.explore-card p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #5a667a;
  flex: 1;
}
.explore-card-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

/* Engage footer — full-width ACE band, single contact link */
.overview-engage {
  margin-top: 48px;
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(47, 111, 203, 0.08), transparent 55%),
    linear-gradient(165deg, #fbfcfe 0%, #f4f7fb 100%);
  padding: 36px 28px;
  text-align: center;
}
.overview-engage .engage-copy {
  max-width: 36rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.overview-engage .ace-kicker { margin-bottom: 10px; }
.engage-title {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: -0.03em;
  color: #1a2233;
}
.engage-lede {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: #465063;
  max-width: 42ch;
}
.engage-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 28px;
  border: 1px solid #cfd7e4;
  border-radius: 4px;
  background: #fff;
  color: #1a2233;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(23, 31, 48, 0.06);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.engage-contact:hover,
.engage-contact:focus-visible {
  border-color: rgba(47, 111, 203, 0.45);
  color: #163f84;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(23, 31, 48, 0.1);
}

@media (max-width: 900px) {
  .overview-task-browser { grid-template-columns: 1fr; }
  .overview-task-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-podium { grid-template-columns: 1fr; }
  .compare-teaser-arena { grid-template-columns: 1fr; }
  .compare-teaser-vs { padding: 4px 0; }
  .compare-teaser-evidence-grid { grid-template-columns: 1fr; }
  .explore-card-grid { grid-template-columns: 1fr; }
  .takeaway-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .overview-task-list { grid-template-columns: 1fr; }
  .podium-row { grid-template-columns: 1fr; }
  .overview-engage { padding: 28px 18px; }
}

/* —— Compare tab (editorial multi-panel, Compare-only chrome) —— */
#compare.panel {
  --compare-a: #1f5fbf;
  --compare-a-deep: #163f84;
  --compare-a-soft: #e8f1ff;
  --compare-a-mid: #7eb0f0;
  --compare-b: #c45a1a;
  --compare-b-deep: #8f3d0c;
  --compare-b-soft: #fff0e4;
  --compare-b-mid: #f0a46a;
  --compare-avg: #7a8799;
  --compare-ink: #1a2233;
  --compare-paper: #fffdf8;
  --compare-assist: #fff7ea;
  --compare-rail: 5px;
  position: relative;
  isolation: isolate;
  padding: 4px 2px 8px;
  border-radius: 4px;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(31, 95, 191, 0.10), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 8%, rgba(196, 90, 26, 0.12), transparent 50%),
    linear-gradient(180deg, #f3f6fb 0%, #eef2f6 100%);
}
#compare.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 95, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 90, 26, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}

#compare .compare-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--compare-ink);
}
#compare .compare-heading p {
  max-width: 52rem;
  color: #4d5a70;
}

.compare-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 22px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(232, 241, 255, 0.85), rgba(255, 255, 255, 0.95) 40%, rgba(255, 240, 228, 0.7));
  border: 1.5px solid #c9d4e4;
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(26, 34, 51, 0.06);
  position: sticky;
  top: 56px;
  z-index: 4;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.compare-controls label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a5870;
}
.compare-controls select {
  min-height: 38px;
  border: 1.5px solid #b8c4d6;
  border-radius: 3px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--compare-ink);
  background: #fff;
}
.compare-controls-hint {
  grid-column: 1 / -1;
  margin: 2px 0 -2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8799;
  border-top: 1px dashed #c9d4e4;
  padding-top: 10px;
}
.compare-ctrl-a select {
  border-color: #9bb6e0;
  box-shadow: inset 3px 0 0 var(--compare-a);
}
.compare-ctrl-b select {
  border-color: #e0b89a;
  box-shadow: inset 3px 0 0 var(--compare-b);
}
.compare-run-scope {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(232, 241, 255, 0.55), rgba(255, 240, 228, 0.45));
  border: 1.5px solid #c9d4e4;
  border-radius: 3px;
}
.compare-run-scope .compare-rubric-scope {
  flex: 1 1 220px;
  min-width: 0;
}

.compare-arena {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
}

.compare-vs {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 56px;
}
.compare-vs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50% 50% 50% 12%;
  border: 2px solid var(--compare-ink);
  background:
    linear-gradient(135deg, var(--compare-a) 0 50%, var(--compare-b) 50% 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(26, 34, 51, 0.18);
  transform: rotate(-6deg);
}

.compare-panel {
  background: #fff;
  border: 1.5px solid #c5cedc;
  border-radius: 3px;
  box-shadow: 6px 6px 0 rgba(26, 34, 51, 0.07);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}
.compare-panel--a {
  border-left: var(--compare-rail) solid var(--compare-a);
  box-shadow: 6px 6px 0 rgba(31, 95, 191, 0.12);
}
.compare-panel--b {
  border-left: var(--compare-rail) solid var(--compare-b);
  box-shadow: 6px 6px 0 rgba(196, 90, 26, 0.12);
}

.compare-panel-head {
  padding: 16px 18px 14px;
  border-bottom: 1.5px solid #d7dee9;
  position: relative;
}
.compare-panel--a .compare-panel-head {
  background:
    linear-gradient(120deg, var(--compare-a-soft) 0%, #fff 62%),
    repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(31, 95, 191, 0.04) 6px, rgba(31, 95, 191, 0.04) 7px);
}
.compare-panel--b .compare-panel-head {
  background:
    linear-gradient(120deg, var(--compare-b-soft) 0%, #fff 62%),
    repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(196, 90, 26, 0.05) 6px, rgba(196, 90, 26, 0.05) 7px);
}
.compare-panel-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.compare-side-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
}
.compare-side-badge.a { background: var(--compare-a); }
.compare-side-badge.b { background: var(--compare-b); }
.compare-panel-role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6780;
}
.compare-panel-head h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--compare-ink);
}
.compare-panel--a .compare-panel-head h3 { color: var(--compare-a-deep); }
.compare-panel--b .compare-panel-head h3 { color: var(--compare-b-deep); }

.compare-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.compare-score-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 96px;
  padding: 8px 11px;
  border-radius: 2px;
  border: 1.5px solid #c9d3e2;
  background: rgba(255, 255, 255, 0.82);
}
.compare-panel--a .compare-score-chip {
  border-color: #b7cceb;
  background: rgba(255, 255, 255, 0.78);
}
.compare-panel--b .compare-score-chip {
  border-color: #efc7a4;
  background: rgba(255, 255, 255, 0.78);
}
.compare-score-chip .label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #617089;
}
.compare-score-chip .value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--compare-ink);
  line-height: 1.15;
}
.compare-score-chip .sub {
  font-size: 11px;
  color: #617089;
  font-weight: 650;
}
.compare-score-chip.is-lead {
  border-color: var(--compare-a);
  background: #dceaff;
  box-shadow: inset 3px 0 0 var(--compare-a);
}
.compare-panel--b .compare-score-chip.is-lead {
  border-color: var(--compare-b);
  background: #ffe3cc;
  box-shadow: inset 3px 0 0 var(--compare-b);
}

.compare-panel .compare-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 12px 14px 0;
  margin: 0;
}
.compare-seg {
  border: 1.5px solid #b8c4d6;
  background: #f4f7fb;
  color: #3d4b63;
  min-height: 34px;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  margin: 0;
}
.compare-seg:first-child { border-radius: 2px 0 0 2px; }
.compare-seg:last-child {
  border-radius: 0 2px 2px 0;
  margin-left: -1.5px;
}
.compare-panel--a .compare-seg.active {
  background: var(--compare-a);
  border-color: var(--compare-a-deep);
  color: #fff;
  z-index: 1;
}
.compare-panel--b .compare-seg.active {
  background: var(--compare-b);
  border-color: var(--compare-b-deep);
  color: #fff;
  z-index: 1;
}
.compare-seg:hover:not(.active) {
  background: #fff;
  color: var(--compare-ink);
}

.compare-text {
  margin: 12px 14px 16px;
  max-height: 460px;
  overflow: auto;
  border: 1.5px solid #c5cedc;
  border-radius: 2px;
  background: var(--compare-paper);
  flex: 1 1 auto;
}
.compare-panel--a .compare-text {
  border-color: #aec6e8;
  box-shadow: inset 0 0 0 1px rgba(31, 95, 191, 0.06);
}
.compare-panel--b .compare-text {
  border-color: #e4b892;
  box-shadow: inset 0 0 0 1px rgba(196, 90, 26, 0.07);
}
.compare-text.is-assist {
  background: var(--compare-assist);
}
.compare-text .qual-empty-state {
  margin: 0;
  padding: 32px 18px;
  text-align: center;
  color: #617089;
  font-size: 13px;
}

/* Formatted document panes — shared schema for A and B */
.compare-doc { padding: 0; min-height: 100%; }
.compare-doc-label {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1.5px dashed #d0d8e4;
  background: rgba(255, 253, 248, 0.94);
  color: var(--compare-a-deep);
}
.compare-doc--assist .compare-doc-label {
  background: rgba(255, 247, 234, 0.96);
  border-bottom-style: solid;
  color: var(--compare-b-deep);
}
.compare-panel--a .compare-doc--assist .compare-doc-label { color: var(--compare-a-deep); }
.compare-panel--b .compare-doc--deliverable .compare-doc-label { color: var(--compare-b-deep); }

.compare-doc-body {
  padding: 14px 16px 18px;
  max-width: 42rem;
  color: var(--compare-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14.5px;
  line-height: 1.58;
}
.compare-doc--assist .compare-doc-body {
  font-size: 14px;
  line-height: 1.55;
}

.compare-doc-title {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2em;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--compare-ink);
}

.compare-steps {
  margin: 0 0 10px;
  padding-left: 1.35rem;
  list-style: decimal;
}
.compare-steps li {
  margin: 0 0 6px;
  padding-left: 2px;
  line-height: 1.5;
}
.compare-steps li::marker {
  color: var(--compare-a);
  font-weight: 600;
  font-size: 0.95em;
}
.compare-panel--b .compare-steps li::marker { color: var(--compare-b); }
.overview-task-detail .task-prompt-doc .compare-steps li::marker {
  color: #3d5a80;
}

.compare-section {
  margin: 0 0 12px;
  border: 1.5px solid #d5dde9;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}
.compare-panel--a .compare-section { border-color: rgba(31, 95, 191, 0.28); }
.compare-panel--b .compare-section { border-color: rgba(196, 90, 26, 0.28); }
.compare-section-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px 6px;
  border-bottom: 1px solid #e4eaf2;
  background: rgba(255, 255, 255, 0.55);
}
.compare-section-num {
  flex: 0 0 auto;
  min-width: 1.1em;
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 650;
  line-height: 1.4;
  color: var(--compare-a);
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline;
}
.compare-panel--b .compare-section-num { color: var(--compare-b); background: none; }
.overview-task-detail .task-prompt-doc .compare-section-num {
  color: #3d5a80;
  background: none;
}
.compare-section-title {
  margin: 0;
  font-family: inherit;
  font-size: 0.98em;
  font-weight: 650;
  line-height: 1.4;
  color: var(--compare-ink);
}
.compare-section-body {
  padding: 8px 12px 10px;
}
.compare-section-body > :last-child { margin-bottom: 0; }

.compare-md-h {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--compare-ink);
  font-size: 1.05em;
}
.compare-md-p { margin: 0 0 10px; }
.compare-md-p:last-child { margin-bottom: 0; }
.compare-md-muted { color: #617089; font-style: italic; }

.compare-bullets {
  margin: 0 0 10px;
  padding-left: 1.15rem;
  list-style: disc;
}
.compare-bullets li {
  margin: 0 0 6px;
  padding-left: 2px;
}
.compare-bullets li::marker {
  color: var(--compare-a);
  font-size: 0.85em;
}
.compare-panel--b .compare-bullets li::marker { color: var(--compare-b); }
.compare-section-body .compare-bullets:last-child { margin-bottom: 0; }

.compare-doc-body strong { font-weight: 750; color: #121926; }
.compare-doc-body em { font-style: italic; }
.compare-doc-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(26, 34, 51, 0.07);
}
.compare-code {
  margin: 0 0 14px;
  padding: 12px 14px;
  overflow: auto;
  border-radius: 2px;
  border: 1px solid #d0d8e4;
  background: #1a2233;
  color: #e8eef8;
  font-size: 12.5px;
  line-height: 1.45;
}
.compare-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: transparent;
  color: inherit;
  padding: 0;
}

.compare-judge-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 12px 0;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(255, 240, 228, 0.88), rgba(255, 255, 255, 0.95) 42%, rgba(232, 241, 255, 0.9));
  border: 1.5px solid #c9d4e4;
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(26, 34, 51, 0.06);
}
.compare-judge-bar-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6780;
}
.compare-judge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.compare-judge-chip {
  border: 1.5px solid #b8c4d6;
  background: #fff;
  color: #3d4b63;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 2px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.compare-judge-chip:hover { border-color: #7a8aa3; color: #1a2233; }
.compare-judge-chip.active {
  /* Solid ink — shared by Compare, Scoreboard, Single-run (and other chip toggles) */
  background: #1a2233;
  border-color: #1a2233;
  color: #fff;
}
.compare-rubric-scope {
  margin-left: auto;
  font-size: 11px;
  font-weight: 650;
  color: #617089;
}

.compare-rubric-viz {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1.15fr);
  gap: 18px 22px;
  align-items: start;
  padding-left: 8px;
}
.compare-rubric-spine {
  min-width: 0;
}
.compare-radar {
  border: 1.5px solid #d5deea;
  border-radius: 3px;
  background: #fff;
  padding: 14px 14px 10px;
  box-shadow: 3px 3px 0 rgba(26, 34, 51, 0.04);
}
.compare-radar-copy {
  text-align: center;
  margin-bottom: 10px;
}
.compare-radar-copy h3 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--compare-ink);
}
.compare-radar-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #617089;
}
.compare-radar-toggles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.compare-radar-pill {
  border: 1.5px solid #b8c4d6;
  background: #fff;
  color: #3d4b63;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  max-width: 100%;
}
.compare-radar-pill.a { color: var(--compare-a-deep); border-color: var(--compare-a-mid); }
.compare-radar-pill.b { color: var(--compare-b-deep); border-color: var(--compare-b-mid); }
.compare-radar-pill.avg { color: #4d5a6d; border-color: #9aa6b8; }
.compare-radar-pill.active.a {
  background: var(--compare-a-soft);
  border-color: var(--compare-a);
  color: var(--compare-a-deep);
  box-shadow: inset 0 0 0 1px var(--compare-a);
}
.compare-radar-pill.active.b {
  background: var(--compare-b-soft);
  border-color: var(--compare-b);
  color: var(--compare-b-deep);
  box-shadow: inset 0 0 0 1px var(--compare-b);
}
.compare-radar-pill.active.avg {
  background: #eef1f5;
  border-color: var(--compare-avg);
  color: #3d4b63;
  box-shadow: inset 0 0 0 1px var(--compare-avg);
}
.compare-radar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-bottom: 6px;
}
.compare-radar-legend-item {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #4d5a6d;
  cursor: pointer;
  padding: 2px 0;
}
.compare-radar-legend-item.is-off { opacity: 0.35; }
.compare-radar-legend-item.is-dimmed { opacity: 0.28; }
.compare-radar-legend-item.is-focus { color: var(--compare-ink); }
.compare-radar-swatch {
  width: 22px;
  height: 0;
  border-top: 2.5px solid var(--swatch, #333);
  display: inline-block;
}
.compare-radar-swatch.dashed { border-top-style: dashed; }
.compare-radar-swatch.dotted { border-top-style: dotted; border-top-width: 3px; }
.compare-radar-hint {
  margin: 0 0 8px;
  text-align: center;
  font-size: 11px;
  font-style: italic;
  color: #7a8799;
  line-height: 1.4;
}
.compare-radar-stage {
  position: relative;
  width: min(100%, 440px);
  margin: 0 auto;
}
.compare-radar-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.compare-radar-ring {
  fill: none;
  stroke: #d7deea;
  stroke-width: 1;
}
.compare-radar-spoke {
  stroke: #e2e8f1;
  stroke-width: 1;
}
.compare-radar-axis-label {
  fill: #4d5a6d;
  font-size: 10px;
  font-weight: 700;
  font-family: system-ui, -apple-system, sans-serif;
}
.compare-radar-series {
  transition: opacity 0.15s ease;
}
.compare-radar-series.is-hidden {
  display: none;
}
.compare-radar-series.is-dimmed {
  opacity: 0.18;
}
.compare-radar-series.is-focus {
  opacity: 1;
}
.compare-radar-area {
  fill-opacity: 0.08;
  stroke: none;
  pointer-events: none;
}
.compare-radar-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  pointer-events: stroke;
}
.compare-radar-dot {
  stroke: #fff;
  stroke-width: 1.2;
  pointer-events: none;
}
.compare-radar-values {
  position: absolute;
  right: 0;
  top: 8px;
  width: min(168px, 46%);
  max-height: 78%;
  overflow: auto;
  background: rgba(255, 253, 248, 0.96);
  border: 1.5px solid #c5cedc;
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.35;
  box-shadow: 3px 3px 0 rgba(26, 34, 51, 0.05);
  z-index: 2;
}
.compare-radar-values-title {
  font-weight: 800;
  margin-bottom: 6px;
  font-size: 12px;
}
.compare-radar-values div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  border-top: 1px solid #e8edf4;
}
.compare-radar-values div:first-of-type { border-top: 0; }
.compare-radar-values span {
  color: #5a6780;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compare-radar-values b {
  font-variant-numeric: tabular-nums;
  color: var(--compare-ink);
  font-weight: 750;
}

.compare-rubric-band {
  margin-bottom: 22px;
  padding: 18px 20px 12px;
  background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
  border: 1.5px solid #c5cedc;
  border-radius: 3px;
  box-shadow: 5px 5px 0 rgba(26, 34, 51, 0.06);
  position: relative;
  overflow: visible;
}
.compare-rubric-band::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--compare-a), var(--compare-b));
}
.compare-rubric-band .section-heading.compact {
  margin-bottom: 14px;
  padding-left: 8px;
}
.compare-rubric-band .section-heading.compact h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--compare-ink);
}
.compare-rubric-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 12px;
  color: #5a6780;
  margin: 0 0 14px 8px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #dce3ee;
  font-weight: 650;
}
.compare-rubric-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}
.compare-rubric-legend .dot.a { background: var(--compare-a); }
.compare-rubric-legend .dot.b { background: var(--compare-b); }

.compare-rubric-head {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 18px;
  padding: 0 2px 8px 8px;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #617089;
}
.compare-rubric-head .col-a { color: var(--compare-a); }
.compare-rubric-head .col-b { color: var(--compare-b); }

.compare-rubric-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 18px;
  align-items: center;
  padding: 11px 2px 11px 8px;
  border-top: 1px solid #e4eaf2;
}
.compare-rubric-row:nth-child(even) { background: rgba(31, 95, 191, 0.03); }
.compare-rubric-row:first-of-type { border-top: 0; }
.compare-rubric-dim {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--compare-ink);
}
.compare-rubric-cell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.compare-rubric-cell .bar-track {
  height: 12px;
  border-radius: 2px;
  background: #e6ecf4;
  overflow: hidden;
}
.compare-rubric-cell .bar-fill {
  border-radius: 2px;
  height: 100%;
}
.compare-rubric-val {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--compare-ink);
  min-width: 2.5em;
  text-align: right;
}
.compare-rubric-val.is-better { color: #1a7a58; }

.compare-rationale-band {
  margin-bottom: 8px;
  border: 1.5px solid #c5cedc;
  border-radius: 3px;
  background: #fff;
  box-shadow: 5px 5px 0 rgba(26, 34, 51, 0.06);
  overflow: hidden;
}
.compare-rationale-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  padding: 14px 18px;
  background: linear-gradient(90deg, var(--compare-a-soft), #fff 45%, var(--compare-b-soft));
  border-bottom: 1.5px solid transparent;
}
.compare-rationale-band[open] .compare-rationale-summary {
  border-bottom-color: #d7dee9;
}
.compare-rationale-summary::-webkit-details-marker { display: none; }
.compare-rationale-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--compare-ink);
}
.compare-rationale-hint {
  font-size: 12px;
  color: #5a6780;
  font-weight: 650;
}
.compare-rationale-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 10px;
  background: #f7f9fc;
}
.compare-rationale-card {
  border: 1.5px solid #cdd6e4;
  border-left: 4px solid var(--compare-a-mid);
  border-radius: 2px;
  padding: 12px 14px;
  background: #fff;
}
.compare-rationale-card:nth-child(even) {
  border-left-color: var(--compare-b-mid);
}
.compare-rationale-meta {
  font-size: 12px;
  color: #5a6780;
  margin-bottom: 6px;
  font-weight: 650;
}
.compare-rationale-meta b { color: var(--compare-ink); font-weight: 800; }
.compare-rationale-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--compare-ink);
}

.leader-actions {
  display: grid;
  justify-items: end;
  gap: 4px;
  font-size: 12px;
}
.compare-add-btn {
  border: 1.5px solid #b8c4d6;
  background: #fff;
  border-radius: 2px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  font-family: inherit;
}
.compare-add-btn:hover { border-color: var(--blue); color: var(--blue); }

@media (max-width: 1000px) {
  .takeaway-grid,
  .compare-controls { grid-template-columns: 1fr 1fr; }
  .compare-controls-hint { grid-column: 1 / -1; }
  .compare-run-scope { align-items: flex-start; }
  .compare-arena {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .compare-vs {
    padding: 0;
    justify-content: center;
  }
  .compare-vs span {
    width: 40px;
    height: 40px;
    transform: rotate(0deg);
  }
  .compare-rubric-head,
  .compare-rubric-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .compare-rubric-viz {
    grid-template-columns: 1fr;
  }
  .compare-radar-values {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 8px;
  }
  .compare-rubric-head .col-dim { display: none; }
  .compare-rubric-cell::before {
    content: attr(data-side);
    font-size: 11px;
    font-weight: 800;
    color: #617089;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    grid-column: 1 / -1;
  }
  .landing-headline { max-width: none; }
}

@media (max-width: 640px) {
  .compare-controls { grid-template-columns: 1fr; }
  .compare-controls {
    position: static;
    backdrop-filter: none;
  }
}

/* —— Task-Usage Scoreboard (Compare-aligned editorial chrome) —— */
#rankings.panel {
  --rank-a: #1f5fbf;
  --rank-a-deep: #163f84;
  --rank-a-soft: #e8f1ff;
  --rank-b: #c45a1a;
  --rank-b-deep: #8f3d0c;
  --rank-b-soft: #fff0e4;
  --rank-ink: #1a2233;
  --rank-paper: #fffdf8;
  --rank-rail: 5px;
  position: relative;
  isolation: isolate;
  padding: 4px 2px 8px;
  border-radius: 4px;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(31, 95, 191, 0.10), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 8%, rgba(196, 90, 26, 0.12), transparent 50%),
    linear-gradient(180deg, #f3f6fb 0%, #eef2f6 100%);
}
#rankings.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 95, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 90, 26, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}
#rankings .rank-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--rank-ink);
}
#rankings .rank-heading p {
  max-width: 54rem;
  color: #4d5a70;
}
/* Scoreboard: reuse .compare-judge-bar chrome; only spacing differs */
.rank-judge-bar {
  margin: 0 0 18px;
}
.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.rank-panel {
  background: #fff;
  border: 1.5px solid #c5cedc;
  border-radius: 3px;
  box-shadow: 6px 6px 0 rgba(26, 34, 51, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rank-panel--board {
  border-left: var(--rank-rail) solid var(--rank-a);
  box-shadow: 6px 6px 0 rgba(31, 95, 191, 0.12);
}
.rank-panel--rubric {
  border-left: var(--rank-rail) solid var(--rank-b);
  box-shadow: 6px 6px 0 rgba(196, 90, 26, 0.12);
}
.rank-panel-head {
  padding: 16px 18px 14px;
  border-bottom: 1.5px solid #d7dee9;
}
.rank-panel--board .rank-panel-head {
  background:
    linear-gradient(120deg, var(--rank-a-soft) 0%, #fff 62%),
    repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(31, 95, 191, 0.04) 6px, rgba(31, 95, 191, 0.04) 7px);
}
.rank-panel--rubric .rank-panel-head {
  background:
    linear-gradient(120deg, var(--rank-b-soft) 0%, #fff 62%),
    repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(196, 90, 26, 0.05) 6px, rgba(196, 90, 26, 0.05) 7px);
}
.rank-panel-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.rank-side-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 6px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
}
.rank-side-badge.board { background: var(--rank-a); }
.rank-side-badge.rubric { background: var(--rank-b); }
.rank-panel-role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6780;
}
.rank-panel-head h3 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--rank-ink);
}
.rank-panel--board .rank-panel-head h3 { color: var(--rank-a-deep); }
.rank-panel--rubric .rank-panel-head h3 { color: var(--rank-b-deep); }
.rank-panel-sub {
  margin: 0;
  font-size: 12px;
  color: #5a6780;
  line-height: 1.4;
}
.rank-panel-body {
  padding: 14px 16px 18px;
  background: var(--rank-paper);
  flex: 1;
}
.rank-panel--board .rank-panel-body { background: #fbfcff; }
.rank-panel--rubric .rank-panel-body { background: #fffdf8; }
#rankings .leaderboard-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #5a6780;
}
#rankings .rank-empty-state {
  border: 1.5px dashed #c5cedc;
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
}
.rank-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(80px, 1fr) 48px;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}
.rank-model-btn {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #c5cedc;
  background: #fff;
  border-radius: 3px;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  font: inherit;
  box-shadow: inset 4px 0 0 #c5cedb;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.rank-model-btn:hover {
  border-color: #9eb4d8;
  background: var(--rank-a-soft);
}
.rank-model-btn.active,
.rank-row.is-selected .rank-model-btn {
  border-color: rgba(31, 95, 191, 0.55);
  background: var(--rank-a-soft);
  box-shadow: inset 5px 0 0 var(--rank-a);
}
.rank-model-copy { min-width: 0; }
.rank-model-name {
  display: block;
  font-weight: 750;
  color: var(--rank-ink);
  font-size: 13px;
  line-height: 1.25;
}
#rankings .leader-meta {
  color: #617089;
}
.rank-win {
  font-size: 13px;
  font-weight: 800;
  color: var(--rank-ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rank-rubric-intro {
  margin: 0 0 12px;
  font-size: 12px;
  color: #5a6780;
  line-height: 1.45;
}
#rankings .rank-rubric-row {
  grid-template-columns: minmax(140px, 1.1fr) minmax(90px, 1fr) 40px;
  padding: 4px 6px;
  margin: 4px 0;
  border-radius: 3px;
  cursor: pointer;
}
#rankings .rank-rubric-row.is-focus {
  background: var(--rank-b-soft);
  outline: 1px solid rgba(196, 90, 26, 0.35);
}
.rank-rubric-val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--rank-ink);
  text-align: right;
}
.rank-rubric-detail {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1.5px solid #e0c4b0;
  border-radius: 3px;
  border-left: 4px solid var(--rank-b);
  background: linear-gradient(120deg, var(--rank-b-soft) 0%, #fff 70%);
  box-shadow: 3px 3px 0 rgba(196, 90, 26, 0.08);
}
.rank-rubric-detail-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rank-b-deep);
}
.rank-rubric-detail b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  color: var(--rank-ink);
}
.rank-rubric-detail p {
  margin: 6px 0 0;
  color: #4d5a70;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .rank-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rank-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .rank-win { text-align: left; }
}

/* —— Single-run Result tab (Compare-aligned editorial chrome) —— */
#overview.panel {
  --heat-a: #1f5fbf;
  --heat-a-deep: #163f84;
  --heat-a-soft: #e8f1ff;
  --heat-a-mid: #7eb0f0;
  --heat-b: #c45a1a;
  --heat-b-deep: #8f3d0c;
  --heat-b-soft: #fff0e4;
  --heat-b-mid: #f0a46a;
  --heat-ink: #1a2233;
  --heat-paper: #fffdf8;
  --heat-rail: 5px;
  position: relative;
  isolation: isolate;
  padding: 4px 2px 8px;
  border-radius: 4px;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(31, 95, 191, 0.10), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 8%, rgba(196, 90, 26, 0.12), transparent 50%),
    linear-gradient(180deg, #f3f6fb 0%, #eef2f6 100%);
}
#overview.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 95, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 90, 26, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}
#overview .heatmaps-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heat-ink);
}
#overview .heatmaps-heading p {
  max-width: 54rem;
  color: #4d5a70;
}
/* Single-run: reuse .compare-judge-bar chrome; sticky only (no blur washout) */
.heatmaps-judge-bar {
  margin: 0 0 16px;
  position: sticky;
  top: 56px;
  z-index: 4;
}
#overview .heatmaps-metrics {
  margin: 0 0 18px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 241, 255, 0.55));
  border: 1.5px solid #c9d4e4;
  border-radius: 4px;
  box-shadow: 3px 3px 0 rgba(26, 34, 51, 0.05);
}
#overview .heatmaps-metrics .metric {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 4px 6px;
}
.heatmaps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.heatmaps-panel {
  background: #fff;
  border: 1.5px solid #c5cedc;
  border-radius: 3px;
  box-shadow: 6px 6px 0 rgba(26, 34, 51, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.heatmaps-panel--aug {
  border-left: var(--heat-rail) solid var(--heat-a);
  box-shadow: 6px 6px 0 rgba(31, 95, 191, 0.12);
}
.heatmaps-panel--auto {
  border-left: var(--heat-rail) solid var(--heat-b);
  box-shadow: 6px 6px 0 rgba(196, 90, 26, 0.12);
}
.heatmaps-panel-head {
  padding: 16px 18px 14px;
  border-bottom: 1.5px solid #d7dee9;
}
.heatmaps-panel--aug .heatmaps-panel-head {
  background:
    linear-gradient(120deg, var(--heat-a-soft) 0%, #fff 62%),
    repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(31, 95, 191, 0.04) 6px, rgba(31, 95, 191, 0.04) 7px);
}
.heatmaps-panel--auto .heatmaps-panel-head {
  background:
    linear-gradient(120deg, var(--heat-b-soft) 0%, #fff 62%),
    repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(196, 90, 26, 0.05) 6px, rgba(196, 90, 26, 0.05) 7px);
}
.heatmaps-panel-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.heatmaps-side-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 26px;
  padding: 0 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
}
.heatmaps-side-badge.aug { background: var(--heat-a); }
.heatmaps-side-badge.auto { background: var(--heat-b); }
.heatmaps-panel-role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6780;
}
.heatmaps-panel-head h3 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--heat-ink);
}
.heatmaps-panel--aug .heatmaps-panel-head h3 { color: var(--heat-a-deep); }
.heatmaps-panel--auto .heatmaps-panel-head h3 { color: var(--heat-b-deep); }
.heatmaps-panel-sub {
  margin: 0;
  font-size: 12px;
  color: #5a6780;
  line-height: 1.4;
}
.heatmaps-panel-body {
  padding: 14px 16px 18px;
  background: var(--heat-paper);
  overflow: auto;
}
.heatmaps-panel--aug .heatmaps-panel-body { background: #fbfcff; }
.heatmaps-panel--auto .heatmaps-panel-body { background: #fffdf8; }
#overview .heatmaps-panel-body .heat-table {
  margin-top: 8px;
}
#overview .heatmaps-panel-body .model-legend,
#overview .heatmaps-panel-body .heat-legend {
  color: #5a6780;
}

/* —— 10-Run Result tab (Compare-aligned editorial chrome) —— */
#replicates.panel {
  --rep-a: #1f5fbf;
  --rep-a-deep: #163f84;
  --rep-a-soft: #e8f1ff;
  --rep-b: #c45a1a;
  --rep-b-deep: #8f3d0c;
  --rep-b-soft: #fff0e4;
  --rep-findings: #2a6b5a;
  --rep-findings-deep: #1d4d41;
  --rep-findings-soft: #e7f4ef;
  --rep-ink: #1a2233;
  --rep-paper: #fffdf8;
  --rep-rail: 5px;
  position: relative;
  isolation: isolate;
  padding: 4px 2px 8px;
  border-radius: 4px;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(31, 95, 191, 0.10), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 8%, rgba(196, 90, 26, 0.12), transparent 50%),
    linear-gradient(180deg, #f3f6fb 0%, #eef2f6 100%);
}
#replicates.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 95, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 90, 26, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}
#replicates .replicates-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--rep-ink);
}
#replicates .replicates-heading-sub {
  margin-top: 22px;
}
#replicates .replicates-heading-sub h2 {
  font-size: 24px;
}
#replicates .replicates-heading p {
  max-width: 54rem;
  color: #4d5a70;
}
#replicates .replicates-metrics {
  margin: 0 0 18px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 241, 255, 0.55));
  border: 1.5px solid #c9d4e4;
  border-radius: 4px;
  box-shadow: 3px 3px 0 rgba(26, 34, 51, 0.05);
}
#replicates .replicates-metrics .metric {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 4px 6px;
}
.replicates-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 4px;
}
.replicates-panel {
  background: #fff;
  border: 1.5px solid #c5cedc;
  border-radius: 3px;
  box-shadow: 6px 6px 0 rgba(26, 34, 51, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-bottom: 16px;
}
.replicates-layout .replicates-panel {
  margin-bottom: 0;
}
.replicates-panel--aug {
  border-left: var(--rep-rail) solid var(--rep-a);
  box-shadow: 6px 6px 0 rgba(31, 95, 191, 0.12);
}
.replicates-panel--auto {
  border-left: var(--rep-rail) solid var(--rep-b);
  box-shadow: 6px 6px 0 rgba(196, 90, 26, 0.12);
}
.replicates-panel--findings {
  border-left: var(--rep-rail) solid var(--rep-findings);
  box-shadow: 6px 6px 0 rgba(42, 107, 90, 0.12);
}
.replicates-panel-head {
  padding: 16px 18px 14px;
  border-bottom: 1.5px solid #d7dee9;
}
.replicates-panel--aug .replicates-panel-head {
  background:
    linear-gradient(120deg, var(--rep-a-soft) 0%, #fff 62%),
    repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(31, 95, 191, 0.04) 6px, rgba(31, 95, 191, 0.04) 7px);
}
.replicates-panel--auto .replicates-panel-head {
  background:
    linear-gradient(120deg, var(--rep-b-soft) 0%, #fff 62%),
    repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(196, 90, 26, 0.05) 6px, rgba(196, 90, 26, 0.05) 7px);
}
.replicates-panel--findings .replicates-panel-head {
  background:
    linear-gradient(120deg, var(--rep-findings-soft) 0%, #fff 62%),
    repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(42, 107, 90, 0.04) 6px, rgba(42, 107, 90, 0.04) 7px);
}
.replicates-panel-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.replicates-side-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 26px;
  padding: 0 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
}
.replicates-side-badge.aug { background: var(--rep-a); }
.replicates-side-badge.auto { background: var(--rep-b); }
.replicates-side-badge.findings { background: var(--rep-findings); }
.replicates-panel-role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6780;
}
.replicates-panel-head h3 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--rep-ink);
}
.replicates-panel--aug .replicates-panel-head h3 { color: var(--rep-a-deep); }
.replicates-panel--auto .replicates-panel-head h3 { color: var(--rep-b-deep); }
.replicates-panel--findings .replicates-panel-head h3 { color: var(--rep-findings-deep); }
.replicates-panel-sub {
  margin: 0;
  font-size: 12px;
  color: #5a6780;
  line-height: 1.4;
}
.replicates-panel-body {
  padding: 14px 16px 18px;
  background: var(--rep-paper);
  overflow: auto;
}
.replicates-panel--aug .replicates-panel-body { background: #fbfcff; }
.replicates-panel--auto .replicates-panel-body { background: #fffdf8; }
.replicates-panel--findings .replicates-panel-body { background: #f7fbf9; }
#replicates .replicates-panel-body .heat-table {
  margin-top: 8px;
}
#replicates .replicates-panel-body .model-legend,
#replicates .replicates-panel-body .heat-legend,
#replicates .replicates-panel-body .table-scroll-note {
  color: #5a6780;
}
#replicates .winner-block h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  color: var(--rep-ink);
}
#replicates .stability-row.active {
  background: var(--rep-a-soft);
}

/* Beat older strip-style overrides so findings cards stay eye-catching */
#replicates .findings-grid {
  gap: 16px;
  border: 0;
  background: transparent;
}
#replicates .finding-summary-card {
  border: 1.5px solid #c5cedc;
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(26, 34, 51, 0.07);
  padding: 18px 18px 16px 20px;
  min-height: 188px;
}
#replicates .finding-summary-card.finding-card--auto {
  border-color: #e4b892;
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(217, 111, 49, 0.16), transparent 55%),
    linear-gradient(180deg, #fffdf8, #fff8f0);
}
#replicates .finding-summary-card.finding-card--aug {
  border-color: #b6c8e8;
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(47, 111, 203, 0.16), transparent 55%),
    linear-gradient(180deg, #fbfcff, #eef4ff);
}
#replicates .finding-summary-card.finding-card--spec {
  border-color: #a9cbb8;
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(47, 127, 99, 0.16), transparent 55%),
    linear-gradient(180deg, #f7fbf9, #eaf6ef);
}
#replicates .finding-summary-card .summary-kicker {
  color: #1a2233;
}
#replicates .finding-card--auto .summary-kicker { color: #8f3d0c; }
#replicates .finding-card--aug .summary-kicker { color: #163f84; }
#replicates .finding-card--spec .summary-kicker { color: #1f5c47; }
#replicates .finding-summary-card .finding-headline,
#replicates .finding-summary-card b,
#replicates .finding-chip b {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}
#replicates .finding-metric-num {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}



/* —— Qualitative tab (Compare-aligned editorial chrome) —— */
#qualitative.panel {
  --qual-a: #1f5fbf;
  --qual-a-deep: #163f84;
  --qual-a-soft: #e8f1ff;
  --qual-b: #c45a1a;
  --qual-b-deep: #8f3d0c;
  --qual-b-soft: #fff0e4;
  --qual-c: #2f6b4f;
  --qual-c-soft: #e8f5ee;
  --qual-ink: #1a2233;
  --qual-paper: #fffdf8;
  --qual-rail: 5px;
  position: relative;
  isolation: isolate;
  padding: 4px 2px 8px;
  border-radius: 4px;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(31, 95, 191, 0.10), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 8%, rgba(196, 90, 26, 0.12), transparent 50%),
    linear-gradient(180deg, #f3f6fb 0%, #eef2f6 100%);
}
#qualitative.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 95, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 90, 26, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}
#qualitative .qual-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--qual-ink);
}
#qualitative .qual-heading p { max-width: 54rem; color: #4d5a70; }
#qualitative .qual-back-link {
  border: 1.5px solid #c5cedc;
  border-radius: 3px;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(26, 34, 51, 0.05);
  color: var(--qual-a-deep);
}
#qualitative .qual-quick-picks {
  margin-bottom: 16px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(232, 241, 255, 0.85), rgba(255, 255, 255, 0.95) 40%, rgba(255, 240, 228, 0.7));
  border: 1.5px solid #c9d4e4;
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(26, 34, 51, 0.06);
}
#qualitative .qual-quick-chip {
  border: 1.5px solid #c5cedc;
  border-radius: 2px;
  background: #fff;
  box-shadow: inset 3px 0 0 #c5cedb;
}
#qualitative .qual-quick-chip.active {
  border-color: rgba(31, 95, 191, 0.55);
  background: var(--qual-a-soft);
  box-shadow: inset 4px 0 0 var(--qual-a);
}
#qualitative .qual-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.35fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: stretch;
}
#qualitative .qual-panel {
  background: #fff;
  border: 1.5px solid #c5cedc;
  border-radius: 3px;
  box-shadow: 6px 6px 0 rgba(26, 34, 51, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: none;
}
#qualitative .qual-panel--models {
  border-left: var(--qual-rail) solid var(--qual-a);
  box-shadow: 6px 6px 0 rgba(31, 95, 191, 0.12);
}
#qualitative .qual-panel--text {
  border-left: var(--qual-rail) solid var(--qual-b);
  box-shadow: 6px 6px 0 rgba(196, 90, 26, 0.12);
  background: #fff;
  border-radius: 3px;
}
#qualitative .qual-panel--rationales {
  border-left: var(--qual-rail) solid var(--qual-c);
  box-shadow: 6px 6px 0 rgba(47, 107, 79, 0.12);
  background: #fff;
  border-radius: 3px;
  padding: 0;
}
#qualitative .qual-panel-head {
  padding: 14px 16px 12px;
  border-bottom: 1.5px solid #d7dee9;
  flex: 0 0 auto;
}
#qualitative .qual-panel--models .qual-panel-head {
  background:
    linear-gradient(120deg, var(--qual-a-soft) 0%, #fff 62%),
    repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(31, 95, 191, 0.04) 6px, rgba(31, 95, 191, 0.04) 7px);
}
#qualitative .qual-panel--text .qual-panel-head {
  background:
    linear-gradient(120deg, var(--qual-b-soft) 0%, #fff 62%),
    repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(196, 90, 26, 0.05) 6px, rgba(196, 90, 26, 0.05) 7px);
}
#qualitative .qual-panel--rationales .qual-panel-head {
  background:
    linear-gradient(120deg, var(--qual-c-soft) 0%, #fff 62%),
    repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(47, 107, 79, 0.05) 6px, rgba(47, 107, 79, 0.05) 7px);
}
#qualitative .qual-panel-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
#qualitative .qual-side-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 6px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
}
#qualitative .qual-side-badge.models { background: var(--qual-a); }
#qualitative .qual-side-badge.text { background: var(--qual-b); }
#qualitative .qual-side-badge.rationales { background: var(--qual-c); }
#qualitative .qual-panel-role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6780;
}
#qualitative .qual-panel-head h3 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--qual-ink);
}
#qualitative .qual-panel--models .qual-panel-head h3 { color: var(--qual-a-deep); }
#qualitative .qual-panel--text .qual-panel-head h3 { color: var(--qual-b-deep); }
#qualitative .qual-panel--rationales .qual-panel-head h3 { color: #1f4d38; }
#qualitative .qual-panel-sub {
  margin: 0;
  font-size: 12px;
  color: #5a6780;
  line-height: 1.4;
}
#qualitative .qual-panel-body {
  padding: 12px 14px 16px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--qual-paper);
}
#qualitative .qual-panel--models .qual-panel-body {
  background: #fbfcff;
  padding: 10px;
}
#qualitative .model-list {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
#qualitative .model-button {
  border: 1.5px solid #c5cedc;
  border-radius: 3px;
  background: #fff;
  box-shadow: inset 4px 0 0 #c5cedb;
  margin-bottom: 8px;
}
#qualitative .model-button:hover {
  border-color: #9eb4d8;
  background: var(--qual-a-soft);
}
#qualitative .model-button.active {
  border-color: rgba(31, 95, 191, 0.55);
  background: var(--qual-a-soft);
  box-shadow: inset 5px 0 0 var(--qual-a);
}
#qualitative .text-toolbar {
  border-bottom: 1.5px solid #d7dee9;
  padding: 10px 14px;
  background: #fff;
  flex: 0 0 auto;
}
#qualitative .content-tab.active {
  border-color: var(--qual-b);
  background: var(--qual-b-soft);
}
#qualitative .role-strip {
  background: linear-gradient(180deg, #fffaf4, #fff);
  border-bottom: 1.5px solid #e7d7c8;
  flex: 0 0 auto;
}
#qualitative .role-chip {
  border: 1.5px solid #e0c4b0;
  border-radius: 3px;
  box-shadow: inset 3px 0 0 var(--qual-b);
}
#qualitative #qualText {
  background: #fffdf8;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}
#qualitative .qual-section {
  border-radius: 3px;
  border: 1.5px solid #c5cedc;
  box-shadow: 3px 3px 0 rgba(26, 34, 51, 0.04);
}
#qualitative .qual-sec-label {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 14px;
  font-weight: 700;
}
#qualitative .qual-pair-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(232, 245, 238, 0.9), rgba(255, 255, 255, 0.96) 45%, rgba(232, 241, 255, 0.7));
  border: 1.5px solid #c5d6cc;
  border-radius: 3px;
  box-shadow: 3px 3px 0 rgba(26, 34, 51, 0.05);
}
#qualitative .qual-pair-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
#qualitative .qual-pair-scope {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  color: #617089;
  line-height: 1.4;
}
#qualitative .qual-pair-empty {
  font-size: 12px;
  color: #617089;
  font-style: italic;
}
#qualitative .rationale-list {
  background: transparent;
  border: 0;
  box-shadow: none;
  max-height: none;
  overflow: hidden;
  height: 100%;
  min-height: 0;
}
#qualitative .rationale {
  border-top: 1.5px solid #d7dee9;
  padding: 14px 0;
}
#qualitative .rationale:first-child { border-top: 0; padding-top: 0; }
#qualitative .rationale .meta {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: #4d5a70;
  margin-bottom: 8px;
}
#qualitative .contestant-detail {
  border: 1.5px solid #c5cedc;
  border-radius: 3px;
  box-shadow: 3px 3px 0 rgba(26, 34, 51, 0.04);
}
#qualitative .contestant-detail.winner {
  border-color: rgba(31, 95, 191, 0.55);
  background: var(--qual-a-soft);
  box-shadow: inset 4px 0 0 var(--qual-a);
}
#qualitative .score-chip {
  border-radius: 2px;
  background: #edf1f5;
  font-weight: 750;
}
#qualitative .qual-empty-state {
  border: 1.5px dashed #c5cedc;
  border-radius: 3px;
  background: #fff;
}
.control-band.control-band--qualitative {
  margin: 0 0 16px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(232, 241, 255, 0.85), rgba(255, 255, 255, 0.95) 40%, rgba(255, 240, 228, 0.7));
  border: 1.5px solid #c9d4e4;
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(26, 34, 51, 0.06);
  position: sticky;
  top: 56px;
  z-index: 4;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.control-band.control-band--qualitative label {
  color: #1a2233;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
}
.control-band.control-band--qualitative select {
  border: 1.5px solid #c5cedc;
  border-radius: 3px;
  background: #fff;
  box-shadow: inset 3px 0 0 #1f5fbf;
  font-weight: 600;
}

/* Scoreboard + Single-run: Run/Task/Mode strip — orange→blue editorial chrome */
.control-band.control-band--editorial {
  margin: 0 0 16px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(255, 240, 228, 0.88), rgba(255, 255, 255, 0.95) 42%, rgba(232, 241, 255, 0.9));
  border: 1.5px solid #c9d4e4;
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(26, 34, 51, 0.06);
  position: sticky;
  top: 56px;
  z-index: 4;
}
.control-band.control-band--editorial label {
  color: #1a2233;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
}
.control-band.control-band--editorial select {
  border: 1.5px solid #c5cedc;
  border-radius: 3px;
  background: #fff;
  box-shadow: inset 3px 0 0 #1f5fbf;
  font-weight: 600;
  min-height: 36px;
}
@media (max-width: 1100px) {
  #qualitative .qual-grid { grid-template-columns: 1fr; }
  #qualitative .qual-panel,
  #qualitative .rationale-list {
    max-height: none;
    height: auto;
  }
}

/* —— Mobile / tablet: keep desktop chrome, tighten layouts —— */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: clip;
}
body.ambient-static {
  background:
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(47, 111, 203, 0.08), transparent 55%),
    #eef2f6;
}
.ambient-canvas {
  pointer-events: none;
}

@media (max-width: 1100px) {
  main {
    width: 100%;
    padding: 22px 16px 56px;
  }

  .topbar {
    padding: 0 12px;
  }

  .tabs {
    gap: 0;
    scroll-snap-type: x proximity;
  }

  .tab {
    flex: 0 0 auto;
    min-width: auto;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 14px;
    scroll-snap-align: start;
  }

  .paper-title {
    font-size: clamp(18px, 4.2vw, 24px);
  }

  .authors {
    font-size: 12px;
    line-height: 1.45;
  }

  .paper-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .control-band,
  .control-band.control-band--editorial {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 12px;
    top: 48px;
  }

  .control-band label {
    min-width: 0;
  }

  .control-band select {
    width: 100%;
    min-height: 40px;
    font-size: 16px; /* avoid iOS zoom */
  }

  .landing-hero-frame,
  .ace-band,
  .landing-section {
    min-width: 0;
  }

  .landing-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-cta-row .cta-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .role-swap-layout,
  .compare-teaser-arena,
  .rank-layout {
    grid-template-columns: 1fr;
  }

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

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

  .table-scroll,
  .table-scroll-wrap,
  .replicates-panel-body,
  .heatmaps-panel-body {
    -webkit-overflow-scrolling: touch;
  }

  .heat-table th,
  .heat-table td {
    padding: 8px 8px;
    font-size: 12px;
  }

  .compare-judge-bar,
  .rank-judge-bar,
  .heatmaps-judge-bar,
  #qualitative .qual-pair-controls {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .compare-judge-chips,
  #qualitative .qual-pair-bar {
    flex-wrap: wrap;
    gap: 6px;
  }

  .compare-judge-chip {
    min-height: 36px;
  }

  .compare-radar-stage {
    max-width: 100%;
  }

  .compare-panel,
  .rank-panel,
  .heatmaps-panel,
  .replicates-panel {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  main {
    padding: 16px 12px 48px;
  }

  .topbar-details {
    padding: 12px 0 14px;
  }

  .tab {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .control-band,
  .control-band.control-band--editorial {
    grid-template-columns: 1fr !important;
    position: static;
    top: auto;
    margin-bottom: 14px;
    padding: 12px;
  }

  .findings-grid,
  .takeaway-grid,
  .hero-stat-band,
  .explore-card-grid,
  .metric-row,
  .overview-task-list {
    grid-template-columns: 1fr;
  }

  .finding-summary-card {
    min-height: 0;
  }

  .finding-metric-num {
    font-size: 36px;
  }

  .landing-hero {
    padding: 18px 14px 16px;
  }

  .landing-headline {
    font-size: clamp(26px, 8vw, 36px);
    line-height: 1.08;
  }

  .landing-hero-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .landing-hero-logos {
    width: 100%;
    justify-content: flex-start;
  }

  .landing-hero-logos .logo-dial {
    width: 88px;
    height: 88px;
  }

  .landing-hero-logos .logo-haas {
    width: 100px;
    height: 100px;
  }

  .overview-task-detail,
  .compare-pane-body,
  .text-pane {
    max-height: none;
  }

  .compare-controls {
    grid-template-columns: 1fr;
    position: static;
  }

  .compare-arena {
    grid-template-columns: 1fr;
  }

  .ace-band.overview-engage {
    padding: 24px 16px;
  }

  .engage-contact {
    width: 100%;
    text-align: center;
  }

  .section-heading h2,
  .replicates-heading h2 {
    font-size: 22px;
  }

  .viz-card {
    padding: 14px;
  }

  /* Soften hard shadows a bit on narrow screens so cards don’t feel heavy */
  .finding-summary-card,
  .compare-panel,
  .replicates-panel,
  .rank-panel,
  .heatmaps-panel {
    box-shadow: 3px 3px 0 rgba(26, 34, 51, 0.06);
  }
}

@media (max-width: 420px) {
  .tab {
    padding: 10px 10px;
    font-size: 12.5px;
  }

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

  .paper-bar-btn {
    width: 100%;
    justify-content: center;
  }
}
