/* Groc 2.6 — accessibility + display corrections; do not change backend behavior. */
/* 1) The pre-2.4 mobile override hid svg:last-child for the Library Manage action. */
:root:not([data-theme="dark"]) .library-header .library-title-row .library-category-manager-button.groc26-library-menu,
.library-header .library-title-row .library-category-manager-button.groc26-library-menu {
 box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;
 padding:0!important;border-radius:12px!important;border:1px solid #ffffff80!important;
 background:#ffffff23!important;color:#fff!important;position:relative!important;z-index:2!important;
}
:root:not([data-theme="dark"]) .library-header .library-title-row .library-category-manager-button.groc26-library-menu svg:last-child,
.library-header .library-title-row .library-category-manager-button.groc26-library-menu svg:last-child{
 display:block!important;visibility:visible!important;opacity:1!important;width:20px!important;height:20px!important;
 min-width:20px!important;min-height:20px!important;flex:0 0 20px!important;stroke:currentColor!important;
}
.library-title-row .library-header-actions{display:flex!important;align-items:center!important;gap:10px!important;isolation:auto!important}
.library-title-row .library-manage-wrap{flex:0 0 40px!important;min-width:40px!important;width:40px!important}
.library-title-row .library-create-button{margin:0!important;white-space:nowrap!important}
/* 2) Two matching 44px product buttons + 44px link. All have labels for screen readers. */
.store-browser-result-actions{grid-template-columns:48px 48px minmax(62px,1fr)!important;justify-items:start!important;gap:12px!important;justify-content:start!important}
.store-browser-result-actions>.store-browser-basket-button,
.store-browser-result-actions>.store-browser-add-button.groc26-library-action{box-sizing:border-box!important;min-width:48px!important;max-width:48px!important;width:48px!important;height:46px!important;min-height:46px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-radius:13px!important}
.store-browser-result-actions>.store-browser-add-button.groc26-library-action svg.groc26-library-glyph{
 display:block!important;visibility:visible!important;opacity:1!important;width:23px!important;height:23px!important;
 min-width:23px!important;flex:0 0 23px!important;stroke:currentColor!important;fill:none!important
}
.store-browser-result-actions>.store-browser-add-button.groc26-library-action .groc26-library-done{font-weight:800!important;font-size:20px!important}
.store-browser-result-actions>a{box-sizing:border-box!important;min-width:60px!important;min-height:46px!important;justify-self:end!important}
/* 3) Native modal dialog uses browser top layer above even stacked nav bars. */
dialog.groc26-modal{box-sizing:border-box!important;position:fixed!important;inset:auto 10px max(10px,env(safe-area-inset-bottom)) 10px!important;
 width:calc(100vw - 20px)!important;max-width:540px!important;min-width:0!important;max-height:75dvh!important;overflow-y:auto!important;
 margin:0 auto!important;padding:14px!important;border:1px solid #fff!important;border-radius:22px!important;
 background:#fbfefa!important;color:#264837!important;box-shadow:0 24px 65px #193e2b75!important;transform:none!important;z-index:2147483600!important}
dialog.groc26-modal::backdrop{background:rgba(15,39,28,.53)!important;backdrop-filter:blur(2px)!important;-webkit-backdrop-filter:blur(2px)!important}
body:has(dialog.groc26-modal[open])::before{display:none!important}
dialog.groc26-modal:not([open]){display:none!important}
dialog.groc26-modal[open]{display:flex!important;flex-direction:column!important;gap:5px!important}
dialog.groc26-modal button{min-height:44px!important;touch-action:manipulation!important}
dialog.groc26-modal .groc25-sheet-heading{display:flex!important;justify-content:space-between!important;gap:12px!important;align-items:start!important}
@media(max-width:700px){
 .library-product-list dialog.groc26-modal{position:fixed!important;inset:auto 10px max(10px,env(safe-area-inset-bottom)) 10px!important;max-width:540px!important;
  width:calc(100vw - 20px)!important;z-index:2147483600!important;transform:none!important;overflow-y:auto!important}
 .library-product-list .groc26-modal.opens-up{top:auto!important;bottom:max(10px,env(safe-area-inset-bottom))!important}
}
/* 4) Settings only says Settings; profile information remains editable in Account. */
.m15-settings .profile-hero{min-height:74px!important;grid-template-columns:50px 1fr!important}
.m15-settings .profile-hero h1{align-self:center!important;margin:0!important}
/* 5) Entire app remains in light mode (including system-dark iPhones). */
:root{color-scheme:light!important}
/* 6) Equal circle dimensions; flex wrapping must not deform user's picture. */
.dashboard-hero-top .dashboard-avatar{box-sizing:border-box!important;flex:0 0 58px!important;display:grid!important;place-items:center!important;
 width:58px!important;min-width:58px!important;max-width:58px!important;height:58px!important;min-height:58px!important;max-height:58px!important;aspect-ratio:1/1!important;
 padding:0!important;margin:0!important;border:3px solid #fff!important;border-radius:50%!important;overflow:hidden!important}
.dashboard-hero-top .dashboard-avatar img,.dashboard-hero-top .dashboard-avatar span{box-sizing:border-box!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;aspect-ratio:1/1!important;object-fit:cover!important;border-radius:50%!important}
/* 7) Inline text count beside title, not a floating bubble. */
.groc2-tobuy .groc-to-buy-toggle{display:flex!important;align-items:baseline!important;gap:7px!important;min-width:0!important;white-space:nowrap!important}
.groc2-tobuy .groc-to-buy-count.groc26-count-inline{box-sizing:border-box!important;display:inline!important;flex:0 0 auto!important;
 background:none!important;border:0!important;box-shadow:none!important;color:#4c7660!important;
 width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;
 padding:0!important;margin:0!important;border-radius:0!important;font-size:12px!important;line-height:1.3!important;font-weight:650!important}
@media(max-width:380px){.groc2-tobuy .groc-to-buy-toggle{gap:3px!important}.groc2-tobuy .groc-to-buy-count.groc26-count-inline{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){dialog.groc26-modal{transition:none!important;animation:none!important}}
