.page {
  padding: 24px;
}

.pageHeader {
  margin-bottom: 24px;
}

.pageTitle {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
}

.pageSubtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow: hidden;
}

.cardWide {
  grid-column: span 2;
}

.cardTitle {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px;
}

.cardBody {
}

.empty {
  color: var(--color-text-dim);
  text-align: center;
  padding: 20px 0;
}

.healthItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.healthItem:last-child {
  border-bottom: none;
}

.healthName {
  width: 120px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.healthBar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--color-surface);
  overflow: hidden;
}

.healthFill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-success));
  transition: width var(--transition-medium);
}

.healthPct {
  width: 40px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.pctFast { color: #00ff88; }
.pctMedium { color: #ffaa00; }
.pctSlow { color: #ff4444; }

:global([data-theme="light"]) .pctFast   { color: #008f4d; }
:global([data-theme="light"]) .pctMedium { color: #b86b00; }
:global([data-theme="light"]) .pctSlow   { color: #c8143a; }

.leaderItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.leaderItem:last-child {
  border-bottom: none;
}

.leaderRank {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: var(--color-surface);
  color: var(--color-text-dim);
  flex-shrink: 0;
}

.rank1 { background: rgba(255, 215, 0, 0.15); color: #ffd700; }
.rank2 { background: rgba(192, 192, 192, 0.15); color: #c0c0c0; }
.rank3 { background: rgba(205, 127, 50, 0.15); color: #cd7f32; }

.leaderName {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderLatency {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-success);
  flex-shrink: 0;
}

.tierItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.tierBadge {
  width: 40px;
  flex-shrink: 0;
}

.tierBar {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: var(--color-surface);
  overflow: hidden;
}

.tierFill {
  height: 100%;
  border-radius: 5px;
  transition: width var(--transition-medium);
}

.tierCount {
  width: 30px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
}

@media (max-width: 1024px) {
  .grid { grid-template-columns: 1fr; }
  .cardWide { grid-column: span 1; }
}
