.tf-app-toast {
  position: fixed;
  z-index: 5000;
  right: 20px;
  bottom: 24px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #161616;
  color: #f3f3f3;
  font: 500 14px/20px Kraken-Product, "IBM Plex Sans", Helvetica, Arial, sans-serif;
  box-shadow: 0 16px 48px rgba(16, 24, 40, 0.32);
}

.tf-app-toast[hidden],
.tf-app-modal[hidden],
.tf-app-search[hidden] {
  display: none !important;
}

.tf-app-toast.is-error {
  background: #7a1f32;
}

/* Live values on the catalog asset pages must not inherit the large exported
   heading style when a provider has no current quote for a token. */
.tf-sale-main .tf-sale-price [data-price] {
  display: block;
}

.tf-sale-main .tf-live-price-unavailable {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.tf-sale-main .tf-live-price-status {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.tf-sale-main .tf-live-price-status.is-negative {
  color: #c3254d;
}

.tf-app-modal {
  position: fixed;
  inset: 0;
  z-index: 4500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 24, 40, 0.4);
}

.tf-app-card {
  width: min(440px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  color: #111;
  font-family: Kraken-Product, "IBM Plex Sans", Helvetica, Arial, sans-serif;
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.28);
}

.tf-app-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
}

.tf-app-card p,
.tf-app-hint {
  margin: 0 0 16px;
  color: #6d6d6d;
  font-size: 14px;
  line-height: 20px;
}

.tf-app-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.tf-app-field label {
  font-size: 13px;
  font-weight: 600;
}

.tf-app-field input,
.tf-app-field select,
.tf-app-field textarea {
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 10px;
  font: inherit;
}

.tf-app-field textarea {
  height: auto;
  min-height: 136px;
  resize: vertical;
  line-height: 1.5;
}

.tf-app-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.tf-app-btn,
.tf-app-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  font: 600 14px/20px inherit;
  cursor: pointer;
}

.tf-app-btn-primary,
.tf-app-primary {
  background: #1558f0;
  color: #fff;
}

[data-manual-deposit] .tf-app-field label { display: grid; gap: 6px; }
[data-manual-deposit] input:not([type="checkbox"]),
[data-manual-deposit] select { width: 100%; min-width: 0; box-sizing: border-box; }
[data-manual-deposit] [data-ach-check]:not([hidden]) { display: block; margin: 12px 0; font-size: 14px; }
[data-manual-deposit] [data-deposit-status] { margin-top: 12px; overflow-wrap: anywhere; }
[data-manual-deposit] button:disabled { opacity: .6; cursor: wait; }

