/* Vidro: tema moderno com efeito de vidro (desfoque e translucidez via backdrop-filter, cantos em pilula, brilho rosa), inspirado no «Liquid Glass» da Apple.
   Equivalente web do efeito: o expo-glass-effect e so para React Native/iOS. Só se aplica com html[data-theme=glass]. */
html[data-theme=glass]{
  --gl-ac:#ff4fa3;--gl-ac2:#ff72b6;--gl-ac-d:#c4337c;--gl-g1:rgba(255,255,255,.07);--gl-g2:rgba(255,255,255,.12);--gl-g3:rgba(255,255,255,.22);
  --k-bg:rgba(12,12,16,.55);--k-text:#ffffff;--k-me-text:#ffffff;--k-text2:#f0f0f4;--k-icon:#e6e6ec;--k-muted2:#b4b4be;--k-muted:#a5a5b0;--k-faint:#8e8e99;--k-link:#ff9ccb;
  --k-hover:rgba(255,255,255,.12);--k-active:rgba(255,79,163,.2);--k-row:rgba(255,255,255,.07);--k-head2:rgba(255,255,255,.07);--k-head1:rgba(255,255,255,.07);--k-head1b:rgba(12,12,16,.55);--k-strip:rgba(255,255,255,.07);--k-band:rgba(255,255,255,.07);--k-foot2:rgba(255,255,255,.07);--k-recv:#1d3a4c;--k-idle:rgba(255,255,255,.12);--k-roundhov:rgba(255,255,255,.12);
  --k-me:#c4337c;--k-meline:#ff4fa3;--k-line:rgba(255,255,255,.12);--k-line2:rgba(255,255,255,.12);--k-line3:#ff4fa3;
  --k-okbg:#1c2f12;--k-oktx:#bfe69a;--k-okline:#3d6a22;--k-warnbg:rgba(255,79,163,.2);--k-warntx:#ffd0e6;--k-warnline:#a02a6a;
  --sk-blue:#ff4fa3;--sk-blue-2:#ff72b6;--sk-head:linear-gradient(rgba(255,255,255,.07),rgba(12,12,16,.55));--sk-line:rgba(255,255,255,.12);--sk-green:#ff4fa3;
  font-family:"Segoe UI","Open Sans",Arial,sans-serif}
html[data-theme=glass] body{font-size:14px;background:rgba(12,12,16,.55)}
html[data-theme=glass] #side::before{display:block;background:linear-gradient(#0e2a3a,rgba(12,12,16,.55));opacity:1}
html[data-theme=glass] #main{background:rgba(12,12,16,.55)}

