@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-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size: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;--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}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fixed{position:fixed}.static{position:static}.block{display:block}.hidden{display:none}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}:root{--font-ui:-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-editorial:-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--paper:#fbfbf8;--surface:#fff;--ink:#171a15;--muted:#6f736a;--stone:#deded5;--stone-soft:#efefe9;--olive:#596b32;--olive-dark:#3f4f24;--olive-wash:#edf0e5;--apricot:#ed7a32;--apricot-wash:#fff1e7;--danger:#a43b32;--shadow:0 4px 14px #2a2d241a}*{box-sizing:border-box}html{background:var(--paper);width:100%;max-width:100%;overflow-x:clip}body{background:var(--paper);width:100%;max-width:100%;min-height:100vh;color:var(--ink);font-family:var(--font-ui), sans-serif;-webkit-font-smoothing:antialiased;margin:0;font-size:15px;line-height:1.5;overflow-x:clip}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit}a{color:inherit;text-decoration:none}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}:focus-visible{outline-offset:2px;outline:3px solid #596b3247}.brand{align-items:center;gap:10px;display:inline-flex}.brand-name{font-family:var(--font-editorial), serif;letter-spacing:-.025em;font-size:25px;font-weight:600}.app-shell{width:100%;min-width:0;min-height:100vh}.sidebar{z-index:20;background:var(--paper);border-right:1px solid var(--stone);flex-direction:column;width:232px;padding:28px 14px 18px;display:flex;position:fixed;inset:0 auto 0 0}.sidebar-brand{padding:0 10px 30px}.side-nav{gap:4px;display:grid}.nav-link{color:#42463e;border:1px solid #0000;border-radius:11px;align-items:center;gap:13px;min-height:46px;padding:0 13px;transition:all .16s;display:flex}.nav-link:hover{background:#596b320d}.nav-link.is-active{color:var(--olive-dark);background:var(--olive-wash);border-color:#d8deca;font-weight:700}.profile-control{text-align:left;background:var(--surface);border:1px solid var(--stone);cursor:pointer;border-radius:12px;grid-template-columns:35px 1fr auto;align-items:center;gap:9px;min-height:52px;margin-top:auto;padding:7px;display:grid}.profile-avatar{color:#fff;background:var(--olive);border-radius:50%;place-items:center;width:35px;height:35px;font-size:12px;font-weight:800;display:grid}.profile-name{text-overflow:ellipsis;font-size:13px;font-weight:700;overflow:hidden}.main-content{min-width:0;min-height:100vh;margin-left:232px;padding:28px clamp(24px,4vw,64px) 64px}.mobile-header,.mobile-nav{display:none}.page{width:min(1180px,100%);margin:0 auto}.page-heading{justify-content:space-between;align-items:end;gap:24px;margin:2px 0 28px;display:flex}.page-heading h1{font-family:var(--font-editorial), serif;letter-spacing:-.04em;margin:0;font-size:clamp(36px,4vw,52px);font-weight:500;line-height:1}.page-heading p{max-width:550px;color:var(--muted);margin:8px 0 0}.button{border:1px solid var(--stone);background:var(--surface);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:9px;min-height:44px;padding:0 17px;font-weight:700;transition:background .14s,border-color .14s;display:inline-flex}.button:hover{background:var(--stone-soft)}.button:disabled{cursor:wait;opacity:.6;transform:none}.button-primary{color:#fff;background:var(--olive);border-color:var(--olive)}.button-primary:hover{background:var(--olive-dark);border-color:var(--olive-dark)}.button-danger{color:var(--danger)}.button-full{width:100%}.icon-button{background:var(--surface);border:1px solid var(--stone);cursor:pointer;border-radius:10px;place-items:center;width:44px;height:44px;display:inline-grid}.field{gap:7px;display:grid}.field label,.field-label{letter-spacing:.02em;font-size:12px;font-weight:800}.field input,.field select,.search-input{width:100%;min-height:45px;color:var(--ink);background:var(--surface);border:1px solid var(--stone);border-radius:10px;padding:0 13px}.form-error{color:var(--danger);margin:0;font-size:13px}.form-success{color:var(--olive-dark);margin:0;font-size:13px;font-weight:700}.login-page{background:var(--surface);justify-content:center;align-items:center;min-height:100vh;display:flex}.login-panel{flex-direction:column;justify-content:center;width:min(470px,100% - 64px);margin:0 auto;padding:48px 0;display:flex}.login-copy{margin:90px 0 38px}.login-copy h1{max-width:380px;font-family:var(--font-editorial), serif;letter-spacing:-.035em;margin:0 0 14px;font-size:42px;font-weight:750;line-height:1.05}.login-copy p{max-width:390px;color:var(--muted);margin:0;font-size:16px}.login-form{gap:13px;display:grid}.auth-box{gap:16px;display:grid}.auth-mode button{cursor:pointer;background:0 0;border:0;border-radius:7px;min-height:39px;padding:0 10px;font-size:12px;font-weight:700}.auth-mode button.is-active{background:var(--surface);font-weight:800;box-shadow:0 2px 8px #2a2d2417}.auth-field{gap:7px;display:grid}.auth-field>span:first-child{font-size:12px;font-weight:800}.password-field{border:1px solid var(--stone);border-radius:11px;align-items:center;gap:10px;min-height:50px;padding:0 14px;display:flex}.password-field input{background:0 0;border:0;outline:0;width:100%;min-width:0;height:48px}.login-footnote{color:var(--muted);margin:24px 0 0;font-size:11px}.card,.loading-card{background:var(--surface);border:1px solid var(--stone);border-radius:16px}.loading-card{color:var(--muted);text-align:center;padding:48px}.heading-actions,.date-switcher,.row-actions{align-items:center;gap:9px;display:flex}.diary-heading{justify-content:space-between;align-items:end;gap:18px;margin-bottom:25px;display:flex}.diary-heading h1{font-family:var(--font-editorial), serif;letter-spacing:-.045em;text-transform:capitalize;margin:0;font-size:clamp(38px,4.5vw,57px);font-weight:500;line-height:.95}.date-switcher input{background:var(--surface);border:1px solid var(--stone);border-radius:10px;min-height:44px;padding:0 12px}.daily-summary{background:var(--surface);border:1px solid var(--stone);border-radius:17px;grid-template-columns:162px 190px 1fr;align-items:center;gap:clamp(22px,4vw,54px);min-height:212px;padding:25px clamp(24px,4vw,42px);display:grid}.calorie-ring{border-radius:50%;place-items:center;width:148px;height:148px;padding:12px;display:grid}.calorie-ring>div{background:var(--surface);border-radius:50%;align-content:center;place-items:center;width:100%;height:100%;display:grid}.calorie-ring strong{font-family:var(--font-editorial), serif;font-size:34px;font-weight:600;line-height:1}.calorie-ring span,.remaining-copy small,.macro-stat small{color:var(--muted);font-size:11px}.remaining-copy{display:grid}.remaining-copy>span{color:var(--muted);font-size:12px;font-weight:700}.remaining-copy>strong{color:var(--apricot);font-family:var(--font-editorial), serif;margin:4px 0;font-size:34px;font-weight:600}.daily-adjustments{flex-wrap:wrap;gap:4px;margin-top:6px;display:flex}.daily-adjustments span{color:var(--olive-dark);background:var(--olive-wash);white-space:nowrap;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:750}.daily-adjustments span.is-debt,.debt-value{color:var(--danger)}.macro-summary{gap:15px;display:grid}.macro-stat{grid-template-columns:112px 1fr 48px;align-items:center;gap:14px;display:grid}.macro-stat>span{display:grid}.macro-stat>i{background:#e3e5dc;border-radius:999px;height:6px;overflow:hidden}.macro-stat>i b{background:var(--olive);border-radius:inherit;height:100%;display:block}.macro-stat em{color:var(--muted);text-align:right;font-size:11px;font-style:normal}.meal-list{gap:12px;margin-top:18px;display:grid}.mobile-primary-actions{display:none}.meal-card{background:var(--surface);border:1px solid var(--stone);border-radius:14px;overflow:hidden}.meal-card>header{justify-content:space-between;align-items:center;min-height:68px;padding:0 18px 0 22px;display:flex}.meal-card>header>div{align-items:baseline;gap:12px;display:flex}.meal-card h2{font-family:var(--font-editorial), serif;margin:0;font-size:23px;font-weight:600}.meal-card header span{color:var(--muted);font-size:11px;font-weight:700}.add-round{color:#fff;background:var(--olive);cursor:pointer;border:0;border-radius:50%;place-items:center;width:34px;height:34px;display:grid}.entry-list{border-top:1px solid var(--stone-soft)}.entry-row{grid-template-columns:1fr auto 92px 34px;align-items:center;gap:16px;min-height:66px;padding:8px 18px 8px 22px;display:grid}.entry-row+.entry-row{border-top:1px solid var(--stone-soft)}.entry-copy{text-align:left;min-width:0;color:inherit;cursor:pointer;background:0 0;border:0;padding:0;display:grid}.entry-copy strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.entry-copy span{color:var(--muted);font-size:11px}.serving-stepper{border:1px solid var(--stone);border-radius:8px;grid-template-columns:36px minmax(76px,1fr) 36px;align-items:center;display:grid;overflow:hidden}.numeric-stepper{background:var(--surface);border:1px solid var(--stone);border-radius:10px;grid-template-columns:44px minmax(72px,1fr) 44px;width:100%;min-width:0;display:grid;overflow:hidden}.numeric-stepper>button{background:var(--stone-soft);cursor:pointer;border:0;place-items:center;min-width:44px;min-height:46px;display:grid}.numeric-stepper>button:first-child{border-right:1px solid var(--stone)}.numeric-stepper>button:last-child{border-left:1px solid var(--stone)}.numeric-stepper>button:disabled{cursor:default;opacity:.35}.numeric-stepper-value{align-items:center;min-width:0;display:flex;position:relative}.numeric-stepper-value input{text-align:center;appearance:textfield;background:0 0;border:0;outline:0;width:100%;min-width:0;height:46px;padding:0 42px 0 10px}.numeric-stepper-value input::-webkit-inner-spin-button{appearance:none;margin:0}.numeric-stepper-value input::-webkit-outer-spin-button{appearance:none;margin:0}.numeric-stepper-value small{color:var(--muted);white-space:nowrap;pointer-events:none;font-size:10px;position:absolute;right:9px}.numeric-stepper.is-compact{border:0;grid-template-columns:34px minmax(76px,1fr) 34px;width:156px}.numeric-stepper.is-compact>button{min-width:34px;min-height:34px}.numeric-stepper.is-compact .numeric-stepper-value input{height:34px;padding-inline:5px 25px;font-size:12px;font-weight:800}.serving-stepper button{min-width:36px;min-height:36px;color:var(--ink);background:var(--stone-soft);cursor:pointer;border:0;place-items:center;display:grid}.serving-stepper .serving-stepper-value{background:var(--surface);text-align:center;justify-content:center;align-items:baseline;gap:4px;min-width:76px;font-size:12px;font-weight:800;display:flex}.serving-stepper-value small{color:var(--muted);white-space:nowrap;font-size:10px;font-weight:600}.entry-editor{gap:16px;display:grid}.entry-serving-note{color:var(--muted);margin:0;font-size:13px;line-height:1.45}.entry-kcal{text-align:right}.entry-kcal small{color:var(--muted);font-size:10px}.delete-entry,.favorite-button{color:var(--muted);cursor:pointer;background:0 0;border:0;place-items:center;display:grid}.delete-entry:hover,.danger-icon{color:var(--danger)}.empty-meal{width:100%;min-height:47px;color:var(--muted);border:0;border-top:1px dashed var(--stone);cursor:pointer;background:#fcfcfa;align-items:center;gap:7px;padding:0 22px;font-size:12px;display:flex}.dialog-backdrop{z-index:100;background:#171a1573;place-items:center;padding:22px;display:grid;position:fixed;inset:0}.dialog{background:var(--surface);width:min(600px,100%);max-height:min(780px,100vh - 44px);box-shadow:var(--shadow);border-radius:18px;overflow:auto}.dialog-wide{width:min(820px,100%)}.dialog-header{border-bottom:1px solid var(--stone-soft);justify-content:space-between;align-items:start;gap:20px;padding:24px 25px 19px;display:flex}.dialog-header h2{font-family:var(--font-editorial), serif;margin:0;font-size:28px}.dialog-header p{color:var(--muted);margin:3px 0 0;font-size:12px}.dialog-body{padding:22px 25px 26px}.stack-form{gap:15px;display:grid}.product-form-grid,.goal-fields,.settings-fields{grid-template-columns:repeat(2,1fr);gap:14px;display:grid}.nutrition-basis-copy{gap:2px;margin-top:2px;padding-top:4px}.nutrition-basis-copy p{color:var(--muted);margin:0;font-size:11px}.serving-copy{border-top:1px solid var(--stone-soft);margin-top:9px;padding-top:17px}.field-span-2{grid-column:span 2}.nutrition-field>span,.input-with-unit{align-items:center;display:flex;position:relative}.nutrition-field input,.input-with-unit input{padding-right:50px}.nutrition-field small,.input-with-unit small{color:var(--muted);font-size:11px;position:absolute;right:12px}.picker{gap:15px;display:grid}.picker-tools{grid-template-columns:1fr auto;gap:9px;display:grid}.search-box{background:var(--surface);border:1px solid var(--stone);border-radius:10px;align-items:center;gap:9px;min-height:46px;padding:0 13px;display:flex}.search-box input{background:0 0;border:0;outline:0;width:100%;min-width:0}.picker-list{border-top:1px solid var(--stone-soft);max-height:430px;display:grid;overflow:auto}.picker-product{text-align:left;border:0;border-bottom:1px solid var(--stone-soft);cursor:pointer;background:0 0;grid-template-columns:1fr 70px 24px;align-items:center;gap:12px;min-height:66px;padding:9px 4px;display:grid}.picker-product>span:first-child,.picker-calories{display:grid}.amount-picker{gap:17px;padding:4px 0;display:grid}.amount-picker>div:first-child{display:grid}.amount-picker>div:first-child small,.amount-picker-total span{color:var(--muted);font-size:11px}.amount-picker-total{background:var(--olive-wash);border-radius:10px;justify-content:space-between;align-items:baseline;padding:14px 16px;display:flex}.amount-picker-total strong{color:var(--olive-dark);font-size:20px}.amount-picker-actions{grid-template-columns:1fr 1fr;gap:9px;display:grid}.picker-product small{color:var(--muted);font-size:10px}.picker-calories{text-align:right;font-weight:800}.empty-inline{color:var(--muted);text-align:center}.scanner{gap:14px;display:grid}.scanner-viewport{background:#1c1f19;border-radius:13px;min-height:320px;position:relative;overflow:hidden}.scanner-viewport video{object-fit:cover;width:100%;height:360px}.scan-frame{color:#fff;border:2px solid #ffffffbf;border-radius:14px;place-items:center;display:grid;position:absolute;inset:22% 15%}.scan-frame svg{width:65%;height:auto}.scanner-label{color:#fff;background:#0000008c;border-radius:999px;align-items:center;gap:6px;padding:6px 10px;font-size:11px;display:flex;position:absolute;bottom:14px;left:50%;transform:translate(-50%)}.manual-barcode{grid-template-columns:auto 1fr auto;align-items:center;gap:10px;display:grid}.manual-barcode input{border:1px solid var(--stone);border-radius:9px;min-width:0;min-height:44px;padding:0 12px}.library-search{width:min(520px,100%);margin-bottom:20px}.product-table,.history-list{background:var(--surface);border:1px solid var(--stone);border-radius:14px;overflow:hidden}.product-table>header,.product-table>article{grid-template-columns:34px minmax(220px,1fr) 120px 210px 92px;align-items:center;gap:12px;padding:0 17px;display:grid}.product-table>header{min-height:42px;color:var(--muted);text-transform:uppercase;background:#f5f5f0;font-size:10px;font-weight:800}.product-table>header span:first-child{grid-column:2}.product-table>article{border-top:1px solid var(--stone-soft);min-height:72px}.favorite-button.is-favorite{color:var(--apricot)}.product-name,.product-serving{display:grid}.product-name span,.product-serving span{color:var(--muted);font-size:10px}.product-macros{gap:7px;display:flex}.product-macros span{color:var(--olive-dark);background:var(--olive-wash);border-radius:999px;padding:4px 7px;font-size:10px;font-weight:800}.row-actions .icon-button{width:36px;height:36px}.empty-state{min-height:260px;color:var(--muted);align-content:center;place-items:center;gap:7px;display:grid}.empty-state strong{color:var(--ink)}.range-select{background:var(--surface);border:1px solid var(--stone);border-radius:10px;align-items:center;gap:8px;min-height:44px;padding:0 12px;display:flex}.range-select select{background:0 0;border:0;outline:0}.history-stats{grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:14px;display:grid}.history-stats article{background:var(--surface);border:1px solid var(--stone);border-radius:14px;align-content:center;min-height:130px;padding:22px;display:grid}.history-stats span,.history-stats small{color:var(--muted);font-size:11px}.history-stats strong{font-family:var(--font-editorial), serif;font-size:38px;line-height:1.1}.chart-card{background:var(--surface);border:1px solid var(--stone);border-radius:14px;padding:23px 24px 17px}.chart-card>header{justify-content:space-between;align-items:start;display:flex}.chart-card h2,.settings-card h2,.goal-form h2{font-family:var(--font-editorial), serif;margin:0;font-size:25px}.chart-card p,.settings-card header p,.goal-form header p{color:var(--muted);margin:2px 0 0;font-size:11px}.chart-legend{color:var(--muted);align-items:center;gap:6px;font-size:10px;display:flex}.chart-legend i{background:var(--olive);border-radius:2px;width:9px;height:9px}.bar-chart{align-items:end;gap:5px;height:270px;padding-top:30px;display:flex}.bar-column{flex:1;align-items:end;height:100%;display:flex;position:relative}.bar{background:var(--olive);opacity:.82;border-radius:4px 4px 1px 1px;width:100%;min-height:2px}.bar-column small{color:var(--muted);white-space:nowrap;font-size:8px;position:absolute;top:calc(100% + 5px);left:0}.history-list{margin-top:28px}.history-list>header,.history-list>article{grid-template-columns:1.5fr repeat(7,minmax(64px,1fr));gap:10px;padding:0 18px;display:grid}.history-list>header{min-height:39px;color:var(--muted);background:#f5f5f0;align-items:center;font-size:10px;font-weight:800}.history-list>article{border-top:1px solid var(--stone-soft);align-items:center;min-height:51px;font-size:12px}.goal-layout{grid-template-columns:minmax(380px,.88fr) minmax(430px,1.12fr);align-items:start;gap:18px;display:grid}.goal-form,.goal-result,.settings-card{padding:25px}.goal-form>header,.settings-card>header{align-items:start;gap:13px;margin-bottom:22px;display:flex}.segmented{background:var(--stone-soft);border-radius:10px;grid-template-columns:1fr 1fr;gap:4px;padding:4px;display:grid}.segmented-three{grid-template-columns:repeat(3,1fr)}.segmented label{position:relative}.segmented input{z-index:1;opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;inset:0}.segmented span{cursor:pointer;border-radius:7px;place-items:center;min-height:37px;font-size:12px;display:grid}.segmented button{min-height:37px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;gap:6px;padding:0 9px;font-size:12px;display:inline-flex}.segmented button.is-selected{color:var(--ink);background:var(--surface);font-weight:800;box-shadow:0 2px 8px #2a2d2417}.segmented button:disabled:not(.is-selected){cursor:not-allowed;opacity:.55}.segmented input:checked+span{background:var(--surface);font-weight:800;box-shadow:0 2px 8px #2a2d2417}.option-card{background:var(--olive-wash);cursor:pointer;border:1px solid #d8deca;border-radius:11px;grid-template-columns:24px 1fr;gap:11px;margin:18px 0 13px;padding:15px;display:grid}.option-card>input{opacity:0;position:absolute}.option-check{color:#0000;background:var(--surface);border:1px solid #b8c2a4;border-radius:6px;place-items:center;width:22px;height:22px;display:grid}.option-card>input:checked+.option-check{color:#fff;background:var(--olive);border-color:var(--olive)}.option-card>span:last-child{gap:3px;display:grid}.option-card small{color:var(--muted);font-size:10px;line-height:1.45}.apply-option{color:var(--muted);align-items:center;gap:8px;margin:0 0 16px;font-size:11px;display:flex}.goal-result{min-height:550px}.result-placeholder{min-height:490px;color:var(--muted);text-align:center;align-content:center;place-items:center;display:grid}.result-placeholder h2{color:var(--ink);font-family:var(--font-editorial), serif;margin:14px 0 5px}.result-placeholder p{max-width:370px;margin:0}.result-header{justify-content:space-between;align-items:start;gap:16px;display:flex}.result-header>div{display:grid}.result-header span{color:var(--muted);font-size:11px;font-weight:700}.result-header strong{color:var(--apricot);font-family:var(--font-editorial), serif;font-size:47px;line-height:1.05}.result-header strong small{font-family:var(--font-ui), sans-serif;font-size:13px}.result-metrics{border-block:1px solid var(--stone-soft);grid-template-columns:repeat(4,1fr);margin:24px 0 16px;display:grid}.result-metrics>div{gap:3px;padding:15px 10px;display:grid}.result-metrics>div+div{border-left:1px solid var(--stone-soft)}.result-metrics span{color:var(--muted);font-size:9px}.result-metrics strong{font-size:13px}.protein-result{background:var(--olive-wash);border-radius:10px;grid-template-columns:1fr auto;align-items:end;padding:14px 16px;display:grid}.protein-result>span,.protein-result>p{color:var(--muted);font-size:10px}.protein-result>strong{font-family:var(--font-editorial), serif;grid-row:span 2;font-size:27px}.protein-result p{margin:2px 0 0}.projection-chart{margin:20px 0 12px}.projection-chart>div{justify-content:space-between;font-size:11px;font-weight:800;display:flex}.projection-chart svg{border-bottom:1px solid var(--stone);width:100%;height:170px;overflow:visible}.projection-line{fill:none;stroke:var(--olive);stroke-linecap:round;stroke-linejoin:round;stroke-width:4px;vector-effect:non-scaling-stroke}.projection-chart>small{color:var(--muted);font-size:9px}.warning-list{color:var(--muted);gap:5px;padding-left:17px;font-size:9px;display:grid}.settings-grid{grid-template-columns:1fr 1fr;gap:16px;display:grid}.goal-section{gap:20px;display:grid}.settings-section-heading{gap:2px;padding-top:4px;display:grid}.settings-section-heading>span{color:var(--olive);letter-spacing:.08em;text-transform:uppercase;font-size:11px;font-weight:800}.settings-section-heading h2{font-family:var(--font-editorial), serif;margin:0;font-size:31px}.settings-section-heading p{max-width:620px;color:var(--muted);margin:0}.settings-secondary{grid-template-columns:minmax(320px,560px);margin-top:30px}.settings-method-link{color:var(--muted);align-items:center;gap:8px;margin-top:24px;font-size:13px;font-weight:700;display:inline-flex}.settings-method-link:hover{color:var(--ink)}.settings-card{align-content:start;gap:18px;display:grid}.settings-card>header{margin:0}.daily-accounting-section{gap:20px;margin-top:30px;display:grid}.daily-accounting-grid{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:start;gap:16px;display:grid}.accounting-setting-card{gap:18px;padding:22px;display:grid}.setting-title{grid-template-columns:42px 1fr;align-items:start;gap:12px;display:grid}.setting-title h3{font-family:var(--font-editorial), serif;margin:0;font-size:23px}.setting-title p,.source-help{color:var(--muted);margin:3px 0 0;font-size:12px}.setting-icon{width:42px;height:42px;color:var(--olive-dark);background:var(--olive-wash);border-radius:12px;place-items:center;display:grid}.setting-toggle{background:var(--stone-soft);cursor:pointer;border-radius:11px;justify-content:space-between;align-items:center;gap:16px;min-height:64px;padding:12px 14px;display:flex}.setting-toggle>span,.health-sync-note>span{min-width:0;display:grid}.setting-toggle small,.health-sync-note small,.activity-levels small{color:var(--muted);font-size:10px;font-weight:500}.setting-toggle input{width:22px;height:22px;accent-color:var(--olive);flex:none}.activity-source,.activity-levels{gap:9px;display:grid}.health-sync-note{color:var(--olive-dark);background:var(--olive-wash);border-radius:10px;grid-template-columns:22px 1fr;align-items:center;gap:9px;padding:12px;display:grid}.activity-levels>button{text-align:left;background:var(--surface);border:1px solid var(--stone);cursor:pointer;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;min-height:62px;padding:10px 12px;display:flex}.activity-levels>button>span{display:grid}.activity-levels>button.is-selected{background:var(--olive-wash);border-color:#cbd4b7}.activity-levels em{color:var(--olive-dark);flex:none;font-size:12px;font-style:normal;font-weight:800}.saving-note{color:var(--muted);align-items:center;gap:6px;margin:0;font-size:12px;display:inline-flex}.global-message{margin-top:-12px;margin-bottom:16px}.method-page{width:min(760px,100%);margin:0 auto}.method-page article{background:var(--surface);border:1px solid var(--stone);border-radius:17px;padding:clamp(28px,5vw,60px)}.method-page article>a{color:var(--olive);margin-bottom:38px;font-weight:800;display:inline-block}.method-page h1{font-family:var(--font-editorial), serif;letter-spacing:-.045em;margin:0;font-size:clamp(42px,7vw,64px);font-weight:500;line-height:.98}.method-page .lead{color:var(--muted);margin-bottom:38px;font-size:18px}.method-page h2{font-family:var(--font-editorial), serif;margin:30px 0 5px}@media (max-width:860px){body{background:var(--surface)}.sidebar{display:none}.mobile-header{z-index:20;background:var(--surface);border-bottom:1px solid var(--stone-soft);align-items:center;height:64px;padding:0 18px;display:flex;position:sticky;top:0}.mobile-header .brand-name{font-size:22px}.mobile-nav{z-index:30;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--stone);grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.mobile-nav-link{min-height:49px;color:var(--muted);place-items:center;gap:2px;font-size:9px;display:grid}.mobile-nav-link.is-active{color:var(--olive-dark);font-weight:800}.main-content{width:100%;min-width:0;margin:0;padding:22px 16px 104px}.page-heading{align-items:start}.page-heading h1{font-size:38px}.login-page{grid-template-columns:1fr}.login-panel{width:100%;max-width:440px;min-height:100vh;padding:48px 20px}.login-copy{margin:82px 0 34px}.login-copy h1{font-size:48px}.page-heading,.diary-heading{flex-direction:column;align-items:start}.diary-heading{gap:14px;margin-bottom:28px}.diary-heading h1{line-height:1.05}.heading-actions,.date-switcher{width:100%}.heading-actions .button{flex:1}.date-switcher input{flex:1;width:auto;min-width:0}.daily-summary{grid-template-columns:115px 1fr;gap:18px;width:100%;min-width:0;padding:20px}.mobile-primary-actions{grid-template-columns:1fr 1fr;gap:9px;margin-top:10px;display:grid}.calorie-ring{width:112px;height:112px;padding:9px}.calorie-ring strong{font-size:27px}.macro-summary{border-top:1px solid var(--stone-soft);grid-column:span 2;padding-top:17px}.entry-row{grid-template-columns:1fr auto;gap:7px 12px}.entry-copy{grid-column:1}.serving-stepper{grid-area:2/1;width:max-content}.entry-kcal{grid-area:1/2}.delete-entry{grid-area:2/2;justify-self:end}.product-table>header{display:none}.product-table>article{grid-template-columns:27px 1fr auto;padding:14px}.product-serving{text-align:right}.product-macros,.row-actions{grid-column:2/span 2}.history-stats{grid-template-columns:1fr 1fr}.history-stats article:last-child{grid-column:span 2}.history-list>header,.history-list>article{grid-template-columns:1.4fr repeat(2,1fr)}.history-list span:nth-child(n+4){display:none}.goal-layout,.settings-grid,.daily-accounting-grid{grid-template-columns:1fr}.goal-result{min-height:auto}.result-placeholder{min-height:260px}.result-metrics{grid-template-columns:1fr 1fr}.result-metrics>div:nth-child(3){border-left:0;border-top:1px solid var(--stone-soft)}.result-metrics>div:nth-child(4){border-top:1px solid var(--stone-soft)}.dialog-backdrop{align-items:end;padding:0}.dialog{border-radius:20px 20px 0 0;width:100%;max-height:88vh}.goal-section .goal-layout{grid-template-columns:1fr}.scanner-viewport video{height:300px}}@media (max-width:520px){.product-form-grid,.goal-fields,.settings-fields{grid-template-columns:1fr}.field-span-2{grid-column:auto}.picker-tools{grid-template-columns:1fr}.manual-barcode{grid-template-columns:1fr auto}.manual-barcode>svg{display:none}.history-stats{grid-template-columns:1fr}.history-stats article:last-child{grid-column:auto}.result-header{flex-direction:column;align-items:start}.result-header strong{font-size:40px}.remaining-copy>strong{font-size:clamp(27px,8vw,34px)}.daily-adjustments{grid-template-columns:1fr 1fr;display:grid}.daily-adjustments span{text-overflow:ellipsis;overflow:hidden}.macro-stat{grid-template-columns:minmax(94px,112px) minmax(70px,1fr) 42px;gap:9px}.amount-picker-actions{grid-template-columns:1fr}}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
