.dashboard-tab-bar {
  display: flex;
  gap: 4px;
  padding: 0 0 16px;
}

.dashboard-tab {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dashboard-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.dashboard-tab.active {
  border-color: var(--blue);
  background: rgba(90, 167, 255, 0.12);
  color: var(--text);
}

.dashboard-tab-content:not([data-active]) {
  display: none;
}

.metrics-grid > .metric {
  padding: 12px 14px 14px 12px;
}

#dashboard .metrics-grid > .metric.metric-dual {
  --metric-accent: var(--blue);
  display: flex;
  grid-template-rows: none;
  place-items: stretch;
  align-items: stretch;
  gap: 0;
  min-height: 90px;
  padding: 0;
  text-align: left;
}

#dashboard .metrics-grid > .metric.metric-dual::after {
  display: block;
}

.metric-dual-item {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 18px 18px 16px;
  position: relative;
}

.metric-dual-item > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 22px;
  margin: 0;
  color: var(--text);
  font-size: clamp(0.88rem, 0.92vw, 1rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.metric-dual-item > span::before {
  content: "|";
  color: currentColor;
  font-weight: 800;
}

.metric-dual-item > span .metric-label-icon {
  display: none;
}

.metric-dual-item > strong {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.9rem, 2vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
  text-align: center;
}

.metric-dual-item > small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
}

.metric-dual-item > small > span {
  display: inline;
  width: auto;
  min-height: 0;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.metric-dual-item > small > span::before {
  content: none;
}

.metric-dual-divider {
  width: 1px;
  margin: 18px 0;
  background: var(--line);
  flex: 0 0 1px;
}

@media (max-width: 760px) {
  #dashboard .metrics-grid > .metric.metric-dual {
    flex-direction: column;
  }

  .metric-dual-divider {
    width: auto;
    height: 1px;
    margin: 0 18px;
  }
}

[data-dashboard-tab-content="progresso"] .dashboard-grid {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 760px) {
  [data-dashboard-tab-content="progresso"] .dashboard-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
