/* ═══════════════════════════════════════════════════════════════
   Meet — interface (mesma linguagem do Studio Vinci: preto e branco,
   serifada editorial nos títulos, acabamento discreto)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #f6f6f4; --surface: #ffffff; --surface-2: #f1f1ef; --surface-3: #e8e8e5;
  --text: #0a0a0a; --muted: #62625e; --dim: #9b9b96;
  --line: color-mix(in srgb, var(--text) 10%, transparent); --line-2: color-mix(in srgb, var(--text) 18%, transparent);
  --accent: #0a0a0a; --accent-ink: #ffffff; --danger: #e5383b; --ok: #12a150;
  --serif: 'Instrument Serif', 'Times New Roman', serif; --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'Space Grotesk', Inter, sans-serif;
  --shadow: 0 24px 48px -24px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.05);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --call: #0b0d12; --call-2: #151821; --call-3: #1d2130; --call-line: rgba(255,255,255,.09);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0a0b; --surface: #131315; --surface-2: #19191c; --surface-3: #232327;
  --text: #f4f4f2; --muted: #a2a29d; --dim: #6c6c68; --accent: #f4f4f2; --accent-ink: #0a0a0a;
  --shadow: 0 24px 48px -24px rgba(0,0,0,.8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0b; --surface: #131315; --surface-2: #19191c; --surface-3: #232327;
    --text: #f4f4f2; --muted: #a2a29d; --dim: #6c6c68; --accent: #f4f4f2; --accent-ink: #0a0a0a;
    --shadow: 0 24px 48px -24px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 14.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: .04em; }
h1, h2, h3 { margin: 0; font-weight: 400; }

/* ───── botões e campos ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s var(--ease), opacity .2s; }
.btn:hover { border-color: var(--text); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { opacity: .88; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; }
.btn.light { background: #fff; color: #0a0a0a; border-color: #fff; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn.sm { height: 32px; padding: 0 13px; font-size: 13px; }
.link-btn, .link { border: 0; background: none; color: var(--muted); font-weight: 500; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.link-btn svg { width: 16px; height: 16px; }
.link-btn:hover, .link:hover { color: var(--text); }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; padding: 0; flex: none; transition: background .2s; }
.icon-btn:hover { background: var(--surface-3); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm svg { width: 18px; height: 18px; }
.input, .select { width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); outline: none; transition: border-color .2s; }
textarea.input { height: auto; padding: 11px 14px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus { border-color: var(--text); }
.input.sm, .select.sm { height: 34px; font-size: 13px; border-radius: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--text); width: 16px; height: 16px; }

/* ───── avatar ───── */
.avatar { --h: 220; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden; flex: none; background: hsl(var(--h) 32% 42%); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .02em; user-select: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar.xl { width: clamp(64px, 18%, 120px); height: auto; aspect-ratio: 1; font-size: clamp(22px, 3vw, 40px); font-weight: 500; }
.av-stack { display: inline-flex; }
.av-stack .avatar { border: 2px solid var(--bg); margin-left: -8px; }
.av-stack .avatar:first-child { margin-left: 0; }

/* ───── avisos, menus e janelas ───── */
.toasts { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(560px, calc(100vw - 24px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 11px 12px 11px 18px; border-radius: 14px; background: #17181c; color: #f1f1f1; box-shadow: 0 18px 40px -14px rgba(0,0,0,.5); font-size: 13.5px; opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .25s, transform .3s var(--ease); max-width: 100%; }
.toast.in { opacity: 1; transform: none; }
.toast.error { background: #3a1214; }
.toast.ok span::before { content: '✓  '; color: #6ee7a8; }
.toast span { flex: 1; min-width: 0; }
.toast button { border: 0; background: none; color: #9ec5ff; font-weight: 600; padding: 4px 6px; white-space: nowrap; }
.menu { position: fixed; z-index: 500; min-width: 230px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: auto; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .2s var(--ease); }
.in-call .menu, .in-room .menu { background: #1a1c24; color: #eef0f4; border-color: rgba(255,255,255,.08); }
.menu.in { opacity: 1; transform: none; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: inherit; text-align: left; font-size: 14px; }
.menu-item:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.menu-item.on { font-weight: 600; }
.menu-item.on::after { content: '✓'; margin-left: auto; }
.menu-item.danger { color: var(--danger); }
.menu-item:disabled { opacity: .55; cursor: default; }
.menu-item .mi { display: grid; place-items: center; opacity: .8; }
.menu-item .mi svg { width: 18px; height: 18px; }
.menu-item small { margin-left: auto; opacity: .6; }
.menu-sep { height: 1px; background: currentColor; opacity: .1; margin: 5px 6px; }
.menu-title { padding: 8px 12px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.modal-back { position: fixed; inset: 0; z-index: 450; display: grid; place-items: center; padding: 16px; background: rgba(8,9,12,.5); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.modal-back.in { opacity: 1; }
.modal { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); transform: translateY(10px) scale(.985); transition: transform .3s var(--ease); }
.in-call .modal, .in-room .modal { background: #16181f; color: #eef0f4; --surface: #1d2029; --line-2: rgba(255,255,255,.14); --text: #eef0f4; --muted: #a3a8b4; --surface-3: #262a35; }
.modal-back.in .modal { transform: none; }
.modal.wide { width: min(720px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 4px 26px; }
.modal-head h3 { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.modal-body { padding: 12px 26px 8px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px 24px; }

/* ═════════════════ início ═════════════════ */
.topnav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 21px/1 var(--mono); letter-spacing: -.03em; text-decoration: none; color: inherit; }
.brand .mark { width: 24px; height: 24px; flex: none; }
.top-right { display: flex; align-items: center; gap: 10px; }
.top-clock { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.avatar-btn { border: 0; padding: 0; background: none; border-radius: 50%; }
.home-main { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(36px, 6vw, 84px) 0 clamp(40px, 6vw, 80px); }
.eyebrow { margin: 0 0 16px; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-family: var(--serif); font-size: clamp(54px, 7.2vw, 108px); line-height: .92; letter-spacing: -.025em; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--muted); }
.lede { max-width: 470px; margin: 0 0 32px; font-size: 16.5px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.code-box { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 6px 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); flex: 1 1 280px; max-width: 380px; transition: border-color .2s; }
.code-box:focus-within { border-color: var(--text); }
.code-box > span { color: var(--dim); display: grid; }
.code-box > span svg { width: 18px; height: 18px; }
.code-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; height: 100%; font-size: 15px; }
.code-box .btn { height: 40px; border: 0; }
.hero-note { margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; aspect-ratio: 4 / 4.4; border-radius: 26px; overflow: hidden; background: #111; box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.1) translate(-2%, -1.5%); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,7,12,.7) 0%, rgba(5,7,12,0) 55%); }
.next-card { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 20px 22px; border-radius: 18px; color: #fff; background: rgba(18,20,26,.55); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(18px) saturate(1.3); display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; animation: up .8s var(--ease) both; }
.next-card .nc-when { grid-column: 1; margin: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.next-card .nc-title { grid-column: 1; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.next-card .nc-time { grid-column: 1; margin: 0; font-size: 13px; color: rgba(255,255,255,.7); }
.next-card > :last-child { grid-column: 2; grid-row: 1 / span 3; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.block { padding-top: 20px; border-top: 1px solid var(--line); margin-bottom: 72px; }
.block-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 22px; }
.block-head h2 { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); line-height: 1; }
.num { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--muted); transform: translateY(-14px); }
.block-actions { margin-left: auto; }
.day { margin: 26px 0 8px; font: 600 12px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.day::first-letter { text-transform: uppercase; }
.ag-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.ag-row.live .ag-time b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 7px; vertical-align: 2px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.ag-time { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.ag-time b { font-weight: 600; }
.ag-time span { font-size: 12.5px; color: var(--muted); }
.ag-main { display: flex; flex-direction: column; min-width: 0; }
.ag-main b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-src { font-size: 12.5px; color: var(--muted); }
.ag-act { display: flex; gap: 6px; align-items: center; }
.connect-card { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 12px; }
.connect-card .gicon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.connect-card .gicon svg { width: 22px; height: 22px; }
.connect-card div { flex: 1; min-width: 0; }
.connect-card p { margin: 2px 0 0; font-size: 13px; }
.empty, .side-note { color: var(--muted); font-size: 13.5px; }
.empty-state { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 4px; color: var(--muted); }
.empty-state p { margin: 0; }
.skeleton { height: 64px; border-radius: 14px; margin: 10px 0; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 300% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -150% 0; } }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.room-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.room-card > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.room-card b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-card .mono { font-size: 12.5px; color: var(--muted); }
.rc-act { display: flex; align-items: center; gap: 2px; flex: none; }
.home-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0 40px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.brand-sm { font-family: var(--serif); font-size: 18px; color: var(--text); }
.link-copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 14px; background: var(--surface-2); margin-top: 12px; font-family: var(--mono); font-size: 14px; word-break: break-all; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.steps, .how { margin: 0; padding-left: 18px; line-height: 1.7; }
.how { padding: 0; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16 / 11; order: -1; }
  .top-clock { display: none; }
}
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .code-box { max-width: none; }
  .ag-row { grid-template-columns: 60px minmax(0, 1fr); }
  .ag-act { grid-column: 1 / -1; justify-content: flex-end; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row .field:first-child { grid-column: 1 / -1; }
  .next-card { grid-template-columns: 1fr; }
  .next-card > :last-child { grid-column: 1; grid-row: auto; margin-top: 10px; }
}

/* ═════════════════ sala: entrada, espera e fim (sempre escuro) ═════════════════ */
.in-room, .in-call { background: var(--call); color: #eef0f4; --text: #eef0f4; --muted: #a3a8b4; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16); --surface: #171a22; --surface-2: #1d2029; --surface-3: #262a35; --accent: #ffffff; --accent-ink: #0a0a0a; --bg: var(--call); color-scheme: dark; }
.prejoin { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(1200px 700px at 30% 20%, #161a26 0%, var(--call) 60%); }
.pj-top { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 4vw, 40px); }
.pj-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.pj-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1240px; width: 100%; margin: 0 auto; padding: 16px clamp(16px, 4vw, 40px) 48px; }
.pj-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #050608; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.pj-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.pj-off { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.6); font-size: 15px; }
.pj-name { position: absolute; top: 16px; left: 18px; font-size: 14px; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.pj-ctrls { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 14px; }
.round { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(10,12,16,.25); color: #fff; display: grid; place-items: center; backdrop-filter: blur(10px); transition: background .2s, transform .2s var(--ease); }
.round:hover { background: rgba(255,255,255,.12); }
.round.off { background: var(--danger); border-color: var(--danger); }
.round.ghost { border-color: rgba(255,255,255,.18); }
.pj-level { position: absolute; left: 50%; bottom: 8px; width: 80px; height: 3px; margin-left: -40px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.pj-level i { display: block; height: 100%; background: #7ee2a8; transform-origin: left; transform: scaleX(0); transition: transform .08s linear; }
.pj-err { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(229,56,59,.12); color: #ffb3b4; font-size: 13.5px; }
.pj-right h1 { font-family: var(--serif); font-size: clamp(38px, 4.2vw, 60px); line-height: 1; margin-bottom: 10px; }
.pj-right .eyebrow::first-letter { text-transform: uppercase; }
.pj-people { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 22px 0; min-height: 30px; }
.pj-right .field { margin-bottom: 18px; }
.pj-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pj-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.pj-link svg { width: 16px; height: 16px; }
.pj-link:hover { color: #fff; }
@media (max-width: 860px) {
  .pj-main { grid-template-columns: 1fr; align-items: start; padding-top: 0; }
  .pj-stage { aspect-ratio: 3 / 4; max-height: 56vh; width: 100%; }
  .pj-actions .btn { flex: 1; }
}
.end-screen, .lobby-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1000px 600px at 50% 30%, #161a26 0%, var(--call) 65%); }
.lobby-screen { position: fixed; inset: 0; z-index: 60; }
.end-box, .lobby-box { text-align: center; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.end-box h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 54px); line-height: 1.05; }
.end-box .row { justify-content: center; margin-top: 12px; }
.lobby-box h2 { font-family: var(--serif); font-size: 36px; }
.lobby-box p { margin: 0 0 8px; }
.lobby-cam { width: min(360px, 80vw); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #050608; display: grid; place-items: center; margin-bottom: 8px; }
.lobby-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.18); border-top-color: #fff; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═════════════════ chamada ═════════════════ */
.in-call { overflow: hidden; }
.call { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--call); }
.call-top { height: 44px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.ct-title { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #ffcf70; }
.net-badge svg { width: 16px; height: 16px; }
.call-body { flex: 1; min-height: 0; display: flex; gap: 12px; padding: 0 12px; }
.stage-wrap { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stage { position: relative; flex: 1; min-height: 0; }
.tile { position: absolute; overflow: hidden; border-radius: 14px; background: var(--call-3); transition: left .35s var(--ease), top .35s var(--ease), width .35s var(--ease), height .35s var(--ease), box-shadow .15s; box-shadow: inset 0 0 0 0 transparent; }
.tile video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.tile.screen video, .tile.main.screen video { object-fit: contain; background: #050608; }
.tile.mirror video { transform: scaleX(-1); }
.tile.no-video video { display: none; }
.tile-av { position: absolute; inset: 0; display: none; place-items: center; background: radial-gradient(circle at 50% 45%, #22273a, var(--call-3)); }
.tile.no-video .tile-av { display: grid; }
.tile.speaking { box-shadow: inset 0 0 0 3px rgba(255,255,255,.88); }
.tile.speaking .tile-av .avatar { box-shadow: 0 0 0 calc(4px + var(--lvl, 0) * 18px) rgba(255,255,255,.12); transition: box-shadow .12s; }
.tile-name { position: absolute; left: 12px; bottom: 10px; right: 60px; font-size: 13px; font-weight: 500; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-icons { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.tile-icons .ti { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,12,16,.55); color: #fff; backdrop-filter: blur(6px); }
.tile-icons .ti svg { width: 16px; height: 16px; }
.tile-icons .ti.hand { background: #fff; color: #0a0a0a; animation: wave 1.2s ease-in-out 2; }
@keyframes wave { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.tile-menu { position: absolute; bottom: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(10,12,16,.55); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.tile:hover .tile-menu, .tile:focus-within .tile-menu { opacity: 1; }
.tile.thumb .tile-name { font-size: 12px; bottom: 7px; left: 9px; }
.tile.thumb .tile-icons .ti { width: 22px; height: 22px; }
.tile.floating { z-index: 3; box-shadow: 0 16px 30px -10px rgba(0,0,0,.7); }
.tile.pinned::after { content: ''; position: absolute; top: 12px; left: 12px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.more-tile { border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--call-2); }
.more-tile b { font-family: var(--serif); font-weight: 400; font-size: 34px; }
.more-tile span { font-size: 12.5px; color: var(--muted); }
.self-share { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(8,9,12,.82); text-align: center; padding: 16px; }
.self-share p { margin: 0; font-family: var(--serif); font-size: 26px; }
.tile.thumb .self-share p { font-size: 14px; }
.tile.thumb .self-share .btn { display: none; }
.strip { display: none; }
.captions { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(900px, 92%); display: flex; flex-direction: column; gap: 6px; z-index: 5; pointer-events: none; }
.cap { padding: 8px 14px; border-radius: 10px; background: rgba(0,0,0,.72); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.35; }
.cap b { color: #a9c7ff; font-weight: 600; margin-right: 8px; }
.reactions-fly { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 6; }
.fly { position: absolute; bottom: 0; display: flex; flex-direction: column; align-items: center; animation: fly 4s var(--ease) forwards; }
.fly .e { font-size: 38px; line-height: 1; }
.fly .n { margin-top: 4px; font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.6); }
@keyframes fly { 0% { transform: translate(0, 20px) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translate(0, -20px) scale(1); } 100% { transform: translate(var(--dx), -70vh) scale(1); opacity: 0; } }
.rec-banner { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(10,12,16,.75); font-size: 12.5px; }
.rec-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s infinite; }
.tap-audio { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: #fff; color: #0a0a0a; font-weight: 600; }
.call-overlay { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 14px; background: rgba(8,9,12,.6); backdrop-filter: blur(4px); font-size: 15px; }

/* barra de controles */
.bar { height: 80px; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 18px; gap: 12px; }
.bar-left { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; min-width: 0; }
.bar-left .sep { opacity: .3; }
.bar-left .code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-center { display: flex; align-items: center; gap: 10px; }
.bar-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.cbtn { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #2a2e3a; color: #fff; display: grid; place-items: center; transition: background .2s, border-radius .3s var(--ease), transform .15s; }
.cbtn:hover { background: #363b4a; }
.cbtn:active { transform: scale(.95); }
.cbtn.off { background: var(--danger); }
.cbtn.off:hover { background: #f04a4d; }
.cbtn.on { background: #e9edf8; color: #0a0a0a; }
.cbtn.leave { width: 64px; border-radius: 999px; background: var(--danger); }
.cbtn.leave:hover { background: #f04a4d; }
.cbtn.flat { background: transparent; }
.cbtn.flat:hover { background: rgba(255,255,255,.08); }
.cbtn.flat.on { background: rgba(255,255,255,.14); color: #fff; }
.cbtn .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e9edf8; color: #0a0a0a; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.cbtn.alert::after { content: ''; position: absolute; top: 6px; left: 8px; width: 9px; height: 9px; border-radius: 50%; background: #ffcf70; animation: pulse 1.2s infinite; }
.react-menu { padding: 8px; min-width: 0; }
.react-pop { display: grid; grid-template-columns: repeat(6, 44px); gap: 4px; }
.react-pop button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; font-size: 26px; transition: transform .2s var(--ease), background .2s; }
.react-pop button:hover { background: rgba(255,255,255,.08); transform: scale(1.18); }

/* painel lateral */
.side { width: 360px; flex: none; margin-bottom: 0; border-radius: 18px; background: #f7f7f6; color: #121212; display: flex; flex-direction: column; overflow: hidden; animation: sideIn .3s var(--ease); --text: #121212; --muted: #67676a; --line: rgba(0,0,0,.08); --line-2: rgba(0,0,0,.16); --surface: #fff; --surface-2: #eeeeec; --surface-3: #e5e5e3; --accent: #0a0a0a; --accent-ink: #fff; color-scheme: light; }
@keyframes sideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 8px 22px; }
.side-head h3 { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.side-body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 22px 22px; }
.side-label { margin: 18px 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.side-label:first-child { margin-top: 6px; }
.side-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side-link { font-family: var(--mono); font-size: 14px; word-break: break-all; margin: 0 0 12px; }
.side-section { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.person { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.person .pn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person .pn b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .pn small { font-size: 12px; color: var(--muted); }
.person .pi { display: grid; place-items: center; color: var(--muted); }
.person .pi svg { width: 18px; height: 18px; }
.person .pi.off { color: var(--danger); }
.person .pi.hand { color: var(--text); }
.chat-body { display: flex; flex-direction: column; padding-bottom: 14px; }
.chat-list { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 10px; }
.msg { padding: 2px 0; }
.msg:not(.grouped) { margin-top: 14px; }
.msg-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.msg-head b { font-weight: 600; }
.msg-head time { font-size: 11.5px; color: var(--muted); }
.msg-head .priv { font-size: 11.5px; color: #8a5a00; }
.msg-text { font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg-text a { color: #1a5fd0; }
.chat-input { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.chat-row { display: flex; align-items: flex-end; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--surface-2); }
.chat-row textarea { flex: 1; border: 0; outline: 0; background: none; resize: none; max-height: 120px; padding: 7px 0; line-height: 1.4; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; cursor: pointer; }
.switch-row b { display: block; font-weight: 500; font-size: 14px; }
.switch-row small { font-size: 12px; color: var(--muted); }
.switch-row .select { width: auto; }
.switch { position: relative; width: 40px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 12px; background: #c9c9c6; transition: background .2s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: #0a0a0a; }
.switch input:checked + i::after { transform: translateX(16px); }

/* efeitos e dispositivos */
/* ───── efeitos visuais (prévia ao vivo + biblioteca) ───── */
.fxp { display: flex; flex-direction: column; gap: 18px; }
.fxp-prev { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #050608; box-shadow: 0 18px 40px -22px rgba(0,0,0,.6); flex: none; }
.fxp-prev video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.fxp-label { position: absolute; left: 12px; bottom: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(8,9,12,.55); backdrop-filter: blur(8px); color: #fff; font-size: 12.5px; font-weight: 500; }
.fxp-busy, .fxp-off { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(8,9,12,.62); backdrop-filter: blur(6px); color: #fff; font-size: 13.5px; }
.fxp-off p { margin: 0; color: rgba(255,255,255,.75); }
.fxp-body { display: flex; flex-direction: column; gap: 18px; }
.fxp-sec h4 { margin: 0 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.fxp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fxp.compact .fxp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fxt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; color: inherit; text-align: left; min-width: 0; cursor: pointer; }
.fxt-img { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 10%, transparent); transition: transform .35s var(--ease), box-shadow .2s; }
.fxt-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fxt:hover .fxt-img { transform: translateY(-2px); }
.fxt:hover .fxt-img img { transform: scale(1.06); }
.fxt-ico { position: relative; display: grid; place-items: center; opacity: .78; }
.fxt-ico svg { width: auto; height: 34px; }
.fxt.add .fxt-ico svg { width: 24px; height: 24px; }
.fxt.add .fxt-img { background: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 22%, transparent); border-radius: 12px; }
.fxt.add:hover .fxt-img { box-shadow: inset 0 0 0 1.5px currentColor; }
.fxt-name { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.fxt-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0a0a0a; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.fxt-check svg { width: 14px; height: 14px; stroke-width: 3; }
.fxt.on .fxt-img { box-shadow: 0 0 0 2.5px currentColor, inset 0 0 0 2px rgba(0,0,0,.25); }
.fxt.on .fxt-check { opacity: 1; transform: none; }
.fxt-spin { position: absolute; inset: 0; display: none; place-items: center; background: rgba(8,9,12,.45); }
.fxt-spin::after { content: ''; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin .9s linear infinite; }
.fxt.loading .fxt-spin { display: grid; }
.fxt-del { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(8,9,12,.7); color: #fff; opacity: 0; transition: opacity .2s; z-index: 2; }
.fxt-del svg { width: 13px; height: 13px; }
.fxt:hover .fxt-del, .fxt:focus-within .fxt-del { opacity: 1; }
.fxp-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.modal .fxp { width: 100%; }
.modal .fxp-prev { max-height: 330px; width: 100%; }
@media (max-width: 640px) { .fxp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .fxt-name { font-size: 11.5px; } }.dev-form { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.keys { display: flex; flex-direction: column; }
.key-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
kbd { font-family: var(--mono); font-size: 12.5px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.1); }

/* janela flutuante (Document PiP) */
.pip-body { margin: 0; background: #0b0d12; color: #fff; height: 100vh; position: relative; overflow: hidden; font-family: var(--sans); }
.pip-body video { width: 100%; height: 100%; object-fit: cover; }
.pip-name { position: absolute; left: 10px; top: 8px; font-size: 12.5px; text-shadow: 0 1px 3px #000; }
.pip-bar { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 12.5px; }
.pip-bar .cbtn { width: 40px; height: 40px; }
.pip-bar .cbtn.leave { width: 52px; }

/* celular e telas estreitas */
@media (max-width: 900px) {
  .bar-left, .bar-right { display: none; }
  .bar { grid-template-columns: 1fr; justify-items: center; height: 76px; padding-bottom: env(safe-area-inset-bottom); }
  .hide-sm { display: none !important; }
  .side { position: fixed; inset: 0; z-index: 70; width: auto; border-radius: 0; padding-top: env(safe-area-inset-top); }
  .call-body { padding: 0 8px; }
  .call-top { padding-top: env(safe-area-inset-top); height: calc(44px + env(safe-area-inset-top)); }
  .cbtn { width: 46px; height: 46px; }
  .bar-center { gap: 8px; }
  .toasts { bottom: 100px; }
}
@media (max-width: 380px) { .cbtn { width: 42px; height: 42px; } .bar-center { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.side .fxp-prev { position: sticky; top: 0; z-index: 3; }
.modal.wide:has(.fxp) { width: min(880px, 100%); }
