.emergent-figure {
  --color-background: #fff;
  --color-blue-60: #a3befa;
  --color-blue-80: #5477c4;
  --color-gray-100: #47484f;
  --color-gray-60: #bcbec4;
  --color-green-100: #386411;
  --color-green-20: #d8ecbd;
  --color-green-40: #beeb96;
  --color-green-60: #a3d576;
  --color-green-80: #71b436;
  --color-orange-60: #ff9365;
  --color-primary-solid-100: #000;
  margin: 2.25em 0 2em;
}

.emergent-figure img {
  display: block;
  width: min(100%, 980px);
  height: auto;
  margin: 0 auto;
}

.emergent-figure-wide {
  margin-left: min(0px, calc((760px - min(100vw - 48px, 1100px)) / 2));
  margin-right: min(0px, calc((760px - min(100vw - 48px, 1100px)) / 2));
}

.emergent-figure-wide img {
  width: min(100%, 1100px);
}

.ea-chart,
.ea-chart-grid,
.healthbench-example {
  color: #111;
}

.ea-chart {
  min-height: 280px;
  width: 100%;
  overflow: visible;
  background: transparent;
}

.ea-chart-large {
  min-height: 560px;
}

.ea-chart details,
.ea-chart summary {
  color: #111;
}

.ea-chart svg {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.ea-figure4-summary svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ea-static-chart {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: transparent;
}

.ea-chart-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 880px;
  margin: 0 auto;
}

.ea-chart-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  min-width: 0;
}

.ea-chart-row-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 660px;
  width: 100%;
  margin: 0 auto;
}

.ea-chart-panel {
  min-width: 0;
}

.ea-panel-title {
  margin: 0 0 0.75rem;
  color: #111;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.ea-show-more {
  display: block;
  margin: 1.5rem auto 0;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  background: transparent;
  color: #111;
  font: inherit;
  cursor: pointer;
}

.ea-show-more:hover,
.ea-show-more:focus-visible {
  background: rgba(17, 17, 17, 0.08);
}

.healthbench-example {
  --hb-text: #111;
  --hb-muted: #5f5f5f;
  --hb-border: rgba(17, 17, 17, 0.22);
  --hb-panel: rgba(255, 255, 255, 0.64);
  --hb-dot: rgba(17, 17, 17, 0.08);
  --hb-green: rgba(120, 166, 65, 0.24);
  --hb-green-border: rgba(17, 17, 17, 0.28);
  color: var(--hb-text);
  max-width: 1100px;
  margin: 0 auto;
  background: transparent;
}

.healthbench-tabs {
  display: flex;
  width: max-content;
  margin: 0 auto 2.25rem;
  padding: 0.28rem;
  border: 1px solid var(--hb-border);
  border-radius: 999px;
  background: transparent;
  gap: 0.2rem;
}

.healthbench-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.healthbench-tab.is-active {
  background: rgba(17, 17, 17, 0.08);
}

.healthbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.55rem;
}

.healthbench-panel h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.2;
}

.healthbench-chat,
.healthbench-response {
  min-height: 22rem;
  max-height: 29rem;
  overflow: auto;
  border: 1px solid var(--hb-border);
  border-radius: 6px;
  padding: 1rem;
  background: transparent;
}

.healthbench-message,
.healthbench-response {
  background-image: radial-gradient(var(--hb-dot) 1px, transparent 1px);
  background-size: 6px 6px;
}

.healthbench-message-wrap {
  display: flex;
  flex-direction: column;
  width: min(90%, 100%);
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.healthbench-message-wrap:last-child {
  margin-bottom: 0;
}

.healthbench-message-wrap-user {
  align-items: flex-start;
  margin-right: auto;
}

.healthbench-message-wrap-assistant {
  align-items: flex-end;
  margin-left: auto;
}

.healthbench-message {
  border: 1px solid var(--hb-border);
  border-radius: 6px 6px 6px 0;
  padding: 1rem;
  background-color: var(--hb-panel);
}

.healthbench-message-wrap-assistant .healthbench-message {
  border-radius: 6px 6px 0 6px;
}

.healthbench-role {
  margin: 0;
  color: var(--hb-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.healthbench-response {
  padding: 1.2rem;
  background-color: var(--hb-panel);
}

.healthbench-message p,
.healthbench-response p,
.healthbench-rubric-row p {
  margin: 0;
}

.healthbench-message ul,
.healthbench-message ol,
.healthbench-response ul,
.healthbench-response ol {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.healthbench-message li + li,
.healthbench-response li + li {
  margin-top: 0.35rem;
}

.healthbench-message p + p,
.healthbench-response p + p {
  margin-top: 1.15rem;
}

.healthbench-rubric {
  max-height: 24rem;
  overflow: auto;
}

.healthbench-rubric-row {
  display: block;
}

.healthbench-rubric-row {
  border: 1px solid var(--hb-green-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--hb-green);
  color: var(--hb-text);
}

.healthbench-rubric-row + .healthbench-rubric-row {
  margin-top: 0.7rem;
}

.healthbench-rubric-row p,
.healthbench-rubric-row span {
  padding: 1rem;
}

.healthbench-score {
  margin-top: 1.6rem;
  padding: 0 0.7rem;
}

.healthbench-score-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  color: var(--hb-text);
}

.healthbench-score-track {
  position: relative;
  display: block;
  height: 2px;
  background: currentColor;
}

.healthbench-score-track::before,
.healthbench-score-track::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  background-image: radial-gradient(var(--hb-dot) 1px, transparent 1px);
  background-color: var(--hb-panel);
  background-size: 5px 5px;
  transform: translateY(-50%);
}

.healthbench-score-track::before {
  left: -0.15rem;
}

.healthbench-score-track::after {
  right: -0.15rem;
  background-color: var(--hb-green);
}

.healthbench-score-marker {
  position: absolute;
  left: var(--score-pos);
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--hb-panel);
  transform: translate(-50%, -50%);
}

.healthbench-score-callout {
  width: max-content;
  margin: 1.3rem 0 0 calc(var(--score-pos) - 1.8rem);
  border: 1px solid var(--hb-border);
  border-radius: 4px;
  padding: 0.45rem 0.8rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.35;
  background-image: radial-gradient(var(--hb-dot) 1px, transparent 1px);
  background-color: var(--hb-panel);
  background-size: 5px 5px;
}

.healthbench-score-callout span {
  display: block;
}

.correspondence {
  margin: 0.35em 0 0;
  color: #666;
  font-size: 0.95em;
}

.paper-cta {
  display: inline-block;
  margin: 0.85em 0 1.9em;
  padding: 0.7em 1em;
  border: 1px solid #111;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.paper-cta:hover,
.paper-cta:focus-visible {
  background: #111;
  color: #fff;
}

.tldr {
  margin: 1.4em 0 1.8em;
  padding: 1em 1.15em;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 6px;
  background: rgba(17, 17, 17, 0.035);
}

.tldr strong {
  display: block;
  margin-bottom: 0.45em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tldr p {
  margin: 0;
}

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

  .ea-chart-large {
    min-height: 420px;
  }

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

  .healthbench-chat,
  .healthbench-response,
  .healthbench-rubric {
    max-height: none;
  }
}

@media (max-width: 620px) {
  .healthbench-tabs {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .healthbench-tab {
    flex: 0 0 auto;
    padding-inline: 0.8rem;
  }

  .ea-chart {
    min-height: 240px;
  }
}