.tf-app-card.tf-deposit-card { width: min(600px, 100%); padding: 28px; }
.tf-deposit-intro { max-width: 44ch; }
.tf-deposit-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 20px 0; }
.tf-deposit-steps li { flex: 1; padding: 8px 10px; font-size: 12px; border-radius: 8px; background: #f4f4f6; color: #696974; }
.tf-deposit-steps .is-active { background: #eaf0ff; color: #1558f0; }
.tf-payment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 22px; }
.tf-payment-card { display: flex; gap: 10px; align-items: center; text-align: left; padding: 14px 12px; border: 1px solid #e2e3e8; border-radius: 12px; background: #fff; color: #17171c; cursor: pointer; min-width: 0; }
.tf-payment-card[aria-pressed="true"] { border-color: #1558f0; box-shadow: 0 0 0 1px #1558f0; background: #f8faff; }
.tf-payment-card strong { font-size: 14px; display: block; }
.tf-payment-card small { font-size: 11px; color: #696974; display: block; margin-top: 4px; }
.tf-payment-mark { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: #eef0f4; color: #32343a; font-weight: 700; font-size: 12px; }
.tf-payment-mark[data-provider="paypal"] { background: #e8f2ff; color: #003087; font-size: 22px; }
.tf-payment-mark[data-provider="venmo"] { background: #e5f4ff; color: #008cff; font-size: 22px; }
.tf-payment-mark[data-provider="cashapp"] { background: #e6faed; color: #087d37; font-size: 22px; }
.tf-payment-mark[data-provider="zelle"] { background: #f1eaff; color: #6d1ed4; font-size: 22px; }
.tf-payment-check { margin-left: auto; color: #1558f0; visibility: hidden; }
.tf-payment-card[aria-pressed="true"] .tf-payment-check { visibility: visible; }
.tf-payment-recipient { border: 1px solid #e4e5ea; border-radius: 14px; padding: 22px; margin-bottom: 24px; overflow-wrap: anywhere; }
.tf-payment-eyebrow { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: #696974; margin-bottom: 8px; }
.tf-payment-recipient h3 { margin: 0 0 6px; font-size: 18px; }
.tf-payment-qr { display: grid; justify-items: center; gap: 8px; margin: 20px auto; }
.tf-payment-qr img { max-width: 100%; height: auto; background: #fff; border-radius: 8px; }
.tf-payment-qr small { color: #696974; }
.tf-payment-recipient [hidden] { display: none !important; }
.tf-payment-recipient [data-payment-link] { display: flex; margin-bottom: 18px; text-decoration: none; }
.tf-payment-recipient [data-payment-instructions] { margin-bottom: 0; }
.tf-deposit-confirm-title { font-size: 16px; margin: 0 0 18px; }
.tf-payment-optional { font-weight: 400; color: #696974; }
.tf-deposit-submit { width: 100%; margin: 12px 0; }
.tf-app-card .tf-deposit-footnote { font-size: 12px; text-align: center; }
.tf-deposit-history { margin-top: 20px; border-top: 1px solid #e4e5ea; padding-top: 16px; font-size: 13px; }
.tf-deposit-history summary { cursor: pointer; margin-bottom: 12px; }
.tf-deposit-success { text-align: center; padding: 20px 0; }
.tf-deposit-success-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #e8f7ee; color: #08844f; font-size: 26px; margin: 0 auto 22px; }
.tf-deposit-success h3 { font-size: 24px; line-height: 1.2; margin: 12px 0; }
.tf-payment-card:focus-visible { outline: 3px solid #1558f0; outline-offset: 3px; }
@media(max-width:480px) { .tf-app-card.tf-deposit-card { padding: 20px; } .tf-payment-grid { grid-template-columns: 1fr; } }

.tf-app-btn-ghost {
  background: rgba(21, 88, 240, 0.08);
  color: #1558f0;
}

.tf-app-list {
  display: grid;
  gap: 4px;
}

.tf-app-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tf-app-list button:hover,
.tf-app-list button.is-on {
  background: rgba(21, 88, 240, 0.08);
}

.tf-app-list img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.tf-asset-icon {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  margin-right: 10px;
}

.tf-asset-icon-fallback,
.tf-asset-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.tf-asset-icon-fallback {
  display: grid;
  place-items: center;
  background: #dbe6ff;
  color: #1558f0;
  font-size: 13px;
  font-weight: 600;
}

.tf-asset-icon img {
  object-fit: cover;
  background: #fff;
}

[data-shell-area="header"] {
  /* Keep the pinned navigation controls, but do not place an opaque veil over
     dashboard content as it scrolls beneath the header. */
  z-index: 40;
  background: transparent !important;
}

[data-shell-area="header"] header,
[data-shell-area="header"] > header > .border-b-ds-grey-opacity-12 {
  background: transparent !important;
}

/* The imported app renders this fixed element as a solid page-colour mask. */
[data-shell-area="header"] [data-testid="header-blur"] {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  mask-image: none !important;
}

[data-shell-area="main"] {
  position: relative;
  z-index: 0;
  min-width: 0;
}

.tf-explore-table {
  max-width: 100%;
}

@media (max-width: 1023px) {
  [data-shell-layout] {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto 1fr auto !important;
    grid-template-areas:
      "disclaimer"
      "header"
      "main"
      "footer" !important;
    padding: 0 16px 88px !important;
    column-gap: 0 !important;
  }

  [data-shell-area="sidebar"] {
    grid-area: unset !important;
    position: fixed !important;
    inset: auto 0 0 0;
    height: auto !important;
    z-index: 40;
    width: 100%;
  }

  [data-shell-area="instant"] {
    display: none !important;
  }

  [data-shell-area="header"] {
    position: sticky;
    top: 0;
  }

  [data-shell-area="header"] .flex.h-16 {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
  }

  [data-shell-area="header"] .hidden.lg\:block.absolute {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100%;
    margin: 8px 0 12px;
    z-index: 2;
  }

  [data-shell-area="main"],
  .Content-module_container__AS220,
  .Content-module_content__jI9XG {
    max-width: 100%;
    overflow-x: hidden;
  }

  .tf-explore-table,
  [data-testid="explore-all-assets-table"],
  [data-testid="explore-assets-table"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tf-explore-table [data-columnid="marketCap"],
  .tf-explore-table [data-columnid="volume"],
  .tf-explore-table [data-col="mcap"],
  .tf-explore-table [data-col="volume"],
  [data-testid="explore-all-assets-table"] [data-col="mcap"],
  [data-testid="explore-all-assets-table"] [data-col="volume"],
  [data-testid="explore-assets-table"] [data-col="mcap"],
  [data-testid="explore-assets-table"] [data-col="volume"] {
    display: none !important;
  }

  .tf-explore-row,
  .tf-explore-table [role="row"] {
    min-width: 0 !important;
  }

  .ExploreSection-module_carouselContainer__IKsS8,
  [data-carousel-viewport] {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .tf-explore-table [data-columnid="rank"],
  .tf-explore-table [data-col="rank"],
  [data-testid="explore-all-assets-table"] [data-col="rank"],
  [data-testid="explore-assets-table"] [data-col="rank"] {
    display: none !important;
  }
}

.tf-app-search {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 4200;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(16, 24, 40, 0.2);
}

.tf-app-quote {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 14px;
}

.tf-app-quote div {
  display: flex;
  justify-content: space-between;
}

.tf-app-quote dt {
  color: #6d6d6d;
}

body.tf-balances-hidden [data-testid="portfolio-value"],
body.tf-balances-hidden .tf-app-balance {
  filter: blur(8px);
  user-select: none;
}

[data-testid="sidebar-revamp"].tf-collapsed {
  width: 88px;
}

[data-testid="sidebar-revamp"].tf-collapsed .text-ds-label2,
[data-testid="sidebar-revamp"].tf-collapsed .text-ds-label3 {
  display: none !important;
}

.tf-app-star.is-on svg path {
  fill: #1558f0;
  stroke: #1558f0;
}

.tf-app-pay-on {
  opacity: 1 !important;
  pointer-events: auto !important;
}

html.tf-app-lock {
  overflow: hidden;
}
