:root{color-scheme:light;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--hb-color-text-primary: #1f2933;--hb-color-text-secondary: #52606d;--hb-color-text-strong: #364152;--hb-color-text-soft: #475569;--hb-color-text-muted: #4b5563;--hb-color-text-muted-strong: #4c5565;--hb-color-text-tertiary: #5f6b7a;--hb-color-text-quaternary: #64748b;--hb-color-text-dim: #6b7280;--hb-color-text-subtle: #7c8aa8;--hb-color-brand-primary: #312e81;--hb-color-brand-accent: #4338ca;--hb-color-brand-soft: #4c51bf;--hb-color-indigo: #6366f1;--hb-color-purple: #6d28d9;--hb-color-purple-light: #a855f7;--hb-color-sky: #0ea5e9;--hb-color-success: #047857;--hb-color-danger: #dc2626;--hb-color-danger-strong: #be123c;--hb-color-danger-accent: #e11d48;--hb-color-warning: #b45309;--hb-color-info: #1d4ed8;--hb-color-warm: #f97316;--hb-color-amber: #fbbf24;--hb-color-pink: #ec4899;--hb-color-pink-light: #f472b6;--hb-color-red-accent: #ef4444;--hb-color-deep: #0f172a;--hb-color-surface-base: #ffffff;--hb-color-surface-card: rgba(255, 255, 255, .92);--hb-color-surface-overlay: rgba(255, 255, 255, .95);--hb-color-surface-overlay-strong: rgba(255, 255, 255, .94);--hb-color-surface-elevated: rgba(255, 255, 255, .9);--hb-color-surface-soft: rgba(255, 255, 255, .85);--hb-color-surface-muted: rgba(248, 247, 255, .95);--hb-color-surface-muted-soft: rgba(248, 247, 255, .85);--hb-color-surface-highlight: rgba(248, 250, 255, .85);--hb-color-surface-highlight-strong: rgba(248, 250, 255, .95);--hb-color-surface-glow-faint: rgba(248, 247, 255, .45);--hb-color-surface-glow-soft: rgba(248, 247, 255, .6);--hb-color-surface-outline: rgba(255, 255, 255, .4);--hb-color-card: rgba(255, 255, 255, .97);--hb-color-avatar-bg: rgba(99, 102, 241, .15);--hb-color-avatar-text: #4338ca;--hb-color-dropdown-hover: rgba(99, 102, 241, .08);--hb-color-border-soft: rgba(99, 102, 241, .25);--hb-shadow-card: 0 16px 35px -25px rgba(15, 23, 42, .45);--hb-shadow-navbar: 0 18px 40px -30px rgba(15, 23, 42, .65);--hb-shadow-dropdown: 0 18px 35px -22px rgba(15, 23, 42, .4);--hb-shadow-notification: 0 10px 35px rgba(15, 23, 42, .15);--hb-background-gradient: radial-gradient( circle at top, #f5f5ff, #eef2f7 35%, #d9e2ec );--hb-color-alert-bg: rgba(15, 23, 42, .04);--hb-color-alert-text: var(--hb-color-text-primary);--hb-color-alert-success-bg: rgba(34, 197, 94, .12);--hb-color-alert-success-text: var(--hb-color-success);--hb-color-alert-error-bg: rgba(244, 63, 94, .12);--hb-color-alert-error-text: var(--hb-color-danger);--hb-color-alert-info-bg: rgba(59, 130, 246, .12);--hb-color-alert-info-text: var(--hb-color-info);--hb-color-alert-warning-bg: rgba(251, 191, 36, .15);--hb-color-alert-warning-text: var(--hb-color-warning);--hb-color-loader-text: var(--hb-color-text-primary);--hb-color-loader-ring: rgba(99, 102, 241, .25);--hb-color-loader-ring-active: var(--hb-color-indigo);--hb-color-skeleton-start: rgba(148, 163, 184, .15);--hb-color-skeleton-mid: rgba(148, 163, 184, .3)}:root[data-theme=dark]{color-scheme:dark;--hb-color-text-primary: #e2e8f0;--hb-color-text-secondary: #cbd5f5;--hb-color-text-strong: #f8fafc;--hb-color-text-soft: #dbeafe;--hb-color-text-muted: #cbd5f5;--hb-color-text-muted-strong: #cbd5f5;--hb-color-text-tertiary: #c7d2fe;--hb-color-text-quaternary: #cbd5f5;--hb-color-text-dim: #94a3b8;--hb-color-text-subtle: #8fa6cc;--hb-color-brand-primary: #c7d2fe;--hb-color-brand-accent: #a5b4fc;--hb-color-brand-soft: #818cf8;--hb-color-indigo: #818cf8;--hb-color-purple: #a855f7;--hb-color-purple-light: #c084fc;--hb-color-sky: #38bdf8;--hb-color-success: #34d399;--hb-color-danger: #f87171;--hb-color-danger-strong: #fb7185;--hb-color-danger-accent: #fb7185;--hb-color-warning: #fbbf24;--hb-color-info: #60a5fa;--hb-color-warm: #fb923c;--hb-color-amber: #fcd34d;--hb-color-pink: #f472b6;--hb-color-pink-light: #f9a8d4;--hb-color-red-accent: #f87171;--hb-color-deep: #0b1120;--hb-color-surface-base: #0f172a;--hb-color-surface-card: rgba(15, 23, 42, .92);--hb-color-surface-overlay: rgba(15, 23, 42, .85);--hb-color-surface-overlay-strong: rgba(15, 23, 42, .88);--hb-color-surface-elevated: rgba(30, 41, 59, .9);--hb-color-surface-soft: rgba(30, 41, 59, .78);--hb-color-surface-muted: rgba(30, 41, 59, .85);--hb-color-surface-muted-soft: rgba(30, 41, 59, .75);--hb-color-surface-highlight: rgba(30, 41, 59, .78);--hb-color-surface-highlight-strong: rgba(15, 23, 42, .88);--hb-color-surface-glow-faint: rgba(148, 163, 184, .12);--hb-color-surface-glow-soft: rgba(148, 163, 184, .2);--hb-color-surface-outline: rgba(255, 255, 255, .08);--hb-color-card: rgba(15, 23, 42, .95);--hb-color-avatar-bg: rgba(99, 102, 241, .3);--hb-color-avatar-text: #e0e7ff;--hb-color-dropdown-hover: rgba(99, 102, 241, .25);--hb-color-border-soft: rgba(129, 140, 248, .35);--hb-shadow-card: 0 16px 38px -24px rgba(7, 89, 133, .7);--hb-shadow-navbar: 0 18px 45px -28px rgba(8, 47, 73, .8);--hb-shadow-dropdown: 0 18px 40px -28px rgba(8, 47, 73, .7);--hb-shadow-notification: 0 12px 35px rgba(8, 47, 73, .6);--hb-background-gradient: radial-gradient( circle at top, #0f172a, #1e293b 45%, #0b1120 90% );--hb-color-alert-bg: rgba(15, 23, 42, .7);--hb-color-alert-text: var(--hb-color-text-primary);--hb-color-alert-success-bg: rgba(34, 197, 94, .25);--hb-color-alert-success-text: var(--hb-color-success);--hb-color-alert-error-bg: rgba(244, 63, 94, .25);--hb-color-alert-error-text: var(--hb-color-danger);--hb-color-alert-info-bg: rgba(59, 130, 246, .25);--hb-color-alert-info-text: var(--hb-color-info);--hb-color-alert-warning-bg: rgba(251, 191, 36, .25);--hb-color-alert-warning-text: var(--hb-color-warning);--hb-color-loader-text: var(--hb-color-text-primary);--hb-color-loader-ring: rgba(129, 140, 248, .35);--hb-color-loader-ring-active: var(--hb-color-purple-light);--hb-color-skeleton-start: rgba(148, 163, 184, .12);--hb-color-skeleton-mid: rgba(148, 163, 184, .24)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:var(--hb-background-gradient);color:var(--hb-color-text-primary);transition:background .4s ease,color .3s ease}.hb-skeleton{display:block;width:var(--hb-skeleton-width, 100%);height:var(--hb-skeleton-height, 1rem);border-radius:var(--hb-skeleton-radius, .75rem);background:linear-gradient(90deg,var(--hb-color-skeleton-start),var(--hb-color-skeleton-mid),var(--hb-color-skeleton-start));background-size:200% 100%;animation:hb-skeleton-pulse 1.4s ease-in-out infinite}.hb-skeleton.hb-skeleton--inline{display:inline-block}@keyframes hb-skeleton-pulse{0%{background-position:200% 0}to{background-position:-200% 0}}.hb-loader{--hb-loader-size: 1.5rem;display:inline-flex;align-items:center;gap:.6rem;color:var(--hb-color-loader-text);font-weight:600}.hb-loader--sm{--hb-loader-size: 1rem;font-size:.85rem}.hb-loader--md{--hb-loader-size: 1.5rem;font-size:1rem}.hb-loader--lg{--hb-loader-size: 2rem;font-size:1.125rem}.hb-loader__spinner{width:var(--hb-loader-size);height:var(--hb-loader-size);border-radius:50%;border:3px solid var(--hb-color-loader-ring);border-top-color:var(--hb-color-loader-ring-active);animation:hb-loader-spin .85s linear infinite}.hb-loader--inverted{color:#fff}.hb-loader--inverted .hb-loader__spinner{border-color:#ffffff59;border-top-color:#fff}.hb-loader__label{line-height:1.2}@keyframes hb-loader-spin{to{transform:rotate(360deg)}}.alert{display:flex;align-items:flex-start;gap:.75rem;padding:.85rem 1rem;border-radius:.9rem;font-size:.95rem;line-height:1.4;background:var(--hb-color-alert-bg);color:var(--hb-color-alert-text);width:100%;box-sizing:border-box}.alert__icon{display:inline-flex;width:1.25rem;height:1.25rem;flex-shrink:0;margin-top:.1rem}.alert__icon svg{width:100%;height:100%}.alert__content{display:flex;flex-direction:column;gap:.2rem}.alert__title{font-weight:700;color:inherit}.alert__message{display:block}.alert--success{background:var(--hb-color-alert-success-bg);color:var(--hb-color-alert-success-text)}.alert--error{background:var(--hb-color-alert-error-bg);color:var(--hb-color-alert-error-text)}.alert--info{background:var(--hb-color-alert-info-bg);color:var(--hb-color-alert-info-text)}.alert--warning{background:var(--hb-color-alert-warning-bg);color:var(--hb-color-alert-warning-text)}.notification-center{position:fixed;top:1.5rem;right:max(1rem,calc((100vw - min(960px,100vw))/2 + 1.5rem));display:flex;flex-direction:column;gap:.75rem;z-index:95;min-width:260px;max-width:min(320px,calc(100% - 3rem));pointer-events:none;align-items:flex-end}.notification-center__item{animation:notification-enter .25s ease forwards;pointer-events:auto;box-shadow:var(--hb-shadow-notification);border-radius:1rem;overflow:hidden;width:100%}.notification-center__item .alert{border-radius:1rem}@keyframes notification-enter{0%{opacity:0;transform:translateY(-8px) translate(12px)}to{opacity:1;transform:translateY(0) translate(0)}}.health-flow{display:flex;flex-direction:column;gap:1.5rem;text-align:center;color:var(--hb-color-text-primary)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.health-flow__header h1{margin-bottom:.5rem;font-size:clamp(1.6rem,3vw,2.4rem)}.health-flow__header p{margin:0;color:var(--hb-color-text-secondary)}.health-flow .card{position:relative;display:flex;flex-direction:column;gap:1.5rem;align-items:center;padding:2.5rem 1.5rem;border-radius:1.5rem;background:var(--hb-color-surface-card);box-shadow:var(--hb-shadow-card);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.health-flow .auth-section{display:flex;flex-direction:column;gap:1rem;align-items:center;width:100%}.health-flow .auth-section--authenticated{gap:1.25rem}.health-flow .auth-section>*{width:min(720px,100%)}.health-flow .auth-section__status{width:100%}.global-navbar{align-self:stretch;position:sticky;top:0;z-index:90;padding:.75rem 1.5rem;border-radius:1.5rem;background:var(--hb-color-surface-overlay);box-shadow:var(--hb-shadow-navbar);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);text-align:left}.global-navbar__inner{display:flex;align-items:center;justify-content:space-between;gap:.75rem;max-width:min(960px,100%);margin:0 auto;width:100%;position:relative}.global-navbar__brand{display:flex;align-items:center;justify-content:center;gap:.6rem;font-weight:700;color:var(--hb-color-brand-primary);flex:1;text-align:center}.global-navbar__logo{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,var(--hb-color-indigo),var(--hb-color-purple-light));display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:1rem;font-weight:700}.global-navbar__toggle{display:inline-flex;flex-direction:column;gap:5px;width:42px;height:42px;border-radius:50%;border:1px solid var(--hb-color-border-soft);background:var(--hb-color-surface-base);cursor:pointer;align-items:center;justify-content:center;transition:border-color .2s ease,box-shadow .2s ease;position:absolute;left:1rem;opacity:0;pointer-events:none}.global-navbar__toggle span{width:22px;height:2px;background:var(--hb-color-brand-primary);border-radius:999px;transition:transform .2s ease,opacity .2s ease}.global-navbar__toggle.is-active span:nth-child(1){transform:translateY(7px) rotate(45deg)}.global-navbar__toggle.is-active span:nth-child(2){opacity:0}.global-navbar__toggle.is-active span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}.global-navbar__content{display:flex;align-items:center;gap:1.25rem}.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;border:1px solid var(--hb-color-border-soft);background:var(--hb-color-surface-base);color:var(--hb-color-brand-primary);font-weight:600;cursor:pointer;transition:background .2s ease,color .2s ease,box-shadow .2s ease}.theme-toggle:hover{box-shadow:0 10px 25px -18px var(--hb-color-indigo)}.theme-toggle.is-dark{color:var(--hb-color-brand-accent);background:var(--hb-color-surface-elevated)}.theme-toggle__icon{font-size:1.2rem;line-height:1}.theme-toggle:focus-visible,.profile-menu__button:focus-visible{outline:2px solid var(--hb-color-indigo);outline-offset:2px}.profile-menu{position:relative}.profile-menu__label{font-weight:600;color:var(--hb-color-brand-primary)}.profile-menu__button{display:inline-flex;align-items:center;gap:.5rem;border:1px solid var(--hb-color-border-soft);padding:.4rem .9rem;border-radius:999px;background:var(--hb-color-surface-base);cursor:pointer}.profile-menu__avatar{width:32px;height:32px;border-radius:50%;background:var(--hb-color-avatar-bg);display:inline-flex;align-items:center;justify-content:center;font-weight:700;color:var(--hb-color-brand-accent)}.profile-menu__dropdown{position:absolute;right:0;top:calc(100% + .5rem);list-style:none;margin:0;padding:.5rem;border-radius:.75rem;background:var(--hb-color-surface-base);box-shadow:var(--hb-shadow-dropdown);min-width:200px;display:none;z-index:10}.profile-menu.is-open .profile-menu__dropdown{display:block}.profile-menu__dropdown button{width:100%;border:none;background:transparent;padding:.65rem .75rem;text-align:left;font-weight:600;border-radius:.6rem;cursor:pointer}.profile-menu__dropdown button:hover:not(:disabled){background:var(--hb-color-dropdown-hover)}.profile-menu__dropdown button:disabled{opacity:.45;cursor:not-allowed}.health-flow .auth-card{align-items:stretch;text-align:left}.health-flow .auth-card h2{margin:0;text-align:left}.health-flow .auth-card .status{text-align:left}.health-flow .auth-card--actions{gap:1.25rem}.health-flow .auth-card__header{display:flex;flex-direction:column;gap:.35rem}.health-flow .auth-card__header h2{margin:0}.health-flow .auth-card__header p{margin:0;color:var(--hb-color-text-secondary)}.health-flow .auth-actions-bar{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:flex-start;width:100%}.health-flow .auth-actions-bar__button{flex:1 1 220px;min-width:180px}.health-flow .auth-actions-bar__button.is-active{color:#fff;border-color:transparent;background:linear-gradient(90deg,var(--hb-color-indigo),var(--hb-color-purple-light));box-shadow:0 15px 32px -24px #6366f1d9}.health-flow .auth-actions-bar__button--logout{border-color:#f43f5e73;color:var(--hb-color-danger-strong)}.health-flow .auth-actions-bar__button--logout:hover:not(:disabled){background:#f43f5e14;box-shadow:0 10px 22px -18px #f43f5e99}.health-flow .auth-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem;margin-top:.5rem;width:100%}.health-flow .auth-tab{border:none;border-radius:.9rem;padding:.75rem 1rem;font-weight:600;color:var(--hb-color-brand-soft);background:#6366f11f;cursor:pointer;transition:background .2s ease,color .2s ease,transform .2s ease}.health-flow .auth-tab:hover:not(:disabled){transform:translateY(-1px);background:#6366f12e}.health-flow .auth-tab.is-active{background:linear-gradient(90deg,var(--hb-color-indigo),var(--hb-color-purple-light));color:#fff;box-shadow:0 12px 24px -18px #6366f1bf}.health-flow .auth-tab:disabled{opacity:.6;cursor:not-allowed;transform:none}.health-flow .auth-skeleton{width:100%;display:flex;flex-direction:column;gap:.75rem;margin-top:1rem}.health-flow .file-input{display:inline-flex;align-items:center;gap:.6rem;padding:.9rem 1.8rem;font-weight:600;border-radius:999px;background:linear-gradient(90deg,var(--hb-color-indigo),var(--hb-color-purple-light));color:#fff;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.health-flow .file-input.is-disabled{opacity:.55;cursor:not-allowed}.health-flow .file-input:hover{transform:translateY(-2px);box-shadow:0 12px 20px -15px #6366f1cc}.health-flow .file-input input{display:none}.health-flow .preview{position:relative;width:min(320px,80vw);border-radius:1.2rem;overflow:hidden;box-shadow:0 14px 30px -20px #0f172a73;cursor:zoom-in}.health-flow .preview img{width:100%;height:auto;display:block;object-fit:cover;cursor:inherit}.health-flow .primary-button{padding:.9rem 2.5rem;border:none;border-radius:999px;font-weight:600;color:#fff;background:linear-gradient(90deg,var(--hb-color-sky),var(--hb-color-indigo));cursor:pointer;transition:opacity .2s ease,transform .2s ease}.health-flow .primary-button:disabled{opacity:.55;cursor:not-allowed;transform:none}.health-flow .primary-button:not(:disabled):hover{transform:translateY(-2px)}.health-flow .status{margin:0;font-size:.95rem}.health-flow .status.error{color:var(--hb-color-danger-accent);font-weight:600}.health-flow .result{display:flex;flex-direction:column;gap:.5rem;background:#6366f114;padding:1.5rem;border-radius:1.2rem;text-align:left;width:min(380px,85vw)}.health-flow .result .calories{margin:0;font-size:1.6rem;font-weight:700;color:var(--hb-color-brand-accent)}.health-flow .result .description{margin:0;color:var(--hb-color-text-strong);font-size:.95rem;line-height:1.4}.health-flow .wizard{display:flex;flex-direction:column;gap:1.75rem;width:100%;align-items:center}.health-flow .wizard-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;width:min(640px,100%)}.health-flow .wizard-step{position:relative;display:flex;align-items:center;gap:.85rem;border:none;border-radius:1rem;padding:.85rem 1.1rem;background:var(--hb-color-surface-soft);box-shadow:0 14px 28px -24px #0f172aa6;color:var(--hb-color-brand-accent);font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease}.health-flow .wizard-step__index{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;font-size:.9rem;background:#6366f11f;color:inherit}.health-flow .wizard-step__title{font-size:.95rem;line-height:1.1}.health-flow .wizard-step:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 18px 32px -24px #4f46e573}.health-flow .wizard-step:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}.health-flow .wizard-step.active{background:linear-gradient(90deg,var(--hb-color-indigo),var(--hb-color-purple-light));color:#fff;box-shadow:0 18px 36px -22px #4f46e58c}.health-flow .wizard-description{margin:0;color:var(--hb-color-text-secondary);font-size:.95rem;width:min(520px,100%);text-align:left}.health-flow .form-section{width:min(720px,100%);padding:1.75rem 1.5rem;border-radius:1.5rem;background:var(--hb-color-surface-elevated);box-shadow:0 16px 40px -28px #0f172a66;display:flex;flex-direction:column;gap:1.25rem}.health-flow .form-section h2{margin:0;font-size:1.25rem;color:var(--hb-color-brand-primary)}.health-flow .form-grid{width:min(520px,100%);display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem 1.4rem;text-align:left}.health-flow .field{display:flex;flex-direction:column;gap:.4rem;font-weight:600;color:var(--hb-color-text-strong);min-width:0}.health-flow .field span{font-size:.9rem}.health-flow .field input,.health-flow .field select,.health-flow .field textarea{border:1px solid rgba(99,102,241,.25);border-radius:.75rem;padding:.8rem 1rem;font-size:.95rem;font-weight:500;color:var(--hb-color-text-primary);background:var(--hb-color-surface-elevated);transition:border .2s ease,box-shadow .2s ease}.health-flow .field input:focus,.health-flow .field select:focus,.health-flow .field textarea:focus{outline:none;border-color:var(--hb-color-indigo);box-shadow:0 0 0 3px #6366f12e}.health-flow .password-input{display:flex;align-items:center;gap:.6rem}.health-flow .password-input input{flex:1}.health-flow .password-input .secondary-button{padding:.6rem 1.2rem;border-radius:.75rem;white-space:nowrap;min-width:96px}.health-flow .field textarea{resize:vertical;min-height:110px}.health-flow .field-helper{font-weight:500;font-size:.8rem;color:var(--hb-color-text-secondary);margin-top:-.25rem}.health-flow .field-error{color:var(--hb-color-danger);font-size:.8rem;font-weight:500}.health-flow .wizard-actions{width:min(520px,100%);display:flex;justify-content:space-between;gap:.75rem}.health-flow .wizard-actions .primary-button,.health-flow .wizard-actions .secondary-button{flex:1}.health-flow .flow-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem;margin-top:1rem}.health-flow .flow-actions.top{width:100%;justify-content:flex-end;margin-bottom:-.5rem}.health-flow .analysis-layout{display:flex;flex-wrap:wrap;gap:1.5rem;width:100%;justify-content:center;align-items:flex-start}.health-flow .analysis-main{flex:1 1 360px;display:flex;flex-direction:column;gap:1.25rem;align-items:center}.health-flow .analysis-main__actions{align-self:stretch;display:flex;justify-content:flex-end}.health-flow .analysis-sidebar{flex:0 0 280px;display:flex;flex-direction:column;gap:1rem;padding:1.5rem;border-radius:1.25rem;background:#6366f114;box-shadow:0 16px 34px -28px #0f172a73;text-align:left}@media(min-width:768px){.health-flow .macro-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.summary-fab{display:none}}@media(min-width:1024px){.health-flow .analysis-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);align-items:start;justify-content:space-between}.health-flow .analysis-main{align-items:stretch;max-width:720px;width:100%;margin:0 auto}.health-flow .analysis-main>*:not(.flow-actions.top){width:100%}.health-flow .analysis-main .file-input,.health-flow .analysis-main .primary-button,.health-flow .analysis-main .preview{width:auto;align-self:flex-start}.health-flow .form-grid,.health-flow .meal-analysis,.health-flow .analysis-skeleton{width:100%}.health-flow .analysis-sidebar{position:sticky;top:1.5rem;max-height:calc(100vh - 3rem);overflow-y:auto}}.health-flow .analysis-sidebar h3{margin:0;color:var(--hb-color-brand-primary);font-size:1.05rem}.health-flow .analysis-history__empty{margin:0;color:var(--hb-color-text-secondary)}.health-flow .analysis-history__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1rem}.health-flow .analysis-history__item{display:flex;flex-direction:column;gap:.4rem;padding:1rem 1.1rem;border-radius:1rem;background:var(--hb-color-surface-elevated);box-shadow:0 12px 26px -24px #4f46e566}.health-flow .analysis-history__header{display:flex;justify-content:space-between;gap:.75rem;font-weight:600;color:var(--hb-color-text-primary)}.health-flow .analysis-history__meal{font-size:.95rem}.health-flow .analysis-history__calories{font-size:.85rem;color:var(--hb-color-brand-accent)}.health-flow .analysis-history__date{margin:0;font-size:.8rem;color:var(--hb-color-text-quaternary)}.health-flow .analysis-history__description{margin:0;font-size:.85rem;color:var(--hb-color-text-soft)}.health-flow .analysis-history__macros{display:flex;flex-wrap:wrap;gap:.5rem}.health-flow .analysis-history__macro{padding:.2rem .6rem;border-radius:999px;font-size:.75rem;font-weight:600;background:#6366f11f;color:var(--hb-color-brand-accent)}.health-flow .meal-analysis{width:min(540px,100%);display:flex;flex-direction:column;gap:1rem;padding:1.6rem;border-radius:1.25rem;background:var(--hb-color-surface-overlay);box-shadow:0 16px 35px -30px #4f46e573;text-align:left}.health-flow .meal-analysis__calories{margin:0;font-size:1.8rem;font-weight:700;color:var(--hb-color-brand-accent)}.health-flow .meal-analysis__summary{display:flex;flex-direction:column;gap:.25rem;color:var(--hb-color-text-strong)}.health-flow .meal-analysis__summary p{margin:0;font-size:.95rem}.health-flow .macro-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem}.health-flow .macro-card{position:relative;display:flex;flex-direction:column;gap:.75rem;padding:1.1rem 1.25rem;border-radius:1.15rem;background:#f1f5f9a6;box-shadow:0 12px 28px -26px #4f46e599}.health-flow .macro-card__header{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem}.health-flow .macro-card__label{font-weight:600;color:var(--hb-color-text-primary)}.health-flow .macro-card__value{font-weight:700;color:var(--hb-color-brand-primary)}.health-flow .macro-card__bar{width:100%;height:8px;border-radius:999px;background:#6366f126;overflow:hidden}.health-flow .macro-card__bar span{display:block;height:100%;border-radius:inherit;transition:width .35s ease}.health-flow .macro-card--carbs .macro-card__bar span{background:linear-gradient(90deg,var(--hb-color-warm),var(--hb-color-amber))}.health-flow .macro-card--protein .macro-card__bar span{background:linear-gradient(90deg,var(--hb-color-sky),var(--hb-color-indigo))}.health-flow .macro-card--fat .macro-card__bar span{background:linear-gradient(90deg,var(--hb-color-pink),var(--hb-color-pink-light))}.health-flow .ingredient-chips{display:flex;flex-wrap:wrap;gap:.5rem}.health-flow .ingredient-chip{display:inline-flex;flex-direction:column;gap:.15rem;padding:.45rem .7rem;border-radius:.85rem;background:#4f46e51a;color:var(--hb-color-brand-primary);font-size:.8rem;font-weight:600}.health-flow .ingredient-chip__details{font-size:.7rem;font-weight:500;color:var(--hb-color-text-soft)}.health-flow .meal-analysis__daily{margin-top:.5rem;padding:.9rem 1rem;border-radius:1rem;background:#6366f114;display:flex;flex-direction:column;gap:.5rem;color:var(--hb-color-text-strong)}.health-flow .meal-analysis__daily-title{margin:0;font-weight:700;color:var(--hb-color-brand-primary)}.health-flow .meal-analysis__daily-stats{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:.5rem .75rem;font-size:.82rem}.health-flow .meal-analysis__daily-stats li{padding:.35rem .7rem;border-radius:.75rem;background:var(--hb-color-surface-soft);color:var(--hb-color-brand-accent);font-weight:600;box-shadow:0 10px 22px -24px #4f46e5cc}.health-flow .meal-analysis__daily-status{margin:0;font-size:.9rem;font-weight:600;color:var(--hb-color-text-primary)}.health-flow .meal-analysis__daily-status--positive{color:var(--hb-color-success)}.health-flow .meal-analysis__daily-status--negative{color:var(--hb-color-danger)}.health-flow .meal-analysis__daily-status--neutral{color:var(--hb-color-brand-accent)}.health-flow .analysis-skeleton{width:min(540px,100%);display:flex;flex-direction:column;gap:1rem;padding:1.6rem;border-radius:1.25rem;background:var(--hb-color-surface-elevated)}.health-flow .analysis-skeleton .macro-grid{width:100%}.health-flow .analysis-skeleton__title{max-width:240px}.health-flow .analysis-skeleton__macro{height:8.5rem}.health-flow .analysis-skeleton__line{height:1rem}.health-flow .analysis-skeleton__line--short{width:55%}.health-flow .preview__loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;background:#0f172a66;color:#fff;font-weight:600}.health-flow .preview-overlay{position:fixed;inset:0;background:#0f172abf;display:flex;align-items:center;justify-content:center;padding:1.5rem;z-index:1000}.health-flow .preview-overlay__content{position:relative;max-width:min(90vw,720px);max-height:90vh}.health-flow .preview-overlay__content img{width:100%;height:100%;object-fit:contain;border-radius:1.25rem;box-shadow:0 24px 45px -30px #0f172ab3}.health-flow .preview-overlay__close{position:absolute;top:.75rem;right:.75rem;width:38px;height:38px;border-radius:50%;border:none;background:#0f172ab3;color:#fff;font-size:1.5rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}.health-flow .preview-overlay__close:hover{background:#6366f1d9}@media(max-width:768px){.global-navbar{padding:.65rem 1rem;border-radius:1.25rem}.global-navbar__inner{gap:.75rem}.global-navbar__content{gap:.5rem}.global-navbar__toggle{width:40px;height:40px}.profile-menu__button{padding:.35rem;border-radius:50%;width:42px;height:42px;justify-content:center}.profile-menu__label{display:none}.profile-menu__dropdown{left:auto;right:0;min-width:190px;width:max-content;top:calc(100% + .4rem)}.summary-subheader__filters{width:100%;flex-direction:column;align-items:stretch}.summary-subheader__actions{width:100%;flex-direction:column}.summary-subheader__cta{width:100%}.health-flow .summary-section .summary-card{padding-left:0;padding-right:0}.summary-fab{right:1rem;bottom:1rem}.health-flow .analysis-sidebar{flex:1 1 100%}}@media(max-width:480px){.health-flow{width:100%;max-width:100%}.health-flow .card{width:100%;max-width:100%;align-items:stretch;padding:2rem 1rem}.health-flow .form-grid{width:100%;grid-template-columns:1fr;gap:.9rem}.health-flow .wizard{gap:1.25rem;align-items:stretch}.health-flow .wizard-steps{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.health-flow .wizard-step{padding:.75rem .85rem}.health-flow .wizard-description,.health-flow .wizard-actions,.health-flow .form-section{width:100%}.health-flow .wizard-actions{flex-direction:column}.health-flow .password-input{flex-direction:row;align-items:center;gap:.6rem}.health-flow .password-input .secondary-button{width:auto;padding:.65rem 1.1rem;font-size:.85rem}.health-flow .primary-button,.health-flow .secondary-button{width:100%;justify-content:center}.health-flow .flow-actions{flex-direction:column;gap:.6rem}}@media(min-width:1280px){.health-flow .form-grid{width:min(840px,100%);grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:1.2rem 2rem}.health-flow .wizard-steps{width:min(720px,100%)}.health-flow .wizard-description,.health-flow .wizard-actions{width:min(600px,100%)}.health-flow .field input,.health-flow .field select,.health-flow .field textarea{padding:.9rem 1.2rem;font-size:1.02rem}.health-flow .password-input .secondary-button{padding:.75rem 1.5rem;font-size:.95rem}}.health-flow .secondary-button{padding:.75rem 1.8rem;border-radius:999px;font-weight:600;border:1px solid rgba(99,102,241,.35);background:var(--hb-color-surface-soft);color:var(--hb-color-brand-accent);cursor:pointer;transition:background .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease}.health-flow .secondary-button:hover{transform:translateY(-1px);background:var(--hb-color-surface-overlay);box-shadow:0 10px 20px -18px #4f46e5cc}.health-flow .secondary-button:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:none}.health-flow .summary-section{background:linear-gradient(145deg,var(--hb-color-surface-card),var(--hb-color-surface-highlight));border-radius:1.75rem;padding:clamp(1.5rem,4vw,2.5rem);box-shadow:0 20px 45px -28px #0f172a73;text-align:left;display:flex;flex-direction:column;gap:1.75rem;position:relative}.summary-subheader{position:relative;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-radius:1.25rem;background:var(--hb-color-surface-overlay);border:1px solid rgba(99,102,241,.12);box-shadow:0 16px 45px -30px #0f172a80}.summary-subheader__title{flex:1 1 220px}.summary-subheader__title h2{margin:0}.summary-subheader__title p{margin:.15rem 0 0;color:var(--hb-color-text-secondary);font-size:.9rem}.summary-subheader__filters{display:flex;flex:1 1 260px;align-items:center;gap:.75rem;flex-wrap:wrap}.date-chips{display:flex;gap:.45rem;overflow-x:auto;padding-bottom:.25rem}.date-chip{border:1px solid rgba(99,102,241,.35);border-radius:999px;padding:.35rem .9rem;background:var(--hb-color-surface-soft);font-weight:600;color:var(--hb-color-brand-accent);cursor:pointer}.date-chip.is-active{background:linear-gradient(90deg,var(--hb-color-indigo),var(--hb-color-purple-light));color:#fff;border-color:transparent;box-shadow:0 12px 24px -18px #6366f1bf}.summary-subheader__actions{display:flex;align-items:center;gap:.75rem}.summary-subheader__cta{min-width:190px}.summary-fab{position:fixed;right:1.25rem;bottom:1.25rem;z-index:95;padding:.85rem 1.6rem;box-shadow:0 20px 35px -18px #6366f18c}.health-flow .summary-card{display:flex;flex-direction:column;gap:2rem;background:var(--hb-color-surface-overlay);border-radius:1.6rem;padding:clamp(1.25rem,3vw,2rem);box-shadow:0 20px 45px -32px #4f46e599}.health-flow .summary-card--analysis,.health-flow .summary-card--trend{gap:1.5rem}.health-flow .summary-card__body{display:grid;gap:clamp(1.5rem,3vw,2.5rem);grid-template-columns:minmax(0,1fr)}.health-flow .summary-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:1.9rem 1.5rem;border-radius:1.35rem;background:#6366f11a;color:var(--hb-color-text-strong);text-align:center;box-shadow:inset 0 0 0 1px #6366f114}.health-flow .summary-empty--inline{align-items:center;padding:1.25rem;background:#6366f10d;box-shadow:none}.health-flow .summary-empty__emoji{font-size:2.1rem}.health-flow .summary-balance{display:flex;flex-direction:column;gap:1.75rem;background:linear-gradient(135deg,#6366f11f,#0ea5e914);border-radius:1.4rem;padding:clamp(1.25rem,3vw,1.75rem);box-shadow:inset 0 0 0 1px #6366f114}.health-flow .summary-balance__header{display:flex;justify-content:space-between;align-items:flex-start;gap:1.25rem;flex-wrap:wrap}.health-flow .summary-balance__meta{display:flex;flex-direction:column;gap:.2rem}.health-flow .summary-balance__meta strong{font-size:1.1rem;color:var(--hb-color-brand-primary)}.health-flow .summary-balance__status{margin:0;font-size:.95rem;font-weight:600;max-width:320px}.health-flow .summary-balance__status--positive{color:var(--hb-color-success)}.health-flow .summary-balance__status--neutral{color:var(--hb-color-brand-soft)}.health-flow .summary-balance__status--negative{color:var(--hb-color-danger)}.health-flow .summary-balance__layout{display:grid;gap:clamp(1.25rem,3vw,2rem)}@media(min-width:768px){.health-flow .summary-balance__layout{grid-template-columns:minmax(0,280px) minmax(0,1fr);align-items:center}}.health-flow .summary-balance__gauge-card{display:flex;flex-direction:column;gap:1rem;align-items:center;justify-content:center;padding:1.25rem;border-radius:1.2rem;background:var(--hb-color-surface-elevated);box-shadow:0 18px 36px -30px #4f46e5cc}.health-flow .summary-balance-chart{display:flex;align-items:center;justify-content:center;width:100%}.health-flow .summary-balance-gauge{width:clamp(120px,25vw,160px);height:clamp(120px,25vw,160px);border-radius:50%;display:flex;align-items:center;justify-content:center;position:relative;box-shadow:0 12px 30px -22px #4f46e5b3}.health-flow .summary-balance-gauge__inner{width:68%;height:68%;border-radius:50%;background:var(--hb-color-surface-base);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;box-shadow:inset 0 0 0 1px #94a3b833}.health-flow .summary-balance-gauge__inner strong{font-size:1.4rem;font-weight:700;color:var(--hb-color-brand-accent)}.health-flow .summary-balance-gauge__inner span{font-size:.8rem;font-weight:600;color:var(--hb-color-text-secondary);text-transform:uppercase;letter-spacing:.04em}.health-flow .summary-balance__legend{display:flex;gap:1.5rem;font-size:.85rem;color:var(--hb-color-text-soft)}.health-flow .summary-dot{display:inline-block;width:10px;height:10px;border-radius:999px;margin-right:.4rem}.health-flow .summary-dot--consumed{background:linear-gradient(90deg,var(--hb-color-indigo),var(--hb-color-sky))}.health-flow .summary-dot--recommended{background:#6366f159}.health-flow .summary-date-filter{display:flex;flex-direction:column;gap:.4rem}.health-flow .summary-date-filter label{font-weight:600;color:var(--hb-color-brand-accent);font-size:.9rem}.health-flow .summary-date-filter input{border-radius:.85rem;border:1px solid rgba(99,102,241,.28);padding:.65rem .85rem;font-size:.95rem;font-family:inherit;background:var(--hb-color-surface-overlay);color:var(--hb-color-text-primary);transition:border .2s ease,box-shadow .2s ease}.health-flow .summary-date-filter input:focus{outline:none;border-color:#6366f18c;box-shadow:0 0 0 3px #6366f138}.health-flow .summary-label{font-size:.85rem;color:var(--hb-color-text-secondary);display:block;margin-bottom:.35rem}.health-flow .summary-balance__stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:clamp(1rem,2vw,1.5rem)}.health-flow .summary-balance__stat-card{background:var(--hb-color-surface-overlay-strong);border-radius:1rem;padding:1rem;box-shadow:0 14px 30px -26px #0f172a8c;display:flex;flex-direction:column;gap:.35rem;border:1px solid var(--hb-color-surface-outline)}.health-flow .summary-balance__value{font-size:1.1rem;color:var(--hb-color-text-strong);font-weight:700}.health-flow .summary-meals{display:flex;flex-direction:column;gap:1.5rem;background:linear-gradient(160deg,var(--hb-color-surface-overlay),var(--hb-color-surface-soft));border-radius:1.4rem;padding:clamp(1.25rem,3vw,1.75rem);box-shadow:inset 0 0 0 1px #94a3b82e}.health-flow .summary-meals__header{display:flex;flex-direction:column;gap:.45rem}.health-flow .summary-meals__hint{margin:0;font-size:.9rem;color:var(--hb-color-text-dim)}.health-flow .summary-meals__list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1rem}.health-flow .summary-meals__status{padding:.65rem .85rem;border-radius:.9rem;font-size:.9rem;font-weight:600;background:var(--hb-color-alert-info-bg);color:var(--hb-color-alert-info-text)}.health-flow .summary-meals__status--success{background:var(--hb-color-alert-success-bg);color:var(--hb-color-alert-success-text)}.health-flow .summary-meals__status--error{background:var(--hb-color-alert-error-bg);color:var(--hb-color-alert-error-text)}.health-flow .summary-meal-card{position:relative;background:var(--hb-color-surface-highlight-strong);border-radius:1.2rem;padding:1.1rem 3.25rem 1.1rem 1.25rem;display:flex;flex-direction:column;gap:.75rem;box-shadow:0 16px 32px -30px #6366f1b3;border:1px solid rgba(99,102,241,.08)}.health-flow .summary-meal-card__header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.health-flow .summary-meal-card__titles{display:flex;flex-direction:column;gap:.25rem}.health-flow .summary-meal-card__title{font-size:1rem;font-weight:600;color:var(--hb-color-brand-primary)}.health-flow .summary-meal-card__time{font-size:.85rem;color:var(--hb-color-text-dim);display:inline-flex;align-items:center;gap:.35rem}.health-flow .summary-meal-card__calories{font-weight:700;color:var(--hb-color-text-primary);background:#6366f11f;border-radius:999px;padding:.4rem .75rem;font-size:.9rem;display:inline-flex;align-items:center;justify-content:center;min-width:90px}.health-flow .summary-meal-card__details{display:flex;flex-direction:column;gap:.6rem}.health-flow .summary-meal-card__macros{display:flex;flex-wrap:wrap;gap:.5rem;padding:0;margin:0;list-style:none}.health-flow .summary-meal-card__chip{padding:.35rem .6rem;border-radius:999px;background:#6366f129;color:var(--hb-color-brand-accent);font-size:.8rem;font-weight:600}.health-flow .summary-meal-card__note{margin:0;font-size:.9rem;color:var(--hb-color-text-muted);line-height:1.4}.health-flow .summary-meal-card__icon-button{border:none;background:#6366f11f;color:var(--hb-color-brand-primary);border-radius:999px;padding:.15rem .35rem;font-size:.85rem;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease}.health-flow .summary-meal-card__icon-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 18px -14px #6366f1cc}.health-flow .summary-meal-card__icon-button:disabled{opacity:.5;cursor:not-allowed}.health-flow .summary-meal-card__corner-delete{position:absolute;top:.65rem;right:.65rem;border:none;background:var(--hb-color-surface-base);border:1px solid rgba(248,113,113,.35);color:var(--hb-color-danger);width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;font-size:.9rem}.health-flow .summary-meal-card__corner-delete:hover:not(:disabled){transform:translateY(-2px) scale(1.05);box-shadow:0 12px 22px -18px #ef444480}.health-flow .summary-meal-card__corner-delete:disabled{opacity:.45;cursor:not-allowed}.health-flow .summary-meal-card__actions{display:flex;gap:.75rem;flex-wrap:wrap;padding:.75rem;border-radius:1rem;background:#6366f10f;border:1px solid rgba(99,102,241,.08)}.health-flow .summary-meal-card__action{border:none;border-radius:999px;padding:.35rem .85rem;background:var(--hb-color-surface-base);color:var(--hb-color-brand-primary);font-weight:600;display:inline-flex;align-items:center;gap:.35rem;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;box-shadow:0 8px 18px -14px #0f172ab3}.health-flow .summary-meal-card__action:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 12px 24px -18px #6366f1cc}.health-flow .summary-meal-card__action:disabled{opacity:.5;cursor:not-allowed}.health-flow .summary-meal-card__action--danger{background:linear-gradient(120deg,#f8717126,#ef444440);color:var(--hb-color-danger)}.health-flow .summary-meal-card__action--primary{background:linear-gradient(120deg,#0ea5e933,#3b82f64d);color:var(--hb-color-brand-accent)}.health-flow .summary-meal-card__action--ghost{background:transparent;border:1px dashed rgba(148,163,184,.4);color:var(--hb-color-text-secondary)}.health-flow .summary-meal-card__edit{margin-top:.85rem;padding:.85rem;border-radius:1rem;border:1px solid rgba(99,102,241,.25);background:linear-gradient(135deg,#6366f114,#0ea5e914);display:flex;flex-direction:column;gap:.6rem}.health-flow .summary-meal-card__edit-label{font-size:.85rem;font-weight:600;color:var(--hb-color-text-secondary)}.health-flow .summary-meal-card__edit input[type=datetime-local]{width:100%;border:1px solid var(--hb-color-border-soft);border-radius:.65rem;padding:.45rem .75rem;background:var(--hb-color-surface-base);color:var(--hb-color-text-primary);font-size:.95rem}.health-flow .summary-meal-card__edit input[type=datetime-local]:focus{outline:2px solid var(--hb-color-indigo);outline-offset:2px;border-color:transparent}.health-flow .summary-meal-card__edit-controls{display:flex;justify-content:flex-end;gap:.75rem;flex-wrap:wrap}.health-flow .summary-meal-card__feedback{margin:0;font-size:.85rem;font-weight:600}.health-flow .summary-meal-card__feedback--error{color:var(--hb-color-danger)}.health-flow .summary-meals__empty{align-items:flex-start;text-align:left}.summary-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1200;pointer-events:none}.summary-modal__backdrop{position:absolute;inset:0;background:#0a0f1ea6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);pointer-events:auto}.summary-modal__content{position:relative;z-index:1;pointer-events:auto;background:var(--hb-color-surface-card);border-radius:1.25rem;padding:1.5rem;width:min(420px,calc(100% - 2rem));box-shadow:0 25px 60px -30px #0f172ad9;border:1px solid rgba(99,102,241,.2);display:flex;flex-direction:column;gap:1rem;text-align:left}.summary-modal__content h4{margin:0;font-size:1.2rem;color:var(--hb-color-brand-primary)}.summary-modal__text{margin:0;color:var(--hb-color-text-primary);line-height:1.5}.summary-modal__actions{display:flex;justify-content:flex-end;gap:.75rem;flex-wrap:wrap}.health-flow .summary-trend{display:flex;flex-direction:column;gap:1rem;padding:clamp(1.25rem,3vw,1.75rem);border-radius:1.3rem;background:#6366f114;box-shadow:inset 0 0 0 1px #6366f114}.health-flow .summary-trend__header{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.health-flow .summary-trend__status{font-size:.85rem;color:var(--hb-color-indigo);font-weight:600}.health-flow .summary-trend__list{display:grid;gap:1rem}@media(min-width:640px){.health-flow .summary-trend__list{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}}.health-flow .summary-trend__item{display:flex;flex-direction:column;gap:.45rem;padding:.9rem 1rem;border-radius:1rem;background:var(--hb-color-surface-base);box-shadow:0 12px 30px -28px #4f46e5bf}.health-flow .summary-trend__label{font-weight:600;color:var(--hb-color-brand-accent);text-transform:capitalize}.health-flow .summary-trend__bar-track{position:relative;height:12px;border-radius:999px;background:#6366f11f;overflow:hidden}.health-flow .summary-trend__bar{position:absolute;top:0;left:0;height:100%}.health-flow .summary-trend__bar--recommended{background:#6366f140;z-index:1}.health-flow .summary-trend__bar--consumed{background:linear-gradient(90deg,var(--hb-color-indigo),var(--hb-color-sky));z-index:2}.health-flow .summary-trend__bar--overflow{background:linear-gradient(90deg,var(--hb-color-warm),var(--hb-color-red-accent));z-index:3}.health-flow .summary-trend__values{font-size:.8rem;color:var(--hb-color-text-secondary)}@media(max-width:640px){.health-flow .summary-balance__layout{grid-template-columns:none}}@media(max-width:540px){.health-flow .summary-meal-card{padding-right:2.5rem}.health-flow .summary-meal-card__corner-delete{top:.5rem;right:.5rem;width:30px;height:30px}}@media(max-width:480px){.global-navbar__logo{width:36px;height:36px;font-size:.95rem}.profile-menu__button{padding:.25rem;width:38px;height:38px}.profile-menu__dropdown button{font-size:.9rem}.global-navbar__toggle{width:36px;height:36px}.global-navbar__toggle span{width:18px}.health-flow .card{padding:1.5rem 1rem;border-radius:1.25rem}.health-flow .analysis-layout,.health-flow .analysis-main{gap:1rem}.health-flow .analysis-sidebar,.health-flow .meal-analysis,.health-flow .summary-balance,.health-flow .summary-meals,.health-flow .summary-trend{padding:1.1rem;border-radius:1rem}.health-flow .macro-grid{grid-template-columns:1fr}.health-flow .summary-balance__header{gap:.75rem}.health-flow .summary-balance__status{max-width:none}.health-flow .summary-balance-gauge{width:min(70vw,170px);height:min(70vw,170px)}.health-flow .summary-balance-gauge__inner{width:78%;height:78%;padding:.35rem 0}.health-flow .summary-balance-gauge__inner strong{font-size:1.2rem}.health-flow .summary-balance-gauge__inner span{font-size:.72rem;letter-spacing:.03em}.health-flow .summary-balance__legend{flex-direction:column;gap:.35rem;text-align:center}.health-flow .summary-balance__stats{grid-template-columns:1fr}.health-flow .summary-meal-card__header{flex-direction:column;align-items:flex-start}.health-flow .summary-meal-card__calories{align-self:flex-start}}.profile-summary-card{margin-top:1.5rem;padding:clamp(1.5rem,3vw,2rem);border-radius:1.5rem;background:linear-gradient(145deg,var(--hb-color-surface-muted),var(--hb-color-surface-base));box-shadow:0 25px 60px -35px #4f46e580;display:flex;flex-direction:column;gap:1.5rem;border:1px solid rgba(99,102,241,.08)}.profile-summary-card__header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.profile-summary-card__eyebrow{text-transform:uppercase;font-size:.75rem;letter-spacing:.08em;color:var(--hb-color-text-subtle);margin-bottom:.15rem}.profile-summary-card__badge{padding:.35rem .9rem;border-radius:999px;font-size:.85rem;font-weight:600;color:var(--hb-color-brand-accent);background:#6366f126}.profile-summary-card__stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem}.profile-summary-card__stat{padding:.9rem 1rem;border-radius:1rem;background:#6366f114;border:1px solid rgba(99,102,241,.05);display:flex;flex-direction:column;gap:.35rem}.profile-summary-card__stat span{font-size:.85rem;color:var(--hb-color-text-tertiary)}.profile-summary-card__stat strong{font-size:1.35rem;color:var(--hb-color-text-primary)}.profile-summary-card__stat.is-negative{background:#f43f5e14;border-color:#f43f5e26}.profile-summary-card__stat.is-negative strong{color:var(--hb-color-danger)}.profile-summary-card__progress{display:flex;flex-direction:column;gap:.6rem}.profile-summary-card__progress-bar{width:100%;height:.65rem;border-radius:999px;background:#0f172a14;overflow:hidden}.profile-summary-card__progress-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--hb-color-purple-light),var(--hb-color-indigo));transition:width .3s ease}.profile-summary-card__progress-label{font-size:.9rem;color:var(--hb-color-text-muted-strong);text-align:right}.history-cta{margin-top:1rem;display:flex;justify-content:flex-start}.history-drawer{position:fixed;inset:0;z-index:120;pointer-events:none}.history-drawer__backdrop{position:absolute;inset:0;background:#0f172a8c;opacity:0;transition:opacity .3s ease}.history-drawer__panel{position:absolute;top:0;right:0;width:min(420px,100%);height:100%;background:var(--hb-color-surface-base);border-radius:1.5rem 0 0 1.5rem;box-shadow:-20px 0 45px -30px #4f46e573;transform:translate(100%);transition:transform .3s ease;padding:1.25rem;display:flex;flex-direction:column;gap:1rem}.history-drawer.is-open{pointer-events:auto}.history-drawer.is-open .history-drawer__backdrop{opacity:1}.history-drawer.is-open .history-drawer__panel{transform:translate(0)}.history-drawer__header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.history-drawer__eyebrow{text-transform:uppercase;font-size:.75rem;letter-spacing:.08em;color:var(--hb-color-text-subtle);margin-bottom:.15rem}.history-drawer__header .close-button{border:none;background:#6366f11f;color:var(--hb-color-brand-accent);border-radius:999px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;cursor:pointer}.history-drawer__filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.history-drawer__filters label{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;color:var(--hb-color-text-muted)}.history-drawer__filters input{padding:.4rem .6rem;border-radius:.8rem;border:1px solid rgba(99,102,241,.35)}.history-drawer__actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:.5rem}.history-drawer__full{align-self:flex-end;border:1px solid rgba(99,102,241,.25);border-radius:999px;padding:.4rem .85rem;background:#6366f114;color:var(--hb-color-brand-accent);font-weight:600}.history-drawer__range{display:flex;flex-direction:column;gap:.15rem;color:var(--hb-color-text-muted-strong);font-size:.9rem}.history-drawer__range strong{color:var(--hb-color-brand-primary)}.history-drawer__range small{font-size:.85rem;color:var(--hb-color-text-dim)}.history-drawer__list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.75rem;overflow-y:auto}.history-drawer__item{border:1px solid rgba(99,102,241,.08);border-radius:1rem;padding:.85rem 1rem;display:flex;align-items:center;justify-content:space-between;background:var(--hb-color-surface-glow-soft)}.history-drawer__date{font-weight:600;color:var(--hb-color-text-primary);margin-bottom:.2rem}.history-drawer__activity{color:var(--hb-color-text-dim)}.history-drawer__weight{font-size:1.2rem;color:var(--hb-color-brand-accent)}.history-drawer__empty{padding:1rem;border:1px dashed rgba(99,102,241,.3);border-radius:1rem;text-align:center;color:var(--hb-color-text-muted)}@media(max-width:768px){.history-drawer__panel{width:100%;bottom:0;top:auto;border-radius:1.5rem 1.5rem 0 0;transform:translateY(100%)}.history-drawer.is-open .history-drawer__panel{transform:translateY(0)}}@media(min-width:1024px){.history-panel{padding:0 1rem}.history-panel__list{grid-template-columns:repeat(2,minmax(0,1fr))}.history-panel__chart-wrapper{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);gap:1.25rem;align-items:stretch}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.history-panel{display:flex;flex-direction:column;gap:1.5rem;width:100%;max-width:760px;margin:0 auto}.history-panel__header{position:relative;display:flex;flex-direction:column;align-items:center;gap:.75rem;text-align:center;padding-top:.35rem}.history-panel__eyebrow{text-transform:uppercase;font-size:.75rem;letter-spacing:.08em;color:var(--hb-color-text-subtle);margin-bottom:.15rem}.history-panel__filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;align-items:end;justify-items:center;width:100%}.history-chart{border:1px solid rgba(99,102,241,.12);border-radius:1.2rem;padding:1rem;background:var(--hb-color-surface-glow-faint);box-shadow:inset 0 1px 0 var(--hb-color-surface-outline);max-width:540px;width:100%;margin:0 auto;--history-chart-y-axis-width: 44px}.history-chart__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.history-chart__eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.7rem;color:var(--hb-color-text-subtle);margin:0 0 .2rem}.history-chart__delta{font-weight:600;font-size:.95rem;padding:.25rem .6rem;border-radius:999px;background:#6366f11f;color:var(--hb-color-brand-accent)}.history-chart__delta.is-down{background:#f8717126;color:var(--hb-color-danger)}.history-chart__body{width:100%;min-height:160px;display:flex;gap:.4rem;align-items:stretch}.history-chart__plot{position:relative;flex:1;height:160px}.history-chart__plot svg{width:100%;height:100%;display:block}.history-chart__y-axis{width:var(--history-chart-y-axis-width);position:relative;height:160px}.history-chart__x-axis{position:relative;margin-top:.4rem;margin-left:calc(var(--history-chart-y-axis-width) + .4rem);height:32px}.history-chart__scale-label{position:absolute;color:var(--hb-color-text-muted);font-size:.7rem;line-height:1;letter-spacing:.02em}.history-chart__scale-label strong{display:block;color:var(--hb-color-text);font-weight:600;font-size:.78rem;letter-spacing:.01em}.history-chart__scale-label small{display:block;font-size:.6rem;color:var(--hb-color-text-subtle);text-transform:uppercase;letter-spacing:.08em}.history-chart__scale-label--y{right:0;transform:translateY(-50%);text-align:right}.history-chart__scale-label--x{top:0;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:.08rem}.history-chart__scale-label--x-left{transform:translate(0);align-items:flex-start}.history-chart__scale-label--x-right{transform:translate(-100%);align-items:flex-end}.history-chart__line{fill:none;stroke-width:2.2}.history-chart__area{stroke:none}.history-chart__axis-line{stroke:#94a3b866;stroke-width:.4}.history-chart__grid-line{stroke:#94a3b826;stroke-width:.3}.history-panel__filters label{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;color:var(--hb-color-text-muted)}.history-panel__filters input{padding:.65rem .9rem;border-radius:999px;border:1px solid rgba(99,102,241,.45);background:var(--hb-color-surface-muted-soft);box-shadow:inset 0 1px 3px #4f46e514;font-weight:600;letter-spacing:.02em}.history-panel__filters input::-webkit-calendar-picker-indicator{filter:invert(23%) sepia(66%) saturate(2500%) hue-rotate(240deg);opacity:.85}.history-panel__filters input:focus{outline:none;border-color:#6366f1cc;box-shadow:0 0 0 3px #6366f12e}.history-panel__actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:.5rem;flex-wrap:wrap}.history-panel__actions--single{justify-content:center}.secondary-button--ghost{border:1.5px solid rgba(125,71,255,.4);color:var(--hb-color-purple);background:var(--hb-color-surface-elevated);box-shadow:0 8px 18px -12px #6366f180}.history-panel__list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.9rem}.history-panel__item{border:1px solid rgba(99,102,241,.08);border-radius:1rem;padding:.85rem 1rem;display:flex;align-items:center;justify-content:space-between;background:var(--hb-color-surface-glow-soft)}.history-panel__date{font-weight:600;color:var(--hb-color-text-primary);margin-bottom:.25rem}.history-panel__activity{color:var(--hb-color-text-dim)}.history-panel__weight{font-size:1.3rem;color:var(--hb-color-brand-accent)}@media(min-width:1024px){.history-panel{padding:0 1rem}.history-panel__filters{justify-content:center;grid-template-columns:repeat(2,260px)}.history-panel__actions{justify-content:center}.history-panel__list{grid-template-columns:repeat(2,minmax(0,1fr))}}.history-drawer__header{position:relative;padding-top:.5rem;text-align:center}.history-drawer__title{width:100%;text-align:center}.history-drawer__header .close-button{position:absolute;top:.5rem;right:.5rem;border:none;background:#6366f11f;color:var(--hb-color-brand-accent);border-radius:999px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;font-size:1rem;cursor:pointer}.summary-card--insights{padding:0}.recommendations-state{padding:2rem;text-align:center}.recommendations-state--error{color:var(--hb-color-danger-strong)}.recommendations-grid{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.recommendations-filter{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.recommendations-subfilter{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.25rem}.recommendations-filter__chip{border:none;border-radius:999px;padding:.35rem 1rem;font-size:.85rem;color:var(--hb-color-text-muted);background:#6366f114;cursor:pointer;transition:background .2s ease,color .2s ease;box-shadow:inset 0 0 0 1px #6366f11f}.recommendations-filter__chip.is-active{background:#6366f133;color:var(--hb-color-brand-accent);box-shadow:inset 0 0 0 1px #6366f140}.recommendation-card{border-radius:1.25rem;padding:1.75rem;display:flex;flex-direction:column;gap:1.25rem;background:var(--hb-color-card);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:var(--hb-shadow-card);border-left:4px solid rgba(99,102,241,.45);border-right:1px solid rgba(99,102,241,.08);border-top:1px solid rgba(99,102,241,.06);border-bottom:1px solid rgba(99,102,241,.08)}.recommendation-card--warning{border-left-color:#fbbf24e6}.recommendation-card--alert{border-left-color:#ef4444d9}.recommendation-card--ok{border-left-color:#22c55ed9}.recommendation-card--pending{border-left-color:#94a3b8b3}.recommendation-card__header{display:flex;justify-content:space-between;gap:1rem}.recommendation-card__status-wrapper{display:flex;flex-direction:column;align-items:center;gap:.25rem;min-width:80px}.recommendation-card__status-icon{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.1rem;background:#6366f11f}.recommendation-card__status-icon--alert{background:#ef444429}.recommendation-card__status-icon--warning{background:#fbbf2429}.recommendation-card__status-icon--ok{background:#22c55e29}.recommendation-card__status-icon--pending{background:#94a3b829}.recommendation-card__period{font-size:.9rem;text-transform:uppercase;letter-spacing:.05em;color:var(--hb-color-text-muted);margin:0}.recommendation-card__insight{font-size:1.05rem;margin:.15rem 0;color:var(--hb-color-text-strong)}.recommendation-card__range{color:var(--hb-color-text-subtle)}.recommendation-card__status{font-weight:600;display:inline-flex;align-items:center;gap:.25rem;border-radius:999px;padding:.25rem .75rem;font-size:.85rem}.recommendation-card__status--ok{background:#22c55e1f;color:#15803d}.recommendation-card__status--warning{background:#fbbf2429;color:#b45309}.recommendation-card__status--alert{background:#f8717129;color:#be123c}.recommendation-card__status--pending{background:#94a3b829;color:#475569}.recommendation-card__macros{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.recommendation-card__macro{border:1px dashed var(--hb-color-border-soft);border-radius:.9rem;padding:.85rem;display:flex;flex-direction:column;gap:.25rem;background:var(--hb-color-surface-soft)}.recommendation-card__macro-label{font-size:.85rem;color:var(--hb-color-text-subtle)}.recommendation-card__macro-gauge{margin-top:.35rem;height:4px;background:#94a3b84d;border-radius:999px;overflow:hidden}.recommendation-card__macro-fill{height:100%;background:var(--hb-color-brand-accent)}.recommendation-card__meta{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:.5rem 0;border-top:1px solid rgba(148,163,184,.3)}.recommendation-card__meta-label{display:block;font-size:.8rem;color:var(--hb-color-text-muted)}.recommendation-card__ack{text-transform:capitalize;color:var(--hb-color-text-primary)}.recommendation-card__ack.is-acknowledged{color:var(--hb-color-success)}.recommendation-card__status-wrapper{display:flex;flex-direction:column;align-items:center;gap:.25rem}.recommendation-card__actions{display:flex;flex-wrap:wrap;gap:.5rem}.recommendation-card__chip{padding:.25rem .75rem;border-radius:999px;background:#6366f11f;color:var(--hb-color-brand-accent);font-size:.85rem}.recommendation-card__footer{display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap;border-top:1px solid rgba(148,163,184,.25);padding-top:.75rem}.summary-empty--insights{text-align:center;padding:2rem}.summary-empty--insights .summary-empty__emoji{font-size:2rem;margin-bottom:.5rem}.chip-button{border:none;border-radius:999px;padding:.4rem 1rem;background:#6366f12e;color:var(--hb-color-brand-accent);font-size:.85rem;cursor:pointer;transition:background .2s ease;box-shadow:inset 0 0 0 1px #6366f126}.chip-button:hover{background:#6366f147}.home-page{display:flex;justify-content:center}#root{max-width:960px;margin:0 auto;padding:3rem 1.5rem 4rem}
