:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #10131b; color: #edf0fa; }
* { box-sizing: border-box; }
body { margin: 0; padding: 48px 20px; }
main { max-width: 960px; margin: auto; }
header { display: flex; align-items: center; gap: 12px; }
h1 { font-size: 28px; margin: 0; letter-spacing: -.8px; }
.mark { background: #8177fa; color: #10131b; font-weight: 900; padding: 8px 14px; border-radius: 12px; }
.subtitle { color: #aab1c6; margin-bottom: 32px; }
section { padding: 24px; background: #1a1f2c; border: 1px solid #30384b; border-radius: 16px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
button, input { font: inherit; border-radius: 8px; padding: 12px 18px; }
button { background: #8177fa; color: #0e1120; border: 1px solid transparent; font-weight: 650; cursor: pointer; }
button:hover { filter: brightness(1.12); }
button:disabled { opacity: .5; cursor: default; }
.secondary { background: #292f40; color: #edf0fa; border-color: #424b62; }
.danger { background: #40232e; color: #ffb4c2; border-color: #714050; }
input { background: #10131b; color: #edf0fa; border: 1px solid #535e79; width: min(100%, 360px); }
section + section { margin-top: 16px; }
form, #invite-result { margin: 20px 0; }
#invite-link { width: 100%; margin-bottom: 10px; }
#members, #invites { list-style: none; padding: 0; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #30384b; overflow-wrap: anywhere; }
.member-row button { padding: 6px 12px; }
.online { color: #a3e2be; }
.offline { color: #aab1c6; }
label { display: block; margin-bottom: 10px; }
video { width: 100%; background: #080a10; border-radius: 10px; margin: 20px 0; max-height: 65vh; aspect-ratio: 16 / 9; object-fit: contain; }
video:fullscreen { max-height: none; border-radius: 0; }
#room-code { letter-spacing: 1px; color: #b7b0ff; overflow-wrap: anywhere; }
#invite { text-transform: none; width: min(100%, 560px); }
.hint, #status { color: #b6bfd4; font-size: 14px; line-height: 1.6; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #c7c2ff; outline-offset: 4px; }
#diagnostics { margin-top: 16px; color: #b6bfd4; font-size: 13px; }
#diagnostics summary { cursor: pointer; padding: 10px 0; }
#diagnostics table { width: 100%; border-collapse: collapse; margin: 16px 0; table-layout: fixed; }
#diagnostics caption { text-align: left; font-weight: 650; padding: 8px 0; }
#diagnostics th, #diagnostics td { text-align: left; vertical-align: top; padding: 6px; border-bottom: 1px solid #30384b; overflow-wrap: anywhere; }
#diagnostics th { width: 36%; font-weight: 500; }
/* V2.1: sala única, tela central e controles independentes de voz. */
body { padding: 24px; }
main { max-width: 1600px; }
.workspace { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.sidebar, .chat-panel, .stage, .voice-panel { min-width: 0; padding: 20px; background: #191e2a; border: 1px solid #30384b; border-radius: 16px; }
.stage { min-height: 430px; background: #121722; }
.stage section { padding: 14px; margin-top: 16px; background: #191e2a; }
.voice-panel { grid-column: 1 / -1; margin: 0; }
h2 { font-size: 17px; margin-top: 0; }
#transmission-status { font-size: 20px; font-weight: 650; }
.member-row { flex-wrap: wrap; font-size: 14px; gap: 7px; }
.member-row > span, .member-row > small { width: 100%; }
.member-row small { color: #acb8d0; }
.speaking { box-shadow: inset 3px 0 #71e3af; padding-left: 8px; }
#admin-panel { margin-top: 30px; }
#chat-messages { list-style: none; padding: 0; height: 380px; overflow-y: auto; overflow-wrap: anywhere; }
#chat-messages li { padding: 12px 0; border-bottom: 1px solid #30384b; }
#chat-messages time { font-size: 11px; color: #aab1c6; margin-left: 8px; }
#chat-messages p { white-space: pre-wrap; margin: 6px 0; }
textarea, select { font: inherit; color: inherit; background: #10131b; border: 1px solid #535e79; border-radius: 8px; padding: 10px; max-width: 100%; }
textarea { width: 100%; resize: vertical; margin-bottom: 8px; }
.voice-member { display: inline-flex; gap: 10px; align-items: center; padding: 12px; }
.voice-member input { width: 110px; padding: 0; }
.voice-member label { margin: 0; }
#access-panel { max-width: 650px; margin: 40px auto; }
@media (max-width: 1150px) { .workspace { grid-template-columns: 220px minmax(0, 1fr); } .chat-panel { grid-column: 2; } .voice-panel { grid-column: 1 / -1; } .sidebar { grid-row: span 2; } }
@media (max-width: 700px) { body { padding: 12px; } .workspace { display: flex; flex-direction: column; } .workspace > * { width: 100%; } .stage { order: 0; min-height: 180px; } .voice-panel { order: 1; } .chat-panel { order: 2; } .sidebar { order: 3; } #chat-messages { height: 240px; } button { padding: 10px 12px; } }
