.profile-trigger{border:1px solid #dbcfc2;border-radius:50%;background:#fff9f2;color:#805239;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}.profile-trigger svg{width:21px;height:21px}.profile-menu-wrap{position:relative;margin-left:auto}.profile-menu{position:absolute;right:0;top:46px;z-index:100;width:190px;padding:8px;border:1px solid #e8dfd4;border-radius:16px;background:#fff;box-shadow:0 12px 35px #44332322}.profile-menu button{width:100%;padding:13px;border:0;background:transparent;text-align:left;font:inherit;font-size:13px;cursor:pointer;color:#5c4535}.profile-menu button:hover{background:#f8f1e9;border-radius:10px}.account-dialog{position:fixed;inset:0;margin:auto;width:min(540px,calc(100% - 24px));max-height:90dvh;border:1px solid #e6d9ca;border-radius:24px;padding:0;background:#fffdf9;color:#3c3028;box-shadow:0 30px 100px #30261f44;font-family:inherit;overflow:auto}.account-dialog::backdrop{background:#211c1866;backdrop-filter:blur(4px)}.account-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 26px;border-bottom:1px solid #eee4d8}.account-heading h2{font-size:19px;margin:0}.account-close{border:0;background:#f4eee7;width:34px;height:34px;border-radius:50%;font-size:23px;cursor:pointer}.account-body{padding:25px}.account-body h3{font-size:24px;line-height:1.25;margin:12px 0}.account-body p{font-size:13px;line-height:1.65;color:#796959;margin:10px 0 20px}.account-body label{display:block;font-size:12px;font-weight:700;margin:17px 0 7px}.account-body input,.account-body select{box-sizing:border-box;width:100%;padding:13px;border:1px solid #d8cbbc;border-radius:12px;background:#fff;color:#352c25;font:inherit;font-size:15px}.account-body input:focus,.account-body select:focus{outline:2px solid #ad7d51;outline-offset:2px}.account-body input[type=radio]{width:18px;accent-color:#976238}.account-primary,.account-secondary{padding:13px 18px;border-radius:12px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.account-primary{border:1px solid #805239;background:#805239;color:white}.account-secondary{border:1px solid #e0d3c5;background:white;color:#805239}.account-actions{display:flex;gap:10px;justify-content:space-between;margin-top:26px;flex-wrap:wrap}.account-actions>button:only-child{width:100%}.account-link{border:0;background:none;color:#805239;text-decoration:underline;padding:10px 0;cursor:pointer;font:inherit;font-size:13px}.account-error{font-size:13px;color:#a12828;background:#ffefec;border-radius:12px;padding:12px;line-height:1.5;margin:15px 25px}.account-error[hidden]{display:none}.account-body small{display:block;color:#897c6e;font-size:11px;line-height:1.55;margin-top:10px}.account-progress{display:flex;gap:6px;margin-bottom:24px}.account-progress span{height:5px;background:#e9e1d6;flex:1;border-radius:4px}.account-progress .done{background:#a77446}.account-step{font-size:10px;color:#9b704c;font-weight:800;letter-spacing:1.4px;text-transform:uppercase}.activity-option{display:flex!important;align-items:flex-start;gap:12px;padding:15px;border:1px solid #e1d6c9;border-radius:14px;cursor:pointer;margin:10px 0!important;background:white}.activity-option:has(input:checked){border-color:#9c7049;background:#faf1e6}.activity-option input{margin-top:3px}.activity-option strong{font-size:13px;display:block}.activity-option small{margin-top:4px;font-weight:400}.energy-result{background:#f2ebdf;border:1px solid #e5d6c1;border-radius:20px;padding:26px;margin:22px 0}.energy-number{font-size:48px;line-height:1.2;font-weight:800;color:#805239;letter-spacing:-2px}.energy-result p{margin:10px 0}.energy-result a{color:#756451}.profile-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.profile-facts div{background:white;border:1px solid #eee2d6;padding:13px;border-radius:12px}.profile-facts dt{font-size:11px;color:#8f7c69}.profile-facts dd{font-size:14px;margin:6px 0 0;font-weight:700}.account-body button:disabled{opacity:.5;cursor:wait}.account-note{border-left:3px solid #b38c58;padding-left:13px}.account-password{display:flex;align-items:center;gap:8px}.account-password button{white-space:nowrap}.account-dialog [hidden]{display:none!important}@media(max-width:400px){.account-body{padding:20px}.account-heading{padding:18px 20px}.energy-number{font-size:40px}}

.feed-header{gap:12px;align-items:center}.header-left-bar{min-width:0;flex:1;gap:10px}.brand-title{min-width:0;font-size:clamp(16px,4.5vw,22px);line-height:1.25;white-space:normal}.brand-title span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:11px;line-height:1.6}.btn-drawer-trigger{flex-shrink:0}.profile-menu-wrap{flex:0 0 auto}.feed-header>h1,.feed-header>h2,.feed-header>div:first-child{min-width:0}.floating-plan{position:absolute;right:18px;bottom:90px;z-index:450;max-width:calc(100% - 36px)}.floating-plan button{display:flex;align-items:center;gap:10px;border:1px solid #ead1bb;border-radius:26px;padding:14px 17px;background:#986a43;color:white;box-shadow:0 8px 28px #55301435;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.floating-plan button>span:first-child{font-size:24px;line-height:1}.detail-sheet{padding-bottom:115px!important}.profile-photo-area{text-align:center;margin-bottom:24px}.profile-photo-area label{display:inline-block;cursor:pointer}.avatar-orbit{width:98px;height:98px;border-radius:50%;border:2px solid #d8b793;padding:5px;margin:0 auto 10px;position:relative;display:grid;place-items:center;animation:avatar-glow 3s ease-in-out infinite}.avatar-orbit>span{font-size:40px;color:#aa794e}.profile-avatar{width:84px;height:84px;object-fit:cover;border-radius:50%;position:absolute;z-index:1;background:#f2ebdf}.account-body{animation:profile-appear .25s ease-out}.energy-result{animation:profile-appear .5s ease-out}.account-dialog .account-heading{position:sticky;top:0;background:#fffdf9;z-index:2}@keyframes avatar-glow{50%{box-shadow:0 0 0 7px #bb94601a}}@keyframes profile-appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.avatar-orbit,.account-body,.energy-result{animation:none}}

.floating-profile{position:absolute;top:65px;right:17px;z-index:580;margin:0}.floating-profile .profile-trigger{width:45px;height:45px;box-shadow:0 5px 20px #51341f22;background:#fffaf3}.feed-header{padding-right:58px!important;min-height:62px}.profile-menu{width:210px}.planner-summary{margin:0 18px 22px;padding:22px;border-radius:22px;background:linear-gradient(130deg,#f2e3d0,#faf5ed);color:#6f4b32}.planner-summary small{letter-spacing:2px;font-size:9px}.planner-summary h3{font-size:21px;margin:9px 0 18px}.planner-summary strong{font-size:14px}.planner-summary p{font-size:10px;line-height:1.6;margin-top:12px;color:#8c7967}.planner-day{border:1px solid #eadfD2;background:#fffdf9;box-shadow:0 5px 18px #634b3010;border-radius:20px;padding:17px;margin-bottom:15px}.planner-day-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.planner-day-title h3{font-size:15px}.planner-day-title button{border:0;background:#f3e9dd;padding:8px 10px;border-radius:10px;font-size:10px;color:#855b39;cursor:pointer}.planner-day-total{font-size:11px;color:#916a48;margin:8px 0 14px;line-height:1.6}.planner-empty{padding:14px 0;font-size:12px;line-height:1.6;color:#aa9886}.planner-meal{display:flex;gap:10px;padding:12px 0;border-top:1px solid #eee4d9;align-items:flex-start}.planner-meal-photo{padding:0;border:0;background:#efe8df;border-radius:12px;overflow:hidden;flex-shrink:0;width:58px;height:65px}.planner-meal-photo img{width:100%;height:100%;object-fit:cover}.planner-meal-content{flex:1;min-width:0}.planner-meal-title{border:0;background:none;text-align:left;padding:0;font-size:12px;font-weight:700;color:#47392d;line-height:1.4;cursor:pointer}.planner-meal-content small{display:block;font-size:10px;color:#9d7956;margin:7px 0;line-height:1.5}.planner-meal-content select{width:100%;max-width:210px;border:1px solid #e6d8c9;border-radius:8px;padding:6px;background:#fffaf4;color:#80664e;font-size:10px}.planner-remove{border:0;background:#f8eee8;border-radius:50%;color:#ab6650;width:23px;height:23px;cursor:pointer}.app-loader{position:absolute;inset:0;z-index:570;background:#fffaf5ef;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;color:#815734;text-align:center;padding:25px}.app-loader strong{font-size:15px}.app-loader small{font-size:12px;color:#a68c76}.loader-ring{width:43px;height:43px;border:3px solid #eddfce;border-top-color:#a47146;border-radius:50%;animation:loader-spin 1s linear infinite}.app-load-error{position:absolute;bottom:85px;left:15px;right:15px;background:#fff3e5;border:1px solid #dfc2a2;border-radius:15px;padding:15px;z-index:460;font-size:12px}.app-load-error small{display:block;margin-top:8px}.own-recipe-row{display:flex;align-items:center;gap:12px;width:100%;border:1px solid #e9ddce;background:white;border-radius:14px;padding:12px;margin-top:12px;text-align:left;cursor:pointer}.own-recipe-row img{width:45px;height:45px;object-fit:cover;border-radius:9px}.own-recipe-row span{margin-left:auto;font-size:10px}.account-body textarea{width:100%;padding:12px;border:1px solid #d8cbbc;border-radius:12px;box-sizing:border-box;font:inherit;font-size:13px;resize:vertical}@keyframes loader-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.loader-ring{animation:none}}

.profile-trigger{position:relative;overflow:hidden}.floating-avatar{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}.floating-avatar[hidden]{display:none}.profile-menu{max-height:70dvh;overflow:auto}.planner-day-selected{background:#986a43!important;color:white!important;border-color:#986a43!important;box-shadow:0 0 0 2px #dec2a9}.planner-confirm{padding-top:16px}.planner-confirm p{font-size:12px;font-weight:700;text-align:center;margin-bottom:12px}.planner-confirm button{width:100%;padding:13px;border:0;border-radius:13px;background:#986a43;color:white;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.planner-confirm button:disabled{opacity:.4;cursor:default}.planner-confirm .planner-cancel{background:none;color:#937963;margin-top:6px}.planner-toast{position:absolute;bottom:155px;left:20px;right:20px;z-index:650;background:#496348;color:white;padding:14px;border-radius:14px;font-size:13px;text-align:center;box-shadow:0 8px 25px #25322233}.journal-nutrients{display:grid;grid-template-columns:1fr 1fr;gap:10px}.journal-nutrients label{margin-top:8px;font-size:11px}.journal-nutrients input{padding:10px;font-size:13px}.journal-total{padding:18px;background:#f3e9db;border-radius:16px;margin:18px 0;font-size:13px;line-height:1.6}.journal-choices{display:grid;grid-template-columns:1fr;gap:8px}.journal-choices button{padding:15px;border:1px solid #decbb7;border-radius:13px;background:#fff8ee;color:#7b5235;text-align:left;font-weight:700;cursor:pointer}.journal-entry{margin-top:15px;padding:16px;border:1px solid #e8ddcf;border-radius:17px;background:white}.journal-entry h4{margin:5px 0;font-size:15px}.journal-entry p{font-size:12px;margin:8px 0}.journal-entry-actions{display:flex;gap:18px}.journal-entry-actions button{border:0;background:none;color:#96623d;font-size:12px;cursor:pointer;padding:7px 0}.journal-product{padding:12px;border:1px solid #e7d8c6;border-radius:16px;margin:14px 0}.measurement-preview{display:block;max-height:250px;width:100%;object-fit:contain;border-radius:15px;margin-top:12px}.measurement-photo{width:100%;max-height:260px;object-fit:contain;background:#faf6ef;border-radius:12px}.progress-trend{border:1px solid #ead9c6;border-radius:18px;padding:18px;margin-top:16px;background:linear-gradient(120deg,#faf3e8,#fffdf9)}.progress-trend>span{display:block;font-size:12px;color:#987452}.progress-trend>strong{display:block;font-size:28px;color:#805239;margin-top:7px}.progress-trend svg{display:block;width:100%;height:110px;margin-top:12px}.journal-empty{padding:24px;text-align:center;color:#a08b76}.journal-entry details summary{font-size:12px;color:#957251;cursor:pointer}
/* Login is the application's entry screen. */
body.auth-locked .device-frame,body.auth-locked .app-root{visibility:hidden}
.auth-gate{width:min(540px,calc(100% - 28px));max-height:calc(100dvh - 32px);border-radius:28px;background:linear-gradient(155deg,#fffdf9,#f8eddf)}
.auth-gate::backdrop{background:radial-gradient(ellipse at 20% 20%,#e6ceb0,transparent 60%),#f4ece1;backdrop-filter:blur(12px)}
.auth-gate .account-close{display:none}.auth-gate .account-heading{padding:26px 30px;background:transparent}.auth-gate .account-heading h2{font-size:14px;color:#876344}.auth-gate .account-body{padding:28px 30px}.auth-gate .account-body h3{font-size:34px;letter-spacing:-1px}.auth-gate .account-primary{min-height:48px}.auth-gate .account-body input{min-height:48px;background:#fffdfb}
.profile-orbit{display:flex;flex-direction:column;align-items:flex-end;gap:10px;top:56px;width:220px;max-height:calc(100dvh - 170px);overflow:auto;padding:4px;border:0;background:none;box-shadow:none;pointer-events:none}
.profile-orbit[hidden],.profile-more[hidden]{display:none!important}
.profile-orbit .profile-orbit-action{position:relative;width:40px;height:40px;min-height:40px;padding:10px;border:1px solid #e3d5c4;border-radius:50%;display:grid;place-items:center;background:#fffaf3;box-shadow:0 4px 14px #53391e20;pointer-events:auto}
.profile-orbit .profile-orbit-action:hover{border-radius:50%;background:#f0dfca}.profile-orbit-action svg{width:19px;height:19px}.profile-orbit-action>span{position:absolute;right:49px;white-space:nowrap;padding:6px 10px;border-radius:9px;background:#fffaf3;box-shadow:0 3px 12px #53391e16;font-size:11px;font-weight:700}.profile-more{width:205px;border:1px solid #e5d8c7;border-radius:17px;padding:6px;background:#fffdf9;box-shadow:0 10px 26px #53391e25;pointer-events:auto}.profile-more button{min-height:42px}
.detail-top-nav{justify-content:flex-start!important;gap:10px;padding-right:80px!important}.detail-top-nav .btn-circle{width:44px;height:44px;background:#fffdf4ee;box-shadow:0 4px 20px #32211422;border:1px solid #ffffff99;backdrop-filter:blur(8px)}
.detail-hero{height:290px!important;background:#e9dfd2}.detail-hero img{object-fit:cover}.detail-sheet{position:relative;margin-top:-30px!important;border-radius:30px 30px 0 0!important;padding:26px 24px 120px!important;background:#fffdf9!important}.detail-handle{display:none}.recipe-eyebrow{display:block;font-size:9px;font-weight:800;letter-spacing:2px;color:#9a795b;margin-bottom:18px}.detail-title{font-size:29px!important;line-height:1.22!important;letter-spacing:-1px;margin:14px 0!important}.recipe-section-title{font-size:20px;letter-spacing:-.4px;margin:30px 0 16px;color:#47382c}.recipe-section-title span{display:block;font-size:11px;font-weight:400;letter-spacing:0;color:#a18b76;margin-top:6px}.ingredient-item{padding:13px 12px!important;border:1px solid #eee3d6!important;background:#faf6f0;border-radius:12px;margin-bottom:7px;gap:10px!important;flex-wrap:wrap}.ing-name{font-size:13px;line-height:1.6;flex:1;min-width:120px}.action-buttons-wrap{margin-left:auto}.recipe-method-step{display:flex;gap:14px;margin-bottom:12px;padding:18px 14px;border:1px solid #ede1d2;border-radius:16px;background:#fff;font-size:14px;line-height:1.8;color:#534840}.recipe-method-step>div:first-child{width:30px!important;height:30px!important;font-size:12px!important}.recipe-method-step>div:last-child{flex:1;min-width:0}.tips-card{border-radius:18px!important;line-height:1.7}.macro-breakdown-card{border-radius:20px!important;box-shadow:none!important;border:1px solid #e5d4be}.detail-sheet p{color:#796958}.btn-circle:focus-visible,.meal-drag-handle:focus-visible,.profile-orbit button:focus-visible{outline:3px solid #a27349;outline-offset:3px}
.planner-drag-help{font-size:11px;line-height:1.6;margin:0 20px 18px;color:#91775f}.meal-drag-handle{touch-action:none;user-select:none;flex-shrink:0;cursor:grab;border:1px solid #eadccc;background:#f7eee2;color:#957047;border-radius:10px;width:28px;height:44px;font-size:24px}.meal-drag-handle:active{cursor:grabbing}.planner-day.meal-drop-target{outline:2px solid #ab7747;background:#fcf0dd}.planner-meal.meal-dragging{opacity:.4}.planner-meal.meal-insert-before{border-top:3px solid #a37248}.meal-drag-ghost{position:fixed;z-index:2000;pointer-events:none;transform:translate(-50%,-110%);max-width:260px;width:max-content;padding:16px 20px;background:#805735;color:white;border-radius:15px;box-shadow:0 12px 36px #39231744;font:600 13px/1.5 sans-serif}.week-switch-bar{position:sticky;top:0;z-index:5;background:#fcfbf9;padding:10px 14px!important}.planner-meal-photo{width:48px;height:58px}.planner-remove{min-width:28px;min-height:28px}.planner-toast{pointer-events:none}
@media(max-width:380px){.detail-sheet{padding-left:18px!important;padding-right:18px!important}.detail-title{font-size:25px!important}.planner-day{padding:12px}.planner-meal{gap:7px}.planner-meal-photo{width:40px}.auth-gate .account-body{padding:22px}}
