*,:after,:before{box-sizing:border-box}body,html{margin:0;padding:0;min-height:100%}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;background:#f4f5f0;color:#172019;-webkit-font-smoothing:antialiased}button{font:inherit;cursor:pointer}button:disabled{cursor:default}.dashboard-loading,.profile-loading{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f4f5f0}.loading-spinner,.profile-loading:after{width:32px;height:32px;border:3px solid #dce2da;border-top-color:#506b54;border-radius:50%;animation:spin .75s linear infinite}.profile-loading:after{content:""}@keyframes spin{to{transform:rotate(1turn)}}.auth-page{min-height:100vh;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:30px 20px;background:radial-gradient(circle at 15% 20%,rgba(198,219,198,.65),transparent 32%),radial-gradient(circle at 85% 80%,rgba(218,225,207,.65),transparent 32%),#f3f5f0}.auth-background{position:absolute;inset:0;pointer-events:none;overflow:hidden}.auth-orb{position:absolute;border-radius:50%;filter:blur(2px)}.auth-orb-one{width:420px;height:420px;top:-180px;left:-120px;background:rgba(181,207,184,.28)}.auth-orb-two{width:360px;height:360px;right:-120px;bottom:-150px;background:rgba(210,218,192,.32)}.auth-card{width:min(100%,430px);position:relative;z-index:2;padding:39px 40px 32px;border:1px solid rgba(224,229,222,.95);border-radius:28px;background:rgba(255,255,255,.94);box-shadow:0 25px 70px rgba(38,53,42,.1),0 5px 20px rgba(38,53,42,.04);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.auth-logo{gap:10px;color:#26352b;letter-spacing:-.5px}.auth-logo,.auth-logo-mark{display:flex;align-items:center;font-size:18px;font-weight:800}.auth-logo-mark{width:39px;height:39px;justify-content:center;border-radius:13px;background:#293c2f;color:#ffffff}.auth-heading{margin-top:39px}.auth-heading h1{margin:0;color:#1f2b23;font-size:34px;line-height:1.05;letter-spacing:-1.5px;font-weight:760}.auth-heading p{margin:12px 0 0;color:#8a948c;font-size:13px;line-height:1.65}.auth-tabs{height:50px;margin-top:29px;padding:4px;display:grid;grid-template-columns:1fr 1fr;grid-gap:4px;gap:4px;border-radius:13px;background:#f0f2ee}.auth-tab{border:0;border-radius:10px;background:transparent;color:#929a94;font-size:12px;font-weight:700;transition:background .2s ease,color .2s ease,box-shadow .2s ease}.auth-tab:hover{color:#4c5c50}.auth-tab.active{background:#ffffff;color:#293c2f;box-shadow:0 3px 10px rgba(34,48,38,.07)}.auth-form{margin-top:24px;gap:17px}.auth-form,.auth-form label{display:flex;flex-direction:column}.auth-form label{gap:8px}.auth-form label>span{color:#526057;font-size:11px;font-weight:750}.auth-form input{width:100%;height:51px;padding:0 15px;border:1px solid #dfe5dd;border-radius:12px;outline:none;background:#fafbf9;color:#26332a;font-size:13px;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}.auth-form input::placeholder{color:#b0b7b1}.auth-form input:hover{border-color:#cfd8cf}.auth-form input:focus{border-color:#7d9981;background:#ffffff;box-shadow:0 0 0 4px rgba(104,133,108,.1)}.auth-form .auth-error{margin:0;padding:12px 14px;border:1px solid #ecd7d7;border-radius:11px;background:#fff7f7;color:#a25151;font-size:11px;line-height:1.5}.auth-submit{width:100%;height:52px;margin-top:2px;border:0;border-radius:13px;background:#293c2f;color:#ffffff;font-size:13px;font-weight:750;box-shadow:0 9px 22px rgba(41,60,47,.16);transition:background .2s ease,transform .2s ease,box-shadow .2s ease}.auth-submit:hover:not(:disabled){background:#3a5240;transform:translateY(-1px);box-shadow:0 12px 26px rgba(41,60,47,.2)}.auth-submit:active:not(:disabled){transform:translateY(0)}.auth-submit:disabled{opacity:.65;cursor:wait}.auth-footer{margin:24px 0 0;color:#9aa29c;text-align:center;font-size:11px;line-height:1.5}.auth-footer button{padding:0;border:0;background:transparent;color:#536e58;font-size:inherit;font-weight:750}.auth-footer button:hover{color:#293c2f;text-decoration:underline;text-underline-offset:3px}.dashboard{min-height:100vh;background:radial-gradient(circle at 80% 0,rgba(216,228,212,.55),transparent 31%),#f4f5f0}.dashboard-content{width:min(1160px,calc(100% - 48px));margin:0 auto;padding:38px 0 80px}.dashboard-header{height:76px;padding:0 42px;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.88);border-bottom:1px solid #e5e9e2;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);position:-webkit-sticky;position:sticky;top:0;z-index:50}.dashboard-brand{display:flex;align-items:center;gap:11px}.dashboard-logo{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:13px;background:#243429;color:#ffffff;font-size:18px;font-weight:800}.dashboard-brand>div:last-child{display:flex;flex-direction:column;gap:1px}.dashboard-brand strong{color:#202b23;font-size:17px;line-height:1;letter-spacing:-.4px}.dashboard-brand span{color:#9aa29b;font-size:9px;text-transform:uppercase;letter-spacing:.12em}.dashboard-user{display:flex;align-items:center;gap:13px}.dashboard-user-info{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.dashboard-user-info strong{color:#263129;font-size:13px;font-weight:700}.dashboard-user-info span{color:#9aa29b;font-size:10px}.profile-avatar{width:39px;height:39px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#dce7d9;color:#49604d;font-size:14px;font-weight:800}.logout-button{width:35px;height:35px;border:0;border-radius:10px;background:#f0f2ed;color:#788179;font-size:16px;transition:background .2s ease,color .2s ease}.logout-button:hover{background:#e5e9e2;color:#354238}.hero-row{margin-bottom:31px;display:flex;align-items:flex-end;justify-content:space-between;gap:40px}.dashboard-kicker{margin-bottom:9px;color:#849087;font-size:10px;letter-spacing:.14em;text-transform:uppercase}.hero-row h1{margin:0;color:#172019;font-size:clamp(36px,5vw,55px);line-height:.98;letter-spacing:-2.7px;font-weight:760}.hero-row p{max-width:470px;margin:17px 0 0;color:#7f8980;font-size:14px;line-height:1.65}.date-picker{min-width:290px;padding:7px;display:flex;align-items:center;justify-content:space-between;gap:9px;border:1px solid #e0e5de;border-radius:17px;background:#ffffff;box-shadow:0 9px 30px rgba(32,46,36,.055)}.date-picker>button{width:39px;height:39px;flex-shrink:0;border:0;border-radius:11px;background:#f1f3ef;color:#526257;font-size:23px;line-height:1;transition:background .2s ease,transform .2s ease}.date-picker>button:hover:not(:disabled){background:#e7ece5;transform:scale(1.03)}.date-picker>button:disabled{opacity:.3}.date-picker>div{display:flex;flex-direction:column;align-items:center;gap:4px}.date-picker span{color:#9aa29b;font-size:9px;font-weight:750;letter-spacing:.09em;text-transform:uppercase}.date-picker strong{color:#28342b;font-size:13px;font-weight:700;text-transform:capitalize}.auth-error{margin-bottom:20px;padding:13px 16px;border:1px solid #edd9d9;border-radius:12px;background:#fff7f7;color:#a25252;font-size:13px}.overview-grid{display:grid;grid-template-columns:1.05fr .95fr;grid-gap:14px;gap:14px;margin-bottom:14px}.calorie-card,.macro-card{min-height:320px;border-radius:25px;box-shadow:0 12px 40px rgba(35,49,39,.055)}.calorie-card{padding:28px 30px;display:flex;flex-direction:column;background:radial-gradient(circle at 100% 0,rgba(142,178,145,.28),transparent 36%),#293c2f;color:#ffffff;position:relative;overflow:hidden}.card-label{color:#929d94;font-size:9px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.calorie-card .card-label{color:rgba(255,255,255,.54)}.card-icon{width:39px;height:39px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:rgba(255,255,255,.1);color:#d6e7d8;font-size:21px}.calorie-card>div:first-child{display:flex;align-items:center;justify-content:space-between}.calorie-main{margin-top:36px}.calorie-main>div{display:flex;align-items:baseline;gap:8px}.calorie-main strong{font-size:clamp(53px,6vw,72px);line-height:.9;letter-spacing:-4px;font-weight:760}.calorie-main span{color:rgba(255,255,255,.58);font-size:15px}.calorie-main small{display:block;margin-top:11px;color:rgba(255,255,255,.43);font-size:12px}.calorie-progress{height:8px;margin-top:auto;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.11)}.calorie-progress div{height:100%;border-radius:inherit;background:#c5dcc8;transition:width .5s ease}.calorie-footer{margin-top:13px;display:flex;align-items:center;gap:7px;color:rgba(255,255,255,.48);font-size:11px}.calorie-footer strong{color:#d9e8da;font-size:12px}.progress-percent{margin-left:auto;color:rgba(255,255,255,.55)}.macro-card{padding:27px 29px;background:#ffffff;border:1px solid #e3e8e1}.macro-card-header{margin-bottom:23px;display:flex;align-items:flex-start;justify-content:space-between}.macro-card-header h2{margin:5px 0 0;color:#253128;font-size:21px;letter-spacing:-.6px}.macro-total{color:#35443a;font-size:18px;font-weight:750}.macro-total span{margin-left:3px;color:#9aa39c;font-size:10px;font-weight:500}.macro-row{display:flex;align-items:center;gap:12px;margin-bottom:18px}.macro-row:last-child{margin-bottom:0}.macro-row-icon{width:35px;height:35px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:11px;font-size:9px}.protein-icon{background:#eaf1ea;color:#58735c}.fat-icon{background:#f5eee2;color:#9b7a4a}.carbs-icon{background:#edf0f5;color:#667694}.macro-row-content{flex:1 1;min-width:0}.macro-row-content>div:first-child{margin-bottom:8px;display:flex;align-items:center;justify-content:space-between;gap:15px}.macro-row-content>div:first-child span{color:#667269;font-size:12px;font-weight:650}.macro-row-content>div:first-child strong{color:#27332b;font-size:12px;font-weight:750}.macro-row-content small{color:#9ba39d;font-size:10px;font-weight:500}.macro-line{height:5px;overflow:hidden;border-radius:999px;background:#edf0ec}.macro-line div{height:100%;border-radius:inherit;background:#75957a;transition:width .5s ease}.quick-stats{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:14px;gap:14px;margin-bottom:48px}.quick-stats article{min-height:91px;padding:18px;display:flex;align-items:center;gap:13px;border:1px solid #e3e8e1;border-radius:18px;background:#ffffff;box-shadow:0 7px 25px rgba(35,49,39,.035)}.quick-stat-icon{width:42px;height:42px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:13px;font-size:13px}.calories-icon{background:#e8eee8;color:#5d765f}.quick-stats article>div:last-child{display:flex;flex-direction:column;gap:4px}.quick-stats article span{color:#929b94;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.quick-stats article strong{color:#27332b;font-size:19px;font-weight:750}.quick-stats article strong small{color:#9ba39d;font-size:10px;font-weight:500}.meals-section{margin-top:0}.section-heading{margin-bottom:17px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.section-heading h2{margin:4px 0 0;color:#202c24;font-size:27px;line-height:1;letter-spacing:-1px}.add-food-button{min-height:43px;padding:0 16px;display:inline-flex;align-items:center;gap:8px;border:0;border-radius:12px;background:#293c2f;color:#ffffff;font-size:12px;font-weight:700;box-shadow:0 8px 20px rgba(41,60,47,.13);transition:transform .2s ease,background .2s ease}.add-food-button span{font-size:19px;font-weight:400;line-height:1}.add-food-button:hover{background:#3b5541;transform:translateY(-1px)}.meal-list{display:flex;flex-direction:column;gap:11px}.meal-card{overflow:hidden;border:1px solid #e3e8e1;border-radius:19px;background:#ffffff;box-shadow:0 7px 26px rgba(35,49,39,.035)}.meal-card-header{min-height:71px;padding:12px 21px;justify-content:space-between;gap:20px;border-bottom:1px solid #edf0ec}.meal-card-header,.meal-title{display:flex;align-items:center}.meal-title{gap:12px}.meal-icon{width:39px;height:39px;display:flex;align-items:center;justify-content:center;border-radius:12px;font-size:14px}.meal-icon.breakfast{background:#f5eee1;color:#a27e45}.meal-icon.snack{background:#e9f1e9;color:#5b795e}.meal-icon.lunch{background:#e9eef4;color:#60718d}.meal-icon.dinner{background:#eeebf1;color:#756481}.meal-title>div:last-child{display:flex;flex-direction:column;gap:3px}.meal-title span{color:#2a352d;font-size:13px;font-weight:750}.meal-title small{color:#a0a7a1;font-size:10px}.meal-card-header>strong{color:#354239;font-size:13px;font-weight:750}.meal-card-header>strong small{color:#9aa39c;font-size:10px;font-weight:500}.meal-products{display:flex;flex-direction:column}.meal-product{min-height:67px;padding:12px 21px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #f0f2ee;transition:background .2s ease}.meal-product:last-child{border-bottom:0}.meal-product:hover{background:#fafbf9}.meal-product>div:first-child{min-width:0;display:flex;flex-direction:column;gap:4px}.meal-product>div:first-child strong{overflow:hidden;color:#303b33;font-size:13px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.meal-product>div:first-child span{color:#9aa29b;font-size:10px}.meal-product-data{flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;gap:4px}.meal-product-data strong{color:#39463d;font-size:12px}.meal-product-data span{color:#9ba39d;font-size:10px}.modern-empty,.profile-empty{border:1px solid #e3e8e1;border-radius:22px;background:#ffffff;box-shadow:0 9px 30px rgba(35,49,39,.04)}.profile-empty{min-height:220px;padding:34px;display:flex;align-items:center;gap:22px}.modern-empty-icon,.profile-empty-icon{width:55px;height:55px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:17px;background:#e7eee6;color:#5d785f;font-size:25px}.profile-empty>div:nth-child(2){flex:1 1}.profile-empty>div:nth-child(2)>span{color:#849087;font-size:9px;font-weight:800;letter-spacing:.13em}.profile-empty h2{margin:7px 0;color:#27332b;font-size:21px;letter-spacing:-.6px}.profile-empty p{margin:0;color:#929b94;font-size:12px;line-height:1.6}.profile-empty>button{min-height:43px;padding:0 17px;display:inline-flex;align-items:center;gap:15px;border:0;border-radius:11px;background:#293c2f;color:#ffffff;font-size:12px;font-weight:700}.profile-empty>button span{font-size:17px}.modern-empty{min-height:270px;padding:35px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border-style:dashed}.modern-empty p{margin:11px 0 18px;color:#929b94;font-size:12px}.modern-empty h3{margin:16px 0 0;color:#29352c;font-size:17px}.modern-empty button{min-height:40px;padding:0 16px;border:0;border-radius:11px;background:#293c2f;color:#ffffff;font-size:12px;font-weight:700}.profile-page{min-height:100vh;position:relative;overflow:hidden;background:radial-gradient(circle at 85% 5%,rgba(210,226,205,.55),transparent 30%),radial-gradient(circle at 5% 90%,rgba(226,231,215,.45),transparent 28%),#f4f5f0;color:#172019}.profile-background{position:absolute;inset:0;overflow:hidden;pointer-events:none}.profile-background:after,.profile-background:before{content:"";position:absolute;border-radius:50%;filter:blur(3px)}.profile-background:before{width:430px;height:430px;top:-210px;right:-130px;background:rgba(185,210,184,.22)}.profile-background:after{width:330px;height:330px;bottom:-180px;left:-120px;background:rgba(213,220,193,.22)}.profile-container{position:relative;z-index:2;width:min(880px,calc(100% - 40px));margin:0 auto;padding:34px 0 70px}.profile-back{display:inline-flex;align-items:center;gap:9px;margin-bottom:30px;padding:9px 13px;border:1px solid #e0e5de;border-radius:11px;background:rgba(255,255,255,.72);color:#657067;font-size:11px;font-weight:700;text-decoration:none;box-shadow:0 5px 18px rgba(35,49,39,.035);transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease}.profile-back:hover{border-color:#cdd6cb;background:#ffffff;color:#293c2f;transform:translateX(-2px)}.profile-heading{margin-bottom:28px}.profile-heading>span{display:block;margin-bottom:9px;color:#849087;font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.profile-heading h1{margin:0;color:#172019;font-size:clamp(38px,6vw,58px);line-height:.98;letter-spacing:-2.8px;font-weight:760}.profile-heading p{max-width:590px;margin:15px 0 0;color:#818b82;font-size:13px;line-height:1.65}.profile-form{display:flex;flex-direction:column;gap:14px}.profile-card{padding:27px 29px;border:1px solid #e3e8e1;border-radius:23px;background:rgba(255,255,255,.92);box-shadow:0 12px 40px rgba(35,49,39,.045),0 3px 12px rgba(35,49,39,.025);-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}.profile-card-heading{margin-bottom:22px}.profile-card-heading>span{display:block;margin-bottom:6px;color:#929b94;font-size:9px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.profile-card-heading h2{margin:0;color:#27332b;font-size:20px;line-height:1.1;letter-spacing:-.55px}.profile-page .gender-selector{display:grid;grid-template-columns:1fr 1fr;grid-gap:5px;gap:5px;padding:4px;border-radius:13px;background:#eff1ed}.profile-page .gender-option{min-height:48px;padding:0 15px;border:0;border-radius:10px;background:transparent;color:#858e86;font-size:12px;font-weight:700;transition:background .2s ease,color .2s ease,box-shadow .2s ease}.profile-page .gender-option:hover{color:#4e5d51}.profile-page .gender-option.active{background:#ffffff;color:#293c2f;box-shadow:0 3px 10px rgba(34,48,38,.07)}.profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px}.profile-fields>*{min-width:0}.profile-input-wrap{display:flex;flex-direction:column;gap:8px}.profile-input-wrap>label,.profile-input-wrap>span{color:#59645c;font-size:10px;font-weight:750}.profile-input-wrap input,.profile-input-wrap select{width:100%;height:50px;padding:0 14px;border:1px solid #dfe5dd;border-radius:12px;outline:none;background:#fafbf9;color:#29352d;font-family:inherit;font-size:13px;font-weight:600;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}.profile-input-wrap input:hover,.profile-input-wrap select:hover{border-color:#cdd7cd}.profile-input-wrap input:focus,.profile-input-wrap select:focus{border-color:#7d9981;background:#ffffff;box-shadow:0 0 0 4px rgba(104,133,108,.1)}.profile-input-wrap input::placeholder{color:#b0b7b1}.profile-input-wrap select{cursor:pointer}.profile-page .activity-list{display:flex;flex-direction:column;gap:7px}.profile-page .activity-option{width:100%;min-height:62px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #e2e6df;border-radius:13px;background:#fafbf9;color:#29352d;text-align:left;transition:border-color .2s ease,background .2s ease,transform .2s ease}.profile-page .activity-option:hover{border-color:#cdd6cc;background:#ffffff;transform:translateY(-1px)}.profile-page .activity-option.active{border-color:#b7d45d;background:#f8fce9}.profile-page .activity-option>span{display:flex;flex-direction:column;gap:3px}.profile-page .activity-option strong{color:#354239;font-size:11px;font-weight:800}.profile-page .activity-option small{color:#929b94;font-size:9px;line-height:1.4}.profile-page .activity-option:after{content:"✓";width:23px;height:23px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e5e8e2;color:transparent;font-size:10px;font-weight:800}.profile-page .activity-option.active:after{background:#c8e45d;color:#293c2f}.profile-page .goal-list{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:8px;gap:8px}.profile-page .goal-option{min-height:91px;padding:14px;border:1px solid #e2e6df;border-radius:13px;background:#fafbf9;color:#29352d;text-align:left;transition:border-color .2s ease,background .2s ease,transform .2s ease}.profile-page .goal-option:hover{border-color:#ccd5ca;background:#ffffff;transform:translateY(-1px)}.profile-page .goal-option.active{border-color:#b7d45d;background:#f8fce9}.profile-page .goal-option strong{display:block;color:#303c33;font-size:11px;font-weight:800}.profile-page .goal-option small{display:block;margin-top:7px;color:#949c95;font-size:9px;line-height:1.45}.profile-message{padding:13px 15px;border:1px solid #dce6d8;border-radius:12px;background:#f5faf3;color:#5c755e;font-size:11px;font-weight:650;line-height:1.5}.profile-message.error{border-color:#ecd8d5;background:#fff7f6;color:#a35b52}.profile-result{padding:24px 27px;border-radius:21px;background:radial-gradient(circle at 100% 0,rgba(142,178,145,.26),transparent 40%),#293c2f;color:#ffffff;box-shadow:0 15px 45px rgba(35,49,39,.1)}.profile-result>span{display:block;margin-bottom:7px;color:rgba(255,255,255,.48);font-size:9px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.profile-result>strong{display:block;color:#ffffff;font-size:38px;line-height:1;letter-spacing:-2px;font-weight:760}.profile-result>strong small{margin-left:6px;color:rgba(255,255,255,.48);font-size:12px;font-weight:500;letter-spacing:0}.profile-macros{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:8px;gap:8px;margin-top:22px}.profile-macros>div{padding:13px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.07)}.profile-macros span{display:block;color:rgba(255,255,255,.45);font-size:9px}.profile-macros strong{display:block;margin-top:5px;color:#e0ebdf;font-size:16px;font-weight:750}.profile-macros small{color:rgba(255,255,255,.42);font-size:9px}.profile-submit{width:100%;min-height:56px;margin-top:2px;border:0;border-radius:14px;background:#293c2f;color:#ffffff;font-size:13px;font-weight:750;box-shadow:0 10px 25px rgba(41,60,47,.15);transition:background .2s ease,transform .2s ease,box-shadow .2s ease}.profile-submit:hover:not(:disabled){background:#3a5240;transform:translateY(-1px);box-shadow:0 13px 30px rgba(41,60,47,.2)}.profile-submit:active:not(:disabled){transform:translateY(0)}.profile-submit:disabled{opacity:.58;cursor:wait}.landing-page{--landing-bg:#f5f5f0;--landing-dark:#151714;--landing-muted:#777b73;--landing-line:#dfe1da;--landing-accent:#c8f04a;position:relative;min-height:100vh;overflow:hidden;background:radial-gradient(circle at 80% 18%,rgba(200,240,74,.14),transparent 30%),var(--landing-bg);color:var(--landing-dark)}.landing-glow{position:absolute;pointer-events:none;border-radius:50%;filter:blur(2px)}.landing-glow-one{width:420px;height:420px;right:-180px;top:180px;background:rgba(200,240,74,.11)}.landing-glow-two{width:260px;height:260px;left:-150px;bottom:40px;background:rgba(170,190,150,.08)}.landing-header{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;width:min(1380px,calc(100% - 64px));margin:0 auto;padding:28px 0}.landing-logo{display:inline-flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.landing-logo-mark{display:flex;align-items:center;justify-content:center;width:43px;height:43px;border-radius:13px;background:var(--landing-dark);color:var(--landing-accent);font-size:22px;font-weight:800;letter-spacing:-.06em}.landing-logo strong{display:block;font-size:18px;line-height:1;letter-spacing:-.04em}.landing-logo small{display:block;margin-top:5px;color:var(--landing-muted);font-size:8px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.landing-login{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:0 19px;border:1px solid var(--landing-line);border-radius:100px;background:rgba(255,255,255,.4);color:var(--landing-dark);cursor:pointer;font-size:13px;font-weight:700;transition:background .2s ease,border-color .2s ease,transform .2s ease}.landing-login span{font-size:17px;transition:transform .2s ease}.landing-login:hover{border-color:var(--landing-dark);background:#fff;transform:translateY(-1px)}.landing-login:hover span{transform:translateX(3px)}.landing-hero{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,.95fr) minmax(440px,.8fr);align-items:center;grid-gap:clamp(60px,8vw,150px);gap:clamp(60px,8vw,150px);width:min(1380px,calc(100% - 64px));min-height:calc(100vh - 150px);margin:0 auto;padding:30px 0 70px}.landing-copy{max-width:650px}.landing-eyebrow{display:flex;align-items:center;gap:10px;margin-bottom:27px;color:var(--landing-muted);font-size:10px;font-weight:800;letter-spacing:.17em;text-transform:uppercase}.landing-eyebrow span{width:26px;height:1px;background:var(--landing-dark)}.landing-copy h1{margin:0;font-size:clamp(64px,7vw,108px);font-weight:700;line-height:.88;letter-spacing:-.075em}.landing-copy h1 em{color:#777d72;font-style:normal}.landing-copy>p{max-width:480px;margin:36px 0 0;color:var(--landing-muted);font-size:16px;line-height:1.65}.landing-benefits{display:flex;flex-wrap:wrap;gap:11px 28px;margin-top:48px}.landing-benefits div{display:flex;align-items:center;gap:9px;color:#50544e;font-size:11px;font-weight:700}.landing-benefits span{color:#a0a49b;font-size:9px;font-weight:800;letter-spacing:.08em}.calculator-card{position:relative;width:100%;max-width:540px;margin-left:auto;padding:38px;border:1px solid rgba(20,23,20,.08);border-radius:30px;background:rgba(255,255,252,.82);box-shadow:0 30px 80px rgba(25,30,20,.08),0 4px 20px rgba(25,30,20,.03);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.calculator-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:30px}.calculator-heading>div:first-child>span,.result-top>div:first-child>span{color:#969b91;font-size:9px;font-weight:800;letter-spacing:.17em}.calculator-heading h2,.result-top h2{margin:9px 0 0;font-size:30px;line-height:1;letter-spacing:-.055em}.calculator-number{color:#b1b5ad;font-size:12px;font-weight:700}.calculator-form{gap:25px}.calculator-form,.form-section{display:flex;flex-direction:column}.form-section{gap:10px}.form-label{color:#555a52;font-size:11px;font-weight:800;letter-spacing:.04em}.landing-page .gender-switch{display:grid;grid-template-columns:1fr 1fr;grid-gap:4px;gap:4px;padding:4px;border-radius:13px;background:#eff0eb}.landing-page .gender-switch button{min-height:41px;border:0;border-radius:10px;background:transparent;color:#777b73;cursor:pointer;font-size:12px;font-weight:700}.landing-page .gender-switch button.active{background:#fff;color:var(--landing-dark);box-shadow:0 2px 8px rgba(20,23,20,.06)}.input-grid{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:10px;gap:10px}.input-grid label{display:block}.input-grid label>span{display:block;margin-bottom:7px;color:#777b73;font-size:10px;font-weight:700}.number-input{position:relative}.number-input input{width:100%;height:50px;padding:0 38px 0 14px;border:1px solid #e1e3dc;border-radius:12px;outline:none;background:#fafbf8;color:var(--landing-dark);font-size:16px;font-weight:700;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}.number-input input::placeholder{color:#c2c5bd}.number-input input:focus{border-color:#aeb5a4;background:#fff;box-shadow:0 0 0 3px rgba(200,240,74,.14)}.number-input small{position:absolute;top:50%;right:12px;transform:translateY(-50%);color:#9ca097;font-size:10px;font-weight:700}.select-list{display:flex;flex-direction:column;gap:6px}.landing-page .select-option{display:flex;align-items:center;justify-content:space-between;min-height:49px;padding:8px 13px;border:1px solid #e5e6e0;border-radius:12px;background:#fafbf8;color:var(--landing-dark);cursor:pointer;text-align:left;transition:border-color .2s ease,background .2s ease,transform .2s ease}.landing-page .select-option:hover{border-color:#c9cdc3;transform:translateY(-1px)}.landing-page .select-option.active{border-color:#b8dc5b;background:#f8fce9}.landing-page .select-option span{display:flex;flex-direction:column;gap:2px}.landing-page .select-option strong{font-size:11px;font-weight:800}.landing-page .select-option small{color:#969b91;font-size:9px}.landing-page .select-option i{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#e7e9e2;color:#58604e;font-size:11px;font-style:normal;font-weight:800}.landing-page .select-option.active i{background:var(--landing-accent)}.landing-page .goal-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:7px;gap:7px}.landing-page .goal-option{min-height:78px;padding:11px;border:1px solid #e4e6df;border-radius:12px;background:#fafbf8;color:var(--landing-dark);cursor:pointer;text-align:left;transition:border-color .2s ease,background .2s ease}.landing-page .goal-option strong{display:block;font-size:10px;line-height:1.2}.landing-page .goal-option small{display:block;margin-top:6px;color:#999d94;font-size:8px;line-height:1.35}.landing-page .goal-option.active{border-color:#b8dc5b;background:#f8fce9}.calculator-error{padding:11px 13px;border:1px solid #ead5d1;border-radius:10px;background:#fbf2f0;color:#9b5b52;font-size:11px;font-weight:600}.calculator-submit{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:56px;padding:0 18px 0 21px;border:0;border-radius:14px;background:var(--landing-dark);color:#fff;cursor:pointer;font-size:12px;font-weight:800;transition:transform .2s ease,box-shadow .2s ease}.calculator-submit span{display:flex;align-items:center;justify-content:center;width:31px;height:31px;border-radius:50%;background:var(--landing-accent);color:var(--landing-dark);font-size:17px}.calculator-submit:hover{transform:translateY(-2px);box-shadow:0 12px 25px rgba(20,23,20,.13)}.calculator-result{animation:landingResultIn .4s ease both}@keyframes landingResultIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.result-top{display:flex;align-items:flex-start;justify-content:space-between}.result-reset{padding:7px 11px;border:1px solid #e0e2db;border-radius:100px;background:#fff;color:#72776e;cursor:pointer;font-size:9px;font-weight:700}.calorie-result{display:flex;align-items:flex-end;gap:12px;margin:38px 0 28px}.calorie-result strong{font-size:clamp(64px,8vw,86px);font-weight:700;line-height:.82;letter-spacing:-.075em}.calorie-result>span{padding-bottom:3px;color:#858a80;font-size:11px;font-weight:700;line-height:1.35}.result-macros{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:7px;gap:7px;margin-bottom:24px}.result-macros>div{padding:15px 12px;border:1px solid #e5e6df;border-radius:12px;background:#fafbf8}.macro-dot{display:block;width:7px;height:7px;margin-bottom:11px;border-radius:50%}.protein-dot{background:#8abf52}.fat-dot{background:#d5a44a}.carbs-dot{background:#8c9dd0}.result-macros small{display:block;color:#979b92;font-size:9px}.result-macros strong{display:block;margin-top:5px;font-size:15px}.result-note{display:flex;gap:9px;margin-bottom:22px;padding:12px;border-radius:11px;background:#f2f3ed}.result-note>span{display:flex;flex:0 0 auto;align-items:center;justify-content:center;width:17px;height:17px;border-radius:50%;background:#dfe3d8;color:#6f7569;font-size:9px;font-weight:800}.result-note p{margin:0;color:#777c73;font-size:9px;line-height:1.5}.result-login{display:block;width:100%;margin-top:14px;border:0;background:transparent;color:#777c73;cursor:pointer;font-size:10px;font-weight:700}.result-login:hover{color:var(--landing-dark)}.landing-bottom{position:absolute;z-index:2;left:50%;bottom:25px;display:flex;align-items:center;justify-content:space-between;width:min(1380px,calc(100% - 64px));transform:translateX(-50%)}.landing-bottom>div:first-child{display:flex;align-items:center;gap:12px}.landing-bottom strong{font-size:10px}.landing-bottom span{color:#999d95;font-size:9px}.landing-scroll{display:flex;align-items:center;gap:10px}.landing-scroll span{color:#9da198;font-size:8px;font-weight:800;letter-spacing:.16em}.landing-scroll i{display:block;width:38px;height:1px;background:#c7cac2}.diary-add-page{padding:32px 24px 80px;background:radial-gradient(circle at 15% 10%,rgba(115,93,255,.08),transparent 32%),#f7f7f5}.diary-add-container{width:min(900px,100%)}.diary-add-back{color:#666;font:inherit}.diary-add-back:hover{color:#111}.diary-add-header{gap:32px;margin:45px 0 32px}.diary-add-header h1{margin:8px 0 12px;font-size:clamp(36px,6vw,64px);line-height:.98}.diary-add-header p{max-width:600px;margin:0;color:#777;font-size:16px;line-height:1.6}.diary-add-date{padding:14px 18px;border:1px solid rgba(0,0,0,.07);border-radius:16px;background:rgba(255,255,255,.75)}.diary-add-date span{color:#999}.diary-add-card{padding:30px;border:1px solid rgba(0,0,0,.07);background:rgba(255,255,255,.9);box-shadow:0 20px 60px rgba(0,0,0,.06)}.diary-add-section{margin-bottom:28px}.diary-add-label{margin-bottom:10px;color:#555;font-weight:700}.product-search-input{height:58px;padding:0 52px 0 18px;border:1px solid #dedede;border-radius:16px;color:#111;font:inherit}.product-search-input:focus{border-color:#222;box-shadow:0 0 0 4px rgba(0,0,0,.04)}.product-search-clear{right:10px;width:38px;height:38px;background:#f2f2f2;color:#666}.product-results{margin-top:10px;border:1px solid #e8e8e8;border-radius:16px}.product-result{min-height:68px;padding:12px 16px;border-bottom:1px solid #eee;background:#fff;color:#111;font:inherit}.product-result:hover{background:#f8f8f8}.product-result span{display:block;margin-top:4px;color:#999;font-size:12px}.product-result-kcal{margin-left:20px;font-weight:700}.product-result-kcal span{margin-top:2px;font-weight:400}.product-results-empty,.product-results-loading{min-height:90px;gap:10px;color:#888;font-size:14px}.selected-product{gap:14px;margin-top:10px;border:1px solid rgba(0,0,0,.07);border-radius:16px;background:#fafafa}.selected-product-icon{flex:0 0 40px;background:#111;font-weight:700}.selected-product-info span{margin-top:3px;color:#999}.selected-product button{border:0;background:transparent;color:#666;cursor:pointer;font:inherit;font-size:13px;font-weight:600}.selected-product button:hover{color:#111}.amount-input-wrap{position:relative;max-width:280px}.amount-input{height:58px;padding:0 48px 0 18px;border:1px solid #dedede;border-radius:16px;background:#fff;color:#111;font:inherit;font-size:20px;font-weight:600}.amount-input:focus{border-color:#222}.amount-input-wrap>span{position:absolute;top:50%;right:18px;transform:translateY(-50%);color:#888}.meal-select-grid{grid-gap:10px;gap:10px}.meal-select-option{min-height:90px;padding:14px 10px;border:1px solid #e5e5e5;color:#555;font:inherit;transition:border-color .2s ease,background .2s ease,transform .2s ease}.meal-select-option:hover{transform:translateY(-1px);border-color:#ccc}.meal-select-option.active{border-color:#111;background:#111;color:#fff}.meal-select-option span{display:block;margin-bottom:8px;font-size:20px}.meal-select-option strong{font-size:13px}.nutrition-preview{margin-top:10px;border-radius:20px;background:#f5f5f3}.nutrition-preview-header{align-items:flex-end}.nutrition-preview-header>div>span{color:#999;font-size:10px;font-weight:700;letter-spacing:.1em}.nutrition-preview-header h2{margin:5px 0 0;font-size:20px}.nutrition-grid{grid-gap:10px;gap:10px}.nutrition-grid>div{padding:16px;border-radius:14px;background:#fff}.nutrition-grid span{color:#888;font-size:12px}.nutrition-grid strong{display:block;font-size:23px}.nutrition-grid small{margin-left:4px;color:#999;font-size:11px;font-weight:400}.diary-add-submit{gap:12px;width:100%;margin-top:24px;background:#111;font:inherit;font-size:15px;font-weight:700;transition:opacity .2s ease,transform .2s ease}.diary-add-submit:hover{transform:translateY(-1px)}.diary-add-submit:disabled{opacity:.5;transform:none}.diary-add-error{margin-bottom:20px}.diary-add-success{margin-bottom:20px;padding:14px 16px;border:1px solid rgba(30,120,70,.15);border-radius:14px;background:#effaf3;color:#267346;font-size:14px}.food-type-tabs{grid-gap:5px;gap:5px;padding:4px;border-radius:13px;background:#eff1ed}.food-type-tab{min-height:48px;padding:0 15px;display:flex;align-items:center;justify-content:center;gap:9px;border-radius:10px;color:#858e86;font-family:inherit;font-size:12px;transition:background .2s ease,color .2s ease,box-shadow .2s ease}.food-type-tab:hover{color:#4e5d51}.food-type-tab.active{background:#ffffff;color:#293c2f;box-shadow:0 3px 10px rgba(34,48,38,.07)}.food-type-tab span{display:inline-flex;align-items:center;justify-content:center;color:#8ca58f;font-size:11px}.food-type-tab.active span{color:#68856c}@media (max-width:1050px){.landing-hero{grid-template-columns:1fr;gap:50px;min-height:auto;padding-top:55px;padding-bottom:100px}.landing-copy{max-width:720px}.calculator-card{max-width:600px;margin:0}.landing-bottom{position:relative;left:auto;bottom:auto;width:calc(100% - 64px);margin:-50px auto 30px;transform:none}}@media (max-width:900px){.overview-grid{grid-template-columns:1fr}.quick-stats{grid-template-columns:repeat(2,1fr)}.hero-row{align-items:flex-start;flex-direction:column}.date-picker{width:100%}}@media (max-width:700px){.dashboard-header{height:68px;padding:0 18px}.dashboard-content{width:calc(100% - 26px);padding-top:30px}.dashboard-user-info{display:none}.hero-row h1{font-size:39px;letter-spacing:-2px}.hero-row{margin-bottom:25px}.calorie-card,.macro-card{min-height:300px}.quick-stats{gap:9px;margin-bottom:37px}.quick-stats article{min-height:82px;padding:13px}.section-heading{align-items:flex-start;flex-direction:column;gap:14px}.add-food-button{width:100%;justify-content:center}.profile-empty{align-items:flex-start;flex-direction:column}.profile-empty>button{width:100%;justify-content:center}.profile-container{width:calc(100% - 26px);padding-top:25px;padding-bottom:45px}.profile-back{margin-bottom:24px}.profile-heading{margin-bottom:22px}.profile-heading h1{font-size:39px;letter-spacing:-2px}.profile-heading p{font-size:12px}.profile-card{padding:22px 19px;border-radius:19px}.profile-fields{gap:13px}.profile-fields,.profile-page .goal-list{grid-template-columns:1fr}.profile-page .goal-option{min-height:64px}.profile-result{padding:22px 20px}.diary-add-page{padding:20px 14px 50px}.diary-add-header{display:block;margin-top:32px}.diary-add-header h1{font-size:42px}.diary-add-date{display:inline-block;margin-top:20px}.diary-add-card{padding:20px;border-radius:22px}.meal-select-grid,.nutrition-grid{grid-template-columns:repeat(2,1fr)}.product-result{align-items:flex-start}.product-result-kcal{font-size:12px}}@media (max-width:650px){.landing-header{width:calc(100% - 32px);padding:18px 0}.landing-logo-mark{width:38px;height:38px;border-radius:11px}.landing-logo strong{font-size:16px}.landing-login{min-height:40px;padding:0 14px;font-size:11px}.landing-hero{width:calc(100% - 32px);gap:38px;padding-top:40px}.landing-copy h1{font-size:clamp(54px,16vw,78px)}.landing-copy>p{margin-top:25px;font-size:14px}.landing-benefits{margin-top:30px;gap:9px 17px}.calculator-card{padding:24px 18px;border-radius:22px}.calculator-heading h2,.result-top h2{font-size:26px}.input-grid,.landing-page .goal-grid{grid-template-columns:1fr}.landing-page .goal-option{min-height:58px}.result-macros{grid-template-columns:1fr}.result-macros>div{padding:12px}.landing-bottom{width:calc(100% - 32px);margin-top:-65px}.landing-bottom>div:first-child{display:none}.landing-scroll{margin-left:auto}}@media (max-width:520px){.auth-page{padding:18px}.auth-card{padding:31px 23px 27px;border-radius:23px}.auth-heading{margin-top:32px}.auth-heading h1{font-size:30px}.auth-heading p{font-size:12px}.auth-tabs{margin-top:24px}.auth-form{margin-top:20px}}@media (max-width:480px){.dashboard-brand span{display:none}.dashboard-logo{width:35px;height:35px}.profile-avatar{width:36px;height:36px}.logout-button{display:none}.hero-row h1{font-size:34px}.hero-row p{font-size:13px}.date-picker{min-width:0}.calorie-card,.macro-card{border-radius:20px}.calorie-card,.macro-card{padding:23px}.calorie-main strong{font-size:55px}.quick-stats{grid-template-columns:1fr 1fr}.quick-stats article{gap:9px}.quick-stat-icon{width:35px;height:35px;border-radius:10px}.quick-stats article strong{font-size:16px}.meal-card-header{padding:11px 15px}.meal-product{padding:13px 15px}.meal-product-data{align-items:flex-end}.profile-container{width:calc(100% - 22px);padding-top:20px}.profile-heading h1{font-size:34px;letter-spacing:-1.7px}.profile-card{padding:20px 16px;border-radius:17px}.profile-card-heading h2{font-size:18px}.profile-page .gender-option{min-height:44px}.profile-input-wrap input,.profile-input-wrap select{height:48px}.profile-page .activity-option{min-height:66px}.profile-result>strong{font-size:34px}.profile-macros{grid-template-columns:1fr}.profile-macros>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.profile-macros strong{margin-top:0}.profile-submit{min-height:53px}.food-type-tab{min-height:44px;font-size:11px}}@media (prefers-reduced-motion:reduce){.calculator-result{animation:none}.calculator-submit,.food-type-tab,.landing-login,.landing-login span,.landing-page .select-option,.profile-back,.profile-page .activity-option,.profile-page .gender-option,.profile-page .goal-option,.profile-submit{transition:none}.loading-spinner,.profile-loading:after{animation:none}}.diary-add-page{min-height:100vh;padding:32px 20px 70px;color:#172033;background:radial-gradient(circle at 10% 0,rgba(99,102,241,.08),transparent 32%),radial-gradient(circle at 90% 10%,rgba(16,185,129,.07),transparent 28%),#f6f7fb}.diary-add-container{width:100%;max-width:920px;margin:0 auto}.diary-add-back{padding:8px 0;border:0;background:transparent;color:#667085;font-size:14px;font-weight:600;cursor:pointer;transition:color .2s ease}.diary-add-back:hover{color:#111827}.diary-add-header{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin:28px 0}.dashboard-kicker{display:block;margin-bottom:10px;color:#6366f1;font-size:11px;font-weight:800;letter-spacing:.16em}.diary-add-header h1{margin:0;color:#111827;font-size:clamp(32px,5vw,48px);line-height:1;letter-spacing:-.04em}.diary-add-header p{max-width:620px;margin:16px 0 0;color:#667085;font-size:15px;line-height:1.65}.diary-add-date{flex:0 0 auto;min-width:130px;padding:15px 18px;border:1px solid #e6e8ef;border-radius:18px;background:rgba(255,255,255,.85);box-shadow:0 8px 30px rgba(16,24,40,.05);text-align:right}.diary-add-date span{display:block;margin-bottom:5px;color:#98a2b3;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.diary-add-date strong{color:#1d2939;font-size:14px}.diary-add-card{overflow:hidden;border:1px solid #e7e9f0;border-radius:28px;background:rgba(255,255,255,.94);box-shadow:0 25px 70px rgba(16,24,40,.08),0 4px 12px rgba(16,24,40,.03)}.diary-add-section{padding:25px 28px;border-bottom:1px solid #edf0f5}.diary-add-label{display:block;margin-bottom:12px;color:#344054;font-size:13px;font-weight:750}.food-type-tabs{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px;padding:5px;border-radius:16px;background:#f2f4f7}.food-type-tab{min-height:50px;border:0;border-radius:12px;background:transparent;color:#667085;font-size:14px;font-weight:700;cursor:pointer;transition:all .2s ease}.food-type-tab span{margin-right:8px;color:#98a2b3}.food-type-tab:hover{color:#344054}.food-type-tab.active{background:#fff;color:#4f46e5;box-shadow:0 3px 12px rgba(16,24,40,.08)}.food-type-tab.active span{color:#6366f1}.product-search-wrap{position:relative}.product-search-input{width:100%;height:54px;padding:0 48px 0 17px;border:1px solid #d9dde7;border-radius:15px;outline:none;background:#fff;color:#101828;font-size:15px;transition:border-color .2s ease,box-shadow .2s ease}.product-search-input::placeholder{color:#98a2b3}.product-search-input:focus{border-color:#818cf8;box-shadow:0 0 0 4px rgba(99,102,241,.1)}.product-search-clear{position:absolute;top:50%;right:9px;width:36px;height:36px;border:0;border-radius:10px;transform:translateY(-50%);background:#f2f4f7;color:#667085;font-size:22px;line-height:1;cursor:pointer}.product-results{margin-top:14px;overflow:hidden;border:1px solid #e8ebf1;border-radius:18px;background:#fff}.food-category{border-bottom:1px solid #edf0f5}.food-category:last-child{border-bottom:0}.food-category-header{display:flex;align-items:center;width:100%;min-height:58px;padding:0 17px;border:0;background:#fff;color:#1d2939;text-align:left;cursor:pointer;transition:background .18s ease}.food-category-header:hover{background:#f8f9fc}.food-category-header.open{background:linear-gradient(90deg,rgba(99,102,241,.07),rgba(99,102,241,.015))}.food-category-arrow{width:25px;color:#6366f1;font-size:10px}.food-category-header strong{flex:1 1;font-size:14px;font-weight:750}.food-category-count{min-width:30px;height:24px;padding:0 8px;border-radius:20px;background:#f2f4f7;color:#667085;font-size:11px;font-weight:750;line-height:24px;text-align:center}.food-category-header.open .food-category-count{background:#eef2ff;color:#4f46e5}.food-category-items{padding:0 10px 10px;background:#fafbfc}.product-result{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:64px;padding:12px 13px;border:0;border-bottom:1px solid #eef0f4;background:transparent;color:#1d2939;text-align:left;cursor:pointer;transition:background .18s ease,transform .18s ease}.product-result:last-child{border-bottom:0}.product-result:hover{border-radius:12px;background:#fff;transform:translateX(2px)}.product-result>div:first-child{min-width:0;padding-right:15px}.product-result strong{color:#1d2939;font-size:14px;font-weight:700}.product-result strong,.product-result>div:first-child span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-result>div:first-child span{margin-top:4px;color:#98a2b3;font-size:12px}.product-result-kcal{flex:0 0 auto;color:#344054;font-size:13px;font-weight:750;text-align:right}.product-result-kcal span{display:block;margin-top:3px;color:#98a2b3;font-size:10px;font-weight:500}.product-results-empty,.product-results-loading{display:flex;align-items:center;justify-content:center;min-height:100px;padding:25px;color:#98a2b3;font-size:13px;text-align:center}.product-results-loading{gap:10px}.loading-spinner{width:18px;height:18px;border:2px solid #e4e7ec;border-top-color:#6366f1;border-radius:50%;animation:diary-spin .8s linear infinite}@keyframes diary-spin{to{transform:rotate(1turn)}}.selected-product{display:flex;align-items:center;gap:13px;margin-top:14px;padding:15px;border:1px solid #c7d2fe;border-radius:17px;background:linear-gradient(135deg,#f5f7ff,#fafaff)}.selected-product-icon{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:40px;height:40px;border-radius:12px;background:#6366f1;color:#fff;font-size:18px;font-weight:800}.selected-product-info{min-width:0;flex:1 1}.selected-product-info strong{display:block;overflow:hidden;color:#1d2939;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.selected-product-info span{display:block;margin-top:4px;color:#667085;font-size:12px}.selected-product>button{flex:0 0 auto;border:0;background:transparent;color:#4f46e5;font-size:12px;font-weight:750;cursor:pointer}.amount-input-wrap{display:flex;align-items:center;max-width:240px;height:54px;overflow:hidden;border:1px solid #d9dde7;border-radius:15px;background:#fff}.amount-input{width:100%;height:100%;padding:0 15px;border:0;outline:none;background:transparent;color:#101828;font-size:18px;font-weight:700}.amount-input-wrap>span{padding-right:17px;color:#667085;font-size:14px;font-weight:700}.diary-add-hint{display:block;margin-top:9px;color:#98a2b3;font-size:12px}.meal-select-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:9px;gap:9px}.meal-select-option{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:92px;padding:12px 8px;border:1px solid #e4e7ec;border-radius:16px;background:#fff;color:#667085;cursor:pointer;transition:all .2s ease}.meal-select-option>span{margin-bottom:8px;color:#98a2b3;font-size:19px}.meal-select-option strong{font-size:12px}.meal-select-option:hover{border-color:#c7d2fe;background:#fafaff}.meal-select-option.active{border-color:#818cf8;background:#eef2ff;color:#4338ca;box-shadow:inset 0 0 0 1px #818cf8}.meal-select-option.active>span{color:#6366f1}.nutrition-preview{margin:0 28px 24px;padding:22px;border-radius:22px;background:linear-gradient(135deg,#171b31,#292e52);color:#fff}.nutrition-preview-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.nutrition-preview-header span{display:block;margin-bottom:5px;color:#a5b4fc;font-size:9px;font-weight:800;letter-spacing:.16em}.nutrition-preview-header h2{margin:0;font-size:19px}.nutrition-preview-header>strong{color:#e0e7ff;font-size:14px}.nutrition-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:8px;gap:8px}.nutrition-grid>div{padding:14px;border:1px solid rgba(255,255,255,.1);border-radius:15px;background:rgba(255,255,255,.06)}.nutrition-grid span{display:block;margin-bottom:7px;color:#aeb5ce;font-size:11px}.nutrition-grid strong{display:flex;align-items:baseline;gap:4px;font-size:22px}.nutrition-grid small{color:#aeb5ce;font-size:10px;font-weight:500}.diary-add-submit{display:flex;align-items:center;justify-content:center;gap:15px;width:calc(100% - 56px);min-height:58px;margin:0 28px 28px;border:0;border-radius:16px;background:#4f46e5;color:#fff;font-size:14px;font-weight:750;cursor:pointer;box-shadow:0 12px 25px rgba(79,70,229,.22);transition:all .2s ease}.diary-add-submit:hover:not(:disabled){background:#4338ca;transform:translateY(-1px);box-shadow:0 16px 30px rgba(79,70,229,.28)}.diary-add-submit:disabled{opacity:.55;cursor:not-allowed}.diary-add-submit span{font-size:20px}.auth-error.diary-add-error,.diary-add-success{margin-bottom:18px;padding:14px 17px;border-radius:14px;font-size:13px;font-weight:600}.auth-error.diary-add-error{border:1px solid #fecaca;background:#fff1f2;color:#b42318}.diary-add-success{border:1px solid #a7f3d0;background:#ecfdf3;color:#047857}@media (max-width:700px){.diary-add-page{padding:18px 12px 45px}.diary-add-header{align-items:flex-start;flex-direction:column;gap:18px;margin:22px 0}.diary-add-header h1{font-size:34px}.diary-add-date{width:100%;text-align:left}.diary-add-card{border-radius:21px}.diary-add-section{padding:20px 16px}.food-type-tab{min-height:46px;font-size:13px}.food-category-header{min-height:54px;padding:0 13px}.food-category-items{padding:0 6px 6px}.product-result{min-height:60px;padding:11px 9px}.product-result-kcal{font-size:12px}.meal-select-grid{grid-template-columns:repeat(2,1fr)}.nutrition-preview{margin:0 16px 20px;padding:17px;border-radius:18px}.nutrition-grid{grid-template-columns:repeat(2,1fr)}.nutrition-grid>div{padding:12px}.nutrition-grid strong{font-size:20px}.diary-add-submit{width:calc(100% - 32px);margin:0 16px 20px}}@media (max-width:420px){.diary-add-page{padding-right:8px;padding-left:8px}.diary-add-header h1{font-size:30px}.product-result{align-items:flex-start;gap:8px}.product-result-kcal{flex:0 0 72px}.selected-product{align-items:flex-start}.selected-product>button{font-size:11px}}.calorie-card-exceeded{background:radial-gradient(circle at 100% 0,rgba(239,68,68,.16),transparent 45%),linear-gradient(145deg,#fff7f7,#fff1f1);border-color:rgba(239,68,68,.28)}.calorie-card-exceeded .card-label{color:#b42318}.calorie-card-exceeded .card-icon{background:rgba(239,68,68,.12);color:#dc2626}.calorie-card-exceeded .calorie-main strong{color:#b42318}.calorie-card-exceeded .calorie-progress{background:rgba(239,68,68,.12)}.calorie-card-exceeded .calorie-progress>div{background:linear-gradient(90deg,#ef4444,#dc2626)}.calorie-card-exceeded .calorie-footer{color:#991b1b}.calorie-card-exceeded .calorie-footer strong{color:#dc2626}.calorie-card-exceeded .progress-percent.exceeded{background:rgba(239,68,68,.12);color:#b42318}.weekly-balance-card{position:relative;overflow:hidden;padding:24px;border:1px solid #e5e7eb;border-radius:24px;background:#ffffff;transition:border-color .2s ease,background .2s ease,transform .2s ease}.weekly-balance-card:after{content:"";position:absolute;width:140px;height:140px;right:-55px;top:-55px;border-radius:50%;background:rgba(15,23,42,.035);pointer-events:none}.weekly-balance-positive{border-color:rgba(239,68,68,.22);background:radial-gradient(circle at 100% 0,rgba(239,68,68,.12),transparent 42%),linear-gradient(145deg,#ffffff,#fff8f8)}.weekly-balance-positive .card-label{color:#b42318}.weekly-balance-positive .card-icon{background:rgba(239,68,68,.1);color:#dc2626}.weekly-balance-negative{border-color:rgba(34,197,94,.2);background:radial-gradient(circle at 100% 0,rgba(34,197,94,.1),transparent 42%),linear-gradient(145deg,#ffffff,#f8fff9)}.weekly-balance-negative .card-label{color:#15803d}.weekly-balance-negative .card-icon{background:rgba(34,197,94,.1);color:#16a34a}.weekly-balance-neutral{background:radial-gradient(circle at 100% 0,rgba(100,116,139,.08),transparent 42%),#ffffff}.weekly-balance-main{position:relative;z-index:1;margin-top:22px}.weekly-balance-main strong{display:block;font-size:clamp(28px,3vw,38px);line-height:1;letter-spacing:-.04em;color:#111827}.weekly-balance-positive .weekly-balance-main strong{color:#dc2626}.weekly-balance-negative .weekly-balance-main strong{color:#16a34a}.weekly-balance-equivalent{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;padding-top:18px;border-top:1px solid rgba(148,163,184,.18)}.weekly-balance-equivalent span{max-width:230px;font-size:12px;line-height:1.45;color:#64748b}.weekly-balance-equivalent strong{flex-shrink:0;font-size:17px;color:#334155}.weekly-balance-positive .weekly-balance-equivalent strong{color:#dc2626}.weekly-balance-negative .weekly-balance-equivalent strong{color:#16a34a}.weekly-balance-note{position:relative;z-index:1;margin:16px 0 0;padding:12px 14px;border-radius:12px;background:rgba(241,245,249,.75);color:#64748b;font-size:11px;line-height:1.55}.weekly-balance-positive .weekly-balance-note{background:rgba(254,226,226,.55);color:#7f1d1d}.weekly-balance-negative .weekly-balance-note{background:rgba(220,252,231,.55);color:#166534}@media (max-width:700px){.weekly-balance-card{padding:20px;border-radius:20px}.weekly-balance-equivalent{align-items:flex-start;flex-direction:column;gap:8px}.weekly-balance-equivalent span{max-width:none}}.meal-product-actions{display:flex;align-items:center;gap:6px}.meal-action-button{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid #e5e7eb;border-radius:10px;background:#ffffff;color:#64748b;font-size:16px;line-height:1;cursor:pointer;transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease}.meal-action-button:hover{background:#f8fafc;border-color:#cbd5e1;color:#334155;transform:translateY(-1px);box-shadow:0 4px 12px rgba(15,23,42,.06)}.meal-action-button:active{transform:translateY(0)}.meal-action-button.edit:hover{background:#f0fdf4;border-color:#bbf7d0;color:#15803d}.meal-action-button.delete:hover{background:#fff1f2;border-color:#fecdd3;color:#dc2626}.meal-action-button:focus-visible{outline:3px solid rgba(100,116,139,.18);outline-offset:2px}.date-today-button,.go-today-button,.today-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border:1px solid #e2e8f0;border-radius:11px;background:#ffffff;color:#475569;font-family:inherit;font-size:12px;font-weight:700;line-height:1;white-space:nowrap;cursor:pointer;box-shadow:0 3px 10px rgba(15,23,42,.04);transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease}.date-today-button:hover,.go-today-button:hover,.today-button:hover{border-color:#cbd5e1;background:#f8fafc;color:#1e293b;transform:translateY(-1px);box-shadow:0 6px 16px rgba(15,23,42,.07)}.date-today-button:active,.go-today-button:active,.today-button:active{transform:translateY(0)}.date-today-button:focus-visible,.go-today-button:focus-visible,.today-button:focus-visible{outline:3px solid rgba(100,116,139,.18);outline-offset:2px}@media (max-width:600px){.meal-action-button{width:34px;height:34px}.date-today-button,.go-today-button,.today-button{min-height:36px;padding:0 12px;font-size:11px}}.meal-product-edit-form{display:flex;align-items:center;gap:6px;width:-moz-fit-content;width:fit-content;max-width:100%;padding:6px 8px;border:1px solid #e5e7eb;border-radius:11px;background:#f8fafc}.meal-product-input{flex:0 0 100px;width:100px;padding:0 10px;background:#ffffff}.meal-product-input,.meal-product-select{height:36px;box-sizing:border-box;border:1px solid #dfe5ec;border-radius:8px;color:#334155;font-family:inherit;font-size:12px;font-weight:600;outline:none}.meal-product-select{flex:0 0 140px;width:140px;padding:0 32px 0 10px;background-color:#ffffff;cursor:pointer}.meal-product-input::placeholder{color:#94a3b8}.meal-product-input:hover,.meal-product-select:hover{border-color:#cbd5e1}.meal-product-input:focus,.meal-product-select:focus{border-color:#94a3b8;box-shadow:0 0 0 3px rgba(100,116,139,.08)}.meal-product-edit-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}.meal-product-cancel,.meal-product-save{height:36px;padding:0 11px;border-radius:8px;font-family:inherit;font-size:11px;font-weight:700;line-height:1;white-space:nowrap;cursor:pointer}.meal-product-save{border:1px solid #bbf7d0;background:#f0fdf4;color:#15803d}.meal-product-save:hover:not(:disabled){border-color:#86efac;background:#dcfce7;color:#166534}.meal-product-cancel{border:1px solid #e2e8f0;background:#ffffff;color:#64748b}.meal-product-cancel:hover:not(:disabled){border-color:#cbd5e1;background:#f1f5f9;color:#334155}.meal-product-cancel:disabled,.meal-product-save:disabled{opacity:.55;cursor:not-allowed}@media (max-width:600px){.meal-product-edit-form{width:100%;max-width:100%;overflow-x:auto}.meal-product-input{flex:0 0 90px;width:90px}.meal-product-select{flex:0 0 125px;width:125px}.meal-product-cancel,.meal-product-save{flex:0 0 auto}}.meal-product-edit-form{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;gap:6px!important;padding:6px 8px!important;box-sizing:border-box!important}.meal-product-edit-form .meal-product-input{display:block!important;flex:0 0 100px!important;width:100px!important;min-width:100px!important;max-width:100px!important;height:38px!important;box-sizing:border-box!important;padding:0 10px!important}.meal-product-edit-form .meal-product-select{display:block!important;flex:0 0 145px!important;width:145px!important;min-width:145px!important;max-width:145px!important;height:38px!important;box-sizing:border-box!important;padding:0 36px 0 10px!important}.meal-product-edit-form .meal-product-edit-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;width:auto!important;min-width:max-content!important;margin:0!important;gap:5px!important}.meal-product-edit-form .meal-product-cancel,.meal-product-edit-form .meal-product-save{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;height:38px!important;padding:0 12px!important;box-sizing:border-box!important;white-space:nowrap!important}.weight-progress-card{position:relative;overflow:hidden;padding:24px;border:1px solid #e5e7eb;border-radius:24px;background:radial-gradient(circle at 100% 0,rgba(59,130,246,.1),transparent 42%),linear-gradient(145deg,#ffffff,#f8fbff);transition:border-color .2s ease,background .2s ease,transform .2s ease}.weight-progress-card:after{content:"";position:absolute;width:140px;height:140px;right:-55px;top:-55px;border-radius:50%;background:rgba(59,130,246,.045);pointer-events:none}.weight-progress-card .card-label{position:relative;z-index:1;color:#2563eb}.weight-progress-card .card-icon{background:rgba(59,130,246,.1);color:#2563eb}.weight-progress-main{position:relative;z-index:1;margin-top:22px}.weight-progress-main strong{display:block;font-size:clamp(28px,3vw,38px);line-height:1;letter-spacing:-.04em;color:#111827}.weight-progress-main span{display:block;margin-top:8px;font-size:12px;line-height:1.4;color:#64748b}.weight-progress-details{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;gap:10px;margin-top:22px}.weight-progress-detail{min-width:0;padding:14px;border-radius:14px;background:rgba(241,245,249,.7);border:1px solid rgba(148,163,184,.12)}.weight-progress-detail span{display:block;font-size:11px;line-height:1.4;color:#64748b}.weight-progress-detail strong{display:block;margin-top:5px;font-size:16px;line-height:1.25;color:#334155}.weight-progress-direction{position:relative;z-index:1;margin-top:12px;padding:11px 13px;border-radius:12px;background:rgba(219,234,254,.65);color:#1d4ed8;font-size:11px;line-height:1.45}.weight-progress-reached{border-color:rgba(34,197,94,.22);background:radial-gradient(circle at 100% 0,rgba(34,197,94,.12),transparent 42%),linear-gradient(145deg,#ffffff,#f7fff9)}.weight-progress-reached .card-label{color:#15803d}.weight-progress-reached .card-icon{background:rgba(34,197,94,.1);color:#16a34a}.weight-progress-reached .weight-progress-main strong{color:#16a34a}.weight-progress-reached .weight-progress-detail:last-child{background:rgba(220,252,231,.65)}.weight-progress-reached .weight-progress-detail:last-child strong{color:#15803d}@media (max-width:700px){.weight-progress-card{padding:20px;border-radius:20px}.weight-progress-details{grid-template-columns:1fr}}.weight-add-button{width:100%;margin-top:18px;padding:12px 16px;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:#f7f8f6;color:#1d211d;font:inherit;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:.2s}.weight-add-button:hover{background:#eef0ed;transform:translateY(-1px)}.weight-add-button span{font-size:20px;line-height:1;font-weight:400}.weight-entry-form{margin-top:18px;padding:14px;border-radius:14px;background:#f7f8f6;border:1px solid rgba(0,0,0,.06)}.weight-entry-title{margin-bottom:10px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#777}.weight-entry-controls{display:flex;align-items:center;gap:8px}.weight-input-wrap{position:relative;flex:1 1}.weight-input-wrap input{width:100%;height:42px;padding:0 38px 0 12px;border:1px solid #dfe2de;border-radius:10px;background:#fff;color:#171917;font:inherit;font-weight:600;outline:none;box-sizing:border-box}.weight-input-wrap input:focus{border-color:#9ca89b;box-shadow:0 0 0 3px rgba(100,120,100,.08)}.weight-input-wrap span{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:13px;color:#888;pointer-events:none}.weight-cancel-button,.weight-save-button{height:42px;padding:0 14px;border-radius:10px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}.weight-save-button{border:0;background:#20251f;color:#fff}.weight-save-button:hover{background:#30372e}.weight-cancel-button:disabled,.weight-save-button:disabled{opacity:.5;cursor:default}.weight-cancel-button{border:1px solid #dfe2de;background:#fff;color:#666}.weight-cancel-button:hover{background:#f1f2f0}.weight-entry-error{margin-top:8px;color:#c44;font-size:12px}@media(max-width:600px){.weight-entry-controls{flex-wrap:wrap}.weight-input-wrap{flex:1 1 100%}.weight-cancel-button,.weight-save-button{flex:1 1}}