/* Customer navigation: one bounded header before and after sign-in. */
html body:is(.app-client,.public-site){--customer-header-gap:8px}
@media(max-width:680px){html body:is(.app-client,.public-site){--customer-header-gap:4px}}
html[data-app-area="client"] { --theme-topbar-height:64px; }
html:has(>body.public-site) { scrollbar-gutter:stable; }
html[data-app-area="client"] body.app-client .app-content { scrollbar-gutter:stable; }
html[data-app-area="client"] body.app-client .app-topbar {
  position:relative; z-index:1000; flex:none; width:100%; height:auto; min-height:68px;
  padding:0; border:0; border-bottom:1px solid var(--chrome-line);
  background:var(--chrome-bg); color:var(--chrome-text); box-shadow:none; backdrop-filter:none;
}
html[data-app-area="client"] body.app-client .app-topbar-primary {
  display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:var(--customer-header-gap);
  width:min(1200px,calc(100% - 48px)); max-width:1200px; height:auto; min-height:68px;
  margin-inline:auto; padding: 12px 0; box-sizing:border-box;
}
html[data-app-area="client"] body.app-client .app-topbar-sidebar-slot {
  grid-column:1; display:flex; align-items:center; justify-self:start; min-width:0; width:min(100%,260px); max-width:260px;
  height:auto; gap:8px; padding:0; background:transparent; border:0;
}
html[data-app-area="client"] body.app-client .app-topbar-brand {
  display:flex; align-items:center; gap:8px; min-width:0; max-width:100%; height:auto; padding:0;
  color:var(--chrome-text); background:transparent; border:0; text-decoration:none;
}
html[data-app-area="client"] body.app-client .app-topbar-brand-visual { display:flex; align-items:center; max-width:36px; flex:0 0 36px; }
html[data-app-area="client"] body.app-client .app-topbar-brand-image { display:block; width:auto; height:auto; max-width:36px; flex:0 0 36px; max-height:36px; object-fit:contain; }
html[data-app-area="client"] body.app-client .app-topbar-brand-name {
  min-width:0; max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  color:var(--chrome-text); font-size:14px; font-weight:600; line-height:1.3;
}
html[data-app-area="client"] body.app-client .client-topbar-center {
  grid-column:2; display:flex; align-items:center; justify-content:flex-end; justify-self:end; gap:var(--customer-header-gap); min-width:0; white-space:nowrap;
}
html[data-app-area="client"] body.app-client .client-topbar-center.has-search-field { width:min(520px,42vw); }
html[data-app-area="client"] body.app-client .app-topbar .public-header-search { width:100%; min-width:220px; max-width:520px; margin:0; align-self:center; }
html[data-app-area="client"] body.app-client .public-header-search-trigger {
  display:inline-grid; place-items:center; flex:0 0 36px; width:36px; height:36px; min-width:36px; min-height:36px;
  margin:0; padding:0; border:0; border-radius: var(--gv-radius-button); background:transparent; color:var(--chrome-text); box-shadow:none; cursor:pointer;
}
html[data-app-area="client"] body.app-client .public-header-search-trigger:hover { background:var(--chrome-hover); color:var(--chrome-text); }
html[data-app-area="client"] body.app-client .public-header-search-trigger:focus-visible { outline:2px solid var(--chrome-text); outline-offset:2px; }
html[data-app-area="client"] body.app-client .public-header-search-trigger svg { display:block; width:18px; height:18px; }
html[data-app-area="client"] body.app-client .client-topbar-mobile-search{display:none}
html[data-app-area="client"] body.app-client .client-topbar-desktop-search{display:inline-grid}
html body:is(.app-client,.public-site) .customer-header-navigation { display:flex; flex:none; align-items:center; justify-content:center; gap:var(--customer-header-gap); min-width:0; }
html body:is(.app-client,.public-site) .customer-header-link {
  display:inline-flex; align-items:center; justify-content:center; gap: 8px; min-height:36px;
  padding: 0 12px; border:1px solid transparent; border-radius:6px;
  background:transparent; color:var(--chrome-text); text-decoration:none;
  font:500 13px/1.3 var(--gv-font-sans); white-space:nowrap;
}
html body:is(.app-client,.public-site) .customer-header-link svg { flex:none; width:17px; height:17px; }
html body:is(.app-client,.public-site) .customer-header-link.is-active { background:transparent; color:var(--chrome-text); font-weight:600; }
html body:is(.app-client,.public-site) .customer-header-link:hover,
html body:is(.app-client,.public-site) .customer-header-link.is-active:hover {
  background:var(--chrome-hover); color:var(--chrome-text);
}
html body:is(.app-client,.public-site) .customer-header-link.customer-place-order { border-color:var(--chrome-text); background:var(--chrome-text); color:var(--chrome-bg); }
html body:is(.app-client,.public-site) .customer-header-link.customer-place-order:hover { opacity:.88; }
html[data-app-area="client"] body.app-client .app-topbar-actions { grid-column:3; display:flex; flex:none; align-items:center; justify-self:end; gap:var(--customer-header-gap); height:auto; min-width:0; margin:0; white-space:nowrap; }
html[data-app-area="client"] body.app-client .app-topbar-actions>.app-header-menu { display:flex; align-items:center; flex:none; position:relative; }
html[data-app-area="client"] body.app-client .app-topbar :is(.app-theme-button,.app-language-button,.app-menu-button) {
  display:inline-flex; align-items:center; justify-content:center; flex:none; width:34px; height:34px;
  min-width:34px; min-height:34px; padding:0; border:0; border-radius: var(--gv-radius-button);
  background:transparent; color:var(--chrome-text); box-shadow:none;
}
html[data-app-area="client"] body.app-client .app-topbar :is(.app-theme-button,.app-language-button,.app-menu-button):hover {
  border:0; background:var(--chrome-hover); color:var(--chrome-text); box-shadow:none;
}
html[data-app-area="client"] body.app-client .app-notification-button {
  position:relative; display:inline-grid; place-items:center; flex:none; width:40px; height:40px;
  min-width:40px; min-height:40px; max-width:40px; max-height:40px; padding:0; border:0; border-radius: var(--gv-radius-button);
  background:transparent; color:var(--chrome-text); box-shadow:none; overflow:visible; isolation:isolate;
  transition:background-color 120ms ease,color 120ms ease,transform 120ms ease;
}
html[data-app-area="client"] body.app-client .app-notification-button:hover {
  background:var(--chrome-hover); color:var(--chrome-text); box-shadow:none;
}
html[data-app-area="client"] body.app-client .app-notification-button:active { transform:scale(.96); }
html[data-app-area="client"] body.app-client .app-notification-button:focus-visible {
  outline:2px solid var(--chrome-text); outline-offset:2px;
}
html[data-app-area="client"] body.app-client .app-notification-icon {
  display:grid; place-items:center; width:24px; height:24px; color:inherit; line-height:0;
}
html[data-app-area="client"] body.app-client .app-notification-icon svg {
  display:block; width:24px; height:24px; min-width:24px; min-height:24px; max-width:24px; max-height:24px; color:inherit;
}
html[data-app-area="client"] body.app-client .app-notification-count {
  position:absolute; inset-block-start:1px; inset-inline-end:1px; z-index:3;
  display:grid; place-items:center; min-width:16px; height:16px; padding:0 4px;
  border:2px solid var(--chrome-bg); border-radius: var(--gv-radius-pill);
  background:#ff0033; color:#ffffff;
  font: 600 11px/12px var(--gv-font-sans); font-variant-numeric:tabular-nums; letter-spacing:-.02em; white-space:nowrap;
  box-shadow:none; pointer-events:none;
}
html[data-app-area="client"] body.app-client .app-topbar .app-profile-button.app-profile-button-membership {
  display:inline-grid;place-items:center;flex:none;width:34px;min-width:34px;max-width:34px;height:34px;min-height:34px;
  padding:0;border:1px solid var(--chrome-line);border-radius: var(--gv-radius-button);background:transparent;color:var(--chrome-text);box-shadow:none;
}
html[data-app-area="client"] body.app-client .app-profile-button-membership .app-profile-avatar {
  width:20px;height:20px;flex:0 0 20px;display:grid;place-items:center;border:0;background:transparent;color:inherit;font-size:0;
}
html[data-app-area="client"] body.app-client .app-profile-button-membership .app-profile-avatar svg{display:block;width:19px;height:19px}
html[data-app-area="client"] body.app-client .app-quick-wallet-trigger {
  display:inline-flex; align-items:center; justify-content:center; flex:none; min-width:0; max-width:128px; height:34px;
  padding:0 8px; gap: 8px; border:1px solid var(--chrome-line); border-radius: var(--gv-radius-button);
  background:transparent; color:var(--chrome-text); box-shadow:none; cursor:pointer;
  transition:background-color 140ms ease,border-color 140ms ease,box-shadow 140ms ease,transform 120ms ease;
}
html[data-app-area="client"] body.app-client .app-quick-wallet-trigger:hover {
  border-color:color-mix(in srgb,var(--chrome-text) 28%,var(--chrome-line));
  background:color-mix(in srgb,var(--chrome-text) 7%,var(--chrome-bg));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--chrome-text) 10%,transparent),0 1px 2px rgba(0,0,0,.05);
}
html[data-app-area="client"] body.app-client .app-quick-wallet-trigger:active { transform:scale(.985); }
html[data-app-area="client"] body.app-client .app-quick-wallet-trigger:focus-visible {
  outline:2px solid var(--chrome-text); outline-offset:2px;
}
html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-icon {
  display:grid; place-items:center; width:18px; height:18px; flex:0 0 18px;
  border:0; border-radius:0; background:transparent; color:inherit;
}
html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-icon svg { width:17px; height:17px; display:block; }
html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-copy { display:block; min-width:0; text-align:start; }
html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-copy strong {
  display:block; max-width:88px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  color:inherit; font:600 12px/1.2 var(--gv-font-sans);
}
html[data-app-area="client"] body.app-client .app-topbar :is(button,a):hover { text-decoration:none; }
html[data-app-area="client"] body.app-client .app-topbar .app-profile-button.app-profile-button-membership:hover { background:var(--chrome-hover); }

