:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172c2d;background:#f4f7f7;font-size:16px;line-height:1.5;--teal:#086e65;--ink:#172c2d;--muted:#5c6c70;--border:#dce5e4;--orange:#c45a24}*{box-sizing:border-box}body{margin:0}a{color:var(--teal);text-underline-offset:3px}button,input,select,textarea{font:inherit}button{cursor:pointer;background:white;border:1px solid #b9ceca;border-radius:9px;padding:10px 18px;font-weight:600;color:var(--ink)}button:hover{background:#e8f2f0}button:disabled{cursor:wait;opacity:.5}input,select,textarea{width:100%;border:1px solid #cbd8d7;border-radius:8px;padding:10px 12px;background:white;color:var(--ink);min-width:0}textarea{resize:vertical}label{display:block;font-size:.875rem;font-weight:600}label input,label select,label textarea{margin-top:7px;font-size:.9375rem;font-weight:400}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #71cbbd;outline-offset:2px}h1,h2,h3,p{margin:0}h1{font-size:2.7rem;line-height:1.15;letter-spacing:-1.6px;font-weight:650;margin:10px 0 12px}h2{font-size:1.12rem;letter-spacing:-.3px;font-weight:650}h3{font-size:1.05rem}p{color:var(--muted)}.topbar{height:84px;padding:0 4.5vw;display:flex;align-items:center;gap:35px;border-bottom:1px solid var(--border);background:white}.brand{font-size:1.45rem;font-weight:750;text-decoration:none;display:flex;align-items:center;color:var(--ink);letter-spacing:-.6px;gap:0}.brand>span:last-child{font-weight:400}.brand-icon{background:var(--teal);color:#fff;font-size:2rem;width:39px;height:39px;display:grid;place-items:center;line-height:1;border-radius:12px;margin-right:10px}.top-note{font-size:.875rem;color:var(--muted)}.connection{margin-left:auto;font-size:.8125rem;padding:7px 12px;background:#edf5f2;border-radius:20px;color:var(--teal)}main{max-width:1280px;margin:auto;padding:40px 40px 24px}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.intro p{font-size:.95rem;max-width:660px}.eyebrow{font-size:.7rem;font-weight:750;letter-spacing:1.8px;color:var(--teal)}.quiet-link{font-size:.875rem;white-space:nowrap;margin-left:22px}.workspace{display:grid;grid-template-columns:1.32fr 1fr;gap:24px}.panel{background:white;border:1px solid var(--border);border-radius:15px;padding:26px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:23px}.step{font-size:.7rem;display:inline-flex;width:24px;height:24px;border:1px solid #b5d1c9;align-items:center;justify-content:center;border-radius:50%;margin-right:7px;color:var(--teal)}.small{font-size:.8125rem;color:var(--muted)}.dropzone{border:1.5px dashed #a9c6c0;border-radius:11px;background:#f4f9f7;display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:228px;padding:20px;text-align:center;gap:7px}.dropzone.dragging{background:#dcf2eb;border-color:var(--teal)}.dropzone>span:not(.upload-icon){font-size:.875rem;color:var(--muted)}.upload-icon{color:var(--teal);font-size:1.65rem;line-height:1;background:#deece7;padding:8px 12px;border-radius:50%;margin-bottom:5px}.upload-button{position:relative;display:inline-block;background:white;border:1px solid #b8cdc7;border-radius:8px;padding:8px 16px;color:var(--teal);overflow:hidden;margin:7px 0;cursor:pointer}.upload-button input{opacity:0;position:absolute;inset:0;width:100%;height:100%;cursor:pointer;margin:0}.upload-button:focus-within{outline:3px solid #71cbbd;outline-offset:2px}.field-pair{display:grid;grid-template-columns:1.5fr 1fr;gap:16px;margin:20px 0 17px}.optional{font-weight:400;color:var(--muted);font-size:.75rem}.unit-input{display:flex;position:relative}.unit-input input{padding-right:38px}.unit-input>span{position:absolute;right:12px;top:17px;font-size:.875rem;color:var(--muted)}.primary{background:var(--teal);color:white;border-color:var(--teal)}.primary:hover{background:#08594f}.primary span{font-size:1.2rem}.full{width:100%;display:flex;align-items:center;justify-content:space-between;margin-top:21px;padding:12px 17px}.privacy{font-size:.75rem;margin-top:12px;min-height:2.7em}.badge{font-size:.73rem;background:#edf2f2;color:#496366;border-radius:5px;padding:5px 9px;white-space:nowrap}.badge.attention{background:#fff1da;color:#83511e}.badge.ok{background:#dff2ea;color:#156852}.estimate{background:#fdfefe;display:flex;flex-direction:column}.calorie-display{display:flex;align-items:baseline;gap:12px;justify-content:center;margin-top:32px}.calorie-display>span:first-child{font-size:5rem;line-height:1.1;font-weight:650;letter-spacing:-4px}.kcal{font-size:1.25rem;color:var(--muted)}#total-label{text-align:center;font-size:.875rem;margin:10px 0 27px}.range-block{border:1px solid var(--border);padding:15px 17px;border-radius:9px}.range-label{display:flex;justify-content:space-between;align-items:center;font-size:.875rem}.range-label strong{font-size:.875rem}.range-track{height:7px;background:#edf1ef;border-radius:8px;margin:16px 0;position:relative}.range-track span{position:absolute;left:16%;right:16%;height:100%;background:#86bdb1;border-radius:8px}.range-track i{position:absolute;left:50%;background:var(--teal);height:15px;width:4px;top:-4px;border-radius:3px}.range-block p{font-size:.75rem;line-height:1.5}.macros{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:24px 0}.macros>div{font-size:.8125rem;border-right:1px solid var(--border)}.macros>div:last-child{border:0}.macros strong{display:block;font-size:1.4rem;font-weight:600;margin:6px 0 0 12px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px}.protein{background:#147c70}.carbs{background:#cf964b}.fat{background:#8c83bb}.summary-hint{border-top:1px solid var(--border);padding-top:19px;font-size:.875rem;color:var(--muted);margin-top:auto}.summary-hint strong{color:var(--ink)}.source-credit{font-size:.73rem;padding-top:18px}.previews{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.preview{position:relative;width:80px}.preview img{width:80px;height:70px;object-fit:cover;border-radius:8px}.preview button{position:absolute;right:3px;top:3px;border-radius:50%;background:white;font-size:.75rem;padding:0;width:22px;height:22px}.preview span{display:block;font-size:.7rem;text-align:center}.review,.manual{margin-top:24px}.section-subtitle{font-size:.875rem;margin-top:7px}.food-row{padding:22px 0;border-top:1px solid var(--border)}.food-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.food-heading h3{font-size:1rem}.food-heading .row-calories{margin-left:auto;font-weight:650;font-size:1.1rem;white-space:nowrap}.remove{border:0;padding:6px 10px;color:var(--muted);font-size:.85rem}.food-fields{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:15px}.food-fields label{font-size:.8rem}.evidence{font-size:.8rem;margin-top:12px;line-height:1.6}.source-line{font-size:.75rem;margin-top:7px;display:flex;gap:14px;flex-wrap:wrap}.source-line a{max-width:100%}.portion-controls{display:flex;gap:16px;align-items:end;margin-top:15px}.portion-controls>label{flex:1;max-width:270px}.check{display:flex;align-items:center;gap:9px;font-size:.875rem;font-weight:400}.check input{width:17px;height:17px;margin:0;accent-color:var(--teal);flex-shrink:0}.questions{background:#fff7e8;border-radius:9px;padding:0 18px;margin:12px 0 22px;font-size:.875rem;color:#6f5429}.questions:empty{display:none}.questions ul{padding:15px 0 15px 18px}.questions li+li{margin-top:6px}.review>.small{margin-top:10px}.search-form{display:flex;align-items:center;gap:18px}.search-label{flex:1}.search-form input{margin:0}.search-form .check{white-space:nowrap}.search-result{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--border);padding:14px 0;font-size:.875rem}.search-result p{font-size:.8rem}.search-result:first-child{margin-top:15px}.search-result button{flex-shrink:0}#search-note{margin-top:12px}.tips{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:30px;padding:44px 0}.tips h2{font-size:1.45rem;line-height:1.3;margin-top:8px;max-width:250px;letter-spacing:-.6px}.tip-number{font-size:.7rem;letter-spacing:1.3px;color:var(--teal);font-weight:700}.tips h3{margin:8px 0}.tips p{font-size:.85rem;line-height:1.65}footer{display:flex;justify-content:space-between;gap:24px;border-top:1px solid var(--border);padding-top:24px;color:var(--muted);font-size:.75rem}.notice{padding:14px 18px;margin-bottom:20px;border-radius:9px;font-size:.875rem}.error{border:1px solid #edc7b9;background:#fff3ed;color:#8c3324}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(max-width:1000px){main{padding:30px 24px}.top-note{display:none}.intro{display:block}.quiet-link{display:inline-block;margin:16px 0 0}.workspace{grid-template-columns:1.2fr 1fr;gap:16px}.panel{padding:21px}.field-pair{grid-template-columns:1fr}.calorie-display>span:first-child{font-size:4rem}.food-fields{grid-template-columns:2fr 1fr}.tips{grid-template-columns:1fr 1fr}.search-form{flex-wrap:wrap}.search-label{min-width:100%}}@media(max-width:700px){.topbar{height:72px;padding:0 20px;gap:12px}.brand{font-size:1.25rem}.connection{font-size:.7rem}main{padding:26px 16px}h1{font-size:2.15rem}.workspace{grid-template-columns:1fr}.panel{padding:20px}.estimate .calorie-display{margin-top:5px}.estimate .summary-hint{margin-top:0}.food-fields{grid-template-columns:1fr 1fr}.food-fields label:first-child{grid-column:1/-1}.portion-controls{flex-wrap:wrap}.portion-controls>.check{min-width:100%}.tips{gap:24px 20px;padding:32px 0}.tips>div{grid-column:1/-1}.tips h2{max-width:none}.tips article:last-child{grid-column:1/-1}.section-heading{align-items:start}.section-heading .small{font-size:.73rem;text-align:right}.manual .section-heading{display:block}.manual .section-heading .small{display:block;text-align:left;margin-top:8px}footer{display:block}footer span{display:block;margin-bottom:8px}}@media(prefers-reduced-motion:no-preference){button,.dropzone{transition:background .15s}.panel{animation:arrive .3s ease-out}@keyframes arrive{from{opacity:.5;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}

