:root{
  --w-mint:#97fce3;
  --w-panel:#0d171c;
  --w-panel-line:#232d31;
  --w-btn:#262f33;
  --w-btn-hover:#2e3a3f;
  --w-text:#f6fefd;
  --w-muted:#7f969c;
  --w-ink:#0b0b0b;
  --w-font:"OurFont",system-ui,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",sans-serif;
}
.wallet-overlay{
  position:fixed;inset:0;z-index:9999;display:grid;place-items:center;
  background:rgba(4,6,12,.6);backdrop-filter:blur(2px);padding:16px;
  font-family:var(--w-font);color:var(--w-text);
  animation:wfade .18s ease;
}
.wallet-overlay[hidden]{display:none}
@keyframes wfade{from{opacity:0}}
.wallet-modal{
  position:relative;width:100%;max-width:520px;background:var(--w-panel);
  border:1px solid var(--w-panel-line);border-radius:16px;
  box-shadow:0 30px 90px -20px rgba(0,0,0,.7);
  animation:wrise .26s cubic-bezier(.2,.8,.2,1);
  max-height:calc(100dvh - 32px);overflow:auto;
}
@keyframes wrise{from{opacity:0;transform:translateY(10px) scale(.985)}}
.wm-body{padding:24px;margin-top:32px;display:flex;flex-direction:column;gap:20px}
.wm-x{
  position:absolute;top:16px;right:16px;width:32px;height:32px;display:grid;place-items:center;
  border:0;background:none;cursor:pointer;border-radius:8px;color:#cfe6ea;padding:0;z-index:2;
}
.wm-x:hover{background:rgba(255,255,255,.06)}
.wm-x svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}
.wm-title{margin:0;font-size:20px;font-weight:400;text-align:center;letter-spacing:-.01em;color:var(--w-text)}
.wm-list{display:grid;gap:8px}
.wm-btn-item{
  height:53px;display:flex;align-items:center;gap:10px;width:100%;
  background:var(--w-btn);border:1px solid transparent;border-radius:8px;
  padding:0 12px 0 21px;cursor:pointer;color:var(--w-text);
  font-family:inherit;font-size:15px;text-align:left;
  transition:background .14s;
}
.wm-btn-item:hover{background:var(--w-btn-hover)}
.wm-btn-item:active{transform:scale(.997)}
.wm-btn-item .wi{width:18px;height:18px;display:grid;place-items:center;flex:none}
.wm-btn-item .wi svg,.wm-btn-item .wi img{width:18px;height:18px;display:block}
.wm-btn-item span{font-size:15px}
.wm-or{display:flex;align-items:center;gap:12px;color:var(--w-muted);font-size:12px;letter-spacing:.04em}
.wm-or::before,.wm-or::after{content:"";flex:1;height:1px;background:var(--w-panel-line)}
.wm-wallet-extra{display:grid;gap:8px}
.wm-foot{font-size:12px;color:var(--w-muted);text-align:center;margin:0}
.wm-foot a{color:#bfd4d8;text-decoration:underline;text-underline-offset:2px}

.wm-rows{border:1px solid var(--w-panel-line);border-radius:8px;overflow:hidden}
.wm-row{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;font-size:14px;border-bottom:1px solid var(--w-panel-line);background:#111c21}
.wm-row:last-child{border-bottom:0}
.wm-state{font-size:12.5px;color:var(--w-muted);font-variant-numeric:tabular-nums}
.wm-state.pending{color:var(--w-mint)}
.wm-state.ok{color:#0ecb81}
.wm-state.fail{color:#f6465d}
.wm-state.dust{color:#6d8a90}
.wm-note{font-size:12.5px;color:var(--w-muted);line-height:1.6;margin:0}
.wm-primary{
  height:48px;width:100%;border:0;border-radius:8px;background:var(--w-mint);color:var(--w-ink);
  font-family:inherit;font-size:15px;font-weight:500;cursor:pointer;transition:filter .15s;
}
.wm-primary:hover{filter:brightness(.96)}
.wm-primary:disabled{opacity:.5;cursor:default;filter:none}
.wm-err{color:#f6465d;font-size:12.5px;text-align:center;margin:0}
.wm-done{text-align:center;align-items:center}
.wm-check{width:56px;height:56px;margin:4px auto 4px;border-radius:50%;display:grid;place-items:center;background:rgba(14,203,129,.12);border:1px solid rgba(14,203,129,.45)}
.wm-check svg{width:26px;height:26px;fill:none;stroke:#0ecb81;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.wm-sub{font-size:13.5px;color:var(--w-muted);text-align:center;line-height:1.55;margin:0}
.wm-bar{height:3px;background:#1b272c;border-radius:2px;overflow:hidden;width:100%;margin-top:4px}
.wm-bar i{display:block;height:100%;width:0;background:var(--w-mint);animation:wfill 2s linear forwards}
@keyframes wfill{to{width:100%}}
.wm-page[hidden]{display:none}
.wm-page{display:flex;flex-direction:column;gap:20px}
.wm-brand{display:flex;justify-content:center;margin:2px 0 10px}.wm-brand img{width:44px;height:44px;display:block}
