:root{--bg: #f6efe6;--bg-secondary: #efe5d9;--section-bg: #fffcf8;--text: #3b2a22;--hint: #8c7a6e;--accent: #e08a6a;--accent-strong: #c96f4f;--accent-soft: #f8e1d6;--accent-text: #ffffff;--olive: #8da36a;--olive-soft: #e6ecd9;--link: #b4613f;--destructive: #c2483a;--separator: rgba(107, 59, 42, .12);--protein: #e08a6a;--fat: #e2b45a;--carbs: #8da36a;--radius: 18px;--shadow: 0 1px 2px rgba(107, 59, 42, .06), 0 6px 18px rgba(107, 59, 42, .07);color-scheme:light}:root[data-theme=dark]{--bg: #1e1916;--bg-secondary: #251f1b;--section-bg: #2c2420;--text: #f3e9df;--hint: #a8968a;--accent: #e8957a;--accent-strong: #f0a68d;--accent-soft: #4a2e24;--accent-text: #2a160e;--olive: #a3b880;--olive-soft: #333a27;--link: #f0a68d;--destructive: #ef7a6c;--separator: rgba(243, 233, 223, .1);--protein: #e8957a;--fat: #e8c06c;--carbs: #a3b880;--shadow: 0 1px 2px rgba(0, 0, 0, .25);color-scheme:dark}@media(prefers-color-scheme:dark){:root:not([data-theme]){--bg: #1e1916;--bg-secondary: #251f1b;--section-bg: #2c2420;--text: #f3e9df;--hint: #a8968a;--accent: #e8957a;--accent-strong: #f0a68d;--accent-soft: #4a2e24;--accent-text: #2a160e;--olive: #a3b880;--olive-soft: #333a27;--link: #f0a68d;--separator: rgba(243, 233, 223, .1);--shadow: 0 1px 2px rgba(0, 0, 0, .25);color-scheme:dark}}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;line-height:1.4;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}button,input,select{font:inherit;color:inherit}.screen{min-height:100vh;padding:16px 16px calc(24px + env(safe-area-inset-bottom));max-width:560px;margin:0 auto}.screen.with-bottom-bar{padding-bottom:calc(96px + env(safe-area-inset-bottom))}.center{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px}h1{font-size:22px;line-height:1.25;margin:0 0 8px}h2{font-size:17px;margin:0 0 8px}p{margin:0 0 12px}.hint{color:var(--hint);margin:0 0 12px}.note{background:var(--section-bg);border-left:3px solid var(--accent);border-radius:8px;padding:10px 12px}.error{color:var(--destructive);margin:12px 0}.link{background:none;border:none;padding:8px 0;color:var(--link);cursor:pointer;text-align:left}.stack{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.progress{height:4px;border-radius:2px;background:var(--bg-secondary);overflow:hidden;margin:4px 0 20px}.progress-fill{height:100%;background:var(--accent);transition:width .25s ease}.step-title{margin-bottom:6px}.step-body{margin-top:16px}.options{display:flex;flex-direction:column;gap:8px}.option{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:14px 16px;border:2px solid transparent;border-radius:var(--radius);background:var(--section-bg);text-align:left;cursor:pointer;transition:border-color .15s ease}.option.selected{border-color:var(--accent)}.option-label{font-weight:600}.option-hint{color:var(--hint);font-size:14px}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.chip{padding:8px 14px;border-radius:999px;border:1.5px solid var(--separator);background:var(--section-bg);cursor:pointer;min-width:44px}.chip.selected{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.check-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:var(--radius);background:var(--section-bg);cursor:pointer;margin-bottom:8px}.stack .check-row{margin-bottom:0}.check-row input{position:absolute;opacity:0;pointer-events:none}.check-box{flex:none;width:22px;height:22px;border-radius:6px;border:2px solid var(--hint);display:grid;place-items:center}.check-row.selected .check-box{background:var(--accent);border-color:var(--accent)}.check-row.selected .check-box:after{content:"";width:6px;height:11px;border:solid var(--accent-text);border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}.check-row input:focus-visible+.check-box{outline:2px solid var(--accent);outline-offset:2px}.field{margin-bottom:14px;min-width:0}.field-label{display:block;font-size:14px;color:var(--hint);margin:4px 0 6px}.field-input{display:flex;align-items:center;border-radius:10px;background:var(--section-bg);border:1.5px solid transparent;padding:0 12px}.field-input.invalid{border-color:var(--destructive)}.field-input input{flex:1;min-width:0;border:none;background:none;padding:12px 0;outline:none;font-size:17px}.field-unit{color:var(--hint);margin-left:6px}.field-error{color:var(--destructive);font-size:13px;margin-top:4px}.text-input{width:100%;border-radius:10px;border:1.5px solid transparent;background:var(--section-bg);padding:12px;font-size:16px;outline:none}.text-input:focus,.field-input:focus-within{border-color:var(--accent)}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}@media(max-width:340px){.grid-3{grid-template-columns:1fr}}.add-row{display:flex;gap:8px;margin-bottom:10px}.removable{font-size:14px}.button-primary,.button-secondary{border:none;border-radius:10px;padding:12px 16px;cursor:pointer;font-weight:600}.button-primary{width:100%;background:var(--accent);color:var(--accent-text);padding:14px 16px}.button-secondary{background:var(--section-bg);color:var(--link);white-space:nowrap}.button-primary:disabled,.button-secondary:disabled{opacity:.5;cursor:default}.fallback-bar{position:fixed;left:0;right:0;bottom:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--separator)}.kcal-hero{display:flex;align-items:baseline;gap:8px;margin:8px 0 16px}.kcal-value{font-size:44px;font-weight:700;letter-spacing:-1px}.kcal-unit{color:var(--hint)}.macro-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}.macro{background:var(--section-bg);border-radius:var(--radius);padding:12px}.macro-grams{font-size:20px;font-weight:700}.macro-label{color:var(--hint);font-size:13px;margin-bottom:8px}.macro-bar{height:4px;border-radius:2px;background:var(--separator);overflow:hidden}.macro-bar>div{height:100%}.macro.protein .macro-bar>div{background:var(--protein)}.macro.fat .macro-bar>div{background:var(--fat)}.macro.carbs .macro-bar>div{background:var(--carbs)}.card{background:var(--section-bg);border-radius:var(--radius);padding:14px 16px;margin:12px 0}.card p:last-child{margin-bottom:0}.explain{margin:0 0 8px;padding-left:20px}.explain li{margin-bottom:6px}.tips{padding-left:20px}.tips li{margin-bottom:6px}.policy h1{font-size:20px}.policy h2{margin-top:20px}.policy blockquote{margin:0 0 12px;padding:8px 12px;border-left:3px solid var(--hint);color:var(--hint);font-size:14px}.policy code{background:var(--section-bg);padding:1px 4px;border-radius:4px}.spinner{width:32px;height:32px;border:3px solid var(--bg-secondary);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation-duration:2s}.progress-fill,.option{transition:none}}.screen.with-tabs{padding-bottom:calc(84px + env(safe-area-inset-bottom))}.tabbar{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:var(--bg);border-top:1px solid var(--separator);padding:6px 4px calc(6px + env(safe-area-inset-bottom));z-index:10}.tab{background:none;border:none;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 0;color:var(--hint);cursor:pointer;min-height:44px}.tab.active{color:var(--accent)}.tab-icon{font-size:18px;line-height:1}.tab-label{font-size:11px}.today-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.ring{position:relative;flex:none;width:132px;height:132px}.ring circle{fill:none;stroke-width:10}.ring-track{stroke:var(--section-bg)}.ring-value{stroke:var(--accent);stroke-linecap:round;transition:stroke-dashoffset .4s ease}.ring-value.over{stroke:var(--fat)}.ring-label{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.ring-number{font-size:24px;font-weight:700}.ring-caption{font-size:11px;color:var(--hint)}.macro-bars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:8px 0 4px}.macro-line-head{display:flex;justify-content:space-between;font-size:13px;margin-bottom:4px;gap:4px}.macro-line.protein .macro-bar>div{background:var(--protein)}.macro-line.fat .macro-bar>div{background:var(--fat)}.macro-line.carbs .macro-bar>div{background:var(--carbs)}.section-title{margin:20px 0 10px}.cards{display:flex;flex-direction:column;gap:8px}.meal-card{display:flex;align-items:stretch;background:var(--section-bg);border-radius:var(--radius);overflow:hidden}.meal-card.eaten{opacity:.7}.meal-main{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 14px;background:none;border:none;text-align:left;cursor:pointer}.meal-slot{font-size:13px;color:var(--hint);display:flex;gap:6px;align-items:center;flex-wrap:wrap}.meal-name{font-weight:600}.badge{font-size:11px;padding:1px 6px;border-radius:6px;background:var(--bg);color:var(--hint)}.macro-inline{font-size:13px;color:var(--hint)}.eat-toggle{flex:none;width:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:none;border:none;border-left:1px solid var(--separator);cursor:pointer;color:var(--hint)}.eat-label{font-size:11px}.eat-toggle.on .check-box{background:var(--accent);border-color:var(--accent)}.eat-toggle.on .check-box:after{content:"";width:6px;height:11px;border:solid var(--accent-text);border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}.workout-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;border:none;text-align:left;cursor:pointer}.week-day-head{display:flex;justify-content:space-between;align-items:baseline}.week-day-head h2{margin:0 0 6px}.week-list{list-style:none;margin:0;padding:0}.link-row{display:flex;flex-direction:column;align-items:flex-start;width:100%;background:none;border:none;padding:8px 0;text-align:left;border-top:1px solid var(--separator);cursor:pointer}.link-row.muted{cursor:default}.shop-item{display:flex;justify-content:space-between;gap:8px;width:100%}.check-label{flex:1;min-width:0}.struck{text-decoration:line-through;color:var(--hint)}.ingredients{list-style:none;margin:0;padding:0}.ingredients li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--separator)}.steps{padding-left:22px;margin:0 0 16px}.steps li{margin-bottom:10px}.wide{width:100%;margin-top:8px}.ex-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.ex-row{background:var(--section-bg);border-radius:var(--radius);padding:10px 14px}.ex-head{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;background:none;border:none;padding:0;text-align:left;font-weight:600;cursor:pointer}.ex-head .hint{font-weight:400;font-size:14px;margin:0}.set-dots{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.set-dot{width:40px;height:40px;border-radius:50%;border:2px solid var(--separator);background:var(--bg);cursor:pointer;font-weight:600}.set-dot.on{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.technique{margin-top:10px;font-size:14px}.technique-title{font-weight:600;margin-top:8px}.technique ol,.technique ul{margin:4px 0;padding-left:20px}.rest-timer{position:fixed;left:12px;right:12px;bottom:calc(16px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-radius:var(--radius);background:var(--accent);color:var(--accent-text);z-index:20;box-shadow:0 4px 16px #0003}.rest-timer b{font-size:20px}.week-day-head h2:first-letter{text-transform:uppercase}.add-food{width:100%;margin-top:12px}.logged-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}.logged-list li{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:var(--section-bg)}.icon-button{margin-left:8px;border:none;background:transparent;color:var(--hint);font-size:15px;padding:4px 6px;cursor:pointer}.search-input{width:100%;box-sizing:border-box;padding:12px 14px;margin:8px 0 12px;border-radius:12px;border:1px solid color-mix(in srgb,var(--hint) 30%,transparent);background:var(--section-bg);color:var(--text);font-size:16px}.food-hit{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left}.success{color:#2e9e5b}.small{font-size:13px}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.stat{padding:12px;border-radius:14px;background:var(--section-bg)}.stat-value{font-size:22px;font-weight:700}.stat-label{font-size:13px;color:var(--hint)}.chart{margin:0}.chart svg{width:100%;height:auto;display:block}.chart-grid{stroke:color-mix(in srgb,var(--hint) 25%,transparent);stroke-width:1}.chart-axis{fill:var(--hint);font-size:10px}.chart-trend{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}.chart-dot{fill:color-mix(in srgb,var(--accent) 45%,var(--bg))}.chart-legend{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--hint)}.legend-dot,.legend-line{display:inline-block;background:color-mix(in srgb,var(--accent) 45%,var(--bg))}.legend-dot{width:8px;height:8px;border-radius:50%}.legend-line{width:16px;height:3px;margin-left:10px;background:var(--accent);border-radius:2px}.weight-form{display:grid;gap:8px;margin:16px 0}.settings{display:grid;gap:4px}.toggle-row,.time-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid color-mix(in srgb,var(--hint) 15%,transparent)}.toggle-row input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}.time-row input[type=time]{padding:6px 8px;border-radius:8px;border:1px solid color-mix(in srgb,var(--hint) 30%,transparent);background:var(--section-bg);color:var(--text);font-size:15px}.weekday-row{padding:10px 0}.feedback{display:grid;gap:10px}.tabbar .tab-label{font-size:11px}.link-button{border:none;background:none;color:var(--link);font-size:15px;padding:8px 0;cursor:pointer}.paywall{display:grid;gap:8px;text-align:left}.price{font-size:28px;font-weight:700;margin:12px 0 4px}.feature-list{list-style:none;padding:0;margin:8px 0 12px;display:grid;gap:8px}.badge-line{display:inline-block;padding:4px 10px;border-radius:999px;background:var(--section-bg);font-size:14px}.subscription-row{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;text-align:left}h1{font-size:24px;font-weight:700;letter-spacing:-.01em}.card,.meal-card,.option,.stat,.logged-list li,.check-row,.food-hit,.ex-row{background:var(--section-bg);box-shadow:var(--shadow);border-radius:var(--radius)}.meal-card{transition:transform .15s ease,opacity .2s ease}.meal-card:active,.card:active{transform:scale(.99)}.meal-card.eaten{opacity:.6}.meal-slot{color:var(--accent-strong);font-weight:600;font-size:12px;letter-spacing:.02em}.slot-icon{width:22px;height:22px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent-strong)}.slot-icon svg{width:14px;height:14px}.badge{background:var(--olive-soft);color:var(--olive);border-radius:999px;padding:2px 8px;font-weight:600}.eat-toggle{border-left:1px dashed var(--separator)}.check-box{border-radius:50%}.option{border:2px solid transparent}.option.selected{border-color:var(--accent);background:var(--accent-soft)}.chip{border:none;background:var(--section-bg);box-shadow:var(--shadow)}.chip.selected{background:var(--accent);color:var(--accent-text)}.button-primary{border-radius:16px;box-shadow:0 6px 16px #e08a6a59}.button-secondary{border-radius:14px;background:var(--accent-soft);color:var(--accent-strong)}.note{border-left:none;border-radius:var(--radius);background:var(--olive-soft);color:var(--text);position:relative;padding-left:40px}.note:before{content:"";position:absolute;left:14px;top:13px;width:14px;height:14px;border-radius:50%;background:var(--olive)}.progress{background:var(--bg-secondary)}.progress-fill{background:var(--accent)}.macro-bar{background:var(--bg-secondary);height:8px;border-radius:999px}.macro-bar>div{border-radius:999px}.ring circle{stroke-width:12}.ring-track{stroke:var(--bg-secondary)}.ring-number{font-size:26px;letter-spacing:-.02em}.spinner{border-color:var(--accent-soft);border-top-color:var(--accent)}.greeting{display:flex;align-items:center;gap:10px;margin-bottom:14px}.greeting img{width:30px;height:30px}.greeting-text{font-size:15px;color:var(--hint)}.greeting-text b{color:var(--text)}.today-card{background:var(--section-bg);box-shadow:var(--shadow);border-radius:24px;padding:16px}.tabbar{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));border:none;border-radius:22px;background:var(--section-bg);box-shadow:0 8px 24px #6b3b2a24;padding:6px 4px}:root[data-theme=dark] .tabbar{box-shadow:0 8px 24px #0006}.screen.with-tabs{padding-bottom:calc(100px + env(safe-area-inset-bottom))}.tab{border-radius:16px;transition:color .15s ease,background .15s ease}.tab.active{color:var(--accent-strong);background:var(--accent-soft)}.tab-icon svg{width:22px;height:22px;display:block}.tab-label{font-weight:600}.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:24px 8px}.empty img{width:88px;height:88px;margin-bottom:8px}.pulse{animation:pulse 1.6s ease-in-out infinite}@keyframes pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(.92);opacity:.75}}@media(prefers-reduced-motion:reduce){.pulse{animation:none}}.chart-trend{stroke:var(--accent)}.chart-dot,.legend-dot{fill:var(--olive);background:var(--olive)}.legend-line{background:var(--accent)}.price{color:var(--accent-strong)}.shop-row{display:flex;flex-direction:column}.alt{padding:0 14px}.alt-toggle{font-size:13px;padding:4px 0 2px}.alt-list{display:flex;flex-direction:column;gap:4px;padding:8px 12px;margin:2px 0 6px;border-radius:14px;background:var(--olive-soft)}.alt-item{font-size:14px}.plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.plan-price{font-size:18px;font-weight:700;color:var(--accent-strong)}.family-list{list-style:none;padding:0;margin:8px 0;display:grid;gap:6px}.family-list li{display:flex;justify-content:space-between;align-items:center}.family-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.muscle-map{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end;margin:4px 0 8px}.muscle-figure{margin:0;text-align:center}.muscle-figure svg{width:100%;max-height:200px}.m-body{fill:var(--bg-secondary)}.m-idle{fill:color-mix(in srgb,var(--text) 9%,var(--bg-secondary))}.m-primary{fill:var(--accent)}.m-secondary{fill:color-mix(in srgb,var(--accent) 40%,var(--bg-secondary))}.muscle-legend{grid-column:1 / -1;display:flex;gap:14px;justify-content:center;font-size:12px;color:var(--hint)}.muscle-legend .dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px;vertical-align:-1px}.muscle-legend .dot.m-primary{background:var(--accent)}.muscle-legend .dot.m-secondary{background:color-mix(in srgb,var(--accent) 40%,var(--bg-secondary))}.ring{width:clamp(100px,31vw,132px);height:clamp(100px,31vw,132px)}.ring svg{width:100%;height:100%}.today-head>div:first-child{min-width:0}.macro-bars{align-items:end}.macro-line-head{flex-direction:column;align-items:flex-start;gap:0;font-size:12px;line-height:1.3}.macro-line-head .hint{margin:0;white-space:nowrap;font-size:12px}.tab{min-width:0;padding:4px 2px}.tab-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px}@media(max-width:360px){.screen{padding-left:12px;padding-right:12px}.today-card{padding:14px 12px}.ring-number{font-size:22px}.tabbar{left:6px;right:6px}.tab-icon svg{width:20px;height:20px}}.plan-price{white-space:nowrap;font-size:20px;line-height:1.2}.plan-period{font-size:12px;color:var(--hint);margin-top:-2px}.screen{min-height:var(--tg-viewport-stable-height, 100vh)}
