/* ═══════════════════════════════════════════════════════════════════════════
   SNT Screenshare — console de operação.
   Direção: ferramenta técnica, não landing page. Superfícies escuras com
   neutros de viés verde-frio, linhas sólidas em vez de sombras difusas, e o
   verde da marca reservado a ESTADO (ao vivo, ativo, foco) e a uma única ação
   primária por contexto. Vidro só onde algo realmente flutua.
   Grade de 4px em toda a medida.
   ═══════════════════════════════════════════════════════════════════════════ */
@import url('/css/fonts.css');

:root {
  /* ── Neutros: cinza com viés para o verde da marca, nunca cinza puro ── */
  --ink: #0a0c0a;
  --surface: #12160f;
  --surface-2: #191e16;
  --surface-3: #212821;
  --line: #272e23;
  --line-2: #353d30;
  /* Anel de quem está falando (dos outros): branco, para ser visto de longe. */
  --fala: #fff;

  --text: #e9ede4;
  --text-2: #99a193;
  --text-3: #676e62;

  /* ── Marca: a cor da logo. Aparece pouco, e sempre significando algo ── */
  --accent: #c4d038;
  --accent-rgb: 196, 208, 56;
  --textura: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' opacity='0.05'%3E%3Cg transform='translate(24 40) rotate(-12) scale(1.5)'%3E%3Cpath d='M12 19v3' /%3E %3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2' /%3E %3Crect x='9' y='2' width='6' height='13' rx='3' /%3E%3C/g%3E%3Cg transform='translate(190 26) rotate(8) scale(1.7)'%3E%3Cpath d='M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z' /%3E%3C/g%3E%3Cg transform='translate(96 150) rotate(-4) scale(1.9)'%3E%3Cpath d='M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3' /%3E %3Cpath d='M8 21h8' /%3E %3Cpath d='M12 17v4' /%3E %3Cpath d='m17 8 5-5' /%3E %3Cpath d='M17 3h5v5' /%3E%3C/g%3E%3Cg transform='translate(246 168) rotate(14) scale(1.5)'%3E%3Cpath d='M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3' /%3E%3C/g%3E%3Cg transform='translate(30 244) rotate(6) scale(1.4)'%3E%3Cpath d='M15 10V9' /%3E %3Cpath d='M16.472 15a6 6 0 01-8.943 0' /%3E %3Cpath d='M9 10V9' /%3E %3Ccircle cx='12' cy='12' r='10' /%3E%3C/g%3E%3Cg transform='translate(200 258) rotate(-10) scale(1.3)'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z' /%3E %3Cpath d='m21.854 2.147-10.94 10.939' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --accent-2: #d8e455;
  --accent-dim: #7d8825;
  --accent-ink: #0a0c0a;
  --accent-wash: rgba(196, 208, 56, 0.1);
  --accent-line: rgba(196, 208, 56, 0.32);

  /* ── Semânticos (separados do acento) ── */
  --live: #e5484d;
  --live-wash: rgba(229, 72, 77, 0.12);
  --warn: #e3a008;

  /* ── Medida: grade de 4px ── */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;

  --r1: 6px; --r2: 8px; --r3: 12px; --r4: 16px; --pill: 999px;

  /* ── Tipografia ── */
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --t-micro: 11px;
  --t-label: 12px;
  --t-ui: 13px;
  --t-body: 14px;
  --t-lead: 16px;
  --t-title: 20px;
  --t-display: 28px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 8px 24px -8px rgba(0, 0, 0, 0.7);
  --shadow-3: 0 24px 60px -12px rgba(0, 0, 0, 0.8);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --fast: 120ms;
  --mid: 200ms;

  color-scheme: dark;
}

/* ═══ Reset ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--text);
  background: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv02", "cv03";
}
img { display: block; max-width: 100%; user-select: none; -webkit-user-drag: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(196, 208, 56, 0.25); }

/* Ícone: tamanho SEMPRE explícito. Um SVG sem medida herda a largura do pai
   e engole o layout inteiro — foi exatamente o que aconteceu antes. */
.ico { width: 16px; height: 16px; flex: none; display: block; }
.ico-sm { width: 14px; height: 14px; }
.ico-lg { width: 20px; height: 20px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r1); }
:focus:not(:focus-visible) { outline: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2); border-radius: var(--pill);
  border: 3px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #3d463799; background-clip: padding-box; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* ═══ Tipografia ═══ */
h1 { font-size: var(--t-display); font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; text-wrap: balance; }
h2 { font-size: var(--t-title); font-weight: 600; letter-spacing: -0.017em; line-height: 1.25; }
h3 { font-size: var(--t-lead); font-weight: 600; letter-spacing: -0.011em; }
.lead { font-size: var(--t-lead); color: var(--text-2); line-height: 1.55; max-width: 60ch; }
.label {
  font-size: var(--t-micro); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-3);
}
.mono { font-family: var(--mono); font-size: var(--t-ui); font-variant-numeric: tabular-nums; }
.hint { font-size: var(--t-ui); color: var(--text-3); line-height: 1.5; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }

