/* SUNDEX p77 — exchange selector and wallet layout integrity. */

/* Exchange selector: keep the native select for keyboard/mobile behavior, but
   give the visible control a properly aligned SVG affordance. */
.sps-exchange-panel .sps-exchange-asset {
  grid-template-columns: 64px minmax(0, auto) auto 34px;
  gap: 13px;
  margin-inline: -12px -8px;
  padding: 10px 8px 10px 12px;
  border: 1px solid transparent;
  border-radius: 20px;
  box-sizing: border-box;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.sps-exchange-panel .sps-exchange-chevron {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  align-self: center;
  justify-self: end;
  border: 1px solid rgba(210, 222, 239, 0.16);
  border-radius: 999px;
  color: rgba(230, 237, 247, 0.76);
  background: linear-gradient(180deg, rgba(192, 211, 237, 0.08), rgba(87, 110, 144, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  font-size: 0;
  line-height: 1;
  transform: none;
  transform-origin: 50% 50%;
  pointer-events: none;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sps-exchange-panel .sps-exchange-chevron svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sps-exchange-panel .sps-exchange-asset:hover,
.sps-exchange-panel .sps-exchange-asset:focus-within {
  border-color: rgba(206, 220, 240, 0.12);
  background: rgba(181, 202, 232, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 12px 28px rgba(0, 0, 0, 0.12);
}

.sps-exchange-panel .sps-exchange-asset:hover .sps-exchange-chevron,
.sps-exchange-panel .sps-exchange-asset:focus-within .sps-exchange-chevron {
  color: #f4f7fb;
  border-color: rgba(222, 232, 246, 0.34);
  background: rgba(185, 207, 237, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 16px rgba(0, 0, 0, 0.22);
}

.sps-exchange-panel .sps-exchange-asset[data-p77-select-active="true"] .sps-exchange-chevron {
  transform: rotate(180deg);
}

/* Windows renders the popup as a light native surface. Explicit option colors
   prevent the inherited near-white page color from becoming unreadable. */
.sps-exchange-panel .sps-exchange-asset select {
  color: #0a0d12 !important;
  background-color: #ffffff !important;
  color-scheme: light !important;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif !important;
}

.sps-exchange-panel .sps-exchange-asset select option,
.sps-exchange-panel .sps-exchange-asset select optgroup {
  color: #0a0d12 !important;
  background: #ffffff !important;
}

.sps-exchange-panel .sps-exchange-asset select option:disabled {
  color: #8a919c !important;
}

/* Wallet: action buttons and data panels participate in document flow. This
   removes the fixed top offset that overlapped holdings at Windows scaling. */
.wallet-premium.wallet77-ready {
  display: grid !important;
  width: min(100%, 1600px) !important;
  max-width: 1600px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
  overflow: visible !important;
}

.wallet-premium.wallet77-ready .wallet-vault {
  position: relative !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding-bottom: 88px !important;
}

.wallet-premium.wallet77-ready .wallet-action-grid {
  position: relative !important;
  z-index: 4 !important;
  inset: auto !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

.wallet-premium.wallet77-ready .wallet-action {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 64px !important;
  height: 64px !important;
  padding-inline: 22px !important;
  box-sizing: border-box !important;
}

.wallet-premium.wallet77-ready .wallet-action-copy {
  min-width: 0 !important;
  overflow: hidden !important;
}

.wallet-premium.wallet77-ready .wallet-action-copy strong,
.wallet-premium.wallet77-ready .wallet-action-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-premium.wallet77-ready .wallet-data-grid {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, 1.62fr) minmax(360px, 0.78fr) !important;
  align-items: stretch !important;
  gap: 18px !important;
  margin: 0 !important;
  transform: none !important;
}

.wallet-premium.wallet77-ready .wallet-assets-panel,
.wallet-premium.wallet77-ready .wallet-activity-panel {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(190, 207, 230, 0.12) !important;
  border-radius: 24px !important;
  background: rgba(4, 8, 14, 0.84) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 24px 60px rgba(0, 0, 0, 0.12) !important;
}

.wallet-premium.wallet77-ready .wallet-table-head,
.wallet-premium.wallet77-ready .wallet-activity-panel > div:first-child {
  display: flex !important;
  min-height: 84px !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 22px 28px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(190, 207, 230, 0.1) !important;
  box-sizing: border-box !important;
}

.wallet-premium.wallet77-ready .wallet-panel-title,
.wallet-premium.wallet77-ready .wallet-activity-panel h2,
.wallet-premium.wallet77-ready .wallet-activity-panel h3 {
  margin: 0 !important;
  line-height: 1.08 !important;
}

.wallet-premium.wallet77-ready .wallet-data-table,
.wallet-premium.wallet77-ready .wallet-activity-table {
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

body:has(.wallet77-ready) .platform-main {
  overflow-x: hidden !important;
}

@media (max-width: 1180px) {
  .sps-exchange-panel .sps-exchange-asset {
    grid-template-columns: 54px minmax(0, auto) auto 32px;
  }

  .wallet-premium.wallet77-ready .wallet-data-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr) !important;
  }
}

@media (max-width: 980px) {
  .wallet-premium.wallet77-ready .wallet-data-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .wallet-premium.wallet77-ready .wallet-assets-panel,
  .wallet-premium.wallet77-ready .wallet-activity-panel {
    height: auto !important;
  }
}

@media (max-width: 760px) {
  .sps-exchange-panel .sps-exchange-asset {
    grid-template-columns: 48px minmax(0, auto) auto 30px;
    margin-inline: -8px -6px;
    padding-inline: 8px 6px;
    border-radius: 16px;
  }

  .sps-exchange-panel .sps-exchange-chevron {
    width: 28px;
    height: 28px;
  }

  .wallet-premium.wallet77-ready {
    gap: 12px !important;
  }

  .wallet-premium.wallet77-ready .wallet-vault {
    padding-bottom: 52px !important;
  }

  .wallet-premium.wallet77-ready .wallet-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .wallet-premium.wallet77-ready .wallet-action {
    min-height: 58px !important;
    height: 58px !important;
    padding-inline: 10px !important;
  }

  .wallet-premium.wallet77-ready .wallet-action-copy small {
    display: none !important;
  }

  .wallet-premium.wallet77-ready .wallet-action-copy strong {
    font-size: 0.78rem !important;
  }

  .wallet-premium.wallet77-ready .wallet-table-head,
  .wallet-premium.wallet77-ready .wallet-activity-panel > div:first-child {
    min-height: 72px !important;
    padding: 18px 20px 15px !important;
  }
}

@media (max-width: 430px) {
  .wallet-premium.wallet77-ready .wallet-action {
    padding-inline: 8px !important;
  }

  .wallet-premium.wallet77-ready .wallet-action-icon {
    width: 34px !important;
    height: 34px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sps-exchange-panel .sps-exchange-asset,
  .sps-exchange-panel .sps-exchange-chevron {
    transition-duration: 0.01ms !important;
  }
}
