:root {
  --bg: #0b0d10;
  --card: #14181e;
  --ink: #e8edf2;
  --muted: #8b96a3;
  --line: #232a33;
  --paper: #c9a227;
  --live: #e24b4b;
  --up: #3dd68c;
  --down: #ff6b6b;
  --accent: #6cb6ff;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100%;
}
body { padding: calc(12px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.brand { font-weight: 700; letter-spacing: 0.04em; }
.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--paper);
  color: #1a1403;
}
.badge.live { background: var(--live); color: #fff; }
.hero { margin-bottom: 16px; }
.label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.balance { font-size: 42px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; margin: 4px 0; }
.meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; }
.chart-wrap { background: var(--card); border-radius: 14px; padding: 8px 4px 4px; margin-bottom: 16px; }
canvas { width: 100%; height: 180px; display: block; }
.agents { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
  min-height: 72px;
}
.card .name { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.card .label { color: var(--ink); font-size: 15px; margin-top: 6px; text-transform: none; letter-spacing: 0; }
.card .status { font-size: 11px; color: var(--accent); margin-top: 4px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 18px 0 8px; }
.activity ul { list-style: none; margin: 0; padding: 0; }
.activity li {
  background: var(--card);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  font-size: 14px;
}
.activity .ts { color: var(--muted); font-size: 11px; display: block; }
.account .hint { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.account dl { background: var(--card); border-radius: 12px; padding: 8px 12px; margin: 0; }
.account dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 10px; }
.account dd { margin: 2px 0 0; font-size: 14px; word-break: break-word; }
.account a { color: var(--accent); }
.gate {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 28px 48px;
}
.gate.add-hint {
  margin: 8px 16px 0;
  padding: 10px 14px;
  background: var(--card);
  border-radius: 12px;
  color: var(--ink);
  font-size: 13px;
  text-align: center;
  line-height: 1.35;
  font-weight: 500;
}
.add-hint.hidden { display: none; }
.hidden { display: none; }
.gate .empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--card);
  margin-bottom: 18px;
  position: relative;
}
.gate .empty-icon::before,
.gate .empty-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--muted);
  border-radius: 8px;
  width: 22px;
  height: 16px;
  opacity: 0.85;
}
.gate .empty-icon::after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border-width: 2px;
  background: transparent;
}
.gate h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--ink);
}
.gate p {
  margin: 0 auto;
  max-width: 280px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 400;
}
.add-hint {
  margin: 8px 16px 0;
  padding: 10px 14px;
  background: var(--card);
  border-radius: 12px;
  color: var(--ink);
  font-size: 13px;
  text-align: center;
  line-height: 1.35;
  font-weight: 500;
}
.add-hint.hidden { display: none; }
.hidden { display: none; }
