/* SUNDEX Wallet 40 — compact, finance-grade product workspace. */
html.wallet-session-resuming #root {
  visibility: hidden;
}

.wallet-session-skeleton {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: auto;
  color: #d7e0eb;
  background:
    radial-gradient(ellipse 60% 38% at 44% -8%, rgba(61, 84, 114, 0.12), transparent 72%),
    #020407;
}

.wallet-skeleton-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wallet-skeleton-frame {
  display: grid;
  width: min(1216px, calc(100% - 56px));
  margin: 104px auto 64px;
  gap: 12px;
}

.wallet-skeleton-block,
.wallet-skeleton-actions > i {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(205, 219, 237, 0.08);
  background: #070b10;
}

.wallet-skeleton-block::after,
.wallet-skeleton-actions > i::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background: linear-gradient(105deg, transparent 34%, rgba(184, 204, 230, 0.06) 50%, transparent 66%);
  transform: translateX(-100%);
  animation: wallet-skeleton-pass 1.8s ease-in-out infinite;
}

.wallet-skeleton-summary {
  height: 247px;
  padding: 58px;
  border-radius: 28px;
}

.wallet-skeleton-summary > i,
.wallet-skeleton-summary > b,
.wallet-skeleton-summary > span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(167, 179, 194, 0.1);
}

.wallet-skeleton-summary > i {
  width: 80px;
}

.wallet-skeleton-summary > b {
  width: 210px;
  height: 44px;
  margin-top: 28px;
}

.wallet-skeleton-summary > span {
  width: 132px;
  margin-top: 20px;
}

.wallet-skeleton-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wallet-skeleton-actions > i {
  height: 64px;
  border-radius: 18px;
}

.wallet-skeleton-data {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 12px;
}

.wallet-skeleton-data > i {
  height: 155px;
  border-radius: 20px;
}

@keyframes wallet-skeleton-pass {
  to { transform: translateX(100%); }
}

body:has(.wallet-premium) {
  --sw-bg: #020407;
  --sw-surface: #070b10;
  --sw-surface-raised: #0a1017;
  --sw-surface-hover: #0d141d;
  --sw-border: rgba(205, 219, 237, 0.1);
  --sw-border-strong: rgba(205, 219, 237, 0.18);
  --sw-ink: #f3f6fa;
  --sw-text: #d7e0eb;
  --sw-muted: #a7b3c2;
  --sw-dim: #8996a7;
  --sw-positive: #9ed0ae;
  --sw-negative: #e3a0a9;
  --sw-accent: #b8cce6;
  --sw-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--sw-bg);
}

body:has(.wallet-premium) .platform-shell {
  background:
    radial-gradient(ellipse 60% 38% at 44% -8%, rgba(61, 84, 114, 0.12), transparent 72%),
    var(--sw-bg);
}

body:has(.wallet-premium) .platform-main {
  padding: 24px 28px 48px;
  scrollbar-gutter: stable;
}

body:has(.wallet-premium) .platform-brand-logo {
  width: 48px !important;
  height: 48px !important;
}

