:root{
  --bg: var(--wallet-bg, #0b0c10);
  --card: var(--wallet-card, #11151a);
  --line: var(--wallet-line, #1e242c);
  --txt: var(--wallet-text, #e6edf3);
  --muted: var(--wallet-muted, #9aa4b2);
  --accent: var(--wallet-accent, #2f81f7);
  --accent-b: var(--wallet-accent-b, #1f6feb);
  --ok: #0bd464;
  --bad:#ff5252;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--bg);
  color:var(--txt);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

.wrap{
  max-width:960px;
  margin:0 auto;
  padding:0 12px;
}

.topbar{
  border-bottom:1px solid var(--line);
  background:#0f1318;
  padding:12px 0;
}

.toprow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

h1{ margin:0; font-size:18px; font-weight:900; }
h2{ margin:0 0 10px; font-size:15px; font-weight:900; }

.stat{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
}

.stat.ok{ color:var(--ok); }
.stat.bad{ color:var(--bad); }

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px 14px;
  margin:12px 0;
}

label{
  display:block;
  margin:10px 0 4px;
  font-size:12px;
  color:var(--muted);
}

input{
  width:100%;
  padding:10px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#05070b;
  color:var(--txt);
  font-size:13px;
  outline:none;
}

.mono{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

.muted{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
}

.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

button{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--accent-b);
  background:var(--accent);
  color:#fff;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
}

button:hover{ filter:brightness(1.05); }

.out{
  margin-top:10px;
  padding:10px;
  border-radius:10px;
  border:1px dashed var(--line);
  background:#05070b;
  min-height:48px;
  white-space:pre-wrap;
  word-break:break-word;
}
