:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--surface:#fff;--canvas:#f0f3fa;--line:#cdd5e6;--ink:#171e36;--budget:#e3e9ff;--muted:#505b78;--accent:#253dce;--dial:#263dc4;--dial-accent:#e8f682;--lift:0 12px 30px -20px #18275e7a;font-family:system-ui,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--surface:#222a46;--canvas:#191f36;--line:#465374;--ink:#f1f4ff;--budget:#313d69;--muted:#c0c9e2;--accent:#b9c6ff;--lift:0 12px 30px -20px #000}}body{min-width:280px}a,button{-webkit-tap-highlight-color:transparent}a{color:inherit}button,select,summary{min-height:48px}#root>main.page-width,.page-width{max-width:680px;margin:0 auto}#root>main{padding-top:24px;padding-bottom:max(28px, env(safe-area-inset-bottom))}.site-header{border-bottom:1px solid var(--line);background:var(--surface)}.site-header nav{justify-content:space-between;align-items:center;min-height:68px;padding:0 16px;display:flex}.brand{letter-spacing:-.06em;align-items:center;gap:9px;min-height:48px;font-size:1.35rem;font-weight:820;text-decoration:none;display:inline-flex}.quiet-icon.MuiIconButton-root{width:48px;height:48px;color:var(--accent);border:1px solid var(--line);background:var(--surface);flex:none}.quiet-icon.MuiIconButton-root:hover{background:var(--budget)}.quiet-icon.Mui-focusVisible{outline:2px solid var(--accent);outline-offset:2px}.welcome{border:1px solid var(--line);background:var(--surface);min-height:48vh;box-shadow:var(--lift);border-radius:26px;align-content:center;gap:18px;padding:clamp(20px,6vw,40px);display:grid}.welcome>a{justify-self:start}.kicker{color:var(--accent);margin:0;font-size:.8rem;font-weight:720;line-height:1.4}.diary-screen,.meals{gap:14px;min-width:0;display:grid}.day-heading,.day-arrows,.meal-heading,.form-row{align-items:center;gap:12px;display:flex}.day-heading,.section-heading{justify-content:space-between}.day-heading{gap:4px;padding:0 0 2px}.day-date{gap:4px;min-width:0;display:grid}.date-label{letter-spacing:-.045em;font-size:clamp(1.16rem,5.4vw,1.9rem);font-weight:780;line-height:1.12}.day-arrows{flex:none;gap:4px}.day-arrows button{border:1px solid var(--line);background:var(--surface);min-width:44px;padding:0}.date-picker{border:1px solid var(--line);width:44px;height:48px;color:var(--accent);background:var(--surface);border-radius:12px;place-items:center;display:grid;position:relative}.date-picker input{opacity:0;cursor:pointer;height:100%;position:absolute;inset:0}.date-picker input::-webkit-calendar-picker-indicator{cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.date-picker:focus-within{outline:2px solid var(--accent);outline-offset:2px}label>input,label>select{box-sizing:border-box;width:100%;min-width:0;min-height:48px;font:inherit;color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:6px 10px;display:block}.form-row>label{flex:1;min-width:0}.budget-panel,.meal-panel{border:1px solid var(--line);border-radius:18px;padding:16px}.budget-panel{background:var(--dial);color:#fff;border:0;border-radius:24px;padding:clamp(16px,5vw,30px)}.budget-face{grid-template-columns:minmax(0,1fr) min(35%,146px);align-items:center;gap:10px;display:grid}.budget-caption,.budget-intake,.budget-source{color:#e2e8ff;font-size:.875rem}.budget-unit{font-size:.94rem;font-weight:650}.budget-panel h1{font-variant-numeric:lining-nums tabular-nums;overflow-wrap:anywhere;margin-top:8px}.budget-panel p{margin:0}.budget-panel .budget-intake{margin-top:14px}.budget-panel details{border-top:1px solid #ffffff45;margin-top:13px}.budget-meter{font-variant-numeric:tabular-nums;place-items:center;display:grid;position:relative}.budget-meter svg{width:100%;height:auto}.budget-meter circle{fill:none}.dial-marks{stroke:#ffffff70;stroke-width:2px;stroke-dasharray:.25 2.25}.dial-track{stroke:#ffffff40;stroke-width:6px}.dial-fill{stroke:var(--dial-accent);stroke-width:6px}.budget-meter div{justify-items:center;line-height:1.15;display:grid;position:absolute}.budget-meter strong{letter-spacing:-.04em;font-size:clamp(.85rem,4vw,1.4rem)}.budget-meter span{color:#e2e8ff;font-size:.72rem}.budget-panel summary,.health-disclosure summary{min-height:44px;font-weight:650}.budget-panel .muted{margin-top:0;font-size:.83rem}.health-disclosure{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:0 13px}.section-heading{align-items:flex-end;gap:8px;padding:5px 2px 0;display:flex}.section-heading h2{letter-spacing:-.045em;margin:1px 0 0;font-size:1.55rem;font-weight:780}.section-heading>span{color:var(--muted);font-size:.84rem}.meals{gap:0}.meals .section-heading{padding-bottom:10px}.meal-panel{border:0;border-radius:0;padding:8px 2px;position:relative}.meal-panel:not(:last-child):before{content:"";background:var(--line);z-index:-1;width:1px;position:absolute;inset:34px auto -21px 22px}.meals{isolation:isolate}.meal-heading{gap:10px}.meal-title{flex:1;min-width:0}.meal-title h3{margin:0;font-size:1.05rem}.meal-title span{font-size:.81rem}.meal-icon{background:var(--budget);width:42px;height:42px;color:var(--accent);border-radius:13px;flex:none;place-items:center;display:grid}.meal-breakfast .meal-icon{color:#68450c;background:#fff0ca}.meal-dinner .meal-icon{color:#603e83;background:#eee3ff}.meal-snacks .meal-icon{color:#285b38;background:#dceee0}.meal-heading .meal-add,.meal-drag-handle{min-width:44px}.meal-heading .meal-add{background:var(--canvas)}.empty-meal{margin:8px 0 0 52px;font-size:.86rem}.muted{color:var(--muted)}.entry-list{margin:4px 0 0 52px;padding:0;list-style:none}.entry-list li{border-top:1px solid var(--line);align-items:center;gap:3px;display:flex}.entry-list a{flex:1;justify-content:space-between;align-items:center;gap:8px;min-width:0;min-height:48px;padding:6px 0;text-decoration:none;display:flex}.entry-list a:hover span:first-child{text-decoration:underline}.entry-list a span:first-child{overflow-wrap:anywhere}.entry-list a strong{flex:none;font-size:.85rem}.entry-list .meal-drag-handle{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:grab}.entry-list li.entry-dragging{opacity:.35}.meal-drop-tray{z-index:1350;max-width:680px;padding:12px 12px max(12px, env(safe-area-inset-bottom));border:1px solid var(--line);color:var(--ink);background:var(--surface);box-shadow:var(--lift);border-radius:18px 18px 0 0;margin:0 auto;position:fixed;inset:auto 0 0}.meal-drop-tray>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px;display:grid}.meal-drop-tray span{border:1px dashed var(--line);text-align:center;border-radius:10px;padding:10px}.meal-drop-tray span.is-over{background:var(--budget);border-color:var(--accent)}.meal-drag-preview{pointer-events:none;background:var(--budget);color:var(--ink);box-shadow:var(--lift);overflow-wrap:anywhere;border-radius:10px;padding:8px}.meal-drag-overlay{pointer-events:none}.move-options.MuiDialogContent-root{gap:8px;display:grid}.log-modes{border:1px solid var(--line);background:var(--surface);box-shadow:var(--lift);border-radius:18px;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:6px;display:grid}.log-modes-dock{bottom:max(8px, env(safe-area-inset-bottom));z-index:2;position:sticky}.log-modes-inline{box-shadow:none}.log-modes button{background:var(--canvas);min-width:0;min-height:54px;color:var(--ink);cursor:pointer;border:0;border-radius:12px;align-content:center;justify-items:center;gap:3px;padding:4px 0;font:700 .76rem/1.15 system-ui;display:grid}.log-modes button[aria-current=page]{background:var(--accent);color:var(--surface)}.log-modes-dock button{color:var(--accent);background:var(--budget)}.log-modes button:hover,.log-modes button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.log-modes button[aria-current=page]:focus-visible{outline-color:var(--surface);outline-offset:-4px}.calculation{grid-template-columns:1fr auto;gap:8px;display:grid}.calculation dt{min-width:0}.calculation dd{margin:0}.sticky-actions{padding:8px 0 max(8px, env(safe-area-inset-bottom));position:sticky;bottom:0}.sticky-actions button{box-shadow:0 4px 16px #0004}.profile-form .MuiInputBase-root,.editor-form .MuiInputBase-root{min-height:48px}.screen-heading{gap:4px;display:grid}.editor-heading{align-items:center;gap:12px;display:flex}.editor-form{box-shadow:none}.editor-form .form-row label,.editor-field>label{font-size:.875rem;font-weight:650}.editor-form .form-row label>input,.editor-form .form-row label>select{margin-top:4px;font-size:1rem;font-weight:400}.editor-form .MuiOutlinedInput-root,.editor-form label>input,.editor-form label>select{border-radius:12px}.editor-food-fields{grid-template-columns:minmax(0,1fr) 6rem;align-items:start;gap:12px;display:grid}.editor-field{gap:4px;min-width:0;display:grid}.editor-food-fields .MuiOutlinedInput-root:not(.Mui-focused):not(:hover) .MuiOutlinedInput-notchedOutline{border-color:var(--line)}.editor-calories{width:6rem;max-width:100%}.editor-calories input{appearance:textfield;text-align:right;font-variant-numeric:tabular-nums}.editor-calories input::-webkit-inner-spin-button{appearance:none;margin:0}.editor-calories input::-webkit-outer-spin-button{appearance:none;margin:0}.batch-food{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:4px;display:grid}.batch-total{text-align:right;font-weight:700}.editor-screen .editor-delete{align-self:flex-start}@media (width<=359px){.editor-food-fields{grid-template-columns:minmax(0,1fr)}}.profile-form,.editor-form{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:clamp(12px,4vw,22px)}.editor-form .editor-draft-label{font-size:1rem;font-weight:700}.editor-form .sticky-actions button{box-shadow:none}.helper{border:1px solid var(--line);border-radius:12px;padding:0 12px}.helper p{margin:0 0 12px}.helper button{margin:8px 0}.helper-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;display:grid}.helper-fields label{min-width:0}.helper-height{border:0;grid-column:1/-1;min-width:0;margin:0;padding:0}.helper-height legend{padding:0;font-weight:600}.goal-preview{background:var(--budget);border-radius:12px;padding:10px 14px}.goal-preview p{margin:0}summary{cursor:pointer;padding:12px 0}.estimate-panel{border:1px solid var(--line);background:var(--canvas);border-radius:15px;padding:12px}.photo-picker:focus-within{outline:2px solid var(--accent);outline-offset:2px}.tool-row{flex-wrap:wrap;gap:8px;display:flex}.media-preview img{border-radius:8px;max-width:100%;max-height:180px;display:block}.media-preview audio{max-width:100%}.search-suggestions{border:0;width:100%;height:95px}.sr-only{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}
