:root{
  color-scheme:dark;
  --bs-body-bg:#080b12;
  --bs-body-color:#eef2ff;
  --bs-primary:#6d8dff;
  --bs-primary-rgb:109,141,255;
  --bs-border-color:#1d2433;
  --bs-secondary-color:#93a0bb;
  --tf-bg:#080b12;
  --tf-bg-elev:#0d111a;
  --tf-surface:#111722;
  --tf-surface-2:#151c29;
  --tf-surface-3:#0f1520;
  --tf-border:#232c3d;
  --tf-border-soft:#1a2230;
  --tf-text:#eef2ff;
  --tf-muted:#95a0b8;
  --tf-accent:#6d8dff;
  --tf-accent-soft:#253454;
  --tf-green:#29c57a;
  --tf-red:#f36a7c;
}
*,*::before,*::after{box-sizing:border-box}
html{min-height:100%;background:var(--tf-bg)}
body{min-height:100vh;margin:0;color:var(--tf-text);background:linear-gradient(180deg,#080b12 0%,#090d14 100%);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;display:flex;flex-direction:column}
main{flex:1}
a{text-decoration:none}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
.lucide-icon{display:inline-block;vertical-align:middle;flex-shrink:0}
.text-muted-custom{color:var(--tf-muted)!important}
.muted-link{color:#a7b2ca;font-size:.875rem;transition:color .15s ease}
.muted-link:hover{color:#fff}
.eyebrow{font-weight:800;letter-spacing:.14em;color:#89a2ff;font-size:.69rem}
.status-dot{display:inline-block;width:8px;height:8px;flex-shrink:0;background:var(--tf-green);border-radius:50%;box-shadow:0 0 0 4px rgba(41,197,122,.12)}
.btn{--bs-btn-font-weight:700;--bs-btn-border-radius:12px;padding:.76rem 1.15rem;font-size:.9rem;transition:transform .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease;box-shadow:none}
.btn:hover:not(:disabled){transform:translateY(-1px)}
.btn:focus-visible,.form-control:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #9db3ff;outline-offset:3px}
.btn-primary{--bs-btn-bg:#3b82f6;--bs-btn-border-color:#3b82f6;--bs-btn-hover-bg:#4a8df8;--bs-btn-hover-border-color:#4a8df8;--bs-btn-active-bg:#2d6fd9;--bs-btn-active-border-color:#2d6fd9;color:#fff}
.btn-outline-light{--bs-btn-border-color:#334055;--bs-btn-color:#d8deef;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#202938;--bs-btn-hover-border-color:#46536b}
.btn-soft{background:#121a28;border:1px solid #283246;color:#e6ebfb}
.btn-soft:hover{background:#172132;border-color:#334158;color:#fff}
.btn-quiet{background:transparent;border:1px solid #293244;color:#c1cae0}
.btn-quiet:hover{background:#161d2a;border-color:#354059;color:#fff}
.form-control{background:#0d121d;border:1px solid #283244;color:#f7f9ff;min-height:48px;border-radius:12px;font-size:.92rem;box-shadow:none}
.form-control::placeholder{color:#74819e}
.form-control:focus{color:#fff;background:#101624;border-color:#5d84ff;box-shadow:0 0 0 .18rem rgba(93,132,255,.15)}
.form-label{color:#e7ebf7;font-size:.84rem;margin-bottom:.55rem}
.alert{border-radius:14px;font-size:.9rem}
.alert-danger{background:#311922;border-color:#613545;color:#ffd0d7}
.app-footer{color:#72809b;font-size:.75rem;margin-top:auto}

/* Navigation */
.topbar{background:rgba(9,12,18,.92);border-bottom:1px solid #171f2c;backdrop-filter:blur(14px)}
.brand{color:#fff;font-weight:850;letter-spacing:-.04em}
.brand:hover{color:#fff}
.brand-word{font-size:1.35rem}
.brand-word>span{color:#8bb0ff}
.brand-mark{width:38px;height:38px;display:grid;place-items:center;border:1px solid #273145;border-radius:999px;background:#0f1520;color:#dce8ff}
.brand-beta{border:1px solid #253049;border-radius:999px;padding:4px 8px;font-size:.54rem;color:#a9bfff;letter-spacing:.1em;background:#111827;margin-left:2px}
.brand-logo-img{display:block;width:142px;height:auto;max-width:100%;object-fit:contain;flex:0 0 auto}
.brand-logo-img--auth{width:220px}
@media(max-width:420px){.brand-logo-img--auth{width:min(205px,70vw)}}
.nav-app-link{font-size:.88rem;color:#afbad3;padding:.6rem 1rem!important;border-radius:999px}
.nav-app-link.active,.nav-app-link:hover{background:#111723;color:#fff}
/* .nav-user{font-size:.87rem;color:#dde4f8}
.user-avatar{display:grid;place-items:center;border:1px solid #273145;background:#101827;border-radius:50%;width:34px;height:34px;color:#afc7ff} */
.navbar-toggler{color:#e7e7ff}

.user-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: #101827;
  border: 1px solid #273145;
  color: #afc7ff;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.nav-user {
  font-size: 0.87rem;
  font-weight: 600;
  color: #dde4f8;
}

/* Authentication */
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)}
.auth-aside{background:radial-gradient(circle at 20% 20%,rgba(59,130,246,.18),transparent 32%),radial-gradient(circle at 82% 74%,rgba(88,28,135,.14),transparent 30%),#090d14;border-right:1px solid #151e2d;position:relative;overflow:hidden;min-height:780px}
.hero-content{max-width:620px;z-index:1;align-self:center;width:100%}
.eyebrow-pill{display:inline-flex;align-items:center;gap:10px;color:#d8e3ff;background:#101827;border:1px solid #253149;border-radius:999px;padding:10px 14px;font-size:.69rem;font-weight:800;letter-spacing:.1em}
.hero-visual{height:245px;width:min(100%,480px);margin:12px auto 42px;position:relative;display:grid;place-items:center}
.hero-window{width:min(100%,350px);height:220px;border:1px solid #233049;border-radius:26px;background:linear-gradient(160deg,#0f1522,#131b2a);box-shadow:0 28px 50px rgba(0,0,0,.35);position:relative;overflow:hidden}
.hero-window-head{display:flex;align-items:center;gap:6px;height:34px;border-bottom:1px solid #1d2635;padding:0 15px;background:#0b111a}
.hero-window-head i{width:7px;height:7px;border-radius:100%;background:#3d4a64}
.hero-window-head i:first-child{background:#d5717e}
.hero-window-head i:nth-child(2){background:#d8ba68}
.hero-window-center{display:grid;place-items:center;color:#d8e6ff;height:148px}
.hero-window-status{position:absolute;bottom:16px;right:16px;background:#0d1320;border:1px solid #22304a;border-radius:999px;font-size:.64rem;font-weight:800;letter-spacing:.06em;padding:7px 10px;display:flex;align-items:center;gap:10px;color:#deebff}
.hero-floating{position:absolute;right:7%;top:8%;display:grid;place-items:center;width:62px;height:62px;border:1px solid #263652;background:#111928;border-radius:18px;color:#dfe9ff;box-shadow:0 20px 40px rgba(0,0,0,.25)}
.hero-content h1{font-weight:850;font-size:clamp(2.8rem,4vw,4.2rem);letter-spacing:-.055em;line-height:1.05;margin:0}
.hero-content h1 span{color:#8ab0ff}
.hero-content p{color:#aebad3;line-height:1.8;max-width:490px}
.hero-chip{display:inline-flex;align-items:center;gap:8px;background:#0f1520;border:1px solid #22304a;border-radius:999px;padding:9px 11px;color:#c6d2ea;font-size:.78rem}
.hero-disclaimer{color:#8390aa;z-index:1}
.auth-main{background:#090d14}
.auth-panel{max-width:430px}
.auth-title{font-size:clamp(1.9rem,2.5vw,2.2rem);letter-spacing:-.045em;font-weight:830}
.auth-switch{color:#aab4d0;font-size:.88rem}
.auth-switch a{color:#c7d6ff;font-weight:750}
.auth-switch a:hover{color:#fff}
.input-icon{position:relative}
.input-icon>.lucide-icon{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#72819f;pointer-events:none}
.input-icon>.form-control{padding-left:45px}

/* Dashboard */
.page-content{padding-top:34px;padding-bottom:62px}
.page-title{font-weight:840;font-size:clamp(1.75rem,3.3vw,2.25rem);letter-spacing:-.05em}
.dashboard-hero{padding:6px 0 12px}
.heading-counter{font-size:.96rem;color:#dce8ff;background:#111827;border:1px solid #263149;border-radius:999px;padding:.24rem .68rem;vertical-align:middle;margin-left:6px}
.online-pill{display:inline-flex;align-items:center;gap:10px;background:#0f1814;border:1px solid #1f3b2f;border-radius:999px;color:#9ee7c1;font-size:.77rem;font-weight:650;padding:10px 15px}
.feature-card,.room-card,.empty-card,.invite-panel,.settings-panel,.call-stage{border:1px solid var(--tf-border);background:var(--tf-surface);border-radius:22px;box-shadow:0 6px 24px rgba(0,0,0,.18)}
.feature-card{padding:28px;height:100%}
.feature-card h2{font-size:1.16rem;font-weight:760;margin:0 0 8px}
.feature-card p{font-size:.87rem;color:var(--tf-muted);line-height:1.65;margin:0}
.feature-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}
.feature-icon,.room-card-symbol,.empty-icon{width:48px;height:48px;display:grid;place-items:center;background:#0f1520;color:#cfe0ff;border:1px solid #253149;border-radius:16px}
.feature-icon-blue{background:#101827;color:#b9d8ff;border-color:#2a3850}
.feature-tag{color:#73829f;font-size:.62rem;letter-spacing:.12em;font-weight:800}
.section-title h2{font-size:1.08rem;font-weight:760;letter-spacing:-.025em}
.section-title .lucide-icon{color:#8fb1ff}
.room-card{padding:24px;min-height:250px;transition:border-color .17s ease,transform .17s ease,background-color .17s ease}
.room-card:hover{border-color:#31415d;transform:translateY(-2px);background:#141b28}
.room-card h3{font-size:1.12rem;font-weight:760;overflow-wrap:anywhere}
.room-owner{font-size:.8rem;color:#919bb6}
.room-owner strong{color:#dce5f7;font-weight:650}
.room-type{color:#9be6c1;font-size:.64rem;font-weight:750;letter-spacing:.07em;display:flex;gap:10px;align-items:center}
.room-invite-code{background:#0c121c;border:1px solid #212b3d;border-radius:12px;padding:11px 13px;color:#b0b8ce;font-size:.79rem;max-width:100%;overflow-wrap:anywhere}
.room-invite-code strong{color:#d6e3ff;letter-spacing:.06em}
.empty-card{padding:68px 20px;text-align:center}
.empty-icon{width:72px;height:72px;margin:0 auto 22px}
.empty-card h3{font-size:1.18rem;font-weight:750}
.empty-card p{color:var(--tf-muted);font-size:.87rem;max-width:460px;margin:0 auto}
.invite-panel{max-width:560px;padding:45px 38px;margin-top:30px}
.invite-panel p{color:#abb3cb;font-size:.94rem;line-height:1.7}
.invite-panel p strong{color:#f4f7ff}

/* Call screen */
.room-page{max-width:1540px}
.room-title{overflow-wrap:anywhere}
.room-live{display:inline-flex;align-items:center;gap:11px;padding:8px 12px;background:#101827;border:1px solid #243149;border-radius:999px;color:#d6e3ff;font-size:.65rem;font-weight:800;letter-spacing:.06em}
.room-subtitle{color:#93a0ba;font-size:.84rem}
.room-subtitle strong{color:#dbe7ff}
.participant-count{border:1px solid #243149;border-radius:999px;color:#d6e0f5;padding:10px 13px;font-size:.81rem;background:#101827}
.call-notice{background:#101726;border:1px solid #243149;border-radius:16px;padding:14px 16px;font-size:.86rem;color:#d5e1fb}
.call-notice.is-error{color:#ffd0d8;border-color:#73374a;background:#301b24}
.call-stage{padding:18px;min-height:430px;background:#0c111a;border-color:#1b2433}
.participant-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:16px;grid-auto-flow:dense;align-items:stretch}
.participant-grid[data-count="1"]{grid-template-columns:minmax(0,1fr)}
.participant-card{position:relative;aspect-ratio:16/9;background:linear-gradient(180deg,#101722 0%,#0e141e 100%);border:1px solid #212b3d;border-radius:20px;overflow:hidden;min-height:220px}
.participant-card.local-card{border-color:#2a3850}
.participant-card video{position:absolute;inset:0 0 44px;width:100%;height:calc(100% - 44px);object-fit:cover;display:none;background:#060a10}
.participant-card video.visible{display:block}
.participant-card video.screen-visible,.participant-card.is-sharing video.visible{object-fit:contain;background:#05080d}
.participant-card video.cam-small{position:absolute;display:block!important;width:24%;height:28%;min-width:120px;max-width:170px;left:14px;top:14px;z-index:2;border:1px solid #31415d;border-radius:14px;object-fit:cover;background:#04070d;box-shadow:0 12px 22px rgba(0,0,0,.28)}
.video-placeholder{position:absolute;inset:0 0 44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;font-size:.82rem;color:#96a3bc;text-align:center;padding:20px}
.tile-avatar{width:62px;height:62px;display:grid;place-items:center;border:1px solid #33415b;background:#131b28;border-radius:50%;color:#d8e5ff;font-size:1.02rem;font-weight:750}
.tile-footer{position:absolute;bottom:0;left:0;right:0;height:44px;background:#0e141f;border-top:1px solid #192332;display:flex;align-items:center;justify-content:space-between;padding:0 14px;color:#ecf2ff;font-size:.78rem;gap:10px}
.tile-dot{display:inline-block;width:8px;height:8px;background:#52d793;border-radius:50%}
.tile-self{font-size:.58rem;border:1px solid #263149;border-radius:999px;color:#bcd1ff;padding:3px 7px;background:#0e1623}
.tile-footer>span:last-child{color:#96a3bc;white-space:nowrap}
.participant-grid.has-sharing .participant-card{min-height:240px}
.participant-grid.has-sharing .participant-card.is-sharing{grid-column:span 2;min-height:380px}
.call-toolbar{border:1px solid #1f2938;background:#0f1520;border-radius:20px;padding:15px 16px}
.btn-call{background:#111826;border:1px solid #263149;color:#e6ecfb}
.btn-call:hover{background:#182233;color:#fff;border-color:#34435c}
.btn-call.on{border-color:#4263b8;color:#e4ecff;background:#16213a}
.btn-call .icon-on{display:none}
.btn-call.on .icon-on{display:inline-flex}
.btn-call.on .icon-off{display:none}
.btn-exit{background:#29151b;border:1px solid #5a2f39;color:#ffc4cf}
.btn-exit:hover{background:#381c24;color:#fff;border-color:#7a3f4e}
.call-help{color:#72809b;font-size:.78rem}
.settings-panel{overflow:hidden;background:#0f1520}
.settings-panel summary{padding:18px 22px;list-style:none;cursor:pointer;color:#e1e8f8;font-size:.88rem;font-weight:750}
.settings-panel summary::-webkit-details-marker{display:none}
.settings-panel[open] summary{border-bottom:1px solid var(--tf-border)}
.settings-panel[open] summary span:last-child{transform:rotate(180deg)}

.error-page{min-height:80vh}
.error-num{font-size:5rem;color:#bed3ff;letter-spacing:-.08em;font-weight:850}
.error-page p{max-width:500px;margin-bottom:25px}

@media(min-width:1200px){
  .participant-grid.has-sharing[data-count="2"]{grid-template-columns:1.12fr .88fr}
  .participant-grid.has-sharing[data-count="3"],
  .participant-grid.has-sharing[data-count="4"]{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:991.98px){
  .auth-shell{display:block;min-height:auto}
  .auth-main{min-height:calc(100vh - 65px)}
  .auth-panel{max-width:470px}
}
@media(max-width:767.98px){
  .page-content{padding-top:26px;padding-bottom:45px}
  .navbar-collapse{border-top:1px solid #1a2231;margin-top:15px;padding-top:10px}
  .nav-user{padding:12px 10px!important}
  .feature-card{padding:23px}
  .room-card{min-height:225px}
  .invite-panel{padding:28px 22px}
  .call-stage{padding:10px}
  .participant-grid{grid-template-columns:1fr;gap:12px}
  .participant-grid.has-sharing .participant-card.is-sharing{grid-column:auto;min-height:280px}
  .participant-card{aspect-ratio:16/10;min-height:215px}
  .participant-card video.cam-small{width:32%;height:30%;min-width:92px;left:10px;top:10px}
  .call-toolbar .btn{flex:1 1 43%;font-size:.8rem;padding:.7rem .7rem}
}
@media(max-width:420px){
  .call-toolbar .btn{flex:1 1 100%}
  .room-live{font-size:.57rem}
  .room-title{font-size:1.6rem}
  .participant-count{font-size:.75rem;padding:9px 11px}
}

/* v1.0.6: centralização real da mídia e densidade compacta da sala.
   A área de transmissão é um viewport de tamanho fixado pelo espaço disponível,
   e não uma grade que posiciona cards no canto superior esquerdo. */
body:has(#roomApp){height:100dvh;min-height:0;overflow:hidden}
body:has(#roomApp) .app-footer{display:none}
body:has(#roomApp) .topbar .navbar{padding-top:.55rem!important;padding-bottom:.55rem!important}
body:has(#roomApp) .topbar .brand-mark{width:32px;height:32px}
body:has(#roomApp) .topbar .brand-word{font-size:1.17rem}
.room-page{max-width:100%;width:100%;flex:1 1 auto;min-height:0;padding-top:10px!important;padding-bottom:10px!important;display:flex;flex-direction:column;gap:8px}
.room-heading{flex:0 0 auto;min-height:0;margin-bottom:0!important;gap:8px!important}
.room-heading .muted-link{font-size:.73rem;margin-bottom:3px!important}
.room-heading .page-title{font-size:clamp(1.2rem,1.8vw,1.6rem);line-height:1.14}
.room-heading .room-subtitle{font-size:.73rem;margin-top:3px!important}
.room-heading .room-live{padding:5px 9px;font-size:.6rem}
.room-heading .participant-count{padding:7px 10px;font-size:.74rem}
.room-heading .btn{padding:7px 10px;font-size:.76rem}
.room-heading .d-flex.flex-wrap.align-items-center.gap-3{gap:8px!important}
.call-notice{flex:0 0 auto;margin-bottom:0!important;padding:8px 12px;border-radius:10px;font-size:.76rem;line-height:1.45}
.call-notice .lucide-icon{width:15px;height:15px;margin-top:1px!important}
.call-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(272px,312px);gap:10px;align-items:stretch;flex:1 1 auto;min-height:0;height:100%}
.call-primary{min-height:0;min-width:0;display:flex;flex-direction:column}
.call-stage{height:auto;flex:1 1 auto;min-height:0;padding:0;display:flex;flex-direction:column;overflow:hidden;position:relative;background:#0b1018;border:1px solid #1b2433;border-radius:15px}
.stage-topline{height:38px;min-height:38px;flex:0 0 38px;padding:0 13px;background:#101722;border-bottom:1px solid #20293b;color:#e3eaf9;font-weight:650;font-size:.77rem}
.stage-topline .lucide-icon{color:#87aaff}
.stage-stream-count{font-size:.71rem;color:#92a0b8;font-weight:500}
.stage-viewport{position:relative;flex:1 1 auto;min-height:0;min-width:0;width:100%;container-type:size;isolation:isolate;background:#0a0f17}
.participant-grid{position:absolute;inset:0;width:100%;height:100%;min-height:0;min-width:0;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;align-content:center;gap:12px;padding:12px;overflow:auto;scrollbar-width:thin;scrollbar-color:#34435b transparent;overscroll-behavior:contain}
.participant-card{position:relative;flex:0 0 auto;min-width:0;min-height:0;height:auto;aspect-ratio:16/10;border-radius:13px;background:#101723;overflow:hidden;contain:layout paint}
.participant-card:not(.has-media){display:none}
/* 1 transmissão: dimensiona pela altura do viewport e centraliza em X e Y. */
.participant-grid[data-visible="1"] .participant-card.has-media{width:min(100%,calc((100cqh - 24px) * 1.6));max-height:calc(100cqh - 24px)}
/* 2 transmissões: duas placas proporcionais e centralizadas. */
.participant-grid[data-visible="2"] .participant-card.has-media{width:min(calc((100% - 12px) / 2),calc((100cqh - 24px) * 1.6));max-height:calc(100cqh - 24px)}
/* Compartilhamento tem prioridade espacial sem copiar outro layout. */
.participant-grid.has-sharing[data-visible="2"] .participant-card.is-sharing{width:min(calc((100% - 12px) * .64),calc((100cqh - 24px) * 1.6))}
.participant-grid.has-sharing[data-visible="2"] .participant-card.has-media:not(.is-sharing){width:min(calc((100% - 12px) * .35),calc((100cqh - 24px) * 1.6))}
.participant-grid .participant-card.is-sharing{order:-1}
/* 3 ou 4 streams: duas linhas proporcionais, sem prender um card ao topo. */
.participant-grid[data-visible="3"] .participant-card.has-media,
.participant-grid[data-visible="4"] .participant-card.has-media{width:min(calc((100% - 12px) / 2),calc((100cqh - 50px) * .77));max-height:calc((100cqh - 35px) / 2)}
.participant-grid[data-visible="5"] .participant-card.has-media,
.participant-grid[data-visible="6"] .participant-card.has-media{width:min(calc((100% - 24px) / 3),calc((100cqh - 50px) * .77));max-height:calc((100cqh - 35px) / 2)}
.participant-grid[data-visible="7"] .participant-card.has-media,
.participant-grid[data-visible="8"] .participant-card.has-media{width:min(calc((100% - 36px) / 4),calc((100cqh - 50px) * .77));max-height:calc((100cqh - 35px) / 2)}
.participant-card video{position:absolute;inset:0 0 37px;width:100%;height:calc(100% - 37px);object-fit:contain;background:#070b12;display:none}
.participant-card video.visible{display:block}
.participant-card video.cam-small{display:block!important;position:absolute;width:24%;height:27%;min-width:74px;min-height:52px;max-height:145px;left:10px;top:10px;z-index:2;object-fit:cover;border:1px solid #35435a;border-radius:9px;background:#080d14;box-shadow:0 9px 20px #0008}
.participant-card video.screen-visible,.participant-card.is-sharing video.visible:not(.cam-small){object-fit:contain}
.video-placeholder{inset:0 0 37px}
.tile-footer{height:37px;padding:0 10px;gap:7px;font-size:.73rem}
.tile-footer>span{min-width:0}
.tile-footer>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile-footer>span:last-child{flex-shrink:0}
.tile-avatar{width:56px;height:56px}
.stage-empty{display:none;position:absolute;inset:0;z-index:1;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:24px;color:#9ca9c1}
.call-stage.is-empty .stage-empty{display:flex}
.stage-empty-icon{width:64px;height:64px;display:grid;place-items:center;border:1px solid #2e3950;border-radius:18px;background:#151c29;color:#a9bfff;margin-bottom:14px}
.stage-empty h2{font-size:.98rem;color:#e4ebfa;font-weight:750;margin-bottom:7px}
.stage-empty p{font-size:.79rem;max-width:370px;line-height:1.6;margin:0}
/* Controles em uma linha sempre que houver largura suficiente. */
.call-toolbar{flex:0 0 auto;min-height:50px;margin-top:8px!important;padding:6px 9px;gap:7px!important;border-radius:13px;background:#0f1520;border:1px solid #1f2938}
.call-toolbar .btn{font-size:.76rem;padding:8px 10px;min-height:36px;border-radius:9px;line-height:1.2}
.call-toolbar .lucide-icon{width:16px;height:16px}
.call-toolbar #joinCall:disabled{background:#172d27;border-color:#245b47;color:#a2e6c0;opacity:1}
.call-help{flex:0 0 auto;color:#72809b;font-size:.67rem;margin-top:2px!important;line-height:1.25}
.room-sidebar{height:auto;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #252e40;border-radius:15px;background:#111722}
.members-panel,.chat-panel{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
.members-panel{flex:0 0 27%;min-height:115px;border-bottom:1px solid #242c3b}
.chat-panel{flex:1 1 auto}
.side-panel-header{padding:8px 12px;min-height:38px;flex:0 0 38px;border-bottom:1px solid #222c3c;background:#131a26}
.side-panel-header h2{font-size:.79rem;font-weight:750;letter-spacing:-.01em}
.side-panel-header h2 .lucide-icon{width:16px;height:16px;color:#92aff9}
.side-panel-count,.side-panel-label{font-size:.64rem;color:#aebed6;background:#1b2638;border:1px solid #2b364c;border-radius:999px;padding:2px 8px;line-height:1.3}
.member-list{list-style:none;padding:5px 8px;margin:0;min-height:0;flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#35435d transparent}
.member-row{display:flex;align-items:center;gap:8px;min-width:0;padding:5px;border-radius:9px}
.member-row:hover{background:#1a2230}
.member-avatar{position:relative;overflow:visible;width:30px;height:30px;display:grid;place-items:center;flex:0 0 auto;background:#1a2536;border:1px solid #2c3951;border-radius:50%;font-size:.72rem;font-weight:750;color:#dce9ff;transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease}
.member-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.member-avatar.offline{background:#151c28;color:#8792aa;border-color:#262d3a}
.member-avatar.is-speaking{border-color:#36df8a!important;outline:2px solid #36df8a;outline-offset:2px;box-shadow:0 0 0 5px rgba(54,223,138,.16),0 0 14px rgba(54,223,138,.29)}
.member-muted-badge{position:absolute;right:-6px;bottom:-5px;z-index:3;width:19px;height:19px;display:grid;place-items:center;border-radius:50%;background:#bb314c;border:2px solid #101925;color:#fff;box-shadow:0 3px 8px rgba(0,0,0,.5);pointer-events:none}
.member-muted-badge[hidden]{display:none!important}
.member-muted-badge svg{width:12px;height:12px;display:block;overflow:visible;flex:none}
.member-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.member-name{font-size:.74rem;font-weight:650;color:#e6ebf9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.member-subtitle{font-size:.63rem;color:#8d9bb3}
.member-presence{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#435166}
.member-presence.online{background:#2cd07a;box-shadow:0 0 0 3px rgba(44,208,122,.1)}
.member-loading{padding:12px 8px;color:#9eabc4;font-size:.77rem}
.chat-messages{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:8px 10px;scrollbar-width:thin;scrollbar-color:#35435d transparent;overscroll-behavior:contain}
.chat-placeholder{text-align:center;font-size:.76rem;color:#8796b3;line-height:1.6;padding:18px 8px;margin:0}
.chat-message{display:flex;flex-direction:column;gap:3px;padding:6px 8px;border-radius:9px;min-width:0}
.chat-message:hover{background:#171f2e}
.chat-message.is-own{background:#131d31}
.chat-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px}
.chat-author{font-size:.73rem;font-weight:750;color:#cbdcff;overflow-wrap:anywhere}
.chat-time{font-size:.62rem;color:#7788a2}
.chat-body{color:#d9e0f0;font-size:.79rem;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.42}
.chat-status{flex:0 0 auto;color:#97a8c7;font-size:.68rem;padding:0 10px;min-height:0}
.chat-status.is-error{color:#ffb2c1}
.chat-form{display:flex;align-items:flex-end;gap:6px;padding:7px 8px 3px;flex:0 0 auto}
.chat-input{flex:1;min-width:0;min-height:39px;height:41px;max-height:110px;resize:vertical;font-size:.78rem;padding:9px;border-radius:9px;background:#0c121c}
.chat-send{width:40px;height:40px;padding:0;display:grid;place-items:center;flex:0 0 auto;border-radius:9px}
.chat-tip{padding:0 10px 6px;color:#6f809d;font-size:.6rem;flex:0 0 auto}
.room-page>.settings-panel{flex:0 0 auto;margin-top:0!important}
.room-page>.settings-panel summary{padding:8px 12px;font-size:.75rem}
@media(max-width:1099.98px){
  .call-workspace{grid-template-columns:minmax(0,1fr) minmax(255px,285px)}
  .call-toolbar .btn{font-size:.7rem;padding:8px 8px}
  .call-toolbar .lucide-icon{width:15px;height:15px}
}
@media(max-width:899.98px){
  body:has(#roomApp){height:auto;min-height:100dvh;overflow:auto}
  .room-page{display:block;flex:1 0 auto;height:auto;padding-top:14px!important;padding-bottom:18px!important}
  .room-heading{margin-bottom:10px!important}
  .call-notice{margin-bottom:10px!important}
  .call-workspace{display:grid;grid-template-columns:minmax(0,1fr);height:auto;gap:10px}
  .call-primary{min-height:0}
  .call-stage{height:clamp(300px,52dvh,550px);flex:0 0 auto}
  .room-sidebar{height:390px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);grid-template-rows:minmax(0,1fr)}
  .members-panel{height:100%;min-height:0;flex:auto;border-bottom:0;border-right:1px solid #242c3b}
  .chat-panel{height:100%}
  .participant-grid[data-visible="3"] .participant-card.has-media,
  .participant-grid[data-visible="4"] .participant-card.has-media{width:min(calc((100% - 12px) / 2),calc((100cqh - 50px) * .75))}
}
@media(max-width:575.98px){
  .room-sidebar{height:485px;display:flex;flex-direction:column}
  .members-panel{height:auto;flex:0 0 135px;min-height:0;border-right:0;border-bottom:1px solid #242c3b}
  .chat-panel{height:auto;flex:1 1 auto;min-height:0}
  .call-stage{height:clamp(280px,45dvh,430px)}
  .participant-grid{padding:9px;gap:8px}
  .participant-grid[data-visible="2"] .participant-card.has-media,
  .participant-grid.has-sharing[data-visible="2"] .participant-card.has-media{width:min(100%,calc((100cqh - 28px) * .77));max-height:calc((100cqh - 27px) / 2)}
  .participant-grid[data-visible="3"] .participant-card.has-media,
  .participant-grid[data-visible="4"] .participant-card.has-media{width:min(calc((100% - 8px) / 2),calc((100cqh - 44px) * .7))}
  .call-toolbar{justify-content:space-between!important}
  .call-toolbar .btn{flex:1 1 auto;padding:8px;font-size:.72rem}
  .call-toolbar #joinCall{flex:1 1 100%}
  .call-toolbar .btn .lucide-icon{width:15px;height:15px}
  .call-help{font-size:.65rem;margin-top:7px!important}
  .room-page>.settings-panel{margin-top:12px!important}
}
@media(max-height:580px) and (min-width:900px){
  body:has(#roomApp){height:auto;min-height:100dvh;overflow:auto}
  .room-page{min-height:550px;height:auto;flex:1 0 auto}
  .call-workspace{min-height:370px}
}

/* v1.0.7 | Legibilidade e grid de transmissão verdadeiramente responsivo */
:root{
  --bs-body-font-family:"Inter Variable",Inter,"Segoe UI",system-ui,-apple-system,sans-serif;
  --bs-body-line-height:1.48;
}
html{font-size:16px;-webkit-text-size-adjust:100%}
body{font-family:var(--bs-body-font-family);font-optical-sizing:auto;font-size:.93rem;line-height:1.48;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select,textarea{font:inherit}
.page-title,.auth-title,.brand-word,.feature-card h2,.room-card h3{letter-spacing:-.025em}
.room-heading .room-subtitle,.call-notice{font-size:.82rem;line-height:1.48}
.side-panel-header h2{font-size:.85rem;letter-spacing:0}
.member-name,.chat-author{font-size:.8rem;line-height:1.4}
.member-subtitle,.chat-time{font-size:.7rem;line-height:1.4}
.chat-body{font-size:.84rem;line-height:1.52}
.member-row{padding:6px 5px}
.chat-message{gap:4px}
.chat-input{font-size:.82rem;line-height:1.45}
.chat-tip,.call-help{font-size:.69rem;line-height:1.4}
.tile-footer{font-size:.76rem}
.stage-topline{font-size:.79rem}

/* v1.0.8 | Dois cards por linha, última linha ímpar centralizada.
   O contador considera pessoas com câmera e/ou compartilhamento, não o microfone. */
.stage-viewport .participant-grid{
  --stream-gap:12px;
  --grid-rows:1;
  --visible-count:1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(var(--grid-rows),minmax(0,1fr));
  grid-auto-flow:row;
  justify-items:stretch;
  align-items:stretch;
  align-content:center;
  overflow:auto;
  gap:var(--stream-gap);
  padding:12px;
}
.stage-viewport .participant-grid .participant-card.has-media{
  display:block;
  flex:none;
  min-width:0;
  min-height:0;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  aspect-ratio:auto;
  margin:0;
  grid-column:auto;
  grid-row:auto;
  order:0;
}
/* Uma transmissão ocupa toda a área útil e mantém vídeo sem corte. */
.stage-viewport .participant-grid[data-visible="1"]{
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
}
.stage-viewport .participant-grid[data-visible="1"] .participant-card.has-media{
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
}
/* Duas transmissões mantêm o grid lado a lado. */
.stage-viewport .participant-grid[data-visible="2"]{
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:minmax(0,1fr);
}
/* Três: primeira linha de duas, terceira centralizada na segunda linha.
   O mesmo vale para cinco, sete etc., sem deixar um card à esquerda. */
.stage-viewport .participant-grid .participant-card.has-media.grid-last-center{
  grid-column:1 / -1;
  justify-self:center;
  width:calc((100% - var(--stream-gap)) / 2);
}
/* Salas grandes rolam dentro do painel, sem cortar as últimas linhas. */
.stage-viewport .participant-grid[data-visible="5"],
.stage-viewport .participant-grid[data-visible="6"],
.stage-viewport .participant-grid[data-visible="7"],
.stage-viewport .participant-grid[data-visible="8"],
.stage-viewport .participant-grid[data-visible="9"],
.stage-viewport .participant-grid[data-visible="10"]{
  grid-template-rows:repeat(var(--grid-rows),minmax(150px,1fr));
  align-content:start;
}
.stage-viewport .participant-grid .participant-card:not(.has-media){display:none}
.stage-viewport .participant-grid .participant-card video{object-fit:contain}
.stage-viewport .participant-grid .participant-card video.cam-small{object-fit:cover}

/* Tipografia: Inter Variable já é carregada localmente; aqui a leitura ganha
   escala e respiro, inclusive no chat e nos nomes dos membros. */
html{font-size:16.5px}
body{line-height:1.55;letter-spacing:.005em}
.brand-word{font-size:1.37rem;font-weight:800}
.nav-app-link,.nav-user{font-size:.91rem}
.page-title{font-size:clamp(1.95rem,3.5vw,2.55rem)}
.room-heading .page-title{font-size:clamp(1.45rem,2.1vw,1.85rem);line-height:1.2}
.room-heading .muted-link{font-size:.84rem}
.room-heading .room-subtitle{font-size:.83rem;line-height:1.45}
.room-heading .room-live{font-size:.69rem}
.room-heading .participant-count,.room-heading .btn{font-size:.83rem}
.call-notice{font-size:.87rem;line-height:1.55}
.stage-topline,.stage-stream-count{font-size:.88rem}
.side-panel-header h2{font-size:.94rem}
.side-panel-count,.side-panel-label{font-size:.73rem}
.member-name{font-size:.9rem;line-height:1.45}
.member-subtitle{font-size:.77rem;line-height:1.5}
.member-avatar{font-size:.79rem}
.member-row{gap:9px;padding:8px 7px}
.chat-author{font-size:.87rem}
.chat-time{font-size:.73rem}
.chat-body{font-size:.92rem;line-height:1.58}
.chat-message{gap:5px;padding:9px 10px}
.chat-input{font-size:.91rem;line-height:1.5}
.chat-placeholder,.chat-status{font-size:.84rem}
.chat-tip{font-size:.72rem}
.call-help{font-size:.76rem}
.tile-footer{font-size:.85rem}
.stage-empty h2{font-size:1.08rem}
.stage-empty p{font-size:.9rem}
.settings-panel summary{font-size:.89rem}
.feature-card p,.room-owner,.room-card p,.invite-panel p{font-size:.93rem}
.feature-card h2,.room-card h3{font-size:1.22rem}
.form-label,.form-control,.btn{font-size:.94rem}

/* Toolbar de ícones: alvos confortáveis, rótulos acessíveis e dicas nativas. */
.call-toolbar{justify-content:center!important;gap:9px!important;padding:7px 12px}
.call-toolbar .btn.btn-call-icon{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  min-height:42px;
  min-width:42px;
  padding:0;
  border-radius:12px;
  line-height:1;
}
.call-toolbar .btn-call-icon .lucide-icon{width:19px;height:19px}
.call-toolbar .btn-call-icon:focus-visible{outline:2px solid #abc3ff;outline-offset:3px}
.call-toolbar .btn-call-icon[disabled]{cursor:not-allowed}

/* Em telas estreitas, a grade vira uma coluna com rolagem interna.
   Isso mantém a câmera/tela legível em vez de espremida em cards estreitos. */
@media(max-width:575.98px){
  .stage-viewport .participant-grid{
    --stream-gap:9px;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:repeat(var(--visible-count),minmax(195px,1fr));
    align-content:start;
    padding:9px;
  }
  .stage-viewport .participant-grid[data-visible="1"]{
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:minmax(0,1fr);
    align-content:center;
  }
  .stage-viewport .participant-grid[data-visible="2"]{
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:repeat(2,minmax(195px,1fr));
  }
  .stage-viewport .participant-grid:is([data-visible="5"],[data-visible="6"],[data-visible="7"],[data-visible="8"],[data-visible="9"],[data-visible="10"]){
    grid-template-rows:repeat(var(--visible-count),minmax(195px,1fr));
  }
  .stage-viewport .participant-grid .participant-card.has-media.grid-last-center{
    grid-column:auto;
    justify-self:stretch;
    width:100%;
  }
  .call-toolbar{justify-content:center!important;gap:8px!important}
  .call-toolbar .btn.btn-call-icon{flex:0 0 42px;min-width:42px;width:42px;height:42px;padding:0}
  .room-heading .page-title{font-size:1.55rem}
  .chat-body{font-size:.93rem}
}


/* v1.0.9 | Sala sem navbar, sobreposição arrastável e menus por transmissão */
body:has(#roomApp) {height:100dvh;min-height:0;overflow:hidden}
body:has(#roomApp) .app-footer{display:none}
.room-page{padding-top:12px!important}
/* Esconde de fato mesmo sob os utilitários !important do Bootstrap. */
.call-toolbar [hidden],.stage-header-actions [hidden],.stream-actions [hidden]{display:none!important}
/* Sem texto de captura nem navbar na sala: espaço reservado para mídia. */
.call-toolbar{min-height:66px;padding:9px 12px;gap:12px!important}
.call-toolbar .btn.btn-call-icon{flex:0 0 50px;width:50px;min-width:50px;height:50px;min-height:50px;border-radius:13px}
.call-toolbar .btn-call-icon .lucide-icon{width:22px;height:22px}
.stage-header-actions{display:flex;align-items:center;gap:9px;min-width:0}
.stage-header-button{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid #2a3954;border-radius:9px;background:#182132;color:#e0e9ff;font-weight:600;font-size:.73rem}
.stage-header-button:hover{background:#263550;border-color:#46638e}
.stage-header-button .lucide-icon{width:15px;height:15px}
/* Foco é uma visualização local. Não altera a captura ou a chamada. */
.stage-viewport .participant-grid.is-focused .participant-card.has-media:not(.is-focused-stream){display:none!important}
.stage-viewport .participant-grid .participant-card.is-hidden-stream{display:none!important}
.stage-viewport .participant-grid.is-focused .participant-card.is-focused-stream{grid-column:1/-1;width:100%;height:100%;max-width:none;max-height:none}
/* Menu de ações ao canto superior direito de qualquer card ativo. */
.participant-card .stream-actions{position:absolute;right:12px;top:11px;z-index:20}
.participant-card .stream-menu-trigger{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #65728b75;border-radius:10px;background:#111827d9;color:#fff;backdrop-filter:blur(10px);transition:background .15s,border-color .15s}
.participant-card .stream-menu-trigger:hover,.participant-card .stream-menu-trigger[aria-expanded="true"]{background:#243654;border-color:#7899d8}
.participant-card .stream-menu{position:absolute;right:0;top:42px;z-index:22;min-width:218px;padding:6px;background:#111927f5;border:1px solid #35445f;border-radius:12px;box-shadow:0 16px 36px #000a;backdrop-filter:blur(14px)}
.participant-card .stream-menu button{width:100%;display:flex;gap:11px;align-items:center;text-align:left;background:transparent;color:#e5edff;border:none;border-radius:8px;padding:10px 12px;font-size:.79rem;white-space:nowrap}
.participant-card .stream-menu button:hover,.participant-card .stream-menu button:focus-visible{background:#253651;color:#fff}
.participant-card .stream-menu button .lucide-icon{color:#b0c6ec;flex:0 0 auto}
/* A câmera passa a ser um PiP de quatro cantos na área de cada participante. */
.participant-card video.cam-small{position:absolute;z-index:12;left:12px;right:auto;top:12px;bottom:auto;width:clamp(92px,24%,195px);min-width:0;height:auto;min-height:0;max-height:none;aspect-ratio:16/9;border-radius:11px;object-fit:cover;background:#101824;border:2px solid #607ba8;box-shadow:0 8px 25px #000a;cursor:grab;touch-action:none;user-select:none}
.participant-card video.cam-small.is-dragging{cursor:grabbing;transition:none}
.participant-card[data-camera-corner="tr"] video.cam-small:not(.is-dragging){left:auto;right:12px;top:12px;bottom:auto}
.participant-card[data-camera-corner="bl"] video.cam-small:not(.is-dragging){left:12px;right:auto;top:auto;bottom:49px}
.participant-card[data-camera-corner="br"] video.cam-small:not(.is-dragging){left:auto;right:12px;top:auto;bottom:49px}
.participant-card[data-camera-corner="tl"] video.cam-small:not(.is-dragging){left:12px;right:auto;top:12px;bottom:auto}
/* Ações permanecem acessíveis também em modo de tela cheia. */
.participant-card:fullscreen{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border-radius:0;background:#080c13}
.participant-card:fullscreen video{object-fit:contain}
.participant-card:fullscreen .stream-actions{right:18px;top:18px}
@media(max-width:767.98px){
  .call-toolbar{min-height:62px;gap:8px!important}
  .call-toolbar .btn.btn-call-icon{flex:0 0 48px;width:48px;min-width:48px;height:48px;min-height:48px}
  .stage-header-button span{display:none}
  .participant-card .stream-actions{right:8px;top:8px}
  .participant-card .stream-menu-trigger{width:34px;height:34px}
  .participant-card .stream-menu{max-width:min(220px,75vw)}
  .participant-card video.cam-small{width:clamp(88px,28%,155px)}
}

/* O menu fica temporariamente no body, fora de qualquer overflow:hidden. */
.stream-menu{position:fixed;z-index:5000;min-width:218px;max-width:min(226px,calc(100vw - 16px));padding:6px;background:#111927f8;border:1px solid #35445f;border-radius:12px;box-shadow:0 16px 36px #000b;backdrop-filter:blur(14px)}
.stream-menu[hidden]{display:none!important}
.stream-menu button{width:100%;display:flex;align-items:center;gap:11px;text-align:left;color:#e5edff;background:transparent;border:none;border-radius:8px;padding:10px 12px;font-size:.8rem;white-space:nowrap}
.stream-menu button:hover,.stream-menu button:focus-visible{background:#253651;color:#fff}
.stream-menu button .lucide-icon{color:#b0c6ec;flex-shrink:0}

/* v1.1.0 | Sala tripla: membros | transmissões | chat.
   Os cards, menus e cores continuam com a identidade TelaFlux. */
.call-workspace{
  display:grid;
  grid-template-columns:clamp(190px,15vw,242px) minmax(0,1fr) clamp(270px,22vw,350px);
  grid-template-areas:"members stage chat";
  align-items:stretch;
  min-height:0;
  height:100%;
  gap:12px;
}
.room-members-column{grid-area:members}
.call-primary{grid-area:stage}
.room-chat-column{grid-area:chat}
.room-members-column,.room-chat-column{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  background:#101722;
  border:1px solid #263247;
  border-radius:15px;
  overflow:hidden;
}
.room-members-column .members-panel,
.room-chat-column .chat-panel{
  flex:1 1 auto;
  min-height:0;
  height:100%;
  border:0;
  overflow:hidden;
}
.room-members-column .member-list{flex:1 1 auto;min-height:0;overflow:auto;padding:8px}
.room-members-column .member-row{padding:9px 7px;gap:10px}
.room-members-column .member-avatar{width:36px;height:36px;font-size:.83rem}
.room-members-column .member-name{font-size:.87rem}
.room-members-column .member-subtitle{font-size:.73rem;line-height:1.4}
.room-chat-column .chat-messages{padding:12px 10px}
.room-chat-column .chat-body{font-size:.9rem;line-height:1.5}
.room-chat-column .chat-author{font-size:.87rem}
.room-chat-column .chat-meta{gap:7px}
.room-chat-column .chat-input{font-size:.86rem}
.room-chat-column .side-panel-header h2,
.room-members-column .side-panel-header h2{font-size:.91rem}
.room-chat-column .side-panel-header,
.room-members-column .side-panel-header{min-height:44px;flex-basis:44px;padding:10px 13px}
.room-chat-column .chat-form{padding:10px 9px 5px}
.call-primary .call-stage{flex:1 1 auto;min-height:0}
.call-primary .stage-topline{min-height:44px;flex-basis:44px;height:44px;font-size:.9rem}
.call-primary .stage-stream-count{font-size:.78rem}
.call-primary .call-toolbar{flex-shrink:0;margin-top:9px!important}
.room-page .room-heading .page-title{font-size:clamp(1.24rem,1.5vw,1.8rem)}

/* Controlador independente: duas fontes de vídeo e dois canais de áudio. */
.stream-menu{
  box-sizing:border-box;
  width:278px;
  min-width:278px;
  max-width:calc(100vw - 16px);
  max-height:calc(100dvh - 16px);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#455574 #121b2a;
  padding:8px;
}
.stream-menu [hidden]{display:none!important}
.stream-menu-heading{
  padding:8px 10px 5px;
  color:#9fb1d0;
  font-size:.74rem;
  letter-spacing:.025em;
  font-weight:750;
}
.stream-menu-divider{height:1px;background:#2b3a4f;margin:7px 5px}
.stream-media-group{padding:2px 0}
.stream-media-title{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px 4px;
  color:#b7caff;
  font-size:.79rem;
  font-weight:760;
}
.stream-media-title .lucide-icon{flex-shrink:0}
.stream-menu button{min-height:35px;font-size:.79rem;white-space:normal}
.stream-volume-row{display:flex;flex-direction:column;gap:6px;padding:8px 12px 9px;color:#c6d3ed;font-size:.76rem}
.stream-volume-row>span{display:flex;justify-content:space-between;gap:10px}
.stream-volume-row output{color:#a7c5ff;font-variant-numeric:tabular-nums}
.stream-volume-row input{width:100%;height:20px;cursor:pointer;accent-color:#6a9aff}
.stream-volume-row input:focus-visible{outline:2px solid #8fb2ff;outline-offset:2px}

@media(max-width:1180px) and (min-width:991px){
  .call-workspace{grid-template-columns:180px minmax(0,1fr) 250px;gap:8px}
  .room-members-column .member-row{gap:6px}
}
@media(max-width:990px){
  body:has(#roomApp){height:auto;min-height:100dvh;overflow:auto}
  .room-page{display:block;min-height:100dvh;height:auto}
  .call-workspace{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(235px,.9fr);
    grid-template-areas:"stage stage" "members chat";
    grid-template-rows:minmax(360px,58dvh) minmax(280px,360px);
    height:auto;
    overflow:visible;
  }
  .room-members-column,.room-chat-column{min-height:280px}
  .call-primary{min-height:0}
  .room-members-column .members-panel{min-height:0}
  .room-chat-column .chat-panel{min-height:0}
}
@media(max-width:620px){
  .call-workspace{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"stage" "members" "chat";
    grid-template-rows:minmax(300px,55dvh) minmax(138px,210px) minmax(330px,460px);
    gap:10px;
  }
  .room-members-column,.room-chat-column{min-height:0}
  .call-primary .stage-topline{min-height:40px;flex-basis:40px;height:40px}
  .room-page{padding-inline:10px!important}
  .call-primary .call-toolbar{gap:8px!important}
}


/* v1.1.1 | Cabeçalho integrado ao padrão dos painéis da chamada. */
.room-overview{
  display:flex;
  flex-direction:column;
  flex:0 0 auto;
  min-width:0;
  overflow:hidden;
  border:1px solid #263247;
  border-radius:15px;
  background:#101722;
}
.room-overview-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:18px;
  padding:12px 16px;
  min-width:0;
  min-height:96px;
}
.room-identity{position:relative;z-index:1;min-width:0;flex:1 1 auto}
.room-back-link{
  width:max-content;
  max-width:100%;
  margin-bottom:8px;
  color:#95a9ca;
  font-size:.8rem;
  line-height:1.15;
  font-weight:550;
  transition:color .15s ease;
}
.room-back-link:hover{color:#e4efff}
.room-back-link .lucide-icon{color:#83a7e9}
.room-identity-main{display:flex;align-items:center;gap:12px;min-width:0}
.room-identity-main--compact{align-items:center}
.room-identity-symbol{
  display:grid;
  place-items:center;
  flex:0 0 43px;
  width:43px;
  height:43px;
  border-radius:12px;
  border:1px solid #2d4163;
  background:#18263c;
  color:#91b8ff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.room-identity-content{min-width:0;display:flex;flex-direction:column;gap:6px}
.room-identity-heading--compact{gap:10px 9px;align-items:center}
.room-identity-heading{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.room-overview .room-title{
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  color:#f4f7ff;
  font-size:clamp(1.2rem,1.4vw,1.5rem);
  line-height:1.22;
  letter-spacing:-.035em;
  font-weight:780;
  overflow-wrap:anywhere;
}
.room-overview .room-live{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 11px;
  background:#11251f;
  border:1px solid #25483b;
  border-radius:999px;
  color:#b9edce;
  font-size:.68rem;
  line-height:1.1;
  font-weight:760;
  letter-spacing:.02em;
  white-space:nowrap;
  text-transform:uppercase;
}
.room-overview .status-dot{width:7px;height:7px;background:#36d48b;box-shadow:0 0 0 3px rgba(54,212,139,.12)}
.room-code-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:5px 12px;
  border-radius:999px;
  border:1px solid #2d3951;
  background:#182132;
  color:#c9d9f5;
  font-size:.76rem;
  line-height:1;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  letter-spacing:.04em;
}
.room-code-chip strong{font-weight:760;color:#dce9ff}
.room-subtitle--compact{padding-left:1px}
.room-overview .room-subtitle{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:0;
  font-size:.79rem;
  line-height:1.5;
  color:#99a9c5;
}
.room-subtitle--compact{font-size:.82rem;color:#90a2c3}
.room-overview .room-subtitle strong{color:#cfddf8;font-weight:680}
.room-code-group{display:inline-flex;align-items:center;gap:6px;min-width:0}
.room-code-group .lucide-icon{color:#779bd9}
.room-code{font-variant-numeric:tabular-nums;letter-spacing:.035em}
.room-meta-divider{height:13px;width:1px;background:#36425b}

.room-overview-brand{
  position:relative;
  justify-self:center;
  align-self:center;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:8px;
  width:max-content;
  max-width:100%;
  min-width:0;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  box-shadow:none;
  transform:none;
}
.room-brand-logo{
  display:block;
  width:clamp(190px,17.2vw,252px);
  max-width:100%;
  height:auto;
  object-fit:contain;
}
.room-brand-beta{
  position:static;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  margin-top:-2px;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid #2e4260;
  background:#132035;
  color:#a7c5ff;
  font-size:.62rem;
  line-height:1;
  font-weight:780;
  letter-spacing:.08em;
  white-space:nowrap;
}

.room-overview-actions{
  position:relative;z-index:1;display:flex;flex-direction:row;flex-wrap:nowrap;
  align-items:center;justify-content:flex-end;justify-self:end;gap:10px;min-width:0;
}
.room-overview-actions .room-invite-button{flex:0 0 auto}
.room-overview-actions .room-connection-wrap{width:205px;max-width:none;flex:0 1 205px}
.room-overview .participant-count{
  display:inline-flex;
  align-items:center;
  padding:9px 12px;
  color:#d4e1f9;
  background:#141e2d;
  border:1px solid #2b3950;
  border-radius:11px;
  font-size:.83rem;
  font-weight:600;
  white-space:nowrap;
}
.room-overview .participant-count .lucide-icon{color:#9bb9ee}
.room-overview .room-invite-button{
  background:#1b2b45;
  border:1px solid #2d4467;
  color:#ecf3ff;
  padding:9px 13px;
  border-radius:11px;
  min-height:38px;
  font-size:.83rem;
  font-weight:700;
  white-space:nowrap;
}
.room-overview .room-invite-button:hover{background:#253a5c;border-color:#42608c}
.room-overview .room-invite-button .lucide-icon{color:#a9c7ff}
.room-overview .call-notice{
  display:flex;
  gap:9px;
  align-items:center;
  margin:0!important;
  min-height:34px;
  padding:8px 16px;
  border:0;
  border-top:1px solid #263247;
  border-radius:0;
  background:#0e1622;
  color:#9db1ce;
  font-size:.79rem;
  line-height:1.35;
}
.room-overview .call-notice .call-notice-error-icon{display:none}
.room-overview .call-notice.is-error .call-notice-activity-icon{display:none}
.room-overview .call-notice.is-error .call-notice-error-icon{display:inline-flex}
.room-overview .call-notice.is-live .call-notice-activity-icon .lucide-icon{color:#45d49a}
.room-overview .call-notice .lucide-icon{
  color:#80aaf0;
  width:16px;
  height:16px;
  flex-shrink:0;
  margin:0!important;
}
.room-overview .call-notice.is-error{
  background:#291b25;
  border-top-color:#64394a;
  color:#ffd1da;
}
.room-overview .call-notice.is-error .lucide-icon{color:#ff9baf}
@media (max-width:1100px){
  .room-overview-top{grid-template-columns:minmax(0,1fr) auto;gap:12px;min-height:auto}
  .room-identity{grid-column:1;grid-row:1}
  .room-overview-actions{grid-column:2;grid-row:1;justify-self:end}
  .room-overview-brand{grid-column:1 / -1;grid-row:2;justify-self:center;margin:10px 0 4px}
}
@media (max-width:620px){
  .room-overview-top{grid-template-columns:minmax(0,1fr);padding:12px;gap:11px}
  .room-identity{grid-column:1;grid-row:1}
  .room-overview-brand{grid-column:1;grid-row:2;justify-self:center;margin:10px 0 5px}
  .room-overview-actions{grid-column:1;grid-row:3}
  .room-brand-logo{width:clamp(155px,45vw,210px)}
  .room-brand-beta{font-size:.57rem;padding:4px 7px}
  .room-identity-symbol{width:37px;height:37px;flex-basis:37px;border-radius:10px}
  .room-identity-main{gap:9px;align-items:flex-start}
  .room-overview .room-title{font-size:1.28rem}
  .room-overview .room-live{font-size:.58rem;padding:5px 8px}
  .room-overview .room-subtitle{font-size:.74rem;gap:7px}
  .room-code-chip{font-size:.7rem;padding:5px 10px;min-height:26px}
  .room-meta-divider{display:none}
  .room-overview-actions{margin-left:0;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .room-overview-actions .room-connection-wrap{width:100%;max-width:none;min-width:0}
  .room-overview .participant-count{flex:0 0 auto;padding:9px 10px}
  .room-overview .room-invite-button{flex:1 1 auto}
  .room-overview .call-notice{padding:9px 12px;font-size:.76rem}
}


/* v1.1.2 | Exclusão rápida na barra de chamada, sem painel de configurações. */
.call-toolbar #deleteRoomForm{flex:0 0 auto;display:inline-flex;align-items:center}
.call-toolbar .btn.btn-delete-room{
  background:#240f18;
  border:1px solid #8c3448;
  color:#ff677f;
  box-shadow:none;
}
.call-toolbar .btn.btn-delete-room:hover{
  background:#371622;
  border-color:#d34d65;
  color:#ff91a2;
}
.call-toolbar .btn.btn-delete-room:active{background:#4a1c2a;color:#fff}
.call-toolbar .btn.btn-delete-room:focus-visible{outline-color:#ff879c}
/* O ícone de reconexão só aparece depois que o usuário sai ou perde a conexão. */
.call-toolbar #joinCall[hidden]{display:none!important}
.call-toolbar #joinCall:disabled{
  background:#121a28;
  border-color:#283246;
  color:#a5b9db;
  opacity:1;
}


/* v1.1.8: Tela independente para queda de conexão na sala. */
.connection-error-screen[hidden], #roomApp[hidden]{display:none!important}
.connection-error-screen{
  flex:1;
  min-height:100vh;
  display:flex;
  align-items:stretch;
  justify-content:center;
  padding:clamp(20px,4vw,34px) 18px;
  background:radial-gradient(ellipse at 50% 10%,rgba(68,106,173,.12),transparent 55%),#080b12;
}
.connection-error-layout{
  width:min(100%,720px);
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.connection-error-brand{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding-top:6px;
}
.connection-error-brand-logo{
  width:min(100%,340px);
  height:auto;
  display:block;
}
.connection-error-brand-beta{
  align-self:flex-start;
  margin-top:4px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid #35548c;
  background:#15233a;
  color:#8faeff;
  font-size:.68rem;
  font-weight:780;
  letter-spacing:.09em;
}
.connection-error-card{
  width:min(100%,550px);
  padding:clamp(26px,5vw,46px);
  border:1px solid #25334a;
  border-radius:24px;
  background:#111722;
  box-shadow:0 18px 60px rgba(0,0,0,.2);
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:15px;
  margin:auto 0;
}
.connection-error-symbol{
  width:82px;
  height:82px;
  display:grid;
  place-items:center;
  color:#ff9da8;
  background:#291a25;
  border:1px solid #6f384c;
  border-radius:22px;
}
.connection-error-eyebrow{color:#9db7ed;font-size:.7rem;font-weight:780;letter-spacing:.16em}
.connection-error-card h1{margin:0;color:#f3f7ff;font-size:clamp(1.65rem,3vw,2.2rem);font-weight:780;letter-spacing:-.045em}
.connection-error-description{margin:0;color:#aebbd3;font-size:.97rem;line-height:1.7}
.connection-error-detail{width:100%;margin:0;padding:12px 14px;color:#f2bdc9;background:#251922;border:1px solid #563345;border-radius:12px;font-size:.87rem;line-height:1.55}
.connection-error-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;width:100%;margin-top:8px}
.connection-error-actions .btn{min-height:46px}
.connection-error-footer{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:16px 18px;
  border-top:1px solid #223046;
  color:#7e8da8;
  font-size:.84rem;
  line-height:1.65;
  text-align:center;
}
.connection-error-footer-icon{color:#9ab7ec;display:grid;place-items:center;flex:0 0 auto}
@media(max-width:520px){
  .connection-error-layout{gap:18px}
  .connection-error-brand{flex-wrap:wrap}
  .connection-error-brand-logo{width:min(100%,280px)}
  .connection-error-card{gap:13px}
  .connection-error-actions{flex-direction:column}
  .connection-error-actions .btn{width:100%}
  .connection-error-footer{font-size:.8rem;padding-inline:8px}
}

/* v1.2.0 | Card de conta no rodapé da coluna de membros */
.room-members-column .members-panel{position:relative}
.room-profile-dock{flex:0 0 auto;padding:10px;border-top:1px solid #263247;background:#0d1420}
.room-profile-trigger{
  display:flex;align-items:center;gap:10px;width:100%;min-width:0;
  border:1px solid #27344a;border-radius:13px;background:#151f2f;
  padding:9px 10px;color:#f2f6ff;text-align:left;transition:background .18s,border-color .18s;
}
.room-profile-trigger:hover,.room-profile-trigger[aria-expanded="true"]{background:#1b293d;border-color:#3b5373}
.room-profile-trigger:focus-visible{outline:2px solid #91b7ff;outline-offset:2px}
.profile-dock-avatar,.profile-modal-avatar{
  display:grid;place-items:center;overflow:hidden;flex-shrink:0;
  background:#223450;border:1px solid #365477;border-radius:50%;
  font-size:.85rem;font-weight:780;color:#dce8ff
}
.profile-dock-avatar{width:40px;height:40px}
.profile-modal-avatar{width:78px;height:78px;font-size:1.4rem}
.profile-dock-avatar img,.profile-modal-avatar img,.member-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.profile-dock-identity{display:flex;flex:1;flex-direction:column;min-width:0;gap:1px}
.profile-dock-identity strong{font-size:.87rem;font-weight:760;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-dock-identity small{font-size:.73rem;color:#9bb0cf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.room-profile-trigger>.lucide-icon{flex:0 0 auto;color:#9eb6db}
.profile-floating-menu[hidden],.profile-modal [hidden]{display:none!important}
.profile-floating-menu{
  position:fixed;z-index:1070;display:flex;flex-direction:column;gap:4px;
  width:245px;max-width:calc(100vw - 16px);padding:9px;
  background:#171f2e;border:1px solid #30405a;border-radius:14px;
  box-shadow:0 18px 45px rgba(0,0,0,.48)
}
.profile-menu-heading{padding:7px 10px 5px;color:#99accd;font-size:.74rem;font-weight:750;letter-spacing:.04em}
.profile-floating-menu button,.profile-floating-menu a{
  display:flex;align-items:center;gap:10px;width:100%;padding:10px 11px;
  background:transparent;border:0;border-radius:9px;
  color:#ebf1ff;font-size:.88rem;text-align:left;line-height:1.35
}
.profile-floating-menu button:hover,.profile-floating-menu a:hover{background:#27364e;color:#fff}
.profile-floating-menu .lucide-icon{color:#9ab8eb}
.profile-menu-divider{height:1px;background:#2a3547;margin:5px 3px}
body.compact-members .room-members-column .member-row{padding-top:3px;padding-bottom:3px}
body.compact-members .room-members-column .member-avatar{width:31px;height:31px}
.profile-modal .modal-dialog{max-width:min(480px,calc(100vw - 24px))}
.profile-modal .modal-content{background:#111925;color:#f0f5ff;border:1px solid #324059;border-radius:19px;box-shadow:0 24px 70px rgba(0,0,0,.5)}
.profile-modal .modal-header{padding:22px 24px 8px}
.profile-modal .modal-title{font-size:1.43rem;font-weight:780;letter-spacing:-.03em}
.profile-modal-eyebrow{font-size:.63rem;color:#8baaff;font-weight:770;letter-spacing:.12em;margin-bottom:4px}
.profile-modal .modal-body{padding:14px 24px 24px}
.profile-modal-tabs{display:flex;gap:8px;margin-bottom:22px;border-bottom:1px solid #283549;padding-bottom:9px}
.profile-modal-tabs button{background:transparent;border:1px solid transparent;border-radius:9px;padding:9px 13px;color:#9eaecb;font-size:.87rem;font-weight:700}
.profile-modal-tabs button.active{background:#1d304d;border-color:#304e77;color:#e0ebff}
.profile-photo-area{display:flex;align-items:center;gap:17px;padding:0 0 22px;min-width:0}
.profile-photo-controls{display:flex;align-items:flex-start;flex-wrap:wrap;gap:7px;min-width:0}
.profile-photo-controls small{flex:1 0 100%;color:#90a2bd;font-size:.73rem;margin-top:4px}
.profile-modal .input-group-text{background:#172235;border-color:#283244;color:#a9c2ea}
.profile-form-feedback{min-height:20px;color:#9ce7bb;font-size:.82rem;line-height:1.5}
.profile-form-feedback.is-error{color:#ffb2c2}
.profile-preference-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #273248}
.profile-preference-row strong{font-size:.91rem}
.profile-preference-row p{margin:4px 0 0;color:#97a8c2;font-size:.8rem}
.profile-preference-hint{margin:16px 0 0;color:#8b9ab5;font-size:.76rem}
@media(max-width:620px){
  .room-profile-dock{padding:6px 8px}
  .room-profile-trigger{padding:7px 10px}
  .profile-modal .modal-header{padding:20px 18px 8px}
  .profile-modal .modal-body{padding:12px 18px 20px}
}

/* Fotos circulares e novo editor de recorte v1.2.5 */
.room-members-column .member-avatar{overflow:visible;isolation:auto;border-radius:50%}
.room-members-column .member-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.profile-modal.is-cropping .modal-dialog{max-width:min(580px,calc(100vw - 20px))}
.profile-modal.is-cropping .profile-modal-eyebrow,.profile-modal.is-cropping .profile-modal-tabs{display:none}
.profile-modal.is-cropping .modal-header{padding-bottom:12px}
.profile-modal.is-cropping .modal-body{padding-top:8px}
.profile-crop-panel{min-width:0}
.profile-crop-panel[hidden]{display:none!important}
.profile-crop-description{font-size:.88rem;line-height:1.6;color:#a6b9d8;margin:0 0 16px}
.profile-crop-viewport{
  position:relative;
  width:min(440px,100%);
  aspect-ratio:1;
  margin:0 auto 17px;
  padding:18px;
  overflow:hidden;
  border:1px solid #303d52;
  border-radius:14px;
  background:#060a10;
  touch-action:none;
}
.profile-crop-viewport canvas{
  display:block;
  width:100%;
  height:100%;
  border-radius:1px;
  cursor:grab;
  touch-action:none;
}
.profile-crop-viewport canvas:active{cursor:grabbing}
.profile-crop-viewport canvas:focus-visible{outline:2px solid #b3cfff;outline-offset:-3px}
.profile-crop-ring{
  position:absolute;
  inset:18px;
  pointer-events:none;
  border:2px solid rgba(243,247,255,.92);
  border-radius:50%;
  box-shadow:0 0 0 1000px rgba(3,7,14,.48),0 0 0 1px rgba(0,0,0,.5);
}
.profile-crop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:3px 0 19px}
.profile-crop-zoom-group{display:flex;align-items:center;flex:1;gap:8px;min-width:0}
.profile-crop-tool-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;color:#aebdd8;background:transparent;border-radius:9px;padding:8px;min-height:40px;min-width:40px}
.profile-crop-tool-button:hover,.profile-crop-tool-button:focus-visible{border-color:#364d74;background:#172337;color:#f3f7ff}
.profile-crop-zoom-group .form-range{accent-color:#6d8dff;flex:1;min-width:65px;margin:0}
.profile-crop-zoom-value{width:45px;text-align:end;font-size:.81rem;color:#9fb7dc;font-variant-numeric:tabular-nums}
.profile-crop-rotate{flex:0 0 auto;border-color:#293b54}
.profile-crop-rotate span{font-size:.81rem;font-weight:700}
.profile-crop-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #29354a;padding-top:17px}
.profile-crop-confirm{display:flex;gap:8px;justify-content:flex-end}
.profile-crop-confirm .btn{min-width:98px}
.profile-crop-reset{color:#a3bbef!important;font-weight:700;text-decoration:none}
.profile-crop-reset:hover{color:#fff!important}
.profile-crop-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.profile-crop-feedback{color:#ffaeba;font-size:.83rem;min-height:19px;margin:12px 0 0}
@media(max-width:520px){
  .profile-crop-viewport{padding:12px}
  .profile-crop-ring{inset:12px}
  .profile-crop-toolbar{gap:4px}
  .profile-crop-tool-button{min-height:36px;min-width:36px;padding:6px}
  .profile-crop-confirm .btn{min-width:auto}
}


/* v1.2.8 | Indicador real de latência da sala, sob "Copiar convite". */
.room-connection-wrap{position:relative;min-width:0;width:100%;max-width:210px}
.room-connection-status{
  display:flex;align-items:center;gap:9px;width:100%;min-width:0;
  padding:7px 10px;border:1px solid #2d405a;border-radius:11px;
  background:#131d2d;color:#d4e3fa;text-align:left;
  font-size:.78rem;line-height:1.28;
  transition:background .18s,border-color .18s;
}
.room-connection-status:hover,.room-connection-status[aria-expanded="true"]{background:#1c2a3f;border-color:#466080}
.room-connection-icon{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:9px;background:rgba(121,164,236,.14);color:#90b2ed}
.room-connection-text{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1 1 auto}
.room-connection-text strong{font-size:.79rem;font-weight:740;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.room-connection-text small{font-size:.71rem;color:#98a9c4;font-variant-numeric:tabular-nums}
.room-connection-arrow{display:grid;place-items:center;flex:0 0 auto;color:#8fa5c7}
.room-connection-status.is-good{border-color:#214939;background:#10221d}
.room-connection-status.is-good .room-connection-icon{color:#3bd98e;background:#183b2d}
.room-connection-status.is-good .room-connection-text strong{color:#a2ecc2}
.room-connection-status.is-medium{border-color:#66502c;background:#251e15}
.room-connection-status.is-medium .room-connection-icon{color:#f0c66f;background:#45351d}
.room-connection-status.is-medium .room-connection-text strong{color:#f6d68d}
.room-connection-status.is-poor,.room-connection-status.is-offline{border-color:#633443;background:#281820}
.room-connection-status.is-poor .room-connection-icon,.room-connection-status.is-offline .room-connection-icon{color:#fc8ea2;background:#4b2433}
.room-connection-status.is-poor .room-connection-text strong,.room-connection-status.is-offline .room-connection-text strong{color:#ffb7c4}
.room-connection-menu[hidden]{display:none!important}
.room-connection-menu{
  position:fixed;z-index:1090;width:min(290px,calc(100vw - 16px));
  padding:14px;background:#151e2d;border:1px solid #344760;border-radius:14px;
  box-shadow:0 18px 45px rgba(0,0,0,.55);color:#eaf1ff;
}
.room-connection-menu-heading{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:.89rem;font-weight:760}
.room-connection-menu-heading .lucide-icon{color:#86abf0}
.room-connection-menu-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid #29394e;font-size:.8rem}
.room-connection-menu-row span{color:#9aafcc}
.room-connection-menu-row strong{font-weight:720;font-variant-numeric:tabular-nums;text-align:right}
.room-connection-menu p{color:#8398b6;font-size:.73rem;line-height:1.5;margin:11px 0 0}
@media (max-width:1100px){.room-overview-actions{min-width:0}}
@media (max-width:620px){.room-overview-actions{align-items:stretch}.room-connection-wrap{max-width:none}}

/* v1.3.0: caixa de mensagem e seletor de emojis, inspirados no Discord. */
.room-chat-column .chat-compose-form{
  display:block;
  padding:10px 9px 5px;
  margin:0;
}
.chat-compose-box{
  display:flex;
  align-items:flex-end;
  gap:6px;
  width:100%;
  min-width:0;
  background:#151e2c;
  border:1px solid #31405b;
  border-radius:13px;
  padding:6px;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.chat-compose-box:focus-within{border-color:#6388ca;box-shadow:0 0 0 3px rgba(85,122,194,.12);background:#172131}
.room-chat-column .chat-compose-box .chat-input{
  display:block;
  flex:1 1 auto;
  min-width:0;
  border:0;
  outline:0;
  box-shadow:none;
  border-radius:7px;
  background:transparent;
  min-height:37px;
  max-height:112px;
  height:42px;
  resize:none;
  padding:10px 6px 8px 8px;
  color:#eef4ff;
  font-size:.87rem;
  line-height:1.45;
  scrollbar-width:thin;
}
.room-chat-column .chat-compose-box .chat-input:focus{
  background:transparent;
  border:0;
  box-shadow:none;
  outline:none;
}
.room-chat-column .chat-compose-box .chat-input::placeholder{color:#8698b3}
.chat-compose-actions{flex:0 0 auto;display:flex;align-items:center;gap:3px;padding:1px 0 1px}
.chat-emoji-trigger{
  display:grid;
  place-items:center;
  flex:0 0 37px;
  width:37px;
  height:37px;
  border:0;
  border-radius:10px;
  color:#9aafd0;
  background:transparent;
  transition:color .15s ease,background .15s ease;
}
.chat-emoji-trigger:hover:not(:disabled),.chat-emoji-trigger.is-open{color:#f2d27b;background:#27364f}
.chat-emoji-trigger:disabled{opacity:.45;cursor:not-allowed}
.chat-emoji-trigger:focus-visible,.chat-emoji-close:focus-visible,.chat-emoji-categories button:focus-visible,.chat-emoji-item:focus-visible{outline:2px solid #9fb9ff;outline-offset:2px}
.room-chat-column .chat-compose-box .chat-send{
  flex:0 0 37px;
  width:37px;
  height:37px;
  min-height:37px;
  padding:0;
  border:0;
  border-radius:10px;
  display:grid;
  place-items:center;
}
.room-chat-column .chat-compose-box .chat-send:disabled{background:#253451;color:#8194b4;opacity:.72}
.room-chat-column .chat-tip{padding:1px 13px 9px;color:#8095b5;font-size:.69rem}
.chat-emoji-picker[hidden]{display:none!important}
.chat-emoji-picker{
  position:fixed;
  z-index:1090;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#131b29;
  border:1px solid #34435c;
  border-radius:16px;
  box-shadow:0 22px 60px rgba(0,0,0,.65),0 2px 14px rgba(0,0,0,.24);
  color:#eaf0ff;
  height:min(472px,calc(100dvh - 24px));
}
.chat-emoji-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 15px 10px;
  gap:12px;
}
.chat-emoji-heading>div{display:flex;flex-direction:column;gap:3px}
.chat-emoji-heading strong{font-size:1.02rem;font-weight:790;letter-spacing:-.025em}
.chat-emoji-overline{color:#86a7e4;font-size:.6rem;font-weight:780;letter-spacing:.13em}
.chat-emoji-close{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:9px;background:transparent;color:#9baeca}
.chat-emoji-close:hover{background:#243148;color:#eef4ff}
.chat-emoji-search-wrap{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 14px 11px;
  background:#0d1420;
  border:1px solid #30405a;
  border-radius:10px;
  height:42px;
  min-height:42px;
  padding:0 11px;
  color:#889fc1;
}
.chat-emoji-search-wrap:focus-within{border-color:#6689c9}
.chat-emoji-search-wrap input{
  width:100%;min-width:0;flex:1;border:0;outline:0;background:transparent;
  color:#ecf2ff;font-size:.83rem;
}
.chat-emoji-search-wrap input::placeholder{color:#8293ac}
.chat-emoji-search-wrap input::-webkit-search-cancel-button{cursor:pointer}
.chat-emoji-search-shortcut{font-size:.58rem;font-weight:740;color:#788da9;border:1px solid #304058;border-radius:5px;padding:3px 5px}
.chat-emoji-categories{
  display:flex;
  gap:2px;
  padding:0 10px 7px;
  margin:0 10px;
  overflow-x:auto;
  scrollbar-width:thin;
  scrollbar-color:#435575 transparent;
  border-bottom:1px solid #29364c;
  flex:0 0 auto;
}
.chat-emoji-categories button{
  display:grid;place-items:center;
  width:35px;height:35px;min-width:35px;
  background:transparent;border:0;border-radius:9px;
  color:#98a9c5;transition:background .15s ease,color .15s ease;
}
.chat-emoji-categories button:hover{color:#e1eaff;background:#243147}
.chat-emoji-categories button[aria-selected="true"]{background:#283e61;color:#b5ceff}
.chat-emoji-results{flex:1 1 auto;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#445576 transparent;overscroll-behavior:contain;padding:11px 11px 8px}
.chat-emoji-results-header{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#cfddf5;padding:0 6px 9px}
.chat-emoji-results-header strong{font-size:.8rem;font-weight:740}
.chat-emoji-results-header small{font-size:.67rem;color:#8397b9}
.chat-emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px}
.chat-emoji-item{
  display:grid;place-items:center;
  min-width:0;aspect-ratio:1;
  border:1px solid transparent;border-radius:9px;background:transparent;
  padding:0;color:inherit;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif;
  font-size:clamp(1.35rem,2.4vw,1.66rem);line-height:1;
  transition:background .12s ease,transform .12s ease;
}
.chat-emoji-item:hover,.chat-emoji-item:focus-visible{background:#293956;transform:scale(1.05)}
.chat-emoji-empty{color:#9aaecb;font-size:.81rem;line-height:1.5;text-align:center;padding:22px 10px}
.chat-emoji-empty[hidden]{display:none!important}
.chat-emoji-footer{display:flex;align-items:center;gap:12px;flex:0 0 auto;min-height:53px;padding:10px 15px;border-top:1px solid #29364c;background:#101825}
#chatEmojiPreview{font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif;font-size:1.5rem;line-height:1}
#chatEmojiPreviewName{font-size:.76rem;font-weight:680;color:#c6d5ef;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:520px){
  .chat-emoji-picker{border-radius:14px}
  .chat-emoji-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
  .chat-emoji-item{font-size:1.45rem}
}

/* TelaFlux v1.3.1 | Qualidade e desempenho do compartilhamento */
.stream-setup-modal .modal-dialog{max-width:min(540px,calc(100vw - 22px))}
.stream-setup-modal .modal-content{background:#111925;color:#eff5ff;border:1px solid #30415a;border-radius:20px;box-shadow:0 25px 72px rgba(0,0,0,.52)}
.stream-setup-modal .modal-header{padding:22px 24px 5px}
.stream-setup-modal .modal-title{font-size:1.65rem;font-weight:780;letter-spacing:-.04em}
.stream-setup-eyebrow{color:#9db8ff;font-size:.64rem;font-weight:800;letter-spacing:.13em;margin-bottom:4px}
.stream-setup-modal .modal-body{padding:17px 24px 24px}
.stream-setup-description{color:#adbed6;font-size:.88rem;line-height:1.55;margin-bottom:20px}
.stream-setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.stream-setup-modal .form-select{min-height:46px;border:1px solid #30415a;background-color:#0c1422;color:#f0f5ff;border-radius:11px;font-size:.89rem}
.stream-setup-modal .form-select:focus{border-color:#6d8dff;box-shadow:0 0 0 .18rem rgba(109,141,255,.2)}
.stream-setup-modal .form-label{font-size:.84rem;font-weight:700;color:#dce8fd;margin-bottom:8px}
.stream-setup-adaptive{display:flex;align-items:center;gap:14px;justify-content:space-between;background:#101d31;border:1px solid #2d4569;border-radius:12px;padding:15px;cursor:pointer}
.stream-setup-adaptive span{display:flex;flex-direction:column;gap:5px}
.stream-setup-adaptive strong{color:#e3edff;font-size:.89rem}
.stream-setup-adaptive small{color:#9aacc8;font-size:.78rem;line-height:1.5}
.stream-setup-adaptive input{flex:0 0 auto;width:22px;height:22px;margin:0;cursor:pointer}
.stream-setup-preview{padding:12px 14px;border:1px solid #2b3a52;background:#0d1523;border-radius:11px;color:#bfd3f9;font-size:.84rem}
.stream-setup-hint{font-size:.76rem;color:#8599b6;line-height:1.55;margin:13px 0 20px}
.stream-setup-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}
@media(max-width:520px){.stream-setup-grid{grid-template-columns:1fr}.stream-setup-modal .modal-body{padding:14px 18px 20px}.stream-setup-modal .modal-header{padding:19px 18px 5px}.stream-setup-actions .btn{flex:1}}

/* TelaFlux v1.3.4 | Dashboard com introdução corrigida, abas de salas e área social para amigos/DMs. */
:root{scrollbar-color:#354766 #0b111b;scrollbar-width:thin}
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-track{background:#0b111b;border-radius:20px}
*::-webkit-scrollbar-thumb{background:#354766;border:2px solid #0b111b;border-radius:20px}
*::-webkit-scrollbar-thumb:hover{background:#5876a6}
*::-webkit-scrollbar-corner{background:#0b111b}
html{scroll-behavior:smooth}

body:has(#dashboardPage){background:#090d15}
body:has(#dashboardPage) .topbar{background:#090e16;border-bottom:1px solid #202a3a}
body:has(#dashboardPage) .app-footer{display:none}

.dashboard-shell{
  width:100%;
  flex:1 0 auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:clamp(22px,4vh,44px) clamp(16px,2.2vw,36px) 32px;
  min-height:calc(100dvh - 144px);
}
.dashboard-alert{width:min(100%,1350px);margin:0 auto 18px;display:flex;align-items:center;gap:12px}
.dashboard-columns{
  width:min(100%,1390px);
  display:grid;
  grid-template-columns:minmax(235px,.93fr) minmax(400px,1.6fr) minmax(255px,1fr);
  gap:18px;
  margin:auto;
  align-items:stretch;
}
.dashboard-panel{
  min-width:0;
  border:1px solid #273247;
  border-radius:21px;
  background:#111824;
  box-shadow:0 18px 45px rgba(0,0,0,.16);
  overflow:hidden;
}
.dashboard-panel-kicker{color:#8caef0;font-size:.65rem;font-weight:800;letter-spacing:.14em}
.dashboard-recent{display:flex;flex-direction:column;min-height:605px}
.dashboard-panel-heading{padding:26px 21px 17px;border-bottom:1px solid #243047}
.dashboard-panel-heading h2{display:flex;align-items:center;gap:9px;font-weight:800;font-size:1.17rem;letter-spacing:-.025em;margin:12px 0 8px}
.dashboard-panel-heading h2 .lucide-icon{color:#9dbaff}
.dashboard-panel-heading p{font-size:.83rem;line-height:1.5;color:#93a4c0;margin:0}
.dashboard-recent-list{padding:11px;flex:1;min-height:0;max-height:480px;overflow:auto}
.dashboard-recent-item{
  display:flex;align-items:center;gap:10px;min-width:0;
  padding:12px 10px;border-radius:12px;
  border:1px solid transparent;color:#f3f7ff;
  transition:background .16s,border-color .16s
}
.dashboard-recent-item:hover,.dashboard-recent-item:focus-visible{background:#1c283b;border-color:#2f4360;color:#fff}
.dashboard-recent-item>.lucide-icon{color:#6f91c6;flex-shrink:0}
.dashboard-recent-symbol,.dashboard-room-icon{
  background:#17243a;border:1px solid #304563;border-radius:12px;color:#a6c6ff;
  display:grid;place-items:center;flex:0 0 41px;width:41px;height:41px
}
.dashboard-recent-text,.dashboard-room-summary{flex:1;min-width:0}
.dashboard-recent-text strong,.dashboard-recent-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-recent-text strong{font-size:.89rem;font-weight:750}
.dashboard-recent-text small{font-size:.76rem;color:#94a7c4;margin-top:2px}
.dashboard-panel-bottom-link{
  display:flex;align-items:center;justify-content:center;gap:9px;
  margin-top:auto;padding:17px 16px;border-top:1px solid #243047;
  font-size:.86rem;font-weight:750;color:#bed1ff;background:#111b2a
}
.dashboard-panel-bottom-link:hover{background:#1a2940;color:#fff}
.dashboard-panel-bottom-link>.lucide-icon:last-child{margin-left:auto}
.dashboard-quiet-state{padding:22px 12px;display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:center;text-align:center;color:#c7d4eb;min-height:170px}
.dashboard-quiet-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid #32455e;border-radius:15px;color:#8da9d5;background:#152134}
.dashboard-quiet-state strong{font-size:.85rem}
.dashboard-quiet-state small{font-size:.78rem;color:#8b9bb5;line-height:1.5}
.dashboard-center{padding:clamp(18px,2vw,24px);display:flex;flex-direction:column;gap:0}
.dashboard-center-intro{padding-bottom:18px;border-bottom:1px solid #263448}
.dashboard-intro-symbol{display:grid;place-items:center;width:44px;height:44px;margin-bottom:14px;border:1px solid #354f78;background:#15263d;color:#afcafa;border-radius:13px}
.dashboard-center-intro h1{font-size:clamp(1.58rem,2.1vw,2.12rem);font-weight:840;letter-spacing:-.045em;line-height:1.1;margin:8px 0 10px;color:#f5f8ff}
.dashboard-center-intro h1 span{color:#91b3ff}
.dashboard-center-intro>p{font-size:.88rem;color:#a6b6d0;line-height:1.55;margin:0;max-width:470px}
.dashboard-hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.dashboard-hero-actions .btn{font-size:.8rem;padding:9px 12px;min-height:40px}

.dashboard-center-intro-compact{display:flex;flex-direction:column;align-items:flex-start;gap:0}
.dashboard-center-intro-compact .dashboard-intro-symbol{margin-bottom:12px}
.dashboard-center-intro-compact .dashboard-panel-kicker,.dashboard-center-intro-compact h1,.dashboard-center-intro-compact>p,.dashboard-center-intro-compact .dashboard-hero-actions{width:100%}
.dashboard-room-actions{padding-top:14px}
.dashboard-block-heading-tight{margin-bottom:12px}
.dashboard-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.dashboard-tabs .nav-link{display:inline-flex;align-items:center;gap:8px;border:1px solid #30445f;border-radius:12px;background:#131d2b;color:#aebfe0;font-size:.82rem;font-weight:700;padding:9px 13px}
.dashboard-tabs .nav-link:hover{border-color:#446189;color:#fff;background:#172438}
.dashboard-tabs .nav-link.active{background:linear-gradient(180deg,#4686f7,#396fcb);border-color:#4e84e8;color:#fff;box-shadow:0 10px 25px rgba(45,95,185,.22)}
.dashboard-tab-content{border:1px solid #27384f;border-radius:16px;background:#0f1622;padding:15px}
.dashboard-tab-panel{display:flex;flex-direction:column;gap:10px}
.dashboard-tab-copy h3{font-size:1rem;font-weight:800;letter-spacing:-.02em;margin:4px 0 5px}
.dashboard-tab-copy p{margin:0;color:#97a8c4;font-size:.82rem;line-height:1.5}
.dashboard-room-actions .dashboard-action-form{margin-top:8px}
.dashboard-room-actions .dashboard-action-form .btn{min-height:42px}
.dashboard-create,.dashboard-join{padding:22px 0 0}
.dashboard-join{padding-top:22px;margin-top:23px;border-top:1px solid #263448}
.dashboard-block-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.dashboard-block-heading h2{font-size:1.18rem;font-weight:800;letter-spacing:-.026em;margin:6px 0 0}
.dashboard-block-icon{width:36px;height:36px;display:grid;place-items:center;border:1px solid #354863;border-radius:11px;color:#a7c4fc;background:#172538}
.dashboard-action-form .form-label{font-size:.8rem;color:#c2d1ec;margin-bottom:7px}
.dashboard-action-form .form-control{height:44px;min-height:44px}
.dashboard-form-info{font-size:.75rem;display:flex;gap:7px;align-items:center;color:#89a4ca;margin:8px 0 12px}
.dashboard-join-fields{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}
.dashboard-join-fields .btn{padding:9px 15px;white-space:nowrap}
.dashboard-all-rooms{padding:16px 0 0;margin-top:17px;border-top:1px solid #263448;scroll-margin-top:95px}
.dashboard-block-heading-inline{margin-bottom:13px}
.dashboard-block-heading-inline h2{display:flex;align-items:center;gap:9px;margin:0}
.dashboard-block-heading-inline .lucide-icon{color:#a6c5fb}
.dashboard-count{background:#1a2a41;border:1px solid #2e4162;border-radius:999px;color:#b5caf4;padding:3px 9px;font-size:.74rem;white-space:nowrap}
.dashboard-room-list{display:flex;flex-direction:column;gap:8px;max-height:190px;overflow:auto;padding:1px 5px 2px 0}
.dashboard-room-row{display:flex;gap:10px;align-items:center;background:#0d1420;border:1px solid #263449;border-radius:12px;padding:10px 11px;min-width:0}
.dashboard-room-row:hover{border-color:#3a537a}
.dashboard-room-icon{flex-basis:37px;width:37px;height:37px;border-radius:10px}
.dashboard-room-summary h3{font-size:.87rem;font-weight:760;margin:0 0 3px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dashboard-room-summary span{font-size:.73rem;color:#92a4bf;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-room-separator{display:inline!important;color:#5b7090!important}
.dashboard-room-open{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border-radius:10px;border:1px solid #30486d;background:#17243b;color:#adc8ff}
.dashboard-room-open:hover{background:#2c4673;color:#fff}
.dashboard-muted-center{font-size:.82rem;color:#91a4c3;text-align:center;margin:7px 0}
.dashboard-social{min-height:605px;display:flex;flex-direction:column}
.dashboard-social-section{padding:23px 17px 16px;min-width:0;display:flex;flex-direction:column;flex:1;min-height:0}
.dashboard-social-section+.dashboard-social-section{border-top:1px solid #27334a}
.dashboard-social-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.dashboard-social-heading h2{display:flex;align-items:center;gap:9px;margin:0;font-size:1.1rem;font-weight:790;letter-spacing:-.027em}
.dashboard-social-heading .lucide-icon{color:#a4c3fb}
.dashboard-sidebar-desc{font-size:.79rem;color:#93a5c3;margin:8px 0 13px;line-height:1.45}
.dashboard-friend-form{margin:0 0 13px}.dashboard-friend-fields{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px;align-items:center}.dashboard-friend-prefix{width:34px;height:44px;display:grid;place-items:center;border:1px solid #304762;border-radius:12px;background:#131d2b;color:#a6c1ef;font-weight:800}.dashboard-friend-fields .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.dashboard-friend-card{cursor:default}.dashboard-friend-card:hover{background:#151e2e;border-color:transparent;color:#e9f1ff}.dashboard-friend-badge{flex:0 0 auto;padding:4px 8px;border-radius:999px;border:1px solid #2e4a6e;background:#17273d;color:#a9c4f6;font-size:.69rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em}.dashboard-message-avatar img,.dashboard-person-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.dashboard-message-list,.dashboard-people-list{display:flex;flex-direction:column;gap:7px;overflow:auto;max-height:260px;min-height:0;padding-right:3px}
.dashboard-message-item,.dashboard-person{display:flex;align-items:center;min-width:0;gap:10px;border:1px solid transparent;border-radius:12px;padding:10px;color:#e9f1ff;background:#151e2e}
.dashboard-message-item:hover,.dashboard-person:hover{background:#202e43;border-color:#364d72;color:#fff}
.dashboard-message-avatar,.dashboard-person-avatar{flex-shrink:0;display:grid;place-items:center;width:37px;height:37px;background:#23354f;color:#c2d7ff;border:1px solid #3a5171;border-radius:50%;font-size:.77rem;font-weight:770;overflow:hidden}
.dashboard-message-text,.dashboard-person>span:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.dashboard-message-text>strong{font-size:.84rem;display:flex;align-items:center;gap:5px;min-width:0}
.dashboard-message-text>strong>small{color:#91abd0;font-size:.7rem;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-message-text>span{color:#b7c7df;font-size:.79rem;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.dashboard-person strong{font-size:.84rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-person small{font-size:.75rem;color:#9daeca;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-person>.lucide-icon{flex:0 0 auto;color:#829bc0}
.dashboard-quiet-state-small{min-height:120px;padding:14px 6px}
.dashboard-quiet-state-small .dashboard-quiet-icon{width:42px;height:42px}
.dashboard-footer{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:16px clamp(20px,3.2vw,60px);
  background:#0c121d;border-top:1px solid #233148;color:#92a8cb;font-size:.78rem
}
.dashboard-footer-center{display:flex;align-items:center;gap:8px}
.dashboard-footer-center .lucide-icon{color:#7d9bc8}

@media(max-width:1130px){
  .dashboard-columns{grid-template-columns:minmax(215px,1fr) minmax(370px,1.7fr)}
  .dashboard-social{grid-column:1 / -1;min-height:0;display:grid;grid-template-columns:1fr 1fr}
  .dashboard-social-section+.dashboard-social-section{border-top:0;border-left:1px solid #27334a}
  .dashboard-recent{min-height:590px}
  .dashboard-message-list,.dashboard-people-list{max-height:230px}
}
@media(max-width:700px){
  .dashboard-shell{justify-content:start;min-height:auto;padding:18px 12px 24px}
  .dashboard-columns{grid-template-columns:minmax(0,1fr);gap:12px}
  .dashboard-center{grid-row:1;padding:18px 16px}
  .dashboard-recent{grid-row:2;min-height:0}
  .dashboard-social{grid-column:auto;grid-row:3;display:flex;flex-direction:column}
  .dashboard-social-section+.dashboard-social-section{border-top:1px solid #27334a;border-left:0}
  .dashboard-recent-list{max-height:255px}
  .dashboard-center-intro-compact .dashboard-intro-symbol{margin-bottom:12px}
  .dashboard-tabs .nav-link{width:100%;justify-content:center}
  .dashboard-join-fields,.dashboard-friend-fields{grid-template-columns:1fr}
  .dashboard-friend-prefix{display:none}
  .dashboard-join-fields .btn,.dashboard-friend-fields .btn,.dashboard-hero-actions .btn{width:100%;flex:1 1 100%}
  .dashboard-message-list,.dashboard-people-list{max-height:230px}
  .dashboard-footer{gap:6px;flex-direction:column;padding:16px}
}
@media(max-width:380px){
  .dashboard-join-fields,.dashboard-friend-fields{grid-template-columns:1fr}
  .dashboard-join-fields .btn,.dashboard-friend-fields .btn{width:100%}
  .dashboard-center-intro h1{font-size:1.75rem}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* TelaFlux v1.3.5: solicitações de amizade (modal, avisos e ações) */
.dashboard-friends-heading-actions{display:inline-flex;align-items:center;gap:8px}
.dashboard-add-friend-trigger{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #354d70;background:#15243b;color:#bad0f7;border-radius:10px;padding:0;cursor:pointer;transition:background .15s,border-color .15s,color .15s}.dashboard-add-friend-trigger:hover,.dashboard-add-friend-trigger:focus-visible{border-color:#628cf2;background:#263f69;color:#fff;outline-offset:2px}.dashboard-friends-heading-actions .dashboard-count{flex:0 0 auto}.dashboard-people>.dashboard-people-list{margin-top:14px}
.dashboard-notification-count{display:inline-flex;align-items:center;gap:6px;border-color:#4162a3;color:#d3e3ff}
.dashboard-request-group{display:flex;flex-direction:column;gap:9px;margin:0 0 15px;padding:12px;border:1px solid #30425d;border-radius:13px;background:#101a2a}
.dashboard-request-heading,.dashboard-friends-list-label{display:flex;align-items:center;gap:8px;color:#d7e5ff;font-size:.84rem;font-weight:760}
.dashboard-request-heading .lucide-icon,.dashboard-friends-list-label .lucide-icon{color:#99baf3}
.dashboard-request-heading .dashboard-count{margin-left:auto}
.dashboard-request-item{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px 10px;align-items:center;border:1px solid #283a56;border-radius:12px;padding:10px;background:#152237;min-width:0}
.dashboard-request-item>.dashboard-person-avatar{width:36px;height:36px}
.dashboard-request-person{display:flex;flex-direction:column;gap:2px;min-width:0}
.dashboard-request-person strong{font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-request-person small{font-size:.72rem;color:#9db3d7;line-height:1.4}
.dashboard-request-controls{grid-column:1/-1;display:flex;gap:7px;justify-content:stretch}
.dashboard-request-controls form{flex:1;min-width:0}
.dashboard-request-controls .btn{width:100%;display:inline-flex;gap:5px;justify-content:center;align-items:center;font-size:.75rem}
.dashboard-request-cancel{grid-column:1/-1;justify-self:end}
.dashboard-request-cancel button{min-height:30px}
.dashboard-friends-list-label{margin:3px 0 10px}
.friend-request-modal .modal-content{border:1px solid #2d405f;border-radius:22px;background:#111a29;color:#f0f5ff;box-shadow:0 25px 90px #0007}
.friend-request-modal .modal-header,.friend-request-modal .modal-footer{padding:20px 24px}
.friend-request-modal .modal-body{padding:20px 24px}
.friend-request-modal .modal-title{font-weight:800;letter-spacing:-.04em}
.friend-request-modal-description{color:#b0c2df;font-size:.92rem;line-height:1.65}
.friend-request-modal .form-label{font-weight:660}
.dashboard-friend-modal-field{display:flex;align-items:center;border:1px solid #304362;border-radius:11px;background:#0b1220;overflow:hidden}
.dashboard-friend-modal-field span{padding:12px 13px;color:#9bc3ff;font-weight:780;background:#17243c}
.dashboard-friend-modal-field input{border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;min-width:0}
.friend-request-modal-hint{display:block;margin-top:9px;color:#90a9cf;font-size:.77rem;line-height:1.5}
.friend-request-modal .modal-footer .btn{min-height:42px;display:inline-flex;align-items:center;gap:8px}
.friend-notification-area{position:fixed;bottom:22px;right:22px;z-index:1200;display:flex;flex-direction:column;gap:8px;max-width:min(420px,calc(100vw - 24px))}
.friend-notification-toast,.room-friend-toast{display:flex;gap:12px;align-items:center;padding:13px 14px;border-radius:15px;border:1px solid #41618f;background:#13233c;color:#f3f7ff;box-shadow:0 12px 36px #0007;font-size:.84rem}
.friend-notification-text{flex:1;min-width:0}
.friend-notification-symbol{font-size:1.1rem}
.friend-notification-close{flex:0 0 auto;border:0;background:none;color:#b4c8e8;font-size:22px;line-height:1;padding:2px 5px;cursor:pointer}
.room-friend-toast{position:fixed;bottom:20px;right:20px;z-index:1200;max-width:min(370px,calc(100vw - 30px));display:grid;grid-template-columns:1fr auto;gap:5px 10px}
.room-friend-toast strong{grid-column:1;font-size:.9rem}
.room-friend-toast span{grid-column:1;color:#a8bfdf;font-size:.8rem}
.room-friend-toast a{grid-column:1;justify-self:start}
.room-friend-toast button{grid-column:2;grid-row:1}
@media(max-width:500px){.friend-request-modal .modal-header,.friend-request-modal .modal-footer,.friend-request-modal .modal-body{padding:16px}.friend-notification-area{bottom:12px;right:12px;left:12px;max-width:unset}.dashboard-request-controls{flex-wrap:wrap}}

/* TelaFlux v1.3.6 · Mensagens diretas */
.dashboard-friend-message{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;border:1px solid #355586;border-radius:10px;background:#1b304c;color:#b4d1ff;padding:8px 9px;font-size:.73rem;font-weight:780;white-space:nowrap;transition:background .15s,border-color .15s}
.dashboard-friend-message:hover,.dashboard-friend-message:focus-visible{background:#2d4f83;border-color:#6485bf;color:#fff}
.dm-shell{display:grid;grid-template-columns:minmax(240px,285px) minmax(0,1fr);margin:14px auto 18px;max-width:1560px;width:calc(100% - 32px);height:calc(100dvh - 114px);min-height:450px;max-height:1100px;background:#0b111c;border:1px solid #28354a;border-radius:18px;overflow:hidden;box-shadow:0 18px 55px #0004}
.dm-sidebar{display:flex;flex-direction:column;min-height:0;background:#111927;border-right:1px solid #2a3850}
.dm-sidebar-head{padding:18px 15px 13px;border-bottom:1px solid #27364c}
.dm-sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:17px}
.dm-sidebar-heading h1{display:flex;align-items:center;gap:9px;font-size:1rem;font-weight:820;margin:0;letter-spacing:-.025em;color:#f3f7ff}
.dm-sidebar-heading h1 .lucide-icon{color:#8cb5ff;flex:0 0 auto}
.dm-badge{display:grid;place-items:center;min-width:26px;height:26px;padding:0 6px;border-radius:999px;border:1px solid #344a6b;background:#192c45;color:#b7ceef;font-size:.73rem}
.dm-search{display:flex;align-items:center;gap:9px;padding:9px 11px;border:1px solid #2c3b52;border-radius:10px;background:#0d1522;color:#8fa9ce}
.dm-search input{background:transparent;border:0;outline:0;color:#f5f8ff;flex:1;min-width:0;font-size:.84rem}
.dm-search input::placeholder{color:#758bad}
.dm-friends{display:flex;flex-direction:column;gap:5px;flex:1;min-height:0;overflow:auto;padding:11px}
.dm-friend{display:flex;align-items:center;gap:11px;padding:11px 10px;border:1px solid transparent;border-radius:12px;color:#dce8fa;min-width:0;transition:background .14s,border-color .14s}
.dm-friend:hover,.dm-friend:focus-visible{background:#1c2c45;border-color:#334b70;color:#fff}
.dm-friend.is-selected{background:#203654;border-color:#3e5e8e;color:#fff}
.dm-friend[hidden]{display:none}
.dm-friend-text{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.dm-friend-text strong{font-size:.88rem;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-friend-text small{font-size:.77rem;color:#95aac9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-unread-dot{width:8px;height:8px;border-radius:50%;background:#6d8dff;flex:0 0 auto}
.dm-unread-dot[hidden]{display:none}
.dm-avatar{display:grid;place-items:center;flex:0 0 auto;border-radius:50%;overflow:hidden;background:#223958;color:#d9e7ff;border:1px solid #3e5b82;font-size:.71rem;font-weight:780}
.dm-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.dm-avatar-medium{width:42px;height:42px}
.dm-avatar-small{width:35px;height:35px}
.dm-sidebar-empty{padding:32px 12px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;color:#a8bad4}
.dm-sidebar-empty strong{color:#edf3fc;font-size:.9rem}
.dm-sidebar-empty p{font-size:.78rem;line-height:1.5;margin:0}
.dm-sidebar-bottom{display:flex;align-items:center;gap:10px;border-top:1px solid #27384c;padding:14px 16px;color:#b2cafd;font-size:.82rem;font-weight:680}
.dm-sidebar-bottom>.lucide-icon:last-child{margin-left:auto}
.dm-sidebar-bottom:hover{color:#fff;background:#1a2941}
.dm-self{display:flex;align-items:center;gap:10px;padding:12px 15px;border-top:1px solid #26364d;background:#0e1725}
.dm-self>span:last-child{display:flex;min-width:0;flex-direction:column;gap:4px}
.dm-self strong{font-size:.86rem;color:#f5f9ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-self small{font-size:.74rem;color:#98acc9}
.dm-conversation{display:flex;min-width:0;min-height:0;flex-direction:column;background:#0a101a}
.dm-conversation-head{display:flex;align-items:center;gap:12px;padding:12px clamp(15px,2vw,25px);min-height:73px;border-bottom:1px solid #2a3850;background:#101824}
.dm-conversation-person{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.dm-conversation-person strong{font-size:1rem;font-weight:790;color:#f4f8ff}
.dm-conversation-person small{color:#90a7c9;font-size:.78rem}
.dm-header-label{display:inline-flex;align-items:center;gap:7px;color:#95afd4;border:1px solid #263b5a;background:#131f31;border-radius:10px;padding:8px 10px;font-size:.74rem}
.dm-mobile-back{display:none;color:#bdceef}
.dm-message-feed{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:20px;padding:24px clamp(14px,3vw,36px) 30px;overscroll-behavior:contain}
.dm-message{display:flex;align-items:flex-end;gap:9px;max-width:100%;min-width:0}
.dm-message.is-own{justify-content:flex-end}
.dm-message-bubble{display:flex;flex-direction:column;gap:7px;max-width:min(74%,750px);min-width:0;padding:12px 15px;border-radius:15px 15px 15px 5px;border:1px solid #293b56;background:#182638;color:#ecf3ff;box-shadow:0 5px 13px #0002}
.dm-message.is-own .dm-message-bubble{background:#203963;border-color:#36578a;border-radius:15px 15px 5px 15px}
.dm-message-by{font-size:.78rem;color:#b1caee;font-weight:750;display:flex;align-items:baseline;gap:9px}
.dm-message-by time{font-size:.67rem;color:#90a5c4;font-weight:500}
.dm-message-bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.89rem;line-height:1.6}
.dm-empty-message,.dm-no-selection{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;margin:auto;color:#a2b6d2;padding:24px}
.dm-no-selection{height:100%}
.dm-empty-symbol{display:grid;place-items:center;width:66px;height:66px;border:1px solid #334d74;background:#172841;color:#b1cdff;border-radius:20px}
.dm-empty-message h2,.dm-no-selection h2{font-size:1.3rem;color:#f4f8ff;margin:0;font-weight:800}
.dm-empty-message p,.dm-no-selection p{margin:0;font-size:.88rem;line-height:1.6}
.dm-composer{padding:14px clamp(14px,2.5vw,30px) 10px;border-top:1px solid #27364b;background:#101826}
.dm-composer-box{display:flex;align-items:end;gap:11px;border:1px solid #31445f;border-radius:15px;background:#0b1321;padding:11px 12px;transition:border-color .15s}
.dm-composer-box:focus-within{border-color:#628cff}
.dm-composer-box textarea{width:100%;resize:vertical;max-height:180px;min-height:46px;color:#eaf2ff;font-size:.89rem;line-height:1.55;background:transparent;border:0;outline:0;padding:7px 4px}
.dm-composer-box textarea::placeholder{color:#7087a9}
.dm-send{width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;background:#397ff1;color:#fff;border:0;border-radius:12px}
.dm-send:hover{background:#5a95f6}
.dm-send:disabled{opacity:.55;cursor:wait}
.dm-composer-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:7px 5px 0;color:#778cac;font-size:.71rem}
#dmComposerStatus{color:#a8c3f4}
@media(max-width:760px){
  .dm-shell{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 92px);min-height:420px;width:calc(100% - 18px);margin:9px auto}
  .dm-sidebar{display:none}
  .dm-mobile-back{display:inline-flex}
  .dm-header-label{display:none}
  .dm-message-bubble{max-width:calc(100% - 48px)}
  #dmPage:not([data-friend-id=""]) .dm-sidebar{display:flex}
  #dmPage:not([data-friend-id=""]) .dm-conversation{display:none}
}

/* TelaFlux v1.3.7: central tabs for creating, joining and listing rooms. */
.dashboard-center-intro-compact{padding-bottom:17px}
.dashboard-center-intro-compact>p{margin-bottom:0}
.dashboard-room-actions{padding-top:16px}
.dashboard-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:12px}
.dashboard-tabs .nav-item{min-width:0}
.dashboard-tabs .nav-link{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:43px;padding:9px 7px;text-align:center;white-space:nowrap;font-size:.75rem}
.dashboard-tabs .nav-link>.lucide-icon{flex:0 0 auto}
.dashboard-tab-count{border-radius:999px;background:#152640;border:1px solid #36527c;padding:1px 6px;font-size:.67rem;color:#bcd2ff;line-height:1.2}
.dashboard-tabs .nav-link.active .dashboard-tab-count{background:rgba(15,42,90,.42);border-color:rgba(255,255,255,.28);color:white}
.dashboard-all-rooms-tab{padding:0;margin:0;border-top:0;scroll-margin-top:0}
.dashboard-all-rooms-tab .dashboard-block-heading{margin-bottom:14px}
.dashboard-all-rooms-tab .dashboard-room-list{max-height:310px}
@media(max-width:700px){
 .dashboard-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .dashboard-tabs .nav-link{min-height:42px;gap:5px;font-size:.72rem;padding:8px 5px}
}
@media(max-width:420px){
 .dashboard-tabs .nav-link{white-space:normal;line-height:1.2;min-height:49px}
 .dashboard-tab-count{display:none}
}


/* TelaFlux v1.3.9 · refinamento visual da seção Amigos */
.dashboard-social-heading-friends{margin-bottom:4px}
.dashboard-people-list-compact{gap:10px;padding-top:2px}
.dashboard-quiet-state-compact{min-height:140px;padding:18px 10px}
.dashboard-friend-card{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 13px;border-radius:15px;background:linear-gradient(180deg,#162235,#121b2b);
  border:1px solid #243754;box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
  transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.dashboard-friend-card:hover{
  transform:translateY(-1px);background:linear-gradient(180deg,#1a2a43,#152136);
  border-color:#3d5f91;box-shadow:0 10px 26px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.03);
}
.dashboard-friend-main{display:flex;align-items:center;gap:11px;min-width:0;flex:1}
.dashboard-friend-avatar{width:40px;height:40px;box-shadow:0 0 0 2px rgba(93,135,224,.12)}
.dashboard-friend-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.dashboard-friend-copy strong{font-size:.95rem;font-weight:790;letter-spacing:-.02em;color:#f2f7ff}
.dashboard-friend-handle{display:flex;align-items:center;gap:6px;color:#8eaad1;font-size:.8rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-friend-handle::before{content:'';width:6px;height:6px;border-radius:50%;background:#61d88e;box-shadow:0 0 0 4px rgba(97,216,142,.12);flex:0 0 auto}
.dashboard-friend-message{
  min-height:40px;padding:8px 13px;border-radius:12px;background:linear-gradient(180deg,#21395b,#1b304c);
  border-color:#45679a;font-size:.78rem;box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.dashboard-friend-message .lucide-icon{flex:0 0 auto}
.dashboard-friend-message span{display:inline-block}
.dashboard-request-group{border-radius:15px;background:linear-gradient(180deg,#101a2a,#0e1725)}
@media(max-width:700px){
  .dashboard-friend-card{align-items:flex-start;flex-direction:column}
  .dashboard-friend-main{width:100%}
  .dashboard-friend-message{width:100%;justify-content:center}
}


/* TelaFlux v1.3.10 · amigos em layout mais focado e com ação no rodapé */
.dashboard-friends-panel-v1310{display:flex;flex-direction:column;min-height:0}
.dashboard-social-heading-friends-simple{margin-bottom:6px}
.dashboard-friends-caption{margin:0 0 12px;color:#9fb5d4;font-size:.83rem;line-height:1.45}
.dashboard-friends-stack{flex:1;min-height:0;overflow:auto;padding-right:2px}
.dashboard-friend-card-large{padding:14px 14px;border-radius:17px}
.dashboard-friend-avatar-large{width:46px;height:46px}
.dashboard-friends-footer{margin-top:14px;padding-top:12px;border-top:1px solid #24354c}
.dashboard-add-friend-footer{
  width:100%;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:46px;padding:11px 14px;border-radius:14px;border:1px solid #37598c;
  background:linear-gradient(180deg,#1d3050,#172740);color:#d9e7ff;font-weight:760;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);transition:transform .16s ease,background .16s ease,border-color .16s ease;
}
.dashboard-add-friend-footer:hover{transform:translateY(-1px);background:linear-gradient(180deg,#243a5f,#1c2f4c);border-color:#4b74b0;color:#fff}
.dashboard-add-friend-footer .lucide-icon{flex:0 0 auto}
@media(max-width:700px){
  .dashboard-friends-caption{font-size:.8rem}
  .dashboard-add-friend-footer{min-height:44px}
}


/* TelaFlux v1.3.11 · somente Amigos na coluna direita, com botão de adicionar no rodapé */
.dashboard-social-friends-only{display:flex;flex-direction:column;min-width:0}
.dashboard-social-friends-only>.dashboard-friends-panel-v1310{flex:1;border:0;min-height:0}
.dashboard-social-friends-only .dashboard-friends-stack{flex:1;max-height:none;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.dashboard-social-friends-only .dashboard-friends-footer{margin-top:auto}
@media(max-width:1130px){
  .dashboard-social-friends-only{display:flex;grid-column:1 / -1;min-height:390px}
}
@media(max-width:700px){
  .dashboard-social-friends-only{grid-column:auto;min-height:340px}
}

/* v1.3.12 · O botão de excluir só aparece ao proprietário atual da sala. */
.call-toolbar #deleteRoomForm[hidden]{display:none!important}

/* TelaFlux 1.4.0 | administração */
.admin-shell{width:min(1360px,calc(100% - 32px));margin:30px auto 55px;color:#eaf2ff}
.admin-head{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:24px}
.admin-head h1{font-size:clamp(1.6rem,3vw,2.4rem);font-weight:840;letter-spacing:-.05em;margin:5px 0 9px}
.admin-head h1 span{color:#779bff}.admin-head p{color:#9eb6d8;font-size:.9rem;margin:0}
.admin-eyebrow{display:flex;align-items:center;gap:8px;color:#8fb0fc!important;font-weight:750;letter-spacing:.11em;font-size:.72rem!important}
.admin-back{display:inline-flex;gap:9px;align-items:center;white-space:nowrap}
.admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}
.admin-stat{background:#111925;border:1px solid #27364e;border-radius:15px;padding:18px;display:flex;gap:16px;flex-direction:column}
.admin-stat span{font-size:.82rem;color:#a8bfde;display:flex;align-items:center;gap:9px}
.admin-stat span svg{color:#86aaf0}.admin-stat strong{font-size:2rem;letter-spacing:-.04em;line-height:1}
.admin-panel-tabs{display:flex;gap:9px;flex-wrap:wrap;border-bottom:1px solid #283b57;padding-bottom:12px;margin-bottom:20px}
.admin-tab{display:flex;align-items:center;gap:9px;color:#b2c5e0;border:1px solid #2c3b53;border-radius:11px;background:#111927;padding:10px 15px;font-size:.84rem;font-weight:750}
.admin-tab.is-active{background:#1f375c;color:#fff;border-color:#4777b5}
.admin-tab:hover{border-color:#618ade;color:#fff}
.admin-future{font-size:.65rem;border:1px solid #405474;color:#a3b6d5;padding:3px 6px;border-radius:20px;font-weight:550}
.admin-panel-section[hidden]{display:none!important}
.admin-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.admin-section-head h2{font-size:1.22rem;font-weight:780;margin:0 0 5px}.admin-section-head p{font-size:.82rem;color:#91a9c7;margin:0}
.admin-section-head .btn{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.admin-feedback{color:#9cb5dc;font-size:.79rem;min-height:22px;margin-bottom:12px}
.admin-room-list{display:grid;grid-template-columns:1fr;gap:16px}
.admin-room-card{border:1px solid #273a53;background:#101825;border-radius:16px;overflow:hidden}
.admin-room-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #273a53;padding:16px 20px;background:#151e2d}
.admin-room-heading h3{font-size:1.05rem;font-weight:750;margin:0 0 5px}.admin-room-heading-info small{color:#8da9d0;font-size:.78rem}
.admin-room-count{border:1px solid #34516e;border-radius:99px;padding:6px 10px;white-space:nowrap;font-size:.72rem;color:#bed5f5}
.admin-member-list{padding:12px;display:flex;flex-direction:column;gap:9px}
.admin-member-card{display:grid;grid-template-columns:minmax(170px,1.25fr) minmax(185px,1fr) auto;align-items:center;gap:16px;background:#151f2e;border:1px solid #263954;border-radius:12px;padding:12px 14px}
.admin-member-main{display:flex;align-items:center;gap:10px;min-width:0}.admin-member-avatar{width:42px;height:42px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#243855;color:#d6e4ff;font-weight:700}
.admin-member-avatar img{width:100%;height:100%;object-fit:cover}.admin-member-id{min-width:0;display:flex;flex-direction:column;gap:4px}
.admin-member-id strong{font-size:.9rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.admin-member-id small{font-size:.75rem;color:#8fa9cc}
.admin-media-indicators{display:flex;gap:7px;flex-wrap:wrap}.admin-media-badge{font-size:.71rem;color:#aabedb;border:1px solid #354460;background:#101928;border-radius:9px;padding:6px 8px}
.admin-media-badge.is-live{color:#76e0a3;border-color:#245c4a;background:#143329}.admin-media-badge.is-blocked{color:#ff9aaa;border-color:#76445b;background:#2a1b2a}
.admin-media-controls{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.admin-media-controls .btn{font-size:.76rem;min-height:36px;padding:7px 10px;border-radius:9px;white-space:nowrap}
.btn-admin-danger{border:1px solid #784051;background:#2b1a26;color:#ffb3c1}.btn-admin-danger:hover{background:#512b3b;color:#fff;border-color:#d46987}
.admin-note{display:flex;gap:9px;margin:18px 0;color:#8da8ce;font-size:.78rem;line-height:1.7;max-width:960px}
.admin-note svg{flex:0 0 auto;margin-top:3px}
.admin-node-placeholder{max-width:780px;margin:auto;text-align:center;background:#111b2a;border:1px solid #293b57;border-radius:20px;padding:45px 24px}
.admin-node-icon{width:74px;height:74px;display:grid;place-items:center;margin:0 auto 20px;background:#1a3150;border:1px solid #395d93;border-radius:20px;color:#a8c7ff}
.admin-node-placeholder h2{font-size:1.3rem;font-weight:800}.admin-node-placeholder p{font-size:.86rem;color:#a2b9d8;line-height:1.6}
.admin-node-points{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:25px auto}.admin-node-points span{display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #344c6c;border-radius:12px;font-size:.8rem;color:#b6d0ee}
.admin-node-placeholder .admin-note{justify-content:center;margin:auto;max-width:620px}
.admin-audit-list{display:flex;flex-direction:column;gap:9px}.admin-audit-item{display:flex;justify-content:space-between;gap:15px;border:1px solid #273a53;background:#141d2c;padding:13px 16px;border-radius:11px;font-size:.83rem}.admin-audit-item small{color:#9ab4d5}
.admin-empty{padding:20px;color:#a5bfdf;font-size:.85rem}
@media(max-width:900px){.admin-stats{grid-template-columns:repeat(2,1fr)}.admin-member-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.admin-member-main{grid-column:1/3}.admin-media-controls{justify-content:flex-start}}
@media(max-width:560px){.admin-shell{width:calc(100% - 22px);margin:20px auto}.admin-head{flex-direction:column;align-items:start}.admin-stats{gap:8px}.admin-stat{padding:13px}.admin-stat span{font-size:.72rem}.admin-stat strong{font-size:1.6rem}.admin-member-card{grid-template-columns:1fr;gap:12px}.admin-member-main{grid-column:auto}.admin-room-heading{flex-wrap:wrap}.admin-section-head{flex-wrap:wrap}.admin-audit-item{flex-direction:column}.admin-media-controls .btn{flex:1}.admin-panel-tabs{gap:5px}.admin-tab{padding:9px;font-size:.75rem}}


/* TelaFlux v1.4.1: navbar uniforme em dashboard, DMs, convites e admin. */
.topbar--unified { background: #090e16; border-bottom: 1px solid #202a3a; }
.topbar--unified .tf-navigation { min-height: 80px; padding: 9px 0; }
.topbar--unified .tf-nav-shell {
  width: 100%; min-width: 0; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 0 clamp(18px, 3.2vw, 64px);
}
.topbar--unified .tf-nav-brand { min-width: 0; flex-shrink: 0; }
.topbar--unified .tf-nav-brand .brand-logo-img { width: 164px; height: auto; }
.topbar--unified .tf-nav-brand .brand-beta { font-size: .55rem; padding: 4px 8px; }
.topbar--unified .tf-nav-actions { gap: 24px; min-width: 0; }
.topbar--unified .tf-nav-account {
  appearance: none; border: 1px solid transparent; background: transparent;
  padding: 4px 6px; border-radius: 12px; color: #e7efff;
  font: inherit; font-size: .91rem; font-weight: 720; line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease;
  max-width: min(42vw, 260px);
}
.topbar--unified .tf-nav-account:hover,
.topbar--unified .tf-nav-account[aria-expanded="true"] { background: #131e30; border-color: #293b56; }
.topbar--unified .tf-nav-avatar { width: 36px; height: 36px; min-width: 36px; }
.topbar--unified .tf-nav-username { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar--unified .tf-nav-logout {
  appearance: none; min-height: 47px; padding: 10px 17px;
  border: 1px solid #2a3950; background: #0c111b;
  border-radius: 12px; color: #dce7ff; font-size: .88rem; font-weight: 690;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.topbar--unified .tf-nav-logout:hover { background: #172338; border-color: #47618b; color: #fff; }
.topbar--unified .tf-nav-account:focus-visible,
.topbar--unified .tf-nav-logout:focus-visible { outline: 2px solid #90b2ff; outline-offset: 3px; }
.topbar--unified .tf-nav-menu {
  min-width: 226px; max-width: min(94vw, 290px); padding: 8px;
  border: 1px solid #344865; border-radius: 14px;
  background: #111b2a; color: #e5edff;
  box-shadow: 0 18px 38px rgba(0,0,0,.38);
}
.topbar--unified .tf-nav-menu-title {
  list-style: none; font-size: .65rem; font-weight: 800; letter-spacing: .11em;
  color: #91a7c8; padding: 9px 10px 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.topbar--unified .tf-nav-menu-title span {
  font-size: .73rem; font-weight: 500; letter-spacing: normal;
  overflow-wrap: anywhere; color: #b3c7e9;
}
.topbar--unified .tf-nav-menu .dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  border-radius: 9px; color: #dce8ff; font-size: .86rem; font-weight: 630;
}
.topbar--unified .tf-nav-menu .dropdown-item:hover,
.topbar--unified .tf-nav-menu .dropdown-item:focus { background: #203450; color: #fff; }
@media (max-width: 620px) {
  .topbar--unified .tf-navigation { min-height: 65px; padding: 7px 0; }
  .topbar--unified .tf-nav-shell { padding: 0 12px; gap: 8px; }
  .topbar--unified .tf-nav-brand { gap: 4px !important; }
  .topbar--unified .tf-nav-brand .brand-logo-img { width: clamp(103px, 29vw, 143px); }
  .topbar--unified .tf-nav-brand .brand-beta { font-size: .47rem; padding: 3px 5px; margin-left: 0; }
  .topbar--unified .tf-nav-actions { gap: 7px; }
  .topbar--unified .tf-nav-account { max-width: 46vw; font-size: .79rem; gap: 5px !important; padding: 3px; }
  .topbar--unified .tf-nav-avatar { width: 30px; height: 30px; min-width: 30px; }
  .topbar--unified .tf-nav-logout { min-height: 37px; padding: 7px 10px; font-size: .79rem; gap: 6px !important; }
}
@media (max-width: 390px) {
  .topbar--unified .tf-nav-username { display: none; }
  .topbar--unified .tf-nav-brand .brand-logo-img { width: 105px; }
}

/* TelaFlux v1.4.4 - opcoes do microfone na janela de preferencias. */
.mic-noise-preference{align-items:flex-start;gap:16px;flex-wrap:wrap}
.mic-noise-preference>div{flex:1 1 180px;min-width:0}
.mic-noise-select{flex:0 1 215px;max-width:100%;min-width:165px;background-color:#0b1220;color:#dbe8ff;border-color:#334765}
@media(max-width:600px){.mic-noise-select{flex-basis:100%;width:100%}}

/* TelaFlux 1.4.6: perfis e estatísticas de membros, incluindo o próprio usuário. */
.member-row .member-profile-button{
  width:100%;min-width:0;display:flex;align-items:center;gap:inherit;
  padding:0;margin:0;background:transparent;border:0;border-radius:9px;
  color:inherit;text-align:left;cursor:pointer;
}
.member-row:has(.member-profile-button:hover),
.member-row:has(.member-profile-button:focus-visible){background:#202d44}
.member-row .member-profile-button:focus-visible{outline:2px solid #6a9eff;outline-offset:3px}
.member-row .member-profile-button .member-info{min-width:0}
.member-stats-modal .modal-dialog{max-width:min(510px,calc(100vw - 24px))}
.member-stats-modal .modal-content{background:#101925;color:#f1f6ff;border:1px solid #30415b;border-radius:20px;box-shadow:0 24px 75px rgba(0,0,0,.45)}
.member-stats-modal .modal-header{padding:20px 22px 8px}
.member-stats-modal .modal-title{font-size:1.4rem;font-weight:780;letter-spacing:-.03em}
.member-stats-eyebrow{color:#8daeff;letter-spacing:.13em;font-size:.7rem;font-weight:800;margin-bottom:4px}
.member-stats-modal .modal-body{padding:16px 22px 24px}
.member-stats-identity{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.member-stats-avatar{display:grid;place-items:center;width:66px;height:66px;border-radius:50%;overflow:hidden;flex:0 0 auto;background:#192941;border:2px solid #41689f;color:#e3edff;font-size:1.3rem;font-weight:800}
.member-stats-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.member-stats-identity-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.member-stats-identity-copy strong{font-size:1.15rem;overflow-wrap:anywhere}
.member-stats-identity-copy>span{color:#9eb5da;font-size:.82rem;overflow-wrap:anywhere}
.member-stats-identity-copy .member-stats-presence{color:#58d79e;font-size:.78rem}
.member-stats-feedback{padding:12px;margin:0;color:#a7b9d5}
.member-stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.member-stats-tile{display:flex;flex-direction:column;gap:7px;background:#151f30;border:1px solid #2b3951;border-radius:13px;padding:13px}
.member-stats-tile>span{color:#9badca;font-size:.79rem;line-height:1.45}
.member-stats-tile>strong{color:#e9f3ff;font-size:1.45rem;line-height:1.1;font-variant-numeric:tabular-nums}
.member-stats-dates{display:grid;gap:11px;border-top:1px solid #2b3951;padding-top:15px;margin-top:17px}
.member-stats-dates>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.member-stats-dates span{font-size:.8rem;color:#92aaca}
.member-stats-dates strong{font-size:.8rem;text-align:right}
.member-stats-note{margin:16px 0 0;color:#8399b8;font-size:.76rem;line-height:1.55}
@media(max-width:480px){
  .member-stats-modal .modal-header{padding:18px 16px 8px}
  .member-stats-modal .modal-body{padding:14px 16px 20px}
  .member-stats-tile{padding:11px}
}

/* v1.4.7: durações da conta, sem alterar o layout da chamada */
.member-stats-section-heading{font-size:.87rem;color:#b6cbed;font-weight:760;margin:0 0 10px;letter-spacing:.01em}
.member-stats-section-heading--spaced{margin-top:19px}
.member-stats-tile--duration{background:#152439;border-color:#354b69}
.member-stats-tile--duration>strong{font-size:1.26rem;letter-spacing:-.02em;white-space:normal;overflow-wrap:normal}

/* v1.4.10 | Zoom local por compartilhamento: disponível a quem transmite e a quem assiste. */
.participant-card video[data-media="screen"].visible{
  transform-origin:50% 50%;
  touch-action:none;
}
.participant-card video[data-media="screen"].visible.is-screen-zoomed{cursor:grab;will-change:transform}
.participant-card video[data-media="screen"].visible.is-screen-zoomed:active{cursor:grabbing}
.participant-card .stream-zoom-controls{
  position:absolute;
  z-index:17;
  right:10px;
  bottom:47px;
  display:flex;
  align-items:center;
  gap:2px;
  padding:4px;
  background:rgba(12,20,34,.94);
  border:1px solid #455a7b;
  border-radius:12px;
  box-shadow:0 5px 20px #0009;
  backdrop-filter:blur(10px);
  user-select:none;
}
.participant-card .stream-zoom-controls[hidden]{display:none!important}
.stream-zoom-controls button{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  padding:0;
  border:0;
  border-radius:8px;
  color:#d7e7ff;
  background:transparent;
}
.stream-zoom-controls button:hover:not(:disabled),
.stream-zoom-controls button:focus-visible{background:#294164;color:white}
.stream-zoom-controls button:disabled{opacity:.4;cursor:default}
.stream-zoom-controls output{
  min-width:42px;
  text-align:center;
  font-size:.75rem;
  font-weight:750;
  color:#e7efff;
  font-variant-numeric:tabular-nums;
}
.stream-zoom-controls .screen-zoom-reset{
  margin-left:3px;
  border-left:1px solid #364861;
  border-radius:0 8px 8px 0;
}
@media (max-width:767.98px){
  .participant-card .stream-zoom-controls{right:7px;bottom:44px;padding:3px;gap:1px}
  .stream-zoom-controls button{width:30px;height:30px}
  .stream-zoom-controls output{min-width:38px;font-size:.7rem}
}
@media (prefers-reduced-motion:reduce){
  .participant-card video[data-media="screen"]{transition:none!important}
}

/* v1.4.12 | Volume da tela ao lado do menu, zoom em fullscreen e fallback mobile. */
.participant-card .stream-fullscreen-exit{position:absolute;top:17px;left:18px;z-index:27;width:40px;height:40px;align-items:center;justify-content:center;border:1px solid #4d6284;background:#111d30e8;border-radius:10px;color:#f4f7ff}
.participant-card .stream-fullscreen-exit:not([hidden]){display:flex}
.participant-card .stream-fullscreen-exit[hidden]{display:none!important}
/* Fallback para iPhone e navegadores que não expõem fullscreen de elementos HTML. */
html.tf-pseudo-fullscreen-active,html.tf-pseudo-fullscreen-active body{overflow:hidden!important;overscroll-behavior:none}
.participant-card.is-pseudo-fullscreen{
  position:fixed!important;z-index:10020!important;inset:0!important;
  margin:0!important;border-radius:0!important;max-width:none!important;max-height:none!important;
  width:100vw!important;height:100vh!important;height:100dvh!important;
  background:#070b12!important;grid-column:auto!important;transform:none!important;
}
.participant-card.is-pseudo-fullscreen video{object-fit:contain}
.participant-card.is-pseudo-fullscreen .stream-actions{right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top))}
.participant-card.is-pseudo-fullscreen .stream-fullscreen-exit{left:max(12px,env(safe-area-inset-left));top:max(12px,env(safe-area-inset-top))}
.participant-card:fullscreen .stream-fullscreen-exit{top:18px;left:18px}
.participant-card:fullscreen .stream-zoom-controls,
.participant-card.is-pseudo-fullscreen .stream-zoom-controls{bottom:max(60px,env(safe-area-inset-bottom) + 46px);right:max(12px,env(safe-area-inset-right))}
@media(max-width:767.98px){
}


/* v1.4.12: manter os controladores disponíveis no fullscreen. */
.participant-card:fullscreen,
.participant-card.is-pseudo-fullscreen{overflow:hidden!important;contain:none!important}
.participant-card:fullscreen .stream-zoom-controls,
.participant-card.is-pseudo-fullscreen .stream-zoom-controls{z-index:50!important}
.participant-card:fullscreen .stream-screen-audio,
.participant-card.is-pseudo-fullscreen .stream-screen-audio{z-index:51!important}
.participant-card:fullscreen video[data-media="screen"],
.participant-card.is-pseudo-fullscreen video[data-media="screen"]{touch-action:none!important}


.participant-card .stream-screen-audio{position:absolute;top:12px;right:58px;z-index:31}
.participant-card .screen-audio-trigger{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;border:1px solid rgba(120,146,200,.26);background:rgba(9,14,24,.88);color:#cfe0ff;box-shadow:0 10px 28px rgba(0,0,0,.28)}
.participant-card .screen-audio-trigger:hover{background:rgba(19,29,46,.94);color:#fff}
.screen-audio-popover{position:absolute;top:44px;right:0;min-width:182px;padding:10px 11px;border-radius:12px;border:1px solid rgba(120,146,200,.22);background:rgba(10,15,24,.96);box-shadow:0 18px 38px rgba(0,0,0,.38)}
.screen-audio-popover-label{display:flex;flex-direction:column;gap:7px;font-size:.72rem;color:#d7e5ff}
.screen-audio-popover-label span{display:flex;justify-content:space-between;gap:8px;align-items:center}
.screen-audio-popover input[type="range"]{width:100%}


/* v1.4.14 · disponibilidade de amigos e status da própria conta */
.dashboard-friend-card[data-presence="online"],.dm-friend[data-presence="online"]{--friend-status:#36d891}
.dashboard-friend-card[data-presence="idle"],.dm-friend[data-presence="idle"]{--friend-status:#f7c55b}
.dashboard-friend-card[data-presence="busy"],.dm-friend[data-presence="busy"]{--friend-status:#f66d7d}
.dashboard-friend-card[data-presence="offline"],.dm-friend[data-presence="offline"]{--friend-status:#78869c}
.dashboard-friend-avatar.friend-presence-avatar{position:relative;overflow:visible;isolation:isolate}
.dashboard-friend-avatar.friend-presence-avatar img{border-radius:50%;overflow:hidden}
.friend-presence-dot{position:absolute;right:-3px;bottom:-3px;width:14px;height:14px;border-radius:50%;background:var(--friend-status,#78869c);border:3px solid #152136;box-shadow:0 0 0 1px rgba(255,255,255,.12);pointer-events:none;z-index:2}
.dashboard-friend-handle::before{display:none}
.friend-presence-label{font-size:.74rem;color:var(--friend-status,#78869c);font-weight:700;white-space:nowrap;flex:0 0 auto}
.friend-presence-label::before{content:'·';margin:0 6px 0 2px;color:#7284a0}
.tf-presence-menu{padding:9px 10px 12px;border-bottom:1px solid #293b53;margin-bottom:6px}
.tf-presence-menu label,.room-presence-menu label{display:block;font-size:.72rem;font-weight:740;color:#9eb4d7;margin-bottom:7px}
.tf-presence-menu .form-select,.room-presence-menu .form-select,.presence-profile-preference .form-select{background-color:#121d2e;border:1px solid #334766;color:#e8f0ff;border-radius:10px;font-size:.85rem;min-height:40px}
.tf-presence-menu [data-presence-feedback],.room-presence-menu [data-presence-feedback],.presence-profile-preference [data-presence-feedback]{display:block;font-size:.72rem;color:#9bb8df;margin-top:6px;min-height:0}
.room-presence-menu{padding:9px 11px 11px}
.room-presence-menu .form-select{width:100%}
.presence-profile-preference{flex-wrap:wrap}
.presence-profile-preference .form-select{width:min(100%,180px)}
@media(max-width:460px){.dashboard-friend-handle{flex-wrap:wrap;white-space:normal}.friend-presence-label{font-size:.73rem}}
