:root {
  color-scheme: light;
  --bg: #0e1116;
  --panel: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accent-2: #f59e0b;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(120deg, rgba(14, 17, 22, 0.95), rgba(17, 24, 39, 0.95));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
}

.token-hint {
  font-size: 12px;
  color: var(--muted);
}

.token-hint span {
  color: var(--accent-2);
}

#viewer {
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: var(--panel);
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
  }
}