/* ═══ Utilitários ═══ */
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: var(--s3); }
.col { display: flex; flex-direction: column; gap: var(--s3); }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { display: grid; place-items: center; }

/* ═══ Marca ═══ */
.logo {
  width: 22px; height: 22px; flex: none;
  background: var(--accent);
  -webkit-mask: url('/img/logo.svg') center / contain no-repeat;
  mask: url('/img/logo.svg') center / contain no-repeat;
}
.brand { display: flex; align-items: center; gap: var(--s3); }
.brand .name { font-size: var(--t-ui); font-weight: 600; letter-spacing: -0.01em; }
.brand .name span { color: var(--text-3); font-weight: 400; }

/* ═══ Superfícies ═══ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r3);
}

/* ═══ Botões ═══ */
.btn {
  --bg: var(--surface-2);
  --bd: var(--line-2);
  --fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 34px; padding: 0 var(--s3);
  border: 1px solid var(--bd); border-radius: var(--r2);
  background: var(--bg); color: var(--fg);
  font-size: var(--t-ui); font-weight: 500; letter-spacing: -0.006em;
  white-space: nowrap; position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--fast) linear, border-color var(--fast) linear, color var(--fast) linear, opacity var(--fast) linear;
}
@media (hover: hover) { .btn:hover:not(:disabled) { --bg: var(--surface-3); --bd: #3a4234; } }
.btn:active:not(:disabled) { transform: translateY(0.5px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }

/* Uma única ação primária por contexto — por isso ela pode usar a marca. */
.btn.primary { --bg: var(--accent); --bd: var(--accent); --fg: var(--accent-ink); font-weight: 600; }
@media (hover: hover) { .btn.primary:hover:not(:disabled) { --bg: var(--accent-2); --bd: var(--accent-2); } }

.btn.danger { --bg: transparent; --bd: #45272a; --fg: #f08a8d; }
@media (hover: hover) { .btn.danger:hover:not(:disabled) { --bg: var(--live-wash); --bd: #5c3034; } }
.btn.danger.solid { --bg: var(--live); --bd: var(--live); --fg: #fff; font-weight: 600; }

.btn.quiet { --bg: transparent; --bd: transparent; --fg: var(--text-2); }
@media (hover: hover) { .btn.quiet:hover:not(:disabled) { --bg: var(--surface-2); --fg: var(--text); } }

/* Toggle ligado: elevação e contorno, não cor de marca — o verde continua
   reservado a estado do sistema (transmitindo, foco), não a preferência de UI. */
.btn.on { --bg: var(--surface-3); --bd: #3a4234; --fg: var(--text); }

.btn.icon { width: 34px; padding: 0; }
.btn.sm { height: 28px; padding: 0 var(--s2); font-size: var(--t-label); }
.btn.sm.icon { width: 28px; padding: 0; }
.btn.lg { height: 40px; padding: 0 var(--s4); font-size: var(--t-body); }
.btn.block { width: 100%; }
.btn.loading { color: transparent; pointer-events: none; }
.btn.loading::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--text-3); border-top-color: var(--text);
  animation: spin 0.6s linear infinite;
}
.btn.primary.loading::after { border-color: rgba(0, 0, 0, 0.3); border-top-color: var(--accent-ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r2); }
.seg .btn { height: 26px; border: none; background: transparent; --fg: var(--text-3); padding: 0 var(--s2); }
.seg .btn.on { background: var(--surface-3); --fg: var(--text); }
@media (hover: hover) { .seg .btn:hover:not(.on) { background: transparent; --fg: var(--text-2); } }

/* ═══ Campos ═══ */
.field { display: flex; flex-direction: column; gap: var(--s2); }
.input {
  width: 100%; height: 38px; padding: 0 var(--s3);
  background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r2);
  font-size: var(--t-body); outline: none;
  transition: border-color var(--fast) linear, background var(--fast) linear;
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: #3a4234; }
.input:focus { border-color: var(--accent-line); background: var(--surface); }
.input.invalid { border-color: #5c3034; }
textarea.input { height: auto; padding: var(--s3); resize: vertical; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .ico { position: absolute; left: var(--s3); color: var(--text-3); pointer-events: none; }
.input-icon .input { padding-left: 36px; }

/* Select próprio: o nativo não permite estilizar a lista */
.select { position: relative; }
.select .trigger {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  width: 100%; height: 38px; padding: 0 var(--s3);
  background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r2);
  font-size: var(--t-ui); font-weight: 500; text-align: left;
  transition: border-color var(--fast) linear;
}
.select .trigger .ico { color: var(--text-3); transition: transform var(--mid) var(--ease); }
.select[data-open="true"] .trigger { border-color: var(--accent-line); }
.select[data-open="true"] .trigger .ico { transform: rotate(180deg); }
@media (hover: hover) { .select .trigger:hover { border-color: #3a4234; } }
/* Menu em camada própria (filho do body, posição fixa) para nunca ser cortado
   por um container com overflow — modal, dock, painel lateral. */
.select .menu, body > .menu {
  position: fixed; z-index: 300;
  max-height: min(50vh, 320px); overflow-y: auto; padding: var(--s1);
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  border: 1px solid var(--line-2); border-radius: var(--r2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-3);
  animation: pop var(--fast) var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.select .opt, body > .menu .opt {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  width: 100%; height: 32px; padding: 0 var(--s2); border-radius: var(--r1);
  font-size: var(--t-ui); text-align: left; color: var(--text-2);
}
.select .opt .meta, body > .menu .opt .meta { font-family: var(--mono); font-size: var(--t-micro); color: var(--text-3); }
.select .opt:hover, body > .menu .opt:hover { background: var(--surface-3); color: var(--text); }
.select .opt[aria-selected="true"], body > .menu .opt[aria-selected="true"] { color: var(--accent); }
.select .opt[aria-selected="true"] .meta, body > .menu .opt[aria-selected="true"] .meta { color: var(--accent-dim); }

/* Switch */
.switch { display: flex; align-items: flex-start; gap: var(--s3); cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  position: relative; width: 34px; height: 20px; flex: none; margin-top: 1px;
  background: var(--surface-3); border: 1px solid var(--line-2); border-radius: var(--pill);
  transition: background var(--fast) linear, border-color var(--fast) linear;
}
.switch .track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--text-3);
  transition: transform var(--mid) var(--ease), background var(--fast) linear;
}
.switch input:checked + .track { background: var(--accent-wash); border-color: var(--accent-line); }
.switch input:checked + .track::after { transform: translateX(14px); background: var(--accent); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch .txt { display: flex; flex-direction: column; gap: 2px; font-size: var(--t-ui); }
.switch .txt small { font-size: var(--t-label); color: var(--text-3); line-height: 1.45; }

/* ═══ Selos ═══ */
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 var(--s2);
  border-radius: var(--r1); border: 1px solid var(--line-2); background: var(--surface-2);
  font-size: var(--t-micro); font-weight: 500; color: var(--text-2);
  letter-spacing: 0.01em; white-space: nowrap;
}
.tag .ico { width: 12px; height: 12px; }
.tag.accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-wash); }
.tag.live { color: #f08a8d; border-color: #4a2a2d; background: var(--live-wash); }
.tag.live::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--live);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.on { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }

/* ═══ Avatar ═══ */
.avatar {
  --size: 26px;
  /* Quadrado arredondado, no mesmo raio do resto do painel — círculo destoava. */
  --av-radius: var(--r2);
  width: var(--size); height: var(--size); flex: none;
  border-radius: var(--av-radius); object-fit: cover;
  background: var(--surface-3); border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 600; color: var(--text-2);
  letter-spacing: 0.02em; text-transform: uppercase; overflow: hidden;
}
.avatar.sm { --size: 22px; font-size: 9px; --av-radius: var(--r1); }
.avatar.lg { --size: 44px; font-size: 14px; --av-radius: var(--r3); }

/* ═══ Modal ═══ */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  isolation: isolate;
  padding: var(--s6); padding-top: calc(var(--s6) + var(--safe-t)); padding-bottom: calc(var(--s6) + var(--safe-b));
  background: rgba(5, 6, 5, 0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade var(--mid) var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.overlay.closing { animation: fade var(--fast) var(--ease) reverse forwards; }

.modal {
  width: min(420px, 100%); max-height: 100%;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r4);
  box-shadow: var(--shadow-3);
  animation: rise var(--mid) var(--ease);
  overflow: hidden;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(0.99); } }
.overlay.closing .modal { animation: rise var(--fast) var(--ease) reverse forwards; }
.modal.wide { width: min(560px, 100%); }
.modal .head { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s5) var(--s5) var(--s4); }
.modal .head .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s1); }
.modal .head p { font-size: var(--t-ui); color: var(--text-2); line-height: 1.5; }
.modal .head .glyph {
  width: 32px; height: 32px; flex: none; border-radius: var(--r2);
  display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text-2);
}
.modal .head .glyph.danger { background: var(--live-wash); border-color: #4a2a2d; color: #f08a8d; }
.modal .body { display: flex; flex-direction: column; gap: var(--s4); padding: 0 var(--s5) var(--s5); overflow-y: auto; }
.modal .foot {
  display: flex; gap: var(--s2); justify-content: flex-end;
  padding: var(--s4) var(--s5);
  border-top: 1px solid var(--line); background: var(--surface-2);
}

/* ═══ Toast ═══ */
.toasts {
  position: fixed; z-index: 200; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--s6) + var(--safe-b));
  display: flex; flex-direction: column-reverse; gap: var(--s2); align-items: center;
  pointer-events: none; width: min(420px, calc(100vw - 32px));
}
.room ~ .toasts, body:has(.dock) .toasts { bottom: calc(76px + var(--safe-b)); }
.toast {
  display: flex; align-items: center; gap: var(--s3);
  max-width: 100%; padding: var(--s3) var(--s4);
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r2);
  box-shadow: var(--shadow-2);
  font-size: var(--t-ui); color: var(--text);
  animation: rise var(--mid) var(--ease);
}
.toast .ico { color: var(--accent); }
.toast.err { border-color: #4a2a2d; }
.toast.err .ico { color: var(--live); }
.toast.out { animation: rise var(--fast) var(--ease) reverse forwards; }

/* ═══ Vazio / carregando ═══ */
.empty { display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding: var(--s16) var(--s6); text-align: center; }
.empty .glyph {
  width: 40px; height: 40px; border-radius: var(--r2); display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-3);
}
.empty p { font-size: var(--t-ui); color: var(--text-3); max-width: 44ch; }
.empty .btn { margin-top: var(--s2); }

