/* Funds use a shared charcoal and gold palette in either site theme. */
.account-preview,.wallet-dialog,.exchange-dialog{--panel:#191817;--bg:#111110;--input:#111110;--line:#49402d;--border:#49402d;--text:#f1e8d3;--muted:#b5aa93;--accent:#e4c373;--selected:#cfa95318;--shadow:#0006;background:linear-gradient(145deg,#24201a,#131312)!important;color:var(--text)!important;border:1px solid #8b713d!important;box-shadow:0 10px 35px #0003}
.account-preview>div,.wallet-dialog .wallet-note,.wallet-dialog .wallet-caption,.wallet-dialog .wallet-identity span,.exchange-dialog .exchange-note,.exchange-dialog .exchange-balances span{color:#b5aa93!important}.account-preview>strong,.withdraw-balance strong,.exchange-dialog .exchange-balances strong{color:#e4c373!important;font-variant-numeric:tabular-nums}.account-preview>strong small{color:#b5aa93!important}
.wallet-dialog .wallet-tabs{background:#100f0e!important;border:1px solid #4b402c}.wallet-dialog .wallet-tabs button{color:#b5aa93!important}.wallet-dialog .wallet-tabs button[aria-pressed=true]{color:#f1d18b!important;background:#a1813125!important}.wallet-dialog input,.wallet-dialog select,.exchange-dialog input{background:#100f0e!important;color:#f1e8d3!important;border-color:#65532f!important}.wallet-dialog .placeholder-address,.wallet-dialog .withdraw-balance,.exchange-dialog .exchange-rate{background:#d4ae5510!important;border:1px solid #7c653433!important;color:#e4c373!important}.wallet-dialog .primary-button,.exchange-dialog .primary-button{background:linear-gradient(135deg,#ebcd84,#cda34d)!important;color:#272010!important;border-color:#e0ba68!important}.wallet-dialog .wallet-footer,.wallet-dialog .wallet-field span,.exchange-dialog .exchange-history{color:#b5aa93!important}.exchange-dialog::backdrop,.wallet-dialog::backdrop{background:#080807b5!important}.exchange-dialog .exchange-title button,.wallet-dialog .icon-button{color:#e4c373!important}
[data-copy=demo],[data-i18n=demo],.balance-demo{display:none!important}

/* Compact funding forms keep the main action visible. */
.wallet-dialog{box-sizing:border-box;width:min(380px,calc(100vw - 24px));max-height:min(720px,88dvh);padding:16px;border-radius:14px;overflow:auto;scrollbar-width:thin}
.wallet-dialog .dialog-header{gap:10px;align-items:center}
.wallet-dialog .section-kicker{font-size:8px;letter-spacing:1.5px;margin:0}
.wallet-dialog h2{font-size:18px;line-height:1.3;margin:3px 0 0}
.wallet-dialog .icon-button{width:28px;height:28px;padding:0;font-size:18px;border-radius:8px}
.wallet-dialog .wallet-tabs{margin:10px 0;padding:3px;gap:3px}
.wallet-dialog .wallet-tabs button{padding:6px;font-size:12px;line-height:1.3}
.wallet-dialog .wallet-identity{gap:8px;padding-bottom:10px}
.wallet-dialog .wallet-identity img{width:24px;height:24px}
.wallet-dialog .wallet-identity strong{font-size:13px}
.wallet-dialog .wallet-identity>span{font-size:10px}
.wallet-dialog .wallet-field{margin:10px 0}
.wallet-dialog .wallet-field>span,.wallet-dialog .wallet-caption{font-size:11px;line-height:1.4;margin-bottom:4px}
.wallet-dialog .wallet-field input,.wallet-dialog .wallet-field select{box-sizing:border-box;min-height:34px;padding:7px 9px;border-radius:7px;font-size:12px;line-height:1.4}
.wallet-dialog h3{font-size:12px;line-height:1.4;margin:10px 0 6px}
.wallet-dialog .placeholder-address{padding:9px;font-size:11px;line-height:1.5}
.wallet-dialog .placeholder-warning{font-size:10px;line-height:1.5;margin:6px 0}
.wallet-dialog .credit-steps{line-height:1.6;margin:6px 0;padding-left:18px}
.wallet-dialog .wallet-note{font-size:11px;line-height:1.5;margin:6px 0;overflow-wrap:anywhere}
.wallet-dialog .withdraw-balance{margin:10px 0 6px;padding:8px 9px;border-radius:7px;align-items:center}
.wallet-dialog .withdraw-balance strong{font-size:15px}
.wallet-dialog .primary-button{width:100%;min-height:34px;padding:8px 10px;font-size:12px;line-height:1.4;border-radius:8px}
.wallet-dialog #withdraw-feedback,.wallet-dialog [role=status]{font-size:11px;line-height:1.5;margin:6px 0;overflow-wrap:anywhere}
.wallet-dialog [role=status]:empty{display:none}
.wallet-dialog .wallet-request-records{border-top:1px solid var(--line);margin-top:10px;padding-top:2px}
.wallet-dialog .wallet-request-records>div{max-height:96px;overflow:auto;scrollbar-width:thin;font-size:11px;line-height:1.5}
.wallet-dialog .wallet-request-records .wallet-note{padding:5px 0;border-bottom:1px solid var(--line);margin:0}
.wallet-dialog .wallet-footer{padding-top:8px;margin-top:10px;font-size:10px;line-height:1.4}
@media(max-width:700px){
 .wallet-dialog{width:min(380px,calc(100vw - 20px));padding:14px;max-height:88dvh}
 .wallet-dialog .wallet-field input,.wallet-dialog .wallet-field select{font-size:16px;min-height:36px;padding:6px 8px}
 .wallet-dialog .wallet-request-records>div{max-height:80px}
}

/* Compact exchange and refund layout. */
.exchange-dialog{box-sizing:border-box;width:min(400px,calc(100vw - 24px));max-height:min(660px,88dvh);padding:16px;border-radius:14px;scrollbar-width:thin}
.exchange-dialog .exchange-title h2{font-size:19px;margin:3px 0}.exchange-dialog .exchange-title button{width:30px;height:30px;padding:0;font-size:22px}.exchange-dialog .exchange-rate{margin:10px 0;padding:10px;font-size:27px}.exchange-dialog .exchange-balances{margin:10px 0}.exchange-dialog .exchange-balances strong{font-size:21px}.exchange-dialog input{box-sizing:border-box;padding:8px 10px;font-size:17px}.exchange-dialog .exchange-tabs{margin-top:8px}.exchange-dialog .exchange-tabs button{padding:6px}.exchange-dialog .exchange-receive{margin:10px 0}.exchange-dialog .exchange-receive strong{font-size:20px}.exchange-dialog [role=status]:empty{display:none}.exchange-dialog form>.primary-button{padding:10px;min-height:38px}.exchange-dialog .exchange-note{margin:7px 0;font-size:11px;line-height:1.5}.exchange-dialog h3{padding-top:8px;margin:10px 0 5px}.exchange-dialog .exchange-all{display:block;width:100%;border:1px solid #ad8b44;border-radius:8px;background:#b99a4220;padding:7px;margin-top:8px;font-size:12px}.exchange-dialog .exchange-all[hidden]{display:none}.exchange-dialog .exchange-history{max-height:68px;overflow:auto}

.wallet-dialog .wallet-virtual-credit{display:none}.wallet-dialog .wallet-deposit-address input{font-size:11px;overflow-wrap:anywhere}.deposit-qr{width:160px;height:160px;padding:8px;margin:8px auto;background:#fff;box-sizing:border-box}.deposit-qr:empty{display:none}.deposit-qr canvas,.deposit-qr img{width:144px;height:144px}.wallet-dialog .wallet-request-records summary{cursor:pointer;color:var(--muted);font-size:11px;padding:6px 0}.wallet-dialog [data-payment-back]{display:block;margin:7px auto;background:transparent;border:0;color:var(--accent);font-size:11px}.wallet-dialog [data-payment-back][hidden]{display:none}.balance-refresh{border:1px solid var(--line);border-radius:6px;padding:2px 6px;color:var(--accent);background:transparent;cursor:pointer;font-size:16px;line-height:1.1;margin-left:5px}.balance-refresh:disabled{opacity:.5}

.balance-refresh.is-refreshing{animation:balance-spin .8s linear infinite}@keyframes balance-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.balance-refresh.is-refreshing{animation:none}}

/* Match the compact deposit window, with secondary records collapsed. */
.exchange-dialog{width:min(380px,calc(100vw - 24px));max-height:min(620px,88dvh);padding:16px;font-size:12px}
.exchange-dialog .exchange-title>div>span{font-size:9px;letter-spacing:1.5px}
.exchange-dialog .exchange-title h2{font-size:18px;line-height:1.3;margin:3px 0}
.exchange-dialog .exchange-title button{width:28px;height:28px;font-size:20px}
.exchange-dialog .exchange-tabs{margin:10px 0 8px;padding:3px;gap:3px}
.exchange-dialog .exchange-tabs button{padding:6px;font-size:12px;line-height:1.3}
.exchange-dialog .exchange-rate{margin:8px 0;padding:8px;font-size:24px;gap:8px;border-radius:10px}
.exchange-dialog .exchange-balances{margin:8px 0;gap:10px}
.exchange-dialog .exchange-balances strong{font-size:19px;margin-top:3px}
.exchange-dialog form>label{font-size:11px;margin-bottom:4px}
.exchange-dialog input{min-height:34px;padding:7px 9px;font-size:14px;border-radius:7px}
.exchange-dialog .exchange-presets{margin-top:7px;gap:6px}
.exchange-dialog .exchange-presets button{min-height:28px;padding:5px;font-size:11px}
.exchange-dialog .exchange-receive{margin:8px 0;font-size:12px}
.exchange-dialog .exchange-receive strong{font-size:18px}
.exchange-dialog [role=status]{min-height:0;margin:6px 0;font-size:11px;line-height:1.5}
.exchange-dialog form>.primary-button{min-height:34px;padding:8px 10px;font-size:12px;border-radius:8px}
.exchange-dialog .exchange-note{margin:6px 0;font-size:11px;line-height:1.5}
.exchange-dialog .exchange-records{border-top:1px solid var(--line);margin-top:8px;padding-top:6px}
.exchange-dialog .exchange-records summary{font-size:11px;color:var(--muted);cursor:pointer;padding:4px 0}
.exchange-dialog .exchange-records .exchange-history{max-height:90px;overflow:auto;scrollbar-width:thin}
@media(max-width:700px){.exchange-dialog{width:min(380px,calc(100vw - 20px));padding:14px;max-height:88dvh}.exchange-dialog input{font-size:16px}}

.wallet-tron-orders{border-top:1px solid var(--line);margin-top:12px;padding-top:8px}.wallet-tron-orders h3{margin:0 0 4px}.wallet-tron-order-form{margin-top:4px}.wallet-tron-order-form .wallet-field{margin:7px 0}.wallet-tron-feedback{font-size:10px;color:var(--accent);line-height:1.4;margin:5px 0}.wallet-tron-order-list{max-height:110px;overflow:auto;margin-top:5px}.wallet-tron-order{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding:5px 0;font-size:10px}.wallet-tron-order strong{color:var(--accent);font-weight:500}.wallet-tron-order span{color:var(--muted);text-align:right}
.wallet-tron-paused-banner{padding:6px 8px;border:1px solid #9b6d42;background:#7b542622;color:#e4b17a;font-size:11px;line-height:1.45;border-radius:6px}
.wallet-tron-choice[hidden],.wallet-tron-detail[hidden]{display:none}.wallet-tron-back{border:0;background:transparent;color:var(--accent);padding:3px 0;font-size:11px;cursor:pointer}.wallet-tron-requested{margin:9px 0 3px;color:var(--muted);font-size:11px}.wallet-tron-requested strong{color:var(--text);font-variant-numeric:tabular-nums}.wallet-tron-due{margin:3px 0 9px;color:var(--accent);font-size:12px}.wallet-tron-due strong{display:block;font-size:21px;line-height:1.25;font-variant-numeric:tabular-nums}.wallet-tron-countdown{border:1px solid var(--line);border-radius:7px;padding:7px 9px;margin:10px 0;color:var(--accent);font-size:12px;font-variant-numeric:tabular-nums}.wallet-tron-detail .wallet-deposit-address{border-top:1px solid var(--line);padding-top:8px}.wallet-tron-detail .wallet-deposit-address[hidden]{display:none}
