/* Shared visual language for the web app and Android WebView. */
:root {
  --phone-bg: #f5f7f2;
  --surface: #fff;
  --surface-subtle: #edf2e9;
  --border-subtle: #e2e9df;
  --caramel: #47705b;
  --caramel-hover: #315440;
  --caramel-soft: #eaf1e6;
  --caramel-glow: #47705b20;
  --dark: #24392e;
  --text-muted: #738073;
  --shadow-sm: 0 6px 22px #24392e06;
  --shadow-md: 0 16px 38px #24392e10;
  --ui-green: #355b47;
  --ui-muted: #728071;
}
body { background: radial-gradient(ellipse at 10% 5%, #dfe9d6, transparent 65%), #eef1eb; }
button, input, select, textarea { font: inherit; }
input, textarea { user-select: text; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #729980; outline-offset: 3px; }
.device-frame { border-color: #dfe6db; box-shadow: 0 24px 80px #2945361c, 0 0 0 8px #ffffffb0; }
.feed-header { margin-bottom: 12px; }
.btn-drawer-trigger { border-radius: 15px; box-shadow: none; background: #fff; color: var(--ui-green); }
.brand-title { letter-spacing: -.7px; color: var(--dark); }
.brand-title > span { color: #7a8a79; font-size: 9px; letter-spacing: 1px; }
.feed-welcome { position: relative; overflow: hidden; padding: 20px 18px 24px; margin-bottom: 16px; border-radius: 25px; background: #e8efdf; }
.welcome-eyebrow { font-size: 8px; font-weight: 800; letter-spacing: 1.8px; color: #748669; }
.feed-welcome h1 { position: relative; z-index: 1; margin: 11px 0 10px; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -1.4px; color: #2e4836; }
.feed-welcome h1 > span { color: #829765; }
.feed-welcome p { font-size: 12px; color: #75816d; }
.welcome-decoration { position: absolute; right: -15px; bottom: 5px; width: 134px; height: 134px; border-radius: 50%; border: 1px solid #c6d5b4; display: grid; place-items: center; transform: rotate(-18deg); color: #afc297; background: #dce7cd80; }
.welcome-decoration svg { width: 72px; height: 72px; stroke-width: 1; }
.search-input-box { background: white; border: 1px solid #e1e8dc; border-radius: 17px; box-shadow: 0 3px 12px #2a453004; min-height: 50px; }
.modern-dropdown { border: 1px solid #e1e8dc; border-radius: 15px; background: #fff; box-shadow: none; }
.modern-dropdown select { color: #526550; font-weight: 600; }
.tag-pill { border-color: #e1e8dc; padding: 9px 14px; font-size: 11px; }
.tag-pill.active { box-shadow: none; background: #365e47; }
.recipe-card { border: 1px solid #e3e9df; border-radius: 24px; box-shadow: 0 7px 22px #2a453006; }
.card-thumb-wrap { height: 222px; }
.card-title-section { text-align: left; padding: 18px 18px 16px; }
.card-title { font-size: 17px; line-height: 1.45; letter-spacing: -.5px; font-weight: 700; }
.fav-button { top: 12px; left: 12px; bottom: auto; width: 38px; height: 38px; transform: none; background: #ffffffed; box-shadow: 0 3px 15px #1b301115; }
.fav-button:active { transform: scale(.94); }
.badge-kcal { font-size: 11px; border-radius: 10px; padding: 7px 10px; }
.badge-macro { background: #263d30d9; backdrop-filter: blur(8px); font-weight: 500; font-size: 10px; letter-spacing: .2px; }
.diet-traits-bar { background: #fbfcf9; border-color: #edf1e8; padding: 11px 7px; }
.trait-item svg { width: 27px; height: 27px; opacity: .65; }
.trait-label { color: #798172; font-size: 8px; }
.bottom-tab-bar { background: #ffffffed; backdrop-filter: blur(20px); border-top: 1px solid #e5ebdf; box-shadow: 0 -8px 25px #29452b06; }
button.tab-item { flex: 1; max-width: 78px; justify-content: center; gap: 5px; padding: 5px; border: 0; background: transparent; cursor: pointer; font: inherit; color: #85917f; min-height: 52px; border-radius: 16px; margin: 5px 3px; transition: color .2s, background .2s; }
button.tab-item.active { background: #edf3e7; color: #355b47; }
.tab-item span:not(.badge-counter) { font-size: 10px; font-weight: 700; }
.badge-counter { background: #577653; box-shadow: 0 0 0 2px white; }
.floating-profile .profile-trigger { background: white; border: 1px solid #dae5d6; box-shadow: 0 5px 16px #355b4710; color: #355b47; }
.profile-orbit .profile-orbit-action, .profile-orbit-action > span, .profile-more { background: #fff; border-color: #dfe7d8; color: #355b47; }
.profile-orbit .profile-orbit-action:hover { background: #edf3e7; }
.profile-more button { display: flex; align-items: center; gap: 9px; color: #46604b; }
.profile-more button svg { width: 17px; height: 17px; }
.floating-plan button { background: #355b47; border-color: #355b47; box-shadow: 0 8px 25px #28412f24; padding: 15px 19px; }
.floating-plan svg { width: 21px; height: 21px; }
.brand-title > .planner-title-icon { display: inline-flex; width: 28px; height: 28px; vertical-align: middle; margin-right: 5px; color: #527250; }
.planner-title-icon svg { width: 24px; height: 24px; }
.planner-summary { position: relative; overflow: hidden; background: linear-gradient(125deg,#e2ecd6,#edf3e6); color: #3c5940; margin: 5px 0 20px; padding: 23px; border: 1px solid #dce7d2; }
.planner-summary-icon { display: block; color: #6f8960; margin-bottom: 15px; }
.planner-summary-icon svg { width: 29px; height: 29px; stroke-width: 1.5; }
.planner-summary h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.8px; }
.planner-summary p { color: #718268; }
.planner-day { border-color: #e2e9db; background: #fff; box-shadow: none; }
.planner-day-title h3 { color: #354f38; }
.planner-day-title button { background: #eff4e9; color: #567449; border-radius: 10px; min-height: 34px; }
.planner-day-total, .planner-meal-content small { color: #7e8b75; }
.planner-meal { border-color: #edf1e7; }
.meal-drag-handle { background: #f2f5ed; border-color: #e4eadb; color: #7b906c; }
.planner-day.meal-drop-target { background: #edf5e4; outline-color: #739762; }
.planner-meal.meal-insert-before { border-color: #739762; }
.meal-drag-ghost { background: #355b47; }
.week-switch-bar { background: #f5f7f2; border-radius: 15px; }
.week-switch-btn { border-radius: 11px; }
.planner-drag-help { color: #7a8873; margin-left: 3px; margin-right: 3px; }
.planner-empty { color: #85917d; }
.detail-sheet { background: #fcfdf9!important; }
.recipe-section-title, .detail-title { color: #304a35; }
.recipe-section-title span, .recipe-eyebrow { color: #7f8f74; }
.ingredient-item { background: #f4f7ef; border-color: #e6ecdf!important; }
.recipe-method-step { border-color: #e5ecdf; }
.account-dialog { background: #fcfdf9; border-color: #e0e8d9; box-shadow: 0 30px 100px #2537232e; border-radius: 28px; }
.account-dialog::backdrop { background: #1c30295c; }
.account-dialog .account-heading { background: #fcfdf9ee; backdrop-filter: blur(15px); border-bottom-color: #e8eee1; padding: 20px 24px; }
.account-heading h2 { color: #35543a; font-size: 16px; letter-spacing: -.4px; }
.account-close { color: #547047; background: #eef3e7; width: 36px; height: 36px; }
.account-body { color: #334e39; }
.account-body h3 { font-size: 29px; font-weight: 700; letter-spacing: -1px; }
.account-body p { color: #7c8873; }
.account-step { color: #819570; font-size: 9px; letter-spacing: 1.8px; }
.account-body label { color: #52684b; }
.account-body input, .account-body select, .account-body textarea { border-color: #dce5d4; background: white; color: #344b37; border-radius: 13px; min-height: 46px; }
.account-body input:focus, .account-body select:focus, .account-body textarea:focus { outline: 2px solid #8ca47c; outline-offset: 2px; }
.account-primary { display: inline-flex; justify-content: center; align-items: center; gap: 8px; background: #355b47; border-color: #355b47; border-radius: 13px; min-height: 44px; box-shadow: 0 5px 12px #355b4710; }
.account-primary:hover { background: #284b38; }
.account-primary svg { width: 18px; height: 18px; }
.account-secondary { border-color: #dce6d3; color: #527345; border-radius: 13px; }
.account-link { color: #547649; text-underline-offset: 4px; }
.account-body small { color: #839079; }
.energy-result { background: #edf3e6; border-color: #dce7d1; }
.energy-number { color: #47623b; }
/* The ambient background moves slowly and never flashes. */
.auth-gate::backdrop {
  background-color: #eaf0e3;
  background-image: radial-gradient(ellipse at 15% 25%,#c6dcc0 0%,transparent 48%),radial-gradient(ellipse at 85% 65%,#eedbc6 0%,transparent 48%),radial-gradient(ellipse at 60% 5%,#edf0d0 0%,transparent 55%);
  background-size: 155% 155%,170% 170%,140% 140%;
  animation: ambient-drift 22s ease-in-out infinite alternate;
  backdrop-filter: none;
}
.auth-gate { width: min(470px,calc(100% - 28px)); max-height: calc(100dvh - 30px); background: #fffffff0; border: 1px solid #fff; box-shadow: 0 26px 90px #40533218; border-radius: 32px; }
.auth-gate .account-heading { background: transparent; border: 0; padding: 22px 30px 0; }
.auth-gate .account-heading h2 { font-size: 10px; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 600; color: #839578; }
.auth-gate .account-body { padding: 18px 30px 26px; }
.auth-welcome { text-align: center; }
.auth-emblem { position: relative; display: grid; place-items: center; width: 66px; height: 66px; margin: 3px auto 20px; background: #edf4e6; border: 1px solid #dfead5; border-radius: 23px; }
.auth-emblem > svg { width: 32px; height: 32px; stroke-width: 1.5; color: #57774b; }
.auth-emblem > span { position: absolute; inset: -8px; border: 1px solid #e6eddc; border-radius: 29px; animation: emblem-breathe 7s ease-in-out infinite; }
.auth-welcome > .account-step { font-size: 8px; letter-spacing: 1.7px; }
.auth-gate .auth-welcome h3 { font-size: clamp(34px,9vw,43px); line-height: 1.06; font-weight: 600; letter-spacing: -2px; margin: 16px 0 14px; color: #2f4a37; }
.auth-welcome h3 em { font-style: normal; color: #7f9867; }
.auth-welcome p { line-height: 1.7; font-size: 12px; color: #7a8871; margin-bottom: 16px; }
.auth-features { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin: 0 0 24px; }
.auth-features > span { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; padding: 6px 9px; border-radius: 9px; background: #f1f5ec; color: #7a8d68; }
.auth-features svg { width: 12px; height: 12px; }
.auth-gate .account-body label { font-size: 11px; font-weight: 600; margin-top: 15px; }
.auth-gate .account-body input { min-height: 49px; background: #fafcf7; border-color: #e1e9d9; font-size: 14px; }
.auth-gate .account-password { position: relative; }
.auth-gate .account-password input { padding-right: 65px; }
.auth-gate .account-password button { position: absolute; right: 13px; text-decoration: none; font-size: 11px; color: #6e855f; }
.auth-gate .account-actions { margin-top: 22px; }
.auth-gate .auth-submit { justify-content: space-between; padding: 15px 20px; min-height: 50px; background: #355b47; border-color: #355b47; }
.auth-footer { display: flex; flex-direction: column; align-items: center; margin-top: 12px; gap: 2px; }
.auth-footer .account-link { font-size: 11px; text-decoration: none; }
.auth-server-link { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #8c9982; padding: 9px; font-size: 10px; cursor: pointer; }
.auth-server-link svg { width: 12px; height: 12px; }
.auth-gate .account-error { margin-top: 0; }
@keyframes ambient-drift { from { background-position: 0% 0%,100% 100%,50% 0%; } to { background-position: 100% 75%,0% 15%,0% 100%; } }
@keyframes emblem-breathe { 50% { transform: rotate(10deg) scale(1.06); opacity: .45; } }
/* Daily food journal. */
.heading-dot { color: #8daa75; }
.journal-intro p { margin-bottom: 20px; font-size: 12px; }
.diary-date-bar { display: flex; align-items: center; gap: 12px; padding: 9px; background: #f0f4e9; border: 1px solid #e4eadb; border-radius: 17px; }
.diary-date-bar > button { width: 36px; height: 40px; flex-shrink: 0; display: grid; place-items: center; background: white; color: #687f57; border: 1px solid #e3eada; border-radius: 11px; cursor: pointer; }
.diary-date-bar svg { width: 17px; height: 17px; }
.account-body .diary-date-bar label { flex: 1; min-width: 0; margin: 0; text-align: center; }
.diary-date-bar label > span { display: block; font-size: 12px; color: #526b44; margin-bottom: 2px; }
.account-body .diary-date-bar input { display: block; width: 100%; min-height: 28px; padding: 3px; background: transparent; border: 0; text-align: center; color: #8b987d; font-size: 11px; }
.diary-today { display: block; border: 0; background: transparent; color: #789266; cursor: pointer; margin: 7px auto 0; padding: 7px; font-size: 11px; }
.diary-overview { margin-top: 19px; padding: 21px; border-radius: 22px; background: #354f3b; color: #f6f8ef; }
.diary-energy { display: flex; align-items: center; gap: 13px; }
.diary-summary-icon { display: grid; place-items: center; width: 42px; height: 48px; background: #ffffff0d; border: 1px solid #ffffff14; border-radius: 14px; color: #b4c99d; }
.diary-summary-icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.account-body .diary-energy small { font-size: 10px; color: #a5b598; margin: 0 0 3px; font-weight: 400; }
.diary-energy strong { font-size: 34px; letter-spacing: -1.3px; font-weight: 600; line-height: 1.3; }
.diary-energy em { font-size: 11px; margin-left: 7px; letter-spacing: 0; font-style: normal; color: #acbc9f; font-weight: 400; }
.diary-count { margin-left: auto; padding-left: 10px; border-left: 1px solid #ffffff21; text-align: center; font-size: 19px; }
.diary-macros { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding-top: 17px; margin-top: 17px; border-top: 1px solid #ffffff1c; }
.diary-macros > div { min-width: 0; }
.diary-macros span { color: #b0c0a3; font-size: 9px; display: block; margin-bottom: 6px; }
.diary-macros strong { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.account-body .diary-macros small { display: inline; color: #9eb48b; font-size: 10px; font-weight: 400; margin-left: 4px; }
.account-body .diary-disclaimer { font-size: 9px; line-height: 1.6; color: #8b967e; margin: 10px 4px 25px; }
.diary-section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.diary-section-heading h4 { font-size: 17px; font-weight: 700; letter-spacing: -.5px; }
.diary-section-heading .account-primary { padding: 9px 12px; min-height: 36px; font-size: 11px; }
.diary-meals { display: grid; gap: 13px; }
.diary-meal-group { padding: 15px; border: 1px solid #e4eada; border-radius: 19px; background: white; }
.diary-meal-group > header { display: flex; align-items: center; gap: 11px; }
.diary-meal-icon { display: grid; place-items: center; flex-shrink: 0; width: 39px; height: 39px; background: #f5eedf; border-radius: 12px; color: #ab8c54; }
.diary-meal-icon svg { width: 20px; height: 20px; stroke-width: 1.7; }
[data-meal-kind=second_breakfast] .diary-meal-icon { background: #f4e9df; color: #b58a61; }
[data-meal-kind=lunch] .diary-meal-icon { background: #eef2df; color: #889f51; }
[data-meal-kind=snack] .diary-meal-icon { background: #f6e6e1; color: #bb8a79; }
[data-meal-kind=dinner] .diary-meal-icon { background: #ebecf4; color: #8a8daf; }
.diary-meal-group header > div { flex: 1; min-width: 0; }
.diary-meal-group header h4 { margin: 0; font-size: 13px; color: #435938; }
.account-body .diary-meal-group header small { font-size: 9px; line-height: 1.5; margin-top: 3px; }
.diary-meal-group header > button { width: 33px; height: 33px; flex-shrink: 0; border: 1px solid #e5ebdc; border-radius: 11px; background: #f8faf4; color: #829971; display: grid; place-items: center; cursor: pointer; }
.diary-meal-group header > button svg { width: 16px; height: 16px; }
.diary-empty-meal { display: flex; align-items: center; gap: 7px; width: 100%; border: 0; border-top: 1px dashed #e6ecdd; background: transparent; color: #95a286; padding: 12px 0 0; margin-top: 13px; font-size: 10px; cursor: pointer; }
.diary-empty-meal svg { width: 12px; height: 12px; margin-left: auto; }
.food-entry { padding: 13px 0 0; margin-top: 13px; border-radius: 0; border: 0; border-top: 1px solid #edf0e7; }
.food-entry-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.food-entry-heading h4 { font-size: 13px; line-height: 1.5; margin: 0; color: #3c5334; }
.food-entry-kcal { color: #8b9b78; font-size: 10px; white-space: nowrap; }
.account-body .food-entry p { font-size: 10px; color: #8e9b80; margin: 5px 0; }
.food-entry .journal-entry-actions { gap: 15px; margin-top: 5px; }
.journal-entry-actions button { display: flex; align-items: center; gap: 5px; font-size: 10px; min-height: 34px; color: #7d9569; }
.journal-entry-actions svg { width: 12px; height: 12px; }
.journal-entry-actions button:last-child { color: #b39987; }
.meal-type-field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.meal-type-field legend { font-size: 12px; font-weight: 700; color: #5e754f; padding-bottom: 11px; }
.meal-type-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.account-body .meal-type-options label { margin: 0; position: relative; cursor: pointer; }
.meal-type-options input { position: absolute; opacity: 0; width: 1px!important; height: 1px!important; min-height: 0!important; }
.meal-type-options label > span { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px; border: 1px solid #e1e9d8; background: #fff; border-radius: 12px; color: #8b9b7b; font-size: 10px; font-weight: 500; }
.meal-type-options svg { width: 19px; height: 19px; stroke-width: 1.6; }
.meal-type-options input:checked + span { border-color: #91aa79; background: #eaf2df; color: #57773e; box-shadow: 0 0 0 1px #91aa7929; }
.meal-type-options input:focus-visible + span { outline: 3px solid #91aa79; outline-offset: 2px; }
.source-choices { gap: 10px; }
.source-choices button { display: flex; align-items: center; gap: 12px; border-color: #e0e9d5; background: white; padding: 16px 12px; color: #547441; }
.source-icon { display: grid; place-items: center; width: 41px; height: 44px; border-radius: 12px; background: #edf3e5; flex-shrink: 0; }
.source-icon svg { width: 21px; height: 21px; }
.source-choices button > span:nth-child(2) { flex: 1; }
.source-choices strong { font-size: 12px; }
.account-body .source-choices small { margin-top: 4px; font-size: 10px; font-weight: 400; }
.source-choices button > svg { width: 16px; height: 16px; }
@media(max-width:480px) {
  body:has(.device-frame) { padding: 0; }
  .device-frame { width: 100%; height: 100dvh; border-radius: 0; border: 0; box-shadow: none; }
  .dynamic-island { display: none; }
  .account-dialog { max-height: calc(100dvh - 24px); }
  .account-body { padding: 20px; }
  .auth-gate .account-body { padding: 14px 24px 23px; }
  .auth-gate .account-heading { padding: 20px 24px 0; }
  .diary-overview { padding: 18px; }
  .diary-energy strong { font-size: 29px; }
}
@media(max-height:740px) {
  .auth-emblem { width: 48px; height: 48px; margin-bottom: 15px; border-radius: 17px; }
  .auth-emblem > span { border-radius: 23px; }
  .auth-gate .auth-welcome h3 { font-size: 33px; margin: 12px 0; }
  .auth-features { margin-bottom: 15px; }
  .auth-gate .account-heading { padding-top: 16px; }
}
@media(prefers-reduced-motion:reduce) {
  .auth-gate::backdrop, .auth-emblem > span { animation: none; }
  .recipe-card, button.tab-item { transition: none; }
}
/* Original AJ identity and the new-account walkthrough. */
.brand-logo { width:38px;height:38px;object-fit:contain;flex-shrink:0; }
.auth-gate .auth-emblem { width:94px;height:94px;background:#fffaf4;border:1px solid #eadfce;border-radius:25px; }
.auth-emblem img { width:76px;height:76px;object-fit:contain; }
.auth-food-scene { display:none;position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:900;background:radial-gradient(ellipse at 10% 15%,#dae7cd,transparent 55%),radial-gradient(ellipse at 90% 90%,#f0dfc9,transparent 60%),#edf1e6; }
body.auth-locked .auth-food-scene { display:block; }
.auth-food-scene > span { position:absolute;left:var(--food-x);top:var(--food-y);color:#809868;opacity:.26;transform:rotate(var(--food-angle));animation:food-float calc(15s + var(--food-i)*1s) ease-in-out infinite alternate;animation-delay:calc(var(--food-i)*-2s); }
.auth-food-scene svg { width:clamp(34px,5vw,74px);height:clamp(34px,5vw,74px);stroke-width:1; }
.auth-gate::backdrop { background:transparent;animation:none; }
.onboarding-gate .account-close { display:none; }
.onboarding-gate::backdrop { background:#f4f7ed44;backdrop-filter:blur(5px); }
.wizard-steps { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:27px; }
.wizard-steps > span { display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 4px;border-radius:14px;background:#f0f3eb;color:#a4ae98; }
.wizard-steps > span.done { background:#e3edd9;color:#5c7a47; }
.wizard-steps > span[aria-current] { box-shadow:0 0 0 1px #b1c79c; }
.wizard-steps svg { width:22px;height:22px; }
.account-body .wizard-steps small { margin:0;font-size:8px;text-align:center;line-height:1.4;color:inherit; }
.account-body .wizard-field-label { display:flex;align-items:center;gap:7px; }
.wizard-field-label svg { width:16px;height:16px;color:#89a471; }
.activity-option strong { display:flex;align-items:center;gap:8px; }
.activity-option strong svg { width:20px;height:20px;color:#83a36d; }
.profile-more svg { flex-shrink:0; }
@keyframes food-float { to { transform:translate(16px,-30px) rotate(calc(var(--food-angle) + 15deg));opacity:.42; } }
@media(prefers-reduced-motion:reduce) { .auth-food-scene > span { animation:none; } }
.profile-more .profile-download-link{display:flex;align-items:center;gap:9px;min-height:42px;padding:13px;text-decoration:none;color:#46604b;font:inherit;font-size:13px}.profile-download-link:hover{background:#f8f1e9;border-radius:10px}.profile-download-link svg{width:17px;height:17px}

/* Open login canvas: the form sits directly on the animated scenery. */
.auth-gate { width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;padding:0 20px 24px; }
.auth-gate::backdrop { background:transparent;backdrop-filter:none; }
.auth-gate .account-heading { display:none; }
.auth-gate .account-body { width:100%;max-width:410px;margin:0 auto;padding:clamp(24px,5vh,64px) 0 12px; }
.auth-gate .auth-emblem { width:100px;height:100px;background:none;border:0;border-radius:0;box-shadow:none; }
.auth-gate .auth-emblem img { width:100%;height:100%;object-fit:contain; }
.auth-gate .account-body input { background:#ffffffd9;border-color:#c6d3bd;box-shadow:0 3px 12px #37503d08; }
.auth-gate .account-error { max-width:410px;margin:0 auto 20px; }
.auth-gate .auth-welcome p { color:#4f6248; }
.auth-food-scene { background:radial-gradient(ellipse at 50% 40%,#fffff8ee,transparent 48%),radial-gradient(ellipse at 5% 20%,#e5efda,transparent 60%),radial-gradient(ellipse at 95% 80%,#f6e9d8,transparent 65%),#f5f8ed; }
.auth-food-scene > span { color:#718c54;opacity:.23; }
.auth-food-scene svg { width:clamp(48px,7vw,108px);height:clamp(48px,7vw,108px);stroke-width:1.3; }
@keyframes food-float { from { transform:translate(-8px,8px) rotate(var(--food-angle));opacity:.16; } to { transform:translate(24px,-44px) rotate(calc(var(--food-angle) + 22deg));opacity:.31; } }
.profile-more button[data-menu="logout"] { color:#bc3434;border-top:1px solid #efdddd;margin-top:6px;border-radius:0 0 10px 10px; }
.profile-more button[data-menu="logout"]:hover { color:#982626;background:#fff0ef; }
.recipe-time { display:inline-flex;align-items:center;gap:12px;padding:12px 16px;margin:12px 0;background:#edf2e7;border:1px solid #dfe8d6;border-radius:16px;color:#456039; }
.recipe-time svg { width:23px;height:23px;flex-shrink:0; }
.recipe-time small { display:block;font-size:10px;letter-spacing:.5px;margin-bottom:3px;color:#68775d; }
.recipe-time strong { font-size:15px; }
.recipe-time.compact { font-size:12px;gap:6px;padding:5px 10px;border:0;margin:10px 0 0;border-radius:20px; }
.recipe-time.compact svg { width:15px;height:15px; }
@media(max-width:500px) { .auth-food-scene > span { filter:opacity(.7); }.auth-gate .account-body { padding-top:20px; } }

.planner-account-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:12px 0;padding:14px;border-radius:15px;background:#f3f6ed;font-size:12px;color:#47613d}.planner-account-status button{border:1px solid #d3dfc8;border-radius:10px;background:white;padding:8px 10px;color:#47613d;font:inherit;cursor:pointer}.planner-account-status button:disabled{opacity:.5;cursor:wait}.planner-save-error{width:100%;color:#ac3535;line-height:1.5}.bottom-tab-bar .tab-item{flex:1;min-width:0}.bottom-tab-bar .food-tab span{font-size:9px;white-space:nowrap}

.recipe-banner { margin:24px 0; }
.recipe-banner > small { display:block;color:#85917e;font-size:9px;letter-spacing:.6px;margin:0 0 6px 4px; }
.recipe-banner a { display:block;border-radius:18px;overflow:hidden;background:#f3f5ee; }
.recipe-banner img { display:block;width:100%;height:auto;max-height:350px;object-fit:contain; }
.diary-calendar-link { display:inline-flex;align-items:center;gap:8px;text-decoration:none; }
.diary-calendar-link svg { width:18px;height:18px; }
.diet-month-nav { display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0; }
.diet-month-nav > button { width:38px;height:38px;border:1px solid #dbe5d2;border-radius:50%;background:white;color:#506b43;display:grid;place-items:center;cursor:pointer; }
.diet-month-nav label { margin:0;text-align:center;text-transform:capitalize; }
.diet-month-nav input { margin-top:8px;padding:8px;min-height:36px; }
.diet-month-nav svg { width:18px; }
.diet-calendar { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px; }
.diet-weekday { text-align:center;color:#859078;font-size:10px;padding:8px 0; }
.diet-calendar button { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:58px;min-width:0;padding:6px 2px;background:#f8f9f5;border:1px solid #ebeee5;border-radius:12px;color:#536149;cursor:pointer; }
.diet-calendar button strong { font-size:14px; }.diet-calendar button small { margin:0;font-size:8px;color:inherit; }
.diet-calendar .has-meals { background:#e5eedb;border-color:#d1e0c3;color:#426534; }
.diet-calendar .is-today { outline:2px solid #7a985e;outline-offset:-2px; }
.diet-calendar button:hover,.diet-calendar button:focus-visible { background:#d8e8cc; }
.diet-chart { padding:18px 14px;border:1px solid #e4eadd;border-radius:20px;background:#fbfcf8;margin-top:12px; }
.diet-chart p { font-size:11px; }.diet-chart-scroll { overflow-x:auto; }.diet-chart svg { display:block;width:100%;min-width:540px;height:auto; }
.diet-chart summary { cursor:pointer;font-size:12px;color:#567445;margin-top:12px; }
.diet-chart-table { width:100%;font-size:11px;border-collapse:collapse;margin-top:12px;text-align:left; }
.diet-chart-table td,.diet-chart-table th { padding:8px 4px;border-bottom:1px solid #e3e9dc; }
