/* Toca — uma toca à noite, iluminada por uma lamparina.
   Base em tons de musgo; a única cor forte é a luz âmbar, reservada para
   quem está falando, ações principais e o que pede atenção. */
:root {
  --moss-0: #1E231F;   /* barra lateral */
  --moss-1: #232923;   /* trilhos e cabeçalhos */
  --moss-2: #2B322B;   /* área de conversa */
  --moss-3: #363E36;   /* campos, hover */
  --moss-4: #444D44;   /* bordas fortes */
  --line: #3A423A;
  --paper: #ECE8DA;    /* texto */
  --paper-dim: #AFB2A3;
  --paper-mute: #82877A;
  --lantern: #F2B544;  /* destaque */
  --lantern-soft: rgba(242, 181, 68, .16);
  --lantern-ink: #2B1F06;
  --ember: #E5674F;    /* ao vivo, perigo */
  --ember-soft: rgba(229, 103, 79, .16);
  --sprout: #8FC98A;   /* online */
  --radius: 6px;
  --font-ui: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Atkinson Hyperlegible", system-ui, sans-serif;
  --side-w: 248px;
  --members-w: 232px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--moss-2); color: var(--paper); font: 15px/1.45 var(--font-ui); -webkit-font-smoothing: antialiased; overflow: hidden; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--lantern); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--lantern); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--lantern); color: var(--lantern-ink); }
* { scrollbar-width: thin; scrollbar-color: var(--moss-4) transparent; }

/* ---------- botões base ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--radius); background: var(--moss-3); font-weight: 700; transition: background .12s; }
.btn:hover { background: var(--moss-4); }
.btn.primary { background: var(--lantern); color: var(--lantern-ink); }
.btn.primary:hover { background: #F6C463; }
.btn.danger { background: var(--ember); color: #2A0D07; }
.btn.ghost { background: transparent; color: var(--paper-dim); }
.btn.ghost:hover { color: var(--paper); background: var(--moss-3); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius); color: var(--paper-dim); }
.icon-btn:hover { background: var(--moss-3); color: var(--paper); }
.icon-btn[aria-pressed="true"] { color: var(--ember); }
.icon-btn.danger:hover { color: var(--ember); }
#btn-toggle-chat[aria-pressed="true"] { color: var(--lantern); }

/* ---------- tela de entrada ---------- */
.auth { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: var(--moss-0); overflow: auto; }
.auth-card { width: min(380px, 100%); }
.auth-title { font: 700 clamp(64px, 14vw, 104px)/.9 var(--font-display); letter-spacing: -0.04em; margin: 0 0 12px; color: var(--lantern); }
.auth-sub { color: var(--paper-dim); margin: 0 0 28px; max-width: 32ch; }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: 8px 2px; margin-right: 18px; color: var(--paper-mute); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 700; }
.auth-tabs button[aria-selected="true"] { color: var(--paper); border-color: var(--lantern); }
.auth form, .form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--paper-dim); font-weight: 700; }
input:not([type=checkbox]):not([type=range]):not([type=color]), select, textarea.field {
  height: 40px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--moss-1); font-weight: 400; font-size: 15px;
}
input:focus, select:focus, textarea.field:focus { outline: none; border-color: var(--lantern); }
.form-error { min-height: 1.2em; margin: 0; color: var(--ember); font-size: 14px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--side-w) 1fr var(--members-w); height: 100vh; height: 100dvh; }
.app.members-hidden { grid-template-columns: var(--side-w) 1fr 0; }
.app.members-hidden .members { display: none; }

