#wallet-chooser {
  box-sizing: border-box;
  width: min(28rem, calc(100% - 2rem));
  max-height: min(43rem, calc(100dvh - 2rem));
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--folio-radius-panel);
  color: var(--foreground);
  background: var(--card);
  box-shadow: 0 18px 65px rgb(6 11 14 / 38%);
  font-family: var(--body-face);
}
#wallet-chooser::backdrop { background: rgb(6 11 14 / 72%); }
.wallet-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
#wallet-chooser h2 { margin: 0; font: 650 21px/1.25 var(--heading); letter-spacing: -.035em; }
#wallet-chooser h2:focus { outline: none; }
#wallet-chooser h3 { margin: 0 0 10px; color: var(--muted-foreground); font: 600 13px/1.35 var(--body-face); }
#wallet-chooser [data-wallet-close] {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted-foreground);
  background: var(--muted);
  font: 400 24px/1 var(--body-face);
}
#wallet-chooser [data-wallet-close]:hover { background: var(--secondary); color: var(--foreground); }
#wallet-chooser [data-wallet-detected] { display: grid; gap: 4px; }
.wallet-detected-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
#wallet-chooser [data-wallet-option] { min-height: 36px; padding: 6px 12px; font-size: 13px; }
#wallet-chooser [data-wallet-option]:disabled { opacity: .6; }
#wallet-chooser [data-wallet-recommended-section] { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
#wallet-chooser [data-wallet-recommended] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
#wallet-chooser [data-wallet-recommended] a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 8px 4px;
  border-radius: var(--folio-radius-control);
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
#wallet-chooser [data-wallet-recommended] a:hover,
#wallet-chooser [data-wallet-recommended] a:focus-visible { color: var(--foreground); background: var(--muted); }
.wallet-option-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: var(--folio-radius-inner);
  background: var(--secondary);
}
.wallet-option-icon::before { content: ''; width: 56%; height: 56%; background: var(--brand); mask: url(/assets/wallet.svg) center / contain no-repeat; }
.wallet-option-icon:has(img)::before { visibility: hidden; }
.wallet-option-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--secondary); }
.wallet-option-icon img[src$="/bitget.svg"] { background: #001f29; padding: 16%; }
.shell #wallet[data-wallet-connected]::before { display: none; }
.app-header #wallet[data-wallet-connected] [data-wallet-label] { color: var(--foreground); white-space: nowrap; }
.wallet-option-icon.wallet-header-icon { width: 22px; height: 22px; border-radius: 6px; }
#wallet-chooser [data-wallet-details] { padding: 14px; border-radius: var(--folio-radius-control); background: var(--muted); }
#wallet-chooser [data-wallet-identity] { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; }
#wallet-chooser [data-wallet-identity] .wallet-option-icon { grid-row: span 2; }
#wallet-chooser [data-wallet-network] { color: var(--muted-foreground); font-size: 13px; }
#wallet-chooser [data-wallet-address] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
#wallet-chooser [data-wallet-address] code { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; user-select: all; font: 13px/1.55 ui-monospace, monospace; color: var(--foreground); }
#wallet-chooser [data-wallet-copy] { min-height: 36px; padding: 6px 10px; font-size: 13px; }
#wallet-chooser [data-wallet-actions] { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#wallet-chooser [data-wallet-disconnect] { color: var(--destructive); }
#wallet-chooser [data-wallet-status], #wallet-chooser .wallet-empty { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
#wallet-chooser [data-wallet-status]:empty { display: none; }
@media (max-width: 480px) {
  #wallet-chooser { padding: 16px; }
  #wallet-chooser [data-wallet-close] { width: 44px; height: 44px; }
  #wallet-chooser [data-wallet-option] { min-height: 44px; }
}
