:root{--bg:#f4f6f5;--card:#fff;--text:#1f2933;--muted:#6b7680;--border:#dde3e1;--primary:#0f766e;--primary-text:#fff;--danger:#b91c1c;--danger-text:#fff;--ok:#15803d;--radius:12px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;accent-color:var(--primary);color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#111716;--card:#1b2321;--text:#e6ecea;--muted:#93a19d;--border:#2c3735;--primary:#2dd4bf;--primary-text:#062421;--danger:#f87171;--danger-text:#2a0707;--ok:#4ade80}}*{box-sizing:border-box}body{margin:0}h1,h2{margin:0 0 .75rem}h1{font-size:1.4rem}h2{font-size:1.1rem}.topbar{padding:calc(.75rem + env(safe-area-inset-top)) 1rem .75rem;background:var(--card);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;display:flex}.brand{color:var(--primary);font-weight:700;text-decoration:none}.user-menu{position:relative}button.user-menu-button{color:var(--muted);background:0 0;align-items:center;gap:.3rem;padding:.3rem .5rem;font-weight:500;display:inline-flex}.chevron{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:1rem;height:1rem;transition:transform .15s}.chevron.open{transform:rotate(180deg)}.user-menu-dropdown{z-index:50;background:var(--card);border:1px solid var(--border);border-radius:8px;flex-direction:column;min-width:10rem;padding:.3rem;display:flex;position:absolute;top:calc(100% + .35rem);right:0;box-shadow:0 6px 20px #00000026}.user-menu-dropdown a,.user-menu-dropdown button{width:100%;color:var(--text);text-align:left;background:0 0;border-radius:6px;padding:.6rem .75rem;font-weight:500;text-decoration:none;display:block}.user-menu-dropdown a:hover,.user-menu-dropdown button:hover{background:var(--bg)}.content{max-width:960px;padding:1rem 1rem calc(5rem + env(safe-area-inset-bottom));margin:0 auto}.tabbar{background:var(--card);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);display:flex;position:fixed;bottom:0;left:0;right:0}.tabbar a{text-align:center;color:var(--muted);flex:1;padding:.9rem 0;font-weight:600;text-decoration:none}.tabbar a.router-link-active{color:var(--primary);text-underline-offset:6px;font-weight:700;text-decoration:underline;text-decoration-thickness:3px}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:1rem;padding:1rem}.card.narrow{max-width:360px;margin:2rem auto}.stack{flex-direction:column;gap:.75rem;display:flex}.card form.stack{max-width:640px}.row{align-items:flex-end;gap:.75rem;display:flex}.row.space-between{justify-content:space-between;align-items:center;margin-bottom:.5rem}.row.space-between h2{margin:0}.grow{flex:1;min-width:0}label{color:var(--muted);flex-direction:column;gap:.25rem;font-size:.85rem;display:flex}input,select,textarea,button{font:inherit;font-size:16px}input,select,textarea{border:1px solid var(--border);background:var(--bg);width:100%;color:var(--text);border-radius:8px;padding:.6rem .7rem}select{width:auto}input.big{font-size:1.4rem;font-weight:600}input.time{flex:none;width:7rem}input.color{width:4rem;height:2.6rem;padding:.2rem}button{background:var(--primary);color:var(--primary-text);cursor:pointer;border:none;border-radius:8px;padding:.65rem 1.1rem;font-weight:600}button:disabled{opacity:.6}button.secondary{color:var(--text);border:1px solid var(--border);background:0 0}button.link{color:var(--primary);background:0 0;padding:.25rem .4rem;font-weight:500}button.link.danger{color:var(--danger)}.segmented{border:1px solid var(--border);border-radius:8px;display:flex;overflow:hidden}.segmented button{color:var(--muted);background:0 0;border-radius:0;padding:.35rem .7rem;font-size:.85rem}.segmented button.active{background:var(--primary);color:var(--primary-text)}.chart-wrap{height:260px;position:relative}.columns{flex-direction:column;display:flex}.columns>.column{display:contents}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}@media (width>=1100px){.content{max-width:calc(1920px + 3rem)}.columns{flex-direction:row;justify-content:center;align-items:flex-start;gap:1rem}.columns>.column{flex-direction:column;flex:1;min-width:0;max-width:960px;display:flex}.columns>.column:empty{display:none}}@media (width>=768px){.chart-wrap{height:380px}}.stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;display:grid}.stat{flex-direction:column;gap:.15rem;display:flex}.big{font-size:1.4rem;font-weight:700}.list{margin:0;padding:0;list-style:none}.list li{border-bottom:1px solid var(--border);align-items:center;gap:.75rem;padding:.6rem 0;display:flex}.list li:last-child{border-bottom:none}.list a{color:var(--primary)}.actions{flex-direction:column;align-items:flex-end;display:flex}.time-label{font-variant-numeric:tabular-nums;margin-right:.35rem;font-weight:600}.day-nav{justify-content:center;align-items:center;gap:.75rem;margin-bottom:1rem;display:flex}.day-nav .center{flex-direction:column;align-items:center;min-width:13rem;display:flex}.day-picker{position:relative}.day-heading{color:var(--text);align-items:center;gap:.4rem;font-size:1rem;display:inline-flex}.calendar-icon{fill:none;width:1.1rem;height:1.1rem;stroke:var(--primary);stroke-width:2px;stroke-linecap:round}.hidden-date-input{opacity:0;pointer-events:none;border:0;width:1px;height:1px;padding:0;position:absolute;top:100%;left:50%}.muted{color:var(--muted)}.small{font-size:.85rem}.center{text-align:center}.error,.ok{align-items:flex-start;gap:.4rem;margin:0;display:flex}.error:before,.ok:before{content:"";width:1.15em;height:1.15em;-webkit-mask:var(--message-icon) center / contain no-repeat;-webkit-mask:var(--message-icon) center / contain no-repeat;mask:var(--message-icon) center / contain no-repeat;background-color:currentColor;flex:none;margin-top:.1em}.error{color:var(--danger);--message-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7v6.5M12 16.8v.2'/%3E%3C/svg%3E")}.ok{color:var(--ok);--message-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E")}textarea.note-input{resize:none;line-height:1.4;display:block}.note-input-wrap{flex-direction:column;align-items:flex-end;display:flex}button.note-input-toggle{padding:.25rem 0}.note-text{white-space:pre-line;overflow-wrap:anywhere}.note-text.clamped{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.expandable-note.clickable{cursor:pointer}button.note-toggle{padding:0}button.icon-button{color:var(--text);border:1px solid var(--border);background:0 0;justify-content:center;align-items:center;padding:.35rem;display:inline-flex}button.icon-button svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:1.2rem;height:1.2rem}.chart-overlay{z-index:100;background:var(--card);padding:calc(.75rem + env(safe-area-inset-top)) calc(1rem + env(safe-area-inset-right)) calc(.75rem + env(safe-area-inset-bottom)) calc(1rem + env(safe-area-inset-left));flex-direction:column;display:flex;position:fixed;inset:0}.chart-overlay-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.5rem;display:flex}.chart-overlay-header h2{margin:0}.chart-overlay-body{flex:1;min-height:0}.chart-overlay-body .weight-chart{flex-direction:column;height:100%;display:flex}.chart-overlay-body .chart-wrap{flex:1;height:auto;min-height:0}.dialog-backdrop{z-index:200;background:#00000073;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.dialog{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);width:100%;max-width:24rem;padding:1.25rem;box-shadow:0 12px 40px #00000040}.dialog p{color:var(--muted);margin:0 0 1.25rem}.dialog-actions{justify-content:flex-end;gap:.75rem;display:flex}.dialog-actions button.danger{background:var(--danger);color:var(--danger-text)}button,a{transition:background-color .12s,border-color .12s,box-shadow .12s,filter .12s}@media (hover:hover){button:not(.secondary,.link,.icon-button,.user-menu-button,.legend-item,.segmented button,.user-menu-dropdown button):not(:disabled):hover{filter:brightness(1.12);box-shadow:0 2px 8px #0000002e}button.secondary:not(:disabled):hover,button.icon-button:hover{background:var(--bg);border-color:var(--muted)}button.link:hover,.list a:hover,.day-heading:hover strong,.brand:hover{text-underline-offset:3px;text-decoration:underline}.tabbar a:not(.router-link-active):hover{color:var(--text);text-underline-offset:6px;text-decoration:underline;text-decoration-thickness:1px}button.legend-item:hover{border-color:var(--border);background:var(--bg);text-underline-offset:3px;text-decoration:underline}button.legend-item.is-hidden:hover{text-decoration:underline line-through}button.user-menu-button:hover,.segmented button:not(.active):hover{background:var(--bg);color:var(--text)}.expandable-note.clickable:hover .note-toggle{text-underline-offset:3px;text-decoration:underline}}input[type=date],input[type=time],input[type=color],select{cursor:pointer}input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer}input[type=time]::-webkit-calendar-picker-indicator{cursor:pointer}@media (hover:hover){input[type=date]:not(:disabled):hover,input[type=time]:not(:disabled):hover,input[type=color]:not(:disabled):hover,select:not(:disabled):hover{border-color:var(--muted);box-shadow:0 0 0 1px var(--muted)}}:where(button,a,input,select,textarea):focus-visible{outline:2px solid var(--primary);outline-offset:2px}.chart-legend{flex-wrap:wrap;justify-content:center;gap:.5rem;margin-bottom:.5rem;display:flex}button.legend-item{color:var(--text);background:0 0;border:1px solid #0000;align-items:center;gap:.45rem;padding:.25rem .6rem;font-weight:500;display:inline-flex}.legend-swatch{border-radius:2px;width:1.6rem;height:.3rem}button.legend-item.is-hidden{opacity:.55;text-decoration:line-through}.demo-banner{border:2px dashed var(--primary);border-radius:var(--radius);background:var(--card);text-align:center;margin:0 0 1rem;padding:.5rem .75rem;font-size:.9rem}.milestones{border-top:1px solid var(--border);flex-direction:column;gap:.4rem;margin:.4rem 0 0;padding-top:.5rem;font-size:.85rem;display:flex}.milestones dt{font-weight:600}.milestones dt .muted{font-weight:400}.milestones dd{margin:0}.chart-range{margin-bottom:.75rem}.chart-range-bar{align-items:stretch;gap:.5rem;display:flex}.chart-range-bar .segmented{flex:1}.chart-range-bar .segmented button{white-space:nowrap;flex:1;justify-content:center;align-items:center;padding:.35rem .25rem;display:inline-flex}.calendar-icon{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;width:1.1rem;height:1.1rem}.date-range{gap:.5rem;padding:.5rem 2px 2px;display:flex}.expand{grid-template-rows:1fr;display:grid}.expand-inner{min-height:0;overflow:hidden}.expand-enter-active,.expand-leave-active{transition:grid-template-rows .4s,opacity .4s}.expand-enter-from,.expand-leave-to{opacity:0;grid-template-rows:0fr}@media (prefers-reduced-motion:reduce){.expand-enter-active,.expand-leave-active{transition:none}}.date-range label{flex:1;min-width:0}.date-range input{width:100%}.chart-overlay-header .chart-range{flex:100%;margin-bottom:0}.legend-change{color:var(--muted);font-weight:400}
