:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;color:#20362a;background:#eef4e7;font-synthesis:none;--green:#3f8c42;--muted:#637469;--line:#dce7da;--safe-bottom:max(16px,env(safe-area-inset-bottom),var(--tg-content-safe-area-inset-bottom,0px))}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:radial-gradient(ellipse at 110% 0%,#bfd7ae99,transparent 55%),radial-gradient(ellipse at -30% 65%,#c6dbc285,transparent 60%),linear-gradient(140deg,#e7f0dc,#f8faf4 55%,#edf3e8);background-attachment:fixed}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #286d36;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #79bd74;outline-offset:1px}button,a{touch-action:manipulation}p{line-height:1.55}h1,h2,h3,p{margin:0}h1{font-size:1.85rem;letter-spacing:-.06rem;font-weight:550;line-height:1.2}h2{font-size:1.25rem;font-weight:550;letter-spacing:-.025rem}h3{font-size:1.05rem;font-weight:550}small,.small{font-size:.875rem;line-height:1.45}.muted{color:var(--muted)}.eyebrow{font-size:.875rem;font-weight:500;letter-spacing:.03rem}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:16px}.gap-sm{gap:8px}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.shell{max-width:560px;margin:0 auto;padding:calc(22px + max(env(safe-area-inset-top),var(--tg-content-safe-area-inset-top,0px))) 20px calc(110px + var(--safe-bottom))}.brand{font-size:1.4rem;letter-spacing:-.04rem;color:#2c6f31}.brand img{width:33px;height:33px;object-fit:contain}.top{margin-bottom:26px}.avatar,.circle{width:46px;height:46px;border-radius:50%;border:1px solid #ffffffdf;background:#ffffff75;color:#2c6f31;display:flex;align-items:center;justify-content:center}.page-head{margin-bottom:24px}.page-head p{margin-top:7px}.glass{border:1px solid #ffffffcb;border-radius:25px;padding:22px;background:linear-gradient(135deg,#ffffffcf,#ffffff8f,#f5faf3c7);box-shadow:0 6px 24px #2c492806;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.energy{padding:24px}.energy-top{margin-bottom:14px}.energy-main{display:grid;grid-template-columns:1fr 146px;align-items:center;gap:4px}.energy-number{font-size:3.3rem;letter-spacing:-.19rem;line-height:1.12;font-weight:550}.ring{width:146px;height:146px;transform:rotate(-90deg)}.ring circle{fill:none;stroke-width:8}.ring .track{stroke:#dbe7d4}.ring .value{stroke:#4a9651;stroke-linecap:round;transition:stroke-dasharray .5s}.energy-visual{position:relative}.ring-center{position:absolute;inset:0;display:grid;place-content:center;text-align:center}.ring-center strong{font-size:1.65rem;letter-spacing:-.06rem;font-weight:550}.energy-sub{margin-top:10px;font-size:.875rem}.macro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:22px}.macro-grid strong{font-size:1.05rem;font-weight:550}.macro-grid progress{width:100%;margin-top:8px;height:5px}.macro-grid small{display:block;color:var(--muted);margin-top:5px}progress{appearance:none;-webkit-appearance:none;border:0;border-radius:6px;overflow:hidden;background:#e6eee2;height:6px}progress::-webkit-progress-bar{background:#e6eee2}progress::-webkit-progress-value{background:var(--green);border-radius:6px}progress::-moz-progress-bar{background:var(--green)}.fiber{border-top:1px solid #dfe8db;margin-top:18px;padding-top:14px}.primary,.secondary,.danger{border-radius:15px;min-height:48px;padding:12px 18px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;border:1px solid transparent}.primary{background:var(--green);color:white}.primary:hover{background:#337837}.secondary{background:#ffffff8a;border-color:var(--line);color:#315a37}.danger{background:#fcf1ed;border-color:#f0d7cf;color:#9e4439}.full{width:100%}.text-button{background:none;border:0;color:#347e3c;min-height:44px;padding:8px;font-size:.9rem}.section{margin-top:27px}.section-title{margin-bottom:13px}.meal-list{display:flex;flex-direction:column;gap:10px}.meal-row{width:100%;text-align:left;display:flex;align-items:center;gap:13px;border:1px solid #ffffffc9;background:#ffffffa8;padding:16px;border-radius:20px;color:inherit}.meal-row:hover{background:#fff}.meal-mark{width:42px;height:42px;display:grid;place-items:center;flex-shrink:0;background:#eaf2e4;border-radius:15px;color:#4f8d49}.meal-row .title{font-weight:500;line-height:1.4;overflow-wrap:anywhere}.meal-row .meta{margin-top:4px}.meal-kcal{text-align:right;font-size:1.1rem;white-space:nowrap}.meal-kcal small{display:block;color:var(--muted);font-size:.8rem;margin-top:3px}.empty{text-align:center;padding:27px 15px;line-height:1.5}.empty .icon{width:32px;height:32px;margin-bottom:9px;color:#789276}.empty p{color:var(--muted);font-size:.9rem;margin-top:6px}.nav{position:fixed;left:50%;bottom:calc(8px + max(env(safe-area-inset-bottom),var(--tg-content-safe-area-inset-bottom,0px)));transform:translateX(-50%);width:calc(100% - 28px);max-width:532px;display:flex;justify-content:space-around;z-index:5;border:1px solid #ffffffed;border-radius:27px;padding:6px 4px;background:#fcfef8e8;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);box-shadow:0 8px 26px #213b2210}.nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#65796c;background:transparent;border:0;min-width:54px;min-height:57px;padding:8px 11px;border-radius:22px;font-size:.75rem}.nav button.active{background:#e7f0e2;color:#2d7535}.nav .icon{width:22px;height:22px}.fab{position:fixed;right:max(22px,calc((100vw - 520px)/2));bottom:calc(100px + var(--safe-bottom));border:1px solid #ffffffad;background:var(--green);color:white;width:57px;height:57px;border-radius:50%;display:grid;place-items:center;z-index:4;box-shadow:0 5px 18px #3f8c4233}.fab .icon{width:27px;height:27px}.datebar{border-radius:17px;padding:5px;background:#ffffffbb;border:1px solid #fff;display:flex;align-items:center;gap:4px;margin-bottom:18px}.datebar input{flex:1;min-width:0;background:transparent;border:0;text-align:center;color:#315b37;width:100%;font-size:1rem;min-height:40px}.datebar button{border:0;background:none;color:#397e3d;width:40px;height:42px;display:grid;place-items:center}.chips{display:flex;gap:8px;overflow:auto;scrollbar-width:none;padding-bottom:5px;margin-bottom:15px}.chip{white-space:nowrap;border:1px solid #ffffffd0;border-radius:12px;background:#ffffffa8;color:#354b3c;padding:10px 14px;min-height:44px;font-size:.875rem}.chip.active{background:#e5efdf;border-color:#a9cba4;color:#2c7132}.search{display:flex;gap:8px;margin-bottom:16px}.search input{width:100%}.recipe-card{padding:0;overflow:hidden}.recipe-cover{height:92px;background:radial-gradient(ellipse at 80% 10%,#bdd5a4,transparent 70%),linear-gradient(135deg,#e1edda,#edf4e7);display:flex;align-items:center;justify-content:space-between;padding:20px;color:#4d7c45}.recipe-cover .icon{width:38px;height:38px;stroke-width:1.2}.recipe-body{padding:20px}.tag{display:inline-block;font-size:.8rem;background:#edf3e7;padding:5px 9px;border-radius:8px;color:#4b6c48}.recipe-body p{margin:9px 0 15px}.recipe-title{font-size:1.15rem;line-height:1.35}.recipe-nutrition{display:flex;gap:12px;flex-wrap:wrap;font-size:.875rem;color:var(--muted);margin:10px 0 15px}.recipe-nutrition strong{color:#36593b}.weight-stat{font-size:2rem;letter-spacing:-.06rem}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat-grid .glass{padding:18px}.stat-grid .stat{font-size:1.65rem;font-weight:550;margin-top:7px}.bars{width:100%;height:130px;margin:16px 0 4px;overflow:visible}.chart-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:.8rem}.award{border:1px solid var(--line);background:#ffffff60;border-radius:17px;padding:13px;display:flex;gap:12px;align-items:center}.award.locked{opacity:.6}.award .award-mark{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e6efdf;color:#467b3e;font-size:1.3rem}.award p{font-size:.875rem;margin-top:3px;color:var(--muted)}.settings-item{display:flex;gap:13px;align-items:center;background:none;border:0;color:inherit;text-align:left;width:100%;padding:17px 0;min-height:60px;border-bottom:1px solid var(--line)}.settings-item:last-child{border-bottom:0}.settings-item .icon{color:#478a49}.settings-item .chevron{margin-left:auto;color:#839282}.welcome{max-width:400px;margin:15vh auto;padding:24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:20px}.welcome img{object-fit:contain}.welcome p{color:var(--muted)}.spinner{height:24px;width:24px;border:2px solid #d0e0c6;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}dialog{border:1px solid #fff;border-radius:28px 28px 0 0;background:#f8fbf5;color:#20362a;width:100%;max-width:560px;max-height:90dvh;padding:0;position:fixed;inset:auto 0 0;margin:0 auto;overflow-y:auto;overscroll-behavior:contain}dialog::backdrop{background:#182c245c;backdrop-filter:blur(5px)}#sheet-content{padding:24px 22px calc(24px + var(--safe-bottom))}.sheet-head{margin-bottom:20px}.sheet-head .circle{width:38px;height:38px;background:#eaf1e4}.handle{width:36px;height:4px;background:#c9d6c3;border-radius:4px;margin:-12px auto 20px}label.field{display:flex;flex-direction:column;gap:7px;font-size:.875rem;color:#536b59}input,textarea,select{border:1px solid #d9e4d3;border-radius:13px;background:#ffffffd9;min-height:47px;padding:12px;color:#20362a;max-width:100%}textarea{width:100%;resize:vertical;min-height:110px;line-height:1.5}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-grid .wide{grid-column:1/-1}.nutrition-inputs{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.nutrition-inputs input{width:100%}.food-item{padding:13px;background:#edf3e9;border-radius:16px}.food-item input{width:100%;min-height:40px;padding:9px}.food-item .item-values{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.food-item label{font-size:.8rem;color:var(--muted);display:flex;flex-direction:column;gap:5px}.camera-options{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}.camera-options button{display:flex;flex-direction:column;align-items:center;gap:9px;padding:14px 5px;background:#ffffffa0;border:1px solid var(--line);border-radius:16px;color:#3d8041;min-height:76px;font-size:.875rem}.camera-options button.recording{background:#fbe2da;border-color:#d98976;color:#aa4337}.notice{font-size:.875rem;line-height:1.55;padding:13px 15px;border-radius:15px;background:#edf3e6;color:#4c664e}.error{background:#fbece7;color:#9a483e}.preline{white-space:pre-line;overflow-wrap:anywhere}.photos{display:grid;grid-template-columns:1fr 1fr;gap:12px}.photo img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:16px;background:#dfe9d7}.photo p{font-size:.875rem;margin:7px 0}.busy{display:flex;align-items:center;justify-content:center;padding:40px;gap:13px;color:var(--muted)}#toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(105px + var(--safe-bottom));background:#20362a;color:white;border-radius:15px;padding:13px 20px;width:max-content;max-width:calc(100vw - 32px);font-size:.9rem;z-index:30;box-shadow:0 5px 20px #0002}.link{color:#307b39}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.dot{width:7px;height:7px;border-radius:50%;background:#82ac6a}.entry-actions{display:flex;gap:8px}.entry-actions>*{flex:1}.sheet-sticky{position:sticky;bottom:0;background:#f8fbf5;padding:12px 0 0;margin-bottom:0}.help-list{padding-left:20px;line-height:1.8}.top-button{border:0;background:none;padding:0;cursor:pointer}.profile-head{margin-bottom:20px}.loading-skeleton{min-height:200px;background:#ffffff6b;border-radius:25px;animation:pulse 1.4s infinite alternate}@keyframes pulse{to{opacity:.45}}
@media(min-width:700px){.shell{padding-top:32px}.nav{bottom:20px}dialog{border-radius:28px;inset:auto 0 30px;max-height:85dvh}.fab{bottom:115px}body{background-size:100% 100%}}
@media(max-width:360px){.shell{padding-left:15px;padding-right:15px}.glass{padding:18px}.energy-main{grid-template-columns:1fr 130px}.ring{width:130px;height:130px}.energy-number{font-size:2.9rem}.nav button{padding:8px;min-width:50px}.form-grid{gap:10px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