/* ---------- barra lateral ---------- */
.sidebar { display: flex; flex-direction: column; background: var(--moss-0); min-height: 0; }
.server-head { display: flex; align-items: center; gap: 8px; padding: 14px 10px 10px 16px; }
.server-name { flex: 1; font: 700 30px/1 var(--font-display); letter-spacing: -0.03em; color: var(--lantern); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channels { flex: 1; overflow-y: auto; padding: 6px 8px 12px; }
.cat { display: flex; align-items: center; justify-content: space-between; padding: 16px 6px 4px 8px; color: var(--paper-mute); font-size: 13px; font-weight: 700; }
.cat .icon-btn { width: 24px; height: 24px; }
.cat .icon-btn svg { width: 16px; height: 16px; }
.ch { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: var(--radius); color: var(--paper-mute); text-align: left; position: relative; }
.ch svg { width: 18px; height: 18px; opacity: .8; }
.ch .ch-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch:hover { background: var(--moss-2); color: var(--paper-dim); }
.ch.active { background: var(--moss-3); color: var(--paper); }
.ch.unread { color: var(--paper); font-weight: 700; }
.ch.unread::before { content: ""; position: absolute; left: -8px; width: 4px; height: 8px; border-radius: 0 4px 4px 0; background: var(--paper); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ember); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.voice-members { list-style: none; margin: 2px 0 6px 26px; padding: 0; }
.vm { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: var(--radius); color: var(--paper-dim); font-size: 14px; }
.vm .vm-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm svg { width: 15px; height: 15px; color: var(--paper-mute); }
.live-tag { font-size: 11px; font-weight: 700; color: #fff; background: var(--ember); border-radius: 4px; padding: 1px 5px; letter-spacing: .02em; }

.voice-panel { margin: 0 8px; padding: 10px; border-top: 1px solid var(--line); }
.vp-status { display: flex; align-items: center; gap: 10px; }
.vp-status > div { flex: 1; min-width: 0; }
.vp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sprout); box-shadow: 0 0 0 4px rgba(143, 201, 138, .18); flex: none; }
.vp-dot.connecting { background: var(--lantern); box-shadow: 0 0 0 4px var(--lantern-soft); }
.vp-title { font-size: 14px; font-weight: 700; color: var(--sprout); }
.vp-title.connecting { color: var(--lantern); }
.vp-channel { font-size: 13px; color: var(--paper-dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.vp-channel:hover { color: var(--paper); text-decoration: underline; }
.vp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.pill-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: var(--radius); background: var(--moss-2); color: var(--paper-dim); font-size: 13px; font-weight: 700; }
.pill-btn:hover { background: var(--moss-3); color: var(--paper); }
.pill-btn svg { width: 17px; height: 17px; }
.pill-btn[aria-pressed="true"] { background: var(--lantern); color: var(--lantern-ink); }

.me-panel { display: flex; align-items: center; gap: 2px; padding: 8px; background: var(--moss-1); }
.me-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: var(--radius); text-align: left; }
.me-who:hover { background: var(--moss-3); }
.me-names { display: grid; min-width: 0; line-height: 1.2; }
.me-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-user { font-size: 12px; color: var(--paper-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- avatares ---------- */
.avatar { --c: var(--lantern); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 22%, var(--moss-2)); color: var(--c); font: 700 17px/1 var(--font-display); position: relative; transition: box-shadow .12s; }
.avatar.sm { width: 32px; height: 32px; font-size: 14px; }
.avatar.xs { width: 22px; height: 22px; font-size: 11px; }
.avatar.speaking { box-shadow: 0 0 0 2px var(--moss-0), 0 0 0 4px var(--lantern); }
.avatar .status { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--moss-1); background: var(--paper-mute); }
.avatar .status.on { background: var(--sprout); }

