/* Compact Kitchen navigation and the same original weekly essentials form. */
#app #bbKitchenSections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:0 0 16px;padding:5px;border:1px solid #d5e3d6;border-radius:16px;background:#f2f7f0}
#app #bbKitchenSections>button{box-sizing:border-box;width:100%;min-width:0;min-height:46px;margin:0;padding:9px 7px;border:1px solid transparent;border-radius:11px;background:transparent;color:#42614c;font:750 12px/1.3 system-ui;white-space:normal;cursor:pointer;box-shadow:none}
#app #bbKitchenSections>button:focus-visible,#app #bbKitchenEssentials>.bbke-essentials-heading:focus-visible{outline:3px solid #c89b39;outline-offset:3px}
#app #bbKitchenSections #bb76JumpCount{display:inline-flex;min-width:18px;height:18px;padding:0 3px;margin:0 2px;font-size:10px;background:#e5f0e5}
#app #bbKitchenEssentials{display:block!important;min-width:0;margin:14px 0 0;border:1px solid #d1ddcb;border-radius:17px;background:#fffdf5;overflow:hidden;scroll-margin-top:20px}
#app #bbKitchenEssentials>.bbke-essentials-heading{display:flex;align-items:center;gap:12px;min-height:76px;padding:15px;list-style:none;color:#315c3e}
#app #bbKitchenEssentials>.bbke-essentials-heading::-webkit-details-marker{display:none}
#app #bbKitchenEssentials>.bbke-essentials-heading>span:nth-child(2){min-width:0;flex:1}
#app #bbKitchenEssentials>.bbke-essentials-heading strong{display:block;font-size:18px;line-height:1.3}
#app #bbKitchenEssentials>.bbke-essentials-heading small{display:block;margin-top:3px;color:#6f795e;font-size:12px;line-height:1.4}
#app #bbKitchenEssentials .bbke-essentials-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:#f3ecd7;font-size:22px}
#app #bbKitchenEssentials .bbke-chevron{font-size:23px;transition:transform .15s}
#app #bbKitchenEssentials[open] .bbke-chevron{transform:rotate(180deg)}
#app #bbKitchenEssentials[open]>summary{border-bottom:1px solid #e4e7d8}
#app #bbKitchenEssentials>[data-bb-kitchen-essentials-controls].bb16-essentials{display:block!important;margin:0!important;padding:16px!important;max-width:100%;border:0!important;border-radius:0!important;background:#fffef9!important;box-shadow:none!important}

