/* 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{padding:14px!important;border-color:var(--line)!important;background:var(--food-card-surface,var(--card))!important;overflow:visible!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:40px minmax(0,1fr) 18px!important;align-items:center;gap:10px;min-height:64px!important;width:100%;padding:10px 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:40px;height:40px;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:18px;padding:8px 0 16px;min-width:0}
#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-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;min-width:0!important;min-height:80px!important;width:92px;max-width:none!important;padding:7px 4px!important;margin:0!important;border:1px solid var(--line)!important;border-radius:18px!important;box-shadow:none!important;background:var(--food-choice-surface,var(--card))!important;color:var(--ink,var(--text))!important;font:inherit;text-align:center;cursor:pointer;transition:background-color .14s,border-color .14s}
#foodsScreen .food-balance-category img{display:block;width:30px;height:30px;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-legend{display:none}
#foodsScreen .food-balance-category-status{position:absolute;right:4px;top:4px;width:14px;height:14px;display:grid;place-items:center;border-radius:50%;font-size:10px;font-weight:800;color:var(--muted);background:var(--food-card-surface,var(--card))}
#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 .food-balance-category.active::after{content:"";position:absolute;left:4px;top:4px;display:grid;place-items:center;width:8px;height:8px;border:2px solid var(--food-choice-surface,var(--card));border-radius:50%;background:var(--blue);color:var(--on-accent,#fff);font-size:10px;font-weight:800}
#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[data-count="1"] .food-balance-plate-center{display:none}
#foodsScreen .food-balance-plate[data-count="2"] .food-balance-category:nth-of-type(1){--x:23%}
#foodsScreen .food-balance-plate[data-count="2"] .food-balance-category:nth-of-type(2){--x:77%}
#foodsScreen .food-balance-plate[data-count="3"] .food-balance-category:nth-of-type(1){--y:19%}
#foodsScreen .food-balance-plate[data-count="3"] .food-balance-category:nth-of-type(2){--x:24%;--y:76%}
#foodsScreen .food-balance-plate[data-count="3"] .food-balance-category:nth-of-type(3){--x:76%;--y:76%}
#foodsScreen .food-balance-plate[data-count="4"] .food-balance-category:nth-of-type(1){--x:25%;--y:24%}
#foodsScreen .food-balance-plate[data-count="4"] .food-balance-category:nth-of-type(2){--x:75%;--y:24%}
#foodsScreen .food-balance-plate[data-count="4"] .food-balance-category:nth-of-type(3){--x:25%;--y:77%}
#foodsScreen .food-balance-plate[data-count="4"] .food-balance-category:nth-of-type(4){--x:75%;--y:77%}
#foodsScreen .food-balance-plate[data-count="5"] .food-balance-category:nth-of-type(1){--y:15%}
#foodsScreen .food-balance-plate[data-count="5"] .food-balance-category:nth-of-type(2){--x:84%;--y:41%}
#foodsScreen .food-balance-plate[data-count="5"] .food-balance-category:nth-of-type(3){--x:71%;--y:82%}
#foodsScreen .food-balance-plate[data-count="5"] .food-balance-category:nth-of-type(4){--x:29%;--y:82%}
#foodsScreen .food-balance-plate[data-count="5"] .food-balance-category:nth-of-type(5){--x:16%;--y:41%}
#foodsScreen .food-balance-plate[data-count="6"] .food-balance-category:nth-of-type(1){--x:29%;--y:16%}
#foodsScreen .food-balance-plate[data-count="6"] .food-balance-category:nth-of-type(2){--x:71%;--y:16%}
#foodsScreen .food-balance-plate[data-count="6"] .food-balance-category:nth-of-type(3){--x:84%;--y:50%}
#foodsScreen .food-balance-plate[data-count="6"] .food-balance-category:nth-of-type(4){--x:71%;--y:84%}
#foodsScreen .food-balance-plate[data-count="6"] .food-balance-category:nth-of-type(5){--x:29%;--y:84%}
#foodsScreen .food-balance-plate[data-count="6"] .food-balance-category:nth-of-type(6){--x:16%;--y:50%}
#foodsScreen .food-balance-plate-grid,#foodsScreen .food-balance-day .food-balance-plate,#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-day .food-balance-plate,.food-balance-plate[data-large-text="true"]) .food-balance-plate-center{display:none}
#foodsScreen :is(.food-balance-plate-grid,.food-balance-day .food-balance-plate,.food-balance-plate[data-large-text="true"]) .food-balance-legend{position:static;grid-column:1/-1}
#foodsScreen #foodFilterPanel :is(.food-balance-plate-grid,.food-balance-day .food-balance-plate,.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}
#foodsScreen .food-balance-day .food-balance-plate::before,#foodsScreen .food-balance-day .food-balance-plate::after{display:none}
#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-shared,.food-balance-selection-summary,.food-balance-selected-criterion,.food-balance-criteria-toggle)[hidden]{display:none!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-legend{position:static;grid-column:1/-1}
  #foodsScreen #foodFilterPanel .food-balance-plate .food-balance-category{position:relative;left:auto;top:auto;transform:none;width:100%!important;min-height:90px!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}
}
@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}
