.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#app-root {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

.view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

/* Keeps the Breathing & Oxygen Patterns section reading as a deliberate, separate part
   of the page (its hedged/"worth discussing with a doctor" framing matters) rather than
   blending into the everyday stats above it, even though both now scroll as one page. */
.view-divider {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.app-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}