.skeleton {
  background: linear-gradient(100deg, var(--surface-2) 40%, var(--surface-3) 50%, var(--surface-2) 60%);
  background-size: 250% 100%; border-radius: var(--r1);
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }

.err {
  display: none; align-items: center; gap: var(--s2);
  padding: var(--s3); border-radius: var(--r2);
  background: var(--live-wash); border: 1px solid #4a2a2d;
  color: #f08a8d; font-size: var(--t-ui);
}
.err.on { display: flex; }
.err .ico { color: var(--live); }

/* ═══════════════ LOBBY ═══════════════ */
.shell { height: 100%; overflow-y: auto; display: flex; flex-direction: column; }

.topbar {
  flex: none; position: sticky; top: 0; z-index: 30;
  height: calc(52px + var(--safe-t)); padding-top: var(--safe-t);
  display: flex; align-items: center; gap: var(--s4);
  padding-inline: var(--s5);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .divider { width: 1px; height: 18px; background: var(--line-2); flex: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: var(--s8) var(--s5) var(--s6); flex: 1; display: flex; flex-direction: column; }
.topbar > .inner { width: 100%; max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: var(--s4); }

.user {
  display: flex; align-items: center; gap: var(--s2);
  height: 34px; padding: 0 var(--s2) 0 5px;
  border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface);
}
.user .who { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.user .who b { font-size: var(--t-label); font-weight: 600; }
.user .who span { font-size: 10px; color: var(--text-3); letter-spacing: 0.02em; }

/* Cabeçalho de página: título + estado + ações, tudo na mesma linha de base */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5);
  padding-bottom: var(--s5); margin-bottom: var(--s5);
  border-bottom: 1px solid var(--line);
}
.page-head .titles { display: flex; flex-direction: column; gap: 6px; }
.page-head .actions { display: flex; align-items: center; gap: var(--s2); }
.page-head .actions form .input { width: 220px; }

