:root{--bg:#0b0d10;--surface:#15181d;--raised:#1d2128;--border:#262b33;--text:#f4f5f7;--text-2:#8a919c;--text-3:#5c636e;--accent:#c8f560;--on-accent:#0b0d10;--heart:#ff4d6d;--rr:#9b8cff;--motion:#4da3ff;--temp:#f5c451;--live:#3ddc97;--danger:#ff5a5f;--green:#3ddc97;--yellow:#f5c451;--red:#ff5a5f;--st-awake:#f5c451;--st-rem:#4da3ff;--st-light:#6f7bd9;--st-deep:#9b8cff;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}@media (prefers-color-scheme:light){:root{--bg:#f6f7f9;--surface:#fff;--raised:#f0f2f5;--border:#e3e6eb;--text:#0e1116;--text-2:#5b6370;--text-3:#9aa1ac;--accent:#2f6b00;--on-accent:#fff;--heart:#e5194a;--rr:#6a57e8;--motion:#1f6fd1;--temp:#b07800;--live:#13a86b;--danger:#d93a3f;--green:#13a86b;--yellow:#b07800;--red:#d93a3f;--st-awake:#d99a00;--st-rem:#1f8fe0;--st-light:#7e8ad6;--st-deep:#4b2fd1;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font:15px/1.45 -apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,Roboto,sans-serif}button,input,select{font:inherit;color:inherit}.page{gap:16px;max-width:1280px;margin:0 auto;padding:24px 16px 64px;display:grid}.card{background:var(--surface);border-radius:20px;gap:14px;min-width:0;padding:20px;display:grid}.row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.spread{justify-content:space-between}.label{letter-spacing:.05em;text-transform:uppercase;color:var(--text-2);font-size:12px;font-weight:600}.title{letter-spacing:-.02em;margin:0;font-size:28px;font-weight:800}.h2{margin:0;font-size:17px;font-weight:700}.muted{color:var(--text-2)}.metric{letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:30px;font-weight:800}.error{color:var(--danger)}.btn{background:var(--raised);cursor:pointer;border:0;border-radius:999px;padding:9px 16px;font-weight:600}.btn:hover{filter:brightness(1.15)}.btn.primary{background:var(--accent);color:var(--on-accent)}.btn:disabled{opacity:.4;cursor:default}.input{background:var(--raised);border:1px solid #0000;border-radius:12px;width:100%;padding:11px 14px}.input:focus{border-color:var(--accent);outline:none}.stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;display:grid}.legend{color:var(--text-2);flex-wrap:wrap;gap:14px;font-size:13px;display:flex}.dot{vertical-align:1px;border-radius:50%;width:9px;height:9px;margin-right:6px;display:inline-block}.cov{grid-template-columns:76px repeat(24,minmax(10px,1fr));gap:3px;font-size:12px;display:grid}.cov .day{color:var(--text-2);white-space:nowrap;cursor:pointer;padding-right:6px}.cov .day.sel{color:var(--text);font-weight:700}.cov .cell{background:var(--raised);cursor:pointer;border-radius:4px;height:18px}.cov .cell:hover{outline:1px solid var(--text-2)}.cov .hourlabel{color:var(--text-3);text-align:center;font-size:10px}.chart-title{justify-content:space-between;align-items:baseline;display:flex}.uplot{font-family:inherit}.uplot .u-legend{display:none}.u-select{background:color-mix(in srgb, var(--accent) 18%, transparent)}.events{flex-wrap:wrap;gap:6px;max-height:120px;display:flex;overflow:auto}.chip{background:var(--raised);color:var(--text-2);border-radius:999px;padding:3px 10px;font-size:12px}.login{max-width:380px;margin:12vh auto 0}.brand{letter-spacing:-.04em;color:var(--accent);margin:0;font-size:48px;font-weight:800}.small{font-size:13px}.summary{grid-template-columns:minmax(240px,320px) 1fr;align-items:start;gap:24px;display:grid}.summary .events{grid-column:1/-1}@media (width<=760px){.summary{grid-template-columns:1fr}}.recovery{background:var(--raised);border-radius:16px;gap:6px;padding:16px;display:grid}.recovery .big{letter-spacing:-.03em;font-variant-numeric:tabular-nums;font-size:56px;font-weight:800;line-height:1}.zone-green .big{color:var(--green)}.zone-yellow .big{color:var(--yellow)}.zone-red .big{color:var(--red)}.advice{gap:4px;margin-top:6px;display:grid}.advice-title{font-weight:700}.trends{grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:12px;display:grid}@media (width<=480px){.trends{grid-template-columns:1fr}}.trends .card{background:var(--raised);padding:16px}.hypno{gap:8px;display:grid}.hypno svg{width:100%;height:120px;display:block}.hypno .axis{color:var(--text-3);justify-content:space-between;font-size:12px;display:flex}.hypno .legend b{font-variant-numeric:tabular-nums;color:var(--text);font-weight:600}.uplot,.uplot *,.uplot :before,.uplot :after{box-sizing:border-box}.uplot{width:min-content;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.u-title{text-align:center;font-size:18px;font-weight:700}.u-wrap{-webkit-user-select:none;user-select:none;position:relative}.u-over,.u-under{position:absolute}.u-under{overflow:hidden}.uplot canvas{width:100%;height:100%;display:block;position:relative}.u-axis{position:absolute}.u-legend{text-align:center;margin:auto;font-size:14px}.u-inline{display:block}.u-inline *{display:inline-block}.u-inline tr{margin-right:16px}.u-legend th{font-weight:600}.u-legend th>*{vertical-align:middle;display:inline-block}.u-legend .u-marker{width:1em;height:1em;margin-right:4px;background-clip:padding-box!important}.u-inline.u-live th:after{content:":";vertical-align:middle}.u-inline:not(.u-live) .u-value{display:none}.u-series>*{padding:4px}.u-series th{cursor:pointer}.u-legend .u-off>*{opacity:.3}.u-select{pointer-events:none;background:#00000012;position:absolute}.u-cursor-x,.u-cursor-y{pointer-events:none;will-change:transform;position:absolute;top:0;left:0}.u-hz .u-cursor-x,.u-vt .u-cursor-y{border-right:1px dashed #607d8b;height:100%}.u-hz .u-cursor-y,.u-vt .u-cursor-x{border-bottom:1px dashed #607d8b;width:100%}.u-cursor-pt{pointer-events:none;will-change:transform;border:0 solid;border-radius:50%;position:absolute;top:0;left:0;background-clip:padding-box!important}.u-axis.u-off,.u-select.u-off,.u-cursor-x.u-off,.u-cursor-y.u-off,.u-cursor-pt.u-off{display:none}:is(body:has(.tg-page),body:has(.tg-center)){background:var(--tg-theme-secondary-bg-color,var(--bg));color:var(--tg-theme-text-color,var(--text))}:root{--track:color-mix(in srgb, var(--text-3) 25%, transparent)}.tg-page{padding:12px 12px calc(84px + env(safe-area-inset-bottom));gap:12px;max-width:560px;margin:0 auto;display:grid}.tg-center{text-align:center;place-items:center;min-height:60vh;padding:24px;display:grid}.tg-card{background:var(--tg-theme-section-bg-color,var(--surface));border-radius:18px;gap:10px;min-width:0;padding:16px;display:grid}.tg-card.hero{text-align:center;justify-items:center}.tg-note{padding:0 4px}.tg-page .muted{color:var(--tg-theme-hint-color,var(--text-2))}.tg-link{padding-top:12vh}.tg-link .input{background:var(--tg-theme-section-bg-color,var(--raised))}.tg-page .btn.primary{background:var(--tg-theme-button-color,var(--accent));color:var(--tg-theme-button-text-color,var(--on-accent));border-radius:14px;padding:13px 16px}.tg-members{gap:8px;display:flex;overflow-x:auto}.chip-btn{cursor:pointer;background:var(--tg-theme-section-bg-color,var(--surface));color:inherit;border:0;border-radius:999px;padding:7px 14px;font-weight:600}.chip-btn.on{background:var(--tg-theme-button-color,var(--accent));color:var(--tg-theme-button-text-color,var(--on-accent))}.tg-date{justify-content:space-between;align-items:center;font-size:17px;font-weight:700;display:flex}.tg-date span:first-letter{text-transform:uppercase}.icon-btn{background:var(--tg-theme-section-bg-color,var(--surface));color:inherit;cursor:pointer;border:0;border-radius:50%;width:40px;height:40px;font-size:24px;line-height:1}.icon-btn:disabled{opacity:.3}.ring{position:relative}.ring svg{width:100%;height:100%}.ring-text{text-align:center;place-content:center;display:grid;position:absolute;inset:0}.ring-value{letter-spacing:-.03em;font-variant-numeric:tabular-nums;font-size:44px;font-weight:800}.ring-sub{color:var(--tg-theme-hint-color,var(--text-2));font-size:13px}.tg-page .advice{text-align:left;border-left:3px solid;gap:4px;width:100%;padding:2px 0 2px 12px;display:grid}.tiles{grid-template-columns:1fr 1fr;gap:12px;display:grid}.tile{background:var(--tg-theme-section-bg-color,var(--surface));border-radius:18px;gap:2px;min-width:0;padding:14px;display:grid}.tile-value{letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:24px;font-weight:800}.big-number{letter-spacing:-.03em;font-size:38px;font-weight:800}.bar{background:var(--track);border-radius:99px;height:8px;overflow:hidden}.bar>div{background:var(--st-deep);border-radius:99px;height:100%}.row-item{flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:14px;display:flex}.trend-head{justify-content:space-between;align-items:baseline;display:flex}.stress-bars{align-items:flex-end;gap:3px;height:80px;display:flex}.stress-col{flex-direction:column;flex:1;justify-content:flex-end;height:100%;display:flex;position:relative}.stress-col>div{border-radius:3px;min-height:2px}.stress-col span{color:var(--tg-theme-hint-color,var(--text-3));font-size:10px;position:absolute;bottom:-16px}.tg-card:has(.stress-bars){padding-bottom:22px}.tg-tabs{padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:var(--tg-theme-bottom-bar-bg-color,var(--tg-theme-section-bg-color,var(--surface)));border-top:1px solid var(--tg-theme-section-separator-color,var(--border));grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.tg-tabs button{color:var(--tg-theme-hint-color,var(--text-2));cursor:pointer;background:0 0;border:0;justify-items:center;gap:2px;padding:4px;font-size:11px;font-weight:600;display:grid}.tg-tabs button.on{color:var(--tg-theme-button-color,var(--accent))}.tab-icon{font-size:20px;line-height:1.1}