body:has(.wallet-premium) .wallet-header-current,
body[data-sundex-flow] .wallet-header-current {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-left: 8px;
  padding-left: 13px;
  border-left: 1px solid var(--sw-border-strong, rgba(205, 219, 237, 0.18));
  color: var(--sw-muted, #a7b3c2);
  font-size: 0.8125rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

body:has(.wallet-premium) .platform-header button[aria-label="Change language"],
body[data-sundex-flow] .platform-header button[aria-label="Change language"] {
  min-width: 44px;
  min-height: 44px;
}

.sundex-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sundex-flow-loading-copy {
  color: #d7e0eb;
  font-size: 0.8125rem;
  font-weight: 590;
  letter-spacing: -0.005em;
}

.sundex-flow-back,
.sundex-swap-balance,
.sundex-swap-preset,
.sundex-swap-reverse,
.sundex-swap-asset-select,
.sundex-swap-amount,
.support-panel .sundex-support-control {
  min-height: 44px !important;
}

.sundex-flow-back,
.sundex-swap-reverse,
.sundex-swap-back,
.support-panel .sundex-support-control {
  min-width: 44px !important;
}

.sundex-swap-asset-select {
  min-width: 140px !important;
}

.support-panel[role="dialog"]:focus-visible {
  outline: 2px solid #d5e3f3;
  outline-offset: 3px;
}

.support-panel[role="dialog"] input[aria-label="Message to SUNDEX support"],
.support-panel[role="dialog"] textarea[aria-label="Message to SUNDEX support"] {
  min-height: 44px;
}

.sundex-swap-page-head {
  display: flex;
  width: min(460px, calc(100% - 48px));
  min-height: 44px;
  align-items: center;
  gap: 12px;
  margin: 22px auto 10px;
}

.sundex-swap-back {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(205, 219, 237, 0.13);
  border-radius: 13px;
  color: #d7e0eb;
  background: #0a1017;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  font-size: 1.125rem;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sundex-swap-title {
  margin: 0;
  color: #f3f6fa;
  font-size: 1.25rem;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.sundex-swap-back:focus-visible {
  outline: 2px solid #d5e3f3;
  outline-offset: 3px;
}

.sundex-auth-resume-note {
  display: flex;
  gap: 2px;
  margin: 16px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(184, 204, 230, 0.14);
  border-radius: 12px;
  color: #a7b3c2;
  background: rgba(184, 204, 230, 0.055);
  flex-direction: column;
}

.sundex-auth-resume-note strong {
  color: #e8eef6;
  font-size: 0.8125rem;
  font-weight: 650;
}

.sundex-auth-resume-note span {
  font-size: 0.75rem;
  line-height: 1.45;
}

@media (hover: hover) and (pointer: fine) {
  .sundex-swap-back:hover {
    border-color: rgba(205, 219, 237, 0.24);
    background: #0d141d;
  }
}

.sundex-swap-back:active {
  transform: scale(0.97);
}

.wallet-premium {
  --sw-bg: #020407;
  --sw-surface: #070b10;
  --sw-surface-raised: #0a1017;
  --sw-surface-hover: #0d141d;
  --sw-border: rgba(205, 219, 237, 0.1);
  --sw-border-strong: rgba(205, 219, 237, 0.18);
  --sw-ink: #f3f6fa;
  --sw-text: #d7e0eb;
  --sw-muted: #a7b3c2;
  --sw-dim: #8996a7;
  --sw-positive: #9ed0ae;
  --sw-negative: #e3a0a9;
  --sw-accent: #b8cce6;
  --sw-ease: cubic-bezier(0.22, 1, 0.36, 1);
  display: grid;
  width: min(1320px, 100%);
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  color: var(--sw-text);
  font-family: inherit;
  font-kerning: normal;
}

.wallet-premium > * {
  min-width: 0;
  margin-top: 0 !important;
  grid-column: 1 !important;
}

.wallet-premium .wallet-vault {
  position: relative;
  display: grid;
  min-height: 224px;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  gap: 32px;
  padding: 28px 32px;
  overflow: hidden;
  border: 1px solid var(--sw-border-strong) !important;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 55% 125% at 0% 20%, rgba(67, 91, 124, 0.15), transparent 70%) padding-box,
    linear-gradient(145deg, #0a1018, #04070b 68%) padding-box !important;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

.wallet-premium .wallet-vault::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.035), transparent 28%);
}

.wallet-premium .wallet-vault::after {
  content: "";
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(229, 237, 247, 0.28), transparent);
}

.wallet-premium .wallet-vault-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.wallet-premium .wallet-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sw-muted);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-transform: none;
}

.wallet-premium .wallet-eyebrow::after {
  display: none;
}

.wallet-premium .wallet-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sw-positive);
  box-shadow: 0 0 12px rgba(158, 208, 174, 0.28);
}

.wallet-premium .wallet-balance-label {
  margin-top: 20px;
  color: var(--sw-dim);
  font-size: 0.8125rem;
  font-weight: 540;
  letter-spacing: 0.01em;
}

.wallet-premium .wallet-balance {
  margin-top: 4px;
  color: var(--sw-ink);
  font-size: 3.25rem;
  font-weight: 540;
  line-height: 1;
  letter-spacing: -0.04em;
}

.wallet-premium .wallet-change-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.wallet-premium .wallet-change-chip {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--sw-positive);
  background: rgba(122, 175, 140, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  font-size: 0.75rem;
  font-weight: 650;
}

