.settings-groups+.settings-category{margin-top:28px}.settings-preferences-page #menu-settings .settings-groups>.settings-category:nth-child(n+6),.settings-preferences-page #menu-settings>.auth-account-section{display:none}.settings-preferences-page .settings-groups{gap:12px}.settings-preferences-page .settings-groups+.settings-category{margin-top:12px}.settings-preferences-page .settings-category-title{border:1px solid var(--border);background:var(--surface);min-height:74px;box-shadow:0 7px 22px var(--shadow);cursor:pointer;border-radius:20px;flex-direction:column;justify-content:center;margin:0;padding:16px 52px 16px 18px;transition:border-radius .16s,background .16s;display:flex;position:relative}.settings-preferences-page .settings-category-title:after{content:"›";color:var(--muted);font-size:25px;line-height:1;transition:transform .16s,color .16s;position:absolute;top:50%;right:20px;transform:translateY(-50%)rotate(0)}.settings-preferences-page .settings-category-title:hover{background:color-mix(in srgb, var(--surface), var(--accent-soft) 24%)}.settings-preferences-page .settings-category-title:focus-visible{outline:3px solid color-mix(in srgb, var(--accent), transparent 60%);outline-offset:2px}.settings-preferences-page .settings-category>.settings-list{display:none}.settings-preferences-page .settings-category.is-open>.settings-category-title{box-shadow:0 5px 18px var(--shadow);border-bottom-color:#0000;border-radius:20px 20px 0 0}.settings-preferences-page .settings-category.is-open>.settings-category-title:after{color:var(--accent);transform:translateY(-50%)rotate(90deg)}.settings-preferences-page .settings-category.is-open>.settings-list{box-shadow:0 7px 22px var(--shadow);border-radius:0 0 20px 20px;margin-top:-1px;display:block}.settings-preferences-page .settings-category.is-open>.settings-list>button.settings-row>svg:last-child,.account-accordion-panel>button.setting-row>svg:last-child{display:none}@media (max-width:1100px){.settings-groups+.settings-category{width:100%;max-width:720px;margin:28px auto 0}.settings-preferences-page .settings-groups+.settings-category{margin-top:12px}}@media (max-width:760px){.settings-groups+.settings-category{margin-top:25px}.settings-preferences-page .settings-groups+.settings-category{margin-top:12px}.settings-preferences-page .settings-category-title{min-height:68px;padding:13px 46px 13px 15px}.settings-preferences-page .settings-category-title:after{right:17px}}
.accent-preview>button{display:none!important}.profile-detail-row{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;width:100%;padding:14px 16px;display:grid}.profile-detail-row+.profile-detail-row{border-top:1px solid var(--border)}.profile-detail-row>span:last-child{gap:2px;display:grid}.profile-detail-row small{color:var(--muted)}.activity-list>p{justify-content:center;align-items:center;min-height:72px;display:flex;padding:18px 0!important}:is(html:has(.settings-backdrop),body:has(.settings-backdrop)){overscroll-behavior:none;height:100%;overflow:hidden!important}.settings-backdrop{overscroll-behavior:none}.settings-dialog-body{overscroll-behavior:contain}.partner-dashboard>.settings-field select{height:48px;min-height:48px;padding-block:0;padding-inline:13px 40px;line-height:48px}.partner-shared-calendar{z-index:auto;position:static!important;top:auto!important}.calendar-grid button{aspect-ratio:1;justify-self:center;width:38px;max-width:calc(100% - 8px);position:relative;border:2px solid #0000!important}.calendar-grid button>i.met,.calendar-grid button>i.missed,.calendar-grid button>i.logged{pointer-events:none;border:2px solid;border-color:var(--accent);border-radius:50%;position:absolute;inset:0;background:0 0!important;width:auto!important;height:auto!important;display:block!important}.calendar-grid button.selected{box-shadow:none!important;border-color:#0000!important}.calendar-legend i.met,.calendar-legend i.missed,.calendar-legend i.logged{border:2px solid;border-color:var(--accent);border-radius:50%;width:10px;height:10px;background:0 0!important}.sharing-data-icons{display:none!important}@media (max-width:760px){.calendar-grid button{width:36px;max-width:calc(100% - 10px)}}
html[data-pwa-standalone=true],html[data-pwa-standalone=true] body{overscroll-behavior:none}@media (max-width:760px){html[data-pwa-keyboard=true] .mobile-nav{display:none!important}html[data-pwa-standalone=true] .quick-stats{place-items:stretch stretch}html[data-pwa-standalone=true] .quick-stats>.weight-stat{justify-self:stretch;width:100%;min-width:0}}.modal-backdrop{height:var(--pwa-visible-bottom,100dvh);overscroll-behavior:contain;touch-action:pan-y;inset:0 0 auto}body:has(.modal-backdrop){overflow:hidden}.modal-backdrop>section{touch-action:pan-y;-webkit-overflow-scrolling:touch}.modal-backdrop .add-sheet,.modal-backdrop .settings-dialog,.modal-backdrop .food-picker-sheet,.modal-backdrop .diary-editor-sheet,.modal-backdrop .weight-entry-sheet,.modal-backdrop .profile-editor-sheet,.modal-backdrop .health-setup-dialog{max-height:calc(var(--pwa-visible-bottom,100dvh) - 36px)}.modal-backdrop .health-setup-dialog{touch-action:pan-y}.modal-backdrop .add-sheet,.modal-backdrop .settings-dialog,.modal-backdrop .food-picker-sheet,.modal-backdrop .diary-editor-sheet,.modal-backdrop .weight-entry-sheet,.modal-backdrop .profile-editor-sheet{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;overflow-y:auto}.modal-backdrop .food-picker-sheet.nutrition-label-sheet{overflow:hidden}.modal-backdrop .add-sheet,.modal-backdrop .settings-dialog-body,.modal-backdrop .food-picker-sheet,.modal-backdrop .diary-editor-sheet,.modal-backdrop .weight-entry-sheet,.modal-backdrop .profile-editor-sheet,.modal-backdrop .health-setup-steps{touch-action:pan-y}@media (max-width:760px){html[data-pwa-standalone=true] body{overflow:hidden}html[data-pwa-standalone=true] .app-shell:has(.modal-backdrop)>main{overflow:hidden}html[data-pwa-standalone=true] .app-shell{height:max(var(--app-height,0px), 100dvh);min-height:0;padding-top:env(safe-area-inset-top);flex-direction:column;display:flex;overflow:hidden}html[data-pwa-standalone=true] .app-shell>main{overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;flex:auto;height:auto;min-height:0;overflow-y:auto}html[data-pwa-standalone=true] .topbar{display:none}html[data-pwa-standalone=true] .page-content{padding-bottom:24px}html[data-pwa-standalone=true] .diary-timeline-card .diary-meal{column-gap:14px}html[data-pwa-standalone=true] .tracking-grid{grid-template-columns:1fr;gap:14px}html[data-pwa-standalone=true] .tracking-card{padding:16px}html[data-pwa-standalone=true] .auth-loading-shell{min-height:max(var(--app-height,0px), 100dvh);padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}html[data-pwa-standalone=true] .auth-gate-shell{min-height:max(var(--app-height,0px), 100dvh);padding-top:calc(24px + env(safe-area-inset-top));padding-bottom:calc(24px + env(safe-area-inset-bottom))}html[data-pwa-standalone=true] .modal-backdrop{padding-top:env(safe-area-inset-top)}html[data-pwa-standalone=true] .modal-backdrop>section{max-height:calc(var(--pwa-visible-bottom,100dvh) - env(safe-area-inset-top))}html[data-pwa-standalone=true] .mobile-nav{width:100%;height:auto;min-height:calc(72px + env(safe-area-inset-bottom));padding-bottom:max(5px, env(safe-area-inset-bottom));flex:none;position:relative;inset:auto}html[data-pwa-standalone=true] .mobile-add{box-shadow:none;border-width:0;align-self:center;transform:none}html[data-pwa-standalone=true] .add-sheet{padding-bottom:calc(20px + env(safe-area-inset-bottom))}html[data-pwa-standalone=true] .settings-dialog{padding-bottom:calc(17px + env(safe-area-inset-bottom))}html[data-pwa-standalone=true] .food-picker-sheet,html[data-pwa-standalone=true] .diary-editor-sheet,html[data-pwa-standalone=true] .weight-entry-sheet,html[data-pwa-standalone=true] .profile-editor-sheet{padding-bottom:calc(24px + env(safe-area-inset-bottom))}}.food-picker-sheet .food-search-results{background:0 0;border:0;border-radius:0;margin-top:10px;overflow:visible}.food-picker-sheet .food-search-results>h3,.food-picker-sheet .food-search-results>:where(h3){color:var(--muted);letter-spacing:.08em;text-transform:uppercase;font-weight:850;font-size:10px!important}.food-picker-sheet .food-result-quick{border-bottom:1px solid var(--border);background:0 0;grid-template-columns:minmax(0,1fr) 42px!important;align-items:stretch!important;display:grid!important}.food-picker-sheet .food-result-quick>button:first-child{text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:42px minmax(0,1fr) 74px;align-items:center;gap:11px;width:100%;min-width:0;min-height:64px;padding:9px 2px;display:grid}.food-picker-sheet .food-result-quick>button:first-child:hover,.food-picker-sheet .food-result-quick>button:first-child:active{background:0 0}.food-picker-sheet .food-result-quick>button:last-child{background:0 0!important;border:0!important;width:42px!important}.food-picker-sheet .food-result-quick>button:last-child:hover{color:var(--text)!important}.food-picker-sheet .food-result-quick strong,.food-picker-sheet .food-result-quick small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.food-picker-sheet .food-result-quick strong{font-size:12px}.food-picker-sheet .food-result-quick small{color:var(--muted);margin-top:3px;font-size:10px}.food-picker-sheet .food-result-quick b{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;justify-self:end;width:74px;font-size:14px}.food-picker-sheet [role=tablist][aria-label="Add food method"]{margin-top:16px}.food-picker-sheet .food-search-results>h3:first-of-type,.food-picker-sheet .food-search-results>h3:last-of-type{font-size:0!important}.food-picker-sheet .food-search-results>h3:first-of-type:after{content:"Common";font-size:10px}.food-picker-sheet .food-search-results>h3:last-of-type:not(:first-of-type):after{content:"Branded";font-size:10px}.food-picker-sheet .food-micronutrients:has(.nutrition-form-grid){border:0;border-top:1px solid var(--border);background:0 0;border-radius:0;margin-bottom:14px;overflow:visible;margin-top:16px!important}.food-picker-sheet .food-micronutrients:has(.nutrition-form-grid)>summary{min-height:50px;padding:12px 0 8px}.food-picker-sheet .food-micronutrients:has(.nutrition-form-grid)>.nutrition-form-grid{padding-bottom:4px;margin-top:4px!important}.food-picker-sheet .food-micronutrients:has(.nutrition-form-grid) .nutrition-form-grid label>div{background:0 0}
@media (max-width:760px){.app-shell .mobile-nav{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 70px minmax(0,1fr) minmax(0,1fr)}}
.food-picker-sheet:has(>.food-picker-search){height:min(780px, calc(var(--pwa-visible-bottom,100dvh) - 28px));max-height:min(780px, calc(var(--pwa-visible-bottom,100dvh) - 28px));flex-direction:column;display:flex;overflow:hidden!important}:is(.food-picker-sheet:has(>.food-picker-search)>.sheet-handle,.food-picker-sheet:has(>.food-picker-search)>.food-picker-head,.food-picker-sheet:has(>.food-picker-search)>[role=tablist],.food-picker-sheet:has(>.food-picker-search)>.food-picker-search,.food-picker-sheet:has(>.food-picker-search)>.food-picker-error){flex:none}.food-picker-sheet:has(>.food-picker-search)>.food-picker-head{padding-bottom:8px}.food-picker-sheet [role=tablist][aria-label="Add food method"]{border-bottom:1px solid var(--border);scrollbar-width:none;align-items:stretch;overflow-x:auto;gap:24px!important;margin-top:10px!important;padding:0 20px!important;display:flex!important}.food-picker-sheet [role=tablist][aria-label="Add food method"]::-webkit-scrollbar{display:none}.food-picker-sheet [role=tablist][aria-label="Add food method"]>button{white-space:nowrap;flex:1 0 auto;min-width:0;font-size:14px;font-weight:700;position:relative;min-height:48px!important;box-shadow:none!important;color:var(--muted)!important;background:0 0!important;border:0!important;border-radius:0!important;padding:10px 2px 12px!important}.food-picker-sheet [role=tablist][aria-label="Add food method"]>button[aria-selected=true]{color:var(--text)!important}.food-picker-sheet [role=tablist][aria-label="Add food method"]>button[aria-selected=true]:after{content:"";background:var(--accent);border-radius:2px 2px 0 0;height:2px;position:absolute;bottom:-1px;left:6px;right:6px}.food-picker-sheet>.food-picker-search{border:1px solid var(--border);background:color-mix(in srgb, var(--surface) 94%, var(--text) 6%);min-height:50px;box-shadow:none;border-radius:16px;gap:11px;margin:16px 20px 2px;padding:0 14px}.food-picker-sheet>.food-picker-search:focus-within{border-color:color-mix(in srgb, var(--accent) 76%, var(--border));box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent)}.food-picker-sheet>.food-picker-search input{letter-spacing:-.01em;min-width:0;font-size:16px;font-weight:600}.food-picker-sheet>.food-picker-search>svg{color:var(--muted)}.food-picker-sheet:has(>.food-picker-search)>.food-search-results{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:auto;min-height:0;padding:0 20px 12px;background:0 0!important;margin-top:10px!important;overflow-y:auto!important}.food-picker-sheet .food-search-results>h3,.food-picker-sheet .food-search-results>:where(h3){color:var(--text)!important;letter-spacing:-.01em!important;text-transform:none!important;margin:0!important;padding:18px 0 8px!important;font-size:15px!important;font-weight:760!important}.food-picker-sheet .food-search-results>h3:first-of-type,.food-picker-sheet .food-search-results>h3:last-of-type{font-size:0!important}.food-picker-sheet .food-search-results>h3:first-of-type,.food-picker-sheet .food-search-results>h3:last-of-type:not(:first-of-type){margin-left:12px!important}.food-picker-sheet .food-search-results>h3:first-of-type:after{content:"Common";font-size:15px}.food-picker-sheet .food-search-results>h3:last-of-type:not(:first-of-type):after{content:"Branded";font-size:15px}.food-picker-sheet .food-result-quick{box-sizing:border-box;min-height:74px;padding-right:12px;border:0!important;border-bottom:1px solid color-mix(in srgb, var(--border) 72%, transparent)!important;background:0 0!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:stretch!important;display:grid!important}.food-picker-sheet .food-result-quick:last-child{border-bottom-color:#0000!important}.food-picker-sheet .food-result-quick>button:first-child{text-align:left;align-items:center;width:100%;min-width:0;min-height:74px;background:0 0!important;border:0!important;border-radius:0!important;grid-template-columns:42px minmax(0,1fr) 66px!important;gap:12px!important;padding:10px 0!important;display:grid!important}.food-picker-sheet .food-result-quick>button:first-child:hover,.food-picker-sheet .food-result-quick>button:first-child:active{background:0 0!important}.food-picker-sheet .food-result-mark{background:color-mix(in srgb, var(--accent) 10%, transparent);width:38px;height:38px;color:var(--accent);border-radius:12px;place-items:center;font-size:15px;font-weight:800;display:grid}.food-picker-sheet .food-result-quick strong,.food-picker-sheet .food-result-quick small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.food-picker-sheet .food-result-quick strong{color:var(--text);font-weight:690;line-height:1.25;font-size:14px!important}.food-picker-sheet .food-result-quick small{color:var(--muted);font-weight:500;margin-top:5px!important;font-size:11px!important}.food-picker-sheet .food-result-quick b{text-align:right;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;justify-self:end;font-weight:700;width:66px!important;font-size:14px!important}.food-picker-sheet .food-result-quick b small{font-weight:550;margin-top:3px!important;font-size:10px!important}.food-picker-sheet .food-result-quick>button:last-child{place-self:center end;place-items:center;height:36px;border:1px solid var(--border)!important;background:color-mix(in srgb, var(--surface) 94%, var(--text) 6%)!important;width:36px!important;color:var(--accent)!important;border-radius:999px!important;padding:0!important;display:grid!important}.food-picker-sheet .food-result-quick>button:last-child:hover,.food-picker-sheet .food-result-quick>button:last-child:active{background:color-mix(in srgb, var(--accent) 9%, var(--surface))!important}.food-picker-sheet .food-picker-placeholder{color:var(--muted);text-align:center;font-size:13px;padding:28px 0!important}.food-picker-sheet:has(>.food-picker-search)>.food-search-more{width:auto;min-height:36px;box-shadow:none;color:var(--accent);background:0 0;border:0;border-radius:0;flex:none;margin:4px 20px 10px;padding:6px 8px;font-size:12px;font-weight:750}html[data-pwa-keyboard=true] .food-picker-sheet:has(>.food-picker-search)>.food-search-more{display:none}.food-picker-sheet>.food-picker-search:has(.food-search-clear){grid-template-columns:auto minmax(0,1fr) auto auto}.food-search-clear{width:30px;height:30px;color:var(--muted);background:0 0;border:0;border-radius:0;place-items:center;padding:0;display:grid}.food-search-clear[hidden]{display:none}.food-search-clear svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;width:18px;height:18px}.food-search-clear:hover,.food-search-clear:active{color:var(--text);background:0 0}@media (max-width:760px){html[data-pwa-standalone=true] .food-picker-sheet:has(>.food-picker-search):not(.food-search-keyboard-fit){height:calc(var(--pwa-visible-bottom,100dvh) - env(safe-area-inset-top));max-height:calc(var(--pwa-visible-bottom,100dvh) - env(safe-area-inset-top))}.food-picker-sheet [role=tablist][aria-label="Add food method"]{gap:18px!important}:is(.food-picker-sheet>.food-picker-search,.food-picker-sheet:has(>.food-picker-search)>.food-search-results){margin-left:16px;margin-right:16px}.food-picker-sheet:has(>.food-picker-search)>.food-search-results{padding-left:0;padding-right:0}}.food-picker-backdrop{height:var(--app-height,100vh)!important}.food-picker-sheet:has(.food-tab-search-page .food-picker-search){flex-direction:column;display:flex;height:min(780px, calc(var(--app-height,100vh) - 28px))!important;max-height:min(780px, calc(var(--app-height,100vh) - 28px))!important;overflow:hidden!important}:is(.food-picker-sheet:has(.food-tab-search-page .food-picker-search)>.sheet-handle,.food-picker-sheet:has(.food-tab-search-page .food-picker-search)>.food-picker-head,.food-picker-sheet:has(.food-tab-search-page .food-picker-search)>[role=tablist]){flex:none}.food-picker-sheet>.food-tab-swiper{flex:auto;min-height:0}.food-picker-sheet>.food-tab-swiper,.food-picker-sheet>.food-tab-swiper>.swiper-wrapper,.food-picker-sheet>.food-tab-swiper>.swiper-wrapper>.swiper-slide,.food-picker-sheet .food-tab-page{height:100%;min-height:0}.food-picker-sheet .food-tab-page{box-sizing:border-box}.food-picker-sheet .food-tab-search-page{flex-direction:column;min-height:0;display:flex;overflow:hidden}.food-picker-sheet .food-tab-search-page>.food-picker-search{border:1px solid var(--border);background:color-mix(in srgb, var(--surface) 94%, var(--text) 6%);min-height:50px;box-shadow:none;border-radius:16px;flex:none;gap:11px;margin:16px 20px 2px;padding:0 14px;position:relative}.food-picker-sheet .food-tab-search-page>.food-picker-search:focus-within{border-color:color-mix(in srgb, var(--accent) 76%, var(--border));box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent)}.food-picker-sheet .food-tab-search-page>.food-picker-search input{letter-spacing:-.01em;min-width:0;padding-right:2px;font-size:16px;font-weight:600}.food-picker-sheet .food-tab-search-page>.food-picker-search>svg.spin{pointer-events:none;z-index:2;position:absolute;top:calc(50% - 9px);right:14px;margin:0!important}.food-picker-sheet .food-tab-search-page>.food-picker-search:has(.food-search-clear:not([hidden]))>svg.spin{right:46px}.food-picker-sheet .food-tab-search-page>.food-picker-search:has(.food-search-clear){grid-template-columns:auto minmax(0,1fr) auto!important}.food-picker-sheet .food-tab-search-page>.food-search-results{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:auto;min-height:0;padding:0 0 12px;background:0 0!important;margin:10px 16px 0!important;overflow-y:auto!important}.food-picker-sheet .food-tab-search-page>.food-search-more{flex:none;width:auto;min-height:36px;margin:4px 20px 10px;padding:6px 8px}:is(html[data-pwa-keyboard=true] .food-picker-backdrop,html[data-pwa-keyboard=true] .food-picker-sheet:has(.food-tab-search-page .food-picker-search)){height:var(--app-height,100vh)!important}html[data-pwa-keyboard=true] .food-picker-sheet:has(.food-tab-search-page .food-picker-search){max-height:var(--app-height,100vh)!important}@media (max-width:760px){html[data-pwa-standalone=true] .food-picker-sheet:has(.food-tab-search-page .food-picker-search){height:calc(var(--app-height,100vh) - env(safe-area-inset-top))!important;max-height:calc(var(--app-height,100vh) - env(safe-area-inset-top))!important}.food-picker-sheet .food-tab-search-page>.food-picker-search{margin-left:16px;margin-right:16px}}
.food-picker-sheet:has(>.food-tab-swiper){height:min(760px, calc(var(--pwa-visible-bottom,100dvh) - 36px));flex-direction:column;display:flex;overflow:hidden!important}.food-picker-sheet:has(>.food-tab-swiper)>.sheet-handle{flex:none}.food-picker-sheet:has(>.food-tab-swiper)>.food-picker-head{flex:none}.food-picker-sheet:has(>.food-tab-swiper)>[role=tablist][aria-label="Add food method"]{flex:none}.food-picker-sheet:has(>.food-tab-swiper)>.food-picker-head{box-sizing:border-box;width:100%;position:relative}.food-picker-sheet:has(>.food-tab-swiper)>.food-picker-head.no-back{padding-right:56px;display:block!important}.food-picker-sheet:has(>.food-tab-swiper)>.food-picker-head.no-back>.icon-button[aria-label=Close]{position:absolute;top:50%;right:0;transform:translateY(-50%)}.food-picker-sheet [role=tablist][aria-label="Add food method"]{border-bottom:1px solid var(--border);background:var(--surface);isolation:isolate;margin:10px 0 2px;position:relative;overflow:hidden;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;padding:0!important;display:grid!important}.food-picker-sheet [role=tablist][aria-label="Add food method"]>button{--food-tab-label-active:0;z-index:1;min-width:0;opacity:calc(.72 + var(--food-tab-label-active) * .28);-webkit-tap-highlight-color:transparent;touch-action:manipulation;font-size:13px;font-weight:800;line-height:1;transition:transform .12s;position:relative;min-height:46px!important;box-shadow:none!important;color:color-mix(in srgb, var(--muted), var(--accent) calc(var(--food-tab-label-active) * 100%))!important;background:0 0!important;border:0!important;border-radius:0!important;outline:0!important;padding:0 8px!important}.food-picker-sheet [role=tablist][aria-label="Add food method"]>button:hover{opacity:1}.food-picker-sheet [role=tablist][aria-label="Add food method"]>button:active{transform:scale(.97)}.food-picker-sheet [role=tablist][aria-label="Add food method"]>button:focus-visible{box-shadow:inset 0 0 0 2px color-mix(in srgb, var(--accent), transparent 55%)!important;border-radius:10px!important;outline:0!important}.food-picker-sheet [role=tablist][aria-label="Add food method"]>button[aria-selected=true]{font-weight:800}.food-picker-sheet [role=tablist][aria-label="Add food method"]>button:after{display:none!important}.food-picker-sheet [role=tablist][aria-label="Add food method"]:after{content:"";z-index:2;background:var(--accent);width:33.3333%;height:2.5px;transform:translate3d(var(--food-tab-indicator-x,0%), 0, 0);pointer-events:none;will-change:transform;backface-visibility:hidden;border-radius:999px 999px 0 0;position:absolute;bottom:-1px;left:0}.food-tab-swiper{background:var(--surface);touch-action:pan-y;overscroll-behavior-x:none;overscroll-behavior-y:contain;isolation:isolate;flex:auto;width:calc(100% + 48px);min-height:0;margin:0 -24px -24px;overflow:hidden}.food-tab-swiper>.swiper-wrapper{will-change:transform;backface-visibility:hidden;align-items:stretch;height:100%;min-height:0}.food-tab-swiper .swiper-slide{background:var(--surface);backface-visibility:hidden;contain:paint;height:100%;min-height:0;overflow:hidden;transform:translateZ(0)}.food-tab-page{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-gutter:auto;width:100%;height:100%;min-height:0;padding:0 24px 24px;overflow:hidden auto}.food-tab-search-page{padding-top:0}.food-tab-scan-page{box-sizing:border-box;flex-direction:column;width:100%;max-width:100%;display:flex;overflow:hidden;transform:translateZ(0)}.food-tab-scan-page .nutrition-label-scan{flex:auto;min-height:0}.food-tab-scan-placeholder{border:1px solid var(--border);background:var(--canvas);border-radius:18px;min-height:220px;margin-top:12px}.food-tab-quick-page>.food-detail-panel{margin-top:18px}@media (max-width:760px){.food-picker-sheet:has(>.food-tab-swiper){width:100%;max-width:none;height:min(92vh, calc(var(--pwa-visible-bottom,100dvh) - env(safe-area-inset-top)));margin:0}.food-picker-sheet [role=tablist][aria-label="Add food method"]{margin-top:8px}.food-picker-sheet [role=tablist][aria-label="Add food method"]>button{font-size:12px;min-height:44px!important}.food-tab-swiper{width:calc(100% + 30px);margin:0 -15px -20px}.food-tab-page{scrollbar-gutter:auto;padding:0 15px 20px}html[data-pwa-standalone=true] .food-tab-swiper,html[data-pwa-standalone=true] .food-tab-page{overscroll-behavior-x:none}}@media (prefers-reduced-motion:reduce){.food-picker-sheet [role=tablist][aria-label="Add food method"]>button{transition:none!important}}.food-picker-sheet .food-tab-page,.food-picker-sheet .food-tab-search-page>.food-search-results,.food-picker-sheet .food-tab-scan-page .scan-facts,.food-picker-sheet .food-tab-quick-page{scrollbar-width:none;-ms-overflow-style:none}.food-picker-sheet .food-tab-page::-webkit-scrollbar{width:0;height:0;display:none}.food-picker-sheet .food-tab-search-page>.food-search-results::-webkit-scrollbar{width:0;height:0;display:none}.food-picker-sheet .food-tab-scan-page .scan-facts::-webkit-scrollbar{width:0;height:0;display:none}.food-picker-sheet .food-tab-quick-page::-webkit-scrollbar{width:0;height:0;display:none}
.food-tab-quick-page .food-log-datetime{width:100%;min-width:0;max-width:100%}.food-tab-quick-page .food-log-datetime input[type=datetime-local]{box-sizing:border-box;appearance:none;width:100%;min-width:0;max-width:100%;padding:7px 11px;line-height:1.2;display:block}.food-tab-quick-page .food-log-datetime input[type=datetime-local]::-webkit-datetime-edit{align-items:center;height:100%;padding:0;display:flex}.food-tab-quick-page .food-log-datetime input[type=datetime-local]::-webkit-date-and-time-value{min-height:0;margin:0;line-height:1.2}.food-tab-quick-page .food-detail-panel>div:first-child>svg{display:none}html[data-pwa-standalone=true] .food-picker-sheet,html[data-pwa-standalone=true] .food-picker-sheet .food-tab-page,html[data-pwa-standalone=true] .food-picker-sheet .nutrition-label-capture,html[data-pwa-standalone=true] .food-picker-sheet .nutrition-label-review{scrollbar-width:none;-ms-overflow-style:none}html[data-pwa-standalone=true] .food-picker-sheet::-webkit-scrollbar{width:0;height:0;display:none}html[data-pwa-standalone=true] .food-picker-sheet .food-tab-page::-webkit-scrollbar{width:0;height:0;display:none}html[data-pwa-standalone=true] .food-picker-sheet .nutrition-label-capture::-webkit-scrollbar{width:0;height:0;display:none}html[data-pwa-standalone=true] .food-picker-sheet .nutrition-label-review::-webkit-scrollbar{width:0;height:0;display:none}
.apple-health-section{margin-top:28px}.menu-profile-layout .apple-health-section{margin-top:0}.health-pending-status{color:var(--muted);justify-content:space-between;align-items:center;gap:12px;margin:12px 2px 0;font-size:12px;line-height:1.4;display:flex}.health-pending-status>span{align-items:center;gap:7px;display:inline-flex}.health-pending-status .text-button{flex:none}.health-connect-card{justify-content:space-between;align-items:center;gap:20px;padding:18px 20px;display:flex}.health-connect-copy{align-items:flex-start;gap:14px;min-width:0;display:flex}.health-logo{background:var(--surface-strong,var(--surface));border:1px solid var(--border);width:42px;height:42px;color:var(--text);border-radius:14px;flex:none;place-items:center;display:grid}.health-title-row{align-items:center;gap:9px;margin-bottom:4px;display:flex}.health-title-row strong{font-size:15px}.health-title-row span,.health-live{background:var(--accent-soft);width:fit-content;color:var(--accent);letter-spacing:.02em;border-radius:999px;align-items:center;gap:6px;padding:4px 8px;font-size:10px;font-weight:800;display:inline-flex}.health-connect-copy p,.health-section-head p,.health-setup-head p,.health-step p{color:var(--muted);margin:0;line-height:1.5}.health-connect-copy p{font-size:13px}.health-connect-copy small{color:var(--muted);margin-top:4px;font-size:11px;display:block}.health-connect-button{flex:none}.health-setup-dialog{background:var(--surface);border:1px solid var(--border);border-radius:24px;flex-direction:column;width:min(720px,100vw - 32px);min-height:0;max-height:min(760px,100dvh - 36px);display:flex;overflow:hidden;box-shadow:0 24px 80px #0003}.health-setup-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:18px;padding:22px 24px 16px;display:flex}.health-setup-head h2{margin:3px 0 5px;font-size:21px}.health-setup-head p{max-width:560px;font-size:12px}.health-setup-steps{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;flex:auto;gap:0;min-height:0;padding:8px 24px;display:grid;overflow-y:auto}.health-step{border-bottom:1px solid var(--border);grid-template-columns:32px minmax(0,1fr);gap:12px;padding:16px 0;display:grid}.health-step:last-child{border-bottom:0}.health-step>span{background:var(--accent-soft);width:30px;height:30px;color:var(--accent);border-radius:10px;place-items:center;font-size:12px;font-weight:900;display:grid}.health-step strong{margin-bottom:4px;font-size:13px;display:block}.health-step p{font-size:12px}.health-step a{color:var(--accent);align-items:center;gap:6px;margin-top:9px;font-size:12px;font-weight:800;text-decoration:none;display:inline-flex}.health-category-chips{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.health-category-chips span{border:1px solid var(--border);color:var(--muted);border-radius:999px;padding:5px 8px;font-size:10px;font-weight:750}.health-webhook{border:1px solid var(--border);background:var(--background,var(--surface));border-radius:12px;grid-template-columns:minmax(0,1fr) 34px;align-items:center;gap:8px;margin-top:10px;padding:7px 7px 7px 11px;display:grid}.health-webhook code{text-overflow:ellipsis;min-width:0;color:var(--text);white-space:nowrap;font-size:11px;overflow:hidden}.health-webhook button{background:var(--accent-soft);width:32px;height:32px;color:var(--accent);cursor:pointer;border:0;border-radius:9px;place-items:center;display:grid}.health-preview-note{border:1px solid var(--border);background:var(--surface-strong,var(--surface));color:var(--muted);border-radius:14px;gap:10px;margin:0 24px 16px;padding:12px 14px;display:flex}.health-preview-note svg{color:var(--accent);flex:none}.health-preview-note p{margin:0;font-size:11px;line-height:1.5}.health-preview-note strong{color:var(--text)}.health-setup-actions{border-top:1px solid var(--border);justify-content:flex-end;gap:10px;padding:14px 24px 20px;display:flex}.health-section-head{justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:14px;display:flex}.health-section-head h2{margin:2px 0;font-size:22px}.health-section-head p{font-size:12px}.health-source-actions{align-items:center;gap:10px;display:flex}.health-live i{background:var(--accent);border-radius:50%;width:6px;height:6px}.health-source-actions>button{color:var(--muted);cursor:pointer;background:0 0;border:0;font-size:11px;font-weight:750}.health-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px;display:grid}.health-kpi{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:11px;padding:14px;display:grid}.health-kpi>div{min-width:0}.health-kpi>div>span,.health-detail span,.health-details-head span{color:var(--muted);font-size:10px;font-weight:750;display:block}.health-kpi strong{color:var(--text);margin-top:2px;font-size:19px;line-height:1.15;display:block}.health-kpi strong small{color:var(--muted);font-size:10px}.health-kpi em{color:var(--muted);margin-top:3px;font-size:10px;font-style:normal;display:block}.health-chart-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.health-chart-card{min-width:0}.health-chart-card .chart-wrap{margin-top:6px}.health-details-card{margin-top:12px;padding:0;overflow:hidden}.health-details-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.health-details-head strong{margin-top:2px;font-size:14px;display:block}.health-sync-status-message{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px;display:grid}.health-sync-status-message p{color:var(--muted);margin:0;font-size:12px;line-height:1.5}.health-sync-status-message .secondary-button{white-space:nowrap;min-height:38px;padding:0 15px;font-size:12px}.health-detail-grid{grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.health-detail{border-right:1px solid var(--border);border-bottom:1px solid var(--border);grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;min-width:0;padding:13px 16px;display:grid}.health-detail:nth-child(4n){border-right:0}.health-detail strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:12px;display:block;overflow:hidden}.health-data-foot{color:var(--muted);justify-content:space-between;gap:12px;padding:11px 16px;font-size:10px;display:flex}.health-data-foot span:last-child{text-align:right}@media (max-width:1100px){.health-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.health-chart-grid{grid-template-columns:1fr}.health-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.health-detail:nth-child(4n){border-right:1px solid var(--border)}.health-detail:nth-child(2n){border-right:0}}@media (max-width:640px){.apple-health-section{margin-top:22px}.health-connect-card,.health-section-head,.health-details-head,.health-data-foot{flex-direction:column;align-items:stretch}.health-connect-button{justify-content:center;width:100%}.health-section-head{align-items:flex-start;gap:12px;margin-bottom:10px}.health-source-actions{justify-content:space-between;width:100%}.health-details-head{gap:8px;padding:15px 16px 13px}.health-details-head .health-live{align-self:flex-start}.health-sync-status-message{grid-template-columns:1fr;align-items:start;gap:13px;padding:15px 16px 16px}.health-sync-status-message .secondary-button{justify-self:start;min-height:40px}.health-kpis,.health-detail-grid{grid-template-columns:1fr}.health-detail,.health-detail:nth-child(2n),.health-detail:nth-child(4n){border-right:0}.health-setup-dialog{border-radius:20px;width:calc(100vw - 18px);height:calc(100dvh - 18px);max-height:calc(100dvh - 18px)}.health-setup-head,.health-setup-steps{padding-left:16px;padding-right:16px}.health-preview-note{margin-left:16px;margin-right:16px}.health-setup-actions{padding:12px 16px 16px}.health-data-foot span:last-child{text-align:left}}.health-native-dialog{color:var(--text);padding:0}.health-native-dialog:not([open]){display:none}.health-native-dialog[open]{margin:auto}.health-native-dialog::backdrop{background:#00000073}.health-action-group{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.health-action-group a{text-decoration:none}.health-small{color:var(--muted);font-size:12px;line-height:1.6}.health-methods{gap:8px;padding:14px 24px 0;display:flex}.health-methods button{border:1px solid var(--border);color:var(--text);background:var(--surface);cursor:pointer;border-radius:12px;flex:1;padding:10px}.health-methods button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.health-copy-field{margin-top:12px}.health-copy-field>label,.health-file-label{margin-bottom:6px;font-size:12px;display:block}.health-webhook input{width:100%;min-width:0;color:var(--text);background:0 0;border:0;font-size:12px}.health-key-button{margin-top:12px;margin-bottom:8px}.health-metric-options{border:1px solid var(--border);border-radius:12px;gap:9px;margin:12px 0;padding:12px;display:grid}.health-metric-options label{align-items:center;gap:8px;font-size:13px;display:flex}.health-metric-options legend{color:var(--muted);font-size:12px}.health-date-range{gap:12px;margin-bottom:12px;display:flex}.health-date-range label{gap:6px;min-width:0;font-size:12px;display:grid}.health-date-range input{border:1px solid var(--border);background:var(--surface);width:100%;min-width:0;color:var(--text);border-radius:8px;padding:8px}.health-import-progress{gap:8px;padding:16px 0;font-size:13px;display:grid}.health-import-progress progress{width:100%;accent-color:var(--accent)}.health-import-result{color:var(--accent);background:var(--accent-soft);border-radius:12px;padding:14px;font-size:13px}#health-export{max-width:100%;font-size:12px}.health-native-dialog button:focus-visible,.health-native-dialog a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.expenditure-card{margin-bottom:14px;padding:18px}.expenditure-head{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:16px;display:flex}.expenditure-head h2{margin:3px 0;font-size:21px}.expenditure-head p{color:var(--muted);margin:0;font-size:12px;line-height:1.5}.expenditure-confidence{border:1px solid var(--border);color:var(--muted);border-radius:999px;flex:none;align-items:center;gap:7px;padding:6px 9px;font-size:10px;font-weight:800;display:inline-flex}.expenditure-confidence i{background:var(--muted);border-radius:50%;width:7px;height:7px}.expenditure-confidence.high{border-color:color-mix(in srgb, var(--accent) 22%, var(--border));background:var(--accent-soft);color:var(--accent)}.expenditure-confidence.high i{background:var(--accent)}.expenditure-summary{grid-template-columns:minmax(250px,.75fr) minmax(0,1.25fr);gap:12px;margin-bottom:14px;display:grid}.expenditure-primary,.expenditure-mini-metrics{border:1px solid var(--border);border-radius:16px}.expenditure-primary{background:var(--surface-strong,var(--surface));grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;padding:14px;display:grid}.expenditure-primary>div>span,.expenditure-metric>div>span,.expenditure-chart-title span{color:var(--muted);font-size:10px;font-weight:750;display:block}.expenditure-primary strong{color:var(--text);margin-top:3px;font-size:24px;line-height:1.1;display:block}.expenditure-primary strong small{color:var(--muted);font-size:10px}.expenditure-primary em{color:var(--muted);margin-top:5px;font-size:10px;font-style:normal;font-weight:750;display:block}.expenditure-primary em.up{color:var(--accent)}.expenditure-mini-metrics{grid-template-columns:repeat(3,minmax(0,1fr));display:grid;overflow:hidden}.expenditure-metric{border-right:1px solid var(--border);grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px;min-width:0;padding:12px;display:grid}.expenditure-metric:last-child{border-right:0}.expenditure-metric strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:12px;display:block;overflow:hidden}.expenditure-chart-title{justify-content:space-between;align-items:flex-end;gap:12px;padding-top:4px;display:flex}.expenditure-chart-title strong{margin-top:2px;font-size:15px;display:block}.expenditure-chart-title strong small{color:var(--muted);font-size:10px}.expenditure-chart-title>span{background:var(--accent-soft);color:var(--accent);border-radius:999px;padding:5px 8px}.expenditure-method{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px;display:grid}.expenditure-method>div{border:1px solid var(--border);background:var(--surface-strong,var(--surface));border-radius:13px;align-items:flex-start;gap:8px;min-width:0;padding:10px 11px;display:flex}.expenditure-method svg{color:var(--accent);flex:none;margin-top:1px}.expenditure-method p{color:var(--muted);margin:0;font-size:10px;line-height:1.45}.expenditure-method strong{color:var(--text)}.expenditure-footnote{color:var(--muted);align-items:flex-start;gap:7px;margin-top:11px;font-size:10px;line-height:1.45;display:flex}.expenditure-footnote svg{flex:none;margin-top:1px}@media (max-width:920px){.expenditure-summary,.expenditure-method{grid-template-columns:1fr}}@media (max-width:640px){.expenditure-card{padding:14px}.expenditure-head{flex-direction:column;gap:10px}.expenditure-mini-metrics{grid-template-columns:1fr}.expenditure-metric,.expenditure-metric:last-child{border-right:0;border-bottom:1px solid var(--border)}.expenditure-metric:last-child{border-bottom:0}}
.on-track.over-target{color:#b9572e;background:#c25f321f}.on-track.over-target>span{background:#c25f32}
.food-picker-sheet.nutrition-label-sheet{padding:10px 0 0}.nutrition-label-sheet:has(.nutrition-label-live-layout){background:var(--surface);color:var(--text)}.nutrition-label-sheet:has(.nutrition-label-live-layout)>.food-picker-head .eyebrow{color:var(--muted)}.nutrition-label-sheet:has(.nutrition-label-live-layout)>.food-picker-head .icon-button{color:var(--text)}.nutrition-label-sheet:has(.nutrition-label-live-layout)>.sheet-handle{background:var(--border)}.nutrition-label-sheet>.food-picker-head{padding:0 20px 12px}.nutrition-label-sheet>.sheet-handle{flex-shrink:0}.nutrition-label-sheet .nutrition-label-scan{border:0;border-radius:0;margin:0}.nutrition-label-live-layout{background:var(--canvas);color:var(--text);padding:0}.nutrition-label-live-layout .nutrition-label-scan-head{background:var(--surface);padding:9px 16px;font-size:13px}.nutrition-label-live-layout .nutrition-label-scan-head .icon-button{color:var(--text)}.nutrition-label-sheet .nutrition-label-live-layout .nutrition-label-scan-head{display:none}.nutrition-label-live-layout .nutrition-label-capture{scrollbar-gutter:auto;flex-direction:column;padding:0;display:flex;overflow:hidden}.scan-camera-stage{background:var(--canvas);isolation:isolate;flex:0 0 clamp(220px,33dvh,330px);position:relative;overflow:hidden}.scan-camera-stage>video{object-fit:cover;object-position:center;width:100%;height:100%;display:block}.scan-camera-stage>img{object-fit:contain;width:100%;height:100%;display:block}.scan-camera-stage:after{content:"";pointer-events:none;z-index:1;background:linear-gradient(#0005,#0000 30% 50%,#000b);position:absolute;inset:0}.scan-camera-empty{height:100%;color:var(--text);background:radial-gradient(ellipse at center, var(--surface-muted), var(--canvas) 80%);flex-direction:column;justify-content:center;align-items:center;gap:9px;padding:52px 16px 80px;font-size:14px;display:flex}.scan-camera-empty small{color:var(--muted);font-size:11px}.scan-camera-topbar{z-index:2;justify-content:space-between;align-items:center;gap:8px;display:flex;position:absolute;top:12px;left:12px;right:12px}.scan-mode-switch{background:color-mix(in srgb, var(--text), transparent 18%);border-radius:30px;align-items:center;padding:3px;display:flex}.scan-mode-switch button,.scan-mode-switch>span{min-height:38px;color:var(--surface);background:0 0;border:0;border-radius:24px;align-items:center;padding:0 17px;font-size:13px;font-weight:750;display:flex}.scan-mode-switch button[aria-pressed=true],.scan-mode-switch>span{background:var(--accent);color:#fff}.scan-camera-tools{gap:6px;display:flex}.scan-camera-tool{background:color-mix(in srgb, var(--text), transparent 18%);width:40px;height:40px;color:var(--surface);cursor:pointer;border-radius:50%;place-items:center;display:grid;position:relative;overflow:hidden}.scan-file-input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.scan-camera-tool:focus-within{outline:2px solid var(--accent);outline-offset:2px}.scan-camera-bottom{z-index:2;position:absolute;bottom:22px;left:16px;right:16px}.scan-camera-controls{align-items:center;gap:6px;display:flex}.scan-camera-controls button{border:0;border-radius:28px;justify-content:center;align-items:center;gap:7px;min-height:44px;padding:0 14px;font-size:13px;font-weight:750;display:inline-flex}.scan-camera-start{background:var(--accent);color:#fff}.scan-camera-pause{background:var(--surface);color:var(--accent)}.scan-camera-controls .scan-camera-done{background:var(--accent);color:#fff;margin-left:auto;padding:0 17px;font-size:16px}.scan-camera-controls button:disabled{opacity:.45;cursor:default}.scan-camera-status{min-height:28px;color:var(--surface);text-shadow:0 1px 3px #000;align-items:center;gap:7px;margin:8px 0 0;font-size:11px;line-height:1.4;display:flex}.scan-camera-status>svg,.scan-status-dot{flex:none}.scan-status-dot{background:var(--muted);border-radius:50%;width:6px;height:6px}.scan-status-dot.active{background:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent), transparent 75%)}.scan-facts{z-index:3;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;min-height:0;padding:9px 20px max(20px, env(safe-area-inset-bottom));background:var(--surface);color:var(--text);scrollbar-width:thin;scrollbar-color:var(--border) transparent;border-radius:24px 24px 0 0;flex:auto;margin-top:-16px;position:relative;overflow-y:auto}.scan-facts-grip{background:var(--border);border-radius:4px;width:35px;height:4px;margin:0 auto 13px}.scan-facts-heading{justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.scan-facts-heading h3{letter-spacing:-.5px;margin:0;font-size:20px;font-weight:850}.scan-facts-heading>span{color:var(--muted);white-space:nowrap;align-items:center;gap:5px;font-size:10px;display:flex}.scan-food-identity{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:10px;margin:0 0 10px;display:grid}.scan-food-identity label{color:var(--muted);gap:4px;font-size:10px;font-weight:800;display:grid}.scan-food-identity label em{color:var(--muted);font-size:9px;font-style:normal;font-weight:550}.scan-facts .scan-food-identity input{border:1px solid var(--border);background:var(--canvas);width:100%;min-width:0;height:40px;color:var(--text);border-radius:10px;padding:0 9px;font-size:13px}.scan-facts .scan-food-identity input:focus{border-color:var(--accent);background:var(--accent-soft)}.scan-facts .scan-food-identity input:disabled{opacity:.65}.scan-facts-serving{justify-content:space-between;align-items:center;gap:8px;font-size:14px;font-weight:750;display:flex}.scan-facts-serving>div{justify-content:flex-end;gap:3px;min-width:0;display:flex}.scan-facts input,.scan-facts select{min-width:0;height:42px;color:var(--text);font:inherit;background:0 0;border:1px solid #0000;border-radius:5px;outline:none;padding:5px 4px;font-size:16px}.scan-facts input:focus,.scan-facts select:focus{border-color:var(--accent);background:var(--accent-soft)}.scan-facts input::placeholder{color:var(--muted);opacity:1}.scan-facts input[aria-invalid=true]{border-color:var(--fat);color:var(--fat)}.scan-facts input[type=number]{appearance:textfield}.scan-facts input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.scan-facts input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.scan-facts-serving input{text-align:right;width:85px}.scan-facts-serving input:first-child{width:54px}.scan-serving-details{color:var(--muted);margin-bottom:10px;font-size:11px}.scan-serving-details summary{cursor:pointer;min-height:30px;padding:7px 0}.scan-serving-details>div{grid-template-columns:1fr 1fr;gap:10px;padding:10px 0;display:grid}.scan-serving-details label{gap:4px;font-size:12px;display:grid}.scan-serving-details input,.scan-serving-details select{background:var(--canvas);border-color:var(--border);width:100%}.scan-facts-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:6px;min-height:47px;display:flex}.scan-facts-row>span{font-size:14px;font-weight:750}.scan-facts-row.child>span{padding-left:22px;font-weight:450}.scan-facts-row.minor>span{font-weight:450}.scan-facts-row.calories{border-top:8px solid var(--accent);border-bottom:6px solid var(--accent);min-height:65px;margin-bottom:2px}.scan-facts-row.calories>span{letter-spacing:-.4px;font-size:26px;font-weight:800}.scan-facts-value{flex:none;align-items:center;gap:3px;display:flex}.scan-facts-value input{text-align:right;font-variant-numeric:tabular-nums;width:66px;font-size:17px}.scan-facts-unit{min-width:20px;color:var(--muted);font-size:15px}.scan-facts-marker{width:18px;min-height:18px;color:var(--accent);justify-content:center;align-items:center;font-size:10px;font-weight:900;display:inline-flex}.scan-facts-row.uncertain .scan-facts-marker{color:#8a5100;background:#fff3d6;border-radius:50%}.scan-facts-row.edited .scan-facts-marker{color:var(--muted);background:0 0}.scan-facts-row.waiting .scan-facts-value input{width:92px;color:var(--muted);font-size:12px}.scan-facts-row.reading input{color:var(--carbs)}.scan-inline-review{color:#8a5100;background:#fff3d6;border-radius:999px;width:fit-content;padding:2px 6px;font-size:9px;font-weight:850}.scan-serving-basis.needs-review select{border-color:#d7a22d}.nutrition-label-live-layout>.food-picker-error{color:var(--fat);flex-shrink:0;margin:0;padding:8px 16px;font-size:12px}@media (max-width:600px){.food-picker-sheet.nutrition-label-sheet{height:min(94dvh, var(--pwa-visible-bottom,100dvh));max-height:min(94dvh, var(--pwa-visible-bottom,100dvh));padding-bottom:0}.nutrition-label-sheet>.food-picker-head{padding:0 16px 10px}.nutrition-label-sheet .nutrition-label-live-layout{margin:0;padding:0}.nutrition-label-live-layout .nutrition-label-scan-head{display:none}.scan-camera-stage{flex-basis:clamp(210px,34dvh,320px)}.scan-facts{padding-inline:20px}}@media (max-height:550px){.scan-camera-stage{flex-basis:150px}.scan-camera-empty>svg,.scan-camera-empty>small{display:none}.scan-camera-empty{padding-bottom:60px;font-size:12px}.scan-facts:focus-within{flex-basis:65%}.nutrition-label-capture:has(.scan-facts:focus-within) .scan-camera-stage{flex-basis:95px}}.food-picker-sheet.nutrition-label-sheet{flex-direction:column;display:flex;overflow:hidden!important}.nutrition-label-sheet>.sheet-handle,.nutrition-label-sheet>.food-picker-head,.nutrition-label-sheet>[role=tablist]{z-index:8;background:var(--surface);flex:none;position:relative}.nutrition-label-sheet>[role=tablist]+div:not(.nutrition-label-live-layout){display:none!important}.nutrition-label-sheet>.nutrition-label-live-layout,.nutrition-label-sheet>.nutrition-label-scan{z-index:1;flex:auto;min-height:0;position:relative;overflow:hidden}.nutrition-label-sheet .nutrition-label-capture{height:100%;min-height:0}@media (max-width:600px){.food-picker-sheet.nutrition-label-sheet{height:calc(var(--pwa-visible-bottom,100dvh) - env(safe-area-inset-top));max-height:calc(var(--pwa-visible-bottom,100dvh) - env(safe-area-inset-top))}}.scan-capture-view{background:var(--surface);flex:auto;gap:14px;min-height:0;padding:14px 16px max(18px, env(safe-area-inset-bottom))!important;overflow-y:auto!important}.scan-capture-mode-row{flex:none;justify-content:center;display:flex}.scan-capture-mode-switch{background:var(--surface-muted);border-radius:16px;grid-template-columns:1fr 1fr;width:min(100%,360px);padding:4px;display:grid}.scan-capture-mode-switch button{min-height:42px;color:var(--muted);font:inherit;background:0 0;border:0;border-radius:12px;justify-content:center;align-items:center;gap:7px;padding:0 14px;font-size:13px;font-weight:800;display:inline-flex}.scan-capture-mode-switch button[aria-pressed=true]{background:var(--surface);color:var(--accent);box-shadow:0 1px 4px color-mix(in srgb, var(--text), transparent 90%)}.scan-capture-mode-switch button:disabled{opacity:.55}.scan-capture-camera{border:1px solid var(--border);border-radius:18px;flex:0 0 clamp(230px,38dvh,360px)}.scan-capture-camera:after{border-radius:inherit}.scan-capture-camera .scan-camera-empty{text-align:center;padding:34px 20px}.scan-capture-camera .scan-camera-empty span{font-size:15px;font-weight:850}.scan-capture-camera .scan-camera-empty small{text-align:center;max-width:250px;line-height:1.45}.scan-capture-actions{flex-wrap:wrap;flex:none;gap:8px;display:flex}.scan-capture-actions .scan-capture-main{flex:190px;min-height:46px}.scan-capture-rotate{flex:none;min-height:46px}.scan-capture-photo-button{cursor:pointer;flex:100%;justify-content:center;align-items:center;gap:7px;min-height:44px;display:inline-flex;position:relative;overflow:hidden}.scan-read-progress{border:1px solid color-mix(in srgb, var(--border), transparent 20%);background:var(--surface-muted);color:var(--text);border-radius:14px;flex:none;padding:10px 11px 9px}.scan-progress-overlay{z-index:3;border:1px solid color-mix(in srgb, var(--border), transparent 20%);background:color-mix(in srgb, var(--surface) 88%, transparent);color:var(--text);-webkit-backdrop-filter:blur(10px);border-radius:14px;padding:10px 11px 9px;position:absolute;bottom:12px;left:12px;right:12px;box-shadow:0 6px 24px #0000002e}.scan-progress-row{align-items:center;gap:8px;min-width:0;display:flex}.scan-progress-icon{background:var(--accent-soft);width:28px;height:28px;color:var(--accent);border-radius:9px;flex:none;place-items:center;display:grid}.scan-progress-copy{flex:auto;gap:1px;min-width:0;display:grid}.scan-progress-copy strong{font-size:11px;font-weight:850;line-height:1.2}.scan-progress-copy small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:9px;line-height:1.3;overflow:hidden}.scan-progress-row>em{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;font-size:9px;font-style:normal}.scan-progress-track{background:color-mix(in srgb, var(--border), transparent 15%);border-radius:999px;height:3px;margin-top:8px;overflow:hidden}.scan-progress-track>span{border-radius:inherit;background:var(--accent);width:0;height:100%;transition:width .24s;display:block}.scan-progress-track.indeterminate>span{width:38%;animation:1.15s ease-in-out infinite scan-progress-slide}@keyframes scan-progress-slide{0%{transform:translate(-110%)}50%{transform:translate(85%)}to{transform:translate(275%)}}@media (prefers-reduced-motion:reduce){.scan-progress-track>span{transition:none}.scan-progress-track.indeterminate>span{width:55%;animation:none}}.scan-capture-status{min-height:24px;color:var(--muted);align-items:center;gap:7px;margin:-4px 2px 0;font-size:11px;line-height:1.4;display:flex}.scan-manual-entry{border-top:1px solid var(--border);flex:none;padding-top:3px}.scan-manual-entry summary{min-height:42px;color:var(--muted);cursor:pointer;align-items:center;font-size:12px;font-weight:800;list-style:none;display:flex}.scan-manual-entry summary::-webkit-details-marker{display:none}.scan-manual-entry summary:after{content:"+";margin-left:auto;font-size:18px;font-weight:500}.scan-manual-entry[open] summary:after{content:"–"}.scan-manual-entry form{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:0 0 8px;display:grid}.scan-manual-entry input{border:1px solid var(--border);background:var(--surface-muted);width:100%;min-width:0;min-height:42px;color:var(--text);font:inherit;border-radius:12px;padding:0 12px}.scan-capture-error{margin:0!important;padding:0!important}.scan-review-view{background:var(--surface);flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.scan-review-head{border-bottom:1px solid var(--border);flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:4px 16px 8px;display:flex}.scan-review-head .text-button{align-items:center;gap:4px;padding:7px 0;display:inline-flex}.scan-review-head>span{color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-size:11px;font-weight:800}.scan-review-scroll{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:auto;min-height:0;padding:16px;overflow-y:auto}.scan-review-scroll>.scan-facts{z-index:auto;min-height:auto;padding:0 0 max(20px, env(safe-area-inset-bottom));border-radius:0;margin:0;position:static;overflow:visible}.scan-review-scroll>.scan-facts .scan-facts-grip{display:none}.scan-review-summary{border:1px solid var(--border);background:var(--canvas);border-radius:18px;padding:16px}.scan-review-complete{background:var(--accent-soft);width:fit-content;color:var(--accent);border-radius:999px;align-items:center;gap:5px;margin:0 0 9px;padding:5px 8px;font-size:10px;font-weight:850;display:inline-flex}.scan-review-title{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;display:flex}.scan-review-title>div{min-width:0}.scan-review-title span{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px;font-size:10px;font-weight:800;display:block}.scan-review-title h3{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:20px;line-height:1.2;overflow:hidden}.scan-review-title small{color:var(--muted);margin-top:3px;font-size:11px;display:block}.scan-review-title>b{background:var(--accent-soft);color:var(--accent);border-radius:999px;flex:none;padding:5px 8px;font-size:10px}.scan-review-identity{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:9px;margin-bottom:12px;display:grid}.scan-review-identity label{color:var(--muted);gap:5px;font-size:10px;font-weight:800;display:grid}.scan-review-identity label em{font-size:9px;font-style:normal;font-weight:550}.scan-review-identity input{border:1px solid var(--border);background:var(--surface);width:100%;min-width:0;height:40px;color:var(--text);font:inherit;border-radius:10px;padding:0 10px;font-size:13px}.scan-review-serving{border-top:1px solid var(--border);grid-template-columns:1fr auto;gap:2px 10px;padding:10px 0 12px;display:grid}.scan-review-serving span{color:var(--muted);font-size:11px;font-weight:750}.scan-review-serving strong{font-size:13px}.scan-review-serving small{color:var(--muted);text-align:right;grid-column:2;font-size:9px}.scan-review-macros{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;display:grid}.scan-review-macros>div{background:var(--surface);text-align:center;border-radius:11px;min-width:0;padding:10px 7px}.scan-review-macros span{color:var(--muted);margin-bottom:4px;font-size:9px;font-weight:800;display:block}.scan-review-macros strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;display:block;overflow:hidden}.scan-review-confidence{color:var(--muted);margin:11px 0 0;font-size:10px;line-height:1.4}.scan-review-details{border:1px solid var(--border);background:var(--surface);border-radius:16px;margin-top:12px;overflow:hidden}.scan-review-details>summary{cursor:pointer;align-items:center;gap:12px;min-height:58px;padding:0 14px;list-style:none;display:flex}.scan-review-details>summary::-webkit-details-marker{display:none}.scan-review-details>summary>span{gap:2px;min-width:0;display:grid}.scan-review-details>summary strong{font-size:13px}.scan-review-details>summary small{color:var(--muted);font-size:10px}.scan-review-details>summary>svg{color:var(--muted);margin-left:auto;transition:transform .18s}.scan-review-details[open]>summary>svg{transform:rotate(90deg)}.scan-review-details .scan-facts{z-index:auto;border-top:1px solid var(--border);border-radius:0;min-height:auto;margin:0;padding:4px 14px 16px;position:static;overflow:visible}.scan-review-details .scan-facts-grip{display:none}.scan-review-details .scan-facts-heading{margin-top:8px}.scan-review-error{margin:12px 0 0!important}.scan-review-footer{padding:10px 16px max(12px, env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface);flex:none}.scan-review-footer .primary-button{justify-content:center;align-items:center;gap:7px;width:100%;min-height:48px;display:inline-flex}@media (max-width:600px){.scan-capture-view{padding-inline:12px!important}.scan-capture-camera{flex-basis:clamp(220px,36dvh,330px)}.scan-review-scroll{padding:12px}.scan-review-summary{padding:14px}.scan-review-identity{grid-template-columns:1fr}.scan-review-macros{grid-template-columns:repeat(2,minmax(0,1fr))}}.scan-manual-nutrition{justify-content:space-between;align-items:center;gap:10px;padding:0 0 8px;display:flex}.scan-manual-nutrition p{color:var(--muted);margin:0;font-size:11px;line-height:1.4}.scan-manual-nutrition .secondary-button{flex:none;min-height:40px}@media (max-width:480px){.scan-manual-nutrition{flex-direction:column;align-items:stretch}}.scan-single-capture .scan-capture-view{overflow-y:auto}.scan-single-capture .scan-camera-empty{min-height:180px}.scan-camera-guidance{z-index:2;color:#fff;text-align:center;pointer-events:none;background:#000b;border-radius:999px;max-width:calc(100% - 24px);padding:7px 11px;font-size:12px;font-weight:700;position:absolute;bottom:12px;left:50%;transform:translate(-50%)}.scan-camera-guidance.ready{background:#126b49e8}.scan-camera-guidance.too_dark,.scan-camera-guidance.too_bright,.scan-camera-guidance.move_closer,.scan-camera-guidance.blurry,.scan-camera-guidance.hold_steady{background:#5b430de8}.scan-crop-editor{padding:10px 0}.scan-crop-image{width:min(100%,360px);margin:auto;position:relative;overflow:hidden}.scan-crop-image img{width:100%;height:100%;display:block}.scan-crop-outline{pointer-events:none;border:2px solid #176947;position:absolute;box-shadow:0 0 0 100vmax #0006}.scan-crop-editor details{padding:12px 0}.scan-crop-editor p{font-size:13px}.scan-crop-controls{grid-template-columns:1fr 1fr;gap:12px;display:grid}.scan-crop-controls label{flex-direction:column;font-size:13px;display:flex}.scan-crop-controls input{width:100%;min-height:36px}.scan-reviewed-image{object-fit:contain;width:100%;max-height:250px;margin:0 0 14px;display:block}.scan-review-issues{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:12px;margin:0 0 12px;font-size:12px;overflow:hidden}.scan-review-issues>summary{cursor:pointer;align-items:center;gap:8px;min-height:42px;padding:0 11px;list-style:none;display:flex}.scan-review-issues>summary::-webkit-details-marker{display:none}.scan-review-issues>summary span{align-items:center;gap:7px;font-weight:750;display:inline-flex}.scan-review-issues>summary b{color:#8a5100;background:#fff3d6;border-radius:999px;place-items:center;min-width:20px;height:20px;padding:0 5px;font-size:10px;display:inline-grid}.scan-review-issues>summary svg{color:var(--muted);margin-left:auto;transition:transform .18s}.scan-review-issues[open]>summary svg{transform:rotate(90deg)}.scan-review-issues ul{border-top:1px solid var(--border);color:var(--muted);margin:0;padding:9px 14px 12px 30px;line-height:1.45}.scan-review-issues li+li{margin-top:5px}.scan-single-capture .scan-serving-details>summary{display:none}.scan-single-capture .scan-serving-basis{font-weight:700}.scan-serving-basis{grid-column:1/-1}.scan-barcode-frame{z-index:2;pointer-events:none;border:2px solid #fffd;border-radius:14px;width:min(78%,320px);height:34%;position:absolute;top:44%;left:50%;overflow:hidden;transform:translate(-50%,-50%);box-shadow:0 0 0 999px #0004}.scan-barcode-frame>span{background:var(--accent);height:2px;box-shadow:0 0 10px var(--accent);border-radius:2px;animation:1.8s ease-in-out infinite alternate scan-barcode-sweep;position:absolute;top:50%;left:8%;right:8%}@keyframes scan-barcode-sweep{0%{top:18%}to{top:82%}}@media (prefers-reduced-motion:reduce){.scan-barcode-frame>span{animation:none}}.scan-barcode-outcome code{background:color-mix(in srgb, var(--text), transparent 92%);color:var(--text);letter-spacing:.06em;border-radius:8px;padding:3px 9px;font-size:13px;font-weight:700}.scan-barcode-outcome .scan-barcode-lookup{align-items:center;gap:6px;display:inline-flex}.scan-barcode-outcome.not_found>svg,.scan-barcode-outcome.failed>svg{color:var(--carbs)!important}
.scan-camera-stage{background:var(--surface-muted)!important}.scan-camera-empty{color:var(--text)!important;background:radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent-soft), transparent 12%), transparent 44%), linear-gradient(180deg, var(--surface-muted), var(--surface))!important}.scan-camera-empty>svg{color:var(--accent)}.scan-camera-empty small{color:var(--muted)!important}.scan-camera-stage:has(.scan-camera-empty):after{display:none}.scan-mode-switch button{justify-content:center;min-width:46px;padding-inline:12px!important;font-size:0!important}.scan-mode-icon-slot{color:inherit;place-items:center;font-size:20px;line-height:1;display:inline-grid}.scan-mode-icon-slot svg{width:20px;height:20px}.scan-camera-status{display:none!important}.food-tab-scan-page{flex-direction:column;min-height:0;display:flex;overflow:hidden}.food-tab-scan-page>.nutrition-label-live-layout{background:var(--surface);width:100%;min-height:0;color:var(--text);border:0;border-radius:0;flex-direction:column;flex:auto;margin:0;padding:0;display:flex;overflow:hidden}.food-tab-scan-page .nutrition-label-scan-head{display:none!important}.food-tab-scan-page .nutrition-label-capture{flex:auto;height:100%;min-height:0;overflow:hidden}.food-tab-scan-page .scan-facts{min-height:0}.food-tab-scan-page .scan-barcode-entry{border-top:1px solid var(--border);background:var(--surface);flex:none;padding:12px 16px}.food-tab-scan-page .scan-barcode-entry>label{color:var(--text);margin-bottom:7px;font-size:13px;font-weight:700;display:block}.food-tab-scan-page .scan-barcode-entry>div{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;display:grid}.food-tab-scan-page .scan-barcode-entry input{border:1px solid var(--border);background:var(--surface-muted);width:100%;min-width:0;min-height:42px;color:var(--text);font:inherit;border-radius:12px;padding:0 12px}.food-tab-scan-page .scan-barcode-entry button{min-height:42px;padding-inline:14px}.food-picker-sheet.nutrition-label-sheet:has(>.food-tab-swiper){height:min(760px, calc(var(--pwa-visible-bottom,100dvh) - 36px))!important;max-height:min(760px, calc(var(--pwa-visible-bottom,100dvh) - 36px))!important;flex-direction:column!important;padding:12px 24px 24px!important;display:flex!important;overflow:hidden!important}.food-picker-sheet.nutrition-label-sheet:has(>.food-tab-swiper)>.food-picker-head{padding:0!important}.food-picker-sheet.nutrition-label-sheet:has(>.food-tab-swiper)>[role=tablist]+.food-tab-swiper{z-index:1;position:relative;flex:auto!important;min-height:0!important;display:block!important}@media (max-width:760px){.food-picker-sheet.nutrition-label-sheet:has(>.food-tab-swiper){height:min(92vh, calc(var(--pwa-visible-bottom,100dvh) - env(safe-area-inset-top)))!important;max-height:min(92vh, calc(var(--pwa-visible-bottom,100dvh) - env(safe-area-inset-top)))!important}html[data-pwa-standalone=true] .food-picker-sheet.nutrition-label-sheet:has(>.food-tab-swiper){padding-bottom:calc(24px + env(safe-area-inset-bottom))!important}}
.food-picker-sheet .food-tab-search-page,.food-picker-sheet .food-tab-scan-page{padding-left:0;padding-right:0}.food-picker-sheet .food-tab-search-page>.food-search-results{margin-left:0!important;margin-right:0!important}.food-picker-sheet .food-tab-search-page .food-result-quick{padding-left:20px}.food-picker-sheet .food-tab-search-page .food-result-quick>button:first-child{padding-right:12px!important}@media (max-width:760px){.food-picker-sheet .food-tab-search-page .food-result-quick{padding-left:16px}.food-picker-sheet .food-tab-search-page .food-result-quick>button:first-child{padding-right:10px!important}}.food-picker-sheet .food-tab-scan-page>.nutrition-label-live-layout,.food-picker-sheet .food-tab-scan-page>.nutrition-label-scan{width:100%;max-width:none;margin-left:0;margin-right:0}
.calendar-grid button.selected{isolation:isolate;color:#fff;background:0 0;position:relative}.calendar-grid button.selected:before{content:"";background:var(--accent);z-index:0;pointer-events:none;border-radius:50%;width:32px;height:32px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.calendar-grid button.selected:hover{background:0 0}.calendar-grid button.selected>span{z-index:1;line-height:1;position:relative}.diary-date{grid-template-columns:minmax(0,1fr) 38px 38px;align-items:end;column-gap:7px;display:grid}.diary-date>div{min-width:0;margin-right:0}.diary-date h2{line-height:1.15}.diary-date .date-step{flex:none;align-self:end}
.home-aside>.streak-card{display:none}.quick-stats>.weight-stat{gap:6px}.quick-stats .weight-stat>small{white-space:normal;min-height:28px}.weight-summary .weight-stat-chart{background:0 0;border:0;margin-block:auto;padding:8px 0 0;position:relative;overflow:visible}.weight-summary .weight-stat-sparkline{width:100%;height:98px}.weight-chart-axis{fill:var(--muted);font-size:9px}.weight-chart-guide{stroke:var(--border);stroke-width:1px;stroke-dasharray:3 4}.weight-stat-chart-dates{margin-left:38px;font-size:9px}.quick-stats .weight-stat-footnote{min-height:116px}.quick-stats .weight-stat-update{text-align:center;border-radius:10px;width:100%;min-width:0;min-height:44px;margin-top:10px;padding:8px;font-size:11px;font-weight:750;display:block}.quick-stats .weight-stat-update:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (max-width:760px){.quick-stats{margin-inline:0;padding-inline:0;overflow-x:visible}}
.macro-colors{--macro-carbs:var(--carbs);--macro-fat:var(--fat);--macro-protein:var(--protein);--macro-other:var(--blue)}.macro-preview{position:relative}.macro-preview-unit{color:var(--muted);letter-spacing:0;font-size:11px;font-weight:600}.macro-preview-visual{min-height:116px;margin-block:auto}.quick-stats .macro-preview .macro-card-open{background:0 0;border:0;border-radius:18px;width:100%;min-width:0;height:100%;padding:0;display:block;position:absolute;inset:0}.macro-preview-footer{border-top:1px solid var(--border);min-height:44px;color:var(--accent);justify-content:space-between;align-items:center;margin-top:10px;font-size:11px;font-weight:750;display:flex}.macro-chart{padding-right:43px;position:relative}.macro-chart-scroll{overscroll-behavior-x:contain;scrollbar-width:thin;overflow-x:auto}.macro-chart-bars{align-items:stretch;gap:9px;display:flex}.macro-bar-column{flex-direction:column;flex:1 0 0;align-items:stretch;gap:8px;min-width:0;display:flex}button.macro-bar-column{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:0;padding:0}.macro-bar-track{border-bottom:1px solid var(--border);background:repeating-linear-gradient(to top, transparent 0, transparent calc(50% - 1px), var(--border) calc(50% - 1px), var(--border) 50%);align-items:flex-end;height:240px;display:flex}.macro-bar-stack{flex-direction:column-reverse;width:100%;display:flex}.macro-bar-stack>span{flex-shrink:0;display:block}.macro-bar-stack.is-empty{background:var(--border);min-height:2px}.macro-bar-label{height:18px;color:var(--muted);text-align:center;white-space:nowrap;font-size:10px}.macro-bar-column.is-selected .macro-bar-track{outline:2px solid var(--text);outline-offset:2px}.macro-chart-axis{color:var(--muted);text-align:right;flex-direction:column;justify-content:space-between;font-size:10px;display:flex;position:absolute;top:-6px;bottom:24px;right:0}.macro-chart-empty{color:var(--muted);pointer-events:none;place-items:center;font-size:11px;display:grid;position:absolute;inset:0}.macro-chart.is-compact{padding:8px 0 0}.is-compact .macro-chart-bars{gap:5px}.is-compact .macro-bar-track{background:0 0;height:88px}.is-compact .macro-bar-label{height:12px;font-size:9px}.is-compact .macro-bar-column{gap:7px}.macro-state{color:var(--muted);text-align:center;margin:0;padding:20px 8px;font-size:12px;line-height:1.5}.macro-preview .macro-state{padding-top:38px;font-size:10px}.macro-dialog{border:1px solid var(--border);width:min(560px,100% - 32px);max-width:none;height:min(880px,100dvh - 40px);max-height:none;color:var(--text);background:var(--surface);border-radius:24px;margin:auto;padding:0;position:fixed;inset:0;overflow:hidden;box-shadow:0 24px 80px #0004}.macro-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0007}.macro-detail-content{flex-direction:column;height:100%;display:flex}.macro-detail-header{grid-template-columns:44px 1fr 44px;align-items:center;padding:14px 18px 8px;display:grid}.macro-detail-header h2{text-align:center;margin:0;font-size:17px}.macro-detail-header .icon-button{box-shadow:none;background:0 0;border:0;outline:0}.macro-detail-header .icon-button:focus,.macro-detail-header .icon-button:focus-visible{box-shadow:none;outline:0}.macro-detail-scroll{overscroll-behavior:contain;flex:1;min-height:0;padding:16px 24px 24px;overflow-y:auto}.macro-detail-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.macro-detail-summary span{color:var(--muted);font-size:12px}.macro-detail-summary strong{font-variant-numeric:tabular-nums;font-size:26px;font-weight:700;line-height:1.3;display:block}.macro-detail-summary small{color:var(--muted);font-size:12px;font-weight:500}.macro-detail-dates{color:var(--muted);margin:8px 0 0;font-size:13px;font-weight:750}.macro-detail-context{min-height:17px;color:var(--muted);margin:5px 0 24px;font-size:10px}.macro-detail-graph{min-height:266px}.macro-detail-graph>.macro-state{padding-top:90px}.macro-energy-caption{color:var(--muted);margin:8px 0 16px;font-size:10px}.macro-controls{align-items:center;gap:9px;display:flex}.macro-range-control{background:var(--canvas);border-radius:24px;flex:1;padding:3px;display:flex}.macro-range-control button{min-width:0;min-height:38px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:22px;flex:1;padding:0 5px;font-size:11px;font-weight:800}.macro-range-control button[aria-pressed=true]{background:var(--text);color:var(--surface)}.macro-grouping-select{background:var(--canvas);border-radius:22px;flex:none;align-items:center;min-width:62px;min-height:44px;display:inline-flex;position:relative}.macro-grouping-select select{width:100%;min-width:62px;min-height:44px;color:var(--text);font:inherit;appearance:none;background:0 0;border:0;border-radius:22px;outline:0;padding:0 18px 0 8px;font-size:11px}.macro-grouping-select svg{pointer-events:none;position:absolute;right:5px}.macro-legend{border-bottom:1px solid var(--border);justify-content:space-between;gap:8px;margin-top:12px;padding:22px 0;display:flex}.macro-legend>span{color:var(--muted);align-items:center;gap:6px;font-size:11px;display:flex}.macro-legend i{border-radius:2px;width:9px;height:14px}.macro-daily-list h3{margin:25px 0 14px;font-size:17px}.macro-daily-row{background:var(--canvas);border-radius:12px;margin-bottom:10px;padding:15px 12px}.macro-daily-row>div:first-child{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:8px;display:flex}.macro-daily-row strong{font-size:11px}.macro-daily-row>div>span{color:var(--muted);font-size:10px}.macro-daily-strip{background:var(--border);border-radius:4px;height:4px;display:flex;overflow:hidden}.macro-daily-list>button{width:100%;margin-top:12px}@media (max-width:760px){.macro-dialog{width:100%;height:var(--app-height,100dvh);padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);border:0;border-radius:0;margin:0}.macro-detail-scroll{padding:14px 18px 24px}.macro-detail-header{padding-inline:10px}.macro-chart-bars{gap:8px}.macro-controls{gap:8px;padding-block:6px}.macro-range-control{padding:5px}.macro-range-control button{min-height:44px;padding:10px 5px}.macro-grouping-select{min-width:63px;min-height:54px}.macro-grouping-select select{min-width:63px;min-height:54px;padding:12px 20px 12px 8px}}
.diary-day,.diary-timeline,.diary-timeline-list{min-width:0}.diary-completion,.diary-timeline,.diary-timeline-list,.diary-timeline-item{width:100%}.diary-timeline-list{display:grid}.diary-timeline-item{grid-template-columns:64px 18px minmax(0,1fr);column-gap:10px;min-width:0;min-height:72px}.diary-timeline-time{font-variant-numeric:tabular-nums;padding-top:17px;font-size:10px;line-height:1.15}.diary-timeline-marker{padding-top:20px}.diary-timeline-marker:after{border-left-style:solid;border-left-color:color-mix(in srgb, var(--border), var(--muted) 18%)}.diary-timeline-item:first-child .diary-timeline-marker:after{top:24px}.diary-timeline-item:last-child .diary-timeline-marker:after{bottom:calc(100% - 24px)}.diary-timeline-dot{width:8px;height:8px;box-shadow:0 0 0 2px var(--accent-soft);border-width:2px}.diary-timeline-card.card{border:0;border-bottom:1px solid var(--border);min-width:0;box-shadow:none;background:0 0;border-radius:0;margin:0;overflow:visible}.diary-timeline-item:last-child .diary-timeline-card.card{border-bottom:0}.diary-timeline-card .diary-meal{grid-template-columns:40px minmax(0,1fr) auto auto;gap:10px;min-height:64px;padding:9px 0 11px}.diary-timeline-card .diary-meal .diary-meal-mark{border-radius:12px;width:40px;height:40px;font-size:13px}.diary-timeline-card .diary-meal>div:not(.diary-meal-actions) strong{font-size:13px}.diary-timeline-card .diary-meal>div:not(.diary-meal-actions) span{margin-top:2px;font-size:10px}.diary-timeline-card .diary-meal>b{margin-left:8px;font-size:12px}.diary-timeline-card .diary-meal-actions{gap:1px}.diary-timeline-card .diary-meal-actions button{width:32px;height:32px}@media (max-width:760px){.diary-timeline-item{grid-template-columns:48px 14px minmax(0,1fr);column-gap:6px;min-height:64px}.diary-timeline-time{padding-top:15px;font-size:12px}.diary-timeline-marker{padding-top:18px}.diary-timeline-item:first-child .diary-timeline-marker:after{top:22px}.diary-timeline-item:last-child .diary-timeline-marker:after{bottom:calc(100% - 22px)}.diary-timeline-card .diary-meal{grid-template-columns:38px minmax(0,1fr) auto;gap:9px;min-height:58px;padding:8px 0 10px}.diary-timeline-card .diary-meal .diary-meal-mark{border-radius:11px;width:38px;height:38px;font-size:15px}.diary-timeline-card .diary-meal-actions button{width:30px;height:30px}}.diary-timeline-card .diary-meal{grid-template-columns:minmax(0,1fr) auto 30px;align-items:center;gap:8px}.diary-timeline-card .diary-meal-open{min-width:0;color:var(--text);text-align:left;background:0 0;border:0;justify-items:start;gap:5px;padding:0;display:grid}.diary-timeline-card .diary-meal-open strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:16px;font-weight:760;line-height:1.25;overflow:hidden}.diary-timeline-card .diary-meal-open span{max-width:100%;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:13px;line-height:1.3;overflow:hidden}.diary-timeline-card .diary-meal>b{white-space:nowrap;margin-left:4px;font-size:12px}.diary-timeline-card .diary-meal-info{width:26px;height:26px;color:var(--muted);background:0 0;border:0;border-radius:50%;grid-column:-2/-1;justify-self:end;place-items:center;padding:0;display:grid}.diary-entry-actions-sheet{border:1px solid var(--border);background:var(--surface);width:min(460px,100vw - 24px);box-shadow:0 18px 48px var(--shadow);border-radius:22px;margin:auto auto 12px;padding:0 16px 16px}.diary-entry-action-list{gap:8px;display:grid}.diary-entry-action-list>button{border:1px solid var(--border);background:var(--canvas);width:100%;min-height:54px;color:var(--text);text-align:left;border-radius:14px;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:10px;padding:10px 12px;display:grid}.diary-entry-action-list>button span{gap:2px;display:grid}.diary-entry-action-list>button small{color:var(--muted);font-size:10px}.diary-entry-action-list>button.danger{color:var(--fat)}@media (max-width:760px){.diary-timeline-card .diary-meal{grid-template-columns:minmax(0,1fr) 28px;gap:7px}.diary-timeline-card .diary-meal-open strong{font-size:12px}.diary-timeline-card .diary-meal-open span{font-size:9px}.diary-timeline-card .diary-meal>b{font-size:11px}.diary-timeline-card .diary-meal-info{width:24px;height:24px}}.diary-timeline-card .diary-meal-open strong{font-size:17px}.diary-timeline-card .diary-meal-open span{font-size:14px;line-height:1.4}.diary-timeline-card .diary-meal>b{font-size:13px}.diary-timeline-card .diary-meal-info{width:30px;height:30px}.diary-timeline-card .diary-meal-info svg{width:18px;height:18px}@media (max-width:760px){.diary-timeline-card .diary-meal-open strong{font-size:16px}.diary-timeline-card .diary-meal-open span{font-size:13px}.diary-timeline-card .diary-meal>b{font-size:12px}.diary-timeline-card .diary-meal-info{width:28px;height:28px}.diary-timeline-card .diary-meal-info svg{width:17px;height:17px}}.diary-entry-actions-sheet .diary-editor-head{margin-bottom:14px}
.menu-profile-layout>.profile-hero{min-height:0;box-shadow:0 6px 18px var(--shadow);border-radius:20px;grid-template-columns:64px minmax(0,1fr);gap:16px;padding:16px 20px}.menu-profile-layout>.profile-hero .profile-initials{border-radius:18px;width:64px;height:64px;font-size:21px}.menu-profile-layout>.profile-hero>div:nth-child(2){align-self:center;min-width:0}.menu-profile-layout>.profile-hero .eyebrow{font-size:9px}.menu-profile-layout>.profile-hero h2{white-space:nowrap;text-overflow:ellipsis;margin:1px 0 2px;font-size:20px;line-height:1.12;overflow:hidden}.menu-profile-layout>.profile-hero p{margin:0;font-size:10px;line-height:1.35}.menu-profile-layout>.profile-hero .bmi-badge{display:none!important}@media (max-width:760px){.menu-profile-layout>.profile-hero{border-radius:18px;grid-template-columns:54px minmax(0,1fr);gap:11px;padding:12px 13px}.menu-profile-layout>.profile-hero .profile-initials{border-radius:16px;width:54px;height:54px;font-size:18px}.menu-profile-layout>.profile-hero h2{font-size:17px}}@media (max-width:390px){.menu-profile-layout>.profile-hero{grid-template-columns:48px minmax(0,1fr);gap:9px;padding-inline:11px}.menu-profile-layout>.profile-hero .profile-initials{border-radius:14px;width:48px;height:48px;font-size:16px}.menu-profile-layout>.profile-hero .eyebrow{display:none}.menu-profile-layout>.profile-hero h2{font-size:16px}}
