:root {
  --bg: #0f1115;
  --panel: #171a21;
  --line: #262b35;
  --fg: #e8eaed;
  --muted: #9aa0a6;
  --accent: #4f8cff;
  --guest: #f5a524;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

.logo { font-weight: 700; letter-spacing: .2px; }
.logo span { color: var(--accent); font-weight: 500; }

/* ── standalone message card (index, errors) ───────────────────────────── */
.card {
  max-width: 30rem;
  margin: 12vh auto;
  padding: 2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.card h1 { font-size: 1.25rem; margin: 1.2rem 0 .6rem; }
.card p { color: var(--muted); margin: .4rem 0; }
.card code {
  display: block;
  margin-top: 1rem;
  padding: .6rem .8rem;
  background: #0b0d11;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: .85rem;
  overflow-x: auto;
}

/* ── meeting shell ─────────────────────────────────────────────────────── */
.shell { display: flex; flex-direction: column; height: 100%; }

.bar {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .55rem 1rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  min-height: 3rem;
}
.bar .subject {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar .when { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.bar .spacer { flex: 1 1 auto; }

.badge {
  padding: .12rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.badge.host  { color: var(--accent); border-color: var(--accent); }
.badge.guest { color: var(--guest);  border-color: var(--guest); }

#stage { flex: 1 1 auto; min-height: 0; }
#stage iframe { display: block; width: 100%; height: 100%; border: 0; }

.hint {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
}

@media (max-width: 640px) {
  .bar .when { display: none; }
}