/* ---------- principal ---------- */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--moss-2); }
.main-head { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); flex: none; }
.head-glyph { color: var(--paper-mute); font: 700 22px/1 var(--font-display); }
.head-glyph svg { width: 22px; height: 22px; display: block; }
.head-title { margin: 0; font: 700 18px/1 var(--font-display); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-spacer { flex: 1; }
.conn-banner { padding: 6px 16px; background: var(--lantern); color: var(--lantern-ink); font-weight: 700; font-size: 14px; }
.main-body { flex: 1; display: flex; min-height: 0; }
.only-mobile { display: none; }

/* ---------- chat ---------- */
.chat { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.main-body.voice-mode .chat { flex: 0 0 360px; border-left: 1px solid var(--line); background: var(--moss-1); }
.main-body.voice-mode.chat-hidden .chat { display: none; }
.messages { flex: 1; overflow-y: auto; padding: 16px 0 8px; overflow-anchor: none; }
.empty-state { margin: auto 16px 16px; padding: 24px 0 8px; }
.empty-state h3 { font: 700 28px/1.1 var(--font-display); letter-spacing: -0.02em; margin: 0 0 8px; }
.empty-state p { color: var(--paper-dim); margin: 0; }
.load-more { display: block; margin: 0 auto 12px; color: var(--paper-mute); font-size: 13px; }
.day-sep { display: flex; align-items: center; gap: 10px; margin: 16px 16px 6px; color: var(--paper-mute); font-size: 12px; font-weight: 700; }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; padding: 3px 48px 3px 16px; position: relative; }
.msg.first { margin-top: 12px; }
.msg:hover { background: rgba(0, 0, 0, .12); }
.msg.mentioned { background: var(--lantern-soft); box-shadow: inset 3px 0 0 var(--lantern); }
.msg.pending { opacity: .55; }
.msg .avatar { grid-row: span 2; margin-top: 2px; }
.msg .gutter { font-size: 11px; color: var(--paper-mute); text-align: right; padding-top: 4px; opacity: 0; white-space: nowrap; }
.msg:hover .gutter { opacity: 1; }
.msg-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.msg-author { font-weight: 700; color: var(--c, var(--paper)); }
.msg-time { font-size: 12px; color: var(--paper-mute); }
.msg-body { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg-body .edited { font-size: 11px; color: var(--paper-mute); margin-left: 4px; }
.msg-body code { font: 13px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--moss-0); padding: 1px 5px; border-radius: 4px; }
.msg-body pre { margin: 6px 0; padding: 10px 12px; background: var(--moss-0); border-radius: var(--radius); overflow-x: auto; white-space: pre; }
.msg-body pre code { background: none; padding: 0; }
.msg-body blockquote { margin: 2px 0; padding-left: 10px; border-left: 3px solid var(--moss-4); color: var(--paper-dim); }
.mention { background: var(--lantern-soft); color: var(--lantern); padding: 0 3px; border-radius: 4px; font-weight: 700; }
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.att-img { display: block; max-width: min(420px, 100%); max-height: 320px; border-radius: var(--radius); cursor: zoom-in; background: var(--moss-1); }
.att-video { max-width: min(480px, 100%); max-height: 320px; border-radius: var(--radius); background: #000; }
.att-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--moss-1); text-decoration: none; color: var(--paper); max-width: 360px; }
.att-file svg { color: var(--lantern); }
.att-file small { display: block; color: var(--paper-mute); }
.msg-actions { position: absolute; right: 12px; top: -14px; display: none; background: var(--moss-1); border: 1px solid var(--line); border-radius: var(--radius); }
.msg:hover .msg-actions { display: flex; }
.msg-actions .icon-btn { width: 30px; height: 30px; }
.msg-actions svg { width: 17px; height: 17px; }
.edit-box { display: grid; gap: 4px; }
.edit-box textarea { width: 100%; min-height: 40px; resize: vertical; padding: 8px 10px; border-radius: var(--radius); border: 1px solid var(--lantern); background: var(--moss-1); }
.edit-box small { color: var(--paper-mute); }