html body:is(.app-client,.public-site) :is(.customer-account-popover) [role="menuitem"].customer-menu-mobile-only { display:none; }

body.public-site .public-account-menu { position:relative; }
body.public-site .public-account-button {
  display:flex; align-items:center; justify-content:center; flex:none; width:34px; height:34px;
  padding:0; border:1px solid var(--chrome-line); border-radius:6px; list-style:none;
  color:var(--chrome-text); background:transparent; text-decoration:none;
}
body.public-site .public-customer-balance { display:flex; align-items:center; gap: 4px; min-height:34px; padding: 0 8px; border:1px solid var(--chrome-line); border-radius:6px; color:var(--chrome-text); text-decoration:none; white-space:nowrap; }
body.public-site .public-customer-balance strong { font-size:12px; font-weight:500; }
body.public-site .customer-account-popover { position:absolute; inset-inline-end:0; top:calc(100% + 8px); width:244px; max-width:calc(100vw - 24px); max-height:70dvh; overflow-y:auto; z-index:4100; padding:6px; border:1px solid var(--gv-border); border-radius:8px; background:var(--gv-surface); color:var(--gv-text); box-shadow:none; }
body.public-site .public-account-menu:not([open])>.customer-account-popover { display:none; }
body.public-site .customer-account-heading { padding:10px; margin-bottom:5px; border-bottom:1px solid var(--gv-border); overflow-wrap:anywhere; }
body.public-site .customer-account-popover [role="menuitem"] { display:flex; align-items:center; gap: 12px; min-height:38px; padding:8px 10px; border-radius:6px; color:var(--gv-text); text-decoration:none; }
body.public-site .customer-account-popover [role="menuitem"]:hover { background:var(--gv-surface-subtle); }
body.public-site .customer-account-popover [role="menuitem"] svg { width:18px; height:18px; flex:none; }

