/* ─── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0d0d14;
  --bg2:          #111119;
  --bg3:          #18182a;
  --card:         #14141f;
  --border:       #252538;
  --border-hi:    #38385a;
  --purple:       #9146ff;
  --purple-dark:  #7a2fff;
  --purple-dim:   rgba(145,70,255,.15);
  --purple-light: #b57bff;
  --green:        #00e5a0;
  --green-dim:    rgba(0,229,160,.15);
  --red:          #ff4757;
  --text:         #e8e8f0;
  --text-dim:     #7a7a9a;
  --text-mid:     #a8a8c0;
  --radius:       10px;
  --sidebar-w:    270px;
}

html, body { height: 100%; font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
input, button { font-family: inherit; outline: none; border: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; transition: all .15s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(.95); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-outline  { background: transparent; border-color: var(--border); color: var(--text-dim); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple-light); }
.btn-twitch  { background: var(--purple); color: #fff; font-size: 15px; padding: 13px 28px; border-radius: 10px; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 7px; }
.full-w { width: 100%; }
button:disabled { opacity: .45; cursor: default; }

/* ─── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px; height: 52px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  flex-shrink: 0;
}
.nav-user { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13px; font-weight: 600; }
.avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--purple); object-fit: cover; }

/* ─── Logo ─────────────────────────────────────────────────────────────────── */
.logo { font-size: 36px; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.logo.small { font-size: 20px; }
.logo a { display: flex; align-items: center; }
.logo-mod { color: var(--purple); }
.logo-cast { color: var(--text); }

/* ─── Landing ──────────────────────────────────────────────────────────────── */
body.landing { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.landing-bg {
  width: 100%; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 65% 0%, rgba(145,70,255,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 85%, rgba(0,229,160,.08) 0%, transparent 50%),
    var(--bg);
}
.landing-content {
  text-align: center;
  max-width: 480px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.landing-content .logo { font-size: 72px; margin-bottom: 16px; }
.tagline { font-size: 20px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.sub {
  font-size: 14px; color: var(--text-dim); line-height: 1.7;
  margin-bottom: 36px; max-width: 360px;
}
.error-msg {
  background: rgba(255,71,87,.12); border: 1px solid rgba(255,71,87,.4);
  color: var(--red); padding: 10px 16px; border-radius: 8px;
  margin-bottom: 24px; font-size: 13px; width: 100%;
}
.btn-twitch {
  background: var(--purple); color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 14px 36px;
  border-radius: 12px;
  letter-spacing: .01em;
  box-shadow: 0 4px 24px rgba(145,70,255,.35);
  margin-bottom: 48px;
}
.btn-twitch:hover {
  box-shadow: 0 6px 32px rgba(145,70,255,.5);
}
.features {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.feature {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-dim); font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
}
.feat-icon { font-size: 22px; }

/* ─── Dashboard ────────────────────────────────────────────────────────────── */
body.dash-page { display: flex; flex-direction: column; min-height: 100vh; }
.dash-container { max-width: 760px; margin: 36px auto; padding: 0 20px; width: 100%; }
.dash-container h1 { font-size: 26px; margin-bottom: 6px; }
.dash-sub { color: var(--text-dim); margin-bottom: 28px; font-size: 13px; line-height: 1.55; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px;
}
.card h2 { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.card > p { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }

.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 640px) { .dash-cols { grid-template-columns: 1fr; } }

/* Form fields */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-dim); margin-bottom: 6px; }
.label-opt { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .65; }
.field input {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); padding: 10px 13px; border-radius: 8px;
  font-size: 14px; transition: border-color .15s;
}
.field input:focus { border-color: var(--purple); }

.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }
.pw-row { display: flex; gap: 6px; }
.pw-row input { flex: 1; }
.btn-eye {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 0 12px; cursor: pointer; font-size: 15px; transition: border-color .15s;
}
.btn-eye:hover { border-color: var(--purple); }

.status-msg { margin-top: 10px; font-size: 13px; min-height: 18px; }
.status-msg.error { color: var(--red); }
.status-msg.info  { color: var(--green); }

/* Toggle switch */
.field .toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  user-select: none;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s, background .2s;
}
.field .toggle-label input[type=checkbox] { display: none; }

