:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#21352f;background:#f4f1ea;font-synthesis:none;--green: #173f35;--green-2: #25594b;--cream: #f7f5ef;--orange: #eead54;--sage: #88a77b;--muted: #6f7e78;--line: #dedfd7;--white: #fffefa}*{box-sizing:border-box}html{background:var(--green)}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 80% 0,#e7eee4 0,transparent 28rem),var(--cream)}button,input{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible{outline:3px solid #e6a246;outline-offset:2px}h1,h2,h3,p{margin:0}h1,h2{font-family:Georgia,Times New Roman,serif;letter-spacing:-.025em}ul{margin:0;padding:0;list-style:none}.app-shell{max-width:920px;min-height:100vh;min-height:100dvh;margin:0 auto;padding:env(safe-area-inset-top) 20px calc(100px + env(safe-area-inset-bottom))}.topbar{height:98px;display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:var(--green);color:#f5bd6e;font:600 25px/1 Georgia,serif;box-shadow:0 8px 20px #173f3525}.topbar h1{font-size:30px;line-height:1}.eyebrow{display:block;color:#6e7d76;font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;margin-bottom:3px}.eyebrow.light{color:#c0d0c9}.privacy-pill{margin-left:auto;display:flex;align-items:center;gap:7px;border:1px solid #dfe3dc;background:#ffffffa6;border-radius:99px;padding:7px 11px;color:var(--muted);font-size:11px}.privacy-pill span,.status-dot{width:7px;height:7px;border-radius:50%;background:#6ba464;box-shadow:0 0 0 3px #6ba4641e}.date-row{min-height:42px;display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:13px;text-transform:capitalize}.date-row>div{display:flex;align-items:center;gap:9px;font-weight:600;color:#354a43}.summary-card{position:relative;overflow:hidden;display:grid;grid-template-columns:112px 1fr;gap:20px;min-height:202px;padding:28px;color:#fff;background:linear-gradient(145deg,#1e5144,#13372f);border-radius:28px;box-shadow:0 16px 38px #173f3522}.summary-card:after{content:"";position:absolute;right:-60px;top:-70px;width:210px;height:210px;border-radius:50%;border:1px solid #ffffff10;box-shadow:0 0 0 30px #ffffff05,0 0 0 60px #ffffff04}.energy-ring{--progress: 0%;align-self:start;width:112px;height:112px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--orange) var(--progress),#ffffff1a 0)}.energy-ring:before{content:"";grid-area:1 / 1;width:91px;height:91px;border-radius:50%;background:#1b493e}.energy-ring>div{position:relative;grid-area:1 / 1;text-align:center}.energy-ring strong{display:block;font:600 27px/1 Georgia,serif}.energy-ring span{font-size:11px;color:#c6d5cf}.summary-copy{align-self:center;position:relative;z-index:1}.summary-copy h2{font-size:25px}.summary-copy p{margin-top:5px;color:#c6d5cf;font-size:12px}.macro-strip{grid-column:1 / -1;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #ffffff1c;padding-top:18px;position:relative;z-index:1}.macro-strip div{min-width:0;padding:0 13px;border-right:1px solid #ffffff17}.macro-strip div:first-child{padding-left:0}.macro-strip div:last-child{border:0}.macro-strip span{display:block;color:#b8cac3;font-size:10px;overflow:hidden;text-overflow:ellipsis}.macro-strip strong{display:block;margin-top:3px;font-size:14px}.macro-strip small{color:#f0c786;font-size:9px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;margin:31px 2px 13px}.section-heading h2{font-size:25px}.dev-badge{padding:5px 8px;color:#805827;background:#f6e7cb;border-radius:6px;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}.meal-list{display:grid;gap:13px}.source-attribution{margin:15px 3px 0;color:var(--muted);font-size:9px;line-height:1.5}.meal-card{overflow:hidden;background:#fffefa;border:1px solid #e7e4dc;border-radius:19px;box-shadow:0 5px 20px #253a3210}.meal-card>header{min-height:74px;display:flex;align-items:center;padding:12px 14px 12px 17px;gap:13px}.meal-card h3{font-size:14px;font-weight:700}.meal-card header span{color:var(--muted);font-size:11px}.meal-symbol{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:13px;font-size:20px}.meal-symbol.sun{color:#986826;background:#fae7c8}.meal-symbol.leaf{color:#477144;background:#e1ecdc}.meal-symbol.moon{color:#526878;background:#e3eaf0}.meal-symbol.fruit{color:#87545a;background:#f1dfe1}.add-button,.icon-button{display:grid;place-items:center;width:44px;height:44px;margin-left:auto;border:0;border-radius:50%;background:#edf1eb;color:var(--green);cursor:pointer}.add-button .icon{width:19px}.empty-meal{width:100%;min-height:44px;display:flex;justify-content:space-between;align-items:center;padding:0 17px;border:0;border-top:1px solid #eeece5;background:#fbfaf6;color:#93a09b;font-size:11px;cursor:pointer}.empty-meal span{color:var(--green-2);font-weight:700}.food-row{width:100%;min-height:66px;display:flex;align-items:center;gap:11px;padding:9px 15px;border:0;border-top:1px solid #eeece5;background:#fff;text-align:left;cursor:pointer}.food-avatar{display:grid;place-items:center;flex:0 0 37px;height:37px;border-radius:12px;background:#edf0e8;color:var(--green);font:600 17px Georgia,serif;text-transform:uppercase}.food-copy{min-width:0;flex:1}.food-copy strong,.food-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.food-copy strong{font-size:12px}.food-copy small{margin-top:3px;color:var(--muted);font-size:10px}.food-energy{text-align:right;font-size:12px;font-weight:700}.food-energy small{display:block;color:var(--muted);font-size:9px;font-weight:400}.food-row>.icon{width:18px;color:#9aa49f}.bottom-nav{position:fixed;z-index:20;bottom:14px;left:50%;transform:translate(-50%);width:min(calc(100% - 28px),610px);height:68px;padding:6px;display:grid;grid-template-columns:repeat(5,1fr);background:#fffffff2;border:1px solid #dfdfd8;border-radius:23px;box-shadow:0 15px 40px #173f3530;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.bottom-nav button{min-width:0;padding-inline:2px;border:0;border-radius:17px;background:transparent;color:#84908b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:9px;cursor:pointer}.bottom-nav button.active{color:var(--green);background:#edf1eb;font-weight:700}.bottom-nav .icon{width:20px;height:20px}.icon{width:24px;height:24px;flex:none}.page-stack{display:grid;gap:14px;padding-top:6px}.intro-card{padding:27px;background:#e6ede4;border-radius:24px}.intro-card.warm{background:#f3e7d3}.intro-card.dark{background:var(--green);color:#fff}.intro-card h2{font-size:27px}.intro-card p{max-width:600px;margin-top:7px;color:#667770;font-size:12px;line-height:1.6}.intro-card.dark p{color:#bed0c9}.report-card,.goals-card,.data-card{padding:21px;border:1px solid #e5e3dc;background:#fffefa;border-radius:19px;box-shadow:0 5px 18px #253a320b}.report-card h3,.goals-card h3,.data-card h3{margin-bottom:16px;font-size:13px;text-transform:uppercase;letter-spacing:.07em}.nutrient-row{display:grid;grid-template-columns:1fr auto;gap:8px 15px;padding:13px 0;border-top:1px solid #efede6}.nutrient-row:first-child{border-top:0}.nutrient-label strong{display:block;font-size:12px}.partial{display:block;margin-top:3px;color:#a76c2e;font-size:9px}.nutrient-value{text-align:right}.nutrient-value strong{display:block;font-size:13px}.nutrient-value strong small{font-weight:500;color:var(--muted)}.nutrient-value span{font-size:9px;color:var(--muted)}.progress{grid-column:1 / -1;height:5px;overflow:hidden;border-radius:99px;background:#edf0eb}.progress span{display:block;height:100%;background:linear-gradient(90deg,#7b9d72,#e2ad5b);border-radius:inherit}.progress.met span{background:#6f9a68}.progress.over span{background:#b85f55}.goal-field{min-height:59px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #efede6;font-size:12px}.goal-field:nth-child(2){border-top:0}.goal-field>div{display:flex;align-items:center;overflow:hidden;border:1px solid #dfe1da;background:#f8f7f2;border-radius:10px}.goal-field>span small{display:block;margin-top:3px;color:var(--muted);font-size:9px;font-weight:400}.goal-field input{width:88px;height:40px;border:0;padding:0 9px;background:transparent;text-align:right;color:var(--green);font-weight:700}.goal-field div span{min-width:38px;padding-right:9px;color:var(--muted);font-size:10px}.data-card p{margin:-7px 0 17px;color:var(--muted);font-size:12px;line-height:1.55}.data-actions{display:flex;gap:9px}.primary,.secondary{min-height:46px;padding:0 17px;border-radius:12px;cursor:pointer;font-weight:700;font-size:12px}.primary{border:1px solid var(--green);background:var(--green);color:#fff}.secondary{border:1px solid #ccd3ce;background:#fff;color:var(--green)}.full{width:100%}.data-card.compact{display:grid;grid-template-columns:1fr auto;gap:13px;font-size:11px}.data-card.compact span{color:var(--muted)}.data-card.compact strong{color:var(--green)}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.water-card{margin-top:14px;padding:19px;border:1px solid #dce4e5;border-radius:20px;background:linear-gradient(145deg,#eef7f8,#f9fcfb);box-shadow:0 5px 18px #253a320b}.water-heading{display:flex;align-items:center;gap:13px}.water-icon{width:46px;height:46px;display:grid;place-items:center;flex:none;border-radius:14px;background:#dceff1;color:#2f7180}.water-icon .icon{width:24px}.water-heading h2{font-size:24px}.water-heading p{margin-top:3px;color:var(--muted);font-size:10px}.water-progress{height:7px;margin:15px 0 12px;overflow:hidden;border-radius:99px;background:#dce9e9}.water-progress span{display:block;height:100%;border-radius:inherit;background:#5b9ca9}.water-actions{display:grid;grid-template-columns:auto auto minmax(100px,1fr) auto;gap:8px}.water-actions>button,.water-actions label{min-height:42px;border:1px solid #c9dcde;border-radius:11px;background:#fff}.water-actions>button{padding:0 12px;color:#2a6571;font-size:11px;font-weight:700;cursor:pointer}.water-actions label{min-width:0;display:flex;align-items:center;overflow:hidden}.water-actions input{min-width:0;width:100%;height:40px;border:0;padding:0 8px;background:transparent;text-align:right;color:var(--green);font-weight:700}.water-actions label small{padding-right:8px;color:var(--muted);font-size:10px}.water-actions .water-set{background:#2f7180;border-color:#2f7180;color:#fff}.water-actions .water-set:disabled{opacity:.45;cursor:not-allowed}.report-card.advanced{background:#fbfaf5}.history-card{overflow:hidden;border:1px solid #e5e3dc;background:#fffefa;border-radius:19px;box-shadow:0 5px 18px #253a320b}.history-row{min-height:72px;display:grid;grid-template-columns:minmax(95px,1fr) minmax(105px,1fr) auto;align-items:center;gap:12px;padding:12px 17px;border-top:1px solid #efede6}.history-row:first-child{border-top:0}.history-row.empty{opacity:.55}.history-date strong,.history-date span,.history-metrics span,.history-score strong,.history-score span{display:block}.history-date strong{font-size:12px;text-transform:capitalize}.history-date span,.history-metrics span,.history-score span{margin-top:3px;color:var(--muted);font-size:9px}.history-metrics{display:flex;gap:12px}.history-metrics span{margin:0;white-space:nowrap}.history-score{min-width:60px;text-align:right}.history-score strong{color:var(--green);font-size:15px}.modal-backdrop{position:fixed;z-index:50;inset:0;display:flex;align-items:flex-end;justify-content:center;padding-top:30px;background:#0c221d80;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal-sheet{width:min(100%,620px);max-height:min(91vh,850px);max-height:min(91dvh,850px);overflow-y:auto;overscroll-behavior:contain;background:var(--cream);border-radius:28px 28px 0 0;box-shadow:0 -20px 70px #0b292044;padding:0 20px calc(24px + env(safe-area-inset-bottom))}.modal-handle{position:sticky;z-index:2;top:0;width:38px;height:4px;margin:9px auto 4px;border-radius:10px;background:#c5cbc6}.modal-header{min-height:75px;display:flex;align-items:center;gap:12px}.modal-header .icon-button{margin:0;background:#fff;border:1px solid #e5e4dd}.modal-header .icon{width:20px}.modal-header h2{font-size:23px}.header-spacer{width:44px;margin-left:auto}.search-field{height:51px;display:flex;align-items:center;gap:10px;padding:0 14px;background:#fff;border:1px solid #dedfd8;border-radius:14px}.search-field .icon{width:19px;color:#6d7d76}.search-field input{width:100%;height:100%;border:0;outline:0;background:transparent;font-size:14px}.search-field:focus-within{outline:3px solid #e6a246}.catalog-note{display:flex;align-items:center;gap:9px;margin:16px 2px 8px}.catalog-note p{color:var(--muted);font-size:10px}.food-results{overflow:hidden;background:#fff;border:1px solid #e5e3dc;border-radius:16px}.food-results button{width:100%;min-height:66px;display:flex;align-items:center;gap:11px;padding:9px 12px;border:0;border-top:1px solid #eeece5;background:#fff;text-align:left;cursor:pointer}.food-results button:first-child{border:0}.food-results button>span:nth-child(2){flex:1}.food-results strong,.food-results small{display:block}.food-results strong{font-size:12px}.food-results small{margin-top:3px;color:var(--muted);font-size:9px}.chevron{color:#93a09b;font-size:22px}.no-results{padding:35px 15px;color:var(--muted);text-align:center;font-size:12px}.quantity-panel{display:grid;gap:17px}.selected-food{display:flex;align-items:center;gap:13px;padding:17px;background:#fff;border:1px solid #e4e3dc;border-radius:17px}.food-avatar.large{flex-basis:50px;height:50px;font-size:21px}.selected-food h3{font-size:14px}.selected-food p{margin-top:4px;color:var(--muted);font-size:10px}.incomplete-note{padding:11px 13px;border-radius:10px;background:#f7e8ce;color:#805827;font-size:10px}.quantity-field>span{display:block;margin:0 0 7px 2px;color:#53665e;font-size:11px;font-weight:700}.quantity-field>div{height:63px;display:flex;align-items:center;overflow:hidden;border:2px solid #cbd4ce;border-radius:15px;background:#fff}.quantity-field input{min-width:0;flex:1;height:100%;border:0;outline:0;padding:0 16px;font:600 24px Georgia,serif;background:transparent}.quantity-field strong{padding:0 17px;color:var(--muted);font-size:14px}.quantity-preview{display:grid;grid-template-columns:repeat(3,1fr);padding:14px 0;border-block:1px solid #dddeda}.quantity-preview div{text-align:center;border-right:1px solid #dddeda}.quantity-preview div:last-child{border:0}.quantity-preview span,.quantity-preview strong{display:block}.quantity-preview span{color:var(--muted);font-size:9px}.quantity-preview strong{margin-top:3px;font-size:11px}.save-button{min-height:52px}.primary:disabled{opacity:.45;cursor:not-allowed}.delete-button{min-height:44px;border:0;border-radius:10px;background:transparent;color:#a4423d;font-size:11px;font-weight:700;cursor:pointer}.delete-button.confirming{background:#a4423d;color:#fff}.toast{position:fixed;z-index:100;left:50%;bottom:calc(94px + env(safe-area-inset-bottom));transform:translate(-50%);width:max-content;max-width:calc(100% - 32px);padding:11px 16px;border-radius:12px;background:#132f28;color:#fff;box-shadow:0 12px 32px #0f2d2560;font-size:11px}@media(min-width:700px){.app-shell{padding-inline:32px}.meal-list{grid-template-columns:1fr 1fr}.summary-card{grid-template-columns:130px 1fr 1.3fr;align-items:center;min-height:175px}.macro-strip{grid-column:3;border-top:0;padding-top:0}.report-card,.goals-card{padding-inline:28px}}@media(max-width:480px){.app-shell{padding-inline:14px}.privacy-pill{padding:0;border:0;background:none;font-size:0}.privacy-pill span{width:9px;height:9px}.summary-card{padding:22px 19px;grid-template-columns:94px 1fr;gap:15px;border-radius:23px}.energy-ring{width:94px;height:94px}.energy-ring:before{width:76px;height:76px}.energy-ring strong{font-size:23px}.summary-copy h2{font-size:21px}.summary-copy p{font-size:10px}.macro-strip div{padding-inline:7px}.macro-strip strong{font-size:12px}.dev-badge{max-width:120px;text-align:center}.data-actions{flex-direction:column}.water-actions{grid-template-columns:1fr 1fr}.water-actions label{grid-column:1}.water-actions .water-set{grid-column:2}.bottom-nav button{font-size:8px}.bottom-nav .icon{width:18px;height:18px}.history-row{grid-template-columns:1fr auto}.history-metrics{grid-column:1}.history-score{grid-column:2;grid-row:1 / 3}}@media(prefers-reduced-motion:no-preference){.modal-sheet{animation:rise .25s ease-out}.toast{animation:toast-in .2s ease-out}@keyframes rise{0%{transform:translateY(30px);opacity:.5}}@keyframes toast-in{0%{transform:translate(-50%,10px);opacity:0}}}
