/* Groc 2.5 — Layered iOS Glass, constrained to compositing-light surfaces.
   UI overrides only: existing Supabase/REWE/dm/Drunken business logic is untouched. */
:root{--g25-ink:#214b38;--g25-glass:#fffefaed;--g25-hairline:#ffffffd9;--g25-sep:#d6e5dc;--g25-shade:#17452c17}
:root:not([data-theme="dark"]) body{background:linear-gradient(160deg,#f9faf7,#f1f6f1 50%,#fbfaf7)!important;color:var(--g25-ink)}
/* Layered translucent highlights without mass backdrop blurring over long lists. */
:root:not([data-theme="dark"]) .bottom-nav-glass.bottom-nav-six{background:linear-gradient(145deg,#fffffff2,#eaf2eef0)!important;border:1px solid #ffffffed!important;box-shadow:0 8px 25px #173e2f1b, inset 0 1px #fff!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
:root:not([data-theme="dark"]) .groc2-tobuy>.dashboard-section-heading,
:root:not([data-theme="dark"]) .dashboard-quick-add-section>.dashboard-shortcut-heading,
:root:not([data-theme="dark"]) .dashboard-recipe-section>.dashboard-shortcut-heading{
 background:linear-gradient(125deg,#f4faf5ec,#deece3f2)!important;border:1px solid #ffffffe8!important;box-shadow:inset 0 1px #fff9,0 4px 13px #123c2510!important
}
:root:not([data-theme="dark"]) .dashboard-content-section.groc2-tobuy,
:root:not([data-theme="dark"]) .dashboard-content-section.dashboard-quick-add-section,
:root:not([data-theme="dark"]) .dashboard-content-section.dashboard-recipe-section{
 background:linear-gradient(135deg,#ffffffed,#f6faf7f0)!important;border:1px solid #e2ece4!important;box-shadow:0 5px 17px #1b503110!important
}
:root:not([data-theme="dark"]) .library-title-row,
:root:not([data-theme="dark"]) .shopping-page-v4 .shopping-top-card,
:root:not([data-theme="dark"]) .m15-settings .profile-hero{
 background:linear-gradient(118deg,#1e4b38,#326b52 80%,#52816b)!important;box-shadow:inset 0 1px #ffffff2e,0 8px 19px #163a2c16!important
}
:root:not([data-theme="dark"]) .library-product-row,
:root:not([data-theme="dark"]) .store-browser-result,
:root:not([data-theme="dark"]) .shopping-row-v4,
:root:not([data-theme="dark"]) .store-browser-card,
:root:not([data-theme="dark"]) .m15-settings .settings-card{
 background:linear-gradient(125deg,#fffffff5,#f8fbf8ec)!important;border:1px solid #e2ece4!important;box-shadow:inset 0 1px #fff,0 3px 12px #21533b0d!important
}
:root:not([data-theme="dark"]) .library-filter-row-v2 button,
:root:not([data-theme="dark"]) .store-browser-retailer-select,
:root:not([data-theme="dark"]) .store-catalogue-sort-row,
:root:not([data-theme="dark"]) .library-search,
:root:not([data-theme="dark"]) .store-browser-search{
 box-shadow:inset 0 1px #fff,0 2px 9px #1247280b!important
}
/* Home header remains Option 5 botanical glass; enlarge profile image 20% as approved. */
.dashboard-avatar{flex:0 0 54px!important;width:54px!important;height:54px!important;min-height:54px!important;border:3px solid #fff!important;border-radius:50%!important;box-shadow:0 3px 12px #103f3052!important;overflow:hidden!important}
.dashboard-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:inherit!important}
/* Unique symbol for quick-add. Decorative only; existing expand button remains operable. */
.dashboard-quick-add-section:not(.dashboard-recipe-section)>.dashboard-shortcut-heading::before{
 background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImciIHgxPSIwIiB5MT0iMCIgeDI9IjEiIHkyPSIxIj48c3RvcCBzdG9wLWNvbG9yPSIjODZCRjlEIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMjM1QTQxIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTTM1LjggNiAxMyAzNS4xYy0xLjggMi40LS4yIDUuNyAyLjggNS43SDI5TDI3IDU4bDI1LTMxLjdjMS44LTIuMy4xLTUuNi0yLjgtNS42SDM2LjhMMzkgNloiIGZpbGw9InVybCgjZykiIHN0cm9rZT0iIzFENDkzNiIgc3Ryb2tlLXdpZHRoPSIyLjYiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=")!important;background-size:32px 32px!important;background-color:#f9fffb!important
}
/* Dashboard To Buy is now opened / added to only by three-dot menu. */
.groc2-tobuy .groc21-heading-actions{display:flex!important;justify-content:flex-end!important;gap:0!important;flex:0 0 auto!important}
.groc2-tobuy .groc21-overflow-toggle{min-width:44px!important;width:44px!important;height:44px!important;min-height:44px!important;border-radius:13px!important;font-size:24px!important}
.groc21-overflow-wrap{position:relative!important}
.groc21-overflow-menu{min-width:158px!important;z-index:190!important;padding:6px!important;border-radius:15px!important;box-shadow:0 14px 35px #1b432e29!important}
.groc21-overflow-menu [role="menuitem"]{display:flex!important;align-items:center!important;gap:9px!important;width:100%!important;min-height:44px!important;padding:9px 12px!important;font-size:13px!important;white-space:nowrap!important}
.groc21-overflow-menu .groc25-add-menu-action{color:#255841!important;font-weight:700!important}
/* Make Library's existing Manage action icon visible; button opens the same menu. */
.library-title-row .groc25-library-menu{position:relative!important;isolation:isolate!important;color:#fff!important;background:#ffffff2e!important;border:1px solid #ffffff8c!important;box-shadow:inset 0 1px #fff5!important}
.library-title-row .groc25-library-menu svg{display:block!important;visibility:visible!important;opacity:1!important;stroke:currentColor!important;width:20px!important;height:20px!important}
.library-title-row .groc25-library-menu:focus-visible{outline:3px solid #c2e6cd!important;outline-offset:2px!important}
/* True mobile-sized product action sheet. The event handler already closes on outside tap/Escape. */
@media(max-width:700px){
 body:has(.groc25-product-sheet)::before{content:"";position:fixed;inset:0;background:#14281e78;z-index:9998;pointer-events:none}
 .library-product-row:has(.groc25-product-sheet),.library-product-list:has(.groc25-product-sheet),.library-page:has(.groc25-product-sheet){transform:none!important;filter:none!important;contain:none!important;content-visibility:visible!important;isolation:auto!important;overflow:visible!important}
 .library-product-list .library-row-menu:has(.groc25-product-sheet){z-index:10000!important}
 .library-product-list .groc25-product-sheet{box-sizing:border-box!important;position:fixed!important;top:auto!important;left:8px!important;right:8px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;min-width:0!important;width:calc(100vw - 16px)!important;max-width:520px!important;max-height:min(72dvh,560px)!important;margin:0 auto!important;padding:12px!important;display:flex!important;flex-direction:column!important;gap:3px!important;overflow-y:auto!important;background:#fafffcf8!important;border:1px solid #fff!important;border-radius:23px!important;box-shadow:0 20px 65px #153b30a1!important;z-index:10001!important;transform:none!important;backdrop-filter:blur(10px)!important;-webkit-backdrop-filter:blur(10px)!important}
 .groc25-product-sheet .groc25-sheet-heading{display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:flex-start!important;gap:14px!important;padding:5px 6px 12px!important;margin-bottom:3px!important;border-bottom:1px solid #e3eee6!important}
 .groc25-sheet-heading>div{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important}
 .groc25-sheet-heading small{font-size:10px!important;font-weight:800!important;letter-spacing:.09em!important;color:#779586!important}
 .groc25-sheet-heading strong{font-size:14px!important;line-height:1.4!important;white-space:normal!important;color:#1f4534!important}
 .groc25-sheet-close{width:40px!important;height:40px!important;min-height:40px!important;flex:0 0 40px!important;border:1px solid #e2ece5!important;border-radius:12px!important;background:#f1f6f2!important;font-size:24px!important;display:grid!important;place-items:center!important}
 .library-product-list .groc25-product-sheet>button:not(.groc25-sheet-close){display:flex!important;align-items:center!important;gap:12px!important;justify-content:flex-start!important;min-height:46px!important;padding:9px 12px!important;font-size:14px!important;border-radius:12px!important;width:100%!important;text-align:left!important}
 .groc25-product-sheet.opens-up{top:auto!important;bottom:max(8px,env(safe-area-inset-bottom))!important}
}
/* Product action area: Basket + Add to Library share the first row; View gets its own tap target. */
.store-browser-result{grid-template-columns:64px minmax(0,1fr)!important;grid-template-rows:auto auto!important;row-gap:7px!important;padding:10px!important}
.store-browser-result-image{grid-column:1!important;grid-row:1!important}
.store-browser-result-copy{grid-column:2!important;grid-row:1!important}
.store-browser-result-actions{grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:48px minmax(100px,1fr) 68px!important;align-items:center!important;gap:9px!important;width:100%!important;min-width:0!important;max-width:none!important}
.store-browser-result-actions>.store-browser-basket-button,.store-browser-result-actions>.store-browser-add-button{width:100%!important;min-height:44px!important;height:44px!important;max-width:none!important;padding:6px!important;box-sizing:border-box!important;border-radius:12px!important}
.store-browser-result-actions>.store-browser-add-button{font-size:12px!important;display:flex!important;justify-content:center!important;gap:6px!important;white-space:normal!important;line-height:1.1!important}
.store-browser-result-actions>a{min-width:44px!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:5px!important;min-height:44px!important;text-decoration:none!important;font-size:12px!important}
/* Shopping: 2-row controls, 44px minimum tap targets, fixed spacing not overlapping. */
.shopping-row-v3.shopping-row-v4{position:relative!important;grid-template-columns:44px minmax(0,1fr)!important;grid-template-rows:auto 46px!important;column-gap:10px!important;row-gap:7px!important;min-height:102px!important;padding:10px!important;border-radius:17px!important}
.shopping-row-v4>.shopping-row-image-v3{grid-column:1!important;grid-row:1!important;width:44px!important;height:44px!important;min-width:44px!important;align-self:start!important}
.shopping-row-v4>.shopping-row-copy-v3{grid-column:2!important;grid-row:1!important;min-width:0!important;gap:3px!important}
.shopping-row-v4>.shopping-row-stepper-v3{box-sizing:border-box!important;grid-column:1/3!important;grid-row:2!important;justify-self:start!important;align-self:center!important;min-width:138px!important;max-width:138px!important;width:138px!important;height:44px!important;min-height:44px!important;padding:2px!important;grid-template-columns:44px 46px 44px!important;border-radius:13px!important}
.shopping-row-v4>.shopping-row-stepper-v3 button{box-sizing:border-box!important;min-width:40px!important;width:40px!important;min-height:40px!important;height:40px!important;touch-action:manipulation!important}
.shopping-row-v4>.shopping-row-more-v3{position:absolute!important;grid-column:auto!important;grid-row:auto!important;right:65px!important;bottom:10px!important;min-width:44px!important;width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;border-radius:12px!important}
.shopping-row-v4>.shopping-row-check-v3{position:absolute!important;grid-column:auto!important;grid-row:auto!important;right:10px!important;bottom:10px!important;min-width:44px!important;width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;border-radius:50%!important}
.shopping-row-v4 .shopping-item-price{min-height:0!important;line-height:1.3!important}
@media(max-width:350px){
 .shopping-row-v4>.shopping-row-stepper-v3{min-width:132px!important;max-width:132px!important;width:132px!important;grid-template-columns:42px 44px 42px!important}
 .shopping-row-v4>.shopping-row-stepper-v3 button{width:39px!important;min-width:39px!important}
 .store-browser-result-actions{grid-template-columns:44px minmax(92px,1fr) 56px!important;gap:6px!important}
 .store-browser-result-actions>.store-browser-add-button{font-size:10px!important}
 .store-browser-result-actions>a{font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){.library-product-row,.store-browser-result,.dashboard-hero,.shopping-row-v4{animation:none!important;transition:none!important}}