.stat-row { display: flex; align-items: center; gap: var(--s4); font-size: var(--t-ui); color: var(--text-3); }
.stat-row .item { display: flex; align-items: center; gap: 6px; }
.stat-row .item .ico { color: var(--text-3); }
.stat-row b { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }

.grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* Card fantasma: fecha a grade quando há poucas salas e deixa a ação de criar
   sempre à mão, sem repetir um botão verde. */
.new-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 186px; padding: var(--s5);
  border: 1px dashed var(--line-2); border-radius: var(--r3);
  color: var(--text-3); font-size: var(--t-ui);
  transition: border-color var(--fast) linear, color var(--fast) linear, background var(--fast) linear;
}
@media (hover: hover) { .new-card:hover { border-color: var(--accent-line); color: var(--accent); background: var(--surface); } }
.new-card .ico { width: 20px; height: 20px; }

/* Rodapé: informação real do sistema, e dá pé à página quando há pouco conteúdo */
.footnote {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5);
  margin-top: auto; padding-top: var(--s4);
  border-top: 1px solid var(--line);
  font-size: var(--t-label); color: var(--text-3);
}
.footnote .item { display: flex; align-items: center; gap: 6px; }
.footnote .item .ico { width: 13px; height: 13px; }

.room-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3);
  overflow: hidden;
  transition: border-color var(--fast) linear, background var(--fast) linear;
}
@media (hover: hover) { .room-card:hover { border-color: var(--line-2); background: var(--surface-2); } }
.room-card .top { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s4); padding-bottom: var(--s3); }
.room-card .name { font-size: var(--t-body); font-weight: 600; letter-spacing: -0.01em; }
.room-card .by { font-size: var(--t-label); color: var(--text-3); }
.room-card .id {
  display: flex; align-items: center; gap: 6px; margin: 0 var(--s4) var(--s3);
  padding: 6px var(--s2); border-radius: var(--r1);
  background: var(--ink); border: 1px solid var(--line);
  font-family: var(--mono); font-size: var(--t-label); color: var(--text-2);
}
.room-card .id .ico { color: var(--text-3); }
.room-card .meta {
  display: flex; flex-wrap: wrap; gap: var(--s3);
  padding: 0 var(--s4) var(--s4);
  font-size: var(--t-label); color: var(--text-3);
}
.room-card .meta .item { display: flex; align-items: center; gap: 5px; }
.room-card .acts {
  display: flex; align-items: center; gap: var(--s2); margin-top: auto;
  padding: var(--s3) var(--s4); border-top: 1px solid var(--line); background: var(--surface-2);
}
.room-card .acts .grow { display: flex; }

