:root{color:#1d2925;font-synthesis:none;text-rendering:optimizelegibility;background:#f4f0e8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{min-width:320px}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}a{color:#245f50;text-underline-offset:.2em;font-weight:700}.auth-layout,.session-loading{place-items:center;min-height:100vh;padding:1.25rem 1rem;display:grid}.session-loading{color:#5f6f69}.auth-card{background:#ffffffc2;border:1px solid #ded8cc;border-radius:1.5rem;width:min(100%,28rem);padding:clamp(1.35rem,6vw,2.25rem);box-shadow:0 1.25rem 3.5rem #333d3814}.eyebrow{color:#658178;letter-spacing:.12em;text-transform:uppercase;margin:0 0 .5rem;font-size:.75rem;font-weight:800}h1{letter-spacing:-.045em;margin:0;font-size:clamp(1.8rem,8vw,2.7rem)}.auth-intro{color:#5f6f69;margin:.7rem 0 1.75rem;line-height:1.55}form{gap:.65rem;display:grid}label{margin-top:.35rem;font-size:.9rem;font-weight:750}input{color:#1d2925;background:#fff;border:1px solid #b9c2bd;border-radius:.8rem;width:100%;min-height:3rem;padding:.75rem .9rem}input[aria-invalid=true]{border-color:#a53a3a}input:focus-visible,button:focus-visible,a:focus-visible{outline-offset:3px;outline:3px solid #71b7a4}.primary-button,.secondary-button{cursor:pointer;border:0;border-radius:.85rem;min-height:2.75rem;font-weight:800}.primary-button{color:#f9fbfa;background:#245f50;margin-top:.75rem;padding:.8rem 1rem}.primary-button:hover{background:#19483d}.primary-button:disabled{cursor:wait;opacity:.65}.field-error,.form-error{color:#8b2929;overflow-wrap:anywhere;margin:-.2rem 0 .15rem;font-size:.85rem;line-height:1.4}.form-error{margin-top:.35rem}.auth-switch{color:#5f6f69;text-align:center;margin:1.5rem 0 0;font-size:.9rem}.app-shell{width:min(100%,48rem);min-height:100vh;margin:0 auto;padding:1.25rem 1rem}.app-header{justify-content:space-between;align-items:center;gap:1rem;display:flex}.secondary-button{color:#1d2925;background:#ded8cc;flex:none;padding:.65rem 1rem}.dashboard{min-width:0;padding:2rem 0 3rem}.statistics-header{justify-content:space-between;align-items:end;gap:.75rem;min-width:0;display:flex}.statistics-summary{min-width:0}.statistics-summary p{color:#658178;letter-spacing:.08em;text-transform:uppercase;margin:0 0 .25rem;font-size:.78rem;font-weight:800}.statistics-summary strong{letter-spacing:-.04em;white-space:nowrap;font-size:clamp(1.45rem,7vw,2.25rem);display:block}.period-switcher{background:#e6e0d6;border-radius:.75rem;flex:none;gap:.2rem;padding:.2rem;display:flex}.period-switcher button{color:#53635d;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:.58rem;min-height:2.15rem;padding:.4rem .58rem;font-size:.78rem;font-weight:800}.period-switcher button[aria-pressed=true]{color:#f9fbfa;background:#245f50}.sleep-chart{min-width:0;margin:1.15rem 0 1.6rem}.sleep-chart figcaption{color:#708079;text-align:center;margin-top:.35rem;font-size:.68rem}.chart-bars{border-bottom:1px solid #c9c3b8;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:clamp(1px,.7vw,.35rem);min-width:0;height:7.5rem;margin:0;padding:.65rem 0 0;list-style:none;display:grid}.chart-day{text-align:center;grid-template-rows:1fr 1rem;gap:.25rem;min-width:0;display:grid}.chart-track{justify-content:center;align-items:end;min-width:0;display:flex}.chart-bar{background:#5b9182;border-radius:.28rem .28rem 0 0;width:min(100%,1.45rem);min-height:0;display:block}.chart-day[data-empty=true] .chart-track:after{content:"";background:#d9d3c8;border-radius:999px;width:min(100%,1.45rem);height:2px}.chart-day time{color:#708079;text-overflow:clip;min-width:0;font-size:.62rem;overflow:hidden}.sleep-form{border-top:1px solid #d8d2c7;gap:.5rem;min-width:0;padding:1.15rem 0 1.7rem}.sleep-form label{margin-top:.3rem}.sleep-save{width:100%}.sleep-history{min-width:0}.sleep-history h2{letter-spacing:-.02em;margin:0;font-size:1.1rem}.sleep-history ul{border-top:1px solid #d8d2c7;min-width:0;margin:.55rem 0 0;padding:0;list-style:none}.sleep-history li{border-bottom:1px solid #d8d2c7;grid-template-columns:minmax(0,1fr) 34px;align-items:center;gap:.65rem;min-width:0;padding:.65rem 0;display:grid}.history-copy{grid-template-columns:minmax(4.7rem,auto) minmax(0,1fr);align-items:baseline;gap:.6rem;min-width:0;display:grid}.history-copy time,.history-copy span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.history-copy time{font-size:.82rem;font-weight:800}.history-copy span{color:#5f6f69;font-size:clamp(.72rem,3.5vw,.87rem)}.edit-sleep-button{color:#eaf1ee;cursor:pointer;background:#465650;border:0;border-radius:.65rem;place-items:center;width:34px;height:34px;padding:0;display:inline-grid}.edit-sleep-button svg{fill:currentColor}.empty-history,.dashboard-loading{color:#6d7c76;margin:1rem 0 0;font-size:.9rem}.dashboard-error{margin-top:1rem}.edit-dialog{color:#1d2925;background:#fbfaf7;border:1px solid #d8d2c7;border-radius:1.15rem;width:min(100% - 2rem,28rem);max-width:none;max-height:calc(100dvh - 2rem);margin:auto;padding:1.15rem;position:fixed;inset:0;overflow-y:auto;box-shadow:0 1.5rem 4rem #1c25223d}.edit-dialog::backdrop{background:#1c25228c}.dialog-heading{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem;display:flex}.dialog-heading h2{margin:0;font-size:1.25rem}.dialog-close{color:#465650;cursor:pointer;background:#e9e4da;border:0;border-radius:50%;width:2.4rem;height:2.4rem;padding:0;font-size:1.5rem;line-height:1}.delete-area{border-top:1px solid #ded8cc;margin-top:1.25rem;padding-top:1rem}.delete-area p{color:#702929;margin:0 0 .75rem;font-size:.9rem;line-height:1.4}.delete-link{color:#8b2929;cursor:pointer;background:0 0;border:0;padding:.35rem 0;font-weight:800}.delete-actions{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:.55rem;display:grid}.danger-button{color:#fff;cursor:pointer;background:#8b2929;border:0;border-radius:.85rem;min-height:2.75rem;padding:.65rem .75rem;font-weight:800}@media (width<=22rem){.statistics-header{flex-direction:column;align-items:start}.history-copy{grid-template-columns:minmax(0,1fr);gap:.15rem}}@media (width>=40rem){.app-shell{padding:2rem}}
