* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #14151a;
  color: #f2f2f2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen { width: 100%; max-width: 480px; padding: 24px; }
.hidden { display: none; }

h1 { margin: 0 0 4px; font-size: 28px; }
.subtitle { color: #9a9ba3; margin: 0 0 28px; }

input, select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #333542;
  background: #1e1f27;
  color: #f2f2f2;
  font-size: 15px;
}

.field-label {
  display: block;
  font-size: 12px;
  color: #9a9ba3;
  margin-bottom: 6px;
  margin-top: -4px;
}

.device-panel {
  display: flex;
  gap: 16px;
  background: #1e1f27;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.device-panel > div { flex: 1; }
.device-panel select { margin-bottom: 0; }

button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #4f6df5;
  color: white;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
}
button:hover { background: #3d59e0; }
button.danger { background: #d64545; }
button.danger:hover { background: #b93838; }
button.active { background: #22c07a; }

#join-btn { width: 100%; padding: 12px; font-size: 15px; }
.hint { color: #6b6c76; font-size: 13px; margin-top: 20px; }

#call-screen { max-width: 640px; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
#room-label { font-size: 18px; font-weight: 600; }
.controls { display: flex; gap: 8px; }

#participants {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.participant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #1e1f27;
  border-radius: 10px;
}
.participant .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c07a;
  display: inline-block;
  margin-right: 10px;
}
.participant.muted .dot { background: #6b6c76; }

.status { color: #6b6c76; font-size: 13px; margin-top: 16px; }
