/* Equilíbrio: one presentation of the existing Food -> Engine filters. */
#foodsScreen .food-results-region{display:grid;gap:14px;min-width:0;width:100%;align-content:start}
#foodsScreen .food-results-region .food-list-heading{grid-column:auto!important;grid-row:auto!important;padding:0!important;margin:0!important;min-width:0;display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center}
#foodsScreen .food-results-region .food-list-heading h2{grid-column:1/-1;min-width:0;white-space:normal;overflow-wrap:anywhere;margin:0!important}
#foodsScreen .food-results-region #foodList{grid-column:auto!important;grid-row:auto!important;padding-top:0!important;min-width:0;width:100%;margin:0!important}
#foodsScreen .food-results-region [data-food-more]{grid-column:auto!important;grid-row:auto!important;width:min(320px,100%)!important;justify-self:center;margin:0!important}
#foodsScreen #foodFilterPanel .food-balance-section>.food-onboarding-subtitle{color:var(--ink,var(--text))!important}
#foodsScreen #foodFilterPanel .food-balance-section>.food-onboarding-subtitle :is(i,b){color:var(--blue)!important;background:var(--blue-soft,var(--surface-2))!important}
#foodsScreen #foodFilterPanel .food-balance-host{display:block!important;min-width:0;padding:0!important;background:none!important}
#foodsScreen .food-balance-tree{display:grid;gap:0;min-width:0}
#foodsScreen .food-balance-meal{container-type:inline-size;min-width:0;border-bottom:1px solid var(--line);background:transparent}
#foodsScreen .food-balance-meal:last-of-type{border-bottom:0}
#foodsScreen #foodFilterPanel .food-balance-meal-toggle{display:grid!important;grid-template-columns:24px minmax(0,1fr) 18px!important;align-items:center;gap:7px;min-height:42px!important;width:100%;padding:5px 0!important;border:0!important;border-radius:14px!important;box-shadow:none!important;background:transparent!important;color:var(--ink,var(--text))!important;text-align:left;font:inherit;cursor:pointer}
#foodsScreen .food-balance-meal-icon{width:24px;height:24px;object-fit:contain;filter:none}
#foodsScreen .food-balance-meal-copy{display:grid;gap:4px;min-width:0}
#foodsScreen .food-balance-meal-copy b{font-size:.875rem;line-height:1.35;white-space:normal;overflow-wrap:anywhere;color:var(--ink,var(--text))}
#foodsScreen .food-balance-meal-copy small{display:none}
#foodsScreen .food-balance-chevron{width:7px;height:7px;justify-self:center;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);color:var(--muted)}
#foodsScreen .food-balance-meal.open .food-balance-chevron{transform:rotate(225deg)}
#foodsScreen .food-balance-meal-body{display:grid;gap:10px;padding:1px 0 8px;min-width:0}
#foodsScreen #foodFilterPanel .food-balance-category{
  display:flex!important;
  align-items:center;
  gap:5px;
  min-width:0;
  max-width:100%;
  min-height:36px!important;
  margin:0!important;
  padding:4px 7px!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  box-shadow:none!important;
  background:var(--food-choice-surface,var(--card))!important;
  color:var(--ink,var(--text))!important;
  text-align:left;
  cursor:pointer;
}
#foodsScreen .food-balance-category img{width:18px;height:18px;flex:none;object-fit:contain;filter:none!important}
#foodsScreen .food-balance-category-name{font-size:.76rem;line-height:1.2;font-weight:700;white-space:normal;overflow-wrap:normal;word-break:normal}
#foodsScreen .food-balance-category-count{font-size:.7rem;line-height:1.2;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--muted)}
#foodsScreen .food-balance-category-requirement{font-size:.63rem;line-height:1.2;color:var(--muted)}
#foodsScreen .food-balance-extra-title{margin:6px 0 3px;padding-inline:6px;color:var(--muted);font-size:.73rem;font-weight:700}
#foodsScreen .food-balance-compact-list{display:flex;flex-wrap:wrap;gap:6px;min-width:0;padding:2px 0}
#foodsScreen #foodFilterPanel .food-balance-compact-list .food-balance-category{
  gap:6px;
  width:auto;
  padding:5px 8px!important;
  border-radius:12px!important;
}
#foodsScreen #foodFilterPanel .food-balance-compact-list .food-balance-category:is(:hover,:focus-visible,.active):not(:disabled){
  background:var(--blue-soft,var(--surface-2))!important;
}
#foodsScreen .food-balance-compact-list .food-balance-category-name{overflow-wrap:anywhere}
#foodsScreen .food-balance-compact-list .food-balance-category-count{
  padding:2px 5px;
  border-radius:6px;
  background:var(--surface-2,var(--line));
}
#foodsScreen .food-balance-meal-criteria{padding-block-start:3px}
#foodsScreen #foodFilterPanel .food-onboarding-row-reference{
  font-size:.68rem;
  font-weight:600;
  white-space:nowrap;
}
#foodsScreen .food-balance-category-status{width:11px;flex:none;text-align:center;font-size:.69rem;font-weight:800;color:var(--muted)}
#foodsScreen .food-balance-category[data-tone="ok"] .food-balance-category-status{color:var(--green,#138657)}
#foodsScreen .food-balance-category[data-tone="missing"] .food-balance-category-status{color:var(--danger,#bd4040)}
#foodsScreen #foodFilterPanel .food-balance-category.active{border-color:var(--blue)!important;background:color-mix(in srgb,var(--blue) 12%,var(--food-choice-surface,var(--card)))!important;box-shadow:0 0 0 1px var(--blue)!important}
#foodsScreen :is(.food-balance-meal-toggle,.food-balance-category,.food-balance-selected-criterion,.food-balance-criteria-toggle):focus-visible{outline:3px solid var(--blue)!important;outline-offset:3px!important}
#foodsScreen .food-balance-plate{position:relative;isolation:isolate;width:min(100%,304px);aspect-ratio:1;justify-self:center;min-width:0;margin:5px 0 10px}
#foodsScreen .food-balance-plate::before,#foodsScreen .food-balance-plate::after{content:"";position:absolute;border:1px solid color-mix(in srgb,var(--line) 68%,transparent);border-radius:50%;pointer-events:none;z-index:-1}
#foodsScreen .food-balance-plate::before{inset:7px;box-shadow:inset 0 0 0 5px color-mix(in srgb,var(--line) 12%,transparent)}
#foodsScreen .food-balance-plate::after{inset:17px}
#foodsScreen .food-balance-plate-center{position:absolute;inset:42% 32%;display:grid;align-content:center;justify-items:center;gap:3px;text-align:center;color:var(--muted);pointer-events:none;font-size:.64rem;line-height:1.25;z-index:0}
#foodsScreen .food-balance-plate-center img{width:22px;height:22px;object-fit:contain}
#foodsScreen #foodFilterPanel .food-balance-plate .food-balance-category{
  position:absolute;
  left:var(--x,50%);
  top:var(--y,50%);
  transform:translate(-50%,-50%);
  z-index:1;
  display:grid!important;
  justify-items:center;
  align-content:center;
  gap:3px;
  width:92px;
  min-height:80px!important;
  max-width:none;
  padding:7px 8px!important;
  border-radius:18px!important;
  text-align:center;
}
#foodsScreen .food-balance-plate .food-balance-category img{width:28px;height:28px}
#foodsScreen .food-balance-plate .food-balance-category-status{position:absolute;inset:3px 4px auto auto}
#foodsScreen :is(.food-balance-plate-grid,.food-balance-plate[data-large-text="true"])::before,
#foodsScreen :is(.food-balance-plate-grid,.food-balance-plate[data-large-text="true"])::after{display:none}
#foodsScreen .food-balance-plate[data-count="1"] .food-balance-plate-center{display:none}
#foodsScreen .food-balance-plate[data-count="2"] .food-balance-category:nth-child(1 of .food-balance-category){--x:23%}
#foodsScreen .food-balance-plate[data-count="2"] .food-balance-category:nth-child(2 of .food-balance-category){--x:77%}
#foodsScreen .food-balance-plate[data-count="3"] .food-balance-category:nth-child(1 of .food-balance-category){--y:19%}
#foodsScreen .food-balance-plate[data-count="3"] .food-balance-category:nth-child(2 of .food-balance-category){--x:24%;--y:76%}
#foodsScreen .food-balance-plate[data-count="3"] .food-balance-category:nth-child(3 of .food-balance-category){--x:76%;--y:76%}
#foodsScreen .food-balance-plate[data-count="4"] .food-balance-category:nth-child(1 of .food-balance-category){--x:25%;--y:24%}
#foodsScreen .food-balance-plate[data-count="4"] .food-balance-category:nth-child(2 of .food-balance-category){--x:75%;--y:24%}
#foodsScreen .food-balance-plate[data-count="4"] .food-balance-category:nth-child(3 of .food-balance-category){--x:25%;--y:77%}
#foodsScreen .food-balance-plate[data-count="4"] .food-balance-category:nth-child(4 of .food-balance-category){--x:75%;--y:77%}
#foodsScreen .food-balance-plate[data-count="5"] .food-balance-category:nth-child(1 of .food-balance-category){--y:15%}
#foodsScreen .food-balance-plate[data-count="5"] .food-balance-category:nth-child(2 of .food-balance-category){--x:84%;--y:41%}
#foodsScreen .food-balance-plate[data-count="5"] .food-balance-category:nth-child(3 of .food-balance-category){--x:71%;--y:82%}
#foodsScreen .food-balance-plate[data-count="5"] .food-balance-category:nth-child(4 of .food-balance-category){--x:29%;--y:82%}
#foodsScreen .food-balance-plate[data-count="5"] .food-balance-category:nth-child(5 of .food-balance-category){--x:16%;--y:41%}
#foodsScreen .food-balance-plate[data-count="6"] .food-balance-category:nth-child(1 of .food-balance-category){--x:29%;--y:16%}
#foodsScreen .food-balance-plate[data-count="6"] .food-balance-category:nth-child(2 of .food-balance-category){--x:71%;--y:16%}
#foodsScreen .food-balance-plate[data-count="6"] .food-balance-category:nth-child(3 of .food-balance-category){--x:84%;--y:50%}
#foodsScreen .food-balance-plate[data-count="6"] .food-balance-category:nth-child(4 of .food-balance-category){--x:71%;--y:84%}
#foodsScreen .food-balance-plate[data-count="6"] .food-balance-category:nth-child(5 of .food-balance-category){--x:29%;--y:84%}
#foodsScreen .food-balance-plate[data-count="6"] .food-balance-category:nth-child(6 of .food-balance-category){--x:16%;--y:50%}
#foodsScreen .food-balance-plate-grid,#foodsScreen .food-balance-plate[data-large-text="true"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;aspect-ratio:auto;width:100%;padding:10px 3px}
#foodsScreen :is(.food-balance-plate-grid,.food-balance-plate[data-large-text="true"]) .food-balance-plate-center{display:none}
#foodsScreen #foodFilterPanel :is(.food-balance-plate-grid,.food-balance-plate[data-large-text="true"]) .food-balance-category{position:relative;left:auto;top:auto;transform:none;width:100%!important;min-height:90px!important}
@container(max-width:285px){
  #foodsScreen .food-balance-plate{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;aspect-ratio:auto;width:100%;padding:8px 3px}
  #foodsScreen .food-balance-plate-center{display:none}
  #foodsScreen .food-balance-plate::before,#foodsScreen .food-balance-plate::after{display:none}
  #foodsScreen #foodFilterPanel .food-balance-plate .food-balance-category{position:relative;left:auto;top:auto;transform:none;width:100%!important;min-height:90px!important}
}
#foodsScreen .food-balance-results-mount:empty{display:none}
#foodsScreen .food-balance-results-mount{min-width:0}
#foodsScreen .food-balance-shared{min-width:0;padding:18px 0 4px;border-top:1px solid var(--line)}
#foodsScreen .food-balance-selection-summary{display:grid;gap:8px;min-width:0}
#foodsScreen .food-balance-selected-criteria{display:flex;flex-wrap:wrap;gap:7px;min-width:0}
#foodsScreen #foodFilterPanel .food-balance-selected-criterion,#foodsScreen .food-balance-selected-criterion{display:inline-flex;align-items:center;max-width:100%;min-height:44px;padding:7px 10px!important;border:1px solid var(--line)!important;border-radius:12px!important;color:var(--ink,var(--text))!important;background:var(--food-card-surface,var(--card))!important;font-size:.72rem;line-height:1.4;font-weight:600;white-space:normal;overflow-wrap:anywhere;text-align:left;box-shadow:none!important}
#foodsScreen .food-balance-criteria-toggle{justify-self:start;min-height:44px;border:0;background:transparent;color:var(--blue);padding:4px 0;font-size:.75rem;font-weight:700}
#foodsScreen .food-balance-results .food-list-heading h2{font-size:.88rem!important;line-height:1.45!important;color:var(--ink,var(--text))!important}
#foodsScreen .food-balance-results .food-list-heading h2{grid-column:1/-1!important;grid-row:1!important}
#foodsScreen .food-balance-results .food-list-heading .food-results-meta{grid-column:1!important;grid-row:2!important;color:var(--muted)!important}
#foodsScreen .food-balance-results .food-list-heading .food-toggle-visible{grid-column:2!important;grid-row:2!important;min-height:44px!important}
#foodsScreen .food-balance-results #foodList{grid-template-columns:minmax(0,1fr)!important}
#foodsScreen :is(.food-balance-host,.food-balance-meal-body,.food-balance-plate,.food-balance-extra,.food-balance-shared,.food-balance-selection-summary,.food-balance-selected-criterion,.food-balance-criteria-toggle)[hidden]{display:none!important}
@container(min-width:660px){
  #foodsScreen .food-balance-meal[data-has-results="true"] .food-balance-meal-body{grid-template-columns:minmax(250px,304px) minmax(0,1fr);align-items:start;gap:24px}
  #foodsScreen .food-balance-meal[data-has-results="true"] :is(.food-balance-plate,.food-balance-extra){grid-column:1}
  #foodsScreen .food-balance-meal[data-has-results="true"] .food-balance-results-mount{grid-column:2;grid-row:1 / span 3}
}
@media(min-width:901px){
  #foodsScreen>.food-results-region{grid-column:2!important;grid-row:2 / span 8!important}
  #foodsScreen>.food-results-region.food-balance-sticky{position:sticky;top:var(--food-results-sticky-top,88px);align-self:start!important}
  /* Clip horizontal paint without capturing the window scroll used by sticky results. */
  :root[data-interface="classic"] #foodsScreen.active:has(>.food-balance-sticky),
  :root[data-interface="classic"] .screens:has(>#foodsScreen.active>.food-balance-sticky){overflow-x:clip;overflow-y:visible}
}
@media(max-width:900px){#foodsScreen>.food-results-region{margin-block-start:16px!important}}





:root[data-visual-theme="dark"] #foodsScreen img[src*="/assets/meals/"],:root[data-visual-theme="osyra"] #foodsScreen img[src*="/assets/meals/"]{filter:brightness(0) invert(.87)}
@media(prefers-reduced-motion:reduce){#foodsScreen .food-balance-category{transition:none!important}}
/* Compact mode heading; the button's accessible name retains its proof status. */
#foodsScreen #foodFilterPanel .food-base-mode-switch{grid-template-columns:repeat(auto-fit,minmax(min(100%,4.75rem),1fr))!important}
#foodsScreen #foodFilterPanel .food-base-mode-option{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto;align-items:center!important;gap:0!important;min-height:48px!important}
#foodsScreen #foodFilterPanel .food-base-mode-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:2.2rem}
#foodsScreen #foodFilterPanel .food-base-mode-heading .food-base-mode-name{flex:1 1 60px;min-width:0;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.25!important}
#foodsScreen #foodFilterPanel .food-base-mode-heading .food-base-mode-name.split em{overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.15!important}
#foodsScreen #foodFilterPanel .food-base-mode-heading i{flex:0 0 20px}
#foodsScreen #foodFilterPanel .food-base-mode-status{display:none}
#foodsScreen #foodFilterPanel .food-base-mode-option:focus-visible{outline:3px solid var(--blue)!important;outline-offset:3px!important}
#foodsScreen #foodFilterPanel .food-base-mode-option.unverified i{background:var(--surface-2,var(--card))!important;color:var(--muted)!important}

#foodsScreen #catalogFoodControls #foodOnboardingMount .food-onboarding-panel,
#foodsScreen #catalogFoodControls #foodOnboardingMount+.food-toolbar,
#foodsScreen #catalogFoodControls #foodFilterPanel:not([hidden]){
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#foodsScreen #catalogFoodControls #foodOnboardingMount .food-onboarding-head{
  grid-template-columns:auto auto minmax(0,1fr) repeat(2,44px)!important;
  align-items:center!important;
  gap:0 4px!important;
  min-height:44px!important;
  padding:0 0 8px!important;
}
#foodsScreen #catalogFoodControls .food-onboarding-head-actions{display:contents!important}
#foodsScreen #catalogFoodControls .food-onboarding-head-actions>[data-food-onboarding-count]{
  grid-column:2;
  justify-items:start;
  min-width:44px!important;
  padding:0 4px!important;
}
#foodsScreen #catalogFoodControls .food-onboarding-head-actions>[data-food-onboarding-count] b{
  padding:4px 6px;
  border-radius:7px;
  background:color-mix(in srgb,var(--muted) 10%,transparent);
  color:var(--ink,var(--text))!important;
  font-size:.75rem!important;
  font-variant-numeric:tabular-nums;
}
#foodsScreen #catalogFoodControls .food-onboarding-head-actions .food-onboarding-manage{grid-column:4}
#foodsScreen #catalogFoodControls .food-onboarding-head-actions .food-onboarding-add{grid-column:5}
#foodsScreen #catalogFoodControls #foodOnboardingMount .food-onboarding-head-actions :is([data-food-onboarding-count],.food-onboarding-manage,.food-onboarding-add),
#foodsScreen #catalogFoodControls .food-toolbar-top :is(.food-base-manage-inline,.food-add-inline){
  border-color:transparent!important;
  background:transparent!important;
  color:var(--ink,var(--text))!important;
  box-shadow:none!important;
}
#foodsScreen #catalogFoodControls :is(.food-onboarding-manage,.food-base-manage-inline) .food-base-save-icon{
  width:22px!important;
  height:22px!important;
}
#foodsScreen #catalogFoodControls :is(.food-onboarding-add,.food-add-inline)>.food-new-symbol{
  width:24px!important;
  height:24px!important;
  font-size:24px!important;
}
#foodsScreen #catalogFoodControls #foodOnboardingMount .food-onboarding-head-actions .food-onboarding-add,
#foodsScreen #catalogFoodControls .food-toolbar-top .food-add-inline{
  background:color-mix(in srgb,var(--blue) 12%,transparent)!important;
}
#foodsScreen #catalogFoodControls #foodOnboardingMount .food-onboarding-head-actions button:enabled:is(:hover,:focus-visible),
#foodsScreen #catalogFoodControls .food-toolbar-top button:enabled:is(:hover,:focus-visible){
  background:color-mix(in srgb,var(--blue) 18%,transparent)!important;
}
#foodsScreen #catalogFoodControls #foodOnboardingMount+.food-toolbar .food-toolbar-row{
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:6px 8px!important;
}
#foodsScreen #catalogFoodControls #foodOnboardingMount+.food-toolbar .food-search-field{
  grid-column:1!important;
  grid-row:1!important;
  min-width:0!important;
  min-height:42px!important;
  border-radius:13px!important;
}
#foodsScreen #catalogFoodControls .food-toolbar input#foodSearch{
  min-height:40px!important;
  height:40px!important;
  line-height:normal!important;
}
#foodsScreen #catalogFoodControls #foodOnboardingMount+.food-toolbar .food-toolbar-actions{
  display:flex!important;
  grid-column:2!important;
  grid-row:1!important;
  width:auto!important;
  align-items:center;
  gap:4px!important;
  padding:0!important;
  box-shadow:none!important;
}
#foodsScreen #catalogFoodControls #foodOnboardingMount+.food-toolbar .filter-toggle{
  min-width:0!important;
  min-height:44px!important;
  padding:0 10px!important;
  gap:9px!important;
  border:1px solid transparent!important;
  border-radius:12px!important;
  background:transparent!important;
  color:var(--ink,var(--text))!important;
  box-shadow:none!important;
}
#foodsScreen #catalogFoodControls #foodOnboardingMount+.food-toolbar .filter-toggle:is([aria-expanded="true"],:hover,:focus-visible){
  background:color-mix(in srgb,var(--blue) 10%,transparent)!important;
}
#foodsScreen #catalogFoodControls #foodOnboardingMount+.food-toolbar .filter-toggle b{
  display:block!important;
  width:6px!important;
  height:6px!important;
  flex:0 0 6px!important;
  border:solid currentColor!important;
  border-width:0 1.5px 1.5px 0!important;
  border-radius:0!important;
  background:none!important;
  font-size:0!important;
  transform:translateY(-1px) rotate(45deg);
}
#foodsScreen #catalogFoodControls #foodOnboardingMount+.food-toolbar .filter-toggle[aria-expanded="true"] b{
  transform:translateY(2px) rotate(225deg);
}
#foodsScreen #catalogFoodControls :is(.food-onboarding-head-actions,.food-toolbar-top,.food-toolbar-actions) button:focus-visible{
  outline:2px solid var(--blue)!important;
  outline-offset:2px!important;
}
#foodsScreen #catalogFoodControls #foodOnboardingMount+.food-toolbar[data-has-food-filters="false"] .food-clear-button{display:none!important}
#foodsScreen #catalogFoodControls #foodQuickFilters{grid-column:1/-1;padding:0!important}
#foodsScreen #catalogFoodControls #foodFilterPanel:not([hidden]){gap:0!important}
#foodsScreen #catalogFoodControls #foodFilterPanel>div:empty{display:none}
#foodsScreen #catalogFoodControls #foodValidationFilters{gap:0!important}
#foodsScreen #catalogFoodControls #foodFilterPanel .food-onboarding-section{
  gap:0!important;
  padding:0 0 2px!important;
  border:0!important;
  border-bottom:1px solid var(--line)!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
#foodsScreen #catalogFoodControls #foodFilterPanel .food-onboarding-subtitle{
  min-height:38px!important;
  padding:3px 0!important;
}
#foodsScreen #catalogFoodControls #foodFilterPanel .food-base-mode-switch{
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
#foodsScreen #catalogFoodControls #foodFilterPanel .food-base-mode-option{
  min-height:38px!important;
  padding:3px 7px!important;
}
