.wallet-picker { position: relative; display: inline-flex; align-items: center; max-width: 100%; }
.wallet-toggle {
    display: inline-flex; align-items: center; gap: 5px; padding: 0;
    background: transparent; border: 0; font: inherit; color: inherit; cursor: pointer;
}
.wallet-picker .wallet-menu {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 1100;
    width: 204px; max-width: calc(100vw - 16px); padding: 5px; border: 1px solid #393b40;
    border-radius: 10px; background: #202124; box-shadow: 0 8px 24px #0006;
    font-size: 14px; line-height: 1.4; text-align: start;
    color: #e8e9eb; -webkit-text-fill-color: currentColor;
}
.wallet-menu[hidden] { display: none; }
.wallet-menu-title {
    margin: 0; padding: 6px 10px; font-size: 12px; line-height: 1.4; color: #b9bbc1; white-space: normal;
}
.wallet-picker .wallet-menu > :is(button, a) {
    display: flex; align-items: center; justify-content: flex-start; gap: 8px;
    width: 100%; min-height: 36px; margin: 0; padding: 6px 10px; border: 0; border-radius: 6px;
    font: inherit; text-align: start; background: transparent; color: inherit; cursor: pointer; white-space: nowrap;
}
.wallet-picker .wallet-menu > :is(button, a):hover, .wallet-menu button[aria-pressed="true"] { background: #303236; }
.wallet-menu .wallet-currency-icon { display: inline-grid; place-items: center; flex: 0 0 16px; height: 16px; line-height: 1; }
.wallet-picker .wallet-menu > a { margin-top: 4px; border-top: 1px solid #393b40; border-radius: 0 0 6px 6px; }
.wallet-picker.ed-token-balance { flex-shrink: 0; color: #ac44ff; font-size: 13px; white-space: nowrap; }
.ed-token-balance .icon { background-color: currentColor; }
.ep-page > .ed-token-balance { display: flex; width: max-content; margin: 0 0 16px auto; }
.api-sidebar-bottom .wallet-menu { top: auto; bottom: calc(100% + 8px); inset-inline: 0 auto; }
.currency-save-error { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); margin: 0; padding: .6rem 1rem; background: #27282c; color: white; border-radius: 8px; z-index: 2000; }
@media (max-width: 760px) {
    .wallet-picker.ed-token-balance { font-size: 11px; }
}
