/* Mediterranean palette: cucumber green, pepper red and sunny yellow. */
:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#263b35;background:#f5f7f3;font-size:14px;--green:#246c50;--muted:#75827a;--border:#e2e8df}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,label.upload-card,select{cursor:pointer}button{border:0;border-radius:8px;padding:11px 16px;font-weight:600}button:disabled{opacity:.5;cursor:wait}a{color:var(--green)}button:focus-visible,a:focus-visible{outline:3px solid #b3cd73;outline-offset:3px}.sidebar{position:fixed;inset:0 auto 0 0;width:235px;background:#fff;border-right:1px solid var(--border);padding:34px 22px;display:flex;flex-direction:column}.brand{text-decoration:none;font-size:27px;letter-spacing:-1px;display:flex;gap:7px;align-items:center}.brand>span{color:#abc55e;font-size:32px}.brand b{font-size:22px;color:#284c3e}.side-label{font-size:9px;font-weight:700;letter-spacing:1.3px;color:#9aa79c;margin:14px 0 42px}nav{display:grid;gap:10px}nav button{display:flex;align-items:center;gap:12px;background:none;color:#75847b;text-align:left;padding:14px 10px;font-size:16px}nav button span{font-size:13px}nav button.active{color:var(--green);background:#eff5e9}nav small{margin-left:auto;font-size:10px}.side-bottom{margin-top:auto;font-size:12px;color:#6c7d71}.side-bottom p{font-size:11px;line-height:1.6}.local-dot{display:inline-block;width:7px;height:7px;background:#86a95e;border-radius:50%;margin-right:6px}.side-bottom #save-status{display:block;color:#94a18f;margin-top:16px;font-size:11px}main{margin-left:235px;max-width:1600px;padding:43px 45px 20px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#7c9173}.header-line{display:flex;justify-content:space-between;align-items:center;gap:20px}h1{font-size:32px;letter-spacing:-1px;font-weight:650;margin:13px 0 10px}header p{color:var(--muted);margin:0 0 33px;font-size:14px}h2{font-size:17px;font-weight:650;margin:0}h3{margin:0;font-size:16px}.primary{background:var(--green);color:#fff}.secondary{background:#fff;border:1px solid var(--border);color:#40564a;display:inline-block}.text-button{background:none;color:var(--green);padding:9px 0;font-size:12px;text-align:left}.muted{color:var(--muted);font-size:12px;line-height:1.6}.toolbar{display:flex;align-items:end;gap:15px;background:#edf1e8;border-radius:12px;padding:17px 20px;margin-bottom:22px}.toolbar label{margin-top:0}.toolbar select{min-width:125px}.toolbar-note{margin:auto 0 auto auto;max-width:340px;color:#7c8a75;font-size:11px;line-height:1.6;word-break:break-word}label{display:block;font-size:11px;color:#71816f;font-weight:600;margin:15px 0 7px}input,select,textarea{border:1px solid #dce4d6;border-radius:8px;background:#fff;color:#33473c;padding:11px 12px;max-width:100%;outline:none}input:focus,select:focus,textarea:focus{border-color:#74a36a;box-shadow:0 0 0 3px #eef4e7}textarea{resize:vertical;min-height:120px;width:100%;line-height:1.65}.budget-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:26px}.budget-card{border:1px solid var(--border);border-radius:12px;background:#fff;padding:19px 20px}.budget-card:first-child{background:#eaf0de;border-color:#dbe4c8}.budget-label{font-size:12px;color:#6e816a;display:flex;justify-content:space-between}.budget-number{font-size:28px;font-weight:650;margin-top:10px;letter-spacing:-.6px}.budget-number small{font-size:12px;color:#829079;font-weight:400;letter-spacing:0}.bar{height:5px;background:#e9eee5;border-radius:10px;margin:14px 0 9px;overflow:hidden}.bar>div{height:100%;background:#90ac66;max-width:100%}.budget-foot{color:#7b8975;font-size:11px}.workspace{display:grid;grid-template-columns:1.1fr 1fr;gap:22px;align-items:start}.panel{background:#fff;border:1px solid var(--border);border-radius:13px;padding:24px;margin-bottom:22px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.panel-head>div{display:flex;align-items:center;gap:12px}.step{font-size:11px;background:#eef3e6;color:#80976b;border-radius:6px;padding:7px}.pill{font-size:9px;color:#829775;background:#f0f4e9;padding:6px 9px;border-radius:4px;letter-spacing:.8px}.meal{border-top:1px solid #edf0e9;padding:19px 0;display:grid;grid-template-columns:22px 1fr;gap:12px}.meal input[type=checkbox]{width:18px;height:18px;accent-color:var(--green);margin:5px 0}.meal.off{opacity:.55}.meal-slot{font-size:9px;letter-spacing:1px;color:#87967c;margin-bottom:7px}.meal-title{font-size:14px;font-weight:600;line-height:1.5}.meal-macros{font-size:11px;color:#83907b;margin:9px 0 2px;line-height:1.8}.meal-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}.draft{font-size:10px;color:#ac7f3d}.confirmed{font-size:10px;color:#5d9260}.footnote{font-size:11px;line-height:1.7;color:#94a18b;border-top:1px solid #edf0e9;padding-top:15px}.swap-panel input,.swap-panel select{width:100%}.swap-info{margin:15px 0;color:#7f8c75;font-size:12px;line-height:1.7}.result-box{margin-top:18px;background:#edf3e4;border-radius:10px;padding:23px}.result-box .eyebrow{font-size:9px;letter-spacing:1.2px}.result-box h3{font-size:23px;line-height:1.45;margin:12px 0;color:#345c3b;letter-spacing:-.5px}.result-box p{font-size:12px;line-height:1.7;color:#789067;margin-bottom:0}.warning{background:#fff7e8;border:1px solid #f0e0bf;border-radius:8px;padding:13px 16px;color:#917440;font-size:12px;line-height:1.65;margin:14px 0}.warning ul{padding-left:18px;margin:5px 0}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;margin-top:20px}th{text-align:right;color:#8a987f;font-weight:500;font-size:10px;border-bottom:1px solid var(--border);padding:12px 10px;white-space:nowrap}td{padding:15px 10px;border-bottom:1px solid #f0f3eb;text-align:right}th:first-child,td:first-child{text-align:left}td:last-child{color:var(--green);font-weight:600}td.over{color:#b45b42}footer{display:flex;justify-content:space-between;color:#9aa790;font-size:11px;padding:8px 0 15px}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:25px}.upload-card{background:#fff;border:1px dashed #bdcdb0;border-radius:13px;padding:30px;margin:0;font-weight:400;color:#687d5d}.upload-card p{line-height:1.9;color:#8a9780;font-size:12px;margin:15px 0 22px}.upload-icon{font-size:28px;display:block;margin-bottom:20px}.document{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-bottom:1px solid var(--border);gap:15px}.document-actions{display:flex;align-items:center;gap:8px}.document-actions input{width:75px}.document-name{font-weight:600;margin-bottom:6px;font-size:13px}.source-info{font-size:12px;line-height:1.9;color:#71816a}#recipe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.recipe-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:22px;display:flex;flex-direction:column;align-items:start;gap:13px}.recipe-card h3{font-size:15px;line-height:1.6}.recipe-card .source{font-size:10px;color:#9aa78f;overflow-wrap:anywhere}.recipe-card button{margin-top:auto}.recipe-card .meal-macros{margin:0}dialog{width:650px;max-width:94vw;max-height:90vh;overflow:auto;border:1px solid var(--border);border-radius:15px;padding:28px;color:#344b3a}dialog::backdrop{background:#182b2466;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.icon-button{font-size:24px;background:none;padding:0 7px;color:#8a987f}.field-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 16px}.field-grid input{width:100%}.full-input{width:100%}.dialog-actions{display:flex;justify-content:end;gap:12px;margin-top:22px}.danger{color:#ad634e;background:#fff2ed;margin-right:auto}.check-label{display:flex;align-items:start;gap:9px;color:#627654;font-size:12px;line-height:1.65}.check-label input{margin-top:3px;accent-color:var(--green)}.error{color:#b45b42;font-size:12px}.empty{text-align:center;padding:30px;color:#8a987f;line-height:1.8}.busy{opacity:.65;pointer-events:none}[hidden]{display:none!important}#notice:not(:empty){padding:12px 18px;background:#eef3e4;border-radius:8px;margin-bottom:20px;font-size:12px}#notice.error{background:#fff0e8;color:#a45643}
@media(min-width:1450px){main{padding:48px 65px}}@media(max-width:1100px){.sidebar{width:195px;padding:28px 16px}main{margin-left:195px;padding:30px 24px}.toolbar{flex-wrap:wrap}.toolbar-note{margin-left:0}.workspace{grid-template-columns:1fr 1fr}#recipe-grid{grid-template-columns:repeat(2,1fr)}.budget-card{padding:16px}.budget-number{font-size:24px}h1{font-size:27px}}@media(max-width:780px){.sidebar{position:static;width:100%;padding:18px;flex-direction:row;align-items:center;gap:20px}.side-label,.side-bottom{display:none}nav{display:flex;margin-left:auto;gap:3px}nav button{padding:10px;font-size:18px}nav button span{display:none}main{margin-left:0;padding:26px 18px}.header-line{align-items:start}h1{font-size:25px}.header-line button{font-size:10px;white-space:nowrap}.budget-grid{grid-template-columns:repeat(2,1fr)}.workspace,.upload-grid{grid-template-columns:1fr}.toolbar{gap:12px}.toolbar-note{width:100%;order:5;max-width:none}#recipe-grid{grid-template-columns:1fr}.panel{padding:20px}.document{flex-direction:column;align-items:start}.document-actions{flex-wrap:wrap}.totals-panel .panel-head{align-items:start;flex-direction:column}footer{gap:20px;line-height:1.8}.brand b{font-size:18px}.brand{font-size:21px}}
.ingredient-row{background:#f8faf5;border:1px solid var(--border);border-radius:9px;padding:16px;margin:14px 0}.ingredient-row-head{display:flex;align-items:center;justify-content:space-between;font-size:12px}.ingredient-row label{line-height:1.5}.ingredient-row label input,.ingredient-row label select{display:block;width:100%;margin-top:6px}.ingredient-weight{margin:12px 0}#ingredient-builder{margin:22px 0;padding:18px;border:1px solid var(--border);border-radius:10px}#ingredient-builder summary{cursor:pointer;font-size:12px;font-weight:600;color:var(--green)}#ingredient-summary ul{max-height:170px;overflow:auto}#ingredient-builder>.muted{line-height:1.7}.dialog-actions{flex-wrap:wrap}
:root{font-size:16px}label{font-size:14px}.muted,.meal-macros,.budget-foot,.footnote,.source-info,.swap-info,.warning{font-size:14px}.side-label,.eyebrow,.meal-slot,.pill{font-size:12px}.sidebar{width:250px}main{margin-left:250px}nav button span{font-size:14px}.text-button{font-size:14px}.recipe-card .source{font-size:12px}th{font-size:12px}td{font-size:14px}.recipe-image{display:block;width:100%;max-width:300px;max-height:430px;object-fit:contain;margin:18px auto;border-radius:10px}.side-bottom{font-size:14px}.side-bottom p,.side-bottom #save-status{font-size:12px}@media(max-width:780px){.sidebar{width:100%}main{margin-left:0}}
