:root {
  --bg-0: #000000;
  --bg-1: #000000;
  --bg-2: #000000;
  --panel: rgba(14, 14, 14, 0.92);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-main: #f5f5f5;
  --text-soft: #a3a3a3;
  --accent-hot: #f3f3f3;
  --accent-cold: #cfcfcf;
  --danger: #ff6b63;
  --type-eyebrow-size: 0.72rem;
  --type-eyebrow-weight: 600;
  --type-eyebrow-tracking: 0.14em;
  --type-meta-size: 0.96rem;
  --type-meta-weight: 500;
  --type-meta-tracking: -0.016em;
  --type-button-size: 0.94rem;
  --type-button-weight: 500;
  --type-button-tracking: -0.018em;
  --type-deck-size: clamp(1rem, 1.4vw, 1.08rem);
  --type-deck-leading: 1.56;
  --type-deck-tracking: -0.016em;
  --type-body-size: 1.04rem;
  --type-body-leading: 1.72;
  --type-body-tracking: -0.012em;
  --type-body-small-size: 0.96rem;
  --type-body-small-leading: 1.58;
  --type-body-small-tracking: -0.012em;
  --type-display-hero-size: clamp(3rem, 7vw, 5.8rem);
  --type-display-hero-leading: 0.92;
  --type-display-hero-tracking: -0.06em;
  --type-display-page-size: clamp(2.45rem, 5vw, 4.25rem);
  --type-display-page-leading: 0.96;
  --type-display-page-tracking: -0.058em;
  --type-title-section-size: clamp(1.8rem, 3vw, 2.4rem);
  --type-title-section-leading: 1;
  --type-title-section-tracking: -0.048em;
  --type-title-card-size: clamp(1.5rem, 2.3vw, 2.1rem);
  --type-title-card-leading: 1.08;
  --type-title-card-tracking: -0.042em;
  --type-title-card-compact-size: clamp(1.08rem, 1.55vw, 1.38rem);
  --type-title-card-compact-leading: 1.14;
  --type-title-card-compact-tracking: -0.036em;
  --type-title-inline-size: 1.16rem;
  --type-title-inline-leading: 1.16;
  --type-title-inline-tracking: -0.03em;
  --type-title-body-h2-size: 1.82rem;
  --type-title-body-h2-leading: 1.12;
  --type-title-body-h2-tracking: -0.05em;
  --app-header-inline-padding: clamp(24px, 2.5vw, 32px);
  --app-header-padding-top: 5px;
  --app-header-padding-bottom: 8px;
  --app-header-min-height: 44px;
  --app-header-brand-size: 46px;
  --app-header-height: calc(max(var(--app-header-min-height), var(--app-header-brand-size)) + var(--app-header-padding-top) + var(--app-header-padding-bottom) + 1px);
  --chat-black: #000000;
  --chat-bg-primary: #101011;
  --chat-bg-secondary: #161618;
  --chat-surface-primary: #171717;
  --chat-surface-secondary: #1d1d1d;
  --chat-surface-tertiary: #252528;
  --chat-divider: rgba(255, 255, 255, 0.12);
  --chat-border-soft: rgba(255, 255, 255, 0.08);
  --chat-border-strong: rgba(255, 255, 255, 0.16);
  --chat-text-muted: rgba(255, 255, 255, 0.5);
  --chat-scroll-track: rgba(10, 10, 10, 0.94);
  --chat-scroll-thumb: rgba(112, 112, 118, 0.94);
  --chat-scroll-thumb-hover: rgba(146, 146, 153, 0.98);
}

.walletAuthStatus .walletStatus:empty {
  display: none;
}

.walletAuthStatus .walletStatus {
  max-width: none;
  color: var(--text-soft);
}

.walletProgress {
  margin: 12px 0 20px;
  scroll-margin-top: calc(var(--app-header-height) + 16px);
}

.walletProgress p {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}

.walletProgressActions {
  display: grid;
  gap: 10px;
}

.walletProgressActions button {
  width: 100%;
  min-height: 44px;
  white-space: normal;
}

.walletProgress[hidden],
.walletProgress [hidden] {
  display: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: var(--app-header-padding-top) var(--app-header-inline-padding)
    var(--app-header-padding-bottom);
  border-bottom: 1px solid var(--chat-divider);
  background: var(--chat-black);
}

