@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--radius-sm:.25rem;--radius-lg:.5rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.relative{position:relative}.block{display:block}.hidden{display:none}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.rounded{border-radius:.25rem}}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f4ece1;--surface:#fffaf3;--surface-2:#f8efe3;--surface-3:#efe2d1;--surface-glass:#fffaf3e0;--border:#e7d9c6;--border-strong:#c9b49b;--text:#2b201a;--text-muted:#6a5648;--primary:#a8532f;--on-primary:#fff;--accent:#9c4a28;--accent-soft:#f6e1d3;--focus:#2f6f8f;--ring-kcal:#b05a33;--ring-protein:#3f7d8c;--track:#eadccb;--danger:#c4161c;--danger-bg:#fdeaea;--danger-text:#9b1c22;--danger-border:#f0b3b5;--warning-bg:#fbefd2;--warning-text:#6b4a00;--warning-border:#e8c878;--success-bg:#e9efdc;--success-text:#4a5a1f;--success-border:#bfcc98;--radius-sm:10px;--radius:14px;--radius-lg:20px;--shadow:0 1px 2px #50321e0d, 0 8px 24px #50321e0f;--nav-height:64px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#1d1713;--surface:#271f1a;--surface-2:#30271f;--surface-3:#3b3027;--surface-glass:#271f1ae0;--border:#3d3229;--border-strong:#5e4d40;--text:#f4eadf;--text-muted:#c2b0a0;--primary:#e3906a;--on-primary:#23170f;--accent:#eba27f;--accent-soft:#3d2619;--focus:#8cc3d6;--ring-kcal:#e6995e;--ring-protein:#7fb6c7;--track:#3a2f27;--danger:#ff5257;--danger-bg:#3d1716;--danger-text:#ffc4c0;--danger-border:#7a2b2a;--warning-bg:#3a2c10;--warning-text:#f3d58c;--warning-border:#7a6120;--success-bg:#26301a;--success-text:#c9d99a;--success-border:#4f6230;--shadow:none}}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;margin:0;line-height:1.5}:where(h1,h2,h3){letter-spacing:-.01em;font-weight:750;line-height:1.2}:where(h1){letter-spacing:-.025em;margin:0 0 8px;font-size:clamp(1.65rem,1.3rem + 1.6vw,2.15rem)}:where(h2){margin:0 0 10px;font-size:1.12rem}:where(h3){margin:0 0 6px;font-size:1rem}:where(p,ul,ol,dl){margin:0 0 12px}:where(p,ul,ol,dl,h2,h3):last-child{margin-bottom:0}:where(a){color:var(--accent);text-underline-offset:3px;font-weight:600}:where(strong,dd,.review-metrics,.progress-ring){font-variant-numeric:tabular-nums}:where(input,select,textarea,button){font:inherit;color:inherit}:where(input[type=checkbox],input[type=radio]){accent-color:var(--accent);flex:none;block-size:20px;inline-size:20px}:where(input:not([type=checkbox],[type=radio],[type=file],[type=hidden]),select,textarea){box-sizing:border-box;border:1px solid var(--border);background:var(--surface-2);border-radius:10px;min-height:44px;padding:8px 10px}:where(details>summary){cursor:pointer}:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:6px}.icon{flex:none}main{box-sizing:border-box;width:100%;max-width:760px;min-height:100vh;padding:20px 16px calc(var(--nav-height) + 40px + env(safe-area-inset-bottom));margin:0 auto}main.page-wide{max-width:1120px}.landing-main{padding-bottom:32px}.app-content{min-width:0}.app-content:focus{outline:none}.skip-link{z-index:60;border-radius:var(--radius-sm);background:var(--primary);color:var(--on-primary);padding:10px 14px;text-decoration:none;position:absolute;top:-80px;left:12px}.skip-link:focus{top:12px}.nav{z-index:20;padding:6px max(4px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));border-top:1px solid var(--border);background:var(--surface-glass);-webkit-backdrop-filter:saturate(1.5)blur(16px);backdrop-filter:saturate(1.5)blur(16px);grid-template-columns:repeat(5,minmax(0,1fr));gap:0;display:grid;position:fixed;bottom:0;left:0;right:0}.nav-brand{display:none}.nav a{min-width:0;min-height:52px;color:var(--text-muted);letter-spacing:-.01em;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:4px 1px;font-size:.68rem;font-weight:650;text-decoration:none;display:flex}.nav a span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.nav a .icon{box-sizing:content-box;border-radius:999px;padding:3px 14px;transition:background-color .15s}.nav a[aria-current=page]{color:var(--text)}.nav a[aria-current=page] .icon{background:var(--accent-soft);color:var(--accent)}@media (min-width:900px){.app-shell{grid-template-columns:232px minmax(0,1fr);align-items:start;display:grid}.nav{box-sizing:border-box;border-top:0;border-right:1px solid var(--border);background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none;flex-direction:column;gap:4px;height:100dvh;padding:24px 14px;display:flex;position:sticky;inset:0 auto auto}.nav-brand{letter-spacing:-.01em;margin:0 0 18px;padding:0 12px;font-size:1.05rem;font-weight:800;display:block}.nav a{flex-direction:row;justify-content:flex-start;gap:12px;min-height:46px;padding:10px 12px;font-size:.95rem}.nav a .icon{padding:0}.nav a:hover{background:var(--surface-2);color:var(--text)}.nav a[aria-current=page]{background:var(--accent-soft);color:var(--accent)}.nav a[aria-current=page] .icon{background:0 0}main{padding:32px 32px 56px}}.page-header{gap:2px;margin:4px 0 20px;display:grid}.page-header h1{margin:0}.page-eyebrow{color:var(--text-muted);margin:0;font-size:.9rem;font-weight:650}.page-subtitle{color:var(--text-muted);margin:4px 0 0}.page-header>:where(nav,div){margin-top:12px}.day-nav,.period-steps{align-items:center;gap:8px;display:flex}.period-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.icon-link{border:1px solid var(--border);background:var(--surface);min-width:44px;min-height:44px;color:var(--text);border-radius:999px;place-items:center;display:inline-grid}.chip-link{border:1px solid var(--border);background:var(--surface);min-height:44px;color:var(--text);border-radius:999px;align-items:center;padding:0 16px;text-decoration:none;display:inline-flex}.badge{background:var(--surface-3);color:var(--text-muted);border-radius:999px;align-items:center;gap:6px;margin-bottom:8px;padding:4px 10px;font-size:.8rem;font-weight:650;display:inline-flex}.eyebrow{color:var(--accent);letter-spacing:.08em;text-transform:uppercase;font-size:.8rem;font-weight:800}.card{box-sizing:border-box;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);min-width:0;box-shadow:var(--shadow);margin:16px 0;padding:20px}.day-grid{gap:0 20px;display:grid}.day-column{min-width:0}.day-column>:first-child{margin-top:0}@media (min-width:1040px){.day-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start}}.section-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 12px;margin-bottom:12px;display:flex}.section-heading h2{margin:0}.section-heading .text-button{text-align:right;width:auto}.two-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.action-row{flex-wrap:wrap;gap:10px;margin:16px 0;display:flex}.action-row:last-child{margin-bottom:0}.empty-state{color:var(--text-muted)}.plain-list{padding:0;list-style:none}.compact-list{gap:6px;margin:0;padding-left:22px;list-style:outside;display:grid}:where(.card) ol{padding-left:22px;list-style:decimal}.primary-button,.secondary-button,.primary-link,.secondary-link{box-sizing:border-box;border-radius:var(--radius);min-height:48px;font:inherit;text-align:center;cursor:pointer;justify-content:center;align-items:center;gap:8px;padding:11px 18px;font-weight:700;line-height:1.2;text-decoration:none;transition:background-color .15s,border-color .15s,transform .1s;display:inline-flex}.primary-button,.primary-link{border:1px solid var(--primary);background:var(--primary);color:var(--on-primary)}.secondary-button,.secondary-link{border:1px solid var(--border-strong);background:var(--surface);color:var(--text)}.secondary-button:hover,.secondary-link:hover{background:var(--surface-2)}.primary-button:active,.secondary-button:active,.primary-link:active,.secondary-link:active{transform:scale(.98)}.primary-button:disabled,.secondary-button:disabled{cursor:wait;opacity:.55;transform:none}.text-button{min-height:44px;color:var(--accent);font:inherit;text-underline-offset:3px;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:6px 4px;font-weight:700;text-decoration:underline;display:inline-flex}.text-button:disabled{cursor:wait;opacity:.55}.danger-text{color:var(--danger)}.back-link,.text-link{color:var(--accent);text-underline-offset:3px;font-weight:700}.page-back{align-items:center;min-height:44px;margin-bottom:4px;text-decoration:none;display:inline-flex}.back-to-search{width:auto;margin-bottom:4px;text-decoration:none}.pill-link{background:var(--accent-soft);min-height:40px;color:var(--accent);border-radius:999px;align-items:center;gap:6px;padding:6px 14px 6px 10px;font-size:.92rem;font-weight:700;text-decoration:none;display:inline-flex}.pill-link:hover{filter:brightness(.97)}.form-grid{gap:14px;display:grid}.form-grid>:where(h2,p,.field-row){margin-top:0;margin-bottom:0}.mutation-fields{border:0;min-width:0;margin:0;padding:0}.field-row{gap:6px;margin:16px 0;font-size:.92rem;font-weight:650;display:grid}.form-grid .field-row,.two-columns .field-row,.conversion-grid .field-row{margin:0}.field-row input,.field-row select,.field-row textarea{box-sizing:border-box;border:1px solid var(--border);background:var(--surface-2);width:100%;min-height:48px;color:var(--text);font:inherit;border-radius:12px;padding:11px 14px;font-size:1rem;font-weight:400;transition:border-color .15s,background-color .15s}.field-row textarea{min-height:96px}.field-row input:focus,.field-row select:focus,.field-row textarea:focus{border-color:var(--accent);background:var(--surface)}.field-row input:disabled,.field-row select:disabled,.field-row textarea:disabled{opacity:.6}.field-row input[type=checkbox],.field-row input[type=radio]{width:20px;min-height:20px}.optional{color:var(--text-muted);font-size:.8rem;font-weight:400}.choice-group{border:1px solid var(--border);border-radius:var(--radius);gap:10px;margin:4px 0;padding:14px;display:grid}.choice-group legend{padding:0 6px;font-weight:700}.choice-group label,.checkbox-row{align-items:flex-start;gap:10px;display:flex}.inline-quality{min-height:30px;color:var(--text-muted);align-items:center;gap:6px;font-size:.82rem;font-weight:500;display:flex}.inline-quality input{width:18px;min-height:18px}.conversion-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.advanced-fields{border:1px solid var(--border);border-radius:var(--radius);padding:0 14px 14px}.advanced-fields>summary{min-height:48px;color:var(--accent);align-items:center;font-weight:700;display:flex}.advanced-fields[open]>summary{margin-bottom:6px}.calculation-preview{background:var(--accent-soft);color:var(--accent);border-radius:12px;justify-content:space-between;gap:12px;padding:12px 14px;display:flex}.inline-form{grid-template-columns:1fr 1fr auto auto;align-items:end;gap:8px;width:100%;display:grid}.inline-form label{gap:4px;font-size:.85rem;font-weight:650;display:grid}.inline-form input{border:1px solid var(--border);background:var(--surface-2);min-width:0;min-height:44px;font:inherit;border-radius:10px;padding:8px 10px}.privacy-note{color:var(--text-muted);font-size:.88rem}.hint{color:var(--text-muted);margin-top:6px;font-size:.88rem}.hint>summary{min-height:40px;color:var(--accent);align-items:center;font-weight:700;display:inline-flex}:is(.hint,.nutrient-more,.advanced-fields,.history-list details)>summary{gap:8px;list-style:none}:is(.hint,.nutrient-more,.advanced-fields,.history-list details)>summary::-webkit-details-marker{display:none}:is(.hint,.nutrient-more,.advanced-fields,.history-list details)>summary:after{content:"";border-bottom:2px solid;border-right:2px solid;flex:none;width:7px;height:7px;margin-top:-3px;transition:transform .15s;transform:rotate(45deg)}:is(.hint,.nutrient-more,.advanced-fields,.history-list details)[open]>summary:after{margin-top:3px;transform:rotate(-135deg)}.hint-body{gap:8px;padding:2px 0 6px;display:grid}.hint-body p{margin:0}.status-message{border:1px solid var(--success-border);background:var(--success-bg);color:var(--success-text);border-radius:12px;margin:12px 0 0;padding:12px 14px}.form-grid>.status-message{margin:0}.error-message{border-color:var(--danger-border);background:var(--danger-bg);color:var(--danger-text)}.warning-card,.warning-inline,.quality-note{border:1px solid var(--warning-border);border-radius:var(--radius);background:var(--warning-bg);color:var(--warning-text);padding:12px 14px}.quality-note .hint,.quality-note .hint>summary{color:inherit}.chip{border-radius:999px;align-items:center;gap:6px;width:fit-content;margin:0;padding:4px 12px;font-size:.85rem;font-weight:700;display:inline-flex}.chip-success{background:var(--success-bg);color:var(--success-text)}.chip-warning{background:var(--warning-bg);color:var(--warning-text)}.chip-neutral{background:var(--surface-3);color:var(--text-muted)}.day-status{margin-bottom:12px}.current-marker{background:var(--success-bg);border-radius:999px;padding:4px 10px;font-weight:700;color:var(--success-text)!important}.test-preview-banner{color:#624000;text-align:center;background:#fff0b3;padding:.6rem 1rem;font-size:.85rem;font-weight:700}.segmented{background:var(--surface-3);border-radius:14px;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:4px;padding:4px;display:grid}.segmented>a,.segmented>button{min-height:40px;color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;gap:6px;padding:6px 14px;font-weight:700;text-decoration:none;display:inline-flex}.segmented>.selected{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0000001f}.add-tabs{z-index:10;margin:0 0 16px;position:sticky;top:8px}.product-editor{scroll-margin-top:96px}.add-tabs button{min-height:44px}@media (max-width:480px){.add-tabs button{flex-direction:column;gap:2px;min-height:52px;padding:6px 2px;font-size:.8rem}}.period-switch{min-width:200px}.entry-list,.history-list,.weight-list,.security-list{gap:0;margin:0;padding:0;list-style:none;display:grid}.entry-list li,.weight-list li,.security-list li{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.entry-list li:first-child,.weight-list li:first-child{border-top:0;padding-top:4px}.entry-list li.entry-removing{color:var(--text-muted);align-items:center;font-style:italic}.entry-list li.entry-removing .text-button{font-style:normal}.entry-list div,.weight-list li>div,.security-list div{overflow-wrap:anywhere;gap:2px;min-width:0;display:grid}.entry-list span,.weight-list span,.history-list span,.security-list span{color:var(--text-muted);font-size:.88rem}.entry-list small{color:var(--text-muted);font-size:.8rem}.entry-list p{margin:0}.compact-actions{flex-direction:row;flex:none;align-items:center;gap:4px 12px!important;display:flex!important}.compact-actions a,.compact-actions button{align-items:center;min-height:44px;display:inline-flex}.meal-group+.meal-group{margin-top:14px}.meal-group h3{color:var(--text-muted);letter-spacing:.06em;text-transform:uppercase;margin:0;padding:4px 0;font-size:.78rem;font-weight:800}.meal-group h3 small{letter-spacing:0;text-transform:none;font-weight:700}.meal-heading{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:8px;display:flex}.meal-add{background:var(--accent-soft);width:44px;height:44px;color:var(--accent);border-radius:999px;place-items:center;display:inline-grid}.meal-add:hover{filter:brightness(.97)}.meal-empty{margin:6px 0 0;font-size:.9rem}.history-list li{border-top:1px solid var(--border);gap:4px;padding:14px 0;display:grid}.history-list li:first-child{border-top:0;padding-top:4px}.history-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.history-head a{color:var(--text);font-size:1rem;text-decoration:none}.history-head a:hover{text-decoration:underline}.history-list details>summary{min-height:40px;color:var(--accent);align-items:center;font-size:.88rem;font-weight:650;display:inline-flex}.history-item{border-top:1px solid var(--border);gap:10px;min-width:0;padding-top:14px;display:grid}.history-item small{color:var(--text-muted);display:block}.history-item p{margin:0}.metric-list{gap:0;margin:0;display:grid}.metric-list>div{border-bottom:1px solid var(--border);justify-content:space-between;gap:16px;padding:9px 0;font-size:.92rem;display:flex}.metric-list>div:last-child{border-bottom:0}.metric-list dt{color:var(--text-muted)}.metric-list dd{text-align:right;margin:0}.metric-list dd>span:first-child{font-weight:650}.metric-list dd>span+span{color:var(--text-muted);font-size:.85rem}.nutrient-more{border-top:1px solid var(--border);margin-top:4px}.nutrient-more>summary{min-height:44px;color:var(--accent);align-items:center;font-size:.92rem;font-weight:700;display:inline-flex}.detail-list{gap:8px;margin:0;display:grid}.detail-list>div{border-bottom:1px solid var(--border);justify-content:space-between;gap:12px;padding-bottom:6px;display:flex}.detail-list dd{text-align:right;margin:0}.security-list li:first-child{border-top:0}.progress-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px;display:grid}.progress-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);min-width:0;box-shadow:var(--shadow);text-align:center;grid-template-columns:minmax(0,1fr);justify-items:center;gap:4px;padding:18px 10px 16px;display:grid}.progress-card p{margin:6px 0 0;font-weight:650}.progress-card small{color:var(--text-muted);font-size:.8rem}.progress-caption.is-over{color:var(--danger)}.progress-ring{aspect-ratio:1;place-items:center;inline-size:min(140px,100%);display:grid;position:relative}.progress-ring svg{width:100%;height:100%;position:absolute;inset:0}.ring-track{fill:none;stroke:var(--track);stroke-width:11px}.ring-value{fill:none;stroke:var(--ring-kcal);stroke-linecap:round;stroke-width:11px;transition:stroke-dasharray .4s}.ring-protein .ring-value{stroke:var(--ring-protein)}.progress-ring.is-over .ring-value{stroke:var(--danger)}.ring-label{text-align:center;gap:0;max-width:72%;line-height:1.15;display:grid;position:relative}.ring-label strong{letter-spacing:-.02em;font-size:1.45rem}.ring-label span{color:var(--text-muted);overflow-wrap:anywhere;font-size:.75rem}.progress-ring.is-over .ring-label span{color:var(--danger);font-weight:700}.day-column>.quality-note{margin-bottom:16px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 12px;display:grid}.stat-grid>div{overflow-wrap:anywhere;border-radius:var(--radius);background:var(--surface-2);flex-direction:column-reverse;justify-content:flex-end;gap:2px;min-width:0;padding:12px 14px;display:flex}.stat-grid dt{color:var(--text-muted);font-size:.8rem;font-weight:600;line-height:1.3}.stat-grid dd{letter-spacing:-.01em;margin:0;font-size:1.35rem;font-weight:750;line-height:1.2}.stat-grid dd.stat-text{font-size:.95rem}.mode-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.mode-button{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-2);min-width:0;min-height:104px;color:var(--text);font:inherit;text-align:center;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:14px 8px;transition:background-color .15s,border-color .15s,transform .1s;display:flex}.mode-button .icon{color:var(--accent)}.mode-button .mode-label{font-size:1.05rem;font-weight:800;line-height:1.2}.mode-button small{color:var(--text-muted);font-size:.82rem;line-height:1.25}.mode-button:hover{border-color:var(--border-strong);background:var(--surface-3)}.mode-button:active{transform:scale(.98)}.mode-button:disabled{cursor:not-allowed;opacity:.6;transform:none}.mode-button-first{border-color:var(--primary);background:var(--primary);min-height:132px;color:var(--on-primary);grid-column:1/-1}.mode-button-first .icon,.mode-button-first small{color:var(--on-primary)}.mode-button-first .mode-label{font-size:1.3rem}.mode-button-first:hover{border-color:var(--primary);background:var(--primary);filter:brightness(1.05)}.meal-context{border-radius:var(--radius);background:var(--surface-2);justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;display:flex}.meal-context p{margin:0}.meal-context small{color:var(--text-muted)}.camera-dialog .camera-choice{background:#1a1f1c;flex-shrink:0}.camera-dialog .camera-choice>button{color:#e2e8f0}.camera-dialog .camera-choice>.selected{color:#2b201a;background:#f4ece1}.history-item.current-job{outline:2px solid var(--primary);outline-offset:2px}.menu-items{gap:8px;margin:0;padding:0;list-style:none;display:grid}.menu-item{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:10px 12px;display:grid}.menu-item>div{flex-direction:column;min-width:0;display:flex}.menu-item small{color:var(--text-muted)}.menu-item .text-button{grid-column:2;justify-self:end}.menu-quantity{grid-area:1/2;align-items:center;gap:6px;display:flex}.menu-quantity input{text-align:right;width:5.5rem}.menu-quantity input[aria-invalid=true]{border-color:var(--danger)}.menu-total{margin:0;font-size:1.05rem}.ingredient-ways{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.way-button{border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);min-height:76px;color:var(--text);font:inherit;text-align:center;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:10px;display:flex}.way-button small{color:var(--text-muted)}.way-button.selected{border-color:var(--primary);background:var(--accent-soft)}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.method-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.method-tile{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2);min-width:0;min-height:92px;color:var(--text);font:inherit;text-align:center;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:12px 6px;font-size:.88rem;font-weight:700;line-height:1.2;text-decoration:none;transition:background-color .15s,border-color .15s,transform .1s;display:flex}.method-tile .icon{color:var(--accent)}.method-tile:hover{border-color:var(--border-strong);background:var(--surface-3)}.method-tile:active{transform:scale(.97)}.add-context{padding-bottom:2px}.search-input{display:block;position:relative}.search-input .icon{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;left:14px;transform:translateY(-50%)}.field-row .search-input input{min-height:52px;padding-left:44px;font-size:1.05rem}.catalog-results{gap:8px;display:grid}.catalog-result-row{grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:8px;min-width:0;display:grid}.compact-link{white-space:nowrap;min-height:44px;padding:8px 14px}.catalog-result{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:100%;min-width:0;min-height:60px;color:var(--text);text-align:left;cursor:pointer;justify-content:space-between;align-items:center;gap:16px;padding:10px 14px;display:flex}.catalog-result:hover{border-color:var(--border-strong);background:var(--surface-2)}.catalog-result>span{gap:2px;display:grid}.catalog-result>span:first-child{overflow-wrap:anywhere;min-width:0}.catalog-result>span:last-child{text-align:right;white-space:nowrap}.catalog-result small{color:var(--text-muted)}.more-ways{border-top:1px solid var(--border);padding-top:14px}.card.more-ways{padding-top:16px}.card.more-ways h2{margin:0 0 4px;font-size:1rem}.favorite-list{grid-template-columns:minmax(0,1fr);gap:8px;margin:0;padding:0;list-style:none;display:grid}.favorite-list li{min-width:0}.quick-food{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2);padding:14px}.recipe-list{gap:14px;margin:0;display:grid}.recipe-list-item{gap:8px;min-width:0;display:grid}.recipe-list-item small{color:var(--text-muted);display:block}.recipe-list-actions{flex-wrap:wrap;gap:8px;display:flex}.save-menu-button{min-height:44px}.save-meal-menu{border:1px solid var(--border);border-radius:var(--radius);margin-top:8px;padding:12px}.review-amount input{font-size:1.25rem;font-weight:700}.intake-review>h2:focus{outline:none}.more-ways h3{color:var(--text-muted);letter-spacing:.06em;text-transform:uppercase;margin:0 0 4px;font-size:.78rem;font-weight:800}.more-ways ul{margin:0;padding:0;list-style:none;display:grid}.more-way{border:0;border-bottom:1px solid var(--border);width:100%;min-height:50px;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;align-items:center;gap:12px;padding:8px 2px;font-weight:650;text-decoration:none;display:flex}.more-ways li:last-child .more-way{border-bottom:0}.more-way>.icon:first-child{color:var(--accent)}.more-way span{flex:1;min-width:0}.more-way-chevron{color:var(--text-muted)}.more-way:hover span{text-underline-offset:3px;text-decoration:underline}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.quick-actions.three-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.section-actions,.saved-product-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.saved-product-actions .primary-button{flex:220px}.review-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.review-metrics span{background:var(--accent-soft);color:var(--accent);border-radius:12px;gap:2px;padding:12px;display:grid}.review-metrics strong{font-size:1.25rem}.intake-review{min-width:0}.intake-confirm-action{bottom:calc(var(--nav-height) + 12px + env(safe-area-inset-bottom));background:var(--surface);padding:8px 0;position:sticky}.intake-confirm-action .primary-button{width:100%}@media (min-width:900px){.intake-confirm-action{bottom:0}}.nested-section{border-top:1px solid var(--border);gap:12px;min-width:0;padding-top:12px;display:grid}.nested-section h2{margin:0}.ingredient-list{gap:12px;display:grid}.ingredient-row{border:1px solid var(--border);border-radius:var(--radius);min-width:0;margin:0;padding:14px}.ingredient-row legend{padding:0 6px;font-weight:700}.ingredient-row .text-button{width:auto}.file-action{border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);min-height:44px;color:var(--text);cursor:pointer;justify-content:center;align-items:center;font-weight:700;display:flex}.file-action input{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.barcode-panel h3{margin:0}.barcode-manual{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;display:grid}.barcode-manual button{width:auto;min-height:48px}.barcode-stage{border-radius:12px;position:relative;overflow:hidden}.barcode-preview{aspect-ratio:4/3;object-fit:cover;background:#0f172a;border-radius:12px;width:100%;max-height:320px;display:block}.barcode-preview.hidden{display:none}.barcode-guide{pointer-events:none;place-items:center;display:grid;position:absolute;inset:0}.barcode-guide span{border:3px solid #5eead4;border-radius:14px;width:min(82%,420px);height:34%;box-shadow:0 0 0 999px #0f172a57}.barcode-fallbacks{border-top:1px solid #94a3b866;padding-top:4px}.camera-dialog{box-sizing:border-box;width:100%;max-width:none;height:100dvh;max-height:none;padding:max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));color:#f4f6f3;background:#0b0f0d;border:0;border-radius:0;margin:0;position:fixed;inset:0;overflow:hidden}.camera-dialog:not([open]){display:none}.camera-dialog[open]{flex-direction:column;gap:12px;display:flex}.camera-dialog::backdrop{background:#0b0f0d}.camera-header{flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;display:flex}.camera-header h2{margin:0;font-size:1.3rem}.camera-content{overscroll-behavior:contain;flex-direction:column;flex:1;gap:12px;min-height:0;display:flex;overflow-y:auto}.camera-stage{background:#020617;border-radius:12px;flex:auto;min-height:120px;position:relative;overflow:hidden}.camera-stage[hidden]{display:none}.camera-stage video,.camera-stage img{object-fit:contain;border-radius:0;width:100%;height:100%;max-height:none;position:absolute;inset:0}.camera-stage video[hidden]{display:none}.camera-dialog .barcode-preview{aspect-ratio:auto;object-fit:cover}.camera-dialog .status-message{flex-shrink:0;margin:0}.camera-dialog .secondary-button{color:#f8fafc;background:0 0;border-color:#94a3b8;min-height:44px}.camera-dialog .file-action{color:#f8fafc;background:0 0;border-color:#94a3b8}.camera-dialog .primary-button{color:#0b0f0d;background:#f4f6f3;border-color:#f4f6f3}.camera-dialog .field-row input{color:#f4f6f3;background:#1a1f1c;border-color:#3d4541}.camera-hint{color:#cbd5e1;flex-shrink:0;margin:0;font-size:.9rem}.camera-toolbar,.barcode-manual-toggle,.camera-dialog .quick-actions{flex-shrink:0}.barcode-manual-toggle summary{align-items:center;min-height:44px;text-decoration:underline;display:flex}.barcode-manual-toggle[open] summary{margin-bottom:8px}.photo-shutter{min-height:52px}.selected-photos{gap:12px;margin:0;padding:0;list-style:none;display:grid}.selected-photo{grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:10px;display:grid}.selected-photo img{background:var(--surface-3);object-fit:contain;border-radius:8px;width:72px;height:72px}.selected-photo span{overflow-wrap:anywhere;font-size:.85rem}@media (max-width:520px){.card{border-radius:18px;padding:16px}.two-columns,.inline-form,.barcode-manual,.conversion-grid,.intake-review .two-columns{grid-template-columns:1fr}.intake-review input,.intake-review select{width:100%;min-width:0}.add-context{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-actions.three-actions{grid-template-columns:1fr}.barcode-manual button{width:100%}.progress-grid{gap:10px}.progress-card{padding:14px 6px 12px}.ring-label strong{font-size:1.25rem}.entry-list li{align-items:flex-start}.compact-actions{flex-direction:column;align-items:flex-end;gap:0!important}.period-toolbar{flex-direction:column;align-items:stretch}.metric-list>div{gap:2px;display:grid}.metric-list dd{text-align:left}.period-steps{justify-content:space-between}}@media (max-width:380px){.method-tile{min-height:84px;font-size:.8rem}.add-context{grid-template-columns:1fr}.stat-grid dd{font-size:1.15rem}}@media (max-width:360px){.selected-photo{grid-template-columns:60px minmax(0,1fr)}.selected-photo img{width:60px;height:60px}.selected-photo button{grid-column:2}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important}}.spinner-wrap{place-items:center;display:grid}.spinner{border:4px solid var(--track);border-top-color:var(--primary);border-radius:50%;width:36px;height:36px;animation:.8s linear infinite spin}.navigation-spinner{z-index:70;background:var(--surface-glass);box-shadow:var(--shadow);pointer-events:none;border-radius:50%;padding:18px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation-duration:2.4s}}.spinner-small{border-width:2px;width:16px;height:16px;display:inline-block}.job-status{align-items:center;gap:8px;display:flex}.quick-correction{gap:10px;display:grid}.quick-correction-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.history-chart{gap:8px;display:grid}.history-chart svg{width:100%;height:auto;display:block;overflow:visible}.chart-legend{color:var(--text-muted);flex-wrap:wrap;gap:6px 16px;font-size:.85rem;display:flex}.chart-legend span{align-items:center;gap:6px;display:inline-flex}.legend-bar{background:var(--ring-kcal);border-radius:3px 3px 0 0;width:10px;height:12px;display:inline-block}.legend-over{background:var(--danger)}.legend-line{border-top:2px dashed var(--text);width:16px;height:0;display:inline-block}.chart-grid{stroke:var(--border);stroke-width:1px}.chart-baseline{stroke:var(--border-strong);stroke-width:1px}.chart-axis-label{fill:var(--text-muted);font-variant-numeric:tabular-nums;font-size:11px}.chart-hit{fill:#0000}.chart-slot:hover .chart-hit{fill:var(--surface-2)}.chart-bar{fill:var(--ring-kcal)}.chart-bar-over{fill:var(--danger)}.chart-budget{fill:none;stroke:var(--text);stroke-width:2px;stroke-dasharray:5 3;stroke-linejoin:round}.chart-weight{fill:none;stroke:var(--ring-protein);stroke-width:2px;stroke-linejoin:round}.chart-weight-point{fill:var(--ring-protein);stroke:var(--surface);stroke-width:2px}.chart-subheading{margin:8px 0 0;font-size:1rem}.chart-subheading small{color:var(--text-muted);font-weight:400}@media (max-width:899px) and (hover:none) and (pointer:coarse){body:has(:is(input:not([type=checkbox],[type=radio],[type=file],[type=button],[type=submit],[type=reset],[type=range],[type=color]),textarea,select):focus) .nav{display:none}body:has(:is(input:not([type=checkbox],[type=radio],[type=file],[type=button],[type=submit],[type=reset],[type=range],[type=color]),textarea,select):focus) :is(.add-tabs,.intake-confirm-action){position:static}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}
