/* Modern ranked list with gradient progress bars — replaces the old canvas
   charts for favourites, workout splits, and gym days. */

.chart-inner.stat-list-inner {
  min-width: 0;
  min-height: 0;
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
}

.stat-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row--no-rank {
  grid-template-columns: minmax(0, 1fr) auto;
}

.stat-rank {
  min-width: 30px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stat-name {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-value {
  color: var(--text-secondary);
  font-size: 0.85rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stat-bar-track {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-hover);
  overflow: hidden;
}

.stat-bar-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--accent-gradient);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 480px) {
  .stat-row {
    padding: 12px 6px;
    column-gap: 10px;
  }
}
