:root,:root[data-theme=light]{color-scheme:light;--bg: #f6f7f9;--surface: #ffffff;--surface-subtle: #f1f3f6;--surface-hover: #e9edf2;--glass: rgba(255, 255, 255, .86);--border: rgba(17, 24, 39, .06);--border-strong: rgba(17, 24, 39, .12);--shadow-card: 0 6px 24px rgba(15, 23, 42, .045), 0 1px 2px rgba(15, 23, 42, .03);--shadow-nav: 0 12px 32px rgba(15, 23, 42, .1), 0 2px 6px rgba(15, 23, 42, .05);--shadow-fab: 0 8px 22px rgba(16, 185, 129, .38);--text: #111827;--text-secondary: #4b5563;--text-muted: #6b7280;--accent: #10b981;--accent-hover: #059669;--accent-soft: rgba(16, 185, 129, .12);--accent-text: #047857;--protein: #10b981;--protein-soft: rgba(16, 185, 129, .14);--fat: #f59e0b;--fat-soft: rgba(245, 158, 11, .15);--carbs: #6366f1;--carbs-soft: rgba(99, 102, 241, .14);--water: #3b82f6;--water-soft: rgba(59, 130, 246, .12);--danger: #ef4444;--danger-soft: rgba(239, 68, 68, .11);--track-bg: #e5e7eb;--streak-bg: #fef3c7;--streak-text: #b45309;--chip-active-bg: #111827;--chip-active-text: #ffffff}:root[data-theme=dark]{color-scheme:dark;--bg: #0b0e14;--surface: #151922;--surface-subtle: #1d2330;--surface-hover: #252c3c;--glass: rgba(21, 25, 34, .84);--border: #242b38;--border-strong: #323c4e;--shadow-card: 0 8px 28px rgba(0, 0, 0, .35);--shadow-nav: 0 14px 36px rgba(0, 0, 0, .55);--shadow-fab: 0 0 26px rgba(52, 211, 153, .45);--text: #f9fafb;--text-secondary: #d1d5db;--text-muted: #9ca3af;--accent: #34d399;--accent-hover: #10b981;--accent-soft: rgba(52, 211, 153, .14);--accent-text: #34d399;--protein: #34d399;--protein-soft: rgba(52, 211, 153, .16);--fat: #fbbf24;--fat-soft: rgba(251, 191, 36, .16);--carbs: #818cf8;--carbs-soft: rgba(129, 140, 248, .18);--water: #38bdf8;--water-soft: rgba(56, 189, 248, .16);--danger: #f87171;--danger-soft: rgba(248, 113, 113, .14);--track-bg: #262e3d;--streak-bg: rgba(16, 185, 129, .16);--streak-text: #6ee7b7;--chip-active-bg: #f9fafb;--chip-active-text: #0b0e14}*,*:before,*:after{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;background-color:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,Inter,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overscroll-behavior-y:none;min-height:100%;transition:background-color .22s ease,color .22s ease}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:none;background:none;padding:0}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:999px}.tabular-nums{font-variant-numeric:tabular-nums}.app-shell{min-height:100dvh;max-width:460px;margin:0 auto;position:relative;display:flex;flex-direction:column}.app-main{flex:1;padding:calc(16px + env(safe-area-inset-top,0px)) 16px calc(112px + env(safe-area-inset-bottom,0px))}.page-content{display:flex;flex-direction:column;gap:14px;animation:fadeSlideIn .22s ease-out}@keyframes fadeSlideIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.card-surface{background:var(--surface);border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow-card);transition:background-color .2s ease,border-color .2s ease}.top-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 4px}.page-title{margin:0;font-size:29px;font-weight:750;letter-spacing:-.025em;line-height:1.15}.page-subtitle{margin:2px 0 0;font-size:14px;color:var(--text-muted)}.header-actions{display:flex;align-items:center;gap:8px}.header-pill-icon{width:40px;height:40px;border-radius:14px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-card);display:inline-flex;align-items:center;justify-content:center;color:var(--text);transition:transform .14s ease,background-color .14s ease}.header-pill-icon:active{transform:scale(.94)}.streak-pill{height:40px;padding:0 13px;border-radius:999px;background:var(--streak-bg);color:var(--streak-text);border:1px solid var(--border);display:inline-flex;align-items:center;gap:5px;font-size:14px;font-weight:650}.streak-flame{color:#f59e0b;fill:#f59e0b}.date-strip{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:18px}.date-native-input{flex:1;background:var(--surface-subtle);border:1px solid var(--border);border-radius:12px;padding:8px 12px;font-size:16px;text-align:center}.btn-today-chip{padding:8px 12px;border-radius:12px;background:var(--accent-soft);color:var(--accent-text);font-size:13px;font-weight:600}.demo-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-radius:16px;background:var(--accent-soft);border:1px solid rgba(16,185,129,.22)}.demo-banner-text{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:550;color:var(--accent-text)}.demo-clear-btn{padding:6px 11px;border-radius:10px;background:var(--surface);color:var(--text);font-size:12.5px;font-weight:650;box-shadow:0 2px 6px #0000000f}.install-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;margin-bottom:12px;border-radius:18px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-card)}.install-banner-title{font-size:13.5px;font-weight:650}.install-banner-sub{font-size:12.5px;color:var(--text-muted);margin-top:2px;line-height:1.35}.install-banner-actions{display:flex;align-items:center;gap:6px}.inline-ico{vertical-align:-2px;display:inline}.hero-card{padding:18px 20px 20px}.gauge-wrap{position:relative;width:100%;max-width:260px;margin:0 auto 14px}.gauge-svg{width:100%;height:auto;display:block;overflow:visible}.gauge-track{stroke:var(--track-bg)}.gauge-progress{transition:stroke-dashoffset .55s cubic-bezier(.22,1,.36,1)}[data-theme=dark] .gauge-progress{filter:url(#gaugeGlow)}.gauge-center{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding-bottom:6px;text-align:center;pointer-events:none}.gauge-value{font-size:40px;font-weight:800;letter-spacing:-.03em;line-height:1.05}.gauge-target{font-size:14px;color:var(--text-muted);margin-top:4px}.gauge-pill{margin-top:9px;padding:5px 13px;border-radius:999px;background:var(--surface-subtle);color:var(--text-secondary);font-size:13px;font-weight:600}[data-theme=dark] .gauge-pill{background:var(--accent-soft);color:var(--accent)}.gauge-pill--over{background:var(--fat-soft)!important;color:var(--fat)!important}.macro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding-top:6px}.macro-col{display:flex;flex-direction:column;gap:6px}.macro-name{font-size:13.5px;font-weight:600;color:var(--text)}.macro-track{height:7px;border-radius:999px;background:var(--track-bg);overflow:hidden}.macro-fill{height:100%;border-radius:999px;transition:width .45s cubic-bezier(.22,1,.36,1)}.macro-fill--protein{background:var(--protein)}.macro-fill--fat{background:var(--fat)}.macro-fill--carbs{background:var(--carbs)}.macro-numbers{font-size:12.5px;color:var(--text-muted)}.macro-numbers strong{color:var(--text);font-weight:650}.water-card{padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px}.water-left{display:flex;align-items:center;gap:10px;flex-shrink:0}.water-icon-badge{width:40px;height:40px;border-radius:14px;background:var(--water-soft);color:var(--water);display:flex;align-items:center;justify-content:center;flex-shrink:0}.water-title{font-size:15px;font-weight:650;line-height:1.2}.water-sub{font-size:13px;color:var(--text-muted);margin-top:2px;white-space:nowrap}.water-dots{display:flex;align-items:center;gap:4px;flex-wrap:nowrap}.water-dot{width:8px;height:8px;border-radius:999px;background:var(--track-bg);transition:background-color .2s ease,transform .15s ease}.water-dot--filled{background:var(--water);box-shadow:0 0 8px #38bdf859}.water-controls{display:flex;align-items:center;gap:6px}.water-mini-btn{width:28px;height:28px;border-radius:999px;background:var(--surface-subtle);color:var(--text-muted);display:inline-flex;align-items:center;justify-content:center}.meals-section{display:flex;flex-direction:column;gap:10px;margin-top:2px}.section-heading{margin:0 0 2px 2px;font-size:19px;font-weight:700;letter-spacing:-.015em}.meal-cards{display:flex;flex-direction:column;gap:10px}.meal-card{border-radius:22px;overflow:hidden}.meal-card-row{display:flex;align-items:center;gap:12px;padding:13px 14px;cursor:pointer}.meal-icon-box{width:44px;height:44px;border-radius:15px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.meal-icon--breakfast{background:#f59e0b24;color:#d97706}[data-theme=dark] .meal-icon--breakfast{color:#fbbf24}.meal-icon--lunch{background:#10b98124;color:#059669}[data-theme=dark] .meal-icon--lunch{color:#34d399}.meal-icon--snack{background:#6366f124;color:#4f46e5}[data-theme=dark] .meal-icon--snack{color:#818cf8}.meal-icon--dinner{background:var(--surface-subtle);color:var(--text-muted)}.meal-main{flex:1;min-width:0}.meal-title{font-size:15.5px;font-weight:650;line-height:1.25}.meal-desc{font-size:13px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.meal-desc--empty{opacity:.72}.meal-right{display:flex;align-items:center;gap:10px;flex-shrink:0}.meal-kcal{font-size:14px;font-weight:600;color:var(--text-secondary)}.plus-circle-btn{width:34px;height:34px;border-radius:999px;background:var(--surface-subtle);color:var(--text-secondary);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .14s ease,background-color .15s ease,color .15s ease}.plus-circle-btn:active{transform:scale(.92);background:var(--accent-soft);color:var(--accent)}.meal-entries{border-top:1px solid var(--border);padding:6px 14px 12px;display:flex;flex-direction:column;gap:8px;background:#80808006}.logged-entry-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:6px}.logged-entry-info{min-width:0}.logged-entry-name{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logged-entry-meta{font-size:12px;color:var(--text-muted);margin-top:2px}.logged-entry-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}.gram-step-btn{padding:4px 7px;border-radius:8px;background:var(--surface-subtle);color:var(--text-secondary);font-size:11.5px;font-weight:600}.delete-entry-btn{width:28px;height:28px;border-radius:9px;color:var(--danger);background:var(--danger-soft);display:inline-flex;align-items:center;justify-content:center}.bottom-nav-shell{position:fixed;left:0;right:0;bottom:0;z-index:40;pointer-events:none;padding:0 18px calc(14px + env(safe-area-inset-bottom,0px));display:flex;justify-content:center}.bottom-nav{pointer-events:auto;width:100%;max-width:396px;height:64px;padding:0 12px;border-radius:32px;background:var(--glass);backdrop-filter:blur(22px) saturate(160%);-webkit-backdrop-filter:blur(22px) saturate(160%);border:1px solid var(--border);box-shadow:var(--shadow-nav);display:grid;grid-template-columns:1fr 1fr auto 1fr 1fr;align-items:center}.nav-btn{height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--text-muted);transition:color .18s ease,transform .14s ease}.nav-btn:active{transform:scale(.92)}.nav-btn--active{color:var(--accent)}.nav-dot{width:4px;height:4px;border-radius:999px;background:transparent}.nav-btn--active .nav-dot{background:var(--accent)}.nav-fab{width:56px;height:56px;margin-top:-16px;border-radius:999px;background:linear-gradient(145deg,#10b981,#059669);color:#fff;box-shadow:var(--shadow-fab);display:flex;align-items:center;justify-content:center;transition:transform .15s ease,box-shadow .2s ease}[data-theme=dark] .nav-fab{background:linear-gradient(145deg,#34d399,#10b981);color:#06281c}.nav-fab:active{transform:scale(.93)}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#080b127a;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .18s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.sheet-container{width:100%;max-width:460px;max-height:91dvh;background:var(--bg);border-top-left-radius:28px;border-top-right-radius:28px;border-top:1px solid var(--border);display:flex;flex-direction:column;overflow:hidden;padding:10px 16px calc(14px + env(safe-area-inset-bottom,0px));animation:sheetUp .24s cubic-bezier(.22,1,.36,1)}@keyframes sheetUp{0%{transform:translateY(42px);opacity:.7}to{transform:translateY(0);opacity:1}}.sheet-handle{width:40px;height:4.5px;border-radius:999px;background:var(--border-strong);margin:0 auto 12px;flex-shrink:0}.sheet-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}.sheet-header h2,.sheet-header h3{margin:0;font-size:21px;font-weight:750;letter-spacing:-.02em}.meal-mini-switcher{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}.meal-mini-pill{padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;background:var(--surface-subtle);color:var(--text-muted)}.meal-mini-pill--active{background:var(--accent-soft);color:var(--accent-text)}.icon-circle-btn{width:34px;height:34px;border-radius:999px;background:var(--surface-subtle);color:var(--text-secondary);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.search-bar{display:flex;align-items:center;gap:8px;padding:0 12px;height:46px;border-radius:16px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-card);margin-bottom:10px;flex-shrink:0}.search-icon{color:var(--text-muted);flex-shrink:0}.search-input{flex:1;min-width:0;border:none;outline:none;background:transparent;font-size:16px}.search-clear{width:24px;height:24px;border-radius:999px;background:var(--surface-subtle);color:var(--text-muted);display:inline-flex;align-items:center;justify-content:center}.barcode-btn{width:34px;height:34px;border-radius:10px;color:var(--text);display:inline-flex;align-items:center;justify-content:center}.barcode-btn:active{background:var(--surface-subtle)}.chip-row{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px;margin-bottom:8px;scrollbar-width:none;flex-shrink:0}.chip-row::-webkit-scrollbar{display:none}.filter-chip{padding:7px 11.5px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap;background:var(--surface);border:1px solid var(--border);color:var(--text-secondary)}.filter-chip--active{background:var(--chip-active-bg);color:var(--chip-active-text);border-color:transparent}.sheet-scroll{flex:1;overflow-y:auto;padding-bottom:14px;display:flex;flex-direction:column;gap:14px}.selected-food-card{background:var(--surface);border:1.5px solid var(--accent);border-radius:22px;padding:16px;box-shadow:var(--shadow-card);display:flex;flex-direction:column;gap:12px}.selected-food-title{margin:0;font-size:17.5px;font-weight:700}.selected-food-sub{margin:3px 0 0;font-size:13px;color:var(--text-muted)}.grams-hero-row{display:flex;align-items:baseline;gap:4px}.grams-hero-input{width:108px;font-size:34px;font-weight:800;letter-spacing:-.02em;border:none;outline:none;background:var(--surface-subtle);border-radius:14px;padding:4px 10px}.grams-hero-unit{font-size:24px;font-weight:750;color:var(--text-secondary)}.preset-row{display:flex;gap:7px;flex-wrap:wrap}.preset-chip{padding:7px 12px;border-radius:999px;font-size:13px;font-weight:650;background:var(--surface-subtle);color:var(--text-secondary)}.preset-chip--active{background:var(--accent);color:#fff}[data-theme=dark] .preset-chip--active{color:#06281c}.emerald-slider{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:7px;border-radius:999px;background:var(--track-bg);outline:none;margin:4px 0}.emerald-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:24px;height:24px;border-radius:50%;background:#fff;border:2.5px solid var(--accent);box-shadow:0 2px 8px #0003;cursor:pointer}.macro-preview-row{display:flex;flex-wrap:wrap;gap:6px}.pill-kcal,.pill-protein,.pill-fat,.pill-carbs{padding:6px 10px;border-radius:999px;font-size:12.5px;font-weight:700}.pill-kcal{background:var(--chip-active-bg);color:var(--chip-active-text)}.pill-protein{background:var(--protein-soft);color:var(--accent-text)}.pill-fat{background:var(--fat-soft);color:#b45309}[data-theme=dark] .pill-fat{color:#fbbf24}.pill-carbs{background:var(--carbs-soft);color:#4338ca}[data-theme=dark] .pill-carbs{color:#a5b4fc}.section-caption{font-size:13px;font-weight:600;color:var(--text-muted);margin-bottom:8px}.food-rows{display:flex;flex-direction:column;gap:8px}.food-row{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer}.food-row--selected{border-color:var(--accent);background:var(--accent-soft)}.food-row-info{min-width:0}.food-row-name{font-size:14.5px;font-weight:650;display:flex;align-items:center;gap:6px}.food-row-meta{font-size:12.5px;color:var(--text-muted);margin-top:2px}.custom-tag{font-size:11px;padding:2px 7px;border-radius:999px;background:var(--accent-soft);color:var(--accent-text);font-weight:650}.library-row-actions{display:flex;align-items:center;gap:8px}.sheet-footer{padding-top:10px;flex-shrink:0}.btn-primary-full{width:100%;height:52px;border-radius:999px;background:var(--accent);color:#fff;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 8px 20px #10b98147;transition:transform .14s ease,opacity .15s ease}[data-theme=dark] .btn-primary-full{color:#05261a}.btn-primary-full:active{transform:scale(.98)}.btn-primary-full:disabled{opacity:.45}.btn-primary-pill{height:38px;padding:0 14px;border-radius:999px;background:var(--accent);color:#fff;font-size:14px;font-weight:650;display:inline-flex;align-items:center;gap:5px}[data-theme=dark] .btn-primary-pill{color:#05261a}.btn-primary-sm{height:40px;padding:0 14px;border-radius:13px;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center}.btn-subtle,.btn-subtle-full{height:44px;padding:0 16px;border-radius:14px;background:var(--surface-subtle);color:var(--text);font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn-subtle-full{width:100%}.btn-danger-subtle{width:100%;height:44px;border-radius:14px;background:var(--danger-soft);color:var(--danger);font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:7px}.manual-form{display:flex;flex-direction:column;gap:12px}.field-group{display:flex;flex-direction:column;gap:5px}.field-label{font-size:12.5px;font-weight:600;color:var(--text-muted)}.label-protein{color:var(--accent-text)}.label-fat{color:var(--fat)}.label-carbs{color:var(--carbs)}.text-input{width:100%;height:44px;padding:0 13px;border-radius:13px;background:var(--surface-subtle);border:1px solid var(--border);font-size:16px;outline:none}.text-input:focus{border-color:var(--accent)}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.checkbox-row{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--text-secondary);padding:4px 2px}.checkbox-row input{width:18px;height:18px;accent-color:var(--accent)}.segmented-control{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:4px;border-radius:999px;background:var(--surface-subtle);gap:4px}.seg-btn{height:36px;border-radius:999px;font-size:13.5px;font-weight:600;color:var(--text-muted);display:inline-flex;align-items:center;justify-content:center;gap:5px;transition:background-color .18s ease,color .18s ease,box-shadow .18s ease}.seg-btn--active{background:var(--surface);color:var(--text);box-shadow:0 2px 8px #00000014}.analytics-card{padding:18px}.analytics-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:18px}.card-kicker{font-size:13.5px;color:var(--text-muted);font-weight:500}.analytics-big-num{font-size:27px;font-weight:800;letter-spacing:-.025em;margin-top:2px}.card-title{margin:0;font-size:17px;font-weight:700}.card-title-row{display:flex;align-items:center;gap:8px}.accent-icon{color:var(--accent)}.status-badge{padding:5px 11px;border-radius:999px;font-size:12.5px;font-weight:650}.status-badge--ok{background:var(--accent-soft);color:var(--accent-text)}.status-badge--warn{background:var(--fat-soft);color:#b45309}[data-theme=dark] .status-badge--warn{color:#fbbf24}.bar-chart-wrap{position:relative;height:162px;padding-top:12px}.bar-goal-line{position:absolute;left:0;right:0;border-top:1.5px dashed var(--border-strong);display:flex;justify-content:flex-end;pointer-events:none;z-index:2}.bar-goal-label{font-size:11px;font-weight:600;color:var(--text-muted);background:var(--surface);padding:0 4px;transform:translateY(-55%)}.bars-grid{height:100%;display:grid;grid-template-columns:repeat(7,1fr);gap:9px;align-items:end}.bar-col{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px}.bar-track{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center}.bar-pill{width:100%;max-width:28px;border-radius:10px;transition:height .4s cubic-bezier(.22,1,.36,1),opacity .15s ease}.bar-pill--ok{background:linear-gradient(180deg,#10b981,#059669)}[data-theme=dark] .bar-pill--ok{background:linear-gradient(180deg,#34d399,#10b981)}.bar-pill--over{background:linear-gradient(180deg,#fbbf24,#f59e0b)}.bar-pill--empty{background:var(--track-bg)}.bar-col--selected .bar-pill{outline:2.5px solid var(--text);outline-offset:2px}.bar-day-label{font-size:12.5px;font-weight:600;color:var(--text-muted)}.donut-row{display:flex;align-items:center;gap:18px;margin-top:14px}.donut-wrap{position:relative;width:114px;height:114px;flex-shrink:0}.donut-svg{width:100%;height:100%}.donut-bg{stroke:var(--track-bg)}.donut-center{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:14.5px;font-weight:750}.donut-legend{flex:1;display:flex;flex-direction:column;gap:10px}.legend-row{display:flex;align-items:center;gap:8px;font-size:13.5px}.legend-dot{width:9px;height:9px;border-radius:999px;flex-shrink:0}.legend-dot--protein{background:var(--protein)}.legend-dot--fat{background:var(--fat)}.legend-dot--carbs{background:var(--carbs)}.legend-name{flex:1;color:var(--text-secondary)}.legend-val{font-weight:700;color:var(--text)}.weight-card{padding:18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.weight-value{font-size:27px;font-weight:800;letter-spacing:-.02em;margin-top:2px}.weight-badges{display:flex;align-items:center;gap:6px;margin-top:8px}.delta-badge{padding:4px 9px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}.delta-badge--good{background:var(--accent-soft);color:var(--accent-text)}.delta-badge--up{background:var(--fat-soft);color:var(--fat)}.weight-add-chip{padding:4px 10px;border-radius:999px;background:var(--surface-subtle);color:var(--text-secondary);font-size:12px;font-weight:600;display:inline-flex;align-items:center;gap:3px;white-space:nowrap}.sparkline-svg{width:146px;height:58px;flex-shrink:0}.profile-card{padding:18px;display:flex;flex-direction:column;gap:12px}.muted-copy{margin:0;font-size:13.5px;color:var(--text-muted);line-height:1.45}.pwa-guide{display:flex;flex-direction:column;gap:10px}.pwa-steps p{margin:0 0 6px;font-size:13.5px;line-height:1.45;color:var(--text-secondary)}.pwa-steps p:last-child{margin-bottom:0}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;background:#080b128f;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:18px}.modal-card{width:100%;max-width:400px;background:var(--surface);border:1px solid var(--border);border-radius:26px;padding:18px;box-shadow:var(--shadow-nav);display:flex;flex-direction:column;gap:12px}.btn-camera-launch{width:100%;padding:16px;border-radius:16px;background:var(--accent-soft);color:var(--accent-text);font-size:14.5px;font-weight:650;display:flex;align-items:center;justify-content:center;gap:8px}.barcode-camera-box{position:relative;display:flex;flex-direction:column;gap:8px}.barcode-video{width:100%;height:200px;object-fit:cover;border-radius:16px;background:#000}.barcode-reticle{position:absolute;top:48px;left:16%;right:16%;height:96px;border:2px solid var(--accent);border-radius:14px;box-shadow:0 0 0 999px #00000038;pointer-events:none}.barcode-hint{margin:0;font-size:12.5px;color:var(--text-muted);text-align:center}.barcode-form{display:flex;flex-direction:column;gap:6px}.barcode-input-row{display:flex;gap:8px}.error-note{margin:0;font-size:13px;color:var(--danger);line-height:1.4}.accent-note{margin:0;font-size:13px;color:var(--accent-text);font-weight:600}.empty-inline-card{padding:20px;border-radius:18px;background:var(--surface);border:1px solid var(--border);text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}.empty-inline-card p{margin:0;color:var(--text-muted);font-size:14px}.inline-flex-center{display:inline-flex;align-items:center;gap:6px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast-pill{position:fixed;top:calc(16px + env(safe-area-inset-top,0px));left:50%;transform:translate(-50%);z-index:95;padding:10px 16px;border-radius:999px;background:var(--chip-active-bg);color:var(--chip-active-text);font-size:13.5px;font-weight:600;box-shadow:0 10px 28px #00000040;white-space:nowrap;max-width:92vw;overflow:hidden;text-overflow:ellipsis;animation:toastDrop .22s ease-out}@keyframes toastDrop{0%{opacity:0;transform:translate(-50%,-10px)}to{opacity:1;transform:translate(-50%)}}.account-summary{display:flex;align-items:center;gap:12px}.account-avatar{width:42px;height:42px;border-radius:14px;background:var(--accent-soft);color:var(--accent-text);font-size:17px;font-weight:750;display:flex;align-items:center;justify-content:center;flex-shrink:0}.account-meta{flex:1;min-width:0}.account-name{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-email{font-size:12.5px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sync-pill{padding:5px 10px;border-radius:999px;font-size:12px;font-weight:650;background:var(--surface-subtle);color:var(--text-secondary);white-space:nowrap}.sync-pill--ok{background:var(--accent-soft);color:var(--accent-text)}.sync-pill--err{background:var(--danger-soft);color:var(--danger)}.btn-compact{height:44px;font-size:14px;border-radius:14px}.input-with-icon{position:relative;display:flex;align-items:center}.input-ico{position:absolute;left:13px;color:var(--text-muted);pointer-events:none}.text-input--icon{padding-left:38px}.audit-list{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-radius:16px;background:var(--surface-subtle);max-height:220px;overflow-y:auto}.audit-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:7px;border-bottom:1px solid var(--border)}.audit-row:last-child{padding-bottom:0;border-bottom:none}.audit-event{font-size:13px;font-weight:600}.audit-meta{font-size:11.5px;color:var(--text-muted)}.audit-time{font-size:11.5px;color:var(--text-muted);white-space:nowrap}
