:root{--bg:#f7f7f0;--surface:#fff;--text:#243e34;--text-muted:#657369;--border:#dde2d7;--accent:#244b3e;--accent-fg:#fff;--primary-action:var(--accent);--primary-action-fg:var(--accent-fg);--radius:20px;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--soft:#eef1e7;--green-light:#d4e2bb;--protein:#c8dca8;--carbs:#e5b99b;--fat:#f1d879;--error:#a5372d;--shadow:0 5px 28px #243e3406}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}a{color:inherit}button,a,summary{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--carbs);outline-offset:4px}input,select{width:100%;min-width:0;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:10px;min-height:50px;padding:12px 14px;font-size:16px}input:hover,select:hover{border-color:var(--text-muted)}input:focus,select:focus{border-color:var(--accent)}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:500}h1,h2{font-family:Georgia,"Times New Roman",serif}h1{font-size:clamp(45px,5vw,68px);letter-spacing:-2.8px;line-height:1.08}h1 em{font-weight:400}h2{font-size:27px;letter-spacing:-.6px;line-height:1.2}h3{font-size:16px;font-weight:650}fieldset{margin:0;padding:0;border:0;min-width:0}legend{padding:0}svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:absolute;top:-80px;left:20px;z-index:10;padding:12px;background:var(--accent);color:var(--surface)}.skip-link:focus{top:10px}.site-header{max-width:1160px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:27px 0;border-bottom:1px solid var(--border)}.brand{display:inline-flex;align-items:center;gap:10px;font-size:24px;letter-spacing:-1px;font-weight:700;text-decoration:none}.brand-light{font-weight:400}.brand-dot{color:var(--text-muted)}nav{display:flex;gap:6px}.nav-link{font-size:14px;text-decoration:none;padding:10px 20px;border-radius:24px;color:var(--text-muted)}.nav-link.active{background:var(--soft);color:var(--accent);font-weight:650}main{max-width:1060px;margin:auto}.hero{text-align:center;padding:53px 0 39px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:21px}.small-line{width:22px;height:1px;background:var(--text)}.hero h1{margin-bottom:18px}.hero p{font-size:16px;color:var(--text-muted);line-height:1.65}.mobile-break{display:none}.calculator-layout{display:grid;grid-template-columns:1.05fr 1fr;align-items:start;gap:25px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:30px;box-shadow:var(--shadow)}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.section-number{font-size:10px;letter-spacing:1.6px;font-weight:700;display:block}.panel-heading h2{margin-top:9px}.sun-icon{font-size:44px;font-family:Georgia,serif;font-weight:400;line-height:1;color:var(--text-muted)}.unit-fieldset{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.unit-fieldset legend{float:left;font-size:13px;font-weight:600;padding:10px 0}.segmented{display:flex;background:var(--soft);padding:4px;border-radius:10px;gap:3px}.segmented label{position:relative;cursor:pointer}.segmented input,.goal-options input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.segmented span{display:block;padding:7px 11px;border-radius:7px;font-size:12px;font-weight:600}.segmented small{font-weight:400;font-size:11px;color:var(--text-muted);margin-left:3px}.segmented input:checked+span{background:var(--surface);box-shadow:0 1px 3px #243e3412}.segmented input:focus-visible+span,.goal-options input:focus-visible+span{outline:3px solid var(--carbs);outline-offset:2px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;min-width:0}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-bottom:19px}.input-unit{position:relative;width:100%}.input-unit input{padding-right:53px}.input-unit>span{position:absolute;right:14px;top:15px;font-size:13px;color:var(--text-muted);pointer-events:none;font-weight:400}.height-us{display:grid;grid-template-columns:1fr 1fr;gap:6px}.height-us input{padding-left:10px;padding-right:26px}.height-us .input-unit>span{right:8px;font-size:12px}select{padding-right:30px;font-size:14px;text-overflow:ellipsis}.activity-field{margin-top:1px;margin-bottom:21px}.activity-field select{font-size:13px}.goal-fieldset legend{font-size:12px;font-weight:600;margin-bottom:9px}.goal-options{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.goal-options label{cursor:pointer;position:relative}.goal-options span{border:1px solid var(--border);border-radius:10px;min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:11px;font-weight:500;white-space:nowrap}.goal-options svg{height:20px;width:20px}.goal-options input:checked+span{background:var(--soft);border-color:var(--accent);font-weight:650}.primary-button{display:flex;align-items:center;justify-content:space-between;width:100%;border:1px solid var(--primary-action);background:var(--primary-action);color:var(--primary-action-fg);border-radius:11px;min-height:53px;padding:13px 18px;font-size:14px;font-weight:600;text-decoration:none;transition:background .15s}.primary-button:hover{background:var(--text)}.primary-button>span{font-size:22px;line-height:1;font-weight:400}.calculate-button{margin-top:25px}.form-footnote{text-align:center;color:var(--text-muted);font-size:10px;margin-top:13px}.results-panel{background:var(--accent);color:var(--accent-fg);border-radius:var(--radius);padding:30px}.results-panel:focus{outline:none}.results-panel:focus-visible{outline:3px solid var(--carbs);outline-offset:4px}.result-topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;color:var(--green-light)}.result-topline svg{height:30px;width:30px;stroke-width:1.2}.results-panel h2{font-size:29px}.result-context{color:var(--green-light);font-size:11px;margin-top:8px}.calorie-total{margin-top:24px;margin-bottom:26px}.calorie-total>span:first-child{display:block;font-size:75px;line-height:1.1;letter-spacing:-3px;font-weight:400;font-variant-numeric:tabular-nums}.calorie-unit{display:block;color:var(--green-light);font-size:12px;margin-top:4px}.macro-bar{height:9px;display:flex;gap:4px;border-radius:10px;overflow:hidden;margin-bottom:25px}.macro-bar span:first-child{background:var(--protein);width:20%}.macro-bar span:nth-child(2){background:var(--carbs);width:55%}.macro-bar span:last-child{background:var(--fat);width:25%}.macro-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:28px}.macro-label{display:flex;align-items:center;gap:6px;font-size:12px}.dot{width:6px;height:6px;border-radius:50%;display:inline-block}.protein-dot{background:var(--protein)}.carbs-dot{background:var(--carbs)}.fat-dot{background:var(--fat)}.macro-grid strong{display:block;font-size:36px;font-weight:400;letter-spacing:-1px;line-height:1.3;margin-top:8px;font-variant-numeric:tabular-nums}.macro-grid small{font-size:17px;letter-spacing:0;margin-left:3px;color:var(--green-light)}.macro-description{font-size:10px;color:var(--green-light);white-space:nowrap}.result-footer{padding-top:19px;border-top:1px solid #ffffff24;font-size:10px;color:var(--green-light)}.result-footer a{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--accent-fg);font-weight:600;min-height:28px;text-decoration:none}.result-footer a span{font-size:22px}.tip-card{display:flex;gap:15px;padding:22px 10px 22px 6px}.tip-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;border-radius:50%;background:var(--soft)}.tip-icon svg{width:26px;height:26px}.tip-card h3{font-size:14px;margin-bottom:6px}.tip-card p{font-size:12px;line-height:1.8;color:var(--text-muted);max-width:350px}.method{margin:0 5px;border-top:1px solid var(--border)}.method summary{font-size:12px;cursor:pointer;padding:17px 0;display:flex;justify-content:space-between;gap:10px;list-style:none;font-weight:600}.method summary::-webkit-details-marker{display:none}.method summary span{font-size:18px;font-weight:400}.method[open] summary span{transform:rotate(45deg)}.method>div{padding:0 0 10px;color:var(--text-muted);font-size:12px;line-height:1.8}.method p+p{margin-top:12px}.bottom-note{margin:61px 0 44px;text-align:center}.bottom-note>.section-number{color:var(--text-muted);font-size:9px}.bottom-note p{font-size:29px;font-family:Georgia,serif;line-height:1.3;margin-top:15px;letter-spacing:-.5px}.bottom-note a{display:inline-flex;gap:20px;align-items:center;margin-top:20px;font-size:11px;text-decoration:none;color:var(--text-muted);padding:10px}.site-footer{max-width:1160px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 auto;padding:28px 0;border-top:1px solid var(--border);font-size:10px;color:var(--text-muted)}.site-footer .brand{font-size:18px;gap:0;color:var(--text)}.floor-note{font-size:11px;margin:0 0 18px;color:var(--green-light)}.form-error{color:var(--error);font-size:12px;margin-top:14px}.storage-message{margin:20px 0;padding:15px;border:1px solid var(--carbs);border-radius:10px;font-size:13px}.today-view{padding:50px 0 70px;min-height:75vh}.today-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:36px}.today-heading .eyebrow{justify-content:flex-start}.today-heading h1{font-size:52px;margin-bottom:16px}.today-heading p{color:var(--text-muted);font-size:14px}.date-field{width:180px}.no-targets{max-width:500px;margin:auto}.no-targets p{color:var(--text-muted);margin:15px 0 23px}.daily-summary{background:var(--accent);color:var(--accent-fg);padding:28px;border-radius:var(--radius);margin-bottom:25px}.daily-summary>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}.daily-summary h2{font-size:25px}.daily-summary p{color:var(--green-light);font-size:13px}.daily-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:30px}.daily-stat>span{display:block;color:var(--green-light);font-size:11px}.daily-stat strong{display:block;font-weight:400;font-size:29px;line-height:1.5;font-variant-numeric:tabular-nums}.daily-stat strong small{font-weight:400;font-size:12px;color:var(--green-light)}.daily-stat progress{width:100%;height:6px;display:block;margin:8px 0 0;accent-color:var(--protein);border:0;background:#ffffff24;border-radius:6px;overflow:hidden}.daily-stat progress::-webkit-progress-bar{background:#ffffff24}.daily-stat progress::-webkit-progress-value{background:var(--protein);border-radius:6px}.daily-stat progress::-moz-progress-bar{background:var(--protein)}.daily-stat:nth-child(3) progress::-webkit-progress-value{background:var(--carbs)}.daily-stat:nth-child(4) progress::-webkit-progress-value{background:var(--fat)}.tracker-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:25px;align-items:start}.log-panel h2{margin:10px 0}.muted{color:var(--text-muted);font-size:12px}.log-panel form{margin-top:23px}.log-panel .field{margin-bottom:19px}.food-macro-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.meals-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:24px}.meals-heading>span{color:var(--text-muted);font-size:12px}.empty-log{text-align:center;padding:45px 10px}.empty-log>span{font-size:35px;font-family:Georgia,serif}.empty-log h3{margin:15px 0 7px}.empty-log p{font-size:13px;color:var(--text-muted);max-width:240px;margin:auto}.food-item{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:17px 0;border-bottom:1px solid var(--border)}.food-item:first-child{padding-top:0}.food-item h3{font-size:14px;overflow-wrap:anywhere}.food-item p{font-size:11px;color:var(--text-muted);margin-top:6px}.food-item>div{min-width:0}.delete-food{border:0;background:var(--soft);color:var(--text-muted);border-radius:50%;font-size:22px;min-width:44px;height:44px}.delete-food:hover{color:var(--error)}.local-note{font-size:10px;color:var(--text-muted);margin-top:24px}.food-calories{font-size:13px;white-space:nowrap}.date-field input{font-size:14px}
@media(min-width:1450px){.hero{padding-top:65px;padding-bottom:46px}}
@media(max-width:1220px){.site-header,.site-footer{margin-left:32px;margin-right:32px}main{margin-left:55px;margin-right:55px}}
@media(max-width:960px){main{margin-left:30px;margin-right:30px}.calculator-layout{gap:18px}.panel,.results-panel{padding:24px}.results-panel h2{font-size:25px}.macro-grid strong{font-size:31px}.macro-description{font-size:9px}.unit-fieldset{display:block}.unit-fieldset legend{float:none;padding:0 0 8px}.segmented label{flex:1}.segmented span{text-align:center}.goal-options span{font-size:10px}.food-macro-fields{gap:7px}}
@media(max-width:700px){.site-header{margin:0 20px;padding:20px 0}.brand{font-size:22px;gap:8px}.brand img{width:29px;height:29px}.nav-link{padding:10px 12px;font-size:12px}nav{gap:0}main{margin:0 20px}.hero{padding:37px 0 31px}.eyebrow{font-size:8px;letter-spacing:1.5px;gap:8px;margin-bottom:20px}.small-line{width:16px}h1{font-size:48px;letter-spacing:-2px}.hero h1{margin-bottom:17px}.hero p{font-size:13px;line-height:1.8}.mobile-break{display:block}.calculator-layout{grid-template-columns:1fr;gap:20px}.panel,.results-panel{padding:24px;border-radius:18px}.panel-heading{margin-bottom:22px}.panel-heading h2{font-size:26px}.sun-icon{font-size:38px}.section-number{font-size:9px;letter-spacing:1.4px}.unit-fieldset{display:flex;margin-bottom:22px}.unit-fieldset legend{float:left;font-size:12px;padding:10px 0}.segmented label{flex:initial}.segmented span{padding:7px 9px;font-size:11px}.segmented small{font-size:10px}.field-row{gap:15px;margin-bottom:18px}.goal-options span{font-size:11px}.activity-field select{font-size:12px}.calculate-button{margin-top:23px}.form-footnote{font-size:9px;margin-top:13px}.results-panel h2{font-size:28px}.result-topline{margin-bottom:15px}.result-context{font-size:10px}.calorie-total{margin-top:22px}.calorie-total>span:first-child{font-size:73px}.macro-grid strong{font-size:35px}.macro-description{font-size:9px}.result-footer{font-size:10px}.tip-card{padding:24px 2px;gap:12px}.tip-card p{font-size:11px}.bottom-note{margin:39px 0 30px}.bottom-note p{font-size:27px}.bottom-note .section-number{font-size:8px}.site-footer{margin:0 20px;padding:23px 0;flex-wrap:wrap;gap:12px;font-size:9px}.site-footer>span:nth-child(2){display:none}.site-footer .brand{font-size:17px}.today-view{padding:34px 0 45px}.today-heading{display:block;margin-bottom:24px}.today-heading h1{font-size:42px}.today-heading p{font-size:13px}.date-field{margin-top:23px;width:100%}.date-field input{width:100%;min-width:0}.daily-summary{padding:23px}.daily-summary>div:first-child{display:block;margin-bottom:22px}.daily-summary h2{font-size:25px;margin-bottom:8px}.daily-summary p{font-size:12px}.daily-stats{grid-template-columns:1fr 1fr;gap:22px}.daily-stat strong{font-size:29px}.tracker-layout{grid-template-columns:1fr;gap:20px}.food-macro-fields .field{font-size:11px}.storage-message{font-size:12px}.empty-log{padding:27px 0}}
@media(max-width:360px){main{margin:0 14px}.site-header,.site-footer{margin-left:14px;margin-right:14px}.brand{font-size:20px}.nav-link{padding:10px}.panel,.results-panel{padding:20px}.segmented small{display:none}h1{font-size:44px}.panel-heading h2{font-size:24px}.macro-description{font-size:8px}.macro-grid strong{font-size:31px}.goal-options span{font-size:10px}.macro-label{font-size:11px}.food-macro-fields{gap:6px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
.brand,.nav-link{min-height:44px;display:inline-flex;align-items:center}
.segmented span{min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;gap:3px}
.segmented small{margin-left:0}
.result-footer a,.bottom-note a{min-height:44px}
@media(max-width:400px){.field-row:has(#us-height:not([hidden])){grid-template-columns:1fr}.height-us{gap:12px}}
