/* 只约束顶栏与钱包弹窗，不改变已确认画布、金额卡或经济模块。 */
.topbar.has-wallet{display:flex;flex-wrap:wrap;align-items:center;gap:18px}.topbar.has-wallet .header-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0}.topbar.has-wallet .header-actions .language-select{font-size:11px;max-width:105px;min-width:0;opacity:.8}.topbar.has-wallet .header-wallet{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.topbar.has-wallet #connect-wallet{white-space:nowrap;min-width:125px}.topbar.has-wallet .header-network{font-size:10px;color:var(--muted);white-space:nowrap}.topbar.has-wallet .header-project-link{font-size:12px;white-space:nowrap}.topbar.has-wallet .header-actions .button{flex:none}.topbar.has-wallet nav{order:3;flex-basis:100%;justify-content:flex-start;margin:0}.wallet-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(430px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #506644;border-radius:16px;padding:26px;background:#131e15;color:#e7efdf;box-shadow:0 24px 90px #0008;font-family:inherit}.wallet-dialog::backdrop{background:#07100bb8;backdrop-filter:blur(4px)}.wallet-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.wallet-dialog h2{font-family:inherit;font-size:23px;font-weight:550;line-height:1.3;letter-spacing:-.5px;margin:0}.wallet-dialog .wallet-close{background:none;color:#c6d3bc;border:0;font-size:28px;min-width:38px;min-height:38px;cursor:pointer}.wallet-dialog p{font-size:12px;line-height:1.7;margin:14px 0;color:#afbea5}.wallet-dialog .wallet-status{color:#d2eab8;overflow-wrap:anywhere}.wallet-dialog .wallet-provider-note{font-size:10px;color:#8fa180;margin-top:20px}.wallet-list{display:grid;gap:10px}.wallet-option{display:flex;align-items:center;gap:14px;text-align:left;padding:14px;border:1px solid #40573a;background:#1e2e1e;color:#e7efdf;border-radius:8px;font-family:inherit;font-size:15px;font-weight:500;line-height:1.4;cursor:pointer;min-width:0;overflow-wrap:anywhere}.wallet-option:hover{background:#2b4226;border-color:#91b86b}.wallet-letter{display:grid;place-items:center;flex:0 0 33px;height:33px;border:1px solid #678553;border-radius:9px;color:#badb96;background:#2a4125;font:550 18px Arial}.wallet-dialog button:focus-visible{outline:2px solid #c4ef92;outline-offset:3px}.wallet-dialog .wallet-refresh{background:transparent;color:#c0d3af;border-color:#48603b;margin-top:14px}.wallet-dialog .wallet-disconnect{color:#c6dba8;margin:18px 0 0;border:0;background:none;display:block;cursor:pointer}.wallet-dialog [hidden]{display:none!important}.wallet-dialog .wallet-foot{font-size:10px;margin-bottom:0}.wallet-dialog .wallet-empty{padding:14px;border:1px dashed #425a36;border-radius:8px}
@media(max-width:900px){.topbar.has-wallet .header-actions{flex-wrap:wrap;gap:10px}.topbar.has-wallet .header-network{display:none}.topbar.has-wallet .brand{flex:1 1 260px}.topbar.has-wallet .header-actions{flex:1 1 330px}.topbar.has-wallet nav{overflow-x:auto;white-space:nowrap}}
@media(max-width:520px){.topbar.has-wallet{gap:12px}.topbar.has-wallet .brand{flex-basis:100%}.topbar.has-wallet .header-actions{flex-basis:100%;gap:10px}.topbar.has-wallet .header-project-link{margin-right:auto;font-size:11px}.topbar.has-wallet .header-actions .language-select{max-width:94px}.topbar.has-wallet #connect-wallet{min-width:112px;font-size:12px}.topbar.has-wallet .header-actions>.button{font-size:11px;padding:8px}.wallet-dialog{padding:22px}}

.wallet-option-copy{min-width:0;display:grid;gap:3px}.wallet-dialog .wallet-source{font-size:10px;line-height:1.5;color:#9fb48c;font-weight:400;overflow-wrap:anywhere}

/* 未检测到不能假装可连接；展开区仍沿用同一视觉，不改变顶栏。 */
.wallet-option:disabled{opacity:.45;cursor:default}.wallet-option:disabled:hover{background:#1e2e1e;border-color:#40573a}.wallet-extra{border-top:1px solid #40573a;margin-top:14px;padding-top:2px}.wallet-extra .wallet-extra-title{font-size:11px}.wallet-extra .wallet-option{padding:11px 14px}
