:root{--bg:var(--tg-theme-bg-color,#fff);--surface:var(--tg-theme-secondary-bg-color,#f1f2f5);--text:var(--tg-theme-text-color,#15161a);--hint:var(--tg-theme-hint-color,#868a93);--accent:var(--tg-theme-button-color,#2f7cf6);--accent-text:var(--tg-theme-button-text-color,#fff);--link:var(--tg-theme-link-color,var(--accent));--danger:var(--tg-theme-destructive-text-color,#e5484d);--bottle:var(--accent);--breast:#d9577f;--asleep:#2d4f9e;--awake:#9fe5f5;--line:color-mix(in srgb, var(--hint) 22%, transparent);--row-h:clamp(52px, 8.4dvh, 68px);--radius:14px;--gap:8px;--pad:16px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:var(--tg-theme-bg-color,#17181c);--surface:var(--tg-theme-secondary-bg-color,#24262c);--text:var(--tg-theme-text-color,#f2f3f5);--hint:var(--tg-theme-hint-color,#8d919b);--accent:var(--tg-theme-button-color,#4c8ff8);--breast:#f07ea2;--asleep:#4767c4;--awake:#86d4e6}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{background:var(--bg);height:100%;color:var(--text);overscroll-behavior:none;margin:0;font:16px/1.35 -apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,Roboto,sans-serif}button,input,select{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;background:0 0;border:0;padding:0}button:disabled{opacity:.35;cursor:default}h2{text-transform:uppercase;letter-spacing:.04em;color:var(--hint);margin:0;font-size:13px;font-weight:600}.hint{color:var(--hint);font-size:13px}#app{height:var(--tg-viewport-stable-height,100dvh)}.shell{flex-direction:column;height:100%;display:flex}.top{height:44px;padding:0 var(--pad);flex:none;justify-content:center;align-items:center;display:flex}.baby-pick{align-items:center;gap:2px;max-width:100%;font-size:17px;font-weight:600;display:inline-flex;position:relative}.baby-pick span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.baby-pick svg{fill:none;width:20px;height:20px;stroke:var(--hint);stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.baby-pick select{opacity:0;font-size:16px;position:absolute;top:-8px;bottom:-8px;left:-8px;right:-8px}.content{-webkit-overflow-scrolling:touch;min-height:0;padding:0 var(--pad);flex:1;overflow-y:auto}.tabs{border-top:1px solid var(--line);background:var(--bg);padding-bottom:max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom,0px));flex:none;display:flex}.tabs button{height:56px;color:var(--hint);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;font-size:11px;font-weight:500;display:flex}.tabs button.on{color:var(--accent)}.tabs svg{fill:none;stroke:currentColor;stroke-width:2.2px;stroke-linecap:round;width:24px;height:24px}.splash{height:100%}.message{text-align:center;height:100%;color:var(--hint);flex-direction:column;justify-content:center;align-items:center;gap:20px;padding:32px;display:flex}.message .primary{height:50px;padding:0 28px}.primary,.secondary,.danger{border-radius:var(--radius);height:52px;font-weight:600}.primary{background:var(--accent);color:var(--accent-text)}.secondary{background:var(--surface)}.danger{background:color-mix(in srgb, var(--danger) 12%, transparent);color:var(--danger)}.primary:active:not(:disabled),.secondary:active,.danger:active,.step:active:not(:disabled){transform:scale(.96)}.link{color:var(--link);text-transform:none;letter-spacing:0;margin-left:8px;margin-block-start:-10px;margin-block-end:-10px;padding:10px 0;font-size:13px;font-weight:500}.link.gone{visibility:hidden}.icon-btn{width:48px;height:44px;color:var(--accent);font-size:30px;line-height:1}.step-row{gap:var(--gap);height:var(--row-h);grid-template-columns:1fr 1fr 1.9fr 1fr 1fr;display:grid}.step{border-radius:var(--radius);background:var(--surface);color:var(--accent);font-variant-numeric:tabular-nums;font-size:17px;font-weight:600;transition:transform 80ms,background-color .2s}.step.alt{background:color-mix(in srgb, var(--accent) 14%, var(--surface))}.step-center{flex-direction:column;justify-content:center;align-items:center;min-width:0;display:flex}.amount-input{border:0;border-bottom:2px solid var(--line);text-align:center;font-variant-numeric:tabular-nums;background:0 0;border-radius:0;outline:none;width:100%;padding:0;font-size:30px;font-weight:700;line-height:1.1}.amount-input:focus{border-bottom-color:var(--accent)}.time-value{font-variant-numeric:tabular-nums;font-size:30px;font-weight:700;line-height:1.1}.time-input{text-align:center;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;outline:none;width:100%;max-width:5.2ch;padding:0}.time-input:focus{border-bottom-color:var(--accent)}.unit{color:var(--hint);margin-top:2px;font-size:12px}.kind-icon{fill:none;stroke:currentColor;stroke-width:1.9px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:20px;height:20px}.kind-icon .fill{fill:currentColor;stroke:none}.kind-icon .tint{fill:currentColor;fill-opacity:.2;stroke:none}.kind-icon.breast,.breast{color:var(--breast)}.kind-icon.bottle,.bottle{color:var(--bottle)}.parts{gap:var(--gap);flex-direction:column;display:flex}.part{grid-template-columns:auto 56px;align-items:center;column-gap:6px;display:grid}.part .kind-icon{grid-row:1/3;width:22px;height:22px}.part .amount-input{color:var(--text);text-align:right;grid-column:2;width:56px;font-size:28px}.part .amount-input.long{height:31px;font-size:22px}.part .unit{grid-column:2;justify-self:end}.field h2{align-items:baseline;height:22px;margin-bottom:8px;display:flex}.content{container-type:size}@supports (container-type:size){.record{--row-h:clamp(40px, 10cqh, 68px);--record-gap:clamp(8px, 3.4cqh, 28px);--record-btn-h:clamp(48px, 11cqh, 68px);--record-pad:clamp(8px, 3cqh, 16px)}}.record{gap:var(--record-gap,clamp(14px, 3.2dvh, 28px));min-height:100%;padding:8px 0 var(--record-pad,var(--pad));flex-direction:column;display:flex}.summary{gap:var(--gap);grid-template-columns:1fr 1fr;display:grid}.summary div{border-radius:var(--radius);background:var(--surface);flex-direction:column;padding:10px 12px;display:flex}.summary b{font-variant-numeric:tabular-nums;font-size:22px;line-height:1.25}.controls{gap:var(--record-gap,clamp(14px, 3.2dvh, 28px));flex-direction:column;margin-top:auto;display:flex;position:relative}.saved{z-index:5;padding:var(--pad);border-radius:var(--radius);background:color-mix(in srgb, var(--accent) 10%, var(--surface));box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:clamp(10px,2.4dvh,20px);animation:.14s ease-out fade;display:flex;position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.saved-check{background:color-mix(in srgb, var(--accent) 18%, transparent);width:52px;height:52px;color:var(--accent);border-radius:50%;place-items:center;font-size:26px;font-weight:700;display:grid}.saved-text{font-variant-numeric:tabular-nums;font-size:19px}.saved-undo{width:min(100%,240px);height:var(--row-h);color:var(--accent);background:var(--bg);font-size:17px}.saved-bar{background:var(--accent);opacity:.55;transform-origin:0;width:100%;height:3px;animation:linear forwards drain;position:absolute;bottom:0;left:0}@keyframes drain{to{transform:scaleX(0)}}.record-btn{height:var(--record-btn-h,clamp(56px, 9dvh, 68px));font-variant-numeric:tabular-nums;font-size:18px}.dash{padding-bottom:var(--pad);flex-direction:column;gap:10px;display:flex}.daynav{justify-content:space-between;align-items:center;margin-top:-6px;font-size:17px;font-weight:600;display:flex}.kpis{gap:var(--gap);grid-template-columns:repeat(3,1fr);display:grid}.kpis div{background:var(--surface);border-radius:var(--radius);flex-direction:column;padding:8px 12px;display:flex}.kpis b{font-variant-numeric:tabular-nums;font-size:24px;line-height:1.15}.kpis span{color:var(--hint);font-size:12px}.card{background:var(--surface);border-radius:var(--radius);padding:12px}.card-head{justify-content:space-between;align-items:baseline;margin-bottom:8px;display:flex}.hist{align-items:stretch;gap:2px;height:clamp(84px,17dvh,200px);display:flex}.hbar{flex:1;align-items:flex-end;min-width:0;display:flex}.stack{opacity:.88;border-radius:3px 3px 0 0;flex-direction:column;width:100%;min-height:2px;transition:opacity .12s;display:flex;overflow:hidden}.stack:empty{background:var(--line)}.stack i{flex-basis:0;min-height:0;display:block}.stack .breast{background:var(--breast)}.stack .bottle{background:var(--bottle)}.stack.solid.asleep{background:var(--asleep)}.stack.solid.awake{background:var(--awake)}.stack.solid[style*="height: 0%"]{background:var(--line)}.sbar{background:var(--line);border-radius:3px;flex-direction:column-reverse;width:100%;height:100%;transition:opacity .12s;display:flex;overflow:hidden}.sbar i{flex-basis:0;min-height:0;display:block}.sbar .asleep{background:var(--asleep)}.sbar .awake{background:var(--awake)}.swatch{border-radius:3px;width:10px;height:10px;display:inline-block}.swatch.asleep{background:var(--asleep)}.swatch.awake{background:var(--awake)}.sleep-now{text-align:center;margin:-4px 0 0;font-size:15px}.segmented.views{grid-template-columns:repeat(3,1fr)}.segmented.views button{height:34px;font-size:15px}.dash.view-summary{gap:8px}.dash.view-summary .kpis div{padding:5px 12px}.dash.view-summary .kpis b{font-size:20px}.dash.view-summary .card{padding:10px 12px}.dash.view-summary .card-head{margin-bottom:6px}.dash.view-summary .hist{height:clamp(52px,10dvh,150px)}.hist.picking .hbar:not(.sel) .sbar,.hist.picking .hbar:not(.sel) .stack{opacity:.35}.legend{gap:14px;margin-top:6px;font-size:12px;display:flex}.legend span{align-items:center;gap:4px;display:inline-flex}.legend .kind-icon{width:14px;height:14px}.hist-axis{height:16px;color:var(--hint);font-variant-numeric:tabular-nums;margin-top:4px;font-size:11px;position:relative}.hist-axis span{position:absolute}.week{grid-template-columns:repeat(7,1fr);gap:6px;display:grid}.wday{border-radius:10px;flex-direction:column;align-items:center;gap:4px;padding:4px 0;display:flex}.wday.sel{background:color-mix(in srgb, var(--accent) 14%, transparent)}.wtotal{font-variant-numeric:tabular-nums;min-height:14px;font-size:11px}.wbar{align-items:flex-end;width:60%;height:clamp(28px,6dvh,64px);display:flex}.wlabel{color:var(--hint);font-size:12px}.wday.sel .wlabel{color:var(--accent);font-weight:600}.error{color:var(--danger);margin:0}.history section+section{margin-top:12px}.day-head{z-index:1;background:var(--bg);justify-content:space-between;padding:10px 4px 6px;display:flex;position:sticky;top:0}.rows{background:var(--surface);border-radius:var(--radius);margin:0;padding:0;list-style:none;overflow:hidden}.rows li+li{border-top:1px solid var(--line)}.row{text-align:left;font-variant-numeric:tabular-nums;grid-template-columns:52px auto 1fr 16px;align-items:center;column-gap:12px;width:100%;min-height:52px;padding:6px 12px;display:grid}.row:active{background:var(--line)}.row-time{font-weight:600}.row-ml{flex-direction:column;display:flex}.row-total{align-items:center;gap:4px;display:inline-flex}.row-total .kind-icon{width:15px;height:15px}.row-split{color:var(--hint);font-size:12px}.row-by{color:var(--hint);text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.chev{color:var(--hint);font-size:20px}.empty{text-align:center;color:var(--hint);margin-top:40px}.sentinel{text-align:center;height:40px;color:var(--hint);font-size:13px}.sheet-backdrop{z-index:30;background:#0006;align-items:flex-end;animation:.15s ease-out fade;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.sheet{background:var(--bg);width:100%;padding:16px var(--pad) calc(var(--pad) + max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom,0px)));border-radius:18px 18px 0 0;flex-direction:column;gap:18px;animation:.18s ease-out rise;display:flex}.sheet-head{justify-content:space-between;align-items:baseline;display:flex}.sheet-head h2{text-transform:none;letter-spacing:0;color:var(--text);font-size:17px}.sheet-actions{gap:var(--gap);grid-template-columns:1fr 1fr 1.4fr;display:grid}.toast{left:var(--pad);right:var(--pad);bottom:calc(68px + max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom,0px)));z-index:20;border-radius:var(--radius);background:color-mix(in srgb, var(--text) 8%, var(--surface));min-height:48px;color:var(--text);box-shadow:0 6px 24px #0000002e, inset 0 0 0 1px var(--line);align-items:center;gap:12px;padding:8px 8px 8px 16px;font-size:15px;animation:.18s ease-out rise;display:flex;position:fixed}.toast span{flex:1}.toast button{height:36px;color:var(--accent);background:var(--bg);border-radius:10px;padding:0 14px;font-weight:600}@keyframes rise{0%{opacity:0;transform:translateY(16px)}}@keyframes fade{0%{opacity:0}}.summary .next{color:var(--accent);margin-top:2px;font-weight:600}.summary .next.due{color:var(--danger)}.settings{padding:8px 0 var(--pad);flex-direction:column;gap:22px;display:flex}.settings .hint{color:var(--hint);margin:8px 2px 0;font-size:13px}.segmented{border-radius:var(--radius);background:var(--surface);grid-template-columns:1fr 1fr;gap:4px;padding:4px;display:grid}.segmented button{height:calc(var(--row-h) - 8px);color:var(--hint);border-radius:10px;font-weight:600}.segmented button.on{background:var(--bg);color:var(--text);box-shadow:0 1px 3px #00000026}.interval-row{grid-template-columns:1fr 2.2fr 1fr}.wide{width:100%;height:var(--row-h)}.feedback-head{justify-content:center;align-items:center;height:32px;display:flex;position:relative}.feedback-head .link{margin-left:0;font-size:15px;position:absolute;left:0}.feedback-text{resize:vertical;border-radius:var(--radius);background:var(--surface);width:100%;min-height:160px;color:var(--text);font:inherit;box-shadow:inset 0 0 0 1px var(--line);border:0;outline:none;padding:12px 14px;font-size:16px;line-height:1.4}.feedback-text:focus{box-shadow:inset 0 0 0 2px var(--accent)}.check-row{min-height:var(--row-h);border-radius:var(--radius);background:var(--surface);cursor:pointer;align-items:center;gap:14px;padding:0 16px;display:flex}.checks{gap:var(--gap);flex-direction:column;display:flex}.check-row.locked{cursor:default}.check-row input{width:24px;height:24px;accent-color:var(--accent);flex:none;margin:0}.bulk-open{width:100%;height:44px;color:var(--accent);margin-top:4px}.bulk{z-index:40;background:var(--bg);--row-h:46px;flex-direction:column;animation:.18s ease-out rise;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.bulk-head{padding:calc(8px + var(--tg-content-safe-area-inset-top,0px)) var(--pad) 8px;justify-content:space-between;align-items:center;display:flex}.bulk-head h2{text-transform:none;letter-spacing:0;color:var(--text);font-size:17px}.bulk-x{width:40px;height:40px;color:var(--hint);margin-right:-8px;font-size:28px;line-height:1}.bulk-tabs{margin:0 var(--pad) 8px}.bulk-tabs button{height:38px}.bulk-count{background:var(--accent);min-width:20px;color:var(--accent-text);border-radius:10px;margin-left:6px;padding:0 6px;font-size:12px;line-height:20px;display:inline-block}.bulk-body{overscroll-behavior:contain;padding:4px var(--pad) var(--pad);flex-direction:column;flex:1;gap:10px;display:flex;overflow-y:auto}.bulk-row{border-radius:var(--radius);box-shadow:inset 0 0 0 1px var(--line);grid-template-columns:1fr 32px;gap:6px;padding:10px 6px 10px 10px;display:grid}.bulk-row.invalid{box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 60%, transparent)}.bulk-row.linked{background:color-mix(in srgb, var(--awake) 14%, transparent)}.bulk-fields{flex-direction:column;gap:6px;min-width:0;display:flex}.bulk-row .step-row{gap:6px}.bulk-row .step{border-radius:10px;font-size:15px}.bulk-row .part .amount-input{font-size:22px}.bulk-row .part .amount-input.long{height:25px;font-size:18px}.bulk-row .time-value{font-size:22px}.bulk-row .unit{margin-top:0;font-size:11px}.bulk-row .segmented button{height:34px;font-size:14px}.bulk-note{padding-left:2px;font-size:12px}.bulk-remove{background:var(--surface);width:32px;height:32px;color:var(--hint);border-radius:50%;align-self:start;font-size:20px;line-height:1}.bulk-add{background:color-mix(in srgb, var(--accent) 14%, var(--surface));width:52px;height:52px;color:var(--accent);border-radius:50%;flex:none;align-self:center;font-size:30px;font-weight:500;line-height:1}.bulk-add:active,.bulk-remove:active{transform:scale(.94)}.bulk-foot{padding:8px var(--pad) calc(var(--pad) + max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom,0px)));border-top:1px solid var(--line);flex-direction:column;gap:6px;display:flex}.bulk-warn{text-align:center;color:var(--danger);font-size:13px}.predict{min-height:100%;padding:calc(14px + var(--tg-content-safe-area-inset-top,0px)) var(--pad) calc(var(--pad) + max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom,0px)));flex-direction:column;gap:14px;max-width:560px;margin:0 auto;display:flex}.predict-head{justify-content:space-between;align-items:baseline;display:flex}.predict-head h1{margin:0;font-size:20px}.predict-main{text-align:center;border-radius:var(--radius);background:var(--surface);flex-direction:column;align-items:center;padding:18px 12px;display:flex}.predict-time{font-variant-numeric:tabular-nums;font-size:52px;line-height:1.05}.predict-time.due{color:var(--danger);font-size:34px}.predict-in{color:var(--accent);font-weight:600}.predict-range{color:var(--hint);margin-top:6px}.predict-last{margin:0;padding:0 2px}.predict-chart svg{width:100%;height:auto;display:block}.pw-band{fill:color-mix(in srgb, var(--accent) 12%, transparent)}.pw-grid{stroke:var(--line);stroke-width:1px}.pw-chance{fill:none;stroke:var(--breast);stroke-width:2.5px;stroke-linejoin:round}.pw-likely{stroke:var(--accent);stroke-width:1.5px;stroke-dasharray:4 3}.pw-now{stroke:var(--text);stroke-width:1px;opacity:.6}.pw-label,.pw-axis{fill:var(--hint);font-size:10px}.pw-label{fill:var(--text);font-weight:600}.pw-ml{fill:var(--bottle)}.pw-p{fill:var(--breast)}.pw-key{border-radius:3px;width:14px;height:10px;display:inline-block}.pw-key.chance{background:var(--breast);height:3px}.pw-key.likely{border-left:2px dashed var(--accent);border-radius:0;width:0;height:12px}.predict-chart .legend{color:var(--hint);flex-wrap:wrap;row-gap:4px}.predict-notes{font-size:13px}.predict-notes p{margin:0 0 8px}.predict-open{margin-top:auto}
