.health-hero {
  position: relative;
  overflow: hidden;
}

.health-hero.health-hero-compact {
  padding-top: 18px;
  padding-bottom: 14px;
}

.health-hero.health-hero-compact .health-hero-head {
  margin-bottom: 8px;
}

.health-hero.health-hero-compact #whoopHeroHelper {
  display: none;
}

.health-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(74, 222, 128, 0.12), transparent 45%),
              radial-gradient(circle at 20% 90%, rgba(56, 189, 248, 0.12), transparent 40%);
  pointer-events: none;
}

.health-hero-head,
.health-actions,
#whoopLastSync {
  position: relative;
  z-index: 1;
}

.health-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

#whoopLastSync {
  overflow-wrap: anywhere;
}

.btn {
  border: 1px solid var(--border-gold);
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.18), rgba(201, 169, 98, 0.07));
  color: var(--text-primary);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-gold-strong);
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.btn-subtle {
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.btn.is-hidden {
  display: none;
}

.health-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.health-metric-card {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.health-metric-card .k {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.health-metric-card .v {
  margin-top: 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  color: var(--text-primary);
  line-height: 1;
}

.health-protocol-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.health-protocol-list li {
  border-left: 2px solid var(--border-gold);
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
}

.health-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.health-source-item {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.health-source-item span {
  color: var(--text-muted);
  font-size: 12px;
}

.health-source-item strong {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

@media (max-width: 900px) {
  .health-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .health-metrics-grid,
  .health-source-grid {
    grid-template-columns: 1fr;
  }

  .health-actions {
    flex-direction: column;
  }
}

html.mobile-host .health-metric-card .k {
  font-size: 11px;
}

html.mobile-host .health-metric-card .v {
  font-size: 28px;
}

html.mobile-host .health-protocol-list li {
  font-size: 14px;
  line-height: 1.45;
}

html.mobile-host .health-source-item {
  align-items: flex-start;
  flex-direction: column;
}

html.mobile-host .health-source-item strong {
  text-align: left;
}
