:root {
  --bg: #0f1115;
  --card-bg: #171a21;
  --text: #e8eaed;
  --muted: #9aa1ac;
  --accent: #5b8cff;
  --accent-hover: #4576f0;
  --danger: #e5534b;
  --border: #262a33;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

.demo-banner {
  background: #4a3f1f;
  color: #f0c674;
  text-align: center;
  font-size: 13px;
  padding: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.brand { font-weight: 600; }
.topbar-user { color: var(--muted); font-size: 14px; }
.topbar-user a { color: var(--accent); }

.content {
  max-width: 640px;
  margin: 40px auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card.center { text-align: center; }

h1 { margin-top: 0; font-size: 22px; }
h2 { font-size: 17px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; }
.warn {
  color: #f0c674;
  background: #2a2416;
  border: 1px solid #4a3f1f;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
}

label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
}

label.checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; }
label.checkbox input { width: auto; }

input[type="text"] {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0d0f13;
  color: var(--text);
  font-size: 14px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 6px;
}
.btn:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-google { background: #fff; color: #1f1f1f; font-weight: 500; }

table.peers { width: 100%; border-collapse: collapse; font-size: 14px; }
table.peers th, table.peers td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}
table.peers code { color: var(--muted); }

.qr {
  width: 220px;
  height: 220px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  margin: 12px auto;
  display: block;
}

.config-text {
  text-align: left;
  background: #0d0f13;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