.typing { height: 22px; padding: 0 18px; font-size: 13px; color: var(--paper-dim); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.composer { margin: 0 16px 16px; position: relative; }
.composer-row { display: flex; align-items: flex-end; gap: 4px; padding: 4px; border-radius: 10px; background: var(--moss-3); }
.composer textarea { flex: 1; resize: none; border: 0; background: transparent; padding: 7px 4px; max-height: 40vh; min-height: 34px; line-height: 1.35; outline: none; }
.composer .send { color: var(--lantern); }
.uploads { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.uploads:empty { display: none; }
.up-chip { display: flex; align-items: center; gap: 8px; max-width: 240px; padding: 6px 6px 6px 10px; border-radius: var(--radius); background: var(--moss-3); font-size: 13px; position: relative; overflow: hidden; }
.up-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-chip .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--lantern); }
.up-chip.err { color: var(--ember); }
.up-chip .icon-btn { width: 24px; height: 24px; }
.up-chip svg { width: 14px; height: 14px; }
.mention-pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--moss-1); border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.mention-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: var(--radius); text-align: left; }
.mention-item small { color: var(--paper-mute); }
.mention-item.sel, .mention-item:hover { background: var(--moss-3); }
.drop-hint { position: absolute; inset: 12px; border: 2px dashed var(--lantern); border-radius: 14px; background: rgba(35, 41, 35, .9); display: grid; place-items: center; font: 700 24px var(--font-display); color: var(--lantern); pointer-events: none; }

/* ---------- palco da sala de voz ---------- */
.stage { container-type: inline-size; flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 16px; gap: 12px; overflow: hidden; }
.stage-join { margin: auto; text-align: center; display: grid; justify-items: center; gap: 14px; max-width: 420px; }
.stage-join h3 { margin: 0; font: 700 34px/1.05 var(--font-display); letter-spacing: -0.02em; }
.stage-join p { margin: 0; color: var(--paper-dim); }
.stage-join .who { display: flex; gap: 6px; justify-content: center; }
.grid { flex: 1; min-height: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); grid-auto-rows: minmax(160px, 1fr); align-content: center; overflow-y: auto; }
.stage.focused .grid { flex: 0 0 120px; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 180px; grid-auto-rows: 110px; justify-content: safe center; overflow-x: auto; overflow-y: hidden; }
.focus-slot { flex: 1; min-height: 0; display: flex; }
.focus-slot:empty { display: none; }
.focus-slot .tile { flex: 1; }
.tile { position: relative; border-radius: 14px; background: var(--moss-1); overflow: hidden; display: grid; place-items: center; min-height: 0; cursor: pointer; border: 1px solid var(--line); }
.tile video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.tile.cam video { object-fit: cover; transform: scaleX(-1); }
.tile.cam.remote video { transform: none; }
.tile .hole { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, var(--moss-0)); color: var(--c); font: 700 40px/1 var(--font-display); transition: box-shadow .1s; }
.stage.focused .grid .tile .hole { width: 52px; height: 52px; font-size: 22px; }
.tile.speaking { border-color: var(--lantern); }
.tile.speaking .hole { box-shadow: 0 0 0 4px var(--moss-1), 0 0 0 7px var(--lantern), 0 0 40px 10px rgba(242, 181, 68, .35); }
.tile-label { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 16px); padding: 4px 8px; border-radius: var(--radius); background: rgba(20, 24, 20, .72); font-size: 13px; font-weight: 700; }
.tile-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-label svg { width: 15px; height: 15px; color: var(--ember); }
.tile-tools { position: absolute; right: 8px; top: 8px; display: none; gap: 4px; align-items: center; padding: 3px; border-radius: var(--radius); background: rgba(20, 24, 20, .8); }
.tile:hover .tile-tools, .tile:focus-within .tile-tools { display: flex; }
.tile-tools .icon-btn { width: 30px; height: 30px; }
.tile-tools input[type=range] { width: 90px; accent-color: var(--lantern); }
.tile .waiting { color: var(--paper-mute); font-size: 14px; }
.tile.screen .live-tag { position: absolute; left: 8px; top: 8px; }
.stage-bar { display: flex; justify-content: center; gap: 8px; flex: none; }
.stage-bar { flex-wrap: wrap; }
.stage-bar .btn { height: 44px; border-radius: 22px; padding: 0 18px; white-space: nowrap; }
@container (max-width: 520px) { .stage-bar .btn span { display: none; } .stage-bar .btn { padding: 0 14px; } }
.stage-bar .btn[aria-pressed="true"] { background: var(--lantern); color: var(--lantern-ink); }
.stage-bar .btn.off { color: var(--ember); }