/* ═══════════════ SALA ═══════════════ */
.room { height: 100%; display: flex; flex-direction: column; }

.room .topbar { position: static; padding-inline: var(--s4); }
.room .topbar > .inner { max-width: none; }
.room-title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.room-title .n { font-size: var(--t-ui); font-weight: 600; letter-spacing: -0.008em; }
.room-title .id { font-family: var(--mono); font-size: var(--t-micro); color: var(--text-3); }

.body { flex: 1; display: flex; min-height: 0; }
.stage { flex: 1; min-width: 0; padding: var(--s3); overflow: auto; }
.tiles {
  display: grid; gap: var(--s3); min-height: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  grid-auto-rows: auto;
  align-content: center; /* poucas telas ficam centradas, não esticadas */
}
.tiles.solo { align-content: stretch; }
.tiles.solo .tile:not(.focused) { display: none; }
.tiles.solo .tile.focused { aspect-ratio: auto; height: 100%; }

.tile {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; /* a tela capturada é 16:9; esticar só cria tarja preta */
  border-radius: var(--r3);
  background: #000; border: 1px solid var(--line);
  transition: border-color var(--fast) linear;
}
@media (hover: hover) { .tile:hover { border-color: var(--line-2); } }
.tile.live { border-color: #2f3a24; }
.tile.focused { border-color: var(--accent-line); }
.tile video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }

.tile .idle {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--s2);
  background: var(--surface); text-align: center; padding: var(--s4);
}
.tile .idle .who { font-size: var(--t-ui); font-weight: 500; color: var(--text-2); }
.tile .idle .state { font-size: var(--t-label); color: var(--text-3); }

