@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";:root{--nav-width:260px;--nav-bg:#fff;--nav-surface:#f4f5f1;--nav-border:#e7eae4;--nav-text:#161b18;--nav-text-muted:#7a847c;--nav-accent:#4f7a49;--nav-accent-soft:#e9f0e5;--nav-active-text:#3f6439;--nav-hover:#161b180d;--nav-shadow:4px 0 20px #161b180f;--nav-avatar-bg:#e9f0e5;--nav-avatar-text:#3f6439;--nav-radius:12px;--nav-font:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif}:root[data-theme=dark]{--nav-bg:#0f1210;--nav-surface:#161b17;--nav-border:#ffffff12;--nav-text:#eef1e6;--nav-text-muted:#93a08d;--nav-accent:#8ab87e;--nav-accent-soft:#8ab87e29;--nav-active-text:#fff;--nav-hover:#ffffff0f;--nav-shadow:6px 0 24px #0000002e;--nav-avatar-bg:#445940;--nav-avatar-text:#bcd3b3}.navigation{z-index:50;width:var(--nav-width);box-sizing:border-box;background-color:var(--nav-bg);border-right:1px solid var(--nav-border);height:100dvh;box-shadow:var(--nav-shadow);font-family:var(--nav-font);color:var(--nav-text);flex-direction:column;padding:26px 16px 16px;transition:background-color .2s,border-color .2s,color .2s;display:flex;position:fixed;top:0;left:0;overflow-y:auto}.navigation_brand{align-items:center;gap:12px;padding:0 6px 24px;display:flex}.navigation_logo{color:#0f1210;letter-spacing:-.02em;background:linear-gradient(135deg,#a9d097,#4f7a49);border-radius:12px;flex-shrink:0;place-items:center;width:42px;height:42px;font-size:20px;font-weight:800;display:grid;box-shadow:0 4px 14px #8ab87e59}.navigation_heading{flex-direction:column;min-width:0;display:flex}.navigation_title{letter-spacing:-.01em;margin:0;font-size:20px;font-weight:800;line-height:1.1}.navigation_tagline{color:var(--nav-text-muted);margin:3px 0 0;font-size:12px;font-weight:500}.navigation_label{letter-spacing:.14em;text-transform:uppercase;color:var(--nav-text-muted);margin:4px 14px 10px;font-size:11px;font-weight:700}.navigation_list{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.navigation_item{margin:0}.navigation_link{border-radius:var(--nav-radius);color:var(--nav-text-muted);align-items:center;gap:14px;padding:12px 14px;font-size:15px;font-weight:600;text-decoration:none;transition:background-color .18s,color .18s,transform .18s;display:flex;position:relative}.navigation_link:hover{background-color:var(--nav-hover);color:var(--nav-text)}.navigation_link:active{transform:scale(.98)}.navigation_link:focus-visible{outline:2px solid var(--nav-accent);outline-offset:2px}.navigation_link.active{background-color:var(--nav-accent-soft);color:var(--nav-active-text)}.navigation_link.active:before{content:"";background-color:var(--nav-accent);border-radius:3px;width:3px;height:22px;position:absolute;top:50%;left:0;transform:translateY(-50%)}.navigation_img{filter:brightness(0)opacity(.65);flex-shrink:0;width:22px;height:22px;transition:filter .18s}.navigation_link:hover .navigation_img,.navigation_link.active .navigation_img{filter:brightness(0)opacity(.95)}:root[data-theme=dark] .navigation_img,:root[data-theme=dark] .navigation_link:hover .navigation_img,:root[data-theme=dark] .navigation_link.active .navigation_img{filter:none}.navigation_text{margin:0;line-height:1}.navigation_footer{border-top:1px solid var(--nav-border);margin-top:auto;padding-top:16px}.navigation_user{border-radius:var(--nav-radius);align-items:center;gap:12px;padding:10px 12px;text-decoration:none;transition:background-color .18s;display:flex}.navigation_user:hover{background-color:var(--nav-hover)}.navigation_avatar{background-color:var(--nav-avatar-bg);width:36px;height:36px;color:var(--nav-avatar-text);border-radius:50%;flex-shrink:0;place-items:center;font-size:16px;font-weight:700;display:grid}.navigation_user_info{flex-direction:column;gap:1px;min-width:0;display:flex}.navigation_user_name{color:var(--nav-text);font-size:14px;font-weight:700}.navigation_user_role{color:var(--nav-text-muted);font-size:12px}.navigation::-webkit-scrollbar{width:6px}.navigation::-webkit-scrollbar-thumb{background-color:#ffffff1f;border-radius:999px}.navigation::-webkit-scrollbar-thumb:hover{background-color:#fff3}.mobile_navigation{display:none}@media (width<=768px){.navigation{display:none}.mobile_navigation{z-index:50;width:100%;padding:6px 10px calc(6px + env(safe-area-inset-bottom,0px));box-sizing:border-box;background-color:var(--nav-bg);border-top:1px solid var(--nav-border);font-family:var(--nav-font);display:block;position:fixed;bottom:0;left:0;box-shadow:0 -6px 24px #00000038}.mobile_navigation_list{justify-content:space-around;margin:0;padding:0;list-style:none;display:flex}.mobile_navigation_item{flex:1;display:flex}.mobile_navigation_link{color:var(--nav-text-muted);border-radius:14px;flex-direction:column;flex:1;align-items:center;gap:5px;padding:10px 4px 8px;font-size:11px;font-weight:600;text-decoration:none;transition:background-color .18s,color .18s,transform .18s;display:flex;position:relative}.mobile_navigation_link:hover{color:var(--nav-text)}.mobile_navigation_link:active{transform:scale(.96)}.mobile_navigation_link:focus-visible{outline:2px solid var(--nav-accent);outline-offset:2px}.mobile_navigation_link.active{background-color:var(--nav-accent-soft);color:var(--nav-active-text)}.mobile_navigation_img{filter:brightness(0)opacity(.65);width:22px;height:22px}.mobile_navigation_link.active .mobile_navigation_img{filter:brightness(0)opacity(.95)}:root[data-theme=dark] .mobile_navigation_img,:root[data-theme=dark] .mobile_navigation_link.active .mobile_navigation_img{filter:none}.mobile_navigation_text{line-height:1}}:root{--db-bg:#f4f5f1;--db-card:#fff;--db-text:#161b18;--db-muted:#7a847c;--db-border:#e7eae4;--db-green:#4f7a49;--db-green-dark:#3f6439;--db-green-soft:#e9f0e5;--db-radius:20px;--db-radius-sm:14px;--db-shadow-sm:0 1px 2px #161b180a, 0 2px 8px #161b180d;--db-shadow-md:0 8px 24px #161b1814;--db-font:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif}.dashboard-page{background-color:var(--db-bg);min-height:100vh;color:var(--db-text);font-family:var(--db-font);-webkit-font-smoothing:antialiased;margin-left:20px;display:flex}.dashboard-container{flex:1;width:100%;padding:32px clamp(20px,2.5vw,44px) 48px}.dashboard-header{justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:28px;display:flex}.dashboard-date{color:var(--db-muted);margin:0 0 6px;font-size:.95rem;font-weight:500}.dashboard-greeting{letter-spacing:-.02em;margin:0;font-size:clamp(1.8rem,3vw,2.4rem);font-weight:800}.dashboard-greeting-dot{color:var(--db-green)}.dashboard-log-btn{background-color:var(--db-green);color:#fff;border-radius:999px;align-items:center;gap:10px;padding:12px 22px;font-size:.95rem;font-weight:700;text-decoration:none;transition:background-color .18s,transform .18s,box-shadow .18s;display:inline-flex;box-shadow:0 8px 20px #4f7a4947}.dashboard-log-btn:hover{background-color:var(--db-green-dark);transform:translateY(-1px);box-shadow:0 10px 24px #4f7a4957}.dashboard-log-btn-plus{font-size:1.1rem;line-height:1}.macro-summary{grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:24px;display:grid}.macro-card{background:var(--db-card);border:1px solid var(--db-border);border-radius:var(--db-radius);box-shadow:var(--db-shadow-sm);padding:20px 22px;transition:transform .18s,box-shadow .18s}.macro-card:hover{box-shadow:var(--db-shadow-md);transform:translateY(-3px)}.macro-card-top{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.macro-card-name{color:var(--db-muted);align-items:center;gap:10px;font-size:.95rem;font-weight:700;display:inline-flex}.macro-card-dot{border-radius:50%;flex-shrink:0;width:10px;height:10px}.macro-card-target{color:var(--db-muted);font-size:.8rem;font-weight:600}.macro-card-value{letter-spacing:-.02em;margin:0 0 14px;font-size:2.1rem;font-weight:800;line-height:1}.macro-card-unit{color:var(--db-muted);margin-left:4px;font-size:1rem;font-weight:700}.macro-card-bar{background:#eef0eb;border-radius:999px;height:8px;overflow:hidden}.macro-card-bar-fill{border-radius:999px;height:100%}.macro-card-left{color:var(--db-muted);margin:10px 0 0;font-size:.8rem;font-weight:600}.dashboard-grid{grid-template-columns:2fr 1fr;align-items:stretch;gap:24px;display:grid}.dashboard-main-col{flex-direction:column;gap:24px;min-width:0;display:flex}.calorie-card{background:var(--db-card);border:1px solid var(--db-border);border-radius:var(--db-radius);box-shadow:var(--db-shadow-sm);flex:1;grid-template-columns:auto 1fr;align-items:center;gap:36px;padding:28px 30px;display:grid}.calorie-chart{justify-content:center;align-items:center;display:flex}.donut-wrap{aspect-ratio:1;width:clamp(180px,18vw,240px);position:relative}.donut-svg{width:100%;height:100%;transform:rotate(-90deg)}.donut-track{fill:none;stroke:#eef0eb;stroke-width:16px}.donut-progress{fill:none;stroke-width:16px;stroke-linecap:round}.donut-center{text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:12px;display:flex;position:absolute;inset:0}.donut-value{letter-spacing:-.02em;font-size:2.3rem;font-weight:800;line-height:1}.donut-label{color:var(--db-muted);margin-top:8px;font-size:.85rem;font-weight:600}.calorie-breakdown{min-width:0}.card-title{letter-spacing:-.01em;margin:0 0 20px;font-size:1.15rem;font-weight:800}.breakdown-list{flex-direction:column;gap:18px;display:flex}.macro-bar-top{justify-content:space-between;align-items:baseline;margin-bottom:8px;display:flex}.macro-bar-label{color:var(--db-text);align-items:center;gap:8px;font-size:.9rem;font-weight:600;display:inline-flex}.macro-bar-dot{border-radius:50%;width:8px;height:8px}.macro-bar-values{color:var(--db-muted);font-size:.85rem;font-weight:600}.macro-bar-values em{color:var(--db-text);font-style:normal;font-weight:700}.macro-bar-track{background:#eef0eb;border-radius:999px;height:10px;overflow:hidden}.macro-bar-fill{border-radius:999px;height:100%;transition:width .6s}.search-cta{border-radius:var(--db-radius);color:#fff;background:linear-gradient(120deg,#4f7a49,#3f6439);align-items:center;gap:18px;padding:22px 24px;text-decoration:none;transition:transform .18s,box-shadow .18s;display:flex;box-shadow:0 10px 24px #4f7a4947}.search-cta:hover{transform:translateY(-2px);box-shadow:0 14px 30px #4f7a4957}.search-cta-icon{background:#ffffff29;border-radius:14px;flex-shrink:0;place-items:center;width:48px;height:48px;font-size:1.25rem;display:grid}.search-cta-body{flex-direction:column;gap:3px;min-width:0;display:flex}.search-cta-title{font-size:1.05rem;font-weight:700}.search-cta-subtitle{color:#ffffffbf;font-size:.85rem;font-weight:500}.search-cta-arrow{margin-left:auto;font-size:1.3rem;transition:transform .18s}.search-cta:hover .search-cta-arrow{transform:translate(4px)}.recent-card{background:var(--db-card);border:1px solid var(--db-border);border-radius:var(--db-radius);box-shadow:var(--db-shadow-sm);flex-direction:column;padding:24px 22px;display:flex}.recent-card-header{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.recent-card-header .card-title{margin:0}.recent-view-all{color:var(--db-green);font-size:.85rem;font-weight:600;text-decoration:none;transition:color .15s}.recent-view-all:hover{color:var(--db-green-dark)}.recent-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.recent-empty{color:var(--db-muted);margin:12px 0 24px;font-size:.9rem;line-height:1.5}.recent-empty a{color:var(--db-green);font-weight:600;text-decoration:none}.recent-empty a:hover{text-decoration:underline}.recent-item{border-radius:var(--db-radius-sm);align-items:center;gap:14px;padding:10px;transition:background-color .15s;display:flex}.recent-item:hover{background-color:var(--db-green-soft)}.recent-emoji{border-radius:14px;flex-shrink:0;place-items:center;width:46px;height:46px;font-size:1.35rem;display:grid}.recent-info{flex:1;min-width:0}.recent-name{white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:.95rem;font-weight:700;overflow:hidden}.recent-meal{color:var(--db-muted);margin:2px 0 0;font-size:.8rem;font-weight:500}.recent-kcal{color:var(--db-text);flex-shrink:0;font-size:.9rem;font-weight:700}.recent-footer{border-top:1px solid var(--db-border);justify-content:space-between;gap:12px;margin-top:auto;padding-top:18px;display:flex}.recent-footer-stat{color:var(--db-muted);font-size:.8rem;font-weight:500}.recent-footer-stat strong{color:var(--db-text);font-size:1.15rem;font-weight:800;display:block}@keyframes dbFadeUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.dashboard-header,.macro-summary,.calorie-card,.search-cta,.recent-card{animation:.5s both dbFadeUp}.macro-summary{animation-delay:50ms}.calorie-card{animation-delay:.1s}.search-cta{animation-delay:.15s}.recent-card{animation-delay:.2s}@media (width<=900px){.dashboard-grid{grid-template-columns:1fr}.calorie-card{grid-template-columns:1fr;gap:24px}}@media (width<=768px){.dashboard-page{margin-left:0}.dashboard-container{padding:20px 16px 96px}.dashboard-header{flex-direction:column;align-items:flex-start}.macro-summary{grid-template-columns:1fr;gap:12px}.recent-footer{flex-direction:column;gap:8px}}.fb-modal-overlay{z-index:300;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0f12108c;justify-content:center;align-items:center;padding:20px;animation:.16s both fbFadeIn;display:flex;position:fixed;inset:0}.fb-modal-card{background:var(--fl-card,#fff);width:100%;max-width:400px;color:var(--fl-text,#161b18);border:1px solid var(--fl-border,#e7eae4);text-align:center;border-radius:20px;flex-direction:column;align-items:center;padding:28px 26px 24px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;animation:.2s both fbScaleUp;display:flex;box-shadow:0 18px 44px #0f121038}:root[data-theme=dark] .fb-modal-card{color:#eef1e6;background:#171c19;border-color:#2a312c}.fb-modal-icon{border-radius:16px;place-items:center;width:54px;height:54px;margin-bottom:16px;display:grid}.fb-modal-icon.is-error{color:#b91c1c;background:#fbeae7}.fb-modal-icon.is-success{color:#3f6439;background:#e9f0e5}:root[data-theme=dark] .fb-modal-icon.is-error{color:#fca5a5;background:#ef444429}:root[data-theme=dark] .fb-modal-icon.is-success{color:#a9d097;background:#8ab87e29}.fb-modal-title{letter-spacing:-.015em;margin:0 0 8px;font-size:1.2rem;font-weight:800}.fb-modal-message{color:var(--fl-muted,#7a847c);margin:0 0 22px;font-size:.94rem;line-height:1.5}:root[data-theme=dark] .fb-modal-message{color:#93a08d}.fb-modal-btn{cursor:pointer;color:#fff;border:none;border-radius:12px;width:100%;height:44px;font-family:inherit;font-size:.94rem;font-weight:700;transition:transform .15s,filter .15s}.fb-modal-btn.is-error{background:#b91c1c}.fb-modal-btn.is-success{background:linear-gradient(120deg,#4f7a49,#3f6439)}.fb-modal-btn:hover{filter:brightness(1.06);transform:translateY(-1px)}.fb-modal-btn:active{transform:translateY(0)}@keyframes fbFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fbScaleUp{0%{opacity:0;transform:scale(.95)translateY(6px)}to{opacity:1;transform:scale(1)translateY(0)}}:root{--fl-bg:#f4f5f1;--fl-card:#fff;--fl-text:#161b18;--fl-muted:#7a847c;--fl-border:#e7eae4;--fl-green:#4f7a49;--fl-green-dark:#3f6439;--fl-green-soft:#e9f0e5;--fl-radius:20px;--fl-radius-sm:14px;--fl-shadow-sm:0 1px 2px #161b180a, 0 2px 8px #161b180d;--fl-shadow-md:0 8px 24px #161b1814;--fl-font:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif}*{box-sizing:border-box}.food-log-page{background-color:var(--fl-bg);min-height:100vh;color:var(--fl-text);font-family:var(--fl-font);-webkit-font-smoothing:antialiased;margin-left:20px;display:flex}.food-log-container{flex:1;width:100%;padding:32px clamp(20px,2.5vw,44px) 48px}.food-log-header{justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:28px;display:flex}.food-log-date{color:var(--fl-muted);margin:0 0 6px;font-size:.95rem;font-weight:500}.edit-food-modal{background:var(--fl-card);border:1px solid var(--fl-border);border-radius:var(--fl-radius);width:100%;max-width:520px;box-shadow:var(--fl-shadow-md);z-index:110;padding:24px}.edit-food-modal-header{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.edit-food-modal-header h2{margin:0;font-size:1.25rem;font-weight:600}.edit-food-modal-close{width:34px;height:34px;color:var(--fl-muted);cursor:pointer;background:0 0;border:none;border-radius:10px;justify-content:center;align-items:center;padding:0;font-size:1.1rem;transition:background-color .15s,color .15s;display:inline-flex}.edit-food-modal-close:hover{background:var(--fl-green-soft);color:var(--fl-text)}.edit-food-modal-body{flex-direction:column;gap:16px;display:flex}.food-log-title{letter-spacing:-.02em;margin:0;font-size:clamp(1.8rem,3vw,2.4rem);font-weight:800}.food-log-title-dot{color:var(--fl-green)}.calendar-controls{align-items:center;gap:10px;display:flex}.calendar-controls button{border:1px solid var(--fl-border);background:var(--fl-card);width:42px;height:42px;color:var(--fl-text);cursor:pointer;box-shadow:var(--fl-shadow-sm);border-radius:12px;justify-content:center;align-items:center;padding:0;transition:background-color .18s,border-color .18s,color .18s,transform .18s;display:inline-flex}.calendar-controls button:hover{background:var(--fl-green-soft);border-color:var(--fl-green);color:var(--fl-green-dark)}.calendar-controls button:active{transform:scale(.96)}.calendar-controls .calendar-btn{gap:8px;width:auto;padding:0 18px;font-size:.9rem;font-weight:600}.search-row{align-items:center;gap:12px;margin-bottom:24px;display:flex}.search-bar{height:50px;color:var(--fl-muted);background:var(--fl-card);border:1px solid var(--fl-border);border-radius:var(--fl-radius-sm);box-shadow:var(--fl-shadow-sm);flex:1;align-items:center;gap:10px;padding:0 16px;transition:border-color .18s,box-shadow .18s;display:flex}.search-bar:focus-within{border-color:var(--fl-green);box-shadow:0 0 0 3px #4f7a4924}.search-bar input[type=text]{width:100%;height:auto;box-shadow:none;color:var(--fl-text);background:0 0;border:none;border-radius:0;outline:none;flex:1;margin:0;padding:0;font-family:inherit;font-size:.95rem}.search-bar input[type=text]::placeholder{color:var(--fl-muted)}.scan-btn{border:1px solid var(--fl-border);border-radius:var(--fl-radius-sm);background:var(--fl-card);width:50px;height:50px;color:var(--fl-text);cursor:pointer;box-shadow:var(--fl-shadow-sm);justify-content:center;align-items:center;padding:0;text-decoration:none;transition:background-color .18s,border-color .18s,color .18s;display:inline-flex}.scan-btn:hover{background:var(--fl-green-soft);border-color:var(--fl-green);color:var(--fl-green-dark)}.summary-card{background:var(--fl-card);border:1px solid var(--fl-border);border-radius:var(--fl-radius);box-shadow:var(--fl-shadow-sm);margin-bottom:24px;padding:24px 28px}.summary-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;display:flex}.calories-main{align-items:center;gap:16px;display:flex}.flame-icon-box{background:var(--fl-green-soft);width:52px;height:52px;color:var(--fl-green-dark);border-radius:14px;justify-content:center;align-items:center;display:flex}.summary-label{letter-spacing:.06em;color:var(--fl-muted);margin-bottom:3px;font-size:.72rem;font-weight:700;display:block}.calories-numbers strong{letter-spacing:-.02em;font-size:1.6rem;font-weight:800}.calories-numbers span{color:var(--fl-muted);font-size:.9rem;font-weight:500}.macros-group{align-items:center;gap:28px;display:flex}.macro-stat{flex-direction:column;gap:2px;display:flex}.macro-stat strong{letter-spacing:-.01em;font-size:1.25rem;font-weight:800}.macro-stat span{color:var(--fl-muted);font-size:.78rem;font-weight:500}.macro-protein{color:#14b8a6}.macro-carbs{color:#f59e0b}.macro-fat{color:#ef4444}.macro-left{color:var(--fl-green)}.progress-track{background:#eef0eb;border-radius:999px;width:100%;height:12px;overflow:hidden}.progress-fill{background:var(--fl-green);border-radius:999px;height:100%;transition:width .6s}.meals-grid{grid-template-columns:repeat(2,1fr);gap:24px;display:grid}.meal-card{background:var(--fl-card);border:1px solid var(--fl-border);border-radius:var(--fl-radius);box-shadow:var(--fl-shadow-sm);flex-direction:column;transition:transform .18s,box-shadow .18s;display:flex;overflow:hidden}.meal-card:hover{box-shadow:var(--fl-shadow-md);transform:translateY(-3px)}.meal-card-header{border-bottom:1px solid var(--fl-border);justify-content:space-between;align-items:center;padding:18px 22px;display:flex}.meal-card-header h3{letter-spacing:-.01em;margin:0;font-size:1.05rem;font-weight:800}.add-food-btn{background:var(--fl-green-soft);height:36px;color:var(--fl-green-dark);cursor:pointer;border:none;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:0 16px;font-size:.85rem;font-weight:700;transition:background-color .18s,transform .18s;display:inline-flex}.add-food-btn:hover{background:#dbe8cf}.add-food-btn:active{transform:scale(.97)}.food-item-row{border-bottom:1px solid var(--fl-border);justify-content:space-between;align-items:center;gap:12px;min-height:60px;padding:14px 22px;display:flex}.food-item-row:last-child{border-bottom:none}.food-item-row.empty-slot{border-bottom:1px dashed var(--fl-border)}.food-item-row.empty-slot:last-child{border-bottom:none}.food-item-info{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.food-item-title{color:var(--fl-text);font-size:.95rem;font-weight:600}.food-item-weight{color:var(--fl-muted);font-weight:500}.food-item-meta{color:var(--fl-muted);white-space:nowrap;text-overflow:ellipsis;font-size:.8rem;overflow:hidden}.food-item-actions{flex-shrink:0;align-items:center;gap:4px;display:flex}.food-item-actions button{width:32px;height:32px;color:var(--fl-muted);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;padding:0;transition:background-color .15s,color .15s;display:inline-flex}.food-item-actions button:hover{background:var(--fl-green-soft);color:var(--fl-text)}.food-item-actions button.food-item-remove:hover{color:#b91c1c;background:#fbeae7}.add-food-overlay{z-index:100;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#161b1880;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.add-food-modal{background:var(--fl-card);border:1px solid var(--fl-border);border-radius:var(--fl-radius);width:100%;max-width:520px;box-shadow:var(--fl-shadow-md);padding:24px;animation:.25s both flFadeUp}.add-food-modal-header{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.add-food-modal-header h2{letter-spacing:-.01em;margin:0;font-size:1.3rem;font-weight:800}.add-food-modal-close{width:34px;height:34px;color:var(--fl-muted);cursor:pointer;background:0 0;border:none;border-radius:10px;justify-content:center;align-items:center;padding:0;transition:background-color .15s,color .15s;display:inline-flex}.add-food-modal-close:hover{background:var(--fl-green-soft);color:var(--fl-text)}.add-food-modal-hint{color:var(--fl-muted);margin:0 0 18px;font-size:.9rem}.add-food-modal .search-row{margin-bottom:0}.calendar-picker-wrap{display:inline-flex;position:relative}.calendar-hidden-input{opacity:0;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.food-log-sync-banner{border-radius:var(--fl-radius-sm);border:1px solid var(--fl-border);background:var(--fl-card);color:var(--fl-muted);margin-bottom:18px;padding:10px 16px;font-size:.85rem}.meal-card-title-group{align-items:baseline;gap:10px;display:flex}.meal-card-kcal{color:var(--fl-muted);font-size:.82rem;font-weight:600}.food-item-loading{color:var(--fl-muted);font-size:.9rem}.search-results-wrap{max-height:260px;margin-top:14px;overflow-y:auto}.search-status{color:var(--fl-muted);margin:12px 0 0;font-size:.88rem}.search-status.is-error{color:#b91c1c}.search-results-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.search-result-item{text-align:left;border:1px solid var(--fl-border);background:var(--fl-bg);width:100%;color:var(--fl-text);cursor:pointer;border-radius:12px;flex-direction:column;gap:3px;padding:11px 14px;font-family:inherit;transition:border-color .15s,background-color .15s;display:flex}.search-result-item:hover{border-color:var(--fl-green);background:var(--fl-green-soft)}.search-result-name{font-size:.94rem;font-weight:600}.search-result-meta{color:var(--fl-muted);font-size:.78rem}.selected-food-panel{border-top:1px solid var(--fl-border);flex-direction:column;gap:14px;margin-top:16px;padding-top:16px;display:flex}.selected-food-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.selected-food-header h3{margin:0 0 4px;font-size:1rem;font-weight:700}.selected-food-per100{color:var(--fl-muted);margin:0;font-size:.8rem}.selected-food-change{border:1px solid var(--fl-border);color:var(--fl-muted);cursor:pointer;background:0 0;border-radius:8px;padding:5px 10px;font-size:.8rem;font-weight:600}.selected-food-change:hover{border-color:var(--fl-green);color:var(--fl-text)}.modal-weight-field{color:var(--fl-muted);flex-direction:column;gap:6px;font-size:.85rem;font-weight:600;display:flex}.modal-weight-field input[type=number]{border:1px solid var(--fl-border);background:var(--fl-bg);width:100%;height:44px;color:var(--fl-text);border-radius:12px;outline:none;padding:0 14px;font-family:inherit;font-size:1rem;font-weight:600}.modal-weight-field input[type=number]:focus{border-color:var(--fl-green);box-shadow:0 0 0 3px #4f7a4924}.modal-macro-preview{background:var(--fl-bg);border:1px solid var(--fl-border);color:var(--fl-muted);border-radius:12px;flex-wrap:wrap;gap:14px;padding:12px 14px;font-size:.85rem;display:flex}.modal-macro-preview strong{color:var(--fl-text)}.modal-actions{justify-content:flex-end;gap:10px;margin-top:4px;display:flex}.modal-btn-secondary,.modal-btn-primary{cursor:pointer;border-radius:10px;height:40px;padding:0 18px;font-family:inherit;font-size:.9rem;font-weight:600;transition:background-color .15s,opacity .15s}.modal-btn-secondary{border:1px solid var(--fl-border);color:var(--fl-text);background:0 0}.modal-btn-secondary:hover{background:var(--fl-bg)}.modal-btn-primary{background:var(--fl-green);color:#fff;border:none}.modal-btn-primary:hover:not(:disabled){background:var(--fl-green-dark)}.modal-btn-primary:disabled{opacity:.5;cursor:not-allowed}@keyframes flFadeUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.food-log-header,.search-row,.summary-card,.meals-grid{animation:.5s both flFadeUp}.search-row{animation-delay:50ms}.summary-card{animation-delay:.1s}.meals-grid{animation-delay:.15s}@media (width<=900px){.meals-grid{grid-template-columns:1fr}}@media (width<=768px){.food-log-page{margin-left:0}.food-log-container{padding:20px 16px 96px}.food-log-header,.summary-top{flex-direction:column;align-items:flex-start}.macros-group{flex-wrap:wrap;gap:18px}}:root{--pf-bg:#f4f5f1;--pf-card:#fff;--pf-text:#161b18;--pf-muted:#7a847c;--pf-border:#e7eae4;--pf-green:#4f7a49;--pf-green-dark:#3f6439;--pf-green-soft:#e9f0e5;--pf-radius:20px;--pf-radius-sm:14px;--pf-shadow-sm:0 1px 2px #161b180a, 0 2px 8px #161b180d;--pf-shadow-md:0 8px 24px #161b1814;--pf-font:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif}body{background-color:var(--app-bg);color:var(--app-text);box-sizing:border-box;margin:0;margin-left:var(--nav-width);padding:24px 16px 90px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Inter,Roboto,sans-serif}*,:before,:after{box-sizing:inherit}.profile-page{background-color:var(--pf-bg);min-height:100vh;color:var(--pf-text);font-family:var(--pf-font);-webkit-font-smoothing:antialiased;margin-left:20px;display:flex}.profile-container{flex:1;width:100%;padding:32px clamp(20px,2.5vw,44px) 48px}.profile-header{letter-spacing:-.02em;margin:0 0 24px;font-size:clamp(1.8rem,3vw,2.2rem);font-weight:800}div.profile-info,.daily-goals{background-color:var(--pf-card);border:1px solid var(--pf-border);border-radius:var(--pf-radius);box-shadow:var(--pf-shadow-sm);margin-bottom:20px;padding:20px}div.profile-info{grid-template-columns:auto 1fr;align-items:center;gap:4px 16px;display:grid}.profile-details{display:contents}.profile-icon{color:#0f1210;background:linear-gradient(135deg,#a9d097,#4f7a49);border-radius:20px;grid-area:1/1/3;justify-content:center;align-items:center;width:80px;height:80px;font-size:48px;font-weight:800;display:flex;box-shadow:0 4px 14px #4f7a4947}.profile-name{letter-spacing:-.01em;grid-area:1/2;align-self:end;margin:0;font-size:22px;font-weight:800}p.profile-info{color:var(--pf-muted);grid-area:2/2;align-self:start;margin:0;font-size:16px}.profile-edit-button{grid-area:3/1/auto/-1;margin-top:14px}.profile-edit-button,.daily-goals-edit-button{background-color:var(--pf-green-soft);color:var(--pf-green-dark);cursor:pointer;border:none;border-radius:999px;justify-content:center;align-items:center;gap:10px;width:100%;padding:12px 20px;font-size:.9rem;font-weight:700;transition:background-color .15s,transform .15s;display:flex}.profile-edit-button:hover,.daily-goals-edit-button:hover{background-color:#dbe8cf}.profile-edit-button:active,.daily-goals-edit-button:active{transform:scale(.98)}.profile-edit-button:before,.daily-goals-edit-button:before{content:"";background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f6439' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;flex-shrink:0;width:24px;height:24px}.daily-goals-header{margin:0 0 18px;font-size:1.1rem;font-weight:800}.daily-goals-macros{justify-content:space-around;align-items:center;margin-bottom:18px;display:flex}.daily-goals-macro{text-align:center}.daily-goals-macro-value{letter-spacing:-.01em;color:var(--pf-green);margin:0 0 2px;font-size:1.5rem;font-weight:800}.daily-goals-macro-label{color:var(--pf-muted);margin:0;font-size:.8rem;font-weight:600}.settings{margin-top:16px}.settings-header{margin:0 0 12px;font-size:1.1rem;font-weight:800}.settings>div{background-color:var(--pf-card);border:1px solid var(--pf-border);border-radius:var(--pf-radius-sm);box-shadow:var(--pf-shadow-sm);cursor:pointer;margin-bottom:12px;padding:14px 18px;transition:background-color .15s,border-color .15s}.settings>div:hover{background-color:var(--pf-green-soft);border-color:var(--pf-green)}.settings-item{align-items:center;gap:14px;margin:0;font-size:.95rem;font-weight:600;display:flex}.settings-item:after{content:"";background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a847c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;width:20px;height:20px;margin-left:auto}.settings>div:first-of-type .settings-item:before{content:"";background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M3 19v-1a6 6 0 0 1 6-6h2.5a6 6 0 0 0-.5 2.5c0 1.8.8 3.4 2 4.5H3z'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9' fill='none'/%3E%3Ccircle cx='18' cy='16' r='3' fill='none' stroke='%23000' stroke-width='2' stroke-dasharray='2 1'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;flex-shrink:0;width:26px;height:26px}.settings>div:nth-of-type(2) .settings-item:before{content:"";background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cpath d='M8 10a4 4 0 0 1 8 0'/%3E%3Cline x1='12' y1='10' x2='14.5' y2='7.5'/%3E%3Cline x1='7' y1='16' x2='17' y2='16'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;flex-shrink:0;width:26px;height:26px}.settings>div:nth-of-type(3) .settings-item:before{content:"";background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z'/%3E%3Cpath d='m14.5 12.5 2-2'/%3E%3Cpath d='m11.5 9.5 2-2'/%3E%3Cpath d='m8.5 6.5 2-2'/%3E%3Cpath d='m17.5 15.5 2-2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;flex-shrink:0;width:26px;height:26px}.settings-logout-button{color:#b91c1c;border-radius:var(--pf-radius-sm);cursor:pointer;background-color:#fbeae7;border:1px solid #f3c1b8;width:100%;margin-top:4px;padding:15px;font-size:.95rem;font-weight:700;transition:background-color .15s}.settings-logout-button:hover{background-color:#f6d3ce}.settings-theme-row{justify-content:space-between;align-items:center;display:flex}.settings-theme-label{color:var(--pf-text);align-items:center;gap:14px;font-size:.95rem;font-weight:600;display:flex}.settings-theme-label svg{width:22px;height:22px;color:var(--pf-muted);flex-shrink:0}.theme-toggle{cursor:pointer;background-color:#cbd2c8;border:none;border-radius:999px;flex-shrink:0;width:48px;height:28px;padding:0;transition:background-color .2s;position:relative}.theme-toggle.is-on{background-color:var(--pf-green)}.theme-toggle-thumb{background-color:#fff;border-radius:50%;width:22px;height:22px;transition:transform .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0000004d}.theme-toggle.is-on .theme-toggle-thumb{transform:translate(20px)}.profile-modal-overlay{z-index:100;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#161b1880;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.profile-modal{background:var(--pf-card);border:1px solid var(--pf-border);border-radius:var(--pf-radius);width:100%;max-width:460px;box-shadow:var(--pf-shadow-md);padding:24px}.profile-modal-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.profile-modal-header h2{letter-spacing:-.01em;margin:0;font-size:1.3rem;font-weight:800}.profile-modal-close{width:34px;height:34px;color:var(--pf-muted);cursor:pointer;background:0 0;border:none;border-radius:10px;justify-content:center;align-items:center;padding:0;font-size:1rem;transition:background-color .15s,color .15s;display:inline-flex}.profile-modal-close:hover{background:var(--pf-green-soft);color:var(--pf-text)}.profile-form{flex-direction:column;gap:16px;margin-bottom:24px;display:flex}.profile-field{flex-direction:column;gap:6px;display:flex}.profile-field span{color:var(--pf-muted);font-size:.85rem;font-weight:600}.profile-field input,.profile-field select{border:1px solid var(--pf-border);border-radius:var(--pf-radius-sm);background:var(--pf-bg);height:46px;color:var(--pf-text);padding:0 14px;font-family:inherit;font-size:.95rem;transition:border-color .15s,box-shadow .15s}.profile-field input:focus,.profile-field select:focus{border-color:var(--pf-green);outline:none;box-shadow:0 0 0 3px #4f7a4926}.profile-macro-pct{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.profile-macro-total{margin:0;font-size:.85rem;font-weight:600}.profile-macro-total.is-valid{color:var(--pf-green)}.profile-macro-total.is-warn{color:#b91c1c}.profile-macro-preview{border:1px solid var(--pf-border);border-radius:var(--pf-radius-sm);background:var(--pf-bg);flex-direction:column;gap:8px;padding:16px;display:flex}.profile-macro-preview h3{color:var(--pf-muted);text-transform:uppercase;letter-spacing:.04em;margin:0 0 4px;font-size:.85rem;font-weight:700}.profile-macro-preview-row{justify-content:space-between;align-items:center;font-size:.95rem;display:flex}.profile-macro-preview-row span{color:var(--pf-muted)}.profile-macro-preview-row strong{color:var(--pf-text);font-weight:700}.account-section{border-top:1px solid var(--pf-border);flex-direction:column;gap:12px;margin-top:16px;padding-top:16px;display:flex}.account-section:first-of-type{border-top:none;margin-top:0;padding-top:0}.account-section h3{letter-spacing:-.01em;margin:0;font-size:1rem;font-weight:800}.account-section-hint{color:var(--pf-muted);margin:0;font-size:.85rem}.account-section-danger h3{color:#b91c1c}.profile-notice{border-radius:var(--pf-radius-sm);margin:0 0 16px;padding:10px 14px;font-size:.9rem;font-weight:600}.profile-notice.is-success{background:var(--pf-green-soft);color:var(--pf-green-dark)}.profile-notice.is-error{color:#b91c1c;background:#fbeae7}.profile-modal-secondary{border-radius:var(--pf-radius-sm);border:1px solid var(--pf-border);height:44px;color:var(--pf-text);cursor:pointer;background:0 0;padding:0 22px;font-size:.9rem;font-weight:700;transition:background-color .15s,border-color .15s}.profile-modal-secondary:hover{background:var(--pf-bg);border-color:var(--pf-green)}.profile-delete-confirm{border-radius:var(--pf-radius-sm);color:#b91c1c;cursor:pointer;background:#fbeae7;border:1px solid #f3c1b8;height:44px;padding:0 22px;font-size:.9rem;font-weight:700;transition:background-color .15s,border-color .15s}.profile-delete-confirm:hover:not(:disabled){background:#f6d3ce;border-color:#b91c1c}.profile-delete-confirm:disabled{opacity:.5;cursor:not-allowed}.delete-warning{color:var(--pf-text);margin:0 0 16px;font-size:.95rem}.profile-modal-actions{justify-content:flex-end;gap:12px;display:flex}.profile-modal-cancel,.profile-modal-save{border-radius:var(--pf-radius-sm);border:1px solid var(--pf-border);cursor:pointer;height:44px;padding:0 22px;font-size:.9rem;font-weight:700;transition:background-color .15s,border-color .15s}.profile-modal-cancel{color:var(--pf-text);background:0 0}.profile-modal-cancel:hover{background:var(--pf-bg)}.profile-modal-save{background:var(--pf-green);border-color:var(--pf-green);color:#fff}.profile-modal-save:hover{background:var(--pf-green-dark);border-color:var(--pf-green-dark)}@keyframes pfFadeUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.profile-header,div.profile-info,.daily-goals,.settings{animation:.5s both pfFadeUp}div.profile-info{animation-delay:50ms}.daily-goals{animation-delay:.1s}.settings{animation-delay:.15s}@media (width>=768px){body{padding:32px 40px}div.profile-info{grid-template-columns:auto 1fr auto;column-gap:24px;padding:18px 28px}.profile-icon{width:96px;height:96px;font-size:58px}.profile-name{font-size:32px}p.profile-info{font-size:20px}.profile-edit-button{grid-area:1/3/3;width:auto;margin-top:0;padding:10px 22px}.daily-goals{grid-template-columns:1fr auto;align-items:center;gap:12px 48px;padding:20px 28px;display:grid}.daily-goals-header{grid-column:1/-1;margin:0}.daily-goals-macros{grid-column:1;justify-content:space-around;margin:0}.daily-goals-edit-button{grid-column:2;width:auto;padding:10px 22px}}@media (width<=768px){body,.profile-page{margin-left:0}.profile-container{padding:20px 16px 96px}}:root{--auth-bg:#f4f5f1;--auth-card:#fff;--auth-surface:#f8f9f6;--auth-text:#161b18;--auth-muted:#7a847c;--auth-border:#e7eae4;--auth-green:#4f7a49;--auth-green-dark:#3f6439;--auth-green-soft:#e9f0e5;--auth-sidebar-bg:#0f1210;--auth-sidebar-text:#eef1e6;--auth-sidebar-muted:#93a08d;--auth-sidebar-border:#ffffff14;--auth-radius:20px;--auth-radius-sm:14px;--auth-shadow-sm:0 1px 2px #161b180a, 0 2px 8px #161b180d;--auth-shadow-md:0 12px 32px #161b1814;--auth-font:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif}:root[data-theme=dark]{--auth-bg:#0f1210;--auth-card:#171c19;--auth-surface:#121614;--auth-text:#eef1e6;--auth-muted:#93a08d;--auth-border:#2a312c;--auth-green:#8ab87e;--auth-green-dark:#a9d097;--auth-green-soft:#8ab87e24}.login-page{z-index:60;background-color:var(--auth-bg);min-height:100vh;color:var(--auth-text);font-family:var(--auth-font);-webkit-font-smoothing:antialiased;display:flex;position:fixed;inset:0;overflow-y:auto}.login-sidebar{background:radial-gradient(circle at 20% 20%, #8ab87e24, transparent 55%), var(--auth-sidebar-bg);width:36%;min-width:300px;max-width:460px;color:var(--auth-sidebar-text);border-right:1px solid var(--auth-sidebar-border);flex-direction:column;justify-content:space-between;gap:32px;padding:40px 44px;display:flex}.auth-brand{align-items:center;gap:12px;display:flex}.auth-logo-mark{color:#0f1210;background:linear-gradient(135deg,#a9d097,#4f7a49);border-radius:12px;flex-shrink:0;place-items:center;width:42px;height:42px;font-size:20px;font-weight:800;display:grid}.auth-brand-text{flex-direction:column;display:flex}.brand-logo{letter-spacing:-.02em;color:var(--auth-sidebar-text);margin:0;font-size:1.25rem;font-weight:800}.brand-sub{color:var(--auth-sidebar-muted);margin:2px 0 0;font-size:.78rem;font-weight:500}.auth-hero{flex-direction:column;gap:14px;display:flex}.brand-tagline{letter-spacing:-.025em;color:var(--auth-sidebar-text);margin:0;font-size:clamp(1.85rem,2.6vw,2.4rem);font-weight:800;line-height:1.15}.brand-description{color:var(--auth-sidebar-muted);margin:0;font-size:.95rem;line-height:1.55}.auth-dot{color:#8ab87e}.login-title .auth-dot,.register-title .auth-dot{color:var(--auth-green)}.brand-copyright{color:var(--auth-sidebar-muted);margin:0;font-size:.82rem}.login-content{flex:1;justify-content:center;align-items:center;padding:40px 28px;display:flex}.login-wrapper{background:var(--auth-card);border:1px solid var(--auth-border);border-radius:var(--auth-radius);width:100%;max-width:460px;box-shadow:var(--auth-shadow-md);padding:36px 34px;animation:.45s both authFadeUp}.login-header{text-align:left;margin:0 0 28px}.login-title{letter-spacing:-.02em;color:var(--auth-text);margin:0 0 6px;font-size:1.9rem;font-weight:800}.login-subtitle{color:var(--auth-muted);margin:0;font-size:.95rem}.auth-error{color:#b91c1c;background:#b91c1c14;border:1px solid #b91c1c40;border-radius:12px;margin-bottom:16px;padding:12px 14px;font-size:.88rem;font-weight:600}:root[data-theme=dark] .auth-error{color:#fca5a5;background:#ef444424;border-color:#ef444459}.login-page .submit-btn:disabled{opacity:.55;cursor:not-allowed;transform:none}.login-form{flex-direction:column;gap:16px;display:flex}.auth-field{flex-direction:column;gap:6px;display:flex}.auth-field-label{color:var(--auth-muted);font-size:.82rem;font-weight:600}.icon-input-field{background-color:var(--auth-surface);border:1px solid var(--auth-border);border-radius:var(--auth-radius-sm);align-items:center;gap:12px;height:50px;padding:0 16px;transition:border-color .18s,box-shadow .18s,background-color .18s;display:flex}.icon-input-field:focus-within{border-color:var(--auth-green);background-color:var(--auth-card);box-shadow:0 0 0 3px #4f7a4924}.icon-input-field input{color:var(--auth-text);background:0 0;border:none;outline:none;width:100%;font-family:inherit;font-size:.96rem}.icon-input-field input::placeholder{color:var(--auth-muted)}.login-page .submit-btn{color:#fff;border-radius:var(--auth-radius-sm);cursor:pointer;background:linear-gradient(120deg,#4f7a49,#3f6439);border:none;justify-content:center;align-items:center;gap:10px;height:50px;margin-top:8px;padding:0 20px;font-family:inherit;font-size:.98rem;font-weight:700;transition:transform .18s,box-shadow .18s,filter .18s;display:flex;box-shadow:0 8px 20px #4f7a4942}.login-page .submit-btn:hover{filter:brightness(1.04);transform:translateY(-1px);box-shadow:0 12px 26px #4f7a4957}.login-page .submit-btn:active{transform:translateY(0)}.btn-arrow{font-size:1.15rem;line-height:1;transition:transform .18s}.login-page .submit-btn:hover .btn-arrow{transform:translate(3px)}.login-footer{border-top:1px solid var(--auth-border);color:var(--auth-muted);justify-content:center;align-items:center;gap:6px;margin-top:24px;padding-top:18px;font-size:.9rem;display:flex}.login-footer p{margin:0}.login-footer a{color:var(--auth-green);font-weight:700;text-decoration:none}.login-footer a:hover{color:var(--auth-green-dark);text-decoration:underline}@keyframes authFadeUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media (width<=860px){.login-page{flex-direction:column}.login-sidebar{gap:16px;width:100%;min-width:0;max-width:none;padding:24px}.brand-tagline{font-size:1.5rem}.brand-description{display:none}.login-content{padding:24px 16px 40px}.login-wrapper{padding:28px 22px}}.register-page{z-index:60;background-color:var(--auth-bg,#f4f5f1);min-height:100vh;color:var(--auth-text,#161b18);font-family:var(--auth-font,"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);-webkit-font-smoothing:antialiased;display:flex;position:fixed;inset:0;overflow-y:auto}.register-sidebar{background:radial-gradient(circle at 20% 20%, #8ab87e24, transparent 55%), var(--auth-sidebar-bg,#0f1210);width:36%;min-width:300px;max-width:460px;color:var(--auth-sidebar-text,#eef1e6);border-right:1px solid var(--auth-sidebar-border,#ffffff14);flex-direction:column;justify-content:space-between;gap:32px;padding:40px 44px;display:flex}.register-content{flex:1;justify-content:center;align-items:center;padding:36px 28px;display:flex}.register-card{background:var(--auth-card,#fff);border:1px solid var(--auth-border,#e7eae4);border-radius:var(--auth-radius,20px);width:100%;max-width:600px;box-shadow:var(--auth-shadow-md,0 12px 32px #161b1814);padding:32px 34px;animation:.45s both authFadeUp}.back-btn{border:1px solid var(--auth-border,#e7eae4);cursor:pointer;color:var(--auth-muted,#7a847c);background:0 0;border-radius:10px;align-items:center;gap:6px;margin-bottom:18px;padding:7px 14px;font-family:inherit;font-size:.85rem;font-weight:600;transition:background-color .15s,border-color .15s,color .15s;display:inline-flex}.back-btn:hover{background:var(--auth-green-soft,#e9f0e5);border-color:var(--auth-green,#4f7a49);color:var(--auth-green-dark,#3f6439)}.stepper-container{margin-bottom:24px}.stepper-bars{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px;display:grid}.step-bar{background-color:var(--auth-border,#e7eae4);border-radius:999px;height:6px;transition:background-color .25s}.step-bar.active{background-color:var(--auth-green,#4f7a49)}.stepper-labels{color:var(--auth-muted,#7a847c);grid-template-columns:1fr 1fr;font-size:.8rem;font-weight:500;display:grid}.stepper-labels .step-label:last-child{text-align:right}.step-label.active{color:var(--auth-text,#161b18);font-weight:700}.register-header{margin-bottom:22px}.register-title{letter-spacing:-.02em;color:var(--auth-text,#161b18);margin:0 0 6px;font-size:1.75rem;font-weight:800}.register-subtitle{color:var(--auth-muted,#7a847c);margin:0;font-size:.92rem}.section-subtitle{text-transform:uppercase;letter-spacing:.06em;color:var(--auth-muted,#7a847c);margin:8px 0 0;font-size:.78rem;font-weight:700}.register-form{flex-direction:column;gap:12px;display:flex}.form-grid-2{grid-template-columns:1fr 1fr;gap:12px;display:grid}.form-grid-3{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.calorie-estimate-card{border-radius:var(--auth-radius-sm,14px);background:var(--auth-surface,#f8f9f6);border:1px solid var(--auth-border,#e7eae4);flex-direction:column;gap:12px;padding:16px 18px;display:flex}.calorie-estimate-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.calorie-estimate-label{text-transform:uppercase;letter-spacing:.06em;color:var(--auth-muted,#7a847c);margin-bottom:2px;font-size:.74rem;font-weight:700;display:block}.calorie-estimate-value{letter-spacing:-.02em;color:var(--auth-text,#161b18);margin:0;font-size:1.55rem;font-weight:800}.calorie-estimate-value span{color:var(--auth-muted,#7a847c);font-size:.88rem;font-weight:500}.calorie-estimate-meta{color:var(--auth-muted,#7a847c);margin:4px 0 0;font-size:.78rem}.calorie-mode-toggle{background:var(--auth-bg,#f4f5f1);border:1px solid var(--auth-border,#e7eae4);border-radius:10px;padding:3px;display:inline-flex}.calorie-mode-btn{color:var(--auth-muted,#7a847c);cursor:pointer;background:0 0;border:none;border-radius:8px;padding:7px 12px;font-family:inherit;font-size:.8rem;font-weight:600;transition:background-color .15s,color .15s}.calorie-mode-btn.is-active{background:var(--auth-green,#4f7a49);color:#fff}.custom-calorie-field{background:var(--auth-card,#fff)}.macro-preset-row{flex-wrap:wrap;gap:8px;display:flex}.macro-preset-chip{border:1px solid var(--auth-border,#e7eae4);background:var(--auth-surface,#f8f9f6);color:var(--auth-muted,#7a847c);cursor:pointer;border-radius:999px;padding:6px 12px;font-family:inherit;font-size:.78rem;font-weight:600;transition:background-color .15s,border-color .15s,color .15s}.macro-preset-chip:hover{border-color:var(--auth-green,#4f7a49);color:var(--auth-text,#161b18)}.macro-preset-chip.is-active{background:var(--auth-green-soft,#e9f0e5);border-color:var(--auth-green,#4f7a49);color:var(--auth-green-dark,#3f6439)}.macro-check-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.macro-pct-badge{font-size:.78rem;font-weight:700}.macro-pct-badge.is-valid{color:var(--auth-green-dark,#3f6439)}.macro-pct-badge.is-warn{color:#b45309}.macro-preview-grid{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.macro-preview-stat{background:var(--auth-card,#fff);border:1px solid var(--auth-border,#e7eae4);border-radius:10px;flex-direction:column;gap:2px;padding:10px 12px;display:flex}.macro-preview-stat strong{font-size:1.15rem;font-weight:800}.macro-preview-stat span{color:var(--auth-muted,#7a847c);font-size:.76rem}.macro-val-protein{color:#14b8a6}.macro-val-carbs{color:#f59e0b}.macro-val-fat{color:#ef4444}.register-page .submit-btn:disabled{opacity:.5;cursor:not-allowed;box-shadow:none;transform:none}.inline-field{background-color:var(--auth-surface,#f8f9f6);border:1px solid var(--auth-border,#e7eae4);border-radius:var(--auth-radius-sm,14px);flex-direction:column;gap:5px;padding:10px 14px;transition:border-color .18s,box-shadow .18s,background-color .18s;display:flex}.inline-field:focus-within{border-color:var(--auth-green,#4f7a49);background-color:var(--auth-card,#fff);box-shadow:0 0 0 3px #4f7a4924}.inline-label{color:var(--auth-muted,#7a847c);white-space:nowrap;font-size:.76rem;font-weight:600}.inline-field input,.inline-field select{color:var(--auth-text,#161b18);background:0 0;border:none;outline:none;width:100%;font-family:inherit;font-size:.96rem;font-weight:600}.inline-field input::placeholder{color:var(--auth-muted,#7a847c);font-weight:400}.inline-field select option{background:var(--auth-card,#fff);color:var(--auth-text,#161b18)}.macro-check-box{border:1px solid var(--auth-border,#e7eae4);border-radius:var(--auth-radius-sm,14px);background-color:var(--auth-green-soft,#e9f0e5);margin-top:4px;padding:14px 16px}.macro-check-box.is-warn{background-color:#f59e0b1a;border-color:#f59e0b59}.macro-check-title{color:var(--auth-text,#161b18);margin:0 0 4px;font-size:.85rem;font-weight:700}.macro-check-text{color:var(--auth-muted,#7a847c);margin:0;font-size:.86rem;line-height:1.45}.macro-check-text strong{color:var(--auth-text,#161b18)}.register-page .submit-btn{color:#fff;border-radius:var(--auth-radius-sm,14px);cursor:pointer;background:linear-gradient(120deg,#4f7a49,#3f6439);border:none;justify-content:center;align-items:center;gap:10px;height:50px;margin-top:8px;padding:0 20px;font-family:inherit;font-size:.98rem;font-weight:700;transition:transform .18s,box-shadow .18s,filter .18s;display:flex;box-shadow:0 8px 20px #4f7a4942}.register-page .submit-btn:hover{filter:brightness(1.04);transform:translateY(-1px);box-shadow:0 12px 26px #4f7a4957}.register-page .submit-btn:active{transform:translateY(0)}.register-page .submit-btn:hover .btn-arrow{transform:translate(3px)}.register-footer{border-top:1px solid var(--auth-border,#e7eae4);color:var(--auth-muted,#7a847c);justify-content:center;align-items:center;gap:6px;margin-top:22px;padding-top:18px;font-size:.9rem;display:flex}.register-footer p{margin:0}.register-footer a{color:var(--auth-green,#4f7a49);font-weight:700;text-decoration:none}.register-footer a:hover{color:var(--auth-green-dark,#3f6439);text-decoration:underline}@media (width<=860px){.register-page{flex-direction:column}.register-sidebar{gap:16px;width:100%;min-width:0;max-width:none;padding:24px}.register-content{padding:24px 16px 40px}.register-card{padding:26px 20px}.form-grid-2,.form-grid-3,.macro-preview-grid{grid-template-columns:1fr}}:root{--bg-primary:#f7f8f6;--bg-secondary:#f1f4ef;--bg-accent:#4f7a49;--bg-accent-dark:#3f6439;--bg-card:#fff;--bg-confirm:#e7ebe4;--text-primary:#0e1410;--text-light:#fff;--text-muted:#5c665f;--border-color:#dfe3db;--font-main:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--radius-lg:26px;--radius-md:17px;--shadow-sm:0 2px 8px #161b180f;--shadow-md:0 8px 24px #161b181f}*{box-sizing:border-box;font-family:var(--font-main);margin:0;padding:0}button,.scale-button,.back_button,.scale-search-add-button{background-color:var(--bg-card);border:2px solid var(--border-color);border-radius:var(--radius-md);color:var(--text-primary);cursor:pointer;box-shadow:var(--shadow-sm);justify-content:center;align-items:center;font-weight:700;text-decoration:none;transition:background-color .15s,border-color .15s,box-shadow .15s,transform .15s;display:flex}button:hover,.scale-button:hover,.back_button:hover,.scale-search-add-button:hover{border-color:var(--bg-accent);box-shadow:var(--shadow-md)}button:active,.scale-button:active,.back_button:active,.scale-search-add-button:active{transform:scale(.97)}button:focus-visible,.scale-button:focus-visible,.back_button:focus-visible,.scale-search-add-button:focus-visible{outline-offset:2px;outline:3px solid #4f7a4980}button:disabled{cursor:not-allowed;box-shadow:none}.scale-container{background-color:var(--bg-primary);flex-direction:column;width:100%;height:100vh;display:flex;position:fixed;top:0;left:0}.scale-content{flex-direction:row;width:100%;height:75%;display:flex}.scale-content-weight{background-color:var(--bg-primary);border-right:2px solid var(--border-color);flex-direction:column;justify-content:center;align-items:center;width:55%;height:100%;padding:24px;display:flex;position:relative}.scale-user-pill{background-color:var(--bg-card);border:2px solid var(--border-color);height:50px;color:var(--text-primary);box-shadow:var(--shadow-sm);z-index:10;border-radius:999px;align-items:center;gap:10px;padding:0 16px 0 8px;font-size:18px;font-weight:700;display:inline-flex;position:absolute;top:20px;left:20px}.scale-user-pill-avatar{color:#0f1210;background:linear-gradient(135deg,#a9d097,#4f7a49);border-radius:50%;place-items:center;width:34px;height:34px;font-size:16px;font-weight:800;display:grid}.scale-user-pill-caret{color:var(--text-muted);font-size:14px}.scale-toast{z-index:200;background-color:var(--bg-accent);color:var(--text-light);box-shadow:var(--shadow-md);border-radius:999px;padding:14px 24px;font-size:18px;font-weight:700;position:fixed;top:20px;left:50%;transform:translate(-50%)}.scale-toast.is-error{background-color:#b91c1c}.scale-user-overlay{z-index:150;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0e14108c;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.scale-user-modal{background:var(--bg-card);border:2px solid var(--border-color);border-radius:var(--radius-lg);width:100%;max-width:640px;max-height:85vh;box-shadow:var(--shadow-md);padding:28px;overflow-y:auto}.scale-user-modal-header{justify-content:space-between;align-items:center;margin-bottom:22px;display:flex}.scale-user-modal-header h2{color:var(--text-primary);font-size:28px;font-weight:800}.scale-user-close{border-radius:12px;width:44px;height:44px;font-size:20px}.scale-user-empty{color:var(--text-muted);text-align:center;padding:24px 0;font-size:18px}.scale-user-grid{grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:16px;display:grid}.scale-user-card{border:2px solid var(--border-color);border-radius:var(--radius-md);background:var(--bg-primary);cursor:pointer;min-height:148px;box-shadow:var(--shadow-sm);flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:20px 14px;transition:border-color .15s,box-shadow .15s,transform .15s;display:flex;position:relative}.scale-user-card:hover{border-color:var(--bg-accent);box-shadow:var(--shadow-md)}.scale-user-card.is-selected{border-color:var(--bg-accent);background:#e9f0e5}.scale-user-unpair{border:1px solid var(--border-color);background:var(--bg-card);width:28px;height:28px;color:var(--text-muted);box-shadow:none;border-radius:50%;font-size:13px;position:absolute;top:8px;right:8px}.scale-user-unpair:hover{color:#b91c1c;border-color:#b91c1c}.scale-pair-btn{background-color:var(--bg-accent);border-color:var(--bg-accent-dark);width:100%;height:56px;color:var(--text-light);margin-top:20px;font-size:18px}.scale-pair-btn:hover{background-color:var(--bg-accent-dark);border-color:var(--bg-accent-dark)}.scale-pair-panel{text-align:center;flex-direction:column;align-items:center;gap:18px;padding:8px 0;display:flex}.scale-pair-instructions{color:var(--text-muted);max-width:460px;font-size:18px;line-height:1.5}.scale-pair-instructions strong{color:var(--text-primary)}.scale-pair-code{letter-spacing:.12em;color:var(--bg-accent-dark);background:var(--bg-primary);border:2px dashed var(--bg-accent);border-radius:var(--radius-md);padding:18px 34px;font-size:56px;font-weight:800}.scale-pair-waiting{color:var(--text-muted);font-size:16px;font-weight:600}.scale-pair-error{color:#b91c1c;background:#fbeae7;border-radius:12px;margin-bottom:14px;padding:12px 16px;font-size:15px;font-weight:600}.scale-pair-actions{justify-content:center;gap:12px;width:100%;display:flex}.scale-pair-secondary{height:48px;padding:0 24px;font-size:16px}.scale-meal-summary{color:var(--text-muted);margin-bottom:20px;font-size:18px}.scale-meal-summary strong{color:var(--text-primary)}.scale-meal-grid{grid-template-columns:repeat(2,1fr);gap:16px;display:grid}.scale-meal-btn{border-radius:var(--radius-md);background:var(--bg-primary);flex-direction:column;gap:8px;min-height:128px;padding:18px 14px}.scale-meal-btn.is-suggested{border-color:var(--bg-accent);background:#e9f0e5}.scale-meal-emoji{font-size:34px;line-height:1}.scale-meal-label{color:var(--text-primary);font-size:20px;font-weight:800}.scale-meal-tag{color:var(--bg-accent-dark);font-size:13px;font-weight:700}.scale-user-avatar{color:#0f1210;background:linear-gradient(135deg,#a9d097,#4f7a49);border-radius:50%;place-items:center;width:58px;height:58px;font-size:24px;font-weight:800;display:grid}.scale-user-card-name{color:var(--text-primary);text-align:center;font-size:18px;font-weight:700}.scale-user-badge{color:var(--bg-accent-dark);font-size:13px;font-weight:700}.weight-label{color:var(--text-muted);letter-spacing:.02em;margin-bottom:8px;font-size:30px;font-weight:700}.scale-food-name{color:var(--bg-accent-dark);text-align:center;text-overflow:ellipsis;white-space:nowrap;max-width:90%;margin-bottom:16px;font-size:24px;font-weight:700;overflow:hidden}.scale-content-weight-value{justify-content:center;align-items:baseline;gap:8px;display:flex}.value{color:var(--text-primary);letter-spacing:-.02em;font-size:200px;font-weight:800;line-height:1}.unit{color:var(--text-muted);font-size:48px;font-weight:600}.scale-content-nutrition{background-color:var(--bg-secondary);flex-direction:column;width:45%;height:100%;padding:24px;display:flex}.scale-content-nutrition-header p{color:var(--text-primary);margin-bottom:20px;font-size:30px;font-weight:800}.scale-content-nutrition-macros-container{flex-direction:column;gap:16px;width:100%;display:flex}.scale-content-nutrition-calories{border-radius:var(--radius-lg);height:150px;box-shadow:var(--shadow-md);background:linear-gradient(135deg,#4f7a49,#3f6439);flex-direction:column;justify-content:space-between;padding:18px 22px;display:flex}.scale-content-nutrition-calories .scale-content-nutrition-protein-carbs-fat-label{color:#ffffffe6;font-size:26px;font-weight:700}.calories-value-unit{justify-content:center;align-items:baseline;gap:8px;display:flex}.calories-value{color:var(--text-light);letter-spacing:-.02em;font-size:96px;font-weight:800;line-height:1}.calories-unit{color:#ffffffd9;font-size:22px}.scale-content-nutrition-protein-carbs-fat-container{flex-direction:row;gap:12px;width:100%;display:flex}.scale-content-nutrition-protein-carbs-fat{background-color:var(--bg-card);border:2px solid var(--border-color);border-radius:var(--radius-md);min-width:0;height:134px;box-shadow:var(--shadow-sm);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:4px;display:flex}.scale-content-nutrition-protein-carbs-fat-label{color:var(--text-muted);font-size:22px;font-weight:700}.scale-content-nutrition-protein-carbs-fat-value-unit{align-items:baseline;gap:4px;display:flex}.scale-content-nutrition-protein-carbs-fat-value{color:var(--text-primary);letter-spacing:-.02em;font-size:52px;font-weight:800;line-height:1}.scale-content-nutrition-protein-carbs-fat-unit{color:var(--text-muted);font-size:18px}.scale-buttons{background-color:var(--bg-primary);border-top:2px solid var(--border-color);justify-content:space-around;align-items:center;gap:12px;width:100%;height:25%;padding:0 20px;display:flex}.scale-buttons button,.scale-buttons .scale-button{flex:1;gap:10px;max-width:320px;height:80px;font-size:26px}.scale-buttons button img,.scale-buttons .scale-button img{width:42px;height:42px;margin:0}.confirm-button{background-color:var(--bg-confirm);color:var(--text-muted)}.confirm-button-active{background-color:var(--bg-accent);color:var(--text-light);border-color:var(--bg-accent)}.confirm-button-active:hover{background-color:var(--bg-accent-dark);border-color:var(--bg-accent-dark)}.scale-search{background-color:var(--bg-primary);flex-direction:column;width:100%;height:100vh;padding:24px;display:flex;position:fixed;top:0;left:0}.back_button{gap:12px;width:150px;height:60px;font-size:24px}.back_button img{width:34px;height:34px;margin:0}.scale-search-header-container{flex-direction:row;align-items:center;margin-bottom:20px;display:flex}.scale-search-header-text{flex-direction:column;margin-left:20px;display:flex}.scale-search-header{color:var(--text-primary);margin-bottom:5px;font-size:40px;font-weight:800}.scale-search-description{color:var(--text-muted);font-size:20px}.scale-search-input{background-color:var(--bg-card);border:2px solid var(--border-color);border-radius:var(--radius-md);width:100%;height:90px;color:var(--text-primary);box-shadow:var(--shadow-sm);margin:0 0 24px;padding:10px 24px;font-size:24px;transition:border-color .15s,box-shadow .15s;display:block}.scale-search-input::placeholder{color:var(--text-muted)}.scale-search-input:focus{border-color:var(--bg-accent);outline:none;box-shadow:0 0 0 3px #4f7a4940}.scale-search>p{color:var(--text-primary);margin-bottom:16px;font-size:28px;font-weight:800}.scale-search-recent-foods{flex:1;grid-template-columns:repeat(4,1fr);gap:16px;width:100%;display:grid}.scale-search-recent-food{background-color:var(--bg-card);border:2px solid var(--border-color);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);flex-direction:column;align-items:center;padding:20px;transition:border-color .15s,box-shadow .15s;display:flex}.scale-search-recent-food:hover{border-color:var(--bg-accent);box-shadow:var(--shadow-md)}.scale-search-recent-food img{object-fit:cover;border-radius:var(--radius-md);width:100px;height:100px;margin:0 0 15px}.scale-search-recent-food p{color:var(--text-muted);margin:3px 0;font-size:18px}.scale-search-recent-food .food-name{color:var(--text-primary);margin-bottom:6px;font-size:22px;font-weight:800}.scale-search-add-button{background-color:var(--bg-accent);width:100%;height:54px;color:var(--text-light);border-color:var(--bg-accent);margin-top:auto;font-size:20px}.scale-search-add-button:hover{background-color:var(--bg-accent-dark);border-color:var(--bg-accent-dark)}.barcode-scanner{background-color:var(--bg-primary);flex-direction:column;width:100%;height:100vh;padding:24px;display:flex;position:fixed;top:0;left:0}.barcode-result{background-color:var(--bg-card);border:2px solid var(--border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;margin-top:20px;padding:40px;display:flex}.barcode-result h2{color:var(--text-primary);margin-bottom:8px;font-size:40px;font-weight:800}.barcode-result .barcode-value{color:var(--text-muted);letter-spacing:.08em;margin-bottom:16px;font-size:22px}.barcode-food-name{color:var(--bg-accent-dark);overflow-wrap:break-word;max-width:90%;margin-bottom:20px;font-size:30px;font-weight:800}.barcode-status{color:var(--text-muted);margin-bottom:20px;font-size:24px;font-weight:600}.barcode-status-error{color:#b91c1c}.food-data{flex-direction:column;align-items:center;gap:6px;margin-bottom:24px;display:flex}.food-data h3{color:var(--text-primary);margin-bottom:8px;font-size:32px;font-weight:800}.food-data p{color:var(--text-muted);margin:2px 0;font-size:24px}.food-data img{object-fit:cover;border-radius:var(--radius-md);width:120px;height:120px;margin:12px 0 0}.barcode-result-actions{flex-direction:row;gap:20px;display:flex}.barcode-result-actions .confirm-button-active,.barcode-result-actions .cancel-button{border-radius:var(--radius-md);cursor:pointer;width:240px;height:70px;box-shadow:var(--shadow-sm);border:2px solid #0000;justify-content:center;align-items:center;font-size:26px;font-weight:700;text-decoration:none;transition:background-color .15s,border-color .15s,transform .15s;display:flex}.barcode-result-actions .confirm-button-active{background-color:var(--bg-accent);color:var(--text-light)}.barcode-result-actions .confirm-button-active:hover{background-color:var(--bg-accent-dark)}.cancel-button{color:#b91c1c;background-color:#fbeae7;border-color:#f3c1b8}.cancel-button:hover{background-color:#f6d3ce;border-color:#b91c1c}.barcode-result-actions .confirm-button-active:active,.cancel-button:active{transform:scale(.97)}.scanner{color:var(--text-primary);font-family:var(--font-main);text-align:center;background:0 0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:16px;display:flex}.scanner-frame{background:#fff;border:2px solid #dde2da;border-radius:20px;justify-content:center;align-items:center;width:min(420px,85vw);height:230px;display:flex;position:relative;overflow:hidden;box-shadow:0 8px 20px #161b1814}.scanner-frame:before{content:"";-webkit-mask:conic-gradient(at 26px 26px, #000 75%, #0000 0) 0 0 / calc(100% - 26px) calc(100% - 26px);-webkit-mask:conic-gradient(at 26px 26px, #000 75%, #0000 0) 0 0 / calc(100% - 26px) calc(100% - 26px);mask:conic-gradient(at 26px 26px, #000 75%, #0000 0) 0 0 / calc(100% - 26px) calc(100% - 26px);pointer-events:none;border:3px solid #4f7a498c;border-radius:10px;position:absolute;inset:22px}.barcode{box-sizing:border-box;justify-content:center;align-items:center;gap:10px;width:76px;height:76px;padding:16px;display:flex;position:relative}.barcode:before{content:"";-webkit-mask:conic-gradient(at 18px 18px, #000 75%, #0000 0) 0 0 / calc(100% - 18px) calc(100% - 18px);-webkit-mask:conic-gradient(at 18px 18px, #000 75%, #0000 0) 0 0 / calc(100% - 18px) calc(100% - 18px);mask:conic-gradient(at 18px 18px, #000 75%, #0000 0) 0 0 / calc(100% - 18px) calc(100% - 18px);pointer-events:none;border:3.5px solid #4f7a4959;border-radius:8px;position:absolute;inset:0}.barcode span{background:#4f7a4999;border-radius:4px;width:3.5px;height:36px;display:block}.barcode span:nth-child(2),.barcode span:nth-child(3){height:42px}.barcode span:nth-child(n+5){display:none}.scan-line{background:#4f7a49;border-radius:2px;width:88%;height:2.5px;animation:2.2s ease-in-out infinite alternate scan;position:absolute;left:6%;box-shadow:0 0 8px #4f7a4999}.scanner h2{color:var(--text-primary);margin:0;font-size:34px;font-weight:800}.scanner p{color:var(--text-muted);margin:0;font-size:22px}@keyframes scan{0%{top:15%}to{top:85%}}@media (prefers-reduced-motion:reduce){.scan-line{animation:none;top:58%}}:root{--app-bg:#f4f5f1;--app-text:#161b18}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--app-bg:#0f1210;--app-text:#eef1e6;--db-bg:#0f1210;--db-card:#171c19;--db-text:#eef1e6;--db-muted:#93a08d;--db-border:#2a312c;--db-green:#8ab87e;--db-green-dark:#a9d097;--db-green-soft:#8ab87e24;--fl-bg:#0f1210;--fl-card:#171c19;--fl-text:#eef1e6;--fl-muted:#93a08d;--fl-border:#2a312c;--fl-green:#8ab87e;--fl-green-dark:#a9d097;--fl-green-soft:#8ab87e24;--pf-bg:#0f1210;--pf-card:#171c19;--pf-text:#eef1e6;--pf-muted:#93a08d;--pf-border:#2a312c;--pf-green:#8ab87e;--pf-green-dark:#a9d097;--pf-green-soft:#8ab87e24}:root[data-theme=dark] .dashboard-log-btn{background-color:#4f7a49}:root[data-theme=dark] .dashboard-log-btn:hover{background-color:#5c8f56}:root[data-theme=dark] .donut-track{stroke:#2a312c}:root[data-theme=dark] .macro-bar-track,:root[data-theme=dark] .macro-card-bar,:root[data-theme=dark] .progress-track{background:#2a312c}:root[data-theme=dark] .add-food-btn:hover,:root[data-theme=dark] .profile-edit-button:hover,:root[data-theme=dark] .daily-goals-edit-button:hover{background:#8ab87e3d}:root[data-theme=dark] .food-item-actions button.food-item-remove:hover{color:#f3c1b8;background:#b91c1c38}:root[data-theme=dark] .settings-logout-button{color:#f3c1b8;background-color:#b91c1c29;border-color:#b91c1c66}:root[data-theme=dark] .settings-logout-button:hover{background-color:#b91c1c42}:root[data-theme=dark] .theme-toggle{background-color:#3a423c}:root[data-theme=dark] .settings>div .settings-item:before{filter:brightness(0)invert()}