/* cabeçalho e barra lateral */
html[data-theme=glass] .sbrand{background:linear-gradient(#ff72b6,#d63d8c);border-bottom:1px solid #a02a6a}
html[data-theme=glass] .sbrand b{text-shadow:0 1px 0 #a02a6a;color:#fff}
html[data-theme=glass] #side{background:rgba(12,12,16,.55);border-right:1px solid var(--gl-ac)}
html[data-theme=glass] .skhead{background:rgba(255,255,255,.07);border-bottom:1px solid var(--gl-ac)}
html[data-theme=glass] .skme,html[data-theme=glass] .mehd .av{border-color:var(--gl-ac)}
html[data-theme=glass] .skdot,html[data-theme=glass] .mecard .sdot{border-color:rgba(12,12,16,.55);box-shadow:0 0 0 1px #000}
html[data-theme=glass] .skdot.away,html[data-theme=glass] .mecard .sdot.away{background:#ffb300;box-shadow:0 0 0 1px #000}
html[data-theme=glass] .skdot.dnd,html[data-theme=glass] .mecard .sdot.dnd{background:#e53935;box-shadow:0 0 0 1px #000}
html[data-theme=glass] .skdot.inv{background:#8e8e99;box-shadow:0 0 0 1px #000}
html[data-theme=glass] .nsearch{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:3px}
html[data-theme=glass] .nsearch:focus-within{border-color:var(--gl-ac)}
html[data-theme=glass] .nrow>svg{color:var(--gl-ac)}
html[data-theme=glass] .nrow.on,html[data-theme=glass] #list .crow.on,html[data-theme=glass] #list .item.on{background:rgba(255,79,163,.2);box-shadow:inset 3px 0 0 var(--gl-ac)}
html[data-theme=glass] .stabs{border-bottom:2px solid var(--gl-ac)}
html[data-theme=glass] .stab{color:#d0d0d8;border-bottom:0;margin-bottom:0;border-radius:2px 2px 0 0}
html[data-theme=glass] .stab:hover{color:#fff;background:rgba(255,255,255,.07)}
html[data-theme=glass] .stab.on{color:#fff;background:var(--gl-ac)}
html[data-theme=glass] #list .sec{color:var(--gl-ac);border-bottom:0}
html[data-theme=glass] .badge,html[data-theme=glass] #list .badge{background:var(--gl-ac);color:#fff;border-radius:3px}
html[data-theme=glass] .sfoot{border-top:1px solid var(--gl-ac)}
html[data-theme=glass] #callbar{background:var(--gl-ac);color:#fff}
html[data-theme=glass] #nUpd{background:rgba(255,79,163,.2);color:#ffd0e6;border-color:#a02a6a}

/* conversa */
html[data-theme=glass] .chead{background:rgba(12,12,16,.55);border-bottom:2px solid var(--gl-ac)}
html[data-theme=glass] .chead h2{color:#fff}
html[data-theme=glass] #msgs{background:transparent}
html[data-theme=glass] .bubble{border-radius:3px}
html[data-theme=glass] .msg.mine .bubble{background:#c4337c;color:#fff}
html[data-theme=glass] .msg:not(.mine) .bubble{background:rgba(255,255,255,.12);color:#fff}
html[data-theme=glass] .meta b{color:var(--gl-ac2)}
html[data-theme=glass] .bubble a,html[data-theme=glass] #msgs a{color:#ff9ccb}
html[data-theme=glass] .composer{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:3px}
html[data-theme=glass] .composer:focus-within{border-color:var(--gl-ac)}
html[data-theme=glass] .cw{border-top:1px solid var(--gl-ac)}

/* botões: principal = laranja; secundário = cinza-escuro */
html[data-theme=glass] .cbtn,html[data-theme=glass] .cround.send,html[data-theme=glass] .hgo,html[data-theme=glass] .fbtn,html[data-theme=glass] .ccard .cic,html[data-theme=glass] .btn.primary,html[data-theme=glass] #setm .btn.go,html[data-theme=glass] .btn.go{
  background:var(--gl-ac);border:1px solid var(--gl-ac-d);border-radius:3px;color:#fff;box-shadow:none;text-shadow:none}
html[data-theme=glass] .cbtn{width:38px;height:38px}
html[data-theme=glass] .cbtn:hover,html[data-theme=glass] .cround.send:hover,html[data-theme=glass] .hgo:hover,html[data-theme=glass] .fbtn:hover,html[data-theme=glass] .btn.primary:hover,html[data-theme=glass] #setm .btn.go:hover{background:var(--gl-ac2);color:#fff}
html[data-theme=glass] .cround.send.idle{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.22);color:#8e8e99}
html[data-theme=glass] .cround{border-radius:3px;color:#e6e6ec}
html[data-theme=glass] .cround:hover{background:rgba(255,255,255,.12);color:#fff}
html[data-theme=glass] .btn:not(.primary):not(.go):not(.red),html[data-theme=glass] #setm .btn:not(.primary):not(.go):not(.red){background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);border-radius:3px;color:#fff}
html[data-theme=glass] .btn:not(.primary):not(.go):not(.red):hover,html[data-theme=glass] #setm .btn:not(.primary):not(.go):not(.red):hover{background:rgba(255,255,255,.12);border-color:var(--gl-ac)}
html[data-theme=glass] #setm .btn,html[data-theme=glass] .btn{border-radius:3px}

/* Início */
html[data-theme=glass] #welcome,html[data-theme=glass] #welcome .homewrap{background:rgba(12,12,16,.55)}
html[data-theme=glass] #welcome .hbar,html[data-theme=glass] .hhero{background:rgba(255,255,255,.07);border-bottom:1px solid var(--gl-ac)}
html[data-theme=glass] .hero.live{background:rgba(255,79,163,.2);color:#fff}
html[data-theme=glass] .hstack .av{border-color:rgba(12,12,16,.55)}

/* janelas, menus, definições */
html[data-theme=glass] .modal{background:#000b}
html[data-theme=glass] .mcard,html[data-theme=glass] .menu,html[data-theme=glass] .pop,html[data-theme=glass] .ctx,html[data-theme=glass] .dropdown{background:rgba(255,255,255,.07);border:1px solid var(--gl-ac);border-radius:4px;box-shadow:0 10px 30px #000c}
html[data-theme=glass] .dropdown.mecard{background:rgba(255,255,255,.07);border:1px solid var(--gl-ac);border-radius:4px}
html[data-theme=glass] .mehd{background:rgba(255,255,255,.07);border-bottom:1px solid var(--gl-ac)}
html[data-theme=glass] .mecard .mi svg,html[data-theme=glass] #setm .setnav button svg{color:var(--gl-ac)}
html[data-theme=glass] .mecard .mi[aria-checked=true],html[data-theme=glass] #setm .setnav button.on{background:rgba(255,79,163,.2);box-shadow:inset 3px 0 0 var(--gl-ac)}
html[data-theme=glass] .pfh,html[data-theme=glass] .slbl,html[data-theme=glass] .pf-prev .sec{color:var(--gl-ac2);background:rgba(255,255,255,.07);border-top:1px solid rgba(255,255,255,.12);border-bottom:1px solid var(--gl-ac)}
html[data-theme=glass] .slbl,html[data-theme=glass] .pf-prev .sec{background:transparent;border:0}
html[data-theme=glass] #setm .sph{border-bottom:1px solid var(--gl-ac)}
html[data-theme=glass] #setm .setnav button:hover,html[data-theme=glass] .mecard .mi:hover{background:rgba(255,255,255,.12)}
html[data-theme=glass] input:not([type=checkbox]):not([type=radio]):not([type=range]),html[data-theme=glass] select,html[data-theme=glass] textarea{background:rgba(255,255,255,.07);color:#fff;border:1px solid rgba(255,255,255,.22);border-radius:3px}
html[data-theme=glass] #setm .inp,html[data-theme=glass] #setm select{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.22);border-radius:3px;box-shadow:none}
html[data-theme=glass] #setm .inp:focus,html[data-theme=glass] input:focus,html[data-theme=glass] select:focus,html[data-theme=glass] textarea:focus{border-color:var(--gl-ac);box-shadow:0 0 0 1px var(--gl-ac);outline:0}
html[data-theme=glass] .nsearch input,html[data-theme=glass] .composer textarea,html[data-theme=glass] .composer input{background:transparent;border:0;box-shadow:none}
html[data-theme=glass] .srow{border-bottom:1px solid rgba(255,255,255,.12)}
html[data-theme=glass] .ccard,html[data-theme=glass] .card,html[data-theme=glass] .pcard,html[data-theme=glass] .pf-prev .pcrd,html[data-theme=glass] .pf-g{border-radius:3px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07)}
html[data-theme=glass] input[type=range],html[data-theme=glass] input[type=checkbox],html[data-theme=glass] input[type=radio],html[data-theme=glass] progress{accent-color:var(--gl-ac)}
html[data-theme=glass] .pf-sw .sw.on{border-color:var(--gl-ac)}
html[data-theme=glass] *{scrollbar-color:var(--gl-ac) rgba(255,255,255,.07)}
html[data-theme=glass] ::-webkit-scrollbar{width:12px;height:12px;background:rgba(255,255,255,.07)}
html[data-theme=glass] ::-webkit-scrollbar-thumb{background:var(--gl-ac);border-radius:2px;border:2px solid rgba(255,255,255,.07)}
html[data-theme=glass] ::selection{background:var(--gl-ac);color:#fff}

/* ---------- Ecrã de chamada ---------- */
html[data-theme=glass] #call,html[data-theme=glass] #call.calling{background:rgba(12,12,16,.55);--call-bg:rgba(12,12,16,.55)}
html[data-theme=glass] #call.calling{align-items:center;justify-content:center}
html[data-theme=glass] .tile{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:4px}
html[data-theme=glass] .tav,html[data-theme=glass] .tile .shareph{background:rgba(255,255,255,.07)}
html[data-theme=glass] .tile.speaking{box-shadow:0 0 0 2px var(--gl-ac),0 0 14px #5a93b366;border-color:var(--gl-ac)}
html[data-theme=glass] .tile.speaking .av.big{box-shadow:0 0 0 3px var(--gl-ac)}
html[data-theme=glass] .tname{background:#000a;color:#fff;border-left:3px solid var(--gl-ac);border-radius:2px}
html[data-theme=glass] .st{background:#000a;color:var(--gl-ac2)}
html[data-theme=glass] .st.bad{background:#c62828;color:#fff}
html[data-theme=glass] #dock{background:rgba(12,12,16,.55);border-top:2px solid var(--gl-ac);box-shadow:none}
html[data-theme=glass] #dock .round,html[data-theme=glass] #dock .round.react,html[data-theme=glass] #call.calling #dock .round{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);border-radius:4px;box-shadow:none;color:#fff}
html[data-theme=glass] #dock .round:hover,html[data-theme=glass] #call.calling #dock .round:hover{background:rgba(255,255,255,.22);border-color:var(--gl-ac)}
html[data-theme=glass] #dock .round.off,html[data-theme=glass] #call.calling #dock .round.off{background:#fff;color:rgba(12,12,16,.55);border-color:#fff}
html[data-theme=glass] #dock .round.on{background:var(--gl-ac);border-color:var(--gl-ac-d)}
html[data-theme=glass] #dock .round.danger,html[data-theme=glass] #call.calling #dock .round.danger{background:var(--gl-ac);border:1px solid var(--gl-ac-d);border-radius:4px;color:#fff;box-shadow:none}
html[data-theme=glass] #dock .round.danger:hover{background:var(--gl-ac2)}
html[data-theme=glass] #ppl,html[data-theme=glass] #cmenu,html[data-theme=glass] #call>#cChat{background:rgba(255,255,255,.07);border:1px solid var(--gl-ac);border-radius:4px}
html[data-theme=glass] .pplh{background:rgba(255,255,255,.07);border-bottom:1px solid var(--gl-ac);color:#fff}
html[data-theme=glass] #rcn{background:rgba(255,255,255,.07);color:var(--gl-ac2);border:1px solid var(--gl-ac);border-radius:3px}
html[data-theme=glass] .rspin{border-color:#5a93b355;border-top-color:var(--gl-ac)}
html[data-theme=glass] #calling{background:transparent}
html[data-theme=glass] #calling .cl-av{background:rgba(255,255,255,.07);color:#8e8e99;border:1px solid var(--gl-ac);border-radius:4px}
html[data-theme=glass] #calling .cl-name{color:#fff}
html[data-theme=glass] #calling .cl-t{color:#b4b4be}
html[data-theme=glass] #call.calling #dock{background:transparent;border:0}
html[data-theme=glass] #dock .round.danger,html[data-theme=glass] #call.calling #dock .round.danger{background:#e5484d;border-color:#a02a2a}
html[data-theme=glass] #dock .round.danger:hover{background:#f0605f}
html[data-theme=glass] .nsearch:focus-within,html[data-theme=glass] .composer:focus-within{border-color:var(--gl-ac)}

/* ---- vidro: fundo em malha de gradiente e superfícies translúcidas com desfoque ---- */
html[data-theme=glass]{--gl-blur:blur(22px) saturate(160%);--gl-edge:inset 0 1px 0 rgba(255,255,255,.28),inset 0 0 0 1px rgba(255,255,255,.08);color-scheme:dark}
html[data-theme=glass],html[data-theme=glass] body{background:#0a0a0f}
html[data-theme=glass] body{background:radial-gradient(900px 600px at 8% 12%,#2a3cc4 0,transparent 60%),radial-gradient(800px 600px at 95% 8%,#c8b8b0 0,transparent 55%),radial-gradient(900px 700px at 70% 105%,#e0512f 0,transparent 60%),radial-gradient(700px 600px at 0% 100%,#5b2a8c 0,transparent 60%),#0a0a0f;background-attachment:fixed}
html[data-theme=glass] #main,html[data-theme=glass] #msgs,html[data-theme=glass] #welcome,html[data-theme=glass] #welcome .homewrap,html[data-theme=glass] .chatcol{background:transparent}
html[data-theme=glass] #side,html[data-theme=glass] .chead,html[data-theme=glass] .cw,html[data-theme=glass] .skhead,html[data-theme=glass] #welcome .hbar,html[data-theme=glass] .hhero,html[data-theme=glass] #dock,html[data-theme=glass] .sfoot{-webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);background-color:rgba(16,16,22,.45)}
html[data-theme=glass] #side{border-right:1px solid rgba(255,255,255,.14);box-shadow:var(--gl-edge)}
html[data-theme=glass] #side::before{display:none}
html[data-theme=glass] .chead,html[data-theme=glass] .cw,html[data-theme=glass] .skhead,html[data-theme=glass] #welcome .hbar,html[data-theme=glass] .sfoot,html[data-theme=glass] #dock{border-color:rgba(255,255,255,.14)}
html[data-theme=glass] .sbrand{background:transparent;border-bottom:1px solid rgba(255,255,255,.14)}
html[data-theme=glass] .sbrand b{text-shadow:none}
html[data-theme=glass] .stabs{border-bottom:1px solid rgba(255,255,255,.14);gap:4px;padding:8px 10px}
html[data-theme=glass] .stab{border-radius:999px;padding:7px 0}
html[data-theme=glass] .stab.on{background:rgba(255,255,255,.18);box-shadow:var(--gl-edge);color:#fff}
html[data-theme=glass] .nrow,html[data-theme=glass] #list .item,html[data-theme=glass] #list .crow{border-radius:14px;margin:2px 8px;width:auto;border-bottom:0}
html[data-theme=glass] .nrow.on,html[data-theme=glass] #list .crow.on,html[data-theme=glass] #list .item.on{background:rgba(255,255,255,.14);box-shadow:var(--gl-edge)}
html[data-theme=glass] .nrow>svg{color:#ff72b6}
html[data-theme=glass] #list .crow .av,html[data-theme=glass] #list .item .av,html[data-theme=glass] .msg .av,html[data-theme=glass] #cAv .av{border-radius:50%}
html[data-theme=glass] .nsearch,html[data-theme=glass] .composer,html[data-theme=glass] input:not([type=checkbox]):not([type=radio]):not([type=range]),html[data-theme=glass] select,html[data-theme=glass] textarea,html[data-theme=glass] #setm .inp,html[data-theme=glass] #setm select{border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);box-shadow:var(--gl-edge)}
html[data-theme=glass] textarea{border-radius:16px}
html[data-theme=glass] .nsearch input,html[data-theme=glass] .composer textarea,html[data-theme=glass] .composer input{background:transparent;border:0;box-shadow:none}
html[data-theme=glass] .bubble{border-radius:20px;-webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);border:1px solid rgba(255,255,255,.16);box-shadow:var(--gl-edge)}
html[data-theme=glass] .msg.mine .bubble{background:linear-gradient(135deg,rgba(255,79,163,.85),rgba(196,51,124,.85));color:#fff}
html[data-theme=glass] .msg:not(.mine) .bubble{background:rgba(255,255,255,.14);color:#fff}
/* botões: principal rosa com brilho, secundário vidro */
html[data-theme=glass] .cbtn,html[data-theme=glass] .cround.send,html[data-theme=glass] .hgo,html[data-theme=glass] .fbtn,html[data-theme=glass] .ccard .cic,html[data-theme=glass] .btn.primary,html[data-theme=glass] #setm .btn.go,html[data-theme=glass] .btn.go{border-radius:999px;background:linear-gradient(#ff7ab8,#ff3d97);border:1px solid rgba(255,255,255,.35);box-shadow:var(--gl-edge),0 6px 20px -4px rgba(255,79,163,.6)}
html[data-theme=glass] .cround.send.idle{background:rgba(255,255,255,.12);box-shadow:none;color:#999}
html[data-theme=glass] .cround{border-radius:50%}
html[data-theme=glass] .btn:not(.primary):not(.go):not(.red),html[data-theme=glass] #setm .btn:not(.primary):not(.go):not(.red){border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);box-shadow:var(--gl-edge)}
/* janelas, menus e cartões */
html[data-theme=glass] .modal{background:rgba(0,0,0,.35);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html[data-theme=glass] .mcard,html[data-theme=glass] .menu,html[data-theme=glass] .pop,html[data-theme=glass] .ctx,html[data-theme=glass] .dropdown,html[data-theme=glass] .dropdown.mecard,html[data-theme=glass] #ppl,html[data-theme=glass] #cmenu,html[data-theme=glass] #call>#cChat{-webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur);background:rgba(28,28,36,.55);border:1px solid rgba(255,255,255,.2);border-radius:24px;box-shadow:var(--gl-edge),0 20px 50px -12px rgba(0,0,0,.6)}
html[data-theme=glass] .dropdown .mi,html[data-theme=glass] .mecard .mi{border-radius:14px}
html[data-theme=glass] .mehd,html[data-theme=glass] .pplh{background:transparent;border-bottom:1px solid rgba(255,255,255,.14)}
html[data-theme=glass] .ccard,html[data-theme=glass] .card,html[data-theme=glass] .pcard,html[data-theme=glass] .pf-prev .pcrd,html[data-theme=glass] .pf-g,html[data-theme=glass] .hhero{border-radius:22px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);box-shadow:var(--gl-edge);-webkit-backdrop-filter:var(--gl-blur);backdrop-filter:var(--gl-blur)}
html[data-theme=glass] .badge,html[data-theme=glass] #list .badge{border-radius:999px;box-shadow:0 0 12px rgba(255,79,163,.6)}
html[data-theme=glass] ::-webkit-scrollbar-thumb{border-radius:999px;background:rgba(255,255,255,.28);border:3px solid transparent;background-clip:padding-box}
html[data-theme=glass] *{scrollbar-color:rgba(255,255,255,.3) transparent}
html[data-theme=glass] ::-webkit-scrollbar{background:transparent}
/* chamada */
html[data-theme=glass] #call,html[data-theme=glass] #call.calling{background:transparent}
html[data-theme=glass] .tile{border-radius:24px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.18);box-shadow:var(--gl-edge);overflow:hidden}
html[data-theme=glass] .tile.speaking{border-color:#ff72b6;box-shadow:0 0 0 2px #ff72b6,0 0 26px rgba(255,79,163,.55)}
html[data-theme=glass] .tname{border-radius:999px;background:rgba(0,0,0,.45);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-left:0;left:10px;bottom:10px;right:auto}
html[data-theme=glass] #dock{border-radius:999px;margin:10px auto;max-width:min(560px,96%);border:1px solid rgba(255,255,255,.2);box-shadow:var(--gl-edge)}
html[data-theme=glass] #dock .round,html[data-theme=glass] #dock .round.react,html[data-theme=glass] #call.calling #dock .round{border-radius:50%;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);box-shadow:var(--gl-edge)}
html[data-theme=glass] #dock .round.off{background:#fff;color:#111}
html[data-theme=glass] #dock .round.danger,html[data-theme=glass] #call.calling #dock .round.danger{background:linear-gradient(#ff6b6b,#e5484d);border-color:rgba(255,255,255,.35)}
html[data-theme=glass] #calling .cl-av{border-radius:50%}
html[data-theme=glass] #dock{max-width:none;margin:10px 12px;width:auto}
html[data-theme=glass] #dock .round.danger,html[data-theme=glass] #call.calling #dock .round.danger{border-radius:999px}
html[data-theme=glass] .hside,html[data-theme=glass] .pside,html[data-theme=glass] .profcol{background:transparent}

/* ---- barra de ícones (só no tema Vidro): coluna escura, botão de conversas rosa a brilhar e balão compacto colado a ele ---- */
#rail{display:none}
html[data-theme=glass]{--gl-spring:linear(0,.18 4%,.55 9%,.92 15%,1.14 22%,1.2 27%,1.12 34%,1.03 42%,.98 52%,.995 64%,1 76%,1)}
html[data-theme=glass] .sbrand{display:none}
@media(min-width:761px){
  html[data-theme=glass]:not(.mobile) #rail{display:flex;flex-direction:column;align-items:center;gap:10px;flex:none;position:relative;z-index:52;width:64px;margin:12px 0 12px 12px;padding:12px 0;border-radius:32px;
    background:linear-gradient(#161618,#101012);border:1px solid rgba(255,255,255,.07);box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 24px 60px -18px rgba(0,0,0,.8)}
  html[data-theme=glass]:not(.mobile) #rail .rsp{flex:1}
  html[data-theme=glass]:not(.mobile) #rail .rbtn{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:#7d7d86;background:#1b1b1e;border:1px solid rgba(255,255,255,.05);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);transition:transform .55s var(--gl-spring),background .15s,color .15s,box-shadow .2s}
  html[data-theme=glass]:not(.mobile) #rail .rbtn svg{width:20px;height:20px;stroke-width:1.7}
  html[data-theme=glass]:not(.mobile) #rail .rbtn:hover{color:#e8e8ee;background:#232327;transform:scale(1.08)}
  html[data-theme=glass]:not(.mobile) #rail .rbtn:active{transform:scale(.86);transition-duration:.08s}
  /* logótipo em cima, sem círculo (só ganha a esfera quando o Início está ativo) */
  html[data-theme=glass]:not(.mobile) #rail .rlogo{background:transparent;border:0;box-shadow:none;color:#f2f2f6;margin-bottom:4px}
  html[data-theme=glass]:not(.mobile) #rail .rlogo svg{width:22px;height:22px;stroke-width:2}
  html[data-theme=glass]:not(.mobile) #rail .rlogo:not(.on):hover{background:transparent;color:#fff}
  /* a secção ativa (Início, Conversas, Contactos ou Definições) fica na esfera rosa com brilho */
  html[data-theme=glass]:not(.mobile) #rail .rbtn.on,html[data-theme=glass]:not(.mobile) #rail .rbtn.on:hover{width:50px;height:50px;color:#2b0718;border:0;
    background:radial-gradient(circle at 50% 28%,#ffb3dc 0,#ff6fbf 38%,#ff3fa6 72%,#e2298c 100%);
    box-shadow:inset 0 2px 3px rgba(255,255,255,.55),inset 0 -5px 10px rgba(160,10,80,.45),0 0 0 1px rgba(255,120,200,.35),0 8px 26px -4px rgba(255,63,166,.75),0 0 44px -8px rgba(255,63,166,.6)}
  html[data-theme=glass]:not(.mobile) #rail .rbtn.on svg{width:22px;height:22px;stroke-width:1.8}

  /* o balão: compacto, preso ao botão que o abriu (--gl-pop-y), com o botão por cima da borda esquerda; entra e sai como uma bolha */
  html[data-theme=glass]:not(.mobile) #side{position:fixed;z-index:51;left:32px;top:var(--gl-pop-y,80px);width:min(380px,calc(100vw - 60px));height:auto;max-height:calc(100vh - var(--gl-pop-y,80px) - 16px);margin:0;padding:8px 10px 8px 56px;
    border-radius:30px;border:1px solid rgba(255,255,255,.09);overflow:hidden;background:rgba(34,34,38,.82);-webkit-backdrop-filter:blur(24px) saturate(140%);backdrop-filter:blur(24px) saturate(140%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 30px 70px -18px rgba(0,0,0,.85);
    transform-origin:12px 30px;transform:translateX(-10px) scale(.2);opacity:0;visibility:hidden;pointer-events:none;
    transition:transform .42s cubic-bezier(.5,-.5,.75,.2),opacity .1s ease .32s,visibility 0s .42s}
  html[data-theme=glass]:not(.mobile) body.rail-open #side{transform:none;opacity:1;visibility:visible;pointer-events:auto;transition:transform .75s var(--gl-spring),opacity .12s ease,visibility 0s}
  html[data-theme=glass]:not(.mobile) #side::before{display:none}
  html[data-theme=glass]:not(.mobile) #side .skhead,html[data-theme=glass]:not(.mobile) #side .snav,html[data-theme=glass]:not(.mobile) #side .stabs,html[data-theme=glass]:not(.mobile) #side #inst,html[data-theme=glass]:not(.mobile) #side #callbar{display:none!important}
  /* só as conversas: sem títulos de secção nem notas, cada uma é uma linha de menu com o realce em pílula */
  html[data-theme=glass]:not(.mobile) #side #list{padding:0;overflow-y:auto;overflow-x:hidden}
  html[data-theme=glass]:not(.mobile) #side #list .shead,html[data-theme=glass]:not(.mobile) #side #list .sec,html[data-theme=glass]:not(.mobile) #side #list .lsec[data-key=notes],html[data-theme=glass]:not(.mobile) #side #list .nempty{display:none}
  html[data-theme=glass]:not(.mobile) #side #list .item,html[data-theme=glass]:not(.mobile) #side #list .crow{margin:2px 0;width:100%;min-height:52px;padding:6px 14px;border-radius:20px;border:0;background:transparent;box-shadow:none;gap:12px;font-size:15px;color:#ececf1}
  html[data-theme=glass]:not(.mobile) #side #list .item:hover,html[data-theme=glass]:not(.mobile) #side #list .crow:hover{background:rgba(255,255,255,.07)}
  html[data-theme=glass]:not(.mobile) #side #list .item.on,html[data-theme=glass]:not(.mobile) #side #list .crow.on{background:rgba(255,255,255,.1);box-shadow:none}
  html[data-theme=glass]:not(.mobile) #side #list .av{width:32px;height:32px}
  /* as linhas entram em cascata com a mesma mola */
  html[data-theme=glass]:not(.mobile) body.rail-open #side #list .item,html[data-theme=glass]:not(.mobile) body.rail-open #side #list .crow{animation:gl-row .6s var(--gl-spring) both}
  html[data-theme=glass]:not(.mobile) body.rail-open #side #list .item:nth-child(2),html[data-theme=glass]:not(.mobile) body.rail-open #side #list .crow:nth-child(2){animation-delay:.03s}
  html[data-theme=glass]:not(.mobile) body.rail-open #side #list .item:nth-child(3),html[data-theme=glass]:not(.mobile) body.rail-open #side #list .crow:nth-child(3){animation-delay:.06s}
  html[data-theme=glass]:not(.mobile) body.rail-open #side #list .item:nth-child(n+4),html[data-theme=glass]:not(.mobile) body.rail-open #side #list .crow:nth-child(n+4){animation-delay:.09s}
  @keyframes gl-row{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
  /* sem barra de rolagem visível no balão (a lista continua a deslizar) */
  html[data-theme=glass]:not(.mobile) #side #list{scrollbar-width:none}
  html[data-theme=glass]:not(.mobile) #side #list::-webkit-scrollbar{display:none}
  /* sem a faixa «Tudo calmo por aqui» no Início (volta quando há uma chamada a decorrer) */
  html[data-theme=glass]:not(.mobile) #hBig:not(:has(.hero.live)){display:none}
}
@media(prefers-reduced-motion:reduce){html[data-theme=glass] #side,html[data-theme=glass] #rail .rbtn,html[data-theme=glass] #side #list .item,html[data-theme=glass] #side #list .crow{transition-duration:.01s!important;transition-delay:0s!important;animation:none!important}}

/* ---- cabeçalho da conversa flutuante (só no tema Vidro, computador): cápsula de vidro suspensa por cima das mensagens ---- */
@media(min-width:761px){
  html[data-theme=glass]:not(.mobile) #conv .chead{position:relative;z-index:6;box-sizing:border-box;height:64px;min-height:64px;margin:12px 14px -76px;padding:8px 10px 8px 14px;gap:12px;
    border-radius:26px;border:1px solid rgba(255,255,255,.1);border-top-color:rgba(255,255,255,.28);background:rgba(22,22,28,.38);
    -webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 18px 40px -18px rgba(0,0,0,.7);
    transition:background .3s ease,-webkit-backdrop-filter .3s ease,backdrop-filter .3s ease,box-shadow .3s ease}
  /* vidro mais forte quando as mensagens passam por trás */
  html[data-theme=glass]:not(.mobile) #conv .chead.under{background:rgba(22,22,28,.58);-webkit-backdrop-filter:blur(34px) saturate(180%);backdrop-filter:blur(34px) saturate(180%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 22px 50px -16px rgba(0,0,0,.85)}
  html[data-theme=glass]:not(.mobile) #conv #msgs{padding-top:92px}
  html[data-theme=glass]:not(.mobile) #conv #pside{padding-top:80px}
  /* com a faixa de chamada, a barra de pesquisa, a mensagem fixada ou a chamada aberta o cabeçalho deixa de flutuar por cima */
  html[data-theme=glass]:not(.mobile) #conv:has(#banner:not([hidden]),#findbar:not([hidden]),#pinbar:not([hidden]),#call:not([hidden])) .chead{margin-bottom:10px}
  html[data-theme=glass]:not(.mobile) #conv:has(#banner:not([hidden]),#findbar:not([hidden]),#pinbar:not([hidden]),#call:not([hidden])) #msgs{padding-top:14px}
  html[data-theme=glass]:not(.mobile) #conv:has(#banner:not([hidden]),#findbar:not([hidden]),#pinbar:not([hidden]),#call:not([hidden])) #pside{padding-top:revert-layer}
  /* nome em destaque, estado e atividade em texto secundário */
  html[data-theme=glass]:not(.mobile) #conv .chead h2{font:600 17px/1.2 -apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI Variable Display","Segoe UI",var(--font);letter-spacing:-.01em;color:#fff}
  html[data-theme=glass]:not(.mobile) #conv .chead .sub{font:400 12.5px/1.3 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI Variable Text","Segoe UI",var(--font);color:rgba(235,235,245,.6)}
  /* indicador de presença animado */
  html[data-theme=glass]:not(.mobile) #conv .chead .avw .dot{border-color:rgba(30,30,36,.9)}
  html[data-theme=glass]:not(.mobile) #conv .chead .avw .dot.on{border-radius:50%;animation:gl-pres 2.4s ease-out infinite}
  @keyframes gl-pres{0%{box-shadow:0 0 0 0 rgba(52,199,89,.55)}70%{box-shadow:0 0 0 7px rgba(52,199,89,0)}100%{box-shadow:0 0 0 0 rgba(52,199,89,0)}}
  /* chamada de voz, vídeo e opções em cápsulas translúcidas */
  html[data-theme=glass]:not(.mobile) #conv .chead .cacts{gap:6px}
  html[data-theme=glass]:not(.mobile) #conv .chead .cbtn{width:40px;height:40px;border-radius:999px;color:#f2f2f7;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.16);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:transform .45s var(--gl-spring),background .15s}
  html[data-theme=glass]:not(.mobile) #conv .chead .cbtn:hover{background:rgba(255,255,255,.18);transform:scale(1.06)}
  html[data-theme=glass]:not(.mobile) #conv .chead .cbtn:active{transform:scale(.9);transition-duration:.08s}
}
@media(prefers-reduced-motion:reduce){html[data-theme=glass] #conv .chead .avw .dot.on{animation:none}}
