/* Wallet account controls are panel cards; the address explorer also uses wallet-profile. */
.wallet-dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 48px);box-sizing:border-box;padding:24px;border:1px solid var(--line,#dce4ec);border-radius:20px;background:var(--night-surface,#fff);color:var(--ink,#17243b);box-shadow:0 24px 90px #10243c30;overflow:auto;font:inherit}
.wallet-dialog::backdrop{background:#14253b66;backdrop-filter:blur(3px)}
.wallet-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.wallet-dialog h2{margin:0;font-size:20px;line-height:1.4}.wallet-dialog [data-wallet-close]{font-size:24px;padding:2px 10px;background:transparent;color:inherit;border:0}
.wallet-dialog p{line-height:1.65;font-size:14px}.wallet-dialog button,.wallet-login-entry button,.wallet-profile.panel-card button,[data-deweb-wallet]{cursor:pointer;border:1px solid var(--line,#ccd8e5);border-radius:10px;padding:11px 16px;background:var(--night-surface,#fff);color:inherit;font:inherit;font-size:14px}.wallet-dialog button:hover,.wallet-login-entry button:hover,[data-deweb-wallet]:hover{border-color:#326dd7}.wallet-dialog button:disabled,.wallet-profile.panel-card button:disabled{cursor:default;opacity:.5}.wallet-dialog button:focus-visible,.wallet-dialog input:focus-visible,[data-deweb-wallet]:focus-visible{outline:3px solid #659bff;outline-offset:3px}
.wallet-option{display:block;width:100%;text-align:left;margin:10px 0;font-weight:600!important}.wallet-option:first-child{background:#f8d649;color:#202020;border-color:#f8d649}.wallet-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.wallet-actions button[aria-pressed=true]{background:#eaf2ff;border-color:#326dd7;color:#2459b8}.wallet-dialog form{display:grid;gap:14px;margin-top:20px}.wallet-dialog form[hidden],.wallet-dialog [hidden]{display:none!important}.wallet-dialog label{display:grid;gap:7px;font-size:14px}.wallet-dialog input{width:100%;box-sizing:border-box;padding:12px;border:1px solid var(--line,#ccd8e5);border-radius:9px;background:var(--night-surface,#fff);color:inherit;font:inherit}.wallet-dialog form>button{background:#2660d0;color:white;border-color:#2660d0}.wallet-dialog [data-wallet-error]{color:#b44731;min-height:1.5em;overflow-wrap:anywhere}
.wallet-address{display:block;overflow-wrap:anywhere;user-select:all;line-height:1.7;font-size:13px}.wallet-login-entry{display:grid;width:100%;gap:12px;margin-top:24px;padding-top:22px;border-top:1px solid var(--line,#dce4ec);text-align:center}.wallet-login-entry>span,.wallet-login-entry>small{color:var(--muted,#6a7b92);font-size:13px;line-height:1.7}.wallet-profile.panel-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;margin:20px 0}.wallet-profile.panel-card h2{margin:8px 0 12px}.wallet-profile.panel-card p{font-size:14px;line-height:1.65;color:var(--muted,#6a7b92)}.wallet-profile.panel-card small{letter-spacing:.12em;font-size:11px}.wallet-identity{display:block;margin-top:8px;font-size:13px;color:var(--muted,#6a7b92)}.wallet-current:empty{display:none}.wallet-current{overflow-wrap:anywhere}[data-deweb-wallet]{margin-left:auto;white-space:nowrap}.deweb-topbar{flex-wrap:wrap}
@media(max-width:560px){.wallet-dialog{padding:20px}.wallet-profile.panel-card{flex-direction:column;align-items:stretch}.wallet-dialog h2{font-size:18px}[data-deweb-wallet]{padding:8px 10px;font-size:12px}}

.wallet-chooser{position:fixed;top:50%;left:50%;right:auto;bottom:auto;margin:0;transform:translate(-50%,-50%);z-index:1000}
/* Binance's original SDK asset identifies the wallet connector on Web and App. */
.binance-wallet-icon{width:28px;height:28px;flex:0 0 28px;object-fit:contain;border-radius:7px}
.wallet-generic-icon{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:7px;background:var(--night-surface-alt,#eef2f6);font-size:22px;color:var(--ink)}
.wallet-login-entry .wallet-binance-primary,.wallet-profile.panel-card .wallet-binance-primary{display:flex;align-items:center;justify-content:center;gap:10px;padding:13px 16px;background:#f0b90b;color:#171b22;border-color:#f0b90b;font-weight:650;min-height:52px}
.wallet-login-entry .wallet-binance-primary:hover,.wallet-profile.panel-card .wallet-binance-primary:hover{background:#f8ce39;border-color:#f0b90b}
.wallet-login-entry .wallet-other-button,.wallet-profile.panel-card .wallet-other-button{border:0;background:transparent;color:var(--muted);padding:8px;text-decoration:underline;text-underline-offset:4px}
.wallet-profile-actions{display:grid;gap:8px;flex-shrink:0}.wallet-profile.panel-card>div:first-child{min-width:0}.wallet-profile-actions>button{min-height:44px}
.wallet-dialog .wallet-option{display:flex;align-items:center;gap:12px;padding:16px;text-align:left;min-height:78px;background:var(--night-surface,#fff);color:var(--ink);border-color:var(--line)}
.wallet-dialog .wallet-option:first-child{background:var(--night-tint-warm,#fffaf0);border-color:#eac860}
.wallet-option .binance-wallet-icon,.wallet-option .wallet-generic-icon{width:40px;height:40px;flex-basis:40px}
.wallet-option>span:not(.wallet-generic-icon):not(.wallet-option-arrow){display:grid;gap:4px}.wallet-option b{font-size:15px;font-weight:650}.wallet-option small{font-size:12px;line-height:1.5;color:var(--muted);font-weight:400}.wallet-option-arrow{margin-left:auto;color:var(--muted)}
.wallet-network-tag{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid var(--line);border-radius:7px;background:var(--night-surface-alt,#f6f8fb);font-size:12px!important;color:var(--muted);margin:0 0 10px}.wallet-network-tag i{width:6px;height:6px;border-radius:50%;background:#d6a200}
.wallet-dialog .wallet-mobile-hint{color:var(--muted);font-size:12px;line-height:1.65;margin:18px 0 6px}.wallet-dialog .wallet-intro{color:var(--muted);margin:0 0 16px}
.wallet-dialog .wallet-text-button{display:block;width:100%;min-height:44px;background:var(--night-surface-alt,#f7f8fa);border-color:var(--line)}
.wallet-chooser-backdrop{position:fixed;inset:0;background:#14253b66;backdrop-filter:blur(3px);z-index:999}
.wallet-chooser{max-height:calc(100dvh - 32px)}
.wallet-provider-heading{display:flex;align-items:center;gap:10px;margin:10px 0 18px}.wallet-warning{color:var(--night-text-danger,#b44731)!important}
[data-deweb-wallet]{display:inline-flex;align-items:center;gap:8px;min-height:44px}.deweb-topbar [data-deweb-wallet] .binance-wallet-icon{width:24px;height:24px;flex-basis:24px}
[data-deweb-wallet][data-wrong-chain=true]{border-color:#c77a1d}
/* Site tools retain the shared fixed bottom-right layout on every route. */
@media(max-width:560px){.wallet-profile-actions{width:100%}.wallet-dialog{padding:20px;width:calc(100vw - 24px)}.wallet-dialog .wallet-option{padding:12px;min-height:74px}.wallet-actions button{min-height:44px}.wallet-dialog input{font-size:16px;min-height:46px}.wallet-profile.panel-card .wallet-address{font-size:12px}.deweb-topbar [data-deweb-wallet]{gap:5px}.deweb-topbar [data-deweb-wallet] .binance-wallet-icon{width:20px;height:20px;flex-basis:20px}}

/* Neutral entry; individual wallet brands appear inside the chooser. */
.wallet-login-entry .wallet-login-primary,.wallet-profile.panel-card .wallet-login-primary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;background:var(--night-surface-alt,#f4f7fa);border:1px solid var(--line,#ccd8e5);color:var(--ink,#17243b);font-weight:650}
.wallet-generic-icon svg{width:22px;height:22px}.wallet-brand-icon{width:40px;height:40px;flex:0 0 40px;object-fit:contain;border-radius:10px;background:#fff}
.wallet-dialog a.wallet-option{text-decoration:none;box-sizing:border-box;border:1px solid var(--line,#ccd8e5);border-radius:10px;font-size:14px}
.wallet-dialog .wallet-option:first-child{background:var(--night-surface,#fff);border-color:var(--line,#ccd8e5)}
.wallet-dialog .wallet-option:hover{border-color:#4f94b8;background:var(--night-surface-alt,#f4f7fa)}
.wallet-dialog .wallet-option:focus-visible{outline:3px solid #659bff;outline-offset:3px}
.wallet-dialog .wallet-option>span:not(.wallet-generic-icon):not(.wallet-option-arrow){min-width:0}.wallet-option b{overflow-wrap:anywhere}
.wallet-provider-heading .wallet-brand-icon{width:28px;height:28px;flex-basis:28px}
[data-deweb-wallet] .wallet-brand-icon{width:24px;height:24px;flex-basis:24px}
.wallet-change-summary{padding:14px;background:var(--night-surface-alt,#f4f7fa);border:1px solid var(--line,#ccd8e5);border-radius:10px;line-height:1.8;font-size:14px;overflow-wrap:anywhere}
.wallet-change-summary strong{display:block}.wallet-dialog .wallet-confirm-label{display:flex;align-items:flex-start;gap:9px;line-height:1.6}.wallet-dialog .wallet-confirm-label input{width:18px;min-height:18px;height:18px;margin:3px 0 0;flex-shrink:0}
.wallet-dialog .wallet-change-note{font-size:12px;color:var(--muted,#6a7b92)}
/* Match account cards and keep long wallet addresses from widening mobile rows. */
.wallet-dialog{border-radius:12px}.wallet-profile.panel-card{padding:20px;gap:16px;border-radius:11px}.wallet-profile.panel-card h2{font-size:19px;margin:5px 0 10px}.wallet-dialog button,.wallet-dialog input,.wallet-login-entry button,.wallet-profile.panel-card button{border-radius:6px}.wallet-profile-actions{min-width:148px;max-width:100%}.wallet-profile.panel-card .wallet-address{font-family:var(--mono);word-break:break-all}.wallet-dialog .wallet-change-summary{border-radius:8px}
@media(max-width:560px){.wallet-profile.panel-card{padding:16px;margin:16px 0}.wallet-dialog{max-height:calc(100dvh - 24px);padding:18px}.wallet-profile-actions{width:100%}.wallet-login-entry{margin-top:18px;padding-top:18px}}