/* Text on left */
.field .toggle-label-text { flex: 1 1 auto; min-width: 0; line-height: 1.35; }

/* Track on right — always a visible pill */
.field .toggle-track {
  flex-shrink: 0;
  margin-left: auto;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #6b1c24;
  border: 2px solid #a0303c;
  position: relative;
  transition: background .2s, border-color .2s;
}
.field .toggle-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #e88;
  position: absolute; top: 2px; left: 2px;
  transition: left .18s, background .18s;
}

/* ON state — green */
.field .toggle-label:has(input:checked) {
  border-color: var(--border-hi);
  background: var(--bg);
  color: var(--text);
}
.field .toggle-label:has(input:checked) .toggle-track {
  background: #1a7a4a;
  border-color: #32ff88;
}
.field .toggle-label:has(input:checked) .toggle-track .toggle-thumb {
  left: 20px;
  background: #fff;
}

/* Invite code display */
.room-link-box { margin-top: 18px; }
.invite-display {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 14px;
}
.invite-display-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-dim); }
.invite-code-big {
  font-size: 40px; font-weight: 900; letter-spacing: .25em;
  color: var(--purple-light); font-family: 'Courier New', monospace;
  text-shadow: 0 0 24px rgba(145,70,255,.5);
}
.room-links-grid { display: flex; flex-direction: column; gap: 10px; }
.room-link-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); margin-bottom: 5px; }
.room-link-row { display: flex; gap: 6px; }
.room-link-row input {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  color: var(--text-mid); padding: 7px 10px; border-radius: 7px;
  font-size: 11px; font-family: monospace;
}

/* Join divider */
.join-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-dim); font-size: 11px; margin: 14px 0;
}
.join-divider::before, .join-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ─── Room Page ────────────────────────────────────────────────────────────── */
body.room-page { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.room-layout { display: flex; flex: 1; overflow: hidden; min-height: 0; }

/* Navbar room info */
.room-info { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.room-channel-avatar { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--purple); }
.room-channel-name { color: var(--text); }
.lock-pill, .static-pill {
  font-size: 11px; padding: 1px 7px; border-radius: 20px;
  background: var(--purple-dim); border: 1px solid rgba(145,70,255,.25);
}

/* ─── Video Grid ───────────────────────────────────────────────────────────── */
.video-grid {
  flex: 1; min-width: 0;
  display: grid; gap: 4px;
  background: #080810; padding: 4px;
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 1fr;
  align-content: start;
}

.video-placeholder {
  grid-column: 1 / -1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: var(--text-dim);
  text-align: center; height: 100%;
}
.placeholder-icon { font-size: 44px; opacity: .3; }
.placeholder-text { font-size: 15px; font-weight: 600; }
.placeholder-sub  { font-size: 12px; opacity: .55; }

/* Video Tile */
.video-tile {
  position: relative; background: #0a0a16;
  border-radius: 8px; overflow: hidden;
  aspect-ratio: 16/9;
  border: 2px solid transparent;
  box-shadow: 0 0 0px rgba(0,229,160,0);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.video-tile.speaking { border-color: var(--green); box-shadow: 0 0 14px rgba(0,229,160,.3); }
.video-tile.speaking .no-video-avatar { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0,229,160,.2); }

.video-tile video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Tile overlay: label bottom-left, icons top-right */
.tile-overlay {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0;
}
.tile-label {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  padding: 4px 8px; border-radius: 0 6px 0 0;
  font-size: 12px; font-weight: 600; max-width: 70%;
}
.tile-avatar { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.tile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-you  { opacity: .5; font-size: 10px; font-weight: 400; }

.tile-icons {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 5px; align-items: center;
}
.tile-screen-icon { font-size: 13px; }
.tile-muted-icon  { display: inline-flex; align-items: center; }

/* No-video overlay */
.no-video-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; background: #0a0a16;
}
.no-video-avatar { width: 68px; height: 68px; border-radius: 50%; border: 3px solid var(--border); object-fit: cover; transition: border-color .25s ease, box-shadow .25s ease; }
.no-video-name   { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-dim); }

/* Role badges */
.role-badge { display: inline-flex; align-items: center; flex-shrink: 0; }
.role-badge svg { display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }

/* ─── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w);
  background: var(--bg2);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
}

.sidebar-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-title {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .9px; color: var(--text-dim); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.peer-count-badge {
  background: var(--border); color: var(--text-mid);
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px;
}

/* Controls */
.controls { display: flex; flex-direction: column; gap: 8px; }

.ctrl-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 42px; padding: 10px 12px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 9px; cursor: pointer; color: var(--text);
  font-size: 13px; font-weight: 600; line-height: 1.2;
  transition: all .15s; flex-shrink: 0;
}
.ctrl-btn:hover { border-color: var(--purple); color: var(--purple-light); background: rgba(145,70,255,.08); }
.ctrl-btn[data-active="true"]:not(.ctrl-danger) { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.ctrl-btn[data-active="false"] { opacity: .7; }
.ctrl-danger:hover { border-color: var(--red) !important; color: var(--red) !important; background: rgba(255,71,87,.08) !important; }
.quality-select {
  width: 100%; min-height: 42px; padding: 10px 12px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 9px; cursor: pointer; color: var(--text-dim);
  font-size: 13px; font-weight: 600; transition: border-color .15s;
  appearance: none;
}
.quality-select:hover { border-color: var(--purple); }
.quality-select:focus { outline: none; border-color: var(--purple); }

.ctrl-svg { width: 18px; height: 18px; flex-shrink: 0; }
.ctrl-label { flex: 1; text-align: left; }

#obs-audio-toggle-row {
  margin: 2px 0 0;
}

/* Audio settings sub-labels */
.audio-settings-group { margin-bottom: 4px; }
.audio-settings-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-dim); margin-bottom: 5px;
  display: flex; align-items: center; gap: 6px;
}

/* My gain row */
.my-vol-row { display: flex; align-items: center; gap: 8px; }
.my-vol-row svg { flex-shrink: 0; }

/* Volume slider */
.vol-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 2px; background: var(--border);
  cursor: pointer; outline: none;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--purple); cursor: pointer;
  transition: transform .1s;
}
.vol-slider::-webkit-slider-thumb:hover { transform: scale(1.25); }
.vol-slider::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--purple); cursor: pointer; border: none;
}
.vol-value { font-size: 10px; color: var(--text-dim); font-weight: 600; min-width: 30px; text-align: right; }

/* Peer list */
.sidebar-peers { flex: 1; }
.peer-list { display: flex; flex-direction: column; gap: 2px; }

.peer-group-label {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .8px; color: var(--text-dim);
  margin-top: 10px; margin-bottom: 6px;
  padding-bottom: 4px; border-bottom: 1px solid var(--border);
}
.peer-group-label:first-child { margin-top: 0; }

.peer-item { display: flex; flex-direction: column; gap: 5px; padding: 4px 0; }
.peer-item-top { display: flex; align-items: center; gap: 6px; }
.peer-avatar { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.peer-avatar.peer-muted { opacity: .5; }
.peer-name-text { font-size: 13px; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peer-you { font-size: 10px; font-weight: 400; opacity: .55; }
.peer-muted-icon { flex-shrink: 0; display: inline-flex; }

.peer-vol-row { display: flex; align-items: center; gap: 7px; padding-left: 30px; }
.peer-screen-audio-row { margin-top: 3px; opacity: .75; }
.peer-mute-btn {
  flex-shrink: 0; border: none; background: none; padding: 0; cursor: pointer;
  color: var(--text-dim); display: flex; align-items: center; transition: color .15s;
}
.peer-mute-btn:hover { color: var(--red); }
.peer-mute-btn.local-muted { color: var(--red); }
.peer-vol { background: var(--border); }

/* Diagnostics */
.diag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; }
.diag-item { display: flex; flex-direction: column; gap: 2px; }
.diag-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-dim); }
.diag-value { font-size: 12px; font-weight: 700; font-family: 'Courier New', monospace; color: var(--text); }
.diag-value.good { color: var(--green); }
.diag-value.warn { color: #f5a623; }
.diag-value.bad  { color: var(--red); }
.diag-peers { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.diag-peer-row { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--text-dim); border-top: 1px solid var(--border); padding-top: 4px; }
.diag-peer-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80px; }
.diag-peer-stats { font-family: 'Courier New', monospace; font-size: 10px; display: flex; gap: 6px; }