.headerTop {
  border-bottom-color: transparent;
}

.headerTop .brand {
  gap: 0;
}

.headerTop .brandText {
  max-width: 0;
  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
}

.inner {
  width: min(1320px, 100%);
  margin: 0 auto;
  min-height: var(--app-header-min-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #f5f5f5;
  text-decoration: none;
  transition: gap 0.18s ease;
}

.brandMark {
  width: var(--app-header-brand-size);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brandLogo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.brandMenuIcon {
  width: 21px;
  display: inline-grid;
  justify-items: start;
  gap: 5px;
}

.brandMenuIconLine {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(245, 245, 245, 0.92);
}

.brandMenuIconLine:last-child {
  width: 62%;
}

.brandText {
  display: inline-block;
  font-family: var(--font-news), var(--font-body), sans-serif;
  font-size: clamp(1.08rem, 1.05vw, 1.18rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  max-width: 10rem;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  transform: translateX(0);
  transition:
    max-width 0.2s ease,
    opacity 0.16s ease,
    transform 0.2s ease;
}

.actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.ghostLink,
.ghostButton,
.primaryLink,
.primaryButton,
.walletChipButton,
.iconButtonMuted {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-news), var(--font-body), sans-serif;
  font-size: var(--type-button-size);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--type-button-tracking);
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    filter 0.18s ease,
    transform 0.18s ease;
}

.ghostLink,
.ghostButton {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 245, 245, 0.96);
}

.primaryLink,
.primaryButton,
.walletChipButton {
  border: 0;
  background: #f5f5f5;
  color: #111111;
}

.iconButtonMuted {
  width: 38px;
  min-width: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 245, 245, 0.72);
}

.primaryButtonDark {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 18, 0.94);
  color: #f5f5f5;
}

.ghostButton,
.primaryButton,
.walletChipButton,
.iconButtonMuted {
  cursor: pointer;
}

.ghostLink:hover,
.ghostButton:hover,
.primaryLink:hover,
.primaryButton:hover,
.walletChipButton:hover,
.iconButtonMuted:hover {
  filter: brightness(1.02);
}

.ghostLink:focus-visible,
.ghostButton:focus-visible,
.primaryLink:focus-visible,
.primaryButton:focus-visible,
.walletChipButton:focus-visible,
.iconButtonMuted:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.28);
  outline-offset: 2px;
}

.iconButtonMuted:disabled {
  cursor: default;
  opacity: 0.45;
  filter: none;
}

.iconButtonMuted svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.walletButtonText,
.walletButtonTextDesktop,
.walletButtonTextMobile {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.walletButtonTextMobile {
  display: none;
}

.walletNavigationArrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.walletChipButtonOpen {
  background: #ffffff;
}

.header .actions .accountAvatarButton {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
}

[data-account-label][hidden],
[data-account-avatar][hidden] {
  display: none;
}

.walletChipChevron {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.16s ease;
}

.walletChipChevronOpen {
  transform: rotate(180deg);
}

@media (max-width: 820px) {
  .inner {
    gap: 12px;
  }

  .actions {
    gap: 8px;
  }

  .ghostLink,
  .ghostButton,
  .primaryLink,
  .primaryButton,
  .walletChipButton,
  .iconButtonMuted {
    min-height: 38px;
    padding: 0 16px;
  }

  .iconButtonMuted {
    width: 38px;
    min-width: 38px;
    padding: 0;
  }
}

@media (max-width: 560px) {
  .header {
    padding-left: clamp(18px, 1.65vw, 20px);
    padding-right: clamp(18px, 1.65vw, 20px);
  }

  .brandText {
    font-size: 0.98rem;
  }

  .headerTop .brand {
    gap: 0;
  }

  .headerTop .brandText {
    max-width: 0;
    opacity: 0;
    transform: translateX(-6px);
    pointer-events: none;
  }

  .headerShowBrand .brand {
    gap: 10px;
  }

  .headerShowBrand .brandText {
    max-width: 8rem;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .ghostLink,
  .ghostButton,
  .primaryLink,
  .primaryButton,
  .walletChipButton,
  .iconButtonMuted {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .iconButtonMuted {
    width: 36px;
    min-width: 36px;
    padding: 0;
  }

  .walletButtonTextDesktop {
    display: none;
  }

  .walletButtonTextMobile {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .brandText {
    transition: none;
  }
}

.footerBar {
  margin-top: 32px;
  width: min(1320px, 100%);
  justify-self: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
}

.footerNav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  white-space: nowrap;
}

.footerNav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.footerTextLink,
.footerUtilityLink {
  color: #f0f0f0;
  text-decoration: none;
}

.footerTextLink,
.footerUtilityLink,
.footerTextButton {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-news), var(--font-body), sans-serif;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.footerTextLink,
.footerTextButton {
  font-size: 0.93rem;
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.014em;
}

.footerTextLink:hover,
.footerTextButton:hover,
.footerUtilityLink:hover {
  color: #ffffff;
  opacity: 0.92;
}

.footerPartnerBanner {
  display: flex;
  justify-content: center;
}

.footerPartnerBanner a {
  display: inline-flex;
  max-width: 100%;
  border-radius: 10px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.footerPartnerBanner a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.footerPartnerBanner a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.84);
  outline-offset: 4px;
}

.footerPartnerBanner img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: inherit;
}

.footerBottomRow {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footerUtilityLinks {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  justify-self: start;
}

.footerUtilityLink {
  font-size: 0.87rem;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.012em;
}

.footerCopyright {
  margin: 0;
  color: #e5e5e5;
  font-family: var(--font-news), var(--font-body), sans-serif;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.2;
  justify-self: start;
  text-align: left;
  white-space: nowrap;
}

.footerLanguage {
  justify-self: end;
}

.footerLanguageButtons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.92);
}

