:root {
  --bg: #f6f7f9; --card: #fff; --ink: #1c1f24; --sub: #6b7280;
  --line: #e6e8eb; --brand: #111827; --accent: #2563eb; --ok: #0a7d2c; --err: #b00020;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 480px; margin: 0 auto; padding: 24px 16px 96px; }
.brand { font-weight: 700; letter-spacing: .14em; text-align: center; margin: 8px 0 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.center { text-align: center; }
.sub { color: var(--sub); font-size: 13px; }
.balance { font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.balance small { font-size: 16px; color: var(--sub); font-weight: 600; margin-left: 6px; }
.addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  word-break: break-all; background: #f1f3f5; border-radius: 10px; padding: 12px;
}
button, .btn {
  display: inline-block; border: 0; border-radius: 999px; padding: 12px 20px;
  font-size: 15px; font-weight: 600; cursor: pointer; background: var(--brand); color: #fff;
}
.btn.secondary { background: #eef0f3; color: var(--ink); }
.btn.block { display: block; width: 100%; text-align: center; }
input[type=text], input[type=number], select {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; margin: 6px 0 12px; background: #fff;
}
table.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
table.ptable th { text-align: left; color: var(--sub); font-weight: 600; font-size: 12px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
table.ptable td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ptable tr:last-child td { border-bottom: 0; }
table.ptable .num { text-align: right; font-variant-numeric: tabular-nums; }
table.ptable .sym { font-weight: 600; }
svg.spark { display: block; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--sub); font-size: 13px; margin: 22px 0 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
label { font-size: 13px; color: var(--sub); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; padding: 8px 0 env(safe-area-inset-bottom); }
.tabs a { color: var(--sub); text-decoration: none; font-size: 12px; text-align: center; }
.tabs a.active { color: var(--accent); }
.tx { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx .amt.in { color: var(--ok); }
.tx .amt.out { color: var(--ink); }
.muted { color: var(--sub); font-size: 12px; }
.js-status, [data-message], [data-form-message] { font-size: 13px; color: var(--sub); }
.skeleton { height: 56px; border-radius: 10px; background: linear-gradient(90deg,#eef0f3,#f6f7f9,#eef0f3);
  background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
