/* Presentation-only layout lock for Wallet selectors. Currency behavior is unchanged. */
:root {
  --wallet-lock-trigger-w: 152px;
  --wallet-lock-action-w: 116px;
  --wallet-lock-control-h: 46px;
  --wallet-lock-coin: 28px;
  --wallet-lock-gap: 8px;
  --wallet-tabs-sticky-top: 0px;
}

html body .topbar-wallet-center {
  inline-size: calc(var(--wallet-lock-trigger-w) + var(--wallet-lock-action-w) + var(--wallet-lock-gap)) !important;
  min-inline-size: calc(var(--wallet-lock-trigger-w) + var(--wallet-lock-action-w) + var(--wallet-lock-gap)) !important;
  max-inline-size: calc(var(--wallet-lock-trigger-w) + var(--wallet-lock-action-w) + var(--wallet-lock-gap)) !important;
  display: grid !important;
  grid-template-columns: var(--wallet-lock-trigger-w) var(--wallet-lock-action-w) !important;
  align-items: center !important;
  gap: var(--wallet-lock-gap) !important;
  transition: opacity 120ms ease, color 120ms ease !important;
}

html body .topbar-wallet-center .currency-menu-wrap {
  inline-size: var(--wallet-lock-trigger-w) !important;
  min-inline-size: var(--wallet-lock-trigger-w) !important;
  max-inline-size: var(--wallet-lock-trigger-w) !important;
  block-size: var(--wallet-lock-control-h) !important;
  flex: 0 0 var(--wallet-lock-trigger-w) !important;
}

html body .topbar-wallet-center .balance-pill {
  box-sizing: border-box !important;
  inline-size: var(--wallet-lock-trigger-w) !important;
  min-inline-size: var(--wallet-lock-trigger-w) !important;
  max-inline-size: var(--wallet-lock-trigger-w) !important;
  block-size: var(--wallet-lock-control-h) !important;
  min-block-size: var(--wallet-lock-control-h) !important;
  max-block-size: var(--wallet-lock-control-h) !important;
  display: grid !important;
  grid-template-columns: var(--wallet-lock-coin) minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 9px !important;
  overflow: hidden !important;
  transform: none !important;
  transition: border-color 120ms ease, box-shadow 120ms ease, color 120ms ease, background-color 120ms ease, opacity 120ms ease !important;
}

html body .topbar-wallet-center .balance-pill:hover,
html body .topbar-wallet-center .balance-pill:active,
html body .topbar-wallet-center .balance-pill[aria-expanded="true"] {
  transform: none !important;
}

html body .topbar-wallet-center .balance-pill__coin {
  box-sizing: border-box !important;
  inline-size: var(--wallet-lock-coin) !important;
  min-inline-size: var(--wallet-lock-coin) !important;
  max-inline-size: var(--wallet-lock-coin) !important;
  block-size: var(--wallet-lock-coin) !important;
  min-block-size: var(--wallet-lock-coin) !important;
  max-block-size: var(--wallet-lock-coin) !important;
  flex: 0 0 var(--wallet-lock-coin) !important;
  place-self: center !important;
  font-family: var(--font-latin) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  transform: none !important;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, opacity 120ms ease !important;
}

html body .topbar-wallet-center .balance-pill > strong {
  inline-size: 100% !important;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  overflow: hidden !important;
  font-variant-numeric: tabular-nums lining-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
  line-height: 1.1 !important;
  text-align: start !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  transform: none !important;
  transition: color 120ms ease, opacity 120ms ease !important;
}

html body .topbar-wallet-center .wallet-action {
  box-sizing: border-box !important;
  inline-size: var(--wallet-lock-action-w) !important;
  min-inline-size: var(--wallet-lock-action-w) !important;
  max-inline-size: var(--wallet-lock-action-w) !important;
  block-size: var(--wallet-lock-control-h) !important;
  min-block-size: var(--wallet-lock-control-h) !important;
  max-block-size: var(--wallet-lock-control-h) !important;
  flex: 0 0 var(--wallet-lock-action-w) !important;
  transform: none !important;
  transition: border-color 120ms ease, box-shadow 120ms ease, color 120ms ease, background-color 120ms ease, opacity 120ms ease !important;
}

html body .topbar-wallet-center .wallet-action:hover,
html body .topbar-wallet-center .wallet-action:active {
  transform: none !important;
}

