/* Ingredient picker: existing BasketBoss cream, sage and gold. */
#app.bbnext-plan .bb-ingredient-picker{margin:0 0 12px;border:1px solid #ccddcc;border-radius:14px;background:#fffdf7;overflow:hidden;color:#214c35}
#app.bbnext-plan .bb-avoid-tab{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;margin:0;padding:11px 13px;border:0;border-radius:13px;background:linear-gradient(110deg,#f7f7ec,#edf4e8);color:#245638;font-family:inherit;font-size:13px;font-weight:800;line-height:1.35;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
#app.bbnext-plan .bb-avoid-tab-icon{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:27px;height:27px;border-radius:8px;background:#ffffffb8;color:#34734a}
#app.bbnext-plan .bb-avoid-tab-label{flex:1;min-width:0}
#app.bbnext-plan .bb-avoid-count{flex:0 0 auto;padding:3px 7px;border:1px solid #d6e3d0;border-radius:12px;background:#fffef9;color:#5d725f;font-size:10px;font-weight:700;white-space:nowrap}
#app.bbnext-plan .bb-avoid-tab.has-selection .bb-avoid-count{border-color:#d3bc75;background:#f8edc7;color:#69501b}
#app.bbnext-plan .bb-avoid-chevron{display:inline-block;flex:0 0 auto;font-size:20px;line-height:1;transition:transform .16s ease}
#app.bbnext-plan .bb-avoid-tab[aria-expanded="true"] .bb-avoid-chevron{transform:rotate(180deg)}
#app.bbnext-plan .bb-avoid-panel[hidden]{display:none!important}
#app.bbnext-plan .bb-avoid-panel:not([open]){display:none!important}
#app.bbnext-plan .bb-avoid-panel{
 --bb-avoid-edge:max(12px,env(safe-area-inset-top,0px));
 position:fixed;top:calc(var(--bb-avoid-viewport-top,0px) + var(--bb-avoid-edge));left:0;right:0;
 display:flex;flex-direction:column;gap:10px;box-sizing:border-box;
 width:min(540px,calc(100vw - 24px));max-width:calc(100vw - 24px);
 height:min(680px,calc(var(--bb-avoid-viewport-height,100dvh) - var(--bb-avoid-edge) - max(12px,env(safe-area-inset-bottom,0px))));
 max-height:calc(var(--bb-avoid-viewport-height,100dvh) - var(--bb-avoid-edge) - max(12px,env(safe-area-inset-bottom,0px)));
 margin:0 auto;padding:14px;border:1px solid #cbdcc5;border-radius:20px;
 background:#fffdf6;color:#214c35;box-shadow:0 20px 60px #183d2a33;overflow:hidden;
}
#app.bbnext-plan .bb-avoid-panel::backdrop{background:#102d2780}
#app.bbnext-plan .bb-avoid-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
#app.bbnext-plan .bb-avoid-panel-heading h2{margin:0;font-size:21px;font-weight:750;line-height:1.2;letter-spacing:-.025em;color:#214c35}
#app.bbnext-plan .bb-avoid-panel .bb-avoid-close{display:grid;place-items:center;flex:none;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border:1px solid #d6dfcc!important;border-radius:12px!important;background:#f6f7ed!important;color:#315d41!important;box-shadow:none!important;font:500 25px/1 system-ui,sans-serif!important;cursor:pointer}
#app.bbnext-plan .bb-avoid-content{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:4px;scroll-padding:8px;touch-action:pan-y}
#app.bbnext-plan .bb-avoid-intro{margin:0 0 10px;color:#617160;font-size:12px;line-height:1.5}
#app.bbnext-plan .bb-avoid-tools{display:grid;gap:5px}
#app.bbnext-plan .bb-avoid-search-label{font-size:11px;font-weight:800;color:#315a3e}
#app.bbnext-plan .bb-avoid-search{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #c9dac9;border-radius:10px;background:#fff;color:#254d35;font-family:inherit;font-size:16px;font-weight:400;line-height:1.3;-webkit-appearance:none}
#app.bbnext-plan .bb-avoid-selected{display:flex;flex-wrap:wrap;gap:6px;margin:11px 0 0}
#app.bbnext-plan .bb-avoid-selected[hidden]{display:none}
#app.bbnext-plan .bb-avoid-chip{min-height:44px;border:1px solid #c6d9bd;border-radius:20px;padding:5px 10px;background:#e9f1e4;color:#315d39;font-family:inherit;font-size:11px;font-weight:700;line-height:1.3;cursor:pointer}
#app.bbnext-plan .bb-avoid-results{margin:10px 0;color:#6a7966;font-size:10px;line-height:1.4}
#app.bbnext-plan .bb-avoid-options{max-height:none;overflow:visible;padding:0}
#app.bbnext-plan .bb-avoid-group+.bb-avoid-group{margin-top:14px}
#app.bbnext-plan .bb-avoid-group-title{margin:0 0 7px;color:#4c6a4e;font-size:10px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}
#app.bbnext-plan .bb-avoid-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#app.bbnext-plan .bb-avoid-tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;box-sizing:border-box;min-width:0;min-height:102px;padding:8px 5px 7px;border:1px solid #d9e4d1;border-radius:11px;background:#fff;color:#335538;cursor:pointer;-webkit-tap-highlight-color:transparent}
#app.bbnext-plan .bb-avoid-tile[aria-pressed="true"]{border-color:#468858;background:#edf5e8;box-shadow:inset 0 0 0 1px #468858}
#app.bbnext-plan .bb-avoid-tile-name{display:block;max-width:100%;overflow-wrap:break-word;font-size:11px;font-weight:800;line-height:1.3;text-align:center}
#app.bbnext-plan .bb-avoid-tile-state{margin-top:auto;color:#6c7e65;font-size:9px;font-weight:650;line-height:1.3}
#app.bbnext-plan .bb-avoid-tile[aria-pressed="true"] .bb-avoid-tile-state{color:#376740}
#app.bbnext-plan .bb-avoid-photo{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:12px;font-size:28px;line-height:1;pointer-events:none}
#app.bbnext-plan .bb-avoid-photo>img{display:block;box-sizing:border-box;width:48px;height:48px;margin:0;border:1px solid #e2e6d8;border-radius:12px;object-fit:cover;background:#f7f3e9}
#app.bbnext-plan .bb-avoid-photo .bb-food-visual{width:48px;height:48px;border-radius:12px}
#app.bbnext-plan .bb-avoid-status{min-height:16px;margin:9px 0 4px;color:#477047;font-size:11px;line-height:1.45}
#app.bbnext-plan .bb-avoid-status.is-error{color:#a33128}
#app.bbnext-plan .bb-avoid-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;padding-top:10px;border-top:1px solid #dce5d6}
#app.bbnext-plan .bb-avoid-clear,#app.bbnext-plan .bb-avoid-done{min-width:88px;min-height:44px;padding:8px 14px;border:1px solid #cadbc6;border-radius:12px;font-family:inherit;font-size:13px;font-weight:750;line-height:1.35;cursor:pointer}
#app.bbnext-plan .bb-avoid-clear{background:#fffdf7;color:#5e775a}
#app.bbnext-plan .bb-avoid-clear:disabled{opacity:.5;cursor:default}
#app.bbnext-plan .bb-avoid-done{background:#2d7046;border-color:#2d7046;color:#fff}
#app.bbnext-plan .bb-ingredient-picker :is(button,input):focus-visible{outline:3px solid #d7b455;outline-offset:2px}
@media(max-width:420px){#app.bbnext-plan .bb-avoid-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}#app.bbnext-plan .bb-avoid-tab{padding-left:10px;padding-right:10px;gap:6px}#app.bbnext-plan .bb-avoid-count{font-size:9px;padding:3px 6px}#app.bbnext-plan .bb-avoid-panel{padding-left:10px;padding-right:10px}}
@media(prefers-reduced-motion:reduce){#app.bbnext-plan .bb-avoid-chevron{transition:none}}
/* Native dialog owns one list scroller; the meal plan stays at its saved
   position until close. :has also releases CSS locking if a host rerenders. */
html.bb-avoid-modal-open:has(#bbAvoidIngredientPanel[open]),
html.bb-avoid-modal-open:has(#bbAvoidIngredientPanel[open]) body{overflow:hidden!important;overscroll-behavior:none}
html.bb-avoid-modal-open:has(#bbAvoidIngredientPanel[open]) body{position:fixed!important;top:var(--bb-avoid-scroll-top,0px)!important;left:0;right:0;width:100%}
