/* Shared consumer chrome owns the header, including on lazily loaded pages.
   Keep these selectors stronger than the older route-specific header rules. */
.growth-shell.portal-chrome-shell.unified-consumer-shell,
.growth-shell.portal-chrome-shell.purchase-reference-shell,
.growth-shell.portal-chrome-shell.r15-shell,
.growth-shell.portal-chrome-shell.r15-shell.invite-reference-shell {
  --portal-canvas: #f8f9fc;
  --portal-header-ink: #17122e;
  --portal-wallet-surface: #fbfbff;
  --portal-wallet-line: #e9e6f4;
  --growth-cloud: var(--portal-canvas);
  background: var(--portal-canvas);
}

.dark .growth-shell.portal-chrome-shell.unified-consumer-shell,
.dark .growth-shell.portal-chrome-shell.purchase-reference-shell,
.dark .growth-shell.portal-chrome-shell.r15-shell,
.dark .growth-shell.portal-chrome-shell.r15-shell.invite-reference-shell {
  --portal-canvas: #191322;
  --portal-header-ink: #f5f0ff;
  --portal-wallet-surface: #2b2238;
  --portal-wallet-line: #493c5b;
}

.growth-shell.portal-chrome-shell > .growth-header.portal-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: auto;
  min-height: calc(80px + env(safe-area-inset-top));
  padding: calc(18px + env(safe-area-inset-top)) 20px 18px;
  background: var(--portal-canvas);
  color: var(--portal-header-ink);
}

.growth-shell.portal-chrome-shell > .growth-header.portal-header .portal-header-brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  flex: 0 1 auto;
  border-radius: 12px;
}

.growth-shell.portal-chrome-shell > .growth-header.portal-header .portal-header-title {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.growth-shell.portal-chrome-shell > .growth-header.portal-header .portal-page-title {
  margin: 0;
  min-width: 0;
  font: 750 1.75rem/1.3 MiSans, Inter, sans-serif;
  letter-spacing: 0;
  color: var(--portal-header-ink);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.growth-shell.portal-chrome-shell > .growth-header.portal-header .portal-back-button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0 0 0 -10px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--portal-header-ink);
}

.growth-shell.portal-chrome-shell > .growth-header.portal-header .growth-wallet {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  max-width: 52%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--portal-wallet-line);
  border-radius: 999px;
  background: var(--portal-wallet-surface);
  color: var(--portal-header-ink);
  box-shadow: none;
  font: 550 .875rem/1.5 MiSans, Inter, sans-serif;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  overflow-wrap: normal;
}

.growth-shell.portal-chrome-shell > .growth-header.portal-header .growth-wallet > svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.growth-shell.portal-chrome-shell > .growth-header.portal-header .growth-wallet > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.growth-shell.portal-chrome-shell > .growth-header.portal-header :is(a, button) {
  touch-action: manipulation;
  transition: transform 120ms cubic-bezier(0.2, 0, 0, 1);
}

.growth-shell.portal-chrome-shell > .growth-header.portal-header :is(a, button):focus-visible {
  outline: 2px solid var(--growth-violet);
  outline-offset: 3px;
}

.growth-shell.portal-chrome-shell > .growth-header.portal-header :is(a, button):active {
  transform: scale(.96);
}

.growth-shell.portal-chrome-shell > .growth-header.portal-header :is(.growth-wallet, .portal-back-button):active {
  background: var(--growth-lavender);
}

.growth-shell.portal-chrome-shell > .growth-header.portal-header .portal-header-brand:active {
  opacity: .8;
}

@media (hover: hover) and (pointer: fine) {
  .growth-shell.portal-chrome-shell > .growth-header.portal-header :is(.growth-wallet, .portal-back-button):hover {
    background: var(--growth-lavender);
  }
}

@media (max-width: 359px) {
  .growth-shell.portal-chrome-shell > .growth-header.portal-header {
    gap: 10px;
    padding-inline: 16px;
  }

  .growth-shell.portal-chrome-shell > .growth-header.portal-header .portal-page-title {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .growth-shell.portal-chrome-shell > .growth-header.portal-header :is(a, button) {
    transition: none;
  }

  .growth-shell.portal-chrome-shell > .growth-header.portal-header :is(a, button):active {
    transform: none;
  }
}

.growth-shell.portal-chrome-shell > .growth-header.portal-header .portal-header-brand{max-width:38%;overflow:hidden}.portal-header-brand img{max-width:100%;object-fit:contain}
