/* Client Settings and imported workouts only. */
.google-health-settings,
.google-health-history {
  --health-ink: #171a17;
  --health-muted: #666b62;
  --health-line: #dcded7;
  --health-soft: #f7f8f4;
  --health-lime: #d6ff35;
  min-width: 0;
  color: var(--health-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}
.google-health-settings *, .google-health-history * { box-sizing: border-box; min-width: 0; }
.google-health-settings { margin-top: 20px; padding: 22px; border: 1px solid var(--health-line); border-radius: 20px; background: #fff; }
.google-health-heading, .google-health-activity header { display: flex; align-items: start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.google-health-settings h3, .google-health-history h3 { margin: 4px 0 0; font-size: 1.25rem; line-height: 1.2; }
.google-health-status { padding: 7px 10px; border-radius: 999px; background: var(--health-soft); font-size: .75rem; font-weight: 750; line-height: 1.4; }
.google-health-help { margin: 12px 0 0; color: var(--health-muted); font-size: .85rem; line-height: 1.6; }
.google-health-settings .google-health-auto { display: flex; align-items: start; gap: 12px; min-height: 48px; margin: 18px 0 12px; padding: 14px; border: 1px solid var(--health-line); border-radius: 12px; background: var(--health-soft); cursor: pointer; }
.google-health-auto span { display: grid; gap: 4px; font-size: .85rem; line-height: 1.45; }
.google-health-auto small { color: var(--health-muted); font-size: .78rem; font-weight: 400; }
.google-health-settings .google-health-auto input { flex: 0 0 22px; width: 22px; height: 22px; min-height: 22px; margin: 0; accent-color: #678000; }
.google-health-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.google-health-settings button { flex: 1 1 140px; min-height: 48px; margin: 0; padding: 12px 16px; border: 1px solid var(--health-ink); border-radius: 12px; background: #fff; color: var(--health-ink); font: inherit; font-size: .85rem; font-weight: 750; line-height: 1.3; white-space: normal; cursor: pointer; touch-action: manipulation; }
.google-health-settings button[data-google-health-connect], .google-health-settings button[data-google-health-sync] { background: var(--health-lime); }
.google-health-settings button[data-google-health-refresh] { flex: 0 1 auto; min-height: 44px; padding: 8px 0; border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; }
.google-health-settings button:disabled, .google-health-settings input:disabled { opacity: .5; cursor: default; }
.google-health-settings :is(button, input, a):focus-visible { outline: 3px solid #718a18; outline-offset: 3px; }
.google-health-settings [hidden] { display: none !important; }
.google-health-message { margin: 12px 0 0; font-size: .85rem; font-weight: 600; line-height: 1.5; }
.google-health-message:empty, .google-health-last-sync:empty { display: none; }
.google-health-revoke { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--health-ink); font-size: .85rem; font-weight: 700; line-height: 1.5; text-underline-offset: 3px; }
.google-health-privacy { color: var(--health-muted); font-size: .78rem; line-height: 1.6; }
.google-health-privacy a { color: var(--health-ink); text-underline-offset: 3px; }
.google-health-history { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--health-line); }
.google-health-activities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.google-health-activities > .google-health-help { grid-column: 1 / -1; }
.google-health-activity { padding: 16px; border: 1px solid var(--health-line); border-radius: 16px; background: #fff; }
.google-health-source { margin: 0; color: var(--health-muted); font-size: .68rem; font-weight: 700; letter-spacing: .03em; }
.google-health-activity h4 { margin: 5px 0 0; font-size: 1rem; line-height: 1.35; text-transform: capitalize; }
.google-health-activity time { color: var(--health-muted); font-size: .75rem; line-height: 1.5; }
.google-health-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; margin: 18px 0 0; }
.google-health-metrics dt { margin: 0 0 4px; color: var(--health-muted); font-size: .7rem; line-height: 1.4; }
.google-health-metrics dd { margin: 0; font-size: 1rem; font-weight: 750; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .google-health-settings { padding: 16px; }
  .google-health-activities { grid-template-columns: minmax(0, 1fr); }
}
