@import "https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap";*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg:#f5f4f1;--surface:#fff;--surface-alt:#fafaf8;--muted:#edecea;--border:#e5e4e1;--border-str:#d1d0cd;--text-pri:#1a1918;--text-sec:#6d6c6a;--text-ter:#9c9b99;--text-nav:#a8a7a5;--green:#3d8a5a;--green-lt:#c8f0d8;--green-dk:#4d9b6a;--coral:#d89575;--gold:#d4a64a;--red:#d08068;--shadow-sm:0 1px 6px #1a191808;--shadow-md:0 2px 12px #1a191808;--shadow-nav:0 -1px 12px #1a191814;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;--radius-xl:20px;--radius-pill:100px;-webkit-font-smoothing:antialiased;font-family:Outfit,sans-serif}html,body,#root{background:var(--bg);height:100%;color:var(--text-pri)}button{cursor:pointer;background:0 0;border:none;font-family:inherit}input{background:0 0;border:none;outline:none;font-family:inherit}.app-shell{background:var(--bg);flex-direction:column;max-width:430px;height:100dvh;margin:0 auto;display:flex;position:relative}.main-content{scrollbar-width:none;flex:1;overflow:hidden auto}.main-content::-webkit-scrollbar{display:none}.bottom-nav{height:72px;padding-bottom:env(safe-area-inset-bottom,8px);background:var(--surface);box-shadow:var(--shadow-nav);flex-shrink:0;justify-content:space-around;align-items:center;display:flex}.tab{color:var(--text-nav);border-radius:var(--radius-sm);flex-direction:column;align-items:center;gap:3px;padding:6px 16px;text-decoration:none;transition:color .15s;display:flex}.tab span{font-size:10px;font-weight:500}.tab.active{color:var(--green)}.tab.active span{font-weight:600}.page{flex-direction:column;min-height:100%;padding-bottom:16px;display:flex}.page-header{justify-content:space-between;align-items:center;padding:16px 24px 8px;display:flex}.page-title{letter-spacing:-.5px;color:var(--text-pri);font-size:26px;font-weight:700}.page-title-sm{color:var(--text-pri);font-size:17px;font-weight:600}.page-sub{color:var(--text-sec);margin-top:2px;font-size:13px;font-weight:500}.icon-btn{border-radius:var(--radius-pill);justify-content:center;align-items:center;width:36px;height:36px;display:flex}.section{padding:8px 24px}.section-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.section-title{letter-spacing:-.2px;font-size:18px;font-weight:600}.ring-section{justify-content:center;align-items:center;padding:16px 0 8px;display:flex}.ring-wrap{justify-content:center;align-items:center;width:160px;height:160px;display:flex;position:relative}.ring-wrap svg{position:absolute;top:0;left:0}.ring-center{z-index:1;flex-direction:column;align-items:center;gap:2px;display:flex;position:relative}.ring-value{letter-spacing:-1px;color:var(--text-pri);font-size:30px;font-weight:700}.ring-sub{color:var(--text-sec);font-size:11px;font-weight:500}.ring-goal{font-size:11px;font-weight:600}.stats-row{gap:12px;padding:8px 24px 16px;display:flex}.stat-card{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);flex-direction:column;flex:1;gap:4px;padding:14px 12px;display:flex}.stat-val{letter-spacing:-.3px;color:var(--text-pri);font-size:22px;font-weight:700}.stat-lbl{color:var(--text-ter);font-size:11px;font-weight:500}.meals-list{flex-direction:column;gap:10px;display:flex}.meal-item{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);align-items:center;gap:12px;padding:13px 14px;display:flex}.meal-icon{border-radius:var(--radius-md);flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.meal-info{flex-direction:column;flex:1;gap:2px;display:flex}.meal-name{color:var(--text-pri);font-size:14px;font-weight:600}.meal-meta{color:var(--text-ter);font-size:12px}.meal-kcal{color:var(--green);white-space:nowrap;font-size:13px;font-weight:600}.meal-delete{border-radius:var(--radius-sm);width:30px;height:30px;color:var(--text-ter);justify-content:center;align-items:center;transition:background .15s,color .15s;display:flex}.meal-delete:hover{color:var(--red);background:#fce4e4}.btn-primary-sm{background:var(--green);color:#fff;border-radius:var(--radius-pill);align-items:center;gap:5px;padding:7px 14px;font-size:12px;font-weight:600;display:flex}.btn-save{background:var(--green);color:#fff;border-radius:var(--radius-lg);justify-content:center;align-items:center;gap:8px;width:100%;height:54px;font-size:16px;font-weight:600;transition:opacity .15s;display:flex}.btn-save:disabled{opacity:.5}.btn-danger{color:var(--red);border-radius:var(--radius-md);background:#fce4e4;align-items:center;gap:8px;padding:10px 18px;font-size:14px;font-weight:600;display:flex}.form{flex-direction:column;flex:1;gap:20px;padding:8px 24px 16px;display:flex;overflow-y:auto}.form-footer{padding:12px 24px calc(env(safe-area-inset-bottom,8px) + 8px)}.form-group{flex-direction:column;gap:8px;display:flex}.form-label{color:var(--text-sec);font-size:13px;font-weight:600}.type-row{flex-wrap:wrap;gap:8px;display:flex}.type-pill{background:var(--muted);color:var(--text-sec);border-radius:var(--radius-pill);align-items:center;gap:5px;padding:7px 13px;font-size:12px;font-weight:500;transition:background .15s,color .15s;display:flex}.type-pill.active{background:var(--green);color:#fff;font-weight:600}.input-wrap{background:var(--surface);border-radius:var(--radius-md);border:1.5px solid var(--border);align-items:center;gap:10px;height:52px;padding:0 16px;transition:border-color .15s;display:flex}.input-wrap:focus-within{border-color:var(--green)}.input{color:var(--text-pri);flex:1;font-size:15px}.input::placeholder{color:var(--text-ter)}.input-lg{font-size:20px;font-weight:700}.input-unit{color:var(--text-ter);white-space:nowrap;font-size:13px;font-weight:500}.qty-row{justify-content:space-between;align-items:center;display:flex}.qty-btn{background:var(--muted);border-radius:var(--radius-md);width:44px;height:44px;color:var(--text-pri);justify-content:center;align-items:center;font-size:20px;font-weight:600;transition:background .15s;display:flex}.qty-btn.primary{background:var(--green);color:#fff}.qty-num{color:var(--text-pri);font-size:28px;font-weight:700}.preview-card{background:var(--green-lt);border-radius:var(--radius-lg);align-items:center;gap:12px;padding:14px 16px;display:flex}.preview-label{color:var(--green);font-size:11px;font-weight:600}.preview-val{color:var(--text-pri);font-size:13px;font-weight:500}.error-msg{color:var(--red);font-size:13px;font-weight:500}.fav-scroll{scrollbar-width:none;gap:8px;padding-bottom:4px;display:flex;overflow-x:auto}.fav-scroll::-webkit-scrollbar{display:none}.fav-chip{background:var(--surface);border-radius:var(--radius-md);border:1.5px solid var(--border);cursor:pointer;text-align:left;flex-shrink:0;align-items:center;gap:8px;padding:8px 10px 8px 8px;transition:border-color .15s,box-shadow .15s;display:flex}.fav-chip:hover{border-color:var(--green);box-shadow:var(--shadow-sm)}.fav-chip-icon{border-radius:var(--radius-sm);flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.fav-chip-info{flex-direction:column;gap:1px;min-width:0;display:flex}.fav-chip-name{color:var(--text-pri);white-space:nowrap;text-overflow:ellipsis;max-width:100px;font-size:12px;font-weight:600;overflow:hidden}.fav-chip-kcal{color:var(--green);font-size:11px;font-weight:500}.fav-chip-del{width:22px;height:22px;color:var(--text-ter);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;transition:background .15s,color .15s;display:flex}.fav-chip-del:hover{color:var(--red);background:#fce4e4}.fav-toggle{border-radius:var(--radius-md);border:1.5px solid var(--border);background:var(--surface);color:var(--text-sec);cursor:pointer;align-items:center;gap:8px;padding:10px 14px;font-size:13px;font-weight:500;transition:border-color .15s,background .15s;display:flex}.fav-toggle.active{color:#d08068;background:#fff5f3;border-color:#d08068;font-weight:600}.chart-card{background:var(--surface);border-radius:var(--radius-xl);box-shadow:var(--shadow-md);margin:0 24px 8px;padding:16px}.chart-title{color:var(--text-sec);margin-bottom:12px;font-size:13px;font-weight:600}.bars-row{align-items:flex-end;gap:6px;height:80px;display:flex}.bar-col{flex-direction:column;flex:1;align-items:center;gap:4px;height:100%;display:flex}.bar-track{flex:1;align-items:flex-end;width:100%;display:flex}.bar-fill{border-radius:4px 4px 0 0;width:100%;transition:height .4s}.bar-lbl{font-size:10px;font-weight:500}.chart-legend{justify-content:space-between;align-items:center;margin-top:10px;display:flex}.legend-avg{color:var(--text-sec);font-size:11px;font-weight:500}.legend-goal{color:var(--green);align-items:center;gap:5px;font-size:11px;font-weight:500;display:flex}.legend-dot{background:var(--green);border-radius:50%;width:8px;height:8px}.filter-pill{background:var(--muted);border-radius:var(--radius-pill);color:var(--text-sec);text-transform:capitalize;align-items:center;gap:6px;padding:6px 14px;font-size:12px;font-weight:500;display:flex}.history-list{flex-direction:column;display:flex}.history-row{border-top:1px solid var(--border);flex-direction:column;gap:8px;padding:14px 0;display:flex}.history-row:first-child{border-top:none}.history-row-header{justify-content:space-between;align-items:center;display:flex}.history-date{color:var(--text-pri);font-size:14px;font-weight:600}.history-kcal{font-size:13px;font-weight:500}.progress-track{background:var(--muted);border-radius:2px;width:100%;height:4px;overflow:hidden}.progress-fill{border-radius:2px;height:100%;transition:width .4s}.profile-avatar{flex-direction:column;align-items:center;gap:8px;padding:16px 0 24px;display:flex}.avatar-circle{background:var(--green-lt);border-radius:50%;justify-content:center;align-items:center;width:80px;height:80px;display:flex}.avatar-label{color:var(--text-pri);font-size:16px;font-weight:600}.settings-card{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:16px}.settings-row{justify-content:space-between;align-items:center;display:flex}.settings-label{color:var(--text-pri);align-items:center;gap:8px;font-size:14px;font-weight:500;display:flex}.settings-val{color:var(--green);font-size:14px;font-weight:600}.settings-card.danger{border:1px solid #fce4e4}.danger-title{color:var(--red);margin-bottom:12px;font-size:12px;font-weight:600}.back-btn{color:var(--green);align-items:center;gap:4px;font-size:15px;font-weight:500;display:flex}.empty-state{text-align:center;color:var(--text-ter);padding:32px 16px;font-size:14px;font-weight:500}
