.funds-main{max-width:1120px;margin:auto;padding:32px 20px 72px;color:#19304e}.funds-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.funds-card{background:white;border:1px solid #e0e8f4;border-radius:18px;padding:24px;min-width:0;margin:0 0 20px}.funds-card h2{font-size:21px;margin:0 0 15px}.funds-balance{font-size:32px;font-weight:750;margin:12px 0}.funds-main label{display:block;margin:12px 0;color:#526781}.funds-main input,.funds-main select,.funds-main textarea{box-sizing:border-box;display:block;width:100%;padding:12px;border:1px solid #ccdaef;border-radius:9px;font:inherit;margin-top:6px;background:white;color:#142c4b}.funds-main button{margin:8px 8px 0 0}.funds-note{color:#677d98;font-size:14px;line-height:1.65}.funds-status{padding:14px;background:#edf4ff;border-radius:10px;white-space:pre-wrap;overflow-wrap:anywhere}.funds-table{width:100%;border-collapse:collapse;font-size:14px}.funds-table td,.funds-table th{text-align:left;padding:13px 8px;border-bottom:1px solid #e5ecf6;overflow-wrap:anywhere}.funds-scroll{overflow-x:auto}.funds-secret{overflow-wrap:anywhere;white-space:pre-wrap}.funds-qr{width:210px;max-width:100%}.funds-item{padding:18px 0;border-bottom:1px solid #e5ecf6}.funds-unread{border-left:3px solid #2467ef;padding-left:12px}.funds-inline{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.funds-main [hidden]{display:none!important}.funds-main a{color:#2467ef}.funds-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;background:white;border-bottom:1px solid #e5ecf6;flex-wrap:wrap}.funds-top nav{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:14px}.funds-main pre{white-space:pre-wrap;overflow-wrap:anywhere}.funds-msg{min-height:24px;margin:20px 0}.funds-main button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:700px){.funds-grid{grid-template-columns:1fr}.funds-main{padding:22px 14px 45px}.funds-card{padding:19px}.funds-top{padding:14px}.funds-balance{font-size:27px}.funds-table{min-width:650px}}
/* Funds pages share the portal visual language without its root-id dependency. */
body[data-funds-screen]{font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:#19304e}
[data-funds-screen] *{box-sizing:border-box}[data-funds-screen] .ag-brand{font-size:24px;font-weight:750;letter-spacing:-1px;text-decoration:none;color:#19304e}[data-funds-screen] .ag-brand b{color:#2467ef}
[data-funds-screen] .ag-btn{min-height:44px;padding:10px 15px;border:1px solid #d4dfef;border-radius:9px;background:#fff;color:#243f64;font:inherit;font-size:14px;font-weight:600;cursor:pointer;line-height:1.4}
[data-funds-screen] .ag-primary{background:#2467ef;border-color:#2467ef;color:#fff}[data-funds-screen] .ag-btn:hover:not(:disabled){filter:brightness(.96)}[data-funds-screen] .ag-btn:focus-visible,[data-funds-screen] a:focus-visible{outline:3px solid #a8c6ff;outline-offset:3px}
.funds-top nav a{padding:8px 4px;text-decoration:none;color:#395476;font-weight:550}.funds-top nav a:hover{color:#2467ef}.funds-top nav{gap:9px}.funds-top{box-shadow:0 1px 4px #19304e06}.funds-main h1{font-size:30px;letter-spacing:-.5px;margin:0 0 18px}.funds-status:empty{display:none}.funds-card h2{font-weight:650}.funds-main input:disabled{background:#f4f6fa;color:#8795a8}.funds-main pre{font:14px/1.75 ui-monospace,SFMono-Regular,monospace;background:#f4f7fb;border:1px solid #e0e8f4;padding:14px;border-radius:9px}.funds-main a{font-weight:550;text-underline-offset:3px}
@media(max-width:700px){.funds-top{gap:10px}.funds-top nav{gap:6px}.funds-top nav a{font-size:13px}.funds-card h2{font-size:19px}.funds-main h1{font-size:27px}}
/* Wallet density: balances, one active action, then the live ledger. */
[data-funds-screen="wallet"] .funds-main{padding-top:12px}
[data-funds-screen="wallet"] .funds-main h1{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;font-size:27px;line-height:1.3;margin-bottom:10px}
.wallet-assets-label{font-size:.875em;font-weight:550;color:#526781;letter-spacing:0}
[data-funds-screen="wallet"] .funds-card{padding:20px;border-radius:14px;margin-bottom:16px}
[data-funds-screen="wallet"] .wallet-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 12px}
[data-funds-screen="wallet"] .wallet-summary-item{display:block;min-width:0;margin:0;padding:0;background:transparent;border:0;text-align:left;color:#19304e;text-decoration:none;font:inherit}
[data-funds-screen="wallet"] .wallet-summary-label{display:block;color:#526781;font-size:14px;white-space:nowrap}
[data-funds-screen="wallet"] .wallet-summary .funds-balance{display:block;font-size:clamp(15px,4.2vw,25px);line-height:1.4;margin:3px 0 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
[data-funds-screen="wallet"] .wallet-commission-link{cursor:pointer;min-height:44px}
[data-funds-screen="wallet"] .wallet-commission-link:hover{color:#195bdb}
.wallet-partner-hint{display:block;font-size:11px;color:#2467ef;margin-top:2px}
[data-funds-screen="wallet"] .wallet-partner-cta{display:inline-flex;align-items:center;text-decoration:none}
[data-funds-screen="wallet"] .wallet-operations>h2{font-size:18px;margin-bottom:12px}
[data-funds-screen="wallet"] .wallet-tabs{display:flex;gap:4px;overflow-x:auto;padding:0;border-bottom:1px solid #e5ecf6;margin:0 0 16px}
[data-funds-screen="wallet"] .wallet-tab{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:0;flex:1 0 auto;min-width:44px;margin:0;white-space:nowrap;min-height:46px;padding:8px 10px 11px;font-size:17px;border:0;border-radius:0;background:transparent;color:#526781}
[data-funds-screen="wallet"] .wallet-tab[aria-selected="true"]{color:#2467ef;background:transparent}
[data-funds-screen="wallet"] .wallet-tab[aria-selected="true"]::after{content:"";position:absolute;bottom:0;left:4px;right:4px;height:3px;border-radius:3px;background:#2467ef}
.wallet-tab-icon{display:none;width:19px;height:19px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
[data-funds-screen="wallet"] .wallet-operations .wallet-panel{padding:0;margin:0;border:0;border-radius:0;background:transparent}
[data-funds-screen="wallet"] .wallet-panel h2{font-size:18px;margin-bottom:10px}
[data-funds-screen="wallet"] .wallet-panel p{margin:10px 0}
[data-funds-screen="wallet"] .wallet-panel .funds-note{line-height:1.6}
[data-funds-screen="wallet"] .wallet-panel label{margin:8px 0}
[data-funds-screen="wallet"] .wallet-panel input,[data-funds-screen="wallet"] .wallet-panel select{min-height:44px;padding:9px 12px}
[data-funds-screen="wallet"] .wallet-panel>label{max-width:640px}
[data-funds-screen="wallet"] .wallet-fields,[data-funds-screen="wallet"] .wallet-verification{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:820px}
[data-funds-screen="wallet"] .wallet-address-row{display:flex;gap:12px;align-items:flex-end;max-width:900px;margin-top:12px}
[data-funds-screen="wallet"] .wallet-address-field{flex:1;min-width:0;margin:0;color:#526781}
[data-funds-screen="wallet"] .wallet-address-value{box-sizing:border-box;width:100%;margin-top:6px;padding:12px;border:1px solid #ccdaef;border-radius:9px;background:#fff;color:#142c4b;font:15px/1.6 ui-monospace,SFMono-Regular,monospace;white-space:normal;overflow-wrap:anywhere;word-break:break-all;user-select:all}
[data-funds-screen="wallet"] .wallet-address-value:focus-visible{outline:2px solid #2467ef;outline-offset:2px}
[data-funds-screen="wallet"] .wallet-address-row button{flex:none;margin:0}
[data-funds-screen="wallet"] #wallet-ledger h2{font-size:19px;margin-bottom:10px}
[data-funds-screen="wallet"] .funds-table td,[data-funds-screen="wallet"] .funds-table th{padding:10px 8px}
@media(max-width:700px){
 [data-funds-screen="wallet"] .funds-main{padding:12px 14px 40px}
 [data-funds-screen="wallet"] .funds-card{padding:16px}
 [data-funds-screen="wallet"] .funds-main h1{font-size:24px}
 [data-funds-screen="wallet"] .wallet-summary{gap:8px;margin-bottom:10px}
 [data-funds-screen="wallet"] .wallet-summary-label{font-size:12px}
 [data-funds-screen="wallet"] .wallet-tab{gap:0;padding:8px 6px 11px;font-size:16px}
 [data-funds-screen="wallet"] .wallet-fields,[data-funds-screen="wallet"] .wallet-verification{grid-template-columns:1fr;gap:0}
 [data-funds-screen="wallet"] .wallet-tabs{margin-bottom:14px}

 [data-funds-screen="wallet"] .wallet-address-row{flex-wrap:wrap}
 [data-funds-screen="wallet"] .wallet-address-field{flex-basis:100%}
}

/* Keep wallet action outcomes beside the form that triggered them. */
[data-funds-screen="wallet"] .wallet-panel .wallet-action-status{margin:14px 0 0;padding:10px 12px;border:1px solid #d5e4fb;border-radius:9px;background:#edf4ff;color:#244a7b;overflow-wrap:anywhere;font-size:14px;line-height:1.6}
[data-funds-screen="wallet"] .wallet-panel .wallet-action-status.is-error{background:#fff2f0;border-color:#f1c9c4;color:#9d2923}

/* Saved wallet details stay close to the related action, without adding primary navigation. */
.book-controls {display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.wallet-book-picker {display:block;margin-top:6px;}
.wallet-book-picker button {font-size:13px;}
.wallet-book-dialog {width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;padding:18px;border:1px solid #c7d8ef;border-radius:14px;color:#182b47;background:#fff;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;}
.wallet-book-dialog::backdrop {background:#10233d80;}
.wallet-book-dialog * {box-sizing:border-box;}
.book-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-18px;background:#fff;z-index:1;padding:8px 0;}
.book-heading h2 {font-size:22px;margin:0;}
.wallet-book-dialog h3 {font-size:17px;margin:12px 0;}
.wallet-book-dialog .book-form label {display:block;margin:10px 0;}
.wallet-book-dialog input {display:block;width:100%;min-height:44px;padding:10px;border:1px solid #c7d8ef;border-radius:8px;font:inherit;font-size:16px;}
.wallet-book-dialog button {min-height:44px;cursor:pointer;}
.wallet-book-dialog [hidden] {display:none!important;}
.book-status {color:#176342;overflow-wrap:anywhere;}
.book-status.is-error {padding:10px;background:#fff1ee;border:1px solid #e6aea5;border-radius:8px;color:#9b241e;font-size:16px;}
.book-entry {border:1px solid #dce5f2;border-radius:10px;padding:12px;margin:10px 0;overflow-wrap:anywhere;}
.book-entry p {margin:6px 0;}
.book-address {font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;}
.book-controls {margin:10px 0;}

.withdrawal-destination{overflow-wrap:anywhere}.withdrawal-record .wallet-action-status{display:block;font-size:1.1rem;font-weight:700}.withdrawal-record{margin-block:1rem}.withdrawal-record p{overflow-wrap:anywhere}

[data-funds-screen="wallet"] .withdrawal-record .withdrawal-state{display:block;font-size:18px;font-weight:700;padding:12px;border:1px solid #edca7b;border-radius:9px;background:#fff7df;color:#795000;line-height:1.6}[data-funds-screen="wallet"] .withdrawal-record .withdrawal-state.is-success{background:#e8f7ee;border-color:#8bcaa9;color:#116842}[data-funds-screen="wallet"] .withdrawal-record .withdrawal-state.is-error{background:#fff2f0;border-color:#e3a69e;color:#9d2923}

/* Ledger controls stay compact and keep input focus during balance polling. */
.wallet-ledger-tools,.wallet-ledger-nav,.wallet-ledger-jump{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.wallet-ledger-tools{margin:12px 0}.wallet-ledger-tools label{display:flex;align-items:center;gap:8px;margin:0}
.wallet-ledger-tools select{width:auto;max-width:100%;min-height:44px;margin:0}
.wallet-ledger-nav{margin-top:16px}.wallet-ledger-nav>span{flex-basis:100%;color:#526781;font-size:14px}
.wallet-ledger-jump{gap:8px}.wallet-ledger-jump label{display:flex;align-items:center;gap:8px;margin:0;font-size:14px}
.wallet-ledger-jump input{width:76px;min-height:44px;margin:0}
@media(max-width:700px){.wallet-ledger-tools{gap:8px}.wallet-ledger-tools label{font-size:13px;gap:5px}.wallet-ledger-tools select{padding:8px}.wallet-ledger-jump{flex-basis:100%}}
[data-funds-screen="wallet"] .wallet-deposit-qr{margin:20px 0 0;width:260px;max-width:100%;text-align:center}
[data-funds-screen="wallet"] .wallet-deposit-qr-box{position:relative;width:100%;aspect-ratio:1;background:#fff;border:1px solid #e0e8f4;border-radius:12px;overflow:hidden}
[data-funds-screen="wallet"] .wallet-deposit-qr-box>img{display:block;width:100%;height:100%}
[data-funds-screen="wallet"] .wallet-deposit-qr-brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:24%;height:10%;box-sizing:border-box;padding:4px;background:#fff;border-radius:5px;display:flex;align-items:center;justify-content:center}
[data-funds-screen="wallet"] .wallet-deposit-qr-brand img{display:block;width:100%;height:100%;object-fit:contain}
[data-funds-screen="wallet"] .wallet-deposit-qr figcaption{margin-top:8px;color:#677d98;font-size:13px;line-height:1.6}

/* Review pasted and saved destinations without horizontal input scrolling. */
.wallet-value-review{margin:8px 0;color:#526781;font-size:13px;max-width:100%;min-width:0}
.wallet-full-value{margin-top:4px;padding:10px;border:1px solid #d7e2f0;border-radius:8px;background:#f5f8fd;color:#142c4b;font:15px/1.6 ui-monospace,SFMono-Regular,monospace;white-space:normal;overflow-wrap:anywhere;word-break:break-all;user-select:all}
/* Full message details can contain destination addresses and transaction IDs. */
.funds-item{min-width:0;overflow-wrap:anywhere}
.funds-item p{white-space:pre-wrap;overflow-wrap:anywhere}

/* Two-step internal transfer: clear progress, full identities, one final authorization. */
.transfer-review{max-width:820px;padding:16px;border:1px solid #d7e2f0;border-radius:10px;background:#f5f8fd;overflow-wrap:anywhere}
.transfer-review h3{margin:0 0 12px;font-size:17px}.transfer-identity p{margin:6px 0}.transfer-total{display:block;font-size:25px;margin-top:12px;font-variant-numeric:tabular-nums}
.transfer-recent{max-width:820px;margin-top:24px}.transfer-recent h3{font-size:16px}
[data-funds-screen="wallet"] .transfer-recent-item{display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;margin:8px 0;padding:14px;gap:3px;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.transfer-recent-item .funds-note{font-weight:400}.transfer-recent-item span{max-width:100%}
@media(max-width:440px){#transfer-step-verify>.ag-btn{display:block;width:100%;margin:10px 0 0}}

/* Amount first, one recipient list and a compact selected identity. */
[data-funds-screen="wallet"] #transfer-step-details>.wallet-fields{display:block;max-width:820px}
.transfer-recipient-heading{display:flex;align-items:flex-start;gap:10px;max-width:820px;margin:20px 0 10px}
.transfer-recipient-heading h3{flex:none;font-size:16px;margin:8px 0}
.transfer-selected{flex:1;min-width:0;font-size:14px;overflow-wrap:anywhere;line-height:1.5;padding-top:8px}
.transfer-selected>span,.transfer-selected>strong,.transfer-identity>span,.transfer-identity>strong{display:block}
[data-funds-screen="wallet"] #transfer-amount{font-size:16px}
[data-funds-screen="wallet"] .transfer-recipient-heading>button{flex:none;margin:0;min-height:44px}
.transfer-recipient-id{font-size:13px;color:#677d98}
[data-funds-screen="wallet"] .transfer-recent{margin-top:0}
[data-funds-screen="wallet"] .transfer-recent-item.is-selected{border-color:#238251;background:#f0faf4;box-shadow:0 0 0 1px #238251}
.transfer-recent-item.is-selected .transfer-recent-action{background:#167346}
.transfer-amount-heading{display:flex;align-items:baseline;justify-content:space-between;gap:6px;flex-wrap:wrap;min-height:24px}
[data-funds-screen="wallet"] .transfer-amount-heading #transfer-available{margin:0;text-align:right;font-size:13px;overflow-wrap:anywhere;max-width:100%}

.transfer-recent-heading{display:flex;width:100%;align-items:flex-start;justify-content:space-between;gap:12px}
.transfer-recent-heading strong{flex:1;min-width:0;overflow-wrap:anywhere}
.transfer-recent-action{flex:none;white-space:nowrap;background:#2467ef;color:white;border-radius:7px;padding:7px 10px;font-size:13px;font-weight:600;line-height:1.4}
.transfer-recent-email{font-weight:500;overflow-wrap:anywhere}

/* Verification code and delivery action share one row, including narrow phones. */
.wallet-code-row{display:flex;align-items:center;gap:8px;margin-top:6px}
[data-funds-screen="wallet"] .wallet-code-row input{flex:1;min-width:0;width:0;margin:0;font-size:16px}
[data-funds-screen="wallet"] .wallet-code-row .wallet-send-code{flex:none;margin:0;min-height:44px;padding:9px 10px;font-size:13px;white-space:nowrap}
.wallet-result-dialog{text-align:center;overflow-wrap:anywhere}.wallet-result-dialog h2{font-size:23px}
.wallet-result-icon{font-size:40px;font-weight:700;color:#167346}.wallet-result-dialog[data-result="failure"] .wallet-result-icon{color:#b33128}.wallet-result-dialog[data-result="pending"] .wallet-result-icon{color:#936400}
.wallet-result-amount{font-size:28px;font-weight:750;color:#19304e;margin:12px 0}.wallet-result-note{font-size:15px;line-height:1.7}.wallet-result-dialog .book-controls{justify-content:center}.wallet-result-dialog .ag-btn{display:inline-flex;align-items:center;text-decoration:none;min-height:44px}

@media(max-width:360px){[data-funds-screen="wallet"] .wallet-tabs{gap:3px}[data-funds-screen="wallet"] .wallet-tab{gap:0;padding:8px 3px 11px;font-size:16px;min-width:44px}[data-funds-screen="wallet"] .wallet-tab-icon{width:16px;height:16px}}

/* Two-step withdrawals use the same selection and verification rhythm as transfers. */
[data-funds-screen="wallet"] .wallet-fields.withdrawal-fields{display:block;max-width:820px}.withdrawal-fields label{margin:12px 0}
#withdraw-available{font-size:13px;margin:0;text-align:right;overflow-wrap:anywhere}
.withdrawal-addresses .withdrawal-destination,#withdraw-selected .withdrawal-destination{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;word-break:break-all;font-size:14px;font-weight:500;line-height:1.6}
.withdrawal-review-amounts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;margin:14px 0 0;font-size:15px;line-height:1.6}
.withdrawal-review-amounts dt{color:#526781}.withdrawal-review-amounts dd{margin:0;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;font-weight:650}
.withdrawal-review-amounts dd:last-child{color:#2468ec;font-size:20px}.withdrawal-review .wallet-full-value{background:#fff}
@media(max-width:440px){#withdraw-step-verify>.ag-btn{display:block;width:100%;margin:10px 0 0}.withdrawal-review{padding:12px}}

/* One compact amount row; long precise values can wrap without shrinking text. */
[data-funds-screen="wallet"] .wallet-panel .withdrawal-amount-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
[data-funds-screen="wallet"] .wallet-panel .withdrawal-amount-row>input{flex:1 1 64px;width:72px;min-width:64px;margin:0;max-width:240px;font-size:16px}
.withdrawal-amount-row>span:first-child{flex:none}.withdrawal-amount-row #withdraw-available{flex:0 1 auto;font-size:13px;overflow-wrap:anywhere}
.withdrawal-address-label{display:block;margin-top:14px;font-size:16px;overflow-wrap:anywhere}
.wallet-scan-input-row{display:flex;align-items:center;gap:8px;margin-top:6px}.wallet-book-dialog .wallet-scan-input-row input{flex:1;width:0;min-width:0}
.wallet-book-dialog .wallet-scan-button{flex:none;margin:0;white-space:nowrap}.wallet-scan-panel{margin:10px 0;padding:10px;border:1px solid #ccdaed;border-radius:9px}
.wallet-scan-panel video{display:block;width:100%;max-height:300px;object-fit:contain;background:#162337;border-radius:6px}.wallet-scan-panel .book-status{font-size:14px;margin:8px 0}

/* Saved destinations have independent selection and address disclosure controls. */
[data-funds-screen="wallet"] .withdrawal-address-item{cursor:default}
[data-funds-screen="wallet"] .withdrawal-address-item .withdrawal-select{margin:0;border:0;min-height:44px;cursor:pointer}
.withdrawal-address-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;width:100%}
.withdrawal-address-row .withdrawal-destination{flex:0 1 auto;font-size:13px;white-space:nowrap}
[data-funds-screen="wallet"] .withdrawal-address-row .withdrawal-address-toggle{flex:none;margin:0;min-height:44px;padding:6px;font-size:12px;color:#2467ef;cursor:pointer}
.withdrawal-address-row.is-expanded .withdrawal-destination{flex-basis:100%;white-space:normal;font-size:14px;box-sizing:border-box}
[data-funds-screen="wallet"] .withdrawal-address-item .withdrawal-select{background:#2467ef;color:#fff;font-size:13px;font-weight:600;border-radius:7px}
[data-funds-screen="wallet"] .withdrawal-address-item.is-selected .withdrawal-select{background:#167346}

/* Compact withdrawal history: state, time and explorer; net amount and selection. */
.withdrawal-record-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:#677d98}
.withdrawal-record-meta time,.withdrawal-record-meta a{white-space:nowrap}
[data-funds-screen="wallet"] .withdrawal-record .withdrawal-state{display:inline-block;font-size:12px;font-weight:600;padding:2px 6px;border-radius:5px;line-height:1.5}
.withdrawal-record-amount{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:10px 0 6px;font-size:15px}
[data-funds-screen="wallet"] .withdrawal-record-amount .withdrawal-again{flex:none;margin:0;min-height:44px;padding:7px 10px;font-size:13px}
[data-funds-screen="wallet"] .withdrawal-record-amount .withdrawal-again.is-selected{background:#167346;border-color:#167346;color:white}
.withdrawal-record .withdrawal-address-label{margin-top:6px;font-size:14px}
.withdrawal-record .withdrawal-address-row{margin-top:4px}

/* One aligned withdrawal column; light actions keep the next step prominent. */
[data-funds-screen="wallet"] .wallet-operations #wallet-panel-withdraw{max-width:960px}
#wallet-panel-withdraw .withdrawal-fields,#wallet-panel-withdraw .transfer-recipient-heading,#wallet-panel-withdraw .withdrawal-addresses,#wallet-panel-withdraw .withdrawal-review{max-width:none}
#wallet-panel-withdraw .transfer-recipient-heading{margin:8px 0 6px}
[data-funds-screen="wallet"] #wallet-panel-withdraw .withdrawal-address-item{padding:8px 10px;gap:0;margin:6px 0;box-sizing:border-box}
[data-funds-screen="wallet"] #wallet-panel-withdraw .withdrawal-record{padding:10px 12px;margin:8px 0;box-sizing:border-box}
[data-funds-screen="wallet"] #wallet-panel-withdraw .withdrawal-select,[data-funds-screen="wallet"] #wallet-panel-withdraw .withdrawal-again,[data-funds-screen="wallet"] #wallet-panel-withdraw .withdrawal-address-toggle{background:transparent;border:0;box-shadow:none;color:#2467ef;margin:0;padding:6px 2px;min-height:44px;border-radius:4px;cursor:pointer}
[data-funds-screen="wallet"] #wallet-panel-withdraw .withdrawal-select[aria-pressed="true"],[data-funds-screen="wallet"] #wallet-panel-withdraw .withdrawal-again[aria-pressed="true"]{color:#167346;background:transparent}
#wallet-panel-withdraw .withdrawal-address-row{justify-content:space-between;gap:6px}
#wallet-panel-withdraw .withdrawal-address-row .withdrawal-destination{font-family:inherit;font-variant-numeric:tabular-nums;font-size:13px}
#wallet-panel-withdraw .withdrawal-record-amount{margin:4px 0}
@media(min-width:900px){
 [data-funds-screen="wallet"] #wallet-panel-withdraw .withdrawal-address-item{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:center}
 #wallet-panel-withdraw .withdrawal-address-item .transfer-recent-heading{display:contents}
 #wallet-panel-withdraw .withdrawal-address-item .transfer-recent-heading>strong{grid-column:1;grid-row:1}
 #wallet-panel-withdraw .withdrawal-address-item .withdrawal-select{grid-column:2;grid-row:1}
 #wallet-panel-withdraw .withdrawal-address-item .withdrawal-address-row{grid-column:1;grid-row:1;justify-content:flex-end;padding-left:200px;box-sizing:border-box}
 #wallet-panel-withdraw .withdrawal-address-row .withdrawal-destination{font:14px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:normal;overflow-wrap:anywhere;word-break:break-all;user-select:all}
 #wallet-panel-withdraw .withdrawal-address-item .transfer-recent-heading>strong{max-width:185px}
}

/* Latest review: match the transfer form's label/balance row and input below. */
[data-funds-screen="wallet"] #wallet-panel-withdraw .withdrawal-amount-row{display:block}
#wallet-panel-withdraw .withdrawal-amount-row .transfer-amount-heading{justify-content:space-between}
[data-funds-screen="wallet"] #wallet-panel-withdraw .withdrawal-amount-row>input{display:block;width:100%;max-width:none;margin-top:6px;min-height:44px;padding:8px 10px;font-size:16px}

/* Section histories share the withdrawal rhythm without loading inactive tabs. */
.wallet-section-records{margin-top:20px;padding-top:12px;border-top:1px solid #dfE7f2;max-width:960px}
.wallet-records-heading,.wallet-records-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.wallet-records-heading h3{margin:0;font-size:18px}.wallet-records-nav{justify-content:flex-start;margin-top:8px;font-size:13px}
[data-funds-screen="wallet"] .wallet-records-more{background:transparent;border:0;color:#2467ef;padding:6px 2px}
.wallet-section-record{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:12px 0;border-bottom:1px solid #e0e8f3;overflow-wrap:anywhere}
.wallet-record-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:#677d98}.wallet-record-meta strong{color:#19304e}.wallet-record-meta time{white-space:nowrap}
.wallet-record-value{font-size:16px;color:#167346;white-space:nowrap}.wallet-record-value.is-debit{color:#19304e}
.wallet-record-peer{display:flex;gap:4px 10px;flex-wrap:wrap;grid-column:1/-1;font-size:14px}.wallet-record-peer strong{font-weight:600}.wallet-section-record>.funds-note{grid-column:1/-1;margin:0;font-size:13px}
@media(max-width:440px){.wallet-section-record{grid-template-columns:minmax(0,1fr)}.wallet-record-value{grid-row:2}.wallet-record-peer{grid-row:3}}
/* Equal row centers and compact spacing for saved withdrawal addresses. */
#wallet-panel-withdraw .withdrawal-address-item .transfer-recent-heading{align-items:center}
#wallet-panel-withdraw .withdrawal-address-item .withdrawal-select,#wallet-panel-withdraw .withdrawal-address-toggle{display:inline-flex;align-items:center;justify-content:flex-end;line-height:1.4}
#wallet-panel-withdraw .withdrawal-address-item .transfer-recent-heading>strong{line-height:1.4}
#wallet-panel-withdraw .withdrawal-address-item .withdrawal-address-row{margin-top:0}

[data-funds-screen="wallet"] #wallet-panel-withdraw .withdrawal-record.is-selected{border-color:#238251;background:#f0faf4;box-shadow:0 0 0 1px #238251}

.wallet-currency-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.wallet-currency-grid .funds-card{margin:0;min-width:0}.wallet-currency-card.selected{outline:2px solid #2468ec;outline-offset:-1px}.wallet-currency-value{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #dce5f2;flex-wrap:wrap}.wallet-currency-value strong{font-size:23px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.wallet-currency-value span{font-size:13px}.wallet-currency-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.wallet-currency-actions button{min-height:44px;flex:1}.wallet-commission-separate>strong{font-size:23px}.wallet-commission-separate h2{font-size:18px}
@media(max-width:600px){.wallet-currency-grid{grid-template-columns:1fr;gap:14px}.wallet-currency-value strong{font-size:22px}}
@media(prefers-color-scheme:dark){.wallet-currency-card.selected{outline-color:#86afff}.sales-record-filter select{background:#1b2739;color:#e5edf8}.sales-site-pending{background:#20344e;color:#e5edf8}}
@media(max-width:600px){[data-funds-screen="wallet"] .wallet-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(52px,1fr));overflow:visible;gap:0}[data-funds-screen="wallet"] .wallet-tab{font-size:12px;white-space:normal;overflow-wrap:anywhere;min-width:0;padding:8px 2px 11px}}
