:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;background:#f6f8f7;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--green: #16a34a;--green-dark: #15803d;--muted: #64748b;--line: #e2e8e0}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}a{color:inherit;text-decoration:none}.topbar-links{display:flex;align-items:center;gap:10px;min-width:0}.topbar-links>a,.switch-mode a,.minor-link{color:var(--green-dark);font-size:12px;font-weight:650}.page-shell{width:min(100% - 32px,920px);min-height:100vh;padding-bottom:92px;margin:0 auto;display:flex;flex-direction:column}.topbar{min-height:70px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-size:25px;font-weight:800;letter-spacing:-1.5px}.brand span,.status-mark span{color:var(--green)}.topbar-label{max-width:26vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-label,.eyebrow,.card-kicker{color:var(--muted);font-size:11px;font-weight:750;letter-spacing:.12em}.intro{max-width:660px;padding:74px 0 42px}.eyebrow{color:var(--green-dark)}h1{max-width:620px;margin:18px 0;font-size:clamp(36px,9vw,56px);line-height:1.02;letter-spacing:-.055em}.lede{max-width:550px;margin:0;color:#475569;font-size:16px;line-height:1.6}.status-card{display:grid;grid-template-columns:1fr;gap:16px;align-items:start;padding:24px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 12px 32px #0f172a0a}.status-mark{width:56px;height:56px;display:grid;place-items:center;border-radius:16px;background:#f0fdf4;font-size:27px;font-weight:800}.card-kicker{margin:3px 0 11px;color:var(--green-dark)}h2{margin:0 0 9px;font-size:21px;letter-spacing:-.025em}.card-copy{max-width:550px;margin:0;color:var(--muted);line-height:1.6}.page-footer{display:flex;justify-content:space-between;margin-top:auto;padding:28px 0;color:#94a3b8;font-size:12px}.auth-shell{width:min(100% - 32px,460px);min-height:100vh;margin:0 auto;display:flex;flex-direction:column}.auth-shell .topbar{margin-bottom:34px}.auth-card{padding:25px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 12px 32px #0f172a0a}.auth-card h1{margin:13px 0;font-size:clamp(34px,7vw,44px)}.auth-copy{margin:0 0 25px;color:var(--muted);line-height:1.55}.auth-card form{display:flex;flex-direction:column}.auth-card label{margin:16px 0 7px;font-size:13px;font-weight:650}.auth-card input{width:100%;min-height:46px;padding:0 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a;font:inherit}.auth-card input:focus{border-color:var(--green);outline:3px solid #dcfce7}.optional,.field-hint{color:var(--muted);font-size:12px;font-weight:400}.field-hint{margin:7px 0 0}.primary-button,.google-button{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:11px;border-radius:10px;font:inherit;font-size:14px;font-weight:700}.primary-button{margin-top:24px;border:0;background:var(--green);color:#fff;cursor:pointer}.primary-button:hover:not(:disabled){background:var(--green-dark)}.primary-button:disabled{cursor:wait;opacity:.55}.google-button{border:1px solid #cbd5e1;background:#fff}.google-button:hover{background:#f8fafc}.google-g{color:#4285f4;font-size:18px;font-weight:800}.divider{display:flex;align-items:center;gap:12px;margin:22px 0 7px;color:#94a3b8;font-size:12px}.divider:before,.divider:after{content:"";flex:1;height:1px;background:var(--line)}.status,.error{margin:17px 0 0;font-size:13px;line-height:1.5}.status{color:var(--green-dark)}.error{color:#b91c1c}.forgot-link{display:block;margin-top:17px;text-align:right}.minor-button{margin-top:12px;padding:0;border:0;background:none;color:var(--green-dark);cursor:pointer;font:inherit;font-size:13px;font-weight:650}.switch-mode{margin:25px 0 0;padding-top:22px;border-top:1px solid var(--line);color:var(--muted);font-size:13px;text-align:center}.auth-shell .page-footer{margin-top:auto}.quiet-button{padding:0;border:0;background:transparent;color:var(--green-dark);cursor:pointer;font:inherit;font-size:13px;font-weight:650}.landing-actions{display:flex;gap:12px;margin-top:30px}.primary-link,.secondary-link{min-height:46px;display:inline-flex;align-items:center;justify-content:center;padding:0 18px;border-radius:10px;font-size:14px;font-weight:700}.primary-link{background:var(--green);color:#fff}.primary-link:hover{background:var(--green-dark)}.secondary-link{border:1px solid #cbd5e1;background:#fff;color:#334155}.dashboard-head{display:flex;align-items:flex-start;flex-direction:column;justify-content:space-between;gap:16px;padding:42px 0 24px}.dashboard-head h1{margin:8px 0 6px;font-size:clamp(36px,8vw,48px)}.date-line{margin:0;color:var(--muted)}.add-meal-link{flex:none}.summary-grid{display:grid;grid-template-columns:1fr;gap:14px}.summary-card,.meal-card,.food-card{border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 5px 18px #0f172a08}.summary-card{padding:24px}.calories-card{display:flex;flex-direction:column;align-items:flex-start}.calorie-total{margin:7px 0 0;font-size:50px;line-height:1;letter-spacing:-.05em}.unit-label,.goal-note{margin-top:8px;color:var(--muted);font-size:13px}.goal-note{margin-bottom:0}.goal-note a{color:var(--green-dark);font-weight:700}.calorie-progress{width:100%;height:9px;overflow:hidden;margin-top:15px;border-radius:99px;background:#eaf1eb}.calorie-progress span{height:100%;display:block;border-radius:inherit;background:var(--green);transition:width .25s ease}.macro-stat{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #f1f5f9;color:var(--muted);font-size:14px}.macro-stat:last-child{border:0}.macro-stat strong{color:#0f172a}.macro-stat small{color:var(--muted);font-size:10px}.meal-list{display:grid;grid-template-columns:1fr;gap:14px;margin-top:18px}.meal-card{padding:20px}.meal-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:12px}.meal-heading h2{margin:0;font-size:17px}.meal-heading>span{color:var(--muted);font-size:12px}.empty-meal{margin:0;color:#94a3b8;font-size:13px}.entry-row{display:flex;justify-content:space-between;gap:10px;padding:10px 0 4px;border-top:1px solid #f1f5f9;color:#334155;font-size:12px}.entry-row span:last-child{color:var(--green-dark);font-weight:650}.entry-items{margin:0;padding:0;list-style:none;color:var(--muted);font-size:12px}.entry-items li{display:flex;justify-content:space-between;gap:8px;padding:5px 0}.draft-banner{display:flex;align-items:flex-start;flex-direction:column;justify-content:space-between;gap:12px;margin-bottom:16px;padding:16px 20px;border:1px solid #fcd34d;border-radius:14px;background:#fffbeb}.draft-banner p{margin:4px 0 0;color:#92400e;font-size:13px}.draft-link{color:#92400e;font-size:13px;font-weight:700}.estimate-disclaimer{margin:20px 0;color:var(--muted);font-size:12px;line-height:1.5}.banner{padding:12px 15px;border-radius:10px;background:#f0fdf4}.banner.error{background:#fef2f2}.capture-switch{margin:20px 0 0;color:var(--muted);font-size:13px}.capture-switch a{color:var(--green-dark);font-weight:700}.camera-open{width:100%;margin:20px 0 14px}.camera-surface{margin:20px 0 15px;padding:12px;border:1px solid var(--line);border-radius:16px;background:#fff}.camera-surface video{width:100%;max-height:min(62vh,560px);display:block;border-radius:10px;background:#0f172a;object-fit:contain}.camera-actions{display:flex;gap:10px;margin-top:10px}.camera-actions .primary-button{flex:1;width:auto;margin-top:0}.camera-actions .secondary-button{flex:none}.voice-recorder{display:flex;flex-direction:column;align-items:center;gap:9px;margin-top:24px;padding:30px 22px 23px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 5px 18px #0f172a08}.voice-microphone{width:82px;height:82px;display:grid;place-items:center;border-radius:50%;background:#dcfce7;color:var(--green-dark);font-size:34px}.voice-timer{margin-top:3px;font-size:36px;font-variant-numeric:tabular-nums;letter-spacing:-.04em}.voice-state{color:var(--muted);font-size:13px}.voice-recorder .primary-button{max-width:320px}.audio-or{display:flex;align-items:center;gap:12px;margin:25px 0 12px;color:var(--muted);font-size:12px}.audio-or:before,.audio-or:after{content:"";flex:1;height:1px;background:var(--line)}.audio-picker{width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#334155;cursor:pointer;font-size:13px;font-weight:650}.audio-picker:hover{background:#f8fafc}.audio-preview{width:100%;margin-top:18px}.capture-content>.minor-button{display:block;margin-left:auto}.range-actions{display:flex;gap:9px}.range-actions .secondary-button{min-height:42px}.history-layout{display:grid;grid-template-columns:1fr;align-items:start;gap:14px}.history-days,.history-detail{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 5px 18px #0f172a08}.history-days{display:flex;flex-direction:column}.history-day{display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:15px 17px;border:0;border-bottom:1px solid #f1f5f9;background:#fff;color:inherit;cursor:pointer;font:inherit;text-align:left}.history-day:last-child{border-bottom:0}.history-day:hover{background:#f8fafc}.history-day.selected{box-shadow:inset 3px 0 var(--green);background:#f0fdf4}.history-day-date{align-self:center;font-size:13px;font-weight:700}.history-day-total{color:#0f172a;font-size:17px;font-weight:750}.history-day-total small{color:var(--muted);font-size:10px;font-weight:600}.history-day-meta{grid-column:1 / -1;color:var(--muted);font-size:11px}.history-detail{padding:23px}.history-detail-heading{display:flex;justify-content:space-between;align-items:flex-start;flex-direction:column;gap:10px;padding-bottom:18px;border-bottom:1px solid var(--line)}.history-detail-heading .eyebrow{margin:0 0 7px;font-size:9px}.history-detail-heading h2{margin:0;font-size:20px}.history-detail-heading>strong{font-size:23px;white-space:nowrap}.history-detail-heading>strong span{color:var(--muted);font-size:11px;font-weight:500}.history-macros{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:16px 0;border-bottom:1px solid var(--line)}.history-macros>div{display:flex;flex-direction:column;gap:4px}.history-macros span{color:var(--muted);font-size:11px}.history-macros strong{font-size:14px}.history-entry-list{display:flex;flex-direction:column}.history-entry{display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:16px 0;border-bottom:1px solid #f1f5f9}.history-entry:last-child{border-bottom:0}.history-entry-heading{display:flex;align-items:baseline;gap:9px}.history-entry-heading strong{font-size:13px}.history-entry-heading span,.history-entry-calories{color:var(--muted);font-size:11px}.history-entry p{grid-column:1 / -1;margin:0;color:#475569;font-size:13px;line-height:1.45}.history-entry-calories{grid-column:1 / -1;color:var(--green-dark);font-weight:650}.history-empty,.history-draft-note{margin:18px 0 0;color:var(--muted);font-size:13px;line-height:1.5}.history-draft-note{color:#92400e}.history-goal-note{margin:14px 0 0;color:var(--green-dark);font-size:12px;font-weight:650}.metric-card{min-width:0;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 5px 18px #0f172a08}.metric-form{display:flex;flex-direction:column;gap:17px}.metric-section-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:10px}.metric-section-heading h2{margin:0;font-size:18px}.metric-section-heading p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.effective-date{color:var(--muted);font-size:11px;white-space:nowrap}.weight-goal-heading{padding-top:8px;border-top:1px solid var(--line)}.metric-form-grid{display:grid;grid-template-columns:1fr;gap:14px}.metric-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:#334155;font-size:13px;font-weight:650}.metric-field small{color:var(--muted);font-size:11px;font-weight:400}.metric-field input,.range-select select{width:100%;min-height:46px;padding:0 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a;font:inherit;font-size:14px}.metric-field input:focus,.range-select select:focus{border-color:var(--green);outline:3px solid #dcfce7}.metric-note,.metric-empty{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.metric-submit{width:100%;margin-top:0}.weight-entry-form,.chart-card,.weight-history-card{margin-top:16px}.compact-field{width:min(100%,280px)}.weight-form-row{display:grid;grid-template-columns:1fr;gap:14px}.weight-target{align-self:flex-start;padding:8px 11px;border-radius:999px;background:#f0fdf4;color:var(--green-dark);font-size:12px;font-weight:700}.weight-summary{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:18px}.weight-summary .card-kicker{margin:0 0 8px}.weight-summary strong{font-size:clamp(34px,10vw,48px);line-height:1;letter-spacing:-.05em}.weight-summary strong span{color:var(--muted);font-size:16px;font-weight:550;letter-spacing:0}.weight-summary p{margin:8px 0 0;color:var(--muted);font-size:12px}.weight-change{display:flex;flex-direction:column;gap:5px;color:#92400e}.weight-change strong{font-size:18px;letter-spacing:0}.weight-change span{font-size:11px}.weight-change.weight-down{color:var(--green-dark)}.trend-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.trend-stat{display:flex;flex-direction:column;gap:7px;padding:16px}.trend-stat strong{font-size:clamp(19px,6vw,27px);line-height:1.1;letter-spacing:-.035em}.trend-stat span{color:var(--muted);font-size:11px;line-height:1.35}.range-select{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.range-select select{width:auto;min-width:104px;min-height:42px}.trend-chart{display:block;width:100%;height:auto;overflow:visible;margin-top:18px}.chart-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0 0;color:var(--muted);font-size:11px}.legend-dot,.macro-energy-labels i{width:8px;height:8px;display:inline-block;border-radius:50%}.on-target-dot,.protein-dot{background:#16a34a}.off-target-dot,.carbs-dot{background:#f59e0b}.fat-dot{background:#ef4444}.macro-energy-strip{display:flex;width:100%;height:17px;overflow:hidden;margin:19px 0 12px;border-radius:6px;background:#f1f5f9}.macro-energy-strip span{min-width:0;height:100%}.protein-segment{background:#16a34a}.carbs-segment{background:#f59e0b}.fat-segment{background:#ef4444}.macro-energy-labels{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;color:#475569;font-size:11px}.macro-energy-labels i{margin-right:4px;vertical-align:-1px}.weight-history{margin:4px 0 0;padding:0;list-style:none}.weight-history li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #f1f5f9;font-size:13px}.weight-history li span{color:var(--muted)}.product-shell{width:min(100% - 32px,720px);min-height:100vh;margin:0 auto;display:flex;flex-direction:column}.capture-content,.review-content{padding:28px 0 48px}.back-link{display:inline-block;margin-bottom:30px;color:var(--green-dark);font-size:13px;font-weight:650}.capture-content h1,.review-content h1{margin:12px 0;font-size:clamp(34px,9vw,48px)}.meal-picker{display:flex;align-items:center;justify-content:space-between;gap:16px;width:min(100%,420px);margin:27px 0 16px;font-size:14px;font-weight:650}.meal-picker select,.portion-row select,.auth-card select{min-height:44px;padding:0 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a;font:inherit}.meal-picker select{min-width:190px}.photo-picker{min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;overflow:hidden;border:1px dashed #9bb7a4;border-radius:18px;background:#f0fdf4;cursor:pointer;text-align:center}.photo-picker img{width:100%;max-height:390px;object-fit:contain;background:#e2e8e0}.camera-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#dcfce7;color:var(--green-dark);font-size:29px}.picker-title{font-size:15px;font-weight:700}.picker-hint,.replace-photo,.privacy-note{color:var(--muted);font-size:12px}.replace-photo{padding:5px 0 15px;color:var(--green-dark);font-weight:650}.file-input{width:100%;margin:13px 0 0;color:var(--muted);font:inherit;font-size:13px}.capture-content>.primary-button{max-width:100%}.privacy-note{margin-top:24px;line-height:1.5}.spinner{width:15px;height:15px;border:2px solid rgb(255 255 255 / 45%);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.review-note{margin:22px 0;padding:14px 16px;border-left:3px solid #fbbf24;border-radius:0 10px 10px 0;background:#fffbeb;color:#78350f;font-size:13px;line-height:1.5}.food-card{margin:16px 0;padding:22px}.food-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.food-card-heading h2{margin:0}.confidence-flag{padding:5px 8px;border-radius:99px;background:#fef3c7;color:#92400e;font-size:11px;font-weight:700}.food-card label,.notes-label{display:block;margin:12px 0 6px;color:#334155;font-size:12px;font-weight:650}.food-card input,.food-card select,.review-content textarea{width:100%;min-height:42px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a;font:inherit;font-size:14px}.portion-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.portion-row>div:last-child{grid-column:1 / -1}.macro-edit-grid{display:grid;grid-template-columns:1fr;gap:3px}.remove-item{margin-top:14px}.notes-label{margin-top:22px}.review-content textarea{resize:vertical}.review-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:24px}.review-actions .primary-button{flex:1;min-width:100%;margin-top:0}.secondary-button{min-height:46px;padding:0 14px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#334155;cursor:pointer;font:inherit;font-size:13px;font-weight:650}.secondary-button:hover:not(:disabled){background:#f8fafc}.secondary-button:disabled{opacity:.55}.product-shell .page-footer{margin-top:auto}@media(min-width:700px){.topbar-links{gap:24px}.topbar-links>a,.switch-mode a,.minor-link{font-size:14px}.page-shell{width:min(100% - 40px,920px)}.page-shell{padding-bottom:0}.topbar{min-height:84px}.topbar-label{max-width:32vw;font-size:11px}.intro{padding:96px 0 56px}h1{font-size:clamp(42px,7vw,72px)}.lede{font-size:18px}.status-card{grid-template-columns:60px 1fr;gap:24px;padding:32px}.auth-shell{width:min(100% - 40px,460px)}.auth-shell .topbar{margin-bottom:54px}.auth-card{padding:34px}.dashboard-head{align-items:flex-end;flex-direction:row;gap:24px;padding:56px 0 30px}.dashboard-head h1{font-size:clamp(40px,6vw,56px)}.summary-grid{grid-template-columns:1.1fr 1fr;gap:16px}.meal-list{grid-template-columns:1fr 1fr}.draft-banner{align-items:center;flex-direction:row;gap:16px}.history-layout{grid-template-columns:minmax(220px,.8fr) minmax(0,1.4fr);gap:18px}.metric-card{padding:24px}.metric-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.weight-form-row{grid-template-columns:1fr 1fr}.trend-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.trend-stat{padding:19px}.chart-card{margin-top:18px}.history-detail-heading{align-items:center;flex-direction:row;gap:14px}.product-shell{width:min(100% - 40px,720px)}.capture-content,.review-content{padding:36px 0 54px}.capture-content h1,.review-content h1{font-size:clamp(38px,7vw,58px)}.portion-row{grid-template-columns:1fr 1fr 1fr}.portion-row>div:last-child{grid-column:auto}.macro-edit-grid{grid-template-columns:repeat(3,1fr);gap:12px}.review-actions{flex-wrap:nowrap}.review-actions .primary-button{min-width:0}}.source-chip{display:inline-flex;align-items:center;padding:4px 9px;border-radius:99px;background:#e9f4e6;color:#32663d;font-size:10px;font-weight:600;white-space:nowrap}.source-chip.manual{background:#edf0f3;color:#526171}.history-range{display:flex;gap:6px;flex-wrap:wrap}.history-range button{background:#fff;border:1px solid var(--line);border-radius:8px;padding:7px 10px;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}.history-range button.active{background:#edf7e9;color:#32663d;border-color:#afcaa5}.weight-source{display:flex;align-items:center;gap:12px}.weight-chart-key{display:flex;flex-wrap:wrap;gap:10px 20px;font-size:11px;color:var(--muted)}.weight-chart-key i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#15803d;margin-right:5px}.weight-chart-key i.manual{background:#475569}
