.health-sleep{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--h-bg:var(--bg);--h-fg:var(--fg);--h-muted:var(--muted);--h-accent:var(--accent);--h-border:var(--border);--h-soft:#f5f6f8;--h-layer:#fff;--h-light:#b5caf3;--h-deep:#2563eb;--h-rem:#8b65b7;--h-hover:#7aa2f7;--h-awake:#c8cbd2;--h-depth:#1a284529;--h-light-hover:var(--h-light);--h-deep-hover:var(--h-hover);--h-rem-hover:#b698d9;--h-tint:color-mix(in srgb, var(--h-accent) 6%, transparent);max-width:1150px;color:var(--h-fg);margin:0 auto;padding:40px 48px 28px;font-size:14px;line-height:1.5}[data-theme=dark] .health-sleep{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--h-soft:#191d25;--h-layer:#20242d;--h-light:#526e9d;--h-deep:#7aa2f7;--h-rem:#b698d9;--h-hover:#2563eb;--h-awake:#555e6e;--h-depth:#00000080;--h-rem-hover:#8b65b7}.health-sleep *{box-sizing:border-box}.health-sleep button,.health-sleep select{font:inherit;color:inherit;cursor:pointer}.health-sleep button:disabled{opacity:.3;cursor:default}.health-sleep button:focus-visible,.health-sleep select:focus-visible,.health-sleep summary:focus-visible,.health-sleep svg:focus-visible{outline:2px solid var(--h-accent);outline-offset:3px}.health-sleep h1,.health-sleep h2,.health-sleep p{margin:0}.health-sleep .page-head{justify-content:space-between;align-items:start;margin-bottom:36px;display:flex}.health-sleep .eyebrow{letter-spacing:1.5px;text-transform:uppercase;color:var(--h-muted);font-size:11px;font-weight:500}.health-sleep h1{letter-spacing:-1.6px;margin:8px 0 10px;font-size:38px;font-weight:500;line-height:1.2}.health-sleep .sleep-module{border-top:1px solid var(--h-border);padding-top:22px;position:relative}.health-sleep .sample-badge{border:1px solid var(--h-border);color:var(--h-muted);border-radius:5px;padding:5px 9px;font-size:11px;position:absolute;top:-108px;right:0}.health-sleep .summary{justify-content:space-between;align-items:center;gap:24px;min-height:101px;margin:20px 0 24px;display:flex}.health-sleep .summary-label{color:var(--h-muted);margin-bottom:5px;font-size:12px}.health-sleep .summary-value{letter-spacing:-1.3px;font-variant-numeric:tabular-nums;font-size:34px;font-weight:500;line-height:1.25}.health-sleep .summary-value small{letter-spacing:0;color:var(--h-muted);margin-left:7px;font-size:16px;font-weight:400}.health-sleep .metric-source{color:var(--h-muted);align-items:center;gap:5px;margin-top:8px;font-size:10px;display:flex}.health-sleep .metric-source svg{width:14px;height:14px}.health-sleep .header-right{flex-direction:column;align-items:flex-end;gap:10px;min-width:0;display:flex}.health-sleep .header-actions{align-items:center;gap:3px;display:flex}.health-sleep .icon-button{background:0 0;border:0;border-radius:5px;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;padding:0;display:inline-flex}.health-sleep .icon-button svg{width:15px;height:15px}.health-sleep .header-actions select{background:var(--h-bg);color:var(--h-muted);border:0;height:30px;padding:4px;font-size:11px}.health-sleep .header-actions button{color:var(--h-muted)}.health-sleep .icon-button:hover{background:var(--h-soft)}.health-sleep .range-label{text-align:right;color:var(--h-muted);font-variant-numeric:tabular-nums;font-size:11px}.health-sleep .data-notice{z-index:6;margin-top:-5px;font-size:11px;position:relative}.health-sleep .data-notice summary{cursor:pointer;min-height:24px;color:var(--h-muted);list-style:none}.health-sleep .data-notice summary::-webkit-details-marker{display:none}.health-sleep .notice-body{border:1px solid var(--h-border);background:var(--h-layer);width:260px;max-width:calc(100vw - 48px);box-shadow:0 8px 24px var(--h-depth);border-radius:8px;padding:14px;font-size:12px;position:absolute;top:30px;right:0}.health-sleep .notice-body p+p{margin-top:9px}.health-sleep .notice-body button,.health-sleep .data-overlay button{border:1px solid var(--h-border);background:var(--h-layer);border-radius:6px;margin:12px auto 0;padding:8px 12px;display:block}.health-sleep .focus-workspace{grid-template-columns:minmax(0,1fr) 0;align-items:start;gap:0;transition:grid-template-columns .7s cubic-bezier(.65,0,.35,1),gap .7s cubic-bezier(.65,0,.35,1);display:grid}.health-sleep .focus-workspace[data-open=true]{grid-template-columns:minmax(0,1fr) 310px;gap:24px}.health-sleep .chart-column{min-width:0}.health-sleep .focus-caption{justify-content:flex-end;height:28px;display:flex}.health-sleep .text-button{background:0 0;border:0;padding:4px 0;font-size:11px}.health-sleep .plot-wrap{height:330px;margin-top:7px;position:relative}.health-sleep .chart-canvas,.health-sleep .main-chart{width:100%;min-width:0;height:100%;display:block}.health-sleep .main-chart{touch-action:pan-y;border-radius:4px;overflow:visible}.health-sleep .main-chart text{fill:var(--h-muted);font:11px ui-sans-serif,system-ui,sans-serif}.health-sleep .main-chart .grid{stroke:var(--h-border);stroke-width:1px}.health-sleep .main-chart .trend-line{fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.health-sleep .chart-hit{cursor:crosshair}.health-sleep .sleep-window,.health-sleep .stage-segment{transition:x .18s,width .18s,fill .18s,fill-opacity .18s}.health-sleep .main-chart .bar-label{fill:var(--h-fg);pointer-events:none;font-size:11px}.health-sleep .endpoint-label{stroke:var(--h-bg);stroke-width:4px;paint-order:stroke;stroke-linejoin:round;pointer-events:none;fill:var(--h-fg)!important}.health-sleep .inline-labels{pointer-events:none}.health-sleep .chart-legend{z-index:1;color:var(--h-muted);pointer-events:none;flex-wrap:wrap;justify-content:flex-end;gap:5px 13px;max-width:calc(100% - 68px);font-size:11px;display:flex;position:absolute;top:23px;right:20px}.health-sleep .chart-legend span{align-items:center;gap:6px;display:inline-flex}.health-sleep .chart-legend i{border-radius:2px;width:13px;height:3px}.health-sleep .chart-legend svg{width:13px;height:13px}.health-sleep .chart-readout{z-index:1;pointer-events:none;background:color-mix(in srgb, var(--h-bg) 90%, transparent);border:1px solid var(--h-border);border-radius:6px;max-width:150px;padding:8px 10px;font-size:11px;position:absolute;top:62px}.health-sleep .chart-readout span,.health-sleep .chart-readout strong{display:block}.health-sleep .chart-readout strong{font-weight:500}.health-sleep .chart-readout.embedded-readout{background:0 0;border:0;padding:0;top:0}.health-sleep .chart-readout.embedded-readout span{display:none}.health-sleep .chart-note{color:var(--h-muted);margin-top:6px;font-size:11px}.health-sleep .plot-controls{z-index:4;border:1px solid color-mix(in srgb, var(--h-border) 65%, transparent);background:color-mix(in srgb, var(--h-layer) 70%, transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:12px;flex-direction:column;gap:2px;padding:3px;display:flex;position:absolute;bottom:39px;right:20px}.health-sleep .metric-row{position:relative}.health-sleep .plot-controls button{width:40px;height:40px;color:var(--h-muted);background:0 0;border:0;border-radius:7px;flex-direction:column;justify-content:center;align-items:center;gap:1px;padding:0;transition:background .18s,color .18s;display:flex}.health-sleep .plot-controls button svg{flex:none;width:18px;height:18px}.health-sleep .plot-controls button span{font-size:9px;font-weight:400;line-height:11px}.health-sleep .plot-controls button:hover{color:var(--h-fg);background:color-mix(in srgb, var(--h-fg) 8%, transparent)}.health-sleep .plot-controls button[aria-pressed=true]{color:var(--h-fg);background:color-mix(in srgb, var(--h-fg) 12%, transparent);box-shadow:inset 0 0 0 1px var(--h-border)}.health-sleep .metric-flyout{border:1px solid color-mix(in srgb, var(--h-border) 65%, transparent);background:color-mix(in srgb, var(--h-layer) 90%, transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);opacity:0;visibility:hidden;pointer-events:none;transform-origin:100%;border-right:0;border-radius:12px 0 0 12px;gap:2px;padding:3px;transition:opacity .18s,transform .18s,visibility 0s .18s;display:flex;position:absolute;top:-3px;right:calc(100% + 3px);transform:translate(14px)scale(.96)}.health-sleep .metric-flyout:after{content:"";width:5px;height:100%;position:absolute;top:0;left:100%}.health-sleep .metric-flyout[data-open=true]{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s;transform:none}.health-sleep .detail-clip{z-index:5;min-width:0;filter:drop-shadow(-10px 10px 18px var(--h-depth));visibility:hidden;transition:visibility 0s .7s;position:relative;overflow:clip}.health-sleep .day-panel{border:1px solid var(--h-border);background:var(--h-layer);width:310px;min-height:438px;box-shadow:inset 0 1px 0 color-mix(in srgb, var(--h-fg) 6%, transparent);opacity:0;border-radius:10px;padding:18px 20px 20px;transition:opacity .5s,transform .7s;transform:translate(28px)}.health-sleep .focus-workspace[data-open=true] .detail-clip{visibility:visible;transition-delay:0s}.health-sleep .focus-workspace[data-open=true] .day-panel{opacity:1;transform:none}.health-sleep .panel-toolbar{justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px;display:flex}.health-sleep .day-navigation{gap:4px;display:flex}.health-sleep .day-heading h2{letter-spacing:-.5px;font-size:20px;font-weight:500;line-height:1.3}.health-sleep .day-heading p{color:var(--h-muted);margin-top:4px;font-size:10px}.health-sleep .selected-score{align-items:baseline;gap:10px;margin:17px 0 20px;display:flex}.health-sleep .selected-score strong{letter-spacing:-1px;font-variant-numeric:tabular-nums;font-size:38px;font-weight:500;line-height:1}.health-sleep .selected-score span{color:var(--h-muted);font-size:11px}.health-sleep .night-breakdown{margin-top:8px}.health-sleep .sleep-graphic{margin:0 18px;position:relative}.health-sleep .sleep-boundary{z-index:2;background:0 0;border:0;justify-content:center;align-items:center;width:16px;padding:0;display:flex;position:absolute;top:0;bottom:0}.health-sleep .sleep-boundary.start{left:-20px}.health-sleep .sleep-boundary.end{right:-20px}.health-sleep .sleep-boundary:before{content:"";border-left:1px dotted var(--h-muted);opacity:.65;pointer-events:none;position:absolute;top:0;bottom:0;left:50%}.health-sleep .boundary-label{background:var(--h-layer);white-space:nowrap;font-variant-numeric:tabular-nums;align-items:center;gap:6px;padding:5px 7px;font-size:11px;line-height:16px;display:flex;position:relative;transform:rotate(-90deg)}.health-sleep .boundary-label svg{width:14px;height:14px;color:var(--h-accent);flex:0 0 14px}.health-sleep .sleep-boundary.end svg{color:var(--h-rem)}.health-sleep .sleep-total-row{background:var(--h-soft);border-radius:5px 5px 0 0;height:65px;display:flex;overflow:hidden}.health-sleep .sleep-total{background:color-mix(in srgb, var(--h-accent) 17%, var(--h-layer));text-align:left;border:0;min-width:0;padding:10px 12px}.health-sleep .sleep-total span{color:var(--h-muted);font-size:11px;display:block}.health-sleep .sleep-total strong{letter-spacing:-.5px;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:22px;font-weight:500;display:block}.health-sleep .awake-cap{background:repeating-linear-gradient(135deg, transparent, transparent 3px, color-mix(in srgb, var(--h-awake) 35%, transparent) 3px, color-mix(in srgb, var(--h-awake) 35%, transparent) 4px)}.health-sleep .sleep-parts{border-radius:0 0 5px 5px;height:126px;margin-top:2px;display:flex;overflow:hidden}.health-sleep .sleep-part{background:color-mix(in srgb, var(--part) 65%, var(--h-layer));border:0;min-width:0;padding:0;transition:background-color .18s;position:relative;overflow:hidden}.health-sleep .sleep-part+.sleep-part{box-shadow:inset 2px 0 0 var(--h-layer)}.health-sleep .sleep-part:hover,.health-sleep .sleep-part:focus-visible{background:var(--part)}.health-sleep .part-label{white-space:nowrap;align-items:center;gap:6px;font-size:11px;line-height:1;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(-90deg)}.health-sleep .part-label strong{font-variant-numeric:tabular-nums;font-weight:500}.health-sleep .in-bed-total{min-height:30px;color:var(--h-muted);background:0 0;border:0;margin:11px auto 0;padding:0;font-size:11px;display:block}.health-sleep .breakdown-note{color:var(--h-muted);margin-top:10px;font-size:11px}.health-sleep .empty-night{padding:25px 0;font-size:13px}.health-sleep .detail-notice{color:var(--h-muted);margin-bottom:12px;font-size:12px}.health-sleep .available-measurements{margin:0;font-size:12px}.health-sleep .available-measurements div{border-bottom:1px solid var(--h-border);justify-content:space-between;gap:12px;padding:6px 0;display:flex}.health-sleep .available-measurements button{text-underline-offset:3px;background:0 0;border:0;padding:0;text-decoration:underline}.health-sleep .available-measurements dd{color:var(--h-muted);font-variant-numeric:tabular-nums;margin:0}.health-sleep .sheet-size{display:none}.health-sleep .chart-silhouette{filter:blur(2px);opacity:.65;pointer-events:none;width:100%;height:100%}.health-sleep .data-overlay{text-align:center;z-index:2;pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute;inset:35px 55px 20px 0}.health-sleep .data-overlay>div{background:color-mix(in srgb, var(--h-bg) 88%, transparent);pointer-events:auto;border-radius:8px;max-width:340px;padding:18px}.health-sleep .data-overlay h2{margin:0 0 8px;font-size:17px;font-weight:500}.health-sleep .data-overlay p,.health-sleep .data-overlay small{color:var(--h-muted);font-size:11px}.health-sleep .data-overlay small{margin-top:10px;display:block}.health-sleep .page-foot{border-top:1px solid var(--h-border);color:var(--h-muted);margin-top:34px;padding-top:18px;font-size:11px}.health-sleep .screen-reader{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.health-sleep .refreshing svg{animation:1s linear infinite sleep-refresh}@keyframes sleep-refresh{to{transform:rotate(360deg)}}@media (max-width:760px){.health-sleep{padding:30px 24px 24px}.health-sleep h1{font-size:31px}.health-sleep .summary{flex-wrap:wrap;gap:16px}.health-sleep .header-right{flex:1;min-width:180px}.health-sleep .focus-workspace{grid-template-columns:minmax(0,1fr)!important;gap:0!important}.health-sleep .detail-clip{height:0}.health-sleep .focus-workspace[data-open=true]{z-index:20;background:var(--h-bg);grid-template-rows:minmax(330px,1.38fr) minmax(130px,1fr);padding-top:4px;position:fixed;inset:72px 16px 0}.health-sleep .focus-workspace[data-open=true][data-compact=true]{grid-template-rows:minmax(330px,2.86fr) minmax(130px,1fr)}.health-sleep .focus-workspace[data-open=true] .chart-column{flex-direction:column;height:100%;min-height:0;display:flex}.health-sleep .focus-workspace[data-open=true] .plot-wrap{flex:1;min-height:230px}.health-sleep .focus-workspace[data-open=true] .chart-note{padding-bottom:10px}.health-sleep .focus-workspace[data-open=true] .detail-clip{overscroll-behavior:contain;height:100%;filter:drop-shadow(0 -5px 12px var(--h-depth));border-radius:12px 12px 0 0;overflow-y:auto}.health-sleep .day-panel{border-radius:12px 12px 0 0;width:100%;min-height:100%;padding:12px 20px 20px;transform:translateY(30px)}.health-sleep .sheet-size{background:0 0;border:0;justify-content:center;align-items:center;width:100%;height:22px;display:flex}.health-sleep .sheet-size span{background:var(--h-muted);opacity:.4;border-radius:3px;width:32px;height:4px}.health-sleep .panel-toolbar{margin-bottom:10px}.health-sleep .day-heading h2{font-size:18px}.health-sleep .selected-score{margin:12px 0 16px}.health-sleep .selected-score strong{font-size:30px}.health-sleep .plot-controls{right:12px}.health-sleep .chart-legend{gap:10px;font-size:10px;right:12px}.health-sleep .focus-workspace[data-open=true] .chart-readout{max-width:130px}}@media (max-width:370px){.health-sleep{padding-inline:16px}.health-sleep .summary-value{font-size:31px}.health-sleep .focus-workspace[data-open=true]{left:8px;right:8px}.health-sleep .day-panel{padding-inline:16px}.health-sleep .metric-flyout button{width:37px}}@media (pointer:coarse){.health-sleep .icon-button,.health-sleep .header-actions select{min-width:44px;min-height:44px}.health-sleep .plot-controls button{width:44px;height:44px}.health-sleep .in-bed-total{min-height:44px}.health-sleep .available-measurements button,.health-sleep .text-button{min-height:36px}.health-sleep .focus-workspace[data-open=true] .plot-wrap{min-height:260px}}@media (prefers-reduced-motion:reduce){.health-sleep *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.health-sleep .chart-readout.missing-readout{background:var(--h-bg);border:1px solid var(--h-border);padding:6px 8px;top:58px}.health-sleep .chart-readout.missing-readout span{display:block}@media (max-width:760px) and (max-height:599px){.health-sleep .focus-workspace[data-open=true]{display:block;position:static}.health-sleep .focus-workspace[data-open=true] .detail-clip{height:auto;margin-top:18px}.health-sleep .focus-workspace[data-open=true] .plot-wrap{flex:none;height:330px}}
