/* SUNDEX p79 — desktop Spot Wallet only.
   Partner mobile (<= 760px) and every other route remain untouched. */

@media (min-width: 761px) {
  .wallet-premium.wallet65-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.wallet65-ready .wallet-vault {
    position: relative !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  /* Remove the old negative margin that placed the three actions inside the
     Holdings ledger. They now occupy their own stable row in document flow. */
  .wallet-premium.wallet65-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.wallet65-ready .wallet-action {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 64px !important;
    min-height: 64px !important;
    padding-inline: 22px !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

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

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

  .wallet-premium.wallet65-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;
    overflow: visible !important;
    border: 0 !important;
    transform: none !important;
  }

  .wallet-premium.wallet65-ready .wallet-assets-panel,
  .wallet-premium.wallet65-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.wallet65-ready .wallet-table-head,
  .wallet-premium.wallet65-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.wallet65-ready .wallet-panel-title,
  .wallet-premium.wallet65-ready .wallet-activity-panel h2,
  .wallet-premium.wallet65-ready .wallet-activity-panel h3 {
    margin: 0 !important;
    line-height: 1.08 !important;
  }

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

  .wallet-premium.wallet65-ready .wallet-chart-panel {
    min-width: 0 !important;
    margin: 0 !important;
  }

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

  /* The floating support launcher covered Swap on short laptop windows. Dock
     it at the bottom of the Wallet page while retaining its original handler. */
  body:has(.wallet-premium.wallet65-ready) > div:has(> .support-launcher) {
    position: relative !important;
  }

  body:has(.wallet-premium.wallet65-ready) .support-launcher {
    position: absolute !important;
    z-index: 20 !important;
    inset: auto 28px 14px auto !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 128px !important;
    height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 0 17px !important;
    border: 1px solid rgba(197, 214, 236, 0.2) !important;
    border-radius: 999px !important;
    color: #e9eff8 !important;
    background: linear-gradient(180deg, rgba(24, 34, 49, 0.98), rgba(5, 9, 15, 0.98)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 12px 30px rgba(0, 0, 0, 0.3) !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body:has(.wallet-premium.wallet65-ready) .support-launcher svg {
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 19px;
  }

  body:has(.wallet-premium.wallet65-ready) .support-launcher::after {
    content: "Support";
    font-size: 0.78rem;
    font-weight: 620;
    line-height: 1;
    letter-spacing: 0.01em;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .wallet-premium.wallet65-ready .wallet-data-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
  }

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

@media (min-width: 761px) and (prefers-reduced-motion: reduce) {
  body:has(.wallet-premium.wallet65-ready) .support-launcher {
    transition-duration: 0.01ms !important;
  }
}
