@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{color-scheme:dark;--bg:#10111d;--panel:#191b2b;--line:#2b2d40;--text:#f0eff8;--muted:#a2a3b7;--lavender:#c5b6ff;--font:'DM Sans',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.5}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:focus-visible,a:focus-visible{outline:2px solid var(--lavender);outline-offset:5px}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}button{border:0}button:disabled{opacity:.3;cursor:default}.shell{max-width:1660px;margin:auto;min-height:100vh;display:grid;grid-template-columns:230px minmax(0,1fr)}.sidebar{border-right:1px solid #252636;padding:40px 23px 25px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{font-family:'Manrope',sans-serif;font-size:28px;font-weight:750;letter-spacing:-1.4px;text-decoration:none;color:var(--text);display:flex;align-items:center;gap:10px}.brand-mark{width:35px;height:38px;color:var(--lavender);display:grid;place-items:center}.brand-mark svg{width:32px;height:32px;fill:var(--lavender);stroke:none}.brand-dot{color:var(--lavender);margin-left:-10px}.nav-caption{font-size:11px;letter-spacing:1.8px;color:#76778e;margin:58px 15px 18px}.nav-item{display:flex;align-items:center;gap:13px;width:100%;padding:14px 16px;border-radius:10px;background:none;color:var(--muted);font-size:14px;text-align:left;margin:6px 0}.nav-item:hover{background:#222337;color:var(--text)}.nav-item.active{background:#2a263f;color:#d3c6ff}.sidebar-bottom{margin-top:auto}.quiet-note{margin:40px 15px;color:var(--muted)}.quiet-note svg{color:#77708f;width:24px;height:24px;margin-bottom:7px}.quiet-note p{font-size:14px;margin:3px 0;color:#c2bed2}.quiet-note span{font-size:13px}.local-note{font-size:12px;color:#8f90a6;margin:24px 0 0;display:flex;align-items:center;justify-content:center;gap:7px}.local-note svg{width:14px;height:14px}main{padding:44px 46px 23px;min-width:0}.page-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:36px}.eyebrow{color:#a19bad;letter-spacing:1.8px;font-size:11px;font-weight:600;margin:0 0 9px}h1{font-family:'Manrope',sans-serif;font-weight:600;font-size:32px;letter-spacing:-1.1px;margin:0 0 8px}.subtitle{color:var(--muted);font-size:14px;margin:0}.primary{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:10px;background:var(--lavender);color:#252034;font-weight:650;padding:13px 19px;white-space:nowrap;font-size:14px;transition:background .2s,transform .2s}.primary:hover{background:#d9ceff;transform:translateY(-1px)}.primary svg{width:18px;height:18px}.period-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}.segmented{display:flex;gap:4px;background:#1b1c2c;border:1px solid #262739;padding:5px;border-radius:10px}.segmented button{padding:7px 22px;background:none;color:var(--muted);border-radius:7px;font-size:14px}.segmented button.selected{background:#39334e;color:#e4d9ff;box-shadow:0 2px 4px #0002}.date-navigation{display:flex;align-items:center;gap:8px;color:#d1cede;font-size:14px}.date-navigation>span{min-width:160px;text-align:center}.icon-button{background:none;color:#a5a2bb;display:inline-flex;justify-content:center;align-items:center;width:34px;height:34px;border-radius:8px;flex-shrink:0}.icon-button:hover{background:#35324b;color:white}.icon-button svg{width:17px;height:17px}.reverse svg{transform:rotate(180deg)}.top-grid{display:grid;grid-template-columns: minmax(280px,.94fr) minmax(350px,1.5fr);gap:20px}.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.card h2{font-size:15px;letter-spacing:-.2px;font-weight:550;margin:0;display:flex;align-items:center;gap:9px}.card h2 svg{color:#c1b5eb;width:17px;height:17px}.night-card{padding:24px 24px 0;background:radial-gradient(ellipse at 50% 35%,#29243d55,transparent 75%),var(--panel)}.small-tag{font-size:12px;color:#b6adc9;background:#27253a;padding:4px 8px;border-radius:6px;white-space:nowrap}.sleep-ring{--progress:0%;width:216px;height:216px;border-radius:50%;background:conic-gradient(from 225deg,#cbbcff var(--progress),#302c44 0%);padding:9px;margin:24px auto 20px;position:relative;transform:rotate(0deg)}.sleep-ring:after{content:'';position:absolute;inset:16px;border:1px solid #373146;border-radius:50%;pointer-events:none}.ring-inner{background:#1e1d2f;border-radius:50%;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.overline{color:#b4aac8;font-size:10px;letter-spacing:2px}.sleep-number{font-family:'Manrope',sans-serif;font-size:39px;letter-spacing:-1.5px;font-weight:500;line-height:1.6}.sleep-number span{font-family:var(--font);font-size:18px;margin-left:3px;margin-right:3px;letter-spacing:0;color:#b7b0c9}.ring-caption{font-size:11px;color:#aca2c0}.night-times{display:grid;grid-template-columns:1fr 1fr;margin-bottom:21px;text-align:center}.night-times>div+div{border-left:1px solid var(--line)}.night-times span{font-size:12px;color:#a5a0b8;display:flex;align-items:center;justify-content:center;gap:6px}.night-times svg{width:14px;height:14px}.night-times strong{font-size:17px;font-weight:500;display:block;margin-top:4px}.night-footer{border-top:1px solid var(--line);padding:13px 0;display:flex;gap:8px;justify-content:center;align-items:center;font-size:11px;color:#a29ab4}.lavender-dot{display:block;width:5px;height:5px;background:#baa5ef;border-radius:50%;flex-shrink:0}.trends-card{padding:24px 26px 0;display:flex;flex-direction:column}.chart-key{font-size:12px;color:#b4aec6;display:flex;align-items:center;gap:7px}.chart-key i{display:block;width:7px;height:7px;border-radius:3px;background:var(--lavender)}.chart-summary{display:flex;align-items:center;justify-content:space-between;margin-top:27px}.muted{color:var(--muted);font-size:13px}.average-number{font-family:Manrope,sans-serif;font-size:33px;font-weight:500;line-height:1.55;letter-spacing:-1px}.average-number span{font-size:17px;color:#aba4bd;letter-spacing:0}.goal-tag{border:1px solid #393345;border-radius:6px;color:#b4aac7;font-size:11px;padding:5px 8px}.chart{position:relative;flex:1;min-height:185px;margin-top:19px;margin-bottom:13px}.chart-grid{position:absolute;inset:0 0 26px 26px;display:flex;flex-direction:column;justify-content:space-between}.grid-line{border-top:1px solid #2b2b3e;position:relative;height:0}.grid-line span{position:absolute;right:calc(100% + 8px);top:-9px;font-size:10px;color:#9290a7}.chart-bars{position:absolute;inset:0 0 0 30px;display:flex;justify-content:space-around;gap:10px;align-items:stretch}.bar-column{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;flex:1;min-width:0;position:relative}.bar-space{width:100%;height:calc(100% - 26px);display:flex;align-items:flex-end;justify-content:center;position:relative}.bar{width:55%;max-width:32px;min-width:3px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#c5b6ff,#8171b8);min-height:0;position:relative}.bar:hover,.bar:focus{background:#dacbff;outline:2px solid #e4d7ff;outline-offset:3px}.bar-tooltip{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);padding:5px 8px;border-radius:5px;background:#e5dfff;color:#28213b;white-space:nowrap;font-size:11px;display:none;z-index:5}.bar:hover .bar-tooltip,.bar:focus .bar-tooltip{display:block}.bar-label{height:26px;padding-top:9px;font-size:11px;color:#a6a0b7;white-space:nowrap}.bar-column.today .bar-label{color:#d6c7ff}.goal-line{position:absolute;left:26px;right:0;border-top:1px dashed #8d7aac66;pointer-events:none}.chart-empty{position:absolute;inset:10px 0 30px 26px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#191b2b66;backdrop-filter:blur(1px);text-align:center}.chart-empty span{color:#c0b9d1;font-size:14px}.chart-empty small{color:#9590aa;font-size:12px;margin-top:5px}.chart-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;padding:14px 0;font-size:11px;color:#a49db7}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:20px 0 28px}.stat-card{display:flex;gap:15px;padding:21px;align-items:flex-start}.stat-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;flex-shrink:0}.stat-icon svg{width:20px;height:20px}.lavender{background:#302941;color:#c3adee}.blue{background:#202f44;color:#9fbfef}.peach{background:#392d35;color:#e5bda7}.stat-card>div>span{font-size:13px;color:#b5aec3}.stat-card strong{font-family:Manrope,sans-serif;display:block;font-size:27px;font-weight:500;margin:4px 0;letter-spacing:-.5px}.stat-card em{font-family:var(--font);font-size:14px;font-weight:400;color:#b3abc2;font-style:normal}.stat-card small{display:block;font-size:11px;color:#928ba4}.journal-card{padding:24px}.journal-card>.card-heading{margin-bottom:20px}.empty-state{border:1px dashed #3a354d;border-radius:12px;display:flex;align-items:center;gap:18px;padding:26px}.empty-state .empty-icon{background:#2c273e;width:48px;height:48px;border-radius:15px;display:grid;place-items:center;color:#c1abea;flex-shrink:0}.empty-state strong{display:block;font-size:15px;font-weight:500}.empty-state p{font-size:13px;color:#9f96b2;margin:4px 0 0}.empty-state button{margin-left:auto;background:none;color:#d0bcff;font-size:13px;white-space:nowrap}.page-footer{display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#8e889f;padding:24px 0 0}.page-footer>span:first-child{display:flex;align-items:center;gap:7px}.page-footer svg{width:13px;height:13px}.journal-row{width:100%;display:grid;grid-template-columns:1.3fr 1fr 1fr 28px;text-align:left;align-items:center;gap:15px;padding:16px 0;background:none;border-top:1px solid var(--line);border-radius:0}.journal-row:hover{background:#222135}.journal-date{display:flex;gap:12px;align-items:center}.journal-date .day-square{background:#2a273c;padding:6px 9px;border-radius:8px;text-align:center;font-size:17px;min-width:42px}.day-square small{font-size:9px;text-transform:uppercase;display:block;color:#aca0bd}.journal-row strong{font-weight:500;font-size:14px}.journal-row small{display:block;color:#9e95af;font-size:12px;margin-top:3px}.journal-duration{text-align:right}.journal-duration strong{font-size:17px;color:#ded1ff}.journal-row>svg{width:15px;color:#9186a6}.journal-times{font-size:13px;color:#bdb4ce}.notice{background:#3b2c2c;border:1px solid #6b4646;color:#f5d9cb;border-radius:10px;padding:12px 16px;margin:0 0 20px;font-size:14px}dialog{background:#1c1c2d;border:1px solid #3b354e;border-radius:20px;color:var(--text);padding:30px;width:480px;max-width:calc(100% - 28px);box-shadow:0 20px 100px #0007;max-height:calc(100dvh - 28px);overflow:auto}dialog::backdrop{background:#070815bb;backdrop-filter:blur(6px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-heading h2{font-family:Manrope,sans-serif;font-weight:600;font-size:24px;margin:0}.dialog-heading .eyebrow{font-size:10px;display:block}.dialog-description{font-size:14px;color:#b7adc8;margin:13px 0 24px}label{display:block;font-size:13px;color:#c6bbd7;margin-bottom:17px}input{display:block;margin-top:8px;width:100%;min-width:0;background:#151623;color:var(--text);border:1px solid #413951;border-radius:8px;padding:12px;min-height:46px;font-size:16px}input:focus{outline:2px solid #b7a0eb;outline-offset:2px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field-hint{font-size:12px;color:#ada0bf;margin:-4px 0 20px}.unit-label{font-size:11px;display:block;color:#92859f}.estimate-box{background:#2e273f;border:1px solid #4b3b63;padding:17px;border-radius:10px;display:flex;align-items:center;justify-content:space-between;margin:0 0 14px;gap:14px}.estimate-box>div{display:flex;align-items:center;gap:8px;font-size:13px;color:#cbbadd}.estimate-box svg{width:17px;height:17px}.estimate-box strong{font-size:19px;white-space:nowrap;color:#dfceff}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;flex-wrap:wrap}.secondary{background:#2b293b;padding:12px 17px;border:1px solid #40384e;border-radius:9px;font-size:14px}.secondary:hover{background:#383149}.danger{background:none;color:#efaaaa;font-size:13px;margin-right:auto;padding:10px 0}.danger.filled{padding:12px 17px;background:#693b46;border-radius:9px;margin-right:0;color:#ffe5e5}.form-error{color:#ffb8b8;font-size:13px}.form-error:empty{display:none}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:12px 22px;border-radius:12px;background:#e2d7ff;color:#292134;box-shadow:0 8px 40px #0005;font-size:14px;z-index:10;white-space:nowrap}[hidden]{display:none!important}
@media(min-width:1450px){main{padding:48px 60px}.top-grid{grid-template-columns: .9fr 1.5fr}.chart{min-height:210px}.sleep-ring{width:238px;height:238px;margin:25px auto}.night-card{padding-left:30px;padding-right:30px}}
@media(max-width:1150px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:32px 16px}main{padding:34px 26px}.brand{font-size:25px}.top-grid{grid-template-columns:minmax(255px,.9fr) minmax(290px,1.2fr);gap:16px}.night-card{padding:20px 18px 0}.trends-card{padding:20px 20px 0}.stats-grid{gap:16px}.stat-card{padding:17px 14px;gap:10px}.stat-icon{width:33px;height:33px}.stat-card strong{font-size:24px}.stat-card small{font-size:11px}.chart-key{font-size:11px}}
@media(max-width:900px){.shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid #252636;flex-direction:row;align-items:center;justify-content:space-between;padding:19px 26px;gap:16px}.nav-caption,.quiet-note,.local-note{display:none}.sidebar nav{display:flex;gap:10px;margin-left:auto}.sidebar-bottom{margin:0}.nav-item{width:auto;font-size:13px;padding:10px;margin:0}.sidebar-bottom .nav-item{font-size:0;gap:0}.sidebar-bottom .nav-item svg{width:21px}.brand{font-size:25px}main{padding:30px 26px}.page-header{margin-bottom:28px}.sleep-ring{margin-top:24px;margin-bottom:20px}.page-footer{font-size:11px}}
@media(max-width:650px){.sidebar{padding:16px 19px;gap:8px}.brand{font-size:24px;gap:7px}.brand-mark{width:29px}.brand-mark svg{width:27px}.sidebar nav{gap:4px}.nav-item{font-size:0;gap:0;padding:10px 11px}.nav-item svg{width:19px;height:19px}main{padding:27px 18px 24px}.page-header{align-items:flex-start;gap:8px;margin-bottom:26px}h1{font-size:27px;letter-spacing:-.9px}.eyebrow{font-size:9px;letter-spacing:1.3px}.subtitle{font-size:13px;max-width:220px}.page-header .primary{font-size:0;width:44px;height:44px;padding:0;margin-top:13px;border-radius:12px}.page-header .primary svg{width:22px;height:22px}.period-toolbar{flex-direction:column;gap:15px;margin-bottom:20px}.segmented{width:100%;justify-content:space-between}.segmented button{flex:1;padding:7px 10px}.date-navigation{justify-content:center;width:100%;font-size:13px}.date-navigation>span{min-width:175px}.top-grid{grid-template-columns:1fr;gap:16px}.night-card{padding:21px 22px 0}.sleep-ring{width:216px;height:216px;margin:21px auto}.night-times{margin-bottom:18px}.trends-card{padding:22px 21px 0}.chart{min-height:185px}.chart-summary{margin-top:22px}.stats-grid{gap:9px;margin:16px 0 22px}.stat-card{display:block;padding:15px 12px}.stat-icon{width:30px;height:30px;border-radius:9px;margin-bottom:12px}.stat-icon svg{width:16px;height:16px}.stat-card>div>span{font-size:11px}.stat-card strong{font-size:22px;margin-top:7px;letter-spacing:-.5px}.stat-card em{font-size:11px}.stat-card small{font-size:10px;line-height:1.5}.journal-card{padding:21px 18px}.journal-card>.card-heading{align-items:flex-start}.journal-card .muted{font-size:11px;max-width:125px;text-align:right}.empty-state{padding:20px 14px;gap:12px;flex-wrap:wrap}.empty-state strong{font-size:13px}.empty-state p{font-size:12px}.empty-state .empty-icon{width:38px;height:38px;border-radius:11px}.empty-state button{margin:0 0 0 50px;padding:0;font-size:12px}.page-footer{justify-content:center;font-size:10px;line-height:1.6}.page-footer>span:last-child{display:none}.journal-row{grid-template-columns:1fr auto 18px;gap:10px}.journal-times{display:none}.journal-row strong{font-size:13px}.journal-duration strong{font-size:16px}.journal-row small{font-size:11px}.journal-date{gap:10px}.toast{font-size:12px;max-width:calc(100% - 24px);white-space:normal;text-align:center}.chart-bars.dense{gap:2px}.dense .bar{width:65%;border-radius:3px 3px 0 0}.dense .bar-label{font-size:9px}dialog{padding:24px 21px}.form-grid{gap:12px}.estimate-box{padding:14px}.estimate-box>div{font-size:12px}.estimate-box strong{font-size:17px}}
.subtitle{font-size:14px}.muted,.chart-key,.stat-card>div>span,label{font-size:14px}.ring-caption,.night-footer,.chart-footer,.stat-card small,.page-footer,.goal-tag,.overline,.eyebrow,.nav-caption{font-size:12px}.night-times span{font-size:14px}.segmented button{min-height:36px}.date-navigation .icon-button{width:40px;height:40px}.chart-bars{gap:5px}.bar-label{font-size:12px}.dense .bar-label{font-size:11px}.field-hint{line-height:1.6}.journal-card .muted{font-size:13px}
@media(max-width:650px){.stat-card>div>span{font-size:12px}.stat-card small{font-size:12px}.stat-card strong{font-size:22px}.stat-card{padding:15px 10px}.stat-card em{font-size:12px}.chart-footer{font-size:12px}.eyebrow{font-size:11px}.bar-label{font-size:10px}.dense .bar-label{font-size:10px}.journal-card .muted{font-size:12px}.page-footer{font-size:12px}.subtitle{max-width:240px}.night-footer{font-size:12px}.empty-state strong{font-size:14px}.empty-state p,.empty-state button{font-size:13px}.journal-row small{font-size:12px}.journal-row strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:40px 20px;background:radial-gradient(ellipse at 50% 20%,#36294555,transparent 65%)}.auth-card{width:440px;max-width:100%;padding:36px}.auth-card .brand{margin-bottom:38px}.auth-card .eyebrow{color:var(--lavender);margin-bottom:10px}.auth-tabs{margin-bottom:25px}.auth-tabs button{flex:1;padding:8px}.auth-submit{width:100%;margin-top:5px;min-height:46px}.auth-card label{font-size:14px}.text-button{display:block;margin:20px auto 0;background:none;color:var(--lavender);font-size:14px;padding:8px}.auth-privacy{font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center;justify-content:center;margin:28px 0 0}.auth-privacy svg{width:16px;height:16px}.auth-card .field-hint{font-size:13px}.auth-card .dialog-description{font-size:15px}.check-label{display:flex;align-items:flex-start;gap:10px;line-height:1.6;font-size:14px;margin:24px 0}.check-label input{width:18px;height:18px;min-height:0;flex-shrink:0;margin:3px 0;accent-color:var(--lavender)}#recovery-value{font-family:monospace;font-size:14px}#recovery-dialog h2{font-weight:500;font-size:25px}#account-dialog h3{font-size:16px;font-weight:500;margin:25px 0 16px}#account-name{overflow:hidden;text-overflow:ellipsis;max-width:125px}.sidebar-bottom{min-width:0}.import-notice{background:#282239;border-color:#4b3b63;display:flex;align-items:center;justify-content:space-between;gap:12px}.import-preview{max-height:210px;overflow:auto;margin-bottom:20px}.import-preview p{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:8px 0;font-size:14px}.import-preview span{color:var(--muted)}button:disabled{cursor:not-allowed}#auth-retry{display:block;margin:16px auto 0}@media(max-width:900px){.sidebar-bottom{display:flex;gap:3px}.sidebar-bottom #account-name{display:none}}@media(max-width:650px){.auth-screen{padding:20px 14px}.auth-card{padding:28px 24px}.auth-card .brand{margin-bottom:30px}.sidebar{gap:3px}.sidebar nav{gap:0}.nav-item{padding:10px 8px}.sidebar-bottom .nav-item{padding:10px 8px}.brand{font-size:21px}.import-notice{align-items:flex-start;flex-direction:column}.auth-card h1{font-size:28px}}
.auth-screen{grid-template-columns:minmax(0,1fr)}.auth-card{width:min(440px,100%);min-width:0;justify-self:center}.auth-tabs button{min-width:0;white-space:normal}.auth-privacy{flex-wrap:wrap;text-align:center}
