body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.panel {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.hidden {
  display: none;
}

label {
  display: block;
  margin-bottom: 8px;
}

input,
select,
button {
  margin-left: 8px;
  padding: 6px;
}

.room-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.action-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.tile {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
}

.tile-header {
  padding: 8px;
  font-size: 13px;
  background: #0f172a;
}

video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 0;
}

#log {
  height: 180px;
  overflow: auto;
  background: #020617;
  padding: 8px;
  border-radius: 6px;
}

#diagnostics {
  min-height: 110px;
  background: #020617;
  padding: 8px;
  border-radius: 6px;
}

.conn-state {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #334155;
}

.conn-state.connected {
  background: #166534;
}

.conn-state.reconnecting {
  background: #92400e;
}

.conn-state.failed {
  background: #991b1b;
}
