.health-hub{--health-accent:var(--family-dark);--health-wash:var(--family-tint);margin:18px 0 24px;min-width:0}.health-hub[data-health-category=body]{--health-accent:var(--body-accent);--health-wash:color-mix(in srgb,var(--body-accent) 10%,var(--surface))}.health-hub[data-health-category=heart]{--health-accent:var(--heart-accent);--health-wash:color-mix(in srgb,var(--heart-accent) 10%,var(--surface))}.health-hub[data-health-category=sleep]{--health-accent:var(--sleep-accent);--health-wash:color-mix(in srgb,var(--sleep-accent) 10%,var(--surface))}.health-hub[data-health-category=feeling]{--health-accent:var(--feeling-accent);--health-wash:color-mix(in srgb,var(--feeling-accent) 10%,var(--surface))}.health-heading,.health-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.health-heading h3{font-size:1.7rem;letter-spacing:-.04em;margin:5px 0}.health-heading p{margin:5px 0 18px;color:var(--muted)}.health-heading button{white-space:normal}.health-eyebrow{font-size:.68rem;font-weight:750;letter-spacing:.14em;color:var(--health-accent)}.health-connections{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:15px;background:var(--surface);margin-bottom:20px}.health-connections>div{position:relative;padding:13px 14px 13px 31px;min-width:0}.health-connections>div+div{border-left:1px solid var(--line)}.health-connections strong{font-size:.85rem}.health-connections small{display:block;color:var(--muted);font-size:.73rem;line-height:1.5;margin-top:3px;overflow-wrap:anywhere}.health-source-dot{position:absolute;left:14px;top:19px;width:7px;height:7px;border-radius:50%;background:var(--family)}.health-source-dot.apple{background:var(--me)}.health-tabs{display:flex;gap:6px;overflow:auto;padding:4px 1px 9px}.health-tabs button{min-height:42px;border:1px solid transparent;border-radius:999px;white-space:nowrap;background:transparent;font-size:.85rem;padding:8px 17px;color:var(--muted)}.health-tabs button[aria-pressed=true]{background:var(--health-accent);color:var(--button-ink)}.health-group-intro{font-size:.88rem;color:var(--muted);margin:8px 0 15px}.health-metric-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px}.health-metric-tile{display:flex;flex-direction:column;text-align:left;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:17px;box-shadow:0 3px 13px #17392c05;color:var(--ink);transition:border-color .15s}.health-metric-tile[aria-pressed=true]{border-color:var(--health-accent);box-shadow:inset 0 0 0 1px var(--health-accent);background:var(--health-wash)}.health-metric-tile:disabled{opacity:1;color:var(--muted);background:var(--surface);cursor:default}.health-metric-tile-label{font-size:.82rem;font-weight:600;color:var(--health-accent)}.health-metric-tile>strong{font-size:1.55rem;font-weight:750;letter-spacing:-.03em;line-height:1.25;margin:10px 0}.health-metric-tile>small{font-size:.68rem;line-height:1.5;font-weight:400;overflow-wrap:anywhere}.health-metric-tile .health-old{color:var(--warn)}.health-chart{display:block;width:100%;height:auto;color:var(--health-accent);overflow:visible;margin:12px 0}.health-spark{height:40px;margin:12px 0 0}.health-axis{fill:var(--muted);font:11px system-ui}.health-axis line{stroke:var(--line)}.health-detail{border:1px solid var(--line);border-radius:18px;padding:22px;margin-top:18px;background:var(--surface);min-width:0}.health-detail h4{font-size:1.1rem;margin:0 0 8px}.health-detail-heading p{font-size:.82rem;color:var(--muted);margin:0}.health-detail-heading p strong{font-size:1.2rem;color:var(--ink)}.health-detail label{font-size:.75rem;color:var(--muted);display:grid;gap:5px;min-width:0}.health-detail select{font:inherit;font-size:.85rem;width:100%;min-width:0;max-width:100%;min-height:44px;border-radius:10px}.health-source-select{margin-top:16px}.health-chart-summary{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:.78rem}.health-chart-note{font-size:.76rem;color:var(--muted);line-height:1.6;margin:14px 0}.health-values{border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 0 0;margin:0}.health-values summary{font-size:.83rem}.health-values table{font-size:.78rem}.health-empty-state,.health-body-note{padding:17px 20px;background:var(--health-wash);border-radius:14px;margin-top:16px}.health-empty-state h4{margin:0}.health-empty-state p,.health-body-note p{font-size:.83rem;line-height:1.6;margin:8px 0 0}.health-body-note summary{font-size:.85rem;font-weight:650}.health-empty{font-size:.8rem;font-weight:400;padding:14px 0;color:var(--muted)}.health-manage{margin:18px 0}.health-manage>summary{font-size:.85rem}
@media(min-width:1100px){.health-metric-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.health-hub[data-health-category=body] .health-metric-tiles,.health-hub[data-health-category=heart] .health-metric-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.health-heading{align-items:flex-start;flex-direction:column;gap:0}.health-heading h3{font-size:1.45rem}.health-heading button{margin-bottom:14px;min-height:42px}.health-connections{grid-template-columns:1fr}.health-connections>div+div{border-left:0;border-top:1px solid var(--line)}.health-metric-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.health-metric-tile{padding:12px;border-radius:13px}.health-metric-tile>strong{font-size:1.2rem}.health-metric-tile-label{font-size:.76rem}.health-detail{padding:14px}.health-detail-heading{align-items:flex-start;flex-wrap:wrap}.health-detail-heading>label{width:100%}.health-chart{min-height:135px}.health-spark{min-height:0;height:32px}.health-chart-summary{font-size:.72rem}.health-body-note{padding:14px}.health-tabs button{padding:8px 13px}.health-heading p{font-size:.86rem}}

.health-metric-tile[aria-pressed=true]{color:var(--ink)}.health-metric-tile>strong{color:var(--ink)}.health-chart-wrap{margin:20px 0}.health-chart-wrap>.health-chart{height:210px;min-height:0;margin:8px 0}.health-scale,.health-chart-dates{font-size:.76rem;color:var(--muted)}.health-scale{margin:0}.health-chart-dates{display:flex;justify-content:space-between;padding:0 1.4%}.health-chart-wrap .health-axis line{vector-effect:non-scaling-stroke}
@media(max-width:600px){.health-chart-wrap>.health-chart{height:160px}}

.health-detail{scroll-margin-top:100px}
