* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f1117; color: #e4e4e7; min-height: 100vh;
}
#app { max-width: 900px; margin: 0 auto; padding: 20px; }
header { text-align: center; margin-bottom: 30px; padding: 20px 0; border-bottom: 1px solid #27272a; }
header h1 { font-size: 2.5rem; background: linear-gradient(135deg, #3b82f6, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tagline { color: #71717a; margin-top: 4px; }
#user-bar { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; }
#user-bar button { padding: 4px 12px; background: #27272a; border: 1px solid #3f3f46; border-radius: 6px; color: #a1a1aa; cursor: pointer; }
#user-bar button:hover { background: #3f3f46; }
.hidden { display: none !important; }
.card { background: #18181b; border: 1px solid #27272a; border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.card h2 { margin-bottom: 16px; font-size: 1.3rem; }
.card h3 { margin: 20px 0 10px; font-size: 1rem; color: #a1a1aa; }
input, select { background: #27272a; border: 1px solid #3f3f46; border-radius: 6px; padding: 10px 14px; color: #e4e4e7; font-size: 14px; }
input:focus, select:focus { outline: none; border-color: #3b82f6; }
button { padding: 10px 20px; background: #3b82f6; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; }
button:hover { background: #2563eb; }
.login-options { display: flex; flex-direction: column; gap: 16px; }
.guest-login { display: flex; gap: 8px; }
.guest-login input { flex: 1; }
.divider { display: flex; align-items: center; gap: 12px; color: #52525b; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #27272a; }
.google-btn { background: #fff; color: #333; font-weight: 600; }
.google-btn:hover { background: #f1f1f1; }
.create-room { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.create-room input { flex: 1; min-width: 150px; }
.add-member { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.add-member input { flex: 1; }
.token-request { display: flex; gap: 8px; align-items: center; }
#token-result { margin-top: 12px; padding: 12px; background: #0f0f12; border: 1px solid #27272a; border-radius: 8px; }
#token-value { word-break: break-all; font-size: 11px; color: #86efac; max-height: 80px; overflow-y: auto; margin-bottom: 8px; }
.muted { color: #71717a; font-size: 12px; margin-top: 4px; }
code { background: #27272a; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
#room-list { display: flex; flex-direction: column; gap: 8px; }
.room-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #1f1f23; border-radius: 8px; cursor: pointer; transition: background 0.2s; }
.room-item:hover { background: #27272a; }
.room-item .name { font-weight: 600; }
.room-item .ns { font-size: 12px; color: #71717a; }
.member-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #1f1f23; border-radius: 6px; margin-bottom: 6px; }
.member-item .role { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #27272a; color: #a1a1aa; }
.member-item .role.admin { background: #7c3aed22; color: #a78bfa; }
.member-item .role.publisher { background: #059669aa; color: #6ee7b7; }
.member-item .role.subscriber { background: #2563eb22; color: #93c5fd; }
