/* Account layouts shared by the wallet, funding, support and profile views. */
:root{--muted:#9da5ba;--line:#303646;--panel:#131722;--raised:#202638;--accent:#7b91ff}
html{color-scheme:light;scrollbar-color:var(--line) var(--line)}
body{background:var(--bg);font-synthesis:none}
button,input,select,textarea{font-family:var(--body-font),Manrope,sans-serif}
.exchange-header{min-height:62px;border-bottom:1px solid var(--line)}
.exchange-header nav>button[aria-current=page]{background:transparent;color:var(--accent);box-shadow:none}
.exchange-header details>div{border-radius:7px;padding:8px;box-shadow:0 16px 48px #44302130}
.exchange-header details>div>button:hover{background:var(--raised);color:var(--text);border-radius:4px}
.exchange-header .language-picker button[aria-pressed=true]{background:var(--raised);color:var(--text)}
.exchange-main:not([data-view=market]):not(:has(.market-tool-page)){max-width:1206px;padding:28px 28px 0}
.exchange-main>.nav{justify-content:flex-start;gap:2px;border:1px solid var(--line);border-radius:7px;padding:7px 10px;margin:0 0 28px;background:var(--panel)}
.exchange-main>.nav button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 12px;font-size:12px;font-weight:400;border-radius:4px;color:var(--muted)}
.exchange-main>.nav button.active{color:var(--accent);background:var(--panel)}
.account-nav-icon{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.exchange-main .account-heading{margin-bottom:24px}
.exchange-main .account-heading h1{font-size:24px;line-height:1.4;font-weight:500;letter-spacing:-.4px}
.exchange-main .account-owner{font-size:12px}
.exchange-main .panel{border-radius:7px;border:1px solid var(--line);padding:24px}
.exchange-main .panel h2{font-size:17px;line-height:1.5;font-weight:500;letter-spacing:0;margin-bottom:18px}
.exchange-main .form label{color:var(--muted);font-weight:400}
.exchange-main .form :is(input,select,textarea){background:var(--bg);border-color:var(--line);font-size:13px;border-radius:4px}
.exchange-main .form :is(input,select,textarea):focus-visible{outline:2px solid var(--accent-line);outline-offset:2px}
.exchange-main .form>button[type=submit]{font-weight:500;min-height:44px;min-width:160px}
.exchange-main .primary,#dialog .primary{background:linear-gradient(100deg,var(--selected),var(--selected));color:var(--text);border-color:transparent}
.exchange-main .primary:hover,#dialog .primary:hover{background:linear-gradient(100deg,var(--selected),var(--selected))}
.exchange-main .hint{color:var(--muted);font-size:12px;line-height:1.75}
.wallet-summary{gap:22px;margin-bottom:26px}
.wallet-identity,.wallet-promo{min-height:122px;border:1px solid var(--line);border-radius:7px;background:var(--panel);padding:22px}
.wallet-identity>img{width:52px;height:52px}
.wallet-identity strong{font-size:14px;font-weight:500}.wallet-identity small{font-size:11px;color:var(--muted)}
.wallet-usd{min-width:35%!important;padding-left:25px;box-shadow:32px 0 #44302123}.wallet-usd strong{font-size:23px;font-weight:500}.wallet-usd small{color:var(--muted)}
.wallet-promo{background:var(--raised);justify-content:center}
.wallet-promo h2{font-size:14px;font-weight:500;margin-bottom:12px}
.wallet-promo .form{gap:10px;grid-template-columns:minmax(0,1fr) 112px!important}
.exchange-main .wallet-promo .form>button[type=submit]{font-size:12px;width:112px;min-width:0;height:40px;min-height:40px}
.exchange-main .wallet-promo .form input{height:40px;min-height:40px;font-size:12px}
.wallet-controls{gap:24px;margin:0 0 20px;flex-wrap:wrap}
.wallet-controls>input{width:220px;background:var(--panel);border:1px solid var(--line);min-height:40px}
.wallet-controls>label{font-size:12px;gap:9px}
.wallet-controls .actions{gap:8px}.wallet-controls .actions button{min-width:104px;min-height:40px;font-size:12px;font-weight:400;border:1px solid var(--line);border-radius:4px;background:var(--raised)}
.wallet-controls .actions button:hover{background:var(--selected);border-color:var(--accent-line)}
.wallet-table{border-radius:7px;border:1px solid var(--line)}
.wallet-table td,.wallet-table th{padding:12px 22px;height:54px;font-size:12px;font-weight:400;font-variant-numeric:tabular-nums}
.wallet-table th{height:44px;background:var(--raised);color:var(--muted)}
.wallet-table th:first-child{width:58%}.wallet-table td:nth-child(n+2){white-space:nowrap}
.wallet-table td button{gap:10px;color:var(--text);min-height:30px}
.wallet-table td button:hover{color:var(--accent)}
.wallet-table td button strong{font-size:13px;font-weight:400}.wallet-table td small{font-size:11px}
.exchange-main .page-grid.funding-layout{grid-template-columns:minmax(245px,.78fr) minmax(0,1.4fr);gap:28px;align-items:start}
.funding-assets{min-width:0}.funding-assets h2{font-size:13px!important;font-weight:400!important;color:var(--muted);margin:0 0 14px!important}
.exchange-main .funding-assets .asset-list{gap:10px}
.exchange-main .funding-assets .asset{display:flex;min-height:65px;padding:16px 18px;border-radius:4px;border:1px solid var(--line);background:var(--panel);gap:14px}
.exchange-main .funding-assets .asset:hover{border-color:var(--accent-line);background:var(--panel)}
.exchange-main .funding-assets .asset[aria-pressed=true]{background:linear-gradient(100deg,var(--raised),var(--selected));border-color:var(--accent-line);box-shadow:none}
.funding-assets .asset strong{font-size:14px;font-weight:400}.funding-assets .asset small{font-size:11px;color:var(--muted)}
.funding-assets .asset[aria-pressed=true] small{color:var(--muted)}
.exchange-main .funding-assets .asset>b{margin-left:auto;font-size:12px;font-weight:400;max-width:45%;text-align:right}
.funding-assets .coin{width:30px;height:30px;object-fit:contain}
.funding-content{display:grid;gap:20px;min-width:0}
.exchange-main .funding-content>.panel{margin:0}
.funding-content .panel{padding:0;overflow:hidden}.funding-content .panel>h2{padding:19px 24px;border-bottom:1px solid var(--line);margin:0}
.funding-content .panel>.funding-body{padding:24px}
.funding-selection{display:flex;align-items:center;gap:12px;margin-bottom:24px}.funding-selection .coin{width:38px;height:38px}
.funding-selection>div{display:grid;gap:3px}.funding-selection small{color:var(--muted);font-size:12px}.funding-selection strong{font-size:16px;font-weight:500}
.funding-network{margin-bottom:22px}.funding-network select{background:var(--bg)}
.funding-address-grid{display:grid;grid-template-columns:166px minmax(0,1fr);gap:25px;align-items:center;margin:22px 0}
.funding-qr{width:166px;margin:0;padding:10px;border-radius:4px}.funding-qr svg{width:146px;height:146px}
.funding-address-grid p{margin:0;font-size:13px;line-height:1.8;color:var(--muted)}
.funding-copy{display:flex;align-items:center;gap:10px;background:var(--bg);border:1px solid var(--line);border-radius:4px;padding:6px 6px 6px 15px;margin:18px 0}
.funding-copy code{flex:1;min-width:0;overflow-wrap:anywhere;color:var(--muted);font-size:12px;line-height:1.6}.funding-copy button{flex:none;min-width:92px;min-height:40px;font-size:12px}
.funding-unavailable{border:1px dashed var(--line);border-radius:6px;padding:24px;background:var(--panel);margin:16px 0 6px}
.funding-unavailable p{color:var(--muted);line-height:1.75;font-size:13px;margin:0 0 16px}.funding-unavailable button{min-height:40px;font-size:12px}
.funding-information{padding:20px 24px!important}.funding-information>h2{padding:0!important;border:0!important;font-size:15px!important;margin:0 0 12px!important}.funding-information p{font-size:12px;color:var(--muted);line-height:1.8;margin:0}
.exchange-main .history-panel{padding:0}.history-panel>h2{padding:21px 24px;margin:0!important;border-bottom:1px solid var(--line)}.history-panel .filters{padding:20px 24px 0;margin:0 0 20px}
.transaction-table table{min-width:800px;table-layout:fixed}.transaction-table th:first-child{width:15%}.transaction-table th:nth-child(2){width:17%}.transaction-table th:nth-child(3){width:16%}.transaction-table th:nth-child(4){width:15%}.transaction-table th:nth-child(5){width:16%}.transaction-table th:nth-child(6){width:12%}.transaction-table th:last-child{width:9%}
.exchange-main .transaction-table :is(td,th){font-size:11px;padding:15px 16px;overflow-wrap:anywhere;line-height:1.6}.transaction-table .transaction-id{display:block;max-width:100%;font-family:inherit;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.transaction-table td.amount-cell{font-variant-numeric:tabular-nums}.transaction-table button{width:100%;padding:5px!important;font-size:11px!important}
.exchange-main .badge{font-size:10px;font-weight:400;border:1px solid var(--line);background:var(--raised);color:var(--muted);border-radius:4px}
.exchange-main .badge:is(.pending,.submitted){background:var(--raised);color:var(--warning);border-color:var(--line)}.exchange-main .badge:is(.approved,.recorded,.reviewed,.completed,.active){background:var(--success-bg);color:var(--success);border-color:var(--line)}.exchange-main .badge:is(.declined,.changes_requested){background:var(--error-bg);color:var(--error);border-color:var(--line)}
.support-contact{display:flex;align-items:center;gap:13px;background:var(--panel);border:1px solid var(--line);border-radius:7px;padding:18px 22px;margin-bottom:22px}
.support-contact>img{width:36px;height:36px;border-radius:50%}.support-contact>div{display:grid;gap:3px;min-width:0}.support-contact strong{font-size:15px;font-weight:500}.support-contact small{font-size:12px;color:var(--muted)}.support-contact button{margin-left:auto;min-height:36px;font-size:12px;padding:7px 12px;background:var(--panel)}
.support-conversation{background:var(--panel);border:1px solid var(--line);border-radius:7px;overflow:hidden}
.support-conversation>h2{font-size:17px;font-weight:500;padding:19px 24px;margin:0;border-bottom:1px solid var(--line)}
.support-history{min-height:300px;height:min(48vh,500px);overflow-y:auto;padding:20px 24px;overscroll-behavior:contain;scrollbar-width:thin}
.exchange-main[data-view=support] .support-history .message{width:fit-content;max-width:78%;margin:0 0 18px;border:1px solid var(--line);background:var(--raised);border-radius:7px;padding:13px 17px}
.exchange-main[data-view=support] .support-history .message.client{margin-left:auto;background:var(--raised);border-color:var(--line)}
.support-history .message p{font-size:13px;line-height:1.7;margin:7px 0 0}.support-history .message small{font-size:10px}.support-history .message-ref{font-size:10px;overflow-wrap:anywhere}
.support-empty{height:100%;min-height:250px;display:grid;align-content:center;text-align:center;gap:8px;padding:20px}.support-empty strong{font-size:20px;font-weight:500}.support-empty p{margin:0;color:var(--muted);font-size:13px}
.exchange-main[data-view=support] .support-composer{border:0;padding:0;margin-top:18px;background:var(--panel);border-radius:7px;border:1px solid var(--line)}
.support-composer .form{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:12px;align-items:end;margin:0!important;padding:12px!important;border:0!important}
.support-composer .form>label{gap:5px}.support-composer .form>label>span{font-size:11px;color:var(--muted)}
.exchange-main .support-composer .form textarea{min-height:62px;height:62px;max-height:160px;resize:vertical;padding:11px 13px;font-size:13px;line-height:1.6}
.exchange-main .support-composer .form>button{min-width:0;min-height:62px;width:160px;align-self:end;margin:0;font-size:12px;white-space:nowrap;padding-inline:10px}
.support-composer .form>.error:not(:empty),.support-composer .form>.message-ref{grid-column:1/-1;grid-row:1;font-size:11px}.support-composer .form>.error:empty{display:none}
.exchange-main[data-view=documents]>.panel{max-width:none}.exchange-main[data-view=documents] .form{max-width:none}.exchange-main[data-view=documents] .form>.pair{grid-template-columns:1fr 1fr}.exchange-main[data-view=documents] .document{padding:20px 0}
.exchange-main[data-view=settings] .page-grid{grid-template-columns:1fr 1fr;gap:22px}.exchange-main[data-view=settings] .panel:last-child{grid-column:2;grid-row:1/span 2}
.service-layout{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px}.service-layout .panel{padding:24px}.service-steps{font-size:12px;line-height:1.65;gap:16px;padding-left:19px}.service-description{font-size:13px;line-height:1.8}
.exchange-main>.footer{max-width:none;padding:23px 0;margin-top:30px;gap:14px;flex-wrap:wrap}.exchange-main>.footer div{display:flex;gap:5px;flex-wrap:wrap}.exchange-main>.footer button{color:var(--muted);min-height:34px;padding:6px 8px;font-size:11px}.exchange-main>.footer button:hover{color:var(--text);background:var(--panel)}
#dialog .dialog-head h2{line-height:1.4;font-size:19px}#dialog .confirm-grid{background:var(--panel)}#dialog .error:empty{display:none}
@media(max-width:1050px){.exchange-brand{margin-right:12px}.exchange-header nav>button,.exchange-header summary{padding-inline:10px;font-size:12px}.exchange-main>.nav{overflow:auto;justify-content:flex-start}.wallet-controls{gap:16px}.wallet-controls .actions{margin-left:0}.exchange-main .page-grid.funding-layout{grid-template-columns:235px minmax(0,1fr);gap:20px}}
@media(max-width:760px){
 .exchange-main:not([data-view=market]):not(:has(.market-tool-page)){padding:20px 14px 0}.exchange-main>.nav{padding:5px;gap:1px;margin-bottom:22px}.exchange-main>.nav button{padding:9px 11px;min-height:42px}.exchange-main .account-heading{gap:14px;align-items:flex-start}.exchange-main .account-heading h1{font-size:22px}
 .wallet-summary{grid-template-columns:1fr;gap:14px}.wallet-identity,.wallet-promo{padding:20px;min-height:116px}.wallet-identity>img{width:44px;height:44px}.wallet-usd{padding-left:18px}.wallet-usd strong{font-size:21px}.wallet-controls>input{width:100%}.wallet-controls .actions{width:100%}.wallet-controls .actions button{flex:1;min-width:0;padding-inline:8px}.wallet-table{overflow:auto}.wallet-table table{min-width:0;table-layout:fixed}.wallet-table :is(td,th){padding:12px 10px;font-size:10px}.wallet-table th:first-child{width:43%}.wallet-table td:nth-child(n+2){white-space:normal;overflow-wrap:anywhere}.wallet-table td button{gap:7px;flex-wrap:wrap}.wallet-table td button strong{font-size:11px}.wallet-table td button small{display:none}.wallet-table td .coin{width:21px;height:21px}
 .exchange-main .page-grid.funding-layout,.service-layout,.exchange-main[data-view=settings] .page-grid{grid-template-columns:minmax(0,1fr);gap:18px}.exchange-main[data-view=settings] .panel:last-child{grid-column:auto;grid-row:auto}
 .funding-assets h2{margin-bottom:10px!important}.exchange-main .funding-assets .asset-list{display:flex;overflow:auto;scroll-snap-type:x proximity;padding-bottom:5px}.exchange-main .funding-assets .asset{min-width:170px;max-width:200px;min-height:67px;padding:12px;scroll-snap-align:start;gap:10px}.exchange-main .funding-assets .asset>b{display:none}.funding-assets .asset strong{font-size:13px}
 .funding-content .panel>h2{padding:17px 20px}.funding-content .panel>.funding-body{padding:20px}.funding-address-grid{grid-template-columns:1fr;gap:16px}.funding-copy{flex-wrap:wrap;padding:12px;gap:12px}.funding-copy button{width:100%}.funding-selection{margin-bottom:20px}
 .exchange-main .form :is(input,select,textarea){font-size:16px}.exchange-main[data-view=documents] .form>.pair{grid-template-columns:1fr}.exchange-main .panel,.service-layout .panel{padding:20px}.history-panel{padding:0!important}.history-panel>h2{padding:18px 20px}.history-panel .filters{padding:16px 20px 0}.transaction-table table{min-width:800px}
 .support-contact{padding:16px;gap:10px}.support-contact>img{width:32px;height:32px}.support-contact strong{font-size:13px}.support-contact small{font-size:11px}.support-contact button{min-width:40px;padding:6px;font-size:11px}
 .support-conversation>h2{padding:16px 18px}.support-history{height:46vh;min-height:280px;padding:16px}.exchange-main[data-view=support] .support-history .message{max-width:94%;padding:12px 14px}.support-composer .form{grid-template-columns:minmax(0,1fr);gap:10px}.exchange-main .support-composer .form>button{width:100%;min-height:44px}.exchange-main .support-composer .form textarea{font-size:16px;min-height:75px;height:75px}
 .exchange-main>.footer{display:block;padding-bottom:30px}.exchange-main>.footer>span{display:block;margin-bottom:10px}.confirm-grid{grid-template-columns:90px minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){.exchange-main *,.exchange-header *{transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(min-width:761px){.exchange-main .funding-assets .asset-list{max-height:600px;overflow-y:auto;overscroll-behavior:contain;padding-right:6px}}