/* OBS section */
.obs-url-row { display: flex; gap: 6px; margin-bottom: 8px; }
.obs-url-input {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  color: var(--text-mid); padding: 6px 8px; border-radius: 6px;
  font-size: 10px; font-family: monospace;
}
.obs-hint { font-size: 11px; color: var(--text-dim); line-height: 1.55; }
.obs-hint strong { color: var(--text-mid); }

/* ─── Password Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: var(--card); border: 1px solid var(--border-hi);
  border-radius: 16px; padding: 36px 30px;
  width: 100%; max-width: 360px;
  display: flex; flex-direction: column; gap: 14px;
  text-align: center;
}
.modal-logo { font-size: 26px; font-weight: 900; letter-spacing: -1px; }
.modal-icon { font-size: 38px; }
.modal h2 { font-size: 17px; }
.modal p  { font-size: 13px; color: var(--text-dim); margin: -4px 0; }
.modal .field { text-align: left; margin-bottom: 0; }
.modal-back { font-size: 12px; color: var(--text-dim); }
.modal-back:hover { color: var(--purple-light); }

/* Your Rooms section */
.my-rooms-section { margin-top: 32px; }
.my-rooms-section h2 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.my-rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.my-room-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
}
.my-room-card.dead { opacity: .45; }
.my-room-top { display: flex; align-items: center; gap: 10px; }
.my-room-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.my-room-info { flex: 1; min-width: 0; }
.my-room-channel { font-size: 14px; font-weight: 700; color: var(--text); }
.my-room-meta { font-size: 11px; color: var(--text-dim); margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.perm-badge { font-size: 10px; font-weight: 700; color: var(--purple-light); background: var(--purple-dim); border: 1px solid rgba(145,70,255,.25); padding: 1px 6px; border-radius: 20px; }
.my-room-code { font-family: 'Courier New', monospace; font-size: 13px; font-weight: 700; letter-spacing: .15em; color: var(--purple-light); background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.my-room-code-copy { font-size: 10px; font-weight: 700; color: var(--text-dim); cursor: pointer; border: none; background: none; padding: 0; }
.my-room-code-copy:hover { color: var(--purple-light); }
.my-room-actions { display: flex; gap: 8px; }
.my-room-dead-msg { font-size: 12px; color: var(--text-dim); text-align: center; }

/* Active dot indicator */
.room-active-dot, .room-dead-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 5px; flex-shrink: 0;
  vertical-align: middle; position: relative; top: -1px;
}
.room-active-dot {
  background: var(--green);
  box-shadow: 0 0 6px rgba(50,255,136,0.7);
  animation: pulse-dot 2s ease-in-out infinite;
}
.room-dead-dot { background: var(--text-dim); opacity: .4; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px rgba(50,255,136,0.5); }
  50%       { box-shadow: 0 0 10px rgba(50,255,136,0.9); }
}

/* Peer row under room card header */
.room-peers-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
}
.room-peers-avatars { display: flex; align-items: center; gap: -4px; }
.room-peer-initial, .room-peer-extra {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  border: 2px solid var(--card);
  margin-left: -4px; flex-shrink: 0;
}
.room-peer-initial:first-child { margin-left: 0; }
.room-peer-initial {
  background: var(--purple-dim);
  color: var(--purple-light);
  text-transform: uppercase;
}
.room-peer-extra {
  background: var(--bg2);
  color: var(--text-dim);
  font-size: 9px;
}
.room-peers-label {
  font-size: 11px; font-weight: 600; color: var(--text-dim); flex: 1;
}
.room-peers-label.empty { font-style: italic; opacity: .6; }

/* Lock / open badges in dashboard */
.lock-badge {
  font-size: 11px; font-weight: 700; color: var(--purple-light);
  background: var(--purple-dim); border: 1px solid rgba(145,70,255,.25);
  padding: 2px 8px; border-radius: 20px;
}
.open-badge {
  font-size: 11px; font-weight: 700; color: var(--green);
  background: var(--green-dim); border: 1px solid rgba(0,229,160,.2);
  padding: 2px 8px; border-radius: 20px;
}
