// health/SleepDetail.jsx // Push-detail from "Sleep" section. Inline title "Sleep", back to Health. // Hierarchy: hero number (Last night 6h 12m) → stages → quality ring → // debt card → trend chart → consistency → schedule rows → insights. function SleepDetail({ dark = false }) { const trendData = [ { day: 'Mon', hours: 6.4 }, { day: 'Tue', hours: 5.8 }, { day: 'Wed', hours: 7.2 }, { day: 'Thu', hours: 6.9 }, { day: 'Fri', hours: 5.4 }, { day: 'Sat', hours: 8.1 }, { day: 'Sun', hours: 6.2 }, ]; const stages = [ { kind: 'awake', pct: 6, label: '22m' }, { kind: 'rem', pct: 22, label: '1h 22m' }, { kind: 'core', pct: 52, label: '3h 13m' }, { kind: 'deep', pct: 20, label: '1h 15m' }, ]; return (
Last night · Sun 10:54 PM → Mon 5:06 AM
6 h 12 m
· 1h 48m below your 8h goal.
{}}/>
{/* Stages */}
Stages
Time in each stage tonight
{/* Quality + Debt side-by-side */}
Quality
Debt · 14 days
4.5 h
High · recover
Aim 9h tonight to begin clearing
{/* Trend chart */}
Duration
Avg 6h 34m · Goal 8h
Avg bedtime
11:42 PM
Avg wake
7:18 AM
Consistency
{/* Bedtime schedule glance */}
Wake schedule
7 days · custom
Smart Bedtime
On · 60 min wind-down
Skip tonight
{/* Insights */}
); } window.SleepDetail = SleepDetail;