* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overscroll-behavior-y: none;
  
  background: #f6f7f9;
  color: #17191d;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.wallet-app {
  width: 100%;
  min-height: 100vh;
  background: #f6f7f9;
}
.wallet-pull-refresh {
  position: fixed;
  z-index: 140;

  top:
    env(safe-area-inset-top);

  left: 50%;

  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  opacity: 0;

  transform:
    translate(
      -50%,
      -48px
    );

  border-radius: 50%;

  background: #ffffff;

  box-shadow:
    0
    3px
    12px
    rgba(34, 48, 74, .16);

  pointer-events: none;

  transition:
    opacity .18s ease,
    transform .18s ease;
}

.wallet-pull-refresh svg {
  width: 22px;
  height: 22px;

  fill: none;

  stroke: #2786f5;
  stroke-width: 2;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.wallet-pull-refresh.is-pulling {
  opacity: 1;

  transition: none;
}

.wallet-pull-refresh.is-refreshing {
  opacity: 1;

  transform:
    translate(
      -50%,
      14px
    );
}

.wallet-pull-refresh.is-refreshing svg {
  animation:
    wallet-pull-refresh-spin
    .72s
    linear
    infinite;
}

@keyframes wallet-pull-refresh-spin {

  to {
    transform:
      rotate(360deg);
  }

}
.is-hidden {
  display: none !important;
}

/* Welcome */
.wallet-welcome {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;

  padding:
    max(18px, env(safe-area-inset-top))
    18px
    calc(72px + env(safe-area-inset-bottom));

  display: flex;
  flex-direction: column;

  background: linear-gradient(
    180deg,
    #e8f3ff 0%,
    #f3f9ff 35%,
    #ffffff 68%
  );

  overflow-x: hidden;
}

.tp-welcome-visual {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.tp-welcome-slide {
  display: none;
  flex: 1;
  min-height: 0;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: clamp(8px, 2.8vh, 26px);
}

.tp-welcome-slide.is-active {
  display: flex;
}

.tp-welcome-art {
  position: relative;
  width: min(78vw, 315px);
  height: clamp(165px, 29vh, 270px);
  margin: 0 auto 32px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 1;
  min-height: 0;
}

.tp-welcome-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tpw-wallet {
  position: absolute;
  width: 70%;
  height: 52%;
  left: 15%;
  top: 30%;
  border-radius: 23px;
  transform: rotate(-5deg);
  background: linear-gradient(135deg, #176bf0, #67c5ff);
  box-shadow: 0 22px 35px rgba(37, 116, 235, .2);
}

.tpw-wallet span {
  position: absolute;
  bottom: 18px;
  left: 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(255,255,255,.8);
}

.tpw-coin {
  position: absolute;
  display: grid;
  place-items: center;
  border: 4px solid rgba(255,255,255,.5);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(20,40,80,.14);
  color: #fff;
  font-weight: 800;
}

.tpw-coin--btc {
  width: 84px;
  height: 84px;
  top: 2%;
  left: 35%;
  background: linear-gradient(135deg, #ffcb58, #f5a414);
  font-size: 48px;
}

.tpw-coin--eth {
  width: 58px;
  height: 58px;
  top: 18%;
  right: 0;
  background: linear-gradient(135deg, #818a9a, #454e60);
  font-size: 33px;
}

.tpw-coin--trx {
  width: 55px;
  height: 55px;
  top: 47%;
  left: 0;
  background: linear-gradient(135deg, #ff6278, #ca1641);
  font-size: 14px;
}

.tpw-coin--bnb {
  width: 62px;
  height: 62px;
  bottom: 0;
  left: 15%;
  background: linear-gradient(135deg, #ffcf51, #292b34);
  font-size: 33px;
}

.tpw-security-card {
  position: absolute;
  inset: 12% 13%;
  border-radius: 28px;
  background: linear-gradient(145deg, #b0d7ff, #357eff);
  transform: rotate(-8deg);
  box-shadow: 0 25px 35px rgba(40,105,220,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.tpw-security-lock {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: #eaf6ff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 15px rgba(0,0,0,.1);
}

.tpw-security-lock span {
  font-size: 46px;
  color: #287fff;
}

.tpw-security-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
}

.tpw-security-lines span {
  width: 110px;
  height: 9px;
  border-radius: 20px;
  background: rgba(255,255,255,.7);
}

.tpw-security-lines span:nth-child(2) {
  width: 85px;
}

.tpw-security-lines span:nth-child(3) {
  width: 60px;
}

.tpw-security-check {
  position: absolute;
  right: 4%;
  bottom: 4%;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #20c997;
  color: white;
  font-size: 36px;
  box-shadow: 0 12px 20px rgba(25,140,110,.2);
}

.tpw-swap-card {
  position: absolute;
  inset: 7% 10%;
  border-radius: 30px;
  background: linear-gradient(145deg, #1672ff, #8bc4ff);
  transform: rotate(-7deg);
  box-shadow: 0 24px 40px rgba(33,112,226,.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  gap: 8px;
}

.tpw-swap-row {
  height: 70px;
  border-radius: 18px;
  background: #f3f8ff;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 18px;
  box-shadow: 0 6px 12px rgba(0,0,0,.06);
}

.tpw-swap-row strong {
  font-size: 20px;
  color: #29354a;
}

.tpw-swap-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #c7d9f2;
  display: grid;
  place-items: center;
  font-size: 27px;
  color: #3d526f;
}

.tpw-swap-row:last-child .tpw-swap-icon {
  background: #25c59a;
  color: white;
}

.tpw-swap-arrows {
  text-align: center;
  color: white;
  font-size: 24px;
  line-height: 1;
}

.tp-welcome-art--ecosystem .tp-ecosystem-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.85);
}

@media (max-height: 700px) {
  .tp-welcome-art {
    height: clamp(155px, 28vh, 220px);
    margin-bottom: 10px;
  }

  .tp-welcome-art--ecosystem .tp-ecosystem-orbit {
    transform: translate(-50%, -50%) scale(.65);
  }
}

.tp-ecosystem-orbit {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
}

.tp-orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform:
    translate(-50%, -50%)
    rotate(-14deg);
}

.tp-orbit-ring.ring-one {
  width: 182px;
  height: 112px;
  border: 23px solid #34a7ed;
}

.tp-orbit-ring.ring-two {
  width: 136px;
  height: 78px;
  border: 7px solid #c9edff;
}

.tp-orbit-core,
.tp-orbit-app {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 9px 23px
    rgba(32, 105, 176, .14);
}

.tp-orbit-core {
  left: 50%;
  top: 50%;
  width: 66px;
  height: 66px;
  transform:
    translate(-50%, -50%)
    rotate(7deg);
  border-radius: 16px;
  background: #287cf6;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
}

.tp-orbit-app {
  width: 53px;
  height: 53px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.tp-orbit-app.app-one {
  left: 34px;
  top: 80px;
  background: #16a7d6;
}

.tp-orbit-app.app-two {
  right: 25px;
  top: 68px;
  background: #6a9bea;
}

.tp-orbit-app.app-three {
  left: 32px;
  bottom: 65px;
  background: #ee4fa9;
}

.tp-orbit-app.app-four {
  left: 108px;
  top: 15px;
  background:
    linear-gradient(
      135deg,
      #18b9ae,
      #8549db
    );
}

.tp-orbit-app.app-five {
  right: 45px;
  bottom: 56px;
  background: #16b8a7;
}

.tp-welcome-copy {
  width: 100%;
  margin-top: 0;
  text-align: center;
  flex-shrink: 0;
}

.tp-welcome-copy h1 {
  margin: 0;
  color: #424448;
  font-size: 23px;
  line-height: 1.4;
  font-weight: 500;
}

.tp-welcome-copy p {
  margin: 9px 0 0;
  color: #9ca3af;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tp-welcome-dots {
  flex-shrink: 0;
  min-height: 24px;
  margin: 6px 0 clamp(18px, 3.4vh, 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.tp-welcome-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #dfe3ea;
  cursor: pointer;
  transition:
    background .2s,
    transform .2s;
}

.tp-welcome-dots button.is-active {
  background: #2980fe;
  transform: scale(1.15);
}

.tp-welcome-actions {
  display: grid;
  gap: 11px;
  padding: 0 2px 4px;
}

.tp-wallet-entry {
  width: 100%;
  min-height: 80px;
  padding: 14px 18px;

  display: flex;
  align-items: center;
  gap: 14px;

  border: 0;
  border-radius: 16px;
  background: #f3f4f8;

  color: #24272c;
  text-align: left;
  cursor: pointer;
}

.tp-wallet-entry--migration {
  display: none;
}

.tp-wallet-entry--migration .tp-wallet-entry-icon,
.tp-wallet-entry--migration .tp-wallet-entry-copy small {
  display: none;
}

.tp-wallet-entry--migration .tp-wallet-entry-copy strong {
  color: #78889d;
  font-size: 12px;
  font-weight: 500;
}

.tp-wallet-entry--migration .tp-wallet-entry-copy strong::after {
  content: " ›";
}

.tp-wallet-entry-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
}

.tp-wallet-entry-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-wallet-entry-icon.has-wallet {
  color: #1c8dea;
}

.tp-wallet-entry-icon.no-wallet {
  color: #ff9b18;
}

.tp-wallet-entry-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tp-wallet-entry-copy strong {
  color: #383b40;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
}

.tp-wallet-entry-copy small {
  color: #a0a5ac;
  font-size: 11px;
  line-height: 1.4;
}

.tp-welcome-nav {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  height:
    calc(
      60px +
      env(safe-area-inset-bottom)
    );
  padding-bottom:
    env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns:
    repeat(5, 1fr);
  border-top: 1px solid #f1f2f4;
  background: rgba(255,255,255,.98);
}

.tp-welcome-nav button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #a2a6ac;
}

.tp-welcome-nav button.is-active {
  color: #2980FE;
}

.tp-welcome-nav svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-welcome-nav span {
  font-size: 10px;
}

.tp-welcome-nav i {
  position: absolute;
  top: 8px;
  right: calc(50% - 18px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f45b52;
}

.tp-migration-page {
  background: #f5f6fa;
}

.tp-migration-page .tp-flow-header {
  background: #f5f6fa;
}

.tp-migration-body,
.tp-migration-form-body,
.tp-migration-qr-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 16px 28px;
}

.tp-migration-hero {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 18px 12px 26px;
  text-align: center;
}

.tp-migration-hero-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 15px;
  border-radius: 22px;
  background: #e9f3ff;
}

.tp-migration-hero-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: #338af3;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-migration-hero > strong {
  color: #272a30;
  font-size: 20px;
  font-weight: 600;
}

.tp-migration-hero > p {
  max-width: 290px;
  margin: 9px 0 0;
  color: #9298a3;
  font-size: 14px;
  line-height: 1.55;
}

.tp-migration-card {
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
}

.tp-migration-option {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 14px 16px;
  border: 0;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.tp-migration-option::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 70px;
  height: 1px;
  background: #eceef2;
  transform: scaleY(.5);
  transform-origin: bottom;
}

.tp-migration-option:last-child::after {
  display: none;
}

.tp-migration-option:active {
  background: #f7f8fa;
}

.tp-migration-option-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin-right: 13px;
  border-radius: 12px;
  background: #edf5ff;
}

.tp-migration-option-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #338af3;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-migration-option-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.tp-migration-option-copy strong {
  color: #292c31;
  font-size: 16px;
  font-weight: 500;
}

.tp-migration-option-copy small {
  color: #969ba5;
  font-size: 13px;
  line-height: 1.35;
}

.tp-migration-option > b {
  margin-left: 12px;
  color: #b4b8bf;
  font-size: 24px;
  font-weight: 300;
}

.tp-migration-security-note {
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: 13px;
  background: #eef5ff;
}

.tp-migration-security-note strong {
  color: #4389dc;
  font-size: 14px;
  font-weight: 500;
}

.tp-migration-security-note p {
  margin: 7px 0 0;
  color: #788596;
  font-size: 13px;
  line-height: 1.55;
}

.tp-migration-form-title {
  padding: 14px 2px 24px;
}

.tp-migration-form-title strong {
  color: #292c31;
  font-size: 21px;
  font-weight: 600;
}

.tp-migration-form-title p {
  margin: 8px 0 0;
  color: #969ba5;
  font-size: 14px;
  line-height: 1.55;
}

.tp-migration-field {
  display: block;
  margin-bottom: 17px;
}

.tp-migration-field > span {
  display: block;
  margin: 0 2px 8px;
  color: #5d626b;
  font-size: 14px;
}

.tp-migration-field input {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  outline: 0;
  background: #ffffff;
  color: #25282e;
  font-size: 16px;
}

.tp-migration-field input:focus {
  border-color: #338af3;
}

.tp-migration-primary,
.tp-migration-secondary {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.tp-migration-primary {
  background: #338af3;
  color: #ffffff;
}

.tp-migration-primary:disabled {
  opacity: .58;
  cursor: default;
}

.tp-migration-secondary {
  background: #ffffff;
  color: #338af3;
}

.tp-migration-qr-body {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.tp-migration-qr-title {
  margin-top: 16px;
  color: #292c31;
  font-size: 20px;
  font-weight: 600;
}

.tp-migration-qr-sub {
  margin: 7px 0 22px;
  color: #9298a3;
  font-size: 14px;
}

.tp-migration-qr-card {
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 4px 24px
    rgba(34, 54, 85, .08);
}

.tp-migration-qr {
  width: 220px;
  height: 220px;
}

.tp-migration-qr img,
.tp-migration-qr canvas {
  display: block;
  width: 220px !important;
  height: 220px !important;
}

.tp-migration-warning {
  width: 100%;
  margin-top: 24px;
  padding: 15px 16px;
  border-radius: 13px;
  background: #fff4ec;
}

.tp-migration-warning strong {
  color: #e78342;
  font-size: 14px;
}

.tp-migration-warning p {
  margin: 6px 0 0;
  color: #9a745b;
  font-size: 13px;
  line-height: 1.5;
}

.tp-migration-replace-warning {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 13px;
  background: #fff2f1;
}

.tp-migration-replace-warning > strong {
  color: #e05c56;
  font-size: 15px;
}

.tp-migration-replace-warning > p {
  margin: 6px 0 12px;
  color: #9b6e6a;
  font-size: 13px;
  line-height: 1.5;
}

.tp-migration-replace-warning label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f6463;
  font-size: 13px;
}

.tp-migration-replace-warning input {
  width: 18px;
  height: 18px;
}

.tp-migration-success {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 100%;
  padding: 90px 24px 30px;
  text-align: center;
}

.tp-migration-success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #e9f8f2;
  color: #20b889;
  font-size: 38px;
  font-weight: 400;
}

.tp-migration-success > strong {
  color: #292c31;
  font-size: 22px;
  font-weight: 600;
}

.tp-migration-success > p {
  margin: 10px 0 4px;
  color: #727883;
  font-size: 15px;
  line-height: 1.5;
}

.tp-migration-success > small {
  margin-bottom: 30px;
  color: #969ba5;
  font-size: 13px;
}

.tp-migration-success
.tp-migration-primary {
  max-width: 420px;
  margin-top: 10px;
}

html[data-wallet-theme="dark"]
.tp-migration-page,
html[data-wallet-theme="dark"]
.tp-migration-page
.tp-flow-header {
  background: #111317;
}

html[data-wallet-theme="dark"]
.tp-migration-card,
html[data-wallet-theme="dark"]
.tp-migration-option,
html[data-wallet-theme="dark"]
.tp-migration-field input,
html[data-wallet-theme="dark"]
.tp-migration-qr-card,
html[data-wallet-theme="dark"]
.tp-migration-secondary {
  background: #1b1e23;
}

html[data-wallet-theme="dark"]
.tp-migration-hero > strong,
html[data-wallet-theme="dark"]
.tp-migration-option-copy strong,
html[data-wallet-theme="dark"]
.tp-migration-form-title strong,
html[data-wallet-theme="dark"]
.tp-migration-qr-title,
html[data-wallet-theme="dark"]
.tp-migration-success > strong,
html[data-wallet-theme="dark"]
.tp-migration-field input {
  color: #f1f3f5;
}

html[data-wallet-theme="dark"]
.tp-migration-option::after {
  background: #2b2f35;
}

html[data-wallet-theme="dark"]
.tp-migration-field input {
  border-color: #32363d;
}

/* Main layout */
#mainView {
  min-height: 100dvh;
  padding-bottom: calc(
    74px + env(safe-area-inset-bottom, 0px)
  );
}

.wallet-header {
  height: calc(44px + env(safe-area-inset-top));
  padding:
    env(safe-area-inset-top)
    9px
    0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--tp-dark-bg, #ffffff);
}

.wallet-header-left,
.wallet-header-tools {
  display: flex;
  align-items: center;
}

.wallet-header-left {
  gap: 7px;
}

.wallet-header-tools {
  gap: 1px;
}

.header-menu-btn,
.header-tool-btn {
  width: 40px;
  height: 40px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--tp-dark-text, #25282d);
  cursor: pointer;
}

.header-menu-btn svg,
.header-tool-btn svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wallet-status-dot {
  width: 9px;
  height: 9px;

  min-width: 9px;
  min-height: 9px;

  padding: 0;

  flex:
    0
    0
    9px;

  border: 0;
  border-radius: 50%;

  background:
    #20b88a;

  box-shadow:
    0
    0
    0
    2px
    rgba(32, 184, 138, .10);

  cursor: pointer;

  -webkit-tap-highlight-color:
    transparent;
}

.wallet-main {
  padding-bottom: 15px;
}

.wallet-page {
  min-height: calc(100vh - 120px);
}

/* Assets */
#assetsPage {
  background: #ffffff;
}
.asset-hero {
  position: relative;
  min-height: 84px;
  margin: 0 16px;
  padding: 12px 18px;
  overflow: hidden;
  border-radius: 8px;
  background: #2980FE;
  color: #ffffff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.asset-hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.asset-wallet-identity {
  max-width: 78%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.asset-wallet-name {
  min-width: 0;
  max-width: 100%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: inherit;
}

.asset-wallet-name strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-wallet-copy {
  width: 18px;
  height: 18px;
  padding: 2px;
  flex: 0 0 18px;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.asset-wallet-copy svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.asset-hero-more {
  width: 34px;
  height: 22px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .95);
  cursor: pointer;
}

.asset-hero-more svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
}

.asset-balance-row {
  position: relative;
  z-index: 2;
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.total-balance {
  display: flex;
  align-items: center;
  gap: 4px;
}

.total-balance span {
  color: #ffffff;
  font-size: 19px;
  line-height: 1;
  font-weight: 400;
}

.total-balance strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -.2px;
}

.eye-btn {
  width: 18px;
  height: 18px;
  margin-left: 1px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .9);
  cursor: pointer;
}

.eye-btn svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.asset-chain-mark {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 7px;
  width: 42px;
  height: 42px;
  pointer-events: none;
}

.asset-chain-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: .09;
  filter: grayscale(1) brightness(4);
}

.quick-actions {
  margin: 8px 16px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}


.quick-actions button {
  min-width: 0;
  height: 57px;
  padding: 7px 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 8px;
  background: var(--tp-dark-surface, #f5f6f8);
  color: var(--tp-dark-text, #30343a);
  cursor: pointer;
}

.quick-icon {
  width: 22px;
  height: 22px;
  padding: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-dark-text, #30343a);
}

.quick-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-actions em {
  color: var(--tp-dark-text, #363a40);
  font-style: normal;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.asset-content {
  margin-top: 9px;
  background: var(--tp-dark-bg, #ffffff);
}

.asset-tabs {
  min-height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--tp-dark-bg, #ffffff);
}

.asset-tab-main {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.asset-tab-main button {
  position: relative;
  height: 44px;
  padding: 0 1px;
  border: 0;
  background: transparent;
  color: var(--tp-dark-muted, #969ba3);
  font-size: 17px;
  cursor: pointer;
}

.asset-tab-main button.is-active {
  color: var(--tp-dark-text, #26292e);
  font-weight: 500;
}

.asset-tab-main button.is-active::after {
  content: "";
  position: absolute;
  left: 6px;
  right: auto;
  width: 28px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--tp-dark-text, #24272c);
}

.asset-tab-arrow {
  position: relative;
  top: -1px;
  display: inline-block;
  margin-left: 3px;
  color: var(--tp-dark-text, #34373d);
  font-size: 9px;
  line-height: 1;
}

.asset-add-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tp-dark-muted, #50545a);
  border-radius: 50%;
  background: transparent;
  color: var(--tp-dark-text, #40444a);
  cursor: pointer;
}

.token-list {
  padding-top: 2px;
  background: var(--tp-dark-bg, #ffffff);
}

.token-row {
  width: 100%;
  min-height: 68px;
  padding: 6px 16px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  background: var(--tp-dark-bg, #ffffff);
  text-align: left;
  cursor: pointer;
}

.token-row:active {
  background: var(--tp-dark-surface-2, #fafafa);
}

.token-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
}


.token-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.token-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}


.token-main strong {
  color: var(--tp-dark-text, #24272c);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
}

.token-market {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--tp-dark-muted, #a0a5ad);
  font-size: 11px;
  line-height: 1.3;
}

.token-price,
.token-change {
  font-size: 11px;
}

.token-change.is-down {
  color: #e65353;
}

.token-change.is-up {
  color: #20a674;
}

.token-balance {
  min-width: 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
}

.token-balance strong {
  color: var(--tp-dark-text, #30343a);
  font-size: 15px;
  line-height: 1.18;
  font-weight: 400;
}

.token-balance span {
  margin-top: 0;
  color: var(--tp-dark-muted, #a0a5ad);
  font-size: 11px;
  line-height: 1.2;
}

.token-detail-header > strong {
  overflow: hidden;
  color: #010109;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-detail-back,
.token-detail-more {
  width: 40px;
  height: 40px;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #010109;
  cursor: pointer;
}

.token-detail-back svg,
.token-detail-more svg,
.token-detail-action-icon svg,
.token-detail-empty-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.token-detail-actions {
  padding: 4px 82px 27px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 54px;
  background: #ffffff;
}

.token-detail-actions button {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #010109;
  cursor: pointer;
}

.token-detail-actions em {
  font-style: normal;
  font-size: 12px;
}

.token-detail-action-icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf5ff;
  color: #2980FE;
}


.token-detail-records-head {
  height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f1f2f4;
}

.token-detail-records-head strong {
  color: #010109;
  font-size: 14px;
  font-weight: 600;
}
/* ---------- TRANSACTION DETAIL ---------- */

.tp-flow-page.token-tx-detail-page {
  min-height: 100dvh;
  background: var(--tp-dark-bg, #f3f4f7);
}

.token-tx-detail-header {
  height:
    calc(
      58px +
      env(safe-area-inset-top)
    );
  padding:
    env(safe-area-inset-top)
    16px
    0;
  display: grid;
  grid-template-columns:
    46px
    1fr
    46px;
  align-items: center;
  box-sizing: border-box;
}

.token-tx-detail-header > button {
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
}

.token-tx-detail-header > button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--tp-dark-text, #282c31);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.token-tx-detail-header > strong {
  text-align: center;
  color: var(--tp-dark-text, #202329);
  font-size: 18px;
  font-weight: 600;
}

.token-tx-detail-scroll {
  padding:
    8px
    16px
    max(24px, env(safe-area-inset-bottom));
}

.token-tx-detail-status {
  padding: 0 0 12px;
  text-align: center;
}

.token-tx-detail-status-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: #ef6b6b;
  color: #fff;
}

.token-tx-detail-status-icon.is-success {
  background: #13b88b;
}

.token-tx-detail-status-icon.is-pending {
  background: #a0a6b0;
}

.token-tx-detail-status-icon svg {
  width: 34px;
  height: 34px;

  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.token-tx-detail-status-text {
  display: block;

  margin-top: 8px;

  color: #d85c64;

  font-size: 15px;
  font-weight: 400;
}

.token-tx-detail-status-text.is-success {
  color: #16aa84;
}

.token-tx-detail-amount {
  margin-top: 4px;

  color: var(--tp-dark-text, #33373d);

  font-size: 28px;
  line-height: 1.16;
  font-weight: 400;
}

.token-tx-detail-card {
  padding: 8px 26px 20px;
  border-radius: 20px;
  background: var(--tp-dark-surface, #fff);
}

.token-tx-detail-address-block {
  margin-bottom: 0;
  padding: 12px 0 10px;
}

.token-tx-detail-label {
  display: block;
  color: #a1a6ad;
  font-size: 14px;
  line-height: 1.4;
}

.token-tx-detail-address-line {
  margin-top: 7px;

  display: flex;
  align-items: center;

  gap: 7px;
}

.token-tx-detail-address-line strong {
  min-width: 0;

  overflow: hidden;

  color: var(--tp-dark-text, #383c42);

  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-tx-detail-address-line button,
.token-tx-detail-extra-copy button,
.token-tx-detail-qr-caption-copy {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 0;
  background: transparent;
}

.token-tx-detail-address-line button svg,
.token-tx-detail-extra-copy button svg,
.token-tx-detail-qr-caption-copy svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #8e939b;
  stroke-width: 1.5;
}

.token-tx-detail-address-block small {
  display: inline-flex;

  min-height: 21px;

  margin-top: 6px;

  padding:
    0
    8px;

  align-items: center;

  border-radius: 10px;

background: var(--tp-dark-surface-2, #f2f3f5);
color: var(--tp-dark-muted, #6f747c);

  font-size: 10px;
}

.token-tx-detail-fee-block {
  margin-top: 0;

  padding:
    10px
    0
    8px;
}

.token-tx-detail-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.token-tx-detail-help {
  width: 19px;
  height: 19px;

  padding: 0;

  border: 1px solid #b7bbc2;
  border-radius: 50%;

  background: transparent;

  color: #999ea6;

  font-size: 11px;
}

.token-tx-detail-fee-block > strong {
  display: inline-flex;
  align-items: center;

  min-height: 28px;
  margin-top: 8px;
  padding: 4px 10px;

  box-sizing: border-box;
  border-radius: 6px;

background: var(--tp-dark-surface-2, #f4f5f7);
color: var(--tp-dark-text, #42474e);

  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.token-tx-detail-resources {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.token-tx-detail-resources span {
  padding:
    5px
    10px;
  border-radius: 7px;
  background: var(--tp-dark-surface-2, #f4f5f7);
  color: var(--tp-dark-text, #575c64);
  font-size: 12px;
}

.token-tx-detail-more-button {
  min-height: 38px;
  margin-top: 2px;
  padding: 0;

  display: inline-flex;
  align-items: center;
  gap: 5px;

  border: 0;
  background: transparent;

  color: #2980fe;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
}

.token-tx-detail-more-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition:
    transform
    .18s ease;
}

.token-tx-detail-more-button.is-open svg {
  transform:
    rotate(
      180deg
    );
}

.token-tx-detail-more[hidden] {
  display: none !important;
}
.token-tx-detail-resource-more {
  padding: 2px 0 8px;
}
.token-tx-detail-divider {
  height: 1px;

  margin:
    2px
    0
    14px;

  background: #eceef0;
}

.token-tx-detail-extra-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    112px;

  gap: 10px;

  align-items: center;
}
.token-tx-detail-extra-copy {
  min-width: 0;
}

.token-tx-detail-extra-copy > span {
  display: block;

  margin-top: 12px;

  color: #9ba0a8;

  font-size: 12px;
}

.token-tx-detail-extra-copy > span:first-child {
  margin-top: 0;
}

.token-tx-detail-extra-copy > div {
  margin-top: 5px;

  display: flex;

  align-items: center;

  gap: 4px;
}

.token-tx-detail-extra-copy strong {
  min-width: 0;

  color: #35393f;

  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;

  overflow-wrap: anywhere;
  word-break: break-all;
}
.token-tx-detail-extra-copy > div strong {
  max-width: 100%;
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  overflow-wrap: normal;
  word-break: normal;
}
.token-tx-detail-extra-copy > strong {
  display: block;

  margin-top: 5px;
}

.token-tx-detail-qr-column {
  width: 112px;

  min-width: 0;

  display: flex;
  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;
}

.token-tx-detail-qr {
  position: relative;

  width: 110px;
  height: 110px;

  margin: 0 auto;

  padding: 3px;

  display: grid;
  place-items: center;

  background: #fff;

  box-sizing: border-box;
}

.token-tx-detail-qr img,
.token-tx-detail-qr canvas {
  width: 104px !important;
  height: 104px !important;

  max-width: 104px !important;
  max-height: 104px !important;

  display: block;
}
.token-tx-detail-qr-logo {
  position: absolute;

  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: 20px;
  height: 20px;

  display: grid;
  place-items: center;

  box-sizing: border-box;
  border: 2px solid #ffffff;
  border-radius: 5px;

  background: #2f80ed;
  color: #ffffff;

  font-size: 9px;
  font-weight: 800;
  line-height: 1;

  pointer-events: none;
  z-index: 2;
}
.token-tx-detail-qr-caption-row {
  margin-top: 8px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;

  width: 100%;
}

.token-tx-detail-qr-caption {
  color: #a6abb3;
  font-size: 13px;
  line-height: 1.25;
}

.token-tx-detail-qr-caption-copy {
  width: 18px;
  height: 18px;
  padding: 0;

  color: #b6bac2;
}

.token-tx-detail-qr-caption-copy svg {
  width: 16px;
  height: 16px;
}
.token-tx-detail-qr.is-empty {
  border-radius: 8px;
  background: #f4f5f7;
  color: #9ba0a8;
  font-size: 11px;
}

.token-tx-detail-qr-column > span {
  display: block;

  margin-top: 5px;

  color: #9ba0a8;

  font-size: 9px;
}

.token-detail-empty {
  min-height: 180px;
  padding: 42px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #b4b8bf;
  text-align: center;
}

.token-detail-empty-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  padding: 6px;
  color: #c6cad0;
}

.token-detail-empty strong {
  color: #a1a6ad;
  font-size: 12px;
  font-weight: 400;
}
/* Main product pages */

.tp-market-page,
.tp-trade-page,
.tp-discover-page,
.tp-mine-page {
  min-height:
    calc(
      100vh -
      58px -
      env(safe-area-inset-bottom)
    );
  padding-bottom: 80px;
}


/* Shared search */

.tp-main-top-search {
  padding:
    max(
      12px,
      env(safe-area-inset-top)
    )
    14px
    8px;
  background: #ffffff;
}

.tp-global-search {
  height: 42px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 21px;
  background: #f5f6f8;
  color: #a1a6ae;
}

.tp-global-search svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #6f757e;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.tp-global-search span {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Market */

.tp-market-page {
  padding-bottom: calc(
    78px + env(safe-area-inset-bottom)
  );
  background: var(--tp-dark-bg, #ffffff);
}

.tp-market-page .tp-main-top-search {
  padding-top: var(--tp-market-search-top);
}

.tp-market-promo {
  padding: 7px 14px 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 58%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}


.tp-market-promo::-webkit-scrollbar {
  display: none;
}

/*
 * TP_MARKET_BANNER_AUTO_VISIBILITY_V1
 *
 * 没有后台有效推荐时，隐藏整个轮播区域。
 * 加载中、暂无推荐、读取失败均不占位。
 * 后台返回真实推荐卡片后自动显示。
 */
#marketPage #marketPromoList:not(:has(.tp-market-promo-card)) {
  display: none;
}


.tp-market-promo-card {
  position: relative;
  box-sizing: border-box;
  height: 126px;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      #2998ff,
      #6fc6ff
    );
}


.tp-market-promo-card:nth-child(3n + 2) {
  background:
    linear-gradient(
      135deg,
      #a9ddd0,
      #cdf0e4
    );
}


.tp-market-promo-card:nth-child(3n + 3) {
  background:
    linear-gradient(
      135deg,
      #f5c3c0,
      #f6d8d4
    );
}


.tp-market-promo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.tp-market-promo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, .30),
      rgba(0, 0, 0, .04) 72%
    );
}


.tp-market-promo-copy {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 12px;
  bottom: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #ffffff;
  text-shadow:
    0 1px 2px
    rgba(0, 0, 0, .24);
}


.tp-market-promo-copy strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.tp-market-promo-copy small {
  overflow: hidden;
  opacity: .92;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.tp-market-promo-loading,
.tp-market-promo-empty {
  box-sizing: border-box;
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f5f7fa;
  color: #a2a7ae;
  font-size: 11px;
}


.tp-market-tabbar {
  display: flex;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid #f0f1f3;
}

.tp-market-tabs {
  flex: 1;
  min-width: 0;
  padding: 0 0 0 14px;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  border-bottom: 0;
  scrollbar-width: none;
}

.tp-market-star-tab {
  font-size: 23px !important;
  font-weight: 400 !important;
}

.tp-market-category-trigger {
  width: 42px;
  height: 48px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: #ffffff;
  color: #353a40;
  cursor: pointer;
}

.tp-market-category-trigger svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.tp-market-tabs::-webkit-scrollbar {
  display: none;
}

.tp-market-tabs button {
  position: relative;
  height: 48px;
  padding: 0;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #888e97;
  font-size: 15px;
  white-space: nowrap;
}


.tp-market-tabs button.is-active {
  color: #24282e;
  font-weight: 600;
}

.tp-market-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 25px;
  height: 3px;
  transform:
    translateX(-50%);
  border-radius: 3px;
  background: #34383e;
}

/*
 * TP 行情榜单分类
 * 位于原行情分类CSS区域。
 */
.tp-market-category-layer {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tp-market-category-layer.is-hidden {
  display: none;
}

.tp-market-category-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.5);
}

.tp-market-category-panel {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 350px;
  padding: 0 18px
    calc(24px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  border-radius: 20px 20px 0 0;
  background: #ffffff;
}

.tp-market-category-heading {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-market-category-heading strong {
  color: #30343a;
  font-size: 18px;
  font-weight: 500;
}

.tp-market-category-heading button {
  position: absolute;
  top: 9px;
  right: -2px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #666b72;
  font-size: 30px;
  font-weight: 300;
  cursor: pointer;
}

.tp-market-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 8px;
  margin-top: 10px;
}

.tp-market-category-grid button {
  min-width: 0;
  height: 44px;
  padding: 0 4px;
  border: 1px solid #e7e9ed;
  border-radius: 9px;
  background: #ffffff;
  color: #8a8e96;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}

.tp-market-category-grid button.is-active {
  border-color: #2980fe;
  background: #edf5ff;
  color: #2980fe;
}
.tp-market-chainbar {
  display: flex;
  align-items: center;
  min-width: 0;
  background: var(--tp-dark-bg, #ffffff);
}

.tp-market-chains {
  flex: 1;
  min-width: 0;
  padding: 8px 0 6px 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tp-market-filter-trigger {
  width: 42px;
  height: 48px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: var(--tp-dark-bg, #ffffff);
  color: var(--tp-dark-muted, #8d949c);
  cursor: pointer;
}

.tp-market-filter-trigger svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.tp-market-filter-trigger.is-active {
  color: #2980fe;
}


.tp-market-chains::-webkit-scrollbar {
  display: none;
}

.tp-market-chains button {
  height: 34px;
  padding: 0 12px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: var(--tp-dark-surface-2, #f5f6f8);
  color: var(--tp-dark-muted, #8a9099);
  font-size: 12px;
  font-weight: 500;
}

.tp-market-chains button.is-active {
  background: var(--tp-dark-surface-2, #edf5ff);
  color: #2980FE;
}

/*
 * TP_MARKET_FILTER_SHEET_STYLE_V1
 * 行情筛选独立底部弹窗
 */
.tp-market-filter-layer {
  position: fixed;
  inset: 0;
  z-index: 20001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tp-market-filter-layer.is-hidden {
  display: none;
}

.tp-market-filter-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.5);
}

.tp-market-filter-panel {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: min(78vh, 760px);
  min-height: min(540px, 90vh);
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: var(--tp-dark-surface, #ffffff);
}

.tp-market-filter-main,
.tp-market-filter-subpage {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tp-market-filter-main.is-hidden,
.tp-market-filter-subpage.is-hidden {
  display: none;
}

.tp-market-filter-heading {
  height: 62px;
  min-height: 62px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
}

.tp-market-filter-heading strong {
  color: #2d3138;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.tp-market-filter-heading button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #60666f;
  font-size: 29px;
  font-weight: 300;
  cursor: pointer;
}

.tp-market-filter-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 4px 18px 12px;
}

.tp-market-filter-row {
  width: 100%;
  min-height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 1px solid #f4f5f6;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.tp-market-filter-row > span {
  flex: 1;
  min-width: 0;
  color: var(--tp-dark-text, #34383e);
  font-size: 14px;
}

.tp-market-filter-row small {
  max-width: 48%;
  overflow: hidden;
  color: #989da5;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tp-market-filter-row b {
  color: #9298a1;
  font-size: 24px;
  font-weight: 300;
}

.tp-market-filter-row.is-unavailable {
  opacity: 0.65;
  cursor: default;
}

.tp-market-filter-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 18px
    calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid #f0f1f3;
  background: #ffffff;
}

.tp-market-filter-footer button {
  height: 46px;
  padding: 0 10px;
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #30343a;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.tp-market-filter-footer button:last-child {
  border-color: #2980fe;
  background: #2980fe;
  color: #ffffff;
}

.tp-market-filter-options {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tp-market-filter-options button {
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid #e7e9ed;
  border-radius: 10px;
  background: #ffffff;
  color: #454b53;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.tp-market-filter-options button.is-active {
  border-color: #2980fe;
  background: #edf5ff;
  color: #2980fe;
}

.tp-market-filter-inputs {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tp-market-filter-inputs label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #444951;
  font-size: 13px;
}

.tp-market-filter-inputs input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  box-sizing: border-box;
  border: 1px solid #e3e6ec;
  border-radius: 9px;
  background: #f7f8fa;
  color: #30343a;
  font-size: 15px;
  outline: none;
}

.tp-market-filter-inputs input:focus {
  border-color: #2980fe;
}

.tp-market-filter-inputs small {
  color: #9298a1;
  font-size: 12px;
}
.tp-market-table {
   background: var(--tp-dark-bg, #ffffff);
}

.tp-market-table-head,
.tp-market-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(92px, .86fr)
    72px;
  column-gap: 8px;
  align-items: center;
}

.tp-market-table-head {
  min-height: 32px;
  padding: 0 14px;
  color: var(--tp-dark-muted, #a0a5ad);
  font-size: 11px;
}

.tp-market-table-head span:nth-child(2),
.tp-market-table-head span:nth-child(3) {
  text-align: right;
}
/*
 * TP 行情表头排序
 * TP_MARKET_TABLE_SORT_STYLE_V1
 */
.tp-market-table-head .tp-market-sort-pair {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.tp-market-table-head .tp-market-sort-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.tp-market-table-head [data-market-sort] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.tp-market-table-head .tp-market-sort-separator {
  margin: 0 2px;
  color: #b3b8c0;
}

.tp-market-table-head .tp-market-sort-arrow {
  width: 7px;
  height: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 0 0 7px;
}

.tp-market-table-head
.tp-market-sort-arrow::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 4px solid #b8bdc5;
}

.tp-market-table-head
.tp-market-sort-arrow::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #b8bdc5;
}

.tp-market-table-head
[data-market-sort].is-asc
.tp-market-sort-arrow::before {
  border-bottom-color: #2980fe;
}

.tp-market-table-head
[data-market-sort].is-desc
.tp-market-sort-arrow::after {
  border-top-color: #2980fe;
}

.tp-market-table-head
[data-market-sort].is-asc,
.tp-market-table-head
[data-market-sort].is-desc {
  color: #2980fe;
}
/*
 * TP_MARKET_STICKY_HEADER_V1
 *
 * TP 行情顶部吸顶：
 * 搜索框、分类栏、网络栏和排序表头固定。
 * 推荐 Banner 正常滚动离开。
 * 不改变现有页面滚动容器。
 */

/* 顶部各区域的实际布局高度 */
#marketPage.tp-market-page {
  --tp-market-search-top: max(
    52px,
    calc(env(safe-area-inset-top, 0px) + 8px)
  );
  --tp-market-search-h: calc(
    50px + var(--tp-market-search-top)
  );
  --tp-market-tabs-h: 49px;
  --tp-market-chains-h: 48px;
}

/* 1. 搜索框：固定在最顶部 */
#marketPage > .tp-main-top-search {
  position: sticky;
  top: 0;
  z-index: 24;
  background: var(--tp-dark-bg, #ffffff);
}

/* 2. Meme、热门、机构精选等分类 */
#marketPage > .tp-market-tabbar {
  position: sticky;
  top: var(--tp-market-search-h);
  z-index: 23;
  background: var(--tp-dark-bg, #ffffff);
}

/* 3. BNB、Solana等网络及漏斗 */
#marketPage > .tp-market-chainbar {
  position: sticky;
  top: calc(
    var(--tp-market-search-h) +
    var(--tp-market-tabs-h)
  );
  z-index: 22;
  background: var(--tp-dark-bg, #ffffff);
}

/* 4. 交易量、市值、最新价、涨跌表头 */
#marketPage
.tp-market-table
> .tp-market-table-head {
  position: sticky;
  top: calc(
    var(--tp-market-search-h) +
    var(--tp-market-tabs-h) +
    var(--tp-market-chains-h)
  );
  z-index: 21;
  background: var(--tp-dark-bg, #ffffff);
}
.tp-market-list {
  min-height: 180px;
}

/*
 * TP_MARKET_SCROLL_MORE_STYLE_V1
 *
 * 自动加载观察点。
 * 不显示额外按钮或文字。
 */
.tp-market-more-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.tp-market-row {
  box-sizing: border-box;
  min-height: 64px;
  padding: 6px 14px;
}

.tp-market-token {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-market-token-icon {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef2f7;
  color: #5e6e82;
}

.tp-market-token-icon b {
  font-size: 13px;
  font-weight: 700;
}


.tp-market-token-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.tp-market-token-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tp-market-token-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.tp-market-token-title strong {
  min-width: 0;
  max-width: 100px;
  overflow: hidden;
   color: var(--tp-dark-text, #30343a);
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-market-token-title em {
  min-width: 0;
  max-width: 82px;
  overflow: hidden;
  color: var(--tp-dark-muted, #9298a1);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-market-token-copy small {
  overflow: hidden;
  color: var(--tp-dark-muted, #9ea4ad);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-market-price {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

.tp-market-price strong {
  overflow: hidden;
  color: var(--tp-dark-text, #34383e);
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-market-price small {
  color: var(--tp-dark-muted, #a1a6ae);
  font-size: 10px;
}

.tp-market-change {
  box-sizing: border-box;
  width: 72px;
  min-width: 0;
  min-height: 32px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
}

.tp-market-change.is-up {
  background: #1eae80;
  color: #ffffff !important;
}


.tp-market-change.is-down {
  background: #ef6159;
  color: #ffffff !important;
}

.tp-market-change.is-flat {
  background: var(--tp-dark-surface-2, #eef0f3);
  color: var(--tp-dark-muted, #8e949d) !important;
}


/*
 * 保留系统设置里的“红涨绿跌”功能。
 */
html.tp-market-red-up
.tp-market-change.is-up {
  background: #ef6159;
}


html.tp-market-red-up
.tp-market-change.is-down {
  background: #1eae80;
}

/*
 * 行情列表状态与分页控制
 * 原有加载状态保持不变。
 */
.tp-market-loading,
.tp-market-empty {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  box-sizing: border-box;
  color: var(--tp-dark-muted, #a1a6ad);
  font-size: 11px;
  text-align: center;
}

/*
 * Market Search + Token Detail
 */

.tp-market-search-page {
  background: var(--tp-dark-bg, #f5f6f8);
}


.tp-market-search-page
.tp-global-search-header {
  padding:
    12px 14px 8px;
  display:
    flex;
  align-items:
    center;
  gap:
    12px;
  background: var(--tp-dark-bg, #f5f6f8);
}


.tp-market-search-page
.tp-global-search-input {
  min-width:
    0;
  height:
    46px;
  flex:
    1;
  padding:
    0 14px;
  box-sizing:
    border-box;
  display:
    flex;
  align-items:
    center;
  gap:
    10px;
  border-radius:
    13px;
  background: var(--tp-dark-surface, #ffffff);
}


.tp-market-search-page
.tp-global-search-input svg {
  width:
    21px;
  height:
    21px;
  flex:
    0 0 21px;
  fill:
    none;
  stroke: var(--tp-dark-text, #252b32);
  stroke-width:
    1.8;
  stroke-linecap:
    round;
  stroke-linejoin:
    round;
}


.tp-market-search-page
.tp-global-search-input input {
  min-width:
    0;
  width:
    100%;
  padding:
    0;
  border:
    0;
  outline:
    0;
  background:
    transparent;
  color: var(--tp-dark-text, #30353b);
  font-size:
    13px;
}


.tp-market-search-page
.tp-global-search-input
input::placeholder {
  color: var(--tp-dark-muted, #b5bac2);
}


.tp-market-search-page
.tp-global-search-cancel {
  padding:
    0;
  flex:
    0 0 auto;
  border:
    0;
  background:
    transparent;
  color:
    #2980FE;
  font-size:
    13px;
}


.tp-market-search-tabs {
  padding:
    12px 18px 0;
  display:
    flex;
  align-items:
    center;
  gap:
    26px;
  background: var(--tp-dark-bg, #f5f6f8);
}


.tp-market-search-tabs button {
  position:
    relative;
  height:
    42px;
  padding:
    0;
  flex:
    0 0 auto;
  border:
    0;
  background:
    transparent;
  color: var(--tp-dark-muted, #969ba3);
  font-size:
    14px;
  white-space:
    nowrap;
}


.tp-market-search-tabs
button.is-active {
  color: var(--tp-dark-text, #252a30);
  font-weight:
    600;
}


.tp-market-search-tabs
button.is-active::after {
  content:
    "";
  position:
    absolute;
  left:
    50%;
  bottom:
    0;
  width:
    34px;
  height:
    3px;
  transform:
    translateX(-50%);
  border-radius:
    3px;
  background: var(--tp-dark-text, #30353b);
}


.tp-market-search-content {
  padding:
    12px 14px
    calc(
      22px +
      env(
        safe-area-inset-bottom
      )
    );
}


.tp-market-search-list-card {
  overflow:
    hidden;
  border-radius:
    15px;
  background: var(--tp-dark-surface, #ffffff);
}


.tp-market-search-row {
  box-sizing:
    border-box;
  min-height:
    72px;
  padding:
    9px 10px 9px 7px;
  display:
    grid;
  grid-template-columns:
    27px
    minmax(
      0,
      1fr
    )
    82px
    31px;
  align-items:
    center;
  column-gap:
    7px;
  background: var(--tp-dark-surface, #ffffff);
}


.tp-market-search-row +
.tp-market-search-row {
  border-top: 1px solid var(--tp-dark-line, #f5f5f6);
}


.tp-market-search-rank {
  display:
    flex;
  align-items:
    center;
  justify-content:
    center;
  color:
    #999fa7;
  font-size:
    13px;
  text-align:
    center;
}


.tp-market-search-rank.is-hot {
  font-size:
    17px;
}


.tp-market-search-main {
  min-width:
    0;
  display:
    flex;
  align-items:
    center;
  gap:
    10px;
  cursor:
    pointer;
}


.tp-market-search-icon-wrap {
  position:
    relative;
  width:
    42px;
  height:
    42px;
  flex:
    0 0 42px;
}


.tp-market-search-icon-wrap
.tp-market-token-icon {
  width:
    42px;
  height:
    42px;
  flex-basis:
    42px;
}


.tp-market-search-chain-badge {
  position:
    absolute;
  z-index:
    4;
  right:
    -2px;
  bottom:
    -2px;
  width:
    16px;
  height:
    16px;
  box-sizing:
    border-box;
  display:
    grid;
  place-items:
    center;
  overflow:
    hidden;
  border:
    2px solid var(--tp-dark-surface, #ffffff);
  border-radius:
    50%;
  background:
    var(--tp-dark-surface, #ffffff);
}


.tp-market-search-chain-icon {
  width:
    12px !important;
  height:
    12px !important;
  min-width:
    12px !important;
  min-height:
    12px !important;
  border-radius:
    50%;
  object-fit:
    cover;
}


.tp-market-search-chain-badge
img {
  width:
    12px !important;
  height:
    12px !important;
  border-radius:
    50%;
  object-fit:
    cover;
}


.tp-market-search-token-copy {
  min-width:
    0;
  display:
    flex;
  flex-direction:
    column;
  gap:
    5px;
}


.tp-market-search-name {
  min-width:
    0;
  display:
    flex;
  align-items:
    center;
  gap:
    5px;
}


.tp-market-search-name strong {
  max-width:
    106px;
  overflow:
    hidden;
  color: var(--tp-dark-text, #31363c);
  font-size:
    15px;
  font-weight:
    500;
  text-overflow:
    ellipsis;
  white-space:
    nowrap;
}


.tp-market-search-name em {
  padding:
    2px 5px;
  border-radius:
    4px;
  background:
    #eaf3ff;
  color:
    #2980FE;
  font-size:
    8px;
  font-style:
    normal;
  font-weight:
    600;
}


.tp-market-search-token-copy
small {
  min-width:
    0;
  display:
    flex;
  align-items:
    center;
  gap:
    5px;
  color: var(--tp-dark-muted, #a1a6ae);
  font-size:
    10px;
}


.tp-market-search-token-copy
small > span {
  min-width:
    0;
  overflow:
    hidden;
  text-overflow:
    ellipsis;
  white-space:
    nowrap;
}


.tp-market-search-copy {
  width:
    17px;
  height:
    17px;
  padding:
    0;
  flex:
    0 0 17px;
  display:
    grid;
  place-items:
    center;
  border:
    0;
  background:
    transparent;
  color:
    #b9bec5;
}


.tp-market-search-copy svg {
  width:
    13px;
  height:
    13px;
  fill:
    none;
  stroke:
    currentColor;
  stroke-width:
    1.7;
}


.tp-market-search-price {
  min-width:
    0;
  display:
    flex;
  flex-direction:
    column;
  align-items:
    flex-end;
  gap:
    4px;
  text-align:
    right;
}


.tp-market-search-price strong {
  max-width:
    82px;
  overflow:
    hidden;
  color:
    #353a40;
  font-size:
    13px;
  font-weight:
    500;
  text-overflow:
    ellipsis;
  white-space:
    nowrap;
}


.tp-market-search-price small {
  font-size:
    10px;
  font-weight:
    500;
}


.tp-market-search-price
small.is-up {
  color:
    var(
      --tp-market-rise
    );
}


.tp-market-search-price
small.is-down {
  color:
    var(
      --tp-market-fall
    );
}


.tp-market-search-price
small.is-flat {
  color:
    #999fa7;
}


.tp-market-search-star {
  width:
    31px;
  height:
    31px;
  padding:
    0;
  display:
    grid;
  place-items:
    center;
  border:
    0;
  background:
    transparent;
  color:
    #aeb4bb;
}


.tp-market-search-star svg {
  width:
    23px;
  height:
    23px;
  fill:
    transparent;
  stroke:
    currentColor;
  stroke-width:
    1.8;
  stroke-linejoin:
    round;
}


.tp-market-search-star.is-active {
  color:
    #f5ad24;
}


.tp-market-search-star.is-active
svg {
  fill:
    #f5ad24;
}


.tp-market-search-loading,
.tp-market-search-empty {
  min-height:
    220px;
  display:
    flex;
  flex-direction:
    column;
  align-items:
    center;
  justify-content:
    center;
  gap:
    7px;
  padding:
    28px 18px;
  box-sizing:
    border-box;
  color:
    #a0a6af;
  font-size:
    11px;
  text-align:
    center;
}


.tp-market-search-empty strong {
  color:
    #555b62;
  font-size:
    13px;
}


/*
 * 复用原有 DApp Row，
 * 这里只让外层卡片保持 TP 白底。
 */
.tp-market-search-list-card.is-dapps
.tp-global-dapp-row {
  background:
    #ffffff;
}


.tp-market-token-detail-page{background:#fff;padding-bottom:calc(82px + env(safe-area-inset-bottom));}
.tp-market-detail-topbar {
  min-height: 72px;
  padding:
    max(26px, env(safe-area-inset-top, 0px))
    16px
    5px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f1f2f4;
  background: #fff;
}
.tp-market-detail-back,.tp-market-detail-header-actions button{width:34px;height:34px;padding:0;display:grid;place-items:center;border:0;background:transparent;color:#34393f;}
.tp-market-detail-back svg,.tp-market-detail-header-actions svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.tp-market-detail-header-token{min-width:0;display:flex;align-items:center;gap:10px;}
.tp-market-detail-header-token .tp-market-token-icon{width:44px;height:44px;flex:0 0 44px;border-radius:50%;}
.tp-market-detail-header-token>span{min-width:0;display:flex;flex-direction:column;gap:2px;}
.tp-market-detail-header-token strong{overflow:hidden;color:#292e34;font-size:17px;font-weight:700;text-overflow:ellipsis;white-space:nowrap;}
.tp-market-detail-header-token small{display:flex;align-items:center;gap:4px;color:#a2a7ae;font-size:11px;}
.tp-market-detail-header-copy{width:18px;height:18px;padding:0;display:grid;place-items:center;border:0;background:transparent;color:#a8aeb5;}
.tp-market-detail-header-copy svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;}
.tp-market-detail-header-actions{display:flex;gap:8px;}
.tp-market-detail-header-actions button.is-active{color:#f0a91e;}
.tp-market-detail-header-actions button.is-active svg{fill:#f0a91e;}

.tp-market-token-detail-body{padding:0;}
.tp-market-detail-section.is-hidden{display:none;}

.tp-market-detail-tabs {
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: stretch;
  gap: 24px;
  border-bottom: 1px solid #f2f3f4;
  background: #fff;
}
.tp-market-detail-tabs button {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9da2a9;
  font-size: 17px;
  font-weight: 600;
}
.tp-market-detail-tabs button.is-active{color:#2c3137;}
.tp-market-detail-tabs button.is-active:after{content:"";position:absolute;left:50%;bottom:0;width:36px;height:3px;transform:translateX(-50%);border-radius:3px;background:#2c3137;}

.tp-market-detail-overview {
  min-height: 120px;
  padding: 12px 18px 10px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 12px;
  background: #fff;
}
.tp-market-detail-price{display:flex;flex-direction:column;justify-content:center;}
.tp-market-detail-price > strong {
  color: #2f343a;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.4px;
}
.tp-market-detail-price.is-up>strong{color:var(--tp-market-rise);}
.tp-market-detail-price.is-down>strong{color:var(--tp-market-fall);}
.tp-market-detail-price>div{margin-top:10px;display:flex;align-items:center;gap:9px;}
.tp-market-detail-price span{color:#a1a6ad;font-size:14px;}
.tp-market-detail-price b{font-size:14px;font-weight:500;}
.tp-market-detail-price b.is-up,.tp-market-period-grid .is-up{color:var(--tp-market-rise);}
.tp-market-detail-price b.is-down,.tp-market-period-grid .is-down{color:var(--tp-market-fall);}
.tp-market-detail-price b.is-flat,.tp-market-period-grid .is-flat{color:#999fa7;}

.tp-market-detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 9px 10px;
}
.tp-market-detail-metrics div{min-width:0;display:flex;flex-direction:column;gap:3px;}
.tp-market-detail-metrics span{color:#9ea4ab;font-size:12px;}
.tp-market-detail-metrics strong{color:#33383e;font-size:14px;font-weight:500;white-space:nowrap;}

.tp-market-kline-panel{position:relative;background:#fff;}
.tp-market-kline-tools {
  height: 34px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #30353a;
  font-size: 15px;
}
.tp-market-kline-tools strong{color:#d4aa28;font-size:19px;}

.tp-market-kline-intervals {
  position: relative;
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid #f2f3f4;
  background: #fff;
}
.tp-market-kline-intervals > button,
.tp-market-kline-more-wrap > button {
  height: 36px;
  min-width: 38px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #999fa7;
  font-size: 13px;
  white-space: nowrap;
}
.tp-market-kline-intervals button.is-active,.tp-market-kline-more-wrap>button.is-active{color:#2d3238;font-weight:700;}

.tp-market-kline-more-wrap{position:relative;}
.tp-market-kline-more-menu{position:absolute;z-index:20;top:38px;left:0;min-width:76px;padding:5px;display:none;border:1px solid #edf0f3;border-radius:9px;background:#fff;box-shadow:0 6px 24px rgba(0,0,0,.08);}
.tp-market-kline-more-menu.is-open{display:grid;}
.tp-market-kline-more-menu button{height:35px;border:0;border-radius:7px;background:transparent;color:#4a5057;font-size:12px;}

.tp-market-kline-price-label {
  margin-left: auto;
  flex: 0 0 auto;
  color: #999fa7;
  font-size: 13px;
  white-space: nowrap;
}
.tp-market-kline-setting-icon{
  margin-left:6px;
  padding:0;
  border:0;
  background:transparent;
  color:#9298a0;
  font-size:17px;
  line-height:1;
  cursor:pointer;
}

.tp-market-kline-legend{min-height:31px;padding:7px 20px 0;display:flex;align-items:center;gap:11px;overflow:hidden;font-size:10px;white-space:nowrap;}
.tp-market-kline-legend span{display:flex;gap:2px;}
.tp-market-kline-legend b{font-weight:500;}
.tp-market-kline-legend .ma5{color:#d8ac36;}
.tp-market-kline-legend .ma10{color:#d358c2;}
.tp-market-kline-legend .ma30{color:#578bd4;}

.tp-market-kline-canvas-wrap{
  position:relative;
  width:100%;
  height:400px;
  overflow:hidden;
  background:#fff;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
}

#walletMarketKlineCanvas{
  width:100%;
  height:400px;
  display:block;
  background:#fff;
  cursor:crosshair;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
}

.tp-market-kline-crosshair{
  position:absolute;
  z-index:6;
  inset:0;
  display:none;
  pointer-events:none;
}

.tp-market-kline-crosshair.is-visible{
  display:block;
}

.tp-market-kline-crosshair-v{
  position:absolute;
  top:0;
  bottom:0;
  width:1px;
  border-left:1px dashed rgba(93,104,116,.55);
}

.tp-market-kline-crosshair-h{
  position:absolute;
  left:0;
  right:0;
  height:1px;
  border-top:1px dashed rgba(93,104,116,.45);
}

.tp-market-kline-crosshair-tip{
  position:absolute;
  z-index:7;
  top:8px;
  min-width:148px;
  max-width:170px;
  padding:7px 9px;
  border:1px solid rgba(223,227,232,.96);
  border-radius:8px;
  background:rgba(255,255,255,.96);
  box-shadow:0 4px 14px rgba(25,34,45,.08);
  color:#4b525a;
  font-size:9px;
  line-height:1.55;
  white-space:pre-line;
}

.tp-market-kline-reset{
  position:absolute;
  z-index:8;
  right:52px;
  bottom:30px;
  min-width:42px;
  height:25px;
  padding:0 9px;
  display:none;
  align-items:center;
  justify-content:center;
  border:1px solid #dce6f4;
  border-radius:13px;
  background:rgba(255,255,255,.94);
  color:#4388e8;
  font-size:10px;
  box-shadow:0 2px 8px rgba(30,65,110,.07);
}

.tp-market-kline-reset.is-visible{
  display:flex;
}

.tp-market-kline-status{min-height:0;padding:0 14px;color:#9fa5ad;font-size:9px;}
.tp-market-kline-status:not(:empty){min-height:22px;display:flex;align-items:center;}
.tp-market-kline-status.is-error{color:#dd625b;}

.tp-market-kline-indicators{height:52px;padding:0 19px;display:flex;align-items:center;justify-content:space-between;gap:17px;overflow-x:auto;border-top:1px solid #f1f2f3;border-bottom:8px solid #f5f6f8;color:#999fa7;font-size:14px;scrollbar-width:none;}
.tp-market-kline-indicators::-webkit-scrollbar{display:none;}
.tp-market-kline-indicators strong{position:relative;color:#30353a;}
.tp-market-kline-indicators strong:after{content:"";position:absolute;left:50%;bottom:-15px;width:25px;height:3px;transform:translateX(-50%);border-radius:3px;background:#30353a;}


.tp-kline-period-sheet{
  padding:0 18px 28px;
  background:#fff;
}

.tp-kline-sheet-title{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  font-size:20px;
  color:#25282d;
}

.tp-kline-sheet-title strong{
  font-weight:600;
}

.tp-kline-sheet-title button{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  padding:0;
  border:0;
  background:transparent;
  color:#45494f;
  font-size:32px;
  font-weight:300;
  line-height:38px;
}

.tp-kline-period-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px 20px;
  padding-top:8px;
}

.tp-kline-period-grid button{
  height:58px;
  border:1px solid #e2e4e8;
  border-radius:13px;
  background:#fff;
  color:#35383d;
  font-size:18px;
}

.tp-kline-period-grid button.is-active{
  border-color:#3187e7;
  background:#edf5ff;
  color:#3187e7;
}

.tp-market-kline-nested-layer{
  position:absolute;
  inset:0;
  z-index:80;
  display:flex;
  align-items:flex-end;
  opacity:0;
  pointer-events:none;
  overflow:hidden;
  transition:opacity .18s ease;
}

.tp-market-kline-nested-layer.is-open{
  opacity:1;
  pointer-events:auto;
}

.tp-market-kline-nested-mask{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  background:rgba(0,0,0,.42);
}

.tp-market-kline-nested-panel{
  position:relative;
  z-index:1;
  width:100%;
  max-height:86%;
  overflow:auto;
  border-radius:24px 24px 0 0;
  background:#fff;
  transform:translateY(18px);
  transition:transform .18s ease;
  box-shadow:0 -10px 36px rgba(0,0,0,.08);
}

.tp-market-kline-nested-layer.is-open
.tp-market-kline-nested-panel{
  transform:translateY(0);
}

.tp-market-kline-nested-layer.is-full-page{
  align-items:stretch;
}

.tp-market-kline-nested-layer.is-full-page
.tp-market-kline-nested-mask{
  display:none;
}

.tp-market-kline-nested-layer.is-full-page
.tp-market-kline-nested-panel{
  width:100%;
  height:100%;
  max-height:100%;
  border-radius:0;
  box-shadow:none;
  transform:none;
  overflow:auto;
  background:#f5f6f8;
}

.tp-market-kline-nested-layer.is-full-page.is-open
.tp-market-kline-nested-panel{
  transform:none;
}

.tp-kline-style-settings-header{
  position:relative;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f5f6f8;
  color:#252a30;
}

.tp-kline-style-settings-header strong{
  font-size:18px;
  font-weight:600;
}

.tp-kline-style-settings-back{
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  padding:0;
  border:0;
  background:transparent;
  color:#30353a;
  font-size:36px;
  font-weight:300;
  line-height:40px;
}

.tp-kline-preference-style-row{
  width:100%;
  border:0;
  text-align:left;
  cursor:pointer;
}

.tp-kline-preference-sheet{
  padding:0 18px 34px;
  background:#fff;
}

.tp-kline-preference-body{
  padding-top:2px;
}

.tp-kline-preference-style-row{
  height:82px;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-radius:18px;
  background:#f7f8fb;
  color:#30343a;
  font-size:17px;
}

.tp-kline-preference-style-row b{
  color:#a5abb2;
  font-size:30px;
  font-weight:300;
}

.tp-kline-preference-section{
  margin-top:26px;
}

.tp-kline-preference-section h4{
  margin:0 0 16px;
  color:#30343a;
  font-size:17px;
  font-weight:500;
}

.tp-kline-preference-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 20px;
}

.tp-kline-preference-grid button{
  min-height:64px;
  padding:8px 10px;
  border:1.5px solid #d9dde3;
  border-radius:14px;
  background:#fff;
  color:#444a52;
  font-size:16px;
}

.tp-kline-preference-grid button.is-active{
  border-color:#3187e7;
  background:#edf5ff;
  color:#3187e7;
}

.tp-kline-height-slider{
  width:100%;
  height:28px;
  margin:2px 0 4px;
  accent-color:#3187e7;
}

/* K线 价格 / 市值 - TP Wallet style */

.tp-market-kline-nested-layer.is-kline-value
.tp-market-kline-nested-panel{
  background:#f4f5f7;
  border-radius:24px 24px 0 0;
  box-shadow:none;
  overflow:hidden;
}


.tp-kline-value-sheet{
  padding:
    0
    16px
    calc(
      22px +
      env(safe-area-inset-bottom, 0px)
    );
  background:#f4f5f7;
}


.tp-kline-value-title{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}


.tp-kline-value-title strong{
  color:#282c31;
  font-size:19px;
  font-weight:600;
  line-height:1;
}


.tp-kline-value-close{
  width:40px;
  height:40px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50%;
  background:#eceef1;
  color:#b9bdc3;
  font-size:29px;
  font-weight:300;
  line-height:40px;
}


.tp-kline-value-card{
  overflow:hidden;
  border-radius:18px;
  background:#fff;
}


.tp-kline-value-card button{
  position:relative;
  width:100%;
  height:68px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:#fff;
  color:#292d32;
  font-size:18px;
  font-weight:400;
}


.tp-kline-value-card button + button::before{
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:1px;
  background:#e7e8ea;
  transform:scaleY(.5);
  transform-origin:center top;
}


.tp-kline-value-card button.is-active{
  background:#fff;
  color:#292d32;
}


.tp-kline-value-cancel{
  width:100%;
  height:68px;
  margin-top:14px;
  padding:0;
  border:0;
  border-radius:18px;
  background:#fff;
  color:#292d32;
  font-size:18px;
  font-weight:400;
}

.tp-market-detail-bottom-tabs{height:58px;padding:0 20px;display:flex;align-items:stretch;gap:28px;overflow-x:auto;border-bottom:1px solid #eff1f3;background:#fff;scrollbar-width:none;}
.tp-market-detail-bottom-tabs::-webkit-scrollbar{display:none;}
.tp-market-detail-bottom-tabs button{position:relative;min-width:max-content;padding:0;flex:0 0 auto;border:0;background:transparent;color:#999fa7;font-size:15px;font-weight:600;}
.tp-market-detail-bottom-tabs button.is-active{color:#30353a;}
.tp-market-detail-bottom-tabs button.is-active:after{content:"";position:absolute;left:50%;bottom:0;width:34px;height:3px;transform:translateX(-50%);border-radius:3px;background:#30353a;}

.tp-market-detail-sub-content{min-height:180px;padding:14px 20px 30px;background:#fff;}
.tp-market-sub-loading,.tp-market-sub-empty{min-height:160px;display:grid;place-items:center;color:#a0a6ad;font-size:12px;text-align:center;}
.tp-market-sub-title{margin:8px 0 13px;color:#343a40;font-size:17px;font-weight:600;}

.tp-market-trade-filters{display:flex;align-items:center;gap:10px;margin-bottom:12px;}
.tp-market-trade-filters button{min-width:58px;height:34px;border:0;border-radius:9px;background:#f3f5f8;color:#959ba3;font-size:12px;}
.tp-market-trade-filters button.is-active{background:#edf5ff;color:#4388e8;}
.tp-market-trade-currency{margin-left:auto;width:42px;height:32px;display:grid;place-items:center;border-radius:16px;background:#f3f5f8;color:#333;font-size:15px;}

.tp-market-trade-head {
  height: 34px;
  display: grid;
  grid-template-columns: 1.15fr .9fr .9fr;
  align-items: center;
  color: #9ca2a9;
  font-size: 12px;
}
.tp-market-trade-head span:nth-child(3){text-align:right;}

.tp-market-trade-list{display:grid;}
.tp-market-trade-row{min-height:70px;padding:8px 0;display:grid;grid-template-columns:1.15fr .9fr .9fr;align-items:center;gap:7px;border:0;border-bottom:1px solid #f1f2f4;background:transparent;text-align:left;}
.tp-market-trade-row>span{min-width:0;display:grid;gap:3px;}
.tp-market-trade-main b{width:max-content;padding:2px 6px;border-radius:5px;font-size:11px;font-weight:600;}
.tp-market-trade-main b.is-buy{background:#effbf6;color:var(--tp-market-rise);}
.tp-market-trade-main b.is-sell{background:#fff1f0;color:var(--tp-market-fall);}
.tp-market-trade-main strong,.tp-market-trade-value strong,.tp-market-trade-wallet strong{overflow:hidden;color:#42484f;font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;}
.tp-market-trade-main small,.tp-market-trade-value small,.tp-market-trade-wallet small{color:#a0a6ad;font-size:10px;}
.tp-market-trade-wallet{text-align:right;}

.tp-market-stats-summary{display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:9px;}
.tp-market-stats-summary>div{min-width:0;padding:13px 12px;display:grid;gap:5px;border-radius:12px;background:#f5f6fa;}
.tp-market-stats-summary span{color:#969ca4;font-size:11px;}
.tp-market-stats-summary strong{overflow:hidden;color:#3c4248;font-size:15px;text-overflow:ellipsis;white-space:nowrap;}
.tp-market-stats-summary small{color:#56aa91;font-size:9px;}

.tp-market-period-grid{display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden;border:1px solid #edf0f3;border-radius:12px 12px 0 0;}
.tp-market-period-grid>div{padding:12px 7px;display:grid;gap:5px;text-align:center;border-right:1px solid #edf0f3;}
.tp-market-period-grid>div:last-child{border-right:0;background:#fff3f2;}
.tp-market-period-grid span,.tp-market-period-grid small{color:#999fa7;font-size:10px;}
.tp-market-period-grid strong{font-size:14px;}

.tp-market-flow-card{padding:14px;border:1px solid #edf0f3;border-top:0;border-radius:0 0 12px 12px;}
.tp-market-flow-title,.tp-market-flow-values{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.tp-market-flow-title span{color:#8e959d;font-size:11px;}
.tp-market-flow-title strong{color:#3c4248;font-size:14px;}
.tp-market-flow-title.second{margin-top:16px;}
.tp-market-flow-values{margin-top:8px;font-size:11px;}
.tp-market-flow-values .is-buy{color:var(--tp-market-rise);}
.tp-market-flow-values .is-sell{color:var(--tp-market-fall);}
.tp-market-flow-bar{height:8px;margin-top:7px;display:flex;overflow:hidden;border-radius:5px;background:#eef0f2;}
.tp-market-flow-bar i{display:block;height:100%;}
.tp-market-flow-bar i.is-buy{background:var(--tp-market-rise);}
.tp-market-flow-bar i.is-sell{background:var(--tp-market-fall);}

.tp-market-holding-wallet-card{min-height:72px;padding:0 16px;display:grid;grid-template-columns:42px 1fr 20px;align-items:center;gap:10px;border-radius:15px;background:#f5f6fa;color:#9298a0;}
.tp-market-holding-wallet-card strong{font-size:13px;font-weight:500;}
.tp-market-holding-chain-dot{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#24272c;color:#f0b735;font-size:20px;}
.tp-market-history-title{margin-top:34px;}
.tp-market-history-empty{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#a4a9b0;font-size:12px;text-align:center;}
.tp-market-history-coins{color:#d6d9dd;font-size:52px;letter-spacing:-18px;margin-right:18px;}
.tp-market-history-empty button{height:34px;padding:0 14px;border:0;border-radius:17px;background:#f2f4f7;color:#4d7fbf;font-size:11px;}

.tp-market-liquidity-total{padding:18px;border-radius:15px;background:#f5f6fa;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;}
.tp-market-liquidity-total strong{color:#333940;font-size:26px;}
.tp-market-liquidity-total small{color:#9aa0a7;font-size:10px;text-align:right;}

.tp-market-top-pools{display:grid;border-radius:15px;background:#f5f6fa;overflow:hidden;}
.tp-market-top-pools button{min-height:62px;padding:8px 14px;display:grid;grid-template-columns:1fr 85px 80px;align-items:center;gap:8px;border:0;border-bottom:1px solid #eaedf0;background:transparent;text-align:left;}
.tp-market-top-pools button:last-child{border-bottom:0;}
.tp-market-top-pools div{min-width:0;display:grid;gap:2px;}
.tp-market-top-pools strong{overflow:hidden;color:#3a4046;font-size:13px;text-overflow:ellipsis;white-space:nowrap;}
.tp-market-top-pools small{color:#9da3aa;font-size:10px;}
.tp-market-top-pools em{color:#3c4248;font-size:12px;font-style:normal;text-align:right;}

.tp-market-pool-mini-bar{height:6px;overflow:hidden;border-radius:4px;background:#e4e8ec;}
.tp-market-pool-mini-bar i{display:block;height:100%;border-radius:4px;background:#3d8bf6;}

.tp-market-pool-switch{height:54px;margin-top:20px;display:flex;align-items:center;gap:28px;border-bottom:1px solid #edf0f3;}
.tp-market-pool-switch strong{position:relative;font-size:16px;}
.tp-market-pool-switch strong:after{content:"";position:absolute;left:0;bottom:-18px;width:34px;height:3px;border-radius:2px;background:#333;}
.tp-market-pool-switch span{color:#9aa0a7;font-size:15px;}

.tp-market-pool-filters{display:flex;gap:10px;margin:14px 0;}
.tp-market-pool-filters button{min-width:72px;height:34px;border:0;border-radius:9px;background:#f3f5f8;color:#9aa0a7;}
.tp-market-pool-filters button.is-active{background:#edf5ff;color:#4388e8;}

.tp-market-pool-detail-list{display:grid;}
.tp-market-pool-detail-list>button{min-height:62px;padding:8px 0;display:grid;grid-template-columns:1.1fr .8fr .8fr;align-items:center;gap:8px;border:0;border-bottom:1px solid #f0f2f4;background:transparent;text-align:left;}
.tp-market-pool-detail-list div{min-width:0;display:grid;gap:3px;}
.tp-market-pool-detail-list span,.tp-market-pool-detail-list small{overflow:hidden;color:#9ba1a8;font-size:10px;text-overflow:ellipsis;white-space:nowrap;}
.tp-market-pool-detail-list strong{overflow:hidden;color:#383e44;font-size:11px;text-overflow:ellipsis;white-space:nowrap;}
.tp-market-real-data-note{margin-top:14px;padding:10px 12px;border-radius:10px;background:#fafbfc;color:#a1a7ae;font-size:10px;line-height:1.5;}

.tp-market-holder-title-row,.tp-market-holder-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.tp-market-holder-title-row>span{width:42px;height:30px;display:grid;place-items:center;border-radius:15px;background:#f3f5f8;color:#333;}

.tp-market-holder-concentration{padding:17px;display:grid;grid-template-columns:1fr 1fr;gap:14px 28px;border-radius:15px;background:#f5f6fa;}
.tp-market-holder-concentration div{display:grid;gap:4px;}
.tp-market-holder-concentration span{color:#999fa7;font-size:11px;}
.tp-market-holder-concentration strong{color:#3a4046;font-size:14px;font-weight:500;}

.tp-market-holder-section-head{margin-top:22px;}
.tp-market-holder-section-head>div{display:flex;border-radius:16px;background:#f4f5f7;overflow:hidden;}
.tp-market-holder-section-head button{height:32px;padding:0 11px;border:0;background:transparent;color:#6f757c;font-size:10px;}
.tp-market-holder-section-head button.is-active{background:#fff;color:#333;font-weight:600;}

.tp-market-holder-table-head{height:36px;display:grid;grid-template-columns:1.15fr .65fr 1fr;align-items:center;color:#9ba1a8;font-size:10px;}
.tp-market-holder-table-head span:nth-child(2){text-align:center;}
.tp-market-holder-table-head span:nth-child(3){text-align:right;}

.tp-market-holder-list{display:grid;}
.tp-market-holder-row{min-height:66px;display:grid;grid-template-columns:28px 1fr 60px 100px;align-items:center;gap:7px;border-bottom:1px solid #f1f2f4;}
.tp-market-holder-rank{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#f1f3f5;color:#8b9198;font-size:10px;}
.tp-market-holder-row>strong{overflow:hidden;color:#3b4148;font-size:11px;text-overflow:ellipsis;white-space:nowrap;}
.tp-market-holder-row>em{color:#50565d;font-size:11px;font-style:normal;text-align:center;}
.tp-market-holder-value{min-width:0;display:grid;gap:2px;text-align:right;}
.tp-market-holder-value strong{color:#3b4148;font-size:11px;}
.tp-market-holder-value small{overflow:hidden;color:#9ca2aa;font-size:9px;text-overflow:ellipsis;white-space:nowrap;}

.tp-market-token-info-page{padding:20px 20px 34px;background:#fff;}
.tp-market-token-profile-card{padding:20px;border-radius:18px;background:#f5f6fa;}
.tp-market-token-profile-main{display:flex;align-items:center;gap:12px;}
.tp-market-token-profile-main .tp-market-token-icon{width:52px;height:52px;flex:0 0 52px;}
.tp-market-token-profile-main>div{display:grid;gap:2px;}
.tp-market-token-profile-main strong{color:#30353b;font-size:18px;}
.tp-market-token-profile-main span,.tp-market-token-profile-card>small{color:#999fa7;font-size:12px;}
.tp-market-token-profile-card>small{display:block;margin-top:12px;}

.tp-market-token-profile-links{margin-top:14px;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;}
.tp-market-token-profile-links::-webkit-scrollbar{display:none;}

.tp-market-info-link{min-width:max-content;height:36px;padding:0 14px;border:0;border-radius:18px;background:#fff;color:#3f454c;font-size:12px;}
.tp-market-info-title{margin:25px 0 12px;color:#30353b;font-size:18px;font-weight:700;}

.tp-market-description-card,.tp-market-category-card,.tp-market-basic-card,.tp-market-market-card{border-radius:18px;background:#f5f6fa;}
.tp-market-description-card{padding:18px;color:#3e444b;font-size:13px;line-height:1.7;}
.tp-market-description-card p{margin:0;white-space:pre-wrap;}

.tp-market-mechanism-row{margin-top:16px;padding:14px 15px;border-radius:14px;background:#fff;display:flex;gap:8px;}
.tp-market-mechanism-row span{color:#565c63;white-space:nowrap;}
.tp-market-mechanism-row strong{color:#3e444b;font-weight:500;}

.tp-market-category-card{padding:17px;display:flex;flex-wrap:wrap;gap:8px;}
.tp-market-category-card span{padding:9px 14px;border-radius:18px;background:#fff;color:#41474e;font-size:12px;}

.tp-market-basic-card,.tp-market-market-card{padding:0 17px;}
.tp-market-basic-card>div,.tp-market-market-card>div{min-height:54px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #e9ebee;}
.tp-market-basic-card>div:last-child,.tp-market-market-card>div:last-child{border-bottom:0;}
.tp-market-basic-card span,.tp-market-market-card span{color:#969ca4;font-size:12px;}
.tp-market-basic-card strong,.tp-market-market-card strong,.tp-market-basic-card button{margin-left:auto;max-width:68%;overflow:hidden;border:0;background:transparent;color:#3d434a;font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;}
.tp-market-basic-card button{text-decoration:underline;text-decoration-style:dotted;}

.tp-market-disclaimer{margin-top:24px;color:#8f959d;font-size:12px;line-height:1.6;}
.tp-market-disclaimer span{display:block;margin-top:7px;color:#a1a6ad;}

.tp-market-security-page{padding:18px 20px 34px;background:#fff;}
.tp-market-security-note{color:#9ba1a8;font-size:12px;line-height:1.65;}
.tp-market-security-title{margin:20px 0 11px;color:#30353b;font-size:18px;}

.tp-market-security-overview{min-height:82px;padding:0 18px;display:grid;grid-template-columns:1fr 1px 1fr;align-items:center;border-radius:17px;background:#f5f6fa;}
.tp-market-security-overview>div{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:9px;}
.tp-market-security-overview>i{width:1px;height:36px;background:#dde1e5;}
.tp-market-security-overview span{font-size:23px;}
.tp-market-security-overview .is-high span{color:#ef5e5b;}
.tp-market-security-overview .is-medium span{color:#f28e32;}
.tp-market-security-overview strong{color:#3b4148;font-size:14px;}
.tp-market-security-overview b{color:#333940;font-size:21px;}

.tp-market-tax-head{height:30px;display:grid;grid-template-columns:1fr 90px 90px;align-items:center;color:#969ca4;font-size:11px;text-align:center;}

.tp-market-tax-card,.tp-market-security-checks{overflow:hidden;border-radius:17px;background:#f5f6fa;}
.tp-market-tax-card>div{min-height:52px;padding:0 16px;display:grid;grid-template-columns:1fr 90px 90px;align-items:center;gap:8px;border-bottom:1px solid #e6e9ed;}
.tp-market-tax-card>div:last-child{border-bottom:0;}
.tp-market-tax-card strong{color:#42484f;font-size:12px;}
.tp-market-tax-card span{color:#555b62;font-size:12px;text-align:center;}

.tp-market-security-check-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;}
.tp-market-security-check-head>div{display:grid;grid-template-columns:65px 55px;color:#8f959d;font-size:10px;text-align:center;}

.tp-market-security-matrix{padding:7px 16px;}
.tp-market-security-matrix>div{min-height:48px;display:grid;grid-template-columns:1fr 65px 55px;align-items:center;gap:8px;border-bottom:1px solid #e7eaed;}
.tp-market-security-matrix>div:last-child{border-bottom:0;}
.tp-market-security-matrix strong{color:#454b52;font-size:12px;}

.tp-market-security-cell{font-size:11px;text-align:center;}
.tp-market-security-cell.is-safe{color:#17aa83;}
.tp-market-security-cell.is-risk{color:#e75e58;}
.tp-market-security-cell.is-neutral{color:#9ca2aa;}

.tp-market-security-unavailable{min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;}
.tp-market-security-unavailable strong{color:#3d4349;font-size:15px;}
.tp-market-security-unavailable span{color:#9ca2aa;font-size:11px;}

.tp-market-detail-fixed-actions{position:fixed;z-index:30;left:50%;bottom:0;width:min(100%,430px);padding:10px 14px calc(10px + env(safe-area-inset-bottom));box-sizing:border-box;transform:translateX(-50%);display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid #eff0f2;background:#fff;}
.tp-market-detail-fixed-actions button{height:50px;border:0;border-radius:12px;background:#f3f4f7;color:#343940;font-size:16px;}
.tp-market-detail-fixed-actions button.primary{background:#2980FE;color:#fff;}

.tp-market-row[role="button"]{cursor:pointer;}
/* =========================================================
 * Market Detail Meme Mode
 * Real quick swap sheet
 * ========================================================= */

.tp-market-kline-nested-layer.is-meme-guide
.tp-market-kline-nested-panel {
  width: 100%;
  max-height: calc(100vh - 90px);
  padding: 0;
  overflow: auto;
  border-radius: 24px 24px 0 0;
  background: #fff;
}

.tp-market-kline-nested-layer.is-meme-trade
.tp-market-kline-nested-panel {
  width: 100%;
  height: 51vh;
  height: 51dvh;
  max-height: calc(100dvh - 80px);
  padding: 0;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-sizing: border-box;
}
.tp-meme-guide {
  padding:
    0 20px
    calc(22px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: #fff;
}

.tp-meme-trade {
  height: 100%;
  min-height: 0;
  padding:
    0 20px
    calc(30px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.tp-meme-trade-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.tp-meme-guide-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tp-meme-trade-head {
  min-height: 50px;
  flex: 0 0 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tp-meme-guide-head strong,
.tp-meme-trade-head strong {
  color: #272b31;
  font-size: 20px;
  font-weight: 600;
}

.tp-meme-guide-head button,
.tp-meme-trade-head button{
  position:absolute;
  right:0;
  top:15px;
  width:40px;
  height:40px;
  padding:0;
  border:0;
  background:transparent;
  color:#33383e;
  font-size:34px;
  font-weight:300;
  line-height:40px;
}


.tp-meme-guide-body{
  padding-top:4px;
}


.tp-meme-guide-body section{
  margin-bottom:25px;
}


.tp-meme-guide-body h3{
  margin:0 0 7px;
  color:#292d33;
  font-size:18px;
  font-weight:500;
}


.tp-meme-guide-body p{
  margin:0;
  color:#969ba3;
  font-size:15px;
  line-height:1.65;
}


.tp-meme-guide-confirm{
  width:100%;
  height:54px;
  margin-top:18px;
  border:0;
  border-radius:10px;
  background:#2980fe;
  color:#fff;
  font-size:18px;
}


/* Buy / Sell */
.tp-meme-side-tabs {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 3px;
  border-radius: 22px;
  background: #f3f4f7;
}

.tp-meme-side-tabs button {
  min-width: 70px;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #383d44;
  font-size: 15px;
}

.tp-meme-side-tabs button.is-active:first-child{
  background:#19ad86;
  color:#fff;
}


.tp-meme-side-tabs button.is-active:last-child{
  background:#ef625c;
  color:#fff;
}

.tp-meme-balance-row {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #272c32;
  font-size: 14px;
}

.tp-meme-balance-row span:last-child{
  color:#9aa0a8;
  font-size:13px;
  text-align:right;
}
.tp-meme-balance-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:9px;
}


.tp-meme-balance-actions span{
  color:#9aa0a8;
  font-size:13px;
}


.tp-meme-balance-actions button{
  padding:0;
  border:0;
  background:transparent;
  color:#2980fe;
  font-size:14px;
}

.tp-meme-amount-box {
  height: 52px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e3e5e8;
  border-radius: 11px;
  background: #fff;
}

.tp-meme-amount-box input{
  min-width:0;
  flex:1;
  height:100%;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:#353940;
  font-size:18px;
}


.tp-meme-amount-box strong{
  color:#3c4148;
  font-size:16px;
  font-weight:500;
}


.tp-meme-quick-grid{
  margin-top:8px;
  display:grid;
  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    );
  gap:10px;
}

.tp-meme-quick-grid button {
  height: 40px;
  padding: 0;
  border: 1px solid #e4e6e9;
  border-radius: 10px;
  background: #fff;
  color: #444950;
  font-size: 15px;
}

.tp-meme-quick-grid button:active{
  border-color:#2980fe;
  background:#eef5ff;
}

.tp-meme-settings-row {
  min-height: 44px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9ba0a7;
  font-size: 14px;
}

.tp-meme-gas-presets{
  margin-left:auto;
  padding:3px;
  display:flex;
  align-items:center;
  gap:2px;
  border-radius:22px;
  background:#f3f4f7;
}


.tp-meme-gas-presets button{
  min-width:48px;
  height:34px;
  padding:0 12px;
  border:0;
  border-radius:18px;
  background:transparent;
  color:#444950;
  font-size:14px;
  font-weight:500;
}


.tp-meme-gas-presets button.is-active{
  background:#19ad86;
  color:#fff;
}

.tp-meme-settings-meta {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: #9298a0;
  font-size: 13px;
}

.tp-meme-quote-preview {
  min-height: 24px;
  margin: 3px 0 5px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

.tp-meme-quote-preview summary {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  cursor: pointer;
}

.tp-meme-quote-preview summary::-webkit-details-marker {
  display: none;
}

.tp-meme-quote-preview span{
  color:#979da5;
  font-size:13px;
}


.tp-meme-quote-preview strong{
  min-width:0;
  color:#343941;
  font-size:14px;
  font-weight:500;
  text-align:right;
  max-width: 72%;
  overflow-wrap: anywhere;
word-break: normal;
}

.tp-meme-real-note {
  margin: 6px 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f6f7f9;
  color: #9399a1;
  font-size: 11px;
  line-height: 1.4;
}

.tp-meme-submit {
  width: 100%;
  height: 52px;
  flex: 0 0 52px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
}

.tp-meme-submit.is-buy{
  background:#18ab82;
}


.tp-meme-submit.is-sell{
  background:#ef625c;
}


.tp-meme-submit:disabled{
  opacity:.6;
}

/* =========================================================
 * Meme Mode Wallet Picker
 * TP-style current-chain wallet selection
 * ========================================================= */
.tp-market-kline-nested-layer.is-meme-wallet-picker
.tp-market-kline-nested-panel {
  width: 100%;
  height: 74dvh;
  min-height: 0;
  max-height: calc(100dvh - 72px);
  padding: 0;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-sizing: border-box;
}
.tp-meme-wallet-picker {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 顶部：搜索 / 钱包列表 / 关闭 */
.tp-meme-wallet-picker-head{
  flex:0 0 64px;
  min-height:64px;
  padding:0 18px;
  display:grid;
  grid-template-columns:42px 1fr 42px;
  align-items:center;
  border-bottom:1px solid #eff0f2;
  box-sizing:border-box;
}

.tp-meme-wallet-picker-head > strong {
  justify-self: center;
  color: #24282e;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.tp-meme-wallet-picker-head > button{
  justify-self:end;
  width:38px;
  height:38px;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:#32363c;
  font-size:27px;
  font-weight:300;
  line-height:38px;
}


/* 搜索 */
.tp-meme-wallet-search{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  position:relative;
  z-index:3;
}


.tp-meme-wallet-search svg{
  width:24px;
  height:24px;
  flex:0 0 24px;
  fill:none;
  stroke:#30353b;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}


.tp-meme-wallet-search input{
  position:absolute;
  left:32px;
  top:1px;
  width:0;
  height:36px;
  padding:0;
  border:0;
  outline:0;
  opacity:0;
  background:#f4f5f7;
  border-radius:18px;
  color:#252a30;
  font-size:13px;
  box-sizing:border-box;
  transition:
    width .18s ease,
    opacity .18s ease,
    padding .18s ease;
}


.tp-meme-wallet-search:focus-within input{
  width:170px;
  padding:0 13px;
  opacity:1;
}


/* TP布局：左链栏 + 右钱包区域 */
.tp-meme-wallet-main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  overflow: hidden;
}

.tp-meme-wallet-rail {
  min-height: 100%;
  padding: 14px 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #f4f5f8;
  box-sizing: border-box;
}

.tp-meme-wallet-rail-item{
  width:64px;
  height:64px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  outline:0;
  background:transparent;
}


/*
 * 必须同时限制外层、svg、img。
 * 防止 chainIconHtml 内部图片继承其它全局尺寸后变成大圆。
 */
.tp-meme-wallet-chain-icon,
.tp-meme-wallet-chain-icon svg,
.tp-meme-wallet-chain-icon img {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  display: block !important;
  object-fit: contain !important;
  border-radius: 50% !important;
}

.tp-meme-wallet-content{
  min-width:0;
  min-height:0;
  padding:17px 18px 26px 18px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#fff;
  box-sizing:border-box;
}


/* 币安智能链 + 添加钱包 */
.tp-meme-wallet-chain-head {
  flex: 0 0 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-meme-wallet-chain-head > strong {
  color: #30343a;
  font-size: 16px;
  font-weight: 500;
}

.tp-meme-wallet-add{
  width:32px;
  height:32px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #4f555c;
  border-radius:50%;
  outline:0;
  background:#fff;
  color:#4f555c;
  font-size:24px;
  font-weight:400;
  line-height:26px;
}


/* 钱包卡列表 */
.tp-meme-wallet-list{
  flex:1 1 auto;
  min-height:0;
  padding:4px 0 0;
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow-y:auto;
  overflow-x:hidden;
}


/*
 * Meme钱包列表必须覆盖普通 wallet-list-card
 * 针对 network-bnb / network-eth 的链配色。
 *
 * TP参考图这里统一是黑卡。
 */
.tp-meme-wallet-card,
.tp-meme-wallet-card.is-current {
  --tp-wallet-card-bg: #050607;
  --tp-wallet-card-main: #ebb900;
  --tp-wallet-card-muted: #826c37;
  --tp-wallet-card-accent: #d7aa20;

  width: 100% !important;
  min-height: 80px !important;
  margin: 0 !important;
  padding: 9px 11px !important;

  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;

  border: 0 !important;
  border-radius: 12px !important;
  outline: 0 !important;

  background: var(--tp-wallet-card-bg) !important;
  background-image: none !important;

  box-shadow: none !important;
  text-align: left !important;
  color: var(--tp-wallet-card-main) !important;
}

/* Solana 网络卡片保留独立紫色主题 */
.tp-meme-wallet-card[class*="network-sol"] {
  --tp-wallet-card-bg: #784bb8;
  --tp-wallet-card-main: #ffffff;
  --tp-wallet-card-muted: rgba(255,255,255,.72);
  --tp-wallet-card-accent: rgba(255,255,255,.8);
}

/* 清理普通钱包卡可能带进来的装饰 */
.tp-meme-wallet-card::before,
.tp-meme-wallet-card::after{
  display:none !important;
  content:none !important;
}


/* 钱包名称 */
.tp-meme-wallet-card
.tp-wallet-card-top{
  min-height:auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
}


.tp-meme-wallet-card
.tp-wallet-card-title{
  display:flex !important;
  align-items:center !important;
  gap:7px !important;
}

.tp-meme-wallet-card
.tp-wallet-card-title > strong {
  color: var(--tp-wallet-card-main) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

/* HD标签 */
.tp-meme-wallet-card
.tp-wallet-hd-badge {
  padding: 1px 5px !important;
  border: 1px solid var(--tp-wallet-card-accent) !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--tp-wallet-card-accent) !important;
  font-size: 10px !important;
  line-height: 14px !important;
}

/* 地址 */
.tp-meme-wallet-card
.tp-wallet-card-address-row {
  margin-top: 4px !important;
  min-height: auto !important;
}

.tp-meme-wallet-card
.tp-wallet-card-address {
  color: var(--tp-wallet-card-muted) !important;
  font-size: 11px !important;
}

/* 余额 */
.tp-meme-wallet-card
.tp-wallet-card-balance-row {
  margin-top: 6px !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.tp-meme-wallet-card
.tp-wallet-card-balance-row > strong {
  color: var(--tp-wallet-card-main) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* 当前钱包也不要再出现普通蓝边 */
.tp-meme-wallet-card.is-current{
  border:0 !important;
  box-shadow:none !important;
}


/* 空状态 */
.tp-meme-wallet-empty{
  min-height:180px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#9da2aa;
}


.tp-meme-wallet-empty strong{
  color:#4b5057;
  font-size:16px;
}


.tp-meme-wallet-empty span{
  font-size:13px;
}

/* =========================================================
 * Market Detail Trade - Add Token
 * ========================================================= */

.tp-market-kline-nested-layer.is-market-trade-token-add
.tp-market-kline-nested-panel{
  width:100%;
  padding:0;
  overflow:hidden;
  border-radius:24px 24px 0 0;
  background:#fff;
}


.tp-market-trade-add-token{
  padding:0 20px 28px;
  background:#fff;
  box-sizing:border-box;
}


.tp-market-trade-add-head{
  min-height:64px;
  display:grid;
  grid-template-columns:42px 1fr 42px;
  align-items:center;
  border-bottom:1px solid #eff0f2;
}


.tp-market-trade-add-head::before{
  content:"";
}


.tp-market-trade-add-head > strong{
  justify-self:center;
  color:#25292f;
  font-size:19px;
  font-weight:600;
}


.tp-market-trade-add-head > button{
  justify-self:end;
  width:38px;
  height:38px;
  padding:0;
  border:0;
  background:transparent;
  color:#30353b;
  font-size:28px;
}


.tp-market-trade-token-card{
  margin-top:22px;
  display:flex;
  align-items:center;
  gap:13px;
}


.tp-market-trade-token-icon,
.tp-market-trade-token-icon img,
.tp-market-trade-token-icon svg{
  width:48px !important;
  height:48px !important;
  min-width:48px !important;
  min-height:48px !important;
  max-width:48px !important;
  max-height:48px !important;
  border-radius:50%;
  object-fit:contain;
}


.tp-market-trade-token-card > div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}


.tp-market-trade-token-card strong{
  color:#24282e;
  font-size:19px;
}


.tp-market-trade-token-card span{
  color:#9399a1;
  font-size:13px;
}


.tp-market-trade-token-info{
  margin-top:22px;
  padding:4px 16px;
  border-radius:14px;
  background:#f6f7f9;
}


.tp-market-trade-token-info > div{
  min-height:52px;
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  align-items:center;
  gap:12px;
  border-bottom:1px solid #e9eaed;
}


.tp-market-trade-token-info > div:last-child{
  border-bottom:0;
}


.tp-market-trade-token-info span{
  color:#999fa7;
  font-size:13px;
}


.tp-market-trade-token-info strong{
  min-width:0;
  color:#363b42;
  font-size:13px;
  font-weight:500;
  text-align:right;
  word-break:break-all;
}


.tp-market-trade-token-warning{
  margin:16px 2px 0;
  color:#8f959d;
  font-size:12px;
  line-height:1.6;
}


.tp-market-trade-token-confirm{
  width:100%;
  height:52px;
  margin-top:24px;
  border:0;
  border-radius:26px;
  background:#247cff;
  color:#fff;
  font-size:17px;
  font-weight:600;
}
/* Trade */

.tp-trade-page {
  padding-top:
    max(
      6px,
      env(safe-area-inset-top)
    );
  background: #f4f5f7;
}

.tp-trade-header {
  min-height: 55px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-trade-tabs {
  display: flex;
  align-items: center;
  gap: 19px;
}

.tp-trade-tabs button {
  position: relative;
  height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9499a1;
  font-size: 13px;
}

.tp-trade-tabs button.is-active {
  color: var(--tp-dark-text, #292d33);
  font-weight: 600;
}

.tp-trade-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 21px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: #2980FE;
}

.tp-trade-tabs button span {
  margin-left: 2px;
  font-size: 9px;
}

.tp-trade-network {
  height: 32px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 16px;
  background: var(--tp-dark-surface, #ffffff);
  color: var(--tp-dark-text, #555a62);
}

.tp-trade-network-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #e54848;
}

.tp-trade-network strong {
  font-size: 10px;
  font-weight: 500;
}

.tp-trade-network > span:last-child {
  color: #92979f;
  font-size: 9px;
}

.tp-swap-card {
  position: relative;
  margin: 2px 12px 12px;
  padding: 15px;
  border-radius: 16px;
  background: var(--tp-dark-surface, #ffffff);
}

.tp-swap-card-tools {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-swap-card-tools > span {
  color: var(--tp-dark-text, #20252b);
  font-size: 23px;
  font-weight: 750;
  font-style: italic;
  line-height: 1.2;
}

.tp-swap-card-tools > div {
  display: flex;
  gap: 6px;
}

.tp-swap-card-tools button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--tp-dark-surface-2, #f7f8fa);
  color: var(--tp-dark-muted, #747a82);
}

.tp-swap-asset {
  min-height: 112px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 16px;
  background: var(--tp-dark-surface-2, #f2f3f6);
}

.tp-swap-label {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #969ba3;
  font-size: 12px;
}

.tp-swap-asset-main {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-swap-token {
  min-width: 135px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  text-align: left;
}

.tp-swap-token-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #23a391;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.tp-swap-token-icon.is-trx {
  background: #e94c4c;
}

.tp-swap-token > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tp-swap-token strong {
  color: var(--tp-dark-text, #292d33);
  font-size: 15px;
}

.tp-swap-token small {
  color: var(--tp-dark-muted, #9ba0a8);
  font-size: 9px;
}

.tp-swap-token b {
  color: var(--tp-dark-muted, #9ba0a8);
  font-size: 10px;
}

.tp-swap-asset-main input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--tp-dark-text, #292d33);
  font-size: 24px;
  text-align: right;
}

.tp-swap-asset-main input::placeholder {
  color: #c1c5ca;
}

.tp-swap-balance {
  min-height: 22px;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--tp-dark-muted, #a1a6ae);
  font-size: 11px;
}

.tp-swap-balance button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2980FE;
  font-size: 11px;
}

.tp-swap-balance-wallet-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--tp-dark-muted, #a1a6ae);
}

.tp-swap-direction {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin: -5px auto;
  display: block;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: #eef5ff;
  color: #2980FE;
  font-size: 17px;
}

.tp-swap-submit {
  width: 100%;
  height: 50px;
  margin-top: 15px;
  border: 0;
  border-radius: 10px;
  background: #2980FE;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 6px 16px rgba(41, 128, 254, .18);
  transition:
    background .16s ease,
    transform .08s ease,
    box-shadow .16s ease;
}

.tp-swap-submit:not(:disabled):active {
  background: #1f73ef;
  transform: scale(.99);
  box-shadow:
    0 3px 10px rgba(41, 128, 254, .14);
}

.tp-swap-submit:disabled {
  background: #d8e8ff;
  color: #ffffff;
  opacity: 1;
  cursor: default;
  box-shadow: none;
}
.tp-swap-info {
  margin-top: 15px;
  padding-top: 12px;
  border-top:
    1px solid var(--tp-dark-line, #f0f1f3);
}

.tp-swap-info > div {
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-swap-info span {
  color: var(--tp-dark-muted, #9ba0a8);
  font-size: 11px;
}

.tp-swap-info strong {
  color: var(--tp-dark-text, #656b73);
  font-size: 11px;
  font-weight: 500;
}

.tp-trade-recent {
  margin: 0 12px;
  padding: 15px;
  border-radius: 15px;
  background: var(--tp-dark-surface, #ffffff);
}

.tp-trade-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-trade-recent-head strong {
  color: var(--tp-dark-text, #2c3036);
  font-size: 13px;
}

.tp-trade-recent-head button {
  border: 0;
  background: transparent;
  color: var(--tp-dark-muted, #7e848d);
  font-size: 10px;
}

.tp-trade-empty {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #b0b4bb;
}

.tp-trade-empty span {
  font-size: 25px;
}

.tp-trade-empty strong {
  font-size: 10px;
  font-weight: 400;
}

/*
 * =========================================================
 * TP Market Trade Mode
 *
 * 只用于：
 * 行情详情 -> 交易
 *
 * 普通底部交易Tab完全不受影响。
 * =========================================================
 */

.tp-market-trade-page-header {
  display: none;
}


html.tp-market-trade-mode
.bottom-nav {
  display: none !important;
}


html.tp-market-trade-mode
.tp-trade-header {
  display: none !important;
}


html.tp-market-trade-mode
.tp-trade-page {
  min-height: 100vh;
  padding:
    max(
      8px,
      env(safe-area-inset-top)
    )
    0
    26px;
  box-sizing: border-box;
  background: #f1f2f6;
}


html.tp-market-trade-mode
.tp-market-trade-page-header {
  min-height: 62px;
  padding: 0 18px;
  display: grid;
  grid-template-columns:
    70px
    minmax(0, 1fr)
    70px;
  align-items: center;
  box-sizing: border-box;
}


.tp-market-trade-wallet {
  width: 62px;
  height: 40px;
  padding: 0 9px 0 5px;
  position: relative;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  color: #2c3137;
}


.tp-market-trade-wallet-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2f3f6;
}


.tp-market-trade-wallet-avatar svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #777d85;
  stroke-width: 1.6;
  stroke-linecap: round;
}


.tp-market-trade-wallet-chain-badge {
  width: 17px;
  height: 17px;
  position: absolute;
  left: 26px;
  bottom: 2px;
  display: block;
  overflow: hidden;
  border:
    2px solid
    #ffffff;
  border-radius: 50%;
  background: #ffffff;
}


.tp-market-trade-chain-icon,
.tp-market-trade-chain-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}


.tp-market-trade-wallet > b {
  margin-left: auto;
  color: #9aa0a8;
  font-size: 10px;
  font-weight: 500;
}


.tp-market-trade-page-title {
  justify-self: center;
  color: #20252b;
  font-size: 20px;
  font-weight: 650;
}


.tp-market-trade-page-close {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-self: end;
  border: 0;
  background: transparent;
  color: #20252b;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

html.tp-market-trade-mode
.tp-swap-card {
  margin: 0 14px 12px;
  padding: 15px 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

html.tp-market-trade-mode
.tp-swap-card-tools {
  min-height: 44px;
  margin-bottom: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}


html.tp-market-trade-mode
.tp-swap-card-tools > span {
  color: #20252b;
  font-size: 23px;
  font-weight: 750;
  font-style: italic;
}


html.tp-market-trade-mode
.tp-swap-card-tools > div {
  display: flex;
  gap: 8px;
}


html.tp-market-trade-mode
.tp-swap-card-tools button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #343a41;
  font-size: 20px;
}


html.tp-market-trade-mode
[data-swap-refresh] {
  display: grid;
  place-items: center;
  padding: 0;
  pointer-events: none;
}

.tp-swap-refresh-symbol {
  display: none;
}

.tp-market-trade-quote-countdown {
  --quote-progress: 0deg;

  position: relative;
  width: 25px;
  height: 25px;
  display: block;
  border-radius: 50%;
  background:
    conic-gradient(
      #292e34
      0deg
      var(--quote-progress),
      #e1e4e8
      var(--quote-progress)
      360deg
    );
}

.tp-market-trade-quote-countdown::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #ffffff;
}

html.tp-market-trade-mode
.tp-swap-asset {
  min-height: 110px;
  padding: 12px 13px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  grid-template-rows:
    auto
    1fr;
  box-sizing: border-box;
  border-radius: 16px;
  background: #f2f3f6;
}

html.tp-market-trade-mode
.tp-swap-label {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  margin: 0;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #9b9fa6;
  font-size: 13px;
}

html.tp-market-trade-mode
.tp-swap-balance {
  min-height: 22px;
  min-width: 0;
  padding: 0;
  margin: 0;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #9b9fa6;
  font-size: 11px;
  white-space: nowrap;
}

html.tp-market-trade-mode
.tp-swap-balance button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2980fe;
  font-size: 12px;
}


html.tp-market-trade-mode
.tp-swap-asset-main {
  grid-column:
    1 / -1;
  grid-row: 2;
  width: 100%;
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 12px;
}


html.tp-market-trade-mode
.tp-swap-token {
  min-width: 135px;
  height: 60px;
  padding:
    7px
    10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 19px;
  background: #ffffff;
  box-sizing: border-box;
}


html.tp-market-trade-mode
.tp-swap-token-icon {
  width: 40px;
  height: 40px;
  flex:
    0 0 40px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: #ffffff;
}


html.tp-market-trade-mode
.tp-swap-token-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}


html.tp-market-trade-mode
.tp-swap-token > span:not(.tp-swap-token-icon) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


html.tp-market-trade-mode
.tp-swap-token strong {
  max-width: 70px;
  overflow: hidden;
  color: var(--tp-dark-text, #22272d);
  font-size: 17px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}


html.tp-market-trade-mode
.tp-swap-token small {
  margin-top: 2px;
  color: var(--tp-dark-muted, #9da2a9);
  font-size: 10px;
}


html.tp-market-trade-mode
.tp-swap-token > b {
  color: var(--tp-dark-muted, #969ca4);
  font-size: 10px;
}


html.tp-market-trade-mode
.tp-swap-asset-main input {
  min-width: 0;
  flex: 1 1 auto;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tp-dark-text, #2b3036);
  font-size: 20px;
  text-align: right;
}
.tp-swap-amount-stack {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}


.tp-swap-amount-stack input {
  width: 100%;
}

.tp-swap-amount-usd {
  min-height: 0;
  margin-top: 2px;
  display: block;
  color: var(--tp-dark-muted, #9ba1a9);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: right;
}

.tp-swap-amount-usd:empty {
  display: none;
}

html.tp-market-trade-mode
.tp-swap-amount-stack {
  max-width: 58%;
}


html.tp-market-trade-mode
.tp-swap-amount-stack input {
  padding: 0;
  text-align: right;
}

html.tp-market-trade-mode
.tp-swap-amount-usd {
  width: 100%;
  min-height: 0;
  text-align: right;
}

html.tp-market-trade-mode
.tp-swap-amount-usd:empty {
  display: none;
}

#swapPriceImpactText.is-good {
  color: #2caf82;
}

html.tp-market-trade-mode
.tp-swap-asset-main input::placeholder {
  color: #c1c5cb;
}


html.tp-market-trade-mode
.tp-swap-direction {
  width: 42px;
  height: 42px;
  margin:
    -5px
    auto;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  border:
    5px solid
    #ffffff;
  border-radius: 50%;
  background: #f1f6ff;
  color: #2980fe;
  font-size: 22px;
  line-height: 1;
}
.tp-swap-direction-icon {
  width: 23px;
  height: 23px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

html.tp-market-trade-mode
.tp-swap-submit {
  width: 100%;
  height: 54px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: #8ebafb;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: none;
}
.tp-swap-quote-error {
  display: none;
}


.tp-swap-quote-error:not([hidden]) {
  margin:
    10px
    2px
    0;
  padding:
    9px
    12px;
  display: block;
  border-radius: 9px;
  background: #fff4f3;
  color: #e45b52;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
}


html.tp-market-trade-mode
.tp-swap-quote-error:not([hidden]) {
  text-align: center;
}

html.tp-market-trade-mode
.tp-swap-submit:disabled {
  background: #9fc4f7;
  color: rgba(255,255,255,.9);
}

html.tp-market-trade-mode
.tp-swap-info {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #eceef1;
  border-radius: 12px;
  background: #ffffff;
  box-sizing: border-box;
}

html.tp-market-trade-mode
.tp-swap-info > div {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html.tp-market-trade-mode
.tp-swap-info span {
  color: #8f959d;
  font-size: 13px;
}


html.tp-market-trade-mode
.tp-swap-info strong {
  max-width: 58%;
  overflow: hidden;
  color: #6d737b;
  font-size: 12px;
  font-weight: 450;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-swap-info-action {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  pointer-events: none;
}


html.tp-market-trade-mode
.tp-swap-info-action {
  pointer-events: auto;
}
html.tp-market-trade-mode
.tp-swap-info-click-row {
  cursor: pointer;
  user-select: none;
}


html.tp-market-trade-mode
.tp-swap-info-click-row:active {
  opacity: 0.72;
}

.tp-swap-info-action strong {
  margin: 0;
}


.tp-swap-info-action b {
  display: none;
  color: #a6abb2;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}


html.tp-market-trade-mode
.tp-swap-info-action b {
  display: inline-block;
}


.tp-swap-mev-badge {
  display: none;
}


html.tp-market-trade-mode
.tp-swap-mev-badge:not([hidden]) {
  padding:
    2px
    5px;
  display: inline-block;
  border:
    1px solid
    #9dc9ff;
  border-radius: 4px;
  background: #f3f8ff;
  color: #478edf;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 15px;
  white-space: nowrap;
}


.tp-swap-info-label-help {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


.tp-swap-info-label-help button {
  display: none;
}


html.tp-market-trade-mode
.tp-swap-info-label-help button {
  width: 15px;
  height: 15px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border:
    1px solid
    #b9bec5;
  border-radius: 50%;
  background: transparent;
  color: #9da3aa;
  font-size: 9px;
  line-height: 1;
}


.tp-swap-amount-stack {
  position: relative;
}


.tp-swap-pay-clear {
  display: none;
}


html.tp-market-trade-mode
.tp-swap-pay-clear {
  position: absolute;
  top: 1px;
  right: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e2e5ea;
  color: #ffffff;
  font-size: 13px;
  line-height: 18px;
}


html.tp-market-trade-mode
#swapPayAmount:placeholder-shown
+
.tp-swap-pay-clear {
  display: none;
}


html.tp-market-trade-mode
.tp-swap-amount-stack
#swapPayAmount {
  padding-right: 23px;
}


.tp-market-trade-detail-sheet {
  padding:
    0
    18px
    24px;
}


.tp-market-trade-detail-head {
  min-height: 64px;
  display: grid;
  grid-template-columns:
    44px
    1fr
    44px;
  align-items: center;
}


.tp-market-trade-detail-head::before {
  content: "";
}


.tp-market-trade-detail-head strong {
  justify-self: center;
  color: #292e34;
  font-size: 20px;
  font-weight: 600;
}


.tp-market-trade-detail-head button {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-self: end;
  border: 0;
  background: transparent;
  color: #292e34;
  font-size: 28px;
}


.tp-market-trade-detail-card {
  padding:
    4px
    15px;
  border-radius: 14px;
  background: #f6f7fa;
}


.tp-market-trade-detail-card > div {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom:
    1px solid
    #e9ebef;
}


.tp-market-trade-detail-card > div:last-child {
  border-bottom: 0;
}


.tp-market-trade-detail-card span {
  color: #858b93;
  font-size: 13px;
}


.tp-market-trade-detail-card strong {
  max-width: 62%;
  overflow-wrap: anywhere;
  color: #343a40;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}


.tp-market-trade-detail-note {
  margin:
    13px
    4px
    0;
  color: #999fa7;
  font-size: 11px;
  line-height: 1.6;
}


.tp-market-trade-route-provider {
  margin-bottom: 14px;
  padding:
    14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 14px;
  background: #f6f7fa;
}


.tp-market-route-provider-badge {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #337ff0;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}


.tp-market-trade-route-provider > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}


.tp-market-trade-route-provider strong {
  color: #30363c;
  font-size: 15px;
  font-weight: 600;
}


.tp-market-trade-route-provider span:not(
  .tp-market-route-provider-badge
) {
  color: #969ca4;
  font-size: 12px;
}

html.tp-market-trade-mode
.tp-market-trade-hide {
  display: none !important;
}


html.tp-market-trade-mode
.tp-trade-recent {
  margin:
    0
    14px;
  padding:
    18px
    18px
    22px;
  border-radius: 18px;
  background: #ffffff;
}


html.tp-market-trade-mode
.tp-trade-recent-head strong {
  color: #24292f;
  font-size: 16px;
}


html.tp-market-trade-mode
.tp-trade-recent-head button {
  color: #9b9fa6;
  font-size: 12px;
}


html.tp-market-trade-mode
.tp-trade-empty {
  min-height: 140px;
}
/* TP_SWAP_MAINNET_HISTORY_UI_V1 */

.tp-swap-history-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  margin: 12px 0 18px;
  box-sizing: border-box;
}

.tp-swap-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #a3a6af;
  font-size: 13px;
}

.tp-swap-history-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-swap-history-actions button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #969aa4;
  font-size: 23px;
  cursor: pointer;
  padding: 0 3px;
}

.tp-swap-history-network {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  border-radius: 13px;
  background: #eef0f6;
  color: #535966;
  font-size: 10px;
  font-weight: 700;
}

.tp-swap-history-status {
  font-size: 15px;
  font-weight: 700;
  margin-top: 5px;
  margin-bottom: 15px;
}

.tp-swap-history-status.success {
  color: #19a879;
}

.tp-swap-history-status.pending {
  color: #d69a20;
}

.tp-swap-history-status.failed {
  color: #e35656;
}

.tp-swap-history-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f8;
  text-align: left;
  cursor: pointer;
}

.tp-swap-history-tokens {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.tp-swap-history-token {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #199a85;
  color: white;
  font-size: 9px;
  font-weight: 700;
  border: 2px solid #f3f4f8;
}

.tp-swap-history-token.buy {
  margin-left: -8px;
  background: #2c63b5;
}

.tp-swap-history-token {
  position: relative;
  overflow: hidden;
}

.tp-swap-history-token img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
}

.tp-swap-history-symbols {
  flex: 1;
  min-width: 0;
  color: #373a42;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.tp-swap-history-amounts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tp-swap-history-amounts strong {
  color: #20ad82;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.tp-swap-history-amounts small {
  color: #a0a3ac;
  font-size: 13px;
}

.tp-swap-history-sheet {
  min-height: 70vh;
  background: #f3f4f9;
  color: #252831;
}

.tp-swap-history-header {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  min-height: 60px;
  padding: 8px 18px;
}

.tp-swap-history-header strong {
  text-align: center;
  font-size: 19px;
}

.tp-swap-history-header button {
  border: 0;
  background: transparent;
  font-size: 32px;
  color: #343841;
  cursor: pointer;
}

.tp-swap-history-list {
  padding: 8px 18px 28px;
}

.tp-swap-history-message {
  padding: 55px 12px;
  color: #9a9ea9;
  text-align: center;
  font-size: 14px;
}

.tp-swap-history-message button {
  display: block;
  margin: 18px auto;
  padding: 10px 20px;
  border: 0;
  border-radius: 9px;
  background: #e4e9f8;
  color: #4279cf;
}

.tp-swap-history-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.tp-swap-history-pagination button {
  border: 0;
  background: white;
  border-radius: 10px;
  padding: 12px 16px;
  color: #3f7ddc;
}

.tp-swap-history-pagination button:disabled {
  opacity: 0.35;
}

.tp-swap-history-detail {
  padding: 15px;
  background: white;
  border-radius: 14px;
}

.tp-swap-history-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f1f4;
  font-size: 13px;
}

.tp-swap-history-detail-row span {
  color: #969aa4;
  flex-shrink: 0;
}

.tp-swap-history-detail-row strong {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.tp-swap-history-note {
  line-height: 1.6;
  color: #a08b55;
  font-size: 12px;
  margin: 18px 0;
}

.tp-swap-history-copy-full {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #ecf2ff;
  color: #4780d9;
  padding: 14px;
}
/* WALLET_NORMAL_SWAP_WALLET_PICKER_V1 */
/*
 * WALLET_NORMAL_SWAP_WALLET_PANEL_V2
 * 只影响普通闪兑的钱包选择弹层。
 */

#walletSheet.is-swap-wallet-picker
.wallet-sheet-panel {
  height: 73vh;
  height: 73dvh;
  max-height: 73vh;
  max-height: 73dvh;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 20px 20px 0 0;
}

#walletSheet.is-swap-wallet-picker
.sheet-handle {
  display: none;
}

#walletSheet.is-swap-wallet-picker
#sheetContent {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.tp-swap-wallet-picker {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  background: #ffffff;
  color: #292d33;
}

.tp-swap-wallet-picker-head {
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  border-bottom: 1px solid #edf0f3;
}

.tp-swap-wallet-picker-head strong {
  text-align: center;
  font-size: 19px;
  font-weight: 500;
}

.tp-swap-wallet-picker-head button {
  width: 44px;
  height: 44px;
  padding: 10px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #343940;
  font-size: 27px;
}

.tp-swap-wallet-picker-head svg {
  width: 24px;
  height: 24px;
}

#swapWalletPickerSearch {
  margin: 10px 14px;
  padding: 12px;
  width: calc(100% - 28px);
  box-sizing: border-box;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  color: #292d33;
  font-size: 14px;
}

#swapWalletPickerSearch[hidden] {
  display: none !important;
}

.tp-swap-wallet-picker-body {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
}

.tp-swap-wallet-rail {
  min-height: 0;
  padding: 6px 0;
  overflow-y: auto;
  background: #f3f4f6;
}

.tp-swap-wallet-rail-item {
  width: 100%;
  height: 62px;
  padding: 6px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  opacity: .42;
  filter: grayscale(1);
}

.tp-swap-wallet-rail-item.is-active {
  background: #ffffff;
  opacity: 1;
  filter: none;
}

.tp-swap-wallet-rail-icon,
.tp-swap-wallet-rail-icon svg,
.tp-swap-wallet-rail-icon img {
  width: 32px;
  height: 32px;
}

.tp-swap-wallet-content {
  min-width: 0;
  min-height: 0;
  padding: 8px 15px 16px 18px;
  overflow-y: auto;
}

.tp-swap-wallet-chain-head {
  min-height: 36px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-swap-wallet-chain-head strong {
  font-size: 17px;
  font-weight: 500;
}

.tp-swap-wallet-chain-head button {
  width: 35px;
  height: 35px;
  border: 0;
  background: transparent;
  color: #30363d;
  font-size: 28px;
}

.tp-swap-wallet-entry {
  position: relative;
  margin-bottom: 12px;
}

.tp-swap-wallet-entry[hidden] {
  display: none !important;
}

.tp-swap-wallet-card {
  width: 100%;
  height: 78px;
  min-height: 78px;
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  background: #c82644;
  color: #ffffff;
  text-align: left;
}

.tp-swap-wallet-card.network-eth {
  background: #526da5;
}

.tp-swap-wallet-card.network-bnb {
  background: #b78b17;
}

.tp-swap-wallet-card.network-solana {
  background: #7056a4;
}

.tp-swap-wallet-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tp-swap-wallet-card-head strong {
  font-size: 16px;
  font-weight: 700;
}

.tp-swap-wallet-card-head b {
  font-size: 23px;
  font-weight: 500;
}

.tp-swap-wallet-address-tools {
  position: absolute;
  top: 32px;
  left: 11px;
  right: 11px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  z-index: 1;
  color: rgba(255, 255, 255, .76);
  font-size: 11px;
  line-height: 17px;
  pointer-events: none;
}

.tp-swap-wallet-address-tools > span {
  min-width: 0;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-swap-wallet-card-balance {
  margin-top: 0;
  padding-top: 0;
  align-self: flex-end;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

.tp-swap-wallet-copy {
  position: static;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  line-height: 18px;
  pointer-events: auto;
}

.tp-swap-wallet-empty {
  padding: 42px 12px;
  color: #a0a5ad;
  font-size: 13px;
  text-align: center;
}

.tp-trade-network[data-network="eth"]
.tp-trade-network-dot {
  background: #627eea;
}

.tp-trade-network[data-network="bnb"]
.tp-trade-network-dot {
  background: #f3ba2f;
}

.tp-trade-network[data-network="solana"]
.tp-trade-network-dot {
  background: #8262d5;
}
/*
 * 钱包选择
 */

.tp-market-trade-wallet-sheet {
  padding:
    0
    16px
    24px;
}


.tp-market-trade-wallet-sheet-head {
  min-height: 58px;
  display: grid;
  grid-template-columns:
    42px
    1fr
    42px;
  align-items: center;
}


.tp-market-trade-wallet-sheet-head::before {
  content: "";
}


.tp-market-trade-wallet-sheet-head strong {
  justify-self: center;
  color: #272c32;
  font-size: 18px;
}


.tp-market-trade-wallet-sheet-head button {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-self: end;
  border: 0;
  background: transparent;
  color: #31363d;
  font-size: 28px;
}


.tp-market-trade-wallet-empty {
  min-height: 130px;
  display: grid;
  place-items: center;
  color: #a0a5ad;
  font-size: 13px;
}


/*
 * 高级设置
 */

.tp-market-trade-settings-sheet {
  padding:
    0
    0
    24px;
}


.tp-market-trade-settings-handle {
  width: 34px;
  height: 4px;
  margin:
    8px
    auto
    5px;
  border-radius: 4px;
  background: #d5d7db;
}


.tp-market-trade-settings-head {
  min-height: 60px;
  padding:
    0
    18px;
  display: grid;
  grid-template-columns:
    42px
    1fr
    42px;
  align-items: center;
}


.tp-market-trade-settings-head::before {
  content: "";
}


.tp-market-trade-settings-head strong {
  justify-self: center;
  color: #262b31;
  font-size: 21px;
  font-weight: 600;
}


.tp-market-trade-settings-head button {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-self: end;
  border: 0;
  background: transparent;
  color: #30353b;
  font-size: 30px;
}


.tp-market-trade-settings-section {
  padding:
    8px
    18px
    24px;
}


.tp-market-trade-settings-title {
  color: #373c42;
  font-size: 16px;
  font-weight: 550;
}


.tp-market-trade-settings-desc {
  margin:
    10px
    0
    18px;
  color: #9a9fa6;
  font-size: 13px;
  line-height: 1.55;
}


.tp-market-trade-slippage-grid {
  display: grid;
  grid-template-columns:
    repeat(
      5,
      minmax(0,1fr)
    );
  overflow: hidden;
  border-radius: 10px;
  background: #f3f4f7;
}


.tp-market-trade-slippage-grid button {
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555b62;
  font-size: 14px;
}


.tp-market-trade-slippage-grid button.is-active {
  border-radius: 9px;
  background: #ffffff;
  color: #30353b;
  font-weight: 600;
  box-shadow:
    0 1px 5px
    rgba(0,0,0,.06);
}


.tp-market-trade-custom-slippage {
  margin-top: 12px;
  display: none;
  align-items: center;
  gap: 10px;
}


.tp-market-trade-custom-slippage.is-open {
  display: flex;
}


.tp-market-trade-custom-slippage > div {
  height: 44px;
  padding:
    0
    12px;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  border:
    1px solid
    #e3e5e8;
  border-radius: 10px;
}


.tp-market-trade-custom-slippage input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  font-size: 14px;
}


.tp-market-trade-custom-slippage span {
  color: #92979e;
}


.tp-market-trade-custom-slippage > button {
  width: 64px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #2980fe;
  color: #ffffff;
}


.tp-market-trade-advanced-list {
  border-top:
    1px solid
    #eceef1;
}


.tp-market-trade-advanced-row {
  width: 100%;
  min-height: 64px;
  padding:
    0
    18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  border: 0;
  border-bottom:
    1px solid
    #eceef1;
  background: #ffffff;
  color: #363b42;
  text-align: left;
}


.tp-market-trade-advanced-row > span:first-child {
  flex: 1 1 auto;
  font-size: 16px;
}


.tp-market-trade-advanced-row > span:first-child i {
  width: 18px;
  height: 18px;
  margin-left: 5px;
  display: inline-grid;
  place-items: center;
  border:
    1px solid
    #b8bdc4;
  border-radius: 50%;
  color: #9ba0a7;
  font-size: 11px;
  font-style: normal;
}


.tp-market-trade-advanced-row strong {
  margin-left: auto;
  color: #9a9fa6;
  font-size: 14px;
  font-weight: 450;
}


.tp-market-trade-advanced-row > b {
  color: #a4a8ae;
  font-size: 25px;
  font-weight: 300;
}


.tp-market-trade-advanced-row.is-disabled {
  cursor: default;
}


.tp-market-trade-switch {
  width: 45px;
  height: 26px;
  margin-left: auto;
  padding: 3px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  border-radius: 14px;
  background: #d9dce1;
}


.tp-market-trade-switch i {
  width: 20px;
  height: 20px;
  display: block;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 1px 3px
    rgba(0,0,0,.15);
}

button.tp-market-trade-switch {
  padding: 3px;
  justify-content: flex-start;
  border: 0;
  outline: 0;
  cursor: pointer;
}


.tp-market-trade-switch.is-on {
  justify-content: flex-end;
  background: #2f80ed;
}

.tp-market-trade-switch.is-disabled {
  opacity: .55;
  pointer-events: none;
}


.tp-market-trade-recipient-entry {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #363b42;
  font-size: 14px;
  text-align: left;
}


.tp-market-trade-recipient-entry[hidden] {
  display: none !important;
}


.tp-market-trade-recipient-entry b {
  color: #383d43;
  font-size: 14px;
  font-weight: 500;
}


/*
 * 接收地址独立设置页
 */

.tp-market-recipient-sheet {
  height: min(82vh, 760px);
  min-height: 560px;
  max-height: calc(100vh - 76px);
  padding:
    0
    18px
    max(
      20px,
      env(safe-area-inset-bottom)
    );
  display: flex;
  flex-direction: column;
  background: #f6f7fb;
}


.tp-market-recipient-head {
  min-height: 70px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns:
    44px
    1fr
    44px;
  align-items: center;
}


.tp-market-recipient-head::before {
  content: "";
}


.tp-market-recipient-head strong {
  justify-self: center;
  color: #24292f;
  font-size: 21px;
  font-weight: 600;
}


.tp-market-recipient-head button {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-self: end;
  border: 0;
  background: transparent;
  color: #24292f;
  font-size: 30px;
  line-height: 1;
}


.tp-market-recipient-input-wrap {
  height: 58px;
  flex: 0 0 auto;
  padding:
    0
    10px
    0
    16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
}


.tp-market-recipient-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #30353b;
  font-size: 15px;
}


.tp-market-recipient-input-wrap input::placeholder {
  color: #b7bcc4;
}


.tp-market-recipient-scan {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #343a40;
}


.tp-market-recipient-scan svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.tp-market-recipient-warning {
  margin:
    14px
    2px
    12px;
  flex: 0 0 auto;
  color: #a7adb5;
  font-size: 12px;
  line-height: 1.5;
}


.tp-market-recipient-tabs {
  min-height: 42px;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 26px;
}


.tp-market-recipient-tabs button {
  position: relative;
  min-width: 60px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9298a0;
  font-size: 16px;
  font-weight: 600;
}


.tp-market-recipient-tabs button.is-active {
  color: #292e34;
}


.tp-market-recipient-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: #33383e;
  transform: translateX(-50%);
}


.tp-market-recipient-content {
  min-height: 0;
  flex: 1 1 auto;
  padding-top: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


.tp-market-recipient-panel {
  display: none;
}


.tp-market-recipient-panel.is-active {
  display: block;
}


.tp-market-recipient-wallet-row {
  width: 100%;
  min-height: 86px;
  margin-bottom: 12px;
  padding:
    14px
    14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}


.tp-market-recipient-wallet-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}


.tp-market-recipient-wallet-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  overflow: hidden;
}


.tp-market-recipient-wallet-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.tp-market-recipient-wallet-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}


.tp-market-recipient-wallet-name {
  display: flex;
  align-items: center;
  gap: 8px;
}


.tp-market-recipient-wallet-name strong {
  max-width: 180px;
  overflow: hidden;
  color: #34393f;
  font-size: 17px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.tp-market-recipient-wallet-copy > span {
  max-width: 235px;
  overflow: hidden;
  color: #969ca4;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.tp-market-recipient-current {
  padding:
    2px
    5px;
  border:
    1px solid
    #9cc3ff;
  border-radius: 4px;
  color: #4388e8;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}


.tp-market-recipient-copy-button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: #a4a9b0;
}


.tp-market-recipient-copy-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.tp-market-recipient-empty {
  padding:
    48px
    16px;
  text-align: center;
  color: #a1a7af;
  font-size: 13px;
}


.tp-market-recipient-footer {
  flex: 0 0 auto;
  padding-top: 14px;
}

.tp-market-recipient-confirm {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 13px;
  background: #b9d4fa;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  cursor: default;
  transition:
    background .18s ease,
    opacity .18s ease;
}


.tp-market-recipient-confirm:disabled {
  background: #b9d4fa;
  color: #ffffff;
  opacity: 1;
}


.tp-market-recipient-confirm.is-active:not(:disabled) {
  background: #4b93ef;
  cursor: pointer;
}


.tp-market-recipient-confirm.is-active:not(:disabled):active {
  background: #337fdc;
}


/*
 * MEV 防护页
 */

.tp-market-mev-sheet {
  padding:
    0
    18px
    26px;
}


.tp-market-mev-head {
  min-height: 62px;
  display: grid;
  grid-template-columns:
    42px
    1fr
    42px;
  align-items: center;
}


.tp-market-mev-head::before {
  content: "";
}


.tp-market-mev-head strong {
  justify-self: center;
  color: #2a2f35;
  font-size: 21px;
  font-weight: 600;
}


.tp-market-mev-head button {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-self: end;
  border: 0;
  background: transparent;
  color: #30353b;
  font-size: 30px;
}


.tp-market-mev-copy h4 {
  margin:
    15px
    0
    8px;
  color: #8f959c;
  font-size: 15px;
  font-weight: 500;
}


.tp-market-mev-copy p {
  margin: 0;
  color: #555b62;
  font-size: 14px;
  line-height: 1.65;
}


.tp-market-mev-copy
.tp-market-mev-warning {
  margin-top: 18px;
  color: #e26055;
}


.tp-market-mev-network-card {
  margin-top: 22px;
  padding:
    16px
    14px
    12px;
  border-radius: 14px;
  background: #f4f5f8;
}


.tp-market-mev-network-card > h4 {
  margin:
    0
    0
    14px;
  color: #373c42;
  font-size: 17px;
  font-weight: 500;
}


.tp-market-mev-network-row {
  min-height: 66px;
  padding:
    0
    13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  background: #ffffff;
}


.tp-market-mev-network-row +
.tp-market-mev-network-row {
  margin-top: 10px;
}


.tp-market-mev-network-name {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}


.tp-market-mev-chain-icon,
.tp-market-mev-chain-icon img {
  width: 34px !important;
  height: 34px !important;
  display: block !important;
  object-fit: contain !important;
  border-radius: 50% !important;
}


.tp-market-mev-network-name strong {
  color: #42474e;
  font-size: 15px;
  font-weight: 500;
}


.tp-market-mev-disabled-text {
  color: #a1a6ad;
  font-size: 12px;
}


.tp-market-mev-notice {
  margin:
    14px
    3px
    0;
  color: #9ba0a7;
  font-size: 12px;
  line-height: 1.5;
}

/* Discover */

.tp-discover-page {
  background: var(--tp-dark-bg, #ffffff);
}


/*
 * DISCOVER_THREE_PANELS_V1
 * 发现页三个独立栏目
 */
.tp-discover-panel[hidden] {
  display: none !important;
}

.tp-discover-panel-empty {
  padding: 38px 16px;
  color: #a0a5ad;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}


.tp-discover-top {
  padding:
    max(
      12px,
      env(safe-area-inset-top)
    )
    12px
    9px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    38px
    38px;
  align-items: center;
  gap: 5px;
}

.tp-discover-search {
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 20px;
  background: var(--tp-dark-surface-2, #f5f6f8);
  color: var(--tp-dark-muted, #a0a5ad);
  text-align: left;
}

.tp-discover-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: var(--tp-dark-muted, #737982);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.tp-discover-search span {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-discover-top-icon {
  width: 38px;
  height: 38px;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--tp-dark-text, #34383e);
  font-size: 24px;
}

.tp-discover-top-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-discover-banner {
  min-height: 112px;
  margin: 4px 13px 13px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 15px;
  background:
    linear-gradient(
      135deg,
      #eff7ff,
      #edf0ff,
      #f6efff
    );
  color: #4b6691;
}

.tp-discover-banner span {
  font-size: 9px;
}

.tp-discover-banner strong {
  margin-top: 6px;
  font-size: 17px;
}

.tp-discover-banner small {
  margin-top: 7px;
  opacity: .7;
  font-size: 9px;
}

/* DISCOVER_BANNER_CAROUSEL_V1 */

.tp-discover-banner[data-discover-carousel] {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 2.8 / 1;
  border-radius: 15px;
  background: #08162d;
}

.tp-discover-banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 350ms ease;
  will-change: transform;
}

.tp-discover-banner-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tp-discover-banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.tp-discover-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.tp-discover-banner-dots button {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tp-discover-banner-dots button::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
}

.tp-discover-banner-dots button.is-active::after {
  width: 7px;
  height: 7px;
  background: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .tp-discover-banner-track {
    transition: none;
  }
}


.tp-discover-tabs {
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom:
    1px solid #f0f1f3;
}

.tp-discover-tabs button {
  position: relative;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #92979f;
  font-size: 15px;
}

.tp-discover-tabs button.is-active {
  color: #282c32;
  font-weight: 600;
}

.tp-discover-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 20px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: #2980FE;
}

.tp-discover-shortcuts {
  padding: 18px 8px 12px;
  display: grid;
  grid-template-columns:
    repeat(
      5,
      minmax(0, 1fr)
    );
  gap: 17px 2px;
}

.tp-discover-shortcuts button {
  min-width: 0;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #4f555d;
}

.tp-discover-shortcuts b {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf5ff;
  color: #2980FE;
  font-size: 14px;
}

.tp-discover-shortcuts span {
  width: 100%;
  overflow: hidden;
  font-size: 9px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/*
 * DISCOVER_HOT_DAPPS_V1
 * 真实DApp五列宫格
 */

.tp-discover-shortcuts
.tp-discover-hot-dapp {
  min-width: 0;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #30343a;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.tp-discover-shortcuts
.tp-discover-hot-dapp-icon {
  position: relative;
  width: 51px;
  height: 51px;
  flex: 0 0 51px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #eceef1;
  border-radius: 15px;
  background: #f5f7fb;
  color: #397de5;
  font-size: 19px;
  font-weight: 600;
}

.tp-discover-hot-dapp-icon img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.tp-discover-shortcuts
.tp-discover-hot-dapp > span {
  width: 100%;
  max-width: 100%;
  min-height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 14px;
  font-size: 11px;
  color: #383c42;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.tp-discover-hot-dapp:active {
  opacity: 0.65;
}

.tp-discover-promo-row {
  padding: 8px 13px 15px;
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 9px;
}

/* DISCOVER_HOT_PROMO_BUTTON_STYLE_V2 */
.tp-discover-promo-card {
  width: 100%;
  min-height: 80px;
  box-sizing: border-box;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  background: #edf6ff;
  color: #416da6;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tp-discover-promo-card:focus-visible {
  outline: 2px solid #3478f6;
  outline-offset: 2px;
}

.tp-discover-promo-card.is-alt {
  background: #fff4eb;
  color: #a96c3e;
}

.tp-discover-promo-card span {
  font-size: 9px;
}

.tp-discover-promo-card strong {
  margin-top: 5px;
  font-size: 13px;
}

.tp-discover-section {
  border-top:
    8px solid #f5f6f8;
}

.tp-discover-section-head {
  height: 52px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-discover-section-head strong {
  font-size: 14px;
}

.tp-discover-section-head button {
  border: 0;
  background: transparent;
  color: #969ba3;
  font-size: 10px;
}

.tp-discover-list {
  padding: 0 14px;
}

.tp-discover-list > button {
  width: 100%;
  min-height: 65px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-top: 1px solid var(--tp-dark-line, #f2f3f5);
  background: var(--tp-dark-bg, #ffffff);
  color: var(--tp-dark-text, #30343a);
  text-align: left;
}

.tp-dapp-list-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eef5ff;
  color: #2980FE;
  font-size: 13px;
}

.tp-discover-list > button > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tp-discover-list strong {
  font-size: 12px;
}

.tp-discover-list small {
  color: #a0a5ad;
  font-size: 9px;
}

.tp-discover-list b {
  color: #b2b6bd;
  font-size: 20px;
  font-weight: 300;
}

/* DISCOVER_EARN_SECTION_V2 */

.tp-discover-earn {
  position: relative;
  padding: 0 0 18px;
  background: var(--tp-dark-bg, #fff);
}

.tp-discover-earn-heading {
  padding: 19px 15px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tp-discover-earn-heading > div {
  flex: 1;
  min-width: 0;
}

.tp-discover-earn-heading strong {
  display: block;
  color: var(--tp-dark-text, #30343a);
  font-size: 18px;
  font-weight: 600;
}

.tp-discover-earn-heading p {
  margin: 7px 0 0;
  color: #a0a5ad;
  font-size: 12px;
  line-height: 1.5;
}

.tp-discover-earn-more {
  flex-shrink: 0;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9da3ac;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.tp-discover-earn-more:focus-visible {
  outline: 2px solid #3478f6;
  outline-offset: 4px;
}

.tp-discover-earn-items {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, 82px);
  grid-auto-columns: calc(100% - 46px);
  column-gap: 12px;
  padding: 0 15px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tp-discover-earn-items::-webkit-scrollbar {
  display: none;
}

.tp-discover-earn-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 82px;
  box-sizing: border-box;
  color: var(--tp-dark-text, #30343a);
  text-decoration: none;
  scroll-snap-align: start;
}

.tp-discover-earn-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid #eef0f4;
  border-radius: 13px;
  background: #edf4ff;
  color: #287dff;
  font-size: 20px;
  font-weight: 700;
}

.tp-discover-earn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tp-discover-earn-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tp-discover-earn-copy strong {
  display: block;
  overflow: hidden;
  color: var(--tp-dark-text, #30343a);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tp-discover-earn-copy small {
  display: block;
  overflow: hidden;
  color: #a0a5ad;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tp-discover-earn-item:active {
  opacity: .72;
}

/* DISCOVER_AI_MEME_GRID_V2 */

/* AI 与 Meme 专区共用布局 */
.tp-discover-ai,
.tp-discover-meme {
  position: relative;
  padding: 0 0 18px;
  background: #fff;
}

/* 标题区域 */
.tp-discover-ai-heading,
.tp-discover-meme-heading {
  padding: 19px 15px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tp-discover-ai-heading > div,
.tp-discover-meme-heading > div {
  flex: 1;
  min-width: 0;
}

.tp-discover-ai-heading strong,
.tp-discover-meme-heading strong {
  display: block;
  color: #30343a;
  font-size: 18px;
  font-weight: 600;
}

.tp-discover-ai-heading p,
.tp-discover-meme-heading p {
  margin: 7px 0 0;
  color: #a0a5ad;
  font-size: 12px;
  line-height: 1.5;
}

/* 更多按钮 */
.tp-discover-ai-more,
.tp-discover-meme-more {
  flex-shrink: 0;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9da3ac;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.tp-discover-ai-more:focus-visible,
.tp-discover-meme-more:focus-visible {
  outline: 2px solid #3478f6;
  outline-offset: 4px;
}

/* 每列三行，横向滑动 */
.tp-discover-ai-scroll,
.tp-discover-meme-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, 82px);
  grid-auto-columns: calc(100% - 46px);
  column-gap: 12px;
  padding: 0 15px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tp-discover-ai-scroll::-webkit-scrollbar,
.tp-discover-meme-scroll::-webkit-scrollbar {
  display: none;
}

/* 每个应用行 */
.tp-discover-ai-card,
.tp-discover-meme-card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 82px;
  color: #30343a;
  text-decoration: none;
  scroll-snap-align: start;
}

/* 图标容器 */
.tp-discover-ai-icon,
.tp-discover-meme-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid #eef0f4;
  border-radius: 13px;
  background: #edf4ff;
  color: #287dff;
  font-size: 18px;
  font-weight: 700;
}

/* 已有品牌的后备颜色 */
.tp-discover-ai-icon.is-chain {
  background: #326ce5;
  color: #fff;
}

.tp-discover-ai-icon.is-virtuals {
  background: #282c40;
  color: #fff;
}

.tp-discover-ai-icon.is-cookie {
  background: #c47a2c;
  color: #fff;
}

.tp-discover-ai-icon.is-alerts {
  background: #3976bd;
  color: #fff;
}

.tp-discover-meme-icon.is-gmgn {
  background: #282e3c;
  color: #fff;
}

.tp-discover-meme-icon.is-dex {
  background: #377bdf;
  color: #fff;
}

.tp-discover-meme-icon.is-pump {
  background: #36a877;
  color: #fff;
}

.tp-discover-meme-icon.is-four {
  background: #e2a12c;
  color: #fff;
}

/* 兼容已有图片注册器 */
.tp-discover-ai-icon img,
.tp-discover-meme-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 文本区域 */
.tp-discover-ai-copy,
.tp-discover-meme-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 应用名称 */
.tp-discover-ai-copy strong,
.tp-discover-meme-copy strong {
  display: block;
  overflow: hidden;
  color: #30343a;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 应用简介 */
.tp-discover-ai-copy small,
.tp-discover-meme-copy small {
  display: block;
  overflow: hidden;
  color: #a0a5ad;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 点击状态 */
.tp-discover-ai-card:active,
.tp-discover-meme-card:active {
  opacity: .72;
}


/* DISCOVER_MEME_TOOLS_V1 */

.tp-discover-meme {
  padding: 0 0 22px;
  background: #ffffff;
}

.tp-discover-meme-heading {
  padding: 20px 15px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tp-discover-meme-heading strong {
  display: block;
  color: #30343a;
  font-size: 18px;
  font-weight: 600;
}

.tp-discover-meme-heading p {
  margin: 7px 0 0;
  color: #a0a5ad;
  font-size: 11px;
}

.tp-discover-meme-heading > span {
  flex: 0 0 auto;
  margin-top: 5px;
  color: #a0a5ad;
  font-size: 11px;
}

.tp-discover-meme-scroll {
  display: flex;
  gap: 10px;
  padding: 0 15px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tp-discover-meme-scroll::-webkit-scrollbar {
  display: none;
}

.tp-discover-meme-card {
  box-sizing: border-box;
  width: 190px;
  min-height: 144px;
  flex: 0 0 190px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  background: #fafbfc;
  color: #30343a;
  text-decoration: none;
  scroll-snap-align: start;
}

.tp-discover-meme-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 13px;
}

.tp-discover-meme-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.tp-discover-meme-icon.is-gmgn {
  background: #282e3c;
}

.tp-discover-meme-icon.is-dex {
  background: #377bdf;
}

.tp-discover-meme-icon.is-pump {
  background: #36a877;
}

.tp-discover-meme-icon.is-four {
  background: #e2a12c;
}

.tp-discover-meme-card-top em {
  padding: 4px 6px;
  border-radius: 5px;
  background: #edf3fa;
  color: #778b9e;
  font-size: 10px;
  font-style: normal;
}

.tp-discover-meme-card > strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-discover-meme-card > small {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #979da6;
  font-size: 10px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tp-discover-meme-card:active {
  opacity: .65;
}


/* DISCOVER_DAPP_CONFIRM_V1 */

.tp-discover-entry {
  box-sizing: border-box;
  width: 100%;
  max-height: 78vh;
  padding: 20px 18px 24px;
  overflow-y: auto;
  background: #fff;
  color: #30343a;
  line-height: 1.5;
}

.tp-discover-entry-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.tp-discover-entry-logo {
  width: 47px;
  height: 47px;
  flex: 0 0 47px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #edf4ff;
  color: #2980fe;
  font-size: 22px;
  font-weight: 700;
}

.tp-discover-entry-name {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tp-discover-entry-name strong {
  overflow: hidden;
  font-size: 20px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-discover-entry-name small {
  overflow: hidden;
  color: #a0a5ad;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-discover-entry-star,
.tp-discover-entry-close {
  width: 31px;
  height: 36px;
  flex: 0 0 31px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9da3ac;
  font-size: 27px;
  cursor: pointer;
}

.tp-discover-entry-star.is-active {
  color: #f2b13e;
}

.tp-discover-entry-description {
  margin: 23px 0;
  color: #8c929c;
  font-size: 13px;
  line-height: 1.7;
}

.tp-discover-entry-section {
  margin: 20px 0;
}

.tp-discover-entry-section > strong {
  display: block;
  margin-bottom: 13px;
  font-size: 15px;
  font-weight: 500;
}

.tp-discover-entry-network {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #737b86;
  font-size: 13px;
}

.tp-discover-entry-network img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.tp-discover-entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tp-discover-entry-tags span {
  padding: 9px 13px;
  border-radius: 7px;
  background: #f5f6f8;
  color: #5b6069;
  font-size: 13px;
}

.tp-discover-entry-risk {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tp-discover-entry-risk label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7c828c;
  font-size: 12px;
  cursor: pointer;
}

.tp-discover-entry-risk input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 0;
  accent-color: #2980fe;
}

.tp-discover-entry-risk details {
  color: #777f8b;
  font-size: 12px;
}

.tp-discover-entry-risk summary {
  color: #2980fe;
  cursor: pointer;
}

.tp-discover-entry-risk details p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.tp-discover-entry-enter {
  width: 100%;
  min-height: 47px;
  margin-top: 24px;
  border: 0;
  border-radius: 7px;
  background: #2980fe;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.tp-discover-entry-enter:active {
  opacity: .8;
}

/* Mine */

.tp-mine-page {
  padding-top:
    env(safe-area-inset-top);
  background: #f5f6f8;
  color: #2f3338;
}

.tp-mine-header {
  min-height: 60px;
  padding: 0 16px;

  display: grid;
  grid-template-columns:
    72px
    minmax(0, 1fr)
    72px;

  align-items: center;

  background: #f5f6f8;
}

.tp-mine-header-spacer {
  width: 72px;
}

.tp-mine-header > strong {
  color: #25292f;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  text-align: center;
}

.tp-mine-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.tp-mine-header-action {
  position: relative;

  width: 34px;
  height: 38px;

  padding: 0;

  display: grid;
  place-items: center;

  border: 0;
  outline: 0;

  background: transparent;
  color: #373c43;

  -webkit-tap-highlight-color: transparent;
}

.tp-mine-header-action svg {
  width: 24px;
  height: 24px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-mine-header-action:active {
  opacity: .55;
}

.tp-mine-notice i {
  position: absolute;

  top: 5px;
  right: 3px;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #ef5555;
}

.tp-runtime-wallet-meta {
  display: none !important;
}

.tp-mine-groups {
  padding:
    4px
    16px
    28px;
}

.tp-mine-group {
  margin-bottom: 10px;

  overflow: hidden;

  border-radius: 14px;

  background: #ffffff;
}

.tp-mine-group > button {
  position: relative;

  width: 100%;
  min-height: 55px;

  padding:
    0
    15px;

  display: grid;

  grid-template-columns:
    28px
    minmax(0, 1fr)
    18px;

  align-items: center;

  gap: 10px;

  border: 0;
  outline: 0;

  background: #ffffff;
  color: #33373d;

  text-align: left;

  font-family: inherit;

  -webkit-tap-highlight-color: transparent;
}

.tp-mine-group > button:not(:last-child)::after {
  content: "";

  position: absolute;

  left: 53px;
  right: 0;
  bottom: 0;

  height: 1px;

  background: #eef0f2;

  transform: scaleY(.5);
  transform-origin: bottom;
}

.tp-mine-group > button:active {
  background: #f8f9fa;
}

.tp-mine-menu-icon {
  width: 27px;
  height: 27px;

  display: grid;
  place-items: center;

  color: #4a4f55;
}

.tp-mine-menu-icon svg {
  width: 24px;
  height: 24px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-mine-group strong {
  position: relative;

  display: inline-flex;
  align-items: center;

  width: max-content;

  color: #32363b;

  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
}

.tp-mine-group > button > b {
  width: 18px;

  display: grid;
  place-items: center;

  color: #a8adb3;

  font-size: 25px;
  line-height: 1;
  font-weight: 300;

  transform: translateY(-1px);
}

.tp-mine-red-dot {
  position: absolute;

  top: -1px;
  right: -9px;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #ef5555;
}


/* Bottom nav */

.bottom-nav {
  position: fixed;

  z-index: 50;

  left: 0;
  right: 0;
  bottom: 0;

  height:
    calc(
      64px +
      env(safe-area-inset-bottom)
    );

  padding-bottom:
    env(safe-area-inset-bottom);

  display: grid;

  grid-template-columns:
    repeat(5, 1fr);

  background:
    rgba(
      255,
      255,
      255,
      .98
    );

  border-top:
    1px solid #eef0f2;

  backdrop-filter:
    blur(16px);

  -webkit-backdrop-filter:
    blur(16px);
}

.nav-item {
  position: relative;

  padding: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;

  align-items: center;
  justify-content: center;

  border: 0;

  background: transparent;

  color: #a6aab0;

  font-family: inherit;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
  width: 24px;
  height: 24px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item span {
  font-size: 12px;
  line-height: 1.15;
  font-weight: 400;
}

.nav-item.is-active {
  color: #2980fe;
}

.nav-item[data-page="minePage"].is-active::after {
  content: "";

  position: absolute;

  top: 7px;
  left:
    calc(
      50% +
      11px
    );

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #ef5555;
}

/* TP full-screen wallet flow */

.wallet-sheet.is-flow
.wallet-sheet-mask {
  display: none;
}

.wallet-sheet.is-flow
.wallet-sheet-panel {
  position: fixed;
  inset: 0;
  max-height: none;
  padding: 0;
  overflow: auto;
  border-radius: 0;
  background: #ffffff;
}

.wallet-sheet.is-flow
.sheet-handle {
  display: none;
}

.wallet-sheet.is-flow
#sheetContent {
  min-height: 100vh;
}

.tp-flow-page {
  min-height: 100vh;
  padding-bottom:
    env(safe-area-inset-bottom);
  background: #ffffff;
}

.tp-flow-header {
  height:
    calc(
      60px +
      env(safe-area-inset-top)
    );
  padding:
    env(safe-area-inset-top)
    18px
    0;
  display: flex;
  align-items: center;
}

.tp-flow-header.centered {
  display: grid;
  grid-template-columns:
    42px
    minmax(0, 1fr)
    42px;
  align-items: center;
}

.tp-flow-header.centered > strong {
  overflow: hidden;
  color: #25282d;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-flow-back {
  width: 42px;
  height: 42px;
  margin-left: -10px;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #25282d;
  cursor: pointer;
}

.tp-flow-back svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-flow-header-space {
  width: 42px;
  height: 42px;
}

.tp-password-page {
  display: flex;
  flex-direction: column;
}

.tp-password-body {
  flex: 1;
  padding: 20px 24px 30px;
}

.tp-password-body h1 {
  margin: 0;
  color: #292c31;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 700;
}

.tp-password-description {
  max-width: 330px;
  margin: 14px 0 28px;
  color: #a0a4aa;
  font-size: 13px;
  line-height: 1.65;
}

.tp-password-label {
  display: block;
  margin-top: 22px;
}

.tp-password-label > span {
  display: block;
  margin-bottom: 10px;
  color: #55595f;
  font-size: 15px;
}

.tp-password-field {
  position: relative;
}

.tp-password-field input {
  width: 100%;
  height: 58px;
  padding: 0 58px 0 16px;
  border: 0;
  border-radius: 12px;
  outline: none;
  background: #f7f8fa;
  color: #25282e;
  font-size: 14px;
}

.tp-password-field input::placeholder {
  color: #c2c5ca;
}

.tp-password-field button {
  position: absolute;
  top: 50%;
  right: 9px;
  min-width: 42px;
  height: 38px;
  padding: 0 6px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #969ba3;
  cursor: pointer;
  font-size: 11px;
}

.tp-password-footer {
  padding:
    15px
    22px
    max(
      18px,
      env(safe-area-inset-bottom)
    );
  background: #ffffff;
}

.tp-password-eye {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-password-eye svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #b8bcc2;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-password-eye-on {
  display: none;
}

.tp-password-eye.is-visible
.tp-password-eye-off {
  display: none;
}

.tp-password-eye.is-visible
.tp-password-eye-on {
  display: block;
}

.tp-unified-agreement {
  margin-bottom: 19px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #777c84;
  font-size: 12px;
}

.tp-unified-agreement input {
  width: 19px;
  height: 19px;
  margin: 0;
  flex: 0 0 19px;
  accent-color: #2980FE;
}

.tp-unified-agreement button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2980FE;
  font: inherit;
}

.tp-primary-button {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 10px;
  background: #2980FE;
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}

.tp-primary-button:disabled {
  opacity: .55;
}

.tp-network-body {
  padding:
    4px
    18px
    34px;
}

.tp-wallet-select-page,
.tp-passphrase-page,
.tp-created-network-page,
.tp-generated-page,
.tp-import-method-page,
.tp-import-form-page {
  min-height: 100%;
  background: var(--tp-dark-bg, #f5f6f8);
  color: var(--tp-dark-text, #202226);
}

.tp-create-profile-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--tp-dark-bg, #f5f6f8);
  color: var(--tp-dark-text, #202226);

  display: flex;
  flex-direction: column;
}

.tp-mnemonic-intro-page,
.tp-verify-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--tp-dark-bg, #ffffff);
  color: var(--tp-dark-text, #202226);
}

.tp-backup-page {
  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  flex-direction: column;

  background: var(--tp-dark-bg, #f5f6f8);
  color: var(--tp-dark-text, #202226);
}

.tp-flow-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 10px 22px 0;
}

.tp-flow-header.centered {
  justify-content: space-between;
}

.tp-flow-header strong {
  font-size: 19px;
  font-weight: 700;
}

.tp-flow-header-space,
.tp-import-scan {
  width: 36px;
}

.tp-flow-back,
.tp-import-scan {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
}

.tp-flow-back svg,
.tp-import-scan svg,
.tp-network-search svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-wallet-type-card,
.wallet-create-network-list,
.tp-created-network-list {
  margin: 8px 20px 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--tp-dark-surface, #ffffff);
}

.tp-wallet-type-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid var(--tp-dark-line, #eeeeef);
  background: var(--tp-dark-surface, #ffffff);
  text-align: left;
}

.tp-wallet-type-row:last-child {
  border-bottom: 0;
}

.tp-wallet-type-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: 14px;
  border-radius: 50%;
  background: #2f87f6;
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
}

.tp-wallet-type-copy {
  flex: 1;
}

.tp-wallet-type-copy strong {
  font-size: 17px;
  font-weight: 500;
}

.tp-wallet-type-help {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 12px;
  border: 1px solid #b9bdc3;
  border-radius: 50%;
  color: #92979e;
  font-size: 13px;
}

.tp-wallet-type-row > b {
  color: #b6bac0;
  font-size: 28px;
  font-weight: 300;
}

.tp-wallet-type-svg {
  width: 27px;
  height: 27px;
  display: block;
}

.tp-wallet-type-hd rect {
  fill: #ffffff;
  stroke: none;
}

.tp-wallet-type-multisig,
.tp-wallet-type-hardware {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-single-network-title {
  padding: 28px 22px 12px;
  color: #50545a;
  font-size: 17px;
}

.tp-network-search {
  display: flex;
  align-items: center;
  height: 56px;
  margin: 0 20px 12px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--tp-dark-surface-2, #eceef2);
}

.tp-network-search svg {
  width: 25px;
  height: 25px;
  margin-right: 12px;
}

.tp-network-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tp-dark-text, #292c31);
  font-size: 15px;
}

.tp-create-profile-body {
  padding: 26px 20px;
}

.tp-create-profile-body h1,
.tp-mnemonic-intro-body h1,
.tp-backup-body h1,
.tp-generated-body h1 {
  margin: 0;
  color: var(--tp-dark-text, #202226);
  font-size: 24px;
  font-weight: 700;
}

.tp-create-profile-sub {
  margin: 10px 0 24px;
  color: #9a9da3;
  font-size: 16px;
}

.tp-profile-label {
  display: block;
}

.tp-profile-label > span,
.tp-import-name-label > span {
  display: block;
  margin-bottom: 11px;
  color: var(--tp-dark-text, #303339);
  font-size: 16px;
}

.tp-profile-label input,
.tp-import-name-label input {
  box-sizing: border-box;
  width: 100%;
  height: 64px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  outline: 0;
  background: var(--tp-dark-surface, #ffffff);
  color: var(--tp-dark-text, #202226);
  font-size: 16px;
}

.tp-profile-footer,
.tp-flow-bottom-actions {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding:
    16px 20px
    max(20px, env(safe-area-inset-bottom));
  background: linear-gradient(
    to bottom,
    transparent,
    var(--tp-dark-bg, #f5f6f8) 24px,
    var(--tp-dark-bg, #f5f6f8) 100%
  );
}

.tp-service-agreement {
  display: flex;
  align-items: center;
  margin: 0 0 13px;
  color: #696e75;
  font-size: 14px;
}

.tp-service-agreement input {
  position: absolute;
  opacity: 0;
}

.tp-service-agreement i {
  position: relative;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border: 1.5px solid #999ea5;
  border-radius: 50%;
  background: #ffffff;
}

.tp-service-agreement input:checked + i {
  border-color: #2d88f7;
  background: #2d88f7;
}

.tp-service-agreement input:checked + i::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
}

.tp-service-agreement a {
  color: #2785ee;
  text-decoration: none;
}

.tp-primary-button {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 12px;
  background: #2d87f5;
  color: #ffffff;
  font-size: 17px;
}

.tp-primary-button:disabled {
  opacity: .55;
}

.tp-text-button {
  width: 100%;
  height: 50px;
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: #3b91e8;
  font-size: 16px;
}

.tp-mnemonic-intro-body {
  padding: 4px 22px 155px;
}

.tp-backup-page > .tp-flow-header {
  flex: 0 0 auto;

  height:
    calc(56px + env(safe-area-inset-top));

  min-height:
    calc(56px + env(safe-area-inset-top));

  padding:
    env(safe-area-inset-top)
    20px
    0;
}

.tp-backup-body {
  flex: 1 0 auto;
  min-height: 0;

  display: flex;
  flex-direction: column;

  padding:
    8px
    22px
    16px;

  box-sizing: border-box;
}

.tp-backup-body h1 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
}

.tp-verify-body {
  padding: 12px 22px 145px;
}

.tp-created-network-body,
.tp-generated-body {
  padding: 18px 22px 100px;
}

.tp-mnemonic-hero {
  position: relative;
  height: 138px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 16px;
  background: #dceffc;
}

.tp-security-shield,
.tp-security-wallet,
.tp-security-key {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-security-shield {
  left: 48px;
  top: 34px;
  width: 58px;
  height: 66px;
  border-radius: 40% 40% 50% 50%;
  background: #35ce6d;
  color: #ffffff;
  font-size: 30px;
}

.tp-security-wallet {
  left: 50%;
  top: 48px;
  transform: translateX(-50%);
  color: #2a80eb;
  font-size: 72px;
}

.tp-security-key {
  right: 48px;
  top: 47px;
  color: #ef9b34;
  font-size: 55px;
}

.tp-mnemonic-intro-body > p {
  margin: 7px 0 14px;
  color: #969ba2;
  font-size: 14px;
  line-height: 1.55;
}

.tp-mnemonic-alert {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 13px;
  background: #fff0ef;
  color: #e7665e;
  font-size: 14px;
  line-height: 1.5;
}

.tp-mnemonic-alert strong {
  margin-bottom: 4px;
}

.tp-backup-method-title {
  margin: 24px 0 10px;
  font-size: 17px;
}

.tp-backup-method-copy {
  color: #8c9198;
  font-size: 14px;
  line-height: 1.65;
}

.tp-passphrase-body {
  padding: 24px 20px;
}

.tp-passphrase-title {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
}

.tp-passphrase-title span {
  color: #a7abb1;
}

.tp-password-field {
  display: flex;
  height: 62px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 13px;
  background: #ffffff;
}

.tp-password-field input {
  flex: 1;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}

.tp-password-field button {
  width: 58px;
  border: 0;
  background: transparent;
  color: #b5b9bf;
}

.tp-backup-desc {
  margin-top: 8px;
  margin-bottom: 0;
  color: #91969d;
  font-size: 14px;
  line-height: 1.55;
}

.tp-backup-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 16px 0 14px;
  padding: 2px;
  border-radius: 12px;
  background: #f3f4f6;
}

.tp-backup-tabs button {
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: #202226;
}

.tp-backup-tabs button.is-active {
  background: #ffffff;
}

.tp-backup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.4;
}

.tp-mnemonic-hidden {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  min-height: 180px;
  padding: 12px 0;
}

.tp-mnemonic-hidden-icon {
  margin-bottom: 10px;
  color: #d1534c;
  font-size: 29px;
}

.tp-mnemonic-hidden > strong {
  color: var(--tp-dark-text, #34383e);
  font-size: 14px;
  font-weight: 500;
}

.tp-backup-word-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tp-backup-word {
  min-width: 0;
  padding: 10px 9px;
  border-radius: 9px;
  background: #ffffff;
}

.tp-backup-word i {
  display: block;
  color: #a0a4aa;
  font-size: 10px;
  font-style: normal;
}

.tp-backup-word b {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
}

.tp-copy-mnemonic {
  display: block;
  margin: 14px auto 12px;
  border: 0;
  background: transparent;
  color: #2685e8;
  font-size: 14px;
  line-height: 1.2;
}

.tp-backup-warning-copy {
  display: flex;
  flex-direction: column;

  margin-top: auto;
  padding-top: 18px;
  padding-bottom: 12px;

  color: #dc655e;
  font-size: 12px;
  line-height: 1.55;
}

.is-hidden {
  display: none !important;
}

.tp-security-confirm-layer {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0,0,0,.3);
}

.tp-security-confirm-card {
  width: min(100%, 350px);
  padding: 22px 19px;
  border-radius: 16px;
  background: #ffffff;
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
}

.tp-security-confirm-card h2 {
  margin: 0 0 12px;
  color: #202226;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.tp-security-confirm-card > p {
  margin: 0 0 15px;
  color: #8b9097;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.tp-security-confirm-card label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 13px 0;
  color: #303339;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.tp-security-confirm-card label input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 1px 0 0;
  accent-color: #2980fe;
}

.tp-security-confirm-card .tp-primary-button {
  margin-top: 14px;
  font-size: 16px;
}

.tp-verify-body > p {
  margin: 2px 0 16px;
  color: #858a91;
  font-size: 14px;
  line-height: 1.5;
}

.tp-mnemonic-slot-grid,
.tp-mnemonic-candidate-grid {
  display: grid;
  gap: 8px;
}

.tp-mnemonic-slot-grid {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
}

.tp-mnemonic-candidate-grid {
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
}

.tp-mnemonic-slot {
  position: relative;
  min-width: 0;
  min-height: 46px;
  padding: 7px;
  border: 1px solid #e3e5e8;
  border-radius: 9px;
  background: #ffffff;
  text-align: left;
}

.tp-mnemonic-slot:focus-within,
.tp-mnemonic-slot.is-active {
  border-color: #83b9ef;
  background: #f0f7ff;
}

.tp-mnemonic-slot i {
  display: block;
  color: #9ca1a8;
  font-size: 10px;
  font-style: normal;
}

.tp-mnemonic-slot input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 22px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  outline: none;
  border-radius: 0;
  background: transparent;
  color: #202226;
  font-size: 14px;
  line-height: 22px;
  font-family: inherit;
  user-select: text;
  -webkit-user-select: text;
}

.tp-mnemonic-candidate-grid {
  margin-top: 18px;
}

.tp-mnemonic-candidate {
  min-height: 42px;
  padding: 6px 3px;
  border: 1px solid #dcdfe3;
  border-radius: 8px;
  background: #ffffff;
  font-size: 12px;
}

.tp-mnemonic-candidate.is-used {
  opacity: .28;
}

.tp-created-network-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tp-created-network-heading h1 {
  margin: 0;
  font-size: 29px;
}

.tp-created-network-heading p {
  margin: 6px 0 0;
  color: #979ba2;
}

.tp-created-network-heading button {
  border: 0;
  background: transparent;
  color: #2e89ed;
}

.tp-hd-network-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid #eceef0;
  background: #ffffff;
}

.tp-created-chain-icon,
.tp-generated-chain-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 14px;
}

.tp-created-chain-icon img,
.tp-generated-chain-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tp-hd-network-option strong {
  flex: 1;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
}

.tp-hd-network-option > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: 1px solid #d5d8dc;
  border-radius: 50%;
  color: transparent;
  font-style: normal;
}

.tp-hd-network-option.is-selected > i {
  border-color: #2b87ef;
  background: #2b87ef;
  color: #ffffff;
}

.tp-generated-body > p {
  color: #969ba2;
}

.tp-generated-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  padding: 26px;
  border-radius: 14px;
  background: #ffffff;
}

.tp-generated-chain {
  position: relative;
}

.tp-generated-chain i {
  position: absolute;
  right: 7px;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #32af70;
  color: #ffffff;
  font-size: 10px;
  font-style: normal;
}

.tp-import-method-body,
.tp-import-form-body {
  padding: 20px;
}

.tp-import-method-card {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 76px;
  margin-bottom: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: #ffffff;
  text-align: left;
}

.tp-import-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: 13px;
  border-radius: 50%;
  background: #2e87ef;
  color: #ffffff;
}

.tp-import-method-card > span:nth-child(2) {
  flex: 1;
}

.tp-import-method-card strong,
.tp-import-method-card small {
  display: block;
}

.tp-import-method-card small {
  margin-top: 4px;
  color: #999da4;
}

.tp-import-method-card > b {
  color: #b4b8be;
  font-size: 26px;
}

.tp-import-secret-wrap {
  position: relative;
}

.tp-import-secret {
  box-sizing: border-box;
  width: 100%;
  min-height: 150px;
  padding: 17px 17px 45px;
  resize: none;
  border: 0;
  border-radius: 14px;
  outline: 0;
  background: #ffffff;
  color: #24272c;
  font-size: 15px;
  line-height: 1.6;
}

.tp-import-paste {
  position: absolute;
  right: 15px;
  bottom: 13px;
  border: 0;
  background: transparent;
  color: #2c88ed;
}

.tp-import-advanced-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 50px;
  border: 0;
  background: transparent;
  color: #565b61;
}

.tp-import-advanced-row b {
  margin-left: 5px;
}

.tp-import-advanced-box {
  margin-bottom: 18px;
}

.tp-import-advanced-box label {
  display: block;
  margin-bottom: 8px;
}

.tp-import-advanced-box input {
  box-sizing: border-box;
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  outline: 0;
  background: #ffffff;
}

.tp-import-name-label {
  display: block;
  margin-top: 10px;
}

.tp-import-secret::placeholder {
  color: #b8bcc2;
}
/* =========================================================
   TP SINGLE NETWORK IMPORT - FINAL MOBILE ALIGN
   ========================================================= */

.tp-import-method-page
.tp-import-method-body {
  padding: 20px 20px 0;
}

.tp-import-method-group {
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
}

.tp-import-method-group
.tp-import-method-card {
  min-height: 82px;
  margin: 0;
  padding: 0 18px;
  border-radius: 0;
  border-bottom: 1px solid #eeeeef;
}

.tp-import-method-group
.tp-import-method-card:last-child {
  border-bottom: 0;
}

.tp-import-method-page
.tp-import-method-icon {
  width: 44px;
  height: 44px;
  margin-right: 15px;
  flex: 0 0 44px;
}

.tp-import-method-page
.tp-import-method-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-import-method-page
.tp-import-method-icon.is-cold,
.tp-import-method-page
.tp-import-method-icon.is-watch {
  background: #52cdb2;
}

.tp-import-method-page
.tp-import-method-card strong {
  color: #292c31;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
}

.tp-import-method-page
.tp-import-method-card small {
  margin-top: 5px;
  color: #a0a4aa;
  font-size: 14px;
  line-height: 1.35;
}

.tp-import-method-page
.tp-import-method-card > b {
  color: #bcc0c5;
  font-size: 28px;
  font-weight: 300;
}


.tp-import-form-page.is-single-network
.tp-import-form-body {
  padding: 8px 20px 20px;
}

.tp-import-mode-tabs {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 56px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 14px;
  background: #e8eaee;
}

.tp-import-mode-tabs button {
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #3d4045;
  font-size: 16px;
  font-weight: 600;
}

.tp-import-mode-tabs button.is-active {
  background: #ffffff;
}

.tp-import-form-page.is-single-network
.tp-import-secret {
  min-height: 174px;
  border-radius: 14px;
}

.tp-import-form-page.is-single-network
.tp-import-advanced-row {
  height: 56px;
}

.tp-import-form-page.is-single-network
.tp-import-name-label {
  margin-top: 2px;
}

.tp-import-form-page.is-single-network
.tp-import-name-label > span {
  margin-bottom: 12px;
  color: #303339;
  font-size: 16px;
}

.tp-import-form-page.is-single-network
.tp-import-name-label input {
  height: 64px;
  border-radius: 13px;
}
/* =========================================================
   TP HD NETWORK SELECT - FINAL MOBILE ALIGN
   ========================================================= */


.tp-created-network-page {
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f5f6f8;
}

.tp-created-network-page
.tp-flow-header {
  flex: 0 0 auto;
  min-height: 78px;
  padding: 14px 20px 0;
}

.tp-created-network-page
.tp-created-network-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 20px 0;
  display: flex;
  flex-direction: column;
}

.tp-created-network-heading {
  flex: 0 0 auto;
  margin: 0 0 16px;
  align-items: flex-end;
}

.tp-created-network-heading h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.tp-created-network-heading p {
  margin: 7px 0 0;
  color: #9a9da3;
  font-size: 14px;
  line-height: 1.4;
}

.tp-created-network-heading button {
  padding: 6px 0;
  color: #2d87f5;
  font-size: 15px;
}

.tp-created-network-page
.tp-created-network-list {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 12px;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tp-created-network-page
.tp-created-network-list::-webkit-scrollbar {
  display: none;
}

.tp-created-network-page
.tp-hd-network-option {
  width: 100%;
  min-height: 74px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #eeeeef;
  background: #ffffff;
}

.tp-created-network-page
.tp-hd-network-option:last-child {
  border-bottom: 0;
}

.tp-created-network-page
.tp-created-chain-icon {
  width: 42px;
  height: 42px;
  margin-right: 15px;
  flex: 0 0 42px;
}

.tp-created-network-page
.tp-hd-network-option strong {
  min-width: 0;
  flex: 1;
  color: #292c31;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 400;
  text-align: left;
}

.tp-created-network-page
.tp-hd-network-option > i {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border: 1.5px solid #d4d7db;
  border-radius: 50%;
  font-size: 15px;
}

.tp-created-network-page
.tp-hd-network-option.is-selected > i {
  border-color: #2d87f5;
  background: #2d87f5;
  color: #ffffff;
}

.tp-created-network-page
.tp-flow-bottom-actions {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding:
    18px
    20px
    max(
      20px,
      env(safe-area-inset-bottom)
    );
  background: #f5f6f8;
}

.tp-created-network-page
.tp-primary-button {
  height: 58px;
  border-radius: 12px;
  font-size: 17px;
}

/* =========================================================
   TP HD NETWORK FALLBACK ICONS
   ========================================================= */

.tp-hd-fallback-icon {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef1f5;
  color: #5f6670;
}

.tp-hd-fallback-icon > span {
  display: block;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.tp-hd-fallback-icon svg {
  width: 27px;
  height: 27px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-hd-robinhood {
  background: #c8f000;
  color: #182112;
}

.tp-hd-robinhood svg {
  width: 30px;
  height: 30px;
  fill: #182112;
  stroke: none;
}

.tp-hd-arc {
  background: #202a34;
  color: #ffffff;
}

/* =========================================================
   TP GENERATED WALLET - FINAL MOBILE ALIGN
   ========================================================= */

.tp-generated-page {
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f5f6f8;
}

.tp-generated-page
.tp-flow-header {
  flex: 0 0 auto;
  min-height: 78px;
  padding: 14px 20px 0;
}

.tp-generated-page
.tp-generated-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 20px 20px;
}

.tp-generated-page
.tp-generated-body h1 {
  margin: 0;
  color: #292c31;
  font-size: 29px;
  line-height: 1.25;
  font-weight: 700;
}

.tp-generated-page
.tp-generated-body > p {
  margin: 9px 0 0;
  color: #9a9da3;
  font-size: 15px;
  line-height: 1.4;
}

.tp-generated-page
.tp-generated-card {
  min-height: 170px;
  margin: 22px 0 0;
  padding: 26px 24px;
  display: flex;
  align-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px 22px;
  border-radius: 14px;
  background: #ffffff;
}

.tp-generated-page
.tp-generated-chain {
  position: relative;
  width: 48px;
  height: 48px;
}

.tp-generated-page
.tp-generated-chain-icon {
  width: 48px;
  height: 48px;
  margin: 0;
}

.tp-generated-page
.tp-generated-chain > i {
  right: -2px;
  bottom: -1px;
  width: 19px;
  height: 19px;
  border: 2px solid #ffffff;
  background: #32af70;
  font-size: 11px;
}

.tp-generated-page
.tp-flow-bottom-actions {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding:
    18px
    20px
    max(
      20px,
      env(safe-area-inset-bottom)
    );
  background: #f5f6f8;
}


/* Mine sub pages */

.tp-mine-subpage {
  min-height: 100%;
  background: var(--tp-dark-bg, #f6f7f9);
}

.tp-mine-sub-body {
  padding: 14px 16px 30px;
}

.tp-mine-asset-overview
.tp-mine-sub-body {
  padding:
    18px
    16px
    34px;
}

.tp-mine-overview-card {
  min-height: 132px;

  padding:
    24px
    20px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  border-radius: 4px;

  background: #2f80ed;
  color: #ffffff;
}

.tp-mine-overview-label {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  color:
    rgba(
      255,
      255,
      255,
      .76
    );

  font-size: 14px;
  line-height: 1;
}

.tp-mine-overview-label button {
  width: 25px;
  height: 25px;

  padding: 0;

  display: grid;
  place-items: center;

  border: 0;

  background: transparent;
  color: #ffffff;
}

.tp-mine-overview-label svg {
  width: 21px;
  height: 21px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: .92;
}

.tp-mine-overview-card
> strong {
  margin-top: 14px;

  color: #ffffff;

  font-size: 31px;
  line-height: 1;

  font-weight: 600;

  letter-spacing: .3px;
}

.tp-mine-asset-search {
  height: 52px;

  margin-top: 16px;

  padding:
    0
    16px;

  display: flex;
  align-items: center;

  gap: 9px;

  border-radius: 12px;

  background: #ffffff;
}

.tp-mine-asset-search svg {
  width: 24px;
  height: 24px;

  flex: 0 0 auto;

  fill: none;
  stroke: #3f444a;

  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-mine-asset-search input {
  width: 100%;
  min-width: 0;

  padding: 0;

  border: 0;
  outline: 0;

  background: transparent;

  color: #32363b;

  font: inherit;
  font-size: 16px;
}

.tp-mine-asset-search
input::placeholder {
  color: #62676d;
  opacity: 1;
}

.tp-mine-asset-wallet-list {
  display: flex;
  flex-direction: column;

  gap: 10px;

  margin-top: 16px;
}

.tp-mine-asset-wallet-card {
  overflow: hidden;

  border-radius: 13px;

  background: #ffffff;
}

.tp-mine-asset-wallet-card.is-filtered-out {
  display: none;
}

.tp-mine-asset-wallet-card
> h3 {
  margin: 0;

  padding:
    18px
    16px
    10px;

  color: #383c42;

  font-size: 17px;
  line-height: 1.2;

  font-weight: 500;
}

.tp-mine-asset-rows {
  padding:
    0
    16px;
}

.tp-mine-asset-row {
  min-height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border-bottom:
    1px solid #eeeeef;
}

.tp-mine-asset-row:last-child {
  border-bottom: 0;
}

.tp-mine-asset-row.is-hidden {
  display: none;
}

.tp-mine-asset-left {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 12px;
}

.tp-mine-asset-left
> strong {
  color: #404449;

  font-size: 16px;
  line-height: 1;

  font-weight: 400;
}

.tp-mine-asset-token-icon {
  position: relative;

  width: 34px;
  height: 34px;

  flex:
    0
    0
    34px;

  overflow: visible;

  display: grid;
  place-items: center;

  border-radius: 50%;
}

.tp-mine-asset-token-icon
img {
  width: 34px;
  height: 34px;

  display: block;

  border-radius: 50%;
}

.tp-mine-usdt-token {
  background: #26a17b;

  color: #ffffff;
}

.tp-mine-usdt-token
> b {
  font-size: 22px;
  line-height: 1;

  font-weight: 600;
}

.tp-mine-usdt-token
> small {
  position: absolute;

  left: 50%;
  bottom: -4px;

  min-width: 27px;

  padding:
    1px
    3px;

  transform:
    translateX(-50%);

  border-radius: 5px;

  background:
    rgba(
      38,
      161,
      123,
      .96
    );

  color: #ffffff;

  font-size: 6px;
  line-height: 1.15;

  text-align: center;
}

.tp-mine-asset-value {
  min-width: 96px;

  display: flex;
  flex-direction: column;

  align-items: flex-end;

  gap: 5px;
}

.tp-mine-asset-value
> strong {
  max-width: 150px;

  overflow: hidden;

  color: #3b3f45;

  font-size: 16px;
  line-height: 1;

  font-weight: 400;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-mine-asset-value
> small {
  color: #9b9fa5;

  font-size: 12px;
  line-height: 1;

  font-weight: 400;
}

.tp-mine-asset-empty {
  margin-top: 64px;

  color: #a4a8ae;

  font-size: 14px;

  text-align: center;
}

.tp-mine-asset-empty.is-hidden {
  display: none;
}

/* TP-style wallet help center */

.tp-help-page {
  min-height: 100vh;

  background:
    linear-gradient(
      180deg,
      #b9d8ff 0%,
      #dbeaff 38%,
      #f4f6f9 72%
    );
}

.tp-help-header {
  min-height: 58px;

  padding:
    env(safe-area-inset-top)
    12px
    0;

  display: grid;

  grid-template-columns:
    44px
    minmax(0, 1fr)
    44px;

  align-items: center;

  color: var(--tp-dark-text, #313740);
}

.tp-help-header
> strong {
  justify-self: center;

  font-size: 18px;
  line-height: 1;

  font-weight: 600;
}

.tp-help-back {
  position: relative;

  left: 0;
  top: 0;
}

.tp-help-header-space {
  width: 44px;
}

.tp-help-body {
  padding:
    5px
    18px
    calc(
      34px +
      env(safe-area-inset-bottom)
    );
}

.tp-help-hero {
  position: relative;

  padding-top: 95px;
}

.tp-help-assistant-art {
  position: absolute;

  z-index: 2;

  top: 2px;
  right: 15px;

  width: 105px;
  height: 105px;
}

.tp-help-assistant-head {
  position: absolute;

  right: 3px;
  top: 12px;

  width: 82px;
  height: 75px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  border:
    4px
    solid
    #ffffff;

  border-radius:
    44px
    44px
    38px
    38px;

  background:
    linear-gradient(
      145deg,
      #63a8fc,
      #2f82f2
    );

  box-shadow:
    0
    10px
    22px
    rgba(
      48,
      120,
      213,
      .22
    );
}

.tp-help-assistant-head::before,
.tp-help-assistant-head::after {
  content: "";

  position: absolute;

  top: -10px;

  width: 24px;
  height: 24px;

  border:
    4px
    solid
    #ffffff;

  background: #438ff4;

  transform:
    rotate(45deg);

  z-index: -1;
}

.tp-help-assistant-head::before {
  left: 7px;
}

.tp-help-assistant-head::after {
  right: 7px;
}

.tp-help-assistant-head
.is-eye {
  width: 9px;
  height: 15px;

  border-radius: 8px;

  background: #ffffff;
}

.tp-help-assistant-head
.is-eye:first-child {
  transform:
    rotate(8deg);
}

.tp-help-assistant-head
.is-eye:last-child {
  transform:
    rotate(-8deg);
}

.tp-help-hi {
  position: absolute;

  left: -18px;
  top: 15px;

  padding:
    4px
    11px;

  border:
    1px
    solid
    rgba(
      255,
      255,
      255,
      .72
    );

  border-radius: 15px;

  color: #ffffff;

  font-size: 12px;

  transform:
    rotate(-6deg);
}

.tp-help-query-card {
  position: relative;

  z-index: 1;

  padding:
    23px
    18px
    18px;

  border:
    1px
    solid
    var(--tp-dark-line, rgba(255, 255, 255, .82));

  border-radius: 17px;

  background:
    var(--tp-dark-surface, rgba(255, 255, 255, .91));

  box-shadow:
    0
    10px
    30px
    rgba(
      74,
      121,
      178,
      .08
    );
}

.tp-help-query-card
h1 {
  margin: 0;

  color: var(--tp-dark-text, #30353c);

  font-size: 22px;
  line-height: 1.25;

  font-weight: 600;
}

.tp-help-query-card
> p {
  margin:
    4px
    0
    17px;

  color: var(--tp-dark-muted, #9aa1aa);

  font-size: 13px;
}

.tp-help-search-box {
  height: 52px;

  padding:
    0
    14px;

  display: flex;
  align-items: center;

  gap: 9px;

  border-radius: 12px;

  background: var(--tp-dark-surface-2, #f3f5f8);
}

.tp-help-search-box
svg {
  width: 21px;
  height: 21px;

  flex:
    0
    0
    21px;

  fill: none;
  stroke: var(--tp-dark-muted, #838b95);

  stroke-width: 1.8;
  stroke-linecap: round;
}

.tp-help-search-box
input {
  min-width: 0;

  flex:
    1
    1
    auto;

  border: 0;

  outline: 0;

  background: transparent;

  color: var(--tp-dark-text, #383d44);

  font-family: inherit;

  font-size: 15px;
}

.tp-help-search-box
input::placeholder {
  color: var(--tp-dark-muted, #9ea5ae);
}

.tp-help-start {
  width: 100%;
  height: 48px;

  margin-top: 15px;

  border: 0;

  border-radius: 24px;

  background:
    linear-gradient(
      90deg,
      #368af6,
      #3181ef
    );

  color: #ffffff;

  font-size: 17px;

  font-weight: 500;
}

.tp-help-common {
  margin-top: 26px;
}

.tp-help-common
h2 {
  margin:
    0
    0
    13px;

  color: var(--tp-dark-text, #343941);

  font-size: 18px;

  font-weight: 600;
}

.tp-help-common-tags {
  display: flex;
  flex-wrap: wrap;

  gap:
    10px
    8px;
}

.tp-help-common-tags
button {
  min-height: 40px;

  padding:
    0
    15px;

  border: 0;

  border-radius: 20px;

  background: var(--tp-dark-surface, #ffffff);

  color: var(--tp-dark-text, #4d535a);

  font-family: inherit;

  font-size: 13px;

  box-shadow:
    0
    2px
    7px
    rgba(
      73,
      91,
      112,
      .04
    );
}

.tp-help-common-tags
button:active {
  background: var(--tp-dark-surface-2, #edf4fd);
}

.tp-help-results {
  margin-top: 26px;
}

.tp-help-results-title {
  margin-bottom: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-help-results-title
strong {
  color: var(--tp-dark-text, #343941);

  font-size: 18px;

  font-weight: 600;
}

.tp-help-results-title
span {
  color: var(--tp-dark-muted, #8f969f);

  font-size: 12px;
}

.tp-help-faq-list {
  overflow: hidden;

  border-radius: 14px;

  background: var(--tp-dark-surface, #ffffff);
}

.tp-help-faq-item {
  border-bottom:
    1px
    solid
    var(--tp-dark-line, #eef0f2);
}

.tp-help-faq-item:last-child {
  border-bottom: 0;
}

.tp-help-faq-item.is-hidden {
  display: none;
}

.tp-help-faq-question {
  width: 100%;
  min-height: 57px;

  padding:
    0
    15px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border: 0;

  background: var(--tp-dark-surface, #ffffff);

  color: var(--tp-dark-text, #3c4148);

  font-family: inherit;

  text-align: left;
}

.tp-help-faq-question
span {
  font-size: 14px;
}

.tp-help-faq-question
b {
  color: var(--tp-dark-muted, #a4a9af);

  font-size: 24px;
  line-height: 1;

  font-weight: 300;

  transition:
    transform
    .2s
    ease;
}

.tp-help-faq-item.is-open
.tp-help-faq-question
b {
  transform:
    rotate(90deg);
}

.tp-help-faq-answer {
  display: none;

  padding:
    0
    15px
    16px;
}

.tp-help-faq-item.is-open
.tp-help-faq-answer {
  display: block;
}

.tp-help-faq-answer
p {
  margin:
    0
    0
    12px;

  color: var(--tp-dark-text, #838a93);

  font-size: 13px;
  line-height: 1.65;
}

.tp-help-faq-action {
  min-height: 34px;

  padding:
    0
    15px;

  border:
    1px
    solid
    #3589f4;

  border-radius: 18px;

  background: var(--tp-dark-surface, #ffffff);

  color: #3589f4;

  font-size: 12px;
}

.tp-help-empty {
  min-height: 135px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 6px;

  border-radius: 14px;

  background: var(--tp-dark-surface, #ffffff);

  color: var(--tp-dark-muted, #8e959e);
}

.tp-help-empty.is-hidden {
  display: none;
}

.tp-help-empty
strong {
  color: var(--tp-dark-text, #666d75);

  font-size: 14px;
}

.tp-help-empty
span {
  font-size: 12px;
}

.tp-mine-info-group,
.tp-settings-group,
.tp-guide-list {
  margin-top: 13px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--tp-dark-surface, #ffffff);
}

.tp-mine-info-row {
  min-height: 52px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--tp-dark-line, #f0f1f3);
}

.tp-mine-info-row:last-child {
  border-bottom: 0;
}

.tp-mine-info-row span,
.tp-mine-info-address > span {
  color: #8d939c;
  font-size: 10px;
}

.tp-mine-info-row strong {
  color: var(--tp-dark-text, #42474e);
  font-size: 10px;
  font-weight: 500;
  text-align: right;
}

.tp-mine-info-address {
  padding: 14px 15px;
}

.tp-mine-info-address > span {
  display: block;
}

.tp-mine-info-address > strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--tp-dark-text, #4a4f56);
  font-size: 10px;
  line-height: 1.55;
  font-weight: 500;
}

.tp-mine-sub-note {
  margin-top: 13px;
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--tp-dark-surface, #ffffff);
  color: var(--tp-dark-muted, #9ca1a9);
  font-size: 9px;
  line-height: 1.65;
}

.tp-mine-filter-bar {
  padding: 4px;
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 4px;
  border-radius: 12px;
  background: var(--tp-dark-surface, #ffffff);
}

.tp-mine-filter-bar button {
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #858b94;
  font-size: 10px;
}

.tp-mine-filter-bar button.is-active {
  background: #edf5ff;
  color: #2980FE;
}

.tp-experience-page {
  min-height: 100vh;

  background: #f4f5f8;
}

.tp-experience-topbar {
  height: 58px;

  padding:
    env(safe-area-inset-top)
    12px
    0;

  display: flex;
  align-items: center;

  background: var(--tp-dark-bg, #f4f5f8);
}

.tp-experience-back {
  position: relative;

  left: 0;
  top: 0;
}

.tp-experience-body {
  padding:
    8px
    18px
    34px;
}

.tp-experience-heading {
  margin-bottom: 18px;
}

.tp-experience-heading h1 {
  margin: 0;

  color: var(--tp-dark-text, #34383e);

  font-size: 28px;
  line-height: 1.2;

  font-weight: 500;
}

.tp-experience-heading p {
  margin:
    5px
    0
    0;

  color: var(--tp-dark-muted, #a0a5ac);

  font-size: 14px;
  line-height: 1.45;
}

.tp-experience-feature-card {
  margin-bottom: 16px;

  padding:
    18px
    16px
    16px;

  border-radius: 16px;

  background: #ffffff;
}

.tp-experience-feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.tp-experience-feature-title {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 10px;
}

.tp-experience-feature-title
> strong {
  color: var(--tp-dark-text, #383c42);

  font-size: 18px;
  line-height: 1.2;

  font-weight: 500;
}

.tp-experience-feature-icon {
  width: 32px;
  height: 32px;

  flex:
    0
    0
    32px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: #ffffff;

  font-size: 13px;
  line-height: 1;

  font-weight: 600;
}

.tp-experience-feature-icon.is-aa {
  background: #3488f4;
}

.tp-experience-feature-icon.is-nostr {
  background:
    linear-gradient(
      135deg,
      #bf4fe8,
      #7744d9
    );
}

.tp-experience-feature-icon
svg {
  width: 22px;
  height: 22px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-experience-switch {
  position: relative;

  width: 46px;
  height: 27px;

  flex:
    0
    0
    46px;

  padding: 0;

  border: 0;
  border-radius: 15px;

  background: #cfd2d6;

  -webkit-tap-highlight-color:
    transparent;
}

.tp-experience-switch
> i {
  position: absolute;

  top: 2px;
  left: 2px;

  width: 23px;
  height: 23px;

  border-radius: 50%;

  background: #ffffff;

  box-shadow:
    0
    1px
    4px
    rgba(
      0,
      0,
      0,
      .12
    );
}

.tp-experience-description {
  margin:
    11px
    0
    14px;

  color: var(--tp-dark-muted, #9fa4ab);

  font-size: 13px;
  line-height: 1.55;
}

.tp-experience-banner {
  width: 100%;
  height: 108px;

  overflow: hidden;

  border-radius: 11px;
}

.tp-experience-banner svg {
  width: 100%;
  height: 100%;

  display: block;
}

.tp-experience-feature-card:last-child {
  margin-bottom: 0;
}

/* TP Address book */

.tp-address-book-page,
.tp-address-book-edit-page {
  min-height: 100vh;

  background: var(--tp-dark-bg, #f4f5f8);
}

.tp-address-book-header {
  position: relative;

  min-height: 70px;

  padding:
    env(safe-area-inset-top)
    12px
    0;

  display: grid;

  grid-template-columns:
    48px
    minmax(0, 1fr)
    48px;

  align-items: center;

  background: var(--tp-dark-bg, #f4f5f8);
}

.tp-address-book-title {
  min-width: 0;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 3px;
}

.tp-address-book-title
> strong {
  color: var(--tp-dark-text, #34383e);

  font-size: 18px;
  line-height: 1.2;

  font-weight: 600;
}

.tp-address-book-title
label {
  position: relative;

  display: inline-flex;

  border:
    1px
    solid
    #8ebdf9;

  border-radius: 5px;

  background: var(--tp-dark-surface-2, #edf5ff);
}

.tp-address-book-title
select {
  min-width: 78px;
  height: 23px;

  padding:
    0
    22px
    0
    8px;

  border: 0;

  outline: 0;

  appearance: none;
  -webkit-appearance: none;

  background: transparent;

  color: #4089e8;

  font-size: 11px;
}

.tp-address-book-title
label svg {
  position: absolute;

  right: 5px;
  top: 50%;

  width: 13px;
  height: 13px;

  transform:
    translateY(-50%);

  fill: none;
  stroke: #4089e8;

  stroke-width: 2;

  pointer-events: none;
}

.tp-address-book-add {
  width: 34px;
  height: 34px;

  justify-self: end;

  padding: 0;

  display: grid;
  place-items: center;

  border:
    1.5px
    solid
    var(--tp-dark-text, #383d43);

  border-radius: 50%;

  background: transparent;

  color: var(--tp-dark-text, #33383e);

  font-size: 27px;
  line-height: 1;

  font-weight: 300;
}

.tp-address-book-body {
  min-height:
    calc(
      100vh -
      70px
    );

  padding:
    8px
    16px
    28px;
}

.tp-address-book-empty {
  min-height: 520px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding-bottom: 80px;

  text-align: center;
}

.tp-address-book-empty-art {
  width: 110px;
  height: 110px;

  margin-bottom: 20px;
}

.tp-address-book-empty-art svg {
  width: 100%;
  height: 100%;

  display: block;
}

.tp-address-book-empty
p {
  margin:
    0
    0
    28px;

  color: var(--tp-dark-muted, #a5a9af);

  font-size: 15px;
  line-height: 1.4;
}

.tp-address-book-empty
button {
  min-width: 170px;
  height: 46px;

  padding:
    0
    24px;

  border:
    1px
    solid
    #438df0;

  border-radius: 6px;

  background: transparent;

  color: #438df0;

  font-size: 16px;
}

.tp-address-book-list {
  overflow: hidden;

  border-radius: 14px;

  background: var(--tp-dark-surface, #ffffff);
}

.tp-address-book-entry {
  min-height: 82px;

  padding:
    13px
    12px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  border-bottom:
    1px
    solid
    var(--tp-dark-line, #eff0f2);
}

.tp-address-book-entry:last-child {
  border-bottom: 0;
}

.tp-address-book-entry-main {
  min-width: 0;

  flex:
    1
    1
    auto;

  display: flex;
  align-items: center;

  gap: 10px;
}

.tp-address-book-entry-icon {
  width: 38px;
  height: 38px;

  flex:
    0
    0
    38px;

  overflow: hidden;

  display: grid;
  place-items: center;

  border-radius: 50%;
}

.tp-address-book-entry-icon img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
}

.tp-address-book-entry-copy {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 2px;
}

.tp-address-book-entry-copy
strong {
  color: var(--tp-dark-text, #34383e);

  font-size: 15px;
  line-height: 1.25;

  font-weight: 500;
}

.tp-address-book-entry-copy
span {
  color: var(--tp-dark-muted, #858b93);

  font-size: 11px;
}

.tp-address-book-entry-copy
small {
  max-width: 205px;

  overflow: hidden;

  color: var(--tp-dark-muted, #a2a7ad);

  font-size: 11px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-address-book-entry-actions {
  flex:
    0
    0
    auto;

  display: flex;
  align-items: center;

  gap: 5px;
}

.tp-address-book-entry-actions
button {
  width: 30px;
  height: 30px;

  padding: 0;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 50%;

  background: transparent;

  color: var(--tp-dark-muted, #91969d);
}

.tp-address-book-entry-actions
button svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.6;
}

.tp-address-book-entry-actions
button.is-delete {
  color: #dc706b;

  font-size: 22px;
  line-height: 1;
}

.tp-address-book-header-space {
  width: 48px;
}

.tp-address-book-form {
  padding:
    14px
    16px
    30px;
}

.tp-address-book-field {
  min-height: 64px;

  padding:
    10px
    14px;

  display: flex;
  flex-direction: column;

  gap: 6px;

  border-bottom:
    1px
    solid
    var(--tp-dark-line, #eeeeef);

  background: var(--tp-dark-surface, #ffffff);
}

.tp-address-book-field:first-child {
  border-radius:
    14px
    14px
    0
    0;
}

.tp-address-book-field:nth-child(3) {
  border-bottom: 0;

  border-radius:
    0
    0
    14px
    14px;
}

.tp-address-book-field
> span {
  color: var(--tp-dark-muted, #8e949b);

  font-size: 12px;
}

.tp-address-book-field
input,
.tp-address-book-field
select,
.tp-address-book-field
textarea {
  width: 100%;

  padding: 0;

  border: 0;

  outline: 0;

  background: transparent;

  color: var(--tp-dark-text, #34383e);

  font-family: inherit;

  font-size: 15px;
}

.tp-address-book-field
textarea {
  min-height: 72px;

  resize: none;

  line-height: 1.45;
}

.tp-address-book-form-note {
  margin:
    12px
    3px
    24px;

  color: var(--tp-dark-muted, #9ca2a9);

  font-size: 12px;
  line-height: 1.5;
}

.tp-address-book-save {
  width: 100%;
  height: 50px;

  border: 0;
  border-radius: 9px;

  background: #3188f5;

  color: #ffffff;

  font-size: 16px;

  font-weight: 500;
}

.tp-mine-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tp-mine-search {
  height: 42px;
  padding: 0 13px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 21px;
  background: #ffffff;
}

.tp-mine-search span {
  color: #858b94;
  font-size: 17px;
}

.tp-mine-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 10px;
}

.tp-mine-toolbar > button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #2980FE;
  color: #ffffff;
  font-size: 20px;
}

/* TP-style invite poster */

.tp-invite-poster {
  position: relative;

  min-height: 100vh;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      #2678f4 0%,
      #4b96fa 21%,
      #a9d3ff 49%,
      #eef8ff 74%,
      #ffffff 100%
    );

  color: #ffffff;
}

.tp-invite-poster::after {
  content: "";

  position: absolute;

  left: -18%;
  right: -18%;
  bottom: -122px;

  height: 290px;

  border-radius:
    50%
    50%
    0
    0;

  background:
    #2d80f5;

  z-index: 0;
}

.tp-invite-poster-header {
  position: relative;

  z-index: 5;

  min-height: 58px;

  padding:
    env(safe-area-inset-top)
    14px
    0;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-invite-poster-back,
.tp-invite-poster-share {
  width: 42px;
  height: 42px;

  padding: 0;

  display: grid;
  place-items: center;

  border: 0;

  background: transparent;

  color: #ffffff;
}

.tp-invite-poster-back svg,
.tp-invite-poster-share svg {
  width: 27px;
  height: 27px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-invite-poster-body {
  position: relative;

  z-index: 2;

  min-height:
    calc(
      100vh -
      58px
    );

  padding:
    2px
    18px
    calc(
      25px +
      env(safe-area-inset-bottom)
    );

  display: flex;
  flex-direction: column;

  align-items: center;
}

.tp-invite-brand {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  font-size: 18px;

  letter-spacing: .4px;
}

.tp-invite-brand-mark {
  min-width: 42px;
  height: 34px;

  padding:
    0
    7px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background: #ffffff;

  color: #3184f5;

  font-size: 18px;
  line-height: 1;

  font-weight: 800;

  letter-spacing: -1px;
}

.tp-invite-brand
strong {
  color: #ffffff;

  font-size: 20px;
  line-height: 1;

  font-weight: 700;
}

.tp-invite-poster-body
> h1 {
  margin:
    30px
    0
    14px;

  color: #ffffff;

  font-size: 25px;
  line-height: 1.3;

  font-weight: 500;

  text-align: center;

  letter-spacing: 1px;
}

.tp-invite-stage {
  position: relative;

  width: 100%;
  height: 430px;

  flex:
    0
    0
    430px;
}

.tp-invite-feature {
  position: absolute;

  z-index: 3;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 5px;

  color: #155bb5;
}

.tp-invite-feature
> span {
  width: 59px;
  height: 53px;

  display: grid;
  place-items: center;

  border:
    2px
    solid
    rgba(
      255,
      255,
      255,
      .85
    );

  border-radius: 13px;

  background:
    linear-gradient(
      145deg,
      #2585fa,
      #5aa9ff
    );

  box-shadow:
    6px
    7px
    0
    rgba(
      31,
      110,
      215,
      .24
    );

  color: #ffffff;
}

.tp-invite-feature svg {
  width: 31px;
  height: 31px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-invite-feature
b {
  font-size: 14px;
  line-height: 1;

  font-weight: 600;

  font-style: italic;
}

.tp-invite-feature.is-swap {
  top: 83px;
  left: 49%;
}

.tp-invite-feature.is-dapp {
  top: 83px;
  right: 3px;
}

.tp-invite-feature.is-cross {
  top: 205px;
  left: 1px;
}

.tp-invite-feature.is-market {
  top: 213px;
  right: 0;
}

.tp-invite-phone {
  position: absolute;

  z-index: 2;

  top: 117px;
  left: 50%;

  width: 158px;
  height: 292px;

  padding: 6px;

  transform:
    translateX(-50%)
    rotate(10deg);

  border-radius: 22px;

  background:
    #16191d;

  box-shadow:
    0
    18px
    28px
    rgba(
      30,
      82,
      145,
      .25
    );
}

.tp-invite-phone-camera {
  position: absolute;

  top: 8px;
  left: 50%;

  width: 22px;
  height: 5px;

  transform:
    translateX(-50%);

  border-radius: 3px;

  background: #060708;

  z-index: 4;
}

.tp-invite-phone-screen {
  height: 100%;

  padding:
    15px
    7px
    8px;

  overflow: hidden;

  border-radius: 17px;

  background: #f8f9fb;

  color: #313740;
}

.tp-invite-phone-top {
  height: 15px;

  display: flex;
  align-items: center;

  gap: 3px;
}

.tp-invite-phone-top
span {
  width: 3px;
  height: 3px;

  display: block;

  border-radius: 50%;

  background: #9ba2aa;
}

.tp-invite-phone-wallet {
  min-height: 67px;

  padding:
    9px
    10px;

  display: flex;
  flex-direction: column;

  gap: 2px;

  border-radius: 9px;

  background:
    linear-gradient(
      135deg,
      #307ff4,
      #55a3ff
    );

  color: #ffffff;
}

.tp-invite-phone-wallet
small {
  font-size: 8px;

  opacity: .84;
}

.tp-invite-phone-wallet
strong {
  font-size: 16px;
  line-height: 1.2;
}

.tp-invite-phone-wallet
span {
  font-size: 7px;

  opacity: .76;
}

.tp-invite-phone-actions {
  margin:
    8px
    0;

  display: grid;

  grid-template-columns:
    repeat(
      4,
      1fr
    );

  gap: 3px;
}

.tp-invite-phone-actions
i {
  padding:
    4px
    1px;

  border-radius: 5px;

  background: #ffffff;

  color: #737b85;

  font-size: 6px;

  font-style: normal;

  text-align: center;
}

.tp-invite-phone-token {
  min-height: 38px;

  display: grid;

  grid-template-columns:
    26px
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 5px;

  border-bottom:
    1px
    solid
    #eceef1;
}

.tp-invite-phone-token
> span {
  width: 22px;
  height: 22px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: #ffffff;

  font-size: 10px;
  font-weight: 700;
}

.tp-invite-phone-token
> span.is-btc {
  background: #f3a523;
}

.tp-invite-phone-token
> span.is-usdt {
  background: #2cac8a;
}

.tp-invite-phone-token
> span.is-bnb {
  background: #24272b;
}

.tp-invite-phone-token
div {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.tp-invite-phone-token
div strong {
  font-size: 8px;
}

.tp-invite-phone-token
div small {
  color: #9aa0a8;

  font-size: 6px;
}

.tp-invite-phone-token
> b {
  font-size: 7px;

  font-weight: 500;
}

.tp-invite-trade-card {
  position: absolute;

  z-index: 4;

  left: 50%;
  bottom: 14px;

  width: 190px;

  padding:
    11px
    14px;

  transform:
    translateX(-26%);

  border:
    1px
    solid
    rgba(
      255,
      255,
      255,
      .45
    );

  border-radius: 12px;

  background:
    rgba(
      40,
      129,
      246,
      .82
    );

  box-shadow:
    0
    12px
    28px
    rgba(
      37,
      100,
      184,
      .21
    );

  backdrop-filter:
    blur(5px);

  color: #ffffff;
}

.tp-invite-trade-card
div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-invite-trade-card
span {
  font-size: 10px;
}

.tp-invite-trade-card
strong {
  font-size: 12px;
}

.tp-invite-trade-card
i {
  margin:
    5px
    0;

  display: block;

  color:
    rgba(
      255,
      255,
      255,
      .7
    );

  font-style: normal;

  text-align: center;
}

.tp-invite-download-area {
  position: relative;

  z-index: 4;

  margin-top: auto;

  padding-top: 8px;

  display: flex;
  flex-direction: column;

  align-items: center;

  color: #ffffff;
}

.tp-invite-qr-frame {
  width: 146px;
  height: 146px;

  padding: 10px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border-radius: 8px;

  background: #ffffff;

  box-shadow:
    0
    9px
    24px
    rgba(
      19,
      70,
      142,
      .2
    );
}

.tp-invite-qr-frame
img,
.tp-invite-qr-frame
canvas {
  display: block !important;

  max-width: 126px;
  max-height: 126px;
}

.tp-invite-qr-error {
  color: #888e96;

  font-size: 12px;

  text-align: center;
}

.tp-invite-download-area
> strong {
  margin-top: 8px;

  font-size: 13px;
  line-height: 1.2;

  font-weight: 500;
}

.tp-invite-download-area
> span {
  margin-top: 3px;

  max-width: 270px;

  overflow: hidden;

  color:
    rgba(
      255,
      255,
      255,
      .77
    );

  font-size: 9px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (
  max-height: 720px
) {
  .tp-invite-poster-body
  > h1 {
    margin-top: 18px;

    font-size: 22px;
  }

  .tp-invite-stage {
    height: 355px;

    flex-basis: 355px;
  }

  .tp-invite-phone {
    top: 90px;

    transform:
      translateX(-50%)
      rotate(8deg)
      scale(.84);

    transform-origin:
      top center;
  }

  .tp-invite-feature.is-swap,
  .tp-invite-feature.is-dapp {
    top: 62px;
  }

  .tp-invite-feature.is-cross,
  .tp-invite-feature.is-market {
    top: 173px;
  }

  .tp-invite-trade-card {
    bottom: 6px;

    transform:
      translateX(-25%)
      scale(.9);
  }

  .tp-invite-qr-frame {
    width: 132px;
    height: 132px;
  }

  .tp-invite-qr-frame
  img,
  .tp-invite-qr-frame
  canvas {
    max-width: 112px;
    max-height: 112px;
  }
}

.tp-invite-card,
.tp-official-card {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 16px;
  background: var(--tp-dark-surface, #ffffff);
  text-align: center;
}

.tp-invite-symbol,
.tp-official-card > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--tp-dark-surface-2, #edf5ff);
  color: #2980FE;
  font-size: 25px;
}

.tp-invite-card > strong,
.tp-official-card > strong {
  margin-top: 16px;
  color: var(--tp-dark-text, #343940);
  font-size: 15px;
}

.tp-invite-card > p,
.tp-official-card > p {
  margin: 8px 0 0;
  color: var(--tp-dark-muted, #9a9fa7);
  font-size: 10px;
  line-height: 1.6;
}

.tp-invite-code,
.tp-official-card > div {
  width: 100%;
  margin-top: 20px;
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--tp-dark-surface-2, #f7f8fa);
  color: var(--tp-dark-muted, #8d939b);
  font-size: 10px;
  text-align: left;
}

.tp-invite-card > button {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 11px;
  background: #2980FE;
  color: #ffffff;
  font-size: 11px;
}

.tp-guide-row {
  width: 100%;
  min-height: 64px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--tp-dark-line, #f0f1f3);
  background: var(--tp-dark-surface, #ffffff);
  text-align: left;
}

.tp-guide-row:last-child {
  border-bottom: 0;
}

.tp-guide-row > span {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tp-guide-row strong {
  color: var(--tp-dark-text, #3e434a);
  font-size: 11px;
}

.tp-guide-row small {
  color: var(--tp-dark-muted, #a0a5ad);
  font-size: 9px;
}

.tp-guide-row b {
  color: var(--tp-dark-muted, #b8bdc3);
  font-size: 20px;
  font-weight: 300;
}

/* TokenPocketz About */

.tp-about-page,
.tp-about-detail-page {
  min-height: 100vh;

  background: #f4f5f8;
}

.tp-about-body {
  padding:
    24px
    16px
    35px;
}

.tp-about-brand {
  padding:
    34px
    0
    38px;

  display: flex;
  flex-direction: column;

  align-items: center;
}

.tp-about-brand-logo {
  width: 76px;
  height: 76px;

  display: grid;
  place-items: center;

  border-radius: 19px;

  background:
    linear-gradient(
      145deg,
      #4598fa,
      #2178ee
    );

  box-shadow:
    0
    9px
    22px
    rgba(
      40,
      126,
      237,
      .2
    );

  color: #ffffff;

  font-size: 33px;
  line-height: 1;

  font-weight: 800;

  letter-spacing: -2px;
}

.tp-about-brand
> strong {
  margin-top: 14px;

  color: var(--tp-dark-text, #31363c);

  font-size: 24px;
  line-height: 1.2;

  font-weight: 700;

  letter-spacing: .3px;
}

.tp-about-brand
> span {
  margin-top: 13px;

   color: var(--tp-dark-muted, #989ea6);

  font-size: 14px;
}

.tp-about-menu {
  overflow: hidden;

  border-radius: 14px;

  background: #ffffff;
}

.tp-about-menu
button {
  position: relative;

  width: 100%;
  min-height: 62px;

  padding:
    0
    16px;

  display: flex;
  align-items: center;

  border: 0;

  background: var(--tp-dark-surface, #ffffff);

  color: var(--tp-dark-text, #373c43);

  font-family: inherit;

  text-align: left;
}

.tp-about-menu
button:not(:last-child)::after {
  content: "";

  position: absolute;

  left: 16px;
  right: 16px;
  bottom: 0;

  height: 1px;

  background: var(--tp-dark-line, #eeeeef);
}

.tp-about-menu
button
> span {
  min-width: 0;

  flex:
    1
    1
    auto;

  font-size: 16px;
}

.tp-about-menu
button
> b {
  flex:
    0
    0
    auto;

  color: var(--tp-dark-muted, #a4a9af);

  font-size: 25px;
  line-height: 1;

  font-weight: 300;
}

.tp-about-menu
button
> em {
  flex:
    0
    0
    auto;

  color: #ffc928;

  font-size: 27px;
  line-height: 1;

  font-style: normal;
}

.tp-about-menu
button:active {
  background: var(--tp-dark-surface-2, #f8f9fa);
}

.tp-about-channels {
  margin-top: 26px;
}

.tp-about-channels
> h2 {
  margin:
    0
    0
    13px;

  color: var(--tp-dark-text, #353a41);

  font-size: 17px;

  font-weight: 500;
}

.tp-about-channel-grid {
  padding:
    17px
    12px
    14px;

  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap:
    20px
    8px;

  border-radius: 14px;

  background: var(--tp-dark-surface, #ffffff);
}

.tp-about-channel-grid
button {
  min-width: 0;

  padding: 0;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 7px;

  border: 0;

  background: transparent;

  color: var(--tp-dark-text, #555b63);

  font-family: inherit;
}

.tp-about-channel-grid
button
> i {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background: var(--tp-dark-surface-2, #f4f5f8);

  color: var(--tp-dark-text, #545a61);

  font-style: normal;
}

.tp-about-channel-grid
button
> i.is-text {
  font-size: 20px;

  font-weight: 600;
}

.tp-about-channel-grid
button
svg {
  width: 27px;
  height: 27px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-about-channel-grid
button
> span {
  max-width: 100%;

  overflow: hidden;

  font-size: 12px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-about-channel-grid
button:active
> i {
  background: var(--tp-dark-line, #ebedf0);
}

.tp-about-channel-note {
  margin:
    10px
    4px
    0;

  color: var(--tp-dark-muted, #a0a5ac);

  font-size: 11px;
  line-height: 1.5;
}


/* About detail */

.tp-about-detail-body {
  padding:
    24px
    16px
    36px;
}

.tp-about-version-card {
  padding:
    31px
    18px
    25px;

  display: flex;
  flex-direction: column;

  align-items: center;

  border-radius: 15px;

  background: #ffffff;
}

.tp-about-version-logo {
  width: 70px;
  height: 70px;

  display: grid;
  place-items: center;

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      #4598fa,
      #2178ee
    );

  color: #ffffff;

  font-size: 30px;
  line-height: 1;

  font-weight: 800;

  letter-spacing: -2px;
}

.tp-about-version-card
> strong {
  margin-top: 13px;

  color: var(--tp-dark-text, #343940);

  font-size: 20px;
}

.tp-about-version-card
> span {
  margin-top: 8px;

  color: var(--tp-dark-muted, #989ea6);

  font-size: 13px;
}

.tp-about-version-status {
  width: 100%;

  margin-top: 23px;

  padding-top: 17px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-top:
    1px
    solid
    var(--tp-dark-line, #eef0f2);
}

.tp-about-version-status
b {
  color: #3187f3;

  font-size: 14px;

  font-weight: 500;
}

.tp-about-version-status
small {
  color: var(--tp-dark-muted, #979da5);

  font-size: 12px;
}

.tp-about-download-button {
  width: 100%;
  height: 49px;

  margin-top: 18px;

  border: 0;
  border-radius: 9px;

  background: #3187f3;

  color: #ffffff;

  font-family: inherit;

  font-size: 16px;

  font-weight: 500;
}

.tp-about-detail-note {
  margin:
    10px
    4px
    0;

  color: var(--tp-dark-muted, #9da3aa);

  font-size: 11px;

  text-align: center;
}

.tp-about-changelog,
.tp-about-privacy-card {
  padding:
    20px
    17px;

  border-radius: 14px;

  background: #ffffff;
}

.tp-about-changelog-head {
  padding-bottom: 17px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom:
    1px
    solid
    var(--tp-dark-line, #eef0f2);
}

.tp-about-changelog-head
strong {
  color: var(--tp-dark-text, #32373e);

  font-size: 20px;
}

.tp-about-changelog-head
span {
  color: #3187f3;

  font-size: 12px;
}

.tp-about-changelog-item {
  position: relative;

  min-height: 47px;

  padding:
    14px
    0
    14px
    20px;

  display: flex;

  color: var(--tp-dark-text, #626970);

  font-size: 13px;
  line-height: 1.55;
}

.tp-about-changelog-item
i {
  position: absolute;

  left: 2px;
  top: 20px;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #3187f3;
}

.tp-about-privacy-card
h2 {
  margin:
    0
    0
    18px;

  color: var(--tp-dark-text, #31363d);

  font-size: 20px;
}

.tp-about-privacy-card
h3 {
  margin:
    21px
    0
    7px;

  color: var(--tp-dark-text, #3d4249);

  font-size: 15px;
}

.tp-about-privacy-card
p {
  margin: 0;

  color: var(--tp-dark-text, #767d85);

  font-size: 13px;
  line-height: 1.75;
}

.tp-about-privacy-warning {
  margin-top: 24px;

  padding:
    13px
    14px;

  display: flex;
  flex-direction: column;

  gap: 5px;

  border-radius: 9px;

  background: var(--tp-dark-surface-2, #f4f7fb);
}

.tp-about-privacy-warning
strong {
  color: var(--tp-dark-text, #4e555d);

  font-size: 13px;
}

.tp-about-privacy-warning
span {
  color: var(--tp-dark-muted, #9299a2);

  font-size: 11px;
  line-height: 1.55;
}

.tp-settings-group button {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #f0f1f3;
  background: #ffffff;
  text-align: left;
}

.tp-settings-group button:last-child {
  border-bottom: 0;
}

.tp-settings-group button > span {
  flex: 1;
  color: #42474e;
  font-size: 11px;
}

.tp-settings-group button > em {
  color: #9da2aa;
  font-size: 9px;
  font-style: normal;
}

.tp-settings-group button > b {
  color: #babec4;
  font-size: 20px;
  font-weight: 300;
}
/* ================================
   TP Theme Mode
   ================================ */

.tp-theme-settings-page {
  min-height: 100vh;
  background: #f4f6f9;
}

.tp-theme-settings-page
.tp-flow-header {
  background: #ffffff;
}

.tp-theme-settings-body {
  min-height:
    calc(
      100vh -
      60px
    );

  background: #f4f6f9;
}

.tp-theme-settings-list {
  background: #ffffff;
}

.tp-theme-settings-row {
  position: relative;

  width: 100%;
  min-height: 78px;

  padding:
    0
    26px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  border: 0;

  background: #ffffff;
  color: #2b2f35;

  text-align: left;

  cursor: pointer;
}

.tp-theme-settings-row.has-description {
  min-height: 116px;
}

.tp-theme-settings-row:not(:last-child)::after {
  position: absolute;

  right: 0;
  bottom: 0;
  left: 26px;

  height: 1px;

  background: #eceef1;

  content: "";
}

.tp-theme-settings-row:active {
  background: #f7f8fa;
}

.tp-theme-settings-copy {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tp-theme-settings-copy strong {
  color: #30343a;

  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
}

.tp-theme-settings-copy small {
  max-width: 390px;

  margin-top: 4px;

  color: #a3a8b0;

  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.tp-theme-settings-check {
  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #2f86f6;
}

.tp-theme-settings-check svg {
  width: 30px;
  height: 30px;

  fill: none;

  stroke: currentColor;
  stroke-width: 2;

  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ================================
   Wallet Dark Theme Foundation
   ================================ */

html[data-wallet-theme="dark"] {
  color-scheme: dark;

  --tp-dark-bg:
    #101216;

  --tp-dark-surface:
    #181b20;

  --tp-dark-surface-2:
    #20242a;

  --tp-dark-line:
    #2a2f36;

  --tp-dark-text:
    #f2f4f7;

  --tp-dark-muted:
    #939aa4;
}

html[data-wallet-theme="dark"],
html[data-wallet-theme="dark"] body,
html[data-wallet-theme="dark"] .wallet-app,
html[data-wallet-theme="dark"] #mainView,
html[data-wallet-theme="dark"] .wallet-main,
html[data-wallet-theme="dark"] .wallet-page,
html[data-wallet-theme="dark"] .tp-flow-page:not(.tp-invite-poster),
html[data-wallet-theme="dark"]
.wallet-sheet.is-flow
.wallet-sheet-panel {
  background:
    var(--tp-dark-bg)
    !important;

  color:
    var(--tp-dark-text)
    !important;
}

html[data-wallet-theme="dark"]
.wallet-header {
  background: var(--tp-dark-bg) !important;
}

html[data-wallet-theme="dark"]
.bottom-nav,

html[data-wallet-theme="dark"]
.tp-flow-header,

html[data-wallet-theme="dark"]
.tp-password-footer,

html[data-wallet-theme="dark"]
.tp-manage-tp-page,

html[data-wallet-theme="dark"]
.tp-manage-tp-page
.tp-flow-header,

html[data-wallet-theme="dark"]
.tp-manage-network-head,

html[data-wallet-theme="dark"]
.tp-manage-bottom-bar {
  background:
    var(--tp-dark-surface)
    !important;

  color:
    var(--tp-dark-text)
    !important;
}


html[data-wallet-theme="dark"]
.tp-flow-header.centered
> strong,

html[data-wallet-theme="dark"]
.tp-flow-back,

html[data-wallet-theme="dark"]
.tp-system-settings-main
strong,

html[data-wallet-theme="dark"]
.tp-theme-settings-copy
strong {
  color:
    var(--tp-dark-text)
    !important;
}


html[data-wallet-theme="dark"]
.tp-system-settings-page,

html[data-wallet-theme="dark"]
.tp-system-settings-page
.tp-flow-header,

html[data-wallet-theme="dark"]
.tp-system-settings-body,

html[data-wallet-theme="dark"]
.tp-theme-settings-page,

html[data-wallet-theme="dark"]
.tp-theme-settings-page
.tp-flow-header,

html[data-wallet-theme="dark"]
.tp-theme-settings-body {
  background:
    var(--tp-dark-bg)
    !important;
}


html[data-wallet-theme="dark"]
.tp-system-settings-group,

html[data-wallet-theme="dark"]
.tp-system-settings-row,

html[data-wallet-theme="dark"]
.tp-theme-settings-list,

html[data-wallet-theme="dark"]
.tp-theme-settings-row {
  background:
    var(--tp-dark-surface)
    !important;

  color:
    var(--tp-dark-text)
    !important;
}


html[data-wallet-theme="dark"]
.tp-system-settings-row:active,

html[data-wallet-theme="dark"]
.tp-theme-settings-row:active {
  background:
    var(--tp-dark-surface-2)
    !important;
}


html[data-wallet-theme="dark"]
.tp-system-settings-row:not(:last-child)::after,

html[data-wallet-theme="dark"]
.tp-theme-settings-row:not(:last-child)::after {
  background:
    var(--tp-dark-line)
    !important;
}


html[data-wallet-theme="dark"]
.tp-system-settings-main
small,

html[data-wallet-theme="dark"]
.tp-system-settings-side,

html[data-wallet-theme="dark"]
.tp-system-settings-side
em,

html[data-wallet-theme="dark"]
.tp-theme-settings-copy
small {
  color:
    var(--tp-dark-muted)
    !important;
}

/* Mine */

html[data-wallet-theme="dark"] .tp-mine-page,
html[data-wallet-theme="dark"] .tp-mine-header,
html[data-wallet-theme="dark"] .tp-mine-groups {
  background: var(--tp-dark-bg) !important;
}

html[data-wallet-theme="dark"] .tp-mine-header > strong,
html[data-wallet-theme="dark"] .tp-mine-header-action,
html[data-wallet-theme="dark"] .tp-mine-group strong,
html[data-wallet-theme="dark"] .tp-mine-menu-icon {
  color: var(--tp-dark-text) !important;
}

html[data-wallet-theme="dark"] .tp-mine-group,
html[data-wallet-theme="dark"] .tp-mine-group > button {
  background: var(--tp-dark-surface) !important;
}

html[data-wallet-theme="dark"] .tp-mine-group > button {
  color: var(--tp-dark-text) !important;
}

html[data-wallet-theme="dark"] .tp-mine-group > button:not(:last-child)::after {
  background: var(--tp-dark-line) !important;
}

html[data-wallet-theme="dark"] .tp-mine-group > button:active {
  background: var(--tp-dark-surface-2) !important;
}

html[data-wallet-theme="dark"] .tp-mine-group > button > b {
  color: var(--tp-dark-muted) !important;
}

/* Mine Theme Toggle */

html[data-wallet-theme="light"] .tp-mine-theme-sun,
html[data-wallet-theme="dark"] .tp-mine-theme-moon {
  display: none !important;
}

html[data-wallet-theme="light"] .tp-mine-theme-moon,
html[data-wallet-theme="dark"] .tp-mine-theme-sun {
  display: block !important;
}

/* Security */

html[data-wallet-theme="dark"]
.tp-security-page,

html[data-wallet-theme="dark"]
.tp-security-body {
  background:
    var(--tp-dark-bg)
    !important;
}


html[data-wallet-theme="dark"]
.tp-security-group,

html[data-wallet-theme="dark"]
.tp-security-row,

html[data-wallet-theme="dark"]
.tp-security-reset {
  background:
    var(--tp-dark-surface)
    !important;

  color:
    var(--tp-dark-text)
    !important;
}


/* Experience */

html[data-wallet-theme="dark"]
.tp-experience-page,

html[data-wallet-theme="dark"]
.tp-experience-body {
  background:
    var(--tp-dark-bg)
    !important;
}


html[data-wallet-theme="dark"]
.tp-experience-feature-card {
  background:
    var(--tp-dark-surface)
    !important;

  color:
    var(--tp-dark-text)
    !important;
}


/* History */

html[data-wallet-theme="dark"]
.tp-mine-history-page,

html[data-wallet-theme="dark"]
.tp-mine-history-body {
  background:
    var(--tp-dark-bg)
    !important;
}


html[data-wallet-theme="dark"]
.tp-mine-history-list,

html[data-wallet-theme="dark"]
.tp-mine-history-row {
  background:
    var(--tp-dark-surface)
    !important;
}


/* Asset overview */

html[data-wallet-theme="dark"]
.tp-mine-asset-overview,

html[data-wallet-theme="dark"]
.tp-mine-asset-wallet-list {
  background:
    var(--tp-dark-bg)
    !important;
}


html[data-wallet-theme="dark"]
.tp-mine-asset-search,

html[data-wallet-theme="dark"]
.tp-mine-asset-wallet-card,

html[data-wallet-theme="dark"]
.tp-mine-asset-row {
  background:
    var(--tp-dark-surface)
    !important;
}


/* About */

html[data-wallet-theme="dark"]
.tp-about-page,

html[data-wallet-theme="dark"]
.tp-about-detail-page,

html[data-wallet-theme="dark"]
.tp-about-body,

html[data-wallet-theme="dark"]
.tp-about-detail-body {
  background:
    var(--tp-dark-bg)
    !important;
}


html[data-wallet-theme="dark"]
.tp-about-menu,

html[data-wallet-theme="dark"]
.tp-about-channels,

html[data-wallet-theme="dark"]
.tp-about-version-card,

html[data-wallet-theme="dark"]
.tp-about-changelog,

html[data-wallet-theme="dark"]
.tp-about-privacy-card {
  background:
    var(--tp-dark-surface)
    !important;
}


/* Notification */

html[data-wallet-theme="dark"]
.tp-notification-settings-page,

html[data-wallet-theme="dark"]
.tp-notification-settings-page
.tp-flow-header,

html[data-wallet-theme="dark"]
.tp-notification-settings-body {
  background:
    var(--tp-dark-bg)
    !important;
}


html[data-wallet-theme="dark"]
.tp-notification-settings-group,

html[data-wallet-theme="dark"]
.tp-notification-settings-row {
  background:
    var(--tp-dark-surface)
    !important;

  color:
    var(--tp-dark-text)
    !important;
}


/* Manage Wallet */

html[data-wallet-theme="dark"]
.tp-manage-page,

html[data-wallet-theme="dark"]
.tp-manage-tp-page,

html[data-wallet-theme="dark"]
.tp-manage-wallet-pane,

html[data-wallet-theme="dark"]
.tp-manage-network-rail {
  background:
    var(--tp-dark-bg)
    !important;
}

.tp-system-settings-page {
  background: var(--tp-dark-bg, #f4f6f9);
}

.tp-system-settings-page .tp-flow-header {
  background: var(--tp-dark-bg, #f4f6f9);
}

.tp-system-settings-body {
  min-height: calc(100vh - 56px);
  padding: 18px 14px 32px;
  background: var(--tp-dark-bg, #f4f6f9);
  box-sizing: border-box;
}

.tp-system-settings-group {
  overflow: hidden;
  margin: 0 0 14px;
  border-radius: 14px;
  background: var(--tp-dark-surface, #ffffff);
}

.tp-currency-page {
  background: var(--tp-dark-bg, #f5f6f8);
}

.tp-currency-page
.tp-flow-header {
  background: var(--tp-dark-surface, #ffffff);
}

.tp-currency-body {
  min-height: calc(100vh - 56px);
  padding-bottom: 28px;
  background: var(--tp-dark-bg, #f5f6f8);
}

.tp-currency-section-title {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 14px 18px 10px;
  color: var(--tp-dark-muted, #5f636b);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.tp-currency-list {
  width: 100%;
  background: var(--tp-dark-surface, #ffffff);
}

.tp-currency-row {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  min-height: 64px;
  margin: 0 16px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--tp-dark-line, #edf0f3);
  background: transparent;
  color: var(--tp-dark-text, #303238);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tp-currency-row:last-child {
  border-bottom: 0;
}

.tp-currency-row span {
  display: block;
  min-width: 0;
  color: var(--tp-dark-text, #303238);
  font-size: 17px;
  font-weight: 400;
  line-height: 24px;
}

.tp-currency-row svg {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  margin-left: 14px;
  fill: none;
  stroke: #2f86f6;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-currency-row:active {
  opacity: 0.7;
}

.tp-currency-row.is-disabled {
  cursor: default;
}

.tp-currency-row.is-disabled:active {
  opacity: 1;
}

.tp-system-settings-row {
  position: relative;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 0 17px;
  border: 0;
  outline: none;
  background: var(--tp-dark-surface, #ffffff);
  color: var(--tp-dark-text, #22272f);
  font: inherit;
  text-align: left;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  box-sizing: border-box;
}

.tp-system-settings-row:not(:last-child)::after {
  position: absolute;
  right: 17px;
  bottom: 0;
  left: 17px;
  height: 1px;
  background: var(--tp-dark-line, #edf0f3);
  content: "";
  pointer-events: none;
}

.tp-system-settings-row:active {
  background: var(--tp-dark-surface-2, #f7f8fa);
}

.tp-system-settings-main {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.tp-system-settings-main strong {
  display: block;
  color: var(--tp-dark-text, #2a2f36);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.tp-system-settings-main small {
  display: block;
  margin-top: 4px;
  color: var(--tp-dark-muted, #a5abb3);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.tp-system-settings-side {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;

  color: var(--tp-dark-muted, #a4aab2);
}

.tp-system-settings-side em {
  color: var(--tp-dark-muted, #a4aab2);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
}

.tp-system-settings-side b {
  display: inline-flex;
  width: 10px;
  height: 24px;
  align-items: center;
  justify-content: center;

  color: var(--tp-dark-muted, #aeb4ba);
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}

.tp-system-settings-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
  border-radius: 999px;
  background: var(--tp-dark-line, #d1d5da);
  transition:
    background 0.18s ease;
}

.tp-system-settings-switch i {
  position: absolute;
  top: 2px;
  left: 2px;

  width: 22px;
  height: 22px;
  border-radius: 50%;

  background: #ffffff;
  box-shadow:
    0 1px 4px
    rgba(0, 0, 0, 0.14);

  transition:
    transform 0.18s ease;
}

.tp-system-settings-switch.is-active {
  background: #347ff1;
}

.tp-system-settings-switch.is-active i {
  transform: translateX(20px);
}

:root {
  --tp-market-rise:
    #20b89a;

  --tp-market-fall:
    #ef665e;
}

html.tp-market-red-up {
  --tp-market-rise:
    #ef665e;

  --tp-market-fall:
    #20b89a;
}

/*
 * 首页 / TRON真实涨跌颜色
 *
 * 行情页 tp-market-change 使用彩色背景，
 * 文字必须固定白色，因此不能在这里覆盖。
 */
.token-change.is-up,
.tp-tron-token-market em.is-up {
  color:
    var(--tp-market-rise) !important;
}

.token-change.is-down,
.tp-tron-token-market em.is-down {
  color:
    var(--tp-market-fall) !important;
}

/*
 * 首页行情真实开关
 */
html.tp-home-market-hidden
.token-market {
  display:
    none !important;
}

/*
 * TP 行情设置页
 */

 .tp-change-base-page {
  background: var(--tp-dark-bg, #f5f6fa);
}

.tp-change-base-page .tp-flow-header {
  background: var(--tp-dark-bg, #f5f6fa);
}

.tp-change-base-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 24px;
}

.tp-change-base-note {
  padding: 14px 16px 22px;
  color: var(--tp-dark-muted, #969ba6);
  font-size: 14px;
  line-height: 1.55;
}

.tp-change-base-note p {
  margin: 0;
}

.tp-change-base-note p + p {
  margin-top: 2px;
}

.tp-change-base-list {
  background: var(--tp-dark-surface, #ffffff);
}

.tp-change-base-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 0 18px;
  border: 0;
  background: var(--tp-dark-surface, #ffffff);
  color: var(--tp-dark-text, #292c31);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tp-change-base-row::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 18px;
  height: 1px;
  background: var(--tp-dark-line, #eceef2);
  transform: scaleY(.5);
  transform-origin: bottom;
}

.tp-change-base-row:last-child::after {
  display: none;
}

.tp-change-base-row span {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.tp-change-base-row svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-left: 14px;
  color: #2f8df5;
  opacity: 0;
}

.tp-change-base-row.is-active svg {
  opacity: 1;
}

.tp-change-base-row:active {
  background: var(--tp-dark-surface-2, #f7f8fa);
}

.tp-number-display-page {
  background: var(--tp-dark-bg, #f5f6fa);
}

.tp-number-display-page
.tp-flow-header {
  background: var(--tp-dark-bg, #f5f6fa);
}

.tp-number-display-body {
  flex:
    1;

  min-height:
    0;

  overflow-y:
    auto;

  padding:
    8px 16px 110px;
}

.tp-number-display-title {
  margin:
    10px 2px 10px;

  color: var(--tp-dark-text, #33363c);

  font-size:
    16px;

  font-weight:
    500;
}

.tp-number-display-title.is-second {
  margin-top:
    28px;
}

.tp-number-display-card {
  overflow:
    hidden;

  border-radius:
    14px;

  background: var(--tp-dark-surface, #ffffff);
}

.tp-number-display-row {
  position:
    relative;

  box-sizing:
    border-box;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  width:
    100%;

  min-height:
    72px;

  padding:
    12px 18px;

  border:
    0;

  background: var(--tp-dark-surface, #ffffff);

  color: var(--tp-dark-text, #292c31);

  text-align:
    left;

  cursor:
    pointer;
}

.tp-number-display-row::after {
  content:
    "";

  position:
    absolute;

  right:
    0;

  bottom:
    0;

  left:
    18px;

  height:
    1px;

  background:
    #eceef2;

  transform:
    scaleY(.5);

  transform-origin:
    bottom;
}

.tp-number-display-row:last-child::after {
  display:
    none;
}

.tp-number-display-row > span {
  display:
    flex;

  flex:
    1;

  min-width:
    0;

  flex-direction:
    column;

  gap:
    4px;
}

.tp-number-display-row strong {
  color:
    #292c31;

  font-size:
    16px;

  font-weight:
    400;
}

.tp-number-display-row small {
  color:
    #979ca6;

  font-size:
    13px;

  line-height:
    1.4;
}

.tp-number-display-row:active {
  background:
    #f8f9fa;
}

.tp-number-display-check {
  flex:
    0 0 auto;

  width:
    24px;

  height:
    24px;

  margin-left:
    16px;

  fill:
    none;

  stroke:
    #338af3;

  stroke-width:
    2.1;

  stroke-linecap:
    round;

  stroke-linejoin:
    round;
}

.tp-number-display-footer {
  position:
    absolute;

  right:
    0;

  bottom:
    0;

  left:
    0;

  box-sizing:
    border-box;

  padding:
    12px 16px
    calc(
      12px +
      env(
        safe-area-inset-bottom
      )
    );

  background:
    rgba(
      245,
      246,
      250,
      .96
    );

  backdrop-filter:
    blur(10px);
}

.tp-number-display-save {
  width:
    100%;

  height:
    48px;

  border:
    0;

  border-radius:
    24px;

  background:
    #338af3;

  color:
    #ffffff;

  font-size:
    16px;

  font-weight:
    500;

  cursor:
    pointer;
}

.tp-number-display-save:active {
  opacity:
    .88;
}

/*
 * 深色主题
 */
html[data-wallet-theme="dark"]
.tp-number-display-page,
html[data-wallet-theme="dark"]
.tp-number-display-page
.tp-flow-header {
  background:
    #111317;
}

html[data-wallet-theme="dark"]
.tp-number-display-title {
  color:
    #f1f3f5;
}

html[data-wallet-theme="dark"]
.tp-number-display-card,
html[data-wallet-theme="dark"]
.tp-number-display-row {
  background:
    #1b1e23;
}

html[data-wallet-theme="dark"]
.tp-number-display-row strong {
  color:
    #f1f3f5;
}

html[data-wallet-theme="dark"]
.tp-number-display-row::after {
  background:
    #2b2f35;
}

html[data-wallet-theme="dark"]
.tp-number-display-row:active {
  background:
    #23272d;
}

html[data-wallet-theme="dark"]
.tp-number-display-footer {
  background:
    rgba(
      17,
      19,
      23,
      .96
    );
}

/*
 * 管理钱包在币种数量模式下可能同时显示
 * 原生币 + USDT，避免超出卡片。
 */
.tp-wallet-card-balance-row strong {
  max-width:
    100%;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.tp-market-settings-page {
  position:
    relative;

  min-height:
    100%;

  background:
     var(--tp-dark-bg, #f5f6f8);
}

.tp-market-settings-reset {
  position:
    absolute;

  z-index:
    10;

  top:
    15px;

  right:
    18px;

  padding:
    0;

  border:
    0;

  background:
    transparent;

  color:
    #2f86f6;

  font-size:
    16px;

  line-height:
    24px;

  cursor:
    pointer;
}

.tp-market-settings-body {
  box-sizing:
    border-box;

  width:
    100%;

  padding:
    4px 16px 30px;
}

.tp-market-settings-section-title {
  margin:
    8px 0 10px;

  color:
    var(--tp-dark-text, #303238);

  font-size:
    17px;

  font-weight:
    500;
}

.tp-market-settings-section-title.is-other {
  margin-top:
    26px;
}

.tp-market-settings-card {
  overflow:
    hidden;

  border-radius:
    15px;

  background:
    var(--tp-dark-surface, #ffffff);
}

.tp-market-settings-row {
  box-sizing:
    border-box;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  min-height:
    70px;

  padding:
    0 18px;
}

.tp-market-settings-row strong {
  color:
    var(--tp-dark-text, #303238);

  font-size:
    16px;

  font-weight:
    400;
}

.tp-market-kline-card
.tp-market-settings-row {
  min-height:
    72px;
}

.tp-market-settings-segment {
  display:
    flex;

  align-items:
    center;

  overflow:
    hidden;

  width:
    92px;

  height:
    38px;

  padding:
    3px;

  border-radius:
    20px;

  background:
    var(--tp-dark-surface-2, #f4f5f7);
}

.tp-market-settings-segment button {
  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  box-sizing:
    border-box;

  width:
    50%;

  height:
    32px;

  padding:
    0;

  border:
    0;

  border-radius:
    16px;

  background:
    transparent;

  cursor:
    pointer;
}

.tp-market-settings-segment
button.is-active {
  background:
    var(--tp-dark-surface, #ffffff);

  box-shadow:
    0 1px 5px
    rgba(0, 0, 0, 0.06);
}

.tp-market-settings-segment svg {
  width:
    23px;

  height:
    18px;

  fill:
    none;

  stroke:
    var(--tp-dark-text, #34373d);

  stroke-width:
    2;

  stroke-linecap:
    round;

  stroke-linejoin:
    round;
}

.tp-market-candle-preview {
  display:
    flex;

  gap:
    5px;

  align-items:
    center;
}

.tp-market-candle-preview i,
.tp-market-single-candle {
  position:
    relative;

  display:
    block;

  width:
    7px;

  height:
    16px;

  border-radius:
    2px;

  background:
    var(--tp-dark-text, #35383d);
}

.tp-market-candle-preview i::before,
.tp-market-single-candle::before {
  content:
    '';

  position:
    absolute;

  top:
    -4px;

  bottom:
    -4px;

  left:
    3px;

  width:
    1px;

  background:
    currentColor;
}

.tp-market-single-candle.is-hollow {
  box-sizing:
    border-box;

  border:
    2px solid var(--tp-dark-text, #35383d);

  background:
    var(--tp-dark-surface, #ffffff);
}

.tp-market-single-candle.is-red {
  border-color:
    var(--tp-dark-text, #35383d);

  color:
    var(--tp-dark-text, #35383d);
}

.tp-market-kline-side {
  display:
    flex;

  align-items:
    center;

  gap:
    18px;
}

.tp-market-color-dot {
  display:
    inline-block;

  flex:
    0 0 auto;

  width:
    19px;

  height:
    19px;

  margin:
    0 4px;

  border-radius:
    4px;

  vertical-align:
    middle;
}

.tp-market-color-dot.is-green {
  background:
    #20b89a;
}

.tp-market-color-dot.is-red {
  background:
    #ef665e;
}

.tp-market-settings-description {
  margin:
    24px 2px 12px;

  color:
    var(--tp-dark-text, #45484f);

  font-size:
    15px;

  line-height:
    1.45;
}

.tp-market-color-card {
  padding:
    0 14px 15px;
}

.tp-market-color-head {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  min-height:
    62px;
}

.tp-market-color-head div {
  display:
    flex;

  align-items:
    center;
}

.tp-market-color-head strong {
  font-size:
    15px;

  font-weight:
    400;
}

.tp-market-settings-toggle {
  position:
    relative;

  flex:
    0 0 auto;

  box-sizing:
    border-box;

  width:
    48px;

  height:
    28px;

  padding:
    0;

  border:
    0;

  border-radius:
    15px;

  background:
    var(--tp-dark-line, #cfd3d8);

  cursor:
    pointer;
}

.tp-market-settings-toggle i {
  position:
    absolute;

  top:
    3px;

  left:
    3px;

  width:
    22px;

  height:
    22px;

  border-radius:
    50%;

  background:
    #ffffff;

  box-shadow:
    0 1px 4px
    rgba(0, 0, 0, 0.15);

  transition:
    transform .18s ease;
}

.tp-market-settings-toggle.is-active {
  background:
    #358af3;
}

.tp-market-settings-toggle.is-active i {
  transform:
    translateX(20px);
}

.tp-market-color-options {
  overflow:
    hidden;

  padding:
    0 12px;

  border-radius:
    12px;

  background:
    var(--tp-dark-surface-2, #f5f6f8);
}

.tp-market-color-option {
  box-sizing:
    border-box;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  width:
    100%;

  min-height:
    58px;

  padding:
    0 10px;

  border:
    0;

  border-bottom:
    1px solid var(--tp-dark-line, #e8ebef);

  background:
    transparent;

  color:
    var(--tp-dark-text, #303238);

  text-align:
    left;

  cursor:
    pointer;
}

.tp-market-color-option:last-child {
  border-bottom:
    0;
}

.tp-market-color-option span {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  font-size:
    14px;
}

.tp-market-color-option em {
  margin-left:
    5px;

  font-style:
    normal;
}

.tp-market-color-option
.is-green-text {
  color:
    #20b89a;
}

.tp-market-color-option
.is-red-text {
  color:
    #ef665e;
}

.tp-market-settings-check {
  flex:
    0 0 auto;

  width:
    24px;

  height:
    24px;

  fill:
    none;

  stroke:
    #338af3;

  stroke-width:
    2.1;

  stroke-linecap:
    round;

  stroke-linejoin:
    round;
}

.tp-market-trade-head {
  margin-top:
    10px;

  border-top:
    1px solid #edf0f3;
}

/* TP-style notification settings */

.tp-notification-settings-page {
  min-height: 100vh;
  background: #f4f6f9;
}

.tp-notification-settings-page
.tp-flow-header {
  background: #f4f6f9;
}

.tp-notification-settings-body {
  min-height:
    calc(
      100vh -
      56px
    );

  padding:
    24px
    16px
    36px;

  box-sizing:
    border-box;

  background:
    #f4f6f9;
}

.tp-notification-settings-group {
  overflow:
    hidden;

  border-radius:
    15px;

  background:
    #ffffff;
}

.tp-notification-settings-row {
  width: 100%;
  min-height: 74px;

  padding:
    0
    18px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    15px;

  border: 0;

  background:
    #ffffff;

  color:
    #30353c;

  font:
    inherit;

  text-align:
    left;
}

.tp-notification-settings-row
> strong {
  min-width: 0;

  flex:
    1;

  font-size:
    17px;

  line-height:
    1.35;

  font-weight:
    400;
}

.tp-notification-settings-row:active {
  background:
    #f7f8fa;
}

.tp-notification-settings-row:disabled {
  opacity:
    .72;
}

.tp-notification-settings-description {
  margin:
    10px
    0
    26px;

  padding:
    0
    1px;

  color:
    var(--tp-dark-muted, #9ca2aa);

  font-size:
    14px;

  line-height:
    1.5;
}

.tp-notification-switch {
  position:
    relative;

  width:
    48px;

  height:
    28px;

  flex:
    0
    0
    48px;

  border-radius:
    999px;

  background:
    var(--tp-dark-line, #cdd2d8);

  transition:
    background
    .18s
    ease;
}

.tp-notification-switch
> i {
  position:
    absolute;

  top:
    2px;

  left:
    2px;

  width:
    24px;

  height:
    24px;

  border-radius:
    50%;

  background:
    #ffffff;

  box-shadow:
    0
    1px
    5px
    rgba(
      0,
      0,
      0,
      .17
    );

  transition:
    transform
    .18s
    ease;
}

.tp-notification-switch.is-active {
  background:
    #3487f6;
}

.tp-notification-switch.is-active
> i {
  transform:
    translateX(
      20px
    );
}

.tp-notification-switch.is-disabled {
  opacity:
    .72;
}

.tp-notification-settings-row.is-unavailable {
  cursor:
    default;
}

@media (
  max-width:
  480px
) {
  .tp-notification-settings-row {
    min-height:
      76px;
  }

  .tp-notification-settings-row
  > strong {
    font-size:
      17px;
  }

  .tp-notification-settings-description {
    font-size:
      14px;
  }
}

@media (max-width: 480px) {
  .tp-system-settings-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .tp-system-settings-group {
    border-radius: 15px;
  }

  .tp-system-settings-row {
    min-height: 64px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .tp-system-settings-row:not(:last-child)::after {
    right: 18px;
    left: 18px;
  }

  .tp-system-settings-main strong {
    font-size: 16px;
  }

  .tp-system-settings-side em {
    font-size: 14px;
  }
}

/* Asset sub pages + tools */

.asset-panel.is-hidden {
  display: none;
}

.approval-home-empty {
  min-height: 300px;
  padding: 52px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.approval-home-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef6ff;
  color: #2980fe;
  font-size: 24px;
  font-weight: 600;
}

.approval-home-empty strong {
  margin-top: 16px;
  color: #111820;
  font-size: 16px;
  font-weight: 600;
}

.approval-home-empty p {
  max-width: 270px;
  margin: 8px 0 20px;
  color: #9da2aa;
  font-size: 12px;
  line-height: 1.65;
}

.approval-home-empty button {
  height: 36px;
  padding: 0 20px;
  border: 0;
  border-radius: 18px;
  background: #edf5ff;
  color: #2980fe;
  font-size: 13px;
}

.tp-wallet-permission-page {
  min-height: 100%;
  background: #f6f7f9;
}

.tp-wallet-permission-refresh {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #31363d;
  font-size: 21px;
}

.tp-wallet-permission-body {
  padding: 12px 14px 30px;
}

.tp-wallet-permission-summary {
  min-height: 72px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-radius: 14px;
  background: #fff;
}

.tp-wallet-permission-summary > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tp-wallet-permission-summary > div:last-child {
  align-items: flex-end;
}

.tp-wallet-permission-summary span {
  color: #969ca5;
  font-size: 12px;
}

.tp-wallet-permission-summary strong {
  color: #111820;
  font-size: 16px;
}

.tp-wallet-permission-list {
  margin-top: 12px;
}

.tp-wallet-permission-loading {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ca2ab;
  font-size: 12px;
}

.tp-wallet-permission-loading span {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border: 3px solid #e2e8ef;
  border-top-color: #2980fe;
  border-radius: 50%;
  animation: tp-wallet-permission-spin 0.8s linear infinite;
}

@keyframes tp-wallet-permission-spin {
  to {
    transform: rotate(360deg);
  }
}

.tp-wallet-permission-card {
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
}

.tp-wallet-permission-token {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-wallet-permission-token-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #26a17b;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.tp-wallet-permission-token > div:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tp-wallet-permission-token strong {
  color: #111820;
  font-size: 15px;
}

.tp-wallet-permission-token span {
  color: #9ba1aa;
  font-size: 11px;
}

.tp-wallet-permission-token em {
  margin-left: auto;
  color: #222831;
  font-size: 13px;
  font-style: normal;
}

.tp-wallet-permission-info {
  margin-top: 14px;
  padding: 12px;
  display: grid;
  gap: 5px;
  border-radius: 10px;
  background: #f7f8fa;
}

.tp-wallet-permission-info span {
  color: #989ea7;
  font-size: 11px;
}

.tp-wallet-permission-info strong {
  color: #252a31;
  font-size: 13px;
}

.tp-wallet-permission-info code {
  overflow: hidden;
  color: #777f89;
  font-family: inherit;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-wallet-permission-revoke {
  width: 100%;
  height: 42px;
  margin-top: 14px;
  border: 1px solid #ff5252;
  border-radius: 9px;
  background: #fff;
  color: #ff4141;
  font-size: 13px;
}

.tp-wallet-permission-confirm {
  padding: 22px 18px 18px;
}

.tp-wallet-permission-confirm-head {
  text-align: center;
}

.tp-wallet-permission-confirm-head strong {
  color: #111820;
  font-size: 17px;
}

.tp-wallet-permission-confirm-body {
  padding: 24px 6px 20px;
  text-align: center;
}

.tp-wallet-permission-warning-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0f0;
  color: #ff4949;
  font-size: 23px;
  font-weight: 700;
}

.tp-wallet-permission-confirm-body h3 {
  margin: 14px 0 8px;
  color: #171b21;
  font-size: 16px;
}

.tp-wallet-permission-confirm-body p {
  margin: 0;
  color: #9298a1;
  font-size: 12px;
  line-height: 1.6;
}

.tp-wallet-permission-spender {
  margin-top: 13px;
  padding: 10px;
  border-radius: 8px;
  background: #f6f7f9;
  color: #646b75;
  font-size: 12px;
}

.tp-wallet-permission-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tp-wallet-permission-confirm-actions button {
  height: 44px;
  border: 0;
  border-radius: 9px;
  background: #f0f2f5;
  color: #30363d;
  font-size: 14px;
}

.tp-wallet-permission-confirm-actions button.danger {
  background: #2980fe;
  color: #fff;
}


/* Send */

.tp-send-body {
  padding: 14px 20px 30px;
}

.tp-send-asset-card {
  min-height: 72px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 13px;
  background: var(--tp-dark-surface-2, #f7f8fa);
}

.tp-send-token-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #eef5ff;
  color: #2980FE;
  font-weight: 700;
}

.tp-send-token-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tp-send-asset-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tp-send-asset-copy strong {
  font-size: 14px;
}

.tp-send-asset-copy small {
  color: var(--tp-dark-muted, #9ca1a9);
  font-size: 10px;
}

.tp-send-field {
  display: block;
  margin-top: 24px;
}

.tp-send-field > span {
  display: block;
  margin-bottom: 9px;
  color: var(--tp-dark-muted, #686e76);
  font-size: 12px;
}

.tp-send-input {
  height: 54px;
  padding: 0 8px 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 11px;
  background: var(--tp-dark-surface-2, #f7f8fa);
}

.tp-send-input input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--tp-dark-text, #30343a);
  font-size: 15px;
}

.tp-send-input button {
  min-width: 42px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #2980FE;
}

.tp-send-info {
  margin-top: 24px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--tp-dark-surface-2, #f7f8fa);
}

.tp-send-info > div {
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tp-dark-line, #eceef1);
}

.tp-send-info > div:last-child {
  border-bottom: 0;
}

.tp-send-info span,
.tp-send-info strong {
  font-size: 10px;
}

.tp-send-info span {
  color: var(--tp-dark-muted, #92979f);
}

.tp-send-info strong {
  color: var(--tp-dark-text, #50555d);
  font-weight: 500;
}

.tp-send-notice {
  margin-top: 17px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff8eb;
  color: #9d7e47;
  font-size: 10px;
  line-height: 1.6;
}


/* Resource */

.tp-resource-body {
  padding: 16px 18px 32px;
}

.tp-resource-network {
  min-height: 58px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  background: #f7f8fa;
}

.tp-resource-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tp-resource-card {
  min-height: 115px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  border-radius: 13px;
  background: #f7f8fa;
}

.tp-resource-card span,
.tp-resource-network span {
  color: #8f959e;
  font-size: 10px;
}

.tp-resource-card strong {
  margin-top: 12px;
  font-size: 22px;
}

.tp-resource-card small {
  margin-top: auto;
  color: #a8adb4;
  font-size: 9px;
}

.tp-resource-actions {
  margin-top: 13px;
  overflow: hidden;
  border-radius: 12px;
}

.tp-resource-actions button {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom:
    1px solid #f0f1f3;
  background: #f7f8fa;
}

.tp-resource-actions button:last-child {
  border-bottom: 0;
}


/* Add token */

.tp-add-token-body {
  padding: 11px 16px 30px;
}

.tp-tool-search {
  height: 44px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 22px;
  background: #f5f6f8;
}

.tp-tool-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #777d85;
  stroke-width: 1.8;
}

.tp-tool-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
}

.tp-add-token-list {
  margin-top: 12px;
}

.tp-add-token-row {
  min-height: 64px;
  padding: 9px 4px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom:
    1px solid #f1f2f4;
}

.tp-add-token-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #eef5ff;
}

.tp-add-token-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tp-add-token-row > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tp-add-token-row em {
  margin-left: auto;
  color: #8d939b;
  font-size: 9px;
  font-style: normal;
}


/* More tools */

.tp-more-tools-head {
  min-height: 45px;
  display: grid;
  grid-template-columns:
    42px minmax(0, 1fr) 42px;
  align-items: center;
}

.tp-more-tools-head::before {
  content: "";
}

.tp-more-tools-head strong {
  text-align: center;
  font-size: 16px;
}

.tp-more-tools-head button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  font-size: 28px;
}

.tp-tools-quick {
  padding: 12px 10px 19px;
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  border-bottom:
    1px solid #f0f1f3;
}

.tp-tools-quick button,
.tp-tools-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0;
  background: transparent;
}

.tp-tools-quick button {
  min-height: 70px;
  justify-content: center;
  gap: 7px;
}

.tp-tools-quick span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef5ff;
  color: #2980FE;
}

.tp-tools-section {
  padding: 17px 4px 7px;
}

.tp-tools-section > strong {
  display: block;
  padding: 0 8px 13px;
  font-size: 13px;
}

.tp-tools-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 20px 4px;
}

.tp-tools-grid button {
  min-width: 0;
  gap: 7px;
}

.tp-tool-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f2f6fb;
  color: #58718e;
}

.tp-tools-grid button > span:last-child {
  width: 100%;
  overflow: hidden;
  font-size: 9px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Generic tool pages */

.tp-generic-tool-body {
  padding: 16px 18px 30px;
}

.tp-generic-tool-intro {
  padding: 14px 15px;
  border-radius: 11px;
  background: #f7f8fa;
  color: #8e949c;
  font-size: 10px;
  line-height: 1.6;
}

.tp-generic-tool-list {
  margin-top: 13px;
  overflow: hidden;
  border-radius: 12px;
  background: #f7f8fa;
}

.tp-generic-tool-row {
  min-height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom:
    1px solid #eceef1;
}

.tp-generic-tool-row:last-child {
  border-bottom: 0;
}

.tp-page-empty {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #a0a5ad;
  text-align: center;
}


/* Sheet */
.wallet-sheet {
  position: fixed;
  z-index: 100;
  inset: 0;
}

.wallet-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.wallet-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82vh;
  padding:
    8px
    18px
    max(22px, env(safe-area-inset-bottom));
  overflow: auto;
  border-radius: 24px 24px 0 0;
  background: #fff;
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 3px auto 19px;
  border-radius: 10px;
  background: #dadde2;
}

.sheet-title {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 600;
}

.sheet-sub {
  margin: -8px 0 18px;
  color: #9297a0;
  font-size: 13px;
  line-height: 1.6;
}

.sheet-actions {
  display: grid;
  gap: 11px;
}

.sheet-list-btn {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 13px;
  background: #f6f7f9;
}

.sheet-primary {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border-radius: 14px;
  background: #2980FE;
  color: #fff;
  font-weight: 650;
}

.sheet-input {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #e4e6e9;
  border-radius: 11px;
  outline: none;
  background: #ffffff;
  color: #202329;
  font-size: 14px;
}

.sheet-input::placeholder {
  color: #b3b7be;
}

.sheet-input:focus {
  border-color: #2980FE;
}
.receive-page {
  min-height: 100vh;
  background: #ffffff;
}

.receive-page-header {
  height: calc(54px + env(safe-area-inset-top));
  padding:
    env(safe-area-inset-top)
    15px
    0;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  border-bottom: 1px solid #f1f2f4;
  background: #ffffff;
}

.receive-page-header > strong {
  color: #010109;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.receive-page-back {
  width: 40px;
  height: 40px;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #010109;
  cursor: pointer;
}

.receive-page-back svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.receive-page-header-space {
  width: 40px;
  height: 40px;
}

.receive-page-main {
  padding: 29px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.receive-token-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.receive-token-title .token-icon {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.receive-token-title > strong {
  color: #010109;
  font-size: 16px;
  font-weight: 600;
}

.receive-qr-card {
  width: 224px;
  height: 224px;
  margin-top: 27px;
  padding: 12px;
  border: 1px solid #eceef1;
  border-radius: 8px;
  background: #ffffff;
}

.receive-qr {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.receive-qr canvas,
.receive-qr img {
  width: 196px !important;
  height: 196px !important;
  display: block;
}

.receive-qr-error {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fa;
  color: #a0a5ad;
  font-size: 12px;
}

.receive-address-title {
  margin-top: 24px;
  color: #999ea6;
  font-size: 12px;
}

.receive-full-address {
  max-width: 310px;
  margin-top: 9px;
  color: #010109;
  font-size: 13px;
  line-height: 1.65;
  word-break: break-all;
}

.receive-copy-btn {
  min-width: 128px;
  height: 42px;
  margin-top: 20px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #2980FE;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.receive-warning {
  margin: 6px 20px 20px;
  padding: 14px 15px;
  border-radius: 8px;
  background: #f7f8fa;
}

.receive-warning strong {
  display: block;
  color: #555b64;
  font-size: 12px;
  font-weight: 600;
}

.receive-warning p {
  margin: 6px 0 0;
  color: #9398a1;
  font-size: 11px;
  line-height: 1.6;
}

/* =========================================================
   TOKEN DETAIL + RECEIVE TP MOBILE V2
   ETH / BNB / TRON
   ========================================================= */


/* ---------- TOKEN DETAIL ---------- */

.token-detail-page {
  position: relative;
  box-sizing: border-box;
  min-height: 100dvh;
  padding-bottom: calc(
    78px + env(safe-area-inset-bottom)
  );
  overflow-x: hidden;
  background: var(--tp-dark-bg, #f4f5f7);
}

.token-detail-header {
  height: calc(
    58px + env(safe-area-inset-top)
  );
  padding:
    env(safe-area-inset-top) 16px 0;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  border: 0;
  background: var(--tp-dark-bg, #f4f5f7);
}

.token-detail-header > strong {
  color: var(--tp-dark-text, #25282e);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  text-align: center;
}

.token-detail-back,
.token-detail-more {
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--tp-dark-text, #34383f);
}

.token-detail-more {
  padding: 9px;
}

.token-detail-summary {
  min-height: 114px;
  padding: 19px 18px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: var(--tp-dark-bg, #f4f5f7);
  text-align: left;
}

.token-detail-asset {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 10px;
}

.token-detail-summary
.token-detail-asset
.token-icon,
.token-detail-summary
.token-detail-asset
.token-icon img {
  width: 42px;
  height: 42px;
}

.token-detail-summary
.token-detail-asset
.token-icon {
  margin: 0;
  flex: 0 0 42px;
}

.token-detail-asset > strong {
  color: #2e3137;

  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.token-detail-balance-box {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.token-detail-balance-box > strong {
  color: var(--tp-dark-text, #30343a);

  font-size: 21px;
  line-height: 1.25;
  font-weight: 400;

  white-space: nowrap;
}

.token-detail-balance-box > span {
  margin-top: 3px;

  color: var(--tp-dark-muted, #a0a5ad);

  font-size: 12px;
  line-height: 1.2;
}

.token-detail-market {
  min-height: 70px;
  margin: 0 14px;
  padding: 0 16px;
  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr) 64px 16px;
  align-items: center;
  column-gap: 9px;
  border-radius: 13px;
  background: var(--tp-dark-surface, #ffffff);
}

.token-detail-market > span:first-child {
  color: var(--tp-dark-text, #4d5259);
  font-size: 15px;
}

.token-detail-market > div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.token-detail-market > div strong {
  color: var(--tp-dark-text, #474b51);
  font-size: 16px;
  font-weight: 400;
}

.token-detail-market > div small {
  margin-top: 3px;
  color: var(--tp-dark-muted, #9fa4ac);
  font-size: 11px;
}

.token-detail-market > b {
  color: var(--tp-dark-muted, #adb2b9);
  font-size: 25px;
  line-height: 1;
  font-weight: 300;
}

.token-detail-records {
  min-height: 360px;

  margin-top: 14px;

  border: 0;

  background: transparent;
}

.token-detail-history-tabs {
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 25px;
  background: var(--tp-dark-bg, #f4f5f7);
}

.token-detail-history-tabs button {
  position: relative;

  height: 48px;

  padding: 0;

  border: 0;

  background: transparent;

  color: #999ea5;

  font-size: 14px;
}

.token-detail-history-tabs button.is-active {
  color: var(--tp-dark-text, #33363c);
  font-weight: 600;
}

.token-detail-history-tabs
button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 28px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: var(--tp-dark-text, #34383e);
}

.token-detail-filter-icon {
  width: 26px;
  height: 26px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #50545b;
}

.token-detail-filter-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.token-detail-records-body {
  overflow: hidden;
  border-radius: 13px 13px 0 0;
  background: var(--tp-dark-surface, #ffffff);
}

.token-detail-empty {
  min-height: 210px;
  padding: 48px 20px;
  background: var(--tp-dark-surface, #ffffff);
}

.token-detail-history-list {
  background: var(--tp-dark-surface, #ffffff);
}

.token-detail-history-row {
  min-height: 66px;
  padding: 8px 16px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--tp-dark-line, #f0f1f2);
  cursor: pointer;
}

.token-detail-history-row:last-child {
  border-bottom: 0;
}

.token-detail-history-direction {
  width: 36px;
  height: 36px;

  flex:
    0
    0
    36px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #4cc9a5;

  color: #ffffff;

  font-size: 18px;
}
.token-detail-history-row.is-in
.token-detail-history-direction {
  background: #3287ef;
}

.token-detail-history-main {
  min-width: 0;
}

.token-detail-history-main strong,
.token-detail-history-main small {
  display: block;
}

.token-detail-history-main strong {
  overflow: hidden;
  color: var(--tp-dark-text, #3a3e44);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-detail-history-main small {
  margin-top: 5px;
  color: #a1a6ad;
  font-size: 12px;
}

.token-detail-history-value {
  min-width: 105px;
  text-align: right;
}

.token-detail-history-value strong,
.token-detail-history-value small {
  display: block;
}

.token-detail-history-value strong {
  color: #50bca0;
  font-size: 15px;
  font-weight: 400;
}

.token-detail-history-row.is-in
.token-detail-history-value strong {
  color: #3287ef;
}

.token-detail-history-value small {
  margin-top: 5px;
  color: #a5aab1;
  font-size: 11px;
}

.token-detail-bottom-actions {
  box-sizing: border-box;

  position: fixed;
  z-index: 60;

  left: 50%;
  right: auto;
  bottom: 0;

  width: 100%;
  max-width: 430px;

  height:
    calc(
      78px +
      env(safe-area-inset-bottom)
    );

  min-height: 78px;

  padding:
    10px
    16px
    max(10px, env(safe-area-inset-bottom));

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr)
    74px;

  gap: 10px;

  transform: translateX(-50%);

  border-top:
    1px solid var(--tp-dark-line, #eceef0);

  background: var(--tp-dark-surface, #ffffff);
}
@media (min-width: 768px) {

  .token-detail-bottom-actions {
    bottom: 28px;
  }

}

.token-detail-bottom-actions button {
  min-width: 0;

  height: 54px;

  padding:
    0
    10px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  border-radius: 11px;

  box-shadow: none;

  font-size: 15px;
  font-weight: 500;
}

.token-detail-bottom-swap strong {
  color: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
}
.token-detail-bottom-actions button > span {
  display: inline-block;

  color: inherit;

  font-size: 20px;
  line-height: 1;

  background: transparent;
}

.token-detail-bottom-swap > span {
  display: block;

  font-size: 20px;
  line-height: 18px;
}
.token-detail-bottom-actions
button span {
  font-size: 20px;
}

.token-detail-bottom-actions
button strong {
  font-weight: 500;
}

.token-detail-bottom-send {
  border: 0;
  background: #4cc8a4;
  color: #ffffff;
}

.token-detail-bottom-receive {
  border: 0;
  background: #3187f1;
  color: #ffffff;
}


/* ---------- RECEIVE ---------- */

.receive-page {
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      #43c8ee 0%,
      #2d84f7 56%,
      #2d7df4 100%
    );
}

.receive-page-header {
  height:
    calc(
      62px +
      env(safe-area-inset-top)
    );
  padding:
    env(safe-area-inset-top)
    16px
    0;
  display: grid;
  grid-template-columns:
    42px
    1fr
    42px;
  align-items: center;
  border: 0;
  background: transparent;
}

.receive-page-header > strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
}

.receive-page-back {
  color: #ffffff;
}

.receive-page-main {
  box-sizing: border-box;
  min-height:
    calc(
      100dvh -
      62px -
      env(safe-area-inset-top)
    );
  padding:
    25px
    20px
    30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.receive-main-card {
  padding:
    22px
    22px
    18px;
  border-radius: 15px;
  background: var(--tp-dark-surface, #ffffff);
}

.receive-warning {
  margin: 0;
  padding: 13px 10px;
  border-radius: 10px;
  background: var(--tp-dark-surface-2, #fff5ed);
  text-align: center;
}

.receive-warning strong {
  color: #ee8842;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

.receive-warning p {
  display: none;
}

.receive-qr-card {
  position: relative;
  width: 244px;
  height: 244px;
  margin:
    30px
    auto
    0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.receive-qr {
  width: 244px;
  height: 244px;
}

.receive-qr canvas,
.receive-qr img {
  width: 244px !important;
  height: 244px !important;
}

.receive-qr-logo {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 45px !important;
  height: 45px !important;
  padding: 4px;
  transform:
    translate(
      -50%,
      -50%
    );
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: #ffffff;
}

.receive-qr-logo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.receive-token-symbol-hidden {
  display: none;
}

.receive-address-box {
  margin-top: 26px;
  padding:
    14px
    14px
    15px;
  border-radius: 12px;
  background: var(--tp-dark-surface-2, #f6f7f8);
  text-align: center;
}

.receive-address-title {
  color: var(--tp-dark-muted, #a2a7af);
  font-size: 13px;
}

.receive-full-address {
  max-width: none;
  margin-top: 8px;
  color: var(--tp-dark-text, #3c4046);
  font-size: 15px;
  line-height: 1.45;
  word-break: break-all;
}

.receive-card-actions {
  min-height: 64px;
  margin-top: 11px;
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  align-items: center;
}

.receive-card-actions button {
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--tp-dark-text, #3c4046);
}

.receive-card-actions button + button {
  border-left: 1px solid var(--tp-dark-line, #eceef0);
}

.receive-card-actions button span {
  font-size: 19px;
}

.receive-card-actions button strong {
  font-size: 14px;
  font-weight: 400;
}

.receive-brand {
  margin-top: auto;
  padding-top: 45px;
  color:
    rgba(
      255,
      255,
      255,
      .28
    );
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
}


/* desktop 430px H5 preview remains unchanged */
@media (min-width: 768px) {

}
.wallet-toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  max-width: 78%;
  padding: 10px 15px;
  transform: translate(-50%, 15px);
  border-radius: 10px;
  background: rgba(20, 22, 26, .9);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}

.wallet-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.wallet-create-network-list {
  margin-top: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--tp-dark-surface, #ffffff);
}

.wallet-create-network-item {
  width: 100%;
  min-height: 72px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid var(--tp-dark-line, #f0f1f4);
  background: var(--tp-dark-surface, #ffffff);
  cursor: pointer;
  text-align: left;
}

.wallet-create-network-item:last-child {
  border-bottom: 0;
}

.wallet-create-network-item:active {
  background: var(--tp-dark-surface-2, #f7f8fa);
}

.wallet-create-network-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
}
.wallet-create-network-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}
.wallet-create-network-icon.method {
  background: #eef5ff;
  color: #2980FE;
  font-size: 17px;
}
.wallet-create-network-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wallet-create-network-info strong {
  color: var(--tp-dark-text, #202329);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.wallet-create-network-info small {
  color: var(--tp-dark-muted, #969ca5);
  font-size: 11px;
  line-height: 1.35;
}

.wallet-create-network-item > b {
  color: #b1b5bc;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
}

.wallet-create-notice {
  margin-top: 17px;
  padding: 14px 15px;
  border-radius: 13px;
  background: #f6f7f9;
}

.wallet-create-notice strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.wallet-create-notice p {
  margin: 0;
  color: #8c929c;
  font-size: 12px;
  line-height: 1.55;
}

.wallet-create-network-item.is-disabled {
  cursor: pointer;
}

.wallet-create-network-item.is-disabled
.wallet-create-network-info {
  opacity: 1;
}

.wallet-create-network-item.is-disabled
.wallet-create-network-icon {
  opacity: 1;
}

.wallet-create-network-item > em {
  flex: 0 0 auto;
  color: #a8adb5;
  font-style: normal;
  font-size: 11px;
  white-space: nowrap;
}

.sheet-step-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}

.sheet-back-btn {
  width: 34px;
  height: 34px;
  margin-top: -3px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4f5f7;
  color: #31343a;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.sheet-title.compact {
  margin-bottom: 5px;
}

.sheet-sub.compact {
  margin: 0;
}

.wallet-create-success {
  padding-top: 6px;
  text-align: center;
}

.create-success-icon {
  width: 66px;
  height: 66px;
  margin: 5px auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf8f2;
  color: #23aa68;
  font-size: 31px;
  font-weight: 800;
}

.success-title {
  margin-bottom: 8px;
}

.success-sub {
  max-width: 300px;
  margin: 0 auto 20px;
}

.created-wallet-card {
  min-height: 68px;
  margin: 19px 0 15px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 14px;
  background: #f6f7f9;
  text-align: left;
}

.created-wallet-card span {
  color: #8d939d;
  font-size: 12px;
}

.created-wallet-card strong {
  color: #202329;
  font-size: 15px;
}

.mnemonic-warning {
  margin: 18px 0 0;
  padding: 13px 14px;
  border-radius: 12px;
  background: #fff5f2;
}

.mnemonic-warning strong {
  display: block;
  margin-bottom: 5px;
  color: #df5a43;
  font-size: 12px;
  font-weight: 600;
}

.mnemonic-warning p {
  margin: 0;
  color: #8b716c;
  font-size: 11px;
  line-height: 1.55;
}

.mnemonic-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 17px;
}

.mnemonic-word {
  min-width: 0;
  height: 46px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e8eaee;
  border-radius: 10px;
  background: #f8f9fb;
}

.mnemonic-word span {
  flex: 0 0 auto;
  color: #b0b4bb;
  font-size: 9px;
}

.mnemonic-word strong {
  min-width: 0;
  overflow: hidden;
  color: #25282e;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
}

.backup-confirm-row {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #686e77;
  font-size: 11px;
  line-height: 1.55;
  cursor: pointer;
}

.backup-confirm-row input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  flex: 0 0 16px;
  accent-color: #2980FE;
}


/* TP wallet switch + manage */

.wallet-sheet.is-wallet-switch
.wallet-sheet-mask {
  background:
    rgba(18, 22, 29, .52);
}

.wallet-sheet.is-wallet-switch
.wallet-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  width: 100%;
  height: 72%;
  max-height: 72%;

  padding: 0;
  overflow: hidden;

  border-radius:
    18px
    18px
    0
    0;

  background: var(--tp-dark-surface, #ffffff);

  box-shadow:
    0
    -8px
    28px
    rgba(20, 24, 32, .10);
}

.wallet-sheet.is-wallet-switch
.sheet-handle {
  display: none;
}

.wallet-sheet.is-wallet-switch
#sheetContent {
  height: 100%;
}




/* Wallet scanner */

.tp-scanner-page {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #07090d;
  color: #ffffff;
}

.tp-scanner-header {
  position: relative;
  z-index: 5;
  height: 68px;
  padding:
    max(
      10px,
      env(safe-area-inset-top)
    )
    16px
    0;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  background: #07090d;
}

.tp-scanner-header > strong {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.tp-scanner-back {
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
}

.tp-scanner-back svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-scanner-album {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tp-scanner-album input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.tp-scanner-camera {
  position: relative;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #101319;
}

.tp-scanner-camera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #101319;
}

.tp-scanner-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      rgba(0, 0, 0, .42),
      rgba(0, 0, 0, .42)
    );
}

.tp-scanner-frame {
  position: relative;
  width: min(68vw, 280px);
  height: min(68vw, 280px);
  background: rgba(0, 0, 0, .08);
  box-shadow:
    0 0 0 999px
    rgba(0, 0, 0, .38);
}

.tp-scanner-frame > i {
  position: absolute;
  width: 31px;
  height: 31px;
}

.tp-scanner-frame > i:nth-child(1) {
  top: 0;
  left: 0;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
}

.tp-scanner-frame > i:nth-child(2) {
  top: 0;
  right: 0;
  border-top: 3px solid #ffffff;
  border-right: 3px solid #ffffff;
}

.tp-scanner-frame > i:nth-child(3) {
  bottom: 0;
  right: 0;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
}

.tp-scanner-frame > i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-bottom: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
}

.tp-scanner-frame > span {
  position: absolute;
  top: 8%;
  left: 8%;
  right: 8%;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #53a3ff,
      transparent
    );
  box-shadow:
    0 0 12px
    rgba(83, 163, 255, .9);
  animation:
    tpScannerLine
    2.2s
    linear
    infinite;
}

@keyframes tpScannerLine {
  0% {
    top: 8%;
  }

  50% {
    top: 88%;
  }

  100% {
    top: 8%;
  }
}

.tp-scanner-torch {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 74px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
}

.tp-scanner-torch svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-scanner-torch.is-on {
  color: #ffdf70;
}

.tp-scanner-status {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  bottom: 24px;
  text-align: center;
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
}

.tp-scanner-footer {
  flex: 0 0 auto;
  min-height: 118px;
  padding:
    12px 24px
    max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  background: #07090d;
}

.tp-scanner-bottom-action {
  position: relative;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
}

.tp-scanner-bottom-icon {
  width: 49px;
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}

.tp-scanner-bottom-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-scanner-result:not(.is-hidden)
  ~ .tp-scanner-footer {
  display: none;
}

.tp-scanner-result {
  min-height:
    calc(
      100vh -
      68px
    );
  padding: 62px 22px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f5f6fa;
  color: #2a2e34;
}

.tp-scan-result-icon {
  width: 66px;
  height: 66px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f3ff;
  color: #3378dd;
  font-size: 30px;
  font-weight: 600;
}

.tp-scanner-result > strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.tp-scanner-result > span {
  color: #8f949b;
  font-size: 13px;
}

.tp-scan-result-value {
  width: 100%;
  margin-top: 26px;
  padding: 18px;
  overflow-wrap: anywhere;
  border-radius: 14px;
  background: #ffffff;
  color: #43484f;
  font-size: 13px;
  line-height: 1.7;
}

.tp-scan-result-actions {
  width: 100%;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.tp-scan-result-actions button {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #3378dd;
  color: #ffffff;
  font-size: 15px;
}

.tp-scan-result-actions button.is-secondary {
  background: #ffffff;
  color: #43484f;
}

/* TP-style global search */

.tp-global-search-page {
  min-height: 100%;
  padding-bottom: 28px;
  background: #f5f6fa;
}

.tp-global-search-header {
  padding:
    max(
      14px,
      env(safe-area-inset-top)
    )
    16px
    12px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.tp-global-search-input {
  height: 54px;
  min-width: 0;
  flex: 1;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 17px;
  background: #ffffff;
}

.tp-global-search-input svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: #333840;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.tp-global-search-input input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #2a2e34;
  font-size: 15px;
}

.tp-global-search-input input::placeholder {
  color: #b7bbc2;
}

.tp-global-search-cancel {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #2d72d9;
  font-size: 15px;
}

.tp-global-search-tabs {
  padding: 3px 20px 8px;
  display: flex;
  align-items: center;
  gap: 25px;
}

.tp-global-search-tabs button {
  position: relative;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8d9299;
  font-size: 15px;
}

.tp-global-search-tabs button.is-active {
  color: #262a30;
  font-weight: 600;
}

.tp-global-search-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 31px;
  height: 3px;
  border-radius: 2px;
  background: #31353b;
  transform: translateX(-50%);
}

.tp-global-search-content {
  margin: 0 16px;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
}

.tp-global-dapp-row {
  min-height: 76px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f1f3;
}

.tp-global-dapp-row:last-child {
  border-bottom: 0;
}

.tp-global-dapp-main {
  min-width: 0;
  flex: 1;
  min-height: 76px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  text-align: left;
}

.tp-global-dapp-icon {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #edf3ff;
  color: #4378d6;
  font-size: 18px;
  font-weight: 700;
}

.tp-global-dapp-copy,
.tp-global-result-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tp-global-dapp-name-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tp-global-dapp-copy strong,
.tp-global-result-copy strong {
  overflow: hidden;
  color: #2a2e34;
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-global-dapp-name-line em {
  padding: 1px 4px;
  border: 1px solid #6aa5e8;
  border-radius: 4px;
  color: #4384cf;
  font-size: 10px;
  font-style: normal;
}

.tp-global-dapp-copy small,
.tp-global-result-copy small {
  overflow: hidden;
  color: #a3a7ae;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-global-favorite {
  width: 38px;
  height: 38px;
  padding: 8px;
  flex: 0 0 38px;
  border: 0;
  background: transparent;
}

.tp-global-favorite svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #a9adb4;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.tp-global-favorite.is-active svg {
  fill: #f1b847;
  stroke: #f1b847;
}

.tp-global-result-row {
  width: 100%;
  min-height: 70px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #f0f1f3;
  background: #ffffff;
  text-align: left;
}

.tp-global-result-row:last-child {
  border-bottom: 0;
}

.tp-global-result-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.tp-global-token-icon {
  width: 42px;
  height: 42px;
}

.tp-global-result-row > b {
  color: #c2c5ca;
  font-size: 25px;
  font-weight: 300;
}

.tp-global-search-empty {
  padding: 46px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #9ca1a8;
  text-align: center;
}

.tp-global-search-empty strong {
  color: #666c74;
  font-size: 14px;
  font-weight: 500;
}

.tp-global-search-empty span {
  font-size: 12px;
}

.tp-global-address-result {
  min-height: 72px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f0f1f3;
  background: #ffffff;
}

.tp-global-address-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef3ff;
  color: #3978dc;
  font-size: 20px;
}

.tp-global-address-result > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tp-global-address-result strong {
  color: #2a2e34;
  font-size: 14px;
}

.tp-global-address-result small {
  overflow: hidden;
  color: #999ea6;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Wallet network chooser */

.tp-wallet-chooser-page {
  min-height: 100%;
  background: #f5f6fa;
}

.tp-wallet-chooser-header {
  height: 66px;
  padding:
    max(
      10px,
      env(safe-area-inset-top)
    )
    16px
    0;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  background: #f5f6fa;
}

.tp-wallet-chooser-header > strong {
  text-align: center;
  color: #22262d;
  font-size: 18px;
  font-weight: 700;
}

.tp-wallet-chooser-back {
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 0;
  background: transparent;
}

.tp-wallet-chooser-back svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #262a31;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-wallet-chooser-body {
  padding:
    8px
    16px
    32px;
}

.tp-wallet-chooser-types,
.tp-wallet-chooser-single-card {
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
}

.tp-wallet-chooser-type,
.tp-wallet-chooser-network {
  width: 100%;
  min-height: 76px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  background: #ffffff;
  text-align: left;
}

.tp-wallet-chooser-type:last-child,
.tp-wallet-chooser-network:last-child {
  border-bottom: 0;
}

.tp-wallet-chooser-type:active,
.tp-wallet-chooser-network:active {
  background: #f7f8fa;
}

.tp-wallet-chooser-type-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2f80ff;
}

.tp-wallet-chooser-type-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-wallet-chooser-type-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-wallet-chooser-type-copy strong {
  color: #2b2f35;
  font-size: 16px;
  font-weight: 500;
}

.tp-wallet-chooser-type-copy small {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b7bbc2;
  border-radius: 50%;
  color: #8d929a;
  font-size: 13px;
}

.tp-wallet-chooser-type > em {
  color: #a4a8ae;
  font-size: 14px;
  font-style: normal;
}

.tp-wallet-chooser-type > b,
.tp-wallet-chooser-network > b {
  margin-left: 2px;
  color: #c4c7cc;
  font-size: 28px;
  font-weight: 300;
}

.tp-wallet-chooser-section-title {
  padding: 26px 0 12px 2px;
  color: #464b53;
  font-size: 15px;
}

.tp-wallet-chooser-single-card {
  padding-top: 12px;
}

.tp-wallet-chooser-search {
  height: 52px;
  margin: 0 14px 8px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 12px;
  background: #f5f6fa;
}

.tp-wallet-chooser-search svg {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  fill: none;
  stroke: #373c43;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.tp-wallet-chooser-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #2a2e34;
  font-size: 14px;
}

.tp-wallet-chooser-search input::placeholder {
  color: #b2b6bd;
}

.tp-wallet-chooser-network-list {
  padding-bottom: 4px;
}

.tp-wallet-chooser-network-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.tp-wallet-chooser-network-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tp-wallet-chooser-network-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tp-wallet-chooser-network-copy strong {
  color: #282c32;
  font-size: 16px;
  font-weight: 500;
}

.tp-wallet-chooser-network-copy small {
  color: #a9adb4;
  font-size: 11px;
}

.tp-wallet-chooser-network.is-disabled {
  opacity: .52;
}

.tp-wallet-chooser-empty {
  padding: 34px 20px;
  text-align: center;
  color: #9da2aa;
  font-size: 13px;
}

.tp-wallet-switch-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--tp-dark-surface, #ffffff);
}

.tp-wallet-switch-top {
  height: 72px;
  min-height: 72px;

  padding: 0 16px;

  display: grid;

  grid-template-columns:
    40px
    minmax(0, 1fr)
    40px;

  align-items: center;
  gap: 0;

  border-bottom: 1px solid var(--tp-dark-line, #eceef1);
  background: var(--tp-dark-surface, #ffffff);
}

.tp-wallet-switch-top > strong {
  width: 100%;

  color: var(--tp-dark-text, #25292f);

  font-size: 16px;
  font-weight: 600;

  text-align: center;
  white-space: nowrap;
}

.tp-wallet-search {
  width: 40px;
  height: 40px;

  padding: 7px;

  position: relative;
  z-index: 4;

  display: flex;
  align-items: center;
  gap: 7px;

  overflow: hidden;

  border-radius: 12px;
  background: transparent;

  box-sizing: border-box;
}

.tp-wallet-search svg {
  width: 24px;
  height: 24px;

  flex: 0 0 24px;

  fill: none;
  stroke: var(--tp-dark-text, #363b42);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.tp-wallet-search input {
  min-width: 0;

  position: absolute;
  inset: 0;

  width: 44px;
  height: 44px;

  padding: 0;

  opacity: 0;

  border: 0;
  outline: 0;

  background: transparent;

  color: var(--tp-dark-text, #30343a);
  font-size: 12px;
}

.tp-wallet-switch-close {
  width: 40px;
  height: 40px;

  border: 0;
  background: transparent;

  color: var(--tp-dark-text, #555a62);

  font-size: 29px;
  font-weight: 300;
}

.tp-wallet-switch-main {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns:
    72px
    minmax(0, 1fr);
}

.tp-wallet-network-rail {
  width: 72px;
  min-height: 0;

  display: flex;
  flex-direction: column;

  border-right: 1px solid var(--tp-dark-line, #f0f1f3);
  background: var(--tp-dark-bg, #fafafa);
}

.tp-wallet-network-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.tp-wallet-network-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.tp-wallet-network-item {
  position: relative;
  width: 100%;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--tp-dark-muted, #8b9098);
}

.tp-wallet-network-item.is-active {
  background: var(--tp-dark-bg, #ffffff);
  color: var(--tp-dark-text, #25282d);
}

.tp-wallet-network-item.is-active i {
  position: absolute;
  top: 15px;
  right: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #20b36c;
}

.tp-wallet-network-icon {
  width: 29px;
  height: 29px;
  overflow: hidden;
  border-radius: 50%;
}

.tp-wallet-network-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tp-wallet-network-item > span {
  font-size: 9px;
}

.tp-wallet-network-more {
  min-height: 55px;
  border: 0;
  border-top: 1px solid var(--tp-dark-line, #eceef1);
  background: var(--tp-dark-bg, #fafafa);
  color: var(--tp-dark-muted, #6c727b);
  font-size: 23px;
}

.tp-wallet-network-wallets {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--tp-dark-surface, #ffffff);
}

.tp-wallet-network-head {
  min-height: 58px;

  padding:
    8px
    13px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-wallet-network-head > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tp-wallet-network-head strong {
  color: var(--tp-dark-text, #292d33);

  font-size: 17px;
  font-weight: 500;
}

.tp-wallet-network-head span {
  display: none;
}

.tp-wallet-network-head > button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tp-dark-text, #25282d);
  font-size: 26px;
  font-weight: 300;
}

.tp-wallet-list {
  min-height: 0;
  flex: 1;
  padding:
    0
    13px
    24px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.tp-wallet-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.tp-wallet-list-card {
  box-sizing: border-box;

  width: 100%;
  min-height: 112px;

  margin: 0 0 10px;

  padding:
    14px
    15px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 0;
  border-radius: 12px;

  background: #ffffff;

  color: #ffffff;

  text-align: left;

  box-shadow: none;

  cursor: pointer;
}


.tp-wallet-list-card.is-current {
  box-shadow:
    0
    4px
    14px
    rgba(0, 0, 0, .08);
}


/* TRON */

.tp-wallet-list-card.network-tron {
  background:
    #cf263c;
}


/* Ethereum */

.tp-wallet-list-card.network-eth {
  background:
    #4b63c6;
}


/* BNB */

.tp-wallet-list-card.network-bnb {
  background:
    #e1a900;
}


/* Bitcoin */

.tp-wallet-list-card.network-btc {
  background:
    #f39a24;
}


/* Solana */

.tp-wallet-list-card.network-solana {
  background:
    #5a4bd6;
}


/* Polygon */

.tp-wallet-list-card.network-polygon {
  background:
    #7b5bd6;
}


/* Arbitrum */

.tp-wallet-list-card.network-arbitrum {
  background:
    #315a89;
}


/* Optimism */

.tp-wallet-list-card.network-optimism {
  background:
    #ea3345;
}


/* Base */

.tp-wallet-list-card.network-base {
  background:
    #2952ff;
}


/* TON */

.tp-wallet-list-card.network-ton {
  background:
    #2699da;
}


.tp-wallet-card-top {
  display: flex;
  align-items: center;

  gap: 8px;
}
.tp-wallet-card-address-row {
  margin-top: 14px;

  display: flex;
  align-items: center;
}


.tp-wallet-card-address {
  min-width: 0;

  margin-top: 0;

  display: inline-flex;
  align-items: center;

  gap: 6px;

  color:
    rgba(255, 255, 255, .72);

  font-size: 11px;
  line-height: 1.3;
}


.tp-wallet-card-address > span:first-child {
  min-width: 0;

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.tp-wallet-address-copy-icon {
  width: 15px;
  height: 15px;

  flex:
    0
    0
    15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color:
    rgba(255, 255, 255, .72);

  cursor: pointer;

  -webkit-tap-highlight-color:
    transparent;
}


.tp-wallet-address-copy-icon svg {
  width: 100%;
  height: 100%;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.6;

  stroke-linecap: round;
  stroke-linejoin: round;
}


.tp-wallet-card-balance-row {
  margin-top: 10px;

  display: flex;
  justify-content: flex-end;
  align-items: center;
}


.tp-wallet-card-balance-row > strong {
  color: #ffffff;

  font-size: 14px;
  font-weight: 500;

  line-height: 1.2;

  white-space: nowrap;
}

.tp-wallet-card-title {
  min-width: 0;

  display: inline-flex;
  align-items: center;

  gap: 8px;
}


.tp-wallet-card-title > strong {
  min-width: 0;

  overflow: hidden;

  color: #ffffff;

  font-size: 16px;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.tp-wallet-hd-badge {
  padding:
    1px
    5px;

  border:
    1px solid
    rgba(255, 255, 255, .92);

  border-radius: 4px;

  background:
    transparent;

  color: #ffffff;

  font-size: 10px;
  font-weight: 500;
}


.tp-wallet-current-check {
  width: 24px;
  height: 24px;

  margin-left: auto;

  flex:
    0
    0
    24px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
}


.tp-wallet-current-check svg {
  width: 21px;
  height: 21px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.8;

  stroke-linecap: round;
  stroke-linejoin: round;
}


.tp-wallet-empty {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
}

.tp-wallet-empty strong {
  color: #777d85;
  font-size: 13px;
}

.tp-wallet-empty span {
  color: #adb2b9;
  font-size: 10px;
}


/* Add wallet */

.add-wallet-actions {
  display: grid;
  gap: 10px;
}

.add-wallet-action {
  width: 100%;
  min-height: 70px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #eceef2;
  border-radius: 12px;
  background: #ffffff;
  color: #25282d;
  text-align: left;
}

.add-wallet-action-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef5ff;
  color: #2980FE;
  font-size: 20px;
}

.add-wallet-action-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.add-wallet-action-info strong {
  font-size: 13px;
}

.add-wallet-action-info small {
  color: #9aa0a8;
  font-size: 10px;
}

.add-wallet-action > b {
  color: #b6bbc2;
  font-size: 21px;
  font-weight: 300;
}
/* Mine security */

.tp-security-page {
  min-height: 100vh;

  background: #f4f5f8;
}

.tp-security-page
.tp-flow-header {
  background: #f4f5f8;
}

.tp-security-body {
  min-height:
    calc(
      100vh -
      58px
    );

  padding:
    14px
    18px
    calc(
      22px +
      env(safe-area-inset-bottom)
    );

  display: flex;
  flex-direction: column;
}

.tp-security-group {
  margin-bottom: 14px;

  overflow: hidden;

  border-radius: 14px;

  background: #ffffff;
}

.tp-security-row {
  position: relative;

  width: 100%;
  min-height: 62px;

  padding:
    0
    17px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border: 0;

  background: var(--tp-dark-surface, #ffffff);

  color: var(--tp-dark-text, #34383e);

  font-family: inherit;

  text-align: left;

  -webkit-tap-highlight-color: transparent;
}

.tp-security-row:not(:last-child)::after {
  content: "";

  position: absolute;

  left: 17px;
  right: 0;
  bottom: 0;

  height: 1px;

  background: var(--tp-dark-line, #eeeeef);

  transform:
    scaleY(.5);

  transform-origin: bottom;
}

.tp-security-row:active {
   background: var(--tp-dark-surface-2, #f8f9fa);
}

.tp-security-row
> span:first-child {
  font-size: 17px;
  line-height: 1.2;

  font-weight: 400;
}

.tp-security-row
> b {
  color: var(--tp-dark-surface,#a9adb2);

  font-size: 26px;
  line-height: 1;

  font-weight: 300;
}

.tp-security-row-right {
  display: flex;
  align-items: center;

  gap: 8px;
}

.tp-security-row-right
em {
  color: var(--tp-dark-muted, #a5a9af);

  font-size: 14px;

  font-style: normal;
}

.tp-security-row-right
b {
  color: var(--tp-dark-muted,#a9adb2);

  font-size: 26px;
  line-height: 1;

  font-weight: 300;
}


.tp-security-reset {
  width: 100%;
  min-height: 58px;
  margin-top: auto;
  border: 0;
  border-radius: 14px;
  background: var(--tp-dark-surface, #ffffff);
  color: #e06a64;
  font-family: inherit;
  font-size: 17px;
  line-height: 1;
  font-weight: 400;
  -webkit-tap-highlight-color: transparent;
}

.tp-security-reset:active {
  background: var(--tp-dark-surface-2, #faf7f7);
}

/* Mine transaction history */


.tp-mine-history-page {
  min-height: 100vh;
  background: var(--tp-dark-bg, #f4f5f8);
}

.tp-mine-history-header {
  background: var(--tp-dark-bg, #f4f5f8);
}


.tp-mine-history-network {
  width: 56px;
  height: 40px;

  padding: 0 7px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 4px;

  border: 0;
  border-radius: 20px;

background: var(--tp-dark-surface, #ffffff);
color: var(--tp-dark-muted, #7c828a);
}

.tp-mine-history-network-icon {
  width: 26px;
  height: 26px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border-radius: 50%;
}

.tp-mine-history-network-icon img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
}

.tp-mine-history-network
> span {
  margin-top: -3px;

  font-size: 16px;
  line-height: 1;
}

.tp-mine-history-body {
  padding:
    4px
    14px
    28px;
}

.tp-mine-history-filters {
  min-height: 48px;

  display: flex;
  align-items: center;

  gap: 25px;
}

.tp-mine-history-filter {
  position: relative;

  display: inline-flex;
  align-items: center;

  color: #979da6;
}

.tp-mine-history-filter select {
  position: relative;
  z-index: 1;

  min-width: 0;

  padding:
    8px
    23px
    8px
    0;

  border: 0;

  outline: 0;

  appearance: none;
  -webkit-appearance: none;

  background: transparent;

  color: #9298a1;

  font-size: 14px;
  line-height: 20px;
}

.tp-mine-history-filter svg {
  position: absolute;

  right: 2px;
  top: 50%;

  width: 15px;
  height: 15px;

  transform:
    translateY(-50%);

  fill: none;
  stroke: currentColor;

  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  pointer-events: none;
}

.tp-mine-history-list {
  overflow: hidden;

  border-radius: 14px;

  background: var(--tp-dark-surface, #ffffff);
}

.tp-mine-history-row {
  min-height: 78px;

  padding:
    12px
    13px;

  display: grid;

  grid-template-columns:
    38px
    minmax(0, 1fr);

  gap: 10px;

  background: var(--tp-dark-surface, #ffffff);
}

.tp-mine-history-row.is-hidden {
  display: none;
}

.tp-mine-history-icon {
  width: 34px;
  height: 34px;

  margin-top: 1px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: #ffffff;
}

.tp-mine-history-icon.is-in {
  background: #3188f5;
}

.tp-mine-history-icon.is-out {
  background: #4ec9ae;
}

.tp-mine-history-icon.is-swap {
  background: #8d76f2;
}

.tp-mine-history-icon.is-fee {
  background: #f0a94d;
}

.tp-mine-history-icon.is-other {
  background: #a5abb3;
}

.tp-mine-history-icon svg {
  width: 20px;
  height: 20px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-mine-history-content {
  min-width: 0;

  padding-bottom: 12px;

  border-bottom: 1px solid var(--tp-dark-line, #f0f1f3);
}

.tp-mine-history-row:last-child
.tp-mine-history-content {
  padding-bottom: 0;

  border-bottom: 0;
}

.tp-mine-history-top {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 8px;
}

.tp-mine-history-address {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 4px;

  color: #343940;

  font-size: 15px;
  line-height: 22px;
}

.tp-mine-history-address
> span {
  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-mine-history-copy {
  width: 20px;
  height: 20px;

  flex:
    0
    0
    20px;

  padding: 0;

  display: grid;
  place-items: center;

  border: 0;

  background: transparent;

  color: #a6abb2;
}

.tp-mine-history-copy svg {
  width: 15px;
  height: 15px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-mine-history-amount {
  flex:
    0
    0
    auto;

  max-width: 48%;

  overflow: hidden;

  font-size: 15px;
  line-height: 22px;

  font-weight: 500;

  text-align: right;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-mine-history-amount.is-in {
  color: #3188f5;
}

.tp-mine-history-amount.is-out {
  color: #55bfa9;
}

.tp-mine-history-amount.is-neutral {
  color: #626870;
}

.tp-mine-history-bottom {
  margin-top: 2px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 8px;

  color: #a3a8af;

  font-size: 12px;
  line-height: 18px;
}

.tp-mine-history-bottom
> span {
  min-width: 0;

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-mine-history-bottom time {
  flex:
    0
    0
    auto;

  white-space: nowrap;
}

.tp-mine-history-empty {
  min-height: 180px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 7px;

  border-radius: 14px;

  background: #ffffff;

  color: #a1a6ad;

  text-align: center;
}

.tp-mine-history-empty.is-hidden {
  display: none;
}

.tp-mine-history-empty strong {
  color: #70767d;

  font-size: 15px;
  font-weight: 500;
}

.tp-mine-history-empty span {
  font-size: 12px;
}
/* Manage wallet */

.tp-manage-page {
  min-height: 100vh;
  background: #f6f7f9;
}

.tp-manage-tp-page {
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  background: #ffffff;
}

.tp-manage-tp-page
.tp-flow-header {
  flex:
    0
    0
    auto;

  background: #ffffff;
}

.tp-manage-sort {
  width: 48px;
  height: 46px;

  padding: 2px 0 0;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 1px;

  border: 0;

  background: transparent;
  color: var(--tp-dark-text, #34383e);
}

.tp-manage-sort svg {
  width: 23px;
  height: 23px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-manage-sort span {
  font-size: 10px;
  line-height: 1;
}

.tp-manage-network-head {
  min-height: 72px;

  flex:
    0
    0
    72px;

  padding:
    5px
    16px;

  display: grid;

  grid-template-columns:
    48px
    minmax(0, 1fr)
    44px;

  align-items: center;

  gap: 12px;

  background: #ffffff;
}

.tp-manage-chain-icon {
  width: 44px;
  height: 44px;

  overflow: hidden;

  display: grid;
  place-items: center;

  border-radius: 50%;
}

.tp-manage-chain-icon img {
  width: 44px;
  height: 44px;

  display: block;

  object-fit: contain;

  border-radius: 50%;
}

.tp-manage-network-head
> strong {
  min-width: 0;

  color: var(--tp-dark-text, #34383e);

  font-size: 18px;
  line-height: 1.2;

  font-weight: 500;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-manage-network-add {
  width: 36px;
  height: 36px;

  padding: 0;

  display: grid;
  place-items: center;

  border:
    1.5px
    solid
    #43484f;

  border-radius: 50%;

  background: var(--tp-dark-surface, #ffffff);
  color: var(--tp-dark-text, #34383e);

  font-size: 28px;
  line-height: 30px;

  font-weight: 300;
}

.tp-manage-workspace {
  min-height: 0;

  flex:
    1
    1
    auto;

  display: grid;

  grid-template-columns:
    78px
    minmax(0, 1fr);

  align-items: stretch;

  background: #ffffff;
}

.tp-manage-network-rail {
  min-width: 0;

  overflow: hidden;

  background: #f2f4f7;
}

.tp-manage-network-scroll {
  height: 100%;

  padding:
    14px
    0
    24px;

  overflow-y: auto;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 14px;

  scrollbar-width: none;
}

.tp-manage-network-scroll::-webkit-scrollbar {
  display: none;
}

.tp-manage-network-item {
  position: relative;

  width: 54px;
  height: 54px;

  flex:
    0
    0
    54px;

  padding: 0;

  display: grid;
  place-items: center;

  border: 0;

  background: transparent;
}

.tp-manage-network-item
.tp-wallet-network-icon {
  width: 42px;
  height: 42px;

  opacity: .23;

  filter:
    grayscale(1);

  transition:
    opacity .15s ease,
    filter .15s ease;
}

.tp-manage-network-item
.tp-wallet-network-icon img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;

  border-radius: 50%;
}

.tp-manage-network-label {
  display: none;
}

.tp-manage-network-item.is-active
.tp-wallet-network-icon {
  opacity: 1;

  filter: none;
}

.tp-manage-network-item.is-active::after {
  content: "";

  position: absolute;

  right: -12px;

  top: 50%;

  width: 3px;
  height: 28px;

  transform:
    translateY(-50%);

  border-radius:
    3px
    0
    0
    3px;

  background: #2980fe;
}

.tp-manage-wallet-pane {
  min-width: 0;

  padding:
    8px
    12px
    28px;

  overflow-y: auto;

  background: #ffffff;
}

.tp-manage-tp-wallet-list {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.tp-manage-tp-wallet-list
.tp-wallet-list-card {
  position: relative;

  width: 100%;
  min-height: 122px;

  padding:
    14px
    16px;

  display: block;

  border: 0;

  border-radius: 8px;

  color: #ffffff;

  text-align: left;

  overflow: hidden;
}

.tp-manage-tp-wallet-list
.tp-wallet-list-card::after {
  display: none;
}

.tp-manage-card-topline {
  min-height: 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 8px;
}

.tp-manage-tp-wallet-list
.tp-wallet-card-title {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 6px;
}

.tp-manage-tp-wallet-list
.tp-wallet-card-title
> strong {
  max-width: 140px;

  overflow: hidden;

  color: #ffffff;

  font-size: 17px;
  line-height: 1.1;

  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-manage-current-label {
  padding:
    2px
    6px;

  border-radius: 4px;

  background:
    rgba(
      255,
      255,
      255,
      .94
    );

  color: #d2263d;

  font-size: 10px;
  line-height: 1.2;

  font-weight: 500;
}

.tp-manage-tp-wallet-list
.tp-wallet-hd-badge {
  padding:
    2px
    6px;

  border:
    1px
    solid
    rgba(
      255,
      255,
      255,
      .78
    );

  border-radius: 4px;

  background: transparent;
  color: #ffffff;

  font-size: 10px;
  line-height: 1.2;
}

.tp-manage-card-arrow {
  color:
    rgba(
      255,
      255,
      255,
      .48
    );

  font-size: 27px;
  line-height: 1;

  font-weight: 300;
}

.tp-manage-tp-wallet-list
.tp-wallet-card-address-row {
  margin-top: 5px;

  display: flex;
  align-items: center;
}

.tp-manage-tp-wallet-list
.tp-wallet-card-address {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 6px;

  color:
    rgba(
      255,
      255,
      255,
      .56
    );

  font-size: 12px;
}

.tp-manage-tp-wallet-list
.tp-wallet-address-copy-icon {
  width: 18px;
  height: 18px;

  display: grid;
  place-items: center;

  color:
    rgba(
      255,
      255,
      255,
      .52
    );
}

.tp-manage-tp-wallet-list
.tp-wallet-address-copy-icon svg {
  width: 15px;
  height: 15px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.6;
}

.tp-manage-tp-wallet-list
.tp-wallet-card-balance-row {
  margin-top: 12px;

  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.tp-manage-tp-wallet-list
.tp-wallet-card-balance-row
> strong {
  color: #ffffff;

  font-size: 17px;
  line-height: 1;

  font-weight: 500;
}

.tp-manage-wallet-empty {
  padding:
    80px
    10px;

  color: #a2a7ae;

  font-size: 13px;

  text-align: center;
}

.tp-manage-bottom-bar {
  min-height:
    calc(
      66px +
      env(safe-area-inset-bottom)
    );

  flex:
    0
    0
    auto;

  padding:
    0
    12px
    env(safe-area-inset-bottom);

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr)
    48px;

  align-items: center;

  border-top:
    1px
    solid
    #eceef1;

  background: #ffffff;
}

.tp-manage-bottom-bar
> button {
  min-width: 0;
  height: 52px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  border: 0;

  background: transparent;
  color: #373c43;
}

.tp-manage-bottom-bar
> button:not(:last-child) {
  border-right:
    1px
    solid
    #eceef1;
}

.tp-manage-bottom-bar svg {
  width: 25px;
  height: 25px;

  flex:
    0
    0
    25px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-manage-bottom-bar
span {
  font-size: 14px;
  line-height: 1;

  white-space: nowrap;
}

.tp-manage-more {
  flex-direction: column;

  gap: 3px !important;
}

.tp-manage-more i {
  width: 4px;
  height: 4px;

  display: block;

  border-radius: 50%;

  background: #3b4046;
}

/* Node manager */

.tp-node-page {
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  background: var(--tp-dark-bg, #f5f6f8);
}


.tp-node-more {
  padding: 4px 0;

  border: 0;

  background: transparent;

   color: var(--tp-dark-text, #30343a);

  font-size: 14px;

  cursor: pointer;
}


.tp-node-body {
  flex: 1;

  padding:
    14px
    15px
    30px;
}
.tp-node-footer {
  flex:
    0
    0
    auto;

  padding:
    16px
    15px
    max(
      18px,
      env(safe-area-inset-bottom)
    );

  background:
    var(--tp-dark-bg, #f5f6f8);
}

.tp-node-speed-card {
  min-height: 60px;

  padding:
    0
    15px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-radius: 12px;

  background: var(--tp-dark-surface, #ffffff);
}


.tp-node-speed-card > span {
  color: var(--tp-dark-text, #34383e);

  font-size: 14px;
}


.tp-node-speed-legend {
  display: flex;
  align-items: center;

  gap: 12px;
}


.tp-node-speed-legend > span {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  color: var(--tp-dark-muted, #555b64);

  font-size: 12px;
}


.tp-node-speed-legend i {
  width: 7px;
  height: 7px;

  display: inline-block;

  border-radius: 50%;
}


.tp-node-speed-legend .is-fast {
  background: #22b88a;
}


.tp-node-speed-legend .is-medium {
  background: #e2a734;
}


.tp-node-speed-legend .is-slow {
  background: #df5858;
}


.tp-node-section-title {
  margin:
    18px
    2px
    8px;

  color: var(--tp-dark-muted, #999fa8);

  font-size: 12px;
}


.tp-node-card {
  overflow: hidden;

  border-radius: 12px;

  background: var(--tp-dark-surface, #ffffff);
}


.tp-node-row {
  width: 100%;
  min-height: 68px;

  padding:
    11px
    15px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  border: 0;
  border-bottom:
    1px solid var(--tp-dark-line, #f0f1f2);

  background: var(--tp-dark-surface, #ffffff);

  text-align: left;

  cursor: pointer;
}


.tp-node-row:last-child {
  border-bottom: 0;
}


.tp-node-row-copy {
  min-width: 0;

  flex: 1;

  display: flex;
  flex-direction: column;

  gap: 5px;
}


.tp-node-row-copy > strong {
  color: var(--tp-dark-text, #31353b);

  font-size: 14px;
  font-weight: 500;
}


.tp-node-row-copy > small {
  overflow: hidden;

  color: var(--tp-dark-muted, #a0a5ad);

  font-size: 10px;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.tp-node-row-meta {
  flex:
    0
    0
    auto;

  display: inline-flex;
  align-items: center;

  gap: 8px;
}


.tp-node-latency {
  color: var(--tp-dark-text, #555b62);

  font-size: 12px;
}


.tp-node-unavailable {
  color: var(--tp-dark-muted, #b4b8be);

  font-size: 11px;
}

.tp-node-current-check {
  width: 22px;
  height: 22px;

  flex:
    0
    0
    22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--tp-dark-text, #292d33);
}


.tp-node-current-check svg {
  width: 19px;
  height: 19px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.8;

  stroke-linecap: round;
  stroke-linejoin: round;
}
.tp-node-current-dot {
  width: 7px;
  height: 7px;

  flex:
    0
    0
    7px;

  border-radius: 50%;

  background: #22b88a;
}


.tp-node-empty {
  padding: 18px;

  color: var(--tp-dark-muted, #a0a5ad);

  font-size: 12px;

  text-align: center;
}


.tp-node-add-button {
  width: 100%;
  height: 52px;

  margin: 0;

  border: 0;
  border-radius: 10px;

  background: #2980fe;

  color: #ffffff;

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
}

.tp-node-latency {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}


.tp-node-latency::after {
  content: "";

  width: 7px;
  height: 7px;

  flex:
    0
    0
    7px;

  border-radius: 50%;

  background:
    #bfc3c9;
}


.tp-node-latency.is-fast::after {
  background:
    #2dbb70;
}


.tp-node-latency.is-medium::after {
  background:
    #f0a928;
}


.tp-node-latency.is-slow::after {
  background:
    #e25b5b;
}
/* Custom node modal */

.wallet-custom-node-modal {
  position: fixed;
  z-index: 180;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px 20px;
}


.wallet-custom-node-modal.is-hidden {
  display: none;
}


.wallet-custom-node-mask {
  position: absolute;
  inset: 0;

  background:
    rgba(0, 0, 0, .48);
}

.wallet-custom-node-dialog {
  position: relative;
  z-index: 1;

  width: min(
    100%,
    420px
  );

  padding:
    30px
    26px
    28px;

  border-radius: 20px;

  background:
    var(--tp-dark-surface, #ffffff);

  box-shadow:
    0
    18px
    50px
    rgba(0, 0, 0, .20);
}

.wallet-custom-node-dialog > h2 {
  margin:
    0
    34px
    24px;

  color:
    var(--tp-dark-text, #292d33);

  font-size:
    22px;

  font-weight:
    600;

  text-align:
    center;
}

.wallet-custom-node-close {
  position: absolute;

  top: 16px;
  right: 18px;

  width: 32px;
  height: 32px;

  padding: 0;

  border: 0;

  background:
    transparent;

  color:
    var(--tp-dark-muted, #92979e);

  font-size:
    31px;

  font-weight:
    300;

  line-height:
    30px;

  cursor:
    pointer;
}

.wallet-custom-node-warning {
  margin-bottom:
    14px;

  padding:
    15px
    16px;

  border:
    1px solid
    #ef9c65;

  border-radius:
    14px;

  background:
    #fff8f3;

  color:
    #df7847;
}


.wallet-custom-node-warning > strong {
  display:
    block;

  margin-bottom:
    8px;

  font-size:
    14px;

  font-weight:
    600;
}


.wallet-custom-node-warning > p {
  margin:
    0;

  font-size:
    13px;

  line-height:
    1.65;
}


.wallet-custom-node-warning > button {
  margin-top:
    7px;

  padding:
    0;

  border:
    0;

  background:
    transparent;

  color:
    #4288cf;

  font-size:
    13px;

  text-decoration:
    underline;

  cursor:
    pointer;
}

.wallet-custom-node-name {
  width:
    100%;

  height:
    58px;

  padding:
    0
    17px;

  border:
    0;

  border-radius:
    14px;

  outline:
    none;

  background:
    var(--tp-dark-surface-2, #f5f6f8);

  color:
    var(--tp-dark-text, #30343a);

  font-size:
    15px;
}

.wallet-custom-node-name::placeholder,
.wallet-custom-node-url-box textarea::placeholder {
  color:
    var(--tp-dark-muted, #b7bbc1);
}


.wallet-custom-node-name:focus,
.wallet-custom-node-url-box:focus-within {
  box-shadow:
    inset
    0
    0
    0
    1px
    #cbdcf8;
}

.wallet-custom-node-url-box {
  position:
    relative;

  margin-top:
    12px;

  min-height:
    150px;

  border-radius:
    14px;

  background:
    var(--tp-dark-surface-2, #f5f6f8);
}

.wallet-custom-node-url-box textarea {
  width:
    100%;

  min-height:
    150px;

  padding:
    17px
    18px
    48px;

  resize:
    none;

  border:
    0;

  outline:
    none;

  background:
    transparent;

  color:
    var(--tp-dark-text, #30343a);

  font-family:
    inherit;

  font-size:
    15px;

  line-height:
    1.55;
}

.wallet-custom-node-paste {
  position:
    absolute;

  right:
    16px;

  bottom:
    15px;

  padding:
    0;

  border:
    0;

  background:
    transparent;

  color:
    #2980fe;

  font-size:
    15px;

  cursor:
    pointer;
}


.wallet-custom-node-confirm {
  width:
    100%;

  height:
    56px;

  margin-top:
    18px;

  border:
    0;

  border-radius:
    14px;

  background:
    #2980fe;

  color:
    #ffffff;

  font-size:
    16px;

  font-weight:
    500;

  cursor:
    pointer;
}
.tp-node-custom-swipe {
  position: relative;

  width: 100%;

  overflow: hidden;

  background:
    #ef5b52;
}


.tp-node-custom-swipe +
.tp-node-custom-swipe {
  border-top:
    1px solid var(--tp-dark-line, #f0f1f2);
}


.tp-node-custom-row {
  position: relative;
  z-index: 2;

  border-bottom: 0;

  transition:
    transform .22s ease;

  touch-action:
    pan-y;
}


.tp-node-custom-swipe.is-open
.tp-node-custom-row {
  transform:
    translateX(-88px);
}


.tp-node-custom-delete {
  position: absolute;

  top: 0;
  right: 0;
  bottom: 0;

  width: 88px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;

  background:
    #ef5b52;

  color:
    #ffffff;

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
}
/* Wallet detail */

.tp-wallet-detail-page {
  min-height: 100%;
  background: #f5f6f8;
}


.tp-wallet-detail-header {
  background: #f5f6f8;
}


.tp-wallet-detail-body {
  padding:
    12px
    15px
    34px;
}


.tp-wallet-detail-main-card {
  padding:
    18px
    15px
    15px;

  border-radius: 12px;

  background: #ffffff;
}


.tp-wallet-detail-profile {
  min-height: 48px;

  display: flex;
  align-items: center;

  gap: 11px;
}


.tp-wallet-detail-icon {
  width: 42px;
  height: 42px;

  flex:
    0
    0
    42px;

  overflow: hidden;

  border-radius: 50%;
}


.tp-wallet-detail-icon img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
}


.tp-wallet-detail-name {
  min-width: 0;

  padding: 0;

  display: inline-flex;
  align-items: center;

  gap: 6px;

  border: 0;

  background: transparent;

  color: #292d33;

  cursor: pointer;
}


.tp-wallet-detail-name > strong {
  max-width: 160px;

  overflow: hidden;

  font-size: 17px;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.tp-wallet-detail-name > svg {
  width: 15px;
  height: 15px;

  flex:
    0
    0
    15px;

  fill: none;

  stroke: #8f959e;
  stroke-width: 1.7;

  stroke-linecap: round;
  stroke-linejoin: round;
}


.tp-wallet-detail-hd-entry {
  margin-left: auto;

  padding: 4px 0 4px 8px;

  display: inline-flex;
  align-items: center;

  gap: 9px;

  border: 0;

  background: transparent;

  color: #8e949c;

  cursor: pointer;
}


.tp-wallet-detail-hd-icon {
  width: 23px;
  height: 23px;

  display: inline-flex;
}


.tp-wallet-detail-hd-icon svg {
  width: 100%;
  height: 100%;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.5;
}


.tp-wallet-detail-chevron {
  width: 16px;
  height: 16px;

  fill: none;

  stroke: #b4b9c0;
  stroke-width: 1.7;

  stroke-linecap: round;
  stroke-linejoin: round;
}


.tp-wallet-detail-address-card {
  margin-top: 15px;

  padding:
    12px
    13px;

  border-radius: 8px;

  background: #f6f7f8;
}


.tp-wallet-detail-address-label {
  display: block;

  margin-bottom: 8px;

  color: #8d939c;

  font-size: 11px;
}


.tp-wallet-detail-address-value {
  display: flex;
  align-items: flex-start;

  gap: 10px;
}


.tp-wallet-detail-address-value > strong {
  min-width: 0;

  flex: 1;

  overflow-wrap: anywhere;

  color: #363a40;

  font-size: 12px;
  font-weight: 500;

  line-height: 1.55;
}


.tp-wallet-detail-copy {
  width: 22px;
  height: 22px;

  padding: 3px;

  flex:
    0
    0
    22px;

  border: 0;

  background: transparent;

  color: #888e97;

  cursor: pointer;
}


.tp-wallet-detail-copy svg {
  width: 100%;
  height: 100%;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.6;

  stroke-linecap: round;
  stroke-linejoin: round;
}


.tp-wallet-detail-section {
  margin-top: 13px;

  overflow: hidden;

  border-radius: 12px;

  background: #ffffff;
}


.tp-wallet-detail-menu-row {
  width: 100%;
  min-height: 55px;

  padding:
    0
    15px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  border: 0;
  border-bottom:
    1px solid #f0f1f2;

  background: #ffffff;

  color: #30343a;

  cursor: pointer;

  text-align: left;
}


.tp-wallet-detail-menu-row:last-child {
  border-bottom: 0;
}


.tp-wallet-detail-menu-row > span {
  font-size: 14px;
  font-weight: 400;
}


.tp-wallet-detail-menu-row > svg {
  width: 17px;
  height: 17px;

  flex:
    0
    0
    17px;

  fill: none;

  stroke: #b3b8bf;
  stroke-width: 1.7;

  stroke-linecap: round;
  stroke-linejoin: round;
}


.tp-wallet-detail-advanced {
  width: auto;
  min-height: 48px;

  margin:
    11px
    0
    0
    auto;

  padding:
    0
    4px
    0
    16px;

  display: flex;
  align-items: center;

  gap: 4px;

  border: 0;

  background: transparent;

  color: #7e848d;

  cursor: pointer;
}


.tp-wallet-detail-advanced > span {
  font-size: 12px;
}


.tp-wallet-detail-advanced > svg {
  width: 15px;
  height: 15px;

  fill: none;

  stroke: #a6abb2;
  stroke-width: 1.7;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Wallet detail secure export */
.tp-wallet-export-page {
  min-height: 100%;
  background: #ffffff;
}

.tp-wallet-export-intro-body,
.tp-wallet-export-secret-body,
.tp-wallet-export-private-body,
.tp-wallet-export-verify-body {
  padding:
    18px
    22px
    120px;
}

.tp-wallet-export-hero {
  height: 135px;
  margin:
    10px
    0
    28px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      #e7f5ff,
      #cfeaff
    );
}

.tp-wallet-export-hero::before,
.tp-wallet-export-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background:
    rgba(
      255,
      255,
      255,
      .38
    );
}

.tp-wallet-export-hero::before {
  width: 120px;
  height: 120px;
  left: -35px;
  bottom: -60px;
}

.tp-wallet-export-hero::after {
  width: 150px;
  height: 150px;
  right: -50px;
  top: -80px;
}

.tp-wallet-export-shield,
.tp-wallet-export-wallet-icon,
.tp-wallet-export-key-icon {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-wallet-export-shield {
  width: 62px;
  height: 62px;
  left: 28px;
  top: 23px;
  color: #36c976;
}

.tp-wallet-export-wallet-icon {
  width: 86px;
  height: 68px;
  left: 50%;
  top: 34px;
  transform:
    translateX(-50%);
  color: #2e83f7;
}

.tp-wallet-export-key-icon {
  width: 56px;
  height: 56px;
  right: 28px;
  top: 34px;
  color: #f1a63b;
}

.tp-wallet-export-shield svg,
.tp-wallet-export-wallet-icon svg,
.tp-wallet-export-key-icon svg {
  width: 100%;
  height: 100%;
  fill:
    rgba(
      255,
      255,
      255,
      .72
    );
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-wallet-export-wallet-icon svg {
  stroke-width: 2.2;
}

.tp-wallet-export-intro-body > h1,
.tp-wallet-export-secret-body > h1,
.tp-wallet-export-verify-body > h1 {
  margin:
    0
    0
    8px;
  color: #292d33;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.35;
}

.tp-wallet-export-description {
  margin: 0;
  color: #9298a1;
  font-size: 14px;
  line-height: 1.65;
}

.tp-wallet-export-description > span {
  color: #ec6b65;
}

.tp-wallet-export-danger {
  margin-top: 18px;
  padding:
    14px
    15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 12px;
  background: #fff0ef;
  color: #e96661;
}

.tp-wallet-export-danger > strong {
  font-size: 14px;
  font-weight: 500;
}

.tp-wallet-export-danger > span {
  font-size: 13px;
  line-height: 1.5;
}

.tp-wallet-export-method-title {
  margin-top: 28px;
  color: #30343a;
  font-size: 20px;
  font-weight: 600;
}

.tp-wallet-export-method-copy {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #959ba3;
  font-size: 14px;
  line-height: 1.55;
}

.tp-wallet-export-password-layer {
  position: absolute;
  inset: 0;
  z-index: 260;
  padding:
    20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    rgba(
      0,
      0,
      0,
      .48
    );
}

.tp-wallet-export-password-card {
  width: 100%;
  max-width: 360px;
  padding:
    20px
    18px
    18px;
  border-radius: 17px;
  background: #ffffff;
  box-shadow:
    0
    18px
    45px
    rgba(
      0,
      0,
      0,
      .16
    );
}

.tp-wallet-export-password-head {
  display: grid;
  grid-template-columns:
    40px
    1fr
    40px;
  align-items: center;
  margin-bottom: 24px;
}

.tp-wallet-export-password-head > strong {
  color: #292d33;
  font-size: 19px;
  font-weight: 600;
  text-align: center;
}

.tp-wallet-export-password-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #30343a;
  font-size: 32px;
  font-weight: 300;
  line-height: 32px;
  cursor: pointer;
}

.tp-wallet-export-password-field {
  height: 58px;
  padding:
    0
    13px;
  display: flex;
  align-items: center;
  border:
    1px solid
    #dadde2;
  border-radius: 13px;
  background: #ffffff;
}

.tp-wallet-export-password-field > input {
  min-width: 0;
  height: 100%;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #30343a;
  font-size: 16px;
}

.tp-wallet-export-password-eye {
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #737982;
}

.tp-wallet-export-password-eye svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.tp-wallet-export-password-card >
.tp-primary-button {
  width: 100%;
  margin-top: 22px;
}

.tp-wallet-export-tabs {
  margin-top: 20px;
  padding: 3px;
  display: grid;
  grid-template-columns:
    1fr
    1fr;
  gap: 3px;
  border-radius: 10px;
  background: #f2f3f5;
}

.tp-wallet-export-tabs > button {
  height: 43px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #636971;
  font-size: 14px;
  font-weight: 500;
}

.tp-wallet-export-tabs >
button.is-active {
  background: #ffffff;
  color: #30343a;
  box-shadow:
    0
    1px
    4px
    rgba(
      0,
      0,
      0,
      .06
    );
}

.tp-wallet-export-tabs >
button:disabled {
  opacity: .5;
}

.tp-wallet-export-secret-head {
  margin-top: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--tp-dark-text, #34383e);
  font-size: 15px;
}

.tp-wallet-export-hidden-box {
  width: 100%;
  min-height: 190px;
  margin-top: 15px;
  padding:
    22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      #f1f2f4,
      #e4e6e9
    );
  color: #707780;
  cursor: pointer;
}

.tp-wallet-export-hidden-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff2f2;
  color: #dc6d68;
  font-size: 30px;
}

.tp-wallet-export-hidden-box >
strong {
  font-size: 14px;
  font-weight: 500;
}

.tp-wallet-export-word-grid {
  margin-top: 15px;
  padding:
    15px;
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );
  gap: 10px;
  border-radius: 13px;
  background: #f5f6f8;
}

.tp-wallet-export-word {
  min-width: 0;
  height: 42px;
  padding:
    0
    11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #ffffff;
}

.tp-wallet-export-word > i {
  color: #a0a6ae;
  font-size: 11px;
  font-style: normal;
}

.tp-wallet-export-word > b {
  min-width: 0;
  overflow: hidden;
  color: #30343a;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-wallet-export-copy {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: #3b82f6;
  font-size: 14px;
  cursor: pointer;
}

.tp-wallet-export-warning-list {
  margin-top: 24px;
  padding:
    14px
    15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 11px;
  background: #fff4f1;
  color: #df756a;
}

.tp-wallet-export-warning-list >
strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.tp-wallet-export-warning-list >
span {
  font-size: 12px;
  line-height: 1.45;
}

/*
 * =========================================================
 * TP MNEMONIC BACKUP PAGE V2
 * only affects wallet mnemonic export page
 * =========================================================
 */

.tp-wallet-export-mnemonic-page {
  background:
    #ffffff;
}

.tp-wallet-export-mnemonic-page
.tp-flow-header {
  flex:
    0 0 auto;

  background:
    #ffffff;
}

.tp-wallet-export-mnemonic-page
.tp-wallet-export-secret-body {
  flex:
    1;

  min-height:
    0;

  overflow-y:
    auto;

  padding:
    8px
    22px
    118px;
}

.tp-wallet-export-mnemonic-page
.tp-wallet-export-secret-body >
h1 {
  margin:
    5px
    0
    8px;

  color:
    #262a30;

  font-size:
    24px;

  line-height:
    1.3;

  font-weight:
    600;
}

.tp-wallet-export-mnemonic-page
.tp-wallet-export-description {
  max-width:
    100%;

  color:
    #969ba3;

  font-size:
    14px;

  line-height:
    1.65;
}

.tp-wallet-export-mnemonic-page
.tp-wallet-export-description >
span {
  color:
    #e56d69;
}

.tp-wallet-export-mnemonic-page
.tp-wallet-export-tabs {
  height:
    48px;

  margin-top:
    20px;

  padding:
    3px;

  gap:
    0;

  border-radius:
    11px;

  background:
    #f1f2f4;
}

.tp-wallet-export-mnemonic-page
.tp-wallet-export-tabs >
button {
  height:
    42px;

  border-radius:
    9px;

  color:
    #3d4147;

  font-size:
    14px;

  font-weight:
    500;
}

.tp-wallet-export-mnemonic-page
.tp-wallet-export-tabs >
button.is-active {
  background:
    #ffffff;

  color:
    #292d33;

  box-shadow:
    0
    1px
    5px
    rgba(
      24,
      31,
      45,
      .08
    );
}

.tp-wallet-export-mnemonic-page
.tp-wallet-export-tabs >
button:disabled {
  opacity:
    1;

  color:
    #3d4147;

  cursor:
    default;
}

.tp-wallet-export-secret-head-v2 {
  min-height:
    34px;

  margin-top:
    25px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;
}

.tp-wallet-export-secret-head-v2 >
span {
  color:
    #33373d;

  font-size:
    15px;

  font-weight:
    400;
}

.tp-wallet-export-top-reveal {
  display:
    inline-flex;

  align-items:
    center;

  gap:
    6px;

  min-height:
    34px;

  padding:
    0;

  border:
    0;

  background:
    transparent;

  color:
    #3c83e8;

  font-size:
    14px;

  cursor:
    pointer;
}

.tp-wallet-export-top-reveal
svg {
  width:
    19px;

  height:
    19px;

  fill:
    none;

  stroke:
    currentColor;

  stroke-width:
    1.7;

  stroke-linecap:
    round;

  stroke-linejoin:
    round;
}

.tp-wallet-export-mnemonic-mask {
  position:
    relative;

  overflow:
    hidden;

  width:
    100%;

  min-height:
    230px;

  margin-top:
    12px;

  padding:
    24px;

  border:
    0;

  border-radius:
    14px;

  background:
    linear-gradient(
      135deg,
      #ededee,
      #dadcde
    );

  color:
    #666b72;

  cursor:
    pointer;
}

.tp-wallet-export-mnemonic-mask::before {
  content:
    "";

  position:
    absolute;

  inset:
    18px;

  border-radius:
    12px;

  opacity:
    .36;

  background:
    repeating-linear-gradient(
      0deg,
      rgba(
        255,
        255,
        255,
        .62
      )
      0,
      rgba(
        255,
        255,
        255,
        .62
      )
      13px,
      rgba(
        199,
        202,
        206,
        .52
      )
      13px,
      rgba(
        199,
        202,
        206,
        .52
      )
      26px
    );

  filter:
    blur(8px);

  transform:
    scale(
      1.05
    );
}

.tp-wallet-export-mnemonic-mask >
* {
  position:
    relative;

  z-index:
    2;
}

.tp-wallet-export-privacy-icon {
  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  width:
    58px;

  height:
    58px;

  margin-bottom:
    12px;

  border-radius:
    50%;

  background:
    #fff2f1;

  color:
    #dc6d68;
}

.tp-wallet-export-privacy-icon
svg {
  width:
    34px;

  height:
    34px;

  fill:
    none;

  stroke:
    currentColor;

  stroke-width:
    2;

  stroke-linecap:
    round;

  stroke-linejoin:
    round;
}

.tp-wallet-export-mnemonic-mask >
strong {
  color:
    #666b72;

  font-size:
    14px;

  line-height:
    1.5;

  font-weight:
    400;
}

.tp-wallet-export-mnemonic-page
.tp-wallet-export-word-grid {
  margin-top:
    12px;

  padding:
    14px;

  border-radius:
    14px;

  background:
    #f4f5f6;
}

.tp-wallet-export-mnemonic-page
.tp-wallet-export-copy {
  display:
    block;

  width:
    auto;

  height:
    38px;

  margin:
    15px
    auto
    0;

  padding:
    0
    12px;

  color:
    #3d83e8;

  font-size:
    14px;

  font-weight:
    400;

  text-align:
    center;
}

.tp-wallet-export-warning-list-v2 {
  margin-top:
    27px;

  padding:
    0;

  gap:
    7px;

  border-radius:
    0;

  background:
    transparent;

  color:
    #df726c;
}

.tp-wallet-export-warning-list-v2 >
strong {
  margin:
    0;

  color:
    #df726c;

  font-size:
    14px;

  font-weight:
    500;
}

.tp-wallet-export-warning-list-v2 >
span {
  color:
    #df726c;

  font-size:
    13px;

  line-height:
    1.5;
}

.tp-wallet-export-mnemonic-page
.tp-flow-bottom-actions {
  position:
    sticky;

  bottom:
    0;

  flex:
    0 0 auto;

  margin:
    0;

  padding:
    14px
    20px
    max(
      20px,
      env(
        safe-area-inset-bottom
      )
    );

  background:
    #ffffff;
}

.tp-wallet-export-mnemonic-page
.tp-flow-bottom-actions
.tp-primary-button {
  height:
    56px;

  border-radius:
    10px;

  font-size:
    16px;
}

.tp-wallet-export-private-warning {
  padding:
    14px
    15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 11px;
  background: #fff0ef;
  color: #e86560;
}

.tp-wallet-export-private-warning >
strong {
  font-size: 15px;
}

.tp-wallet-export-private-warning >
span {
  font-size: 13px;
  line-height: 1.5;
}

.tp-wallet-export-private-network {
  margin-top: 18px;
  padding:
    15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 11px;
  background: #f6f7f8;
}

.tp-wallet-export-private-network >
span {
  color: #8f959d;
  font-size: 13px;
}

.tp-wallet-export-private-network >
strong {
  color: #30343a;
  font-size: 14px;
}

.tp-wallet-export-private-hidden {
  min-height: 180px;
}

.tp-wallet-export-private-value {
  margin-top: 18px;
  padding:
    18px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #30343a;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  user-select: text;
}

.tp-wallet-export-verify-body > p {
  margin:
    2px
    0
    24px;
  color: #8f96a3;
  font-size: 14px;
  line-height: 1.6;
}

.tp-wallet-export-verify-board {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
  border-radius: 16px;
  background: #f5f7fb;
}

.tp-wallet-export-verify-slot {
  min-width: 0;
  min-height: 72px;
  padding:
    12px
    14px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px #edf0f5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.tp-wallet-export-verify-slot > i {
  font-style: normal;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #b4bac5;
}

.tp-wallet-export-verify-slot > span {
  display: block;
  width: 100%;
  min-height: 22px;
  color: #30343a;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-wallet-export-verify-slot.is-filled {
  box-shadow:
    inset 0 0 0 1px #dbe1ea;
}

.tp-wallet-export-verify-slot.is-filled > i {
  color: #8f96a3;
}

.tp-wallet-export-verify-bank {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tp-wallet-export-verify-chip {
  min-width: 0;
  height: 52px;
  padding:
    0
    10px;
  border:
    1px solid #d9dde5;
  border-radius: 10px;
  background: #ffffff;
  color: #353a43;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.tp-wallet-export-verify-chip.is-used,
.tp-wallet-export-verify-chip:disabled {
  border-color: #edf0f5;
  background: #f5f7fb;
  color: #c2c8d1;
  cursor: default;
}

.tp-wallet-export-verify-page
.tp-flow-bottom-actions {
  padding-top: 22px;
}

.tp-wallet-export-verify-row >
input:focus {
  border-color: #2f80ed;
}

.tp-wallet-export-page .is-hidden {
  display: none !important;
}

.tp-wallet-delete-button {
  width: 100%;
  height: 52px;

  margin-top: 12px;

  border:
    1px solid
    #ef5b5b;

  border-radius: 9px;

  background: #ffffff;

  color: #e84f4f;

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
}


.wallet-security-tip {
  padding: 14px 15px;
  color: #9197a1;
  font-size: 11px;
  line-height: 1.6;
}

.delete-wallet-warning {
  margin: 16px 0;
  padding: 15px;
  border-radius: 14px;
  background: #fff4f4;
}

.delete-wallet-warning strong {
  display: block;
  margin-bottom: 6px;
  color: #da4c4c;
  font-size: 13px;
}

.delete-wallet-warning p {
  margin: 0;
  color: #8e6e6e;
  font-size: 12px;
  line-height: 1.6;
}

.danger-button {
  background: #e45151;
}

.sheet-secondary {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border: 0;
  border-radius: 13px;
  background: #f2f4f7;
  color: #4b515b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
@media (min-width: 768px) {
  body {
    padding: 28px 0;
  }

  .wallet-app {
    position: relative;
    width: 430px;
    min-height: calc(100vh - 56px);
    margin: 0 auto;
    overflow: clip;
    border-radius: 30px;
    box-shadow: 0 18px 55px rgba(18, 26, 44, .13);
  }

  .wallet-welcome,
  #mainView {
    min-height: calc(100vh - 56px);
  }

  .bottom-nav,
  .wallet-sheet,
  .wallet-toast {
    left: 50%;
    width: 430px;
    right: auto;
    transform: translateX(-50%);
  }

  .wallet-toast {
    width: auto;
    transform: translate(-50%, 15px);
  }

  .wallet-toast.show {
    transform: translate(-50%, 0);
  }
}
/* =========================================================
   TRON SEND FINAL
   ========================================================= */


/* =========================================================
   TOKEN SELECTOR
   ========================================================= */

.tp-tron-send-token-sheet {
  min-height: 560px;
  padding: 8px 8px 28px;
  background: var(--tp-dark-surface, #ffffff);
  color: var(--tp-dark-text, #30343a);
}

.tp-tron-send-token-sheet.v3 {
  min-height: 610px;
}

.tp-tron-send-token-head {
  height: 54px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
}

.tp-tron-send-token-head strong {
  grid-column: 2;
  font-size: 19px;
  text-align: center;
}

.tp-tron-send-token-head button {
  grid-column: 3;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--tp-dark-text, #30343a);
  font-size: 30px;
  font-weight: 300;
}

.tp-tron-send-token-search {
  height: 52px;
  margin: 10px 0 16px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  background: var(--tp-dark-surface-2, #f5f6f8);
}

.tp-tron-send-token-search span {
  font-size: 27px;
}

.tp-tron-send-token-search svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--tp-dark-text, #30343a);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.tp-tron-send-token-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tp-dark-text, #30343a);
  font-size: 15px;
}

.tp-tron-send-token-row {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid var(--tp-dark-line, #eeeeef);
  background: var(--tp-dark-surface, #fff);
  text-align: left;
}

.tp-tron-send-token-row.v3 {
  min-height: 88px;
  grid-template-columns: 48px 1fr auto;
}

.tp-tron-send-token-icon {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
}

.tp-tron-send-token-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.tp-tron-send-token-copy {
  min-width: 0;
}

.tp-tron-send-token-copy strong,
.tp-tron-send-token-copy small {
  display: block;
}

.tp-tron-send-token-copy strong {
  color: var(--tp-dark-text, #30343a);
  font-size: 17px;
}

.tp-tron-send-token-copy small {
  margin-top: 4px;
  color: var(--tp-dark-muted, #9a9ea5);
  font-size: 12px;
}

.tp-tron-token-market {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.tp-tron-token-market small {
  color: var(--tp-dark-muted, #9ba0a8);
  font-size: 13px;
}

.tp-tron-token-market em {
  font-style: normal;
  font-size: 13px;
}

.tp-tron-token-market em.is-up {
  color: #28ae85;
}

.tp-tron-token-market em.is-down {
  color: #e05462;
}

.tp-tron-send-token-balance {
  min-width: 110px;
  text-align: right;
  font-size: 16px;
}

.tp-tron-send-token-balance strong,
.tp-tron-send-token-balance small {
  display: block;
}

.tp-tron-send-token-balance strong {
  color: var(--tp-dark-text, #3b3f45);
  font-size: 16px;
  font-weight: 500;
}

.tp-tron-send-token-balance small {
  margin-top: 5px;
  color: var(--tp-dark-muted, #9ba0a8);
  font-size: 12px;
}


/* =========================================================
   SEND PAGE
   ========================================================= */

/* WALLET_SEND_TP_HEADER_SPACING_V2 */

.tp-tron-send-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--tp-dark-bg, #f3f4f7);
}

.tp-tron-send-page > .tp-flow-header {
  flex: 0 0 auto;

  height: calc(
    50px + env(safe-area-inset-top)
  );

  min-height: 0;

  padding:
    env(safe-area-inset-top)
    18px
    0;

  box-sizing: border-box;
  background: var(--tp-dark-bg, #f3f4f7);
}

.tp-tron-send-body {
  flex: 1;
  min-width: 0;
  padding: 0 16px 110px;
}

.tp-tron-send-label-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-tron-send-label-row strong {
  color: var(--tp-dark-text, #25282e);
  font-size: 15px;
  font-weight: 500;
}

.tp-tron-send-label-row button,
.tp-tron-send-label-row span {
  border: 0;
  background: transparent;
  color: #3185e9;
  font-size: 14px;
}


/* =========================================================
   ADDRESS
   ========================================================= */

.tp-tron-send-address-card {
  min-height: 70px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  background: var(--tp-dark-surface, #fff);
  box-sizing: border-box;
}

.tp-tron-send-address-card input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tp-dark-text, #22262c);
  font-size: 15px;
}

.tp-tron-send-address-card button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 24px;
}

.tp-tron-send-address-card-v2 {
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--tp-dark-surface, #fff);
}

.tp-tron-send-address-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-tron-send-address-main textarea {
  flex: 1;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 0;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tp-dark-text, #22262c);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.tp-tron-send-address-main textarea::placeholder {
  color: var(--tp-dark-muted, #bdc1c8);
  font-weight: 400;
}

.tp-tron-send-scan {
  width: 38px;
  height: 38px;
  padding: 6px;
  border: 0;
  background: transparent;
}

.tp-tron-send-scan svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #30343a;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-tron-network-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  margin-top: 5px;
  padding: 0 11px;
  border-radius: 13px;
  background: #f2f3f5;
  color: #71767e;
  font-size: 12px;
}

.tp-tron-network-chip[hidden] {
  display: none !important;
}


/* =========================================================
   AMOUNT
   ========================================================= */

.tp-tron-send-amount-label {
  margin-top: 20px;
}

.tp-tron-send-amount-card {
  overflow: hidden;
  border-radius: 16px;
  background: var(--tp-dark-surface, #fff);
}

.tp-tron-send-amount-input {
  position: relative;
  height: 82px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.tp-tron-send-amount-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tp-dark-text, #24272d);
  font-size: 27px;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: -0.4px;
  transform: translateY(-7px);
}

.tp-tron-send-amount-input input::placeholder {
  color: var(--tp-dark-muted, #c5c8cd);
}

.tp-tron-send-amount-input .tp-send-amount-usd {
  position: absolute;
  left: 16px;
  bottom: 9px;
  max-width: calc(100% - 100px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--tp-dark-muted, #969ca5);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.tp-tron-send-amount-input .tp-send-amount-usd[hidden] {
  display: none;
}

.tp-tron-send-amount-input button {
  flex: 0 0 auto;
  min-width: 57px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #90b9e5;
  border-radius: 11px;
   background: var(--tp-dark-surface-2, #fff);
  color: #478bcf;
  font-size: 14px;
  font-weight: 400;
}

.tp-tron-send-token-switch {
  min-width: 70px;
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--tp-dark-text, #676c74);
  font-size: 15px;
}

.tp-tron-send-token-switch i {
  color: var(--tp-dark-muted, #9da2a9);
  font-style: normal;
  font-size: 21px;
}

.tp-tron-send-wallet-balance {
  min-height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--tp-dark-line, #eeeeef);
}

.tp-tron-send-wallet-balance span,
.tp-tron-send-wallet-balance strong {
  color: var(--tp-dark-text, #363a40);
  font-size: 14px;
  font-weight: 400;
}


/* =========================================================
   NETWORK FEE
   ========================================================= */

.tp-tron-send-fee-title {
  margin-top: 26px;
  padding: 0 0 11px;
  font-size: 16px;
}

.tp-tron-send-fee-title strong {
  color: #30343a;
  font-size: 16px;
  font-weight: 500;
}

.tp-tron-send-fee-title.v3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-tron-send-fee-title.v3 strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tp-tron-send-fee-title.v3 button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #b7bbc2;
  border-radius: 50%;
  background: transparent;
  color: #9ba0a8;
  font-size: 12px;
}

.tp-tron-send-fee-group {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: var(--tp-dark-surface, #fff);
}

.tp-tron-send-payment-row,
.tp-tron-send-fee-card {
  min-height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

.tp-tron-send-payment-row {
  width: 100%;
  margin: 0;
  border: 0;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  text-align: left;
}

.tp-tron-send-payment-row + .tp-tron-send-fee-card {
  border-top: 1px solid var(--tp-dark-line, #f0f1f3);
}

.tp-tron-send-payment-row > span,
.tp-tron-send-fee-card > span {
  color: var(--tp-dark-text, #34383e);
  font-size: 15px;
}

.tp-tron-send-payment-row strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-tron-send-payment-row strong b {
  font-size: 15px;
  font-weight: 500;
}

.tp-tron-send-payment-row strong i {
  color: #aeb2b8;
  font-style: normal;
  font-size: 22px;
}

.tp-tron-payment-token {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e91e3a;
  color: #fff;
  font-size: 9px;
}

.tp-tron-payment-token.is-trx {
  background: #e92845;
  color: #fff;
}

.tp-tron-payment-token.is-usdt {
  background: #26a17b;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.tp-tron-send-fee-card strong {
  color: var(--tp-dark-text, #25292f);
  font-size: 15px;
  font-weight: 500;
}

.tp-tron-send-fee-value-v3 {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
  gap: 2px 6px;
  text-align: right;
  white-space: normal;
}

.tp-tron-send-fee-value-v3 small {
  color: var(--tp-dark-muted, #a0a4ab);
  font-size: 13px;
  font-weight: 400;
}

.tp-tron-send-fee-value-v3 b {
  color: var(--tp-dark-text, #25292f);
  font-size: 15px;
  font-weight: 500;
}
.tp-evm-payment-token-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
}

.tp-evm-payment-token-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.tp-evm-payment-option-icon {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
}

.tp-evm-payment-option-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* =========================================================
   ADVANCED
   ========================================================= */

.tp-tron-send-advanced {
  width: 100%;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--tp-dark-muted, #777d85);
  text-align: right;
}

.tp-tron-send-advanced-v2 {
  margin-top: 15px;
}

.tp-tron-send-advanced-v2 summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  list-style: none;
  color: var(--tp-dark-muted, #747981);
  cursor: pointer;
  font-size: 14px;
}

.tp-tron-send-advanced-v2 summary::-webkit-details-marker {
  display: none;
}

.tp-tron-send-advanced-v2 summary i {
  font-style: normal;
  font-size: 20px;
  transition: transform .18s ease;
}

.tp-tron-send-advanced-v2[open] summary i {
  transform: rotate(90deg);
}

.tp-tron-send-advanced-content {
  margin-top: 5px;
  padding: 17px;
  border-radius: 16px;
  background: var(--tp-dark-surface, #fff);
}

.tp-tron-send-advanced-content strong {
  display: block;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
}

.tp-tron-send-advanced-content textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px;
  resize: none;
  border: 0;
  border-radius: 13px;
  outline: 0;
  background: var(--tp-dark-surface-2, #f3f4f7);
  color: var(--tp-dark-text, #30343a);
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
}

.tp-tron-send-advanced-content small {
  display: block;
  margin-top: 9px;
  color: var(--tp-dark-muted, #9ba0a8);
  font-size: 11px;
  line-height: 1.5;
}

/* WALLET_SEND_TP_REVIEW_OVERLAY_V1 */

.tp-wallet-review-overlay {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, .52);
  box-sizing: border-box;
}

.tp-wallet-review-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.tp-wallet-review-modal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 88dvh;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: var(--tp-dark-surface, #fff);
  box-sizing: border-box;
}

.tp-wallet-review-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  height: 52px;
}

.tp-wallet-review-head > strong {
  color: var(--tp-dark-text, #2d3036);
  font-size: 18px;
  font-weight: 600;
}

.tp-wallet-review-head > button {
  position: absolute;
  top: 5px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tp-dark-text, #3d4148);
  font-size: 29px;
  line-height: 1;
  font-weight: 300;
}

.tp-wallet-review-content {
  flex: 0 1 auto;
  min-height: 0;
  padding: 0 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tp-wallet-review-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 8px 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--tp-dark-surface-2, #f3f4f7);
  color: var(--tp-dark-text, #32363d);
  box-sizing: border-box;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  overflow-wrap: anywhere;
}

.tp-wallet-review-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 90px;
  padding: 12px 0;
  box-sizing: border-box;
  border-bottom: 1px solid var(--tp-dark-line, #edf0f2);
}

.tp-wallet-review-row > span,
.tp-wallet-review-fee > span {
  color: var(--tp-dark-muted, #9a9fa7);
  font-size: 13px;
  font-weight: 400;
}

.tp-wallet-review-row > strong {
  display: block;
  margin-top: 10px;
  color: var(--tp-dark-text, #33373d);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  overflow-wrap: anywhere;
  user-select: text;
}

.tp-wallet-review-row > small {
  align-self: flex-start;
  margin-top: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--tp-dark-surface-2, #f1f2f4);
  color: var(--tp-dark-muted, #6c7178);
  font-size: 11px;
  line-height: 16px;
}

.tp-wallet-review-fee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  box-sizing: border-box;
}

.tp-wallet-review-fee > strong {
  color: var(--tp-dark-text, #35393f);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}

.tp-wallet-review-footer {
  flex: 0 0 auto;
  padding:
    12px 20px
    max(18px, env(safe-area-inset-bottom));
  background: var(--tp-dark-surface, #fff);
}

.tp-wallet-review-footer .tp-primary-button {
  width: 100%;
  height: 52px;
  min-height: 52px;
  border-radius: 11px;
  font-size: 16px;
}
/* =========================================================
   REVIEW
   ========================================================= */

.tp-tron-send-review-body {
  flex: 1;
  padding: 18px 16px 118px;
}

.tp-tron-review-amount {
  padding: 25px 18px;
  border-radius: 14px;
  background: var(--tp-dark-surface, #fff);
  text-align: center;
}

.tp-tron-review-amount span,
.tp-tron-review-amount strong {
  display: block;
}

.tp-tron-review-amount strong {
  margin-top: 12px;
  font-size: 24px;
}

.tp-tron-review-card {
  margin-top: 18px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--tp-dark-surface, #fff);
}

.tp-tron-review-card > div {
  min-height: 64px;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--tp-dark-line, #eeeeef);
}

.tp-tron-review-card > div:last-child {
  border-bottom: 0;
}

.tp-tron-review-card span {
  color: #999ea5;
  font-size: 12px;
}

.tp-tron-review-card strong {
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.tp-tron-review-amount-v2 {
  padding: 27px 18px;
  border-radius: 16px;
  background: var(--tp-dark-surface, #fff);
  text-align: center;
}

.tp-tron-review-amount-v2 span {
  display: block;
  color: var(--tp-dark-muted, #838891);
  font-size: 13px;
}

.tp-tron-review-amount-v2 strong {
  display: block;
  margin-top: 9px;
  color: var(--tp-dark-text, #171a1f);
  font-size: 26px;
}

.tp-tron-review-amount-v2 small {
  display: inline-block;
  margin-top: 9px;
  padding: 3px 9px;
  border-radius: 10px;
  background: var(--tp-dark-surface-2, #f1f2f4);
  color: var(--tp-dark-muted, #777c84);
  font-size: 11px;
}

.tp-tron-review-card-v2 {
  margin-top: 14px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--tp-dark-surface, #fff);
}

.tp-tron-review-row {
  min-height: 68px;
  padding: 13px 0;
  border-bottom: 1px solid var(--tp-dark-line, #eceef0);
}

.tp-tron-review-row:last-child {
  border-bottom: 0;
}

.tp-tron-review-row span {
  display: block;
  color: var(--tp-dark-muted, #969ba3);
  font-size: 12px;
}

.tp-tron-review-row strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--tp-dark-text, #22262c);
  font-size: 14px;
  line-height: 1.45;
}

.tp-tron-review-row.horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-tron-review-row.horizontal span,
.tp-tron-review-row.horizontal strong {
  margin: 0;
}


/* =========================================================
   RESULT
   ========================================================= */

.tp-tron-send-result-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--tp-dark-bg, #fff);
}

.tp-tron-result-body {
  flex: 1;
  min-width: 0;
  padding: 36px 16px 110px;
  text-align: center;
}

.tp-tron-result-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf8f2;
  color: #20a76a;
  font-size: 33px;
  font-weight: 600;
}

.tp-tron-send-result-page.is-pending
.tp-tron-result-icon {
  background: #f1f3f6;
  color: #828995;
}

.tp-tron-result-body h2 {
  margin: 16px 0 0;
  color: var(--tp-dark-text, #181b20);
  font-size: 22px;
  font-weight: 600;
}

.tp-tron-result-amount {
  margin-top: 7px;
  color: var(--tp-dark-muted, #979ba3);
  font-size: 14px;
}

.tp-tron-result-card {
  margin-top: 28px;
  padding: 0 15px;
  border-radius: 17px;
  background: var(--tp-dark-surface-2, #f5f6f8);
  text-align: left;
}

.tp-tron-result-card > div {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--tp-dark-line, #e7e9ec);
}

.tp-tron-result-card > div:last-child {
  border-bottom: 0;
}

.tp-tron-result-card span {
  flex: 0 0 auto;
  color: var(--tp-dark-muted, #8c9199);
  font-size: 13px;
}

.tp-tron-result-card strong {
  min-width: 0;
  color: var(--tp-dark-text, #25292f);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.tp-tron-result-card .hash-row {
  padding: 13px 0;
  align-items: flex-start;
}

.tp-tron-result-card .hash-row strong {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.2px;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.tp-tron-result-card .hash-row {
  padding: 13px 0;
  align-items: flex-start;
}

.tp-tron-result-card .hash-row strong {
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.45;
}


/* =========================================================
   PAYMENT SELECTOR
   ========================================================= */

.tp-tron-payment-sheet {
  min-height: 620px;
  padding: 8px 16px 24px;
}

.tp-tron-payment-head {
  height: 58px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
}

.tp-tron-payment-head strong {
  grid-column: 2;
  text-align: center;
  font-size: 20px;
}

.tp-tron-payment-head button {
  grid-column: 3;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--tp-dark-text, #3d4147);
  font-size: 31px;
  font-weight: 300;
}

.tp-tron-payment-columns {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--tp-dark-muted, #989da5);
  font-size: 13px;
}

.tp-tron-payment-option {
  width: 100%;
  min-height: 108px;
  margin-bottom: 12px;
  padding: 15px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: var(--tp-dark-surface, #fff);
  text-align: left;
}

.tp-tron-payment-option:not(.disabled) {
  cursor: pointer;
}

.tp-tron-payment-option.active {
  border-color: #ef6a70;
  background: var(--tp-dark-surface-2, #fff5f5);
}

.tp-tron-payment-option.disabled {
  opacity: .58;
}

.tp-tron-payment-option-icon {
  width: 43px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.tp-tron-payment-option-icon.trx {
  background: #e92845;
}

.tp-tron-payment-option-icon.usdt {
  background: #28a68b;
  font-size: 24px;
}

.tp-tron-payment-option-icon.usdd {
  background: #21876e;
  font-size: 20px;
}

.tp-tron-payment-option-copy strong,
.tp-tron-payment-option-copy small,
.tp-tron-payment-option-copy em {
  display: block;
}

.tp-tron-payment-option-copy strong {
  color: var(--tp-dark-text, #282c32);
  font-size: 17px;
}

.tp-tron-payment-option-copy small {
  margin-top: 5px;
  color: var(--tp-dark-muted, #979ca4);
  font-size: 13px;
}

.tp-tron-payment-option-copy em {
  margin-top: 7px;
  color: #e75d63;
  font-style: normal;
  font-size: 12px;
}

.tp-tron-payment-option-fee {
  min-width: 100px;
  text-align: right;
}

.tp-tron-payment-option-fee strong,
.tp-tron-payment-option-fee small {
  display: block;
}

.tp-tron-payment-option-fee strong {
  color: var(--tp-dark-text, #282c32);
  font-size: 15px;
}

.tp-tron-payment-option-fee small {
  margin-top: 5px;
  color: var(--tp-dark-muted, #999ea6);
  font-size: 12px;
}

.tp-tron-payment-confirm {
  width: calc(100% - 32px);
  position: absolute;
  left: 16px;
  bottom: 18px;
}


/* =========================================================
   FEE INFO
   ========================================================= */

.tp-tron-fee-info-sheet {
  min-height: 420px;
  padding: 8px 16px 24px;
}

.tp-tron-fee-info-card {
  min-height: 58px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tp-dark-line, #eceef1);
  background: var(--tp-dark-surface, #fff);
}

.tp-tron-fee-info-card:first-of-type {
  border-radius: 14px 14px 0 0;
}

.tp-tron-fee-info-card:nth-of-type(3) {
  border-radius: 0 0 14px 14px;
  border-bottom: 0;
}

.tp-tron-fee-info-card span {
  color: var(--tp-dark-muted, #898e96);
  font-size: 13px;
}

.tp-tron-fee-info-card strong {
  font-size: 14px;
}

.tp-tron-fee-info-card small {
  margin-left: auto;
  padding-left: 10px;
  color: var(--tp-dark-muted, #9ca1a9);
}

.tp-tron-fee-info-sheet p {
  margin: 15px 4px 0;
  color: var(--tp-dark-muted, #999ea6);
  font-size: 12px;
  line-height: 1.65;
}


/* =========================================================
   SEND PASSWORD
   ========================================================= */

.tp-tron-send-password-sheet {
  min-height: 345px;
  padding: 8px 20px 24px;
  box-sizing: border-box;
}

.tp-tron-send-password-head {
  height: 64px;
  display: grid;
  grid-template-columns: 88px 1fr 88px;
  align-items: center;
}

.tp-tron-send-password-head strong {
  grid-column: 2;
  text-align: center;
  color: var(--tp-dark-text, #25282d);
  font-size: 20px;
  font-weight: 600;
}

.tp-tron-send-password-close {
  grid-column: 1;
  justify-self: start;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tp-dark-text, #30343a);
  font-size: 33px;
  font-weight: 300;
  line-height: 1;
}

.tp-tron-send-password-biometric {
  grid-column: 3;
  justify-self: end;
  white-space: nowrap;
  color: #3286ed;
  font-size: 16px;
}

.tp-tron-send-password-biometric:empty {
  visibility: hidden;
}

.tp-tron-send-password-body {
  padding-top: 12px;
}

.tp-tron-send-password-field {
  height: 78px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  border: 1px solid var(--tp-dark-line, #d7d9dd);
  border-radius: 16px;
   background: var(--tp-dark-surface-2, #fff);
  box-sizing: border-box;
}

.tp-tron-send-password-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tp-dark-text, #25282d);
  font-family: inherit;
  font-size: 17px;
}

/* WALLET_SEND_RECIPIENT_TP_PANEL_V2 */
.tp-send-recipient-row-address[hidden] {
  display: none !important;
}
/* 覆盖原转账页面的遮罩 */
.tp-send-recipient-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100dvh;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .50);
}

/* 点击遮罩关闭 */
.tp-send-recipient-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

/* TP风格底部面板 */
.tp-send-recipient-modal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 80dvh;
  max-height: 100dvh;
  min-height: 0;
  box-sizing: border-box;
  padding: 0 0 env(safe-area-inset-bottom);
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: var(--tp-dark-surface, #f2f3f7);
  color: var(--tp-dark-text, #2b2e34);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .08);
}

/* 标题：选择钱包 */
.tp-send-recipient-modal-head {
  position: relative;
  height: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-send-recipient-modal-head strong {
  font-size: 17px;
  font-weight: 600;
}

.tp-send-recipient-close {
  position: absolute;
  top: 4px;
  right: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tp-dark-text, #2f333a);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

/* TP三段式分类栏 */
.tp-send-recipient-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 0 0 auto;
  height: 46px;
  margin: 0 16px 0;
  padding: 3px;
  box-sizing: border-box;
  border-radius: 11px;
  background: var(--tp-dark-surface-2, #e9ebf0);
}

.tp-send-recipient-tabs button {
  height: 40px;
  min-width: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--tp-dark-muted, #44484f);
  font-size: 14px;
  font-weight: 600;
}

.tp-send-recipient-tabs button.is-active {
  background: var(--tp-dark-surface, #fff);
  color: var(--tp-dark-text, #292d34);
}

.tp-send-recipient-tabs button.is-active::after {
  display: none;
}

/* 可滚动地址卡片列表 */
.tp-send-recipient-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 19px 16px 20px;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tp-send-recipient-content
[data-send-recipient-panel][hidden] {
  display: none !important;
}

/* 一条地址 = 独立的白色圆角卡片 */
.tp-send-recipient-card {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 72px;
  margin-bottom: 14px;
  padding: 0 12px 0 16px;
  box-sizing: border-box;
  border-radius: 15px;
  background: var(--tp-dark-surface, #fff);
}

.tp-send-recipient-select {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tp-dark-text, #343840);
  text-align: left;
}

/* 真实网络图标 */
.tp-send-recipient-chain-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  overflow: hidden;
  border-radius: 50%;
}

.tp-send-recipient-chain-icon svg,
.tp-send-recipient-chain-icon img {
  width: 32px;
  height: 32px;
}

/* 地址文字区域 */
.tp-send-recipient-row-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.tp-send-recipient-row-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.tp-send-recipient-row-name small {
  padding: 2px 5px;
  border: 1px solid #94b5e6;
  border-radius: 4px;
  color: #598bd2;
  font-size: 10px;
  line-height: 1;
  font-weight: 400;
}

.tp-send-recipient-row-address {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--tp-dark-muted, #858991);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 地址复制按钮 */
.tp-send-recipient-copy {
  display: grid;
  place-items: center;
  width: 35px;
  height: 44px;
  flex: 0 0 35px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tp-dark-muted, #a9adb5);
}

.tp-send-recipient-copy svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 真实无记录时的空状态 */
.tp-send-recipient-empty {
  padding: 48px 16px;
  color: var(--tp-dark-muted, #9da2aa);
  font-size: 13px;
  text-align: center;
}
.tp-tron-send-password-field input::placeholder {
  color: var(--tp-dark-muted, #b5b8bd);
}

.tp-tron-send-password-eye {
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
}

.tp-tron-send-password-eye svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--tp-dark-muted, #969ba3);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-tron-send-password-eye .tp-tron-eye-slash {
  display: none;
}

.tp-tron-send-password-eye.is-visible .tp-tron-eye-slash {
  display: block;
}

.tp-tron-send-password-footer {
  margin-top: 28px;
}

.tp-tron-send-password-footer .tp-primary-button {
  width: 100%;
  height: 56px;
  border-radius: 13px;
  font-size: 17px;
}
/* WALLET_SEND_PASSWORD_OVERLAY_V1 */

.tp-wallet-password-overlay {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, .48);
  box-sizing: border-box;
}

.tp-wallet-password-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.tp-wallet-password-modal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 50dvh;
  min-height: min(390px, calc(100dvh - 8px));
  max-height: calc(100dvh - 8px);
  padding:
    8px 0
    max(20px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 22px 22px 0 0;
  background: var(--tp-dark-surface, #fff);
  color: var(--tp-dark-text, #25282d);
  box-sizing: border-box;
}

.tp-wallet-password-handle {
  flex: 0 0 5px;
  width: 58px;
  height: 5px;
  margin: 7px auto 0;
  border-radius: 10px;
  background: var(--tp-dark-line, #d8dade);
}

.tp-wallet-password-modal
.tp-tron-send-password-sheet {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  padding: 55px 28px 12px;
  box-sizing: border-box;
}

.tp-wallet-password-modal
.tp-tron-send-password-head {
  flex: 0 0 64px;
  height: 64px;
}

.tp-wallet-password-modal
.tp-tron-send-password-body {
  flex: 0 0 auto;
  padding-top: 18px;
}

.tp-wallet-password-modal
.tp-tron-send-password-field {
  height: 78px;
  flex: 0 0 78px;
  border-radius: 17px;
}

.tp-wallet-password-modal
.tp-tron-send-password-footer {
  flex: 0 0 auto;
  margin-top: 32px;
}

.tp-wallet-password-modal
.tp-tron-send-password-footer
.tp-primary-button {
  width: 100%;
  height: 56px;
  border-radius: 13px;
}

/* 键盘导致可视高度变小时，允许弹层内部滚动 */
@media (max-height: 650px) {
  .tp-wallet-password-modal {
    height: calc(100dvh - 8px);
    min-height: 0;
  }

  .tp-wallet-password-modal
  .tp-tron-send-password-sheet {
    padding-top: 12px;
  }

  .tp-wallet-password-modal
  .tp-tron-send-password-body {
    padding-top: 10px;
  }

  .tp-wallet-password-modal
  .tp-tron-send-password-footer {
    margin-top: 18px;
  }
}
/* TOKENPOCKETZ_TP_UI_REFINE_V1_BEGIN
   Onboarding / create / import / network visual refinement
   Business logic intentionally untouched.
========================================================= */

:root {
  --tpz-blue: #2f87f5;
  --tpz-blue-active: #277ce8;
  --tpz-text: #20242a;
  --tpz-text-2: #555b64;
  --tpz-muted: #9ca1aa;
  --tpz-line: #eceef1;
  --tpz-page: #f5f6f8;
  --tpz-field: #ffffff;
  --tpz-soft: #eef0f3;
  --tpz-green: #34b77a;
  --tpz-radius: 16px;
}


/* ------------------------------------------------------
   Global onboarding feel
------------------------------------------------------ */

.tp-password-page,
.tp-create-profile-page,
.tp-created-network-page,
.tp-import-method-page,
.tp-import-form-page {
  color: var(--tp-dark-text, var(--tpz-text));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.tp-create-profile-page,
.tp-created-network-page,
.tp-import-method-page,
.tp-import-form-page {
  background: var(--tp-dark-bg, var(--tpz-page));
}

.tp-password-page {
  background: var(--tp-dark-bg, #fff);
}


/* ------------------------------------------------------
   Unified top spacing / back button
------------------------------------------------------ */

.tp-password-page button,
.tp-create-profile-page button,
.tp-created-network-page button,
.tp-import-method-page button,
.tp-import-form-page button {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}


/* ------------------------------------------------------
   Password page
------------------------------------------------------ */

.tp-password-body {
  padding-left: 24px !important;
  padding-right: 24px !important;
  padding-top: 54px !important;
  padding-bottom: 152px !important;
  box-sizing: border-box;
}

.tp-password-body h1 {
  margin: 0 !important;
  color: var(--tp-dark-text, var(--tpz-text)) !important;
  font-size: 29px !important;
  line-height: 1.24 !important;
  font-weight: 700 !important;
  letter-spacing: -.5px;
}

.tp-password-description {
  max-width: 100%;
  margin-top: 21px !important;
  margin-bottom: 43px !important;
  color: var(--tp-dark-muted, #a0a4ab) !important;
  font-size: 15px !important;
  line-height: 1.72 !important;
  font-weight: 400;
}

.tp-password-label {
  margin-top: 0 !important;
  margin-bottom: 31px !important;
}

.tp-password-label + .tp-password-label {
  margin-top: 28px !important;
}

.tp-password-label > span {
  display: block;
  margin-bottom: 13px !important;
  color: var(--tp-dark-text, #4a4f56) !important;
  font-size: 17px !important;
  line-height: 1.4;
  font-weight: 400 !important;
}

.tp-password-field {
  height: 58px !important;
  padding: 0 4px 0 18px !important;
  display: flex;
  align-items: center;
  border: 1px solid var(--tp-dark-line, #edf0f3) !important;
  border-radius: 14px !important;
  background: var(--tp-dark-surface-2, #fafbfc) !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

.tp-password-field:focus-within {
  border-color: #cbdffb !important;
  background: var(--tp-dark-surface-2, #fff) !important;
}

.tp-password-field input {
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tp-dark-text, var(--tpz-text)) !important;
  font-size: 17px !important;
  letter-spacing: 3px;
}

.tp-password-field input::placeholder {
  color: var(--tp-dark-muted, #b5b9bf) !important;
  letter-spacing: 0;
}

.tp-password-field button,
.tp-password-eye {
  width: 48px !important;
  height: 48px !important;
  padding: 11px !important;
  color: var(--tp-dark-muted, #afb3ba) !important;
}

.tp-password-eye svg {
  width: 23px !important;
  height: 23px !important;
  stroke-width: 1.6 !important;
}


.tp-password-footer {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding:
    12px
    22px
    max(18px, env(safe-area-inset-bottom))
    !important;
  border-top: 0 !important;
  background:
    linear-gradient(
      to bottom,
      var(--tp-dark-bg, rgba(255,255,255,.90)),
      var(--tp-dark-bg, #fff) 20%
    ) !important;
  box-sizing: border-box;
}

.tp-password-footer button {
  min-height: 56px;
  border-radius: 13px !important;
}


/* ------------------------------------------------------
   Wallet type / network chooser
------------------------------------------------------ */

.tp-network-body {
  padding:
    20px
    20px
    max(28px, env(safe-area-inset-bottom))
    !important;
}

.tp-wallet-type-card,
.wallet-create-network-list,
.tp-created-network-list {
  overflow: hidden;
  border: 0 !important;
  border-radius: 17px !important;
  background: var(--tp-dark-surface, #fff) !important;
  box-shadow: 0 1px 3px rgba(28, 35, 45, .025) !important;
}

.tp-wallet-type-row {
  min-height: 76px !important;
  padding: 0 20px !important;
  gap: 15px !important;
  border-bottom: 1px solid var(--tp-dark-line, #eef0f2) !important;
  background: var(--tp-dark-surface, #fff) !important;
  box-sizing: border-box;
}

.tp-wallet-type-row:last-child {
  border-bottom: 0 !important;
}

.tp-wallet-type-row:active {
  background: var(--tp-dark-surface-2, #f8f9fa) !important;
}

.tp-wallet-type-icon {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  border-radius: 50% !important;
  background: var(--tpz-blue) !important;
  box-shadow: none !important;
}

.tp-wallet-type-icon svg {
  width: 27px !important;
  height: 27px !important;
}

.tp-wallet-type-copy strong {
  color: var(--tp-dark-text, #21252b) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.tp-wallet-type-copy small {
  margin-top: 4px !important;
  color: var(--tp-dark-muted, #9ba0a8) !important;
  font-size: 12px !important;
}

.tp-wallet-type-row > b {
  color: var(--tp-dark-muted, #bcc0c6) !important;
  font-size: 25px !important;
  font-weight: 300 !important;
}

.tp-wallet-type-help {
  width: 27px !important;
  height: 27px !important;
  border-color: var(--tp-dark-line, #c8ccd1) !important;
  color: var(--tp-dark-muted, #a2a7ae) !important;
}

.tp-single-network-title {
  margin:
    26px
    4px
    13px
    !important;
  color: var(--tp-dark-text, #555b63) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.tp-network-search {
  height: 56px !important;
  margin-bottom: 13px !important;
  padding: 0 17px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: var(--tp-dark-surface-2, #ebeef2) !important;
  box-shadow: none !important;
}

.tp-network-search svg {
  width: 23px !important;
  height: 23px !important;
  stroke: var(--tp-dark-text, #262b31) !important;
}

.tp-network-search input {
  color: var(--tp-dark-text, #353a42) !important;
  font-size: 15px !important;
}

.tp-network-search input::placeholder {
  color: var(--tp-dark-muted, #9fa4ac) !important;
}

/* ------------------------------------------------------
   Import wallet
------------------------------------------------------ */

.tp-import-form-body {
  padding:
    18px
    20px
    138px
    !important;
  box-sizing: border-box;
}

.tp-import-secret-wrap {
  position: relative;
  margin-top: 16px !important;
}

.tp-import-secret {
  width: 100% !important;
  min-height: 168px !important;
  padding: 20px 20px 48px !important;
  border: 0 !important;
  border-radius: 16px !important;
  outline: 0 !important;
  resize: none !important;
  background: var(--tp-dark-surface, #fff) !important;
  color: var(--tp-dark-text, #282c32) !important;
  font-size: 16px !important;
  line-height: 1.72 !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

.tp-import-secret::placeholder {
  color: var(--tp-dark-muted, #b2b6bc) !important;
}

.tp-import-paste {
  right: 16px !important;
  bottom: 14px !important;
  padding: 6px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #3d91c6 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
}

.tp-import-advanced-row {
  min-height: 54px !important;
  margin: 2px 2px 22px !important;
  padding: 0 !important;
  color: var(--tp-dark-text, #555a62) !important;
  font-size: 15px !important;
}

.tp-import-advanced-row b {
  color: var(--tp-dark-text, #555a62) !important;
  font-weight: 400 !important;
}

.tp-import-name-label {
  margin-top: 0 !important;
}

.tp-import-name-label > span {
  display: block;
  margin:
    0
    0
    13px
    2px
    !important;
  color: var(--tp-dark-text, #343940) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.tp-import-name-label input {
  width: 100% !important;
  height: 62px !important;
  padding: 0 19px !important;
  border: 0 !important;
  border-radius: 16px !important;
  outline: 0 !important;
  background: var(--tp-dark-surface, #fff) !important;
  color: var(--tp-dark-text, #282c32) !important;
  font-size: 16px !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

.tp-import-name-label input::placeholder {
  color: var(--tp-dark-muted, #aeb2b9) !important;
}

.tp-import-form-page .tp-primary-button,
.tp-import-method-page .tp-primary-button {
  min-height: 56px !important;
  border-radius: 13px !important;
  font-size: 17px !important;
}


/* ------------------------------------------------------
   Select networks
------------------------------------------------------ */

.tp-created-network-page {
  background: var(--tp-dark-bg, var(--tpz-page)) !important;
}

.tp-created-network-body {
  padding:
    24px
    20px
    138px
    !important;
  box-sizing: border-box;
}

.tp-created-network-heading {
  margin-bottom: 21px !important;
}

.tp-created-network-heading h1 {
  margin: 0 !important;
  color: var(--tp-dark-text, #22262c) !important;
  font-size: 29px !important;
  line-height: 1.22 !important;
  font-weight: 700 !important;
  letter-spacing: -.45px;
}

.tp-created-network-heading p {
  margin-top: 8px !important;
  color: var(--tp-dark-muted, #9ca1a9) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.tp-created-network-heading button {
  color: #3a8fd0 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

.tp-created-network-list {
  border-radius: 16px !important;
  background: var(--tp-dark-surface, #fff) !important;
}

.tp-hd-network-option {
  min-height: 76px !important;
  padding: 0 18px !important;
  gap: 15px !important;
  border-bottom: 1px solid var(--tp-dark-line, #eef0f2) !important;
  background: var(--tp-dark-surface, #fff) !important;

}

.tp-hd-network-option:last-child {
  border-bottom: 0 !important;
}

.tp-created-chain-icon {
  width: 47px !important;
  height: 47px !important;
  flex: 0 0 47px !important;
}

.tp-created-chain-icon img {
  width: 47px !important;
  height: 47px !important;
  object-fit: contain !important;
}

.tp-hd-network-option strong {
  color: var(--tp-dark-text, #2a2e34) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.tp-hd-network-option > i {
  width: 28px !important;
  height: 28px !important;
  border: 2px solid var(--tp-dark-line, #d0d3d8) !important;
  border-radius: 50% !important;
  background: var(--tp-dark-surface-2, #fff) !important;
  box-sizing: border-box;
}

.tp-hd-network-option.is-selected > i {
  border-color: var(--tpz-blue) !important;
  background: var(--tpz-blue) !important;
  box-shadow:
    inset 0 0 0 7px var(--tpz-blue)
    !important;
}

.tp-created-network-page .tp-primary-button {
  height: 57px !important;
  border-radius: 13px !important;
  background: var(--tpz-blue) !important;
  box-shadow: none !important;
  font-size: 17px !important;
}


/* ------------------------------------------------------
   Generated wallet / success
------------------------------------------------------ */

.wallet-create-success {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.create-success-icon {
  width: 58px !important;
  height: 58px !important;
  box-shadow: none !important;
}

.created-wallet-card {
  margin-top: 24px !important;
  padding: 22px 20px !important;
  border: 0 !important;
  border-radius: 17px !important;
  background: var(--tp-dark-surface, #fff) !important;
  box-shadow: none !important;
}

.created-wallet-card span {
  color: var(--tp-dark-muted, #9ca1a9) !important;
  font-size: 13px !important;
}

.created-wallet-card strong {
  margin-top: 7px !important;
  color: var(--tp-dark-text, #24282e) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}


/* ------------------------------------------------------
   Shared primary button
------------------------------------------------------ */

.tp-password-page .tp-primary-button,
.tp-create-profile-page .tp-primary-button,
.tp-created-network-page .tp-primary-button,
.tp-import-method-page .tp-primary-button,
.tp-import-form-page .tp-primary-button {
  border: 0 !important;
  background: var(--tpz-blue) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.tp-password-page .tp-primary-button:active,
.tp-create-profile-page .tp-primary-button:active,
.tp-created-network-page .tp-primary-button:active,
.tp-import-method-page .tp-primary-button:active,
.tp-import-form-page .tp-primary-button:active {
  background: var(--tpz-blue-active) !important;
  transform: none !important;
}


/* Small phones */
@media (max-width: 360px) {

  .tp-password-body {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .tp-network-body,
  .tp-import-form-body,
  .tp-created-network-body {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .tp-password-body h1,
  .tp-created-network-heading h1 {
    font-size: 27px !important;
  }

}


/* TOKENPOCKETZ_TP_UI_REFINE_V1_END */

/* TOKENPOCKETZ_TP_UI_REFINE_V2_BEGIN
   Assets home / token detail / transaction detail / bottom nav
   Visual refinement only. Business logic untouched.
========================================================= */


/* =====================================================
   TOAST
===================================================== */

.wallet-toast {
  left: 50% !important;
  bottom:
    calc(
      78px +
      env(safe-area-inset-bottom)
    ) !important;

  width: auto !important;
  max-width: 76% !important;

  padding: 10px 14px !important;

  transform:
    translate(-50%, 14px)
    !important;

  border-radius: 10px !important;

  background: rgba(28,31,36,.94) !important;
  color: #fff !important;

  box-shadow:
    0 6px 20px
    rgba(0,0,0,.10)
    !important;

  font-size: 12px !important;
  line-height: 1.45 !important;
}

.wallet-toast.show {
  transform:
    translate(-50%, 0)
    !important;
}


/* =====================================================
   SMALL PHONE SAFETY
===================================================== */

@media (max-width: 380px) {

  .token-detail-summary {
    padding-left: 17px !important;
    padding-right: 17px !important;
  }

}


/* TOKENPOCKETZ_TP_UI_REFINE_V2_END */

/* TOKENPOCKETZ_TP_REFERENCE_MANUAL_BEGIN */


/* 钱包列表弹层 */
.wallet-sheet.is-wallet-switch .wallet-sheet-panel {
  height: 74.3%;
  max-height: 74.3%;
  border-radius: 18px 18px 0 0;
}

.tp-wallet-search:focus-within {
  width: 210px;
  padding: 0 11px;
  background: var(--tp-dark-surface-2, #f5f6f8);
}

.tp-wallet-search:focus-within input {
  position: static;

  width: 157px;
  height: 40px;

  margin-left: 8px;
  opacity: 1;

  color: #4a4f56;
  font-size: 14px;
}


/* 市场价格卡 */
.token-detail-market-values {
  margin-left: auto;
  text-align: right;
}

.token-detail-market-values strong {
  display: block;

  color: #4e535a;
  font-size: 15px;
  font-weight: 400;
}

.token-detail-market-values small {
  display: block;

  margin-top: 4px;

  color: #999ea5;
  font-size: 12px;
}

.token-detail-market-change {
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 5px;

  background: #c5c8cc;
  color: #ffffff;

  font-size: 12px;
  font-weight: 600;
}

.token-detail-market-change.is-up {
  background: #26b68d;
}

.token-detail-market-change.is-down {
  background: #e66b70;
}

.token-detail-market > b {
  margin-left: 0;

  color: #aeb2b7;
  font-size: 22px;
  font-weight: 300;
}



/* 底部：转账 / 收款 / 闪兑 */

.token-detail-bottom-swap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 1px;

  padding:
    3px
    5px;

  border: 1px solid #dedfe2;

  background: var(--tp-dark-surface, #ffffff);

  color: var(--tp-dark-text, #34383e);
}


/* TOKENPOCKETZ_TP_REFERENCE_MANUAL_END */

/* TOKENPOCKETZ_H5_FINAL_REFINE_V3_BEGIN */


/* =========================================================
   1. 创建统一密码
========================================================= */

.tp-password-body {
  padding:
    0
    22px
    126px
    !important;
}

.tp-password-body h1 {
  font-size: 26px !important;
  line-height: 1.25 !important;
  letter-spacing: -.3px !important;
}

.tp-password-description {
  margin-top: 8px !important;
  margin-bottom: 8px !important;

  font-size: 14px !important;
  line-height: 1.65 !important;
}

.tp-password-label {
  margin-bottom: 22px !important;
}

.tp-password-label + .tp-password-label {
  margin-top: 20px !important;
}

.tp-password-label > span {
  margin-bottom: 10px !important;
  font-size: 15px !important;
}

.tp-password-field {
  height: 52px !important;
  padding:
    0
    3px
    0
    16px
    !important;

  border-radius: 13px !important;
}

.tp-password-field input {
  font-size: 15px !important;
}

.tp-password-field button,
.tp-password-eye {
  width: 44px !important;
  height: 44px !important;
  padding: 10px !important;
}

.tp-password-eye svg {
  width: 21px !important;
  height: 21px !important;
}

.tp-password-footer {
  padding:
    10px
    20px
    max(15px, env(safe-area-inset-bottom))
    !important;
}

.tp-unified-agreement {
  margin-bottom: 14px !important;
  font-size: 12px !important;
}

.tp-unified-agreement input {
  width: 18px !important;
  height: 18px !important;
  flex-basis: 18px !important;
}

.tp-password-footer button,
.tp-password-page .tp-primary-button {
  min-height: 52px !important;
  height: 52px !important;
  border-radius: 11px !important;
  font-size: 16px !important;
}


/* =========================================================
   2. 创建 / 导入顶部公共区域
========================================================= */

.tp-flow-header {
  min-height: 66px;
  padding:
    8px
    20px
    0;
}

.tp-flow-header strong {
  font-size: 18px;
  font-weight: 600;
}

.tp-flow-back,
.tp-import-scan {
  width: 36px;
  height: 36px;
}

.tp-flow-back svg,
.tp-import-scan svg {
  width: 24px;
  height: 24px;
}


/* =========================================================
   3. 请选择钱包网络
========================================================= */

.tp-network-body {
  padding:
    0
    18px
    24px
    !important;
}

.tp-wallet-type-card,
.wallet-create-network-list {
  margin-left: 14px;
  margin-right: 14px;

  border-radius: 15px !important;
}

.tp-wallet-type-row {
  min-height: 64px !important;

  padding:
    0
    17px
    !important;

  gap: 12px !important;
}

.tp-wallet-type-icon {
  width: 42px !important;
  height: 42px !important;

  flex:
    0
    0
    42px
    !important;
}

.tp-wallet-type-icon svg {
  width: 24px !important;
  height: 24px !important;
}

.tp-wallet-type-copy strong {
  font-size: 16px !important;
}

.tp-wallet-type-help {
  width: 23px !important;
  height: 23px !important;
}

.tp-wallet-type-row > b {
  font-size: 23px !important;
}

.tp-single-network-title {
  margin:
    17px
    2px
    11px
    !important;

  padding:
    0
    2px
    !important;

  font-size: 15px !important;
}

.tp-network-search {
  height: 50px !important;

  margin-bottom: 11px !important;

  padding:
    0
    15px
    !important;

  border-radius: 13px !important;
}

.tp-network-search svg {
  width: 21px !important;
  height: 21px !important;
}

.tp-network-search input {
  font-size: 14px !important;
}


/* =========================================================
   4. 创建钱包名称页
========================================================= */

.tp-create-profile-body {
  flex: 1;
  display: flex;
  flex-direction: column;

  min-height: 0;

  padding:
    4px
    20px
    18px;
}

.tp-create-profile-body h1 {
  font-size: 25px;
  line-height: 1.25;
}

.tp-create-profile-sub {
  margin:
    6px
    0
    16px;

  font-size: 14px;
}

.tp-profile-label > span {
  margin-bottom: 8px;
  font-size: 15px;
}

.tp-profile-label input {
  height: 54px;

  padding:
    0
    16px;

  border-radius: 13px;
  font-size: 15px;
}
.tp-service-agreement {
  margin-top: auto;
  padding-top: 24px;
}

.tp-create-profile-page .tp-primary-button {
  margin-top: 12px;
}
.tp-profile-footer,
.tp-flow-bottom-actions {
  padding:
    12px
    18px
    max(16px, env(safe-area-inset-bottom));
}

.tp-service-agreement {
  margin-bottom: 11px;
  font-size: 13px;
}

.tp-service-agreement i {
  width: 20px;
  height: 20px;

  margin-right: 8px;
}

.tp-create-profile-page .tp-primary-button,
.tp-created-network-page .tp-primary-button,
.tp-import-method-page .tp-primary-button,
.tp-import-form-page .tp-primary-button,
.tp-generated-page .tp-primary-button {
  height: 52px !important;
  min-height: 52px !important;

  border-radius: 11px !important;

  font-size: 16px !important;
}


/* =========================================================
   5. 导入钱包
========================================================= */

.tp-import-form-body {
  padding:
    4px
    18px
    122px
    !important;
}

.tp-import-secret-wrap {
  margin-top: 4px !important;
}

.tp-import-secret {
  height: 110px !important;
  min-height: 110px !important;

  padding:
    14px
    16px
    38px
    !important;

  border-radius: 14px !important;

  font-size: 15px !important;
  line-height: 1.6 !important;

  overflow-y: auto;
}

.tp-import-paste {
  right: 14px !important;
  bottom: 11px !important;

  font-size: 15px !important;
}

.tp-import-advanced-row {
  min-height: 40px !important;
  height: 40px !important;

  margin:
    0
    2px
    12px
    !important;

  font-size: 14px !important;
}

.tp-import-name-label > span {
  margin:
    0
    0
    10px
    1px
    !important;

  font-size: 15px !important;
}

.tp-import-name-label input,
.tp-import-form-page.is-single-network
.tp-import-name-label input {
  height: 54px !important;

  padding:
    0
    16px
    !important;

  border-radius: 13px !important;

  font-size: 15px !important;
}

.tp-import-form-page.is-single-network
.tp-import-secret {
  min-height: 142px !important;
}

.tp-import-form-page.is-single-network
.tp-import-advanced-row {
  height: 46px !important;
}

.tp-import-mode-tabs {
  height: 50px;

  margin-bottom: 15px;

  padding: 4px;

  border-radius: 12px;
}

.tp-import-mode-tabs button {
  border-radius: 9px;
  font-size: 15px;
}

.tp-import-method-page
.tp-import-method-card {
  min-height: 70px;
}

.tp-import-method-page
.tp-import-method-icon {
  width: 40px;
  height: 40px;

  flex:
    0
    0
    40px;

  margin-right: 12px;
}

.tp-import-method-page
.tp-import-method-card strong {
  font-size: 16px;
}

.tp-import-method-page
.tp-import-method-card small {
  font-size: 12px;
}


/* =========================================================
   6. 选择网络
========================================================= */

.tp-created-network-body {
  padding:
    18px
    18px
    116px
    !important;
}

.tp-created-network-heading {
  margin-bottom: 16px !important;
}

.tp-created-network-heading h1 {
  font-size: 26px !important;
}

.tp-created-network-heading p {
  margin-top: 6px !important;
  font-size: 13px !important;
}

.tp-created-network-heading button {
  font-size: 14px !important;
}

.tp-created-network-list {
  border-radius: 15px !important;
}

.tp-hd-network-option {
  min-height: 66px !important;

  padding:
    0
    16px
    !important;

  gap: 12px !important;
}

.tp-created-chain-icon {
  width: 40px !important;
  height: 40px !important;

  flex:
    0
    0
    40px
    !important;
}

.tp-created-chain-icon img {
  width: 40px !important;
  height: 40px !important;
}

.tp-hd-network-option strong {
  font-size: 15px !important;
}

.tp-hd-network-option > i {
  width: 24px !important;
  height: 24px !important;

  border-width: 1.5px !important;
}


/* =========================================================
   7. 生成钱包
========================================================= */

.tp-generated-page
.tp-flow-header {
  min-height: 66px;
  padding:
    8px
    18px
    0;
}

.tp-generated-page
.tp-generated-body {
  padding:
    12px
    18px
    18px;
}

.tp-generated-page
.tp-generated-body h1 {
  font-size: 26px;
}

.tp-generated-page
.tp-generated-body > p {
  margin-top: 7px;

  font-size: 14px;
}

.tp-generated-page
.tp-generated-card {
  min-height: 138px;

  margin-top: 18px;

  padding:
    20px
    20px;

  gap:
    20px
    18px;

  border-radius: 14px;
}

.tp-generated-page
.tp-generated-chain {
  width: 44px;
  height: 44px;
}

.tp-generated-page
.tp-generated-chain-icon {
  width: 44px;
  height: 44px;
}

.tp-generated-page
.tp-generated-chain > i {
  right: -2px;
  bottom: -2px;

  width: 17px;
  height: 17px;

  font-size: 10px;
}

.tp-generated-page
.tp-flow-bottom-actions {
  padding:
    13px
    18px
    max(16px, env(safe-area-inset-bottom));
}


/* =========================================================
   8. 钱包列表
========================================================= */

.wallet-sheet.is-wallet-switch
.wallet-sheet-panel {
  height: 74%;
  max-height: 74%;
}


/* =========================================================
   9. Token 详情
========================================================= */


.token-detail-bottom-actions button span {
  font-size: 18px;
}

/*
 * WALLET_ASSET_MANAGER_MAINNET_V1
 * 钱包资产 + 号管理页面。
 * 所有规则限定在 #walletAssetManagerRoot 内。
 */

#walletAssetManagerRoot {
  background: var(--tp-dark-bg, #fff);
}

#walletAssetManagerRoot .wam-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px 32px;
}

#walletAssetManagerRoot .wam-search {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 22px;
  box-sizing: border-box;
  outline: none;
  background: var(--tp-dark-surface-2, #f3f4f7);
  color: var(--tp-dark-text, #30343a);
  font-size: 14px;
}

#walletAssetManagerRoot .wam-content {
  padding-top: 12px;
}

#walletAssetManagerRoot .wam-content h3 {
  margin: 18px 0 12px;
  font-size: 15px;
  font-weight: 600;
}

#walletAssetManagerRoot .wam-menu {
  display: flex;
  flex-direction: column;
}

#walletAssetManagerRoot .wam-menu button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 4px;
  border: 0;
  border-bottom: 1px solid var(--tp-dark-line, #f0f1f4);
  background: transparent;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
}

#walletAssetManagerRoot .wam-menu span {
  color: var(--tp-dark-muted, #9ca5b1);
  font-size: 21px;
}

#walletAssetManagerRoot .wam-token-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 8px 0;
  border-bottom: 1px solid var(--tp-dark-line, #f0f1f4);
}

#walletAssetManagerRoot .wam-token-icon {
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  max-width: 38px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--tp-dark-surface-2, #eff2f6);
}

#walletAssetManagerRoot .wam-token-icon img {
  display: block !important;
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  object-fit: contain;
  border-radius: 50%;
}

#walletAssetManagerRoot .wam-token-letter {
  font-size: 16px;
  color: var(--tp-dark-text, #536070);
}

#walletAssetManagerRoot .wam-token-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#walletAssetManagerRoot .wam-token-info strong {
  font-size: 15px;
}

#walletAssetManagerRoot .wam-token-info small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--tp-dark-muted, #9099a7);
  font-size: 11px;
}

#walletAssetManagerRoot .wam-token-control {
  flex: 0 0 auto;
}

#walletAssetManagerRoot .wam-token-control button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border: 1px solid #3186f9;
  border-radius: 50%;
  background: var(--tp-dark-surface, #fff);
  color: #3186f9;
  font-size: 21px;
  cursor: pointer;
}

#walletAssetManagerRoot .wam-status {
  font-size: 11px;
  color: var(--tp-dark-muted, #9ca5b1);
}

#walletAssetManagerRoot .wam-note {
  color: var(--tp-dark-muted, #929bab);
  line-height: 1.6;
  font-size: 12px;
}

#walletAssetManagerRoot .wam-empty {
  padding: 32px 10px;
  text-align: center;
  color: var(--tp-dark-muted, #9ca5b1);
  font-size: 13px;
}

#walletAssetManagerRoot .wam-back {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #3186f9;
  font-size: 13px;
  cursor: pointer;
}

/*
 * WALLET_ASSET_MANAGER_SUBPAGE_LAYOUT_V3
 *
 * 子页面不重复主页面的搜索区和标题。
 * 保留原有资产列表样式。
 */

#walletAssetManagerRoot.wam-subpage .wam-content {
  padding-top: 0;
}

#walletAssetManagerRoot.wam-subpage .wam-token-row {
  min-height: 66px;
}

#walletAssetManagerRoot.wam-subpage .wam-content h3 {
  margin: 12px 0 14px;
}

#walletAssetManagerRoot .wam-create-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--tp-dark-line, #f0f1f4);
  background: var(--tp-dark-surface, #fff);
  color: var(--tp-dark-text, #222);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

#walletAssetManagerRoot .wam-create-entry span:last-child {
  color: var(--tp-dark-muted, #a2a9b4);
  font-size: 22px;
}

/* DISCOVER_TP_PROJECT_LIST_STYLE_V1 */

#dappPage .tp-discover-tp-projects {
  background: var(--tp-dark-surface, #fff);
  border-top: 6px solid var(--tp-dark-bg, #f5f6f8);
  padding: 20px 14px 12px;
}

#dappPage .tp-discover-tp-projects-heading {
  margin-bottom: 10px;
}

#dappPage .tp-discover-tp-projects-heading strong {
  display: block;
  color: var(--tp-dark-text, #232730);
  font-size: 16px;
  font-weight: 600;
}

#dappPage .tp-discover-tp-projects-heading p {
  margin: 7px 0 0;
  color: var(--tp-dark-muted, #a0a6b1);
  font-size: 11px;
  line-height: 1.5;
}

#dappPage .tp-discover-tp-project {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
}

#dappPage .tp-discover-tp-project-icon {
  display: flex;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
}

#dappPage .tp-discover-tp-project-icon.is-transit {
  background: #1452f3;
}

#dappPage .tp-discover-tp-project-icon.is-jupiter {
  background: #102b28;
}

#dappPage .tp-discover-tp-project-icon.is-pumpfun {
  background: #59bc87;
}

#dappPage .tp-discover-tp-project-icon.is-fourmeme {
  background: #191f29;
}

#dappPage .tp-discover-tp-project-icon.is-gmgn {
  background: #74b84b;
}

#dappPage .tp-discover-tp-project-copy {
  display: block;
  flex: 1;
  min-width: 0;
}

#dappPage .tp-discover-tp-project-copy strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--tp-dark-text, #242832);
}

#dappPage .tp-discover-tp-project-copy small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--tp-dark-muted, #a1a7b1);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dappPage .tp-discover-tp-project-copy em {
  flex-shrink: 0;
  padding: 2px 4px;
  border: 1px solid #8cb5f4;
  border-radius: 4px;
  color: #488fe6;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
}

#dappPage .tp-discover-tp-project-copy em.is-recommend {
  border-color: #ebad8d;
  color: #db754a;
}

#dappPage .tp-discover-tp-project:active {
  opacity: 0.72;
}


/* DISCOVER_TP_PROJECT_REAL_ICONS_V1 */

#dappPage .tp-discover-tp-project-icon {
  position: relative;
  overflow: hidden;
}

#dappPage .tp-discover-tp-project-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
  border-radius: inherit;
}

/* ========================================
   DISCOVER_TP_COMMON_TOOLS_STYLE_V1
   TP发现页 - 常用工具
   ======================================== */

#dappPage .tp-discover-common-tools {
  background: var(--tp-dark-surface, #ffffff);
  border-top: 6px solid var(--tp-dark-bg, #f5f6f8);
  padding: 20px 14px 24px;
}

#dappPage .tp-discover-common-tools-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

#dappPage .tp-discover-common-tools-heading > div {
  flex: 1;
  min-width: 0;
}

#dappPage .tp-discover-common-tools-heading strong {
  display: block;
  color: var(--tp-dark-text, #252a32);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

#dappPage .tp-discover-common-tools-heading p {
  margin: 7px 0 0;
  color: var(--tp-dark-muted, #a1a7b1);
  font-size: 11px;
  line-height: 1.6;
}


/* DISCOVER_COMMON_TOOLS_FULL_PAGE_STYLE_V1 */
#dappPage .tp-discover-common-tools-more {
  appearance: none;
  flex-shrink: 0;
  padding: 3px 0 0;
  border: 0;
  background: transparent;
  color: var(--tp-dark-muted, #a1a7b1);
  font-family: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

#dappPage .tp-discover-common-tools-more:focus-visible,
#dappPage .tp-discover-tools-page-back:focus-visible,
#dappPage .tp-discover-tools-page-row button:focus-visible {
  outline: 2px solid #3478f6;
  outline-offset: 3px;
  border-radius: 4px;
}

#dappPage .tp-discover-common-tools-fullpage[hidden] {
  display: none !important;
}

#dappPage .tp-discover-common-tools-fullpage {
  position: fixed;
  z-index: 9999;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 430px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--tp-dark-bg, #fff);
  color: var(--tp-dark-text, #242832);
  overflow: hidden;
}


#dappPage .tp-discover-tools-page-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 18px 15px;
  background: var(--tp-dark-bg, #fff);
}

#dappPage .tp-discover-tools-page-back {
  flex: 0 0 24px;
  border: 0;
  padding: 0;
  margin: -5px 0 0;
  background: transparent;
  color: var(--tp-dark-text, #30343b);
  font: inherit;
  font-size: 34px;
  line-height: 1.2;
  cursor: pointer;
}

#dappPage .tp-discover-tools-page-header > div {
  min-width: 0;
  flex: 1;
}

#dappPage .tp-discover-tools-page-header strong {
  font-size: 18px;
  font-weight: 600;
}

#dappPage .tp-discover-tools-page-header p {
  margin: 8px 0 0;
  color: var(--tp-dark-muted, #a0a5af);
  font-size: 12px;
  line-height: 1.5;
}

#dappPage .tp-discover-tools-page-list {
  flex: 1;
  min-height: 0;
  padding: 0 17px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}


#dappPage .tp-discover-tools-page-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 94px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--tp-dark-line, #f2f3f5);
}

#dappPage .tp-discover-tools-page-row > a {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

#dappPage .tp-discover-tools-page-logo {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--tp-dark-line, #edf0f4);
  border-radius: 14px;
  background: var(--tp-dark-surface-2, #f4f6f9);
  color: #6684be;
  font-size: 23px;
  font-weight: 600;
}

#dappPage .tp-discover-tools-page-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

#dappPage .tp-discover-tools-page-copy {
  flex: 1;
  min-width: 0;
}

#dappPage .tp-discover-tools-page-copy strong {
  display: block;
  overflow: hidden;
  color: var(--tp-dark-text, #242832);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#dappPage .tp-discover-tools-page-copy small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--tp-dark-muted, #a3a9b2);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#dappPage .tp-discover-tools-page-row > button {
  flex: 0 0 32px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--tp-dark-muted, #b2bac6);
  font-size: 29px;
  cursor: pointer;
}

#dappPage .tp-discover-tools-page-row > button.is-active {
  color: #357cf6;
}

#dappPage .tp-discover-tools-page-row.is-unavailable {
  opacity: 0.65;
}

#dappPage .tp-discover-tools-page-status {
  flex-shrink: 0;
  color: var(--tp-dark-muted, #9ba3ae);
  font-size: 11px;
}


#dappPage .tp-discover-common-tools-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(136px, 44%);
  gap: 10px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;

  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#dappPage .tp-discover-common-tools-scroll::-webkit-scrollbar {
  display: none;
}

#dappPage .tp-discover-common-tool-card {
  min-width: 0;
  min-height: 142px;
  padding: 16px 12px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;

  background: var(--tp-dark-surface-2, #f5f6f9);
  border-radius: 12px;
  scroll-snap-align: start;
  box-sizing: border-box;
}

#dappPage .tp-discover-common-tool-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

#dappPage .tp-discover-common-tool-icon.is-rent {
  background: linear-gradient(
    145deg,
    #14c1ef,
    #1764ed
  );
}

#dappPage .tp-discover-common-tool-icon.is-cleaner {
  background: linear-gradient(
    145deg,
    #49c9f0,
    #1671de
  );
}

#dappPage .tp-discover-common-tool-icon.is-rootdata {
  background: linear-gradient(
    145deg,
    #ff9b35,
    #ff661f
  );
}

#dappPage .tp-discover-common-tool-card strong {
  width: 100%;
  color: var(--tp-dark-text, #292e37);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

/* DISCOVER_TP_ROOTDATA_LINK_V1 */

#dappPage a.tp-discover-common-tool-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

#dappPage a.tp-discover-common-tool-card:active {
  opacity: 0.75;
}

/* ==========================================
   DISCOVER_TP_SECURITY_TOOLS_STYLE_V1
   发现页 - 钱包安全工具
   ========================================== */

#dappPage .tp-discover-security-tools {
  padding: 20px 14px 12px;
  background: var(--tp-dark-surface, #ffffff);
  border-top: 6px solid var(--tp-dark-bg, #f5f6f8);
}

#dappPage .tp-discover-security-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

#dappPage .tp-discover-security-heading strong {
  display: block;
  color: var(--tp-dark-text, #252a32);
  font-size: 16px;
  font-weight: 600;
}

#dappPage .tp-discover-security-heading p {
  margin: 7px 0 0;
  color: var(--tp-dark-muted, #a1a7b1);
  font-size: 11px;
  line-height: 1.5;
}

#dappPage .tp-discover-security-more {
  flex-shrink: 0;
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: var(--tp-dark-muted, #a0a6af);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

#dappPage .tp-discover-security-list {
  display: flex;
  flex-direction: column;
}

#dappPage .tp-discover-security-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 82px;
  gap: 13px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--tp-dark-line, #f1f2f5);
  background: var(--tp-dark-surface, #fff);
  text-align: left;
  font-family: inherit;
  box-sizing: border-box;
  color: inherit;
  cursor: pointer;
}

#dappPage .tp-discover-security-item:last-child {
  border-bottom: 0;
}

#dappPage .tp-discover-security-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

#dappPage .tp-discover-security-icon.is-token {
  background: linear-gradient(
    145deg,
    #58c78d,
    #168bba
  );
}

#dappPage .tp-discover-security-icon.is-approval {
  background: linear-gradient(
    145deg,
    #489ff5,
    #4458cc
  );
}

#dappPage .tp-discover-security-icon.is-version {
  background: linear-gradient(
    145deg,
    #ecb768,
    #eb853d
  );
}

#dappPage .tp-discover-security-copy {
  display: block;
  flex: 1;
  min-width: 0;
}

#dappPage .tp-discover-security-copy strong {
  display: block;
  color: var(--tp-dark-text, #272c35);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

#dappPage .tp-discover-security-copy small {
  display: block;
  margin-top: 6px;
  color: var(--tp-dark-muted, #a0a7b1);
  font-size: 12px;
  line-height: 1.5;
}

#dappPage .tp-discover-security-arrow {
  flex-shrink: 0;
  color: var(--tp-dark-muted, #bac0c8);
  font-size: 22px;
  font-weight: 300;
}

#dappPage .tp-discover-security-pending {
  flex-shrink: 0;
  color: var(--tp-dark-muted, #a7adb6);
  font-size: 11px;
}

#dappPage .tp-discover-security-item.is-disabled {
  cursor: default;
}

#dappPage button.tp-discover-security-item:active {
  opacity: 0.72;
}

/* DISCOVER_SECURITY_FULL_LIST_STYLE_V1 */

/* 纵向安全工具列表 */
#tpDiscoverCommonToolsFullPage
.tp-discover-security-full-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 106px;
  padding: 13px 15px;
  box-sizing: border-box;
  border: 0;
  background: var(--tp-dark-bg, #fff);
}

/* DISCOVER_SECURITY_ACTION_WRAP_FIX_V2 */

/* 工具内容独立占据左侧剩余空间 */
#tpDiscoverCommonToolsFullPage
.tp-discover-security-full-row
> .tp-discover-security-full-action-wrap {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  align-items: center;
}

/* 修复主按钮被收藏按钮样式压缩的问题 */
#tpDiscoverCommonToolsFullPage
.tp-discover-security-full-action-wrap
> .tp-discover-security-full-action {
  box-sizing: border-box;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 54px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

/* 文本占据图标右侧区域 */
#tpDiscoverCommonToolsFullPage
.tp-discover-security-full-action-wrap
.tp-discover-tools-page-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 7px;
}

/* 右侧收藏星标固定宽度 */
#tpDiscoverCommonToolsFullPage
.tp-discover-security-full-row
> .tp-discover-security-full-favorite {
  flex: 0 0 36px;
  width: 36px;
  margin-left: auto;
}

/* 左侧工具主区域 */
#tpDiscoverCommonToolsFullPage
.tp-discover-security-full-action {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tp-dark-text, #30343a);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

#tpDiscoverCommonToolsFullPage
.tp-discover-security-full-action.is-disabled {
  cursor: default;
}

/* TP 风格蓝色工具图标 */
#tpDiscoverCommonToolsFullPage
.tp-discover-security-list-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    #3399f4,
    #2478e5
  );
  color: #fff;
}

#tpDiscoverCommonToolsFullPage
.tp-discover-security-list-logo svg {
  display: block;
  width: 33px;
  height: 33px;
  flex: none;
}

/* 工具名称与说明 */
#tpDiscoverCommonToolsFullPage
.tp-discover-security-full-action
.tp-discover-tools-page-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 7px;
}

#tpDiscoverCommonToolsFullPage
.tp-discover-security-full-action strong {
  display: block;
  color: var(--tp-dark-text, #30343a);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

#tpDiscoverCommonToolsFullPage
.tp-discover-security-full-action small {
  display: block;
  overflow: hidden;
  color: var(--tp-dark-muted, #9fa5ad);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 收藏星标 */
#tpDiscoverCommonToolsFullPage
.tp-discover-security-full-favorite {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tp-dark-muted, #a3a8b0);
  font-size: 29px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
}

#tpDiscoverCommonToolsFullPage
.tp-discover-security-full-favorite.is-active {
  color: #f3b944;
}

/* 底部提示 */
#tpDiscoverCommonToolsFullPage
.tp-discover-security-list-end {
  display: block;
  padding: 33px 15px 42px;
  color: var(--tp-dark-muted, #b4b6bd);
  font-size: 14px;
  text-align: center;
}

/* 点击反馈 */
#tpDiscoverCommonToolsFullPage
button.tp-discover-security-full-action:active {
  opacity: .72;
}

/* ===================================
   DISCOVER_TP_EXPLORE_STYLE_V1
   发现页 - 探索分类
   =================================== */

#dappPage .tp-discover-explore {
  padding: 14px 0 24px;
  background: var(--tp-dark-surface, #fff);
}

#dappPage .tp-discover-explore-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 14px 16px;
}

#dappPage .tp-discover-explore-heading strong {
  color: var(--tp-dark-text, #252a32);
  font-size: 17px;
  font-weight: 600;
}

#dappPage #tpDiscoverExploreNetwork {
  max-width: 145px;
  padding: 8px 10px;
  border: 1px solid var(--tp-dark-line, #eef0f4);
  border-radius: 8px;
  background: var(--tp-dark-surface-2, #f7f8fa);
  color: var(--tp-dark-muted, #5d6570);
  font-family: inherit;
  font-size: 12px;
}

#dappPage .tp-discover-explore-categories {
  display: flex;
  gap: 22px;
  padding: 0 14px;
  border-bottom: 1px solid var(--tp-dark-line, #f0f1f4);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#dappPage .tp-discover-explore-categories::-webkit-scrollbar {
  display: none;
}

#dappPage .tp-discover-explore-categories button {
  position: relative;
  flex-shrink: 0;
  padding: 12px 0 15px;
  border: 0;
  background: transparent;
  color: var(--tp-dark-muted, #979ea9);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

#dappPage .tp-discover-explore-categories button.is-active {
  color: #327af0;
  font-weight: 600;
}

#dappPage .tp-discover-explore-categories button.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: #327af0;
}

#dappPage .tp-discover-explore-list {
  padding: 6px 14px 16px;
}

#dappPage .tp-discover-explore-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 90px;
  padding: 12px 0;
  border-bottom: 1px solid var(--tp-dark-line, #f2f3f5);
}

#dappPage .tp-discover-explore-item:last-child {
  border-bottom: 0;
}

#dappPage .tp-discover-explore-link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}


/* DISCOVER_DAPP_ICON_SIZE_FIX_V3 */


/* DISCOVER_ICON_NATURAL_SIZE_FIX_V4 */

#dappPage .tp-discover-explore-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 12px;
  background: var(--tp-dark-surface-2, #f5f7fa);
  color: #6a85b8;
  font-size: 19px;
  font-weight: 600;
}

#dappPage .tp-discover-explore-icon img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  flex-shrink: 0;
  object-fit: contain;
}


#dappPage .tp-discover-explore-copy {
  flex: 1;
  min-width: 0;
}

#dappPage .tp-discover-explore-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

#dappPage .tp-discover-explore-name strong {
  color: var(--tp-dark-text, #292e38);
  font-size: 14px;
  font-weight: 500;
}

#dappPage .tp-discover-explore-tag {
  padding: 2px 5px;
  border: 1px solid #dce9fd;
  border-radius: 4px;
  color: #5390ec;
  font-size: 10px;
}

#dappPage .tp-discover-explore-desc {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: var(--tp-dark-muted, #a1a7b1);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dappPage .tp-discover-explore-network-label {
  display: block;
  margin-top: 5px;
  color: #b0b5be;
  font-size: 10px;
}

#dappPage .tp-discover-explore-star {
  flex-shrink: 0;
  width: 34px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tp-dark-muted, #b9bfc8);
  font-size: 25px;
  cursor: pointer;
}

#dappPage .tp-discover-explore-star.is-active {
  color: #f0ae3e;
}

#dappPage .tp-discover-explore-empty {
  padding: 65px 12px;
  color: var(--tp-dark-muted, #a5abb4);
  font-size: 13px;
  text-align: center;
}


/* ==========================================
   DISCOVER_TP_MINE_STYLE_V1
   发现页 - 我的
   ========================================== */

#dappPage .tp-discover-mine {
  background: var(--tp-dark-surface, #ffffff);
  padding-bottom: 28px;
}

#dappPage .tp-discover-mine-section {
  padding: 20px 14px;
  background: var(--tp-dark-surface, #ffffff);
}

#dappPage .tp-discover-mine-section + .tp-discover-mine-section {
  border-top: 7px solid var(--tp-dark-bg, #f5f6f8);
}

#dappPage .tp-discover-mine-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

#dappPage .tp-discover-mine-heading strong {
  color: var(--tp-dark-text, #292e37);
  font-size: 16px;
  font-weight: 600;
}

#dappPage .tp-discover-mine-more {
  border: 0;
  padding: 4px 0;
  color: var(--tp-dark-muted, #9ba2ad);
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

#dappPage .tp-discover-mine-more[hidden] {
  display: none;
}

#dappPage .tp-discover-mine-network {
  max-width: 140px;
  padding: 8px 10px;
  border: 1px solid var(--tp-dark-line, #eceff3);
  border-radius: 8px;
  background: var(--tp-dark-surface-2, #f7f8fa);
  color: var(--tp-dark-muted, #59616e);
  font-family: inherit;
  font-size: 12px;
}

#dappPage .tp-discover-mine-recent-list {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#dappPage .tp-discover-mine-recent-list::-webkit-scrollbar {
  display: none;
}

#dappPage .tp-discover-mine-recent-list.is-expanded {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 10px;
  overflow: visible;
}

#dappPage .tp-discover-mine-recent-app {
  display: flex;
  flex: 0 0 68px;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

#dappPage .tp-discover-mine-recent-list.is-expanded
.tp-discover-mine-recent-app {
  flex-basis: auto;
}

#dappPage .tp-discover-mine-recent-app .tp-discover-explore-icon {
  flex: 0 0 52px;
}

#dappPage .tp-discover-mine-recent-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--tp-dark-text, #333843);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dappPage .tp-discover-mine-empty {
  width: 100%;
  padding: 32px 8px;
  margin: 0;
  color: var(--tp-dark-muted, #a4abb5);
  font-size: 12px;
  text-align: center;
}

#dappPage .tp-discover-mine-favorites {
  padding: 0;
}

#dappPage .tp-discover-mine-favorites
.tp-discover-explore-item {
  min-height: 82px;
}

#dappPage .tp-discover-mine-recent-app:active,
#dappPage .tp-discover-mine-favorites
.tp-discover-explore-link:active {
  opacity: 0.75;
}

/* DISCOVER_TP_EXPLORE_LAYOUT_FIX_V2 */

/* 移除探索页多余的顶部空间 */
#dappPage .tp-discover-explore {
  padding-top: 0;
}

/* 分类导航直接跟在热门/探索/我的下方 */
#dappPage .tp-discover-explore-categories {
  padding: 0 14px;
  gap: 24px;
  border-bottom: 1px solid var(--tp-dark-line, #f1f2f4);
}

#dappPage .tp-discover-explore-categories button {
  padding: 15px 0 16px;
  font-size: 15px;
}

/* TP风格的分类选中状态 */
#dappPage .tp-discover-explore-categories button.is-active {
  color: var(--tp-dark-text, #292d35);
  font-weight: 600;
}

#dappPage .tp-discover-explore-categories button.is-active::after {
  background: var(--tp-dark-text, #343940);
}

/* 网络筛选独占下一行，靠右显示 */
#dappPage .tp-discover-explore-filter-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 14px 14px 10px;
}

/* 网络按钮外观 */
#dappPage .tp-discover-explore-filter-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  background: var(--tp-dark-surface-2, #f6f7f9);
  border-radius: 7px;
  color: var(--tp-dark-muted, #505662);
}

#dappPage #tpDiscoverExploreNetwork {
  border: 0;
  outline: none;
  background: transparent;
  max-width: none;
  padding: 9px 2px;
  color: var(--tp-dark-muted, #505662);
  font-size: 12px;
}

/* 更接近TP的应用列表间距 */
#dappPage .tp-discover-explore-list {
  padding-top: 0;
}

#dappPage .tp-discover-explore-item {
  min-height: 94px;
  padding: 13px 0;
}

/* TP截图的列表不单独显示网络说明行 */
#dappPage .tp-discover-explore-network-label {
  display: none;
}

#dappPage .tp-discover-explore-name strong {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

#dappPage .tp-discover-explore-desc {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}

/* DAPP_ICON_REGISTRY_STYLE_V1 */

#dappPage .tp-auto-dapp-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}


/* DISCOVER_AUTO_ICON_NO_UPSCALE_V4 */

#dappPage .tp-auto-dapp-logo > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: inherit;
}

/* DISCOVER_ECOSYSTEM_SHARED_GRID_V2 */

/* Solana 与 BNB 专区容器 */
.tp-discover-ecosystem-v2 {
  position: relative;
  padding: 0 0 18px;
  background: var(--tp-dark-surface, #fff);
}

/* 标题区域 */
.tp-discover-ecosystem-v2
.tp-discover-tp-projects-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 15px 14px;
}

.tp-discover-ecosystem-v2
.tp-discover-tp-projects-heading > div {
  flex: 1;
  min-width: 0;
}

.tp-discover-ecosystem-v2
.tp-discover-tp-projects-heading strong {
  display: block;
  color: #30343a;
  font-size: 18px;
  font-weight: 600;
}

.tp-discover-ecosystem-v2
.tp-discover-tp-projects-heading p {
  margin: 7px 0 0;
  color: #a0a5ad;
  font-size: 12px;
  line-height: 1.5;
}

/* 更多按钮 */
.tp-discover-ecosystem-v2
.tp-discover-ecosystem-more {
  flex-shrink: 0;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tp-dark-muted, #9da3ac);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.tp-discover-ecosystem-v2
.tp-discover-ecosystem-more:focus-visible {
  outline: 2px solid #3478f6;
  outline-offset: 4px;
}

/* 三行一列，横向滑动 */
.tp-discover-ecosystem-v2
.tp-discover-tp-projects-list {
  box-sizing: border-box;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, 82px);
  grid-auto-columns: calc(100% - 46px);
  column-gap: 12px;
  row-gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 15px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tp-discover-ecosystem-v2
.tp-discover-tp-projects-list::-webkit-scrollbar {
  display: none;
}

/* 每个项目行 */
.tp-discover-ecosystem-v2
.tp-discover-tp-project {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 82px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #30343a;
  text-decoration: none;
  scroll-snap-align: start;
}

/* 图标 */
.tp-discover-ecosystem-v2
.tp-discover-tp-project-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #eef0f4;
  border-radius: 13px;
  background: #edf4ff;
  color: #287dff;
  font-size: 18px;
  font-weight: 700;
}

/* 已有真实 Logo 继续显示 */
.tp-discover-ecosystem-v2
.tp-discover-tp-project-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 文本 */
.tp-discover-ecosystem-v2
.tp-discover-tp-project-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.tp-discover-ecosystem-v2
.tp-discover-tp-project-copy strong {
  display: block;
  overflow: hidden;
  color: #30343a;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tp-discover-ecosystem-v2
.tp-discover-tp-project-copy small {
  display: block;
  overflow: hidden;
  color: #a0a5ad;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 点击反馈 */
.tp-discover-ecosystem-v2
.tp-discover-tp-project:active {
  opacity: .72;
}

/* DISCOVER_HOT_PROMO_BANNER_STYLE_V3 */

/* 双列 Banner 容器 */
#dappPage .tp-discover-promo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 12px 18px;
  background: var(--tp-dark-surface, #fff);
}

/* Banner 基础样式 */
#dappPage .tp-discover-promo-card-v3 {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 102px;
  aspect-ratio: 1.85 / 1;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  text-align: left;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 4px 13px rgba(16, 30, 54, .10);
}

/* 第一个 Banner：深红色生态主题 */
#dappPage .tp-discover-promo-card-v3.is-ecosystem {
  background: linear-gradient(
    125deg,
    #31152b 0%,
    #8c1c3c 52%,
    #f35938 100%
  );
}

/* 第二个 Banner：深蓝绿色探索主题 */
#dappPage .tp-discover-promo-card-v3.is-new {
  background: linear-gradient(
    125deg,
    #081f39 0%,
    #11516b 52%,
    #17a99c 100%
  );
}

/* 背景柔光 */
#dappPage .tp-discover-promo-card-v3::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 130px;
  height: 130px;
  right: -35px;
  top: -38px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,255,255,.30),
    rgba(255,255,255,0) 70%
  );
  pointer-events: none;
}

/* 细腻内边框 */
#dappPage .tp-discover-promo-card-v3::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  pointer-events: none;
}

/* 文案区域 */
#dappPage .tp-discover-promo-card-v3
.tp-promo-copy {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 76%;
  min-width: 0;
  gap: 7px;
  pointer-events: none;
}

/* 顶部标签 */
#dappPage .tp-discover-promo-card-v3
.tp-promo-kicker {
  display: block;
  color: rgba(255,255,255,.84);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .3px;
  line-height: 1.3;
}

/* 主标题 */
#dappPage .tp-discover-promo-card-v3
.tp-promo-title {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  text-shadow: 0 2px 5px rgba(0,0,0,.15);
}

/* 副标题 */
#dappPage .tp-discover-promo-card-v3
.tp-promo-subtitle {
  display: block;
  margin: 0;
  max-width: 100%;
  color: rgba(255,255,255,.86);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

/* SVG 品牌插画 */
#dappPage .tp-discover-promo-card-v3
.tp-promo-art {
  position: absolute;
  z-index: 1;
  right: -20px;
  bottom: -13px;
  display: block;
  width: 124px;
  height: auto;
  opacity: .97;
  pointer-events: none;
}

/* 按下反馈 */
#dappPage .tp-discover-promo-card-v3:active {
  transform: scale(.98);
  opacity: .95;
}

/* 键盘焦点 */
#dappPage .tp-discover-promo-card-v3:focus-visible {
  outline: 2px solid #4288ff;
  outline-offset: 3px;
}

/* 较窄手机适配 */
@media (max-width: 350px) {
  #dappPage .tp-discover-promo-row {
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  #dappPage .tp-discover-promo-card-v3 {
    min-height: 94px;
    border-radius: 11px;
  }

  #dappPage .tp-discover-promo-card-v3
  .tp-promo-copy {
    left: 10px;
    top: 11px;
    gap: 6px;
  }

  #dappPage .tp-discover-promo-card-v3
  .tp-promo-title {
    font-size: 14px;
  }

  #dappPage .tp-discover-promo-card-v3
  .tp-promo-subtitle {
    font-size: 9px;
  }

  #dappPage .tp-discover-promo-card-v3
  .tp-promo-art {
    width: 105px;
  }
}

/* =================================================
   WALLET_LIMIT_TRADE_STYLE_V1
   交易 - 限价模式
   ================================================= */

#tradePage > .tp-limit-root {
  display: none;
}

#tradePage.tp-limit-mode > :not(.tp-limit-root) {
  display: none !important;
}

#tradePage.tp-limit-mode > .tp-limit-root {
  display: block !important;
}

.tp-limit-root {
  box-sizing: border-box;
  min-height: 100%;
  padding: 12px 10px 25px;
  background: var(--tp-dark-bg, #f3f4f8);
  color: var(--tp-dark-text, #252b35);
}

.tp-limit-root * {
  box-sizing: border-box;
}

.tp-limit-top {
  min-height: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.tp-limit-top strong {
  font-size: 16px;
  white-space: nowrap;
}

.tp-limit-top button {
  border: 0;
  background: none;
  padding: 8px 3px;
  color: var(--tp-dark-muted, #636b78);
  font-size: 12px;
  white-space: nowrap;
}

.tp-limit-top button:last-child {
  background: var(--tp-dark-surface, #fff);
  border-radius: 25px;
  padding: 9px 11px;
}

.tp-limit-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 44fr)
    minmax(0, 56fr);
  gap: 9px;
  align-items: stretch;
}

.tp-limit-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tp-limit-card {
  min-width: 0;
  background: var(--tp-dark-surface, #fff);
  border-radius: 16px;
  padding: 13px 10px;
  box-sizing: border-box;
}

.tp-limit-token-trigger {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  min-height: 45px;
  color: var(--tp-dark-text, #272c35);
}

.tp-limit-token-trigger strong {
  font-size: 17px;
}

.tp-limit-token-trigger > span:last-child {
  font-size: 10px;
  color: var(--tp-dark-muted, #505866);
}

.tp-limit-coin-icon,
.tp-limit-token-symbol {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  background: var(--tp-dark-surface-2, #e9ebef);
  color: var(--tp-dark-text, #303741);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.tp-limit-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 13px 6px;
  margin-top: 14px;
}

.tp-limit-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tp-limit-stats small {
  font-size: 11px;
  line-height: 1.4;
   color: var(--tp-dark-muted, #989fa9);
}

.tp-limit-stats strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.4;
  color: var(--tp-dark-text, #414956);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}


.tp-limit-market {
  min-height: 355px;
  display: flex;
  flex-direction: column;
}

.tp-limit-price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 5px;
  row-gap: 2px;
}

.tp-limit-market-price {
  min-width: 0;
  font-size: 21px;
  line-height: 1.2;
  color: #18a47f;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.tp-limit-price-line
[data-limit-market-change] {
  color: #18a47f;
  font-size: 10px;
  line-height: 1.4;
}

.tp-limit-market > small {
  margin-top: 5px;
  color: var(--tp-dark-muted, #979fac);
  font-size: 10px;
  line-height: 1.35;
}

.tp-limit-book-header {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-top: 15px;
  margin-bottom: 6px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--tp-dark-muted, #9ea5b1);
}

.tp-limit-book-header span:last-child {
  text-align: right;
}

/* 参考盘口专用行，不能继承表头外边距 */
[data-limit-reference-book] {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tp-limit-book-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 28px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.tp-limit-book-row span:first-child {
  min-width: 0;
  flex: 1;
}

.tp-limit-book-row span:last-child {
  min-width: 0;
  flex: 0 1 40%;
  text-align: right;
}

.tp-limit-book-row.is-sell {
  color: #d96472;
}

.tp-limit-book-row.is-buy {
  color: #17a47e;
}

.tp-limit-depth {
  margin-top: 11px;
  margin-bottom: 7px;
}

.tp-limit-depth-labels {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tp-limit-depth-labels .is-buy {
  color: #17a47e;
}

.tp-limit-depth-labels .is-sell {
  color: #d96472;
}

.tp-limit-depth-bar {
  display: flex;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--tp-dark-line, #edf0f3);
}

.tp-limit-depth-bar i {
  display: block;
  height: 100%;
}

.tp-limit-depth-bar i.is-buy {
  background: #17a47e;
}

.tp-limit-depth-bar i.is-sell {
  background: #d96472;
}

.tp-limit-market
[data-limit-reference-source] {
  margin-top: 8px;
  color: var(--tp-dark-muted, #9ca5b1);
  font-size: 9px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}


.tp-limit-book-empty {
  flex: 1;
  min-height: 165px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--tp-dark-muted, #b3bac5);
  font-size: 11px;
}

.tp-limit-period {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding: 10px;
  border: 0;
  background: var(--tp-dark-surface-2, #f2f3f7);
  border-radius: 9px;
  color: var(--tp-dark-text, #525b68);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.tp-limit-period-dialog {
  position: fixed;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  width: min(100%, 550px);
  max-width: none;
  margin: 0 auto;
  padding: 23px 16px
    calc(26px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 18px 18px 0 0;
  background: var(--tp-dark-surface, #fff);
  color: var(--tp-dark-text, #29313a);
}

.tp-limit-period-dialog::backdrop {
  background: rgba(0, 0, 0, .52);
}

.tp-limit-period-dialog-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
}

.tp-limit-period-dialog-head strong {
  font-size: 18px;
  font-weight: 500;
}

.tp-limit-period-dialog-head button {
  position: absolute;
  right: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--tp-dark-text, #3f4650);
  font-size: 28px;
  cursor: pointer;
}

.tp-limit-period-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.tp-limit-period-options button {
  min-width: 0;
  height: 65px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--tp-dark-surface-2, #f2f3f7);
  color: var(--tp-dark-text, #333b46);
  font-size: 17px;
  cursor: pointer;
}

.tp-limit-period-options button.is-active {
  border-color: #3489f7;
  background: var(--tp-dark-surface-2, #eaf3ff);
  color: #3187dc;
}

.tp-limit-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.tp-limit-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 2px;
  background: var(--tp-dark-surface-2, #f1f2f6);
  border-radius: 9px;
}

.tp-limit-side button {
  border: 0;
  background: transparent;
  padding: 10px 0;
  color: var(--tp-dark-muted, #59616e);
  font-size: 13px;
  border-radius: 7px;
}

.tp-limit-side button.is-active {
  background: #17a77c;
  color: #fff;
}

.tp-limit-is-sell .tp-limit-side button.is-active {
  background: #e06b73;
}

.tp-limit-order-type {
  text-align: center;
  background: var(--tp-dark-surface-2, #f2f3f7);
  border-radius: 9px;
  padding: 11px 0;
  color: var(--tp-dark-muted, #626b78);
  font-size: 12px;
}

.tp-limit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 8px;
  background: var(--tp-dark-surface-2, #f2f3f7);
  border-radius: 10px;
  min-width: 0;
  box-sizing: border-box;
}

.tp-limit-field > span {
  color: var(--tp-dark-muted, #969eab);
  font-size: 11px;
}


.tp-limit-field input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 8px 0;
  outline: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  text-align: center;
  color: var(--tp-dark-text, #29313d);
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
}

/* 价格与数量的左右加减控件 */

.tp-limit-stepper {
  display: grid;
  grid-template-columns:
    30px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
}


.tp-limit-stepper input {
  min-width: 0;
  height: 38px;
  padding: 5px 0;
  appearance: textfield;
  -moz-appearance: textfield;
}

.tp-limit-stepper input::-webkit-inner-spin-button,
.tp-limit-stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tp-limit-stepper button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--tp-dark-muted, #89919e);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.tp-limit-stepper button:active {
  background: var(--tp-dark-line, #e2e7ef);
}

.tp-limit-stepper button:focus-visible {
  outline: 2px solid #3187f7;
  outline-offset: 1px;
}


/* V13 原生比例滑块与五档节点 */
.tp-limit-ratio-control {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 2px 0 0;
  box-sizing: border-box;
}

/* 原生滑块仍然负责连续拖动 */
.tp-limit-range {
  display: block;
  width: 100%;
  height: 20px;
  margin: 7px 0 0;
  padding: 0;
  accent-color: #3187f7;
  cursor: pointer;
}

.tp-limit-range:disabled {
  cursor: not-allowed;
}

/* 五档节点沿滑轨横向对齐 */
.tp-limit-ratio-steps {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  height: 24px;
  margin-top: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 点击区域位于滑轨下面，避免阻挡拖动 */
.tp-limit-ratio-steps button {
  position: relative;
  display: block;
  width: 18px;
  height: 24px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  overflow: visible;
}

/* 圆点视觉位置与原生滑轨对齐 */
.tp-limit-ratio-steps button::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--tp-dark-muted, #d5dae3);
  pointer-events: none;
}

/* 下面的百分比标签负责快捷点击 */
.tp-limit-ratio-steps button::after {
  content: attr(title);
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--tp-dark-muted, #98a1af);
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
}

/* 选中的比例节点 */
.tp-limit-ratio-steps button.is-active::before {
  background: #3187f7;
  box-shadow: 0 0 0 2px rgba(49, 135, 247, 0.14);
}

.tp-limit-ratio-steps button.is-active::after {
  color: #3187f7;
}

.tp-limit-ratio-steps button:focus-visible {
  outline: 2px solid #3187f7;
  outline-offset: 1px;
  border-radius: 5px;
}

.tp-limit-ratio-steps button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


.tp-limit-summary {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  font-size: 11px;
  color: var(--tp-dark-muted, #989fac);
}


.tp-limit-summary strong {
  color: var(--tp-dark-text, #59616e);
  font-weight: 500;
  min-width: 0;
  max-width: 65%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: right;
}

.tp-limit-summary select {
  max-width: 85px;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tp-dark-text, #59616e);
  font-size: 11px;
  text-align: right;
}


.tp-limit-wallet-button {
  margin-top: 10px;
  padding: 12px 0;
  border: 0;
  border-radius: 9px;
  background: #3287f7;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.tp-limit-notice {
  font-size: 10px;
  color: var(--tp-dark-muted, #979fac);
  line-height: 1.5;
  margin: 0;
}


/* V14 限价订单区域 */
.tp-limit-orders {
  width: 100%;
  min-width: 0;
  margin-top: 17px;
  box-sizing: border-box;
}

/* 当前订单 / 历史订单 / 当前持仓 */
.tp-limit-order-tabs {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.tp-limit-order-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 11px 2px 15px;
  border: 0;
  background: transparent;
  color: var(--tp-dark-muted, #9ca3ae);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}

.tp-limit-order-tabs button.is-active {
   color: var(--tp-dark-text, #292f38);
}

.tp-limit-order-tabs button.is-active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 20%;
  right: 20%;
  height: 3px;
  border-radius: 3px;
   background: var(--tp-dark-text, #292f38);
}

.tp-limit-order-tabs button:focus-visible {
  outline: 2px solid #3187f7;
  outline-offset: 2px;
  border-radius: 4px;
}

/* 当前代币交易筛选 */
.tp-limit-order-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  margin: 0 -10px;
  padding: 0 11px;
  background: var(--tp-dark-surface, #fff);
  border-top: 1px solid var(--tp-dark-line, #eef0f3);
  box-sizing: border-box;
  color: var(--tp-dark-muted, #626975);
  font-size: 13px;
  line-height: 1.4;
}

.tp-limit-order-filter input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  accent-color: #3187f7;
}

.tp-limit-order-filter input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* 当前筛选只属于当前订单页 */
.tp-limit-orders:has(
  [data-limit-order-tab="history"].is-active
) .tp-limit-order-filter,
.tp-limit-orders:has(
  [data-limit-order-tab="positions"].is-active
) .tp-limit-order-filter {
  display: none;
}

/* 订单为空时的内容区域 */
.tp-limit-order-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 260px;
  margin: 0 -10px -25px;
  padding: 26px 12px 43px;
  box-sizing: border-box;
  background: var(--tp-dark-surface, #fff);
  color: var(--tp-dark-muted, #b8c0cb);
  text-align: center;
}

/* 空订单图标 */
.tp-limit-empty-icon {
  display: block;
  width: 62px;
  height: 70px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--tp-dark-muted, #dce1e8);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 空订单主提示 */
.tp-limit-order-empty p {
  margin: 13px 0 7px;
  color: var(--tp-dark-muted, #bac2cd);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

/* 订单接口状态 */
.tp-limit-order-empty small {
  display: block;
  max-width: 100%;
  color: var(--tp-dark-muted, #b0b8c4);
  font-size: 10px;
  line-height: 1.5;
}

/* 代币选择弹窗 */

.tp-limit-dialog-mask {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tp-limit-dialog {
  width: min(100%, 550px);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  padding: 17px 15px calc(15px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: var(--tp-dark-surface, #fff);
  color: var(--tp-dark-text, #272e38);
}

.tp-limit-dialog-head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  position: relative;
  margin-bottom: 13px;
}

.tp-limit-dialog-head strong {
  font-size: 18px;
}

.tp-limit-dialog-head button {
  position: absolute;
  right: 0;
  border: 0;
  background: none;
  color: var(--tp-dark-text, #4e5560);
  font-size: 28px;
}

.tp-limit-dialog input[type="search"] {
  width: 100%;
  padding: 13px 12px;
  border: 0;
  outline: 0;
  border-radius: 10px;
  background: var(--tp-dark-surface-2, #f1f2f7);
  color: var(--tp-dark-text, #272e38);
  font-size: 13px;
}

.tp-limit-chain-tabs {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  padding: 15px 0;
  overflow-x: auto;
}

.tp-limit-chain-tabs button {
  border: 0;
  border-radius: 22px;
  background: var(--tp-dark-surface-2, #f1f2f7);
  padding: 9px 12px;
  color: var(--tp-dark-text, #48515e);
  font-size: 12px;
  white-space: nowrap;
}

.tp-limit-chain-tabs button.is-active {
  background: #3287f7;
  color: #fff;
}

.tp-limit-list-title {
  margin-bottom: 10px;
  font-size: 13px;
}

.tp-limit-token-list {
  min-height: 120px;
  overflow-y: auto;
}

.tp-limit-token-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 11px 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.tp-limit-token-row > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.tp-limit-token-row strong {
  color: var(--tp-dark-text, #29313a);
  font-size: 14px;
}

.tp-limit-token-row small {
  color: var(--tp-dark-muted, #9da5b0);
  font-size: 11px;
}

.tp-limit-no-results {
  padding: 25px 0;
  text-align: center;
  color: var(--tp-dark-muted, #9da5b0);
}

.tp-limit-hint {
  color: var(--tp-dark-muted, #9da5b0);
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 350px) {
  .tp-limit-root {
    padding-left: 7px;
    padding-right: 7px;
  }

  .tp-limit-card {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* WALLET_LIMIT_DIALOG_DESKTOP_V2 */
@media (min-width: 600px) {
  .tp-limit-dialog {
    width: 374px;
    max-width: calc(100vw - 20px);
  }
}

/* WALLET_LIMIT_WALLET_VISUAL_V3 */

.tp-limit-top [data-limit-action="wallet"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  min-height: 36px;
  padding: 5px 8px;
  border-radius: 22px;
  background: var(--tp-dark-surface, #fff);
}

.tp-limit-wallet-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--tp-dark-surface-2, #f1f2f5);
  font-size: 10px;
  font-weight: 600;
  color: var(--tp-dark-text, #364152);
}

.tp-limit-wallet-chain-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
}

.tp-limit-wallet-chain-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  border-radius: 50%;
}

.tp-limit-wallet-arrow {
  color: var(--tp-dark-muted, #9ca3af);
  font-size: 14px;
}

.tp-limit-wallet-button.tp-limit-wallet-buy {
  background: #19a67f;
  color: #fff;
}

.tp-limit-wallet-button.tp-limit-wallet-sell {
  background: #df6875;
  color: #fff;
}
/* WALLET_HD_IDENTITY_FINAL_V1 */

.tp-hd-identity-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--tp-dark-bg, #f3f4f8);
  box-sizing: border-box;
}

.tp-hd-identity-page .tp-flow-header {
  flex: 0 0 auto;
  background: var(--tp-dark-bg, #f3f4f8);
}

.tp-hd-identity-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;

  padding:
    0
    16px
    calc(28px + env(safe-area-inset-bottom, 0px));

  box-sizing: border-box;
}

/* 身份钱包名称卡片 */

.tp-hd-identity-profile-card {
  min-height: 94px;
  padding: 18px 20px;

  display: flex;
  align-items: center;
  gap: 15px;

  background: #ffffff;
  border-radius: 16px;
  box-sizing: border-box;
}

.tp-hd-identity-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e7f0ff;
  border-radius: 50%;
}

.tp-hd-identity-avatar svg {
  width: 29px;
  height: 29px;
  fill: #348bf3;
}

.tp-hd-identity-name {
  min-width: 0;

  font-size: 17px;
  font-weight: 500;
  color: var(--tp-dark-text, #282d35);

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-hd-identity-edit {
  width: 26px;
  height: 30px;
  padding: 4px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 26px;

  border: 0;
  background: transparent;
  cursor: pointer;
}

.tp-hd-identity-edit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--tp-dark-muted, #777e88);
  stroke-width: 1.7;
  stroke-linejoin: round;
}

/* 身份钱包功能区域 */

.tp-hd-identity-actions-card {
  margin-top: 18px;

  overflow: hidden;
  background: var(--tp-dark-surface, #ffffff);
  border-radius: 16px;
}

.tp-hd-identity-row {
  width: 100%;
  min-height: 62px;

  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  border: 0;
  background: transparent;

  font-size: 15px;
  color: var(--tp-dark-text, #30343a);

  text-align: left;
  cursor: pointer;

  box-sizing: border-box;
}

.tp-hd-identity-row + .tp-hd-identity-row {
  border-top: 1px solid var(--tp-dark-line, #eceef1);
}

.tp-hd-identity-row svg,
.tp-hd-identity-advanced svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;

  fill: none;
  stroke: var(--tp-dark-muted, #adb2ba);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-hd-identity-row-add {
  min-height: 83px;
}

.tp-hd-identity-row-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tp-hd-identity-row-copy strong {
  font-size: 15px;
  font-weight: 400;
}

.tp-hd-identity-row-copy small {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--tp-dark-muted, #9ba1aa);
}

.tp-hd-identity-row:active {
  background: var(--tp-dark-surface-2, #f7f8fa);
}

/* 高级模式 */

.tp-hd-identity-advanced {
  align-self: flex-end;
  min-height: 44px;

  margin-top: 13px;
  padding: 0 3px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  border: 0;
  background: transparent;

  color: var(--tp-dark-muted, #969ca6);
  font-size: 14px;

  cursor: pointer;
}

/* 底部删除身份钱包 */

.tp-hd-identity-bottom {
  margin-top: auto;
  padding-top: 35px;
}

.tp-hd-identity-delete {
  width: 100%;
  min-height: 54px;

  border: 0;
  border-radius: 12px;

  background: #ed6058;
  color: #ffffff;

  font-size: 16px;
  font-weight: 500;

  cursor: pointer;
}

.tp-hd-identity-delete:active {
  background: #d94e47;
}

/* 修改名称与添加网络子页面 */

.tp-hd-identity-form-card {
  padding: 20px;

  background: var(--tp-dark-surface, #ffffff);
  border-radius: 16px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tp-hd-identity-label {
  font-size: 14px;
  color: var(--tp-dark-text, #444b55);
  margin-top: 5px;
}

.tp-hd-identity-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;

  border: 1px solid var(--tp-dark-line, #e3e6eb);
  border-radius: 10px;

  background: var(--tp-dark-surface-2, #f7f8fa);
  color: var(--tp-dark-text, #252b34);

  font-size: 15px;
  outline: none;

  box-sizing: border-box;
}

.tp-hd-identity-input:focus {
  border-color: #348bf3;
}

.tp-hd-identity-primary {
  width: 100%;
  min-height: 48px;

  margin-top: 12px;

  border: 0;
  border-radius: 10px;

  background: #348bf3;
  color: #ffffff;

  font-size: 15px;
  font-weight: 500;

  cursor: pointer;
}

.tp-hd-identity-primary:disabled {
  opacity: 0.55;
}

.tp-hd-identity-description {
  margin-bottom: 6px;

  font-size: 16px;
  font-weight: 500;
  color: var(--tp-dark-text, #303640);
}

.tp-hd-identity-hint {
  margin: 0 0 12px;

  font-size: 13px;
  line-height: 1.7;
  color: var(--tp-dark-muted, #8e96a2);
}

/* HD 网络选择 */

.tp-hd-identity-network-row {
  width: 100%;
  min-height: 64px;

  padding: 8px 2px;

  display: flex;
  align-items: center;
  gap: 12px;

  border: 0;
  border-bottom: 1px solid #edf0f3;
  background: transparent;

  text-align: left;
  cursor: pointer;
}

.tp-hd-identity-network-row:last-child {
  border-bottom: 0;
}

.tp-hd-identity-network-row:disabled {
  cursor: default;
}

.tp-hd-identity-network-symbol {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #ebf2ff;

  color: #348bf3;
  font-size: 12px;
  font-weight: 600;
}

.tp-hd-identity-network-name {
  flex: 1;
  min-width: 0;

  color: #303640;
  font-size: 15px;
}

.tp-hd-identity-network-status {
  color: var(--tp-dark-muted, #9199a5);
  font-size: 13px;
}

/* 深色模式 */

html[data-wallet-theme="dark"]
.tp-hd-identity-profile-card,

html[data-wallet-theme="dark"]
.tp-hd-identity-actions-card,

html[data-wallet-theme="dark"]
.tp-hd-identity-form-card {
  background: #222831;
}

html[data-wallet-theme="dark"]
.tp-hd-identity-name,

html[data-wallet-theme="dark"]
.tp-hd-identity-row,

html[data-wallet-theme="dark"]
.tp-hd-identity-description,

html[data-wallet-theme="dark"]
.tp-hd-identity-label,

html[data-wallet-theme="dark"]
.tp-hd-identity-network-name {
  color: #f3f5f7;
}

html[data-wallet-theme="dark"]
.tp-hd-identity-input {
  background: #303744;
  border-color: #46505e;
  color: #ffffff;
}

html[data-wallet-theme="dark"]
.tp-hd-identity-network-row,

html[data-wallet-theme="dark"]
.tp-hd-identity-row + .tp-hd-identity-row {
  border-color: #39404a;
}

html[data-wallet-theme="dark"]
.tp-hd-identity-row:active {
  background: #303744;
}

