:root{
  --bg:#667FFF;
  --app-bg:#F7F9FF;
  --surface:#FFFFFF;
  --surface-2:#F2F5FF;
  --surface-3:#EEF2FF;
  --card:#FFFFFF;
  --field:#FFFFFF;
  --ink:#293D66;
  --text:#3D4660;
  --muted:#7F8799;
  --faint:#A9B0C0;
  --line:#E3E8F4;
  --line-soft:rgba(41,61,102,.09);
  --blue:#667FFF;
  --blue-soft:#E8ECFF;
  --blue-deep:#293D66;
  --orange:#FF9F71;
  --peach:#FFC3A6;
  --peach-soft:#FFF1EA;
  --green:#76B98E;
  --red:#E76D72;
  --red-soft:#FFF0F1;
  --cream:#FFFDF8;
  --shadow:0 22px 46px rgba(41,61,102,.14);
  --shadow-soft:0 12px 28px rgba(41,61,102,.10);
  --shell-bg:var(--bg);
  --shell-desktop-bg:linear-gradient(135deg,#F4F7FF 0%,#FAFBFF 52%,#FFF6EF 100%);
  --app-surface:linear-gradient(180deg,#F4F7FF 0%,#F9FBFF 48%,#FFFFFF 100%);
  --top-surface:linear-gradient(180deg,rgba(246,249,255,.96),rgba(246,249,255,.86));
  --nav-surface:rgba(255,255,255,.97);
  --shell-control-shadow:0 10px 24px rgba(47,68,112,.08);
  --nav-shadow:0 -12px 30px rgba(47,68,112,.14);
  --modal-backdrop:rgba(41,61,102,.36);
  --modal-surface:var(--surface);
  --modal-header-surface:rgba(255,255,255,.94);
  --modal-shadow:0 -22px 52px rgba(41,61,102,.20);
  --drawer-backdrop:rgba(41,61,102,.28);
  --drawer-surface:var(--app-bg);
  --drawer-header-surface:rgba(255,255,255,.94);
  --drawer-shadow:-24px 0 50px rgba(41,61,102,.18);
  --profile-option-surface:var(--card);
  --profile-muted-surface:var(--surface-2);
  --ai-fab-surface:#FFFFFF;
  --ai-fab-shadow:var(--shadow);
  --ai-chat-surface:#FFFFFF;
  --ai-chat-header-surface:#FFFFFF;
  --ai-chat-messages-surface:var(--app-bg);
  --ai-chat-form-surface:#FFFFFF;
  --ai-message-surface:#FFFFFF;
  --ai-user-message-surface:var(--blue);
  --ai-action-surface:var(--card);
  --ai-action-high-surface:linear-gradient(145deg,rgba(255,170,72,.09),rgba(94,119,255,.07)),var(--card);
  --ai-clear-surface:#F8FBFF;
  --ai-guided-surface:rgba(255,255,255,.96);
  --premium-sheet-surface:var(--app-bg);
  --premium-hero-surface:linear-gradient(135deg,var(--blue),var(--blue-deep));
  --premium-logo-surface:#FFFFFF;
  --premium-card-surface:#FFFFFF;
  --premium-muted-surface:var(--surface-2);
  --premium-option-surface:#FFFFFF;
  --premium-option-active-surface:var(--blue-soft);
  --premium-primary-surface:var(--blue-deep);
  --premium-secondary-surface:#FFFFFF;
  --premium-qr-surface:#FFFFFF;
  --premium-success-surface:#F0FAF4;
  --premium-danger-surface:var(--red-soft);
  --food-card-surface:var(--card);
  --food-choice-surface:#FFFFFF;
  --food-choice-active-surface:var(--blue-soft);
  --food-image-surface:var(--blue-soft);
  --food-upload-surface:var(--blue-soft);
  --food-upload-preview-surface:#FFFFFF;
  --food-photo-surface:var(--peach-soft);
  --food-guide-surface:#FFFFFF;
  --food-facts-surface:#FFFFFF;
  --food-success-surface:#F0FAF4;
  --food-danger-surface:var(--red-soft);
  --recipe-card-surface:var(--card);
  --recipe-stage-surface:linear-gradient(180deg,var(--surface),var(--card));
  --recipe-chip-surface:var(--field);
  --diary-panel-surface:transparent;
  --diary-glass-surface:radial-gradient(circle at 18% 0%,rgba(255,255,255,.74),rgba(255,255,255,0) 40%),rgba(255,255,255,.58);
  --diary-period-surface:radial-gradient(circle at 18% 0%,rgba(255,255,255,.76),rgba(255,255,255,0) 40%),linear-gradient(180deg,rgba(255,255,255,.62),rgba(247,249,255,.45));
  --diary-card-surface:#FFFFFF;
  --diary-chart-surface:radial-gradient(circle at 22% 0%,rgba(255,255,255,.76),rgba(255,255,255,0) 38%),linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.42));
  --diary-control-surface:#FFFFFF;
  --diary-control-muted-surface:rgba(255,255,255,.64);
  --diary-control-active-surface:var(--blue-soft);
  --diary-stat-surface:rgba(255,255,255,.72);
  --diary-stat-active-surface:linear-gradient(135deg,rgba(102,127,255,.20),rgba(255,255,255,.78));
  --diary-stat-adherence-surface:linear-gradient(135deg,rgba(220,246,226,.78),rgba(255,255,255,.74));
  --diary-reading-surface:linear-gradient(135deg,color-mix(in srgb,var(--blue-soft) 32%,#fff),rgba(255,255,255,.62));
  --diary-log-item-surface:rgba(255,255,255,.74);
  --diary-grid-line:#E4E9F5;
  --diary-strong:#08183C;
  --diary-muted:#70809F;
  --meal-editor-sheet-surface:var(--modal-surface);
  --meal-editor-header-surface:var(--card);
  --meal-editor-card-surface:var(--card);
  --meal-editor-card-tint:color-mix(in srgb,var(--meal-edit-tone,var(--blue)) 8%,#fff);
  --meal-editor-input-surface:color-mix(in srgb,#fff 86%,var(--meal-edit-tone,var(--blue)));
  --meal-editor-action-surface:linear-gradient(180deg,rgba(255,255,255,.98),rgba(240,244,255,.92));
  --meal-editor-footer-surface:linear-gradient(to bottom,rgba(255,255,255,0),var(--card) 24%);
  --meal-editor-detail-surface:var(--surface-2);
  --meal-log-card-surface:var(--card);
  --meal-log-control-surface:#FFFFFF;
  --meal-log-ate-surface:#F0FAF4;
  --meal-log-skipped-surface:var(--red-soft);
  --outside-sheet-surface:var(--modal-surface);
  --outside-header-surface:var(--card);
  --outside-panel-surface:linear-gradient(135deg,rgba(255,255,255,.96),color-mix(in srgb,var(--blue-soft) 34%,#fff));
  --outside-card-surface:#FFFFFF;
  --outside-preview-surface:#FFFFFF;
  --outside-muted-surface:var(--surface-2);
  --outside-footer-surface:linear-gradient(to bottom,rgba(255,255,255,0),var(--card) 34%);
  --outside-warning-surface:var(--peach-soft);
  --outside-over-surface:var(--peach-soft);
  --outside-icon-surface:linear-gradient(135deg,#fff7ed,color-mix(in srgb,var(--orange) 32%,#fff));
  --outside-soft-action-surface:linear-gradient(180deg,#fff,rgba(240,244,255,.92));
  --schedule-page-surface:linear-gradient(180deg,#fff,rgba(246,249,255,.88));
  --schedule-hero-surface:linear-gradient(135deg,#fff,#f5f8ff 62%,#fff3e7);
  --schedule-card-surface:#FFFFFF;
  --schedule-muted-surface:linear-gradient(180deg,#fff,#f8faff);
  --schedule-day-surface:#F7F9FE;
  --schedule-day-active-surface:var(--blue-soft);
  --schedule-icon-surface:linear-gradient(135deg,#fff4e7,#edf3ff);
  --schedule-modal-surface:var(--card);
  --schedule-modal-header-surface:var(--card);
  --schedule-field-surface:color-mix(in srgb,var(--blue-soft) 35%,var(--card));
  --schedule-notify-card-surface:linear-gradient(135deg,#FFFFFF 0%,#F4F7FF 100%);
  --schedule-switch-surface:#E8EDF9;
  --schedule-switch-on-surface:linear-gradient(135deg,#21B07C,#5ED79F);
  --menu-appearance-image:url("/assets/menu/color-frequency.png?v=20260618-1");
  --menu-appearance-bg:linear-gradient(135deg,rgba(5,12,30,.70) 0%,rgba(5,12,30,.34) 42%,rgba(5,12,30,.10) 72%),var(--menu-appearance-image) center/cover no-repeat;
  --menu-appearance-text:#fffdf7;
  --menu-appearance-muted:#edf3ff;
  --menu-appearance-shadow:none;
  --control-surface:#FFFFFF;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-right:env(safe-area-inset-right,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --safe-left:env(safe-area-inset-left,0px);
  --radius-xl:30px;
  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:12px;
  --app-width:520px;
  --font-primary:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  --display:var(--font-primary);
  color-scheme:light;
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--shell-bg);scrollbar-width:none;-webkit-text-size-adjust:100%}
body{min-height:100%;margin:0;background:var(--shell-bg);color:var(--text);font-family:var(--font-primary);font-size:15px;line-height:1.45;overflow-x:hidden;scrollbar-width:none}
html.modal-scroll-locked{overflow:hidden!important;overscroll-behavior:none!important}
body.modal-scroll-locked{position:fixed!important;right:0!important;left:0!important;width:100%!important;overflow:hidden!important;touch-action:none!important;overscroll-behavior:none!important}
body::-webkit-scrollbar,.sheet::-webkit-scrollbar,.screens::-webkit-scrollbar,.day-tabs::-webkit-scrollbar,.chips::-webkit-scrollbar,.ai-chat-messages::-webkit-scrollbar{display:none}
button,input,select,textarea{font:inherit}
button{border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
button,a,label,input,select,textarea,.chip,.toggle{touch-action:manipulation}
button:disabled{cursor:not-allowed;opacity:.55}
a{color:var(--blue);font-weight:800;text-decoration:none}
h1,h2,h3,p{margin:0}
h1,h2,h3{color:var(--ink);line-height:1.12;letter-spacing:0}
h2{font-size:1.2rem;font-weight:900}
h3{font-size:1rem;font-weight:900}
ul{margin:0;padding:0}
.hidden{display:none!important}.full{width:100%}.grow{flex:1;min-width:0}.stack{display:grid;gap:12px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.muted{color:var(--muted)}.tiny{color:var(--muted);font-size:.78rem;line-height:1.45}.warning{color:var(--red)!important}.eyebrow,label>span,legend{color:var(--muted);font-size:.68rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.note,.form-note{color:var(--muted);font-size:.78rem;line-height:1.55}.pill{display:inline-flex;align-items:center;gap:5px;width:max-content;min-height:25px;padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:var(--blue-soft);color:var(--blue-deep);font-size:.68rem;font-weight:900}
.language-toggle,.country-toggle{display:inline-grid;place-items:center;width:54px;height:38px;margin:8px auto 14px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--blue-deep);font-size:.74rem;font-weight:900;letter-spacing:.03em;box-shadow:var(--shadow-soft)}.language-toggle.compact,.country-toggle.compact{width:40px;height:40px;margin:0;border-radius:50%;box-shadow:var(--shadow-soft)}.country-toggle{font-size:1.05rem;line-height:1}.language-toggle:active,.country-toggle:active{transform:translateY(1px)}

.app{position:relative;width:min(100%,var(--app-width));min-height:100vh;margin:0 auto;padding-bottom:132px;background:var(--app-surface)}
.app-top{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:11px 18px;border-bottom:0;background:var(--top-surface);box-shadow:none;backdrop-filter:none;transition:transform .24s ease,box-shadow .24s ease}.app-top.hide{transform:translateY(-105%)}.top-brand{display:flex;align-items:center;gap:10px;min-width:0}.top-brand img{width:38px;height:38px;border-radius:14px;background:#fff;box-shadow:0 12px 28px rgba(94,124,246,.16)}.top-brand strong{display:block;color:var(--ink);font-size:1.18rem;font-weight:900;line-height:1;letter-spacing:0}.top-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.icon-button,.drawer-close,.sheet-close{display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--control-surface);color:var(--blue-deep);box-shadow:var(--shadow-soft)}.icon-button,.language-toggle.compact,.country-toggle.compact{border-color:transparent;background:var(--control-surface);color:var(--blue-deep);box-shadow:var(--shell-control-shadow)}.icon-button{width:44px;height:44px;font-size:1rem}.tutorial-replay-button{font-weight:900}.screens{display:block;width:100%;padding:18px 16px 42px}.screen{display:none}.screen.active{display:block}.bottom-nav{position:fixed;right:0;bottom:calc(4px + var(--safe-bottom));left:0;z-index:1000;display:grid;grid-template-columns:repeat(5,1fr);width:min(calc(100% - 24px),calc(var(--app-width) - 24px));margin:0 auto;padding:7px 8px;border:1px solid rgba(47,68,112,.10);border-radius:24px;background:var(--nav-surface);box-shadow:var(--nav-shadow);backdrop-filter:none;pointer-events:auto}.bottom-nav button{display:grid;grid-template-rows:1fr;min-width:44px;place-items:center;gap:0;min-height:54px;padding:6px 2px;border-radius:18px;background:transparent;color:var(--muted);font-size:.72rem;line-height:1;pointer-events:auto}.bottom-nav button>i,.bottom-nav button>svg,.bottom-nav button>img{width:20px;height:20px;font-size:20px;line-height:20px;object-fit:contain}.bottom-nav span{font-size:.68rem;font-weight:900;line-height:1.1}.bottom-nav .active{background:var(--blue-soft);color:var(--blue)}
@media(min-width:760px){
  :root[data-platform-visual="web"] body{
    background:var(--shell-desktop-bg);
  }
  :root[data-platform-visual="web"] .app{
    min-height:100dvh;
    box-shadow:0 0 0 1px var(--line-soft),0 28px 72px rgba(20,30,52,.16);
  }
}
:root[data-platform-visual="mobile"] .app{
  width:100%;
  min-height:100dvh;
}
.bottom-nav > button > span[data-i18n]{display:none}
:root[data-platform-visual="mobile"] .screens{
  padding-right:max(14px,var(--safe-right));
  padding-left:max(14px,var(--safe-left));
}
:root[data-platform="android"] .app-top,
:root[data-platform="ios"] .app-top{
  padding-top:calc(11px + var(--safe-top));
}
:root[data-platform="android"] body::before,
:root[data-platform="ios"] body::before{content:"";position:fixed;top:0;right:0;left:0;z-index:31;height:var(--safe-top);background:var(--top-surface);pointer-events:none}
:root[data-platform="android"] .bottom-nav,
:root[data-platform="ios"] .bottom-nav{
  bottom:calc(4px + var(--safe-bottom));
}
:root[data-platform="android"] .modal.open,
:root[data-platform="ios"] .modal.open{--safe-bottom:0px;padding-bottom:env(safe-area-inset-bottom,0px)}
:root[data-platform="android"] .modal.open>.sheet,
:root[data-platform="ios"] .modal.open>.sheet{max-height:calc(100% - var(--safe-top) - 24px)!important}
:root[data-platform="android"] .modal.open::after,
:root[data-platform="ios"] .modal.open::after{content:"";position:fixed;right:0;bottom:0;left:0;height:env(safe-area-inset-bottom,0px);background:var(--modal-surface);pointer-events:none}
.app-top.menu-peek{border-bottom-color:transparent;background:transparent;box-shadow:none;backdrop-filter:none;pointer-events:none}.app-top.menu-peek .top-brand{opacity:0;transform:translateY(-10px);pointer-events:none}.app-top.menu-peek .top-actions{pointer-events:auto}.app-top.menu-peek .app-menu-button{border-color:rgba(102,127,255,.34);background:rgba(255,255,255,.96);color:var(--blue);box-shadow:0 14px 30px rgba(41,61,102,.16)}

.bottom-nav button.premium-locked,.plan-tabs button.premium-locked,[data-ai-open].premium-locked,.profile-goal-details-button.premium-locked{position:relative}.bottom-nav button.premium-locked:after,.plan-tabs button.premium-locked:after,[data-ai-open].premium-locked:after,.profile-goal-details-button.premium-locked:after{content:"";position:absolute;right:7px;top:7px;width:7px;height:7px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 3px rgba(255,169,76,.18)}
.panel,.profile-card,.today-card,.diary-card,.meal-card,.food-card,.cost-item,.recipe-card,.chart-card,.finance-detail-card,.finance-info-block,.recipe-builder,.advanced-profile,.reference-fields,.nutrition-photo-card,.finance-filter-box,.select-card,.ai-action-card,.notify-permission,.outside-inline-form{border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--card);box-shadow:var(--shadow-soft);color:var(--text)}.panel{padding:16px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:18px 0 12px}.section-heading.compact{margin:14px 0 9px}.section-heading h2{font-size:1.22rem}.section-heading p{color:var(--muted);font-size:.77rem}.row-actions,.toolbar,.chips{display:flex;flex-wrap:wrap;gap:8px}.chips,.day-tabs{overflow-x:auto;scrollbar-width:none}.day-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:12px 0 4px;padding:0}.segmented,.home-tabs,.diary-series-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.home-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
.primary,.soft,.ghost,.danger,.chip,.day-tabs button,.segmented button,.diary-series-controls button button,.home-tabs button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border-radius:999px;font-size:.78rem;font-weight:900;line-height:1;text-align:center;white-space:nowrap}.primary{background:var(--blue-deep);color:#fff;box-shadow:0 12px 22px rgba(41,61,102,.18)}.soft,.ghost,.chip,.day-tabs button,.segmented button,.diary-series-controls button button,.home-tabs button{border:1px solid var(--line);background:#fff;color:var(--ink)}.ghost{background:transparent}.danger{background:var(--red-soft);color:var(--red)}.small{min-height:36px;padding:0 12px;font-size:.76rem}.day-tabs .active,.chip.active,.segmented .active,.diary-series-controls .active .active,.home-tabs .active{border-color:var(--blue);background:var(--blue);color:#fff}.row-actions .primary,.row-actions .soft,.toolbar .primary,.toolbar .soft{flex:0 0 auto}
.text-link{display:inline-flex;align-items:baseline;min-height:0;padding:0 1px;border:0;border-radius:0;background:transparent;color:var(--blue);box-shadow:none;font:inherit;font-weight:900;line-height:inherit;text-align:inherit;text-decoration:none;white-space:normal;vertical-align:baseline}.text-link:hover{text-decoration:underline}.method-note-action{margin-top:8px;font-size:.78rem}
label{display:grid;gap:6px;min-width:0}fieldset{display:grid;gap:10px;margin:0;padding:12px;border:1px solid var(--line);border-radius:var(--radius-md);background:#fff}fieldset>legend{float:left;width:100%;margin:0 0 8px;padding:0;line-height:1.2}fieldset>legend+*{clear:both}input,select,textarea{width:100%;min-height:46px;padding:0 12px;border:1px solid var(--line);border-radius:14px;background:var(--field);color:var(--ink);outline:0;box-shadow:none}textarea{min-height:96px;padding:12px;resize:vertical}input::placeholder,textarea::placeholder{color:#A7ADBC}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(102,127,255,.14)}input[type="checkbox"],input[type="radio"]{width:18px;min-width:18px;height:18px;min-height:18px;padding:0;accent-color:var(--blue)}input[type="date"],input[type="time"]{color-scheme:light}.search,.picker-search,label.search{display:flex;align-items:center;gap:9px;min-height:50px;padding:0 13px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--muted);overflow:hidden;box-shadow:var(--shadow-soft)}.search input,.picker-search input,label.search input{min-height:44px;padding:0;border:0;background:transparent;box-shadow:none}.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.checks label,.toggle,.meal-option{display:flex;align-items:center;gap:8px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--text);font-size:.78rem;font-weight:800}.switch{position:relative;width:44px;height:25px;flex:0 0 auto}.switch input{display:none}.switch span{position:absolute;inset:0;border-radius:999px;background:#D8DEEE}.switch span:after{position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#fff;content:"";transition:.2s;box-shadow:0 3px 8px rgba(41,61,102,.16)}.switch input:checked+span{background:var(--blue)}.switch input:checked+span:after{transform:translateX(19px)}

.entry,.splash,.login{display:none;min-height:100vh;background:var(--bg);color:#fff}.entry.active{display:grid}.splash.active{place-items:center;padding:24px;text-align:center}.splash-center{display:grid;justify-items:center;width:min(100%,360px)}.splash img,.login-logo,.logo-mark img{width:88px;height:88px;border-radius:26px;background:#fff;box-shadow:var(--shadow)}.splash h1,.login-brand h1{margin-top:14px;color:#fff;font-size:2.12rem;font-weight:900}.splash p,.login-brand p{max-width:280px;margin:6px auto 0;color:rgba(255,255,255,.86);font-size:.95rem;line-height:1.45}.loader{position:relative;overflow:hidden;width:min(100%,220px);height:8px;margin:30px auto 0;border-radius:999px;background:rgba(255,255,255,.28)}.loader:before{position:absolute;inset:0 auto 0 0;width:0;border-radius:inherit;background:#fff;content:"";animation:loadbar 1.28s ease-out forwards}@keyframes loadbar{0%{width:0}72%{width:84%}100%{width:100%}}.login.active{position:fixed;inset:0;align-content:center;min-height:100dvh;padding:24px;overflow:hidden;overscroll-behavior:none;touch-action:none}.login-shell{display:grid;gap:22px;width:min(100%,420px);margin:auto;touch-action:manipulation}.login-brand{display:grid;justify-items:center;text-align:center}.login-brand .logo-mark{display:grid;place-items:center}.login-actions{display:grid;gap:11px;padding:14px;border:1px solid rgba(255,255,255,.26);border-radius:28px;background:rgba(255,255,255,.14);box-shadow:var(--shadow);backdrop-filter:blur(16px);touch-action:manipulation}.login-card{display:grid;gap:14px;padding:18px;border:1px solid rgba(255,255,255,.28);border-radius:var(--radius-xl);background:#fff;box-shadow:var(--shadow)}.social{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;border:1px solid rgba(41,61,102,.1);border-radius:18px;background:#fff;color:var(--ink);font-weight:900;box-shadow:0 10px 22px rgba(41,61,102,.12)}.social-icon{display:grid;place-items:center;width:25px;height:25px;flex:0 0 auto;border-radius:50%;background:#fff;color:#111;font-size:.98rem;font-weight:900}.google-icon svg{display:block;width:18px;height:18px}.apple-icon svg{display:block;width:18px;height:18px;fill:#111}.login-guest{min-height:48px;border-color:rgba(255,255,255,.48);background:rgba(255,255,255,.12);color:#fff}.social.guest{border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.16);color:#fff;box-shadow:none}.social.guest .social-icon{background:rgba(255,255,255,.18);color:#fff}

.profile-card{padding:16px;background:#fff}.home-hero-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-hero-identity{display:flex;align-items:center;gap:12px;min-width:0}.home-hero-identity em{display:block;margin-top:2px;color:var(--ink);font-size:.9rem;font-style:normal}.hero-avatar,.avatar{display:grid;place-items:center;overflow:hidden;width:54px;height:54px;flex:0 0 auto;border:1px solid var(--line);border-radius:50%;background:var(--blue-soft);color:var(--blue-deep);font-size:1.05rem;font-weight:900}.hero-avatar img,.avatar img{width:100%;height:100%;object-fit:cover}.hero-settings{display:none}.profile-card h2{font-size:1.25rem}.home-hero-kpis,.profile-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px}.home-hero-kpis div,.home-hero-kpis button,.profile-stats div{display:grid;align-content:space-between;gap:7px;min-height:74px;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface-2);text-align:left}.home-hero-kpis b,.profile-stats b{color:var(--ink);font-size:1rem;font-weight:900;line-height:1.15}.home-hero-kpis span,.profile-stats span{color:var(--muted);font-size:.72rem;line-height:1.25}.weight-kpi-action{cursor:pointer}.weight-kpi-action small{color:var(--blue);font-size:.76rem;font-weight:900}.hero-note{margin-top:13px;color:var(--muted);font-size:.8rem;line-height:1.55}.action-title{margin:8px 0 11px;color:var(--ink);font-size:1rem;font-weight:800}.home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.action-card{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) 22px;align-items:center;gap:11px;min-height:86px;padding:14px;border:1px solid var(--line);border-radius:22px;background:#fff;color:var(--ink);box-shadow:var(--shadow-soft);text-align:left}.action-card:after{display:none}.action-card>i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:rgba(41,61,102,.08);color:currentColor;font-style:normal;font-size:1rem;font-weight:900}.action-card[data-go="plan"],.action-card[data-go="finance"]{grid-column:1/-1;min-height:90px}.action-card[data-go="plan"]{border-color:var(--blue);background:var(--blue);color:#fff}.action-card[data-go="finance"]{border-color:var(--orange);background:var(--orange);color:#fff}.action-card strong{display:block;color:inherit;font-size:.94rem;line-height:1.12}.action-card small{display:-webkit-box;overflow:hidden;margin-top:3px;color:inherit;font-size:.71rem;font-weight:800;line-height:1.25;opacity:.88;-webkit-box-orient:vertical;-webkit-line-clamp:2}.action-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.28);font-size:1.08rem}.action-card[data-go="plates"],.action-card[data-go="foods"]{background:#fff;color:var(--ink)}.action-card[data-go="plates"]{border-color:var(--peach)}.action-card[data-go="foods"]{border-color:var(--blue-soft)}.action-card[data-go="plates"] .action-icon{background:var(--peach-soft)}.action-card[data-go="foods"] .action-icon{background:var(--blue-soft)}
.pre-profile-hero{align-items:flex-start;min-height:112px}.pre-profile-hero h2{font-size:1.55rem}.pre-profile-hero span{display:block;max-width:430px;margin-top:7px;color:var(--text);font-size:.9rem;line-height:1.55}.starter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:15px;margin-bottom:16px}.starter-grid div{display:grid;gap:6px;min-height:82px;padding:11px;border:1px solid var(--line);border-radius:18px;background:var(--surface-2)}.starter-grid b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--blue);color:#fff;font-size:.76rem}.starter-grid span{color:var(--text);font-size:.76rem;font-weight:800;line-height:1.3}.empty-today-intro{display:grid;gap:8px}.empty-today-intro h3{font-size:1.18rem}.empty-today-intro button{margin-top:4px}.objective-kpi{text-align:center}.objective-kpi b{align-self:center;text-align:center}.home-hero-kpis span{min-height:18px}.home-hero-kpis b{overflow:visible;text-overflow:clip;white-space:normal;text-align:inherit}.top-brand img{width:46px;height:46px;border-radius:16px}
.home-profile-summary{display:grid;grid-template-columns:72px repeat(3,minmax(0,1fr));gap:10px;align-items:center;padding-bottom:13px;border-bottom:1px solid var(--line)}.profile-person{display:grid;justify-items:center;gap:6px;min-width:0}.profile-person .hero-avatar{width:58px;height:58px}.profile-person strong{display:block;overflow:hidden;width:100%;color:var(--ink);font-size:.78rem;font-weight:900;line-height:1.15;text-align:center;text-overflow:ellipsis;white-space:nowrap}.profile-main-stat{display:grid;justify-items:center;gap:2px;min-height:62px;padding:6px;border-radius:16px;background:transparent;color:var(--ink);text-align:center}.profile-main-stat b{color:var(--ink);font-size:1.05rem;font-weight:900;line-height:1}.profile-main-stat span{color:var(--text);font-size:.7rem;font-weight:800;line-height:1}.profile-main-stat small{margin-top:2px;color:var(--muted);font-size:.62rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.profile-main-stat.weight-kpi-action{border:0;background:transparent;box-shadow:none;cursor:pointer}.profile-goal-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 0 0}.profile-goal-row div{display:grid;gap:4px}.profile-goal-row span{color:var(--muted);font-size:.68rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.profile-goal-row b{color:var(--green);font-size:.84rem;font-weight:900;line-height:1.25}.profile-health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.profile-health-grid div{display:grid;gap:4px;min-height:68px;padding:10px;border:1px solid var(--line-soft);border-radius:16px;background:var(--surface-2)}.profile-health-grid b{color:var(--ink);font-size:.92rem;font-weight:900}.profile-health-grid span{color:var(--muted);font-size:.64rem;line-height:1.25}

#planScreen .panel,.today-card,#planSummary{margin-bottom:12px}.today-card{padding:15px}.today-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.today-heading h3{margin-top:3px;font-size:1.02rem}.nutrient-heading h3{font-size:1.3rem}.nutrient-context{max-width:360px;margin-top:5px}.today-heading .pill{margin-top:2px}.nutrient-day-title{margin-top:8px}.summary-kcal{color:var(--ink);font-size:1.75rem;font-weight:900}.summary-kcal small{color:var(--muted);font-size:.78rem}.macro-grid,.day-nutrition-grid,.diary-macros{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.day-nutrition-grid{padding:10px;border:1px solid var(--line);border-radius:22px;background:var(--surface-2)}.macro,.day-macro,.diary-point-card div,.log-summary div,.diary-stats div,.finance-cycle-values>div,.leftover-grid span{position:relative;overflow:hidden;padding:11px;border:1px solid var(--line);border-radius:17px;background:#fff;color:var(--text)}.day-macro:before{position:absolute;top:0;right:0;left:0;height:4px;background:var(--tone,var(--blue));content:""}.day-macro:nth-child(1){--tone:var(--blue)}.day-macro:nth-child(2){--tone:var(--green)}.day-macro:nth-child(3){--tone:var(--orange)}.day-macro:nth-child(4){--tone:var(--red)}.macro b,.day-macro b,.diary-point-card b{display:block;color:var(--ink);font-size:.9rem}.day-macro:not(.planned-only) b,.day-macro:not(.planned-only) small{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;align-items:end}.day-macro b i,.day-macro small i{display:block;min-width:0;font-style:normal;line-height:1.1;text-align:center}.day-macro b i{color:var(--ink);font-size:.88rem}.day-macro small i{color:var(--muted);font-size:.62rem;font-weight:900;text-transform:uppercase}.day-macro b i+i,.day-macro small i+i{padding-left:5px;border-left:1px solid var(--line)}.macro span,.day-macro small,.meal-goal{display:block;margin-top:5px;color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase}.progress{height:7px;margin-top:8px;overflow:hidden;border-radius:999px;background:#E8EDF8}.progress i{display:block;width:var(--pct);height:100%;border-radius:inherit;background:var(--tone,var(--blue))}.dual-progress{position:relative}.dual-progress em{position:absolute;top:-2px;bottom:-2px;left:var(--mark);width:2px;border-radius:999px;background:var(--blue-deep);box-shadow:0 0 0 2px #fff;content:""}.meal-card{display:grid;gap:10px;padding:12px;border-radius:20px}.meal-head,.food-head,.cost-head,.dish-card-head{display:flex;align-items:center;gap:10px}.meal-open{display:flex;align-items:center;gap:10px;min-width:0;padding:0;background:transparent;color:inherit;text-align:left}.meal-icon,.food-image{display:grid;place-items:center;overflow:hidden;width:44px;height:44px;flex:0 0 auto;border:1px solid var(--line);border-radius:15px;background:var(--food-image-surface);font-size:1.12rem}.food-image img{width:100%;height:100%;object-fit:cover}.grow b{display:block;overflow:hidden;color:var(--ink);font-size:.88rem;line-height:1.18;text-overflow:ellipsis}.grow span{display:block;margin-top:2px;color:var(--muted);font-size:.75rem;line-height:1.3}.meal-items{display:grid;gap:5px;padding-top:9px;border-top:1px solid var(--line);color:var(--muted);font-size:.78rem}.meal-status-tag{margin-left:auto;min-height:36px;padding:0 13px;border:1px solid var(--blue);border-radius:999px;background:var(--blue-soft);color:var(--blue-deep);font-size:.74rem;font-weight:900;white-space:nowrap;max-width:112px;overflow:hidden;text-overflow:ellipsis}.meal-status-tag.ate{border-color:var(--green);background:var(--food-success-surface);color:#2F7650}.meal-status-tag.skipped{border-color:var(--red);background:var(--food-danger-surface);color:var(--red)}.meal-status-ate{border-color:rgba(118,185,142,.35);background:var(--food-success-surface)}.meal-status-skipped{border-color:rgba(231,109,114,.32);background:var(--food-danger-surface)}.check-meal{width:20px;height:20px;accent-color:var(--blue)}
.nutrient-heading h3{color:var(--orange)}.today-meals-title{margin:16px 0 10px;color:var(--ink);font-size:1.08rem;font-weight:900;line-height:1.1}.today-meal-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:10px;margin-top:0}.day-macro:not(.planned-only) b,.day-macro:not(.planned-only) small{grid-template-columns:repeat(3,minmax(0,1fr))}.day-macro:not(.planned-only) b i{font-size:.82rem;overflow-wrap:anywhere}.day-macro:not(.planned-only) small i{font-size:.56rem}.meal-status-tag{display:inline-flex;align-items:center;justify-content:center;min-width:82px;max-width:none;padding:0 12px;overflow:visible;text-overflow:clip}.today-meal-list .meal-card{height:100%;align-content:stretch}.today-meal-list .meal-head{align-items:stretch}.today-meal-list .meal-open{align-items:flex-start}.today-meal-list .grow span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.today-meal-list .meal-head{display:grid;grid-template-columns:1fr;grid-template-rows:1fr auto;height:100%}.today-meal-list .meal-status-tag{width:100%;margin-top:4px;margin-left:0}.action-card[data-go="plates"],.action-card[data-go="foods"]{min-height:98px}.action-card[data-go="plates"] small,.action-card[data-go="foods"] small{-webkit-line-clamp:3}.outside-create-choice,.outside-food-choice>button,.meal-food-choice{grid-template-columns:44px minmax(0,1fr) minmax(30px,auto)}.outside-food-choice em{white-space:nowrap}.modal-top-actions .small,.sheet-title.with-actions>.small{white-space:normal;line-height:1.15}

.meal-card .meal-head{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:start}.meal-card{position:relative}.meal-card>.meal-remove-button{position:absolute;top:10px;right:10px;z-index:2;width:34px;height:34px}.meal-card .meal-open{width:100%;align-items:flex-start;padding-right:36px}.meal-card .meal-open .grow span{max-width:100%;line-height:1.35}.meal-card .meal-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding-left:54px}.meal-card .meal-actions .soft{min-width:86px}.meal-card .meal-actions .meal-notify-button{min-width:96px}.meal-card .meal-status-tag{margin-left:0}.meal-consumed-amount{display:inline-block;margin-left:5px;color:var(--green);font-style:normal;font-weight:900}.today-meal-list{grid-template-columns:1fr}.today-meal-list .meal-card{height:auto;align-content:start;padding-top:14px}.today-meal-list .meal-head{height:auto;grid-template-rows:auto}.today-meal-list .meal-actions{padding-left:54px;justify-content:stretch}.today-meal-list .meal-actions .soft{flex:1 1 86px}.today-meal-list .meal-actions .meal-status-tag{flex:1 1 118px;width:auto;margin-top:0}.today-meal-list .meal-items{display:grid}.today-meal-list .grow span{display:block;overflow:visible;-webkit-line-clamp:unset}.outside-diet-card .meal-actions{padding-left:54px}.outside-diet-card .meal-status-tag{width:auto}@media(max-width:390px){.meal-card .meal-actions,.today-meal-list .meal-actions{padding-left:0;justify-content:stretch}.meal-card .meal-actions .soft,.meal-card .meal-actions .meal-status-tag{flex:1 1 96px}.meal-card>.meal-remove-button{top:10px;right:10px}.meal-consumed-amount{display:block;margin:2px 0 0}}
.food-card{position:relative;display:grid;gap:10px;padding:13px;background:var(--food-card-surface);cursor:pointer}.food-card.custom-food-card{padding-right:52px}.food-card-main{display:flex;align-items:center;gap:10px;min-width:0}.food-card-actions{display:flex;align-items:center;gap:8px}.food-card-actions button,.food-card-actions label{cursor:pointer}.food-delete-button{position:absolute;top:10px;right:10px;z-index:2;width:34px;height:34px;font-size:.92rem}.food-source{color:var(--orange);font-size:.68rem;font-weight:900;text-transform:uppercase}.recipe-badge{margin-left:6px;color:var(--blue);font-size:.68rem}.upload-control{display:grid;grid-template-columns:42px 1fr;gap:2px 10px;align-items:center;padding:11px;border:1px dashed var(--blue);border-radius:16px;background:var(--food-upload-surface);color:var(--text);cursor:pointer}.upload-control b{display:grid;grid-row:1/3;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--food-upload-preview-surface);color:var(--blue)}.upload-control i{color:var(--ink);font-size:.82rem;font-style:normal;font-weight:900}.upload-control small{color:var(--muted);font-size:.72rem}.upload-control input{display:none}.food-image-upload{grid-template-columns:50px minmax(0,1fr);gap:3px 11px}.food-image-upload-preview{overflow:hidden;width:50px;height:50px;border:1px solid var(--line);border-radius:15px;background:var(--food-upload-preview-surface)}.food-image-upload-preview img{width:100%;height:100%;object-fit:cover}.food-image-upload.has-image{border-style:solid;background:var(--food-upload-preview-surface)}.nutrition-photo-card{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:12px;background:var(--food-photo-surface)}.nutrition-photo-card b,.nutrition-photo-card span{display:block}.nutrition-photo-card b{color:var(--ink);font-size:.86rem}.nutrition-photo-card span{margin-top:3px;color:var(--muted);font-size:.74rem}.measurement-label-row{display:flex;align-items:center;gap:6px}.measurement-label-text{display:inline;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit}.measurement-guide-button{display:inline-grid;place-items:center;width:20px;height:20px;min-height:20px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--food-choice-surface);color:var(--blue);font-size:.7rem;font-weight:900;line-height:1;text-transform:none;box-shadow:0 6px 14px rgba(41,61,102,.08)}.measurement-guide-overlay{position:fixed;inset:0;z-index:1450;display:grid;align-items:end;justify-items:center;padding:16px;background:rgba(41,61,102,.42);backdrop-filter:blur(5px)}.measurement-guide-card{display:grid;gap:12px;width:min(100%,620px);max-height:min(92dvh,860px);overflow:auto;padding:16px;border:1px solid var(--line);border-radius:28px;background:var(--food-guide-surface);box-shadow:0 24px 58px rgba(41,61,102,.24)}.measurement-guide-card .sheet-title.with-actions.inline{position:relative;min-height:64px;margin:0;padding:0 0 12px;border-radius:0;box-shadow:none}.measurement-guide-card img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:20px;background:var(--cream)}.macro-reference{margin-top:-2px}.nutrition-facts-fields{padding:0;border:1px solid var(--line);border-radius:18px;background:var(--food-facts-surface);overflow:hidden}.nutrition-facts-fields legend{display:block;width:100%;padding:0}.nutrition-facts-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:50px;padding:0 13px;background:var(--surface-2);color:var(--blue-deep);font-size:.78rem;font-weight:900;letter-spacing:.04em;text-align:left;text-transform:uppercase}.nutrition-facts-toggle b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--food-choice-surface);color:var(--blue);font-size:1.05rem;box-shadow:0 8px 18px rgba(41,61,102,.08)}.nutrition-facts-fields.open .nutrition-facts-toggle{background:var(--food-choice-active-surface)}.nutrition-facts-body{display:grid;gap:10px;padding:12px}.nutrition-facts-body[hidden]{display:none}.group-protein,.group-proteina,.group-animal{--group:#76B98E}.group-carb,.group-carboidratos{--group:#FF9F71}.group-fat,.group-gorduras{--group:#FFC3A6}.group-fruit,.group-frutas{--group:#E76D72}.group-vegetable,.group-vegetais{--group:#76B98E}

.health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.health-grid div{display:grid;gap:3px;min-height:62px;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}.health-grid b{color:var(--ink);font-size:.95rem;font-weight:900}.health-grid span{color:var(--muted);font-size:.7rem}

.finance-summary{margin-bottom:12px}.money{margin-top:4px;color:var(--orange);font-size:1.45rem;font-weight:900}.finance-cycle-values,.finance-info-grid,.leftover-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}.finance-profile-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.finance-profile-tag{display:inline-flex;align-items:center;gap:8px;width:auto;min-height:42px;padding:8px 13px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text);font-size:.76rem;font-weight:900}.finance-profile-tag.active{border-color:var(--blue);background:var(--blue-soft);color:var(--blue-deep)}.finance-total{display:grid;gap:4px;min-height:70px;padding:12px;border-radius:19px;text-align:center;cursor:pointer}.finance-total.active{border-color:var(--blue);background:var(--blue-soft)}.finance-total span{color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase}.finance-total b{color:var(--ink);font-size:.92rem}.select-card,.finance-filter-box{display:grid;gap:9px;padding:13px}.chart-grid{display:grid;gap:12px;margin-top:12px}.chart-card{display:grid;justify-items:center;padding:15px}.donut-wrap{position:relative;width:158px;height:158px;margin:10px auto}.donut{width:100%;height:100%;border-radius:50%;background:conic-gradient(var(--blue) 0 100%)}.donut:after{position:absolute;inset:31px;border-radius:50%;background:#fff;content:""}.donut-center{position:absolute;inset:0;z-index:1;display:grid;place-content:center;text-align:center}.donut-center b{display:block;color:var(--ink);font-size:.96rem}.donut-center span{color:var(--muted);font-size:.72rem}.legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%;margin-top:8px}.legend span{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.75rem}.legend i{width:9px;height:9px;flex:0 0 auto;border-radius:50%}.price-row{display:grid;grid-template-columns:minmax(0,1fr) 86px minmax(0,1fr);gap:7px;margin-top:8px}.shopping{color:var(--blue);font-size:.75rem;font-weight:900}.cost-item{display:grid;gap:8px}.finance-detail-card,.finance-info-block{padding:13px}.finance-total-line{display:flex;justify-content:space-between;gap:10px;margin-top:8px;padding:9px;border-radius:13px;background:var(--blue-soft)}
.donut{cursor:pointer}.legend span{min-width:0;padding:4px 6px;border:1px solid transparent;border-radius:999px;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}.legend span.active{border-color:color-mix(in srgb,var(--blue) 34%,var(--line));background:var(--blue-soft);color:var(--blue-deep);transform:translateY(-1px)}.legend span.active i{box-shadow:0 0 0 3px rgba(102,127,255,.14)}
.finance-summary{position:relative;overflow:hidden;padding:15px}
.finance-summary:after{
  position:absolute;
  right:8px;
  bottom:6px;
  width:96px;
  height:96px;
  background:rgba(41,61,102,.1);
  -webkit-mask:url("/assets/features/economy-daruma-mask.png") center/contain no-repeat;
  mask:url("/assets/features/economy-daruma-mask.png") center/contain no-repeat;
  content:"";
  pointer-events:none;
}
.finance-summary>*{
  position:relative;
  z-index:1;
}
.finance-summary .eyebrow{margin-bottom:9px}
.finance-cycle-values{gap:10px;margin-top:0}
.finance-cycle-values>div{display:grid;align-content:center;gap:7px;min-height:78px;padding:12px;border-radius:18px;background:#fff}
.finance-cycle-values span{color:var(--blue-deep);font-size:.82rem;line-height:1.25;text-transform:none}
.finance-cycle-values .money{margin:0;color:var(--orange);font-size:1.42rem;line-height:1.05}
.finance-summary .muted{margin-top:9px;line-height:1.35}
.finance-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 12px}
.finance-period-strip{
  gap:10px;
  margin:0 0 12px;
}
.finance-period-strip[hidden]{
  display:none!important;
}
.finance-total{min-height:64px;width:100%;border:1px solid var(--line);background:#fff}
.finance-total.active{box-shadow:0 10px 22px rgba(102,127,255,.14)}
.finance-total b{font-size:.88rem}
.finance-period-strip .finance-total{
  align-content:center;
  gap:7px;
  min-height:78px;
  padding:12px;
  border-radius:18px;
  text-align:left;
}
.finance-period-strip .finance-total span{
  color:var(--blue-deep);
  font-size:.82rem;
  line-height:1.25;
  text-transform:none;
}
.finance-period-strip .finance-total b{
  color:var(--orange);
  font-size:1.42rem;
  line-height:1.05;
}
.finance-period-strip .finance-total small{
  color:var(--muted);
  font-size:.64rem;
  font-weight:900;
  line-height:1.15;
}
.finance-period-strip .finance-total.active{
  border-color:rgba(102,127,255,.44);
  background:var(--blue-soft);
}
.finance-summary .finance-totals{
  gap:10px;
  margin:0;
}
.finance-summary .finance-total{
  align-content:center;
  gap:7px;
  min-height:78px;
  padding:12px;
  border-radius:18px;
  text-align:left;
}
.finance-summary .finance-total span{
  color:var(--blue-deep);
  font-size:.82rem;
  line-height:1.25;
  text-transform:none;
}
.finance-summary .finance-total b{
  color:var(--orange);
  font-size:1.42rem;
  line-height:1.05;
}
.finance-summary .finance-total small{
  color:var(--muted);
  font-size:.64rem;
  font-weight:900;
  line-height:1.15;
}
.finance-summary .finance-total.active{
  border-color:rgba(102,127,255,.44);
  background:var(--blue-soft);
}
.finance-filter-box{gap:8px;margin-bottom:14px;padding:10px;border-radius:20px}
.finance-filter-box .search{min-height:44px}
.finance-filter-box .search input{min-height:40px}
.market-list-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:44px;
  padding:6px 8px 6px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--blue-deep);
  font-size:.82rem;
  font-weight:950;
  box-shadow:0 10px 22px rgba(41,61,102,.06);
}
.market-list-toggle span{
  position:relative;
  width:48px;
  height:28px;
  order:2;
  border-radius:999px;
  background:var(--surface-2);
  box-shadow:inset 0 0 0 1px var(--line);
}
.market-list-toggle span:after{
  position:absolute;
  top:4px;
  left:4px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 5px 12px rgba(41,61,102,.18);
  content:"";
  transition:transform .18s ease;
}
.market-list-toggle.active{
  border-color:rgba(102,127,255,.34);
  background:var(--blue-soft);
}
.market-list-toggle.active span{background:var(--blue)}
.market-list-toggle.active span:after{transform:translateX(20px)}
.market-list-mode{gap:8px}
.market-list-item{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 38px;
  align-items:center;
  gap:10px;
  min-height:64px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow-soft);
}
.market-list-item.checked{
  border-color:rgba(71,181,116,.28);
  background:#F1FAF4;
}
.market-list-item div{display:grid;gap:2px;min-width:0}
.market-list-item b{
  overflow:hidden;
  color:var(--ink);
  font-size:.9rem;
  line-height:1.1;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.market-list-item small{color:var(--muted);font-size:.76rem;font-weight:900}
.market-list-item button{
  position:relative;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:1px solid rgba(102,127,255,.24);
  border-radius:50%;
  background:var(--blue-soft);
  color:var(--blue);
  font-size:1rem;
  font-weight:950;
}
.market-list-item button:before{
  content:"";
  width:10px;
  height:6px;
  border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;
  opacity:0;
  transform:rotate(-45deg) translate(1px,-1px);
}
.market-list-item.checked button{
  border-color:rgba(71,181,116,.34);
  background:#2F8C5B;
  color:#fff;
}
.market-list-item.checked button:before{
  opacity:1;
}
.finance-filter-panel{display:grid;gap:5px;padding:8px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.68);overflow:hidden}
.finance-filter-panel .filter-label{margin:0;color:var(--muted);font-size:.64rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.finance-filter-panel .chips{display:flex;flex-wrap:wrap;gap:5px;overflow:visible}
.finance-filter-panel .chip{min-height:28px;padding:0 8px;border-radius:999px;font-size:.61rem;line-height:1}
.finance-filter-panel .chips .chip{flex:0 1 auto;max-width:100%}
.cost-item{gap:10px;padding:13px;border-radius:22px}
.cost-head{align-items:center}
.cost-head .grow span{font-size:.72rem}
.shopping{font-size:.68rem;white-space:nowrap}
.price-row{grid-template-columns:minmax(54px,.55fr) minmax(76px,.7fr) minmax(96px,1fr);gap:7px;margin-top:2px}
.price-row input,.price-row select{min-height:46px;border-radius:14px}
.finance-fractional{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;align-items:center;min-height:48px;padding:9px 11px;border-color:rgba(71,181,116,.24);border-radius:16px;background:#FBFEFC}
.finance-fractional input{grid-column:1;grid-row:1;align-self:center;justify-self:center}
.finance-fractional>span{display:none}
.finance-fractional b{color:#287A46;font-size:.82rem;line-height:1.15}
.finance-fractional small{display:none}
.finance-fractional b,.finance-fractional small{grid-column:2;min-width:0;overflow-wrap:normal;word-break:normal}
.finance-fractional.active{border-color:rgba(71,181,116,.28);background:#F1FAF4}
.finance-fractional.active b{color:#287A46}
.finance-fractional.active small{color:#356A49}
.finance-purchase-mode{display:grid;gap:4px;min-height:70px;margin:0;padding:12px;border:1px solid rgba(245,158,11,.24);border-radius:17px;background:#FFF8EF}
.finance-purchase-mode b{color:#8A5A11;font-size:.84rem;line-height:1.2}
.finance-purchase-mode span{color:#75521B;font-size:.76rem;font-weight:800;line-height:1.35}
.finance-info-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:2px}
.finance-info-block{display:grid;align-content:start;gap:0;min-height:50px;padding:0;border-radius:18px;background:#fff;overflow:hidden}
.finance-info-block summary{display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:5px;min-height:50px;padding:10px 9px;cursor:pointer;list-style:none}
.finance-info-block summary::-webkit-details-marker{display:none}
.finance-info-block summary i{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,.64);color:currentColor;font-style:normal}
.finance-info-block summary i:before{content:"+";font-size:.75rem;font-weight:950;line-height:1}
.finance-info-block[open] summary i:before{content:"-"}
.finance-info-block>div{display:grid;gap:4px;padding:0 10px 10px}
.finance-info-block strong{display:block;color:var(--blue-deep);font-size:.82rem;line-height:1.25}
.finance-info-block span{display:block;color:var(--text);font-size:.76rem;line-height:1.34}
.finance-info-block.consume{border-color:rgba(102,127,255,.22);background:var(--blue-soft)}
.finance-info-block.buy{border-color:rgba(255,159,113,.32);background:var(--peach-soft)}
.finance-info-block.leftover{border-color:rgba(118,185,142,.28);background:#F0FAF4}
@media(max-width:430px){.finance-cycle-values,.finance-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-cycle-values>div{padding:10px;min-height:72px}.finance-cycle-values span{font-size:.72rem}.finance-cycle-values .money{font-size:1.1rem}.finance-info-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.price-row{grid-template-columns:minmax(54px,.55fr) minmax(76px,.7fr) minmax(96px,1fr)}.finance-info-block summary{padding:9px 7px}.finance-info-block strong{font-size:.72rem}.finance-info-block span{font-size:.68rem}}

.recipe-food-select,.meal-food-choice,.outside-food-choice,.meal-choice{display:grid;gap:4px;min-height:64px;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--food-choice-surface);color:var(--text);text-align:left}.meal-food-choice,.outside-food-choice>button{display:grid;grid-template-columns:44px minmax(0,1fr) 30px;align-items:center;gap:10px;width:100%;min-height:66px;padding:10px;border:1px solid var(--line);border-radius:18px;background:var(--food-choice-surface);color:var(--text);box-shadow:var(--shadow-soft);text-align:left}.outside-food-choice{display:grid;grid-template-columns:1fr;gap:8px;width:100%;padding:0;border:0;background:transparent;box-shadow:none}.outside-food-choice.selected>button{border-color:var(--blue);background:var(--food-choice-active-surface)}.outside-food-choice i,.meal-food-choice i,.outside-food-choice em{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--food-choice-active-surface);color:var(--blue);font-style:normal;font-weight:900}.outside-food-choice em{width:auto;min-width:30px;padding:0 9px;border-radius:999px;background:var(--blue);color:#fff;font-size:.66rem}.recipe-food-select span,.meal-food-choice span,.outside-food-choice span{color:var(--muted);font-size:.72rem;font-weight:800;text-transform:none}.meal-food-choice .grow span,.outside-food-choice .grow span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.recipe-food-select b,.meal-food-choice b,.outside-food-choice b{color:var(--ink);font-size:.88rem}.recipe-food-select small,.meal-food-choice small,.outside-food-choice small{color:var(--muted);font-size:.72rem}.recipe-ingredient-row,.filling-edit-row{display:grid;grid-template-columns:minmax(0,1fr) 92px 38px;gap:8px;align-items:end}

.diary-card{padding:15px}.diary-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.diary-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:10px}.diary-range label{display:grid;gap:6px;min-width:0;overflow:hidden;padding:9px;border:1px solid var(--line);border-radius:16px;background:var(--diary-control-surface)}.diary-range input{min-width:0;width:100%;font-size:.84rem}.diary-chart{position:relative;margin-top:14px;padding:10px 8px 12px;border:1px solid var(--line);border-radius:22px;background:var(--diary-card-surface);overflow:hidden}.diary-chart svg{display:block;width:100%;height:auto}.chart-grid-lines line{stroke:var(--diary-grid-line);stroke-width:1}.chart-grid-lines text,.chart-labels text{fill:var(--muted);font-size:11px;font-weight:800}.chart-lines path,.chart-goal-path{fill:none;stroke:var(--line);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.chart-lines path{stroke:var(--line)}.chart-goal-path{stroke:var(--line);stroke-width:2;stroke-dasharray:5 6;opacity:.75}.diary-point,.goal-dot{fill:var(--line);stroke:var(--diary-card-surface);stroke-width:1.5}.diary-point.selected,.goal-dot.selected{stroke:var(--blue-deep);stroke-width:2.5}.chart-weight-marks line{stroke:var(--orange);stroke-width:2;stroke-dasharray:4 5}.chart-weight-marks rect{fill:var(--peach-soft);stroke:var(--peach)}.chart-weight-marks text{fill:var(--blue-deep);font-size:10px;font-weight:900}.diary-legend{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;color:var(--muted);font-size:.72rem}.diary-legend span{display:flex;align-items:center;gap:6px}.diary-legend i{display:block;width:9px;height:9px;border-radius:50%;background:var(--line)}.goal-legend i{width:18px;height:2px;border-radius:999px;background:var(--muted)}.weight-legend i{width:2px;height:14px;border-radius:999px;background:var(--orange)}.diary-point-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:20px;background:var(--diary-card-surface)}.diary-point-card .eyebrow,.diary-weight-cell{grid-column:1/-1}.diary-point-card div{min-height:58px}.diary-point-card h3{color:var(--orange);font-size:.9rem}.diary-point-card .grid2{gap:8px}

.profile-backdrop{position:fixed;inset:0;z-index:1005;display:none;overflow:hidden;background:var(--drawer-backdrop);backdrop-filter:blur(3px);overscroll-behavior:none}.profile-backdrop.open{display:block}.profile-drawer{position:fixed;top:0;right:0;bottom:0;z-index:1010;display:flex;flex-direction:column;width:min(100%,430px);max-width:100vw;min-width:0;overflow:hidden;scrollbar-width:none;padding:18px 16px 0;border-left:1px solid var(--line);background:var(--drawer-surface);box-shadow:var(--drawer-shadow);transform:translateX(100%);transition:transform .25s ease;overscroll-behavior-x:none;overscroll-behavior-y:contain;touch-action:pan-y}.profile-drawer.open{transform:translateX(0)}.drawer-head{position:sticky;top:-18px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-18px -16px 14px;padding:16px;border-bottom:1px solid var(--line);background:var(--drawer-header-surface);backdrop-filter:blur(14px)}.drawer-close{width:42px;height:42px}.avatar-editor{display:flex;align-items:center;gap:12px}.avatar-editor img{width:62px;height:62px;border-radius:50%;background:var(--blue-soft);object-fit:cover}.avatar-editor b{display:block;color:var(--ink);font-size:.95rem}.avatar-editor span{display:block;margin-top:3px;color:var(--muted);font-size:.76rem}.profile-avatar-upload input,.file-button input{display:none}.slot-title{display:grid;gap:6px}.slot-title span{color:var(--muted);font-size:.78rem;line-height:1.55}.slot-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}.slot-tabs button{display:grid;align-content:center;gap:2px;min-height:52px;padding:8px 9px;border:1px solid var(--line);border-radius:18px;background:var(--profile-option-surface);color:var(--ink);font-size:.76rem;font-weight:900;text-align:left}.slot-tabs button b,.slot-tabs button span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slot-tabs button span{color:var(--muted);font-size:.65rem;font-weight:800}.slot-tabs button.active{border-color:var(--blue);background:var(--blue-soft);color:var(--blue-deep)}.activity-grid,.profile-access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.activity-grid label{align-content:end;min-height:78px;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--profile-option-surface)}.activity-grid b{color:var(--ink);font-size:.82rem}.activity-grid select{min-height:40px}.activity-help,.profile-terms{color:var(--muted);font-size:.77rem}.activity-help{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--profile-option-surface)}.activity-help div{display:grid;gap:3px;padding:9px;border-radius:13px;background:var(--profile-muted-surface)}.activity-help b{color:var(--ink);font-size:.78rem}.activity-help span{color:var(--muted);font-size:.76rem;line-height:1.45}.activity-help-trigger{display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:14px;background:var(--profile-muted-surface);color:var(--ink);font-size:.8rem;font-weight:900;text-align:left}.activity-help-trigger span:first-child{display:block;min-width:0;width:auto;height:auto;border-radius:0;background:transparent;color:inherit;line-height:1.22}.activity-help-trigger span:last-child{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--profile-option-surface);color:var(--blue)}.advanced-profile{display:grid;gap:12px;padding:0;border-color:rgba(102,127,255,.24);border-radius:14px;background:var(--profile-option-surface)}.advanced-profile summary{display:flex;align-items:center;justify-content:space-between;min-height:54px;padding:0 12px;border-radius:14px;background:var(--profile-option-surface);cursor:pointer;color:var(--blue-deep);font-size:.8rem;font-weight:900;line-height:1}.advanced-profile summary::-webkit-details-marker{display:none}.advanced-profile summary:after{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--blue);color:#fff;box-shadow:0 8px 18px rgba(102,127,255,.2);content:"+"}.advanced-profile[open] summary:after{content:"-"}.advanced-profile label,.advanced-profile .note,.advanced-profile .toggle,.advanced-section-title{margin:0 12px}.advanced-section-title{color:var(--blue-deep);font-size:.7rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.advanced-profile .note:last-child,.advanced-profile label:last-child,.advanced-profile .toggle:last-child{margin-bottom:12px}.profile-access{display:grid;gap:12px;padding:14px}.profile-access-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-access-grid div{display:grid;gap:3px;min-height:58px;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--profile-muted-surface)}.profile-access-grid span{color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase}.profile-access-grid b{color:var(--ink);font-size:.9rem}.profile-terms{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid var(--line);border-radius:16px;background:var(--profile-option-surface)}.profile-logout{min-height:48px;border:1px solid rgba(231,109,114,.25);background:var(--red);color:#fff;box-shadow:0 12px 22px rgba(231,109,114,.18)}.profile-update-options{display:grid;gap:8px}.profile-update-options label{display:flex;align-items:center;gap:8px;padding:11px;border:1px solid var(--line);border-radius:16px;background:var(--profile-option-surface)}
.profile-drawer .drawer-head{flex:0 0 auto}
#profileForm{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;padding-bottom:14px;scrollbar-width:none;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
#profileForm::-webkit-scrollbar{display:none}
.profile-save-footer{position:relative;z-index:3;flex:0 0 auto;min-height:0;max-height:calc(70px + var(--safe-bottom));margin:8px -16px 0;padding:8px 16px calc(10px + var(--safe-bottom));border-top:1px solid var(--line);background:var(--drawer-header-surface);box-shadow:0 -16px 30px rgba(41,61,102,.1);backdrop-filter:blur(14px)}
.profile-save-footer .primary{min-height:48px;border-radius:18px;font-size:.95rem;box-shadow:0 16px 28px rgba(102,127,255,.24)}

.modal{position:fixed;inset:0;z-index:1300;display:none;align-items:flex-end;justify-content:center;overflow:hidden;background:var(--modal-backdrop);backdrop-filter:blur(4px);overscroll-behavior:none}.modal.open{display:flex}.modal[data-modal-sheet="terms-modal-sheet"]{align-items:flex-start;padding:12px 0}.sheet{position:relative;display:flex;flex-direction:column;width:min(100%,620px);max-width:100vw;min-width:0;max-height:92dvh;overflow:hidden;padding:18px 16px calc(22px + var(--safe-bottom));border:1px solid var(--line);border-bottom:0;border-radius:30px 30px 0 0;background:var(--modal-surface);box-shadow:var(--modal-shadow);overscroll-behavior-x:none}#modalBody{width:100%;max-width:100%;min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;overscroll-behavior-x:none;overscroll-behavior-y:contain}#modalBody::-webkit-scrollbar{display:none}.sheet-close{position:absolute;top:16px;right:14px;z-index:90;width:46px;height:46px;font-size:1.24rem;line-height:1;border-color:var(--line);background:var(--control-surface);color:var(--blue-deep);box-shadow:0 14px 32px rgba(41,61,102,.16);pointer-events:auto}.sheet h2{padding-right:52px}.sheet-title.with-actions{position:sticky;top:0;z-index:40;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:58px;margin:-2px -2px 14px;padding:4px 58px 12px 2px;border-bottom:1px solid var(--line);background:var(--modal-header-surface);backdrop-filter:blur(10px)}.sheet-title.with-actions h2{padding-right:0}.finance-detail-sheet{width:min(calc(100% - 28px),620px);max-height:min(88dvh,760px);margin-bottom:14px;padding:19px 16px 16px;border-radius:28px;background:var(--modal-surface)}.finance-detail-sheet .sheet-close{top:18px;right:14px}.finance-detail-sheet>h2{padding-right:54px;color:var(--blue-deep);font-size:1.16rem}.finance-detail-sheet>p{margin-top:4px;padding-right:54px;color:var(--muted);font-size:.79rem;line-height:1.35}.finance-detail-stack{gap:12px;margin-top:12px}.finance-detail-stack .finance-detail-card{display:grid;gap:8px;padding:14px;border-color:var(--line);border-radius:19px;background:var(--card);box-shadow:none}.finance-detail-stack .finance-detail-card h3{font-size:.94rem;line-height:1.15}.finance-detail-stack .finance-detail-card p{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 5px;color:var(--text);font-size:.86rem;line-height:1.35}.finance-detail-stack .finance-detail-card p span{color:var(--text)}.finance-detail-stack .finance-detail-card p b{color:var(--blue-deep);font-weight:900}.finance-detail-stack .finance-total-line{display:flex;justify-content:space-between;gap:10px;margin-top:4px;padding:10px 11px;border-radius:13px;background:var(--blue-soft)}.finance-detail-stack .finance-total-line span{color:var(--text)}.finance-detail-stack .finance-total-line b{margin-left:auto}.terms-modal-sheet{width:min(calc(100% - 28px),720px);height:calc(100dvh - 24px);max-height:780px;margin:0;border-bottom:1px solid var(--line);border-radius:28px;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.terms-modal-sheet .sheet-close{top:16px;right:14px}.terms-modal-sheet .sheet-title.with-actions{top:0}.terms-modal-sheet .terms-card{padding:0;border:0;background:transparent;box-shadow:none}.terms-modal-sheet .prose{gap:10px;padding-bottom:18px}.terms-modal-sheet .prose p{font-size:.84rem;line-height:1.65}.modal-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.modal-top-actions .small,.sheet-title.with-actions>.small{height:38px;min-height:38px;padding:0 14px}.outside-diet-sheet .sheet-title,.recover-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.log-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.log-summary div{min-height:58px}.log-summary b{display:block;color:var(--ink);font-size:1rem}.log-summary span{display:block;margin-top:2px;color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase}.insert-meal-list{gap:10px}.insert-meal-list .meal-choice{display:grid;grid-template-columns:42px minmax(0,1fr) 28px;align-items:center;gap:10px;min-height:68px;padding:11px 12px;border-radius:18px;background:var(--card);box-shadow:var(--shadow-soft)}.insert-meal-list .meal-choice span{display:grid;place-items:center;width:42px;height:42px;border-radius:15px;background:var(--blue-soft);color:var(--blue);font-size:1.05rem}.insert-meal-list .meal-choice b{font-size:.92rem}.insert-meal-list .meal-choice i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--surface-2);color:var(--blue-deep);font-style:normal}.outside-create-choice{grid-template-columns:44px minmax(0,1fr) 30px;margin:10px 0}.partial-row,.meal-edit-row{display:grid;gap:10px;align-items:start;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--card)}.meal-edit-row-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}.meal-edit-actions{display:flex;gap:7px;align-items:center}.edit-macro-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:8px}.edit-macro-list small{display:block;padding:7px 9px;border-radius:12px;background:var(--surface-2);color:var(--text);font-size:.78rem;font-weight:800}.meal-gram-input,.meal-amount-field{max-width:116px}.meal-amount-field small{color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase}.swap-button,.remove-button{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;font-size:1rem;font-weight:900}.swap-button{background:var(--blue-soft);color:var(--blue)}.remove-button{background:var(--red-soft);color:var(--red)}.filling-editor,.filling-lines{display:grid;gap:8px;margin-top:9px}.filling-editor summary{cursor:pointer;color:var(--ink);font-size:.78rem;font-weight:900}.filling-editor summary b{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:5px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:.7rem}.filling-line{display:grid;gap:7px;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--card)}.toast{position:fixed;right:16px;bottom:94px;left:16px;z-index:1500;display:none;width:min(calc(100% - 32px),480px);margin:auto;padding:13px 15px;border:1px solid rgba(41,61,102,.1);border-radius:16px;background:var(--blue-deep);color:#fff;box-shadow:var(--shadow);font-size:.82rem;font-weight:900;text-align:center}.toast.show{display:block}
.sheet-title.with-actions{top:0;grid-template-columns:minmax(0,1fr);align-items:start;gap:12px;min-height:122px;margin:-18px -16px 14px;padding:24px 58px 14px 16px;border-radius:30px 30px 0 0;box-shadow:0 -30px 0 #fff}.sheet-title.with-actions>div{min-width:0}.sheet-title.with-actions h2{padding-right:0;font-size:1.08rem}.sheet-title.with-actions .modal-top-actions{grid-column:1;justify-content:flex-start;flex-wrap:wrap}.sheet-title.with-actions .modal-top-actions .small{height:38px;min-height:38px}.sheet-title.with-actions>.small{justify-self:center;min-width:min(100%,184px)}.sheet-title.with-actions>.primary.small{background:var(--blue-deep);color:#fff}.sheet-title.food-form-title{text-align:center}.sheet-title.food-form-title .modal-top-actions{justify-content:center}.sheet-title.food-form-title .modal-top-actions .primary.small{min-width:min(100%,184px)}.sheet-title.picker-title{top:0;z-index:75;min-height:92px}.outside-diet-sheet .sheet-title.with-actions{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}.sheet-title.with-actions.inline{min-height:86px;padding-right:16px}.sheet-title.with-actions.inline>.small{justify-self:end;min-width:88px}@media(max-width:430px){.sheet{max-height:94dvh;padding-right:14px;padding-left:14px}.sheet-title.with-actions{padding-right:56px}.modal-top-actions{flex-wrap:wrap}.sheet-title.with-actions .modal-top-actions{justify-content:flex-start}.sheet-title.with-actions .modal-top-actions .small{padding:0 13px}.sheet-title.food-form-title .modal-top-actions{justify-content:center}.sheet-close{width:46px;height:46px}}
.modal-top-actions .meal-refresh-button{width:38px;min-width:38px;padding:0;border-radius:50%;font-size:1rem;line-height:1}
.method-summary-sheet{width:min(calc(100% - 28px),560px);max-height:min(86vh,720px);margin-bottom:14px;border-bottom:1px solid var(--line);border-radius:28px;background:#fff}.method-summary-modal{display:grid;gap:12px}.method-summary-lead{color:var(--blue-deep);font-size:1rem;font-weight:900}.method-summary-list{display:grid;gap:8px}.method-summary-list article{display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;align-items:start;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}.method-summary-list b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--blue-soft);color:var(--blue);font-size:.84rem}.method-summary-list span,.method-summary-card p{color:var(--text);font-size:.82rem;line-height:1.55}.method-summary-card{display:grid;gap:5px;padding:11px;border:1px solid var(--line);border-radius:16px;background:#fff}.method-summary-card.soft-note{background:var(--surface-2)}
.day-macro.target-planned b,.day-macro.target-planned small{grid-template-columns:repeat(2,minmax(0,1fr))}
.outside-inline-form{
  display:grid;
  gap:8px;
  margin:8px 0 12px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.outside-inline-head{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:1px 2px 4px;
}
.outside-inline-head .food-image{
  width:44px!important;
  height:44px!important;
  border-radius:16px!important;
  box-shadow:0 10px 22px rgba(41,61,102,.08);
}
.outside-inline-head h3{
  margin-top:1px;
  color:var(--blue-deep);
  font-size:1.05rem;
  line-height:1.08;
}
.outside-inline-head strong{
  display:block;
  margin-top:2px;
  color:var(--text);
  font-size:.82rem;
  font-weight:850;
  line-height:1.32;
}
.outside-inline-head.compact{
  min-height:52px;
}
.outside-inline-head small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:850;
  line-height:1.25;
}
.outside-inline-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:9px;
  padding:10px;
  border:1px solid color-mix(in srgb,var(--blue) 12%,var(--line));
  border-radius:18px;
  background:rgba(255,255,255,.78);
}
.outside-inline-section{
  display:grid;
  gap:0;
  border:1px solid color-mix(in srgb,var(--blue) 12%,var(--line));
  border-radius:18px;
  background:rgba(255,255,255,.56);
  overflow:hidden;
}
.outside-inline-section summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) 28px;
  align-items:center;
  gap:10px;
  min-height:50px;
  padding:10px 11px;
  cursor:pointer;
  list-style:none;
}
.outside-inline-section summary::-webkit-details-marker{
  display:none;
}
.outside-inline-section summary:after{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--outside-card-surface);
  color:var(--blue-deep);
  content:"+";
  font-weight:950;
}
.outside-inline-section[open] summary:after{
  content:"-";
}
.outside-inline-section summary span{
  display:grid;
  gap:2px;
  min-width:0;
}
.outside-inline-section summary b{
  color:var(--blue-deep);
  font-size:.86rem;
  line-height:1.12;
}
.outside-inline-section summary small{
  color:var(--muted);
  font-size:.68rem;
  font-weight:850;
  line-height:1.24;
}
.outside-inline-section>.outside-inline-card{
  margin:0 10px 10px;
}
.outside-inline-micros .grid2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.outside-inline-card label{
  min-width:0;
}
.outside-inline-card label span,
.outside-inline-section-title .eyebrow{
  color:var(--muted);
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.outside-inline-card input,
.outside-inline-card select{
  min-height:44px;
  height:44px;
  margin-top:5px;
  padding:0 12px;
  border-color:color-mix(in srgb,var(--blue) 16%,var(--line));
  border-radius:15px;
  background:#fff;
  color:var(--ink);
  font-size:.88rem;
  font-weight:850;
  box-shadow:none;
}
.outside-inline-name{
  grid-column:1/-1;
}
.outside-inline-nutrition{
  grid-template-columns:1fr;
}
.outside-inline-amount{
  align-items:end;
}
.outside-inline-amount b{
  display:grid;
  align-items:center;
  justify-content:center;
  min-height:44px;
  margin-top:19px;
  border:1px solid color-mix(in srgb,var(--green) 20%,var(--line));
  border-radius:15px;
  background:color-mix(in srgb,var(--green-soft) 56%,#fff);
  color:var(--green);
  font-size:.78rem;
  font-weight:950;
}
.outside-inline-section-title{
  display:grid;
  gap:2px;
}
.outside-inline-section-title h4{
  color:var(--blue-deep);
  font-size:.9rem;
  line-height:1.1;
}
.outside-inline-macro-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}
.outside-inline-macro-grid input{
  text-align:center;
}
.outside-inline-amount{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
}
.outside-inline-amount b{
  display:grid;
  place-items:center;
  min-height:44px;
  padding:0 13px;
  border:1px solid color-mix(in srgb,var(--green) 18%,var(--line));
  border-radius:15px;
  background:color-mix(in srgb,var(--green) 10%,#fff);
  color:var(--green);
  font-size:.72rem;
  font-weight:950;
  text-transform:uppercase;
}
.outside-inline-footer{
  position:sticky;
  bottom:0;
  z-index:2;
  margin:0 -2px -2px;
  padding-top:6px;
  background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 48%);
}
.outside-inline-footer .primary{
  min-height:46px;
  border-radius:17px;
}
@media(max-width:430px){
  .outside-inline-form{
    padding:11px;
    border-radius:20px;
  }
  .outside-inline-card{
    grid-template-columns:1fr;
    gap:8px;
  }
  .outside-inline-micros .grid2{
    grid-template-columns:1fr;
  }
  .outside-inline-macro-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .outside-inline-amount{
    grid-template-columns:1fr;
  }
  .outside-inline-amount b{
    margin-top:0;
  }
}
html.tutorial-open,body.tutorial-open{overflow:hidden!important;overscroll-behavior:none!important;touch-action:none!important}body.tutorial-open{position:fixed!important;top:var(--tutorial-scroll-y,0)!important;right:0!important;left:0!important;width:100%!important;height:100dvh!important}body.tutorial-open #app,body.tutorial-open .screens,body.tutorial-open .screen.active{overflow:hidden!important;overscroll-behavior:none!important}.tutorial-overlay{position:fixed;inset:0;z-index:1700;pointer-events:auto;touch-action:none}.tutorial-overlay.hidden{display:none}.tutorial-spotlight{position:fixed;border:2px solid rgba(255,255,255,.95);border-radius:22px;box-shadow:0 0 0 9999px rgba(25,35,61,.58),0 20px 50px rgba(20,31,55,.24);pointer-events:none;transition:top .18s ease,left .18s ease,width .18s ease,height .18s ease}.tutorial-card{position:fixed;display:grid;gap:8px;width:min(340px,calc(100vw - 32px));padding:15px;border:1px solid rgba(255,255,255,.72);border-radius:22px;background:#fff;color:var(--text);box-shadow:0 22px 54px rgba(20,31,55,.24);pointer-events:auto;touch-action:auto}.tutorial-card h2{color:var(--ink);font-size:1.02rem;line-height:1.18}.tutorial-card p:not(.eyebrow){color:var(--text);font-size:.82rem;line-height:1.45}#tutorialText{white-space:pre-line}.tutorial-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px;margin-top:4px}.tutorial-actions .small{width:100%;min-height:38px}
.tutorial-card.center-card{gap:10px;padding:18px;border-radius:26px;background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--blue-soft) 22%,#fff));box-shadow:0 28px 70px rgba(20,31,55,.28)}
.tutorial-card.center-card h2{font-size:1.12rem}
.tutorial-card.center-card #tutorialText{color:var(--text);font-size:.86rem;line-height:1.52}

.ai-fab{position:fixed!important;left:auto!important;top:auto!important;right:max(16px,calc((100vw - var(--app-width))/2 + 16px))!important;bottom:86px!important;z-index:42;display:grid;place-items:center;width:62px;height:62px;border:1px solid var(--line);border-radius:50%;background:var(--ai-fab-surface);box-shadow:var(--ai-fab-shadow)}.ai-fab.anchored,.ai-fab.free-anchored{cursor:pointer;box-shadow:var(--ai-fab-shadow)}.ai-fab img{width:42px;height:42px;border-radius:14px;background:var(--ai-fab-surface)}.ai-fab span{position:absolute;right:6px;bottom:7px;padding:2px 5px;border-radius:999px;background:var(--orange);color:#fff;font-size:.62rem;font-weight:900}.ai-chat{position:fixed;right:max(8px,calc((100vw - var(--app-width))/2 + 8px));bottom:82px;left:max(8px,calc((100vw - var(--app-width))/2 + 8px));z-index:1200;display:none;grid-template-rows:auto minmax(0,1fr) auto auto;height:min(66dvh,620px);max-height:calc(100dvh - 110px);overflow:hidden;border:1px solid var(--line);border-radius:28px;background:var(--ai-chat-surface);box-shadow:var(--shadow)}.ai-chat.open{display:grid}.ai-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid var(--line);background:var(--ai-chat-header-surface)}.ai-title{display:flex;align-items:center;gap:10px}.ai-title img{width:36px;height:36px;border-radius:12px;background:var(--ai-fab-surface)}.ai-title span{color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase}.ai-head-actions{display:flex;align-items:center;gap:7px}.ai-clear-chat{min-height:34px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:var(--ai-clear-surface);color:var(--muted);box-shadow:none;font-size:.68rem;font-weight:900}.ai-clear-chat:hover{border-color:#bfcaf2;color:var(--blue);background:var(--ai-chat-surface)}.ai-chat-messages{display:grid;align-content:start;gap:9px;min-height:0;padding:14px;overflow-y:auto;background:var(--ai-chat-messages-surface)}.ai-msg{max-width:86%;padding:10px 12px;border-radius:18px;background:var(--ai-message-surface);color:var(--text);font-size:.85rem;line-height:1.45}.ai-msg p{margin:0}.ai-msg p+p{margin-top:8px}.ai-msg.user{justify-self:end;background:var(--ai-user-message-surface);color:#fff}.ai-actions{display:grid;gap:8px;justify-self:start;width:min(86%,620px)}.ai-action-card{display:grid;gap:7px;align-items:center;padding:10px 12px;border-radius:18px;background:var(--ai-action-surface);box-shadow:none}.ai-action-card b{display:block;min-width:0;color:var(--ink);font-size:.82rem;line-height:1.2}.ai-action-card span{display:block;min-width:0;color:var(--text);font-size:.78rem;line-height:1.4;overflow-wrap:anywhere}.ai-action-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ai-action-buttons button{width:100%;min-height:38px;padding:0 10px}.ai-guided-target{outline:2px solid rgba(94,119,255,.35);outline-offset:4px;border-radius:24px;transition:outline-color .25s ease}.ai-chat-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px 12px calc(10px + var(--safe-bottom));border-top:1px solid var(--line);background:var(--ai-chat-form-surface)}.ai-chat-form textarea{min-height:58px;max-height:110px}.ai-settings{display:grid;gap:10px;padding:12px;border-top:1px solid var(--line);background:var(--ai-chat-form-surface)}
.ai-fab.has-guide-notifications::after{content:"";position:absolute;top:7px;right:-8px;box-sizing:border-box;width:18px;height:18px;border:3px solid #fff;border-radius:999px;background:#ef4444;box-shadow:0 6px 14px rgba(239,68,68,.35);pointer-events:none}
.ai-action-buttons.single{grid-template-columns:1fr}
.ai-provider-picker{grid-column:1/-1;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.ai-provider-picker::-webkit-scrollbar{display:none}.ai-provider-picker button{display:grid;gap:1px;min-width:max-content;min-height:38px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:var(--ai-clear-surface);color:var(--text);box-shadow:none;text-align:left}.ai-provider-picker button b{font-size:.7rem;line-height:1;font-weight:900}.ai-provider-picker button span{color:var(--muted);font-size:.6rem;line-height:1;font-weight:800}.ai-provider-picker button.provider-single-line{place-items:center;align-content:center;justify-content:center;padding:0 12px;text-align:center}.ai-provider-picker button.provider-single-line b{display:block;line-height:1.05}.ai-provider-picker button.active{border-color:rgba(94,119,255,.5);background:var(--ai-user-message-surface);color:#fff}.ai-provider-picker button.active span{color:rgba(255,255,255,.82)}
.ai-chat-form.profile-locked textarea{background:var(--surface-2);color:var(--muted);cursor:not-allowed}.ai-chat-form.profile-locked button[type="submit"],.ai-chat-form.credit-locked button[type="submit"],.ai-chat-form button[type="submit"]:disabled{border-color:rgba(126,139,168,.22);background:#dce3f2;color:#7c879e;box-shadow:none;cursor:not-allowed;opacity:1}
.ai-msg-profile-start{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:42px;margin-top:8px;padding:0 16px;border:1px solid rgba(102,127,255,.32);border-radius:999px;background:var(--blue);color:#fff;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:0;box-shadow:0 10px 22px rgba(102,127,255,.20)}
.ai-msg-profile-start::before{content:"+";display:grid;place-items:center;width:20px;height:20px;margin-right:7px;border-radius:50%;background:rgba(255,255,255,.18);font-family:Arial,Helvetica,sans-serif;font-size:.92rem;font-weight:950;line-height:1}
.ai-msg-profile-start:hover{filter:brightness(.98);transform:translateY(-1px)}
.ai-menu-token{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-weight:950}.ai-menu-token strong{font-weight:950}.ai-menu-token.osyra strong{color:var(--orange)}.ai-menu-token.chef strong{color:var(--blue)}.ai-menu-token-icon{display:inline-grid;width:16px;height:16px;flex:0 0 16px;overflow:hidden;border-radius:50%;background:center/contain no-repeat}.ai-menu-token.osyra .ai-menu-token-icon{background-image:url("/assets/osyra-wave-orange.svg")}.ai-menu-token.chef .ai-menu-token-icon{background-image:url("/assets/osyra-wave-blue.svg")}
.ai-msg.typing{min-width:58px;min-height:39px}
.ai-action-card.high-impact{border-color:rgba(255,170,72,.42);background:var(--ai-action-high-surface)}
.ai-action-card small{display:inline-grid;width:max-content;max-width:100%;padding:3px 8px;border-radius:999px;background:rgba(94,119,255,.1);color:var(--blue);font-size:.62rem;font-weight:900;line-height:1;text-transform:uppercase;letter-spacing:.04em}
.ai-action-card.high-impact small{background:rgba(255,170,72,.18);color:var(--orange)}
.ai-typing-caret{display:inline-block;width:6px;height:1.08em;margin-left:2px;border-radius:999px;background:currentColor;vertical-align:-2px;animation:aiCaretBlink .9s steps(2,end) infinite}
@keyframes aiCaretBlink{0%,46%{opacity:1}47%,100%{opacity:.18}}

.terms-page{min-height:100vh;background:linear-gradient(180deg,var(--bg) 0 260px,var(--app-bg) 260px 100%);color:var(--text)}.terms-shell{display:grid;gap:18px;width:min(100%,860px);margin:0 auto;padding:18px 16px 40px}.terms-hero{display:grid;gap:18px;color:#fff}.back-link{display:inline-flex;align-items:center;justify-content:center;width:max-content;min-height:38px;padding:0 13px;border:1px solid rgba(255,255,255,.34);border-radius:999px;background:rgba(255,255,255,.13);color:#fff;font-size:.78rem;font-weight:900;box-shadow:0 10px 22px rgba(41,61,102,.12)}.terms-brand{display:flex;align-items:center;gap:14px}.terms-brand .logo-mark{display:grid;place-items:center;flex:0 0 auto}.terms-brand .logo-mark img{width:66px;height:66px;border-radius:21px}.terms-brand h1{color:#fff;font-size:1.72rem;font-weight:900}.terms-brand p{margin-top:3px;color:rgba(255,255,255,.84);font-size:.9rem}.terms-title{display:grid;gap:7px;padding:18px;border:1px solid rgba(255,255,255,.28);border-radius:24px;background:rgba(255,255,255,.14);box-shadow:var(--shadow);backdrop-filter:blur(16px)}.terms-title .eyebrow{color:rgba(255,255,255,.78)}.terms-title h2{max-width:680px;color:#fff;font-size:1.38rem}.terms-title span{color:rgba(255,255,255,.82);font-size:.78rem;font-weight:800}.terms-card{padding:22px 20px;border-radius:24px}.prose{display:grid;gap:11px}.prose h3{margin-top:12px;color:var(--blue-deep);font-size:1rem}.prose h3:first-child{margin-top:0}.prose h4{margin:4px 0 0;color:var(--ink);font-size:.88rem}.prose p{color:var(--text);font-size:.88rem;line-height:1.72}.prose strong{color:var(--ink)}

.premium-sheet,.premium-flow,.premium-step,.premium-plan-card,.premium-feature-card{border-color:var(--line);background:var(--premium-card-surface);color:var(--text)}.premium-hero,.objective-banner{border-radius:var(--radius-lg);background:var(--premium-hero-surface);color:#fff}.premium-option,.premium-toggle,.premium-input{border-color:var(--line);background:var(--premium-option-surface);color:var(--text)}
body.keyboard-focus:not(.modal-active) .bottom-nav:not(.nav-scroll-hidden){transform:none}
@media(min-width:760px){:root{--app-width:980px}.app{box-shadow:0 0 0 12px rgba(255,255,255,.18)}.screens{padding:18px 22px}.chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.action-card,.action-card[data-go="plan"],.action-card[data-go="finance"]{grid-column:auto}.activity-grid,.profile-access-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.day-tabs{grid-template-columns:repeat(7,minmax(0,1fr))}.macro-grid,.day-nutrition-grid,.diary-macros,.log-summary{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:760px){.profile-drawer{width:min(92vw,600px)}.profile-drawer .activity-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.profile-drawer .activity-grid label{align-content:start;gap:8px;min-height:92px}.profile-drawer .activity-grid select{width:100%;min-width:0;padding-right:30px;text-overflow:clip}}
@media(max-width:430px){body{font-size:14px}input,select,textarea{font-size:16px}.screens{padding:6px 14px 58px}.app-top{min-height:62px;padding:9px 14px}.language-toggle.compact,.country-toggle.compact{width:38px;height:38px}.language-toggle.compact{font-size:.68rem}.country-toggle.compact{font-size:1rem}.profile-card{padding:15px}.home-hero-kpis,.hero-health{gap:8px}.section-heading{margin:16px 0 10px}.home-actions{gap:10px}.action-card{min-height:82px;padding:12px;grid-template-columns:40px minmax(0,1fr) 22px;border-radius:22px}.action-card[data-go="plan"],.action-card[data-go="finance"]{min-height:88px}.action-card strong{font-size:.9rem}.action-card small{font-size:.68rem}.action-icon{width:40px;height:40px}.today-heading{display:grid}.today-heading .pill{width:100%;justify-content:center}.checks{grid-template-columns:1fr}.diary-range{grid-template-columns:1fr}.diary-range input{min-height:44px;font-size:16px}.sheet{max-height:94dvh;padding-right:14px;padding-left:14px}.sheet-title.with-actions{padding-right:56px}.modal-top-actions{flex-wrap:wrap}.price-row{grid-template-columns:1fr}.legend{grid-template-columns:1fr}.bottom-nav button{min-height:56px}.ai-chat{bottom:76px;height:min(72dvh,640px);max-height:calc(100dvh - 96px)}.terms-shell{padding:14px 14px 34px}.terms-title h2{font-size:1.16rem}.terms-card{padding:18px 15px}.prose p{font-size:.84rem}}
#profileMeals{grid-template-columns:repeat(2,minmax(0,1fr))}
#profileMeals .meal-option{gap:7px;min-height:48px;padding:8px 9px;border-radius:15px;font-size:.72rem}
#profileMeals .meal-option input{width:17px;min-width:17px;height:17px;min-height:17px}
#profileMeals .meal-option b{min-width:0;line-height:1.18}
.advanced-section-title{margin-bottom:4px;color:var(--muted);font-size:.68rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.advanced-section-title+.toggle{margin-top:0}
.terms-title{border-color:rgba(255,255,255,.34);background:linear-gradient(135deg,rgba(102,127,255,.96),rgba(41,61,102,.92));box-shadow:0 18px 34px rgba(41,61,102,.18)}
@media(max-width:430px){.terms-page{background:linear-gradient(180deg,var(--bg) 0 330px,var(--app-bg) 330px 100%)}.terms-hero{gap:14px}.terms-title{padding:16px 17px}.terms-title h2{font-size:1.12rem;line-height:1.18}.terms-title span{color:rgba(255,255,255,.9)}}
.splash-center{align-content:center;gap:0}
.splash img{width:84px;height:84px;border-radius:25px}
.splash h1{margin-top:13px;font-size:1.72rem;line-height:1.04}
.splash p{max-width:310px;margin-top:8px;color:rgba(255,255,255,.9);font-size:.91rem;font-weight:800;line-height:1.35}
.loader{margin-top:28px}
@media(max-width:430px){.splash.active{padding:22px}.splash img{width:82px;height:82px}.splash h1{font-size:1.68rem}.splash p{font-size:.9rem}}
.finance-consumption-row{display:grid;gap:9px;margin-top:4px;padding:10px;border:1px solid var(--line);border-radius:15px;background:var(--surface-2)}
.finance-consumption-row>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.finance-consumption-row>header b{color:var(--blue-deep);font-size:.82rem;font-weight:900}
.finance-consumption-row>header span{flex:0 0 auto;color:var(--ink);font-size:.8rem;font-weight:900}
.finance-appearance-list{display:grid;gap:7px}
.finance-appearance-row{display:grid;grid-template-columns:minmax(88px,.8fr) minmax(0,1fr);gap:8px;align-items:start}
.finance-appearance-row>b{padding-top:5px;color:var(--ink);font-size:.76rem;line-height:1.2}
.finance-appearance-row>span{display:flex;flex-wrap:wrap;gap:5px}
.finance-appearance-row i{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text);font-style:normal;font-size:.68rem;font-weight:900;line-height:1}
.finance-appearance-row small{
  grid-column:2;
  display:block;
  color:var(--muted);
  font-size:.67rem;
  font-weight:850;
  line-height:1.35;
}
.finance-week-list{display:grid;gap:9px}
.finance-week-block{display:grid;gap:8px;padding:9px;border:1px solid var(--line-soft);border-radius:13px;background:#fff}
.finance-week-block h4{margin:0;color:var(--orange);font-size:.72rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
@media(max-width:430px){.finance-appearance-row{grid-template-columns:1fr}.finance-appearance-row>b{padding-top:0}.finance-consumption-row>header{align-items:flex-start;flex-direction:column;gap:4px}}
.diary-series-controls{grid-template-columns:repeat(4,minmax(0,1fr))}
.diary-series-controls button{min-width:0;padding:0 8px}
.diary-date-search{display:grid;gap:6px;margin:12px 0 10px;padding:9px;border:1px solid var(--line);border-radius:16px;background:#fff}.diary-date-search span{color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase}.diary-date-search input{width:100%;min-width:0;font-size:.84rem}.diary-day-macros{margin-top:10px}.diary-day-detail{margin-top:12px}.diary-meal-log-list{display:grid;gap:8px;margin-top:8px}.diary-meal-log{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:17px;background:#fff}.diary-meal-log header{display:flex;align-items:flex-start;gap:10px}.diary-meal-log.ate{border-color:rgba(118,185,142,.34);background:#F8FEFA}.diary-meal-log.skipped{border-color:rgba(231,109,114,.3);background:var(--red-soft)}.diary-meal-log.pending{background:var(--surface-2)}.diary-empty-log{padding:12px;border:1px dashed var(--line);border-radius:16px;background:#fff;color:var(--muted);font-size:.8rem}
@media(max-width:430px){.diary-series-controls{gap:6px}.diary-series-controls button{min-height:40px;padding:0 4px;font-size:.62rem}}
.login .login-actions{padding:0;border:0;background:transparent;box-shadow:none;backdrop-filter:none}
.outside-multi-results .outside-food-choice>button{grid-template-columns:44px minmax(0,1fr) 34px}
.outside-multi-results .outside-food-choice.selected>button{border-color:rgba(33,176,124,.45);background:color-mix(in srgb,var(--green-soft) 72%,#fff)}
.outside-multi-results .outside-food-choice em{display:grid;place-items:center;width:28px;min-width:28px;height:28px;padding:0;border-radius:50%;overflow:hidden;background:var(--green);color:transparent;font-size:0}
.outside-multi-results .outside-food-choice em:before{content:"";width:9px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg)}
.profile-access-grid{grid-template-columns:repeat(2,minmax(180px,1fr));gap:10px}
.profile-access-item{display:grid;align-content:space-between;gap:8px;min-height:112px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--profile-muted-surface)}
.profile-access-item span{color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase}
.profile-access-item p{min-height:34px;color:var(--text);font-size:.75rem;line-height:1.45}
.profile-access-item button{align-self:end;width:100%;min-width:104px}
@media(max-width:430px){.profile-access{padding:13px}.profile-access-grid{grid-template-columns:1fr}.profile-access-item{min-height:118px}.profile-access-item p{min-height:auto}.profile-access-item button{width:100%;justify-self:stretch}}
@media(max-width:350px){.grid2,.home-actions,.macro-grid,.day-nutrition-grid,.diary-range,.finance-cycle-values,.finance-info-grid,.leftover-grid{grid-template-columns:1fr}.action-card,.action-card[data-go="plan"],.action-card[data-go="finance"]{grid-column:1}.bottom-nav span{display:none}}
.cost-item .price-row{grid-template-columns:minmax(54px,.55fr) minmax(76px,.7fr) minmax(96px,1fr)}
.cost-item .finance-info-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:350px){
  .cost-item .price-row{grid-template-columns:minmax(50px,.5fr) minmax(72px,.72fr) minmax(88px,1fr)}
  .cost-item .finance-info-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Osyra brand identity */
.brand-wordmark{
  font-family:var(--font-primary)!important;
  font-weight:300!important;
  letter-spacing:.04em!important;
  text-transform:lowercase;
}
.brand-tagline{
  max-width:310px!important;
  margin:14px auto 0!important;
  color:rgba(255,210,184,.62)!important;
  font-size:.82rem!important;
  font-weight:500!important;
  letter-spacing:.18em;
  line-height:1.8!important;
}
.entry,.splash,.login{
  background:radial-gradient(120% 80% at 50% 110%,#1A2350 0%,#0D1230 55%,#07091C 100%);
}
.splash.active,.login.active{position:fixed;inset:0;overflow:hidden}
.splash.active{z-index:9999}
.splash.leaving{opacity:0;transform:scale(1.012);transition:opacity .34s ease,transform .34s ease;pointer-events:none}
.login.active{touch-action:manipulation}
.google-identity-login{display:grid;justify-items:center;min-height:52px}
.google-identity-login>div{max-width:100%}
.splash:before,.login:before{
  position:absolute;
  inset:0;
  background:radial-gradient(50% 35% at 50% 55%,rgba(247,184,154,.28),rgba(247,184,154,0) 70%);
  content:"";
  pointer-events:none;
}
.splash-center,.login-shell{position:relative;z-index:1}
.splash-mark{
  display:block;
  width:220px;
  height:220px;
  filter:drop-shadow(0 20px 50px rgba(91,120,255,.35)) drop-shadow(0 0 30px rgba(247,184,154,.25));
  opacity:0;
  transform:scale(.72);
  animation:splash-mark-in 1.18s cubic-bezier(.22,1,.36,1) .08s forwards;
}
.workspace-sync-status{
  --sync-light:var(--yellow,#e7bd56);
  position:relative;flex:0 0 32px;
  display:grid;place-items:center;width:32px;height:32px;min-height:32px;margin:0;padding:0;
  border:0;border-radius:50%;background:transparent;color:transparent;font-size:0;cursor:pointer;
}
.workspace-sync-status::after{content:"";width:9px;height:9px;border-radius:50%;background:var(--sync-light);box-shadow:0 0 4px var(--sync-light),0 0 10px var(--sync-light)}
.workspace-sync-status[data-state="synced"]{--sync-light:var(--green)}
.workspace-sync-status[data-state="conflict"],.workspace-sync-status[data-state="local-error"],.workspace-sync-status[data-state="remote-error"],.workspace-sync-status[data-state="auth"],.workspace-sync-status[data-state="offline"]{--sync-light:var(--red)}
.workspace-sync-status:focus-visible{outline:2px solid var(--text);outline-offset:3px}

/* Persistent first-plan conversation controls. */
.copilot-help-flow{display:grid;gap:10px;margin-top:10px}
.copilot-help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.copilot-help-grid button{min-width:0;min-height:42px;padding:8px;font-size:.68rem;line-height:1.2}
.copilot-help-nav{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.copilot-pace-form{display:grid;gap:8px;margin-top:10px}
.copilot-pace-form label{font-size:.75rem;font-weight:850;color:var(--ink)}
.copilot-pace-form>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:7px}
.copilot-pace-form input{min-width:0;height:42px}
.copilot-pace-form span{font-size:.68rem;font-weight:800;color:var(--muted)}
.copilot-pace-form small{min-height:1em;color:var(--red);font-size:.66rem}
.copilot-pace-form>[data-copilot-pace-back]{justify-self:start;min-width:92px}
.copilot-summary-heading{display:flex;align-items:center;gap:7px;margin:10px 0 7px;color:var(--ink)}
.copilot-summary-heading span{font-size:1rem}.copilot-summary-heading b{font-size:.78rem}
.copilot-summary-block{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:10px}
.copilot-summary-block article{display:grid;align-content:start;gap:3px;min-width:0;padding:9px;border:1px solid var(--line);border-radius:7px;background:var(--soft,#f7f8fb)}
.copilot-summary-block article.wide{grid-column:1/-1}.copilot-summary-block span{color:var(--muted);font-size:.62rem}.copilot-summary-block b{color:var(--ink);font-size:.72rem;line-height:1.35;overflow-wrap:anywhere}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .copilot-summary-block article{background:var(--card)}
.ai-fab{z-index:1100!important}
.ai-chat{z-index:1600}
@media(max-width:430px){
  .copilot-pace-form>div{grid-template-columns:minmax(0,1fr) auto}
  .copilot-pace-form button{grid-column:1/-1;width:100%}
}
.splash h1,.login-brand h1{
  margin-top:6px;
  color:#FFD2B8;
  font-size:2.75rem;
  text-shadow:0 0 24px rgba(247,184,154,.4);
}
.splash h1{
  display:flex;
  gap:1px;
  opacity:1;
  transform:none;
}
.splash-wordmark span{
  display:inline-block;
  opacity:0;
  transform:translateY(12px);
  animation:splash-wordmark-in .44s cubic-bezier(.22,1,.36,1) forwards;
}
.splash-wordmark span:nth-child(1){animation-delay:1.28s}
.splash-wordmark span:nth-child(2){animation-delay:1.38s}
.splash-wordmark span:nth-child(3){animation-delay:1.48s}
.splash-wordmark span:nth-child(4){animation-delay:1.58s}
.splash-wordmark span:nth-child(5){animation-delay:1.68s}
.splash-tagline{
  display:grid;
  justify-items:center;
  gap:3px;
  width:min(100%,320px);
  min-height:5.7rem;
  margin-top:11px;
  color:rgba(255,204,150,.82);
  font-family:var(--font-primary);
  font-size:.92rem;
  font-weight:700;
  letter-spacing:0;
  line-height:1.85rem;
  text-align:center;
  text-shadow:0 0 14px rgba(255,178,104,.18),0 2px 9px rgba(12,18,48,.34);
  text-transform:none;
}
.splash-tagline span{
  color:inherit;
  opacity:0;
  transform:translateY(8px);
  animation:splash-tagline-line-in .42s ease-out forwards;
}
.splash-tagline span:nth-child(1){animation-delay:1.9s}
.splash-tagline span:nth-child(2){animation-delay:2.35s}
.splash-tagline span:nth-child(3){animation-delay:2.8s}
.login-brand .logo-mark img{
  width:auto;
  height:132px;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  filter:drop-shadow(0 14px 24px rgba(91,120,255,.28));
}
.loader{
  height:5px;
  margin-top:24px;
  background:rgba(255,210,184,.18);
}
.loader:before{background:linear-gradient(90deg,#F7B89A,#6B86FF)}
.terms-page{background:linear-gradient(180deg,#0D1230 0 260px,var(--app-bg) 260px 100%)}
.terms-brand .logo-mark img{
  border-radius:0;
  background:transparent;
  box-shadow:none;
  filter:drop-shadow(0 10px 18px rgba(91,120,255,.26));
}
.terms-brand h1{color:#FFD2B8;font-size:2rem;text-shadow:0 0 20px rgba(247,184,154,.3)}
.terms-brand .brand-tagline{margin:5px 0 0!important;font-size:.72rem!important}
.top-brand img,.ai-title img,.ai-fab img,.premium-logo img,.profile-billing-head img,.premium-payment-head img{
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.premium-logo{background:transparent;box-shadow:none}
.top-brand strong{font-size:1.45rem}
.splash-ring{
  stroke-dasharray:92 8;
  stroke-dashoffset:100;
  transform-origin:100px 100px;
  animation:splash-ring-draw 1.28s cubic-bezier(.65,0,.35,1) .12s forwards,splash-ring-flow 12s linear 1.4s infinite;
}
.splash-sun,.splash-disk-border{
  opacity:0;
  transform:translateY(70px);
  transform-origin:center;
  animation:splash-rise 1.05s cubic-bezier(.22,1,.36,1) .58s forwards;
}
.splash-wave{
  opacity:0;
  transform:translateY(105px);
  animation:splash-rise 1.08s cubic-bezier(.22,1,.36,1) .82s forwards;
}
.splash-leaves{
  opacity:0;
  transform-origin:100px 100px;
  animation:splash-leaves-in .62s ease-out 1.24s forwards;
}

@keyframes splash-pulse{0%,100%{opacity:.85}50%{opacity:1}}
@keyframes splash-mark-in{
  to{opacity:1;transform:scale(1)}
}
@keyframes splash-ring-draw{
  to{stroke-dashoffset:0}
}
@keyframes splash-ring-flow{
  from{transform:rotate(0deg)}
  to{transform:rotate(360deg)}
}
@keyframes splash-rise{
  to{opacity:1;transform:translateY(0)}
}
@keyframes splash-leaves-in{
  from{opacity:0;transform:scale(.9)}
  to{opacity:1;transform:scale(1)}
}
@keyframes splash-wordmark-in{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes splash-tagline-line-in{
  from{opacity:0;transform:translateY(7px)}
  to{opacity:1;transform:translateY(0)}
}
@media(max-width:430px){
  .splash-mark{width:180px;height:180px}
  .splash h1{font-size:2.5rem}
  .terms-page{background:linear-gradient(180deg,#0D1230 0 330px,var(--app-bg) 330px 100%)}
}
@media(prefers-reduced-motion:reduce){
  .login:before,.login-brand h1,.splash-mark,.splash-ring,.splash-sun,.splash-wave,.splash-leaves,.splash-disk-border,.splash-wordmark span,.splash-tagline span{animation:none;opacity:1;transform:none}
  .splash.leaving{transition:none}
}

.slot-tabs{display:flex;flex-wrap:wrap;align-items:stretch;gap:7px}
.slot-tabs .slot-tab-wrap{position:relative;display:flex;flex:1 1 138px;min-width:0}
.slot-tabs button:not(.slot-add):not(.slot-delete){flex:1 1 116px;min-width:0}
.slot-tabs .slot-card{width:100%}
.slot-tabs .slot-delete{position:relative;z-index:3;display:grid;place-items:center;min-width:0;width:28px;height:28px;min-height:0;padding:0;border:1px solid rgba(231,109,114,.25);border-radius:50%;background:#fff;color:var(--red);font-size:.86rem;font-weight:900;line-height:1;box-shadow:0 8px 18px rgba(41,61,102,.12)}
.slot-tabs .slot-delete:hover{background:var(--red-soft)}
.slot-tabs .slot-delete-confirm{display:grid;flex:1 1 100%;gap:8px;padding:10px 11px;border:1px solid rgba(231,109,114,.22);border-radius:16px;background:#fff7f8;color:var(--ink)}
.slot-tabs .slot-delete-confirm b{color:var(--red);font-size:.78rem}
.slot-tabs .slot-delete-confirm span{color:var(--muted);font-size:.7rem;font-weight:800;line-height:1.35}
.slot-tabs .slot-delete-confirm div{display:flex;gap:7px;flex-wrap:wrap}
.slot-tabs .slot-delete-confirm .small{min-height:34px}
.slot-tabs .slot-add{flex:0 0 82px;justify-items:center;width:82px;min-height:52px;padding:6px;border-style:dashed;color:var(--blue-deep);text-align:center}
.slot-tabs .slot-add b{font-size:1.05rem;line-height:1}
.slot-tabs .slot-add span{white-space:normal;font-size:.58rem;line-height:1.1;text-align:center}
.slot-tabs .slot-add.disabled{opacity:.62;color:var(--muted);cursor:not-allowed}
.profile-delete-modal{width:min(calc(100% - 28px),420px);max-height:none;margin-bottom:18px;border-bottom:1px solid var(--line);border-radius:26px;padding:20px 16px 16px}
.profile-delete-modal .sheet-close{top:14px;right:14px;width:40px;height:40px}
.profile-delete-sheet h2{padding-right:48px;color:var(--blue-deep);font-size:1.12rem}
.profile-delete-copy{display:grid;gap:5px;margin-top:8px;padding-right:4px;line-height:1.45}
.profile-delete-copy b{color:var(--ink);font-size:.86rem}
.profile-delete-copy span{display:block}
.profile-delete-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}
@media(max-width:360px){.profile-delete-actions{grid-template-columns:1fr}}
.profile-delete-overlay{position:fixed;top:0;right:0;bottom:0;z-index:25;display:grid;align-items:end;width:min(100%,430px);padding:16px;background:rgba(41,61,102,.28);backdrop-filter:blur(3px)}

.home-plan-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}
.home-plan-modes.hidden{display:none}
.plan-tutorial-bubble{position:relative;justify-self:start;width:max-content;max-width:100%;margin:6px 0 8px;padding:11px 16px 11px 42px;border:1px solid color-mix(in srgb,var(--blue) 22%,var(--line));border-radius:999px;background:linear-gradient(135deg,rgba(255,255,255,.98),color-mix(in srgb,var(--blue-soft) 34%,#fff));color:var(--blue-deep);font-size:.78rem;font-weight:950;letter-spacing:-.01em;box-shadow:0 16px 34px rgba(41,61,102,.14),inset 0 1px 0 rgba(255,255,255,.85)}
.plan-tutorial-bubble:before{position:absolute;left:12px;top:50%;content:"";display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:linear-gradient(135deg,var(--blue),color-mix(in srgb,var(--blue) 72%,#fff));transform:translateY(-50%);box-shadow:0 8px 18px rgba(102,127,255,.24)}
.plan-tutorial-bubble:after{position:absolute;left:19px;top:50%;width:8px;height:8px;border:2px solid #fff;border-right-color:transparent;border-bottom-color:transparent;border-radius:50%;content:"";transform:translateY(-50%) rotate(-35deg)}
.plan-tutorial-bubble:hover{transform:translateY(-1px);box-shadow:0 20px 40px rgba(41,61,102,.17),inset 0 1px 0 rgba(255,255,255,.9)}
.planning-engine-status{grid-column:1/-1;display:grid;gap:4px;padding:13px 15px;border:1px solid rgba(102,127,255,.28);border-radius:18px;background:var(--blue-soft);color:var(--blue-deep)}
.planning-engine-status.hidden{display:none}
.planning-engine-status b{font-size:.84rem}
.planning-engine-status span{color:var(--muted);font-size:.72rem;line-height:1.4}
.plan-mode-card:disabled{opacity:.68;filter:saturate(.55)}
html[data-planning-engine="paused"] .swap-button,
html[data-planning-engine="paused"] .meal-refresh-button{display:none}
.plan-mode-card{min-height:100px}
.plan-mode-card.guided{border-color:rgba(10,155,80,.3);background:#f5fbf7}
.plan-mode-card.guided .action-icon{background:#e7f7ed;color:var(--green)}
.plan-mode-card.automatic{border-color:rgba(102,127,255,.3);background:var(--blue-soft)}
.plan-mode-card.automatic .action-icon{background:#fff;color:var(--blue)}
.empty-plan-note{display:grid;gap:4px;margin-top:14px;padding:12px 13px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}
.empty-plan-note b{color:var(--blue-deep);font-size:.84rem}
.empty-plan-note span{color:var(--muted);font-size:.75rem;line-height:1.45}
.planning-rebuild-confirm{display:grid;gap:10px}
.planning-rebuild-confirm>p:not(.eyebrow){color:var(--muted);font-size:.82rem;line-height:1.55}
.planning-rebuild-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px;margin-top:6px}
@media(max-width:600px){.home-plan-modes,.planning-rebuild-actions{grid-template-columns:1fr}}
.profile-delete-dialog{display:grid;gap:8px;padding:18px 16px 16px;border:1px solid rgba(231,109,114,.2);border-radius:24px;background:#fff;box-shadow:0 20px 46px rgba(41,61,102,.22)}
.profile-delete-dialog h2{padding-right:0;color:var(--blue-deep);font-size:1.08rem}
.profile-delete-dialog .profile-delete-copy{margin-top:0}
.meal-delete-dialog{gap:13px;padding:18px;border-color:rgba(231,109,114,.16);background:linear-gradient(145deg,#fff 0%,#fff 58%,#fff7f8 100%);box-shadow:0 22px 50px rgba(41,61,102,.20)}
.meal-delete-head{display:grid;grid-template-columns:44px minmax(0,1fr);gap:11px;align-items:center;padding-right:40px}
.meal-delete-head .meal-icon{width:44px;height:44px;border-radius:16px;background:var(--red-soft);color:var(--red)}
.meal-delete-head .eyebrow{margin-bottom:3px;color:#A55B61}
.meal-delete-head h2{font-size:1.08rem;line-height:1.15}
.meal-delete-dialog .profile-delete-copy{padding:11px 12px;border:1px solid rgba(231,109,114,.12);border-radius:17px;background:rgba(255,255,255,.72);color:var(--muted);font-size:.78rem;line-height:1.5}
.meal-delete-actions{grid-template-columns:1fr;gap:9px;margin-top:0}
.meal-delete-actions button{min-height:43px}
.meal-delete-actions .soft{border-color:rgba(102,127,255,.12);background:#fff;color:var(--blue-deep);box-shadow:0 10px 20px rgba(41,61,102,.07)}
.meal-delete-actions .danger{border:1px solid rgba(231,109,114,.20);background:linear-gradient(135deg,#FFECEF,#FFF6F7);color:#E85261;box-shadow:0 10px 22px rgba(231,109,114,.10)}
.meal-delete-actions .danger:hover{transform:translateY(-1px);box-shadow:0 14px 26px rgba(231,109,114,.14)}
@media(max-width:360px){.meal-delete-head{padding-right:34px}.meal-delete-dialog{padding:16px}.meal-delete-dialog .profile-delete-copy{font-size:.75rem}}
.profile-delete-inline{display:grid;gap:8px;margin-top:10px;padding:12px;border:1px solid rgba(231,109,114,.22);border-radius:18px;background:#fff7f8}
.profile-delete-inline h3{margin:0;color:var(--red);font-size:.95rem}
.profile-delete-inline .profile-delete-copy{margin:0}
#financeScreen .finance-totals,#financeScreen .finance-cycle-values{grid-template-columns:repeat(2,minmax(0,1fr))}
#platesScreen{display:none}
#platesScreen.active{display:block}
#platesScreen .section-heading{margin-bottom:14px}
#platesScreen .section-heading h2{font-size:1.34rem;line-height:1.08}
#recipeBuilderPanel{display:grid;gap:13px}
#recipeBuilderPanel.hidden{display:none}
#recipeBuilderPanel>.grid2{gap:10px}
#recipeBuilderPanel label{gap:6px}
#recipeBuilderPanel label>span{color:var(--muted);font-size:.66rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
#platesScreen #recipeSummary,#platesScreen #recipeBuilder{margin:0}
#platesScreen .section-heading.compact{margin:4px 0 0;align-items:center}
#platesScreen .section-heading.compact h3{font-size:1rem}
#recipeSavedList{display:grid;grid-template-columns:repeat(auto-fit,minmax(138px,180px));align-items:stretch;gap:10px}
.recipe-saved-card .checks{display:grid;grid-template-columns:1fr repeat(2,auto);gap:8px;align-items:center}
.recipe-builder .section-heading.compact{margin:0}
.recipe-builder>.stack{gap:9px}
.recipe-ingredient-row{padding:10px;border:1px solid var(--line);border-radius:17px;background:var(--recipe-card-surface)}.filling-edit-list{display:grid;justify-items:start;gap:7px}.filling-edit-row{grid-template-columns:minmax(128px,max-content) 82px 34px;align-items:center;justify-content:start;width:fit-content;max-width:100%;padding:7px 8px;border:1px solid rgba(102,127,255,.18);border-radius:14px;background:var(--recipe-card-surface)}.filling-edit-row>span{align-self:center;overflow:hidden;color:var(--text);font-size:.78rem;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.filling-edit-row label{display:grid;gap:3px;margin:0}.filling-edit-row label small{color:var(--muted);font-size:.62rem;font-weight:900;line-height:1;text-transform:uppercase}.filling-edit-row input{width:100%;min-width:0;height:38px;min-height:38px;padding:0 10px}.filling-edit-row .remove-button{align-self:end;width:34px;height:34px}
.chef-workbench{display:grid;gap:12px}
.chef-home-hero{display:grid;grid-template-columns:minmax(0,1fr) 56px;gap:12px;overflow:hidden;padding:18px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(135deg,var(--blue-deep),var(--blue));color:#fff;box-shadow:var(--shadow)}
.chef-home-hero p{font-size:.68rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;opacity:.78}
.chef-home-hero h3{margin-top:2px;font-size:1.45rem;line-height:1.05;color:#fff}
.chef-home-hero span{display:block;margin-top:5px;color:rgba(255,255,255,.82);font-size:.78rem;font-weight:800;line-height:1.35}
.chef-home-hero>b{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:rgba(255,255,255,.16);font-size:1.55rem;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.chef-home-hero .primary{grid-column:1/-1;display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin-top:4px;padding:0 18px;border-radius:999px;background:var(--orange);color:#fff;white-space:normal}
.chef-mission{display:grid;gap:10px;padding:13px;border:1px solid var(--line);border-radius:24px;background:var(--recipe-stage-surface);box-shadow:var(--shadow-soft)}
.chef-mission-head{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center}
.chef-mission-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:16px;background:linear-gradient(135deg,var(--orange),var(--blue));color:#fff;font-size:1.1rem;font-weight:900}
.chef-mission-head span{display:block;color:var(--muted);font-size:.64rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.chef-mission-head b{display:block;color:var(--ink);font-size:.95rem;line-height:1.1}
.chef-mission-head em{display:grid;place-items:center;width:34px;height:34px;padding:0;border-radius:50%;background:var(--peach-soft);color:var(--orange);font-size:1rem;font-style:normal;font-weight:900;white-space:nowrap}
.chef-mission-badge{
  overflow:hidden;
  border:1px solid rgba(248,168,78,.22);
  background:
    linear-gradient(135deg,rgba(255,244,231,.92),rgba(237,243,255,.94)),
    var(--peach-soft)!important;
  box-shadow:0 10px 22px rgba(47,68,112,.08);
}
.chef-mission-badge:before{
  display:block;
  width:22px;
  height:22px;
  background:url("assets/premium/kitchen.svg") center/contain no-repeat;
  content:"";
}
.chef-progress{height:8px;overflow:hidden;border-radius:999px;background:var(--surface-2)}
.chef-progress i{display:block;width:var(--pct);height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--orange),var(--blue));transition:width .25s ease}
.chef-stepper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.chef-stepper button{display:grid;justify-items:center;gap:5px;min-height:58px;padding:7px 4px;border:1px solid transparent;border-radius:16px;background:transparent;color:var(--muted);font-size:.62rem;font-weight:900;line-height:1.1}
.chef-stepper button b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--surface-2);color:inherit;font-size:.68rem}
.chef-stepper button.active{border-color:rgba(102,127,255,.24);background:var(--blue-soft);color:var(--blue-deep)}
.chef-stepper button.active b{background:var(--blue);color:#fff}
.chef-stepper button.done{color:var(--green)}
.chef-stepper button.done b{background:var(--green);color:#fff}
.chef-stage{display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:24px;background:var(--recipe-stage-surface);box-shadow:var(--shadow-soft)}
.chef-stage-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.chef-stage-title{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center}
.chef-stage-head h3{margin-top:1px;color:var(--ink);font-size:1rem;line-height:1.1}
.chef-stage-head>span{padding:5px 9px;border-radius:999px;background:var(--blue-soft);color:var(--blue-deep);font-size:.66rem;font-weight:900}
.chef-group-rail,.chef-food-grid{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.chef-group-rail::-webkit-scrollbar,.chef-food-grid::-webkit-scrollbar{display:none}
.chef-group-rail button{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;min-height:38px;padding:4px 11px 4px 5px;border:1px solid var(--line);border-radius:999px;background:var(--recipe-chip-surface);color:var(--text);font-size:.68rem;font-weight:900;white-space:nowrap}
.chef-group-rail button b{font:inherit}
.chef-group-rail button.active{border-color:var(--blue);background:var(--blue);color:#fff}
.chef-filter-icon{display:grid;place-items:center;overflow:hidden;width:28px;height:28px;flex:0 0 auto;border:1px solid var(--line);border-radius:50%;background:var(--food-choice-surface);color:var(--orange);font-size:.78rem;font-weight:950}
.chef-filter-icon img{width:100%;height:100%;object-fit:cover}
.chef-group-rail button.active .chef-filter-icon{border-color:rgba(255,255,255,.42);box-shadow:0 0 0 2px rgba(255,255,255,.18)}
.chef-filter-actions{margin:0}
.chef-filter-actions .filter-toggle{width:100%;min-height:40px;border-radius:16px}
.chef-filter-panel{margin:0;padding:8px}
.chef-filter-panel .chef-group-rail{flex-wrap:wrap;overflow:visible;padding-bottom:0}
.chef-filter-panel .chef-group-rail button{flex:0 1 auto}
.chef-search{min-height:42px;background:var(--recipe-chip-surface)}
.chef-pantry{overflow:hidden}
.chef-food-grid{display:grid;grid-auto-flow:column;grid-auto-columns:126px;grid-template-rows:repeat(3,96px);align-items:stretch;min-height:304px;max-height:304px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;overscroll-behavior-y:none;scroll-snap-type:x proximity;touch-action:pan-x}
.chef-food-card{position:relative;display:grid;align-content:center;justify-items:center;gap:8px;min-height:104px;padding:10px;border:1px solid var(--line);border-radius:20px;background:var(--food-card-surface);color:var(--text);text-align:center;box-shadow:var(--shadow-soft)}
.chef-food-grid .chef-food-card{min-height:96px;scroll-snap-align:start}
.chef-food-card.selected{border-color:var(--blue);background:var(--food-choice-active-surface)}
.chef-food-card .food-image{width:42px;height:42px}
.chef-food-card b{display:-webkit-box;overflow:hidden;color:var(--ink);font-size:.78rem;line-height:1.15;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.chef-selected-list{display:grid;gap:8px;padding-top:2px}
.chef-selected-list .chef-stage-head.compact{align-items:center}
.chef-selected-list .chef-stage-head.compact h3{font-size:.9rem}
.chef-selected .recipe-ingredient-row,.chef-bench .recipe-ingredient-row{background:var(--recipe-card-surface)}
.chef-station-list{display:grid;gap:9px}
.chef-station-card{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:18px;background:var(--recipe-card-surface)}
.chef-station-top{display:grid;grid-template-columns:minmax(0,1fr) 86px 34px;gap:8px;align-items:end}
.chef-station-card input,.chef-station-card select{min-height:40px}
.chef-station-foods{display:grid;gap:6px}
.chef-station-foods>span{color:var(--muted);font-size:.65rem;font-weight:950;text-transform:uppercase;letter-spacing:.04em}
.chef-station-foods>div{display:flex;flex-wrap:wrap;gap:6px}
.chef-station-foods button{min-height:30px;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:var(--recipe-chip-surface);color:var(--text);font-size:.68rem;font-weight:900}
.chef-station-foods button.active{border-color:var(--blue);background:var(--food-choice-active-surface);color:var(--blue-deep)}
.chef-nav{display:grid;grid-template-columns:1fr 2fr;gap:9px}
.chef-nav.three{grid-template-columns:.9fr .9fr 1.35fr}
.chef-nav button{min-height:44px}
.chef-nav button:disabled{opacity:.42}
.chef-mini-hud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.chef-mini-hud div{display:grid;gap:3px;padding:10px 8px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2);text-align:center}
.chef-mini-hud span{color:var(--muted);font-size:.58rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.chef-mini-hud b{overflow:hidden;color:var(--ink);font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
.recipe-finalize-modal{display:grid;gap:12px}
.recipe-finalize-modal .fit-modal-checks{margin-top:0}
.recipe-finishing-yield{display:grid;gap:12px;margin-top:8px;padding-top:16px;border-top:1px solid var(--line)}
.recipe-finishing-yield>h4{margin:0;color:var(--ink);font-size:.95rem}
.recipe-instruction-editor{display:grid;gap:8px;min-width:0}
.recipe-instruction-editor>label{color:var(--ink);font-weight:800;font-size:.95rem}
#recipeBuilder #recipeInstructionsEditor{width:100%;min-width:0;min-height:240px;resize:vertical;font-size:16px;line-height:1.55;white-space:pre-wrap}

#platesScreen,
#platesScreen button,
#platesScreen input,
#platesScreen select,
#platesScreen textarea{
  font-family:var(--font-primary);
}
#platesScreen{
  overflow-x:hidden;
}
.chef-stage,
.chef-food-grid,
.chef-group-rail,
.chef-selected-list{
  max-width:100%;
  min-width:0;
}
.chef-stage-head{
  align-items:center;
}
.chef-stage-head>span{
  max-width:112px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chef-scroll-dots{
  display:flex;
  justify-content:center;
  gap:6px;
  margin:-2px 0 1px;
}
.chef-scroll-dots i{
  width:6px;
  height:6px;
  border-radius:999px;
  background:var(--line);
}
.chef-scroll-dots i:first-child{
  width:22px;
  background:var(--blue);
}
.foods-top-actions{
  justify-content:flex-end;
  margin-top:6px;
}
#foodsScreen .food-source{
  margin-top:8px;
  text-transform:none;
  letter-spacing:0;
  line-height:1.35;
}
#foodsScreen .food-source a{
  color:var(--blue-deep);
  font-weight:900;
  text-decoration:none;
}
.food-search-field>span,
.chef-search{
  font-family:var(--font-primary);
}
.diary-period-section>.diary-head{
  display:none;
}
.plan-preview-hero{
  display:grid;
  gap:10px;
  margin:7px 0 10px;
}
.plan-hero-card{
  display:grid;
  grid-template-columns:88px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:4px 0 6px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.plan-hero-card .profile-person{
  display:grid;
  grid-template-columns:1fr;
  justify-items:center;
  align-items:center;
  gap:0;
}
.plan-hero-card .profile-person:before,
.plan-hero-card .profile-person strong{
  display:none;
  content:none;
}
.plan-hero-card .profile-person .hero-avatar{
  width:72px;
  height:72px;
  border:4px solid rgba(255,255,255,.88);
  background:linear-gradient(135deg,var(--blue),#8FA2FF);
  color:#fff;
  box-shadow:0 18px 34px rgba(94,124,246,.22),0 0 0 1px rgba(94,124,246,.12);
}
.plan-day-carousel{
  --plan-day-card-width:78px;
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:var(--plan-day-card-width);
  gap:9px;
  min-width:0;
  min-height:66px;
  overflow-x:auto;
  padding:3px max(12px,calc((100% - var(--plan-day-card-width))/2)) 7px;
  scroll-padding-inline:max(12px,calc((100% - var(--plan-day-card-width))/2));
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
}
.plan-day-carousel::-webkit-scrollbar{
  display:none;
}
.plan-day-carousel + .carousel-dots{
  grid-column:2 / 4;
  grid-row:2;
  align-self:start;
  justify-self:end;
  flex-direction:row;
  gap:5px;
  min-height:8px;
  margin:-2px 18px 0 0;
  padding:0;
}
.plan-day-carousel + .carousel-dots button,
.plan-day-carousel + .carousel-dots i{
  width:5px;
  height:5px;
  opacity:.45;
}
.plan-day-carousel + .carousel-dots button.active,
.plan-day-carousel + .carousel-dots i.active{
  width:18px;
  height:5px;
  opacity:1;
}
.plan-day-carousel .profile-main-stat{
  scroll-snap-align:center;
  scroll-snap-stop:always;
  min-height:60px;
  align-content:center;
  justify-items:center;
  padding:10px 8px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--card);
  color:var(--ink);
  text-align:center;
}
.plan-day-carousel .profile-main-stat.active{
  border-color:var(--blue);
  background:var(--blue-soft);
}
.plan-day-carousel .profile-main-stat b{
  display:block;
  font-size:.86rem;
  letter-spacing:-.02em;
}
.plan-day-carousel .profile-main-stat span,
.plan-day-carousel .profile-main-stat small{
  display:none;
  margin-top:5px;
  color:var(--muted);
  font-size:.62rem;
  font-weight:900;
  text-transform:uppercase;
}
.plan-day-carousel .profile-main-stat span{
  color:var(--green);
}
.plan-day-carousel .profile-main-stat small{
  order:-1;
  margin:0 0 6px;
  color:var(--muted);
  letter-spacing:.08em;
}
.plan-goal-row{
  margin-top:0;
}
.plan-goal-row>div,
.plan-range-card{
  text-align:center;
}
.plan-goal-row b{
  color:var(--green);
}
.plan-range-card{
  display:grid;
  align-content:center;
  justify-items:center;
  gap:4px;
  min-width:0;
  min-height:64px;
  padding:14px 16px;
  border:1px solid rgba(47,68,112,.10);
  border-radius:24px;
  background:#fff;
  color:var(--ink);
  box-shadow:0 8px 22px rgba(47,68,112,.06);
  cursor:pointer;
}
.plan-range-card b{
  color:var(--green);
}
.plan-range-card span,
.plan-goal-row span{
  color:var(--muted);
  font-size:.66rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.plan-range-modal{
  display:grid;
  gap:16px;
}
.plan-range-sheet{
  max-width:420px;
}
.plan-range-modal .calorie-range-grid{
  margin:0;
}
.plan-primary-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:10px 0 12px;
}
.plan-primary-actions button{
  width:100%;
  min-width:0;
  max-width:100%;
  min-height:42px;
  white-space:normal;
  padding:0 8px;
  font-size:.72rem;
  line-height:1.12;
  overflow-wrap:anywhere;
}
.plan-primary-actions .soft{
  border-color:rgba(94,124,246,.20);
  background:linear-gradient(180deg,rgba(238,242,255,.92),rgba(229,235,255,.72));
  color:var(--blue-deep);
  box-shadow:0 10px 22px rgba(47,68,112,.045);
}
.plan-primary-actions [data-add-meal]{
  border-color:rgba(194,117,42,.26);
  background:linear-gradient(180deg,#fff7ed,#ffead2);
  color:#8a4b0f;
}
.plan-primary-actions [data-plan-save]{
  border-color:rgba(94,124,246,.28);
  background:linear-gradient(180deg,#eef3ff,#dde6ff);
  color:var(--blue-deep);
}
.plan-primary-actions [data-reset-plan]{
  border-color:rgba(209,69,69,.24);
  background:linear-gradient(180deg,#fff2f2,#ffe1e1);
  color:#8f2626;
  box-shadow:0 10px 22px rgba(143,38,38,.055);
}
.plan-primary-actions [data-recover]{
  border-color:rgba(93,142,93,.22);
  background:linear-gradient(180deg,#effaf1,#ddf2e2);
  color:#2e653a;
}
.plan-primary-actions [data-calculate]{
  border-color:rgba(106,90,205,.22);
  background:linear-gradient(180deg,#f1efff,#e5e0ff);
  color:#3d348b;
}
@media(max-width:430px){
  .plan-primary-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .plan-primary-actions button{
    min-height:44px;
    padding:6px 10px;
    font-size:.76rem;
    line-height:1.14;
  }
}
.plan-nutrient-carousel{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(220px,260px);
  grid-template-columns:none;
  overflow-x:auto;
  gap:10px;
  margin-top:6px;
  padding:0 8px 4px;
  scroll-padding-inline:calc(50% - 130px);
  border:0;
  background:transparent;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
}
.plan-nutrient-carousel::-webkit-scrollbar{
  display:none;
}
.plan-nutrient-carousel>.day-macro{
  scroll-snap-align:center;
  scroll-snap-stop:always;
  max-width:260px;
  min-height:94px;
  text-align:center;
  box-shadow:0 14px 28px rgba(47,68,112,.065);
}
.plan-day-carousel,
.plan-nutrient-carousel,
.day-nutrition-grid[data-home-carousel],
.today-meal-list[data-home-carousel]{
  background:transparent!important;
  box-shadow:none!important;
}
.plan-day-carousel:before,
.plan-day-carousel:after,
.plan-nutrient-carousel:before,
.plan-nutrient-carousel:after,
.day-nutrition-grid[data-home-carousel]:before,
.day-nutrition-grid[data-home-carousel]:after,
.today-meal-list[data-home-carousel]:before,
.today-meal-list[data-home-carousel]:after{
  display:none!important;
  content:none!important;
}
#planScreen #mealList{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(300px,88%);
  gap:12px;
  overflow-x:auto;
  padding:3px 16px 12px 2px;
  scroll-padding-inline:6%;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
}
#planScreen #mealList::-webkit-scrollbar{
  display:none;
}
#planScreen #mealList>.meal-card{
  scroll-snap-align:center;
  scroll-snap-stop:always;
}
@media(max-width:430px){
  .chef-stage{
    padding:10px;
    border-radius:22px;
  }
  .chef-stage-head{
    gap:8px;
  }
  .chef-stage-head h3{
    font-size:.94rem;
  }
  .chef-stage-head>span{
    max-width:96px;
    padding:5px 8px;
    font-size:.58rem;
  }
  .chef-food-grid{
    grid-auto-columns:112px;
    grid-template-rows:repeat(3,90px);
    min-height:286px;
    max-height:286px;
  }
  .chef-food-card{
    min-height:94px;
    padding:9px;
  }
  .plan-hero-card{
    grid-template-columns:72px minmax(0,1fr) auto;
    gap:9px;
    padding:2px 0 6px;
  }
  .plan-hero-card .profile-person .hero-avatar{
    width:66px;
    height:66px;
  }
  .plan-day-carousel{
    --plan-day-card-width:70px;
    gap:8px;
    min-height:64px;
    padding:3px max(10px,calc((100% - var(--plan-day-card-width))/2)) 7px;
    scroll-padding-inline:max(10px,calc((100% - var(--plan-day-card-width))/2));
  }
  .plan-day-carousel .profile-main-stat{
    min-height:54px;
    padding:9px 7px;
  }
  #planScreen #mealList:not([data-home-carousel]){
    grid-auto-columns:minmax(294px,88%);
  }
}
.chef-created{overflow:hidden;background:linear-gradient(135deg,var(--blue-deep),var(--blue));color:#fff}
.chef-created .eyebrow,.chef-created h3,.chef-created .muted{color:#fff}
.chef-created .muted{opacity:.82}
.chef-created-hero{display:flex;align-items:center;gap:12px}
.chef-created-hero>span{display:grid;place-items:center;width:48px;height:48px;border-radius:17px;background:var(--orange);font-size:1.25rem}
.chef-created-hero>.recipe-hero-icon:before{width:24px;height:24px;background:#fff;content:"";-webkit-mask:url("/assets/features/foods-spices.svg") center/contain no-repeat;mask:url("/assets/features/foods-spices.svg") center/contain no-repeat}
.chef-recipe-result{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:9px}
.chef-recipe-result>div{display:grid;gap:4px;padding:11px;border:1px solid var(--line);border-radius:17px;background:var(--surface-2)}
.chef-recipe-result span{color:var(--muted);font-size:.66rem;font-weight:900;text-transform:uppercase}
.chef-recipe-result b{color:var(--ink);font-size:1.05rem}
.chef-created .chef-recipe-result>div{border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.12)}
.chef-created .chef-recipe-result span,.chef-created .chef-recipe-result b{color:#fff}
.chef-ingredient-cloud{display:flex;flex-wrap:wrap;gap:6px}
.chef-ingredient-cloud span{padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:.68rem;font-weight:900}
.recipe-macro-grid .simple-macro{display:grid;place-items:center;min-height:82px;background:#fff;text-align:center}
.recipe-macro-grid .simple-macro span{font-size:.65rem;letter-spacing:.06em}
.recipe-macro-grid .simple-macro b{font-size:1.12rem;line-height:1.05}
.recipe-macro-grid .simple-macro small{display:none}
.recipe-micronutrients{overflow:hidden;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:rgba(255,255,255,.12)}
.recipe-micronutrients summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:0 12px;color:#fff;font-size:.76rem;font-weight:950;cursor:pointer}
.recipe-micronutrients summary::marker{content:""}
.recipe-micronutrients summary b{display:grid;place-items:center;min-width:24px;height:24px;border-radius:999px;background:rgba(255,255,255,.18);font-size:.68rem}
.recipe-micronutrients>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 10px 10px}
.recipe-micronutrients span{display:grid;gap:2px;padding:8px;border-radius:14px;background:rgba(255,255,255,.12);color:#fff}
.recipe-micronutrients span b{font-size:.62rem;letter-spacing:.04em;text-transform:uppercase;opacity:.82}
.recipe-micronutrients span i{font-style:normal;font-weight:950}
.recipe-instructions{display:grid;gap:7px;padding:12px;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:rgba(255,255,255,.12)}
.recipe-instructions h4{margin:0;color:#fff;font-size:.9rem;line-height:1.1}
.recipe-instructions p{margin:0;color:rgba(255,255,255,.88);font-size:.78rem;line-height:1.45;font-weight:750}
.recipe-instructions .station-note{padding-top:3px;color:rgba(255,255,255,.74)}
.recipe-saved-card{position:relative;display:grid!important;align-content:space-between;gap:10px;min-height:150px;aspect-ratio:1.1/1;padding:14px!important;border-color:color-mix(in srgb,var(--recipe-card-fg,var(--blue)) 28%,var(--line));background-image:linear-gradient(145deg,color-mix(in srgb,var(--recipe-card-bg,var(--blue-soft)) 88%,transparent),color-mix(in srgb,#fff 64%,transparent)),var(--recipe-card-image,none);background-color:var(--recipe-card-bg,var(--blue-soft));background-size:cover;background-position:var(--recipe-card-pos,center);color:var(--recipe-card-fg,var(--blue-deep))}
.recipe-saved-card[data-recipe-card-tone^="asset-"]{
  border-color:rgba(255,255,255,.26)!important;
  background-image:linear-gradient(145deg,rgba(16,33,58,.22),rgba(16,33,58,.7)),var(--recipe-card-image,none)!important;
  background-color:var(--recipe-card-bg,#10213a)!important;
  color:#fff!important;
  box-shadow:0 18px 34px rgba(16,33,58,.18);
}
.recipe-saved-card[data-recipe-card-tone="asset-table"]{background-image:linear-gradient(145deg,rgba(47,36,28,.2),rgba(47,36,28,.72)),var(--recipe-card-image,none)!important}
.recipe-saved-card[data-recipe-card-tone="asset-petal"]{background-image:linear-gradient(145deg,rgba(43,35,52,.2),rgba(43,35,52,.72)),var(--recipe-card-image,none)!important}
.recipe-saved-card[data-recipe-card-tone^="asset-"] .recipe-saved-head b,
.recipe-saved-card[data-recipe-card-tone^="asset-"] .recipe-saved-head small{
  color:#fff!important;
  text-shadow:0 2px 12px rgba(0,0,0,.36);
}
.recipe-saved-main{display:grid;width:100%;gap:10px;min-height:64px;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.recipe-saved-main:focus-visible{outline:2px solid var(--blue);outline-offset:4px;border-radius:18px}
.recipe-saved-head{display:grid;gap:2px}
.recipe-saved-head b{display:-webkit-box;overflow:hidden;color:var(--recipe-card-fg,var(--ink));font-size:1rem;line-height:1.12;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.recipe-saved-head small{color:var(--muted);font-size:.72rem;font-weight:800;line-height:1.3}
.recipe-saved-meta{display:grid;gap:7px;margin:0}
.recipe-saved-meta div{display:grid;gap:2px;padding:9px;border-radius:15px;background:var(--surface-2);border:1px solid var(--line)}
.recipe-saved-meta dt{color:var(--muted);font-size:.62rem;font-weight:950;letter-spacing:.05em;text-transform:uppercase}
.recipe-saved-meta dd{margin:0;color:var(--muted);font-size:.78rem;font-weight:650;line-height:1.38}
.recipe-saved-ingredients{display:grid;gap:6px}
.recipe-saved-ingredients>b{color:var(--muted);font-size:.64rem;font-weight:950;letter-spacing:.05em;text-transform:uppercase}
.recipe-saved-ingredients ul{display:grid;gap:5px;margin:0;padding:0;list-style:none}
.recipe-saved-ingredients li{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:.78rem;font-weight:650;line-height:1.32}
.recipe-saved-ingredients li:before{content:"";width:4px;height:4px;border-radius:50%;background:var(--blue);flex:0 0 auto}
.recipe-saved-ingredients li span{margin-left:auto;color:var(--muted);font-size:.72rem;font-weight:650;white-space:nowrap}
.recipe-palette-button{position:absolute;right:10px;bottom:54px;z-index:2;display:grid;place-items:center;width:34px;height:34px;border:1px solid color-mix(in srgb,var(--recipe-card-fg,var(--blue)) 18%,#fff);border-radius:50%;background:rgba(255,255,255,.78);color:var(--recipe-card-fg,var(--blue-deep));box-shadow:0 8px 16px rgba(41,61,102,.12);font-size:.58rem;font-weight:950;letter-spacing:.01em}
.recipe-tone-options{position:absolute;right:8px;bottom:88px;z-index:3;display:flex;gap:5px;padding:6px;border:1px solid color-mix(in srgb,var(--recipe-card-fg,var(--blue)) 16%,#fff);border-radius:999px;background:rgba(255,255,255,.92);box-shadow:0 12px 24px rgba(41,61,102,.16);opacity:0;transform:translateY(4px);pointer-events:none;transition:.16s ease}
.recipe-saved-card.palette-open .recipe-tone-options{opacity:1;transform:translateY(0);pointer-events:auto}
.recipe-tone-options button{width:18px;height:18px;min-height:18px;padding:0;border:1px solid color-mix(in srgb,var(--swatch-fg) 34%,#fff);border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 2px rgba(255,255,255,.72)}
.recipe-tone-options button.image-swatch{background-image:linear-gradient(135deg,rgba(16,33,58,.2),rgba(255,255,255,.12)),var(--swatch-image);background-size:cover;background-position:var(--swatch-pos,center)}
.recipe-tone-options button.active{outline:2px solid var(--swatch-fg);outline-offset:2px}
.recipe-saved-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.recipe-detail-modal{display:grid;gap:12px}
.recipe-detail-sheet{
  overflow:visible;
  padding-top:28px;
}
.recipe-detail-sheet .sheet-close{
  top:-18px;
  right:14px;
}
.recipe-detail-modal .chef-created{
  margin:0;
  border-color:color-mix(in srgb,var(--recipe-card-fg,#fff) 20%,transparent);
  background-image:linear-gradient(145deg,color-mix(in srgb,var(--recipe-card-bg,var(--blue-deep)) 72%,transparent),color-mix(in srgb,var(--recipe-card-bg,var(--blue)) 92%,#fff 8%)),var(--recipe-card-image,none);
  background-color:var(--recipe-card-bg,var(--blue-deep));
  background-size:cover;
  background-position:var(--recipe-card-pos,center);
  color:var(--recipe-card-fg,#fff);
}
.recipe-detail-modal[data-recipe-card-tone^="asset-"] .chef-created{
  background-image:linear-gradient(145deg,rgba(16,33,58,.34),rgba(16,33,58,.72)),var(--recipe-card-image,none);
}
.recipe-detail-modal .chef-created .chef-created-hero h3,
.recipe-detail-modal .chef-created .chef-created-hero p{
  color:var(--recipe-card-fg,#fff);
  text-shadow:0 2px 14px rgba(0,0,0,.12);
}
.recipe-detail-modal .recipe-saved-ingredients{padding:12px;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:rgba(255,255,255,.12)}
.recipe-detail-modal .recipe-saved-ingredients>b,.recipe-detail-modal .recipe-saved-ingredients li,.recipe-detail-modal .recipe-saved-ingredients li span{color:#fff}
.recipe-detail-modal .recipe-saved-actions{grid-template-columns:minmax(0,1fr) 44px;margin-top:2px}
.recipe-detail-modal .recipe-share-button{display:grid;place-items:center;min-width:44px;padding:0;font-size:1rem}
@media(max-width:430px){#recipeBuilderPanel{gap:11px}.recipe-ingredient-row{grid-template-columns:1fr 92px 38px}.chef-station-top{grid-template-columns:1fr 76px 34px}.chef-recipe-result{grid-template-columns:1fr}.chef-nav.three{grid-template-columns:1fr}#recipeSavedList{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-saved-card{min-height:134px}.filling-edit-row{grid-template-columns:minmax(0,1fr) 78px 34px;width:100%}}
.recipe-food-select{min-width:0}
@media(max-width:560px){
  #platesScreen .section-heading{margin-top:18px;margin-bottom:12px}
  #recipeBuilderPanel{gap:12px;min-width:0}
  #recipeBuilderPanel>.grid2{grid-template-columns:1fr;gap:9px}
  #platesScreen select,#platesScreen input{min-width:0}
}
.profile-access-item button.primary,
.profile-access-item button.primary b{
  color:#fff!important;
}
.profile-billing-info{display:grid;width:100%;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--premium-muted-surface);color:var(--ink);text-align:left}
.profile-billing-info b{display:block;color:var(--ink)}
.profile-billing-info span{display:block;margin-top:2px;color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase}
.premium-info{display:grid;gap:13px}.premium-info-list{display:grid;gap:8px}.premium-info-list article{display:grid;gap:4px;padding:11px;border:1px solid var(--line);border-radius:16px;background:var(--premium-muted-surface)}.premium-info-list b{color:var(--ink)}.premium-info-list span{color:var(--muted);font-size:.78rem;line-height:1.45}
.account-management,.premium-confirm-modal{display:grid;gap:12px}.premium-account-header{display:grid;gap:11px;margin:-2px 0 2px;padding:0 54px 13px 0;border-bottom:1px solid var(--line)}.premium-account-heading{display:flex;align-items:center;gap:10px;min-width:0}.premium-account-heading-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 auto;border:1px solid rgba(18,28,49,.12);border-radius:13px;background:var(--premium-logo-surface);color:#111827}.premium-account-heading-icon:before{width:20px;height:20px;background:currentColor;content:"";-webkit-mask:url("/assets/features/profile.svg") center/contain no-repeat;mask:url("/assets/features/profile.svg") center/contain no-repeat}.premium-account-heading h2{padding-right:0;color:var(--ink);font-size:1.12rem;line-height:1.08}.premium-account-header-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.premium-account-header-actions .small{min-height:42px;border-radius:999px;font-weight:900}.premium-account-buy{border:1px solid var(--blue-deep)!important;background:var(--premium-primary-surface)!important;color:#fff!important}.premium-account-back{border:1px solid var(--line)!important;background:var(--premium-secondary-surface)!important;color:var(--blue-deep)!important}.premium-account-card{display:grid;gap:5px;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--premium-muted-surface);color:var(--text)}.premium-account-card h3,.premium-account-card b{color:var(--ink);font-size:1rem}.premium-account-card span,.premium-account-footnote{color:var(--muted);font-size:.78rem;line-height:1.45}.premium-account-card.danger-zone{border-color:rgba(231,109,114,.28);background:var(--premium-danger-surface)}.premium-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.premium-account-grid div{display:grid;gap:3px;min-height:66px;padding:11px;border:1px solid var(--line);border-radius:16px;background:var(--premium-card-surface)}.premium-account-grid b{color:var(--ink);font-size:1.05rem}.premium-account-grid span{color:var(--muted);font-size:.66rem;font-weight:900;text-transform:uppercase}.premium-account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.premium-account-actions.danger-only{grid-template-columns:1fr}.premium-account-actions .full{width:100%;min-height:44px}.premium-account-actions>.premium-account-footnote{grid-column:1/-1;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--premium-muted-surface);text-align:center}@media(max-width:430px){.premium-account-actions,.premium-account-grid{grid-template-columns:1fr}}
.premium-account-card.danger-zone.subtle{
  background:linear-gradient(135deg,#fff,#fff7f8);
}
.premium-account-option-list{
  display:grid;
  gap:8px;
}
.premium-account-option{
  position:relative;
  width:100%;
  padding-right:46px;
  text-align:left;
  cursor:pointer;
}
.premium-account-option i{
  position:absolute;
  top:50%;
  right:13px;
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#fff;
  color:var(--blue);
  font-style:normal;
  font-size:1.1rem;
  font-weight:900;
  transform:translateY(-50%);
  box-shadow:0 8px 18px rgba(41,61,102,.08);
}
.premium-account-option:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(41,61,102,.12);
}
.premium-account-option.danger-zone i{
  color:var(--red);
}
.premium-account-settings-modal.refined{
  gap:10px;
}
.account-identity-card{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:13px;
}
.account-identity-avatar{
  display:grid;
  place-items:center;
  overflow:hidden;
  width:48px;
  height:48px;
  border:1px solid var(--line);
  border-radius:17px;
  background:#fff;
  box-shadow:0 10px 22px rgba(41,61,102,.08);
}
.account-identity-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.account-identity-card small,
.account-plan-card small,
.premium-account-option small{
  color:var(--muted);
  font-size:.76rem;
  font-weight:800;
  line-height:1.35;
}
.account-plan-card{
  gap:4px;
  background:linear-gradient(135deg,var(--blue-soft),#fff);
}
.accessibility-option{
  grid-template-columns:46px minmax(0,1fr) 28px;
  align-items:center;
  gap:10px;
  min-height:88px;
  padding-left:12px;
  background:
    radial-gradient(circle at 10% 12%,rgba(255,255,255,.9),transparent 28%),
    linear-gradient(135deg,#F7FAFF,#FFF9F2)!important;
}
.accessibility-option>span:not(.account-option-asset){
  grid-column:2;
}
.accessibility-option>b,
.accessibility-option>small{
  grid-column:2;
}
.account-option-asset{
  grid-row:1/4;
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border:1px solid rgba(102,127,255,.18);
  border-radius:17px;
  background:#fff;
  box-shadow:0 12px 24px rgba(41,61,102,.08);
}
.account-option-asset img{
  width:27px;
  height:27px;
  object-fit:contain;
}
.account-delete-option{
  margin-top:2px;
}
.premium-free-card{
  position:relative;
  overflow:hidden;
  gap:13px;
  min-height:126px;
  padding:15px;
  border-color:rgba(102,127,255,.18);
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(242,245,255,.9) 58%,rgba(255,246,236,.92));
  box-shadow:0 16px 34px rgba(41,61,102,.1);
}
.premium-free-card:after{
  position:absolute;
  right:12px;
  bottom:8px;
  width:104px;
  height:104px;
  background:rgba(41,61,102,.08);
  -webkit-mask:url("/assets/features/economy-daruma-mask.png") center/contain no-repeat;
  mask:url("/assets/features/economy-daruma-mask.png") center/contain no-repeat;
  content:"";
  pointer-events:none;
}
.premium-free-card>*{
  position:relative;
  z-index:1;
}
.premium-free-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.premium-free-card-top h3{
  margin-top:3px;
  font-size:1.08rem;
  line-height:1.1;
}
.premium-free-card-top>b{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border:1px solid rgba(102,127,255,.24);
  border-radius:999px;
  background:rgba(255,255,255,.82);
  color:var(--blue);
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.08em;
  box-shadow:0 10px 20px rgba(102,127,255,.12);
}
.premium-free-card>span{
  max-width:calc(100% - 72px);
}
.account-management-free{gap:13px;padding-top:4px}
.modal[data-modal-content~="account-management-free"] .premium-free-card{
  min-height:176px!important;
  align-content:space-between;
  gap:18px;
  padding:18px!important;
  border-color:rgba(255,255,255,.46)!important;
  background:
    radial-gradient(circle at 88% 28%,rgba(255,255,255,.50) 0 17%,transparent 36%),
    linear-gradient(135deg,#284487 0%,#5D78E6 52%,#F0A14C 100%)!important;
  color:#fff!important;
  box-shadow:0 22px 42px rgba(41,61,102,.22)!important;
}
.modal[data-modal-content~="account-management-free"] .premium-free-card:after{
  right:8px;
  bottom:-4px;
  width:132px;
  height:132px;
  background:rgba(255,255,255,.18);
}
.modal[data-modal-content~="account-management-free"] .premium-free-card .eyebrow,
.modal[data-modal-content~="account-management-free"] .premium-free-card h3,
.modal[data-modal-content~="account-management-free"] .premium-free-card>span{
  color:#fff!important;
}
.modal[data-modal-content~="account-management-free"] .premium-free-card .eyebrow{
  opacity:.78;
}
.modal[data-modal-content~="account-management-free"] .premium-free-card h3{
  margin-top:4px;
  font-size:1.22rem;
}
.modal[data-modal-content~="account-management-free"] .premium-free-card>span{
  max-width:78%;
  font-size:.84rem;
  line-height:1.55;
  opacity:.92;
}
.modal[data-modal-content~="account-management-free"] .premium-free-card-top>b{
  border-color:rgba(255,255,255,.45);
  background:rgba(255,255,255,.94);
  color:#18284F;
  box-shadow:0 14px 28px rgba(20,31,58,.16);
}
.premium-buy-row{
  grid-template-columns:1fr;
  margin-top:-2px;
}
.modal[data-modal-content~="account-management-free"] .premium-buy-row .premium-account-buy{
  min-height:48px!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#203B81,#5872E5)!important;
  box-shadow:0 16px 30px rgba(41,61,102,.18)!important;
}
.account-management-premium{gap:13px;padding-top:4px}
.modal[data-modal-content~="account-management-premium"] .premium-plus-card{
  position:relative;
  overflow:hidden;
  min-height:260px;
  gap:17px;
  padding:18px!important;
  border-color:rgba(255,255,255,.42)!important;
  background:
    radial-gradient(circle at 85% 22%,rgba(255,255,255,.38) 0 14%,transparent 35%),
    linear-gradient(135deg,#101B36 0%,#27488F 52%,#7457D7 100%)!important;
  color:#fff!important;
  box-shadow:0 24px 48px rgba(22,34,70,.26)!important;
}
.modal[data-modal-content~="account-management-premium"] .premium-plus-card:before{
  position:absolute;
  right:15px;
  top:26px;
  width:158px;
  height:158px;
  background:rgba(255,255,255,.105);
  -webkit-mask:url("/assets/osyra-symbol-20260611.svg") center/contain no-repeat;
  mask:url("/assets/osyra-symbol-20260611.svg") center/contain no-repeat;
  content:"";
  pointer-events:none;
  transform:rotate(-9deg);
}
.modal[data-modal-content~="account-management-premium"] .premium-plus-card:after{
  position:absolute;
  right:-20px;
  bottom:-18px;
  width:150px;
  height:150px;
  background:rgba(255,255,255,.095);
  -webkit-mask:url("/assets/features/economy-daruma-mask.png") center/contain no-repeat;
  mask:url("/assets/features/economy-daruma-mask.png") center/contain no-repeat;
  content:"";
  pointer-events:none;
}
.premium-plus-card>*{position:relative;z-index:1}
.premium-plus-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.modal[data-modal-content~="account-management-premium"] .premium-plus-head .eyebrow,
.modal[data-modal-content~="account-management-premium"] .premium-plus-card h3,
.modal[data-modal-content~="account-management-premium"] .premium-plus-card>span{
  color:#fff!important;
}
.modal[data-modal-content~="account-management-premium"] .premium-plus-head .eyebrow{opacity:.76}
.modal[data-modal-content~="account-management-premium"] .premium-plus-card h3{margin-top:4px;font-size:1.24rem;line-height:1.08}
.modal[data-modal-content~="account-management-premium"] .premium-plus-card>span{max-width:82%;font-size:.82rem;line-height:1.55;opacity:.88}
.premium-plus-head>b{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#17284D;
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.08em;
  box-shadow:0 14px 28px rgba(20,31,58,.18);
}
.modal[data-modal-content~="account-management-premium"] .premium-plus-card.founder-card{
  background:
    radial-gradient(circle at 86% 20%,rgba(255,255,255,.34) 0 13%,transparent 34%),
    linear-gradient(135deg,#0E1830 0%,#2F4E97 48%,#6E5AD8 100%)!important;
}
.modal[data-modal-content~="account-management-premium"] .premium-plus-card.founder-card h3{
  color:#fff!important;
  text-shadow:0 1px 12px rgba(4,10,24,.24);
}
.modal[data-modal-content~="account-management-premium"] .premium-plus-card.founder-card .premium-plus-head>b{
  min-width:82px;
  color:#17284D!important;
}
.premium-plus-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:auto}
.premium-plus-stat{
  display:grid;
  gap:4px;
  min-height:86px;
  align-content:center;
  padding:12px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:18px;
  background:rgba(255,255,255,.14);
  color:#fff;
  text-align:left;
  backdrop-filter:blur(8px);
}
.premium-plus-stat small{
  color:rgba(255,255,255,.72);
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.08em;
  line-height:1.1;
  text-transform:uppercase;
}
.premium-plus-stat b{
  color:#fff!important;
  font-size:1.18rem!important;
  line-height:1.05;
}
.premium-plus-stat span{
  color:rgba(255,255,255,.74)!important;
  font-size:.68rem!important;
  font-weight:900;
  line-height:1.18;
  text-transform:uppercase;
}
.modal[data-modal-content~="account-management-premium"] .premium-plus-stat small{
  color:rgba(255,255,255,.72)!important;
}
.modal[data-modal-content~="account-management-premium"] .premium-plus-stat b{
  color:#fff!important;
  font-size:1.18rem!important;
}
.modal[data-modal-content~="account-management-premium"] .premium-plus-stat span{
  color:rgba(255,255,255,.74)!important;
  font-size:.68rem!important;
}
.premium-plus-credit{
  cursor:pointer;
  box-shadow:0 12px 26px rgba(0,0,0,.10);
}
.premium-plus-credit:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.20);
}
.premium-plus-footnote{margin:0;border-radius:18px}
@media(max-width:430px){
  .modal[data-modal-content~="account-management-free"] .premium-free-card{min-height:188px!important}
  .modal[data-modal-content~="account-management-free"] .premium-free-card>span{max-width:100%;padding-right:26px}
  .modal[data-modal-content~="account-management-premium"] .premium-plus-card{min-height:286px}
  .modal[data-modal-content~="account-management-premium"] .premium-plus-card>span{max-width:100%;padding-right:18px}
  .premium-plus-grid{grid-template-columns:1fr}
  .premium-plus-stat{min-height:76px}
}
.notify-sheet-title h2{display:flex;align-items:center;gap:7px;line-height:1.15}
.notify-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin:12px 0;padding:10px;border:1px solid rgba(102,127,255,.22);border-radius:18px;background:var(--schedule-notify-card-surface);box-shadow:0 14px 28px rgba(41,61,102,.08)}
.notify-switch-row{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center;min-width:0}
.notify-switch-row input{position:absolute;width:1px;min-width:1px;height:1px;min-height:1px;opacity:0;pointer-events:none}
.notify-switch-row b{color:var(--ink);font-size:.82rem;line-height:1.2}
.notify-switch-ui{position:relative;width:40px;height:24px;border:1px solid rgba(102,127,255,.22);border-radius:999px;background:var(--schedule-switch-surface);box-shadow:inset 0 1px 3px rgba(41,61,102,.08);transition:.2s}
.notify-switch-ui:after{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;content:"";box-shadow:0 5px 11px rgba(41,61,102,.16);transition:.2s}
.notify-switch-row input:checked+.notify-switch-ui{border-color:rgba(47,118,80,.24);background:var(--schedule-switch-on-surface)}
.notify-switch-row input:checked+.notify-switch-ui:after{transform:translateX(16px)}
.notify-permission-action{justify-self:end;min-height:34px;padding:0 13px;border-color:rgba(102,127,255,.2);background:#fff;color:var(--blue-deep);box-shadow:0 8px 18px rgba(41,61,102,.08)}
.notify-permission-action:disabled{opacity:.55}
.notify-meal-sheet{
  width:min(calc(100% - 24px),560px)!important;
  margin-bottom:8px!important;
  padding:20px 16px calc(18px + var(--safe-bottom))!important;
  border:1px solid color-mix(in srgb,var(--blue) 14%,var(--line))!important;
  border-radius:28px 28px 0 0!important;
  background:var(--schedule-modal-surface)!important;
  box-shadow:0 -22px 54px rgba(41,61,102,.18)!important;
}
.notify-meal-panel{
  display:grid;
  gap:12px;
}
.notify-meal-sheet .notify-sheet-title{
  position:relative!important;
  min-height:64px!important;
  margin:-20px -16px 0!important;
  padding:22px 58px 14px 16px!important;
  border:0!important;
  border-radius:28px 28px 0 0!important;
  background:var(--schedule-modal-header-surface)!important;
  box-shadow:0 -42px 0 var(--schedule-modal-header-surface),0 12px 24px rgba(41,61,102,.08)!important;
}
.notify-meal-sheet .notify-sheet-title h2{
  padding:0!important;
  color:var(--ink)!important;
  font-size:1.12rem!important;
  line-height:1.1!important;
}
.notify-meal-controls{
  display:grid;
  grid-template-columns:92px minmax(130px,1fr) 150px;
  grid-template-areas:"time notify lead";
  gap:8px;
  align-items:end;
}
.notify-time-field,
.notify-lead-field{
  display:grid;
  gap:5px;
  min-width:0;
}
.notify-time-field{
  grid-area:time;
}
.notify-meal-controls .notify-card{
  grid-area:notify;
}
.notify-lead-field{
  grid-area:lead;
}
.notify-time-field>span,
.notify-lead-field>span{
  color:var(--muted);
  font-size:.58rem;
  font-weight:950;
  letter-spacing:.06em;
  line-height:1;
  text-transform:uppercase;
}
.notify-time-field input,
.notify-lead-field select{
  width:100%;
  min-width:0;
  min-height:46px;
  height:46px;
  border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line));
  border-radius:15px;
  background:var(--schedule-field-surface);
  color:var(--ink);
  font-size:.86rem;
  font-weight:900;
  line-height:1.1;
  white-space:nowrap;
}
.notify-time-field input{
  padding:0 8px;
  font-variant-numeric:tabular-nums;
  text-align:center;
}
.time-field{
  display:flex;
  min-width:0;
}
.time-field.is-disabled{
  opacity:.5;
  pointer-events:none;
}
.time-field-trigger{
  display:grid;
  place-items:center;
  width:100%;
  min-width:0;
  min-height:46px;
  height:46px;
  padding:0 12px;
  border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line));
  border-radius:15px;
  background:var(--schedule-field-surface);
  color:var(--ink);
  font-size:.98rem;
  font-weight:900;
  font-variant-numeric:tabular-nums;
  line-height:1;
}
.time-wheel-overlay{
  position:fixed;
  inset:0;
  z-index:1460;
  display:grid;
  align-items:end;
  justify-items:center;
  padding:16px;
  background:rgba(41,61,102,.42);
  backdrop-filter:blur(5px);
}
.time-wheel-card{
  display:grid;
  gap:10px;
  justify-items:center;
  width:min(100%,340px);
  margin-bottom:calc(10px + var(--safe-bottom));
  padding:16px;
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--modal-surface);
  box-shadow:var(--modal-shadow);
}
.time-wheel-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  width:100%;
  margin-top:2px;
}
.time-wheel-actions button{
  min-height:46px;
}
.time-wheel{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  padding:0 10px;
  border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line));
  border-radius:15px;
  background:var(--schedule-field-surface);
}
.time-wheel.is-disabled{
  opacity:.5;
  pointer-events:none;
}
.time-wheel-visual{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  height:114px;
}
.time-wheel-center{
  position:absolute;
  inset-inline:-4px;
  top:50%;
  height:38px;
  transform:translateY(-50%);
  border-radius:11px;
  background:color-mix(in srgb,var(--blue) 12%,transparent);
  pointer-events:none;
}
.time-wheel-col{
  height:114px;
  padding-block:38px;
  overflow-y:auto;
  scroll-snap-type:y mandatory;
  scrollbar-width:none;
  overscroll-behavior:contain;
  touch-action:pan-y;
}
.time-wheel-col::-webkit-scrollbar{
  display:none;
}
.time-wheel-item{
  display:grid;
  place-items:center;
  height:38px;
  min-width:46px;
  scroll-snap-align:center;
  scroll-snap-stop:always;
  color:var(--muted);
  font-size:1.06rem;
  font-weight:900;
  font-variant-numeric:tabular-nums;
  line-height:1;
  opacity:.42;
  transition:opacity .16s ease,color .16s ease;
}
.time-wheel-item.is-selected{
  color:var(--ink);
  opacity:1;
}
.time-wheel-sep{
  position:relative;
  z-index:1;
  color:var(--ink);
  font-size:1.06rem;
  font-weight:900;
  font-variant-numeric:tabular-nums;
  line-height:1;
}
.time-wheel-a11y{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}
.time-wheel:focus-within .time-wheel-visual{
  display:none;
}
.time-wheel:focus-within .time-wheel-a11y{
  position:static;
  display:flex;
  gap:6px;
  width:100%;
  height:auto;
  padding:8px 0;
  overflow:visible;
  clip:auto;
}
.time-wheel-select{
  flex:1 1 0;
  min-width:0;
  min-height:46px;
  border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line));
  border-radius:12px;
  background:var(--card);
  color:var(--ink);
  font-size:.92rem;
  font-weight:900;
  font-variant-numeric:tabular-nums;
  text-align:center;
}
.notify-lead-field select{
  padding:0 26px 0 10px;
  text-overflow:ellipsis;
}
.notify-meal-sheet .notify-card{
  height:46px;
  min-height:46px;
  margin:0!important;
  padding:7px 10px!important;
  border-radius:15px!important;
  box-shadow:none!important;
}
.notify-meal-sheet .notify-switch-row{
  grid-template-columns:38px minmax(0,1fr)!important;
  gap:8px!important;
}
.notify-meal-sheet .notify-switch-row b{
  font-size:.72rem!important;
  line-height:1.08!important;
}
.notify-permission-note{
  margin:-2px 1px 0;
  color:var(--muted);
  font-size:.72rem;
  font-weight:850;
  line-height:1.3;
}
.notify-done-button{
  min-height:46px!important;
  margin-top:2px!important;
}
@media(max-width:430px){
  .notify-meal-panel{
    gap:16px;
  }
  .notify-meal-controls{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:
      "time lead"
      "notify notify";
    column-gap:18px;
    row-gap:12px;
    align-items:end;
    width:100%;
    box-sizing:border-box;
  }
  .notify-time-field,
  .notify-lead-field{
    grid-template-rows:24px 52px;
    justify-self:stretch;
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
    overflow:visible;
  }
  .notify-time-field{
    grid-area:time;
    order:1;
  }
  .notify-lead-field{
    grid-area:lead;
    order:2;
  }
  .notify-time-field>span,
  .notify-lead-field>span{
    display:flex;
    min-height:24px;
    align-items:flex-end;
    line-height:1.04;
  }
  .notify-time-field>span{
    white-space:nowrap;
  }
  .notify-lead-field>span{
    max-width:100%;
    font-size:.5rem;
    letter-spacing:0;
    white-space:nowrap;
  }
  .notify-time-field input,
  .notify-lead-field select{
    box-sizing:border-box;
    align-self:end;
    display:block;
    width:100%;
    max-width:100%;
    margin:0;
    min-height:52px;
    height:52px;
    font-size:16px;
    line-height:52px;
  }
  .notify-time-field input{
    padding:0 12px!important;
    text-align:center;
    text-align-last:center;
    -webkit-appearance:none;
    appearance:none;
  }
  .notify-time-field input::-webkit-calendar-picker-indicator{
    display:none;
    width:0;
    margin:0;
    opacity:0;
  }
  .notify-meal-sheet .notify-card{
    grid-area:notify;
    order:3;
    width:100%;
    max-width:100%;
    min-height:52px;
    height:auto;
    padding:8px 11px!important;
    box-sizing:border-box;
  }
  .notify-meal-sheet .notify-switch-row{
    grid-template-columns:42px minmax(0,1fr)!important;
    min-height:34px;
  }
  .notify-switch-ui{
    width:42px;
    height:25px;
  }
  .notify-switch-ui:after{
    width:17px;
    height:17px;
  }
  .notify-switch-row input:checked+.notify-switch-ui:after{
    transform:translateX(17px);
  }
  .notify-meal-sheet .notify-switch-row b{
    overflow-wrap:normal!important;
    font-size:.76rem!important;
    line-height:1.12!important;
    white-space:normal!important;
  }
  .notify-lead-field select{
    padding-right:26px;
    padding-left:10px;
    text-overflow:clip;
  }
  .notify-done-button{
    margin-top:2px!important;
  }
}
@media(max-width:360px){
  .notify-meal-controls{
    column-gap:14px;
    row-gap:11px;
  }
  .notify-time-field>span,
  .notify-lead-field>span{
    min-height:25px;
    font-size:.47rem;
  }
}
@media(max-width:340px){
  .notify-meal-controls{
    grid-template-columns:1fr;
    grid-template-areas:
      "time"
      "lead"
      "notify";
    gap:11px;
  }
}
.meal-card-empty{cursor:pointer}
.meal-card-empty .meal-open{cursor:pointer}
.meal-card-empty .meal-items{padding-top:6px}
.meal-card-empty:hover{border-color:rgba(102,127,255,.28);box-shadow:0 18px 36px rgba(41,61,102,.10)}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-delete-dialog{
  border-color:rgba(231,109,114,.22);
  background:linear-gradient(145deg,#0E1729 0%,#111C31 64%,#231828 100%);
  box-shadow:0 22px 50px rgba(0,0,0,.28);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-delete-head .meal-icon{
  border-color:rgba(231,109,114,.26);
  background:rgba(231,109,114,.14);
  color:#FF9AA3;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-delete-head .eyebrow{color:#FFB2B9}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-delete-head h2{color:#F4F7FF}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-delete-dialog .profile-delete-copy{
  border-color:rgba(139,160,255,.16);
  background:rgba(21,35,61,.78);
  color:#B8C4E3;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-delete-actions .soft{
  border-color:rgba(139,160,255,.20);
  background:#15233D;
  color:#DDE5FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-delete-actions .danger{
  border-color:rgba(231,109,114,.28);
  background:rgba(231,109,114,.16);
  color:#FFB2B9;
}
.ai-fab{overflow:visible;touch-action:none;user-select:none;-webkit-user-select:none;contain:layout;will-change:left,top,transform;transform:translate3d(0,0,0);backface-visibility:hidden}
.ai-fab.dragging,.ai-fab.teleporting{transition:none!important;animation:none!important}
.ai-fab.dragging{cursor:grabbing}
.ai-fab.anchored,
.ai-fab.user-placed{
  right:auto!important;
  bottom:auto!important;
}
.ai-fab.anchored{position:absolute!important}
.ai-fab.user-placed{position:absolute!important}
.recover-preview{display:grid;gap:12px;margin-top:10px}
.recover-preview-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.recover-preview-title h3{color:var(--blue-deep);font-size:1.06rem;line-height:1.15}
.outside-review-disclosure{display:grid;gap:10px;margin-top:12px;padding:0;border:1px solid rgba(102,127,255,.18);border-radius:20px;background:var(--outside-muted-surface);overflow:hidden}
.outside-review-disclosure summary{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:10px;padding:12px;cursor:pointer;list-style:none}
.outside-review-disclosure summary::-webkit-details-marker{display:none}
.outside-review-disclosure summary i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--outside-card-surface);color:var(--blue-deep);font-style:normal;font-weight:900;transition:transform .18s ease}
.outside-review-disclosure[open] summary i{transform:rotate(45deg)}
.outside-disclosure-copy{display:grid;gap:3px;min-width:0}
.outside-disclosure-copy .eyebrow{font-style:normal}
.outside-disclosure-copy b{color:var(--text);font-size:.82rem;line-height:1.35}
.outside-nutrition-compare h3{margin-top:3px;color:var(--text);font-size:.8rem;line-height:1.45}
.outside-nutrition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.outside-review-disclosure .outside-nutrition-grid{padding:0 12px 12px}
.outside-nutrition-grid article{display:grid;gap:7px;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--outside-card-surface)}
.outside-nutrition-grid article.over{border-color:rgba(220,146,21,.38);background:var(--outside-over-surface)}
.outside-nutrition-grid b{color:var(--ink);font-size:.82rem}
.outside-nutrition-grid div{display:flex;align-items:center;justify-content:space-between;gap:8px}
.outside-nutrition-grid span{color:var(--muted);font-size:.64rem;font-weight:900;text-transform:uppercase}
.outside-nutrition-grid strong{color:var(--blue-deep);font-size:.78rem;font-weight:900;text-align:right}
.outside-nutrition-grid article.over strong:last-child{color:var(--orange)}
.outside-review-meals{margin-top:4px;border-color:var(--line)}
.outside-review-title h3{margin-top:3px;color:var(--text);font-size:.82rem;line-height:1.45}
.outside-review-list{gap:8px;padding:0 12px 12px}
.outside-review-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:17px;background:var(--outside-card-surface)}
.outside-review-row>div:first-child{display:grid;gap:2px;min-width:0}
.outside-review-row span{font-size:1.05rem}
.outside-review-row b{color:var(--ink);font-size:.88rem}
.outside-review-row small{color:var(--muted);font-size:.7rem;font-weight:900;text-transform:uppercase}
.outside-review-actions{display:flex;gap:6px;align-items:center}
.outside-review-actions .meal-status-tag{min-width:70px;min-height:34px;padding:0 10px;opacity:.58}
.outside-review-actions .meal-status-tag.active{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 3px currentColor}
.outside-rebalance-selection{display:grid;gap:12px;margin-top:12px;padding:13px;border:1px solid color-mix(in srgb,var(--blue) 24%,var(--line));border-radius:22px;background:linear-gradient(145deg,var(--outside-card-surface),var(--outside-muted-surface));box-shadow:var(--shadow-soft)}
.outside-rebalance-head{display:grid;gap:4px}
.outside-rebalance-head h3{color:var(--ink);font-size:.98rem;line-height:1.18}
.outside-rebalance-head small{color:var(--muted);font-size:.75rem;line-height:1.35}
.outside-rebalance-grid{display:grid;gap:8px}
.outside-rebalance-choice{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;min-height:62px;padding:10px;border:1px solid var(--line);border-radius:18px;background:var(--outside-preview-surface);color:var(--text);text-align:left;box-shadow:0 8px 18px rgba(41,61,102,.06)}
.outside-rebalance-choice>span{display:grid;place-items:center;width:34px;height:34px;border-radius:13px;background:var(--blue-soft);font-size:1rem}
.outside-rebalance-choice b{display:block;color:var(--ink);font-size:.88rem}
.outside-rebalance-choice small{display:block;margin-top:3px;color:var(--muted);font-size:.68rem;font-weight:900;line-height:1.25}
.outside-rebalance-choice.active{border-color:color-mix(in srgb,var(--green) 42%,var(--line));background:color-mix(in srgb,var(--green-soft) 64%,var(--outside-preview-surface))}
.outside-rebalance-choice.active>span{background:color-mix(in srgb,var(--green-soft) 82%,#fff);color:var(--green)}
.outside-build-preview{min-height:46px;border-radius:17px}
.outside-review-confirm-actions,.outside-bottom-actions,.outside-top-actions,.meal-log-apply{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.outside-bottom-actions,.outside-top-actions,.meal-log-apply{grid-template-columns:1fr;padding-bottom:2px}
.outside-top-actions{margin-bottom:12px}
.outside-diet-sheet #modalBody{
  padding-bottom:86px;
}
.outside-review-sheet .sheet-title.with-actions{margin-bottom:0}
.outside-review-footer{
  position:sticky;
  right:0;
  bottom:0;
  left:0;
  z-index:8;
  margin:12px -2px -2px;
  padding:12px 0 calc(4px + var(--safe-bottom));
  background:var(--outside-footer-surface);
}
.outside-review-footer button{
  min-height:48px;
  border-radius:18px;
}
.outside-review-confirm-actions button{min-height:42px}
.outside-review-sheet .outside-review-footer-actions{
  position:sticky;
  bottom:-1px;
  z-index:20;
  display:grid;
  grid-template-columns:minmax(74px,.78fr) minmax(104px,1fr) minmax(128px,1.18fr);
  gap:7px;
  margin:12px -2px -2px;
  padding:12px 2px calc(4px + var(--safe-bottom));
  background:var(--outside-footer-surface);
}
.outside-review-sheet .outside-review-footer-actions button{
  min-height:44px;
  min-width:0;
  padding:0 8px;
  border-radius:999px;
  font-size:.72rem;
  line-height:1.08;
  white-space:normal;
}
.outside-review-sheet .outside-review-back-button{
  border:1px solid color-mix(in srgb,var(--blue) 48%,var(--line))!important;
  background:var(--outside-soft-action-surface)!important;
  color:var(--blue-deep)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.74),0 10px 22px rgba(41,61,102,.08)!important;
}
.outside-review-sheet .outside-review-plain-button{
  border:1px solid color-mix(in srgb,var(--green) 34%,var(--line))!important;
  background:#fff!important;
  color:color-mix(in srgb,var(--green) 82%,var(--blue-deep))!important;
  box-shadow:0 10px 22px rgba(41,61,102,.07)!important;
}
.outside-review-sheet .outside-review-recalc-button{
  border-color:transparent!important;
  box-shadow:0 12px 24px rgba(41,61,102,.18)!important;
}
.outside-review-sheet .outside-review-recalc-button:disabled{
  background:rgba(92,65,105,.26)!important;
  color:rgba(255,255,255,.74)!important;
  box-shadow:none!important;
  cursor:not-allowed!important;
}
.country-switch-modal .outside-review-confirm-actions .soft{
  border:1px solid rgba(102,127,255,.34)!important;
  background:var(--outside-soft-action-surface)!important;
  color:var(--blue-deep)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 10px 22px rgba(41,61,102,.08)!important;
}
.outside-review-action-note{margin:8px 2px 0;color:var(--muted);font-size:.76rem;line-height:1.45;text-align:center}
.meal-log-sheet .sheet-close,
.today-meal-edit-sheet .sheet-close,
.plan-meal-edit-sheet .sheet-close,
.modal[data-modal-kind="meal-log"] .sheet-close,
.modal[data-modal-kind="today-meal-edit"] .sheet-close{
  display:none;
}
.outside-diet-sheet .sheet-close{
  display:grid;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  border-color:rgba(138,153,183,.28);
  background:rgba(255,255,255,.94);
  color:var(--blue-deep);
  font-size:.9rem;
  font-weight:800;
  box-shadow:0 10px 24px rgba(41,61,102,.12);
}
.modal[data-modal-kind="meal-log"] .meal-log-status-note{
  display:none;
}
.meal-log-sheet .sheet-title.with-actions,
.today-meal-edit-sheet .sheet-title.with-actions,
.plan-meal-edit-sheet .sheet-title.with-actions,
.outside-diet-sheet .sheet-title.with-actions{
  padding-right:16px;
}
.today-meal-edit-sheet::before,
.plan-meal-edit-sheet::before,
.meal-log-sheet::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  left:0;
  z-index:0;
  height:138px;
  border-radius:30px 30px 0 0;
  background:var(--meal-editor-header-surface);
  pointer-events:none;
}
.outside-diet-sheet::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  left:0;
  z-index:0;
  height:138px;
  border-radius:30px 30px 0 0;
  background:var(--outside-header-surface);
  pointer-events:none;
}
.insert-meal-sheet::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  left:0;
  z-index:0;
  height:138px;
  border-radius:30px 30px 0 0;
  background:var(--card);
  pointer-events:none;
}
/* Editor de refeicao: folha em altura cheia, com a lista como unico container rolavel.
   O #modalBody deixa de rolar para o cabecalho e o rodape ficarem fixos e a lista
   receber altura previsivel — sem isso o painel expandido cai abaixo da dobra. */
.today-meal-edit-sheet,
.plan-meal-edit-sheet{
  max-height:calc(100dvh - 6px)!important;
  height:calc(100dvh - 6px)!important;
}
.today-meal-edit-sheet>#modalBody,
.plan-meal-edit-sheet>#modalBody{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  overflow:hidden!important;
}
.today-meal-edit-sheet .meal-edit-list,
.plan-meal-edit-sheet .meal-edit-list{
  flex:1 1 auto!important;
}
/* Com o painel aberto o item fica mais alto que a area visivel; sem isto o chip sai de
   vista ao rolar ate Quantidade e o usuario perde de qual alimento se trata. */
.today-meal-edit-sheet .meal-edit-inline-item.expanded>.meal-edit-chip,
.plan-meal-edit-sheet .meal-edit-inline-item.expanded>.meal-edit-chip{
  position:sticky!important;
  top:0!important;
  z-index:3!important;
  box-shadow:0 6px 16px rgba(41,61,102,.14)!important;
}
.today-meal-edit-sheet .meal-edit-footer,
.plan-meal-edit-sheet .meal-edit-footer{
  flex:0 0 auto!important;
}
.today-meal-edit-sheet #modalBody,
.plan-meal-edit-sheet #modalBody,
.meal-log-sheet #modalBody,
.outside-diet-sheet #modalBody,
.insert-meal-sheet #modalBody{
  position:relative;
  z-index:1;
}
.today-meal-edit-sheet .sheet-title.with-actions,
.plan-meal-edit-sheet .sheet-title.with-actions,
.meal-log-sheet .sheet-title.with-actions,
.outside-diet-sheet .sheet-title.with-actions,
.insert-meal-sheet .sheet-title.with-actions{
  background:transparent;
  box-shadow:none;
}
.today-meal-edit-sheet .sheet-title.with-actions,
.plan-meal-edit-sheet .sheet-title.with-actions{
  min-height:76px;
  margin:-18px -16px 16px;
  padding:22px 16px 14px;
  border-bottom:0;
  border-radius:30px 30px 0 0;
  background:var(--meal-editor-header-surface);
}
.today-meal-edit-sheet .sheet-title.with-actions h2,
.plan-meal-edit-sheet .sheet-title.with-actions h2{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  font-size:1.16rem;
  line-height:1.1;
}
.today-meal-edit-sheet .modal-top-actions,
.plan-meal-edit-sheet .modal-top-actions{
  align-items:center;
}
.today-meal-edit-sheet .modal-top-actions .small,
.plan-meal-edit-sheet .modal-top-actions .small{
  height:36px;
  min-height:36px;
  padding:0 12px;
}
.meal-log-sheet .meal-log-title{
  position:sticky;
  top:0;
  z-index:3;
  min-height:58px;
  margin:-18px -16px 8px;
  padding:22px 16px 12px;
  border-radius:30px 30px 0 0;
  border-bottom:1px solid var(--line);
  background:transparent;
}
.meal-log-title h2{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  color:var(--ink);
  font-size:1.26rem;
  line-height:1.12;
}
.meal-log-title h2 span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.meal-log-title-icon{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  font-size:1.02rem;
  line-height:1;
}
.meal-food-picker-sheet .picker-title{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:center;
  min-height:68px;
  margin:-18px -16px 10px;
  padding:18px 16px 12px;
  border-bottom:1px solid var(--line);
  border-radius:30px 30px 0 0;
  background:var(--card);
  box-shadow:0 -30px 0 var(--card);
}
.meal-food-picker-sheet{
  margin-top:22px;
}
.meal-food-picker-title h2{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:var(--ink);
  font-size:1.28rem;
  line-height:1.08;
}
.meal-picker-title-icon{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 auto;
  border:1px solid color-mix(in srgb,var(--blue) 18%,var(--line));
  border-radius:13px;
  background:var(--blue-soft);
  font-size:1.05rem;
}
.meal-food-picker-title h2 span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.meal-food-picker-done{
  min-height:48px;
  border-radius:999px;
}
.meal-food-picker-sheet .sheet-close{
  display:grid;
}
.modal[data-modal-kind="meal-food-picker"] .sheet-close{
  display:grid!important;
}
.meal-food-picker-footer{
  position:sticky;
  bottom:-1px;
  z-index:30;
  display:grid;
  margin:8px -2px -2px;
  padding:12px 2px calc(2px + var(--safe-bottom));
  background:linear-gradient(to bottom,rgba(255,255,255,0),var(--card) 24%);
}
.meal-food-picker-sheet .picker-search{
  margin-top:6px!important;
}
.meal-log-note{
  margin:2px 0 10px;
}
.outside-diet-sheet .outside-diet-title{
  min-height:64px;
  margin:-18px -16px 12px;
  padding:15px 54px 12px 16px;
  border-bottom:1px solid var(--line);
  background:var(--outside-header-surface);
  box-shadow:none;
}
.outside-diet-heading{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-width:0;
}
.outside-diet-title-icon{
  position:relative;
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid color-mix(in srgb,var(--orange) 28%,var(--line));
  border-radius:13px;
  background:var(--outside-icon-surface);
  color:var(--orange);
  font-size:.96rem;
  font-weight:950;
  box-shadow:0 8px 18px rgba(220,146,21,.10);
}
.outside-diet-title h2{
  padding-right:0;
  color:var(--ink);
  font-size:1.05rem;
  line-height:1.12;
}
.outside-diet-title p{
  max-width:32rem;
  margin-top:6px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:800;
  line-height:1.28;
}
.outside-total-panel{
  display:grid;
  gap:8px;
  margin:10px 0 12px;
  padding:10px;
  border:1px solid color-mix(in srgb,var(--blue) 14%,var(--line));
  border-radius:20px;
  background:var(--outside-panel-surface);
  box-shadow:0 14px 30px rgba(41,61,102,.08);
}
.outside-total-panel h3{
  color:var(--blue-deep);
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.06em;
  line-height:1;
  text-transform:uppercase;
}
.outside-total-summary.log-summary{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  margin:0;
}
.outside-total-summary div{
  display:grid;
  justify-items:center;
  align-content:center;
  min-width:0;
  min-height:62px;
  padding:10px 4px 8px;
  border-color:color-mix(in srgb,var(--blue) 10%,var(--line));
  border-radius:15px;
  background:var(--outside-card-surface);
  text-align:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.outside-total-summary div:before{
  position:absolute;
  top:0;
  right:0;
  left:0;
  height:4px;
  border-radius:15px 15px 0 0;
  background:var(--tone,var(--blue));
  content:"";
}
.outside-total-summary div:nth-child(1){--tone:var(--blue)}
.outside-total-summary div:nth-child(2){--tone:var(--green)}
.outside-total-summary div:nth-child(3){--tone:var(--orange)}
.outside-total-summary div:nth-child(4){--tone:var(--red)}
.outside-total-summary b{
  display:block;
  width:100%;
  color:var(--ink);
  font-size:1rem;
  line-height:1.05;
  text-align:center;
}
.outside-total-summary span{
  display:block;
  width:100%;
  margin-top:5px;
  color:var(--muted);
  font-size:.52rem;
  font-weight:950;
  letter-spacing:0;
  line-height:1.08;
  text-align:center;
  text-transform:uppercase;
}
.recover-warning,.recover-empty{display:grid;gap:5px;padding:12px;border:1px solid var(--peach);border-radius:18px;background:var(--outside-warning-surface);color:var(--text)}
.plan-save-status{display:grid;gap:4px;margin:12px 0;padding:12px 13px;border:1px solid color-mix(in srgb,var(--blue) 18%,var(--line));border-radius:18px;background:linear-gradient(180deg,color-mix(in srgb,var(--blue-soft) 58%,#fff),#fff)}
.plan-save-status b{color:var(--blue-deep);font-size:.9rem}
.plan-save-status span{color:var(--muted);font-size:.74rem;font-weight:900;text-transform:uppercase}
.plan-slot-list{display:grid;gap:10px;margin-top:13px}
.plan-slot-card{display:grid;gap:7px;padding:13px;border:1px solid var(--line);border-radius:20px;background:var(--card);box-shadow:var(--shadow-soft);text-align:left}
.plan-slot-card.current{border-color:color-mix(in srgb,var(--blue) 42%,var(--line));background:linear-gradient(180deg,color-mix(in srgb,var(--blue-soft) 52%,#fff),#fff)}
.plan-slot-card.selected{border-color:color-mix(in srgb,var(--green) 44%,var(--line));background:linear-gradient(180deg,color-mix(in srgb,var(--green-soft) 52%,#fff),#fff)}
.plan-slot-card.empty{border-style:dashed;background:color-mix(in srgb,var(--surface-2) 72%,#fff);box-shadow:none}
.plan-slot-card>span{color:var(--muted);font-size:.66rem;font-weight:950;letter-spacing:.06em;text-transform:uppercase}
.plan-slot-card>b{color:var(--ink);font-size:.96rem;line-height:1.18}
.plan-slot-card>small{color:var(--muted);font-size:.72rem;line-height:1.35}
.plan-slot-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:3px}
.analysis-slot-actions{grid-template-columns:1fr}
.plan-slot-actions .small,.plan-save-slot-card .plan-slot-card .small{min-width:0;min-height:36px;padding-inline:8px!important;font-size:.68rem;line-height:1;white-space:nowrap}
.plan-new-unsaved-button{margin-top:12px}
.storage-confirm-actions.three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
@media(max-width:430px){.storage-confirm-actions.three{grid-template-columns:1fr}.plan-slot-card{padding:12px}.plan-load-card .plan-slot-actions{gap:5px}.plan-load-card .plan-slot-actions .small{min-height:34px;padding-inline:6px!important;font-size:.64rem!important}}
.recover-warning b,.recover-empty b{color:var(--ink);font-size:.86rem}
.recover-warning span,.recover-empty span{color:var(--muted);font-size:.76rem;line-height:1.45}
.recover-preview-list{gap:10px}
.recover-preview-row{display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:20px;background:var(--outside-preview-surface);box-shadow:var(--shadow-soft)}
.recover-preview-row.confirmed{border-color:color-mix(in srgb,var(--green) 36%,var(--line));background:color-mix(in srgb,var(--green-soft) 48%,var(--outside-preview-surface))}
.recover-preview-row.collective{border-color:color-mix(in srgb,var(--blue) 28%,var(--line));background:linear-gradient(145deg,var(--outside-preview-surface),var(--outside-panel-surface))}
.recover-preview-row header{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;color:var(--ink)}
.recover-preview-row header span{display:grid;place-items:center;width:30px;height:30px;flex:0 0 auto;border-radius:12px;background:var(--blue-soft)}
.recover-preview-row header b{font-size:.92rem}
.recover-preview-row header small{display:block;margin-top:2px;color:var(--muted);font-size:.64rem;font-weight:900;line-height:1.2}
.recover-meal-ok{min-width:42px;height:34px;padding:0 10px;border:1px solid color-mix(in srgb,var(--green) 28%,var(--line));border-radius:999px;background:var(--outside-card-surface);color:var(--green);font-size:.68rem;font-weight:950;box-shadow:0 8px 16px rgba(13,148,96,.06)}
.recover-meal-ok.active{background:var(--green);color:#fff}
.recover-meal-details{display:grid;gap:8px}
.recover-meal-details summary{cursor:pointer;color:var(--muted);font-size:.66rem;font-weight:900;letter-spacing:.03em;list-style:none;text-transform:uppercase}
.recover-meal-details summary::-webkit-details-marker{display:none}
.recover-meal-details summary:after{content:"+";display:inline-grid;place-items:center;width:20px;height:20px;margin-left:6px;border-radius:50%;background:var(--outside-muted-surface);color:var(--blue-deep)}
.recover-meal-details[open] summary:after{content:"-"}
.recover-swap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.recover-swap-block{display:grid;align-content:start;gap:8px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--outside-muted-surface)}
.recover-swap-block small{color:var(--muted);font-size:.66rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.recover-swap-block.before{opacity:.56}
.recover-swap-block.after{border-color:rgba(102,127,255,.25);background:var(--outside-panel-surface)}
.recover-item-list{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.recover-item-list li{min-width:0;padding:7px 8px;border-radius:12px;background:var(--outside-card-surface);color:var(--text);font-size:.78rem;line-height:1.3}
.recover-item-list span,.recover-item-list strong{display:block;overflow-wrap:anywhere}
.recover-item-list span{color:var(--muted);text-decoration:none}
.recover-item-list strong{color:var(--blue-deep);font-weight:900}
.recover-macro-delta{display:grid;gap:6px;margin-top:2px;padding-top:8px;border-top:1px dashed color-mix(in srgb,var(--blue) 18%,var(--line))}
.recover-macro-delta>small{color:var(--muted);font-size:.62rem;font-weight:950;letter-spacing:.04em;text-transform:uppercase}
.recover-macro-delta>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.recover-macro-delta span{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;padding:6px 7px;border-radius:10px;background:var(--outside-card-surface);font-size:.62rem}
.recover-macro-delta span b{overflow:hidden;color:var(--muted);font-size:.6rem;text-overflow:ellipsis;white-space:nowrap}
.recover-macro-delta span strong{color:var(--blue-deep);font-size:.66rem;font-weight:950;white-space:nowrap}
.recover-macro-delta span.down{background:color-mix(in srgb,var(--green-soft) 62%,var(--outside-card-surface))}
.recover-macro-delta span.down strong{color:var(--green)}
.recover-macro-delta span.up{background:var(--outside-over-surface)}
.recover-macro-delta span.up strong{color:var(--orange)}
.recover-empty-items{color:var(--muted);font-size:.76rem;font-style:normal}
.outside-forecast{display:grid;gap:9px;margin:4px 0 12px;padding:12px;border:1px solid color-mix(in srgb,var(--blue) 18%,var(--line));border-radius:20px;background:var(--outside-muted-surface)}
.outside-forecast h3{color:var(--ink);font-size:.95rem;line-height:1.16}
.outside-forecast-label{margin:2px 0 -2px;color:var(--muted);font-size:.62rem;font-weight:950;letter-spacing:.04em;text-transform:uppercase}
.outside-forecast-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.outside-forecast-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
.outside-forecast-card{display:grid;gap:5px;min-width:0;padding:9px;border:1px solid var(--line);border-radius:14px;background:var(--outside-card-surface)}
.outside-forecast-card.up{border-color:color-mix(in srgb,var(--orange) 35%,var(--line))}
.outside-forecast-card.down{border-color:color-mix(in srgb,var(--green) 28%,var(--line))}
.outside-forecast-card b{overflow:hidden;color:var(--ink);font-size:.74rem;line-height:1.12;text-overflow:ellipsis;white-space:nowrap}
.outside-forecast-card span{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;color:var(--muted);font-size:.57rem;font-weight:850;line-height:1.12}
.outside-forecast-card strong{color:var(--blue-deep);font-size:.64rem;font-weight:950;white-space:nowrap}
.outside-forecast-card.micro b{font-size:.7rem}
.outside-forecast-card.micro span{font-size:.55rem}
.outside-forecast-card.micro strong{font-size:.6rem}
@media(max-width:430px){.recover-swap{grid-template-columns:1fr}.recover-preview-title{align-items:center}.recover-preview-row{padding:11px}.recover-swap-block{padding:9px}.outside-review-row{grid-template-columns:1fr}.outside-review-actions,.outside-review-confirm-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.outside-review-actions .meal-status-tag{width:100%}.outside-nutrition-grid,.outside-forecast-grid{grid-template-columns:1fr}.outside-rebalance-choice{grid-template-columns:34px minmax(0,1fr)}}
.outside-log-remove{border-color:rgba(231,109,114,.25);background:var(--red-soft);color:var(--red)}
.premium-sheet{width:min(calc(100% - 24px),560px);max-height:calc(100dvh - 24px);margin:12px;padding:14px 14px calc(14px + var(--safe-bottom));border:1px solid var(--line);border-radius:26px;background:var(--premium-sheet-surface);overflow-y:auto;overscroll-behavior:contain}
.premium-sheet .sheet{background:var(--premium-sheet-surface)}
.premium-flow{display:grid;gap:10px;color:var(--text)}
.premium-flow.compact{gap:9px}
.premium-hero{display:flex;align-items:center;gap:11px;padding:12px 48px 12px 12px;border:1px solid rgba(102,127,255,.22);border-radius:20px;background:var(--premium-hero-surface);color:#fff}
.premium-logo{display:grid;place-items:center;width:46px;height:46px;flex:0 0 auto;border-radius:16px;background:var(--premium-logo-surface);box-shadow:0 14px 28px rgba(41,61,102,.22)}
.premium-logo img{width:34px;height:34px;border-radius:11px}
.premium-hero h2{padding:0;color:#fff;font-size:1rem;line-height:1.16;font-weight:800;letter-spacing:0}
.premium-hero p{margin-top:4px;color:rgba(255,255,255,.86);font-size:.76rem;line-height:1.35}
.premium-badge{display:inline-block;margin-bottom:5px;color:rgba(255,255,255,.76);font-size:.62rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.premium-section-label{margin-top:2px;color:var(--blue-deep);font-size:.7rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.premium-checks,.premium-ai-details,.premium-note-block,.premium-order,.premium-qr-card,.premium-card-form,.premium-coupon-box,.premium-result-card{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:18px;background:var(--premium-card-surface);box-shadow:var(--shadow-soft)}
.premium-checks p,.premium-ai-list p{display:flex;gap:8px;align-items:flex-start;color:var(--text);font-size:.76rem;line-height:1.3}
.premium-checks i,.premium-ai-list i{display:grid;place-items:center;min-width:22px;height:18px;flex:0 0 auto;padding:0 5px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-style:normal;font-size:.58rem;font-weight:900}
.premium-ai-list{
  display:grid;
  gap:7px;
}
.premium-ai-list p{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  align-items:center;
  min-height:34px;
}
.premium-ai-idea-icon{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  overflow:hidden;
  border:1px solid rgba(102,127,255,.12);
  border-radius:12px;
  background:linear-gradient(135deg,#fff,rgba(246,248,255,.9));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}
.premium-ai-idea-icon img{
  display:block;
  width:24px;
  height:24px;
  object-fit:contain;
}
.premium-benefit-grid{gap:7px;padding:9px}
.premium-benefit-label{margin:0 0 1px!important;color:var(--blue-deep)!important;font-size:.62rem!important;font-weight:950!important;letter-spacing:.07em;text-transform:uppercase}
.premium-benefit-item{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:start;padding:8px;border:1px solid rgba(102,127,255,.12);border-radius:14px;background:var(--premium-card-surface)}
.premium-benefit-orb{display:grid;place-items:center;width:38px;height:38px;overflow:hidden;border:1px solid color-mix(in srgb,var(--pay-accent) 18%,var(--pay-line));border-radius:14px;background:color-mix(in srgb,var(--pay-accent-soft) 52%,#fff);box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.premium-benefit-orb img{display:block;width:28px;height:28px;object-fit:contain}
.premium-benefit-item b{display:block;color:var(--ink);font-size:.78rem;line-height:1.15}
.premium-benefit-item small{display:block;margin-top:3px;color:var(--muted);font-size:.68rem;font-weight:750;line-height:1.32}
.premium-benefit-grid.account-benefits{box-shadow:none}
.premium-note-block p,.premium-ai-details>p,.premium-ai-footnote,.premium-footnote{color:var(--muted);font-size:.76rem;line-height:1.45}
.premium-plans,.premium-methods{display:grid;gap:7px}
.premium-plan,.premium-methods button{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:54px;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--premium-option-surface);color:var(--ink);box-shadow:var(--shadow-soft);text-align:left}
.premium-plan.active,.premium-methods button.active{border-color:var(--blue);background:var(--premium-option-active-surface)}
.premium-plan b,.premium-methods b{display:block;color:var(--ink);font-size:.9rem}
.premium-plan small,.premium-methods small{display:block;margin-top:3px;color:var(--muted);font-size:.72rem;line-height:1.3}
.premium-plan strong{display:grid;justify-items:end;color:var(--orange);font-size:.94rem}
.premium-plan em{color:var(--muted);font-size:.62rem;font-style:normal;font-weight:900;text-transform:uppercase}
.premium-methods button{grid-template-columns:38px minmax(0,1fr) 20px}
.premium-method-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:14px;background:var(--blue-soft);color:var(--blue-deep);font-size:.68rem;font-weight:900}
.premium-main,.premium-back,.premium-copy{width:100%;min-height:44px;border-radius:16px;font-weight:900}
.premium-main{background:var(--premium-primary-surface);color:#fff}
.premium-flow>.premium-main{position:sticky;bottom:0;z-index:2;box-shadow:0 -8px 18px rgba(41,61,102,.08)}
.premium-main:disabled{opacity:.45}
.premium-back{background:var(--premium-secondary-surface);color:var(--blue-deep);border:1px solid var(--line)}
.premium-fail-link{color:var(--red)}
.premium-payment-head{display:flex;align-items:center;gap:12px;padding-right:44px}
.premium-payment-head img{width:48px;height:48px;border-radius:16px;background:var(--premium-logo-surface);box-shadow:var(--shadow-soft)}
.premium-payment-head h2{padding:0;font-size:1.18rem}
.premium-payment-head p{margin-top:3px;color:var(--muted);font-size:.78rem}
.premium-order p{color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase}
.premium-order div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.premium-order span{
  display:block;
  min-width:0;
}
.premium-order span b{
  display:block;
  line-height:1.22;
}
.premium-order small{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:.76rem;
  font-weight:800;
  line-height:1.35;
}
.premium-order strong{color:var(--orange)}
.premium-order hr{width:100%;border:0;border-top:1px solid var(--line)}
.fake-qr{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:136px;height:136px;margin:4px auto;padding:12px;border-radius:18px;background:var(--surface-2)}
.fake-qr i,.fake-qr span{border-radius:8px;background:var(--blue-deep)}
.fake-qr span{grid-column:2/4}
.premium-real-qr{display:block;width:152px;height:152px;margin:4px auto;border-radius:18px;background:var(--premium-qr-surface);object-fit:contain;padding:8px;border:1px solid var(--line)}
.premium-qr-card{text-align:center}
.premium-qr-card b,.premium-qr-card strong{color:var(--ink)}
.premium-qr-card em{color:var(--muted);font-size:.72rem;font-style:normal}
.premium-card-form label,.premium-coupon-box label{padding:0;border:0;background:transparent}
.premium-coupon-box label span{display:block;margin-bottom:6px;color:var(--muted);font-size:.66rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.premium-coupon-box small{color:var(--muted);font-size:.72rem;line-height:1.35}
.premium-coupon-box small.error{color:var(--red)}
.premium-coupon-toggle{border-style:dashed}
.premium-result-card.success{border-color:rgba(118,185,142,.34);background:var(--premium-success-surface)}
.premium-result-card.fail{border-color:rgba(231,109,114,.32);background:var(--premium-danger-surface)}
.premium-result-card b{color:var(--ink)}
.premium-result-card span{color:var(--muted);font-size:.8rem;line-height:1.45}
.premium-credit-details{border:1px solid var(--line);border-radius:16px;background:var(--premium-card-surface)}
.premium-credit-details summary{padding:11px 12px;color:var(--ink);cursor:pointer;font-size:.78rem;font-weight:900}
.premium-credit-values{display:grid;grid-template-columns:1fr auto;gap:8px;padding:0 12px 12px;color:var(--muted);font-size:.76rem}
.premium-credit-values b{color:var(--orange)}
.purchase-auth-actions{display:grid;gap:10px}.purchase-auth-actions .social{width:100%;box-shadow:var(--shadow-soft)}.purchase-auth-hero .premium-badge{color:rgba(255,255,255,.82)}
.purchase-auth-hero h2{font-size:.98rem;font-weight:750;line-height:1.18}
.ai-credit-lock{display:grid;gap:8px;margin-top:2px;padding:12px;border:1px solid rgba(255,159,113,.35);border-radius:18px;background:var(--peach-soft)}
.ai-credit-lock b{color:var(--ink);font-size:.86rem}
.ai-credit-lock span{color:var(--muted);font-size:.76rem;line-height:1.4}
.ai-credit-lock div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.profile-billing{display:grid;gap:12px;padding:14px}
.profile-billing-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.profile-billing-head h3{font-size:.98rem}
.profile-billing-head span{display:block;margin-top:3px;color:var(--muted);font-size:.76rem}
.profile-billing-head img{width:44px;height:44px;border-radius:15px;background:var(--premium-logo-surface);box-shadow:var(--shadow-soft)}
.profile-billing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.profile-billing-grid div{padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--premium-muted-surface)}
.profile-billing-grid b{display:block;color:var(--ink)}
.profile-billing-grid span{display:block;margin-top:2px;color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase}
.profile-billing-plan{width:100%;min-height:58px;border-radius:16px}
.profile-billing-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.billing-cancel{border-color:rgba(231,109,114,.25);background:var(--red-soft);color:var(--red)}
@media(max-width:430px){.premium-hero{padding-right:50px}.premium-plan{grid-template-columns:1fr}.premium-plan strong{justify-items:start}.ai-credit-lock div,.profile-billing-actions{grid-template-columns:1fr}}
#planScreen .section-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
#planScreen .section-heading h2{font-size:1.34rem;line-height:1.08}
#planScreen .day-tabs{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:14px 0 12px;padding:7px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.7);overflow:visible;box-shadow:var(--shadow-soft)}
#planScreen .day-tabs button{min-width:0;min-height:42px;padding:0 6px;border-radius:16px;background:transparent;color:var(--text);font-size:.7rem;white-space:normal;line-height:1.08;box-shadow:none}
#planScreen .day-tabs .active{border-color:rgba(255,159,113,.7);background:var(--peach-soft);color:var(--blue-deep);box-shadow:inset 0 -3px 0 var(--orange)}
#planSummary{padding:16px}
#planSummary.panel{
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.plan-empty-state{display:grid;gap:9px;padding:2px 0 1px}
.plan-empty-state h3{max-width:440px;font-size:1.02rem;line-height:1.18}
.plan-empty-state .tiny{max-width:500px}
.plan-summary-head{display:grid;gap:9px}
.plan-profile-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.plan-profile-info div{display:grid;gap:3px;min-height:54px;padding:9px;border:1px solid var(--line);border-radius:15px;background:var(--surface-2)}
.plan-profile-info span{color:var(--muted);font-size:.65rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.plan-profile-info b{color:var(--ink);font-size:.84rem;line-height:1.22}
.calorie-ranges{display:grid;gap:8px;margin-top:0;padding:0;border:0}
.calorie-ranges summary{cursor:pointer;color:var(--blue-deep);font-size:.82rem;font-weight:900}
.calorie-range-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.calorie-range-grid div{display:grid;gap:3px;min-height:54px;padding:9px;border:1px solid var(--line);border-radius:15px;background:#fff}
.calorie-range-grid span{color:var(--muted);font-size:.64rem;font-weight:900;text-transform:uppercase}
.calorie-range-grid b{color:var(--ink);font-size:.78rem;line-height:1.2}
.plan-timeline{display:block;margin-top:16px}
.plan-timeline-expanded{padding:12px 13px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2);font-size:.76rem;line-height:1.5}
@media(min-width:760px){#planScreen .section-heading{grid-template-columns:minmax(220px,.8fr) minmax(420px,1.2fr);align-items:end}#planScreen .day-tabs button{font-size:.75rem}.plan-empty-state{min-height:112px;align-content:center}.plan-summary-head{grid-template-columns:minmax(0,.9fr) minmax(0,1.35fr);align-items:start}.plan-summary-head>.eyebrow{grid-column:1/-1}.calorie-ranges{margin-top:0}}
@media(max-width:430px){#planScreen .day-tabs{gap:5px;padding:6px;border-radius:20px}#planScreen .day-tabs button{min-height:38px;padding:0 3px;font-size:.56rem}.plan-empty-state h3{font-size:.98rem}.plan-profile-info{grid-template-columns:repeat(2,minmax(0,1fr))}.calorie-range-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.calorie-range-grid div{padding:7px 5px;border-radius:13px}.calorie-range-grid span{font-size:.54rem}.calorie-range-grid b{font-size:.65rem;line-height:1.15}}
.screen-profile-mini{
  position:relative;
  isolation:isolate;
  display:block;
  overflow:hidden;
  min-height:126px;
  margin:0 0 12px;
  padding:18px 18px;
  border-color:var(--blue-soft);
  border-radius:28px;
  background:
    radial-gradient(circle at 16% 48%,var(--blue-soft) 0%,rgba(255,255,255,0) 56%),
    radial-gradient(circle at 92% 10%,var(--peach-soft) 0%,rgba(255,255,255,0) 58%),
    linear-gradient(135deg,var(--surface-2) 0%,var(--card) 58%,var(--peach-soft) 100%);
  box-shadow:0 18px 42px rgba(41,61,102,.09),inset 0 1px 0 rgba(255,255,255,.72);
}
.screen-profile-mini[hidden]{display:none}
.screen-profile-mini:before{
  position:absolute;
  inset:11px;
  z-index:-1;
  border:1px solid rgba(255,255,255,.56);
  border-radius:23px;
  background:linear-gradient(135deg,rgba(255,255,255,.52),rgba(255,255,255,.18));
  content:"";
}
.screen-profile-mini:after{
  position:absolute;
  right:-54px;
  bottom:-74px;
  z-index:-2;
  width:170px;
  height:170px;
  border-radius:50%;
  background:radial-gradient(circle,var(--peach-soft),rgba(255,255,255,0) 68%);
  content:"";
}
.screen-profile-mini-inner{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.screen-profile-mini-avatar{
  position:relative;
  width:98px;
  height:98px;
  flex:0 0 98px;
}
.screen-profile-mini-avatar:before{
  position:absolute;
  inset:-8px 8px 6px -7px;
  border-radius:50%;
  background:
    radial-gradient(circle,var(--blue-soft),rgba(255,255,255,0) 62%),
    radial-gradient(circle at 70% 76%,var(--peach-soft),rgba(255,255,255,0) 54%);
  filter:blur(1px);
  content:"";
}
.screen-profile-mini .hero-avatar{
  position:relative;
  width:88px;
  height:88px;
  border:2px solid var(--blue-soft);
  background:var(--blue-soft);
  box-shadow:0 18px 34px rgba(102,127,255,.20),0 0 0 7px rgba(232,236,255,.74);
}
.screen-profile-mini-avatar>span{
  position:absolute;
  right:0;
  bottom:1px;
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border:2px solid rgba(255,255,255,.86);
  border-radius:50%;
  background:linear-gradient(145deg,#ffb65d,#f49a45);
  color:#fff;
  box-shadow:0 14px 26px rgba(255,159,113,.30);
  font-size:.84rem;
  font-weight:950;
}
.screen-profile-mini-copy{
  display:grid;
  align-content:center;
  min-width:0;
}
.screen-profile-mini-copy small{
  color:var(--blue-deep);
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.045em;
  line-height:1;
  text-transform:uppercase;
}
.screen-profile-mini-copy b{
  display:block;
  overflow:hidden;
  max-width:180px;
  color:var(--ink);
  font-size:1.02rem;
  font-weight:950;
  line-height:1.05;
  text-overflow:ellipsis;
  white-space:nowrap;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .screen-profile-mini{
  border-color:rgba(132,151,255,.20);
  background:
    radial-gradient(circle at 18% 48%,rgba(102,127,255,.18) 0 32%,transparent 58%),
    radial-gradient(circle at 88% 8%,rgba(255,159,113,.12) 0 30%,transparent 58%),
    linear-gradient(145deg,rgba(14,26,48,.96),rgba(18,34,61,.90));
  box-shadow:0 18px 42px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.05);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .screen-profile-mini:before{
  border-color:rgba(142,162,255,.14);
  background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .screen-profile-mini .hero-avatar{
  border-color:rgba(142,162,255,.42);
  background:#182641;
  box-shadow:0 16px 30px rgba(0,0,0,.28),0 0 0 7px rgba(102,127,255,.13);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .screen-profile-mini-copy small{
  color:rgba(221,230,255,.70);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .screen-profile-mini-copy b{
  color:#f7f9ff;
}
#foodsScreen .section-heading{align-items:center;margin-bottom:10px}
#foodsScreen .section-heading h2{font-size:1.35rem;line-height:1.05}
#foodsScreen .section-heading .primary{min-height:44px;padding:0 16px}
#foodsScreen .foods-hero-card{
  position:relative;
  overflow:hidden;
  display:grid;
  gap:8px;
  min-height:172px;
  margin:0 0 12px;
  padding:20px 18px;
  border:1px solid rgba(102,127,255,.26);
  border-radius:26px;
  background:linear-gradient(145deg,rgba(41,61,102,.98),rgba(102,127,255,.88) 55%,rgba(255,159,113,.92));
  color:#fff;
  box-shadow:0 20px 42px rgba(41,61,102,.22);
}
#foodsScreen .foods-hero-card:after{
  position:absolute;
  right:0;
  bottom:0;
  width:156px;
  height:100%;
  background:url("/assets/features/foods-spices.svg") right 10px bottom 8px/118px auto no-repeat;
  opacity:.24;
  content:"";
  pointer-events:none;
}
#foodsScreen .foods-hero-card>*{
  position:relative;
  z-index:1;
  max-width:330px;
}
#foodsScreen .foods-hero-card .eyebrow{
  color:rgba(255,255,255,.76);
}
#foodsScreen .foods-hero-card h3{
  color:#fff;
  font-size:1.32rem;
  line-height:1.08;
}
#foodsScreen .foods-hero-card p:not(.eyebrow){
  color:rgba(255,255,255,.86);
  font-size:.86rem;
  font-weight:800;
  line-height:1.45;
}
#foodsScreen .food-source{margin:12px 0 0;padding:9px 10px;border:1px solid rgba(102,127,255,.18);border-radius:14px;background:var(--blue-soft);color:var(--text);font-size:.66rem;font-weight:800;line-height:1.35;text-transform:none}
#foodsScreen .food-source a{color:var(--blue);font-weight:900}
#foodsScreen .food-toolbar{display:grid;gap:7px;margin:0 0 8px;padding:10px;border:1px solid rgba(47,68,112,.08);border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(248,250,255,.70));box-shadow:0 8px 22px rgba(47,68,112,.045)}
#foodsScreen .food-toolbar-top{display:flex;justify-content:flex-end;align-items:center;gap:7px;min-height:34px}
#foodsScreen .food-toolbar-top .food-add-inline{min-height:34px;padding:0 13px;border:1px solid rgba(248,168,78,.34);border-radius:999px;background:linear-gradient(180deg,#fff,rgba(255,245,232,.92));color:var(--orange);box-shadow:0 8px 18px rgba(248,168,78,.13);font-size:.68rem;font-weight:950;letter-spacing:0;text-transform:none}
#foodsScreen .food-toolbar-top .food-base-manage-inline{min-height:34px;padding:0 13px;border:1px solid rgba(102,127,255,.24);border-radius:999px;background:var(--blue-soft);color:var(--blue-deep);box-shadow:none;font-size:.68rem;font-weight:950;letter-spacing:0;text-transform:none}
#foodsScreen .food-search-title{margin:0 2px -1px;color:var(--blue-deep);font-size:.68rem;font-weight:950;letter-spacing:.04em;text-transform:uppercase}
#foodsScreen .food-toolbar-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}
#foodsScreen .food-search-field{position:relative;top:auto;z-index:1;min-height:48px;margin:0;border:2px solid rgba(94,124,246,.28);border-radius:18px;background:#fff;box-shadow:0 10px 22px rgba(41,61,102,.075),0 0 0 4px rgba(94,124,246,.055)}
#foodsScreen .search{min-height:46px;margin-bottom:8px;border-radius:18px}
#foodsScreen .food-toolbar .search{margin-bottom:0}
#foodsScreen .search input{min-height:42px}
.food-toolbar-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;margin:0}
.food-toolbar-actions .filter-toggle{flex:0 0 auto;min-width:92px;min-height:42px}
.food-toolbar-actions .food-clear-button{flex:0 0 auto;min-height:42px;padding:0 10px}
.food-results-meta{min-height:16px;margin:0 1px;color:var(--muted);font-size:.66rem;font-weight:900;line-height:1.15;text-align:right}
.food-toggle-visible{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:0 11px;border:1px solid rgba(94,124,246,.18);border-radius:999px;background:rgba(255,255,255,.72);color:var(--blue-deep);box-shadow:0 8px 18px rgba(47,68,112,.05);font-size:.64rem;font-weight:950;line-height:1;white-space:nowrap}
.food-toggle-visible span{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px rgba(16,167,120,.12)}
.food-toggle-visible[data-mode="enable"] span{background:var(--orange);box-shadow:0 0 0 3px rgba(248,168,78,.16)}
.food-toggle-visible b{min-width:0;font-size:inherit;line-height:inherit}
.food-filter-panel{display:grid;gap:9px;margin:0 0 11px;padding:10px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.78);overflow:hidden}
.storage-confirm-actions.food-base-slot-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.food-base-slots-card .food-base-slot-list{
  grid-template-columns:none!important;
  grid-auto-flow:column!important;
  grid-auto-columns:calc(100% - 28px)!important;
  overflow-x:auto!important;
  padding-bottom:4px;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.food-base-slots-card .food-base-slot-list::-webkit-scrollbar{
  display:none;
}
.food-base-slots-card .food-base-slot-list .plan-slot-card{
  cursor:default;
  scroll-snap-align:start;
}
.food-base-slots-card .food-base-slot-list .plan-slot-select-surface{min-height:0}
.food-base-slots-card .plan-slot-secondary-actions{margin-top:0}
@media(max-width:430px){#foodsScreen .food-toolbar-top{justify-content:flex-end}.food-base-slots-card .food-base-slot-list .plan-slot-card{padding:14px}}
.food-filter-section{display:grid;gap:6px;min-width:0}
.food-filter-section>span{color:var(--muted);font-size:.6rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.food-filter-panel .filter-label{margin:0;color:var(--muted);font-size:.66rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.food-filter-panel .chips{display:flex;flex-wrap:wrap;gap:6px;overflow:visible;padding:0}
.food-filter-panel .chips .chip{flex:0 1 auto;max-width:100%;white-space:normal}
.food-filter-panel .chip{min-height:30px;padding:0 9px;border-radius:999px;font-size:.62rem;line-height:1}
.food-filter-panel .toolbar{margin-top:1px}
.food-filter-panel .toolbar button{min-height:30px;padding:0 10px;font-size:.65rem}
#foodsScreen #foodList{gap:11px}
#foodsScreen .food-card{padding:14px;border-color:rgba(102,127,255,.18);box-shadow:0 12px 28px rgba(41,61,102,.08)}
#foodsScreen .food-card .food-image{width:48px;height:48px;border-radius:16px}
#foodsScreen .food-card .grow b{font-size:.94rem}
#foodsScreen .food-card .grow span{font-size:.73rem}
@media(max-width:430px){#foodsScreen .section-heading{grid-template-columns:1fr auto;gap:10px}#foodsScreen .food-source{font-size:.63rem}#foodsScreen .food-toolbar{padding:9px;border-radius:20px}#foodsScreen .food-toolbar-row{grid-template-columns:minmax(0,1fr) auto}.food-toolbar-actions .filter-toggle{min-width:82px;padding:0 9px}.food-toolbar-actions .food-clear-button{width:38px;min-width:38px;padding:0;font-size:0}.food-toolbar-actions .food-clear-button:before{font-size:.92rem;content:"×"}.food-filter-panel{padding:9px}.food-filter-panel .chip{min-height:30px;padding:0 8px;font-size:.62rem}#foodsScreen .food-card-actions{flex-wrap:nowrap}#foodsScreen .food-list-heading .food-toggle-visible{min-height:30px;padding:0 9px;font-size:.61rem}}
.profile-health-grid div{align-content:center;justify-items:center;min-height:82px;text-align:center}
.profile-health-grid span{display:block;text-align:center}
.profile-health-grid small{color:var(--blue-deep);font-size:.58rem;font-weight:900;line-height:1.25;text-align:center}
.finance-profile-tag{flex:1 1 180px;max-width:100%;min-width:0;border-radius:18px}
.finance-profile-tag span{min-width:0;overflow-wrap:anywhere}
#financeScreen .select-card{
  position:relative;
  gap:7px;
  padding:12px 13px;
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(248,250,255,.78));
}
#financeScreen .select-card span{
  color:var(--muted);
  font-size:.64rem;
  font-weight:950;
  letter-spacing:.07em;
  text-transform:uppercase;
}
#financeScreen .select-card select{
  min-height:46px;
  padding:0 40px 0 13px;
  border-color:color-mix(in srgb,var(--blue) 28%,var(--line));
  border-radius:18px;
  background:var(--field);
  color:var(--ink);
  font-size:.86rem;
  font-weight:850;
  appearance:none;
}
#financeScreen .select-card:after{
  position:absolute;
  right:25px;
  bottom:27px;
  width:8px;
  height:8px;
  border-right:2px solid var(--blue);
  border-bottom:2px solid var(--blue);
  content:"";
  pointer-events:none;
  transform:rotate(45deg);
}
#financeScreen .finance-filter-panel{
  gap:8px;
  padding:10px;
}
#financeScreen .finance-filter-chip{
  justify-content:flex-start;
  gap:7px;
  min-height:31px;
  padding:0 10px 0 7px;
  color:var(--blue-deep);
}
#financeScreen .finance-filter-asset,
#financeScreen .finance-filter-icon,
#financeScreen .finance-filter-meal-icon{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  flex:0 0 auto;
  border:1px solid rgba(92,112,150,.14);
  border-radius:50%;
  background:var(--surface-2);
  color:var(--blue);
  font-size:.62rem;
  font-weight:900;
}
#financeScreen .finance-filter-asset img{
  width:16px;
  height:16px;
  object-fit:contain;
}
#financeScreen .finance-filter-icon>svg{display:block;width:14px;height:14px;flex:0 0 14px}
#financeScreen .finance-filter-meal-icon:before{
  transform:scale(.58);
}
#financeScreen .finance-filter-chip.active .finance-filter-asset,
#financeScreen .finance-filter-chip.active .finance-filter-icon,
#financeScreen .finance-filter-chip.active .finance-filter-meal-icon{
  border-color:rgba(255,255,255,.42);
  background:rgba(255,255,255,.2);
  color:#fff;
}
#financeScreen .finance-food-filter-list{
  max-height:126px;
  overflow:auto;
  padding:1px 1px 4px;
  scrollbar-width:none;
}
#financeScreen .finance-food-filter-list::-webkit-scrollbar{
  display:none;
}
#financeScreen .finance-food-chip{
  gap:5px;
  max-width:100%;
}
#financeScreen .finance-food-chip small{
  color:inherit;
  font-size:.55rem;
  font-weight:900;
  opacity:.72;
}
#financeScreen .finance-tabs{
  margin:0 0 12px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  box-shadow:var(--shadow-soft);
}
#financeScreen .finance-substitution-intro{
  display:grid;
  gap:10px;
  margin-bottom:12px;
  background:linear-gradient(135deg,#fff,#F3FFF7 58%,#FFF8EF);
  font-family:inherit;
}
#financeScreen .finance-mode-card{
  position:relative;
  overflow:hidden;
  gap:9px;
  margin-bottom:0;
  padding:18px;
  border-color:rgba(102,127,255,.26);
  border-radius:26px;
  background:
    linear-gradient(145deg,rgba(41,61,102,.98),rgba(102,127,255,.88) 54%,rgba(255,159,113,.92));
  color:#fff;
  box-shadow:0 20px 42px rgba(41,61,102,.22);
}
#financeScreen .finance-mode-card:after{
  position:absolute;
  right:0;
  bottom:0;
  width:156px;
  height:100%;
  background:rgba(41,61,102,.42);
  -webkit-mask:url("/assets/features/economy-daruma-mask.png") right 8px bottom 8px/122px auto no-repeat;
  mask:url("/assets/features/economy-daruma-mask.png") right 8px bottom 8px/122px auto no-repeat;
  opacity:.58;
  content:"";
  pointer-events:none;
}
#financeScreen .finance-mode-card>*{
  position:relative;
  z-index:1;
  max-width:330px;
}
#financeScreen .finance-mode-card .eyebrow{
  color:rgba(255,255,255,.76);
}
#financeScreen .finance-mode-card h3{
  color:#fff;
  font-size:1.32rem;
  line-height:1.08;
}
#financeScreen .finance-mode-card p:not(.eyebrow){
  color:rgba(255,255,255,.84);
  font-size:.86rem;
  font-weight:800;
  line-height:1.45;
}
#financeScreen .finance-mode-card .primary{
  width:max-content;
  min-width:min(100%,210px);
  margin-top:4px;
  background:#fff;
  color:var(--blue-deep);
  box-shadow:0 14px 28px rgba(41,61,102,.18);
}
#financeScreen .finance-substitution-intro h3{
  font-size:1.12rem;
  line-height:1.14;
}
#financeScreen .finance-substitution-intro p:not(.eyebrow){
  color:var(--text);
  font-size:.9rem;
  font-weight:800;
  line-height:1.5;
}
#financeScreen .finance-substitution-intro.finance-mode-card h3{
  color:#fff;
  font-size:1.32rem;
  line-height:1.08;
}
#financeScreen .finance-substitution-intro.finance-mode-card p:not(.eyebrow){
  color:rgba(255,255,255,.84);
  font-size:.86rem;
  line-height:1.45;
}
.finance-sub-empty{
  position:relative;
  overflow:hidden;
  display:grid;
  gap:5px;
  padding:15px;
  border:1px dashed color-mix(in srgb,var(--blue) 34%,var(--line));
  border-radius:20px;
  background:rgba(255,255,255,.7);
  color:var(--text);
  text-align:center;
}
.finance-sub-empty:after{
  position:absolute;
  right:10px;
  bottom:8px;
  width:72px;
  height:72px;
  background:rgba(102,127,255,.11);
  -webkit-mask:url("/assets/features/economy-daruma-mask.png") center/contain no-repeat;
  mask:url("/assets/features/economy-daruma-mask.png") center/contain no-repeat;
  content:"";
  pointer-events:none;
}
.finance-sub-empty>*{
  position:relative;
  z-index:1;
}
.finance-sub-empty b{
  color:var(--ink);
}
.finance-sub-empty span{
  color:var(--muted);
  font-size:.86rem;
  font-weight:800;
  line-height:1.45;
}
.finance-sub-card{
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid color-mix(in srgb,var(--green) 20%,var(--line));
  border-radius:22px;
  background:linear-gradient(180deg,#fff,#F9FFFB);
  box-shadow:var(--shadow-soft);
  font-family:inherit;
}
.finance-sub-card>header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding-bottom:9px;
  border-bottom:1px solid var(--line-soft);
}
.finance-sub-card span,
.finance-sub-card small,
.finance-sub-card em{
  display:block;
  color:var(--muted);
  font-size:.82rem;
  font-weight:800;
  line-height:1.42;
}
.finance-sub-card b{
  display:block;
  color:var(--ink);
  font-size:1.06rem;
  line-height:1.18;
}
.finance-sub-badge{
  display:inline-flex!important;
  width:max-content;
  max-width:100%;
  margin:5px 0 1px;
  padding:4px 8px;
  border:1px solid rgba(94,111,255,.18);
  border-radius:999px;
  background:rgba(238,242,255,.86);
  color:#5168D9!important;
  font-size:.68rem!important;
  font-weight:950!important;
}
.finance-sub-card>header strong{
  color:var(--orange);
  font-size:1.04rem;
}
.finance-sub-options{
  display:grid;
  gap:9px;
}
.finance-sub-options section{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:10px;
  align-items:start;
  padding:10px;
  border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line));
  border-radius:17px;
  background:rgba(255,255,255,.78);
}
.finance-sub-option-main,
.finance-sub-current{
  display:grid;
  gap:7px;
  min-width:0;
}
.finance-sub-kicker{
  margin-top:2px;
  color:var(--blue-deep)!important;
  font-size:.68rem!important;
  font-weight:950!important;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.finance-sub-nutrients{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:5px;
}
.finance-sub-nutrients span{
  display:grid;
  gap:2px;
  min-width:0;
  padding:7px 5px;
  border:1px solid var(--line-soft);
  border-radius:12px;
  background:rgba(255,255,255,.82);
  text-align:center;
}
.finance-sub-nutrients b{
  overflow:hidden;
  color:var(--ink);
  font-size:.82rem;
  line-height:1.08;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.finance-sub-nutrients small{
  overflow:hidden;
  color:var(--muted);
  font-size:.55rem;
  font-weight:950;
  line-height:1.08;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}
.finance-sub-nutrients.delta span.plus{
  border-color:rgba(118,185,142,.28);
  background:#F1FAF4;
}
.finance-sub-nutrients.delta span.minus{
  border-color:rgba(231,109,114,.24);
  background:#FFF4F5;
}
.finance-sub-nutrients.delta span{
  border-radius:13px;
  box-shadow:0 8px 18px rgba(41,61,102,.06);
}
.finance-sub-nutrients.delta span.neutral{
  background:#fff;
}
.finance-sub-nutrients.delta span.plus b{
  color:#287A46;
}
.finance-sub-nutrients.delta span.minus b{
  color:#B84D54;
}
.finance-sub-nutrients.delta span.plus small{
  color:#287A46;
}
.finance-sub-nutrients.delta span.minus small{
  color:#B84D54;
}
.finance-sub-ledger{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
}
.finance-sub-ledger span{
  display:grid;
  gap:2px;
  min-width:0;
  padding:8px 6px;
  border:1px solid rgba(102,127,255,.14);
  border-radius:12px;
  background:var(--surface-2);
  text-align:center;
}
.finance-sub-ledger.compact span{
  padding:7px 5px;
}
.finance-sub-ledger b{
  overflow:hidden;
  color:var(--blue-deep);
  font-size:.85rem;
  line-height:1.08;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.finance-sub-ledger small{
  overflow:hidden;
  color:var(--muted);
  font-size:.55rem;
  font-weight:950;
  line-height:1.08;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}
.finance-sub-options section strong{
  color:var(--green);
  font-size:1rem;
}
.finance-sub-options section em{
  margin-top:2px;
  color:#2F7650;
  font-size:.84rem;
}
.finance-sub-alert{
  margin-top:4px;
  padding:6px 8px;
  border:1px dashed rgba(245,158,11,.36);
  border-radius:10px;
  background:rgba(255,247,226,.78);
  color:#8A5A11!important;
}
.finance-sub-card{
  grid-template-columns:minmax(168px,.82fr) minmax(0,1.4fr);
  align-items:stretch;
  padding:10px;
  border-radius:20px;
  background:linear-gradient(135deg,#fff,#F8FBFF);
}
.finance-sub-card:nth-child(3n+1) .finance-sub-current-card{
  border-color:rgba(102,127,255,.22);
  background:linear-gradient(145deg,#F4F7FF,#fff);
}
.finance-sub-card:nth-child(3n+2) .finance-sub-current-card{
  border-color:rgba(71,181,116,.22);
  background:linear-gradient(145deg,#F2FFF7,#fff);
}
.finance-sub-card:nth-child(3n) .finance-sub-current-card{
  border-color:rgba(245,158,11,.24);
  background:linear-gradient(145deg,#FFF8EF,#fff);
}
.finance-sub-current-card{
  display:grid;
  align-content:start;
  gap:9px;
  min-width:0;
  padding:12px;
  border:1px solid var(--line);
  border-radius:17px;
}
.finance-sub-current-card>header{
  display:grid;
  gap:3px;
  padding-bottom:8px;
  border-bottom:1px solid var(--line-soft);
}
.finance-sub-current-card>header span{
  color:var(--blue-deep);
  font-size:.66rem;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.finance-sub-current-card>header b{
  font-size:1.02rem;
}
.finance-sub-current-card>header strong{
  color:var(--orange);
  font-size:1.02rem;
}
.finance-sub-explain{
  margin:0;
  color:var(--text);
  font-size:.88rem;
  font-weight:800;
  line-height:1.45;
}
.finance-sub-simple{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.finance-sub-simple span{
  display:grid;
  gap:2px;
  min-width:0;
  padding:9px 8px;
  border:1px solid rgba(102,127,255,.14);
  border-radius:13px;
  background:var(--surface-2);
}
.finance-sub-simple b{
  color:var(--blue-deep);
  font-size:.95rem;
  line-height:1.1;
}
.finance-sub-simple small{
  color:var(--muted);
  font-size:.61rem;
  font-weight:950;
  line-height:1.08;
  text-transform:uppercase;
}
.finance-cycle-mini{
  display:grid;
  gap:7px;
  padding:9px;
  border:1px solid rgba(102,127,255,.14);
  border-radius:15px;
  background:rgba(255,255,255,.72);
}
.finance-cycle-mini p{
  margin:0;
  color:var(--text);
  font-size:.78rem;
  font-weight:850;
  line-height:1.38;
}
.finance-cycle-facts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.finance-cycle-mini>div{
  display:grid;
  gap:6px;
}
.finance-cycle-mini span{
  display:grid;
  gap:2px;
  min-width:0;
  padding:8px;
  border-radius:12px;
  background:var(--surface-2);
}
.finance-cycle-mini span b{
  color:var(--blue-deep);
  font-size:.76rem;
}
.finance-cycle-mini span small{
  color:var(--text);
  font-size:.74rem;
  font-weight:800;
  line-height:1.34;
}
.finance-cycle-facts span{
  border:1px solid rgba(102,127,255,.14);
  background:#fff;
}
.finance-cycle-facts span.yes{
  border-color:rgba(71,181,116,.26);
  background:#F1FAF4;
}
.finance-cycle-facts span.yes b,
.finance-cycle-facts span.yes small{
  color:#287A46;
}
.finance-cycle-facts span.no{
  border-color:rgba(231,109,114,.24);
  background:#FFF4F5;
}
.finance-cycle-facts span.no b,
.finance-cycle-facts span.no small{
  color:#B84D54;
}
.finance-cycle-mini>strong{
  display:block;
  color:#2F7650;
  font-size:.82rem;
  line-height:1.2;
}
.finance-sub-options-panel{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:8px;
  min-width:0;
  padding:2px 0 2px 2px;
}
.finance-sub-row-title{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:3px 8px;
  min-width:0;
  padding:0 4px;
}
.finance-sub-row-title span{
  min-width:0;
  color:var(--ink);
  font-size:.86rem;
  font-weight:950;
}
.finance-sub-row-title small{
  grid-column:1/-1;
  color:var(--muted);
  font-size:.68rem;
  font-weight:900;
}
.finance-sub-arrows{
  display:flex;
  grid-column:2;
  grid-row:1;
  gap:5px;
  margin-left:auto;
}
.finance-sub-arrows button{
  display:grid;
  place-items:center;
  width:30px;
  min-width:30px;
  height:30px;
  min-height:30px;
  padding:0;
  border-radius:50%;
  border-color:color-mix(in srgb,var(--blue) 24%,var(--line));
  background:#fff;
  color:var(--blue);
  font-size:1.05rem;
  font-weight:950;
  line-height:1;
  box-shadow:none;
}
.finance-sub-options{
  display:flex;
  gap:9px;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  padding:0 4px 8px;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin;
}
.finance-sub-options::after{
  content:"";
  flex:0 0 2px;
}
.finance-sub-option-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr) auto;
  flex:0 0 min(86%,310px);
  min-width:238px;
  min-height:100%;
  scroll-snap-align:start;
  border-radius:17px!important;
  background:rgba(255,255,255,.88)!important;
}
.finance-sub-option-card footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding-top:8px;
  border-top:1px solid var(--line-soft);
}
.finance-sub-option-card footer strong{
  color:var(--green);
  font-size:1rem;
}
.finance-sub-option-card footer .small{
  min-width:58px;
  height:36px;
  padding:0 13px;
}
.finance-sub-option-card>.finance-sub-option-main{
  gap:7px;
}
.finance-replace-modal{
  display:grid;
  gap:13px;
  font-family:inherit;
}
.finance-replace-scope{
  display:grid;
  gap:8px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface-2);
}
.finance-replace-scope>b{
  color:var(--muted);
  font-size:.76rem;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.finance-replace-scope small{
  color:var(--muted);
  font-size:.82rem;
  font-weight:800;
  line-height:1.38;
}
.finance-replace-meal-tabs button{
  min-height:38px;
  padding:0 13px;
}
.finance-replace-meal-tabs button.selected:not(.active){
  border-color:color-mix(in srgb,var(--green) 30%,var(--line));
  background:#F2FBF5;
  color:#2F7650;
}
.finance-replace-day-tabs button{
  min-height:38px;
  font-size:.74rem;
}
.finance-replace-meal-list{
  display:grid;
  gap:8px;
}
.finance-replace-meal-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  min-height:58px;
  padding:9px 10px;
  border:1px solid var(--line-soft);
  border-radius:16px;
  background:#fff;
}
.finance-replace-meal-row.selected{
  border-color:rgba(71,181,116,.30);
  background:#F1FAF4;
}
.finance-replace-meal-row div{
  display:grid;
  gap:2px;
  min-width:0;
}
.finance-replace-meal-row b{
  color:var(--ink);
  font-size:.9rem;
  line-height:1.08;
}
.finance-replace-meal-row span{
  color:var(--muted);
  font-size:.68rem;
  font-weight:850;
  line-height:1.15;
}
.finance-replace-meal-row strong{
  color:#2F7650;
  font-size:.9rem;
  font-weight:950;
  white-space:nowrap;
}
.finance-replace-meal-row .small{
  min-width:72px;
  height:34px;
  min-height:34px;
  padding:0 10px;
}
.finance-replace-preview{
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--green) 24%,var(--line));
  border-radius:18px;
  background:linear-gradient(135deg,#F6FFF8,#FFFFFF);
}
.finance-replace-preview>header{
  display:grid;
  gap:3px;
  text-align:center;
}
.finance-replace-preview>header>span{
  color:var(--muted);
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.finance-replace-preview>header>b{
  color:#2F7650;
  font-size:1.3rem;
  line-height:1.05;
}
.finance-replace-preview>header>small{
  color:var(--muted);
  font-size:.82rem;
  font-weight:800;
  line-height:1.35;
}
.finance-replace-day-preview{
  display:grid;
  gap:7px;
}
.finance-replace-day-preview div{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:3px 8px;
  padding:9px 10px;
  border:1px solid var(--line-soft);
  border-radius:15px;
  background:rgba(255,255,255,.82);
}
.finance-replace-day-preview b{
  color:var(--ink);
  font-size:.86rem;
}
.finance-replace-day-preview span{
  color:#2F7650;
  font-size:.86rem;
  font-weight:950;
}
.finance-replace-day-preview small{
  grid-column:1/-1;
  color:var(--muted);
  font-size:.78rem;
  font-weight:850;
  line-height:1.32;
}
.finance-replace-review-list{
  display:grid;
  gap:10px;
}
.finance-replace-day-detail{
  display:grid;
  gap:10px;
  padding:10px;
  border:1px solid rgba(102,127,255,.14);
  border-radius:17px;
  background:rgba(255,255,255,.72);
}
.finance-replace-day-detail>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-align:left;
}
.finance-replace-day-detail>header div{
  display:grid;
  gap:2px;
}
.finance-replace-day-detail>header b{
  color:var(--ink);
  font-size:.95rem;
}
.finance-replace-day-detail>header strong{
  color:#2F7650;
  font-size:.84rem;
}
.finance-replace-macro-review{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  justify-items:center;
}
.finance-replace-macro-review span{
  display:grid;
  place-items:center;
  align-content:center;
  gap:2px;
  min-width:0;
  width:54px;
  height:54px;
  padding:4px;
  border:1px solid var(--line-soft);
  border-radius:999px;
  background:#fff;
  text-align:center;
}
.finance-replace-macro-review b{
  overflow:hidden;
  color:var(--blue-deep);
  font-size:.68rem;
  line-height:1;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.finance-replace-macro-review small{
  overflow:hidden;
  color:var(--muted);
  font-size:.48rem;
  font-weight:950;
  line-height:1;
  text-overflow:ellipsis;
}
.finance-replace-menu-compare{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.finance-replace-menu-card{
  display:grid;
  align-content:start;
  gap:8px;
  min-width:0;
  padding:10px;
  border:1px solid var(--line-soft);
  border-radius:15px;
  background:#fff;
}
.finance-replace-menu-card.after{
  border-color:rgba(71,181,116,.24);
  background:#F6FFF8;
}
.finance-replace-menu-card header{
  display:grid;
  gap:2px;
  text-align:left;
}
.finance-replace-menu-card header span{
  color:var(--muted);
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.finance-replace-menu-card header b{
  color:var(--ink);
  font-size:.9rem;
}
.finance-replace-menu-card header small{
  color:var(--muted);
  font-size:.68rem;
  font-weight:850;
}
.finance-replace-menu-card>div{
  display:grid;
  gap:6px;
}
.finance-replace-menu-card p{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  margin:0;
  padding:7px 0;
  border-top:1px solid var(--line-soft);
}
.finance-replace-menu-card p b{
  min-width:0;
  color:var(--text);
  font-size:.78rem;
  line-height:1.4;
  white-space:normal;
  overflow-wrap:anywhere;
}
.finance-replace-menu-card p span{
  color:var(--blue-deep);
  font-size:.72rem;
  font-weight:900;
  white-space:nowrap;
}
.finance-replace-scope .chips{
  overflow:visible;
}
.finance-replace-scope button{
  min-height:34px;
}
@media(max-width:430px){
  .finance-replace-macro-review{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .finance-replace-menu-compare{
    grid-template-columns:1fr;
  }
  .finance-sub-card{
    grid-template-columns:1fr;
    gap:9px;
    padding:9px;
  }
  .finance-sub-current-card{
    padding:11px;
  }
  .finance-sub-options-panel{
    padding:0;
  }
  .finance-sub-row-title{
    padding:0 2px;
  }
  .finance-sub-row-title small{
    display:block;
  }
  .finance-sub-arrows button{
    width:28px;
    min-width:28px;
    height:28px;
    min-height:28px;
  }
  .finance-sub-options{
    margin-right:-9px;
    padding:0 9px 8px 0;
  }
  .finance-sub-option-card{
    flex-basis:86%;
    min-width:252px;
  }
  .finance-sub-options section{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .finance-sub-options section button{
    grid-column:1/-1;
    width:100%;
  }
  .finance-sub-option-card footer button{
    grid-column:auto;
    width:auto;
  }
  .finance-sub-alert{
    grid-column:1/-1;
  }
}
#financeSubstitutionPanel{
  display:grid;
  gap:14px;
}
#financeSubstitutionPanel[hidden]{
  display:none!important;
}
#financeSubstitutionPanel .finance-sub-action{
  display:grid;
  margin:0 0 16px;
}
#financeSubstitutionPanel .finance-sub-calc-button{
  min-height:48px;
  padding:0 18px;
  border:1px solid rgba(102,127,255,.22);
  border-radius:18px;
  background:#EAF0FF;
  color:#2F477F;
  box-shadow:0 10px 22px rgba(41,61,102,.08);
  font-size:.82rem;
  font-weight:950;
}
#financeSubstitutionPanel .finance-sub-calc-button:active{
  transform:translateY(1px);
}
#financeSubstitutionPanel .finance-substitution-intro{
  position:relative;
  overflow:hidden;
  gap:9px;
  margin-bottom:0;
  padding:18px;
  border-color:rgba(102,127,255,.26);
  border-radius:26px;
  background:
    linear-gradient(145deg,rgba(41,61,102,.98),rgba(102,127,255,.88) 54%,rgba(255,159,113,.92));
  color:#fff;
  box-shadow:0 20px 42px rgba(41,61,102,.22);
}
#financeSubstitutionPanel .finance-substitution-intro:after{
  position:absolute;
  right:0;
  bottom:0;
  width:156px;
  height:100%;
  background:rgba(41,61,102,.42);
  -webkit-mask:url("/assets/features/economy-daruma-mask.png") right 8px bottom 8px/122px auto no-repeat;
  mask:url("/assets/features/economy-daruma-mask.png") right 8px bottom 8px/122px auto no-repeat;
  opacity:.58;
  content:"";
  pointer-events:none;
}
#financeSubstitutionPanel .finance-substitution-intro>*{
  position:relative;
  z-index:1;
  max-width:330px;
}
#financeSubstitutionPanel .finance-substitution-intro .eyebrow{
  color:rgba(255,255,255,.76);
}
#financeSubstitutionPanel .finance-substitution-intro h3{
  color:#fff;
  font-size:1.32rem;
  line-height:1.08;
}
#financeSubstitutionPanel .finance-substitution-intro p:not(.eyebrow){
  color:rgba(255,255,255,.84);
  font-size:.86rem;
  font-weight:800;
  line-height:1.45;
}
#financeSubstitutionPanel .finance-substitution-intro .primary{
  width:max-content;
  min-width:min(100%,210px);
  margin-top:4px;
  background:#fff;
  color:var(--blue-deep);
  box-shadow:0 14px 28px rgba(41,61,102,.18);
}
#financeSubstitutionPanel #financeSubstitutionList{
  gap:13px;
}
#financeSubstitutionPanel .finance-sub-meal-filter{
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid rgba(102,127,255,.18);
  border-radius:22px;
  background:rgba(255,255,255,.82);
  box-shadow:var(--shadow-soft);
}
#financeSubstitutionPanel .finance-sub-meal-filter>div:first-child{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
#financeSubstitutionPanel .finance-sub-meal-filter>div:first-child span{
  color:var(--blue-deep);
  font-size:.7rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
#financeSubstitutionPanel .finance-sub-meal-clear{
  min-height:30px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--muted);
  font-size:.66rem;
  font-weight:950;
}
#financeSubstitutionPanel .finance-sub-meal-clear.active{
  border-color:rgba(255,159,113,.34);
  background:var(--peach-soft);
  color:#B9653B;
}
#financeSubstitutionPanel .finance-sub-meal-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  overflow:visible;
  padding:1px;
  scrollbar-width:none;
}
#financeSubstitutionPanel .finance-sub-meal-chips::-webkit-scrollbar{
  display:none;
}
#financeSubstitutionPanel .finance-sub-meal-chip{
  display:grid;
  grid-template-columns:30px max-content;
  align-items:center;
  gap:7px;
  min-height:42px;
  padding:6px 12px 6px 7px;
  border:1px solid rgba(102,127,255,.16);
  border-radius:999px;
  background:#fff;
  color:var(--text);
  box-shadow:0 8px 18px rgba(41,61,102,.06);
  white-space:nowrap;
}
#financeSubstitutionPanel .finance-sub-meal-chip img,
#financeSubstitutionPanel .finance-sub-meal-chip .finance-sub-meal-icon{
  width:30px;
  height:30px;
  border-radius:11px;
  background:var(--blue-soft);
  object-fit:contain;
}
#financeSubstitutionPanel .finance-sub-meal-chip .finance-sub-meal-icon{
  display:grid;
  place-items:center;
  border:0;
  flex:0 0 auto;
}
#financeSubstitutionPanel .finance-sub-meal-chip .finance-sub-meal-icon:before{
  width:18px;
  height:18px;
}
#financeSubstitutionPanel .finance-sub-meal-chip span{
  color:var(--blue-deep);
  font-size:.74rem;
  font-weight:950;
}
#financeSubstitutionPanel .finance-sub-meal-chip.active{
  border-color:var(--blue);
  background:var(--blue);
  color:#fff;
  box-shadow:0 12px 24px rgba(102,127,255,.22);
}
#financeSubstitutionPanel .finance-sub-meal-chip.active img,
#financeSubstitutionPanel .finance-sub-meal-chip.active .finance-sub-meal-icon{
  background:rgba(255,255,255,.22);
}
#financeSubstitutionPanel .finance-sub-meal-chip.active span{
  color:#fff;
}
#financeSubstitutionPanel .finance-sub-empty{
  padding:18px 16px;
  border:1px dashed rgba(102,127,255,.34);
  border-radius:24px;
  background:linear-gradient(180deg,#fff,var(--surface-2));
  box-shadow:var(--shadow-soft);
}
#financeSubstitutionPanel .finance-sub-card{
  grid-template-columns:1fr;
  gap:12px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#financeSubstitutionPanel .finance-sub-current-card{
  position:relative;
  overflow:hidden;
  gap:11px;
  padding:17px;
  border:1px solid rgba(102,127,255,.24);
  border-radius:26px;
  background:
    linear-gradient(150deg,#fff 0%,#F6F8FF 54%,#FFF1EA 100%);
  box-shadow:var(--shadow-soft);
}
#financeSubstitutionPanel .finance-sub-current-card>header{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:5px 12px;
  padding-bottom:10px;
}
#financeSubstitutionPanel .finance-sub-current-card>header span{
  color:var(--blue);
  font-size:.66rem;
}
#financeSubstitutionPanel .finance-sub-current-card>header b{
  overflow:visible;
  color:var(--blue-deep);
  font-size:1.16rem;
  line-height:1.1;
  white-space:normal;
  overflow-wrap:anywhere;
}
#financeSubstitutionPanel .finance-sub-current-card>header strong{
  grid-column:2;
  grid-row:1/3;
  align-self:center;
  padding:8px 10px;
  border-radius:15px;
  background:#fff;
  color:var(--orange);
  font-size:1.05rem;
  box-shadow:0 10px 22px rgba(41,61,102,.08);
}
#financeSubstitutionPanel .finance-sub-current-card>header small{
  color:var(--muted);
  font-size:.74rem;
}
#financeSubstitutionPanel .finance-sub-explain{
  color:var(--text);
  font-size:.84rem;
  font-weight:800;
}
#financeSubstitutionPanel .finance-sub-option-explain{
  margin:0;
  padding:9px 10px;
  border:1px solid rgba(102,127,255,.14);
  border-radius:15px;
  background:var(--surface-2);
  color:var(--blue-deep);
  font-size:.76rem;
  line-height:1.38;
}
#financeSubstitutionPanel .finance-cycle-mini{
  gap:8px;
  padding:10px;
  border-color:rgba(102,127,255,.18);
  border-radius:18px;
  background:rgba(255,255,255,.72);
}
#financeSubstitutionPanel .finance-year-mini{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:10px;
  border:1px solid rgba(102,127,255,.18);
  border-radius:18px;
  background:rgba(255,255,255,.72);
}
#financeSubstitutionPanel .finance-year-mini span{
  display:grid;
  align-content:start;
  gap:3px;
  min-width:0;
  min-height:62px;
  padding:9px;
  border:1px solid rgba(102,127,255,.12);
  border-radius:15px;
  background:#fff;
}
#financeSubstitutionPanel .finance-year-mini span:nth-child(3){
  border-color:rgba(255,159,113,.24);
  background:var(--peach-soft);
}
#financeSubstitutionPanel .finance-year-mini span:nth-child(4){
  border-color:rgba(118,185,142,.24);
  background:#F1FAF4;
}
#financeSubstitutionPanel .finance-year-impact span:nth-child(1){
  border-color:rgba(102,127,255,.16);
  background:var(--blue-soft);
}
#financeSubstitutionPanel .finance-year-impact span:nth-child(2){
  border-color:rgba(118,185,142,.24);
  background:#F1FAF4;
}
#financeSubstitutionPanel .finance-year-mini b{
  color:var(--blue-deep);
  font-size:.73rem;
  line-height:1.12;
}
#financeSubstitutionPanel .finance-year-mini small{
  color:var(--text);
  font-size:.75rem;
  font-weight:900;
  line-height:1.2;
}
#financeSubstitutionPanel .finance-cycle-mini>div:not(.finance-cycle-facts){
  grid-template-columns:repeat(2,minmax(0,1fr));
}
#financeSubstitutionPanel .finance-cycle-mini span{
  min-height:62px;
  padding:9px;
  border:1px solid rgba(102,127,255,.12);
  border-radius:15px;
  background:#fff;
}
#financeSubstitutionPanel .finance-cycle-mini span b{
  color:var(--blue-deep);
  font-size:.73rem;
}
#financeSubstitutionPanel .finance-cycle-mini span small{
  color:var(--text);
  font-size:.7rem;
}
#financeSubstitutionPanel .finance-sub-current{
  gap:8px;
}
#financeSubstitutionPanel .finance-sub-kicker{
  color:var(--blue)!important;
  font-size:.64rem!important;
  letter-spacing:.08em;
}
#financeSubstitutionPanel .finance-sub-nutrients{
  gap:7px;
}
#financeSubstitutionPanel .finance-sub-nutrients span{
  min-height:54px;
  padding:8px 5px;
  border-color:rgba(102,127,255,.14);
  border-radius:15px;
  background:#fff;
}
#financeSubstitutionPanel .finance-sub-nutrients b{
  color:var(--blue-deep);
  font-size:.78rem;
}
#financeSubstitutionPanel .finance-sub-nutrients small{
  font-size:.5rem;
}
#financeSubstitutionPanel .finance-sub-options-panel{
  gap:10px;
  padding:0;
}
#financeSubstitutionPanel .finance-sub-row-title{
  grid-template-columns:minmax(0,1fr) auto;
  padding:0 2px;
}
#financeSubstitutionPanel .finance-sub-row-title span{
  color:var(--ink);
  font-size:1rem;
}
#financeSubstitutionPanel .finance-sub-row-title small{
  color:var(--muted);
}
#financeSubstitutionPanel .finance-sub-arrows button{
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  border:1px solid rgba(102,127,255,.18);
  background:#fff;
  color:var(--blue-deep);
  box-shadow:var(--shadow-soft);
}
#financeSubstitutionPanel .finance-sub-options{
  gap:10px;
  margin-right:-16px;
  padding:2px 16px 12px 2px;
  scrollbar-width:none;
}
#financeSubstitutionPanel .finance-sub-options::-webkit-scrollbar{
  display:none;
}
#financeSubstitutionPanel .finance-sub-option-card{
  flex-basis:min(88%,340px);
  min-width:270px;
  overflow:hidden;
  padding:0;
  border:1px solid rgba(102,127,255,.18)!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:var(--shadow-soft);
}
#financeSubstitutionPanel .finance-sub-option-main{
  gap:10px;
  padding:15px;
}
#financeSubstitutionPanel .finance-sub-option-main>b{
  color:var(--blue-deep);
  font-size:1.08rem;
  line-height:1.12;
}
#financeSubstitutionPanel .finance-sub-badge{
  margin-top:-4px;
  border-color:rgba(102,127,255,.24);
  background:var(--blue-soft);
  color:var(--blue-deep)!important;
}
#financeSubstitutionPanel .finance-sub-simple{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
#financeSubstitutionPanel .finance-sub-simple span{
  min-height:62px;
  border-color:rgba(255,159,113,.2);
  border-radius:16px;
  background:var(--peach-soft);
}
#financeSubstitutionPanel .finance-sub-simple span:nth-child(2){
  border-color:rgba(102,127,255,.18);
  background:var(--blue-soft);
}
#financeSubstitutionPanel .finance-sub-simple span:last-child{
  border-color:rgba(118,185,142,.24);
  background:#F1FAF4;
}
#financeSubstitutionPanel .finance-sub-simple b{
  color:var(--blue-deep);
  font-size:.92rem;
}
#financeSubstitutionPanel .finance-sub-nutrients.delta span.plus{
  border-color:rgba(118,185,142,.28);
  background:#F1FAF4;
}
#financeSubstitutionPanel .finance-sub-nutrients.delta span.minus{
  border-color:rgba(255,159,113,.28);
  background:var(--peach-soft);
}
#financeSubstitutionPanel .finance-sub-nutrients.delta span.minus b,
#financeSubstitutionPanel .finance-sub-nutrients.delta span.minus small{
  color:#B9653B;
}
#financeSubstitutionPanel .finance-sub-option-card footer{
  min-height:58px;
  padding:11px 13px;
  border-top:1px solid var(--line-soft);
  background:linear-gradient(90deg,var(--surface-2),#fff);
}
#financeSubstitutionPanel .finance-sub-option-card footer strong{
  color:#2F7650;
  font-size:.95rem;
}
#financeSubstitutionPanel .finance-sub-option-card footer .small{
  min-width:86px;
  border-color:var(--orange);
  background:var(--orange);
  color:#fff;
  box-shadow:0 10px 20px rgba(255,159,113,.22);
}
#financeSubstitutionPanel .finance-sub-flow-card{
  display:grid;
  grid-template-columns:minmax(150px,.45fr) minmax(0,1fr);
  align-items:start;
  gap:12px;
  min-width:0;
  padding:0;
}
#financeSubstitutionPanel .finance-sub-source-node,
#financeSubstitutionPanel .finance-sub-swap-card{
  min-width:0;
  border:1px solid rgba(102,127,255,.18);
  border-radius:24px;
  background:#fff;
  box-shadow:var(--shadow-soft);
  cursor:pointer;
  font:inherit;
}
#financeSubstitutionPanel .finance-sub-source-node{
  position:sticky;
  top:78px;
  overflow:hidden;
  display:grid;
  place-items:center;
  min-height:56px;
  padding:12px;
  background:linear-gradient(150deg,#fff 0%,#F6F8FF 56%,#FFF1EA 100%);
  text-align:left;
}
#financeSubstitutionPanel .finance-sub-source-node:after{
  position:absolute;
  inset:auto 6px 5px auto;
  width:42px;
  height:42px;
  background:rgba(41,61,102,.12);
  -webkit-mask:url("/assets/features/economy-daruma-mask.png") center/contain no-repeat;
  mask:url("/assets/features/economy-daruma-mask.png") center/contain no-repeat;
  content:"";
  pointer-events:none;
}
#financeSubstitutionPanel .finance-sub-source-node>b{
  position:relative;
  z-index:1;
  display:block;
  max-width:100%;
  color:var(--blue-deep);
  font-size:.92rem;
  line-height:1.4;
  white-space:normal;
  overflow-wrap:anywhere;
}
#financeSubstitutionPanel .finance-sub-source-node:focus-visible,
#financeSubstitutionPanel .finance-sub-swap-card:focus-visible{
  outline:3px solid rgba(102,127,255,.28);
  outline-offset:2px;
}
#financeSubstitutionPanel .finance-sub-flow-card .finance-sub-options-panel{
  gap:8px;
  min-width:0;
}
#financeSubstitutionPanel .finance-sub-flow-card .finance-sub-row-title{
  padding:0 2px;
}
#financeSubstitutionPanel .finance-sub-flow-card .finance-sub-arrows{
  display:none;
}
#financeSubstitutionPanel .finance-sub-flow-card .finance-sub-options{
  display:grid;
  gap:6px;
  margin:0;
  padding:0;
  overflow:visible;
}
#financeSubstitutionPanel .finance-sub-swap-card{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:10px;
  align-items:center;
  min-height:56px;
  padding:10px 12px;
  border-color:color-mix(in srgb,var(--green) 44%,var(--line));
  background:color-mix(in srgb,var(--green) 12%,var(--card));
  text-align:left;
}
#financeSubstitutionPanel .finance-sub-swap-card:after{
  position:absolute;
  right:8px;
  bottom:5px;
  width:38px;
  height:38px;
  background:rgba(102,127,255,.08);
  -webkit-mask:url("/assets/features/economy-daruma-mask.png") center/contain no-repeat;
  mask:url("/assets/features/economy-daruma-mask.png") center/contain no-repeat;
  content:"";
  pointer-events:none;
}
#financeSubstitutionPanel .finance-sub-swap-card>*{
  position:relative;
  z-index:1;
}
#financeSubstitutionPanel .finance-swap-arrow{
  position:relative;
  display:block;
  width:34px;
  height:34px;
  min-height:34px;
  padding:0;
  border:1px solid rgba(118,185,142,.28);
  border-radius:50%;
  background:#F1FAF4;
  color:#2F7650;
}
#financeSubstitutionPanel .finance-swap-arrow:before{
  position:absolute;
  left:50%;
  top:50%;
  width:13px;
  height:2px;
  transform:translate(-50%,-50%);
  border-radius:1px;
  background:currentColor;
  content:"";
}
#financeSubstitutionPanel .finance-swap-arrow:after{
  position:absolute;
  left:calc(50% + 3px);
  top:50%;
  width:7px;
  height:7px;
  border:solid currentColor;
  border-width:2px 2px 0 0;
  transform:translate(-50%,-50%) rotate(45deg);
  content:"";
}
#financeSubstitutionPanel .finance-swap-product{
  display:grid;
  gap:6px;
  min-width:0;
}
#financeSubstitutionPanel .finance-swap-product>b{
  color:var(--blue-deep);
  font-size:.92rem;
  line-height:1.4;
  white-space:normal;
  overflow-wrap:anywhere;
}
#financeSubstitutionPanel .finance-swap-product .finance-sub-inactive-badge{display:inline-flex;justify-self:start;max-width:100%;padding:4px 7px;border:1px solid color-mix(in srgb,var(--orange) 38%,var(--line));border-radius:999px;background:var(--orange-soft,var(--peach-soft));color:var(--ink);font-size:.63rem;font-style:normal;font-weight:800;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
#financeSubstitutionPanel .finance-flow-macros{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
}
#financeSubstitutionPanel .finance-flow-macros span{
  display:grid;
  justify-items:center;
  min-width:0;
  padding:7px 4px;
  border:1px solid var(--line-soft);
  border-radius:13px;
  background:#fff;
  text-align:center;
}
#financeSubstitutionPanel .finance-flow-macros span.plus{
  border-color:rgba(118,185,142,.28);
  background:#F1FAF4;
}
#financeSubstitutionPanel .finance-flow-macros span.minus{
  border-color:rgba(255,159,113,.28);
  background:var(--peach-soft);
}
#financeSubstitutionPanel .finance-flow-macros b{
  color:var(--blue-deep);
  font-size:.72rem;
  line-height:1.05;
}
#financeSubstitutionPanel .finance-flow-macros span.plus b,
#financeSubstitutionPanel .finance-flow-macros span.plus small{
  color:#287A46;
}
#financeSubstitutionPanel .finance-flow-macros span.minus b,
#financeSubstitutionPanel .finance-flow-macros span.minus small{
  color:#B9653B;
}
#financeSubstitutionPanel .finance-flow-macros small{
  color:var(--muted);
  font-size:.52rem;
  font-weight:950;
  text-transform:uppercase;
}
#financeSubstitutionPanel .finance-purchase-note{
  display:grid;
  gap:3px;
  padding:10px;
  border:1px solid rgba(102,127,255,.16);
  border-radius:15px;
  background:var(--surface-2);
}
#financeSubstitutionPanel .finance-purchase-note.yes{
  border-color:rgba(118,185,142,.26);
  background:#F1FAF4;
}
#financeSubstitutionPanel .finance-purchase-note.no{
  border-color:rgba(255,159,113,.28);
  background:var(--peach-soft);
}
#financeSubstitutionPanel .finance-purchase-note b{
  color:var(--blue-deep);
  font-size:.78rem;
  line-height:1.15;
}
#financeSubstitutionPanel .finance-purchase-note span{
  color:var(--text);
  font-size:.74rem;
  font-weight:800;
  line-height:1.35;
}
.finance-sub-detail-modal{
  display:grid;
  gap:14px;
  min-width:0;
}
.finance-sub-detail-modal .sheet-title h2,
.finance-replace-modal>.sheet-title h2{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.finance-sub-detail-sheet{
  max-width:440px;
}
.finance-sub-detail-sheet .sheet-close{
  top:12px!important;
  right:12px!important;
  width:34px!important;
  height:34px!important;
  border:1px solid rgba(47,68,112,.14)!important;
  background:#fff!important;
  color:transparent!important;
  box-shadow:0 12px 26px rgba(47,68,112,.13)!important;
  font-size:0!important;
  line-height:1!important;
}
.finance-sub-detail-sheet .sheet-close:before,
.finance-sub-detail-sheet .sheet-close:after{
  position:absolute;
  top:50%;
  left:50%;
  width:12px;
  height:2px;
  border-radius:999px;
  background:var(--blue-deep);
  content:"";
  transform:translate(-50%,-50%) rotate(45deg);
}
.finance-sub-detail-sheet .sheet-close:after{
  transform:translate(-50%,-50%) rotate(-45deg);
}
.finance-sub-detail-sheet .sheet-title.with-actions{
  margin-bottom:18px;
  padding-bottom:18px;
}
.finance-sub-detail-modal .sheet-title.with-actions + .finance-sub-badge,
.finance-sub-detail-modal .sheet-title.with-actions + .finance-sub-explain,
.finance-sub-detail-modal .finance-sub-badge + .finance-sub-explain{
  margin-top:2px;
}
.finance-sub-detail-modal .finance-sub-explain{
  padding:11px 12px;
  border:1px solid rgba(102,127,255,.16);
  border-radius:15px;
  background:var(--blue-soft);
  color:var(--blue-deep);
  font-size:.78rem;
  font-weight:900;
  line-height:1.35;
}
.finance-sub-detail-modal .finance-sub-badge{
  width:max-content;
  margin-top:2px;
  padding:5px 9px;
  border:1px solid rgba(102,127,255,.24);
  border-radius:999px;
  background:var(--blue-soft);
  color:var(--blue-deep);
  font-size:.68rem;
  font-weight:950;
}
.finance-sub-detail-modal .finance-sub-compare-list{
  display:grid;
  gap:9px;
}
.finance-sub-detail-modal .finance-sub-result-list{
  display:grid;
  gap:9px;
  margin-top:2px;
}
.finance-sub-detail-modal .finance-sub-result-card{
  display:grid;
  gap:8px;
  padding:12px;
  border:1px solid rgba(102,127,255,.16);
  border-radius:17px;
  background:#fff;
  box-shadow:0 10px 22px rgba(41,61,102,.055);
}
.finance-sub-detail-modal .finance-sub-result-card header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding-bottom:2px;
}
.finance-sub-detail-modal .finance-sub-result-card header span{
  color:var(--blue);
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.finance-sub-detail-modal .finance-sub-result-card header strong{
  color:var(--muted);
  font-size:.68rem;
  font-weight:950;
}
.finance-sub-detail-modal .finance-sub-result-card p{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  margin:0;
  padding:8px 0;
  border-top:1px solid rgba(102,127,255,.10);
}
.finance-sub-detail-modal .finance-sub-result-card p:first-of-type{
  border-top:0;
}
.finance-sub-detail-modal .finance-sub-result-card p b{
  min-width:0;
  color:var(--blue-deep);
  font-size:.8rem;
  line-height:1.18;
}
.finance-sub-detail-modal .finance-sub-result-card p span{
  color:var(--text);
  font-size:.8rem;
  font-weight:900;
  line-height:1.18;
  text-align:right;
}
.finance-sub-detail-modal .finance-sub-result-card p.finance-sub-nutrition-row{
  grid-template-columns:1fr;
  align-items:start;
  gap:8px;
}
.finance-sub-detail-modal .finance-sub-result-card p.finance-sub-nutrition-row b{
  display:block;
}
.finance-sub-detail-modal .finance-sub-result-card p .finance-sub-nutrition-dots{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  width:100%;
  text-align:center;
}
.finance-sub-detail-modal .finance-sub-nutrition-dots i{
  display:grid;
  place-items:center;
  align-content:center;
  gap:2px;
  min-width:0;
  width:50px;
  height:50px;
  justify-self:center;
  padding:4px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:999px;
  background:#F5F7FC;
  color:#657086;
  font-style:normal;
  box-shadow:0 8px 18px rgba(41,61,102,.055);
}
.finance-sub-detail-modal .finance-sub-nutrition-dots i.plus{
  border-color:rgba(78,109,255,.28);
  background:#EAF0FF;
  color:#2F477F;
}
.finance-sub-detail-modal .finance-sub-nutrition-dots i.minus{
  border-color:rgba(255,102,118,.30);
  background:#FFF0F1;
  color:#A43A45;
}
.finance-sub-detail-modal .finance-sub-nutrition-dots b{
  color:inherit!important;
  font-size:.68rem!important;
  line-height:1!important;
  white-space:nowrap;
}
.finance-sub-detail-modal .finance-sub-nutrition-dots small{
  color:inherit;
  font-size:.48rem;
  font-weight:950;
  letter-spacing:.025em;
  line-height:1;
  opacity:.78;
  text-transform:uppercase;
}
.finance-sub-detail-modal .finance-sub-compare-card{
  display:grid;
  gap:9px;
  padding:11px;
  border:1px solid rgba(102,127,255,.16);
  border-radius:17px;
  background:#fff;
  box-shadow:0 10px 22px rgba(41,61,102,.055);
}
.finance-sub-detail-modal .finance-sub-compare-card header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.finance-sub-detail-modal .finance-sub-compare-card header span{
  color:var(--muted);
  font-size:.66rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.finance-sub-detail-modal .finance-sub-compare-card header strong{
  color:#25865d;
  font-size:.82rem;
  font-weight:950;
  text-align:right;
}
.finance-sub-detail-modal .finance-sub-compare-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.finance-sub-detail-modal .finance-sub-compare-grid.single{
  grid-template-columns:1fr;
}
.finance-sub-detail-modal .finance-sub-compare-grid p{
  display:grid;
  gap:4px;
  min-width:0;
  margin:0;
  padding:10px;
  border:1px solid rgba(102,127,255,.14);
  border-radius:14px;
  background:var(--surface-2);
}
.finance-sub-detail-modal .finance-sub-compare-grid small{
  color:var(--muted);
  font-size:.7rem;
  font-weight:950;
  line-height:1.4;
  text-transform:uppercase;
  white-space:normal;
  overflow-wrap:anywhere;
}
.finance-sub-detail-modal .finance-sub-compare-grid b{
  color:var(--blue-deep);
  font-size:1rem;
  line-height:1;
}
.finance-sub-detail-modal .finance-sub-compare-grid em{
  color:var(--text);
  font-size:.7rem;
  font-style:normal;
  font-weight:850;
  line-height:1.2;
}
.finance-sub-detail-modal .finance-sub-compare-card footer{
  display:block;
  padding-top:0;
  border-top:0;
  color:#25865d;
  font-size:.78rem;
  font-weight:950;
}
.finance-sub-detail-modal .finance-year-mini{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.finance-sub-detail-modal .finance-year-mini span,
.finance-sub-detail-modal .finance-sub-simple span,
.finance-sub-detail-modal .finance-sub-nutrients span{
  display:grid;
  gap:3px;
  min-width:0;
  padding:11px 10px;
  border:1px solid rgba(102,127,255,.16);
  border-radius:15px;
  background:#fff;
}
.finance-sub-detail-modal .finance-year-mini span:nth-child(3),
.finance-sub-detail-modal .finance-sub-simple span:first-child,
.finance-sub-detail-modal .finance-sub-nutrients.delta span.minus{
  border-color:rgba(255,159,113,.28);
  background:var(--peach-soft);
}
.finance-sub-detail-modal .finance-year-mini span:nth-child(4),
.finance-sub-detail-modal .finance-sub-simple span:last-child,
.finance-sub-detail-modal .finance-sub-nutrients.delta span.plus{
  border-color:rgba(118,185,142,.28);
  background:#F1FAF4;
}
.finance-sub-detail-modal .finance-year-impact span:nth-child(1),
.finance-sub-detail-modal .finance-sub-simple span:nth-child(2){
  border-color:rgba(102,127,255,.18);
  background:var(--blue-soft);
}
.finance-sub-detail-modal .finance-year-mini b,
.finance-sub-detail-modal .finance-sub-simple b,
.finance-sub-detail-modal .finance-sub-nutrients b{
  color:var(--blue-deep);
  font-size:.84rem;
  line-height:1.1;
}
.finance-sub-detail-modal .finance-year-mini small,
.finance-sub-detail-modal .finance-sub-simple small,
.finance-sub-detail-modal .finance-sub-nutrients small{
  color:var(--muted);
  font-size:.58rem;
  font-weight:950;
  line-height:1.05;
  text-transform:uppercase;
}
.finance-sub-detail-modal .finance-purchase-note{
  display:grid;
  gap:3px;
  padding:10px;
  border:1px solid rgba(102,127,255,.16);
  border-radius:15px;
  background:var(--surface-2);
}
.finance-sub-detail-modal .finance-purchase-note.yes{
  border-color:rgba(118,185,142,.26);
  background:#F1FAF4;
}
.finance-sub-detail-modal .finance-purchase-note.no{
  border-color:rgba(255,159,113,.28);
  background:var(--peach-soft);
}
.finance-sub-detail-modal .finance-purchase-note b{
  color:var(--blue-deep);
  font-size:.78rem;
}
.finance-sub-detail-modal .finance-purchase-note span{
  color:var(--text);
  font-size:.74rem;
  font-weight:800;
  line-height:1.35;
}
.finance-sub-detail-modal .finance-sub-simple,
.finance-sub-detail-modal .finance-sub-nutrients{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.finance-sub-detail-modal .finance-sub-nutrients{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.finance-sub-detail-modal .finance-sub-kicker{
  color:var(--blue);
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.finance-sub-detail-modal footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding-top:8px;
  border-top:1px solid var(--line-soft);
}
.finance-sub-detail-modal footer strong{
  color:#2F7650;
  font-size:.95rem;
}
.finance-sub-detail-modal footer .small{
  min-width:86px;
  border-color:var(--orange);
  background:var(--orange);
  color:#fff;
  box-shadow:0 10px 20px rgba(255,159,113,.22);
}
@media(max-width:520px){
  #financeSubstitutionPanel .finance-sub-flow-card{
    grid-template-columns:minmax(0,1fr);
    gap:12px;
  }
  #financeSubstitutionPanel .finance-sub-source-node{
    position:relative;
    top:auto;
    min-height:48px;
    padding:12px;
  }
  #financeSubstitutionPanel .finance-sub-swap-card{
    grid-template-columns:30px minmax(0,1fr);
    min-height:48px;
    padding:10px 12px;
  }
  #financeSubstitutionPanel .finance-swap-arrow{
    width:30px;
    height:30px;
    min-height:30px;
  }
}
.finance-replace-sheet{
  width:min(calc(100% - 28px),560px);
  max-height:min(88dvh,760px);
  margin-bottom:14px;
  border:1px solid rgba(102,127,255,.2);
  border-radius:30px;
  background:var(--app-bg);
}
.finance-replace-sheet .sheet-close{
  top:14px;
  right:14px;
}
.finance-replace-sheet .sheet-close{
  width:36px;
  height:36px;
  color:transparent!important;
  font-size:0!important;
}
.finance-replace-sheet .sheet-close:before,
.finance-replace-sheet .sheet-close:after{
  position:absolute;
  top:50%;
  left:50%;
  width:13px;
  height:2px;
  border-radius:999px;
  background:var(--blue-deep);
  content:"";
  transform:translate(-50%,-50%) rotate(45deg);
}
.finance-replace-sheet .sheet-close:after{
  transform:translate(-50%,-50%) rotate(-45deg);
}
.finance-replace-modal>.sheet-title{
  margin:-4px -2px 2px;
  padding:2px 52px 12px 0;
  border-bottom:1px solid var(--line);
}
.finance-replace-modal>.sheet-title h2{
  color:var(--blue-deep);
  font-size:1.14rem;
}
.finance-replace-modal .finance-sub-activation-note{margin:12px 0 0;padding:10px 12px;border:1px solid color-mix(in srgb,var(--blue) 28%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--blue-soft) 38%,var(--card));color:var(--text);font-size:.76rem;font-weight:700;letter-spacing:0;line-height:1.45;text-transform:none;overflow-wrap:anywhere}
.finance-replace-modal .finance-replace-impact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
.finance-replace-modal .finance-replace-impact-card{display:grid;align-content:start;gap:5px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:13px;background:var(--card);color:var(--ink);text-align:left}
.finance-replace-modal .finance-replace-impact-card>span{color:var(--muted);font-size:.7rem;font-weight:800;line-height:1.4;letter-spacing:0;text-transform:none;overflow-wrap:anywhere}
.finance-replace-modal .finance-replace-impact-card>b{color:var(--ink);font-size:.9rem;font-weight:900;line-height:1.4;overflow-wrap:anywhere}
.finance-replace-modal .finance-replace-impact-card>strong{color:var(--ink);font-size:.82rem;font-weight:850;line-height:1.4;overflow-wrap:anywhere}
.finance-replace-modal .finance-replace-impact-card>small{color:var(--muted);font-size:.72rem;font-weight:750;line-height:1.4;overflow-wrap:anywhere}
.finance-replace-modal .finance-replace-impact-card.saving{border-color:color-mix(in srgb,var(--green) 42%,var(--line));background:color-mix(in srgb,var(--green) 7%,var(--card))}
.finance-replace-modal .finance-replace-impact-card.increase{border-color:color-mix(in srgb,var(--red) 42%,var(--line));background:color-mix(in srgb,var(--red) 7%,var(--card))}
.finance-replace-modal .finance-replace-day-detail{min-width:0;background:var(--card)}
.finance-replace-modal .finance-replace-day-detail>header{flex-wrap:wrap;min-width:0;gap:5px 10px}
.finance-replace-modal .finance-replace-day-detail>header>div{min-width:0}
.finance-replace-modal .finance-replace-day-detail>header :is(b,strong,small){white-space:normal;overflow-wrap:anywhere}
.finance-replace-modal .finance-replace-meal-detail{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);overflow:clip}
.finance-replace-modal .finance-replace-meal-detail>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 9px;align-items:center;gap:8px;min-width:0;min-height:44px;padding:10px;list-style:none;cursor:pointer}
.finance-replace-modal .finance-replace-meal-detail>summary::-webkit-details-marker{display:none}
.finance-replace-modal .finance-replace-meal-detail>summary::after{width:6px;height:6px;border:solid var(--muted);border-width:0 2px 2px 0;transform:rotate(45deg);content:""}
.finance-replace-modal .finance-replace-meal-detail[open]>summary::after{transform:rotate(225deg)}
.finance-replace-modal .finance-replace-meal-detail>summary>b{min-width:0;color:var(--ink);font-size:.8rem;font-weight:850;line-height:1.4;overflow-wrap:anywhere}
.finance-replace-modal .finance-replace-meal-detail>summary>span{max-width:105px;color:var(--muted);font-size:.68rem;font-weight:750;line-height:1.4;text-align:right;overflow-wrap:anywhere}
.finance-replace-modal .finance-replace-meal-detail>summary:focus-visible{outline:2px solid var(--ink);outline-offset:-3px;border-radius:10px}
.finance-replace-modal .finance-replace-change-list{display:grid;min-width:0;padding:0 10px 5px}
.finance-replace-modal .finance-replace-change-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(74px,.65fr) minmax(74px,.65fr);align-items:baseline;gap:5px 10px;min-width:0;padding:9px 0;border-top:1px solid var(--line)}
.finance-replace-modal .finance-replace-change-row>b{min-width:0;color:var(--ink);font-size:.76rem;font-weight:800;line-height:1.4;overflow-wrap:anywhere}
.finance-replace-modal .finance-replace-change-row>:is(.before,.after){display:grid;gap:2px;min-width:0;color:var(--muted);font-size:.74rem;font-weight:650;line-height:1.45;text-align:right;overflow-wrap:anywhere}
.finance-replace-modal .finance-replace-change-row>:is(.before,.after)>small{color:var(--muted);font-size:.64rem;font-weight:650;letter-spacing:0;text-transform:none}
.finance-replace-modal .finance-replace-change-row>.after{color:var(--ink);font-weight:850}
@media(max-width:520px){
  .finance-replace-modal .finance-replace-change-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .finance-replace-modal .finance-replace-change-row>b{grid-column:1/-1}
  .finance-replace-modal .finance-replace-change-row>.before{text-align:left}
}
.finance-replace-scope,
.finance-replace-preview,
.finance-replace-day-detail,
.finance-replace-menu-card{
  box-shadow:var(--shadow-soft);
}
.finance-replace-scope{
  border-color:rgba(102,127,255,.18);
  border-radius:22px;
  background:#fff;
}
.finance-replace-preview{
  border-color:rgba(118,185,142,.24);
  border-radius:22px;
  background:linear-gradient(145deg,#fff,#F1FAF4);
}
.finance-replace-preview>header>b{
  color:#2F7650;
  font-size:1.48rem;
}
.finance-replace-day-preview div,
.finance-replace-day-detail,
.finance-replace-menu-card,
.finance-replace-macro-review span{
  border-radius:16px;
}
.finance-replace-modal>.primary.full{
  min-height:50px;
  background:var(--blue-deep);
  box-shadow:0 14px 26px rgba(41,61,102,.2);
}
@media(max-width:430px){
  #financeSubstitutionPanel .finance-substitution-intro{
    padding:16px;
  }
  #financeSubstitutionPanel .finance-substitution-intro>*{
    max-width:280px;
  }
  #financeSubstitutionPanel .finance-substitution-intro .primary{
    width:100%;
  }
  #financeSubstitutionPanel .finance-sub-current-card>header{
    grid-template-columns:1fr;
  }
  #financeSubstitutionPanel .finance-sub-current-card>header strong{
    grid-column:auto;
    grid-row:auto;
    justify-self:start;
  }
  #financeSubstitutionPanel .finance-cycle-mini>div:not(.finance-cycle-facts),
  #financeSubstitutionPanel .finance-year-mini,
  #financeSubstitutionPanel .finance-sub-simple{
    grid-template-columns:1fr;
  }
  #financeSubstitutionPanel .finance-sub-option-card{
    flex-basis:88%;
    min-width:258px;
  }
  #financeSubstitutionPanel .finance-sub-nutrients{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
.filter-actions{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:stretch;gap:8px;margin:0 0 9px}
.filter-actions #foodToggleAll{flex:1 1 210px;white-space:normal;line-height:1.15}
.filter-actions .food-add-inline{min-width:104px;background:var(--blue);color:#fff}
@media(max-width:430px){
  .filter-actions{grid-template-columns:auto minmax(0,1fr)}
  .filter-actions .food-add-inline{grid-column:2;grid-row:1;min-width:96px}
  .filter-actions #foodToggleAll{grid-column:1/-1}
}
.filter-toggle{display:flex;justify-content:space-between;gap:12px;min-width:116px}
.filter-toggle b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--blue-soft);color:var(--blue);font-size:1rem}
.finance-filter-box>.filter-toggle{width:100%}
.slot-tabs .slot-card b{font-size:.78rem}
[hidden]{display:none!important}
.meal-log-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.meal-log-actions button{min-height:48px}
.meal-log-toggle{border:1px solid var(--line);border-radius:999px;background:var(--meal-log-control-surface);color:var(--ink);font-size:.78rem;font-weight:900;line-height:1;text-align:center}
.meal-log-toggle.ate{border-color:rgba(47,118,80,.28);background:var(--meal-log-ate-surface);color:#2F7650}
.meal-log-toggle.skipped{border-color:rgba(231,109,114,.3);background:var(--meal-log-skipped-surface);color:var(--red)}
.meal-log-toggle.ate:not(.active),.meal-log-toggle.skipped:not(.active),.outside-review-actions .meal-status-tag.ate:not(.active),.outside-review-actions .meal-status-tag.skipped:not(.active){border-color:var(--line);background:var(--meal-log-control-surface);color:var(--ink);box-shadow:none}
.meal-log-toggle.ate.active{border-color:var(--green);background:var(--green);color:#fff;box-shadow:0 10px 22px rgba(47,118,80,.2)}
.meal-log-toggle.skipped.active{border-color:var(--red);background:var(--red);color:#fff;box-shadow:0 10px 22px rgba(214,69,80,.18)}
.meal-log-status-note{margin-top:8px;padding:8px 10px;border:1px solid var(--line);border-radius:14px;background:var(--meal-log-card-surface);text-align:center}
.meal-log-status-note.ate{border-color:rgba(47,118,80,.3);background:var(--meal-log-ate-surface);color:#2F7650}
.meal-log-status-note.skipped{border-color:rgba(231,109,114,.3);background:var(--meal-log-skipped-surface);color:var(--red)}
.meal-log-extra-suggestion{margin-top:12px}
@media(max-width:360px){.meal-log-actions{grid-template-columns:1fr}}

#modalBody{flex:1 1 auto;width:100%;max-width:100%;min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;overscroll-behavior-x:none;overscroll-behavior-y:contain}
#modalBody::-webkit-scrollbar{display:none}
.sheet-close{position:absolute;top:16px;right:14px;z-index:90;width:46px;height:46px}
.food-form-sheet{width:min(calc(100vw - 24px),620px);max-width:calc(100vw - 24px);max-height:min(88dvh,760px);overflow-x:hidden}
.food-form-sheet,.food-form-sheet #foodForm,.food-form-sheet fieldset,.food-form-sheet .grid2,.food-form-sheet .checks,.food-form-sheet .food-identity-row,.food-form-sheet .food-taxonomy-row,.food-form-sheet .reference-fields,.food-form-sheet .nutrition-facts-fields,.food-form-sheet .nutrition-facts-body{min-width:0;max-width:100%}
.food-form-sheet #foodForm,.food-form-sheet fieldset{width:100%;overflow:hidden}
.food-form-sheet .grid2{grid-template-columns:repeat(2,minmax(0,1fr))}
.food-form-sheet .meal-option b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.food-form-sheet .food-form-title{position:sticky;top:0;z-index:85;margin:-18px -16px 18px;padding:18px 58px 14px 16px;border-bottom:1px solid var(--line);border-radius:30px 30px 0 0;background:#fff;box-shadow:0 -30px 0 #fff,0 12px 24px rgba(41,61,102,.08)}
.food-form-sheet #foodForm{margin-top:0!important;padding-top:14px}
.food-form-sheet input,.food-form-sheet select,.food-form-sheet textarea{border-width:2px;border-color:#D5DDED;background:#fff}
.food-form-sheet input:focus,.food-form-sheet select:focus,.food-form-sheet textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(102,127,255,.16)}
.food-form-sheet fieldset{border-width:2px;border-color:#DCE3F1}
.food-form-sheet .upload-control{border-width:2px}
.food-form-sheet label{min-width:0}
.food-form-sheet input,.food-form-sheet select{display:block;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis}
.food-form-sheet label>span,.food-form-sheet legend{font-size:.6rem;letter-spacing:.055em;line-height:1.15}
.food-form-sheet input,.food-form-sheet select{min-height:42px;padding-right:9px;padding-left:9px;font-size:.82rem}
.food-identity-row{display:grid;grid-template-columns:74px minmax(0,1fr);gap:10px;align-items:end}
.food-identity-row .food-image-field{gap:6px;align-self:end}
.food-identity-row .food-image-field>span:first-child{display:none}
.food-identity-row .food-image-upload{display:grid;place-items:center;width:74px;height:50px;min-height:50px;padding:6px;border-style:solid;border-color:#D5DDED;background:var(--food-upload-preview-surface)}
.food-identity-row .food-image-upload-preview{width:42px;height:42px;border-radius:13px}
.food-identity-row .food-image-upload input{display:none}
.food-identity-row .food-name-field input{min-height:50px}
.food-taxonomy-row.grid2{grid-template-columns:minmax(0,1.18fr) minmax(0,.88fr) minmax(0,.78fr);align-items:end;gap:8px;overflow:hidden}
.food-taxonomy-row.grid2.subtype-hidden{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)}
.food-taxonomy-row.grid2.origin-hidden.subtype-hidden{grid-template-columns:minmax(0,1fr)}
.food-taxonomy-row.grid2.origin-hidden:not(.subtype-hidden){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.food-taxonomy-row label{overflow:hidden}
.food-taxonomy-row label>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.food-taxonomy-row select{max-width:100%;padding-right:24px;font-size:.74rem;line-height:1.15;white-space:nowrap}
.food-section-title{display:grid;gap:0;margin-top:0;padding:8px 2px 0;border-top:1px solid var(--line)}
.food-section-title h3{color:var(--blue-deep);font-size:.9rem;line-height:1.1}
.reference-measure-heading{display:flex;align-items:center;gap:7px;margin:0 0 -2px;color:var(--blue-deep);font-size:.64rem;font-weight:900;letter-spacing:.055em;text-transform:uppercase}
.reference-measure-heading .measurement-guide-button{width:19px;height:19px;min-height:19px;border-color:rgba(102,127,255,.35);background:var(--blue-soft);color:var(--blue);font-size:.68rem;box-shadow:none}
.reference-help-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:0 11px;border-radius:14px;background:var(--surface-2);color:var(--blue-deep);font-size:.68rem;font-weight:900;letter-spacing:.08em;text-align:left;text-transform:uppercase}.reference-help-toggle b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#fff;color:var(--blue);font-size:1rem;box-shadow:0 8px 18px rgba(41,61,102,.08)}.reference-fields.help-open .reference-help-toggle{background:var(--blue-soft)}.reference-help-body{display:grid;gap:6px;padding:4px 2px 0}.reference-help-body[hidden]{display:none}
.reference-fields .grid2.single-field{grid-template-columns:1fr}
.reference-fields .grid2.reference-measure-grid{grid-template-columns:minmax(52px,.56fr) minmax(132px,1.45fr) minmax(76px,.82fr) minmax(112px,1.22fr);gap:7px;align-items:end}
.reference-fields .grid2.reference-measure-grid.quantity-hidden{grid-template-columns:minmax(126px,1.35fr) minmax(62px,.65fr) minmax(112px,1.2fr)}
.reference-fields .reference-measure-grid label>span{font-size:.55rem;letter-spacing:.03em}
.reference-fields .reference-measure-grid input{text-align:center}
.reference-fields .reference-measure-grid select{font-size:.74rem}
.food-form-sheet .grid2 label:has(input[type="number"]) input{max-width:128px;text-align:center}
.food-form-sheet .nutrition-facts-body .grid2 label:has(input[type="number"]) input{max-width:118px}
.food-form-sheet .grid2 label:has(input[type="number"]) span{max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.food-form-sheet .nutrition-macro-grid{justify-items:center}
.food-form-sheet .nutrition-macro-grid label{width:min(128px,100%);justify-items:center}
.food-form-sheet .nutrition-macro-grid label>span{text-align:center}
.food-form-sheet .nutrition-macro-grid input{width:100%}
.food-form-sheet .nutrition-facts-toggle{letter-spacing:.01em;text-transform:none}
.food-form-sheet .nutrition-photo-card.compact{display:inline-grid;grid-template-columns:28px minmax(0,1fr);align-items:center;justify-self:start;width:auto;min-height:40px;padding:6px 12px 6px 7px;border:2px solid #F2C6A8;border-radius:15px;background:var(--food-photo-surface);color:var(--orange);box-shadow:none;text-align:left}
.food-form-sheet .nutrition-photo-card.compact b{overflow:hidden;color:var(--blue-deep);font-size:.76rem;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
.nutrition-photo-card .nutrition-photo-icon{display:grid;place-items:center;width:28px;height:28px;margin:0;border-radius:10px;background:var(--food-choice-surface);color:var(--orange);font-size:0;line-height:0}
.nutrition-photo-card .nutrition-photo-icon svg{display:block;width:16px;height:16px;fill:currentColor;transform:translateX(.2px)}
.food-card.custom-food-card{padding-right:13px}.food-delete-button{position:static;top:auto;right:auto;z-index:auto;width:36px;height:36px;flex:0 0 auto;font-size:.92rem}.food-card-actions{flex-wrap:wrap}
@media(max-width:430px){.day-nutrition-grid{gap:7px;padding:8px}.day-macro{padding:9px 7px}.day-macro:not(.planned-only) b{gap:2px}.day-macro:not(.planned-only) small{gap:2px}.day-macro b i{font-size:.76rem}.day-macro small i{font-size:.48rem;letter-spacing:0}.macro span,.day-macro small,.meal-goal{font-size:.6rem}}
#foodsScreen .food-card.custom-food-card{padding-right:13px}
#foodsScreen .food-card-actions{align-items:center;flex-wrap:wrap}
#foodsScreen .food-card-edit-actions{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto}
#foodsScreen .food-card-actions .food-delete-button{position:static;top:auto;right:auto;z-index:auto;width:36px;height:36px;flex:0 0 auto;margin-left:0;font-size:.92rem}
@media(max-width:430px){.day-nutrition-grid{gap:8px;padding:9px}.day-macro{padding:10px 8px}.day-macro:not(.planned-only) b{gap:4px}.day-macro:not(.planned-only) b i{font-size:.88rem;overflow-wrap:normal;white-space:nowrap}.day-macro:not(.planned-only) small{gap:2px}.day-macro:not(.planned-only) small i{font-size:.46rem;letter-spacing:0;line-height:1.05}.macro span,.day-macro small,.meal-goal{font-size:.6rem}}
@media(max-width:430px){.food-form-sheet{width:min(calc(100vw - 18px),420px)!important;max-width:calc(100vw - 18px)!important;max-height:88dvh;padding-right:12px;padding-left:12px}.food-form-sheet .food-form-title{margin-right:-12px;margin-left:-12px;padding-left:12px}.sheet-close{top:14px;right:12px;width:46px;height:46px}.sheet-title.with-actions{padding-right:58px}}
@media(max-width:430px){.food-form-sheet .food-identity-row{grid-template-columns:54px minmax(0,1fr)!important;gap:8px!important}.food-form-sheet .food-image-field{width:54px}.food-form-sheet .food-image-upload{width:54px;height:50px;grid-template-columns:44px!important;padding:4px}.food-form-sheet .food-image-upload-preview{width:44px;height:44px}.food-taxonomy-row.grid2,.food-taxonomy-row.grid2.subtype-hidden,.food-taxonomy-row.grid2.origin-hidden.subtype-hidden{grid-template-columns:1fr!important;gap:6px}.food-taxonomy-row.grid2.origin-hidden:not(.subtype-hidden){grid-template-columns:repeat(2,minmax(0,1fr))!important}.food-taxonomy-row select{min-height:44px;padding-right:20px;padding-left:8px;font-size:.78rem}.food-taxonomy-row label>span{font-size:.58rem;letter-spacing:.05em}.food-form-sheet .reference-fields .grid2,.food-form-sheet .nutrition-macro-grid,.food-form-sheet .nutrition-facts-body .grid2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.food-form-sheet .nutrition-macro-grid label,.food-form-sheet .nutrition-facts-body .grid2 label{width:100%!important;justify-items:stretch}.food-form-sheet .grid2 label:has(input[type="number"]) input,.food-form-sheet .nutrition-facts-body .grid2 label:has(input[type="number"]) input{max-width:100%}.food-form-sheet #foodForm fieldset:last-of-type .checks{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.food-form-sheet #foodForm fieldset:last-of-type .meal-option{min-height:48px;padding:8px 7px;font-size:.68rem}}
@media(max-width:350px){.food-form-sheet .reference-fields .grid2,.food-form-sheet .nutrition-macro-grid,.food-form-sheet .nutrition-facts-body .grid2,.food-form-sheet #foodForm fieldset:last-of-type .checks{grid-template-columns:1fr!important}}

.guided-food-bubble{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:7px;width:max-content;max-width:190px;min-height:42px;padding:5px 10px 5px 6px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text);scroll-snap-align:start;text-align:left}.guided-food-bubble .food-image{width:30px;height:30px;border-radius:50%}.guided-food-bubble b{display:block;overflow:hidden;max-width:128px;font-size:.7rem;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.guided-food-bubble i{position:absolute;top:-4px;right:-3px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--green);color:#fff;font-size:.65rem;font-style:normal}.guided-food-bubble.selected{border-color:var(--green);background:#eef9f2;color:var(--green)}.planning-ready-sheet{width:min(calc(100% - 28px),480px);margin-bottom:14px;border:1px solid var(--line);border-radius:28px}.planning-ready{display:grid;justify-items:center;gap:9px;padding:16px 4px 4px;text-align:center}.planning-ready-mark{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#e8f8ee;color:var(--green);font-size:1.8rem;font-weight:900}.planning-ready h2{padding:0;color:var(--blue-deep);font-size:1.18rem}.planning-ready>p:not(.eyebrow){max-width:390px;color:var(--muted);font-size:.8rem;line-height:1.5}.planning-ready button{margin-top:7px}.copilot-audit-sheet{width:min(calc(100% - 28px),520px)}.copilot-audit-modal{gap:10px;padding:17px 8px 5px}.copilot-audit-orb{display:grid;place-items:center;width:60px;height:60px;border:1px solid color-mix(in srgb,var(--orange) 28%,var(--line));border-radius:20px;background:radial-gradient(circle at 32% 24%,#ffe8c8 0 18%,#8ba0ff 55%,#f3a14f 100%);color:#fff;font-size:.86rem;font-weight:950;box-shadow:0 16px 32px rgba(41,61,102,.14)}.copilot-audit-modal .eyebrow{color:var(--orange)}.copilot-audit-modal h2{font-size:1.22rem;line-height:1.08}.copilot-audit-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:2px 0}.copilot-audit-chips span{min-height:28px;padding:7px 10px;border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line));border-radius:999px;background:var(--blue-soft);color:var(--blue-deep);font-size:.68rem;font-weight:950}.copilot-audit-card{display:grid;gap:4px;width:100%;padding:12px;border:1px solid color-mix(in srgb,var(--blue) 13%,var(--line));border-radius:18px;background:linear-gradient(145deg,#fff,color-mix(in srgb,var(--blue-soft) 34%,#fff));text-align:left}.copilot-audit-card b{color:var(--ink);font-size:.84rem}.copilot-audit-card span{color:var(--muted);font-size:.76rem;font-weight:850;line-height:1.38}.copilot-audit-note{max-width:420px!important;margin-top:0!important;color:var(--muted)!important;font-size:.77rem!important}.copilot-audit-actions{width:100%;margin-top:2px}.copilot-audit-actions button{min-height:48px;border-radius:17px}


.profile-person strong{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none}.meal-card .grow b,.meal-card .meal-items span{overflow:visible;max-width:none;text-overflow:clip;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none}.meal-card .meal-items span{line-height:1.3}.today-meal-list .grow span{display:block;overflow:visible;-webkit-line-clamp:unset}.plan-row-actions{align-items:center}.plan-row-actions button{min-width:0;white-space:normal;line-height:1.12}#planScreen .day-tabs{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:6px;border:1px solid var(--line);border-radius:22px;background:#fff}#planScreen .day-tabs button{min-height:34px;padding:0;border-radius:999px;font-size:.72rem;font-weight:900}#planScreen .day-tabs .active{border-color:var(--blue);background:linear-gradient(135deg,var(--blue),var(--green));color:#fff;box-shadow:0 8px 18px rgba(102,127,255,.22)}

/* Runtime performance */
.meal-card,.food-card,.cost-item,.recipe-card{content-visibility:auto;contain-intrinsic-size:auto 110px}
.meal-card,.food-card{cursor:pointer}
.food-card-main{width:100%;padding:0;background:transparent;color:inherit;text-align:left}
.guided-food-bubble{min-height:48px;padding:7px 12px 7px 7px}
.group-juice{--group:#f28c28}
.group-water{--group:#52a9ff}
.measurement-guide-overlay{align-items:center;padding:12px;overflow:hidden}
.measurement-guide-card.image-only{position:relative;display:grid;place-items:center;width:auto;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:hidden;padding:0;border:0;border-radius:24px;background:transparent;box-shadow:0 24px 58px rgba(41,61,102,.24)}
.measurement-guide-card.image-only img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 24px);object-fit:contain;border:1px solid var(--line);border-radius:24px;background:var(--cream)}
.measurement-guide-close{position:absolute;top:10px;right:10px;z-index:2;display:grid;place-items:center;width:42px;height:42px;min-height:42px;padding:0;border:1px solid rgba(41,61,102,.16);border-radius:50%;background:rgba(255,255,255,.92);color:var(--blue-deep);font-size:1.4rem;font-weight:900;line-height:1;box-shadow:0 12px 28px rgba(41,61,102,.18);backdrop-filter:blur(8px)}
.food-image-field{display:flex;align-items:center;gap:12px;width:max-content;max-width:100%}
.food-image-field>span:first-child{flex:0 0 auto}
.food-image-upload{position:relative;display:grid;grid-template-columns:1fr;width:72px;height:72px;min-height:72px;padding:0;border:1px solid var(--line);border-radius:22px;background:var(--food-upload-preview-surface);box-shadow:0 12px 26px rgba(41,61,102,.10)}
.food-image-upload:after{position:absolute;right:-5px;bottom:-5px;display:grid;place-items:center;width:25px;height:25px;border:2px solid #fff;border-radius:50%;background:var(--blue);color:#fff;font-size:.9rem;font-weight:900;content:"+";box-shadow:0 8px 16px rgba(41,61,102,.16)}
.food-image-upload:hover{border-color:var(--blue);transform:translateY(-1px)}
.food-image-upload .food-image-upload-preview{display:block;grid-row:auto;width:100%;height:100%;border:0;border-radius:inherit;background:var(--food-image-surface)}
.food-image-upload-preview img{display:block;width:100%;height:100%;object-fit:cover}
.food-image-upload i,.food-image-upload small{display:none}
.food-image-upload.has-image{border-style:solid;background:var(--food-upload-preview-surface)}

.home-nutrient-focus{
  display:grid;
  gap:10px;
  margin:0 0 20px;
  padding:14px 14px 18px;
  border:1px solid rgba(94,124,246,.12);
  border-radius:30px;
  background:linear-gradient(180deg,rgba(231,237,252,.78),rgba(242,246,255,.58));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 12px 30px rgba(47,68,112,.06);
  overflow:hidden;
}
.home-nutrient-focus .today-heading{
  margin:0;
  padding:10px 12px;
  border-radius:22px;
  background:rgba(223,231,248,.78);
}
.home-nutrient-focus .today-heading h3{
  color:var(--ink);
}
.home-carousel-context{
  justify-self:center;
  width:max-content;
  max-width:100%;
  margin:0 auto 2px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(223,231,248,.92);
  color:var(--blue-deep);
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.07em;
  text-align:center;
  text-transform:uppercase;
}

/* Horizontal carousel system */
[data-home-carousel]{
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
[data-home-carousel]::-webkit-scrollbar{
  display:none;
}
[data-home-carousel]>*{
  scroll-snap-align:center;
}
.carousel-dots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:10px;
  margin:5px 0 10px;
}
.carousel-dots button{
  width:5px;
  height:5px;
  min-height:5px;
  padding:0;
  border:0;
  border-radius:999px;
  background:color-mix(in srgb,var(--muted) 34%,transparent);
  box-shadow:none;
  opacity:.72;
  transition:width .2s ease,background .2s ease,opacity .2s ease;
}
.carousel-dots button.active{
  width:20px;
  background:var(--blue);
  opacity:1;
}
.home-carousel-shell{
  display:grid;
}
.home-macro-carousel .day-nutrition-grid{
  margin-bottom:0;
}
.home-macro-carousel .day-macro small{
  display:none!important;
}
.macro-static-legend{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  width:min(260px,72%);
  margin:8px auto 2px;
  color:var(--muted);
  font-size:.58rem;
  font-weight:900;
  letter-spacing:.06em;
  text-align:center;
  text-transform:uppercase;
}
.macro-static-legend span+span{
  border-left:1px solid var(--line);
}
.add-today-meal-button{
  margin-top:10px;
  min-height:48px;
  border:1px dashed rgba(94,124,246,.38);
  background:rgba(94,124,246,.05);
  color:var(--blue);
  box-shadow:none;
}
.import-plan-today-button{
  margin:8px 0 2px;
  min-height:44px;
  border:1px solid rgba(94,124,246,.18);
  background:linear-gradient(180deg,#fff,rgba(234,240,255,.72));
  color:var(--blue-deep);
  box-shadow:0 8px 20px rgba(47,68,112,.055);
}
@media(max-width:759px){
  .home-profile-summary,
  .day-nutrition-grid[data-home-carousel],
  .today-meal-list[data-home-carousel],
  .home-actions[data-home-carousel]{
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
  }
  .home-profile-summary{
    padding-bottom:8px;
  }
  .day-nutrition-grid[data-home-carousel]{
    gap:12px;
    margin:0 -14px;
    padding:0 14px 3px;
  }
  .day-nutrition-grid[data-home-carousel] .day-macro{
    flex:0 0 calc(100vw - 74px);
    width:calc(100vw - 74px);
    max-width:330px;
    min-height:96px;
  }
  .today-meal-list[data-home-carousel]{
    margin:16px -14px 0;
    padding:0 14px 4px;
  }
  .today-meal-list[data-home-carousel] .meal-card{
    flex:0 0 calc(100vw - 82px);
    width:calc(100vw - 82px);
    min-width:0;
    max-width:370px;
  }
  .home-actions[data-home-carousel]{
    margin:0 -14px;
    padding:0 14px 4px;
  }
  .home-actions[data-home-carousel] .action-card{
    flex:0 0 calc(100vw - 90px);
    width:calc(100vw - 90px);
    min-width:0;
    max-width:340px;
  }
  .home-actions[data-home-carousel]:after,
  .today-meal-list[data-home-carousel]:after,
  .day-nutrition-grid[data-home-carousel]:after{
    display:block;
    flex:0 0 16px;
    content:"";
  }
}
@media(min-width:760px){
  .carousel-dots{
    display:none;
  }
}

/* Lovable-inspired app surface */
:root{
  --app-bg:#F6F8FF;
  --surface-2:#F1F4FF;
  --surface-3:#EEF2FF;
  --line:#DDE5F4;
  --line-soft:rgba(41,61,102,.08);
  --ink:#07152F;
  --text:#33405C;
  --muted:#71809B;
  --faint:#B8C0D0;
  --blue:#5E7CF6;
  --blue-soft:#EAF0FF;
  --blue-deep:#243A72;
  --orange:#F8A84E;
  --green:#10A778;
  --red:#FF676D;
  --red-soft:#FFF0F2;
  --shadow:0 24px 54px rgba(47,68,112,.12);
  --shadow-soft:0 10px 26px rgba(47,68,112,.08);
  --radius-xl:32px;
  --radius-lg:24px;
  --radius-md:18px;
}
html,
body{
  background:var(--shell-desktop-bg);
}
.panel,
.profile-card,
.today-card,
.diary-card,
.meal-card,
.food-card,
.cost-item,
.recipe-card,
.chart-card,
.finance-detail-card,
.finance-info-block,
.recipe-builder,
.advanced-profile,
.reference-fields,
.nutrition-photo-card,
.finance-filter-box,
.select-card,
.ai-action-card,
.notify-permission,
.outside-inline-form{
  border-color:rgba(47,68,112,.10);
  border-radius:28px;
  background:#fff;
  box-shadow:0 10px 28px rgba(47,68,112,.075);
}
.panel{
  padding:16px;
}
.section-heading,
.action-title{
  margin:22px 4px 12px;
  color:var(--ink);
  font-size:1.34rem;
  font-weight:900;
  letter-spacing:-.02em;
}
.section-heading h2,
#foodsScreen .section-heading h2,
#planScreen .section-heading h2,
#platesScreen .section-heading h2{
  color:var(--ink);
  font-size:1.34rem;
  letter-spacing:-.02em;
}
.eyebrow,
label>span,
legend{
  color:var(--muted);
  font-size:.64rem;
  letter-spacing:.085em;
}
.primary{
  background:var(--blue);
  color:#fff;
  box-shadow:0 12px 26px rgba(94,124,246,.25);
}
.soft,
.ghost,
.chip,
.day-tabs button,
.segmented button,
.diary-series-controls button,
.home-tabs button{
  border-color:transparent;
  background:#fff;
  color:var(--text);
  box-shadow:0 8px 20px rgba(47,68,112,.06);
}
.day-tabs .active,
.chip.active,
.segmented .active,
.diary-series-controls .active,
.home-tabs .active{
  border-color:transparent;
  background:var(--blue);
  color:#fff;
  box-shadow:0 10px 24px rgba(94,124,246,.28);
}
.home-tabs{
  gap:0;
  margin:18px 0 20px;
  padding:5px;
  border-radius:999px;
  background:#EAF0FF;
}
.home-tabs button{
  min-height:40px;
  border:0;
  box-shadow:none;
}
.home-tabs .active{
  box-shadow:0 10px 20px rgba(94,124,246,.28);
}
.profile-card{
  padding:20px;
  border-color:transparent;
  background:transparent;
  box-shadow:none;
}
.home-profile-summary{
  grid-template-columns:72px repeat(3,minmax(132px,1fr));
  gap:12px;
  overflow-x:auto;
  margin:0 -4px;
  padding:0 4px 12px;
  border-bottom:0;
  scroll-snap-type:x proximity;
}
.profile-person{
  justify-items:start;
  grid-template-columns:82px minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:14px;
  align-items:center;
}
.profile-person .hero-avatar{
  grid-row:1/3;
  width:76px;
  height:76px;
  border:4px solid rgba(255,255,255,.88);
  background:linear-gradient(135deg,var(--blue),#8FA2FF);
  color:#fff;
  box-shadow:0 18px 34px rgba(94,124,246,.24),0 0 0 1px rgba(94,124,246,.12);
}
.profile-person:before{
  grid-column:2;
  color:var(--muted);
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  content:"Bem-vindo";
}
html[lang="en"] .profile-person:before{
  content:"Welcome";
}
.profile-person strong{
  grid-column:2;
  color:var(--ink);
  font-size:.95rem;
  text-align:left;
}
.profile-main-stat{
  min-height:100px;
  align-content:center;
  justify-items:start;
  padding:17px 18px;
  border:1px solid rgba(47,68,112,.10);
  border-radius:28px;
  background:#fff;
  box-shadow:0 10px 26px rgba(47,68,112,.075);
  scroll-snap-align:start;
}
.profile-main-stat b{
  color:var(--ink);
  font-size:1.55rem;
  letter-spacing:-.04em;
}
.profile-main-stat span{
  color:var(--muted);
  font-size:.78rem;
}
.profile-main-stat small{
  order:-1;
  margin:0 0 8px;
  color:var(--muted);
  font-size:.67rem;
  letter-spacing:.09em;
}
.profile-goal-row{
  gap:12px;
  padding-top:16px;
}
.profile-goal-row div,
.profile-goal-row button{
  display:grid;
  gap:4px;
  min-height:64px;
  padding:14px 16px;
  border:1px solid rgba(47,68,112,.10);
  border-radius:24px;
  background:#fff;
  color:inherit;
  text-align:left;
  box-shadow:0 8px 22px rgba(47,68,112,.06);
}
.profile-goal-row button{
  appearance:none;
  cursor:pointer;
}
.profile-goal-row button:focus-visible{
  outline:2px solid color-mix(in srgb,var(--blue) 55%,transparent);
  outline-offset:3px;
}
.home-activity-card{
  position:relative;
  overflow:hidden;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.home-activity-card:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--blue) 30%,rgba(47,68,112,.10));
}
.home-activity-card b{
  padding-right:30px;
}
.home-activity-affordance{
  position:absolute;
  right:11px;
  top:50%;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  line-height:1;
  border:1px solid color-mix(in srgb,var(--blue) 18%,transparent);
  border-radius:999px;
  background:linear-gradient(145deg,color-mix(in srgb,var(--blue) 10%,#fff),#fff);
  color:var(--blue);
  box-shadow:0 8px 18px rgba(94,124,246,.12);
}
.home-activity-affordance svg{
  width:13px;
  height:13px;
}
.home-activity-card.is-overridden{
  border-color:color-mix(in srgb,var(--green) 34%,rgba(47,68,112,.10));
  background:linear-gradient(145deg,color-mix(in srgb,var(--green) 9%,#fff),#fff);
}
.profile-goal-row b{
  color:#008A62;
}
.profile-health-grid{
  gap:10px;
}
.profile-health-grid div{
  border-color:rgba(47,68,112,.10);
  border-radius:24px;
  background:#fff;
  box-shadow:0 8px 22px rgba(47,68,112,.06);
}
.today-card{
  padding:0 4px;
  border:0;
  background:transparent;
  box-shadow:none;
}
.today-heading{
  margin:0 0 14px;
  padding:0 1px;
}
.nutrient-heading h3,
.today-heading h3{
  color:var(--ink);
  font-size:1.34rem;
  letter-spacing:-.02em;
}
.day-nutrition-grid,
.macro-grid.day-nutrition-grid,
.diary-macros,
.macro-grid{
  gap:10px;
}
.day-nutrition-grid{
  padding:0;
  border:0;
  background:transparent;
}
.macro,
.day-macro,
.diary-point-card div,
.log-summary div,
.diary-stats div,
.finance-cycle-values>div,
.leftover-grid span{
  min-height:82px;
  border-color:rgba(47,68,112,.10);
  border-radius:28px;
  background:#fff;
  box-shadow:0 10px 26px rgba(47,68,112,.07);
}
.day-macro:before{
  display:none;
}
.macro b,
.day-macro b,
.diary-point-card b{
  color:var(--ink);
  font-size:1.04rem;
  letter-spacing:-.02em;
}
.day-macro b i{
  font-size:.98rem;
}
.macro span,
.day-macro small,
.meal-goal{
  color:var(--muted);
  font-size:.6rem;
  letter-spacing:.06em;
}
.progress{
  height:6px;
  background:#E9EEF9;
}
.progress i{
  background:var(--blue);
}
.today-meal-list{
  display:flex;
  gap:12px;
  margin:16px -4px 0;
  padding:0 4px 6px;
  overflow-x:auto;
  scroll-snap-type:x proximity;
}
.today-meal-list .meal-card{
  width:min(86vw,368px);
  min-width:min(86vw,368px);
  min-height:244px;
  padding:16px;
  border-radius:28px;
  scroll-snap-align:start;
}
.meal-card{
  border-color:rgba(47,68,112,.10);
  background:#fff;
}
.meal-icon,
.food-image{
  width:44px;
  height:44px;
  border:0;
  border-radius:18px;
  background:var(--blue-soft);
  color:var(--blue-deep);
}
.food-image.custom-food-icon{
  position:relative;
  border:1px solid rgba(118,185,142,.28);
  background:#E9F8EF;
  color:var(--green);
  font-size:0;
  font-weight:950;
  line-height:1;
}
.food-image.custom-food-icon:before{
  content:"";
  width:25px;
  height:25px;
  background:currentColor;
  -webkit-mask:url("/assets/features/foods-spices.svg") center/contain no-repeat;
  mask:url("/assets/features/foods-spices.svg") center/contain no-repeat;
}
.food-image.custom-food-icon:after{
  position:absolute;
  right:3px;
  bottom:3px;
  display:grid;
  place-items:center;
  width:15px;
  height:15px;
  border:2px solid #E9F8EF;
  border-radius:50%;
  background:var(--green);
  color:#fff;
  font-size:.72rem;
  font-weight:950;
  line-height:1;
  content:"+";
}
.meal-card .meal-open{
  padding-right:42px;
}
.grow b{
  color:var(--ink);
  font-size:.96rem;
}
.grow span{
  color:var(--muted);
}
.meal-card .meal-actions{
  padding-left:0;
}
.today-meal-list .meal-actions{
  padding-left:0;
}
.meal-status-tag,
.today-meal-list .meal-actions .meal-status-tag{
  width:100%;
  min-height:40px;
  border:0;
  border-radius:999px;
  background:var(--blue);
  color:#fff;
  box-shadow:0 10px 24px rgba(94,124,246,.25);
}
.meal-status-tag.ate{
  background:var(--green);
  color:#fff;
}
.meal-status-tag.skipped{
  background:var(--red);
  color:#fff;
}
.meal-card>.meal-remove-button,
.food-delete-button,
.remove-button{
  background:var(--red-soft);
  color:var(--red);
  box-shadow:none;
}
.meal-items{
  gap:7px;
  padding-top:2px;
  border-top:0;
}
.meal-items span{
  position:relative;
  padding-left:12px;
}
.meal-items span:before{
  position:absolute;
  top:.7em;
  left:0;
  width:4px;
  height:4px;
  border-radius:50%;
  background:rgba(94,124,246,.55);
  content:"";
}
.meal-card .meal-items .filling-lines{
  gap:3px;
  margin:-2px 0 1px 18px;
}
.meal-card .meal-items .filling-line{
  display:inline-flex;
  align-items:center;
  width:fit-content;
  max-width:calc(100% - 10px);
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.meal-card .meal-items .filling-line span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-width:0;
  padding:0;
  color:color-mix(in srgb,var(--muted) 86%,var(--orange));
  font-size:.68rem;
  font-weight:800;
  line-height:1.25;
}
.meal-card .meal-items .filling-line span:before{
  position:static;
  flex:0 0 auto;
  width:5px;
  height:5px;
  border-radius:50%;
  background:rgba(242,160,74,.58);
  content:"";
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-card .meal-items .filling-line{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-card .meal-items .filling-line span{
  color:#aebcff!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-card .meal-items .filling-line span:before{
  background:rgba(255,178,127,.62)!important;
}
.home-plan-modes,
.home-actions{
  display:flex;
  gap:12px;
  overflow-x:auto;
  margin:0 -4px;
  padding:0 4px 8px;
  scroll-snap-type:x proximity;
}
.home-plan-modes.hidden{
  display:none!important;
}
.home-actions.stack{
  display:flex;
}
.action-card{
  grid-template-columns:44px minmax(0,1fr) 22px;
  align-content:center;
  width:min(78vw,326px);
  min-width:min(78vw,326px);
  min-height:132px;
  padding:16px;
  border-color:rgba(47,68,112,.10);
  border-radius:28px;
  background:#fff;
  color:var(--ink);
  box-shadow:0 10px 28px rgba(47,68,112,.075);
  scroll-snap-align:start;
}
.action-card[data-go="plan"],
.action-card[data-go="finance"],
.action-card[data-go="plates"],
.action-card[data-go="foods"]{
  grid-column:auto;
  border-color:rgba(47,68,112,.10);
  background:#fff;
  color:var(--ink);
}
.action-icon{
  width:44px;
  height:44px;
  border-radius:18px;
  background:#DDFBEF;
  color:#008A62;
}
.action-card[data-go="finance"] .action-icon{
  background:#FFF3C9;
  color:#E39200;
}
.action-card[data-go="plates"] .action-icon{
  background:#FFECEF;
  color:#C95864;
}
.action-card[data-go="foods"] .action-icon{
  background:#FFECEF;
  color:#D65460;
}
.action-card strong{
  color:var(--ink);
  font-size:.98rem;
}
.action-card small{
  color:var(--muted);
  font-size:.73rem;
  font-weight:700;
  opacity:1;
}
.action-card>i{
  background:transparent;
  color:var(--muted);
}
.bottom-nav .nav-feature-icon{
  position:relative;
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:10px;
  color:currentColor;
  font-size:0;
  line-height:1;
}
.bottom-nav .nav-feature-icon:before{
  content:"";
  display:block;
  width:28px;
  height:28px;
  background:currentColor;
  -webkit-mask:var(--nav-feature-icon) center/contain no-repeat;
  mask:var(--nav-feature-icon) center/contain no-repeat;
}
.bottom-nav .nav-feature-icon.home{
  --nav-feature-icon:url("/assets/features/infinity.svg");
}
.bottom-nav .nav-feature-icon.plan{
  --nav-feature-icon:url("/assets/features/planning-monk.svg");
}
.bottom-nav .nav-feature-icon.foods{
  --nav-feature-icon:url("/assets/features/foods-spices.svg");
}
.bottom-nav .nav-feature-icon.finance{
  --nav-feature-icon:url("/assets/features/economy-daruma-nav-mask.png");
}
.bottom-nav .nav-feature-icon.finance:before{width:24px;height:24px}
.bottom-nav .nav-feature-icon.plates{
  --nav-feature-icon:url("/assets/features/recipes-poke.svg");
}
#foodsScreen .food-card,
.cost-item,
#platesScreen .recipe-card{
  border-color:rgba(47,68,112,.10);
  border-radius:28px;
  box-shadow:0 10px 28px rgba(47,68,112,.07);
}
input,
select,
textarea,
.search,
.picker-search,
label.search{
  border-color:rgba(47,68,112,.12);
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 20px rgba(47,68,112,.045);
}
input:focus,
select:focus,
textarea:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 4px rgba(94,124,246,.16);
}
@media(min-width:760px){
  :root{--app-width:980px}
  .app{
    border-radius:0;
    box-shadow:0 0 0 1px rgba(255,255,255,.35);
  }
  .home-profile-summary{
    grid-template-columns:72px repeat(3,minmax(150px,1fr));
  }
  .home-actions,
  .home-plan-modes{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    overflow:visible;
  }
  .home-actions.stack{
    display:grid;
  }
  .home-plan-modes{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .action-card{
    width:auto;
    min-width:0;
  }
  .today-meal-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    overflow:visible;
  }
  .today-meal-list .meal-card{
    width:auto;
    min-width:0;
  }
}
@media(max-width:430px){
  .screens{
    padding:12px 14px 68px;
  }
  .app-top{
    min-height:54px;
    padding:8px 14px;
  }
  .profile-card{
    padding:16px 0 10px;
  }
  .home-profile-summary{
    grid-template-columns:72px repeat(3,176px);
  }
  .profile-main-stat{
    min-height:100px;
  }
  .profile-goal-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .profile-health-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .macro-grid,
  .day-nutrition-grid,
  .diary-macros{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .day-macro{
    min-height:100px;
    padding:14px 12px;
  }
  .today-meal-list{
    margin-right:-14px;
  }
  .today-meal-list .meal-card{
    min-width:calc(100vw - 88px);
    width:calc(100vw - 88px);
  }
  .action-card{
    min-width:calc(100vw - 90px);
    width:calc(100vw - 90px);
  }
  .bottom-nav{
    width:calc(100% - 24px);
  }
}

/* Carousel final overrides */
@media(max-width:759px){
  .day-nutrition-grid[data-home-carousel],
  .today-meal-list[data-home-carousel],
  .home-actions[data-home-carousel]{
    display:flex!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .day-nutrition-grid[data-home-carousel]::-webkit-scrollbar,
  .today-meal-list[data-home-carousel]::-webkit-scrollbar,
  .home-actions[data-home-carousel]::-webkit-scrollbar{
    display:none;
  }
  .day-nutrition-grid[data-home-carousel] .day-macro{
    flex:0 0 calc(100vw - 74px)!important;
    width:calc(100vw - 74px)!important;
    max-width:330px;
  }
  .plan-nutrient-carousel.day-nutrition-grid[data-home-carousel]{
    gap:10px;
    margin:6px -2px 0;
    padding:0 10px 4px;
    border:0;
    background:transparent;
  }
  .plan-nutrient-carousel.day-nutrition-grid[data-home-carousel] .day-macro{
    flex:0 0 min(248px,72vw)!important;
    width:min(248px,72vw)!important;
    max-width:248px;
    min-height:94px;
  }
  .today-meal-list[data-home-carousel] .meal-card{
    flex:0 0 calc(100vw - 82px)!important;
    width:calc(100vw - 82px)!important;
    max-width:370px;
  }
  .home-actions[data-home-carousel] .action-card{
    flex:0 0 calc(100vw - 90px)!important;
    width:calc(100vw - 90px)!important;
    max-width:340px;
  }
  .home-carousel-shell .day-macro small{
    display:none!important;
  }
  .home-macro-carousel{
    margin-top:12px;
  }
  .home-macro-carousel .day-nutrition-grid[data-home-carousel]{
    margin-right:-14px;
    margin-left:0;
    padding-right:14px;
    padding-left:0;
  }
  .home-macro-carousel .carousel-dots{
    margin-top:6px;
    margin-bottom:28px;
  }
  .macro-static-legend{
    width:min(272px,78%);
    margin-top:10px;
  }
  .today-meal-list[data-home-carousel]{
    margin-top:20px;
  }
  .add-today-meal-button{
    margin-top:16px;
  }
  .ai-fab{
    right:max(14px,calc((100vw - var(--app-width))/2 + 14px));
    bottom:calc(88px + var(--safe-bottom));
    width:54px;
    height:54px;
    opacity:.96;
  }
  .ai-fab img{
    width:36px;
    height:36px;
  }
  .home-nutrient-focus{
    min-height:0;
    margin:0 -2px 22px;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent!important;
    box-shadow:none!important;
  }
  .home-nutrient-focus .today-heading{
    margin:0;
    padding:10px 12px;
    border-radius:22px;
    background:rgba(216,226,246,.86);
  }
  .home-nutrient-focus .home-macro-carousel{
    margin-top:0;
  }
  .home-carousel-context{
    margin-bottom:4px;
    background:rgba(216,226,246,.96);
  }
}

/* Final nutrient carousel polish */
.home-nutrient-focus{
  gap:8px;
  border:0;
  border-radius:0;
  background:transparent!important;
  box-shadow:none!important;
}
.home-nutrient-focus .home-macro-carousel{
  min-height:134px;
}
.home-nutrient-focus .macro-static-legend{
  display:none;
}
.home-nutrient-focus .home-carousel-context{
  align-self:flex-start;
  width:max-content;
  max-width:100%;
  padding:5px 12px;
  font-size:.68rem;
  line-height:1.1;
}
.home-nutrient-focus .nutrient-heading{
  margin-bottom:8px;
}
.home-nutrient-focus .today-heading h3{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:auto;
  max-width:100%;
  color:var(--blue-deep)!important;
  font-size:1.08rem!important;
  font-weight:900!important;
  letter-spacing:-.015em!important;
  line-height:1.12!important;
  white-space:normal!important;
}
.home-nutrient-focus .today-heading h3:after{
  display:block;
  width:42px;
  height:2px;
  flex:0 0 auto;
  border-radius:999px;
  background:linear-gradient(90deg,var(--orange),rgba(102,127,255,.18));
  content:"";
}
.home-macro-carousel .day-macro{
  position:relative;
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr);
  grid-template-rows:auto auto auto;
  align-items:center;
  column-gap:13px;
  min-height:96px!important;
  padding:13px 15px!important;
  border:1px solid rgba(209,218,237,.58)!important;
  border-radius:23px!important;
  background:linear-gradient(180deg,#fff 0%,rgba(255,255,255,.92) 100%)!important;
  box-shadow:0 12px 28px rgba(38,59,100,.07),inset 0 1px 0 rgba(255,255,255,.9)!important;
}
.home-macro-carousel .day-macro:before{
  content:"";
  position:static;
  display:block!important;
  grid-column:1;
  grid-row:1 / 4;
  width:48px;
  height:48px;
  border:5px solid var(--macro-ring,#edf2fc);
  border-radius:999px;
  background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.88),var(--macro-soft,rgba(237,242,252,.42)));
  box-sizing:border-box;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.72),0 8px 18px var(--macro-glow,rgba(38,59,100,.04));
}
.home-macro-carousel .day-macro span{
  grid-column:2;
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  margin:0;
  overflow:hidden;
  color:#6e7893;
  font-size:.68rem!important;
  font-weight:800;
  letter-spacing:.07em;
  line-height:1.1;
  text-transform:uppercase;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.home-macro-carousel .day-macro span:before{
  content:"";
  display:block;
  flex:0 0 14px;
  width:14px;
  height:14px;
  background:currentColor;
  opacity:.78;
  -webkit-mask:var(--macro-icon) center/contain no-repeat;
  mask:var(--macro-icon) center/contain no-repeat;
}
.home-macro-carousel .macro-kcal{--macro-icon:url("/assets/icons/macro-kcal.svg");--macro-soft:#fff4df;--macro-ring:#f2e3c8;--macro-glow:rgba(214,148,77,.08)}
.home-macro-carousel .macro-protein{--macro-icon:url("/assets/icons/macro-protein.svg");--macro-soft:#edf3ff;--macro-ring:#d9e5fb;--macro-glow:rgba(74,106,185,.08)}
.home-macro-carousel .macro-carbs{--macro-icon:url("/assets/icons/macro-carbs.svg");--macro-soft:#edf8f0;--macro-ring:#d9eddc;--macro-glow:rgba(72,146,95,.08)}
.home-macro-carousel .macro-fats{--macro-icon:url("/assets/icons/macro-fats.svg");--macro-soft:#fff0e8;--macro-ring:#f3ddcf;--macro-glow:rgba(223,137,93,.08)}
.macro-micro{--macro-icon:url("/assets/icons/micro-default.svg");--macro-soft:#eef3ff;--macro-ring:#dce5ff;--macro-ring-bg:#eef3ff;--macro-glow:rgba(93,116,220,.08)}
.macro-micro.micro-nutrient-iron{--macro-icon:url("/assets/icons/micro-iron.svg");--macro-soft:#fff0e8;--macro-ring:#f2c6ae;--macro-ring-bg:#fff1e9;--macro-glow:rgba(213,116,72,.1)}
.macro-micro.micro-nutrient-zinc{--macro-icon:url("/assets/icons/micro-zinc.svg");--macro-soft:#edf3ff;--macro-ring:#b8c8f4;--macro-ring-bg:#edf3ff;--macro-glow:rgba(83,108,184,.1)}
.macro-micro.micro-nutrient-vitamin-d{--macro-icon:url("/assets/icons/micro-vitamin-d.svg");--macro-soft:#fff5dc;--macro-ring:#f4d58d;--macro-ring-bg:#fff5dc;--macro-glow:rgba(224,155,46,.1)}
.macro-micro.micro-nutrient-vitamin-b12{--macro-icon:url("/assets/icons/micro-vitamin-b12.svg");--macro-soft:#f0edff;--macro-ring:#c8bdff;--macro-ring-bg:#f0edff;--macro-glow:rgba(118,92,214,.1)}
.macro-micro.micro-nutrient-calcium{--macro-icon:url("/assets/icons/micro-calcium.svg");--macro-soft:#f3f7ff;--macro-ring:#cfdaf3;--macro-ring-bg:#f3f7ff;--macro-glow:rgba(93,114,162,.09)}
.macro-micro.micro-nutrient-magnesium{--macro-icon:url("/assets/icons/micro-magnesium.svg");--macro-soft:#eff9f0;--macro-ring:#bfe4c4;--macro-ring-bg:#eff9f0;--macro-glow:rgba(67,141,86,.1)}
.macro-micro.micro-nutrient-potassium{--macro-icon:url("/assets/icons/micro-potassium.svg");--macro-soft:#eef7ff;--macro-ring:#b8dff3;--macro-ring-bg:#eef7ff;--macro-glow:rgba(61,142,184,.1)}
.macro-micro.micro-nutrient-fiber{--macro-icon:url("/assets/icons/micro-fiber.svg");--macro-soft:#edf8f0;--macro-ring:#bee4c5;--macro-ring-bg:#edf8f0;--macro-glow:rgba(73,147,92,.1)}
.macro-micro.micro-nutrient-vitamin-c{--macro-icon:url("/assets/icons/micro-vitamin-c.svg");--macro-soft:#fff1e5;--macro-ring:#ffcaa7;--macro-ring-bg:#fff1e5;--macro-glow:rgba(221,132,55,.1)}
.macro-micro.micro-nutrient-vitamin-a{--macro-icon:url("/assets/icons/micro-vitamin-a.svg");--macro-soft:#f4efff;--macro-ring:#d7c2ff;--macro-ring-bg:#f4efff;--macro-glow:rgba(132,93,211,.1)}
.macro-micro.micro-nutrient-sodium{--macro-icon:url("/assets/icons/micro-sodium.svg");--macro-soft:#eef8ff;--macro-ring:#bce1f2;--macro-ring-bg:#eef8ff;--macro-glow:rgba(75,150,190,.1)}
.home-macro-carousel .day-macro b{
  grid-column:2;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:baseline;
  gap:0;
  margin:6px 0 0;
  min-width:0;
}
.home-macro-carousel .day-macro b i{
  border:0!important;
  padding:0 9px!important;
  color:#111a32;
  font-style:normal;
  line-height:1.05;
  text-align:center;
}
.home-macro-carousel .day-macro b i:nth-child(1){
  padding-left:0!important;
  font-size:1.38rem;
  font-weight:900;
}
.home-macro-carousel .day-macro b i:nth-child(2){
  border-left:1px solid #dce4f2!important;
  color:#324057;
  font-size:.88rem;
  font-weight:900;
}
.home-macro-carousel .day-macro b i:nth-child(3){
  border-left:1px solid #dce4f2!important;
  color:#324057;
  font-size:.88rem;
  font-weight:900;
}
.home-macro-carousel .day-macro small{
  grid-column:2;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin:6px 0 0;
  color:#8b93a8;
  font-size:.52rem;
  font-weight:900;
  letter-spacing:.055em;
  line-height:1.05;
  text-transform:uppercase;
}
.home-macro-carousel .day-macro small i{
  border:0!important;
  padding:0 9px!important;
  color:inherit;
  font-size:inherit;
  text-align:center;
}
.home-macro-carousel .day-macro small i:first-child{
  padding-left:0!important;
}
.home-macro-carousel .day-macro small i+i{
  border-left:1px solid #dce4f2!important;
}
.home-macro-carousel .day-macro .progress{
  grid-column:2;
  height:4px;
  margin-top:7px;
  border-radius:999px;
  background:#edf2fb;
}
.home-macro-carousel .day-macro .progress i{
  border-radius:999px;
}

@media(max-width:759px){
  .home-nutrient-focus{
    min-height:0;
    padding:0;
    border-width:0;
  }
  .home-nutrient-focus .today-heading{
    min-height:auto;
    padding:2px 2px 0;
    background:transparent!important;
    box-shadow:none;
  }
  .home-nutrient-focus .today-heading .eyebrow{
    margin-bottom:2px;
    font-size:.62rem;
  }
  .home-nutrient-focus .today-heading h3{
    font-size:1.2rem;
    line-height:1.08;
  }
  .home-macro-carousel{
    margin-top:0;
  }
  .home-nutrient-focus .home-carousel-context{
    margin:0 auto 4px;
    padding:0;
    border:0;
    background:transparent!important;
    box-shadow:none;
    color:#253765;
    letter-spacing:.08em;
  }
  .home-macro-carousel .day-nutrition-grid[data-home-carousel]{
    gap:10px;
    padding-bottom:2px;
  }
  .day-nutrition-grid[data-home-carousel] .day-macro{
    flex-basis:calc(100vw - 106px)!important;
    width:calc(100vw - 106px)!important;
    max-width:314px;
  }
  .home-macro-carousel .day-macro{
    grid-template-columns:50px minmax(0,1fr);
    column-gap:11px;
    min-height:92px!important;
    padding:12px 14px!important;
  }
  .home-macro-carousel .day-macro:before{
    width:46px;
    height:46px;
    border-width:5px;
  }
  .home-macro-carousel .day-macro b i:nth-child(1){
    font-size:1.28rem;
  }
  .home-macro-carousel .carousel-dots{
    margin-top:3px;
    margin-bottom:0;
  }
  .today-meal-list[data-home-carousel]{
    margin-top:12px;
  }
}

.meal-icon:before,
.meal-picker-title-icon:before{
  content:"";
  display:block;
  width:22px;
  height:22px;
  flex:0 0 auto;
  background-color:transparent;
  background-image:var(--meal-icon);
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
}
.meal-icon-breakfast{--meal-icon:url("/assets/meals/breakfast.svg?v=agora-diario-20261118-2");}
.meal-icon-morning{--meal-icon:url("/assets/meals/morning.svg?v=agora-diario-20261118-2");}
.meal-icon-lunch{--meal-icon:url("/assets/meals/lunch.svg?v=agora-diario-20261118-2");}
.meal-icon-afternoon{--meal-icon:url("/assets/meals/afternoon.svg?v=agora-diario-20261118-2");}
.meal-icon-preworkout{--meal-icon:url("/assets/meals/preworkout.svg?v=agora-diario-20261118-2");}
.meal-icon-postworkout{--meal-icon:url("/assets/meals/postworkout.svg?v=agora-diario-20261118-2");}
.meal-icon-dinner{--meal-icon:url("/assets/meals/dinner.svg?v=agora-diario-20261118-2");}
.meal-icon-supper{--meal-icon:url("/assets/meals/supper.svg?v=agora-diario-20261118-2");}
.meal-icon-snack{--meal-icon:url("/assets/meals/snack.svg?v=agora-diario-20261118-2");}
.today-meal-list .meal-icon{
  border-width:1px;
  border-radius:18px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
.meal-card>.meal-remove-button{
  box-shadow:none;
}
.meal-status-tag,
.meal-actions .soft,
.add-today-meal-button{
  border-width:1px;
  box-shadow:none;
}
.today-meal-list .meal-card{
  min-height:236px;
  padding:16px;
}
.today-meal-list .meal-head{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.today-meal-list .meal-open{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  align-items:center;
  gap:11px;
  padding-right:42px;
}
.today-meal-list .meal-open .grow{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.today-meal-list .meal-open .meal-goal{
  order:0;
  margin:0 0 3px;
  color:#7e879a;
  font-size:.6rem;
  letter-spacing:.075em;
  line-height:1.05;
}
.today-meal-list .meal-open .grow b{
  order:1;
  font-size:1rem;
  line-height:1.08;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.meal-macro-strip{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  width:100%;
  margin:0;
  padding:11px 12px;
  border-radius:22px;
  background:#f3f6fd;
  color:var(--ink);
}
.meal-macro-strip i{
  display:grid;
  justify-items:center;
  gap:2px;
  min-width:0;
  font-style:normal;
}
.meal-macro-strip b{
  color:var(--ink);
  font-size:.86rem;
  font-weight:900;
  line-height:1;
}
.meal-macro-strip small{
  color:#6f7890;
  font-size:.54rem;
  font-weight:800;
  letter-spacing:.04em;
  line-height:1;
  text-transform:uppercase;
}
.today-meal-list .meal-actions{
  padding-left:0;
}
.today-meal-list .meal-actions .meal-status-tag{
  min-height:40px;
}
.today-meal-list .meal-items{
  margin-top:0;
}

@media(max-width:430px){
  .today-meal-list .meal-card{
    min-height:230px;
    padding:15px;
  }
  .today-meal-list .meal-open{
    grid-template-columns:42px minmax(0,1fr);
  }
  .meal-macro-strip{
    padding:10px 10px;
  }
}

/* App color 2: warm cream + deep blue + orange */
:root[data-visual-theme="color2"]{
  --bg:#1b3348;
  --app-bg:#fbf3e6;
  --surface:#fffaf1;
  --surface-2:#f4ead9;
  --surface-3:#efe2cf;
  --card:#fffaf3;
  --field:#fffdf8;
  --ink:#162d42;
  --text:#435164;
  --muted:#768093;
  --faint:#9ca5b2;
  --line:#e6dac7;
  --line-soft:rgba(22,45,66,.12);
  --blue:#17364d;
  --blue-soft:#e7edf0;
  --blue-deep:#17364d;
  --orange:#ee9b4a;
  --peach:#f1a45a;
  --peach-soft:#fff2e3;
  --green:#008b66;
  --red:#ef6d67;
  --red-soft:#fff0ee;
  --shadow:0 24px 46px rgba(30,45,62,.12);
  --shadow-soft:0 13px 28px rgba(30,45,62,.09);
  --shell-bg:#1b3348;
  --shell-desktop-bg:linear-gradient(135deg,#fbf3e6 0%,#fffaf1 58%,#fff2e3 100%);
  --top-surface:rgba(255,250,243,.94);
  --nav-surface:rgba(255,250,243,.94);
  --modal-backdrop:rgba(22,45,66,.36);
  --modal-surface:#fffaf3;
  --modal-header-surface:rgba(255,250,243,.96);
  --control-surface:#fffaf3;
}
:root[data-visual-theme="color2"] body,
:root[data-visual-theme="color2"] html{
  background:#1b3348;
}
:root[data-visual-theme="color2"] .app{
  background:
    radial-gradient(circle at 42% 0%,rgba(255,250,240,.86) 0,rgba(255,250,240,0) 35%),
    linear-gradient(180deg,#fbf3e6 0%,#fffaf1 68%,#fffdf8 100%);
}
:root[data-visual-theme="color2"] .app-top,
:root[data-visual-theme="color2"] .bottom-nav{
  background:rgba(255,250,243,.94);
  border-color:rgba(218,204,184,.82);
}
:root[data-visual-theme="color2"] .home-tabs{
  background:transparent!important;
  box-shadow:none!important;
}
:root[data-visual-theme="color2"] .home-tabs .active,
:root[data-visual-theme="color2"] .primary,
:root[data-visual-theme="color2"] .meal-card .primary,
:root[data-visual-theme="color2"] .meal-actions .primary{
  background:#17364d;
  color:#fff;
  box-shadow:0 12px 24px rgba(23,54,77,.18);
}
:root[data-visual-theme="color2"] .carousel-dots i.active{
  background:#17364d;
}
:root[data-visual-theme="color2"] .profile-card,
:root[data-visual-theme="color2"] .home-profile-summary,
:root[data-visual-theme="color2"] .profile-main-stat,
:root[data-visual-theme="color2"] .profile-goal-row div,
:root[data-visual-theme="color2"] .plan-range-card,
:root[data-visual-theme="color2"] .home-macro-carousel .day-macro,
:root[data-visual-theme="color2"] .meal-card,
:root[data-visual-theme="color2"] .action-card{
  background:#fffaf3!important;
  border-color:#e2d5c1!important;
}
:root[data-visual-theme="color2"] .home-nutrient-focus{
  border-color:rgba(218,204,184,.7);
  background:linear-gradient(180deg,rgba(251,243,230,.74),rgba(255,250,241,.54));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 10px 24px rgba(23,54,77,.055);
}
:root[data-visual-theme="color2"] .home-nutrient-focus .today-heading h3{
  color:#17364d!important;
}
:root[data-visual-theme="color2"] .home-nutrient-focus .today-heading h3:after{
  background:linear-gradient(90deg,#ee9b4a,rgba(23,54,77,.18));
}
:root[data-visual-theme="color2"] .home-nutrient-focus .today-heading,
:root[data-visual-theme="color2"] .home-nutrient-focus .home-carousel-context{
  background:transparent!important;
}
:root[data-visual-theme="color2"] .home-macro-carousel .day-macro:before{
  border-color:#dfc9ad;
  background:
    radial-gradient(circle at center,#fffaf3 0 50%,transparent 52%),
    conic-gradient(var(--macro-ring-active,var(--macro-ring,#e0cdb5)) var(--macro-pct,0%),#eadfce 0 100%)!important;
  box-shadow:inset 0 0 0 5px rgba(244,233,216,.88),0 8px 18px rgba(119,77,33,.08)!important;
}
:root[data-visual-theme="color2"] .home-macro-carousel .day-macro b i:nth-child(2),
:root[data-visual-theme="color2"] .home-macro-carousel .day-macro b i:nth-child(3),
:root[data-visual-theme="color2"] .home-macro-carousel .day-macro small i+i{
  border-left-color:#e5d8c6!important;
}
:root[data-visual-theme="color2"] .home-macro-carousel .day-macro .progress,
:root[data-visual-theme="color2"] .meal-card .meal-macro-row,
:root[data-visual-theme="color2"] .today-meal-list .meal-card .macro-strip{
  background:#f0e7d7;
}
:root[data-visual-theme="color2"] .meal-macro-strip{
  background:#f3eadb;
}
:root[data-visual-theme="color2"] .meal-macro-strip small{
  color:#697486;
}
:root[data-visual-theme="color2"] .meal-icon{
  border-color:rgba(238,155,74,.28);
  background:#ee9b4a;
  color:#fff;
}
:root[data-visual-theme="color2"] .meal-card>.meal-remove-button,
:root[data-visual-theme="color2"] .remove-button{
  background:#fff0ee;
  color:#ef6d67;
}
:root[data-visual-theme="color2"] .bottom-nav .active{
  background:#fff2e3;
  color:#ee8f3c;
}
:root[data-visual-theme="color2"] .bottom-nav button{
  color:#617085;
}
:root[data-visual-theme="color2"] .icon-button,
:root[data-visual-theme="color2"] .country-toggle.compact{
  background:#fffaf3;
  border-color:#e2d5c1;
  color:#17364d;
}

/* Prometheus: fire frequency, bright without losing Osyra's calm */
:root[data-visual-theme="prometheus"]{
  --bg:#28100a;
  --app-bg:#fff2e4;
  --surface:#fff8ef;
  --surface-2:#ffe5cf;
  --surface-3:#ffd4ae;
  --card:#fffaf3;
  --field:#fff8ef;
  --ink:#28100a;
  --text:#593326;
  --muted:#926453;
  --faint:#bd917f;
  --line:#f3c7ad;
  --line-soft:rgba(139,30,8,.14);
  --blue:#ff4b19;
  --blue-soft:#ffe3d6;
  --blue-deep:#8b1e08;
  --orange:#ff7a12;
  --peach:#ffb15f;
  --peach-soft:#fff0df;
  --green:#a48900;
  --green-soft:#fff5c7;
  --red:#e02412;
  --red-soft:#ffe4dc;
  --shadow:0 24px 48px rgba(139,30,8,.15);
  --shadow-soft:0 13px 28px rgba(139,30,8,.1);
  --shell-bg:#28100a;
  --shell-desktop-bg:linear-gradient(135deg,#fff0dc 0%,#fff8ef 50%,#ffe0bf 100%);
  --top-surface:rgba(255,248,239,.95);
  --nav-surface:rgba(255,248,239,.95);
  --modal-backdrop:rgba(41,61,102,.36);
  --modal-surface:#fff;
  --modal-header-surface:rgba(255,255,255,.94);
  --modal-shadow:0 -22px 52px rgba(41,61,102,.20);
  --control-surface:#fffaf3;
}
:root[data-visual-theme="prometheus"] body,
:root[data-visual-theme="prometheus"] html{
  background:#28100a;
}
:root[data-visual-theme="prometheus"] .app{
  background:
    radial-gradient(circle at 18% 0%,rgba(255,122,18,.3),transparent 250px),
    radial-gradient(circle at 88% 18%,rgba(224,36,18,.18),transparent 230px),
    linear-gradient(180deg,#fff0dc 0%,#fff8ef 58%,#fffaf3 100%);
  color:var(--text);
}
:root[data-visual-theme="prometheus"] .app-top,
:root[data-visual-theme="prometheus"] .bottom-nav,
:root[data-visual-theme="prometheus"] .ai-chat,
:root[data-visual-theme="prometheus"] .ai-chat-head,
:root[data-visual-theme="prometheus"] .ai-chat-form{
  background:rgba(255,248,239,.95);
  border-color:rgba(243,199,173,.86);
}
:root[data-visual-theme="prometheus"] .home-tabs{
  background:rgba(255,250,243,.64);
  box-shadow:none;
}
:root[data-visual-theme="prometheus"] .primary,
:root[data-visual-theme="prometheus"] .home-tabs .active,
:root[data-visual-theme="prometheus"] .bottom-nav .active,
:root[data-visual-theme="prometheus"] .carousel-dots i.active,
:root[data-visual-theme="prometheus"] .carousel-dots button.active{
  background:linear-gradient(135deg,#ff4b19,#8b1e08)!important;
  color:#fffaf3!important;
  box-shadow:0 14px 28px rgba(139,30,8,.18)!important;
}
:root[data-visual-theme="prometheus"] .panel,
:root[data-visual-theme="prometheus"] .profile-card,
:root[data-visual-theme="prometheus"] .home-profile-summary,
:root[data-visual-theme="prometheus"] .profile-main-stat,
:root[data-visual-theme="prometheus"] .profile-goal-row div,
:root[data-visual-theme="prometheus"] .plan-range-card,
:root[data-visual-theme="prometheus"] .home-macro-carousel .day-macro,
:root[data-visual-theme="prometheus"] .meal-card,
:root[data-visual-theme="prometheus"] .food-card,
:root[data-visual-theme="prometheus"] .action-card,
:root[data-visual-theme="prometheus"] .help-choice-card:not([data-visual-theme-choice]){
  background:rgba(255,250,243,.96)!important;
  border-color:rgba(243,199,173,.9)!important;
}
:root[data-visual-theme="prometheus"] input,
:root[data-visual-theme="prometheus"] select,
:root[data-visual-theme="prometheus"] textarea,
:root[data-visual-theme="prometheus"] fieldset,
:root[data-visual-theme="prometheus"] .search,
:root[data-visual-theme="prometheus"] .picker-search,
:root[data-visual-theme="prometheus"] label.search{
  background:#fff8ef!important;
  border-color:rgba(243,199,173,.88)!important;
  color:var(--ink)!important;
}
:root[data-visual-theme="prometheus"] .soft,
:root[data-visual-theme="prometheus"] .ghost,
:root[data-visual-theme="prometheus"] .chip,
:root[data-visual-theme="prometheus"] .day-tabs button,
:root[data-visual-theme="prometheus"] .segmented button,
:root[data-visual-theme="prometheus"] .home-tabs button{
  background:#fffaf3;
  border-color:rgba(243,199,173,.82);
  color:#8b1e08;
}
:root[data-visual-theme="prometheus"] .home-nutrient-focus{
  border-color:rgba(255,122,18,.22);
  background:linear-gradient(180deg,rgba(255,243,226,.82),rgba(255,250,243,.62));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.78),0 10px 24px rgba(139,30,8,.07);
}
:root[data-visual-theme="prometheus"] .home-nutrient-focus .today-heading h3{
  color:#8b1e08!important;
}
:root[data-visual-theme="prometheus"] .home-nutrient-focus .today-heading h3:after{
  background:linear-gradient(90deg,#ff4b19,#ffb15f);
}
:root[data-visual-theme="prometheus"] .home-macro-carousel .day-macro:before{
  border-color:#f0bea0;
  background:
    radial-gradient(circle at center,#fffaf3 0 50%,transparent 52%),
    conic-gradient(var(--macro-ring-active,var(--macro-ring,#ff7a12)) var(--macro-pct,0%),#ffe6d1 0 100%)!important;
  box-shadow:inset 0 0 0 5px rgba(255,240,223,.9),0 8px 18px rgba(139,30,8,.09)!important;
}
:root[data-visual-theme="prometheus"] .meal-icon,
:root[data-visual-theme="prometheus"] .action-icon,
:root[data-visual-theme="prometheus"] .plan-mode-icon{
  border-color:rgba(255,75,25,.22);
  background:#ffe3d6;
  color:#8b1e08;
}
:root[data-visual-theme="prometheus"] .ai-fab{
  background:linear-gradient(135deg,#ff7a12,#e02412)!important;
  color:#fffaf3!important;
  box-shadow:0 18px 34px rgba(224,36,18,.24)!important;
}
:root[data-visual-theme="prometheus"] .modal .sheet{
  border-color:#e3e8f4;
}
:root[data-visual-theme="prometheus"] .modal .sheet-close{
  border-color:#e3e8f4;
  background:#fff;
  color:#293d66;
  box-shadow:0 14px 32px rgba(41,61,102,.16);
}

:root[data-visual-theme="female"]{
  --bg:#3b2741;
  --app-bg:#fff7f8;
  --surface:#fffafb;
  --surface-2:#f8edf1;
  --surface-3:#f2e2e9;
  --card:#fffafb;
  --field:#fffefe;
  --ink:#33243a;
  --text:#5d4d63;
  --muted:#8d7d8e;
  --faint:#b7aab7;
  --line:#eadde5;
  --line-soft:rgba(51,36,58,.1);
  --blue:#9b4d76;
  --blue-soft:#f6e4ec;
  --blue-deep:#3b2741;
  --orange:#df8c77;
  --peach:#f4b7a8;
  --peach-soft:#fff0ec;
  --green:#4a9b91;
  --red:#d85d73;
  --red-soft:#ffedf1;
  --cream:#fffaf4;
  --shadow:0 22px 46px rgba(67,42,74,.13);
  --shadow-soft:0 12px 28px rgba(67,42,74,.09);
  --shell-bg:#3b2741;
  --shell-desktop-bg:linear-gradient(135deg,#fff7f8 0%,#fffafb 58%,#f6e4ec 100%);
  --top-surface:rgba(255,250,251,.94);
  --nav-surface:rgba(255,250,251,.94);
  --modal-backdrop:rgba(59,39,65,.36);
  --modal-surface:#fffafb;
  --modal-header-surface:rgba(255,250,251,.96);
  --drawer-backdrop:rgba(59,39,65,.36);
  --drawer-surface:#fff7f9;
  --drawer-header-surface:rgba(255,250,251,.96);
  --drawer-shadow:-24px 0 54px rgba(67,42,74,.18);
  --profile-option-surface:#fffafb;
  --profile-muted-surface:#f8edf1;
  --control-surface:#fffafb;
}
:root[data-visual-theme="female"] html,
:root[data-visual-theme="female"] body{
  background:#3b2741;
}
:root[data-visual-theme="female"] .app{
  background:
    radial-gradient(circle at 38% 0%,rgba(255,234,240,.9) 0,rgba(255,234,240,0) 38%),
    linear-gradient(180deg,#fff7f8 0%,#fffafb 64%,#fffdf9 100%);
}
:root[data-visual-theme="female"] .app-top,
:root[data-visual-theme="female"] .bottom-nav{
  background:rgba(255,250,251,.94);
  border-color:rgba(226,208,219,.88);
}
:root[data-visual-theme="female"] .home-tabs{
  background:transparent!important;
  box-shadow:none!important;
}
:root[data-visual-theme="female"] .home-tabs .active,
:root[data-visual-theme="female"] .primary,
:root[data-visual-theme="female"] .meal-card .primary,
:root[data-visual-theme="female"] .meal-actions .primary{
  background:#3b2741;
  color:#fff;
  box-shadow:0 12px 24px rgba(59,39,65,.18);
}
:root[data-visual-theme="female"] .carousel-dots i.active,
:root[data-visual-theme="female"] .carousel-dots button.active{
  background:#9b4d76;
}
:root[data-visual-theme="female"] .profile-card,
:root[data-visual-theme="female"] .home-profile-summary,
:root[data-visual-theme="female"] .profile-main-stat,
:root[data-visual-theme="female"] .profile-goal-row div,
:root[data-visual-theme="female"] .plan-range-card,
:root[data-visual-theme="female"] .home-macro-carousel .day-macro,
:root[data-visual-theme="female"] .meal-card,
:root[data-visual-theme="female"] .action-card,
:root[data-visual-theme="female"] .today-card,
:root[data-visual-theme="female"] .diary-card,
:root[data-visual-theme="female"] .chart-card,
:root[data-visual-theme="female"] .select-card,
:root[data-visual-theme="female"] .food-card{
  background:#fffafb!important;
  border-color:#eadde5!important;
}
:root[data-visual-theme="female"] .home-nutrient-focus{
  border-color:rgba(226,208,219,.72);
  background:linear-gradient(180deg,rgba(255,247,248,.78),rgba(246,228,236,.48));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.76),0 10px 24px rgba(59,39,65,.055);
}
:root[data-visual-theme="female"] .home-nutrient-focus .today-heading h3{
  color:#3b2741!important;
}
:root[data-visual-theme="female"] .home-nutrient-focus .today-heading h3:after{
  background:linear-gradient(90deg,#d85d73,rgba(74,155,145,.34));
}
:root[data-visual-theme="female"] .home-macro-carousel .day-macro:before{
  border-color:#eadde5;
  background:
    radial-gradient(circle at center,#fffafb 0 50%,transparent 52%),
    conic-gradient(var(--macro-ring-active,var(--macro-ring,#d8c6d0)) var(--macro-pct,0%),#f1e4eb 0 100%)!important;
  box-shadow:inset 0 0 0 5px rgba(255,247,248,.92),0 8px 18px rgba(89,49,72,.08)!important;
}
:root[data-visual-theme="female"] .home-macro-carousel .day-macro b i:nth-child(2),
:root[data-visual-theme="female"] .home-macro-carousel .day-macro b i:nth-child(3),
:root[data-visual-theme="female"] .home-macro-carousel .day-macro small i+i{
  border-left-color:#e9dce4!important;
}
:root[data-visual-theme="female"] .home-macro-carousel .day-macro .progress,
:root[data-visual-theme="female"] .meal-card .meal-macro-row,
:root[data-visual-theme="female"] .today-meal-list .meal-card .macro-strip,
:root[data-visual-theme="female"] .meal-macro-strip{
  background:#f4e7ee;
}
:root[data-visual-theme="female"] .meal-icon,
:root[data-visual-theme="female"] .hero-avatar,
:root[data-visual-theme="female"] .avatar,
:root[data-visual-theme="female"] .profile-person .hero-avatar{
  border-color:rgba(216,93,115,.24);
  background:#f6e4ec;
  color:#3b2741;
}
:root[data-visual-theme="female"] .meal-card>.meal-remove-button,
:root[data-visual-theme="female"] .remove-button{
  background:#ffedf1;
  color:#d85d73;
}
:root[data-visual-theme="female"] .bottom-nav .active{
  background:#f6e4ec;
  color:#9b4d76;
}
:root[data-visual-theme="female"] .bottom-nav button{
  color:#9b8b9b;
}
:root[data-visual-theme="female"] .icon-button,
:root[data-visual-theme="female"] .country-toggle.compact,
:root[data-visual-theme="female"] .language-toggle.compact{
  background:#fffafb;
  border-color:#eadde5;
  color:#3b2741;
}
:root[data-visual-theme="female"] .action-card[data-go="plan"]{
  border-color:#9b4d76;
  background:#9b4d76;
  color:#fff;
}
:root[data-visual-theme="female"] .action-card[data-go="finance"]{
  border-color:#4a9b91;
  background:#4a9b91;
  color:#fff;
}
:root[data-visual-theme="female"] .action-card[data-go="plates"]{
  border-color:#f4b7a8;
}
:root[data-visual-theme="female"] .action-card[data-go="foods"]{
  border-color:#f6e4ec;
}
:root[data-visual-theme="female"] .ai-fab{
  border-color:rgba(216,93,115,.5);
  background:linear-gradient(145deg,#d85d73 0%,#9b4d76 64%,#3b2741 150%);
  box-shadow:0 16px 34px rgba(155,77,118,.24),0 8px 22px rgba(59,39,65,.12);
}

/* manga-rosa: rosa suave, amarelo claro e cards quase brancos. */
:root[data-visual-theme="strawberry-fields"]{
  --bg:#e99aa0;
  --app-bg:#fff1d0;
  --surface:#ffffff;
  --surface-2:#fffdfb;
  --surface-3:#fff8ec;
  --card:#ffffff;
  --field:#ffffff;
  --ink:#694040;
  --text:#7f5b5a;
  --muted:#a27e7d;
  --faint:#c8a6a2;
  --line:#ecd0cf;
  --line-soft:rgba(181,92,0,.09);
  --blue:#e99aa0;
  --blue-soft:#fff0ed;
  --blue-deep:#b55c00;
  --orange:#f4d48b;
  --peach:#f4c5bd;
  --peach-soft:#fff4ee;
  --green:#4e9b79;
  --red:#d95868;
  --red-soft:#ffebed;
  --cream:#fff5d9;
  --shadow:0 22px 46px rgba(181,92,0,.12);
  --shadow-soft:0 12px 28px rgba(181,92,0,.08);
  --shell-bg:#e99aa0;
  --shell-desktop-bg:linear-gradient(180deg,#e99aa0 0%,#f4c1b9 27%,#ecd9d8 45%,#f8e3a8 66%,#fff1d0 100%);
  --top-surface:#e99aa0;
  --nav-surface:#ffffff;
  --modal-backdrop:rgba(92,47,49,.28);
  --modal-surface:#ffffff;
  --modal-header-surface:rgba(255,255,255,.98);
  --drawer-backdrop:rgba(92,47,49,.26);
  --drawer-surface:#ffffff;
  --drawer-header-surface:rgba(255,255,255,.98);
  --drawer-shadow:-24px 0 54px rgba(181,92,0,.14);
  --profile-option-surface:#ffffff;
  --profile-muted-surface:#fffdfb;
  --control-surface:#ffffff;
}
:root[data-visual-theme="strawberry-fields"] html,
:root[data-visual-theme="strawberry-fields"] body{
  background:#e99aa0;
}
:root[data-visual-theme="strawberry-fields"] .app{
  background:linear-gradient(180deg,#e99aa0 0%,#f4c1b9 27%,#ecd9d8 45%,#f8e3a8 66%,#fff1d0 100%);
}
:root[data-visual-theme="strawberry-fields"] .app-top{
  background:#e99aa0;
  border-color:rgba(255,255,255,.56);
  color:#ffffff;
}
:root[data-visual-theme="strawberry-fields"] .bottom-nav{
  background:rgba(255,255,255,.96);
  border-color:rgba(181,92,0,.2);
  color:#5c2f31;
}
:root[data-visual-theme="strawberry-fields"] .ai-chat,
:root[data-visual-theme="strawberry-fields"] .ai-chat-head,
:root[data-visual-theme="strawberry-fields"] .ai-chat-form{
  background:rgba(255,255,255,.98);
  border-color:rgba(236,208,207,.9);
}
:root[data-visual-theme="strawberry-fields"] .home-tabs{
  background:rgba(255,255,255,.84);
  box-shadow:none;
}
:root[data-visual-theme="strawberry-fields"] .home-tabs .active,
:root[data-visual-theme="strawberry-fields"] .primary,
:root[data-visual-theme="strawberry-fields"] .meal-card .primary,
:root[data-visual-theme="strawberry-fields"] .meal-actions .primary,
:root[data-visual-theme="strawberry-fields"] .bottom-nav .active,
:root[data-visual-theme="strawberry-fields"] .carousel-dots i.active,
:root[data-visual-theme="strawberry-fields"] .carousel-dots button.active{
  background:linear-gradient(135deg,#e99aa0,#f4c1b9)!important;
  border-color:#e99aa0;
  color:#ffffff!important;
  box-shadow:0 12px 26px rgba(181,92,0,.16)!important;
}
:root[data-visual-theme="strawberry-fields"] .panel,
:root[data-visual-theme="strawberry-fields"] .profile-card,
:root[data-visual-theme="strawberry-fields"] .home-profile-summary,
:root[data-visual-theme="strawberry-fields"] .profile-main-stat,
:root[data-visual-theme="strawberry-fields"] .profile-goal-row div,
:root[data-visual-theme="strawberry-fields"] .plan-range-card,
:root[data-visual-theme="strawberry-fields"] .home-macro-carousel .day-macro,
:root[data-visual-theme="strawberry-fields"] .meal-card,
:root[data-visual-theme="strawberry-fields"] .action-card,
:root[data-visual-theme="strawberry-fields"] .today-card,
:root[data-visual-theme="strawberry-fields"] .diary-card,
:root[data-visual-theme="strawberry-fields"] .chart-card,
:root[data-visual-theme="strawberry-fields"] .select-card,
:root[data-visual-theme="strawberry-fields"] .food-card{
  background:#ffffff!important;
  border-color:#ecd0cf!important;
}
:root[data-visual-theme="strawberry-fields"] .home-nutrient-focus{
  border-color:rgba(236,208,207,.82);
  background:linear-gradient(180deg,#ffffff 0%,#fffaf3 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 10px 24px rgba(181,92,0,.08);
}
:root[data-visual-theme="strawberry-fields"] .home-nutrient-focus .today-heading{
  background:#fffaf3;
}
:root[data-visual-theme="strawberry-fields"] .add-today-meal-button{
  border-style:solid;
  border-color:#f4c1b9;
  background:#fffaf3!important;
  color:#b55c00;
  box-shadow:0 8px 18px rgba(181,92,0,.08);
}
:root[data-visual-theme="strawberry-fields"] .home-nutrient-focus .today-heading h3{
  color:#5c2f31!important;
}
:root[data-visual-theme="strawberry-fields"] .home-nutrient-focus .today-heading h3:after{
  background:linear-gradient(90deg,#f4d48b,rgba(233,154,160,.42));
}
:root[data-visual-theme="strawberry-fields"] .home-macro-carousel .day-macro:before{
  border-color:#ecd0cf;
  background:
    radial-gradient(circle at center,#ffffff 0 50%,transparent 52%),
    conic-gradient(var(--macro-ring-active,var(--macro-ring,#e99aa0)) var(--macro-pct,0%),#f4d48b 0 100%)!important;
  box-shadow:inset 0 0 0 5px rgba(255,255,255,.94),0 8px 18px rgba(181,92,0,.08)!important;
}
:root[data-visual-theme="strawberry-fields"] .home-macro-carousel .day-macro b i:nth-child(2),
:root[data-visual-theme="strawberry-fields"] .home-macro-carousel .day-macro b i:nth-child(3),
:root[data-visual-theme="strawberry-fields"] .home-macro-carousel .day-macro small i+i{
  border-left-color:#ecd0cf!important;
}
:root[data-visual-theme="strawberry-fields"] .home-macro-carousel .day-macro .progress,
:root[data-visual-theme="strawberry-fields"] .meal-card .meal-macro-row,
:root[data-visual-theme="strawberry-fields"] .today-meal-list .meal-card .macro-strip,
:root[data-visual-theme="strawberry-fields"] .meal-macro-strip{
  background:#fffdfb;
}
:root[data-visual-theme="strawberry-fields"] .meal-icon,
:root[data-visual-theme="strawberry-fields"] .hero-avatar,
:root[data-visual-theme="strawberry-fields"] .avatar,
:root[data-visual-theme="strawberry-fields"] .profile-person .hero-avatar{
  border-color:rgba(233,154,160,.28);
  background:#fff0ed;
  color:#b55c00;
}
:root[data-visual-theme="strawberry-fields"] .meal-card>.meal-remove-button,
:root[data-visual-theme="strawberry-fields"] .remove-button{
  background:#ffebed;
  color:#d95868;
}
:root[data-visual-theme="strawberry-fields"] .bottom-nav button{
  color:#a18188;
}
:root[data-visual-theme="strawberry-fields"] .icon-button,
:root[data-visual-theme="strawberry-fields"] .country-toggle.compact,
:root[data-visual-theme="strawberry-fields"] .language-toggle.compact{
  background:#ffffff;
  border-color:#ecd0cf;
  color:#b55c00;
}
:root[data-visual-theme="strawberry-fields"] .action-card[data-go="plan"]{
  border-color:#e99aa0;
  background:#ffffff;
  color:#b55c00;
}
:root[data-visual-theme="strawberry-fields"] .action-card[data-go="finance"]{
  border-color:#f4d48b;
  background:#ffffff;
  color:#b55c00;
}
:root[data-visual-theme="strawberry-fields"] .action-card[data-go="plates"]{
  border-color:#f4d48b;
}
:root[data-visual-theme="strawberry-fields"] .action-card[data-go="foods"]{
  border-color:#f4c1b9;
}
:root[data-visual-theme="strawberry-fields"] .ai-fab{
  border-color:rgba(233,154,160,.5);
  background:linear-gradient(145deg,#f4d48b 0%,#e99aa0 62%,#b55c00 150%);
  box-shadow:0 16px 34px rgba(233,154,160,.24),0 8px 22px rgba(181,92,0,.1);
}

/* Home profile: fixed identity + manual info carousel */
.home-profile-summary{
  display:grid;
  grid-template-columns:minmax(136px,auto) minmax(0,1fr);
  align-items:center;
}
.home-profile-summary{
  grid-template-columns:240px minmax(0,1fr);
  gap:14px;
  overflow:hidden;
  padding-bottom:10px;
  border-bottom:0;
}
.profile-info-carousel{
  display:flex;
  flex-wrap:nowrap;
  align-items:stretch;
  gap:12px;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 2px 8px;
  scroll-padding-left:2px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.profile-info-carousel::-webkit-scrollbar{
  display:none;
}
.profile-info-carousel .profile-main-stat{
  flex:0 0 clamp(132px,22vw,176px);
  width:clamp(132px,22vw,176px);
  min-height:104px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:26px;
  background:#fff;
  box-shadow:0 12px 28px rgba(41,61,102,.08);
  scroll-snap-align:center;
}
.profile-info-carousel .profile-main-stat b{
  font-size:1.38rem;
}
.profile-info-carousel .profile-health-stat{
  align-content:center;
}
.profile-info-carousel .profile-health-stat small{
  color:var(--muted);
  font-size:.6rem;
  font-weight:900;
  line-height:1.18;
  text-align:center;
}

/* Nutrient section without outer panel */
.home-nutrient-focus,
:root[data-visual-theme="color2"] .home-nutrient-focus{
  min-height:0;
  margin:0 0 20px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent!important;
  box-shadow:none;
  overflow:visible;
}

@media(max-width:759px){
  .home-profile-summary{
    grid-template-columns:184px minmax(0,1fr);
    gap:12px;
    overflow:visible;
    margin:0;
    padding:0 0 12px;
  }
  .home-profile-summary .profile-person{
    width:184px;
    min-width:184px;
    align-self:center;
  }
  .profile-info-carousel[data-home-carousel]{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:10px;
    min-width:0;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .profile-info-carousel[data-home-carousel]::-webkit-scrollbar{
    display:none;
  }
  .profile-info-carousel[data-home-carousel] .profile-main-stat{
    flex:0 0 calc(100vw - 252px)!important;
    width:calc(100vw - 252px)!important;
    min-width:150px!important;
    max-width:178px!important;
  }
  .profile-info-carousel + .carousel-dots{
    grid-column:2;
    justify-self:center;
    margin-top:8px;
  }
  .home-nutrient-focus{
    margin-bottom:22px;
  }
}

@media(max-width:430px){
  .home-profile-summary{
    grid-template-columns:176px minmax(0,1fr);
  }
  .home-profile-summary .profile-person{
    width:176px;
    min-width:176px;
  }
  .profile-info-carousel[data-home-carousel] .profile-main-stat{
    flex-basis:calc(100vw - 236px)!important;
    width:calc(100vw - 236px)!important;
    min-width:150px!important;
    max-width:176px!important;
  }
}

.home-nutrient-focus .today-heading{
  margin:0 0 8px;
  padding:0;
}
.home-nutrient-focus .today-heading .meal-goal{
  margin:0 0 3px;
  color:var(--muted);
  font-size:.6rem;
  font-weight:900;
  letter-spacing:.075em;
  line-height:1.05;
  text-transform:uppercase;
}
.home-nutrient-focus .today-heading h3{
  display:block;
  overflow:hidden;
  max-width:100%;
  color:var(--ink)!important;
  font-family:var(--font-primary)!important;
  font-size:1rem!important;
  font-weight:900!important;
  letter-spacing:0!important;
  line-height:1.08!important;
  text-overflow:ellipsis;
  text-transform:none!important;
  white-space:nowrap;
  -webkit-font-smoothing:antialiased;
}

@media(max-width:430px){
  .home-nutrient-focus .today-heading h3{
    font-size:.96rem;
  }
}

/* Pre-opening home and guided engine polish */
.feature-icon{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:18px;
  background:#eaf2ff;
  color:var(--blue);
}
.feature-icon:before{
  width:22px;
  height:22px;
  background:currentColor;
  content:"";
  -webkit-mask:var(--feature-icon) center/contain no-repeat;
  mask:var(--feature-icon) center/contain no-repeat;
}
.feature-profile{--feature-icon:url("/assets/features/profile.svg");}
.feature-target{--feature-icon:url("/assets/features/target.svg");}
.feature-engine{--feature-icon:url("/assets/features/engine.svg");}
.feature-diet{--feature-icon:url("/assets/features/diet.svg");}
.feature-diary{--feature-icon:url("/assets/features/diary.svg");}
.feature-finance{--feature-icon:url("/assets/features/finance.svg");}
.feature-recipes{--feature-icon:url("/assets/features/recipes.svg");}
.feature-foods{--feature-icon:url("/assets/features/foods.svg");}

.pre-open-steps{
  margin-top:16px;
}
.pre-open-step,
.pre-feature-card{
  appearance:none;
  -webkit-appearance:none;
  border:1px solid rgba(47,68,112,.10);
  background:#fff;
  color:var(--ink);
  box-shadow:0 10px 28px rgba(47,68,112,.065);
  cursor:pointer;
  font:inherit;
  text-align:left;
  touch-action:manipulation;
}
.pre-open-step{
  display:grid;
  gap:9px;
  min-height:128px;
  padding:15px;
  border-radius:26px;
}
.pre-open-step b,
.pre-feature-card strong{
  color:var(--ink);
  font-size:.94rem;
  font-weight:900;
  line-height:1.12;
}
.pre-open-step small,
.pre-feature-card small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:700;
  line-height:1.35;
}
.pre-open-feature-shell{
  display:grid;
  gap:12px;
}
.pre-open-heading{
  display:grid;
  gap:3px;
}
.pre-open-heading h3{
  color:var(--ink);
  font-family:var(--font-primary);
  font-size:1rem;
  font-weight:900;
  line-height:1.08;
}
.pre-open-features{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.pre-feature-card{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 14px;
  align-items:center;
  gap:12px;
  min-height:118px;
  padding:16px;
  border-radius:28px;
}
.pre-feature-card i{
  color:var(--muted);
  font-style:normal;
  font-weight:900;
}
.pre-feature-card.primary-preview{
  border-color:rgba(10,155,80,.22);
  background:#f7fdf9;
}
.pre-feature-card.primary-preview .feature-icon,
.pre-open-step:first-child .feature-icon{
  background:#ddfbef;
  color:var(--green);
}

.home-plan-modes .plan-mode-card{
  position:relative;
  z-index:1;
  display:grid;
  align-items:center;
  gap:12px;
  pointer-events:auto;
  touch-action:manipulation;
}
.home-plan-modes .plan-mode-card .grow{
  display:grid;
  gap:4px;
  min-width:0;
}
.home-plan-modes .plan-mode-card strong{
  overflow:hidden;
  max-width:100%;
  font-size:.98rem;
  line-height:1.14;
  text-overflow:ellipsis;
}
.home-plan-modes .plan-mode-card small{
  display:-webkit-box;
  overflow:hidden;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.35;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.home-plan-modes .plan-mode-card>i{
  justify-self:end;
  width:auto;
  color:var(--muted);
  font-size:1rem;
}
.home-plan-modes .plan-mode-card .action-icon.osyra-half{
  position:relative;
  overflow:hidden;
  background:transparent;
  box-shadow:none;
}
.home-plan-modes .plan-mode-card .action-icon.osyra-half:before{
  content:"";
  position:absolute;
  inset:2px;
  background:center/contain no-repeat;
}
.home-plan-modes .plan-mode-card .action-icon.osyra-half.orange:before{
  background-image:url("/assets/osyra-wave-orange.svg");
}
.home-plan-modes .plan-mode-card .action-icon.osyra-half.blue:before{
  background-image:url("/assets/osyra-wave-blue.svg");
}
.tools-title{
  margin:18px 0 10px;
  color:var(--ink);
  font-family:var(--display);
  font-size:1.05rem;
  font-weight:900;
  line-height:1.12;
}

.home-tabs{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.home-tabs button{
  position:relative;
  z-index:1;
  transition:transform .22s ease,background .22s ease,color .22s ease,box-shadow .22s ease;
}
.home-tabs button:not(.active){
  background:rgba(255,255,255,.78);
}
.home-tabs .active{
  transform:translateY(-1px) scale(1.01);
}
.home-tab-enter{
  animation:homeTabEnter .26s ease both;
  transform-origin:center top;
}
@keyframes homeTabEnter{
  from{opacity:.72;transform:translateX(14px) rotateY(-3deg) scale(.985)}
  to{opacity:1;transform:translateX(0) rotateY(0) scale(1)}
}

@media(max-width:759px){
  .pre-open-steps[data-home-carousel],
  .pre-open-features[data-home-carousel]{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:12px;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    margin-right:-14px;
    margin-left:0;
    padding:0 14px 4px 0;
    scroll-padding-left:0;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .pre-open-steps[data-home-carousel]::-webkit-scrollbar,
  .pre-open-features[data-home-carousel]::-webkit-scrollbar{
    display:none;
  }
  .pre-open-steps[data-home-carousel] .pre-open-step{
    flex:0 0 calc(100vw - 106px);
    width:calc(100vw - 106px);
    min-width:0;
    max-width:310px;
    scroll-snap-align:start;
  }
  .pre-open-features[data-home-carousel] .pre-feature-card{
    flex:0 0 calc(100vw - 86px);
    width:calc(100vw - 86px);
    min-width:0;
    max-width:352px;
    scroll-snap-align:start;
  }
  .pre-open-steps[data-home-carousel]:after,
  .pre-open-features[data-home-carousel]:after{
    display:block;
    flex:0 0 16px;
    content:"";
  }
}

@media(max-width:360px){
  .home-plan-modes .plan-mode-card small{
    -webkit-line-clamp:3;
  }
}

:root[data-visual-theme="color2"] .pre-open-step,
:root[data-visual-theme="color2"] .pre-feature-card{
  background:#fffaf3;
  border-color:#e2d5c1;
}
:root[data-visual-theme="color2"] .pre-feature-card.primary-preview,
:root[data-visual-theme="color2"] .plan-mode-card.guided{
  background:#fffdf8;
  border-color:rgba(0,139,102,.22);
}
:root[data-visual-theme="color2"] .feature-icon{
  background:#f3eadb;
  color:#17364d;
}
:root[data-visual-theme="color2"] .pre-feature-card.primary-preview .feature-icon,
:root[data-visual-theme="color2"] .pre-open-step:first-child .feature-icon,
:root[data-visual-theme="color2"] .plan-mode-card.guided .action-icon{
  background:#f1a45a;
  color:#fff;
}
:root[data-visual-theme="color2"] .home-plan-modes .plan-mode-card .action-icon.osyra-half{
  background:transparent;
  color:inherit;
}
:root[data-visual-theme="color2"] .carousel-dots button.active{
  background:#17364d;
}

#homePlanModes .planning-engine-status{
  display:none!important;
}

#homeScreen.home-no-plan.active{
  display:flex;
  flex-direction:column;
}
#homeScreen.home-no-plan #homeProfile{order:1}
#homeScreen.home-no-plan .home-tabs{order:2}
#homeScreen.home-no-plan #planTutorialBubble{order:2;margin-top:10px}
#homeScreen.home-no-plan #todayPanel{order:3}
#homeScreen.home-no-plan .action-title{order:4;margin-top:18px}
#homeScreen.home-no-plan #homePlanModes{order:5}
#homeScreen.home-no-plan #homePlanModes + .carousel-dots{order:6;margin-top:8px;margin-bottom:18px}
#homeScreen.home-no-plan #diaryPanel{order:3}
#homeScreen.home-no-plan .tools-title{order:8;margin-top:24px}
#homeScreen.home-no-plan .home-actions{order:9}
#homeScreen.home-no-plan .home-actions + .carousel-dots{order:10;margin-top:8px}
#homeScreen.home-no-plan #todayPanel:empty{display:none}

/* Home finish pass: lighter assets, clearer pre-open cards and progress rings */
.action-icon.feature-line-icon{
  position:relative;
  color:inherit;
  font-size:0;
}
.action-icon.feature-line-icon:before{
  content:"";
  width:27px;
  height:27px;
  background:currentColor;
  -webkit-mask:var(--feature-line-icon) center/contain no-repeat;
  mask:var(--feature-line-icon) center/contain no-repeat;
}
.action-icon.feature-line-icon.home{--feature-line-icon:url("/assets/features/infinity.svg")}
.action-icon.feature-line-icon.plan{--feature-line-icon:url("/assets/features/planning-monk.svg")}
.action-icon.feature-line-icon.finance{--feature-line-icon:url("/assets/features/economy-daruma-mask.png")}
.action-icon.feature-line-icon.foods{--feature-line-icon:url("/assets/features/foods-spices.svg")}
.action-icon.feature-line-icon.plates{--feature-line-icon:url("/assets/features/recipes-poke.svg")}
.action-icon.feature-line-icon.ai{--feature-line-icon:url("/assets/features/ai-spark.svg")}
.action-card[data-home-tab="today"] .action-icon.feature-line-icon{background:var(--blue-soft);color:var(--blue)}
.action-card[data-go="plan"] .action-icon.feature-line-icon{background:#e7f7ed;color:var(--green)}
.action-card[data-go="finance"] .action-icon.feature-line-icon{background:#fff0cf;color:#c97600}
.action-card[data-go="foods"] .action-icon.feature-line-icon{background:#fff1e5;color:#d77634}
.action-card[data-go="plates"] .action-icon.feature-line-icon{background:#eef4ff;color:#5874e8}
.ai-tool-card{border-color:rgba(88,116,232,.18)!important;background:#fff!important;color:var(--ink)!important}
.ai-tool-card .action-icon.feature-line-icon{background:#eef4ff;color:#5874e8}

.home-macro-carousel .day-macro:before{
  border:0!important;
  background:
    radial-gradient(circle at center,#fff 0 50%,transparent 52%),
    conic-gradient(var(--macro-ring-active,var(--macro-ring,#edf2fc)) var(--macro-pct,0%),var(--macro-ring-bg,#edf2fc) 0 100%)!important;
  box-shadow:inset 0 0 0 5px color-mix(in srgb,var(--macro-ring-bg,#edf2fc) 72%,#fff),0 8px 18px var(--macro-glow,rgba(38,59,100,.04))!important;
}
.home-macro-carousel .day-macro.macro-reached:before{
  --macro-ring-active:color-mix(in srgb,var(--macro-ring,#edf2fc) 72%,#8f6b3a);
  --macro-ring-bg:color-mix(in srgb,var(--macro-ring,#edf2fc) 54%,#fff);
}
.home-macro-carousel .macro-kcal{--macro-ring-bg:#fbf0dc}
.home-macro-carousel .macro-protein{--macro-ring-bg:#edf3ff}
.home-macro-carousel .macro-carbs{--macro-ring-bg:#eaf6ed}
.home-macro-carousel .macro-fats{--macro-ring-bg:#fff0e8}
.home-macro-carousel .day-macro b i,
.home-macro-carousel .day-macro small i{
  overflow-wrap:normal!important;
  word-break:normal!important;
  white-space:nowrap!important;
}
.home-macro-carousel .day-macro b i:nth-child(2),
.home-macro-carousel .day-macro b i:nth-child(3){
  font-size:.8rem!important;
}
.home-macro-carousel .day-macro small i{
  font-size:.46rem!important;
  letter-spacing:.025em!important;
}

.home-profile-summary .profile-person .hero-avatar{
  width:96px;
  height:96px;
  font-size:1.35rem;
  box-shadow:0 16px 30px rgba(88,116,232,.14);
}
.home-profile-summary .profile-person{
  gap:9px;
  grid-template-columns:104px minmax(116px,1fr);
  column-gap:8px;
}
.home-profile-summary .profile-person:before{
  content:"Bem-vindo,";
  align-self:end;
  white-space:nowrap;
}
html[lang="en"] .home-profile-summary .profile-person:before{
  content:"Welcome,";
}
.home-profile-summary .profile-person strong{
  align-self:start;
  max-width:124px;
  margin-top:-8px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.profile-info-carousel + .carousel-dots,
.pre-open-steps + .carousel-dots{
  display:none!important;
}
.profile-info-carousel + .carousel-dots.profile-carousel-dots{
  display:flex!important;
  grid-column:2;
  justify-content:center;
  align-self:start;
  margin:6px 0 0;
}
@media(max-width:759px){
  .home-profile-summary{
    grid-template-columns:238px minmax(0,1fr);
  }
  .home-profile-summary .profile-person{
    width:238px;
    min-width:238px;
    grid-template-columns:118px minmax(108px,1fr);
    column-gap:8px;
  }
  .home-profile-summary .profile-person .hero-avatar{
    width:110px;
    height:110px;
  }
  .profile-info-carousel[data-home-carousel] .profile-main-stat{
    flex-basis:calc(100vw - 306px)!important;
    width:calc(100vw - 306px)!important;
  }
}
@media(max-width:430px){
  .home-profile-summary{
    grid-template-columns:198px minmax(0,1fr);
    gap:8px;
  }
  .home-profile-summary .profile-person{
    width:198px;
    min-width:198px;
    grid-template-columns:104px minmax(82px,1fr);
    column-gap:6px;
  }
  .home-profile-summary .profile-person .hero-avatar{
    width:100px;
    height:100px;
  }
  .home-profile-summary .profile-person strong{
    max-width:88px;
    margin-top:-6px;
    font-size:.86rem;
    line-height:1.08;
  }
  .profile-info-carousel[data-home-carousel] .profile-main-stat{
    flex-basis:calc(100vw - 236px)!important;
    width:calc(100vw - 236px)!important;
    min-width:122px!important;
    max-width:166px!important;
  }
}

@media(max-width:374px){
  .home-profile-summary{
    grid-template-columns:186px minmax(0,1fr);
    gap:7px;
  }
  .home-profile-summary .profile-person{
    width:186px;
    min-width:186px;
    grid-template-columns:96px minmax(78px,1fr);
  }
  .home-profile-summary .profile-person .hero-avatar{
    width:92px;
    height:92px;
  }
  .home-profile-summary .profile-person strong{
    max-width:82px;
    font-size:.82rem;
  }
  .profile-info-carousel[data-home-carousel] .profile-main-stat{
    flex-basis:calc(100vw - 222px)!important;
    width:calc(100vw - 222px)!important;
    min-width:118px!important;
  }
}

/* Profile carousel: shared start-aligned metric rail for Agora and Dieta. */
.profile-info-carousel[data-home-carousel]{
  --profile-card-width:clamp(132px,22vw,176px);
  width:100%;
  max-width:100%;
  min-width:0;
  padding:2px 0 8px;
  scroll-padding-left:0;
  mask-image:none;
}
.profile-info-carousel[data-home-carousel]::before,
.profile-info-carousel[data-home-carousel]::after{
  display:none!important;
  content:none!important;
}
.profile-info-carousel[data-home-carousel] .profile-main-stat{
  flex:0 0 var(--profile-card-width)!important;
  width:var(--profile-card-width)!important;
  justify-items:center!important;
  align-content:center!important;
  text-align:center!important;
  scroll-snap-align:start!important;
  scroll-snap-stop:always!important;
}
.profile-info-carousel + .carousel-dots.profile-carousel-dots,
.day-nutrition-grid + .carousel-dots,
.home-macro-carousel .carousel-dots,
.today-meal-list + .carousel-dots,
.plan-nutrient-carousel + .carousel-dots{
  min-height:8px;
  margin-top:3px;
  opacity:.72;
}
.profile-health-grid>div{
  justify-items:center;
  text-align:center;
}
.profile-health-grid>div small{
  max-width:100%;
  text-align:center;
}
@media(max-width:759px){
  .profile-info-carousel[data-home-carousel]{
    --profile-card-width:min(178px,max(150px,calc(100vw - 252px)));
  }
}
@media(max-width:430px){
  .profile-info-carousel[data-home-carousel]{
    --profile-card-width:min(166px,max(122px,calc(100vw - 236px)));
  }
}
@media(max-width:374px){
  .profile-info-carousel[data-home-carousel]{
    --profile-card-width:min(166px,max(118px,calc(100vw - 222px)));
  }
}

.pre-open-step,
.pre-feature-card{
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.92))!important;
  box-shadow:0 14px 30px rgba(38,59,100,.07)!important;
}
.pre-open-step b,
.pre-feature-card strong{
  color:var(--ink);
  line-height:1.14;
}
.pre-open-step small,
.pre-feature-card small{
  color:#6d7790;
  line-height:1.35;
}
.pre-feature-card.primary-preview{
  border-color:rgba(0,139,102,.24)!important;
  background:linear-gradient(180deg,#fbfffd,#f6fffb)!important;
}
.pre-open-step{
  grid-template-columns:44px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:start;
  column-gap:12px;
  row-gap:4px;
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
.pre-open-step .feature-icon{
  grid-row:1 / 3;
  grid-column:1;
  position:relative;
  z-index:1;
}
.pre-open-step b,
.pre-open-step small{
  grid-column:2;
  min-width:0;
  position:relative;
  z-index:2;
  overflow-wrap:break-word;
}
.pre-open-step b{
  display:inline;
  width:max-content;
  max-width:100%;
  margin-top:3px;
  margin-left:-4px;
  padding:1px 4px 2px;
  border-radius:8px;
  background:rgba(255,255,255,.96);
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
}
@media(max-width:759px){
  .pre-open-steps[data-home-carousel] .pre-open-step{
    flex-basis:calc(100vw - 112px);
    width:calc(100vw - 112px);
    max-width:300px;
    min-height:124px;
    padding:14px;
  }
  .pre-open-steps[data-home-carousel] .pre-open-step b{
    max-width:100%;
  }
  .pre-open-features[data-home-carousel] .pre-feature-card{
    flex-basis:calc(100vw - 112px);
    width:calc(100vw - 112px);
    max-width:328px;
    min-height:112px;
    padding:15px;
  }
}

/* Final mobile polish: weight update, today import and quick menu actions */
.weight-change-modal{
  display:grid;
  gap:14px;
  padding-top:2px;
}
.weight-change-modal.required{
  padding:6px 0 4px;
}
.weight-change-modal.required .weight-change-head{
  padding:14px;
  border:1px solid rgba(102,127,255,.2);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(102,127,255,.12),rgba(247,166,83,.1));
}
.weight-change-modal.required .weight-change-head h2{
  font-size:1.18rem;
}
.weight-check-sheet .sheet-close{
  display:none!important;
}
.weight-change-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}
.weight-change-modal h2{
  max-width:100%;
  padding-right:0;
  font-size:1.12rem;
  line-height:1.18;
}
.weight-prompt-toggle{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:104px;
  min-height:38px;
  padding:4px 10px 4px 5px;
  border:1px solid rgba(127,135,153,.22);
  border-radius:999px;
  background:linear-gradient(180deg,#f8faff,#eef2ff);
  color:var(--muted);
  font-size:.7rem;
  font-weight:900;
  line-height:1;
  box-shadow:0 10px 22px rgba(47,68,112,.07),inset 0 1px 0 rgba(255,255,255,.9);
}
.weight-prompt-toggle span{
  position:relative;
  width:44px;
  height:28px;
  flex:0 0 auto;
  border-radius:999px;
  background:#dce3f2;
  box-shadow:inset 0 2px 5px rgba(47,68,112,.12);
}
.weight-prompt-toggle span:after{
  position:absolute;
  top:4px;
  left:4px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 4px 10px rgba(47,68,112,.18);
  content:"";
  transition:transform .2s ease,background .2s ease;
}
.weight-prompt-toggle.active{
  border-color:rgba(102,127,255,.28);
  background:linear-gradient(180deg,#f3f6ff,#e8ecff);
  color:var(--blue-deep);
}
.weight-prompt-toggle.active span{
  background:var(--blue);
}
.weight-prompt-toggle.active span:after{
  transform:translateX(16px);
}
.weight-change-form{
  display:grid;
  gap:12px;
  margin-top:2px;
}
.weight-change-input input{
  min-height:48px;
  text-align:center;
  font-weight:900;
}
.weight-change-input span{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.weight-change-input input::placeholder{
  color:var(--blue-deep);
  opacity:.72;
}
.weight-change-time{
  display:grid;
  gap:6px;
}
.weight-change-time span{
  color:var(--muted);
  font-size:.66rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.weight-change-time input{
  min-height:46px;
  text-align:center;
  font-weight:900;
}
.weight-change-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.weight-change-actions .primary,
.weight-change-actions .soft{
  min-width:0;
  min-height:44px;
  padding:0 10px;
  line-height:1.12;
  white-space:normal;
}
.goal-forecast-modal{
  display:grid;
  gap:14px;
  padding:2px 0 4px;
}
.goal-forecast-sheet{
  width:min(calc(100% - 28px),460px);
  margin-bottom:18px;
  border-bottom:1px solid var(--line);
  border-radius:28px;
}
.goal-forecast-head{
  display:grid;
  gap:6px;
  padding:14px;
  border:1px solid rgba(102,127,255,.18);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(102,127,255,.12),rgba(247,166,83,.12));
}
.goal-forecast-head h2{
  padding-right:0;
  color:var(--ink);
  font-size:1.12rem;
  line-height:1.17;
}
.goal-forecast-head p:not(.eyebrow){
  color:var(--text);
  font-size:.9rem;
  font-weight:800;
}
.goal-forecast-field{
  display:grid;
  gap:7px;
}
.goal-forecast-field span{
  color:var(--muted);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.goal-forecast-field input{
  min-height:50px;
  text-align:center;
  font-size:1.04rem;
  font-weight:900;
}
.goal-forecast-note{
  display:block;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface-2);
  color:var(--muted);
  font-size:.8rem;
  font-weight:800;
  line-height:1.35;
}
.goal-forecast-note b,
.goal-forecast-note span{
  display:block;
}
.goal-forecast-note b{
  margin-bottom:3px;
  color:var(--ink);
  font-weight:950;
}
.goal-forecast-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.goal-review-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.goal-review-actions .primary{
  grid-column:1/-1;
}
.goal-forecast-actions button,
.goal-review-actions button{
  min-width:0;
  min-height:46px;
  padding:0 10px;
  line-height:1.12;
  white-space:normal;
}
.goal-reached-note{
  background:linear-gradient(135deg,rgba(102,127,255,.1),rgba(248,171,91,.08));
}
.goal-reached-sheet{
  width:min(calc(100% - 24px),540px);
}
.goal-reached-modal{
  display:grid;
  gap:14px;
}
.goal-reached-summary{
  display:grid;
  gap:12px;
}
.goal-reached-stats,
.goal-reached-grid{
  display:grid;
  gap:8px;
}
.goal-reached-stats{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.goal-reached-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.goal-reached-stats article,
.goal-reached-grid article{
  min-width:0;
  padding:11px 12px;
  border:1px solid rgba(102,127,255,.18);
  border-radius:16px;
  background:var(--surface);
  box-shadow:0 10px 24px rgba(28,43,74,.06);
}
.goal-reached-stats article{
  text-align:center;
}
.goal-reached-stats span,
.goal-reached-grid span{
  display:block;
  color:var(--muted);
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.05em;
  line-height:1.15;
  text-transform:uppercase;
}
.goal-reached-stats b,
.goal-reached-grid b{
  display:block;
  margin-top:5px;
  color:var(--ink);
  font-size:.94rem;
  font-weight:950;
  line-height:1.12;
  overflow-wrap:anywhere;
}
.goal-reached-grid small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:800;
  line-height:1.22;
}
.goal-reached-required{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.goal-reached-required article{
  padding:12px;
  border:1px solid rgba(102,127,255,.22);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(102,127,255,.1),rgba(248,171,91,.08));
}
.goal-reached-required span{
  display:block;
  color:var(--muted);
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.goal-reached-required b{
  display:block;
  margin-top:5px;
  color:var(--ink);
  font-size:.82rem;
  line-height:1.2;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .goal-reached-required article{
  border-color:rgba(132,151,255,.32);
  background:linear-gradient(135deg,rgba(102,127,255,.2),rgba(248,171,91,.12));
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .goal-reached-required b{
  color:#fff;
}
.goal-certificate-card{
  position:relative;
  display:grid;
  gap:8px;
  padding:16px;
  overflow:hidden;
  border:1px solid rgba(102,127,255,.22);
  border-radius:22px;
  background:
    radial-gradient(circle at 92% 12%,rgba(247,166,83,.22),transparent 34%),
    linear-gradient(135deg,rgba(102,127,255,.12),rgba(255,255,255,.92));
}
.goal-certificate-card:after{
  content:"";
  position:absolute;
  right:-24px;
  bottom:-34px;
  width:132px;
  aspect-ratio:1;
  border:24px solid rgba(102,127,255,.08);
  border-radius:50%;
  pointer-events:none;
}
.goal-certificate-card h3{
  color:var(--ink);
  font-size:1.05rem;
  line-height:1.12;
}
.goal-certificate-copy{
  min-height:58px;
  color:var(--text);
  font-size:.88rem;
  font-weight:800;
  line-height:1.35;
}
.goal-certificate-card button{
  position:relative;
  z-index:1;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .goal-reached-stats article,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .goal-reached-grid article{
  background:rgba(18,32,58,.92);
  border-color:rgba(139,160,255,.26);
  box-shadow:none;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .goal-certificate-card{
  background:
    radial-gradient(circle at 92% 12%,rgba(247,166,83,.2),transparent 34%),
    linear-gradient(135deg,rgba(35,58,102,.94),rgba(18,32,58,.96));
  border-color:rgba(139,160,255,.34);
}
@media (max-width:420px){
  .goal-reached-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .goal-reached-grid{
    grid-template-columns:1fr;
  }
}
.today-meal-list .meal-actions{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:8px;
  align-items:center;
}
.today-meal-list .meal-actions .meal-status-tag,
.today-meal-list .meal-actions .meal-import-button{
  width:100%;
  min-width:0;
  min-height:38px;
  padding:0 8px;
  font-size:.72rem;
  white-space:nowrap;
}
.meal-import-button{
  border:1px solid rgba(94,124,246,.24);
  background:rgba(94,124,246,.08);
  color:var(--blue-deep);
  box-shadow:none;
}
.action-title{
  margin-top:12px;
  margin-bottom:10px;
  font-size:1.08rem;
  letter-spacing:-.01em;
}
.add-today-meal-button{
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(82%,360px);
  margin:16px auto 6px;
  border:1px solid rgba(94,124,246,.24);
  background:rgba(94,124,246,.10);
  color:var(--blue-deep);
  box-shadow:0 10px 24px rgba(94,124,246,.10);
}
:root[data-visual-theme="color2"] .add-today-meal-button{
  border-color:rgba(238,155,74,.34);
  background:rgba(238,155,74,.22);
  color:#17364d;
  box-shadow:0 10px 24px rgba(238,155,74,.12);
}
.ai-fab{
  border-color:rgba(238,155,74,.46);
  background:linear-gradient(145deg,#ee9b4a 0%,#f4ad62 58%,#ffd6a8 100%);
  color:#fff;
  box-shadow:0 14px 32px rgba(238,155,74,.22),0 8px 22px rgba(47,68,112,.10);
}
.ai-fab.anchored{
  position:absolute;
}
.ai-fab img{
  background:rgba(255,255,255,.2);
}
.ai-fab span{
  background:#fff;
  color:#17364d;
}
.ai-fab .brand-wordmark,
.ai-fab b{
  color:#fff;
}
:root[data-visual-theme="color2"] .ai-fab{
  border-color:rgba(238,155,74,.55);
  background:linear-gradient(145deg,#ee9b4a 0%,#f0a556 62%,#17364d 160%);
  box-shadow:0 16px 34px rgba(238,155,74,.26),0 8px 22px rgba(23,54,77,.12);
}
.help-choice-modal{
  display:grid;
  gap:14px;
}
.help-choice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.help-choice-card{
  display:grid;
  justify-items:start;
  gap:7px;
  min-height:126px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  color:var(--ink);
  box-shadow:var(--shadow-soft);
  text-align:left;
}
.help-choice-card span{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:50%;
  background:var(--blue-soft);
  color:var(--blue);
  font-weight:900;
}
.help-choice-card span.guide,
.app-menu-icon.guide{
  position:relative;
  background:linear-gradient(135deg,#eaf0ff,#fff);
  color:var(--blue);
}
.help-choice-card span.guide:before,
.app-menu-icon.guide:before{
  width:16px;
  height:16px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-bottom-color:transparent;
  border-radius:50%;
  content:"";
  transform:rotate(-35deg);
}
.help-choice-card span.guide:after,
.app-menu-icon.guide:after{
  position:absolute;
  width:5px;
  height:5px;
  border-radius:50%;
  background:currentColor;
  content:"";
}
.help-choice-card.theme span{
  background:#fff2e3;
  color:#ee8f3c;
}
.help-choice-card.theme[data-visual-theme-choice]{
  position:relative;
  min-height:132px;
  overflow:hidden;
  isolation:isolate;
  align-content:end;
  padding:16px;
}
.help-choice-card.theme[data-visual-theme-choice]:before,
.help-choice-card.theme[data-visual-theme-choice]:after{
  display:none;
}
.help-choice-card.theme[data-visual-theme-choice] b{
  align-self:end;
  color:#fff;
  font-size:.92rem;
  max-width:100%;
  line-height:1.08;
  text-shadow:0 2px 10px rgba(20,24,36,.28);
}
.help-choice-card.theme[data-visual-theme-choice="default"]{
  border-color:rgba(102,127,255,.34);
  background:
    radial-gradient(circle at 18% 22%,rgba(234,240,255,.70) 0 7%,transparent 8%),
    radial-gradient(circle at 78% 18%,rgba(255,159,113,.24) 0 11%,transparent 12%),
    radial-gradient(circle at 22% 88%,rgba(102,127,255,.46) 0 22%,transparent 23%),
    linear-gradient(165deg,rgba(255,255,255,.08) 0 18%,transparent 19% 100%),
    linear-gradient(135deg,#6680ff 0%,#405cae 46%,#142342 100%);
}
.help-choice-card.theme[data-visual-theme-choice="prometheus"]{
  border-color:rgba(255,122,18,.48);
  background:
    radial-gradient(circle at 16% 20%,rgba(255,236,205,.74) 0 8%,transparent 9%),
    radial-gradient(circle at 77% 20%,rgba(255,178,95,.40) 0 12%,transparent 13%),
    radial-gradient(circle at 88% 88%,rgba(139,30,8,.48) 0 20%,transparent 21%),
    linear-gradient(155deg,rgba(255,244,225,.22) 0 16%,transparent 17%),
    linear-gradient(135deg,#ff2a12 0%,#ff6f12 30%,#b39100 54%,#e7d8cf 74%,#8b1e08 100%);
  box-shadow:0 18px 38px rgba(139,30,8,.22);
}
.help-choice-card.theme[data-visual-theme-choice="color2"]{
  border-color:rgba(238,155,74,.34);
  background:
    radial-gradient(circle at 18% 20%,rgba(255,255,255,.82) 0 9%,transparent 10%),
    radial-gradient(circle at 76% 22%,rgba(23,54,77,.26) 0 15%,transparent 16%),
    radial-gradient(circle at 18% 88%,rgba(255,180,89,.40) 0 21%,transparent 22%),
    linear-gradient(145deg,rgba(255,255,255,.18) 0 17%,transparent 18%),
    linear-gradient(135deg,#fff4de 0%,#ee9b4a 50%,#17364d 112%);
}
.help-choice-card.theme[data-visual-theme-choice="dark"]{
  border-color:rgba(139,160,255,.36);
  background:
    radial-gradient(circle at 20% 22%,rgba(255,255,255,.20) 0 9%,transparent 10%),
    radial-gradient(circle at 78% 20%,rgba(140,105,225,.54) 0 15%,transparent 16%),
    radial-gradient(circle at 24% 88%,rgba(70,101,185,.48) 0 22%,transparent 23%),
    linear-gradient(160deg,rgba(255,255,255,.07) 0 14%,transparent 15%),
    linear-gradient(135deg,#11182f 0%,#241b48 50%,#070b18 100%);
}
.help-choice-card.theme[data-visual-theme-choice="female"]{
  border-color:rgba(228,164,197,.48);
  background:
    radial-gradient(circle at 18% 20%,rgba(255,255,255,.84) 0 10%,transparent 11%),
    radial-gradient(circle at 78% 24%,rgba(255,255,255,.28) 0 16%,transparent 17%),
    radial-gradient(circle at 22% 90%,rgba(228,164,197,.54) 0 21%,transparent 22%),
    linear-gradient(155deg,rgba(255,255,255,.18) 0 17%,transparent 18%),
    linear-gradient(135deg,#fff0f8 0%,#e9aacb 52%,#4d3358 108%);
}
.help-choice-card.theme[data-visual-theme-choice="abacate"]{
  border-color:rgba(148,184,92,.38);
  background:
    radial-gradient(circle at 18% 20%,rgba(255,255,255,.74) 0 10%,transparent 11%),
    radial-gradient(circle at 74% 22%,rgba(232,183,87,.38) 0 15%,transparent 16%),
    radial-gradient(circle at 82% 88%,rgba(67,119,64,.42) 0 22%,transparent 23%),
    linear-gradient(150deg,rgba(255,255,255,.14) 0 16%,transparent 17%),
    linear-gradient(135deg,#f3ffd1 0%,#b2d76e 48%,#4d7a4d 100%);
}
.help-choice-card.theme[data-visual-theme-choice="cheese"]{
  border-color:rgba(255,201,90,.44);
  background:
    radial-gradient(circle at 20% 18%,rgba(255,255,255,.76) 0 10%,transparent 11%),
    radial-gradient(circle at 78% 20%,rgba(255,201,111,.60) 0 16%,transparent 17%),
    radial-gradient(circle at 84% 88%,rgba(92,99,128,.34) 0 22%,transparent 23%),
    linear-gradient(150deg,rgba(255,255,255,.22) 0 16%,transparent 17%),
    linear-gradient(135deg,#fff5c9 0%,#ffe078 52%,#5c6380 108%);
}
.help-choice-card.theme[data-visual-theme-choice="yellowgray"]{
  border-color:rgba(220,189,101,.5);
  background:
    radial-gradient(circle at 18% 18%,rgba(255,255,255,.76) 0 9%,transparent 10%),
    radial-gradient(circle at 72% 18%,rgba(255,219,91,.66) 0 16%,transparent 17%),
    radial-gradient(circle at 82% 88%,rgba(130,138,148,.38) 0 23%,transparent 24%),
    linear-gradient(150deg,rgba(255,255,255,.20) 0 15%,transparent 16%),
    linear-gradient(135deg,#ffe26a 0%,#f2d678 42%,#dfe3e7 76%,#7e8794 118%);
}
.help-choice-card.theme[data-visual-theme-choice="strawberry-fields"]{
  border-color:rgba(233,154,160,.48);
  background:linear-gradient(180deg,#e99aa0 0%,#f4c1b9 27%,#ecd9d8 45%,#f8e3a8 66%,#fff1d0 100%);
  box-shadow:0 18px 38px rgba(181,92,0,.1);
}
.help-choice-card[data-visual-theme-choice] span:before{
  width:22px;
  height:22px;
  border-radius:50%;
  content:"";
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7);
}
.help-choice-card[data-visual-theme-choice="default"] span:before{
  background:linear-gradient(135deg,#667FFF,#293D66);
}
.help-choice-card[data-visual-theme-choice="prometheus"] span:before{
  background:linear-gradient(135deg,#ff2a12 0 28%,#ff7a12 29% 52%,#b39100 53% 70%,#e7d8cf 71% 86%,#8b1e08 87%);
}
.help-choice-card[data-visual-theme-choice="color2"] span:before{
  background:linear-gradient(135deg,#FFF6E8 0 44%,#EE9B4A 45% 68%,#17364D 69%);
}
.help-choice-card[data-visual-theme-choice="dark"] span:before{
  background:linear-gradient(135deg,#101827,#8BA0FF);
}
.help-choice-card[data-visual-theme-choice="female"] span:before{
  background:linear-gradient(135deg,#FFEAF4 0 34%,#E4A4C5 35% 58%,#3B2741 59% 100%);
}
.help-choice-card[data-visual-theme-choice="strawberry-fields"] span:before{
  background:linear-gradient(180deg,#e99aa0 0%,#f4c1b9 27%,#ecd9d8 45%,#f8e3a8 66%,#fff1d0 100%);
}
.help-choice-card.theme.active{
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(102,127,255,.12),var(--shadow-soft);
}
.help-choice-card b{
  font-size:.92rem;
  line-height:1.15;
}
.help-choice-card small{
  color:var(--muted);
  font-size:.75rem;
  font-weight:800;
  line-height:1.35;
}
.app-menu-modal{
  display:grid;
  gap:14px;
}
.app-menu-sheet{
  align-self:flex-start;
  width:min(calc(100% - 24px),520px);
  max-height:min(88dvh,720px);
  overflow-y:auto;
  overscroll-behavior:contain;
  margin:12px auto 0;
  border:1px solid var(--line);
  border-radius:0 0 28px 28px;
  animation:appMenuDrop .18s ease-out;
}
@keyframes appMenuDrop{
  from{opacity:0;transform:translateY(-18px)}
  to{opacity:1;transform:translateY(0)}
}
.app-menu-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.app-menu-card{
  display:grid;
  justify-items:start;
  gap:7px;
  min-height:118px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  color:var(--ink);
  box-shadow:var(--shadow-soft);
  text-align:left;
}
.app-menu-icon{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:50%;
  background:var(--blue-soft);
  color:var(--blue);
  font-size:.76rem;
  font-weight:900;
}
.app-menu-icon.paint{
  position:relative;
  background:#fff2e3;
  color:#ee8f3c;
}
.app-menu-icon.paint:before{
  width:23px;
  height:17px;
  border:2px solid currentColor;
  border-radius:5px;
  content:"";
}
.app-menu-icon.paint:after{
  position:absolute;
  right:9px;
  bottom:8px;
  width:3px;
  height:13px;
  border-radius:999px;
  background:currentColor;
  content:"";
  transform:rotate(-18deg);
}
.app-menu-card b{
  color:var(--ink);
  font-size:.92rem;
  line-height:1.15;
}
.app-menu-card small{
  color:var(--muted);
  font-size:.75rem;
  font-weight:800;
  line-height:1.35;
}
.app-menu-card[data-app-appearance]{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  align-content:end;
  min-height:118px;
  padding:14px;
  background:var(--menu-appearance-bg);
  color:var(--menu-appearance-text);
}
.app-menu-card[data-app-appearance]:before{
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(135deg,rgba(10,18,34,.86) 0%,rgba(10,18,34,.55) 46%,rgba(10,18,34,.18) 100%);
  content:"";
}
.app-menu-card[data-app-appearance] .app-menu-icon{
  display:none;
}
.app-menu-card[data-app-appearance] b,
.app-menu-card[data-app-appearance] small{
  color:var(--menu-appearance-text);
  text-shadow:0 2px 10px rgba(8,16,36,.34);
}
.app-menu-card[data-app-appearance] small{
  max-width:210px;
  color:var(--menu-appearance-muted);
}
.app-menu-card[disabled]{
  opacity:.78;
}
.first-access-tutorial-grid{
  grid-template-columns:1fr;
}
.first-access-tutorial-grid .help-choice-card{
  min-height:104px;
}
.tutorial-menu-sheet{
  display:grid;
  gap:14px;
}
.tutorial-menu-title{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:4px 54px 12px 0;
  border-bottom:1px solid var(--line);
}
.tutorial-menu-title>span{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:18px;
  background:linear-gradient(135deg,#eaf0ff,#fff);
  color:var(--blue);
  box-shadow:0 14px 30px rgba(102,127,255,.16);
}
.tutorial-menu-title h2{
  padding:0;
  color:var(--ink);
  font-size:1.22rem;
  line-height:1.08;
}
.tutorial-menu-title p{
  margin-top:4px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:850;
  line-height:1.32;
}
.tutorial-row-list{
  display:grid;
  gap:8px;
}
.tutorial-row-card{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:4px;
  min-height:72px;
  padding:13px 14px;
  border:1px solid color-mix(in srgb,var(--blue) 18%,var(--line));
  border-radius:18px;
  background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--blue-soft) 28%,#fff));
  color:var(--ink);
  box-shadow:0 14px 30px rgba(41,61,102,.08);
  text-align:left;
}
.tutorial-row-card.primary-row{
  grid-template-columns:minmax(112px,.72fr) minmax(0,1fr);
  align-items:center;
  gap:14px;
}
.tutorial-row-card b{
  display:block;
  color:var(--ink);
  font-size:.96rem;
  line-height:1.08;
}
.tutorial-row-card small{
  display:block;
  margin-top:4px;
  color:var(--blue);
  font-size:.72rem;
  font-weight:950;
  line-height:1.15;
}
.tutorial-row-card em{
  color:var(--muted);
  font-size:.75rem;
  font-style:normal;
  font-weight:850;
  line-height:1.35;
}
.tutorial-menu-lines{
  gap:16px;
}
.tutorial-line-list{
  display:grid;
  gap:4px;
  padding:2px 0;
}
.tutorial-line-sublist{
  display:grid;
  gap:2px;
  padding-left:16px;
  border-left:1px solid color-mix(in srgb,var(--blue) 18%,var(--line));
}
.tutorial-line-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:44px;
  width:100%;
  padding:9px 10px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--ink);
  text-align:left;
  box-shadow:none;
}
.tutorial-line-item:hover,
.tutorial-line-item:focus-visible{
  background:color-mix(in srgb,var(--blue-soft) 48%,#fff);
}
.tutorial-line-item:after{
  content:"";
  width:7px;
  height:7px;
  border-top:2px solid color-mix(in srgb,var(--blue) 72%,var(--muted));
  border-right:2px solid color-mix(in srgb,var(--blue) 72%,var(--muted));
  border-radius:1px;
  transform:rotate(45deg);
  opacity:.72;
}
.tutorial-line-item b{
  color:var(--ink);
  font-size:.96rem;
  font-weight:950;
  line-height:1.1;
}
.tutorial-line-main{
  min-height:50px;
  padding-inline:12px;
}
.tutorial-line-main b{
  font-size:1.08rem;
}
@media(max-width:360px){
  .help-choice-grid,.app-menu-grid{grid-template-columns:1fr}
  .tutorial-row-card.primary-row{grid-template-columns:1fr}
}
@media(max-width:370px){
  .weight-change-actions,
  .today-meal-list .meal-actions{
    grid-template-columns:1fr;
  }
}

.meal-edit-row.compact{
  --meal-edit-tone:var(--blue);
  --meal-edit-tint:var(--meal-editor-card-tint);
  gap:8px;
  padding:10px 11px;
  border-color:color-mix(in srgb,var(--meal-edit-tone) 22%,var(--line));
  border-radius:18px;
  background:
    linear-gradient(90deg,color-mix(in srgb,var(--meal-edit-tone) 24%,transparent) 0 3px,transparent 3px),
    linear-gradient(135deg,var(--meal-edit-tint),var(--meal-editor-card-surface) 72%);
  box-shadow:0 8px 20px color-mix(in srgb,var(--meal-edit-tone) 8%,transparent);
}
.meal-edit-list>.meal-edit-row.compact:nth-child(4n+1){
  --meal-edit-tone:var(--blue);
}
.meal-edit-list>.meal-edit-row.compact:nth-child(4n+2){
  --meal-edit-tone:var(--green);
}
.meal-edit-list>.meal-edit-row.compact:nth-child(4n+3){
  --meal-edit-tone:var(--orange);
}
.meal-edit-list>.meal-edit-row.compact:nth-child(4n){
  --meal-edit-tone:var(--red);
}
.meal-edit-row.compact .meal-edit-row-head{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
}
.meal-edit-row.compact .grow b{
  font-size:.94rem;
  line-height:1.18;
}
.today-meal-goal{
  margin:10px 0 0;
}
.meal-edit-mainline{
  display:grid;
  grid-template-columns:minmax(82px,106px) minmax(0,auto) auto;
  gap:7px;
  align-items:end;
}
.meal-edit-row.compact .meal-amount-field{
  max-width:none;
}
.meal-edit-row.compact .meal-amount-field input{
  min-height:38px;
  padding:0 10px;
  border-color:color-mix(in srgb,var(--meal-edit-tone) 18%,var(--line));
  background:var(--meal-editor-input-surface);
  font-weight:900;
  text-align:center;
}
.meal-edit-row.compact .filling-add-button{
  min-height:38px;
  justify-self:start;
  width:auto;
  padding:0 11px;
  border-color:color-mix(in srgb,var(--meal-edit-tone) 24%,var(--line));
  background:var(--meal-editor-action-surface);
  color:var(--blue-deep);
  box-shadow:none;
}
.meal-edit-row.compact .filling-add-button b{
  display:inline-grid;
  place-items:center;
  min-width:20px;
  height:20px;
  margin-left:5px;
  border-radius:999px;
  background:var(--blue);
  color:#fff;
  font-size:.68rem;
}
.meal-inline-actions{
  grid-template-columns:42px 42px 42px minmax(74px,1fr);
}
.meal-inline-actions button{
  min-height:42px;
  padding:0 8px;
  border-radius:15px;
  font-size:.74rem;
  font-weight:950;
  white-space:normal;
  line-height:1.05;
}
.meal-inline-actions .meal-inline-remove-button{
  border:1px solid rgba(168,77,98,.22);
  background:linear-gradient(180deg,#fff7f8,#fff);
  color:#9b2f42;
  box-shadow:none;
}
.filling-edit-list.compact{
  display:grid;
  justify-items:stretch;
  gap:7px;
  margin-top:0;
}
.meal-food-details{
  align-self:end;
  border-top:0;
  padding-top:0;
}
.meal-food-details summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  cursor:pointer;
  color:var(--blue-deep);
  font-size:.76rem;
  font-weight:900;
}
.meal-food-details summary::-webkit-details-marker{
  display:none;
}
.meal-food-details summary:after{
  content:"+";
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--meal-editor-action-surface);
  color:var(--meal-edit-tone);
}
.meal-food-details[open] summary:after{
  content:"-";
}
.meal-food-detail-body{
  display:grid;
  gap:7px;
  padding-top:7px;
  color:var(--muted);
  font-size:.78rem;
}
@media(max-width:430px){
  .meal-edit-mainline{
    grid-template-columns:minmax(76px,96px) minmax(0,1fr) auto;
  }
  .meal-inline-actions{
    grid-template-columns:38px 38px 38px minmax(70px,1fr)!important;
    gap:6px!important;
  }
  .meal-inline-actions button{
    min-width:0!important;
    padding:0 7px!important;
    font-size:.68rem!important;
  }
  .meal-inline-actions button.icon-only{
    width:38px!important;
    min-width:38px!important;
    padding:0!important;
  }
  .meal-edit-row.compact .filling-add-button{
    max-width:142px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}
:root[data-visual-theme="color2"] .meal-edit-row.compact .filling-add-button{
  border-color:rgba(238,155,74,.30);
  background:rgba(238,155,74,.16);
}
#homeProfile:empty{
  display:none;
}
#homeProfile.profile-card{
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
:root[data-visual-theme="color2"] .hero-avatar,
:root[data-visual-theme="color2"] .avatar,
:root[data-visual-theme="color2"] .profile-person .hero-avatar{
  border-color:rgba(109,137,255,.20);
  background:#EAF0FF;
  color:#4662C8;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]){
  --bg:#0B1020;
  --app-bg:#101827;
  --surface:#172033;
  --surface-2:#151E31;
  --surface-3:#1B2740;
  --card:#121B2D;
  --field:#101827;
  --ink:#F5F7FF;
  --text:#D9E0F2;
  --muted:#98A7C4;
  --faint:#71809E;
  --line:rgba(219,229,255,.13);
  --line-soft:rgba(219,229,255,.08);
  --blue:#8BA0FF;
  --blue-soft:rgba(139,160,255,.16);
  --blue-deep:#F5F7FF;
  --orange:#F0A556;
  --peach:#F4BA8A;
  --peach-soft:rgba(240,165,86,.14);
  --green:#8DD0A4;
  --red:#FF8B90;
  --red-soft:rgba(255,139,144,.12);
  --cream:#161F32;
  --shadow:0 24px 54px rgba(0,0,0,.38);
  --shadow-soft:0 14px 34px rgba(0,0,0,.24);
  --shell-bg:#0B1020;
  --shell-desktop-bg:linear-gradient(135deg,#0B1020 0%,#101A30 58%,#172033 100%);
  --top-surface:rgba(18,27,45,.92);
  --nav-surface:rgba(18,27,45,.94);
  --modal-backdrop:rgba(3,8,18,.66);
  --modal-surface:#101827;
  --modal-header-surface:rgba(16,24,39,.96);
  --modal-shadow:0 -24px 58px rgba(0,0,0,.46);
  --drawer-backdrop:rgba(3,8,18,.62);
  --drawer-surface:#0E1729;
  --drawer-header-surface:rgba(14,23,41,.94);
  --drawer-shadow:-24px 0 54px rgba(0,0,0,.38);
  --profile-option-surface:#16233D;
  --profile-muted-surface:#16233D;
  --ai-fab-surface:linear-gradient(145deg,#F0A556 0%,#E88C38 72%,#7B4C2A 160%);
  --ai-fab-shadow:0 14px 34px rgba(0,0,0,.28);
  --ai-chat-surface:linear-gradient(180deg,rgba(14,22,38,.98),rgba(10,17,31,.98));
  --ai-chat-header-surface:linear-gradient(180deg,rgba(14,22,38,.98),rgba(10,17,31,.98));
  --ai-chat-messages-surface:linear-gradient(180deg,#0B1324 0%,#101B31 100%);
  --ai-chat-form-surface:linear-gradient(180deg,rgba(14,22,38,.98),rgba(10,17,31,.98));
  --ai-message-surface:linear-gradient(180deg,rgba(23,32,51,.98),rgba(18,27,45,.94));
  --ai-user-message-surface:var(--blue);
  --ai-action-surface:linear-gradient(145deg,rgba(26,40,67,.98),rgba(16,27,48,.96));
  --ai-action-high-surface:linear-gradient(145deg,rgba(240,165,86,.16),rgba(16,27,48,.96));
  --ai-clear-surface:#172641;
  --ai-guided-surface:rgba(16,24,39,.96);
  --premium-sheet-surface:#101827;
  --premium-hero-surface:linear-gradient(135deg,#223B70,#101827);
  --premium-logo-surface:#172033;
  --premium-card-surface:#16233D;
  --premium-muted-surface:#151E31;
  --premium-option-surface:#16233D;
  --premium-option-active-surface:#223B70;
  --premium-primary-surface:#8BA0FF;
  --premium-secondary-surface:#101A30;
  --premium-qr-surface:#FFFFFF;
  --premium-success-surface:rgba(141,208,164,.15);
  --premium-danger-surface:rgba(255,139,144,.12);
  --food-card-surface:var(--card);
  --food-choice-surface:#16233D;
  --food-choice-active-surface:#223B70;
  --food-image-surface:rgba(139,160,255,.18);
  --food-upload-surface:rgba(139,160,255,.16);
  --food-upload-preview-surface:#172033;
  --food-photo-surface:rgba(240,165,86,.14);
  --food-guide-surface:#101827;
  --food-facts-surface:#16233D;
  --food-success-surface:rgba(141,208,164,.15);
  --food-danger-surface:rgba(255,139,144,.12);
  --recipe-card-surface:#16233D;
  --recipe-stage-surface:linear-gradient(180deg,#151E31,#121B2D);
  --recipe-chip-surface:#101827;
  --diary-panel-surface:transparent;
  --diary-glass-surface:radial-gradient(circle at 16% 0%,rgba(139,160,255,.12),rgba(139,160,255,0) 42%),linear-gradient(180deg,rgba(22,35,61,.82),rgba(14,23,41,.7));
  --diary-period-surface:var(--diary-glass-surface);
  --diary-card-surface:#16233D;
  --diary-chart-surface:linear-gradient(180deg,#172845,#13223B);
  --diary-control-surface:#16233D;
  --diary-control-muted-surface:rgba(18,34,61,.72);
  --diary-control-active-surface:#223B70;
  --diary-stat-surface:linear-gradient(135deg,#16233D,#111D33 76%);
  --diary-stat-active-surface:#223B70;
  --diary-stat-adherence-surface:linear-gradient(135deg,#18304B,#111D33 76%);
  --diary-reading-surface:linear-gradient(135deg,#16233D,#111D33 76%);
  --diary-log-item-surface:#111D33;
  --diary-grid-line:rgba(221,229,255,.18);
  --diary-strong:#F7F9FF;
  --diary-muted:#B9C5E4;
  --meal-editor-sheet-surface:#0E1729;
  --meal-editor-header-surface:#0E1729;
  --meal-editor-card-surface:#15233D;
  --meal-editor-card-tint:color-mix(in srgb,var(--meal-edit-tone,var(--blue)) 16%,#15233D);
  --meal-editor-input-surface:color-mix(in srgb,var(--meal-edit-tone,var(--blue)) 12%,#0F1B30);
  --meal-editor-action-surface:rgba(143,160,255,.13);
  --meal-editor-footer-surface:linear-gradient(to bottom,rgba(14,23,41,0),#0E1729 24%);
  --meal-editor-detail-surface:#111D33;
  --meal-log-card-surface:#16233D;
  --meal-log-control-surface:#0F1A2E;
  --meal-log-ate-surface:#285A42;
  --meal-log-skipped-surface:#5A2532;
  --outside-sheet-surface:#0E1729;
  --outside-header-surface:#0E1729;
  --outside-panel-surface:linear-gradient(135deg,#16233D,#111D33 76%);
  --outside-card-surface:#16233D;
  --outside-preview-surface:#111D33;
  --outside-muted-surface:#101A30;
  --outside-footer-surface:linear-gradient(to bottom,rgba(14,23,41,0),#0E1729 34%);
  --outside-warning-surface:rgba(240,165,86,.14);
  --outside-over-surface:rgba(240,165,86,.16);
  --outside-icon-surface:linear-gradient(135deg,rgba(240,165,86,.20),rgba(143,160,255,.14));
  --outside-soft-action-surface:rgba(143,160,255,.13);
  --schedule-page-surface:#101A30;
  --schedule-hero-surface:linear-gradient(135deg,#101A30,#17284A);
  --schedule-card-surface:#101A30;
  --schedule-muted-surface:#111D33;
  --schedule-day-surface:#16243E;
  --schedule-day-active-surface:#213A68;
  --schedule-icon-surface:#203761;
  --schedule-modal-surface:#0E1729;
  --schedule-modal-header-surface:#0E1729;
  --schedule-field-surface:#111D33;
  --schedule-notify-card-surface:linear-gradient(135deg,#111C31 0%,#172846 100%);
  --schedule-switch-surface:#243454;
  --schedule-switch-on-surface:linear-gradient(135deg,#285A42,#3E7A58);
  --menu-appearance-bg:linear-gradient(135deg,rgba(5,12,30,.78) 0%,rgba(5,12,30,.42) 44%,rgba(5,12,30,.10) 76%),var(--menu-appearance-image) center/cover no-repeat;
  --menu-appearance-text:#fffdf7;
  --menu-appearance-muted:#edf3ff;
  --control-surface:#172033;
  color-scheme:dark;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) html,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) body{
  background:#0B1020;
  color:var(--text);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app{
  background:radial-gradient(circle at 50% 0,rgba(102,127,255,.16),transparent 260px),var(--app-bg);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-top,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .bottom-nav,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .sheet,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal{
  border-color:var(--line);
  background:rgba(18,27,45,.92);
  color:var(--text);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .bottom-nav .active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-tabs .active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .carousel-dots i.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .carousel-dots button.active{
  background:var(--blue);
  color:#0B1020;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .panel,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-profile-summary,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-main-stat,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-row div,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-row button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-range-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-macro-carousel .day-macro,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .action-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .pre-open-step,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .pre-feature-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-mode-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .today-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chart-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .select-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .help-choice-card:not([data-visual-theme-choice]){
  border-color:var(--line)!important;
  background:linear-gradient(180deg,rgba(23,32,51,.98),rgba(18,27,45,.94))!important;
  box-shadow:var(--shadow-soft)!important;
  color:var(--text);
}
.meal-inline-actions button.icon-only{
  display:grid;
  place-items:center;
  width:42px;
  min-width:42px;
  padding:0;
  font-size:1.05rem;
  line-height:1;
}
.meal-measure-button{
  min-width:74px!important;
  white-space:nowrap!important;
}
.meal-measure-button.active{
  border-color:color-mix(in srgb,var(--blue) 42%,var(--line))!important;
  background:var(--blue-soft)!important;
  color:var(--blue-deep)!important;
}
.meal-measure-options{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  grid-column:1/-1;
  justify-content:center;
  padding:8px;
  border:1px solid color-mix(in srgb,var(--blue) 14%,var(--line));
  border-radius:14px;
  background:color-mix(in srgb,var(--blue-soft) 42%,var(--card) 58%);
}
.meal-measure-options button{
  min-height:31px;
  padding:0 10px;
  border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line));
  border-radius:999px;
  background:var(--card);
  color:var(--blue-deep);
  font-size:.62rem;
  font-weight:950;
}
.meal-measure-options button.active{
  border-color:var(--blue);
  background:var(--blue);
  color:#fff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .help-choice-card.theme[data-visual-theme-choice]{
  border-color:rgba(139,160,255,.24);
  box-shadow:0 18px 38px rgba(0,0,0,.34);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .help-choice-card.theme[data-visual-theme-choice] b{
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.42);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .help-choice-card.theme.active{
  border-color:#C6D3FF;
  box-shadow:0 0 0 2px rgba(198,211,255,.22),0 18px 38px rgba(0,0,0,.42);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-chat,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-chat-head,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-chat-form{
  border-color:var(--line);
  color:var(--text);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-chat-form.profile-locked textarea{background:rgba(14,23,41,.92);color:rgba(226,234,255,.62)}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-chat-form.profile-locked button[type="submit"],:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-chat-form.credit-locked button[type="submit"],:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-chat-form button[type="submit"]:disabled{border-color:rgba(122,141,178,.24);background:rgba(122,141,178,.22);color:rgba(226,234,255,.58);box-shadow:none}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-action-card{
  border:1px solid rgba(126,149,255,.28)!important;
  background:linear-gradient(145deg,rgba(26,40,67,.98),rgba(16,27,48,.96))!important;
  box-shadow:0 14px 30px rgba(0,0,0,.24)!important;
  color:#EAF0FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-action-card.high-impact{
  border-color:rgba(240,165,86,.36)!important;
  background:linear-gradient(145deg,rgba(240,165,86,.16),rgba(16,27,48,.96))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-action-card b{
  color:#F5F8FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-action-card span{
  color:#C9D5F3!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-action-card small{
  background:rgba(126,149,255,.18);
  color:#AFC0FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-action-buttons .soft{
  border-color:rgba(157,174,255,.26)!important;
  background:#0C1425!important;
  color:#F5F8FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-action-buttons .primary{
  background:linear-gradient(135deg,#8FA2FF,#758BFA)!important;
  color:#071225!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .pre-open-step b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .pre-feature-card strong{
  background:rgba(18,27,45,.96);
  color:var(--ink);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .pre-open-step small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .pre-feature-card small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .action-card small{
  color:var(--muted);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .primary,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-card .primary,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-actions .primary{
  background:linear-gradient(135deg,#8BA0FF,#6E87F0);
  color:#081024;
  box-shadow:0 15px 34px rgba(102,127,255,.22);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .soft,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ghost,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chip,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .day-tabs button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .segmented button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-tabs button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) select,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) textarea,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) fieldset{
  border-color:var(--line);
  background:#101827;
  color:var(--ink);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .icon-button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .drawer-close,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .sheet-close,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .language-toggle.compact,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .country-toggle.compact{
  border-color:var(--line);
  background:#172033;
  color:var(--ink);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-nutrient-focus{
  border-color:rgba(139,160,255,.16);
  background:transparent;
  box-shadow:none;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-macro-carousel .day-macro .progress,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-card .meal-macro-row,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-macro-strip,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .today-meal-list .meal-card .macro-strip{
  background:rgba(219,229,255,.08);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .hero-avatar,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .avatar,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-icon,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .action-icon,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .feature-icon{
  border-color:rgba(139,160,255,.20);
  background:rgba(139,160,255,.18);
  color:#DDE5FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-fab{
  border-color:rgba(240,165,86,.48);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-clear-chat{
  border-color:rgba(139,160,255,.22)!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-clear-chat:hover{
  border-color:rgba(139,160,255,.38)!important;
  background:#223B70!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .copilot-audit-card{
  border-color:rgba(139,160,255,.18)!important;
  background:linear-gradient(145deg,#121D34,#0B1324)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .copilot-audit-chips span{
  border-color:rgba(139,160,255,.22)!important;
  background:#17233D!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .copilot-audit-modal .eyebrow{
  color:#FFBC7A!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .copilot-audit-card span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .copilot-audit-note{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeProfile.profile-card{
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-profile-summary{
  border-color:rgba(219,229,255,.08)!important;
  background:transparent!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-info-carousel .profile-main-stat{
  border:1px solid rgba(219,229,255,.12)!important;
  background:rgba(255,255,255,.035)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-row div,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-range-card{
  border:1px solid rgba(219,229,255,.11)!important;
  background:rgba(255,255,255,.035)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-person:before{
  opacity:.22;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-info-carousel + .carousel-dots.profile-carousel-dots{
  margin-top:7px;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-tabs{
  gap:4px;
  padding:4px;
  border:1px solid rgba(219,229,255,.14);
  border-radius:999px;
  background:#0B1324;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-tabs button{
  border-color:transparent;
  background:transparent;
  color:#DDE5FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-tabs .active{
  border-color:rgba(139,160,255,.28);
  background:linear-gradient(135deg,#8BA0FF,#6E87F0);
  color:#081024;
  box-shadow:0 8px 20px rgba(102,127,255,.20);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-source,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-toolbar,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-filter-panel,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .search,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .picker-search{
  border-color:rgba(219,229,255,.13)!important;
  background:#101827!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-results-meta,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-filter-section>span{
  color:#AEBBDC!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-toolbar-top .food-add-inline,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-list-heading .food-toggle-visible{
  border-color:rgba(219,229,255,.13)!important;
  background:rgba(16,24,39,.72)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-choice,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-food-choice,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-create-choice{
  border-color:rgba(219,229,255,.13)!important;
  background:var(--food-choice-surface)!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card .grow b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-choice .grow b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-food-choice .grow b{
  color:#F5F7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card .grow span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-choice .grow span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-food-choice .grow span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-source{
  color:#AEBBDC!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-filter-panel .chip{
  border-color:rgba(219,229,255,.12)!important;
  background:#121B2D!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-filter-panel .chip.active{
  border-color:rgba(139,160,255,.52)!important;
  background:rgba(139,160,255,.20)!important;
  color:#F5F7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .macro b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .day-macro b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .macro b i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .day-macro b i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .log-summary b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-stats b{
  color:#F5F7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .macro span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .day-macro small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .day-macro small i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .log-summary span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-stats span{
  color:#AEBBDC!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .progress,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .macro .progress,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .day-macro .progress{
  background:#22314F!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal.open .drawer-close,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal.open .sheet-close{
  background:#17233D!important;
  color:#F5F7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-macro-carousel .day-macro:before{
  background:rgba(139,160,255,.78)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-macro-carousel .day-macro .macro-ring,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .macro-ring{
  background:rgba(139,160,255,.18)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-sheet{
  border-color:rgba(219,229,255,.16)!important;
  background:#0E1729!important;
  box-shadow:0 20px 46px rgba(0,0,0,.32)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .help-choice-card{
  border-color:rgba(139,160,255,.18)!important;
  background:#16233D!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-card b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .help-choice-card b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-card small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .help-choice-card small{
  color:#AEBBDC!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-icon{
  background:#21345C!important;
  color:#E8EEFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-icon.paint{
  background:#392B22!important;
  color:#F0A556!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .notify-card{
  border-color:rgba(139,160,255,.22);
  background:var(--schedule-notify-card-surface);
  box-shadow:0 14px 28px rgba(0,0,0,.18);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .notify-switch-row b{color:#F4F7FF}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .notify-switch-ui{border-color:rgba(139,160,255,.22);background:var(--schedule-switch-surface)}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .notify-permission-action{border-color:rgba(139,160,255,.24);background:#0E1729;color:#DDE5FF}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .notify-meal-sheet,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .notify-meal-sheet .notify-sheet-title{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--schedule-modal-surface)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .notify-meal-sheet .notify-sheet-title{
  box-shadow:0 -42px 0 var(--schedule-modal-header-surface),0 12px 24px rgba(0,0,0,.14)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .notify-meal-sheet .notify-sheet-title h2{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .notify-time-field>span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .notify-lead-field>span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .notify-permission-note{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .notify-time-field input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .notify-lead-field select,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .notify-meal-sheet .notify-card{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--schedule-field-surface)!important;
  color:#F7F9FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-row.compact{
  --meal-edit-tint:var(--meal-editor-card-tint);
  border-color:color-mix(in srgb,var(--meal-edit-tone) 34%,rgba(139,160,255,.20))!important;
  background:
    linear-gradient(90deg,color-mix(in srgb,var(--meal-edit-tone) 58%,transparent) 0 4px,transparent 4px),
    linear-gradient(135deg,var(--meal-edit-tint),var(--meal-editor-card-surface) 78%)!important;
  box-shadow:0 13px 28px rgba(0,0,0,.16)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-row.compact .meal-amount-field input{
  border-color:color-mix(in srgb,var(--meal-edit-tone) 30%,rgba(139,160,255,.22))!important;
  background:var(--meal-editor-input-surface)!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-row.compact .filling-add-button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-details summary:after{
  border-color:color-mix(in srgb,var(--meal-edit-tone) 28%,rgba(139,160,255,.22))!important;
  background:var(--meal-editor-action-surface)!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-icon:before{
  background-color:transparent!important;
  filter:brightness(0) saturate(100%) invert(91%) sepia(8%) saturate(714%) hue-rotate(190deg) brightness(106%) contrast(102%);
}
.sheet-close,
.drawer-close,
.measurement-guide-close{
  font-size:0!important;
}
.sheet-close:before,
.drawer-close:before,
.measurement-guide-close:before{
  content:"\00d7";
  font-size:1.24rem;
  line-height:1;
}
@media(max-width:370px){
  .meal-edit-mainline{
    grid-template-columns:1fr;
  }
}

/* Final home lower carousels: same motion language as the upper blocks */
#homePlanModes.home-plan-modes[data-home-carousel],
.home-actions[data-home-carousel]{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch;
  gap:12px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  margin:0!important;
  padding:0 14px 8px 0!important;
  scroll-padding-left:0;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
#homePlanModes.home-plan-modes[data-home-carousel]::-webkit-scrollbar,
.home-actions[data-home-carousel]::-webkit-scrollbar{
  display:none;
}
#homePlanModes.home-plan-modes[data-home-carousel] .plan-mode-card,
.home-actions[data-home-carousel] .action-card{
  flex:0 0 min(342px,calc(100% - 64px))!important;
  width:min(342px,calc(100% - 64px))!important;
  min-width:min(342px,calc(100% - 64px))!important;
  max-width:342px!important;
  min-height:122px;
  border-radius:28px;
  scroll-snap-align:start;
}
#homePlanModes.home-plan-modes[data-home-carousel]:after,
.home-actions[data-home-carousel]:after{
  display:block!important;
  flex:0 0 10px!important;
  width:10px!important;
  content:"";
}
#homePlanModes.home-plan-modes[data-home-carousel] .plan-mode-card.guided{
  border-color:rgba(16,167,120,.22)!important;
  background:linear-gradient(180deg,#fbfffd,#f5fffa)!important;
}
#homePlanModes.home-plan-modes[data-home-carousel] .plan-mode-card.automatic{
  border-color:rgba(94,124,246,.22)!important;
  background:linear-gradient(180deg,#fbfcff,#f3f6ff)!important;
}
.home-actions[data-home-carousel] .action-card[data-go="plan"]{
  border-color:rgba(16,167,120,.20)!important;
  background:linear-gradient(180deg,#fbfffd,#f5fffa)!important;
}
.home-actions[data-home-carousel] .action-card[data-go="finance"]{
  border-color:rgba(226,146,0,.20)!important;
  background:linear-gradient(180deg,#fffdf7,#fff7df)!important;
}
.home-actions[data-home-carousel] .action-card[data-home-tab="today"],
.home-actions[data-home-carousel] .action-card[data-go="plates"]{
  border-color:rgba(88,116,232,.18)!important;
  background:linear-gradient(180deg,#fbfcff,#f3f6ff)!important;
}
.home-actions[data-home-carousel] .action-card[data-go="foods"]{
  border-color:rgba(214,84,96,.18)!important;
  background:linear-gradient(180deg,#fffdfb,#fff4ec)!important;
}
.home-actions[data-home-carousel] .ai-tool-card{
  border-color:rgba(88,116,232,.18)!important;
  background:linear-gradient(180deg,#fbfcff,#f3f6ff)!important;
}
:root[data-visual-theme="color2"] #homePlanModes.home-plan-modes[data-home-carousel] .plan-mode-card.guided,
:root[data-visual-theme="color2"] .home-actions[data-home-carousel] .action-card[data-go="plan"]{
  border-color:rgba(0,139,102,.20)!important;
  background:linear-gradient(180deg,#fffdf8,#fffaf3)!important;
}
:root[data-visual-theme="color2"] #homePlanModes.home-plan-modes[data-home-carousel] .plan-mode-card.automatic,
:root[data-visual-theme="color2"] .home-actions[data-home-carousel] .action-card[data-go="plates"],
:root[data-visual-theme="color2"] .home-actions[data-home-carousel] .ai-tool-card{
  border-color:rgba(23,54,77,.16)!important;
  background:linear-gradient(180deg,#fffdf8,#fff9ee)!important;
}
:root[data-visual-theme="color2"] .home-actions[data-home-carousel] .action-card[data-go="finance"]{
  border-color:rgba(238,155,74,.26)!important;
  background:linear-gradient(180deg,#fff9ed,#fff2df)!important;
}
:root[data-visual-theme="color2"] .home-actions[data-home-carousel] .action-card[data-go="foods"]{
  border-color:rgba(238,155,74,.22)!important;
  background:linear-gradient(180deg,#fffaf3,#fff1e5)!important;
}

/* Theme choice cards: visual squares, no internal subtitles */
.help-choice-card[data-visual-theme-choice]{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  align-content:end;
  justify-items:stretch;
  min-height:132px;
  padding:18px;
  border-color:rgba(102,127,255,.14);
  background:#f7f9ff;
}
.help-choice-card[data-visual-theme-choice]:before{
  position:absolute;
  inset:0;
  z-index:0;
  display:block!important;
  content:""!important;
}
.help-choice-card[data-visual-theme-choice]:after{
  display:none!important;
  content:none!important;
}
.help-choice-card[data-visual-theme-choice] span{
  display:none;
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.55);
  background:rgba(255,255,255,.42);
  box-shadow:0 10px 24px rgba(18,31,64,.12);
  backdrop-filter:blur(8px);
}
.help-choice-card[data-visual-theme-choice] b{
  position:relative;
  z-index:1;
  max-width:100%;
  color:#fff!important;
  font-size:.94rem;
  font-weight:950;
  line-height:1.08;
  letter-spacing:0;
  text-shadow:0 2px 12px rgba(8,16,36,.34);
  text-transform:none;
  overflow-wrap:anywhere;
  hyphens:auto;
}
.help-choice-card[data-visual-theme-choice] small{
  display:none!important;
}
.help-choice-card[data-visual-theme-choice="default"]:before{
  background:
    radial-gradient(circle at 18% 20%,rgba(255,255,255,.72) 0 10%,transparent 11%),
    radial-gradient(circle at 76% 30%,rgba(238,155,74,.2) 0 14%,transparent 15%),
    radial-gradient(circle at 22% 92%,rgba(103,127,255,.48) 0 22%,transparent 23%),
    linear-gradient(135deg,#6179ec 0%,#263c75 56%,#101b39 100%);
}
.help-choice-card[data-visual-theme-choice="prometheus"]:before{
  background:
    radial-gradient(circle at 18% 20%,rgba(255,236,205,.72) 0 11%,transparent 12%),
    radial-gradient(circle at 78% 22%,rgba(255,184,72,.52) 0 17%,transparent 18%),
    radial-gradient(circle at 86% 88%,rgba(139,30,8,.52) 0 25%,transparent 26%),
    linear-gradient(135deg,#ff2a12 0%,#ff7118 34%,#b39100 57%,#8b1e08 114%);
}
.help-choice-card[data-visual-theme-choice="color2"]:before{
  background:
    radial-gradient(circle at 18% 22%,rgba(255,255,255,.82) 0 11%,transparent 12%),
    radial-gradient(circle at 78% 24%,rgba(23,54,77,.28) 0 17%,transparent 18%),
    radial-gradient(circle at 18% 90%,rgba(238,155,74,.54) 0 22%,transparent 23%),
    linear-gradient(135deg,#fff3da 0%,#ee9b4a 52%,#17364d 118%);
}
.help-choice-card[data-visual-theme-choice="dark"]:before{
  background:
    radial-gradient(circle at 20% 20%,rgba(255,255,255,.22) 0 10%,transparent 11%),
    radial-gradient(circle at 78% 22%,rgba(156,116,231,.5) 0 16%,transparent 17%),
    radial-gradient(circle at 22% 94%,rgba(70,101,185,.52) 0 24%,transparent 25%),
    linear-gradient(135deg,#11172f 0%,#2b214e 52%,#070b18 100%);
}
.help-choice-card[data-visual-theme-choice="female"]:before{
  background:
    radial-gradient(circle at 18% 22%,rgba(255,255,255,.9) 0 12%,transparent 13%),
    radial-gradient(circle at 78% 26%,rgba(255,255,255,.34) 0 18%,transparent 19%),
    radial-gradient(circle at 22% 94%,rgba(228,164,197,.56) 0 24%,transparent 25%),
    radial-gradient(circle at 78% 88%,rgba(112,72,122,.28) 0 22%,transparent 23%),
    linear-gradient(135deg,#fff4fb 0%,#f4cfe1 45%,#70487a 112%);
}
.help-choice-card[data-visual-theme-choice="female"] span:before{
  background:linear-gradient(135deg,#fff3fa 0 38%,#f0a8ca 39% 64%,#5c3a68 65% 100%);
}
.help-choice-card[data-visual-theme-choice="strawberry-fields"]:before{
  background:linear-gradient(180deg,#e99aa0 0%,#f4c1b9 27%,#ecd9d8 45%,#f8e3a8 66%,#fff1d0 100%);
}
.help-choice-card[data-visual-theme-choice="abacate"]:before{
  background:
    radial-gradient(circle at 18% 20%,rgba(255,255,255,.78) 0 12%,transparent 13%),
    radial-gradient(circle at 74% 22%,rgba(232,183,87,.42) 0 17%,transparent 18%),
    radial-gradient(circle at 18% 94%,rgba(183,217,113,.58) 0 24%,transparent 25%),
    radial-gradient(circle at 82% 88%,rgba(91,139,67,.42) 0 23%,transparent 24%),
    linear-gradient(135deg,#f7ffd6 0%,#b6d974 48%,#5f8e45 100%);
}
.help-choice-card[data-visual-theme-choice="abacate"] span:before{
  content:"";
  display:block;
  width:22px;
  height:22px;
  border-radius:48% 52% 50% 50%;
  background:linear-gradient(135deg,#f9ffd8 0%,#8ebf5a 56%,#e8b757 100%);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.5);
}
.help-choice-card.theme.active{
  border-color:rgba(255,255,255,.72)!important;
  box-shadow:0 0 0 3px rgba(102,127,255,.14),0 18px 40px rgba(22,36,77,.18)!important;
}

/* Mirtillo abissal: keep lower home cards in the dark system */
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homePlanModes.home-plan-modes[data-home-carousel] .plan-mode-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-actions[data-home-carousel] .action-card{
  border-color:rgba(139,160,255,.18)!important;
  background:
    radial-gradient(circle at 18% 26%,rgba(139,160,255,.12),transparent 34%),
    linear-gradient(180deg,#17243f,#101a31)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homePlanModes.home-plan-modes[data-home-carousel] .plan-mode-card b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homePlanModes.home-plan-modes[data-home-carousel] .plan-mode-card small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-actions[data-home-carousel] .action-card b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-actions[data-home-carousel] .action-card small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-actions[data-home-carousel] .action-card i{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homePlanModes.home-plan-modes[data-home-carousel] .plan-mode-card small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-actions[data-home-carousel] .action-card small{
  color:#AEBBDC!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-actions[data-home-carousel] .action-card .action-icon,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homePlanModes.home-plan-modes[data-home-carousel] .plan-mode-card .plan-mode-icon{
  background:#21345C!important;
  color:#E8EEFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-tutorial-bubble{
  border-color:rgba(139,160,255,.38)!important;
  background:
    radial-gradient(circle at 14% 50%,rgba(139,160,255,.26),transparent 42%),
    linear-gradient(135deg,rgba(31,50,90,.96),rgba(17,29,54,.98))!important;
  color:#F7F9FF!important;
  box-shadow:0 16px 34px rgba(3,8,21,.34),inset 0 1px 0 rgba(255,255,255,.12)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-tutorial-bubble:before{
  background:linear-gradient(135deg,#8BA0FF,#4F68E8)!important;
  box-shadow:0 8px 18px rgba(139,160,255,.28)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-tutorial-bubble:hover{
  border-color:rgba(139,160,255,.58)!important;
  box-shadow:0 20px 42px rgba(3,8,21,.42),inset 0 1px 0 rgba(255,255,255,.16)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .tutorial-card{
  border-color:rgba(139,160,255,.24)!important;
  background:
    radial-gradient(circle at 18% 20%,rgba(139,160,255,.18),transparent 32%),
    linear-gradient(180deg,rgba(23,36,63,.96),rgba(12,20,38,.98))!important;
  color:#DDE5FF!important;
  box-shadow:0 28px 72px rgba(3,8,21,.5)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .tutorial-card.center-card{
  background:
    radial-gradient(circle at 18% 20%,rgba(139,160,255,.18),transparent 32%),
    linear-gradient(180deg,rgba(23,36,63,.96),rgba(12,20,38,.98))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .tutorial-card .eyebrow{
  color:#AEBBDC!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .tutorial-card h2,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .tutorial-card #tutorialTitle{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .tutorial-card p:not(.eyebrow),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .tutorial-card #tutorialText{
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .tutorial-actions .ghost{
  border-color:rgba(255,255,255,.18)!important;
  background:#0D172C!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .tutorial-actions .primary{
  background:#8BA0FF!important;
  color:#07152F!important;
}
:root[data-visual-theme="cheese"] .tutorial-card{
  border-color:rgba(216,154,43,.32)!important;
  background:
    radial-gradient(circle at 16% 16%,rgba(255,228,155,.28),transparent 34%),
    linear-gradient(180deg,rgba(255,253,244,.96),rgba(255,246,218,.94))!important;
  color:#2f2d22!important;
}
:root[data-visual-theme="cheese"] .tutorial-card h2,
:root[data-visual-theme="cheese"] .tutorial-card #tutorialTitle{
  color:#2f2d22!important;
}
:root[data-visual-theme="cheese"] .tutorial-card p:not(.eyebrow),
:root[data-visual-theme="cheese"] .tutorial-card #tutorialText{
  color:#5f5948!important;
}

/* Profile metrics alignment: keep IMC/TMB/GET visually centered */
.profile-info-carousel .profile-health-stat,
.profile-health-grid div{
  align-content:center!important;
  justify-items:center!important;
  text-align:center!important;
}
.profile-info-carousel .profile-health-stat b,
.profile-health-grid div b{
  width:100%;
  text-align:center!important;
  line-height:1.05!important;
}
.profile-info-carousel .profile-health-stat small,
.profile-health-grid div small,
.profile-health-grid div span{
  display:block;
  max-width:11ch;
  margin-inline:auto;
  text-align:center!important;
  line-height:1.16!important;
  overflow-wrap:normal;
  text-wrap:balance;
}

/* Keep carousel rails invisible; only the cards/buttons own color */
#homePlanModes.home-plan-modes[data-home-carousel],
.home-actions[data-home-carousel],
#homePlanModes.home-plan-modes[data-home-carousel]:before,
.home-actions[data-home-carousel]:before{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#homePlanModes.home-plan-modes[data-home-carousel] + .carousel-dots,
.home-actions[data-home-carousel] + .carousel-dots{
  background:transparent!important;
  box-shadow:none!important;
}

/* Slightly larger nutrient numbers without changing the card geometry */
.day-macro b i,
.macro b,
.home-macro-carousel .day-macro b i{
  font-size:.98rem!important;
  line-height:1.04!important;
}
.day-macro small i,
.home-macro-carousel .day-macro small i{
  font-size:.6rem!important;
  line-height:1.05!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .day-macro b i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .macro b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-macro-carousel .day-macro b i{
  color:#F7F9FF!important;
}

/* App menu account/access/logout relocation */
.app-access-modal{
  display:grid;
  gap:14px;
}
.app-access-modal .profile-access{
  margin:0;
  box-shadow:none;
}
.app-menu-icon.access:before,
.app-menu-icon.account:before,
.app-menu-icon.logout:before,
.app-menu-icon.article:before,
.app-menu-icon.admin:before{
  content:"";
  display:block;
  width:20px;
  height:20px;
  background:currentColor;
  mask:center/contain no-repeat;
  -webkit-mask:center/contain no-repeat;
}
.app-menu-icon.access:before{
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v4'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M3 12h4'/%3E%3Cpath d='M17 12h4'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v4'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M3 12h4'/%3E%3Cpath d='M17 12h4'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");
}
.app-menu-icon.account:before{
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6' width='16' height='12' rx='3'/%3E%3Cpath d='M7 10h10'/%3E%3Cpath d='M7 14h5'/%3E%3C/svg%3E");
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6' width='16' height='12' rx='3'/%3E%3Cpath d='M7 10h10'/%3E%3Cpath d='M7 14h5'/%3E%3C/svg%3E");
}
.app-menu-icon.logout:before{
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M14 8l4 4-4 4'/%3E%3Cpath d='M18 12H9'/%3E%3C/svg%3E");
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M14 8l4 4-4 4'/%3E%3Cpath d='M18 12H9'/%3E%3C/svg%3E");
}
.app-menu-icon.article:before{
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h9l3 3v13H6z'/%3E%3Cpath d='M14 4v4h4'/%3E%3Cpath d='M9 12h6'/%3E%3Cpath d='M9 16h5'/%3E%3C/svg%3E");
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h9l3 3v13H6z'/%3E%3Cpath d='M14 4v4h4'/%3E%3Cpath d='M9 12h6'/%3E%3Cpath d='M9 16h5'/%3E%3C/svg%3E");
}
.app-menu-icon.admin:before{
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 5-3 8-7 10-4-2-7-5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-5'/%3E%3C/svg%3E");
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 5-3 8-7 10-4-2-7-5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-5'/%3E%3C/svg%3E");
}
.app-menu-icon.article{background:#eef3ff;color:#536bed}
.app-menu-icon.admin{background:#fff4d6;color:#c58318}
.app-menu-card.menu-logout{
  grid-template-columns:30px minmax(0,1fr);
  min-height:48px;
  align-items:center;
  gap:9px;
  padding:10px 12px;
  border-color:rgba(231,109,114,.20);
  background:rgba(255,240,241,.50);
  color:#b9585d;
  box-shadow:none;
}
.app-menu-card.menu-logout b{
  color:#b9585d;
  font-size:.84rem;
}
.app-menu-card.menu-logout .app-menu-icon{
  width:30px;
  height:30px;
  background:rgba(231,109,114,.12);
  color:#b9585d;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-card.menu-logout{
  border-color:rgba(231,109,114,.22)!important;
  background:rgba(231,109,114,.10)!important;
  color:#f0a4a7!important;
}
:root[data-visual-theme="color2"] .app-menu-card.menu-logout{
  border-color:rgba(231,109,114,.20);
  background:rgba(255,240,241,.46);
}

/* Abacate: green smoothie frequency, light and creamy */
:root[data-visual-theme="abacate"]{
  --bg:#2f4b35;
  --app-bg:#f4f8df;
  --surface:#fbffe9;
  --surface-2:#edf6d1;
  --surface-3:#e3efc0;
  --card:#fffff3;
  --field:#fbfff0;
  --ink:#213621;
  --text:#51674b;
  --muted:#7f936d;
  --faint:#a3b28f;
  --line:#dce9c4;
  --line-soft:rgba(45,75,39,.13);
  --blue:#6f9f46;
  --blue-soft:#e8f4d8;
  --blue-deep:#315c2e;
  --orange:#e8b757;
  --peach:#f3d982;
  --peach-soft:#fff5ce;
  --green:#6f9f46;
  --green-soft:#e8f4d8;
  --shadow-soft:0 14px 34px rgba(74,100,45,.08);
  --shell-bg:#2f4b35;
  --shell-desktop-bg:linear-gradient(135deg,#f5fadf 0%,#fbfff0 58%,#fff5ce 100%);
  --top-surface:rgba(255,255,243,.95);
  --nav-surface:rgba(255,255,243,.95);
  --modal-backdrop:rgba(33,54,33,.34);
  --modal-surface:#fffff3;
  --modal-header-surface:rgba(255,255,243,.96);
  --control-surface:#fffff3;
}
:root[data-visual-theme="abacate"] body{
  background:#2f4b35;
  color:var(--text);
}
:root[data-visual-theme="abacate"] .app{
  background:
    radial-gradient(circle at 18% 4%,rgba(239,249,194,.92),transparent 270px),
    radial-gradient(circle at 86% 20%,rgba(232,183,87,.2),transparent 230px),
    radial-gradient(circle at 48% 96%,rgba(111,159,70,.12),transparent 260px),
    linear-gradient(180deg,#f5fadf 0%,#fbfff0 58%,#fffdf0 100%);
  color:var(--text);
}
:root[data-visual-theme="abacate"] .app-top,
:root[data-visual-theme="abacate"] .bottom-nav,
:root[data-visual-theme="abacate"] .sheet,
:root[data-visual-theme="abacate"] .modal,
:root[data-visual-theme="abacate"] .ai-chat,
:root[data-visual-theme="abacate"] .ai-chat-head,
:root[data-visual-theme="abacate"] .ai-chat-form{
  border-color:rgba(87,124,61,.18);
  background:rgba(255,255,243,.95);
  color:var(--text);
}
:root[data-visual-theme="abacate"] .panel,
:root[data-visual-theme="abacate"] .profile-card,
:root[data-visual-theme="abacate"] .profile-main-stat,
:root[data-visual-theme="abacate"] .profile-goal-row div,
:root[data-visual-theme="abacate"] .plan-range-card,
:root[data-visual-theme="abacate"] .profile-health-grid div,
:root[data-visual-theme="abacate"] .home-macro-carousel .day-macro,
:root[data-visual-theme="abacate"] .meal-card,
:root[data-visual-theme="abacate"] .food-card,
:root[data-visual-theme="abacate"] .action-card,
:root[data-visual-theme="abacate"] .app-menu-card,
:root[data-visual-theme="abacate"] .help-choice-card:not([data-visual-theme-choice]){
  border-color:#dce9c4!important;
  background:#fffff3!important;
  color:var(--text)!important;
  box-shadow:0 14px 34px rgba(74,100,45,.08)!important;
}
:root[data-visual-theme="abacate"] input,
:root[data-visual-theme="abacate"] select,
:root[data-visual-theme="abacate"] textarea,
:root[data-visual-theme="abacate"] fieldset,
:root[data-visual-theme="abacate"] .search,
:root[data-visual-theme="abacate"] .picker-search,
:root[data-visual-theme="abacate"] label.search{
  border-color:#dce9c4;
  background:#fbfff0;
  color:#213621;
}
:root[data-visual-theme="abacate"] input:focus,
:root[data-visual-theme="abacate"] select:focus,
:root[data-visual-theme="abacate"] textarea:focus{
  border-color:#6f9f46;
  box-shadow:0 0 0 4px rgba(111,159,70,.16);
}
:root[data-visual-theme="abacate"] .primary,
:root[data-visual-theme="abacate"] .home-tabs .active,
:root[data-visual-theme="abacate"] .bottom-nav .active,
:root[data-visual-theme="abacate"] .carousel-dots i.active,
:root[data-visual-theme="abacate"] .carousel-dots button.active{
  border-color:#6f9f46!important;
  background:#6f9f46!important;
  color:#fff!important;
  box-shadow:0 12px 24px rgba(80,123,55,.18)!important;
}
:root[data-visual-theme="abacate"] .soft,
:root[data-visual-theme="abacate"] .ghost,
:root[data-visual-theme="abacate"] .chip,
:root[data-visual-theme="abacate"] .day-tabs button,
:root[data-visual-theme="abacate"] .segmented button,
:root[data-visual-theme="abacate"] .home-tabs button{
  border-color:#dce9c4;
  background:#fffef4;
  color:#315c2e;
}
:root[data-visual-theme="abacate"] .home-tabs{
  background:transparent!important;
  box-shadow:none!important;
}
:root[data-visual-theme="abacate"] .home-nutrient-focus{
  border-color:rgba(111,159,70,.16);
  background:transparent!important;
  box-shadow:none!important;
}
:root[data-visual-theme="abacate"] .home-nutrient-focus .today-heading h3{
  color:#315c2e!important;
}
:root[data-visual-theme="abacate"] .home-nutrient-focus .today-heading h3:after{
  background:linear-gradient(90deg,#6f9f46,#e8b757);
}
:root[data-visual-theme="abacate"] .home-macro-carousel .day-macro:before{
  border-color:#d6e9ad!important;
  background:
    radial-gradient(circle at center,#fffff3 0 50%,transparent 52%),
    conic-gradient(var(--macro-ring-active,var(--macro-ring,#8fbc5b)) var(--macro-pct,0%),#e6f0c5 0 100%)!important;
  box-shadow:inset 0 0 0 5px rgba(244,250,223,.88),0 8px 18px rgba(80,123,55,.08)!important;
}
:root[data-visual-theme="abacate"] .meal-icon,
:root[data-visual-theme="abacate"] .action-icon,
:root[data-visual-theme="abacate"] .app-menu-icon,
:root[data-visual-theme="abacate"] .plan-mode-icon{
  border-color:rgba(111,159,70,.2)!important;
  background:#e8f4d8!important;
  color:#315c2e!important;
}
:root[data-visual-theme="abacate"] .ai-fab{
  border-color:#f5d08b!important;
  background:linear-gradient(135deg,#e8b757,#f3d982)!important;
  color:#fff!important;
}
:root[data-visual-theme="abacate"] #foodsScreen .foods-hero-card{
  border-color:rgba(111,159,70,.32)!important;
  background:
    radial-gradient(circle at 86% 32%,rgba(255,255,255,.82) 0 12%,rgba(255,255,255,0) 32%),
    linear-gradient(135deg,#f9ffe9 0%,#eef8d7 58%,#d8ebad 100%)!important;
  color:#203920!important;
  box-shadow:0 16px 34px rgba(80,123,55,.14)!important;
}
:root[data-visual-theme="abacate"] #foodsScreen .foods-hero-card:before{
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(90deg,rgba(255,255,255,.48),rgba(255,255,255,0) 66%);
  content:"";
  pointer-events:none;
}
:root[data-visual-theme="abacate"] #foodsScreen .foods-hero-card:after{
  opacity:.34!important;
  filter:sepia(.25) saturate(.78) hue-rotate(34deg) contrast(1.25);
}
:root[data-visual-theme="abacate"] #foodsScreen .foods-hero-card .eyebrow{
  color:#57743f!important;
}
:root[data-visual-theme="abacate"] #foodsScreen .foods-hero-card h3{
  color:#162d1b!important;
}
:root[data-visual-theme="abacate"] #foodsScreen .foods-hero-card p:not(.eyebrow){
  color:#3f5f39!important;
  opacity:1!important;
}
:root[data-visual-theme="abacate"] #homePlanModes.home-plan-modes[data-home-carousel] .plan-mode-card.guided,
:root[data-visual-theme="abacate"] .home-actions[data-home-carousel] .action-card[data-go="plan"]{
  border-color:rgba(111,159,70,.24)!important;
  background:linear-gradient(180deg,#fffff4,#f2f8dc)!important;
}
:root[data-visual-theme="abacate"] #homePlanModes.home-plan-modes[data-home-carousel] .plan-mode-card.automatic,
:root[data-visual-theme="abacate"] .home-actions[data-home-carousel] .action-card[data-go="plates"],
:root[data-visual-theme="abacate"] .home-actions[data-home-carousel] .ai-tool-card{
  border-color:rgba(232,183,87,.24)!important;
  background:linear-gradient(180deg,#fffff4,#fff7d8)!important;
}
:root[data-visual-theme="abacate"] .home-actions[data-home-carousel] .action-card[data-go="finance"]{
  border-color:rgba(232,183,87,.28)!important;
  background:linear-gradient(180deg,#fff9dc,#edf7cf)!important;
}
:root[data-visual-theme="abacate"] .home-actions[data-home-carousel] .action-card[data-go="foods"]{
  border-color:rgba(111,159,70,.22)!important;
  background:linear-gradient(180deg,#f8ffe6,#eef8d6)!important;
}
:root[data-visual-theme="abacate"] .app-menu-card.menu-logout{
  border-color:rgba(49,92,46,.12)!important;
  background:rgba(255,255,243,.72)!important;
}
:root[data-visual-theme="abacate"] .progress,
:root[data-visual-theme="abacate"] .macro-bar,
:root[data-visual-theme="abacate"] .nutrient-progress{
  background:#e5efc7!important;
}
:root[data-visual-theme="abacate"] .progress span,
:root[data-visual-theme="abacate"] .macro-bar span,
:root[data-visual-theme="abacate"] .nutrient-progress span{
  background:linear-gradient(90deg,#6f9f46,#e8b757)!important;
}

/* Mosaic hamburger menu layout: reposition cards without changing their base feel. */
.app-menu-modal.mosaic .app-menu-title{
  justify-items:start;
  text-align:left;
  margin-bottom:12px;
}
.app-menu-modal.mosaic .app-menu-title h2{
  justify-content:flex-start;
  font-size:1.05rem;
}
.app-menu-modal.mosaic .app-menu-title h2:after{
  left:0;
  transform:none;
}
.app-menu-modal.mosaic .app-menu-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:84px 84px 112px 58px 58px;
  grid-template-areas:
    "profile appearance"
    "calendar appearance"
    "article article"
    "account access"
    "logout logout";
  gap:10px;
}
.app-menu-modal.mosaic .app-menu-card{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  grid-template-rows:auto auto;
  min-width:0;
  min-height:0;
  align-content:center;
  align-items:center;
  justify-items:start;
  gap:3px 10px;
  padding:12px;
  border-radius:20px;
  background:var(--card)!important;
  text-align:left;
}
.app-menu-modal.mosaic .app-menu-card:after{
  display:none!important;
}
.app-menu-modal.mosaic .app-menu-card b,
.app-menu-modal.mosaic .app-menu-card small{
  grid-column:2;
  max-width:13rem;
  margin-inline:0;
  text-align:left;
}
.app-menu-modal.mosaic .app-menu-card b{
  font-size:.92rem;
}
.app-menu-modal.mosaic .app-menu-card small{
  display:-webkit-box;
  overflow:hidden;
  font-size:.72rem;
  line-height:1.32;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.app-menu-modal.mosaic .app-menu-icon{
  grid-column:1;
  grid-row:1 / span 2;
  width:40px;
  height:40px;
  margin-inline:0;
}
.app-menu-modal.mosaic .menu-card-profile{grid-area:profile}
.app-menu-modal.mosaic .menu-card-access{grid-area:access}
.app-menu-modal.mosaic .menu-card-appearance{grid-area:appearance}
.app-menu-modal.mosaic .menu-card-article{grid-area:article}
.app-menu-modal.mosaic .menu-card-tutorial{grid-area:tutorial}
.app-menu-modal.mosaic .menu-card-country{grid-area:country}
.app-menu-modal.mosaic .menu-card-account{grid-area:account}
.app-menu-modal.mosaic .menu-card-calendar{grid-area:calendar}
.app-menu-modal.mosaic .menu-logout{grid-area:logout}
.app-menu-modal.mosaic .menu-card-admin{
  grid-column:1/-1;
}
.app-menu-modal.mosaic .menu-card-profile,
.app-menu-modal.mosaic .menu-card-access{
  min-height:0;
}
.app-menu-modal.mosaic .menu-card-appearance{
  display:grid;
  grid-template-columns:1fr;
  grid-template-rows:1fr auto auto;
  min-height:0!important;
  padding:12px!important;
  align-content:end!important;
  border-radius:20px;
  background:var(--menu-appearance-bg)!important;
}
.app-menu-modal.mosaic .menu-card-appearance b,
.app-menu-modal.mosaic .menu-card-appearance small{
  grid-column:1;
  color:var(--menu-appearance-text)!important;
  text-shadow:0 2px 10px rgba(8,16,36,.42)!important;
}
.app-menu-modal.mosaic .menu-card-appearance small{
  max-width:150px;
  color:var(--menu-appearance-muted)!important;
}
.app-menu-modal.mosaic .menu-card-article{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  align-content:end;
  gap:4px 12px;
  min-height:0;
  padding:14px;
  border-color:rgba(102,127,255,.16);
  background:
    linear-gradient(180deg,rgba(12,20,38,0) 8%,rgba(12,20,38,.18) 54%,rgba(12,20,38,.58) 100%),
    radial-gradient(circle at 84% 10%,rgba(255,255,255,.62),transparent 32%),
    radial-gradient(circle at 72% 72%,rgba(102,127,255,.26),transparent 36%),
    linear-gradient(90deg,rgba(10,18,34,.20) 0%,rgba(10,18,34,0) 22%),
    repeating-linear-gradient(0deg,rgba(255,255,255,.30) 0 1px,rgba(255,255,255,0) 1px 12px),
    linear-gradient(135deg,#eef3ff,#cfdafa 52%,#f4e8d7)!important;
}
.app-menu-modal.mosaic .menu-card-article:before{
  position:absolute;
  right:18px;
  bottom:18px;
  z-index:-1;
  width:88px;
  height:100px;
  border:1px solid rgba(255,255,255,.54);
  border-radius:9px;
  background:
    linear-gradient(135deg,transparent 0 74%,rgba(255,255,255,.52) 75% 100%),
    repeating-linear-gradient(0deg,rgba(27,41,76,.28) 0 1px,transparent 1px 10px),
    rgba(255,255,255,.40);
  content:"";
  opacity:.72;
  transform:rotate(4deg);
}
.app-menu-modal.mosaic .menu-card-article .app-menu-icon{
  display:grid;
  grid-column:1;
  grid-row:1 / span 2;
  width:40px;
  height:40px;
  background:rgba(255,255,255,.70);
  color:#536bed;
  box-shadow:0 10px 24px rgba(28,44,88,.10);
}
.app-menu-modal.mosaic .menu-card-article b,
.app-menu-modal.mosaic .menu-card-article small{
  grid-column:2;
  color:#F7F9FF;
  text-shadow:0 2px 10px rgba(8,16,36,.34);
}
.app-menu-modal.mosaic .menu-card-article b{
  font-size:1rem;
}
.app-menu-modal.mosaic .menu-card-article small{
  max-width:240px;
  color:#E6ECFF;
}
.app-menu-modal.mosaic .menu-card-tutorial,
.app-menu-modal.mosaic .menu-card-country,
.app-menu-modal.mosaic .menu-card-account,
.app-menu-modal.mosaic .menu-logout{
  grid-template-columns:30px minmax(0,1fr);
  grid-template-rows:1fr;
  align-items:center;
  gap:8px;
  min-height:0;
  padding:9px 10px;
}
.app-menu-modal.mosaic .menu-card-tutorial .app-menu-icon,
.app-menu-modal.mosaic .menu-card-country .app-menu-icon,
.app-menu-modal.mosaic .menu-card-account .app-menu-icon,
.app-menu-modal.mosaic .menu-logout .app-menu-icon{
  width:30px;
  height:30px;
}
.app-menu-modal.mosaic .menu-card-tutorial b,
.app-menu-modal.mosaic .menu-card-country b,
.app-menu-modal.mosaic .menu-card-account b,
.app-menu-modal.mosaic .menu-logout b{
  grid-column:2;
  font-size:.78rem;
}
.app-menu-modal.mosaic .menu-card-tutorial small,
.app-menu-modal.mosaic .menu-card-country small,
.app-menu-modal.mosaic .menu-card-account small{
  display:none;
}
.app-menu-modal.mosaic .menu-logout{
  opacity:.92;
}
.app-menu-modal.mosaic .menu-logout b{
  color:#b9585d;
}
@media(max-width:390px){
  .app-menu-modal.mosaic .app-menu-grid{
    grid-template-rows:80px 80px 108px 56px 56px;
  }
  .app-menu-modal.mosaic .app-menu-card{
    padding:10px;
  }
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-modal.mosaic .menu-card-article{
  border-color:rgba(148,163,184,.22)!important;
  background:
    linear-gradient(180deg,rgba(8,14,28,0) 8%,rgba(8,14,28,.28) 54%,rgba(8,14,28,.72) 100%),
    radial-gradient(circle at 84% 10%,rgba(255,255,255,.18),transparent 32%),
    radial-gradient(circle at 72% 72%,rgba(102,127,255,.34),transparent 36%),
    repeating-linear-gradient(0deg,rgba(226,232,240,.12) 0 1px,transparent 1px 12px),
    linear-gradient(135deg,#172640,#111d33 52%,#2b3145)!important;
}

/* Refined hamburger menu: professional mosaic, restrained utility icons. */
.app-menu-sheet:has(.app-menu-modal.mosaic){
  padding-top:40px!important;
  border-color:rgba(39,54,95,.10)!important;
  background:rgba(255,255,255,.96)!important;
  color:#111b35!important;
  box-shadow:0 28px 70px rgba(23,35,67,.18)!important;
}
.app-menu-sheet:has(.app-menu-modal.mosaic) .sheet-close{
  top:10px!important;
  right:12px!important;
  width:40px!important;
  height:40px!important;
  padding:0!important;
  border:1px solid rgba(39,54,95,.10)!important;
  background:rgba(255,255,255,.78)!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  box-shadow:0 8px 18px rgba(41,61,102,.08)!important;
  opacity:.9!important;
  backdrop-filter:blur(10px);
}
.app-menu-sheet:has(.app-menu-modal.mosaic) .sheet-close:before,
.app-menu-sheet:has(.app-menu-modal.mosaic) .sheet-close:after{
  position:absolute;
  top:50%;
  left:50%;
  width:13px;
  height:1.4px;
  border-radius:999px;
  background:#27365f;
  content:"";
  transform:translate(-50%,-50%) rotate(45deg);
}
.app-menu-sheet:has(.app-menu-modal.mosaic) .sheet-close:after{
  transform:translate(-50%,-50%) rotate(-45deg);
}
.app-menu-modal.mosaic .app-menu-title{
  margin:0 0 13px!important;
}
.app-menu-modal.mosaic .app-menu-title h2{
  color:#111B35!important;
  font-size:1.08rem!important;
  line-height:1.08!important;
}
.app-menu-modal.mosaic .app-menu-title h2:after{
  width:34px!important;
  height:2px!important;
  border-radius:999px!important;
  background:#27365f!important;
  opacity:.28!important;
}
.app-menu-modal.mosaic .app-menu-grid{
  grid-template-areas:
    "profile appearance"
    "calendar appearance"
    "article article"
    "account access"
    "logout logout"!important;
  grid-template-rows:78px 78px 106px 54px 54px!important;
  gap:9px!important;
}
.app-menu-modal.mosaic .app-menu-card:not(.menu-card-appearance):not(.menu-card-article):not(.menu-logout){
  border-color:rgba(39,54,95,.10)!important;
  background:linear-gradient(135deg,#fff,#f7f9ff)!important;
  box-shadow:0 10px 22px rgba(41,61,102,.055)!important;
}
.app-menu-modal.mosaic .app-menu-card:not(.menu-card-appearance):not(.menu-card-article):not(.menu-logout) .app-menu-icon{
  width:32px!important;
  height:32px!important;
  border:1px solid rgba(39,54,95,.12)!important;
  background:rgba(39,54,95,.07)!important;
  color:#27365f!important;
  box-shadow:none!important;
}
.app-menu-modal.mosaic .menu-card-profile,
.app-menu-modal.mosaic .menu-card-account{
  min-height:0!important;
}
.app-menu-modal.mosaic .menu-card-access{
  grid-template-columns:30px minmax(0,1fr)!important;
  grid-template-rows:1fr!important;
  align-items:center!important;
  gap:8px!important;
  padding:9px 10px!important;
}
.app-menu-modal.mosaic .menu-card-access .app-menu-icon{
  width:30px!important;
  height:30px!important;
  grid-row:1!important;
}
.app-menu-modal.mosaic .menu-card-access b{
  grid-column:2!important;
  font-size:.78rem!important;
}
.app-menu-modal.mosaic .menu-card-access small{
  display:none!important;
}
.app-menu-modal.mosaic .menu-card-profile .app-menu-icon,
.app-menu-modal.mosaic .menu-card-account .app-menu-icon,
.app-menu-modal.mosaic .menu-card-tutorial .app-menu-icon,
.app-menu-modal.mosaic .menu-card-country .app-menu-icon{
  color:#27365f!important;
}
.app-menu-modal.mosaic .menu-card-calendar .app-menu-icon{
  position:relative!important;
  overflow:hidden!important;
  border:0!important;
  background:
    linear-gradient(135deg,rgba(238,244,255,.96),rgba(255,241,221,.92))!important;
  color:transparent!important;
  box-shadow:0 8px 18px rgba(36,67,126,.12)!important;
}
.app-menu-modal.mosaic .menu-card-calendar .app-menu-icon:before{
  position:absolute!important;
  inset:2px!important;
  display:block!important;
  background:url("/assets/features/calendar-orbit.svg?v=20260618-2") center/contain no-repeat!important;
  content:""!important;
}
.app-menu-modal.mosaic .menu-card-appearance,
.app-menu-modal.mosaic .menu-card-article{
  border-color:transparent!important;
  outline:0!important;
  box-shadow:0 14px 30px rgba(20,31,58,.10)!important;
}
.app-menu-modal.mosaic .menu-card-appearance:before,
.app-menu-modal.mosaic .menu-card-article:before{
  display:none!important;
}
.app-menu-modal.mosaic .menu-card-article{
  background:
    linear-gradient(180deg,rgba(12,20,38,0) 8%,rgba(12,20,38,.16) 54%,rgba(12,20,38,.60) 100%),
    radial-gradient(circle at 84% 10%,rgba(255,255,255,.45),transparent 30%),
    linear-gradient(135deg,#dfe6f8,#aebbd6 56%,#f0e2cf)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-sheet:has(.app-menu-modal.mosaic) .sheet-close{
  border-color:rgba(139,160,255,.14)!important;
  background:rgba(21,35,61,.78)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-sheet:has(.app-menu-modal.mosaic) .sheet-close:before,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-sheet:has(.app-menu-modal.mosaic) .sheet-close:after{
  background:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-modal.mosaic .app-menu-title h2{
  color:#F4F7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-modal.mosaic .app-menu-title h2:after{
  background:#DDE5FF!important;
  opacity:.24!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-modal.mosaic .app-menu-card:not(.menu-card-appearance):not(.menu-card-article):not(.menu-logout){
  border-color:rgba(139,160,255,.14)!important;
  background:linear-gradient(135deg,#111C31,#162641)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-modal.mosaic .app-menu-card:not(.menu-card-appearance):not(.menu-card-article):not(.menu-logout) .app-menu-icon{
  border-color:rgba(139,160,255,.16)!important;
  background:rgba(139,160,255,.10)!important;
  color:#DDE5FF!important;
}

.app-menu-modal.mosaic .menu-card-article:before{
  display:block!important;
  position:absolute;
  right:16px;
  bottom:12px;
  z-index:-1;
  width:82px;
  height:92px;
  border:0!important;
  border-radius:10px;
  background:
    linear-gradient(135deg,transparent 0 72%,rgba(255,255,255,.42) 73% 100%),
    repeating-linear-gradient(0deg,rgba(27,41,76,.20) 0 1px,transparent 1px 10px),
    rgba(255,255,255,.34);
  box-shadow:none!important;
  content:"";
  opacity:.55;
  transform:rotate(3deg);
  pointer-events:none;
}
.app-menu-modal.mosaic .menu-card-appearance:before{
  display:none!important;
}
.app-menu-modal.mosaic .menu-card-admin{
  grid-template-columns:30px minmax(0,1fr)!important;
  grid-template-rows:1fr!important;
  min-height:54px!important;
  padding:9px 10px!important;
}
.app-menu-modal.mosaic .menu-card-admin .app-menu-icon{
  width:30px!important;
  height:30px!important;
  color:#27365f!important;
}
.app-menu-modal.mosaic .menu-card-admin b{
  grid-column:2!important;
  font-size:.78rem!important;
}
.app-menu-modal.mosaic .menu-card-admin small{
  display:none!important;
}

/* Hamburger menu text must be readable in full; no ellipsis inside cards. */
.app-menu-modal.mosaic .app-menu-grid{
  grid-template-rows:
    minmax(96px,auto)
    minmax(96px,auto)
    minmax(126px,auto)
    minmax(74px,auto)
    minmax(74px,auto)
    minmax(74px,auto)!important;
  align-items:stretch!important;
}
.app-menu-modal.mosaic .app-menu-card small,
.app-menu-modal.mosaic .menu-card-appearance small,
.app-menu-modal.mosaic .menu-card-article small,
.app-menu-modal.mosaic .menu-card-access small,
.app-menu-modal.mosaic .menu-card-tutorial small,
.app-menu-modal.mosaic .menu-card-country small,
.app-menu-modal.mosaic .menu-card-account small,
.app-menu-modal.mosaic .menu-card-admin small{
  display:block!important;
  overflow:visible!important;
  max-width:none!important;
  color:var(--muted);
  font-size:.68rem!important;
  line-height:1.25!important;
  text-overflow:clip!important;
  white-space:normal!important;
  -webkit-box-orient:unset!important;
  -webkit-line-clamp:unset!important;
}
.app-menu-modal.mosaic .menu-card-appearance small,
.app-menu-modal.mosaic .menu-card-article small{
  color:#E8EEFF!important;
}
.app-menu-modal.mosaic .menu-card-tutorial,
.app-menu-modal.mosaic .menu-card-country,
.app-menu-modal.mosaic .menu-card-account,
.app-menu-modal.mosaic .menu-card-access,
.app-menu-modal.mosaic .menu-card-calendar,
.app-menu-modal.mosaic .menu-card-admin{
  grid-template-columns:30px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-content:center!important;
  gap:2px 8px!important;
}
.app-menu-modal.mosaic .menu-card-tutorial .app-menu-icon,
.app-menu-modal.mosaic .menu-card-country .app-menu-icon,
.app-menu-modal.mosaic .menu-card-account .app-menu-icon,
.app-menu-modal.mosaic .menu-card-access .app-menu-icon,
.app-menu-modal.mosaic .menu-card-calendar .app-menu-icon,
.app-menu-modal.mosaic .menu-card-admin .app-menu-icon{
  grid-row:1 / span 2!important;
}
.app-menu-modal.mosaic .menu-card-tutorial b,
.app-menu-modal.mosaic .menu-card-country b,
.app-menu-modal.mosaic .menu-card-account b,
.app-menu-modal.mosaic .menu-card-access b,
.app-menu-modal.mosaic .menu-card-calendar b,
.app-menu-modal.mosaic .menu-card-admin b,
.app-menu-modal.mosaic .menu-card-tutorial small,
.app-menu-modal.mosaic .menu-card-country small,
.app-menu-modal.mosaic .menu-card-account small,
.app-menu-modal.mosaic .menu-card-access small,
.app-menu-modal.mosaic .menu-card-calendar small,
.app-menu-modal.mosaic .menu-card-admin small{
  grid-column:2!important;
}
@media(max-width:390px){
  .app-menu-modal.mosaic .app-menu-grid{
    grid-template-rows:
      minmax(94px,auto)
      minmax(94px,auto)
      minmax(124px,auto)
      minmax(72px,auto)
      minmax(72px,auto)
      minmax(72px,auto)!important;
  }
}

/* Final polish for visual menu cards. */
.app-menu-modal.mosaic .menu-card-appearance{
  grid-template-columns:1fr!important;
  grid-template-rows:auto auto 1fr!important;
  align-content:start!important;
  align-items:start!important;
  justify-items:start!important;
  gap:6px!important;
  padding:15px 13px!important;
  border:0!important;
  background:var(--menu-appearance-bg)!important;
  box-shadow:var(--menu-appearance-shadow)!important;
}
.app-menu-modal.mosaic .menu-card-appearance b,
.app-menu-modal.mosaic .menu-card-appearance small{
  grid-column:1!important;
  max-width:128px!important;
  text-align:left!important;
}
.app-menu-modal.mosaic .menu-card-appearance b{
  align-self:start!important;
  font-size:.92rem!important;
  line-height:1.05!important;
}
.app-menu-modal.mosaic .menu-card-appearance small{
  margin-top:0!important;
  color:var(--menu-appearance-muted)!important;
  font-size:.67rem!important;
  line-height:1.25!important;
}
.app-menu-modal.mosaic .menu-card-article{
  grid-template-columns:40px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-content:center!important;
  align-items:center!important;
  padding:14px 108px 14px 14px!important;
  border:0!important;
  background:
    linear-gradient(90deg,rgba(32,43,72,.72) 0%,rgba(91,105,137,.50) 58%,rgba(219,226,240,.38) 100%),
    linear-gradient(135deg,#edf2ff,#cbd5ec 60%,#f1e4d3)!important;
  box-shadow:none!important;
}
.app-menu-modal.mosaic .menu-card-article:before{
  top:50%!important;
  right:16px!important;
  bottom:auto!important;
  z-index:0!important;
  width:72px!important;
  height:78px!important;
  border:0!important;
  background:
    linear-gradient(135deg,transparent 0 72%,rgba(255,255,255,.46) 73% 100%),
    repeating-linear-gradient(0deg,rgba(31,45,77,.16) 0 1px,transparent 1px 9px),
    rgba(255,255,255,.30)!important;
  opacity:.54!important;
  transform:translateY(-50%) rotate(2deg)!important;
}
.app-menu-modal.mosaic .menu-card-article .app-menu-icon,
.app-menu-modal.mosaic .menu-card-article b,
.app-menu-modal.mosaic .menu-card-article small{
  position:relative!important;
  z-index:1!important;
}
.app-menu-modal.mosaic .menu-card-article .app-menu-icon{
  width:38px!important;
  height:38px!important;
}
.app-menu-modal.mosaic .menu-card-article b,
.app-menu-modal.mosaic .menu-card-article small{
  max-width:100%!important;
  text-align:left!important;
}
.app-menu-modal.mosaic .menu-card-article b{
  font-size:.96rem!important;
  line-height:1.05!important;
}
.app-menu-modal.mosaic .menu-card-article small{
  font-size:.66rem!important;
  line-height:1.24!important;
}

:root[data-visual-theme="abacate"] .modal{
  background:rgba(47,75,53,.30)!important;
  backdrop-filter:blur(5px) saturate(1.06)!important;
}
:root[data-visual-theme="abacate"] .modal.open .sheet{
  border-color:rgba(111,159,70,.24)!important;
  background:rgba(255,255,243,.88)!important;
  box-shadow:0 -22px 52px rgba(47,75,53,.18)!important;
  backdrop-filter:blur(18px) saturate(1.04)!important;
}
:root[data-visual-theme="abacate"] .weight-change-modal{
  color:#213621!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .insert-meal-list .meal-choice span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .insert-meal-list .meal-choice i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .guided-food-bubble .food-image,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-method-icon,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-checks i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-ai-list i{
  background:#21345C!important;
  color:#E8EEFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .insert-meal-list .meal-choice i{
  background:#0E1729!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-plan,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-methods button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-back,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-copy,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .purchase-auth-actions .social{
  border-color:rgba(139,160,255,.18)!important;
  background:#101A30!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-back{
  border-color:rgba(143,160,255,.38)!important;
  background:rgba(143,160,255,.12)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-plan small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-methods small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-note-block p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-ai-details>p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-ai-footnote,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-footnote,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-order p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-order small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-result-card span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-info-list span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-billing-info span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-billing-grid span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-card-form label{
  background:transparent!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-card-form input{
  border-color:rgba(139,160,255,.18)!important;
  background:#0E1729!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-result-card.success{
  border-color:rgba(118,185,142,.34)!important;
  background:#143224!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-result-card.fail,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .billing-cancel{
  border-color:rgba(231,109,114,.34)!important;
  background:#351D28!important;
  color:#FFADB4!important;
}

/* Profile stat cards: title first, value centered, detail below */
.profile-main-stat,
.profile-health-grid div{
  align-content:center!important;
  justify-items:center!important;
  text-align:center!important;
}
.profile-main-stat small,
.profile-health-grid span{
  order:1;
  margin:0 0 5px!important;
  color:var(--muted)!important;
  font-size:.64rem!important;
  font-weight:900!important;
  letter-spacing:.07em!important;
  line-height:1.1!important;
  text-transform:uppercase!important;
}
.profile-main-stat b,
.profile-health-grid b{
  order:2;
  color:var(--ink)!important;
  line-height:1.05!important;
  text-align:center!important;
}
.profile-main-stat span{
  order:3;
  margin-top:4px!important;
}
.profile-health-grid small{
  order:3;
  margin-top:3px!important;
  color:var(--muted)!important;
  font-size:.62rem!important;
  font-weight:900!important;
  line-height:1.2!important;
  text-align:center!important;
}
.profile-health-grid div{
  min-height:92px!important;
  padding:12px 9px!important;
}

/* Dark mode contrast hardening for action buttons and white list rows */
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .login .social,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .login .social.google,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .purchase-auth-actions .social{
  border-color:rgba(219,229,255,.22)!important;
  background:#F7F9FF!important;
  color:#14213A!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .login .social span:not(.social-icon),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .purchase-auth-actions .social span:not(.social-icon){
  color:#14213A!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-status-tag,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-toggle,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-actions .meal-status-tag,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-confirm-actions .soft,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-bottom-actions .soft,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-top-actions .soft{
  border-color:rgba(139,160,255,.22)!important;
  background:var(--meal-log-control-surface)!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .country-switch-modal .outside-review-confirm-actions .soft{
  border-color:rgba(143,160,255,.42)!important;
  background:rgba(143,160,255,.13)!important;
  color:#F7F9FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-status-tag.ate,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-toggle.ate.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-actions .meal-status-tag.ate.active{
  border-color:rgba(118,185,142,.55)!important;
  background:var(--meal-log-ate-surface)!important;
  color:#F7FFF9!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-status-tag.skipped,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-toggle.skipped.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-actions .meal-status-tag.skipped.active{
  border-color:rgba(255,148,156,.48)!important;
  background:var(--meal-log-skipped-surface)!important;
  color:#FFF4F5!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-status-note{
  border:1px solid rgba(139,160,255,.18);
  border-radius:999px;
  background:var(--meal-log-card-surface);
  color:#DDE5FF!important;
  padding:10px 12px;
  text-align:center;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-food-choice>button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-create-choice,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-choice,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-results .meal-food-choice{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--food-choice-surface)!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-food-choice.selected>button{
  border-color:#8BA0FF!important;
  background:var(--food-choice-active-surface)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-food-choice b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-create-choice b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-choice b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-food-choice span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-create-choice span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-choice span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-food-choice small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-choice small{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-food-choice i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-food-choice em,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-choice i{
  background:var(--food-choice-active-surface)!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-image.custom-food-icon{
  border-color:rgba(118,185,142,.36)!important;
  background:#183528!important;
  color:#76B98E!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-image.custom-food-icon:after{
  border-color:#183528;
}

/* Theme-aware payments, profile drawer and transient messages */
:root{
  --pay-bg:var(--app-bg);
  --pay-surface:#fff;
  --pay-surface-2:var(--surface-2);
  --pay-field:var(--field);
  --pay-line:var(--line);
  --pay-ink:var(--ink);
  --pay-text:var(--text);
  --pay-muted:var(--muted);
  --pay-accent:var(--blue);
  --pay-accent-soft:var(--blue-soft);
  --pay-main:var(--blue-deep);
  --pay-main-text:#fff;
  --pay-back-bg:#fff;
  --pay-back-text:var(--blue-deep);
  --pay-price:var(--orange);
  --pay-shadow:var(--shadow-soft);
  --pay-success-bg:#F0FAF4;
  --pay-fail-bg:var(--red-soft);
}
:root[data-visual-theme="color2"]{
  --pay-bg:#fff8ec;
  --pay-surface:#fffdf8;
  --pay-surface-2:#fff3df;
  --pay-field:#fffaf1;
  --pay-line:#eadcc7;
  --pay-ink:#17364d;
  --pay-text:#39546a;
  --pay-muted:#6d7b89;
  --pay-accent:#ee9b4a;
  --pay-accent-soft:#fff0da;
  --pay-main:#17364d;
  --pay-main-text:#fffdf8;
  --pay-back-bg:#fffaf1;
  --pay-back-text:#17364d;
  --pay-price:#db7c25;
  --pay-success-bg:#f2fbec;
  --pay-fail-bg:#fff0ef;
}
:root[data-visual-theme="prometheus"]{
  --pay-bg:#fff2e4;
  --pay-surface:#fffaf3;
  --pay-surface-2:#ffe5cf;
  --pay-field:#fff8ef;
  --pay-line:#f3c7ad;
  --pay-ink:#28100a;
  --pay-text:#593326;
  --pay-muted:#926453;
  --pay-accent:#ff4b19;
  --pay-accent-soft:#ffe3d6;
  --pay-main:#8b1e08;
  --pay-main-text:#fffaf3;
  --pay-back-bg:#fff8ef;
  --pay-back-text:#8b1e08;
  --pay-price:#ff7a12;
  --pay-shadow:0 13px 28px rgba(139,30,8,.1);
  --pay-success-bg:#fff5c7;
  --pay-fail-bg:#ffe4dc;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]){
  --pay-bg:#0E1729;
  --pay-surface:#16233D;
  --pay-surface-2:#1A2B4A;
  --pay-field:#101A30;
  --pay-line:rgba(139,160,255,.24);
  --pay-ink:#F7F9FF;
  --pay-text:#DDE5FF;
  --pay-muted:#B9C5E4;
  --pay-accent:#8BA0FF;
  --pay-accent-soft:#223B70;
  --pay-main:#8BA0FF;
  --pay-main-text:#07101F;
  --pay-back-bg:#17233D;
  --pay-back-text:#F7F9FF;
  --pay-price:#F0A556;
  --pay-shadow:none;
  --pay-success-bg:#143224;
  --pay-fail-bg:#351D28;
}
:root[data-visual-theme="abacate"]{
  --pay-bg:#fbfff0;
  --pay-surface:#fffff7;
  --pay-surface-2:#f1f9dd;
  --pay-field:#fcfff2;
  --pay-line:#dce9c4;
  --pay-ink:#213621;
  --pay-text:#51674b;
  --pay-muted:#748469;
  --pay-accent:#6f9f46;
  --pay-accent-soft:#eef8d8;
  --pay-main:#315c2e;
  --pay-main-text:#fffff7;
  --pay-back-bg:#fffff7;
  --pay-back-text:#315c2e;
  --pay-price:#9b6f18;
  --pay-success-bg:#eef8d8;
  --pay-fail-bg:#fff0e8;
}
/* Payment/modal color contract. When adding a new visual theme, map the --pay-* tokens above first. */
.modal[data-modal-kind="premium"] .sheet,
.modal[data-modal-kind="premium-info"] .sheet,
.premium-sheet{
  border-color:var(--pay-line)!important;
  background:var(--pay-bg)!important;
  color:var(--pay-text)!important;
}
.modal[data-modal-kind="premium"] .sheet-title.with-actions,
.modal[data-modal-kind="premium-info"] .sheet-title.with-actions,
.premium-sheet .sheet-title.with-actions{
  border-color:var(--pay-line)!important;
  background:color-mix(in srgb,var(--pay-bg) 92%,transparent)!important;
}
.premium-flow,
.premium-info,
.profile-billing{
  color:var(--pay-text)!important;
}
.premium-flow{
  background:transparent!important;
}
.premium-hero,
.purchase-auth-hero{
  align-items:center!important;
  gap:12px!important;
  min-height:86px!important;
  padding:14px 52px 14px 14px!important;
  border-color:color-mix(in srgb,var(--pay-accent) 28%,var(--pay-line))!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--pay-accent) 88%,#fff 12%),var(--pay-main))!important;
  color:var(--pay-main-text)!important;
}
.premium-logo{
  width:44px!important;
  height:44px!important;
  border-radius:15px!important;
  background:var(--pay-surface)!important;
  box-shadow:0 14px 28px color-mix(in srgb,var(--pay-main) 18%,transparent)!important;
}
.premium-logo img,
.premium-payment-head img{
  background:var(--pay-surface)!important;
}
.premium-hero h2,
.premium-hero p,
.premium-hero .premium-badge{
  color:var(--pay-main-text)!important;
}
.premium-hero h2{
  font-size:.98rem!important;
  font-weight:720!important;
  line-height:1.18!important;
  letter-spacing:0!important;
}
.premium-hero .premium-badge{
  margin-bottom:4px!important;
  font-size:.58rem!important;
  font-weight:800!important;
  letter-spacing:.09em!important;
}
.premium-hero p{
  margin-top:4px!important;
  font-size:.74rem!important;
  line-height:1.38!important;
  opacity:.9!important;
}
.premium-flow h2,
.premium-flow h3,
.premium-flow b,
.premium-flow strong,
.premium-info h2,
.premium-info h3,
.premium-info b,
.profile-billing h3,
.profile-billing b{
  color:var(--pay-ink)!important;
}
.premium-section-label,
.premium-order p,
.premium-credit-details summary,
.profile-billing-head .eyebrow{
  color:var(--pay-accent)!important;
}
.premium-checks,
.premium-ai-details,
.premium-note-block,
.premium-order,
.premium-qr-card,
.premium-card-form,
.premium-coupon-box,
.premium-result-card,
.premium-checkout-error,
.premium-credit-details,
.premium-methods button,
.premium-info-list article,
.premium-benefit-item,
.premium-plan,
.premium-credit-values,
.purchase-auth-actions .social,
.premium-account-card,
.premium-account-grid div,
.premium-account-actions>.premium-account-footnote,
.profile-billing-info,
.profile-billing-grid div{
  border-color:var(--pay-line)!important;
  background:var(--pay-surface)!important;
  color:var(--pay-text)!important;
  box-shadow:var(--pay-shadow)!important;
}
.premium-benefit-item small{
  color:var(--pay-muted)!important;
}
.premium-benefit-orb{
  border-color:var(--pay-line)!important;
  background:var(--pay-accent-soft)!important;
}
.premium-checkout-error{
  display:grid;
  gap:4px;
  padding:10px 12px;
  border-radius:16px;
  border-color:color-mix(in srgb,var(--red) 26%,var(--pay-line))!important;
  background:var(--pay-fail-bg)!important;
  box-shadow:none!important;
}
.premium-checkout-error b{
  color:var(--red)!important;
  font-size:.78rem!important;
  line-height:1.2!important;
}
.premium-checkout-error span{
  color:var(--pay-text)!important;
  font-size:.74rem!important;
  font-weight:700!important;
  line-height:1.35!important;
}
.premium-checks p,
.premium-ai-list p,
.premium-card-form label>span,
.premium-coupon-box label>span,
.premium-order span,
.premium-qr-card p,
.premium-qr-card small,
.premium-qr-card em,
.premium-payment-head p,
.premium-info>p,
.premium-note-block p,
.purchase-auth-actions .social span:not(.social-icon){
  color:var(--pay-text)!important;
}
.premium-plan.active,
.premium-methods button.active{
  border-color:var(--pay-accent)!important;
  background:var(--pay-accent-soft)!important;
}
.premium-plan small,
.premium-methods small,
.premium-note-block p,
.premium-ai-details>p,
.premium-ai-footnote,
.premium-footnote,
.premium-order small,
.premium-result-card span,
.premium-info-list span,
.premium-account-card span,
.premium-account-footnote,
.premium-account-grid span,
.profile-billing-head span,
.profile-billing-info span,
.profile-billing-grid span,
.premium-payment-head p,
.premium-credit-values{
  color:var(--pay-muted)!important;
}
.premium-plan strong,
.premium-order strong,
.premium-credit-values b{
  color:var(--pay-price)!important;
}
.premium-method-icon,
.premium-checks i,
.premium-ai-list i,
.purchase-auth-actions .social-icon{
  background:var(--pay-accent-soft)!important;
  color:var(--pay-accent)!important;
}
.premium-payment-head h2,
.premium-qr-card b,
.premium-qr-card strong,
.premium-account-card h3,
.premium-account-card b,
.premium-account-grid b{
  color:var(--pay-ink)!important;
}
.fake-qr{
  background:var(--pay-surface-2)!important;
}
.fake-qr i,
.fake-qr span{
  background:var(--pay-main)!important;
}
.premium-main,
.profile-billing-plan{
  border-color:transparent!important;
  background:var(--pay-main)!important;
  color:var(--pay-main-text)!important;
}
.premium-main:disabled,
.profile-billing-plan:disabled{
  opacity:.58!important;
}
.premium-back,
.premium-copy,
.purchase-auth-actions .social{
  border-color:var(--pay-line)!important;
  background:var(--pay-back-bg)!important;
  color:var(--pay-back-text)!important;
}
.premium-back{
  border-color:color-mix(in srgb,var(--blue) 28%,var(--pay-line))!important;
  background:linear-gradient(180deg,var(--pay-back-bg),color-mix(in srgb,var(--blue) 5%,var(--pay-back-bg)))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.68),0 10px 22px rgba(41,61,102,.08)!important;
}
.modal[data-modal-kind="premium-info"] .premium-account-actions .primary,
.modal[data-modal-kind="premium-info"] .premium-account-actions .soft,
.modal[data-modal-kind="premium-info"] .premium-account-actions .danger,
.modal[data-modal-kind="premium-info"] .sheet-title.with-actions .primary.small,
.modal[data-modal-kind="premium-info"] .sheet-title.with-actions .soft.small,
.profile-billing-actions .soft,
.profile-billing-actions .danger{
  min-height:44px!important;
  border:1px solid var(--pay-line)!important;
  background:var(--pay-back-bg)!important;
  color:var(--pay-back-text)!important;
  box-shadow:none!important;
}
.modal[data-modal-kind="premium-info"] .premium-account-actions .primary,
.modal[data-modal-kind="premium-info"] .sheet-title.with-actions .primary.small,
.profile-billing-actions .primary{
  border-color:transparent!important;
  background:var(--pay-main)!important;
  color:var(--pay-main-text)!important;
}
.modal[data-modal-kind="premium-info"] .premium-account-buy{
  border-color:transparent!important;
  background:var(--pay-main)!important;
  color:var(--pay-main-text)!important;
}
.modal[data-modal-kind="premium-info"] .premium-account-back{
  border-color:var(--pay-line)!important;
  background:var(--pay-surface)!important;
  color:var(--pay-main)!important;
}
.modal[data-modal-kind="premium-info"] .premium-account-option{
  border-color:var(--pay-line)!important;
  background:linear-gradient(135deg,var(--pay-surface),var(--pay-surface-2))!important;
}
.modal[data-modal-kind="premium-info"] .account-identity-card,
.modal[data-modal-kind="premium-info"] .account-plan-card{
  border-color:var(--pay-line)!important;
  background:linear-gradient(135deg,var(--pay-surface),var(--pay-surface-2))!important;
}
.modal[data-modal-kind="premium-info"] .account-identity-avatar,
.modal[data-modal-kind="premium-info"] .account-option-asset{
  border-color:var(--pay-line)!important;
  background:var(--pay-back-bg)!important;
}
.modal[data-modal-kind="premium-info"] .accessibility-option{
  background:
    radial-gradient(circle at 10% 12%,color-mix(in srgb,var(--pay-accent-soft) 70%,transparent),transparent 30%),
    linear-gradient(135deg,var(--pay-surface),var(--pay-surface-2))!important;
}
.modal[data-modal-kind="premium-info"] .premium-account-option i{
  background:var(--pay-back-bg)!important;
  color:var(--pay-main)!important;
}
.modal[data-modal-kind="premium-info"] .premium-account-card.danger-zone.subtle{
  background:var(--pay-fail-bg)!important;
}
.premium-account-settings-button{
  min-height:48px!important;
  border:1px solid color-mix(in srgb,var(--blue) 20%,var(--line))!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,#fff,rgba(245,248,255,.96))!important;
  color:var(--ink)!important;
  font-weight:950!important;
  box-shadow:0 10px 24px rgba(41,61,102,.08)!important;
}
.premium-account-settings-button:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--blue) 36%,var(--line))!important;
  box-shadow:0 16px 30px rgba(41,61,102,.12)!important;
}
.premium-account-settings-modal.refined{
  gap:9px!important;
}
.premium-account-settings-modal.refined .premium-account-header{
  margin:0;
  padding:0 50px 10px 0;
}
.premium-account-settings-modal.refined .account-identity-card{
  grid-template-columns:44px minmax(0,1fr);
  gap:10px;
  min-height:64px;
  padding:10px 12px;
  border-radius:18px;
}
.premium-account-settings-modal.refined .account-identity-avatar{
  width:44px;
  height:44px;
  border-radius:16px;
}
.premium-account-settings-modal.refined .account-identity-card span,
.premium-account-settings-modal.refined .account-plan-card span{
  color:var(--muted);
  font-size:.66rem;
  font-weight:950;
  letter-spacing:.02em;
}
.premium-account-settings-modal.refined .account-identity-card b,
.premium-account-settings-modal.refined .account-plan-card b{
  display:block;
  overflow:hidden;
  max-width:100%;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.premium-account-settings-modal.refined .account-plan-card{
  grid-template-columns:1fr;
  min-height:62px;
  padding:11px 13px;
  border-radius:18px;
}
.premium-settings-hub{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.premium-account-settings-modal .compact-account-option{
  display:grid;
  grid-template-columns:40px minmax(0,1fr) 28px;
  align-items:center;
  gap:11px;
  min-height:62px;
  padding:10px 12px;
  border-radius:18px;
  text-align:left;
}
.premium-account-settings-modal .account-option-copy{
  display:flex;
  grid-column:2;
  grid-row:1;
  align-self:center;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
.premium-account-settings-modal .compact-account-option .account-option-asset{
  grid-row:1;
  grid-column:1;
}
.premium-account-settings-modal .compact-account-option b{
  display:block;
  margin:0;
  overflow:hidden;
  color:var(--ink);
  font-size:.9rem;
  line-height:1.15;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.premium-account-settings-modal .compact-account-option em{
  margin:0;
  flex:0 0 auto;
  justify-self:end;
  color:var(--muted);
  font-style:normal;
  font-size:.7rem;
  font-weight:950;
  line-height:1;
}
.premium-account-settings-modal .compact-account-option small,
.premium-account-settings-modal .compact-account-option>span:not(.account-option-asset):not(.account-option-copy){
  display:none!important;
}
.premium-account-settings-modal .compact-account-option i{
  grid-row:1;
  grid-column:3;
  position:static;
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  transform:none;
  box-shadow:0 7px 14px rgba(41,61,102,.08);
}
.premium-account-settings-modal .account-option-letter{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line));
  border-radius:14px;
  background:linear-gradient(135deg,#fff,var(--blue-soft));
  color:var(--blue);
  font-size:.68rem;
  font-weight:1000;
  letter-spacing:.02em;
}
.premium-account-settings-modal .account-delete-option{
  grid-template-columns:40px minmax(0,1fr) 28px;
  min-height:58px;
  margin-top:1px;
}
.premium-account-settings-modal .account-delete-option .account-option-letter{
  border-color:rgba(231,109,114,.22);
  background:rgba(231,109,114,.08);
  color:var(--red);
}
@media(max-width:430px){
  .premium-settings-hub{
    grid-template-columns:1fr;
  }
  .premium-account-settings-modal.refined .premium-account-heading h2{
    font-size:1.02rem;
  }
  .premium-account-settings-modal.refined .account-identity-card,
  .premium-account-settings-modal.refined .account-plan-card,
  .premium-account-settings-modal .compact-account-option{
    border-radius:17px;
  }
}
.modal[data-modal-kind="premium-info"] .premium-account-actions .danger,
.profile-billing-actions .danger{
  border-color:color-mix(in srgb,var(--red) 30%,var(--pay-line))!important;
  background:var(--pay-fail-bg)!important;
  color:var(--red)!important;
}
.premium-ai-credit-plan{
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  min-height:62px!important;
  padding:11px 12px!important;
  border-color:var(--pay-line)!important;
  background:linear-gradient(135deg,var(--pay-surface),var(--pay-surface-2))!important;
  color:var(--pay-text)!important;
}
.premium-ai-credit-plan span{
  min-width:0!important;
}
.premium-ai-credit-plan b{
  color:var(--pay-ink)!important;
  line-height:1.18!important;
}
.premium-ai-credit-plan small{
  color:var(--pay-muted)!important;
  white-space:normal!important;
}
.premium-ai-credit-plan strong{
  align-self:center!important;
  justify-self:end!important;
  min-width:max-content!important;
  padding:7px 9px!important;
  border-radius:999px!important;
  background:var(--pay-accent-soft)!important;
  color:var(--pay-price)!important;
  font-size:.82rem!important;
  line-height:1!important;
}
.premium-ai-credit-plan.active{
  border-color:var(--pay-accent)!important;
  background:var(--pay-accent-soft)!important;
}
.modal[data-modal-kind="premium"] .sheet,
.modal[data-modal-kind="premium-info"] .sheet,
.premium-sheet{
  padding-top:42px!important;
}
.modal[data-modal-kind="premium"] .sheet-close,
.modal[data-modal-kind="premium-info"] .sheet-close,
.premium-sheet .sheet-close{
  top:9px!important;
  right:18px!important;
  width:32px!important;
  height:32px!important;
  padding:0!important;
  border:1px solid color-mix(in srgb,var(--pay-line) 72%,transparent)!important;
  background:color-mix(in srgb,var(--pay-surface) 82%,transparent)!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  box-shadow:0 8px 18px color-mix(in srgb,var(--pay-main) 10%,transparent)!important;
  opacity:.86!important;
  backdrop-filter:blur(12px);
}
.modal[data-modal-kind="premium"] .sheet-close:before,
.modal[data-modal-kind="premium"] .sheet-close:after,
.modal[data-modal-kind="premium-info"] .sheet-close:before,
.modal[data-modal-kind="premium-info"] .sheet-close:after,
.premium-sheet .sheet-close:before,
.premium-sheet .sheet-close:after{
  position:absolute;
  top:50%;
  left:50%;
  width:11px;
  height:1.5px;
  border-radius:999px;
  background:color-mix(in srgb,var(--pay-main) 72%,var(--pay-muted) 28%);
  content:"";
  transform:translate(-50%,-50%) rotate(45deg);
}
.modal[data-modal-kind="premium"] .sheet-close:after,
.modal[data-modal-kind="premium-info"] .sheet-close:after,
.premium-sheet .sheet-close:after{
  transform:translate(-50%,-50%) rotate(-45deg);
}
.modal[data-modal-kind="premium"] .premium-hero,
.modal[data-modal-kind="premium"] .purchase-auth-hero{
  position:relative;
  overflow:hidden;
  min-height:92px!important;
  padding:16px 62px 16px 14px!important;
  border-radius:20px!important;
  background:
    radial-gradient(circle at 12% 0%,rgba(255,255,255,.22),rgba(255,255,255,0) 34%),
    linear-gradient(135deg,color-mix(in srgb,var(--pay-accent) 82%,#fff 18%) 0%,var(--pay-main) 72%)!important;
}
.modal[data-modal-kind="premium"] .premium-hero:before{
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,0) 48%);
  pointer-events:none;
  content:"";
}
.modal[data-modal-kind="premium"] .premium-hero>*{
  position:relative;
  z-index:1;
}
.modal[data-modal-kind="premium"] .premium-hero h2,
.modal[data-modal-kind="premium"] .premium-hero p,
.modal[data-modal-kind="premium"] .premium-hero .premium-badge{
  color:var(--pay-main-text)!important;
  text-shadow:0 1px 10px color-mix(in srgb,var(--pay-main) 30%,transparent);
}
.modal[data-modal-kind="premium"] .premium-hero h2{
  font-size:1rem!important;
  font-weight:850!important;
}
.modal[data-modal-kind="premium"] .premium-hero p{
  opacity:.92!important;
}
.modal[data-modal-kind="premium"] .premium-section-label{
  margin-top:4px!important;
  color:color-mix(in srgb,var(--pay-accent) 82%,var(--pay-main) 18%)!important;
}
.purchase-auth-actions .social span:not(.social-icon){
  color:var(--pay-back-text)!important;
}
.premium-card-form input,
.premium-coupon-box input,
.premium-card-form select,
.premium-card-form textarea{
  border-color:var(--pay-line)!important;
  background:var(--pay-field)!important;
  color:var(--pay-ink)!important;
}
.premium-result-card.success{
  border-color:color-mix(in srgb,var(--green) 40%,var(--pay-line))!important;
  background:var(--pay-success-bg)!important;
}
.premium-result-card.fail,
.premium-account-card.danger-zone,
.billing-cancel{
  border-color:rgba(231,109,114,.34)!important;
  background:var(--pay-fail-bg)!important;
}
.premium-fail-link,
.billing-cancel{
  color:var(--red)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-fail-link,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .billing-cancel{
  color:#FFB8BE!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-hero,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .purchase-auth-hero{
  background:linear-gradient(135deg,#223B70,#101A30)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-logo{
  background:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-logo img{
  background:#F7F9FF!important;
}
.toast{
  pointer-events:none;
  border-color:var(--pay-line)!important;
  background:var(--pay-main)!important;
  color:var(--pay-main-text)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .toast{
  background:#203761!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-mission,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-stage,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-station-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-ingredient-row,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-food-select{
  border-color:rgba(139,160,255,.18)!important;
  background:#16233D!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-stage h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-mission-head b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-food-select b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-saved-head b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-stage span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-food-select span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-food-select small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-station-foods>span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-station-card input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-station-card select,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-ingredient-row input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-ingredient-row select,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-search{
  border-color:rgba(139,160,255,.22)!important;
  background:#0E1729!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-station-foods button{
  border-color:rgba(139,160,255,.24)!important;
  background:#0E1729!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-station-foods button.active{
  border-color:#8BA0FF!important;
  background:#223B70!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-group-rail button{
  border-color:rgba(139,160,255,.24)!important;
  background:#0E1729!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-group-rail button.active{
  border-color:#8BA0FF!important;
  background:#223B70!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-filter-icon{
  border-color:rgba(139,160,255,.22)!important;
  background:#16233D!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-saved-card{
  border-color:rgba(139,160,255,.24)!important;
  background-image:linear-gradient(145deg,rgba(11,22,40,.28),rgba(11,22,40,.82)),var(--recipe-card-image,none)!important;
  background-color:var(--recipe-card-bg,#17233D)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-tone-options,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-palette-button{
  border-color:rgba(139,160,255,.22)!important;
  background:#0E1729!important;
  color:#F7F9FF!important;
}
:root[data-visual-theme="cheese"] .recipe-saved-actions .soft{
  border-color:#d89a2b!important;
  background:#2f2d5f!important;
  color:#fffdf4!important;
}
:root[data-visual-theme="cheese"] .recipe-saved-actions .soft[data-recipe-delete]{
  background:#a95141!important;
  color:#fffdf4!important;
}
.recipe-ingredient-row{
  grid-template-columns:minmax(150px,1fr) minmax(130px,1.4fr) minmax(100px,1fr) minmax(120px,.8fr) 34px!important;
  align-items:center!important;
  gap:7px!important;
  padding:8px!important;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  overflow:hidden;
}
.recipe-ingredient-row>*{min-width:0}
.recipe-ingredient-row label{
  align-self:center;
  gap:5px;
  min-width:0;
}
.recipe-ingredient-row label>span{
  overflow:hidden;
  color:var(--muted);
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.05em;
  line-height:1.05;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}
.recipe-ingredient-row input,
.recipe-ingredient-row select{
  width:100%;
  min-height:42px;
  height:42px;
  border-radius:16px;
  font-size:.82rem;
}
.recipe-food-select.compact{
  grid-template-columns:38px minmax(0,1fr);
  align-items:center;
  gap:8px;
  min-height:58px;
  padding:7px 8px;
  border-radius:15px;
}
.recipe-food-select.compact .food-image{
  width:38px;
  height:38px;
  border-radius:13px;
}
.recipe-food-select.compact b{
  overflow:hidden;
  color:var(--ink);
  font-size:.82rem;
  line-height:1.15;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.cut-label{
  display:flex;
  align-items:center;
  gap:5px;
}
.info-dot{
  display:inline-grid;
  place-items:center;
  width:18px;
  min-width:18px;
  height:18px;
  min-height:18px;
  padding:0;
  border:1px solid rgba(102,127,255,.34);
  border-radius:50%;
  background:var(--blue-soft);
  color:var(--blue);
  font-size:.62rem;
  font-weight:950;
  line-height:1;
}
.recipe-ingredient-row .remove-button{
  align-self:center;
  width:32px;
  min-width:32px;
  height:32px;
}
.recipe-saved-card .recipe-saved-actions{
  grid-template-columns:34px repeat(2,minmax(0,1fr))!important;
  align-items:center;
}
.recipe-palette-button{
  position:static!important;
  width:34px!important;
  height:34px!important;
  align-self:center;
}
.recipe-tone-options{
  right:auto!important;
  bottom:48px!important;
  left:10px!important;
}
.chef-cut-guide-card{
  width:min(100%,680px);
}
.chef-cut-guide-card img{
  display:block;
  width:100%;
  height:auto;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-food-select.compact b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-ingredient-row label>span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .cut-label{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .info-dot{
  border-color:rgba(139,160,255,.34)!important;
  background:#223B70!important;
  color:#F7F9FF!important;
}
/* Ingredient order remains measure, food, preparation and edible yield. */
.recipe-ingredient-row .chef-amount-field,
.recipe-ingredient-row .chef-food-field{display:grid;gap:5px;min-width:0}
.recipe-ingredient-row .chef-food-field>span,
.recipe-ingredient-row label>span{font-size:.65rem;letter-spacing:0;white-space:normal;line-height:1.2;overflow-wrap:anywhere}
.recipe-ingredient-row .chef-food-field>span{color:var(--muted);font-weight:950;text-transform:uppercase}
.recipe-ingredient-row .chef-food-field button{width:100%}
.recipe-ingredient-row .chef-amount-field select{font-size:.75rem}
.recipe-ingredient-row .chef-edible-field>span{min-height:25px}
.chef-selected-list{container-type:inline-size;container-name:kitchenIngredients}
@container kitchenIngredients (max-width:600px){
  .recipe-ingredient-row{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 30px!important;
    gap:5px!important;
    padding:7px!important;
  }
  .recipe-ingredient-row .chef-food-field{grid-column:1/3;grid-row:2}
  .recipe-ingredient-row .chef-amount-field{grid-column:1/4;grid-row:1;grid-template-columns:minmax(0,1fr) 65px;align-items:end}
  .recipe-ingredient-row .chef-edible-field{grid-column:2/4;grid-row:3}
  .recipe-ingredient-row .chef-cut-field{grid-column:1;grid-row:3}
  .recipe-ingredient-row .remove-button{grid-column:3;grid-row:2}
  .recipe-food-select.compact{
    grid-template-columns:30px minmax(0,1fr);
    gap:6px;
    min-height:50px;
    padding:6px;
  }
  .recipe-food-select.compact .food-image{
    width:30px;
    height:30px;
    border-radius:11px;
  }
  .recipe-food-select.compact b{
    font-size:.74rem;
  }
  .recipe-ingredient-row input,
  .recipe-ingredient-row select{
    min-height:40px;
    height:40px;
    padding-right:20px;
    padding-left:8px;
    font-size:.7rem;
  }
  .recipe-ingredient-row .remove-button{
    width:30px;
    min-width:30px;
    height:30px;
  }
  .recipe-ingredient-row .cut-label{
    gap:3px;
  }
  .recipe-ingredient-row .info-dot{
    width:16px;
    min-width:16px;
    height:16px;
    min-height:16px;
    font-size:.58rem;
  }
}
@container kitchenIngredients (max-width:260px){
  .recipe-ingredient-row .chef-amount-field{grid-template-columns:minmax(0,1fr)}
  .recipe-ingredient-row .chef-cut-field{grid-column:1/4;grid-row:3}
  .recipe-ingredient-row .chef-edible-field{grid-column:1/4;grid-row:4}
}
.advanced-profile label:has(#profileNoAnimalProtein),
.advanced-profile label:has(#profileNoAnimal){
  margin-bottom:8px!important;
}
.method-section-title{
  margin:0 0 3px!important;
}
#methodNote{
  gap:6px;
}
.food-taxonomy-row.grid2.origin-hidden.subtype-hidden{grid-template-columns:minmax(0,1fr)!important}
.food-taxonomy-row.grid2.origin-hidden:not(.subtype-hidden){grid-template-columns:repeat(2,minmax(0,1fr))!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-status-note,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-action-note,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recover-empty{
  border-color:rgba(139,160,255,.22)!important;
  background:#16233D!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-status-note{
  background:var(--meal-log-card-surface)!important;
}

/* Profile drawer contrast in caramelo espacial */
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .drawer-head{
  border-color:rgba(139,160,255,.18)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer h2,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .slot-title,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer legend,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .advanced-section-title{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .note,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .profile-terms,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-help span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer select,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer textarea{
  border-color:rgba(139,160,255,.22)!important;
  background:#101A30!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer input::placeholder,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer textarea::placeholder{
  color:#8291B4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .slot-tabs button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-grid label,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-help,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-help div,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-help-trigger,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .advanced-profile,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .advanced-profile summary,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-terms,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-update-options label,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .weight-prompt-toggle,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-option,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileMeals .meal-option{
  border-color:rgba(139,160,255,.18)!important;
  background:#16233D!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .weight-prompt-toggle span{
  background:#2D3A54!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .weight-prompt-toggle.active span{
  background:#8BA0FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .slot-tabs button.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileMeals .meal-option:has(input:checked),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-option:has(input:checked){
  border-color:#8BA0FF!important;
  background:#223B70!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-help-trigger span:last-child,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .advanced-profile summary:after{
  background:#243B70!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer input[type="checkbox"]{
  accent-color:#8BA0FF;
}

/* Profile metric card final layout: title, value, then classification */
.profile-health-grid div{
  min-height:98px!important;
  gap:3px!important;
  padding:12px 8px!important;
  overflow:hidden!important;
}
.profile-health-grid span{
  max-width:15ch!important;
  min-height:2.15em!important;
  margin:0 auto 5px!important;
  font-size:.6rem!important;
  letter-spacing:.055em!important;
  line-height:1.12!important;
  text-transform:uppercase!important;
}
.profile-health-grid b{
  font-size:1rem!important;
}
.profile-health-grid small{
  max-width:13ch!important;
  margin:4px auto 0!important;
  color:var(--muted)!important;
  font-size:.58rem!important;
  letter-spacing:.015em!important;
  line-height:1.12!important;
  text-transform:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-health-grid small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-health-grid span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-health-grid b{
  color:#F7F9FF!important;
}

/* Profile selectable cards: hide checkbox chrome, keep native state */
#profileForm .meal-option,
#profileForm .toggle{
  position:relative;
  cursor:pointer;
  transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;
}
#profileForm .meal-option input[type="checkbox"],
#profileForm .toggle input[type="checkbox"]{
  position:absolute!important;
  width:1px!important;
  min-width:1px!important;
  height:1px!important;
  min-height:1px!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  pointer-events:none!important;
}
#profileForm .meal-option:has(input:checked),
#profileForm .toggle:has(input:checked){
  border-color:rgba(47,118,80,.34)!important;
  background:linear-gradient(180deg,#f4fff7,#ecfbf0)!important;
  color:#244e36!important;
  box-shadow:0 10px 22px rgba(47,118,80,.10)!important;
}
#profileForm .meal-option:has(input:checked) b,
#profileForm .toggle:has(input:checked) b{
  color:#244e36!important;
}
#profileForm .meal-option:has(input:checked):after,
#profileForm .toggle:has(input:checked):after{
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  margin-left:auto;
  flex:0 0 auto;
  border-radius:50%;
  background:#2f7650;
  color:#fff;
  content:"\2713";
  font-size:.74rem;
  font-weight:900;
  line-height:1;
}
#profileForm .meal-option:active,
#profileForm .toggle:active{
  transform:scale(.99);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .meal-option:has(input:checked),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .toggle:has(input:checked){
  border-color:rgba(118,185,142,.58)!important;
  background:#285A42!important;
  color:#F7FFF9!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .meal-option:has(input:checked) b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .toggle:has(input:checked) b{
  color:#F7FFF9!important;
}
:root[data-visual-theme="color2"] #profileForm .meal-option:has(input:checked),
:root[data-visual-theme="color2"] #profileForm .toggle:has(input:checked){
  border-color:rgba(0,139,102,.30)!important;
  background:linear-gradient(180deg,#fffdf8,#eefbf3)!important;
}
:root[data-visual-theme="abacate"] #profileForm .meal-option:has(input:checked),
:root[data-visual-theme="abacate"] #profileForm .toggle:has(input:checked){
  border-color:rgba(91,139,67,.38)!important;
  background:linear-gradient(180deg,#fbfff0,#edf8d9)!important;
}

/* Diário: visual final alinhado à aba Metas/Agora */
.diary-card{
  display:grid;
  gap:18px;
  padding:0!important;
  border:0!important;
  background:var(--diary-panel-surface)!important;
  box-shadow:none!important;
}
.diary-section{
  display:grid;
  gap:12px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.diary-head,
.diary-section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:0;
}
.diary-head h3,
.diary-section-title h3{
  color:var(--ink);
  font-family:inherit;
  font-size:1.24rem;
  font-weight:900;
  letter-spacing:-.035em;
  line-height:1.08;
  text-transform:none;
}
.diary-section-title span,
.diary-head .pill{
  flex:0 0 auto;
  max-width:48%;
  overflow:hidden;
  color:var(--blue-deep);
  font-size:.66rem;
  font-weight:900;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.diary-head .pill{
  min-height:28px;
  padding:0 11px;
  border:1px solid rgba(94,124,246,.18);
  background:var(--blue-soft);
}
.diary-glass-panel{
  display:grid;
  gap:13px;
  padding:14px;
  border:1px solid rgba(47,68,112,.10);
  border-radius:30px;
  background:var(--diary-glass-surface);
  box-shadow:0 16px 36px rgba(47,68,112,.07);
  backdrop-filter:blur(10px);
}
.diary-period-section .diary-glass-panel{
  background:var(--diary-period-surface);
}
.diary-range{
  margin:0;
}
.diary-range label,
.diary-date-search{
  padding:11px 12px;
  border-color:rgba(47,68,112,.10);
  border-radius:22px;
  background:var(--diary-control-surface);
  box-shadow:0 8px 20px rgba(47,68,112,.045);
}
.diary-range label span,
.diary-date-search span{
  color:var(--text);
  font-size:.72rem;
  font-weight:850;
  letter-spacing:0;
  text-transform:none;
}
.diary-series-controls{
  display:flex!important;
  grid-template-columns:none!important;
  flex-wrap:nowrap;
  gap:7px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:1px 1px 3px;
  scrollbar-width:none;
}
.diary-series-controls::-webkit-scrollbar{
  display:none;
}
.diary-series-controls button{
  flex:0 0 auto;
  min-width:58px;
  width:max-content;
  min-height:40px;
  padding:0 13px;
  border-radius:999px;
  font-size:.74rem;
  line-height:1;
  overflow:visible;
  text-overflow:clip;
  white-space:nowrap;
}
.diary-no-filter{
  display:grid;
  place-items:center;
  min-height:58px;
  width:100%;
  margin:0;
  padding:0 16px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:850;
  text-align:center;
}
.diary-chart{
  margin:0;
  padding:12px 10px 13px;
  border-color:rgba(47,68,112,.10);
  border-radius:28px;
  background:var(--diary-chart-surface);
  box-shadow:0 10px 24px rgba(47,68,112,.055);
  backdrop-filter:blur(8px);
}
.diary-legend{
  justify-content:center;
  gap:8px 12px;
  margin-top:10px;
  font-size:.68rem;
}
.diary-day-section{
  margin-top:4px;
}
.diary-carousel{
  display:flex!important;
  grid-template-columns:none!important;
  gap:12px;
  margin:0 -12px;
  padding:2px 14px 8px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.diary-carousel::-webkit-scrollbar{
  display:none;
}
.diary-carousel>.macro,
.diary-carousel>.day-macro{
  flex:0 0 min(74vw,260px);
  scroll-snap-align:center;
}
.diary-carousel>.day-macro{
  position:relative;
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr);
  grid-template-rows:auto auto auto;
  align-items:center;
  column-gap:13px;
  min-height:96px!important;
  padding:13px 15px!important;
  border:1px solid rgba(209,218,237,.58)!important;
  border-radius:23px!important;
  background:linear-gradient(180deg,#fff 0%,rgba(255,255,255,.92) 100%)!important;
  box-shadow:0 12px 28px rgba(38,59,100,.07),inset 0 1px 0 rgba(255,255,255,.9)!important;
}
.diary-carousel>.day-macro:before{
  content:"";
  position:static;
  display:block!important;
  grid-column:1;
  grid-row:1 / 4;
  width:48px;
  height:48px;
  border:0!important;
  border-radius:999px;
  background:
    radial-gradient(circle at center,#fff 0 50%,transparent 52%),
    conic-gradient(var(--macro-ring-active,var(--macro-ring,#edf2fc)) var(--macro-pct,0%),var(--macro-ring-bg,#edf2fc) 0 100%)!important;
  box-shadow:inset 0 0 0 5px color-mix(in srgb,var(--macro-ring-bg,#edf2fc) 72%,#fff),0 8px 18px var(--macro-glow,rgba(38,59,100,.04))!important;
  box-sizing:border-box;
}
.diary-carousel>.day-macro.macro-reached:before{
  --macro-ring-active:color-mix(in srgb,var(--macro-ring,#edf2fc) 72%,#8f6b3a);
  --macro-ring-bg:color-mix(in srgb,var(--macro-ring,#edf2fc) 54%,#fff);
}
.diary-carousel .macro-kcal{--macro-icon:url("/assets/icons/macro-kcal.svg");--macro-soft:#fff4df;--macro-ring:#f2e3c8;--macro-ring-bg:#fbf0dc;--macro-glow:rgba(214,148,77,.08)}
.diary-carousel .macro-protein{--macro-icon:url("/assets/icons/macro-protein.svg");--macro-soft:#edf3ff;--macro-ring:#d9e5fb;--macro-ring-bg:#edf3ff;--macro-glow:rgba(74,106,185,.08)}
.diary-carousel .macro-carbs{--macro-icon:url("/assets/icons/macro-carbs.svg");--macro-soft:#edf8f0;--macro-ring:#d9eddc;--macro-ring-bg:#eaf6ed;--macro-glow:rgba(72,146,95,.08)}
.diary-carousel .macro-fats{--macro-icon:url("/assets/icons/macro-fats.svg");--macro-soft:#fff0e8;--macro-ring:#f3ddcf;--macro-ring-bg:#fff0e8;--macro-glow:rgba(223,137,93,.08)}
.diary-carousel>.day-macro span{
  grid-column:2;
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  margin:0;
  overflow:hidden;
  color:#6e7893;
  font-size:.68rem!important;
  font-weight:800;
  letter-spacing:.07em!important;
  line-height:1.1;
  text-transform:uppercase!important;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.diary-carousel>.day-macro span:before{
  content:"";
  display:block;
  flex:0 0 14px;
  width:14px;
  height:14px;
  background:currentColor;
  opacity:.78;
  -webkit-mask:var(--macro-icon) center/contain no-repeat;
  mask:var(--macro-icon) center/contain no-repeat;
}
.diary-carousel>.day-macro b{
  grid-column:2;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:baseline;
  gap:0;
  margin:6px 0 0;
  min-width:0;
  font-size:1rem;
}
.diary-carousel>.day-macro b i,
.diary-carousel>.day-macro small i{
  overflow-wrap:normal!important;
  word-break:normal!important;
  white-space:nowrap!important;
}
.diary-carousel>.day-macro b i{
  border:0!important;
  padding:0 8px!important;
  color:#111a32;
  font-style:normal;
  line-height:1.05;
  text-align:center;
}
.diary-carousel>.day-macro b i:nth-child(1){
  padding-left:0!important;
  font-size:1.22rem!important;
  font-weight:900;
}
.diary-carousel>.day-macro b i:nth-child(2),
.diary-carousel>.day-macro b i:nth-child(3){
  border-left:1px solid #dce4f2!important;
  color:#324057;
  font-size:.8rem!important;
  font-weight:900;
}
.diary-carousel>.day-macro small{
  grid-column:2;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin:6px 0 0;
  color:#8b93a8;
  font-size:.46rem!important;
  font-weight:900;
  letter-spacing:.025em!important;
  line-height:1.05;
  text-transform:uppercase!important;
}
.diary-carousel>.day-macro small i{
  border:0!important;
  padding:0 8px!important;
  color:inherit;
  font-size:inherit!important;
  text-align:center;
}
.diary-carousel>.day-macro small i:first-child{
  padding-left:0!important;
}
.diary-carousel>.day-macro small i+i{
  border-left:1px solid #dce4f2!important;
}
.diary-carousel>.day-macro .progress{
  grid-column:2;
  height:4px;
  margin-top:7px;
  border-radius:999px;
  background:#edf2fb;
}
.diary-carousel>.day-macro .progress i{
  border-radius:999px;
}
.diary-card .macro span,
.diary-card .day-macro span,
.diary-card .day-macro small{
  letter-spacing:.01em;
  text-transform:none;
}
.diary-card .macro span,
.diary-card .day-macro span{
  color:var(--text);
  font-size:.72rem;
  font-weight:850;
}
.diary-card .macro b,
.diary-card .day-macro b{
  font-size:1.06rem;
  letter-spacing:-.025em;
}
.diary-card .day-macro small i{
  color:var(--muted);
  font-size:.64rem;
  font-weight:850;
  letter-spacing:.01em;
  text-transform:none;
}
.diary-chart-prelude{
  display:grid;
  gap:10px;
}
.diary-period-summary{
  padding-top:0!important;
  padding-bottom:2px!important;
  grid-template-columns:minmax(230px,min(100%,330px))!important;
  justify-content:center;
}
.diary-period-summary.empty{
  display:grid!important;
  margin:0!important;
  padding:0!important;
}
.diary-period-summary>.day-macro{
  grid-template-columns:minmax(0,1fr)!important;
  min-height:74px!important;
  padding:12px 13px!important;
  border-color:rgba(47,68,112,.08)!important;
  background:var(--diary-stat-surface)!important;
  box-shadow:0 10px 20px rgba(47,68,112,.045)!important;
}
.diary-period-summary>.day-macro:before,
.diary-period-summary>.day-macro span:before{
  display:none!important;
}
.diary-period-summary>.day-macro span,
.diary-period-summary>.day-macro b,
.diary-period-summary>.day-macro small,
.diary-period-summary>.day-macro .progress{
  grid-column:1!important;
}
.diary-period-summary>.day-macro b{
  margin-top:8px!important;
}
.diary-period-summary>.day-macro b i:first-child{
  font-size:1rem!important;
}
.diary-period-summary>.day-macro b i:nth-child(2),
.diary-period-summary>.day-macro b i:nth-child(3){
  font-size:.78rem!important;
}
.diary-cycle-insight,
.diary-cycle-period{
  display:grid;
  gap:9px;
  margin:10px 0;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--pink,#E56B92) 18%,var(--line));
  border-radius:18px;
  background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--pink,#E56B92) 7%,#fff));
  box-shadow:0 12px 26px rgba(47,68,112,.055);
}
.diary-cycle-insight header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:start;
}
.diary-cycle-insight h3,
.diary-cycle-period h3{
  font-size:.98rem;
}
.diary-cycle-insight header span{
  display:inline-grid;
  place-items:center;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,255,255,.78);
  color:var(--ink);
  font-size:.68rem;
  font-weight:950;
}
.diary-cycle-insight-grid,
.diary-cycle-period>div{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.diary-cycle-insight-grid span,
.diary-cycle-period span{
  min-width:0;
  padding:9px 10px;
  border:1px solid var(--line-soft);
  border-radius:14px;
  background:rgba(255,255,255,.72);
}
.diary-cycle-insight b,
.diary-cycle-period b{
  display:block;
  overflow:hidden;
  color:var(--ink);
  font-size:.82rem;
  font-weight:950;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.diary-cycle-insight small,
.diary-cycle-period small,
.diary-cycle-period>span{
  color:var(--muted);
  font-size:.68rem;
  font-weight:850;
  line-height:1.25;
}
.diary-cycle-period.idle{
  border-color:var(--line);
  background:rgba(255,255,255,.68);
}
.diary-chart-tools{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
}
.diary-layer-toggle{
  display:flex;
  gap:6px;
  overflow-x:auto;
  padding:1px 1px 4px;
  scrollbar-width:none;
}
.diary-layer-toggle::-webkit-scrollbar{
  display:none;
}
.diary-layer-toggle button{
  flex:0 0 auto;
  min-height:34px;
  padding:0 11px;
  border:1px dashed rgba(47,68,112,.18);
  border-radius:999px;
  background:var(--diary-control-muted-surface);
  color:var(--muted);
  font-size:.68rem;
  font-weight:900;
}
.diary-layer-toggle button.active{
  border-color:rgba(88,120,245,.42);
  background:var(--diary-control-active-surface);
  color:var(--blue-deep);
}
.diary-layer-toggle button:disabled{
  opacity:.38;
  pointer-events:none;
}
.diary-stat-strip{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:1px 1px 4px;
  scrollbar-width:none;
}
.diary-stat-strip::-webkit-scrollbar{
  display:none;
}
.diary-stat-strip button{
  display:grid;
  gap:3px;
  flex:0 0 auto;
  min-width:104px;
  padding:8px 10px;
  border:1px solid rgba(47,68,112,.08);
  border-radius:16px;
  background:var(--diary-stat-surface);
  box-shadow:0 8px 16px rgba(47,68,112,.035);
  color:var(--text);
  text-align:left;
}
.diary-stat-strip button.active{
  border-color:rgba(88,120,245,.35);
  background:var(--diary-stat-active-surface);
}
.diary-stat-strip small{
  color:var(--muted);
  font-size:.58rem;
  font-weight:900;
  letter-spacing:.04em;
  line-height:1.05;
  text-transform:uppercase;
}
.diary-stat-strip b{
  overflow:hidden;
  color:var(--diary-strong);
  font-size:.78rem;
  font-weight:900;
  line-height:1.15;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.diary-stat-strip em{
  display:block;
  overflow:hidden;
  color:var(--muted);
  font-size:.64rem;
  font-style:normal;
  font-weight:850;
  line-height:1.12;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.diary-period-reading{
  display:grid;
  gap:4px;
  margin-top:8px;
  padding:11px 12px;
  border:1px solid color-mix(in srgb,var(--blue) 12%,var(--line));
  border-radius:18px;
  background:var(--diary-reading-surface);
  color:var(--text);
}
.diary-period-reading b{
  color:var(--ink);
  font-size:.76rem;
  font-weight:950;
}
.diary-period-reading span{
  color:var(--text);
  font-size:.78rem;
  line-height:1.42;
}
.diary-period-main-reading{
  margin:8px 0 0;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.52);
  color:var(--ink);
  font-size:.88rem;
  font-weight:950;
  line-height:1.2;
  text-align:center;
}
.diary-reading-lines{
  display:grid;
  gap:0;
}
.diary-reading-lines p{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:6px 10px;
  align-items:start;
  margin:0;
  padding:7px 8px;
  border-top:1px solid color-mix(in srgb,var(--blue) 10%,transparent);
  border-radius:10px;
}
.diary-reading-lines p:first-child{
  border-top:0;
  padding-top:2px;
}
.diary-reading-lines p:nth-child(-n+5){
  background:color-mix(in srgb,var(--blue-soft) 34%,transparent);
}
.diary-reading-lines p:nth-child(n+6):nth-child(-n+9){
  background:color-mix(in srgb,var(--orange-soft,var(--peach-soft)) 34%,transparent);
}
.diary-reading-lines p:nth-child(n+10){
  background:color-mix(in srgb,var(--green-soft,#F0FAF4) 24%,transparent);
}
.diary-reading-lines strong{
  color:var(--muted);
  font-size:.7rem;
  font-weight:850;
  line-height:1.25;
}
.diary-reading-lines span{
  color:var(--ink);
  font-size:.72rem;
  font-weight:850;
  line-height:1.25;
  text-align:right;
}
.diary-reading-lines span small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:.58rem;
  font-weight:900;
  line-height:1.15;
  text-align:right;
}
.diary-reading-lines p.is-pending{
  background:color-mix(in srgb,var(--orange-soft,var(--peach-soft)) 44%,transparent)!important;
  border-color:color-mix(in srgb,var(--orange) 18%,transparent);
}
.diary-reading-lines p.is-pending span{
  color:color-mix(in srgb,var(--orange) 68%,var(--ink) 32%);
}
.diary-period-reading .diary-weight-advice{
  display:block;
  margin-top:4px;
  padding-top:7px;
  border-top:1px solid color-mix(in srgb,var(--blue) 14%,transparent);
  color:var(--muted);
  font-size:.74rem;
  font-style:normal;
  font-weight:760;
  line-height:1.35;
}
.diary-period-summary{
  margin-top:9px!important;
}
.diary-period-summary>.macro,
.diary-period-summary>.day-macro{
  flex-basis:min(72vw,238px);
  max-width:238px;
}
.diary-trend-toggle{
  min-height:38px;
  padding:0 12px;
  border:1px solid rgba(47,68,112,.1);
  border-radius:999px;
  background:rgba(255,255,255,.58);
  color:var(--text);
  font-size:.68rem;
  font-weight:900;
  white-space:nowrap;
}
.diary-trend-toggle.active{
  border-color:var(--blue);
  background:var(--blue);
  color:#fff;
}
.chart-trend-path,
.chart-forecast-path{
  fill:none;
  stroke:var(--line);
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-dasharray:8 7;
  opacity:.82;
}
.chart-forecast-path{
  stroke-dasharray:2 7;
}
.chart-food-trend-path{
  stroke:#e29a23;
  stroke-dasharray:7 7;
  opacity:.88;
}
.chart-weight-trend-path{
  fill:none;
  stroke:var(--line);
  stroke-width:2.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:3 6;
  opacity:.9;
}
.chart-final-dot circle{
  fill:var(--line);
  stroke:#fff;
  stroke-width:2;
  filter:drop-shadow(0 4px 9px rgba(28,42,76,.18));
}
.chart-final-dot-food circle{
  fill:#e29a23;
}
.chart-final-dot-weight circle{
  fill:#d64550;
}
.weight-forecast-dot circle{
  fill:var(--line);
  stroke:#fff;
  stroke-width:2;
  opacity:.9;
}
.weight-forecast-dot rect{
  fill:rgba(255,255,255,.9);
  stroke:rgba(47,68,112,.12);
}
.weight-forecast-dot text{
  fill:var(--ink);
  font-size:9px;
  font-weight:900;
}
.chart-weight-mark{
  cursor:pointer;
}
.chart-weight-mark line{
  stroke:#276ef1;
  stroke-width:2;
  stroke-dasharray:4 5;
  opacity:.26;
}
.chart-weight-mark circle{
  fill:#276ef1;
  stroke:#fff;
  stroke-width:2.8;
  filter:drop-shadow(0 4px 8px rgba(39,110,241,.24));
}
.chart-weight-mark.selected circle{
  stroke:var(--blue-deep);
  stroke-width:3.2;
}
.chart-weight-mark rect{
  fill:rgba(255,245,236,.94);
  stroke:rgba(241,144,83,.48);
}
.chart-weight-mark text{
  fill:var(--blue-deep);
  font-size:10px;
  font-weight:900;
}
.goal-dot-label text{
  fill:var(--ink);
  paint-order:stroke;
  stroke:rgba(255,255,255,.82);
  stroke-width:4px;
  font-size:8.5px;
  font-weight:900;
}
.chart-insight-average rect{
  fill:var(--line);
  opacity:.12;
}
.chart-insight-average line,
.chart-insight-point line{
  stroke:var(--line);
  stroke-width:2;
  stroke-dasharray:5 6;
  opacity:.7;
}
.chart-insight-average text,
.chart-insight-point text,
.chart-group-callout text,
.chart-meal-bars text{
  fill:var(--ink);
  font-size:10px;
  font-weight:900;
  letter-spacing:.01em;
}
.chart-insight-point circle{
  fill:#fff;
  stroke:var(--line);
  stroke-width:2.5;
}
.chart-planned-path{
  fill:none;
  stroke:var(--line);
  stroke-width:2.25;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:2 8;
  opacity:.92;
}
.chart-reference-dot circle{
  fill:#fff;
  stroke:var(--line);
  stroke-width:2.4;
  cursor:pointer;
  filter:drop-shadow(0 4px 8px rgba(47,68,112,.14));
}
.chart-insight-point rect,
.chart-group-callout rect{
  fill:rgba(255,255,255,.88);
  stroke:rgba(47,68,112,.12);
}
.chart-insight-point .date-chip{
  fill:var(--line);
  stroke:none;
  opacity:.18;
}
.chart-insight-point .date-label,
.chart-insight-point .value,
.chart-group-callout .value{
  fill:var(--blue-deep);
}
.chart-meal-bars rect{
  fill:var(--line);
  opacity:.32;
}
.period-weight-card{
  --macro-icon:url("/assets/features/target.svg");
  --macro-soft:#f2efff;
  --macro-ring:#ddd7ff;
  --macro-ring-bg:#f1efff;
}
.period-weight-card b,
.period-weight-card small{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.diary-day-section .diary-date-search{
  margin:0 0 2px;
}
.diary-day-detail{
  margin-top:22px;
}
.diary-history-title{
  padding:0 4px;
}
.diary-meal-log-list{
  gap:10px;
  margin-top:0;
}
.diary-meal-log,
.diary-empty-log{
  border-color:rgba(47,68,112,.10);
  border-radius:22px;
  background:#fff;
  box-shadow:0 10px 24px rgba(47,68,112,.055);
}
.diary-meal-log.pending{
  background:rgba(245,248,255,.82);
}
.diary-meal-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.diary-status-button{
  min-height:34px;
  border:1px solid rgba(39,54,95,.12);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font-size:.72rem;
  font-weight:900;
}
.diary-status-button.ate{
  border-color:rgba(102,127,245,.24);
  background:#EEF3FF;
  color:#27365F;
}
.diary-status-button.skipped{
  border-color:rgba(247,168,78,.28);
  background:#FFF2E2;
  color:#814A11;
}
.diary-status-button.ate.active{
  border-color:#667FF5;
  background:#667FF5;
  color:#fff;
  box-shadow:0 8px 18px rgba(102,127,245,.16);
}
.diary-status-button.skipped.active{
  border-color:#F7A84E;
  background:#F7A84E;
  color:#14213A;
  box-shadow:0 8px 18px rgba(247,168,78,.16);
}
@media(min-width:760px){
  .diary-carousel{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    margin:0;
    padding:0;
    overflow:visible;
  }
  .diary-carousel>.macro,
  .diary-carousel>.day-macro{
    flex:auto;
  }
}
@media(max-width:430px){
  .diary-section{
    padding:0;
    border-radius:28px;
  }
  .diary-glass-panel{
    padding:13px;
    border-radius:28px;
  }
  .diary-head h3,
  .diary-section-title h3{
    font-size:1.14rem;
  }
}

/* Diário do dia: leitura em ordem natural. */
.diary-day-section .diary-glass-panel{
  gap:18px;
  padding:15px!important;
}
.diary-day-title{
  align-items:center;
  margin-bottom:2px;
}
.diary-day-title h3,
.diary-history-title h3,
.diary-summary-title h3{
  letter-spacing:0!important;
}
.diary-day-section .diary-date-search{
  display:grid;
  gap:8px;
  margin:0!important;
  padding:13px 14px!important;
  border-color:rgba(102,127,245,.14)!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(247,249,255,.82))!important;
  box-shadow:0 10px 24px rgba(41,61,102,.055)!important;
}
.diary-day-section .diary-date-search span{
  color:var(--orange)!important;
  font-size:.64rem!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
.diary-day-section .diary-date-search input{
  min-height:44px;
  border-radius:15px;
  background:#fff;
  font-weight:900;
}
.diary-day-detail{
  display:grid;
  gap:11px;
  margin-top:0!important;
}
.diary-history-title,
.diary-summary-title{
  display:grid;
  align-items:start;
  justify-content:stretch;
  gap:2px;
  padding:2px 4px 0!important;
}
.diary-history-title h3,
.diary-summary-title h3{
  color:var(--ink);
  font-size:1.02rem!important;
  line-height:1.16;
}
.diary-meal-log-list{
  display:grid;
  grid-template-columns:1fr;
  gap:9px!important;
}
.diary-meal-log{
  gap:9px!important;
  padding:11px!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fff,rgba(248,250,255,.92))!important;
}
.diary-meal-log header{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr);
  align-items:center!important;
  gap:10px!important;
}
.diary-meal-log .meal-icon{
  width:38px;
  height:38px;
  border-radius:13px;
}
.diary-meal-log .grow{
  min-width:0;
}
.diary-meal-log .grow b{
  color:var(--ink);
  font-size:.9rem;
  line-height:1.12;
}
.diary-meal-log .meal-goal{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  min-height:22px;
  margin-top:5px;
  padding:0 8px;
  border:1px solid rgba(102,127,245,.16);
  border-radius:999px;
  background:rgba(102,127,245,.08);
  color:var(--blue-deep);
  font-size:.58rem!important;
  font-weight:950;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.diary-meal-total{
  margin-top:5px!important;
  color:var(--muted)!important;
  font-size:.68rem!important;
  font-weight:850!important;
}
.diary-meal-log .meal-items{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(132px,1fr));
  gap:6px;
  padding-top:8px;
  border-top:1px solid rgba(102,127,245,.12);
}
.diary-meal-log .meal-items span{
  min-width:0;
  padding:7px 8px;
  border:1px solid rgba(102,127,245,.10);
  border-radius:12px;
  background:rgba(255,255,255,.74);
  color:var(--text);
  font-size:.7rem;
  font-weight:850;
  line-height:1.2;
}
.diary-meal-actions{
  gap:7px!important;
}
.diary-day-summary{
  display:grid;
  gap:11px;
  margin-top:1px;
}
.diary-day-summary .diary-carousel{
  margin:0!important;
}
.diary-day-summary .diary-carousel>.day-macro{
  box-shadow:0 10px 22px rgba(41,61,102,.06)!important;
}
@media(min-width:760px){
  .diary-meal-log-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-day-section .diary-date-search,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-meal-log{
  border-color:rgba(139,160,255,.20)!important;
  background:linear-gradient(135deg,rgba(18,34,61,.96),rgba(22,39,68,.9))!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-day-section .diary-date-search input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-meal-log .meal-items span{
  border-color:rgba(139,160,255,.18)!important;
  background:#111d33!important;
  color:#f7f9ff!important;
}

@media (hover:none), (pointer:coarse){
  input,
  select,
  textarea,
  .modal input,
  .modal select,
  .modal textarea,
  .sheet input,
  .sheet select,
  .sheet textarea,
  .food-form-sheet input,
  .food-form-sheet select,
  .food-form-sheet textarea,
  .outside-diet-sheet input,
  .outside-diet-sheet select,
  .outside-diet-sheet textarea,
  .outside-inline-card input,
  .outside-inline-card select,
  .outside-inline-card textarea,
  .picker-search input,
  label.search input{
    font-size:16px!important;
  }
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-meal-log .meal-goal{
  border-color:rgba(139,160,255,.24);
  background:rgba(139,160,255,.13);
  color:#dfe7ff;
}

/* Ajustes de persistência visual: perfil avançado e navegação inferior */
.bottom-nav{
  position:fixed!important;
  transform:none;
  will-change:auto;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .toggle,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .meal-option,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .advanced-profile label,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .advanced-profile .toggle{
  border-color:rgba(139,160,255,.22)!important;
  background:#16233D!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .toggle b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .meal-option b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .advanced-profile label,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .advanced-profile label span{
  color:#F7F9FF!important;
}
:root[data-visual-theme="abacate"] .modal,
:root[data-visual-theme="abacate"] .profile-backdrop{
  background:rgba(42,67,28,.26)!important;
  backdrop-filter:blur(8px);
}

/* Layout containment: one app shell, many colors */
html,
body,
#app,
.app,
.screens,
.screen{
  max-width:100%;
}
.app,
.screens,
.screen{
  min-width:0;
  overflow-x:hidden;
}
.screen.active{
  min-width:0;
}
.today-meal-list[data-home-carousel],
.home-plan-modes[data-home-carousel],
.home-actions[data-home-carousel],
.diary-carousel{
  overscroll-behavior-x:contain;
}
#foodsScreen,
#foodsScreen #foodList,
#foodsScreen .food-card,
#foodsScreen .food-card-main,
#foodsScreen .food-card .grow,
#foodsScreen .food-card-actions{
  min-width:0;
  max-width:100%;
}
#foodsScreen #foodList{
  display:grid;
}
#foodsScreen .food-card{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  overflow:hidden;
  contain:layout paint;
}
#foodsScreen .food-card-main{
  width:100%;
}
#foodsScreen .food-card .grow{
  display:grid;
  gap:4px;
}
#foodsScreen .food-card .grow b,
#foodsScreen .food-card .grow span,
#foodsScreen .food-card .grow small{
  max-width:100%;
  overflow-wrap:break-word;
}
#foodsScreen .food-card .grow b{
  display:-webkit-box;
  overflow:hidden;
  line-height:1.18;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
#foodsScreen .food-card .grow span{
  display:-webkit-box;
  overflow:hidden;
  line-height:1.32;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
#foodsScreen .food-card-actions{
  width:auto;
  flex:0 0 auto;
  flex-wrap:nowrap!important;
  justify-content:flex-end;
  overflow:hidden;
}
#foodsScreen .food-card-actions .pill{
  flex:0 1 auto;
  min-width:0;
  max-width:132px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#foodsScreen .food-card-actions .switch{
  margin-left:auto;
}
.food-favorite-button{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  min-height:34px;
  flex:0 0 auto;
  padding:0;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--surface-2);
  color:var(--muted);
  font-size:1rem;
  line-height:1;
  box-shadow:0 8px 16px rgba(41,61,102,.06);
}
.food-favorite-button.active{
  border-color:rgba(255,159,113,.42);
  background:linear-gradient(135deg,var(--peach-soft),#fff);
  color:var(--orange);
}
.favorite-food-card{
  border-color:color-mix(in srgb,var(--orange) 34%,var(--line));
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card-actions .pill{
  border-color:rgba(139,160,255,.28)!important;
  background:#223B70!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card{
  background:#132139!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card .grow b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card .grow span{
  color:#C7D3EF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-favorite-button{
  border-color:rgba(139,160,255,.24);
  background:#16233D;
  color:#B9C5E4;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-favorite-button.active{
  border-color:rgba(255,178,101,.42);
  background:#243756;
  color:#FFB265;
}
@media(max-width:430px){
  #foodsScreen .food-card{
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    padding:11px;
  }
  #foodsScreen .food-card-actions{
    gap:6px;
  }
  #foodsScreen .food-card-actions .food-delete-button,
  #foodsScreen .food-card-actions .food-favorite-button{
    width:32px;
    height:32px;
    min-height:32px;
  }
}

/* Theme surface contract
   New app colors start with these tokens:
   --bg, --app-bg, --surface, --surface-2, --surface-3, --card, --field,
   --ink, --text, --muted, --faint, --line, --line-soft, --blue,
   --blue-soft, --blue-deep, --orange, --peach, --peach-soft, --green,
   --red, --red-soft, --shadow and --shadow-soft.
   Special surfaces use semantic tokens:
   payments: --pay-* / method modal: --method-*.
   Cozinha/recipes must theme: .chef-stage, .chef-mission, .chef-station-card,
   .recipe-ingredient-row, .recipe-saved-card, .recipe-tone-options and .recipe-detail-modal.
   Tab tracks and segmented button groups should use transparent tracks in alternate themes;
   this includes .home-tabs (Metas/Diário) and .diary-series-controls (Calorias/Proteínas/...).
   Dieta/Analise must theme as one group: .plan-tabs, .diary-start-notice,
   .diary-period-presets, .diary-analysis-filter-rail, .diary-period-summary,
   .diary-stat-card, .diary-layer-toggle, .diary-chart, .diary-legend and
   .diary-period-reading. These selectors live late in this file, so new themes
   need matching late overrides.
   Economia details must theme all nested purchase/consumption lists:
   .finance-consumption-row, .finance-week-block, .finance-appearance-row i
   and .finance-appearance-row small.
   Nutrient cards must share the same visual contract in .home-macro-carousel and .diary-carousel:
   ring/icon, Meta/Previsto/Ingerido order, progress fill and per-macro color tokens.
   The selected theme is profile data: root.slots[n].visualTheme. */
:root{
  --method-bg:var(--surface-2);
  --method-card:var(--card);
  --method-field:var(--field);
  --method-line:var(--line);
  --method-ink:var(--ink);
  --method-text:var(--text);
  --method-muted:var(--muted);
  --method-accent:var(--blue);
  --method-accent-soft:var(--blue-soft);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]){
  --method-bg:#101A30;
  --method-card:#16233D;
  --method-field:#0E1729;
  --method-line:rgba(139,160,255,.24);
  --method-ink:#F7F9FF;
  --method-text:#DDE5FF;
  --method-muted:#B9C5E4;
  --method-accent:#8BA0FF;
  --method-accent-soft:#223B70;
}
:root[data-visual-theme="abacate"]{
  --method-bg:#f1f9dd;
  --method-card:#fffff7;
  --method-field:#fcfff2;
  --method-line:#dce9c4;
  --method-ink:#213621;
  --method-text:#51674b;
  --method-muted:#748469;
  --method-accent:#6f9f46;
  --method-accent-soft:#eef8d8;
}
:root[data-visual-theme="cheese"]{
  --bg:#2c3540;
  --app-bg:#fff7d7;
  --surface:#fffdf0;
  --surface-2:#fff0bf;
  --surface-3:#f7dfa0;
  --card:#fffdf4;
  --field:#fffefa;
  --ink:#2f2d22;
  --text:#5f5947;
  --muted:#827861;
  --faint:#a99e83;
  --line:#ead9a6;
  --line-soft:rgba(47,45,34,.13);
  --blue:#7c6ad9;
  --blue-soft:#eeeaff;
  --blue-deep:#2f2d5f;
  --orange:#d89a2b;
  --peach:#ffc96f;
  --peach-soft:#fff3c8;
  --green:#669848;
  --red:#db7064;
  --red-soft:#fff0ec;
  --shadow:0 24px 46px rgba(47,45,34,.14);
  --shadow-soft:0 13px 28px rgba(47,45,34,.1);
  --pay-bg:#fff8dc;
  --pay-surface:#fffdf4;
  --pay-surface-2:#fff0bf;
  --pay-field:#fffefa;
  --pay-line:#ead9a6;
  --pay-ink:#2f2d22;
  --pay-text:#5f5947;
  --pay-muted:#827861;
  --pay-accent:#d89a2b;
  --pay-accent-soft:#fff3c8;
  --pay-main:#2f2d5f;
  --pay-main-text:#fffdf4;
  --pay-back-bg:#fffdf4;
  --pay-back-text:#2f2d5f;
  --pay-price:#b67517;
  --pay-success-bg:#f0f8dc;
  --pay-fail-bg:#fff0ec;
  --method-bg:#fff0bf;
  --method-card:#fffdf4;
  --method-field:#fffefa;
  --method-line:#ead9a6;
  --method-ink:#2f2d22;
  --method-text:#5f5947;
  --method-muted:#827861;
  --method-accent:#d89a2b;
  --method-accent-soft:#fff3c8;
  --shell-bg:#2c3540;
  --shell-desktop-bg:linear-gradient(135deg,#fff7d7 0%,#fffdf0 58%,#fff0bf 100%);
  --top-surface:rgba(255,253,244,.94);
  --nav-surface:rgba(255,253,244,.94);
  --modal-backdrop:rgba(47,45,34,.24);
  --modal-surface:#fffdf4;
  --modal-header-surface:rgba(255,253,244,.96);
  --control-surface:#fffdf4;
}
:root[data-visual-theme="cheese"] body,
:root[data-visual-theme="cheese"] html{
  background:#2c3540;
}
:root[data-visual-theme="cheese"] .app{
  background:
    radial-gradient(circle at 28% 6%,rgba(255,238,165,.62) 0,rgba(255,238,165,0) 34%),
    radial-gradient(circle at 78% 18%,rgba(255,201,111,.34) 0,rgba(255,201,111,0) 30%),
    linear-gradient(180deg,#fff7d7 0%,#fffdf0 72%,#fffefa 100%);
}
:root[data-visual-theme="cheese"] .app-top,
:root[data-visual-theme="cheese"] .bottom-nav,
:root[data-visual-theme="cheese"] .sheet,
:root[data-visual-theme="cheese"] .modal,
:root[data-visual-theme="cheese"] .ai-chat,
:root[data-visual-theme="cheese"] .ai-chat-head,
:root[data-visual-theme="cheese"] .ai-chat-form{
  background:rgba(255,253,244,.94);
  border-color:rgba(234,217,166,.86);
}
:root[data-visual-theme="cheese"] .home-tabs,
:root[data-visual-theme="cheese"] .diary-series-controls{
  background:transparent!important;
  box-shadow:none!important;
}
:root[data-visual-theme="color2"] .diary-series-controls,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-tabs,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-series-controls,
:root[data-visual-theme="abacate"] .home-tabs,
:root[data-visual-theme="abacate"] .diary-series-controls{
  background:transparent!important;
  box-shadow:none!important;
}
:root[data-visual-theme="color2"] .diary-series-controls button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-series-controls button,
:root[data-visual-theme="abacate"] .diary-series-controls button,
:root[data-visual-theme="cheese"] .diary-series-controls button{
  border-color:var(--line)!important;
  background:var(--card)!important;
  color:var(--muted)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-series-controls button{
  background:#16233D!important;
  color:#B9C5E4!important;
}
:root[data-visual-theme="cheese"] .primary,
:root[data-visual-theme="cheese"] .home-tabs .active,
:root[data-visual-theme="cheese"] .diary-series-controls .active,
:root[data-visual-theme="cheese"] .bottom-nav .active,
:root[data-visual-theme="cheese"] .carousel-dots i.active,
:root[data-visual-theme="cheese"] .carousel-dots button.active{
  background:#2f2d5f;
  color:#fffdf4;
}
:root[data-visual-theme="color2"] .diary-series-controls .active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-series-controls .active,
:root[data-visual-theme="abacate"] .diary-series-controls .active{
  border-color:var(--blue)!important;
  background:var(--blue)!important;
  color:#fff!important;
}
:root[data-visual-theme="cheese"] .panel,
:root[data-visual-theme="cheese"] .profile-card,
:root[data-visual-theme="cheese"] .profile-main-stat,
:root[data-visual-theme="cheese"] .profile-goal-row div,
:root[data-visual-theme="cheese"] .plan-range-card,
:root[data-visual-theme="cheese"] .home-macro-carousel .day-macro,
:root[data-visual-theme="cheese"] .meal-card,
:root[data-visual-theme="cheese"] .food-card,
:root[data-visual-theme="cheese"] .action-card,
:root[data-visual-theme="cheese"] .app-menu-card,
:root[data-visual-theme="cheese"] .help-choice-card:not([data-visual-theme-choice]){
  background:rgba(255,253,244,.94);
  border-color:rgba(234,217,166,.9);
}
:root[data-visual-theme="cheese"] .app-menu-card[data-app-appearance]{
  background:var(--menu-appearance-bg);
  color:var(--menu-appearance-text);
}
:root[data-visual-theme="cheese"] .modal,
:root[data-visual-theme="cheese"] .profile-backdrop{
  background:rgba(47,45,34,.24)!important;
  backdrop-filter:blur(8px) saturate(1.05)!important;
}
:root[data-visual-theme="cheese"] .modal.open .sheet{
  border-color:rgba(216,154,43,.24)!important;
  background:rgba(255,253,244,.86)!important;
  box-shadow:0 -22px 52px rgba(47,45,34,.17)!important;
  backdrop-filter:blur(18px) saturate(1.04)!important;
}
:root[data-visual-theme="cheese"] .weight-change-modal{
  color:#2f2d22!important;
}
.method-summary-sheet,
.method-summary-card,
.method-summary-list article{
  border-color:var(--method-line)!important;
  background:var(--method-card)!important;
  color:var(--method-text)!important;
}
.method-summary-sheet{
  background:var(--method-bg)!important;
}
.method-summary-modal h2,
.method-summary-modal h3,
.method-summary-modal b,
.method-summary-lead,
.method-summary-card .eyebrow{
  color:var(--method-ink)!important;
}
.method-summary-list span,
.method-summary-card p,
.method-summary-modal .muted,
.method-summary-modal .tiny{
  color:var(--method-text)!important;
}
.method-summary-list b{
  background:var(--method-accent-soft)!important;
  color:var(--method-accent)!important;
}
.method-summary-card.soft-note{
  background:var(--method-field)!important;
}
.help-choice-card[data-visual-theme-choice="cheese"]:before{
  background:
    radial-gradient(circle at 24% 28%,rgba(255,255,255,.75),transparent 21%),
    radial-gradient(circle at 74% 16%,rgba(255,201,111,.88),transparent 25%),
    linear-gradient(135deg,#fff7d7,#ffe49b 52%,#2f2d5f);
}
.help-choice-card[data-visual-theme-choice="yellowgray"]:before{
  background:
    radial-gradient(circle at 22% 18%,rgba(255,255,255,.8),transparent 19%),
    radial-gradient(circle at 72% 16%,rgba(255,219,91,.88),transparent 25%),
    radial-gradient(circle at 78% 88%,rgba(130,138,148,.45),transparent 28%),
    linear-gradient(135deg,#ffe26a 0%,#f2d678 38%,#dfe3e7 72%,#7e8794 120%);
}
.help-choice-card[data-visual-theme-choice="yellowgray"] span:before{
  background:linear-gradient(135deg,#ffe26a 0 47%,#e6eaed 48% 72%,#596170 73%);
}

/* Limão pós banho: topo solar, base clara e cinza */
:root[data-visual-theme="yellowgray"]{
  --bg:#363b43;
  --app-bg:#eef0f1;
  --surface:#f8f9f8;
  --surface-2:#eceff1;
  --surface-3:#dde2e6;
  --card:#ffffff;
  --field:#fbfcfc;
  --ink:#242b34;
  --text:#56606b;
  --muted:#7a8491;
  --faint:#a5adb6;
  --line:#d6dce1;
  --line-soft:rgba(36,43,52,.12);
  --blue:#3d4c5f;
  --blue-soft:#e6ebef;
  --blue-deep:#273341;
  --orange:#d6a322;
  --peach:#ffe26a;
  --peach-soft:#fff4c8;
  --green:#5c906f;
  --red:#d56f68;
  --red-soft:#fff0ef;
  --shadow:0 24px 46px rgba(44,51,60,.12);
  --shadow-soft:0 13px 28px rgba(44,51,60,.08);
  --pay-bg:#eef0f1;
  --pay-surface:#ffffff;
  --pay-surface-2:#eceff1;
  --pay-field:#fbfcfc;
  --pay-line:#d6dce1;
  --pay-ink:#242b34;
  --pay-text:#56606b;
  --pay-muted:#7a8491;
  --pay-accent:#d6a322;
  --pay-accent-soft:#fff4c8;
  --pay-main:#273341;
  --pay-main-text:#ffffff;
  --pay-back-bg:#ffffff;
  --pay-back-text:#273341;
  --pay-price:#bd7f13;
  --pay-success-bg:#ecf6ee;
  --pay-fail-bg:#fff0ef;
  --method-bg:#eef0f1;
  --method-card:#ffffff;
  --method-field:#fbfcfc;
  --method-line:#d6dce1;
  --method-ink:#242b34;
  --method-text:#56606b;
  --method-muted:#7a8491;
  --method-accent:#d6a322;
  --method-accent-soft:#fff4c8;
  --shell-bg:#363b43;
  --shell-desktop-bg:linear-gradient(135deg,#f5f6f6 0%,#fbfcfb 56%,#fff4c8 100%);
  --top-surface:rgba(255,255,252,.92);
  --nav-surface:rgba(255,255,252,.92);
  --modal-backdrop:rgba(36,43,52,.32);
  --modal-surface:#ffffff;
  --modal-header-surface:rgba(255,255,252,.96);
  --control-surface:#ffffff;
}
:root[data-visual-theme="yellowgray"] body,
:root[data-visual-theme="yellowgray"] html{
  background:#363b43;
}
:root[data-visual-theme="yellowgray"] .app{
  background:
    radial-gradient(ellipse 145% 420px at 28% -72px,rgba(255,226,106,.86) 0,rgba(255,226,106,.54) 34%,rgba(255,226,106,.18) 58%,rgba(255,226,106,0) 78%),
    radial-gradient(ellipse 92% 300px at 92% 4%,rgba(255,210,61,.34) 0,rgba(255,210,61,.14) 48%,rgba(255,210,61,0) 78%),
    linear-gradient(180deg,#f2efdf 0%,#eef0f1 46%,#e6eaed 100%);
  color:var(--text);
}
:root[data-visual-theme="yellowgray"] .app-top,
:root[data-visual-theme="yellowgray"] .bottom-nav,
:root[data-visual-theme="yellowgray"] .sheet,
:root[data-visual-theme="yellowgray"] .modal,
:root[data-visual-theme="yellowgray"] .ai-chat,
:root[data-visual-theme="yellowgray"] .ai-chat-head,
:root[data-visual-theme="yellowgray"] .ai-chat-form{
  border-color:rgba(185,159,65,.28);
  background:rgba(255,255,252,.92);
  color:var(--text);
}
:root[data-visual-theme="yellowgray"] .home-tabs,
:root[data-visual-theme="yellowgray"] .diary-series-controls{
  background:transparent!important;
  box-shadow:none!important;
}
:root[data-visual-theme="yellowgray"] .screens,
:root[data-visual-theme="yellowgray"] .screen{
  background:transparent!important;
}
:root[data-visual-theme="yellowgray"] [data-home-carousel],
:root[data-visual-theme="yellowgray"] #planScreen #mealList{
  background:transparent!important;
  box-shadow:none!important;
}
:root[data-visual-theme="yellowgray"] [data-home-carousel]:before,
:root[data-visual-theme="yellowgray"] [data-home-carousel]:after{
  display:none!important;
}
:root[data-visual-theme="yellowgray"] .carousel-dots{
  background:transparent!important;
  box-shadow:none!important;
}
:root[data-visual-theme="yellowgray"] .panel,
:root[data-visual-theme="yellowgray"] .profile-card,
:root[data-visual-theme="yellowgray"] .profile-main-stat,
:root[data-visual-theme="yellowgray"] .profile-goal-row div,
:root[data-visual-theme="yellowgray"] .plan-range-card,
:root[data-visual-theme="yellowgray"] .home-macro-carousel .day-macro,
:root[data-visual-theme="yellowgray"] .meal-card,
:root[data-visual-theme="yellowgray"] .food-card,
:root[data-visual-theme="yellowgray"] .action-card,
:root[data-visual-theme="yellowgray"] .app-menu-card,
:root[data-visual-theme="yellowgray"] .help-choice-card:not([data-visual-theme-choice]){
  border-color:rgba(214,220,225,.95)!important;
  background:rgba(255,255,255,.9)!important;
  color:var(--text)!important;
  box-shadow:0 14px 34px rgba(44,51,60,.08)!important;
}
:root[data-visual-theme="yellowgray"] input,
:root[data-visual-theme="yellowgray"] select,
:root[data-visual-theme="yellowgray"] textarea,
:root[data-visual-theme="yellowgray"] fieldset,
:root[data-visual-theme="yellowgray"] .search,
:root[data-visual-theme="yellowgray"] .picker-search,
:root[data-visual-theme="yellowgray"] label.search{
  border-color:#d6dce1;
  background:#fbfcfc;
  color:#242b34;
}
:root[data-visual-theme="yellowgray"] input:focus,
:root[data-visual-theme="yellowgray"] select:focus,
:root[data-visual-theme="yellowgray"] textarea:focus{
  border-color:#d6a322;
  box-shadow:0 0 0 4px rgba(214,163,34,.16);
}
:root[data-visual-theme="yellowgray"] .primary,
:root[data-visual-theme="yellowgray"] .home-tabs .active,
:root[data-visual-theme="yellowgray"] .diary-series-controls .active,
:root[data-visual-theme="yellowgray"] .bottom-nav .active,
:root[data-visual-theme="yellowgray"] .carousel-dots i.active,
:root[data-visual-theme="yellowgray"] .carousel-dots button.active{
  border-color:#3d4c5f!important;
  background:#3d4c5f!important;
  color:#fff!important;
  box-shadow:0 12px 24px rgba(44,51,60,.16)!important;
}
:root[data-visual-theme="yellowgray"] .soft,
:root[data-visual-theme="yellowgray"] .ghost,
:root[data-visual-theme="yellowgray"] .chip,
:root[data-visual-theme="yellowgray"] .day-tabs button,
:root[data-visual-theme="yellowgray"] .segmented button,
:root[data-visual-theme="yellowgray"] .home-tabs button,
:root[data-visual-theme="yellowgray"] .diary-series-controls button{
  border-color:#d6dce1;
  background:rgba(255,255,255,.74);
  color:#3d4c5f;
}
:root[data-visual-theme="yellowgray"] .home-nutrient-focus{
  border-color:rgba(214,163,34,.22);
  background:transparent!important;
  box-shadow:none!important;
}
:root[data-visual-theme="yellowgray"] #foodsScreen .foods-hero-card,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-mode-card,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-substitution-intro{
  display:grid!important;
  gap:8px!important;
  min-height:168px;
  padding:18px 17px!important;
  border-color:rgba(214,163,34,.28)!important;
  background:
    radial-gradient(circle at 84% 28%,rgba(255,255,255,.94) 0 12%,rgba(255,255,255,0) 32%),
    radial-gradient(circle at 95% 92%,rgba(214,163,34,.5) 0 18%,rgba(214,163,34,0) 48%),
    linear-gradient(135deg,#fffdf4 0%,#fff8d8 54%,#f0cf65 100%)!important;
  color:#273341!important;
  box-shadow:0 16px 34px rgba(147,118,31,.13)!important;
}
:root[data-visual-theme="yellowgray"] #foodsScreen .foods-hero-card:before,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-mode-card:before,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-substitution-intro:before{
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(90deg,rgba(255,255,255,.55),rgba(255,255,255,0) 62%);
  content:"";
  pointer-events:none;
}
:root[data-visual-theme="yellowgray"] #foodsScreen .foods-hero-card:after,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-mode-card:after,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-substitution-intro:after{
  right:-6px;
  bottom:-3px;
  opacity:.22;
}
:root[data-visual-theme="yellowgray"] #financeScreen .finance-mode-card:after,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-substitution-intro:after{
  background:rgba(139,107,24,.28);
  opacity:.34;
}
:root[data-visual-theme="yellowgray"] #foodsScreen .foods-hero-card .eyebrow,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-mode-card .eyebrow,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-substitution-intro .eyebrow{
  color:#6b5b83!important;
  letter-spacing:.08em;
}
:root[data-visual-theme="yellowgray"] #foodsScreen .foods-hero-card h3,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-mode-card h3,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-substitution-intro h3,
:root[data-visual-theme="yellowgray"] #foodsScreen .foods-hero-card p:not(.eyebrow),
:root[data-visual-theme="yellowgray"] #financeScreen .finance-mode-card p:not(.eyebrow),
:root[data-visual-theme="yellowgray"] #financeScreen .finance-substitution-intro p:not(.eyebrow){
  color:#273341!important;
}
:root[data-visual-theme="yellowgray"] #foodsScreen .foods-hero-card p:not(.eyebrow),
:root[data-visual-theme="yellowgray"] #financeScreen .finance-mode-card p:not(.eyebrow),
:root[data-visual-theme="yellowgray"] #financeScreen .finance-substitution-intro p:not(.eyebrow){
  max-width:290px;
  opacity:.76;
}
:root[data-visual-theme="yellowgray"] #foodsScreen .foods-hero-card{
  min-height:150px!important;
  border-color:rgba(214,220,225,.95)!important;
  background:
    radial-gradient(circle at 86% 20%,rgba(255,238,154,.42) 0 18%,rgba(255,238,154,0) 42%),
    linear-gradient(145deg,rgba(255,255,255,.94),rgba(247,248,246,.92) 56%,rgba(255,247,205,.54) 100%)!important;
  color:#242b34!important;
  box-shadow:0 14px 34px rgba(44,51,60,.08)!important;
}
:root[data-visual-theme="yellowgray"] #foodsScreen .foods-hero-card:before{
  background:linear-gradient(90deg,rgba(255,255,255,.42),rgba(255,255,255,0) 64%)!important;
}
:root[data-visual-theme="yellowgray"] #foodsScreen .foods-hero-card:after{
  right:8px!important;
  bottom:5px!important;
  opacity:.10!important;
  filter:grayscale(.95) sepia(.14) saturate(.78);
}
:root[data-visual-theme="yellowgray"] #foodsScreen .foods-hero-card .eyebrow{
  color:#687384!important;
}
:root[data-visual-theme="yellowgray"] #foodsScreen .foods-hero-card h3{
  color:#172132!important;
}
:root[data-visual-theme="yellowgray"] #foodsScreen .foods-hero-card p:not(.eyebrow){
  color:#56606b!important;
  opacity:1!important;
}
:root[data-visual-theme="yellowgray"] #financeScreen .finance-mode-card .primary{
  background:#35445b!important;
  color:#fff!important;
  box-shadow:0 14px 26px rgba(53,68,91,.18)!important;
}
:root[data-visual-theme="yellowgray"] #financeScreen .finance-summary,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-profiles,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-cycle-values>div,
:root[data-visual-theme="yellowgray"] #financeScreen .select-card,
:root[data-visual-theme="yellowgray"] #financeScreen .chart-card{
  border-color:rgba(92,144,111,.24)!important;
  background:rgba(255,255,252,.94)!important;
  color:#273341!important;
}
:root[data-visual-theme="yellowgray"] #financeScreen .finance-summary .eyebrow,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-profiles .eyebrow,
:root[data-visual-theme="yellowgray"] #financeScreen .select-card span,
:root[data-visual-theme="yellowgray"] #financeScreen .chart-card .eyebrow{
  color:#5c6f48!important;
  opacity:1!important;
}
:root[data-visual-theme="yellowgray"] #financeScreen .finance-summary .muted,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-profiles .muted,
:root[data-visual-theme="yellowgray"] #financeScreen .legend span{
  color:#4f5f49!important;
  opacity:1!important;
}
:root[data-visual-theme="yellowgray"] #financeScreen .finance-profile-tag{
  border-color:rgba(92,144,111,.34)!important;
  background:rgba(239,248,224,.86)!important;
  color:#34472f!important;
}
:root[data-visual-theme="yellowgray"] #financeScreen .finance-profile-tag.active{
  border-color:#6fa04f!important;
  background:#edf8df!important;
  color:#2f5629!important;
}
:root[data-visual-theme="yellowgray"] #financeScreen .finance-cycle-values span,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-cycle-values b,
:root[data-visual-theme="yellowgray"] #financeScreen .finance-cycle-values small,
:root[data-visual-theme="yellowgray"] #financeScreen .donut-center b{
  color:#273341!important;
}
:root[data-visual-theme="yellowgray"] #financeScreen .donut-center span{
  color:#5a675a!important;
}
:root[data-visual-theme="yellowgray"] .home-nutrient-focus .today-heading h3{
  color:#273341!important;
}
:root[data-visual-theme="yellowgray"] .home-nutrient-focus .today-heading h3:after{
  background:linear-gradient(90deg,#d6a322,#8b949f);
}
:root[data-visual-theme="yellowgray"] .home-macro-carousel .day-macro:before{
  border-color:#d6dce1!important;
  background:
    radial-gradient(circle at center,#ffffff 0 50%,transparent 52%),
    conic-gradient(var(--macro-ring-active,var(--macro-ring,#d6a322)) var(--macro-pct,0%),#e6eaed 0 100%)!important;
  box-shadow:inset 0 0 0 5px rgba(238,240,241,.88),0 8px 18px rgba(44,51,60,.08)!important;
}
:root[data-visual-theme="yellowgray"] .meal-icon,
:root[data-visual-theme="yellowgray"] .action-icon,
:root[data-visual-theme="yellowgray"] .app-menu-icon,
:root[data-visual-theme="yellowgray"] .plan-mode-icon{
  border-color:rgba(214,163,34,.24)!important;
  background:#fff4c8!important;
  color:#7c5a05!important;
}
:root[data-visual-theme="yellowgray"] .ai-fab{
  border-color:#ffe26a!important;
  background:linear-gradient(135deg,#ffe26a,#d6a322)!important;
  color:#273341!important;
}
:root[data-visual-theme="yellowgray"] .app-menu-card[data-app-appearance]{
  border-color:rgba(214,163,34,.3)!important;
  background:var(--menu-appearance-bg)!important;
}
:root[data-visual-theme="yellowgray"] .modal,
:root[data-visual-theme="yellowgray"] .profile-backdrop{
  background:rgba(44,51,60,.22)!important;
  backdrop-filter:blur(8px) saturate(1.04)!important;
}
:root[data-visual-theme="yellowgray"] .modal.open .sheet{
  border-color:rgba(214,163,34,.22)!important;
  background:rgba(255,255,255,.88)!important;
  box-shadow:0 -22px 52px rgba(44,51,60,.16)!important;
  backdrop-filter:blur(18px) saturate(1.03)!important;
}
:root[data-visual-theme="yellowgray"] .diary-glass-panel{
  border-color:rgba(214,220,225,.84);
  background:
    radial-gradient(circle at 18% 0%,rgba(255,244,200,.36),rgba(255,244,200,0) 42%),
    linear-gradient(180deg,rgba(255,255,255,.52),rgba(230,234,237,.34));
}
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel.today-card,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .home-nutrient-focus,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .home-macro-carousel,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .day-nutrition-grid[data-home-carousel],
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .today-meal-list[data-home-carousel],
:root[data-visual-theme="yellowgray"] .diary-period-section .diary-glass-panel,
:root[data-visual-theme="yellowgray"] #planScreen .plan-analysis-period .diary-glass-panel{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel.today-card{
  padding:0!important;
  border-radius:0!important;
  overflow:visible!important;
}
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel.today-card:before,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel.today-card:after,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .today-meal-list[data-home-carousel]:before,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .today-meal-list[data-home-carousel]:after{
  display:none!important;
  content:none!important;
}
:root[data-visual-theme="yellowgray"] .diary-period-section .diary-glass-panel,
:root[data-visual-theme="yellowgray"] #planScreen .plan-analysis-period .diary-glass-panel{
  padding:0!important;
}
:root[data-visual-theme="yellowgray"] .diary-chart,
:root[data-visual-theme="yellowgray"] .diary-stat-card,
:root[data-visual-theme="yellowgray"] .diary-stat-strip button,
:root[data-visual-theme="yellowgray"] .diary-trend-toggle{
  border-color:#d6dce1!important;
  background:rgba(255,255,255,.58)!important;
}
:root[data-visual-theme="yellowgray"] .plan-primary-actions .soft,
:root[data-visual-theme="yellowgray"] .plan-primary-actions [data-add-meal]{
  border-color:rgba(214,220,225,.9);
  background:linear-gradient(180deg,#ffffff,#eef1f3);
  color:#273341;
}
:root[data-visual-theme="yellowgray"] .plan-primary-actions [data-reset-plan]{
  border-color:rgba(213,111,104,.28);
  background:linear-gradient(180deg,#fff4f2,#f3d2cf);
  color:#733b35;
}
:root[data-visual-theme="yellowgray"] .plan-primary-actions [data-recover]{
  border-color:rgba(92,144,111,.24);
  background:linear-gradient(180deg,#f3fbf3,#dcecdf);
  color:#355c42;
}
:root[data-visual-theme="yellowgray"] .plan-primary-actions [data-calculate]{
  border-color:rgba(214,163,34,.28);
  background:linear-gradient(180deg,#fff6d0,#f2d57c);
  color:#6a4b05;
}
:root[data-visual-theme="color2"] .diary-glass-panel{
  border-color:rgba(218,204,184,.72);
  background:
    radial-gradient(circle at 18% 0%,rgba(255,252,245,.72),rgba(255,252,245,0) 42%),
    linear-gradient(180deg,rgba(255,250,243,.64),rgba(255,240,218,.38));
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-glass-panel{
  border-color:rgba(139,160,255,.22);
  background:var(--diary-glass-surface);
  box-shadow:none;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-chart,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-range label,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-date-search,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-meal-log,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-empty-log{
  border-color:rgba(139,160,255,.2)!important;
  background:var(--diary-card-surface)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-stat-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-stat-strip button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-trend-toggle{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--diary-stat-surface)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-stat-strip b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-status-button{
  border-color:rgba(139,160,255,.2)!important;
  background:#0F1A2E!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-status-button.ate:not(.active){
  border-color:rgba(102,127,245,.34)!important;
  background:rgba(102,127,245,.14)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-status-button.skipped:not(.active){
  border-color:rgba(247,168,78,.35)!important;
  background:rgba(247,168,78,.14)!important;
  color:#FFE6C4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-status-button.ate.active{
  border-color:#8BA0FF!important;
  background:#8BA0FF!important;
  color:#071124!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-status-button.skipped.active{
  border-color:#F7A84E!important;
  background:#F7A84E!important;
  color:#071124!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-stat-strip small{
  color:var(--diary-muted)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-trend-toggle.active{
  border-color:#8ba0ff!important;
  background:#8ba0ff!important;
  color:#0E1729!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-head h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-section-title h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-card .macro b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-card .day-macro b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-range label span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-date-search span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-card .macro span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-card .day-macro span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-card .day-macro small i{
  color:var(--diary-muted)!important;
}
:root[data-visual-theme="abacate"] .diary-glass-panel{
  border-color:rgba(151,185,111,.36);
  background:
    radial-gradient(circle at 18% 0%,rgba(255,255,247,.76),rgba(255,255,247,0) 42%),
    linear-gradient(180deg,rgba(255,255,247,.62),rgba(238,248,216,.48));
}
:root[data-visual-theme="cheese"] .diary-glass-panel{
  border-color:rgba(234,217,166,.74);
  background:
    radial-gradient(circle at 18% 0%,rgba(255,254,250,.78),rgba(255,254,250,0) 42%),
    linear-gradient(180deg,rgba(255,253,244,.66),rgba(255,240,191,.44));
}
:root[data-visual-theme="color2"] .diary-chart,
:root[data-visual-theme="abacate"] .diary-chart,
:root[data-visual-theme="cheese"] .diary-chart{
  background:
    radial-gradient(circle at 20% 0%,rgba(255,255,255,.62),rgba(255,255,255,0) 40%),
    rgba(255,255,255,.42)!important;
}
:root[data-visual-theme="color2"] .diary-stat-card,
:root[data-visual-theme="abacate"] .diary-stat-card,
:root[data-visual-theme="cheese"] .diary-stat-card,
:root[data-visual-theme="color2"] .diary-stat-strip button,
:root[data-visual-theme="abacate"] .diary-stat-strip button,
:root[data-visual-theme="cheese"] .diary-stat-strip button,
:root[data-visual-theme="color2"] .diary-trend-toggle,
:root[data-visual-theme="abacate"] .diary-trend-toggle,
:root[data-visual-theme="cheese"] .diary-trend-toggle{
  background:rgba(255,255,255,.52)!important;
}

/* Dieta theme checklist: keep plan-primary-actions, reset/add/recover/refresh buttons,
   plan-day carousel dots, range cards and macro cards themed together when adding colors. */
:root[data-visual-theme="color2"] .plan-primary-actions .soft{
  border-color:rgba(226,146,0,.24);
  background:linear-gradient(180deg,#fff8ed,#f8ead2);
  color:#17364d;
}
:root[data-visual-theme="color2"] .plan-primary-actions [data-add-meal]{
  border-color:rgba(23,54,77,.18);
  background:linear-gradient(180deg,#fffdf8,#f6ead7);
  color:#17364d;
}
:root[data-visual-theme="color2"] .plan-primary-actions [data-reset-plan]{
  border-color:rgba(214,121,58,.3);
  background:linear-gradient(180deg,#fff0df,#ffd7b6);
  color:#824319;
}
:root[data-visual-theme="color2"] .plan-primary-actions [data-recover]{
  border-color:rgba(103,137,105,.24);
  background:linear-gradient(180deg,#f5f7e7,#e8edcf);
  color:#425f35;
}
:root[data-visual-theme="color2"] .plan-primary-actions [data-calculate]{
  border-color:rgba(226,146,0,.24);
  background:linear-gradient(180deg,#fff4dc,#f7ddb1);
  color:#7b4d08;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-primary-actions .soft{
  border-color:rgba(139,160,255,.24);
  background:#17233d;
  color:#eaf0ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-primary-actions [data-add-meal]{
  border-color:rgba(246,173,85,.32);
  background:#2a2114;
  color:#ffe1b8;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-primary-actions [data-reset-plan]{
  border-color:rgba(255,128,128,.28);
  background:#2b1720;
  color:#ffd1d1;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-primary-actions [data-recover]{
  border-color:rgba(111,196,148,.22);
  background:#132a27;
  color:#d9fff0;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-primary-actions [data-calculate]{
  border-color:rgba(168,151,255,.24);
  background:#201d3d;
  color:#eeeaff;
}
:root[data-visual-theme="abacate"] .plan-primary-actions .soft{
  border-color:rgba(107,161,70,.26);
  background:linear-gradient(180deg,#f8ffe8,#edf8d7);
  color:#29491d;
}
:root[data-visual-theme="abacate"] .plan-primary-actions [data-add-meal]{
  border-color:rgba(107,161,70,.28);
  background:linear-gradient(180deg,#f7ffe4,#e4f5c9);
  color:#29491d;
}
:root[data-visual-theme="abacate"] .plan-primary-actions [data-reset-plan]{
  border-color:rgba(170,118,45,.3);
  background:linear-gradient(180deg,#fff5d7,#f5dfaa);
  color:#6c4916;
}
:root[data-visual-theme="abacate"] .plan-primary-actions [data-recover]{
  border-color:rgba(85,137,60,.24);
  background:linear-gradient(180deg,#eefbdc,#d8efbd);
  color:#315c23;
}
:root[data-visual-theme="abacate"] .plan-primary-actions [data-calculate]{
  border-color:rgba(110,147,190,.2);
  background:linear-gradient(180deg,#eef8ff,#dbeefa);
  color:#244e70;
}
:root[data-visual-theme="cheese"] .plan-primary-actions .soft{
  border-color:rgba(255,225,132,.32);
  background:linear-gradient(180deg,#fff5c6,#f9e7a1);
  color:#2f2657;
}
:root[data-visual-theme="cheese"] .plan-primary-actions [data-add-meal]{
  border-color:rgba(255,225,132,.34);
  background:linear-gradient(180deg,#fff8d6,#fbeaa9);
  color:#2f2657;
}
:root[data-visual-theme="cheese"] .plan-primary-actions [data-reset-plan]{
  border-color:rgba(255,177,139,.32);
  background:linear-gradient(180deg,#ffe7d8,#ffc6aa);
  color:#573168;
}
:root[data-visual-theme="cheese"] .plan-primary-actions [data-recover]{
  border-color:rgba(156,211,137,.24);
  background:linear-gradient(180deg,#ecffd7,#cef0a9);
  color:#315a25;
}
:root[data-visual-theme="cheese"] .plan-primary-actions [data-calculate]{
  border-color:rgba(158,146,255,.26);
  background:linear-gradient(180deg,#ebe8ff,#d9d2ff);
  color:#302869;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-total.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-profile-tag.active{
  background:#223B70!important;
  color:#F7F9FF!important;
  border-color:#8BA0FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .search,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen select{
  background:#0E1729!important;
  color:#F7F9FF!important;
  border-color:rgba(139,160,255,.28)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .select-card{
  background:linear-gradient(135deg,#172641,#13223B)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .select-card:after{
  border-color:#8BA0FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-filter-panel{
  border-color:rgba(139,160,255,.24)!important;
  background:#101A30!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-meal-filter>div:first-child span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-source-node>b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-swap-product>b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-meal-clear,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-meal-chip{
  border-color:rgba(139,160,255,.22)!important;
  background:#101A30!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-meal-chip span{
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-meal-chip.active{
  border-color:#8BA0FF!important;
  background:#263F78!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-swap-arrow{
  border-color:rgba(111,196,148,.36)!important;
  background:#EFFFF6!important;
  color:#287A46!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-swap-arrow:before{
  color:#287A46!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-flow-macros span{
  border-color:rgba(139,160,255,.18)!important;
  background:#101A30!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-flow-macros b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-flow-macros small{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-tabs{
  border-color:rgba(139,160,255,.24)!important;
  background:#101A30!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-tabs button{
  border-color:rgba(139,160,255,.18)!important;
  background:transparent!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-tabs button.active{
  border-color:#8BA0FF!important;
  background:#8BA0FF!important;
  color:#071225!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-substitution-intro,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-empty,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-scope{
  border-color:rgba(139,160,255,.24)!important;
  background:#172641!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-substitution-intro .primary,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-substitution-intro .primary,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen [data-finance-sub-calc]{
  border-color:rgba(139,160,255,.24)!important;
  background:#243657!important;
  color:#DDE5FF!important;
  opacity:1!important;
  text-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-meal-clear.active{
  border-color:#8BA0FF!important;
  background:#8BA0FF!important;
  color:#071225!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-options section{
  border-color:rgba(139,160,255,.22)!important;
  background:#101A30!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-current-card{
  border-color:rgba(139,160,255,.24)!important;
  background:#172641!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-card:nth-child(3n+1) .finance-sub-current-card{
  background:linear-gradient(145deg,#172641,#1D315B)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-card:nth-child(3n+2) .finance-sub-current-card{
  background:linear-gradient(145deg,#132A27,#172641)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-card:nth-child(3n) .finance-sub-current-card{
  background:linear-gradient(145deg,#2A2418,#172641)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-row-title span{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-arrows button{
  border-color:rgba(139,160,255,.28)!important;
  background:#101A30!important;
  color:#DFE7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-explain{
  color:#DFE7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-simple span{
  border-color:rgba(139,160,255,.18)!important;
  background:#101A30!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-simple b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-mini{
  border-color:rgba(139,160,255,.18)!important;
  background:#101A30!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-mini p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-mini span small{
  color:#DFE7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-mini span{
  background:#172641!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-mini span b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-mini>strong{
  color:#A9F0C5!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-facts span.yes{
  border-color:rgba(111,196,148,.28)!important;
  background:#132A27!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-facts span.yes b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-facts span.yes small{
  color:#A9F0C5!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-facts span.no{
  border-color:rgba(231,109,114,.28)!important;
  background:#2A1723!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-facts span.no b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-facts span.no small{
  color:#FFB8BE!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-purchase-mode{
  border-color:rgba(245,158,11,.28)!important;
  background:#2A2418!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-fractional{
  border-color:rgba(111,196,148,.22)!important;
  background:#111D24!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-fractional.active{
  border-color:rgba(111,196,148,.32)!important;
  background:#132A27!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-purchase-mode b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-purchase-mode span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-fractional b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-fractional small{
  color:#A9F0C5!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-fractional.active b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-fractional.active small{
  color:#A9F0C5!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-substitution-intro h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-card b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-empty b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-modal h2,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-scope>b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-substitution-intro p:not(.eyebrow),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-card small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-card span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-empty span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-options section em{
  color:#A9F0C5!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-kicker{
  color:#DFE7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-nutrients span{
  border-color:rgba(139,160,255,.18)!important;
  background:#101A30!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-nutrients b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-nutrients.delta span.plus{
  border-color:rgba(111,196,148,.28)!important;
  background:#132A27!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-nutrients.delta span.minus{
  border-color:rgba(231,109,114,.26)!important;
  background:#2A1723!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-nutrients.delta span.plus b{
  color:#A9F0C5!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-nutrients.delta span.minus b{
  color:#FFB8BE!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-ledger span{
  border-color:rgba(139,160,255,.18)!important;
  background:#101A30!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-ledger b{
  color:#DFE7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-badge{
  border-color:rgba(139,160,255,.28)!important;
  background:#223B70!important;
  color:#DFE7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-sub-alert{
  border-color:rgba(245,158,11,.34)!important;
  background:#2A2418!important;
  color:#FFD891!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-scope small{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-sheet{
  border-color:rgba(139,160,255,.24)!important;
  background:#0E1729!important;
  box-shadow:0 22px 58px rgba(0,0,0,.34)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-sheet .sheet-close{
  border-color:rgba(139,160,255,.28)!important;
  background:#172641!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-sheet .sheet-close:before,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-sheet .sheet-close:after{
  background:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-modal>.sheet-title{
  border-color:rgba(139,160,255,.18)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-modal>.primary.full{
  background:#8BA0FF!important;
  color:#071225!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-day-tabs .chip{
  border-color:rgba(139,160,255,.20)!important;
  background:#172641!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-day-tabs .chip.active{
  border-color:#8BA0FF!important;
  background:#8BA0FF!important;
  color:#071225!important;
  box-shadow:0 10px 22px rgba(139,160,255,.22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-meal-tabs button.selected:not(.active){
  border-color:rgba(111,196,148,.28)!important;
  background:#132A27!important;
  color:#D9FFF0!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-meal-row{
  border-color:rgba(139,160,255,.22)!important;
  background:#172641!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-meal-row.selected{
  border-color:rgba(111,196,148,.34)!important;
  background:#132A27!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-meal-row b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-meal-row span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-meal-row strong{
  color:#A9F0C5!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-preview{
  border-color:rgba(111,196,148,.30)!important;
  background:linear-gradient(145deg,#12263C,#132A27)!important;
  box-shadow:0 14px 32px rgba(0,0,0,.16)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-preview header span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-preview header small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-day-preview small{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-preview header b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-day-preview span{
  color:#A9F0C5!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-day-preview div{
  border-color:rgba(139,160,255,.24)!important;
  background:#172641!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-day-preview b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-day-detail,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-menu-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-macro-review span{
  border-color:rgba(139,160,255,.22)!important;
  background:#172641!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-menu-card.after{
  border-color:rgba(111,196,148,.26)!important;
  background:#132A27!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-day-detail>header{
  border-color:rgba(139,160,255,.18)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-day-detail>header strong{
  color:#A9F0C5!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-day-detail>header b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-menu-card header b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-menu-card p b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-macro-review b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-menu-card header small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-macro-review small{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-menu-card p{
  border-color:rgba(139,160,255,.14)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-replace-menu-card p span{
  color:#DFE7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-consumption-row{
  border-color:rgba(139,160,255,.22)!important;
  background:#101A30!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-consumption-row>header{
  border-color:rgba(139,160,255,.22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-consumption-row>header b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-consumption-row>header span{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-week-block{
  border-color:rgba(139,160,255,.18)!important;
  background:#172641!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-week-block h4{
  color:#FFB27F!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-detail-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-consumption-row,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-week-block{
  border-color:rgba(139,160,255,.22)!important;
  background:#101A30!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-consumption-row>header,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-appearance-row{
  border-color:rgba(139,160,255,.18)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-detail-card h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-consumption-row>header b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-consumption-row>header span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-appearance-row>b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-total-line b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-detail-card p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-detail-card p span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-appearance-row small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-total-line span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-appearance-row i{
  border-color:rgba(139,160,255,.18)!important;
  background:#172641!important;
  color:#DFE7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-week-block h4{
  color:#FFB27F!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-detail-sheet .finance-total-line{
  background:#172641!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .market-list-toggle,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .market-list-item{
  border-color:rgba(139,160,255,.22)!important;
  background:#172641!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .market-list-toggle.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .market-list-item.checked{
  border-color:rgba(111,196,148,.30)!important;
  background:#132A27!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .market-list-toggle span{
  background:#101A30!important;
  box-shadow:inset 0 0 0 1px rgba(139,160,255,.26)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .market-list-toggle.active span{
  background:#8BA0FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .market-list-item b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .market-list-item small{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-appearance-row>b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-appearance-row i{
  border-color:rgba(139,160,255,.24)!important;
  background:#223B70!important;
  color:#EAF0FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .search input::placeholder{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-summary .eyebrow,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-profiles .eyebrow,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-info-block strong,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-total span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .cost-item b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-fractional b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .chart-card .eyebrow{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .muted,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-info-block span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .legend span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .cost-item span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-appearance-row small{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .donut:after{
  background:#172641!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .donut-center b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .donut-center span{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .legend span.active{
  border-color:rgba(139,160,255,.38)!important;
  background:#223B70!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-home-hero{
  border-color:rgba(139,160,255,.28)!important;
  background:linear-gradient(135deg,#172641,#253f7b)!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-home-hero h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-home-hero p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-home-hero span{
  color:#F7F9FF!important;
  text-shadow:0 1px 12px rgba(0,0,0,.22);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-home-hero .primary{
  background:#8BA0FF!important;
  color:#071225!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-food-card{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--food-card-surface)!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-food-card b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-food-card.selected{
  border-color:#8BA0FF!important;
  background:var(--food-choice-active-surface)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-info-block.consume,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-info-block.buy,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-info-block.leftover{
  background:#172641!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen input[type="checkbox"]{
  accent-color:#8BA0FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-fractional input[type="checkbox"]{
  background:#0E1729!important;
  border-color:rgba(139,160,255,.38)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-fractional b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-fractional small{
  color:#A9F0C5!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-fractional.active b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-fractional.active small{
  color:#A9F0C5!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-swap-arrow,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-swap-arrow:before{
  color:#287A46!important;
}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-sheet,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-sheet .sheet-title.with-actions,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal{
  background:#101A30!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-sheet .sheet-close{
  border-color:rgba(139,160,255,.30)!important;
  background:#172641!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-sheet .sheet-close:before,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-sheet .sheet-close:after{
  background:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-explain,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-purchase-note,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-result-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-compare-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-compare-grid p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-year-mini span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-simple span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-nutrients span{
  border-color:rgba(139,160,255,.22)!important;
  background:#172641!important;
  color:#DFE7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-explain,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-result-card p b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-result-card p span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-compare-grid b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-year-mini b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-simple b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-nutrients b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal h2{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-result-card p{
  border-top-color:rgba(139,160,255,.16)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-nutrition-dots i{
  border-color:rgba(139,160,255,.20)!important;
  background:#1A2743!important;
  color:#B9C5E4!important;
  box-shadow:none;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-nutrition-dots i.plus{
  border-color:rgba(139,160,255,.42)!important;
  background:#223B70!important;
  color:#EAF0FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-nutrition-dots i.minus{
  border-color:rgba(255,126,142,.36)!important;
  background:#3A1C2A!important;
  color:#FFD9DE!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-nutrition-dots b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-nutrition-dots small{
  color:inherit!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-year-mini small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-result-card header strong,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-compare-card header span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-compare-grid small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-compare-grid em,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-simple small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-nutrients small{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-compare-card header strong,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-compare-card footer{
  color:#A9F0C5!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-year-mini span:nth-child(3),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-simple span:first-child,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-nutrients.delta span.minus{
  background:#2A1723!important;
  border-color:rgba(231,109,114,.28)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-year-mini span:nth-child(4),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-simple span:last-child,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .finance-sub-nutrients.delta span.plus{
  background:#132A27!important;
  border-color:rgba(111,196,148,.28)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal footer .soft{
  border-color:rgba(139,160,255,.28)!important;
  background:#101A30!important;
  color:#F7F9FF!important;
}

/* Profile activity intensity: tap a day, choose the level in a modal. */
.activity-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.activity-day-card{
  display:flex;
  min-height:86px;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:5px;
  padding:14px 16px;
  border:1.5px solid color-mix(in srgb,var(--accent) 22%,var(--line));
  border-radius:20px;
  background:#fff;
  color:var(--ink);
  text-align:left;
  box-shadow:0 12px 26px rgba(38,59,100,.05);
}
.activity-day-card.is-selected{
  border-color:color-mix(in srgb,var(--activity-tone,var(--blue)) 36%,var(--line));
  background:
    radial-gradient(circle at 88% 18%,color-mix(in srgb,var(--activity-tone,var(--blue)) 18%,transparent),transparent 36%),
    linear-gradient(135deg,color-mix(in srgb,var(--activity-tone,var(--blue)) 13%,#fff),#fff 68%);
  box-shadow:0 14px 28px color-mix(in srgb,var(--activity-tone,var(--blue)) 13%,transparent);
}
.activity-day-card.activity-level-1-375{--activity-tone:var(--green)}
.activity-day-card.activity-level-1-55{--activity-tone:var(--blue)}
.activity-day-card.activity-level-1-725{--activity-tone:var(--orange)}
.activity-day-card.activity-level-1-9{--activity-tone:var(--red)}
.activity-day-card.is-selected span{
  color:color-mix(in srgb,var(--activity-tone,var(--blue)) 56%,var(--muted));
}
.activity-day-card.is-selected b{
  color:var(--ink);
}
.activity-day-card.compact{
  min-height:68px;
  padding-top:12px;
  padding-bottom:12px;
}
.snapshot-choice.meal-choice{
  display:flex;
  align-items:center;
  min-height:52px;
  padding:13px 15px;
}
.snapshot-choice.meal-choice b{
  color:var(--ink);
  font-size:.92rem;
  line-height:1.15;
}
.activity-day-card input{
  display:none;
}
.activity-day-card span{
  color:var(--muted);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.activity-day-card b{
  color:var(--ink);
  font-size:1rem;
  line-height:1.05;
}
.activity-day-card small{
  color:var(--muted);
  display:-webkit-box;
  overflow:hidden;
  font-size:.72rem;
  line-height:1.25;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.activity-choice-modal{
  padding:2px 2px 4px;
}
.activity-choice-modal h2{
  margin:4px 0 6px;
  color:var(--ink);
  font-size:1.32rem;
  line-height:1.1;
}
.activity-choice-list{
  display:grid;
  gap:10px;
  margin-top:16px;
}
.activity-choice-list button{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  padding:14px 16px;
  border:1.5px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  color:var(--ink);
  text-align:left;
}
.activity-choice-list button.active{
  border-color:var(--green);
  background:color-mix(in srgb,var(--green) 14%,var(--surface));
}
.activity-choice-list button b{
  color:var(--ink);
  font-size:.98rem;
}
.activity-choice-list button span{
  color:var(--muted);
  font-size:.78rem;
  line-height:1.35;
}
.today-activity-note{
  margin-top:4px;
  line-height:1.45;
}
.today-activity-actions{
  margin-top:16px;
}
.today-activity-recalc-modal{
  display:grid;
  gap:10px;
}
.today-activity-recalc-modal h2{
  margin:0;
  color:var(--ink);
  font-size:1.25rem;
  line-height:1.12;
}
.today-activity-recalc-modal p{
  margin:0;
  line-height:1.45;
}
.today-activity-recalc-actions{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:center;
  margin-top:10px;
}
.today-activity-recalc-actions button{
  display:grid;
  place-items:center;
  min-height:46px;
  padding:0 14px;
  text-align:center;
}
.today-activity-preview-modal{
  display:grid;
  gap:12px;
  color:var(--ink);
}
.today-activity-preview-modal h2{
  margin:0;
  padding-right:48px;
  font-size:1.25rem;
  line-height:1.12;
}
.today-activity-preview-modal>p{
  margin:0;
  padding-right:28px;
  line-height:1.45;
}
.today-activity-preview-panel{
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,var(--card),var(--surface));
}
.today-activity-preview-panel header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.today-activity-preview-panel header b{
  color:var(--blue-deep);
  font-size:.92rem;
}
.today-activity-preview-panel header small{
  color:var(--muted);
  font-size:.68rem;
  font-weight:900;
}
.today-activity-preview-macros{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.today-activity-preview-macros article{
  display:grid;
  gap:7px;
  min-width:0;
  padding:10px;
  border:1px solid rgba(91,118,255,.16);
  border-radius:14px;
  background:var(--blue-soft);
}
.today-activity-preview-macros article>b{
  color:var(--blue-deep);
  font-size:.78rem;
  line-height:1.15;
}
.today-activity-preview-macros article span{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  min-width:0;
}
.today-activity-preview-macros article small{
  color:var(--muted);
  font-size:.63rem;
  font-weight:900;
  text-transform:uppercase;
}
.today-activity-preview-macros article strong{
  color:var(--ink);
  font-size:.77rem;
  font-weight:900;
  text-align:right;
}
.today-activity-preview-meals{
  display:grid;
  gap:8px;
}
.today-activity-preview-meals article,
.today-activity-preview-empty{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--card);
}
.today-activity-preview-meals article.changed{
  border-color:rgba(23,177,128,.34);
  background:linear-gradient(135deg,rgba(23,177,128,.12),var(--card));
}
.today-activity-preview-meals b{
  display:block;
  color:var(--ink);
  font-size:.86rem;
  line-height:1.15;
}
.today-activity-preview-meals small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:.66rem;
  font-weight:900;
}
.today-activity-preview-meals span{
  color:var(--blue-deep);
  font-size:.78rem;
  font-weight:900;
  white-space:nowrap;
}
.today-activity-preview-empty{
  grid-template-columns:1fr;
  color:var(--muted);
  font-size:.8rem;
  font-weight:800;
}
@media(max-width:390px){
  .today-activity-preview-macros{grid-template-columns:1fr}
  .today-activity-preview-meals article{grid-template-columns:1fr}
  .today-activity-preview-meals span{text-align:left}
}

/* First access guide: two primary diet paths stacked for clearer tutorial targeting. */
#homeScreen.home-planning-start #homePlanModes.home-plan-modes{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
  overflow:visible!important;
  margin:0 0 12px!important;
  padding:0!important;
  scroll-snap-type:none!important;
}
#homeScreen.home-planning-start #homePlanModes.home-plan-modes .plan-mode-card{
  flex:none!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  scroll-snap-align:none!important;
}
#homeScreen.home-planning-start #homePlanModes.home-plan-modes:after,
#homeScreen.home-planning-start #homePlanModes + .carousel-dots{
  display:none!important;
}
#planTutorialBubble.hidden,
#homeScreen:not(.home-pre-profile) #planTutorialBubble{display:none!important}
#homeScreen.home-pre-profile #planTutorialBubble{
  display:inline-flex!important;
}
.first-access-tutorial-grid.tutorial-line-list{
  gap:5px;
}
.first-access-tutorial-grid .tutorial-line-item{
  min-height:46px;
  padding:0 12px;
  border-radius:15px;
}

/* Compact meal cards: name, actions and foods only; details remain inside the meal modal. */
.meal-card .meal-open .grow span,
.meal-macro-strip{
  display:none!important;
}
.today-meal-list .meal-card,
.plan-meals .meal-card{
  min-height:0;
}
.meal-card .meal-head{
  align-items:center;
}
.meal-icon{
  flex:0 0 auto;
}

/* Home today section: keep carousel cards floating directly over the app background. */
#homeScreen #todayPanel.today-card,
#homeScreen #todayPanel .home-nutrient-focus,
#homeScreen #todayPanel .home-macro-carousel,
#homeScreen #todayPanel .day-nutrition-grid[data-home-carousel],
#homeScreen #todayPanel .today-meal-list[data-home-carousel]{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#homeScreen #todayPanel.today-card{
  padding-right:0!important;
  padding-left:0!important;
  overflow:visible;
}
#homeScreen #todayPanel .today-meal-list[data-home-carousel]{
  border-radius:0!important;
}

/* Yellow gray home: remove the large rail plate behind macro and meal cards. */
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel.today-card,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .home-nutrient-focus,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .home-carousel-shell,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .home-macro-carousel,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .day-nutrition-grid[data-home-carousel],
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .today-meal-list[data-home-carousel]{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel.today-card{
  margin-bottom:12px!important;
  padding:0!important;
  border-radius:0!important;
  overflow:visible!important;
}
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel.today-card:before,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel.today-card:after,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .home-nutrient-focus:before,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .home-nutrient-focus:after,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .home-carousel-shell:before,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .home-carousel-shell:after,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .home-macro-carousel:before,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .home-macro-carousel:after,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .day-nutrition-grid[data-home-carousel]:before,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .day-nutrition-grid[data-home-carousel]:after,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .today-meal-list[data-home-carousel]:before,
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .today-meal-list[data-home-carousel]:after{
  display:none!important;
  content:none!important;
}
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .day-nutrition-grid[data-home-carousel],
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .today-meal-list[data-home-carousel]{
  padding-top:0!important;
  padding-bottom:0!important;
}
:root[data-visual-theme="yellowgray"] #homeScreen #todayPanel .add-today-meal-button{
  position:relative;
  z-index:1;
}

@media (max-width:430px){
  .activity-grid{
    grid-template-columns:1fr;
  }
  .activity-day-card{
    min-height:78px;
  }
}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-day-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-choice-list button{
  background:#172641!important;
  color:#F7F9FF!important;
  border-color:rgba(139,160,255,.28)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-day-card.is-selected{
  border-color:color-mix(in srgb,var(--activity-tone,#8BA0FF) 58%,#223B70)!important;
  background:
    radial-gradient(circle at 88% 18%,color-mix(in srgb,var(--activity-tone,#8BA0FF) 24%,transparent),transparent 38%),
    linear-gradient(135deg,color-mix(in srgb,var(--activity-tone,#8BA0FF) 24%,#172641),#172641 72%)!important;
  box-shadow:0 14px 28px color-mix(in srgb,var(--activity-tone,#8BA0FF) 18%,transparent)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-day-card b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-choice-list button b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-choice-modal h2{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-day-card span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-day-card small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-choice-list button span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-choice-list button.active{
  background:#223B70!important;
  border-color:#8BA0FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-activity-card{
  background:#172641!important;
  border-color:rgba(139,160,255,.28)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-activity-card:hover{
  border-color:rgba(139,160,255,.48)!important;
  box-shadow:0 12px 26px rgba(0,0,0,.20)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-activity-card.is-overridden{
  background:linear-gradient(145deg,#132A27,#172641)!important;
  border-color:rgba(111,196,148,.38)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-activity-affordance{
  border-color:rgba(139,160,255,.38)!important;
  background:#223B70!important;
  color:#DDE5FF!important;
  box-shadow:0 8px 18px rgba(0,0,0,.22)!important;
}

/* Cleaner activity cards: solid tone by intensity, no explanatory text. */
.activity-day-card{
  min-height:74px!important;
  gap:7px!important;
  border-color:rgba(39,54,95,.08)!important;
  background:#fff!important;
  box-shadow:0 10px 22px rgba(41,61,102,.045)!important;
}
.activity-day-card.compact{
  min-height:74px!important;
  padding:13px 16px!important;
}
.activity-day-card.is-selected{
  border-color:transparent!important;
  background:var(--activity-bg,#eef3ff)!important;
  box-shadow:none!important;
}
.activity-day-card.activity-level-1-375{
  --activity-bg:#DFF4EA;
  --activity-label:#08704D;
}
.activity-day-card.activity-level-1-55{
  --activity-bg:#E8EDFF;
  --activity-label:#536BED;
}
.activity-day-card.activity-level-1-725{
  --activity-bg:#FFF1DC;
  --activity-label:#B56A12;
}
.activity-day-card.activity-level-1-9{
  --activity-bg:#FFE7EA;
  --activity-label:#B94C5A;
}
.activity-day-card.is-selected span{
  color:var(--activity-label,var(--muted))!important;
}
.activity-day-card small{
  display:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-day-card{
  border-color:rgba(139,160,255,.14)!important;
  background:#101C31!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-day-card.is-selected{
  background:color-mix(in srgb,var(--activity-label,#8BA0FF) 22%,#101C31)!important;
  border-color:rgba(139,160,255,.10)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-day-card.is-selected span{
  color:#DDE5FF!important;
}

/* Profile activity section follows the same label-outside pattern as the form. */
.profile-section-label{
  margin:4px 0 -4px;
  color:var(--muted);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1.2;
  text-transform:uppercase;
}
.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  margin:-1px!important;
  padding:0!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.activity-section{
  gap:8px!important;
  padding:10px!important;
  border-color:rgba(39,54,95,.10)!important;
  border-radius:20px!important;
  background:#fff!important;
}
.profile-meals-section{
  gap:8px!important;
  padding:10px!important;
  border-color:rgba(39,54,95,.10)!important;
  border-radius:20px!important;
  background:#fff!important;
}
.profile-meals-section #profileMeals{
  margin:0;
}
#profileMeals{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
#profileMeals .meal-option{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 24px!important;
  align-items:center!important;
  min-height:48px!important;
  gap:7px!important;
  padding:8px 9px!important;
  border:1px solid var(--line)!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:none!important;
}
#profileMeals .meal-option input{
  position:absolute!important;
  width:1px!important;
  min-width:1px!important;
  height:1px!important;
  min-height:1px!important;
  overflow:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
#profileMeals .meal-option .meal-option-icon{
  display:none!important;
}
#profileMeals .meal-option b{
  grid-column:1!important;
  min-width:0!important;
  color:var(--ink)!important;
  font-size:.72rem!important;
  font-weight:900!important;
  line-height:1.13!important;
  text-align:left!important;
}
#profileMeals .meal-option:after{
  content:"";
  display:grid;
  grid-column:2;
  place-items:center;
  justify-self:end;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#EEF3FF;
  color:#536BED;
  font-size:.8rem;
  font-weight:950;
  line-height:1;
}
#profileMeals .meal-option:has(input:checked){
  border-color:rgba(47,137,91,.25)!important;
  background:#F0FAF4!important;
}
#profileMeals .meal-option:has(input:checked):after{
  content:"\2713";
  background:#2F895B!important;
  color:#fff!important;
  box-shadow:0 6px 14px rgba(47,137,91,.20);
}
#profileMeals .meal-option:has(input:checked) b{
  color:#235F42!important;
}
.profile-drawer .activity-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
}
.profile-drawer .activity-day-card,
.profile-drawer .activity-day-card.compact{
  display:flex!important;
  min-height:46px!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:0 13px!important;
  border:1px solid rgba(39,54,95,.08)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.profile-drawer .activity-day-card.is-selected{
  background:var(--activity-bg,#eef3ff)!important;
  border-color:transparent!important;
}
.profile-drawer .activity-day-card span{
  min-width:0;
  color:var(--muted)!important;
  font-size:.66rem!important;
  letter-spacing:.075em!important;
  line-height:1!important;
}
.profile-drawer .activity-day-card b{
  flex:0 0 auto;
  color:var(--ink)!important;
  font-size:.9rem!important;
  line-height:1!important;
  text-align:right;
}
.profile-drawer .activity-day-card.is-selected span{
  color:var(--activity-label,var(--blue))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-section-label{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-section{
  border-color:rgba(139,160,255,.14)!important;
  background:#101C31!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-meals-section{
  border-color:rgba(139,160,255,.14)!important;
  background:#101C31!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileMeals .meal-option{
  border-color:rgba(139,160,255,.14)!important;
  background:#111C31!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileMeals .meal-option b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileMeals .meal-option:after{
  background:rgba(139,160,255,.10)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileMeals .meal-option:has(input:checked){
  border-color:rgba(111,196,148,.28)!important;
  background:#132A27!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileMeals .meal-option:has(input:checked):after{
  background:#6FC494!important;
  color:#071225!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .activity-day-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .activity-day-card.compact{
  border-color:rgba(139,160,255,.12)!important;
  background:#14223A!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .activity-day-card.is-selected{
  background:color-mix(in srgb,var(--activity-label,#8BA0FF) 22%,#101C31)!important;
}

/* Activity cards mirror the selected-meals cards: icon + title + intensity. */
.profile-drawer .activity-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
.profile-drawer .activity-day-card,
.profile-drawer .activity-day-card.compact{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  grid-template-rows:auto!important;
  min-height:48px!important;
  justify-content:stretch!important;
  align-content:center!important;
  align-items:center!important;
  gap:7px!important;
  padding:8px 9px!important;
  border:1px solid var(--line)!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.profile-drawer .activity-day-card.is-selected{
  border-color:color-mix(in srgb,var(--activity-label,var(--blue)) 28%,var(--line))!important;
  background:color-mix(in srgb,var(--activity-label,var(--blue)) 10%,#fff)!important;
}
.activity-day-icon{
  display:grid!important;
  place-items:center!important;
  width:22px!important;
  height:22px!important;
  border-radius:50%!important;
  background:#EEF3FF!important;
  color:#536BED!important;
  font-size:.9rem!important;
  font-weight:900!important;
  line-height:1!important;
}
.activity-day-copy{
  display:grid!important;
  min-width:0!important;
  gap:2px!important;
}
.profile-drawer .activity-day-card .activity-day-copy b{
  color:var(--ink)!important;
  font-size:.72rem!important;
  font-weight:900!important;
  letter-spacing:0!important;
  line-height:1.13!important;
  text-align:left!important;
}
.profile-drawer .activity-day-card .activity-day-copy small{
  display:block!important;
  overflow:hidden!important;
  color:var(--muted)!important;
  font-size:.66rem!important;
  font-weight:800!important;
  line-height:1.12!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.profile-drawer .activity-day-card.is-selected .activity-day-icon{
  background:color-mix(in srgb,var(--activity-label,var(--blue)) 16%,#fff)!important;
  color:var(--activity-label,var(--blue))!important;
}
.profile-drawer .activity-day-card.is-selected .activity-day-copy b{
  color:color-mix(in srgb,var(--activity-label,var(--blue)) 68%,var(--ink))!important;
}
@media(max-width:360px){
  .profile-drawer .activity-grid{
    grid-template-columns:1fr!important;
  }
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .activity-day-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .activity-day-card.compact{
  border-color:rgba(139,160,255,.14)!important;
  background:#111C31!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .activity-day-card.is-selected{
  background:color-mix(in srgb,var(--activity-label,#8BA0FF) 16%,#111C31)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .activity-day-icon{
  background:rgba(139,160,255,.10)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .activity-day-card .activity-day-copy b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .activity-day-card .activity-day-copy small{
  color:#B9C5E4!important;
}

/* Diet planning spacing: give dense controls a little more breathing room. */
#planScreen[data-plan-active="planning"] .plan-primary-actions{
  gap:9px!important;
  margin:0 0 18px!important;
}
#planScreen[data-plan-active="planning"] #planSummary{
  margin-top:0!important;
  margin-bottom:6px!important;
}
#planScreen[data-plan-active="planning"] #planSummary .plan-nutrient-carousel{
  margin-top:0!important;
}
#planScreen[data-plan-active="planning"] .plan-tabs + .plan-meals-heading{
  grid-column:1;
  margin:0;
}
#planScreen[data-plan-active="planning"] .plan-meals-heading h3{
  line-height:1.15;
}

/* Same compact treatment regardless of which modal wrapper owns the meal editor. */
.meal-edit-row.compact{
  --meal-edit-tone:#667FF5!important;
  --meal-edit-tint:var(--meal-editor-card-tint)!important;
  gap:8px!important;
  padding:10px 11px!important;
  border:1px solid rgba(39,54,95,.11)!important;
  border-radius:16px!important;
  background:var(--meal-editor-card-surface)!important;
  box-shadow:none!important;
}
.meal-edit-list>.meal-edit-row.compact{
  --meal-edit-tone:#667FF5!important;
}
.meal-edit-row.compact .meal-edit-row-head{
  gap:8px!important;
  align-items:center!important;
}
.meal-edit-row.compact .grow b{
  font-size:.9rem!important;
  line-height:1.16!important;
}
.meal-edit-row.compact .meal-edit-actions{
  gap:5px!important;
}
.meal-edit-row.compact .swap-button,
.meal-edit-row.compact .remove-button{
  width:32px!important;
  height:32px!important;
  font-size:.82rem!important;
  box-shadow:none!important;
}
.meal-edit-row.compact .swap-button{
  background:#EEF3FF!important;
  color:#536BED!important;
}
.meal-edit-row.compact .remove-button{
  background:#FFF0F2!important;
  color:#D95C68!important;
}
.meal-edit-row.compact .meal-edit-mainline{
  grid-template-columns:minmax(76px,96px) minmax(0,1fr) minmax(58px,70px)!important;
  gap:7px!important;
  align-items:end!important;
}
.meal-edit-row.compact .meal-amount-field input,
.meal-edit-row.compact .filling-add-button{
  min-height:39px!important;
  height:39px!important;
  border-color:#DCE4F3!important;
  border-radius:14px!important;
  background:var(--meal-editor-action-surface)!important;
  color:#27365F!important;
  box-shadow:none!important;
}
.meal-edit-row.compact .meal-amount-field input{
  background:var(--meal-editor-input-surface)!important;
  color:#111B35!important;
  font-size:.88rem!important;
  text-align:center!important;
}
.meal-edit-row.compact .meal-amount-field small{
  color:#7A849A!important;
  font-size:.58rem!important;
  letter-spacing:.065em!important;
}
.meal-edit-row.compact .meal-food-details{
  display:contents!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
.meal-edit-row.compact .meal-food-details summary{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:39px!important;
  height:39px!important;
  padding:0 8px!important;
  border:1px solid #DCE4F3!important;
  border-radius:14px!important;
  background:var(--meal-editor-action-surface)!important;
  color:#27365F!important;
  font-size:.66rem!important;
  line-height:1!important;
}
.meal-edit-row.compact .meal-food-details summary:after{
  width:18px!important;
  height:18px!important;
  margin-left:5px!important;
  background:var(--meal-editor-action-surface)!important;
  color:#667FF5!important;
  font-size:.66rem!important;
}
.meal-edit-row.compact .meal-food-detail-body{
  grid-column:1/-1!important;
  display:grid!important;
  gap:9px!important;
  margin-top:0!important;
  width:100%!important;
  min-width:0!important;
  padding:9px!important;
  border:1px solid #E8EDF7!important;
  border-radius:14px!important;
  background:var(--meal-editor-detail-surface)!important;
  color:#60708C!important;
  font-size:.74rem!important;
  line-height:1.25!important;
  overflow:hidden!important;
}
.meal-food-facts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  min-width:0;
}
.meal-edit-inline-panel .meal-food-facts{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
}
.meal-food-facts span{
  display:grid;
  gap:3px;
  min-width:0;
  padding:8px 9px;
  border:1px solid #E4EAF6;
  border-radius:12px;
  background:var(--meal-editor-card-surface);
}
.meal-food-facts strong,
.meal-food-macro-list small span{
  color:#74819B;
  font-size:.62rem;
  font-weight:950;
  line-height:1.05;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.meal-food-facts b{
  min-width:0;
  color:#263653;
  font-size:.73rem;
  font-weight:850;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.meal-food-macro-list{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:6px!important;
  margin-top:0!important;
}
.meal-food-macro-list small,
.meal-edit-inline-panel .meal-food-facts > span{
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
  padding:7px 6px!important;
  border:1px solid #E5EAF6!important;
  background:var(--meal-editor-action-surface)!important;
  color:#243451!important;
  text-align:center!important;
}
.meal-food-macro-list small b,
.meal-edit-inline-panel .meal-food-facts > span b{
  min-width:0;
  color:#13233D;
  font-size:.76rem;
  font-weight:950;
  line-height:1.08;
  overflow-wrap:anywhere;
}
.meal-edit-row.compact .meal-food-detail-body > span{
  display:block;
  min-width:0;
  overflow-wrap:anywhere;
}
@media (max-width:390px){
  .meal-food-facts{
    grid-template-columns:1fr;
  }
  .meal-food-macro-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-row.compact{
  border-color:rgba(139,160,255,.14)!important;
  background:var(--meal-editor-card-surface)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-row.compact .meal-amount-field input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-row.compact .filling-add-button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-row.compact .meal-food-details summary{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--meal-editor-input-surface)!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-row.compact .meal-food-detail-body{
  border-color:rgba(139,160,255,.16)!important;
  background:var(--meal-editor-detail-surface)!important;
  color:#B8C5DD!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-facts span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-macro-list small{
  border-color:rgba(139,160,255,.16)!important;
  background:var(--meal-editor-input-surface)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-facts b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-macro-list small b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-facts strong,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-macro-list small span{
  color:#AAB8D4!important;
}

/* Meal register modal: calmer rows and Osyra blue/orange status states. */
.meal-log-actions{
  gap:9px!important;
  margin:10px 0 12px!important;
}
.meal-log-toggle{
  min-height:42px!important;
  border-radius:999px!important;
  box-shadow:none!important;
}
.meal-log-toggle.ate,
.meal-log-toggle.ate:not(.active){
  border:1px solid rgba(102,127,245,.24)!important;
  background:var(--meal-log-ate-surface)!important;
  color:#27365F!important;
}
.meal-log-toggle.skipped,
.meal-log-toggle.skipped:not(.active){
  border:1px solid rgba(247,168,78,.28)!important;
  background:var(--meal-log-skipped-surface)!important;
  color:#814A11!important;
}
.meal-log-toggle.ate.active{
  border-color:#667FF5!important;
  background:#667FF5!important;
  color:#fff!important;
  box-shadow:0 10px 20px rgba(102,127,245,.18)!important;
}
.meal-log-toggle.skipped.active{
  border-color:#F7A84E!important;
  background:#F7A84E!important;
  color:#14213A!important;
  box-shadow:0 10px 20px rgba(247,168,78,.18)!important;
}
.meal-log-list{
  gap:8px!important;
}
.meal-log-list>.meal-edit-row{
  gap:8px!important;
  padding:10px 11px!important;
  border:1px solid rgba(39,54,95,.11)!important;
  border-radius:16px!important;
  background:var(--meal-log-card-surface)!important;
  box-shadow:none!important;
}
.meal-log-list>.meal-edit-row .grow{
  display:grid!important;
  gap:4px!important;
}
.meal-log-list>.meal-edit-row .grow b{
  font-size:.9rem!important;
  line-height:1.16!important;
}
.meal-log-list>.meal-edit-row .grow>span{
  margin-top:0!important;
  color:#6F7A92!important;
  font-size:.72rem!important;
  line-height:1.22!important;
}
.meal-log-list>.meal-edit-row .meal-amount-field{
  max-width:116px!important;
  margin-top:3px!important;
  gap:4px!important;
}
.meal-log-list>.meal-edit-row .meal-amount-field small{
  color:#7A849A!important;
  font-size:.58rem!important;
  letter-spacing:.065em!important;
}
.meal-log-list>.meal-edit-row .meal-amount-field input{
  min-height:39px!important;
  height:39px!important;
  border-color:#DCE4F3!important;
  border-radius:14px!important;
  background:var(--meal-editor-input-surface)!important;
  color:#111B35!important;
  font-size:.88rem!important;
  font-weight:900!important;
}
.meal-status-tag.ate,
.outside-review-actions .meal-status-tag.ate.active{
  border-color:#667FF5!important;
  background:#667FF5!important;
  color:#fff!important;
}
.meal-status-tag.skipped,
.outside-review-actions .meal-status-tag.skipped.active{
  border-color:#F7A84E!important;
  background:#F7A84E!important;
  color:#14213A!important;
}
.meal-status-ate{
  border-color:rgba(102,127,245,.26)!important;
  background:var(--meal-log-ate-surface)!important;
}
.meal-status-skipped{
  border-color:rgba(247,168,78,.30)!important;
  background:var(--meal-log-skipped-surface)!important;
}
.meal-log-status-note.ate{
  border-color:rgba(102,127,245,.26)!important;
  background:var(--meal-log-ate-surface)!important;
  color:#27365F!important;
}
.meal-log-status-note.skipped{
  border-color:rgba(247,168,78,.30)!important;
  background:var(--meal-log-skipped-surface)!important;
  color:#814A11!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-toggle.ate,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-toggle.ate:not(.active){
  border-color:rgba(139,160,255,.22)!important;
  background:var(--meal-log-ate-surface)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-toggle.skipped,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-toggle.skipped:not(.active){
  border-color:rgba(247,168,78,.24)!important;
  background:var(--meal-log-skipped-surface)!important;
  color:#FFDDB1!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-toggle.ate.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-status-tag.ate,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-actions .meal-status-tag.ate.active{
  border-color:#8BA0FF!important;
  background:#4058C9!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-toggle.skipped.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-status-tag.skipped,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-actions .meal-status-tag.skipped.active{
  border-color:#F7A84E!important;
  background:#B86D25!important;
  color:#FFF7EC!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-list>.meal-edit-row{
  border-color:rgba(139,160,255,.14)!important;
  background:var(--meal-log-card-surface)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-list>.meal-edit-row .meal-amount-field input{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--meal-editor-input-surface)!important;
  color:#F7F9FF!important;
}

/* Recheios e molhos is a secondary action, not the row headline. */
.meal-edit-row.compact .filling-add-button{
  justify-self:start!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  height:30px!important;
  min-height:30px!important;
  padding:0 10px!important;
  border:1px solid rgba(102,127,245,.16)!important;
  border-radius:999px!important;
  background:var(--meal-editor-action-surface)!important;
  color:#536BED!important;
  font-size:.66rem!important;
  font-weight:900!important;
  line-height:1!important;
}
.meal-edit-row.compact .filling-add-button b{
  min-width:16px!important;
  height:16px!important;
  margin-left:4px!important;
  background:#E8EDFF!important;
  color:#536BED!important;
  font-size:.58rem!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-row.compact .filling-add-button{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--meal-editor-action-surface)!important;
  color:#DDE5FF!important;
}
/* Dieta profile hero keeps weekday selection inside the plan body. */
#planScreen .plan-preview-hero{
  margin-bottom:12px;
}
#planScreen .plan-preview-hero .home-profile-summary{
  margin-bottom:10px;
}
#planScreen .plan-preview-hero .profile-goal-row{
  align-items:stretch;
  gap:12px;
  margin-top:4px;
  margin-bottom:16px;
  padding-top:0;
}
#planScreen .plan-preview-hero .profile-goal-row div,
#planScreen .plan-preview-hero .profile-goal-row button{
  min-height:76px;
  align-content:center;
  padding:16px 17px;
  border-radius:24px;
}
#planScreen .plan-preview-hero .profile-goal-row.plan-goal-carousel + .carousel-dots{
  justify-content:flex-end;
  margin:-10px 10px 12px 0;
}
#planScreen .plan-preview-hero .profile-goal-row.plan-goal-carousel:not([data-home-carousel]) + .carousel-dots,
#planScreen .plan-preview-hero .profile-goal-row:not([data-home-carousel]) + .carousel-dots.profile-carousel-dots{
  display:none!important;
}
#planScreen .plan-preview-hero .profile-goal-row span{
  margin-bottom:2px;
}
#planScreen .plan-preview-hero .profile-goal-row b{
  font-size:.88rem;
  line-height:1.22;
}
.plan-goal-detail-modal{
  display:grid;
  gap:12px;
}
.plan-goal-detail-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.plan-goal-detail-summary div,
.plan-goal-detail-group{
  border:1px solid color-mix(in srgb,var(--blue) 13%,var(--line));
  border-radius:20px;
  background:linear-gradient(180deg,#fff,#f8faff);
  box-shadow:0 10px 22px rgba(47,68,112,.055);
}
.plan-goal-detail-summary div{
  display:grid;
  gap:4px;
  min-height:72px;
  align-content:center;
  padding:12px;
}
.plan-goal-detail-summary span,
.plan-goal-detail-group h3{
  color:var(--muted);
  font-size:.66rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.plan-goal-detail-summary b{
  color:var(--green);
  font-size:.95rem;
  line-height:1.2;
}
.plan-goal-detail-group{
  display:grid;
  gap:10px;
  padding:12px;
}
.plan-goal-detail-group div{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.plan-goal-detail-group span{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border:1px solid color-mix(in srgb,var(--orange) 28%,var(--line));
  border-radius:999px;
  background:color-mix(in srgb,var(--orange) 10%,#fff);
  color:var(--blue-deep);
  font-size:.75rem;
  font-weight:900;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-goal-detail-summary div,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-goal-detail-group{
  border-color:rgba(139,160,255,.22);
  background:#101a30;
  box-shadow:none;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-goal-detail-group span{
  border-color:rgba(247,166,83,.32);
  background:#18243c;
  color:#ffd6a8;
}
#planScreen .plan-tabs{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin:10px 0 12px;
  padding:4px;
  border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line));
  border-radius:999px;
  background:color-mix(in srgb,var(--blue-soft) 34%,var(--card) 66%);
  box-shadow:0 12px 24px rgba(47,68,112,.045);
  overflow:hidden;
}
#planScreen .plan-tabs button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:var(--ink)!important;
  font-weight:900!important;
  opacity:1!important;
  box-shadow:none!important;
}
#planScreen .plan-tabs button.active{
  background:var(--blue)!important;
  color:#fff!important;
  box-shadow:0 10px 20px rgba(102,127,255,.22)!important;
}
:is(#planScreen #planDays,#trainingScreen #trainingWeekDays).weekly-day-blocks{
  display:grid;
  grid-column:1/-1;
  gap:8px;
  min-width:0;
  width:100%;
  margin-block:6px 14px;
}
.weekly-day-blocks > .weekly-day-block{
  min-width:0;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
}
#planScreen #planDays > .weekly-day-block:last-child{
  margin-block-end:var(--disclosure-scroll-reserve,0px);
}
.weekly-day-blocks .weekly-day-heading{
  margin:0;
  font:inherit;
}
.weekly-day-blocks .weekly-day-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  min-height:48px;
  padding:10px 14px;
  border:0;
  border-radius:15px;
  background:transparent;
  color:var(--ink);
  box-shadow:none;
  text-align:start;
  font:inherit;
  font-weight:750;
  transition:none;
}
.weekly-day-blocks .weekly-day-toggle::after{
  content:"";
  flex:none;
  width:8px;
  height:8px;
  border:solid currentColor;
  border-width:0 2px 2px 0;
  margin-inline-end:3px;
  transform:translateY(-2px) rotate(45deg);
}
.weekly-day-blocks .weekly-day-toggle[aria-expanded="true"]{
  background:var(--blue-soft);
}
.weekly-day-blocks .weekly-day-toggle[aria-expanded="true"]::after{
  transform:translateY(2px) rotate(225deg);
}
.weekly-day-blocks .weekly-day-toggle:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:-3px;
}
.weekly-day-blocks .weekly-day-body{
  min-width:0;
  padding:10px;
}
.weekly-day-blocks .weekly-day-body[hidden]{
  display:none!important;
}
#planScreen .analysis-week-selector.plan-week-selector{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:5px!important;
  width:100%!important;
  margin:0!important;
  padding:6px!important;
  border:1px solid rgba(102,127,255,.14)!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.62)!important;
  box-shadow:0 12px 24px rgba(47,68,112,.04)!important;
}
#planScreen .analysis-week-selector.plan-week-selector button{
  width:100%!important;
  min-width:0!important;
  min-height:34px!important;
  padding:0 2px!important;
  border:1px solid color-mix(in srgb,var(--blue) 14%,var(--line))!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.78)!important;
  color:var(--ink)!important;
  font-size:.64rem!important;
  font-weight:900!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  box-shadow:0 8px 18px rgba(47,68,112,.04)!important;
}
#planScreen .analysis-week-selector.plan-week-selector button.active{
  border-color:var(--blue)!important;
  background:linear-gradient(135deg,rgba(102,127,255,.16),rgba(255,255,255,.86))!important;
  color:var(--blue-deep)!important;
  box-shadow:0 10px 20px rgba(102,127,255,.12)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .analysis-week-selector.plan-week-selector{
  border-color:rgba(139,160,255,.16)!important;
  background:rgba(14,23,41,.62)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .analysis-week-selector.plan-week-selector button{
  border-color:rgba(139,160,255,.18)!important;
  background:rgba(21,35,61,.72)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .analysis-week-selector.plan-week-selector button.active{
  border-color:rgba(139,160,255,.7)!important;
  background:linear-gradient(135deg,rgba(139,160,255,.28),rgba(21,35,61,.82))!important;
  color:#fff!important;
}

/* Fora da dieta: align this picker with the refined Osyra's Menù modal language. */
.outside-diet-sheet{
  width:min(calc(100% - 24px),620px)!important;
  max-height:94dvh!important;
  margin-bottom:8px!important;
  padding:20px 16px calc(18px + var(--safe-bottom))!important;
  border:1px solid color-mix(in srgb,var(--blue) 14%,var(--line))!important;
  border-radius:28px 28px 0 0!important;
  background:var(--outside-sheet-surface)!important;
  box-shadow:0 -22px 54px rgba(41,61,102,.18)!important;
}
.outside-diet-sheet::before{
  display:none!important;
}
.outside-diet-sheet #modalBody{
  display:grid!important;
  gap:12px!important;
  padding:0!important;
  overflow-y:auto!important;
}
.outside-diet-sheet .sheet-close{
  top:13px!important;
  right:13px!important;
  z-index:96!important;
  width:36px!important;
  height:36px!important;
  border:1px solid color-mix(in srgb,var(--blue) 20%,var(--line))!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.94)!important;
  color:var(--blue-deep)!important;
  font-size:0!important;
  box-shadow:0 12px 26px rgba(41,61,102,.12)!important;
}
.outside-diet-sheet .sheet-close:before,
.outside-diet-sheet .sheet-close:after{
  content:""!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  width:13px!important;
  height:2px!important;
  border-radius:999px!important;
  background:currentColor!important;
  transform:translate(-50%,-50%) rotate(45deg)!important;
}
.outside-diet-sheet .sheet-close:after{
  transform:translate(-50%,-50%) rotate(-45deg)!important;
}
.outside-diet-sheet .outside-diet-title{
  position:relative!important;
  top:auto!important;
  z-index:1!important;
  min-height:92px!important;
  margin:-20px -16px 8px!important;
  padding:22px 58px 14px 16px!important;
  border:0!important;
  border-radius:28px 28px 0 0!important;
  background:var(--outside-header-surface)!important;
  box-shadow:0 -42px 0 var(--outside-header-surface),0 12px 24px rgba(41,61,102,.08)!important;
}
.outside-diet-sheet .outside-diet-heading{
  grid-template-columns:42px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
}
.outside-diet-sheet .outside-diet-title-icon{
  width:42px!important;
  height:42px!important;
  border:1px solid color-mix(in srgb,var(--orange) 20%,var(--line))!important;
  border-radius:16px!important;
  background:var(--outside-icon-surface)!important;
  box-shadow:0 12px 22px rgba(220,146,21,.12)!important;
}
.outside-diet-sheet .outside-diet-title h2{
  color:var(--ink)!important;
  font-size:1.22rem!important;
  line-height:1.05!important;
  letter-spacing:0!important;
}
.outside-diet-sheet .outside-diet-title p{
  max-width:38ch!important;
  margin-top:5px!important;
  color:var(--muted)!important;
  font-size:.74rem!important;
  font-weight:850!important;
  line-height:1.28!important;
}
.outside-diet-sheet .outside-total-panel{
  gap:9px!important;
  margin:0!important;
  padding:10px!important;
  border:1px solid color-mix(in srgb,var(--blue) 13%,var(--line))!important;
  border-radius:18px!important;
  background:var(--outside-panel-surface)!important;
  box-shadow:0 12px 24px rgba(41,61,102,.055)!important;
}
.outside-diet-sheet .outside-total-summary.log-summary{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:7px!important;
}
.outside-diet-sheet .outside-total-summary div{
  min-height:58px!important;
  padding:10px 5px 8px!important;
  border-radius:18px!important;
}
.outside-diet-sheet .outside-total-summary b{
  font-size:.98rem!important;
}
.outside-diet-sheet .outside-total-summary span{
  font-size:.5rem!important;
}
.outside-diet-sheet .outside-diet-search{
  margin:0!important;
  min-height:50px!important;
  border-radius:18px!important;
  background:var(--outside-card-surface)!important;
  box-shadow:0 10px 22px rgba(41,61,102,.05)!important;
}
.outside-diet-sheet .outside-create-choice,
.outside-diet-sheet .outside-food-choice>button{
  min-height:64px!important;
  padding:9px 11px!important;
  border:1px solid color-mix(in srgb,var(--blue) 13%,var(--line))!important;
  border-radius:18px!important;
  background:var(--outside-card-surface)!important;
  box-shadow:0 12px 24px rgba(41,61,102,.055)!important;
}
.outside-diet-sheet .outside-create-choice{
  position:relative!important;
  margin:0!important;
  border-color:color-mix(in srgb,var(--green) 18%,var(--line))!important;
  background:var(--outside-card-surface)!important;
}
.outside-diet-sheet .outside-create-choice.premium-locked-mode{
  border-color:color-mix(in srgb,var(--pink,#E56B92) 28%,var(--line))!important;
  background:linear-gradient(180deg,var(--outside-card-surface),color-mix(in srgb,var(--pink,#E56B92) 5%,var(--outside-card-surface)))!important;
}
.outside-diet-sheet .outside-create-choice .premium-corner-star{
  position:absolute!important;
  top:-7px!important;
  right:-5px!important;
  display:grid!important;
  place-items:center!important;
  width:24px!important;
  height:24px!important;
  border-radius:50%!important;
  border:1px solid color-mix(in srgb,var(--pink,#E56B92) 36%,#fff)!important;
  background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--pink,#E56B92) 14%,#fff))!important;
  color:var(--pink,#E56B92)!important;
  font-size:.76rem!important;
  font-weight:950!important;
  box-shadow:0 10px 20px rgba(75,45,80,.12)!important;
}
.outside-diet-sheet .outside-food-choice.selected>button{
  border-color:color-mix(in srgb,var(--orange) 52%,var(--line))!important;
  background:var(--food-choice-active-surface)!important;
}
.outside-diet-sheet .outside-selected-meal,
.outside-diet-sheet .outside-food-pool{
  display:grid!important;
  gap:8px!important;
  min-width:0!important;
  max-width:100%!important;
}
.outside-diet-sheet .outside-selected-meal{
  padding:2px 0 4px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.outside-diet-sheet .outside-selected-meal>header,
.outside-diet-sheet .outside-food-pool>header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:10px!important;
  min-width:0!important;
}
.outside-diet-sheet .outside-food-pool>header{
  margin-top:1px!important;
}
.outside-diet-sheet .outside-selected-meal h3,
.outside-diet-sheet .outside-food-pool h3{
  margin:0!important;
  color:var(--ink)!important;
  font-size:.98rem!important;
  line-height:1.08!important;
}
.outside-diet-sheet .outside-selected-meal .eyebrow,
.outside-diet-sheet .outside-food-pool .eyebrow{
  margin:0 0 2px!important;
  color:var(--muted)!important;
  font-size:.62rem!important;
  font-weight:900!important;
  line-height:1!important;
  text-transform:uppercase!important;
}
.outside-diet-sheet .outside-selected-meal>header>span{
  display:grid!important;
  place-items:center!important;
  min-width:28px!important;
  height:28px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  background:var(--green)!important;
  color:#fff!important;
  font-size:.78rem!important;
  font-weight:900!important;
}
.outside-diet-sheet .outside-selected-list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:7px!important;
  min-width:0!important;
}
.outside-diet-sheet .outside-selected-item{
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr) 40px 18px!important;
  align-items:center!important;
  gap:5px!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:46px!important;
  padding:4px 4px 4px 5px!important;
  border:1px solid color-mix(in srgb,var(--green) 30%,var(--line))!important;
  border-radius:16px!important;
  background:color-mix(in srgb,var(--green-soft) 58%,var(--outside-card-surface))!important;
  box-shadow:0 6px 14px rgba(13,148,96,.06)!important;
}
.outside-diet-sheet .outside-selected-item .food-image{
  width:24px!important;
  height:24px!important;
  border-radius:50%!important;
}
.outside-diet-sheet .outside-selected-item b{
  display:-webkit-box!important;
  overflow:hidden!important;
  color:var(--ink)!important;
  font-size:.64rem!important;
  font-weight:900!important;
  line-height:1.08!important;
  text-overflow:clip!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
}
.outside-diet-sheet .outside-selected-item .remove-button{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:color-mix(in srgb,var(--green) 62%,var(--ink))!important;
  font-size:.92rem!important;
  line-height:1!important;
  box-shadow:none!important;
}
.outside-diet-sheet .outside-selected-amount{
  display:block!important;
  width:40px!important;
  max-width:none!important;
  min-width:0!important;
}
.outside-diet-sheet .outside-selected-amount input{
  width:100%!important;
  min-width:0!important;
  height:24px!important;
  min-height:24px!important;
  padding:0 2px!important;
  border-radius:999px!important;
  font-size:.66rem!important;
  font-weight:900!important;
  text-align:center!important;
}
.outside-diet-sheet .outside-multi-results{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-start!important;
  gap:7px!important;
  padding:2px 0 10px!important;
  min-width:0!important;
  max-width:100%!important;
}
.outside-diet-sheet .outside-food-choice{
  display:grid!important;
  grid-template-columns:26px minmax(0,1fr)!important;
  align-items:center!important;
  width:auto!important;
  max-width:min(100%,166px)!important;
  min-height:38px!important;
  padding:5px 10px 5px 6px!important;
  border:1px solid color-mix(in srgb,var(--blue) 14%,var(--line))!important;
  border-radius:999px!important;
  background:var(--outside-card-surface)!important;
  color:var(--ink)!important;
  box-shadow:0 7px 16px rgba(41,61,102,.07)!important;
}
.outside-diet-sheet .outside-food-choice.selected{
  border-color:color-mix(in srgb,var(--green) 44%,var(--line))!important;
  background:color-mix(in srgb,var(--green-soft) 62%,var(--outside-card-surface))!important;
  color:color-mix(in srgb,var(--green) 84%,#063)!important;
  box-shadow:0 6px 14px rgba(13,148,96,.07)!important;
}
.outside-diet-sheet .outside-food-choice.inactive-food{
  border-style:dashed!important;
  border-color:color-mix(in srgb,var(--orange) 38%,var(--line))!important;
  background:color-mix(in srgb,var(--orange-soft) 42%,var(--outside-card-surface))!important;
}
.outside-diet-sheet .outside-food-choice.inactive-food.selected{
  border-style:solid!important;
  border-color:color-mix(in srgb,var(--green) 36%,var(--orange))!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--green-soft) 54%,var(--outside-card-surface)),color-mix(in srgb,var(--orange-soft) 28%,var(--outside-card-surface)))!important;
}
.outside-diet-sheet .outside-food-choice .food-image,
.outside-diet-sheet .outside-create-choice .food-image{
  width:26px!important;
  height:26px!important;
  border-radius:50%!important;
}
.outside-diet-sheet .outside-food-choice b,
.outside-diet-sheet .outside-create-choice b{
  color:var(--ink)!important;
  font-size:.6rem!important;
  line-height:1.1!important;
  white-space:nowrap!important;
}
.outside-diet-sheet .outside-create-choice .grow span{
  color:var(--muted)!important;
  font-size:.72rem!important;
  font-weight:850!important;
  line-height:1.25!important;
}
.outside-diet-sheet .outside-food-choice i{
  top:-4px!important;
  right:-3px!important;
  width:18px!important;
  height:18px!important;
  font-size:.64rem!important;
  box-shadow:0 4px 10px rgba(13,148,96,.14)!important;
}
.outside-diet-sheet .outside-review-footer{
  position:sticky!important;
  bottom:-1px!important;
  z-index:35!important;
  display:grid!important;
  margin:4px -2px -2px!important;
  padding:12px 2px calc(2px + var(--safe-bottom))!important;
  background:linear-gradient(to bottom,rgba(255,255,255,0),var(--outside-sheet-surface) 26%)!important;
}
.outside-diet-sheet .outside-review-submit{
  min-height:48px!important;
  border-radius:999px!important;
}
.outside-diet-sheet .outside-review-submit:disabled{
  opacity:.58!important;
  cursor:not-allowed!important;
}
.outside-diet-sheet .outside-selected-item{
  width:100%!important;
  max-width:100%!important;
  align-items:center!important;
  border-radius:16px!important;
}
.outside-diet-sheet .outside-food-choice b{
  overflow:visible!important;
  max-width:none!important;
  text-overflow:clip!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  -webkit-line-clamp:unset!important;
}
.outside-diet-sheet .outside-food-choice{
  align-items:start!important;
  border-radius:18px!important;
}
@media(max-width:430px){
  .outside-diet-sheet .outside-selected-item{
    width:100%!important;
    max-width:none!important;
  }
  .outside-diet-sheet .outside-food-choice{
    max-width:calc(50% - 4px)!important;
  }
}
.outside-diet-sheet .outside-selected-list{
  grid-template-columns:1fr!important;
}
.outside-diet-sheet .outside-selected-item{
  grid-template-columns:28px minmax(0,1fr) minmax(184px,.92fr) 24px!important;
  gap:7px!important;
  min-height:58px!important;
  padding:7px!important;
}
.outside-diet-sheet .outside-selected-copy{
  display:grid!important;
  gap:2px!important;
  min-width:0!important;
}
.outside-diet-sheet .outside-selected-copy small{
  display:block!important;
  color:var(--muted)!important;
  font-size:.62rem!important;
  font-weight:900!important;
  line-height:1.14!important;
}
.outside-diet-sheet .outside-selected-item.inactive-food{
  border-style:dashed!important;
  border-color:color-mix(in srgb,var(--orange) 38%,var(--line))!important;
  background:color-mix(in srgb,var(--orange-soft) 32%,var(--outside-card-surface))!important;
}
.outside-diet-sheet .outside-selected-amount-control{
  display:grid!important;
  grid-template-columns:28px minmax(42px,1fr) 28px minmax(70px,auto)!important;
  gap:4px!important;
  align-items:end!important;
  min-width:0!important;
}
.outside-diet-sheet .outside-selected-amount-control>button{
  display:grid!important;
  place-items:center!important;
  width:28px!important;
  height:32px!important;
  min-width:28px!important;
  min-height:32px!important;
  padding:0!important;
  border:1px solid color-mix(in srgb,var(--green) 24%,var(--line))!important;
  border-radius:11px!important;
  background:#fff!important;
  color:color-mix(in srgb,var(--green) 86%,var(--blue-deep))!important;
  font-size:.9rem!important;
  font-weight:950!important;
  box-shadow:none!important;
}
.outside-diet-sheet .outside-selected-amount-control>.meal-measure-button{
  width:auto!important;
  min-width:70px!important;
  padding:0 8px!important;
  font-size:.62rem!important;
}
.outside-diet-sheet .outside-selected-amount{
  display:grid!important;
  gap:2px!important;
  width:100%!important;
  max-width:none!important;
}
.outside-diet-sheet .outside-selected-amount span{
  overflow:hidden!important;
  color:var(--muted)!important;
  font-size:.48rem!important;
  font-weight:950!important;
  line-height:1!important;
  text-align:center!important;
  text-overflow:ellipsis!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
.outside-diet-sheet .outside-selected-amount input{
  height:32px!important;
  min-height:32px!important;
  padding:0 4px!important;
  border-radius:11px!important;
  font-size:16px!important;
}
.outside-diet-sheet .outside-selected-item .remove-button{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  align-self:center!important;
}
@media(max-width:430px){
  .outside-diet-sheet .outside-selected-item{
    grid-template-columns:26px minmax(0,1fr) 24px!important;
  }
  .outside-diet-sheet .outside-selected-amount-control{
    grid-column:2 / 4!important;
    grid-row:2!important;
  }
  .outside-diet-sheet .outside-selected-item .remove-button{
    grid-column:3!important;
    grid-row:1!important;
  }
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--outside-sheet-surface)!important;
  box-shadow:0 -22px 54px rgba(0,0,0,.38)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-diet-title{
  background:var(--outside-header-surface)!important;
  box-shadow:0 -42px 0 var(--outside-header-surface),0 12px 24px rgba(0,0,0,.22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .sheet-close{
  border-color:rgba(139,160,255,.28)!important;
  background:#101A30!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-diet-title h2,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-selected-meal h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-food-pool h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-selected-item b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-food-choice b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-create-choice b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-diet-title p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-selected-meal .eyebrow,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-food-pool .eyebrow,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-create-choice .grow span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-review-footer{
  background:linear-gradient(to bottom,rgba(14,23,41,0),var(--outside-sheet-surface) 26%)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-total-panel,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-selected-item,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-food-choice,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-create-choice,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-diet-search{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--outside-card-surface)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-food-choice.selected,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-selected-item{
  border-color:rgba(118,185,142,.42)!important;
  background:rgba(118,185,142,.14)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-food-choice.inactive-food,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-selected-item.inactive-food{
  border-color:rgba(240,176,104,.42)!important;
  background:rgba(240,176,104,.12)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-food-choice.inactive-food.selected{
  border-color:rgba(118,185,142,.42)!important;
  background:rgba(118,185,142,.16)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-selected-amount-control>button{
  border-color:rgba(118,185,142,.48)!important;
  background:linear-gradient(180deg,#172740,#101A30)!important;
  color:#BDEED0!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 8px 18px rgba(0,0,0,.18)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-selected-amount-control>button:active{
  background:rgba(118,185,142,.22)!important;
  color:#FFFFFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-selected-amount input{
  border-color:rgba(139,160,255,.34)!important;
  background:#0E1729!important;
  color:#F7F9FF!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-selected-amount span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-selected-copy small{
  color:#C4CDEC!important;
}
.outside-diet-sheet .outside-diet-filter-toggle{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 28px!important;
  gap:2px 9px!important;
  align-items:center!important;
  min-height:48px!important;
  padding:9px 11px!important;
  border:1px solid color-mix(in srgb,var(--blue) 18%,var(--line))!important;
  border-radius:16px!important;
  background:var(--outside-card-surface)!important;
  color:var(--blue-deep)!important;
  text-align:left!important;
  box-shadow:0 10px 22px rgba(41,61,102,.055)!important;
}
.outside-diet-sheet .outside-diet-filter-toggle span{
  color:var(--ink)!important;
  font-size:.78rem!important;
  font-weight:950!important;
}
.outside-diet-sheet .outside-diet-filter-toggle small{
  grid-column:1!important;
  color:var(--muted)!important;
  font-size:.62rem!important;
  font-weight:850!important;
}
.outside-diet-sheet .outside-diet-filter-toggle b{
  grid-column:2!important;
  grid-row:1 / 3!important;
  display:grid!important;
  place-items:center!important;
  width:28px!important;
  height:28px!important;
  border-radius:50%!important;
  background:var(--blue-soft)!important;
  color:var(--blue)!important;
  font-size:1rem!important;
}
.outside-diet-sheet .outside-diet-filter-panel{
  display:grid!important;
  gap:8px!important;
  padding:10px!important;
  border:1px solid color-mix(in srgb,var(--blue) 14%,var(--line))!important;
  border-radius:17px!important;
  background:linear-gradient(180deg,var(--outside-card-surface),var(--outside-muted-surface))!important;
}
.outside-diet-sheet .outside-diet-filter-panel[hidden]{
  display:none!important;
}
.outside-diet-sheet .outside-food-filter-chips{
  gap:7px!important;
  padding-bottom:2px!important;
}
.outside-diet-sheet .outside-food-filter-chips .chip{
  min-height:34px!important;
  padding:0 11px!important;
  border-radius:999px!important;
  font-size:.68rem!important;
  white-space:nowrap!important;
}
.outside-diet-sheet .outside-multi-results{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  padding-bottom:84px!important;
}
.outside-diet-sheet .outside-food-choice{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 26px!important;
  gap:9px!important;
  align-items:center!important;
  width:100%!important;
  max-width:none!important;
  min-height:62px!important;
  padding:9px!important;
  border-radius:17px!important;
}
.outside-diet-sheet .outside-food-choice .food-image{
  width:34px!important;
  height:34px!important;
}
.outside-diet-sheet .outside-food-choice-copy{
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
}
.outside-diet-sheet .outside-food-choice b{
  display:-webkit-box!important;
  overflow:hidden!important;
  font-size:.72rem!important;
  line-height:1.16!important;
  white-space:normal!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
}
.outside-diet-sheet .outside-food-choice small{
  display:block!important;
  overflow:hidden!important;
  color:var(--muted)!important;
  font-size:.58rem!important;
  font-weight:850!important;
  line-height:1.15!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.outside-diet-sheet .outside-food-choice em{
  display:grid!important;
  place-items:center!important;
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  padding:0!important;
  border-radius:50%!important;
  background:var(--blue-soft)!important;
  color:var(--blue)!important;
  font-style:normal!important;
  font-weight:950!important;
}
.outside-diet-sheet .outside-food-choice.selected em{
  background:var(--green)!important;
  color:#fff!important;
}
@media(max-width:430px){
  .outside-diet-sheet .outside-multi-results{
    grid-template-columns:1fr!important;
  }
}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-diet-filter-toggle,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-diet-filter-panel{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--outside-card-surface)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-diet-filter-toggle span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-food-choice-copy b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-diet-filter-toggle small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-food-choice-copy small{
  color:#B9C5E4!important;
}
.outside-diet-sheet .outside-pool-count{
  display:inline-grid!important;
  place-items:center!important;
  min-height:28px!important;
  padding:0 10px!important;
  border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line))!important;
  border-radius:999px!important;
  background:var(--blue-soft)!important;
  color:var(--blue-deep)!important;
  font-size:.64rem!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
.outside-diet-sheet .outside-filter-block{
  display:grid!important;
  gap:7px!important;
  min-width:0!important;
}
.outside-diet-sheet .outside-filter-block+.outside-filter-block{
  margin-top:2px!important;
  padding-top:8px!important;
  border-top:1px solid color-mix(in srgb,var(--blue) 10%,transparent)!important;
}
.outside-diet-sheet .outside-load-more{
  grid-column:1 / -1!important;
  min-height:46px!important;
  width:100%!important;
  margin:4px 0 2px!important;
  border:1px solid color-mix(in srgb,var(--blue) 22%,var(--line))!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,var(--blue-soft),color-mix(in srgb,var(--blue-soft) 58%,#fff))!important;
  color:var(--blue-deep)!important;
  font-size:.78rem!important;
  font-weight:950!important;
  box-shadow:0 12px 24px rgba(41,61,102,.08)!important;
}
.outside-diet-sheet .outside-load-more:active{
  transform:translateY(1px)!important;
}
.outside-diet-sheet .outside-modal-scroll-top{
  position:sticky!important;
  right:10px!important;
  bottom:calc(78px + var(--safe-bottom))!important;
  z-index:80!important;
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  height:42px!important;
  margin:-54px 8px 12px auto!important;
  border:1px solid color-mix(in srgb,var(--blue) 24%,var(--line))!important;
  border-radius:50%!important;
  background:var(--blue)!important;
  color:#fff!important;
  font-size:1.1rem!important;
  font-weight:950!important;
  box-shadow:0 16px 32px rgba(41,61,102,.22)!important;
  opacity:0!important;
  pointer-events:none!important;
  transform:translateY(8px)!important;
  transition:opacity .18s ease,transform .18s ease!important;
}
.outside-diet-sheet .outside-modal-scroll-top.show{
  opacity:1!important;
  pointer-events:auto!important;
  transform:translateY(0)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-pool-count{
  border-color:rgba(139,160,255,.24)!important;
  background:rgba(139,160,255,.16)!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-load-more{
  border-color:rgba(139,160,255,.24)!important;
  background:linear-gradient(135deg,rgba(139,160,255,.18),rgba(33,176,124,.12))!important;
  color:#F7F9FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-modal-scroll-top{
  border-color:rgba(255,255,255,.16)!important;
  background:#8B9DFF!important;
  color:#081226!important;
}
#planScreen .plan-analysis-card{
  display:block;
  margin:8px 0 14px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
#planScreen .plan-analysis-card.hidden{
  display:none!important;
}
#planScreen .plan-diet-options-title{
  margin:18px 0 10px;
}
#planScreen .plan-diet-options{
  margin-bottom:16px!important;
}
#planScreen .plan-diet-options.plan-analysis-section{
  display:none!important;
}
#planScreen[data-plan-active="planning"] .plan-analysis-section,
#planScreen[data-plan-active="analysis"] .plan-planning-section{
  display:none!important;
}
#planScreen[data-plan-active="analysis"] .plan-planning-section{
  display:none!important;
}
#planScreen[data-plan-active="analysis"] .plan-primary-actions.plan-planning-section,
#planScreen[data-plan-active="analysis"] #planSummary.plan-planning-section,
#planScreen[data-plan-active="analysis"] .plan-meals-heading.plan-planning-section,
#planScreen[data-plan-active="analysis"] #mealList.plan-planning-section{
  display:none!important;
}
#planScreen[data-plan-active="planning"] .plan-analysis-card{
  display:none!important;
}
#planScreen .plan-analysis-card .diary-period-section{
  margin:0;
}
#planScreen .plan-analysis-card .diary-head h3,
#planScreen .plan-analysis-card .diary-range-head h3{
  font-size:1.12rem;
}
#planScreen .plan-analysis-timeline{
  margin:0 0 12px;
}
#planScreen .plan-analysis-period{
  display:grid;
  gap:16px;
  padding-top:4px;
  font-family:inherit;
}
#planScreen .plan-analysis-period>.diary-analysis-filter-rail{
  display:flex!important;
  gap:8px!important;
  margin:4px -2px 2px!important;
  padding:2px 2px 8px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
}
#planScreen .plan-analysis-period>.diary-analysis-filter-rail::-webkit-scrollbar{
  display:none;
}
#planScreen .plan-analysis-period>.diary-analysis-filter-rail button{
  flex:0 0 auto!important;
  min-width:74px!important;
  max-width:112px!important;
  min-height:42px!important;
  padding:0 12px!important;
  border:1px solid rgba(102,127,255,.26)!important;
  border-radius:999px!important;
  background:
    radial-gradient(circle at 22% 18%,rgba(255,255,255,.95) 0 16%,rgba(255,255,255,0) 42%),
    linear-gradient(135deg,#f2f6ff,#fff)!important;
  color:#27365f!important;
  font-size:.66rem!important;
  font-weight:900!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  scroll-snap-align:center;
  box-shadow:0 10px 22px rgba(47,68,112,.055)!important;
}
#planScreen .plan-analysis-period>.diary-analysis-filter-rail button:nth-child(2){
  border-color:rgba(251,168,92,.34)!important;
  background:
    radial-gradient(circle at 22% 18%,rgba(255,255,255,.95) 0 16%,rgba(255,255,255,0) 42%),
    linear-gradient(135deg,#fff2e4,#fffaf4)!important;
  color:#75401a!important;
}
#planScreen .plan-analysis-period>.diary-analysis-filter-rail button:nth-child(3){
  border-color:rgba(90,170,112,.32)!important;
  background:
    radial-gradient(circle at 22% 18%,rgba(255,255,255,.95) 0 16%,rgba(255,255,255,0) 42%),
    linear-gradient(135deg,#edf9f1,#fbfffb)!important;
  color:#22563a!important;
}
#planScreen .plan-analysis-period>.diary-analysis-filter-rail button:nth-child(4){
  border-color:rgba(120,108,222,.32)!important;
  background:
    radial-gradient(circle at 22% 18%,rgba(255,255,255,.95) 0 16%,rgba(255,255,255,0) 42%),
    linear-gradient(135deg,#f0edff,#fbfaff)!important;
  color:#38307a!important;
}
#planScreen .plan-analysis-period>.diary-analysis-filter-rail button:nth-child(5){
  border-color:rgba(47,68,112,.18)!important;
  background:
    radial-gradient(circle at 22% 18%,rgba(255,255,255,.95) 0 16%,rgba(255,255,255,0) 42%),
    linear-gradient(135deg,#eef1f7,#fff)!important;
  color:#22304e!important;
}
#planScreen .plan-analysis-period>.diary-analysis-filter-rail button.active{
  border-color:var(--blue)!important;
  background:var(--blue)!important;
  color:#fff!important;
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(102,127,255,.22)!important;
}
#planScreen .plan-analysis-period>.diary-analysis-filter-rail button:nth-child(2).active{
  border-color:#f1a35f!important;
  background:#ffe2c1!important;
  color:#6a3411!important;
}
#planScreen .plan-analysis-period>.diary-analysis-filter-rail button:nth-child(3).active{
  border-color:#87c998!important;
  background:#dff4e5!important;
  color:#174829!important;
}
#planScreen .plan-analysis-period>.diary-analysis-filter-rail button:nth-child(4).active{
  border-color:#a79df2!important;
  background:#e6e1ff!important;
  color:#30266f!important;
}
#planScreen .plan-analysis-period>.diary-analysis-filter-rail button:nth-child(5).active{
  border-color:#aab6cc!important;
  background:#e8edf6!important;
  color:#182744!important;
}
#planScreen .plan-analysis-period .diary-glass-panel{
  gap:18px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent!important;
  box-shadow:none;
  backdrop-filter:none;
}
#planScreen .plan-analysis-period .diary-range-head{
  display:none;
}
#planScreen .plan-analysis-period .diary-range{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
#planScreen .plan-analysis-period .diary-analysis-range-control{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
}
#planScreen .plan-analysis-period .diary-start-notice{
  display:grid;
  gap:4px;
  min-height:78px;
  padding:12px 13px;
  border:1px solid rgba(47,68,112,.10);
  border-radius:22px;
  background:var(--diary-stat-surface);
  box-shadow:0 12px 24px rgba(47,68,112,.045);
}
#planScreen .plan-analysis-period .diary-start-notice span{
  color:#70809f;
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.055em;
  text-transform:uppercase;
}
#planScreen .plan-analysis-period .diary-start-notice b{
  color:var(--ink);
  font-size:.9rem;
  font-weight:950;
}
#planScreen .plan-analysis-period .diary-start-notice small{
  color:var(--muted);
  font-size:.58rem;
  font-weight:850;
  line-height:1.15;
}
#planScreen .plan-analysis-period .diary-start-notice div{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  margin-top:3px;
}
#planScreen .plan-analysis-period .diary-start-notice .save-slot-actions{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
#planScreen .plan-analysis-period .diary-start-notice button,
#planScreen .plan-analysis-period .diary-period-presets button{
  min-height:32px;
  padding:0 8px;
  border:1px solid rgba(102,127,255,.20);
  border-radius:14px;
  background:var(--diary-control-surface);
  color:#27365f;
  font-size:.62rem;
  font-weight:950;
  line-height:1;
}
#planScreen .plan-analysis-period .diary-start-notice button:first-child{
  border-color:rgba(102,127,255,.26);
  background:#eef3ff;
  color:var(--blue-deep);
}
#planScreen .plan-analysis-period .diary-start-notice button:nth-child(2){
  border-color:rgba(93,142,93,.22);
  background:#effaf1;
  color:#2e653a;
}
#planScreen .plan-analysis-period .diary-start-notice button:nth-child(3){
  border-color:rgba(214,121,58,.26);
  background:#fff1e6;
  color:#7a3e1a;
}
#planScreen .plan-analysis-period .diary-period-presets{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  min-height:78px;
  padding:10px;
  border:1px solid rgba(47,68,112,.10);
  border-radius:22px;
  background:var(--diary-control-muted-surface);
  box-shadow:0 12px 24px rgba(47,68,112,.045);
}
#planScreen .plan-analysis-period .diary-period-presets-title{
  grid-column:1 / -1;
  color:#70809f;
  font-size:.66rem;
  font-weight:950;
  letter-spacing:.055em;
  line-height:1.05;
  text-align:center;
  text-transform:uppercase;
}
#planScreen .plan-analysis-period .diary-period-presets button{
  min-height:36px;
  border-color:rgba(102,127,255,.24);
  background:linear-gradient(135deg,#f8faff,#fff);
  font-size:.64rem;
}
#planScreen .plan-analysis-period .diary-period-presets button.active{
  border-color:rgba(102,127,255,.62);
  background:linear-gradient(135deg,var(--blue),color-mix(in srgb,var(--blue) 76%,#fff));
  color:#fff;
  box-shadow:0 10px 20px rgba(102,127,255,.18);
}
#planScreen .plan-analysis-period .diary-range label{
  min-height:90px;
  padding:14px;
  border:1px solid rgba(47,68,112,.10);
  border-radius:24px;
  background:var(--diary-stat-surface);
  box-shadow:0 16px 32px rgba(47,68,112,.06);
}
#planScreen .plan-analysis-period .diary-range label span{
  color:#70809f;
  font-size:.66rem;
  font-weight:950;
  letter-spacing:.055em;
  text-transform:uppercase;
}
#planScreen .plan-analysis-period .diary-range input{
  min-height:46px;
  border-color:rgba(47,68,112,.08);
  border-radius:18px;
  background:var(--diary-control-surface);
  color:var(--ink);
  font-weight:850;
}
#planScreen .plan-analysis-period .diary-series-controls{
  margin:2px 0 10px;
}
#planScreen .plan-analysis-period .diary-series-controls button{
  min-height:44px;
  min-width:58px;
  width:max-content;
  padding:0 13px;
  font-family:inherit;
  font-size:.7rem;
  font-weight:900;
}
#planScreen .plan-analysis-period .diary-chart{
  width:calc(100% + 8px);
  margin:0 -4px;
  padding:4px 3px 10px;
  border:0;
  border-radius:28px;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
}
#planScreen .plan-analysis-period .diary-chart svg{
  min-height:300px;
}
#planScreen .plan-analysis-period .diary-chart-prelude{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  align-items:stretch;
}
#planScreen .plan-analysis-period .diary-chart-prelude.metric-weight{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
#planScreen .plan-analysis-period .diary-chart-tools{
  display:contents!important;
}
#planScreen .plan-analysis-period .diary-layer-toggle{
  grid-column:1 / -1;
  grid-row:3;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:6px;
  overflow:visible;
  padding:0;
}
#planScreen .plan-analysis-period .diary-layer-toggle.metric-weight-layers{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
#planScreen .plan-analysis-period .diary-layer-toggle.metric-food-layers{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
#planScreen .plan-analysis-period .diary-layer-toggle button{
  min-height:40px;
  padding:6px 5px;
  border-radius:16px;
  background:var(--diary-control-muted-surface);
  box-shadow:0 10px 20px rgba(47,68,112,.04);
  font-size:.66rem;
  line-height:1.08;
  overflow-wrap:anywhere;
  white-space:normal;
}
#planScreen .plan-analysis-period .diary-stat-strip{
  display:contents!important;
  overflow:visible;
  padding:0;
}
#planScreen .plan-analysis-period .diary-stat-card{
  appearance:none;
  display:grid;
  gap:5px;
  min-width:0;
  min-height:66px;
  padding:10px 9px;
  border:1px solid color-mix(in srgb,var(--blue) 18%,var(--line));
  border-radius:24px;
  background:var(--diary-stat-surface);
  box-shadow:0 16px 32px rgba(47,68,112,.055);
  text-align:center;
  align-content:center;
  justify-items:center;
  color:var(--ink);
  font-family:inherit;
  line-height:1.05;
  cursor:pointer;
}
#planScreen .plan-analysis-period .diary-stat-card:focus-visible{
  outline:3px solid color-mix(in srgb,var(--blue) 34%,transparent);
  outline-offset:2px;
}
#planScreen .plan-analysis-period .diary-stat-card.active{
  border-color:rgba(102,127,255,.55);
  background:var(--diary-stat-active-surface);
  box-shadow:0 18px 34px rgba(102,127,255,.12);
}
#planScreen .plan-analysis-period .diary-stat-card.stat-adherence{
  grid-column:4;
  grid-row:1;
  min-height:94px;
  gap:6px;
  padding:13px 10px;
  border-color:color-mix(in srgb,var(--green) 22%,var(--line));
  background:var(--diary-stat-adherence-surface);
}
#planScreen .plan-analysis-period .diary-stat-card.stat-average{
  grid-column:1 / 2;
  grid-row:2;
}
#planScreen .plan-analysis-period .diary-stat-card.stat-low{
  grid-column:2 / 4;
  grid-row:2;
}
#planScreen .plan-analysis-period .diary-stat-card.stat-peak{
  grid-column:4 / 5;
  grid-row:2;
}
#planScreen .plan-analysis-period .diary-stat-card.stat-forecast{
  grid-column:2;
  grid-row:2;
}
#planScreen .plan-analysis-period .metric-weight .diary-stat-card.stat-adherence{
  grid-column:1;
  grid-row:1;
  min-height:82px;
}
#planScreen .plan-analysis-period .metric-weight .diary-stat-card.stat-average{
  grid-column:2;
  grid-row:1;
}
#planScreen .plan-analysis-period .metric-weight .diary-stat-card.stat-correlation{
  grid-column:3;
  grid-row:1;
}
#planScreen .plan-analysis-period .metric-weight .diary-stat-card.stat-low{
  grid-column:1 / 4;
  grid-row:2;
}
#planScreen .plan-analysis-period .metric-weight .diary-stat-card.stat-peak{
  grid-column:4 / 6;
  grid-row:2;
}
#planScreen .plan-analysis-period .diary-stat-strip small{
  color:var(--diary-muted);
  font-family:inherit;
  font-size:.58rem;
  letter-spacing:.045em;
  line-height:1.05;
  text-align:center;
}
#planScreen .plan-analysis-period .diary-stat-strip b{
  color:var(--diary-strong);
  font-family:inherit;
  font-size:.86rem;
  letter-spacing:0;
  line-height:1.05;
  max-width:100%;
  overflow-wrap:anywhere;
  text-align:center;
  white-space:normal;
}
#planScreen .plan-analysis-period .diary-stat-card.stat-adherence b{
  overflow:visible;
  font-size:clamp(.82rem,2.8vw,1.18rem);
  line-height:1;
  white-space:normal;
}
#planScreen .plan-analysis-period .diary-stat-strip em{
  color:var(--diary-muted);
  font-family:inherit;
  font-size:.6rem;
  line-height:1.12;
  text-align:center;
}
#planScreen .plan-analysis-period .diary-period-reading{
  margin:0;
  padding:14px 15px;
  border-radius:20px;
  background:var(--diary-reading-surface);
  box-shadow:0 12px 24px rgba(47,68,112,.04);
}
#planScreen .plan-analysis-period .diary-period-summary{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-column:1 / 4;
  grid-row:1;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
#planScreen .plan-analysis-period .diary-period-summary>.macro,
#planScreen .plan-analysis-period .diary-period-summary>.day-macro{
  width:100%;
  max-width:none;
  min-height:94px!important;
  padding:14px 16px!important;
  border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line))!important;
  border-radius:24px!important;
  background:var(--diary-stat-surface)!important;
  box-shadow:0 16px 32px rgba(47,68,112,.055)!important;
}
#planScreen .plan-analysis-period .diary-period-summary>.day-macro:before{
  display:none!important;
}
#planScreen .plan-analysis-period .diary-period-summary>.day-macro span,
#planScreen .plan-analysis-period .diary-period-summary>.day-macro b,
#planScreen .plan-analysis-period .diary-period-summary>.day-macro small,
#planScreen .plan-analysis-period .diary-period-summary>.day-macro .progress{
  grid-column:1 / -1!important;
  text-align:center;
  font-family:inherit;
}
#planScreen .plan-analysis-period .diary-period-summary>.day-macro span{
  justify-content:center;
}
#planScreen .plan-analysis-period .diary-period-summary>.day-macro b{
  margin-top:7px!important;
}
#planScreen .plan-analysis-period .diary-period-summary>.day-macro small{
  justify-content:center;
}
#planScreen .plan-analysis-period .diary-period-summary>.day-macro.analysis-daily-macro small i,
#planScreen .plan-analysis-period .diary-period-summary>.day-macro.analysis-period-macro small i{
  font-size:.62rem!important;
}
#planScreen .plan-analysis-period .diary-chart svg text{
  font-size:12px;
  font-weight:900;
}
#planScreen .plan-analysis-period .chart-grid-lines text,
#planScreen .plan-analysis-period .chart-labels text{
  font-size:12px;
}
#planScreen .plan-analysis-period .chart-insight-average text,
#planScreen .plan-analysis-period .chart-insight-point text{
  font-size:11px;
}
#planScreen .plan-analysis-period .goal-dot-label text,
#planScreen .plan-analysis-period .chart-reference-label{
  fill:var(--ink);
  paint-order:stroke;
  stroke:rgba(255,255,255,.84);
  stroke-width:4px;
  font-size:10px;
  font-weight:950;
}
.chart-reference-path{
  fill:none;
  stroke:var(--line);
  stroke-width:2;
  stroke-linecap:round;
  stroke-dasharray:3 7;
  opacity:.82;
}
.chart-reference-get{
  stroke-dasharray:8 6;
}
.reference-legend i{
  width:18px;
  height:2px;
  border-radius:999px;
  background:var(--line);
}
.reference-legend.get i{
  background:#f3a14f;
}
#planScreen .plan-analysis-period .diary-legend{
  justify-content:center;
  gap:8px 14px;
  margin-top:12px;
  color:var(--muted);
}
#planScreen .plan-analysis-period .diary-legend i{
  display:block;
  width:24px;
  height:0;
  border-radius:0;
  background:transparent!important;
}
#planScreen .plan-analysis-period .diary-legend .series-legend i{
  border-top:3px solid var(--line);
}
#planScreen .plan-analysis-period .diary-legend .goal-legend i{
  position:relative;
  border-top:3px dashed var(--line);
}
#planScreen .plan-analysis-period .diary-legend .goal-legend i:after{
  position:absolute;
  top:-5px;
  left:50%;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--line);
  box-shadow:-10px 0 0 var(--line),10px 0 0 var(--line);
  content:"";
  transform:translateX(-50%);
}
#planScreen .plan-analysis-period .diary-legend .average-legend i{
  width:26px;
  height:14px;
  border:0;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 4px,
      var(--line) 4px 6px,
      transparent 6px 10px)!important;
}
#planScreen .plan-analysis-period .diary-legend .trend-legend i{
  border-top:3px dashed color-mix(in srgb,var(--line) 70%,#fff);
}
#planScreen .plan-analysis-period .diary-legend .food-trend-legend i{
  border-top-color:#e29a23;
}
#planScreen .plan-analysis-period .diary-legend .weight-trend-legend i{
  border-top:3px dotted #d64550;
}
#planScreen .plan-analysis-period .diary-legend .planned-legend i{
  border-top:3px dotted var(--line);
}
#planScreen .plan-analysis-period .diary-legend .reference-legend.get i{
  border-top:3px dashed #f3a14f;
}
#planScreen .plan-analysis-period .diary-legend .reference-legend.bmr i{
  border-top:3px dotted #8b9bb8;
}
#planScreen .plan-analysis-period .diary-legend .weight-legend i{
  width:12px;
  height:12px;
  border:2px solid #276ef1;
  border-radius:50%;
  background:#276ef1!important;
}
#planScreen .plan-analysis-period .chart-goal-path{
  stroke:#11a36a!important;
  stroke-width:2.4px;
  stroke-dasharray:6 7;
  opacity:.9;
}
#planScreen .plan-analysis-period .chart-weight-goal-band{
  fill:rgba(17,163,106,.12);
  stroke:none;
}
.diary-stat-detail-sheet{
  width:min(calc(100% - 28px),430px);
}
.diary-stat-detail-modal{
  display:grid;
  gap:14px;
}
.diary-stat-detail-grid{
  display:grid;
  gap:8px;
}
.diary-stat-detail-grid article{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:3px 10px;
  align-items:center;
  min-height:48px;
  padding:10px 12px;
  border:1px solid color-mix(in srgb,var(--blue) 14%,var(--line));
  border-radius:16px;
  background:var(--diary-stat-surface);
}
.diary-stat-detail-grid article.diary-stat-reading-row{
  grid-template-columns:1fr;
  justify-items:center;
  min-height:0;
  padding:13px 14px;
  text-align:center;
}
.diary-stat-detail-grid span{
  color:var(--muted);
  font-size:.72rem;
  font-weight:850;
}
.diary-stat-detail-grid b{
  color:var(--ink);
  font-size:.86rem;
  font-weight:950;
  text-align:right;
}
.diary-stat-detail-grid .diary-stat-reading-row b{
  max-width:32ch;
  font-size:.88rem;
  line-height:1.42;
  text-align:center;
  white-space:normal;
}
.diary-stat-detail-grid small{
  grid-column:1/-1;
  color:var(--muted);
  font-size:.68rem;
  font-weight:750;
  line-height:1.25;
}
#planScreen .plan-analysis-period .goal-dot{
  fill:#11a36a!important;
  stroke:#fff!important;
  stroke-width:2px;
  cursor:pointer;
  filter:drop-shadow(0 4px 7px rgba(17,163,106,.24));
}
#planScreen .plan-analysis-period .goal-dot.selected{
  stroke:#17364d!important;
  stroke-width:2.6px;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-start-notice,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-period-presets,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-period-summary>.macro,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-period-summary>.day-macro,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-stat-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-layer-toggle button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-period-reading,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-monitoring-summary{
  border-color:rgba(139,160,255,.24)!important;
  background:var(--diary-stat-surface)!important;
  box-shadow:none!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-period-summary>.day-macro,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-stat-card.stat-adherence{
  background:var(--diary-stat-adherence-surface)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-start-notice span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-start-notice small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-period-presets-title,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-stat-strip small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-stat-strip em,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-period-reading span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-monitoring-toggle small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-monitoring-grid small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-monitoring-summary footer,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-legend{
  color:var(--diary-muted)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-start-notice b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-stat-strip b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-stat-card.stat-adherence b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-period-reading b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-reading-lines span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-period-summary>.day-macro b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-monitoring-toggle h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-monitoring-grid b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-period-summary>.day-macro b i{
  color:var(--diary-strong)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-monitoring-toggle i{
  background:rgba(139,160,255,.2)!important;
  color:var(--diary-strong)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-reading-lines strong{
  color:var(--diary-muted)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-reading-lines span small{
  color:var(--diary-muted)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-reading-lines p.is-pending{
  background:rgba(137,94,31,.26)!important;
  border-color:rgba(255,184,107,.22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-reading-lines p.is-pending span{
  color:#FFD7A1!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-reading-lines p:nth-child(-n+5){
  background:rgba(65,91,157,.18)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-reading-lines p:nth-child(n+6):nth-child(-n+9){
  background:rgba(137,94,31,.2)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-reading-lines p:nth-child(n+10){
  background:rgba(31,103,76,.2)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-reading-lines p.is-pending{
  background:rgba(137,94,31,.26)!important;
  border-color:rgba(255,184,107,.22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-period-main-reading{
  background:rgba(65,91,157,.24)!important;
  color:var(--diary-strong)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-start-notice button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-period-presets button{
  border-color:rgba(139,160,255,.24)!important;
  background:rgba(17,29,51,.86)!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-start-notice button{
  background:#F7F9FF!important;
  color:#0E1729!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-start-notice button:first-child{
  color:#3E557A!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-start-notice button:nth-child(2){
  color:#245C35!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-start-notice button:nth-child(3){
  color:#7A3E1A!important;
}

.storage-confirm-sheet{
  width:min(calc(100% - 28px),430px);
}
.storage-confirm-card{
  display:grid;
  gap:10px;
}
.storage-confirm-card h2{
  color:var(--ink);
  font-size:1.12rem;
  line-height:1.15;
}
.storage-confirm-card p.muted{
  margin:0;
  font-size:.82rem;
  line-height:1.45;
}
.storage-confirm-actions{
  display:grid;
  grid-template-columns:.8fr 1fr;
  gap:8px;
  margin-top:6px;
}
.storage-confirm-actions button{
  min-height:44px;
}
.storage-confirm-card.tone-danger .storage-confirm-actions .primary{
  background:#D6793A;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-confirm-sheet{
  border-color:rgba(139,160,255,.22);
  background:#101C31;
  color:#DDE5FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-confirm-card h2{
  color:#F7F9FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-confirm-actions .soft{
  border-color:rgba(139,160,255,.24);
  background:#16233D;
  color:#DDE5FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-period-presets button.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period>.diary-analysis-filter-rail button.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-tabs button.active{
  border-color:#8BA0FF!important;
  background:#8BA0FF!important;
  color:#07101F!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period>.diary-analysis-filter-rail button{
  border-color:rgba(139,160,255,.24)!important;
  background:#111D33!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-layer-toggle button{
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-layer-toggle button.active{
  border-color:#8BA0FF!important;
  background:#223B70!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-chart{
  padding:10px 6px 12px;
  background:var(--diary-chart-surface)!important;
  border:1px solid rgba(139,160,255,.18)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .chart-grid-lines line{
  stroke:var(--diary-grid-line)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .chart-weight-mark line{
  stroke:rgba(139,160,255,.46)!important;
  opacity:.38!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .chart-weight-mark circle{
  fill:#172845!important;
  stroke:#8BA0FF!important;
  filter:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .chart-weight-mark.selected circle{
  stroke:#AFA3FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-legend .weight-legend i{
  border-color:#8BA0FF!important;
  background:#8BA0FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .chart-weight-mark rect{
  fill:#243653!important;
  stroke:rgba(255,178,127,.38)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .chart-weight-mark text{
  fill:#F7F9FF!important;
  stroke:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .chart-grid-lines text,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .chart-labels text{
  fill:var(--diary-muted)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .goal-dot-label text,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .chart-reference-label{
  fill:#F7F9FF!important;
  stroke:#13223B!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-legend .series-legend i{
  border-top-color:#5F86FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-legend .trend-legend i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-legend .planned-legend i{
  border-top-color:#9B7DFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-legend .food-trend-legend i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .chart-food-trend-path{
  border-top-color:#FFB86B!important;
  stroke:#FFB86B!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-legend .weight-trend-legend i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .chart-weight-trend-path{
  border-top-color:#FF6B7A!important;
  stroke:#FF6B7A!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-legend .goal-legend i{
  border-top-color:#20C887!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-legend .goal-legend i:after{
  background:#20C887!important;
  box-shadow:-10px 0 0 #20C887,10px 0 0 #20C887!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .chart-weight-goal-band{
  fill:rgba(32,200,135,.14)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-stat-detail-sheet{
  border-color:rgba(139,160,255,.22);
  background:#101C31;
  color:#DDE5FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-stat-detail-grid article{
  border-color:rgba(139,160,255,.24);
  background:#16233D;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-stat-detail-grid b{
  color:#F7F9FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-stat-detail-grid span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-stat-detail-grid small{
  color:#AAB8D6;
}
@media(max-width:430px){
  #planScreen .plan-analysis-period>.diary-analysis-filter-rail{
    gap:7px!important;
    margin-right:-10px!important;
    padding-right:10px!important;
  }
  #planScreen .plan-analysis-period>.diary-analysis-filter-rail button{
    min-width:68px!important;
    max-width:98px!important;
    min-height:38px!important;
    padding:0 9px!important;
    border-radius:999px!important;
    font-size:.58rem!important;
  }
  #planScreen .plan-analysis-period .diary-chart-prelude{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
  }
  #planScreen .plan-analysis-period .diary-analysis-range-control{
    grid-template-columns:1fr;
  }
  #planScreen .plan-analysis-period .diary-period-presets{
    grid-template-columns:repeat(4,minmax(0,1fr));
    min-height:0;
    padding:7px;
    gap:5px;
  }
  #planScreen .plan-analysis-period .diary-period-presets button{
    min-height:34px;
    padding:0 3px;
    font-size:.54rem;
  }
  #planScreen .plan-analysis-period .diary-start-notice{
    min-height:0;
  }
  #planScreen .plan-analysis-period .diary-chart-prelude.metric-weight{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  #planScreen .plan-analysis-period .diary-stat-card{
    min-height:74px;
    padding:10px 7px;
    border-radius:20px;
  }
  #planScreen .plan-analysis-period .diary-stat-card.stat-adherence{
    min-height:86px;
  }
  #planScreen .plan-analysis-period .diary-stat-strip small{
    font-size:.55rem;
  }
  #planScreen .plan-analysis-period .diary-stat-strip b{
    font-size:.86rem;
  }
  #planScreen .plan-analysis-period .diary-stat-strip em{
    font-size:.58rem;
  }
}

/* Mobile-first hardening for Dieta > Análise. iOS Safari is less forgiving with
   the dense desktop grid, so keep this section single-column and bounded. */
@media(max-width:600px){
  #planScreen .plan-analysis-card{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  #planScreen .plan-analysis-period{
    gap:12px;
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  #planScreen .plan-analysis-period .diary-glass-panel{
    display:grid!important;
    gap:12px!important;
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  #planScreen .plan-analysis-period .diary-analysis-range-control{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%;
    max-width:100%;
  }
  #planScreen .plan-analysis-period .diary-start-notice{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:
      "label"
      "date"
      "hint";
    align-items:center;
    justify-items:center!important;
    gap:2px!important;
    min-height:0!important;
    padding:10px 11px!important;
    border-radius:18px!important;
    text-align:center!important;
  }
  #planScreen .plan-analysis-period .diary-start-notice span{
    grid-area:label;
    display:block!important;
    min-width:0;
    font-size:.58rem!important;
    line-height:1!important;
  }
  #planScreen .plan-analysis-period .diary-start-notice b{
    grid-area:date;
    display:block!important;
    min-width:0;
    margin-top:2px;
    font-size:.88rem!important;
    line-height:1.05!important;
    white-space:nowrap;
  }
  #planScreen .plan-analysis-period .diary-start-notice small{
    grid-area:hint;
    display:block!important;
    min-width:0;
    max-width:140px;
    font-size:.56rem!important;
    line-height:1.15!important;
  }
  #planScreen .plan-analysis-period .diary-start-notice div{
    grid-area:actions;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:5px!important;
    margin:0!important;
    min-width:70px;
  }
  #planScreen .plan-analysis-period .diary-start-notice button{
    min-height:28px!important;
    padding:0 8px!important;
    border-radius:11px!important;
    font-size:.58rem!important;
  }
  #planScreen .plan-analysis-period .diary-period-presets{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:5px!important;
    min-height:0!important;
    padding:7px!important;
    border-radius:18px!important;
  }
  #planScreen .plan-analysis-period .diary-period-presets-title{
    grid-column:1/-1;
    font-size:.58rem!important;
    text-align:left!important;
  }
  #planScreen .plan-analysis-period .diary-period-presets button{
    min-height:32px!important;
    padding:0 3px!important;
    border-radius:12px!important;
    font-size:.54rem!important;
  }
  #planScreen .plan-analysis-period .diary-chart-prelude,
  #planScreen .plan-analysis-period .diary-chart-prelude.metric-weight{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  #planScreen .plan-analysis-period .diary-period-summary{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    width:100%;
    max-width:100%;
  }
  #planScreen .plan-analysis-period .diary-period-summary>.macro,
  #planScreen .plan-analysis-period .diary-period-summary>.day-macro{
    min-height:82px!important;
    padding:12px 13px!important;
    border-radius:20px!important;
  }
  #planScreen .plan-analysis-period .diary-period-summary>.day-macro span{
    justify-content:center!important;
    font-size:.62rem!important;
  }
  #planScreen .plan-analysis-period .diary-period-summary>.day-macro b{
    gap:0!important;
    margin-top:7px!important;
  }
  #planScreen .plan-analysis-period .diary-period-summary>.day-macro b i{
    padding:0 5px!important;
    font-size:.82rem!important;
  }
  #planScreen .plan-analysis-period .diary-period-summary>.day-macro b i:first-child{
    font-size:1rem!important;
  }
  #planScreen .plan-analysis-period .diary-period-summary>.day-macro small i{
    padding:0 5px!important;
    font-size:.52rem!important;
  }
  #planScreen .plan-analysis-period .diary-stat-strip{
    display:contents!important;
  }
  #planScreen .plan-analysis-period .diary-stat-card,
  #planScreen .plan-analysis-period .diary-stat-card.stat-adherence,
  #planScreen .plan-analysis-period .diary-stat-card.stat-average,
  #planScreen .plan-analysis-period .diary-stat-card.stat-correlation,
  #planScreen .plan-analysis-period .diary-stat-card.stat-low,
  #planScreen .plan-analysis-period .diary-stat-card.stat-peak,
  #planScreen .plan-analysis-period .diary-stat-card.stat-forecast{
    grid-column:auto!important;
    grid-row:auto!important;
    min-width:0!important;
    min-height:62px!important;
    padding:8px 6px!important;
    border-radius:17px!important;
  }
  #planScreen .plan-analysis-period .diary-stat-card.stat-adherence{
    grid-column:auto!important;
  }
  #planScreen .plan-analysis-period .diary-stat-strip small{
    font-size:.49rem!important;
    line-height:1!important;
  }
  #planScreen .plan-analysis-period .diary-stat-strip b,
  #planScreen .plan-analysis-period .diary-stat-card.stat-adherence b{
    overflow:hidden!important;
    font-size:.78rem!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }
  #planScreen .plan-analysis-period .diary-stat-strip em{
    overflow:hidden!important;
    font-size:.52rem!important;
    line-height:1.1!important;
    white-space:normal!important;
  }
  #planScreen .plan-analysis-period .diary-layer-toggle{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:5px!important;
    width:100%;
    max-width:100%;
  }
  #planScreen .plan-analysis-period .diary-layer-toggle.metric-weight-layers{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  #planScreen .plan-analysis-period .diary-layer-toggle button{
    min-width:0!important;
    min-height:36px!important;
    padding:5px 3px!important;
    border-radius:13px!important;
    font-size:.55rem!important;
    line-height:1.08!important;
    white-space:normal!important;
  }
  #planScreen .plan-analysis-period .diary-chart{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:6px 0 10px!important;
    overflow:hidden!important;
  }
  #planScreen .plan-analysis-period .diary-chart svg{
    display:block;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:250px!important;
  }
  #planScreen .plan-analysis-period .diary-legend{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:center!important;
    gap:6px 10px!important;
    font-size:.58rem!important;
  }
}

/* Typography normalization for Agora and Diario. */
#homeScreen,
#homeScreen button,
#homeScreen input,
#homeScreen select,
#homeScreen textarea,
#homeScreen .panel,
#homeScreen .today-card,
#homeScreen .diary-card,
#homeScreen .meal-card,
#todayPanel,
#todayPanel button,
#diaryPanel,
#diaryPanel button,
#diaryPanel input,
#diaryPanel select,
#diaryPanel textarea{
  font-family:var(--font-primary)!important;
  font-synthesis-weight:none;
}
#homeScreen :is(h1,h2,h3,p,b,strong,span,small,button,label,input,select,textarea),
#todayPanel :is(h1,h2,h3,p,b,strong,span,small,button,label,input,select,textarea),
#diaryPanel :is(h1,h2,h3,p,b,strong,span,small,button,label,input,select,textarea){
  font-family:inherit!important;
  letter-spacing:0;
}
#homeScreen :is(.action-title,.section-heading h2,.today-heading h3,.nutrient-heading h3,.empty-today-intro h3),
#diaryPanel :is(.diary-head h3,.diary-section-title h3,.diary-point-card h3){
  color:var(--ink);
  font-weight:900;
  letter-spacing:0;
}
#homeScreen :is(.action-card strong,.plan-mode-card strong,.grow b,.profile-person strong,.profile-main-stat b,.home-hero-kpis b,.summary-kcal,.macro b,.day-macro b,.diary-point-card b),
#diaryPanel :is(.grow b,.macro b,.day-macro b,.diary-point-card b,.diary-stats b,.log-summary b){
  color:var(--ink);
  font-weight:900;
  letter-spacing:0;
}
#homeScreen :is(.action-card small,.plan-mode-card small,.grow span,.profile-main-stat span,.profile-main-stat small,.home-hero-kpis span,.macro span,.day-macro small,.day-macro small i,.meal-items,.meal-goal,.tiny,.muted,.eyebrow),
#diaryPanel :is(.grow span,.macro span,.day-macro small,.day-macro small i,.diary-legend,.diary-date-search span,.diary-range label span,.diary-point-card .eyebrow,.diary-stats span,.log-summary span,.tiny,.muted,.eyebrow){
  letter-spacing:0!important;
}

.measurement-guide-close{
  display:none!important;
}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .sheet{
  border-color:rgba(139,160,255,.28)!important;
  background:#0E1729!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-flow{
  gap:12px!important;
  background:#0E1729!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-hero{
  border-color:rgba(139,160,255,.34)!important;
  background:
    radial-gradient(circle at 16% 8%,rgba(139,160,255,.22),rgba(139,160,255,0) 36%),
    linear-gradient(135deg,#263f78 0%,#101A30 78%)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-hero h2,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-hero p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-hero .premium-badge{
  color:#F7F9FF!important;
  text-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-hero p{
  color:#C8D4F2!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-ai-details{
  gap:10px!important;
  padding:12px!important;
  border-color:rgba(139,160,255,.24)!important;
  background:linear-gradient(180deg,#16233D 0%,#101A30 100%)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-ai-details>p{
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-section-label{
  color:#9FB0FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-ai-list{
  gap:8px!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-ai-list p{
  min-height:36px!important;
  padding:5px 6px!important;
  border:1px solid rgba(139,160,255,.14)!important;
  border-radius:14px!important;
  background:rgba(14,23,41,.56)!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-ai-list i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-ai-idea-icon{
  width:28px!important;
  min-width:28px!important;
  height:28px!important;
  border:1px solid rgba(139,160,255,.22)!important;
  border-radius:12px!important;
  background:#223B70!important;
  color:#F7F9FF!important;
  font-size:.58rem!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-credit-details{
  border-color:rgba(139,160,255,.22)!important;
  background:#101A30!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-credit-details summary{
  color:#AFC0FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-plans{
  gap:9px!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-ai-credit-plan{
  border-color:rgba(139,160,255,.24)!important;
  background:linear-gradient(135deg,#17233D,#101A30)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-ai-credit-plan.active{
  border-color:#8BA0FF!important;
  background:linear-gradient(135deg,#263F78,#1B2E52)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-ai-credit-plan strong{
  background:#263F78!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="premium-ai-details"] .premium-main{
  background:#8BA0FF!important;
  color:#07101F!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium"] .sheet,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-sheet{
  border-color:rgba(139,160,255,.28)!important;
  background:#0E1729!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium"] .premium-flow,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-sheet .premium-flow{
  background:transparent!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium"] :is(.premium-checks,.premium-ai-details,.premium-note-block,.premium-order,.premium-qr-card,.premium-card-form,.premium-coupon-box,.premium-result-card,.premium-checkout-error,.premium-credit-details),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-sheet :is(.premium-checks,.premium-ai-details,.premium-note-block,.premium-order,.premium-qr-card,.premium-card-form,.premium-coupon-box,.premium-result-card,.premium-checkout-error,.premium-credit-details){
  border-color:rgba(139,160,255,.24)!important;
  background:#16233D!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium"] :is(.premium-plan,.premium-methods button,.premium-back,.premium-copy,.purchase-auth-actions .social),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-sheet :is(.premium-plan,.premium-methods button,.premium-back,.premium-copy,.purchase-auth-actions .social){
  border-color:rgba(139,160,255,.24)!important;
  background:#101A30!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium"] :is(.premium-plan.active,.premium-methods button.active),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-sheet :is(.premium-plan.active,.premium-methods button.active){
  border-color:#8BA0FF!important;
  background:#223B70!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium"] :is(.premium-flow h2,.premium-flow h3,.premium-flow b,.premium-flow strong,.premium-payment-head h2,.premium-qr-card b,.premium-qr-card strong),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-sheet :is(.premium-flow h2,.premium-flow h3,.premium-flow b,.premium-flow strong,.premium-payment-head h2,.premium-qr-card b,.premium-qr-card strong){
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium"] :is(.premium-section-label,.premium-method-icon,.premium-checks i,.premium-ai-list i),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-sheet :is(.premium-section-label,.premium-method-icon,.premium-checks i,.premium-ai-list i){
  color:#AFC0FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium"] :is(.premium-plan small,.premium-methods small,.premium-footnote,.premium-order p,.premium-order small,.premium-result-card span,.premium-card-form label>span,.premium-coupon-box label>span,.premium-payment-head p,.premium-qr-card p,.premium-qr-card small,.premium-qr-card em),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-sheet :is(.premium-plan small,.premium-methods small,.premium-footnote,.premium-order p,.premium-order small,.premium-result-card span,.premium-card-form label>span,.premium-coupon-box label>span,.premium-payment-head p,.premium-qr-card p,.premium-qr-card small,.premium-qr-card em){
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium"] :is(.premium-method-icon,.premium-checks i,.premium-ai-list i),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-sheet :is(.premium-method-icon,.premium-checks i,.premium-ai-list i){
  border-color:rgba(139,160,255,.18)!important;
  background:#21345C!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium"] :is(.premium-card-form input,.premium-coupon-box input,.premium-card-form select,.premium-card-form textarea),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-sheet :is(.premium-card-form input,.premium-coupon-box input,.premium-card-form select,.premium-card-form textarea){
  border-color:rgba(139,160,255,.24)!important;
  background:#0E1729!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium"] .premium-back,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-sheet .premium-back{
  background:#17233D!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium"] .premium-main,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-sheet .premium-main{
  background:#8BA0FF!important;
  color:#07101F!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium"] .premium-result-card.success,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-sheet .premium-result-card.success{
  border-color:rgba(118,185,142,.36)!important;
  background:#143224!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium"] :is(.premium-result-card.fail,.premium-checkout-error),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-sheet :is(.premium-result-card.fail,.premium-checkout-error){
  border-color:rgba(231,109,114,.36)!important;
  background:#351D28!important;
}
.insert-meal-sheet .sheet-close{
  display:none!important;
}
.insert-meal-title{
  min-height:76px!important;
  margin:-18px -16px 14px!important;
  padding:15px 16px 13px!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  border-radius:30px 30px 0 0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.insert-meal-heading{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-width:0;
}
.insert-meal-title-icon{
  width:40px!important;
  height:40px!important;
  border:1px solid #dfe6f5;
  border-radius:15px;
  background:#f5f8ff!important;
  box-shadow:0 10px 24px rgba(41,61,102,.08);
}
.insert-meal-title h2{
  padding-right:0!important;
  font-size:1.08rem!important;
  line-height:1.08!important;
}
.insert-meal-title p:not(.eyebrow){
  margin-top:7px;
  max-width:34ch;
  color:var(--muted);
  font-size:.72rem;
  font-weight:800;
  line-height:1.3;
}
.insert-meal-done{
  justify-self:end!important;
  min-width:86px!important;
  height:38px!important;
  min-height:38px!important;
  padding:0 14px!important;
  border-radius:999px!important;
  background:var(--blue-deep)!important;
  color:#fff!important;
  box-shadow:0 12px 24px rgba(41,61,102,.16)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .insert-meal-title{
  border-color:rgba(139,160,255,.2)!important;
  background:transparent!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .insert-meal-title-icon{
  border-color:rgba(139,160,255,.24);
  background:#17233d!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .insert-meal-title p:not(.eyebrow){
  color:#c8d4f2;
}

/* Dark mode finishing: keep modal flows polished without leaking into light themes */
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .create-diet-sheet .sheet-close,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restore-definitions-sheet .sheet-close,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .insert-meal-sheet .sheet-close{
  display:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .create-diet-sheet,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restore-definitions-sheet{
  border-color:rgba(139,160,255,.22)!important;
  background:#0E1729!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .create-diet-sheet h2,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restore-definitions-sheet h2{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .create-diet-sheet .muted,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restore-definitions-sheet .eyebrow{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .create-diet-sheet .primary{
  border-color:#8BA0FF!important;
  background:#8BA0FF!important;
  color:#07101F!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .create-diet-sheet .soft{
  border-color:rgba(139,160,255,.28)!important;
  background:#101A30!important;
  color:#F7F9FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restore-definitions-sheet .snapshot-choice{
  border-color:rgba(139,160,255,.24)!important;
  background:#101A30!important;
  color:#F7F9FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restore-definitions-sheet .snapshot-choice b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .insert-meal-sheet .insert-meal-done{
  border-color:#8BA0FF!important;
  background:#8BA0FF!important;
  color:#07101F!important;
  opacity:1!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-total-panel,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-form{
  border-color:rgba(139,160,255,.22)!important;
  background:#101A30!important;
  color:#F7F9FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-total-panel h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-form h3{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-total-summary div{
  border-color:rgba(139,160,255,.22)!important;
  background:#17233D!important;
  color:#F7F9FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-total-summary b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-total-summary span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-form .eyebrow,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-form label>span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-form .sheet-title.with-actions.inline{
  border-color:rgba(139,160,255,.18)!important;
  background:#101A30!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-form label{
  border-color:rgba(139,160,255,.18)!important;
  background:transparent!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-form input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-form select{
  border-color:rgba(139,160,255,.24)!important;
  background:#0B1324!important;
  color:#F7F9FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-form input::placeholder{
  color:#8FA0C6!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-form button[type="submit"]{
  border-color:#8BA0FF!important;
  background:#8BA0FF!important;
  color:#07101F!important;
  opacity:1!important;
  box-shadow:none!important;
}
.outside-diet-sheet .outside-inline-form{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.outside-diet-sheet .outside-inline-card{
  border-color:color-mix(in srgb,var(--blue) 12%,var(--line))!important;
  background:rgba(255,255,255,.78)!important;
}
.outside-diet-sheet .outside-inline-footer{
  background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 48%)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-form{
  border-color:transparent!important;
  background:transparent!important;
  color:#F7F9FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-head h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-section-title h4{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-head small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-card label span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-section-title .eyebrow{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-card{
  border-color:rgba(139,160,255,.18)!important;
  background:rgba(21,35,61,.82)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-section{
  border-color:rgba(139,160,255,.18)!important;
  background:rgba(21,35,61,.62)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-section summary b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-section summary small{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-section summary:after{
  background:#0B1324!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-amount b{
  border-color:rgba(118,185,142,.22)!important;
  background:rgba(118,185,142,.13)!important;
  color:#9DE7B7!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-inline-footer{
  background:linear-gradient(to bottom,rgba(11,19,36,0),#0B1324 48%)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-start-notice button{
  border-color:rgba(139,160,255,.24)!important;
  background:#101A30!important;
  color:#F7F9FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-start-notice button:first-child{
  color:#DDE5FF!important;
}

.meal-macro-disclosure{
  display:grid;
  gap:9px;
  margin:0 0 12px;
}
.meal-macro-disclosure summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:46px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:linear-gradient(135deg,#fff,var(--surface-2));
  color:var(--blue-deep);
  box-shadow:0 10px 22px rgba(41,61,102,.08);
  cursor:pointer;
  list-style:none;
}
.meal-macro-disclosure summary::-webkit-details-marker{
  display:none;
}
.meal-macro-disclosure summary:after{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--blue-soft);
  color:var(--blue);
  font-size:.9rem;
  font-weight:950;
  content:"+";
}
.meal-macro-disclosure[open] summary:after{
  content:"-";
}
.meal-macro-disclosure summary span{
  color:var(--muted);
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.meal-macro-disclosure summary b{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
  margin-left:auto;
  color:var(--ink);
  font-size:.9rem;
  font-weight:950;
  line-height:1;
  text-align:right;
}
.meal-macro-disclosure summary b strong{
  font:inherit;
}
.meal-macro-disclosure .today-meal-goal{
  margin:0;
}
.meal-macro-disclosure .meal-plate-weight{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:44px;
  margin:9px 0 8px;
  padding:9px 13px;
  border:1px solid color-mix(in srgb,var(--green) 30%,var(--line));
  border-radius:14px;
  background:color-mix(in srgb,var(--green) 12%,var(--card));
  color:var(--ink);
}
.meal-macro-disclosure .meal-plate-weight span{
  font-size:.8rem;
  font-weight:700;
  line-height:1.2;
}
.meal-macro-disclosure .meal-plate-weight b{
  flex:0 0 auto;
  font-size:1rem;
  font-weight:900;
  line-height:1.2;
  font-variant-numeric:tabular-nums;
}
.meal-macro-disclosure .today-meal-goal div.has-delta{
  min-height:76px;
}
.meal-macro-disclosure .macro-delta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  max-width:100%;
  padding:4px 7px;
  border-radius:999px;
  font-size:.64rem;
  font-style:normal;
  font-weight:950;
  line-height:1;
  white-space:nowrap;
}
.meal-macro-disclosure summary .macro-delta{
  padding:4px 7px;
  transform:translateY(-1px);
}
.meal-macro-disclosure .today-meal-goal .macro-delta{
  margin-top:6px;
}
.meal-macro-disclosure .macro-delta.plus{
  background:#EAF8EF;
  color:#2F7650;
}
.meal-macro-disclosure .macro-delta.minus{
  background:#FDEDEF;
  color:var(--red);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-macro-disclosure summary{
  border-color:rgba(139,160,255,.22)!important;
  background:linear-gradient(135deg,#101A30,#17233D)!important;
  color:#F7F9FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-macro-disclosure summary span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-macro-disclosure summary b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-macro-disclosure summary:after{
  background:#223B70!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-macro-disclosure .today-meal-goal div{
  border-color:rgba(139,160,255,.22)!important;
  background:#101A30!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-macro-disclosure .today-meal-goal b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-macro-disclosure .today-meal-goal span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-macro-disclosure .macro-delta.plus{
  background:rgba(118,185,142,.16)!important;
  color:#9DE7B7!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-macro-disclosure .macro-delta.minus{
  background:rgba(231,109,114,.15)!important;
  color:#FFB7BC!important;
}

/* Shared macro summary: two compact expanders, with the old macro cards preserved inside. */
.macro-disclosure-stack{
  display:grid;
  gap:8px;
  margin:6px 0 9px;
}
.macro-disclosure-card{
  display:block;
  margin:0;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--pink,#E56B92) 18%,var(--line));
  border-radius:18px;
  background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--pink,#E56B92) 5%,#fff));
  box-shadow:0 10px 22px rgba(38,59,100,.045);
}
.macro-disclosure-card summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,auto) 30px;
  align-items:center;
  gap:8px;
  min-height:48px;
  padding:8px 11px;
  cursor:pointer;
  list-style:none;
}
.macro-disclosure-card summary::-webkit-details-marker{
  display:none;
}
.macro-disclosure-card summary:focus{
  outline:0;
}
.macro-disclosure-card summary:focus-visible{
  outline:2px solid color-mix(in srgb,var(--blue) 42%,transparent);
  outline-offset:-3px;
}
.macro-disclosure-card summary span{
  min-width:0;
  color:var(--ink);
  font-size:.88rem;
  font-weight:950;
  line-height:1.1;
}
.macro-disclosure-card summary b{
  min-width:0;
  color:var(--muted);
  font-size:.63rem;
  font-weight:950;
  line-height:1.15;
  text-align:right;
  text-transform:uppercase;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.macro-disclosure-card summary:after{
  display:grid;
  grid-column:3;
  grid-row:1;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:999px;
  background:rgba(255,255,255,.78);
  color:var(--ink);
  box-shadow:0 8px 18px rgba(75,45,80,.075);
  content:"+";
  font-size:.98rem;
  font-weight:950;
}
.macro-disclosure-card[open] summary:after{
  content:"-";
}
.macro-disclosure-body{
  display:grid;
  gap:8px;
  padding:0 8px 11px;
}
.macro-disclosure-body .day-nutrition-grid[data-home-carousel]{
  gap:10px!important;
  margin:0!important;
  padding:0 4px 4px!important;
  border:0!important;
  background:transparent!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.macro-disclosure-body .day-nutrition-grid[data-home-carousel]::-webkit-scrollbar{
  display:none;
}
.macro-disclosure-body .day-nutrition-grid[data-home-carousel]:not(.plan-nutrient-carousel){
  display:flex!important;
  flex-wrap:nowrap!important;
}
.macro-disclosure-body .day-macro{
  flex:0 0 min(300px,calc(100vw - 92px))!important;
  width:min(300px,calc(100vw - 92px))!important;
  max-width:330px;
  min-height:94px!important;
  scroll-snap-align:center;
  scroll-snap-stop:always;
  box-shadow:0 14px 28px rgba(47,68,112,.065);
}
.macro-disclosure-body .macro-static-legend{
  margin:0 4px;
}
@media(max-width:640px){
  .macro-disclosure-card summary{
    min-height:46px;
    padding:8px 10px;
  }
  .macro-disclosure-body .day-macro{
    flex-basis:calc(100vw - 86px)!important;
    width:calc(100vw - 86px)!important;
    max-width:330px;
    padding:12px 13px!important;
  }
  .macro-disclosure-body .day-macro:not(.planned-only) b i{
    font-size:.98rem!important;
  }
  .macro-disclosure-body .day-macro:not(.planned-only) small i{
    font-size:.58rem!important;
    white-space:nowrap!important;
  }
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .macro-disclosure-card{
  border-color:rgba(139,160,255,.18)!important;
  background:linear-gradient(180deg,#111D33,#0F192D)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .macro-disclosure-card summary span{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .macro-disclosure-card summary b{
  color:#AAB8D4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .macro-disclosure-card summary:after{
  background:#162641!important;
  color:#DDE5FF!important;
}

#financeScreen .legend{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch;
  gap:8px!important;
}
#financeScreen .legend span{
  min-height:34px;
  padding:7px 9px!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.42);
  line-height:1.22;
}
#financeScreen .legend span.active{
  border-color:rgba(102,127,255,.42)!important;
  background:linear-gradient(135deg,rgba(102,127,255,.14),rgba(255,255,255,.9))!important;
  color:var(--blue-deep)!important;
  box-shadow:0 8px 18px rgba(102,127,255,.12);
}
#financeScreen .legend span:focus-visible{
  outline:3px solid rgba(102,127,255,.22);
  outline-offset:2px;
}
@media(max-width:430px){
  #financeScreen .legend{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
#financeScreen .legend span{
    font-size:.66rem;
  }
}

.chef-station-top{
  grid-template-columns:minmax(128px,.78fr) minmax(150px,1fr) minmax(108px,116px) 36px!important;
  align-items:end!important;
}
.chef-station-top label{
  min-width:0;
}
.chef-station-top .chef-time-field{
  min-width:108px;
}
.chef-station-top [data-chef-minutes]{
  min-width:0;
  width:100%;
  padding:0 8px;
  font-size:.86rem;
  font-variant-numeric:tabular-nums;
  letter-spacing:0;
  text-align:center;
}
.chef-station-top [data-chef-station-remove]{
  align-self:end;
  width:36px!important;
  height:36px!important;
}
.chef-station-math{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:9px;
}
.chef-station-math label{min-width:0}
.chef-station-math input,.chef-station-math select{width:100%;min-width:0}
@media(max-width:560px){
  .chef-station-top{
    grid-template-columns:minmax(0,1fr) minmax(94px,108px) 36px!important;
  }
  .chef-station-top .chef-action-field{
    grid-column:1/-1;
  }
  .chef-station-top .chef-appliance-field{
    grid-column:1;
  }
  .chef-station-top .chef-time-field{
    grid-column:2;
    min-width:94px;
  }
  .chef-station-top [data-chef-station-remove]{
    grid-column:3;
  }
  .chef-station-math{grid-template-columns:1fr}
}

.profile-info-link,
.profile-info-link:hover,
.profile-info-link:focus,
.profile-health-grid .profile-info-link{
  color:inherit;
  text-decoration:none;
}
.profile-info-link{
  cursor:pointer;
}
.profile-health-grid>.profile-info-link{
  display:grid;
  align-content:center;
  justify-items:center;
  gap:4px;
  min-height:82px;
  padding:10px;
  border:1px solid var(--line-soft);
  border-radius:16px;
  background:var(--surface-2);
  text-align:center;
}
.profile-health-grid>.profile-info-link b{
  color:var(--ink);
  font-size:.92rem;
}
.profile-health-grid>.profile-info-link span,
.profile-health-grid>.profile-info-link small{
  color:var(--muted);
  font-size:.64rem;
  line-height:1.25;
}
.profile-info-link:focus-visible{
  outline:2px solid color-mix(in srgb,var(--blue) 72%,transparent);
  outline-offset:3px;
}

.planning-choice-modal{
  display:grid;
  gap:12px;
}
.planning-choice-modal h2{
  color:var(--ink);
  font-size:1.12rem;
}
.planning-choice-modal>.muted{
  margin-top:-4px;
  line-height:1.5;
}
.planning-choice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.planning-choice-card{
  position:relative;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  gap:3px 10px;
  min-height:112px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  text-align:left;
  box-shadow:0 14px 28px rgba(30,45,80,.07);
}
.planning-choice-card.premium-locked-mode{
  padding-right:40px;
}
.planning-choice-card:disabled,
.planning-choice-card.disabled{
  cursor:not-allowed;
  opacity:.62;
  filter:saturate(.72);
  box-shadow:none;
}
.planning-choice-card:disabled .plan-mode-icon,
.planning-choice-card.disabled .plan-mode-icon{
  background:rgba(126,137,161,.14);
  color:var(--muted);
}
.planning-choice-card .premium-corner-star{
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:50%;
  background:linear-gradient(145deg,#ffbe73,#f3983d);
  color:#fff;
  box-shadow:0 8px 18px rgba(238,155,74,.28),0 0 0 4px rgba(238,155,74,.12);
  font-size:.68rem;
  line-height:1;
  font-weight:950;
}
.planning-choice-card b{
  color:var(--ink);
  font-size:.9rem;
}
.planning-choice-card small{
  grid-column:2;
  color:var(--muted);
  font-size:.7rem;
  line-height:1.35;
}
.planning-choice-card .plan-mode-icon{
  grid-row:1 / span 2;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:15px;
  font-size:.78rem;
  font-weight:950;
}
.planning-choice-card.economy{
  border-color:rgba(238,155,74,.28);
  background:linear-gradient(180deg,#fffaf0,#fff);
}
.planning-choice-card.economy .plan-mode-icon{
  background:#fff1df;
  color:#c97320;
}
.planning-choice-card.diversity{
  border-color:rgba(102,127,255,.26);
  background:linear-gradient(180deg,#f3f6ff,#fff);
}
.planning-choice-card.diversity .plan-mode-icon{
  background:#eef3ff;
  color:var(--blue);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .planning-choice-card{
  border-color:rgba(139,160,255,.22);
  background:linear-gradient(180deg,#17243f,#101a31);
  box-shadow:none;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .planning-choice-card .premium-corner-star{
  border-color:rgba(255,255,255,.22);
  box-shadow:0 10px 22px rgba(0,0,0,.22),0 0 0 4px rgba(238,155,74,.14);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .planning-choice-card b{
  color:#F7F9FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .planning-choice-card small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .planning-choice-modal>.muted{
  color:#AFC0E6;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="account-management"] .sheet-close,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium-info"] .sheet-close,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-info-sheet .sheet-close{
  border-color:rgba(255,255,255,.18)!important;
  background:rgba(14,24,48,.72)!important;
  color:#EAF0FF!important;
  box-shadow:0 12px 26px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08)!important;
  backdrop-filter:blur(10px);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="account-management"] .sheet-close:hover,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium-info"] .sheet-close:hover,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .premium-info-sheet .sheet-close:hover{
  background:rgba(31,46,86,.82)!important;
  color:#fff!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="account-management"] .premium-plus-head>b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-content~="account-management"] .premium-free-card-top>b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium-info"] .premium-plus-head>b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal[data-modal-kind="premium-info"] .premium-free-card-top>b{
  border-color:rgba(255,255,255,.22)!important;
  background:rgba(14,24,48,.68)!important;
  color:#F4F7FF!important;
  box-shadow:0 12px 24px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.08)!important;
  backdrop-filter:blur(10px);
}
@media(max-width:520px){
  .planning-choice-grid{grid-template-columns:1fr}
  .planning-choice-card{min-height:94px}
}

.profile-required-sheet{
  width:min(calc(100% - 28px),540px);
  margin-bottom:calc(18px + var(--safe-bottom));
  padding:0;
  border:1px solid rgba(255,255,255,.64);
  border-radius:30px;
  background:linear-gradient(135deg,#FFFFFF 0%,#F6F8FF 62%,#FFF2EA 100%);
  box-shadow:0 26px 58px rgba(22,35,61,.26);
}
.profile-required-sheet .sheet-close{
  display:none!important;
}
.profile-required-sheet #modalBody{
  overflow:hidden;
}
.profile-required-card{
  position:relative;
  display:grid;
  gap:12px;
  min-height:224px;
  padding:26px 24px 24px;
  overflow:hidden;
}
.profile-required-card:after{
  position:absolute;
  right:-28px;
  bottom:-36px;
  width:150px;
  height:150px;
  background:rgba(41,61,102,.08);
  content:"";
  pointer-events:none;
  -webkit-mask:url("/assets/osyra-symbol-20260611.svg") center/contain no-repeat;
  mask:url("/assets/osyra-symbol-20260611.svg") center/contain no-repeat;
  transform:rotate(-10deg);
}
.profile-required-icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:16px;
  background:linear-gradient(135deg,var(--blue),#8EA0FF);
  box-shadow:0 14px 28px rgba(102,127,255,.22);
}
.profile-required-icon:before{
  width:24px;
  height:24px;
  background:#fff;
  content:"";
  -webkit-mask:url("/assets/features/profile.svg") center/contain no-repeat;
  mask:url("/assets/features/profile.svg") center/contain no-repeat;
}
.profile-required-card h2{
  position:relative;
  z-index:1;
  max-width:360px;
  padding:0;
  color:var(--ink);
  font-size:1.45rem;
  line-height:1.08;
}
.profile-required-card p{
  position:relative;
  z-index:1;
  max-width:420px;
  color:var(--text);
  font-size:.92rem;
  font-weight:750;
  line-height:1.55;
}
.profile-required-card .primary{
  position:relative;
  z-index:1;
  min-height:50px;
  margin-top:7px;
  border-radius:18px;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-required-sheet{
  border-color:rgba(139,160,255,.18);
  background:linear-gradient(145deg,#0F1B32 0%,#152746 60%,#20315A 100%);
  box-shadow:0 26px 58px rgba(0,0,0,.42);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-required-card:after{
  background:rgba(255,255,255,.07);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-required-card h2{
  color:#F7F9FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-required-card p{
  color:#B9C5DC;
}

/* Desktop app shell: keeps the mobile app intact while giving wide screens a CRM-like workspace. */
@media(min-width:1100px){
  :root{
    --app-width:1440px;
    --desktop-rail:98px;
  }
  html,
  body{
    background:var(--shell-desktop-bg);
  }
  body{
    font-size:14px;
  }
  .app{
    width:min(100%,var(--app-width));
    min-height:100vh;
    padding:16px 28px 40px calc(var(--desktop-rail) + 28px);
    background:transparent;
    box-shadow:none;
  }
  .app-top{
    top:14px;
    min-height:64px;
    margin-bottom:14px;
    padding:10px 14px 10px 16px;
    border:1px solid rgba(221,229,245,.84);
    border-radius:26px;
    background:rgba(255,255,255,.82);
    box-shadow:0 18px 42px rgba(41,61,102,.10);
  }
  .app-top.hide{
    transform:translateY(-130%);
  }
  .top-brand img{
    width:44px;
    height:44px;
    border-radius:15px;
  }
  .top-brand strong{
    font-size:1.28rem;
  }
  .screens{
    padding:0;
  }
  .screen.active{
    min-height:calc(100vh - 118px);
  }
  .bottom-nav{
    top:96px;
    right:auto;
    bottom:auto;
    left:max(18px,calc((100vw - var(--app-width))/2 + 18px));
    width:80px;
    grid-template-columns:1fr;
    gap:8px;
    padding:10px;
    border:1px solid rgba(221,229,245,.9);
    border-radius:28px;
    background:rgba(255,255,255,.84);
    box-shadow:0 22px 50px rgba(41,61,102,.14);
  }
  .bottom-nav button{
    min-height:70px;
    padding:8px 4px;
    border-radius:20px;
  }
  .bottom-nav button>i,
  .bottom-nav button>svg,
  .bottom-nav button>img{
    width:22px;
    height:22px;
  }
  .bottom-nav span{
    max-width:100%;
    overflow:hidden;
    font-size:.66rem;
    line-height:1.1;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .bottom-nav .active{
    background:linear-gradient(135deg,rgba(102,127,255,.16),rgba(102,127,255,.08));
    color:var(--blue);
    box-shadow:inset 0 0 0 1px rgba(102,127,255,.22);
  }
  .bottom-nav button.premium-locked:after{
    top:8px;
    right:8px;
  }
  .profile-goal-details-button.premium-locked:after{
    top:9px;
    right:9px;
  }
  .panel,
  .profile-card,
  .today-card,
  .diary-card,
  .meal-card,
  .food-card,
  .cost-item,
  .recipe-card,
  .chart-card,
  .finance-detail-card,
  .finance-info-block,
  .recipe-builder,
  .select-card,
  .finance-filter-box{
    border-color:rgba(221,229,245,.92);
    box-shadow:0 16px 34px rgba(41,61,102,.08);
  }
  .panel{
    padding:18px;
  }
  .primary,
  .soft,
  .ghost,
  .danger,
  .chip,
  .day-tabs button,
  .segmented button,
  .diary-series-controls button,
  .home-tabs button{
    min-height:40px;
    padding-right:16px;
    padding-left:16px;
    white-space:normal;
  }
  .small{
    min-height:36px;
  }
  .row-actions{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
    gap:9px;
  }
  .row-actions .primary,
  .row-actions .soft,
  .row-actions .ghost,
  .toolbar .primary,
  .toolbar .soft,
  .toolbar .ghost{
    width:100%;
  }
  .search,
  .picker-search,
  label.search{
    box-shadow:0 12px 24px rgba(41,61,102,.07);
  }

  #homeScreen.active{
    display:grid;
    grid-template-columns:minmax(318px,382px) minmax(0,1fr);
    gap:18px;
    align-items:start;
  }
  #homeProfile,
  #homeScreen .action-title,
  #homePlanModes,
  #homeScreen .tools-title,
  #homeScreen .home-actions,
  #homeScreen .plan-tutorial-bubble{
    grid-column:1;
  }
  #homeScreen .home-tabs,
  #todayPanel,
  #diaryPanel{
    grid-column:2;
  }
  #homeProfile{
    position:sticky;
    top:96px;
    z-index:2;
  }
  #homeScreen .home-tabs{
    width:min(460px,100%);
    justify-self:start;
  }
  #todayPanel,
  #diaryPanel{
    min-height:360px;
  }
  #homeScreen .action-title{
    margin:0 0 4px;
    padding-top:2px;
  }
  #homeScreen .tools-title{
    margin:4px 0 0;
  }
  #homeScreen .home-plan-modes,
  #homeScreen .home-actions{
    grid-template-columns:1fr;
    gap:10px;
  }
  #homeScreen .action-card,
  #homeScreen .action-card[data-go="plan"],
  #homeScreen .action-card[data-go="finance"]{
    grid-column:auto;
    min-height:74px;
    padding:13px;
    border-radius:20px;
  }
  #homeScreen .action-card small{
    -webkit-line-clamp:3;
  }
  #homeScreen .today-meal-list{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(260px,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    overflow:visible!important;
  }
  #homeScreen .day-nutrition-grid,
  #homeScreen .macro-grid,
  #homeScreen .diary-macros{
    grid-template-columns:repeat(2,minmax(240px,1fr));
  }
  #homeScreen .day-macro,
  #homeScreen .macro{
    min-width:0;
    padding:12px 13px;
  }
  #homeScreen .day-macro b i{
    font-size:.96rem;
  }
  #homeScreen .day-macro small i{
    font-size:.62rem;
  }

  #planScreen.active{
    display:grid;
    grid-template-columns:minmax(310px,370px) minmax(0,1fr);
    gap:16px 18px;
    align-items:start;
  }
  #planScreen .plan-preview-hero,
  #planScreen .plan-tabs,
  #planScreen #planDays,
  #planScreen .plan-row-actions,
  #planScreen #planSummary{
    grid-column:1;
  }
  #planScreen .plan-preview-hero{
    position:sticky;
    top:96px;
    z-index:2;
  }
  #planScreen .plan-tabs,
  #planScreen #planDays,
  #planScreen .plan-row-actions,
  #planScreen #planSummary{
    align-self:start;
  }
  #planScreen .plan-meals-heading,
  #planScreen #mealList{
    grid-column:2;
  }
  #planScreen #mealList{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(260px,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    overflow:visible!important;
    gap:12px;
  }
  #planScreen .meal-card{
    min-height:174px;
  }
  #planScreen[data-plan-active="analysis"]{
    grid-template-columns:minmax(260px,320px) minmax(0,1fr);
  }
  #planScreen[data-plan-active="analysis"] #planAnalysisPanel{
    grid-column:2;
    grid-row:1 / span 6;
  }
  #planScreen[data-plan-active="analysis"] .plan-preview-hero{
    position:relative;
    top:auto;
  }
  #planScreen .day-tabs{
    grid-template-columns:repeat(7,minmax(0,1fr));
  }

  #foodsScreen.active{
    display:grid;
    grid-template-columns:minmax(300px,360px) minmax(0,1fr);
    gap:14px 18px;
    align-items:start;
  }
  #foodsScreen .foods-hero-card,
  #foodsScreen .food-search-field,
  #foodsScreen .filter-actions,
  #foodsScreen #foodFilterPanel,
  #foodsScreen .food-source{
    grid-column:1;
  }
  #foodsScreen .foods-hero-card{
    position:sticky;
    top:96px;
    z-index:2;
  }
  #foodsScreen .filter-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
  }
  #foodsScreen #foodFilterPanel:not([hidden]){
    display:grid;
    gap:10px;
  }
  #foodsScreen #foodList,
  #foodsScreen [data-food-more]{
    grid-column:2;
  }
  #foodsScreen #foodList{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(260px,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    overflow:visible!important;
    gap:12px;
  }
  #foodsScreen .food-card{
    min-height:96px;
  }
  #foodsScreen [data-food-more]{
    width:min(320px,100%);
    justify-self:center;
  }

  #financeScreen.active{
    display:grid;
    grid-template-columns:minmax(310px,380px) minmax(0,1fr);
    gap:14px 18px;
    align-items:start;
  }
  #financeScreen .finance-mode-card,
  #financeScreen .finance-profiles,
  #financeScreen .finance-tabs,
  #financeScreen .finance-summary{
    grid-column:1;
  }
  #financeScreen .finance-mode-card{
    position:sticky;
    top:96px;
    z-index:2;
  }
  #financeScreen #financeShoppingPanel,
  #financeScreen #financeSubstitutionPanel{
    grid-column:2;
    min-width:0;
  }
  #financeScreen #financeShoppingPanel:not([hidden]){
    display:grid;
    grid-template-columns:minmax(300px,420px) minmax(0,1fr);
    gap:14px;
    align-items:start;
  }
  #financeScreen #financeShoppingPanel .select-card,
  #financeScreen #financeShoppingPanel .chart-grid,
  #financeScreen #financeShoppingPanel .finance-filter-box{
    grid-column:1;
  }
  #financeScreen #financeShoppingPanel .section-heading,
  #financeScreen #financeList{
    grid-column:2;
  }
  #financeScreen #financeList{
    gap:12px;
  }
  #financeScreen .chart-grid{
    grid-template-columns:1fr;
  }
  #financeScreen .chart-card{
    position:sticky;
    top:96px;
  }
  #financeScreen .legend{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #financeScreen .finance-cycle-values{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #financeScreen #financeSubstitutionPanel:not([hidden]){
    display:grid;
    gap:14px;
  }
  #financeScreen #financeSubstitutionList{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(260px,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    overflow:visible!important;
    gap:12px;
  }

  #platesScreen.active{
    display:block;
  }
  #recipeBuilderPanel:not(.hidden){
    display:grid;
    grid-template-columns:minmax(300px,380px) minmax(0,1fr);
    gap:14px 18px;
    align-items:start;
  }
  #recipeBuilderPanel #recipeSummary,
  #recipeBuilderPanel [data-recipe-save]{
    grid-column:1;
  }
  #recipeBuilderPanel #recipeBuilder,
  #recipeBuilderPanel .section-heading,
  #recipeBuilderPanel #recipeSavedList{
    grid-column:2;
  }
  #recipeBuilderPanel #recipeBuilder{
    justify-self:stretch;
  }
  #recipeSavedList{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(260px,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    overflow:visible!important;
  }

  .profile-drawer{
    width:min(48vw,720px);
    padding:20px 20px 0;
  }
  .profile-drawer form.stack{
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
  }
  .profile-drawer form.stack>.panel,
  .profile-drawer form.stack>details,
  .profile-drawer form.stack>fieldset,
  .profile-drawer form.stack>.profile-section-label,
  .profile-drawer form.stack>.profile-terms{
    grid-column:1/-1;
  }
  .profile-save-footer{
    margin-right:-20px;
    margin-left:-20px;
    padding-right:20px;
    padding-left:20px;
  }
  .profile-drawer .activity-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #profileMeals{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }

  .ai-fab{
    right:max(30px,calc((100vw - var(--app-width))/2 + 30px));
    bottom:30px;
  }
  .ai-chat{
    right:max(30px,calc((100vw - var(--app-width))/2 + 30px));
    bottom:104px;
    left:auto;
    width:min(420px,calc(100vw - 160px));
    height:min(72dvh,720px);
    max-height:calc(100dvh - 130px);
  }
  .modal .sheet{
    max-width:min(760px,calc(100vw - 56px));
  }
}

@media(min-width:1360px){
  .app{
    padding-right:34px;
    padding-left:calc(var(--desktop-rail) + 34px);
  }
  #homeScreen.active{
    grid-template-columns:minmax(350px,410px) minmax(0,1fr);
  }
  #foodsScreen #foodList,
  #financeScreen #financeSubstitutionList{
    grid-template-columns:repeat(3,minmax(220px,1fr))!important;
  }
  #planScreen #mealList .meal-card,
  #homeScreen .today-meal-list .meal-card{
    min-height:166px;
  }
}

@media(min-width:1100px){
  :root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]),
  :root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) body{
    background:
      radial-gradient(circle at 10% 8%,rgba(255,159,113,.12),transparent 30%),
      radial-gradient(circle at 92% 6%,rgba(102,127,255,.16),transparent 34%),
      linear-gradient(135deg,#091326 0%,#0D1930 56%,#111D35 100%);
  }
  :root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-top,
  :root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .bottom-nav{
    border-color:rgba(139,160,255,.16);
    background:rgba(13,25,48,.82);
    box-shadow:0 22px 50px rgba(0,0,0,.28);
  }
  :root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .bottom-nav .active{
    background:rgba(102,127,255,.18);
    box-shadow:inset 0 0 0 1px rgba(139,160,255,.22);
  }
}

/* Web workspace polish: wide screens use a centered, stable layout instead of stretched mobile rails. */
@media(min-width:1100px){
  :root{
    --app-width:min(1280px,100vw);
    --desktop-rail:96px;
  }
  .app{
    width:100%;
    max-width:1280px;
    padding:18px 34px 58px calc(var(--desktop-rail) + 34px);
  }
  .app-top{
    width:100%;
    max-width:calc(1280px - var(--desktop-rail) - 68px);
    margin:12px auto 18px;
  }
  .screens{
    width:100%;
    max-width:calc(1280px - var(--desktop-rail) - 68px);
    margin:0 auto;
  }
  .bottom-nav{
    left:max(18px,calc((100vw - 1280px)/2 + 18px));
  }

  #homeScreen.active,
  #planScreen.active,
  #foodsScreen.active,
  #financeScreen.active{
    display:grid;
    grid-template-columns:minmax(320px,390px) minmax(0,1fr);
    gap:18px 22px;
    align-items:start;
  }

  #homeProfile,
  #planScreen .plan-preview-hero,
  #foodsScreen .foods-hero-card,
  #financeScreen .finance-mode-card{
    position:sticky;
    top:100px;
    z-index:2;
    width:100%;
    min-width:0;
  }

  #homeScreen .home-tabs,
  #todayPanel,
  #diaryPanel,
  #planScreen .plan-tabs,
  #planScreen #planDays,
  #planScreen #planSummary,
  #planScreen .plan-meals-heading,
  #planScreen #mealList,
  #planScreen .plan-row-actions,
  #foodsScreen #foodList,
  #foodsScreen [data-food-more],
  #financeScreen #financeShoppingPanel,
  #financeScreen #financeSubstitutionPanel{
    min-width:0;
  }

  #homeScreen .home-tabs,
  #todayPanel,
  #diaryPanel{
    grid-column:2;
  }
  #homeScreen .home-tabs{
    width:100%;
    max-width:520px;
  }
  #homeScreen .action-title,
  #homePlanModes,
  #homeScreen .tools-title,
  #homeScreen .home-actions,
  #homeScreen .plan-tutorial-bubble{
    grid-column:1;
  }

  #homeScreen .day-nutrition-grid[data-home-carousel],
  #planScreen .day-nutrition-grid[data-home-carousel],
  #homeScreen .today-meal-list[data-home-carousel],
  #planScreen #mealList[data-home-carousel]{
    display:grid!important;
    overflow:visible!important;
    scroll-snap-type:none!important;
    scroll-padding:0!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    width:100%!important;
    transform:none!important;
  }
  #homeScreen .day-nutrition-grid[data-home-carousel]>*,
  #planScreen .day-nutrition-grid[data-home-carousel]>*,
  #homeScreen .today-meal-list[data-home-carousel]>*,
  #planScreen #mealList[data-home-carousel]>*{
    scroll-snap-align:unset!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
  }
  #homeScreen .day-nutrition-grid[data-home-carousel]:before,
  #homeScreen .day-nutrition-grid[data-home-carousel]:after,
  #planScreen .day-nutrition-grid[data-home-carousel]:before,
  #planScreen .day-nutrition-grid[data-home-carousel]:after,
  #homeScreen .today-meal-list[data-home-carousel]:before,
  #homeScreen .today-meal-list[data-home-carousel]:after,
  #planScreen #mealList[data-home-carousel]:before,
  #planScreen #mealList[data-home-carousel]:after{
    display:none!important;
    content:none!important;
  }
  #homeScreen .day-nutrition-grid + .carousel-dots,
  #planScreen .day-nutrition-grid + .carousel-dots,
  #homeScreen .today-meal-list + .carousel-dots,
  #planScreen #mealList + .carousel-dots{
    display:none!important;
  }

  #homeScreen .home-profile-summary,
  #planScreen .home-profile-summary{
    grid-template-columns:84px repeat(3,minmax(0,1fr))!important;
    gap:12px!important;
    align-items:center;
  }
  #homeScreen .profile-person .hero-avatar,
  #planScreen .profile-person .hero-avatar{
    width:72px;
    height:72px;
  }
  #homeScreen .profile-person strong,
  #planScreen .profile-person strong{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }
  #homeScreen .profile-main-stat,
  #planScreen .profile-main-stat{
    min-height:86px;
    padding:12px;
    border:1px solid rgba(221,229,245,.82);
    background:rgba(255,255,255,.72);
    box-shadow:0 14px 28px rgba(41,61,102,.07);
  }
  #homeScreen [data-profile-goal-row="cronos"]{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #homeScreen [data-profile-goal-row="cronos"]>div{
    min-height:80px;
    padding:14px 16px;
    border:1px solid rgba(221,229,245,.86);
    border-radius:22px;
    background:rgba(255,255,255,.74);
    box-shadow:0 14px 28px rgba(41,61,102,.07);
  }

  #homeScreen .day-nutrition-grid,
  #planScreen .day-nutrition-grid{
    grid-template-columns:repeat(2,minmax(260px,1fr))!important;
    gap:14px!important;
  }
  #homeScreen .today-meal-list,
  #planScreen #mealList:not([data-home-carousel]){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
  }
  #homeScreen .today-meal-list .meal-card,
  #planScreen #mealList:not([data-home-carousel]) .meal-card{
    min-height:0;
    height:auto;
  }

  #planScreen .plan-preview-hero,
  #planScreen .plan-tabs,
  #planScreen #planDays,
  #planScreen #planSummary{
    grid-column:1;
  }
  #planScreen .plan-meals-heading,
  #planScreen #mealList,
  #planScreen .plan-row-actions{
    grid-column:2;
  }
  #planScreen .plan-row-actions{
    grid-row:auto;
  }
  #planScreen[data-plan-active="analysis"]{
    grid-template-columns:minmax(320px,390px) minmax(0,1fr);
  }
  #planScreen[data-plan-active="analysis"] #planAnalysisPanel{
    grid-column:2;
    grid-row:1 / span 6;
  }

  #foodsScreen .food-search-field,
  #foodsScreen .filter-actions,
  #foodsScreen #foodFilterPanel,
  #foodsScreen .food-source{
    grid-column:1;
  }
  #foodsScreen #foodList,
  #foodsScreen [data-food-more]{
    grid-column:2;
  }
  #foodsScreen #foodList{
    grid-template-columns:repeat(2,minmax(260px,1fr))!important;
  }

  #financeScreen #financeShoppingPanel:not([hidden]){
    display:grid;
    grid-template-columns:minmax(300px,390px) minmax(0,1fr);
    gap:16px;
  }
}

.analysis-fixed-report{margin:0 0 18px;padding:0;border:1px solid rgba(65,82,126,.16);border-radius:8px;background:rgba(255,255,255,.78);overflow:hidden}
.analysis-fixed-report-head{padding:22px 24px 18px;border-bottom:1px solid rgba(65,82,126,.14);background:linear-gradient(135deg,rgba(242,247,255,.96),rgba(251,253,248,.96))}
.analysis-fixed-report-head h2{margin:4px 0 6px;font-size:1.25rem;letter-spacing:0;color:var(--ink)}
.analysis-fixed-report-head>p:last-child{margin:0;color:var(--muted);font-size:.84rem;line-height:1.45}
.analysis-report-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.analysis-report-section{padding:20px 22px;border-bottom:1px solid rgba(65,82,126,.12)}
.analysis-report-section:nth-child(odd){border-right:1px solid rgba(65,82,126,.12)}
.analysis-report-section:last-child{grid-column:1/-1;border-bottom:0;border-right:0}
.analysis-report-section>header{display:flex;align-items:flex-start;gap:11px;margin-bottom:14px}
.analysis-report-section>header>span{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:var(--ink);color:#fff;font-size:.68rem;font-weight:900}
.analysis-report-section h3{margin:0;font-size:.98rem;letter-spacing:0;color:var(--ink)}
.analysis-report-section header p{margin:3px 0 0;color:var(--muted);font-size:.73rem;line-height:1.35}
.analysis-report-section dl{margin:0;display:grid;gap:0}
.analysis-report-section dl>div{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(100px,.8fr);gap:12px;align-items:baseline;padding:9px 0;border-top:1px solid rgba(65,82,126,.09)}
.analysis-report-section dt{color:var(--muted);font-size:.76rem;line-height:1.3}
.analysis-report-section dd{margin:0;text-align:right;color:var(--ink);font-size:.8rem;font-weight:850;line-height:1.3}
@media(max-width:760px){
  .analysis-fixed-report-head{padding:18px 16px 15px}
  .analysis-report-sections{grid-template-columns:1fr}
  .analysis-report-section,.analysis-report-section:last-child{grid-column:1;padding:17px 16px;border-right:0}
  .analysis-report-section:last-child{border-bottom:0}
  .analysis-report-section dl>div{grid-template-columns:minmax(0,1fr) minmax(92px,.8fr);gap:9px}
}

.chef-stepper{grid-template-columns:repeat(5,minmax(0,1fr))}
.chef-stepper button{min-width:0}
.recipe-source-segments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}
.recipe-source-segments button{min-height:38px;padding:6px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:.72rem;font-weight:900}
.recipe-source-segments button.active{background:var(--surface);color:var(--blue-deep);box-shadow:0 3px 10px rgba(41,61,102,.08)}
.recipe-source-segments button:disabled{opacity:.5}
.recipe-identity-meals{min-width:0;margin:0;padding:0;border:0}
.recipe-identity-meals legend{margin-bottom:7px;color:var(--muted);font-size:.66rem;font-weight:900;text-transform:uppercase}
.chef-assembly textarea{width:100%;min-height:120px;resize:vertical}
.recipe-yield-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.recipe-nutrition-label{overflow:hidden;border:2px solid #111;border-radius:4px;background:#fff;color:#111;font-family:Arial,sans-serif;box-shadow:0 12px 28px rgba(20,29,49,.10)}
.recipe-nutrition-label header{padding:10px 10px 8px;border-bottom:5px solid #111}
.recipe-nutrition-label h4{margin:0 0 5px;color:#111;font-size:1.05rem;line-height:1}
.recipe-nutrition-label p{margin:1px 0;color:#111;font-size:.72rem;line-height:1.25}
.recipe-nutrition-label table{width:100%;border-collapse:collapse;table-layout:fixed;color:#111;font-size:.69rem}
.recipe-nutrition-label th,.recipe-nutrition-label td{padding:6px 5px;border-bottom:1px solid #aaa;text-align:right;vertical-align:middle}
.recipe-nutrition-label th:first-child{width:43%;text-align:left;font-weight:500}
.recipe-nutrition-label thead th{border-bottom:2px solid #111;font-weight:900}
.recipe-nutrition-label tbody tr:nth-child(3) th,.recipe-nutrition-label tbody tr:nth-child(4) th,.recipe-nutrition-label tbody tr:nth-child(7) th,.recipe-nutrition-label tbody tr:nth-child(8) th{padding-left:14px}
.recipe-nutrition-label .is-incomplete{color:#777}
.recipe-nutrition-label footer{padding:6px 8px;color:#111;font-size:.62rem}
.recipe-label-warning{padding:7px 8px;border-top:1px solid #111;background:#fff4df!important;color:#7a4a00!important;font-weight:800}
.recipe-library-tabs{grid-column:1/-1;display:flex;gap:6px;overflow-x:auto;padding:2px;scrollbar-width:none}
.recipe-library-tabs::-webkit-scrollbar{display:none}
.recipe-library-tabs button{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;min-height:38px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font-size:.7rem;font-weight:900}
.recipe-library-tabs button b{display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:5px;background:var(--surface-2);font-size:.62rem}
.recipe-library-tabs button.active{border-color:var(--blue);background:var(--blue);color:#fff}
.recipe-library-tabs button.active b{background:rgba(255,255,255,.2);color:#fff}
.recipe-library-empty{grid-column:1/-1}
.recipe-saved-head small{display:block;margin-top:4px;color:inherit;font-size:.62rem;font-weight:800;opacity:.72}
@media(max-width:520px){
  .chef-stepper{overflow-x:auto;grid-template-columns:repeat(5,68px);justify-content:start;padding-bottom:2px;scrollbar-width:none}
  .chef-stepper::-webkit-scrollbar{display:none}
  .chef-stepper button{font-size:.56rem}
  .recipe-yield-fields{grid-template-columns:1fr}
  .recipe-nutrition-label table{font-size:.62rem}
  .recipe-nutrition-label th,.recipe-nutrition-label td{padding:6px 3px}
}
@media(min-width:1480px){
  .app{
    max-width:1380px;
  }
  .app-top,
  .screens{
    max-width:calc(1380px - var(--desktop-rail) - 68px);
  }
  .bottom-nav{
    left:max(18px,calc((100vw - 1380px)/2 + 18px));
  }
  #homeScreen.active,
  #planScreen.active,
  #foodsScreen.active,
  #financeScreen.active,
  #planScreen[data-plan-active="analysis"]{
    grid-template-columns:minmax(360px,430px) minmax(0,1fr);
  }
  #homeScreen .today-meal-list,
  #planScreen #mealList:not([data-home-carousel]),
  #foodsScreen #foodList,
  #financeScreen #financeSubstitutionList{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

/* Ultra-wide / TV workspace: keep the app as one centered product surface. */
@media(min-width:1800px){
  :root{
    --desktop-rail:104px;
  }
  body{
    font-size:15px;
  }
  .app{
    width:min(100vw,1540px);
    max-width:1540px;
    margin-right:auto;
    margin-left:auto;
    padding-right:44px;
    padding-left:calc(var(--desktop-rail) + 44px);
  }
  .app-top,
  .screens{
    width:100%;
    max-width:calc(1540px - var(--desktop-rail) - 88px);
  }
  .bottom-nav{
    left:max(24px,calc((100vw - 1540px)/2 + 24px));
  }
  #homeScreen.active,
  #planScreen.active,
  #foodsScreen.active,
  #financeScreen.active,
  #planScreen[data-plan-active="analysis"]{
    grid-template-columns:minmax(390px,460px) minmax(0,1fr);
    gap:22px 28px;
  }
  #homeScreen .home-tabs,
  #planScreen .plan-tabs,
  #financeScreen .finance-tabs{
    max-width:640px;
  }
  #homeScreen .today-meal-list,
  #planScreen #mealList,
  #foodsScreen #foodList{
    grid-template-columns:repeat(3,minmax(260px,1fr))!important;
  }
  #financeScreen #financeShoppingPanel:not([hidden]){
    grid-template-columns:minmax(330px,430px) minmax(0,1fr);
    gap:18px 22px;
  }
}

@media(min-width:2200px){
  .app{
    width:1560px;
    max-width:1560px;
  }
  .app-top,
  .screens{
    max-width:calc(1560px - var(--desktop-rail) - 88px);
  }
  .bottom-nav{
    left:max(24px,calc((100vw - 1560px)/2 + 24px));
  }
}

.app-top.hide{
  transform:translateY(-130%)!important;
  pointer-events:none;
}

.food-empty-state{
  display:grid;
  gap:8px;
  justify-items:start;
  padding:15px;
}
.food-empty-state small{
  color:var(--muted);
  font-size:.74rem;
  font-weight:800;
}
.food-empty-state button{
  min-height:34px;
  padding:0 13px;
}
.food-restore-button{
  width:36px;
  height:36px;
  flex:0 0 auto;
  border:1px solid rgba(102,127,255,.22);
  background:var(--blue-soft);
  color:var(--blue);
  box-shadow:0 8px 18px rgba(41,61,102,.08);
}
.food-restore-confirm .primary{
  min-height:44px;
  padding:0 18px;
}
/* Clickable profile avatar opens account information after profile setup */
.profile-avatar-account{padding:0;border-radius:50%;cursor:pointer;appearance:none;-webkit-appearance:none;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.profile-avatar-account:hover{transform:translateY(-1px);border-color:rgba(94,114,255,.45);box-shadow:0 14px 28px rgba(41,61,102,.14)}
.profile-avatar-account:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(94,114,255,.22),0 14px 28px rgba(41,61,102,.14)}

/* Limão pós banho: keep the Articles mosaic card readable over its illustrated asset. */
:root[data-visual-theme="yellowgray"] .app-menu-modal.mosaic .menu-card-article{
  border-color:rgba(214,163,34,.18)!important;
  background:
    linear-gradient(90deg,rgba(39,51,65,.88) 0%,rgba(61,76,95,.72) 58%,rgba(238,240,241,.60) 100%),
    linear-gradient(135deg,#eef0f1 0%,#d6dce1 54%,#fff4c8 100%)!important;
  box-shadow:0 14px 30px rgba(44,51,60,.10)!important;
}
:root[data-visual-theme="yellowgray"] .app-menu-modal.mosaic .menu-card-article:before{
  background:
    linear-gradient(135deg,transparent 0 72%,rgba(255,255,255,.50) 73% 100%),
    repeating-linear-gradient(0deg,rgba(39,51,65,.24) 0 1px,transparent 1px 9px),
    rgba(255,255,255,.38)!important;
  opacity:.62!important;
}
:root[data-visual-theme="yellowgray"] .app-menu-modal.mosaic .menu-card-article b{
  color:#fffdf4!important;
  text-shadow:0 2px 10px rgba(20,28,38,.38)!important;
}
:root[data-visual-theme="yellowgray"] .app-menu-modal.mosaic .menu-card-article small{
  color:#eef3ff!important;
  text-shadow:0 2px 10px rgba(20,28,38,.34)!important;
}
:root[data-visual-theme="yellowgray"] .app-menu-modal.mosaic .menu-card-article .app-menu-icon{
  border-color:rgba(255,226,106,.55)!important;
  background:#fff4c8!important;
  color:#7c5a05!important;
}

/* Final visual pass for illustrated menu cards and finance detail actions. */
.app-menu-modal.mosaic .menu-card-appearance[data-app-appearance],
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-modal.mosaic .menu-card-appearance[data-app-appearance],
:root[data-visual-theme="yellowgray"] .app-menu-modal.mosaic .menu-card-appearance[data-app-appearance],
:root[data-visual-theme="color2"] .app-menu-modal.mosaic .menu-card-appearance[data-app-appearance],
:root[data-visual-theme="abacate"] .app-menu-modal.mosaic .menu-card-appearance[data-app-appearance]{
  position:relative!important;
  overflow:hidden!important;
  border:0!important;
  background:var(--menu-appearance-bg)!important;
  box-shadow:var(--menu-appearance-shadow)!important;
}
.app-menu-modal.mosaic .menu-card-appearance[data-app-appearance]:before,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-modal.mosaic .menu-card-appearance[data-app-appearance]:before,
:root[data-visual-theme="yellowgray"] .app-menu-modal.mosaic .menu-card-appearance[data-app-appearance]:before{
  display:block!important;
  position:absolute;
  inset:0;
  z-index:0;
  border-radius:inherit;
  background:
    radial-gradient(circle at 78% 15%,rgba(255,226,186,.28),transparent 32%),
    linear-gradient(180deg,rgba(255,255,255,.03),rgba(7,13,28,.12));
  content:"";
  pointer-events:none;
}
.app-menu-modal.mosaic .menu-card-appearance[data-app-appearance] b,
.app-menu-modal.mosaic .menu-card-appearance[data-app-appearance] small{
  position:relative!important;
  z-index:1!important;
  color:var(--menu-appearance-text)!important;
  text-shadow:0 2px 12px rgba(5,10,24,.46)!important;
}
.app-menu-modal.mosaic .menu-card-appearance[data-app-appearance] small{
  color:var(--menu-appearance-muted)!important;
}

.app-menu-modal.mosaic .menu-card-article,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-modal.mosaic .menu-card-article,
:root[data-visual-theme="yellowgray"] .app-menu-modal.mosaic .menu-card-article{
  overflow:hidden!important;
  border:0!important;
  background:
    radial-gradient(circle at 84% 30%,rgba(255,255,255,.18),transparent 28%),
    linear-gradient(90deg,rgba(24,36,61,.96) 0%,rgba(54,70,100,.90) 58%,rgba(127,139,160,.72) 100%)!important;
  box-shadow:0 14px 30px rgba(20,31,58,.10)!important;
}
.app-menu-modal.mosaic .menu-card-article:before,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-modal.mosaic .menu-card-article:before,
:root[data-visual-theme="yellowgray"] .app-menu-modal.mosaic .menu-card-article:before{
  display:block!important;
  top:50%!important;
  right:15px!important;
  bottom:auto!important;
  z-index:0!important;
  width:74px!important;
  height:78px!important;
  border:0!important;
  border-radius:12px!important;
  background:
    linear-gradient(135deg,transparent 0 72%,rgba(255,255,255,.38) 73% 100%),
    linear-gradient(180deg,rgba(255,255,255,.32),rgba(255,255,255,.16))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.13)!important;
  opacity:.58!important;
  transform:translateY(-50%) rotate(2deg)!important;
}
.app-menu-modal.mosaic .menu-card-article:after,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-modal.mosaic .menu-card-article:after,
:root[data-visual-theme="yellowgray"] .app-menu-modal.mosaic .menu-card-article:after{
  display:none!important;
}
.app-menu-modal.mosaic .menu-card-article .app-menu-icon{
  background:rgba(237,243,255,.88)!important;
  color:#4f68e8!important;
}
.app-menu-modal.mosaic .menu-card-article b,
.app-menu-modal.mosaic .menu-card-article small{
  color:#fffdf7!important;
  text-shadow:0 2px 12px rgba(5,10,24,.42)!important;
}
.app-menu-modal.mosaic .menu-card-article small{
  color:#edf3ff!important;
}
:root[data-visual-theme="yellowgray"] .app-menu-card.menu-card-article{
  overflow:hidden!important;
  border-color:rgba(39,51,65,.18)!important;
  background:
    radial-gradient(circle at 86% 38%,rgba(255,255,255,.16),transparent 28%),
    linear-gradient(90deg,rgba(24,36,61,.98) 0%,rgba(54,70,100,.92) 58%,rgba(127,139,160,.74) 100%)!important;
  color:#fffdf7!important;
  box-shadow:0 14px 30px rgba(20,31,58,.14)!important;
}
:root[data-visual-theme="yellowgray"] .app-menu-card.menu-card-article:before{
  opacity:.52!important;
}
:root[data-visual-theme="yellowgray"] .app-menu-card.menu-card-article b,
:root[data-visual-theme="yellowgray"] .app-menu-card.menu-card-article small{
  color:#fffdf7!important;
  opacity:1!important;
  text-shadow:0 2px 12px rgba(5,10,24,.46)!important;
}
:root[data-visual-theme="yellowgray"] .app-menu-card.menu-card-article small{
  color:#edf3ff!important;
}
:root[data-visual-theme="yellowgray"] .app-menu-card.menu-card-article .app-menu-icon{
  border-color:rgba(255,255,255,.26)!important;
  background:rgba(237,243,255,.9)!important;
  color:#4f68e8!important;
}

:root[data-visual-theme="abacate"] .app-menu-card.menu-card-article{
  overflow:hidden!important;
  border-color:rgba(111,159,70,.18)!important;
  background:
    radial-gradient(circle at 86% 34%,rgba(255,255,255,.18),transparent 28%),
    linear-gradient(90deg,rgba(30,45,67,.98) 0%,rgba(58,75,98,.92) 58%,rgba(119,134,154,.70) 100%)!important;
  color:#fffdf7!important;
  box-shadow:0 14px 30px rgba(49,82,54,.16)!important;
}
:root[data-visual-theme="abacate"] .app-menu-card.menu-card-article:before{
  opacity:.50!important;
  filter:contrast(1.1) brightness(.92);
}
:root[data-visual-theme="abacate"] .app-menu-card.menu-card-article:after{
  background:rgba(255,255,255,.08)!important;
}
:root[data-visual-theme="abacate"] .app-menu-card.menu-card-article b,
:root[data-visual-theme="abacate"] .app-menu-card.menu-card-article small{
  color:#fffdf7!important;
  opacity:1!important;
  text-shadow:0 2px 12px rgba(5,10,24,.48)!important;
}
:root[data-visual-theme="abacate"] .app-menu-card.menu-card-article small{
  color:#edf3ff!important;
}
:root[data-visual-theme="abacate"] .app-menu-card.menu-card-article .app-menu-icon{
  border-color:rgba(255,255,255,.28)!important;
  background:rgba(237,243,255,.90)!important;
  color:#4f68e8!important;
}

.finance-sub-detail-modal .sheet-title.with-actions .primary.small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-modal .sheet-title.with-actions .primary.small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .finance-sub-detail-sheet .sheet-title.with-actions .primary.small{
  border-color:rgba(139,160,255,.32)!important;
  background:#5f76f6!important;
  color:#fff!important;
  opacity:1!important;
  text-shadow:none!important;
  box-shadow:0 14px 26px rgba(41,61,102,.18)!important;
}

/* Modal headers: keep the whole rounded top area visually unified. */
.food-form-sheet,
.meal-food-picker-sheet,
.meal-item-editor-sheet,
.insert-meal-sheet{
  background:var(--card)!important;
}
.food-form-sheet .food-form-title,
.meal-food-picker-sheet .picker-title,
.meal-item-editor-sheet .meal-item-editor-title,
.insert-meal-sheet .insert-meal-title{
  background:var(--card)!important;
  box-shadow:0 -42px 0 var(--card),0 12px 24px rgba(41,61,102,.08)!important;
}
.food-form-sheet::before,
.meal-food-picker-sheet::before,
.meal-item-editor-sheet::before,
.insert-meal-sheet::before{
  background:var(--card)!important;
}
.meal-food-picker-sheet .picker-title{
  margin-bottom:18px!important;
  border-bottom:0!important;
  box-shadow:0 -42px 0 var(--meal-editor-header-surface)!important;
}
.meal-food-picker-sheet .picker-search{
  margin-top:18px!important;
}
.filling-picker-sheet{
  width:min(calc(100% - 24px),520px)!important;
  max-height:min(90dvh,760px)!important;
  margin-bottom:10px!important;
  border-bottom:1px solid var(--line)!important;
  border-radius:30px!important;
}
.filling-picker-sheet #modalBody{
  display:grid!important;
  min-height:0!important;
  overflow:hidden!important;
}
.filling-picker-panel{
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto;
  gap:13px;
  min-height:0;
  height:100%;
}
.filling-picker-title{
  align-items:center;
  gap:12px;
  min-height:86px;
  margin:0 42px 2px 0;
  padding:12px 10px 14px 0;
  border-bottom:1px solid rgba(102,127,255,.16);
}
.filling-picker-title>.food-image,
.filling-picker-title>.meal-icon{
  width:50px;
  height:50px;
  flex:0 0 50px;
  border-radius:18px;
  box-shadow:0 12px 24px rgba(41,61,102,.10);
}
.filling-picker-title h2{
  padding-right:0!important;
  color:var(--ink);
  font-size:1.18rem;
  line-height:1.08;
}
.filling-picker-title p:not(.eyebrow){
  margin-top:5px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:800;
  line-height:1.38;
}
.filling-picker-search{
  min-height:52px!important;
  margin:0!important;
  border-color:rgba(102,127,255,.20)!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fff,rgba(244,247,255,.92))!important;
  box-shadow:0 10px 22px rgba(41,61,102,.06)!important;
}
.filling-food-results{
  gap:9px!important;
  min-height:0;
  overflow-y:auto;
  padding-bottom:8px;
  scrollbar-width:none;
}
.filling-food-results::-webkit-scrollbar{
  display:none;
}
.filling-food-results .meal-food-choice{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
  min-height:72px;
  padding:0!important;
  border-color:rgba(102,127,255,.18)!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fff,rgba(248,250,255,.96))!important;
  box-shadow:0 12px 28px rgba(41,61,102,.07)!important;
  overflow:hidden;
}
.filling-food-choice-main{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 34px;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:72px;
  padding:10px;
  background:transparent;
  color:inherit;
  text-align:left;
}
.filling-food-results .meal-food-choice i{
  width:34px;
  height:34px;
  background:rgba(102,127,255,.12)!important;
  color:var(--blue)!important;
}
.filling-food-results .meal-food-choice.selected{
  border-color:color-mix(in srgb,var(--green) 42%,var(--line))!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--green) 15%,#fff),rgba(248,255,250,.98))!important;
  box-shadow:0 12px 26px rgba(13,148,96,.10)!important;
}
.filling-food-results .meal-food-choice.selected i{
  background:var(--green)!important;
  color:#fff!important;
}
.filling-food-results .meal-food-choice b{
  font-size:.94rem!important;
  line-height:1.15;
}
.filling-food-results .meal-food-choice .grow span{
  margin-top:3px;
  color:var(--muted)!important;
  font-size:.7rem!important;
  line-height:1.25;
}
.filling-draft-amount{
  display:grid;
  grid-template-columns:minmax(0,1fr) 104px;
  align-items:center;
  gap:10px;
  margin:0 10px 10px 64px;
  padding:8px 10px;
  border:1px solid color-mix(in srgb,var(--green) 22%,var(--line));
  border-radius:14px;
  background:rgba(255,255,255,.72);
}
.filling-draft-amount span{
  color:color-mix(in srgb,var(--green) 84%,var(--blue-deep))!important;
  font-size:.66rem!important;
  font-weight:950!important;
  text-transform:uppercase;
}
.filling-draft-amount input{
  min-height:36px;
  padding:0 10px;
  border:1px solid color-mix(in srgb,var(--green) 26%,var(--line));
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  font-weight:950;
  text-align:center;
}
.filling-picker-footer{
  position:sticky;
  bottom:0;
  z-index:4;
  padding-top:8px;
  background:linear-gradient(to bottom,rgba(255,255,255,0),var(--card) 32%);
}
.filling-picker-done{
  min-height:48px;
  border-radius:18px;
}
.meal-food-filter-toggle{
  display:grid;
  grid-template-columns:minmax(0,1fr) 28px;
  align-items:center;
  gap:2px 10px;
  width:100%;
  min-height:48px;
  margin:10px 0 8px;
  padding:8px 11px;
  border:1px solid rgba(102,127,255,.22);
  border-radius:17px;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(239,244,255,.88));
  color:var(--ink);
  box-shadow:0 10px 22px rgba(41,61,102,.07);
  text-align:left;
}
.meal-food-filter-toggle span{
  color:var(--ink);
  font-size:.82rem;
  font-weight:950;
}
.meal-food-filter-toggle small{
  grid-column:1;
  color:var(--muted);
  font-size:.62rem;
  font-weight:900;
}
.meal-food-filter-toggle b{
  grid-column:2;
  grid-row:1 / span 2;
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--blue);
  color:#fff;
  font-size:1rem;
  line-height:1;
}
.meal-food-filter-panel{
  display:grid;
  gap:9px;
  margin:0 0 12px;
}
.outside-diet-filter-toggle{
  margin-top:0!important;
}
.outside-diet-filter-panel{
  margin-bottom:8px!important;
}
.outside-diet-filter-panel .outside-diet-search{
  margin:0!important;
}
.meal-food-filter-panel[hidden]{
  display:none!important;
}
.insert-meal-sheet{
  max-height:calc(100dvh - 24px)!important;
  padding-bottom:18px!important;
}
.insert-meal-sheet #modalBody{
  overflow:visible!important;
}
.insert-meal-sheet .insert-meal-title{
  min-height:118px!important;
  margin-bottom:18px!important;
  padding-top:22px!important;
  padding-bottom:18px!important;
  border-bottom:0!important;
  box-shadow:0 -42px 0 var(--card)!important;
}
.insert-meal-sheet .insert-meal-heading{
  align-items:start!important;
}
.insert-meal-sheet .insert-meal-title p:not(.eyebrow){
  margin-top:8px!important;
  max-width:42ch!important;
  line-height:1.35!important;
}
.insert-meal-sheet .insert-meal-list{
  gap:8px!important;
  margin-top:0!important;
}
.insert-meal-sheet .insert-meal-list .meal-choice{
  min-height:54px!important;
  padding:8px 10px!important;
  border-radius:16px!important;
}
.insert-meal-sheet .insert-meal-list .meal-choice span{
  width:36px!important;
  height:36px!important;
  border-radius:13px!important;
}
.insert-meal-sheet .insert-meal-list .meal-choice b{
  font-size:.86rem!important;
}
.plan-meal-insert-sheet #modalBody{
  overflow-y:auto!important;
}
#modal .sheet.plan-meal-insert-sheet .sheet-close{
  display:grid!important;
}
#modal .sheet.plan-meal-insert-sheet #modalBody>.sheet-title.insert-meal-title{
  padding-top:70px!important;
  padding-right:16px!important;
}
.plan-meal-insert-sheet .insert-meal-done{
  height:44px!important;
  min-height:44px!important;
}
.plan-meal-insert-sheet .meal-choice[aria-pressed="true"]{
  border-color:var(--blue)!important;
  background:var(--blue-soft)!important;
}
.plan-meal-insert-sheet .meal-choice[aria-pressed="true"] i{
  background:var(--blue-deep)!important;
  color:var(--on-primary,#fff)!important;
}
.plan-meal-insert-sheet .meal-choice:focus-visible{
  outline:3px solid var(--blue);
  outline-offset:2px;
}
.meal-log-sheet .meal-log-title{
  min-height:84px!important;
  margin-bottom:18px!important;
  padding-top:22px!important;
  padding-bottom:18px!important;
  border-bottom:0!important;
  box-shadow:0 -42px 0 var(--meal-editor-header-surface)!important;
}
.meal-log-sheet .meal-log-actions{
  margin-top:16px!important;
  margin-bottom:14px!important;
}
.meal-log-sheet{
  width:min(calc(100% - 24px),560px)!important;
  max-height:94dvh!important;
  margin-bottom:8px!important;
  padding:20px 16px calc(18px + var(--safe-bottom))!important;
  border:1px solid color-mix(in srgb,var(--blue) 14%,var(--line))!important;
  border-radius:28px 28px 0 0!important;
  background:var(--meal-editor-sheet-surface)!important;
  box-shadow:0 -22px 54px rgba(41,61,102,.18)!important;
}
.meal-log-panel{
  display:grid;
  gap:12px;
  min-height:0;
}
.meal-log-sheet .meal-log-title{
  position:relative!important;
  top:auto!important;
  z-index:1!important;
  min-height:64px!important;
  margin:-20px -16px 2px!important;
  padding:22px 58px 14px 16px!important;
  border:0!important;
  border-radius:28px 28px 0 0!important;
  background:var(--meal-editor-header-surface)!important;
  box-shadow:0 -42px 0 var(--meal-editor-header-surface),0 12px 24px rgba(41,61,102,.08)!important;
}
.meal-log-sheet .meal-log-title .meal-icon{
  width:44px!important;
  height:44px!important;
  border-radius:16px!important;
}
.meal-log-sheet .meal-log-title h2{
  padding:0!important;
  color:var(--ink)!important;
  font-size:1.12rem!important;
  line-height:1.1!important;
}
.meal-log-sheet .meal-log-title .eyebrow{
  margin:0 0 2px!important;
}
.meal-log-sheet .meal-log-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0 0 2px!important;
}
.meal-log-sheet .meal-log-toggle{
  min-height:42px!important;
  border-radius:999px!important;
  font-size:.78rem!important;
  font-weight:950!important;
}
.meal-log-sheet .meal-log-toggle.ate,
.meal-log-sheet .meal-log-toggle.ate:not(.active){
  border-color:color-mix(in srgb,var(--green) 22%,var(--line))!important;
  background:var(--meal-log-ate-surface)!important;
  color:color-mix(in srgb,var(--green) 70%,var(--ink))!important;
}
.meal-log-sheet .meal-log-toggle.ate.active{
  border-color:color-mix(in srgb,var(--green) 42%,var(--line))!important;
  background:color-mix(in srgb,var(--green) 18%,var(--card))!important;
  color:color-mix(in srgb,var(--green) 86%,#063)!important;
  box-shadow:0 8px 18px rgba(13,148,96,.08)!important;
}
.meal-log-sheet .meal-log-toggle.skipped,
.meal-log-sheet .meal-log-toggle.skipped:not(.active){
  border-color:rgba(247,168,78,.26)!important;
  background:var(--meal-log-skipped-surface)!important;
  color:#814A11!important;
}
.meal-log-sheet .meal-log-toggle.skipped.active{
  border-color:rgba(247,168,78,.42)!important;
  background:#FFE4C4!important;
  color:#6F3A09!important;
  box-shadow:0 8px 18px rgba(247,168,78,.11)!important;
}
.meal-log-sheet .meal-log-list{
  gap:9px!important;
  padding-bottom:8px!important;
}
.meal-log-footer{
  position:sticky;
  right:0;
  bottom:0;
  left:0;
  z-index:25;
  margin:2px -4px calc(-10px - var(--safe-bottom));
  padding:12px 4px calc(12px + var(--safe-bottom));
  border-top:1px solid color-mix(in srgb,var(--blue) 12%,transparent);
  background:linear-gradient(180deg,color-mix(in srgb,var(--meal-editor-sheet-surface) 0%,transparent),var(--meal-editor-sheet-surface) 24%,var(--meal-editor-sheet-surface));
}
.meal-log-footer .primary{
  min-height:50px;
  border-radius:999px;
  box-shadow:0 14px 28px rgba(248,168,78,.18);
}
.meal-log-food-card{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:10px;
  align-items:start;
  min-width:0;
  padding:10px;
  border:1px solid color-mix(in srgb,var(--blue) 10%,var(--line));
  border-radius:17px;
  background:linear-gradient(180deg,var(--meal-log-card-surface),var(--meal-editor-detail-surface));
  box-shadow:none;
}
.meal-log-food-card>.food-image{
  width:38px!important;
  height:38px!important;
  border-radius:14px!important;
}
.meal-log-food-body{
  display:grid;
  gap:7px;
  min-width:0;
}
.meal-log-food-body header{
  display:grid;
  gap:2px;
  min-width:0;
}
.meal-log-food-body b{
  overflow:visible;
  color:var(--ink);
  font-size:.9rem;
  line-height:1.12;
  text-overflow:clip;
  white-space:normal;
  word-break:normal;
  overflow-wrap:break-word;
}
.meal-log-food-body small,
.meal-log-food-body .meal-items span{
  color:var(--muted);
  font-size:.68rem;
  font-weight:850;
  line-height:1.25;
}
.meal-log-amount-field{
  display:grid!important;
  gap:5px!important;
  width:min(118px,100%)!important;
  max-width:118px!important;
  margin-top:0!important;
}
.meal-log-amount-field span{
  color:var(--muted)!important;
  font-size:.58rem!important;
  font-weight:950!important;
  letter-spacing:.065em!important;
  text-transform:uppercase!important;
}
.meal-log-amount-field input{
  width:100%!important;
  min-height:38px!important;
  height:38px!important;
  border-color:color-mix(in srgb,var(--blue) 16%,var(--line))!important;
  border-radius:14px!important;
  background:color-mix(in srgb,var(--blue-soft) 48%,var(--card))!important;
  color:var(--ink)!important;
  font-size:.88rem!important;
  font-weight:950!important;
}
.meal-log-amount-control{
  display:grid;
  gap:5px;
  width:min(270px,100%);
  max-width:100%;
}
.meal-log-amount-control>span{
  color:var(--muted);
  font-size:.58rem;
  font-weight:950;
  letter-spacing:.065em;
  text-transform:uppercase;
}
.meal-log-stepper{
  display:grid;
  grid-template-columns:38px minmax(68px,1fr) 38px minmax(74px,auto);
  align-items:center;
  gap:7px;
  max-width:270px;
}
.meal-log-stepper button{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:1px solid color-mix(in srgb,var(--green) 24%,var(--line));
  border-radius:13px;
  background:color-mix(in srgb,var(--green-soft) 70%,var(--card));
  color:color-mix(in srgb,var(--green) 82%,var(--ink));
  font-size:1.05rem;
  font-weight:950;
  line-height:1;
  box-shadow:0 8px 18px rgba(13,148,96,.07);
}
.meal-log-stepper .meal-measure-button{
  width:auto;
  min-width:74px;
  padding:0 9px;
  font-size:.62rem;
}
.meal-log-stepper input{
  width:100%;
  min-width:0;
  height:38px;
  border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line));
  border-radius:14px;
  background:color-mix(in srgb,var(--blue-soft) 48%,var(--card));
  color:var(--ink);
  font-size:16px;
  font-weight:950;
  text-align:center;
}
.meal-log-stepper input::-webkit-outer-spin-button,
.meal-log-stepper input::-webkit-inner-spin-button{
  margin:0;
  -webkit-appearance:none;
}
.meal-log-stepper input[type=number]{
  -moz-appearance:textfield;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet .meal-log-title{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--meal-editor-sheet-surface)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet .meal-log-title h2,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-food-body b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet .meal-log-title{
  box-shadow:0 -42px 0 var(--meal-editor-header-surface),0 12px 24px rgba(0,0,0,.14)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-food-card{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--meal-editor-detail-surface)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-footer{
  border-color:rgba(139,160,255,.14)!important;
  background:linear-gradient(180deg,rgba(14,23,41,0),var(--meal-editor-sheet-surface) 24%,var(--meal-editor-sheet-surface))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-food-body small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-food-body .meal-items span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-amount-field span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-amount-field input{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--meal-editor-input-surface)!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-amount-control>span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-stepper button{
  border-color:rgba(79,209,139,.28)!important;
  background:rgba(79,209,139,.12)!important;
  color:#D9FFE8!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-stepper input{
  border-color:rgba(139,160,255,.22)!important;
  background:var(--meal-editor-input-surface)!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet .meal-log-toggle.ate,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet .meal-log-toggle.ate:not(.active){
  border-color:rgba(79,209,139,.22)!important;
  background:var(--meal-log-ate-surface)!important;
  color:#B7F4CF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet .meal-log-toggle.ate.active{
  border-color:rgba(79,209,139,.42)!important;
  background:rgba(79,209,139,.16)!important;
  color:#D9FFE8!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet .meal-log-toggle.skipped,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet .meal-log-toggle.skipped:not(.active){
  border-color:rgba(247,168,78,.24)!important;
  background:var(--meal-log-skipped-surface)!important;
  color:#FFDDB1!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet .meal-log-toggle.skipped.active{
  border-color:rgba(247,168,78,.44)!important;
  background:#432817!important;
  color:#FFF0D9!important;
  box-shadow:none!important;
}
.outside-diet-sheet .outside-diet-title{
  margin-bottom:20px!important;
  border-bottom:0!important;
  box-shadow:0 -42px 0 var(--card)!important;
}
.outside-diet-sheet .outside-total-panel{
  margin-top:18px!important;
}
.guided-menu-title{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  align-items:center;
  gap:11px;
  margin:0 44px 12px 0;
  padding:2px 0 12px;
  border-bottom:1px solid color-mix(in srgb,var(--blue) 13%,var(--line));
}
.guided-menu-title>span{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid rgba(242,160,74,.28);
  border-radius:16px;
  background:
    radial-gradient(circle at 35% 30%,rgba(255,255,255,.88),rgba(255,255,255,0) 35%),
    linear-gradient(135deg,color-mix(in srgb,var(--orange) 42%,#fff),color-mix(in srgb,var(--blue) 30%,#fff));
  box-shadow:0 14px 30px rgba(41,61,102,.10);
}
.guided-menu-title>span:before{
  content:"";
  width:22px;
  height:22px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--orange),var(--blue));
  -webkit-mask:url("/assets/logo.svg?v=20260611-2") center/contain no-repeat;
  mask:url("/assets/logo.svg?v=20260611-2") center/contain no-repeat;
}
.guided-menu-title h2{
  padding:0!important;
  color:var(--ink);
  font-size:1.32rem;
  line-height:1.05;
}
.guided-menu-title p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:.82rem;
  font-weight:850;
  line-height:1.25;
}
.guided-menu-title .eyebrow{
  margin:0 0 3px;
  color:var(--orange);
}
/* Meal card notification control */
.today-meal-list .meal-actions.has-reminder{
  grid-template-columns:minmax(0,1fr) minmax(84px,.72fr);
  gap:8px;
}
.today-meal-list .meal-actions.has-reminder :is(.meal-status-tag,.meal-today-notify){
  width:100%;
  min-width:0;
  min-height:44px;
  margin:0;
  padding:0 10px;
  font-size:.72rem;
  font-weight:900;
  line-height:1.15;
}
.today-meal-list .meal-actions .meal-today-notify{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border-radius:999px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  box-shadow:none;
}
.today-meal-list .meal-today-notify svg{
  width:14px;
  height:14px;
  flex:0 0 14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.today-meal-list .meal-today-notify:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:3px;
}
.notify-meal-sheet .notify-sheet-title .eyebrow{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.notify-meal-sheet .notify-scope-badge{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:2px 7px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--blue-soft);
  color:var(--blue-deep);
  font-size:.58rem;
  font-weight:850;
  letter-spacing:.03em;
  line-height:1.2;
}
.notify-meal-sheet .notify-switch-row:has(input:focus-visible) .notify-switch-ui{
  outline:2px solid var(--blue);
  outline-offset:3px;
}
.meal-card .meal-title-stack{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:4px;
  min-width:0;
}
.meal-card .meal-title-tools{
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:max-content;
  max-width:calc(100% - 54px);
  margin:-16px 0 0 54px;
}
.meal-card .meal-title-notify{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  min-width:0;
  min-height:22px;
  margin:0;
  padding:0 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-2);
  color:var(--blue-deep);
  font-size:.68rem;
  font-weight:900;
  line-height:1;
  box-shadow:none;
}
.meal-card .meal-title-notify.on{
  border-color:rgba(91,113,238,.26);
  background:var(--blue-soft);
}
.meal-card .meal-items{
  margin-top:0;
}
.meal-hydration-tip{
  display:grid;
  grid-template-columns:1fr;
  align-items:start;
  gap:3px;
  margin-top:4px;
  padding:8px 10px;
  border:1px solid rgba(82,169,255,.22);
  border-radius:12px;
  background:rgba(82,169,255,.08);
  color:var(--muted);
  font-size:.72rem;
  line-height:1.3;
}
.meal-hydration-tip b{
  display:block;
  color:var(--blue-deep);
  font-size:.68rem;
  font-weight:950;
  text-transform:uppercase;
}
.meal-hydration-tip em{
  display:block;
  color:inherit;
  font-style:normal;
}
.meal-hydration-tip.review{
  border-color:rgba(242,153,74,.32);
  background:rgba(242,153,74,.10);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-hydration-tip{
  border-color:rgba(132,151,255,.30);
  background:rgba(82,169,255,.10);
  color:rgba(235,241,255,.78);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-hydration-tip b{
  color:#dfe6ff;
}
.strategy-safety-note{
  display:grid;
  gap:5px;
  margin:10px 0 0;
  padding:10px 12px;
  border:1px solid rgba(102,127,255,.22);
  border-radius:16px;
  background:rgba(102,127,255,.08);
  color:var(--muted);
  font-size:.76rem;
  line-height:1.4;
}
.strategy-safety-note b{
  color:var(--ink);
  font-size:.72rem;
  font-weight:950;
  text-transform:uppercase;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .strategy-safety-note{
  border-color:rgba(132,151,255,.30);
  background:rgba(102,127,255,.12);
  color:rgba(235,241,255,.78);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .strategy-safety-note b{
  color:#fff;
}

/* Food filters: selected chips use a soft Osyra orange fill instead of a heavy outline. */
.food-filter-panel .chip.active{
  border-color:rgba(242,160,74,.34)!important;
  background:rgba(242,160,74,.16)!important;
  color:#7A4118!important;
  box-shadow:inset 0 0 0 1px rgba(242,160,74,.10)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-filter-panel .chip.active{
  border-color:rgba(255,178,127,.38)!important;
  background:rgba(255,159,113,.18)!important;
  color:#FFE0C9!important;
}

/* Profile editor close button: keep the X small, centered and calm. */
.profile-drawer .drawer-close{
  position:relative;
  flex:0 0 auto;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  padding:0!important;
  border:1px solid rgba(132,146,176,.24)!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.88)!important;
  color:transparent!important;
  box-shadow:0 10px 24px rgba(41,61,102,.12)!important;
  line-height:0!important;
}
.profile-drawer .drawer-close:before,
.profile-drawer .drawer-close:after{
  content:""!important;
  position:absolute;
  top:50%;
  left:50%;
  width:13px;
  height:2px;
  border-radius:999px;
  background:var(--blue-deep);
  transform:translate(-50%,-50%) rotate(45deg);
}
.profile-drawer .drawer-close:after{
  transform:translate(-50%,-50%) rotate(-45deg);
}
.profile-drawer .drawer-close:hover,
.profile-drawer .drawer-close:focus-visible{
  border-color:rgba(91,113,238,.32)!important;
  background:#fff!important;
  box-shadow:0 12px 28px rgba(41,61,102,.16),0 0 0 4px rgba(91,113,238,.10)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .drawer-close{
  border-color:rgba(139,160,255,.20)!important;
  background:rgba(23,32,51,.92)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.24)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .drawer-close:before,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .drawer-close:after{
  background:#F5F7FF;
}

/* Activity intensity cards: selected states get an explicit check for accessibility. */
.profile-drawer .activity-day-card .activity-day-icon{
  position:relative!important;
  overflow:hidden!important;
}
.profile-drawer .activity-day-card.is-selected .activity-day-icon{
  background:var(--activity-label,var(--blue))!important;
  color:#fff!important;
  font-size:0!important;
  box-shadow:0 4px 10px color-mix(in srgb,var(--activity-label,var(--blue)) 24%,transparent)!important;
}
.profile-drawer .activity-day-card.is-selected .activity-day-icon:before{
  content:"\2713";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  color:#fff;
  font-size:.82rem;
  font-weight:950;
  line-height:1;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .activity-day-card.is-selected .activity-day-icon{
  background:color-mix(in srgb,var(--activity-label,#8BA0FF) 78%,#F7F9FF)!important;
  color:#071225!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-drawer .activity-day-card.is-selected .activity-day-icon:before{
  color:#071225;
}

/* Cozinha: ingredient choices are compact blocks in the page flow, not a horizontal rail. */
.chef-pantry .chef-filter-actions .filter-toggle{
  justify-content:space-between!important;
}
.chef-pantry .chef-filter-panel{
  border:1px solid var(--line)!important;
  border-radius:18px!important;
  background:var(--recipe-card-surface)!important;
}
.chef-pantry .chef-group-rail{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-start!important;
  gap:7px!important;
  overflow:visible!important;
}
.chef-pantry .chef-group-rail button{
  min-height:34px!important;
  padding:4px 10px 4px 5px!important;
  border-radius:999px!important;
}
.chef-pantry .chef-group-rail button.active{
  border-color:rgba(255,159,113,.42)!important;
  background:var(--food-choice-active-surface)!important;
  color:var(--blue-deep)!important;
}
.chef-pantry .chef-group-rail button.active .chef-filter-icon{
  border-color:rgba(255,159,113,.38)!important;
  background:var(--food-choice-active-surface)!important;
  box-shadow:none!important;
}
.chef-food-grid.chef-food-blocks{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:8px;
  min-height:0;
  max-height:none;
  overflow:visible;
  padding:2px 0;
  scroll-snap-type:none;
  touch-action:auto;
}
.chef-food-grid.chef-food-blocks .chef-food-card{
  display:inline-grid;
  grid-template-columns:26px minmax(0,1fr);
  align-items:center;
  justify-items:start;
  gap:7px;
  width:auto;
  max-width:100%;
  min-height:38px;
  padding:5px 10px 5px 6px;
  border-radius:999px;
  text-align:left;
  scroll-snap-align:none;
}
.chef-food-grid.chef-food-blocks .chef-food-card .food-image{
  width:26px;
  height:26px;
}
.chef-food-grid.chef-food-blocks .chef-food-card b{
  display:block!important;
  overflow:visible!important;
  font-size:.72rem;
  line-height:1.15;
  white-space:normal!important;
  -webkit-line-clamp:unset!important;
}
.chef-food-grid.chef-food-blocks .chef-food-card.selected{
  border-color:rgba(255,159,113,.42)!important;
  background:var(--food-choice-active-surface)!important;
}
.chef-food-grid.chef-food-blocks .chef-empty{
  width:100%;
  padding:8px 2px;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-pantry .chef-filter-panel{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--recipe-card-surface)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-pantry .chef-group-rail button.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chef-food-grid.chef-food-blocks .chef-food-card.selected{
  border-color:rgba(255,178,127,.36)!important;
  background:var(--food-choice-active-surface)!important;
  color:#F7F9FF!important;
}

/* Profile identity: no name ellipsis, and Dieta uses a fixed mantra instead of the greeting. */
.home-profile-summary .profile-person strong{
  max-width:100%!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.diet-profile-summary .profile-person:before,
.diet-profile-person:before{
  display:none!important;
  content:none!important;
}
.diet-profile-mantra{
  display:grid!important;
  grid-column:2!important;
  grid-row:1/3!important;
  align-self:center!important;
  align-content:center!important;
  gap:3px!important;
  width:min(112px,100%)!important;
  max-width:112px!important;
  margin-top:0!important;
  color:var(--ink)!important;
  font-size:.86rem!important;
  line-height:1.08!important;
  text-align:left!important;
  overflow:hidden!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
.diet-profile-mantra .mantra-kicker{
  color:var(--muted)!important;
  font-size:.62rem!important;
  font-weight:500!important;
  line-height:1.05!important;
  letter-spacing:0!important;
  text-transform:none!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
.diet-profile-mantra .mantra-main{
  display:block!important;
  color:var(--ink)!important;
  font-size:.82rem!important;
  font-weight:950!important;
  line-height:1.08!important;
  letter-spacing:0!important;
  text-transform:none!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
.diet-profile-mantra .mantra-link{
  color:inherit!important;
  text-decoration:none!important;
  border-bottom:1px solid rgba(102,127,255,.34)!important;
}
.diet-profile-mantra .mantra-link:hover{
  color:var(--accent,#667fff)!important;
  border-bottom-color:currentColor!important;
}
@media(max-width:430px){
  .diet-profile-mantra{
    width:min(98px,100%)!important;
    max-width:98px!important;
  }
  .diet-profile-mantra .mantra-kicker{
    font-size:.58rem!important;
    letter-spacing:.055em!important;
  }
  .diet-profile-mantra .mantra-main{
    font-size:.78rem!important;
  }
}

/* Diet profile top: independent syntax mirroring Agora's profile rhythm. */
#planScreen .plan-preview-hero .diet-profile-summary{
  display:grid!important;
  grid-template-columns:238px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  box-sizing:border-box;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0 0 10px!important;
  overflow:visible!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  scroll-snap-type:none!important;
}
#planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person{
  display:grid!important;
  grid-template-columns:118px minmax(108px,1fr)!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  justify-items:start!important;
  column-gap:8px!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:visible!important;
  text-align:left!important;
}
#planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person .hero-avatar{
  grid-row:1/3!important;
  width:110px!important;
  height:110px!important;
}
#planScreen .plan-preview-hero .diet-profile-summary .diet-profile-mantra{
  display:grid!important;
  grid-column:2!important;
  grid-row:1/3!important;
  align-self:center!important;
  align-content:center!important;
  gap:3px!important;
  width:min(112px,100%)!important;
  max-width:112px!important;
  margin-top:0!important;
  overflow:hidden!important;
  color:var(--ink)!important;
  font-size:.86rem!important;
  line-height:1.08!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
#planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"]{
  display:flex!important;
  grid-template-columns:none!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  gap:10px!important;
  box-sizing:border-box;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:2px 10px 8px 0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain;
  mask-image:none!important;
  scroll-padding-left:0!important;
  scroll-snap-type:x mandatory!important;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
#planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"]::-webkit-scrollbar{
  display:none!important;
}
#planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
  flex:0 0 clamp(150px,41vw,176px)!important;
  width:clamp(150px,41vw,176px)!important;
  min-width:clamp(150px,41vw,176px)!important;
  max-width:176px!important;
  min-height:100px!important;
  scroll-snap-align:start!important;
}
#planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel + .carousel-dots.profile-carousel-dots{
  grid-column:2!important;
  justify-self:center!important;
}
@media(max-width:430px){
  #planScreen .plan-preview-hero .diet-profile-summary{
    grid-template-columns:198px minmax(0,1fr)!important;
    gap:8px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person{
    grid-template-columns:104px minmax(82px,1fr)!important;
    column-gap:6px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person .hero-avatar{
    width:100px!important;
    height:100px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-mantra{
    width:min(98px,100%)!important;
    max-width:98px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
    flex-basis:clamp(122px,calc(100vw - 236px),166px)!important;
    width:clamp(122px,calc(100vw - 236px),166px)!important;
    min-width:clamp(122px,calc(100vw - 236px),166px)!important;
    max-width:166px!important;
  }
}
@media(max-width:374px){
  #planScreen .plan-preview-hero .diet-profile-summary{
    grid-template-columns:186px minmax(0,1fr)!important;
    gap:7px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person{
    grid-template-columns:96px minmax(78px,1fr)!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person .hero-avatar{
    width:92px!important;
    height:92px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
    flex-basis:clamp(118px,calc(100vw - 222px),166px)!important;
    width:clamp(118px,calc(100vw - 222px),166px)!important;
    min-width:clamp(118px,calc(100vw - 222px),166px)!important;
  }
}
@media(min-width:1100px){
  #planScreen .plan-preview-hero .diet-profile-summary{
    grid-template-columns:minmax(220px,280px) minmax(0,1fr)!important;
    gap:18px!important;
    padding-bottom:0!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person{
    grid-template-columns:92px minmax(0,1fr)!important;
    column-gap:14px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person .hero-avatar{
    width:86px!important;
    height:86px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-mantra{
    max-width:none!important;
    width:auto!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"]{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(156px,1fr))!important;
    gap:14px!important;
    overflow:visible!important;
    padding:0!important;
    scroll-snap-type:none!important;
    grid-auto-flow:row!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
    flex:initial!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    min-height:96px!important;
    scroll-snap-align:unset!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel + .carousel-dots.profile-carousel-dots{
    display:none!important;
  }
}

/* Activity checks: right-aligned accessibility indicator, same language as selected meal chips. */
.profile-drawer .activity-day-card,
.profile-drawer .activity-day-card.compact{
  grid-template-columns:minmax(0,1fr) 24px!important;
}
.profile-drawer .activity-day-card .activity-day-copy{
  grid-column:1;
  grid-row:1;
}
.profile-drawer .activity-day-card .activity-day-icon{
  grid-column:2;
  grid-row:1;
  justify-self:end;
  width:24px!important;
  height:24px!important;
}
.profile-drawer .activity-day-card.is-selected .activity-day-icon:before{
  font-size:.8rem!important;
  transform:none;
}

/* Add/Edit food sheet: polished header with an independent close affordance. */
.modal[data-modal-kind="food-form"] .sheet-close{
  display:grid!important;
}
.food-form-title{
  position:relative;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:start;
  justify-items:center;
  gap:10px;
  margin:0 46px 12px 0;
  padding:4px 0 14px!important;
  border-bottom:1px solid color-mix(in srgb,var(--blue) 13%,var(--line));
  background:transparent!important;
  text-align:center;
}
.food-form-sheet .food-form-title{
  position:relative!important;
  top:auto!important;
  z-index:1!important;
  min-height:70px!important;
  margin:-18px -16px 12px!important;
  padding:20px 62px 16px!important;
  border-radius:30px 30px 0 0!important;
  border-bottom:1px solid color-mix(in srgb,var(--blue) 13%,var(--line))!important;
  background:var(--card)!important;
  box-shadow:0 -42px 0 var(--card),0 12px 24px rgba(41,61,102,.08)!important;
  backdrop-filter:blur(12px);
}
.food-form-sheet .sheet-close{
  top:13px!important;
  right:13px!important;
  width:36px!important;
  height:36px!important;
  border:1px solid color-mix(in srgb,var(--blue) 20%,var(--line))!important;
  background:rgba(255,255,255,.94)!important;
  color:var(--blue-deep)!important;
  box-shadow:0 12px 26px rgba(41,61,102,.12)!important;
}
.food-form-title-main{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  justify-items:center;
  min-width:0;
  width:100%;
}
.food-form-title-icon{
  position:absolute;
  top:18px;
  left:16px;
  display:grid;
  place-items:center;
  overflow:hidden;
  width:44px;
  height:44px;
  border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line));
  border-radius:16px;
  background:
    radial-gradient(circle at 42% 38%,rgba(238,155,74,.34),transparent 33%),
    linear-gradient(135deg,rgba(238,244,255,.96),rgba(255,242,225,.84));
  box-shadow:0 12px 24px rgba(41,61,102,.10);
}
.food-form-title-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.food-form-title h2{
  padding:0!important;
  color:var(--ink);
  font-size:1.1rem;
  line-height:1.08;
}
.food-form-title .modal-top-actions{
  display:none!important;
}
.food-form-footer{
  position:sticky;
  bottom:-1px;
  z-index:30;
  display:grid;
  margin:8px -2px -2px;
  padding:12px 2px calc(2px + var(--safe-bottom));
  background:linear-gradient(to bottom,rgba(255,255,255,0),var(--card) 24%);
}
.food-form-footer button{
  min-height:48px;
  border-radius:999px;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-form-title{
  border-bottom-color:rgba(139,160,255,.18);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-form-title h2{
  color:#f7f9ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-form-title-icon{
  border-color:rgba(139,160,255,.22);
  background:linear-gradient(135deg,rgba(25,44,78,.95),rgba(39,57,93,.88));
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-form-footer{
  background:linear-gradient(to bottom,rgba(14,23,41,0),#0E1729 24%);
}
.food-form-title .eyebrow,
.food-detail-title .eyebrow{
  margin:0 0 4px;
  color:var(--orange);
  font-size:.62rem;
  letter-spacing:.08em;
}
.food-smart-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:10px;
  border:1px solid color-mix(in srgb,var(--blue) 14%,var(--line));
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(246,249,255,.84));
}
.food-smart-fields label{
  min-width:0;
}
.food-smart-fields label:first-child{
  grid-column:1/-1;
}
.food-smart-fields select{
  min-height:40px;
  padding:0 34px 0 12px;
  border-radius:14px;
  background-color:#fff;
  color:var(--blue-deep);
  font-size:.78rem;
  font-weight:900;
}
.food-smart-fields .food-origin-field[hidden]{
  display:none!important;
}
/* Keep food-form carets inset and centered without changing the native select. */
#foodForm label:has(> select:not([multiple]):not([size])) > select{
  grid-area:2 / 1;
  appearance:none;
  -webkit-appearance:none;
  padding-inline-end:40px;
}
#foodForm label:has(> select:not([multiple]):not([size]))::after{
  content:"";
  grid-area:2 / 1;
  z-index:1;
  align-self:center;
  justify-self:end;
  width:8px;
  height:8px;
  margin-inline-end:16px;
  border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  transform:translateY(-2px) rotate(45deg);
  pointer-events:none;
}
@media(max-width:430px){
  .food-form-sheet .food-smart-fields{
    grid-template-columns:1fr!important;
    gap:7px;
    padding:9px;
  }
  .food-form-sheet .food-smart-fields label{
    grid-column:1/-1!important;
  }
  .food-form-sheet .food-smart-fields label>span{
    overflow:visible;
    text-overflow:clip;
    white-space:normal;
  }
  .food-form-sheet .food-smart-fields select{
    min-height:44px;
    padding-right:30px;
    padding-left:12px;
    font-size:.84rem;
    line-height:1.15;
  }
}
.food-nutrition-block{
  display:grid;
  gap:9px;
  padding:11px;
  border:1px solid color-mix(in srgb,var(--blue) 15%,var(--line));
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(246,249,255,.82));
}
.food-nutrition-block .food-reference-title{
  margin:0;
}
.food-nutrition-block .food-reference-title h3{
  color:var(--blue-deep);
  font-size:.9rem;
  line-height:1.15;
}
.food-nutrition-block .reference-fields,
.food-nutrition-block .nutrition-facts-fields{
  padding:0;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.food-nutrition-block .reference-fields{
  display:grid;
  gap:8px;
}
.food-nutrition-block .nutrition-facts-fields{
  display:grid;
  gap:10px;
  padding-top:9px;
  border-top:1px solid color-mix(in srgb,var(--blue) 12%,var(--line))!important;
}
.food-nutrition-block .nutrition-facts-fields legend{
  padding:0;
}
.food-nutrition-block .nutrition-tier-basic,
.food-nutrition-block .nutrition-tier-intermediate{
  border-radius:15px;
  background:#fff;
}
.food-nutrition-block .nutrition-tier-basic{
  padding:10px;
  border:1px solid color-mix(in srgb,var(--blue) 12%,var(--line));
}
.food-nutrition-block .nutrition-tier-intermediate{
  border:1px solid color-mix(in srgb,var(--blue) 12%,var(--line));
  overflow:hidden;
}
#foodForm .nutrition-tier:is(.nutrition-tier-intermediate,.food-portion-policy,.food-contract-details):not([open]){
  row-gap:0;
}
#foodForm .nutrition-tier:is(.nutrition-tier-intermediate,.food-portion-policy,.food-contract-details):not([open])>summary{
  padding-block:5px;
}
.food-nutrition-block .nutrition-tier-intermediate:not([open]) .nutrition-facts-body{
  display:none;
}
.food-form-sheet .food-value-field{
  margin-top:0;
}
.food-card{
  align-content:start;
  min-height:0!important;
  padding:11px!important;
  border-radius:18px!important;
}
.food-card-main{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  width:100%;
  padding:0;
  text-align:left;
}
.food-card-main .food-image{
  width:42px;
  height:42px;
  border-radius:15px;
}
.food-card .grow b{
  font-size:.88rem;
}
.food-card .grow span,
.food-card-use{
  display:block;
  overflow:hidden;
  color:var(--muted);
  font-size:.69rem;
  font-weight:850;
  line-height:1.22;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.food-card-use{
  margin-top:2px;
  color:var(--blue-deep);
}
.food-card-protected{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin-top:3px;
  padding:2px 7px;
  border:1px solid rgba(247,166,83,.35);
  border-radius:999px;
  background:rgba(255,184,107,.16);
  color:#8A5A14;
  font-size:.61rem;
  font-style:normal;
  font-weight:950;
  line-height:1.15;
  white-space:nowrap;
}
.food-card-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
}
.food-card-metrics span{
  display:grid;
  place-items:center;
  min-width:0;
  min-height:44px;
  padding:5px 3px;
  border:1px solid color-mix(in srgb,var(--blue) 11%,var(--line));
  border-radius:14px;
  background:var(--surface-2);
  text-align:center;
}
.food-card-metrics b{
  overflow:hidden;
  max-width:100%;
  color:var(--ink);
  font-size:.76rem;
  line-height:1;
  text-overflow:ellipsis;
}
.food-card-metrics small{
  margin-top:3px;
  color:var(--muted);
  font-size:.54rem;
  font-weight:950;
  letter-spacing:.02em;
  line-height:1;
  text-transform:uppercase;
}
.food-card-tags,
.food-detail-summary{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  min-width:0;
}
.food-semantic-chip{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  min-height:27px;
  padding:5px 9px;
  border:1px solid color-mix(in srgb,var(--blue) 14%,var(--line));
  border-radius:999px;
  background:#fff;
  color:var(--blue-deep);
  font-size:.62rem;
  font-weight:950;
  line-height:1;
}
.food-semantic-chip.tone-1{
  border-color:color-mix(in srgb,var(--orange) 24%,var(--line));
  background:color-mix(in srgb,var(--orange) 10%,#fff);
  color:#9a5a1e;
}
.food-semantic-chip.tone-2{
  border-color:color-mix(in srgb,var(--green) 24%,var(--line));
  background:color-mix(in srgb,var(--green) 10%,#fff);
  color:#2f7650;
}
.food-detail-sheet{
  background:var(--card)!important;
  width:min(calc(100% - 24px),520px)!important;
  max-height:94dvh!important;
  margin-bottom:8px!important;
  padding:20px 16px calc(18px + var(--safe-bottom))!important;
  border:1px solid color-mix(in srgb,var(--blue) 14%,var(--line))!important;
  border-radius:28px 28px 0 0!important;
}
.food-detail-modal{
  display:grid;
  gap:12px;
  min-height:0;
}
.food-detail-title{
  margin:-20px -16px 14px!important;
  min-height:92px!important;
  padding:24px 58px 20px 16px!important;
  border-bottom:0!important;
  border-radius:28px 28px 0 0!important;
  box-shadow:0 -42px 0 var(--card),0 8px 18px rgba(41,61,102,.06)!important;
  background:var(--card)!important;
}
.food-detail-sheet .food-detail-title{
  background:var(--card)!important;
}
.food-detail-title-main{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  align-items:center;
  gap:12px;
  min-width:0;
}
.food-detail-title-icon{
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  width:48px;
  height:48px;
  border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line));
  border-radius:17px;
  background:
    radial-gradient(circle at 42% 38%,rgba(238,155,74,.34),transparent 33%),
    linear-gradient(135deg,rgba(238,244,255,.96),rgba(255,242,225,.84));
  box-shadow:0 12px 24px rgba(41,61,102,.10);
}
.food-detail-title-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.food-detail-title h2{
  padding:0!important;
  overflow:hidden;
  color:var(--ink);
  font-size:1.12rem;
  line-height:1.08;
  text-overflow:ellipsis;
}
.food-detail-summary{
  margin-top:2px;
}
.food-detail-block-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.food-detail-block-grid article{
  display:grid;
  gap:4px;
  min-height:58px;
  padding:10px;
  border:1px solid color-mix(in srgb,var(--blue) 12%,var(--line));
  border-radius:16px;
  background:#fff;
}
.food-detail-block-grid span,
.food-detail-section h3{
  color:var(--muted);
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.food-detail-block-grid b{
  color:var(--ink);
  font-size:.86rem;
  line-height:1.15;
}
.food-detail-section{
  display:grid;
  gap:8px;
}
.food-detail-meals{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.food-detail-meals span{
  min-height:30px;
  padding:7px 10px;
  border:1px solid color-mix(in srgb,var(--blue) 14%,var(--line));
  border-radius:999px;
  background:#fff;
  color:var(--blue-deep);
  font-size:.68rem;
  font-weight:900;
}
.food-detail-footer{
  position:sticky;
  bottom:-1px;
  z-index:30;
  display:grid;
  margin:6px -2px -2px;
  padding:12px 2px calc(2px + var(--safe-bottom));
  background:linear-gradient(to bottom,rgba(255,255,255,0),var(--card) 24%);
}
.food-detail-footer button{
  min-height:48px;
  border-radius:999px;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-smart-fields,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-nutrition-block,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-card-metrics span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-detail-block-grid article,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-detail-meals span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-semantic-chip{
  border-color:rgba(139,160,255,.18);
  background:rgba(18,34,61,.86);
  color:#f7f9ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-smart-fields select{
  background:#12223d;
  color:#f7f9ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-nutrition-block .nutrition-tier-basic,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-nutrition-block .nutrition-tier-intermediate{
  border-color:rgba(139,160,255,.18);
  background:rgba(18,34,61,.92);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-nutrition-block .food-reference-title h3{
  color:#f7f9ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-card-use,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-detail-meals span{
  color:#b9c5e4;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-card-protected{
  border-color:rgba(247,166,83,.38);
  background:rgba(247,166,83,.14);
  color:#FFD99E;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-card-metrics b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-detail-title h2,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-detail-block-grid b{
  color:#f7f9ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-detail-sheet,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-detail-title{
  border-color:rgba(139,160,255,.18)!important;
  background:#0E1729!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-detail-title{
  box-shadow:0 -42px 0 #0E1729,0 12px 24px rgba(0,0,0,.14)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-detail-title-icon{
  border-color:rgba(139,160,255,.22);
  background:linear-gradient(135deg,rgba(25,44,78,.95),rgba(39,57,93,.88));
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-detail-footer{
  background:linear-gradient(to bottom,rgba(14,23,41,0),#0E1729 24%);
}

/* Profile meals final pass: match activity-card proportions, preserving meal assets. */
#profileForm #profileMeals .meal-option{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr) 24px!important;
  min-height:48px!important;
  padding:8px 9px!important;
  gap:7px!important;
}
#profileForm #profileMeals .meal-option .meal-option-icon{
  display:inline-grid!important;
  grid-column:1!important;
  place-items:center!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  border-radius:999px!important;
  background:rgba(102,127,255,.08)!important;
  color:inherit!important;
  font-size:.82rem!important;
  line-height:1!important;
}
#profileForm #profileMeals .meal-option:has(input:checked):after,
#profileForm #profileMeals .meal-option:after{
  grid-column:3!important;
  justify-self:end!important;
  margin-left:0!important;
  width:24px!important;
  height:24px!important;
  flex:0 0 24px!important;
  font-size:.8rem!important;
  transform:none!important;
}
#profileForm #profileMeals .meal-option:not(:has(input:checked)):after{
  content:"";
  background:#EEF3FF!important;
  color:#536BED!important;
}
#profileForm #profileMeals .meal-option b{
  grid-column:2!important;
  min-width:0!important;
}

.chart-goal-change-mark line{
  stroke:var(--blue-deep);
  stroke-width:2;
  stroke-dasharray:3 6;
  opacity:.58;
}
.goal-change-legend i{
  width:2px!important;
  height:14px!important;
  border-radius:999px!important;
  background:var(--blue-deep)!important;
  opacity:.72;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chart-goal-change-mark line{
  stroke:#8BA0FF;
  opacity:.7;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .goal-change-legend i{
  background:#8BA0FF!important;
}

#planScreen .plan-primary-actions{
  margin:14px 0 4px!important;
}
@media(max-width:430px){
  #planScreen .plan-primary-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  #planScreen .plan-primary-actions button{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:48px!important;
    padding:7px 10px!important;
    font-size:.76rem!important;
    line-height:1.15!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
}

/* Modal close behavior: visible at rest/up-scroll, hidden while scrolling down. */
.modal .sheet-close{
  transition:opacity .18s ease,transform .18s ease,box-shadow .18s ease!important;
  will-change:opacity,transform;
}
.modal.modal-close-hidden .sheet-close{
  opacity:0!important;
  transform:translateY(-10px) scale(.92)!important;
  pointer-events:none!important;
}

/* Outside-diet modal keeps its header in the document flow; only the close button reacts to scroll direction. */
.outside-diet-sheet .outside-diet-title{
  position:relative!important;
  top:auto!important;
  z-index:1!important;
}

.schedule-days button.has-events{
  border-color:color-mix(in srgb,var(--orange) 32%,var(--line));
}
.schedule-calendar.compact .schedule-days button.has-events{
  background:linear-gradient(180deg,#fff,var(--peach-soft));
}
.schedule-calendar.compact .schedule-days button i{
  right:7px;
  bottom:7px;
  min-width:7px;
  width:7px;
  height:7px;
  padding:0;
  color:transparent;
  font-size:0;
}

/* Planning save slots */
.storage-confirm-sheet,
.storage-slots-sheet{
  width:min(calc(100% - 28px),460px);
  border-radius:30px 30px 0 0;
}
.storage-confirm-sheet .sheet-close,
.storage-slots-sheet .sheet-close{
  display:grid!important;
  place-items:center!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  border:1px solid rgba(94,124,246,.18)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--blue-deep)!important;
  box-shadow:0 12px 26px rgba(41,61,102,.14)!important;
  font-size:0!important;
  line-height:1!important;
}
.storage-confirm-sheet .sheet-close:before,
.storage-slots-sheet .sheet-close:before{
  content:"×";
  display:block;
  color:inherit;
  font-size:1.05rem;
  font-weight:900;
  line-height:1;
  transform:translateY(-1px);
}
.storage-save-card,
.storage-slots-card{
  display:grid;
  gap:12px;
  padding:4px 2px 0;
}
.storage-save-card h2,
.storage-slots-card h2{
  padding-right:44px;
  color:var(--blue-deep);
  font-size:1.2rem;
  line-height:1.1;
}
.storage-save-card .muted,
.storage-slots-card .muted{
  max-width:35rem;
  margin:0;
  color:var(--muted);
  font-size:.84rem;
  line-height:1.45;
}
.storage-name-field{
  display:grid;
  gap:7px;
  margin-top:4px;
}
.storage-name-field span,
.storage-period-preview span{
  color:var(--muted);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.storage-name-field input{
  width:100%;
  min-height:48px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:17px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:16px;
  font-weight:800;
  line-height:1.2;
  box-shadow:0 10px 24px rgba(41,61,102,.05);
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
.storage-period-preview{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:48px;
  padding:10px 13px;
  border:1px solid rgba(94,124,246,.16);
  border-radius:17px;
  background:linear-gradient(180deg,#F8FAFF,#EEF3FF);
}
.storage-period-preview b{
  color:var(--blue-deep);
  font-size:.9rem;
  text-align:right;
}
.storage-confirm-actions{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:9px;
}
.storage-confirm-actions .soft,
.storage-confirm-actions .primary{
  min-height:46px;
  border-radius:999px;
  font-size:.82rem;
  font-weight:900;
}
.storage-confirm-actions .primary{
  background:var(--blue-deep);
  color:#fff;
  box-shadow:0 12px 24px rgba(47,68,112,.12);
}
.storage-confirm-card.tone-danger .storage-confirm-actions .primary{
  background:#D6793A;
  color:#fff;
}
.snapshot-list{
  display:grid;
  gap:9px;
  margin-top:2px;
}
.snapshot-choice{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:2px 12px;
  align-items:center;
  min-height:72px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:19px;
  background:#fff;
  color:var(--ink);
  text-align:left;
  box-shadow:0 12px 28px rgba(41,61,102,.055);
}
.snapshot-choice span{
  color:var(--muted);
  font-size:.66rem;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.snapshot-choice b{
  grid-column:1;
  min-width:0;
  color:var(--blue-deep);
  font-size:1rem;
  line-height:1.15;
}
.snapshot-choice small{
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
  padding:7px 10px;
  border-radius:999px;
  background:var(--blue-soft);
  color:var(--blue-deep);
  font-size:.69rem;
  font-weight:900;
  white-space:nowrap;
}
.snapshot-choice.current{
  border-color:rgba(94,124,246,.32);
  background:linear-gradient(180deg,#F7FAFF,#EEF3FF);
}
.snapshot-choice.selected{
  border-color:rgba(94,124,246,.55)!important;
  background:linear-gradient(180deg,#EEF3FF,#E5ECFF)!important;
  box-shadow:0 14px 30px rgba(94,124,246,.13)!important;
}
.snapshot-choice.selected span:after{
  content:" selecionado";
  color:var(--blue);
}
.storage-slots-sheet{
  width:min(calc(100% - 28px),560px);
}
.storage-slots-card{
  gap:14px;
  padding:6px 2px 2px;
}
.storage-slots-card>.eyebrow{
  width:max-content;
  max-width:100%;
  margin:0;
  padding:7px 10px;
  border:1px solid rgba(94,124,246,.14);
  border-radius:999px;
  background:#F5F7FF;
  color:var(--blue-deep);
  font-size:.64rem;
  font-weight:950;
  letter-spacing:.06em;
}
.storage-slots-card h2{
  max-width:18rem;
  padding-right:48px;
  font-size:1.34rem;
  letter-spacing:0;
}
.storage-slots-card .muted{
  font-size:.82rem;
  line-height:1.48;
}
.plan-save-status{
  position:relative;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px 12px;
  margin:2px 0 0;
  padding:13px 14px 13px 16px;
  overflow:hidden;
  border-color:rgba(94,124,246,.18);
  border-radius:20px;
  background:linear-gradient(135deg,#F9FBFF,#EFF4FF);
  box-shadow:0 12px 26px rgba(41,61,102,.055);
}
.plan-save-status:before{
  position:absolute;
  top:12px;
  bottom:12px;
  left:0;
  width:4px;
  border-radius:0 999px 999px 0;
  background:var(--blue);
  content:"";
}
.plan-save-status b{
  min-width:0;
  overflow:hidden;
  color:var(--blue-deep);
  font-size:.9rem;
  line-height:1.22;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.plan-save-status span{
  justify-self:end;
  padding:6px 9px;
  border-radius:999px;
  background:#fff;
  color:var(--blue-deep);
  font-size:.63rem;
  letter-spacing:.05em;
  box-shadow:0 8px 18px rgba(41,61,102,.055);
}
.plan-slot-list{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:0;
}
.plan-save-slot-list{
  align-items:stretch;
}
.snapshot-choice.plan-slot-card{
  position:relative;
  display:grid;
  grid-template-columns:1fr;
  align-items:stretch;
  gap:10px;
  min-height:0;
  padding:14px;
  overflow:hidden;
  border-color:rgba(47,68,112,.1);
  border-radius:22px;
  background:linear-gradient(180deg,#fff,#F8FAFF);
  box-shadow:0 14px 30px rgba(41,61,102,.075);
}
button.snapshot-choice.plan-slot-card{
  appearance:none;
  cursor:pointer;
  font:inherit;
  text-align:left;
}
.snapshot-choice.plan-slot-card:before{
  position:absolute;
  top:0;
  right:0;
  left:0;
  height:3px;
  background:linear-gradient(90deg,var(--blue),rgba(94,124,246,.18));
  content:"";
}
.snapshot-choice.plan-slot-card.current{
  border-color:rgba(94,124,246,.3);
  background:linear-gradient(180deg,#F7FAFF,#EEF4FF);
}
.snapshot-choice.plan-slot-card.selected{
  border-color:rgba(13,148,96,.34)!important;
  background:linear-gradient(180deg,#F5FFF9,#ECF9F1)!important;
  box-shadow:0 16px 32px rgba(13,148,96,.12)!important;
}
.snapshot-choice.plan-slot-card.selected:before{
  background:linear-gradient(90deg,var(--green),rgba(13,148,96,.18));
}
.snapshot-choice.plan-slot-card.empty{
  border-style:dashed;
  border-color:rgba(47,68,112,.15);
  background:linear-gradient(180deg,#fff,#FAFBFF);
  box-shadow:0 10px 22px rgba(41,61,102,.04);
}
.plan-manager-card .snapshot-choice.plan-slot-card.empty .plan-slot-meta{
  display:block;
}
.plan-manager-card .snapshot-choice.plan-slot-card.empty .plan-slot-meta small{
  display:block;
  width:100%;
  min-height:0;
  padding:8px 10px;
  border-radius:12px;
  line-height:1.18;
  text-align:left;
}
.snapshot-choice.plan-slot-card.empty:before{
  background:linear-gradient(90deg,rgba(47,68,112,.22),rgba(47,68,112,.06));
}
.plan-slot-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
.plan-slot-head span{
  min-width:0;
  overflow:hidden;
  color:var(--muted);
  font-size:.66rem;
  font-weight:950;
  letter-spacing:.07em;
  line-height:1.1;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}
.plan-slot-head em{
  flex:0 0 auto;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(94,124,246,.1);
  color:var(--blue-deep);
  font-size:.61rem;
  font-style:normal;
  font-weight:950;
  letter-spacing:.04em;
  line-height:1;
  text-transform:uppercase;
}
.snapshot-choice.plan-slot-card.current .plan-slot-head em{
  background:var(--blue);
  color:#fff;
}
.snapshot-choice.plan-slot-card.selected .plan-slot-head em{
  background:var(--green);
  color:#fff;
}
.snapshot-choice.plan-slot-card>b{
  grid-column:auto;
  min-width:0;
  color:var(--ink);
  font-size:1rem;
  line-height:1.22;
  overflow-wrap:anywhere;
}
.plan-manager-slot-list .snapshot-choice.plan-slot-card{
  gap:9px;
}
.plan-manager-slot-list,
.plan-load-card .plan-slot-list{
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.plan-manager-slot-list::-webkit-scrollbar,
.plan-load-card .plan-slot-list::-webkit-scrollbar{
  display:none;
}
.plan-manager-dots{
  margin:-2px 0 2px;
}
.plan-manager-dots button{
  cursor:pointer;
}
.plan-slot-select-surface{
  display:grid;
  gap:10px;
  width:100%;
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.plan-slot-select-surface>b{
  min-width:0;
  color:var(--ink);
  font-size:1rem;
  line-height:1.22;
  overflow-wrap:anywhere;
}
.plan-slot-select-surface:focus-visible{
  outline:3px solid rgba(94,124,246,.28);
  outline-offset:3px;
  border-radius:14px;
}
.plan-slot-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  min-width:0;
}
.snapshot-choice.plan-slot-card .plan-slot-meta small{
  grid-column:auto;
  grid-row:auto;
  align-self:auto;
  max-width:100%;
  min-height:28px;
  padding:7px 9px;
  border:1px solid rgba(94,124,246,.09);
  border-radius:999px;
  background:rgba(94,124,246,.07);
  color:color-mix(in srgb,var(--blue-deep) 82%,var(--muted));
  font-size:.68rem;
  font-weight:850;
  line-height:1.15;
  white-space:normal;
}
.plan-slot-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  margin-top:2px;
}
.plan-slot-actions.compact,
.analysis-slot-actions{
  grid-template-columns:1fr;
}
.plan-slot-secondary-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
  margin-top:1px;
}
.plan-slot-secondary-actions.three{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.plan-slot-secondary-actions .small{
  min-width:0;
  min-height:34px;
  padding-inline:8px!important;
  border-radius:999px;
  font-size:.66rem;
  font-weight:950;
  line-height:1;
}
.plan-slot-actions .small,
.plan-save-slot-card .plan-slot-card .small{
  min-width:0;
  min-height:40px;
  padding-inline:8px!important;
  border-radius:999px;
  font-size:.68rem;
  font-weight:950;
  line-height:1;
  white-space:nowrap;
}
.plan-save-slot-footer{
  position:sticky;
  bottom:calc(-4px - var(--safe-bottom));
  z-index:2;
  grid-template-columns:1fr 1fr;
  margin:2px -2px -4px;
  padding:10px 2px calc(4px + var(--safe-bottom));
  background:linear-gradient(180deg,rgba(255,255,255,.82),#fff 45%);
}
.plan-manager-footer{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.plan-new-unsaved-button{
  min-height:46px;
  margin-top:2px;
  border-radius:999px;
  font-weight:950;
}
.analysis-load-card .plan-slot-card:before,
.analysis-save-sheet .plan-slot-card:before{
  background:linear-gradient(90deg,var(--green),rgba(13,148,96,.16));
}
.analysis-load-card .plan-save-status:before{
  background:var(--green);
}
.analysis-load-card .plan-save-status{
  border-color:rgba(13,148,96,.18);
  background:linear-gradient(135deg,#F9FFFB,#EDF9F2);
}
.analysis-load-card .plan-save-status span{
  color:var(--green);
}
.storage-replace-card .storage-confirm-actions{
  margin-top:2px;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-confirm-sheet,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-slots-sheet,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restore-definitions-sheet.storage-slots-sheet{
  border-color:rgba(139,160,255,.22)!important;
  background:#0E1729!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-confirm-sheet .sheet-close,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-slots-sheet .sheet-close,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restore-definitions-sheet.storage-slots-sheet .sheet-close{
  display:grid!important;
  border-color:rgba(139,160,255,.26)!important;
  background:#14223B!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-save-card h2,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-slots-card h2,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-name-field input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .snapshot-choice b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-save-card .muted,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-slots-card .muted,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-name-field span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-period-preview span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .snapshot-choice span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-name-field input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .snapshot-choice{
  border-color:rgba(139,160,255,.22)!important;
  background:#101A30!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-period-preview,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .snapshot-choice.current{
  border-color:rgba(139,160,255,.3)!important;
  background:#152848!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .snapshot-choice.selected{
  border-color:#8BA0FF!important;
  background:#1B3158!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .snapshot-choice.selected span:after{
  color:#8BA0FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-period-preview b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .snapshot-choice small{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .snapshot-choice small{
  background:#203761!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .storage-slots-card>.eyebrow{
  border-color:rgba(139,160,255,.22)!important;
  background:#15223C!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-save-status{
  border-color:rgba(139,160,255,.22)!important;
  background:linear-gradient(135deg,#111C33,#142642)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-save-status span{
  background:#203761!important;
  color:#F7F9FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .snapshot-choice.plan-slot-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .snapshot-choice.plan-slot-card.empty{
  border-color:rgba(139,160,255,.22)!important;
  background:linear-gradient(180deg,#101A30,#111D35)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .snapshot-choice.plan-slot-card.current{
  border-color:rgba(139,160,255,.34)!important;
  background:linear-gradient(180deg,#152848,#142642)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .snapshot-choice.plan-slot-card.selected{
  border-color:rgba(102,214,150,.48)!important;
  background:linear-gradient(180deg,#123426,#102A22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-save-slot-footer{
  background:linear-gradient(180deg,rgba(14,23,41,.72),#0E1729 45%)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-slot-head em{
  background:#203761!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .snapshot-choice.plan-slot-card .plan-slot-meta small{
  border-color:rgba(139,160,255,.16)!important;
  background:#182A4B!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .analysis-load-card .plan-save-status{
  border-color:rgba(102,214,150,.26)!important;
  background:linear-gradient(135deg,#102A22,#132C2B)!important;
}
.snapshot-choice.plan-slot-card.selected .plan-slot-head span:after{
  content:"";
}
@media(max-width:560px){
  .storage-slots-sheet{
    width:min(calc(100% - 16px),560px);
    border-radius:26px 26px 0 0;
  }
  .storage-slots-card{
    gap:12px;
    padding-top:4px;
  }
  .storage-slots-card h2{
    max-width:15rem;
    font-size:1.2rem;
  }
  .plan-save-status{
    grid-template-columns:1fr;
  }
  .plan-save-status b{
    white-space:normal;
  }
  .plan-save-status span{
    justify-self:start;
  }
  .snapshot-choice.plan-slot-card{
    gap:9px;
    padding:13px;
    border-radius:20px;
  }
  .plan-save-slot-card .plan-slot-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }
  .plan-load-card .plan-slot-list{
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:minmax(236px,78%);
    overflow-x:auto;
    padding-bottom:4px;
    scroll-snap-type:x mandatory;
  }
  .plan-load-card .snapshot-choice.plan-slot-card{
    scroll-snap-align:start;
  }
  .plan-save-slot-card .snapshot-choice.plan-slot-card{
    gap:7px;
    min-height:132px;
    padding:10px 8px;
    border-radius:18px;
  }
  .plan-save-slot-card .snapshot-choice.plan-slot-card>b{
    font-size:.82rem;
  }
  .plan-save-slot-card .snapshot-choice.plan-slot-card .plan-slot-meta small{
    min-height:0;
    padding:5px 6px;
    font-size:.58rem;
  }
  .plan-save-slot-card .snapshot-choice.plan-slot-card .plan-slot-meta small:nth-child(n+2){
    display:none;
  }
  .plan-save-slot-card .plan-slot-head{
    display:grid;
    gap:5px;
  }
  .plan-slot-head{
    align-items:flex-start;
  }
  .plan-slot-head span{
    white-space:normal;
  }
  .snapshot-choice.plan-slot-card .plan-slot-meta small{
    border-radius:14px;
  }
}
@media(max-width:360px){
  .plan-load-card .plan-slot-actions{
    gap:5px;
  }
  .plan-load-card .plan-slot-actions .small{
    min-height:34px;
    padding-inline:6px!important;
    font-size:.64rem!important;
  }
}

/* Expanded nutrition table inside the food form. */
.nutrition-complete-fields{display:grid;gap:10px;padding:0 10px 10px}
.nutrition-complete-fields legend{margin:0 -10px;padding:12px 13px 8px!important;color:var(--muted);font-size:.68rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.nutrition-tier{display:grid;gap:10px;padding:11px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#fff,rgba(246,249,255,.72))}
.nutrition-tier-heading{display:grid;gap:3px}
.nutrition-tier-heading b,.nutrition-tier summary b{color:var(--blue-deep);font-size:.82rem;font-weight:900}
.nutrition-tier-heading span,.nutrition-tier summary i{color:var(--muted);font-size:.68rem;font-style:normal;font-weight:800;line-height:1.25}
.nutrition-tier summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none}
.nutrition-tier summary::-webkit-details-marker{display:none}
.nutrition-tier summary::after{content:"+";display:grid;flex:0 0 28px;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--blue-soft);color:var(--blue);font-size:1rem;font-weight:900;box-shadow:0 8px 18px rgba(41,61,102,.08)}
.nutrition-tier[open] summary::after{content:"-";background:var(--blue);color:#fff}
.nutrition-tier summary span{display:grid;gap:3px;min-width:0}
.nutrition-tier .nutrition-facts-body{padding:2px 0 0}
.nutrition-tier .grid2{gap:8px}
.nutrition-tier label>span{white-space:normal!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .nutrition-tier{border-color:rgba(139,160,255,.22);background:linear-gradient(180deg,#101A30,#111D35)}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .nutrition-tier-heading b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .nutrition-tier summary b{color:#F7F9FF}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .nutrition-tier-heading span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .nutrition-tier summary i{color:#B9C5E4}

/* Today's single extra-food action and the separate calendar flow. */
.today-extra-actions{display:grid;gap:8px;margin-top:6px}
.today-extra-actions .add-today-meal-button{width:min(100%,360px);min-height:44px;margin:0 auto;padding:12px 16px;text-align:center;line-height:1.25;white-space:normal}
.today-extra-actions .today-rebalance-button{width:min(82%,360px);margin:0 auto;border-color:rgba(102,127,255,.26);background:var(--blue-soft);color:var(--blue-deep)}
.outside-diet-card{position:relative}
.outside-diet-card .outside-log-card-remove{top:10px;right:10px}
.calendar-panel{position:relative;display:grid;gap:14px;padding-top:42px;background:linear-gradient(180deg,#fff,rgba(246,249,255,.88))}
.calendar-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,#fff,#f5f8ff 62%,#fff3e7);box-shadow:var(--shadow-soft)}
.calendar-hero h2{color:var(--blue-deep);font-size:1.22rem;line-height:1.05}.calendar-hero span{display:block;margin-top:5px;color:var(--muted);font-size:.78rem;font-weight:800;line-height:1.35}.calendar-tabs{grid-template-columns:repeat(3,minmax(0,1fr));margin:0}.calendar-tabs button{min-width:0;padding:0 8px}.calendar-board{display:grid;gap:12px}.calendar-board>header{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:8px}.calendar-board>header h3{text-align:center;color:var(--blue-deep);font-size:1rem;text-transform:capitalize}.calendar-month-filter{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(74px,.85fr);gap:7px;margin-top:8px}.calendar-month-filter label{gap:3px}.calendar-month-filter span{color:var(--muted);font-size:.56rem;font-weight:900;letter-spacing:.08em;text-align:center;text-transform:uppercase}.calendar-month-filter select{min-height:36px;padding:0 28px 0 10px;border-color:rgba(102,127,255,.2);border-radius:999px;background:#fff;color:var(--blue-deep);font-size:.76rem;font-weight:900;text-align:center;text-transform:capitalize;box-shadow:0 8px 18px rgba(41,61,102,.07)}.schedule-month-filter{margin-top:-2px;padding:8px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fff,#f8faff)}.schedule-month-filter label{margin:0}.schedule-calendar{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:var(--shadow-soft)}.schedule-weekdays,.schedule-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.schedule-weekdays span{color:var(--muted);font-size:.66rem;font-weight:900;text-align:center}.schedule-days button{position:relative;display:grid;place-items:center;min-height:42px;border:1px solid transparent;border-radius:14px;background:#f7f9fe;color:var(--blue-deep);font-weight:900}.schedule-days button.muted{opacity:.38}.schedule-days button.past{opacity:.24;cursor:not-allowed}.schedule-days button.today{border-color:rgba(91,113,241,.28)}.schedule-days button.active{border-color:#6478f4;background:var(--blue-soft);color:var(--blue)}.schedule-days button i{position:absolute;right:5px;bottom:4px;display:grid;place-items:center;min-width:15px;height:15px;padding:0 4px;border-radius:999px;background:var(--orange);color:#fff;font-size:.56rem;font-style:normal}.schedule-calendar.compact{box-shadow:none}.schedule-calendar.compact .schedule-days button{min-height:38px}.calendar-day-panel,.calendar-placeholder{display:grid;gap:12px;padding:15px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:var(--shadow-soft)}.calendar-day-panel h3,.calendar-placeholder h3{color:var(--blue-deep);font-size:1.08rem;text-transform:capitalize}.calendar-event-list{display:grid;gap:9px}.calendar-event-list button{display:grid;grid-template-columns:38px minmax(0,1fr);gap:9px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--text);text-align:left}.calendar-event-list span,.schedule-info-icon,.app-menu-icon.calendar{display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,#fff4e7,#edf3ff);color:var(--orange);font-weight:900}.calendar-event-list span{width:38px;height:38px}.calendar-event-list small{display:block;margin-top:2px;color:var(--muted);font-size:.7rem}.calendar-option-grid{display:grid;gap:9px}.calendar-option-grid button{display:grid;gap:2px;padding:13px;border:1px solid var(--line);border-radius:18px;background:#fff;text-align:left}.calendar-option-grid small{color:var(--muted);font-weight:800}.schedule-meal-modal{display:grid;gap:12px}.modal[data-modal-sheet~="schedule-full-sheet"]{align-items:center;padding:12px}.schedule-full-sheet{width:min(calc(100vw - 20px),var(--app-width));height:min(calc(100dvh - 24px),900px);max-height:900px;margin:0;padding:18px 16px calc(18px + var(--safe-bottom));border:1px solid var(--line);border-radius:28px;overflow:hidden}.schedule-full-sheet #modalBody{display:flex;min-height:0}.schedule-flow-modal{display:flex;flex:1 1 auto;min-height:0;flex-direction:column}.schedule-flow-modal .schedule-title{flex:0 0 auto}.schedule-full-sheet .schedule-calendar{flex:0 0 auto}.schedule-meal-sheet .sheet-close{border-color:#dfe6f5;background:#fff;color:var(--blue-deep)}.schedule-name-field{display:grid;gap:6px}.schedule-name-field span{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase}.schedule-name-field small{font-size:.62rem;text-transform:none}.schedule-name-field input{min-height:44px;border-color:rgba(102,127,255,.18);border-radius:17px;background:var(--schedule-field-surface,#fff);font-weight:900}.schedule-date-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fff,#f8faff)}.schedule-date-head span{display:block;color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase}.schedule-date-head b{display:block;margin-top:2px;color:var(--blue-deep);font-size:.96rem;text-transform:capitalize}.schedule-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.schedule-type-grid button{display:grid;gap:5px;justify-items:start;min-height:112px;padding:12px;border:1px solid var(--line);border-radius:20px;background:#fff;color:var(--blue-deep);text-align:left;box-shadow:var(--shadow-soft)}.schedule-type-grid span{display:grid;place-items:center;width:36px;height:36px;border-radius:14px;background:var(--blue-soft);color:var(--blue);font-weight:900}.schedule-type-grid b{font-size:.84rem}.schedule-type-grid small{color:var(--muted);font-size:.65rem;font-weight:800;line-height:1.25}.schedule-step-card{box-shadow:none}.schedule-home-meal-grid button{grid-template-columns:36px minmax(0,1fr);align-items:center}.schedule-home-meal-grid button small{grid-column:2}.schedule-footer-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:9px;margin-top:auto;padding-top:10px}.schedule-footer-actions button{min-height:46px}.schedule-info-modal{display:grid;justify-items:start;gap:8px;padding:4px}.schedule-info-icon{width:48px;height:48px;font-size:1.2rem}.schedule-info-modal h2{padding-right:0;color:var(--blue-deep)}.schedule-info-modal p:not(.eyebrow){color:var(--muted);font-weight:800;line-height:1.4}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-panel,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-hero,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-calendar,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-day-panel,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-placeholder,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-date-head,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-month-filter,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-type-grid button,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-event-list button,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-option-grid button{border-color:rgba(139,160,255,.22);background:var(--schedule-card-surface);color:#f7f9ff;box-shadow:none}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-hero{background:var(--schedule-hero-surface)}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-hero h2,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-board>header h3,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-day-panel h3,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-placeholder h3,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-date-head b,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-type-grid b,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-info-modal h2{color:#f7f9ff}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-hero span,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-event-list small,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-option-grid small,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-type-grid small,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-info-modal p:not(.eyebrow){color:#b9c5e4}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-month-filter select{border-color:rgba(139,160,255,.22);background:var(--schedule-day-surface);color:#eef3ff;box-shadow:none}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-days button{background:var(--schedule-day-surface);color:#eef3ff}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-days button.active{background:var(--schedule-day-active-surface);color:#aebcff;border-color:#8ba0ff}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-type-grid span,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-event-list span,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-info-icon,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-icon.calendar{background:var(--schedule-icon-surface);color:#ffd09a}

/* Calendar/schedule primary surfaces. */
.calendar-panel{background:var(--schedule-page-surface)}
.calendar-hero{background:var(--schedule-hero-surface)}
.schedule-calendar,
.calendar-day-panel,
.calendar-placeholder,
.calendar-event-list button,
.calendar-option-grid button,
.schedule-type-grid button{background:var(--schedule-card-surface)}
.schedule-month-filter,
.schedule-date-head{background:var(--schedule-muted-surface)}
.schedule-meal-sheet{background:var(--schedule-modal-surface)}
.schedule-meal-sheet .sheet-close{background:var(--control-surface)}
.schedule-days button{background:var(--schedule-day-surface)}
.schedule-days button.active{background:var(--schedule-day-active-surface)}
.calendar-event-list span,
.schedule-info-icon,
.app-menu-icon.calendar,
.schedule-title-icon{background:var(--schedule-icon-surface)}

/* Profile advanced cards: same quiet language as Dieta específica. */
#profileForm .advanced-profile{
  gap:10px!important;
  padding:10px!important;
  border-color:rgba(247,166,83,.18)!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,248,238,.62))!important;
  box-shadow:0 14px 28px rgba(41,61,102,.07)!important;
}
#profileForm .advanced-profile .profile-advanced-summary{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 30px!important;
  align-items:center!important;
  gap:10px!important;
  min-height:58px!important;
  margin:0!important;
  padding:10px 12px!important;
  border:1px solid rgba(247,166,83,.24)!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(255,245,229,.84))!important;
  color:var(--ink)!important;
  box-shadow:0 12px 24px rgba(41,61,102,.08)!important;
}
#profileForm .advanced-profile .profile-advanced-summary:after{
  width:30px!important;
  height:30px!important;
  border-radius:50%!important;
  background:var(--orange)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(247,166,83,.22)!important;
}
#profileForm .advanced-profile[open] .profile-advanced-summary:after{
  content:"-"!important;
}
#profileForm .advanced-profile .advanced-pref-title,
#profileForm .advanced-profile .method-section-title{
  margin:2px 2px 0!important;
  color:var(--muted)!important;
}
#profileForm .advanced-profile .profile-preference-card,
#profileForm .advanced-profile .profile-method-entry{
  margin:0!important;
}
#profileForm .advanced-profile .profile-preference-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  min-height:54px!important;
  padding:10px 12px!important;
  border:1px solid rgba(41,61,102,.10)!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(246,250,255,.88))!important;
  color:var(--ink)!important;
  box-shadow:0 10px 22px rgba(41,61,102,.06)!important;
}
#profileForm .advanced-profile .profile-preference-card>span{
  display:none!important;
}
#profileForm .advanced-profile .profile-preference-card b{
  min-width:0!important;
  color:var(--ink)!important;
  font-size:.82rem!important;
  line-height:1.18!important;
}
#profileForm .advanced-profile .profile-preference-card:has(input:checked){
  border-color:rgba(47,118,80,.30)!important;
  background:linear-gradient(135deg,#f7fff7,#eefaf2)!important;
  color:#244e36!important;
}
#profileForm .advanced-profile .profile-preference-card:has(input:checked) b{
  color:#244e36!important;
}
#profileForm .advanced-profile .profile-preference-card:has(input:checked):after{
  width:22px!important;
  height:22px!important;
  background:#2f7650!important;
  font-size:.76rem!important;
}
#profileForm .advanced-profile .profile-method-entry{
  display:grid!important;
  gap:8px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.profile-method-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) 30px;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:10px 12px;
  border:1px solid rgba(70,168,124,.20);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(238,250,244,.9));
  color:var(--ink);
  text-align:left;
  box-shadow:0 12px 24px rgba(41,61,102,.07);
}
.profile-method-card b{
  display:block;
  color:var(--ink);
  font-size:.9rem;
  line-height:1.15;
}
.profile-method-card small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.25;
}
.profile-method-card i{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:50%;
  background:#46a87c;
  color:#fff;
  font-style:normal;
  font-weight:950;
  box-shadow:0 8px 18px rgba(70,168,124,.20);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .advanced-profile{
  border-color:rgba(247,166,83,.20)!important;
  background:#101a30!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .advanced-profile .profile-advanced-summary{
  border-color:rgba(247,166,83,.28)!important;
  background:linear-gradient(135deg,#14233e,#1a2b48)!important;
  color:#f7f9ff!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .advanced-profile .profile-preference-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-method-card{
  border-color:rgba(139,160,255,.20)!important;
  background:#16233d!important;
  color:#f7f9ff!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .advanced-profile .profile-preference-card b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-method-card b{
  color:#f7f9ff!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-method-card small{
  color:#b9c5e4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .advanced-profile .profile-preference-card:has(input:checked){
  border-color:rgba(118,185,142,.58)!important;
  background:#285a42!important;
}

/* Profile editor polish: bring identity, goals and routine sections into the same quiet card system as Advanced. */
#profileForm{
  --profile-main-field-height:54px;
}
#profileForm>label:has(#profileName),
#profileForm>label:has(#profileGoal),
#profileForm .profile-identity-grid,
#profileForm .profile-measure-grid{
  padding:10px!important;
  border:1px solid rgba(102,127,255,.12)!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,250,255,.82))!important;
  box-shadow:0 14px 30px rgba(41,61,102,.065)!important;
}
#profileForm .profile-identity-grid,
#profileForm .profile-measure-grid{
  gap:9px!important;
}
.profile-safety-note{
  display:block;
  margin:8px 0 0!important;
  padding:11px 12px!important;
  border:1px solid rgba(102,127,255,.18)!important;
  border-radius:17px!important;
  background:linear-gradient(135deg,var(--blue-soft),rgba(255,255,255,.94))!important;
  color:var(--blue-deep)!important;
  font-size:.76rem!important;
  font-weight:850!important;
  line-height:1.38!important;
  box-shadow:0 10px 22px rgba(41,61,102,.06)!important;
}
.profile-safety-note[hidden]{
  display:none!important;
}
#profileForm .profile-identity-grid{
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr)!important;
  align-items:end!important;
}
#profileForm .profile-identity-grid label{
  min-width:0!important;
  overflow:hidden!important;
}
#profileForm .profile-identity-grid .profile-sex-field{
  --profile-sex-select-height:var(--profile-main-field-height);
  position:relative!important;
  overflow:visible!important;
}
#profileForm .profile-identity-grid .profile-sex-field::after{
  position:absolute;
  right:16px;
  bottom:calc((var(--profile-sex-select-height) - 8px)/2);
  width:8px;
  height:8px;
  border-right:2px solid var(--ink);
  border-bottom:2px solid var(--ink);
  content:"";
  pointer-events:none;
  transform:rotate(45deg);
  opacity:.88;
}
#profileForm>label:has(#profileName)>span,
#profileForm>label:has(#profileGoal)>span,
#profileForm .profile-identity-grid label>span,
#profileForm .profile-measure-grid label>span{
  margin-left:2px!important;
  color:var(--muted)!important;
  font-size:.66rem!important;
  font-weight:950!important;
  letter-spacing:.07em!important;
  line-height:1.1!important;
  white-space:normal!important;
  text-transform:uppercase!important;
}
#profileForm #profileName,
#profileForm #profileBirthDate,
#profileForm #profileSex,
#profileForm #profileHeight,
#profileForm #profileWeight,
#profileForm #profileTarget,
#profileForm #profileGoal{
  min-height:46px!important;
  border-color:rgba(41,61,102,.10)!important;
  border-radius:17px!important;
  background:#fff!important;
  color:var(--ink)!important;
  font-weight:850!important;
  box-shadow:0 10px 22px rgba(41,61,102,.045)!important;
}
#profileForm #profileName,
#profileForm #profileBirthDate,
#profileForm #profileSex{
  min-height:var(--profile-main-field-height)!important;
  height:var(--profile-main-field-height)!important;
}
#profileForm #profileName:focus,
#profileForm #profileBirthDate:focus,
#profileForm #profileSex:focus,
#profileForm #profileHeight:focus,
#profileForm #profileWeight:focus,
#profileForm #profileTarget:focus,
#profileForm #profileGoal:focus{
  border-color:rgba(102,127,255,.48)!important;
  box-shadow:0 0 0 4px rgba(102,127,255,.12),0 10px 22px rgba(41,61,102,.045)!important;
}
#profileForm .profile-goal-field{
  display:grid!important;
  gap:8px!important;
}
#profileForm #profileGoal{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  min-width:1px!important;
  min-height:1px!important;
  margin:-1px!important;
  padding:0!important;
  clip-path:inset(50%)!important;
  overflow:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
#profileForm #profileBirthDate,
#profileForm #profileSex{
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  font-size:.82rem!important;
  letter-spacing:0!important;
  text-overflow:clip!important;
}
#profileForm #profileBirthDate{
  padding:0 10px!important;
  line-height:var(--profile-main-field-height)!important;
}
#profileForm #profileSex{
  appearance:none!important;
  -webkit-appearance:none!important;
  min-height:var(--profile-sex-select-height)!important;
  height:var(--profile-sex-select-height)!important;
  padding:0 42px 0 14px!important;
  line-height:var(--profile-sex-select-height)!important;
  background:#fff!important;
}
#profileForm #profileBirthDate{
  font-variant-numeric:tabular-nums;
}
@media(max-width:430px){
  #profileForm .profile-identity-grid{
    grid-template-columns:1fr!important;
  }
  #profileForm #profileBirthDate,
  #profileForm #profileSex{
    font-size:16px!important;
  }
}
#profileGoalChoices{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}
.profile-goal-choice{
  appearance:none;
  -webkit-appearance:none;
  display:grid;
  grid-template-columns:minmax(0,1fr) 24px;
  align-items:center;
  min-height:44px;
  gap:7px;
  padding:8px 8px 8px 10px;
  border:1px solid rgba(102,127,255,.16);
  border-radius:15px;
  background:rgba(255,255,255,.9);
  color:var(--muted);
  text-align:left;
  box-shadow:0 8px 18px rgba(41,61,102,.045);
}
.profile-goal-choice-text,
.profile-goal-choice span{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  min-width:0;
  max-width:100%;
  overflow:visible!important;
  color:#253653!important;
  -webkit-text-fill-color:currentColor!important;
  font-size:.7rem;
  font-style:normal!important;
  font-weight:950;
  line-height:1.12;
  text-align:left;
  text-transform:uppercase;
  white-space:normal;
}
.profile-goal-choice-check,
.profile-goal-choice b{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:50%;
  font-size:.72rem;
  font-style:normal;
  font-weight:950;
  line-height:1;
  padding:0;
  justify-self:end;
}
.profile-goal-choice.locked{
  opacity:.72;
  cursor:not-allowed;
}
.profile-goal-choice.locked .profile-goal-choice-text,
.profile-goal-choice.locked span{
  color:#70809c!important;
}
.profile-goal-choice.locked .profile-goal-choice-check,
.profile-goal-choice.available .profile-goal-choice-check,
.profile-goal-choice.locked b,
.profile-goal-choice.available b{
  background:rgba(119,134,163,.13);
}
.profile-goal-choice.active{
  border-color:rgba(47,118,80,.38);
  background:linear-gradient(135deg,rgba(241,255,246,.98),rgba(231,249,237,.92));
  color:#1f6947;
  box-shadow:0 10px 22px rgba(47,118,80,.09);
}
.profile-goal-choice.active .profile-goal-choice-text,
.profile-goal-choice.active span{
  color:#1f6947!important;
}
.profile-goal-choice.active .profile-goal-choice-check,
.profile-goal-choice.active b{
  background:#2f7650;
  color:#fff;
  box-shadow:0 8px 16px rgba(47,118,80,.20);
}
#profileForm .profile-section-label{
  margin:14px 6px 7px!important;
  color:var(--muted)!important;
  font-size:.68rem!important;
  font-weight:950!important;
  letter-spacing:.075em!important;
  line-height:1.18!important;
  text-transform:uppercase!important;
}
#profileForm .profile-meals-section,
#profileForm .activity-section{
  padding:10px!important;
  border:1px solid rgba(102,127,255,.13)!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(246,249,255,.82))!important;
  box-shadow:0 14px 30px rgba(41,61,102,.06)!important;
}
#profileForm .profile-meals-section #profileMeals,
#profileForm .activity-section .activity-grid{
  gap:8px!important;
}
#profileForm #profileMeals .meal-option{
  min-height:46px!important;
  border-color:rgba(70,168,124,.18)!important;
  background:rgba(255,255,255,.92)!important;
  box-shadow:0 8px 18px rgba(41,61,102,.045)!important;
}
#profileForm #profileMeals .meal-option:has(input:checked){
  border-color:rgba(47,118,80,.32)!important;
  background:linear-gradient(135deg,rgba(241,255,246,.96),rgba(232,249,238,.90))!important;
  box-shadow:0 10px 20px rgba(47,118,80,.08)!important;
}
#profileForm #profileMeals .meal-option:has(input:checked):after{
  background:#2F7650!important;
  color:#fff!important;
  box-shadow:0 8px 16px rgba(47,118,80,.20)!important;
}
#profileForm .activity-day-card,
#profileForm .activity-day-card.compact{
  min-height:50px!important;
  padding:8px 9px!important;
  border-color:rgba(102,127,255,.16)!important;
  background:rgba(255,255,255,.92)!important;
  box-shadow:0 8px 18px rgba(41,61,102,.045)!important;
}
#profileForm .activity-day-card.is-selected{
  border-color:rgba(102,127,255,.46)!important;
  background:linear-gradient(135deg,rgba(239,243,255,.98),rgba(229,235,255,.90))!important;
  box-shadow:0 10px 20px rgba(102,127,255,.08)!important;
}
#profileForm .activity-day-card span,
#profileForm .activity-day-card small{
  line-height:1.08!important;
}
#profileForm .activity-day-card.is-selected .activity-day-icon{
  background:var(--blue)!important;
  color:#fff!important;
  box-shadow:0 8px 16px rgba(102,127,255,.22)!important;
}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm>label:has(#profileName),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm>label:has(#profileGoal),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .profile-identity-grid,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .profile-measure-grid,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .profile-meals-section,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .activity-section{
  border-color:rgba(139,160,255,.18)!important;
  background:#101a30!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm #profileName,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm #profileBirthDate,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm #profileSex,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm #profileHeight,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm #profileWeight,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm #profileTarget,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm #profileGoal{
  border-color:rgba(139,160,255,.18)!important;
  background:#16233d!important;
  color:#f7f9ff!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-safety-note{
  border-color:rgba(139,160,255,.24)!important;
  background:#16233d!important;
  color:#dbe5ff!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-choice{
  border-color:rgba(139,160,255,.18);
  background:#16233d;
  color:#e7edff;
  box-shadow:none;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-choice .profile-goal-choice-text,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-choice span{
  color:#e7edff!important;
  -webkit-text-fill-color:currentColor!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-choice.locked{
  color:#aebadb;
  opacity:.76;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-choice.locked .profile-goal-choice-text,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-choice.locked span{
  color:#aebadb!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-choice.locked .profile-goal-choice-check,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-choice.available .profile-goal-choice-check,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-choice.locked b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-choice.available b{
  background:rgba(235,241,255,.10);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-choice.active{
  border-color:rgba(118,185,142,.58);
  background:#143624;
  color:#d9ffe8;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-choice.active .profile-goal-choice-text,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-choice.active span{
  color:#d9ffe8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-choice.active .profile-goal-choice-check,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-choice.active b{
  background:#45a874;
  color:#061d14;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm #profileMeals .meal-option,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .activity-day-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .activity-day-card.compact{
  border-color:rgba(139,160,255,.18)!important;
  background:#16233d!important;
  color:#f7f9ff!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm #profileMeals .meal-option:has(input:checked){
  border-color:rgba(118,185,142,.56)!important;
  background:#143624!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #profileForm .activity-day-card.is-selected{
  border-color:rgba(139,160,255,.62)!important;
  background:#1f2d55!important;
}

#profileForm>.profile-goal-details-entry{
  margin:-2px 0 14px;
}
#profileForm>.profile-goal-details-entry .advanced-section-title{
  margin:0 2px;
}

#profileForm,
.profile-goal-layers-modal{
  isolation:isolate;
}
#profileForm .profile-goal-choice,
#profileForm .activity-day-card,
#profileForm #profileMeals .meal-option,
.profile-goal-layer-chip{
  position:relative;
  z-index:0;
  overflow:hidden;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
}
#profileForm .profile-goal-choice>*,
#profileForm .activity-day-card>*,
.profile-goal-layer-chip>*,
#profileForm #profileMeals .meal-option>:not(input){
  pointer-events:none;
}
#profileForm #profileMeals .meal-option input{
  pointer-events:none;
}

/* Profile goal layers: premium details kept compact and readable. */
.profile-goal-details-entry{display:grid;gap:8px;margin:0 12px 12px}.profile-goal-details-button{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:10px;min-height:58px;padding:10px 12px;border:1px solid rgba(102,127,255,.22);border-radius:16px;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(240,244,255,.86));color:var(--ink);text-align:left;box-shadow:0 12px 24px rgba(41,61,102,.08)}.profile-goal-details-button b{display:block;font-size:.9rem}.profile-goal-details-button small{display:block;margin-top:3px;color:var(--muted);font-size:.72rem;line-height:1.25}.profile-goal-details-button i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--blue);color:#fff;font-style:normal;font-weight:950}.profile-goal-layers-modal{display:grid;gap:14px}.profile-goal-layers-modal .sheet-title p:not(.eyebrow){margin-top:6px;color:var(--muted);font-size:.82rem;line-height:1.45}.profile-goal-layer-group{display:grid;gap:9px}.profile-goal-layer-group h3{color:var(--muted);font-size:.72rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.profile-goal-layer-group>div{display:flex;flex-wrap:wrap;gap:8px}.profile-goal-layer-chip{display:inline-grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;min-height:38px;padding:8px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:.75rem;font-weight:900}.profile-goal-layer-chip b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--blue);color:#fff;font-size:.72rem}.profile-goal-layer-chip.active{border-color:rgba(102,127,255,.5);background:rgba(102,127,255,.12);color:var(--blue-deep)}:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-details-button{border-color:rgba(132,151,255,.34);background:linear-gradient(135deg,rgba(18,34,61,.98),rgba(25,45,78,.92));color:#fff}:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-details-button small{color:rgba(235,241,255,.72)}:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layer-chip{border-color:rgba(132,151,255,.24);background:rgba(18,34,61,.92);color:#f7f9ff}:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layer-chip.active{border-color:rgba(132,151,255,.66);background:rgba(102,127,255,.2)}
.profile-goal-layer-hint{
  margin-top:-4px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:800;
  line-height:1.25;
}
.profile-goal-layer-chip.locked{
  cursor:not-allowed;
  opacity:1;
}
.profile-goal-layer-chip.locked:not(.active){
  color:var(--muted);
  background:rgba(237,242,252,.72);
}
.profile-goal-layer-chip.locked.active{
  box-shadow:inset 0 0 0 1px rgba(102,127,255,.18);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layer-hint{
  color:rgba(235,241,255,.68);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layer-chip.locked:not(.active){
  color:rgba(235,241,255,.54);
  background:rgba(18,34,61,.62);
}

.profile-goal-layers-modal{
  gap:12px!important;
}
.profile-goal-layers-modal>.sheet-title{
  position:relative;
  display:grid;
  gap:5px;
  margin:-2px 0 8px;
  padding:4px 58px 16px 0;
  border-bottom:1px solid rgba(102,127,255,.18);
  background:transparent;
}
.profile-goal-layers-modal>.sheet-title:before{
  display:block;
  width:46px;
  height:46px;
  margin-bottom:3px;
  border:1px solid rgba(102,127,255,.18);
  border-radius:16px;
  background:
    radial-gradient(circle at 42% 38%,rgba(238,155,74,.42),transparent 34%),
    linear-gradient(135deg,rgba(238,244,255,.96),rgba(255,241,221,.88));
  box-shadow:0 12px 24px rgba(41,61,102,.10);
  content:"";
}
.profile-goal-layers-modal>.sheet-title .eyebrow{
  margin:0;
  color:var(--muted);
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.profile-goal-layers-modal>.sheet-title h2{
  padding:0;
  color:var(--ink);
  font-size:1.18rem;
  line-height:1.05;
}
.profile-goal-layers-modal>.sheet-title p:not(.eyebrow){
  max-width:34rem;
  margin-top:2px!important;
  color:var(--text)!important;
  font-size:.82rem!important;
  line-height:1.45!important;
}
.profile-pace-details .profile-pace-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:4px 0 12px;border-bottom:1px solid var(--line);color:var(--ink)}
.profile-pace-values>div{min-width:0}
.profile-pace-values dt{font-size:12px;line-height:1.4;color:var(--muted);min-height:34px}
.profile-pace-values dd{margin:4px 0 0;font-size:24px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:0}
.profile-pace-values dd small{display:block;margin-top:4px;font-size:12px;font-weight:500;color:var(--muted)}
.profile-pace-details .profile-pace-range{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
.profile-pace-range b{color:var(--ink)}
.profile-goal-layer-group{
  gap:10px!important;
  padding:12px;
  border:1px solid rgba(102,127,255,.14);
  border-radius:20px;
  background:
    radial-gradient(circle at 100% 0,rgba(102,127,255,.08),transparent 35%),
    rgba(255,255,255,.82);
  box-shadow:0 12px 28px rgba(41,61,102,.06);
}
.profile-goal-layer-group h3{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  color:var(--blue-deep)!important;
  font-size:.7rem!important;
}
.profile-goal-layer-group h3:before{
  display:block;
  width:18px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--blue),var(--orange));
  content:"";
}
.profile-goal-layer-group>div{
  gap:8px!important;
}
.profile-goal-layer-chip{
  min-height:36px!important;
  padding:8px 10px!important;
  border-color:rgba(102,127,255,.18)!important;
  background:rgba(255,255,255,.94)!important;
  box-shadow:0 8px 18px rgba(41,61,102,.05);
}
.profile-goal-layer-chip.active{
  border-color:rgba(102,127,255,.48)!important;
  background:linear-gradient(135deg,rgba(102,127,255,.13),rgba(232,248,242,.72))!important;
}
.profile-goal-layer-chip.profile-rhea-chip{
  min-height:40px!important;
  border-color:rgba(95,118,246,.34)!important;
  background:linear-gradient(135deg,rgba(240,244,255,.98),rgba(255,255,255,.94))!important;
}
.profile-goal-layer-chip.profile-rhea-chip.active{
  border-color:rgba(95,118,246,.58)!important;
  background:linear-gradient(135deg,rgba(102,127,255,.18),rgba(232,248,242,.76))!important;
}
.profile-goal-layer-chip.profile-rhea-chip.gender-locked{
  cursor:not-allowed;
  border-color:rgba(127,135,153,.22)!important;
  background:rgba(245,247,252,.72)!important;
  color:var(--muted)!important;
  opacity:.68;
  box-shadow:none;
}
.profile-rhea-chip span{
  display:grid!important;
  grid-template-columns:24px minmax(0,auto);
  grid-template-rows:auto auto;
  align-items:center;
  gap:0 7px;
  min-width:0;
}
.profile-rhea-chip img{
  grid-row:1 / span 2;
  display:block;
  width:24px;
  height:24px;
  padding:2px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 7px 15px rgba(95,118,246,.18);
}
.profile-rhea-chip em{
  color:var(--blue-deep);
  font-style:normal;
  font-weight:950;
  line-height:1;
}
.profile-rhea-chip small{
  display:block;
  max-width:120px;
  overflow:hidden;
  color:var(--muted);
  font-size:.58rem;
  font-weight:900;
  line-height:1.05;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.profile-rhea-chip.gender-locked img{
  filter:grayscale(1);
  opacity:.62;
  box-shadow:none;
}
.profile-rhea-chip.gender-locked em,
.profile-rhea-chip.gender-locked small{
  color:var(--muted)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-rhea-chip img{
  background:#101c31;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layer-chip.profile-rhea-chip{
  border-color:rgba(192,139,184,.34)!important;
  background:
    radial-gradient(circle at 20% 20%,rgba(255,218,236,.18),rgba(255,218,236,0) 34%),
    radial-gradient(circle at 88% 46%,rgba(139,160,255,.16),rgba(139,160,255,0) 36%),
    linear-gradient(135deg,#1B263E 0%,#162036 54%,#21172C 100%)!important;
  color:#F7F0FA!important;
  box-shadow:0 14px 28px rgba(0,0,0,.22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layer-chip.profile-rhea-chip.active{
  border-color:rgba(230,164,200,.62)!important;
  background:
    radial-gradient(circle at 18% 18%,rgba(255,218,236,.24),rgba(255,218,236,0) 36%),
    radial-gradient(circle at 84% 46%,rgba(139,160,255,.22),rgba(139,160,255,0) 38%),
    linear-gradient(135deg,#243050 0%,#1B2946 52%,#2A1A38 100%)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layer-chip.profile-rhea-chip.gender-locked{
  border-color:rgba(152,167,196,.18)!important;
  background:linear-gradient(135deg,rgba(22,32,52,.72),rgba(18,27,45,.68))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-rhea-chip em{
  color:#DDE5FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-rhea-chip small{
  color:rgba(235,241,255,.68);
}
.profile-goal-layer-chip b{
  width:22px!important;
  height:22px!important;
  background:#5f76f6!important;
  box-shadow:0 8px 16px rgba(95,118,246,.22);
}
.profile-goal-layer-hint{
  margin:0!important;
  padding:8px 10px;
  border-radius:12px;
  background:rgba(237,242,252,.66);
}
.profile-goal-layers-sheet{
  --profile-goal-layers-x:16px;
  padding-bottom:0;
}
.profile-goal-layers-sheet .profile-goal-layers-footer{
  position:sticky;
  bottom:0;
  z-index:45;
  margin:2px calc(-1 * var(--profile-goal-layers-x)) 0;
  padding:12px var(--profile-goal-layers-x) calc(14px + var(--safe-bottom));
  border-top:1px solid rgba(102,127,255,.16);
  background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.98) 34%);
  box-shadow:0 -18px 28px rgba(41,61,102,.08);
  backdrop-filter:blur(14px);
}
.profile-goal-layers-sheet .profile-goal-layers-footer .primary.full{
  border-radius:18px;
  background:#5f76f6;
  box-shadow:0 14px 28px rgba(95,118,246,.20);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layers-modal>.sheet-title{
  border-bottom-color:rgba(132,151,255,.24);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layers-modal>.sheet-title:before{
  border-color:rgba(132,151,255,.26);
  background:
    radial-gradient(circle at 42% 38%,rgba(238,155,74,.28),transparent 34%),
    linear-gradient(135deg,rgba(28,45,78,.98),rgba(20,33,58,.94));
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layers-modal>.sheet-title p:not(.eyebrow){
  color:rgba(235,241,255,.76)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layer-group{
  border-color:rgba(132,151,255,.22);
  background:
    radial-gradient(circle at 100% 0,rgba(132,151,255,.12),transparent 36%),
    rgba(18,34,61,.82);
  box-shadow:none;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layer-group h3{
  color:rgba(235,241,255,.86)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layer-chip{
  border-color:rgba(132,151,255,.24)!important;
  background:rgba(10,19,36,.78)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layer-chip.active{
  border-color:rgba(132,151,255,.62)!important;
  background:linear-gradient(135deg,rgba(102,127,255,.24),rgba(16,167,120,.11))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layer-hint{
  background:rgba(10,19,36,.55);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layers-sheet .profile-goal-layers-footer{
  border-top-color:rgba(132,151,255,.22);
  background:linear-gradient(180deg,rgba(16,26,45,.76),rgba(10,19,36,.98) 34%);
  box-shadow:0 -18px 30px rgba(0,0,0,.28);
}
@media(max-width:430px){
  .profile-goal-layers-sheet{
    --profile-goal-layers-x:14px;
  }
}

/* Calendar scheduling modal: draw the close glyph so it stays centered in the circle. */
.schedule-meal-sheet .sheet-close{
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  line-height:1!important;
  font-size:0!important;
}
.schedule-meal-sheet .sheet-close:before,
.schedule-meal-sheet .sheet-close:after{
  position:absolute;
  top:50%;
  left:50%;
  width:14px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  content:""!important;
  transform-origin:center;
}
.schedule-meal-sheet .sheet-close:before{
  transform:translate(-50%,-50%) rotate(45deg);
}
.schedule-meal-sheet .sheet-close:after{
  transform:translate(-50%,-50%) rotate(-45deg);
}

/* Schedule modal title: same polished rhythm as Osyra's Menù, without the generic white title plate. */
.schedule-meal-sheet .sheet-title.with-actions.schedule-title{
  position:relative;
  top:auto;
  z-index:1;
  display:block;
  min-height:96px;
  margin:-2px 0 14px;
  padding:10px 58px 16px 0;
  border-bottom:1px solid rgba(102,127,255,.2);
  border-radius:0;
  background:var(--schedule-modal-header-surface);
  box-shadow:none;
  backdrop-filter:none;
}
.schedule-title-main{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:12px;
  align-items:center;
  min-width:0;
}
.schedule-title-icon{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid rgba(102,127,255,.22);
  border-radius:15px;
  background:var(--schedule-icon-surface);
  color:var(--blue);
  font-size:1.05rem;
  font-weight:900;
  box-shadow:0 12px 28px rgba(41,61,102,.1);
}
.schedule-title-main .eyebrow{
  margin:0 0 2px;
}
.schedule-title-main h2{
  margin:0;
  padding:0;
  color:var(--ink);
  font-size:1.14rem;
  line-height:1.08;
}
.schedule-title-main p:not(.eyebrow){
  margin:4px 0 0;
  color:var(--muted);
  font-size:.82rem;
  font-weight:800;
  line-height:1.25;
}
:root[data-visual-theme="yellowgray"] .schedule-meal-sheet .sheet-title.with-actions.schedule-title{
  border-bottom-color:rgba(101,143,77,.24);
}
:root[data-visual-theme="yellowgray"] .schedule-title-icon{
  border-color:rgba(101,143,77,.24);
  background:linear-gradient(135deg,#fff8dc,#eaf5d8);
  color:#4f8b42;
}
:root[data-visual-theme="yellowgray"] .schedule-title-main h2{
  color:#2f4f2d;
}
:root[data-visual-theme="yellowgray"] .schedule-title-main p:not(.eyebrow){
  color:#53624b;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-meal-sheet .sheet-title.with-actions.schedule-title{
  border-bottom-color:rgba(143,162,255,.22);
  background:var(--schedule-modal-header-surface);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-title-icon{
  border-color:rgba(143,162,255,.26);
  background:var(--schedule-icon-surface);
  color:#dfe7ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-title-main h2{
  color:#f5f8ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-title-main p:not(.eyebrow){
  color:#c2cde2;
}

/* Diary day view: polished title and calmer hierarchy, aligned with the best modal headers. */
.diary-day-title{
  align-items:center;
  padding:0 2px;
}
.diary-title-main{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:10px;
  align-items:center;
  min-width:0;
}
.diary-title-icon{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border:1px solid rgba(102,127,255,.2);
  border-radius:14px;
  background:linear-gradient(135deg,#eff4ff,#fff7ed);
  color:var(--blue);
  font-size:1rem;
  font-weight:900;
  box-shadow:0 10px 22px rgba(41,61,102,.08);
}
.diary-title-main .eyebrow{
  margin:0 0 2px;
}
.diary-day-title h3{
  margin:0;
  font-size:1.2rem;
}
.diary-day-title>span{
  display:inline-grid;
  align-items:center;
  min-height:30px;
  padding:0 10px;
  border:1px solid rgba(102,127,255,.14);
  border-radius:999px;
  background:rgba(255,255,255,.64);
  color:var(--blue-deep);
  box-shadow:0 8px 18px rgba(41,61,102,.045);
}
.diary-day-section .diary-glass-panel{
  gap:14px;
  padding-top:16px;
}
.diary-day-section .diary-date-search{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:8px;
  margin:0 0 4px;
  padding:13px 14px;
  border-color:rgba(102,127,255,.16);
  border-radius:24px;
  background:
    radial-gradient(circle at 10% 0%,rgba(255,255,255,.86),rgba(255,255,255,0) 45%),
    rgba(255,255,255,.72);
  box-shadow:0 12px 28px rgba(41,61,102,.06);
}
.diary-day-section .diary-date-search span{
  color:var(--blue-deep);
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.diary-day-section .diary-date-search input{
  min-height:44px;
  border-color:rgba(102,127,255,.16);
  border-radius:18px;
  background:#fff;
  color:var(--blue-deep);
  font-weight:850;
}
.diary-day-detail{
  margin-top:24px;
}
.diary-history-title{
  align-items:center;
  padding:0 4px;
}
.diary-history-title h3{
  font-size:1.18rem;
}
.plan-analysis-period .diary-glass-panel{
  gap:12px;
}
.plan-analysis-period .diary-analysis-filter-rail{
  order:2;
}
.plan-analysis-period .diary-period-presets{
  order:3;
}
:root[data-visual-theme="yellowgray"] .diary-title-icon{
  border-color:rgba(101,143,77,.22);
  background:linear-gradient(135deg,#fff8dc,#eaf5d8);
  color:#4f8b42;
}
:root[data-visual-theme="yellowgray"] .diary-day-title>span{
  border-color:rgba(101,143,77,.2);
  color:#47653c;
}
:root[data-visual-theme="yellowgray"] .diary-day-section .diary-date-search{
  border-color:rgba(101,143,77,.22);
  background:
    radial-gradient(circle at 10% 0%,rgba(255,255,247,.88),rgba(255,255,247,0) 45%),
    rgba(255,255,247,.72);
}
:root[data-visual-theme="yellowgray"] .diary-day-section .diary-date-search span,
:root[data-visual-theme="yellowgray"] .diary-day-section .diary-date-search input{
  color:#47653c;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-title-icon{
  border-color:rgba(143,162,255,.24);
  background:linear-gradient(135deg,rgba(102,127,255,.18),rgba(255,174,91,.12));
  color:#dfe7ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-day-title>span{
  border-color:rgba(143,162,255,.2);
  background:rgba(18,34,61,.72);
  color:#dfe7ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-day-section .diary-date-search{
  border-color:rgba(143,162,255,.22)!important;
  background:linear-gradient(180deg,rgba(22,35,61,.82),rgba(14,23,41,.7))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-day-section .diary-date-search input{
  border-color:rgba(143,162,255,.22);
  background:#0f1a2e;
  color:#f7f9ff;
}

/* Desktop structure for Dieta > Analise. The mobile layout is intentionally
   dense, but wide screens need a calm CRM-like grid instead of stacked rails. */
@media(min-width:900px){
  #planScreen .plan-analysis-card{
    max-width:min(100%,1040px);
    margin:10px auto 18px;
  }
  #planScreen .plan-analysis-period .diary-glass-panel{
    display:grid!important;
    grid-template-columns:minmax(190px,.76fr) minmax(340px,1.34fr) minmax(230px,.9fr);
    grid-template-areas:
      "start filters period"
      "chart chart stats"
      "layers layers layers"
      "summary summary reading";
    gap:14px!important;
    padding:16px!important;
    border:1px solid rgba(139,160,255,.16)!important;
    border-radius:30px!important;
    background:rgba(255,255,255,.44)!important;
    box-shadow:0 18px 42px rgba(47,68,112,.08)!important;
    backdrop-filter:blur(10px)!important;
    overflow:visible!important;
  }
  #planScreen .plan-analysis-period .diary-analysis-range-control{
    grid-area:start;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:0!important;
    min-width:0;
  }
  #planScreen .plan-analysis-period .diary-start-notice{
    min-height:126px;
    align-content:start;
  }
  #planScreen .plan-analysis-period .diary-start-notice .save-slot-actions{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
  }
  #planScreen .plan-analysis-period .diary-analysis-filter-rail{
    grid-area:filters;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:8px!important;
    align-self:stretch;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  #planScreen .plan-analysis-period>.diary-analysis-filter-rail button{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:52px!important;
    padding:0 8px!important;
    border-radius:18px!important;
    font-size:.68rem!important;
    white-space:normal!important;
  }
  #planScreen .plan-analysis-period .diary-period-presets{
    grid-area:period;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    min-height:126px;
    margin:0!important;
    padding:12px!important;
  }
  #planScreen .plan-analysis-period .diary-period-presets-title{
    grid-column:1/-1;
  }
  #planScreen .plan-analysis-period .diary-period-presets button{
    min-height:38px!important;
    border-radius:14px!important;
  }
  #planScreen .plan-analysis-period .diary-chart{
    grid-area:chart;
    width:100%!important;
    margin:0!important;
    padding:12px 12px 10px!important;
    border:1px solid rgba(139,160,255,.14)!important;
    border-radius:26px!important;
    background:rgba(255,255,255,.56)!important;
    box-shadow:0 14px 32px rgba(47,68,112,.06)!important;
    overflow:hidden!important;
  }
  #planScreen .plan-analysis-period .diary-chart svg{
    width:100%!important;
    min-height:330px!important;
  }
  #planScreen .plan-analysis-period .diary-chart-tools{
    grid-area:stats;
    display:block!important;
    min-width:0;
  }
  #planScreen .plan-analysis-period .diary-stat-strip{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    height:100%;
    padding:0!important;
    overflow:visible!important;
  }
  #planScreen .plan-analysis-period .diary-stat-card,
  #planScreen .plan-analysis-period .diary-stat-card.stat-adherence,
  #planScreen .plan-analysis-period .diary-stat-card.stat-average,
  #planScreen .plan-analysis-period .diary-stat-card.stat-low,
  #planScreen .plan-analysis-period .diary-stat-card.stat-peak,
  #planScreen .plan-analysis-period .diary-stat-card.stat-forecast{
    grid-column:auto!important;
    grid-row:auto!important;
    min-width:0!important;
    min-height:104px!important;
    padding:13px 11px!important;
  }
  #planScreen .plan-analysis-period .diary-layer-toggle{
    grid-area:layers;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:8px!important;
    padding:0!important;
    overflow:visible!important;
  }
#planScreen .plan-analysis-period .diary-layer-toggle button{
  min-width:0!important;
  min-height:42px!important;
  border-radius:16px!important;
  padding:6px 8px!important;
  overflow-wrap:anywhere;
  white-space:normal!important;
  line-height:1.08!important;
}
  #planScreen .plan-analysis-period .diary-layer-toggle.metric-weight-layers{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  #planScreen .plan-analysis-period .diary-layer-toggle.metric-food-layers{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  #planScreen .plan-analysis-period .diary-chart-prelude{
    grid-area:summary;
    display:block!important;
    min-width:0;
  }
  #planScreen .plan-analysis-period .diary-period-summary{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-column:auto!important;
    grid-row:auto!important;
    height:100%;
  }
  #planScreen .plan-analysis-period .diary-period-summary>.macro,
  #planScreen .plan-analysis-period .diary-period-summary>.day-macro{
    min-height:118px!important;
  }
  #planScreen .plan-analysis-period .diary-period-reading{
    grid-area:reading;
    display:grid;
    align-content:center;
    min-height:118px;
    margin:0!important;
    border:1px solid rgba(139,160,255,.14);
    background:rgba(255,255,255,.56);
  }
  :root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-glass-panel{
    border-color:rgba(139,160,255,.18)!important;
    background:rgba(15,26,46,.62)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.22)!important;
  }
  :root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-chart,
  :root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-period-reading{
    border-color:rgba(139,160,255,.18)!important;
    background:#111d33!important;
  }
}

/* Economia web: make the shopping chart read as a centered dashboard block. */
@media(min-width:900px){
  #financeScreen #financeShoppingPanel:not([hidden]) .chart-grid{
    grid-column:1 / -1!important;
    width:100%;
    max-width:980px;
    justify-self:center;
  }
  #financeScreen #financeShoppingPanel:not([hidden]) .chart-card{
    position:relative!important;
    top:auto!important;
    display:grid!important;
    grid-template-columns:minmax(240px,320px) minmax(0,1fr);
    grid-template-areas:
      "title title"
      "donut legend";
    align-items:center;
    justify-items:center;
    gap:18px 26px;
    width:100%;
    min-height:360px;
    padding:22px 24px!important;
    border-radius:30px;
  }
  #financeScreen #financeShoppingPanel:not([hidden]) .chart-card .eyebrow{
    grid-area:title;
    justify-self:center;
    margin-bottom:0;
    text-align:center;
  }
  #financeScreen #financeShoppingPanel:not([hidden]) .chart-card .donut-wrap{
    grid-area:donut;
    width:220px;
    height:220px;
    margin:0;
  }
  #financeScreen #financeShoppingPanel:not([hidden]) .chart-card .donut:after{
    inset:44px;
  }
  #financeScreen #financeShoppingPanel:not([hidden]) .chart-card .donut-center b{
    font-size:1.18rem;
  }
  #financeScreen #financeShoppingPanel:not([hidden]) .chart-card .legend{
    grid-area:legend;
    align-self:center;
    width:100%;
    max-width:520px;
    margin:0;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  #financeScreen #financeShoppingPanel:not([hidden]) .chart-card .legend span{
    min-height:48px;
    align-items:center;
    padding:9px 11px!important;
    border-radius:16px!important;
    font-size:.78rem;
  }
}
@media(max-width:899px){
  #financeScreen #financeShoppingPanel .chart-card{
    justify-items:center;
  }
  #financeScreen #financeShoppingPanel .chart-card .donut-wrap{
    margin-right:auto;
    margin-left:auto;
  }
}

/* Large laptops: keep the product centered and readable before the full CRM canvas kicks in. */
@media(min-width:1100px) and (max-width:1479px){
  :root{
    --app-width:1040px;
    --desktop-rail:88px;
  }
  .app{
    width:min(100%,var(--app-width))!important;
    max-width:1040px!important;
    margin-right:auto!important;
    margin-left:auto!important;
    padding:16px 28px 58px calc(var(--desktop-rail) + 28px)!important;
  }
  .app-top,
  .screens{
    width:100%!important;
    max-width:calc(1040px - var(--desktop-rail) - 56px)!important;
    margin-right:auto!important;
    margin-left:auto!important;
  }
  .bottom-nav{
    left:max(18px,calc((100vw - 1040px)/2 + 18px))!important;
  }
  #homeScreen.active,
  #planScreen.active,
  #foodsScreen.active,
  #financeScreen.active,
  #planScreen.active[data-plan-active="analysis"]{
    display:block!important;
  }
  #homeProfile,
  #planScreen .plan-preview-hero,
  #foodsScreen .foods-hero-card,
  #financeScreen .finance-mode-card{
    position:static!important;
    top:auto!important;
    width:100%!important;
  }
  #homeScreen .home-tabs,
  #planScreen .plan-tabs,
  #financeScreen .finance-tabs{
    width:100%!important;
    max-width:none!important;
    margin-top:14px;
  }
  #homeScreen .home-profile-summary,
  #planScreen .home-profile-summary{
    grid-template-columns:96px repeat(3,minmax(0,1fr))!important;
  }
  #homeScreen .day-nutrition-grid,
  #planScreen .day-nutrition-grid{
    grid-template-columns:repeat(2,minmax(260px,1fr))!important;
  }
  #homeScreen .today-meal-list,
  #planScreen #mealList,
  #foodsScreen #foodList,
  #financeScreen #financeSubstitutionList{
    grid-template-columns:repeat(2,minmax(260px,1fr))!important;
  }
  #planScreen .plan-row-actions{
    margin-top:14px;
  }
  #planScreen[data-plan-active="analysis"] #planAnalysisPanel{
    grid-column:auto!important;
    grid-row:auto!important;
  }
  #financeScreen #financeShoppingPanel:not([hidden]){
    display:block!important;
  }
}

/* Tablet/iPad: keep nutrient cards readable instead of forcing four tight columns. */
@media(min-width:760px) and (max-width:1099px){
  #homeScreen .home-macro-carousel .day-nutrition-grid[data-home-carousel],
  #planScreen .plan-nutrient-carousel.day-nutrition-grid[data-home-carousel]{
    display:grid!important;
    grid-template-columns:none!important;
    grid-auto-flow:column!important;
    grid-auto-columns:minmax(272px,calc((100% - 12px)/2))!important;
    gap:12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  #homeScreen .home-macro-carousel .day-nutrition-grid[data-home-carousel]::-webkit-scrollbar,
  #planScreen .plan-nutrient-carousel.day-nutrition-grid[data-home-carousel]::-webkit-scrollbar{
    display:none;
  }
  #homeScreen .home-macro-carousel .day-nutrition-grid[data-home-carousel] .day-macro,
  #planScreen .plan-nutrient-carousel.day-nutrition-grid[data-home-carousel] .day-macro{
    min-width:272px!important;
    scroll-snap-align:start;
    padding:14px 15px;
  }
  #homeScreen .home-macro-carousel .day-macro b i,
  #planScreen .plan-nutrient-carousel .day-macro b i{
    font-size:.98rem;
    white-space:nowrap;
  }
  #homeScreen .home-macro-carousel .day-macro small i,
  #planScreen .plan-nutrient-carousel .day-macro small i{
    font-size:.58rem;
    letter-spacing:0;
    white-space:nowrap;
  }
}

/* Laptop/tablet landscape: keep the top profile metrics as a clean horizontal rail. */
@media(min-width:900px) and (max-width:1099px){
  #planScreen .plan-preview-hero .diet-profile-summary,
  #planScreen .plan-preview-hero .plan-profile-summary{
    display:grid!important;
    grid-template-columns:minmax(220px,260px) minmax(0,1fr)!important;
    align-items:center;
    gap:22px!important;
    overflow:visible!important;
    padding-bottom:14px;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .profile-person,
  #planScreen .plan-preview-hero .plan-profile-summary .profile-person{
    width:100%!important;
    min-width:0!important;
    justify-items:start;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    text-align:left;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .profile-person strong,
  #planScreen .plan-preview-hero .plan-profile-summary .profile-person strong{
    width:auto;
    text-align:left;
  }
  #planScreen .plan-preview-hero .profile-info-carousel[data-home-carousel]{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(150px,1fr))!important;
    gap:14px!important;
    overflow:visible!important;
    scroll-snap-type:none!important;
    padding:0!important;
  }
  #planScreen .plan-preview-hero .profile-info-carousel[data-home-carousel] .profile-main-stat{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    min-height:112px;
    padding:15px 14px;
    scroll-snap-align:unset!important;
  }
  #planScreen .plan-preview-hero .profile-info-carousel + .carousel-dots{
    grid-column:2;
    justify-self:center;
    margin-top:8px;
  }
}

/* Final close-button normalization: keep the X perfectly centered in every modal circle. */
.modal .sheet-close{
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  overflow:hidden!important;
  font-size:0!important;
  line-height:0!important;
  text-indent:0!important;
}
.modal .sheet-close:before,
.modal .sheet-close:after{
  position:absolute!important;
  top:50%!important;
  left:50%!important;
  width:14px!important;
  height:2px!important;
  border-radius:999px!important;
  background:currentColor!important;
  content:""!important;
  transform-origin:center!important;
}
.modal .sheet-close:before{
  transform:translate(-50%,-50%) rotate(45deg)!important;
}
.modal .sheet-close:after{
  transform:translate(-50%,-50%) rotate(-45deg)!important;
}

/* Stability polish for app menu, settings and food toggles. */
.app-menu-modal.mosaic .menu-logout{
  border:1px solid rgba(231,109,114,.24)!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fff,rgba(231,109,114,.07))!important;
  box-shadow:0 12px 24px rgba(155,47,66,.075)!important;
}
.app-menu-modal.mosaic .menu-logout b{color:#a8464d!important}
.screen:not(.active){display:none!important}
#foodsScreen,#foodsScreen #foodList,#foodsScreen .food-card,#foodsScreen .food-card-actions{overflow-anchor:none}
#foodsScreen .food-card,#foodsScreen .food-card *{-webkit-tap-highlight-color:transparent}
#foodsScreen .food-card-actions button,#foodsScreen .food-card-actions label{touch-action:manipulation}
#foodsScreen #foodList.food-list-rendering .switch span,
#foodsScreen #foodList.food-list-rendering .switch span:after{transition:none!important}
.settings-row.language-row,.profile-access-item.language-row{grid-template-columns:42px minmax(0,1fr) auto!important;align-items:center}
.settings-row.language-row .chevron,.profile-access-item.language-row .chevron{justify-self:end}

/* Coexistence mobile guard: keep friends as readable rows, not stacked cards. */
.coexistence-sheet .sheet{
  overflow-x:hidden!important;
}
.coexistence-modal.refined{
  min-width:0;
}
.coexistence-tabs{
  overflow:visible;
}
.coexistence-tabs button{
  min-width:0;
}
.coexistence-tabs i{
  background:#ff8b4a!important;
  color:#fff!important;
  box-shadow:0 6px 14px rgba(255,139,74,.22);
}
.coexistence-friend-strip button{
  width:72px;
  min-width:72px;
  max-width:72px;
}
.coexistence-friend-strip .coexistence-avatar{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
}
.coexistence-contact-list.compact article{
  grid-template-columns:42px minmax(0,1fr) 78px!important;
  gap:9px!important;
  min-width:0;
  align-items:center!important;
}
.coexistence-contact-list.compact .coexistence-avatar{
  grid-column:1!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border-radius:14px!important;
}
.coexistence-contact-list.compact article>div{
  grid-column:2!important;
  min-width:0!important;
}
.coexistence-contact-list.compact article button{
  grid-column:3!important;
  width:auto!important;
  min-width:0!important;
  min-height:34px!important;
  padding:0 10px!important;
  border:1px solid rgba(231,109,114,.18)!important;
  border-radius:999px!important;
  background:rgba(231,109,114,.06)!important;
  color:#9b2f42!important;
}
.coexistence-contact-list.compact b,
.coexistence-contact-list.compact small{
  max-width:100%;
}
@media(max-width:430px){
  .coexistence-id-line{
    margin-right:44px;
    gap:8px;
  }
  .coexistence-id-line b{
    max-width:calc(100% - 88px);
    font-size:.8rem;
  }
  .coexistence-tabs{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:3px!important;
    padding:4px!important;
    border-radius:16px!important;
  }
  .coexistence-tabs button{
    min-height:36px!important;
    padding:0 2px!important;
    font-size:.58rem!important;
    letter-spacing:-.01em;
  }
  .coexistence-tabs i{
    position:absolute!important;
    top:-7px!important;
    right:-3px!important;
    min-width:18px!important;
    height:18px!important;
    padding:0 5px!important;
    border:2px solid #fff;
    font-size:.56rem!important;
  }
  .coexistence-friend-strip{
    gap:7px;
    padding:2px 1px 5px;
  }
  .coexistence-contact-list.compact article{
    grid-template-columns:40px minmax(0,1fr) 74px!important;
    padding:9px!important;
  }
  .coexistence-contact-list.compact .coexistence-avatar{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
  }
  .coexistence-contact-list.compact article button{
    font-size:.6rem!important;
  }
}

/* Final guard: keep the hamburger mosaic stable and give Calendar a local icon. */
.app-menu-modal.mosaic .app-menu-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-areas:
    "profile appearance"
    "calendar appearance"
    "article article"
    "account access"
    "logout logout"!important;
  grid-template-rows:minmax(96px,auto) minmax(96px,auto) minmax(126px,auto) minmax(74px,auto) minmax(74px,auto)!important;
  gap:9px!important;
}
.app-menu-modal.mosaic .menu-card-profile{grid-area:profile!important}
.app-menu-modal.mosaic .menu-card-appearance{grid-area:appearance!important}
.app-menu-modal.mosaic .menu-card-account{grid-area:account!important}
.app-menu-modal.mosaic .menu-card-article{grid-area:article!important}
.app-menu-modal.mosaic .menu-card-tutorial{grid-area:tutorial!important}
.app-menu-modal.mosaic .menu-card-country{grid-area:country!important}
.app-menu-modal.mosaic .menu-card-access{grid-area:access!important}
.app-menu-modal.mosaic .menu-card-calendar{grid-area:calendar!important}
.app-menu-modal.mosaic .menu-logout{
  grid-area:logout!important;
  grid-column:1 / -1!important;
}
.app-menu-modal.mosaic .menu-card-admin{
  grid-column:1 / -1!important;
}
.app-menu-modal.mosaic .menu-card-country .app-menu-icon{
  border:1px solid rgba(40,118,215,.16)!important;
  background:linear-gradient(135deg,#eef8ff,#f8fbff)!important;
  color:#2876d7!important;
  font-size:.72rem!important;
  font-weight:950!important;
  letter-spacing:.02em!important;
}
.app-menu-modal.mosaic .menu-card-calendar .app-menu-icon{
  position:relative!important;
  overflow:hidden!important;
  border:1px solid rgba(83,107,237,.18)!important;
  background:linear-gradient(135deg,#eef4ff,#f8fbff)!important;
  color:#536bed!important;
}
.app-menu-modal.mosaic .menu-card-calendar .app-menu-icon:before{
  position:absolute!important;
  inset:auto!important;
  left:50%!important;
  top:50%!important;
  width:18px!important;
  height:16px!important;
  border:2px solid currentColor!important;
  border-top-width:5px!important;
  border-radius:5px!important;
  background:
    linear-gradient(currentColor,currentColor) 4px 7px/3px 3px no-repeat,
    linear-gradient(currentColor,currentColor) 10px 7px/3px 3px no-repeat,
    linear-gradient(currentColor,currentColor) 4px 12px/3px 3px no-repeat,
    linear-gradient(currentColor,currentColor) 10px 12px/3px 3px no-repeat!important;
  content:""!important;
  opacity:1!important;
  transform:translate(-50%,-50%)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-modal.mosaic .menu-card-calendar .app-menu-icon{
  border-color:rgba(139,160,255,.2)!important;
  background:linear-gradient(135deg,#182945,#24395d)!important;
  color:#9db0ff!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-modal.mosaic .menu-card-country .app-menu-icon{
  border-color:rgba(139,160,255,.2)!important;
  background:linear-gradient(135deg,#172a45,#1f3556)!important;
  color:#9fd3ff!important;
}

/* Final web layout guard: notebooks and wide screens keep one centered app flow. */
@media(min-width:1100px){
  :root{
    --app-width:1240px!important;
    --desktop-rail:88px!important;
  }
  .app{
    width:min(100%,var(--app-width))!important;
    max-width:var(--app-width)!important;
    margin-right:auto!important;
    margin-left:auto!important;
    padding:16px 28px 64px calc(var(--desktop-rail) + 28px)!important;
  }
  .app-top,
  .screens{
    width:100%!important;
    max-width:calc(var(--app-width) - var(--desktop-rail) - 56px)!important;
    margin-right:auto!important;
    margin-left:auto!important;
  }
  .screens{
    padding:0!important;
  }
  .bottom-nav{
    left:max(18px,calc((100vw - var(--app-width))/2 + 18px))!important;
    width:74px!important;
  }
  #homeScreen.active,
  #planScreen.active,
  #foodsScreen.active,
  #financeScreen.active,
  #planScreen.active[data-plan-active="analysis"]{
    display:block!important;
    min-height:calc(100vh - 120px)!important;
  }
  #homeProfile,
  #planScreen .plan-preview-hero,
  #foodsScreen .foods-hero-card,
  #financeScreen .finance-mode-card{
    position:static!important;
    top:auto!important;
    width:100%!important;
    min-width:0!important;
  }
  #homeScreen .home-tabs,
  #planScreen .plan-tabs,
  #financeScreen .finance-tabs{
    width:100%!important;
    max-width:none!important;
    margin:14px 0!important;
    justify-self:stretch!important;
  }
  #homeScreen .profile-person .hero-avatar,
  #planScreen .profile-person .hero-avatar{
    width:86px!important;
    height:86px!important;
  }
  #homeScreen .day-nutrition-grid,
  #planScreen .day-nutrition-grid{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:14px!important;
    overflow:visible!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    scroll-snap-type:none!important;
  }
  #homeScreen .day-nutrition-grid>*,
  #planScreen .day-nutrition-grid>*{
    min-width:0!important;
    width:auto!important;
    max-width:none!important;
  }
  #homeScreen .day-nutrition-grid + .carousel-dots,
  #planScreen .day-nutrition-grid + .carousel-dots{
    display:none!important;
  }
  #homeScreen .day-macro,
  #planScreen .day-macro{
    min-height:104px!important;
    padding:14px 16px!important;
  }
  #homeScreen .day-macro b i,
  #planScreen .day-macro b i{
    font-size:1rem!important;
    white-space:nowrap!important;
  }
  #homeScreen .today-meal-list,
  #planScreen #mealList{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px!important;
    overflow:visible!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    scroll-snap-type:none!important;
  }
  #homeScreen .today-meal-list>*,
  #planScreen #mealList>*{
    min-width:0!important;
    width:auto!important;
    max-width:none!important;
  }
  #homeScreen .today-meal-list + .carousel-dots,
  #planScreen #mealList + .carousel-dots{
    display:none!important;
  }
  #planScreen[data-plan-active="analysis"] #planAnalysisPanel{
    grid-column:auto!important;
    grid-row:auto!important;
  }
  #homeScreen.home-pre-profile.active{
    display:grid!important;
    grid-template-columns:1fr!important;
    align-content:start!important;
    gap:10px!important;
    min-height:auto!important;
  }
  #homeScreen.home-pre-profile #homeProfile,
  #homeScreen.home-pre-profile #todayPanel,
  #homeScreen.home-pre-profile #diaryPanel,
  #homeScreen.home-pre-profile .home-tabs{
    display:none!important;
  }
  #homeScreen.home-pre-profile #planTutorialBubble{
    margin:8px 0 2px!important;
    justify-self:start!important;
  }
  #homeScreen.home-pre-profile .action-title,
  #homeScreen.home-pre-profile .tools-title{
    margin:6px 0 2px!important;
  }
  #homeScreen.home-pre-profile #homePlanModes.home-plan-modes{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
    margin:4px 0 8px!important;
  }
  #homeScreen.home-pre-profile #homePlanModes.home-plan-modes .plan-mode-card{
    min-height:104px!important;
    padding:16px 18px!important;
  }
  #homeScreen.home-pre-profile .home-actions[data-home-carousel]{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:12px!important;
    overflow:visible!important;
    scroll-snap-type:none!important;
    padding:0!important;
  }
  #homeScreen.home-pre-profile .home-actions[data-home-carousel] .action-card{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    min-height:82px!important;
    padding:13px!important;
  }
  #homeScreen.home-pre-profile .home-actions[data-home-carousel]:before,
  #homeScreen.home-pre-profile .home-actions[data-home-carousel]:after,
  #homeScreen.home-pre-profile .home-actions + .carousel-dots{
    display:none!important;
  }
  #homeScreen.home-no-saved-profile .tools-title,
  #homeScreen.home-no-saved-profile .home-actions,
  #homeScreen.home-no-saved-profile .home-actions[data-home-carousel],
  #homeScreen.home-no-saved-profile .home-actions + .carousel-dots{
    display:none!important;
  }
}

@media(min-width:1100px) and (max-width:1320px){
  :root{
    --app-width:1080px!important;
    --desktop-rail:82px!important;
  }
  #homeScreen .day-nutrition-grid,
  #planScreen .day-nutrition-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(min-width:1800px){
  :root{
    --app-width:1320px!important;
    --desktop-rail:92px!important;
  }
}

@media(min-width:1100px){
  #homeScreen .home-profile-summary,
  #planScreen .home-profile-summary{
    display:grid!important;
    grid-template-columns:minmax(220px,280px) minmax(0,1fr)!important;
    gap:18px!important;
    align-items:center!important;
    overflow:visible!important;
    padding-bottom:0!important;
  }
  #homeScreen .home-profile-summary .profile-person,
  #planScreen .home-profile-summary .profile-person{
    width:auto!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:92px minmax(0,1fr)!important;
    justify-items:start!important;
    align-items:center!important;
    column-gap:14px!important;
  }
  #homeScreen .home-profile-summary .profile-person .hero-avatar,
  #planScreen .home-profile-summary .profile-person .hero-avatar{
    width:86px!important;
    height:86px!important;
  }
  #homeScreen .home-profile-summary .profile-person strong,
  #planScreen .home-profile-summary .profile-person strong{
    max-width:none!important;
    margin-top:0!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:normal!important;
    text-align:left!important;
  }
  #homeScreen .profile-info-carousel[data-home-carousel],
  #planScreen .profile-info-carousel[data-home-carousel]{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(156px,1fr))!important;
    gap:14px!important;
    width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    padding:0!important;
    scroll-snap-type:none!important;
    grid-auto-flow:row!important;
  }
  #homeScreen .profile-info-carousel[data-home-carousel] .profile-main-stat,
  #planScreen .profile-info-carousel[data-home-carousel] .profile-main-stat{
    flex:initial!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    min-height:96px!important;
    scroll-snap-align:unset!important;
  }
  #homeScreen .profile-info-carousel + .carousel-dots.profile-carousel-dots,
  #planScreen .profile-info-carousel + .carousel-dots.profile-carousel-dots{
    display:none!important;
  }
}

/* Absolute last guard: modal close icon must remain visible in every theme/sheet. */
#modal .sheet-close{
  color:var(--blue-deep)!important;
  font-size:0!important;
}
#modal .sheet-close:before,
#modal .sheet-close:after{
  z-index:2!important;
  opacity:1!important;
  background:currentColor!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #modal .sheet-close{
  color:#dfe8ff!important;
}

/* Abacate theme: finance hero cards need dark readable text over the light green surface. */
:root[data-visual-theme="abacate"] #financeScreen .finance-mode-card{
  border-color:rgba(111,159,70,.32)!important;
  background:
    radial-gradient(circle at 88% 28%,rgba(255,255,255,.7) 0 12%,rgba(255,255,255,0) 36%),
    linear-gradient(135deg,#faffea 0%,#eef8d6 58%,#d5e9ac 100%)!important;
  color:#1c351d!important;
  box-shadow:0 16px 34px rgba(80,123,55,.14)!important;
}
:root[data-visual-theme="abacate"] #financeScreen .finance-mode-card:after{
  background:rgba(49,92,46,.52)!important;
  opacity:.3!important;
  filter:sepia(.24) saturate(.85) hue-rotate(34deg) contrast(1.25);
}
:root[data-visual-theme="abacate"] #financeScreen .finance-mode-card .eyebrow{
  color:#617b4b!important;
}
:root[data-visual-theme="abacate"] #financeScreen .finance-mode-card h3{
  color:#142b19!important;
}
:root[data-visual-theme="abacate"] #financeScreen .finance-mode-card p:not(.eyebrow){
  color:#3e5d37!important;
  opacity:1!important;
}

/* Keep diet preview card labels compact, matching the home/info cards. */
#planScreen .plan-preview-hero .profile-goal-row.plan-goal-carousel .plan-goal-card span{
  white-space:nowrap!important;
}

/* Rendering performance guard: repeated cards and heavy graph surfaces can grow
   quickly as the food base and diary history expand. These rules keep paint and
   layout work local without changing the visual design. */
@supports (contain:layout paint){
  .recipe-detail-modal,
  .outside-nutrition-compare,
  .diary-chart,
  .day-nutrition-grid,
  .home-plan-modes,
  .plan-analysis-period .diary-glass-panel{
    contain:layout paint;
  }
}

@supports (content-visibility:auto){
  .diary-meal-log,
  .meal-food-choice,
  .outside-food-choice,
  .finance-sub-result-card,
  .finance-sub-compare-card{
    content-visibility:auto;
    contain-intrinsic-size:90px;
  }
  .diary-chart,
  .plan-analysis-period .diary-period-reading{
    content-visibility:auto;
    contain-intrinsic-size:260px;
  }
}

/* Dieta > Analise: contract, chart, filters, monitoring, summary. */
@media(max-width:899px){
  #planScreen .plan-analysis-period .diary-glass-panel{
    display:flex!important;
    flex-direction:column!important;
  }
  #planScreen .plan-analysis-period .diary-analysis-range-control{order:1!important}
  #planScreen .plan-analysis-period .diary-layer-toggle{order:2!important}
  #planScreen .plan-analysis-period .diary-chart{order:3!important}
  #planScreen .plan-analysis-period .diary-analysis-filter-rail{order:4!important}
  #planScreen .plan-analysis-period .diary-period-presets{order:5!important}
  #planScreen .plan-analysis-period .diary-cycle-period{order:6!important}
  #planScreen .plan-analysis-period .diary-monitoring-summary{order:7!important}
  #planScreen .plan-analysis-period .diary-milestone-list{order:8!important}
  #planScreen .plan-analysis-period .diary-chart-prelude{order:9!important}
  #planScreen .plan-analysis-period .diary-stat-tools{
    display:block!important;
    order:10!important;
  }
  #planScreen .plan-analysis-period .diary-stat-strip{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  #planScreen .plan-analysis-period .diary-stat-card,
  #planScreen .plan-analysis-period .diary-stat-card.stat-adherence,
  #planScreen .plan-analysis-period .diary-stat-card.stat-average,
  #planScreen .plan-analysis-period .diary-stat-card.stat-low,
  #planScreen .plan-analysis-period .diary-stat-card.stat-peak,
  #planScreen .plan-analysis-period .diary-stat-card.stat-forecast{
    grid-column:auto!important;
    grid-row:auto!important;
  }
  #planScreen .plan-analysis-period .diary-period-reading{order:11!important}
}

@media(min-width:900px){
  #planScreen .plan-analysis-period .diary-glass-panel{
    display:grid!important;
    grid-template-areas:none!important;
  }
  #planScreen .plan-analysis-period .diary-glass-panel>*{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    grid-area:auto!important;
  }
  #planScreen .plan-analysis-period .diary-chart-tools{
    display:block!important;
  }
  #planScreen .plan-analysis-period .diary-stat-strip{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:10px!important;
  }
  #planScreen .plan-analysis-period .diary-stat-card,
  #planScreen .plan-analysis-period .diary-stat-card.stat-adherence,
  #planScreen .plan-analysis-period .diary-stat-card.stat-average,
  #planScreen .plan-analysis-period .diary-stat-card.stat-low,
  #planScreen .plan-analysis-period .diary-stat-card.stat-peak,
  #planScreen .plan-analysis-period .diary-stat-card.stat-forecast{
    grid-column:auto!important;
    grid-row:auto!important;
    min-height:88px!important;
  }
  #planScreen .plan-analysis-period .diary-period-reading{
    grid-area:auto!important;
  }
}

/* Meal editor: compact food bubbles with item editing in a focused sub-modal. */
.today-meal-edit-sheet,
.plan-meal-edit-sheet,
.meal-item-editor-sheet{
  width:min(calc(100% - 24px),520px)!important;
  max-height:min(90dvh,780px)!important;
  margin-bottom:10px!important;
  border:1px solid var(--line)!important;
  border-radius:28px!important;
}
.today-meal-edit-sheet,
.plan-meal-edit-sheet{
  background:var(--meal-editor-sheet-surface)!important;
}
.meal-edit-title{
  position:relative!important;
  top:auto!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:12px!important;
  margin:-18px -16px 14px!important;
  padding:18px 58px 14px 16px!important;
  border-bottom:1px solid rgba(102,127,255,.16)!important;
  border-radius:28px 28px 0 0!important;
}
.meal-edit-title-main{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  gap:11px;
  min-width:0;
}
.meal-edit-title-main .meal-icon,
.meal-edit-title-main .meal-picker-title-icon{
  width:42px;
  height:42px;
  border-radius:15px;
}
.meal-edit-title h2,
.meal-food-picker-title h2{
  padding:0!important;
  color:var(--ink);
  font-size:1.16rem!important;
  line-height:1.08;
}
.meal-edit-title .eyebrow,
.meal-food-picker-title .eyebrow{
  margin:0 0 3px;
  color:var(--orange);
  font-size:.62rem;
  letter-spacing:.08em;
}
.meal-edit-title .modal-top-actions{
  grid-column:1;
  justify-content:flex-start!important;
  flex-wrap:wrap;
}
.meal-edit-title .modal-top-actions .small{
  min-height:38px!important;
  border-radius:999px!important;
}
.meal-edit-title .meal-refresh-button{
  width:38px!important;
  min-width:38px!important;
  padding:0!important;
  font-size:1rem!important;
}
.meal-edit-title .meal-add-food-button{
  min-width:110px;
}
.meal-edit-chip-list{
  display:flex!important;
  flex-wrap:wrap;
  gap:8px!important;
  margin:6px 0 12px;
  padding:0!important;
}
.meal-edit-empty{
  width:100%;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface-2);
}
.meal-edit-chip{
  position:relative;
  display:inline-grid;
  grid-template-columns:30px minmax(0,1fr);
  align-items:center;
  gap:8px;
  width:100%;
  min-height:58px;
  padding:7px 20px 7px 7px;
  border:1px solid rgba(102,127,255,.22);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(239,244,255,.92));
  color:var(--ink);
  box-shadow:0 10px 22px rgba(41,61,102,.08);
  text-align:left;
}
.meal-edit-chip span:not(.food-image){
  display:block;
  min-width:0;
  max-width:100%;
}
.meal-edit-chip .food-image{
  width:30px;
  height:30px;
  border-radius:50%;
}
.meal-edit-chip b,
.meal-food-bubble-choice b{
  display:-webkit-box;
  overflow:hidden;
  font-size:.72rem;
  line-height:1.12;
  text-overflow:ellipsis;
  white-space:normal;
  word-break:normal;
  overflow-wrap:normal;
  hyphens:none;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.meal-food-bubble-choice b{
  display:block;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:break-word;
  -webkit-line-clamp:unset;
}
.meal-edit-chip b{
  display:block;
  overflow:visible;
  font-size:.78rem;
  line-height:1.25;
  text-overflow:clip;
  overflow-wrap:break-word;
  -webkit-line-clamp:unset;
}
.meal-edit-chip small,
.meal-food-bubble-choice small{
  display:block;
  overflow:hidden;
  margin-top:2px;
  color:var(--muted);
  font-size:.58rem;
  font-weight:900;
  line-height:1.1;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.meal-edit-chip.portion-high{
  border-color:rgba(231,109,114,.34);
}
.meal-edit-chip small{
  overflow:visible;
  font-size:.7rem;
  line-height:1.25;
  text-overflow:clip;
  white-space:normal;
  overflow-wrap:break-word;
}
.meal-edit-chip.portion-low{
  border-color:rgba(238,155,74,.36);
}
.meal-edit-chip.has-fillings{
  border-color:color-mix(in srgb,var(--orange) 34%,var(--line));
  background:linear-gradient(180deg,color-mix(in srgb,var(--orange) 10%,var(--card)),color-mix(in srgb,var(--blue-soft) 18%,var(--card)));
}
.meal-edit-chip.has-fillings:after{
  position:absolute;
  right:8px;
  bottom:8px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--orange);
  box-shadow:0 0 0 4px rgba(238,155,74,.12);
  content:"";
}
.meal-edit-inline-item{
  display:grid;
  width:calc(50% - 4px);
  min-width:0;
}
.meal-edit-inline-item.expanded{
  width:100%;
  align-self:start;
}
.meal-edit-inline-item>.meal-edit-chip{
  width:100%!important;
  max-width:none!important;
}
.meal-edit-inline-item.expanded>.meal-edit-chip{
  align-self:start;
  min-height:56px;
  max-height:72px;
  overflow:hidden;
  border-radius:18px 18px 14px 14px;
  border-color:color-mix(in srgb,var(--blue) 38%,var(--line));
  background:linear-gradient(135deg,color-mix(in srgb,var(--blue-soft) 70%,#fff),#fff);
  box-shadow:0 14px 28px rgba(41,61,102,.11);
}
.meal-edit-inline-item.expanded>.meal-edit-chip .food-image{
  width:34px;
  height:34px;
}
.meal-edit-inline-item.expanded>.meal-edit-chip span:not(.food-image){
  min-width:0;
}
.meal-edit-inline-panel{
  display:grid;
  gap:10px;
  margin-top:8px;
  padding:11px;
  border:1px solid color-mix(in srgb,var(--blue) 18%,var(--line));
  border-radius:18px;
  background:
    linear-gradient(180deg,color-mix(in srgb,var(--blue-soft) 44%,var(--card)),var(--card));
  box-shadow:0 16px 32px rgba(41,61,102,.08);
}
.meal-inline-control-row{
  display:grid;
  grid-template-columns:minmax(112px,.82fr) minmax(0,1fr);
  gap:9px;
  align-items:stretch;
}
.meal-inline-amount{
  min-height:100%;
  padding:10px!important;
  border-radius:16px!important;
}
.meal-inline-stepper{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 38px;
  align-items:center;
  gap:7px;
  margin-top:6px;
}
.meal-inline-stepper button{
  display:grid;
  place-items:center;
  width:38px;
  height:42px;
  min-height:42px;
  padding:0!important;
  border:1px solid color-mix(in srgb,var(--accent) 22%,var(--line));
  border-radius:14px;
  background:linear-gradient(180deg,#fff,rgba(255,255,255,.68));
  color:var(--ink);
  font-size:1rem;
  font-weight:950;
  box-shadow:0 10px 20px rgba(41,61,102,.07);
}
.meal-inline-amount input{
  min-height:58px!important;
  height:58px!important;
  font-size:.98rem!important;
  max-width:none!important;
  text-align:center;
}
.meal-inline-actions{
  align-self:stretch;
  display:grid;
  grid-template-columns:42px 42px 42px minmax(74px,1fr);
  gap:8px;
}
.meal-inline-actions button{
  min-height:44px!important;
  height:44px!important;
  padding:0 12px!important;
  border-radius:14px!important;
  font-size:.78rem!important;
  font-weight:950!important;
  line-height:1!important;
  white-space:normal!important;
}
.meal-inline-actions .primary{
  background:linear-gradient(135deg,var(--blue),color-mix(in srgb,var(--blue) 74%,#6dd6ff))!important;
  box-shadow:0 12px 22px rgba(41,61,102,.16);
}
.meal-inline-actions .soft{
  border:1px solid rgba(102,127,255,.2)!important;
  background:#fff!important;
  color:var(--blue-deep)!important;
  box-shadow:0 8px 18px rgba(41,61,102,.07)!important;
}
.meal-inline-actions .meal-inline-remove-button{
  border:1px solid rgba(168,77,98,.24)!important;
  background:linear-gradient(180deg,#fff7f8,#fff)!important;
  color:#9b2f42!important;
  box-shadow:0 8px 18px rgba(168,77,98,.08)!important;
}
.meal-inline-section{
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--blue) 15%,var(--line));
  border-radius:16px;
  background:rgba(255,255,255,.72);
}
.meal-inline-section summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:43px;
  padding:0 12px;
  color:var(--blue-deep);
  cursor:pointer;
  font-size:.76rem;
  font-weight:950;
  list-style:none;
}
.meal-inline-section summary::-webkit-details-marker{
  display:none;
}
.meal-inline-section summary:after{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--blue-soft);
  color:var(--blue);
  content:"+";
  font-size:.82rem;
  font-weight:950;
}
.meal-inline-section[open] summary:after{
  content:"-";
}
.meal-inline-section summary b{
  display:inline-grid;
  place-items:center;
  min-width:21px;
  height:21px;
  padding:0 7px;
  border-radius:999px;
  background:color-mix(in srgb,var(--orange) 16%,#fff);
  color:color-mix(in srgb,var(--orange) 86%,var(--blue-deep));
  font-size:.62rem;
}
.meal-inline-section-body{
  display:grid;
  gap:8px;
  padding:0 10px 10px;
}
.meal-inline-filling-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(86px,112px) 34px;
  gap:8px;
  align-items:end;
  min-width:0;
  padding:8px;
  border:1px solid color-mix(in srgb,var(--orange) 18%,var(--line));
  border-radius:14px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--orange) 7%,#fff),#fff);
}
.meal-inline-filling-row>span{
  align-self:center;
  overflow:hidden;
  color:var(--ink);
  font-size:.78rem;
  font-weight:900;
  line-height:1.16;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.meal-inline-filling-row label{
  display:grid;
  gap:4px;
}
.meal-inline-filling-row small{
  color:var(--muted);
  font-size:.56rem;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.meal-inline-filling-row input{
  width:100%;
  min-height:34px;
  border-color:#DCE4F3;
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  font-size:.82rem;
  font-weight:950;
  text-align:center;
}
.meal-inline-filling-row .remove-button{
  width:34px;
  height:34px;
  font-size:.86rem;
}
.meal-inline-empty{
  padding:8px 2px 2px;
}
.meal-macro-disclosure{
  margin-top:10px;
}
.meal-item-editor{
  display:grid;
  gap:13px;
}
.meal-item-editor-title{
  margin:0 46px 2px 0!important;
  padding:0 0 12px!important;
  border-bottom:1px solid rgba(102,127,255,.16);
}
.meal-item-editor-title .food-image{
  width:48px;
  height:48px;
  border-radius:16px;
}
.meal-item-editor-title h2{
  padding:0!important;
  color:var(--ink);
  font-size:1.18rem!important;
  line-height:1.08;
}
.meal-item-editor-title p:not(.eyebrow){
  margin-top:3px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:900;
}
.meal-item-editor-amount{
  display:grid;
  gap:6px;
  padding:13px;
  border:1px solid rgba(102,127,255,.18);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(247,249,255,.98),rgba(255,255,255,.94));
}
.meal-item-editor-amount span{
  color:var(--muted);
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.meal-item-editor-amount input{
  min-height:48px;
  border-color:#D8E0F1;
  border-radius:16px;
  background:#fff;
  color:var(--ink);
  font-size:1.06rem;
  font-weight:950;
  text-align:center;
}
.meal-item-editor-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.meal-item-editor-actions button,
.meal-item-filling-action,
.meal-item-editor-confirm{
  min-height:44px;
  border-radius:999px;
}
.meal-item-editor-actions .danger{
  border:1px solid rgba(231,109,114,.25);
  background:var(--red-soft);
  color:var(--red);
  font-weight:950;
}
.meal-item-filling-action b{
  display:inline-grid;
  place-items:center;
  min-width:20px;
  height:20px;
  margin-left:5px;
  border-radius:999px;
  background:rgba(102,127,255,.14);
  color:var(--blue);
  font-size:.65rem;
}
.meal-item-fillings{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.meal-item-filling-chip{
  display:inline-grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  min-height:36px;
  max-width:100%;
  padding:6px 10px;
  border:1px solid color-mix(in srgb,var(--orange) 28%,var(--line));
  border-radius:999px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--orange) 11%,var(--card)),var(--card));
  color:var(--text);
  box-shadow:0 8px 18px rgba(41,61,102,.06);
  font-size:.7rem;
  font-weight:900;
  text-align:left;
}
.meal-item-filling-chip span{
  overflow:hidden;
  color:var(--ink);
  text-overflow:ellipsis;
  white-space:nowrap;
}
.meal-item-filling-chip b{
  display:inline-grid;
  place-items:center;
  min-height:22px;
  padding:0 8px;
  border-radius:999px;
  background:color-mix(in srgb,var(--orange) 16%,#fff);
  color:color-mix(in srgb,var(--orange) 82%,var(--blue-deep));
  font-size:.62rem;
}
.meal-item-editor-details{
  overflow:hidden;
  border:1px solid rgba(102,127,255,.16);
  border-radius:16px;
  background:var(--surface-2);
}
.meal-item-editor-details summary{
  min-height:42px;
  padding:12px 14px;
  color:var(--blue-deep);
  cursor:pointer;
  font-size:.76rem;
  font-weight:950;
}
.meal-item-editor-details .edit-macro-list{
  margin:0;
  padding:0 12px 12px;
}
.filling-editor-panel{
  display:grid;
  gap:13px;
}
.filling-editor-title{
  margin:0 46px 2px 0!important;
  padding:0 0 12px!important;
  border-bottom:1px solid rgba(102,127,255,.16);
}
.filling-editor-title .food-image{
  width:48px;
  height:48px;
  border-radius:16px;
}
.filling-editor-title h2{
  padding:0!important;
  color:var(--ink);
  font-size:1.12rem!important;
  line-height:1.08;
}
.filling-editor-title p:not(.eyebrow){
  margin-top:3px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:900;
}
.filling-editor-actions{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:8px;
}
.filling-editor-actions button{
  min-height:46px;
  border-radius:999px;
  font-weight:950;
}
.filling-editor-actions .danger{
  border:1px solid rgba(231,109,114,.25);
  background:var(--red-soft);
  color:var(--red);
}
.meal-food-bubble-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:2px 0 10px;
}
.meal-food-bubble-choice{
  width:min(100%,205px)!important;
  max-width:205px!important;
  min-height:46px!important;
  border-color:rgba(102,127,255,.2)!important;
  box-shadow:0 10px 22px rgba(41,61,102,.07);
}
.meal-food-bubble-choice.selected{
  border-color:color-mix(in srgb,var(--green) 42%,var(--line))!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--green) 16%,var(--card)),color-mix(in srgb,var(--green) 9%,var(--card)))!important;
  color:color-mix(in srgb,var(--green) 86%,#063)!important;
  box-shadow:0 8px 18px rgba(13,148,96,.08)!important;
}
.meal-food-bubble-choice.selected i{
  background:var(--green)!important;
  color:#fff!important;
}
.meal-food-picker-sheet .meal-food-bubble-choice{
  align-items:start!important;
  border-radius:18px!important;
}
.meal-food-picker-sheet .meal-food-bubble-choice b{
  overflow:visible!important;
  max-width:none!important;
  text-overflow:clip!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  -webkit-line-clamp:unset!important;
}
.meal-replace-source{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:10px;
  align-items:center;
  margin:4px 0 10px;
  padding:10px;
  border:1px solid color-mix(in srgb,var(--blue) 18%,var(--line));
  border-radius:18px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--blue-soft) 52%,#fff),#fff);
}
.meal-replace-source .food-image{
  width:42px;
  height:42px;
  border-radius:14px;
}
.meal-replace-source b{
  display:block;
  overflow:hidden;
  color:var(--ink);
  font-size:.86rem;
  line-height:1.15;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.meal-replace-source small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:.68rem;
  font-weight:800;
  line-height:1.28;
}
.meal-food-picker-done{
  border-color:transparent!important;
  background:var(--blue)!important;
  color:#fff!important;
}
.meal-food-picker-done:disabled{
  border-color:rgba(139,160,255,.22)!important;
  background:rgba(139,160,255,.22)!important;
  color:rgba(255,255,255,.72)!important;
  opacity:1!important;
}
.meal-food-bubble-choice span:not(.food-image){
  min-width:0;
}
@media(max-width:430px){
  .today-meal-edit-sheet,
  .plan-meal-edit-sheet,
  .meal-item-editor-sheet{
    width:100%!important;
    margin-bottom:0!important;
    border-radius:28px 28px 0 0!important;
  }
  .meal-edit-chip{
    width:100%!important;
    max-width:none!important;
  }
  .meal-food-bubble-choice{
    width:calc(50% - 4px)!important;
    max-width:none!important;
  }
  .meal-edit-inline-item{
    width:100%!important;
  }
  .meal-edit-inline-item.expanded{
    width:100%!important;
  }
  .meal-edit-inline-item>.meal-edit-chip{
    width:100%!important;
  }
  .meal-inline-control-row{
    grid-template-columns:1fr;
  }
  .meal-inline-filling-row{
    grid-template-columns:minmax(0,1fr) minmax(82px,102px) 34px;
  }
  .meal-edit-chip b,
  .meal-food-bubble-choice b{
    font-size:.68rem;
  }
  .meal-edit-chip b{
    font-size:.76rem;
  }
  .meal-edit-chip small,
  .meal-food-bubble-choice small{
    font-size:.54rem;
  }
  .meal-edit-chip small{
    font-size:.68rem;
  }
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-chip,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-item-editor-amount,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-item-editor-details,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-item-filling-chip,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-bubble-choice{
  border-color:rgba(139,160,255,.2)!important;
  background:linear-gradient(135deg,rgba(18,34,61,.96),rgba(22,39,68,.9))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-chip.has-fillings{
  border-color:rgba(240,165,86,.28)!important;
  background:linear-gradient(135deg,rgba(240,165,86,.12),rgba(22,39,68,.94))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-inline-panel,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-inline-section{
  border-color:rgba(139,160,255,.18)!important;
  background:#101B30!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-inline-item.expanded>.meal-edit-chip{
  border-color:rgba(139,160,255,.28)!important;
  background:linear-gradient(135deg,rgba(30,49,84,.98),rgba(18,34,61,.94))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-inline-section summary{
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-inline-stepper button{
  border-color:rgba(139,160,255,.2)!important;
  background:#16223A!important;
  color:#F3F6FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-inline-filling-row{
  border-color:rgba(240,165,86,.18)!important;
  background:#111D33!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-inline-filling-row>span{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-inline-filling-row small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-inline-empty{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-inline-filling-row input{
  border-color:rgba(139,160,255,.18)!important;
  background:#162641!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-item-filling-chip span{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-item-filling-chip b{
  background:rgba(240,165,86,.16)!important;
  color:#FFBF73!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-chip b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-bubble-choice b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-item-editor-title h2{
  color:#f7f9ff!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-item-editor-amount input{
  border-color:rgba(139,160,255,.22);
  background:#111d33;
  color:#f7f9ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .filling-picker-sheet{
  border-color:rgba(139,160,255,.20)!important;
  background:#0E1729!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .filling-picker-title{
  border-bottom-color:rgba(139,160,255,.18)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .filling-picker-title h2{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .filling-picker-title p:not(.eyebrow){
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .filling-picker-search,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .filling-food-results .meal-food-choice{
  border-color:rgba(139,160,255,.20)!important;
  background:#101A30!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .filling-food-results .meal-food-choice.selected{
  border-color:rgba(111,196,148,.38)!important;
  background:linear-gradient(135deg,rgba(32,85,67,.62),#101A30)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .filling-draft-amount{
  border-color:rgba(111,196,148,.28)!important;
  background:rgba(14,24,48,.78)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .filling-draft-amount input{
  border-color:rgba(111,196,148,.28)!important;
  background:#111D33!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .filling-picker-footer{
  background:linear-gradient(to bottom,rgba(14,23,41,0),#0E1729 32%)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .filling-food-results .meal-food-choice i{
  background:rgba(143,160,255,.16)!important;
  color:#AEBBFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .filling-food-results .meal-food-choice.selected i{
  background:var(--green)!important;
  color:#fff!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-picker-done{
  border-color:rgba(139,160,255,.42)!important;
  background:linear-gradient(135deg,#6f82ff,#8fa0ff)!important;
  color:#fff!important;
  box-shadow:0 12px 26px rgba(111,130,255,.22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-picker-footer{
  background:linear-gradient(to bottom,rgba(14,23,41,0),#0E1729 24%)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-bubble-choice.selected{
  border-color:rgba(79,209,139,.38)!important;
  background:rgba(79,209,139,.13)!important;
  color:#B7F4CF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-bubble-choice.selected b{
  color:#D9FFE8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-bubble-choice.selected small{
  color:#B7F4CF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-picker-done:disabled{
  border-color:rgba(139,160,255,.18)!important;
  background:#1a2844!important;
  color:rgba(224,231,255,.68)!important;
  box-shadow:none!important;
  opacity:1!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-filter-toggle{
  border-color:rgba(139,160,255,.22)!important;
  background:linear-gradient(135deg,rgba(18,34,61,.96),rgba(22,39,68,.9))!important;
  color:#f7f9ff!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-filter-toggle span{
  color:#f7f9ff!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-filter-toggle small{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-filter-toggle b{
  background:#6f82ff!important;
  color:#fff!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-replace-source{
  border-color:rgba(139,160,255,.24)!important;
  background:
    radial-gradient(circle at 12% 20%,rgba(139,160,255,.12),transparent 34%),
    linear-gradient(135deg,#14223C,#101A30)!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-replace-source .food-image{
  border-color:rgba(139,160,255,.22)!important;
  background:#EAF0FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-replace-source b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-replace-source small{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-filter-panel{
  border-color:rgba(139,160,255,.18)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-filter-section>span{
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-filter-panel .chip{
  border-color:rgba(139,160,255,.22)!important;
  background:#111D33!important;
  color:#E8EEFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-food-filter-panel .chip.active{
  border-color:rgba(111,130,255,.48)!important;
  background:#263A70!important;
  color:#fff!important;
}

/* Outside-diet picker: direct search, stable typing, and cleaner status icons. */
.outside-diet-sheet .outside-diet-filter-toggle,
.outside-diet-sheet .outside-diet-filter-panel{
  display:none!important;
}
.outside-diet-sheet .outside-diet-search{
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  padding:0 14px!important;
}
.outside-diet-sheet .outside-diet-search .outside-search-icon{
  position:relative;
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
}
.outside-diet-sheet .outside-diet-search .outside-search-icon:before{
  content:"";
  width:9px;
  height:9px;
  border:2px solid currentColor;
  border-radius:50%;
  opacity:.72;
}
.outside-diet-sheet .outside-diet-search .outside-search-icon:after{
  content:"";
  position:absolute;
  width:7px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  transform:translate(6px,6px) rotate(45deg);
  opacity:.72;
}
.outside-log-heading{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  gap:11px;
}
.outside-log-heading .meal-icon{
  width:42px;
  height:42px;
  border-radius:16px;
}
.profile-goal-layer-chip b{
  display:grid!important;
  place-items:center!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  padding:0!important;
  border-radius:50%!important;
  background:var(--blue)!important;
  color:#fff!important;
  font-size:.78rem!important;
  font-weight:950!important;
  line-height:1!important;
}
.profile-goal-layer-chip.linked.active{
  border-color:color-mix(in srgb,var(--green) 36%,var(--blue))!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--green) 14%,var(--blue-soft)),var(--blue-soft))!important;
}
.profile-goal-layer-chip.strategy-locked.active{
  border-color:color-mix(in srgb,var(--blue) 56%,var(--green))!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--blue) 16%,#fff),color-mix(in srgb,var(--green) 10%,#fff))!important;
}
.profile-goal-layer-chip.cycle-locked.active{
  border-color:color-mix(in srgb,var(--pink,#E56B92) 46%,var(--blue))!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--pink,#E56B92) 14%,#fff),color-mix(in srgb,var(--blue) 10%,#fff))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet .outside-diet-search .outside-search-icon{
  color:#B9C5E4!important;
}

/* Outside-diet modal cleanup: database-only flow with neutral totals and stable search. */
.outside-diet-sheet .outside-create-choice,
.outside-diet-sheet .outside-inline-form{
  display:none!important;
}
.outside-diet-sheet .outside-total-panel{
  gap:8px!important;
  padding:10px 11px!important;
  border-color:color-mix(in srgb,var(--blue) 12%,var(--line))!important;
  background:color-mix(in srgb,var(--card) 86%,var(--surface-2))!important;
  box-shadow:none!important;
}
.outside-diet-sheet .outside-total-summary div,
.outside-review-sheet .outside-total-summary div{
  min-height:54px!important;
  padding:9px 6px!important;
  border-color:color-mix(in srgb,var(--blue) 10%,var(--line))!important;
  background:var(--surface-2)!important;
  box-shadow:none!important;
}
.outside-diet-sheet .outside-total-summary div:before,
.outside-review-sheet .outside-total-summary div:before{
  display:none!important;
}
.outside-diet-sheet .outside-total-summary b,
.outside-review-sheet .outside-total-summary b{
  color:var(--ink)!important;
}
.outside-diet-sheet .outside-total-summary span,
.outside-review-sheet .outside-total-summary span{
  color:var(--muted)!important;
}
.outside-diet-sheet .outside-diet-search{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  min-height:50px!important;
  margin:10px 0!important;
  padding:0 13px!important;
  border-color:color-mix(in srgb,var(--blue) 13%,var(--line))!important;
  border-radius:18px!important;
  background:var(--field)!important;
  box-shadow:none!important;
}
.outside-diet-sheet .outside-diet-search input{
  min-width:0!important;
  min-height:46px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--ink)!important;
  box-shadow:none!important;
}
.outside-diet-sheet .outside-diet-search .outside-search-icon{
  color:var(--muted)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layer-chip.linked.active{
  border-color:rgba(118,185,142,.42)!important;
  background:rgba(118,185,142,.14)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layer-chip.strategy-locked.active{
  border-color:rgba(132,151,255,.64)!important;
  background:rgba(102,127,255,.22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-layer-chip.cycle-locked.active{
  border-color:rgba(229,107,146,.54)!important;
  background:rgba(229,107,146,.16)!important;
}

/* Meal edit modal: keep actions anchored while foods flow into columns. */
.today-meal-edit-sheet,
.plan-meal-edit-sheet{
  height:min(94dvh,820px)!important;
}
.today-meal-edit-sheet #modalBody,
.plan-meal-edit-sheet #modalBody{
  display:grid!important;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto minmax(0,1fr) auto auto;
  min-height:0!important;
  min-width:0!important;
  overflow:hidden!important;
}
.today-meal-edit-sheet .meal-edit-list,
.plan-meal-edit-sheet .meal-edit-list{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,194px),1fr))!important;
  align-content:start!important;
  gap:8px!important;
  min-height:0!important;
  min-width:0!important;
  overflow-y:auto!important;
  margin:0 0 8px!important;
  padding:0 2px 6px!important;
  scrollbar-width:none;
}
.today-meal-edit-sheet .meal-edit-list>.meal-edit-inline-item,
.plan-meal-edit-sheet .meal-edit-list>.meal-edit-inline-item{
  width:100%!important;
  min-width:0!important;
}
.today-meal-edit-sheet .meal-edit-list::-webkit-scrollbar,
.plan-meal-edit-sheet .meal-edit-list::-webkit-scrollbar{
  display:none;
}
.today-meal-edit-sheet .meal-edit-chip,
.plan-meal-edit-sheet .meal-edit-chip{
  width:100%!important;
  max-width:none!important;
}
.today-meal-edit-sheet .meal-edit-list>.meal-edit-inline-item.expanded,
.plan-meal-edit-sheet .meal-edit-list>.meal-edit-inline-item.expanded{
  grid-column:1/-1!important;
  width:100%!important;
  max-width:none!important;
}
.today-meal-edit-sheet .meal-edit-inline-item.expanded .meal-edit-inline-panel,
.plan-meal-edit-sheet .meal-edit-inline-item.expanded .meal-edit-inline-panel{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:start!important;
}
.today-meal-edit-sheet .meal-edit-inline-item.expanded .meal-inline-control-row,
.plan-meal-edit-sheet .meal-edit-inline-item.expanded .meal-inline-control-row{
  grid-column:1/-1!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
}
.today-meal-edit-sheet .meal-edit-inline-item.expanded>.meal-edit-chip,
.plan-meal-edit-sheet .meal-edit-inline-item.expanded>.meal-edit-chip{
  width:100%!important;
  max-width:100%!important;
  min-height:56px!important;
  max-height:none!important;
  align-self:start!important;
}
.today-meal-edit-sheet .meal-edit-inline-panel .meal-inline-section,
.plan-meal-edit-sheet .meal-edit-inline-panel .meal-inline-section,
.today-meal-edit-sheet .meal-edit-inline-panel .meal-food-details,
.plan-meal-edit-sheet .meal-edit-inline-panel .meal-food-details{
  display:block!important;
  min-width:0!important;
  margin:0!important;
}
.today-meal-edit-sheet .meal-edit-inline-panel .meal-food-detail-body,
.plan-meal-edit-sheet .meal-edit-inline-panel .meal-food-detail-body{
  display:grid!important;
  grid-column:auto!important;
  gap:8px!important;
  margin-top:0!important;
}
.today-meal-edit-sheet .meal-edit-inline-panel .meal-food-macro-list,
.plan-meal-edit-sheet .meal-edit-inline-panel .meal-food-macro-list{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.today-meal-edit-sheet .meal-edit-inline-panel .meal-food-macro-list small,
.plan-meal-edit-sheet .meal-edit-inline-panel .meal-food-macro-list small{
  min-width:0!important;
  padding:7px 6px!important;
  text-align:center!important;
}
.today-meal-edit-sheet .meal-edit-inline-panel .meal-food-macro-list small span,
.plan-meal-edit-sheet .meal-edit-inline-panel .meal-food-macro-list small span{
  display:block!important;
  overflow:hidden!important;
  max-width:100%!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.today-meal-edit-sheet .meal-edit-inline-item.expanded .meal-inline-amount,
.plan-meal-edit-sheet .meal-edit-inline-item.expanded .meal-inline-amount{
  width:100%!important;
  min-height:0!important;
  padding:12px!important;
}
.today-meal-edit-sheet .meal-edit-inline-item.expanded .meal-inline-stepper,
.plan-meal-edit-sheet .meal-edit-inline-item.expanded .meal-inline-stepper{
  grid-template-columns:44px minmax(0,1fr) 44px!important;
  gap:9px!important;
}
.today-meal-edit-sheet .meal-edit-inline-item.expanded .meal-inline-stepper button,
.plan-meal-edit-sheet .meal-edit-inline-item.expanded .meal-inline-stepper button{
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
}
.today-meal-edit-sheet .meal-edit-inline-item.expanded .meal-inline-amount input,
.plan-meal-edit-sheet .meal-edit-inline-item.expanded .meal-inline-amount input{
  min-height:54px!important;
  height:54px!important;
  font-size:1.05rem!important;
}
.today-meal-edit-sheet .meal-edit-inline-item.expanded .meal-inline-actions,
.plan-meal-edit-sheet .meal-edit-inline-item.expanded .meal-inline-actions{
  width:100%!important;
}
.storage-confirm-actions .danger-action{
  border-color:rgba(168,77,98,.25)!important;
  background:linear-gradient(135deg,#a84d62,#d5697b)!important;
  color:#fff!important;
  box-shadow:0 14px 26px rgba(168,77,98,.18)!important;
}
.meal-edit-footer{
  position:sticky;
  bottom:-1px;
  z-index:12;
  display:grid;
  grid-template-columns:44px minmax(0,.9fr) minmax(0,1.2fr) minmax(0,.9fr);
  align-items:stretch;
  gap:8px;
  margin:2px 0 0;
  padding:10px 0 calc(1px + var(--safe-bottom));
  border-top:1px solid var(--line);
  background:var(--meal-editor-sheet-surface);
}
.meal-edit-footer.plan-meal-edit-footer{
  grid-template-columns:44px minmax(0,.9fr) minmax(0,1.2fr) minmax(0,1.2fr) minmax(0,.8fr);
}
.meal-edit-footer .meal-refresh-button,
.meal-edit-footer .meal-add-food-button,
.meal-edit-footer .meal-copy-days-button,
.meal-edit-footer .meal-save-recipe-button,
.meal-edit-footer .meal-edit-done-button{
  min-height:44px!important;
  min-width:0!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  padding:8px 10px!important;
  background:var(--surface-2)!important;
  color:var(--ink)!important;
  box-shadow:none!important;
  text-transform:none!important;
  white-space:normal!important;
  line-height:1.2!important;
  font-size:.78rem!important;
  font-weight:800!important;
  letter-spacing:0!important;
}
.meal-edit-footer .meal-refresh-button{
  width:44px!important;
  min-width:44px!important;
  padding:0!important;
  font-size:1.2rem!important;
}
.meal-edit-footer .meal-edit-done-button{
  border-color:transparent!important;
  background:var(--ink)!important;
  color:var(--card)!important;
}
.meal-edit-footer button:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:2px;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-footer{
  background:var(--meal-editor-sheet-surface)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-footer button.soft{
  border-color:var(--line)!important;
  background:var(--surface-2)!important;
  color:var(--ink)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-edit-footer .meal-edit-done-button{
  border-color:transparent!important;
  background:var(--ink)!important;
  color:var(--card)!important;
  box-shadow:none!important;
}
.meal-recipe-save-modal{
  display:grid;
  gap:15px;
}
.meal-recipe-save-modal .sheet-title{
  padding-right:44px;
}
.meal-recipe-save-modal .storage-confirm-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
}
.meal-recipe-save-modal .storage-name-field{
  min-width:0;
}
.meal-copy-days-modal{
  display:grid;
  gap:14px;
}
.meal-copy-days-modal .sheet-title p{
  max-width:520px;
}
.meal-copy-source{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--blue) 17%,var(--line));
  border-radius:18px;
  background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--blue) 6%,#fff));
}
.meal-copy-source b{
  display:block;
  color:var(--ink);
  font-size:.96rem;
  line-height:1.15;
}
.meal-copy-source small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:850;
}
.meal-copy-days-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.meal-copy-day{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:11px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--shadow-soft);
}
.meal-copy-day.disabled{
  opacity:.45;
}
.meal-copy-day input{
  width:20px;
  min-width:20px;
  height:20px;
  min-height:20px;
}
.meal-copy-day b,
.meal-copy-day small{
  display:block;
  line-height:1.15;
}
.meal-copy-day b{
  color:var(--blue-deep);
  font-size:.82rem;
}
.meal-copy-day small{
  margin-top:3px;
  color:var(--muted);
  font-size:.62rem;
  font-weight:850;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-copy-days-sheet{
  border-color:rgba(139,160,255,.18)!important;
  background:#0E1729!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-copy-days-modal .sheet-title h2{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-copy-days-modal .sheet-title p{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-copy-source{
  border-color:rgba(139,160,255,.24)!important;
  background:
    radial-gradient(circle at 12% 22%,rgba(139,160,255,.12),transparent 34%),
    linear-gradient(135deg,#14223C,#101A30)!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-copy-source .meal-icon{
  border-color:rgba(139,160,255,.22)!important;
  background:#21345C!important;
  color:#E8EEFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-copy-source b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-copy-source small{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-copy-day{
  border-color:rgba(139,160,255,.22)!important;
  background:#111D33!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-copy-day.disabled{
  border-color:rgba(139,160,255,.12)!important;
  background:#182235!important;
  opacity:1!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-copy-day input{
  accent-color:#6F82FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-copy-day.disabled input{
  opacity:.72!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-copy-day b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-copy-day small{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-copy-day.disabled b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-copy-day.disabled small{
  color:#8F9AB8!important;
}
@media(max-width:600px){
  .today-meal-edit-sheet .meal-edit-list,
  .plan-meal-edit-sheet .meal-edit-list{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,194px),1fr))!important;
  }
  .today-meal-edit-sheet .meal-edit-inline-item.expanded .meal-edit-inline-panel,
  .plan-meal-edit-sheet .meal-edit-inline-item.expanded .meal-edit-inline-panel{
    grid-template-columns:1fr!important;
  }
  .meal-edit-footer{
    grid-template-columns:44px minmax(0,.9fr) minmax(0,1.2fr) minmax(0,.9fr);
    gap:8px;
  }
  .meal-edit-footer.plan-meal-edit-footer{
    grid-template-columns:44px minmax(0,1fr) minmax(0,1fr);
  }
  .meal-edit-footer .meal-add-food-button,
  .meal-edit-footer .meal-copy-days-button,
  .meal-edit-footer .meal-save-recipe-button,
  .meal-edit-footer .meal-edit-done-button{
    min-height:44px!important;
    padding-inline:6px!important;
    font-size:.78rem!important;
  }
  .meal-edit-footer.plan-meal-edit-footer .meal-add-food-button{
    grid-column:2 / 3;
  }
  .meal-edit-footer.plan-meal-edit-footer .meal-copy-days-button{
    grid-column:3 / 4;
  }
  .meal-edit-footer.plan-meal-edit-footer .meal-save-recipe-button{
    grid-column:1 / 3;
  }
  .meal-edit-footer.plan-meal-edit-footer .meal-edit-done-button{
    grid-column:3 / 4;
  }
  .meal-edit-footer .meal-edit-done-button{
    grid-column:4 / 5;
  }
  .meal-edit-footer:not(.plan-meal-edit-footer) .meal-save-recipe-button{
    grid-column:3 / 4;
  }
  .meal-edit-footer:not(.plan-meal-edit-footer) .meal-edit-done-button{
    grid-column:4 / 5;
  }
  .meal-copy-days-grid{
    grid-template-columns:1fr;
  }
}

.engine-running-card{
  position:relative;
  overflow:hidden;
}
.engine-running-card::before{
  content:"";
  position:absolute;
  inset:-42% -24% auto auto;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(133,153,255,.24),rgba(115,204,171,.08) 52%,transparent 70%);
  pointer-events:none;
}
.engine-running-card .engine-step-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:16px;
}
.engine-running-card .engine-step-list span{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  border:1px solid color-mix(in srgb,var(--line) 76%,transparent);
  border-radius:10px;
  background:color-mix(in srgb,var(--card) 84%,var(--blue) 16%);
  color:var(--text);
  font-size:.76rem;
  font-weight:900;
}

/* Diary day final pass: date, history, meals, then goal totals. */
.diary-day-section .diary-glass-panel{
  gap:18px!important;
  padding:15px!important;
}
.diary-day-section .diary-date-search{
  margin:0!important;
}
.diary-day-detail{
  display:grid!important;
  gap:11px!important;
  margin-top:0!important;
}
.diary-history-title,
.diary-summary-title{
  display:grid!important;
  gap:2px!important;
  align-items:start!important;
  justify-content:stretch!important;
  padding:2px 4px 0!important;
}
.diary-history-title h3,
.diary-summary-title h3{
  margin:0!important;
  color:var(--ink)!important;
  font-size:1.02rem!important;
  line-height:1.16!important;
  letter-spacing:0!important;
}
.diary-meal-log-list{
  gap:9px!important;
  margin-top:0!important;
}
.diary-meal-log{
  gap:9px!important;
  padding:11px!important;
  border-radius:20px!important;
}
.diary-meal-log header{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
}
.diary-meal-log .meal-icon{
  width:38px!important;
  height:38px!important;
  border-radius:13px!important;
}
.diary-meal-total{
  margin-top:5px!important;
  color:var(--muted)!important;
  font-size:.68rem!important;
  font-weight:850!important;
}
.diary-meal-log .meal-items{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(132px,1fr))!important;
  gap:6px!important;
  padding-top:8px!important;
  border-top:1px solid rgba(102,127,245,.12)!important;
}
.diary-meal-log .meal-items span{
  min-width:0!important;
  padding:7px 8px!important;
  border:1px solid rgba(102,127,245,.10)!important;
  border-radius:12px!important;
  background:var(--diary-log-item-surface)!important;
  color:var(--text)!important;
  font-size:.7rem!important;
  font-weight:850!important;
  line-height:1.2!important;
}
.diary-day-summary{
  display:grid!important;
  gap:11px!important;
  margin-top:1px!important;
}
.diary-day-summary .diary-carousel{
  margin:0!important;
}
@media(min-width:760px){
  .diary-meal-log-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-meal-log .meal-items span{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--diary-log-item-surface)!important;
  color:#f7f9ff!important;
}

/* Final guard: outside-diet review stays readable in dark mode after all legacy rules. */
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--outside-sheet-surface)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .sheet-title.with-actions,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-total-panel,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-review-disclosure,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-review-meals,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-review-row,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-rebalance-selection,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-rebalance-choice,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-forecast,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-preview-row,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-swap-block,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-warning,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-empty,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-item-list li{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--outside-preview-surface)!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-total-summary div,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-nutrition-grid article,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-forecast-grid article{
  border-color:rgba(139,160,255,.16)!important;
  background:var(--outside-card-surface)!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-swap-block.after{
  border-color:rgba(139,160,255,.30)!important;
  background:var(--outside-panel-surface)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-swap-block.before,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-nutrition-grid article.over{
  border-color:rgba(247,168,78,.30)!important;
  background:var(--outside-over-surface)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet h2,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-forecast-grid strong,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-item-list strong{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .muted,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-disclosure-copy b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-review-action-note,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-forecast-grid span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-item-list span{
  color:#AFC0E8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-review-actions .meal-status-tag:not(.active),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-review-confirm-actions .soft,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .modal-top-actions .soft{
  border-color:rgba(139,160,255,.22)!important;
  background:var(--outside-soft-action-surface)!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-review-actions .meal-status-tag.ate.active{
  border-color:#8BA0FF!important;
  background:#4058C9!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-review-actions .meal-status-tag.skipped.active{
  border-color:#F7A84E!important;
  background:#B86D25!important;
  color:#FFF7EC!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-review-confirm-actions .primary{
  border-color:transparent!important;
  background:linear-gradient(135deg,#6F82FF,#8FA0FF)!important;
  color:#fff!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-rebalance-choice.active{
  border-color:rgba(126,199,154,.46)!important;
  background:rgba(33,122,77,.22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-meal-ok:not(.active),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .outside-review-disclosure summary i{
  border-color:rgba(139,160,255,.22)!important;
  background:var(--outside-card-surface)!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-meal-ok.active{
  border-color:#7EC79A!important;
  background:#217A4D!important;
  color:#fff!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-macro-delta{
  border-color:rgba(139,160,255,.18)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-macro-delta span{
  background:var(--outside-card-surface)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-macro-delta span.down{
  background:rgba(46,125,82,.28)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-macro-delta span.down strong{
  color:#7EC79A!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-macro-delta span.up{
  background:rgba(184,109,37,.28)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-sheet .recover-macro-delta span.up strong{
  color:#F7A84E!important;
}
/* Menstrual cycle mode */
.menstrual-cycle-card{display:grid;gap:11px;margin-top:12px;padding:13px;border:1px solid color-mix(in srgb,var(--pink,#E56B92) 22%,var(--line));border-radius:18px;background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--pink,#E56B92) 8%,#fff));box-shadow:var(--shadow-soft);color:var(--text)}
.cycle-source-card{overflow:hidden;padding:0}
.cycle-source-card.locked{grid-template-columns:1fr}
.cycle-source-summary{display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;min-height:30px;padding:0 6px;cursor:pointer;list-style:none}
.cycle-source-summary::-webkit-details-marker{display:none}
.cycle-source-summary:focus{outline:0}
.cycle-source-summary:focus-visible .cycle-source-arrow{outline:2px solid color-mix(in srgb,var(--blue) 36%,transparent);outline-offset:3px}
.cycle-source-summary span{min-width:0;color:var(--ink);font-size:.92rem;font-weight:950;line-height:1.12}
.cycle-source-arrow{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--blue) 10%,#fff));color:var(--blue);box-shadow:0 8px 18px rgba(75,45,80,.08),inset 0 0 0 1px color-mix(in srgb,var(--blue) 18%,transparent);transition:transform .18s ease,color .18s ease,background .18s ease,box-shadow .18s ease}
.cycle-source-arrow:before{display:block;width:6px;height:6px;margin-top:-3px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;content:"";transform:rotate(45deg)}
.cycle-source-card[open]>.cycle-source-summary{border-bottom:0}
.cycle-source-card[open]>.cycle-source-summary .cycle-source-arrow{transform:rotate(180deg)}
.cycle-source-body{display:grid;gap:11px;padding:0 13px 13px}
.menstrual-cycle-card header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}
.cycle-mode-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:7px}
.cycle-mode-actions button{flex:0 1 auto;min-width:86px}
.cycle-mode-actions button:not(.cycle-info-button){min-height:38px;border:1px solid color-mix(in srgb,var(--pink,#E56B92) 18%,var(--line));border-radius:999px;background:rgba(255,255,255,.78);box-shadow:0 10px 22px rgba(80,42,72,.055);font-weight:950}
.cycle-mode-actions button.primary:not(.cycle-info-button){background:linear-gradient(135deg,var(--ink),color-mix(in srgb,var(--pink,#E56B92) 30%,var(--ink)));color:#fff}
.cycle-mode-actions .cycle-info-button{display:grid;place-items:center;flex:0 0 34px;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;border-radius:50%;font-family:Georgia,serif;font-size:.98rem;font-weight:900;line-height:1}
.menstrual-cycle-card h3{margin:1px 0 3px;color:var(--ink);font-size:.98rem;line-height:1.15}
.menstrual-cycle-card span{color:var(--muted);font-size:.74rem;line-height:1.35}
.menstrual-cycle-card .cycle-source-summary>span{color:var(--ink);font-size:.92rem;font-weight:950;line-height:1.12}
.menstrual-cycle-card.locked{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.menstrual-cycle-card.cycle-source-card.locked{grid-template-columns:1fr;align-items:stretch}
.menstrual-cycle-card.locked .cycle-mode-actions{align-items:center}
.cycle-phase-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.cycle-phase-grid span{display:grid;gap:2px;min-height:54px;padding:10px;border:1px solid color-mix(in srgb,var(--pink,#E56B92) 15%,var(--line-soft));border-radius:15px;background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(255,255,255,.68));box-shadow:0 9px 20px rgba(80,42,72,.045)}
.cycle-phase-grid b{overflow:hidden;color:var(--ink);font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
.cycle-phase-grid small{color:var(--muted);font-size:.64rem;font-weight:900;text-transform:uppercase}
.rhea-info-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.rhea-info-grid .rhea-info-cell{align-content:start;gap:7px;min-height:92px}
.rhea-info-grid .rhea-info-cell small{white-space:normal;line-height:1.2}
.rhea-info-grid.rhea-current-only{grid-template-columns:1fr}
.rhea-info-grid .rhea-current-phase{grid-column:span 3}
.rhea-current-only .rhea-current-phase{grid-column:1}
.rhea-current-phase em,
.rhea-phase-story em{
  display:block;
  margin-top:2px;
  color:var(--text);
  font-size:.74rem;
  font-style:normal;
  font-weight:800;
  line-height:1.36;
  white-space:normal;
}
.rhea-current-phase .rhea-info-action{justify-self:start;width:auto;min-width:118px}
.rhea-cycle-alert{
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  gap:8px;
  align-items:center;
  justify-self:start;
  width:100%;
  min-height:44px;
  padding:8px 10px;
  border:1px solid color-mix(in srgb,var(--orange) 36%,var(--line));
  border-radius:14px;
  background:color-mix(in srgb,var(--orange) 12%,#fff);
  color:#8A4D00;
  font-size:.66rem;
  font-weight:950;
  line-height:1.16;
}
.rhea-cycle-alert i{
  display:grid;
  width:24px;
  height:24px;
  place-items:center;
  border-radius:50%;
  background:var(--orange);
  color:#fff;
  font-style:normal;
  font-size:.8rem;
}
.rhea-cycle-alert b,
.rhea-cycle-alert small{
  display:block;
  margin:0;
  color:inherit;
}
.rhea-current-phase.cycle-overdue{
  border-color:color-mix(in srgb,var(--orange) 34%,var(--line-soft));
  background:linear-gradient(180deg,color-mix(in srgb,var(--orange) 8%,#fff),rgba(255,255,255,.72));
}
.rhea-phase-actions{
  display:grid;
  gap:7px;
  margin-top:2px;
}
.rhea-current-phase .rhea-phase-actions button,
.rhea-current-phase .rhea-phase-actions .rhea-info-action{
  justify-self:stretch;
  width:100%;
  min-width:0;
  min-height:34px!important;
  font-size:.62rem!important;
  font-weight:950!important;
  line-height:1.08!important;
}
.rhea-next-phase small{order:-1}
.rhea-phase-story .soft.small{
  justify-self:start;
  width:auto;
  max-width:100%;
}
.rhea-info-action{align-self:end;min-height:30px!important;padding:0 10px!important;border-radius:999px!important;font-size:.62rem!important}
.cycle-action-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.cycle-action-row button{min-width:0;min-height:39px;padding:0 11px;border-radius:999px;border:1px solid color-mix(in srgb,var(--pink,#E56B92) 18%,var(--line));background:rgba(255,255,255,.78);box-shadow:0 10px 22px rgba(80,42,72,.06);font-size:.72rem;font-weight:950;white-space:normal;line-height:1.1}
.cycle-action-row button.primary{border-color:color-mix(in srgb,var(--pink,#E56B92) 22%,var(--line));background:linear-gradient(135deg,var(--ink),color-mix(in srgb,var(--pink,#E56B92) 34%,var(--ink)));color:#fff;box-shadow:0 12px 26px color-mix(in srgb,var(--pink,#E56B92) 18%,transparent)}
.cycle-action-row button.soft{color:var(--ink)}
.rhea-card-v2 .cycle-source-body{
  gap:10px;
}
.rhea-card-head{
  position:relative;
  display:block!important;
  min-height:96px;
  padding-right:96px!important;
}
.rhea-card-head>div{
  min-width:0;
  max-width:min(100%,520px);
}
.rhea-card-title-toggle{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:0;
  align-items:center;
  min-width:0;
  border-radius:14px;
}
.rhea-card-title-toggle.is-toggleable{
  cursor:pointer;
}
.rhea-card-title-toggle:not(.is-toggleable){
  grid-template-columns:minmax(0,1fr);
}
.rhea-card-title-toggle>div{
  min-width:0;
}
.rhea-card-head h3{
  margin:1px 0 3px;
}
.rhea-card-head span{
  display:block;
  max-width:100%;
}
.rhea-card-head .rhea-switch{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
}
.rhea-card-description{
  display:block;
  margin-top:4px;
  color:var(--text);
  font-size:.73rem;
  font-weight:800;
  line-height:1.32;
}
.rhea-switch{
  display:flex;
  align-items:center;
  gap:7px;
  justify-self:end;
  width:auto!important;
  min-width:82px!important;
  max-width:118px!important;
  min-height:38px!important;
  padding:4px 10px 4px 5px!important;
  border:1px solid color-mix(in srgb,var(--pink,#E56B92) 20%,var(--line))!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.82)!important;
  color:var(--ink)!important;
  box-shadow:0 10px 22px rgba(80,42,72,.055)!important;
  font-size:.68rem!important;
  font-weight:950!important;
  line-height:1!important;
}
.rhea-switch span{
  position:relative;
  display:block;
  width:32px;
  height:20px;
  border-radius:999px;
  background:color-mix(in srgb,var(--muted) 18%,#fff);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--muted) 18%,transparent);
}
.rhea-switch span:before{
  position:absolute;
  top:3px;
  left:3px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 3px 8px rgba(41,61,102,.16);
  content:"";
  transition:transform .16s ease;
}
.rhea-switch.active{
  border-color:color-mix(in srgb,var(--green) 34%,var(--line))!important;
  background:linear-gradient(135deg,#0D8E65,#25C08A)!important;
  color:#fff!important;
}
.rhea-switch.active span{
  background:var(--green);
}
.rhea-switch.active span:before{
  transform:translateX(12px);
}
.rhea-action-row{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.rhea-rebalance-preview .copilot-audit-card{
  display:grid;
  gap:9px;
}
.rhea-preview-empty{
  margin:0;
  color:var(--muted);
  font-size:.8rem;
  font-weight:850;
  line-height:1.35;
}
.rhea-action-row.compact{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.rhea-top-actions{
  order:0;
}
.rhea-action-row button{
  min-height:38px;
  padding-inline:8px;
  font-size:.66rem;
}
.rhea-start-action{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
}
.rhea-start-action i{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--orange);
  color:#1D2845;
  font-style:normal;
  font-size:.68rem;
  font-weight:950;
  line-height:1;
}
.rhea-start-action.needs-attention{
  border-color:color-mix(in srgb,var(--orange) 54%,var(--line))!important;
  background:color-mix(in srgb,var(--orange) 10%,#fff)!important;
  color:#1D2845!important;
}
.rhea-contraceptive-card{
  display:grid;
  gap:10px;
  padding:11px;
  border:1px solid color-mix(in srgb,#7FA486 28%,var(--line));
  border-radius:18px;
  background:linear-gradient(135deg,color-mix(in srgb,#7FA486 9%,#fff),rgba(255,255,255,.82));
  box-shadow:0 10px 22px rgba(60,88,70,.055);
  overflow:visible;
}
.rhea-contraceptive-card.active{
  border-color:color-mix(in srgb,#7FA486 42%,var(--line));
}
.rhea-contraceptive-head{
  min-height:70px;
  padding-right:96px!important;
}
.rhea-contraceptive-head .rhea-switch{
  right:0;
}
.rhea-contraceptive-title-toggle{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:center;
  width:100%;
  min-width:0;
  min-height:58px;
  padding:5px 7px 5px 2px;
  border:0;
  border-radius:14px;
  background:transparent;
  color:var(--ink);
  text-align:start;
  cursor:pointer;
}
.rhea-contraceptive-title-toggle:disabled{
  cursor:default;
  opacity:1;
}
.rhea-contraceptive-title-toggle:focus-visible{
  outline:3px solid color-mix(in srgb,var(--blue) 36%,transparent);
  outline-offset:2px;
}
.rhea-contraceptive-title-copy{display:grid;min-width:0}
.rhea-contraceptive-title-copy b{
  color:var(--ink);
  font-size:.94rem;
  font-weight:950;
  line-height:1.14;
}
.rhea-contraceptive-body{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
}
.meal-inline-actions button.icon-only{
  width:42px!important;
  min-width:42px!important;
  padding:0!important;
  font-size:1.05rem!important;
}
.rhea-pill-track{
  display:grid;
  gap:7px;
  min-width:0;
}
.rhea-pill-pack-rail{
  display:flex;
  gap:10px;
  min-width:0;
  max-width:100%;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  padding:0 0 2px;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.rhea-pill-pack-rail::-webkit-scrollbar{
  display:none;
}
.rhea-pill-pack-rail .rhea-pill-calendar{
  box-sizing:border-box;
  flex:0 0 100%;
  min-width:100%;
  max-width:100%;
  scroll-snap-align:start;
}
.rhea-pill-pack-dots{
  display:flex;
  justify-content:center;
  gap:4px;
  min-height:12px;
  margin:1px 0 5px;
  padding:0;
}
.rhea-pill-pack-dots button{
  width:5px!important;
  min-width:5px!important;
  height:5px!important;
  min-height:5px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--muted) 34%,transparent)!important;
  box-shadow:none!important;
}
.rhea-pill-pack-dots button.active{
  width:20px!important;
  min-width:20px!important;
  background:var(--pink,#E56B92)!important;
}
.rhea-pill-calendar{
  display:grid;
  gap:10px;
  padding:11px;
  border:1px solid color-mix(in srgb,#7FA486 30%,var(--line));
  border-radius:16px;
  background:rgba(255,255,255,.62);
}
.rhea-pill-phase-line{
  display:grid;
  gap:2px;
  min-width:0;
  padding:7px 5px;
  border:1px solid color-mix(in srgb,#7FA486 22%,var(--line));
  border-radius:13px;
  background:rgba(255,255,255,.66);
  color:var(--text);
  font-size:.56rem;
  font-weight:850;
  line-height:1.2;
  overflow:hidden;
  overflow-wrap:anywhere;
}
.rhea-pill-phase-line b{
  color:var(--blue-deep);
  font-size:.48rem;
  font-weight:950;
  text-transform:uppercase;
  white-space:nowrap;
}
.rhea-pill-phase-line{
  border-style:dashed;
}
.rhea-pill-phase-line span{
  color:var(--text);
}
.rhea-pill-calendar header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.rhea-pill-calendar-head{
  display:grid!important;
  grid-template-columns:minmax(70px,.36fr) minmax(0,1fr);
  align-items:start!important;
  gap:8px!important;
}
.rhea-pill-calendar-head>div:first-child{
  min-width:0;
  padding-top:3px;
}
.rhea-pill-calendar-head{
  grid-template-columns:minmax(0,1fr)!important;
}
.rhea-pill-calendar-config{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:3px 12px;
  width:100%!important;
  min-width:0!important;
  min-height:58px!important;
  padding:10px 12px!important;
  border:1px solid color-mix(in srgb,#7FA486 28%,var(--line))!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.88),color-mix(in srgb,#7FA486 8%,#fff))!important;
  color:var(--ink)!important;
  text-align:start!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 8px 16px rgba(60,88,70,.05)!important;
}
.rhea-pill-calendar-config:after{
  grid-column:2;
  grid-row:1 / span 3;
  width:9px;
  height:9px;
  border-top:2px solid color-mix(in srgb,#7FA486 72%,var(--blue));
  border-right:2px solid color-mix(in srgb,#7FA486 72%,var(--blue));
  content:"";
  transform:rotate(45deg);
}
.rhea-pill-calendar-config b,
.rhea-pill-calendar-config span,
.rhea-pill-calendar-config small{
  grid-column:1;
  display:block;
  min-width:0;
  overflow-wrap:anywhere;
}
.rhea-pill-calendar-config b{
  color:var(--ink)!important;
  font-size:.82rem;
  font-weight:950;
  line-height:1.12;
}
.rhea-pill-calendar-config span{
  color:var(--muted)!important;
  font-size:.66rem;
  font-weight:850;
  line-height:1.2;
}
.rhea-pill-calendar-config .rhea-pill-cycle-phase{
  color:var(--blue-deep)!important;
  font-size:.61rem;
  font-weight:950;
}
.rhea-pill-calendar-config:focus-visible{
  outline:3px solid color-mix(in srgb,var(--blue) 38%,transparent)!important;
  outline-offset:2px;
}
.rhea-settings-modal{
  gap:16px;
}
.rhea-settings-modal .sheet-title{
  display:grid;
  gap:6px;
}
.rhea-settings-modal .sheet-title>p:not(.eyebrow){
  max-width:44ch;
  color:var(--muted);
  font-size:.8rem;
  line-height:1.45;
}
.rhea-settings-phase{
  width:max-content;
  max-width:100%;
  padding:5px 9px;
  border-radius:999px;
  background:color-mix(in srgb,#7FA486 13%,#fff);
  color:color-mix(in srgb,#7FA486 74%,#1D2845);
  font-size:.67rem;
  font-weight:950;
}
.rhea-settings-fields{
  display:grid;
  gap:12px;
}
.rhea-settings-date,
.rhea-settings-time{
  display:grid;
  gap:6px;
}
.rhea-settings-date>span,
.rhea-settings-time>span,
.rhea-settings-pack-field legend{
  color:var(--muted);
  font-size:.64rem;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.rhea-settings-date input{
  min-height:46px!important;
  font-size:16px!important;
}
.rhea-settings-pack-field{
  display:grid;
  gap:7px;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
}
.rhea-settings-pack-options{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  min-width:0;
}
.rhea-settings-pack-option{
  position:relative;
  display:grid;
  min-width:0;
  min-height:66px;
  padding:9px 8px;
  border:1px solid color-mix(in srgb,#7FA486 26%,var(--line));
  border-radius:14px;
  background:var(--surface);
  color:var(--ink);
  cursor:pointer;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease;
}
.rhea-settings-pack-option:hover{
  transform:translateY(-1px);
}
.rhea-settings-pack-option input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.rhea-settings-pack-option>span{
  display:grid;
  align-content:center;
  gap:4px;
  min-width:0;
}
.rhea-settings-pack-option b{
  color:var(--ink);
  font-size:.72rem;
  font-weight:950;
}
.rhea-settings-pack-option small{
  color:var(--muted);
  font-size:.59rem;
  font-weight:850;
  line-height:1.25;
}
.rhea-settings-pack-option.selected{
  border-color:color-mix(in srgb,#7FA486 58%,var(--blue))!important;
  background:linear-gradient(135deg,color-mix(in srgb,#7FA486 16%,#fff),var(--surface))!important;
  box-shadow:0 0 0 2px color-mix(in srgb,#7FA486 18%,transparent),0 8px 16px rgba(60,88,70,.07);
}
.rhea-settings-pack-option:focus-within{
  outline:3px solid color-mix(in srgb,var(--blue) 34%,transparent);
  outline-offset:2px;
}
.rhea-settings-reminder{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  align-items:start;
  gap:9px;
  min-width:0;
  padding:10px 11px;
  border:1px solid color-mix(in srgb,#7FA486 24%,var(--line));
  border-radius:14px;
  background:color-mix(in srgb,#7FA486 6%,#fff);
  cursor:pointer;
}
.rhea-settings-reminder input{
  width:18px;
  height:18px;
  margin:1px 0 0;
  accent-color:#168859;
}
.rhea-settings-reminder span{
  display:grid;
  gap:3px;
  min-width:0;
}
.rhea-settings-reminder b{
  color:var(--ink);
  font-size:.76rem;
  font-weight:950;
}
.rhea-settings-reminder small{
  color:var(--muted);
  font-size:.66rem;
  font-weight:800;
  line-height:1.3;
}
.rhea-settings-time .time-field{
  width:100%;
}
.rhea-settings-time .time-field-trigger{
  width:100%!important;
  min-height:46px!important;
  justify-content:space-between;
  border-radius:14px!important;
}
.rhea-pill-weekdays,
.rhea-pill-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:7px;
}
.rhea-pill-weekdays span{
  color:var(--muted);
  font-size:.64rem;
  font-weight:950;
  text-align:center;
}
.rhea-pill-grid button{
  position:relative;
  display:grid;
  place-items:center;
  min-width:0!important;
  width:auto!important;
  aspect-ratio:1;
  padding:0!important;
  border:1px solid transparent;
  border-radius:50%;
  background:color-mix(in srgb,#7FA486 22%,#fff);
  color:#345E40;
  font-size:.78rem;
  font-weight:950;
  box-shadow:0 8px 14px rgba(60,88,70,.06);
}
.rhea-pill-pack-grid{
  align-items:center;
}
.rhea-pill-blank{
  display:block;
  min-width:0;
  aspect-ratio:1;
}
.rhea-pill-grid button.inactive-pill{
  border-color:color-mix(in srgb,var(--muted) 22%,transparent);
  background:color-mix(in srgb,var(--muted) 20%,#fff);
  color:var(--muted);
}
.rhea-pill-grid button.future{
  opacity:.58;
}
.rhea-pill-grid button.muted{
  opacity:.42;
}
.rhea-pill-grid button:disabled{
  cursor:not-allowed;
  opacity:.28;
  box-shadow:none;
}
.rhea-pill-grid button.taken{
  border-color:color-mix(in srgb,#168859 54%,transparent);
  background:#7FA486;
  color:#fff;
}
.rhea-pill-grid button.missed{
  border-color:color-mix(in srgb,#E53F44 44%,transparent);
  background:#F0444A;
  color:#fff;
}
.rhea-pill-grid button.today{
  box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 18%,transparent),0 8px 16px rgba(60,88,70,.08);
}
.rhea-pill-grid button.phase-change{
  border-color:color-mix(in srgb,var(--pink,#E56B92) 70%,var(--line));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--pink,#E56B92) 20%,transparent),0 8px 16px rgba(60,88,70,.08);
}
.rhea-pill-grid button.phase-change:after{
  position:absolute;
  inset:-5px;
  border:1.5px dashed color-mix(in srgb,var(--pink,#E56B92) 78%,transparent);
  border-radius:50%;
  content:"";
  pointer-events:none;
}
.rhea-pill-grid button.rest-start{
  box-shadow:0 0 0 3px color-mix(in srgb,var(--orange) 18%,transparent),0 8px 16px rgba(60,88,70,.08);
}
.rhea-pill-grid button em{
  position:absolute;
  left:50%;
  top:-8px;
  padding:1px 5px;
  border-radius:999px;
  background:color-mix(in srgb,var(--orange) 18%,#fff);
  color:#805011;
  font-size:.46rem;
  font-style:normal;
  font-weight:950;
  line-height:1.15;
  white-space:nowrap;
  transform:translateX(-50%);
}
.rhea-pill-grid button.rest-start.phase-change em{
  top:-19px;
}
.rhea-pill-grid button i{
  position:absolute;
  left:50%;
  top:-9px;
  max-width:66px;
  padding:1px 5px;
  border-radius:999px;
  background:color-mix(in srgb,var(--pink,#E56B92) 18%,#fff);
  color:color-mix(in srgb,var(--pink,#E56B92) 70%,#25345D);
  font-size:.47rem;
  font-style:normal;
  font-weight:950;
  line-height:1.2;
  white-space:nowrap;
  transform:translateX(-50%);
}
.rhea-pill-grid button small{
  position:absolute;
  right:-4px;
  bottom:-2px;
  min-width:20px;
  padding:1px 4px;
  border-radius:999px;
  background:var(--surface);
  color:var(--muted);
  font-size:.46rem;
  font-weight:950;
}
.rhea-pill-legend{
  display:flex;
  flex-wrap:wrap;
  gap:6px 9px;
}
.rhea-pill-legend span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--muted);
  font-size:.6rem;
  font-weight:900;
}
.rhea-pill-legend span:before{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--line);
  content:"";
}
.rhea-pill-legend .taken:before{background:#7FA486}
.rhea-pill-legend .missed:before{background:#F0444A}
.rhea-pill-legend .active-pill:before{background:color-mix(in srgb,#7FA486 35%,#fff)}
.rhea-pill-legend .inactive-pill:before{background:color-mix(in srgb,var(--muted) 28%,#fff)}
.rhea-pill-legend .today:before{box-shadow:0 0 0 2px color-mix(in srgb,var(--blue) 32%,transparent);background:#fff}
.rhea-pill-legend .phase-change:before{border:1px dashed var(--blue);background:#fff}
.macro-micro{
  --tone:#6f63d6;
}
.macro-micro>span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.macro-micro b i{
  font-size:.76rem!important;
}
.macro-micro small i{
  font-size:.54rem!important;
}
.macro-micro.micro-ok{
  --tone:#0a9b50;
}
.macro-micro.micro-watch,
.macro-micro.micro-low{
  --tone:#dc9215;
}
.macro-micro.micro-critical,
.macro-micro.micro-high{
  --tone:#e24d46;
}
.rhea-secondary-row{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:7px;
  align-items:center;
}
.rhea-secondary-row button:not(.cycle-info-button){
  min-width:0;
  min-height:38px;
  padding:0 10px;
  border:1px solid color-mix(in srgb,var(--pink,#E56B92) 18%,var(--line));
  border-radius:999px;
  background:rgba(255,255,255,.78);
  color:var(--ink);
  box-shadow:0 10px 22px rgba(80,42,72,.055);
  font-size:.68rem;
  font-weight:950;
  line-height:1.08;
}
.rhea-secondary-row .cycle-info-button{
  justify-self:start;
}
.rhea-cycle-copy{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:5px 10px;
  align-items:center;
  padding:11px;
  border:1px solid color-mix(in srgb,var(--pink,#E56B92) 18%,var(--line));
  border-radius:16px;
  background:rgba(255,255,255,.58);
}
.rhea-cycle-copy b{
  color:var(--ink);
  font-size:.76rem;
  font-weight:950;
}
.rhea-cycle-copy p{
  grid-column:1 / -1;
  margin:0;
  color:var(--text);
  font-size:.75rem;
  font-weight:800;
  line-height:1.38;
}
.rhea-cycle-copy button{
  min-height:32px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  font-size:.64rem!important;
}
.rhea-refresh-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px 10px;
  align-items:center;
  padding:11px;
  border:1px solid color-mix(in srgb,var(--green) 32%,var(--line));
  border-radius:16px;
  background:linear-gradient(135deg,rgba(232,255,241,.92),rgba(255,255,255,.72));
  box-shadow:0 12px 26px rgba(39,150,96,.08);
}
.rhea-refresh-card b{
  color:#246044;
  font-size:.77rem;
  font-weight:950;
}
.rhea-refresh-card p{
  margin:2px 0 0;
  color:var(--text);
  font-size:.72rem;
  font-weight:800;
  line-height:1.32;
}
.rhea-refresh-card button{
  min-height:34px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  font-size:.65rem!important;
}
.cycle-start-date-modal input[type="date"]{
  min-height:50px!important;
  font-size:16px!important;
  line-height:1.2!important;
}
.rhea-activation-start input[type="date"]{
  min-height:50px!important;
  font-size:16px!important;
  line-height:1.2!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-switch{
  border-color:rgba(139,160,255,.26)!important;
  background:#172641!important;
  color:#DDE6FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-switch span{
  background:#263653;
  box-shadow:inset 0 0 0 1px rgba(139,160,255,.22);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-switch.active{
  border-color:rgba(63,213,151,.36)!important;
  background:linear-gradient(135deg,#0D7D5B,#2EBB86)!important;
  color:#F4FFF9!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-switch.active span{
  background:#3FD597;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-contraceptive-title-toggle{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-contraceptive-title-copy b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-secondary-row button:not(.cycle-info-button){
  border-color:rgba(139,160,255,.22)!important;
  background:#172641!important;
  color:#DDE6FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-start-action.needs-attention{
  border-color:rgba(250,170,75,.62)!important;
  background:rgba(250,170,75,.12)!important;
  color:#F6E9D5!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-card-description,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-cycle-copy p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-current-phase em,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-phase-story em{
  color:#DDE6FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-cycle-alert{
  border-color:rgba(255,181,94,.38)!important;
  background:rgba(255,181,94,.12)!important;
  color:#FFD59A!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-current-phase.cycle-overdue{
  border-color:rgba(255,181,94,.32)!important;
  background:#1D243A!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-cycle-copy{
  border-color:rgba(139,160,255,.22)!important;
  background:#12213A!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-cycle-copy b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-refresh-card{
  border-color:rgba(63,213,151,.28)!important;
  background:#102B28!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-refresh-card b{
  color:#DDFBEF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-refresh-card p{
  color:#DDE6FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-contraceptive-card{
  border-color:rgba(139,160,255,.22)!important;
  background:linear-gradient(135deg,rgba(18,34,61,.96),rgba(28,32,52,.9))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-calendar-config b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-calendar-config span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-calendar-config .rhea-pill-cycle-phase,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-weekdays span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-legend span{
  color:#C7D4F4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-calendar,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-phase-line{
  border-color:rgba(139,160,255,.22)!important;
  background:#172641!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-phase-line span{
  color:#DDE6FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-phase-line b{
  color:#8EA2FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-grid button{
  background:rgba(127,164,134,.22)!important;
  color:#DDE6FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-grid button.inactive-pill{
  background:rgba(180,190,210,.18)!important;
  color:#C7D1EA!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-grid button.future{
  opacity:.62!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-grid button.taken{
  border-color:rgba(63,213,151,.6)!important;
  background:#25895F!important;
  color:#fff!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-grid button.missed{
  border-color:rgba(255,120,128,.64)!important;
  background:#B73542!important;
  color:#fff!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-grid button i{
  background:#8EA2FF!important;
  color:#081126!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-grid button em{
  background:#F6B457!important;
  color:#081126!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-grid button small{
  background:#081126!important;
  color:#DDE6FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-legend .today:before,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-legend .phase-change:before{
  background:#081126!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-calendar-config{
  border-color:rgba(139,160,255,.28)!important;
  background:linear-gradient(135deg,#172641,#12213A)!important;
  color:#F7F9FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-calendar-config b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-calendar-config span{
  color:#C7D4F4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-pill-calendar-config .rhea-pill-cycle-phase{
  color:#8EA2FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-settings-phase{
  background:rgba(63,213,151,.14)!important;
  color:#B8F4D8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-settings-pack-field legend,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-settings-date>span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-settings-time>span{
  color:#C7D4F4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-settings-date input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-settings-time .time-field-trigger{
  border-color:rgba(139,160,255,.28)!important;
  background:#0D1A2E!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-settings-pack-option{
  border-color:rgba(139,160,255,.24)!important;
  background:#172641!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-settings-pack-option b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-settings-pack-option small{
  color:#AEBBDD!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-settings-pack-option.selected{
  border-color:rgba(63,213,151,.58)!important;
  background:linear-gradient(135deg,rgba(35,129,96,.3),#172641)!important;
  box-shadow:0 0 0 2px rgba(63,213,151,.16)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-settings-reminder{
  border-color:rgba(139,160,255,.24)!important;
  background:#12213A!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-settings-reminder b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-settings-reminder small{
  color:#C7D4F4!important;
}
.cycle-access-actions{display:grid;grid-template-columns:auto minmax(120px,1fr);gap:8px;align-items:end}
.cycle-reminder-time{display:grid;gap:4px;min-width:0}
.cycle-reminder-time small{color:var(--muted);font-size:.62rem;font-weight:900;text-transform:uppercase}
.cycle-access-actions input{min-height:36px;border-radius:12px}
.cycle-qa-sheet{display:grid;gap:14px}
.cycle-qa-sheet .sheet-title{display:grid;gap:5px}
.cycle-qa-sheet .sheet-title p:not(.eyebrow){max-width:42ch;color:var(--muted);font-size:.82rem;line-height:1.45}
.cycle-qa-options{display:grid;gap:9px}
.cycle-qa-options button{display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;align-items:start;justify-items:start;gap:4px 9px;min-height:68px;padding:11px 12px;border-radius:16px;text-align:left;white-space:normal;overflow:hidden}
.cycle-qa-mark{grid-row:1/3;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:color-mix(in srgb,var(--pink,#E56B92) 16%,#fff);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pink,#E56B92) 32%,var(--line))}
.cycle-qa-mark:after{width:8px;height:8px;border-radius:50%;background:var(--pink,#E56B92);content:""}
.cycle-qa-options b{display:block;min-width:0;max-width:100%;color:var(--ink);font-size:.88rem;line-height:1.12;white-space:normal;overflow-wrap:break-word}
.cycle-qa-options small{display:block;min-width:0;max-width:100%;color:var(--muted);font-size:.74rem;line-height:1.35;white-space:normal;overflow-wrap:break-word}
.cycle-comfort-card{border-color:color-mix(in srgb,var(--pink,#E56B92) 24%,var(--line))!important;background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--pink,#E56B92) 6%,#fff))!important}
.cycle-comfort-card .meal-icon{background:color-mix(in srgb,var(--pink,#E56B92) 14%,#fff);color:var(--pink,#E56B92)}
.cycle-comfort-card .meal-goal{color:var(--pink,#E56B92);font-weight:950}
.cycle-info-sheet{display:grid;gap:13px}
.cycle-info-sheet .sheet-title p{color:var(--muted);font-size:.8rem;line-height:1.45}
.cycle-info-block{display:grid;gap:9px}
.cycle-info-block h3{color:var(--blue-deep);font-size:.76rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.cycle-info-list{display:grid;gap:9px}
.cycle-info-list article{display:grid;gap:7px;padding:11px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}
.cycle-info-list article>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.cycle-info-list b{color:var(--ink);font-size:.9rem}
.cycle-info-list span{color:var(--blue-deep);font-size:.72rem;font-weight:950;text-align:right;text-transform:uppercase}
.cycle-info-list p,.cycle-info-note{color:var(--text);font-size:.78rem;line-height:1.48}
.cycle-info-note{padding:11px;border:1px solid color-mix(in srgb,var(--pink,#E56B92) 20%,var(--line));border-radius:15px;background:color-mix(in srgb,var(--pink,#E56B92) 7%,#fff)}
.profile-cycle-priority-notice{display:grid;gap:8px;padding:12px;border:1px solid color-mix(in srgb,var(--pink,#E56B92) 24%,var(--line));border-radius:16px;background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--pink,#E56B92) 7%,#fff));box-shadow:var(--shadow-soft)}
.profile-cycle-priority-notice header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.profile-cycle-priority-notice b{color:var(--ink);font-size:.86rem}
.profile-cycle-priority-notice header span{display:inline-grid;place-items:center;min-width:42px;height:28px;padding:0 9px;border-radius:999px;background:var(--blue);color:#fff;font-size:.72rem;font-weight:950}
.profile-cycle-priority-notice p{color:var(--text);font-size:.78rem;line-height:1.4}
.profile-cycle-priority-notice .profile-cycle-active-priorities{padding:8px 9px;border-radius:12px;background:rgba(102,127,255,.10);color:var(--blue-deep);font-weight:850}
.profile-cycle-priority-notice .profile-cycle-active-priorities b{font-size:.78rem}
.profile-cycle-priority-notice small{color:var(--muted);font-size:.72rem;line-height:1.35}
.profile-cycle-priority-notice>div{display:flex;flex-wrap:wrap;gap:7px}
.profile-cycle-priority-notice [data-profile-cycle-draft]{min-width:44px;min-height:44px}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-cycle-priority-notice{
  border-color:rgba(139,160,255,.26)!important;
  background:linear-gradient(135deg,rgba(18,34,61,.96),rgba(26,43,70,.92))!important;
  box-shadow:0 14px 30px rgba(0,0,0,.22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-cycle-priority-notice b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-cycle-priority-notice p{
  color:#DDE6FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-cycle-priority-notice .profile-cycle-active-priorities{
  background:rgba(142,162,255,.14)!important;
  color:#DDE6FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-cycle-priority-notice small{
  color:#AEBBDD!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-cycle-priority-notice header span{
  background:#8EA2FF!important;
  color:#081126!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-cycle-priority-notice .soft{
  border-color:rgba(139,160,255,.34)!important;
  background:#8EA2FF!important;
  color:#081126!important;
}
@media(max-width:430px){.menstrual-cycle-card.locked,.menstrual-cycle-card header,.cycle-access-actions{grid-template-columns:1fr}.cycle-mode-actions{justify-content:stretch}.cycle-mode-actions button{flex:1 1 calc(50% - 7px);min-width:0}.cycle-mode-actions .cycle-info-button{flex:0 0 36px;width:36px;min-width:36px}.cycle-action-row{grid-template-columns:1fr}.rhea-card-v2 .rhea-card-head{display:block!important;min-height:100px;padding-right:92px!important}.rhea-card-v2 .rhea-contraceptive-head{min-height:76px!important}.rhea-card-v2 .rhea-switch{width:auto!important;min-width:82px!important;justify-self:end}.rhea-action-row{grid-template-columns:repeat(2,minmax(0,1fr))}.rhea-secondary-row{grid-template-columns:36px minmax(0,1fr)}.cycle-phase-grid{grid-template-columns:1fr}.rhea-info-grid .rhea-current-phase,.rhea-info-grid .rhea-phase-story{grid-column:auto}.rhea-contraceptive-body{grid-template-columns:1fr}.rhea-contraceptive-body button{width:100%}.rhea-refresh-card{grid-template-columns:1fr}.rhea-refresh-card button{width:100%}.cycle-info-list article>div{display:grid}.cycle-info-list span{text-align:left}.menstrual-cycle-card button{width:100%}.menstrual-cycle-card .cycle-info-button{width:36px}.menstrual-cycle-card .rhea-switch{width:auto!important}.rhea-current-phase .soft.small,.rhea-phase-story .soft.small{width:100%}}
@media(max-width:430px){.rhea-pill-grid button{width:auto!important}.rhea-pill-phase-line{font-size:.64rem}}
@media(max-width:430px){.rhea-card-v2 .rhea-card-head>div{max-width:212px}}

/* Profile detail disclosure: keeps Agora/Dieta compact without adding a wrapper card. */
.profile-goal-disclosure{
  display:block;
  margin:6px 0 2px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.profile-goal-disclosure>summary{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  box-sizing:border-box;
  min-width:max-content;
  min-height:30px;
  margin-left:18px;
  padding:0 6px;
  list-style:none;
  border:0;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}
.profile-goal-disclosure>summary::-webkit-details-marker{
  display:none;
}
.profile-goal-disclosure>summary:focus{
  outline:0;
}
.profile-goal-disclosure>summary:focus-visible .profile-goal-disclosure-arrow{
  outline:2px solid color-mix(in srgb,var(--blue) 36%,transparent);
  outline-offset:3px;
}
.profile-goal-disclosure-label{
  flex:0 0 auto;
  color:var(--blue-deep);
  font-size:.7rem;
  font-weight:950;
  letter-spacing:0;
  line-height:1;
}
.profile-goal-disclosure-arrow{
  position:relative;
  display:grid;
  place-items:center;
  flex:0 0 24px;
  width:24px;
  min-width:24px;
  max-width:24px;
  height:24px;
  min-height:24px;
  border-radius:50%;
  background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--blue) 10%,#fff));
  color:var(--blue);
  box-shadow:0 8px 18px rgba(75,45,80,.08),inset 0 0 0 1px color-mix(in srgb,var(--blue) 18%,transparent);
  transition:transform .18s ease,color .18s ease,background .18s ease,box-shadow .18s ease;
}
.profile-goal-disclosure-arrow:before{
  position:absolute;
  top:50%;
  left:50%;
  display:block;
  width:6px;
  height:6px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  content:"";
  transform:translate(-50%,-62%) rotate(45deg);
}
.profile-goal-disclosure>summary:hover .profile-goal-disclosure-arrow{background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--blue) 10%,#fff));color:var(--blue);box-shadow:0 8px 18px rgba(75,45,80,.08),inset 0 0 0 1px color-mix(in srgb,var(--blue) 18%,transparent)}
.profile-goal-disclosure[open] .profile-goal-disclosure-arrow{
  transform:rotate(180deg);
}
#homeScreen .profile-goal-disclosure>.profile-goal-row{
  margin-top:8px!important;
}
#planScreen .profile-goal-disclosure>.profile-goal-row{
  margin-top:8px!important;
}
#planScreen .plan-preview-hero .profile-goal-disclosure{
  margin:2px 0 5px;
  max-width:100%;
  overflow-x:hidden;
  contain:inline-size;
}
#planScreen .plan-preview-hero .profile-goal-disclosure>.profile-goal-row{
  margin-bottom:0!important;
}
/* Metas closed state mirrors "A fonte da vida" so the stacked cards breathe evenly. */
.macro-disclosure-stack{
  margin:12px 0 12px!important;
}
.macro-disclosure-card{
  border:1px solid color-mix(in srgb,var(--pink,#E56B92) 22%,var(--line))!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--pink,#E56B92) 8%,#fff))!important;
  box-shadow:var(--shadow-soft)!important;
}
.macro-disclosure-card>summary{
  grid-template-columns:minmax(0,1fr) auto 34px!important;
  gap:10px!important;
  min-height:58px!important;
  padding:12px 13px!important;
}
.macro-disclosure-card>summary span{
  color:var(--ink)!important;
  font-size:.92rem!important;
  font-weight:950!important;
  line-height:1.12!important;
}
.macro-disclosure-card>summary b{
  color:var(--muted)!important;
  font-size:.66rem!important;
  font-weight:950!important;
  line-height:1.1!important;
}
.macro-disclosure-card>summary:after{
  width:34px!important;
  height:34px!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.78)!important;
  color:var(--ink)!important;
  box-shadow:0 10px 22px rgba(75,45,80,.09)!important;
  font-size:1.05rem!important;
}
.macro-disclosure-card:not([open]){
  min-height:0!important;
}
.macro-disclosure-card:not([open]) .macro-disclosure-body{
  display:none!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-stack{
  width:calc(100% - 42px)!important;
  margin-right:auto!important;
  margin-left:auto!important;
}
#planSummary .macro-disclosure-stack{
  width:calc(100% - 42px)!important;
  margin-right:auto!important;
  margin-left:auto!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-card:not([open]){
  height:71px!important;
  max-height:71px!important;
}
#planSummary .macro-disclosure-card:not([open]){
  height:71px!important;
  max-height:71px!important;
}
#planSummary:has(.macro-disclosure-card:not([open])){
  min-height:0!important;
  padding:0!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .macro-disclosure-card{
  border-color:rgba(240,189,208,.18)!important;
  background:linear-gradient(180deg,#111D33,#0F192D)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .macro-disclosure-card>summary:after{
  background:#1B2941!important;
  color:#F0BDD0!important;
}

/* Profile header surface: identity and carousel dots live directly on the page background. */
#homeScreen .home-profile-summary,
#planScreen .home-profile-summary{
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
#homeScreen .home-profile-summary .profile-person,
#planScreen .home-profile-summary .profile-person,
#homeScreen .profile-info-carousel + .carousel-dots.profile-carousel-dots,
#planScreen .profile-info-carousel + .carousel-dots.profile-carousel-dots{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#homeScreen .profile-info-carousel + .carousel-dots.profile-carousel-dots,
#planScreen .profile-info-carousel + .carousel-dots.profile-carousel-dots{
  padding:0!important;
}

/* Diet meal rail: keep the meal cards draggable/scrollable when JS marks it as a carousel. */
#planScreen #mealList[data-home-carousel]{
  display:grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:minmax(286px,min(82vw,344px))!important;
  grid-template-columns:none!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain;
  scroll-padding-left:0;
  scroll-snap-type:x proximity!important;
  scrollbar-width:none;
  touch-action:pan-x pan-y;
  -webkit-overflow-scrolling:touch;
}
#planScreen #mealList[data-home-carousel]::-webkit-scrollbar{
  display:none;
}
#planScreen #mealList[data-home-carousel]>*{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  scroll-snap-align:start!important;
}
#planScreen #mealList[data-home-carousel] + .carousel-dots{
  display:flex!important;
}
@media(min-width:760px){
  #planScreen #mealList[data-home-carousel]{
    grid-auto-columns:minmax(300px,360px)!important;
  }
}

/* Diet Cronos rail: independent Dieta contract with the same behavior as Agora Cronos. */
#planScreen .plan-preview-hero .profile-goal-row.plan-goal-carousel[data-home-carousel="planGoals"]{
  display:flex!important;
  grid-template-columns:none!important;
  gap:12px!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  margin:6px 0 0!important;
  padding:0 14px 6px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain;
  mask-image:none!important;
  scroll-padding-left:14px!important;
  scroll-snap-type:x mandatory!important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
#planScreen .plan-preview-hero .profile-goal-row.plan-goal-carousel[data-home-carousel="planGoals"]::-webkit-scrollbar{
  display:none;
}
#planScreen .plan-preview-hero .profile-goal-row.plan-goal-carousel[data-home-carousel="planGoals"] .plan-goal-card{
  flex:0 0 clamp(154px,45vw,178px)!important;
  width:clamp(154px,45vw,178px)!important;
  min-width:clamp(154px,45vw,178px)!important;
  max-width:178px!important;
  min-height:68px!important;
  padding:12px 13px!important;
  border-radius:18px!important;
  scroll-snap-align:start!important;
}
#planScreen .plan-preview-hero .profile-goal-row.plan-goal-carousel[data-home-carousel="planGoals"]:after{
  display:block;
  flex:0 0 2px;
  content:"";
}
#planScreen .plan-preview-hero .profile-goal-row.plan-goal-carousel[data-home-carousel="planGoals"] .plan-goal-card span{
  font-size:.63rem!important;
}
#planScreen .plan-preview-hero .profile-goal-row.plan-goal-carousel[data-home-carousel="planGoals"] .plan-goal-card b{
  font-size:.82rem!important;
  line-height:1.16!important;
}
#planScreen .plan-preview-hero .profile-goal-row.plan-goal-carousel[data-home-carousel="planGoals"] + .carousel-dots{
  display:flex!important;
  margin:0 0 2px!important;
}
@media(min-width:760px){
  #planScreen .plan-preview-hero .profile-goal-row.plan-goal-carousel[data-home-carousel="planGoals"] .plan-goal-card{
    flex-basis:178px!important;
    width:178px!important;
    min-width:178px!important;
  }
}

/* Cronos goal cards: independent Agora rail. */
#homeScreen [data-profile-goal-row="cronos"]{
  display:flex!important;
  grid-template-columns:none!important;
  gap:12px!important;
  width:calc(100% + 28px)!important;
  margin:6px -14px 0!important;
  padding:0 14px 6px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain;
  scroll-padding-left:14px!important;
  scroll-snap-type:x mandatory!important;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
#homeScreen [data-profile-goal-row="cronos"]::-webkit-scrollbar{
  display:none;
}
#homeScreen [data-profile-goal-row="cronos"]>div{
  flex:0 0 clamp(154px,45vw,178px)!important;
  width:clamp(154px,45vw,178px)!important;
  min-width:clamp(154px,45vw,178px)!important;
  max-width:178px!important;
  scroll-snap-align:start!important;
}
#homeScreen [data-profile-goal-row="cronos"]:after{
  display:block;
  flex:0 0 2px;
  content:"";
}
#homeScreen [data-profile-goal-row="cronos"] + .carousel-dots{
  margin:0 0 2px!important;
}

/* Agora polish: compact the Rhea/Metas stack without changing the visual identity. */
#homeScreen #homeProfile.profile-card{
  padding:12px 14px 10px!important;
  border-radius:20px!important;
  box-shadow:none!important;
}
#homeScreen .profile-goal-disclosure{
  margin:2px 0 5px!important;
}
#homeScreen .profile-goal-disclosure>summary{
  min-height:38px!important;
  margin-left:18px!important;
  padding:0 8px!important;
}
#homeScreen .profile-goal-disclosure-label{
  font-size:.72rem!important;
}
#homeScreen .profile-goal-disclosure-arrow{
  flex:0 0 26px!important;
  width:26px!important;
  min-width:26px!important;
  max-width:26px!important;
  height:26px!important;
  min-height:26px!important;
  box-shadow:0 7px 16px rgba(75,45,80,.07),inset 0 0 0 1px color-mix(in srgb,var(--pink,#E56B92) 16%,transparent)!important;
}
#homeScreen .menstrual-cycle-card{
  margin-top:5px!important;
  border-color:transparent!important;
  border-radius:16px!important;
  background:transparent!important;
  box-shadow:none!important;
}
#homeScreen .cycle-source-summary{
  gap:8px!important;
  min-height:38px!important;
  margin-left:18px!important;
  padding:0 8px!important;
}
#homeScreen .cycle-source-summary span{
  font-size:.72rem!important;
}
#homeScreen .cycle-source-arrow{
  width:26px!important;
  height:26px!important;
  box-shadow:0 8px 18px rgba(75,45,80,.07)!important;
}
#homeScreen .cycle-source-body{
  gap:8px!important;
  margin:4px 12px 12px!important;
  padding:12px!important;
  border:1px solid color-mix(in srgb,var(--pink,#E56B92) 16%,var(--line))!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.72),color-mix(in srgb,var(--pink,#E56B92) 7%,#fff))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.74),0 10px 24px rgba(75,45,80,.04)!important;
}
#homeScreen .menstrual-cycle-card header{
  gap:8px!important;
}
#homeScreen .menstrual-cycle-card h3{
  font-size:.94rem!important;
}
#homeScreen .menstrual-cycle-card span{
  font-size:.72rem!important;
}
#homeScreen .home-tabs{
  gap:6px!important;
  margin:9px 0 8px!important;
  padding:3px!important;
  border:1px solid rgba(229,107,146,.08)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.54)!important;
  box-shadow:0 8px 18px rgba(75,45,80,.04)!important;
}
#homeScreen .home-tabs button{
  min-height:36px!important;
  padding:0 12px!important;
  font-size:.76rem!important;
  box-shadow:none!important;
}
#homeScreen .home-tabs .active{
  transform:none!important;
  box-shadow:0 8px 18px rgba(75,45,80,.11)!important;
}
#homeScreen #todayPanel.today-card{
  margin-top:0!important;
  margin-bottom:8px!important;
  padding-top:0!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-stack{
  width:calc(100% - 36px)!important;
  margin:8px auto 10px!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-card{
  border-radius:16px!important;
  box-shadow:0 8px 20px rgba(75,45,80,.06)!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-card>summary{
  grid-template-columns:minmax(0,1fr) auto 30px!important;
  gap:8px!important;
  min-height:52px!important;
  padding:8px 12px!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-card>summary span{
  font-size:.9rem!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-card>summary b{
  font-size:.62rem!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-card>summary:after{
  width:30px!important;
  height:30px!important;
  font-size:.98rem!important;
  box-shadow:0 8px 18px rgba(75,45,80,.07)!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-card.home>summary{
  grid-template-columns:minmax(0,1fr) 30px!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-card.home>summary span{
  font-size:1rem!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-card:not([open]){
  height:58px!important;
  max-height:58px!important;
}

:root:not(:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) .meal-card>.meal-remove-button{
  border:1px solid rgba(185,46,56,.20)!important;
  background:#FFE8EA!important;
  color:#B72F39!important;
}

/* Final Agora/Dieta spacing: Metas stays slim; Rhea follows Cronos in the home profile. */
#homeScreen #homeProfile.profile-card{
  padding-bottom:6px!important;
}
#homeScreen .profile-goal-disclosure{
  margin-bottom:2px!important;
}
#homeScreen #todayPanel.today-card{
  margin-top:-3px!important;
  margin-bottom:4px!important;
  padding-bottom:4px!important;
}
#homeScreen #todayPanel .home-nutrient-focus:has(.macro-disclosure-card:not([open])){
  margin-bottom:6px!important;
}
#homeScreen .home-macro-carousel{
  margin:0!important;
  padding:0!important;
  min-height:0!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-stack{
  width:calc(100% - 28px)!important;
  margin:3px auto 0!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-card{
  border-radius:16px!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-card>summary{
  min-height:48px!important;
  padding:7px 12px!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-card>summary:after{
  width:30px!important;
  height:30px!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-card:not([open]){
  height:52px!important;
  max-height:52px!important;
}
#homeScreen .home-macro-carousel + .today-meal-list,
#homeScreen #todayPanel .home-nutrient-focus:has(.macro-disclosure-card:not([open])) + .today-meal-list,
#homeScreen .today-meal-list[data-home-carousel]{
  margin-top:0!important;
  padding-top:0!important;
}
#homeScreen .today-meal-list + .carousel-dots{
  margin-top:0!important;
}
#planScreen .plan-preview-hero .menstrual-cycle-card{
  margin:5px 0 8px!important;
  box-sizing:border-box!important;
  max-width:100%!important;
  border-color:transparent!important;
  border-radius:16px!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow-x:hidden!important;
  contain:inline-size;
}
#planScreen .plan-preview-hero .cycle-source-summary{
  gap:8px!important;
  min-height:27px!important;
  margin-left:18px!important;
  padding:0 5px!important;
}
#planScreen .plan-preview-hero .cycle-source-summary span{
  font-size:.68rem!important;
}
#planScreen .plan-preview-hero .cycle-source-arrow{
  width:23px!important;
  height:23px!important;
  box-shadow:0 8px 18px rgba(75,45,80,.07)!important;
}
#planScreen .plan-preview-hero .cycle-source-body{
  gap:8px!important;
  box-sizing:border-box!important;
  margin:4px 12px 12px!important;
  padding:12px!important;
  width:auto!important;
  max-width:100%!important;
  border:1px solid color-mix(in srgb,var(--pink,#E56B92) 16%,var(--line))!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.72),color-mix(in srgb,var(--pink,#E56B92) 7%,#fff))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.74),0 10px 24px rgba(75,45,80,.04)!important;
  overflow-x:hidden!important;
}
#planScreen .plan-preview-hero .menstrual-cycle-card header{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:8px!important;
}
#planScreen .plan-preview-hero .cycle-mode-actions{
  box-sizing:border-box!important;
  display:flex!important;
  flex-wrap:wrap!important;
  width:100%!important;
  max-width:100%!important;
  gap:7px!important;
  justify-content:stretch!important;
}
#planScreen .plan-preview-hero .cycle-mode-actions button{
  flex:1 1 calc(50% - 7px)!important;
  min-width:0!important;
  width:auto!important;
}
#planScreen .plan-preview-hero .cycle-mode-actions .cycle-info-button{
  flex:0 0 34px!important;
  width:34px!important;
  min-width:34px!important;
}
#planScreen .plan-preview-hero .cycle-action-row{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
#planScreen .plan-preview-hero .cycle-action-row button{
  min-width:0!important;
  width:100%!important;
  padding-right:8px!important;
  padding-left:8px!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeScreen .cycle-source-body,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-preview-hero .cycle-source-body{
  border-color:rgba(139,160,255,.18)!important;
  background:linear-gradient(180deg,rgba(31,29,48,.78),rgba(42,34,57,.86))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 10px 24px rgba(0,0,0,.12)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeScreen .cycle-phase-grid span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-preview-hero .cycle-phase-grid span{
  border-color:rgba(139,160,255,.16)!important;
  background:rgba(255,255,255,.06)!important;
}

/* Calendar planning modal and future activation previews. */
.calendar-selected-line{margin:-4px 2px 0;color:var(--muted);font-size:.74rem;font-weight:800;text-align:center;text-transform:capitalize}
.calendar-selected-line b{color:var(--blue-deep)}
.calendar-day-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
.schedule-code-box{display:grid;place-items:center;min-height:58px;padding:12px;border:1px dashed rgba(102,127,255,.42);border-radius:18px;background:var(--schedule-muted-surface);color:var(--blue-deep);font-size:1.2rem;font-weight:950;letter-spacing:.08em}
.calendar-event-menu-preview{display:grid;gap:7px;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--schedule-muted-surface)}
.calendar-event-menu-preview b{color:var(--blue-deep)}
.calendar-event-menu-preview span{display:block;padding:9px 11px;border-radius:14px;background:var(--schedule-card-surface);color:var(--text);font-weight:850}
@media (max-width:390px){
  .calendar-day-actions{grid-template-columns:1fr}
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-selected-line b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-code-box,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-event-menu-preview b{color:#f7f9ff}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-event-menu-preview,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .calendar-event-menu-preview span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-code-box{border-color:rgba(139,160,255,.22);background:var(--schedule-card-surface);box-shadow:none}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-code-box{background:var(--schedule-day-active-surface)}
.calendar-planner-sheet .sheet{overflow:hidden}
.calendar-planner-modal{overflow:auto;padding-right:0;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.calendar-planner-modal::-webkit-scrollbar{display:none;width:0;height:0}
.calendar-hero.compact{grid-template-columns:1fr;padding:14px 16px}
.calendar-month-nav{display:grid!important;grid-template-columns:1fr!important;gap:8px;justify-items:center}
.calendar-month-title{display:grid;justify-items:center;gap:6px;width:100%}
.calendar-month-title .calendar-month-filter{width:min(100%,238px);margin:0 auto}
.calendar-shift-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:min(100%,260px)}
.calendar-month-nav .soft{width:100%;min-width:0;min-height:34px;padding:0}
.calendar-month-nav h3{font-size:1rem;line-height:1.12}
.calendar-month-nav .calendar-month-filter select{min-width:0;padding:0 22px 0 12px}
.calendar-event-list b{min-width:0;color:var(--blue-deep);font-size:.84rem;line-height:1.15}
.calendar-event-list small{grid-column:2;min-width:0;line-height:1.25}
.schedule-home-meal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.schedule-home-choice{display:grid;grid-template-columns:36px minmax(0,1fr);gap:9px;align-items:center;min-height:78px;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--schedule-card-surface);color:var(--blue-deep);text-align:left;box-shadow:var(--shadow-soft)}
.schedule-home-choice b{font-size:.86rem}
.schedule-home-choice small{display:block;margin-top:2px;color:var(--muted);font-size:.68rem;font-weight:850}
.schedule-footer-actions.one{grid-template-columns:1fr}
.schedule-footer-actions{
  grid-template-columns:repeat(auto-fit,minmax(112px,1fr));
}
.schedule-footer-actions button{
  min-width:0;
  padding-inline:10px;
  white-space:normal;
  line-height:1.12;
}
.schedule-footer-actions .soft{border:1.5px solid rgba(102,127,255,.42);background:#fff;color:var(--blue-deep);box-shadow:0 8px 18px rgba(41,61,102,.06)}
.schedule-footer-actions .soft:active{border-color:var(--blue);background:var(--blue-soft)}
.schedule-home-selected-card{display:grid;flex:0 0 auto;grid-template-columns:48px minmax(0,1fr);gap:10px;align-items:center;min-width:0;min-height:74px;overflow:visible;padding:12px;border:1px solid rgba(33,176,124,.22);border-radius:18px;background:linear-gradient(135deg,rgba(33,176,124,.11),rgba(255,255,255,.94))}
.schedule-home-selected-card>span{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#21b07c;color:#fff;font-weight:950}
.schedule-home-selected-card div{min-width:0}.schedule-home-selected-card b{color:var(--blue-deep)}.schedule-home-selected-card small{display:block;margin-top:2px;color:var(--muted);font-weight:850;line-height:1.25}
.schedule-selected-foods{display:grid;grid-template-columns:1fr;gap:8px;overflow:visible;padding-bottom:2px}
.schedule-selected-item{position:relative;display:grid;gap:8px;min-width:0;padding:10px 42px 10px 10px;border:1px solid rgba(33,176,124,.28);border-radius:18px;background:rgba(33,176,124,.10);color:var(--blue-deep);box-shadow:0 8px 18px rgba(41,61,102,.07)}
.schedule-selected-item-head{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;min-width:0}
.schedule-selected-foods .food-image,.schedule-food-bubbles .food-image{width:24px;height:24px;min-width:24px}
.schedule-selected-item-head .food-image{width:28px;height:28px}
.schedule-selected-foods b{min-width:0;overflow-wrap:anywhere;font-size:.78rem;line-height:1.12;text-align:left}.schedule-selected-foods i{font-style:normal;color:#1f7f5c;font-weight:950}
.schedule-selected-item-head small{display:block;margin-top:2px;color:var(--muted);font-size:.66rem;font-weight:900;line-height:1.2}
.schedule-selected-remove{position:absolute;top:9px;right:9px;display:grid;place-items:center;width:28px;height:28px;border:1px solid rgba(33,176,124,.24);border-radius:50%;background:#fff;color:#1f7f5c;font-size:1rem;font-weight:950;line-height:1}
.schedule-amount-editor{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:6px;align-items:end}
.schedule-amount-editor>button{display:grid;place-items:center;min-width:34px;height:38px;border:1px solid rgba(33,176,124,.24);border-radius:13px;background:#fff;color:#16805b;font-size:1rem;font-weight:950}
.schedule-amount-editor label{display:grid;gap:4px;min-width:0}
.schedule-amount-editor label span{color:var(--muted);font-size:.58rem;font-weight:950;text-transform:uppercase}
.schedule-amount-editor input{width:100%;min-height:38px;padding:0 10px;border:1px solid rgba(33,176,124,.26);border-radius:13px;background:#fff;color:var(--blue-deep);font-size:.86rem;font-weight:950;text-align:center}
.schedule-amount-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.schedule-amount-presets button{min-height:30px;padding:0 6px;border:1px solid rgba(33,176,124,.22);border-radius:999px;background:#fff;color:#16805b;font-size:.64rem;font-weight:950;white-space:nowrap}
.schedule-food-picker{display:grid;flex:1 1 auto;gap:13px;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;padding-right:2px;scrollbar-width:none}
.schedule-food-picker::-webkit-scrollbar{display:none}
.schedule-food-group{display:grid;gap:8px}.schedule-food-group h3{color:var(--blue-deep);font-size:.78rem;text-transform:uppercase}
.schedule-food-bubbles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;overflow:hidden}
.schedule-food-bubbles button{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:6px;align-items:center;min-width:0;width:100%;padding:7px 10px;border:1px solid var(--line);border-radius:18px;background:var(--schedule-card-surface);color:var(--blue-deep);box-shadow:0 8px 18px rgba(41,61,102,.07)}
.schedule-food-bubbles button.selected{border-color:rgba(33,176,124,.38);background:rgba(33,176,124,.11)}
.schedule-food-bubbles b{min-width:0;overflow-wrap:anywhere;font-size:.7rem;white-space:normal;line-height:1.12;text-align:left}.schedule-food-bubbles i{color:#1f7f5c;font-style:normal;font-weight:950}
.schedule-menu-showcase{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}
.schedule-menu-card{display:grid;gap:6px;min-height:132px;padding:12px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(180deg,var(--schedule-card-surface),var(--schedule-muted-surface));box-shadow:0 12px 26px rgba(41,61,102,.08)}
.schedule-menu-showcase.partner-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.schedule-menu-card.partner{min-height:0;padding:10px;border-color:rgba(102,127,255,.22)}
.schedule-menu-card.partner.planned{border-color:rgba(33,176,124,.34);background:linear-gradient(180deg,#fff,#effcf6)}
.schedule-menu-card.partner.confirmed{border-color:rgba(33,176,124,.42);background:linear-gradient(180deg,#fff,#e8fbf3);box-shadow:0 14px 28px rgba(33,176,124,.12)}
.schedule-menu-card.partner.confirmed .partner-menu-head>span{background:#dff8ef;color:#137d58}
.schedule-menu-card.partner.confirmed .partner-menu-head small{color:#137d58}
.partner-menu-head{display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;align-items:center}
.partner-menu-head>span{display:grid;place-items:center;width:32px;height:32px;border-radius:12px;background:var(--schedule-icon-surface);color:var(--orange);font-weight:950}
.partner-menu-head b,.partner-menu-head small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.partner-menu-head b{color:var(--blue-deep);font-size:.82rem}
.partner-menu-head small{color:var(--muted);font-size:.58rem;font-weight:950;text-transform:uppercase}
.partner-menu-meta{display:block;color:var(--muted);font-size:.62rem;font-weight:850;line-height:1.25;text-transform:none}
.partner-menu-nutrition{border:1px solid rgba(102,127,255,.16);border-radius:13px;background:rgba(255,255,255,.68)}
.partner-menu-nutrition summary{cursor:pointer;padding:7px 9px;color:var(--blue-deep);font-size:.66rem;font-weight:950;list-style:none}
.partner-menu-nutrition summary::-webkit-details-marker{display:none}
.partner-menu-nutrition div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:0 9px 9px}
.partner-menu-nutrition span{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;padding:5px 7px;border-radius:10px;background:var(--schedule-muted-surface);font-size:.58rem}
.partner-menu-nutrition b{font-size:.58rem}.partner-menu-nutrition em{color:var(--blue-deep);font-style:normal;font-weight:950}
.partner-event-feedback{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px;margin-top:4px}
.partner-event-feedback button{min-height:29px;padding:0 6px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--blue-deep);font-size:.58rem;font-weight:900}
.partner-event-feedback button.active{border-color:rgba(33,176,124,.34);background:#eafaf2;color:#126846}

/* Partner route separation inside the app calendar and economy. */
.calendar-event-route.route-public span{background:#edf3ff;color:var(--blue)}
.calendar-event-route.route-closed span{background:#fff4e7;color:var(--orange)}
.calendar-event-route.route-restaurant span{background:#f1ecff;color:#6852d6}
.calendar-event-route.route-market span{background:#eaf8ef;color:#16805b}
.calendar-event-route.route-home span{background:#f6f1ff;color:#7b5fd7}
.schedule-action-card.event{border-color:rgba(247,166,83,.28);background:linear-gradient(180deg,#fff,#fff7ee)}
.schedule-action-card.restaurant{border-color:rgba(104,82,214,.22);background:linear-gradient(180deg,#fff,#f5f2ff)}
.schedule-action-card.home{border-color:rgba(33,176,124,.18);background:linear-gradient(180deg,#fff,#f2fbf6)}
.schedule-action-card.event span{background:#fff0df;color:var(--orange)}
.schedule-action-card.restaurant span{background:#eeeaff;color:#6852d6}
.schedule-action-card.home span{background:#eaf8ef;color:#16805b}
.where-buy-button{display:inline-grid;place-items:center;min-height:32px;padding:0 11px;border:1px solid rgba(33,176,124,.22);border-radius:999px;background:#effaf4;color:#126846;font-size:.68rem;font-weight:950;text-decoration:none;white-space:nowrap}
.where-buy-modal,.coexistence-modal{display:grid;gap:12px}
.where-buy-location,.coexistence-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fff,#f8faff)}
.where-buy-location b,.coexistence-card b{color:var(--blue-deep);font-size:.88rem}
.where-buy-location span,.coexistence-card small{color:var(--muted);font-size:.76rem;font-weight:820;line-height:1.35}
.where-buy-location button{grid-column:2;grid-row:1 / span 2}
.where-buy-list,.coexistence-flow-grid{display:grid;gap:9px}
.where-buy-card,.where-buy-empty,.coexistence-flow-grid article{display:grid;gap:5px;padding:12px;border:1px solid var(--line);border-radius:17px;background:#fff}
.where-buy-card{grid-template-columns:34px minmax(0,1fr) auto;align-items:center}
.where-buy-card>span,.coexistence-card>span{display:grid;place-items:center;width:34px;height:34px;border-radius:13px;background:var(--blue-soft);color:var(--blue);font-size:.74rem;font-weight:950}
.where-buy-card b,.coexistence-flow-grid b{color:var(--blue-deep);font-size:.86rem}
.where-buy-card small,.where-buy-empty span,.coexistence-flow-grid span{color:var(--muted);font-size:.74rem;font-weight:820;line-height:1.35}
.where-buy-card em{padding:7px 9px;border-radius:999px;background:#effaf4;color:#126846;font-size:.63rem;font-style:normal;font-weight:950;white-space:nowrap}
.coexistence-card.primary{grid-template-columns:42px minmax(0,1fr)}
.coexistence-card.primary>span{width:42px;height:42px;background:#fff1df;color:var(--orange)}
.coexistence-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end}.coexistence-search-row button{min-height:44px;padding:0 16px;border-radius:16px}
.coexistence-section{display:grid;gap:9px;padding:12px;border:1px solid rgba(102,127,255,.14);border-radius:20px;background:linear-gradient(180deg,#fff,#f8faff)}
.coexistence-section>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.coexistence-section>header b{color:var(--blue-deep);font-size:.86rem}.coexistence-section>header small{padding:6px 9px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:.62rem;font-weight:950;text-transform:uppercase}
.coexistence-section.friends{background:linear-gradient(180deg,#fff,#fffaf4)}
.coexistence-friend-strip{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.coexistence-friend-strip::-webkit-scrollbar{display:none}.coexistence-friend-strip button{display:grid;justify-items:center;gap:5px;min-width:62px;padding:7px;border:1px solid rgba(102,127,255,.16);border-radius:16px;background:#fff;color:var(--blue-deep);box-shadow:0 8px 18px rgba(41,61,102,.06)}.coexistence-friend-strip span{display:grid;place-items:center;width:38px;height:38px;border-radius:14px;background:#e8fbf2;color:#169767;font-size:.7rem;font-weight:950}.coexistence-friend-strip b{display:block;width:54px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.62rem}
.coexistence-empty-state{display:grid;gap:4px;padding:12px;border:1px dashed rgba(102,127,255,.25);border-radius:17px;background:#fff}.coexistence-empty-state b{color:var(--blue-deep);font-size:.82rem}.coexistence-empty-state span{color:var(--muted);font-size:.72rem;font-weight:820;line-height:1.35}.coexistence-empty-state.subtle{background:linear-gradient(180deg,#fff,#f8faff)}
.coexistence-filter-field{margin-top:2px}.coexistence-contact-list.compact:empty{display:none}
.coexistence-contact-list{display:grid;gap:8px}.coexistence-contact-list article{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px;border:1px solid rgba(102,127,255,.18);border-radius:17px;background:linear-gradient(180deg,#fff,#f8faff)}.coexistence-contact-list span{display:grid;place-items:center;width:38px;height:38px;border-radius:14px;background:#edf3ff;color:var(--blue);font-size:.7rem;font-weight:950}.coexistence-contact-list b,.coexistence-contact-list small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.coexistence-contact-list b{color:var(--blue-deep);font-size:.84rem}.coexistence-contact-list small{color:var(--muted);font-size:.68rem;font-weight:820}
.coexistence-contact-list article.accepted{border-color:rgba(22,151,103,.26);background:linear-gradient(180deg,#fff,#f4fff9)}
.coexistence-contact-list article.accepted span{background:#e8fbf2;color:#169767}
.coexistence-contact-list article.incoming{border-color:rgba(255,160,86,.42);background:linear-gradient(180deg,#fffaf3,#fff)}
.coexistence-contact-list article.incoming span{background:#fff1df;color:var(--orange)}
.coexistence-contact-list article.pending{opacity:.92}
.coexistence-modal.refined{gap:10px;padding-top:2px}
.coexistence-id-line{display:flex;align-items:center;min-height:32px;margin-right:44px;padding:2px 0 8px;border-bottom:1px solid rgba(102,127,255,.12)}
.coexistence-id-line b{overflow:hidden;color:var(--blue-deep);font-size:.84rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}
.coexistence-id-line .tiny{margin-left:auto;min-height:30px;padding:0 11px;border-radius:999px;font-size:.66rem;font-weight:950}
.coexistence-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:5px;border:1px solid rgba(102,127,255,.12);border-radius:18px;background:linear-gradient(180deg,#fff,#f8faff)}
.coexistence-tabs button{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;min-height:40px;padding:0 7px;border:0;border-radius:14px;background:transparent;color:var(--muted);font-size:.7rem;font-weight:950}
.coexistence-tabs button.active{background:var(--blue);color:#fff;box-shadow:0 10px 20px rgba(102,127,255,.18)}
.coexistence-tabs i{display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:rgba(255,255,255,.24);font-style:normal;font-size:.58rem}
.coexistence-tab-panel{display:grid;gap:10px}
.coexistence-details{display:grid;gap:8px;border:1px solid rgba(102,127,255,.14);border-radius:20px;background:linear-gradient(180deg,#fff,#f8faff);overflow:hidden}
.coexistence-details summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:0 12px;cursor:pointer;list-style:none;color:var(--blue-deep);font-size:.86rem;font-weight:950}
.coexistence-details summary::-webkit-details-marker{display:none}
.coexistence-details summary:after{display:grid;place-items:center;width:26px;height:26px;border:1px solid rgba(102,127,255,.14);border-radius:50%;background:#fff;color:var(--blue);font-size:.9rem;content:"+"}
.coexistence-details[open] summary:after{content:"-"}
.coexistence-details summary small{margin-left:auto;padding:6px 9px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:.62rem;font-weight:950;text-transform:uppercase}
.coexistence-details .coexistence-section{border:0;border-top:1px solid rgba(102,127,255,.1);border-radius:0;background:transparent}
.coexistence-top-actions{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}
.coexistence-top-actions button{min-height:40px;border-radius:999px;font-size:.72rem;font-weight:950}
.coexistence-top-actions i{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:4px;border-radius:999px;background:var(--blue);color:#fff;font-style:normal;font-size:.58rem}
.coexistence-search-panel{display:grid;gap:8px;padding:11px;border:1px solid rgba(102,127,255,.16);border-radius:19px;background:linear-gradient(180deg,#fff,#f8faff)}
.coexistence-search-control{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:7px;align-items:center}
.coexistence-search-control input{width:100%}
.coexistence-search-control button{display:grid;place-items:center;min-width:42px;height:42px;padding:0;border-radius:15px;font-size:1rem}
.coexistence-search-control button.primary{border:1px solid rgba(102,127,255,.2)!important;background:#fff!important;color:var(--blue-deep)!important;box-shadow:0 8px 18px rgba(41,61,102,.07)!important}
.coexistence-search-control button.primary:hover{border-color:rgba(102,127,255,.38)!important;box-shadow:0 10px 22px rgba(102,127,255,.12)!important}
.coexistence-search-result{display:grid;gap:8px}
.coexistence-result-card{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px;border:1px solid rgba(22,151,103,.22);border-radius:17px;background:linear-gradient(180deg,#fff,#f3fff8)}
.coexistence-result-card b,.coexistence-result-card small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.coexistence-result-card b{color:var(--blue-deep);font-size:.85rem}
.coexistence-result-card small{color:var(--muted);font-size:.68rem;font-weight:850}
.coexistence-result-state{padding:8px 10px;border-radius:999px;background:#fff1df;color:var(--orange);font-size:.62rem;text-transform:uppercase}
.coexistence-result-state.ok{background:#e8fbf2;color:#169767}
.coexistence-avatar{display:grid!important;place-items:center;overflow:hidden;width:38px!important;height:38px!important;border-radius:14px!important;background:#edf3ff!important;color:var(--blue)!important;font-size:.7rem!important;font-weight:950!important}
.coexistence-avatar img{width:100%;height:100%;object-fit:cover}
.coexistence-section.compact-panel{padding:10px}
.coexistence-section.friends{gap:8px}
.coexistence-section.restaurants{background:linear-gradient(180deg,#fff,#f8faff)}
.coexistence-restaurant-list{display:grid;gap:8px}
.coexistence-restaurant-row{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:8px;align-items:stretch;padding:8px;border:1px solid rgba(102,127,255,.16);border-radius:18px;background:#fff}
.coexistence-restaurant-main{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:9px;align-items:center;min-width:0;padding:0;border:0;background:transparent;text-align:left}
.coexistence-restaurant-main>span{display:grid;place-items:center;width:36px;height:36px;border-radius:14px;background:#f4f2ff;color:#6852d6;font-weight:950}
.coexistence-restaurant-row b,.coexistence-restaurant-row small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.coexistence-restaurant-row b{color:var(--blue-deep);font-size:.84rem}
.coexistence-restaurant-row small{color:var(--muted);font-size:.68rem;font-weight:830}
.coexistence-restaurant-row em{padding:7px 9px;border-radius:999px;background:#fff1df;color:var(--orange);font-style:normal;font-size:.62rem;font-weight:950;white-space:nowrap}
.coexistence-restaurant-fav{display:grid;place-items:center;width:40px;min-width:40px;min-height:40px;border:1px solid rgba(255,160,86,.22);border-radius:15px;background:#fffaf3;color:#bd6a1b;font-size:1rem;font-weight:950}
.coexistence-restaurant-fav.active{background:#fff1df;color:#a45408;box-shadow:0 8px 18px rgba(255,160,86,.14)}
.coexistence-clear-tests{border-color:rgba(231,109,114,.22)!important;background:rgba(231,109,114,.07)!important;color:#9b2f42!important}
.coexistence-contact-list.compact{gap:6px}
.coexistence-contact-list.compact article{grid-template-columns:34px minmax(0,1fr) auto auto;padding:8px 9px;border-radius:15px;background:#fff}
.coexistence-contact-list.compact .coexistence-avatar{width:34px!important;height:34px!important;border-radius:13px!important}
.coexistence-contact-list .plain.tiny{min-height:30px;padding:0 6px;border:0;background:transparent;font-size:.62rem;font-weight:950}
.coexistence-friend-strip button .coexistence-avatar{width:38px!important;height:38px!important}
.menu-notice-badge{position:absolute;top:10px;right:10px;z-index:3;display:grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#ff8b4a;color:#fff;font-size:.68rem;font-style:normal;font-weight:950;box-shadow:0 10px 22px rgba(255,139,74,.28)}
.coexistence-contact-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.coexistence-contact-picker button{display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;align-items:center;padding:9px;border:1px solid rgba(102,127,255,.18);border-radius:16px;background:#fff;text-align:left}.coexistence-contact-picker span{grid-row:1 / span 2;display:grid;place-items:center;width:32px;height:32px;border-radius:12px;background:#edf3ff;color:var(--blue);font-size:.62rem;font-weight:950}.coexistence-contact-picker b,.coexistence-contact-picker small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.coexistence-contact-picker b{color:var(--blue-deep);font-size:.78rem}.coexistence-contact-picker small{color:var(--muted);font-size:.62rem;font-weight:820}
.schedule-restaurant-list{display:grid;gap:10px}
.schedule-inline-fields{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:9px;align-items:end}
.schedule-name-field textarea{width:100%;min-height:86px;padding:12px 14px;border:1px solid rgba(102,127,255,.18);border-radius:17px;background:var(--schedule-field-surface,#fff);color:var(--blue-deep);font:inherit;font-weight:850;line-height:1.35;resize:none}
.schedule-restaurant-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;align-items:center;width:100%;min-height:78px;padding:13px;border:1px solid rgba(104,82,214,.2);border-radius:20px;background:linear-gradient(180deg,#fff,#f7f4ff);text-align:left;box-shadow:0 14px 30px rgba(41,61,102,.08)}
.schedule-restaurant-card>span{display:grid;place-items:center;width:42px;height:42px;border-radius:16px;background:#eeeaff;color:#6852d6;font-size:.86rem;font-weight:950}
.schedule-restaurant-card b,.schedule-restaurant-card small,.schedule-restaurant-card em{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}
.schedule-restaurant-card b{color:var(--blue-deep);font-size:.92rem}.schedule-restaurant-card small{margin-top:2px;color:var(--muted);font-size:.72rem;font-weight:820;white-space:nowrap}.schedule-restaurant-card em{margin-top:5px;color:#6852d6;font-size:.66rem;font-style:normal;font-weight:900;white-space:nowrap}
.schedule-restaurant-card.muted{background:#fff;border-color:var(--line);box-shadow:none}.schedule-restaurant-card.muted>span{background:var(--blue-soft);color:var(--blue)}
.restaurant-summary-card{gap:9px}.restaurant-time-pill{justify-self:start;padding:8px 12px;border-radius:999px;background:#fff1df;color:var(--orange);font-size:.78rem;font-weight:950}.restaurant-summary-meta{display:flex;flex-wrap:wrap;gap:7px}.restaurant-summary-meta span{padding:7px 9px;border-radius:999px;background:#f4f2ff;color:#6852d6;font-size:.66rem;font-weight:950}
.coexistence-invite-list{display:grid;gap:8px}.coexistence-invite-list article{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:16px;background:#fff}.coexistence-invite-list span{display:grid;place-items:center;width:34px;height:34px;border-radius:13px;background:#eef8ff;color:#2876d7;font-size:.62rem;font-weight:950}.coexistence-invite-list b{display:block;color:var(--blue-deep);font-size:.82rem}.coexistence-invite-list small{display:block;color:var(--muted);font-size:.68rem;font-weight:820}.coexistence-invite-list p{margin:5px 0 0;color:var(--text);font-size:.72rem;font-weight:780;line-height:1.3}.danger-text{color:#9b2f42!important}
.restaurant-detail-modal .sheet-title h2{font-size:1.32rem;line-height:1.08}
.partner-menu-stack{display:grid;gap:8px;padding:10px}.partner-menu-stack article{display:grid;gap:4px;padding:11px;border:1px solid rgba(102,127,255,.14);border-radius:16px;background:#fff}.partner-menu-stack b{color:var(--blue-deep);font-size:.86rem}.partner-menu-stack small,.partner-menu-stack span{color:var(--muted);font-size:.7rem;font-weight:820;line-height:1.3}
.app-menu-icon.coexistence{background:#eef8ff;color:#2876d7}
.app-menu-icon.coexistence:before{content:"";width:18px;height:18px;border:2px solid currentColor;border-radius:50%;box-shadow:12px 0 0 -2px currentColor}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-action-card.event,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-action-card.restaurant,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-action-card.home,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .where-buy-location,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .where-buy-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .where-buy-empty,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-section,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-empty-state,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-search-panel,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-details,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-result-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-tabs,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-restaurant-row,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-restaurant-main,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .partner-menu-stack article,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-friend-strip button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-flow-grid article,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-contact-list article,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-contact-picker button{border-color:rgba(139,160,255,.22);background:#101a30;color:#f7f9ff}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-id-line{border-color:rgba(139,160,255,.18)}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-id-line b{color:#f7f9ff}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-tabs button{color:#b9c5e4}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-search-control button.primary,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-details summary:after{border-color:rgba(139,160,255,.28)!important;background:#16243d!important;color:#f7f9ff!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .where-buy-card b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .where-buy-location b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-card b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-section>header b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-empty-state b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-result-card b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-restaurant-row b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .partner-menu-stack b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-friend-strip b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-flow-grid b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-contact-list b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-contact-picker b{color:#f7f9ff}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .where-buy-card small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .where-buy-empty span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .where-buy-location span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-card small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-empty-state span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-result-card small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-restaurant-row small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .partner-menu-stack small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .partner-menu-stack span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-flow-grid span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-contact-list small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-contact-picker small{color:#b9c5e4}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-restaurant-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-invite-list article{border-color:rgba(139,160,255,.22);background:#101a30;color:#f7f9ff}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-restaurant-card b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-invite-list b{color:#f7f9ff}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-restaurant-card small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .coexistence-invite-list small{color:#b9c5e4}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-summary-card{
  border-color:rgba(139,160,255,.24);
  background:linear-gradient(180deg,#101a30,#111d33);
  color:#f7f9ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-summary-card h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-summary-card p:not(.eyebrow){
  color:#f7f9ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-time-pill{
  background:#ffe7c8;
  color:#9a4d10;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-summary-meta span{
  border:1px solid rgba(156,170,255,.22);
  background:#e9e8ff;
  color:#5642be;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-event-actions .soft{
  border-color:rgba(139,160,255,.24);
  background:#0d1728;
  color:#f7f9ff;
}
@media(max-width:430px){
  .where-buy-card{grid-template-columns:32px minmax(0,1fr)}
  .where-buy-card em{grid-column:2;justify-self:start}
  .where-buy-location{grid-template-columns:1fr}
  .where-buy-location button{grid-column:1;grid-row:auto}
  .coexistence-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px}
  .coexistence-tabs button{min-height:38px;padding:0 3px;font-size:.59rem;line-height:1.05;white-space:nowrap}
  .coexistence-tabs i{position:absolute;top:-6px;right:-4px;background:#ff8b4a;color:#fff}
  .coexistence-restaurant-row{grid-template-columns:minmax(0,1fr) 38px}
  .coexistence-restaurant-main{grid-template-columns:34px minmax(0,1fr);gap:8px}
  .coexistence-restaurant-main em{grid-column:2;justify-self:start}
  .coexistence-restaurant-fav{width:38px;min-width:38px}
  .coexistence-top-actions{grid-template-columns:1fr 1fr}
  .coexistence-top-actions button:last-child{grid-column:1/-1}
  .coexistence-result-card{grid-template-columns:38px minmax(0,1fr)}
  .coexistence-result-card button,.coexistence-result-card .coexistence-result-state{grid-column:2;width:100%}
  .coexistence-search-row,.coexistence-contact-list article,.coexistence-contact-picker{grid-template-columns:1fr}
  .coexistence-contact-list article button{width:100%}
  .schedule-inline-fields{grid-template-columns:1fr}
  .coexistence-invite-list article{grid-template-columns:32px minmax(0,1fr);align-items:start}.coexistence-invite-list article button{grid-column:2;width:100%}.schedule-restaurant-card small,.schedule-restaurant-card em{white-space:normal}
}
.schedule-menu-card>span{display:grid;place-items:center;width:38px;height:38px;border-radius:14px;background:var(--schedule-icon-surface);color:var(--orange);font-weight:950}
.schedule-menu-card b{color:var(--blue-deep);font-size:.86rem}.schedule-menu-card p{color:var(--text);font-size:.72rem;font-weight:850;line-height:1.25}.schedule-menu-card small{color:var(--muted);font-size:.66rem;font-weight:900;text-transform:uppercase}
.schedule-menu-card.partner p{min-height:0;color:var(--text);font-size:.66rem;line-height:1.22}
.schedule-import-note{display:grid;gap:3px;margin-top:10px;padding:12px;border:1px dashed rgba(102,127,255,.28);border-radius:18px;background:var(--schedule-muted-surface)}
.schedule-import-note b{color:var(--blue-deep)}.schedule-import-note span{color:var(--muted);font-size:.72rem;font-weight:850;line-height:1.35}
.partner-menu-detail-modal{position:relative;display:grid;gap:12px;width:min(100%,430px);padding:24px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(180deg,var(--schedule-card-surface),var(--schedule-muted-surface));box-shadow:0 24px 80px rgba(41,61,102,.24)}
.partner-menu-detail-close{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:var(--schedule-card-surface);color:var(--blue-deep);font-size:1.25rem;font-weight:950}
.partner-menu-detail-asset{display:grid;place-items:center;width:62px;height:62px;border-radius:22px;background:linear-gradient(135deg,var(--schedule-icon-surface),rgba(33,176,124,.12));color:var(--orange);font-weight:950;box-shadow:0 14px 28px rgba(41,61,102,.1)}
.partner-menu-detail-modal h2{padding-right:42px;color:var(--blue-deep);font-size:1.45rem;line-height:1.08}.partner-menu-detail-modal>p:not(.eyebrow){color:var(--text);font-size:.88rem;font-weight:780;line-height:1.42}
.partner-menu-detail-date{display:grid;gap:3px;padding:12px;border:1px solid rgba(33,176,124,.22);border-radius:18px;background:rgba(33,176,124,.1);color:#137d58;font-size:.76rem;font-weight:900}.partner-menu-detail-date b{color:var(--blue-deep);font-size:.9rem}
.partner-menu-nutrition.full{display:grid;gap:10px;padding:12px}.partner-menu-nutrition.full h3{margin:0;color:var(--blue-deep);font-size:.84rem}.partner-menu-ingredients{display:grid;gap:4px;padding:10px;border-radius:14px;background:var(--schedule-muted-surface)}.partner-menu-ingredients b{color:var(--blue-deep);font-size:.68rem;text-transform:uppercase}.partner-menu-ingredients p{margin:0;color:var(--text);font-size:.76rem;font-weight:820;line-height:1.35}.partner-menu-detail-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px}.partner-menu-detail-actions button{min-height:42px;font-size:.7rem;white-space:normal;line-height:1.12}.partner-menu-detail-actions .danger-action{background:#a84d62;color:#fff}
.restaurant-diet-preview-modal{display:grid;gap:14px;width:min(100%,520px);padding:22px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(180deg,var(--schedule-card-surface),var(--schedule-muted-surface));box-shadow:0 24px 80px rgba(41,61,102,.22)}
.restaurant-diet-swap{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.restaurant-diet-swap>div,.restaurant-diet-impact,.restaurant-diet-adjustments{padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--schedule-card-surface);box-shadow:0 10px 22px rgba(41,61,102,.06)}
.restaurant-diet-swap .after{border-color:rgba(33,176,124,.28);background:linear-gradient(180deg,#fff,#effcf6)}
.restaurant-diet-swap small,.restaurant-diet-adjustments summary{color:var(--muted);font-size:.65rem;font-weight:950;text-transform:uppercase}.restaurant-diet-swap b{display:block;margin:3px 0;color:var(--blue-deep);font-size:.88rem}
.restaurant-diet-swap p,.restaurant-diet-swap div div{display:grid;gap:5px;margin:0}.restaurant-diet-swap span,.restaurant-diet-adjustments .recover-swap-block span{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:10px;background:var(--schedule-muted-surface);color:var(--text);font-size:.7rem;font-weight:850}
.restaurant-diet-impact h3{margin:0 0 8px;color:var(--blue-deep);font-size:.92rem}.restaurant-diet-delta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.restaurant-diet-delta span{display:grid;gap:3px;min-height:54px;padding:8px;border-radius:14px;background:var(--schedule-muted-surface);color:var(--text)}.restaurant-diet-delta b{font-size:.58rem;text-transform:uppercase;color:var(--muted)}.restaurant-diet-delta em{font-style:normal;font-size:.86rem;font-weight:950;color:var(--blue-deep)}.restaurant-diet-delta .minus em{color:#13845d}.restaurant-diet-delta .plus em{color:#b45c19}
.restaurant-diet-adjustments{display:grid;gap:10px}.restaurant-diet-adjustments summary{cursor:pointer;list-style:none}.restaurant-diet-adjustments article{display:grid;gap:7px;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--schedule-muted-surface)}.restaurant-diet-adjustments article>b{color:var(--blue-deep);font-size:.84rem}.restaurant-diet-adjustments article>small{color:var(--muted);font-size:.7rem;font-weight:900}
.schedule-meal-select-field select{min-height:48px;border-radius:18px;border:1px solid var(--line);background:var(--schedule-card-surface);color:var(--blue-deep);font-weight:900;box-shadow:0 10px 22px rgba(41,61,102,.06)}
.restaurant-event-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.restaurant-event-actions button{min-height:42px;border-radius:16px;font-weight:950}
@media(max-width:430px){.restaurant-diet-preview-modal{padding:18px}.restaurant-diet-swap,.restaurant-diet-delta{grid-template-columns:1fr}.restaurant-diet-preview-modal .schedule-footer-actions{grid-template-columns:1fr}}
.schedule-info-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin-top:8px}
.schedule-info-actions.with-edit{grid-template-columns:repeat(3,minmax(0,1fr))}
.schedule-info-actions button{min-height:44px}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-home-choice{border-color:rgba(139,160,255,.22);background:var(--schedule-card-surface);color:#f7f9ff}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-home-selected-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-selected-foods button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-food-bubbles button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-menu-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-import-note,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .partner-menu-nutrition{border-color:rgba(139,160,255,.22);background:var(--schedule-card-surface);box-shadow:none}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-home-selected-card b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-food-group h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-selected-foods button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-food-bubbles button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-menu-card b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .partner-menu-head b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .partner-menu-nutrition summary,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-import-note b{color:#f7f9ff}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-menu-card.partner.planned,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-menu-card.partner.confirmed{
  border-color:rgba(63,213,151,.34);
  background:linear-gradient(180deg,#10253c,#112f3f);
  box-shadow:none;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-menu-card p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-menu-card.partner p{
  color:#dbe6ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .partner-menu-head small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-menu-card small{
  color:#b9c5e4;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-menu-card.partner.confirmed .partner-menu-head>span{
  background:#163b35;
  color:#79e3b5;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .schedule-menu-card.partner.confirmed .partner-menu-head small{
  color:#93e7c0;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .partner-menu-nutrition{
  background:#0f1b2f;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .partner-menu-nutrition span{
  background:#16243d;
  color:#dbe6ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .partner-menu-nutrition em{
  color:#f7f9ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .partner-event-feedback button{
  border-color:rgba(139,160,255,.28);
  background:#16243d;
  color:#edf3ff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .partner-event-feedback button.active{
  border-color:rgba(72,217,158,.5);
  background:#dcfbef;
  color:#105f43;
}
@media (max-width:460px){
  .schedule-menu-showcase.partner-compact{grid-template-columns:1fr}
}
@media (max-width:390px){
  .schedule-home-meal-grid,.schedule-menu-showcase,.schedule-info-actions.with-edit{grid-template-columns:1fr}
}

/* Visual safety gate guards: shared touch and contrast rules before the next UI phase. */
.meal-card>.meal-remove-button{
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
}
.meal-card .meal-open{
  padding-right:44px!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .bottom-nav button{
  color:#dbe6ff!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .bottom-nav .active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .bottom-nav button.active{
  background:#667fff!important;
  color:#fff!important;
}
:root[data-visual-theme="female"] #homeScreen .cycle-source-body,
:root[data-visual-theme="female"] #planScreen .plan-preview-hero .cycle-source-body{
  border-color:#eadde5!important;
  background:#fffafb!important;
  color:#3b2741!important;
}
:root[data-visual-theme="female"] .menstrual-cycle-card.cycle-source-card{
  background:#fffafb!important;
  color:#3b2741!important;
}
:root[data-visual-theme="female"] #homeScreen .cycle-phase-grid span,
:root[data-visual-theme="female"] #planScreen .plan-preview-hero .cycle-phase-grid span{
  border-color:#eadde5!important;
  background:#fff7f8!important;
  color:#3b2741!important;
}
:root[data-visual-theme="female"] #homeScreen .cycle-phase-grid span b,
:root[data-visual-theme="female"] #planScreen .plan-preview-hero .cycle-phase-grid span b,
:root[data-visual-theme="female"] .menstrual-cycle-card .cycle-source-summary span{
  color:#3b2741!important;
}
:root[data-visual-theme="female"] .schedule-menu-card,
:root[data-visual-theme="female"] .schedule-menu-card.partner,
:root[data-visual-theme="female"] .partner-menu-nutrition{
  border-color:#eadde5!important;
  background:#fffafb!important;
  color:#3b2741!important;
  box-shadow:none!important;
}
:root[data-visual-theme="female"] .schedule-menu-card.partner.planned,
:root[data-visual-theme="female"] .schedule-menu-card.partner.confirmed{
  border-color:rgba(47,118,80,.28)!important;
  background:#f2fbf6!important;
}
:root[data-visual-theme="female"] .partner-menu-head b,
:root[data-visual-theme="female"] .partner-menu-nutrition summary{
  color:#3b2741!important;
}
:root[data-visual-theme="female"] .partner-menu-head small,
:root[data-visual-theme="female"] .schedule-menu-card small{
  color:#7a6878!important;
}

.schedule-code-field input{
  text-transform:uppercase;
  letter-spacing:.04em;
}

.schedule-code-help{
  margin:0;
  color:var(--muted);
  font-size:.72rem;
  font-weight:780;
  line-height:1.35;
  opacity:.72;
}

/* Final Coexistence mobile override: last rule wins over legacy compact-list styles. */
.coexistence-sheet .coexistence-tabs{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:4px!important;
  padding:4px!important;
  border-radius:16px!important;
}
.coexistence-sheet .coexistence-tabs button{
  min-width:0!important;
  min-height:36px!important;
  padding:0 3px!important;
  font-size:.6rem!important;
  line-height:1.05!important;
  white-space:nowrap!important;
}
.coexistence-sheet .coexistence-tabs i{
  position:absolute!important;
  top:-7px!important;
  right:-3px!important;
  display:grid!important;
  place-items:center!important;
  min-width:18px!important;
  height:18px!important;
  padding:0 5px!important;
  border:2px solid #fff!important;
  border-radius:999px!important;
  background:#ff8b4a!important;
  color:#fff!important;
  font-size:.56rem!important;
  box-shadow:0 6px 14px rgba(255,139,74,.22)!important;
}
.coexistence-sheet .coexistence-friend-strip{
  display:flex!important;
  gap:7px!important;
  overflow-x:auto!important;
  padding:2px 1px 5px!important;
}
.coexistence-sheet .coexistence-friend-strip button{
  width:72px!important;
  min-width:72px!important;
  max-width:72px!important;
  min-height:66px!important;
  padding:7px!important;
}
.coexistence-sheet .coexistence-friend-strip .coexistence-avatar{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  border-radius:14px!important;
}
.coexistence-sheet .coexistence-contact-list.compact article{
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr) 74px!important;
  gap:9px!important;
  align-items:center!important;
  padding:9px!important;
}
.coexistence-sheet .coexistence-contact-list.compact .coexistence-avatar{
  grid-column:1!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  border-radius:14px!important;
}
.coexistence-sheet .coexistence-contact-list.compact article>div{
  grid-column:2!important;
  min-width:0!important;
}
.coexistence-sheet .coexistence-contact-list.compact article button{
  grid-column:3!important;
  width:auto!important;
  min-width:0!important;
  min-height:34px!important;
  padding:0 10px!important;
  border:1px solid rgba(231,109,114,.18)!important;
  border-radius:999px!important;
  background:rgba(231,109,114,.06)!important;
  color:#9b2f42!important;
  font-size:.6rem!important;
}

@media(max-width:759px){
  #modal input,
  #modal select,
  #modal textarea{
    font-size:16px!important;
  }
}

.food-onboarding-panel{display:grid;gap:11px;margin:0 0 12px;padding:14px;border-color:rgba(102,127,255,.22);background:linear-gradient(135deg,rgba(245,248,255,.98),rgba(238,252,247,.96));box-shadow:0 14px 30px rgba(41,61,102,.09)}
.food-onboarding-panel.ready{border-color:rgba(33,176,124,.28);background:linear-gradient(135deg,rgba(239,252,244,.98),rgba(247,250,255,.96))}
.food-onboarding-head{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:12px;align-items:start}.food-onboarding-head h3{color:var(--ink);font-size:1rem;line-height:1.15}.food-onboarding-head p{margin-top:5px;color:var(--text);font-size:.78rem;line-height:1.42}.food-onboarding-head>span{display:grid;place-items:center;width:48px;height:48px;border-radius:17px;background:#fff;color:var(--blue);font-size:1.08rem;font-weight:950;box-shadow:var(--shadow-soft)}
.food-onboarding-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid rgba(102,127,255,.14);border-radius:15px;background:rgba(255,255,255,.7);font-size:.75rem}.food-onboarding-meta b{color:var(--muted);text-transform:uppercase}.food-onboarding-meta span{color:var(--ink);font-weight:900;text-align:right}
.food-onboarding-chips,.food-onboarding-rows{display:flex;flex-wrap:wrap;gap:7px}.food-onboarding-chips i{padding:7px 9px;border-radius:999px;background:rgba(255,255,255,.78);color:var(--blue-deep);font-size:.68rem;font-style:normal;font-weight:900}.food-onboarding-rows span{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:6px 9px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text);font-size:.68rem}.food-onboarding-rows span.ok{border-color:rgba(33,176,124,.26);background:#effcf4}.food-onboarding-rows span.advisory{border-color:rgba(255,184,107,.32);background:#fff8eb;color:#77501f}.food-onboarding-rows span.missing{border-color:rgba(231,109,114,.22);background:#fff4f4}.food-onboarding-rows b{color:var(--ink)}.food-onboarding-rows i{font-style:normal;font-weight:950}.food-onboarding-missing{padding:9px 10px;border-radius:14px;background:rgba(255,255,255,.72);color:var(--red);font-size:.74rem;font-weight:850;line-height:1.35}.food-onboarding-panel>small{color:var(--muted);font-size:.68rem;font-weight:950;text-transform:uppercase}
#foodsScreen .food-card.food-preference-fit{border-color:rgba(33,176,124,.36);background:linear-gradient(135deg,var(--food-card-surface),rgba(239,252,244,.92));box-shadow:0 12px 28px rgba(33,176,124,.11)}
.food-fit-ribbon{position:absolute;top:10px;right:10px;z-index:2;padding:5px 8px;border-radius:999px;background:#effcf4;color:#126846;font-size:.6rem;font-weight:950;text-transform:uppercase;box-shadow:0 8px 16px rgba(33,176,124,.12)}
#foodsScreen .food-card.food-preference-fit.custom-food-card,#foodsScreen .food-card.food-preference-fit{padding-right:92px}
@media(max-width:430px){.food-onboarding-head{grid-template-columns:minmax(0,1fr) 42px}.food-onboarding-head>span{width:42px;height:42px}.food-onboarding-meta{display:grid}.food-onboarding-meta span{text-align:left}.food-fit-ribbon{position:static;justify-self:start}.food-card.food-preference-fit{padding-right:14px!important}}

/* Food onboarding counters - auth/trial architecture */
.food-onboarding-head>span{display:grid;place-items:center;min-width:58px;min-height:58px;border-radius:18px;background:linear-gradient(135deg,var(--blue-soft),#fff);border:1px solid var(--line);color:var(--blue-deep);font-weight:900}.food-onboarding-head>span b{font-size:1.1rem;line-height:1}.food-onboarding-head>span small{font-size:.58rem;color:var(--muted);text-transform:uppercase}.food-onboarding-meta{display:grid;grid-template-columns:auto 1fr;gap:6px 10px;margin:12px 0;padding:10px 12px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.72)}.food-onboarding-meta b{font-size:.64rem;color:var(--muted);text-transform:uppercase}.food-onboarding-meta span{font-size:.76rem;color:var(--ink);font-weight:850}.food-onboarding-section{display:grid;gap:7px}.food-onboarding-subtitle{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;margin:12px 0 0;padding:8px 10px;border:1px solid rgba(102,127,255,.18);border-radius:13px;background:rgba(255,255,255,.58);color:var(--ink);font-size:.72rem;font-weight:950;text-align:left;text-transform:uppercase}.food-onboarding-subtitle i{display:grid;place-items:center;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:rgba(231,109,114,.14);color:var(--red);font-style:normal;font-size:.64rem}.food-onboarding-subtitle b{display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:var(--blue-soft);color:var(--blue-deep);font-size:.9rem;line-height:1}.food-onboarding-subtitle:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.food-onboarding-rows.meal-rows span{background:linear-gradient(180deg,#fff,#f8faff)}.food-onboarding-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.food-onboarding-actions button{min-height:38px;border-radius:14px;font-weight:900}.food-onboarding-actions .soft{background:var(--blue-soft);color:var(--blue-deep)}

.food-onboarding-panel[data-food-onboarding-panel-toggle]{cursor:pointer}
.food-onboarding-panel[data-food-onboarding-panel-toggle]:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.food-onboarding-panel[data-food-onboarding-panel-toggle] .food-onboarding-body,
.food-onboarding-panel[data-food-onboarding-panel-toggle] .food-onboarding-meta,
.food-onboarding-panel[data-food-onboarding-panel-toggle] .food-onboarding-search-slot,
.food-onboarding-panel[data-food-onboarding-panel-toggle] .food-onboarding-actions{cursor:auto}
.food-onboarding-custom{display:grid;gap:8px}
.food-onboarding-delivery-card{display:grid;gap:7px;padding:11px 12px;border:1px solid rgba(255,184,107,.28);border-radius:15px;background:linear-gradient(135deg,rgba(255,248,235,.9),rgba(255,255,255,.74));color:var(--ink)}
.food-onboarding-delivery-card div{display:grid;gap:2px}
.food-onboarding-delivery-card b{font-size:.78rem;font-weight:950;color:var(--ink)}
.food-onboarding-delivery-card strong{font-size:.72rem;font-weight:950;color:#9C5B11}
.food-onboarding-delivery-card p,.food-onboarding-delivery-card small{margin:0;font-size:.72rem;line-height:1.38;color:var(--text)}
.food-onboarding-delivery-card small{font-weight:850;color:var(--muted)}
.food-onboarding-head{grid-template-columns:minmax(0,1fr) 58px;align-items:start}
.food-onboarding-title{appearance:none;border:0;background:transparent;padding:0;margin:0;text-align:left;color:inherit;font:inherit;cursor:pointer;min-width:0}
.food-onboarding-title:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.food-onboarding-toggle{width:38px;height:38px;border-radius:14px;background:#fff;border:1px solid var(--line);color:var(--blue-deep);font-size:1.2rem;font-weight:950;line-height:1;box-shadow:var(--shadow-soft)}
.food-onboarding-body{display:grid;gap:0}
.food-onboarding-panel.collapsed{gap:8px}
.food-onboarding-panel.collapsed .food-onboarding-head p{display:none}
.food-onboarding-panel.collapsed .food-onboarding-meta{display:none}
.food-onboarding-panel.collapsed .food-onboarding-body{display:none}
@media(max-width:430px){.food-onboarding-head{grid-template-columns:minmax(0,1fr) 48px}}

.food-card.food-card-compact{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:58px;padding:8px 10px;border-radius:16px}
.food-card.food-card-compact .food-card-main{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px;min-width:0;text-align:left}
.food-card.food-card-compact .food-image{width:42px;height:42px;min-width:42px;border-radius:14px}
.food-card.food-card-compact .grow{min-width:0;display:block}.food-card.food-card-compact b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.86rem;line-height:1.1}.food-card.food-card-compact .food-card-use{display:block;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:.68rem;font-weight:850}.food-card.food-card-compact .food-card-actions{display:flex;align-items:center;gap:6px}.food-card.food-card-compact .food-favorite-button{width:34px;height:34px;border-radius:12px}.food-card.food-card-compact .switch{transform:scale(.86);transform-origin:center}.food-card.food-card-compact .food-fit-ribbon,.food-card.food-card-compact .food-card-tags,.food-card.food-card-compact .food-card-metrics{display:none!important}
@media(max-width:430px){.food-card.food-card-compact{grid-template-columns:minmax(0,1fr) auto;padding:7px 9px}.food-card.food-card-compact .food-card-main{grid-template-columns:38px minmax(0,1fr)}.food-card.food-card-compact .food-image{width:38px;height:38px;min-width:38px}.food-card.food-card-compact .food-favorite-button{width:32px;height:32px}}

/* Food cards compact final override */
#foodsScreen .food-card.food-card-compact{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:center!important;gap:8px!important;min-height:54px!important;padding:6px 10px!important;padding-right:10px!important;border-radius:14px!important}
#foodsScreen .food-card.food-card-compact.food-preference-fit{padding-right:10px!important}
#foodsScreen .food-card.food-card-compact .food-card-main{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;align-items:center!important;gap:9px!important;min-width:0!important;width:100%!important;padding:0!important;text-align:left!important}
#foodsScreen .food-card.food-card-compact .food-image{width:40px!important;height:40px!important;min-width:40px!important;border-radius:13px!important}
#foodsScreen .food-card.food-card-compact .grow{min-width:0!important;display:block!important}#foodsScreen .food-card.food-card-compact b{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:.84rem!important;line-height:1.08!important}#foodsScreen .food-card.food-card-compact .food-card-use{display:block!important;margin-top:3px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:var(--muted)!important;font-size:.66rem!important;font-weight:850!important}#foodsScreen .food-card.food-card-compact .food-card-actions{display:flex!important;align-items:center!important;gap:5px!important;margin:0!important;align-self:center!important}#foodsScreen .food-card.food-card-compact .food-favorite-button{width:32px!important;height:32px!important;min-width:32px!important;border-radius:11px!important}#foodsScreen .food-card.food-card-compact .switch{transform:scale(.82)!important;transform-origin:center!important;margin:0!important}#foodsScreen .food-card.food-card-compact .food-fit-ribbon,#foodsScreen .food-card.food-card-compact .food-card-tags,#foodsScreen .food-card.food-card-compact .food-card-metrics{display:none!important}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card.food-card-compact{
  border-color:rgba(139,160,255,.22)!important;
  background:linear-gradient(135deg,rgba(18,34,61,.96),rgba(12,22,40,.96))!important;
  box-shadow:0 12px 24px rgba(0,0,0,.20)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card.food-card-compact.food-preference-fit{
  border-color:rgba(63,213,151,.36)!important;
  background:linear-gradient(135deg,rgba(14,55,44,.92),rgba(13,27,49,.96))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card.food-card-compact.off{
  border-color:rgba(139,160,255,.14)!important;
  background:rgba(13,24,43,.72)!important;
  opacity:.82;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card.food-card-compact b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card.food-card-compact .food-card-use{
  color:#AFC0EA!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card.food-card-compact .food-image{
  background:rgba(255,255,255,.06)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card.food-card-compact .food-favorite-button{
  border-color:rgba(139,160,255,.24)!important;
  background:#0B1A35!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card.food-card-compact .food-favorite-button.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card.food-card-compact.favorite-food-card .food-favorite-button{
  border-color:rgba(255,207,138,.38)!important;
  background:#24305A!important;
  color:#FFDCA8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card.food-card-compact .switch{
  filter:saturate(.95) brightness(.96);
}


.food-filter-section{display:grid;gap:7px;min-width:0;padding:7px;border:1px solid color-mix(in srgb,var(--blue) 9%,var(--line));border-radius:15px;background:rgba(255,255,255,.58)}
.food-filter-section-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:34px;padding:0 2px;border:0;background:transparent;color:var(--ink);font-size:.68rem;font-weight:950;text-align:left;text-transform:uppercase;letter-spacing:.06em}
.food-filter-section-toggle i{display:grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-style:normal;font-size:.62rem;font-weight:950}
.food-filter-section-toggle b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:rgba(102,127,255,.12);color:var(--blue);font-size:1rem;line-height:1}
.food-filter-section.collapsed{gap:0}
.food-filter-section .chips[hidden]{display:none!important}


/* Final contrast pass for caramelo espacial. */
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]){
  --ink:#F8FAFF;
  --text:#E3EAFF;
  --muted:#C0CCE8;
  --faint:#92A2C3;
  --line:rgba(155,176,255,.28);
  --line-soft:rgba(155,176,255,.18);
  --card:#16233D;
  --field:#0E1729;
  --control-surface:#16233D;
  --nav-surface:rgba(16,26,48,.94);
  --top-surface:rgba(11,16,32,.94);
  --modal-surface:#101A30;
  --modal-header-surface:#16233D;
  --drawer-surface:#101A30;
  --drawer-header-surface:#16233D;
  --blue:#9BAEFF;
  --blue-soft:#243B70;
  --blue-deep:#F8FAFF;
  --orange:#FFB86B;
  --shadow-soft:0 14px 32px rgba(0,0,0,.28);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-top,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .bottom-nav,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .sheet,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .modal,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-chat,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-chat-head,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-chat-form{
  border-color:var(--line)!important;
  background:var(--nav-surface)!important;
  color:var(--text)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .panel,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-main-stat,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-goal-row div,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-range-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-macro-carousel .day-macro,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .action-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .app-menu-card,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .help-choice-card:not([data-visual-theme-choice]){
  border-color:var(--line)!important;
  background:var(--card)!important;
  color:var(--text)!important;
  box-shadow:var(--shadow-soft)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) h1,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) h2,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) strong,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .top-brand strong,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .action-card strong,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-card b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-card b{
  color:var(--ink)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .muted,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .tiny,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .note,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .form-note,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .eyebrow,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) label>span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) legend,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .action-card small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .bottom-nav button{
  color:var(--muted)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) select,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) textarea,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) fieldset,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .search,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .picker-search,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) label.search{
  border-color:var(--line)!important;
  background:var(--field)!important;
  color:var(--ink)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) input::placeholder,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) textarea::placeholder{
  color:var(--faint)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .pill,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .chip,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .icon-button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .drawer-close,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .sheet-close,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .language-toggle,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .country-toggle{
  border-color:var(--line)!important;
  background:var(--control-surface)!important;
  color:var(--ink)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .primary,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .bottom-nav .active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .home-tabs .active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .carousel-dots i.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .carousel-dots button.active{
  border-color:rgba(255,184,107,.42)!important;
  background:linear-gradient(135deg,#FFB86B,#E89B47)!important;
  color:#111827!important;
}


/* Alimentos: stable expansion, mobile filters and free IA bubble. */
#foodsScreen #foodNutrientFilters,
#foodsScreen #foodNutrientFilters .food-filter-section{
  display:grid;
}
#foodsScreen #foodFilterPanel:not([hidden]){
  display:grid!important;
}
#foodsScreen .food-filter-section .chips:not([hidden]){
  display:flex!important;
}
#foodsScreen [data-food-more]{
  scroll-margin-bottom:120px;
}

@media(max-width:430px){
  #foodsScreen #foodFilterPanel:not([hidden]){
    grid-template-columns:1fr!important;
    gap:8px!important;
    overflow:visible!important;
  }
  #foodsScreen #foodNutrientFilters{
    min-height:0!important;
    visibility:visible!important;
  }
  #foodsScreen .food-filter-section{
    width:100%!important;
  }
}

/* Scroll helper: appears only when the user scrolls upward. */
.scroll-top-fab{
  position:fixed;
  right:max(18px,calc((100vw - var(--app-width))/2 + 18px));
  bottom:calc(156px + var(--safe-bottom));
  z-index:43;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid color-mix(in srgb,var(--blue) 26%,var(--line));
  border-radius:50%;
  background:color-mix(in srgb,var(--surface) 90%,#fff);
  color:var(--blue-deep);
  box-shadow:0 14px 30px rgba(41,61,102,.18);
  font-size:1.18rem;
  font-weight:950;
  line-height:1;
  opacity:0;
  transform:translateY(10px) scale(.92);
  pointer-events:none;
  transition:opacity .16s ease,transform .16s ease,background .16s ease,border-color .16s ease;
}
.scroll-top-fab.show{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.scroll-top-fab:hover,
.scroll-top-fab:focus-visible{
  border-color:var(--blue);
  background:var(--blue-soft);
  outline:none;
}
@media(max-width:430px){
  .scroll-top-fab{
    right:max(14px,calc((100vw - var(--app-width))/2 + 14px));
    bottom:calc(148px + var(--safe-bottom));
    width:42px;
    height:42px;
  }
}

/* Coexistence search: show multiple people by name without losing profile snapshots. */
.coexistence-result-list{
  display:grid;
  gap:8px;
  max-height:min(44dvh,360px);
  overflow-y:auto;
  padding-right:2px;
  overscroll-behavior:contain;
}
.coexistence-result-list .coexistence-result-card{
  margin:0;
}
.coexistence-result-card .coexistence-avatar,
.coexistence-contact-list .coexistence-avatar{
  flex:0 0 auto;
}


.profile-hidden-field{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important}
.profile-dietary-restrictions-group .profile-goal-layer-hint{margin:0;color:var(--muted);font-size:.76rem;line-height:1.38}
.profile-dietary-restriction-chip span{display:grid;gap:2px;min-width:0}
.profile-dietary-restriction-chip em{display:-webkit-box;overflow:hidden;font-style:normal;font-weight:950;line-height:1.08;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.profile-dietary-restriction-chip.active{border-color:rgba(47,118,80,.46)!important;background:linear-gradient(135deg,#f7fff7,#eefaf2)!important;color:#244e36!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .profile-dietary-restriction-chip.active{border-color:rgba(104,204,148,.48)!important;background:linear-gradient(135deg,rgba(29,74,50,.86),rgba(18,34,61,.88))!important;color:#effff5!important}
.profile-goal-layers-sheet .profile-goal-layer-chip{
  grid-template-columns:minmax(0,1fr) 22px!important;
  align-items:center!important;
  min-width:0!important;
  transform:none!important;
  transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease!important;
}
.profile-goal-layers-sheet .profile-goal-layer-chip b{
  width:22px!important;
  height:22px!important;
  opacity:0!important;
  transform:none!important;
  transition:opacity .12s ease!important;
}
.profile-goal-layers-sheet .profile-goal-layer-chip.active b,
.profile-goal-layers-sheet .profile-goal-layer-chip.linked.active b,
.profile-goal-layers-sheet .profile-goal-layer-chip.strategy-locked.active b,
.profile-goal-layers-sheet .profile-goal-layer-chip.cycle-locked.active b{
  opacity:1!important;
}
.profile-dietary-restrictions-group>div{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,128px),1fr))!important;
  gap:8px!important;
  align-items:stretch!important;
}
.profile-dietary-restriction-chip{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 22px!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  min-height:64px!important;
  height:64px!important;
  padding:8px 8px!important;
  border-radius:14px!important;
  white-space:normal!important;
  line-height:1.08!important;
  font-size:.58rem!important;
}
.profile-dietary-restriction-chip b{
  width:22px!important;
  height:22px!important;
  opacity:0!important;
  transform:none!important;
  transition:opacity .12s ease!important;
}
.profile-dietary-restriction-chip.active b{opacity:1!important}
@media(max-width:430px){
  .profile-goal-layers-sheet .profile-dietary-restrictions-group>div{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,128px),1fr))!important;
  }
}
@media(max-width:340px){
  .profile-goal-layers-sheet .profile-dietary-restrictions-group>div{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

.meal-food-filter-section{display:grid;gap:6px;min-width:0}
.meal-food-filter-section>span{color:var(--muted);font-size:.62rem;font-weight:950;letter-spacing:.07em;text-transform:uppercase}
.meal-food-filter-section+.meal-food-filter-section{margin-top:2px}
.meal-food-filter-panel .picker-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:flex-start;
  overflow:visible;
  padding:1px 0;
}
.meal-food-filter-panel .picker-chips .chip{
  flex:0 1 auto;
  max-width:100%;
  min-height:34px;
  height:auto;
  padding:8px 11px;
  line-height:1.08;
  white-space:normal;
  overflow-wrap:anywhere;
  text-wrap:balance;
}
@media(max-width:430px){
  .meal-food-filter-panel .picker-chips{
    gap:9px 7px;
  }
  .meal-food-filter-panel .picker-chips .chip{
    min-height:34px;
    padding:8px 10px;
    font-size:.66rem;
  }
}

.profile-goal-layers-sheet .profile-goal-layer-chip.profile-rhea-chip{
  flex:0 0 100%!important;
  width:100%!important;
  min-height:58px!important;
  height:58px!important;
  align-self:stretch!important;
}
.profile-goal-layers-sheet .profile-rhea-chip span{
  grid-template-columns:24px minmax(0,1fr)!important;
}
.profile-goal-layers-sheet .profile-rhea-chip small{
  max-width:none!important;
}

.profile-goal-disclosure-glp1 .glp1-profile-disclosure-body{
  display:grid;
  gap:10px;
  padding-top:8px;
}
.profile-goal-disclosure-glp1 .strategy-safety-note,
.profile-goal-disclosure-glp1 .glp1-daily-card{
  margin:0;
}
.profile-goal-disclosure-glp1 .glp1-daily-card{
  box-shadow:none;
}
.glp1-profile-card{
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid rgba(91,118,255,.18);
  border-radius:20px;
  background:
    radial-gradient(circle at 100% 0%,rgba(255,178,93,.18),transparent 34%),
    linear-gradient(135deg,rgba(255,255,255,.98),rgba(239,247,255,.92));
  box-shadow:0 14px 28px rgba(41,61,102,.08);
}
.glp1-profile-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
}
.glp1-profile-hero h3{
  margin:0;
  color:var(--ink);
  font-size:.98rem;
  line-height:1.15;
}
.glp1-profile-hero span{
  display:block;
  margin-top:5px;
  color:var(--text);
  font-size:.74rem;
  font-weight:600;
  line-height:1.35;
}
.glp1-profile-hero i{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid rgba(255,157,77,.28);
  border-radius:999px;
  background:linear-gradient(145deg,#fff4df,#fff);
  color:#ce7a1d;
  font-style:normal;
  box-shadow:0 10px 20px rgba(206,122,29,.12);
}
.glp1-profile-hero .glp1-switch{
  justify-self:end;
  width:auto;
  min-width:86px;
  height:42px;
  padding:4px 10px 4px 5px;
  border-color:rgba(255,157,77,.36);
  background:linear-gradient(135deg,#fff,#fff7ee);
  color:var(--ink);
}
.glp1-profile-hero .glp1-switch b{
  font-size:.72rem;
  line-height:1;
}
.glp1-profile-idle{
  margin:0;
  padding:12px;
  border:1px solid rgba(102,127,255,.16);
  border-radius:14px;
  background:rgba(255,255,255,.72);
  color:var(--text);
  font-size:.76rem;
  font-weight:650;
  line-height:1.35;
}
.profile-goal-disclosure-glp1 .glp1-profile-actions{
  grid-template-columns:1fr;
  gap:8px;
}
.glp1-module-block{
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid rgba(102,127,255,.16);
  border-radius:16px;
  background:linear-gradient(180deg,#fff,rgba(244,247,255,.88));
  box-shadow:0 10px 22px rgba(41,61,102,.05);
}
.glp1-module-block>summary{
  display:grid;
  grid-template-columns:28px minmax(0,1fr) 18px;
  align-items:center;
  gap:9px;
  min-width:0;
  cursor:pointer;
  list-style:none;
}
.glp1-module-block>summary::-webkit-details-marker{
  display:none;
}
.glp1-module-block>summary:after{
  justify-self:center;
  width:7px;
  height:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  color:rgba(41,61,102,.46);
  transform:rotate(45deg);
  transition:transform .18s ease,color .18s ease;
  content:"";
}
.glp1-module-block[open]>summary:after{
  transform:rotate(225deg);
}
.glp1-module-body{
  display:grid;
  gap:10px;
}
.glp1-module-block>summary i{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:11px;
  background:rgba(255,236,210,.86);
  color:#ce7a1d;
  font-style:normal;
  font-size:.78rem;
  line-height:1;
  box-shadow:inset 0 0 0 1px rgba(255,157,77,.16);
}
.glp1-module-block>summary b{
  display:block;
  min-width:0;
  color:var(--ink);
  font-size:.8rem;
  font-weight:850;
  line-height:1.15;
}
.glp1-module-block>summary span,
.glp1-module-block p{
  display:block;
  margin:2px 0 0;
  color:var(--text);
  font-size:.7rem;
  font-weight:600;
  line-height:1.35;
}
.glp1-module-heading{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  align-items:center;
  gap:9px;
  min-width:0;
}
.glp1-module-heading i{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:11px;
  background:rgba(255,236,210,.86);
  color:#ce7a1d;
  font-style:normal;
  font-size:.78rem;
  line-height:1;
  box-shadow:inset 0 0 0 1px rgba(255,157,77,.16);
}
.glp1-module-heading b{
  display:block;
  min-width:0;
  color:var(--ink);
  font-size:.8rem;
  font-weight:850;
  line-height:1.15;
}
.glp1-module-heading span{
  display:block;
  margin:2px 0 0;
  color:var(--text);
  font-size:.7rem;
  font-weight:600;
  line-height:1.35;
}
.glp1-routine-summary-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}
.glp1-routine-summary-action{
  display:grid;
  gap:4px;
  min-width:0;
  min-height:52px;
  padding:9px 10px;
  border:1px solid rgba(255,157,77,.28);
  border-radius:13px;
  background:rgba(255,255,255,.82);
  color:var(--ink);
  text-align:left;
  cursor:pointer;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.glp1-routine-summary-action:hover,
.glp1-routine-summary-action:focus-visible{
  border-color:rgba(206,122,29,.64);
  box-shadow:0 7px 14px rgba(206,122,29,.14);
  outline:none;
  transform:translateY(-1px);
}
.glp1-routine-summary-action small{
  overflow:hidden;
  color:var(--muted);
  font-size:.6rem;
  font-weight:900;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}
.glp1-routine-summary-action b{
  overflow:hidden;
  font-size:.74rem;
  line-height:1.15;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.glp1-routine-reminder-status{
  margin:0!important;
  color:var(--muted)!important;
  font-size:.66rem!important;
  font-weight:800!important;
}
.glp1-routine-reminder-status.enabled{color:var(--green)!important}
.glp1-routine-editor{display:grid;gap:14px}
.glp1-routine-editor .sheet-title p{margin-bottom:0}
.glp1-routine-edit-focus{display:block;margin-top:4px;color:var(--muted);font-size:.68rem;font-weight:800}
.glp1-routine-editor-fields{display:grid;gap:10px}
.glp1-routine-editor-fields label{display:grid;gap:5px}
.glp1-routine-editor-fields label>span{color:var(--muted);font-size:.64rem;font-weight:900;text-transform:uppercase}
.glp1-routine-picker-field{position:relative;z-index:2}
.glp1-routine-picker-field:focus-within{z-index:4}
.glp1-routine-picker{position:relative;min-width:0}
.glp1-routine-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:0 12px;border:1px solid rgba(102,127,255,.28);border-radius:13px;background:linear-gradient(135deg,#fff,#f5f8ff);color:var(--ink);font-size:.78rem;font-weight:850;text-align:left;cursor:pointer;box-shadow:0 5px 12px rgba(41,61,102,.06)}
.glp1-routine-picker-trigger:hover,.glp1-routine-picker-trigger:focus-visible{border-color:rgba(102,127,255,.72);box-shadow:0 0 0 3px rgba(102,127,255,.12);outline:none}
.glp1-routine-picker-trigger span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.glp1-routine-picker-trigger>i{color:var(--blue);font-size:.9rem;font-style:normal;line-height:1;transition:transform .16s ease}
.glp1-routine-picker-trigger[aria-expanded="true"]>i{transform:rotate(180deg)}
.glp1-routine-picker-menu{position:absolute;z-index:8;top:calc(100% + 6px);right:0;left:0;display:grid;gap:4px;max-height:200px;overflow:auto;padding:6px;border:1px solid rgba(102,127,255,.3);border-radius:14px;background:#fff;box-shadow:0 16px 30px rgba(27,42,76,.2)}
.glp1-routine-picker-menu[hidden]{display:none}
.glp1-routine-picker-option{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:36px;padding:8px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--ink);font-size:.74rem;font-weight:800;text-align:left;cursor:pointer}
.glp1-routine-picker-option:hover,.glp1-routine-picker-option:focus-visible{border-color:rgba(102,127,255,.22);background:rgba(102,127,255,.09);outline:none}
.glp1-routine-picker-option.active{border-color:rgba(102,127,255,.3);background:rgba(102,127,255,.13);color:var(--blue-deep)}
.glp1-routine-picker-option i{min-width:14px;color:var(--blue);font-size:.8rem;font-style:normal;text-align:center}
.glp1-routine-editor-fields select,
.glp1-routine-editor-fields input[type="date"]{width:100%;min-height:42px;padding:0 11px;border:1px solid rgba(102,127,255,.22);border-radius:13px;background:rgba(255,255,255,.95);color:var(--ink);font-size:.78rem;font-weight:800}
.glp1-routine-reminder-toggle{display:flex;align-items:center;gap:9px;min-height:44px;padding:10px 12px;border:1px solid rgba(102,127,255,.2);border-radius:13px;background:rgba(244,247,255,.72);color:var(--ink);font-size:.76rem;font-weight:850}
.glp1-routine-reminder-toggle input{accent-color:var(--blue)}
.glp1-checkin-placement{display:grid;gap:8px;margin-top:1px}
.glp1-checkin-placement .glp1-checkin-inline{width:100%;justify-items:center}
.glp1-module-block.adapt{
  border-color:rgba(102,127,255,.24);
  background:linear-gradient(135deg,rgba(245,248,255,.98),rgba(255,255,255,.96));
}
.glp1-module-block.history,
.glp1-module-block.routine{
  border-color:rgba(255,157,77,.18);
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(255,248,238,.78));
}
.glp1-routine-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.glp1-routine-fields label{
  display:grid;
  gap:5px;
  min-width:0;
}
.glp1-routine-fields label span{
  color:var(--muted);
  font-size:.62rem;
  font-weight:900;
  line-height:1;
  text-transform:uppercase;
}
.glp1-routine-fields select,
.glp1-routine-fields input{
  width:100%;
  min-height:38px;
  min-width:0;
  padding:0 11px;
  border:1px solid rgba(102,127,255,.18);
  border-radius:13px;
  background:rgba(255,255,255,.92);
  color:var(--ink);
  font-size:.76rem;
  font-weight:800;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.glp1-routine-fields input:disabled{
  opacity:.72;
  color:var(--muted);
  background:rgba(244,247,255,.8);
}
.glp1-routine-fields button{
  align-self:end;
  min-height:38px;
}
.glp1-checkin-inline{
  display:grid;
  justify-items:start;
  gap:2px;
  min-height:44px;
  padding:10px 12px;
  border-radius:14px;
  line-height:1.1;
}
.glp1-checkin-inline small{
  color:currentColor;
  opacity:.72;
  font-size:.64rem;
  font-weight:650;
}
.glp1-routine-calendar{
  display:grid;
  gap:9px;
}
.glp1-routine-month-head{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 34px;
  align-items:center;
  gap:8px;
}
.glp1-routine-month-head b{
  overflow:hidden;
  color:var(--ink);
  font-size:.78rem;
  font-weight:900;
  line-height:1.15;
  text-align:center;
  text-overflow:ellipsis;
  text-transform:capitalize;
  white-space:nowrap;
}
.glp1-routine-month-head button{
  display:grid;
  place-items:center;
  min-height:34px;
  border:1px solid rgba(102,127,255,.14);
  border-radius:999px;
  background:rgba(255,255,255,.84);
  color:var(--blue-deep);
  font-size:1.05rem;
  font-weight:900;
  box-shadow:0 8px 18px rgba(41,61,102,.06);
}
.glp1-routine-weekdays{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:6px;
}
.glp1-routine-weekdays span{
  color:var(--muted);
  font-size:.58rem;
  font-weight:900;
  line-height:1;
  text-align:center;
}
.glp1-routine-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:6px;
}
.glp1-routine-blank{
  min-height:48px;
}
.glp1-routine-calendar-grid button{
  display:grid;
  place-items:center;
  gap:1px;
  min-width:0;
  min-height:48px;
  padding:5px 2px;
  border:1px solid rgba(102,127,255,.12);
  border-radius:13px;
  background:rgba(255,255,255,.74);
  color:var(--text);
  box-shadow:none;
}
.glp1-routine-calendar-grid button b{
  color:var(--ink);
  font-size:.78rem;
  font-weight:850;
  line-height:1;
}
.glp1-routine-calendar-grid button span{
  max-width:100%;
  overflow:hidden;
  color:var(--muted);
  font-size:.54rem;
  font-weight:800;
  line-height:1;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.glp1-routine-calendar-grid button small{
  color:currentColor;
  font-size:.52rem;
  font-weight:850;
  line-height:1;
}
.glp1-routine-calendar-grid button.scheduled{
  border-color:rgba(255,157,77,.32);
  background:rgba(255,239,214,.78);
  color:#bf6f1a;
}
.glp1-routine-calendar-grid button.taken{
  border-color:rgba(13,148,96,.28);
  background:rgba(225,250,237,.9);
  color:var(--green);
}
.glp1-routine-calendar-grid button.idle{
  border-color:rgba(102,127,255,.12);
  background:var(--surface);
  color:var(--ink);
}
.glp1-routine-calendar-grid button.idle b,
.glp1-routine-calendar-grid button.idle span{
  color:var(--ink);
}
.glp1-routine-calendar-grid button.today{
  box-shadow:0 0 0 2px rgba(102,127,255,.24);
}
.glp1-routine-calendar-grid button:disabled{
  opacity:.42;
}
.glp1-routine-legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.glp1-routine-legend span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--muted);
  font-size:.62rem;
  font-weight:850;
}
.glp1-routine-legend span:before{
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(255,157,77,.52);
  content:"";
}
.glp1-routine-legend .taken:before{background:var(--green)}
.glp1-routine-legend .disabled:before{background:#8a94a8}
.glp1-routine-legend .today:before{background:#fff;box-shadow:0 0 0 2px rgba(102,127,255,.28)}
.glp1-profile-action{
  display:grid;
  grid-template-columns:26px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  gap:3px 8px;
  min-height:60px;
  padding:11px 12px;
  border:1px solid rgba(102,127,255,.18);
  border-radius:16px;
  background:linear-gradient(180deg,#fff,rgba(244,247,255,.92));
  color:var(--blue-deep);
  box-shadow:0 10px 22px rgba(41,61,102,.06);
  text-align:left;
}
.glp1-profile-action.wide{
  grid-column:1 / -1;
}
.glp1-profile-action.primary-action{
  border-color:rgba(102,127,255,.34);
  background:linear-gradient(135deg,var(--blue),#8293ff);
  color:#fff;
}
.glp1-profile-action i{
  grid-row:1 / 3;
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:10px;
  background:rgba(255,255,255,.72);
  color:currentColor;
  font-style:normal;
  font-size:.78rem;
  line-height:1;
  box-shadow:inset 0 0 0 1px rgba(102,127,255,.12);
}
.glp1-profile-action b{
  color:inherit;
  font-size:.78rem;
  font-weight:800;
  line-height:1.14;
}
.glp1-profile-action span{
  color:currentColor;
  opacity:.72;
  font-size:.66rem;
  font-weight:650;
  line-height:1.25;
}
.glp1-profile-note{
  border-color:rgba(255,157,77,.16);
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,247,234,.76));
  color:var(--ink);
}
.glp1-profile-note i{
  background:rgba(255,236,210,.86);
  color:#ce7a1d;
  box-shadow:inset 0 0 0 1px rgba(255,157,77,.16);
}
.glp1-profile-action:is(article){
  cursor:default;
}
.special-priority-panel{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  min-width:0;
}
.special-priority-panel article{
  display:grid;
  align-content:start;
  gap:7px;
  min-width:0;
  padding:10px 11px;
  border:1px solid rgba(102,127,255,.14);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(245,248,255,.72));
  box-shadow:0 10px 20px rgba(41,61,102,.045);
}
.special-priority-panel article.checkin{
  border-color:rgba(13,148,96,.15);
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(232,248,239,.7));
}
.special-priority-panel b{
  color:var(--blue-deep);
  font-size:.64rem;
  font-weight:950;
  line-height:1.15;
  text-transform:uppercase;
}
.special-priority-chips{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  min-width:0;
}
.special-priority-chips span{
  max-width:100%;
  padding:5px 7px;
  border:1px solid rgba(102,127,255,.14);
  border-radius:999px;
  background:rgba(255,255,255,.76);
  color:var(--ink);
  font-size:.66rem;
  font-weight:850;
  line-height:1.1;
}
.special-priority-empty,
.special-priority-note{
  color:var(--muted);
  font-size:.66rem;
  font-weight:750;
  line-height:1.28;
}
.special-priority-note{
  color:var(--green);
  font-weight:900;
}
.glp1-profile-status{
  grid-column:1 / -1;
  display:block;
  padding:8px 10px;
  border-radius:13px;
  background:rgba(13,148,96,.09);
  color:var(--green);
  font-size:.68rem;
  font-weight:900;
  line-height:1.22;
}
.glp1-profile-safety{
  margin:0;
  padding:10px 11px;
  border:1px solid rgba(255,157,77,.18);
  border-radius:15px;
  background:rgba(255,246,226,.72);
  color:var(--text);
  font-size:.72rem;
  font-weight:650;
  line-height:1.38;
}
.glp1-info-modal{
  display:grid;
  gap:14px;
  padding:4px 2px 2px;
}
.glp1-info-body{
  display:grid;
  gap:10px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,#fff,rgba(246,249,255,.88));
}
.glp1-info-body p{
  margin:0;
  color:var(--text);
  font-size:.84rem;
  font-weight:800;
  line-height:1.48;
}
@media(max-width:360px){
  .profile-goal-disclosure-glp1 .glp1-profile-actions{
    grid-template-columns:1fr;
  }
  .glp1-profile-action.wide{
    grid-column:auto;
  }
  .glp1-routine-fields{
    grid-template-columns:1fr;
  }
}

.glp1-daily-card{display:grid;gap:12px;margin:12px 0;padding:13px;border:1px solid rgba(41,61,102,.12);border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(234,244,255,.92));box-shadow:0 12px 24px rgba(41,61,102,.08)}
.glp1-daily-card.pending{grid-template-columns:minmax(0,1fr) auto;align-items:center}.glp1-daily-card.pending .special-priority-panel{grid-column:1 / -1}.glp1-daily-card.active header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}.glp1-daily-card h3{font-size:.96rem;line-height:1.15}.glp1-daily-card span{display:block;margin-top:4px;color:var(--muted);font-size:.76rem;line-height:1.35}.glp1-daily-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.glp1-daily-metrics span{min-height:56px;margin:0;padding:9px;border-radius:14px;background:rgba(255,255,255,.74);border:1px solid rgba(41,61,102,.08)}.glp1-daily-metrics b{display:block;color:var(--blue-deep);font-size:1rem}.glp1-daily-metrics small{display:block;margin-top:2px;color:var(--muted);font-size:.66rem;font-weight:900;text-transform:uppercase}.glp1-daily-warning{margin:0;padding:9px 10px;border-radius:13px;background:var(--red-soft);color:var(--red);font-size:.76rem;font-weight:900}.glp1-checkin{display:grid;gap:14px}.glp1-checkin fieldset{display:grid;gap:9px;margin:0;padding:0;border:0}.glp1-checkin legend{color:var(--ink);font-size:.78rem;font-weight:900;text-transform:uppercase}.glp1-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.glp1-option-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.glp1-option-grid label,.glp1-light-toggle{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 11px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);font-size:.78rem;font-weight:900}.glp1-option-grid input,.glp1-light-toggle input{accent-color:var(--blue)}.glp1-checkin-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:2px}.diet-change-lines{display:grid;gap:7px;margin:4px 0 0;padding:0;list-style:none}.diet-change-lines li{position:relative;padding:8px 9px 8px 26px;border-radius:12px;background:rgba(255,255,255,.72);color:var(--text);font-size:.76rem;font-weight:850;line-height:1.35}.diet-change-lines li:before{content:"";position:absolute;left:10px;top:14px;width:7px;height:7px;border-radius:50%;background:var(--green)}.glp1-change-lines{margin-top:0}.glp1-change-lines li{background:rgba(255,255,255,.58);border:1px solid rgba(41,61,102,.08)}@media(max-width:430px){.glp1-daily-card.pending,.glp1-daily-card.active header,.glp1-checkin-actions,.special-priority-panel{grid-template-columns:1fr}.glp1-option-grid,.glp1-option-grid.compact,.glp1-daily-metrics{grid-template-columns:1fr}.glp1-daily-card .small{width:100%}}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-daily-card{
  border-color:rgba(139,160,255,.22)!important;
  background:linear-gradient(135deg,#13223B,#0D172A)!important;
  color:#DDE5FF!important;
  box-shadow:0 14px 30px rgba(0,0,0,.22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-daily-card .eyebrow{
  color:#9FB0D8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-daily-card h3{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-daily-card span{
  color:#C7D2F0!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-profile-action,
:root[data-theme="dark"] .glp1-profile-action{
  border-color:rgba(139,160,255,.22)!important;
  background:linear-gradient(135deg,#172641,#101D34)!important;
  color:#E9EEFF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-profile-card,
:root[data-theme="dark"] .glp1-profile-card{
  border-color:rgba(139,160,255,.22)!important;
  background:radial-gradient(circle at 100% 0%,rgba(255,178,93,.12),transparent 34%),linear-gradient(135deg,#172641,#101D34)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-profile-hero h3,
:root[data-theme="dark"] .glp1-profile-hero h3{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-profile-hero span,
:root[data-theme="dark"] .glp1-profile-hero span{
  color:#C7D2F0!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-profile-hero i,
:root[data-theme="dark"] .glp1-profile-hero i{
  border-color:rgba(255,178,93,.28)!important;
  background:#2B2340!important;
  color:#FFD7A3!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-profile-hero .glp1-switch,
:root[data-theme="dark"] .glp1-profile-hero .glp1-switch{
  border-color:rgba(255,178,93,.28)!important;
  background:#13223A!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-profile-hero .glp1-switch.active,
:root[data-theme="dark"] .glp1-profile-hero .glp1-switch.active{
  background:linear-gradient(135deg,#6478F4,#8BA0FF)!important;
  color:#07101F!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-profile-idle,
:root[data-theme="dark"] .glp1-profile-idle{
  border-color:rgba(139,160,255,.20)!important;
  background:rgba(255,255,255,.07)!important;
  color:#C7D2F0!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-profile-action.primary-action,
:root[data-theme="dark"] .glp1-profile-action.primary-action{
  border-color:rgba(139,160,255,.36)!important;
  background:linear-gradient(135deg,#6478F4,#8BA0FF)!important;
  color:#07101F!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-profile-action i,
:root[data-theme="dark"] .glp1-profile-action i{
  background:rgba(255,255,255,.10)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-profile-note,
:root[data-theme="dark"] .glp1-profile-note{
  border-color:rgba(255,178,93,.22)!important;
  background:linear-gradient(135deg,#1C2941,#151F34)!important;
  color:#F2F5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-profile-note i,
:root[data-theme="dark"] .glp1-profile-note i{
  background:rgba(255,178,93,.14)!important;
  color:#FFD7A3!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .special-priority-panel article,
:root[data-theme="dark"] .special-priority-panel article{
  border-color:rgba(139,159,255,.20)!important;
  background:linear-gradient(135deg,rgba(15,23,42,.72),rgba(30,41,59,.58))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .special-priority-panel article.checkin,
:root[data-theme="dark"] .special-priority-panel article.checkin{
  border-color:rgba(74,222,128,.22)!important;
  background:linear-gradient(135deg,rgba(15,23,42,.74),rgba(21,78,52,.35))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .special-priority-panel b,
:root[data-theme="dark"] .special-priority-panel b{
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .special-priority-chips span,
:root[data-theme="dark"] .special-priority-chips span{
  border-color:rgba(139,159,255,.18)!important;
  background:rgba(255,255,255,.08)!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .special-priority-empty,
:root[data-theme="dark"] .special-priority-empty{
  color:#C7D2F0!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .special-priority-note,
:root[data-theme="dark"] .special-priority-note{
  color:#86EFAC!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-module-block,
:root[data-theme="dark"] .glp1-module-block{
  border-color:rgba(139,160,255,.20)!important;
  background:linear-gradient(135deg,#172641,#101D34)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-module-block.routine,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-module-block.history,
:root[data-theme="dark"] .glp1-module-block.routine,
:root[data-theme="dark"] .glp1-module-block.history{
  border-color:rgba(255,178,93,.22)!important;
  background:linear-gradient(135deg,#1C2941,#151F34)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-module-block>summary b,
:root[data-theme="dark"] .glp1-module-block>summary b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-module-block>summary span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-module-block p,
:root[data-theme="dark"] .glp1-module-block>summary span,
:root[data-theme="dark"] .glp1-module-block p{
  color:#C7D2F0!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-module-block>summary:after,
:root[data-theme="dark"] .glp1-module-block>summary:after{
  color:#9FB0D8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-module-block>summary i,
:root[data-theme="dark"] .glp1-module-block>summary i{
  background:rgba(255,178,93,.16)!important;
  color:#FFD7A3!important;
  box-shadow:inset 0 0 0 1px rgba(255,178,93,.16)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-module-heading b,
:root[data-theme="dark"] .glp1-module-heading b{color:#F7F9FF!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-module-heading span,
:root[data-theme="dark"] .glp1-module-heading span{color:#C7D2F0!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-module-heading i,
:root[data-theme="dark"] .glp1-module-heading i{background:rgba(255,178,93,.16)!important;color:#FFD7A3!important;box-shadow:inset 0 0 0 1px rgba(255,178,93,.16)!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-summary-action,
:root[data-theme="dark"] .glp1-routine-summary-action{border-color:rgba(255,178,93,.26)!important;background:rgba(15,26,45,.68)!important;color:#F7F9FF!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-summary-action small,
:root[data-theme="dark"] .glp1-routine-summary-action small{color:#9FB0D8!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-reminder-status,
:root[data-theme="dark"] .glp1-routine-reminder-status{color:#AEBBDE!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-reminder-status.enabled,
:root[data-theme="dark"] .glp1-routine-reminder-status.enabled{color:#86EFAC!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-editor-fields :is(select,input[type="date"]),
:root[data-theme="dark"] .glp1-routine-editor-fields :is(select,input[type="date"]){border-color:rgba(139,160,255,.22)!important;background:#0F1A2D!important;color:#F7F9FF!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-picker-trigger,
:root[data-theme="dark"] .glp1-routine-picker-trigger{border-color:rgba(139,160,255,.42)!important;background:#0F1A2D!important;color:#F7F9FF!important;box-shadow:none!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-picker-trigger>i,
:root[data-theme="dark"] .glp1-routine-picker-trigger>i{color:#B8C8FF!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-picker-menu,
:root[data-theme="dark"] .glp1-routine-picker-menu{border-color:rgba(139,160,255,.42)!important;background:#111F36!important;box-shadow:0 18px 34px rgba(0,0,0,.42)!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-picker-option,
:root[data-theme="dark"] .glp1-routine-picker-option{color:#F7F9FF!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-picker-option:hover,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-picker-option:focus-visible,
:root[data-theme="dark"] .glp1-routine-picker-option:hover,
:root[data-theme="dark"] .glp1-routine-picker-option:focus-visible{border-color:rgba(139,160,255,.42)!important;background:rgba(139,160,255,.16)!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-picker-option.active,
:root[data-theme="dark"] .glp1-routine-picker-option.active{border-color:rgba(139,160,255,.55)!important;background:rgba(100,120,244,.28)!important;color:#FFFFFF!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-picker-option i,
:root[data-theme="dark"] .glp1-routine-picker-option i{color:#AFC0FF!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-reminder-toggle,
:root[data-theme="dark"] .glp1-routine-reminder-toggle{border-color:rgba(139,160,255,.22)!important;background:rgba(15,26,45,.72)!important;color:#F7F9FF!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-fields label span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-calendar-grid button span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-legend span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-weekdays span,
:root[data-theme="dark"] .glp1-routine-fields label span,
:root[data-theme="dark"] .glp1-routine-calendar-grid button span,
:root[data-theme="dark"] .glp1-routine-legend span,
:root[data-theme="dark"] .glp1-routine-weekdays span{
  color:#9FB0D8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-month-head b,
:root[data-theme="dark"] .glp1-routine-month-head b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-month-head button,
:root[data-theme="dark"] .glp1-routine-month-head button{
  border-color:rgba(139,160,255,.22)!important;
  background:rgba(255,255,255,.08)!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-fields select,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-fields input,
:root[data-theme="dark"] .glp1-routine-fields select,
:root[data-theme="dark"] .glp1-routine-fields input{
  border-color:rgba(139,160,255,.22)!important;
  background:#0F1A2D!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-fields input:disabled,
:root[data-theme="dark"] .glp1-routine-fields input:disabled{
  background:rgba(15,26,45,.78)!important;
  color:#AEBBDE!important;
  opacity:1;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-fields select option,
:root[data-theme="dark"] .glp1-routine-fields select option{
  background:#101D34!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-calendar-grid button,
:root[data-theme="dark"] .glp1-routine-calendar-grid button{
  border-color:rgba(139,160,255,.16)!important;
  background:rgba(255,255,255,.06)!important;
  color:#C7D2F0!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-calendar-grid button.idle,
:root[data-theme="dark"] .glp1-routine-calendar-grid button.idle{
  border-color:rgba(139,160,255,.16)!important;
  background:#172033!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-calendar-grid button.idle b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-calendar-grid button.idle span,
:root[data-theme="dark"] .glp1-routine-calendar-grid button.idle b,
:root[data-theme="dark"] .glp1-routine-calendar-grid button.idle span{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-calendar-grid button b,
:root[data-theme="dark"] .glp1-routine-calendar-grid button b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-calendar-grid button.scheduled,
:root[data-theme="dark"] .glp1-routine-calendar-grid button.scheduled{
  border-color:rgba(255,178,93,.26)!important;
  background:rgba(255,178,93,.12)!important;
  color:#FFD7A3!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-calendar-grid button.taken,
:root[data-theme="dark"] .glp1-routine-calendar-grid button.taken{
  border-color:rgba(63,213,151,.46)!important;
  background:rgba(63,213,151,.24)!important;
  color:#C8FFE2!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-calendar-grid button.taken b,
:root[data-theme="dark"] .glp1-routine-calendar-grid button.taken b{
  color:#E4FFF0!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-routine-calendar-grid button.taken small,
:root[data-theme="dark"] .glp1-routine-calendar-grid button.taken small{
  color:#B8F8D8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-profile-status,
:root[data-theme="dark"] .glp1-profile-status{
  background:rgba(63,213,151,.12)!important;
  color:#A8F5D0!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-profile-safety,
:root[data-theme="dark"] .glp1-profile-safety{
  border-color:rgba(255,178,93,.22)!important;
  background:rgba(255,178,93,.10)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-info-body,
:root[data-theme="dark"] .glp1-info-body{
  border-color:rgba(139,160,255,.22)!important;
  background:linear-gradient(135deg,#172641,#101D34)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-info-body p,
:root[data-theme="dark"] .glp1-info-body p{
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-daily-metrics span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-change-lines li{
  border-color:rgba(139,160,255,.18)!important;
  background:#172641!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-daily-metrics b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-daily-metrics small{
  color:#AEBBDE!important;
}
.glp1-checkin-sheet .sheet-close,
.diet-change-explain-sheet .sheet-close{
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  min-height:38px;
  box-shadow:0 10px 22px rgba(41,61,102,.14);
}
.glp1-checkin-sheet .sheet-close:before,
.diet-change-explain-sheet .sheet-close:before{
  font-size:1.02rem;
}
.glp1-checkin .sheet-title{
  padding-right:50px;
}
.diet-change-explain-modal{
  padding-top:20px;
}
.diet-change-explain-modal h2{
  max-width:360px;
  padding-right:0;
}
.diet-change-explain-modal>p:not(.eyebrow){
  color:var(--muted);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-checkin-sheet,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .sheet.glp1-checkin-sheet,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-checkin-sheet .sheet,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-checkin{
  border-color:rgba(139,160,255,.20)!important;
  background:#0E1729!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-checkin .sheet-title,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-checkin fieldset{
  border-color:rgba(139,160,255,.14)!important;
  background:transparent!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-checkin .eyebrow,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-checkin legend{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-checkin h2{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-checkin .sheet-title p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-checkin label span{
  color:#D7E0F8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-option-grid label,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-light-toggle{
  border-color:rgba(139,160,255,.20)!important;
  background:#101B31!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-option-grid label:has(input:checked),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-light-toggle:has(input:checked){
  border-color:rgba(139,160,255,.58)!important;
  background:#1C3158!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-option-grid input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-light-toggle input{
  accent-color:#8BA0FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .glp1-checkin-sheet .sheet-close,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-change-explain-sheet .sheet-close{
  border-color:rgba(139,160,255,.28)!important;
  background:#172641!important;
  color:#DDE5FF!important;
  box-shadow:0 12px 24px rgba(0,0,0,.22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-change-explain-sheet,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-change-explain-sheet .sheet,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-change-explain-modal{
  border-color:rgba(139,160,255,.20)!important;
  background:#0E1729!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-change-explain-modal h2{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-change-explain-modal>p:not(.eyebrow){
  color:#C7D2F0!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-change-explain-modal .copilot-audit-card{
  border-color:rgba(139,160,255,.20)!important;
  background:#101B31!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-change-explain-modal .copilot-audit-card b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-change-explain-modal .diet-change-lines li{
  border:1px solid rgba(139,160,255,.16)!important;
  background:#182744!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-change-explain-modal .diet-change-lines li:before{
  background:#8DD0A4!important;
}
:root[data-theme="dark"] .glp1-checkin-sheet,
:root[data-theme="dark"] .sheet.glp1-checkin-sheet,
:root[data-theme="dark"] .glp1-checkin-sheet .sheet,
:root[data-theme="dark"] .glp1-checkin{
  border-color:rgba(139,160,255,.20)!important;
  background:#0E1729!important;
  color:#DDE5FF!important;
}
:root[data-theme="dark"] .glp1-checkin .sheet-title,
:root[data-theme="dark"] .glp1-checkin fieldset{
  border-color:rgba(139,160,255,.14)!important;
  background:transparent!important;
  color:#DDE5FF!important;
}
:root[data-theme="dark"] .glp1-checkin .eyebrow,
:root[data-theme="dark"] .glp1-checkin legend{
  color:#B9C5E4!important;
}
:root[data-theme="dark"] .glp1-checkin h2{
  color:#F7F9FF!important;
}
:root[data-theme="dark"] .glp1-checkin .sheet-title p,
:root[data-theme="dark"] .glp1-checkin label span{
  color:#D7E0F8!important;
}
:root[data-theme="dark"] .glp1-option-grid label,
:root[data-theme="dark"] .glp1-light-toggle{
  border-color:rgba(139,160,255,.20)!important;
  background:#101B31!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root[data-theme="dark"] .glp1-option-grid label:has(input:checked),
:root[data-theme="dark"] .glp1-light-toggle:has(input:checked){
  border-color:rgba(139,160,255,.58)!important;
  background:#1C3158!important;
  color:#F7F9FF!important;
}
:root[data-theme="dark"] .glp1-checkin-sheet .sheet-close{
  border-color:rgba(139,160,255,.28)!important;
  background:#172641!important;
  color:#DDE5FF!important;
  box-shadow:0 12px 24px rgba(0,0,0,.22)!important;
}


.plan-engine-v3-status{
  display:grid;
  width:calc(100% - 42px);
  margin:10px auto 12px;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--green) 34%,var(--line));
  border-radius:8px;
  background:color-mix(in srgb,var(--green) 5%,#fff);
  box-shadow:0 8px 22px rgba(22,34,54,.06);
}
.plan-engine-v3-status.inactive,
.plan-engine-v3-status.review{
  border-color:color-mix(in srgb,var(--orange) 42%,var(--line));
  background:color-mix(in srgb,var(--orange) 6%,#fff);
}
.plan-engine-v3-status details{
  display:grid;
  gap:10px;
}
.plan-engine-v3-status summary{
  display:grid;
  gap:10px;
  cursor:pointer;
  list-style:none;
}
.plan-engine-v3-status summary::-webkit-details-marker{
  display:none;
}
.plan-engine-v3-status header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:start;
}
.plan-engine-v3-status .eyebrow{
  margin-bottom:4px;
}
.plan-engine-v3-status h3{
  margin:0;
  color:var(--ink);
  font-size:.98rem;
  line-height:1.18;
}
.plan-engine-v3-status small{
  color:var(--muted);
  font-size:.7rem;
  font-weight:800;
  line-height:1.28;
}
.plan-engine-v3-status header strong{
  display:inline-grid;
  place-items:center;
  min-height:30px;
  max-width:140px;
  padding:0 9px;
  border-radius:8px;
  background:color-mix(in srgb,var(--green) 14%,#fff);
  color:var(--green);
  font-size:.66rem;
  font-weight:950;
  line-height:1.05;
  text-align:center;
  white-space:normal;
}
.plan-engine-v3-status.review header strong,
.plan-engine-v3-status.inactive header strong{
  background:color-mix(in srgb,var(--orange) 15%,#fff);
  color:var(--orange-deep);
}
.plan-engine-v3-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}
.plan-engine-v3-grid span{
  display:grid;
  align-content:start;
  gap:3px;
  min-width:0;
  min-height:54px;
  padding:8px;
  border-radius:8px;
  background:rgba(255,255,255,.78);
  border:1px solid var(--line-soft);
}
.plan-engine-v3-grid b{
  min-width:0;
  color:var(--ink);
  font-size:.8rem;
  font-weight:950;
  line-height:1.08;
  overflow-wrap:anywhere;
}
.plan-engine-v3-grid small{
  font-size:.57rem;
  text-transform:uppercase;
}
.plan-engine-v3-warnings{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--line-soft);
}
.plan-engine-v3-warnings span{
  max-width:100%;
  padding:6px 8px;
  border-radius:8px;
  background:var(--blue-soft);
  color:var(--blue-deep);
  font-size:.63rem;
  font-weight:900;
  line-height:1.15;
  overflow-wrap:anywhere;
}
.plan-engine-v3-warnings span.is-ok{
  background:color-mix(in srgb,var(--green) 10%,#fff);
  color:var(--green);
}
@media(max-width:560px){
  .plan-engine-v3-status{
    width:calc(100% - 28px);
    padding:11px;
  }
  .plan-engine-v3-status header{
    grid-template-columns:1fr;
  }
  .plan-engine-v3-status header strong{
    justify-self:start;
    max-width:100%;
  }
  .plan-engine-v3-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-engine-v3-status{
  border-color:rgba(118,185,142,.3);
  background:#101B2F;
  box-shadow:none;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-engine-v3-status.inactive,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-engine-v3-status.review{
  border-color:rgba(234,151,87,.36);
  background:#161C2B;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-engine-v3-grid span{
  background:#17243A;
  border-color:rgba(255,255,255,.08);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-engine-v3-warnings span{
  background:#1B2941;
  color:#C9D5FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-engine-v3-warnings span.is-ok{
  background:#173222;
  color:#A6DEB8;
}

/* Dark theme contrast repair for plan metrics and food base onboarding. */
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeScreen .day-nutrition-grid,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .day-nutrition-grid,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planSummary{
  border-color:rgba(155,176,255,.24)!important;
  background:linear-gradient(180deg,rgba(18,31,56,.94),rgba(12,22,40,.96))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeScreen .day-macro,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .day-macro,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planSummary .day-macro{
  border-color:rgba(155,176,255,.26)!important;
  background:linear-gradient(135deg,rgba(30,47,82,.96),rgba(17,29,53,.98))!important;
  color:#F7F9FF!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 14px 30px rgba(0,0,0,.20)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeScreen .day-macro b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .day-macro b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeScreen .day-macro b i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .day-macro b i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planSummary .day-macro b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planSummary .day-macro b i{
  color:#F8FAFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeScreen .day-macro small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .day-macro small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeScreen .day-macro small i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .day-macro small i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planSummary .day-macro small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planSummary .day-macro small i{
  color:#B8C6F2!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeScreen .day-macro .progress,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .day-macro .progress,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planSummary .day-macro .progress{
  background:rgba(139,160,255,.22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeScreen .day-macro .progress i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .day-macro .progress i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planSummary .day-macro .progress i{
  background:linear-gradient(90deg,#8BA0FF,#FFB86B)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeScreen .day-macro b i+i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeScreen .day-macro small i+i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .day-macro b i+i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .day-macro small i+i{
  border-left-color:rgba(184,198,242,.28)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-engine-v3-status header strong{
  border:1px solid rgba(166,222,184,.24)!important;
  background:#173222!important;
  color:#A6DEB8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-engine-v3-status.review header strong,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-engine-v3-status.inactive header strong{
  border-color:rgba(255,184,107,.28)!important;
  background:#3A281B!important;
  color:#FFB86B!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-panel,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-panel.ready{
  border-color:rgba(155,176,255,.24)!important;
  background:linear-gradient(135deg,#121F38,#0F1A2E)!important;
  color:#E3EAFF!important;
  box-shadow:0 18px 34px rgba(0,0,0,.24)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-title,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-head h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-subtitle{
  color:#F8FAFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-head p{
  color:#D9E3FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-subtitle{
  border-color:rgba(155,176,255,.24)!important;
  background:linear-gradient(135deg,rgba(26,40,68,.92),rgba(17,29,53,.95))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-subtitle b{
  background:#263B67!important;
  color:#F8FAFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-subtitle i{
  background:rgba(255,130,141,.16)!important;
  color:#FFD4D8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-delivery-card{
  border-color:rgba(255,184,107,.30)!important;
  background:linear-gradient(135deg,rgba(45,37,42,.94),rgba(26,40,68,.88))!important;
  color:#F8FAFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-delivery-card b{
  color:#F8FAFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-delivery-card strong{
  color:#FFCF8A!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-delivery-card p{
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-delivery-card small{
  color:#B9C6E6!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-head>span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-toggle{
  border-color:rgba(155,176,255,.28)!important;
  background:#1A2844!important;
  color:#F8FAFF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-head>span small{
  color:#AEBBDC!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-meta{
  border-color:rgba(155,176,255,.24)!important;
  background:linear-gradient(135deg,rgba(26,40,68,.96),rgba(17,29,53,.98))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-meta b{
  color:#AEBBDC!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-meta span{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-chips i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-rows span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-rows.meal-rows span{
  border-color:rgba(155,176,255,.22)!important;
  background:rgba(26,40,68,.86)!important;
  color:#DDE5FF!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-rows span.ok{
  border-color:rgba(118,185,142,.42)!important;
  background:linear-gradient(135deg,rgba(31,80,52,.92),rgba(18,49,35,.95))!important;
  color:#C7F1D4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-rows span.advisory{
  border-color:rgba(255,184,107,.36)!important;
  background:linear-gradient(135deg,rgba(76,51,30,.9),rgba(41,32,31,.96))!important;
  color:#FFD49F!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-rows span.missing{
  border-color:rgba(255,184,107,.38)!important;
  background:linear-gradient(135deg,rgba(83,52,29,.94),rgba(54,37,28,.96))!important;
  color:#FFD29A!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-rows b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-rows i{
  color:inherit!important;
}


/* V3 meal generation visual safety */
#planScreen #mealList{
  align-items:start;
}
#planScreen #mealList>.meal-card{
  content-visibility:auto;
  contain-intrinsic-size:auto 330px;
  height:auto;
  min-height:220px;
  align-self:start;
  overflow:visible;
}
#planScreen #mealList>.meal-card .meal-items{
  overflow:visible;
}
#planScreen #mealList>.meal-card .meal-items span{
  overflow-wrap:normal;
  word-break:normal;
}
@media(max-width:430px){
  #planScreen #mealList>.meal-card{
    min-height:210px;
  }
}

/* Dark theme polish for meal amount editing and food filters. */
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .today-meal-edit-sheet .meal-edit-inline-panel,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-meal-edit-sheet .meal-edit-inline-panel,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .today-meal-edit-sheet .meal-inline-control-row,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-meal-edit-sheet .meal-inline-control-row{
  border-color:rgba(139,160,255,.24)!important;
  background:linear-gradient(180deg,#111D33,#0F1A2E)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .today-meal-edit-sheet .meal-inline-amount,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-meal-edit-sheet .meal-inline-amount,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .today-meal-edit-sheet .meal-inline-section,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-meal-edit-sheet .meal-inline-section{
  border-color:rgba(139,160,255,.26)!important;
  background:#16233D!important;
  color:#E8EEFF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .today-meal-edit-sheet .meal-inline-amount>span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-meal-edit-sheet .meal-inline-amount>span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .today-meal-edit-sheet .meal-inline-section summary,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-meal-edit-sheet .meal-inline-section summary{
  color:#C8D4F5!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .today-meal-edit-sheet .meal-inline-stepper input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-meal-edit-sheet .meal-inline-stepper input{
  border-color:rgba(155,176,255,.36)!important;
  background:#0D172A!important;
  color:#F8FAFF!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .today-meal-edit-sheet .meal-inline-stepper button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-meal-edit-sheet .meal-inline-stepper button{
  border-color:rgba(155,176,255,.18)!important;
  background:#13213A!important;
  color:#F8FAFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .today-meal-edit-sheet .meal-inline-actions .soft,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-meal-edit-sheet .meal-inline-actions .soft{
  border-color:rgba(155,176,255,.22)!important;
  background:#14223C!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .today-meal-edit-sheet .meal-inline-actions .meal-inline-remove-button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-meal-edit-sheet .meal-inline-actions .meal-inline-remove-button{
  border-color:rgba(255,157,170,.28)!important;
  background:#2A1824!important;
  color:#FFB8C4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-measure-button.active{
  border-color:rgba(155,176,255,.3)!important;
  background:#223B70!important;
  color:#F8FAFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-measure-options{
  border-color:rgba(155,176,255,.18)!important;
  background:#111D33!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-measure-options button{
  border-color:rgba(155,176,255,.18)!important;
  background:#13213A!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-measure-options button.active{
  border-color:rgba(155,176,255,.42)!important;
  background:#5B72EA!important;
  color:#fff!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .today-meal-edit-sheet .meal-inline-section summary b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-meal-edit-sheet .meal-inline-section summary b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .today-meal-edit-sheet .meal-inline-section summary:after,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .plan-meal-edit-sheet .meal-inline-section summary:after{
  background:#263454!important;
  color:#E8EEFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-toolbar,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-filter-panel{
  border-color:rgba(155,176,255,.24)!important;
  background:#0F1A2E!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .search,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen label.search{
  border-color:rgba(155,176,255,.26)!important;
  background:#0D172A!important;
  color:#B9C5E4!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .search input,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen label.search input{
  color:#F8FAFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-filter-section{
  border-color:rgba(155,176,255,.22)!important;
  background:#16233D!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-filter-section-toggle{
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-filter-section-toggle i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-filter-section-toggle b{
  background:#263454!important;
  color:#E8EEFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-filter-panel .chip{
  border-color:rgba(155,176,255,.22)!important;
  background:#0F1A2E!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-filter-panel .chip.active{
  border-color:rgba(255,184,107,.42)!important;
  background:#2D2218!important;
  color:#FFD29A!important;
}

/* Outside-diet search field: single clean input surface. */
.outside-diet-sheet label.outside-diet-search,
.recipe-food-picker-sheet label.recipe-picker-search{
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  min-height:54px!important;
  padding:0 16px!important;
  border-radius:18px!important;
  overflow:hidden!important;
}
.recipe-food-picker-sheet label.recipe-picker-search{
  margin-top:12px!important;
}
.outside-diet-sheet label.outside-diet-search .outside-search-icon,
.recipe-food-picker-sheet label.recipe-picker-search .outside-search-icon{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  width:22px!important;
  height:22px!important;
  justify-self:center!important;
}
.outside-diet-sheet label.outside-diet-search .outside-search-icon:before,
.recipe-food-picker-sheet label.recipe-picker-search .outside-search-icon:before{
  content:""!important;
  width:9px!important;
  height:9px!important;
  border:2px solid currentColor!important;
  border-radius:50%!important;
  opacity:.72!important;
}
.outside-diet-sheet label.outside-diet-search .outside-search-icon:after,
.recipe-food-picker-sheet label.recipe-picker-search .outside-search-icon:after{
  content:""!important;
  position:absolute!important;
  width:7px!important;
  height:2px!important;
  border-radius:999px!important;
  background:currentColor!important;
  transform:translate(6px,6px) rotate(45deg)!important;
  opacity:.72!important;
}
.outside-diet-sheet label.outside-diet-search input#outsideDietSearch,
.recipe-food-picker-sheet label.recipe-picker-search input#recipeFoodSearch{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
  color:var(--ink)!important;
  font-size:.92rem!important;
  font-weight:850!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet label.outside-diet-search,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-food-picker-sheet label.recipe-picker-search{
  border-color:rgba(155,176,255,.28)!important;
  background:#0D172A!important;
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-diet-sheet label.outside-diet-search input#outsideDietSearch,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-food-picker-sheet label.recipe-picker-search input#recipeFoodSearch{
  background:transparent!important;
  color:#DDE5FF!important;
}

/* Finance dark mode final polish: keep totals readable and on-theme. */
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-summary,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-filter-box,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-values>div,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-total,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-info-block,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .cost-item,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .chart-card{
  border-color:rgba(155,176,255,.22)!important;
  background:#101A30!important;
  color:#E8EEFF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-total,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-values>div{
  background:linear-gradient(135deg,#15223C,#101A30)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-total.active{
  border-color:rgba(255,184,107,.46)!important;
  background:linear-gradient(135deg,#283451,#1B2740)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-total span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-values span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-total b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-cycle-values .money,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .money{
  color:#FFB86B!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-total small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-summary .muted{
  color:#AEBBDC!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-summary:after{
  background:rgba(155,176,255,.10)!important;
}

/* Foods search field: match the outside-diet search pattern. */
#foodsScreen label.food-search-field{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-height:54px!important;
  margin:0!important;
  padding:0 12px!important;
  border-radius:18px!important;
  overflow:hidden!important;
}
#foodsScreen label.food-search-field .food-search-icon{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  width:20px!important;
  height:20px!important;
  justify-self:center!important;
  color:var(--muted)!important;
}
#foodsScreen label.food-search-field .food-search-icon:before{
  content:"";
  width:9px;
  height:9px;
  border:2px solid currentColor;
  border-radius:50%;
  opacity:.72;
}
#foodsScreen label.food-search-field .food-search-icon:after{
  content:"";
  position:absolute;
  width:7px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  transform:translate(6px,6px) rotate(45deg);
  opacity:.72;
}
#foodsScreen label.food-search-field input#foodSearch{
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
  color:var(--ink)!important;
  caret-color:var(--blue)!important;
  direction:ltr!important;
  font-size:16px!important;
  font-weight:850!important;
  line-height:52px!important;
  text-align:left!important;
  unicode-bidi:plaintext!important;
  -webkit-user-select:text!important;
  user-select:text!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen label.food-search-field{
  border-color:rgba(155,176,255,.28)!important;
  background:#0D172A!important;
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen label.food-search-field .food-search-icon{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen label.food-search-field input#foodSearch{
  background:transparent!important;
  color:#DDE5FF!important;
}

/* Finance search field: mirror the Foods search field without the broken text glyph. */
#financeScreen label.finance-search-field{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-height:54px!important;
  margin:0!important;
  padding:0 12px!important;
  border:1px solid rgba(102,127,255,.28)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.86)!important;
  box-shadow:0 10px 22px rgba(41,61,102,.075),0 0 0 4px rgba(94,124,246,.045)!important;
  overflow:hidden!important;
}
#financeScreen :is(label.finance-search-field,label.finance-dashboard-search) .finance-search-icon{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  width:20px!important;
  height:20px!important;
  justify-self:center!important;
  color:var(--muted)!important;
}
#financeScreen :is(label.finance-search-field,label.finance-dashboard-search) .finance-search-icon:before{
  content:"";
  width:9px;
  height:9px;
  border:2px solid currentColor;
  border-radius:50%;
  opacity:.72;
}
#financeScreen :is(label.finance-search-field,label.finance-dashboard-search) .finance-search-icon:after{
  content:"";
  position:absolute;
  width:7px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  transform:translate(6px,6px) rotate(45deg);
  opacity:.72;
}
#financeScreen label.finance-search-field input:is(#financeSearch,#financeSubSearch){
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
  color:var(--ink)!important;
  font-size:16px!important;
  font-weight:850!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen label.finance-search-field{
  border-color:rgba(155,176,255,.28)!important;
  background:#0D172A!important;
  color:#B9C5E4!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen label.finance-search-field .finance-search-icon{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen label.finance-search-field input:is(#financeSearch,#financeSubSearch){
  background:transparent!important;
  color:#DDE5FF!important;
}
#financeScreen :is(#financeShoppingPanel,#financeSubstitutionPanel) .finance-filter-box{
  gap:9px!important;
}
#financeScreen :is(#financeShoppingPanel,#financeSubstitutionPanel) label.finance-search-field:focus-within{
  border-color:var(--ink)!important;
  box-shadow:0 0 0 2px var(--ink)!important;
}
/* Kitchen search field: same icon rhythm as the Foods tab. */
#platesScreen label.chef-search{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-height:54px!important;
  margin:0!important;
  padding:0 12px!important;
  border-radius:18px!important;
  overflow:hidden!important;
}
#platesScreen label.chef-search .chef-search-icon{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  width:20px!important;
  height:20px!important;
  justify-self:center!important;
  color:var(--muted)!important;
}
#platesScreen label.chef-search .chef-search-icon:before{
  content:"";
  width:9px;
  height:9px;
  border:2px solid currentColor;
  border-radius:50%;
  opacity:.72;
}
#platesScreen label.chef-search .chef-search-icon:after{
  content:"";
  position:absolute;
  width:7px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  transform:translate(6px,6px) rotate(45deg);
  opacity:.72;
}
#platesScreen label.chef-search input[data-chef-search]{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
  color:var(--ink)!important;
  font-size:.9rem!important;
  font-weight:850!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #platesScreen label.chef-search{
  border-color:rgba(155,176,255,.28)!important;
  background:#0D172A!important;
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #platesScreen label.chef-search .chef-search-icon{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #platesScreen label.chef-search input[data-chef-search]{
  background:transparent!important;
  color:#DDE5FF!important;
}

/* Diary analysis series chips: active fill must fit the whole label. */
.diary-series-controls{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:3px!important;
  overflow-x:hidden!important;
  overflow-y:hidden!important;
  padding:2px 0 4px!important;
}
.diary-series-controls button,
#planScreen .plan-analysis-period .diary-series-controls button{
  flex:0 0 auto!important;
  width:max-content!important;
  min-width:42px!important;
  max-width:none!important;
  min-height:40px!important;
  padding:0 8px!important;
  overflow:visible!important;
  border-radius:999px!important;
  font-size:.66rem!important;
  line-height:1!important;
  text-align:center!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}
@media(max-width:430px){
  .diary-series-controls{
    gap:3px!important;
  }
  .diary-series-controls button,
  #planScreen .plan-analysis-period .diary-series-controls button{
    min-height:40px!important;
    padding:0 8px!important;
    font-size:.64rem!important;
  }
}

/* Economy alternatives: keep substitution cards readable in dark themes. */
#financeSubstitutionPanel .finance-swap-arrow:before{
  width:18px!important;
  height:18px!important;
  background:currentColor!important;
  color:inherit!important;
  -webkit-mask:url("/assets/premium/substitutions.svg") center/contain no-repeat!important;
  mask:url("/assets/premium/substitutions.svg") center/contain no-repeat!important;
  content:""!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-meal-filter{
  border-color:rgba(139,160,255,.24)!important;
  background:linear-gradient(145deg,#172641,#111C33)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-meal-filter>div:first-child span{
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-meal-clear{
  border-color:rgba(139,160,255,.24)!important;
  background:#0D172A!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-meal-clear.active{
  border-color:#8BA0FF!important;
  background:#263F78!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-meal-chip{
  border-color:rgba(139,160,255,.24)!important;
  background:#0D172A!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-meal-chip .finance-sub-meal-icon{
  background:#223B70!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-meal-chip span{
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-meal-chip.active{
  border-color:#8BA0FF!important;
  background:#8BA0FF!important;
  color:#071225!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-meal-chip.active .finance-sub-meal-icon{
  background:rgba(7,18,37,.15)!important;
  color:#071225!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-meal-chip.active span{
  color:#071225!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-source-node{
  border-color:rgba(139,160,255,.22)!important;
  background:linear-gradient(145deg,#172641,#101A30)!important;
  color:#F7F9FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-swap-card{border-color:color-mix(in srgb,var(--green) 48%,var(--line))!important;background:color-mix(in srgb,var(--green) 18%,var(--card))!important;color:var(--ink)!important;box-shadow:none!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-source-node:after,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-swap-card:after{
  background:rgba(139,160,255,.12)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-source-node>b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-swap-product>b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-sub-row-title small{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeSubstitutionPanel .finance-swap-arrow{
  border-color:rgba(139,160,255,.28)!important;
  background:#223B70!important;
  color:#DDE5FF!important;
}

/* Rhea cycle cards in Diary and Analysis: dark/caramelo espacial contrast. */
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-insight,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-period{
  border-color:rgba(139,160,255,.24)!important;
  background:linear-gradient(145deg,#172641,#101A30)!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-period.idle,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-insight.idle{
  border-color:rgba(139,160,255,.18)!important;
  background:linear-gradient(145deg,#13223B,#0D172A)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-insight header span{
  border:1px solid rgba(139,160,255,.24)!important;
  background:#223B70!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-insight .eyebrow,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-period .eyebrow{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-insight h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-period h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-insight b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-period b{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-insight small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-period small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-period>span{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-insight-grid span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diary-cycle-period>div span{
  border-color:rgba(139,160,255,.18)!important;
  background:#0D172A!important;
  color:#DDE5FF!important;
}
:root[data-visual-theme="yellowgray"] .diary-cycle-insight,
:root[data-visual-theme="yellowgray"] .diary-cycle-period{
  border-color:rgba(92,144,111,.24)!important;
  background:rgba(255,255,252,.94)!important;
  color:#273341!important;
}
:root[data-visual-theme="yellowgray"] .diary-cycle-insight header span,
:root[data-visual-theme="yellowgray"] .diary-cycle-insight-grid span,
:root[data-visual-theme="yellowgray"] .diary-cycle-period>div span{
  border-color:rgba(92,144,111,.22)!important;
  background:rgba(239,248,224,.72)!important;
  color:#273341!important;
}
:root[data-visual-theme="yellowgray"] .diary-cycle-insight h3,
:root[data-visual-theme="yellowgray"] .diary-cycle-period h3,
:root[data-visual-theme="yellowgray"] .diary-cycle-insight b,
:root[data-visual-theme="yellowgray"] .diary-cycle-period b{
  color:#273341!important;
}
:root[data-visual-theme="yellowgray"] .diary-cycle-insight small,
:root[data-visual-theme="yellowgray"] .diary-cycle-period small,
:root[data-visual-theme="yellowgray"] .diary-cycle-period>span,
:root[data-visual-theme="yellowgray"] .diary-cycle-insight .eyebrow,
:root[data-visual-theme="yellowgray"] .diary-cycle-period .eyebrow{
  color:#5a675a!important;
}

/* Keep the compact subtab rhythm in the dark themes. */
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) :is(#homeScreen > .home-tabs,#planScreen > .plan-tabs,.osyra-feature-tabs){
  gap:6px!important;
  margin:9px 0 8px!important;
  padding:4px!important;
  border:1px solid rgba(139,160,255,.24)!important;
  border-radius:999px!important;
  background:#172641!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 12px 24px rgba(0,0,0,.18)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) :is(#homeScreen > .home-tabs,#planScreen > .plan-tabs,.osyra-feature-tabs) button{
  min-height:40px!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) :is(#homeScreen > .home-tabs,#planScreen > .plan-tabs,.osyra-feature-tabs) .active{
  border-color:#8BA0FF!important;
  background:#8BA0FF!important;
  color:#07101F!important;
  box-shadow:0 10px 20px rgba(139,160,255,.24)!important;
}

/* Agora and Dieta share the same subtab rail. */
:is(#homeScreen > .home-tabs,#planScreen > .plan-tabs,.osyra-feature-tabs){
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:0!important;
  width:100%!important;
  margin:10px 0 16px!important;
  padding:4px!important;
  border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line))!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--blue-soft) 34%,var(--card) 66%)!important;
  box-shadow:none!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
:is(#homeScreen > .home-tabs,#planScreen > .plan-tabs,.osyra-feature-tabs) button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  padding:0 14px!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:var(--ink)!important;
  font-size:.78rem!important;
  font-weight:900!important;
  line-height:1!important;
  opacity:1!important;
  box-shadow:none!important;
  transform:none!important;
}
:is(#homeScreen > .home-tabs,#planScreen > .plan-tabs,.osyra-feature-tabs) button.active{
  background:var(--blue)!important;
  color:#fff!important;
  box-shadow:0 10px 20px rgba(102,127,255,.22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) :is(#homeScreen > .home-tabs,#planScreen > .plan-tabs,.osyra-feature-tabs){
  border-color:rgba(139,160,255,.24)!important;
  background:#172641!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) :is(#homeScreen > .home-tabs,#planScreen > .plan-tabs,.osyra-feature-tabs) button{
  background:transparent!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) :is(#homeScreen > .home-tabs,#planScreen > .plan-tabs,.osyra-feature-tabs) button.active{
  background:#8BA0FF!important;
  color:#07101F!important;
  box-shadow:0 10px 20px rgba(139,160,255,.24)!important;
}

/* Saved recipe detail: readable dark mode surfaces. */
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-sheet{
  border-color:rgba(139,160,255,.22)!important;
  background:#0D172A!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .chef-created{
  border-color:rgba(139,160,255,.24)!important;
  background-image:linear-gradient(145deg,rgba(23,38,65,.96),rgba(13,23,42,.98)),var(--recipe-card-image,none)!important;
  background-color:#101A30!important;
  color:#F7F9FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .chef-created .chef-created-hero h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .chef-created .chef-created-hero p{
  color:#F7F9FF!important;
  text-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .chef-created .chef-created-hero p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .chef-created .muted{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .chef-recipe-result>div,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-macro-grid .simple-macro,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-micronutrients,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-instructions,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-saved-ingredients{
  border-color:rgba(139,160,255,.22)!important;
  background:#172641!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-macro-grid .simple-macro{
  background:linear-gradient(145deg,#182846,#101A30)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .chef-recipe-result span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-macro-grid .simple-macro span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-micronutrients summary,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-saved-ingredients>b{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .chef-recipe-result b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-macro-grid .simple-macro b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-instructions h4,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-saved-ingredients li,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-saved-ingredients li span{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-micronutrients summary b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-micronutrients span{
  border-color:rgba(139,160,255,.18)!important;
  background:#0D172A!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-micronutrients span b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-instructions p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .recipe-detail-modal .recipe-instructions .station-note{
  color:#B9C5E4!important;
}

/* Restaurant scheduling: keep partner visit cards readable in dark mode. */
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-summary-card{
  border-color:rgba(139,160,255,.24)!important;
  background:linear-gradient(145deg,#13223B,#0D172A)!important;
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-summary-card h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-summary-card p,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-summary-card .muted{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-summary-card .eyebrow{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-summary-meta span{
  border:1px solid rgba(139,160,255,.24)!important;
  background:#172641!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-time-pill{
  border:1px solid rgba(247,166,83,.26)!important;
  background:#FFE3BD!important;
  color:#8A430D!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-preview-modal{
  border-color:rgba(139,160,255,.24)!important;
  background:linear-gradient(180deg,#101A30,#0D172A)!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-swap>div,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-impact,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-adjustments,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-adjustments article{
  border-color:rgba(139,160,255,.22)!important;
  background:#13223B!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-swap .after{
  border-color:rgba(63,213,151,.34)!important;
  background:linear-gradient(145deg,#10253C,#112F3F)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-swap small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-adjustments summary,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-adjustments article>small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-delta b{
  color:#B9C5E4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-swap b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-impact h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-adjustments article>b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-delta em{
  color:#F7F9FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-swap span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-adjustments .recover-swap-block span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .restaurant-diet-delta span{
  background:#0D172A!important;
  color:#DDE5FF!important;
}

/* Legacy foods intro card is retired. Keep it hidden across all themes. */
#foodsScreen .foods-hero-card,
:root[data-visual-theme="yellowgray"] #foodsScreen .foods-hero-card{
  display:none!important;
}

/* Food base central: keep search compact while preserving the regular filter panel. */
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar{
  margin-top:0!important;
  margin-bottom:8px!important;
  padding:10px 13px 13px!important;
  border-top:0!important;
  border-color:rgba(102,127,255,.20)!important;
  border-radius:0 0 22px 22px!important;
  background:linear-gradient(135deg,rgba(245,248,255,.98),rgba(238,252,247,.96))!important;
  box-shadow:0 14px 30px rgba(41,61,102,.08)!important;
}
#foodsScreen #foodOnboardingMount:not(:empty) .food-onboarding-panel{
  margin-bottom:0!important;
  border-bottom-color:transparent!important;
  border-bottom-right-radius:0!important;
  border-bottom-left-radius:0!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-toolbar-top{
  display:none!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-search-title{
  display:none!important;
}
#foodsScreen .food-toolbar .filter-toggle,
#foodsScreen #foodFilterPanel{
  display:none!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-toolbar-row{
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-search-field{
  min-height:54px!important;
  margin:0!important;
  border-color:rgba(102,127,255,.28)!important;
  background:rgba(255,255,255,.72)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55)!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-toolbar-actions{
  gap:0!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-clear-button{
  width:42px!important;
  min-width:42px!important;
  padding:0!important;
  border-radius:999px!important;
  font-size:0!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-clear-button:before{
  content:"x";
  font-size:.9rem;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-results-meta{
  margin:5px 2px 0!important;
  text-align:right!important;
}
#foodsScreen .food-onboarding-rows button{
  appearance:none;
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:32px;
  padding:6px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:.68rem;
  font-weight:850;
  cursor:pointer;
}
#foodsScreen .food-onboarding-rows button.ok{
  border-color:rgba(33,176,124,.26);
  background:#effcf4;
}
#foodsScreen .food-onboarding-rows button.advisory{
  border-color:rgba(255,184,107,.32);
  background:#fff8eb;
  color:#77501f;
}
#foodsScreen .food-onboarding-rows button.missing{
  border-color:rgba(231,109,114,.22);
  background:#fff4f4;
}
#foodsScreen .food-onboarding-rows button.empty-filter,
#foodsScreen .food-onboarding-rows button:disabled.empty-filter{
  border-style:dashed;
  opacity:.9;
  cursor:pointer;
  filter:saturate(.88);
}
#foodsScreen .food-onboarding-rows button.active{
  border-color:#8BA0FF;
  background:linear-gradient(180deg,#eef3ff,#dfe7ff);
  color:#12305C;
  box-shadow:0 8px 18px rgba(102,127,255,.16);
}
#foodsScreen .food-onboarding-rows button b{
  color:inherit;
}
#foodsScreen .food-onboarding-rows button i{
  color:inherit;
  font-style:normal;
  font-weight:950;
}
#foodsScreen .food-onboarding-rows button:focus-visible{
  outline:3px solid rgba(139,160,255,.42);
  outline-offset:2px;
}
#foodsScreen .food-onboarding-custom.energy-custom{
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:9px;
  padding:9px;
  border:1px solid rgba(255,184,107,.22);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(255,250,241,.76),rgba(246,250,255,.72));
}
#foodsScreen .food-onboarding-section.indicator-only .food-onboarding-subtitle{
  border-color:rgba(255,184,107,.28);
  background:linear-gradient(135deg,rgba(255,250,241,.84),rgba(255,255,255,.66));
}
#foodsScreen .food-onboarding-section.indicator-only .food-onboarding-subtitle i{
  background:rgba(255,184,107,.18);
  color:#9C5B11;
}
#foodsScreen .food-onboarding-indicator{
  display:grid;
  gap:4px;
  min-height:54px;
  padding:10px 11px;
  border:1px dashed rgba(102,127,255,.22);
  border-radius:12px;
  background:rgba(255,255,255,.72);
  color:var(--ink);
  cursor:default;
}
#foodsScreen .food-onboarding-indicator b{
  font-size:.68rem;
  font-weight:950;
  line-height:1.18;
}
#foodsScreen .food-onboarding-indicator span{
  color:var(--muted);
  font-size:.7rem;
  font-weight:900;
  line-height:1.22;
  overflow-wrap:anywhere;
}
#foodsScreen .food-onboarding-indicator.ok{
  border-color:rgba(33,176,124,.24);
  background:rgba(239,252,244,.86);
}
#foodsScreen .food-onboarding-indicator.missing{
  border-color:rgba(255,184,107,.36);
  background:rgba(255,248,235,.88);
}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar{
  border-color:rgba(139,160,255,.22)!important;
  background:linear-gradient(145deg,#13223B,#0D172A)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-search-field{
  border-color:rgba(139,160,255,.28)!important;
  background:#0D172A!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-rows button{
  border-color:rgba(139,160,255,.22)!important;
  background:#172641!important;
  color:#DDE5FF!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-rows button.ok{
  border-color:rgba(63,213,151,.34)!important;
  background:#0F3B2F!important;
  color:#DDFBEF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-rows button.advisory{
  border-color:rgba(247,166,83,.34)!important;
  background:#3B2A14!important;
  color:#FFE3BD!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-rows button.missing{
  border-color:rgba(255,125,138,.30)!important;
  background:#3B1F24!important;
  color:#FFD9DE!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-rows button.empty-filter,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-rows button:disabled.empty-filter{
  opacity:.72!important;
  filter:saturate(.68)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-rows button.active{
  border-color:#8BA0FF!important;
  background:#8BA0FF!important;
  color:#07101F!important;
  box-shadow:0 10px 20px rgba(139,160,255,.24)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-custom.energy-custom{
  border-color:rgba(247,166,83,.28)!important;
  background:linear-gradient(135deg,rgba(59,42,20,.74),rgba(23,38,65,.78))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-section.indicator-only .food-onboarding-subtitle{
  border-color:rgba(247,166,83,.30)!important;
  background:linear-gradient(135deg,rgba(59,42,20,.72),rgba(26,40,68,.88))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-section.indicator-only .food-onboarding-subtitle i{
  background:rgba(247,166,83,.18)!important;
  color:#FFCF8A!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-indicator{
  border-color:rgba(139,160,255,.22)!important;
  background:#172641!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-indicator.ok{
  border-color:rgba(63,213,151,.34)!important;
  background:#0F3B2F!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-indicator.missing{
  border-color:rgba(247,166,83,.34)!important;
  background:#3B2A14!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-indicator span{
  color:#B7C4E8!important;
}

/* Food base central v2: search lives inside the expandable central, not below it. */
#foodsScreen #foodOnboardingMount:not(:empty) .food-onboarding-panel{
  margin-bottom:12px!important;
  border-bottom-color:rgba(102,127,255,.20)!important;
  border-bottom-right-radius:22px!important;
  border-bottom-left-radius:22px!important;
}
#foodsScreen .food-onboarding-search-slot{
  display:block;
  margin:0 0 12px!important;
}
#foodsScreen .food-onboarding-search-slot .food-toolbar{
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#foodsScreen .food-onboarding-search-slot .food-toolbar-top,
#foodsScreen .food-onboarding-search-slot .food-search-title,
#foodsScreen .food-onboarding-search-slot .filter-toggle{
  display:none!important;
}
#foodsScreen .food-onboarding-search-slot .food-toolbar-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
}
#foodsScreen .food-onboarding-search-slot .food-search-field,
#foodsScreen .food-onboarding-search-slot .filter-actions{
  grid-column:auto!important;
}
#foodsScreen .food-onboarding-search-slot .food-search-field{
  min-height:52px!important;
  margin:0!important;
  border:1px solid rgba(102,127,255,.28)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.72)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55)!important;
}
#foodsScreen .food-onboarding-search-slot .food-toolbar-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  min-width:max-content!important;
}
#foodsScreen .food-onboarding-search-slot .filter-toggle{
  min-width:92px!important;
  min-height:40px!important;
  padding:0 10px!important;
  font-size:.68rem!important;
  line-height:1!important;
}
#foodsScreen .food-onboarding-search-slot .food-clear-button{
  width:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  padding:0!important;
  border-radius:999px!important;
  font-size:0!important;
}
#foodsScreen .food-onboarding-search-slot .food-clear-button:before{
  content:"x";
  font-size:.9rem;
}
#foodsScreen .food-onboarding-search-slot .food-results-meta{
  margin:5px 2px 0!important;
  text-align:right!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodOnboardingMount:not(:empty) .food-onboarding-panel{
  border-bottom-color:rgba(139,160,255,.22)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-search-slot .food-search-field{
  border-color:rgba(139,160,255,.28)!important;
  background:#0D172A!important;
  box-shadow:none!important;
}

/* Food filters: the central can own the search field, but the filter UI must remain reachable. */
#foodsScreen .food-toolbar .filter-toggle,
#foodsScreen .food-onboarding-search-slot .filter-toggle{
  display:inline-flex!important;
}
#foodsScreen #foodFilterPanel{
  display:block!important;
}
#foodsScreen #foodFilterPanel[hidden]{
  display:none!important;
}

/* Foods tab: keep custom food registration visible even when the base panel is collapsed. */
#foodsScreen .food-onboarding-head{
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:start!important;
  gap:10px!important;
}
#foodsScreen .food-onboarding-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  min-width:0;
  justify-self:end;
}
#foodsScreen .food-onboarding-head-actions>[data-food-onboarding-count],
#foodsScreen .food-onboarding-head>[data-food-onboarding-count]{
  display:grid;
  place-items:center;
  min-width:54px;
  min-height:52px;
  padding:0;
  border:1px solid var(--line);
  border-radius:17px;
  background:linear-gradient(135deg,var(--blue-soft),#fff);
  color:var(--blue-deep);
  font-weight:900;
  box-shadow:var(--shadow-soft);
  cursor:pointer;
}
#foodsScreen .food-onboarding-head-actions>[data-food-onboarding-count] b,
#foodsScreen .food-onboarding-head>[data-food-onboarding-count] b{
  font-size:1.06rem;
  line-height:1;
}
#foodsScreen .food-onboarding-head-actions>[data-food-onboarding-count] small,
#foodsScreen .food-onboarding-head>[data-food-onboarding-count] small{
  color:var(--muted);
  font-size:.55rem;
  text-transform:uppercase;
}
#foodsScreen .food-onboarding-head-actions>[data-food-onboarding-count]:focus-visible,
#foodsScreen .food-onboarding-head>[data-food-onboarding-count]:focus-visible{
  outline:3px solid rgba(102,127,255,.28);
  outline-offset:2px;
}
#foodsScreen .food-onboarding-add{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:40px;
  padding:5px 11px 5px 5px;
  border:1px solid rgba(248,168,78,.30);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,244,229,.88));
  color:#945A19;
  box-shadow:0 10px 22px rgba(248,168,78,.14);
  font-size:.66rem;
  font-weight:950;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
}
#foodsScreen .food-onboarding-manage{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 13px;
  border:1px solid rgba(102,127,255,.30);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(234,240,255,.98),rgba(255,255,255,.88));
  color:var(--blue-deep);
  box-shadow:0 8px 18px rgba(102,127,255,.10);
  font-size:.66rem;
  font-weight:950;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
}
#foodsScreen .food-onboarding-manage b{
  color:inherit;
}
#foodsScreen .food-onboarding-manage:focus-visible{
  outline:3px solid rgba(102,127,255,.28);
  outline-offset:2px;
}
#foodsScreen .food-onboarding-add i{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:linear-gradient(135deg,#FFB15C,#F6C94B);
  color:#fff;
  font-style:normal;
  font-size:1rem;
  line-height:1;
  box-shadow:0 7px 16px rgba(248,168,78,.22);
}
#foodsScreen .food-onboarding-add b{
  color:inherit;
}
#foodsScreen .food-onboarding-add:focus-visible{
  outline:3px solid rgba(248,168,78,.34);
  outline-offset:2px;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-add{
  border-color:rgba(247,166,83,.32);
  background:linear-gradient(135deg,#243555,#13223B);
  color:#FFE0B8;
  box-shadow:none;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-manage{
  border-color:rgba(139,160,255,.34);
  background:linear-gradient(135deg,#203258,#142541);
  color:#DDE6FF;
  box-shadow:none;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-head-actions>[data-food-onboarding-count],
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-head>[data-food-onboarding-count]{
  border-color:rgba(139,160,255,.24);
  background:linear-gradient(145deg,#1A2A48,#101D34);
  color:#E9EEFF;
  box-shadow:none;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-head-actions>[data-food-onboarding-count] small,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-head>[data-food-onboarding-count] small{
  color:#AEBBDE;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-add i{
  background:linear-gradient(135deg,#F7A653,#8BA0FF);
  color:#07101F;
  box-shadow:none;
}
@media(max-width:430px){
  #foodsScreen .food-onboarding-head{
    gap:8px!important;
  }
  #foodsScreen .food-onboarding-head-actions{
    gap:6px;
  }
  #foodsScreen .food-onboarding-head-actions>[data-food-onboarding-count],
  #foodsScreen .food-onboarding-head>[data-food-onboarding-count]{
    min-width:48px;
    min-height:46px;
    border-radius:15px;
  }
  #foodsScreen .food-onboarding-add{
    width:40px;
    min-width:40px;
    min-height:40px;
    padding:4px;
  }
  #foodsScreen .food-onboarding-manage{
    min-height:40px;
    padding:0 10px;
    font-size:.62rem;
  }
  #foodsScreen .food-onboarding-add b{
    display:none;
  }
}

/* Retired legacy foods intro card. This stays last to beat theme overrides. */
body #foodsScreen .foods-hero-card{
  display:none!important;
}

/* Analysis chart metric filters: centered, no horizontal rail. */
.diary-series-controls,
#planScreen .plan-analysis-period .diary-series-controls{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  align-items:center!important;
  gap:7px!important;
  overflow:visible!important;
  padding:2px 0 7px!important;
}
.diary-series-controls button,
#planScreen .plan-analysis-period .diary-series-controls button{
  flex:0 1 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  padding:0 12px!important;
  white-space:nowrap!important;
}
@media(max-width:430px){
  .diary-series-controls,
  #planScreen .plan-analysis-period .diary-series-controls{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:4px!important;
    width:100%!important;
    padding:2px 0 8px!important;
  }
  .diary-series-controls button,
  #planScreen .plan-analysis-period .diary-series-controls button{
    width:100%!important;
    min-width:0!important;
    min-height:38px!important;
    padding:0 3px!important;
    border-radius:999px!important;
    font-size:.55rem!important;
    line-height:1!important;
  }
}

/* Desktop layout balance: finance and recipes should read as centered app workspaces, not stretched mobile columns. */
@media(min-width:1100px){
  #financeScreen.active,
  #platesScreen.active{
    display:block!important;
    width:100%!important;
    max-width:1180px!important;
    margin-right:auto!important;
    margin-left:auto!important;
  }
  #financeScreen .screen-profile-mini,
  #financeScreen .finance-tabs,
  #financeScreen #financeShoppingPanel,
  #financeScreen #financeSubstitutionPanel,
  #platesScreen>.section-heading,
  #recipeBuilderPanel{
    width:100%!important;
    max-width:1080px!important;
    margin-right:auto!important;
    margin-left:auto!important;
  }
  #financeScreen .finance-tabs{
    margin-top:14px!important;
    margin-bottom:16px!important;
  }
  #financeScreen #financeShoppingPanel:not([hidden]){
    display:grid!important;
    grid-template-columns:minmax(220px,260px) minmax(320px,430px) minmax(0,1fr)!important;
    grid-template-areas:
      "totals select select"
      "chart chart chart"
      "heading heading heading"
      "filters list list";
    align-items:start!important;
    gap:16px 18px!important;
  }
  #financeScreen #financeTotals{
    grid-area:totals!important;
    align-self:start!important;
    width:100%!important;
    max-width:260px!important;
    justify-self:start!important;
  }
  #financeScreen #financeShoppingPanel .select-card{
    grid-area:select!important;
    width:min(100%,430px)!important;
    justify-self:start!important;
    margin:0!important;
  }
  #financeScreen #financeShoppingPanel .chart-grid{
    grid-area:chart!important;
    width:min(100%,900px)!important;
    max-width:900px!important;
    justify-self:center!important;
  }
  #financeScreen #financeShoppingPanel .chart-card{
    position:relative!important;
    top:auto!important;
    width:100%!important;
    min-height:340px!important;
    margin:0 auto!important;
  }
  #financeScreen #financeShoppingPanel .section-heading{
    grid-area:heading!important;
    width:100%!important;
    margin:4px 0 -4px!important;
  }
  #financeScreen #financeShoppingPanel .finance-filter-box{
    grid-area:filters!important;
    width:100%!important;
    max-width:360px!important;
    justify-self:start!important;
    margin:0!important;
  }
  #financeScreen #financeList{
    grid-area:list!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(240px,1fr))!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    justify-self:stretch!important;
  }
  #financeScreen #financeSubstitutionPanel:not([hidden]){
    display:grid!important;
    gap:16px!important;
  }
  #financeScreen #financeSubAction,
  #financeScreen #financeSubMealFilters{
    width:min(100%,900px)!important;
    justify-self:center!important;
  }
  #financeScreen #financeSubstitutionList{
    width:100%!important;
    max-width:1080px!important;
    justify-self:center!important;
    grid-template-columns:repeat(2,minmax(260px,1fr))!important;
  }
  #platesScreen>.section-heading{
    margin-top:18px!important;
    margin-bottom:14px!important;
  }
  #recipeBuilderPanel:not(.hidden){
    display:grid!important;
    grid-template-columns:minmax(220px,300px) minmax(420px,1fr)!important;
    grid-template-areas:
      "summary builder"
      "save builder"
      ". savedTitle"
      ". saved";
    align-items:start!important;
    gap:14px 20px!important;
  }
  #recipeBuilderPanel #recipeSummary{
    grid-area:summary!important;
    width:100%!important;
    margin:0!important;
    align-self:start!important;
  }
  #recipeBuilderPanel [data-recipe-save]{
    grid-area:save!important;
    width:100%!important;
    margin:0!important;
  }
  #recipeBuilderPanel #recipeBuilder{
    grid-area:builder!important;
    width:100%!important;
    max-width:760px!important;
    justify-self:center!important;
    margin:0!important;
  }
  #recipeBuilderPanel .section-heading{
    grid-area:savedTitle!important;
    width:100%!important;
    max-width:760px!important;
    justify-self:center!important;
    margin:0!important;
  }
  #recipeBuilderPanel #recipeSavedList{
    grid-area:saved!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(240px,1fr))!important;
    gap:14px!important;
    width:100%!important;
    max-width:760px!important;
    justify-self:center!important;
    overflow:visible!important;
  }
  .ai-fab{
    position:fixed!important;
    left:auto;
    top:auto;
    right:max(28px,calc((100vw - min(var(--app-width),1180px))/2 + 28px))!important;
    bottom:30px!important;
    transform:translate3d(0,0,0);
    will-change:transform;
  }
  .ai-fab.anchored,
  .ai-fab.free-anchored,
  .ai-fab.user-placed{
    position:fixed!important;
  }
  .ai-fab.anchored{
    position:absolute!important;
  }
  .ai-fab.free-anchored:not(.anchored),
  .ai-fab.user-placed{
    position:fixed!important;
  }
  .ai-fab.dragging,
  .ai-fab.moved{
    transition:none!important;
  }
}
@media(min-width:1480px){
  #financeScreen.active,
  #platesScreen.active{
    max-width:1260px!important;
  }
  #financeScreen .screen-profile-mini,
  #financeScreen .finance-tabs,
  #financeScreen #financeShoppingPanel,
  #financeScreen #financeSubstitutionPanel,
  #recipeBuilderPanel,
  #platesScreen>.section-heading{
    max-width:1160px!important;
  }
  #financeScreen #financeShoppingPanel:not([hidden]){
    grid-template-columns:minmax(240px,280px) minmax(360px,460px) minmax(0,1fr)!important;
  }
  #financeScreen #financeShoppingPanel .chart-grid{
    max-width:980px!important;
  }
  #recipeBuilderPanel:not(.hidden){
    grid-template-columns:minmax(240px,320px) minmax(500px,1fr)!important;
  }
  #recipeBuilderPanel #recipeBuilder,
  #recipeBuilderPanel .section-heading,
  #recipeBuilderPanel #recipeSavedList{
    max-width:820px!important;
  }
}

/* Cozinha workspace redesign */
#platesScreen.active{
  display:block;
}
#platesScreen>.section-heading{
  align-items:end;
  padding:0 2px;
}
#platesScreen>.section-heading .eyebrow{
  color:var(--orange);
}
#platesScreen>.section-heading h2{
  color:var(--ink);
  font-size:1.58rem;
  letter-spacing:0;
}
#recipeBuilderPanel:not(.hidden){
  display:grid;
  gap:14px;
}
#recipeBuilder{
  overflow:hidden;
  padding:0;
  border:1px solid color-mix(in srgb,var(--orange) 20%,var(--line));
  border-radius:22px;
  background:
    linear-gradient(180deg,color-mix(in srgb,var(--surface) 92%,#fff) 0%,var(--surface) 44%,var(--surface-2) 100%);
  box-shadow:0 18px 44px rgba(26,38,58,.10);
}
.chef-workbench{
  gap:0;
}
.chef-mission{
  position:relative;
  overflow:hidden;
  gap:14px;
  padding:16px;
  border:0;
  border-radius:0;
  background:
    linear-gradient(135deg,color-mix(in srgb,var(--blue-deep) 88%,#293851),color-mix(in srgb,var(--green) 70%,var(--blue)));
  color:#fff;
  box-shadow:none;
}
.chef-mission:after{
  position:absolute;
  right:-28px;
  bottom:-36px;
  width:138px;
  height:138px;
  background:url("assets/premium/kitchen.svg") center/contain no-repeat;
  content:"";
  opacity:.12;
  pointer-events:none;
}
.chef-mission-head{
  position:relative;
  z-index:1;
  grid-template-columns:46px minmax(0,1fr) auto;
}
.chef-mission-icon{
  width:46px;
  height:46px;
  border-radius:14px;
  background:rgba(255,255,255,.16);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);
}
.chef-mission-head b{
  color:#fff;
  font-size:1.08rem;
}
.chef-mission-badge{
  border-color:rgba(255,255,255,.26)!important;
  background:rgba(255,255,255,.18)!important;
  box-shadow:none;
}
.chef-progress{
  position:relative;
  z-index:1;
  height:6px;
  background:rgba(255,255,255,.22);
}
.chef-progress i{
  background:#fff;
}
.chef-stepper{
  position:relative;
  z-index:1;
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.chef-stepper button{
  min-height:54px;
  padding:7px 4px;
  border-color:rgba(255,255,255,.16);
  border-radius:12px;
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.76);
}
.chef-stepper button span{
  overflow:hidden;
  max-width:100%;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chef-stepper button b{
  width:24px;
  height:24px;
  background:rgba(255,255,255,.14);
  color:inherit;
}
.chef-stepper button.active{
  border-color:rgba(255,255,255,.68);
  background:#fff;
  color:var(--blue-deep);
}
.chef-stepper button.active b{
  background:var(--orange);
  color:#fff;
}
.chef-stepper button.done{
  color:#fff;
}
.chef-stepper button.done b{
  background:var(--green);
}
.chef-stage{
  margin:14px;
  gap:14px;
  padding:16px;
  border-color:color-mix(in srgb,var(--line) 78%,transparent);
  border-radius:18px;
  background:color-mix(in srgb,var(--card) 94%,#fff);
  box-shadow:none;
}
.chef-stage-head h3{
  font-size:1.06rem;
}
.chef-stage-head>span{
  max-width:none;
  background:color-mix(in srgb,var(--orange) 13%,var(--surface));
  color:var(--ink);
}
.chef-pantry{
  overflow:visible;
}
.chef-search{
  min-height:46px;
  border-radius:14px;
  background:var(--field);
}
.chef-pantry .chef-filter-panel{
  padding:10px!important;
  border-radius:14px!important;
  background:color-mix(in srgb,var(--surface-2) 58%,var(--card))!important;
}
.chef-pantry .chef-group-rail{
  gap:8px!important;
}
.chef-pantry .chef-group-rail button{
  min-height:36px!important;
  border-radius:10px!important;
}
.chef-food-grid.chef-food-blocks{
  gap:8px!important;
  padding:1px 0 2px;
}
.chef-food-grid.chef-food-blocks .chef-food-card{
  min-height:40px;
  border-radius:12px;
  box-shadow:none!important;
}
.chef-selected-list{
  gap:10px;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--green) 18%,var(--line));
  border-radius:16px;
  background:color-mix(in srgb,var(--green) 7%,var(--surface));
}
.recipe-ingredient-row{
  border-radius:14px;
  box-shadow:none;
}
.chef-station-card{
  gap:12px;
  padding:14px;
  border-radius:16px;
  background:var(--card);
  box-shadow:0 12px 26px rgba(26,38,58,.06);
}
.chef-station-top{
  grid-template-columns:minmax(140px,1fr) minmax(120px,.72fr) minmax(90px,.46fr) 38px;
}
.chef-station-math{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.chef-station-foods{
  padding:10px;
  border-radius:14px;
  background:var(--surface-2);
}
.chef-station-foods button{
  border-radius:9px;
}
.chef-nav.three{
  grid-template-columns:minmax(0,.8fr) minmax(0,.9fr) minmax(0,1.2fr);
  gap:10px;
  margin:0 14px 14px;
}
.chef-nav button{
  border-radius:12px;
}
#recipeSummary.panel{
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.chef-mini-hud{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.chef-mini-hud div{
  border-radius:14px;
  background:var(--card);
  box-shadow:0 10px 24px rgba(26,38,58,.06);
}
.recipe-yield-fields,
.chef-recipe-result{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.chef-recipe-result div{
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
}
.chef-recipe-result span{
  display:block;
  color:var(--muted);
  font-size:.62rem;
  font-weight:900;
  text-transform:uppercase;
}
.chef-recipe-result b{
  color:var(--ink);
}
.recipe-nutrition-label{
  border-radius:8px;
  box-shadow:none;
}
.recipe-library-tabs{
  gap:8px;
  padding:0;
}
.recipe-library-tabs button{
  border-radius:12px;
  background:var(--card);
}
#recipeSavedList{
  gap:10px;
}
.recipe-saved-card{
  border-radius:16px;
  box-shadow:0 12px 28px rgba(26,38,58,.07);
}
@media(min-width:900px){
  #recipeBuilderPanel:not(.hidden){
    grid-template-columns:minmax(250px,310px) minmax(0,1fr);
    grid-template-areas:
      "summary builder"
      "savedTitle builder"
      "saved builder";
    align-items:start;
    gap:16px 20px;
  }
  #recipeBuilderPanel #recipeSummary{grid-area:summary}
  #recipeBuilderPanel #recipeBuilder{grid-area:builder}
  #recipeBuilderPanel>.section-heading{grid-area:savedTitle;margin:4px 0 0}
  #recipeBuilderPanel #recipeSavedList{
    grid-area:saved;
    display:grid;
    grid-template-columns:minmax(0,1fr)!important;
  }
  #recipeBuilderPanel [data-recipe-save]{display:none!important}
}
@media(max-width:899px){
  #recipeBuilder{
    border-radius:20px;
  }
  .chef-stepper{
    grid-template-columns:repeat(5,minmax(42px,1fr));
    overflow-x:auto;
    padding-bottom:1px;
  }
  .chef-stepper button span{
    font-size:.58rem;
  }
  .chef-stage{
    margin:10px;
    padding:13px;
  }
  .chef-station-top,
  .chef-station-math,
  .recipe-yield-fields,
  .chef-recipe-result{
    grid-template-columns:1fr;
  }
  .chef-nav.three{
    grid-template-columns:1fr;
    margin:0 10px 10px;
  }
  .chef-mini-hud{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media(max-width:430px){
  #platesScreen>.section-heading h2{
    font-size:1.36rem;
  }
  .chef-mission{
    padding:13px;
  }
  .chef-mission-head{
    grid-template-columns:40px minmax(0,1fr) 32px;
  }
  .chef-mission-icon{
    width:40px;
    height:40px;
  }
  .chef-stepper button{
    min-height:50px;
  }
  .chef-mini-hud{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* Food tab performance pass */
#foodsScreen #foodList{
  contain:layout paint style;
  gap:8px!important;
}
#foodsScreen .food-card.food-card-compact{
  content-visibility:auto;
  contain:layout paint style;
  contain-intrinsic-size:54px;
  box-shadow:none!important;
  background:#fff!important;
  border-color:rgba(102,127,255,.14)!important;
}
#foodsScreen .food-card.food-card-compact.food-preference-fit{
  background:#fff!important;
  border-color:rgba(33,176,124,.32)!important;
}
#foodsScreen .food-card.food-card-compact .food-image,
#foodsScreen .food-card.food-card-compact .food-favorite-button{
  box-shadow:none!important;
}
#foodsScreen .food-card.food-card-compact .switch span{
  transition:background-color .12s ease!important;
}
#foodsScreen .food-card.food-card-compact .switch span:after{
  transition:transform .12s ease!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card.food-card-compact{
  background:linear-gradient(135deg,rgba(18,34,61,.96),rgba(12,22,40,.96))!important;
  border-color:rgba(139,160,255,.22)!important;
  box-shadow:0 12px 24px rgba(0,0,0,.20)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card.food-card-compact.food-preference-fit{
  background:linear-gradient(135deg,rgba(14,55,44,.92),rgba(13,27,49,.96))!important;
  border-color:rgba(63,213,151,.36)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card.food-card-compact.off{
  background:rgba(13,24,43,.72)!important;
  border-color:rgba(139,160,255,.14)!important;
}

/* Foods tab: keep the standalone toolbar hidden once the central owns search. */
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar{
  display:grid!important;
}

/* Foods tab visual shell v4: preserve behavior, reorganize only presentation. */
#foodsScreen.active{
  display:grid!important;
  grid-template-columns:minmax(340px,430px) minmax(0,1fr)!important;
  grid-auto-rows:auto!important;
  gap:12px 18px!important;
  align-items:start!important;
  width:100%!important;
}
#foodsScreen #foodsProfileMini{
  grid-column:1 / -1!important;
  grid-row:1!important;
  width:100%!important;
  max-width:1160px!important;
  justify-self:center!important;
}
#foodsScreen #foodOnboardingMount{
  grid-column:1!important;
  grid-row:2!important;
  min-width:0!important;
  width:100%!important;
}
#foodsScreen #foodOnboardingMount:not(:empty) .food-onboarding-panel{
  margin:0!important;
  padding:18px 18px 13px!important;
  border-color:rgba(33,176,124,.24)!important;
  border-bottom:0!important;
  border-bottom-right-radius:0!important;
  border-bottom-left-radius:0!important;
  background:linear-gradient(145deg,rgba(240,255,248,.98),rgba(248,251,255,.96) 64%,rgba(255,248,239,.96))!important;
  box-shadow:0 16px 42px rgba(41,61,102,.10)!important;
}
#foodsScreen .food-onboarding-head{
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:14px!important;
  align-items:start!important;
}
#foodsScreen .food-onboarding-title{
  width:100%!important;
  min-width:0!important;
  padding:0!important;
  text-align:left!important;
}
#foodsScreen .food-onboarding-title>div{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
}
#foodsScreen .food-onboarding-head h3{
  margin:0!important;
  color:var(--ink)!important;
  font-size:1.06rem!important;
  line-height:1.12!important;
}
#foodsScreen .food-onboarding-head p{
  margin:0!important;
  max-width:100%!important;
  color:var(--text)!important;
  font-size:.78rem!important;
  line-height:1.36!important;
}
#foodsScreen .food-onboarding-panel.collapsed .food-onboarding-head p.eyebrow{
  display:block!important;
}
#foodsScreen .food-onboarding-panel.collapsed .food-onboarding-head p:not(.eyebrow){
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
  overflow:hidden!important;
}
#foodsScreen .food-onboarding-head p:empty{
  display:none!important;
}
#foodsScreen .food-onboarding-head-actions{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  flex-wrap:nowrap!important;
}
#foodsScreen .food-onboarding-head-actions>[data-food-onboarding-count],
#foodsScreen .food-onboarding-head>[data-food-onboarding-count]{
  min-width:62px!important;
  min-height:52px!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(96,123,255,.10)!important;
}
#foodsScreen .food-onboarding-add{
  min-height:40px!important;
  padding:5px 12px 5px 5px!important;
  background:#fff!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar{
  grid-column:1!important;
  grid-row:3!important;
  margin:0 0 0!important;
  padding:2px 18px 17px!important;
  border:1px solid rgba(33,176,124,.24)!important;
  border-top:0!important;
  border-radius:0 0 28px 28px!important;
  background:linear-gradient(145deg,rgba(240,255,248,.98),rgba(248,251,255,.96) 64%,rgba(255,248,239,.96))!important;
  box-shadow:0 16px 42px rgba(41,61,102,.10)!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-toolbar-top,
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-search-title{
  display:none!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-toolbar-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:10px!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-search-field{
  min-height:52px!important;
  margin:0!important;
  border:1px solid #C9D7FF!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.88)!important;
  box-shadow:none!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .filter-actions{
  display:grid!important;
  grid-template-columns:minmax(0,168px) 42px!important;
  gap:8px!important;
  grid-column:auto!important;
  align-items:center!important;
  justify-content:start!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .filter-toggle{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  width:100%!important;
  min-height:42px!important;
  padding:0 16px!important;
  border:0!important;
  border-radius:999px!important;
  background:var(--blue)!important;
  color:#fff!important;
  box-shadow:0 12px 22px rgba(96,123,255,.24)!important;
  font-size:.72rem!important;
  font-weight:950!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .filter-toggle:focus{
  outline:0!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .filter-toggle:focus-visible{
  box-shadow:0 12px 22px rgba(96,123,255,.24),0 0 0 3px rgba(96,123,255,.20)!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .filter-toggle b{
  background:rgba(255,255,255,.24)!important;
  color:#fff!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-clear-button{
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  padding:0!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--ink)!important;
  font-size:0!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar[data-has-food-filters="false"] .food-clear-button{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-toolbar-row:has(.filter-toggle[aria-expanded="true"]) .food-clear-button{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-clear-button:before{
  content:"x"!important;
  font-size:.86rem!important;
  font-weight:950!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-results-meta{
  margin:2px 2px 0!important;
  color:var(--muted)!important;
  font-size:.72rem!important;
  font-weight:900!important;
  text-align:left!important;
}
#foodsScreen #foodFilterPanel{
  grid-column:1!important;
  grid-row:4!important;
  margin:0!important;
  padding:10px!important;
  border:1px solid rgba(199,215,244,.84)!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.72)!important;
  box-shadow:0 12px 28px rgba(41,61,102,.07)!important;
  overflow:visible!important;
}
#foodsScreen #foodFilterPanel[hidden]{
  display:none!important;
}
#foodsScreen #foodFilterPanel:not([hidden]){
  display:grid!important;
  gap:10px!important;
}
#foodsScreen .food-filter-section{
  display:grid!important;
  gap:8px!important;
  padding:10px!important;
  border:1px solid rgba(199,215,244,.86)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.66)!important;
}
#foodsScreen .food-filter-section-toggle{
  min-height:28px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--ink)!important;
  box-shadow:none!important;
  font-size:.68rem!important;
  font-weight:950!important;
  letter-spacing:0!important;
  text-align:left!important;
  text-transform:uppercase!important;
}
#foodsScreen .food-filter-section-toggle i,
#foodsScreen .food-filter-section-toggle b{
  display:grid!important;
  place-items:center!important;
  min-width:22px!important;
  height:22px!important;
  padding:0 6px!important;
  border-radius:999px!important;
  background:var(--blue-soft)!important;
  color:var(--blue)!important;
  font-style:normal!important;
}
#foodsScreen .food-filter-section .chips{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  padding:0!important;
  overflow:visible!important;
}
#foodsScreen .food-filter-section .chips[hidden]{
  display:none!important;
}
#foodsScreen .food-filter-panel .chip{
  min-height:34px!important;
  padding:0 12px!important;
  border-color:#DCE6FF!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--ink)!important;
  font-size:.68rem!important;
  font-weight:950!important;
  line-height:1!important;
  white-space:nowrap!important;
}
#foodsScreen .food-filter-panel .chip.active{
  border-color:#AFC0FF!important;
  background:linear-gradient(180deg,#F7F9FF,#fff)!important;
  color:var(--blue-deep)!important;
  box-shadow:0 8px 16px rgba(96,123,255,.11)!important;
}
#foodsScreen #foodList{
  grid-column:2!important;
  grid-row:2 / span 5!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(260px,1fr))!important;
  gap:10px!important;
  align-self:start!important;
  width:100%!important;
  contain:layout paint style!important;
}
#foodsScreen [data-food-more]{
  grid-column:2!important;
}
#foodsScreen .food-source{
  grid-column:1 / -1!important;
}
#foodsScreen .food-card.food-card-compact{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:11px!important;
  min-height:76px!important;
  padding:10px 12px!important;
  border:1px solid rgba(96,123,255,.20)!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(41,61,102,.06)!important;
  contain:layout paint style!important;
  contain-intrinsic-size:76px!important;
}
#foodsScreen .food-card.food-card-compact.off{
  opacity:.64!important;
  background:#F9FBFE!important;
}
#foodsScreen .food-card.food-card-compact.food-preference-fit{
  border-color:rgba(33,176,124,.30)!important;
  background:#fff!important;
}
#foodsScreen .food-card.food-card-compact .food-card-main{
  display:grid!important;
  grid-template-columns:50px minmax(0,1fr)!important;
  align-items:center!important;
  gap:11px!important;
  min-width:0!important;
  width:100%!important;
  padding:0!important;
  text-align:left!important;
}
#foodsScreen .food-card.food-card-compact .food-image{
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  border:1px solid #E1EAFC!important;
  border-radius:18px!important;
  background:#F8FAFF!important;
  box-shadow:none!important;
}
#foodsScreen .food-card.food-card-compact .grow{
  display:block!important;
  min-width:0!important;
}
#foodsScreen .food-card.food-card-compact b{
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:var(--ink)!important;
  font-size:.86rem!important;
  line-height:1.12!important;
}
#foodsScreen .food-card.food-card-compact .food-card-use{
  display:block!important;
  margin-top:3px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:var(--muted)!important;
  font-size:.68rem!important;
  font-weight:850!important;
}
#foodsScreen .food-card-badges{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  margin-top:7px!important;
}
#foodsScreen .food-card-badges i{
  display:inline-flex!important;
  align-items:center!important;
  min-height:20px!important;
  padding:0 7px!important;
  border-radius:999px!important;
  background:var(--blue-soft)!important;
  color:var(--blue-deep)!important;
  font-size:.58rem!important;
  font-style:normal!important;
  font-weight:950!important;
  line-height:1!important;
}
#foodsScreen .food-card-badges i.recipe{
  background:#FFF5E8!important;
  color:#955B13!important;
}
#foodsScreen .food-card-badges i.disabled{
  background:#EEF1F7!important;
  color:#6D7A92!important;
}
#foodsScreen .food-card.food-card-compact .food-card-actions{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  margin:0!important;
  overflow:visible!important;
}
#foodsScreen .food-card.food-card-compact .food-favorite-button{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  border-radius:14px!important;
}
#foodsScreen .food-card.food-card-compact .food-card-switch{
  width:54px!important;
  height:32px!important;
  min-width:54px!important;
  transform:none!important;
  margin:0!important;
  touch-action:manipulation!important;
}
#foodsScreen .food-card.food-card-compact .food-card-switch span:after{
  top:3px!important;
  left:3px!important;
  width:26px!important;
  height:26px!important;
}
#foodsScreen .food-card.food-card-compact .food-card-switch input:checked+span:after{
  transform:translateX(22px)!important;
}
#foodsScreen .food-card.food-card-compact .food-delete-button,
#foodsScreen .food-card.food-card-compact .food-restore-button{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
}
#foodsScreen .food-card.food-card-compact .food-fit-ribbon,
#foodsScreen .food-card.food-card-compact .food-card-tags,
#foodsScreen .food-card.food-card-compact .food-card-metrics{
  display:none!important;
}
@media(max-width:900px){
  #foodsScreen.active{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  #foodsScreen #foodsProfileMini,
  #foodsScreen #foodOnboardingMount,
  #foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar,
  #foodsScreen #foodFilterPanel,
  #foodsScreen #foodList,
  #foodsScreen [data-food-more],
  #foodsScreen .food-source{
    grid-column:1!important;
    grid-row:auto!important;
  }
  #foodsScreen #foodList{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:430px){
  #foodsScreen #foodOnboardingMount:not(:empty) .food-onboarding-panel{
    padding:15px 14px 10px!important;
    border-radius:24px 24px 0 0!important;
  }
  #foodsScreen .food-onboarding-head{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  #foodsScreen .food-onboarding-panel.collapsed .food-onboarding-head p:not(.eyebrow){
    -webkit-line-clamp:2!important;
    font-size:.74rem!important;
  }
  #foodsScreen .food-onboarding-head-actions{
    justify-content:space-between!important;
    width:100%!important;
  }
  #foodsScreen .food-onboarding-add{
    width:auto!important;
    min-width:0!important;
    padding:5px 12px 5px 5px!important;
  }
  #foodsScreen .food-onboarding-add b{
    display:inline!important;
  }
  #foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar{
    padding:0 14px 14px!important;
    border-radius:0 0 24px 24px!important;
  }
  #foodsScreen .food-card.food-card-compact{
    min-height:74px!important;
    padding:9px 10px!important;
  }
  #foodsScreen .food-card.food-card-compact .food-card-main{
    grid-template-columns:46px minmax(0,1fr)!important;
    gap:10px!important;
  }
  #foodsScreen .food-card.food-card-compact .food-image{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
  }
  #foodsScreen .food-card.food-card-compact .food-favorite-button{
    display:none!important;
  }
  #foodsScreen .food-card.food-card-compact .food-card-switch{
    width:58px!important;
    height:34px!important;
    min-width:58px!important;
  }
  #foodsScreen .food-card.food-card-compact .food-card-switch span:after{
    width:28px!important;
    height:28px!important;
  }
  #foodsScreen .food-card.food-card-compact .food-card-switch input:checked+span:after{
    transform:translateX(24px)!important;
  }
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodOnboardingMount:not(:empty) .food-onboarding-panel,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar{
  border-color:rgba(139,160,255,.22)!important;
  background:linear-gradient(145deg,#13223B,#0D172A)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-filter-section{
  border-color:rgba(139,160,255,.22)!important;
  background:#13223B!important;
}

/* Foods tab visual shell v5: match approved food validation mockup. */
#foodsScreen.active{
  grid-template-columns:minmax(330px,360px) minmax(0,1fr)!important;
  gap:14px 20px!important;
}
#foodsScreen #foodsProfileMini{
  max-width:1160px!important;
  border-color:#D8E3FA!important;
  border-radius:28px!important;
  background:rgba(255,255,255,.82)!important;
  box-shadow:none!important;
}
#foodsScreen #foodOnboardingMount:not(:empty) .food-onboarding-panel,
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar,
#foodsScreen #foodFilterPanel{
  border-color:rgba(53,190,132,.24)!important;
  background:linear-gradient(145deg,rgba(239,255,247,.98),rgba(248,252,255,.96) 68%,rgba(255,250,242,.95))!important;
  box-shadow:0 18px 44px rgba(35,60,104,.08)!important;
}
#foodsScreen #foodOnboardingMount:not(:empty) .food-onboarding-panel{
  padding:18px 18px 10px!important;
  border-bottom:0!important;
  border-radius:28px 28px 0 0!important;
}
#foodsScreen .food-onboarding-head{
  grid-template-columns:1fr!important;
  gap:18px!important;
}
#foodsScreen .food-onboarding-title>div{
  gap:6px!important;
}
#foodsScreen .food-onboarding-head p.eyebrow{
  display:block!important;
  color:#123D73!important;
  font-size:.68rem!important;
  font-weight:950!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}
#foodsScreen .food-onboarding-head p:not(.eyebrow){
  display:none!important;
}
#foodsScreen .food-onboarding-head h3{
  font-size:1.08rem!important;
  line-height:1.08!important;
}
#foodsScreen .food-onboarding-head-actions{
  justify-content:flex-start!important;
  gap:10px!important;
}
#foodsScreen .food-onboarding-head-actions>[data-food-onboarding-count],
#foodsScreen .food-onboarding-head>[data-food-onboarding-count]{
  min-width:66px!important;
  min-height:58px!important;
  border:1px solid #D8E3FF!important;
  border-radius:18px!important;
  box-shadow:none!important;
}
#foodsScreen .food-onboarding-add{
  min-height:42px!important;
  padding:5px 14px 5px 6px!important;
  border-color:#FFD497!important;
  border-radius:999px!important;
  color:#955B13!important;
  box-shadow:none!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar{
  padding:0 18px 18px!important;
  border-top:0!important;
  border-radius:0 0 28px 28px!important;
}
#foodsScreen:has(#foodFilterPanel:not([hidden])) #foodOnboardingMount:not(:empty)+.food-toolbar{
  padding-bottom:12px!important;
  border-bottom:0!important;
  border-radius:0!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-toolbar-row{
  grid-template-columns:1fr!important;
  gap:10px!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-search-field{
  min-height:50px!important;
  border-color:#CEDBFF!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.9)!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .filter-actions{
  grid-template-columns:minmax(0,1fr) 44px!important;
  width:100%!important;
  gap:10px!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .filter-toggle{
  min-height:42px!important;
  border-radius:999px!important;
  background:#5C75F6!important;
  box-shadow:0 10px 22px rgba(92,117,246,.22)!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .filter-toggle b{
  width:22px!important;
  height:22px!important;
  background:rgba(255,255,255,.22)!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-clear-button{
  width:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  background:rgba(255,255,255,.88)!important;
  box-shadow:none!important;
}
#foodsScreen .food-quick-filter-strip{
  display:none!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  padding-top:2px!important;
}
#foodsScreen .food-toolbar[data-has-food-filters="true"] .food-quick-filter-strip,
#foodsScreen .food-toolbar-row:has(.filter-toggle[aria-expanded="true"]) .food-quick-filter-strip{
  display:flex!important;
}
#foodsScreen .food-quick-filter-strip .chip,
#foodsScreen .food-filter-panel .chip{
  min-height:36px!important;
  padding:0 13px!important;
  border:1px solid #D7E2FF!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.82)!important;
  color:#0E2854!important;
  box-shadow:none!important;
  font-size:.68rem!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
#foodsScreen .food-quick-filter-strip .chip.active,
#foodsScreen .food-filter-panel .chip.active{
  border-color:#9FB5FF!important;
  background:#EEF4FF!important;
  color:#3159D8!important;
}
#foodsScreen #foodFilterPanel{
  grid-column:1!important;
  grid-row:4!important;
  padding:0 18px 18px!important;
  border-top:0!important;
  border-radius:0 0 28px 28px!important;
  box-shadow:0 18px 44px rgba(35,60,104,.08)!important;
}
#foodsScreen #foodFilterPanel:not([hidden]){
  display:grid!important;
  gap:10px!important;
}
#foodsScreen .food-filter-section{
  gap:10px!important;
  padding:14px!important;
  border-color:#D9E4FF!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.72)!important;
  box-shadow:none!important;
}
#foodsScreen .food-filter-section-toggle{
  min-height:24px!important;
  font-size:.68rem!important;
  color:#102A56!important;
}
#foodsScreen .food-filter-section-toggle i,
#foodsScreen .food-filter-section-toggle b{
  min-width:22px!important;
  height:22px!important;
  background:#F0F4FF!important;
  color:#5C75F6!important;
}
#foodsScreen .food-list-heading{
  grid-column:2!important;
  grid-row:2!important;
  align-self:end!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  column-gap:10px!important;
  row-gap:0!important;
  margin:20px 0 0!important;
}
#foodsScreen .food-list-heading #foodResultsMeta{
  grid-column:1!important;
  grid-row:1!important;
  min-width:0;
  min-height:0;
  margin:0!important;
  color:var(--ink)!important;
  font-size:1.22rem!important;
  font-weight:850!important;
  line-height:1.25!important;
  text-align:left!important;
  overflow-wrap:anywhere;
}
#foodsScreen .food-list-heading #foodToggleAll{
  grid-column:2!important;
  grid-row:1!important;
  justify-self:end!important;
}
#foodsScreen #foodList{
  grid-row:3 / span 5!important;
  gap:12px!important;
  contain:none!important;
}
#foodsScreen .food-card.food-card-compact{
  min-height:78px!important;
  padding:12px!important;
  border-color:#D8E3FF!important;
  border-radius:20px!important;
  box-shadow:none!important;
}
#foodsScreen .food-card.food-card-compact .food-image{
  border-color:#DDE7FA!important;
  border-radius:17px!important;
  background:#F8FBFF!important;
}
#foodsScreen .food-card.food-card-compact b{
  font-size:.9rem!important;
}
#foodsScreen .food-card-badges i{
  background:#EEF4FF!important;
  color:#3159D8!important;
}
#foodsScreen .food-card-badges i.recipe{
  background:#FFF2DC!important;
  color:#9A6218!important;
}
#foodsScreen .food-card-badges i.disabled{
  background:#F0F3F8!important;
  color:#7A869E!important;
}
#foodsScreen .food-card.food-incomplete-card{
  border-color:rgba(236,160,54,.46)!important;
  background:linear-gradient(135deg,var(--food-card-surface),rgba(255,199,112,.13))!important;
}
#foodsScreen .food-card.food-incomplete-card .food-card-use{
  color:#A86A12!important;
}
#foodsScreen .food-card-badges i.incomplete{
  background:#FFF3D7!important;
  color:#936112!important;
}
#foodsScreen .food-card.food-card-compact .food-card-switch{
  width:58px!important;
  height:34px!important;
  min-width:58px!important;
}
#foodsScreen .food-card.food-card-compact .food-card-switch span:after{
  width:28px!important;
  height:28px!important;
}
#foodsScreen .food-card.food-card-compact .food-card-switch input:checked+span:after{
  transform:translateX(24px)!important;
}
@media(max-width:900px){
  #foodsScreen.active{
    grid-template-columns:1fr!important;
    gap:0!important;
  }
  #foodsScreen #foodsProfileMini,
  #foodsScreen #foodOnboardingMount,
  #foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar,
  #foodsScreen #foodFilterPanel,
  #foodsScreen .food-list-heading,
  #foodsScreen #foodList,
  #foodsScreen [data-food-more],
  #foodsScreen .food-source{
    grid-column:1!important;
    grid-row:auto!important;
  }
  #foodsScreen #foodsProfileMini{
    margin-bottom:48px!important;
  }
  #foodsScreen .food-list-heading{
    margin:20px 0 10px!important;
  }
  #foodsScreen #foodList{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:430px){
  #foodsScreen #foodOnboardingMount:not(:empty) .food-onboarding-panel{
    padding:16px 14px 10px!important;
    border-radius:22px 22px 0 0!important;
  }
  #foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar{
    padding:0 14px 16px!important;
    border-radius:0 0 22px 22px!important;
  }
  #foodsScreen:has(#foodFilterPanel:not([hidden])) #foodOnboardingMount:not(:empty)+.food-toolbar{
    border-radius:0!important;
  }
  #foodsScreen #foodFilterPanel{
    padding:0 14px 16px!important;
    border-radius:0 0 22px 22px!important;
  }
  #foodsScreen .food-onboarding-head{
    gap:18px!important;
  }
  #foodsScreen .food-onboarding-head-actions{
    justify-content:space-between!important;
  }
  #foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .filter-actions{
    grid-template-columns:minmax(0,1fr) 44px!important;
  }
  #foodsScreen .food-list-heading #foodResultsMeta{
    font-size:1.12rem!important;
  }
  #foodsScreen .food-card.food-card-compact{
    min-height:84px!important;
    padding:10px 12px!important;
    border-radius:20px!important;
  }
  #foodsScreen .food-card.food-card-compact .food-card-main{
    grid-template-columns:50px minmax(0,1fr)!important;
  }
  #foodsScreen .food-card.food-card-compact .food-image{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
  }
}

/* Foods validation filters live inside the Filters panel, not in the summary card. */
#foodsScreen #foodValidationFilters{
  display:grid!important;
  gap:10px!important;
}
#foodsScreen #foodValidationFilters:empty{
  display:none!important;
}
#foodsScreen #foodFilterPanel .food-onboarding-section{
  display:grid!important;
  gap:10px!important;
  padding:14px!important;
  border:1px solid #D9E4FF!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.72)!important;
  box-shadow:none!important;
}
#foodsScreen #foodFilterPanel .food-base-mode-switch{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  padding:4px!important;
  border:1px solid #D9E4FF!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.56)!important;
}
#foodsScreen #foodFilterPanel .food-base-mode-option{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 20px!important;
  gap:0 6px!important;
  align-items:center!important;
  min-height:50px!important;
  padding:8px 7px!important;
  border:1px solid transparent!important;
  border-radius:14px!important;
  background:transparent!important;
  color:#30436A!important;
  box-shadow:none!important;
  text-align:left!important;
}
#foodsScreen #foodFilterPanel .food-base-mode-option b,
#foodsScreen #foodFilterPanel .food-base-mode-option span{
  min-width:0!important;
}
#foodsScreen #foodFilterPanel .food-base-mode-option b{
  display:block!important;
  overflow:hidden!important;
  color:#102A56!important;
  font-size:.65rem!important;
  font-weight:950!important;
  line-height:1.08!important;
  text-align:center!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#foodsScreen #foodFilterPanel .food-base-mode-option .food-base-mode-name.split{
  display:grid!important;
  gap:1px!important;
  align-content:center!important;
  white-space:normal!important;
}
#foodsScreen #foodFilterPanel .food-base-mode-option .food-base-mode-name.split em{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  font-style:normal!important;
  line-height:1.02!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#foodsScreen #foodFilterPanel .food-base-mode-option i{
  grid-column:2!important;
  grid-row:1!important;
  display:grid!important;
  place-items:center!important;
  width:20px!important;
  height:20px!important;
  border-radius:999px!important;
  background:#FFEDED!important;
  color:#C74444!important;
  font-style:normal!important;
  font-size:.72rem!important;
  font-weight:950!important;
}
#foodsScreen #foodFilterPanel .food-base-mode-option.ready i{
  background:#E8FFF3!important;
  color:#138657!important;
}
#foodsScreen #foodFilterPanel .food-base-mode-option.checking i{
  background:#EEF4FF!important;
  color:#5C75F6!important;
}
#foodsScreen #foodFilterPanel .food-base-mode-option.activation i{
  background:#FFF4CC!important;
  color:#8A6100!important;
}
#foodsScreen #foodFilterPanel .food-base-mode-option.active{
  border-color:#9FB5FF!important;
  background:#EEF4FF!important;
  color:#3159D8!important;
}
#foodsScreen #foodFilterPanel .food-onboarding-subtitle{
  min-height:24px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#102A56!important;
  font-size:.68rem!important;
}
#foodsScreen #foodFilterPanel .food-onboarding-subtitle i,
#foodsScreen #foodFilterPanel .food-onboarding-subtitle b{
  min-width:22px!important;
  height:22px!important;
  border-radius:999px!important;
  background:#F0F4FF!important;
  color:#5C75F6!important;
}
#foodsScreen #foodFilterPanel .food-onboarding-rows{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
#foodsScreen #foodFilterPanel .food-onboarding-rows[hidden],
#foodsScreen #foodFilterPanel .food-onboarding-custom[hidden]{
  display:none!important;
}
#foodsScreen #foodFilterPanel .food-onboarding-rows button{
  min-height:36px!important;
  padding:0 13px!important;
  border:1px solid #D7E2FF!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.82)!important;
  color:#0E2854!important;
  box-shadow:none!important;
  font-size:.68rem!important;
  font-weight:950!important;
}
#foodsScreen #foodFilterPanel .food-onboarding-rows button.ok{
  border-color:#BEEFD7!important;
  background:#F0FFF7!important;
  color:#116B48!important;
}
#foodsScreen #foodFilterPanel .food-onboarding-rows button.advisory{
  border-color:#FFE1AC!important;
  background:#FFF8EA!important;
  color:#8A5A16!important;
}
#foodsScreen #foodFilterPanel .food-onboarding-rows button.missing{
  border-color:#FFD0D0!important;
  background:#FFF5F5!important;
  color:#9C3838!important;
}
#foodsScreen #foodFilterPanel .food-onboarding-rows button.active{
  border-color:#9FB5FF!important;
  background:#EEF4FF!important;
  color:#3159D8!important;
}

/* Foods filter control v6.3: faster, calmer open state. */
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .filter-actions{
  grid-template-columns:1fr!important;
  gap:0!important;
  padding:3px!important;
  border-radius:999px!important;
  background:#5C75F6!important;
  box-shadow:0 12px 24px rgba(92,117,246,.22)!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .filter-toggle{
  min-height:40px!important;
  border-radius:999px!important;
  background:transparent!important;
  box-shadow:none!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .filter-toggle:focus-visible{
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.22)!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-clear-button{
  display:none!important;
  align-self:center!important;
  justify-self:center!important;
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  position:relative!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.20)!important;
  color:transparent!important;
  box-shadow:none!important;
  font-size:0!important;
  line-height:0!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-clear-button:before{
  content:"×"!important;
  position:absolute!important;
  inset:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:auto!important;
  color:#fff!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:1rem!important;
  font-weight:950!important;
  line-height:34px!important;
  text-align:center!important;
  transform:none!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-toolbar-row:has(.filter-toggle[aria-expanded="true"]) .filter-actions{
  grid-template-columns:minmax(0,1fr) 44px!important;
  gap:0!important;
  padding-right:4px!important;
}
#foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-toolbar-row:has(.filter-toggle[aria-expanded="true"]) .food-clear-button{
  display:grid!important;
  place-items:center!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

/* Foods dark contrast final pass. */
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodOnboardingMount:not(:empty) .food-onboarding-panel,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel{
  border-color:rgba(139,160,255,.28)!important;
  background:linear-gradient(145deg,#10213D,#0A1528 72%,#0C1830)!important;
  box-shadow:none!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-head p.eyebrow{
  color:#8FB3FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-head h3,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-list-heading h2{
  color:#F8FAFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-list-heading .food-results-meta,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-results-meta{
  color:#B9C7E8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-head-actions>[data-food-onboarding-count],
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-head>[data-food-onboarding-count]{
  border-color:rgba(139,160,255,.46)!important;
  background:linear-gradient(145deg,#16356A,#10264E)!important;
  color:#EEF4FF!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen [data-food-onboarding-count] b{
  color:#EEF4FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen [data-food-onboarding-count] small{
  color:#AFC3FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-add{
  border-color:#FFD39A!important;
  background:#FFF8EE!important;
  color:#8A4F0E!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-add b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-onboarding-add span{
  color:#8A4F0E!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar .food-search-field{
  border-color:rgba(139,160,255,.34)!important;
  background:#0A162B!important;
  color:#DDE7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodSearch,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodSearch::placeholder{
  color:#DDE7FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodSearch::placeholder{
  opacity:.72!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-filter-section,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-section{
  border-color:rgba(139,160,255,.28)!important;
  background:#0F203C!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-base-mode-switch{
  border-color:rgba(139,160,255,.28)!important;
  background:#0A172C!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-base-mode-option{
  color:#C7D5F4!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-base-mode-option b{
  color:#EAF1FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-base-mode-option span{
  color:#9DB0D6!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-base-mode-option i{
  background:#3A1C24!important;
  color:#FFD0D0!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-base-mode-option.ready i{
  background:#0D2E27!important;
  color:#BDF7D9!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-base-mode-option.checking i{
  background:#223A72!important;
  color:#C9D6FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-base-mode-option.activation i{
  background:#3B3110!important;
  color:#FFE08A!important;
}
/* ";" activation sheet: food base cards with the activation switch, one block per missing kind */
.food-base-activation-group{display:grid;gap:8px;margin:14px 0 6px}
.food-base-activation-group h3{margin:0;font-size:.98rem}
.food-base-activation-row{border:1px solid transparent}
.food-base-activation-row.proved{border-color:#9BD8B8}
.food-base-activation-row b{white-space:normal}
.food-base-activation-row .food-card-switch{width:54px;height:32px;min-width:54px}
.food-base-activation-row .food-card-switch span:after{width:26px;height:26px}
.food-base-activation-row .food-card-switch input:checked+span:after{transform:translateX(22px)}
.food-base-activation-status{color:#138657}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-base-activation-row.proved{border-color:#2F7A57}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-base-activation-status{color:#BDF7D9}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-base-mode-option.active{
  border-color:#92A8FF!important;
  background:#233E7D!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-filter-section-toggle,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-subtitle{
  color:#EAF1FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-filter-section-toggle i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-filter-section-toggle b,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-subtitle i,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-subtitle b{
  background:#223A72!important;
  color:#C9D6FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-quick-filter-strip .chip,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-filter-panel .chip,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-rows button{
  border-color:rgba(139,160,255,.34)!important;
  background:#0A172C!important;
  color:#EAF1FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-quick-filter-strip .chip.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-filter-panel .chip.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-rows button.active{
  border-color:#92A8FF!important;
  background:#233E7D!important;
  color:#FFFFFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-rows button.ok{
  border-color:rgba(63,213,151,.38)!important;
  background:#0D2E27!important;
  color:#BDF7D9!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-rows button.advisory{
  border-color:rgba(255,207,138,.44)!important;
  background:#332715!important;
  color:#FFE3AD!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-rows button.missing{
  border-color:rgba(255,151,151,.42)!important;
  background:#3A1C24!important;
  color:#FFD0D0!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-indicator{
  border-color:rgba(139,160,255,.28)!important;
  background:#0A172C!important;
  color:#EAF1FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-indicator span{
  color:#B9C7E8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card-badges i{
  background:#223A72!important;
  color:#DCE6FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card-badges i.recipe{
  background:#3A2A12!important;
  color:#FFD99B!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card-badges i.disabled{
  background:#1A2740!important;
  color:#BAC8E8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card.food-incomplete-card{
  border-color:rgba(255,196,104,.42)!important;
  background:linear-gradient(135deg,#0D1A32,rgba(101,66,18,.38))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card.food-incomplete-card .food-card-use{
  color:#FFD89A!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-card-badges i.incomplete{
  background:#3A2A12!important;
  color:#FFD99B!important;
}

/* Foods filters v6.12: selected chips and centered quick filters. */
#foodsScreen .food-quick-filter-strip{
  justify-content:center!important;
  align-items:center!important;
  column-gap:8px!important;
  row-gap:10px!important;
  width:100%!important;
}
#foodsScreen .food-quick-filter-strip .chip{
  flex:0 0 auto!important;
}
#foodsScreen .food-quick-filter-strip .chip.active,
#foodsScreen .food-filter-panel .chip.active,
#foodsScreen #foodFilterPanel .food-onboarding-rows button.active,
#foodsScreen #foodFilterPanel .food-onboarding-rows button.ok.active,
#foodsScreen #foodFilterPanel .food-onboarding-rows button.advisory.active,
#foodsScreen #foodFilterPanel .food-onboarding-rows button.missing.active{
  border-color:#4868F4!important;
  background:linear-gradient(145deg,#5D75F7,#425FE9)!important;
  color:#FFFFFF!important;
  box-shadow:0 8px 18px rgba(72,104,244,.24)!important;
}
#foodsScreen #foodFilterPanel .food-onboarding-rows button.active b,
#foodsScreen #foodFilterPanel .food-onboarding-rows button.active i{
  color:#FFFFFF!important;
}
#foodsScreen #foodFilterPanel .food-onboarding-filter-loading{
  display:grid;
  place-items:center;
  min-height:46px;
  padding:12px;
  border:1px dashed rgba(102,127,255,.24);
  border-radius:16px;
  background:rgba(255,255,255,.64);
  color:var(--muted);
  font-size:.72rem;
  font-weight:900;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-quick-filter-strip{
  justify-content:center!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-quick-filter-strip .chip.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen .food-filter-panel .chip.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-rows button.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-rows button.ok.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-rows button.advisory.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-rows button.missing.active{
  border-color:#AFC0FF!important;
  background:linear-gradient(145deg,#5873FF,#3958D7)!important;
  color:#FFFFFF!important;
  box-shadow:0 8px 20px rgba(88,115,255,.30)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-filter-loading{
  border-color:rgba(139,160,255,.30)!important;
  background:#0A172C!important;
  color:#B9C7E8!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodFilterPanel .food-onboarding-filter-empty{
  border-color:rgba(139,160,255,.30)!important;
  background:#0A172C!important;
  color:#B9C7E8!important;
}

/* Foods switches v6.14: lighter tap response. */
#foodsScreen .food-card.food-card-compact .food-card-switch{
  touch-action:manipulation!important;
}
#foodsScreen .food-card.food-card-compact .food-card-switch span{
  pointer-events:none!important;
  transition:background-color .14s ease, box-shadow .14s ease!important;
}
#foodsScreen .food-card.food-card-compact .food-card-switch span:after{
  pointer-events:none!important;
  will-change:transform!important;
  transition:transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .14s ease!important;
}
#foodsScreen .food-card.food-card-compact .food-card-switch:active span:after{
  box-shadow:0 2px 5px rgba(41,61,102,.12)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodsProfileMini{
  border-color:rgba(139,160,255,.30)!important;
  background:
    radial-gradient(circle at 18% 48%,rgba(102,127,255,.20) 0 32%,transparent 58%),
    radial-gradient(circle at 88% 12%,rgba(255,184,107,.12) 0 30%,transparent 60%),
    linear-gradient(145deg,#132641,#0C172B 72%,#111D33)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.06)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodsProfileMini:before{
  border-color:rgba(139,160,255,.18)!important;
  background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.025))!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodsProfileMini .screen-profile-mini-copy small{
  color:#9EB8FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodsProfileMini .screen-profile-mini-copy b{
  color:#FFFFFF!important;
}

/* Rhea review preview: meal-level confirmation before applying today's patch. */
.rhea-rebalance-preview .copilot-audit-card{
  display:grid;
  gap:12px;
}
.rhea-rebalance-preview{
  padding-bottom:0;
}
.rhea-preview-card>b{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.rhea-impact-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.rhea-impact-grid span{
  display:grid;
  gap:2px;
  min-height:44px;
  padding:8px 10px;
  border:1px solid color-mix(in srgb,var(--blue) 14%,var(--line));
  border-radius:14px;
  background:color-mix(in srgb,var(--blue-soft) 36%,var(--card));
}
.rhea-impact-grid span.target{
  border-color:color-mix(in srgb,var(--orange) 36%,var(--line));
  background:linear-gradient(180deg,color-mix(in srgb,var(--orange-soft,#FFF0DC) 54%,var(--card)),color-mix(in srgb,var(--blue-soft) 20%,var(--card)));
}
.rhea-impact-grid b{
  color:var(--muted);
  font-size:.62rem;
  line-height:1.15;
  text-transform:uppercase;
}
.rhea-impact-grid i{
  color:var(--ink);
  font-size:.82rem;
  font-style:normal;
  font-weight:950;
}
.rhea-impact-grid .down i{color:var(--orange)}
.rhea-impact-grid .up i{color:var(--green)}
.rhea-sweet-choice{
  display:grid;
  gap:9px;
  padding:11px;
  border:1px solid color-mix(in srgb,var(--orange) 22%,var(--line));
  border-radius:18px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--orange-soft,#FFF0DC) 50%,var(--card)),var(--card));
}
.rhea-sweet-choice>b{
  color:var(--ink);
  font-size:.84rem;
}
.rhea-sweet-choice>div{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding-bottom:8px;
  scroll-snap-type:x proximity;
  scrollbar-color:var(--orange) color-mix(in srgb,var(--orange-soft,#FFF0DC) 58%,var(--card));
  scrollbar-width:thin;
}
.rhea-sweet-choice>div::-webkit-scrollbar{
  height:6px;
}
.rhea-sweet-choice>div::-webkit-scrollbar-track{
  border-radius:999px;
  background:color-mix(in srgb,var(--orange-soft,#FFF0DC) 58%,var(--card));
}
.rhea-sweet-choice>div::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:linear-gradient(90deg,var(--orange),color-mix(in srgb,var(--orange) 70%,var(--blue)));
}
.rhea-sweet-choice button{
  flex:0 0 146px;
  display:grid;
  gap:4px;
  justify-items:start;
  min-height:64px;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--card);
  color:var(--text);
  text-align:left;
  scroll-snap-align:start;
}
.rhea-sweet-choice button.active{
  border-color:var(--orange);
  background:color-mix(in srgb,var(--orange-soft,#FFF0DC) 72%,var(--card));
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--orange) 20%,transparent);
}
.rhea-sweet-choice span{
  display:block;
  max-width:100%;
  overflow:hidden;
  color:var(--ink);
  font-size:.76rem;
  font-weight:950;
  line-height:1.15;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rhea-sweet-choice small{
  color:var(--muted);
  font-size:.67rem;
  font-weight:850;
  line-height:1.2;
}
.rhea-preview-meal-list{
  display:grid;
  gap:10px;
}
.rhea-preview-meal{
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,var(--card),color-mix(in srgb,var(--blue-soft) 28%,var(--card)));
}
.rhea-preview-meal.reviewed,
.rhea-preview-meal.accepted{
  border-color:rgba(33,176,124,.42);
  background:color-mix(in srgb,var(--green-soft) 62%,var(--card));
}
.rhea-preview-meal.rejected{
  border-color:color-mix(in srgb,var(--red) 28%,var(--line));
  background:color-mix(in srgb,var(--red-soft) 44%,var(--card));
  opacity:.78;
}
.rhea-preview-meal header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}
.rhea-preview-decision-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}
.rhea-preview-decision-actions .small{
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  font-size:.7rem;
}
.rhea-preview-decision-actions .soft.active{
  border-color:color-mix(in srgb,var(--red) 34%,var(--line));
  background:var(--red-soft);
  color:var(--red);
}
.rhea-preview-decision-actions .primary.active{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.48),0 8px 18px rgba(33,176,124,.16);
}
.rhea-preview-meal header b{
  display:block;
  color:var(--ink);
  font-size:.9rem;
  line-height:1.15;
}
.rhea-preview-meal header small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:.68rem;
  font-weight:900;
  text-transform:uppercase;
}
.rhea-preview-meal ul{
  display:grid;
  gap:7px;
  margin:0;
  padding:0;
  list-style:none;
}
.rhea-preview-meal li{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(118px,auto);
  gap:8px;
  align-items:center;
  min-height:34px;
  padding:8px 9px;
  border-radius:13px;
  background:var(--surface-2);
}
.rhea-preview-meal li span{
  overflow:hidden;
  color:var(--text);
  font-size:.76rem;
  font-weight:900;
  line-height:1.25;
  text-overflow:ellipsis;
}
.rhea-preview-meal li em{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}
.rhea-preview-decision-actions .small{
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  font-size:.7rem;
}
.rhea-preview-decision-actions .soft.active{
  border-color:color-mix(in srgb,var(--red) 34%,var(--line));
  background:var(--red-soft);
  color:var(--red);
}
.rhea-preview-decision-actions .primary.active{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.48),0 8px 18px rgba(33,176,124,.16);
}
.rhea-preview-meal header b{
  display:block;
  color:var(--ink);
  font-size:.9rem;
  line-height:1.15;
}
.rhea-preview-meal header small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:.68rem;
  font-weight:900;
  text-transform:uppercase;
}
.rhea-preview-meal ul{
  display:grid;
  gap:7px;
  margin:0;
  padding:0;
  list-style:none;
}
.rhea-preview-meal li{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(118px,auto);
  gap:8px;
  align-items:center;
  min-height:34px;
  padding:8px 9px;
  border-radius:13px;
  background:var(--surface-2);
}
.rhea-preview-meal li span{
  overflow:hidden;
  color:var(--text);
  font-size:.76rem;
  font-weight:900;
  line-height:1.25;
  text-overflow:ellipsis;
}
.rhea-preview-meal li em{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  color:var(--muted);
  font-style:normal;
  font-size:.74rem;
  font-weight:900;
  white-space:nowrap;
}
.rhea-preview-meal li del{
  color:var(--muted);
  text-decoration-thickness:2px;
}
.rhea-preview-meal li strong{
  color:var(--blue-deep);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-preview-meal{
  border-color:rgba(139,160,255,.26);
  background:linear-gradient(180deg,#0B1830,#101D35);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-sweet-choice{
  border-color:rgba(255,177,95,.30);
  background:linear-gradient(180deg,#211A24,#0B1324);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-sweet-choice button{
  border-color:rgba(139,160,255,.22);
  background:#101B31;
  color:#DDE5FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-sweet-choice button.active{
  border-color:#FFB15F;
  background:#2A2030;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-sweet-choice span,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-impact-grid i{
  color:#F8FAFF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-impact-grid span{
  border-color:rgba(139,160,255,.20);
  background:#132641;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-impact-grid span.target{
  border-color:rgba(255,177,95,.42);
  background:linear-gradient(180deg,#251D2B,#132641);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-preview-meal.reviewed{
  border-color:rgba(66,224,160,.40);
  background:#0B2B26;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-preview-meal.accepted{
  border-color:rgba(66,224,160,.40);
  background:#0B2B26;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-preview-meal.rejected{
  border-color:rgba(255,132,144,.34);
  background:#2A1420;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-preview-meal li{
  background:#132641;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-preview-meal li strong{
  color:#DCE6FF;
}
.rhea-preview-footer{
  position:sticky;
  z-index:12;
  bottom:0;
  margin:2px -2px -2px;
  padding:10px 0 0;
  background:linear-gradient(180deg,color-mix(in srgb,var(--card) 0%,transparent),var(--card) 30%,var(--card));
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-preview-footer{
  background:linear-gradient(180deg,rgba(11,19,36,0),#0B1324 30%,#0B1324);
}

@media(max-width:430px){
  .rhea-preview-meal header{
    grid-template-columns:1fr;
  }
  .rhea-preview-decision-actions,
  .rhea-preview-meal header .small{
    width:100%;
  }
  .rhea-preview-decision-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .rhea-preview-meal li{
    grid-template-columns:1fr;
  }
  .rhea-preview-meal li em{
    white-space:normal;
  }
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodsProfileMini .hero-avatar{
  border-color:rgba(139,160,255,.48)!important;
  background:#162B4D!important;
  color:#F8FAFF!important;
  box-shadow:0 16px 30px rgba(0,0,0,.30),0 0 0 7px rgba(102,127,255,.16)!important;
}

/* Wide workspace v1: use notebook/4K space without changing the mobile flow. */
@media(min-width:1100px){
  :root{
    --app-width:min(92vw,1480px)!important;
    --desktop-rail:88px!important;
  }
  .app{
    width:min(100%,var(--app-width))!important;
    max-width:var(--app-width)!important;
    padding-right:clamp(24px,2vw,38px)!important;
    padding-left:calc(var(--desktop-rail) + clamp(24px,2vw,38px))!important;
  }
  .app-top,
  .screens{
    max-width:calc(var(--app-width) - var(--desktop-rail) - clamp(48px,4vw,76px))!important;
  }
  #foodsScreen.active{
    grid-template-columns:minmax(360px,clamp(380px,28vw,480px)) minmax(560px,1fr)!important;
    gap:clamp(18px,1.6vw,30px)!important;
    align-items:start!important;
  }
  #foodsScreen #foodsProfileMini,
  #financeScreen .screen-profile-mini,
  #financeScreen .finance-tabs,
  #financeScreen #financeShoppingPanel,
  #financeScreen #financeSubstitutionPanel{
    max-width:none!important;
  }
  #foodsScreen #foodOnboardingMount:not(:empty) .food-onboarding-panel,
  #foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar,
  #foodsScreen #foodFilterPanel{
    max-width:480px!important;
  }
  #foodsScreen .food-onboarding-head h3{
    font-size:1.18rem!important;
  }
  #foodsScreen .food-onboarding-head-actions>[data-food-onboarding-count],
  #foodsScreen .food-onboarding-head>[data-food-onboarding-count]{
    min-width:74px!important;
    min-height:64px!important;
  }
  #foodsScreen #foodList{
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;
    gap:clamp(12px,1vw,18px)!important;
  }
  #foodsScreen .food-card.food-card-compact{
    min-height:86px!important;
    padding:14px 15px!important;
  }
  #foodsScreen .food-card.food-card-compact .food-image{
    width:54px!important;
    height:54px!important;
    min-width:54px!important;
  }
  #financeScreen.active{
    max-width:none!important;
  }
  #financeScreen #financeShoppingPanel:not([hidden]){
    grid-template-columns:minmax(260px,320px) minmax(360px,520px) minmax(520px,1fr)!important;
    gap:clamp(16px,1.4vw,28px)!important;
  }
  #financeScreen #financeTotals{
    max-width:320px!important;
  }
  #financeScreen #financeShoppingPanel .select-card{
    width:min(100%,520px)!important;
  }
  #financeScreen #financeShoppingPanel .chart-grid{
    width:min(100%,1120px)!important;
    max-width:1120px!important;
  }
  #financeScreen #financeShoppingPanel .chart-card{
    min-height:380px!important;
    padding:24px 28px!important;
  }
  #financeScreen #financeShoppingPanel:not([hidden]) .chart-card .donut-wrap{
    width:240px!important;
    height:240px!important;
  }
  #financeScreen #financeShoppingPanel .finance-filter-box{
    max-width:360px!important;
  }
  #financeScreen #financeList,
  #financeScreen #financeSubstitutionList{
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr))!important;
    gap:clamp(12px,1vw,18px)!important;
  }
}
@media(min-width:1600px){
  :root{
    --app-width:min(88vw,1760px)!important;
    --desktop-rail:92px!important;
  }
  #foodsScreen.active{
    grid-template-columns:minmax(420px,520px) minmax(760px,1fr)!important;
  }
  #foodsScreen #foodOnboardingMount:not(:empty) .food-onboarding-panel,
  #foodsScreen #foodOnboardingMount:not(:empty)+.food-toolbar,
  #foodsScreen #foodFilterPanel{
    max-width:520px!important;
  }
  #foodsScreen #foodList{
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr))!important;
  }
  #financeScreen #financeShoppingPanel:not([hidden]){
    grid-template-columns:minmax(280px,340px) minmax(440px,640px) minmax(680px,1fr)!important;
  }
  #financeScreen #financeShoppingPanel .chart-grid{
    max-width:1280px!important;
  }
  #financeScreen #financeList,
  #financeScreen #financeSubstitutionList{
    grid-template-columns:repeat(auto-fit,minmax(360px,1fr))!important;
  }
}

/* Wide workspace v2: align desktop work areas while preserving <=900px mobile/tablet. */
@media(min-width:901px){
  #foodsScreen.active{
    grid-template-columns:minmax(330px,420px) minmax(0,1fr)!important;
    grid-auto-rows:auto!important;
    align-items:start!important;
  }
  #foodsScreen .food-list-heading{
    grid-column:2!important;
    grid-row:2!important;
    align-self:start!important;
    margin:0!important;
    z-index:1!important;
  }
  #foodsScreen #foodList{
    grid-column:2!important;
    grid-row:2 / span 7!important;
    align-self:start!important;
    padding-top:64px!important;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important;
  }
  #foodsScreen [data-food-more]{
    grid-column:2!important;
    justify-self:center!important;
    width:min(320px,100%)!important;
  }
  #financeScreen #financeShoppingPanel:not([hidden]){
    display:grid!important;
    grid-template-columns:minmax(240px,320px) minmax(0,1fr)!important;
    grid-template-areas:
      "totals select"
      "chart chart"
      "heading heading"
      "filters list"!important;
    align-items:start!important;
  }
  #financeScreen #financeShoppingPanel .chart-grid{
    grid-area:chart!important;
    width:100%!important;
    max-width:none!important;
    justify-self:stretch!important;
  }
  #financeScreen #financeShoppingPanel .chart-card{
    width:100%!important;
    max-width:none!important;
    justify-self:stretch!important;
  }
  #financeScreen #financeShoppingPanel .section-heading{
    grid-area:heading!important;
    margin:4px 0 -4px!important;
  }
  #financeScreen #financeShoppingPanel .finance-filter-box{
    grid-area:filters!important;
    width:100%!important;
    max-width:320px!important;
    justify-self:start!important;
  }
  #financeScreen #financeList{
    grid-area:list!important;
    width:100%!important;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))!important;
  }
}
@media(min-width:1280px){
  #foodsScreen.active{
    grid-template-columns:minmax(380px,480px) minmax(0,1fr)!important;
  }
  #foodsScreen #foodList{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))!important;
  }
  #financeScreen #financeShoppingPanel:not([hidden]){
    grid-template-columns:minmax(260px,340px) minmax(0,1fr)!important;
  }
  #financeScreen #financeShoppingPanel .finance-filter-box{
    max-width:340px!important;
  }
  #financeScreen #financeList{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr))!important;
  }
}
@media(min-width:1800px){
  #foodsScreen.active{
    grid-template-columns:minmax(420px,520px) minmax(0,1fr)!important;
  }
  #foodsScreen #foodList{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))!important;
  }
  #financeScreen #financeShoppingPanel:not([hidden]){
    grid-template-columns:minmax(280px,360px) minmax(0,1fr)!important;
  }
  #financeScreen #financeShoppingPanel .finance-filter-box{
    max-width:360px!important;
  }
  #financeScreen #financeList{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))!important;
  }
}

/* Food contract and tablet rail polish: visual-only, keeps screen state contracts intact. */
#homeScreen .cycle-source-summary span,
#planScreen .plan-preview-hero .cycle-source-summary span{
  font-weight:800!important;
}

.food-onboarding-section.indicator-only .food-onboarding-custom{
  display:grid;
  gap:8px;
}
.food-onboarding-section.indicator-only .food-onboarding-indicator{
  display:grid;
  gap:4px;
  min-height:54px;
  padding:10px 12px;
  border:1px solid rgba(102,127,255,.16);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(246,249,255,.9));
  color:var(--text);
}
.food-onboarding-section.indicator-only .food-onboarding-indicator b{
  color:var(--blue-deep);
  font-size:.72rem;
  font-weight:900;
  line-height:1.12;
}
.food-onboarding-section.indicator-only .food-onboarding-indicator span{
  color:var(--muted);
  font-size:.68rem;
  font-weight:850;
  line-height:1.25;
}
.food-onboarding-section.indicator-only .food-onboarding-indicator.missing{
  border-color:rgba(231,109,114,.28);
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,241,243,.92));
}
.food-onboarding-section.indicator-only .food-onboarding-indicator.ok{
  border-color:rgba(118,185,142,.24);
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(240,253,244,.9));
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-section.indicator-only .food-onboarding-indicator{
  border-color:rgba(139,160,255,.18);
  background:linear-gradient(180deg,#12213A,#101B31);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-section.indicator-only .food-onboarding-indicator b{
  color:#DDE6FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-section.indicator-only .food-onboarding-indicator span{
  color:#AAB8D6;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-section.indicator-only .food-onboarding-indicator.missing{
  border-color:rgba(255,183,188,.24);
  background:linear-gradient(180deg,#211A2B,#141B31);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .food-onboarding-section.indicator-only .food-onboarding-indicator.ok{
  border-color:rgba(118,185,142,.25);
  background:linear-gradient(180deg,#122A31,#102033);
}

@media(min-width:700px){
  #homeScreen .home-macro-carousel .day-nutrition-grid[data-home-carousel],
  #planScreen .plan-nutrient-carousel.day-nutrition-grid[data-home-carousel],
  .macro-disclosure-body .day-nutrition-grid[data-home-carousel]{
    display:grid!important;
    grid-template-columns:none!important;
    grid-auto-flow:column!important;
    grid-auto-columns:clamp(268px,42%,360px)!important;
    gap:12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    scroll-padding-inline:10px!important;
  }
  #homeScreen .home-macro-carousel .day-nutrition-grid[data-home-carousel]>.day-macro,
  #planScreen .plan-nutrient-carousel.day-nutrition-grid[data-home-carousel]>.day-macro,
  .macro-disclosure-body .day-nutrition-grid[data-home-carousel]>.day-macro{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    box-sizing:border-box!important;
    scroll-snap-align:start!important;
  }
  #homeScreen .home-macro-carousel .day-macro,
  #planScreen .plan-nutrient-carousel .day-macro{
    grid-template-columns:46px minmax(0,1fr)!important;
    column-gap:11px!important;
    padding:12px 13px!important;
  }
  #homeScreen .home-macro-carousel .day-macro:before,
  #planScreen .plan-nutrient-carousel .day-macro:before{
    width:42px!important;
    height:42px!important;
    border-width:4px!important;
  }
  #homeScreen .home-macro-carousel .day-macro b i,
  #planScreen .plan-nutrient-carousel .day-macro b i{
    min-width:0!important;
    padding-inline:6px!important;
    font-size:.94rem!important;
    white-space:nowrap!important;
  }
  #homeScreen .home-macro-carousel .day-macro b i:first-child,
  #planScreen .plan-nutrient-carousel .day-macro b i:first-child{
    font-size:1.08rem!important;
  }
  #homeScreen .home-macro-carousel .day-macro small i,
  #planScreen .plan-nutrient-carousel .day-macro small i{
    min-width:0!important;
    padding-inline:6px!important;
    font-size:.52rem!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
  }
}

/* Dieta header alignment: keep the identity block in the same visual position as Agora. */
#planScreen .plan-preview-hero{
  box-sizing:border-box!important;
  margin:0 0 8px!important;
  padding:12px 14px 4px!important;
}
#planScreen .plan-preview-hero .diet-profile-summary{
  display:grid!important;
  grid-template-columns:238px minmax(0,1fr)!important;
  gap:8px!important;
  align-items:center!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0 0 4px!important;
  overflow:visible!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person{
  display:grid!important;
  grid-template-columns:118px minmax(108px,1fr)!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  justify-items:start!important;
  column-gap:8px!important;
  width:238px!important;
  min-width:238px!important;
  max-width:238px!important;
  text-align:left!important;
}
#planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person .hero-avatar{
  grid-row:1/3!important;
  width:110px!important;
  height:110px!important;
}
#planScreen .plan-preview-hero .diet-profile-summary .diet-profile-mantra{
  grid-column:2!important;
  grid-row:1/3!important;
  align-self:center!important;
  width:min(108px,100%)!important;
  max-width:108px!important;
  margin:0!important;
}
#planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"]{
  min-width:0!important;
  margin:0!important;
  padding:2px 0 2px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-padding-left:0!important;
  scroll-snap-type:x mandatory!important;
}
#planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
  flex:0 0 min(178px,max(150px,calc(100vw - 306px)))!important;
  width:min(178px,max(150px,calc(100vw - 306px)))!important;
  min-width:min(178px,max(150px,calc(100vw - 306px)))!important;
  max-width:178px!important;
  min-height:104px!important;
  scroll-snap-align:start!important;
}
#planScreen .plan-preview-hero .profile-info-carousel + .carousel-dots.profile-carousel-dots{
  grid-column:2!important;
  justify-self:center!important;
  margin:2px 0 0!important;
}
#planScreen .plan-preview-hero .profile-goal-disclosure{
  margin:2px 0 2px!important;
  border-color:transparent!important;
  border-radius:16px!important;
  background:transparent!important;
  box-shadow:none!important;
}
#planScreen .plan-preview-hero .menstrual-cycle-card{
  margin:5px 0 8px!important;
  border-color:transparent!important;
  border-radius:16px!important;
  background:transparent!important;
  box-shadow:none!important;
}
#planScreen .plan-preview-hero .profile-goal-disclosure>summary,
#planScreen .plan-preview-hero .cycle-source-summary{
  gap:8px!important;
  min-height:38px!important;
  margin-left:18px!important;
  padding:0 8px!important;
}
#planScreen .plan-preview-hero .profile-goal-disclosure-label,
#planScreen .plan-preview-hero .cycle-source-summary span{
  font-size:.72rem!important;
  font-weight:800!important;
}
#planScreen .plan-preview-hero .profile-goal-disclosure-arrow,
#planScreen .plan-preview-hero .cycle-source-arrow{
  width:26px!important;
  min-width:26px!important;
  height:26px!important;
  min-height:26px!important;
}
@media(max-width:430px){
  #planScreen .plan-preview-hero .diet-profile-summary{
    grid-template-columns:198px minmax(0,1fr)!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person{
    grid-template-columns:104px minmax(82px,1fr)!important;
    column-gap:6px!important;
    width:198px!important;
    min-width:198px!important;
    max-width:198px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person .hero-avatar{
    width:100px!important;
    height:100px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-mantra{
    width:min(88px,100%)!important;
    max-width:88px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
    flex-basis:min(166px,max(122px,calc(100vw - 236px)))!important;
    width:min(166px,max(122px,calc(100vw - 236px)))!important;
    min-width:min(166px,max(122px,calc(100vw - 236px)))!important;
    max-width:166px!important;
  }
}
@media(max-width:374px){
  #planScreen .plan-preview-hero .diet-profile-summary{
    grid-template-columns:186px minmax(0,1fr)!important;
    gap:7px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person{
    grid-template-columns:96px minmax(78px,1fr)!important;
    width:186px!important;
    min-width:186px!important;
    max-width:186px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person .hero-avatar{
    width:92px!important;
    height:92px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-mantra{
    max-width:82px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
    flex-basis:min(166px,max(118px,calc(100vw - 222px)))!important;
    width:min(166px,max(118px,calc(100vw - 222px)))!important;
    min-width:min(166px,max(118px,calc(100vw - 222px)))!important;
  }
}
@media(min-width:760px){
  #planScreen .plan-preview-hero .diet-profile-summary{
    grid-template-columns:minmax(220px,280px) minmax(0,1fr)!important;
    gap:18px!important;
    padding-bottom:0!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person{
    grid-template-columns:92px minmax(0,1fr)!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    column-gap:14px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person .hero-avatar{
    width:86px!important;
    height:86px!important;
  }
#planScreen .plan-preview-hero .diet-profile-summary .diet-profile-mantra{
    width:auto!important;
    max-width:none!important;
  }
}

/* Food profile hero: same header rhythm as Agora/Dieta, with independent copy/cards. */
#foodsScreen #foodsProfileMini{
  box-sizing:border-box!important;
  min-height:126px!important;
  padding:12px 14px!important;
  background:
    radial-gradient(circle at 16% 48%,rgba(232,236,255,.72) 0%,rgba(255,255,255,0) 56%),
    linear-gradient(135deg,rgba(248,251,255,.96) 0%,rgba(255,255,255,.88) 62%,rgba(246,249,255,.96) 100%)!important;
}
#foodsScreen #foodsProfileMini:after{
  display:none!important;
  content:none!important;
}
#foodsScreen #foodsProfileMini .food-profile-summary{
  display:grid!important;
  grid-template-columns:238px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
}
#foodsScreen #foodsProfileMini .food-profile-person{
  display:grid!important;
  grid-template-columns:118px minmax(108px,1fr)!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  justify-items:start!important;
  column-gap:8px!important;
  width:238px!important;
  min-width:238px!important;
  max-width:238px!important;
  text-align:left!important;
}
#foodsScreen #foodsProfileMini .food-profile-person:before{
  display:none!important;
  content:none!important;
}
#foodsScreen #foodsProfileMini .food-profile-person .hero-avatar,
#planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person .hero-avatar{
  grid-row:1/3!important;
  width:110px!important;
  height:110px!important;
}
#foodsScreen #foodsProfileMini .food-profile-mantra{
  display:grid!important;
  grid-column:2!important;
  grid-row:1/3!important;
  align-self:center!important;
  align-content:center!important;
  gap:3px!important;
  width:min(108px,100%)!important;
  max-width:108px!important;
  margin:0!important;
  overflow:hidden!important;
  color:var(--ink)!important;
  font-size:.86rem!important;
  line-height:1.08!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
#foodsScreen #foodsProfileMini .food-profile-mantra .mantra-kicker,
#foodsScreen #foodsProfileMini .food-profile-mantra .mantra-main{
  display:block!important;
}
#foodsScreen #foodsProfileMini .food-profile-mantra .mantra-kicker{
  color:var(--blue-deep)!important;
  font-size:.58rem!important;
  font-weight:600!important;
  letter-spacing:0!important;
  line-height:1.08!important;
  text-transform:none!important;
}
#foodsScreen #foodsProfileMini .food-profile-mantra .mantra-main{
  color:var(--ink)!important;
  font-size:.82rem!important;
  font-weight:950!important;
  line-height:1.08!important;
}
#foodsScreen #foodsProfileMini .profile-info-carousel[data-home-carousel="profile"]{
  min-width:0!important;
  margin:0!important;
  padding:2px 0 2px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-padding-left:0!important;
  scroll-snap-type:x mandatory!important;
}
#foodsScreen #foodsProfileMini .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
  flex:0 0 min(178px,max(150px,calc(100vw - 306px)))!important;
  width:min(178px,max(150px,calc(100vw - 306px)))!important;
  min-width:min(178px,max(150px,calc(100vw - 306px)))!important;
  max-width:178px!important;
  min-height:104px!important;
  scroll-snap-align:start!important;
}
#foodsScreen #foodsProfileMini .profile-info-carousel + .carousel-dots.profile-carousel-dots{
  grid-column:2!important;
  justify-self:center!important;
  margin:2px 0 0!important;
}
@media(max-width:430px){
  #foodsScreen #foodsProfileMini .food-profile-summary,
  #planScreen .plan-preview-hero .diet-profile-summary{
    grid-template-columns:198px minmax(0,1fr)!important;
  }
  #foodsScreen #foodsProfileMini .food-profile-person,
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person{
    grid-template-columns:104px minmax(82px,1fr)!important;
    column-gap:6px!important;
    width:198px!important;
    min-width:198px!important;
    max-width:198px!important;
  }
  #foodsScreen #foodsProfileMini .food-profile-person .hero-avatar,
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person .hero-avatar{
    width:100px!important;
    height:100px!important;
  }
  #foodsScreen #foodsProfileMini .food-profile-mantra,
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-mantra{
    width:min(88px,100%)!important;
    max-width:88px!important;
  }
  #foodsScreen #foodsProfileMini .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat,
  #planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
    flex-basis:min(166px,max(122px,calc(100vw - 236px)))!important;
    width:min(166px,max(122px,calc(100vw - 236px)))!important;
    min-width:min(166px,max(122px,calc(100vw - 236px)))!important;
    max-width:166px!important;
  }
}
@media(max-width:374px){
  #foodsScreen #foodsProfileMini .food-profile-summary,
  #planScreen .plan-preview-hero .diet-profile-summary{
    grid-template-columns:186px minmax(0,1fr)!important;
    gap:7px!important;
  }
  #foodsScreen #foodsProfileMini .food-profile-person,
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person{
    grid-template-columns:96px minmax(78px,1fr)!important;
    width:186px!important;
    min-width:186px!important;
    max-width:186px!important;
  }
  #foodsScreen #foodsProfileMini .food-profile-person .hero-avatar,
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person .hero-avatar{
    width:92px!important;
    height:92px!important;
  }
  #foodsScreen #foodsProfileMini .food-profile-mantra,
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-mantra{
    max-width:82px!important;
  }
  #foodsScreen #foodsProfileMini .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat,
  #planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
    flex-basis:min(166px,max(118px,calc(100vw - 222px)))!important;
    width:min(166px,max(118px,calc(100vw - 222px)))!important;
    min-width:min(166px,max(118px,calc(100vw - 222px)))!important;
  }
}
@media(min-width:760px){
  #foodsScreen #foodsProfileMini .food-profile-summary{
    grid-template-columns:minmax(220px,280px) minmax(0,1fr)!important;
    gap:18px!important;
  }
  #foodsScreen #foodsProfileMini .food-profile-person{
    grid-template-columns:92px minmax(0,1fr)!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    column-gap:14px!important;
  }
  #foodsScreen #foodsProfileMini .food-profile-person .hero-avatar,
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person .hero-avatar{
    width:86px!important;
    height:86px!important;
  }
  #foodsScreen #foodsProfileMini .food-profile-mantra{
    width:auto!important;
    max-width:none!important;
  }
  #foodsScreen #foodsProfileMini .profile-info-carousel[data-home-carousel="profile"]{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(156px,1fr))!important;
    gap:14px!important;
    overflow:visible!important;
    padding:0!important;
    scroll-snap-type:none!important;
  }
  #foodsScreen #foodsProfileMini .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
    flex:initial!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    min-height:96px!important;
    scroll-snap-align:unset!important;
  }
  #foodsScreen #foodsProfileMini .profile-info-carousel + .carousel-dots.profile-carousel-dots{
    display:none!important;
  }
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodsProfileMini .food-profile-mantra .mantra-kicker{
  color:#9EB8FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodsProfileMini .food-profile-mantra .mantra-main{
  color:#FFFFFF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen #foodsProfileMini{
  background:
    radial-gradient(circle at 16% 48%,rgba(102,127,255,.20) 0%,transparent 58%),
    linear-gradient(145deg,#132641,#0C172B 72%,#111D33)!important;
}

/* Interaction polish: avoid accidental text selection on app controls while keeping fields copyable/editable. */
#app,
.screen,
.panel,
.card,
.food-card,
.cost-item,
.meal-card,
.plan-slot-card,
.food-base-slot-card,
.home-tabs,
.plan-tabs,
.carousel-dots,
.app-menu,
.bottom-nav,
.side-nav,
button,
.chip,
.toggle,
label:not(.food-search-field):not(.finance-search-field):not(.storage-name-field){
  -webkit-user-select:none;
  user-select:none;
}

input,
textarea,
select,
[contenteditable="true"],
.food-search-field,
.finance-search-field,
.storage-name-field,
.food-search-field *,
.finance-search-field *,
.storage-name-field *,
.prose,
.prose *,
.terms-card,
.terms-card *,
.ai-message,
.ai-message *{
  -webkit-user-select:text!important;
  user-select:text!important;
}

/* Foods spacing polish: keep the hero airy, but halve the gap before the base card on narrow layouts. */
@media(max-width:900px){
  #foodsScreen #foodsProfileMini{
    margin-bottom:24px!important;
  }
}

/* Dieta: keep the collapsed Metas block aligned with Agora. */
#planScreen[data-plan-active="planning"] #planSummary:has(.macro-disclosure-card:not([open])){
  width:calc(100% - 28px)!important;
  margin-right:auto!important;
  margin-left:auto!important;
}
#planSummary .macro-disclosure-card>summary{
  grid-template-columns:minmax(0,1fr) auto 30px!important;
  gap:8px!important;
}
#planSummary .macro-disclosure-card:not([open]){
  height:52px!important;
  max-height:52px!important;
}
#planSummary .macro-disclosure-card:not([open])>summary{
  min-height:48px!important;
  padding:7px 12px!important;
}
#planSummary .macro-disclosure-card>summary:after{
  width:30px!important;
  height:30px!important;
}

/* Agora meal cards follow their own content instead of stretching to the tallest meal. */
#homeScreen #todayPanel .today-meal-list[data-home-carousel]{
  align-items:start;
}

/* Agora meal rail: keep the first card fully visible on narrow screens. */
@media(max-width:759px){
  #homeScreen #todayPanel .today-meal-list[data-home-carousel]{
    box-sizing:border-box!important;
    margin-right:-10px!important;
    margin-left:0!important;
    padding-right:10px!important;
    padding-left:8px!important;
    scroll-padding-left:8px!important;
  }
}

#homeScreen .today-meals-title{
  margin-bottom:12px!important;
}

/* Agora: preserve a clean gap between the subtab rail and Metas. */
#homeScreen > .home-tabs[hidden]{
  display:none!important;
}
#homeScreen .home-tabs + #todayPanel.today-card,
#homeScreen #todayPanel.today-card{
  margin-top:8px!important;
}

/* Rhea: nested disclosure arrows and dark outlines stay contained in their own controls. */
.rhea-contraceptive-card,
.rhea-contraceptive-card summary,
.rhea-top-actions button{
  box-sizing:border-box!important;
}
.rhea-contraceptive-card summary .cycle-source-arrow{
  flex:0 0 26px!important;
  width:26px!important;
  min-width:26px!important;
  height:26px!important;
  min-height:26px!important;
  margin:0!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-top-actions button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-contraceptive-card{
  border-color:rgba(139,160,255,.30)!important;
  background:#12213A!important;
  box-shadow:none!important;
}

/* Agora/Dieta carousel parity: keep dots reserved and right-aligned before JS hydration. */
#planScreen .profile-info-carousel[data-home-carousel],
#planScreen .plan-nutrient-carousel[data-home-carousel]{
  transform:translateZ(0);
  backface-visibility:hidden;
}
#planScreen .profile-info-carousel[data-home-carousel]{
  margin-bottom:11px!important;
}
#planScreen .profile-info-carousel + .carousel-dots.profile-carousel-dots{
  justify-content:flex-end!important;
  margin:-5px 18px 0 0!important;
}
#planSummary .macro-disclosure-body{
  min-height:126px;
}
#planSummary .plan-nutrient-carousel + .carousel-dots{
  justify-content:flex-end!important;
  margin:3px 12px 0 0!important;
}
#planSummary .plan-nutrient-carousel>.day-macro{
  min-height:96px!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-stack{
  width:calc(100% - 28px)!important;
}

/* M81: Metas in Dieta has one visual surface, not a card nested in a panel. */
#planScreen[data-plan-active="planning"] #planSummary.plan-planning-section{
  width:100%!important;
  margin:0 0 6px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#planScreen[data-plan-active="planning"] #planSummary .macro-disclosure-stack.plan{
  width:100%!important;
  margin:0!important;
}
#planScreen[data-plan-active="planning"] #planSummary .macro-disclosure-card{
  width:100%!important;
}

/* Header disclosure buttons: one compact rhythm for Cronos, Rhea and Prometeu. */
#homeScreen #homeProfile :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card),
#foodsScreen :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card){
  box-sizing:border-box!important;
  width:max-content!important;
  max-width:100%!important;
  margin:2px 0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure>summary,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure>summary,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary),
#foodsScreen :is(.profile-goal-disclosure>summary,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary){
  display:inline-grid!important;
  grid-template-columns:auto 20px!important;
  align-items:center!important;
  justify-content:start!important;
  column-gap:6px!important;
  min-width:0!important;
  min-height:24px!important;
  margin:0 0 0 18px!important;
  padding:0 4px!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:var(--blue-deep)!important;
  line-height:1!important;
  box-shadow:none!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure-label,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary span),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure-label,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary span),
#foodsScreen :is(.profile-goal-disclosure-label,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary span){
  display:block!important;
  color:var(--blue-deep)!important;
  font-size:.68rem!important;
  font-weight:850!important;
  line-height:1!important;
  white-space:nowrap!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure-arrow,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary .cycle-source-arrow),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure-arrow,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary .cycle-source-arrow),
#foodsScreen :is(.profile-goal-disclosure-arrow,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary .cycle-source-arrow){
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 20px!important;
  width:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  height:20px!important;
  min-height:20px!important;
  margin:0!important;
  border-radius:50%!important;
  background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--blue) 9%,#fff))!important;
  color:var(--blue)!important;
  box-shadow:0 6px 12px rgba(75,45,80,.06),inset 0 0 0 1px color-mix(in srgb,var(--blue) 16%,transparent)!important;
}
#homeScreen #homeProfile .profile-goal-disclosure-arrow:before,
#homeScreen #homeProfile .menstrual-cycle-card.cycle-source-card>.cycle-source-summary .cycle-source-arrow:before,
#planScreen .plan-preview-hero .profile-goal-disclosure-arrow:before,
#planScreen .plan-preview-hero .menstrual-cycle-card.cycle-source-card>.cycle-source-summary .cycle-source-arrow:before,
#foodsScreen .profile-goal-disclosure-arrow:before,
#foodsScreen .menstrual-cycle-card.cycle-source-card>.cycle-source-summary .cycle-source-arrow:before{
  position:absolute!important;
  top:50%!important;
  left:50%!important;
  width:5px!important;
  height:5px!important;
  margin:0!important;
  border-right:1.8px solid currentColor!important;
  border-bottom:1.8px solid currentColor!important;
  content:""!important;
  transform:translate(-50%,-62%) rotate(45deg)!important;
}
#homeScreen #homeProfile .profile-goal-disclosure[open] .profile-goal-disclosure-arrow:before,
#planScreen .plan-preview-hero .profile-goal-disclosure[open] .profile-goal-disclosure-arrow:before,
#foodsScreen .profile-goal-disclosure[open] .profile-goal-disclosure-arrow:before,
#homeScreen #homeProfile .menstrual-cycle-card.cycle-source-card[open]>.cycle-source-summary .cycle-source-arrow:before,
#planScreen .plan-preview-hero .menstrual-cycle-card.cycle-source-card[open]>.cycle-source-summary .cycle-source-arrow:before,
#foodsScreen .menstrual-cycle-card.cycle-source-card[open]>.cycle-source-summary .cycle-source-arrow:before{
  transform:translate(-50%,-36%) rotate(225deg)!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure[open] .profile-goal-disclosure-arrow,.menstrual-cycle-card.cycle-source-card[open]>.cycle-source-summary .cycle-source-arrow),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure[open] .profile-goal-disclosure-arrow,.menstrual-cycle-card.cycle-source-card[open]>.cycle-source-summary .cycle-source-arrow),
#foodsScreen :is(.profile-goal-disclosure[open] .profile-goal-disclosure-arrow,.menstrual-cycle-card.cycle-source-card[open]>.cycle-source-summary .cycle-source-arrow){
  transform:none!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure>summary:hover .profile-goal-disclosure-arrow,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary:hover .cycle-source-arrow),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure>summary:hover .profile-goal-disclosure-arrow,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary:hover .cycle-source-arrow),
#foodsScreen :is(.profile-goal-disclosure>summary:hover .profile-goal-disclosure-arrow,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary:hover .cycle-source-arrow){
  background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--blue) 9%,#fff))!important;
  color:var(--blue)!important;
  box-shadow:0 6px 12px rgba(75,45,80,.06),inset 0 0 0 1px color-mix(in srgb,var(--blue) 16%,transparent)!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure>.profile-goal-row,.menstrual-cycle-card.cycle-source-card>.cycle-source-body),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure>.profile-goal-row,.menstrual-cycle-card.cycle-source-card>.cycle-source-body),
#foodsScreen :is(.profile-goal-disclosure>.profile-goal-row,.menstrual-cycle-card.cycle-source-card>.cycle-source-body){
  margin-top:6px!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeScreen #homeProfile :is(.profile-goal-disclosure-label,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary span),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-preview-hero :is(.profile-goal-disclosure-label,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary span),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen :is(.profile-goal-disclosure-label,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary span){
  color:#DCE6FF!important;
}

/* Disclosure alignment refinement: keep label and arrow side by side with Dieta's rhythm. */
#homeScreen #homeProfile :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card),
#foodsScreen :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card){
  margin:6px 0!important;
}
#homeScreen #homeProfile .home-profile-summary + .profile-goal-disclosure,
#planScreen .plan-preview-hero .diet-profile-summary + .profile-goal-disclosure,
#foodsScreen .food-profile-summary + .profile-goal-disclosure{
  margin-top:10px!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure>summary,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure>summary,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary),
#foodsScreen :is(.profile-goal-disclosure>summary,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary){
  display:inline-flex!important;
  width:auto!important;
  min-width:max-content!important;
  max-width:max-content!important;
  height:24px!important;
  min-height:24px!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  margin-left:18px!important;
  padding:0!important;
  overflow:visible!important;
}
#homeScreen #homeProfile .cycle-source-summary>.cycle-source-label,
#planScreen .plan-preview-hero .cycle-source-summary>.cycle-source-label,
#foodsScreen .cycle-source-summary>.cycle-source-label,
#homeScreen #homeProfile .profile-goal-disclosure-label,
#planScreen .plan-preview-hero .profile-goal-disclosure-label,
#foodsScreen .profile-goal-disclosure-label{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:max-content!important;
  max-width:none!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure-arrow,.cycle-source-summary>.cycle-source-arrow),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure-arrow,.cycle-source-summary>.cycle-source-arrow),
#foodsScreen :is(.profile-goal-disclosure-arrow,.cycle-source-summary>.cycle-source-arrow){
  flex:0 0 20px!important;
  width:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  height:20px!important;
  min-height:20px!important;
}

/* Dieta: the disclosure trigger stays compact, but the opened Rhea card uses the real card width. */
/* Disclosure rhythm: Agora and Dieta share the same compact label spacing. */
#homeScreen #homeProfile :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card),
#foodsScreen :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card){
  margin:0 0 11px!important;
}
#homeScreen #homeProfile .home-profile-summary + .profile-goal-disclosure,
#planScreen .plan-preview-hero .diet-profile-summary + .profile-goal-disclosure,
#foodsScreen .food-profile-summary + .profile-goal-disclosure{
  margin-top:12px!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure>summary,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure>summary,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary),
#foodsScreen :is(.profile-goal-disclosure>summary,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary){
  margin-left:18px!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card)[open],
#planScreen .plan-preview-hero :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card)[open],
#foodsScreen :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card)[open]{
  width:min(326px,calc(100vw - 92px))!important;
  max-width:none!important;
  overflow:visible!important;
  contain:none!important;
}
#homeScreen #homeProfile .profile-goal-disclosure[open]>.profile-goal-row,
#planScreen .plan-preview-hero .profile-goal-disclosure[open]>.profile-goal-row,
#foodsScreen .profile-goal-disclosure[open]>.profile-goal-row{
  width:calc(100% - 2px)!important;
  margin-left:2px!important;
}
#homeScreen #homeProfile .menstrual-cycle-card.cycle-source-card[open]>.cycle-source-body,
#planScreen .plan-preview-hero .menstrual-cycle-card.cycle-source-card.rhea-card-v2[open]>.cycle-source-body{
  width:calc(100% - 2px)!important;
  margin-left:2px!important;
}

/* Profile carousel dots: Agora follows Dieta's vertical rhythm, right-aligned in the rail. */
#homeScreen #homeProfile .profile-info-carousel + .carousel-dots.profile-carousel-dots{
  grid-column:2!important;
  justify-self:end!important;
  align-self:start!important;
  margin:2px 18px 0 0!important;
  padding:0!important;
}

/* Header rails: give Agora/Dieta the same usable right edge inside opened disclosures. */
#homeScreen #homeProfile :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card)[open],
#planScreen .plan-preview-hero :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card)[open]{
  width:min(360px,calc(100vw - 52px))!important;
}
#homeScreen #homeProfile .profile-goal-disclosure[open]>.profile-goal-row,
#planScreen .plan-preview-hero .profile-goal-disclosure[open]>.profile-goal-row{
  box-sizing:border-box!important;
  width:calc(100% - 2px)!important;
  margin-left:2px!important;
  padding-right:8px!important;
  scroll-padding-right:8px!important;
}

/* Active special modes: keep the disclosure trigger as the reminder, not the card body. */
#homeScreen #homeProfile :is(.profile-goal-disclosure.special-mode-active>summary,.menstrual-cycle-card.cycle-source-card.special-mode-active>.cycle-source-summary),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure.special-mode-active>summary,.menstrual-cycle-card.cycle-source-card.special-mode-active>.cycle-source-summary),
#foodsScreen :is(.profile-goal-disclosure.special-mode-active>summary,.menstrual-cycle-card.cycle-source-card.special-mode-active>.cycle-source-summary){
  padding:0 7px 0 10px!important;
  border:1px solid color-mix(in srgb,var(--green) 32%,var(--line))!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--green-soft) 92%,#fff),#fff)!important;
  box-shadow:0 9px 18px color-mix(in srgb,var(--green) 14%,transparent),inset 0 1px 0 rgba(255,255,255,.82)!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure.contraceptive-mode-active>summary,.menstrual-cycle-card.cycle-source-card.contraceptive-mode-active>.cycle-source-summary),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure.contraceptive-mode-active>summary,.menstrual-cycle-card.cycle-source-card.contraceptive-mode-active>.cycle-source-summary),
#foodsScreen :is(.profile-goal-disclosure.contraceptive-mode-active>summary,.menstrual-cycle-card.cycle-source-card.contraceptive-mode-active>.cycle-source-summary){
  padding:0 7px 0 10px!important;
  border:1px solid color-mix(in srgb,var(--blue) 30%,var(--line))!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--blue-soft) 90%,#fff),#fff)!important;
  box-shadow:0 9px 18px color-mix(in srgb,var(--blue) 13%,transparent),inset 0 1px 0 rgba(255,255,255,.82)!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure.special-mode-active .profile-goal-disclosure-label,.menstrual-cycle-card.cycle-source-card.special-mode-active>.cycle-source-summary span),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure.special-mode-active .profile-goal-disclosure-label,.menstrual-cycle-card.cycle-source-card.special-mode-active>.cycle-source-summary span),
#foodsScreen :is(.profile-goal-disclosure.special-mode-active .profile-goal-disclosure-label,.menstrual-cycle-card.cycle-source-card.special-mode-active>.cycle-source-summary span){
  color:var(--green)!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure.contraceptive-mode-active .profile-goal-disclosure-label,.menstrual-cycle-card.cycle-source-card.contraceptive-mode-active>.cycle-source-summary span),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure.contraceptive-mode-active .profile-goal-disclosure-label,.menstrual-cycle-card.cycle-source-card.contraceptive-mode-active>.cycle-source-summary span),
#foodsScreen :is(.profile-goal-disclosure.contraceptive-mode-active .profile-goal-disclosure-label,.menstrual-cycle-card.cycle-source-card.contraceptive-mode-active>.cycle-source-summary span){
  color:var(--blue)!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure.special-mode-active .profile-goal-disclosure-arrow,.menstrual-cycle-card.cycle-source-card.special-mode-active>.cycle-source-summary .cycle-source-arrow),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure.special-mode-active .profile-goal-disclosure-arrow,.menstrual-cycle-card.cycle-source-card.special-mode-active>.cycle-source-summary .cycle-source-arrow),
#foodsScreen :is(.profile-goal-disclosure.special-mode-active .profile-goal-disclosure-arrow,.menstrual-cycle-card.cycle-source-card.special-mode-active>.cycle-source-summary .cycle-source-arrow){
  background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--green) 16%,#fff))!important;
  color:var(--green)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--green) 24%,transparent)!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure.contraceptive-mode-active .profile-goal-disclosure-arrow,.menstrual-cycle-card.cycle-source-card.contraceptive-mode-active>.cycle-source-summary .cycle-source-arrow),
#planScreen .plan-preview-hero :is(.profile-goal-disclosure.contraceptive-mode-active .profile-goal-disclosure-arrow,.menstrual-cycle-card.cycle-source-card.contraceptive-mode-active>.cycle-source-summary .cycle-source-arrow),
#foodsScreen :is(.profile-goal-disclosure.contraceptive-mode-active .profile-goal-disclosure-arrow,.menstrual-cycle-card.cycle-source-card.contraceptive-mode-active>.cycle-source-summary .cycle-source-arrow){
  background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--blue) 15%,#fff))!important;
  color:var(--blue)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--blue) 22%,transparent)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeScreen #homeProfile :is(.profile-goal-disclosure.special-mode-active>summary,.menstrual-cycle-card.cycle-source-card.special-mode-active>.cycle-source-summary),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-preview-hero :is(.profile-goal-disclosure.special-mode-active>summary,.menstrual-cycle-card.cycle-source-card.special-mode-active>.cycle-source-summary),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen :is(.profile-goal-disclosure.special-mode-active>summary,.menstrual-cycle-card.cycle-source-card.special-mode-active>.cycle-source-summary){
  border-color:color-mix(in srgb,var(--green) 48%,var(--line))!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--green) 23%,#102037),color-mix(in srgb,var(--surface-2) 86%,#0F1C16))!important;
  box-shadow:0 9px 18px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #homeScreen #homeProfile :is(.profile-goal-disclosure.contraceptive-mode-active>summary,.menstrual-cycle-card.cycle-source-card.contraceptive-mode-active>.cycle-source-summary),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-preview-hero :is(.profile-goal-disclosure.contraceptive-mode-active>summary,.menstrual-cycle-card.cycle-source-card.contraceptive-mode-active>.cycle-source-summary),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #foodsScreen :is(.profile-goal-disclosure.contraceptive-mode-active>summary,.menstrual-cycle-card.cycle-source-card.contraceptive-mode-active>.cycle-source-summary){
  border-color:color-mix(in srgb,var(--blue) 52%,var(--line))!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--blue) 25%,#102037),color-mix(in srgb,var(--surface-2) 86%,#101A30))!important;
  box-shadow:0 9px 18px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
#homeScreen #homeProfile [data-profile-goal-row="cronos"]>:is(div,button),
#planScreen .plan-preview-hero .profile-goal-row.plan-goal-carousel[data-home-carousel="planGoals"] .plan-goal-card{
  flex-basis:clamp(150px,41vw,168px)!important;
  width:clamp(150px,41vw,168px)!important;
  min-width:clamp(150px,41vw,168px)!important;
  max-width:168px!important;
}
#homeScreen #homeProfile [data-profile-goal-row="cronos"] + .carousel-dots.profile-carousel-dots,
#planScreen .plan-preview-hero .profile-goal-row.plan-goal-carousel[data-home-carousel="planGoals"] + .carousel-dots.profile-carousel-dots{
  justify-content:flex-end!important;
  box-sizing:border-box!important;
  width:calc(100% - 18px)!important;
  margin:2px 6px 0 18px!important;
  padding:0!important;
}

/* Final header parity pass: the Dieta profile rail dots follow Agora's right edge. */
#planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"] + .carousel-dots.profile-carousel-dots{
  display:flex!important;
  grid-column:2!important;
  justify-self:end!important;
  justify-content:flex-end!important;
  align-self:start!important;
  box-sizing:border-box!important;
  width:100%!important;
  margin:-3px 18px 0 0!important;
  padding:0!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure>summary,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary){
  margin-left:10px!important;
}

@media(max-width:430px){
  #planScreen .plan-preview-hero .diet-profile-summary{
    grid-template-columns:198px minmax(0,1fr)!important;
    gap:8px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person{
    grid-template-columns:104px minmax(82px,1fr)!important;
    width:198px!important;
    min-width:198px!important;
    max-width:198px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-person .hero-avatar{
    width:100px!important;
    height:100px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .diet-profile-mantra{
    width:min(88px,100%)!important;
    max-width:88px!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"]{
    padding-right:0!important;
    scroll-padding-left:0!important;
  }
  #planScreen .plan-preview-hero .diet-profile-summary .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
    flex:0 0 calc(100vw - 236px)!important;
    width:calc(100vw - 236px)!important;
    min-width:122px!important;
    max-width:166px!important;
    scroll-snap-align:start!important;
  }
}
/* Cronos cards must stay readable even when labels are long. */
#homeScreen #homeProfile [data-profile-goal-row="cronos"] :is(span,b),
#planScreen .plan-preview-hero .profile-goal-row.plan-goal-carousel[data-home-carousel="planGoals"] .plan-goal-card :is(span,b){
  max-width:100%!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
}
#homeScreen #homeProfile [data-profile-goal-row="cronos"] span,
#planScreen .plan-preview-hero .profile-goal-row.plan-goal-carousel[data-home-carousel="planGoals"] .plan-goal-card span{
  font-size:.6rem!important;
  line-height:1.12!important;
}

/* First access: tools belong only after the first saved profile. */
#homeScreen.home-no-saved-profile .tools-title,
#homeScreen.home-no-saved-profile .home-actions,
#homeScreen.home-no-saved-profile .home-actions[data-home-carousel],
#homeScreen.home-no-saved-profile .home-actions + .carousel-dots{
  display:none!important;
  visibility:hidden!important;
}

/* Local AI guide: first-diet follow-up choices and checklist. */
.ai-msg.onboarding{
  width:min(92%,360px);
  max-width:92%;
  padding:12px;
  border:1px solid rgba(102,127,255,.18);
}

.ai-msg.onboarding p{
  font-size:.84rem;
  line-height:1.42;
}

.ai-local-guide-menu{
  display:grid;
  gap:8px;
  margin-top:12px;
}

.ai-local-guide-tracks{
  display:grid;
  gap:8px;
  margin-top:12px;
}

.ai-local-guide-track{
  display:grid;
  gap:3px;
  width:100%;
  padding:10px 12px;
  border:1px solid rgba(94,124,246,.18);
  border-radius:14px;
  background:rgba(94,119,255,.05);
  text-align:left;
  white-space:normal;
}

.ai-local-guide-track b{
  color:var(--ink);
  font-size:.82rem;
  line-height:1.2;
}

.ai-local-guide-track small{
  color:var(--muted);
  font-size:.72rem;
  line-height:1.25;
}

.ai-local-guide-open-menu{
  display:inline-flex;
  width:auto;
  min-height:38px;
  margin-top:2px;
  padding:0 16px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  white-space:normal;
  line-height:1.15;
}

.ai-guide-notifications{
  display:grid;
  gap:8px;
  padding:9px;
  border:1px solid rgba(246,169,77,.28);
  border-radius:15px;
  background:linear-gradient(135deg,rgba(255,247,227,.9),rgba(239,247,255,.9));
}

.ai-guide-notifications-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  padding:0 2px;
}

.ai-guide-notifications-head b{
  color:var(--ink);
  font-size:.74rem;
}

.ai-guide-notifications-head span{
  display:grid;
  place-items:center;
  min-width:23px;
  height:23px;
  padding:0 7px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:.66rem;
  font-weight:950;
}

.ai-guide-notification-card{
  display:grid;
  gap:9px;
  padding:10px;
  border:1px solid rgba(94,124,246,.18);
  border-radius:13px;
  background:rgba(255,255,255,.78);
  box-shadow:0 10px 22px rgba(47,58,124,.07);
}

.ai-guide-notification-card.unread{
  border-color:rgba(239,68,68,.22);
}

.ai-msg.guide-notice{
  max-width:min(90%,420px);
}

.ai-msg.guide-notice .ai-guide-notification-card{
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}

.ai-guide-notification-card small{
  display:block;
  margin-bottom:3px;
  color:var(--muted);
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.ai-guide-notification-card b{
  display:block;
  color:var(--ink);
  font-size:.78rem;
  line-height:1.22;
}

.ai-guide-notification-card p{
  margin:4px 0 0;
  color:var(--text);
  font-size:.74rem;
  line-height:1.42;
  white-space:pre-line;
}

.ai-guide-notification-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:7px;
}

.ai-guide-notification-actions button{
  min-height:34px;
  width:100%;
  padding-inline:9px;
  justify-content:center;
  text-align:center;
}

.ai-local-guide-section{
  overflow:hidden;
  border:1px solid rgba(94,124,246,.18);
  border-radius:14px;
  background:rgba(94,119,255,.05);
}

.ai-local-guide-section summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 10px;
  cursor:pointer;
  list-style:none;
}

.ai-local-guide-section summary::-webkit-details-marker{
  display:none;
}

.ai-local-guide-section summary b{
  min-width:0;
  color:var(--ink);
  font-size:.75rem;
  line-height:1.2;
}

.ai-local-guide-section summary span{
  display:grid;
  place-items:center;
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  background:var(--blue-soft);
  color:var(--blue-deep);
  font-size:.66rem;
  font-weight:950;
}

.ai-local-guide-section-body{
  display:grid;
  gap:7px;
  padding:0 8px 9px;
}

.ai-local-guide-menu button,
.ai-local-guide-topic{
  min-height:38px;
  width:100%;
  justify-content:flex-start;
  padding-inline:12px;
  text-align:left;
  white-space:normal;
  line-height:1.18;
}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-local-guide-track{
  border-color:rgba(139,159,255,.22);
  background:rgba(94,119,255,.08);
}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-msg.onboarding{
  border-color:rgba(139,159,255,.24);
  background:linear-gradient(180deg,rgba(23,36,64,.98),rgba(16,29,54,.96));
}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-local-guide-section{
  border-color:rgba(139,159,255,.22);
  background:rgba(94,119,255,.08);
}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-fab.has-guide-notifications::after{
  border-color:#0f172a;
}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-guide-notifications{
  border-color:rgba(246,169,77,.25);
  background:linear-gradient(135deg,rgba(65,45,76,.72),rgba(20,31,55,.82));
}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-guide-notification-card{
  border-color:rgba(139,159,255,.2);
  background:rgba(17,24,39,.72);
}

.ai-msg-choice-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:14px;
}
.ai-msg-choice-row button{
  width:100%;
  min-height:36px;
}
/* As opcoes do Oraculo nascem dos candidatos: vem em numero variavel (2 a 3)
   e com rotulo longo ("Trocar Arroz branco por Batata inglesa"). O grid fixo
   de 2 colunas acima foi feito para os 4 botoes curtos de direcao e quebra
   nesse caso. Uma coluna por linha, texto podendo correr e alvo de toque de
   44px para caber no celular. */
.ai-msg-choice-row.oraculo-opcoes{
  grid-template-columns:1fr;
  gap:6px;
}
.ai-msg-choice-row.oraculo-opcoes button{
  min-height:44px;
  height:auto;
  padding:10px 12px;
  text-align:left;
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.3;
}
@media (min-width:560px){
  .ai-msg-choice-row.oraculo-opcoes{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
}
/* A primeira opcao e a melhor ranqueada. Sem destaque visual o ranking fica
   so interno e o usuario le as tres como equivalentes. */
.ai-msg-choice-row.oraculo-opcoes button.primary{font-weight:900}
.ai-msg-choice-row.oraculo-opcoes button:disabled{opacity:.5}
/* O destino e a segunda linha do botao, nao um sufixo: "Adicionar arroz" e a
   mesma frase no Agora, na Dieta e em Alimentos. Fica secundario para o rotulo
   continuar sendo o que se le primeiro. */
.ai-msg-choice-row.oraculo-opcoes button .oraculo-destino{
  display:block;
  margin-top:3px;
  font-size:.68rem;
  font-weight:700!important;
  letter-spacing:.01em;
  opacity:.72;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-msg-choice-row.oraculo-opcoes .soft{
  border-color:rgba(157,174,255,.26)!important;
  background:#0C1425!important;
  color:#F5F8FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-msg-choice-row.oraculo-opcoes .primary{
  background:linear-gradient(135deg,#8FA2FF,#758BFA)!important;
  color:#071225!important;
}

.ai-copilot-inline-loading{display:flex;align-items:center;gap:10px;padding:10px 2px;color:var(--muted);font-size:.76rem;font-weight:800}.ai-copilot-inline-loading span{width:16px;height:16px;border:2px solid color-mix(in srgb,var(--blue) 24%,transparent);border-top-color:var(--blue);border-radius:50%;animation:copilot-inline-spin .8s linear infinite}@keyframes copilot-inline-spin{to{transform:rotate(360deg)}}
.copilot-plan-review{display:grid;gap:12px}.copilot-plan-option-grid{display:grid;gap:10px}.copilot-plan-option{display:grid;gap:11px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff)}.copilot-plan-option small{color:var(--orange);font-size:.67rem;font-weight:900;text-transform:uppercase}.copilot-plan-option h3{margin-top:3px;font-size:.84rem;line-height:1.35;letter-spacing:0}.copilot-plan-option dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:6px;margin:0}.copilot-plan-option dl div{min-width:0;padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--soft,#f7f8fb)}.copilot-plan-option dt{font-size:.61rem;color:var(--muted)}.copilot-plan-option dd{margin:3px 0 0;font-size:.72rem;font-weight:900;color:var(--ink)}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .copilot-plan-option{background:var(--card)}
.planning-confirmation{display:grid;gap:20px;letter-spacing:0}
.planning-confirmation header{padding-right:42px}
.planning-confirmation header h2{margin:0;font-size:1.1rem;line-height:1.35;overflow-wrap:anywhere}
.planning-confirmation header p{margin:8px 0 0;color:var(--muted);font-size:.8rem;line-height:1.5}
.planning-confirmation-facts{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px;margin:0}
.planning-confirmation-facts dt{font-size:.73rem;color:var(--muted)}
.planning-confirmation-facts dd{margin:6px 0 0;font-size:.9rem;font-weight:800;color:var(--ink);overflow-wrap:anywhere}
.planning-confirmation-comparison{width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums}
.planning-confirmation-comparison th,.planning-confirmation-comparison td{padding:12px 6px;border-bottom:1px solid var(--line);text-align:right;vertical-align:middle;overflow-wrap:anywhere}
.planning-confirmation-comparison thead th{padding-top:0;color:var(--muted);font-size:.7rem;font-weight:600}
.planning-confirmation-comparison th:first-child{width:40%;padding-left:0;text-align:left}
.planning-confirmation-comparison tbody th{font-size:.76rem;font-weight:600;line-height:1.4}
.planning-confirmation-comparison small{display:block;margin-top:3px;color:var(--muted);font-size:.65rem;font-weight:500}
.planning-confirmation-comparison td{font-size:.83rem;font-weight:700}
.planning-confirmation-comparison td:last-child{color:var(--blue);font-weight:800}
.planning-confirmation-forecast{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:.8rem}
.planning-confirmation-forecast span{color:var(--muted)}
.planning-confirmation-forecast strong{font-size:1.05rem;font-variant-numeric:tabular-nums;color:var(--ink)}
.planning-confirmation-actions{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:8px}
.planning-confirmation-actions button{min-width:0;min-height:44px;padding:10px 12px;border-radius:8px;font-size:.75rem;white-space:normal;line-height:1.35}

.ai-guide-checklist-wrap{
  display:grid;
  gap:10px;
  margin-top:10px;
}

.ai-guide-checklist{
  display:grid;
  gap:8px;
  list-style:none;
  margin:0;
  padding:0;
}
.ai-guide-checklist li{
  display:grid;
  gap:8px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(94,119,255,.06);
  color:var(--text);
}

.ai-guide-checklist li.active{
  border-color:rgba(255,176,84,.58);
  background:linear-gradient(135deg,rgba(255,176,84,.14),rgba(94,119,255,.07));
}

.ai-guide-check-item{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  align-items:center;
  gap:8px;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  box-shadow:none;
}

.ai-guide-check-item span{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:999px;
  background:var(--surface-2);
  color:var(--blue);
  font-size:.72rem;
  font-weight:950;
}
.ai-guide-checklist li.done{
  border-color:rgba(26,188,122,.35);
  background:rgba(26,188,122,.08);
}
.ai-guide-checklist li.done .ai-guide-check-item span{
  background:#1ABC7A;
  color:#fff;
}
.ai-guide-check-item b{
  font-size:.76rem;
  line-height:1.25;
}

.ai-guide-step-note{
  display:grid;
  gap:8px;
  margin-left:30px;
  padding:9px 10px;
  border:1px solid rgba(94,124,246,.18);
  border-radius:12px;
  background:rgba(255,255,255,.62);
}

.ai-guide-step-note p{
  margin:0;
  font-size:.76rem;
  line-height:1.34;
  color:var(--muted);
}
.ai-guide-step-note .ai-guide-step-feedback{
  color:var(--ink);
  font-weight:800;
}

.ai-guide-help-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.ai-guide-help-chip,
.ai-guide-finish-button{
  min-height:32px;
  width:max-content;
  max-width:100%;
  padding:0 12px;
  border:1px solid rgba(94,124,246,.24);
  border-radius:999px;
  background:var(--blue-soft);
  color:var(--blue-deep);
  box-shadow:none;
  font-size:.72rem;
  font-weight:900;
}
#foodsScreen #foodFilterPanel .food-onboarding-filter-empty{
  display:grid;
  place-items:center;
  min-height:46px;
  padding:12px;
  border:1px solid rgba(102,127,255,.18);
  border-radius:16px;
  background:rgba(255,255,255,.56);
  color:var(--muted);
  font-size:.72rem;
  font-weight:900;
}

.ai-guide-finish-button{
  justify-self:start;
  background:linear-gradient(135deg,#FFB054,#5E77FF);
  color:#fff;
  border-color:transparent;
}

.ai-guide-finish-note{
  display:grid;
  gap:8px;
  margin:0;
  padding:11px 12px;
  border-radius:12px;
  background:rgba(26,188,122,.10);
  color:var(--text);
  font-size:.78rem;
  line-height:1.34;
  font-weight:800;
}
.ai-guide-finish-note p{
  margin:0;
}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-guide-checklist li{
  background:rgba(94,119,255,.10);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-guide-checklist li.active{
  background:linear-gradient(135deg,rgba(255,176,84,.16),rgba(94,119,255,.10));
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-guide-checklist li.done{
  background:rgba(26,188,122,.12);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-guide-step-note{
  border-color:rgba(139,159,255,.24);
  background:rgba(13,25,45,.72);
}

.ai-head-actions{
  align-items:center;
}

.ai-save-chat{
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--ai-clear-surface);
  color:var(--muted);
  box-shadow:none;
  font-size:.68rem;
  font-weight:900;
}

.ai-save-chat:hover{
  border-color:#bfcaf2;
  color:var(--blue);
  background:var(--ai-chat-surface);
}

.ai-minimize-chat{
  position:relative;
  display:block;
  line-height:1;
  font-size:0;
  font-weight:900;
  padding:0;
}

.ai-minimize-chat:before,
.ai-minimize-chat:after{
  content:""!important;
  position:absolute;
  top:50%;
  left:50%;
  width:13px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  transform:translate(-50%,-50%) rotate(45deg);
}

.ai-minimize-chat:after{
  transform:translate(-50%,-50%) rotate(-45deg);
}

.ai-menu-token{
  display:inline-flex;
  align-items:center;
  gap:5px;
  vertical-align:-2px;
  line-height:1.1;
  white-space:nowrap;
}

.ai-menu-token-icon{
  width:14px;
  height:14px;
  flex-basis:14px;
  transform:translateY(1px);
}

.ai-guide-nav-help{
  min-height:34px;
  width:max-content;
  max-width:100%;
  padding:0 12px;
  border:1px solid rgba(94,124,246,.24);
  border-radius:999px;
  background:var(--blue-soft);
  color:var(--blue-deep);
  font-size:.74rem;
  font-weight:900;
}

.bottom-nav.ai-guide-nav-highlight{
  outline:3px solid rgba(255,176,84,.72);
  outline-offset:5px;
  box-shadow:0 0 0 8px rgba(255,176,84,.18),var(--nav-shadow);
}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-save-chat{
  border-color:rgba(122,141,178,.30);
  background:rgba(13,25,45,.92);
  color:rgba(226,234,255,.72);
}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-save-chat:hover{
  border-color:rgba(139,159,255,.52);
  color:#fff;
  background:rgba(24,39,70,.96);
}

/* Registrar refeicao: contraste de estado e confirmacao explicita */
.meal-status-tag,
.today-meal-list .meal-actions .meal-status-tag{
  background:#4F68E4;
  color:#FFFFFF;
}
.meal-log-sheet .meal-log-toggle{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  border-width:2px!important;
  border-style:solid!important;
}
.meal-log-toggle-mark{
  display:none;
  font-size:.8rem;
  line-height:1;
}
.meal-log-toggle.active .meal-log-toggle-mark{
  display:inline-block;
}
.meal-log-sheet .meal-log-toggle.ate.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet .meal-log-toggle.ate.active,
.meal-status-tag.ate,
.today-meal-list .meal-actions .meal-status-tag.ate,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-status-tag.ate,
.outside-review-actions .meal-status-tag.ate.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-actions .meal-status-tag.ate.active{
  border-color:#0B7A56!important;
  background:#0B7A56!important;
  color:#FFFFFF!important;
  box-shadow:0 0 0 3px rgba(11,122,86,.20),0 8px 18px rgba(11,122,86,.22)!important;
}
.meal-log-sheet .meal-log-toggle.skipped:not(.active){
  background:#FFF4E6!important;
}
.meal-log-sheet .meal-log-toggle.skipped.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet .meal-log-toggle.skipped.active,
.meal-status-tag.skipped,
.today-meal-list .meal-actions .meal-status-tag.skipped,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-status-tag.skipped,
.outside-review-actions .meal-status-tag.skipped.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-actions .meal-status-tag.skipped.active{
  border-color:#9A5F0B!important;
  background:#F7A84E!important;
  color:#14213A!important;
  box-shadow:0 0 0 3px rgba(154,95,11,.18),0 8px 18px rgba(154,95,11,.18)!important;
}
.meal-log-sheet .meal-log-status-note{
  margin:0 0 2px!important;
  font-size:.76rem!important;
  font-weight:800!important;
  line-height:1.25!important;
}
.meal-log-sheet .meal-log-status-note.skipped{
  border-color:rgba(154,95,11,.30)!important;
  background:#FFF4E6!important;
  color:#6F3A09!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet .meal-log-status-note{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--meal-log-card-surface)!important;
  color:#DDE5FF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet .meal-log-status-note.ate{
  border-color:rgba(11,122,86,.45)!important;
  background:#12271F!important;
  color:#C7F4DF!important;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet .meal-log-status-note.skipped{
  border-color:rgba(247,168,78,.40)!important;
  background:#2C1E0D!important;
  color:#FFE3BC!important;
}
.meal-log-footer .primary:disabled{
  border:1px solid var(--line)!important;
  background:var(--meal-log-control-surface)!important;
  color:var(--muted)!important;
  box-shadow:none!important;
  cursor:default;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-footer .primary:disabled{
  border-color:rgba(139,160,255,.18)!important;
  background:var(--meal-log-control-surface)!important;
  color:#8C9AB8!important;
}

/* Longitudinal notification center */
.ai-panel-tabs{
  grid-row:2;
  display:none;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px;
  min-height:48px;
  padding:5px;
  border-bottom:1px solid var(--line);
  background:var(--ai-chat-header-surface);
}
.ai-chat{
  bottom:max(8px,var(--safe-bottom));
  height:min(90dvh,820px);
  max-height:calc(100dvh - 16px);
  grid-template-rows:auto auto minmax(0,1fr) auto auto;
  overscroll-behavior:contain;
  touch-action:pan-y;
}
body.ai-chat-open:has(#aiChat:not(.mascot-mode)){
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
body.ai-chat-open:has(#aiChat:not(.mascot-mode)) .screens,
body.ai-chat-open:has(#aiChat:not(.mascot-mode)) .screen.active{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
.ai-chat-head{grid-row:1}
.ai-notification-filters{grid-row:2}
.ai-chat-messages{grid-row:3}
.ai-chat-form{grid-row:4}
.ai-settings{grid-row:6}
.ai-chat-head{
  min-height:48px;
  padding:7px 10px;
}
.ai-title{gap:8px}
.ai-title img{
  width:28px;
  height:28px;
  border-radius:9px;
}
.ai-title .eyebrow{font-size:.56rem}
.ai-title h2{font-size:.98rem}
.ai-clear-chat,
.ai-save-chat{
  min-height:30px;
  padding:0 10px;
  font-size:.62rem;
}
.ai-minimize-chat{
  width:34px;
  height:34px;
  min-height:34px;
}
.ai-chat-form{
  position:relative;
  display:grid;
  grid-template-columns:52px 52px minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  padding:8px 10px calc(8px + var(--safe-bottom));
  overscroll-behavior:contain;
}
.ai-chat-form textarea{
  min-height:42px;
  max-height:74px;
  min-width:0;
  resize:none;
  padding:11px 12px;
  font-size:16px!important;
  line-height:1.25;
  touch-action:manipulation;
}
.ai-chat-form button[type="submit"]{
  min-width:62px;
  min-height:42px;
  padding:0 11px;
  border-radius:999px;
  font-size:.68rem;
}
.ai-footer-round{
  position:relative;
  display:grid;
  place-items:center;
  width:52px;
  min-width:52px;
  height:44px;
  min-height:44px;
  padding:0;
  border:1px solid var(--line);
  border-radius:50%;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(238,244,255,.9));
  color:var(--text);
  box-shadow:0 10px 22px rgba(20,31,66,.12);
}
.ai-footer-round span{
  display:block;
  max-width:46px;
  overflow:hidden;
  color:inherit;
  font-size:.6rem;
  font-weight:950;
  line-height:1.05;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ai-panel-toggle.notification-mode span::before{
  content:"\1F514";
  display:block;
  font-size:1rem;
  line-height:1;
}
.ai-footer-round.active{
  border-color:rgba(94,119,255,.52);
  background:linear-gradient(135deg,#6f83ff,#8fa0ff);
  color:#fff;
  box-shadow:0 12px 26px rgba(86,105,219,.28);
}
.ai-footer-round.provider-ai{
  border-color:rgba(255,187,103,.42);
  background:linear-gradient(135deg,#ffe1b4 0%,#8ea1ff 100%);
  color:#172448;
}
.ai-footer-round.provider-ai span{
  color:#172448;
  text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.ai-footer-round b{
  position:absolute;
  top:-5px;
  right:-5px;
  display:grid;
  place-items:center;
  min-width:17px;
  height:17px;
  padding:0 4px;
  border-radius:999px;
  background:#e25360;
  color:#fff;
  font-size:.56rem;
  font-weight:950;
  line-height:1;
}
.ai-chat-form.notification-mode{
  grid-template-columns:52px 52px minmax(0,1fr);
}
.ai-chat-form.notification-mode textarea,
.ai-chat-form.notification-mode button[type="submit"]{
  display:none;
}
.ai-chat-form.notification-mode:after{
  content:"Notificações";
  min-width:0;
  justify-self:start;
  padding:7px 10px;
  border:1px solid rgba(148,163,211,.28);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:var(--text);
  font-size:.74rem;
  font-weight:900;
  line-height:1;
}
.ai-provider-picker{
  position:absolute;
  left:10px;
  right:10px;
  bottom:calc(100% + 6px);
  z-index:2;
  display:none;
  grid-template-columns:repeat(var(--ai-provider-count,3),minmax(0,1fr));
  gap:7px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--ai-chat-form-surface);
  box-shadow:var(--shadow);
}
.ai-provider-picker.footer-open{
  display:grid;
}
.ai-provider-picker.footer-open button{
  min-width:0;
  min-height:48px;
  justify-content:center;
  text-align:center;
}
.ai-footer-menu{
  position:absolute;
  left:10px;
  right:10px;
  bottom:calc(100% + 6px);
  z-index:3;
  display:none;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--ai-chat-form-surface);
  box-shadow:var(--shadow);
}
.ai-footer-menu.footer-open{
  display:grid;
}
.ai-footer-menu button{
  display:grid;
  place-items:center;
  min-width:0;
  min-height:46px;
  padding:8px 9px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--ai-clear-surface);
  color:var(--text);
  box-shadow:none;
  text-align:center;
}
.ai-footer-menu button b{
  min-width:0;
  overflow:hidden;
  font-size:.72rem;
  font-weight:950;
  line-height:1.05;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ai-footer-menu button.active{
  border-color:rgba(94,119,255,.52);
  background:var(--ai-user-message-surface);
  color:#fff;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-footer-round{
  border-color:rgba(128,148,202,.34);
  background:linear-gradient(180deg,#18264A,#101A34);
  color:#EAF1FF;
  box-shadow:0 12px 26px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.06);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-footer-round span{
  color:#EAF1FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-footer-round.active{
  border-color:rgba(151,169,255,.72);
  background:linear-gradient(135deg,#6078FF,#8195FF);
  color:#FFFFFF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-footer-round.provider-ai{
  border-color:rgba(247,176,94,.5);
  background:linear-gradient(135deg,#2B366A 0%,#F1AE63 100%);
  color:#FFFFFF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-footer-round.provider-ai span{
  color:#FFFFFF;
  text-shadow:0 1px 2px rgba(12,18,36,.55);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-provider-picker,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-footer-menu{
  border-color:rgba(128,148,202,.34);
  background:#101A34;
  box-shadow:0 18px 36px rgba(0,0,0,.38);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-provider-picker button,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-footer-menu button{
  border-color:rgba(128,148,202,.28);
  background:#162443;
  color:#EAF1FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-provider-picker button span{
  color:#AFC0E6;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-provider-picker button.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-footer-menu button.active{
  border-color:rgba(151,169,255,.72);
  background:#627AFF;
  color:#FFFFFF;
}
.ai-chat-messages{
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.ai-panel-tabs button{
  position:relative;
  min-width:0;
  min-height:38px;
  padding:0 10px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  font-size:.76rem;
  font-weight:900;
}
.ai-panel-tabs button.active{
  background:var(--ai-user-message-surface);
  color:#fff;
}
.ai-panel-tabs span{
  display:inline-grid;
  place-items:center;
  min-width:18px;
  height:18px;
  margin-left:5px;
  padding:0 5px;
  border-radius:999px;
  background:#e25360;
  color:#fff;
  font-size:.62rem;
}
.ai-notification-filters{
  display:flex;
  gap:6px;
  min-height:48px;
  padding:7px 10px;
  overflow-x:auto;
  border-bottom:1px solid var(--line);
  background:var(--ai-chat-messages-surface);
  scrollbar-width:none;
}
.ai-notification-filters[hidden]{display:none}
.ai-notification-filters button{
  flex:0 0 auto;
  min-height:32px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--ai-clear-surface);
  color:var(--text);
  font-size:.68rem;
  font-weight:900;
}
.ai-notification-filters button.active{border-color:var(--blue);background:var(--blue);color:#fff}
.ai-notification-list{display:grid;gap:10px;width:100%}
.ai-guide-notification-card{
  display:grid;
  gap:10px;
  width:100%;
  padding:13px;
  border:1px solid var(--line);
  border-left:4px solid var(--blue);
  border-radius:8px;
  background:var(--ai-message-surface);
  color:var(--text);
}
.ai-guide-notification-card.category-action{border-left-color:#e25360}
.ai-guide-notification-card.category-tracking{border-left-color:#d8902f}
.ai-guide-notification-card.category-sync{border-left-color:#66738e}
.ai-guide-notification-card.category-informative{border-left-color:#16956e}
.ai-guide-notification-card > div:first-child{display:grid;gap:5px}
.ai-guide-notification-card small{color:var(--muted);font-size:.64rem;font-weight:900;text-transform:uppercase}
.ai-guide-notification-card b{font-size:.84rem}
.ai-guide-notification-card p{margin:0;font-size:.76rem;line-height:1.45}
.ai-guide-notification-actions{display:flex;gap:7px;flex-wrap:wrap}
.ai-inline-notifications{display:grid;gap:12px;min-width:0;width:100%}
.ai-guide-task-dialog{display:grid;gap:12px;min-width:0}
.ai-guide-task-dialog .ai-msg-choice-row{margin:0;min-width:0}
.ai-guide-task-dialog input{max-width:100%;min-width:0}
.ai-guide-notification-card [hidden]{display:none!important}
.ai-guide-notification-card p{white-space:pre-line}
.planning-balance-modal .recover-swap-block.before{opacity:1}
.planning-balance-modal .recover-preview-list{margin:16px 0}
.planning-balance-modal>h2{min-height:48px;padding-right:48px}
.planning-balance-modal .recover-preview-row header{display:block;padding:10px 0;width:100%;min-width:0}
.planning-balance-modal .recover-preview-row header b{display:block;width:auto;max-width:none}
.planning-balance-modal .recover-item-list.before{text-decoration:line-through}
.planning-balance-modal .planning-confirmation-actions{display:flex;flex-wrap:wrap;gap:8px}
.planning-balance-modal .planning-confirmation-actions button{flex:1 1 160px;min-width:0}
.planning-day-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;width:100%;margin:0 0 12px}
.planning-day-tabs button{min-width:0;min-height:44px;padding:8px 2px;border:1px solid var(--line);border-radius:8px;background:var(--card,#fff);color:var(--text);font-size:12px}
.planning-day-tabs button[aria-selected="true"]{background:var(--blue);color:#fff;border-color:var(--blue)}
.planning-day-tabs button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.planning-day-panel{display:flex;flex-direction:column;gap:12px;min-width:0}
.planning-day-panel[hidden]{display:none!important}
.planning-day-panel .recover-preview-row{width:100%;min-width:0;box-sizing:border-box}
.planning-balance-sheet{display:flex;flex-direction:column;max-height:calc(100dvh - 24px);overflow:hidden!important}
.planning-balance-sheet .planning-balance-modal{display:flex;flex-direction:column;min-height:0;overflow-y:auto;max-height:calc(100dvh - 80px);padding-bottom:0}
.planning-balance-sheet .planning-balance-modal{scrollbar-width:thin;scrollbar-color:var(--blue) transparent;scrollbar-gutter:stable}
.planning-balance-modal::-webkit-scrollbar{width:6px}
.planning-balance-modal::-webkit-scrollbar-track{background:transparent}
.planning-balance-modal::-webkit-scrollbar-thumb{background:var(--blue);border-radius:8px}
.planning-balance-modal::-webkit-scrollbar-button{display:none;width:0;height:0}
.planning-balance-modal .planning-confirmation-actions{position:sticky;bottom:0;z-index:3;background:var(--card,#fff);border-top:1px solid var(--line);padding:12px 0 max(12px,env(safe-area-inset-bottom));margin-top:16px;flex-shrink:0}
.copilot-plan-option .planning-delivery-values{display:block}
.copilot-plan-option .planning-delivery-values>div{display:grid;grid-template-columns:minmax(0,1fr) auto;background:transparent;border-radius:0}
.ai-notification-empty{display:grid;place-items:center;gap:6px;min-height:180px;padding:24px;text-align:center;color:var(--muted)}
.ai-notification-empty b{color:var(--text)}
.current-week-recalibration-sheet .sheet-close{display:none}
.storage-confirm-actions.single{grid-template-columns:1fr}
.diary-custom-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.diary-custom-range label{display:grid;gap:4px;color:var(--muted);font-size:.68rem;font-weight:900}
.diary-custom-range input{min-width:0;min-height:40px}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) :is(.ai-panel-tabs,.ai-notification-filters,.ai-guide-notification-card){border-color:rgba(139,160,255,.2)}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .ai-guide-notification-card{background:rgba(17,31,56,.96)}

/* caramelo espacial: Pulei marcado, preenchimento medio-escuro com texto claro */
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-log-sheet .meal-log-toggle.skipped.active,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .meal-status-tag.skipped,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .today-meal-list .meal-actions .meal-status-tag.skipped,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .outside-review-actions .meal-status-tag.skipped.active{
  border-color:#9E5F14!important;
  background:#9E5F14!important;
  color:#FFFFFF!important;
  box-shadow:0 0 0 3px rgba(247,168,78,.24)!important;
}

/* Mobile shell nav: flush with screen edges like native social apps */
@media(max-width:1099px){
  .bottom-nav{
    right:max(0px,calc((100vw - var(--app-width))/2))!important;
    bottom:0!important;
    left:max(0px,calc((100vw - var(--app-width))/2))!important;
    width:min(100%,var(--app-width))!important;
    margin:0 auto!important;
    padding:7px max(8px,var(--safe-right)) calc(7px + var(--safe-bottom)) max(8px,var(--safe-left))!important;
    border-right:0!important;
    border-bottom:0!important;
    border-left:0!important;
    border-radius:22px 22px 0 0!important;
    visibility:visible;
    transition:transform .22s ease,visibility 0s;
  }
  .bottom-nav button{
    min-height:56px;
  }
  .bottom-nav.nav-scroll-hidden{
    transform:translateY(calc(100% + var(--safe-bottom) + 16px));
    visibility:hidden;
    transition:transform .22s ease,visibility 0s .22s;
  }
  .bottom-nav.nav-scroll-hidden,
  .bottom-nav.nav-scroll-hidden *{pointer-events:none}
  body.tutorial-open .bottom-nav,
  .bottom-nav.ai-guide-nav-highlight{transition:none}
}
@media(max-width:1099px) and (prefers-reduced-motion:reduce){
  .bottom-nav,
  .bottom-nav.nav-scroll-hidden{transition:none}
}

/* Prometheus late guarantees: keep the fire frequency visible over older specific rules */
:root[data-visual-theme="prometheus"] .app{
  background:
    radial-gradient(circle at 18% 0%,rgba(255,122,18,.32),transparent 250px),
    radial-gradient(circle at 88% 18%,rgba(224,36,18,.18),transparent 230px),
    linear-gradient(180deg,#fff0dc 0%,#fff8ef 58%,#fffaf3 100%)!important;
}
:root[data-visual-theme="prometheus"] :is(.home-tabs .active,.bottom-nav .active,.primary,.meal-card .primary,.meal-actions .primary,.ai-chat-form button[type="submit"],.carousel-dots i.active,.carousel-dots button.active){
  border-color:rgba(139,30,8,.24)!important;
  background:linear-gradient(135deg,#ff4b19,#8b1e08)!important;
  color:#fffaf3!important;
  box-shadow:0 14px 28px rgba(139,30,8,.18)!important;
}
:root[data-visual-theme="prometheus"] :is(.home-tabs,.bottom-nav,.app-top,.ai-chat,.ai-chat-head,.ai-chat-form){
  border-color:rgba(243,199,173,.86)!important;
  background:rgba(255,248,239,.96)!important;
}
:root[data-visual-theme="prometheus"] :is(.profile-card,.home-profile-summary,.profile-main-stat,.profile-goal-row div,.plan-range-card,.home-macro-carousel .day-macro,.meal-card,.food-card,.action-card,.today-card,.diary-card,.chart-card,.select-card){
  border-color:rgba(243,199,173,.9)!important;
  background:rgba(255,250,243,.96)!important;
}
:root[data-visual-theme="prometheus"] :is(.meal-icon,.action-icon,.plan-mode-icon,.feature-icon){
  border-color:rgba(255,75,25,.22)!important;
  background:#ffe3d6!important;
  color:#8b1e08!important;
}
:root[data-visual-theme="prometheus"] .ai-fab{
  border-color:rgba(255,122,18,.54)!important;
  background:linear-gradient(145deg,#ff7a12 0%,#e02412 68%,#8b1e08 128%)!important;
  color:#fffaf3!important;
  box-shadow:0 18px 34px rgba(224,36,18,.24)!important;
}

/* Current-week monitoring */
.diary-activity-control{
  display:grid;
  gap:7px;
  margin:12px 0;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--blue) 18%,var(--line));
  border-radius:16px;
  background:color-mix(in srgb,var(--blue-soft) 38%,var(--card) 62%);
}
.diary-activity-control span,
.diary-activity-control small{
  font-size:.76rem;
  font-weight:900;
  color:var(--muted);
}
.diary-activity-control select{
  width:100%;
  min-height:40px;
  border:1px solid color-mix(in srgb,var(--blue) 22%,var(--line));
  border-radius:14px;
  padding:0 12px;
  background:var(--card);
  color:var(--ink);
  font-weight:900;
}
.diary-monitoring-summary{
  display:grid;
  gap:12px;
  margin:12px 0;
  padding:14px;
  border:1px solid color-mix(in srgb,var(--blue) 18%,var(--line));
  border-radius:18px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--blue-soft) 42%,var(--card) 58%),var(--card));
}
.diary-monitoring-summary header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.diary-monitoring-summary.collapsed{
  gap:0;
}
.diary-monitoring-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  min-height:42px;
  padding:0;
  border:0!important;
  border-radius:0;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--ink);
  text-align:left;
  white-space:normal;
  cursor:pointer;
}
.diary-monitoring-toggle span{
  display:grid;
  gap:3px;
  min-width:0;
  overflow:hidden;
}
.diary-monitoring-toggle small{
  color:var(--muted);
  font-size:.75rem;
  font-weight:900;
  line-height:1.25;
  white-space:normal;
  overflow-wrap:anywhere;
}
.diary-monitoring-toggle i{
  display:grid;
  place-items:center;
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:50%;
  background:color-mix(in srgb,var(--blue-soft) 72%,var(--card) 28%);
  color:var(--blue);
  font-style:normal;
  font-size:1.1rem;
  font-weight:900;
}
.diary-monitoring-summary h3{
  margin:0;
  font-size:.92rem;
  line-height:1.2;
  color:var(--ink);
  text-align:left;
  white-space:normal;
  overflow-wrap:anywhere;
}
.diary-monitoring-summary header>button:not(.diary-monitoring-toggle){
  min-width:max-content;
  min-height:36px;
  padding:0 14px;
}
.diary-monitoring-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.diary-monitoring-grid span{
  display:grid;
  gap:2px;
  padding:10px;
  border-radius:14px;
  background:color-mix(in srgb,var(--card) 82%,var(--blue-soft) 18%);
  border:1px solid color-mix(in srgb,var(--blue) 12%,transparent);
}
.metric-kcal .diary-monitoring-grid span:last-child:nth-child(odd){
  grid-column:1/-1;
}
.diary-monitoring-grid.compact span{
  background:color-mix(in srgb,var(--blue-soft) 42%,var(--card) 58%);
}
.diary-monitoring-grid b{
  font-size:1rem;
  color:var(--ink);
}
.diary-monitoring-grid small,
.diary-monitoring-summary footer{
  font-size:.72rem;
  font-weight:900;
  color:var(--muted);
}
.diary-monitoring-summary footer{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
}
.diary-milestone-list{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--card)}
.diary-milestone-list header small{display:block;margin-top:3px;color:var(--muted)}
.diary-milestone-list>div{display:grid;gap:7px}
.diary-milestone-list button{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;width:100%;min-height:44px;padding:9px 11px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);text-align:left}
.diary-milestone-list button span{font-size:11px;color:var(--muted)}
.diary-milestone-list button b{font-size:12px;overflow-wrap:anywhere}
.diary-milestone-list button i{font-size:20px;font-style:normal}
.diary-milestone-events,.diary-milestone-compare{display:grid;gap:8px}
.diary-milestone-events article,.diary-milestone-compare span{display:grid;gap:3px;padding:11px;border:1px solid var(--line);border-radius:7px;background:var(--surface)}
.diary-milestone-events small,.diary-milestone-compare small{color:var(--muted)}
.diary-milestone-compare{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0}
.diary-milestone-compare b{overflow-wrap:anywhere}

/* Match Agora's profile geometry while keeping Dieta's own metrics and copy. */
#planScreen #planPreviewHero{
  display:block!important;
  box-sizing:border-box!important;
  min-height:0!important;
  margin:0!important;
  padding:12px 14px 6px!important;
  border:1px solid transparent!important;
  border-radius:20px!important;
}
#planScreen #planPreviewHero:empty{
  display:none!important;
}
#planScreen #planPreviewHero .diet-profile-summary{
  grid-template-columns:var(--plan-profile-identity,240px) minmax(0,1fr)!important;
  gap:var(--plan-profile-gap,14px)!important;
  align-items:center!important;
  width:auto!important;
  max-width:none!important;
  margin:0 -4px!important;
  padding:0 4px var(--plan-profile-bottom,10px)!important;
}
#planScreen #planPreviewHero .diet-profile-person{
  grid-template-columns:var(--plan-profile-person-columns,104px minmax(116px,1fr))!important;
  column-gap:var(--plan-profile-person-gap,8px)!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}
#planScreen #planPreviewHero .diet-profile-person .hero-avatar{
  width:var(--plan-profile-avatar,96px)!important;
  height:var(--plan-profile-avatar,96px)!important;
}
#planScreen #planPreviewHero .diet-profile-mantra{
  width:100%!important;
  max-width:none!important;
}
#planScreen #planPreviewHero .profile-info-carousel[data-home-carousel="profile"]{
  gap:var(--plan-profile-carousel-gap,12px)!important;
  padding:2px 0 8px!important;
}
#planScreen #planPreviewHero .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
  flex:0 0 var(--profile-card-width,clamp(132px,22vw,176px))!important;
  width:var(--profile-card-width,clamp(132px,22vw,176px))!important;
  min-width:0!important;
  max-width:none!important;
  min-height:104px!important;
  padding:14px 16px!important;
  gap:5px!important;
}
#planScreen #planPreviewHero .profile-info-carousel + .carousel-dots.profile-carousel-dots{
  grid-column:2!important;
  justify-self:end!important;
  align-self:start!important;
  justify-content:flex-end!important;
  width:auto!important;
  min-height:8px!important;
  margin:2px 18px 0 0!important;
  padding:0!important;
}
@media(max-width:759px){
  #planScreen #planPreviewHero{
    --plan-profile-identity:238px;
    --plan-profile-gap:12px;
    --plan-profile-person-columns:118px minmax(108px,1fr);
    --plan-profile-avatar:110px;
    --plan-profile-carousel-gap:10px;
  }
  #planScreen #planPreviewHero .diet-profile-summary{
    margin:0!important;
    padding:0 0 12px!important;
  }
}
@media(max-width:430px){
  #planScreen #planPreviewHero{
    --plan-profile-identity:198px;
    --plan-profile-gap:8px;
    --plan-profile-person-columns:104px minmax(82px,1fr);
    --plan-profile-person-gap:6px;
    --plan-profile-avatar:100px;
  }
}
@media(max-width:374px){
  #planScreen #planPreviewHero{
    --plan-profile-identity:186px;
    --plan-profile-gap:7px;
    --plan-profile-person-columns:96px minmax(78px,1fr);
    --plan-profile-avatar:92px;
  }
  #planScreen #planPreviewHero .profile-info-carousel[data-home-carousel="profile"]{
    --profile-card-width:100%;
  }
  #planScreen #planPreviewHero .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
    grid-template-columns:minmax(0,1fr)!important;
    padding:6px 5px!important;
  }
  #planScreen #planPreviewHero .profile-main-stat :is(b,span,small){
    max-width:100%;
    overflow-wrap:anywhere;
    white-space:normal!important;
  }
}
@media(min-width:1100px){
  #planScreen #planPreviewHero{
    --plan-profile-identity:minmax(220px,280px);
    --plan-profile-gap:18px;
    --plan-profile-person-columns:92px minmax(0,1fr);
    --plan-profile-person-gap:14px;
    --plan-profile-avatar:86px;
    --plan-profile-bottom:0px;
    --plan-profile-carousel-gap:14px;
  }
  #planScreen #planPreviewHero .profile-info-carousel[data-home-carousel="profile"]{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(156px,1fr))!important;
    padding:0!important;
    overflow:visible!important;
    scroll-snap-type:none!important;
  }
  #planScreen #planPreviewHero .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
    width:auto!important;
    min-height:96px!important;
    padding:12px!important;
  }
  #planScreen #planPreviewHero .profile-info-carousel + .carousel-dots.profile-carousel-dots{
    display:none!important;
  }
}
#planScreen .plan-preview-hero :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card){
  margin:0 0 8px!important;
}
#planScreen .plan-preview-hero .diet-profile-summary + .profile-goal-disclosure{
  margin-top:6px!important;
}
#planScreen .plan-preview-hero :is(.profile-goal-disclosure>summary,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary){
  height:24px!important;
  min-height:24px!important;
  margin-left:18px!important;
  gap:7px!important;
  padding:0!important;
}
#homeScreen #homeProfile :is(.profile-goal-disclosure>summary,.menstrual-cycle-card.cycle-source-card>.cycle-source-summary){
  margin-left:10px!important;
}

/* Hide on downward scroll and reveal fully upward. */
.app-top{
  will-change:transform;
}
.app-top.hide{
  pointer-events:none;
}
.app-top:not(.hide){
  pointer-events:auto;
}

/* Dieta > Analise: centered controls and monitoring content. */
#planScreen .plan-analysis-period .diary-start-notice{
  justify-items:center!important;
  align-content:center!important;
  text-align:center!important;
}
#planScreen .plan-analysis-period .diary-analysis-filter-rail.diary-series-controls{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  align-items:center!important;
  gap:8px!important;
  width:min(100%,390px)!important;
  margin-right:auto!important;
  margin-left:auto!important;
  overflow:visible!important;
}
#planScreen .plan-analysis-period .diary-analysis-filter-rail.diary-series-controls button{
  flex:0 0 96px!important;
  min-width:96px!important;
  max-width:104px!important;
  padding:0 8px!important;
  overflow:hidden!important;
  font-size:.6rem!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
#planScreen .plan-analysis-period .diary-analysis-filter-rail.diary-series-controls button:nth-child(6){
  grid-column:auto;
}
#planScreen .plan-analysis-period .diary-period-presets{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,92px))!important;
  justify-content:center!important;
  justify-items:center!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  text-align:center!important;
}
#planScreen .plan-analysis-period .diary-period-presets-title{
  grid-column:1 / -1!important;
}
#planScreen .plan-analysis-period .diary-period-presets button{
  min-width:0!important;
  width:100%!important;
  padding:0 6px!important;
}
#planScreen .plan-analysis-period .diary-layer-toggle,
#planScreen .plan-analysis-period .diary-layer-toggle.metric-food-layers,
#planScreen .plan-analysis-period .diary-layer-toggle.metric-weight-layers{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  align-items:center!important;
  gap:8px!important;
}
#planScreen .plan-analysis-period .diary-layer-toggle.metric-weight-layers{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,94px))!important;
  justify-content:center!important;
  justify-items:center!important;
  width:100%!important;
}
#planScreen .plan-analysis-period .diary-layer-toggle button{
  min-width:0!important;
  width:100%!important;
  max-width:104px!important;
}
#planScreen .plan-analysis-period .diary-monitoring-summary,
#planScreen .plan-analysis-period .diary-monitoring-summary header,
#planScreen .plan-analysis-period .diary-monitoring-toggle,
#planScreen .plan-analysis-period .diary-monitoring-toggle span,
#planScreen .plan-analysis-period .diary-monitoring-summary h3,
#planScreen .plan-analysis-period .diary-monitoring-toggle small{
  text-align:center!important;
}
#planScreen .plan-analysis-period .diary-monitoring-toggle{
  align-items:center!important;
}
#planScreen .plan-analysis-period .diary-monitoring-toggle span{
  justify-items:center!important;
}
#planScreen .plan-analysis-period .diary-monitoring-grid span{
  justify-items:center!important;
  align-content:center!important;
  text-align:center!important;
}
#planScreen .plan-analysis-period .diary-monitoring-summary footer{
  justify-content:center!important;
  text-align:center!important;
}
@media(max-width:430px){
  #planScreen .plan-analysis-period .diary-analysis-filter-rail.diary-series-controls{
    display:flex!important;
    flex-wrap:wrap!important;
    width:100%!important;
    justify-content:center!important;
    gap:7px!important;
  }
  #planScreen .plan-analysis-period .diary-analysis-filter-rail.diary-series-controls button{
    flex:0 0 94px!important;
    min-width:94px!important;
    max-width:102px!important;
    padding:0 7px!important;
  }
  #planScreen .plan-analysis-period .diary-period-presets button{
    min-width:0!important;
  }
  #planScreen .plan-analysis-period .diary-layer-toggle button{
    min-width:0!important;
  }
}

/* Analysis metric selector wins over the historical button-rail cascade. */
#planScreen .plan-analysis-period .diary-analysis-filter-rail.diary-series-controls{
  display:block!important;
  grid-template-columns:none!important;
}
#planScreen .plan-analysis-period .analysis-metric-control,
#planScreen .plan-analysis-period .analysis-metric-select,
#planScreen .plan-analysis-period .analysis-metric-select select{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  box-sizing:border-box!important;
}
#planScreen .plan-analysis-period .analysis-controls-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  justify-items:stretch!important;
  align-items:start!important;
  text-align:left!important;
}

/* Closed mode disclosures share one measured rhythm in Agora and Dieta. */
#homeScreen #homeProfile > :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card):not([open]),
#planScreen #planPreviewHero > :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card):not([open]){
  display:block!important;
  box-sizing:border-box!important;
  height:24px!important;
  min-height:24px!important;
  margin:0 0 5px!important;
  padding:0!important;
  overflow:visible!important;
}
#homeScreen #homeProfile > :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card):not([open]) > summary,
#planScreen #planPreviewHero > :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card):not([open]) > summary{
  box-sizing:border-box!important;
  height:24px!important;
  min-height:24px!important;
  margin:0 0 0 18px!important;
  padding:0!important;
}

/* Agora: leave a small visual breath between the profile metrics and Chronos. */
#homeScreen #homeProfile > .home-profile-summary + .profile-goal-disclosure.profile-goal-disclosure-cronos:not([open]){
  margin-top:4px!important;
}

/* Rhéa cycle refresh — soft phase card and compact check-in, sharing the
   existing cycle state/actions while giving the module a calmer visual home. */
.rhea-card-v2 .rhea-card-head{
  min-height:78px;
  padding-right:94px!important;
}
.rhea-card-v2 .rhea-card-head h3{
  font-size:1.08rem;
  letter-spacing:-.02em;
}
.rhea-card-v2 .rhea-card-head span{
  color:color-mix(in srgb,var(--pink,#E56B92) 42%,var(--muted));
  font-size:.76rem;
  font-weight:800;
}
.rhea-phase-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 92px;
  gap:12px;
  align-items:center;
  min-height:116px;
  padding:13px;
  border:1px solid color-mix(in srgb,var(--pink,#E56B92) 24%,var(--line));
  border-radius:20px;
  background:linear-gradient(135deg,#fff4f4,color-mix(in srgb,var(--pink,#E56B92) 9%,#fff));
  box-shadow:0 12px 26px rgba(206,95,130,.08);
  overflow:hidden;
}
.rhea-phase-hero-copy{display:grid;gap:4px;min-width:0}
.rhea-phase-hero-copy .eyebrow{margin:0;color:var(--pink,#E56B92);font-size:.61rem;font-weight:950;letter-spacing:.1em}
.rhea-phase-hero-copy>b{color:var(--ink);font-size:1.02rem;line-height:1.15}
.rhea-phase-hero-copy>small{color:var(--muted);font-size:.68rem;font-weight:900}
.rhea-phase-hero-copy>p:not(.eyebrow){margin:2px 0 0;color:var(--text);font-size:.73rem;font-weight:750;line-height:1.35}
.rhea-phase-hero-media{width:92px;height:92px;padding:4px;border:1px solid rgba(255,255,255,.86);border-radius:50%;background:rgba(255,255,255,.72);box-shadow:0 8px 18px rgba(206,95,130,.14)}
.rhea-phase-hero-media img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:50% 42%}
.rhea-phase-card{
  display:grid;
  gap:9px;
  padding:13px;
  border:1px solid color-mix(in srgb,var(--pink,#E56B92) 20%,var(--line));
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.94),color-mix(in srgb,var(--pink,#E56B92) 5%,#fff));
}
.rhea-phase-card-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.rhea-phase-card-meta>div{display:grid;gap:3px;min-width:0}
.rhea-phase-card-meta b{color:var(--ink);font-size:.9rem;line-height:1.15}
.rhea-phase-card-meta small{color:var(--muted);font-size:.66rem;font-weight:800;line-height:1.25}
.rhea-phase-card-meta>span{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:color-mix(in srgb,var(--pink,#E56B92) 11%,#fff);color:var(--pink,#E56B92);font-size:.62rem;font-weight:950;text-align:right}
.rhea-phase-card>p{margin:0;color:var(--text);font-size:.74rem;font-weight:780;line-height:1.4}
.rhea-phase-next{color:var(--muted);font-size:.64rem;font-weight:850;line-height:1.2}
.rhea-phase-card .rhea-phase-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:1px}
.rhea-phase-card .rhea-phase-actions button{min-height:36px!important;padding:0 8px!important;border-radius:12px!important;font-size:.61rem!important}
.rhea-phase-card .rhea-phase-actions button:disabled{opacity:.58}
.rhea-checkin-sheet{gap:16px}
.rhea-checkin-hero{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:13px;align-items:center;padding:14px;border:1px solid color-mix(in srgb,var(--pink,#E56B92) 24%,var(--line));border-radius:22px;background:linear-gradient(135deg,#fff1f3,#fffaf4);overflow:hidden}
.rhea-checkin-hero-copy{display:grid;gap:5px;min-width:0}
.rhea-checkin-hero-copy .eyebrow{margin:0;color:var(--pink,#E56B92);font-size:.62rem;font-weight:950;letter-spacing:.1em}
.rhea-checkin-hero-copy h2{margin:0;color:var(--ink);font-size:1.25rem;line-height:1.1;letter-spacing:-.02em}
.rhea-checkin-hero-copy>p:not(.eyebrow){margin:0;color:var(--muted);font-size:.75rem;line-height:1.38}
.rhea-checkin-hero-media{width:104px;height:104px;padding:5px;border:1px solid rgba(255,255,255,.92);border-radius:50%;background:rgba(255,255,255,.76);box-shadow:0 10px 22px rgba(206,95,130,.14)}
.rhea-checkin-hero-media img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:50% 42%}
.rhea-checkin-status{display:grid;grid-template-columns:10px auto minmax(0,1fr);gap:7px;align-items:center;padding:10px 12px;border:1px solid color-mix(in srgb,var(--green,#4A9B70) 26%,var(--line));border-radius:14px;background:color-mix(in srgb,var(--green,#4A9B70) 7%,#fff)}
.rhea-checkin-status-dot{width:9px;height:9px;border-radius:50%;background:var(--green,#4A9B70);box-shadow:0 0 0 4px color-mix(in srgb,var(--green,#4A9B70) 14%,transparent)}
.rhea-checkin-status b{color:var(--ink);font-size:.72rem;white-space:nowrap}
.rhea-checkin-status small{min-width:0;color:var(--muted);font-size:.68rem;font-weight:750;line-height:1.25}
.rhea-checkin-options-heading{display:grid;gap:3px}
.rhea-checkin-options-heading b{color:var(--ink);font-size:.86rem}
.rhea-checkin-options-heading small{color:var(--muted);font-size:.7rem;line-height:1.3}
.rhea-checkin-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.rhea-checkin-options button{grid-template-columns:24px minmax(0,1fr);min-height:74px;padding:10px;border-radius:15px;background:rgba(255,255,255,.86);border-color:color-mix(in srgb,var(--pink,#E56B92) 17%,var(--line));box-shadow:0 8px 18px rgba(80,42,72,.045)}
.rhea-checkin-options button:hover,.rhea-checkin-options button:focus-visible{border-color:color-mix(in srgb,var(--pink,#E56B92) 50%,var(--line));background:color-mix(in srgb,var(--pink,#E56B92) 8%,#fff)}
.rhea-checkin-options .cycle-qa-mark{width:24px;height:24px}
.rhea-checkin-options b{font-size:.76rem;line-height:1.15}
.rhea-checkin-options small{font-size:.64rem;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-card-v2{border-color:rgba(255,148,181,.3)!important;background:linear-gradient(145deg,#18223A,#211D34)!important;color:#F7F9FF}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-card-v2 .rhea-card-head span{color:#FFC4D5!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-phase-hero{border-color:rgba(255,148,181,.32)!important;background:linear-gradient(135deg,#35243B,#1D2D43)!important;box-shadow:none}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-phase-hero-copy .eyebrow{color:#FFADC8!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-phase-hero-copy>b,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-phase-card-meta b{color:#FFF7FB!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-phase-hero-copy>small,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-phase-card-meta small,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-phase-next{color:#C7D4F4!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-phase-hero-copy>p:not(.eyebrow),:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-phase-card>p{color:#E5EAF8!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-phase-card{border-color:rgba(255,148,181,.28)!important;background:linear-gradient(180deg,#202B46,#242139)!important;box-shadow:none}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-phase-card-meta>span{background:rgba(255,148,181,.16);color:#FFC4D5}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-hero{border-color:rgba(255,148,181,.34)!important;background:linear-gradient(135deg,#35243B,#1C2B42)!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-hero-copy .eyebrow{color:#FFADC8!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-hero-copy h2{color:#FFF7FB!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-hero-copy>p:not(.eyebrow),:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-options-heading small{color:#C7D4F4!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-status{border-color:rgba(92,211,157,.32)!important;background:rgba(38,139,99,.14)!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-status b,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-options-heading b{color:#F7F9FF!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-status small{color:#C7D4F4!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-options button{border-color:rgba(255,148,181,.28)!important;background:#172641!important;box-shadow:none}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-options button:hover,:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-options button:focus-visible{border-color:#FFADC8!important;background:#223450!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-options b{color:#F7F9FF!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-options small{color:#C7D4F4!important}
@media(max-width:430px){
  .rhea-phase-hero{grid-template-columns:minmax(0,1fr) 78px;min-height:102px;padding:11px}
  .rhea-phase-hero-media{width:78px;height:78px}
  .rhea-phase-hero-copy>b{font-size:.92rem}
  .rhea-phase-card{padding:11px}
  .rhea-phase-card .rhea-phase-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .rhea-phase-card .rhea-phase-actions button{padding:0 4px!important;font-size:.56rem!important}
  .rhea-checkin-hero{grid-template-columns:minmax(0,1fr) 78px;gap:9px;padding:11px}
  .rhea-checkin-hero-media{width:78px;height:78px}
  .rhea-checkin-hero-copy h2{font-size:1.08rem}
  .rhea-checkin-options{grid-template-columns:1fr}
}

/* Keep the visual focus on one calm Rhéa surface; details remain readable
   without stacking another set of heavy cards below the illustration. */
.rhea-card-v2 .special-priority-panel{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
.rhea-card-v2 .special-priority-panel article{flex:1 1 180px;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:4px 0;border:0;border-radius:0;background:transparent;box-shadow:none}
.rhea-card-v2 .special-priority-panel article.checkin{border:0;background:transparent}
.rhea-card-v2 .special-priority-panel b{font-size:.6rem;white-space:nowrap}
.rhea-card-v2 .special-priority-chips{gap:4px}
.rhea-card-v2 .special-priority-chips span{padding:4px 6px;font-size:.61rem}
.rhea-card-v2 .rhea-phase-card{padding:4px 2px 0;border:0;background:transparent;box-shadow:none}
.rhea-card-v2 .rhea-phase-card-meta>span{padding:4px 7px}
.rhea-checkin-sheet{font-family:var(--font-primary)}
.rhea-checkin-hero{display:block;min-height:170px;padding:14px;border:0;border-radius:22px;background:radial-gradient(circle at 100% 0%,rgba(244,185,122,.48) 0 20%,transparent 21%),radial-gradient(circle at 0% 100%,rgba(183,199,191,.56) 0 18%,transparent 19%),#f9e4e8;box-shadow:none}
.rhea-checkin-hero-media{display:grid;place-items:center;width:142px;height:142px;margin:auto;padding:7px;border:8px solid rgba(255,249,247,.78);border-radius:50%;background:rgba(255,249,247,.54);box-shadow:0 10px 20px rgba(190,111,125,.12)}
.rhea-checkin-hero-media img{width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:50% 42%}
.rhea-checkin-copy{display:grid;gap:5px;padding:2px 3px 0}
.rhea-checkin-copy .eyebrow{margin:0;color:var(--pink,#E56B92);font-size:.63rem;font-weight:950;letter-spacing:.08em}
.rhea-checkin-copy h2{margin:0;color:var(--ink);font-family:var(--display);font-size:1.42rem;line-height:1.05;letter-spacing:-.025em}
.rhea-checkin-copy>p:not(.eyebrow){margin:0;color:var(--muted);font-size:.76rem;line-height:1.38}
.rhea-checkin-status{grid-template-columns:10px auto minmax(0,1fr);padding:4px 3px 0;border:0;background:transparent}
.rhea-checkin-status-dot{width:8px;height:8px;box-shadow:none}
.rhea-checkin-options-heading{padding:2px 3px 0}
.rhea-checkin-options{gap:8px}
.rhea-checkin-options button{min-height:63px;padding:9px;border-radius:13px;box-shadow:none}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-card-v2 .special-priority-panel article{background:transparent}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-card-v2 .rhea-phase-card{background:transparent}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-hero{background:radial-gradient(circle at 100% 0%,rgba(244,185,122,.25) 0 20%,transparent 21%),radial-gradient(circle at 0% 100%,rgba(116,151,168,.28) 0 18%,transparent 19%),#33263B!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-copy h2{color:#FFF7FB!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-checkin-copy>p:not(.eyebrow){color:#C7D4F4!important}
@media(max-width:430px){.rhea-checkin-hero{min-height:148px}.rhea-checkin-hero-media{width:120px;height:120px}.rhea-checkin-copy h2{font-size:1.28rem}}

.rhea-checkin-copy h2{font-weight:700}
.rhea-checkin-options b,.rhea-checkin-options-heading b,.rhea-checkin-status b{font-weight:750}
.rhea-card-v2 .rhea-phase-hero-copy>b,.rhea-card-v2 .rhea-phase-card-meta b{font-weight:780}

/* Rhéa expanded card follows the reference hierarchy: an image-only visual
   block, phase metadata below it, one orientation block, then the action. */
.rhea-card-v2 .rhea-phase-hero{display:grid;grid-template-columns:1fr;gap:9px;min-height:0;padding:7px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.rhea-card-v2 .rhea-phase-hero-media{display:grid;place-items:center;width:100%;height:190px;padding:10px;border:1px solid color-mix(in srgb,var(--pink,#E56B92) 20%,var(--line));border-radius:20px;background:radial-gradient(circle at 100% 0%,rgba(244,185,122,.48) 0 20%,transparent 21%),radial-gradient(circle at 0% 100%,rgba(183,199,191,.56) 0 18%,transparent 19%),#f9e4e8;box-shadow:0 10px 22px rgba(206,95,130,.07);overflow:hidden}
.rhea-card-v2 .rhea-phase-hero-media img{width:min(172px,48%);height:auto;aspect-ratio:1/1;padding:7px;border:8px solid rgba(255,249,247,.82);border-radius:50%;background:rgba(255,249,247,.54);box-shadow:0 10px 20px rgba(190,111,125,.12);object-fit:cover;object-position:50% 42%}
.rhea-card-v2 .rhea-phase-hero-copy{gap:3px;padding:2px 2px 0}
.rhea-card-v2 .rhea-phase-hero-copy .eyebrow{font-size:.6rem}
.rhea-card-v2 .rhea-phase-hero-copy>b{font-size:1.02rem}
.rhea-card-v2 .rhea-phase-hero-copy>small{font-size:.68rem}
.rhea-card-v2 .rhea-phase-card{display:grid;gap:9px;padding:14px;border:1px solid color-mix(in srgb,var(--pink,#E56B92) 22%,var(--line));border-radius:18px;background:linear-gradient(180deg,#fffaf9,color-mix(in srgb,var(--pink,#E56B92) 6%,#fff));box-shadow:0 10px 22px rgba(206,95,130,.06)}
.rhea-orientation-copy{display:grid;gap:4px}
.rhea-orientation-copy h3{margin:0;color:#4a3947;font-family:Georgia,"Times New Roman",serif;font-size:1.12rem;font-weight:700;line-height:1.12;letter-spacing:-.015em}
.rhea-orientation-copy .eyebrow{margin:0;color:var(--pink,#E56B92);font-size:.61rem;font-weight:950;letter-spacing:.08em}
.rhea-orientation-copy>p:not(.eyebrow){margin:0;color:var(--text);font-size:.76rem;font-weight:720;line-height:1.38}
.rhea-orientation-chips{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-start}
.rhea-orientation-chips span{padding:6px 9px;border:1px solid color-mix(in srgb,var(--pink,#E56B92) 18%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--pink,#E56B92) 8%,#fff);color:var(--ink);font-size:.64rem;font-weight:760;line-height:1.1}
.rhea-phase-card .rhea-phase-next{margin:0;color:var(--muted);font-size:.63rem}
.rhea-phase-status{color:var(--muted);font-size:.64rem;font-weight:760;line-height:1.2}
.rhea-phase-card .rhea-phase-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:2px}
.rhea-phase-card .rhea-phase-actions button:first-child{grid-column:1/-1;min-height:42px!important;border:0!important;border-radius:13px!important;background:linear-gradient(135deg,#E36B86,#D95D76)!important;color:#fff!important;box-shadow:0 10px 18px rgba(217,93,118,.18)}
.rhea-phase-card .rhea-phase-actions button:not(:first-child){min-height:34px!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-card-v2 .rhea-phase-hero{background:transparent}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-card-v2 .rhea-phase-hero-media{border-color:rgba(255,148,181,.3)!important;background:linear-gradient(120deg,#33263B,#27334A)!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-card-v2 .rhea-phase-card{border-color:rgba(255,148,181,.26)!important;background:linear-gradient(180deg,#202B46,#242139)!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-orientation-copy>p:not(.eyebrow){color:#E5EAF8!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-orientation-copy h3{color:#FFF7FB!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-orientation-chips span{border-color:rgba(255,148,181,.26)!important;background:rgba(255,148,181,.13)!important;color:#FFF7FB!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-phase-status{color:#C7D4F4!important}
@media(max-width:430px){.rhea-card-v2 .rhea-phase-hero-media{height:112px}.rhea-card-v2 .rhea-phase-card{padding:12px}.rhea-card-v2 .rhea-phase-card .rhea-phase-actions button:first-child{min-height:40px!important}}

.rhea-card-v2 .rhea-phase-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 2px 0}
.rhea-card-v2 .rhea-phase-tag{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:color-mix(in srgb,var(--pink,#E56B92) 12%,#fff);color:var(--pink,#E56B92);font-size:.65rem;font-weight:850;line-height:1}
.rhea-card-v2 .rhea-phase-tag i{width:6px;height:6px;border-radius:50%;background:currentColor}
.rhea-card-v2 .rhea-phase-line>small{color:var(--muted);font-size:.67rem;font-weight:760;white-space:nowrap}
.rhea-card-v2 .rhea-phase-hero-copy>b{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.6rem,6vw,2rem);font-weight:700;letter-spacing:-.02em;line-height:1.05}
.rhea-card-v2 .rhea-phase-hero-copy>small{font-size:.76rem;font-weight:650}
.rhea-card-v2 .rhea-orientation-copy h3{font-size:1.13rem}
.rhea-orientation-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:2px}
.rhea-orientation-tiles>span{display:grid;place-items:center;gap:5px;min-height:62px;padding:8px 5px;border-radius:15px;background:color-mix(in srgb,var(--pink,#E56B92) 5%,#fff);color:var(--pink,#E56B92);text-align:center}
.rhea-orientation-tiles i{display:grid;place-items:center;width:25px;height:25px}
.rhea-orientation-tiles svg{width:22px;height:22px}
.rhea-orientation-tiles b{color:var(--muted);font-size:.64rem;font-weight:750;line-height:1.05}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-card-v2 .rhea-phase-tag{background:rgba(255,148,181,.15);color:#FFB9CF}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-card-v2 .rhea-phase-line>small{color:#C7D4F4!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-orientation-tiles>span{background:rgba(255,148,181,.1);color:#FFB9CF}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-orientation-tiles b{color:#DDE6FF}
@media(max-width:430px){.rhea-card-v2 .rhea-phase-hero-media{height:170px}.rhea-card-v2 .rhea-phase-hero-media img{width:min(160px,52%)}.rhea-orientation-tiles>span{min-height:58px}}

/* Rhéa actions belong to the mode surface, not to the guidance card. The
   rebalance sheet carries the cycle-change option so one primary action stays
   visually dominant without losing the existing date flow. */
.rhea-mode-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(8.5rem,auto);gap:8px;margin:10px 0 0}
.rhea-mode-actions button{min-height:42px!important;padding:0 12px!important;border-radius:13px!important;font-size:.66rem!important}
.rhea-mode-actions button:first-child{border:0!important;background:linear-gradient(135deg,#E36B86,#D95D76)!important;color:#fff!important;box-shadow:0 10px 18px rgba(217,93,118,.18)}
.rhea-mode-actions button:first-child:disabled{opacity:.56;box-shadow:none}
.rhea-mode-actions .rhea-start-action{border:1px solid color-mix(in srgb,var(--pink,#E56B92) 18%,var(--line));background:color-mix(in srgb,var(--pink,#E56B92) 6%,#fff);color:var(--ink)}
.rhea-rebalance-cycle-option{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--pink,#E56B92) 18%,var(--line));border-radius:14px;background:color-mix(in srgb,var(--pink,#E56B92) 4%,#fff)}
.rhea-rebalance-cycle-option>div{display:grid;gap:3px;min-width:0}
.rhea-rebalance-cycle-option b{color:var(--ink);font-size:.7rem;line-height:1.15}
.rhea-rebalance-cycle-option small{color:var(--muted);font-size:.64rem;line-height:1.3}
.rhea-rebalance-cycle-option button{flex:0 0 auto;min-height:34px;padding:0 10px;border-radius:10px;font-size:.62rem}
.rhea-orientation-chips span:nth-child(1){border-color:rgba(74,155,112,.25);background:#E5F4ED;color:#34785E}
.rhea-orientation-chips span:nth-child(2){border-color:rgba(194,139,35,.24);background:#FFF0CF;color:#966A16}
.rhea-orientation-chips span:nth-child(3){border-color:rgba(117,99,185,.22);background:#ECE8FB;color:#63539A}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-mode-actions .rhea-start-action{border-color:rgba(255,148,181,.26);background:rgba(255,148,181,.12);color:#FFF7FB}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-rebalance-cycle-option{border-color:rgba(255,148,181,.24);background:rgba(255,148,181,.08)}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-rebalance-cycle-option b{color:#FFF7FB}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-rebalance-cycle-option small{color:#C7D4F4}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-orientation-chips span:nth-child(1){border-color:rgba(117,220,169,.3);background:rgba(117,220,169,.15);color:#B9F0D5}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-orientation-chips span:nth-child(2){border-color:rgba(255,202,105,.3);background:rgba(255,202,105,.15);color:#FFE3A4}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rhea-orientation-chips span:nth-child(3){border-color:rgba(188,174,255,.3);background:rgba(188,174,255,.16);color:#DDD5FF}
@media(max-width:430px){.rhea-mode-actions{grid-template-columns:minmax(0,1fr) minmax(7.5rem,auto);gap:6px}.rhea-mode-actions button{padding:0 8px!important;font-size:.6rem!important}.rhea-rebalance-cycle-option{align-items:flex-start}.rhea-rebalance-cycle-option button{margin-top:1px}}

/* Final rhythm pass: the two mode actions share the same visual weight, while
   the guidance title/body get enough breathing room to read as one thought. */
.rhea-mode-actions{grid-template-columns:repeat(2,minmax(0,1fr));}
.rhea-card-v2 .rhea-phase-card{gap:12px;padding:16px}
.rhea-orientation-copy{gap:7px}
.rhea-orientation-copy h3{font-size:1.24rem;line-height:1.12}
.rhea-orientation-copy>p:not(.eyebrow){font-size:.82rem;line-height:1.45}
.rhea-card-v2 .rhea-phase-hero-media img{width:min(172px,48%);border-width:4px;justify-self:center}
@media(max-width:430px){.rhea-card-v2 .rhea-phase-card{padding:15px}.rhea-mode-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Rebalance is intentionally compact: its phase status is already visible
   on the Rhéa card, so the modal can move straight from title to choices. */
.rhea-checkin-sheet.rebalance{gap:10px}

/* Center the metric chevron against the trigger's content box. */
#planScreen .plan-analysis-period .analysis-metric-trigger i{
  display:grid!important;
  place-items:center!important;
  align-self:center!important;
  width:1.1em;
  height:1.1em;
  margin:0!important;
  line-height:1!important;
  transform:translateY(0)!important;
}
#planScreen .plan-analysis-period .analysis-metric-trigger[aria-expanded="true"] i{transform:rotate(180deg)!important}

/* Keep the open list above the chart and inside the mobile safe area. */
#planScreen .plan-analysis-period .analysis-metric-select{z-index:30!important}
#planScreen .plan-analysis-period .analysis-metric-menu{z-index:40!important;pointer-events:auto}
@media(max-width:600px){
  #planScreen .plan-analysis-period .analysis-metric-menu{max-height:180px}
}

/* Centered finishing layer must remain last in the stylesheet. */
#planScreen .plan-analysis-period .analysis-controls-head{
  justify-items:center!important;
  text-align:center!important;
}
#planScreen .plan-analysis-period .analysis-controls-head>div{
  justify-items:center!important;
  text-align:center!important;
}
#planScreen .plan-analysis-period .analysis-controls-head h2,
#planScreen .plan-analysis-period .analysis-metric-control>span:first-child{
  text-align:center!important;
}
#planScreen .plan-analysis-period .analysis-metric-select select{
  text-align:center!important;
  text-align-last:center!important;
}
#planScreen .plan-analysis-period .diary-period-presets{
  justify-content:center!important;
}
#planScreen .plan-analysis-period .diary-layer-toggle{
  justify-content:center!important;
}
#planScreen .analysis-chart-stage>header{
  justify-content:center!important;
  text-align:center!important;
}
#planScreen .analysis-chart-stage>header>div{
  justify-items:center!important;
}

/* Presentation polish: a calm, centered control stack keeps attention on
   the chart while preserving the existing semantics and theme tokens. */
#planScreen .plan-analysis-period .analysis-controls-head{
  justify-items:center!important;
  text-align:center!important;
  padding-inline:8px;
}
#planScreen .plan-analysis-period .analysis-controls-head>div{
  justify-items:center;
  text-align:center;
}
#planScreen .plan-analysis-period .analysis-controls-head h2{
  text-align:center!important;
  font-size:1.2rem!important;
}
#planScreen .plan-analysis-period .analysis-controls-head small{
  font-size:.7rem;
}
#planScreen .plan-analysis-period .analysis-metric-control{
  gap:8px!important;
  text-align:center;
}
#planScreen .plan-analysis-period .analysis-metric-control>span:first-child{
  color:var(--blue-deep);
  font-size:.63rem;
  letter-spacing:.08em;
  text-align:center;
}
#planScreen .plan-analysis-period .analysis-metric-select select{
  border-radius:16px!important;
  background:linear-gradient(135deg,var(--blue-soft),var(--diary-control-surface))!important;
  box-shadow:0 8px 22px -18px color-mix(in srgb,var(--blue) 80%,transparent);
  text-align:center;
  text-align-last:center;
}
#planScreen .plan-analysis-period .diary-period-presets{
  justify-content:center!important;
  gap:8px!important;
  padding-block:2px 4px!important;
}
#planScreen .plan-analysis-period .diary-period-presets button{
  min-width:104px!important;
  border-radius:999px!important;
  font-weight:900;
  transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease;
}
#planScreen .plan-analysis-period .diary-period-presets button:hover{
  transform:translateY(-1px);
  box-shadow:0 7px 16px -12px color-mix(in srgb,var(--blue) 70%,transparent);
}
#planScreen .plan-analysis-period .diary-period-presets button.active{
  box-shadow:0 9px 18px -12px color-mix(in srgb,var(--blue) 85%,transparent);
}
#planScreen .plan-analysis-period .diary-layer-toggle{
  justify-content:center!important;
  gap:8px!important;
  padding-inline:4px;
}
#planScreen .plan-analysis-period .diary-layer-toggle button{
  min-width:108px!important;
  border-radius:999px!important;
  font-weight:900;
  transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease;
}
#planScreen .plan-analysis-period .diary-layer-toggle button:hover{
  transform:translateY(-1px);
}
#planScreen .plan-analysis-period .diary-layer-toggle button.active{
  box-shadow:0 8px 18px -13px color-mix(in srgb,var(--blue) 80%,transparent);
}
#planScreen .analysis-chart-stage>header{
  justify-content:center!important;
  text-align:center;
}
#planScreen .analysis-chart-stage>header>div{
  display:grid;
  justify-items:center;
}
#planScreen .analysis-chart-stage>header .eyebrow{
  letter-spacing:.08em;
}

@media(max-width:600px){
  #planScreen .plan-analysis-period .diary-period-presets{
    justify-content:center!important;
  }
  #planScreen .plan-analysis-period .diary-period-presets button{
    min-width:0!important;
    flex:1 1 0!important;
  }
  #planScreen .plan-analysis-period .diary-layer-toggle{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #planScreen .plan-analysis-period .diary-layer-toggle.metric-weight-layers{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  #planScreen .plan-analysis-period .diary-layer-toggle button{
    width:100%!important;
    min-width:0!important;
  }
}

/* Final Analysis cascade. Keep the DOM and visual order aligned. */
#planScreen .plan-analysis-period .diary-glass-panel{
  display:grid!important;
  gap:14px!important;
}
#planScreen .analysis-controls-head{
  display:grid;
  gap:4px;
  text-align:left;
}
#planScreen .analysis-controls-head h2{
  margin:0;
  font-size:1.08rem;
  line-height:1.25;
  letter-spacing:0;
}
#planScreen .plan-analysis-period .analysis-controls-head{order:0!important}
#planScreen .plan-analysis-period .diary-series-controls{order:1!important}
#planScreen .plan-analysis-period .diary-period-presets{order:2!important}
#planScreen .plan-analysis-period .diary-layer-toggle{order:3!important}
#planScreen .plan-analysis-period .analysis-chart-stage{order:4!important}
#planScreen .analysis-chart-stage{
  min-width:0;
  width:100%;
}

/* Diario > Analise: compact metric choice and chart-first hierarchy.
   The shared chart DOM keeps the selected frequency tokens. */
#planScreen .plan-analysis-period .analysis-controls-head{
  display:flex!important;
  align-items:end;
  justify-content:space-between;
  gap:14px;
  padding:2px 2px 0;
}
#planScreen .plan-analysis-period .analysis-controls-head>div{
  display:grid;
  gap:3px;
}
#planScreen .plan-analysis-period .analysis-controls-head small{
  color:var(--muted);
  font-size:.68rem;
  font-weight:800;
}
#planScreen .plan-analysis-period .diary-analysis-filter-rail.diary-series-controls{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:11px!important;
  overflow:visible!important;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--diary-control-muted-surface);
}
#planScreen .analysis-metric-control{
  display:grid;
  gap:7px;
  width:100%;
  color:var(--muted);
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.035em;
  text-transform:uppercase;
}
#planScreen .analysis-metric-select{
  position:relative;
  display:block;
  width:100%;
}
#planScreen .analysis-metric-select select{
  width:100%;
  min-height:48px;
  padding:0 42px 0 14px;
  appearance:none;
  border:1px solid color-mix(in srgb,var(--blue) 34%,var(--line));
  border-radius:14px;
  outline:none;
  background:var(--blue-soft);
  color:var(--ink);
  font:900 .82rem/1 var(--font-primary);
}
#planScreen .analysis-metric-select select:focus-visible{
  border-color:var(--blue);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 18%,transparent);
}
#planScreen .analysis-metric-select i{
  position:absolute;
  top:50%;
  right:15px;
  transform:translateY(-54%);
  color:var(--blue-deep);
  font-size:1rem;
  font-style:normal;
  font-weight:900;
  pointer-events:none;
}
#planScreen .plan-analysis-period .diary-period-presets{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  width:100%!important;
  padding:0 0 2px!important;
  overflow-x:auto;
  scrollbar-width:none;
  background:transparent!important;
}
#planScreen .plan-analysis-period .diary-period-presets::-webkit-scrollbar{display:none}
#planScreen .plan-analysis-period .diary-period-presets-title{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
#planScreen .plan-analysis-period .diary-period-presets button{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:max-content!important;
  min-height:38px!important;
  padding:0 13px!important;
  border-radius:12px!important;
  font-size:.66rem!important;
}
#planScreen .analysis-chart-stage{
  display:grid;
  gap:11px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--diary-card-surface);
  box-shadow:0 18px 48px -34px color-mix(in srgb,var(--blue) 45%,transparent);
}
#planScreen .analysis-chart-stage>header{
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:12px;
}
#planScreen .analysis-chart-stage>header h3{
  margin:2px 0 0;
  color:var(--ink);
  font-size:1rem;
  line-height:1.2;
}
#planScreen .analysis-chart-stage>header .eyebrow{
  color:var(--blue-deep);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .plan-analysis-period .diary-analysis-filter-rail.diary-series-controls,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .analysis-chart-stage{
  border-color:rgba(139,160,255,.2);
  background:var(--diary-chart-surface);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .analysis-metric-select select{
  border-color:rgba(139,160,255,.3);
  background:#172845;
  color:#F7F9FF;
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #planScreen .analysis-metric-select i{
  color:#AAB8FF;
}


@media(max-width:600px){
  #planScreen .plan-analysis-period .analysis-controls-head{
    align-items:start;
  }
  #planScreen .plan-analysis-period .diary-analysis-filter-rail.diary-series-controls{
    display:block!important;
    padding:10px!important;
  }
  #planScreen .plan-analysis-period .diary-period-presets{
    display:flex!important;
    justify-content:flex-start!important;
    padding:0 0 2px!important;
  }
  #planScreen .plan-analysis-period .diary-period-presets button{
    min-height:38px!important;
    padding:0 12px!important;
    font-size:.64rem!important;
  }
  #planScreen .analysis-chart-stage{
    padding:11px 7px 10px;
  }
}

/* Final visual pass from the mobile review: keep the analysis heading and
   metric control aligned to the same reading column in both interfaces. */
#planScreen .plan-analysis-period .analysis-controls-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:start!important;
  justify-items:stretch!important;
  gap:3px!important;
  text-align:left!important;
}
#planScreen .plan-analysis-period .analysis-controls-head>div{
  min-width:0;
}
#planScreen .plan-analysis-period .analysis-controls-head h2{
  text-align:left!important;
}
#planScreen .plan-analysis-period .diary-analysis-filter-rail.diary-series-controls{
  box-sizing:border-box!important;
}
#planScreen .plan-analysis-period .analysis-metric-control{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  min-width:0!important;
}
#planScreen .plan-analysis-period .analysis-metric-select{
  display:block!important;
  width:100%!important;
  min-width:0!important;
}
#planScreen .plan-analysis-period .analysis-metric-select select{
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
}

#planScreen .analysis-chart-stage .diary-line-chart,
#planScreen .analysis-chart-stage .diary-chart{
  margin:0;
}
#planAnalysisPanel > .analysis-fixed-report{
  margin-top:18px;
}
#planScreen .plan-analysis-period .diary-analysis-filter-rail.diary-series-controls{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(112px,1fr))!important;
  justify-content:stretch!important;
  gap:8px!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  overflow:visible!important;
}
#planScreen .plan-analysis-period .diary-analysis-filter-rail.diary-series-controls button{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:44px!important;
  padding:8px 10px!important;
  font-size:.72rem!important;
  line-height:1.2!important;
  letter-spacing:0!important;
  white-space:normal!important;
  text-overflow:clip!important;
}
@media(max-width:600px){
  #planScreen .plan-analysis-period .diary-analysis-filter-rail.diary-series-controls{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #planScreen .plan-analysis-period .diary-analysis-filter-rail.diary-series-controls button{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    flex:none!important;
  }
}

/* Compact expandable Analysis reports. */
#planAnalysisPanel .analysis-report-sections{
  display:grid;
  grid-template-columns:1fr;
}
#planAnalysisPanel .analysis-report-section,
#planAnalysisPanel .analysis-report-section:nth-child(odd),
#planAnalysisPanel .analysis-report-section:last-child{
  grid-column:1;
  padding:0;
  border-right:0;
  border-bottom:1px solid rgba(65,82,126,.12);
}
#planAnalysisPanel .analysis-report-section:last-child{
  border-bottom:0;
}
#planAnalysisPanel .analysis-report-toggle{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 24px;
  align-items:center;
  gap:11px;
  width:100%;
  min-height:76px;
  padding:13px 16px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--ink);
  text-align:left;
}
#planAnalysisPanel .analysis-report-toggle:hover,
#planAnalysisPanel .analysis-report-toggle:focus-visible{
  background:rgba(87,117,245,.06);
}
#planAnalysisPanel .analysis-report-index{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:var(--ink);
  color:#fff;
  font-size:.68rem;
  font-weight:900;
}
#planAnalysisPanel [data-analysis-report-section="now"] .analysis-report-index{
  background:var(--blue);
  font-size:.9rem;
}
#planAnalysisPanel .analysis-report-copy{
  display:grid;
  min-width:0;
  gap:4px;
}
#planAnalysisPanel .analysis-report-copy h3{
  margin:0;
  font-size:.92rem;
  line-height:1.2;
  letter-spacing:0;
}
#planAnalysisPanel .analysis-report-copy small{
  color:var(--muted);
  font-size:.72rem;
  font-weight:700;
  line-height:1.35;
}
#planAnalysisPanel .analysis-planning-path{
  display:block;
  margin-top:6px;
  font-size:.8rem;
  font-weight:600;
  line-height:1.4;
  overflow-wrap:anywhere;
  color:var(--muted);
}
#planAnalysisPanel .analysis-report-section.open .analysis-report-copy small{
  display:none;
}
#planAnalysisPanel .analysis-report-toggle>i{
  color:var(--blue-deep);
  font-size:1.1rem;
  font-style:normal;
  font-weight:900;
  text-align:center;
}
#planAnalysisPanel .analysis-report-details{
  margin:0;
  padding:0 16px 14px 61px;
}
#planAnalysisPanel .analysis-report-details[hidden]{
  display:none;
}
#planAnalysisPanel .analysis-report-details>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(96px,.8fr);
  gap:10px;
  align-items:baseline;
  padding:9px 0;
  border-top:1px solid rgba(65,82,126,.09);
}
#planAnalysisPanel .analysis-report-details dt{
  color:var(--muted);
  font-size:.75rem;
  line-height:1.3;
}
#planAnalysisPanel .analysis-report-details dd{
  margin:0;
  color:var(--ink);
  font-size:.82rem;
  font-weight:900;
  line-height:1.3;
  text-align:right;
}
@media(max-width:430px){
  #planAnalysisPanel .analysis-fixed-report-head{
    padding:16px 14px 13px;
  }
  #planAnalysisPanel .analysis-report-toggle{
    grid-template-columns:32px minmax(0,1fr) 20px;
    min-height:72px;
    padding:12px 13px;
  }
  #planAnalysisPanel .analysis-report-details{
    padding:0 13px 13px;
  }
}

/* Chat footer after the notifications selector was removed. */
.ai-chat-form{
  grid-template-columns:52px minmax(0,1fr) auto;
}
.ai-chat-form .ai-provider-toggle{
  grid-column:1;
}
.ai-chat-form textarea{
  grid-column:2;
  width:100%;
  min-width:0;
  overflow-y:auto;
}
.ai-chat-form button[type="submit"]{
  grid-column:3;
  width:auto;
  min-width:72px;
}
.ai-chat-form>[hidden]{
  display:none!important;
}

/* Keep the existing Copilot hit area and notification overlays. */
#aiFab{
  width:62px;
  height:62px;
  background:#f7d1ad var(--copilot-avatar,url("/osyra-avatar-v15-math.png?v=20260905-2")) center/104% no-repeat!important;
  border-color:rgba(118,137,222,.45);
}
#aiFab>b{
  font-size:0;
  color:transparent;
  pointer-events:none;
}
#aiFab>span:empty{display:none}
#aiFab.first-access-featured::before{
  content:"Comece pelo Copiloto";
  position:absolute;
  top:calc(100% + 7px);
  left:50%;
  width:max-content;
  max-width:190px;
  padding:6px 10px;
  transform:translateX(-50%);
  border:1px solid color-mix(in srgb,var(--blue) 22%,var(--line));
  border-radius:999px;
  background:color-mix(in srgb,var(--surface) 94%,var(--blue-soft) 6%);
  color:var(--ink);
  box-shadow:0 8px 20px rgba(41,61,102,.10);
  font-size:.68rem;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  pointer-events:none;
}
.copilot-avatar-trigger{width:34px;height:34px;min-height:34px;padding:2px;border:1px solid var(--line);border-radius:50%;background:transparent;overflow:hidden}
.copilot-avatar-trigger img{width:100%;height:100%;object-fit:cover;border-radius:50%;pointer-events:none}
.copilot-avatar-picker{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 48px);margin:auto;padding:20px;border:1px solid var(--line);border-radius:8px;background:var(--panel,#fff);color:var(--text,#17364d);overflow:auto}
.copilot-avatar-picker::backdrop{background:#141c3866;backdrop-filter:blur(5px)}
.copilot-avatar-picker header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.copilot-avatar-picker h2{margin:0;font-size:18px}
.copilot-avatar-close{width:32px;min-height:32px;padding:0;font-size:24px;background:transparent;color:inherit}
.copilot-avatar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.copilot-avatar-grid button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 4px;border:2px solid transparent;border-radius:8px;background:transparent;color:inherit;min-width:0}
.copilot-avatar-grid button[aria-pressed="true"]{border-color:#6074dd;background:#6074dd15}
.copilot-avatar-grid img{width:80px;max-width:100%;aspect-ratio:1;object-fit:cover;border-radius:50%}
.copilot-avatar-grid span{font-size:12px;line-height:1.3;min-height:32px;overflow-wrap:anywhere}

/* Planning surfaces must not inherit light-only fallback backgrounds. */
:root:is([data-theme="dark"],:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) .copilot-plan-option dl div,
:root:is([data-theme="dark"],:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) .copilot-avatar-picker{
  background:#19253d;
  color:#f4f6fc;
  border-color:#354566;
}
:root:is([data-theme="dark"],:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) #planAnalysisPanel .analysis-fixed-report{
  background:#101a2e;
  border-color:#354566;
}
:root:is([data-theme="dark"],:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) #planAnalysisPanel .analysis-fixed-report-head{
  background:#19253d;
  border-color:#354566;
}
:root:is([data-theme="dark"],:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) #planAnalysisPanel .analysis-report-section{
  background:transparent;
  border-color:#354566;
}
:root:is([data-theme="dark"],:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) #planAnalysisPanel .analysis-report-details>div{border-color:#354566}
:root:is([data-theme="dark"],:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) #planAnalysisPanel .analysis-report-index{background:#283958;color:#f4f6fc}
:root:is([data-theme="dark"],:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) .copilot-plan-option dt,
:root:is([data-theme="dark"],:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) #planAnalysisPanel .analysis-fixed-report p,
:root:is([data-theme="dark"],:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) #planAnalysisPanel .analysis-report-details dt,
:root:is([data-theme="dark"],:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) #planAnalysisPanel .analysis-report-copy small{color:#bdcbe3}
:root:is([data-theme="dark"],:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) .copilot-plan-option dd,
:root:is([data-theme="dark"],:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) #planAnalysisPanel .analysis-fixed-report h2,
:root:is([data-theme="dark"],:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) #planAnalysisPanel .analysis-fixed-report h3,
:root:is([data-theme="dark"],:is([data-visual-theme="dark"],[data-visual-theme="osyra"])) #planAnalysisPanel .analysis-report-details dd{color:#f4f6fc}
.food-portion-policy{min-width:0;margin-top:12px}
.food-portion-policy .grid2{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:10px}
.food-portion-policy label{min-width:0}
.food-portion-policy input,.food-portion-policy select{min-width:0;max-width:100%;width:100%;box-sizing:border-box;font-size:13px}
.food-portion-policy label>span{white-space:normal;overflow-wrap:anywhere}
#profileForm .profile-safety-note{grid-column:1/-1;min-width:0;width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.planning-delivery{min-width:0}
.planning-delivery h3{margin:0 0 8px;font-size:14px;line-height:1.4;color:var(--ink)}
.planning-delivery-values{margin:0;font-variant-numeric:tabular-nums}
.planning-delivery-values>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.planning-delivery-values dt{min-width:0;font-size:13px;line-height:1.45;color:var(--muted)}
.planning-delivery-values dd{margin:0;font-size:14px;font-weight:700;color:var(--ink);text-align:right;overflow-wrap:anywhere}
.planning-delivery-values .planning-delivery-actual dt,.planning-delivery-values .planning-delivery-actual dd{font-weight:800;color:var(--blue)}
.planning-delivery-note{margin:12px 0 0;font-size:12px;line-height:1.55;color:var(--muted);overflow-wrap:anywhere}
.ai-approved-tag{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border:1px solid #24835c;border-radius:4px;background:#e8f7ef;color:#17623f;font-size:12px;font-weight:700;margin-top:6px}
.ai-approved-tag::before{content:"\2713"}
#aiChat .ai-approved-tag{color:#17623f!important}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #aiChat .ai-approved-tag{background:#163f32;color:#baf2d2!important;border-color:#5ab98a}
.ai-archived-conversation{padding:12px 0;border-bottom:1px solid var(--line,#d5dceb)}
.ai-archived-conversation p{white-space:pre-wrap;overflow-wrap:anywhere}
#aiNotificationFilters{flex-wrap:wrap}

/* Bound every chat track to the visible viewport, including the iOS keyboard. */
#aiChat{
  --ai-panel-height:min(820px,calc(var(--ai-viewport-height,100dvh) - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));
  top:calc(var(--ai-viewport-top,0px) + var(--ai-viewport-height,100dvh) - var(--ai-panel-height) - max(8px,env(safe-area-inset-bottom,0px)));
  bottom:auto;
  height:var(--ai-panel-height);
  max-height:none;
  min-width:0;
  grid-template-columns:minmax(0,1fr);
  border-radius:20px;
}
#aiChat>*{min-width:0}
#aiChat [hidden]{display:none!important}
#aiChat .ai-chat-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  padding:12px 14px;
}
#aiChat .ai-title{grid-column:1;grid-row:1;min-width:0;gap:10px}
#aiChat .ai-title .copilot-avatar-trigger{width:44px;height:44px;min-height:44px;flex:0 0 44px}
#aiChat .ai-title img{width:100%;height:100%;border-radius:50%;object-fit:cover}
#aiChat .ai-head-actions{display:flex;align-items:center;gap:4px;grid-column:2;grid-row:1}
#aiChat .ai-head-actions>[data-ai-close]{
  grid-column:3;
  grid-row:1;
  justify-self:end;
  width:44px;
  height:44px;
  min-height:44px;
  margin:0;
}
#aiChat .ai-chat-messages{min-width:0;overflow-x:hidden;overscroll-behavior:contain}
#aiChat .ai-msg{min-width:0;overflow-wrap:anywhere}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #aiChat .ai-msg.user{background:var(--blue-soft);color:var(--text)}
#aiChat .ai-chat-form{
  grid-template-columns:minmax(0,1fr) 44px;
  gap:8px;
  padding:12px;
  margin:0 12px 12px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--ai-chat-form-surface);
}
#aiChat .ai-provider-toggle{
  grid-column:1;
  grid-row:2;
  justify-self:start;
  width:auto;
  min-width:0;
  height:36px;
  min-height:36px;
  padding:0 10px;
  display:flex;
  gap:7px;
  background:transparent;
  border:0;
  color:var(--text);
  box-shadow:none;
  border-radius:8px;
}
#aiChat .ai-provider-toggle span{color:inherit;text-shadow:none;font-size:12px;font-weight:600}
#aiChat .ai-provider-toggle::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-3px}
#aiChat .ai-chat-form textarea{grid-column:1/-1;grid-row:1;min-height:52px;max-height:120px;padding:8px 6px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--text);font-weight:400;line-height:1.5}
#aiChat .ai-chat-form textarea::placeholder{font-weight:400;color:var(--muted)}
#aiChat .ai-chat-form:focus-within{border-color:var(--blue)}
#aiChat .ai-chat-form button[type="submit"]{grid-column:2;grid-row:2;width:40px;height:40px;min-width:0;min-height:40px;padding:0;justify-self:end;border-radius:50%;display:grid;place-items:center}
#aiChat .ai-ui-icon{display:block;width:20px;height:20px;background:currentColor;mask:center/contain no-repeat}
#aiChat .ai-menu-icon{mask-image:url("/assets/icons/chat-menu.svg")}
#aiChat .ai-send-icon{mask-image:url("/assets/icons/chat-send.svg")}
#aiChat .ai-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#aiChat .ai-history-menu{position:relative;display:block;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
#aiChat .ai-history-menu>summary{display:grid;place-items:center;width:40px;height:44px;padding:0;list-style:none;border:0;border-radius:8px;color:var(--muted);cursor:pointer}
#aiChat .ai-history-menu>summary::after{display:none}
#aiChat .ai-history-menu>summary::-webkit-details-marker{display:none}
#aiChat .ai-history-menu>summary:hover,#aiChat .ai-provider-toggle:hover{background:var(--blue-soft)}
#aiChat .ai-history-actions{position:absolute;right:0;top:calc(100% + 8px);z-index:10;display:grid;width:210px;padding:6px;border:1px solid var(--line);border-radius:8px;background:var(--ai-chat-header-surface);box-shadow:var(--shadow)}
#aiChat .ai-history-actions button{display:block;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:var(--text);box-shadow:none;text-align:left;font-size:13px;font-weight:500}
#aiChat .ai-history-actions button:hover{background:var(--blue-soft)}
#aiChat .ai-head-actions>[data-ai-close]{border:0;background:transparent;box-shadow:none;color:var(--muted)}
#aiChat .ai-chat-messages{padding:20px 16px;gap:16px}
#aiChat .ai-msg{width:fit-content;max-width:92%;padding:16px 18px;border:0;border-radius:24px;background:var(--ai-message-surface);box-shadow:none;font-size:14px;font-weight:400;line-height:1.7}
#aiChat .ai-msg.user{max-width:86%;background:var(--ai-user-message-surface)}
#aiChat .ai-msg-choice-row{gap:8px;margin-top:14px}
#aiChat .ai-msg-choice-row button{min-height:42px;border-radius:8px;font-size:13px;font-weight:600;white-space:normal}
#aiChat :is(summary,button):focus-visible{outline:2px solid var(--blue);outline-offset:2px}
:root #aiChat #aiInput{background:transparent!important;font-weight:400!important}
:root #aiChat #aiInput::placeholder{font-weight:400!important}
:root #aiChat .ai-msg>p{font-size:15px;font-weight:400!important;line-height:1.65;text-shadow:none}
:root[data-visual-theme="osyra"] #aiChat .ai-chat-messages{background:var(--ai-chat-surface)}
:root[data-visual-theme="osyra"] #aiChat .ai-msg.assistant{background:var(--ai-chat-messages-surface)}

.copilot-avatar-classic{
  display:grid;
  place-items:center;
  border-radius:50%;
  background:linear-gradient(145deg,#ee9b4a 0%,#f4ad62 58%,#ffd6a8 100%);
  color:#fff;
  font-weight:900;
}
#aiChat .ai-title .copilot-avatar-classic{width:100%;height:100%;font-size:14px;color:#fff}
.copilot-avatar-grid .copilot-avatar-classic{width:80px;max-width:100%;aspect-ratio:1;font-size:22px;min-height:0}
:root[data-copilot-avatar] #aiFab>b{font-size:18px;color:#fff}

/* Osyra home palette; shared dark-mode selectors preserve component contrast. */
:root[data-visual-theme="osyra"]{
  color-scheme:dark;
  --bg:#1B132D;--app-bg:#20162F;--surface:#2C203D;--surface-2:#302441;--surface-3:#392B4D;
  --card:#2B203C;--field:#21182F;--ink:#FFF6ED;--text:#EFE4F4;--muted:#C6B6D0;--faint:#AD9CBB;
  --line:#56445F;--line-soft:rgba(239,228,244,.12);
  --blue:#F3B579;--blue-soft:#493144;--blue-deep:#FFF6ED;--orange:#F3B579;--peach:#F6CE96;--peach-soft:#493144;--cream:#302441;
  --shell-bg:#1B132D;
  --shell-desktop-bg:linear-gradient(135deg,#442561 0%,#241735 55%,#39272C 100%);
  --app-surface:linear-gradient(165deg,#38204F 0%,#241735 45%,#1B132D 100%);
  --top-surface:#2B1D3D;--nav-surface:#281C36;
  --modal-surface:#241A33;--modal-header-surface:#2C203D;--drawer-surface:#241A33;--drawer-header-surface:#2C203D;
  --meal-editor-sheet-surface:var(--nav-surface);--meal-editor-header-surface:var(--nav-surface);
  --profile-option-surface:#302441;--profile-muted-surface:#302441;
  --ai-chat-surface:#241A33;--ai-chat-header-surface:#2C203D;--ai-chat-messages-surface:#20162F;
  --ai-chat-form-surface:#2C203D;--ai-message-surface:#302441;--ai-action-surface:#302441;--ai-action-high-surface:#493144;
  --ai-clear-surface:#302441;--ai-guided-surface:#302441;
  --food-card-surface:var(--card);--food-choice-surface:var(--card);--food-facts-surface:var(--card);--recipe-card-surface:var(--card);
  --diary-panel-surface:var(--card);--diary-card-surface:var(--card);--diary-strong:var(--ink);--diary-muted:var(--muted);
  --pay-bg:var(--app-bg);--pay-surface:var(--card);--pay-surface-2:var(--surface-2);--pay-field:var(--field);
  --pay-accent:var(--blue);--pay-main:var(--blue);--pay-main-text:#26172F;--pay-ink:var(--ink);--pay-text:var(--text);
}
.help-choice-card.theme[data-visual-theme-choice="osyra"]{background:linear-gradient(135deg,#442561,#241735 60%,#674335);color:#FFF6ED;border-color:#B58EBA}
:root[data-visual-theme="osyra"] .tutorial-card.center-card{background:var(--card);color:var(--text)}
:root[data-visual-theme="osyra"] .tutorial-card.center-card :is(h2,h3,p,.eyebrow){color:var(--text)}
:root[data-visual-theme="osyra"] .app{background:var(--app-surface)!important}
:root[data-visual-theme="osyra"] :is(.home-tabs .active,.bottom-nav .active,button.primary,.ai-chat-form button[type="submit"]){background:linear-gradient(110deg,#F3B579,#F6CE96)!important;color:#26172F!important;border-color:#F3B579!important}
:root[data-visual-theme="osyra"] .bottom-nav .active :is(i,span){color:#26172F!important}
:root[data-visual-theme="osyra"] :is(.home-tabs,.bottom-nav,.app-top,.ai-chat-head,.ai-chat-form){background:var(--top-surface)!important;border-color:var(--line)!important}
:root[data-visual-theme="osyra"] #modal.modal{background:rgba(20,10,32,.46)!important;backdrop-filter:blur(4px)}
:root[data-visual-theme="osyra"] .food-detail-title{background:var(--nav-surface)!important;box-shadow:0 -42px 0 var(--nav-surface),0 12px 24px rgba(0,0,0,.14)!important}
:root[data-visual-theme="osyra"] .food-detail-footer{background:linear-gradient(to bottom,rgba(40,28,54,0),var(--nav-surface) 24%)}
.help-choice-card.theme[data-visual-theme-choice="osyra"]{background:#553552!important;border-color:#C9A5CB!important}
.help-choice-card.theme[data-visual-theme-choice="osyra"]::before{background:radial-gradient(circle at 18% 22%,rgba(242,221,246,.76) 0 10%,transparent 11%),radial-gradient(circle at 77% 27%,rgba(165,111,195,.58) 0 16%,transparent 17%),radial-gradient(circle at 22% 94%,rgba(135,70,125,.48) 0 22%,transparent 23%),linear-gradient(140deg,#482454 0%,#2D173B 58%,#180F25 100%)!important}
.help-choice-card.theme[data-visual-theme-choice="osyra"] b{font-size:.88rem;line-height:1.18;text-wrap:pretty;overflow-wrap:normal}

/* Clip horizontal paint without creating a scroll ancestor for the sticky header. */
body,#app.app{overflow-x:clip;overflow-y:visible}

/* Kitchen overview and the five-stage recipe workbench share the active frequency. */
#platesScreen{overflow:visible!important}
#app:has(#platesScreen.active){padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}
#app:has(#platesScreen.active)>.screens{overflow:visible!important;padding-bottom:16px!important}
html:has(#platesScreen.active),#platesScreen .chef-food-grid,.recipe-registration-sheet{scrollbar-width:none!important}
html:has(#platesScreen.active)::-webkit-scrollbar,#platesScreen .chef-food-grid::-webkit-scrollbar,.recipe-registration-sheet::-webkit-scrollbar{display:none;width:0;height:0}
#platesScreen #recipeBuilder{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;scroll-margin-top:84px}
#platesScreen .kitchen-cover{display:grid;gap:26px}
#platesScreen .kitchen-cover-hero{position:relative;isolation:isolate;min-height:260px;overflow:hidden;border-radius:24px;background:var(--surface-2)}
#platesScreen .kitchen-cover-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
#platesScreen .kitchen-cover-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,24,15,.02),rgba(0,24,15,.84));z-index:-1}
#platesScreen .kitchen-hero-content{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;min-height:260px;padding:22px;gap:16px;color:#fff}
#platesScreen .kitchen-hero-content h3{color:#fff;font-size:1.4rem;font-weight:800;line-height:1.15;max-width:230px;letter-spacing:0;margin:0;text-wrap:balance;text-shadow:0 1px 12px rgba(0,0,0,.2)}
#platesScreen .kitchen-create{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 18px;width:auto;max-width:100%;border:0;border-radius:24px;background:color-mix(in srgb,var(--blue) 8%,#fff);color:#18332b;font-size:13px;font-weight:700;line-height:1.2;letter-spacing:0;box-shadow:0 2px 8px rgba(0,0,0,.08)}
#platesScreen .kitchen-create>span{color:inherit!important;font-size:inherit;font-weight:inherit;letter-spacing:0}
#platesScreen .kitchen-chef-icon{display:block;flex:0 0 18px;width:18px;height:18px;background:currentColor;mask:url('/assets/kitchen/chef-hat.svg') center/contain no-repeat;-webkit-mask:url('/assets/kitchen/chef-hat.svg') center/contain no-repeat}
#platesScreen .kitchen-create:hover{filter:brightness(.96)}
#platesScreen .kitchen-example-meta{display:grid;gap:5px;margin:-5px 0 -3px;color:#fff}
#platesScreen .kitchen-example-meta>small{font-size:10px;font-weight:400;line-height:1.3;color:rgba(255,255,255,.85)}
#platesScreen .kitchen-example-meta>div{display:flex;align-items:center;flex-wrap:wrap;gap:0;color:#fff}
#platesScreen .kitchen-example-meta>div>span{display:inline-flex;align-items:center;gap:4px;color:#fff!important;font-size:11px;font-weight:400;line-height:1.4;white-space:nowrap}
#platesScreen .kitchen-example-meta>div>span+span{margin-left:9px;padding-left:9px;border-left:1px solid rgba(255,255,255,.4)}
#platesScreen .kitchen-example-meta i{font-style:normal;font-size:15px;line-height:1}
#platesScreen .kitchen-create:focus-visible{outline:2px solid #fff;outline-offset:4px}
#platesScreen .kitchen-draft{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 0 18px;border-bottom:1px solid var(--line)}
#platesScreen .kitchen-draft>div{display:grid;gap:4px;min-width:0}
#platesScreen .kitchen-draft small{font-size:11px;font-weight:400;color:var(--muted)}
#platesScreen .kitchen-draft b{font-size:13px;font-weight:600;color:var(--text);overflow-wrap:anywhere}
#platesScreen .kitchen-resume{display:flex;align-items:center;gap:7px;flex-shrink:0;border:0;background:transparent;color:var(--blue);padding:8px 0;font-size:12px;font-weight:600;min-height:44px;max-width:48%;text-align:left}
#platesScreen .kitchen-draft-actions{align-items:end;flex-shrink:0;max-width:50%}
#platesScreen .kitchen-draft-actions .kitchen-resume{max-width:100%}
#platesScreen .kitchen-discard{padding:8px 0;min-height:36px;border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:500;text-align:right}
#platesScreen .kitchen-discard:hover{color:var(--text);text-decoration:underline}
#platesScreen .kitchen-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
#platesScreen .kitchen-library-page{display:grid;gap:22px;min-width:0}
#platesScreen .kitchen-library-page>h2{font-size:22px;line-height:1.2;overflow-wrap:anywhere;margin:0}
#platesScreen .kitchen-source-section{display:grid;gap:12px}
#platesScreen .kitchen-source-section h3{font-size:16px;font-weight:700}
#platesScreen .kitchen-source-list{display:grid;gap:0}
#platesScreen .kitchen-source-row{display:grid;grid-template-columns:64px minmax(0,1fr) 16px;align-items:center;gap:14px;padding:14px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;text-align:left;color:var(--text);width:100%}
#platesScreen .kitchen-source-row img{width:64px;height:64px;object-fit:cover;border-radius:8px}
#platesScreen .kitchen-source-row>span{display:grid;gap:5px;min-width:0}
#platesScreen .kitchen-source-row b{font-size:14px;font-weight:650;overflow-wrap:anywhere}
#platesScreen .kitchen-source-row small{font-size:12px;font-weight:400;color:var(--muted)}
#platesScreen .kitchen-source-row i{font-style:normal;font-size:24px;font-weight:400}
#platesScreen .kitchen-library-recipes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
#platesScreen .kitchen-library-recipes>.recipe-library-empty{grid-column:1/-1}
#platesScreen #recipeBuilderPanel.is-browsing>.section-heading,
#platesScreen #recipeBuilderPanel.is-browsing>#recipeSavedList{display:none!important}
#platesScreen :is(.kitchen-library-recipes,#recipeSavedList) .recipe-saved-actions{display:flex;flex-wrap:wrap;gap:5px}
#platesScreen :is(.kitchen-library-recipes,#recipeSavedList) .recipe-saved-actions button{min-width:0;max-width:100%;font-size:11px;padding:6px 8px;white-space:normal}
#platesScreen>.section-heading .eyebrow[data-kitchen-eyebrow]{display:block!important;margin:0 0 4px;color:var(--muted);font-size:11px;font-weight:500;letter-spacing:0;text-transform:uppercase;line-height:1.2}
#platesScreen>.section-heading h2{font-size:28px;font-weight:800;line-height:1.1;letter-spacing:0}
#platesScreen .kitchen-categories{display:grid;gap:12px}
#platesScreen .kitchen-categories .section-heading{margin:0;align-items:center}
#platesScreen .section-heading h3{font-size:16px;font-weight:750;letter-spacing:0}
#platesScreen .kitchen-text-button{padding:6px 0;border:0;background:transparent;color:var(--blue);font-size:.75rem;font-weight:800}
#platesScreen .kitchen-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#platesScreen .kitchen-category{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-width:0;min-height:116px;aspect-ratio:1.65;border:0;border-radius:18px;overflow:hidden;text-align:left;padding:14px;background:var(--surface-2);color:#fff}
#platesScreen .kitchen-category>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .2s}
#platesScreen .kitchen-category::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 10%,rgba(0,24,15,.8));z-index:-1}
#platesScreen .kitchen-category:hover>img{transform:scale(1.035)}
#platesScreen .kitchen-category span{display:grid;gap:3px;min-width:0}
#platesScreen .kitchen-category b{font-size:12px;font-weight:700;line-height:1.2;color:#fff;overflow-wrap:anywhere}
#platesScreen .kitchen-category small{font-size:10px;font-weight:400;line-height:1.3;color:rgba(255,255,255,.9)}
#platesScreen .kitchen-category{width:100%;max-width:100%;height:128px;min-height:0;aspect-ratio:auto}
#platesScreen #recipeBuilderPanel{gap:22px}
#platesScreen #recipeBuilderPanel{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:none!important;align-items:start!important}
#platesScreen #recipeBuilderPanel>*{grid-area:auto!important;grid-column:1!important;max-width:100%!important;width:100%}
#platesScreen #recipeBuilderPanel .section-heading{grid-area:auto!important;grid-column:auto!important}
#platesScreen #recipeBuilderPanel .chef-nav [data-recipe-save]{display:block!important;grid-area:auto!important;grid-column:auto!important}
#platesScreen #recipeBuilderPanel.is-building>.section-heading,
#platesScreen #recipeBuilderPanel.is-building>#recipeSavedList,
#platesScreen #recipeSummary{display:none}
#platesScreen #recipeBuilderPanel.is-building>#recipeSavedList{display:none!important}
#platesScreen #recipeSavedList{scroll-margin-top:88px}
#platesScreen #recipeSavedList{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:auto!important;gap:12px!important;margin:0!important;padding:0!important}
#platesScreen #recipeSavedList .recipe-saved-card{height:156px;min-height:0;aspect-ratio:auto;padding:12px!important;align-content:end;overflow:hidden}
#platesScreen #recipeSavedList .recipe-saved-main{height:100%;align-content:end;min-width:0}
#platesScreen #recipeSavedList .recipe-saved-head b{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 5px rgba(0,0,0,.65)}
#platesScreen .recipe-library-empty{padding:14px 0;border:0;background:transparent;box-shadow:none}
#platesScreen .kitchen-back{display:block;justify-self:start;padding:8px 0 16px;border:0;background:transparent;color:var(--text);font-size:.82rem;font-weight:700}
#platesScreen .chef-mission{background:var(--surface-2);color:var(--text);border-radius:8px;padding:16px 12px}
#platesScreen .chef-mission::after{display:none}
#platesScreen .chef-mission-head b{color:var(--text)}
#platesScreen .chef-mission-icon{background:var(--blue-soft);color:var(--blue)}
#platesScreen .chef-mission-badge{display:none}
#platesScreen .chef-stepper{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;overflow:visible;padding:0}
#platesScreen .chef-stepper button{min-width:0;min-height:70px;padding:7px 2px;color:var(--muted);background:transparent;border:0;box-shadow:none;font-size:.62rem;line-height:1.15}
#platesScreen .chef-stepper button span{white-space:normal;max-width:100%;overflow-wrap:anywhere;letter-spacing:0}
#platesScreen .chef-stepper button b{width:25px;height:25px;background:var(--card);color:var(--text);font-size:.73rem}
#platesScreen .chef-stepper button.active{color:var(--text);background:var(--blue-soft);border-radius:8px}
#platesScreen .chef-stepper button.active b{background:var(--blue);color:var(--card)}
#platesScreen .chef-stage{padding:22px 0;border:0;border-radius:0;background:transparent;box-shadow:none;min-width:0}
#platesScreen .chef-stage{margin:0;background:transparent!important;color:var(--text)!important}
#platesScreen .chef-mission{background:var(--surface-2)!important;color:var(--text)!important}
#platesScreen .chef-component-list{background:transparent!important;border-radius:0!important;box-shadow:none!important}
#platesScreen .chef-component>span{padding:0;background:transparent!important;text-transform:none;font-weight:400}
#platesScreen .chef-component>span :is(b,small){text-transform:none;letter-spacing:0}
#platesScreen :is(.chef-station-card,.recipe-ingredient-row){background:var(--card)!important;color:var(--text)!important}
#platesScreen .chef-stage h3{font-size:1rem;letter-spacing:0}
#platesScreen .recipe-name-field{width:100%;min-width:0}
#platesScreen .recipe-name-field input{width:100%;font-size:16px!important}
#platesScreen .recipe-identity-meals .checks{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
#platesScreen .recipe-identity-meals .meal-option{min-width:0;min-height:56px;gap:6px;padding:9px!important;display:flex!important;align-items:center}
#platesScreen .recipe-identity-meals .meal-option input{flex:0 0 16px;width:16px;height:16px;margin:0}
#platesScreen .recipe-identity-meals .meal-option b{font-size:12px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
#platesScreen .recipe-identity-meals .meal-option-icon{display:none}
#platesScreen .recipe-nutrition-disclosure>div{display:block;padding:0;background:transparent}
#platesScreen .recipe-micronutrients{background:var(--surface);border:1px solid var(--line);border-radius:8px}
#platesScreen .recipe-micronutrients summary,#platesScreen .recipe-micronutrients span{color:var(--text,var(--blue-deep))}
#platesScreen .recipe-micronutrients summary::after{content:"+";font-size:18px;font-weight:600}
#platesScreen .recipe-micronutrients[open]>summary::after{content:"-"}
#platesScreen .recipe-nutrition-disclosure .recipe-nutrition-label{margin:0;width:100%}
.recipe-label-warning ul{margin:6px 0 0;padding-left:18px;overflow-wrap:anywhere}
.recipe-label-warning li+li{margin-top:4px}
.recipe-nutrition-label .recipe-label-warning :is(p,li,strong,b,span){color:#563600!important}
:root[data-visual-theme] .recipe-nutrition-label header :is(p,b,span){color:#111!important}
.recipe-nutrition-label .recipe-label-warning li{font-size:12px;line-height:1.5;font-weight:400;white-space:normal;overflow-wrap:anywhere}
.recipe-nutrition-label .recipe-label-warning li strong{display:block;font-weight:700}
#platesScreen .chef-measure-equivalence>span{display:flex;flex-wrap:wrap;gap:3px 6px;line-height:1.4}
#platesScreen .recipe-nutrition-regulation{padding:14px;border-top:1px solid var(--line);color:var(--text,var(--blue-deep));font-size:.8rem;line-height:1.6;overflow-wrap:anywhere}
#platesScreen .recipe-nutrition-regulation p{margin:0}
#platesScreen .recipe-nutrition-regulation p+p{margin-top:10px}
.recipe-calculation-memory{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.recipe-calculation-memory h2{font-size:1.2rem;overflow-wrap:anywhere}
.recipe-calculation-memory .sheet-title>div{min-width:0}
.recipe-calculation-memory .sheet-title.with-actions{margin:0 0 14px;width:100%;min-width:0}
.recipe-calculation-memory .prose{min-width:0;grid-template-columns:minmax(0,1fr)}
.recipe-calculation-memory .terms-card{overflow-wrap:anywhere}
#platesScreen .recipe-nutrition-regulation button{margin-top:14px;width:100%;white-space:normal;min-height:44px}
#platesScreen .recipe-nutrition-regulation a{color:inherit;text-decoration:underline;text-underline-offset:3px}
#platesScreen .chef-created-hero{display:none}
#platesScreen .chef-measure-equivalence{grid-column:1/-1;min-width:0}
#platesScreen .chef-measure-equivalence input{width:100%;min-width:0;font-size:16px}
.recipe-label-mode{display:flex;gap:4px;margin:0 0 16px;border-bottom:1px solid var(--line);padding-bottom:6px}
.recipe-label-mode button{flex:1;min-width:0;font-size:13px;border-radius:4px;padding:10px 8px}
.recipe-label-settings{margin:0 0 18px}
.recipe-label-settings>div{display:block!important;padding:12px 0}
.recipe-label-settings .recipe-yield-fields{margin-bottom:16px}
.recipe-overview{min-width:0}
.recipe-overview-yield{padding:18px 0 0}
.recipe-overview-yield input{min-width:0;width:100%;font-size:16px}
.recipe-overview-yield label{min-width:0}
.recipe-overview-cover{position:relative;min-height:160px;display:flex;align-items:flex-end;padding:20px;overflow:hidden;border-radius:8px}
.recipe-overview-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.recipe-overview-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent,rgba(0,0,0,.8))}
.recipe-overview-cover h3{position:relative;z-index:1;color:white!important;font-size:22px;line-height:1.25;margin:0;overflow-wrap:anywhere}
.recipe-overview section{padding:18px 0;border-bottom:1px solid var(--line)}
.recipe-overview h4{margin:0 0 12px;font-size:16px}
.recipe-overview ul,.recipe-overview ol{margin:0;padding-left:20px}
.recipe-overview li{margin-bottom:12px;line-height:1.5}
.recipe-overview li>span{display:block;font-size:13px;color:var(--muted)}
.recipe-overview p{font-size:14px;line-height:1.6;margin:6px 0;overflow-wrap:anywhere}
.recipe-label-settings input#recipeYieldGrams,.recipe-label-settings input#recipeServings{font-size:16px}
.recipe-label-settings .grid2{gap:12px}
.recipe-label-settings label{min-width:0}
.recipe-label-settings input,.recipe-label-settings select{min-width:0;width:100%;font-size:16px}
.recipe-label-settings .meal-option{margin-top:12px}
.recipe-label-settings .meal-option input{width:auto}
.recipe-label-review{font-size:13px;margin:12px 0}
.recipe-label-review ul{padding:8px 12px 12px 26px}
.recipe-label-review li{margin:8px 0;overflow-wrap:anywhere}
.recipe-label-review>p{border-left:3px solid #d58b22;padding:8px 12px}
.recipe-label-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}
.recipe-label-toggle input{appearance:none;width:44px;height:26px;flex:0 0 44px;border:1px solid var(--line);border-radius:20px;background:var(--muted);position:relative;cursor:pointer}
.recipe-label-toggle input::after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#fff;transition:transform .15s}
:root #platesScreen .recipe-label-toggle input:checked{background:#28774e!important;border-color:#28774e!important}
.recipe-label-toggle input:checked::after{transform:translateX(18px)}
.recipe-label-toggle input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.recipe-label-invalid{border-left:3px solid #cb8621;padding:10px 12px;margin:12px 0;font-size:13px;color:var(--text);overflow-wrap:anywhere}
.recipe-label-invalid ul{margin:8px 0 0;padding-left:18px}
.recipe-label-invalid small{display:block;margin-top:3px;color:var(--muted)}
.food-card-switch input{display:block;position:absolute;inset:0;width:100%;min-width:0;height:100%;min-height:0;margin:0;padding:0;opacity:0;z-index:1;cursor:pointer}
.food-card-switch input:focus-visible+span{outline:2px solid var(--blue);outline-offset:3px}
#foodsScreen div.food-onboarding-title{cursor:default}
.recipe-label-status{border-left:3px solid #cb8621;padding:10px 12px;margin-bottom:12px;overflow-wrap:anywhere}
.recipe-label-status[data-status="approved_for_use"]{border-color:#398e5d}
.recipe-label-status[data-status="ready_for_review"],.recipe-label-status[data-status="approval_ready_to_save"]{border-color:#3894b8}
.recipe-label-status>span{display:block!important;background:none!important;padding:0!important;font-size:12px;font-weight:600;border-radius:0!important;color:var(--muted)!important}
.recipe-label-status>strong{display:block;margin-top:4px;font-size:15px;color:var(--text)}
.recipe-label-status>p{margin:6px 0 0;font-size:13px;color:var(--text)}
.recipe-label-approval{padding:16px 14px;border-top:1px solid var(--line);color:var(--text);font-size:13px}
.recipe-label-approval .eyebrow{color:var(--muted)!important}
.recipe-label-review>.recipe-label-clear{border:0;color:var(--muted);padding:8px 12px}
.recipe-label-approval h4{font-size:16px;margin:4px 0 8px}
.recipe-label-approval p{line-height:1.5;margin:8px 0 12px}
.recipe-label-approval>label{display:grid;gap:6px}
.recipe-label-approval span{display:block!important;background:none!important;padding:0!important;border-radius:0!important;color:inherit!important}
.recipe-label-approval input:not([type="checkbox"]){width:100%;min-width:0;font-size:16px}
.recipe-label-checks{display:grid;gap:12px;margin:16px 0}
.recipe-label-checks label{display:grid;grid-template-columns:20px minmax(0,1fr);gap:10px;align-items:start;font-size:13px;line-height:1.5}
.recipe-label-checks input{width:18px;height:18px;margin:2px 0;accent-color:#398e5d}
.recipe-label-checks label span{font-size:13px!important;font-weight:400!important;letter-spacing:0!important;text-transform:none!important;line-height:1.5}
.recipe-label-toggle>span{font-size:14px!important;letter-spacing:0!important;text-transform:none!important}
.recipe-label-approval button{width:100%;min-height:44px;white-space:normal}
.recipe-label-approval button:disabled{opacity:.55;cursor:default}
.recipe-calculation-memory pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-width:100%;line-height:1.5}
.recipe-nutrition-label [data-nutrient="sugars"] th,.recipe-nutrition-label [data-nutrient="satFat"] th,.recipe-nutrition-label [data-nutrient="transFat"] th{padding-left:1em!important}
.recipe-nutrition-label [data-nutrient="addedSugars"] th{padding-left:2em!important}
.recipe-nutrition-label h4{text-align:center!important}
@media(max-width:480px){.recipe-label-settings .grid2{grid-template-columns:minmax(0,1fr)}}
#platesScreen .chef-amount-field select{appearance:none;background-image:none!important;padding-right:34px!important;width:100%;min-width:0;height:42px}
#platesScreen .chef-measure-select{position:relative}
#platesScreen .chef-measure-select::after{content:"";position:absolute;right:15px;bottom:19px;width:6px;height:6px;border-right:2px solid var(--text);border-bottom:2px solid var(--text);transform:rotate(45deg);pointer-events:none}
#platesScreen .chef-amount-field>input{font-size:16px;text-align:center;min-width:0}
.field-pending input{border:2px solid #d58b22!important;background:color-mix(in srgb,var(--card,#fff) 86%,#ffc44f)!important}
.field-pending>span::after{content:" · Pendente";color:#b87712;font-size:10px;font-weight:700}
#platesScreen .chef-station-action-row{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:10px;align-items:end}
#platesScreen .chef-station-equipment-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#platesScreen .chef-station-equipment-row label,#platesScreen .chef-station-action-row label{min-width:0}
#platesScreen .chef-station-equipment-row input,#platesScreen .chef-station-equipment-row select{width:100%;min-width:0}
#platesScreen .chef-station-math{grid-template-columns:minmax(0,1fr)}
#platesScreen .recipe-yield-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#platesScreen .recipe-yield-fields label{min-width:0}
#platesScreen .recipe-yield-fields input{width:100%;min-width:0;font-size:16px}
#platesScreen .chef-created{min-height:0;padding-bottom:0}
.recipe-registration-sheet .food-form-footer{display:grid;grid-template-columns:1fr 1.5fr;gap:10px}
.recipe-registration-sheet [hidden]{display:none!important}
.recipe-registration-sheet .food-name-field input{font-size:16px!important}
.recipe-registration-sheet .food-kitchen-sync b{font-size:13px;line-height:1.3;white-space:normal}
#app:has(#platesScreen.active .chef-nav-slot){padding-bottom:max(0px,calc(var(--chef-nav-bottom,80px) - 16px))!important}
#platesScreen .chef-nav-slot{min-height:var(--chef-nav-height,61px)}
#platesScreen .chef-nav{position:relative;z-index:4;display:grid;grid-template-columns:1fr 1.5fr;gap:10px;padding:8px 0 4px;margin:0;background:var(--app-bg,var(--surface));border-top:1px solid var(--line);box-shadow:0 -7px 18px color-mix(in srgb,var(--surface) 75%,transparent);transition:transform .22s ease,opacity .22s ease,visibility 0s}
#platesScreen .chef-nav.is-floating{position:fixed;left:var(--chef-nav-left);width:var(--chef-nav-width);bottom:var(--chef-nav-bottom,80px);z-index:25}
#platesScreen .chef-nav.chef-nav-hidden{transform:translateY(16px);opacity:0;visibility:hidden;pointer-events:none;transition:transform .22s ease,opacity .22s ease,visibility 0s .22s}
@media(prefers-reduced-motion:reduce){#platesScreen .chef-nav,#platesScreen .chef-nav.chef-nav-hidden{transition:none}}
#platesScreen .chef-nav button{min-height:44px;min-width:0;font-size:.8rem;white-space:normal}
#platesScreen .chef-station-card,#platesScreen .chef-assembly-card{display:grid;gap:14px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--card);box-shadow:none;margin:0 0 14px}
#platesScreen .chef-assembly-head{display:flex;gap:10px;align-items:center}
#platesScreen .chef-assembly-head label{flex:1;min-width:0}
#platesScreen .chef-component-list{display:grid;gap:8px;border:0;margin:0;padding:0;min-width:0}
#platesScreen .chef-component-list legend{padding:0 0 8px;font-size:.75rem;font-weight:800;color:var(--muted)}
#platesScreen .chef-component{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);cursor:pointer;min-width:0}
#platesScreen .chef-component input{width:18px;height:18px;flex:0 0 18px;margin:2px 0;accent-color:var(--blue)}
#platesScreen .chef-component>span{display:grid;gap:4px;min-width:0}
#platesScreen .chef-component b{font-size:.8rem;color:var(--text);overflow-wrap:anywhere}
#platesScreen .chef-component small{font-size:.72rem;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
#platesScreen .chef-component:has(input:disabled){opacity:.55}
#platesScreen .chef-unassigned{font-size:.75rem;line-height:1.5;color:var(--muted);padding:10px 0}
#platesScreen .chef-finish-components{display:grid;gap:8px;margin-bottom:16px;font-size:.85rem;color:var(--text)}
#platesScreen .chef-food-grid.chef-food-blocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-flow:row;grid-auto-columns:auto;align-items:stretch;gap:8px;max-height:360px;overflow-x:hidden;overflow-y:auto;padding:2px;scrollbar-width:thin}
#platesScreen .chef-food-grid .chef-food-card{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:8px;width:100%;min-width:0;min-height:64px;height:100%;padding:10px 8px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--text);box-shadow:none;text-align:left}
#platesScreen .chef-food-grid .chef-food-card.selected{border-color:var(--blue);background:var(--blue-soft);color:var(--text)}
#platesScreen .chef-food-grid .chef-food-card .food-image{width:30px;height:30px;min-width:30px;margin:0;flex:none}
#platesScreen .chef-food-grid .chef-food-card b{font-size:.75rem;line-height:1.3;white-space:normal;overflow-wrap:anywhere;min-width:0;color:inherit;letter-spacing:0}
#platesScreen .chef-food-grid .chef-empty{grid-column:1/-1}
#platesScreen label.chef-search{grid-template-columns:20px minmax(0,1fr) 36px!important;gap:8px!important;padding-right:6px!important}
#platesScreen label.chef-search input[data-chef-search]{font-size:16px!important;font-weight:500!important;line-height:1.4!important}
#platesScreen label.chef-search input[data-chef-search]::placeholder{font-weight:400;opacity:.75}
#platesScreen .chef-search-clear{display:grid;place-items:center;min-width:36px;width:36px;min-height:44px;height:44px;padding:0;border:0;background:transparent;color:var(--muted);font-size:24px;font-weight:400;line-height:1;box-shadow:none}
#platesScreen .chef-search-clear[hidden]{display:none!important}
#platesScreen .chef-search-clear:hover{color:var(--text);background:var(--blue-soft)}
#platesScreen .chef-search-clear:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
#platesScreen .chef-stage-head h3{font-weight:700}
#platesScreen .recipe-saved-head b{font-size:14px;font-weight:700;line-height:1.25}
#platesScreen .recipe-saved-head small{font-size:11px;font-weight:400}
#platesScreen .recipe-nutrition-label :is(p,span,small){color:#253047!important}
#platesScreen .recipe-nutrition-missing{color:var(--text)!important;background:var(--surface-2)!important}
#platesScreen .chef-identity .recipe-source-segments{display:none}
@media(min-width:700px){
  #platesScreen .kitchen-cover-hero,#platesScreen .kitchen-hero-content{min-height:310px}
  #platesScreen .kitchen-hero-content{padding:32px}
  #platesScreen .kitchen-hero-content h3{font-size:1.7rem;max-width:280px}
  #platesScreen .kitchen-category{max-height:190px}
  #platesScreen .chef-stepper button{font-size:.78rem}
}

/* Keep the profile photo copy clear of the Copilot starting position. */
#profileDrawer .avatar-editor{padding-right:110px}
#profileDrawer .avatar-editor>div{min-width:0}

/* Keep the final analysis polish after legacy cascade blocks. */
#planScreen .plan-analysis-period .analysis-controls-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  justify-items:center!important;
  align-items:start!important;
  text-align:center!important;
}
#planScreen .plan-analysis-period .analysis-controls-head>div{
  justify-items:center!important;
  text-align:center!important;
}
#planScreen .plan-analysis-period .analysis-controls-head h2{
  text-align:center!important;
}
#planScreen .plan-analysis-period .analysis-metric-control{
  text-align:center!important;
}
#planScreen .plan-analysis-period .analysis-metric-control>span:first-child{
  text-align:center!important;
}
#planScreen .plan-analysis-period .analysis-metric-select select{
  text-align:center!important;
  text-align-last:center!important;
}
#planScreen .plan-analysis-period .diary-period-presets{
  justify-content:center!important;
}
#planScreen .plan-analysis-period .diary-layer-toggle{
  justify-content:center!important;
}
#planScreen .analysis-chart-stage>header{
  justify-content:center!important;
  text-align:center!important;
}
#planScreen .analysis-chart-stage>header>div{
  justify-items:center!important;
}
@media(max-width:600px){
  #planScreen .plan-analysis-period .diary-period-presets button{
    min-width:0!important;
    flex:1 1 0!important;
  }
}

/* App-owned analysis picker: native option popovers cannot be styled consistently. */
#planScreen .plan-analysis-period .analysis-metric-select{
  position:relative!important;
  isolation:isolate;
}
#planScreen .plan-analysis-period .analysis-metric-trigger{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  min-height:48px!important;
  padding:12px 14px!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  background:var(--surface-2)!important;
  color:var(--text)!important;
  font:inherit!important;
  font-weight:750!important;
  text-align:left!important;
  cursor:pointer;
  box-shadow:0 5px 16px rgba(16,32,64,.08)!important;
}
#planScreen .plan-analysis-period .analysis-metric-trigger:hover,
#planScreen .plan-analysis-period .analysis-metric-trigger[aria-expanded="true"]{
  border-color:var(--blue)!important;
  background:var(--blue-soft)!important;
}
#planScreen .plan-analysis-period .analysis-metric-trigger:focus-visible{
  outline:3px solid color-mix(in srgb,var(--blue) 30%,transparent)!important;
  outline-offset:2px;
}
#planScreen .plan-analysis-period .analysis-metric-trigger i{
  flex:0 0 auto;
  color:var(--blue);
  font-style:normal;
  font-size:1.1em;
  line-height:1;
  transition:transform .18s ease;
}
#planScreen .plan-analysis-period .analysis-metric-trigger[aria-expanded="true"] i{transform:rotate(180deg)}
#planScreen .plan-analysis-period .analysis-metric-menu{
  position:absolute!important;
  z-index:20;
  inset:calc(100% + 7px) 0 auto;
  display:grid;
  gap:4px;
  max-height:min(320px,45vh);
  overflow:auto;
  padding:7px!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  background:var(--surface)!important;
  box-shadow:0 18px 38px rgba(16,32,64,.2)!important;
}
#planScreen .plan-analysis-period .analysis-metric-menu[hidden]{display:none!important}
#planScreen .plan-analysis-period .analysis-metric-menu button{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  min-height:40px!important;
  padding:9px 11px!important;
  border:1px solid transparent!important;
  border-radius:9px!important;
  background:transparent!important;
  color:var(--text)!important;
  font:inherit!important;
  font-size:.9rem!important;
  font-weight:650!important;
  line-height:1.25!important;
  text-align:left!important;
  cursor:pointer;
}
#planScreen .plan-analysis-period .analysis-metric-menu button:hover,
#planScreen .plan-analysis-period .analysis-metric-menu button:focus-visible{
  border-color:var(--blue)!important;
  background:var(--blue-soft)!important;
  outline:none;
}
#planScreen .plan-analysis-period .analysis-metric-menu button.active,
#planScreen .plan-analysis-period .analysis-metric-menu button[aria-selected="true"]{
  border-color:color-mix(in srgb,var(--blue) 42%,var(--line))!important;
  background:color-mix(in srgb,var(--blue) 13%,var(--surface))!important;
  color:var(--blue)!important;
}

/* Analysis metric selector wins over the historical button-rail cascade. */
#planScreen .plan-analysis-period .diary-analysis-filter-rail.diary-series-controls{
  display:block!important;
  grid-template-columns:none!important;
}
#planScreen .plan-analysis-period .analysis-metric-control,
#planScreen .plan-analysis-period .analysis-metric-select,
#planScreen .plan-analysis-period .analysis-metric-select select{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  box-sizing:border-box!important;
}
#planScreen .plan-analysis-period .analysis-controls-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  justify-items:stretch!important;
  align-items:start!important;
  text-align:left!important;
}

/* Dieta: active mode triggers need a little horizontal breathing room so the
   label and chevron read as one comfortable pill. The opened card keeps its
   existing surface and width; this only affects the compact closed trigger. */
#planScreen #planPreviewHero > :is(.profile-goal-disclosure.special-mode-active,.profile-goal-disclosure.contraceptive-mode-active,.menstrual-cycle-card.cycle-source-card.active):not([open]) > :is(summary,.cycle-source-summary){
  gap:8px!important;
  padding-inline:13px!important;
  font-family:var(--font-primary)!important;
  letter-spacing:0!important;
}
#planScreen #planPreviewHero > :is(.profile-goal-disclosure.special-mode-active,.profile-goal-disclosure.contraceptive-mode-active,.menstrual-cycle-card.cycle-source-card.active):not([open]) > :is(summary,.cycle-source-summary) :is(.profile-goal-disclosure-label,.cycle-source-label),
#planScreen #planPreviewHero > :is(.profile-goal-disclosure.special-mode-active,.profile-goal-disclosure.contraceptive-mode-active,.menstrual-cycle-card.cycle-source-card.active):not([open]) > :is(summary,.cycle-source-summary)>span{
  font-family:var(--font-primary)!important;
  font-size:.72rem!important;
  font-weight:850!important;
  letter-spacing:0!important;
  line-height:1!important;
}

/* Keep every compact Dieta disclosure on the same type rail as Agora, not
   only the active pill. */
#planScreen #planPreviewHero > :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card):not([open]) > :is(summary,.cycle-source-summary),
#planScreen #planPreviewHero > :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card):not([open]) > :is(summary,.cycle-source-summary) :is(.profile-goal-disclosure-label,.cycle-source-label),
#planScreen #planPreviewHero > :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card):not([open]) > :is(summary,.cycle-source-summary)>span{
  font-family:var(--font-primary)!important;
  font-size:.72rem!important;
  font-weight:850!important;
  letter-spacing:0!important;
  line-height:1!important;
}

/* Dieta keeps its header focused on the plan; mode chips are available only
   from Agora. Keep this guard for any residual disclosure markup. */
#planScreen #planPreviewHero > :is(.profile-goal-disclosure,.menstrual-cycle-card.cycle-source-card){
  display:none!important;
}

/* Dieta metrics follow the same type rail as the cards in Agora: Inter,
   centered values, compact labels, and no monospace/expanded tracking. */
#planScreen #planPreviewHero .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat{
  font-family:var(--font-primary)!important;
  font-size:.875rem!important;
  font-weight:400!important;
  letter-spacing:0!important;
}
#planScreen #planPreviewHero .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat b{
  font-family:var(--font-primary)!important;
  font-size:1.38rem!important;
  font-weight:900!important;
  letter-spacing:0!important;
  line-height:1.05!important;
}
#planScreen #planPreviewHero .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat small{
  font-family:var(--font-primary)!important;
  font-size:.64rem!important;
  font-weight:900!important;
  letter-spacing:0!important;
  line-height:1.1!important;
}
#planScreen #planPreviewHero .profile-info-carousel[data-home-carousel="profile"] .profile-main-stat span{
  font-family:var(--font-primary)!important;
  font-size:.78rem!important;
  font-weight:800!important;
  letter-spacing:0!important;
  line-height:1!important;
}

/* Economy workspace: a compact three-area shell using the shared frequency tokens.
   Existing data, price inputs, filters, shopping checks and substitution flows
   remain the source of truth; these rules only establish the new hierarchy. */
#financeProfileMini .finance-profile-title{
  margin:0;
  color:var(--ink);
  font-size:clamp(1.45rem,5.5vw,1.8rem);
  font-weight:900;
  line-height:1.12;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
}
#financeScreen .finance-screen-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin:0 0 14px;
}
#financeScreen .finance-screen-header h2{
  margin:2px 0 3px;
  color:var(--ink);
  font-size:1.52rem;
  line-height:1.08;
  font-weight:900;
}
#financeScreen .finance-screen-header .eyebrow,
#financeScreen .finance-dashboard-heading .eyebrow,
#financeScreen .finance-market-header .eyebrow{
  margin:0;
  color:var(--blue-deep);
  font-size:.66rem;
  font-weight:900;
  letter-spacing:.12em;
}
#financeScreen .finance-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px;
  margin:0 0 18px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface-2);
  box-shadow:none;
}
#financeScreen .finance-tabs>button{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:8px 6px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--muted);
  font-size:.78rem;
  font-weight:900;
  white-space:nowrap;
}
#financeScreen .finance-tabs>button.active{
  background:var(--ink);
  color:var(--surface);
}
#financeScreen .finance-dashboard-heading,
#financeScreen .finance-panel-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
#financeScreen .finance-dashboard-heading h3,
#financeScreen .finance-market-header h3{
  margin:3px 0 0;
  color:var(--ink);
  font-size:1.08rem;
  font-weight:900;
}
#financeScreen .finance-dashboard-link{
  padding:0;
  border:0;
  background:transparent;
  color:var(--blue-deep);
  font-size:.74rem;
  font-weight:900;
  cursor:pointer;
}
#financeScreen .finance-dashboard-static{cursor:default;opacity:.7}
#financeScreen .finance-dashboard-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
#financeScreen .finance-dashboard-metric{
  display:grid;
  gap:5px;
  min-height:112px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--card);
  box-shadow:var(--shadow-soft);
}
#financeScreen .finance-dashboard-metric span,
#financeScreen .finance-dashboard-metric small{
  color:var(--muted);
  font-size:.72rem;
  line-height:1.25;
}
#financeScreen .finance-dashboard-metric strong{
  color:var(--ink);
  font-size:1.55rem;
  line-height:1;
  font-weight:900;
}
#financeScreen .finance-dashboard-projection{
  border-color:color-mix(in srgb,var(--blue) 28%,var(--line));
  background:var(--blue-soft);
}
#financeScreen .finance-dashboard-period{
  display:grid;
  gap:7px;
  margin-top:14px;
}
#financeScreen .finance-dashboard-period>span{
  color:var(--muted);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
#financeScreen .finance-dashboard-period .finance-period-strip{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:0;
}
#financeScreen .finance-dashboard-period .finance-total{
  display:grid;
  gap:3px;
  min-height:66px;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--card);
  text-align:left;
}
#financeScreen .finance-dashboard-period .finance-total.active{
  border-color:var(--blue);
  background:var(--blue-soft);
}
#financeScreen .finance-dashboard-period .finance-total span{
  color:var(--muted);
  font-size:.66rem;
  font-weight:900;
  text-transform:uppercase;
}
#financeScreen .finance-dashboard-period .finance-total b{
  color:var(--ink);
  font-size:1rem;
  font-weight:900;
}
#financeScreen .finance-dashboard-period .finance-total small{
  color:var(--muted);
  font-size:.62rem;
}
#financeScreen #financeDashboardPanel>.select-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:14px 0 10px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#financeScreen #financeDashboardPanel>.select-card>span{
  color:var(--muted);
  font-size:.78rem;
  font-weight:800;
}
#financeScreen #financeDashboardPanel>.select-card select{
  width:auto;
  min-height:36px;
  padding:6px 28px 6px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card);
  color:var(--ink);
  font-size:.74rem;
  font-weight:800;
}
#financeScreen #financeDashboardPanel .chart-grid{margin-top:0}
#financeScreen #financeDashboardPanel .chart-card{
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--card);
  box-shadow:var(--shadow-soft);
}
#financeScreen #financeDashboardPanel .chart-card .eyebrow{
  align-self:start;
  width:100%;
  color:var(--muted);
  font-size:.66rem;
}
#financeScreen .finance-impact-block{
  display:grid;
  gap:10px;
  margin-top:14px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#financeScreen .finance-impact-block .finance-dashboard-heading{margin:0}
#financeScreen .finance-dashboard-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
#financeScreen .finance-dashboard-expand{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-2);
  color:var(--ink);
  font-size:.68rem;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}
#financeScreen .finance-impact-list{display:grid;gap:0}
#financeScreen .finance-impact-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
#financeScreen .finance-impact-row:last-child{border-bottom:0;padding-bottom:0}
#financeScreen .finance-impact-row:first-child{padding-top:0}
#financeScreen .finance-impact-row b{display:block;color:var(--ink);font-size:.82rem}
#financeScreen .finance-impact-row small{display:block;margin-top:3px;color:var(--muted);font-size:.68rem}
#financeScreen .finance-impact-row>strong{color:var(--ink);font-size:.82rem;font-weight:900}
#financeScreen .finance-dashboard-empty,
#financeScreen .finance-dashboard-note{margin:0;color:var(--muted);font-size:.76rem;line-height:1.45}
#financeScreen .finance-dashboard-note{padding-top:2px;font-size:.68rem}
#financeScreen .finance-market-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0;margin-bottom:14px}
#financeScreen .finance-market-header>div{min-width:0;flex:1}
#financeScreen .finance-market-header h3{font-size:1.2rem}
#financeScreen .finance-market-header p{max-width:310px;margin:5px 0 0;line-height:1.4}
#financeScreen .finance-market-header .finance-market-add{flex:0 0 auto;max-width:50%;min-height:44px;padding:9px 12px;border-radius:12px;font-size:.73rem;line-height:1.3;white-space:normal}
#financeScreen label.finance-market-select-all{display:flex;align-items:center;gap:9px;min-width:0;min-height:44px;margin:8px 0 0;padding:8px 10px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);color:var(--ink);font-size:.76rem;font-weight:750;letter-spacing:0;line-height:1.4;text-transform:none;cursor:pointer}
#financeScreen .finance-market-select-all>span{min-width:0;overflow-wrap:anywhere}
#financeScreen .finance-market-select-all>small{flex:0 0 auto;margin-left:auto;color:var(--muted);font-size:.68rem;font-weight:700}
#financeScreen .finance-market-select-all>input[type="checkbox"]{flex:0 0 18px;width:18px;min-width:18px;height:18px;min-height:18px;margin:0;padding:0;border-radius:4px;accent-color:var(--blue);cursor:pointer}
#financeScreen .finance-market-select-all:focus-within{outline:2px solid var(--ink);outline-offset:2px}
#financeScreen .finance-market-select-all:has(:checked,:indeterminate){border-color:var(--blue);background:var(--blue-soft)}
@media(max-width:360px){
  #financeScreen .finance-market-header h3{font-size:1.05rem;line-height:1.3}
}
#financeScreen .finance-market-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px;
  margin-bottom:14px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
}
#financeScreen .finance-market-tabs button{
  min-height:38px;
  padding:7px 8px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--muted);
  font-size:.74rem;
  font-weight:900;
  cursor:pointer;
}
#financeScreen .finance-market-tabs button.active{
  background:var(--card);
  color:var(--ink);
  box-shadow:var(--shadow-soft);
}
#financeScreen #financeShoppingPanel .section-heading{margin:0 0 9px}
#financeScreen :is(#financeShoppingPanel,#financeSubstitutionPanel) .finance-filter-box{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  min-width:0;
  gap:8px;
  margin-bottom:14px;
  padding:11px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--card);
  box-shadow:none;
}
#financeScreen :is(#financeShoppingPanel,#financeSubstitutionPanel) .finance-filter-box>.search{
  min-height:42px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface-2);
}
#financeScreen :is(#financeShoppingPanel,#financeSubstitutionPanel) .finance-filter-box>.filter-toggle{
  display:flex!important;
  justify-content:space-between;
  width:100%;
  min-height:38px;
  margin:0;
  border:1px solid var(--line);
  border-radius:10px;
  background:transparent;
  color:var(--ink);
}
#financeScreen :is(#financeShoppingPanel,#financeSubstitutionPanel) .finance-filter-panel{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  min-width:0;
  max-width:100%;
  gap:9px;
  padding-top:2px;
}
#financeScreen :is(#financeShoppingPanel,#financeSubstitutionPanel) .finance-filter-panel:not([hidden]){display:grid!important}
#financeScreen :is(#financeShoppingPanel,#financeSubstitutionPanel) .finance-filter-panel .chips{min-width:0;max-width:100%;gap:6px}
#financeScreen :is(#financeShoppingPanel,#financeSubstitutionPanel) .finance-filter-chip{
  min-width:0;
  max-width:100%;
  min-height:32px;
  padding:6px 9px;
  border-radius:999px;
  font-size:.68rem;
  line-height:1.3;
  white-space:normal;
  overflow-wrap:anywhere;
}
#financeScreen #financeSubstitutionPanel .finance-sub-inactive-choice{display:flex;align-items:center;gap:10px;min-width:0;min-height:44px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--ink);font-size:.78rem;font-weight:750;letter-spacing:0;line-height:1.4;text-transform:none;cursor:pointer}
#financeSubstitutionPanel .finance-sub-inactive-choice input{display:block;flex:0 0 18px;width:18px;min-width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:var(--blue);cursor:pointer}
#financeSubstitutionPanel .finance-sub-inactive-choice input:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
#financeScreen #financeSubstitutionPanel .finance-sub-inactive-choice>span{min-width:0;font:inherit;letter-spacing:0;line-height:1.4;text-transform:none;overflow-wrap:anywhere}
#financeSubstitutionPanel .finance-sub-meal-filters{min-width:0;max-width:100%}
@media(max-width:520px){
  #financeSubstitutionPanel .finance-sub-meal-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  #financeScreen #financeSubstitutionPanel .finance-sub-meal-filters>.finance-filter-chip{width:100%;min-height:42px;text-align:left}
}
#financeScreen #financeList{gap:10px}
#financeScreen #financeList .cost-item,
#financeScreen #financeList .market-list-item{
  border-color:var(--line);
  border-radius:16px;
  background:var(--card);
  box-shadow:var(--shadow-soft);
}
#financeScreen #financeList .cost-item.inactive,
#financeScreen #financeList .market-list-item.inactive{opacity:.78}
#financeScreen #financeList .finance-pantry-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:10px;
  align-items:center;
  min-height:60px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--card);
  box-shadow:var(--shadow-soft);
}
#financeScreen #financeList .finance-pantry-food{display:flex;align-items:center;gap:10px;min-width:0}
#financeScreen #financeList .finance-pantry-food>span:last-child{display:grid;gap:2px;min-width:0}
#financeScreen #financeList .finance-pantry-food b{overflow:hidden;color:var(--ink);font-size:.8rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
#financeScreen #financeList .finance-pantry-quantity{display:grid;gap:2px;justify-items:end;white-space:nowrap}
#financeScreen #financeList .finance-pantry-quantity small{color:var(--muted);font-size:.61rem;font-weight:800}
#financeScreen #financeList .finance-pantry-quantity strong{color:var(--ink);font-size:.82rem;font-weight:900}
#financeScreen #financeList .finance-pantry-edit{padding:6px 9px;border:1px solid var(--line);border-radius:9px;font-size:.65rem;white-space:nowrap}
#financeScreen .finance-recent-purchases{
  display:grid;
  gap:0;
  margin-top:10px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--card);
  box-shadow:var(--shadow-soft);
}
#financeScreen .finance-recent-purchases-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:7px}
#financeScreen .finance-recent-purchases-head h3{margin:0;color:var(--ink);font-size:.8rem;font-weight:900}
#financeScreen .finance-recent-purchases-head small{color:var(--muted);font-size:.62rem;font-weight:800}
#financeScreen .finance-recent-purchase{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
#financeScreen .finance-recent-purchase>span{display:grid;min-width:0;gap:2px}
#financeScreen .finance-recent-purchase b{overflow:hidden;color:var(--ink);font-size:.76rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
#financeScreen .finance-recent-purchase small{overflow:hidden;color:var(--muted);font-size:.66rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
#financeScreen .finance-recent-purchase strong{flex:0 0 auto;color:var(--ink);font-size:.78rem;font-weight:900}
#financeScreen .finance-explorer-head>div{min-width:0}
#financeScreen .finance-explorer-note{max-width:34rem;margin:3px 0 0;color:var(--muted);font-size:.68rem;font-weight:700;line-height:1.35}
#financeScreen .finance-history-insights{display:grid;gap:10px;margin-top:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:var(--shadow-soft)}
#financeScreen .finance-history-insights-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
#financeScreen .finance-history-insights-head h3{margin:0;color:var(--ink);font-size:.82rem;font-weight:900}
#financeScreen .finance-history-insights-head p{max-width:32rem;margin:3px 0 0;color:var(--muted);font-size:.66rem;font-weight:700;line-height:1.35}
#financeScreen .finance-history-insights-head>span{flex:0 0 auto;color:var(--muted);font-size:.6rem;font-weight:900;white-space:nowrap}
#financeScreen .finance-history-week-list{display:grid;gap:8px}
#financeScreen .finance-history-week{display:grid;grid-template-columns:minmax(72px,.7fr) minmax(42px,1fr) minmax(65px,.65fr) minmax(65px,.65fr);gap:8px;align-items:center;padding:9px 0;border-top:1px solid var(--line)}
#financeScreen .finance-history-week>div:first-child{display:grid;gap:2px;min-width:0}
#financeScreen .finance-history-week>div:first-child b{color:var(--ink);font-size:.7rem;font-weight:900}
#financeScreen .finance-history-week small{display:block;color:var(--muted);font-size:.57rem;font-weight:800;line-height:1.2}
#financeScreen .finance-history-week>span{display:grid;gap:2px;min-width:0;text-align:right}
#financeScreen .finance-history-week>span b{overflow:hidden;color:var(--ink);font-size:.68rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
#financeScreen .finance-history-week-bars{display:grid;gap:4px}
#financeScreen .finance-history-week-bars i{display:block;width:var(--pct);min-width:3px;height:5px;border-radius:999px}
#financeScreen .finance-history-week-bars i.planned,#financeScreen .finance-history-legend i.planned{background:var(--green,#31A66B)}
#financeScreen .finance-history-week-bars i.actual,#financeScreen .finance-history-legend i.actual{background:var(--orange,#E5863B)}
#financeScreen .finance-history-week>em{grid-column:1/-1;color:var(--green-deep,var(--green));font-size:.62rem;font-style:normal;font-weight:900}
#financeScreen .finance-history-week>em.over{color:var(--orange-deep,var(--orange))}
#financeScreen .finance-history-legend{display:flex;gap:12px;color:var(--muted);font-size:.61rem;font-weight:800}
#financeScreen .finance-history-legend span{display:inline-flex;align-items:center;gap:5px}
#financeScreen .finance-history-legend i{width:9px;height:9px;border-radius:3px}
#financeScreen .finance-price-variations{display:grid;gap:0;padding-top:3px}
#financeScreen .finance-price-variations h4{margin:0;padding:7px 0;color:var(--ink);font-size:.72rem;font-weight:900}
#financeScreen .finance-price-variations article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
#financeScreen .finance-price-variations article>span{display:grid;gap:2px;min-width:0}
#financeScreen .finance-price-variations b{overflow:hidden;color:var(--ink);font-size:.7rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
#financeScreen .finance-price-variations small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#financeScreen .finance-price-variations em{flex:0 0 auto;color:var(--muted);font-size:.61rem;font-style:normal;font-weight:900}
#financeScreen .finance-price-variations em.up{color:var(--orange-deep,var(--orange))}
#financeScreen .finance-price-variations em.down{color:var(--green-deep,var(--green))}
#financeScreen #financeList :is(.market-list-item,.finance-pantry-item).needs-reconciliation{
  border-color:color-mix(in srgb,var(--orange) 58%,var(--line));
  background:color-mix(in srgb,var(--orange-soft,var(--peach-soft)) 34%,var(--card));
}
#financeScreen #financeList .market-list-item.needs-reconciliation .market-list-food small,
#financeScreen #financeList .finance-pantry-item.needs-reconciliation .finance-pantry-quantity :is(small,strong){color:var(--orange-deep,var(--orange))}
#financeScreen .finance-status-badge{
  display:inline-flex;
  width:max-content;
  margin:3px 0 0;
  padding:3px 7px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-2);
  color:var(--muted);
  font-size:.6rem;
  font-style:normal;
  font-weight:900;
  letter-spacing:.03em;
  text-transform:uppercase;
}
#financeScreen #financeSubstitutionPanel .finance-substitution-intro.finance-mode-card{
  margin-bottom:14px;
  padding:15px;
  border:1px solid color-mix(in srgb,var(--blue) 25%,var(--line));
  border-radius:18px;
  background:var(--blue-soft);
  color:var(--text);
  box-shadow:none;
}
#financeScreen #financeSubstitutionPanel .finance-substitution-intro.finance-mode-card:after{display:none}
#financeScreen #financeSubstitutionPanel .finance-substitution-intro.finance-mode-card>*{max-width:none}
#financeScreen #financeSubstitutionPanel .finance-substitution-intro.finance-mode-card .eyebrow{color:var(--blue-deep)}
#financeScreen #financeSubstitutionPanel .finance-substitution-intro.finance-mode-card h3{color:var(--ink);font-size:1.12rem}
#financeScreen #financeSubstitutionPanel .finance-substitution-intro.finance-mode-card p:not(.eyebrow){color:var(--muted);font-size:.78rem;font-weight:700}
@media(max-width:360px){
  #financeScreen .finance-dashboard-summary{grid-template-columns:1fr}
  #financeScreen .finance-tabs>button{font-size:.7rem}
  #financeScreen #financeDashboardPanel>.select-card{align-items:flex-start;flex-direction:column}
  #financeScreen #financeDashboardPanel>.select-card select{width:100%}
}
@media(min-width:700px){
  #financeScreen.active{display:block!important;max-width:1080px!important;margin-inline:auto!important}
  #financeScreen>.finance-screen-header,
  #financeScreen>.finance-tabs,
  #financeScreen>#financeDashboardPanel,
  #financeScreen>#financeShoppingPanel,
  #financeScreen>#financeSubstitutionPanel{grid-column:auto!important;width:100%!important;max-width:none!important}
  #financeScreen>#financeDashboardPanel:not([hidden]),
  #financeScreen>#financeShoppingPanel:not([hidden]),
  #financeScreen>#financeSubstitutionPanel:not([hidden]){display:block!important}
  #financeScreen #financeList{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px!important}
}

/* Economy catalogue: cards share the food library rhythm and remain in the
   page flow. Overview and alternatives can be opened without hiding the list. */
#financeScreen #financeDashboardPanel>.finance-dashboard-period,
#financeScreen #financeDashboardPanel>.select-card,
#financeScreen #financeDashboardPanel>.chart-grid{display:none!important}
#financeScreen #financeDashboardPanel .finance-impact-block{margin-top:18px;padding:0}
#financeScreen :is(.finance-dashboard-overview,.finance-dashboard-alternatives){
  min-width:0;
  margin:0 0 12px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--card);
  box-shadow:var(--shadow-soft);
}
#financeScreen :is(.finance-dashboard-overview,.finance-dashboard-alternatives)>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:68px;
  padding:14px 16px;
  border-radius:inherit;
  color:var(--ink);
  cursor:pointer;
  list-style:none;
}
#financeScreen :is(.finance-dashboard-overview,.finance-dashboard-alternatives)>summary::-webkit-details-marker{display:none}
#financeScreen :is(.finance-dashboard-overview,.finance-dashboard-alternatives)>summary>:is(span,div){display:grid;flex:1;gap:4px;min-width:0}
#financeScreen :is(.finance-dashboard-overview,.finance-dashboard-alternatives)>summary>i{display:none}
#financeScreen :is(.finance-dashboard-overview,.finance-dashboard-alternatives)>summary :is(b,strong,h3){margin:0;color:var(--ink);font-size:.94rem;font-weight:900;line-height:1.3;overflow-wrap:anywhere}
#financeScreen :is(.finance-dashboard-overview,.finance-dashboard-alternatives)>summary small{color:var(--muted);font-size:.71rem;font-weight:700;line-height:1.4}
#financeScreen :is(.finance-dashboard-overview,.finance-dashboard-alternatives)>summary::after{
  content:"+";
  display:grid;
  place-items:center;
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--blue-soft);
  color:var(--blue-deep);
  font-size:1.15rem;
  font-weight:900;
  line-height:1;
}
#financeScreen :is(.finance-dashboard-overview,.finance-dashboard-alternatives)[open]>summary{border-bottom:1px solid var(--line);border-radius:20px 20px 0 0}
#financeScreen :is(.finance-dashboard-overview,.finance-dashboard-alternatives)[open]>summary::after{content:"−"}
#financeScreen :is(.finance-dashboard-overview,.finance-dashboard-alternatives)>summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
#financeScreen .finance-dashboard-overview>.finance-dashboard-summary{margin:0;padding:16px;min-width:0}
#financeScreen .finance-dashboard-alternatives>#financeSubstitutionPanel{width:100%!important;max-width:none!important;min-width:0;margin:0!important;padding:16px;grid-column:auto!important;grid-row:auto!important}
#financeScreen label.finance-dashboard-search{
  width:100%;
  min-height:50px;
  margin:12px 0 0;
  padding:0 14px;
  border:1px solid var(--line)!important;
  border-radius:16px;
  background:var(--field,var(--card))!important;
  color:var(--muted);
  box-shadow:none;
}
#financeScreen .finance-dashboard-search>:is(svg,.finance-search-icon){flex:0 0 20px;width:20px;height:20px}
#financeScreen .finance-dashboard-search #financeDashboardSearch{
  width:100%;
  min-width:0;
  min-height:48px;
  margin:0;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--ink)!important;
  box-shadow:none!important;
  font-size:16px;
  font-weight:700;
}
#financeScreen .finance-dashboard-search #financeDashboardSearch::placeholder{color:var(--muted);opacity:1;font-size:.82rem;font-weight:600}
#financeScreen .finance-dashboard-search:focus-within{border-color:var(--blue)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 20%,transparent)}
#financeScreen .finance-dashboard-search #financeDashboardSearch:focus-visible{outline:0!important}
#financeScreen .finance-dashboard-filters{display:flex;flex-wrap:wrap;gap:8px;min-width:0;margin:8px 0 0}
.first-plan-price-origin{margin:0;color:var(--muted);font-size:.7rem;line-height:1.4}
.first-plan-price-review{min-width:0;font-size:.73rem;line-height:1.45}
.first-plan-price-review summary{cursor:pointer;color:var(--ink);font-weight:700;overflow-wrap:anywhere}
.first-plan-price-review p{margin:8px 0}
.first-plan-price-review ul{margin:8px 0;padding-left:20px;max-height:180px;overflow-y:auto;overflow-wrap:anywhere}
.first-plan-price-review button{max-width:100%;white-space:normal}
#financeScreen .finance-price-reference{display:block;color:var(--muted);font-size:.66rem;font-style:normal;line-height:1.35}
#financeScreen .finance-dashboard-filter{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:94px;min-height:44px;margin:0;padding:9px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);color:var(--ink);box-shadow:none;font-size:.78rem;font-weight:800;letter-spacing:0;line-height:1.3;text-transform:none;white-space:normal;cursor:pointer}
#financeScreen .finance-dashboard-filter::before{content:"";flex:0 0 9px;width:9px;height:5px;margin-top:-3px;border:solid currentColor;border-width:0 0 2px 2px;transform:rotate(-45deg);opacity:0}
#financeScreen .finance-dashboard-filter[aria-pressed="true"]{border-color:var(--blue);background:var(--blue-soft)}
#financeScreen .finance-dashboard-filter[aria-pressed="true"]::before{opacity:1}
#financeScreen .finance-dashboard-filter:hover{border-color:var(--blue)}
#financeScreen .finance-dashboard-filter:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
#financeScreen .finance-dashboard-results{margin:6px 2px 12px;color:var(--muted);font-size:.74rem;font-weight:750;line-height:1.4}
#financeScreen .finance-dashboard-food-list{
  display:grid;
  gap:12px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#financeScreen .finance-dashboard-food-row{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
  min-width:0;
  padding:14px;
  border:1px solid color-mix(in srgb,var(--blue) 23%,var(--line));
  border-radius:20px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--blue-soft) 24%,var(--food-card-surface,var(--card))),var(--food-card-surface,var(--card)) 75%);
  box-shadow:none;
}
#financeScreen .finance-dashboard-food-identity{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  align-items:center;
  gap:12px;
  min-width:0;
}
#financeScreen .finance-dashboard-food-identity .food-image{width:48px;height:48px;min-width:48px;margin:0;border-radius:16px}
#financeScreen .finance-dashboard-food-name{display:grid;gap:4px;min-width:0}
#financeScreen .finance-dashboard-food-name>b{color:var(--ink);font-size:.92rem;font-weight:900;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
#financeScreen .finance-dashboard-food-name .finance-status-badge{max-width:100%;margin:0;font-size:.58rem;white-space:normal}
#financeScreen .finance-dashboard-food-row:not(.inactive) .finance-status-badge{border-color:color-mix(in srgb,var(--blue) 24%,var(--line));background:var(--blue-soft);color:var(--blue-deep)}
#financeScreen .finance-dashboard-food-row.inactive{border-color:var(--line);background:var(--card)}
#financeScreen .finance-dashboard-food-controls{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:10px;align-items:end;min-width:0}
#financeScreen .finance-dashboard-food-controls>:is(.finance-market-price-fields,.finance-market-package-fields,.where-buy-button){grid-column:1/-1}
#financeScreen .finance-dashboard-field{display:grid;gap:5px;min-width:0;margin:0}
#financeScreen .finance-dashboard-field>span{color:var(--muted);font-size:.7rem;font-weight:850;line-height:1.3}
#financeScreen .finance-dashboard-price{display:flex;align-items:center;gap:3px;min-width:0;padding:0 7px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2)}
#financeScreen .finance-dashboard-price>span{color:var(--muted);font-size:.69rem;font-weight:900}
#financeScreen .finance-dashboard-price input{width:100%;min-width:0;padding:7px 0;border:0;background:transparent;color:var(--ink);font-size:.78rem;font-weight:900;text-align:right;outline:0}
#financeScreen .finance-dashboard-price:focus-within{border-color:var(--blue);box-shadow:0 0 0 2px color-mix(in srgb,var(--blue) 15%,transparent)}
#financeScreen .finance-dashboard-food-controls .finance-dashboard-price{min-height:46px;padding:0 12px;border-radius:12px;background:var(--field,var(--card))}
#financeScreen .finance-dashboard-food-controls .finance-dashboard-price input{min-height:44px;margin:0;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--ink)!important;box-shadow:none!important;font-size:16px;font-weight:850;text-align:left}
#financeScreen .finance-dashboard-food-controls .finance-dashboard-price input:focus-visible{outline:0!important}
#financeScreen .finance-dashboard-food-controls .finance-dashboard-price:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 20%,transparent)}
#financeScreen .finance-dashboard-food-controls .finance-dashboard-unit{min-height:46px;padding:0 30px 0 12px;border:1px solid var(--line)!important;border-radius:12px;background:var(--field,var(--card))!important;color:var(--ink)!important;font-size:16px;line-height:1.3}
#financeScreen .finance-dashboard-food-controls .finance-market-package-fields>label{display:grid;gap:5px;min-width:0;margin:0}
#financeScreen .finance-dashboard-food-controls .finance-market-package-fields>label>span{color:var(--muted);font-size:.7rem;font-weight:850;line-height:1.3;overflow-wrap:anywhere}
#financeScreen .finance-dashboard-food-controls .finance-market-package-quantity input{width:100%;min-width:0;min-height:46px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--field,var(--card));color:var(--ink);font:inherit;font-size:16px;font-weight:800;line-height:1.3}
#financeScreen .finance-dashboard-food-controls .finance-market-package-quantity input:focus-visible{border-color:var(--ink);outline:2px solid var(--ink);outline-offset:2px}
#financeScreen .finance-market-package-quantity input[readonly]:disabled{border-color:transparent!important;background:transparent!important;color:var(--muted)!important;-webkit-text-fill-color:var(--muted);box-shadow:none;opacity:1!important;cursor:default}
#financeScreen .finance-dashboard-food-row .where-buy-button{min-width:0;min-height:46px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--blue-deep);font-size:.74rem;line-height:1.3;white-space:normal;text-align:center}
@media(min-width:700px){
  #financeScreen .finance-dashboard-food-row{grid-template-columns:minmax(180px,1fr) minmax(330px,1.4fr);gap:20px;align-items:center;padding:16px}
  #financeScreen .finance-dashboard-food-row .where-buy-button{grid-column:auto;min-height:46px}
}
#financeScreen #financeList.market-list-mode{display:grid;grid-template-columns:1fr;gap:9px}
#financeScreen #financeList.market-list-mode .market-list-group{display:grid;gap:6px}
#financeScreen #financeList.market-list-mode .market-list-group>h4{margin:4px 2px 0;color:var(--muted);font-size:.62rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
#financeScreen #financeList.market-list-mode .market-list-group>div{display:grid;gap:7px}
#financeScreen #financeList .market-list-item{grid-template-columns:minmax(0,1fr) auto 42px!important;gap:8px!important;padding:8px!important}
#financeScreen #financeList .market-list-food{position:static;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;place-items:initial;gap:10px;width:auto;height:auto;min-width:0;padding:0;border:0;border-radius:12px;background:transparent;color:inherit;font-size:inherit;font-weight:inherit;text-align:left;cursor:pointer}
#financeScreen #financeList .market-list-food:before{display:none!important;content:none!important}
#financeScreen #financeList .market-list-food:focus-visible{outline:0!important;box-shadow:0 0 0 2px var(--blue)!important}
#financeScreen #financeList .market-list-food:disabled{cursor:default;opacity:.82}
#financeScreen #financeList .market-list-food>span:last-child{display:grid;gap:3px;width:100%;min-width:0}
#financeScreen #financeList .market-list-food b{display:block;width:100%;overflow:hidden;color:var(--ink);font-size:.8rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
#financeScreen #financeList .market-list-food small{color:var(--muted);font-size:.68rem;font-weight:800;line-height:1.25}
#financeScreen #financeList .finance-market-state{display:inline-flex;width:max-content;max-width:100%;overflow:hidden;color:var(--muted);font-size:.59rem;font-style:normal;font-weight:900;letter-spacing:.02em;text-overflow:ellipsis;white-space:nowrap}
#financeScreen #financeList .finance-market-state.low,#financeScreen #financeList .finance-pantry-state.low{color:var(--orange-deep,var(--orange))}
#financeScreen #financeList .finance-market-state.reconciliation,#financeScreen #financeList .finance-pantry-state.reconciliation{color:var(--orange-deep,var(--orange))}
#financeScreen #financeList .market-list-item.urgent{border-color:color-mix(in srgb,var(--orange) 45%,var(--line))}
#financeScreen #financeList .finance-market-math{min-height:30px;padding:5px 7px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--muted);font-size:.59rem;font-weight:900;white-space:nowrap}
#financeScreen #financeList .finance-market-math:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
#financeScreen #financeList .finance-market-math:before{display:none!important;content:none!important}
#financeScreen #financeList .market-list-item [data-market-check]{position:relative;display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid rgba(102,127,255,.24);border-radius:50%;background:var(--blue-soft);color:var(--blue);font-size:1rem;font-weight:950}
#financeScreen #financeList .market-list-item [data-market-check]:before{content:"";width:10px;height:6px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;opacity:0;transform:rotate(-45deg) translate(1px,-1px)}
#financeScreen #financeList .market-list-item.checked [data-market-check]{border-color:rgba(71,181,116,.34);background:#2F8C5B;color:#fff}
#financeScreen #financeList .market-list-item.checked [data-market-check]:before{opacity:1}
#financeScreen #financeList .market-list-item.checked .market-list-food{background:transparent!important;color:inherit!important}
#financeScreen #financeList .market-list-item.checked .finance-market-math{border-color:var(--line)!important;background:var(--surface-2)!important;color:var(--muted)!important}
#financeScreen #financeList .finance-pantry-state{color:var(--green-deep,var(--green));font-size:.6rem;font-style:normal;font-weight:900;line-height:1.2}
#financeScreen #financeList .finance-pantry-count{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#financeScreen .finance-market-header{align-items:flex-start}
#financeScreen .finance-market-header [data-finance-pantry-review]{flex:0 0 auto;margin-top:3px;white-space:nowrap}
#financeScreen .finance-pantry-review-modal{display:grid;gap:15px}
#financeScreen .finance-pantry-review-list{display:grid;gap:8px}
#financeScreen .finance-pantry-review-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}
#financeScreen .finance-pantry-review-row.urgent,#financeScreen .finance-pantry-review-row.low{border-color:color-mix(in srgb,var(--orange) 45%,var(--line))}
#financeScreen .finance-pantry-review-row.reconciliation{border-color:color-mix(in srgb,var(--orange) 62%,var(--line));background:color-mix(in srgb,var(--orange-soft,var(--peach-soft)) 30%,var(--surface-2))}
#financeScreen .finance-pantry-review-row>span{display:grid;gap:2px;min-width:0}
#financeScreen .finance-pantry-review-row b{overflow:hidden;color:var(--ink);font-size:.79rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
#financeScreen .finance-pantry-review-row small,#financeScreen .finance-pantry-review-empty{margin:0;color:var(--muted);font-size:.68rem;font-weight:700;line-height:1.35}
:is(.finance-market-item-modal,.finance-calculation-modal) .finance-calculation-list{display:grid;grid-template-columns:minmax(0,1fr);gap:0;min-width:0;margin:0;border:1px solid var(--line);border-radius:16px;background:var(--surface-2);overflow:hidden}
:is(.finance-market-item-modal,.finance-calculation-modal) .finance-calculation-list>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.55fr);align-items:center;gap:12px;min-width:0;padding:12px 14px;border-bottom:1px solid var(--line)}
:is(.finance-market-item-modal,.finance-calculation-modal) .finance-calculation-list>div:last-child{border-bottom:0}
:is(.finance-market-item-modal,.finance-calculation-modal) .finance-calculation-list dt{min-width:0;color:var(--muted);font-size:.78rem;font-weight:750;line-height:1.4;overflow-wrap:anywhere}
:is(.finance-market-item-modal,.finance-calculation-modal) .finance-calculation-list dd{min-width:0;margin:0;color:var(--ink);font-size:.92rem;font-weight:900;line-height:1.35;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
:is(.finance-market-item-modal,.finance-calculation-modal) .finance-calculation-list>.finance-calculation-purchase{background:var(--blue-soft)}
:is(.finance-market-item-modal,.finance-calculation-modal) .finance-calculation-purchase dt{color:var(--ink);font-weight:900}
:is(.finance-market-item-modal,.finance-calculation-modal) .finance-calculation-purchase dd{font-size:1.05rem}
#financeScreen .finance-pantry-modal{display:grid;gap:15px}
#financeScreen .finance-pantry-modal .sheet-title{margin:0}
#financeScreen .finance-pantry-input-label{display:grid;gap:7px;color:var(--ink);font-size:.76rem;font-weight:900}
#financeScreen .finance-pantry-input-label input{width:100%;min-height:44px;padding:9px 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);color:var(--ink);font-size:1rem;font-weight:900}
#financeScreen .finance-pantry-input-label input:focus{border-color:var(--blue);outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 16%,transparent)}
@media(max-width:520px){
  #financeScreen #financeList .finance-pantry-item{grid-template-columns:minmax(0,1fr) auto;gap:7px}
  #financeScreen #financeList .finance-pantry-quantity{justify-items:end}
  #financeScreen #financeList .finance-pantry-edit{grid-column:1/-1;justify-self:start}
  #financeScreen #financeList .market-list-item{grid-template-columns:minmax(0,1fr) 42px!important}
  #financeScreen #financeList .market-list-food{grid-column:1;grid-row:1}
  #financeScreen #financeList .market-list-item [data-market-check]{grid-column:2;grid-row:1}
  #financeScreen #financeList .finance-market-math{grid-column:1;grid-row:2;justify-self:start}
  #financeScreen .finance-history-week{grid-template-columns:minmax(66px,.8fr) minmax(36px,1fr) minmax(58px,.7fr) minmax(58px,.7fr);gap:6px}
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-dashboard-price,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-pantry-input-label input{background:var(--surface-2);border-color:var(--line)}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen #financeList :is(.market-list-item,.finance-pantry-item).needs-reconciliation{
  border-color:color-mix(in srgb,var(--orange) 62%,var(--line))!important;
  background:color-mix(in srgb,var(--orange) 12%,var(--surface-2))!important;
}

/* Keep catalogue pagination visible as a deliberate action instead of a full
   width ghost strip. The same treatment is used by the Economy pantry list. */
#foodsScreen [data-food-more],
#financeScreen .finance-load-more{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:center!important;
  gap:8px!important;
  width:min(320px,calc(100% - 24px))!important;
  min-height:46px!important;
  margin:12px auto 8px!important;
  padding:0 18px!important;
  border:1px solid color-mix(in srgb,var(--blue) 24%,var(--line))!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,var(--surface-2),var(--card))!important;
  color:var(--ink)!important;
  box-shadow:0 9px 20px color-mix(in srgb,var(--blue) 10%,transparent)!important;
  font-size:.73rem!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.01em!important;
  text-align:center!important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
}
#foodsScreen [data-food-more]::after,
#financeScreen .finance-load-more::after{
  content:"+";
  display:inline-grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--blue-soft);
  color:var(--blue-deep);
  font-size:1rem;
  font-weight:900;
  line-height:1;
}
#foodsScreen [data-food-more]:hover,
#financeScreen .finance-load-more:hover{
  border-color:color-mix(in srgb,var(--blue) 46%,var(--line))!important;
  box-shadow:0 12px 24px color-mix(in srgb,var(--blue) 16%,transparent)!important;
  transform:translateY(-1px);
}
#foodsScreen [data-food-more]:active,
#financeScreen .finance-load-more:active{transform:translateY(1px)}
#foodsScreen [data-food-more]:focus-visible,
#financeScreen .finance-load-more:focus-visible{
  outline:0!important;
  box-shadow:0 9px 20px color-mix(in srgb,var(--blue) 10%,transparent),0 0 0 3px color-mix(in srgb,var(--blue) 20%,transparent)!important;
}
#financeScreen .finance-load-more[hidden]{display:none!important}
#financeScreen .finance-dashboard-unit{
  width:100%;
  min-width:0;
  min-height:34px;
  padding:6px 20px 6px 8px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--surface-2);
  color:var(--ink);
  font-size:.66rem;
  font-weight:900;
  line-height:1;
}
#financeScreen .finance-dashboard-unit:focus-visible{
  border-color:var(--blue);
  outline:0;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--blue) 15%,transparent);
}

/* COR008: the inline purchase measure reuses the accessible app listbox. */
#financeDashboardFoodList .finance-dashboard-unit.profile-sex-picker-native{
  position:absolute!important;width:1px!important;min-width:1px!important;max-width:1px!important;
  height:1px!important;min-height:1px!important;max-height:1px!important;padding:0!important;
  margin:0!important;border:0!important;opacity:0!important;clip-path:inset(50%)!important;pointer-events:none!important;
}
#financeDashboardFoodList .finance-market-package-measure.profile-sex-picker-field::after{display:none}
#financeDashboardFoodList .profile-sex-picker{width:100%;min-width:0}
#financeDashboardFoodList .finance-measure-picker-trigger{
  display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;min-height:46px;
  margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--field,var(--card));
  color:var(--ink);font:inherit;font-size:16px;font-weight:800;line-height:1.4;letter-spacing:0;
  text-align:start;text-transform:none;touch-action:manipulation;
}
#financeDashboardFoodList .profile-sex-picker-value{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#financeDashboardFoodList .finance-measure-picker-trigger::after{
  content:"";flex:0 0 8px;width:8px;height:8px;margin-right:3px;margin-top:-4px;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);
}
#financeDashboardFoodList .finance-measure-picker-trigger[aria-expanded="true"]::after{margin-top:4px;transform:rotate(225deg)}
#financeDashboardFoodList .finance-measure-picker-trigger:is(:focus-visible,[aria-expanded="true"]){border-color:var(--blue);outline:2px solid var(--blue);outline-offset:2px}
#financeDashboardFoodList .finance-measure-picker-trigger:disabled{opacity:.55;cursor:not-allowed}


@media(forced-colors:active){#financeDashboardFoodList .finance-measure-picker-trigger{background:Canvas;color:CanvasText;border-color:ButtonText}}

/* Economy control panel v2: one quiet summary, one decision-making chart and
   progressive spending exploration. This block intentionally comes last so it
   wins over the legacy finance dashboard layout at every breakpoint. */
#financeScreen .finance-screen-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin:0 0 12px;
  padding:2px 2px 0;
}
#financeScreen .finance-screen-header>div:first-child{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;width:100%}
#financeScreen .finance-screen-header h2{margin:0;color:var(--ink);font-size:clamp(1.35rem,2.5vw,1.78rem);font-weight:950;letter-spacing:-.03em;line-height:1.05}
#financeScreen .finance-header-period{display:grid;justify-items:end;gap:5px;min-width:0}
#financeScreen .finance-header-period-label{color:var(--muted);font-size:.59rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
#financeScreen .finance-header-period #financeTotals:not([hidden]){display:flex;align-items:center;gap:3px;margin:0;padding:3px;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--card) 88%,transparent);box-shadow:none}
#financeScreen .finance-header-period #financeTotals .finance-total{min-height:28px;padding:0 10px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:.65rem;font-weight:900;line-height:1;white-space:nowrap}
#financeScreen .finance-header-period #financeTotals .finance-total.active{background:var(--blue-soft);color:var(--blue-deep);box-shadow:none}
#financeScreen .finance-header-period #financeTotals .finance-total.disabled{opacity:.45;cursor:not-allowed}
#financeScreen .finance-header-period #financeTotals .finance-total span{display:block}
#financeScreen #financeDashboardPanel>.finance-dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:0 2px}
#financeScreen #financeDashboardPanel>.finance-dashboard-heading h3{margin:0;color:var(--ink);font-size:1rem;font-weight:950;letter-spacing:-.015em}
#financeScreen .finance-dashboard-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
#financeScreen .finance-dashboard-heading-actions .finance-dashboard-link{min-height:30px;padding:0 10px;border:1px solid color-mix(in srgb,var(--blue) 25%,var(--line));border-radius:999px;background:var(--surface-2);color:var(--blue-deep);font-size:.63rem;font-weight:950;line-height:1;white-space:nowrap}
#financeScreen .finance-dashboard-heading-actions .finance-dashboard-link:hover{border-color:var(--blue);background:var(--blue-soft)}
#financeScreen .finance-dashboard-summary-primary{display:grid;gap:3px;min-width:0}
#financeScreen .finance-dashboard-summary-primary>span{color:var(--muted);font-size:.62rem;font-weight:950;letter-spacing:.07em;text-transform:uppercase}
#financeScreen .finance-dashboard-summary-primary>strong{color:var(--ink);font-size:clamp(1.55rem,4vw,2rem);font-weight:950;letter-spacing:-.04em;line-height:1}
#financeScreen .finance-dashboard-summary-primary>small{color:var(--muted);font-size:.7rem;font-weight:750;line-height:1.35}
#financeScreen .finance-dashboard-summary-meta{display:grid;justify-items:end;gap:4px;color:var(--muted);font-size:.67rem;font-weight:850;line-height:1.3;text-align:right}
#financeScreen .finance-dashboard-summary-meta span{display:block}
#financeScreen .finance-dashboard-summary-meta em{display:block;padding:4px 8px;border-radius:999px;background:var(--green-soft);color:var(--green-deep);font-size:.62rem;font-style:normal;font-weight:950}
#financeScreen .finance-dashboard-summary-meta em.over{background:var(--red-soft);color:var(--red)}
#financeScreen #financeDashboardPanel>.chart-grid{display:block!important;margin:0 0 12px}
#financeScreen #financeDashboardPanel>.chart-grid .finance-evolution-card{display:grid;gap:9px;margin:0;padding:15px 16px 12px;border:1px solid var(--line);border-radius:20px;background:var(--card);box-shadow:var(--shadow-soft)}
#financeScreen .finance-evolution-card>#financeChartTitle{margin:0;color:var(--ink);font-size:.78rem;font-weight:950;letter-spacing:.02em;text-transform:none}
#financeScreen .finance-evolution-chart{width:100%;min-height:188px}
#financeScreen .finance-evolution-plot{width:100%;height:188px}
#financeScreen .finance-evolution-plot svg{display:block;width:100%;height:100%;overflow:visible}
#financeScreen .finance-evolution-grid line{stroke:color-mix(in srgb,var(--line) 86%,transparent);stroke-width:1}
#financeScreen .finance-evolution-actual{fill:none;stroke:var(--blue);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
#financeScreen .finance-evolution-forecast{fill:none;stroke:var(--orange);stroke-width:2;stroke-dasharray:5 5;stroke-linecap:round}
#financeScreen .finance-evolution-budget{stroke:var(--muted);stroke-width:1.5;stroke-dasharray:3 4;opacity:.65}
#financeScreen .finance-evolution-plot circle{fill:var(--card);stroke:var(--blue);stroke-width:2;cursor:pointer;transition:transform .18s ease,fill .18s ease}
#financeScreen .finance-evolution-plot circle:hover,#financeScreen .finance-evolution-plot circle:focus{fill:var(--blue);outline:0;transform:scale(1.35);transform-box:fill-box;transform-origin:center}
#financeScreen .finance-evolution-labels text{fill:var(--muted);font-size:10px;font-weight:800}
#financeScreen .finance-evolution-legend{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;color:var(--muted);font-size:.62rem;font-weight:850;line-height:1.2}
#financeScreen .finance-evolution-legend span{display:inline-flex;align-items:center;gap:5px}
#financeScreen .finance-evolution-legend i{display:inline-block;width:18px;height:3px;border-radius:999px;background:var(--blue)}
#financeScreen .finance-evolution-legend i.forecast{background:var(--orange);background-image:linear-gradient(90deg,var(--orange) 55%,transparent 55%);background-size:7px 100%}
#financeScreen .finance-evolution-legend i.budget{height:0;border-top:2px dashed var(--muted);background:transparent}
#financeScreen .finance-evolution-legend .muted{opacity:.8}
#financeScreen .finance-legacy-donut{display:none!important}
#financeScreen .finance-spend-explorer{display:grid;gap:10px;margin:0 0 14px;padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--card);box-shadow:var(--shadow-soft)}
#financeScreen .finance-explorer-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
#financeScreen .finance-explorer-head h3{margin:0;color:var(--ink);font-size:.98rem;font-weight:950;letter-spacing:-.015em}
#financeScreen .finance-explorer-head .finance-dashboard-link{min-height:29px;padding:0 9px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);color:var(--blue-deep);font-size:.62rem;font-weight:900}
#financeScreen .finance-explorer-tabs{display:flex;align-items:center;gap:4px;width:max-content;max-width:100%;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2)}
#financeScreen .finance-explorer-tab{min-height:29px;padding:0 11px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:.63rem;font-weight:950;line-height:1;white-space:nowrap}
#financeScreen .finance-explorer-tab.active{background:var(--blue-soft);color:var(--blue-deep)}
#financeScreen .finance-explorer-list{display:grid;gap:9px}
#financeScreen .finance-explorer-row{display:grid;gap:5px;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left}
#financeScreen .finance-explorer-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--ink);font-size:.73rem;line-height:1.2}
#financeScreen .finance-explorer-row-head b{overflow:hidden;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
#financeScreen .finance-explorer-row-head strong{flex:0 0 auto;font-size:.71rem;font-weight:950}
#financeScreen .finance-explorer-bar{display:block;width:100%;height:7px;overflow:hidden;border-radius:999px;background:var(--surface-2)}
#financeScreen .finance-explorer-bar i{display:block;width:var(--pct);height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),color-mix(in srgb,var(--blue) 48%,var(--green)));transition:width .25s ease}
#financeScreen .finance-explorer-row:nth-child(3n+2) .finance-explorer-bar i{background:linear-gradient(90deg,var(--green),color-mix(in srgb,var(--green) 45%,var(--orange)))}
#financeScreen .finance-explorer-row:nth-child(3n) .finance-explorer-bar i{background:linear-gradient(90deg,var(--orange),color-mix(in srgb,var(--orange) 45%,var(--red)))}
#financeScreen .finance-explorer-row>small{color:var(--muted);font-size:.59rem;font-weight:800;line-height:1.2}
#financeScreen .finance-impact-block{margin-top:0!important}
#financeScreen .finance-dashboard-note{margin:8px 0 0;color:var(--muted);font-size:.62rem;line-height:1.35}
.finance-price-manager-sheet{width:min(calc(100% - 28px),700px);max-height:min(90dvh,820px);margin-bottom:14px;padding:18px 16px 16px;border:1px solid var(--line);border-radius:28px;background:var(--modal-surface)}
.finance-price-manager-sheet .sheet-close{top:18px;right:14px}
.finance-price-manager{display:grid;gap:10px}
.finance-price-manager .sheet-title{margin-bottom:0}
.finance-price-manager-intro{margin:0;color:var(--muted);font-size:.76rem;line-height:1.4}
.finance-price-manager-legend{display:flex;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:12px;background:var(--surface-2);color:var(--muted);font-size:.61rem;font-weight:850}
.finance-price-manager-rows{display:grid;gap:8px;max-height:58dvh;overflow:auto;padding:1px 2px 8px;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--blue) 34%,var(--line)) transparent}
.finance-price-manager-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,220px) auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:15px;background:var(--card)}
.finance-price-manager-food{display:grid;gap:3px;min-width:0}
.finance-price-manager-food>b{overflow:hidden;color:var(--ink);font-size:.76rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}
.finance-price-manager-food>small{color:var(--muted);font-size:.6rem;font-weight:800;line-height:1.25}
.finance-price-manager-controls{display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:7px;align-items:end}
.finance-price-manager-controls label{display:grid;gap:4px;min-width:0}
.finance-price-manager-controls label>span{color:var(--muted);font-size:.58rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.finance-price-manager-controls .finance-dashboard-price{min-height:34px}
.finance-price-manager-controls .finance-dashboard-price input{padding:6px 0;font-size:.72rem}
.finance-price-manager-controls .finance-dashboard-unit{min-height:34px;padding-block:5px;font-size:.61rem}
.finance-price-manager-converted{display:grid;justify-items:end;gap:2px;min-width:78px;text-align:right}
.finance-price-manager-converted>span{color:var(--muted);font-size:.56rem;font-weight:900;line-height:1.1}
.finance-price-manager-converted>strong{color:var(--ink);font-size:.78rem;font-weight:950;line-height:1}
.finance-price-manager-converted>small{color:var(--muted);font-size:.57rem;font-weight:800}
.finance-price-manager-empty{padding:18px;color:var(--muted);font-size:.75rem;text-align:center}
#financeScreen .finance-active-filters{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%;gap:5px;margin-top:2px}
#financeScreen .finance-active-filter-label{color:var(--muted);font-size:.57rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
#financeScreen .finance-active-filter-chips{display:flex;flex-wrap:wrap;min-width:0;max-width:100%;gap:5px}
#financeScreen .finance-active-filter-chip{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%;min-height:25px;padding:4px 8px;border:1px solid color-mix(in srgb,var(--blue) 26%,var(--line));border-radius:999px;background:var(--blue-soft);color:var(--blue-deep);font-size:.59rem;font-weight:900;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
#financeScreen .finance-active-filter-chip b{font-size:.8rem;font-weight:950;line-height:1}
#financeScreen .finance-active-filter-chip:hover{border-color:var(--blue);background:color-mix(in srgb,var(--blue-soft) 72%,var(--card))}
@media(max-width:620px){
  #financeScreen .finance-screen-header>div:first-child{align-items:flex-start;gap:10px}
  #financeScreen .finance-header-period{justify-items:end}
  #financeScreen .finance-header-period #financeTotals:not([hidden]){max-width:calc(100vw - 120px);overflow:auto}
  #financeScreen .finance-header-period #financeTotals .finance-total{padding-inline:8px;font-size:.6rem}
  #financeScreen .finance-dashboard-summary-meta{justify-items:start;text-align:left}
  #financeScreen .finance-dashboard-heading-actions{gap:5px}
  #financeScreen .finance-dashboard-heading-actions .finance-dashboard-link{padding-inline:8px;font-size:.59rem}
  #financeScreen .finance-spend-explorer{padding:14px}
  #financeScreen .finance-explorer-tabs{width:100%;justify-content:space-between}
  #financeScreen .finance-explorer-tab{flex:1;padding-inline:7px}
  .finance-price-manager-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .finance-price-manager-controls{grid-column:1/-1;grid-row:2}
  .finance-price-manager-converted{grid-column:2;grid-row:1}
}
@media(max-width:380px){
  #financeScreen .finance-header-period-label{display:none}
  #financeScreen .finance-header-period #financeTotals .finance-total{padding-inline:6px;font-size:.57rem}
  #financeScreen .finance-dashboard-heading{align-items:flex-start!important}
  #financeScreen .finance-dashboard-heading-actions{justify-content:flex-start}
}

/* Economy filters: keep the selected state legible across every palette.
   The active surface uses the theme's soft accent instead of relying on a
   dark/bright blue that can collapse against the text in alternate themes. */
#financeScreen #financeShoppingPanel .finance-filter-chip,
#financeScreen .finance-filter-chip{
  border:1px solid color-mix(in srgb,var(--ink) 18%,var(--line))!important;
  background:var(--card)!important;
  color:var(--ink)!important;
}
#financeScreen #financeShoppingPanel .finance-filter-chip:hover,
#financeScreen #financeShoppingPanel .finance-filter-chip:focus-visible,
#financeScreen .finance-filter-chip:hover,
#financeScreen .finance-filter-chip:focus-visible{
  border-color:color-mix(in srgb,var(--blue) 58%,var(--line))!important;
  background:color-mix(in srgb,var(--blue-soft) 54%,var(--card))!important;
  color:var(--ink)!important;
}
#financeScreen #financeShoppingPanel .finance-filter-chip.active,
#financeScreen .finance-filter-chip.active{
  border-color:color-mix(in srgb,var(--blue) 76%,var(--line))!important;
  background:var(--blue-soft)!important;
  color:var(--ink)!important;
  box-shadow:0 7px 16px color-mix(in srgb,var(--blue) 18%,transparent)!important;
}
#financeScreen #financeShoppingPanel .finance-filter-chip.active .finance-filter-asset,
#financeScreen #financeShoppingPanel .finance-filter-chip.active .finance-filter-icon,
#financeScreen #financeShoppingPanel .finance-filter-chip.active .finance-filter-meal-icon,
#financeScreen .finance-filter-chip.active .finance-filter-asset,
#financeScreen .finance-filter-chip.active .finance-filter-icon,
#financeScreen .finance-filter-chip.active .finance-filter-meal-icon{
  border-color:color-mix(in srgb,var(--blue) 58%,var(--line))!important;
  background:var(--card)!important;
  color:var(--blue)!important;
}
#financeScreen #financeShoppingPanel .finance-filter-chip:focus-visible,
#financeScreen .finance-filter-chip:focus-visible,
#financeScreen .finance-active-filter-chip:focus-visible{
  outline:2px solid var(--blue)!important;
  outline-offset:2px;
}
#financeScreen .finance-active-filter-chip{
  border-color:color-mix(in srgb,var(--blue) 58%,var(--line))!important;
  background:var(--blue-soft)!important;
  color:var(--ink)!important;
}
#financeScreen .finance-active-filter-chip:hover{
  border-color:var(--blue)!important;
  background:color-mix(in srgb,var(--blue-soft) 78%,var(--card))!important;
  color:var(--ink)!important;
}

/* Economy cost overview: show projections as comparisons and reserve time
   series for confirmed purchases only. */
#financeScreen .finance-dashboard-summary{display:grid;grid-template-columns:1fr;gap:10px}
#financeScreen .finance-dashboard-summary-grid{display:grid;grid-template-columns:minmax(0,1.3fr) repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
#financeScreen .finance-dashboard-summary-primary,
#financeScreen .finance-dashboard-summary-stat{display:grid;align-content:center;gap:4px;min-width:0;padding:3px 0}
#financeScreen .finance-dashboard-summary-primary>span,
#financeScreen .finance-dashboard-summary-stat>span{color:var(--muted);font-size:.6rem;font-weight:950;letter-spacing:.07em;text-transform:uppercase}
#financeScreen .finance-dashboard-summary-primary>strong,
#financeScreen .finance-dashboard-summary-stat>strong{color:var(--ink);font-size:clamp(1.2rem,3vw,1.7rem);font-weight:950;letter-spacing:-.035em;line-height:1.05}
#financeScreen .finance-dashboard-summary-primary>small,
#financeScreen .finance-dashboard-summary-stat>small{color:var(--muted);font-size:.64rem;font-weight:750;line-height:1.3}
#financeScreen .finance-dashboard-summary-stat{padding-left:14px;border-left:1px solid color-mix(in srgb,var(--line) 80%,transparent)}
#financeScreen .finance-dashboard-summary-stat.empty strong{color:var(--muted);font-size:1rem;letter-spacing:-.01em}
#financeScreen .finance-dashboard-budget{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-top:9px;border-top:1px solid color-mix(in srgb,var(--line) 76%,transparent);color:var(--muted);font-size:.63rem;font-weight:850}
#financeScreen .finance-dashboard-budget em{padding:4px 8px;border-radius:999px;background:var(--green-soft);color:var(--green-deep);font-size:.6rem;font-style:normal;font-weight:950}
#financeScreen .finance-dashboard-budget em.over{background:var(--red-soft);color:var(--red)}
#financeScreen .finance-evolution-card>#financeChartTitle{font-size:.84rem;letter-spacing:-.01em}
#financeScreen .finance-evolution-chart{min-height:0}
#financeScreen .finance-cost-comparison{display:grid;gap:13px;padding:5px 0 2px}
#financeScreen .finance-cost-comparison-row{display:grid;gap:6px}
#financeScreen .finance-cost-comparison-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--ink);font-size:.72rem;font-weight:900}
#financeScreen .finance-cost-comparison-head strong{font-size:.76rem;font-weight:950}
#financeScreen .finance-cost-comparison-track{display:block;width:100%;height:12px;overflow:hidden;border-radius:999px;background:var(--surface-2);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 72%,transparent)}
#financeScreen .finance-cost-comparison-track i{display:block;width:var(--pct);height:100%;min-width:0;border-radius:inherit;transition:width .25s ease}
#financeScreen .finance-cost-comparison-track i.planned{background:linear-gradient(90deg,var(--green-deep,var(--green)),color-mix(in srgb,var(--green) 62%,var(--green-soft,var(--surface-3))))}
#financeScreen .finance-cost-comparison-track i.actual{background:linear-gradient(90deg,var(--orange),color-mix(in srgb,var(--orange) 42%,var(--yellow-soft,var(--surface-2))))}
#financeScreen .finance-cost-comparison-row.actual .finance-cost-comparison-track{background:color-mix(in srgb,var(--orange-soft,var(--surface-2)) 48%,var(--surface-2))}
#financeScreen .finance-cost-empty{display:flex;align-items:flex-start;gap:8px;margin-top:13px;padding:10px 11px;border:1px dashed color-mix(in srgb,var(--blue) 36%,var(--line));border-radius:13px;background:color-mix(in srgb,var(--blue-soft) 35%,var(--card));color:var(--muted)}
#financeScreen .finance-cost-empty>span{flex:0 0 auto;color:var(--blue);font-size:1.05rem;font-weight:950;line-height:1.1}
#financeScreen .finance-cost-empty p{margin:0;font-size:.67rem;font-weight:750;line-height:1.4}
#financeScreen .finance-cost-result{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin:12px 0 0;color:var(--muted);font-size:.66rem;font-weight:800}
#financeScreen .finance-cost-result span{font-weight:900}
#financeScreen .finance-cost-result strong{color:var(--green-deep,var(--green));font-size:.86rem;font-weight:950}
#financeScreen .finance-cost-result small{font-size:.6rem;font-weight:750}
#financeScreen .finance-cost-legend{display:flex;align-items:center;gap:9px 14px;flex-wrap:wrap;margin-top:12px;color:var(--muted);font-size:.62rem;font-weight:850;line-height:1.2}
#financeScreen .finance-cost-legend span{display:inline-flex;align-items:center;gap:5px}
#financeScreen .finance-cost-legend i{display:inline-block;width:18px;height:4px;border-radius:999px;background:var(--blue)}
#financeScreen .finance-cost-legend i.next{background:var(--orange)}
#financeScreen .finance-cost-legend i.recorded{background:var(--orange)}
#financeScreen .finance-cost-legend i.actual{background:var(--orange)}
#financeScreen .finance-cost-legend i.planned{background:var(--green-deep,var(--green))}
#financeScreen .finance-cost-legend i.saved{background:var(--purple,var(--orange))}
#financeScreen .finance-cost-legend i.saved.over{background:var(--red)}
#financeScreen .finance-cost-history{display:grid;gap:9px}
#financeScreen .finance-cost-history-plot{position:relative;display:flex;align-items:flex-end;gap:10px;height:176px;padding:24px 7px 24px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to bottom,transparent 0,transparent 48px,color-mix(in srgb,var(--line) 64%,transparent) 49px)}
#financeScreen .finance-cost-planned-marker{position:absolute;z-index:1;top:calc(24px + (128px * var(--planned-position) / 100));left:0;right:0;display:flex;align-items:center;gap:5px;color:var(--blue-deep);font-size:.58rem;font-weight:900;line-height:1;pointer-events:none}
#financeScreen .finance-cost-planned-marker::after{content:"";flex:1;border-top:1px dashed color-mix(in srgb,var(--blue) 68%,var(--line))}
#financeScreen .finance-cost-planned-marker b{padding-right:2px;background:var(--card);font-weight:950}
#financeScreen .finance-cost-history-bar{position:relative;display:flex;flex:1;align-items:center;justify-content:flex-end;min-width:0;height:128px;padding:0 0 0;border:0;background:transparent;color:var(--ink);cursor:pointer;flex-direction:column}
#financeScreen .finance-cost-history-bar i{display:block;width:min(34px,72%);height:var(--bar-height);min-height:0;border-radius:8px 8px 3px 3px;background:linear-gradient(180deg,var(--green),color-mix(in srgb,var(--green) 48%,var(--blue)));box-shadow:0 5px 12px color-mix(in srgb,var(--green) 14%,transparent);transition:height .25s ease,filter .18s ease}
#financeScreen .finance-cost-history-bar:hover i,#financeScreen .finance-cost-history-bar:focus-visible i{filter:saturate(1.12) brightness(1.06)}
#financeScreen .finance-cost-history-bar:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:7px}
#financeScreen .finance-cost-history-bar small{position:absolute;bottom:-18px;max-width:100%;overflow:hidden;color:var(--muted);font-size:.56rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
#financeScreen .finance-cost-history-value{position:absolute;top:-18px;max-width:100%;overflow:hidden;color:var(--ink);font-size:.55rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
#financeScreen .finance-cost-history-total{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:.65rem;font-weight:850}
#financeScreen .finance-cost-history-total strong{color:var(--ink);font-size:.86rem;font-weight:950}
#financeScreen .finance-cost-history-savings strong{color:var(--green-deep,var(--green))}
#financeScreen .finance-cost-history-savings.over strong{color:var(--red)}
#financeScreen .market-list-finish{position:fixed;z-index:990;right:0;bottom:calc(82px + var(--safe-bottom));left:0;display:flex;align-items:center;justify-content:center;width:min(calc(100% - 28px),calc(var(--app-width) - 28px));min-height:50px;margin:0 auto;padding:12px 16px;border:1px solid color-mix(in srgb,var(--orange) 60%,var(--line));border-radius:16px;background:color-mix(in srgb,var(--orange) 32%,var(--card));color:var(--ink);box-shadow:var(--shadow);font-size:.9rem;font-weight:950;line-height:1.35}
#financeScreen .market-list-finish:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
#financeScreen #financeShoppingPanel:has(>.market-list-finish:not([hidden])){padding-bottom:76px}
html:has(#financeScreen.active #financeShoppingPanel:not([hidden])>.market-list-finish:not([hidden])){scroll-padding-bottom:calc(152px + var(--safe-bottom))}
body.modal-active #financeScreen .market-list-finish{visibility:hidden;pointer-events:none}
@media(max-width:1099px){
  body.keyboard-focus #financeScreen .market-list-finish{position:static;width:100%;margin:10px 0;box-shadow:none}
}
@media(min-width:1100px){
  #financeScreen .market-list-finish{right:auto;bottom:calc(16px + var(--safe-bottom));left:calc(50% + var(--desktop-rail)/2);width:calc(var(--app-width) - var(--desktop-rail) - clamp(48px,4vw,76px));transform:translateX(-50%)}
  html:has(#financeScreen.active #financeShoppingPanel:not([hidden])>.market-list-finish:not([hidden])){scroll-padding-bottom:92px}
}
.finance-purchase-review-sheet{width:min(calc(100% - 28px),620px);max-height:min(90dvh,780px);margin-bottom:14px;padding:18px 16px 16px;border:1px solid var(--line);border-radius:28px;background:var(--modal-surface)}
.finance-purchase-review-modal{display:grid;gap:11px}
.finance-purchase-review-modal .sheet-title{margin-bottom:0}
.finance-purchase-review-list{display:grid;gap:8px;max-height:48dvh;overflow:auto;padding:1px 2px 3px;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--orange) 44%,var(--line)) transparent}
.finance-purchase-review-row{display:grid;grid-template-columns:minmax(0,1fr) 118px 108px;gap:8px;align-items:end;padding:10px;border:1px solid var(--line);border-radius:15px;background:var(--card)}
.finance-purchase-review-row>div{display:grid;gap:3px;min-width:0;align-self:center}
.finance-purchase-review-row>div>b{color:var(--ink);font-size:.82rem;font-weight:950;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.finance-purchase-review-row>div>small{color:var(--muted);font-size:.68rem;font-weight:750;line-height:1.4;overflow-wrap:anywhere}
.finance-purchase-review-row label,.finance-purchase-review-field{display:grid;gap:4px;min-width:0}
.finance-purchase-review-row label>span,.finance-purchase-review-field>span{color:var(--muted);font-size:.68rem;font-weight:850;letter-spacing:0;line-height:1.4;text-transform:none;overflow-wrap:anywhere}
.finance-purchase-review-row input,.finance-purchase-review-field input{width:100%;min-width:0;min-height:44px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:var(--field,var(--card));color:var(--ink);font:inherit;font-size:16px;font-weight:800}
.finance-purchase-review-row input:focus-visible,.finance-purchase-review-field input:focus-visible{border-color:var(--ink);outline:2px solid var(--ink);outline-offset:2px}
.finance-purchase-review-modal input[aria-invalid="true"]{--finance-input-alert:color-mix(in srgb,var(--red) 78%,var(--ink));border-color:var(--finance-input-alert);background:color-mix(in srgb,var(--red) 6%,var(--field,var(--card)));box-shadow:inset 3px 0 0 var(--finance-input-alert)}
.finance-purchase-review-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:5px 12px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);color:var(--ink);font-size:.8rem;font-weight:850;line-height:1.4}
.finance-purchase-review-summary>:is(small,p){grid-column:1/-1;min-width:0;margin:0;color:var(--muted);font-size:.72rem;font-weight:650;line-height:1.45;overflow-wrap:anywhere}
.finance-purchase-review-summary #financePurchaseReviewTotal{min-width:0;color:var(--ink);font-size:1.22rem;font-weight:950;line-height:1.2;overflow-wrap:anywhere}
.finance-purchase-review-summary .finance-purchase-use-prices{grid-column:1/-1;justify-self:stretch;width:100%;min-width:0;min-height:44px;margin-top:4px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--orange) 42%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--orange) 14%,var(--card));color:var(--ink);font:inherit;font-size:.82rem;font-weight:850;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.finance-purchase-review-summary .finance-purchase-use-prices:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
@media(max-width:520px){
  .finance-purchase-review-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}
  .finance-purchase-review-row>div{grid-column:1/-1}
}
@media(max-width:980px){
  #financeScreen .finance-dashboard-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 12px}
  #financeScreen .finance-dashboard-summary-primary{grid-column:1/-1;padding-bottom:8px;border-bottom:1px solid color-mix(in srgb,var(--line) 80%,transparent)}
  #financeScreen .finance-dashboard-summary-stat{padding-left:0;border-left:0}
  #financeScreen .finance-dashboard-summary-stat:nth-child(3){padding-left:12px;border-left:1px solid color-mix(in srgb,var(--line) 80%,transparent)}
}
@media(max-width:380px){
  #financeScreen .finance-dashboard-summary-grid{grid-template-columns:1fr}
  #financeScreen .finance-dashboard-summary-primary{grid-column:auto}
  #financeScreen .finance-dashboard-summary-stat:nth-child(3){padding-left:0;border-left:0}
}

#financeScreen .finance-incomplete-notice{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 14px;padding:13px 14px;border:1px solid color-mix(in srgb,var(--orange) 42%,var(--line));border-radius:15px;background:color-mix(in srgb,var(--orange-soft,var(--peach-soft)) 34%,var(--card));box-shadow:0 8px 20px color-mix(in srgb,var(--orange) 7%,transparent)}
#financeScreen .finance-incomplete-copy{display:grid;gap:3px;min-width:0}
#financeScreen .finance-incomplete-kicker{color:var(--orange-deep,var(--orange));font-size:.58rem;font-weight:950;letter-spacing:.07em;text-transform:uppercase}
#financeScreen .finance-incomplete-copy>strong{color:var(--ink);font-size:.86rem;font-weight:950;line-height:1.2}
#financeScreen .finance-incomplete-copy>p{max-width:680px;margin:0;color:var(--muted);font-size:.68rem;font-weight:700;line-height:1.4}
#financeScreen .finance-incomplete-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;gap:7px}
#financeScreen .finance-incomplete-action{min-height:44px;white-space:nowrap}
@media(max-width:640px){
  #financeScreen .finance-incomplete-notice{display:grid;gap:11px}
  #financeScreen .finance-incomplete-actions{justify-content:flex-start}
  #financeScreen .finance-incomplete-action{flex:1 1 150px}
}

/* One shopping list presents planned foods and freely added items together.
   Checking an item prepares the existing purchase review. */
#financeScreen .finance-market-summary{display:grid;gap:3px;margin:-3px 0 12px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--blue) 22%,var(--line));border-radius:13px;background:color-mix(in srgb,var(--blue-soft) 30%,var(--card))}
#financeScreen .finance-market-summary[hidden]{display:none!important}
#financeScreen .finance-market-list-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:5px 12px;min-width:0}
#financeScreen .finance-market-list-count{color:var(--text);font-size:.8rem;line-height:1.4}
#financeScreen .finance-market-list-count>b{color:var(--ink);font-size:1rem;font-weight:900}
#financeScreen .finance-market-list-summary>strong{color:var(--ink);font-size:1rem;font-weight:900;line-height:1.3;font-variant-numeric:tabular-nums}
#financeScreen .finance-market-list-summary>small{grid-column:1/-1;color:var(--muted);font-size:.68rem;line-height:1.4;overflow-wrap:anywhere}
#financeScreen #financeShoppingPanel .finance-market-search{margin-bottom:10px;padding:0;border:0;background:transparent;box-shadow:none}
#financeScreen .finance-market-summary-copy{display:grid;gap:2px}
#financeScreen .finance-market-summary-copy>span{color:var(--blue-deep,var(--blue));font-size:.58rem;font-weight:950;letter-spacing:.065em;text-transform:uppercase}
#financeScreen .finance-market-summary-copy>strong{color:var(--ink);font-size:.8rem;font-weight:950;line-height:1.25}
#financeScreen .finance-market-summary-copy>small{color:var(--muted);font-size:.66rem;font-weight:750;line-height:1.35}
#financeScreen #financeList.market-list-mode{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important}
#financeScreen #financeList .market-list-item{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;gap:10px!important;align-items:center!important;min-height:78px;padding:12px 1px!important;border:0!important;border-radius:0!important;border-bottom:1px solid color-mix(in srgb,var(--line) 82%,transparent)!important;background:transparent!important;box-shadow:none!important}
#financeScreen #financeList>.market-list-item:last-child{border-bottom:0!important}
#financeScreen #financeList .market-list-item.checked{background:color-mix(in srgb,var(--green-soft) 28%,transparent)!important}
#financeScreen #financeList .market-list-item.purchased{background:color-mix(in srgb,var(--green) 7%,transparent)!important}
#financeScreen #financeList .market-list-item.needs-reconciliation{padding-inline:8px!important;border:1px solid color-mix(in srgb,var(--orange) 45%,var(--line))!important;border-radius:11px!important;background:color-mix(in srgb,var(--orange-soft,var(--peach-soft)) 28%,var(--card))!important}
#financeScreen #financeList .market-list-food{grid-template-columns:38px minmax(0,1fr);gap:9px}
#financeScreen #financeList .market-list-food>.food-image{width:38px;height:38px;min-width:38px;border-radius:12px}
#financeScreen #financeList .market-list-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;width:100%}
#financeScreen #financeList .market-list-head>strong{flex:0 0 auto;color:var(--ink);font-size:.75rem;font-weight:950;white-space:nowrap}
#financeScreen #financeList .finance-manual-item-icon{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--blue-deep)}
#financeScreen #financeList .finance-manual-item-icon>svg{display:block;width:22px;height:22px}
#financeScreen #financeList .finance-market-origin{display:inline-flex;justify-self:start;max-width:100%;color:var(--muted);font-size:.61rem;font-style:normal;font-weight:750;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
#financeScreen #financeList .manual-item .finance-market-origin{color:var(--blue-deep)}
#financeScreen #financeList .purchased .finance-market-origin{color:var(--green-deep,var(--green))}
#financeScreen #financeList .market-list-item [data-market-record-check]{grid-column:2;grid-row:1;display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--ink)}
#financeScreen #financeList .market-list-item [data-market-record-check]::before{content:"";width:11px;height:7px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;opacity:0;transform:rotate(-45deg) translate(1px,-1px)}
#financeScreen #financeList .market-list-item [data-market-record-check][aria-pressed="true"]{border-color:var(--blue);background:var(--blue-soft);color:var(--ink)}
#financeScreen #financeList .market-list-item [data-market-record-check][aria-pressed="true"]::before{opacity:1}
#financeScreen #financeList .market-list-item [data-market-record-check]:disabled{opacity:.72;cursor:default}
#financeScreen #financeList .market-list-item [data-market-record-check]:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
#financeScreen .finance-market-removed{min-width:0;margin-top:16px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
#financeScreen .finance-market-removed>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:11px 12px;list-style:none;color:var(--ink);font-size:.76rem;font-weight:850;line-height:1.4;cursor:pointer}
#financeScreen .finance-market-removed>summary::-webkit-details-marker{display:none}
#financeScreen .finance-market-removed>summary>span{flex:1;min-width:0}
#financeScreen .finance-market-removed>summary>b{flex:0 0 auto;color:var(--muted);font-size:.7rem}
#financeScreen .finance-market-removed>summary::after{content:"+";flex:0 0 auto;color:var(--muted);font-size:1.1rem}
#financeScreen .finance-market-removed[open]>summary{border-bottom:1px solid var(--line)}
#financeScreen .finance-market-removed[open]>summary::after{content:"−"}
#financeScreen .finance-market-removed>summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
#financeScreen .finance-market-removed-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;border-bottom:1px solid var(--line)}
#financeScreen .finance-market-removed-row:last-child{border-bottom:0}
#financeScreen .finance-market-removed-row>span{display:grid;gap:4px;min-width:0}
#financeScreen .finance-market-removed-row b{color:var(--ink);font-size:.77rem;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
#financeScreen .finance-market-removed-row small{color:var(--muted);font-size:.64rem;line-height:1.4}
#financeScreen .finance-market-removed-row button{min-height:44px;padding:8px 10px;font-size:.7rem;line-height:1.3;white-space:normal}
#financeScreen #financeList .market-list-item [data-market-check]{grid-column:2;grid-row:1;width:36px;height:36px}
#financeScreen #financeList .finance-market-state{margin-top:1px}
#financeScreen #financeList .finance-market-state.unpriced,#financeScreen #financeList .finance-pantry-state.unpriced{color:var(--blue-deep,var(--blue))}
#financeScreen .finance-market-empty,#financeScreen .finance-pantry-empty{display:grid;gap:4px;padding:13px 2px;color:var(--muted)}
#financeScreen .finance-market-empty b,#financeScreen .finance-pantry-empty b{color:var(--ink);font-size:.78rem;font-weight:950}
#financeScreen .finance-market-empty p,#financeScreen .finance-pantry-empty p{max-width:38rem;margin:0;color:var(--muted);font-size:.68rem;font-weight:750;line-height:1.42}
#financeScreen #financeList .finance-pantry-item{grid-template-columns:minmax(0,1fr) minmax(132px,.9fr) auto;min-height:74px;padding:10px 2px;border-width:0 0 1px;border-radius:0;background:transparent;box-shadow:none}
#financeScreen #financeList .finance-pantry-quantity{gap:3px;align-items:end;justify-items:end;white-space:normal;text-align:right}
#financeScreen #financeList .finance-pantry-consumption,#financeScreen #financeList .finance-pantry-coverage{max-width:170px;line-height:1.25}
#financeScreen #financeList .finance-pantry-coverage,#financeScreen #financeList .finance-pantry-count{color:var(--muted)}
#financeScreen #financeList .finance-pantry-edit{align-self:center;background:var(--surface-2)}
.finance-market-item-sheet{width:min(calc(100% - 28px),560px);max-height:min(90dvh,780px);margin-bottom:14px;padding:18px 16px 16px;border:1px solid var(--line);border-radius:28px;background:var(--modal-surface)}
:is(.finance-market-item-modal,.finance-calculation-modal){display:grid;gap:16px;min-width:0}
:is(.finance-market-item-modal,.finance-calculation-modal) .sheet-title{margin:0;min-width:0}
:is(.finance-market-item-modal,.finance-calculation-modal) .sheet-title h2{white-space:normal;overflow-wrap:anywhere}
.finance-market-item-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}
.finance-market-item-fields label{display:grid;gap:6px;min-width:0;color:var(--muted);font-size:.68rem;font-weight:850;letter-spacing:.035em;line-height:1.4;text-transform:uppercase}
.finance-market-price-fields{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:end;gap:8px;min-width:0}
:is(#financeScreen,#modal) label.finance-fractional-toggle{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:46px;margin:0;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--ink);font-size:.68rem;font-weight:750;letter-spacing:0;line-height:1.3;text-transform:none;cursor:pointer}
:is(#financeScreen,#modal) .finance-fractional-toggle>span{min-width:0;font:inherit;letter-spacing:0;line-height:1.3;text-transform:none;overflow-wrap:anywhere}
:is(#financeScreen,#modal) .finance-fractional-toggle>input[type="checkbox"]{display:block;flex:0 0 18px;width:18px;min-width:18px;height:18px;min-height:18px;margin:0;padding:0;border-radius:4px;accent-color:var(--blue);cursor:pointer}
:is(#financeScreen,#modal) .finance-fractional-toggle:has(:checked){border-color:var(--blue);background:var(--blue-soft);color:var(--ink)}
:is(#financeScreen,#modal) .finance-fractional-toggle:focus-within{outline:2px solid var(--blue);outline-offset:3px}
:is(#financeScreen,#modal) .finance-fractional-toggle:has(:disabled){cursor:default}
.finance-market-package-fields{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:end;gap:10px;min-width:0}
.finance-market-item-fields :is(select,input){width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--field,var(--card));color:var(--ink);font:inherit;font-size:16px;font-weight:800;letter-spacing:0;line-height:1.3;text-transform:none}
.finance-market-package-measure{position:relative}
.finance-market-package-measure select{appearance:none;-webkit-appearance:none;background-image:none;padding-right:34px}
.finance-market-package-measure::after{position:absolute;right:17px;bottom:20px;width:7px;height:7px;border:solid var(--muted);border-width:0 2px 2px 0;transform:rotate(45deg);pointer-events:none;content:""}
#modal .finance-market-package-quantity input[readonly]:disabled{border-color:transparent!important;background:transparent!important;color:var(--muted)!important;-webkit-text-fill-color:var(--muted);box-shadow:none;opacity:1!important;cursor:default}
.finance-market-item-fields :is(select,input):focus-visible{border-color:var(--blue);outline:2px solid color-mix(in srgb,var(--blue) 18%,transparent);outline-offset:1px}
.finance-market-item-fields .finance-dashboard-price{display:flex;align-items:center;min-width:0;min-height:46px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--field,var(--card))}
#modal .finance-market-item-fields .finance-dashboard-price input{min-height:44px;margin:0;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--ink)!important;box-shadow:none!important;outline:0!important}
.finance-market-item-fields .finance-dashboard-price:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 20%,transparent)}
.finance-market-store-field{grid-column:1/-1}
@media(max-width:520px){
  #financeScreen #financeList .finance-pantry-item{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding-block:10px}
  #financeScreen #financeList .finance-pantry-quantity{grid-column:1/-1;grid-row:2;align-items:start;justify-items:start;text-align:left}
  #financeScreen #financeList .finance-pantry-edit{grid-column:2;grid-row:1}
  #financeScreen #financeList .finance-pantry-consumption,#financeScreen #financeList .finance-pantry-coverage{max-width:none}
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) #financeScreen .finance-market-summary{background:color-mix(in srgb,var(--blue) 10%,var(--surface-2))}

.finance-market-edit-modal{display:grid;gap:16px;min-width:0}
.finance-market-edit-modal>.sheet-title{min-width:0;margin:0}
.finance-market-edit-modal .sheet-title h2{white-space:normal;overflow-wrap:anywhere}
.finance-market-edit-modal form{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0;margin:0}
.finance-market-edit-modal label{display:grid;gap:6px;min-width:0}
.finance-market-edit-modal label>span{color:var(--muted);font-size:.68rem;font-weight:850;letter-spacing:.035em;line-height:1.4;text-transform:uppercase}
.finance-market-edit-modal :is(input,select){width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--field,var(--card));color:var(--ink);font-size:16px;font-weight:800;letter-spacing:0;line-height:1.3;text-transform:none}
.finance-market-edit-modal :is(input,select):focus-visible{border-color:var(--blue);outline:2px solid var(--blue);outline-offset:2px}
.finance-market-edit-quantity-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:10px;min-width:0}
.finance-market-edit-note{margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--text);font-size:.74rem;font-weight:650;letter-spacing:0;line-height:1.45;text-transform:none;overflow-wrap:anywhere}
.finance-market-edit-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.finance-market-edit-tools button{min-width:0;min-height:44px;padding:8px 10px;font-size:.72rem;line-height:1.35;white-space:normal}
.finance-market-edit-actions{display:flex;flex-wrap:wrap;gap:10px;min-width:0;margin-top:2px;padding-top:12px;border-top:1px solid var(--line)}
.finance-market-edit-actions button{flex:1 1 110px;min-width:0;min-height:46px;padding:10px 12px;font-size:.78rem;line-height:1.35;white-space:normal}
.finance-market-edit-actions .danger{border-color:color-mix(in srgb,var(--red) 35%,var(--line));background:var(--card);color:var(--red)}

/* Agora: uma única superfície para o resumo de metas; os contêineres não criam cartões empilhados. */
#homeScreen #todayPanel.today-card,
#homeScreen #todayPanel .home-nutrient-focus,
#homeScreen #todayPanel .home-carousel-shell,
#homeScreen #todayPanel .home-macro-carousel,
#homeScreen #todayPanel .macro-disclosure-stack{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#homeScreen #todayPanel.today-card{
  margin-top:0!important;
  padding:0!important;
  border-radius:0!important;
  overflow:visible!important;
}
#homeScreen #todayPanel .home-nutrient-focus{
  margin:0 0 8px!important;
  padding:0!important;
}
#homeScreen #todayPanel .home-macro-carousel{
  margin:0!important;
  padding:0!important;
}
#homeScreen #todayPanel .macro-disclosure-stack{
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
#homeScreen #todayPanel .macro-disclosure-card{
  width:100%!important;
  margin:0!important;
}

/* Entrega de dieta: a mesma hierarquia visual para escolher, revisar e aplicar.
   A classe fica na folha existente; nenhum fluxo cria um segundo modal. */
.modal:has(.diet-delivery-sheet){
  align-items:center;
  padding:12px;
}
.diet-delivery-sheet{
  width:min(calc(100% - 24px),520px);
  max-height:min(calc(100dvh - 24px),820px);
  margin:0;
  padding:0;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--line) 88%,#fff);
  border-radius:32px;
  background:var(--modal-surface,#fff);
  box-shadow:0 28px 72px rgba(41,61,102,.24),0 2px 0 rgba(255,255,255,.82) inset;
}
.diet-delivery-sheet #modalBody{
  overflow-y:auto;
  scrollbar-width:none;
}
.diet-delivery-sheet #modalBody::-webkit-scrollbar{display:none}
.diet-delivery-modal{
  display:grid;
  gap:14px;
  padding:26px 16px 16px;
  color:var(--text);
  text-align:left;
}
.diet-delivery-heading{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  gap:11px;
}
.diet-delivery-visual{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid color-mix(in srgb,var(--blue) 16%,var(--line));
  border-radius:15px;
  background:linear-gradient(145deg,var(--blue-soft),#fff);
  color:var(--blue-deep);
  box-shadow:0 8px 18px rgba(41,61,102,.08);
}
.diet-delivery-visual img{width:23px;height:23px;object-fit:contain}
.diet-delivery-modal>.eyebrow{
  margin:0;
  color:var(--blue);
  font-size:.66rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.diet-delivery-modal>h2,
.diet-delivery-modal header h2,
.diet-delivery-heading h2{
  margin:0;
  padding-right:42px;
  color:var(--blue-deep);
  font-size:1.24rem;
  line-height:1.15;
  letter-spacing:-.02em;
}
.diet-delivery-heading .eyebrow{margin:0 0 3px}
.diet-delivery-modal>p:not(.eyebrow),
.diet-delivery-modal header p{
  margin:0;
  color:var(--text);
  font-size:.88rem;
  line-height:1.55;
}
.diet-delivery-modal>.muted{color:var(--muted)!important}
.diet-delivery-modal label{
  display:grid;
  gap:6px;
  color:var(--muted);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.diet-delivery-modal label :is(input,select){
  min-height:44px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--field,#fff);
  color:var(--ink);
  font:inherit;
  font-size:.88rem;
  letter-spacing:0;
  text-transform:none;
}
.diet-delivery-modal .first-plan-summary,
.diet-delivery-modal .planning-delivery{
  display:grid;
  gap:0;
  margin:0;
  padding:12px 14px;
  border:1px solid color-mix(in srgb,var(--blue) 14%,var(--line));
  border-radius:18px;
  background:linear-gradient(145deg,#fff,color-mix(in srgb,var(--blue-soft) 28%,#fff));
}
.diet-delivery-modal .first-plan-summary{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.diet-delivery-modal .first-plan-summary>div{
  min-width:0;
  padding:2px 5px;
  border-right:1px solid color-mix(in srgb,var(--line) 84%,transparent);
}
.diet-delivery-modal .first-plan-summary>div:last-child{border-right:0}
.diet-delivery-modal .first-plan-summary dt{
  color:var(--muted);
  font-size:.61rem;
  line-height:1.25;
}
.diet-delivery-modal .first-plan-summary dd{
  margin:5px 0 0;
  color:var(--ink);
  font-size:.82rem;
  font-weight:900;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.diet-delivery-modal .planning-delivery h3{
  margin:0 0 5px;
  color:var(--ink);
  font-size:.83rem;
}
.diet-delivery-modal .planning-delivery-values>div{padding:9px 0}
.diet-delivery-modal details{
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--line) 92%,#fff);
  border-radius:16px;
  background:var(--surface-2,#f2f5ff);
}
.diet-delivery-modal details summary{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:48px;
  padding:12px 14px;
  cursor:pointer;
  list-style:none;
  color:var(--blue-deep);
  font-size:.79rem;
  font-weight:900;
}
.diet-delivery-modal details summary::-webkit-details-marker{display:none}
.diet-delivery-modal details summary:before{
  content:"▸";
  color:var(--blue);
  font-size:.8rem;
  transition:transform .16s ease;
}
.diet-delivery-modal details[open] summary:before{transform:rotate(90deg)}
.diet-delivery-modal details>*:not(summary){margin-right:14px;margin-bottom:14px;margin-left:14px}
.diet-delivery-modal .planning-confirmation-actions{
  margin:4px -16px -16px;
  padding:14px 16px calc(14px + var(--safe-bottom));
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,color-mix(in srgb,var(--surface-2) 58%,#fff),#fff);
}
.diet-delivery-modal .planning-confirmation-actions button{
  min-height:46px;
  border-radius:12px;
  font-size:.75rem;
  font-weight:950;
}
.diet-delivery-modal .planning-confirmation-actions .primary{
  background:var(--blue-deep);
  color:#fff;
  box-shadow:0 10px 20px rgba(41,61,102,.16);
}
.diet-delivery-modal .planning-confirmation-actions .soft{
  border-color:var(--line);
  background:#fff;
  color:var(--blue-deep);
}
.diet-delivery-sheet .planning-choice-grid{gap:10px}
.diet-delivery-sheet .planning-choice-card,
.diet-delivery-sheet .copilot-plan-option{
  min-height:0;
  padding:14px;
  border-radius:18px;
  box-shadow:0 10px 24px rgba(41,61,102,.06);
}
.diet-delivery-sheet .copilot-plan-option-grid{gap:10px}
.diet-delivery-sheet .copilot-plan-option dl{gap:6px}
.diet-delivery-sheet .copilot-plan-option dl div{
  border-radius:12px;
  background:var(--surface-2,#f2f5ff);
}
.diet-delivery-sheet .planning-choice-modal>button.full,
.diet-delivery-sheet .copilot-plan-review>button.full{min-height:44px}
@media(max-width:430px){
  .modal:has(.diet-delivery-sheet){padding:8px}
  .diet-delivery-sheet{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:28px}
  .diet-delivery-modal{padding:24px 14px 14px}
  .diet-delivery-modal .first-plan-summary{grid-template-columns:1fr;gap:8px}
  .diet-delivery-modal .first-plan-summary>div{padding:0 0 8px;border-right:0;border-bottom:1px solid color-mix(in srgb,var(--line) 84%,transparent)}
  .diet-delivery-modal .first-plan-summary>div:last-child{padding-bottom:0;border-bottom:0}
  .diet-delivery-modal .planning-confirmation-actions{margin-right:-14px;margin-left:-14px;padding-right:14px;padding-left:14px}
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-delivery-sheet{
  border-color:rgba(157,174,255,.18);
  background:#101a31;
  box-shadow:0 28px 72px rgba(0,0,0,.42);
}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-delivery-modal>h2,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-delivery-modal header h2,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-delivery-modal .first-plan-summary dd,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-delivery-modal details summary{color:#F7F9FF}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-delivery-modal>p:not(.eyebrow),
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-delivery-modal header p{color:#C4D0EA}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-delivery-modal .first-plan-summary,
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-delivery-modal .planning-delivery{background:linear-gradient(145deg,#17243f,#101a31)}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-delivery-modal details{background:#17243f}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-delivery-modal .planning-confirmation-actions{background:#101a31}
:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .diet-delivery-modal .planning-confirmation-actions .soft{border-color:rgba(157,174,255,.22);background:#17243f;color:#F7F9FF}
#aiChat .outside-chat-flow .outside-chat-more > summary{
  min-height:44px;
}
#aiChat .outside-chat-flow .outside-chat-more > .text-link{
  min-height:44px;
  max-width:100%;
  padding:8px 10px;
  margin:4px 12px 4px 0;
  vertical-align:top;
  overflow-wrap:anywhere;
}
#financeScreen #financeList .market-list-item{
  grid-template-columns:minmax(0,1fr) 44px!important;
}
#financeScreen #financeList .market-list-head{
  min-width:0;
}
#financeScreen #financeList .market-list-head > b{
  flex:1 1 0;
  min-width:0;
  width:auto;
  font-size:.86rem;
  line-height:1.4;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  overflow-wrap:anywhere;
}
#financeScreen #financeList .market-list-item [data-market-check]{
  width:44px;
  height:44px;
}

/* Page-positioned Copilot scrolls as content, below fixed navigation.
   The fixed drawer/floating Copilot keeps its existing higher layer. */
#aiFab.page-placed{z-index:999!important}

/* Keep the upload target at its image width when identity space narrows. */
.avatar-editor>label{flex-shrink:0}

/* Keep the Terms link a continuous target when its label wraps. */
.profile-terms a[data-profile-terms]{display:inline-block;vertical-align:middle}

/* Copy is centered on the photo; Copilot's default anchor does not split it. */
:is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) .profile-person.ai-fab-identity{
  grid-template-rows:auto!important;row-gap:0!important;align-items:center!important;padding-bottom:24px!important;
}
:is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) .profile-person.ai-fab-identity>.hero-avatar{
  grid-column:1!important;grid-row:1!important;align-self:center!important;
}
:is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) .profile-person.ai-fab-identity>strong,
#homeScreen #homeProfile .home-profile-greeting{
  grid-column:2!important;grid-row:1!important;align-self:center!important;
}
#homeScreen #homeProfile .profile-person::before{display:none!important;content:none!important}
#homeScreen #homeProfile .home-profile-greeting{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;max-width:100%}
#homeScreen #homeProfile .home-profile-greeting>small{
  color:var(--muted);font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;line-height:1.3;
}
#homeScreen #homeProfile .home-profile-greeting>strong{margin:0!important;align-self:auto!important}

.carousel-dots button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

/* Text dates keep a readable edit size without disabling page zoom. */
#profileForm #profileBirthDate[data-date-text],
:root[data-interface] #diaryPanel input[data-date-text]{
  font-size:max(16px,1rem)!important;
  font-variant-numeric:tabular-nums;
}

/* Diary navigation reads the factual history; the day stays in the shared sheet. */
#diaryPanel.diary-card{padding:0;border:0;background:transparent;box-shadow:none}
.diary-calendar-section{max-width:660px;margin:0 auto}
.diary-calendar{--diary-fill-complete:#168b64;--diary-fill-partial:#d2a114;--diary-fill-empty:#d95f6a;--diary-project-marker:var(--ink);display:grid;gap:14px;padding:20px;border:1px solid var(--line);border-radius:26px;background:var(--card);box-shadow:var(--shadow-soft);color:var(--ink)}
.diary-calendar-heading{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px}
.diary-calendar-heading h3{margin:0;text-align:center;font-size:1.05rem;line-height:1.3;text-transform:capitalize;overflow-wrap:anywhere}
.diary-month-arrow{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:15px;background:var(--surface-2);color:var(--ink);font-size:1.8rem;line-height:1}
.diary-month-arrow:disabled{opacity:.35;cursor:default}
.diary-calendar-week,.diary-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.diary-calendar-week abbr{padding:2px;text-align:center;text-decoration:none;color:var(--muted);font-size:.68rem;font-weight:900}
.diary-calendar-day{display:grid;place-items:center;aspect-ratio:1;min-width:0;min-height:34px;padding:0;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);color:var(--ink);font-variant-numeric:tabular-nums;line-height:1}
.diary-calendar-day b{display:block;font-size:.88rem;line-height:1}
.diary-calendar-day.state-complete{border-color:color-mix(in srgb,var(--diary-fill-complete) 58%,var(--line));background:color-mix(in srgb,var(--diary-fill-complete) 17%,var(--card))}
.diary-calendar-day:is(.state-partial,.state-unknown,.state-unplanned){border-color:color-mix(in srgb,var(--diary-fill-partial) 65%,var(--line));background:color-mix(in srgb,var(--diary-fill-partial) 24%,var(--card))}
.diary-calendar-day.state-empty{border-color:color-mix(in srgb,var(--diary-fill-empty) 58%,var(--line));background:color-mix(in srgb,var(--diary-fill-empty) 16%,var(--card))}
.diary-calendar-day.other-month{opacity:.55}
.diary-calendar-day:disabled{opacity:.3;cursor:default}
.diary-calendar-day[aria-current="date"]{box-shadow:inset 0 0 0 1px var(--blue)}
.diary-calendar-day.selected{outline:2px solid var(--blue);outline-offset:1px;opacity:1}
.diary-calendar-day:enabled:hover{border-color:var(--blue)}
.diary-calendar-grid{--diary-calendar-gap:6px;overflow:visible;}
.diary-calendar-day.project-start{position:relative;overflow:visible;}
.diary-project-boundary{
  position:absolute;
  inset-inline-start:calc((var(--diary-calendar-gap) + 3px) / -2);
  top:50%;
  width:3px;
  height:72%;
  min-height:22px;
  max-height:32px;
  border-radius:2px;
  background:var(--diary-project-marker);
  box-shadow:0 0 0 1px var(--card);
  transform:translateY(-50%);
  pointer-events:none;
}
/* A Monday starts a new row: keep its separator inside the leading edge. */
.diary-calendar-day.project-start-row .diary-project-boundary{inset-inline-start:2px;}
.diary-calendar :is(button,input):focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.diary-calendar-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:7px 14px;color:var(--muted);font-size:.64rem;font-weight:750;line-height:1.3}
.diary-calendar-legend>span{display:inline-flex;align-items:center;gap:4px}
.diary-calendar-legend i{display:block;width:15px;height:15px;border:1px solid var(--line);border-radius:5px}
.diary-calendar-legend .state-complete i{border-color:var(--diary-fill-complete);background:color-mix(in srgb,var(--diary-fill-complete) 24%,var(--card))}
.diary-calendar-legend .state-partial i{border-color:var(--diary-fill-partial);background:color-mix(in srgb,var(--diary-fill-partial) 32%,var(--card))}
.diary-calendar-legend .state-empty i{border-color:var(--diary-fill-empty);background:color-mix(in srgb,var(--diary-fill-empty) 24%,var(--card))}
.diary-calendar-legend>.project-start-legend{flex-basis:100%;justify-content:center;gap:7px;margin-top:2px}
.diary-calendar-legend .project-start-legend i{flex:0 0 3px;width:3px;height:20px;border:0;border-radius:2px;background:var(--diary-project-marker);font-size:0}
.diary-calendar-lookup{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding-top:12px;border-top:1px solid var(--line)}
.diary-calendar-lookup .diary-date-search{display:grid;gap:5px;margin:0;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.diary-calendar-lookup .diary-date-search span{font-size:.65rem;color:var(--muted);font-weight:850}
.diary-calendar-lookup input{width:100%;min-width:0;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);color:var(--ink);font-size:16px!important;font-weight:850}
.diary-calendar-lookup>.soft{min-height:44px;padding-inline:18px;background:var(--surface-2);color:var(--ink)}
#modal .sheet.diary-day-sheet{width:min(640px,calc(100vw - 16px));max-width:calc(100vw - 16px);background:var(--modal-surface,var(--card));color:var(--ink)}
.diary-day-modal{display:grid;gap:22px;font-family:inherit;color:var(--ink)}
.diary-day-modal-heading h2{margin:0;font-size:1.16rem;line-height:1.4;text-transform:capitalize;letter-spacing:-.015em}
.diary-modal-content{display:grid;gap:18px;min-width:0}
#modal .diary-day-modal .diary-day-detail{display:grid;margin:0;gap:12px}
#modal .diary-day-modal .diary-meal-log-list{grid-template-columns:1fr;gap:16px!important}
#modal .diary-day-modal .diary-history-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:0!important}
#modal .diary-day-modal .diary-history-title h3{flex:1;min-width:0;margin:0;font-size:1rem!important;color:var(--ink)}
#modal .diary-day-modal .diary-access-badge{display:inline-block;flex:0 0 auto;width:max-content;min-width:0;max-width:none;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--muted);font-family:inherit;font-size:.72rem;font-weight:650;line-height:1.35;letter-spacing:0;text-transform:none;white-space:nowrap}
#modal .diary-day-modal .diary-meal-log{display:block;gap:0!important;padding:16px!important;border:1px solid var(--line);border-radius:20px!important;background:var(--card)!important;color:var(--ink);box-shadow:0 3px 10px color-mix(in srgb,var(--ink) 4%,transparent)}
#modal .diary-day-modal .diary-day-access{display:flex;justify-content:flex-end}
#modal .diary-day-modal .diary-meal-toggle{display:grid;grid-template-columns:40px minmax(0,1fr) auto 10px;align-items:center;gap:11px;min-height:44px;margin:0;padding:0;list-style:none;cursor:pointer}
#modal .diary-day-modal .diary-meal-toggle::-webkit-details-marker{display:none}
#modal .diary-day-modal .diary-meal-toggle::marker{content:""}
#modal .diary-day-modal .diary-meal-toggle:focus-visible{outline:3px solid var(--blue);outline-offset:7px;border-radius:6px}
#modal .diary-day-modal .diary-meal-chevron{grid-column:4;width:7px;height:7px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .15s}
#modal .diary-day-modal .diary-meal-log[open]>.diary-meal-toggle .diary-meal-chevron{transform:rotate(225deg)}
#modal .diary-day-modal .diary-meal-body{min-width:0}
#modal .diary-day-modal .diary-food-source{margin:15px 0 0;color:var(--muted);font-size:.75rem;font-weight:750;line-height:1.4}
#modal .diary-day-modal .diary-food-source+.diary-food-list{margin-top:7px}
#modal .diary-day-modal .diary-meal-log .meal-icon{width:40px!important;height:40px!important;border-radius:14px!important;background-color:var(--blue-soft)}
#modal .diary-day-modal .diary-meal-log .grow{display:grid;justify-items:start;gap:6px}
#modal .diary-day-modal .diary-meal-log .grow>b{color:var(--ink);font-size:.98rem;line-height:1.3;font-weight:800}
#modal .diary-day-modal .diary-meal-status{min-height:0;max-width:100%;margin:0;padding:3px 7px;border:0;border-radius:6px;background:var(--surface-2);color:var(--muted);font-size:.7rem!important;line-height:1.25;font-weight:700;letter-spacing:0;text-transform:none;white-space:normal}
#modal .diary-day-modal .ate .diary-meal-status{background:color-mix(in srgb,var(--green) 17%,var(--card));color:var(--ink)}
#modal .diary-day-modal .skipped .diary-meal-status{background:color-mix(in srgb,var(--orange) 17%,var(--card));color:var(--ink)}
#modal .diary-day-modal .unknown .diary-meal-status{background:color-mix(in srgb,var(--red) 13%,var(--card));color:var(--ink)}
#modal .diary-day-modal .diary-meal-energy{display:grid;justify-items:end;gap:2px;align-self:start;min-width:39px;padding-top:2px;font-variant-numeric:tabular-nums}
#modal .diary-day-modal .diary-meal-energy strong{font-size:1.06rem;font-weight:850;color:var(--ink);line-height:1.15}
#modal .diary-day-modal .diary-meal-energy span{font-size:.69rem;color:var(--muted);line-height:1.25}
#modal .diary-day-modal .diary-food-list{display:grid;grid-template-columns:1fr;gap:0;margin:14px 0 0;padding:0;border-top:1px solid var(--line);list-style:none}
#modal .diary-day-modal .diary-food-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;min-height:44px;margin:0;padding:10px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 65%,transparent)}
#modal .diary-day-modal .diary-food-row:last-child{border-bottom:0;padding-bottom:0}
#modal .diary-day-modal .diary-food-name{min-width:0;font-size:.9rem;font-weight:550;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}
#modal .diary-day-modal .diary-food-amount{justify-self:end;white-space:nowrap;font-size:.86rem;font-weight:750;line-height:1.4;color:var(--ink);font-variant-numeric:tabular-nums}
#modal .diary-day-modal .diary-food-amount small{font-size:.77rem;font-weight:550;color:var(--muted)}
#modal .diary-day-modal .diary-meal-note{margin:12px 0 0;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:.8rem;font-weight:500;line-height:1.5}
#modal .diary-day-modal .diary-meal-actions{display:flex;gap:9px;margin-top:15px;padding-top:13px;border-top:1px solid var(--line)}
#modal .diary-day-modal .diary-status-button{flex:1;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--ink);font-size:.84rem;font-weight:800}
#modal .diary-day-modal .diary-status-button.ate.active{border-color:color-mix(in srgb,var(--green) 60%,var(--line));background:color-mix(in srgb,var(--green) 20%,var(--card));color:var(--ink)}
#modal .diary-day-modal .diary-status-button.skipped.active{border-color:color-mix(in srgb,var(--orange) 65%,var(--line));background:color-mix(in srgb,var(--orange) 17%,var(--card));color:var(--ink)}
#modal .diary-day-modal :is(.diary-status-button,select):focus-visible{outline:3px solid var(--blue);outline-offset:3px}
#modal .diary-day-modal .diary-day-empty{margin:0;color:var(--muted);font-size:.85rem;font-weight:500;line-height:1.5}
#modal .diary-day-modal .diary-meal-log-list.is-unrecorded{gap:0!important;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:var(--card)}
#modal .diary-day-modal .is-unrecorded .diary-meal-log{padding:15px!important;border:0;border-bottom:1px solid var(--line);border-radius:0!important;background:transparent!important;box-shadow:none}
#modal .diary-day-modal .is-unrecorded .diary-meal-log:last-child{border-bottom:0}
#modal .diary-day-modal .diary-activity-control{display:grid;gap:9px;margin:0;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--ink);opacity:1}
#modal .diary-day-modal .diary-activity-control>span{color:var(--ink);font-size:.91rem;font-weight:800;line-height:1.35;text-transform:none;letter-spacing:0}
#modal .diary-day-modal .diary-activity-control select{min-height:48px;padding:10px 12px;font-size:16px;font-weight:650;color:var(--ink);border-color:var(--line);border-radius:12px;background:var(--surface-2)}
#modal .diary-day-modal .diary-activity-control>small{color:var(--muted);font-size:.76rem;font-weight:500;line-height:1.4}
#modal .diary-day-modal .diary-activity-readonly{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px}
#modal .diary-day-modal .diary-activity-readonly p{margin:0;color:var(--muted);font-size:.86rem;font-weight:650;text-align:right;line-height:1.4}
.diary-day-disclosure{min-width:0;border:1px solid var(--line);border-radius:17px;background:var(--card);overflow:hidden}
.diary-day-disclosure>summary{min-height:46px;padding:13px 14px;color:var(--ink);font-size:.8rem;font-weight:850;cursor:pointer}
.diary-day-disclosure>.diary-day-summary,.diary-day-disclosure>.diary-cycle-insight{margin:0;padding:0 12px 13px}
#modal .diary-day-modal .diary-day-summary .diary-section-title{display:none}
/* COR013: only the Diary day sheet needs the full card for its three values.
   Keep the shared Today/Analysis nutrient renderer and its figures untouched. */
#modal .diary-day-modal .diary-day-summary{container-type:inline-size}
#modal .diary-day-modal .diary-day-macros{
  display:flex!important;
  grid-template-columns:none!important;
  min-width:0;
  max-width:100%;
  gap:12px;
  padding:2px 0 8px;
  overflow-x:auto;
  overflow-y:hidden;
}
#modal .diary-day-modal .diary-day-macros>.day-macro{
  flex:0 0 auto;
  width:100%;
  min-width:0;
  max-width:none;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:auto auto auto auto;
  column-gap:0;
  row-gap:7px;
  align-items:baseline;
  min-height:0!important;
  padding:14px 10px!important;
  border-color:var(--line)!important;
  background:var(--card)!important;
  color:var(--ink);
  scroll-snap-align:start;
}
#modal .diary-day-modal .diary-day-macros>.day-macro::before{
  display:none!important;
  content:none;
}
#modal .diary-day-modal .diary-day-macros>.day-macro>span{
  grid-column:1/-1;
  grid-row:1;
  margin:0 0 2px;
  color:var(--muted)!important;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  line-height:1.4;
  letter-spacing:.03em!important;
}
#modal .diary-day-modal .diary-day-macros>.day-macro :is(b,small){
  display:contents!important;
}
#modal .diary-day-modal .diary-day-macros>.day-macro :is(b,small)>i{
  min-width:0;
  margin:0;
  padding:0 .15rem!important;
  border:0!important;
  color:var(--ink)!important;
  font-family:inherit;
  font-variant-numeric:tabular-nums;
  line-height:1.35;
  text-align:center;
}
#modal .diary-day-modal .diary-day-macros>.day-macro b>i{
  grid-row:2;
  font-size:clamp(.82rem,4cqi,.94rem)!important;
  font-weight:850;
}
#modal .diary-day-modal .diary-day-macros>.day-macro small>i{
  grid-row:3;
  color:var(--muted)!important;
  font-size:.625rem!important;
  font-weight:700;
  letter-spacing:0!important;
  text-transform:none!important;
  white-space:normal!important;
}
#modal .diary-day-modal .diary-day-macros>.day-macro :is(b,small)>i:nth-child(1){grid-column:1}
#modal .diary-day-modal .diary-day-macros>.day-macro :is(b,small)>i:nth-child(2){grid-column:2}
#modal .diary-day-modal .diary-day-macros>.day-macro :is(b,small)>i:nth-child(3){grid-column:3}
#modal .diary-day-modal .diary-day-macros>.day-macro :is(b,small)>i+i{
  border-left:1px solid var(--line)!important;
}
#modal .diary-day-modal .diary-day-macros>.day-macro>.progress{
  grid-column:1/-1;
  grid-row:4;
  margin-top:2px;
  background:var(--surface-2)!important;
}
/* Text enlargement can leave less than twelve readable ems. Reflow each
   label with its figure instead of shrinking text or scrolling inside a card. */
@container(max-width:12rem){
  #modal .diary-day-modal .diary-day-macros>.day-macro{
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:repeat(8,auto);
  }
  #modal .diary-day-modal .diary-day-macros>.day-macro :is(b,small)>i:nth-child(n){
    grid-column:1;
    padding:0!important;
    text-align:left;
    border:0!important;
  }
  #modal .diary-day-modal .diary-day-macros>.day-macro small>i:nth-child(1){grid-row:2}
  #modal .diary-day-modal .diary-day-macros>.day-macro b>i:nth-child(1){grid-row:3}
  #modal .diary-day-modal .diary-day-macros>.day-macro small>i:nth-child(2){grid-row:4}
  #modal .diary-day-modal .diary-day-macros>.day-macro b>i:nth-child(2){grid-row:5}
  #modal .diary-day-modal .diary-day-macros>.day-macro small>i:nth-child(3){grid-row:6}
  #modal .diary-day-modal .diary-day-macros>.day-macro b>i:nth-child(3){grid-row:7}
  #modal .diary-day-modal .diary-day-macros>.day-macro>.progress{grid-row:8}
}
/* Food base controls share one row with the title; other feature controls retain text. */
#foodsScreen .interface-icon-button:focus-visible,.minimal-goals-summary:focus-visible{
  outline:2px solid var(--blue)!important;
  outline-offset:3px!important;
}
#homeScreen .home-macro-carousel .macro-disclosure-card.home>summary.minimal-goals-summary,
#planSummary .macro-disclosure-card>summary.minimal-goals-summary{
  grid-template-columns:minmax(0,1fr) 30px!important;
  align-items:center!important;
  min-height:48px!important;
  padding:7px 12px!important;
}
.minimal-goals-summary:after{grid-column:2!important}
#foodsScreen .food-onboarding-head{
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
}
#foodsScreen .food-onboarding-head h3{
  font-size:1rem!important;
  line-height:1.2!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
}
#foodsScreen .food-onboarding-head-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  justify-self:end!important;
  gap:6px!important;
}
#foodsScreen :is(.food-onboarding-manage,.food-onboarding-add,.food-base-manage-inline,.food-add-inline).interface-icon-button{
  display:inline-flex!important;
  justify-content:center!important;
  align-items:center!important;
  flex:0 0 44px!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  padding:6px!important;
  gap:0!important;
  border-radius:13px!important;
}
#foodsScreen .food-onboarding-head-actions>[data-food-onboarding-count]{
  flex:0 0 auto!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  padding:6px!important;
  align-content:center!important;
  gap:0!important;
  border-radius:13px!important;
}
#foodsScreen .food-base-save-icon{
  display:block!important;
  flex:0 0 auto;
  width:28px!important;
  height:28px!important;
  max-width:none!important;
  margin:0!important;
  object-fit:contain;
  pointer-events:none;
  user-select:none;
}
#foodsScreen :is(.food-onboarding-add,.food-add-inline)>.food-new-symbol{
  display:grid!important;
  place-items:center!important;
  width:32px!important;
  height:32px!important;
  margin:0!important;
  background:transparent!important;
  color:inherit!important;
  box-shadow:none!important;
  font-family:Arial,Helvetica,sans-serif;
  font-size:27px!important;
  font-weight:500!important;
  font-style:normal;
  line-height:1!important;
}
#foodsScreen #foodList .food-card-minimal .food-card-main{align-items:center!important}
#foodsScreen #foodList .food-card-minimal .grow{gap:7px!important}
#foodsScreen #foodList .food-card-minimal .food-card-badges{margin-top:5px!important}
#modal .app-menu-modal.mosaic{padding-top:35px}
@media(max-width:360px){
  #foodsScreen .food-onboarding-head{gap:6px!important}
  #foodsScreen .food-onboarding-head h3{font-size:.875rem!important}
  #foodsScreen .food-onboarding-head-actions{gap:4px!important}
}
@media(max-width:380px){.diary-calendar{gap:12px;padding:14px}.diary-calendar-week,.diary-calendar-grid{gap:5px}.diary-calendar-grid{--diary-calendar-gap:5px;}.diary-calendar-day{border-radius:10px}.diary-calendar-heading h3{font-size:.96rem}.diary-calendar-lookup{gap:8px}.diary-calendar-lookup>.soft{padding-inline:13px}}

/* Compact labels keep the remaining content centered after the supporting copy is removed. */
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-card.meal-card-empty{
  height:auto!important;
  min-height:0!important;
  align-content:start!important;
  align-self:start!important;
  grid-template-rows:auto auto!important;
}
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-card-empty > .meal-head,
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-card-empty > .meal-items{
  height:auto!important;
  align-content:start!important;
}
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-items > .meal-hydration-tip[data-hydration-tip="default_hydration"]{
  box-sizing:border-box;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:start!important;
  width:100%!important;
  height:auto!important;
  min-height:32px!important;
  margin-top:4px!important;
  padding:7px 10px!important;
  gap:0!important;
  text-align:center!important;
}
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-items > .meal-hydration-tip[data-hydration-tip="default_hydration"]::before{
  display:none!important;
  content:none!important;
}
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-hydration-tip[data-hydration-tip="default_hydration"] > b{
  margin:0!important;
  line-height:1.3!important;
  text-align:center!important;
}
#homeScreen.screen #homePlanModes.home-plan-modes[data-home-carousel] .plan-mode-card,
#homeScreen.screen .home-actions[data-home-carousel] .action-card{
  grid-template-columns:40px minmax(0,1fr) 16px!important;
  align-items:center!important;
  align-content:center!important;
  min-height:72px!important;
  padding:12px 14px!important;
  gap:12px!important;
  border-radius:20px;
}
#homeScreen :is(#homePlanModes,.home-actions) .action-card > .action-icon{
  width:40px!important;
  height:40px!important;
  margin:0!important;
}
#homeScreen :is(#homePlanModes,.home-actions) .action-card > .grow{
  display:flex;
  align-items:center;
  min-width:0;
  margin:0;
  padding:0;
}
#homeScreen :is(#homePlanModes,.home-actions) .action-card strong{
  margin:0;
  line-height:1.25;
  overflow-wrap:anywhere;
}
#homeScreen :is(#homePlanModes,.home-actions) .action-card > i{
  width:16px;
  height:24px;
  margin:0;
}
#homeScreen .profile-info-carousel .profile-age-stat{
  align-content:center;
  gap:5px;
}

/* Meal contents: a compact, readable row for each food in Agora and Dieta. */
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-food-list{
  display:grid;
  gap:8px;
  min-width:0;
  margin:0;
  padding:0;
  list-style:none;
}
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-food-row{
  --meal-food-accent:var(--blue);
  box-sizing:border-box;
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  align-items:center;
  column-gap:8px;
  row-gap:4px;
  min-width:0;
  min-height:52px;
  padding:8px 10px 8px 8px;
  border:2px solid color-mix(in srgb,var(--meal-food-accent) 24%,var(--line));
  border-radius:24px;
  background:linear-gradient(135deg,var(--card),color-mix(in srgb,var(--blue-soft) 35%,var(--card)));
  color:var(--ink);
}
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-food-row:is(.group-carb,.group-fruit,.group-juice){
  --meal-food-accent:var(--orange);
}
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-food-icon.food-image{
  display:grid;
  place-items:center;
  width:28px!important;
  height:28px!important;
  min-width:0;
  padding:0;
  border:0;
  border-radius:50%!important;
  box-shadow:none;
}
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-food-icon img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-food-copy{
  display:grid;
  gap:2px;
  min-width:0;
}
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-food-name,
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-food-amount{
  display:block;
  margin:0;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
  text-transform:none;
}
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-food-name{
  color:var(--ink);
  font-size:.78rem;
  font-weight:850;
  line-height:1.3;
}
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-food-amount{
  color:var(--muted);
  font-size:.68rem;
  font-weight:750;
  line-height:1.35;
}
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-food-details{
  display:grid;
  grid-column:2;
  gap:4px;
  min-width:0;
  margin-top:0;
}
:is(#homeScreen #todayPanel,#planScreen #mealList) .meal-food-details :is(.recipe-lines,.meal-food-filling){
  display:block;
  margin:0;
  color:var(--muted);
  font-size:.64rem;
  font-weight:500;
  line-height:1.45;
  white-space:normal;
  overflow-wrap:anywhere;
}

/* Current project report: one report with the approved fields grouped for scanning. */
#planAnalysisPanel .analysis-current-project .analysis-report-toggle{
  grid-template-columns:minmax(0,1fr) 24px;
  min-height:58px;
  border-bottom:1px solid var(--border,rgba(65,82,126,.12));
}
#planAnalysisPanel .analysis-project-groups{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  padding:16px;
}
#planAnalysisPanel .analysis-project-groups[hidden]{display:none;}
#planAnalysisPanel::after{
  content:"";
  display:block;
  block-size:var(--disclosure-scroll-reserve,0px);
}
#planAnalysisPanel .analysis-project-group{
  min-width:0;
  padding:14px;
  border:1px solid var(--border,rgba(65,82,126,.12));
  border-radius:14px;
  background:var(--surface,rgba(255,255,255,.55));
}
#planAnalysisPanel .analysis-project-group h4{
  margin:0 0 10px;
  color:var(--ink);
  font-size:.84rem;
  font-weight:900;
}
#planAnalysisPanel .analysis-project-group dl>div{
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:9px 0;
}
#planAnalysisPanel .analysis-project-group dl>div:first-child{border-top:0;}
#planAnalysisPanel .analysis-project-group :is(dt,dd){
  min-width:0;
  overflow-wrap:anywhere;
  line-height:1.45;
}
#planAnalysisPanel .analysis-project-group dd{font-size:.8rem;}
#planAnalysisPanel .analysis-project-group dd button{
  min-height:44px;
  max-width:100%;
  white-space:normal;
}
#planAnalysisPanel .analysis-project-group[data-project-group="nutrients"]{grid-column:1/-1;}
#planAnalysisPanel .analysis-project-group[data-project-group="nutrients"] dl{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:24px;
}
@media(max-width:767px){
  #planAnalysisPanel .analysis-project-groups{grid-template-columns:1fr;padding:12px;gap:12px;}
  #planAnalysisPanel .analysis-project-group{padding:12px;}
  #planAnalysisPanel .analysis-project-group[data-project-group="nutrients"] dl{grid-template-columns:1fr;}
}

/* Analysis: the metric and legend are the chart's controls. Keep this scope
   separate from the diary's historical chart and its desktop grid rules. */
#planScreen .plan-analysis-period .diary-glass-panel:has(.analysis-chart-interactive){
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-areas:none!important;
  gap:12px!important;
}
#planScreen .plan-analysis-period .analysis-chart-stage.analysis-chart-interactive{
  position:relative;
  order:0!important;
  gap:10px;
  padding:14px 12px 12px;
  overflow:visible;
}
#planScreen .plan-analysis-period .analysis-chart-interactive>header{
  display:flex;
  justify-content:center!important;
  align-items:center;
  min-width:0;
  padding:0;
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-metric-control,
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-metric-select{
  width:max-content!important;
  min-width:0!important;
  max-width:100%!important;
  text-transform:none;
  letter-spacing:0;
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-metric-trigger{
  justify-content:center!important;
  gap:8px!important;
  width:auto!important;
  min-width:128px!important;
  min-height:44px!important;
  padding:10px 14px!important;
  border-color:color-mix(in srgb,var(--blue) 35%,var(--line))!important;
  border-radius:999px!important;
  background:var(--blue-soft)!important;
  color:var(--ink)!important;
  font-size:.85rem!important;
  font-weight:800!important;
  line-height:1.2!important;
  white-space:normal;
  box-shadow:none!important;
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-metric-trigger i{
  position:static!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 12px!important;
  width:12px!important;
  height:12px!important;
  font-size:0!important;
  line-height:0!important;
  color:var(--blue);
  transform:none!important;
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-metric-trigger i::before{
  content:"";
  display:block;
  width:6px;
  height:6px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-1.5px) rotate(45deg);
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-metric-trigger[aria-expanded="true"] i{
  transform:rotate(180deg)!important;
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-metric-trigger:hover,
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-metric-trigger[aria-expanded="true"]{
  border-color:var(--blue)!important;
  background:color-mix(in srgb,var(--blue) 17%,var(--surface))!important;
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-metric-menu{
  --analysis-menu-thumb:color-mix(in srgb,var(--blue) 55%,var(--muted));
  --analysis-menu-track:color-mix(in srgb,var(--blue) 7%,var(--surface));
  inset:calc(100% + 6px) auto auto 50%;
  width:min(270px,calc(100vw - 72px));
  min-width:100%;
  max-height:min(280px,40dvh);
  box-sizing:border-box;
  transform:translateX(-50%);
  text-transform:none;
  letter-spacing:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-gutter:stable;
  scrollbar-color:var(--analysis-menu-thumb) var(--analysis-menu-track);
}
/* The open picker must clear floating navigation, while dialogs stay above it. */
#planScreen:has(.analysis-chart-interactive .analysis-metric-trigger[aria-expanded="true"]){
  overflow:visible!important;
}
#planScreen #planAnalysisPanel:has(.analysis-chart-interactive .analysis-metric-trigger[aria-expanded="true"]){
  position:relative;
  z-index:1110;
  overflow:visible!important;
}
#planScreen .plan-analysis-period:has(.analysis-metric-trigger[aria-expanded="true"]),
#planScreen .plan-analysis-period .diary-glass-panel:has(.analysis-metric-trigger[aria-expanded="true"]){
  overflow:visible!important;
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-metric-menu::-webkit-scrollbar{
  width:6px;
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-metric-menu::-webkit-scrollbar-track{
  margin-block:7px;
  border-radius:999px;
  background:var(--analysis-menu-track);
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-metric-menu::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:var(--analysis-menu-thumb);
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-metric-menu::-webkit-scrollbar-thumb:hover{
  background:var(--blue);
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-metric-menu::-webkit-scrollbar-button{
  display:none;
  width:0;
  height:0;
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-metric-menu button{
  min-height:44px!important;
  font-size:.83rem!important;
}
#planScreen .plan-analysis-period .analysis-chart-interactive .diary-chart{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
#planScreen .analysis-chart-interactive .analysis-chart-plot{
  position:relative;
  min-width:0;
  isolation:isolate;
}
#planScreen .plan-analysis-period .analysis-chart-interactive .diary-chart svg[data-analysis-chart-surface]{
  display:block;
  width:100%!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  border-radius:10px;
  touch-action:pan-y;
  user-select:none;
  -webkit-user-select:none;
  cursor:crosshair;
}
/* Axis labels remain readable after the SVG's 390-unit drawing scales down. */
#planScreen .plan-analysis-period .analysis-chart-interactive .diary-chart svg[data-analysis-chart-surface] :is(.chart-grid-lines,.chart-labels) text{
  font-size:16px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
}
#planScreen .analysis-chart-interactive :is(.analysis-metric-trigger,.analysis-legend-control,[data-analysis-chart-surface]):focus-visible,
#planScreen .plan-analysis-period:has(.analysis-chart-interactive) .diary-period-presets button:focus-visible{
  outline:3px solid var(--blue)!important;
  outline-offset:3px;
}
#planScreen .analysis-chart-interactive [data-analysis-chart-surface]:focus-visible{
  outline-offset:-3px;
}
#planScreen .analysis-chart-interactive .analysis-chart-line-hit{
  fill:none!important;
  stroke:transparent!important;
  stroke-width:20!important;
  pointer-events:stroke;
}
#planScreen .analysis-chart-interactive .analysis-chart-scrubber{
  pointer-events:none;
}
#planScreen .analysis-chart-interactive .analysis-chart-scrubber[hidden]{display:none!important;}
#planScreen .analysis-chart-interactive .analysis-chart-scrubber line{
  stroke:var(--muted);
  stroke-width:1;
  stroke-dasharray:3 4;
  opacity:.6;
}
#planScreen .analysis-chart-interactive .analysis-chart-scrubber circle{
  fill:var(--line,var(--blue));
  stroke:var(--card);
  stroke-width:2.5;
}
#planScreen .analysis-chart-interactive .analysis-chart-tooltip{
  position:absolute;
  z-index:4;
  display:grid;
  gap:3px;
  width:max-content;
  min-width:118px;
  max-width:calc(100% - 16px);
  box-sizing:border-box;
  margin:0;
  padding:10px 12px;
  border:1px solid color-mix(in srgb,var(--blue) 35%,var(--line));
  border-radius:12px;
  background:var(--card);
  color:var(--ink);
  box-shadow:0 7px 24px color-mix(in srgb,var(--ink) 15%,transparent);
  line-height:1.3;
  pointer-events:none;
  overflow-wrap:anywhere;
}
#planScreen .analysis-chart-interactive .analysis-chart-tooltip[hidden]{display:none!important;}
#planScreen .analysis-chart-interactive .analysis-chart-tooltip-title,
#planScreen .analysis-chart-interactive .analysis-chart-tooltip-meta{
  display:block;
  color:var(--muted);
  font-size:.69rem;
  font-weight:650;
}
#planScreen .analysis-chart-interactive .analysis-chart-tooltip-value{
  display:block;
  color:var(--ink);
  font-size:.98rem;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}
#planScreen .plan-analysis-period .analysis-chart-interactive .diary-legend{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
  justify-content:stretch!important;
  gap:7px!important;
  margin:12px 0 0;
  padding:12px 0 0;
  border-top:1px solid var(--line);
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-legend-control{
  display:grid;
  grid-template-columns:24px minmax(0,1fr) 12px;
  align-items:center;
  gap:7px;
  width:100%;
  min-width:0;
  min-height:44px;
  margin:0;
  padding:8px 9px;
  border:1px solid color-mix(in srgb,var(--blue) 30%,var(--line));
  border-radius:12px;
  background:color-mix(in srgb,var(--blue-soft) 65%,var(--card));
  color:var(--ink);
  font:750 .73rem/1.3 var(--font-primary);
  letter-spacing:0;
  text-align:left;
  white-space:normal;
  box-shadow:none;
  cursor:pointer;
}
#planScreen .analysis-chart-interactive .analysis-legend-control>span:not(.analysis-legend-state){
  display:block;
  min-width:0;
  overflow-wrap:anywhere;
}
#planScreen .analysis-chart-interactive .analysis-legend-control .analysis-legend-state{
  display:block;
  width:12px;
  color:var(--blue);
  font-size:.85rem;
  font-weight:900;
  text-align:center;
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-legend-control[aria-pressed="false"]{
  border-style:dashed;
  border-color:var(--line);
  background:var(--surface);
  color:var(--muted);
}
#planScreen .analysis-chart-interactive .analysis-legend-control[aria-pressed="false"] :is(.diary-legend-swatch,.analysis-legend-state){
  opacity:.55;
}
#planScreen .plan-analysis-period .analysis-chart-interactive .analysis-legend-control:hover{
  border-color:var(--blue);
  background:var(--blue-soft);
  color:var(--ink);
}
#planScreen .analysis-chart-interactive .analysis-legend-control .diary-legend-swatch{
  justify-self:center;
  flex:none;
  margin:0;
}
#planScreen .analysis-chart-interactive .analysis-legend-control.goal-change-legend .diary-legend-swatch{
  width:2px!important;
  height:16px!important;
  border:0!important;
  border-radius:0!important;
  background:repeating-linear-gradient(to bottom,#b37a2d 0 3px,transparent 3px 5px)!important;
}
#planScreen .analysis-chart-interactive .chart-goal-change-mark>line:not(.analysis-chart-line-hit){
  stroke:#b37a2d!important;
}
#planScreen .plan-analysis-period:has(.analysis-chart-interactive) .diary-period-presets{
  order:1!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:7px!important;
  width:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  overflow:visible;
}
#planScreen .plan-analysis-period:has(.analysis-chart-interactive) .diary-period-presets button{
  width:100%!important;
  min-width:0!important;
  min-height:44px!important;
  padding:8px 7px!important;
  border-radius:12px!important;
  font-size:.7rem!important;
  line-height:1.3;
  white-space:normal!important;
  text-align:center;
}
@media(min-width:600px){
  #planScreen .plan-analysis-period .analysis-chart-interactive .diary-legend{
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  }
  #planScreen .plan-analysis-period .analysis-chart-stage.analysis-chart-interactive{padding:18px;}
}
@media(max-width:359px){
  #planScreen .plan-analysis-period .analysis-chart-stage.analysis-chart-interactive{padding:12px 8px 10px;}
  #planScreen .plan-analysis-period .analysis-chart-interactive .analysis-legend-control{
    grid-template-columns:20px minmax(0,1fr) 10px;
    gap:5px;
    padding:8px 6px;
    font-size:.7rem;
  }
  #planScreen .plan-analysis-period .analysis-chart-interactive .diary-legend i{width:20px;}
  #planScreen .plan-analysis-period:has(.analysis-chart-interactive) .diary-period-presets button{font-size:.66rem!important;}
}
@media(prefers-reduced-motion:reduce){
  #planScreen .analysis-chart-interactive *,
  #planScreen .analysis-chart-interactive *::before,
  #planScreen .analysis-chart-interactive *::after{animation:none!important;transition:none!important;}
}

/* Day notes share the diary sheet's type and spacing without global field rings. */
#modal #modalBody .diary-day-modal .diary-day-notes{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
  min-width:0;
  margin:0;
  padding:18px 0 0;
  border-top:1px solid var(--line);
  color:var(--ink);
}
#modal #modalBody .diary-day-modal .diary-day-notes>label{
  display:block;
  min-width:0;
  margin:0;
  padding:0;
  color:var(--ink);
  font-family:inherit;
  font-size:1rem;
  font-weight:800;
  line-height:1.35;
  letter-spacing:-.01em;
  text-transform:none;
  overflow-wrap:anywhere;
}
#modal #modalBody .diary-day-modal .diary-day-notes>textarea[data-diary-note-input]{
  display:block;
  box-sizing:border-box;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:clamp(168px,28dvh,200px);
  min-height:168px!important;
  margin:0!important;
  padding:12px 14px!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  background:var(--card)!important;
  color:var(--ink)!important;
  font-family:inherit!important;
  font-size:16px!important;
  font-weight:450!important;
  line-height:1.55!important;
  letter-spacing:0!important;
  text-transform:none!important;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  resize:vertical;
  outline:0!important;
  box-shadow:none!important;
  scrollbar-width:thin;
  scrollbar-color:color-mix(in srgb,var(--blue) 40%,var(--line)) transparent;
  -webkit-user-select:text!important;
  user-select:text!important;
}
#modal #modalBody .diary-day-modal .diary-day-notes>textarea[data-diary-note-input]::placeholder{
  color:var(--muted)!important;
  opacity:1;
  font-weight:400;
}
#modal #modalBody .diary-day-modal .diary-day-notes>textarea[data-diary-note-input]:focus{
  border-color:color-mix(in srgb,var(--blue) 55%,var(--line))!important;
  outline:0!important;
  box-shadow:none!important;
}
#modal #modalBody .diary-day-modal .diary-day-notes>textarea[data-diary-note-input]:focus-visible{
  border-color:transparent!important;
  outline:2px solid var(--blue)!important;
  outline-offset:-2px!important;
  box-shadow:none!important;
}
#modal #modalBody .diary-day-modal .diary-day-notes>textarea[data-diary-note-input][readonly]{
  background:var(--surface-2)!important;
  color:var(--ink)!important;
  -webkit-text-fill-color:var(--ink)!important;
  opacity:1!important;
  cursor:text;
  pointer-events:auto;
}
#modal #modalBody .diary-day-modal .diary-note-footer{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px 14px;
  min-width:0;
}
#modal #modalBody .diary-day-modal .diary-note-footer>small{
  min-width:0;
  margin:0;
  color:var(--muted);
  font-size:.72rem;
  font-weight:600;
  line-height:1.4;
  white-space:normal;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}
#modal #modalBody .diary-day-modal .diary-day-notes button{
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
  min-height:44px!important;
  margin:0;
  padding:10px 14px!important;
  border-radius:12px!important;
  font-family:inherit;
  font-size:.82rem!important;
  font-weight:800;
  line-height:1.35!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  box-shadow:none!important;
}
#modal #modalBody .diary-day-modal .diary-note-footer>button[data-diary-note-save]{
  justify-self:end;
  width:max-content!important;
  min-width:76px!important;
  padding-inline:16px!important;
}
#modal #modalBody .diary-day-modal .diary-day-notes button:focus-visible{
  outline:2px solid var(--blue)!important;
  outline-offset:3px;
}
#modal #modalBody .diary-day-modal .diary-note-status{
  min-width:0;
  min-height:1.45em;
  margin:0;
  color:var(--muted);
  font-size:.75rem;
  font-weight:500;
  line-height:1.45;
  overflow-wrap:anywhere;
}
@media(max-width:359px){
  #modal #modalBody .diary-day-modal .diary-day-notes>textarea[data-diary-note-input]{padding:12px!important;}
  #modal #modalBody .diary-day-modal .diary-day-notes button{padding-inline:12px!important;}
}

/* Food bases: a compact carousel and two explicit actions, without affecting
   the diet, rename, delete or loading sheets that share the storage styles. */
#modal .sheet:is(.food-base-slots-sheet,.food-base-overwrite-sheet){
  width:min(480px,calc(100vw - 24px));
  max-width:calc(100vw - 24px);
  padding:0!important;
}
#modal :is(.food-base-slots-sheet,.food-base-overwrite-sheet) #modalBody{
  padding:18px 18px calc(18px + var(--safe-bottom))!important;
}
#modal :is(.food-base-slots-sheet,.food-base-overwrite-sheet) .sheet-close{
  top:18px;
  right:16px;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  box-shadow:none!important;
}
#modal #modalBody :is(.food-base-slots-card,.food-base-overwrite-card){
  display:grid;
  gap:12px;
  min-width:0;
  margin:0;
  padding:0;
}
#modal #modalBody :is(.food-base-slots-card,.food-base-overwrite-card)>h2{
  display:flex;
  align-items:center;
  min-height:44px;
  max-width:none;
  margin:0;
  padding:0 52px 0 0;
  color:var(--ink);
  font-size:1.22rem;
  font-weight:850;
  line-height:1.28;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
}
#modal .food-base-slots-card .food-base-slot-list{
  gap:12px;
  min-width:0;
  margin:0;
  padding:2px 2px 4px;
  scroll-padding-inline:2px;
}
#modal .food-base-slots-card .food-base-slot-card{
  align-content:start;
  gap:12px;
  padding:16px;
  box-shadow:none!important;
}
#modal .food-base-slots-card .plan-slot-select-surface{
  align-content:start;
  gap:12px;
  min-height:44px;
  border-radius:12px;
}
#modal .food-base-slots-card .plan-slot-select-surface>b{
  font-size:1.04rem;
  line-height:1.35;
}
#modal .food-base-slots-card .plan-slot-head{gap:8px;align-items:center;}
#modal .food-base-slots-card .plan-slot-head span{
  white-space:normal;
  overflow-wrap:anywhere;
}
#modal .food-base-slots-card .plan-slot-meta{
  align-content:start;
  gap:6px;
}
#modal .food-base-slots-card .plan-slot-meta small{
  min-height:0;
  padding:7px 9px;
  font-size:.72rem;
  line-height:1.35;
  overflow-wrap:anywhere;
}
#modal .food-base-slots-card .plan-slot-secondary-actions{
  gap:8px;
  margin:0;
  padding-top:2px;
}
#modal .food-base-slots-card .plan-slot-secondary-actions button{
  min-width:0;
  min-height:44px;
  padding:9px 8px!important;
  font-size:.73rem;
  line-height:1.3;
  white-space:normal;
  overflow-wrap:anywhere;
}
#modal .food-base-slots-card .food-base-manager-dots{
  gap:0;
  min-height:44px;
  margin:-8px 0 -10px;
}
#modal .food-base-slots-card .food-base-manager-dots>button{
  display:grid;
  place-items:center;
  flex:0 0 44px;
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  padding:0;
  border:0;
  border-radius:12px;
  background:transparent!important;
  box-shadow:none!important;
  opacity:1;
  transition:none;
}
#modal .food-base-slots-card .food-base-manager-dots>button::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:999px;
  background:color-mix(in srgb,var(--muted) 45%,transparent);
}
#modal .food-base-slots-card .food-base-manager-dots>button.active::before{
  width:20px;
  background:var(--blue);
}
#modal #modalBody :is(.food-base-slot-actions,.food-base-overwrite-actions){
  position:static;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:0;
  padding:12px 0 0;
  border-top:1px solid var(--line);
  background:transparent!important;
}
#modal #modalBody :is(.food-base-slot-actions,.food-base-overwrite-actions)>button{
  min-width:0;
  min-height:44px;
  margin:0;
  padding:11px 12px;
  font-size:.84rem;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
}
#modal .food-base-overwrite-card>.muted{
  margin:0;
  color:var(--muted);
  font-size:.86rem;
  line-height:1.5;
  overflow-wrap:anywhere;
}
#modal .food-base-overwrite-card>.food-base-overwrite-slot{
  margin:0;
  color:var(--muted);
  font-size:.72rem;
  font-weight:750;
  letter-spacing:.04em;
  line-height:1.35;
}
#modal .food-base-overwrite-card>.food-base-overwrite-status{
  margin:0;
  color:var(--red);
  font-size:.8rem;
  line-height:1.4;
  overflow-wrap:anywhere;
}
#modal .food-base-overwrite-card>.food-base-overwrite-status:empty{display:none;}
#modal :is(.food-base-slots-card,.food-base-overwrite-card) button:focus-visible,
#modal :is(.food-base-slots-sheet,.food-base-overwrite-sheet) .sheet-close:focus-visible{
  outline:2px solid var(--blue)!important;
  outline-offset:3px;
}
@media(max-width:359px){
  #modal :is(.food-base-slots-sheet,.food-base-overwrite-sheet) #modalBody{padding-inline:14px!important;}
  #modal .food-base-slots-card .food-base-slot-card{padding:14px;}
  #modal #modalBody :is(.food-base-slots-card,.food-base-overwrite-card)>h2{font-size:1.14rem;}
}

/* Reset is a single, deliberate confirmation of the pending-meals action. */
#modal .sheet.planning-reset-confirm-sheet{
  width:min(460px,calc(100vw - 24px));
  max-width:calc(100vw - 24px);
  padding:0!important;
}
#modal .planning-reset-confirm-sheet #modalBody{
  padding:18px 18px calc(18px + var(--safe-bottom))!important;
}
#modal .planning-reset-confirm-sheet .sheet-close{
  top:18px;
  right:16px;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  box-shadow:none!important;
}
#modal #modalBody .planning-reset-confirm-card{
  display:grid;
  gap:14px;
  min-width:0;
  margin:0;
  padding:0;
}
#modal #modalBody .planning-reset-confirm-card>h2{
  display:flex;
  align-items:center;
  min-height:44px;
  max-width:none;
  margin:0;
  padding:0 52px 0 0;
  color:var(--ink);
  font-size:1.2rem;
  font-weight:850;
  line-height:1.3;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
}
#modal #modalBody .planning-reset-confirm-card>p{
  margin:0;
  color:var(--muted);
  font-size:.86rem;
  line-height:1.55;
  overflow-wrap:anywhere;
}
#modal #modalBody .planning-reset-confirm-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);
  gap:10px;
  margin:0;
  padding:14px 0 0;
  border-top:1px solid var(--line);
}
#modal #modalBody .planning-reset-confirm-actions>button{
  min-width:0;
  min-height:44px;
  margin:0;
  padding:11px 12px;
  font-size:.83rem;
  font-weight:800;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
  box-shadow:none!important;
}
#modal .planning-reset-confirm-sheet .sheet-close:focus-visible,
#modal .planning-reset-confirm-card button:focus-visible,
#planScreen .plan-primary-actions [data-recover]:focus-visible{
  outline:2px solid var(--blue)!important;
  outline-offset:3px;
}
@media(max-width:359px){
  #modal .planning-reset-confirm-sheet #modalBody{padding-inline:14px!important;}
  #modal #modalBody .planning-reset-confirm-card>h2{font-size:1.12rem;}
}

/* Atlas COR001–003: one editor viewport and distinct catalogue / consumption states. */
#modal .sheet:is(.today-meal-edit-sheet,.plan-meal-edit-sheet) #modalBody{
  grid-template-rows:auto minmax(0,1fr) auto!important;
}
#modal .sheet.plan-meal-edit-sheet #modalBody{grid-template-rows:auto minmax(0,1fr) auto auto!important;}
#modal .sheet:is(.today-meal-edit-sheet,.plan-meal-edit-sheet) #modalBody>.meal-edit-title{
  min-width:0;max-width:100%;margin:0 0 12px!important;padding:0 50px 12px 0!important;
  border-radius:0!important;box-shadow:none!important;
}
#modal .sheet:is(.today-meal-edit-sheet,.plan-meal-edit-sheet) #modalBody>.meal-edit-scroll{
  position:relative;display:block!important;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;
  overscroll-behavior:contain;scroll-padding-block:4px 8px;scrollbar-width:thin;
  scrollbar-color:var(--line) transparent;padding:4px 2px 0!important;
}
#modal .sheet:is(.today-meal-edit-sheet,.plan-meal-edit-sheet) .meal-edit-scroll>.meal-edit-list{
  min-height:0!important;max-height:none!important;overflow:visible!important;
  padding:0!important;margin:0 0 10px!important;
}
#modal .sheet:is(.today-meal-edit-sheet,.plan-meal-edit-sheet) .meal-edit-scroll>.meal-edit-scroll-tail{
  display:block;flex:none;min-height:0;width:1px;pointer-events:none;
}
#modal .sheet:is(.today-meal-edit-sheet,.plan-meal-edit-sheet) .meal-edit-scroll>.meal-macro-disclosure{
  position:sticky;bottom:0;z-index:3;min-width:0;margin:0!important;padding:6px 0;
  background:var(--meal-editor-sheet-surface);
}
#modal .sheet:is(.today-meal-edit-sheet,.plan-meal-edit-sheet) .meal-edit-scroll>.meal-macro-disclosure[open]{
  position:relative;bottom:auto;padding-top:0;
}
#modal .sheet:is(.today-meal-edit-sheet,.plan-meal-edit-sheet) .meal-macro-disclosure>summary{
  gap:8px;min-height:48px;padding:10px 12px;border:1px solid var(--line)!important;border-radius:14px;
  background:var(--surface-2)!important;color:var(--ink)!important;box-shadow:none!important;
}
#modal .sheet:is(.today-meal-edit-sheet,.plan-meal-edit-sheet) .meal-macro-disclosure>summary>b>strong{white-space:nowrap;}
#modal .sheet:is(.today-meal-edit-sheet,.plan-meal-edit-sheet) .meal-macro-disclosure>summary:after{
  background:transparent!important;color:var(--muted)!important;
}

/* Search and expandable groups inherit the Foods, Economy and Balance vocabulary. */
#modal .sheet.meal-food-picker-sheet{
  width:min(720px,calc(100vw - 24px))!important;height:min(94dvh,820px);max-height:94dvh!important;
  margin:0!important;padding:0!important;background:var(--meal-editor-sheet-surface)!important;
}
#modal .sheet.meal-food-picker-sheet #modalBody{
  display:flex!important;flex-direction:column;gap:0;min-height:0;overflow:hidden!important;
  padding:18px 18px calc(10px + var(--safe-bottom))!important;
}
#modal .sheet.meal-food-picker-sheet #modalBody>.meal-food-picker-title{
  position:relative!important;flex:none;min-height:52px!important;margin:0 0 12px!important;
  padding:0 50px 12px 0!important;border:0!important;border-bottom:1px solid var(--line)!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
#modal .sheet.meal-food-picker-sheet .meal-food-picker-title .eyebrow{display:none;}
#modal .sheet.meal-food-picker-sheet .meal-food-picker-title h2{
  font-size:1.2rem!important;line-height:1.3!important;white-space:normal!important;
}
#modal .sheet.meal-food-picker-sheet #modalBody>.meal-food-catalog-search{
  display:grid!important;grid-template-columns:20px minmax(0,1fr);align-items:center;flex:none;gap:8px;
  width:100%;min-height:52px;margin:0 0 8px!important;padding:0 13px!important;
  border:1px solid var(--line)!important;border-radius:16px!important;background:var(--field,var(--card))!important;
  color:var(--muted);box-shadow:none!important;
}
#modal .sheet.meal-food-picker-sheet .meal-food-search-icon{
  position:relative;display:grid;place-items:center;width:20px;height:20px;color:var(--muted);
}
#modal .sheet.meal-food-picker-sheet .meal-food-search-icon:before{
  content:"";width:9px;height:9px;border:2px solid currentColor;border-radius:50%;
}
#modal .sheet.meal-food-picker-sheet .meal-food-search-icon:after{
  content:"";position:absolute;width:7px;height:2px;border-radius:2px;background:currentColor;
  transform:translate(6px,6px) rotate(45deg);
}
#modal .sheet.meal-food-picker-sheet #mealFoodSearch{
  display:block;width:100%;min-width:0;min-height:50px;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;color:var(--ink)!important;
  box-shadow:none!important;caret-color:var(--blue);font-size:16px!important;font-weight:700;line-height:1.4;
}
#modal .sheet.meal-food-picker-sheet #mealFoodSearch::placeholder{
  color:var(--muted);opacity:1;font-size:.85rem;font-weight:600;
}
#modal .sheet.meal-food-picker-sheet .meal-food-catalog-search:focus-within{
  border-color:var(--blue)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 20%,transparent)!important;
}
#modal .sheet.meal-food-picker-sheet #mealFoodSearch:focus-visible{outline:0!important;}
#modal .sheet.meal-food-picker-sheet .meal-food-filter-toggle{
  display:grid!important;grid-template-columns:minmax(0,1fr) 24px;flex:none;min-height:44px;
  margin:0!important;padding:8px 4px!important;border:0!important;border-radius:10px;
  background:transparent!important;box-shadow:none!important;
}
#modal .sheet.meal-food-picker-sheet .meal-food-filter-toggle span{
  color:var(--muted)!important;font-size:.78rem;font-weight:700;
}
#modal .sheet.meal-food-picker-sheet .meal-food-filter-toggle b{
  grid-row:1;width:24px;height:24px;background:var(--surface-2)!important;color:var(--muted)!important;font-size:1rem;
}
#modal .sheet.meal-food-picker-sheet .meal-food-filter-panel{
  flex:none;max-height:25dvh;overflow-y:auto;margin:0 0 8px;padding:8px 0;border:0;background:transparent!important;
}
#modal .sheet.meal-food-picker-sheet #mealFoodResults{
  flex:1 1 auto;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  scroll-padding-block:4px 12px;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding:0 3px 8px!important;
}
#modal .sheet.meal-food-picker-sheet .meal-food-group{
  min-width:0;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;
}
#modal .sheet.meal-food-picker-sheet .meal-food-group:last-child{border-bottom:0;}
#modal .sheet.meal-food-picker-sheet .meal-food-group>summary{
  display:grid;grid-template-columns:36px minmax(0,1fr) auto 18px;align-items:center;gap:10px;
  min-height:62px;margin:0;padding:10px 2px;border:0;border-radius:10px;background:transparent;
  color:var(--ink);cursor:pointer;list-style:none;
}
#modal .sheet.meal-food-picker-sheet .meal-food-group>summary::-webkit-details-marker{display:none;}
#modal .sheet.meal-food-picker-sheet .meal-food-group>summary::marker{content:"";}
#modal .sheet.meal-food-picker-sheet .meal-food-group-icon{display:block;width:36px;height:36px;object-fit:contain;}
#modal .sheet.meal-food-picker-sheet .meal-food-group-name{
  min-width:0;color:var(--ink);font-size:.9rem;font-weight:750;line-height:1.35;overflow-wrap:anywhere;
}
#modal .sheet.meal-food-picker-sheet .meal-food-group-count{
  min-width:24px;color:var(--muted);font-size:.75rem;font-weight:650;line-height:1.4;
  font-variant-numeric:tabular-nums;text-align:right;
}
#modal .sheet.meal-food-picker-sheet .meal-food-group-chevron{
  justify-self:center;width:7px;height:7px;border-right:1.5px solid var(--muted);
  border-bottom:1.5px solid var(--muted);transform:rotate(45deg);
}
#modal .sheet.meal-food-picker-sheet .meal-food-group[open] .meal-food-group-chevron{transform:rotate(225deg);}
#modal .sheet.meal-food-picker-sheet .meal-food-group>.meal-food-bubble-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:8px;
  min-width:0;margin:0;padding:2px 0 14px;
}
#modal .sheet.meal-food-picker-sheet .meal-food-bubble-choice{
  position:relative;display:grid!important;grid-template-columns:34px minmax(0,1fr) 28px;align-items:center!important;
  gap:10px;width:100%!important;max-width:none!important;min-width:0;min-height:64px!important;
  margin:0!important;padding:10px!important;border:1px solid var(--line)!important;border-radius:14px!important;
  background:var(--food-choice-surface,var(--card))!important;color:var(--ink)!important;box-shadow:none!important;text-align:left;
}
#modal .sheet.meal-food-picker-sheet .meal-food-bubble-choice[data-meal-tagged="true"]{
  grid-template-columns:34px minmax(0,1fr) 22px 28px;
}
#modal .sheet.meal-food-picker-sheet .meal-food-bubble-choice>.food-image{
  width:34px!important;height:34px!important;border-radius:10px!important;
}
#modal .sheet.meal-food-picker-sheet .meal-food-choice-copy{display:block;min-width:0;}
#modal .sheet.meal-food-picker-sheet .meal-food-choice-copy b{
  display:block!important;min-width:0;max-width:none!important;overflow:visible!important;color:var(--ink)!important;
  font-size:.9rem!important;font-weight:700;line-height:1.4!important;white-space:normal!important;
  text-overflow:clip!important;overflow-wrap:anywhere!important;-webkit-line-clamp:unset!important;
}
#modal .sheet.meal-food-picker-sheet .meal-food-tag-badge{
  display:grid;place-items:center;width:22px;height:26px;border:1px solid var(--line);
  border-radius:7px;background:var(--surface-2);color:var(--muted);
}
#modal .sheet.meal-food-picker-sheet .meal-food-tag-badge>.meal-icon{
  width:16px!important;height:16px!important;min-width:16px!important;border:0!important;border-radius:0!important;
  background-color:transparent!important;box-shadow:none!important;
}
#modal .sheet.meal-food-picker-sheet .meal-food-bubble-choice>i{
  position:static;display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line);
  border-radius:50%;background:transparent!important;color:var(--muted)!important;
  font-size:1.1rem;line-height:1;font-style:normal;
}
#modal .sheet.meal-food-picker-sheet .meal-food-bubble-choice.selected{
  border-color:var(--blue)!important;background:var(--food-choice-active-surface,var(--blue-soft))!important;
  color:var(--ink)!important;box-shadow:inset 0 0 0 1px var(--blue)!important;
}
#modal .sheet.meal-food-picker-sheet .meal-food-bubble-choice.selected>i{
  border-color:var(--blue);background:var(--blue)!important;color:var(--on-accent,#fff)!important;font-size:1.2rem;font-weight:700;
}
#modal .sheet.meal-food-picker-sheet .meal-food-bubble-choice:is(.unavailable,[disabled]){
  opacity:1!important;border-style:dashed!important;background:var(--surface-2)!important;cursor:not-allowed;
}
#modal .sheet.meal-food-picker-sheet .meal-food-bubble-choice:is(.unavailable,[disabled])>i{
  border:0;border-radius:7px;background:transparent!important;color:var(--muted)!important;font-size:.9rem;
}
#modal .sheet.meal-food-picker-sheet .meal-food-group-empty{
  grid-column:1/-1;margin:0;padding:10px 2px;color:var(--muted);font-size:.8rem;line-height:1.5;
}
#modal .sheet.meal-food-picker-sheet #modalBody>.meal-food-picker-footer{
  position:relative;bottom:auto;flex:none;margin:0!important;padding:10px 0 0!important;
  border-top:1px solid var(--line);background:var(--meal-editor-sheet-surface)!important;
}
#modal .sheet.meal-food-picker-sheet .meal-food-picker-done{min-height:48px;border-radius:14px;box-shadow:none!important;}

/* A square check represents consumption; a round minus represents catalogue inclusion. */
#modal .sheet.meal-log-sheet #modalBody .meal-log-panel{min-width:0;max-width:100%;}
#modal .sheet.meal-log-sheet #modalBody .meal-log-title{
  min-width:0;max-width:100%;min-height:64px!important;margin:0 0 2px!important;padding:0 50px 12px 0!important;
  border-radius:0!important;border-bottom:1px solid var(--line)!important;background:transparent!important;box-shadow:none!important;
}
#modal .sheet.meal-log-sheet #modalBody .meal-log-footer{
  margin:0!important;padding:12px 0 calc(4px + var(--safe-bottom))!important;
  background:var(--meal-editor-sheet-surface)!important;
}
#modal .sheet.meal-log-sheet #modalBody .meal-log-footer>.primary{box-shadow:none!important;}
#modal .sheet.meal-log-sheet #modalBody .meal-log-food-card{
  position:relative;grid-template-columns:34px minmax(0,1fr) 44px;gap:10px;min-width:0;padding:12px!important;
  border:1px solid var(--line)!important;background:var(--meal-log-card-surface)!important;box-shadow:none!important;
}
#modal .sheet.meal-log-sheet .meal-log-food-card>.food-image{width:34px!important;height:34px!important;border-radius:10px!important;}
#modal .sheet.meal-log-sheet .meal-log-food-body{min-width:0;}
#modal .sheet.meal-log-sheet .meal-log-food-body>header>b{font-size:.9rem;line-height:1.4;overflow-wrap:anywhere;}
#modal .sheet.meal-log-sheet .meal-log-food-body>header>small{font-size:.72rem;line-height:1.4;}
#modal .sheet.meal-log-sheet .meal-log-amount-control>span{font-size:.65rem;line-height:1.4;}
#modal .sheet.meal-log-sheet .meal-log-item-consumed{
  display:grid;place-items:center;align-self:start;width:44px;height:44px;min-width:44px;min-height:44px;
  margin:0;padding:0;border:1.5px solid var(--muted)!important;border-radius:50%!important;
  background:var(--meal-log-control-surface)!important;color:transparent!important;box-shadow:none!important;
  font-size:1rem;line-height:1;cursor:pointer;
}
#modal .sheet.meal-log-sheet #modalBody .meal-log-food-card.is-consumed{
  border-color:color-mix(in srgb,var(--green) 65%,var(--line))!important;background:var(--meal-log-ate-surface)!important;
}
#modal .sheet.meal-log-sheet .meal-log-item-consumed[aria-pressed="true"]{
  border-color:color-mix(in srgb,var(--green) 75%,var(--ink))!important;border-radius:12px!important;
  background:color-mix(in srgb,var(--green) 45%,#063e2a)!important;color:#fff!important;font-weight:900;
}
#modal .sheet.meal-log-sheet .meal-log-food-body .meal-log-amount-control{width:100%;max-width:270px;}
#modal .sheet.meal-log-sheet .meal-log-food-body .meal-log-stepper{
  grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;width:100%;max-width:100%;
}
#modal .sheet.meal-log-sheet .meal-log-stepper>button{width:44px;height:44px;min-width:44px;min-height:44px;}
#modal .sheet.meal-log-sheet .meal-log-stepper>input{min-width:0;min-height:44px;height:44px;padding-inline:2px;}
#modal .sheet.meal-log-sheet .meal-log-stepper>.meal-measure-button{grid-column:1/-1;width:100%;min-height:44px;}
#modal .sheet:is(.today-meal-edit-sheet,.plan-meal-edit-sheet) .meal-macro-disclosure>summary:focus-visible,
#modal .sheet.meal-food-picker-sheet :is(.meal-food-group>summary,.meal-food-bubble-choice,.meal-food-filter-toggle):focus-visible,
#modal .sheet.meal-log-sheet .meal-log-item-consumed:focus-visible{outline:3px solid var(--blue)!important;outline-offset:2px;}
@media(hover:hover){
  #modal .sheet.meal-food-picker-sheet .meal-food-group>summary:hover,
  #modal .sheet.meal-food-picker-sheet .meal-food-bubble-choice:not(.selected):not([disabled]):hover{background:var(--surface-2)!important;}
  #modal .sheet.meal-log-sheet .meal-log-item-consumed:not([aria-pressed="true"]):hover{
    border-color:var(--green)!important;background:var(--meal-log-ate-surface)!important;
  }
}
@media(max-width:430px){
  #modal .sheet.meal-food-picker-sheet{width:100%!important;}
  #modal .sheet.meal-food-picker-sheet #modalBody{padding:16px 14px calc(10px + var(--safe-bottom))!important;}
  #modal .sheet.meal-food-picker-sheet .meal-food-group>.meal-food-bubble-grid{grid-template-columns:minmax(0,1fr);}
  #modal .sheet.meal-log-sheet #modalBody .meal-log-food-card{grid-template-columns:30px minmax(0,1fr) 44px;gap:8px;padding:10px!important;}
  #modal .sheet.meal-log-sheet .meal-log-food-card>.food-image{width:30px!important;height:30px!important;}
}
@media(prefers-reduced-motion:reduce){
  #modal .sheet:is(.today-meal-edit-sheet,.plan-meal-edit-sheet,.meal-food-picker-sheet,.meal-log-sheet),
  #modal .sheet:is(.today-meal-edit-sheet,.plan-meal-edit-sheet,.meal-food-picker-sheet,.meal-log-sheet) *{
    scroll-behavior:auto!important;transition:none!important;animation:none!important;
  }
}

/* Coexistência: Lovable's open lists and photographic cards, on Osyra tokens.
   One presentation of the existing contacts, partner records and invite actions. */
#modal:has(.coexistence-layout-sheet){align-items:center;padding:10px 0}
#modal .sheet.coexistence-layout-sheet{
  --coexist-quiet:color-mix(in srgb,var(--ink) 66%,var(--surface));
  --coexist-accent:var(--blue);
  --coexist-soft:color-mix(in srgb,var(--blue) 7%,var(--surface));
  --coexist-thumb:color-mix(in srgb,var(--blue) 42%,var(--line));
  width:min(calc(100% - 28px),560px)!important;max-height:calc(100dvh - 28px)!important;
  margin:0!important;padding:0!important;border:1px solid var(--line)!important;
  border-radius:28px!important;background:var(--surface)!important;
  color:var(--ink);box-shadow:0 28px 90px color-mix(in srgb,var(--ink) 22%,transparent);
}
#modal .coexistence-layout-sheet #modalBody{display:flex;overflow:hidden!important;padding:0!important}
#modal .sheet.coexistence-layout-sheet #modalBody [hidden]{display:none!important}
:root #modal .sheet.coexistence-layout-sheet>.sheet-close{
  top:17px!important;right:20px!important;width:44px!important;height:44px!important;
  border:1px solid var(--line)!important;border-radius:50%!important;background:var(--surface)!important;color:var(--ink)!important;box-shadow:none!important;
}
#modal .coexistence-layout-sheet .sheet-close:before{color:inherit!important}
#modal .coexistence-layout-sheet :is(button,input,summary):focus-visible{
  outline:2px solid var(--coexist-accent)!important;outline-offset:3px;
}
#modal .coexistence-layout-sheet :is(.refined,.restaurant-detail-modal){
  display:flex;flex-direction:column;gap:0;width:100%;min-width:0;
  height:min(80dvh,790px);max-height:calc(100dvh - 30px);padding:0;
  font-size:.84rem;line-height:1.5;
}
#modal .coexistence-layout-sheet .coexistence-id-line{
  flex:none;display:flex;align-items:center;gap:12px;min-height:79px;
  margin:0;padding:17px 72px 17px 24px;border:0;background:var(--surface);
}
#modal .coexistence-layout-sheet .coexistence-id-line b{
  color:var(--coexist-quiet);font-size:.8rem;font-weight:650;letter-spacing:.01em;
}
#modal .coexistence-layout-sheet .coexistence-refresh{
  display:grid;place-items:center;flex:none;width:44px;min-width:44px;min-height:44px;
  margin-left:auto;padding:0;border:0;border-radius:50%;background:var(--surface-2);
  color:var(--ink);box-shadow:none;
}
#modal .coexistence-layout-sheet .coexistence-refresh svg{width:19px;height:19px}
#modal .coexistence-layout-sheet .coexistence-tabs{
  flex:none;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:20px!important;margin:0 24px;padding:0!important;border:0;
  border-bottom:1px solid var(--line);border-radius:0!important;background:transparent;
}
#modal .coexistence-layout-sheet .coexistence-tabs button{
  display:flex;align-items:center;justify-content:center;gap:5px;
  min-width:0!important;min-height:48px!important;margin-bottom:-1px;padding:0 0 12px!important;
  border:0;border-bottom:2px solid transparent;border-radius:0;
  background:transparent!important;color:var(--coexist-quiet);box-shadow:none;
  font-size:.78rem!important;font-weight:650;line-height:1.25!important;white-space:nowrap!important;
}
#modal .coexistence-layout-sheet .coexistence-tabs button.active{
  border-bottom-color:var(--coexist-accent);color:var(--ink);font-weight:800;
}
#modal .coexistence-layout-sheet .coexistence-tabs i{
  position:static!important;display:inline-grid!important;place-items:center;flex:none;
  min-width:18px!important;height:18px!important;margin:0;padding:0 4px!important;border:0!important;
  border-radius:50%!important;background:var(--blue-soft)!important;color:var(--ink)!important;
  font-size:.58rem!important;box-shadow:none!important;
}
#modal .coexistence-layout-sheet :is(.coexistence-notification-tabs,.coexistence-restaurant-tabs){
  position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:flex-start;
  flex:none;gap:10px;margin:-8px 0 0;padding:4px 0;background:var(--surface);
}
#modal .coexistence-layout-sheet :is(.coexistence-notification-tabs,.coexistence-restaurant-tabs) button{
  display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;padding:9px 18px;
  border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);
  font-size:.78rem;font-weight:600;letter-spacing:.01em;box-shadow:none;
}
#modal .coexistence-layout-sheet :is(.coexistence-notification-tabs,.coexistence-restaurant-tabs) [aria-pressed="true"]{
  border-color:var(--ink);background:var(--ink);color:var(--surface);font-weight:750;
}
#modal .coexistence-layout-sheet :is(.coexistence-notification-tabs,.coexistence-restaurant-tabs) small{
  display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:50%;
  background:var(--surface-2);color:var(--coexist-quiet);font-size:.58rem;font-weight:600;letter-spacing:0;
}
#modal .coexistence-layout-sheet :is(.coexistence-notification-tabs,.coexistence-restaurant-tabs) [aria-pressed="true"] small{
  background:color-mix(in srgb,var(--surface) 17%,transparent);color:var(--surface);
}
:root[data-interface] #modal .sheet.coexistence-layout-sheet #modalBody :is(.coexistence-notification-tabs,.coexistence-restaurant-tabs) button :is(span,small){color:var(--ink)!important}
:root[data-interface] #modal .sheet.coexistence-layout-sheet #modalBody :is(.coexistence-notification-tabs,.coexistence-restaurant-tabs) button[aria-pressed="true"] :is(span,small){color:var(--surface)!important}
#modal .coexistence-layout-sheet .coexistence-notification-panel{flex:none}
#modal .coexistence-layout-sheet :is(.coexistence-tab-panel,.coexistence-detail-scroll){
  flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:var(--coexist-thumb) transparent;
  scrollbar-gutter:stable;scroll-padding-block:20px;
}
#modal .coexistence-layout-sheet .coexistence-tab-panel{display:flex;flex-direction:column;gap:25px;padding:24px 21px 28px 24px}
#modal .coexistence-layout-sheet :is(.coexistence-tab-panel,.coexistence-detail-scroll)::-webkit-scrollbar{display:block;width:6px;height:5px}
#modal .coexistence-layout-sheet :is(.coexistence-tab-panel,.coexistence-detail-scroll)::-webkit-scrollbar-track{background:transparent}
#modal .coexistence-layout-sheet :is(.coexistence-tab-panel,.coexistence-detail-scroll)::-webkit-scrollbar-thumb{
  border:1px solid var(--surface);border-radius:999px;background:var(--coexist-thumb);
}
#modal .coexistence-layout-sheet .coexistence-search-panel{display:grid;gap:12px;margin:0;padding:0;border:0;border-radius:0;background:transparent}
#modal .coexistence-layout-sheet .coexistence-search-result:empty{display:none}
#modal .coexistence-layout-sheet .coexistence-search-control{
  display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:0;align-items:center;
  min-height:48px;padding:2px 5px 2px 16px;border:1px solid transparent;border-radius:999px;background:var(--surface-2);
}
#modal .coexistence-layout-sheet .coexistence-search-control:focus-within{border-color:var(--coexist-accent)}
#modal .coexistence-layout-sheet .coexistence-search-control input{
  width:100%;min-width:0;min-height:44px;padding:0!important;border:0!important;border-radius:0;
  background:transparent!important;color:var(--ink);box-shadow:none!important;font-size:16px!important;font-weight:500;
}
#modal .coexistence-layout-sheet .coexistence-search-control input::placeholder{color:var(--coexist-quiet);opacity:1}
#modal .coexistence-layout-sheet .coexistence-search-control input:focus-visible{outline:0!important}
#modal .coexistence-layout-sheet .coexistence-search-control button.primary{
  display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;
  border:0!important;border-radius:50%;background:transparent!important;color:var(--ink)!important;
  font-size:0!important;box-shadow:none!important;
}
#modal .coexistence-layout-sheet :is(.coexistence-search-control button.primary,.coexistence-search-decoration,.coexistence-filter-field):before{
  content:"";display:block;width:18px;height:18px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") center/contain no-repeat;
}
#modal .coexistence-layout-sheet .coexistence-search-decoration{display:grid;place-items:center;width:44px;height:44px;color:var(--coexist-quiet);font-size:0}
#modal .coexistence-layout-sheet .coexistence-section{gap:18px;padding:0;border:0;border-radius:0;background:transparent}
#modal .coexistence-layout-sheet .coexistence-section>header{align-items:baseline}
#modal .coexistence-layout-sheet .coexistence-section>header h2{margin:0;padding:0;color:var(--ink);font-size:1.4rem;font-weight:800;letter-spacing:-.045em;line-height:1.25}
#modal .coexistence-layout-sheet .coexistence-section>header small{padding:0;background:transparent;color:var(--coexist-quiet);font-size:.7rem;font-weight:600;text-transform:none}
#modal .coexistence-layout-sheet .coexistence-friend-strip{
  gap:14px!important;margin:0;padding:3px 2px 9px!important;scrollbar-width:none;scroll-snap-type:x proximity;
}
#modal .sheet.coexistence-layout-sheet #modalBody .coexistence-friend-strip::-webkit-scrollbar{display:none!important;width:0;height:0}
#modal .coexistence-layout-sheet .coexistence-friend-strip button{
  display:flex;flex-direction:column;align-items:center;gap:9px;width:62px!important;min-width:62px!important;
  max-width:62px!important;min-height:88px!important;padding:0!important;border:0;border-radius:0;
  background:transparent;color:var(--ink);box-shadow:none;opacity:1;scroll-snap-align:start;
}
#modal .coexistence-layout-sheet .coexistence-friend-strip .coexistence-avatar{
  width:56px!important;height:56px!important;min-width:56px!important;border:3px solid var(--surface);
  border-radius:50%!important;outline:2px solid color-mix(in srgb,var(--coexist-accent) 55%,var(--surface));
  background:var(--blue-soft)!important;color:var(--ink)!important;font-size:1rem!important;font-weight:650!important;
}
#modal .coexistence-layout-sheet .coexistence-friend-strip b{width:62px;color:var(--coexist-quiet);font-size:.65rem;font-weight:550;text-align:center}
#modal .sheet.coexistence-layout-sheet #modalBody .coexistence-filter-field{position:relative;display:block;min-width:0;margin:0}
#modal .sheet.coexistence-layout-sheet #modalBody .coexistence-filter-field:before{
  position:absolute;top:50%;left:16px;z-index:1;transform:translateY(-50%);color:var(--coexist-quiet);pointer-events:none;
}
#modal .sheet.coexistence-layout-sheet #modalBody #coexistenceFriendFilter{
  width:100%;min-width:0;height:48px;min-height:44px;padding:11px 16px 11px 44px!important;
  border:1px solid color-mix(in srgb,var(--line) 72%,var(--surface-2))!important;border-radius:999px!important;
  background:var(--surface-2)!important;color:var(--ink)!important;box-shadow:none!important;
  font-size:16px!important;font-weight:500;line-height:1.35;
}
#modal .sheet.coexistence-layout-sheet #modalBody #coexistenceFriendFilter::placeholder{color:var(--coexist-quiet);font-size:16px;opacity:1}
#modal .sheet.coexistence-layout-sheet #modalBody #coexistenceFriendFilter:focus{
  border-color:var(--coexist-accent)!important;outline:0!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--coexist-accent) 14%,transparent)!important;
}
#modal .coexistence-layout-sheet .coexistence-contact-list{display:grid;gap:0}
#modal .coexistence-layout-sheet .coexistence-contact-list article,
#modal .coexistence-layout-sheet .coexistence-contact-list.compact article{
  display:grid!important;grid-template-columns:46px minmax(0,1fr) auto!important;align-items:center!important;
  gap:12px!important;min-height:78px;padding:13px 0!important;border:0;border-bottom:1px solid var(--line);
  border-radius:0;background:transparent;opacity:1;
}
#modal .coexistence-layout-sheet .coexistence-contact-list article:last-child{border-bottom:0}
#modal .coexistence-layout-sheet .coexistence-contact-list .coexistence-avatar,
#modal .coexistence-layout-sheet .coexistence-contact-list.compact .coexistence-avatar{
  grid-column:1!important;width:46px!important;height:46px!important;min-width:46px!important;
  border:0;border-radius:50%!important;background:var(--blue-soft)!important;color:var(--ink)!important;
  font-size:.9rem!important;font-weight:650!important;
}
#modal .coexistence-layout-sheet .coexistence-contact-list article>div:not(.coexistence-row-actions){grid-column:2!important;min-width:0}
#modal .coexistence-layout-sheet .coexistence-contact-list article b{color:var(--ink);font-size:.85rem;font-weight:750;line-height:1.35}
#modal .coexistence-layout-sheet .coexistence-contact-list article small{display:flex;align-items:center;gap:6px;margin-top:4px;color:var(--coexist-quiet);font-size:.69rem;font-weight:500;line-height:1.4}
#modal .coexistence-layout-sheet .coexistence-contact-list article small span{
  display:inline;min-width:0;width:auto;height:auto;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;overflow:hidden;text-overflow:ellipsis;
}
#modal .coexistence-layout-sheet .coexistence-contact-list article small .coexistence-connection-dot{
  display:block;flex:none;width:5px;height:5px;border-radius:50%;background:var(--orange);
}
#modal .coexistence-layout-sheet .coexistence-contact-list article.accepted small .coexistence-connection-dot{background:var(--green)}
#modal .coexistence-layout-sheet .coexistence-row-actions{
  display:flex;grid-column:3!important;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;min-width:0;max-width:148px;
}
#modal .coexistence-layout-sheet .coexistence-contact-list.compact article>.coexistence-row-actions{grid-column:3!important}
#modal .coexistence-layout-sheet .coexistence-row-actions button,
#modal .coexistence-layout-sheet .coexistence-contact-list.compact article button{
  grid-column:auto!important;width:auto!important;min-width:0!important;min-height:44px!important;
  padding:8px 10px!important;border:0!important;border-radius:999px!important;background:var(--surface-2)!important;
  color:var(--ink)!important;font-size:.68rem!important;font-weight:650;line-height:1.25;box-shadow:none!important;
}
#modal .coexistence-layout-sheet .coexistence-row-actions button.primary{background:var(--blue-soft)!important;color:var(--ink)!important}
#modal .coexistence-layout-sheet .coexistence-row-actions button.danger-text,
#modal .coexistence-layout-sheet .coexistence-contact-list.compact article button.danger-text{background:transparent!important;color:var(--red)!important}
#modal .coexistence-layout-sheet .coexistence-row-actions button:hover{background:var(--blue-soft)!important}
:root[data-interface] #modal .sheet.coexistence-layout-sheet #modalBody .coexistence-row-actions .coexistence-action-icon{
  --coexist-action-surface:var(--surface-2);--coexist-action-border:var(--line);
  position:relative;display:grid;place-items:center;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;
  padding:0!important;border:0!important;border-radius:50%!important;
  background:transparent!important;color:var(--ink)!important;font-size:0!important;box-shadow:none!important;
}
:root[data-interface] #modal .sheet.coexistence-layout-sheet #modalBody .coexistence-row-actions .coexistence-action-icon:before{
  content:"";position:absolute;top:50%;left:50%;width:32px;height:32px;box-sizing:border-box;transform:translate(-50%,-50%);
  border:1px solid var(--coexist-action-border);border-radius:50%;background:var(--coexist-action-surface);pointer-events:none;
}
:root[data-interface] #modal .sheet.coexistence-layout-sheet #modalBody .coexistence-row-actions .coexistence-action-icon.accept{
  --coexist-action-border:color-mix(in srgb,var(--green) 22%,var(--line));--coexist-action-surface:color-mix(in srgb,var(--green) 12%,var(--surface));color:var(--green)!important;
}
:root[data-interface] #modal .sheet.coexistence-layout-sheet #modalBody .coexistence-row-actions .coexistence-action-icon.decline{
  --coexist-action-border:color-mix(in srgb,var(--red) 20%,var(--line));--coexist-action-surface:color-mix(in srgb,var(--red) 8%,var(--surface));color:var(--red)!important;
}
:root[data-interface] #modal .sheet.coexistence-layout-sheet #modalBody .coexistence-row-actions :is(.coexistence-action-icon.cancel,.coexistence-action-icon.remove){
  color:var(--muted)!important;
}
#modal .coexistence-layout-sheet :is(.coexistence-action-icon,.coexistence-invite-status,.coexistence-invite-symbol) svg{
  display:block;width:18px;height:18px;flex:none;color:inherit;pointer-events:none;
}
#modal .coexistence-layout-sheet .coexistence-action-icon svg{position:relative;z-index:1}
#modal .coexistence-layout-sheet .coexistence-details{flex:none;display:block;margin:0;border:0;border-radius:0;background:transparent;overflow:visible}
#modal .coexistence-layout-sheet .coexistence-details summary{
  display:flex;align-items:center;gap:12px;min-height:44px;margin:0;padding:0 0 14px;
  color:var(--ink);font-size:1.18rem;font-weight:750;line-height:1.3;letter-spacing:-.035em;
}
#modal .coexistence-layout-sheet .coexistence-details summary b{font:inherit}
#modal .coexistence-layout-sheet .coexistence-details summary small{
  margin-left:auto;padding:0;border-radius:0;background:transparent;color:var(--coexist-quiet);
  font-size:.7rem;font-weight:550;text-transform:none;letter-spacing:0;white-space:nowrap;
}
#modal .coexistence-layout-sheet .coexistence-details summary:after{
  content:"";flex:none;width:6px;height:6px;margin:0 2px 3px 1px;padding:0;border:0;border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;border-radius:0;background:transparent;transform:rotate(45deg);color:var(--coexist-quiet);
}
#modal .coexistence-layout-sheet .coexistence-details[open] summary:after{transform:rotate(225deg);margin-bottom:-3px}
#modal .coexistence-layout-sheet .coexistence-details .coexistence-section{padding:0;border:0;background:transparent}
#modal .coexistence-layout-sheet .coexistence-empty-state{
  gap:7px;padding:22px 18px;border:1px dashed var(--line);border-radius:17px;background:var(--coexist-soft);
}
#modal .coexistence-layout-sheet .coexistence-empty-state b{color:var(--ink);font-size:.84rem;font-weight:700}
#modal .coexistence-layout-sheet .coexistence-empty-state span{color:var(--coexist-quiet);font-size:.76rem;font-weight:500;line-height:1.6}
#modal .coexistence-layout-sheet .coexistence-restaurant-list{gap:15px}
#modal .coexistence-layout-sheet .coexistence-restaurant-row{
  position:relative;display:block;padding:0;border:0;border-radius:21px;background:var(--surface-2);overflow:hidden;
}
#modal .coexistence-layout-sheet .coexistence-restaurant-main{
  position:relative;display:flex;align-items:flex-end;isolation:isolate;width:100%;min-height:248px;padding:24px;
  border:0;border-radius:21px;background:transparent;color:white;text-align:left;
}
#modal .coexistence-layout-sheet .coexistence-restaurant-cover,
#modal .coexistence-layout-sheet .coexistence-restaurant-main>.coexistence-restaurant-cover{
  position:absolute;inset:0;z-index:-2;display:block;width:100%;height:100%;border:0;border-radius:inherit;
  background:linear-gradient(135deg,var(--blue),var(--ink));overflow:hidden;
}
#modal .coexistence-layout-sheet .coexistence-restaurant-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
#modal .coexistence-layout-sheet .coexistence-restaurant-main:after,
#modal .coexistence-layout-sheet .coexistence-detail-hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(9,16,23,.06) 15%,rgba(9,16,23,.88) 100%);pointer-events:none}
#modal .coexistence-layout-sheet .coexistence-restaurant-main:hover .coexistence-restaurant-cover img{transform:scale(1.035)}
#modal .sheet.coexistence-layout-sheet #modalBody .coexistence-restaurant-caption{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px;min-width:0;width:100%;padding-right:28px;
}
#modal .sheet.coexistence-layout-sheet #modalBody .coexistence-restaurant-caption>:is(b,small,em){
  grid-column:1!important;grid-row:auto!important;min-width:0;
}
#modal .coexistence-layout-sheet .coexistence-restaurant-caption b{color:white;font-size:1.75rem;font-weight:750;letter-spacing:-.055em;line-height:1.1;white-space:normal;overflow-wrap:anywhere}
#modal .coexistence-layout-sheet .coexistence-restaurant-caption small{color:rgba(255,255,255,.88);font-size:.69rem;font-weight:450;white-space:normal;line-height:1.45}
#modal .coexistence-layout-sheet .coexistence-restaurant-caption em{justify-self:start;margin-top:7px;padding:0;background:transparent;color:white;font-size:.72rem;font-weight:600;white-space:normal}
#modal .coexistence-layout-sheet .coexistence-restaurant-main>.coexistence-restaurant-arrow{position:absolute;right:20px;bottom:24px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.15);color:white;font-size:1.25rem;font-weight:400}
#modal .coexistence-layout-sheet .coexistence-restaurant-fav{
  position:absolute;top:14px;right:14px;z-index:1;display:grid;place-items:center;width:44px;min-width:44px;min-height:44px;
  border:1px solid rgba(255,255,255,.42);border-radius:50%;background:rgba(9,16,23,.48);color:white;font-size:1.25rem;box-shadow:none;
}
#modal .coexistence-layout-sheet .coexistence-restaurant-fav.active{background:var(--blue-soft);border-color:var(--blue-soft);color:var(--ink)}
#modal .coexistence-layout-sheet .coexistence-invite-list{display:grid;gap:10px}
#modal .coexistence-layout-sheet .coexistence-invite-list article{
  display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;
  padding:15px 13px;border:0;border-radius:17px;background:var(--surface-2);
}
#modal .coexistence-layout-sheet .coexistence-invite-list .coexistence-invite-symbol{
  display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:color-mix(in srgb,var(--orange) 14%,var(--surface));color:var(--ink);font-size:1.1rem;font-weight:500;
}
#modal .coexistence-layout-sheet .coexistence-invite-list .accepted .coexistence-invite-symbol{background:color-mix(in srgb,var(--green) 13%,var(--surface));color:var(--green)}
#modal .coexistence-layout-sheet .coexistence-invite-list .declined .coexistence-invite-symbol{background:var(--red-soft);color:var(--red)}
#modal .coexistence-layout-sheet .coexistence-invite-list b{display:block;color:var(--ink);font-size:.79rem;font-weight:700;line-height:1.45;overflow-wrap:anywhere}
#modal .coexistence-layout-sheet .coexistence-invite-list small{margin-top:3px;color:var(--coexist-quiet);font-size:.67rem;font-weight:500;line-height:1.45}
#modal .coexistence-layout-sheet .coexistence-invite-list p{margin:6px 0 0;color:var(--ink);font-size:.72rem;font-weight:450;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
#modal .coexistence-layout-sheet .coexistence-invite-list .coexistence-invite-status{display:block;width:auto;height:auto;padding:0;background:transparent;color:var(--coexist-quiet);font-size:.62rem;font-weight:600}
#modal .sheet.coexistence-layout-sheet #modalBody .coexistence-notification-panel .coexistence-row-actions{
  grid-column:3!important;grid-row:1;flex-wrap:nowrap;justify-content:flex-end;max-width:none;
}
#modal .sheet.coexistence-layout-sheet #modalBody .coexistence-notification-panel .coexistence-contact-list :is(b,small),
#modal .sheet.coexistence-layout-sheet #modalBody .coexistence-notification-panel .coexistence-contact-list small span:not(.sr-only){
  white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;
}
:root[data-interface] #modal .sheet.coexistence-layout-sheet #modalBody .coexistence-invite-list .coexistence-invite-status{
  display:grid;place-items:center;width:32px;height:32px;margin-inline:6px;padding:0;border-radius:50%;background:var(--surface);color:var(--coexist-quiet);font-size:0;
}
:root[data-interface] #modal .sheet.coexistence-layout-sheet #modalBody .coexistence-invite-list .coexistence-invite-status.accept{background:color-mix(in srgb,var(--green) 12%,var(--surface));color:var(--green)}
:root[data-interface] #modal .sheet.coexistence-layout-sheet #modalBody .coexistence-invite-list .coexistence-invite-status.decline{background:color-mix(in srgb,var(--red) 8%,var(--surface));color:var(--red)}
#modal .coexistence-layout-sheet .coexistence-result-card{grid-template-columns:40px minmax(0,1fr) auto;padding:12px;border-color:var(--line);background:var(--coexist-soft)}
#modal .coexistence-layout-sheet .coexistence-result-card :is(b,small){color:var(--ink)}
#modal .coexistence-layout-sheet .coexistence-result-card .coexistence-avatar{border-radius:50%!important;background:var(--blue-soft)!important;color:var(--ink)!important}
#modal .coexistence-layout-sheet .coexistence-result-card small{color:var(--coexist-quiet);font-weight:500}
#modal .coexistence-layout-sheet .coexistence-result-state{background:var(--surface-2);color:var(--ink)!important;text-transform:none;font-size:.66rem;white-space:normal}
#modal .coexistence-layout-sheet .coexistence-detail-top{
  flex:none;display:flex;align-items:center;gap:16px;min-height:79px;padding:17px 78px 17px 20px;
}
#modal .coexistence-layout-sheet .coexistence-detail-top>span{margin-left:auto;color:var(--coexist-quiet);font-size:.68rem;font-weight:500}
#modal .coexistence-layout-sheet .coexistence-back{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 7px;border:0;background:transparent;color:var(--ink);box-shadow:none;font-size:.75rem;font-weight:650}
#modal .coexistence-layout-sheet .coexistence-back span{font-size:1.15rem}
#modal .coexistence-layout-sheet .coexistence-detail-scroll{padding:0 21px 24px 24px}
#modal .coexistence-layout-sheet .coexistence-detail-hero{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:255px;padding:25px 22px;border-radius:21px;overflow:hidden}
#modal .coexistence-layout-sheet .coexistence-detail-hero .eyebrow{margin:0 0 6px;color:rgba(255,255,255,.8);font-size:.62rem;font-weight:600;letter-spacing:.12em}
#modal .coexistence-layout-sheet .coexistence-detail-hero h2{margin:0;padding:0;color:white;font-size:2.1rem;font-weight:750;letter-spacing:-.06em;line-height:1.15;overflow-wrap:anywhere}
#modal .coexistence-layout-sheet .coexistence-detail-hero div>p:last-child{margin:7px 0 0;color:rgba(255,255,255,.88);font-size:.76rem;font-weight:500}
#modal .coexistence-layout-sheet .coexistence-detail-info{display:grid;gap:13px;padding:20px 0 25px}
#modal .coexistence-layout-sheet .coexistence-detail-info>p{margin:0;color:var(--coexist-quiet);font-size:.76rem;font-weight:500;line-height:1.65}
#modal .coexistence-layout-sheet .restaurant-summary-meta{display:flex;flex-wrap:wrap;gap:7px;margin:0}
#modal .coexistence-layout-sheet .restaurant-summary-meta span{padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);font-size:.65rem;font-weight:550;line-height:1.4}
#modal .coexistence-layout-sheet .partner-menu-stack{display:grid;gap:0;padding:0}
#modal .coexistence-layout-sheet .partner-menu-stack article{gap:8px;padding:18px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
#modal .coexistence-layout-sheet .partner-menu-stack article header{display:grid;gap:5px}
#modal .coexistence-layout-sheet .partner-menu-stack article header>small{color:var(--coexist-quiet);font-size:.62rem;font-weight:600;text-transform:uppercase;letter-spacing:.055em}
#modal .coexistence-layout-sheet .partner-menu-stack article header>b{color:var(--ink);font-size:.94rem;font-weight:750;line-height:1.4}
#modal .coexistence-layout-sheet .partner-menu-stack article>small{color:var(--coexist-quiet);font-size:.72rem;font-weight:500}
#modal .coexistence-layout-sheet .partner-menu-stack .coexistence-menu-nutrition{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;margin-top:6px;color:var(--coexist-quiet);font-size:.71rem;font-weight:500}
#modal .coexistence-layout-sheet .coexistence-menu-nutrition>b{color:var(--ink);font-size:1rem;font-weight:750}
#modal .coexistence-layout-sheet .coexistence-menu-nutrition b small{color:var(--coexist-quiet);font-size:.65rem;font-weight:500}
#modal .coexistence-layout-sheet .coexistence-detail-footer{
  flex:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:0;
  padding:17px 24px max(18px,var(--safe-bottom));border-top:1px solid var(--line);background:var(--surface);
}
#modal .coexistence-layout-sheet .coexistence-detail-footer button{min-height:46px;padding:10px 14px;border-radius:999px;font-size:.73rem;font-weight:700;line-height:1.4;white-space:normal;box-shadow:none}
#modal .coexistence-layout-sheet .coexistence-detail-footer .soft{border:1px solid var(--line);background:transparent;color:var(--ink)}
#modal .coexistence-layout-sheet .coexistence-detail-footer .primary{display:flex;align-items:center;justify-content:center;gap:14px}






@media(max-width:430px){
  #modal .sheet.coexistence-layout-sheet{width:calc(100% - 20px)!important;border-radius:24px!important}
  #modal .coexistence-layout-sheet :is(.refined,.restaurant-detail-modal){height:84dvh}
  :root #modal .sheet.coexistence-layout-sheet>.sheet-close{right:16px!important}
  #modal .coexistence-layout-sheet .coexistence-id-line{padding-left:20px;padding-right:68px}
  #modal .coexistence-layout-sheet .coexistence-tabs{gap:12px!important;margin:0 20px}
  #modal .coexistence-layout-sheet .coexistence-tabs button{font-size:.74rem!important}
  #modal .coexistence-layout-sheet .coexistence-tab-panel{gap:22px;padding:22px 17px 24px 20px}
  #modal .coexistence-layout-sheet .coexistence-details summary{font-size:1.05rem}
  #modal .coexistence-layout-sheet .coexistence-contact-list article,
  #modal .coexistence-layout-sheet .coexistence-contact-list.compact article{grid-template-columns:40px minmax(0,1fr) auto!important;gap:10px!important}
  #modal .coexistence-layout-sheet .coexistence-contact-list .coexistence-avatar,
  #modal .coexistence-layout-sheet .coexistence-contact-list.compact .coexistence-avatar{width:40px!important;height:40px!important;min-width:40px!important}
  #modal .coexistence-layout-sheet .coexistence-contact-list:not(.compact) .coexistence-row-actions{max-width:94px}
  #modal .coexistence-layout-sheet .coexistence-contact-list article b{font-size:.79rem}
  #modal .coexistence-layout-sheet .coexistence-contact-list article small{font-size:.64rem}
  #modal .coexistence-layout-sheet .coexistence-row-actions button,
  #modal .coexistence-layout-sheet .coexistence-contact-list.compact article button{padding:8px!important;font-size:.62rem!important}
  #modal .coexistence-layout-sheet .coexistence-restaurant-main{min-height:236px;padding:20px}
  #modal .coexistence-layout-sheet .coexistence-restaurant-caption b{font-size:1.55rem}
  #modal .coexistence-layout-sheet .coexistence-invite-list article{grid-template-columns:32px minmax(0,1fr) auto;gap:9px;padding:13px}
  #modal .coexistence-layout-sheet .coexistence-invite-list .coexistence-invite-symbol{width:32px;height:32px}
  #modal .coexistence-layout-sheet .coexistence-invite-list .coexistence-row-actions{grid-column:3!important;justify-content:flex-end;max-width:94px}
  #modal .coexistence-layout-sheet .coexistence-detail-top{padding-left:15px;padding-right:72px;gap:5px}
  #modal .coexistence-layout-sheet .coexistence-detail-top>span{font-size:.59rem}
  #modal .coexistence-layout-sheet .coexistence-detail-scroll{padding:0 17px 20px 20px}
  #modal .coexistence-layout-sheet .coexistence-detail-hero{min-height:230px;padding:22px 18px}
  #modal .coexistence-layout-sheet .coexistence-detail-hero h2{font-size:1.85rem}
  #modal .coexistence-layout-sheet .coexistence-detail-footer{padding:14px 20px max(17px,var(--safe-bottom))}
  #modal .coexistence-layout-sheet .coexistence-detail-footer button{padding:9px 7px;font-size:.65rem}
}
@media(max-width:350px){
  #modal .coexistence-layout-sheet .coexistence-tabs{grid-template-columns:.9fr 1.1fr 1.3fr!important;gap:6px!important;margin-inline:15px}
  #modal .coexistence-layout-sheet .coexistence-tabs button{font-size:.7rem!important}
  #modal .coexistence-layout-sheet .coexistence-tab-panel{padding-left:16px;padding-right:13px}
  #modal .coexistence-layout-sheet .coexistence-contact-list.compact article{grid-template-columns:36px minmax(0,1fr) auto!important;gap:7px!important}
  #modal .coexistence-layout-sheet .coexistence-contact-list.compact .coexistence-avatar{width:36px!important;height:36px!important;min-width:36px!important}
  #modal .coexistence-layout-sheet .coexistence-detail-top>span{display:none}
}
@media(prefers-reduced-motion:reduce){
  #modal .coexistence-layout-sheet *{scroll-behavior:auto!important;transition:none!important}
}
/* Cozinha: final recipe view. Inputs and nutrition math keep their existing contracts. */
#platesScreen #recipeBuilder .recipe-final-layout{display:grid;gap:16px;min-width:0}
#platesScreen #recipeBuilder .recipe-final-layout [hidden]{display:none!important}
#platesScreen #recipeBuilder .recipe-station-operation{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:8px;align-items:start;min-width:0}
#platesScreen #recipeBuilder .recipe-station-operation>label{display:grid;gap:8px;min-width:0}
#platesScreen #recipeBuilder .recipe-liquid-control .profile-sex-picker-trigger{min-height:48px;height:auto;white-space:normal}
#platesScreen #recipeBuilder .recipe-liquid-control .profile-sex-picker-value{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.5}
#platesScreen #recipeBuilder .recipe-final-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;border-bottom:1px solid var(--line);padding-bottom:8px}
#platesScreen #recipeBuilder .recipe-final-tabs button{min-width:0;min-height:48px;padding:10px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font-size:14px;font-weight:700;white-space:normal;line-height:1.4}
#platesScreen #recipeBuilder .recipe-final-tabs button[aria-selected="true"]{background:var(--blue-soft);border-color:var(--line);color:var(--text)}
#platesScreen #recipeBuilder :is(.recipe-final-tabs button,.recipe-final-help,.recipe-pending-link):focus-visible{outline:2px solid var(--accent,var(--blue));outline-offset:3px}
#platesScreen #recipeBuilder [role="tabpanel"]{display:grid;gap:12px;min-width:0}
#platesScreen #recipeBuilder [role="tabpanel"][hidden]{display:none!important}
#platesScreen #recipeBuilder .recipe-final-block{min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--surface,var(--card));overflow:visible;scroll-margin-top:88px}
#platesScreen #recipeBuilder .recipe-final-block>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 14px;cursor:pointer;color:var(--text);font-size:14px;font-weight:700;line-height:1.45;list-style:none}
#platesScreen #recipeBuilder .recipe-final-block>summary::-webkit-details-marker{display:none}
#platesScreen #recipeBuilder .recipe-final-block>summary::after{content:"+";flex:0 0 18px;text-align:center;font-size:20px;font-weight:500}
#platesScreen #recipeBuilder .recipe-final-block[open]>summary::after{content:"−"}
#platesScreen #recipeBuilder .recipe-final-block>summary>span{min-width:0;overflow-wrap:anywhere}
#platesScreen #recipeBuilder .recipe-final-block-body{display:grid;gap:18px;padding:4px 14px 16px;min-width:0}
#platesScreen #recipeBuilder .recipe-final-field{display:grid;gap:8px;min-width:0;scroll-margin-top:100px}
#platesScreen #recipeBuilder .recipe-final-field-head{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:8px;align-items:start;color:var(--text);font-size:14px;font-weight:600;line-height:1.5}
#platesScreen #recipeBuilder .recipe-final-field-head>span{min-width:0;overflow-wrap:anywhere}
#platesScreen #recipeBuilder .recipe-final-help{display:inline-grid;place-items:center;min-width:36px;min-height:36px;align-self:start;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--text);font-size:16px;font-weight:700;padding:4px;line-height:1}
#platesScreen #recipeBuilder .recipe-final-control{display:grid;gap:6px;min-width:0}
#platesScreen #recipeBuilder .recipe-final-control>span{font-size:13px;line-height:1.45;color:var(--text)}
#platesScreen #recipeBuilder .recipe-final-sr{position:absolute!important;width:1px;height:1px;padding:0!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#platesScreen #recipeBuilder .recipe-final-layout :is(input:not([type="checkbox"]),textarea,select){width:100%;min-width:0;font-size:16px;scroll-margin-top:100px}
#platesScreen #recipeBuilder .recipe-final-layout input::placeholder{color:var(--muted);opacity:1}
#platesScreen #recipeBuilder .recipe-final-check{display:grid;grid-template-columns:20px minmax(0,1fr);gap:10px;align-items:start;min-height:40px;color:var(--text);font-size:14px;line-height:1.5}
#platesScreen #recipeBuilder .recipe-final-check input{width:18px;height:18px;margin:3px 0;accent-color:var(--blue)}
#platesScreen #recipeBuilder .recipe-final-check>span{min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
#platesScreen #recipeBuilder .recipe-final-hint{font-size:12px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere;margin:0}
#platesScreen #recipeBuilder .recipe-final-pair{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:10px}
#platesScreen #recipeBuilder .recipe-final-summary-list{display:grid;gap:12px;padding:0;margin:0;list-style:none}
#platesScreen #recipeBuilder .recipe-final-summary-list li{display:grid;gap:4px;padding-bottom:12px;border-bottom:1px solid var(--line);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
#platesScreen #recipeBuilder .recipe-final-summary-list li>span{color:var(--muted);font-size:13px}
#platesScreen #recipeBuilder .recipe-final-block dl{display:grid;gap:10px;margin:0}
#platesScreen #recipeBuilder .recipe-final-block dl>div{display:flex;justify-content:space-between;gap:12px;font-size:14px}
#platesScreen #recipeBuilder .recipe-final-block dd{margin:0;text-align:right}
#platesScreen #recipeBuilder .recipe-final-pending-list{padding:0;margin:0;list-style:none;display:grid;gap:4px}
#platesScreen #recipeBuilder .recipe-pending-link{text-align:left;padding:10px 0;min-height:44px;background:transparent;border:0;color:var(--text);font-size:14px;line-height:1.5;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
#platesScreen #recipeBuilder .recipe-final-count{font-size:13px;color:var(--muted);margin:0;line-height:1.5}
#platesScreen #recipeBuilder .recipe-final-front-list{display:grid;gap:10px;list-style:none;padding:0;margin:0}
#platesScreen #recipeBuilder .recipe-final-front-list li{display:grid;gap:4px;font-size:14px;line-height:1.5}
#platesScreen #recipeBuilder .recipe-final-front-list li>span{font-size:13px;color:var(--muted)}
#platesScreen #recipeBuilder .recipe-final-beta{padding:12px;border-left:2px solid var(--line);font-size:13px;line-height:1.5;color:var(--muted);margin:0}
#platesScreen #recipeBuilder .recipe-final-commercial{font-size:13px;line-height:1.5;color:var(--text)}
#platesScreen #recipeBuilder .recipe-final-commercial summary{min-height:44px;cursor:pointer}
#platesScreen #recipeBuilder .recipe-final-layout .recipe-nutrition-label{width:100%;max-width:100%;margin:0;overflow-wrap:anywhere}
#platesScreen #recipeBuilder .recipe-final-layout .recipe-instruction-editor{display:grid;gap:8px;min-width:0}
#platesScreen #recipeBuilder .recipe-final-layout .recipe-instruction-editor>label{font-size:16px;font-weight:600}
#platesScreen #recipeBuilder .chef-station-math>label:has([data-chef-liquid]){display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:8px}
#platesScreen #recipeBuilder .chef-station-math>label:has([data-chef-liquid])>.profile-sex-picker{grid-column:1/-1}
#platesScreen #recipeBuilder .chef-station-math>label:has([data-chef-liquid]) .profile-sex-picker-trigger{min-height:48px;height:auto;white-space:normal}
#platesScreen #recipeBuilder .chef-station-math>label:has([data-chef-liquid]) .profile-sex-picker-value{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.5}
#platesScreen #recipeBuilder .chef-station-math .recipe-discard-notice{display:grid;gap:6px;font-size:12px;line-height:1.5;color:var(--muted);min-width:0}
#platesScreen #recipeBuilder .recipe-discard-confirm{padding:10px;border:1px solid var(--line);border-radius:8px;color:var(--text);display:flex;flex-wrap:wrap;gap:8px}
#platesScreen #recipeBuilder .recipe-discard-confirm p{width:100%;margin:0;line-height:1.5}
#modal .recipe-final-help-modal{display:grid;gap:14px;min-width:0;color:var(--text)}
#modal .recipe-final-help-modal p{margin:0;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
#modal .recipe-final-help-modal .recipe-final-help-link{display:block;white-space:normal;text-align:center;padding:12px;font-size:14px}
/* Final editor shares Osyra's restrained fields and disclosure rhythm in both skins. */
#platesScreen #recipeBuilder .recipe-final-layout{gap:16px}
#platesScreen #recipeBuilder .recipe-final-block{background:var(--card)!important;border:1px solid var(--line)!important;border-radius:8px!important;box-shadow:none!important}
#platesScreen #recipeBuilder .recipe-final-block>summary{padding:13px 14px;font-family:inherit!important;font-size:14px!important;font-weight:650!important;line-height:1.45!important;letter-spacing:0!important;text-transform:none!important}
#platesScreen #recipeBuilder .recipe-final-block>summary::after{font-size:18px;color:var(--muted);font-weight:400}
#platesScreen #recipeBuilder .recipe-final-block-body{padding:0 14px 16px;gap:20px}
#platesScreen #recipeBuilder .recipe-final-field{gap:7px}
#platesScreen #recipeBuilder .recipe-final-field-head{grid-template-columns:minmax(0,1fr) 36px;gap:8px;align-items:center;font-family:inherit!important;font-size:14px!important;font-weight:400!important;line-height:1.5!important}
#platesScreen #recipeBuilder .recipe-final-field-head>span{font-weight:400!important;text-transform:none!important;letter-spacing:0!important;color:var(--text)!important}
#platesScreen #recipeBuilder .recipe-final-help{position:relative;width:36px;min-width:36px;min-height:44px;height:44px;border:0!important;border-radius:6px!important;background:transparent!important;box-shadow:none!important;color:var(--muted)!important;font-family:inherit!important;font-size:13px!important;font-weight:500!important;line-height:1!important;padding:0!important;align-self:center}
#platesScreen #recipeBuilder .recipe-final-help::before{content:"";position:absolute;width:21px;height:21px;border:1px solid var(--line);border-radius:50%;pointer-events:none}
#platesScreen #recipeBuilder .recipe-final-help:hover{color:var(--text)!important;background:var(--surface-2)!important}
#platesScreen #recipeBuilder .recipe-final-control{margin:0!important;gap:6px!important}
#platesScreen #recipeBuilder .recipe-final-layout label>span{font-family:inherit!important;font-size:13px!important;font-weight:400!important;line-height:1.5!important;letter-spacing:0!important;text-transform:none!important;color:var(--text)!important}
#platesScreen #recipeBuilder .recipe-final-layout :is(input:not([type="checkbox"]):not([type="radio"]),textarea,.profile-sex-picker-trigger){border:1px solid var(--line)!important;border-radius:8px!important;background:var(--card)!important;box-shadow:none!important;font-family:inherit!important;font-size:16px!important;font-weight:400!important;line-height:1.4!important;letter-spacing:0!important;text-transform:none!important;color:var(--text)!important}
#platesScreen #recipeBuilder .recipe-final-layout :is(input:not([type="checkbox"]):not([type="radio"]),.profile-sex-picker-trigger){height:46px!important;min-height:46px!important;padding:10px 12px!important}
#platesScreen #recipeBuilder .recipe-final-layout textarea{padding:12px!important;min-height:200px;resize:vertical}
#platesScreen #recipeBuilder .recipe-final-layout :is(input,textarea,.profile-sex-picker-trigger):focus-visible{outline:2px solid var(--blue)!important;outline-offset:2px!important;box-shadow:none!important}
#platesScreen #recipeBuilder .recipe-final-layout .profile-sex-picker-value{font-family:inherit!important;font-size:16px!important;font-weight:400!important;letter-spacing:0!important;text-transform:none!important;line-height:1.4!important}
#platesScreen #recipeBuilder .recipe-final-check{grid-template-columns:18px minmax(0,1fr)!important;align-items:start!important;gap:10px!important;padding:3px 0 0!important;margin:0!important;min-height:32px}
#platesScreen #recipeBuilder .recipe-final-check input{appearance:auto!important;position:static!important;width:17px!important;height:17px!important;min-height:17px!important;margin:3px 0 0!important;padding:0!important;border-radius:3px!important;box-shadow:none!important;accent-color:var(--blue)}
#platesScreen #recipeBuilder .recipe-final-check>span{font-weight:400!important;font-size:13px!important;line-height:1.55!important;letter-spacing:0!important;text-transform:none!important}
#platesScreen #recipeBuilder .recipe-final-hint{font-size:12px!important;line-height:1.5!important;font-weight:400!important;color:var(--muted)!important}
#platesScreen #recipeBuilder .recipe-final-pair{display:grid!important;grid-template-columns:minmax(76px,.7fr) minmax(0,1.8fr)!important;gap:10px!important;align-items:end!important}
#platesScreen #recipeBuilder .recipe-final-pair>*{min-width:0!important}
#platesScreen #recipeBuilder .recipe-final-pair .profile-sex-picker-trigger{width:100%;min-width:0}
#platesScreen #recipeBuilder .recipe-final-tabs button{font-family:inherit!important;font-size:14px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important}
#platesScreen #recipeBuilder .recipe-final-layout .recipe-instruction-editor>label{font-family:inherit!important;font-size:15px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;color:var(--text)!important}
@media(max-width:480px){#platesScreen #recipeBuilder .recipe-final-pair{grid-template-columns:84px minmax(0,1fr)!important}}
#platesScreen #recipeBuilder .recipe-final-tabs button{border:1px solid var(--line)!important;color:var(--blue-deep)!important;background:color-mix(in srgb,var(--peach-soft) 55%,var(--card))!important}
#platesScreen #recipeBuilder .recipe-final-tabs button[aria-selected="true"]{border-color:color-mix(in srgb,var(--blue) 55%,var(--line))!important;border-bottom-width:3px!important;background:var(--blue-soft)!important;color:var(--blue-deep)!important}
#platesScreen #recipeBuilder .recipe-final-block>summary{color:var(--blue-deep)!important}
#platesScreen #recipeBuilder .recipe-final-block[open]>summary{background:color-mix(in srgb,var(--blue-soft) 38%,var(--card));border-radius:8px 8px 0 0;margin-bottom:12px}
#platesScreen #recipeBuilder .recipe-final-section-title{display:flex;align-items:center;gap:10px;min-width:0}
#platesScreen #recipeBuilder .recipe-final-section-title>span:last-child{min-width:0;overflow-wrap:anywhere}
#platesScreen #recipeBuilder .recipe-final-section-number{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:6px;background:var(--peach-soft);color:var(--blue-deep);font-size:12px;font-weight:600}
#platesScreen #recipeBuilder .recipe-final-help{color:var(--blue-deep)!important}
#platesScreen #recipeBuilder .recipe-final-help::before{background:var(--peach-soft);border-color:color-mix(in srgb,var(--blue) 25%,var(--line));z-index:-1}
#platesScreen #recipeBuilder .recipe-final-help{isolation:isolate}
#platesScreen #recipeBuilder .recipe-final-check>span{font-family:inherit!important;text-transform:none!important;font-size:13px!important;font-weight:400!important;letter-spacing:0!important;line-height:1.55!important}
#platesScreen #recipeBuilder .recipe-final-count{color:var(--blue-deep)!important}
#platesScreen #recipeBuilder .recipe-final-block dd{color:var(--blue-deep);font-weight:600}
#platesScreen #recipeBuilder .recipe-pending-review-callout{display:grid;gap:10px;margin-top:12px;padding:12px;border-left:2px solid var(--blue);color:var(--text);font-size:14px;line-height:1.5}
#platesScreen #recipeBuilder .recipe-pending-review-callout button{min-height:44px;white-space:normal}
#modal .recipe-ingredient-review>p{font-size:14px;line-height:1.6;overflow-wrap:anywhere;color:var(--text)}
#modal .recipe-ingredient-review-actions{display:grid;gap:10px;margin-top:16px}
#modal .recipe-ingredient-review-actions button{min-height:44px;white-space:normal}
#platesScreen #recipeBuilder [data-recipe-final-results="table"]{display:grid;gap:18px;min-width:0}
#platesScreen #recipeBuilder [data-recipe-table-generate]{justify-self:start;min-height:44px;white-space:normal}
#platesScreen #recipeBuilder .recipe-table-confirmations{display:grid;gap:16px;padding-top:4px;min-width:0}
#platesScreen #recipeBuilder .recipe-table-confirmation{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:start;min-width:0}
#platesScreen #recipeBuilder .recipe-table-confirmation .recipe-final-help{margin-top:-6px}
#platesScreen #recipeBuilder .recipe-table-confirmation .recipe-final-check{min-height:44px;padding-top:4px!important}
#platesScreen #recipeBuilder .recipe-table-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
#platesScreen #recipeBuilder .recipe-table-actions button{min-width:0;min-height:44px;white-space:normal;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;padding:10px 12px}
#platesScreen #recipeBuilder :is([data-recipe-table-generate],[data-recipe-table-pdf]):disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
