/* Native wallet spacing and shared confirmation/status components. */
#profileDrawer.wallet-shell #mainWalletWithdrawalCard{margin:0;padding:20px;border:0;border-radius:0;background:transparent;box-shadow:none}
#mainWalletWithdrawalCard .withdrawal-address-control input{width:100%;font-size:14px}
#mainWalletWithdrawalCard .withdrawal-address-control button{flex:none}
#mainWalletWithdrawalCard .invalid{border-color:#be6477}
#mainWalletWithdrawalCard .withdrawal-field-error{font-size:11px;color:#ffa4ad;margin:6px 0;line-height:1.5}
#mainWalletWithdrawalCard .withdrawal-history-row{padding:12px 0;border-top:1px solid var(--line);font-size:12px}
#mainWalletWithdrawalCard .withdrawal-history-row>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
#mainWalletWithdrawalCard .withdrawal-history-row small{display:block;color:var(--dim);overflow-wrap:anywhere;margin:5px 0}
#mainWalletWithdrawalCard .withdrawal-history-row button{border:1px solid var(--line);border-radius:10px;padding:7px 12px;font-size:12px;background:var(--surface-soft);color:var(--text);box-shadow:none}
html.vercel-layout body .main-withdrawal-dialog .withdrawal-consent-amounts .withdrawal-recipient{grid-column:1/-1;text-align:left!important;word-break:break-all}
html.vercel-layout body .main-withdrawal-dialog .withdrawal-consent-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
html.vercel-layout body .main-withdrawal-dialog .withdrawal-consent-actions button:only-child{grid-column:1/-1}
.main-withdrawal-dialog .withdrawal-check{display:flex;align-items:flex-start;gap:9px;cursor:pointer}
.main-withdrawal-dialog .withdrawal-check input{width:16px;height:16px;min-height:0!important;margin:2px 0 0;flex:none;accent-color:#00d9f5}
.main-withdrawal-dialog .withdrawal-recover{display:flex;gap:8px;margin:12px 0}
.main-withdrawal-dialog .withdrawal-recover input{width:100%;min-width:0;background:var(--card2);border:1px solid var(--line);border-radius:10px;padding:10px;color:var(--text);font-size:12px}
.main-withdrawal-dialog .withdrawal-recover button{flex:none;color:var(--accent2);font-size:12px}
.main-withdrawal-dialog .withdrawal-explorer{display:block;text-align:center;color:#80caff;font-size:12px;margin-top:12px;overflow-wrap:anywhere}
.main-withdrawal-dialog .withdrawal-status-copy{text-align:center}
.main-withdrawal-dialog .withdrawal-progress{width:18px;height:18px;border:2px solid #061b2c33;border-top-color:#061b2c;border-radius:50%;animation:withdrawal-status-spin .8s linear infinite}
@keyframes withdrawal-status-spin{to{transform:rotate(360deg)}}
@media(max-width:720px){#profileDrawer.wallet-shell #mainWalletWithdrawalCard{padding:20px 16px}}
@media(prefers-reduced-motion:reduce){.main-withdrawal-dialog .withdrawal-progress{animation:none}}
html.vercel-layout body #profileDrawer #mainWalletWithdrawalRoot[hidden],html.vercel-layout body .main-withdrawal-dialog [hidden]{display:none!important}

/* Two-field withdrawal form, using the existing wallet surface and controls. */
#mainWalletWithdrawalCard .wallet-unified-head{align-items:center;margin-bottom:5px}
#mainWalletWithdrawalCard .wallet-unified-head h3{margin:0;font-size:20px}
#mainWalletWithdrawalCard .withdrawal-context{margin:0 0 22px;color:var(--dim);font-size:12px;line-height:1.5}
#mainWalletWithdrawalCard .withdrawal-network-note{margin:7px 0 0;color:var(--dim);font-size:11px;line-height:1.5}
#mainWalletWithdrawalCard .withdrawal-amount-label{margin-top:20px}
#mainWalletWithdrawalCard .withdrawal-asset{color:var(--dim);font-size:12px;flex:none}
#mainWalletWithdrawalCard .wallet-balance-line{padding:8px 0 18px;font-size:11px;gap:8px}
#mainWalletWithdrawalCard .wallet-balance-line b{font-size:11px;font-weight:500;color:var(--dim)}
#mainWalletWithdrawalCard .withdrawal-fee-line{margin:0;padding:9px 0 0;border:0;font-size:11px;color:var(--dim)}
#mainWalletWithdrawalCard .withdrawal-fee-line b{font-size:11px;font-weight:400;color:var(--dim)}
#mainWalletWithdrawalCard .wallet-add-funds{margin-top:16px;padding-top:0;border:0}
#mainWalletWithdrawalCard .wallet-add-funds>summary{min-height:32px;padding:8px 0;font-size:12px;font-weight:500;color:var(--dim)}
#mainWalletWithdrawalCard [data-value="message"]:empty{display:none}
#mainWalletWithdrawalCard [hidden]{display:none!important}
html.vercel-layout body .main-withdrawal-dialog .withdrawal-review-source{margin:-5px 0 0;font-size:12px;color:var(--zeno-dialog-muted)}
html.vercel-layout body .main-withdrawal-dialog .withdrawal-consent-amounts{margin:18px 0!important}
html.vercel-layout body .main-withdrawal-dialog .withdrawal-consent-amounts .withdrawal-recipient{font-size:12px!important;line-height:1.65;letter-spacing:.01em}
html.vercel-layout body .main-withdrawal-dialog .withdrawal-check{margin-bottom:0}

/* Keep the original withdrawal hierarchy; waiting stays in its existing action. */
#mainWalletWithdrawalCard .withdrawal-button-busy{display:flex;align-items:center;justify-content:center;gap:10px}
#mainWalletWithdrawalCard .withdrawal-progress{display:inline-block;width:16px;height:16px;flex:none;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:withdrawal-status-spin .8s linear infinite}
#mainWalletWithdrawalCard .wallet-balance-line b,#mainWalletWithdrawalCard [data-value=receive]{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}
.main-withdrawal-dialog .withdrawal-reviewed-amount{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@layer v85{
 html.vercel-layout body #mainWalletWithdrawalCard .v85-withdraw-form{gap:14px}
 html.vercel-layout body #mainWalletWithdrawalCard .v85-withdraw-amount-card{padding:14px;gap:8px}
 html.vercel-layout body #mainWalletWithdrawalCard .wallet-balance-line{padding:4px 0 0;font-size:12px;display:flex;flex-wrap:wrap;gap:5px}
 html.vercel-layout body #mainWalletWithdrawalCard .wallet-balance-line b{font-size:12px}
 html.vercel-layout body #mainWalletWithdrawalCard [data-control=amount]{display:flex;min-width:0;gap:8px}
 html.vercel-layout body #mainWalletWithdrawalCard [data-control=amount] input{width:100%;min-width:0;font-size:clamp(20px,5vw,28px)!important}
 html.vercel-layout body #mainWalletWithdrawalCard [data-control] button{flex:none}
 html.vercel-layout body #mainWalletWithdrawalCard .v85-withdraw-summary{display:grid;gap:8px}
 html.vercel-layout body #mainWalletWithdrawalCard .v85-withdraw-summary .wallet-receive-line{margin:0;padding:0;border:0;min-height:24px}
 html.vercel-layout body #mainWalletWithdrawalCard .v85-withdraw-summary .withdrawal-fee-line{font-size:12px}
 html.vercel-layout body #mainWalletWithdrawalCard .v85-withdraw-summary [data-value=fee]{font-size:12px}
 html.vercel-layout body dialog.main-withdrawal-dialog{box-sizing:border-box;max-height:calc(100dvh - 32px)!important;overflow-y:auto;overscroll-behavior:contain}
 html.vercel-layout body dialog.main-withdrawal-dialog:has(.v85-review-close){padding:24px!important}
 html.vercel-layout body dialog.main-withdrawal-dialog .withdrawal-review-source{font-size:13px!important;line-height:1.5!important}
 html.vercel-layout body dialog.main-withdrawal-dialog:has(.v85-review-close) .withdrawal-consent-amounts{display:grid!important;grid-template-columns:1fr!important;margin:16px 0!important;gap:0!important}
 html.vercel-layout body dialog.main-withdrawal-dialog:has(.v85-review-close) .withdrawal-consent-amounts>.v85-withdraw-detail-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)!important;gap:10px;padding:12px 0;font-size:14px!important;border-bottom:1px solid var(--v85-border)}
 html.vercel-layout body dialog.main-withdrawal-dialog .withdrawal-consent-amounts .withdrawal-reviewed-amount{font-size:18px!important;line-height:1.5!important;font-weight:700}
 html.vercel-layout body dialog.main-withdrawal-dialog .withdrawal-consent-amounts .withdrawal-recipient{grid-column:1/-1;font-size:13px!important;line-height:1.55!important;padding:0!important}
 html.vercel-layout body dialog.main-withdrawal-dialog .withdrawal-check{font-size:13px!important;line-height:1.5}
 html.vercel-layout body dialog.main-withdrawal-dialog .withdrawal-consent-amounts dd{margin:0}
 html.vercel-layout body dialog.main-withdrawal-dialog .withdrawal-consent-actions button{min-height:44px!important}
 @media(max-width:760px){html.vercel-layout body dialog.main-withdrawal-dialog:has(.v85-review-close){padding:22px!important}}
}
@media(prefers-reduced-motion:reduce){#mainWalletWithdrawalCard .withdrawal-progress{animation:none}}
@layer v85{
 html.vercel-layout body #mainWalletWithdrawalCard [data-control=amount] input[data-long-amount=true]{font-size:16px!important;letter-spacing:-.02em!important}
 html.vercel-layout body dialog.main-withdrawal-dialog:has(.v85-review-close) .withdrawal-consent-amounts>.v85-withdraw-detail-row.withdrawal-full-row{grid-template-columns:minmax(0,1fr)!important;gap:6px}
 html.vercel-layout body dialog.main-withdrawal-dialog:has(.v85-review-close) .withdrawal-consent-amounts>.withdrawal-full-row>dd{text-align:left!important;grid-column:1/-1!important;font-size:13px!important;line-height:1.55!important;overflow-wrap:anywhere;word-break:break-all}
}

/* The withdrawal form owns its close button; it does not depend on the shared drawer header. */
@layer v85{
 html.vercel-layout body #profileDrawer.wallet-shell:has(#mainWalletWithdrawalRoot:not([hidden]))>.drawer-head{display:none!important}
 html.vercel-layout body #mainWalletWithdrawalCard>.v85-withdraw-heading{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;align-items:center!important;min-height:44px;margin:0 0 16px;gap:0}
 html.vercel-layout body #mainWalletWithdrawalCard>.v85-withdraw-heading>.v85-withdraw-title{grid-column:2!important;margin:0!important;text-align:center!important}
 html.vercel-layout body #mainWalletWithdrawalCard>.v85-withdraw-heading>.v85-withdraw-close{grid-column:3!important;display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:1px solid var(--v85-border)!important;border-radius:10px!important;background:var(--v85-panel)!important;color:var(--v85-text)!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;box-sizing:border-box!important}
 html.vercel-layout body #mainWalletWithdrawalCard>.v85-withdraw-heading>.v85-withdraw-close>svg{display:block!important;width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;opacity:1!important;visibility:visible!important;flex:none!important}
 html.vercel-layout body #mainWalletWithdrawalCard>.v85-withdraw-heading>.v85-withdraw-close>svg>path{display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;opacity:1!important;visibility:visible!important}
}
@layer v85{
 html.vercel-layout body #profileDrawer #mainWalletWithdrawalRoot:not([hidden]),html.vercel-layout body #profileDrawer #mainWalletWithdrawalCard{overflow:visible!important}
 html.vercel-layout body #mainWalletWithdrawalCard>.v85-withdraw-heading{position:sticky!important;top:0!important;z-index:5!important;background:var(--v85-surface)!important;filter:none!important;backdrop-filter:none!important}
}