.footerLanguageButton {
  border: 0;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  background: transparent;
  color: #c8c8c8;
  font-family: var(--font-news), var(--font-body), sans-serif;
  font-size: 0.78rem;
  font-weight: 450;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
    color 0.18s ease;
}

.footerLanguageButton:hover {
  transform: translateY(-1px);
  color: #f1f1f1;
}

.footerLanguageButtonActive {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

@media (max-width: 720px) {
  .footerBar {
    grid-template-columns: minmax(0, 1fr);
  }

  .footerNav {
    justify-content: center;
    gap: 24px;
  }

  .footerBottomRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .footerUtilityLinks {
    justify-content: center;
  }

  .footerLanguage {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .walletConnectFeedbackBar {
    top: 62px;
    width: calc(100% - 24px);
    padding: 0;
  }

  .docsModal {
    padding: 14px;
  }

  .footerLanguageButtons {
    width: 100%;
    justify-content: center;
  }
}

.header.headerExchange {
  position: sticky;
}

.headerExchange .inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.headerExchange .brand {
  justify-self: start;
}

.exchangeTopNav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}

.exchangeMobileNav {
  display: none;
}

.exchangeTopNav a {
  padding: 10px 0;
  color: var(--text-soft);
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.18s ease;
}

.exchangeTopNav a:is(:hover, :focus-visible, [aria-current]) {
  color: var(--text-main);
}

.headerExchange .actions {
  grid-area: 1 / -2 / 2 / -1;
  justify-self: end;
}

.headerExchange + .shell {
  min-height: calc(100dvh - var(--app-header-height));
  padding-top: 0;
}

.headerExchange + .shell:has(+ .exchangeSupport) {
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

.headerExchange + .shell:has(.exchangeHome) {
  background:
    radial-gradient(ellipse 46rem 23rem at 50% 27rem, rgba(255, 255, 255, 0.34), transparent 80%),
    linear-gradient(#080808, #171717 5rem, #292929 9rem, #616161 14rem, #b2b2b2 22rem, #efefef 32rem, #f8f8f8 43rem);
}

.headerExchange + .shell:has(.exchangeContentPage) {
  background: #f8f8f8;
}

.main.exchangeHome,
.main.exchangeContentPage {
  width: min(1200px, 100%);
}

.exchangeLanding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 3vw, 38px);
  padding-block: 63px 54px;
  scroll-margin-top: calc(var(--app-header-height) + 18px);
}

.exchangeIntro {
  text-align: center;
}

.exchangeIntro h1 {
  font-size: clamp(2.35rem, 4.2vw, 3.3rem);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -.054em;
  text-wrap: balance;
}

.exchangeSbpLabel {
  white-space: nowrap;
}

.exchangeSbpMark {
  display: inline-block;
  width: .78em;
  height: .78em;
  margin-inline-start: .08em;
  padding: .11em;
  border-radius: .22em;
  background: #f0f0f0;
  object-fit: contain;
  vertical-align: -.07em;
}

.exchangeHighlights {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 17px;
  color: #e1e1e1;
  font-size: clamp(.83rem, 1.3vw, 1rem);
  line-height: 1.5;
  list-style: none;
}

.exchangeHighlights li + li::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 13px .24em 0;
  border-radius: 50%;
  background: currentColor;
}

