:root {
  --bg: #0f0f10;
  --card: #1c1c1f;
  --text: #f3f3f3;
  --muted: #bdbdbd;
  --accent: #3aa0ff;
}

* { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg); color: var(--text);
}
.wrap { min-height: 100vh; display: flex; flex-direction: column; }
.header {
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #2a2a2f;
}
.title { font-weight: 700; }
.badge { color: var(--muted); font-size: 14px; }

.content { padding: 16px; flex: 1; }
.card {
  background: var(--card);
  padding: 14px; border-radius: 12px; border: 1px solid #2a2a2f;
}
.page { display: none; }
.page.active { display: block; }

.tabbar {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid #2a2a2f;
  background: #141416;
}
.tab {
  padding: 12px; background: transparent; color: var(--muted);
  border: none; font-size: 14px;
}
.tab.active { color: var(--accent); font-weight: 600; }

.row { display: grid; gap: 6px; margin: 10px 0; }
input {
  padding: 10px; border-radius: 10px; border: 1px solid #2a2a2f;
  background: #121214; color: var(--text);
}
button {
  padding: 10px 12px; border-radius: 10px; border: none;
  background: var(--accent); color: #001525; font-weight: 700;
}
.hidden { display: none; }
.pre { margin-top: 10px; white-space: pre-wrap; color: var(--muted); }