.wd-overlay{position:fixed;inset:0;background:rgba(6,6,9,.72);backdrop-filter:blur(6px);z-index:120;display:flex;align-items:center;justify-content:center;padding:16px}
.wd-sheet{width:100%;max-width:420px;background:var(--panel);border:1px solid var(--line2);border-radius:18px;padding:18px;color:var(--txt);box-shadow:0 24px 70px rgba(0,0,0,.6);max-height:92vh;overflow:auto}
.wd-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.wd-ico{width:30px;height:30px;border-radius:9px;background:rgba(139,92,246,.16);color:var(--pur);display:grid;place-items:center;font-size:15px}
.wd-head h3{margin:0;font-size:16px;font-weight:600}
.wd-x{margin-left:auto;background:none;border:0;color:var(--mut);font-size:19px;cursor:pointer;line-height:1}
.wd-bal{font-size:12px;color:var(--mut);margin-bottom:14px}
.wd-card .hint{margin-top:0}
.wd-card .field{margin-bottom:12px}
.wd-card .row{margin:2px 0 10px}
.wd-card .row .btn{flex:1}
.wd-card #wAll:disabled{opacity:.45;cursor:not-allowed}
.wd-card #capLine{margin-bottom:4px}
.wd-card #capLine:empty{display:none}
.wd-foot{margin-top:14px;font-size:11.5px;color:#e0b76a;background:rgba(224,183,106,.08);border:1px solid rgba(224,183,106,.22);border-radius:10px;padding:9px 10px;line-height:1.45}
body.wd-open{overscroll-behavior:contain}
@media (max-width:520px){.wd-sheet{max-width:400px;padding:16px;max-height:88vh}}

/* the sheet scrolls itself, so focus never scrolls an ancestor */
.wd-overlay{align-items:flex-start;overflow-y:auto;overscroll-behavior:contain}
.wd-sheet{margin:auto}