.tile .cap {
  position: absolute; left: var(--s3); bottom: var(--s3);
  display: flex; align-items: center; gap: var(--s2);
  max-width: calc(100% - var(--s6));
  height: 26px; padding: 0 var(--s2);
  border-radius: var(--r1);
  background: rgba(8, 10, 8, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: var(--t-label); font-weight: 500;
}
.tile .tools {
  position: absolute; right: var(--s3); top: var(--s3);
  display: flex; gap: var(--s1);
  opacity: 0; transition: opacity var(--fast) linear;
}
.tile:hover .tools, .tile:focus-within .tools { opacity: 1; }
.tile .tools .btn {
  background: rgba(8, 10, 8, 0.82); border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tile .stat {
  position: absolute; right: var(--s3); bottom: var(--s3);
  padding: 4px 7px; border-radius: var(--r1);
  background: rgba(8, 10, 8, 0.82);
  font-family: var(--mono); font-size: var(--t-micro); color: var(--text-2);
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tile .stat:empty { display: none; }

.dock {
  flex: none; height: calc(60px + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  padding-inline: var(--s4);
  background: var(--surface); border-top: 1px solid var(--line);
}
.dock .divider { width: 1px; height: 20px; background: var(--line); flex: none; margin-inline: var(--s1); }

/* ═══ Chat ═══ */
.chat {
  width: 300px; flex: none; display: flex; flex-direction: column; min-height: 0;
  border-left: 1px solid var(--line); background: var(--surface);
}
.chat > .head {
  flex: none; height: 44px; padding: 0 var(--s4);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.peers { flex: none; display: flex; flex-direction: column; gap: 2px; padding: var(--s2); border-bottom: 1px solid var(--line); max-height: 168px; overflow-y: auto; }
.peers .p {
  display: flex; align-items: center; gap: var(--s2);
  height: 32px; padding: 0 var(--s2); border-radius: var(--r1);
  font-size: var(--t-ui); color: var(--text-2);
}
.peers .p.sharing { color: var(--text); }

/* Selos de papel: coroa da marca para admin do painel, escudo neutro para quem
   administra só aquela sala. Ícone sozinho — o texto seria ruído na lista. */
.badge-super { color: var(--accent); flex: none; }
.badge-room { color: var(--text-2); flex: none; }

/* Estado do participante: microfone, áudio e transmissão. Cinza = escolha da
   pessoa; vermelho = imposto por um administrador. */
.peers .p .st { display: flex; color: var(--text-3); flex: none; }
.peers .p .st.on { color: var(--text-2); }
.peers .p .st.mod { color: var(--live); }
.peers .p .st.live { color: var(--accent); }

/* Falando: anel no avatar, como num app de voz. Branco para os outros (é o
   estado que preciso enxergar de longe) e verde só no meu, para eu saber que
   estou com o microfone aberto. */
.peers .p.speaking { background: var(--surface-2); }
.peers .p.speaking .avatar { box-shadow: 0 0 0 2px var(--fala); border-color: transparent; }
.peers .p .avatar { transition: box-shadow var(--fast) linear; }
.peers .p.me.speaking .avatar { box-shadow: 0 0 0 2px var(--accent); }
.peers .p.me.speaking .st.on { color: var(--accent); }
.tile.speaking { border-color: var(--fala); box-shadow: 0 0 0 1px var(--fala); }
.tile[data-sid="self"].speaking { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-line); }

/* Menu de contexto (moderação) — mesma casca do menu do select */
.menu.ctx { min-width: 232px; }
.menu.ctx .opt { height: 34px; gap: var(--s2); justify-content: flex-start; }
.menu.ctx .opt.danger { color: #f08a8d; }
.menu.ctx .opt.danger:hover { background: var(--live-wash); color: #f08a8d; }
.ctx-sep { height: 1px; margin: var(--s1) var(--s2); background: var(--line); }
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: var(--s4); display: flex; flex-direction: column; gap: var(--s4); }
.msg { display: flex; gap: var(--s2); align-items: flex-end; max-width: 100%; }
.msg .bubble {
  max-width: 82%;
  padding: var(--s2) var(--s3);
  border-radius: var(--r3) var(--r3) var(--r3) var(--r1);
  background: var(--surface-2); border: 1px solid var(--line);
}
.msg .head { display: flex; align-items: baseline; gap: var(--s2); margin-bottom: 2px; }
.msg .who { font-size: var(--t-label); font-weight: 600; color: var(--text); }
.msg .t { font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.msg .txt { font-size: var(--t-ui); color: var(--text); word-break: break-word; line-height: 1.5; }
/* Mensagem só de emoji vira figura, não texto. */
.msg .txt.big { font-size: 30px; line-height: 1.2; }

/* As minhas ficam do outro lado, com a cor da marca bem discreta. */
.msg.mine { flex-direction: row-reverse; }
.msg.mine .bubble {
  border-radius: var(--r3) var(--r3) var(--r1) var(--r3);
  background: rgba(196, 208, 56, 0.09);
  border-color: rgba(196, 208, 56, 0.22);
}
.msg.mine .head { justify-content: flex-end; }
.msg.mine .avatar { display: none; }
.msg.sys { justify-content: center; }
.msg.sys span { font-size: var(--t-label); color: var(--text-3); }
.compose { flex: none; display: flex; gap: var(--s2); padding: var(--s3); padding-bottom: calc(var(--s3) + var(--safe-b)); border-top: 1px solid var(--line); }

/* ═══ Porta de entrada ═══ */
.gate-head { display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding: var(--s8) var(--s5) var(--s5); text-align: center; }
.gate-head .logo { width: 30px; height: 30px; }
.gate-head h2 { font-size: var(--t-title); }
.gate-head p { font-size: var(--t-ui); color: var(--text-2); }
.note {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3); border-radius: var(--r2);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: var(--t-ui); color: var(--text-2);
}
.note .ico { color: var(--text-3); }

/* ═══════════════ RESPONSIVO ═══════════════ */
@media (max-width: 860px) {
  .page-head { flex-direction: column; align-items: stretch; gap: var(--s4); }
  /* A busca ganha a linha inteira; os botões dividem a de baixo. Sem isto o
     conjunto não quebra e a última ação sai da tela. */
  .page-head .actions { flex-wrap: wrap; justify-content: flex-end; }
  .page-head .actions form { flex: 1 1 100%; }
  .page-head .actions form .input-icon { flex: 1; }
  .page-head .actions form .input { width: 100%; }
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .desktop-only { display: none !important; }
  .wrap { padding: var(--s5) var(--s4) var(--s12); }
  .topbar { padding-inline: var(--s4); }
  .user .who { display: none; }
  .stage { padding: var(--s2); }
  .tiles { grid-template-columns: 1fr; }

  .chat {
    position: fixed; z-index: 90; inset: auto 0 0 0; width: auto;
    height: min(78vh, 560px);
    border-left: none; border-top: 1px solid var(--line-2);
    border-radius: var(--r4) var(--r4) 0 0;
    box-shadow: var(--shadow-3);
    animation: sheet var(--mid) var(--ease);
  }
  @keyframes sheet { from { transform: translateY(100%); } }
  .chat > .head { height: 52px; }
  .modal .foot .btn { flex: 1; }
  .overlay { padding: var(--s3); align-items: flex-end; }
  .modal { width: 100%; }
}

/* Toque: alvos de 44px, ferramentas sempre visíveis */
@media (hover: none) {
  .tile .tools { opacity: 1; }
  .btn { height: 40px; }
  .btn.icon { width: 40px; }
  .btn.sm { height: 34px; }
  .btn.sm.icon { width: 34px; }
  .btn.lg { height: 46px; }
  .input, .select .trigger { height: 44px; }
  .select .opt { height: 40px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .dock { height: calc(48px + var(--safe-b)); }
  .topbar { height: calc(44px + var(--safe-t)); }
}

/* ═══ Emojis ═══ */
.emoji-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  width: 288px; max-height: 260px; overflow-y: auto; padding: var(--s1);
}
.emoji-grid button {
  height: 32px; border-radius: var(--r1); font-size: 19px; line-height: 1;
  transition: background var(--fast) linear;
}
.emoji-grid button:hover { background: var(--surface-3); }

/* ═══════════════ HOME (visitante) ═══════════════
   Vitrine do produto: a peça central é uma prévia da própria sala, montada em
   HTML — mostrar vale mais que explicar, e não custa uma imagem sequer. */
.hero { flex: 1; display: grid; place-items: center; padding: var(--s8) var(--s5) var(--s12); }
.hero-inner {
  width: 100%; max-width: 1120px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--s16); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  height: 26px; padding: 0 var(--s3); border-radius: var(--pill);
  border: 1px solid var(--accent-line); background: var(--accent-wash);
  color: var(--accent); font-size: var(--t-micro); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.hero-copy h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.hero-copy .lead { font-size: var(--t-lead); max-width: 42ch; }
.hero-copy .btn.lg { height: 46px; padding: 0 var(--s5); margin-top: var(--s2); }
.hero-tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.hero-tags .tag { height: 28px; }

/* ── Prévia da sala ── */
.preview {
  position: relative;
  border: 1px solid var(--line-2); border-radius: var(--r4);
  background: var(--surface); box-shadow: var(--shadow-3);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform 400ms var(--ease);
}
.preview:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.preview::after { /* brilho de vidro */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.06), transparent 42%);
}
.preview-bar {
  display: flex; align-items: center; gap: var(--s2);
  height: 38px; padding: 0 var(--s3);
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.dot-rgb { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.preview-title { margin-left: var(--s2); font-size: var(--t-label); font-weight: 600; color: var(--text-2); flex: 1; }

.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); padding: var(--s2); }
.preview-tile {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r2);
  background: var(--ink); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.preview-tile.share { grid-column: 1 / -1; aspect-ratio: 16 / 6.5; background: #0d1420; border-color: #1d2a3d; align-items: stretch; }
.preview-tile.speaking { border-color: var(--accent); }
.preview-av {
  width: 34px; height: 34px; border-radius: var(--r2);
  display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line-2);
  font-size: 11px; font-weight: 600; color: var(--text-2);
}
.preview-av.on { box-shadow: 0 0 0 2px var(--accent); border-color: transparent; color: var(--text); }
.preview-name {
  position: absolute; left: 8px; bottom: 8px;
  font-size: 10px; font-weight: 600; color: var(--text-2);
  padding: 3px 6px; border-radius: var(--r1); background: rgba(8, 10, 8, 0.7);
}
/* Linhas fingindo o conteúdo de uma tela compartilhada */
.preview-lines { display: flex; flex-direction: column; gap: 7px; padding: var(--s3); width: 100%; }
.preview-lines span { height: 6px; border-radius: 3px; background: #24405f; }
.preview-lines span:nth-child(1) { width: 58%; }
.preview-lines span:nth-child(2) { width: 74%; }
.preview-lines span:nth-child(3) { width: 40%; background: #2f5680; }
.preview-lines span:nth-child(4) { width: 66%; }
.preview-lines span:nth-child(5) { width: 31%; }

/* Barrinhas de voz de quem está falando */
.preview-wave { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.preview-wave i { width: 3px; border-radius: 2px; background: var(--accent); animation: wave 1s ease-in-out infinite; }
.preview-wave i:nth-child(1) { height: 40%; animation-delay: 0s; }
.preview-wave i:nth-child(2) { height: 100%; animation-delay: .15s; }
.preview-wave i:nth-child(3) { height: 60%; animation-delay: .3s; }
.preview-wave i:nth-child(4) { height: 85%; animation-delay: .45s; }
@keyframes wave { 50% { transform: scaleY(0.35); } }

.preview-dock {
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 52px; border-top: 1px solid var(--line); background: var(--surface-2);
}
.preview-dock .k {
  width: 32px; height: 32px; border-radius: var(--r2);
  display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text-2);
}
.preview-dock .k.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.preview-dock .k.danger { border-color: var(--live); color: #fff; background: var(--live); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s8); }
  .preview { transform: none; }
  .preview:hover { transform: none; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-copy .lead { text-align: center; }
  .hero-tags { justify-content: center; }
}

/* Ações da sala coladas no título, à esquerda — editar e compartilhar são
   sobre ESTA sala, então moram ao lado do nome dela. */
.room-acts { display: flex; align-items: center; gap: 2px; flex: none; }
.room .topbar .room-title { flex: 0 1 auto; min-width: 0; }

/* Legenda do tile: mesmo vocabulário da lista de participantes. */
.tile .cap .st { display: flex; color: var(--text-3); flex: none; }
.tile .cap .st.mod { color: var(--live); }
.tile .cap .st.live { color: var(--accent); }
.tile .cap .badge-super, .tile .cap .badge-room { margin-right: -2px; }

/* ── Assistir sob demanda ──
   O quadro de quem transmite mostra um convite; enquanto ninguém aceita, o
   vídeo nem chega (a recepção fica desligada no transceiver). */
.watch-cta {
  position: absolute; inset: 0; z-index: 2;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2);
  background: rgba(8, 10, 8, 0.55);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  color: var(--text); font-size: var(--t-ui); font-weight: 600;
  transition: background var(--fast) linear;
}
.watch-cta.on { display: flex; }
.watch-cta .ico { color: var(--accent); }
.watch-cta:hover { background: rgba(8, 10, 8, 0.42); }
.watch-cta span {
  padding: 6px var(--s3); border-radius: var(--pill);
  background: var(--accent); color: var(--accent-ink);
}

/* Identidade do quadro ocioso um pouco maior — é o que se lê de longe. */
.tile .idle .avatar { --size: 51px; font-size: 16px; }
.tile .idle .who { font-size: 15px; font-weight: 600; color: var(--text-2); }

/* Encerrar chamada: telefone deitado, como todo mundo já reconhece. */
.hangup { transform: rotate(133deg); }

/* ═══ Textura de fundo ═══
   Ícones do próprio app, bem apagados, para o preto não ficar chapado. Some
   no centro para nunca disputar leitura com o conteúdo. */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--textura);
  background-size: 320px 320px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 20%, #000 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 20%, #000 100%);
}

/* Ação indisponível para o cargo atual: visível, mas apagada. O clique e o
   hover explicam o porquê em vez de simplesmente não responder. */
.btn.off { opacity: 0.45; }
.btn.off:hover { opacity: 0.6; }

/* Barra de progresso indeterminada: traços correndo, sem fingir porcentagem
   que não existe (a conexão não tem etapas mensuráveis). */
.loader {
  height: 6px; border-radius: var(--pill); overflow: hidden;
  background: var(--surface-3);
  position: relative;
}
.loader::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg,
    var(--accent) 0 14px, transparent 14px 26px);
  opacity: 0.85;
  animation: corre 900ms linear infinite;
}
@keyframes corre { to { transform: translateX(26px); } }
@media (prefers-reduced-motion: reduce) { .loader::after { animation: none; } }

/* Assinatura do rodapé */
.footnote { justify-content: center; }
.made { display: flex; align-items: center; gap: 5px; font-size: var(--t-label); color: var(--text-3); }
.made .heart { color: var(--accent); font-size: 13px; line-height: 1; }
.made a { color: var(--text-2); font-weight: 600; border-bottom: 1px solid transparent; transition: color var(--fast) linear, border-color var(--fast) linear; }
.made a:hover { color: var(--accent); border-bottom-color: var(--accent-line); }

/* Contador de gente no card: número sempre visível, verde só quando há alguém. */
.tag.count { font-variant-numeric: tabular-nums; }
.tag.count.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-wash); }

/* Luz que acompanha o cursor no card: presença sutil, sem virar holofote. */
.room-card { position: relative; isolation: isolate; }
.room-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit; opacity: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%),
    rgba(var(--accent-rgb), 0.16), transparent 70%);
  transition: opacity var(--mid) var(--ease);
}
@media (hover: hover) { .room-card:hover::before { opacity: 1; } }

/* Os mesmos ícones do fundo aparecem nas telas de entrada — sem isso o overlay
   vira um preto liso e a página parece outra. */
.overlay::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--textura);
  background-size: 320px 320px;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 15%, #000 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 15%, #000 100%);
}

/* Selo da própria sala, na cor da marca — é a única que você administra. */
.tag.accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-wash); }
