/* Charts are drawn from source values as interactive DOM/SVG, not image assets. */
.native-charts { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; }
.chart-card { min-width: 0; position: relative; padding: 20px; border: 1px solid #e2e7ef; border-radius: 14px; background: #fff; box-shadow: 0 7px 24px #27355209, 0 1px 3px #27355206; }
.chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chart-heading h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -.4px; color: #2f3a50; }
.chart-replay { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; padding: 0; border: 1px solid #e3e7ef; border-radius: 50%; background: #fff; color: #61718c; font-size: 21px; line-height: 1; }
.chart-replay:hover { color: #17877d; background: #f1f7f6; border-color: #c9deda; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; font-size: 13px; line-height: 1.5; color: #626e80; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.chart-legend > span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #819bb8; }
.chart-legend .legend-ours { color: #126d65; font-weight: 650; }
.chart-legend .legend-ours::before { background: #17877d; }
.chart-legend .legend-jepa::before { border-radius: 0; transform: rotate(45deg); background: #9b86ba; }
.chart-stage { position: relative; min-width: 0; margin-top: 8px; }
.chart-stage > svg { width: 100%; height: auto; display: block; overflow: visible; font-family: inherit; }
.chart-stage text { fill: #5f6b7f; font-size: 12px; }
.chart-stage .chart-axis-title { font-size: 13px; font-weight: 650; fill: #3d4c63; }
.chart-stage .chart-method-label { font-size: 12px; fill: #62758e; }
.chart-stage .chart-method-label.ours { fill: #126d65; font-size: 13px; font-weight: 750; }
.chart-stage .radar-axis-name { fill: #37455b; font-size: 13px; font-weight: 650; }
.chart-stage .radar-value { fill: #17877d; font-size: 14px; font-weight: 700; }
.chart-stage .radar-baseline-value { fill: #71829c; font-size: 12px; font-weight: 500; }
.chart-stage .chart-footnote { font-size: 11.5px; fill: #7a8495; }
.chart-grid { stroke: #e7ebf2; stroke-width: 1; fill: none; }
.chart-axis { stroke: #a5afc0; stroke-width: 1.2; fill: none; }
.chart-point { cursor: pointer; outline: none; }
.chart-point:focus-visible .focus-ring, .chart-point:hover .focus-ring { opacity: 1; }
.focus-ring { fill: none; stroke: #536ba8; stroke-width: 2; opacity: 0; transition: opacity .15s ease; }
.scatter-point { opacity: 1; transition: opacity .65s ease; transition-delay: var(--point-delay,0ms); }
.scatter-marker { transform: scale(1); transition: transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--point-delay,0ms); }
.chart-card.is-pending .scatter-point { opacity: 0; }
.chart-card.is-pending .scatter-marker { transform: scale(.3); }
.radar-axis-label { opacity: 1; transition: opacity .6s ease .35s; }
.chart-card.is-pending .radar-axis-label { opacity: 0; }
.chart-tooltip { position: absolute; z-index: 5; width: max-content; max-width: min(238px,100%); padding: 12px 14px; border: 1px solid #dbe2ed; border-radius: 10px; background: rgba(255,255,255,.98); box-shadow: 0 8px 26px #1b2b4c25; color: #414e65; font-size: 13px; line-height: 1.5; pointer-events: none; }
.chart-tooltip[hidden] { display: none; }
.chart-tooltip strong { display: block; margin-bottom: 6px; color: #263a54; font-size: 14px; }
.chart-tooltip dl { margin: 0; }
.chart-tooltip dl > div { display: flex; justify-content: space-between; gap: 16px; }
.chart-tooltip dt { color: #718096; }
.chart-tooltip dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.chart-tooltip p { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: #768195; }
.chart-loading { display: grid; place-items: center; min-height: 400px; color: #718096; font-size: 16px; }
.chart-replay:focus-visible { outline: 2px solid #536ba8; outline-offset: 3px; }
@media (max-width:1000px) {
  .native-charts { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
  .chart-card { padding: 20px 24px; }
}
@media (max-width:760px) {
  .chart-card { padding: 16px 12px; border-radius: 11px; }
  .chart-heading h3 { font-size: 19px; }
  .chart-legend { gap: 9px 13px; font-size: 12px; }
  .chart-stage .chart-footnote { font-size: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  .scatter-point, .scatter-marker, .radar-axis-label { transition: none; }
  .chart-card.is-pending .scatter-point, .chart-card.is-pending .radar-axis-label { opacity: 1; }
  .chart-card.is-pending .scatter-marker { transform: none; }
  .chart-replay { display: none; }
}
