: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}.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)}.field-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.field-age-pill{font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent-text)}.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}input[type=date].text-input{min-width:0;max-width:100%;color:var(--text);-moz-appearance:none;appearance:none;-webkit-appearance:none;display:flex;align-items:center}.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}.day-mode-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.day-mode-pill{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:600}.day-mode-pill--train{background:var(--accent-soft);color:var(--accent-text)}.day-mode-pill--rest{background:var(--surface-subtle);color:var(--text-secondary)}.day-mode-switch{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border:1px solid var(--border-strong);border-radius:999px;background:transparent;color:var(--text-muted);font-size:11.5px;font-weight:600;cursor:pointer}.day-mode-switch:hover{color:var(--text);background:var(--surface-subtle)}.workout-today-card{padding:14px 16px}.workout-today-row{display:flex;align-items:center;gap:12px;cursor:pointer}.workout-icon-badge{width:40px;height:40px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:var(--carbs-soft);color:var(--carbs);flex-shrink:0}.workout-icon-badge--done{background:var(--accent-soft);color:var(--accent-text)}.workout-icon-badge--rest{background:var(--surface-subtle);color:var(--text-muted)}.workout-today-main{flex:1;min-width:0}.workout-today-title{font-size:14.5px;font-weight:650;color:var(--text);line-height:1.25}.workout-today-sub{font-size:12px;color:var(--text-muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workout-today-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.workout-done-btn{display:inline-flex;align-items:center;gap:4px;padding:6px 10px;border-radius:999px;border:1px solid var(--border-strong);background:var(--surface-subtle);color:var(--text);font-size:12px;font-weight:600;cursor:pointer}.workout-done-btn--active{background:var(--accent);border-color:var(--accent);color:#fff}.workout-chevron{color:var(--text-muted);display:inline-flex}.workout-exercises-list{margin-top:12px;padding-top:10px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:8px}.workout-exercise-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:12px;background:var(--surface-subtle)}.workout-exercise-info{min-width:0}.workout-exercise-name{font-size:13px;font-weight:600;color:var(--text)}.workout-exercise-note{font-size:11.5px;color:var(--text-muted);margin-top:2px}.workout-exercise-meta{font-size:12.5px;font-weight:700;color:var(--accent-text);white-space:nowrap}.plan-summary-chips{display:flex;flex-wrap:wrap;gap:6px}.plan-chip{font-size:12px;font-weight:600;padding:5px 10px;border-radius:999px;background:var(--surface-subtle);color:var(--text-secondary)}.plan-chip--accent{background:var(--accent-soft);color:var(--accent-text)}.plan-cycle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.plan-cycle-box{padding:12px;border-radius:16px;background:var(--surface-subtle);display:flex;flex-direction:column;gap:4px}.plan-cycle-head{font-size:11.5px;font-weight:600;color:var(--text-muted)}.plan-cycle-kcal{font-size:18px;font-weight:750;color:var(--text)}.plan-cycle-macros{display:flex;flex-wrap:wrap;gap:6px;font-size:11.5px;font-weight:600;margin-top:2px}.chip-p{color:var(--protein)}.chip-f{color:var(--fat)}.chip-c{color:var(--carbs)}.chip-w{color:var(--water)}.profile-schedule-wrap{display:flex;flex-direction:column;gap:10px}.profile-schedule-head{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:650;color:var(--text)}.weekday-picker{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.weekday-pill{height:38px;border-radius:12px;border:1px solid var(--border-strong);background:var(--surface-subtle);color:var(--text-secondary);font-size:13px;font-weight:650;cursor:pointer;position:relative}.weekday-pill--has-train:after{content:"";position:absolute;bottom:4px;left:50%;transform:translate(-50%);width:5px;height:5px;border-radius:50%;background:var(--accent)}.weekday-pill--active{background:var(--accent);border-color:var(--accent);color:#fff}.weekday-pill--active.weekday-pill--has-train:after{background:#fff}.profile-day-detail{padding:12px;border-radius:16px;background:var(--surface-subtle)}.profile-day-detail .workout-exercise-row{background:var(--surface)}.profile-day-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.profile-day-detail-title{font-size:14px;font-weight:650;color:var(--text)}.profile-day-detail-sub{font-size:12px;color:var(--text-muted);margin-top:2px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:120;background:#080c1499;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;align-items:flex-end;justify-content:center;padding:12px 10px calc(10px + env(safe-area-inset-bottom,0px))}.sheet-modal{width:100%;max-width:520px;max-height:90dvh;background:var(--surface);border:1px solid var(--border);border-radius:26px;box-shadow:var(--shadow-nav);display:flex;flex-direction:column;padding:10px 18px calc(16px + env(safe-area-inset-bottom,0px));overflow-y:auto;gap:14px}.sheet-title{font-size:19px;font-weight:750;margin:0}.wizard-step-caption{margin:2px 0 0;font-size:12.5px;color:var(--text-muted)}.wizard-progress-track{height:5px;border-radius:999px;background:var(--track-bg);overflow:hidden;flex-shrink:0}.wizard-progress-fill{height:100%;background:var(--accent);border-radius:999px;transition:width .22s ease}.wizard-body{overflow-y:auto;display:flex;flex-direction:column;gap:14px;padding-right:2px}.wizard-section{display:flex;flex-direction:column;gap:12px}.wizard-question{display:flex;align-items:center;gap:8px;font-size:15.5px;font-weight:700;color:var(--text)}.wizard-option-list{display:flex;flex-direction:column;gap:8px}.wizard-choice-card{width:100%;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-radius:16px;border:1.5px solid var(--border-strong);background:var(--surface-subtle);color:var(--text);cursor:pointer;transition:border-color .15s ease,background .15s ease}.wizard-choice-card--compact{padding:11px 14px}.wizard-choice-card--active{border-color:var(--accent);background:var(--accent-soft)}.wizard-choice-title{font-size:14.5px;font-weight:650}.wizard-choice-desc{font-size:12px;color:var(--text-muted);margin-top:2px;line-height:1.35}.wizard-choice-tag{font-size:11px;font-weight:700;padding:4px 8px;border-radius:999px;background:var(--surface);color:var(--text-secondary);white-space:nowrap;flex-shrink:0}.wizard-subblock{display:flex;flex-direction:column;gap:8px}.wizard-inbody-pill{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;background:var(--accent-soft);color:var(--accent-text);font-size:12.5px;font-weight:600;line-height:1.35}.wizard-cycle-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:10px}.wizard-goals-box{padding:12px 14px;border-radius:16px;background:var(--surface-subtle);border:1px solid var(--border);display:flex;flex-direction:column;gap:6px}.wizard-goals-head{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;font-weight:650;color:var(--text-secondary)}.wizard-mini-badge{font-size:11px;padding:2px 7px;border-radius:999px;background:var(--accent-soft);color:var(--accent-text)}.wizard-kcal-big{font-size:20px;font-weight:800;color:var(--text)}.wizard-macro-chips{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;font-weight:650}.wizard-summary-meta{display:flex;flex-wrap:wrap;gap:6px 14px;padding:10px 12px;border-radius:14px;background:var(--surface-subtle);font-size:12.5px;color:var(--text-secondary)}.wizard-schedule-list{display:flex;flex-direction:column;gap:6px}.wizard-schedule-row{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:13px;background:var(--surface-subtle)}.wizard-schedule-row--rest{opacity:.72}.wizard-day-code{width:30px;height:30px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:750;background:var(--accent-soft);color:var(--accent-text);flex-shrink:0}.wizard-schedule-row--rest .wizard-day-code{background:var(--surface);color:var(--text-muted)}.wizard-day-info{flex:1;min-width:0}.wizard-day-title{font-size:13px;font-weight:650;color:var(--text)}.wizard-day-sub{font-size:11.5px;color:var(--text-muted)}.wizard-day-dur{font-size:12px;font-weight:700;color:var(--text-secondary);white-space:nowrap}.wizard-footer{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;padding-top:4px}.inbody-card{display:flex;flex-direction:column;gap:14px}.inbody-subdate{font-size:12px;color:var(--text-muted);margin-top:2px}.btn-primary-xs{display:inline-flex;align-items:center;gap:5px;padding:7px 12px;border-radius:999px;border:none;background:var(--accent);color:#fff;font-size:12.5px;font-weight:650;cursor:pointer;white-space:nowrap}.inbody-empty{display:flex;flex-direction:column;gap:12px}.inbody-metrics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.inbody-metric-tile{padding:11px 12px;border-radius:15px;background:var(--surface-subtle);display:flex;flex-direction:column;gap:3px}.inbody-metric-label{font-size:11.5px;font-weight:600;color:var(--text-muted)}.label-water{color:var(--water)}.inbody-metric-val{font-size:16.5px;font-weight:750;color:var(--text)}.inbody-val-sub{font-size:13px;font-weight:600;color:var(--text-secondary)}.inbody-metric-delta{font-size:11.5px;font-weight:650;color:var(--text-muted)}.delta-good{color:var(--protein)}.delta-warn{color:var(--fat)}.inbody-chart-box{padding:12px;border-radius:16px;background:var(--surface-subtle);display:flex;flex-direction:column;gap:8px}.inbody-chart-legend{display:flex;align-items:center;gap:12px;font-size:12px;font-weight:600;color:var(--text-secondary)}.legend-item{display:inline-flex;align-items:center;gap:5px}.dot-smm,.dot-bfm{width:8px;height:8px;border-radius:50%;display:inline-block}.dot-smm{background:var(--protein)}.dot-bfm{background:var(--fat)}.inbody-chart-range{margin-left:auto;font-size:11.5px;color:var(--text-muted)}.inbody-trend-svg{width:100%;height:112px;display:block}.inbody-audit-box{padding:14px;border-radius:18px;border:1px solid var(--border-strong);background:var(--surface-subtle);display:flex;flex-direction:column;gap:10px}.inbody-audit-box--excellent,.inbody-audit-box--good{border-color:#10b98159}.inbody-audit-box--adjust{border-color:#f59e0b6b}.inbody-audit-head{display:flex;align-items:flex-start;gap:10px}.audit-ico-ok{color:var(--protein);flex-shrink:0;margin-top:2px}.audit-ico-warn{color:var(--fat);flex-shrink:0;margin-top:2px}.audit-ico-info{color:var(--carbs);flex-shrink:0;margin-top:2px}.inbody-audit-kicker{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.inbody-audit-title{font-size:15px;font-weight:750;color:var(--text);margin-top:1px}.inbody-audit-summary{margin:0;font-size:13px;line-height:1.45;color:var(--text-secondary)}.inbody-period-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:10px;border-radius:13px;background:var(--surface);text-align:center}.inbody-period-strip span{display:block;font-size:10.5px;color:var(--text-muted)}.inbody-period-strip strong{display:block;font-size:13px;font-weight:750;color:var(--text);margin-top:2px}.inbody-insights-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}.insight-row{display:flex;align-items:flex-start;gap:7px;font-size:12.5px;line-height:1.4;color:var(--text-secondary)}.insight-ico{flex-shrink:0;margin-top:2px}.insight-row--positive .insight-ico{color:var(--protein)}.insight-row--warning .insight-ico{color:var(--fat)}.inbody-adjust-box{padding-top:8px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:8px}.inbody-adjust-reason{margin:0;font-size:12.5px;font-weight:600;color:var(--text)}.inbody-history-wrap{border-top:1px solid var(--border);padding-top:10px}.inbody-history-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;background:transparent;border:none;padding:4px 0;color:var(--text-secondary);font-size:13px;font-weight:650;cursor:pointer}.inbody-history-list{margin-top:8px;display:flex;flex-direction:column;gap:8px}.inbody-history-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border-radius:13px;background:var(--surface-subtle)}.inbody-history-main{min-width:0}.inbody-history-date{display:flex;align-items:center;gap:6px;font-size:13px}.inbody-source-tag{font-size:10px;font-weight:700;padding:2px 6px;border-radius:6px;background:var(--surface);color:var(--text-muted)}.inbody-history-meta{font-size:11.5px;color:var(--text-muted);margin-top:2px}.inbody-upload-box{display:flex;flex-direction:column;gap:10px}.inbody-upload-hints{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.inbody-fmt-chip{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;color:var(--text-muted);padding:4px 8px;border-radius:8px;background:var(--surface-subtle)}.inbody-template-link{margin-left:auto;display:inline-flex;align-items:center;gap:4px;border:none;background:transparent;color:var(--accent-text);font-size:12px;font-weight:650;cursor:pointer}.inbody-status-banner{padding:10px 12px;border-radius:13px;background:var(--accent-soft);color:var(--accent-text);font-size:12.5px;font-weight:600}.inbody-warn-banner{padding:10px 12px;border-radius:13px;background:var(--fat-soft);color:var(--text);font-size:12.5px;line-height:1.4}.inbody-batch-box{display:flex;flex-direction:column;gap:12px}.inbody-batch-tags{display:flex;flex-wrap:wrap;gap:6px}.inbody-batch-list{display:flex;flex-direction:column;gap:6px;max-height:240px;overflow-y:auto}.inbody-batch-row{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:9px 11px;border-radius:12px;background:var(--surface-subtle);font-size:12.5px;cursor:pointer}.inbody-batch-row--muted{opacity:.48}.inbody-batch-check{width:16px;height:16px;accent-color:var(--accent);cursor:pointer}.inbody-batch-time{font-size:11px;font-weight:500;color:var(--text-muted)}.inbody-batch-score{margin-left:auto;font-size:11.5px;font-weight:700;color:var(--accent-text)}.inbody-details-panel{margin-top:10px;display:flex;flex-direction:column;gap:12px}.inbody-detail-block{display:flex;flex-direction:column;gap:7px}.inbody-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}.inbody-detail-badge{font-size:11px;font-weight:650;text-transform:none;letter-spacing:0;color:var(--text-secondary)}.inbody-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.inbody-mini-cell{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 10px;border-radius:11px;background:var(--surface-subtle);font-size:12px}.inbody-mini-cell span{color:var(--text-muted)}.inbody-mini-cell strong{color:var(--text);font-weight:700}.inbody-mini-delta{font-style:normal;font-size:11px;font-weight:600;color:var(--text-muted)}.inbody-form{display:flex;flex-direction:column;gap:12px}.text-toggle-link{align-self:flex-start;border:none;background:transparent;color:var(--accent-text);font-size:12.5px;font-weight:650;padding:2px 0;cursor:pointer}.spin-icon{animation:ffb-spin .9s linear infinite}@keyframes ffb-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.mcp-card{display:flex;flex-direction:column;gap:12px}.mcp-endpoint-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:14px;background:var(--surface-subtle)}.mcp-endpoint-info{min-width:0;display:flex;flex-direction:column;gap:2px}.mcp-label{font-size:11px;font-weight:650;color:var(--text-muted)}.mcp-code-inline{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mcp-actions-row{display:flex;gap:8px;align-items:center}.mcp-token-box{padding:11px 12px;border-radius:14px;background:var(--accent-soft);border:1px solid rgba(16,185,129,.3);display:flex;flex-direction:column;gap:6px}.mcp-token-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:650;color:var(--accent-text)}.mcp-copy-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:999px;border:none;background:var(--surface);color:var(--text);font-size:11.5px;font-weight:650;cursor:pointer}.mcp-token-val{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px;word-break:break-all;color:var(--text);line-height:1.4}.mcp-config-wrap{display:flex;flex-direction:column;gap:10px}.mcp-snippet-box{display:flex;flex-direction:column;gap:8px}.mcp-pre{margin:0;padding:11px 12px;border-radius:14px;background:var(--surface-subtle);border:1px solid var(--border);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px;line-height:1.45;color:var(--text);overflow-x:auto;white-space:pre-wrap;word-break:break-word}.mcp-tools-hint{font-size:12px;line-height:1.45;color:var(--text-muted)}.mcp-tools-hint code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px;color:var(--text-secondary)}.chip-row{display:flex;flex-wrap:wrap;gap:8px}.chip-btn{padding:7px 12px;border-radius:999px;border:1px solid var(--border-strong);background:var(--surface-subtle);color:var(--text-secondary);font-size:12.5px;font-weight:650;cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease}.chip-btn:hover{background:var(--surface-hover);color:var(--text)}.chip-btn--active{background:var(--accent);border-color:var(--accent);color:#fff}.training-blocks-list{display:flex;flex-direction:column;gap:12px}.training-block-card{padding:12px 13px;border-radius:16px;background:var(--surface-subtle);border:1px solid var(--border-strong);display:flex;flex-direction:column;gap:10px}.training-block-card .text-input{background:var(--surface)}.training-block-head{display:flex;align-items:center;gap:8px}.training-block-num{font-size:12px;font-weight:750;color:var(--accent-text);padding:3px 9px;border-radius:999px;background:var(--accent-soft)}.optional-toggle{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--text-secondary);cursor:pointer}.optional-toggle input{width:16px;height:16px;accent-color:var(--accent)}.day-mode-pill--double{background:var(--carbs-soft);color:var(--carbs)}.wizard-goals-box--highlight,.plan-cycle-box--double{border:1px solid rgba(99,102,241,.35)}.plan-cycle-grid{grid-template-columns:repeat(auto-fit,minmax(132px,1fr))}.workout-sessions-stack,.profile-sessions-stack{display:flex;flex-direction:column;gap:12px}.workout-session-item+.workout-session-item,.profile-session-block+.profile-session-block{padding-top:12px;border-top:1px solid var(--border)}.workout-today-title-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.session-time-tag{font-size:10.5px;font-weight:750;padding:2px 7px;border-radius:6px;background:var(--accent-soft);color:var(--accent-text);white-space:nowrap}.session-opt-tag{font-size:10px;font-weight:700;padding:2px 6px;border-radius:6px;background:var(--fat-soft);color:var(--fat);white-space:nowrap}.wizard-day-sessions{display:flex;flex-direction:column;gap:5px}.wizard-day-session-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.wizard-day-session-line .wizard-day-dur{margin-left:auto}.weekday-pill--double:after{content:"";position:absolute;bottom:4px;left:50%;transform:translate(-50%);width:12px;height:4px;border-radius:999px;background:var(--carbs)}.weekday-pill--opt:after{content:"";position:absolute;bottom:4px;left:50%;transform:translate(-50%);width:5px;height:5px;border-radius:50%;background:var(--fat)}.weekday-pill--active.weekday-pill--double:after,.weekday-pill--active.weekday-pill--opt:after{background:#fff}.onboarding-shell{min-height:100dvh;padding:calc(16px + env(safe-area-inset-top,0px)) 16px calc(24px + env(safe-area-inset-bottom,0px));display:flex;justify-content:center}.onboarding-container{width:100%;max-width:480px;display:flex;flex-direction:column;gap:14px}.onboarding-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.onboarding-brand{display:flex;align-items:center;gap:10px}.onboarding-logo{width:36px;height:36px;border-radius:10px;box-shadow:var(--shadow-card)}.onboarding-brand-name{font-size:16px;font-weight:750;color:var(--text);line-height:1.15}.onboarding-step-label{font-size:12px;color:var(--text-muted)}.onboarding-skip-all{border:none;background:transparent;color:var(--text-muted);font-size:13px;font-weight:600;padding:6px 8px;border-radius:10px;cursor:pointer}.onboarding-skip-all:hover{color:var(--text);background:var(--surface-subtle)}.onboarding-steps-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.onboarding-step-pill{display:flex;flex-direction:column;align-items:center;gap:4px;padding:7px 4px;border-radius:13px;border:1px solid var(--border);background:var(--surface);color:var(--text-muted);font-size:10.5px;font-weight:650;cursor:pointer}.onboarding-step-dot{width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:750;background:var(--surface-subtle);color:var(--text-secondary)}.onboarding-step-pill--active{border-color:var(--accent);color:var(--text);background:var(--accent-soft)}.onboarding-step-pill--active .onboarding-step-dot{background:var(--accent);color:#fff}.onboarding-step-pill--done .onboarding-step-dot{background:var(--accent-soft);color:var(--accent-text)}.onboarding-card{padding:20px 18px}.onboarding-step-content{display:flex;flex-direction:column;gap:14px}.onboarding-hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding-bottom:4px}.onboarding-hero--compact{gap:6px}.onboarding-ico-circle{width:48px;height:48px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent-text)}.onboarding-pwa-icon{width:68px;height:68px;border-radius:18px;box-shadow:var(--shadow-card)}.onboarding-title{margin:0;font-size:21px;font-weight:800;color:var(--text);letter-spacing:-.02em}.onboarding-desc{margin:0;font-size:13.5px;line-height:1.45;color:var(--text-secondary)}.onboarding-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:10px;margin-top:4px}.onboarding-actions--3{grid-template-columns:auto 1fr;align-items:center}.onboarding-actions--finish{grid-template-columns:auto 1fr 1.25fr;align-items:center}.onboarding-done-card{padding:14px;border-radius:16px;background:var(--surface-subtle);border:1px solid rgba(16,185,129,.35);display:flex;flex-direction:column;gap:10px}.onboarding-done-head{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text)}.onboarding-info-box,.onboarding-auth-stack{display:flex;flex-direction:column;gap:12px}.onboarding-menu-tools{display:flex;align-items:center;gap:8px}.btn-subtle-sm{display:inline-flex;align-items:center;gap:4px;height:44px;padding:0 12px;border-radius:14px;border:1px solid var(--border-strong);background:var(--surface-subtle);color:var(--text);font-size:13px;font-weight:650;cursor:pointer;white-space:nowrap}.meal-count-dot{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 5px;margin-left:4px;border-radius:999px;background:var(--accent);color:#fff;font-size:10.5px;font-weight:750}.onboarding-foods-list{display:flex;flex-direction:column;gap:7px;max-height:290px;overflow-y:auto;padding-right:2px}.onboarding-food-item{width:100%;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:14px;border:1.5px solid var(--border);background:var(--surface-subtle);color:var(--text);cursor:pointer}.onboarding-food-item--active{border-color:var(--accent);background:var(--accent-soft)}.onboarding-food-info{min-width:0}.onboarding-food-name{font-size:13.5px;font-weight:650;color:var(--text)}.onboarding-food-meta{font-size:11.5px;color:var(--text-muted);margin-top:2px}.onboarding-food-check{width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--surface);color:var(--text-muted);flex-shrink:0}.onboarding-food-check--on{background:var(--accent);color:#fff}.reset-modal-card{display:flex;flex-direction:column;gap:14px}.reset-modal-title{margin:0;font-size:18px;font-weight:750;color:var(--text)}.reset-scope-list{display:flex;flex-direction:column;gap:8px}.reset-scope-option{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border-radius:14px;background:var(--surface-subtle);border:1.5px solid var(--border);cursor:pointer;transition:border-color .15s ease,background .15s ease}.reset-scope-option--active{border-color:var(--danger);background:#ef444414}.reset-scope-option input{width:17px;height:17px;margin-top:2px;accent-color:var(--danger);flex-shrink:0}.reset-scope-copy{display:flex;flex-direction:column;gap:2px}.reset-scope-copy strong{font-size:13.5px;color:var(--text)}.reset-scope-copy span{font-size:12px;line-height:1.35;color:var(--text-muted)}.reset-subchecks{display:flex;flex-direction:column;gap:7px}.reset-cloud-check{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border-radius:14px;background:var(--surface-subtle);font-size:13px;line-height:1.35;color:var(--text-secondary);cursor:pointer}.reset-cloud-check input{width:18px;height:18px;margin-top:1px;accent-color:var(--danger);flex-shrink:0}.btn-danger-full{width:100%;height:46px;border-radius:15px;border:none;background:var(--danger);color:#fff;font-size:14.5px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}.onboarding-steps-bar--6{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.onboarding-steps-bar--6 .onboarding-step-pill{padding:6px 2px;font-size:9.5px;border-radius:11px}.onboarding-steps-bar--6 .onboarding-step-dot{width:18px;height:18px;font-size:10px}.character-card{padding:14px 15px;border:1px solid var(--border);transition:border-color .25s ease,background .25s ease}.character-card--emerald{border-color:#10b98152;background:linear-gradient(135deg,var(--surface) 58%,rgba(16,185,129,.09) 100%)}.character-card--amber{border-color:#f59e0b57;background:linear-gradient(135deg,var(--surface) 58%,rgba(245,158,11,.09) 100%)}.character-card--indigo{border-color:#6366f157;background:linear-gradient(135deg,var(--surface) 58%,rgba(99,102,241,.09) 100%)}.character-card--blue{border-color:#3b82f652;background:linear-gradient(135deg,var(--surface) 58%,rgba(59,130,246,.09) 100%)}.character-card--slate{border-color:var(--border-strong);background:linear-gradient(135deg,var(--surface) 60%,var(--surface-subtle) 100%)}.character-card-layout{display:flex;align-items:center;gap:12px}.character-img-frame{flex-shrink:0;border-radius:18px;overflow:hidden;background:#141a26;border:1.5px solid var(--border-strong);box-shadow:0 8px 20px #00000024}.character-img-frame--emerald{border-color:#10b98180}.character-img-frame--amber{border-color:#f59e0b80}.character-img-frame--indigo{border-color:#6366f180}.character-img-frame--blue{border-color:#3b82f680}.character-img-frame--slate{border-color:#94a3b859}.character-img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}.character-preview-macros{font-size:11.5px;font-weight:600;color:var(--text-muted)}.character-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:6px}.character-head-row{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}.character-badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:10.5px;font-weight:750;letter-spacing:.01em}.character-badge--emerald{background:var(--accent-soft);color:var(--accent-text)}.character-badge--amber{background:var(--fat-soft);color:var(--fat)}.character-badge--indigo{background:var(--carbs-soft);color:var(--carbs)}.character-badge--blue{background:var(--water-soft);color:var(--water)}.character-badge--slate{background:var(--surface-subtle);color:var(--text-secondary)}.character-cycle-tag{font-size:10.5px;font-weight:600;color:var(--text-muted)}.character-title{margin:0;font-size:15px;font-weight:750;line-height:1.25;color:var(--text)}.character-tip{margin:0;font-size:12.2px;line-height:1.4;color:var(--text-secondary)}.character-traits{display:flex;flex-wrap:wrap;gap:5px;margin-top:2px}.character-trait{display:inline-flex;align-items:center;padding:2px 7px;border-radius:7px;font-size:10.5px;font-weight:650}.character-trait--good{background:var(--accent-soft);color:var(--accent-text)}.character-trait--warn{background:var(--fat-soft);color:var(--fat)}.character-trait--neutral{background:var(--surface-subtle);color:var(--text-secondary)}.character-preview-stage{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:16px 14px;border-radius:20px;border:1px solid var(--border)}.character-preview-title{font-size:16px;font-weight:750;color:var(--text)}.character-preview-tip{margin:0;font-size:12.8px;line-height:1.45;color:var(--text-secondary);max-width:340px}@media(max-width:360px){.character-card-layout{flex-direction:column;text-align:center}.character-head-row,.character-traits{justify-content:center}}.twofa-head-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.twofa-challenge-banner{display:flex;align-items:flex-start;gap:10px;padding:12px;border-radius:14px;background:var(--accent-soft);border:1px solid rgba(16,185,129,.28)}.twofa-code-input{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.16em;font-weight:700}.twofa-challenge-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.twofa-setup-box,.twofa-disable-form{display:flex;flex-direction:column;gap:12px}.twofa-qr-wrap{display:flex;justify-content:center;padding:14px;border-radius:18px;background:#fff;border:1px solid var(--border);align-self:center}.twofa-qr-img{width:196px;height:196px;display:block;border-radius:8px}.twofa-recovery-box{padding:13px;border-radius:16px;background:var(--surface-subtle);border:1px solid rgba(245,158,11,.35);display:flex;flex-direction:column;gap:10px}.twofa-recovery-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:var(--text)}.twofa-recovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.twofa-recovery-code{text-align:center;padding:7px 6px;border-radius:10px;background:var(--surface);border:1px solid var(--border);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;font-weight:700;color:var(--text)}.twofa-status-meta{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-radius:12px;background:var(--surface-subtle);font-size:13px;color:var(--text-secondary)}.admin-entry-card{border:1px solid rgba(99,102,241,.32);background:linear-gradient(135deg,var(--surface) 60%,rgba(99,102,241,.08) 100%)}.admin-overlay{align-items:flex-end;padding:10px}@media(min-width:640px){.admin-overlay{align-items:center;padding:20px}}.admin-modal-card{width:100%;max-width:680px;max-height:90dvh;display:flex;flex-direction:column;gap:14px;overflow:hidden}.admin-header-btns{display:flex;align-items:center;gap:6px}.admin-body{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:14px;padding-right:2px}.admin-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:36px 12px;color:var(--text-muted);font-size:13.5px}.admin-section{display:flex;flex-direction:column;gap:12px}.admin-alert-box{display:flex;align-items:flex-start;gap:9px;padding:11px 12px;border-radius:14px;background:var(--fat-soft);color:var(--fat);font-size:12.5px;line-height:1.4}.admin-kpi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}@media(min-width:560px){.admin-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.admin-kpi-card{padding:12px;border-radius:16px;background:var(--surface-subtle);border:1px solid var(--border);display:flex;flex-direction:column;gap:4px}.admin-kpi-card--warn{border-color:#f59e0b73;background:var(--fat-soft)}.admin-kpi-head{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:650;color:var(--text-muted)}.admin-kpi-val{font-size:22px;font-weight:800;color:var(--text);line-height:1.15}.admin-kpi-sub{font-size:11.5px;color:var(--text-secondary)}.admin-chart-card{padding:13px;border-radius:16px;background:var(--surface-subtle);border:1px solid var(--border);display:flex;flex-direction:column;gap:12px}.admin-chart-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:13px}.admin-chart-legend{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--text-muted)}.legend-dot{display:inline-flex;align-items:center;gap:4px}.legend-dot:before{content:"";width:7px;height:7px;border-radius:50%}.legend-dot--emerald:before{background:var(--protein)}.legend-dot--indigo:before{background:var(--carbs)}.legend-dot--amber:before{background:var(--fat)}.admin-bars-wrap{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:4px;align-items:end;height:112px}.admin-bar-col{display:flex;flex-direction:column;align-items:center;gap:4px;height:100%}.admin-bar-track{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;border-radius:6px;background:var(--surface);padding:2px}.admin-bar-stack{width:100%;display:flex;flex-direction:column;gap:1px;border-radius:4px;overflow:hidden}.admin-bar-seg--emerald{background:var(--protein)}.admin-bar-seg--indigo{background:var(--carbs)}.admin-bar-seg--amber{background:var(--fat)}.admin-bar-label{font-size:10px;color:var(--text-muted)}.admin-list{display:flex;flex-direction:column;gap:8px}.admin-user-card{padding:12px;border-radius:15px;background:var(--surface-subtle);border:1px solid var(--border);display:flex;flex-direction:column;gap:8px}.admin-user-top{display:flex;align-items:center;gap:10px}.admin-avatar{width:36px;height:36px;font-size:15px;flex-shrink:0}.admin-user-main{min-width:0;flex:1}.admin-user-name-row{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:14px;color:var(--text)}.admin-user-email{font-size:12px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis}.admin-user-stats{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:11.5px;color:var(--text-secondary)}.admin-user-actions{display:flex;justify-content:flex-end}.admin-tag{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;font-size:10.5px;font-weight:700}.admin-tag--accent,.admin-tag--good{background:var(--accent-soft);color:var(--accent-text)}.admin-tag--indigo{background:var(--carbs-soft);color:var(--carbs)}.admin-tag--warn{background:var(--fat-soft);color:var(--fat)}.admin-tag--err{background:#ef444429;color:var(--danger)}.admin-tag--neutral{background:var(--surface);color:var(--text-secondary)}.admin-event-row{padding:10px 12px;border-radius:13px;background:var(--surface-subtle);border:1px solid var(--border);display:flex;flex-direction:column;gap:4px}.admin-event-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.admin-event-actor{font-size:13px;font-weight:600;color:var(--text);word-break:break-word}.admin-event-meta{font-size:11.5px;color:var(--text-muted)}