#app #bbKitchenEssentials .bb16-essentials-heading h3{font-size:17px!important;color:#315c3e!important}
#app #bbKitchenEssentials .bb16-essentials-heading p{font-size:12px!important;line-height:1.6!important}
#app #bbKitchenEssentials .bb1749-essentials-topup{padding:12px;margin:12px 0;border-radius:13px}
#app #bbKitchenEssentials .bb1749-essentials-topup h4{font-size:16px}
#app #bbKitchenEssentials .bb1749-essential-preset{min-height:44px}
#app #bbKitchenEssentials :is(.bb16-essential-row,.bb1749-topup-row){min-width:0}
#app #bbKitchenEssentials #bb307EssentialsForm{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#app #bbKitchenEssentials #bb307EssentialsForm .bb16-essential-name,#app #bbKitchenEssentials #bb307EssentialsForm>p{grid-column:1/-1}
#app #bbKitchenEssentials #bb307EssentialsForm button[type=submit]{width:100%;min-height:44px;justify-self:stretch}
#app #bb173ShopFridge #bb76PantryHeading{font-size:23px;letter-spacing:-.35px}
#app #bb76StorageSections,#app #bb8WhatIHave{scroll-margin-top:20px}
@media(max-width:360px){#app #bbKitchenSections{gap:4px;padding:4px}#app #bbKitchenSections>button{font-size:11px;padding:8px 4px}#app #bbKitchenEssentials>.bbke-essentials-heading{padding:12px;gap:9px}#app #bbKitchenEssentials>.bbke-essentials-heading strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){#app #bbKitchenEssentials .bbke-chevron{transition:none}}

/* The legacy Kitchen hides every sibling of its pantry card with :has/:not.
   Expose only this new essentials disclosure beside that existing card. */
body[data-bbnext-view="shop"] #app:has(> #bb173ShopFridge)>#bbKitchenEssentials{display:block!important}
/* The same four thumbnail choices and Add control in all four Kitchen areas. */
html body #app #bb173ShopFridge #bb76StorageSections .bbke-choice-grid,
html body #app #bbKitchenEssentials .bbke-choice-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;margin:0!important;min-width:0}
html body #app #bb173ShopFridge #bb76StorageSections .bbke-choice-grid>button,
html body #app #bbKitchenEssentials .bbke-choice-grid>button{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:128px!important;box-sizing:border-box;margin:0!important;padding:11px 7px!important;border:1px solid #d4e1d5!important;border-radius:14px!important;background:#fffdf8!important;color:#28573f!important;font:750 13px/1.3 system-ui!important;white-space:normal!important;text-align:center;cursor:pointer}
html body #app #bb173ShopFridge #bb76StorageSections .bbke-choice-grid>button[aria-pressed="true"]{background:#e9f4e5!important;border:2px solid #739a6d!important}
html body #app #bb173ShopFridge #bb76StorageSections .bbke-choice-grid>button small{font-size:10px!important;color:#69806a}
html body #app #bb173ShopFridge #bb76StorageSections .bbke-choice-grid>button[data-bbke-choice-hidden],
html body #app #bbKitchenEssentials .bbke-choice-grid>button[data-bbke-choice-hidden]{display:none!important}
html body #app #bb173ShopFridge .bbke-choice-grid .bb-food-visual,
html body #app #bbKitchenEssentials .bbke-choice-grid .bb-food-visual{width:64px!important;height:64px!important;flex:none;min-height:0!important;border-radius:14px!important}
html body #app #bbKitchenEssentials .bbke-fallback{display:grid;place-items:center;width:64px;height:64px;font-size:39px}
html body #app .bbke-picker-controls{display:flex;flex-direction:column;gap:11px;min-width:0}
html body #app #bb173ShopFridge .bbke-picker-controls>input,
html body #app #bbKitchenEssentials .bbke-picker-controls>input{min-width:0;min-height:46px;width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #b8cdbb;border-radius:11px;background:#fff;color:#244b36;font:16px/1.4 system-ui}
html body #app #bb173ShopFridge .bbke-picker-controls>input[hidden],
html body #app #bbKitchenEssentials .bbke-picker-controls>input[hidden],
html body #app .bbke-search-empty[hidden],
html body #app #bbkeHouseholdMore[hidden]{display:none!important}
html body #app #bb173ShopFridge .bbke-add-choice,
html body #app #bbKitchenEssentials .bbke-add-choice{display:block!important;min-height:46px!important;width:100%;box-sizing:border-box;padding:11px 14px!important;border:1px dashed #89aa8a!important;border-radius:12px!important;background:#eef5e9!important;color:#2d6441!important;font:800 14px/1.3 system-ui!important;cursor:pointer}
html body #app #bb173ShopFridge .bb76-store-body[data-bbke-expanded="false"]>.bb76-add-food{display:none!important}
html body #app .bbke-search-empty{font-size:12px;line-height:1.5;color:#657b67;margin:0}
html body #app .bbke-household-more{margin-top:15px}
html body #app .bbke-household-error{grid-column:1/-1;color:#9b4331;background:#fff3ec;border:1px solid #e8c3b5;padding:10px;border-radius:9px;font-size:12px;line-height:1.5}
html body #app #bbKitchenLegacyTopups{margin-top:14px;border:1px solid #d8dfd0;border-radius:13px;background:#fffdf5;padding:0 12px;scroll-margin-top:20px}
html body #app #bbKitchenLegacyTopups>summary{min-height:48px;padding:13px 0;box-sizing:border-box;font:750 13px/1.5 system-ui;color:#426644;cursor:pointer}
html body #app #bbKitchenLegacyTopups>p{font-size:12px;line-height:1.5;color:#64725b}
html body #app #bbKitchenLegacyTopups .bb1749-topup-row{margin:9px 0}
html body #app #bbKitchenLegacyTopups .bb16-essential-row{margin:9px 0;padding:10px;border:1px solid #e0e7d8;border-radius:10px;font-size:13px}
html body #app #bbKitchenLegacyTopups .bb16-essential-actions{display:flex;gap:7px;flex-wrap:wrap}
html body #app #bbKitchenLegacyTopups .bb16-essential-actions>button{min-height:44px}
html body #app #bb173ShopFridge .bbke-reconcile-top{display:block!important;box-sizing:border-box;width:100%;min-height:54px!important;margin:0 0 15px!important;padding:12px 15px!important;border:1px solid #1e633d!important;border-radius:13px!important;background:#246e46!important;color:#fff!important;font:800 14px/1.35 system-ui!important}
html body #app #bb173ShopFridge .bbke-reconcile-top:disabled{opacity:.55}
html body #app #bb173ShopFridge .bbke-selected-readout{margin:14px 0 0;border-top:1px solid #e0e7db;padding-top:3px}
html body #app #bb173ShopFridge .bbke-selected-readout>summary{min-height:44px;box-sizing:border-box;padding:12px 0;color:#4b7052;font:750 12px/1.5 system-ui;cursor:pointer}
html body #app #bb173ShopFridge .bbke-selected-readout ul{padding-left:18px;font-size:12px;line-height:1.7;color:#506b55}
html body #app #bb173ShopFridge .bbke-selected-readout>button{min-height:44px;box-sizing:border-box;width:100%;padding:10px;border:1px solid #cbdcc5;border-radius:10px;background:#fffdf8;color:#315c3c;font-weight:750}
/* The same quantities are used for food and household requirements. */
#app .bb-home-quantities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:1 0 100%;gap:8px;min-width:0;margin:10px 0}
#app .bb-home-quantities label{display:grid;gap:5px;font-size:12px;font-weight:700}
#app .bb-home-quantities input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #c9dacf;border-radius:10px;padding:9px;background:white;color:#204b37;font:inherit}
#app .bb-home-quantities output{grid-column:1/-1;color:#246b46;font-size:13px;font-weight:750}
#app .bb16-essential-row:has(.bb-home-quantities){flex-wrap:wrap}
#app #bb173ShopFridge .bb5-review-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
#app #bb173ShopFridge .bb5-review-row>strong,#app #bb173ShopFridge .bb5-review-row>output{grid-column:1/-1}
#app #bb173ShopFridge .bb5-review-row input,#app #bb173ShopFridge .bb5-review-row select{width:100%;min-width:0;min-height:44px}
#app .bb-home-covered{padding:12px;border:1px solid #d6e3d6;border-radius:13px;margin:8px 0;background:#f2f7ed}
#app .bb-home-covered label{display:flex;gap:10px;align-items:center;min-height:44px;font-size:13px}
#app .bb-home-covered input{width:22px;height:22px}
/* Reviewed partial containers use measured household stock, separate from food. */
#app .bb-household-amount{flex:1 0 100%;grid-column:1/-1;width:100%;min-width:0;margin-top:8px;border-top:1px solid #dce4d5}
#app .bb-household-amount>summary{box-sizing:border-box;min-height:44px;padding:12px 0;font:750 12px/1.5 system-ui;color:#315d42;cursor:pointer}
#app .bb-household-amount-help,#app .bb-household-amount-status{font-size:12px;line-height:1.6;color:#5c705b;margin:5px 0 10px}
#app .bb-household-amount-status:empty{display:none}
#app .bb-household-amount .bb-home-quantities :is(input,select){box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #c9dacf;border-radius:10px;padding:9px;background:#fff;color:#204b37;font:16px/1.4 system-ui}
#app .bb-household-amount-form>button{box-sizing:border-box;min-height:44px;width:100%;padding:11px;border:1px solid #245b3e;border-radius:11px;background:#245b3e;color:#fffdf4;font-weight:750}
#app .bb-household-amount :is(summary,input,select,button):focus-visible{outline:3px solid #c79d44;outline-offset:2px}

/* Two real sections share one stable control row. The hidden panel keeps its
   existing form controls in place; only a user navigation resets the viewport. */
html body #app #bbKitchenSections>button[aria-selected="true"]{background:#245e43;border-color:#245e43;color:#fffef5;box-shadow:0 2px 5px #173c2512}
html body #app #bbKitchenSections>button{min-height:46px;align-items:center;justify-content:center;font-size:12px;line-height:1.3}
html body #app #bbKitchenFoodPanel{min-width:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
html body #app #bbKitchenFoodPanel[hidden],
html body[data-bbnext-view="shop"] #app:has(> #bb173ShopFridge)>#bbKitchenEssentials[hidden]{display:none!important}
html body #app #bbKitchenEssentials>.bbke-essentials-heading{cursor:default;min-height:64px;padding:13px 15px;gap:10px}
html body #app #bbKitchenEssentials>.bbke-essentials-heading strong{font-size:17px}
html body #app #bbKitchenEssentials>.bbke-essentials-heading small{font-size:12px}
html body #app #bb173ShopFridge[data-bbke-section="essentials"] .bb76-title>div>p:last-child:not(.bb76-eyebrow){display:none}
@media(max-width:360px){html body #app #bbKitchenSections>button{font-size:11px;padding-inline:5px}}
