.rank-graph { margin: 16px 0; padding: 16px 20px 12px; }
.rank-graph-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.rank-graph-figures { display: flex; flex-wrap: wrap; gap: 28px; }
.rank-graph-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.rank-graph-value { font-size: 26px; font-weight: 700; color: var(--relax); line-height: 1.1; }
.rank-graph-pp { color: var(--text); }
.rank-graph-best { color: var(--warning); font-size: 18px; }
.rank-graph-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.rank-graph-switch button { background: none; border: 0; color: var(--muted); padding: 4px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.rank-graph-switch button.is-active { background: var(--accent); color: var(--accent-dark); font-weight: 700; }
.rank-graph-plot { position: relative; height: 150px; margin-top: 12px; touch-action: pan-y; }
.rank-graph-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rank-graph-line { fill: none; stroke: var(--warning); stroke-width: 2.5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.rank-graph-line-pp { stroke: var(--accent); }
.rank-graph-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px rgba(0,0,0,.35); pointer-events: none; }
.rank-graph-tip { position: absolute; top: -8px; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: var(--radius-sm); background: var(--panel-3); border: 1px solid var(--border); font-size: 12px; white-space: nowrap; pointer-events: none; }
.rank-graph-tip strong { display: block; font-size: 14px; color: var(--text); }
.rank-graph-note, .rank-graph-empty { margin: 8px 0 0; }
@media (max-width: 640px) {
  .rank-graph { padding: 14px 16px 10px; }
  .rank-graph-figures { gap: 18px; }
  .rank-graph-value { font-size: 22px; }
  .rank-graph-plot { height: 120px; }
}
