.chart { position: relative; width: 100%; }
.chart svg { overflow: visible; touch-action: pan-y; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--text-3); font: 500 11px var(--font-sans); font-variant-numeric: tabular-nums; }
.chart .ref { stroke: var(--text-3); stroke-dasharray: 3 4; stroke-width: 1; }
.chart .guide { stroke: var(--line-2); stroke-width: 1; }
.tip {
  position: absolute; pointer-events: none; z-index: 5; display: flex; flex-direction: column; gap: 2px;
  padding: 8px 11px; border-radius: var(--r-sm); background: var(--surface-3); border: 1px solid var(--line-2);
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.55); font-size: 12px; white-space: nowrap;
}
.tip-l { color: var(--text-3); }
.tip-v { display: flex; align-items: center; gap: 7px; font-size: 13px; font-variant-numeric: tabular-nums; }
.tip-v i { width: 8px; height: 8px; border-radius: 2px; }

.ring { position: relative; flex: none; }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.ring-in b { font-size: 26px; font-weight: 650; }
.ring-in span { font-size: 12px; color: var(--text-3); margin-top: 3px; }

.stack { display: flex; gap: 3px; height: 12px; border-radius: 6px; overflow: hidden; }
.stack i { display: block; min-width: 3px; border-radius: 3px; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.legend li i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.legend li b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(14px, 1fr)); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, var(--c) calc(var(--a) * 100%), var(--surface-3)); }
.heat i.gap { background: transparent; border: 1px dashed var(--line-2); }

/* ---------- stat card ---------- */
.stat { display: flex; flex-direction: column; gap: 14px; padding: 20px; overflow: hidden; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-name { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 550; color: var(--text-2); }
.stat-name .i { color: var(--c); }
.stat-value { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.stat-value b { font-size: 34px; line-height: 1; font-weight: 650; letter-spacing: -0.03em; }
.stat-value span { font-size: 13px; color: var(--text-3); }
.stat-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; min-height: 34px; }
.stat-foot small { font-size: 12px; color: var(--text-3); }
.stat::after { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; background: var(--c); opacity: .85; border-radius: 0 0 2px 2px; }
@media (max-width: 760px) { .stat-value b { font-size: 28px; } .stat { padding: 16px; } }

.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; }
.hero-meta { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero-meta h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.hero-meta p { color: var(--text-2); max-width: 54ch; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.mini-stats div { display: flex; flex-direction: column; gap: 2px; }
.mini-stats b { font-size: 18px; font-weight: 650; }
.mini-stats span { font-size: 12px; color: var(--text-3); }
@media (max-width: 640px) { .hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .hero-meta p { margin: 0 auto; } }

.stages { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
.stage-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 13px; }
.stage-row .bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.stage-row .bar i { display: block; height: 100%; border-radius: 4px; }
.stage-row b { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 4.5em; text-align: right; }

.rows { display: flex; flex-direction: column; }
.rows > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.rows > div:first-child { padding-top: 0; }
.rows dt, .rows .k { color: var(--text-2); font-size: 13px; }
.rows dd, .rows .v { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.compare { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.compare:last-child { border-bottom: 0; }
.compare .h { font-size: 11.5px; letter-spacing: .04em; color: var(--text-3); font-weight: 600; }
.compare .prev { color: var(--text-3); }
.compare b { font-weight: 650; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .compare { grid-template-columns: minmax(0, 1fr) auto auto; } .compare .prev { display: none; } .compare .h:nth-child(3) { display: none; } }

.gap-bar { position: relative; height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--good) 28%, var(--surface-3)); overflow: hidden; }
.gap-bar i { position: absolute; top: 0; bottom: 0; background: var(--bad); opacity: .85; min-width: 2px; }
.compare .chip { justify-self: start; }
