.wallet-funds-body {
  display:grid; gap:var(--overlay-gap);
}
.wallet-funds-asset,.wallet-funds-destination {
  min-inline-size:0; padding:12px;
  border:1px solid var(--line-soft); border-radius:var(--control-radius); background:var(--card);
}
.wallet-funds-asset {
  display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0;
}
.wallet-funds-asset .bsc-usdt-amount {
  display:inline-flex; align-items:center; gap:8px; --bsc-usdt-size:20px;
  font:var(--overlay-section-font);
}
.wallet-funds-asset > span { color:var(--dim); font:var(--overlay-note-font); text-align:end; }
.wallet-funds-form { display:grid; gap:6px; min-width:0; }
.cashier-content .wallet-funds-form { gap:10px; }
.wallet-funds-destination { display:grid; gap:4px; }
.wallet-funds-destination > span,.wallet-funds-available { color:var(--dim); font:var(--overlay-note-font); }
.wallet-funds-destination code { overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.wallet-funds-amount-label {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:2px 8px; min-block-size:28px;
}
.wallet-funds-available > strong { color:var(--text); font:inherit; font-variant-numeric:tabular-nums; }
.wallet-funds-max {
  min-block-size:28px; padding:0 4px; border:0; border-radius:var(--edge);
  color:var(--link-text); background:transparent; font:var(--overlay-note-font); font-variant-numeric:tabular-nums;
  cursor:pointer;
}
.wallet-funds-max:enabled:hover { background:var(--hover); }
.wallet-funds-max:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.wallet-funds-max:disabled { color:var(--dim); cursor:default; }
.wallet-funds-dialog input {
  box-sizing:border-box; min-width:0; width:100%; min-height:var(--overlay-action-height); padding:0 12px;
  border:1px solid var(--line); border-radius:var(--control-radius); color:var(--text); background:var(--input);
  font:var(--field-value-font); font-size:max(16px,1rem);
}
.wallet-funds-dialog input[aria-invalid="true"] { border-color:var(--negative-text); }
.wallet-funds-dialog input:disabled { opacity:.8; }
.wallet-funds-dialog input:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.cashier-content { display:grid; align-content:start; gap:var(--overlay-gap); min-inline-size:0; }
.wallet-account-pane { min-inline-size:0; }
.wallet-account-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
.wallet-account-treasury { grid-template-columns:1fr; }
@media (min-width:701px) {
  .cashier-dialog[data-mode="account"] { --overlay-width:820px; }
}
.wallet-funds-review {
  display:grid; gap:6px; margin:3px 0; padding:9px; border:1px solid var(--line-soft);
  border-radius:var(--control-radius); background:var(--card);
}
.wallet-funds-review div { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:8px; }
.wallet-funds-review dt { color:var(--dim); font:var(--overlay-note-font); }
.wallet-funds-review dd { margin:0; text-align:end; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.wallet-funds-review dd .bsc-usdt-mark { margin-inline-end:6px; }
.wallet-funds-action {
  min-height:var(--overlay-action-height); padding:0 10px; border:0; border-radius:var(--control-radius);
  background:var(--cta); color:var(--cta-text); font:var(--primary-action-font); cursor:pointer;
}
.wallet-funds-action:enabled:hover { background:var(--cta-hover); }
.wallet-funds-action:disabled { background:var(--cta-disabled); color:var(--cta-disabled-text); cursor:default; }
.wallet-funds-action:focus-visible,.wallet-funds-text:focus-visible {
  outline:2px solid var(--accent); outline-offset:2px;
}
.wallet-funds-text {
  display:inline-flex; justify-self:start; align-items:center; min-height:28px; padding:0 4px;
  border:0; border-radius:var(--edge); background:transparent; color:var(--link-text);
  font:var(--control-font); cursor:pointer; text-decoration:none;
}
.wallet-funds-text:hover { background:var(--hover); }
.wallet-funds-links { display:flex; flex-wrap:wrap; gap:4px 12px; }
.wallet-funds-links:not(:has(> :not([hidden]))) { display:none; }
.wallet-funds-status { margin:0; color:var(--dim); overflow-wrap:anywhere; font:var(--overlay-note-font); }
.wallet-funds-status[data-error="true"] { color:var(--negative-text); }
.wallet-funds-status:empty { display:none; }
.funds-records-message {
  margin:0; color:var(--dim); font:var(--control-font);
}
.funds-records-message:empty { display:none; }
.funds-records {
  inline-size:100%; max-inline-size:100%; table-layout:fixed; border-collapse:collapse;
  font:var(--control-font); font-variant-numeric:lining-nums tabular-nums;
}
.funds-records[hidden] { display:none; }
.funds-records :is(th,td) {
  padding:8px 0; text-align:start; vertical-align:middle;
  overflow-wrap:anywhere; border-block-end:1px solid var(--line-soft);
}
.funds-records :is(th,td) + :is(th,td) { padding-inline-start:8px; }
.funds-records :is(th,td):first-child { width:40%; }
.funds-records :is(th,td):last-child { text-align:end; }
.funds-records th { color:var(--dim); font:var(--table-heading-font); }
.funds-records tbody tr:last-child td { border:0; }
