:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0c0e12;
  color: #f5f7fa;
  line-height: 1.4;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 0%, #17202d, #0c0e12 55%); }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
.hidden { display: none !important; }
.screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.card { background: rgba(22, 25, 32, .92); border: 1px solid #2a303a; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.login-card { width: min(430px, 100%); padding: 32px; }
.logo { font-weight: 900; letter-spacing: .08em; color: #fff; font-size: 14px; }
.logo span { color: #62d48f; }
.logo.small { margin-bottom: 4px; }
h1,h2,p { margin-top: 0; }
h1 { margin: 10px 0 8px; font-size: 28px; }
h2 { margin: 0; font-size: 19px; }
.muted { color: #929aa8; }
.login-card .muted { margin-bottom: 24px; }
label { display: block; font-size: 13px; color: #b8bec8; margin: 14px 0 7px; }
.optional { opacity: .6; }
input { width: 100%; background: #0f1217; color: #fff; border: 1px solid #303743; border-radius: 12px; padding: 12px 13px; outline: none; }
input:focus { border-color: #62d48f; }
button { border-radius: 10px; padding: 10px 12px; color: white; font-weight: 700; transition: .15s ease; }
button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.primary { width: 100%; background: #53bd7e; margin-top: 18px; color: #08130d; }
.error { min-height: 20px; color: #ff7f7f; font-size: 13px; margin-top: 10px; }
.app { min-height: 100vh; }
.topbar { padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #232832; background: rgba(10, 12, 16, .76); backdrop-filter: blur(12px); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.badge, .admin-dot { border: 1px solid #39414d; color: #c6ced8; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; }
.admin-dot { color: #62d48f; border-color: #2b6845; }
.ghost { background: transparent; border: 1px solid #343b46; }
.layout { width: min(1180px, calc(100% - 40px)); margin: 28px auto; display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
.users-card, .admin-card { padding: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.mic-state { font-size: 12px; border-radius: 999px; padding: 6px 9px; }
.mic-state.off { background: #241a1a; color: #ff9d9d; }
.mic-state.on { background: #14271c; color: #78dc9c; }
.users-list { display: grid; gap: 8px; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #282e37; background: #11151b; border-radius: 14px; padding: 12px 13px; }
.user-row.selected { border-color: #62d48f; box-shadow: 0 0 0 1px rgba(98,212,143,.1); }
.user-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #202630; color: #aab3bf; font-weight: 900; }
.nick-wrap { min-width: 0; }
.nick { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role { font-size: 11px; color: #87909d; }
.user-mic { font-size: 12px; white-space: nowrap; }
.user-mic.on { color: #78dc9c; }
.user-mic.off { color: #ff9696; }
.admin-help { color: #969eab; font-size: 12px; margin-bottom: 12px; }
.selected-user { background: #10141a; border: 1px solid #2b313a; padding: 12px; border-radius: 12px; margin-bottom: 10px; color: #dce1e8; }
.room-limit {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #10141a;
  border: 1px solid #2b313a;
}
.room-limit-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.room-limit-row input { min-width: 0; }
.room-limit-row button { white-space: nowrap; }
.room-limit-hint { margin-top: 8px; font-size: 11px; line-height: 1.35; }
.admin-actions { display: grid; gap: 8px; }
.success { background: #4ab879; color: #07130c; }
.warning { background: #9e8647; }
.danger { background: #af4848; }
.outline { background: transparent; border: 1px solid #a85050; }
.ban-section { margin-top: 22px; border-top: 1px solid #272d36; padding-top: 16px; }
.subhead { font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.bans-list { display: grid; gap: 7px; }
.ban-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: #10141a; border: 1px solid #282e38; font-size: 12px; }
.ban-row button { padding: 5px 8px; font-size: 11px; background: #29303a; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; transition: .2s; background: #e8edf4; color: #11151b; border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 13px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; } .topbar { padding: 18px; } }
@media (max-width: 560px) { .layout { width: min(100% - 24px, 1180px); margin: 12px auto; } .topbar { align-items: flex-start; gap: 12px; } .top-actions { flex-direction: column; align-items: flex-end; } }


.audio-unlock {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 20;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
}
.connection-debug {
  position: fixed;
  right: 12px;
  bottom: 10px;
  opacity: .55;
  font-size: 11px;
  z-index: 10;
}