@media(min-width:901px) {
  /* Sidebar navigation owns the brand/navigation rail. With Dashboard / My
     Orders / Place Order absent from the topbar, the full search field is the
     middle control and the whole group stays bounded to the same 1200px frame. */
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .app-topbar-sidebar-slot { display:none; }
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .app-topbar-primary {
    grid-template-columns:minmax(300px,520px) max-content; justify-content:center; column-gap: 12px;
  }
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .client-topbar-center { grid-column:1; width:100%; justify-self:stretch; }
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .app-topbar .public-header-search { width:100%; min-width:0; max-width:none; }
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .app-topbar-actions { grid-column:2; justify-self:start; }
}
@media(min-width:901px) and (max-width:1100px) {
  html[data-app-area="client"] body.app-client.client-navigation-top .app-topbar-primary {
    width:calc(100% - 48px); grid-template-columns:minmax(0,1fr) auto auto; gap:var(--customer-header-gap);
  }
  html[data-app-area="client"] body.app-client .app-topbar-sidebar-slot { max-width:180px; }
  html[data-app-area="client"] body.app-client .app-topbar-brand-name { max-width:150px; }
  html[data-app-area="client"] body.app-client .client-topbar-center.has-primary-navigation { justify-self:end; }
  html body:is(.app-client,.public-site) .customer-header-link { gap: 4px; padding-inline: 8px; font-size:12px; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger { max-width:112px; padding-inline: 8px; gap: 4px; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-copy strong { max-width:74px; font-size:11px; }
}

/* Compact desktop/tablet widths stay on one header row. Only phone widths
   move the catalog search to a second row. */
@media(max-width:900px) {
  html[data-app-area="client"] body.app-client .app-topbar-primary { width:100%; max-width:none; gap:8px; padding-inline: 16px; }
  html[data-app-area="client"] body.app-client.client-navigation-top .app-topbar-primary { grid-template-columns:minmax(0,1fr) auto auto; }
  html[data-app-area="client"] body.app-client.client-navigation-top .app-topbar-sidebar-slot { grid-column:1; grid-row:1; max-width:170px; }
  html[data-app-area="client"] body.app-client.client-navigation-top .client-topbar-center { grid-column:2; grid-row:1; justify-self:center; }
  html[data-app-area="client"] body.app-client.client-navigation-top .app-topbar-actions { grid-column:3; grid-row:1; justify-self:end; }
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .app-topbar-primary { grid-template-columns:minmax(0,1fr) auto; }
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .app-topbar-sidebar-slot { grid-column:1; grid-row:1; display:flex; max-width:170px; }
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .client-topbar-center { grid-column:1/-1; grid-row:2; width:100%; justify-self:stretch; }
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .app-topbar-actions { grid-column:2; grid-row:1; justify-self:end; }
  html[data-app-area="client"] body.app-client .app-topbar-brand-name { max-width:150px; }
  html body:is(.app-client,.public-site) .customer-header-navigation { display:none; }
  html body:is(.app-client,.public-site) :is(.customer-account-popover) [role="menuitem"].customer-menu-mobile-only { display:flex; }
  html body:is(.app-client,.public-site) :is(.customer-account-popover) [role="menuitem"].customer-menu-desktop-only { display:none; }
  html[data-app-area="client"] body.app-client .client-topbar-desktop-search{display:none!important}
  html[data-app-area="client"] body.app-client .client-topbar-mobile-search{display:inline-grid}
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .client-topbar-center.has-search-field{display:none}
}

@media(max-width:680px) {
  html[data-app-area="client"],
  html:has(>body.public-site) { scrollbar-gutter:auto; }
  html[data-app-area="client"] body.app-client .app-topbar { position:sticky; top:0; height:auto; }
  html[data-app-area="client"] body.app-client .app-topbar-primary { gap: 8px 8px; height:auto; padding:8px 12px; }
  html[data-app-area="client"] body.app-client.client-navigation-sidebar { --theme-topbar-height:98px; }
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .app-topbar { min-height:98px; }
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .app-topbar-primary {  }
  html[data-app-area="client"] body.app-client.client-navigation-top { --theme-topbar-height:68px; }
  html[data-app-area="client"] body.app-client.client-navigation-top .app-topbar { min-height:68px; }
  html[data-app-area="client"] body.app-client.client-navigation-top .app-topbar-primary {  grid-template-columns:minmax(0,1fr) auto auto; }
  html[data-app-area="client"] body.app-client .app-topbar-sidebar-slot { min-width:0; max-width:none; overflow:hidden; }
  html[data-app-area="client"] body.app-client .app-topbar-brand {  }
  html[data-app-area="client"] body.app-client .app-topbar-brand-name {  }
    html[data-app-area="client"] body.app-client.client-navigation-sidebar .client-topbar-center { width:100%; }
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .app-topbar .public-header-search { width:100%; min-width:0; max-width:none; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger { width:auto; max-width:none; padding-inline: 8px; gap: 4px; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-copy strong { max-width:none; overflow:visible; text-overflow:clip; font-size:11px; }
}

/* Mobile client account: never squeeze the logo/name into the wallet/action track. */
@media(max-width:680px) {
  html[data-app-area="client"] body.app-client .app-topbar-primary,
  html[data-app-area="client"] body.app-client.client-navigation-top .app-topbar-primary,
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .app-topbar-primary {
    grid-template-columns:auto minmax(0,1fr);
    grid-template-rows:auto auto;
    align-items:center;
    min-height:0;
    gap: 4px 8px;
    padding-block:8px;
  }
  html[data-app-area="client"] body.app-client .app-topbar-sidebar-slot,
  html[data-app-area="client"] body.app-client.client-navigation-top .app-topbar-sidebar-slot,
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .app-topbar-sidebar-slot {
    grid-column:1/-1;grid-row:1;width:100%;max-width:none;min-width:0;
  }
  html[data-app-area="client"] body.app-client .app-topbar-brand{width:100%;min-width:0;max-width:100%;flex:1 1 auto;overflow:hidden;}
  html[data-app-area="client"] body.app-client .app-topbar-brand-name{display:block;max-width:100%;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  html[data-app-area="client"] body.app-client .client-topbar-center,
  html[data-app-area="client"] body.app-client.client-navigation-top .client-topbar-center,
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .client-topbar-center {
    grid-column:1;grid-row:2;justify-self:start;width:auto;min-width:0;
  }
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .client-topbar-center.has-search-field{
    grid-column:1/-1;grid-row:3;width:100%;justify-self:stretch;
  }
  html[data-app-area="client"] body.app-client .app-topbar-actions,
  html[data-app-area="client"] body.app-client.client-navigation-top .app-topbar-actions,
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .app-topbar-actions{
    grid-column:2;grid-row:2;justify-self:stretch;justify-content:flex-end;min-width:0;max-width:100%;flex-wrap:wrap;
  }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger { max-width:100%; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-copy strong { white-space:normal; overflow-wrap:anywhere; }
  html[data-app-area="client"] body.app-client .app-topbar{min-height:0;}
  html[data-app-area="client"] body.app-client.client-navigation-top .app-topbar-primary{min-height:0;}
  html[data-app-area="client"] body.app-client.client-navigation-sidebar .app-topbar-primary{min-height:0;}
}

@media(max-width:420px) {
  html[data-app-area="client"] body.app-client .app-topbar-primary { column-gap: 8px; padding-inline: 12px; }
  html[data-app-area="client"] body.app-client .app-topbar-brand-name { max-width:none; min-width:0; flex:1; font-size:13px; }
    html[data-app-area="client"] body.app-client .app-topbar :is(.app-theme-button,.app-language-button,.app-profile-button,.app-menu-button) { width:32px; min-width:32px; height:32px; min-height:32px; }
  html[data-app-area="client"] body.app-client .app-topbar .app-notification-button { width:40px; min-width:40px; max-width:40px; height:40px; min-height:40px; max-height:40px; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger { width:auto; height:32px; max-width:100%; padding-inline: 8px; gap:4px; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-copy strong { max-width:none; overflow:visible; text-overflow:clip; font-size: 11px; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-icon { width:16px; height:16px; flex-basis:16px; }
  html[data-app-area="client"] body.app-client .app-quick-wallet-trigger-icon svg { width:16px; height:16px; }
}

/* A document overlay does not take width from the header/footer. Native fallback
   remains in use without JavaScript or in forced-colors mode. */
html.gv-page-scrollbar-enhanced { scrollbar-width:none; scrollbar-gutter:auto; }
html.gv-page-scrollbar-enhanced::-webkit-scrollbar { width:0; height:0; }
.gv-page-scrollbar { position:fixed; inset-block:0; inset-inline-end:0; z-index:4500; width:6px; background:transparent; touch-action:none; user-select:none; }
.gv-page-scrollbar-thumb { position:absolute; inset-inline:1px; inset-block-start:0; min-height:32px; border-radius: var(--gv-radius-pill); background:var(--gv-text-muted,#777); opacity:.36; }
.gv-page-scrollbar:hover .gv-page-scrollbar-thumb, .gv-page-scrollbar:focus-visible .gv-page-scrollbar-thumb { opacity:.72; }
.gv-page-scrollbar:focus-visible { outline:2px solid currentColor; outline-offset:-2px; }
html:is(.gv-popup-lock,.gv-auth-modal-open) .gv-page-scrollbar { visibility:hidden; pointer-events:none; }
@media(pointer:coarse) { .gv-page-scrollbar { pointer-events:none; width:4px; } .gv-page-scrollbar-thumb { inset-inline:1px; opacity:.32; } }
@media(forced-colors:active) { html.gv-page-scrollbar-enhanced { scrollbar-width:auto; } html.gv-page-scrollbar-enhanced::-webkit-scrollbar { width:auto; } .gv-page-scrollbar { display:none; } }

/* Authenticated mobile navigation: fixed to the viewport edge with one sliding active indicator. */
.mobile-primary-dock { display:none; }
@media(max-width:900px) {
  body:is(.public-site,.app-client) .mobile-primary-dock {
    --mobile-dock-surface:var(--gv-surface);
    --mobile-dock-active:color-mix(in srgb,var(--gv-primary) 8%,var(--gv-surface-muted));
    box-sizing:border-box;
    position:fixed;
    inset-inline:0;
    inset-block-end:0;
    z-index:3900;
    display:grid;
    grid-template-columns:repeat(var(--mobile-dock-columns,5),minmax(0,1fr));
    gap:0;
    width:100%;
    max-width:none;
    min-height:68px;
    margin:0;
    padding: 8px max(8px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));
    overflow:hidden;
    border:0;
    border-top:1px solid var(--gv-border);
    border-radius:0;
    background:var(--mobile-dock-surface);
    color:var(--gv-text);
    box-shadow:none;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    isolation:isolate;
    scrollbar-width:none;
  }
  body:is(.public-site,.app-client) .mobile-primary-dock[data-item-count="5"] { --mobile-dock-columns:5; }
  body:is(.public-site,.app-client) .mobile-primary-dock[data-item-count="4"] { --mobile-dock-columns:4; }
  body:is(.public-site,.app-client) .mobile-primary-dock-indicator {
    position:absolute;
    inset-block-start:0;
    inset-inline-start:0;
    z-index:0;
    width:0;
    height:0;
    border:0;
    border-radius:16px;
    background:var(--mobile-dock-active);
    box-shadow:none;
    opacity:0;
    pointer-events:none;
    transform:translate3d(0,0,0);
    transition:transform .34s cubic-bezier(.22,.8,.2,1),width .34s cubic-bezier(.22,.8,.2,1),height .34s cubic-bezier(.22,.8,.2,1),opacity .16s ease;
    will-change:transform,width,height;
  }
  body:is(.public-site,.app-client) .mobile-primary-dock.is-indicator-ready .mobile-primary-dock-indicator { opacity:1; }
  body:is(.public-site,.app-client) .mobile-primary-dock-indicator.is-instant { transition:none; }
  body:is(.public-site,.app-client) .mobile-primary-dock-item {
    position:relative;
    z-index:1;
    display:flex;
    min-width:0;
    min-height:56px;
    padding: 8px 3px;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    border:0;
    border-radius:16px;
    background:transparent;
    color:var(--gv-text-muted);
    text-decoration:none;
    font:500 11px/1.15 var(--gv-font-sans);
    text-align:center;
    -webkit-tap-highlight-color:transparent;
    transition:color .18s ease,transform .16s ease;
  }
  body:is(.public-site,.app-client) .mobile-primary-dock-item:is(:hover,:focus-visible) {
    color:var(--gv-text);
    text-decoration:none;
  }
  body:is(.public-site,.app-client) .mobile-primary-dock-item:focus-visible {
    outline:2px solid var(--gv-primary);
    outline-offset:-3px;
  }
  body:is(.public-site,.app-client) .mobile-primary-dock-item:active { transform:scale(.97); }
  body:is(.public-site,.app-client) .mobile-primary-dock-item.is-active { color:var(--gv-text); }
  body:is(.public-site,.app-client) .mobile-primary-dock-icon {
    display:grid;
    place-items:center;
    width:24px;
    height:24px;
    flex:none;
    transition:transform .22s cubic-bezier(.22,.8,.2,1);
  }
  body:is(.public-site,.app-client) .mobile-primary-dock-icon svg { width:21px; height:21px; }
  body:is(.public-site,.app-client) .mobile-primary-dock-item.is-active .mobile-primary-dock-icon { transform:translateY(-1px); }
  body:is(.public-site,.app-client) .mobile-primary-dock-label {
    display:block;
    min-width:0;
    max-width:100%;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }
  body.public-site:has(.mobile-primary-dock) .public-site-scroll-region { padding-bottom: calc(96px + env(safe-area-inset-bottom,0px)); }
}
@media(max-width:360px) {
  body:is(.public-site,.app-client) .mobile-primary-dock-item { min-height:54px; padding-inline:2px; font-size: 11px; border-radius:16px; }
  body:is(.public-site,.app-client) .mobile-primary-dock-icon svg { width:20px; height:20px; }
}
@media(prefers-reduced-motion:reduce) {
  body:is(.public-site,.app-client) .mobile-primary-dock-indicator,
  body:is(.public-site,.app-client) .mobile-primary-dock-item,
  body:is(.public-site,.app-client) .mobile-primary-dock-icon { transition:none; }
}

/* Customer account popover and wallet drawer; shared menu placement is retained. */
html[data-app-area="client"] body.app-client .customer-profile-menu {
  box-sizing: border-box;
  isolation: isolate;
  width: min(280px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid var(--gv-border);
  border-radius: var(--gv-radius-card, 12px);
  background: var(--gv-surface);
  color: var(--gv-text);
  box-shadow: var(--gv-shadow-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
}
html[data-app-area="client"] body.app-client .customer-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-block-end: 4px;
  padding: 10px;
  border-bottom: 1px solid var(--gv-border);
}
html[data-app-area="client"] body.app-client .customer-profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gv-border);
  border-radius: var(--gv-radius-button, 8px);
  background: var(--gv-surface-subtle);
  color: var(--gv-text-secondary);
}
html[data-app-area="client"] body.app-client .customer-profile-avatar svg {
  width: 20px;
  height: 20px;
}
html[data-app-area="client"] body.app-client .customer-profile-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: start;
}
html[data-app-area="client"] body.app-client .customer-profile-identity b {
  color: var(--gv-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: match-parent;
}
html[data-app-area="client"] body.app-client .customer-profile-identity small {
  color: var(--gv-text-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: match-parent;
}
html[data-app-area="client"] body.app-client .customer-profile-menu [role="menuitem"] {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--gv-radius-button, 8px);
  background: transparent;
  color: var(--gv-text);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}
html[data-app-area="client"] body.app-client .customer-profile-menu [role="menuitem"] svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
html[data-app-area="client"] body.app-client .customer-profile-menu [role="menuitem"].customer-menu-mobile-only {
  display: none;
}
html[data-app-area="client"] body.app-client .customer-profile-menu [role="menuitem"]:hover {
  background: var(--gv-surface-subtle);
}
html[data-app-area="client"] body.app-client .customer-profile-menu [role="menuitem"]:focus-visible {
  outline: 2px solid var(--gv-text);
  outline-offset: -2px;
  background: var(--gv-surface-subtle);
}
html[data-app-area="client"] body.app-client .customer-profile-footer {
  margin-block-start: 4px;
  padding-block-start: 4px;
  border-top: 1px solid var(--gv-border);
}
html[data-app-area="client"] body.app-client .customer-profile-footer [role="menuitem"]:hover {
  background: var(--gv-danger-soft);
  color: var(--gv-danger);
}
html[data-app-area="client"] body.app-client.quick-wallet-open {
  overflow: hidden;
}
html[data-app-area="client"] body.app-client .quick-wallet-layer {
  position: fixed;
  inset: 0;
  z-index: 4500;
}
html[data-app-area="client"] body.app-client .quick-wallet-backdrop {
  position: absolute;
  inset: 0;
  background: var(--theme-overlay, rgba(10,10,10,.28));
  opacity: 0;
}
html[data-app-area="client"] body.app-client .quick-wallet-drawer {
  box-sizing: border-box;
  position: absolute;
  inset-block: 8px;
  inset-inline-end: 8px;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 16px));
  min-width: 0;
  height: auto;
  border: 1px solid var(--gv-border);
  border-radius: var(--gv-radius-card, 12px);
  outline: 0;
  background: var(--gv-surface);
  color: var(--gv-text);
  box-shadow: var(--gv-shadow-lg);
  overflow: hidden;
  opacity: 0;
}
html[data-app-area="client"] body.app-client .quick-wallet-layer.is-open :is(.quick-wallet-drawer,.quick-wallet-backdrop) {
  opacity: 1;
}
html[data-app-area="client"] body.app-client .quick-wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--gv-border);
}
html[data-app-area="client"] body.app-client .quick-wallet-head h2 {
  margin: 0;
  color: var(--gv-text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}
html[data-app-area="client"] body.app-client .quick-wallet-close {
  flex: none;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--gv-radius-button, 8px);
  background: transparent;
  color: var(--gv-text-muted);
}
html[data-app-area="client"] body.app-client .quick-wallet-close:hover {
  background: var(--gv-surface-subtle);
  color: var(--gv-text);
}
html[data-app-area="client"] body.app-client .quick-wallet-content {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
html[data-app-area="client"] body.app-client .quick-wallet-content > section {
  padding: 20px 16px;
}
html[data-app-area="client"] body.app-client .quick-wallet-balance {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--gv-border);
  background: var(--gv-surface-subtle);
  text-align: start;
}
html[data-app-area="client"] body.app-client .quick-wallet-balance > span {
  color: var(--gv-text-muted);
  font-size: 12px;
  line-height: 1.5;
}
html[data-app-area="client"] body.app-client .quick-wallet-balance strong {
  min-width: 0;
  color: var(--gv-text);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-align: match-parent;
}
html[data-app-area="client"] body.app-client .quick-wallet-transactions > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-block-end: 8px;
}
html[data-app-area="client"] body.app-client .quick-wallet-transactions h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
html[data-app-area="client"] body.app-client .quick-wallet-transactions header a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: var(--gv-radius-button, 8px);
  color: var(--gv-text);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}
html[data-app-area="client"] body.app-client .quick-wallet-transactions header a:hover {
  background: var(--gv-surface-subtle);
}
html[data-app-area="client"] body.app-client .quick-wallet-transaction-list {
  display: grid;
  min-width: 0;
}
html[data-app-area="client"] body.app-client .quick-wallet-transaction {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-block: 12px;
  border-bottom: 1px solid var(--gv-border);
  text-align: end;
}
html[data-app-area="client"] body.app-client .quick-wallet-transaction:last-child {
  border-bottom: 0;
}
html[data-app-area="client"] body.app-client .quick-wallet-transaction-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: start;
}
html[data-app-area="client"] body.app-client .quick-wallet-transaction-copy b {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
html[data-app-area="client"] body.app-client .quick-wallet-transaction-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--gv-text-muted);
  font-size: 11px;
  line-height: 1.5;
}
html[data-app-area="client"] body.app-client .quick-wallet-transaction-meta :is(small,time) {
  font: inherit;
}
html[data-app-area="client"] body.app-client .quick-wallet-transaction > strong {
  max-width: 160px;
  color: var(--gv-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  text-align: match-parent;
  justify-self: end;
  overflow-wrap: anywhere;
}
html[data-app-area="client"] body.app-client .quick-wallet-empty {
  margin-block: 8px;
  padding: 16px;
  border: 1px solid var(--gv-border);
  border-radius: var(--gv-radius-button, 8px);
  background: var(--gv-surface-subtle);
  color: var(--gv-text-muted);
  font-size: 12px;
  line-height: 1.6;
}
html[data-app-area="client"] body.app-client .quick-wallet-layer :is(a,button):focus-visible {
  outline: 2px solid var(--gv-text);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  html[data-app-area="client"] body.app-client .quick-wallet-drawer {
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  html[data-app-area="client"] body.app-client .quick-wallet-head {
    padding-block-start: max(16px, env(safe-area-inset-top, 0px));
  }
  html[data-app-area="client"] body.app-client .quick-wallet-content {
    padding-block-end: env(safe-area-inset-bottom, 0px);
  }
}
@media (max-width: 680px) {
  html[data-app-area="client"] body.app-client .customer-profile-menu [role="menuitem"].customer-menu-mobile-only {
    display: flex;
  }
  html[data-app-area="client"] body.app-client .customer-profile-menu [role="menuitem"].customer-menu-desktop-only {
    display: none;
  }
}
@media (pointer: coarse) {
  html[data-app-area="client"] body.app-client .customer-profile-menu [role="menuitem"],
  html[data-app-area="client"] body.app-client .quick-wallet-transactions header a {
    min-height: 40px;
  }
  html[data-app-area="client"] body.app-client .quick-wallet-close {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }
}


/* The client header moves without resizing either vertical scroll viewport.
   Desktop reserves its initial space inside the scrollable content itself. */
html[data-app-area="client"] body.app-client .client-scroll-shell > .app-topbar {
  position:sticky;
  top:0;
  margin:0;
  transition:transform 220ms cubic-bezier(.2,.8,.2,1);
}
html[data-app-area="client"] body.app-client .client-scroll-content {
  min-width:0;
}
@media (min-width:901px) {
  html[data-app-area="client"] body.app-client .client-scroll-shell {
    position:relative;
  }
  html[data-app-area="client"] body.app-client .client-scroll-shell > .app-topbar {
    position:absolute;
    inset-block-start:0;
    inset-inline:0;
  }
  html[data-app-area="client"] body.app-client .client-scroll-content {
    padding-block-start:var(--client-scroll-header-height,68px);
  }
}
html[data-app-area="client"] body.app-client .client-scroll-shell > .app-topbar.is-scroll-hidden {
  transform:translate3d(0,-100%,0);
  pointer-events:none;
}
@media (prefers-reduced-motion:reduce) {
  html[data-app-area="client"] body.app-client .client-scroll-shell > .app-topbar {
    transition:none;
  }
}
