/* Groc 2.8.2 | Aurora Mist across six tabs | visual-only stylesheet
   Layered after the tested 2.8.2 Aurora Mist Dashboard, without editing app JS.
   Quiet, static paints; NO per-frame animations or extra render/network work.
   Scoped to light mode so existing dark treatment remains unchanged. */
:root:not([data-theme="dark"]) {
  --aurora-ink:#24495c;
  --aurora-muted:#648296;
  --aurora-hairline:rgba(208,231,246,.91);
  --aurora-glass:linear-gradient(131deg,rgba(255,255,255,.96) 0%,rgba(239,251,252,.91) 46%,rgba(240,245,255,.91) 78%,rgba(249,244,255,.94));
  --aurora-mist-ctl:linear-gradient(119deg,rgba(245,255,252,.97),rgba(230,247,255,.94) 65%,rgba(245,239,255,.94));
  --aurora-cta:linear-gradient(106deg,#3eb8ab 0%,#44b1c4 44%,#6597d9 100%);
  --aurora-shadow:0 7px 22px rgba(68,129,174,.10),inset 0 1px rgba(255,255,255,.98);
}
/* Every mounted tab has the same ambient background but its own scroll area.
   This is a CSS image (never a positioned pseudo element intercepting touches). */
:root:not([data-theme="dark"]) :is(.library-page,.shopping-page,.stats-page,.store-browser-page,.profile-page,.m12-stats-page) {
  background-image:url('/assets/groc-aurora-mist-wash-option-a.svg'),
    radial-gradient(ellipse 76% 260px at 98% 2%,rgba(153,222,229,.19),transparent 82%),
    radial-gradient(ellipse 90% 300px at 1% 68%,rgba(186,209,252,.12),transparent 86%),
    linear-gradient(174deg,#f3fbfc 0%,#f6f9fd 56%,#f9faff 100%)!important;
  background-size:100% auto,auto,auto,auto!important;
  background-position:center top,center,center,center!important;
  background-repeat:no-repeat!important;
}
/* Native-like persistent navigation: matching all six symbols and active state. */
:root:not([data-theme="dark"]) .bottom-nav-glass.bottom-nav-six {
  background:linear-gradient(130deg,rgba(255,255,255,.93),rgba(236,250,252,.91) 53%,rgba(240,239,255,.89))!important;
  border-color:rgba(255,255,255,.96)!important;
  box-shadow:0 8px 24px rgba(52,120,161,.16),inset 0 1px rgba(255,255,255,1)!important;
}
:root:not([data-theme="dark"]) .bottom-nav-glass .bottom-nav-item {color:#587e97!important}
:root:not([data-theme="dark"]) .bottom-nav-glass .bottom-nav-item.active {
  color:#087f87!important;
  background:linear-gradient(135deg,rgba(179,245,227,.66),rgba(203,239,251,.84) 58%,rgba(223,217,255,.67))!important;
  box-shadow:0 4px 13px rgba(70,151,180,.13),inset 0 1px #fff!important;
}
:root:not([data-theme="dark"]) .bottom-nav-glass .bottom-nav-item svg {
  stroke:currentColor!important;
  filter:drop-shadow(0 1px 1px rgba(66,121,164,.13));
}
/* Light botanical hero treatment, without resizing existing headings or bars. */
:root:not([data-theme="dark"]) :is(.library-header,.store-browser-hero,.m12-stats-header,.stats-header) {
  background-image:linear-gradient(112deg,rgba(234,252,249,.31),rgba(233,245,255,.26) 61%,rgba(239,231,255,.23))!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,rgba(219,249,241,.98),rgba(223,241,255,.96) 58%,rgba(233,229,255,.96))!important;
  border:1px solid rgba(255,255,255,.92)!important;
  box-shadow:var(--aurora-shadow)!important;
}
:root:not([data-theme="dark"]) .library-title-row :is(h1,h2,p,strong,svg),
:root:not([data-theme="dark"]) .shopping-page-v4 .shopping-top-card :is(h1,h2,p,strong),
:root:not([data-theme="dark"]) .m15-settings .profile-hero :is(h1,h2,p) {color:var(--aurora-ink)!important}
/* Consistent glass cards on Library, shopping, Stats, Stores, Manage. */
:root:not([data-theme="dark"]) :is(
  .library-product-row,.product-card-v2,.shopping-row-v4,.shopping-category-group-m10,
  .shopping-store-group-m10,.shopping-store-card,.shopping-summary-v3,
  .m12-summary-card,.m12-stats-card,.m15-stats-panel,
  .store-browser-card,.store-browser-result,.store-catalogue-choice,
  .settings-card,.quick-add-manager-panel,.store-manager-row,.category-manager-v3-row,
  .category-manager-v2-row,.category-manager-row,.glass-panel
) {
  background:var(--aurora-glass)!important;
  border-color:var(--aurora-hairline)!important;
  box-shadow:var(--aurora-shadow)!important;
}
:root:not([data-theme="dark"]) .product-card-v2-image,
:root:not([data-theme="dark"]) .store-browser-result-image,
:root:not([data-theme="dark"]) .library-row-image,
:root:not([data-theme="dark"]) .shopping-row-image-v3 {
  background:linear-gradient(133deg,rgba(231,251,245,.63),rgba(232,245,255,.75) 59%,rgba(245,235,255,.62))!important;
}
/* Preserve existing brand logos and category photos; soften their image tiles only. */
:root:not([data-theme="dark"]) :is(
  .m12-summary-icon,.stats-summary-icon,.store-browser-hero-icon,.settings-row-icon,
  .category-filter-icon,.category-app-icon,.shopping-category-heading-m10>span,
  .product-import-icon,.category-manager-v3-icon,.store-logo-mark,.quick-add-manager-heading>svg
) {
  background:linear-gradient(142deg,rgba(233,253,249,.98),rgba(228,246,255,.94) 65%,rgba(239,232,255,.94))!important;
  border-color:rgba(255,255,255,.92)!important;
  box-shadow:0 4px 12px rgba(68,133,161,.11),inset 0 1px #fff!important;
  color:#187d86!important;
}
:root:not([data-theme="dark"]) :is(
  .settings-row-icon svg,.m12-summary-icon svg,.stats-summary-icon svg,
  .store-browser-hero-icon svg,.shopping-category-heading-m10 svg,
  .category-filter-icon svg,.product-import-icon svg
) {stroke:currentColor!important;filter:drop-shadow(0 1px 1px rgba(36,119,147,.15))}
/* The image/icon chip group remains the same size and order; only surface colors change. */
:root:not([data-theme="dark"]) :is(
  .category-pill,.category-pill-custom,.category-circle,.store-default-chip,
  .store-browser-source-row,.store-browser-result-store,.product-category-badge,
  .library-filter-row-v2 button,.store-catalogue-category-chips button,
  .store-catalogue-options button,.m12-range-switch button
) {
  border-color:rgba(209,232,243,.94)!important;
  box-shadow:inset 0 1px #fff,0 2px 9px rgba(82,137,166,.07)!important;
}
:root:not([data-theme="dark"]) :is(
  .library-search,.store-browser-search,.library-toolbar-control,
  .library-store-filter-control,.store-browser-retailer-select,
  .m12-chart-month-select,.store-catalogue-sort-row,
  .settings-row, .store-catalogue-pagination,
  .shopping-row-stepper-v3,.library-quantity-control,
  .product-card-v2-quantity,.quantity-stepper-v2
) {
  background:var(--aurora-mist-ctl)!important;
  border-color:var(--aurora-hairline)!important;
  box-shadow:inset 0 1px #fff,0 2px 10px rgba(91,149,174,.07)!important;
}
/* Actual 2.8.2 Shopping implementation uses one compact list (not
   category grouping). Theme those live elements without restructuring rows. */
:root:not([data-theme="dark"]) .shopping-sticky-header-v3 {
 background:linear-gradient(124deg,rgba(228,250,245,.96),rgba(230,243,255,.96) 56%,rgba(237,231,255,.95))!important;
 border-color:rgba(255,255,255,.93)!important;
 box-shadow:0 7px 24px rgba(61,119,159,.10),inset 0 1px #fff!important;
}
:root:not([data-theme="dark"]) .shopping-sticky-header-v3 :is(h1,p,.eyebrow,.shopping-progress-count) {
 color:var(--aurora-ink)!important;
}
:root:not([data-theme="dark"]) .shopping-money-row-v3 {
 background:linear-gradient(130deg,rgba(248,255,252,.90),rgba(236,249,255,.88) 72%,rgba(242,237,255,.82))!important;
 border-color:var(--aurora-hairline)!important;
}
:root:not([data-theme="dark"]) .shopping-progress-track {
 background:linear-gradient(90deg,rgba(208,233,233,.70),rgba(220,226,251,.72))!important;
}
:root:not([data-theme="dark"]) .shopping-progress-track>span {
 background:var(--aurora-cta)!important;
}
:root:not([data-theme="dark"]) .shopping-compact-list-v3 {
 border-color:var(--aurora-hairline)!important;
 background:linear-gradient(150deg,rgba(254,255,255,.80),rgba(237,248,255,.70))!important;
}
:root:not([data-theme="dark"]) :is(.shopping-empty-v2,.shopping-row-more-v3,.shopping-row-check-v3) {
 border-color:rgba(206,232,243,.92)!important;
 box-shadow:inset 0 1px rgba(255,255,255,.90),0 2px 9px rgba(71,130,159,.07)!important;
}
/* Preserve original stepper dimensions and disabled/remove behavior. */
:root:not([data-theme="dark"]) :is(
 .shopping-row-stepper-v3,.library-quantity-control,.quantity-stepper-v2,
 .product-card-v2-quantity,.product-card-quantity-wide
) button:not(:disabled) {color:#116d74!important}
:root:not([data-theme="dark"]) :is(
 .shopping-row-stepper-v3,.library-quantity-control,.quantity-stepper-v2,
 .product-card-v2-quantity,.product-card-quantity-wide
) :is(strong,span) {color:var(--aurora-ink)}
/* Section headings use the same soft glass treatment across pages. */
:root:not([data-theme="dark"]) :is(
  .shopping-category-heading-m10,.shopping-store-heading-m10,
  .m15-stats-panel>summary,.m12-card-heading,
  .settings-group-title,.quick-add-manager-heading,
  .store-manager-header,.category-manager-v3-header
) {color:var(--aurora-ink)!important}
:root:not([data-theme="dark"]) :is(.m15-stats-panel>summary,.shopping-store-heading-m10) {
  background:linear-gradient(115deg,rgba(224,249,246,.76),rgba(234,245,255,.74) 66%,rgba(241,234,255,.65))!important;
  border-color:rgba(255,255,255,.84)!important;
}
/* Main CTAs use the single approved Start Shopping gradient, in all six tabs.
   Small utility, negative/danger and disabled actions retain semantics. */
:root:not([data-theme="dark"]) :is(
  .dashboard-start-shopping,.dashboard-start-shopping-v2,.shopping-finish-button,
  .shopping-add-item-button,.library-create-button,.store-browser-add-button,
  .store-browser-basket-button,.app-button-primary,.primary-button,
  .m15-primary,.product-form-save,.category-save-v4,.store-new-button,
  .auth-primary-button
):not(:disabled) {
  background:var(--aurora-cta)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.63)!important;
  box-shadow:0 6px 18px rgba(50,144,184,.20),inset 0 1px rgba(255,255,255,.30)!important;
}
/* Never apply success color to delete buttons. */
:root:not([data-theme="dark"]) :is(.store-remove-button,.category-delete-v4,.store-logo-remove-button) {
  background:linear-gradient(140deg,#fffafb,#f9e8ef)!important;
  color:#b36a81!important;border-color:#f1d4df!important;
}
:root:not([data-theme="dark"]) :is(
  .library-category-manager-button,.store-browser-retry,
  .shopping-secondary-button,.category-restore-action,
  .settings-row,.m12-stats-refresh,.product-favorite-toggle,
  .icon-button,.header-icon-button
) {
  border-color:rgba(212,231,246,.95)!important;
  box-shadow:inset 0 1px #fff,0 3px 11px rgba(73,131,170,.08)!important;
}
/* Approved Dashboard header normalization: identical rounded bars and icon alignment.
   Keep all action/menu controls in their exact positions and original DOM. */
:root:not([data-theme="dark"]) .dashboard-page :is(
 .groc27-quick-panel>.dashboard-shortcut-heading,
 .groc27-recipe-panel>.dashboard-shortcut-heading,
 .groc27-tobuy-panel>.dashboard-section-heading
) {
  min-height:90px!important;
  border-radius:21px!important;
  background:linear-gradient(113deg,rgba(230,252,247,.95),rgba(234,246,255,.94) 63%,rgba(241,233,255,.93))!important;
  border:1px solid rgba(255,255,255,.96)!important;
  box-shadow:0 4px 15px rgba(66,127,164,.08),inset 0 1px #fff!important;
}
:root:not([data-theme="dark"]) .dashboard-page :is(
 .groc27-quick-panel>.dashboard-shortcut-heading,
 .groc27-recipe-panel>.dashboard-shortcut-heading,
 .groc27-tobuy-panel>.dashboard-section-heading
)::before {
  width:54px!important;height:54px!important;
  border-radius:17px!important;
  background-color:rgba(255,255,255,.98)!important;
  border:1px solid rgba(229,244,251,.99)!important;
  box-shadow:0 5px 13px rgba(65,118,158,.12),inset 0 1px #fff!important;
}
:root:not([data-theme="dark"]) .dashboard-page .groc27-tobuy-panel .groc-to-buy-toggle,
:root:not([data-theme="dark"]) .dashboard-page .groc27-quick-panel .groc23-banner-copy strong,
:root:not([data-theme="dark"]) .dashboard-page .groc27-recipe-panel .groc23-banner-copy strong {
  font-size:18px!important;font-weight:770!important;color:var(--aurora-ink)!important;
}
/* Consistent active-press motion (GPU-only transform, no layout-affecting transitions). */
@media (prefers-reduced-motion:no-preference) {
 :root:not([data-theme="dark"]) :is(
   .library-create-button,.dashboard-start-shopping-v2,.shopping-finish-button,
   .store-browser-add-button,.app-button-primary,.primary-button,
   .product-form-save,.store-new-button,.bottom-nav-glass .bottom-nav-item,
   .settings-row,.library-filter-row-v2 button
 ) {transition:transform .13s ease,filter .16s ease,box-shadow .17s ease!important}
 :root:not([data-theme="dark"]) :is(
   .library-create-button,.dashboard-start-shopping-v2,.shopping-finish-button,
   .store-browser-add-button,.app-button-primary,.primary-button,
   .product-form-save,.store-new-button,.bottom-nav-glass .bottom-nav-item
 ):active {transform:scale(.985)}
}
@media (prefers-reduced-motion:reduce) {
 :root:not([data-theme="dark"]) :is(.bottom-nav-glass .bottom-nav-item,.library-create-button,.shopping-finish-button,.app-button-primary){
   animation:none!important;transition:none!important;
 }
}
@media (max-width:350px) {
 :root:not([data-theme="dark"]) .dashboard-page :is(.groc27-quick-panel>.dashboard-shortcut-heading,
 .groc27-recipe-panel>.dashboard-shortcut-heading,.groc27-tobuy-panel>.dashboard-section-heading) {min-height:77px!important}
 :root:not([data-theme="dark"]) .dashboard-page :is(.groc27-quick-panel>.dashboard-shortcut-heading,
 .groc27-recipe-panel>.dashboard-shortcut-heading,.groc27-tobuy-panel>.dashboard-section-heading)::before {
   width:44px!important;height:44px!important
 }
}