.wallet-premium .wallet-change-chip.is-negative {
  color: var(--sw-negative);
  background: rgba(195, 96, 110, 0.12);
}

.wallet-premium .wallet-change-copy {
  color: var(--sw-muted);
  font-size: 0.8125rem;
  font-weight: 520;
}

.wallet-premium .wallet-freshness {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--sw-dim);
  font-size: 0.75rem;
  font-weight: 520;
}

.wallet-premium .wallet-freshness i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.wallet-premium .wallet-vault-meta {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.wallet-premium .wallet-meta-link {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  color: var(--sw-text);
  background: rgba(229, 236, 245, 0.045);
  transition: color 160ms ease, background-color 170ms ease, transform 150ms var(--sw-ease);
}

.wallet-premium .wallet-allocation-card {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 4px 0 4px 32px;
  border: 0;
  border-left: 1px solid var(--sw-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wallet-premium .wallet-allocation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border: 0;
}

.wallet-premium .wallet-allocation-head span {
  color: var(--sw-muted);
  font-size: 0.8125rem;
  font-weight: 630;
  letter-spacing: -0.01em;
  text-transform: none;
}

.wallet-premium .wallet-allocation-head strong {
  color: var(--sw-muted);
  font-size: 0.75rem;
  font-weight: 610;
}

.wallet-premium .wallet-composition-bar {
  display: flex;
  height: 5px;
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.wallet-premium .wallet-holding-list {
  display: flex;
  gap: 2px;
  flex-direction: column;
}

.wallet-premium .wallet-holding-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  border: 0;
  border-radius: 10px;
  transition: background-color 160ms ease;
}

.wallet-premium .wallet-holding-asset,
.wallet-premium .wallet-holding-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-premium .wallet-holding-value {
  align-items: flex-end;
  gap: 1px;
  flex-direction: column;
}

.wallet-premium .wallet-holding-asset img {
  width: 30px;
  height: 30px;
}

.wallet-premium .wallet-holding-asset strong,
.wallet-premium .wallet-holding-value strong {
  color: var(--sw-ink);
  font-size: 0.8125rem;
  font-weight: 650;
}

.wallet-premium .wallet-holding-asset span,
.wallet-premium .wallet-holding-value span {
  color: var(--sw-dim);
  font-size: 0.75rem;
}

.wallet-premium .wallet-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wallet-premium .wallet-action {
  min-height: 64px;
  padding: 0 16px;
  border: 1px solid var(--sw-border);
  border-radius: 18px;
  color: var(--sw-ink);
  background: linear-gradient(145deg, #101720, #070b10 62%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 12px 28px rgba(0, 0, 0, 0.2);
  transition: border-color 170ms ease, background-color 170ms ease, transform 150ms var(--sw-ease), box-shadow 190ms ease;
}

.wallet-premium .wallet-action:first-child {
  border-color: rgba(184, 204, 230, 0.22);
  color: var(--sw-ink);
  background: linear-gradient(145deg, #182332, #0a1017 68%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.24);
}

.wallet-premium .wallet-action::before {
  display: none;
}

.wallet-premium .wallet-action-copy {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  flex-direction: column;
}

.wallet-premium .wallet-action-copy strong {
  margin: 0;
  color: currentColor;
  font-size: 0.875rem;
  font-weight: 650;
}

.wallet-premium .wallet-action-copy small {
  display: block;
  color: var(--sw-dim);
  font-size: 0.75rem;
  font-weight: 520;
  letter-spacing: 0;
  text-transform: none;
}

.wallet-premium .wallet-action-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--sw-border);
  border-radius: 11px;
  color: var(--sw-accent);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.wallet-premium .wallet-action:first-child .wallet-action-icon {
  color: #dbe8f7;
  background: rgba(184, 204, 230, 0.08);
}

.wallet-premium .wallet-data-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.wallet-premium .wallet-panel {
  border: 1px solid var(--sw-border) !important;
  border-radius: 20px !important;
  background: var(--sw-surface) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 42px rgba(0, 0, 0, 0.2) !important;
}

.wallet-premium .wallet-table-head,
.wallet-premium .wallet-activity-panel > div:first-child {
  min-height: 58px;
  padding: 0 20px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sw-border) !important;
}

.wallet-premium .wallet-panel-kicker {
  display: none;
}

.wallet-premium .wallet-panel-title,
.wallet-premium .wallet-activity-panel h2,
.wallet-premium .wallet-activity-panel h3 {
  margin: 0;
  color: var(--sw-ink) !important;
  font-size: 1rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.015em !important;
}

.wallet-premium .wallet-table-count {
  color: var(--sw-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 590;
  letter-spacing: 0;
  text-transform: none;
}

.wallet-premium .wallet-data-table > [role="row"]:first-child,
.wallet-premium .wallet-activity-table > [role="row"]:first-child {
  min-height: 36px;
  padding: 0 20px !important;
  color: var(--sw-dim) !important;
  border-bottom: 1px solid var(--sw-border) !important;
  font-size: 0.75rem !important;
  font-weight: 620 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.wallet-premium .wallet-empty-copy {
  display: flex;
  min-height: 96px;
  align-items: flex-start;
  justify-content: center;
  padding: 22px 20px;
  flex-direction: column;
}

.wallet-premium .wallet-empty-copy strong {
  color: var(--sw-ink);
  font-size: 0.875rem;
  font-weight: 650;
}

.wallet-premium .wallet-empty-copy p {
  margin-top: 5px;
  color: var(--sw-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.wallet-premium .wallet-asset-row,
.wallet-premium .wallet-activity-table .divide-y > [role="row"] {
  min-height: 60px;
  padding: 10px 20px !important;
  border-bottom: 1px solid var(--sw-border) !important;
  transition: background-color 160ms ease;
}

.wallet-premium .wallet-asset-row:last-child,
.wallet-premium .wallet-activity-table .divide-y > [role="row"]:last-child {
  border-bottom: 0 !important;
}

.wallet-premium .wallet-asset-icon {
  width: 34px;
  height: 34px;
  padding: 3px;
  border: 0;
  background: #edf1f5;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.wallet-premium .wallet-assets-panel p,
.wallet-premium .wallet-activity-panel p {
  color: var(--sw-text);
}

.wallet-premium .wallet-assets-panel .text-muted-foreground,
.wallet-premium .wallet-activity-panel .text-muted-foreground {
  color: var(--sw-muted) !important;
}

.wallet-premium .wallet-allocation-mini {
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
}

.wallet-premium .wallet-allocation-mini i {
  display: block;
  height: 100%;
  background: var(--sw-accent);
}

.wallet-premium .wallet-chart-panel {
  position: relative;
  display: block !important;
  min-height: 216px;
  grid-template-columns: none !important;
  padding: 20px 22px !important;
  overflow: hidden;
}

.wallet-premium .wallet-chart-panel::after {
  display: none !important;
}

.wallet-premium .wallet-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.wallet-premium .wallet-range-control {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--sw-border);
  border-radius: 12px;
  background: #0b1119;
}

.wallet-premium .wallet-range-control button {
  min-width: 44px;
  min-height: 38px;
  border-radius: 9px;
  color: var(--sw-muted);
  font-size: 0.75rem;
  font-weight: 650;
  transition: color 160ms ease, background-color 170ms ease, box-shadow 180ms ease, transform 140ms var(--sw-ease);
}

.wallet-premium .wallet-range-control button.is-active {
  color: #0b1118;
  background: #cbd5e2;
  box-shadow: inset 0 1px 0 #f7f9fb, 0 5px 13px rgba(0, 0, 0, 0.3);
}

.wallet-premium .wallet-flat-state {
  display: grid;
  min-height: 126px;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.5fr);
  align-items: center;
  gap: 28px;
}

.wallet-premium .wallet-flat-plot {
  position: relative;
  min-height: 88px;
}

.wallet-premium .wallet-flat-plot::before {
  content: "";
  position: absolute;
  inset: 18px 0 16px;
  opacity: 0.45;
  background-image: linear-gradient(rgba(205, 219, 237, 0.07) 1px, transparent 1px);
  background-size: 100% 28px;
}

.wallet-premium .wallet-flat-plot > i {
  position: absolute;
  top: 49px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 204, 230, 0.12), rgba(184, 204, 230, 0.62));
}

.wallet-premium .wallet-flat-plot > b {
  position: absolute;
  top: 45px;
  right: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--sw-surface);
  border-radius: 50%;
  background: var(--sw-accent);
  box-shadow: 0 0 0 4px rgba(184, 204, 230, 0.1);
}

.wallet-premium .wallet-flat-plot > span,
.wallet-premium .wallet-flat-plot > small {
  position: absolute;
  right: 0;
  color: var(--sw-muted);
  font-size: 0.75rem;
  font-weight: 590;
}

.wallet-premium .wallet-flat-plot > span {
  top: 20px;
}

.wallet-premium .wallet-flat-plot > small {
  top: 62px;
}

.wallet-premium .wallet-flat-copy strong {
  display: block;
  color: var(--sw-ink);
  font-size: 0.875rem;
  font-weight: 650;
}

.wallet-premium .wallet-flat-copy p {
  max-width: 34ch;
  margin-top: 6px;
  color: var(--sw-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.wallet-premium .wallet-chart-panel.is-flat > .h-48,
.wallet-premium .wallet-chart-panel.is-flat > .md\:h-56 {
  display: none;
}

.wallet-premium :where(button, a):focus-visible {
  outline: 2px solid #d5e3f3;
  outline-offset: 3px;
}

body:has(.wallet-premium) .platform-nav-pill > .group > div.absolute {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 180ms var(--sw-ease), visibility 160ms ease !important;
}

body:has(.wallet-premium) .platform-nav-pill > .wallet-nav-open > div.absolute {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .wallet-premium .wallet-action:hover {
    border-color: var(--sw-border-strong);
    background: var(--sw-surface-hover);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 34px rgba(0, 0, 0, 0.26);
  }

  .wallet-premium .wallet-holding-row:hover,
  .wallet-premium .wallet-asset-row:hover,
  .wallet-premium .wallet-activity-table .divide-y > [role="row"]:hover {
    background-color: rgba(119, 146, 183, 0.065) !important;
  }

  .wallet-premium .wallet-range-control button:hover {
    color: var(--sw-ink);
  }
}

.wallet-premium .wallet-action:active,
.wallet-premium .wallet-range-control button:active,
.wallet-premium .wallet-meta-link:active,
.wallet-premium .wallet-inline-support:active {
  transform: scale(0.98);
}

body:has(.wallet-premium) .support-launcher {
  display: none !important;
}

.wallet-premium .wallet-inline-support {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--sw-border);
  border-radius: 17px;
  color: var(--sw-text);
  background: var(--sw-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  text-align: left;
  transition: border-color 170ms ease, background-color 170ms ease, transform 150ms var(--sw-ease);
}

.wallet-premium .wallet-inline-support > span:not(.wallet-inline-support-icon) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.wallet-premium .wallet-inline-support strong {
  color: var(--sw-ink);
  font-size: 0.8125rem;
  font-weight: 650;
}

.wallet-premium .wallet-inline-support small,
.wallet-premium .wallet-inline-support i {
  color: var(--sw-muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 520;
}

.wallet-premium .wallet-inline-support-icon {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--sw-border-strong);
  border-radius: 11px;
  background: var(--sw-surface-raised);
}

.wallet-premium .wallet-inline-support-icon::before {
  content: "";
  position: absolute;
  inset: 9px 8px 10px;
  border: 1.5px solid var(--sw-accent);
  border-radius: 5px;
}

.wallet-premium .wallet-inline-support-icon::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 12px;
  width: 5px;
  height: 5px;
  border-bottom: 1.5px solid var(--sw-accent);
  border-left: 1.5px solid var(--sw-accent);
  background: var(--sw-surface-raised);
  transform: skewY(-35deg);
}

@media (hover: hover) and (pointer: fine) {
  .wallet-premium .wallet-inline-support:hover {
    border-color: var(--sw-border-strong);
    background: var(--sw-surface-hover);
  }
}

@media (max-width: 900px) {
  body:has(.wallet-premium) .platform-main {
    padding: 20px 18px 42px;
  }

  .wallet-premium .wallet-vault {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .wallet-premium .wallet-allocation-card {
    padding: 22px 0 0;
    border-top: 1px solid var(--sw-border);
    border-left: 0;
  }

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

@media (max-width: 600px) {
  .sundex-swap-page-head {
    width: calc(100% - 60px);
    margin-top: 18px;
    margin-bottom: 8px;
  }

  .wallet-skeleton-frame {
    width: calc(100% - 28px);
    margin-top: 85px;
    gap: 10px;
  }

  .wallet-skeleton-summary {
    height: 350px;
    padding: 48px 24px;
    border-radius: 24px;
  }

  .wallet-skeleton-actions > i {
    height: 81px;
    border-radius: 16px;
  }

  .wallet-skeleton-data {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .wallet-skeleton-data > i {
    height: 154px;
    border-radius: 18px;
  }

  body:has(.wallet-premium) .platform-main {
    padding: 12px 10px 34px;
  }

  body:has(.wallet-premium) .platform-brand-logo {
    width: 44px !important;
    height: 44px !important;
  }

  .wallet-premium {
    gap: 10px !important;
  }

  .wallet-premium .wallet-vault {
    min-height: 0;
    gap: 14px;
    padding: 20px 18px 16px;
    border-radius: 24px;
  }

  .wallet-premium .wallet-balance-label {
    margin-top: 12px;
  }

  .wallet-premium .wallet-balance {
    font-size: 2.75rem;
  }

  .wallet-premium .wallet-freshness {
    align-items: center;
    gap: 7px;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 0.75rem;
  }

  .wallet-premium .wallet-freshness i {
    display: block;
  }

  .wallet-premium .wallet-allocation-card {
    padding-top: 14px;
  }

  .wallet-premium .wallet-allocation-head {
    padding-bottom: 10px;
  }

  .wallet-premium .wallet-composition-bar {
    margin-bottom: 10px;
  }

  .wallet-premium .wallet-holding-row {
    min-height: 42px;
  }

  .wallet-premium .wallet-action-grid {
    gap: 6px;
  }

  .wallet-premium .wallet-action {
    min-height: 72px;
    padding: 10px 8px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 16px;
  }

  .wallet-premium .wallet-action-copy {
    align-items: center;
  }

  .wallet-premium .wallet-action-copy strong {
    font-size: 0.8125rem;
  }

  .wallet-premium .wallet-action-copy small {
    display: none;
  }

  .wallet-premium .wallet-action-icon {
    width: 32px;
    height: 32px;
  }

  .wallet-premium .wallet-panel {
    border-radius: 18px !important;
  }

  .wallet-premium .wallet-table-head,
  .wallet-premium .wallet-activity-panel > div:first-child {
    min-height: 54px;
    padding-inline: 16px !important;
  }

  .wallet-premium .wallet-data-table > [role="row"]:first-child,
  .wallet-premium .wallet-activity-table > [role="row"]:first-child,
  .wallet-premium .wallet-asset-row,
  .wallet-premium .wallet-activity-table .divide-y > [role="row"] {
    padding-inline: 16px !important;
  }

  .wallet-premium .wallet-chart-panel {
    min-height: 250px;
    padding: 18px 16px !important;
  }

  .wallet-premium .wallet-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .wallet-premium .wallet-range-control {
    width: 100%;
  }

  .wallet-premium .wallet-range-control button {
    flex: 1;
    min-height: 44px;
  }

  .wallet-premium .wallet-flat-state {
    min-height: 132px;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .wallet-premium .wallet-flat-plot {
    min-height: 72px;
  }

  .wallet-premium .wallet-flat-plot::before {
    inset: 10px 0 10px;
  }

  .wallet-premium .wallet-flat-plot > i {
    top: 37px;
  }

  .wallet-premium .wallet-flat-plot > b {
    top: 33px;
  }

  .wallet-premium .wallet-flat-plot > span {
    top: 8px;
  }

  .wallet-premium .wallet-flat-plot > small {
    top: 49px;
  }

  .wallet-premium .wallet-inline-support {
    min-height: 54px;
  }

  .wallet-premium .wallet-inline-support i {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-premium *,
  body:has(.wallet-premium) .platform-nav-pill > .group > div.absolute {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .wallet-skeleton-block::after,
  .wallet-skeleton-actions > i::after {
    animation: none !important;
  }
}