.replacement-label{max-width:420px;margin-top:16px}.food-heading{flex-wrap:wrap}.row-portion{font-size:.9rem;font-weight:600;margin:0 0 12px;color:var(--ink)}#dish-checks{margin:18px 0}#dish-checks .food-row:last-child{padding-bottom:0}

.advanced{margin:18px 0;border:1px solid var(--border);border-radius:9px;padding:14px}.advanced summary{cursor:pointer;font-weight:600;font-size:.85rem}.advanced[open] summary{margin-bottom:16px}.followups{background:#f1f7f4;border-radius:10px;padding:18px;margin:12px 0 24px}.followups h3{margin-bottom:6px}.followups #questions{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.followups button{margin-bottom:8px}.quick-portions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 8px}.quick-portions button{font-size:.85rem}.food-row>.check{margin-top:14px}.food-row>.portion-controls>label{max-width:400px;min-width:140px}.food-fields select{min-width:0}#analysis-notes ul{padding-left:20px;margin-top:16px}@media(max-width:700px){.followups #questions{grid-template-columns:1fr}.food-row>.portion-controls{flex-wrap:wrap}.food-fields{grid-template-columns:1fr}.food-heading h3{max-width:100%;overflow-wrap:anywhere}.advanced{padding:12px}}

.match-quality{margin:12px 0;padding:12px 14px;border:1px solid var(--border);border-radius:8px;background:#f4f8f6}.match-quality strong{font-size:.82rem}.match-quality p{margin-top:4px}.match-quality.approximate,.match-quality.unresolved{background:#fff6e7;border-color:#ead8b7}.match-quality.approximate strong,.match-quality.unresolved strong,.comparison-caution{color:#80551d}.row-macros{font-size:.82rem;margin:-5px 0 12px}.nutrition-note:not(:empty),.review-note:not(:empty){margin:0 0 15px}.nutrition-note{color:#80551d}.comparison-caution{font-size:.8rem;margin:8px 0}.estimate .badge{white-space:normal;text-align:center}
.recipe-editor{margin:16px 0;padding:16px;border:1px solid var(--line,#d7ded8);border-radius:12px;background:#f6f8f3}.recipe-editor summary{font-weight:650;cursor:pointer}.recipe-ingredient{padding:14px 0;border-bottom:1px solid #d7ded8;display:grid;gap:8px}.recipe-ingredient label{display:grid;gap:5px}.recipe-ingredient input,.recipe-ingredient select{max-width:100%;min-width:0}.nutrient-table{width:100%;border-collapse:collapse;font-size:.85rem;margin-bottom:16px}.nutrient-table td,.nutrient-table th{padding:7px 2px;border-bottom:1px solid #e3e8e2;text-align:left}.nutrient-table td:last-child,.nutrient-table th:last-child{text-align:right;white-space:nowrap}
.nutrient-partial{display:block;color:#657065;font-size:.72rem;white-space:normal;max-width:180px;margin-left:auto}.nutrient-missing{font-size:.72rem;color:#657065;max-width:260px}.nutrient-missing summary{cursor:pointer}.nutrient-missing span{display:block;padding:4px 0}