.exchangeIntro .walletStatus {
  margin-inline: auto;
  color: #dedede;
}

.exchangeIntro .walletStatus:empty,
.exchangeIntro [hidden] {
  display: none !important;
}

.exchangeCard {
  --text-main: #151515;
  --text-soft: #545454;
  --chat-divider: rgba(0, 0, 0, 0.09);
  --chat-border-strong: rgba(0, 0, 0, 0.17);
  --chat-surface-primary: #f6f6f6;
  width: min(560px, 100%);
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--text-main);
  color-scheme: light;
}

.exchangeCard:has(> [data-exchange-preview][hidden]) {
  --exchange-checkout-padding: clamp(18px, 4vw, 28px);
  padding: var(--exchange-checkout-padding);
  border-color: var(--chat-divider);
  background: #fff;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.12);
}

.exchangeCard :is(.primaryButton, .primaryLink),
.exchangeContentPage .primaryLink {
  background: #121212;
  color: #fff;
}

.exchangeCard .ghostButton {
  border-color: var(--chat-border-strong);
  background: var(--chat-surface-primary);
  color: var(--text-main);
}

.exchangeCard :is(button, a):focus-visible {
  outline-color: #656565;
}

.exchangeCard [hidden] {
  display: none !important;
}

.exchangeCard h2 {
  font-size: var(--type-title-card-compact-size);
  font-weight: 550;
  margin-bottom: 20px;
}

.exchangeCard fieldset {
  min-width: 0;
  border: 0;
  display: grid;
  gap: 16px;
}

.exchangeCard fieldset:disabled {
  opacity: .6;
}

.exchangeGrid, .exchangeCard .exchangeDirection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.exchangeCard label, .exchangeDirection legend {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #353535;
  font-size: .86rem;
  line-height: 1.35;
}

.exchangeDirection legend {
  margin-bottom: 8px;
}

.exchangeDirection label {
  position: relative;
}

.exchangeDirection input {
  position: absolute;
  opacity: 0;
}

.exchangeDirection span, .exchangeCard input:not([type="radio"]), .exchangeCard select {
  min-height: 44px;
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--chat-border-strong);
  border-radius: 12px;
  background: var(--chat-surface-primary);
  color: var(--text-main);
  font: inherit;
  font-size: 1rem;
}

.exchangeDirection span {
  text-align: center;
  cursor: pointer;
}

.exchangeDirection input:checked + span {
  border-color: #151515;
  background: #151515;
  color: #fff;
}

.exchangeDirection input:focus-visible + span,
.exchangeCard :is(input, select):focus-visible {
  outline: 2px solid #656565;
  outline-offset: 2px;
}

.exchangeHint, .exchangeStatus {
  color: var(--text-soft);
  font-size: .88rem;
  line-height: 1.5;
}

.exchangeStatus:not(:empty) {
  margin-top: 16px;
}

.exchangeStatus[data-error="true"] {
  color: #9a2929;
}

.exchangeFieldError {
  color: #9a2929;
  font-size: .8rem;
  font-weight: 400;
  line-height: 1.5;
}

.exchangeCard :is(input, select)[aria-invalid="true"] {
  border-color: #9a2929;
}

.exchangeCard :is(button, .primaryLink) {
  min-height: 44px;
  white-space: normal;
  line-height: 1.25;
}

.exchangeCard iframe {
  width: 100%;
  height: min(640px, 72dvh);
  min-height: 330px;
  margin: 16px 0 12px;
  border: 1px solid var(--chat-divider);
  border-radius: 12px;
  background: #fff;
}

.exchangeCard [data-exchange-offer] {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--text-main);
}

.exchangeDetails {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.3fr);
  gap: 12px 16px;
  margin-bottom: 16px;
  font-size: .91rem;
}

.exchangeDetails dt { color: var(--text-soft); }
.exchangeDetails dd { overflow-wrap: anywhere; }

.exchangeActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.exchangeQr {
  display: block;
  width: min(216px, 100%);
  height: auto;
  border-radius: 10px;
}

.exchangeScreenReader,
.exchangePreviewRate,
.exchangePreviewRateDirection {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.exchangeCurrencySymbols {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

.exchangeCurrencyIcon {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
}

.exchangePreviewRates {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-bottom: 10px;
}

.exchangePreviewRateChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exchangePreviewRateChip {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--text-main);
}

.exchangePreviewRateChip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 0 10px;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}

.exchangePreviewRateChip strong {
  min-width: 0;
  font-weight: 640;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.exchangePreviewRateIcons {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.exchangePreviewRateIcons .exchangeCurrencyIcon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.exchangePreviewRateIcons .exchangeCurrencyIcon + .exchangeCurrencyIcon {
  margin-inline-start: -5px;
  box-shadow: 0 0 0 1px #fff;
}

.exchangeCard .exchangePreviewFields {
  gap: 0;
}

.exchangePreviewLeg {
  display: grid;
  grid-template: 'summary asset' 'amount asset' / minmax(0, 1fr) minmax(7rem, 38%);
  align-content: center;
  column-gap: 12px;
  min-width: 0;
  min-height: 124px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
}

.exchangePreviewLegTop {
  display: grid;
  grid-area: summary;
  gap: 3px;
}

.exchangePreviewLegTop label {
  color: var(--text-main);
  font-size: .88rem;
  font-weight: 600;
}

.exchangePreviewLegTop span {
  color: var(--text-soft);
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.exchangePreviewLegInput {
  display: contents;
}

.exchangePreviewLegInput > div {
  grid-area: asset;
  align-self: center;
  justify-self: end;
  width: min(100%, 11rem);
  min-width: 0;
}

.exchangePreviewLeg .exchangePreviewLegInput input:not([type="radio"]) {
  grid-area: amount;
  padding: 4px 0;
  border-color: transparent;
  background: transparent;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}

.exchangePreviewLeg input::placeholder {
  color: #717171;
}

.exchangePreviewCrypto {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding-inline: 8px 4px;
  border: 1px solid var(--chat-divider);
  border-radius: 12px;
  background: var(--chat-surface-primary);
}

.exchangePreviewCrypto::after {
  position: absolute;
  right: 12px;
  top: calc(50% - 5px);
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: '';
  transform: rotate(45deg);
  pointer-events: none;
}

.exchangePreviewCrypto select {
  min-height: 42px;
  padding: 0 20px 0 0;
  border-color: transparent;
  background: transparent;
  font-size: .85rem;
  font-weight: 560;
  appearance: none;
}

.exchangePreviewRubles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  min-height: 42px;
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid var(--chat-divider);
  border-radius: 12px;
  background: var(--chat-surface-primary);
  font-weight: 550;
}

.exchangePreviewRubles small {
  color: var(--text-soft);
  font-size: .7rem;
}

.exchangePreviewSbpLabel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.exchangePreviewSbpMark {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.exchangeCard .exchangePreviewSwap {
  z-index: 1;
  display: grid;
  width: 40px;
  min-height: 40px;
  margin-block: -18px;
  justify-self: center;
  place-items: center;
  border: 3px solid #e9e9e9;
  border-radius: 50%;
  background: #fff;
  color: var(--text-main);
}

.exchangePreviewSwap svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.exchangeCard .exchangePreviewCta {
  min-height: 56px;
  margin-top: 16px;
  border-radius: 16px;
}

.exchangePreviewNote {
  margin-top: 12px;
  font-size: .81rem;
  line-height: 1.55;
  text-align: center;
}

.exchangeWalletOutput {
  min-height: 44px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  border: 1px solid var(--chat-border-strong);
  border-radius: 12px;
  background: var(--chat-surface-primary);
  color: var(--text-main);
  font-size: 1rem;
}

.exchangeCard [data-preview-reload] {
  margin-top: 12px;
}

.exchangePoweredBy {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-top: 20px;
  color: #353535;
  font-size: clamp(.94rem, 1.5vw, 1.14rem);
  line-height: 1.3;
  text-decoration: none;
}

.exchangePoweredBy strong {
  color: #111;
  font-weight: 650;
}

.exchangePoweredBy:hover strong {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.exchangeInfoSection {
  padding-block: clamp(42px, 6vw, 76px);
  border-top: 1px solid #e1e1e1;
  color: #151515;
  scroll-margin-top: calc(var(--app-header-height) + 18px);
}

.exchangeSectionTitle {
  margin-bottom: clamp(22px, 4vw, 36px);
  font-size: clamp(1.95rem, 4vw, 3rem);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.exchangeSecurityGrid,
.exchangeStepsGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.exchangeSecurityCard,
.exchangeStep {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid #e3e3e3;
  border-radius: 18px;
  background: #fff;
}

.exchangeSecurityCard h3,
.exchangeStep h3 {
  margin: 14px 0 8px;
  font-size: clamp(1rem, 1.55vw, 1.15rem);
  font-weight: 610;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.exchangeSecurityCard p,
.exchangeStep p,
.exchangeFaqList p,
.exchangeMediaNote {
  color: #565656;
  font-size: .94rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.exchangeInfoIcon,
.exchangeStepNumber {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #f1f1f1;
  color: #1b1b1b;
}

.exchangeInfoIcon {
  padding: 9px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.exchangeStepNumber {
  border-radius: 50%;
  background: #141414;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.exchangeContentPage .exchangeInfoSection {
  border-top: 0;
}

.exchangeContentPage .walletStatus {
  color: #565656;
}

.exchangeFaqList {
  display: grid;
  max-width: 760px;
  gap: 10px;
}

.exchangeFaqList details {
  padding: 16px 20px;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  background: #fff;
}

.exchangeFaqList summary {
  cursor: pointer;
  font-weight: 560;
  line-height: 1.45;
}

.exchangeFaqList p {
  margin-top: 10px;
}

.exchangeMediaNote {
  max-width: 42rem;
}

.exchangeSupport {
  position: fixed;
  right: calc(clamp(14px, 2.4vw, 32px) + env(safe-area-inset-right));
  bottom: calc(clamp(14px, 2.4vw, 28px) + env(safe-area-inset-bottom));
  z-index: 25;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #363636;
  border-radius: 50%;
  background: #131313;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: background-color .18s ease;
}

.exchangeSupport:hover {
  background: #343434;
}

.exchangeSupport svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

:is(.exchangeHome, .exchangeContentPage) + .footerBar {
  width: min(1200px, 100%);
  border-top-color: #e1e1e1;
}

:is(.exchangeHome, .exchangeContentPage) + .footerBar :is(.footerTextLink, .footerCopyright, .footerLanguageButton) {
  color: #343434;
}

:is(.exchangeHome, .exchangeContentPage) + .footerBar .footerLanguageButtons {
  border-color: #dedede;
  background: #eee;
}

:is(.exchangeHome, .exchangeContentPage) + .footerBar .footerLanguageButtonActive {
  background: #fff;
  color: #111;
}

@media (max-width: 960px) {
  .exchangeSecurityGrid,
  .exchangeStepsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .headerExchange .inner {
    display: flex;
  }

  .headerExchange .exchangeTopNav {
    display: none;
  }

  .exchangeMobileNav {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 0 clamp(12px, 3.5vw, 24px);
    min-height: 42px;
  }

  .exchangeMobileNav a {
    font-size: .8rem;
  }

  .shell:has(.exchangeContentPage) .exchangeMobileNav a {
    color: #545454;
  }

  .shell:has(.exchangeContentPage) .exchangeMobileNav a:is(:hover, :focus-visible, [aria-current]) {
    color: #111;
  }
}

@media (max-width: 640px) {
  .headerExchange {
    --type-button-size: 0.9rem;
  }
}

@media (max-width: 760px) {
  .exchangeLanding {
    gap: 28px;
    padding-block: 38px 44px;
  }

  .exchangeHighlights {
    gap: 4px 14px;
  }

  .exchangeHighlights li + li::before {
    display: none;
  }

  .exchangePoweredBy {
    margin-top: 8px;
  }

  .exchangeSupport {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 520px) {
  html:has([data-exchange-preview][hidden]) {
    scroll-padding-top: calc(var(--app-header-height) + 16px);
    scroll-padding-bottom: 88px;
  }

  .exchangeGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .exchangeDetails {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .exchangeDetails dd + dt {
    margin-top: 12px;
  }

  .exchangeActions > :is(button, .primaryLink) {
    width: 100%;
  }

  .exchangeQr {
    margin-inline: auto;
  }

  .exchangeCard [data-exchange-verification] [data-exchange-frame] {
    margin-inline: calc(0px - var(--exchange-checkout-padding));
  }

  .exchangeCard [data-exchange-verification] iframe {
    border-inline: 0;
    border-radius: 0;
  }

  .exchangeIntro h1 {
    font-size: clamp(1.9rem, 8.2vw, 2.35rem);
  }

  .exchangeHighlights {
    gap: 4px 10px;
    margin-top: 13px;
    font-size: .78rem;
  }

  .exchangeCard {
    padding: 10px;
  }

  .exchangePreviewLeg {
    grid-template: 'label asset' 'limits limits' 'amount amount' / minmax(0, 1fr) minmax(9rem, 50%);
    min-height: 110px;
    row-gap: 2px;
    column-gap: 8px;
    padding: 9px 12px 8px;
  }

  .exchangePreviewLegTop {
    display: contents;
  }

  .exchangePreviewLegTop label {
    grid-area: label;
    align-self: center;
  }

  .exchangePreviewLegTop span {
    grid-area: limits;
  }

  .exchangePreviewCrypto {
    gap: 4px;
    padding-inline: 6px 3px;
  }

  .exchangePreviewCrypto .exchangeCurrencyIcon {
    width: 17px;
    height: 17px;
  }

  .exchangePreviewCrypto::after {
    top: calc(50% - 4px);
    right: 8px;
    width: 5px;
    height: 5px;
  }

  .exchangePreviewCrypto select {
    padding-right: 14px;
    font-size: .8rem;
  }

  .exchangePreviewRates {
    gap: 4px;
  }

  .exchangePreviewRateChips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exchangePreviewRateChip {
    gap: 5px;
    padding-inline: 6px;
    font-size: .69rem;
  }

  .exchangePreviewRateIcons .exchangeCurrencyIcon {
    width: 16px;
    height: 16px;
  }

  .exchangeSecurityGrid,
  .exchangeStepsGrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .exchangeTopNav a,
  .exchangeSupport {
    transition: none;
  }
}

.accountDialog { position: fixed; inset: 0; margin: auto; height: max-content; color: #f4f4f5; background: #151518; border: 1px solid #38383d; border-radius: 20px; padding: 24px; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; box-sizing: border-box; font: inherit; box-shadow: 0 20px 90px #0009; }
.accountDialog::backdrop { background: #0009; backdrop-filter: blur(5px); }
.accountDialog [hidden] { display: none !important; }
.accountDialogTop { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.accountDialog h2 { margin: 0; font-size: 24px; }
.accountDialog p { margin: 12px 0; line-height: 1.55; color: #c6c6cc; overflow-wrap: anywhere; }
.accountDialog form { display: grid; gap: 14px; margin: 18px 0; }
.accountDialog label { display: grid; gap: 8px; }
.accountDialog input { width: 100%; box-sizing: border-box; border: 1px solid #55555e; border-radius: 10px; padding: 12px; background: #0c0c0e; color: white; font: inherit; font-size: 16px; }
.accountDialog button, .accountDialog a { display: block; border: 1px solid #4a4a53; border-radius: 10px; background: #27272e; color: white; padding: 12px 16px; font: inherit; cursor: pointer; text-align: center; text-decoration: none; }
.accountDialog button[type=submit] { background: #f0e4c6; color: #171512; border-color: #f0e4c6; font-weight: 600; }
.accountDialog button:disabled { opacity: .5; cursor: wait; }
.accountDialog button:focus-visible, .accountDialog input:focus-visible, .accountDialog a:focus-visible { outline: 2px solid #f0cc72; outline-offset: 3px; }
.accountDialog [data-ac=sso], .accountDialog [data-ac=logout] { width: 100%; margin-top: 14px; }
.accountDialog [data-ac=code] { letter-spacing: .3em; font-size: 24px; text-align: center; }
.accountDialog .accountEmail { color: white; font-weight: 600; }
.accountDialog [data-ac=status]:empty { display: none; }

.accountDialog.isAccount { inset: 76px 24px auto auto; margin: 0; }
@media (max-width: 640px) { .accountDialog.isAccount { inset: auto 16px 16px; width: auto; } }

.accountDialog [data-ac=edit-wallet] { margin-bottom: 14px; }
.accountDialog [data-ac=wallet-current] { font-family: monospace; font-size: 14px; }
