.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid #333355;
}

.topbar h1 { font-size: 1.25rem; }
.topbar nav { display: flex; gap: 1.5rem; }
.topbar a { color: var(--muted); text-decoration: none; font-weight: 600; }
.topbar a.active, .topbar a:hover { color: var(--text); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

#setup-section {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#setup-section label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
}

.live-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 1.5rem;
}

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

.pin-card .pin {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0.5rem 0 1rem;
}

.pin-card .label { color: var(--muted); margin-bottom: 0.25rem; }

.links { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.links a { color: var(--accent); font-size: 0.95rem; }

.controls-card h2, .preview-card h2 { margin-bottom: 1rem; font-size: 1.1rem; }

.hint { color: var(--muted); margin-bottom: 1rem; min-height: 1.4em; }

.control-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.preview-content { min-height: 200px; }
.preview-content .q-preview { font-size: 1.1rem; margin-bottom: 1rem; }
.preview-content .muted { color: var(--muted); }

.lb-preview { list-style: none; }
.lb-preview li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid #333355;
}