:root{--buncss-light:initial;--buncss-dark: ;color-scheme:light;color:#292723;font-synthesis:none;--ink:#292723;--muted:#716b63;--paper:#fbfaf7;--line:#ddd7ce;--accent:#a85f4b;--accent-dark:#824535;--accent-soft:#ead8d0;--shadow:0 18px 50px -34px #4833277a;background:#f4f0e9;font-family:Avenir Next,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:#f4f0e9;min-width:320px}body{background:radial-gradient(circle at 15% -10%,#fffaf2 0,#0000 35rem),#f4f0e9;min-width:320px;min-height:100dvh;margin:0}button,input,textarea{font:inherit}button{color:inherit}button,input[type=range]{touch-action:manipulation}button:focus-visible{outline:3px solid #a85f4b47;outline-offset:2px}input:focus-visible{outline:3px solid #a85f4b47;outline-offset:2px}textarea:focus-visible{outline:3px solid #a85f4b47;outline-offset:2px}.app-shell{width:min(100% - 32px,1040px);min-height:100dvh;margin:0 auto;padding:42px 0 132px}.app-header{display:flex;justify-content:space-between;align-items: flex-start;gap:24px;margin-bottom:40px}.eyebrow,.section-kicker{color:var(--accent);letter-spacing:.17em;margin:0 0 7px;font-size:.7rem;font-weight:800}.app-header h1{letter-spacing:-.052em;max-width:680px;margin:0;font-size:clamp(2rem,5vw,3.65rem);font-weight:680;line-height:.98}.subtle{color:var(--muted)}.app-header .subtle{margin:12px 0 0}.date-mark{display:grid;text-align:center;color:var(--accent-dark);background:#fbfaf7b8;border:1px solid #a85f4b38;border-radius:22px 22px 22px 8px;flex:none;place-content: center;width:68px;min-height:78px;box-shadow:inset 0 1px #ffffffe6}.date-mark span{letter-spacing:-.04em;font-size:1.65rem;font-weight:720;line-height:1}.date-mark small{text-transform:uppercase;letter-spacing:.12em;margin-top:4px;font-size:.66rem;font-weight:800}.log-layout{display:grid;grid-template-columns:minmax(0,1.15fr)minmax(320px,.85fr);align-items: start;gap:42px}.side-column{display:grid;gap:30px}.section-block{min-width:0}.section-heading{display:flex;justify-content:space-between;align-items: end;margin-bottom:16px}.section-heading.compact{margin-bottom:13px}.section-heading h2{letter-spacing:-.025em;margin:0;font-size:1.28rem;line-height:1.15}.timer-panel,.formula-panel,.sleep-strip{position:relative;overflow:hidden;box-shadow:var(--shadow),inset 0 1px #ffffffeb;background:#fbfaf7e6;border:1px solid #70605229}.timer-panel{display:flex;border-radius:28px 28px 12px;flex-direction:column;min-height:220px;padding:24px}.timer-panel:after{content:"";position:absolute;background:var(--accent-soft);opacity:.36;pointer-events:none;border-radius:50%;width:230px;height:230px;inset:auto -80px -110px auto}.timer-panel.is-running{border-color:#a85f4b59;min-height:284px}.panel-copy{display:flex;position:relative;z-index:1;align-items: center;gap:13px}.panel-copy h3,.sleep-strip h3{letter-spacing:-.015em;margin:0;font-size:1.06rem}.panel-copy p,.sleep-strip p{color:var(--muted);margin:3px 0 0;font-size:.84rem;line-height:1.35}.panel-symbol{display:grid;background:var(--accent-soft);color:var(--accent-dark);border-radius:15px;flex:none;place-items: center;width:45px;height:45px;font-size:1.45rem}.panel-symbol.bottle{background:#e9e5dd;font-size:1.2rem}.timer{display:block;position:relative;z-index:1;color:var(--accent-dark);font-variant-numeric:tabular-nums;letter-spacing:-.065em;margin:auto 0 18px;font-size:clamp(3rem,10vw,4.75rem);font-weight:610;line-height:1}.primary-button,.secondary-button{cursor:pointer;border:0;border-radius:15px;min-height:50px;padding:0 20px;transition:transform .16s,background .16s,opacity .16s;font-weight:750}.primary-button{position:relative;z-index:1;background:var(--accent);color:#fffaf7;box-shadow:0 12px 28px -20px #643022e6}.primary-button:hover{background:var(--accent-dark)}.primary-button.stop{background:var(--ink)}.secondary-button{background:var(--ink);color:#fbfaf7}.secondary-button:hover{background:#46423c}.primary-button:active,.secondary-button:active,.quick-button:active,.side-buttons button:active,.level-buttons button:active{transform:scale(.98)}.primary-button:disabled,.secondary-button:disabled{opacity:.42;cursor:not-allowed}.text-button{position:relative;z-index:1;color:var(--muted);text-decoration:underline;text-underline-offset:3px;cursor:pointer;background:0 0;border:0;align-self: center;padding:12px;font-size:.82rem;font-weight:650}.formula-panel{border-radius:12px 28px 28px;margin-top:14px;padding:24px}.amount-row{display:flex;align-items:baseline;gap:8px;margin:26px 0 14px}.amount-input{border:0;border-bottom:1px solid var(--line);color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.05em;background:0 0;width:120px;padding:0;font-size:2.8rem;font-weight:650;line-height:1}.amount-row span{color:var(--muted);font-size:1rem;font-weight:700}.amount-slider{accent-color:var(--accent);cursor:pointer;width:100%;height:28px;margin:0}.range-labels{display:flex;color:var(--muted);justify-content:space-between;margin:-1px 2px 17px;font-size:.68rem;font-weight:650}.formula-panel .secondary-button{width:100%}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quick-button{display:flex;text-align:left;cursor:pointer;background:#fbfaf7d1;border:1px solid #70605226;border-radius:20px 20px 8px;flex-direction:column;justify-content:center;align-items: flex-start;gap:9px;min-height:94px;padding:14px;transition:transform .16s,border-color .16s,background .16s;font-size:.82rem;font-weight:750;box-shadow:0 12px 36px -32px #483327cc,inset 0 1px #fffc}.quick-button:nth-child(2n){border-radius:20px 20px 20px 8px}.quick-button:hover{background:var(--paper);border-color:#a85f4b59}.quick-button span{min-height:25px;font-size:1.35rem;line-height:1}.quick-button.wide{grid-column:1/-1;border-radius:12px 20px 20px;flex-direction:row;justify-content:flex-start;gap:12px;min-height:70px}.quick-button.wide span{min-height:auto}.sleep-strip{display:grid;grid-template-columns:1fr auto;border-radius:24px 10px 24px 24px;align-items: center;gap:16px;padding:21px}.sleep-strip.is-running{border-color:#a85f4b59}.sleep-strip .section-kicker{margin-bottom:5px}.sleep-strip .text-button{grid-column:1/-1;justify-self:start;padding:0}.sleep-strip .primary-button,.sleep-strip .secondary-button{min-height:44px;padding-inline-start:16px;padding-inline-end:16px}.bottom-nav{position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom));z-index:5;display:grid;grid-template-columns:repeat(3,1fr);color:#eee9e1;backdrop-filter:blur(18px);background:#2a2723e8;border:1px solid #ffffffb3;border-radius:21px;gap:5px;width:min(100% - 32px,480px);padding:6px;transform:translate(-50%);box-shadow:0 20px 40px -20px #2b201bad,inset 0 1px #ffffff1f}.bottom-nav button{display:flex;color:#c9c2b9;cursor:pointer;background:0 0;border:0;border-radius:15px;justify-content:center;align-items: center;gap:8px;min-height:48px;font-weight:700}.bottom-nav button.active{color:var(--ink);background:#fbfaf7}.bottom-nav span{font-size:1.15rem}.overview{display:grid;gap:52px;width:min(100%,880px)}.overview-intro{display:flex;border-bottom:1px solid var(--line);justify-content:space-between;align-items:baseline;gap:20px;padding-bottom:14px}.overview-intro p,.overview-intro strong{margin:0}.overview-intro p{color:var(--muted);font-size:.78rem;font-weight:700}.overview-intro strong{font-size:.9rem;font-weight:700}.chart-section{min-width:0}.chart-heading{display:flex;justify-content:space-between;align-items: flex-end;gap:18px;margin-bottom:14px}.chart-heading h2{letter-spacing:-.03em;margin:0;font-size:1.42rem;line-height:1.1}.chart-toggle{display:grid;grid-auto-flow:column;border:1px solid var(--line);background:#e1dbd180;border-radius:13px;flex:none;padding:4px}.chart-toggle button{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:9px;min-height:36px;padding:0 13px;font-size:.74rem;font-weight:750}.chart-toggle button.active{background:var(--paper);color:var(--accent-dark);box-shadow:0 5px 15px -12px #231c18e6}.chart-legend{display:flex;color:var(--muted);flex-wrap:wrap;gap:15px;min-height:25px;margin:0 0 4px;font-size:.73rem;font-weight:650}.chart-legend span{display:inline-flex;align-items: center;gap:6px}.swatch{background:var(--accent);border-radius:3px;width:9px;height:9px}.swatch.right,.swatch.wet{background:#70867a}.swatch.dirty{background:#a85f4b}.swatch.both{background:#bd946b}.overview [role=img]{overflow:visible}.overview svg text{font-family:Avenir Next,Segoe UI,sans-serif}.day-picker{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:2px 0 16px}.day-picker button{color:var(--muted);text-transform:capitalize;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:11px;min-width:0;min-height:40px;padding:0 4px;font-size:.72rem;font-weight:750}.day-picker button.active{background:var(--accent-soft);color:var(--accent-dark);border-color:#a85f4b3d}.chart-context{display:flex;justify-content:space-between;align-items:baseline;gap:16px;min-height:38px;margin:0 3px 2px}.chart-context strong{text-transform:capitalize;font-size:.84rem}.chart-context span{color:var(--muted);font-size:.73rem;font-weight:650}.chart-empty{display:grid;color:var(--muted);place-content: center;justify-items:center;height:220px}.chart-empty span{display:grid;background:var(--accent-soft);color:var(--accent-dark);border-radius:13px;place-items: center;width:38px;height:38px;font-size:1.5rem}.chart-empty p{margin:10px 0 0;font-size:.82rem}.overview-loading{display:grid;gap:40px;width:min(100%,880px)}.overview-loading div{animation:1.2s infinite shimmer;background:linear-gradient(90deg,#fbfaf74d,#fbfaf7bf,#fbfaf74d) 0 0/200% 100%;border-radius:24px;height:310px}.history-list{width:min(100%,760px)}.export-button{display:flex;text-align:left;cursor:pointer;background:#fbfaf7d1;border:1px solid #a85f4b40;border-radius:18px 18px 7px;align-items: center;gap:14px;width:100%;min-height:68px;margin:0 0 30px;padding:12px 16px;transition:transform .16s,border-color .16s,background .16s;box-shadow:0 12px 36px -32px #483327cc,inset 0 1px #ffffffd9}.export-button:hover{border-color:var(--accent);background:var(--paper)}.export-button:active{transform:scale(.99)}.export-button>span:first-child{display:grid;background:var(--accent-soft);color:var(--accent-dark);border-radius:13px;flex:none;place-items: center;width:40px;height:40px;font-size:1.25rem;font-weight:800}.export-button>span:last-child{display:grid;gap:2px}.export-button strong{font-size:.88rem}.export-button small{color:var(--muted);font-size:.73rem}.history-day{margin-bottom:34px}.history-day>header{display:flex;border-bottom:1px solid var(--line);justify-content:space-between;align-items:baseline;gap:18px;padding:0 4px 11px}.history-day>header h2{text-transform:capitalize;letter-spacing:-.02em;margin:0;font-size:1.08rem}.history-day>header span{color:var(--muted);font-size:.7rem;font-weight:650}.entry-list{display:grid}.entry-row{display:grid;grid-template-columns:48px 38px minmax(0,1fr)16px;text-align:left;cursor:pointer;background:0 0;border:0;border-bottom:1px solid #ddd7cec7;align-items: center;gap:10px;width:100%;min-height:67px;padding:11px 4px}.entry-row:hover{background:#fbfaf785}.entry-row time{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.76rem;font-weight:680}.entry-emoji{display:grid;background:#ead8d085;border-radius:12px;place-items: center;width:34px;height:34px;font-size:.95rem}.entry-copy{display:grid;gap:3px;min-width:0}.entry-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.88rem;font-weight:680}.entry-copy small{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.73rem}.chevron{color:#a39b91;font-size:1.4rem}.history-loading{display:grid;gap:12px;width:min(100%,760px)}.history-loading div{animation:1.2s infinite shimmer;background:linear-gradient(90deg,#fbfaf773,#fbfaf7e6,#fbfaf773) 0 0/200% 100%;border-radius:18px;height:76px}.empty-state{text-align:center;padding:80px 20px}.empty-state span{display:inline-grid;background:var(--accent-soft);color:var(--accent-dark);border-radius:18px;place-items: center;width:54px;height:54px;font-size:1.5rem}.empty-state h2{margin:18px 0 5px}.empty-state p{color:var(--muted);margin:0}.modal-backdrop{position:fixed;z-index:10;display:grid;backdrop-filter:blur(6px);animation:.15s ease-out fade-in;background:#231f1c6b;place-items: end center;padding:18px;inset:0}.choice-sheet,.editor-sheet{overflow-y:auto;animation:.22s cubic-bezier(.16,1,.3,1) sheet-up;background:#fbfaf7;border:1px solid #ffffffbf;border-radius:30px 30px 14px;width:min(100%,520px);max-height:calc(100dvh - 36px);padding:28px;box-shadow:0 28px 80px -28px #291f1bb3,inset 0 1px #fff}.choice-sheet h2,.editor-sheet h2{letter-spacing:-.04em;margin:0;font-size:1.72rem}.choice-sheet .subtle{margin:8px 0 22px}.side-buttons,.level-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.level-buttons{grid-template-columns:repeat(3,1fr)}.side-buttons button,.level-buttons button{display:grid;border:1px solid var(--line);cursor:pointer;background:#f4f0e9;border-radius:18px;place-items: center;gap:4px;min-height:80px;font-weight:760}.side-buttons button:hover,.level-buttons button:hover{border-color:var(--accent)}.side-buttons span{color:var(--accent);font-size:1.35rem}.choice-sheet>.text-button{display:block;margin:12px auto -8px}.editor-header{display:flex;justify-content:space-between;align-items: flex-start;gap:20px;margin-bottom:24px}.editor-header>button{border:1px solid var(--line);color:var(--muted);cursor:pointer;background:0 0;border-radius:50%;width:40px;height:40px;font-size:1.5rem}.editor-sheet form,.login-panel form{display:grid;gap:10px}.editor-sheet label,.editor-sheet legend,.login-panel label{color:#4d4943;font-size:.76rem;font-weight:760}.editor-sheet input:not([type=radio]),.editor-sheet textarea,.login-panel input{border:1px solid var(--line);color:var(--ink);background:#fff;border-radius:12px;width:100%;min-height:49px;padding:12px 14px}.editor-sheet textarea{resize:vertical}.editor-sheet fieldset{border:0;min-width:0;margin:5px 0;padding:0}.editor-sheet legend{margin-bottom:7px}.segmented{display:grid;grid-template-columns:repeat(2,1fr);border:1px solid var(--line);background:#f0ece5;border-radius:13px;padding:4px}.segmented.three{grid-template-columns:repeat(3,1fr)}.segmented label{position:relative;display:grid;cursor:pointer;border-radius:9px;place-items: center;min-height:41px}.segmented input{position:absolute;opacity:0}.segmented label:has(input:checked){color:var(--accent-dark);background:#fff;box-shadow:0 4px 12px -9px #231c18cc}.editor-actions{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:10px}.delete-button{color:#8d4130;cursor:pointer;background:0 0;border:1px solid #d8b8af;border-radius:15px;min-height:50px;padding:0 18px;font-weight:720}.form-error{margin:2px 0;font-weight:650;color:#9b3f2d!important;font-size:.78rem!important}.toast{position:fixed;left:50%;bottom:max(92px,calc(env(safe-area-inset-bottom) + 78px));z-index:20;display:flex;color:#fbfaf7;animation:.18s cubic-bezier(.16,1,.3,1) toast-up;background:#2d2a26;border-radius:14px;align-items: center;gap:20px;width:max-content;max-width:calc(100% - 32px);padding:13px 16px;font-size:.82rem;font-weight:650;transform:translate(-50%);box-shadow:0 14px 38px -15px #231c18bf}.toast button{color:#e4b7aa;cursor:pointer;background:0 0;border:0;padding:5px 0;font-weight:800}.login-page,.loading-page{display:grid;background:radial-gradient(circle at 30% 0,#fffaf2 0,#0000 36rem),#f4f0e9;place-items: center;min-height:100dvh;padding:24px}.login-panel{width:min(100%,440px)}.login-mark,.loading-mark{display:grid;background:var(--accent);color:#fffaf7;border-radius:20px 20px 20px 7px;place-items: center;width:58px;height:58px;margin-bottom:34px;font-size:1.65rem;font-weight:750;box-shadow:0 18px 38px -24px #643022e6}.login-panel h1{letter-spacing:-.06em;margin:0;font-size:clamp(2.25rem,9vw,3.7rem);font-weight:670;line-height:.98}.login-panel>p:not(.eyebrow){color:var(--muted);max-width:38ch;margin:20px 0 32px;line-height:1.55}.login-panel form{gap:9px}.login-panel .primary-button{margin-top:8px}.loading-page{align-content: center}.loading-mark{margin:0 auto 20px}.loading-line{overflow:hidden;background:var(--accent-soft);border-radius:4px;width:100px;height:3px}.loading-line:after{content:"";display:block;border-radius:inherit;background:var(--accent);animation:1s ease-in-out infinite loading;width:45%;height:100%}@keyframes fade-in{0%{opacity:0}}@keyframes sheet-up{0%{opacity:0;transform:translateY(24px)scale(.98)}}@keyframes toast-up{0%{opacity:0;transform:translate(-50%,14px)}}@keyframes loading{0%,to{transform:translate(-100%)}50%{transform:translate(220%)}}@keyframes shimmer{to{background-position:-200% 0}}@media (max-width:780px){.app-shell{width:min(100% - 28px,560px);padding-top:28px}.app-header{margin-bottom:31px}.app-header h1{font-size:2.48rem}.date-mark{border-radius:19px 19px 19px 7px;width:60px;min-height:70px}.log-layout{grid-template-columns:1fr;gap:32px}.side-column{gap:28px}.timer-panel{min-height:210px}.timer-panel.is-running{min-height:270px}.history-day>header span{display:none}.overview{gap:44px}}@media (max-width:390px){.app-shell{width:calc(100% - 22px)}.app-header h1{font-size:2.16rem}.date-mark{width:54px;min-height:64px}.timer-panel,.formula-panel,.choice-sheet,.editor-sheet{padding:21px}.quick-button{min-height:88px}.sleep-strip{grid-template-columns:1fr}.sleep-strip .primary-button,.sleep-strip .secondary-button{width:100%}.entry-row{grid-template-columns:44px 36px minmax(0,1fr)12px;gap:7px}.bottom-nav{width:calc(100% - 22px)}.bottom-nav button{gap:5px;font-size:.73rem}.bottom-nav span{font-size:1rem}.chart-heading{flex-direction:column;align-items: flex-start}.chart-toggle{grid-auto-columns:1fr;align-self:stretch}.chart-context{flex-direction:column;align-items: flex-start;gap:3px}}@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
