:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203a2c;background:#f6f8f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #9bc787;outline-offset:2px}.app{max-width:540px;margin:auto;min-height:100dvh;padding:0 18px 110px}.top{height:78px;display:flex;align-items:center;justify-content:space-between}.brand{font-size:34px;font-weight:850;letter-spacing:-2px}.brand span{color:#8eaf65}.topright{display:flex;align-items:center;gap:10px}.pill{font-size:11px;background:#e9f1e3;border-radius:30px;padding:8px 10px;color:#56725b}.avatar{background:#e0e9d7;border-radius:50%;width:31px;height:31px;display:grid;place-items:center;font-weight:700}.eyebrow{font-size:12px;color:#74877b;font-weight:600}.headline{font-size:29px;letter-spacing:-1.1px;margin:7px 0 20px}.sectiontitle{display:flex;justify-content:space-between;align-items:center;margin:22px 0 12px}.sectiontitle h2{font-size:17px;margin:0}.muted{color:#85958b;font-size:12px}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:11px}.card{border-radius:21px;background:white;padding:17px;box-shadow:0 3px 15px #24482c09}.card.green{background:#e4f0d9}.card.wide{grid-column:span 2}.kicker{font-size:12px;font-weight:650;color:#688071}.big{font-size:33px;font-weight:800;letter-spacing:-1.5px;margin:12px 0}.big small{font-size:13px;font-weight:500;color:#7a9181;letter-spacing:0}.track{height:8px;border-radius:10px;background:#d6e3d1;overflow:hidden}.fill{height:100%;background:#78a858;border-radius:10px}.note{font-size:11px;color:#758b7c;margin-top:10px}.mix{display:flex;gap:5px;height:11px;margin:13px 0 7px;border-radius:8px;overflow:hidden;background:#e8eee5}.mix span{min-width:0}.legend{display:flex;flex-wrap:wrap;gap:8px;font-size:10px;color:#7b8f81}.legend i{display:inline-block;width:8px;height:8px;border-radius:3px;margin-right:3px}.quickgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.foodtile{background:#fff;border:1px solid #edf1eb;border-radius:17px;padding:13px 6px;min-height:89px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#284b33}.foodtile .emoji{font-size:27px}.foodtile .foodname{font-size:12px;font-weight:650;text-align:center;overflow-wrap:anywhere}.foodtile.selected{border:2px solid #80ad63;background:#f0f7e9;padding:12px 5px}.entrypanel{background:#edf5e7;border:1px solid #d6e9c9;border-radius:16px;padding:13px;margin:7px 0 12px}.entrypanel strong{font-size:13px}.amounts{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.amounts button,.smallbutton{border:1px solid #d5e3d0;background:white;border-radius:11px;padding:9px 11px;font-size:12px;color:#32543b}.amounts button.active{background:#3d7045;color:white;border-color:#3d7045}.customamount{display:flex;align-items:center;gap:8px;margin-top:10px}.customamount input{width:92px;border:1px solid #d6e2d2;border-radius:10px;padding:9px}.primary{background:#366d45;color:white;border:0;border-radius:12px;padding:11px 14px;font-weight:700}.primary:disabled{opacity:.45}.logrow,.resultrow{display:flex;align-items:center;gap:11px;background:white;border-radius:15px;padding:12px;margin-bottom:7px}.rowemoji{font-size:22px;width:29px;text-align:center}.rowtext{flex:1;min-width:0}.rowtext strong{font-size:13px;display:block}.rowtext small{font-size:11px;color:#8b998e}.iconbtn{border:0;background:#f1f5ee;border-radius:10px;padding:9px 11px;color:#56735a}.empty{font-size:13px;color:#819184;padding:17px;background:white;border-radius:15px}.searchwrap{position:relative}.searchwrap input{width:100%;border:1px solid #e4ebe0;background:white;border-radius:15px;padding:15px 42px 15px 16px;font-size:15px;outline:0}.clear{position:absolute;right:8px;top:7px;background:#edf1ea;border:0;border-radius:50%;height:31px;width:31px;font-size:19px;color:#67786b}.filter{display:flex;overflow:auto;gap:7px;padding:12px 0 15px;scrollbar-width:none}.filter button{flex-shrink:0;border:1px solid #dce7d8;border-radius:20px;background:white;padding:8px 12px;color:#6c806e;font-size:12px}.filter button.active{background:#315e3b;color:white}.resultrow{align-items:flex-start}.resultrow .actions{display:flex;gap:6px}.results{margin-bottom:20px}.inlinewrap{margin:0 0 9px 40px}.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(540px,100%);display:flex;justify-content:space-around;background:#ffffffed;backdrop-filter:blur(12px);border-top:1px solid #e5ebe3;padding:10px 10px calc(11px + env(safe-area-inset-bottom))}.bottom button{border:0;background:transparent;color:#96a49a;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:75px}.bottom button span{font-size:23px}.bottom button.active{color:#386c43;font-weight:800}.toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);background:#264c32;color:white;border-radius:12px;padding:10px 17px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90%;text-align:center}.toast.show{opacity:1}.weekfoods{display:flex;flex-wrap:wrap;gap:7px}.chip{background:#eaf3e5;color:#3c6646;padding:8px 10px;border-radius:20px;font-size:12px}.footnote{font-size:11px;color:#819184;line-height:1.5;margin:16px 2px}

.entrypanel label{display:block;font-size:12px;margin:10px 0;color:#56735a}.entrypanel label input,.entrypanel select{display:block;width:100%;border:1px solid #d6e2d2;border-radius:10px;padding:10px;margin-top:5px;background:white;color:#203a2c}.historyday h3{font-size:14px;margin:18px 0 9px}.toastundo{margin-left:12px;background:transparent;border:0;color:#d9f8b8;font-weight:800;text-decoration:underline}.bottom button{min-width:0;flex:1}.bottom{z-index:10}.toast{z-index:20}

/* v6: compact overview, in-place search, six stable quick actions */
.top{height:64px}.headline{font-size:26px;margin:5px 0 12px}.card{padding:13px;border-radius:17px}.big{font-size:29px;margin:7px 0}.big small{font-size:12px}.note{margin-top:6px}.track{height:6px}.metrics{gap:8px}.card.wide{padding:11px 13px}.mix{margin:8px 0 6px;height:8px}.legend{gap:6px}.sectiontitle{margin:17px 0 9px}.foodtile{min-height:90px;padding:10px 7px}.foodtile .foodname{overflow-wrap:normal;word-break:normal;hyphens:auto;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%}.foodtile .emoji{font-size:25px}.today-search{margin-top:13px}.searchlabel{font-size:13px;font-weight:700;display:block;margin-bottom:7px}.today-results{margin-top:7px;border-radius:15px;overflow:hidden;background:#fff;box-shadow:0 3px 15px #24482c09}.today-result+.today-result{border-top:1px solid #edf1eb}.today-result-select{width:100%;border:0;background:white;text-align:left;display:flex;align-items:center;gap:10px;padding:10px 12px;color:#284b33}.today-result-select .rowtext{display:block}.today-result-select .rowtext strong{display:block}.today-result-select .rowtext small{display:block}.today-results .inlinewrap{margin:0;padding:0 10px 5px}.searchwrap input{padding:12px 42px 12px 14px}.clear{top:5px}.inline-quick{min-width:0}.entrypanel strong{overflow-wrap:normal;word-break:normal}.foodtile:focus-visible,.today-result-select:focus-visible{outline:3px solid #9bc787;outline-offset:1px}
