:root{--bg:#181818;--surface:#262626;--surface-2:#2f2f2f;--surface-3:#383838;--line:#ffffff14;--line-strong:#ffffff29;--text:#f5f5f4;--text-2:#c2c2bd;--text-3:#9e9e99;--accent:#4f8463;--accent-strong:#5f9a75;--accent-fill:#467a5a;--accent-fill-hover:#3e6e51;--accent-soft:#4f84632e;--accent-text:#8cc4a0;--protein:#5f9a75;--carbs:#a9cdb4;--fat:#6d7a72;--calories:#4f8463;--danger-text:#e3a2a2;--radius-s:8px;--radius:14px;--radius-l:20px;--shadow:0 12px 40px #00000073;--tab-height:64px;--safe-bottom:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-top,0px);--gutter:16px;--font:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box;margin:0;padding:0}html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}html.has-layer,html.has-layer body{overflow:hidden}body{background:var(--bg);color:var(--text);font:15px/1.45 var(--font);-webkit-font-smoothing:antialiased;overscroll-behavior-y:none;min-height:100dvh}button,input,select,textarea{font:inherit;color:inherit}input,select,textarea{font-size:16px}button,a,input,select,label{touch-action:manipulation}button{cursor:pointer;background:0 0;border:0}button:disabled{cursor:default;opacity:.45}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}ul,ol{list-style:none}h1{letter-spacing:-.02em;font-size:1.75rem;font-weight:750;line-height:1.15}h2{letter-spacing:-.01em;font-size:1.1rem;font-weight:700}h3{font-size:.95rem;font-weight:650}mark{background:var(--accent-soft);color:var(--accent-text);border-radius:3px;padding:0 1px}:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px;border-radius:6px}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;overflow:hidden;position:absolute!important}.muted{color:var(--text-2)}.small{font-size:.8rem}.icon{flex:none}.boot{place-items:center;min-height:100dvh;display:grid}.boot img{opacity:.9;border-radius:18px;animation:1.4s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.5}}.crash{text-align:center;place-content:center;gap:12px;min-height:100dvh;padding:24px;display:grid}.app-main{padding-bottom:calc(var(--tab-height) + var(--safe-bottom) + 24px);min-height:100dvh}.tab-bar{z-index:50;height:calc(var(--tab-height) + var(--safe-bottom));padding-bottom:var(--safe-bottom);-webkit-backdrop-filter:blur(16px);border-top:1px solid var(--line);background:#181818eb;justify-content:space-around;display:flex;position:fixed;inset:auto 0 0}.tab{color:var(--text-3);letter-spacing:.01em;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;font-size:.7rem;font-weight:600;transition:color .15s;display:flex}.tab.is-active{color:var(--accent-text)}.tab-icon{display:grid;position:relative}.tab-badge{background:var(--accent-fill);color:#fff;border-radius:9px;place-items:center;min-width:18px;height:18px;padding:0 5px;font-size:.65rem;font-weight:700;display:grid;position:absolute;top:-4px;right:-10px}.page-header{padding:calc(var(--safe-top) + 20px) var(--gutter) 12px;flex-direction:column;gap:12px;display:flex}.page-title-row{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.page-subtitle{color:var(--text-2);margin-top:4px;font-size:.9rem}.page-actions{flex:none;align-items:center;gap:4px;display:flex}.page-content{padding:4px var(--gutter) 16px;flex-direction:column;gap:16px;display:flex}.page-note{font-size:.85rem}.button{background:var(--accent-fill);color:#fff;white-space:nowrap;cursor:pointer;border-radius:12px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:0 18px;font-weight:650;transition:background .15s,transform .1s;display:inline-flex}.button:hover:not(:disabled){background:var(--accent-fill-hover)}.button:active:not(:disabled){transform:scale(.98)}.button-small{border-radius:10px;min-height:36px;padding:0 14px;font-size:.875rem}.button-block{width:100%}.button-secondary{background:var(--surface-2);color:var(--text)}.button-secondary:hover:not(:disabled){background:var(--surface-3)}.button-ghost{background:var(--accent-soft);color:var(--accent-text)}.button-ghost:hover:not(:disabled){background:#4f846347}.button-danger{background:#6b3434}.button-danger:hover:not(:disabled){background:#7d3c3c}.button-danger-ghost{color:var(--danger-text);background:0 0;border:1px solid #e3a2a24d}.button-danger-ghost:hover:not(:disabled){background:#e3a2a214}.text-button{color:var(--accent-text);white-space:nowrap;padding:6px 4px;font-size:.875rem;font-weight:600}.text-button:disabled{color:var(--text-3)}.button-row{flex-wrap:wrap;gap:8px;display:flex}.footer-row{gap:8px;display:flex}.footer-row>.button{flex:1}.icon-button{width:40px;height:40px;color:var(--text-2);border-radius:12px;place-items:center;transition:background .15s,color .15s;display:grid;position:relative}.icon-button:hover:not(:disabled){background:var(--surface);color:var(--text)}.icon-button.is-active{color:var(--accent-text);background:var(--accent-soft)}.icon-button.on-image{color:#fff;-webkit-backdrop-filter:blur(8px);background:#00000073}.icon-button.on-image.is-active{color:var(--accent-text)}.icon-button-badge{background:var(--accent);color:#fff;border-radius:8px;place-items:center;min-width:16px;height:16px;font-size:.6rem;font-weight:700;display:grid;position:absolute;top:4px;right:4px}.chip-row{scrollbar-width:none;margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter);scroll-padding:var(--gutter);gap:8px;display:flex;overflow-x:auto}.chip-row::-webkit-scrollbar{display:none}.chip-row-wrap{flex-wrap:wrap;margin:0;padding:0;overflow:visible}.chip{background:var(--surface);height:34px;color:var(--text-2);border:1px solid #0000;border-radius:17px;flex:none;align-items:center;gap:6px;padding:0 14px;font-size:.85rem;font-weight:550;transition:background .15s,color .15s;display:inline-flex}.chip:hover:not(:disabled){color:var(--text)}.chip.is-active{background:var(--accent-fill);color:#fff}.chip.is-removable{background:var(--accent-soft);color:var(--accent-text);padding-right:10px}.chip-count{opacity:.75;font-variant-numeric:tabular-nums;font-size:.72rem}.chip.is-active .chip-count{opacity:.9}.tag{background:var(--surface-2);color:var(--text-2);letter-spacing:.02em;border-radius:6px;padding:3px 9px;font-size:.72rem;font-weight:600;display:inline-block}.tag-row{flex-wrap:wrap;gap:6px;display:flex}.badge{color:#e7e7e3;-webkit-backdrop-filter:blur(6px);background:#0009;border-radius:8px;align-items:center;gap:4px;height:24px;padding:0 8px;font-size:.72rem;font-weight:650;display:inline-flex}.badge-ready{background:var(--accent-fill);color:#fff}.pill{color:#f0f0ec;-webkit-backdrop-filter:blur(6px);background:#0000008c;border-radius:11px;align-items:center;gap:4px;height:22px;padding:0 8px;font-size:.7rem;font-weight:600;display:inline-flex}.text-input,.select-input{border:1px solid var(--line);background:var(--surface);width:100%;min-height:44px;color:var(--text);border-radius:12px;outline:none;padding:10px 12px;transition:border-color .15s}.text-input:focus,.select-input:focus{border-color:var(--accent)}textarea.text-input{resize:vertical;min-height:64px;line-height:1.45}.select-input{appearance:none;background-image:linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);background-position:calc(100% - 18px),calc(100% - 13px);background-repeat:no-repeat;background-size:5px 5px;padding-right:32px}.text-input::placeholder{color:var(--text-3)}.number-input{border:1px solid var(--line);background:var(--surface);border-radius:12px;align-items:center;gap:6px;min-width:0;min-height:44px;padding:0 12px;transition:border-color .15s;display:inline-flex}.number-input:focus-within{border-color:var(--accent)}.number-input input{font-variant-numeric:tabular-nums;text-align:right;background:0 0;border:0;outline:none;width:100%;min-width:2.5ch;font-weight:600}.number-input-suffix{color:var(--text-3);flex:none;font-size:.85rem}.field{flex-direction:column;gap:8px;min-width:0;display:flex}.field-label{letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);font-size:.72rem;font-weight:700}.field-label-row{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.field-label-row strong{color:var(--accent-text);font-size:.9rem}.field-hint{color:var(--text-3);font-size:.8rem}.field-inline{flex-direction:row;justify-content:space-between;align-items:center}.field-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;display:grid}.inline-fields{gap:8px;display:flex}.inline-fields>*{flex:1}.form-stack{flex-direction:column;gap:18px;display:flex}.form-error{color:var(--danger-text);font-size:.85rem;font-weight:600}.form-warning{color:var(--carbs);align-items:center;gap:6px;font-size:.8rem;display:flex}.search-field{align-items:center;display:flex;position:relative}.search-field input{background:var(--surface);border:1px solid #0000;border-radius:14px;outline:none;width:100%;height:46px;padding:0 44px 0 42px;transition:border-color .15s}.search-field input:focus{border-color:var(--accent)}.search-field input::placeholder{color:var(--text-3)}.search-field input::-webkit-search-cancel-button{display:none}.search-field-icon{color:var(--text-3);pointer-events:none;position:absolute;left:14px}.search-field-clear{width:34px;height:34px;color:var(--text-2);border-radius:10px;place-items:center;display:grid;position:absolute;right:6px}.search-suggestions{z-index:30;background:var(--surface-2);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px;padding:6px;position:absolute;top:calc(100% + 6px);left:0;right:0}.search-suggestions-header{color:var(--text-3);text-transform:uppercase;letter-spacing:.06em;justify-content:space-between;align-items:center;padding:4px 8px;font-size:.75rem;font-weight:700;display:flex}.search-suggestion{width:100%;color:var(--text-2);text-align:left;border-radius:10px;align-items:center;gap:10px;padding:10px 8px;display:flex}.search-suggestion:hover{background:var(--surface-3);color:var(--text)}.switch{background:var(--surface-3);border-radius:14px;flex:none;width:46px;height:28px;transition:background .2s;position:relative}.switch-thumb{background:#e9e9e6;border-radius:50%;width:22px;height:22px;transition:transform .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0006}.switch.is-on{background:var(--accent)}.switch.is-on .switch-thumb{background:#fff;transform:translate(18px)}.check-box{border:2px solid var(--line-strong);color:#fff;border-radius:8px;flex:none;place-items:center;width:26px;height:26px;transition:background .15s,border-color .15s;display:grid}.check-box.is-checked{background:var(--accent);border-color:var(--accent)}.segmented{background:var(--surface);border-radius:12px;gap:2px;padding:3px;display:flex}.segmented-option{min-height:34px;color:var(--text-2);white-space:nowrap;border-radius:9px;flex:1;padding:0 10px;font-size:.85rem;font-weight:600;transition:background .15s,color .15s}.segmented-option.is-active{background:var(--surface-3);color:var(--text);box-shadow:0 1px 2px #00000059}.stepper{background:var(--surface-2);border-radius:10px;flex:none;align-items:center;gap:2px;padding:2px;display:inline-flex}.stepper-button{width:32px;height:32px;color:var(--text-2);border-radius:8px;place-items:center;display:grid}.stepper-button:hover:not(:disabled){background:var(--surface-3);color:var(--text)}.stepper-value{text-align:center;font-variant-numeric:tabular-nums;min-width:44px;font-size:.85rem;font-weight:650}.range,.split-slider{width:100%;accent-color:var(--accent);height:28px}.range-labels{color:var(--text-3);justify-content:space-between;font-size:.75rem;display:flex}.setting-row{justify-content:space-between;align-items:center;gap:16px;padding:4px 0;display:flex}.setting-row>span{flex-direction:column;gap:2px;display:flex}.setting-row small{color:var(--text-3);font-size:.8rem}.inline-toggle{color:var(--text-2);white-space:nowrap;align-items:center;gap:8px;font-size:.85rem;display:inline-flex}.menu{position:relative}.menu-popover{z-index:70;background:var(--surface-2);border:1px solid var(--line);min-width:210px;box-shadow:var(--shadow);border-radius:14px;padding:6px;animation:.12s ease-out pop-in;position:absolute;top:calc(100% + 6px);right:0}.menu-popover.opens-up{top:auto;bottom:calc(100% + 6px)}.menu-heading{letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);padding:6px 10px;font-size:.72rem;font-weight:700}.menu-item{text-align:left;width:100%;color:var(--text);border-radius:10px;align-items:center;gap:10px;padding:10px;font-size:.9rem;display:flex}.menu-item span{flex:1}.menu-item:hover{background:var(--surface-3)}.menu-item.is-selected{color:var(--accent-text)}.menu-item.is-danger{color:var(--danger-text)}@keyframes pop-in{0%{opacity:0;transform:translateY(-4px)scale(.98)}}.card{background:var(--surface);border-radius:var(--radius-l);flex-direction:column;gap:16px;padding:18px;display:flex}.card-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.card-head>span{font-size:.85rem}.callout{border-radius:var(--radius);background:var(--accent-soft);color:var(--accent-text);border:1px solid #4f846359;align-items:center;gap:14px;padding:14px 16px;display:flex}.callout>div{color:var(--text);flex:1}.callout p{color:var(--text-2);font-size:.85rem}.status-banner{border-radius:var(--radius);background:var(--surface);color:var(--text-2);align-items:center;gap:10px;padding:12px 14px;font-size:.9rem;display:flex}.status-banner>span{flex:1}.status-banner.is-ready{background:var(--accent-soft);color:var(--accent-text)}.empty-state{text-align:center;color:var(--text-2);flex-direction:column;align-items:center;gap:10px;padding:48px 24px;display:flex}.empty-state-icon{background:var(--surface);width:60px;height:60px;color:var(--accent-text);border-radius:18px;place-items:center;display:grid}.empty-state h3{color:var(--text);font-size:1.05rem}.empty-state p{max-width:34ch}.empty-state .button,.empty-state .button-row{margin-top:6px}.storage-warning{top:calc(var(--safe-top) + 8px);z-index:500;color:#f6dede;box-shadow:var(--shadow);width:min(calc(100% - 2 * var(--gutter)), 520px);background:#4a2f2f;border-radius:12px;align-items:center;gap:8px;padding:10px 14px;font-size:.85rem;display:flex;position:fixed;left:50%;transform:translate(-50%)}.toast-host{left:50%;bottom:calc(var(--tab-height) + var(--safe-bottom) + var(--summary-height,0px) + 12px);z-index:400;width:min(calc(100% - 2 * var(--gutter)), 460px);pointer-events:none;flex-direction:column;gap:8px;display:flex;position:fixed;transform:translate(-50%)}html.has-layer .toast-host{bottom:calc(var(--safe-bottom) + 96px)}.toast{pointer-events:auto;color:#1b1b1b;box-shadow:var(--shadow);background:#f1f1ee;border-radius:14px;align-items:center;gap:12px;padding:12px 14px 12px 16px;font-size:.9rem;font-weight:550;animation:.2s ease-out toast-in;display:flex}.toast>span{flex:1}.toast-action{color:#2f5c40;padding:4px 6px;font-weight:750}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}}.sheet-root{justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet-backdrop{background:#0009;animation:.2s ease-out fade-in;position:absolute;inset:0}.sheet{width:100%;max-height:calc(100dvh - var(--safe-top) - 24px);background:var(--bg);border-radius:var(--radius-l) var(--radius-l) 0 0;border:1px solid var(--line);box-shadow:var(--shadow);border-bottom:0;outline:none;flex-direction:column;animation:.24s cubic-bezier(.2,.8,.2,1) sheet-up;display:flex;position:relative}.sheet-tall{height:calc(100dvh - var(--safe-top) - 24px)}.sheet-full{border:0;border-radius:0;height:100dvh;max-height:100dvh}.sheet-header{padding:18px var(--gutter) 10px;justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.sheet-heading{min-width:0;padding-top:6px}.sheet-heading h2{font-size:1.2rem}.sheet-heading p{color:var(--text-2);margin-top:2px;font-size:.85rem}.sheet-header-actions{flex:none;gap:2px;display:flex}.sheet-body{overscroll-behavior:contain;padding:6px var(--gutter) 20px;-webkit-overflow-scrolling:touch;flex:1;overflow-y:auto}.sheet-full .sheet-body{padding:0}.sheet-footer{padding:12px var(--gutter) calc(12px + var(--safe-bottom));border-top:1px solid var(--line);background:var(--bg)}@keyframes sheet-up{0%{opacity:.4;transform:translateY(40px)}}@keyframes fade-in{0%{opacity:0}}.confirm-message{color:var(--text-2)}.toolbar{justify-content:space-between;align-items:center;display:flex}.toolbar-count{color:var(--text-2);font-size:.85rem;font-weight:600}.toolbar-actions{gap:2px;display:flex}.meal-group{flex-direction:column;gap:12px;display:flex}.group-title{letter-spacing:.08em;text-transform:uppercase;color:var(--text-2);font-size:.78rem;font-weight:700}.group-title span{color:var(--text-3);margin-left:4px}.meal-grid{grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:12px;display:grid}.meal-card{border-radius:var(--radius);background:var(--surface);flex-direction:column;transition:transform .15s;display:flex;position:relative;overflow:hidden}.meal-card:has(.meal-card-hit:active){transform:scale(.985)}.meal-card-hit{z-index:1;border-radius:var(--radius);position:absolute;inset:0}.meal-card-media{aspect-ratio:4/3;background:var(--surface-2);position:relative}.meal-card-media .meal-image{object-fit:cover;width:100%;height:100%}.meal-image.is-broken{visibility:hidden}.meal-image-placeholder{color:var(--text-3);background:var(--surface-2);place-items:center;width:100%;height:100%;display:grid}.meal-card-badges{gap:4px;display:flex;position:absolute;top:8px;left:8px}.meal-card-favorite{z-index:2;color:#fff;-webkit-backdrop-filter:blur(6px);background:#00000080;border-radius:50%;place-items:center;width:34px;height:34px;display:grid;position:absolute;top:6px;right:6px}.meal-card-favorite.is-active{color:var(--accent-text)}.meal-card-pills{gap:4px;display:flex;position:absolute;bottom:8px;left:8px}.meal-card-body{flex-direction:column;flex:1;gap:4px;padding:10px 12px 12px;display:flex}.meal-card-kicker{letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);font-size:.68rem;font-weight:700}.meal-card-title{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.95rem;line-height:1.25;display:-webkit-box;overflow:hidden}.meal-card-macros{color:var(--text-2);font-variant-numeric:tabular-nums;gap:8px;font-size:.75rem;display:flex}.meal-card-tags{flex-wrap:wrap;gap:4px;margin-top:auto;padding-top:4px;display:flex}.meal-card-tags:empty{display:none}.ideas{flex-direction:column;gap:10px;display:flex}.ideas-head{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.ideas-head span{color:var(--text-3);font-size:.8rem}.ideas-row{scrollbar-width:none;margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter) 2px;scroll-snap-type:x proximity;scroll-padding:var(--gutter);gap:10px;display:flex;overflow-x:auto}.ideas-row::-webkit-scrollbar{display:none}.idea-card{scroll-snap-align:start;flex:none;width:148px;position:relative}.idea-card-main{text-align:left;flex-direction:column;gap:4px;width:100%;padding-bottom:4px;display:flex}.idea-image{aspect-ratio:4/3;object-fit:cover;background:var(--surface-2);border-radius:12px;width:100%;height:auto}.idea-title{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.85rem;font-weight:650;line-height:1.25;display:-webkit-box;overflow:hidden}.idea-meta{color:var(--text-3);font-size:.72rem}.idea-card .reason{align-self:flex-start}.idea-add{background:var(--accent-fill);color:#fff;border-radius:50%;place-items:center;width:32px;height:32px;display:grid;position:absolute;top:6px;right:6px;box-shadow:0 2px 8px #0006}.idea-add:hover{background:var(--accent-fill-hover)}.meal-detail .sheet-footer{position:sticky;bottom:0}.detail-hero{aspect-ratio:2;background:var(--surface);width:100%;min-height:220px;max-height:46vh;position:relative}.detail-hero .meal-image{object-fit:cover;width:100%;height:100%}.detail-hero-shade{background:linear-gradient(to bottom, #00000073, transparent 30%, transparent 60%, var(--bg));pointer-events:none;position:absolute;inset:0}.detail-hero-bar{top:calc(var(--safe-top) + 12px);justify-content:space-between;display:flex;position:absolute;left:12px;right:12px}.detail-hero-actions{gap:8px;display:flex}.detail-content{padding:0 var(--gutter) 24px;margin-top:-28px;flex-direction:column;gap:14px;max-width:760px;margin-inline:auto;display:flex;position:relative}.detail-kicker{letter-spacing:.08em;text-transform:uppercase;color:var(--accent-text);font-size:.75rem;font-weight:700}.detail-title{font-size:1.9rem}.detail-description{color:var(--text-2)}.detail-section{flex-direction:column;gap:12px;padding-top:10px;display:flex}.detail-section-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.detail-section-meta{color:var(--text-3);font-size:.85rem}.detail-note{color:var(--text-3);font-size:.8rem}.nutrition-grid{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.nutrition-cell{background:var(--surface);text-align:center;border-radius:12px;flex-direction:column;gap:2px;padding:12px 6px;display:flex}.nutrition-cell strong{font-variant-numeric:tabular-nums;font-size:1.2rem}.nutrition-cell span{letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);font-size:.68rem;font-weight:700}.nutrition-cell.is-primary strong{color:var(--accent-text)}.nutrition-grid.is-compact .nutrition-cell{padding:10px 4px}.nutrition-grid.is-compact strong{font-size:1.05rem}.macro-bar-wrap{flex-direction:column;gap:8px;display:flex}.macro-bar{background:var(--surface-2);border-radius:4px;gap:2px;height:8px;display:flex;overflow:hidden}.macro-bar-protein{background:var(--protein)}.macro-bar-carbs{background:var(--carbs)}.macro-bar-fat{background:var(--fat)}.macro-legend{color:var(--text-2);flex-wrap:wrap;gap:14px;font-size:.78rem;display:flex}.macro-legend span{align-items:center;gap:6px;display:inline-flex}.dot{border-radius:50%;flex:none;width:8px;height:8px;display:inline-block}.dot-protein{background:var(--protein)}.dot-carbs{background:var(--carbs)}.dot-fat{background:var(--fat)}.ingredient-list{background:var(--surface);border-radius:var(--radius);flex-direction:column;padding:4px 12px;display:flex}.ingredient-line{border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:8px 0;display:flex}.ingredient-line:last-child{border-bottom:0}.ingredient-line-name{text-align:left;flex-wrap:wrap;flex:1;align-items:baseline;gap:8px;padding:6px 0;display:flex}.ingredient-line.is-missing .ingredient-line-name{color:var(--text-2)}.ingredient-line-amount{color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:.875rem}.optional-label,.staple-label{letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);font-size:.68rem;font-weight:700}.step-list{counter-reset:steps;flex-direction:column;gap:10px;display:flex}.step{border-radius:var(--radius);background:var(--surface);gap:12px;padding:14px;display:flex}.step p{color:var(--text);flex:1}.step-number{border:1.5px solid var(--accent);width:28px;height:28px;color:var(--accent-text);border-radius:50%;flex:none;place-items:center;font-size:.85rem;font-weight:700;display:grid}.date-strip{scrollbar-width:none;margin:0 calc(-1 * var(--gutter));padding:2px var(--gutter);gap:8px;display:flex;overflow-x:auto}.date-strip::-webkit-scrollbar{display:none}.date-chip{background:var(--surface);width:54px;color:var(--text-2);border-radius:14px;flex-direction:column;flex:none;align-items:center;gap:2px;padding:8px 0 6px;display:flex}.date-chip.is-active{background:var(--accent-fill);color:#fff}.date-chip-day{text-transform:uppercase;letter-spacing:.06em;font-size:.66rem;font-weight:700}.date-chip-num{font-size:1.1rem;font-weight:700}.date-chip-dot{background:0 0;border-radius:50%;width:5px;height:5px}.date-chip-dot.is-filled{background:var(--accent-text)}.date-chip.is-active .date-chip-dot.is-filled{background:#fff}.picker-controls{z-index:5;background:var(--bg);flex-direction:column;gap:10px;padding:6px 0 10px;display:flex;position:sticky;top:-6px}.picker-tabs{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.picker-tabs .segmented{flex:1;min-width:240px}.picker-list{flex-direction:column;gap:6px;display:flex}.picker-row{border-radius:var(--radius);text-align:left;background:var(--surface);align-items:center;gap:12px;width:100%;padding:8px;transition:background .15s;display:flex}.picker-row:hover{background:var(--surface-2)}.picker-thumb{object-fit:cover;border-radius:10px;flex:none;width:64px;height:52px}.picker-row-text{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.picker-row-text strong{text-overflow:ellipsis;white-space:nowrap;font-size:.92rem;overflow:hidden}.picker-row-meta{color:var(--text-2);font-size:.78rem}.picker-row-icon{color:var(--accent-text)}.reason-row{flex-wrap:wrap;gap:4px;display:flex}.reason{background:var(--accent-soft);color:var(--accent-text);border-radius:6px;padding:2px 7px;font-size:.68rem;font-weight:650}.reason.is-muted{background:var(--surface-2);color:var(--text-2)}.explain-list{color:var(--text-2);flex-direction:column;gap:10px;font-size:.85rem;display:flex}.explain-list li{align-items:flex-start;gap:10px;display:flex}.explain-list .icon{color:var(--accent-text);margin-top:2px}.view-switch{max-width:260px}.week-nav{flex-direction:column;gap:8px;display:flex}.week-nav-head{justify-content:space-between;align-items:center;min-height:28px;display:flex}.week-nav-label{color:var(--text-2);font-size:.85rem;font-weight:600}.week-nav-row{align-items:center;gap:2px;margin:0 -8px;display:flex}.week-days{flex:1;grid-template-columns:repeat(7,1fr);gap:4px;display:grid}.week-day{background:var(--surface);color:var(--text-2);border-radius:14px;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:8px 0 7px;display:flex}.week-day.is-past{background:var(--bg);box-shadow:inset 0 0 0 1px var(--line)}.week-day.is-today .week-day-name{color:var(--accent-text)}.week-day.is-active{background:var(--accent-fill);color:#fff;opacity:1}.week-day.is-active .week-day-name{color:#fff}.week-day-name{letter-spacing:.05em;text-transform:uppercase;font-size:.64rem;font-weight:700}.week-day-num{font-size:1.1rem;font-weight:700}.week-day-fill{background:#ffffff1a;border-radius:2px;width:60%;height:3px;overflow:hidden}.week-day-fill span{background:var(--accent-text);border-radius:2px;height:100%;display:block}.week-day.is-active .week-day-fill span{background:#fff}.day-view{flex-direction:column;gap:18px;display:flex}.slot{flex-direction:column;gap:8px;display:flex}.slot-head{justify-content:space-between;align-items:baseline;display:flex}.slot-head h3{letter-spacing:.1em;text-transform:uppercase;color:var(--text-2);font-size:.75rem;font-weight:700}.slot-head span{color:var(--text-3);font-variant-numeric:tabular-nums;font-size:.8rem}.slot-add{border-radius:var(--radius);border:1.5px dashed var(--line-strong);min-height:64px;color:var(--text-2);justify-content:center;align-items:center;gap:8px;font-size:.9rem;font-weight:600;transition:border-color .15s,color .15s;display:flex}.slot-add:hover{border-color:var(--accent);color:var(--accent-text)}.slot-add.is-compact{min-height:40px;color:var(--text-3);border-style:dashed;font-size:.82rem}.entry-card{border-radius:var(--radius);background:var(--surface);flex-direction:column;gap:8px;padding:8px;display:flex}.entry-card-main{text-align:left;align-items:center;gap:12px;display:flex}.entry-thumb{object-fit:cover;border-radius:10px;flex:none;width:76px;height:60px}.entry-text{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.entry-text strong{font-size:.95rem;line-height:1.25}.entry-meta{color:var(--text-2);font-variant-numeric:tabular-nums;font-size:.78rem}.entry-flag{color:var(--text-3);align-items:center;gap:4px;font-size:.72rem;font-weight:650;display:inline-flex}.entry-flag.is-ready{color:var(--accent-text)}.entry-actions{justify-content:space-between;align-items:center;padding-left:4px;display:flex}.page-planner{padding-bottom:var(--summary-height,0px)}.week-nav-tools{align-items:center;gap:4px;display:flex;position:relative}.date-input-hidden{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute;bottom:0;right:0}.daily-summary{left:0;right:0;bottom:calc(var(--tab-height) + var(--safe-bottom));z-index:45;padding:10px var(--gutter) 12px;-webkit-backdrop-filter:blur(16px);border-top:1px solid var(--line);background:#202020f5;border-radius:18px 18px 0 0;flex-direction:column;gap:8px;display:flex;position:fixed}.daily-summary-toggle{text-align:left;color:var(--text-2);align-items:center;gap:8px;font-size:.9rem;display:flex}.daily-summary-toggle>span:first-child{flex:1}.daily-summary-toggle strong{color:var(--text);font-variant-numeric:tabular-nums;font-size:1.1rem}.daily-summary-count{color:var(--text-3);font-size:.8rem}.daily-summary-chevron{transition:transform .2s;transform:rotate(180deg)}.daily-summary.is-expanded .daily-summary-chevron{transform:none}.daily-summary-macros{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.daily-summary-calories .target-meter-head,.daily-summary-calories .target-meter-note,.daily-summary-macros .target-meter-note{display:none}@media (min-width:720px){.daily-summary-macros .target-meter-note{display:block}}.target-meter{flex-direction:column;gap:5px;min-width:0;display:flex}.target-meter-head{justify-content:space-between;align-items:baseline;gap:6px;font-size:.75rem;display:flex}.target-meter-label{color:var(--text-2);font-weight:600}.target-meter-value{color:var(--text-3);font-variant-numeric:tabular-nums;white-space:nowrap}.target-meter-value strong{color:var(--text);font-weight:700}.target-meter-track{background:var(--surface-3);border-radius:3px;height:6px;display:block;overflow:hidden}.target-meter-fill{border-radius:3px;height:100%;transition:width .3s;display:block}.fill-calories{background:var(--calories)}.fill-protein{background:var(--protein)}.fill-carbs{background:var(--carbs)}.fill-fat{background:var(--fat)}.target-meter.is-over .target-meter-fill,.target-meter-fill.is-over{background-image:repeating-linear-gradient(135deg,#ffffff59 0 4px,#0000 4px 8px)}.target-meter-note{color:var(--text-3);font-variant-numeric:tabular-nums;font-size:.72rem}.target-meter.is-over .target-meter-note{color:var(--carbs)}.target-meter.is-on-target .target-meter-note{color:var(--accent-text)}.week-view{flex-direction:column;gap:14px;display:flex}.week-average-meters{grid-template-columns:repeat(2,1fr);gap:14px;display:grid}.week-list{flex-direction:column;gap:6px;display:flex}.week-row{border-radius:var(--radius);background:var(--surface);text-align:left;align-items:center;gap:14px;width:100%;padding:12px 14px;display:flex}.week-row.is-today{box-shadow:inset 0 0 0 1.5px var(--accent)}.week-row-date{flex-direction:column;flex:none;width:52px;display:flex}.week-row-date span{color:var(--text-3);font-size:.75rem}.week-row-body{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.week-row-meals{color:var(--text-2);text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;overflow:hidden}.week-row-kcal{font-variant-numeric:tabular-nums;text-align:right;flex:none;width:52px;font-weight:700}.pantry-group,.shop-group{flex-direction:column;gap:8px;display:flex}.group-head{justify-content:space-between;align-items:center;display:flex}.group-head h2{letter-spacing:.08em;text-transform:uppercase;color:var(--text-2);font-size:.78rem;font-weight:700}.group-head h2 span{color:var(--text-3);font-variant-numeric:tabular-nums;margin-left:6px}.group-head-actions{gap:4px;display:flex}.pantry-list,.shop-list{background:var(--surface);border-radius:var(--radius);padding:0 14px}.pantry-row,.shop-row{border-bottom:1px solid var(--line);align-items:center;gap:12px;min-height:58px;padding:10px 0;display:flex}.pantry-row:last-child,.shop-row:last-child{border-bottom:0}.pantry-row-main{text-align:left;flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.pantry-row-main strong{flex-wrap:wrap;align-items:baseline;gap:8px;font-weight:600;display:flex}.pantry-row-main>span{color:var(--text-3);font-size:.78rem}.pantry-row:not(.is-have) .pantry-row-main strong{color:var(--text-2)}.add-item{gap:8px;display:flex}.add-item .text-input{flex:1}.add-item .button{min-height:44px}.shop-row-main{text-align:left;flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.shop-row-title{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.shop-row-title strong{font-weight:600}.shop-row-amount{color:var(--accent-text);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:.85rem;font-weight:650}.shop-row-meta{color:var(--text-3);font-size:.78rem}.shop-row.is-done .shop-row-title strong{color:var(--text-3);text-decoration:line-through}.on-hand{background:var(--surface);border-radius:var(--radius)}.on-hand summary{cursor:pointer;color:var(--text-2);align-items:center;gap:10px;padding:14px;font-weight:600;list-style:none;display:flex}.on-hand summary::-webkit-details-marker{display:none}.on-hand summary>span:first-child{flex:1}.on-hand[open] summary .icon{transform:rotate(180deg)}.on-hand-count{color:var(--text-3);font-variant-numeric:tabular-nums}.on-hand .page-note{padding:0 14px}.on-hand .shop-list{background:0 0}.on-hand-check{color:var(--accent-text);width:26px}.photo-picker{aspect-ratio:2;border-radius:var(--radius);background:var(--surface);border:1.5px dashed var(--line-strong);color:var(--text-2);cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:8px;font-weight:600;display:flex;position:relative;overflow:hidden}.photo-picker img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.photo-picker.has-photo{border:0}.photo-picker.has-photo span{color:#fff;background:#0009;border-radius:10px;padding:6px 12px;font-size:.85rem;position:absolute;bottom:10px;right:10px}.editor-ingredients{flex-direction:column;gap:6px;display:flex}.editor-ingredient{background:var(--surface);border-radius:12px;grid-template-columns:1fr 120px auto auto;align-items:center;gap:8px;padding:6px 6px 6px 12px;display:grid}.editor-ingredient-name{text-overflow:ellipsis;min-width:0;font-size:.9rem;font-weight:600;overflow:hidden}.editor-ingredient .number-input{background:var(--surface-2);min-height:38px}.mini-toggle{text-transform:uppercase;letter-spacing:.05em;color:var(--text-3);background:var(--surface-2);border-radius:8px;padding:6px 8px;font-size:.7rem;font-weight:700}.mini-toggle.is-active{color:var(--accent-text);background:var(--accent-soft)}.nutrition-inputs{grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px;display:grid}.nutrition-input{color:var(--text-3);flex-direction:column;gap:4px;font-size:.75rem;font-weight:600;display:flex}.nutrition-preview{background:var(--accent-soft);color:var(--accent-text);border-radius:12px;padding:12px 14px;font-size:.875rem;font-weight:600}.ingredient-search{flex-direction:column;gap:6px;display:flex;position:relative}.ingredient-search-results{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:4px}.ingredient-search-result{text-align:left;border-radius:9px;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:10px;display:flex}.ingredient-search-result:hover{background:var(--surface-3)}.ingredient-search-result small{color:var(--text-3);white-space:nowrap}.ingredient-search-result.is-create{color:var(--accent-text);justify-content:flex-start;font-weight:600}.filter-groups{flex-direction:column;gap:22px;display:flex}.filter-group{flex-direction:column;gap:10px;display:flex}.filter-group h3{letter-spacing:.08em;text-transform:uppercase;color:var(--text-2);font-size:.78rem;font-weight:700}.filter-group h3 small{text-transform:none;letter-spacing:0;color:var(--text-3);font-weight:500}.goals-layout{gap:16px;display:grid}.target-hero{text-align:center;flex-direction:column;align-items:center;gap:6px;display:flex}.target-hero-value strong{letter-spacing:-.02em;color:var(--text);font-variant-numeric:tabular-nums;font-size:2.6rem;font-weight:750}.target-hero-value{color:var(--text-2)}.target-hero-input{width:200px}.target-hero-input input{text-align:center;font-size:1.8rem}.macro-targets{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.macro-target{background:var(--surface-2);border-radius:12px;flex-direction:column;align-items:center;padding:10px;display:flex}.macro-target strong{font-variant-numeric:tabular-nums;font-size:1.15rem}.macro-target span{letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);font-size:.68rem;font-weight:700}.macro-target.macro-protein{box-shadow:inset 0 -3px 0 var(--protein)}.macro-target.macro-carbs{box-shadow:inset 0 -3px 0 var(--carbs)}.macro-target.macro-fat{box-shadow:inset 0 -3px 0 var(--fat)}.preset-grid{grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px;display:grid}.preset{background:var(--surface-2);text-align:left;border:1.5px solid #0000;border-radius:12px;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;display:flex}.preset span{color:var(--text-3);font-variant-numeric:tabular-nums;font-size:.75rem}.preset.is-active{border-color:var(--accent);background:var(--accent-soft)}.preset.is-active span{color:var(--accent-text)}.split-rows{flex-direction:column;gap:10px;display:flex}.split-row{grid-template-columns:1fr 84px 92px;grid-template-areas:"label percent grams""slider slider slider";align-items:center;gap:4px 10px;display:grid}.split-row .split-label{grid-area:label}.split-row .split-slider{grid-area:slider}.split-row .split-percent{grid-area:percent}.split-row .split-grams{grid-area:grams}.split-label{align-items:center;gap:8px;font-size:.9rem;font-weight:600;display:flex}.split-row .number-input{min-height:38px;padding:0 8px}.stat-row{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.stat-row>div{background:var(--surface-2);text-align:center;border-radius:12px;padding:10px}.stat-row dt{letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);font-size:.68rem;font-weight:700}.stat-row dd{font-variant-numeric:tabular-nums;margin-top:2px;font-weight:700}@media (max-width:380px){:root{--gutter:14px}h1{font-size:1.55rem}.meal-grid{grid-template-columns:repeat(2,1fr);gap:10px}.split-row{grid-template-columns:1fr 76px 84px}.editor-ingredient{grid-template-columns:1fr 100px auto}.editor-ingredient .mini-toggle{display:none}}@media (min-width:720px){:root{--gutter:24px}.meal-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}.sheet-root{align-items:center;padding:24px}.sheet{border-radius:var(--radius-l);border-bottom:1px solid var(--line);max-width:560px;max-height:min(860px,100dvh - 48px)}.sheet-tall{height:min(860px,100dvh - 48px)}.sheet-full{border-radius:var(--radius-l);border:1px solid var(--line);max-width:820px;height:min(940px,100dvh - 48px);max-height:calc(100dvh - 48px);overflow:hidden}.sheet-footer{border-radius:0 0 var(--radius-l) var(--radius-l)}.goals-layout{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.week-average-meters{grid-template-columns:repeat(4,1fr)}}@media (min-width:1024px){.tab-bar{border-top:0;border-right:1px solid var(--line);flex-direction:column;justify-content:flex-start;gap:6px;width:92px;height:100dvh;padding:24px 0;inset:0 auto 0 0}.tab{border-radius:14px;flex:none;height:68px;margin:0 10px}.tab:hover{color:var(--text);background:var(--surface)}.app-main{margin-left:92px;padding-bottom:48px}.page{max-width:1180px;margin:0 auto}.page-header{padding-top:32px}.toast-host{bottom:24px;left:calc(50% + 46px)}html.has-layer .toast-host{bottom:24px}.planner-layout{grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:24px;display:grid}.daily-summary{border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface);margin:0;padding:16px;position:sticky;inset:24px auto auto}.daily-summary-macros{grid-template-columns:1fr;gap:14px}.daily-summary-macros .target-meter-note{display:block}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.001ms!important;animation-duration:.001ms!important}}