html body .topbar-wallet-center .wallet-action .icon-mark {
  inline-size: 19px !important;
  min-inline-size: 19px !important;
  max-inline-size: 19px !important;
  block-size: 19px !important;
  min-block-size: 19px !important;
  max-block-size: 19px !important;
  flex: 0 0 19px !important;
  transform: none !important;
  transition: color 120ms ease, opacity 120ms ease !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-row,
html body .currency-dropdown[aria-label="Currency selector"] .currency-badge,
html body .currency-dropdown[aria-label="Currency selector"] :is(.currency-code, .currency-values, strong, small) {
  transform: none !important;
  transition-property: color, background-color, border-color, box-shadow, opacity !important;
  transition-duration: 120ms !important;
  transition-timing-function: ease !important;
}

html body .currency-dropdown[aria-label="Currency selector"] .currency-row:hover,
html body .currency-dropdown[aria-label="Currency selector"] .currency-row:active,
html body .currency-dropdown[aria-label="Currency selector"] .currency-row.active {
  transform: none !important;
}

html body .wallet-balance-card > strong,
html body .wallet-ledger-row strong {
  font-variant-numeric: tabular-nums lining-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
  transition: color 120ms ease, opacity 120ms ease !important;
}

html body .wallet-ledger-row {
  grid-template-columns: 36px minmax(150px, 1fr) minmax(150px, .8fr) minmax(190px, auto) !important;
  min-block-size: 64px !important;
  transform: none !important;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease, opacity 120ms ease !important;
}

html body .wallet-ledger-row__currency {
  inline-size: 100% !important;
  min-inline-size: 0 !important;
  grid-template-columns: 36px minmax(0, 1fr) !important;
  transform: none !important;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease, opacity 120ms ease !important;
}

html body .wallet-ledger-row .currency-badge {
  box-sizing: border-box !important;
  inline-size: 36px !important;
  min-inline-size: 36px !important;
  max-inline-size: 36px !important;
  block-size: 36px !important;
  min-block-size: 36px !important;
  max-block-size: 36px !important;
  flex: 0 0 36px !important;
  place-self: center !important;
  font-family: var(--font-latin) !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  transform: none !important;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease !important;
}

html body .wallet-ledger-row > span:not(.currency-badge):not(.wallet-ledger-row__actions),
html body .wallet-ledger-row__currency > span:last-child {
  min-inline-size: 0 !important;
  overflow: hidden !important;
}

html body .wallet-ledger-row strong,
html body .wallet-ledger-row small {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .wallet-ledger-row__actions {
  min-inline-size: 190px !important;
}

html body .account-route-page .account-route-nav {
  position: sticky !important;
  inset-block-start: var(--wallet-tabs-sticky-top) !important;
  z-index: 44 !important;
  min-block-size: 69px !important;
  max-block-size: 69px !important;
  align-items: center !important;
  overscroll-behavior-inline: contain !important;
  scroll-behavior: auto !important;
  transform: none !important;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, opacity 120ms ease !important;
}

html body .account-route-page {
  min-block-size: calc(100% + 78px) !important;
}

html body .account-profile-route-page .account-profile-prompt {
  margin-block-start: -6px !important;
}

html body .account-profile-route-page .account-route-nav {
  inline-size: calc(100% + 40px) !important;
  margin-block-start: -16px !important;
  margin-inline: -20px !important;
}

html body .account-route-page .account-route-nav button,
html body .account-route-page .account-route-nav .icon-mark,
html body .account-route-page .account-route-nav span {
  transform: none !important;
  transition-property: color, background-color, border-color, box-shadow, opacity !important;
  transition-duration: 120ms !important;
  transition-timing-function: ease !important;
}

html body .account-route-page .account-route-nav button:hover,
html body .account-route-page .account-route-nav button:active,
html body .account-route-page .account-route-nav button.active {
  transform: none !important;
}

@media (min-width: 721px) and (max-width: 980px) {
  :root {
    --wallet-lock-trigger-w: 146px;
    --wallet-lock-action-w: 54px;
    --wallet-lock-control-h: 52px;
    --wallet-lock-coin: 38px;
    --wallet-lock-gap: 8px;
    --wallet-tabs-sticky-top: 0px;
  }

  html body .topbar-wallet-center .wallet-action .icon-mark {
    inline-size: 22px !important;
    min-inline-size: 22px !important;
    max-inline-size: 22px !important;
    block-size: 22px !important;
    min-block-size: 22px !important;
    max-block-size: 22px !important;
    flex-basis: 22px !important;
  }
}

@media (max-width: 720px) {
  :root {
    --wallet-lock-trigger-w: 104px;
    --wallet-lock-action-w: 42px;
    --wallet-lock-control-h: 42px;
    --wallet-lock-coin: 30px;
    --wallet-lock-gap: 7px;
    --wallet-tabs-sticky-top: 0px;
  }

  html body .topbar-wallet-center .balance-pill {
    gap: 5px !important;
    padding-inline: 7px !important;
  }

  html body .topbar-wallet-center .balance-pill > strong {
    font-size: 11px !important;
  }

  html body .topbar-wallet-center .wallet-action .icon-mark {
    inline-size: 20px !important;
    min-inline-size: 20px !important;
    max-inline-size: 20px !important;
    block-size: 20px !important;
    min-block-size: 20px !important;
    max-block-size: 20px !important;
    flex-basis: 20px !important;
  }

  html body .wallet-ledger-row {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    min-block-size: 64px !important;
  }

  html body .wallet-ledger-row__currency {
    grid-template-columns: 36px minmax(0, 1fr) !important;
  }

  html body .wallet-ledger-row__actions {
    min-inline-size: 0 !important;
  }

  html body .account-route-page .account-route-nav {
    min-block-size: 60px !important;
    max-block-size: 60px !important;
  }
}

@media (max-width: 380px) {
  :root {
    --wallet-lock-trigger-w: 100px;
    --wallet-lock-action-w: 40px;
    --wallet-lock-control-h: 40px;
    --wallet-lock-coin: 28px;
    --wallet-lock-gap: 6px;
    --wallet-tabs-sticky-top: 0px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .topbar-wallet-center,
  html body .topbar-wallet-center *,
  html body .currency-dropdown[aria-label="Currency selector"] *,
  html body .wallet-ledger-row,
  html body .wallet-ledger-row * {
    transition: none !important;
  }
}
