* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #14151a;
  color: #e8e8ee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.screen {
  width: 100%;
  max-width: 480px;
  padding: 32px;
}

.hidden { display: none; }

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

form { display: flex; flex-direction: column; gap: 16px; }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #b4b4c2;
}

input {
  background: #1f2026;
  border: 1px solid #2e2f38;
  border-radius: 8px;
  padding: 12px 14px;
  color: #e8e8ee;
  font-size: 15px;
}

input:focus { outline: none; border-color: #5b7cff; }

button {
  background: #5b7cff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: #4a68e0; }
button.danger { background: #e0444a; }
button.danger:hover { background: #c93a40; }
button.secondary { background: #2e2f38; }
button.secondary:hover { background: #3a3b46; }

.error { color: #ff7b7b; font-size: 13px; min-height: 18px; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

header h2 { margin: 0; font-size: 18px; font-weight: 500; }
#room-label { color: #5b7cff; font-weight: 700; }

#participant-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.participant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #1f2026;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 15px;
}

.participant.speaking { border-color: #4ade80; }
.participant .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #555;
  flex-shrink: 0;
}
.participant.connected .dot { background: #4ade80; }
.participant.connecting .dot { background: #fbbf24; }
.participant.failed .dot { background: #ef4444; }
.participant .name { flex: 1; }
.participant .you { color: #9a9aa8; font-size: 12px; }
.participant .muted-icon { color: #9a9aa8; font-size: 12px; }

footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

#status-text { color: #9a9aa8; font-size: 13px; }

#mic-mode {
  background: #1f2026;
  border: 1px solid #2e2f38;
  border-radius: 8px;
  padding: 10px 12px;
  color: #e8e8ee;
  font-size: 14px;
}

#ptt-hint { color: #4ade80; font-size: 13px; font-weight: 600; }
