#robolab > h2, #robolab > p { text-align: center; }
#robolab > h2 { font-size: clamp(27px, 2.7vw, 32px); line-height: 1.2; }
#robolab > p, #robolab figcaption, #robolab .figure-note { width: 100%; max-width: 70rem; margin-inline: auto; }
.result-figure {
  --chart-ink: #233e46;
  margin: 6px 0 0;
  padding: 13px 0 4px;
  border-top: 1px solid #e3e9e9;
  background: #fff;
  color: var(--chart-ink);
}
.result-figure figcaption { text-align: center; }
.paper-section .result-figure h3 { margin: 5px 0; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.25; }
.paper-section .result-figure figcaption p { font-size: 14px; }
.result-figure figcaption p + p { margin-top: 8px; }
.result-plot { display: grid; gap: 12px; margin-top: 16px; }
.plot-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 16px; font-size: 12px; }
.plot-metrics { --series: #657781; margin-top: -5px; }
.plot-legend span { display: inline-flex; align-items: center; gap: 5px; }
.plot-legend span::before, .plot-readout::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--series); flex: none; }
.plot-metrics span::before { width: 15px; }
.plot-legend span::before, .plot-readout::before, .plot-fill { box-shadow: inset 0 0 0 1px #33485438; }
.plot-metrics .striped-key::before, .plot-bar.striped .plot-fill {
  background: repeating-linear-gradient(135deg, transparent 0 3px, #ffffffc9 3px 4.5px), var(--series);
}
.plot-scroll { min-width: 0; max-width: 100%; overflow-x: auto; }
.plot-stage { display: grid; grid-template-columns: 36px minmax(0,1fr); grid-template-rows: 176px auto; padding: 10px 3px 3px 0; }
.result-figure[data-figure="7"] .plot-stage { min-width: 750px; }
.policy-plots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 26px); }
.policy-plot { display: grid; gap: 6px; min-width: 0; }
.policy-plot h4 { margin: 0; text-align: center; font-size: 16px; }
.policy-plot .plot-stage { grid-template-rows: 176px; padding-bottom: 9px; }
.plot-axis { position: relative; }
.plot-tick { position: absolute; right: 6px; transform: translateY(50%); color: #50656c; font: 11px var(--mono); }
.plot-area { position: relative; }
.plot-line { pointer-events: none; position: absolute; width: 100%; border-top: 1px solid #e2e9ea; }
.plot-line:first-child { border-top-color: #68828b; }
.plot-groups, .plot-labels { display: grid; grid-template-columns: repeat(var(--groups), minmax(0,1fr)); }
.plot-groups { position: absolute; inset: 0; border-bottom: 1px solid #698089; }
.plot-labels { grid-column: 2; align-items: start; text-align: center; font-size: 12px; padding-top: 8px; }
.plot-cluster { display: flex; align-items: stretch; justify-content: center; position: relative; padding: 0 6%; gap: 3%; }
.plot-pair { display: flex; flex: 1; gap: 1px; max-width: 53px; min-width: 0; height: 100%; appearance: none; cursor: pointer; border: 0; padding: 0; background: transparent; }
.plot-bar { flex: 1; position: relative; min-width: 0; }
.plot-rise { position: absolute; inset: 0; transform-origin: center bottom; --plot-start: scaleY(0); }
.plot-unroll { transform-origin: left center; --plot-start: scaleX(0); }
.plot-rise, .plot-unroll { transform: var(--plot-start); }
.plot-visible :is(.plot-rise, .plot-unroll) { animation: results-reveal 700ms cubic-bezier(.2,.75,.25,1) var(--delay, 0ms) both; }
@keyframes results-reveal { from { transform: var(--plot-start); } to { transform: none; } }
.plot-fill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--height); border-radius: 3px 3px 0 0; background: var(--series); }
.plot-error { width: 1px; background: #223c45; position: absolute; bottom: var(--low); height: var(--range); left: 50%; }
.plot-error::before, .plot-error::after { content: ""; position: absolute; width: 7px; height: 1px; left: -3px; background: #223c45; }
.plot-error::before { top: 0; }
.plot-error::after { bottom: 0; }
.plot-pair.inspected { background: #17363a0a; }
.plot-pair:focus-visible { outline: 2px solid #066a8a; outline-offset: 2px; }
.result-figure[data-figure="7"] .plot-cluster:last-child { background: #f4f8f7; border-left: 1px dashed #bdcfcc; }
.result-figure[data-figure="7"] .plot-labels span:last-child { font-weight: 700; }
.plot-readout { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; text-align: center; gap: 2px 12px; min-height: 32px; padding: 6px 10px; background: #f0f5f4; border-radius: 5px; font-size: 13px; font-variant-numeric: tabular-nums; }
.plot-score { white-space: nowrap; }
.plot-readout b { font-weight: 500; }
#robolab figcaption strong, .plot-readout[data-method="RegiSteer"] b { color: var(--accent); font-weight: 700; }
.policy-plot .plot-readout { display: block; padding: 7px 3px; }
.policy-plot .plot-readout strong { margin-left: 5px; }
.policy-plot .plot-score { display: block; }
@media (max-width: 700px) {
  .policy-plots { grid-template-columns: 1fr; gap: 20px; max-width: 470px; width: 100%; margin: 0 auto; }
}
.paper-section .figure-note { margin-top: 9px; text-align: center; color: #52656d; font-size: 12px; line-height: 1.5; }
@media (max-width: 620px) {
  .plot-stage { grid-template-rows: 144px auto; }
  .plot-readout { min-height: 44px; }
  .plot-labels, .plot-legend { font-size: 11px; }
  .plot-cluster { padding-inline: 3%; gap: 2%; }
  .plot-error::before, .plot-error::after { width: 5px; left: -2px; }
  .plot-readout::before { display: none; }
  .plot-readout strong { width: 100%; }
}
@media (prefers-reduced-motion: reduce), print {
  .result-figure .plot-rise, .bars .plot-unroll { animation: none; transform: none; }
}