/* ---------- membros ---------- */
.members { background: var(--moss-1); overflow-y: auto; padding: 8px 8px 16px; }
.members h4 { margin: 16px 8px 6px; font-size: 13px; color: var(--paper-mute); }
.member { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: var(--radius); }
.member:hover { background: var(--moss-3); }
.member.offline { opacity: .45; }
.member .m-names { min-width: 0; display: grid; line-height: 1.2; }
.member .m-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c); }
.member .m-sub { font-size: 12px; color: var(--paper-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member .avatar .status { border-color: var(--moss-1); }

/* ---------- modais e avisos ---------- */
.modal-root:empty { display: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 12, 10, .65); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--moss-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.modal.wide { width: min(720px, 100%); }
.modal h3 { margin: 0 0 6px; font: 700 24px/1.1 var(--font-display); letter-spacing: -0.01em; }
.modal p { color: var(--paper-dim); margin: 0 0 14px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal h5 { margin: 22px 0 10px; font-size: 14px; color: var(--paper); }
.modal h5:first-of-type { margin-top: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; color: var(--paper); }
.check input { width: 18px; height: 18px; accent-color: var(--lantern); }
.choice { display: grid; gap: 8px; }
.choice label { grid-template-columns: auto 1fr; align-items: start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; color: var(--paper); font-weight: 400; }
.choice label:has(input:checked) { border-color: var(--lantern); background: var(--lantern-soft); }
.choice input { margin-top: 3px; accent-color: var(--lantern); }
.choice small { display: block; color: var(--paper-dim); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 3px solid transparent; }
.swatch[aria-pressed="true"] { border-color: var(--paper); }
.meter { height: 8px; border-radius: 4px; background: var(--moss-0); overflow: hidden; }
.meter > div { height: 100%; width: 0; background: var(--sprout); transition: width .08s; }
.invite-code { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--moss-0); font: 700 22px/1 var(--font-display); letter-spacing: .02em; color: var(--lantern); }
.invite-code span { flex: 1; user-select: all; }
.ch-admin { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ch-admin input { flex: 1; height: 34px !important; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(10, 12, 10, .88); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 70; pointer-events: none; }
.toast { padding: 10px 16px; border-radius: var(--radius); background: var(--paper); color: var(--moss-0); font-weight: 700; font-size: 14px; max-width: min(90vw, 440px); }
.toast.err { background: var(--ember); color: #2A0D07; }

/* ---------- telas pequenas ---------- */
@media (max-width: 1100px) {
  .app, .app.members-hidden { grid-template-columns: var(--side-w) 1fr; }
  .members { position: fixed; right: 0; top: 52px; bottom: 0; width: var(--members-w); z-index: 20; border-left: 1px solid var(--line); }
  .app.members-hidden .members { display: none; }
  .main-body.voice-mode .chat { flex-basis: 300px; }
}
@media (max-width: 760px) {
  .app, .app.members-hidden { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(86vw, 300px); z-index: 30; transform: translateX(-100%); transition: transform .18s; }
  .app.side-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5); }
  .only-mobile { display: inline-grid; }
  .msg { padding-right: 16px; }
  .main-body.voice-mode { flex-direction: column; }
  .main-body.voice-mode .chat { flex: 1 1 50%; border-left: 0; border-top: 1px solid var(--line); }
  .stage { flex: 1 1 50%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
