.smart-goals{margin-bottom:24px}.smart-goals-heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.smart-goals-heading h2{margin:0 0 8px}.smart-goals-heading p,.smart-helper,.smart-formula{color:#84909c;font-size:13px;line-height:1.5}.smart-reset{color:#087f5b;white-space:nowrap;background:#e7f7f1;border-radius:10px;padding:10px 14px}.smart-calorie-box{background:#f6f8fa;border-radius:14px;margin:22px 0;padding:20px}.smart-calorie-box label,.smart-entry-row label{margin-bottom:10px;font-size:14px;font-weight:600;display:block}.smart-number-input{align-items:center;gap:12px;display:flex}.smart-number-input input,.smart-entry-row input{color:#172b32;background:#fff;border:1px solid #dce3e9;border-radius:10px;width:100%;min-width:0;padding:13px;font-size:16px}.smart-number-input span{color:#687283}.smart-step{border-top:1px solid #edf0f4;padding:22px 0}.smart-step-title{align-items:center;gap:10px;margin-bottom:16px;display:flex}.smart-step-title h3{margin:0;font-size:17px}.smart-step-number{color:#087f5b;background:#e7f7f1;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-weight:700;display:flex}.smart-macro-options{flex-wrap:wrap;gap:8px;margin-bottom:18px;display:flex}.smart-macro-options button{color:#687283;background:#fff;border:1px solid #dce3e9;border-radius:10px;padding:10px 14px}.smart-macro-options button.selected{color:#087f5b;background:#e7f7f1;border-color:#16a085}.smart-entry-row{grid-template-columns:1fr auto;align-items:end;gap:20px;display:grid}.smart-allocation,.smart-result-percent{flex-direction:column;align-items:flex-end;gap:5px;padding-bottom:10px;display:flex}.smart-allocation strong{font-size:22px}.smart-allocation small,.smart-result small{color:#84909c;font-size:12px}.smart-progress,.smart-summary-bar{background:#edf0f4;border-radius:99px;height:9px;overflow:hidden}.smart-progress>div{border-radius:99px;height:100%}.smart-remaining{color:#087f5b;font-size:14px;font-weight:600}.smart-result{background:#f6f8fa;border-radius:14px;justify-content:space-between;align-items:center;gap:16px;padding:22px;display:flex}.smart-result>div:first-child{flex-direction:column;gap:7px;display:flex}.smart-result>div:first-child strong{font-size:30px}.smart-result-percent strong{font-size:20px}.smart-summary{background:#f6f8fa;border-radius:14px;margin-top:4px;padding:20px}.smart-summary h3{margin:0 0 18px;font-size:16px}.smart-summary-bar{height:13px;display:flex}.smart-summary-bar>div{height:100%}.smart-summary-details{justify-content:space-between;gap:12px;margin-top:12px;font-size:13px;display:flex}.smart-success{color:#087f5b;font-size:14px;font-weight:600}.smart-error{color:#c0392b;font-size:13px;line-height:1.5}.smart-actions{justify-content:flex-end;gap:12px;margin-top:22px;display:flex}.smart-cancel,.smart-save{border-radius:12px;padding:13px 20px}.smart-cancel{color:#687283;background:#edf0f4}.smart-save{color:#fff;background:#16a085}.smart-save:disabled{opacity:.45;cursor:not-allowed}@media (width<=600px){.smart-goals-heading{flex-direction:column}.smart-entry-row{gap:10px}.smart-result>div:first-child strong{font-size:24px}.smart-macro-options button,.smart-actions button{flex:1}}.barcode-panel{color:#173039;background:#f8fbfa;border:1px solid #dce8e4;border-radius:16px;margin-top:20px;padding:18px}.barcode-heading,.barcode-manual>div{justify-content:space-between;align-items:center;gap:12px;display:flex}.barcode-heading h3,.barcode-product h3{margin:0 0 6px}.barcode-heading p,.barcode-description,.barcode-disclaimer{color:#71808a;font-size:13px;line-height:1.5}.barcode-panel button{cursor:pointer;color:#176c56;background:#e4eeeb;border:0;border-radius:10px;padding:12px 14px;font-weight:650}.barcode-panel button:disabled{opacity:.45;cursor:not-allowed}.barcode-camera{border-radius:12px;width:100%;min-height:0;overflow:hidden}.barcode-camera video{border-radius:12px;width:100%!important}.barcode-controls{margin:12px 0 18px}.barcode-controls button{color:#fff;background:#139e82;width:100%}.barcode-manual{flex-direction:column;gap:8px;display:flex}.barcode-manual label,.barcode-product label{font-size:14px;font-weight:650}.barcode-manual input,.barcode-product input{color:#173039;background:#fff;border:1px solid #cddbd6;border-radius:10px;width:100%;min-width:0;padding:12px;font-size:16px}.barcode-manual>div input{flex:1}.barcode-error{color:#b63126;background:#fff0ee;border-radius:9px;margin-top:12px;padding:12px;font-size:13px}.barcode-product{border-top:1px solid #dce8e4;margin-top:20px;padding-top:18px}.barcode-source{color:#139e82;font-size:12px;font-weight:700}.barcode-mode{gap:8px;margin:16px 0;display:flex}.barcode-mode button{flex:1}.barcode-mode button.selected{color:#fff;background:#139e82}.barcode-product label{flex-direction:column;gap:8px;display:flex}.barcode-product small{color:#71808a;font-size:12px}.barcode-preview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:20px 0;display:grid}.barcode-preview>div{background:#fff;border:1px solid #e3ebe8;border-radius:10px;flex-direction:column;gap:5px;padding:14px;display:flex}.barcode-preview strong{font-size:18px}.barcode-preview span{color:#71808a;font-size:12px}.barcode-panel .barcode-add{color:#fff;background:#139e82;width:100%}@media (width<=600px){.barcode-heading{align-items:flex-start}.barcode-heading button{flex-shrink:0}}#root{width:100%;min-height:100vh}.app{width:min(100% - 36px,900px);margin:0 auto;padding:50px 0}.header{justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px;display:flex}.eyebrow{color:#16a085;letter-spacing:1.5px;font-size:11px;font-weight:700}h1{margin:8px 0;font-size:clamp(28px,5vw,40px)}.subtitle{color:#747b89;margin-top:8px}button{cursor:pointer;border:none;font-weight:600}.settings-button{color:#087f5b;background:#e7f7f1;border-radius:12px;padding:12px 18px}.card{background:#fff;border:1px solid #e9edf2;border-radius:20px;padding:24px;box-shadow:0 4px 20px #141e2d09}.calorie-card{color:#fff;background:#123f37;border-radius:24px;padding:32px}.card-label{color:#b5dbd0;margin:0 0 10px}.calorie-number{font-size:42px;font-weight:750}.calorie-number span{color:#b5dbd0;font-size:17px;font-weight:400}.remaining{color:#b5dbd0}.progress-track{background:#b4c8c359;border-radius:99px;height:10px;margin-top:20px;overflow:hidden}.progress-fill{background:#36d6a1;border-radius:99px;height:100%;transition:width .3s}.section-title{margin:32px 0 16px;font-size:22px}.macro-grid{grid-template-columns:repeat(3,1fr);gap:16px;display:grid}.macro-heading{color:#687283;justify-content:space-between;font-size:14px;font-weight:600;display:flex}.macro-dot{border-radius:50%;width:11px;height:11px}.macro-value{margin-top:20px;font-size:30px;font-weight:750}.macro-target{color:#84909c;font-size:13px}.progress-track.small{background:#edf0f4;height:7px}.food-section{justify-content:space-between;align-items:center;gap:16px;margin-top:30px;display:flex}.food-section h2{margin:0}.food-section p{color:#84909c}.add-button{color:#fff;background:#16a085;border-radius:12px;padding:14px 18px}.add-button:disabled{opacity:.5;cursor:not-allowed}.goals-editor{margin-bottom:24px}.goal-inputs{grid-template-columns:repeat(4,1fr);gap:15px;display:grid}.goal-inputs label{flex-direction:column;gap:8px;font-size:13px;font-weight:600;display:flex}.goal-inputs input{box-sizing:border-box;border:1px solid #dce3e9;border-radius:10px;width:100%;padding:12px;font-size:16px}.footer-note{text-align:center;color:#9aa4ae;margin-top:40px;font-size:12px}@media (width<=600px){.app{padding:25px 0}.header{align-items:flex-start}.settings-button{white-space:nowrap}.macro-grid{grid-template-columns:1fr}.goal-inputs{grid-template-columns:repeat(2,1fr)}.calorie-card{padding:24px}.calorie-number{font-size:36px}}.date-navigation{justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;display:flex}.date-navigation button{color:#123f37;background:#fff;border:1px solid #e9edf2;border-radius:12px;padding:10px 16px;font-size:18px}.date-navigation strong{text-align:center;font-size:15px}.food-form{margin-top:16px}.food-form h2{margin-top:0}.form-description{color:#84909c;font-size:14px;line-height:1.5}.food-search,.portion-editor input{color:#172b32;background:#fff;border:1px solid #dce3e9;border-radius:12px;width:100%;padding:14px;font-size:16px}.food-search{margin:15px 0}.food-results{flex-direction:column;gap:6px;max-height:240px;display:flex;overflow-y:auto}.food-result{text-align:left;color:#172b32;background:#f6f8fa;border:1px solid #0000;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:13px 14px;display:flex}.food-result:hover,.food-result.selected{background:#e7f7f1;border-color:#16a085}.food-result small{color:#84909c;white-space:nowrap}.portion-editor{border-top:1px solid #edf0f4;margin-top:20px;padding-top:20px}.portion-editor label{margin-bottom:10px;font-weight:600;display:block}.nutrition-preview{background:#f6f8fa;border-radius:14px;margin-top:20px;padding:20px}.nutrition-preview h3{margin:0 0 18px}.preview-grid{grid-template-columns:repeat(4,1fr);gap:12px;display:grid}.preview-grid div{flex-direction:column;gap:7px;display:flex}.preview-grid strong{font-size:20px}.preview-grid span{color:#84909c;font-size:12px}.save-food-button{color:#fff;background:#16a085;border-radius:12px;width:100%;margin-top:20px;padding:15px}.save-food-button:disabled{opacity:.5;cursor:not-allowed}.diary-list{margin-top:16px}.diary-list h2{margin-top:0}.diary-entry{border-top:1px solid #edf0f4;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;display:flex}.diary-entry:first-of-type{border-top:none}.diary-info p{color:#687283;margin:7px 0}.diary-info small{color:#84909c}.diary-actions{gap:8px;display:flex}.diary-actions button{color:#087f5b;background:#e7f7f1;border-radius:8px;padding:9px 12px}.diary-actions .delete-button{color:#c0392b;background:#fff0f0}@media (width<=600px){.preview-grid{grid-template-columns:repeat(2,1fr)}.food-result,.diary-entry{flex-direction:column;align-items:flex-start}.diary-actions{width:100%}}.search-mode-switch{gap:10px;margin-top:20px;margin-bottom:15px;display:flex}.search-mode-switch button{color:#687283;background:#edf0f4;border-radius:10px;padding:12px 18px;font-size:14px}.search-mode-switch button.active{color:#fff;background:#16a085}.food-search-form{align-items:center;gap:10px;margin-bottom:15px;display:flex}.food-search-form .food-search{flex:1;min-width:0;margin:0}.search-button{color:#fff;white-space:nowrap;background:#16a085;border-radius:12px;padding:15px 20px}.search-button:disabled{opacity:.5;cursor:not-allowed}.search-error{color:#c0392b;background:#fff0f0;border-radius:10px;padding:14px;font-size:14px}.food-source{color:#84909c;margin-top:5px;font-size:12px;display:block}.food-result strong{font-size:14px}.food-results{max-height:350px}.portion-editor h3{margin-top:0;line-height:1.4}@media (width<=600px){.food-search-form{flex-direction:column;align-items:stretch}.search-button{width:100%}.search-mode-switch button{flex:1;padding:12px 8px}}.ingredient-group{margin-top:20px}.ingredient-group h3{margin:0 0 12px;font-size:16px}.ingredient-result{align-items:stretch;gap:8px;margin-bottom:8px;display:flex}.ingredient-pick{text-align:left;color:#172b32;background:#f6f8fa;border:1px solid #0000;border-radius:12px;flex:1;justify-content:space-between;align-items:center;gap:15px;min-width:0;padding:14px;display:flex}.ingredient-pick:hover,.ingredient-pick.chosen{background:#e7f7f1;border-color:#16a085}.ingredient-pick span:first-child{flex-direction:column;gap:5px;min-width:0;display:flex}.ingredient-pick small{color:#84909c}.ingredient-kcal{white-space:nowrap;color:#687283;font-size:13px}.favorite-button{color:#e6a23c;background:#f6f8fa;border-radius:10px;flex-shrink:0;width:43px;font-size:24px}.more-results-button{color:#087f5b;background:#fff;border:1px solid #dce3e9;border-radius:12px;width:100%;padding:14px}.all-ingredient-results{max-height:420px;margin-top:12px;overflow-y:auto}.portion-select{color:#172b32;background:#fff;border:1px solid #dce3e9;border-radius:10px;width:100%;margin-bottom:15px;padding:13px;font-size:16px}.portion-editor label{margin-top:12px}@media (width<=600px){.ingredient-pick{flex-direction:column;align-items:flex-start;gap:6px}.ingredient-kcal{white-space:normal}}.auth-page{color:#183039;background:radial-gradient(circle at 15% 10%,#dff7eb 0,#0000 36%),linear-gradient(150deg,#f5faf8,#edf4f5);justify-content:center;align-items:center;min-height:100dvh;padding:24px 16px;font-family:inherit;display:flex}.auth-card{background:#fff;border:1px solid #e0ebe5;border-radius:24px;width:100%;max-width:450px;padding:36px;box-shadow:0 16px 55px #11372d14}.auth-brand{text-align:center;margin-bottom:32px}.auth-symbol{color:#fff;background:#139e82;border-radius:17px;place-items:center;width:54px;height:54px;margin:0 auto 14px;font-size:27px;font-weight:800;display:grid}.auth-brand h1{color:#183039;letter-spacing:-.6px;margin:0;font-size:24px}.auth-brand p,.auth-heading p{color:#71848b;font-size:14px;line-height:1.5}.auth-brand p{margin:8px 0 0}.auth-heading{margin-bottom:22px}.auth-heading h2{color:#183039;margin:0 0 7px;font-size:21px}.auth-heading p{margin:0}.auth-field{color:#30454c;flex-direction:column;gap:8px;margin-bottom:17px;font-size:13px;font-weight:650;display:flex}.auth-field input{box-sizing:border-box;color:#183039;background:#fff;border:1px solid #d7e3df;border-radius:11px;outline:none;width:100%;min-width:0;padding:14px;font-family:inherit;font-size:16px}.auth-field input:focus{border-color:#139e82;box-shadow:0 0 0 3px #139e821f}.auth-primary,.auth-secondary{cursor:pointer;border:0;border-radius:11px;width:100%;margin-top:12px;padding:14px;font-family:inherit;font-size:15px;font-weight:700}.auth-primary{color:#fff;background:#139e82}.auth-primary:hover{background:#10866e}.auth-secondary{color:#176d57;background:#eef4f1}.auth-primary:disabled,.auth-secondary:disabled{opacity:.55;cursor:not-allowed}.auth-text-button,.auth-switch button{color:#10866e;font-family:inherit;font-size:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:700}.auth-forgot{margin:0 0 15px auto;font-size:13px;display:block}.auth-switch{text-align:center;color:#71848b;margin:22px 0 0;font-size:13px}.auth-back{text-align:center;color:#71848b;margin-top:25px;font-size:13px;text-decoration:none;display:block}.auth-back:hover{color:#10866e;text-decoration:underline}.auth-error,.auth-message{border-radius:10px;margin:14px 0;padding:12px 14px;font-size:13px;line-height:1.5}.auth-error{color:#b62e24;background:#fff0ef}.auth-message{color:#087453;background:#e9f7f0}.auth-signed-in{text-align:center;padding:18px 0}.auth-check{color:#087453;background:#e9f7f0;border-radius:50%;place-items:center;width:48px;height:48px;margin:0 auto 12px;font-size:24px;display:grid}.auth-signed-in h2{margin:0 0 8px}.auth-signed-in p{color:#71848b;overflow-wrap:anywhere;margin:5px 0}.auth-signed-in .auth-username{color:#183039;font-weight:700}.auth-notice{background:#f1f6f5;border-radius:12px;margin:12px 0 20px;padding:15px;font-size:13px}.auth-notice p{color:#60757a;margin-bottom:0;line-height:1.6}.auth-loading{text-align:center;color:#71848b}@media (width<=500px){.auth-page{align-items:center;padding:15px}.auth-card{border-radius:18px;padding:26px 20px}}.auth-divider{color:#71848b;align-items:center;gap:12px;margin:22px 0 12px;font-size:13px;display:flex}.auth-divider:before,.auth-divider:after{content:"";background:#d7e3df;flex:1;height:1px}.auth-google,.auth-guest{border-radius:11px;width:100%;margin-top:10px;padding:14px;font-size:15px;font-weight:700;display:block}.auth-google{color:#24343b;background:#fff;border:1px solid #cfdad8}.auth-google span{color:#4285f4;margin-right:10px;font-weight:850}.auth-guest{color:#087453;background:#e9f7f0}.auth-google:disabled,.auth-guest:disabled{opacity:.5;cursor:not-allowed}.auth-guest-note{text-align:center;color:#71848b;font-size:12px;line-height:1.5}:root{color:#172b32;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#f6f8fa;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input{font:inherit}button:focus-visible,input:focus-visible{outline-offset:2px;outline:3px solid #16a085}.theme-toggle{bottom:max(18px, env(safe-area-inset-bottom));z-index:1000;color:#172b32;cursor:pointer;background:#fff;border:1px solid #cbd6d5;border-radius:24px;padding:10px 14px;font-size:13px;position:fixed;right:18px;box-shadow:0 4px 18px #0002}body{padding-bottom:58px}:root[data-theme=dark],[data-theme=dark] body{color:#ecf4f2;background:#10191c}[data-theme=dark] .theme-toggle{color:#ecf4f2;background:#27363a;border-color:#405258}[data-theme=dark] .auth-page{color:#ecf4f2;background:radial-gradient(circle at 15% 10%,#173c34,#0000 45%),#10191c}[data-theme=dark] .auth-card,[data-theme=dark] .card{color:#ecf4f2;box-shadow:none;background:#1d2b2f;border-color:#34494d}[data-theme=dark] .auth-brand h1,[data-theme=dark] .auth-heading h2,[data-theme=dark] .auth-signed-in .auth-username{color:#ecf4f2}[data-theme=dark] .auth-field{color:#c5d8d5}[data-theme=dark] .auth-field input,[data-theme=dark] .food-search,[data-theme=dark] .portion-editor input,[data-theme=dark] .portion-select,[data-theme=dark] .smart-number-input input,[data-theme=dark] .smart-entry-row input,[data-theme=dark] .goal-inputs input,[data-theme=dark] .barcode-manual input,[data-theme=dark] .barcode-product input{color:#f1faf7;background:#122126;border-color:#42565c}[data-theme=dark] .auth-notice,[data-theme=dark] .auth-secondary,[data-theme=dark] .auth-guest,[data-theme=dark] .settings-button,[data-theme=dark] .diary-actions button,[data-theme=dark] .smart-reset,[data-theme=dark] .smart-step-number,[data-theme=dark] .smart-macro-options button.selected{color:#8be8c5;background:#234c42}[data-theme=dark] .auth-google,[data-theme=dark] .date-navigation button,[data-theme=dark] .more-results-button,[data-theme=dark] .smart-macro-options button,[data-theme=dark] .barcode-preview>div{color:#e9f7f2;background:#1b2d32;border-color:#42565c}[data-theme=dark] .food-result,[data-theme=dark] .ingredient-pick,[data-theme=dark] .favorite-button,[data-theme=dark] .nutrition-preview,[data-theme=dark] .smart-calorie-box,[data-theme=dark] .smart-result,[data-theme=dark] .smart-summary,[data-theme=dark] .barcode-panel{color:#f0f8f6;background:#233438;border-color:#3a5054}[data-theme=dark] .food-result:hover,[data-theme=dark] .food-result.selected,[data-theme=dark] .ingredient-pick:hover,[data-theme=dark] .ingredient-pick.chosen{background:#234c42;border-color:#16a085}[data-theme=dark] .barcode-panel button:not(.barcode-add),[data-theme=dark] .smart-cancel,[data-theme=dark] .search-mode-switch button:not(.active){color:#d5f4e9;background:#31464a}[data-theme=dark] .barcode-controls button,[data-theme=dark] .barcode-mode button.selected{color:#fff;background:#139e82}[data-theme=dark] .smart-step,[data-theme=dark] .diary-entry,[data-theme=dark] .portion-editor,[data-theme=dark] .barcode-product{border-color:#42565c}[data-theme=dark] .progress-track.small,[data-theme=dark] .smart-progress,[data-theme=dark] .smart-summary-bar{background:#384c50}[data-theme=dark] .subtitle,[data-theme=dark] .macro-heading,[data-theme=dark] .macro-target,[data-theme=dark] .food-section p,[data-theme=dark] .form-description,[data-theme=dark] .ingredient-pick small,[data-theme=dark] .ingredient-kcal,[data-theme=dark] .diary-info p,[data-theme=dark] .diary-info small,[data-theme=dark] .auth-brand p,[data-theme=dark] .auth-heading p,[data-theme=dark] .auth-switch,[data-theme=dark] .auth-guest-note,[data-theme=dark] .smart-helper,[data-theme=dark] .smart-formula,[data-theme=dark] .barcode-description,[data-theme=dark] .barcode-disclaimer{color:#a5bdc0}
