/* Gordon skin: zips. Loaded after ui/ui.css. */

/* Restaura feedback de estado perdido no redesign flat (styles.css ~1590-1700).
   Regras de cor seguem --accent (tema Zips via zipsApplyAccentTheme);
   estados destrutivos/mutado usam --danger, independente do tema. */
:root{
  --zips-danger:var(--danger,#E50914);
  --zips-danger-hover:color-mix(in srgb,var(--zips-danger) 84%,#fff);
  --zips-danger-soft:color-mix(in srgb,var(--zips-danger) 18%,transparent);
  --zips-danger-ink:var(--danger-text,#ff5a6c);
  --zips-on-accent:var(--accent-ink,var(--white,#fff));
  --zips-popover-shadow:0 18px 44px rgba(0,0,0,.55);
  --zips-focus-ring:0 0 0 2px var(--bg-app),0 0 0 4px var(--accent);
}

/* ---------- Dock da chamada ---------- */
/* Ligado (camera / compartilhando / switches): accent solido. */
#page-zips .zips-call-dock button.on,
#page-zips .zips-call-dock button.active{color:var(--text-primary)}
#page-zips .zips-call-dock button.on>.zips-dock-icon,
#page-zips .zips-call-dock button.active>.zips-dock-icon{background:var(--accent);color:var(--zips-on-accent)}
#page-zips .zips-call-dock button.on:hover>.zips-dock-icon,
#page-zips .zips-call-dock button.active:hover>.zips-dock-icon{background:var(--accent-hover)}
#page-zips .zips-call-dock button.on>small,
#page-zips .zips-call-dock button.active>small{color:var(--text-primary);font-weight:600}

/* Mutado (mic / fones desligados): vermelho com risco, em qualquer largura. */
#page-zips .zips-call-dock button.muted{color:var(--zips-danger-ink)}
#page-zips .zips-call-dock button.muted>.zips-dock-icon{position:relative;background:var(--zips-danger-soft);color:var(--zips-danger-ink)}
#page-zips .zips-call-dock button.muted:hover>.zips-dock-icon{background:color-mix(in srgb,var(--zips-danger) 28%,transparent)}
#page-zips .zips-call-dock button.muted>.zips-dock-icon::after{content:"";position:absolute;left:50%;top:50%;width:58%;height:2px;border-radius:2px;background:var(--zips-danger-ink);transform:translate(-50%,-50%) rotate(-43deg);box-shadow:0 0 0 1.5px var(--bg-elevated);pointer-events:none}
#page-zips .zips-call-dock button.muted>small{color:var(--zips-danger-ink)}

/* Encerrar: sempre vermelho (nao segue o tema). */
#page-zips .zips-call-dock .zips-dock-danger>.zips-dock-icon,
#page-zips .zips-call-dock .zips-dock-danger>span{background:var(--zips-danger);color:var(--white,#fff)}
#page-zips .zips-call-dock .zips-dock-danger:hover>span,
#page-zips .zips-call-dock .zips-dock-danger:hover>.zips-dock-icon{background:var(--zips-danger-hover)}
#page-zips .zips-call-dock .zips-dock-danger>small{color:var(--zips-danger-ink)}

/* Parar tela: so aparece enquanto voce transmite -> indicador "ao vivo". */
#page-zips .zips-call-dock #zips-stop-screen>.zips-dock-icon{position:relative;background:var(--zips-danger-soft);color:var(--zips-danger-ink)}
#page-zips .zips-call-dock #zips-stop-screen>.zips-dock-icon::before{content:"";position:absolute;top:3px;right:3px;width:9px;height:9px;border-radius:50%;background:var(--zips-danger);box-shadow:0 0 0 2px var(--bg-elevated);animation:zipsLivePulse 1.6s ease-in-out infinite}
#page-zips .zips-call-dock #zips-stop-screen:hover>.zips-dock-icon{background:color-mix(in srgb,var(--zips-danger) 28%,transparent)}
#page-zips .zips-call-dock #zips-stop-screen>small{color:var(--zips-danger-ink)}

/* Popover de volume/qualidade aberto -> botao fica marcado. */
#page-zips:has(#zips-screen-settings-popover:not(.hidden)) #zips-screen-settings-button>.zips-dock-icon,
#page-zips:has(#zips-screen-volume-popover:not(.hidden)) #zips-screen-volume-button>.zips-dock-icon{background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}

/* Foco por teclado. */
#page-zips .zips-call-dock button:focus-visible{outline:0}
#page-zips .zips-call-dock button:focus-visible>.zips-dock-icon,
#page-zips .zips-call-dock button:focus-visible>span:first-child{box-shadow:var(--zips-focus-ring)}
#page-zips .zips-call-dock button:active>.zips-dock-icon{transform:scale(.94)}
#page-zips .zips-call-dock button>.zips-dock-icon{transition:var(--transition-ui),transform 120ms ease}

/* ---------- Badges mic/fones mutados ---------- */
#page-zips .zips-audio-status-badge,
.zips-floating-avatar .zips-audio-status-badge{background:var(--zips-danger);color:#fff!important;border:2px solid var(--bg-app);box-shadow:0 2px 6px rgba(0,0,0,.45)}

/* ---------- Participantes ---------- */
#page-zips .zips-presence-dot{border-color:var(--bg-app)}
#page-zips .zips-presence-dot.online{background:var(--success);box-shadow:0 0 0 1px color-mix(in srgb,var(--success) 40%,transparent)}

/* Participante clicavel (ajuste de volume). */
#page-zips .zips-participant.volume-adjustable{cursor:pointer;border-radius:var(--r-lg);transition:var(--transition-ui)}
#page-zips .zips-participant.volume-adjustable:hover{background:var(--white-a04);outline:1px solid var(--border)}
#page-zips .zips-participant.volume-adjustable:focus-visible{background:var(--accent-soft);outline:2px solid var(--accent);outline-offset:0}

/* Gordon Music (mascote): sem anel quadrado/escala; brilho quando tocando. */
#page-zips .zips-participant.music-bot.speaking .zips-participant-avatar.zips-music-mascot-avatar{outline:0;box-shadow:none;transform:none;filter:drop-shadow(0 0 10px color-mix(in srgb,var(--accent) 70%,transparent))}
#page-zips .zips-participant.music-bot strong em{font-style:normal;margin-left:4px;padding:1px 6px;border-radius:var(--r-full);background:var(--accent);color:var(--zips-on-accent);font-size:var(--fs-badge,10px);font-weight:800;vertical-align:middle}

/* ---------- Avatares flutuantes ---------- */
.zips-floating-avatar.music-mascot,
.zips-floating-avatar.music-mascot.speaking{border:0;outline:0}
.zips-floating-avatar.music-mascot.speaking{filter:drop-shadow(0 0 8px color-mix(in srgb,var(--accent) 70%,transparent))}
.zips-floating-avatar.zips-character-avatar.speaking{outline:0;filter:drop-shadow(0 0 6px rgba(55,237,138,.7))}
.zips-floating-avatar.volume-adjustable:hover{border-color:var(--white-a40)}
.zips-floating-avatar.music-mascot.volume-adjustable:hover{border-color:transparent}
.zips-floating-avatar:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ---------- Troca de pagina (participantes / tela) ---------- */
#page-zips .zips-call-page-switch{border-radius:var(--r-full)}
#page-zips .zips-call-page-switch button{transition:var(--transition-ui)}
#page-zips .zips-call-page-switch button:not(.active):not(:disabled):hover{color:var(--text-primary)}
#page-zips .zips-call-page-switch button.available:not(.active){color:var(--text-primary)}
#page-zips .zips-call-page-switch i.active{background:var(--zips-danger);box-shadow:0 0 0 2px var(--bg-elevated);animation:zipsLivePulse 1.6s ease-in-out infinite}
#page-zips .zips-call-page-switch button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}

/* ---------- Popovers ---------- */
#page-zips .zips-screen-settings-popover,#page-zips .zips-screen-volume-popover,
.zips-camera-chooser,.zips-peer-volume-popover,.zips-chat-create-popover{border-radius:var(--r-lg);box-shadow:var(--zips-popover-shadow)}
.zips-peer-volume-row input{accent-color:var(--accent)}
.zips-peer-volume-mute{border-radius:var(--r-full);background:var(--btn-secondary,var(--bg-surface-hover));color:var(--text-primary);font-weight:600;transition:var(--transition-ui)}
.zips-peer-volume-mute:hover{background:var(--btn-secondary-hover,var(--white-a12))}
.zips-peer-volume-head button{transition:var(--transition-ui)}
.zips-peer-volume-head button:hover{background:var(--white-a12);color:var(--text-primary)}
.zips-camera-chooser button{border-radius:var(--r-md)}
.zips-camera-chooser button:hover{background:var(--accent-soft);color:var(--text-primary)}

/* ---------- Painel de tema / personalizar ---------- */
#page-zips .zips-room-customize[aria-expanded="true"]{background:var(--accent);border-color:var(--accent);color:var(--zips-on-accent)}
.zips-theme-color.active{border-color:var(--white)}
.zips-theme-color.active::after{text-shadow:0 1px 3px rgba(0,0,0,.85)}
#page-zips .zips-theme-tile:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ---------- Musica ---------- */
#page-zips #zips-music-playlist[aria-expanded="true"]{background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
#page-zips .zips-music-controls button.active,
#page-zips .zips-music-controls button[aria-pressed="true"]{background:var(--accent-soft)}

/* ---------- Chat ---------- */
#page-zips .zips-chat-tab:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--r-sm)}

/* ---------- Botoes: pill para texto, circulo para icone ---------- */
#page-zips .primary:not(.danger),
#page-zips .zips-stage-connect,
#page-zips .zips-music-actions button,
#page-zips .zips-mobile-music-actions button,
#page-zips .zips-mobile-music-link button,
#page-zips .zips-games-entry-body button,
#page-zips .zips-games-lobby-actions button,
#page-zips .zips-rabisca-lobby-controls button,
#page-zips .zips-chat-return:not(.hidden){border-radius:var(--r-full)}
#page-zips .zips-mobile-music-controls button,
#page-zips .zips-games-board-header>button{border-radius:var(--r-full)}
#page-zips .zips-stage-tools>button:focus-visible,
#page-zips .zips-room-customize:focus-visible,
#page-zips .zips-music-controls button:focus-visible,
#page-zips .zips-chat-admin-actions button:focus-visible,
#page-zips .zips-chat-compose button:focus-visible,
#page-zips .primary:focus-visible{outline:0;box-shadow:var(--zips-focus-ring)}

@keyframes zipsLivePulse{0%,100%{opacity:1}50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){
  #page-zips .zips-call-dock #zips-stop-screen>.zips-dock-icon::before,
  #page-zips .zips-call-page-switch i.active{animation:none}
}

/* =====================================================================
   Zips estilo Discord (desktop): canais | palco + chat | membros/musica.
   Colunas laterais fixas, centro flexivel, 100% da largura da tela.
   ===================================================================== */
#page-zips .zips-native-shell,#page-zips .zips-native-body,#page-zips .zips-native-content,#page-zips .zips-call-layout{max-width:none;width:100%}
#page-zips .zips-call-left{display:none}

@media (min-width:761px){
  #page-zips .zips-call-layout{display:grid;grid-template-columns:232px minmax(0,1fr);gap:var(--s-3);align-items:start}
  #page-zips .zips-call-layout>.zips-call-right{grid-column:1/-1}

}
/* Left column, user panel, presence dots and chat header: all widths (phone uses them in the drawer). */
  /* Coluna esquerda: canais de texto, canal de voz e painel do usuario. */
  #page-zips .zips-call-left{display:flex;flex-direction:column;position:sticky;top:12px;align-self:start;height:calc(100dvh - 100px);min-height:420px;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--bg-surface);overflow:hidden}
  #page-zips .zips-left-head{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 var(--s-4);border-bottom:1px solid var(--border);font-size:var(--fs-card);font-weight:700;color:var(--text-primary)}
  #page-zips .zips-server-mini{width:8px;height:8px;border-radius:50%;background:var(--text-muted)}
  #page-zips:has(#zips-status-dot.online) .zips-server-mini{background:var(--success)}
  #page-zips .zips-left-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;padding:var(--s-2);scrollbar-width:thin}
  #page-zips .zips-left-section+.zips-left-section{margin-top:var(--s-3)}
  #page-zips .zips-left-title{margin:var(--s-2) var(--s-2) var(--s-1);color:var(--text-muted);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
  #page-zips .zips-left-channels{display:grid;gap:2px}
  #page-zips .zips-left-channel,#page-zips .zips-left-voice-room{position:relative;display:flex;align-items:center;gap:8px;width:100%;min-height:34px;padding:0 var(--s-3);border:0;border-radius:var(--r-full);background:transparent;color:var(--text-secondary);font:inherit;font-size:var(--fs-body);font-weight:500;text-align:left;cursor:pointer;transition:var(--transition-ui)}
  #page-zips .zips-left-channel:hover,#page-zips .zips-left-voice-room:hover{background:var(--white-a08);color:var(--text-primary)}
  #page-zips .zips-left-channel:focus-visible,#page-zips .zips-left-voice-room:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
  #page-zips .zips-left-channel.active{background:var(--accent-soft);color:var(--text-primary);font-weight:600}
  #page-zips .zips-left-channel.active .zips-left-hash{color:var(--accent)}
  #page-zips .zips-left-hash{display:grid;place-items:center;width:18px;flex:0 0 18px;color:var(--text-muted);font-size:17px;font-weight:600}
  #page-zips .zips-left-hash svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  #page-zips .zips-left-label{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #page-zips .zips-left-channel.unread{color:var(--text-primary);font-weight:700}
  #page-zips .zips-left-channel.unread::before{content:"";position:absolute;left:-8px;top:50%;width:4px;height:8px;border-radius:0 4px 4px 0;background:var(--text-primary);transform:translateY(-50%)}
  #page-zips .zips-left-unread{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:var(--accent)}
  body.zips-call-joined #page-zips .zips-left-voice-room{color:var(--text-primary);cursor:default}
  body.zips-call-joined #page-zips .zips-left-voice-room .zips-left-hash{color:var(--success)}
  #page-zips .zips-left-voice{display:grid;gap:2px;padding:2px 0 0 26px}
  #page-zips .zips-left-voice.empty::after{content:"Ninguém na chamada";padding:4px var(--s-2);color:var(--text-muted);font-size:var(--fs-meta)}
  #page-zips .zips-voice-member{display:flex;align-items:center;gap:8px;min-height:30px;padding:0 var(--s-2);border-radius:var(--r-full);color:var(--text-secondary);font-size:var(--fs-meta)}
  #page-zips .zips-voice-member:hover{background:var(--white-a04)}
  #page-zips .zips-voice-av{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:var(--bg-elevated) center/cover no-repeat;color:var(--text-primary);font-size:11px;font-weight:700;transition:box-shadow 120ms ease}
  #page-zips .zips-voice-member.music-bot .zips-voice-av{background:var(--accent-soft);color:var(--accent)}
  #page-zips .zips-voice-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #page-zips .zips-voice-member.is-me .zips-voice-name{color:var(--text-primary)}
  #page-zips .zips-voice-member.speaking .zips-voice-av{box-shadow:0 0 0 2px var(--bg-surface),0 0 0 4px var(--success)}
  #page-zips .zips-voice-member.speaking .zips-voice-name{color:var(--text-primary)}
  #page-zips .zips-voice-member .zips-audio-status-badges{position:static;display:flex;gap:2px;margin-left:auto}
  #page-zips .zips-voice-member .zips-audio-status-badge{width:18px;height:18px;min-width:18px;border-width:0;box-shadow:none;background:transparent;color:var(--zips-danger-ink)!important}
  #page-zips .zips-voice-member .zips-audio-status-badge svg{width:14px;height:14px}

  /* Painel do usuario (canto inferior esquerdo). */
  #page-zips .zips-user-panel{display:flex;align-items:center;gap:var(--s-2);min-height:60px;padding:var(--s-2) var(--s-3);border-top:1px solid var(--border);background:var(--bg-elevated)}
  #page-zips .zips-user-av-wrap{position:relative;flex:0 0 36px;width:36px;height:36px}
  #page-zips .zips-user-av{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:var(--bg-surface-hover) center/cover no-repeat;color:var(--text-primary);font-weight:700}
  #page-zips .zips-user-text{min-width:0;flex:1;display:grid;line-height:1.2}
  #page-zips .zips-user-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--fs-meta);font-weight:700;color:var(--text-primary)}
  #page-zips .zips-user-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--text-secondary)}
  #page-zips .zips-user-panel.in-call .zips-user-text small{color:var(--success)}
  #page-zips .zips-user-btn{position:relative;display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--text-secondary);cursor:pointer;transition:var(--transition-ui)}
  #page-zips .zips-user-btn:hover{background:var(--white-a08);color:var(--text-primary)}
  #page-zips .zips-user-btn:focus-visible{outline:0;box-shadow:var(--zips-focus-ring)}
  #page-zips .zips-user-btn.active{background:var(--accent-soft);color:var(--accent)}
  #page-zips .zips-user-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  #page-zips .zips-user-call-only{display:none}
  #page-zips .zips-user-panel.in-call .zips-user-call-only{display:grid}
  #page-zips:has(#zips-toggle-mute.muted) #zips-user-mic,
  #page-zips:has(#zips-toggle-deafen.muted) #zips-user-deafen{background:var(--zips-danger-soft);color:var(--zips-danger-ink)}
  #page-zips:has(#zips-toggle-mute.muted) #zips-user-mic::after,
  #page-zips:has(#zips-toggle-deafen.muted) #zips-user-deafen::after{content:"";position:absolute;left:50%;top:50%;width:20px;height:2px;border-radius:2px;background:currentColor;transform:translate(-50%,-50%) rotate(-43deg);box-shadow:0 0 0 1.5px var(--bg-elevated)}

  /* Pontos de presenca compartilhados (membros e usuario). */
  #page-zips .zips-member-dot{position:absolute;right:-2px;bottom:-2px;width:10px;height:10px;border:3px solid var(--bg-elevated);border-radius:50%;background:var(--text-muted);box-sizing:content-box}
  #page-zips .zips-member-dot.online{background:var(--success)}

  /* Chat: so o canal ativo aparece no cabecalho (lista completa fica na coluna esquerda). */
  #page-zips .zips-chat-head .zips-chat-tab-wrap:not(.active){display:none}
  #page-zips .zips-chat-head .zips-chat-tab.active{padding:0;font-size:var(--fs-card);font-weight:700;color:var(--text-primary)}
  #page-zips .zips-chat-head .zips-chat-tab.active::after{display:none}

@media (min-width:761px){
  /* Palco: participantes em blocos (tiles). */
  #page-zips .zips-participant-strip{grid-template-columns:repeat(auto-fit,minmax(150px,220px));justify-content:center;align-content:center;gap:var(--s-3);width:100%}
  #page-zips .zips-participant-strip>.zips-participant{position:relative;display:grid;place-items:center;width:100%;min-height:136px;aspect-ratio:16/10;padding:var(--s-3);border:2px solid transparent;border-radius:var(--r-lg);background:var(--bg-elevated);transition:border-color 120ms ease,box-shadow 120ms ease,background-color 150ms ease}
  #page-zips .zips-participant-strip>.zips-participant .zips-participant-avatar{width:72px;height:72px;margin:0}
  #page-zips .zips-participant-strip>.zips-participant.music-bot .zips-participant-avatar{width:96px;height:96px}
  #page-zips .zips-participant-strip>.zips-participant>strong{position:absolute;left:8px;bottom:8px;max-width:calc(100% - 16px);margin:0;padding:2px 10px;border-radius:var(--r-full);background:rgba(0,0,0,.55);color:var(--text-primary);font-size:12px;font-weight:600;line-height:20px}
  #page-zips .zips-participant-strip>.zips-participant.speaking{border-color:var(--success);box-shadow:0 0 0 3px rgba(55,237,138,.14)}
  #page-zips .zips-participant-strip>.zips-participant.music-bot.speaking{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
  #page-zips .zips-participant-strip>.zips-participant.volume-adjustable:hover{background:var(--bg-surface-hover);outline:0}
  #page-zips .zips-participant-strip>.zips-participant .zips-audio-status-badges{top:-6px;right:-6px}
}

@media (min-width:1101px){
  #page-zips .zips-call-layout{grid-template-columns:232px minmax(0,1fr) 300px}
  #page-zips .zips-call-layout>.zips-call-right{grid-column:auto;display:grid}
  #page-zips .zips-call-layout.zips-right-collapsed{grid-template-columns:232px minmax(0,1fr)}
  #page-zips .zips-call-layout.zips-right-collapsed>.zips-call-right{display:none}
  /* Painel de tema/playlist abertos sempre ficam visiveis. */
  #page-zips .zips-call-layout.zips-right-collapsed:has(#zips-theme-panel:not(.hidden),#zips-library-panel:not(.hidden)){grid-template-columns:232px minmax(0,1fr) 300px}
  #page-zips .zips-call-layout.zips-right-collapsed:has(#zips-theme-panel:not(.hidden),#zips-library-panel:not(.hidden))>.zips-call-right{display:grid}
}
@media (max-width:1100px){#page-zips .zips-members-toggle{display:none}}
#page-zips .zips-members-toggle[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
#page-zips .zips-members-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* Membros (coluna direita). */
#page-zips .zips-members-list{max-height:min(46vh,520px);overflow-y:auto;padding:0 var(--s-2) var(--s-3);scrollbar-width:thin}
#page-zips .zips-members-group{margin:var(--s-2) var(--s-2) var(--s-1);color:var(--text-muted);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
#page-zips .zips-members-list ul{display:grid;gap:2px;margin:0;padding:0;list-style:none}
#page-zips .zips-member{display:flex;align-items:center;gap:var(--s-3);min-height:42px;padding:0 var(--s-2);border-radius:var(--r-full);transition:var(--transition-ui)}
#page-zips .zips-member:hover{background:var(--white-a04)}
#page-zips .zips-member-av{position:relative;display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:var(--bg-elevated) center/cover no-repeat;color:var(--text-primary);font-size:13px;font-weight:700}
#page-zips .zips-member .zips-member-dot{border-color:var(--bg-surface)}
#page-zips .zips-member-text{min-width:0;display:grid;line-height:1.2}
#page-zips .zips-member-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--fs-meta);font-weight:600;color:var(--text-primary)}
#page-zips .zips-member-text small{font-size:11px;color:var(--accent);font-weight:600}
#page-zips .zips-member.offline{opacity:.45}
#page-zips .zips-members-empty{margin:0;padding:var(--s-3);color:var(--text-muted);font-size:var(--fs-meta)}

/* ---------- Chat estilo Discord (todas as larguras) ---------- */
#page-zips .zips-chat-history{padding:0 0 var(--s-3)}
#page-zips .zips-chat-history>p{padding:var(--s-4)}
#page-zips .zips-chat-messages{gap:0;padding-top:var(--s-2)}
#page-zips .zips-chat-messages>.zips-msg{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:var(--s-3);align-items:start;margin-top:var(--s-3);padding:2px var(--s-4);border-radius:0;background:transparent;transition:background-color 80ms linear}
#page-zips .zips-chat-messages>.zips-msg.zips-msg-cont{margin-top:0}
#page-zips .zips-chat-messages>.zips-msg:hover,#page-zips .zips-chat-messages>.zips-msg:focus-within{background:var(--white-a04)}
#page-zips .zips-chat-messages>.zips-msg.zips-msg-mention{background:color-mix(in srgb,var(--accent) 9%,transparent);box-shadow:inset 2px 0 0 var(--accent)}
#page-zips .zips-msg-day{grid-column:1/-1;display:flex;align-items:center;gap:var(--s-2);margin:var(--s-2) 0 var(--s-3);color:var(--text-muted);font-size:11px;font-weight:700}
#page-zips .zips-msg-day::before,#page-zips .zips-msg-day::after{content:"";flex:1;height:1px;background:var(--border)}
#page-zips .zips-chat-messages .zips-msg-day span{color:var(--text-muted);font-size:11px}
#page-zips .zips-chat-messages .zips-msg-avatar{display:grid;place-items:center;width:40px;height:40px;margin-top:2px;border-radius:50%;background:var(--bg-elevated) center/cover no-repeat;color:var(--text-primary);font-size:15px;font-weight:700}
#page-zips .zips-chat-messages .zips-msg-avatar.has-image{color:transparent}
#page-zips .zips-msg-side{padding-top:3px;color:var(--text-muted);font-size:var(--fs-badge);text-align:right;opacity:0;line-height:18px;white-space:nowrap}
#page-zips .zips-msg:hover .zips-msg-side{opacity:1}
#page-zips .zips-msg-main{min-width:0;max-width:80ch}
#page-zips .zips-msg-head{display:flex;align-items:baseline;gap:var(--s-2);min-width:0}
#page-zips .zips-chat-messages .zips-msg-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--fs-card);font-weight:600;color:var(--text-primary)}
#page-zips .zips-msg-head time{flex:0 0 auto;color:var(--text-muted);font-size:11px}
#page-zips .zips-chat-messages .zips-msg-text{display:block;color:var(--text-primary);font-size:var(--fs-body);line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
#page-zips .zips-msg-link{color:var(--accent);text-decoration:none}
#page-zips .zips-msg-link:hover{text-decoration:underline}
#page-zips .zips-msg-at{padding:0 3px;border-radius:4px;background:var(--accent-soft);color:var(--accent);font-weight:600}
#page-zips .zips-msg-actions{position:absolute;right:var(--s-3);top:-14px;z-index:2;display:none;gap:2px;padding:2px;border:1px solid var(--border);border-radius:var(--r-full);background:var(--bg-elevated);box-shadow:0 6px 16px rgba(0,0,0,.4)}
#page-zips .zips-chat-messages>.zips-msg:first-child .zips-msg-actions,#page-zips .zips-msg.zips-msg-newday .zips-msg-actions{top:2px}
#page-zips .zips-msg:hover .zips-msg-actions,#page-zips .zips-msg:focus-within .zips-msg-actions{display:flex}
#page-zips .zips-msg-actions button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--text-secondary);font-size:14px;cursor:pointer}
#page-zips .zips-msg-actions button:hover{background:var(--white-a08);color:var(--text-primary)}
#page-zips .zips-msg-actions button:focus-visible{outline:2px solid var(--accent);outline-offset:0}
@media (hover:none){#page-zips .zips-msg-actions{display:none!important}}
/* Anexos e convites alinhados ao texto das mensagens. */
#page-zips .zips-chat-messages>.zips-chat-file,#page-zips .zips-chat-messages>.watch-invite-card{margin:var(--s-3) var(--s-4) 0 calc(var(--s-4) + 52px);max-width:min(420px,calc(100% - 88px));border-radius:var(--r-lg)}
#page-zips .zips-chat-file a{color:var(--accent)}
#page-zips .zips-file-preview{max-width:min(360px,100%);max-height:280px;border-radius:var(--r-md)}

/* Compositor: barra arredondada com anexar dentro. */
#page-zips .zips-chat-compose{display:flex;align-items:center;gap:var(--s-1);min-height:0;height:auto;margin:0 var(--s-3) var(--s-3);padding:4px;border:1px solid var(--border);border-top:1px solid var(--border);border-radius:var(--r-full);background:var(--bg-elevated);transition:border-color 150ms ease}
#page-zips .zips-chat-compose:focus-within{border-color:var(--accent)}
#page-zips .zips-chat-compose input{flex:1 1 auto;min-width:0;height:40px;border:0;background:transparent;padding:0 var(--s-3)}
#page-zips .zips-chat-compose input:focus{outline:0;border:0}
#page-zips .zips-chat-compose #zips-file-attach{order:-1;flex:0 0 36px;width:36px;height:36px;background:var(--white-a08);color:var(--text-primary);font-size:18px}
#page-zips .zips-chat-compose #zips-file-attach:hover{background:var(--white-a12)}
#page-zips .zips-chat-compose #zips-file-attach.hidden{display:none}
#page-zips .zips-chat-compose button[type="submit"]{flex:0 0 36px;width:36px;height:36px}
@media (max-width:760px){
  #page-zips .zips-chat-messages>.zips-msg{grid-template-columns:32px minmax(0,1fr);column-gap:var(--s-2);padding:2px var(--s-3)}
  #page-zips .zips-chat-messages .zips-msg-avatar{width:32px;height:32px;font-size:13px}
  #page-zips .zips-chat-messages>.zips-chat-file,#page-zips .zips-chat-messages>.watch-invite-card{margin-left:calc(var(--s-3) + 40px);max-width:calc(100% - 64px)}
  #page-zips .zips-chat-compose{margin:0 var(--s-2) var(--s-2)}
}

/* =====================================================================
   Vocabulario visual do Inicio aplicado ao Zips (vidro, raios, pilulas,
   hover lift, tipografia Poppins). Cores via tokens do tema Zips:
   --zips-accent / --zips-accent-wash / --zips-accent-glow (fallback --accent).
   ===================================================================== */
body #page-zips{--zx:var(--zips-accent,var(--accent));--zx-wash:var(--zips-accent-wash,var(--accent-soft));--zx-glow:var(--zips-accent-glow,transparent);font-family:var(--font-ui);font-size:var(--fs-body)}
body #page-zips .zips-native-shell{font-family:var(--font-ui)}

/* Superficies: cards de vidro iguais ao painel Zips do Inicio. */
body #page-zips .zips-native-card,
body #page-zips .zips-call-left{border:1px solid var(--glass-border);border-radius:var(--r-xl);background-color:var(--glass-bg);box-shadow:var(--glass-highlight),var(--glass-depth);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur)}
body #page-zips .zips-call-center .zips-chat-card{background-color:var(--glass-bg)}
body #page-zips .zips-stage{border-radius:calc(var(--r-xl) - 8px)}
body #page-zips .zips-native-card-head h3,body #page-zips .zips-native-card h3{font-size:var(--fs-card);font-weight:700;letter-spacing:0}
body #page-zips .zips-stage-title h2{font-size:var(--fs-section);font-weight:700;letter-spacing:-.01em}
body #page-zips .zips-user-panel{background:var(--white-a04);border-top:1px solid var(--glass-border)}
body #page-zips .zips-left-head{border-bottom:1px solid var(--glass-border);font-size:var(--fs-card)}

/* Navegacao do Zips: abas segmentadas em pilula (como .gh-tabs). */
body #page-zips .zips-games-global-nav{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--glass-border);border-radius:var(--r-full);background:var(--white-a04)}
body #page-zips .zips-games-global-nav button{min-height:36px;padding:0 var(--s-4);border-radius:var(--r-full);font-size:var(--fs-label);font-weight:600;color:var(--text-secondary)}
body #page-zips .zips-games-global-nav button.hidden{display:none}
body #page-zips .zips-games-global-nav button:hover{color:var(--text-primary);background:var(--white-a04)}
body #page-zips .zips-games-global-nav button.active{background:var(--white-a12);color:var(--text-primary);font-weight:700}
body #page-zips .zips-games-global-nav button.active::after{display:none}

/* Linhas de lista (canais, voz, membros, salas): r-md + hover white-a08, como .gh-person. */
body #page-zips .zips-left-channel,body #page-zips .zips-left-voice-room,body #page-zips .zips-voice-member,body #page-zips .zips-member,body #page-zips .zips-left-app{border-radius:var(--r-md)}
body #page-zips .zips-left-channel:hover,body #page-zips .zips-left-voice-room:hover,body #page-zips .zips-member:hover,body #page-zips .zips-left-app:hover{background:var(--white-a08)}
body #page-zips .zips-left-channel.active{background:var(--white-a12)}
body #page-zips .zips-left-channel.active .zips-left-hash,body #page-zips .zips-left-unread{color:var(--zx)}
body #page-zips .zips-left-unread{background:var(--zx);animation:zipsBadgeIn 220ms var(--ease,ease) both}

/* Apps da sala (Gordon Music / Jogos). */
body #page-zips .zips-left-app{display:flex;align-items:center;gap:var(--s-3);width:100%;min-height:48px;padding:var(--s-2);border:0;background:transparent;color:var(--text-primary);font:inherit;text-align:left;cursor:pointer;transition:var(--transition-ui)}
body #page-zips .zips-left-app.active{background:var(--white-a12)}
body #page-zips .zips-left-app-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:var(--r-md);background:var(--zx-wash);color:var(--zx);font-size:16px}
body #page-zips .zips-left-app-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body #page-zips .zips-left-app-text{min-width:0;flex:1;display:grid;line-height:1.25}
body #page-zips .zips-left-app-text strong{font-size:var(--fs-meta);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body #page-zips .zips-left-app-text small{font-size:11px;color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body #page-zips .zips-app-badge,
body #page-zips .zips-participant.music-bot strong em,
body #page-zips .zips-music-card-title em{flex:0 0 auto;padding:1px 6px;border-radius:var(--r-sm);background:var(--zx);color:var(--zips-on-accent);font-style:normal;font-size:var(--fs-badge);font-weight:800;letter-spacing:.04em;line-height:16px}
body #page-zips .zips-voice-member.music-bot .zips-voice-name::after{content:"BOT";margin-left:6px;padding:0 5px;border-radius:var(--r-sm);background:var(--zx);color:var(--zips-on-accent);font-size:var(--fs-badge);font-weight:800;line-height:16px;vertical-align:1px}
/* Card do Gordon Music como "atividade" do app. */
body #page-zips .zips-music-card{position:relative}
body #page-zips .zips-music-card::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--zx),transparent);opacity:.9;pointer-events:none}
body #page-zips .zips-music-card.zips-app-flash{animation:zipsFlash 700ms ease}

/* Botoes: pilula de texto com acento + brilho; secundarios fantasmas; hover lift. */
body #page-zips .primary:not(.danger),body #page-zips .zips-stage-connect{border-radius:var(--r-full);background:var(--zx);color:var(--zips-on-accent);font-weight:700;box-shadow:0 14px 36px -14px var(--zx);transition:background-color var(--t-color,150ms),transform var(--t-transform,150ms),box-shadow var(--t-transform,150ms)}
body #page-zips .primary:not(.danger):hover:not(:disabled),body #page-zips .zips-stage-connect:hover{background:var(--accent-hover);transform:translateY(-1px);box-shadow:0 18px 40px -14px var(--zx)}
body #page-zips .primary:not(.danger):active:not(:disabled){transform:scale(.97)}
body #page-zips button.secondary,body #page-zips .zips-music-actions button:not(.primary),body #page-zips .zips-games-lobby-actions button:not(.primary),body #page-zips .zips-mobile-music-actions button,body #page-zips .zips-mobile-music-link button{border:1px solid var(--glass-border);border-radius:var(--r-full);background:var(--white-a08);color:var(--text-primary);font-weight:600;transition:var(--transition-ui)}
body #page-zips button.secondary:hover,body #page-zips .zips-music-actions button:not(.primary):hover,body #page-zips .zips-games-lobby-actions button:not(.primary):hover{background:var(--white-a12)}
body #page-zips .zips-stage-tools>button,body #page-zips .zips-room-customize,body #page-zips .zips-music-controls button:not(.play),body #page-zips .zips-chat-admin-actions button,body #page-zips .zips-games-board-header>button,body #page-zips .zips-band-header>button{border:1px solid var(--glass-border-strong);background:var(--white-a08);color:var(--text-primary);transition:background-color var(--t-color,150ms),color var(--t-color,150ms),transform var(--t-transform,150ms)}
body #page-zips .zips-stage-tools>button:hover,body #page-zips .zips-room-customize:hover,body #page-zips .zips-music-controls button:not(.play):hover,body #page-zips .zips-chat-admin-actions button:hover{background:var(--white);color:var(--text-on-light,#111);transform:scale(1.06)}
body #page-zips .zips-room-customize[aria-expanded="true"],body #page-zips .zips-members-toggle[aria-pressed="true"]{background:var(--zx-wash);border-color:var(--zx);color:var(--zx)}
body #page-zips .zips-call-dock{border:1px solid var(--glass-border-strong);background:var(--glass-bg-strong);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);box-shadow:var(--shadow-md)}
body #page-zips .zips-call-dock button.on>.zips-dock-icon,body #page-zips .zips-call-dock button.active>.zips-dock-icon{background:var(--zx);box-shadow:0 10px 24px -12px var(--zx)}
body #page-zips .zips-call-page-switch{border:1px solid var(--glass-border);background:var(--glass-bg-strong);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur)}
body #page-zips .zips-call-page-switch button.active{background:var(--white-a12);color:var(--text-primary)}
body #page-zips .zips-switch.on{background:var(--zx)}
body #page-zips input:not([type=range]):not([type=checkbox]):not([type=file]),body #page-zips select{border-radius:var(--r-input,12px)}
body #page-zips .zips-chat-compose input,body #page-zips .zips-music-link input{border-radius:var(--r-full)}
body #page-zips .zips-chat-compose{border-color:var(--glass-border-strong);background:var(--glass-bg-strong)}
body #page-zips .zips-chat-compose:focus-within{border-color:var(--zx)}
body #page-zips .zips-chat-compose button[type="submit"]{background:var(--zx);color:var(--zips-on-accent)}

/* Popovers como as folhas do Inicio. */
body #page-zips .zips-screen-settings-popover,body #page-zips .zips-screen-volume-popover,.zips-camera-chooser,.zips-peer-volume-popover,.zips-chat-create-popover{border:1px solid var(--glass-border-strong);border-radius:var(--r-lg);background:var(--glass-bg-solid);-webkit-backdrop-filter:var(--glass-blur-strong);backdrop-filter:var(--glass-blur-strong);box-shadow:var(--shadow-lg);animation:zipsPopIn 160ms var(--ease,ease) both}
body #page-zips .zips-screen-settings-popover.hidden,body #page-zips .zips-screen-volume-popover.hidden{animation:none}

/* ---------- SALAS ---------- */
body #page-zips .zips-rooms-head{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);margin-bottom:var(--s-4)}
body #page-zips .zips-rooms-head h2{margin:0;font-size:var(--fs-page);font-weight:700;letter-spacing:-.02em}
body #page-zips .zips-rooms-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:var(--s-3)}
body #page-zips .zips-room-row{padding:var(--s-2);transition:transform var(--t-transform,150ms),border-color var(--t-color,150ms),background-color var(--t-color,150ms)}
body #page-zips .zips-room-row:hover{transform:translateY(-2px);border-color:var(--glass-border-strong);background-color:var(--glass-bg-hover)}
body #page-zips .zips-room-entry{border-radius:var(--r-lg)}
body #page-zips .zips-room-entry strong{font-size:var(--fs-card);font-weight:700}
body #page-zips .zips-room-entry span{color:var(--text-secondary)}
body #page-zips .zips-room-editor{border:1px solid var(--glass-border-strong);border-radius:var(--r-dialog,28px);background:var(--glass-bg-solid);color:var(--text-primary);box-shadow:var(--shadow-lg);-webkit-backdrop-filter:var(--glass-blur-strong);backdrop-filter:var(--glass-blur-strong);max-width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto}
body #page-zips .zips-room-editor::backdrop{background:rgba(0,0,0,.6);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
body #page-zips .zips-room-editor[open]{animation:zipsPopIn 180ms var(--ease,ease) both}
body #page-zips .zips-room-member{border-radius:var(--r-md)}
body #page-zips .zips-room-member:hover{background:var(--white-a08)}

/* ---------- JOGOS ---------- */
body #page-zips .zips-games-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:var(--s-4)}
body #page-zips .zips-games-entry{transition:transform var(--t-transform,150ms),border-color var(--t-color,150ms),box-shadow var(--t-transform,150ms)}
body #page-zips .zips-games-entry:hover{transform:translateY(-3px);border-color:var(--glass-border-strong);box-shadow:var(--glass-highlight),var(--shadow-md)}
body #page-zips .zips-games-tile-art,body #page-zips .zips-games-tile-art.band{border-radius:calc(var(--r-xl) - 10px)}
body #page-zips .zips-games-rankings{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:var(--s-4)}
body #page-zips .zips-games-rankings li:first-child{background:var(--zx-wash)}
body #page-zips .zips-games-board-header,body #page-zips .zips-games-drawing-area,body #page-zips .zips-games-sidebar>.zips-native-card{border:1px solid var(--glass-border);background:var(--glass-bg);border-radius:var(--r-xl)}
body #page-zips .zips-games-tools{border:1px solid var(--glass-border-strong);background:var(--glass-bg-strong);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur)}
body #page-zips .zips-games-tool-actions button.active{background:var(--zx);color:var(--zips-on-accent)}
body #page-zips .zips-games-color.selected{outline-color:var(--zx)}
body #page-zips .zips-games-play-menu-popover{border:1px solid var(--glass-border-strong);border-radius:var(--r-lg);background:var(--glass-bg-solid);box-shadow:var(--shadow-lg);animation:zipsPopIn 160ms var(--ease,ease) both}
body #page-zips .zips-games-guess-form input{border-radius:var(--r-full)}

/* ---------- Movimento ---------- */
body #page-zips .zips-panel-motion:not(.hidden){animation:zipsPanelIn 200ms var(--ease,ease) both}
body #page-zips .zips-native-view.active{animation:zipsViewIn 200ms var(--ease,ease) both}
body #page-zips .zips-participant-strip>.zips-participant{animation:zipsTileIn 200ms var(--ease,ease) both}
body #page-zips .zips-participant-strip>.zips-participant:hover{transform:translateY(-2px)}
body #page-zips .zips-participant-strip>.zips-participant.speaking{animation:zipsSpeak 1.2s ease-in-out infinite}
body #page-zips .zips-chat-messages>.zips-msg{animation:zipsMsgIn 160ms ease-out both}
body #page-zips .zips-members-empty{position:relative;overflow:hidden}
body #page-zips .zips-members-empty::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,var(--white-a04),transparent);animation:zipsShimmer 1.4s linear infinite}
@keyframes zipsBadgeIn{from{transform:scale(0)}to{transform:scale(1)}}
@keyframes zipsPopIn{from{opacity:0;transform:translateY(4px) scale(.98)}to{opacity:1;transform:none}}
@keyframes zipsPanelIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes zipsViewIn{from{opacity:0}to{opacity:1}}
@keyframes zipsTileIn{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
@keyframes zipsMsgIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
@keyframes zipsSpeak{0%,100%{box-shadow:0 0 0 3px rgba(55,237,138,.10)}50%{box-shadow:0 0 0 6px rgba(55,237,138,.22)}}
@keyframes zipsShimmer{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
@keyframes zipsFlash{0%,100%{box-shadow:var(--glass-highlight),var(--glass-depth)}40%{box-shadow:0 0 0 2px var(--zx),var(--glass-depth)}}
@media (prefers-reduced-motion:reduce){
  body #page-zips *,body #page-zips *::before,body #page-zips *::after,.zips-peer-volume-popover,.zips-camera-chooser,.zips-chat-create-popover{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important}
}

/* ---------- Responsivo ---------- */
/* Telefone: coluna unica; dock rola em vez de cortar botoes; sem rolagem horizontal. */
@media (max-width:760px){
  body #page-zips .zips-native-header{flex-wrap:wrap;gap:var(--s-2)}
  body #page-zips .zips-games-global-nav{max-width:100%;overflow-x:auto;scrollbar-width:none}
  body #page-zips .zips-call-dock{max-width:calc(100vw - 16px)!important;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;justify-content:flex-start;scroll-snap-type:x proximity}
  body #page-zips .zips-call-dock::-webkit-scrollbar,body #page-zips .zips-games-global-nav::-webkit-scrollbar{display:none}
  body #page-zips .zips-call-dock>button{flex:0 0 auto;scroll-snap-align:start}
  body #page-zips .zips-native-card,body #page-zips .zips-call-left{border-radius:var(--r-lg)}
  body #page-zips .zips-rooms-head h2{font-size:var(--fs-section)}
  body #page-zips .zips-room-editor{width:calc(100vw - 16px);padding:var(--s-4)}
  body #page-zips .zips-games-grid{grid-template-columns:minmax(0,1fr)}
  body #page-zips,body #page-zips .zips-native-shell{overflow-x:clip}
}
/* Telefone deitado / tablets baixos: dock compacta acima da safe area. */
@media (max-height:500px) and (orientation:landscape){
  body #page-zips .zips-call-dock{bottom:calc(var(--safe-bottom,0px) + 8px)}
}
/* Tablet (761-1100): canais a esquerda, palco/chat no centro, membros/apps abaixo em 2 colunas. */
@media (min-width:761px) and (max-width:1100px){
  body #page-zips .zips-call-layout{grid-template-columns:200px minmax(0,1fr)}
  body #page-zips .zips-call-left{height:calc(100dvh - 120px)}
}
/* Telas largas (2560): colunas laterais crescem um pouco; centro ocupa o resto. */
@media (min-width:1920px){
  body #page-zips .zips-call-layout{grid-template-columns:272px minmax(0,1fr) 340px}
  body #page-zips .zips-call-layout.zips-right-collapsed{grid-template-columns:272px minmax(0,1fr)}
  body #page-zips .zips-call-layout.zips-right-collapsed:has(#zips-theme-panel:not(.hidden),#zips-library-panel:not(.hidden)){grid-template-columns:272px minmax(0,1fr) 340px}
  body #page-zips .zips-participant-strip{grid-template-columns:repeat(auto-fit,minmax(180px,260px))}
}

/* =====================================================================
   Desktop "Discord shell": colunas de altura total que se tocam,
   separadas por tom (sem cartoes flutuantes), cabecalho unico.
   ===================================================================== */
@media (min-width:761px){
  body #page-zips{--zl:232px;--zr:300px;--zband:60px}
  body #page-zips:has(.zips-call-layout.zips-right-collapsed:not(:has(#zips-theme-panel:not(.hidden),#zips-library-panel:not(.hidden)))){--zr:0px}
  body #page-zips .zips-native-shell{position:relative;min-height:100dvh;background:var(--zips-bg,var(--bg-app))}
  body #page-zips .zips-native-body{min-height:100dvh}
  body #page-zips .zips-native-content{padding:0}
  body #page-zips .zips-native-view:not([data-zips-panel="call"]){padding:calc(var(--zband) + var(--s-2)) var(--s-6) var(--s-8)}

  /* Cabecalho unico: abas + status flutuam na faixa superior da coluna central. */
  body #page-zips .zips-native-header{position:absolute;z-index:6;top:0;left:0;right:0;height:var(--zband);min-height:0;padding:0 var(--s-6);justify-content:flex-start;gap:var(--s-4);border:0;background:transparent;pointer-events:none}
  body #page-zips .zips-native-header>*{pointer-events:auto}
  body #page-zips .zips-native-head-actions{display:flex;align-items:center;gap:var(--s-3);margin-left:auto}
  body #page-zips:has([data-zips-panel="call"].active) .zips-native-header{left:calc(var(--zl) + var(--s-3));right:calc(var(--zr) + 190px);padding:0 var(--s-4)}
  body #page-zips:has([data-zips-panel="call"].active) .zips-native-head-actions{margin-left:0}
  body #page-zips:has([data-zips-panel="call"].active) #zips-header-avatar{display:none}
  body #page-zips .zips-server-dot-wrap{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 var(--s-3);border-radius:var(--r-full);background:var(--white-a04);color:var(--text-secondary);font-size:var(--fs-label);font-weight:600;white-space:nowrap}
  body #page-zips .zips-native-user-avatar{width:40px;height:40px;border-radius:50%;border:1px solid var(--glass-border-strong)}

  /* Grade de colunas. */
  body #page-zips .zips-call-layout{height:100dvh;min-height:0;gap:0;align-items:stretch;grid-template-columns:var(--zl) minmax(0,1fr)}
  body #page-zips .zips-call-left{position:sticky;top:0;height:100dvh;min-height:0;border:0;border-right:1px solid var(--glass-border);border-radius:0;background:var(--zips-panel-top,var(--bg-surface));box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
  body #page-zips .zips-call-center{height:100dvh;min-height:0;display:grid;grid-template-rows:minmax(0,1.2fr) minmax(300px,1fr);gap:0;padding:0 var(--s-3);transition:none}
  body #page-zips .zips-call-center.zips-chat-expanded{grid-template-rows:minmax(0,1.2fr) minmax(300px,1fr)}
  body:not(.zips-call-joined) #page-zips .zips-call-center{grid-template-rows:minmax(0,1.5fr) minmax(280px,1fr)}

  /* Palco = heroi da coluna central. */
  body #page-zips .zips-stage-card{height:auto;min-height:0;border:0;border-radius:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;overflow:visible}
  body #page-zips .zips-stage-card>.zips-native-card-head{min-height:var(--zband);padding:0;justify-content:flex-end}
  body #page-zips .zips-stage-title{display:none}
  body #page-zips .zips-stage-tools{gap:var(--s-2);margin-left:auto}
  body #page-zips .zips-stage{flex:1;min-height:0;height:auto;margin:0 0 var(--s-3);border-radius:var(--r-xl);border:1px solid var(--glass-border)}
  body #page-zips .zips-stage-empty{align-items:flex-start;justify-content:flex-end;text-align:left;padding:clamp(24px,4vw,56px)!important;gap:var(--s-2);background-size:cover;background-position:center;background-image:linear-gradient(90deg,rgba(0,0,0,.82) 0%,rgba(0,0,0,.45) 45%,transparent 80%),linear-gradient(0deg,rgba(0,0,0,.78) 0%,transparent 60%),var(--zips-room-cover-wide,var(--zips-room-cover,none))}
  body #page-zips .zips-stage.zips-art-portrait .zips-stage-empty{background-image:linear-gradient(90deg,rgba(0,0,0,.82) 0%,rgba(0,0,0,.45) 45%,transparent 80%),linear-gradient(0deg,rgba(0,0,0,.78) 0%,transparent 60%),var(--zips-room-cover-portrait,var(--zips-room-cover,none))}
  body #page-zips .zips-stage-idle-mascot{position:absolute;right:6%;bottom:8%;width:auto;height:min(58%,260px);max-width:34%;object-fit:contain;margin:0;filter:drop-shadow(0 20px 40px rgba(0,0,0,.5));pointer-events:none}
  body #page-zips .zips-stage-empty h3{position:relative;margin:0!important;max-width:16ch;font-size:clamp(28px,2.8vw,44px)!important;font-weight:700;line-height:1.05;letter-spacing:-.025em;color:var(--white);text-wrap:balance}
  body #page-zips .zips-stage-empty p{position:relative;margin:0!important;max-width:48ch;color:var(--white-a80);font-size:16px;line-height:1.5}
  body #page-zips .zips-stage-empty .zips-stage-connect{position:relative;margin:var(--s-3) 0 0!important;height:52px;min-height:52px;padding:0 var(--s-8);font-size:17px;font-weight:700}

  /* Chat ocupa o restante; compositor fixo no rodape. */
  body #page-zips .zips-call-center .zips-chat-card{display:flex;flex-direction:column;height:auto;min-height:0;border:0;border-top:1px solid var(--glass-border);border-radius:0;background:transparent;background-image:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;overflow:hidden}
  body #page-zips .zips-chat-head{flex:0 0 auto;height:52px;padding:0 var(--s-2);border-bottom:0}
  body #page-zips .zips-chat-history{flex:1 1 auto;min-height:0;overflow-y:auto}
  body #page-zips .zips-chat-compose{flex:0 0 auto;margin:0 0 var(--s-3)}

  /* Coluna direita: secoes, nao cartoes. */
  body #page-zips .zips-call-layout>.zips-call-right{height:100dvh;overflow-y:auto;align-content:start;gap:0;padding:0;border-left:1px solid var(--glass-border);background:var(--zips-panel-top,var(--bg-surface));scrollbar-width:thin}
  body #page-zips .zips-call-right>.zips-native-card{border:0;border-bottom:1px solid var(--glass-border);border-radius:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
  body #page-zips .zips-call-right>.zips-native-card>.zips-native-card-head{min-height:var(--zband);padding:0 var(--s-4)}
  body #page-zips .zips-members-list{max-height:none}

  /* Banner da sala no topo da coluna de canais. */
  body #page-zips .zips-left-head{position:relative;flex:0 0 auto;min-height:112px;align-items:flex-end;padding:var(--s-3) var(--s-4);border-bottom:1px solid var(--glass-border);overflow:hidden}
  body #page-zips .zips-left-banner{position:absolute;inset:0;background-color:var(--zx-wash);background-image:linear-gradient(0deg,var(--zips-panel-top,var(--bg-surface)) 0%,rgba(0,0,0,.25) 70%,transparent),var(--zips-room-cover-wide,none);background-size:cover;background-position:center}
  body #page-zips .zips-left-head>strong,body #page-zips .zips-left-head>.zips-server-mini{position:relative}
  body #page-zips .zips-left-head>strong{font-size:18px;font-weight:700;letter-spacing:-.01em;text-shadow:0 1px 8px rgba(0,0,0,.6)}
  body #page-zips .zips-user-av-wrap{padding:0;border:0;background:transparent;cursor:pointer;border-radius:50%}
  body #page-zips .zips-user-av-wrap:hover .zips-user-av{box-shadow:0 0 0 2px var(--zx)}
  body #page-zips .zips-user-av-wrap:focus-visible{outline:0;box-shadow:var(--zips-focus-ring)}

  /* Tipografia na escala do Inicio. */
  body #page-zips .zips-left-title,body #page-zips .zips-members-group{font-size:12px}
  body #page-zips .zips-left-channel,body #page-zips .zips-left-voice-room{min-height:38px;font-size:15px}
  body #page-zips .zips-voice-member{font-size:14px;min-height:32px}
  body #page-zips .zips-left-app-text strong,body #page-zips .zips-member-text strong{font-size:15px}
  body #page-zips .zips-left-app-text small,body #page-zips .zips-member-text small,body #page-zips .zips-user-text small{font-size:12px}
  body #page-zips .zips-user-text strong{font-size:15px}
  body #page-zips .zips-chat-messages .zips-msg-text{font-size:15px}
  body #page-zips .zips-chat-messages .zips-msg-head strong{font-size:15px}
  body #page-zips .zips-msg-head time{font-size:12px}
  body #page-zips .zips-msg-side{font-size:11px}
  body #page-zips .zips-chat-head .zips-chat-tab.active{font-size:18px}
  body #page-zips .zips-chat-compose input{font-size:15px}
  body #page-zips .zips-native-card-head h3{font-size:18px}

  /* Botoes do cabecalho do palco: circulos fantasmas de 40px; acento so no ativo. */
  body #page-zips .zips-stage-tools>button,body #page-zips .zips-room-customize{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--glass-border-strong);border-radius:50%;background:var(--white-a08);color:var(--text-primary);font-size:16px;box-shadow:none}
  body #page-zips .zips-stage-tools>button:hover,body #page-zips .zips-room-customize:hover{background:var(--white-a12);color:var(--text-primary);transform:none}
  body #page-zips .zips-members-toggle[aria-pressed="true"]{background:var(--white-a12);border-color:var(--glass-border-strong);color:var(--text-primary)}
  body #page-zips .zips-room-customize[aria-expanded="true"]{background:var(--zx);border-color:var(--zx);color:var(--zips-on-accent)}
  body #page-zips .zips-mobile-settings-button{display:none}
}
@media (min-width:761px) and (max-width:1100px){
  body #page-zips{--zl:208px;--zr:0px}
  body #page-zips .zips-call-layout{height:auto;min-height:100dvh;grid-template-columns:var(--zl) minmax(0,1fr)}
  body #page-zips .zips-call-layout>.zips-call-right{grid-column:2;height:auto;border-left:0;border-top:1px solid var(--glass-border);display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:1101px){
  body #page-zips .zips-call-layout{grid-template-columns:var(--zl) minmax(0,1fr) var(--zr)}
  body #page-zips .zips-call-layout.zips-right-collapsed{grid-template-columns:var(--zl) minmax(0,1fr)}
  body #page-zips .zips-call-layout.zips-right-collapsed:has(#zips-theme-panel:not(.hidden),#zips-library-panel:not(.hidden)){grid-template-columns:var(--zl) minmax(0,1fr) 300px}
}
@media (min-width:1920px){
  body #page-zips{--zl:272px;--zr:340px}
  body #page-zips .zips-call-layout.zips-right-collapsed:has(#zips-theme-panel:not(.hidden),#zips-library-panel:not(.hidden)){grid-template-columns:var(--zl) minmax(0,1fr) 340px}
}

/* Gordon Music como cartao "tocando agora" de um app/bot. */
body #page-zips .zips-music-card{display:grid;gap:var(--s-3);padding:0 var(--s-4) var(--s-5)}
body #page-zips .zips-music-card>.zips-native-card-head{padding:0;margin:0}
body #page-zips .zips-music-card-title{display:flex;align-items:center;gap:var(--s-2)}
body #page-zips .zips-music-card-title::after{content:"BOT";padding:1px 6px;border-radius:var(--r-sm);background:var(--white-a12);color:var(--text-primary);font-size:var(--fs-badge);font-weight:800;letter-spacing:.04em;line-height:16px}
body #page-zips .zips-music-state{display:flex;align-items:center;gap:var(--s-3);min-height:64px;color:var(--text-primary);font-size:15px;font-weight:600;line-height:1.3}
body #page-zips .zips-music-state::before{content:"♫";display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border-radius:var(--r-md);background:linear-gradient(135deg,var(--zx),color-mix(in srgb,var(--zx) 35%,#000));color:var(--white);font-size:26px;box-shadow:0 10px 24px -12px var(--zx)}
body #page-zips .zips-music-progress{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--s-2);font-size:12px;color:var(--text-secondary)}
body #page-zips .zips-music-progress div{height:4px;border-radius:var(--r-full);background:var(--white-a20);overflow:hidden}
body #page-zips .zips-music-controls{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2)}
body #page-zips .zips-music-controls button{flex:0 0 44px;width:44px;min-width:44px;height:44px;font-size:16px}
body #page-zips .zips-music-controls button.play{flex-basis:56px;width:56px;min-width:56px;height:56px;border:0;background:var(--white);color:var(--black);font-size:20px}
body #page-zips .zips-music-controls button.play:hover{background:var(--white-a80);transform:scale(1.04)}
body #page-zips .zips-music-link{min-height:44px}
body #page-zips .zips-music-link input{font-size:15px}
body #page-zips .zips-music-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s-2)}
body #page-zips .zips-music-actions button{width:100%;min-height:44px;padding:0 var(--s-5);justify-content:center;font-size:15px;white-space:nowrap}

/* =====================================================================
   Viewport lock: the whole Zips screen fits the visible area.
   Only inner regions scroll (channel list, chat history, members, music).
   ===================================================================== */
body.zips-mode #app-shell > .main > footer { display: none !important; }
@media (min-width: 761px) {
  html body.zips-mode #app-shell > .main > #page-zips.page {
    height: 100dvh !important;
    min-height: 0 !important;
    padding: var(--zips-top-offset, 68px) 0 0 !important;
    margin: 0 !important;
    position: fixed !important; inset: 0 !important; z-index: 1;
    transform: none !important; translate: none !important; animation: none !important;
    box-sizing: border-box;
    overflow: hidden !important;
  }
  html body.zips-mode #page-zips .zips-native-shell,
  html body.zips-mode #page-zips .zips-native-body,
  html body.zips-mode #page-zips .zips-native-content,
  html body.zips-mode #page-zips .zips-native-view.active,
  html body.zips-mode #page-zips .zips-call-layout {
    height: 100% !important;
    min-height: 0 !important;
  }
  html body.zips-mode #page-zips .zips-call-left,
  html body.zips-mode #page-zips .zips-call-right { height: 100% !important; max-height: 100% !important; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  html body.zips-mode #page-zips .zips-left-scroll { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
  html body.zips-mode #page-zips .zips-user-panel { flex: 0 0 auto; }
  /* Center: stage on top, chat fills the rest; composer always visible. */
  html body.zips-mode #page-zips .zips-call-center {
    height: 100% !important; max-height: 100% !important; min-height: 0; overflow: hidden;
    grid-template-rows: minmax(240px, 52%) minmax(0, 1fr) !important;
    padding-bottom: 12px;
  }
  html body.zips-mode #page-zips .zips-stage-card { height: auto !important; min-height: 0 !important; overflow: hidden; }
  html body.zips-mode #page-zips .zips-stage { min-height: 0; }
  html body.zips-mode #page-zips .zips-chat-card { height: auto !important; min-height: 0 !important; display: flex; flex-direction: column; }
  html body.zips-mode #page-zips .zips-chat-history { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  html body.zips-mode #page-zips .zips-chat-compose { flex: 0 0 auto; }
  /* Idle hero scales with the stage height instead of forcing it taller. */
  html body.zips-mode #page-zips .zips-stage-empty { min-height: 0; overflow: hidden; }
  html body.zips-mode #page-zips .zips-stage-empty h3 { font-size: clamp(22px, 4.2vh, 46px) !important; line-height: 1.05; }
  html body.zips-mode #page-zips .zips-stage-idle-mascot { max-height: min(260px, 30vh); width: auto; }
  /* Music actions: one row, no wrapped two-line labels. */
  html body.zips-mode #page-zips .zips-music-card button { white-space: nowrap; }
}
/* Short desktop windows: give the chat more room. */
@media (min-width: 761px) and (max-height: 760px) {
  html body.zips-mode #page-zips .zips-call-center { grid-template-rows: minmax(200px, 44%) minmax(0, 1fr) !important; }
}
/* Music actions: primary full width, two secondary side by side, single-line labels. */
html body.zips-mode #page-zips .zips-music-actions {
  display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important;
}
html body.zips-mode #page-zips .zips-music-actions > button {
  min-height: 40px !important; height: auto !important; padding: 0 14px !important;
  white-space: nowrap; font-size: 13px !important; line-height: 1 !important;
  display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
}
html body.zips-mode #page-zips .zips-music-actions > #zips-music-now { grid-column: 1 / -1; }
/* Stage tools never clip their first button. */
html body.zips-mode #page-zips .zips-stage-tools { overflow: visible !important; flex-wrap: nowrap; gap: 8px; }
/* Phone: same viewport lock, above the bottom nav. Only chat/lists scroll. */
@media (max-width: 760px) {
  html body.zips-mode #app-shell > .main > #page-zips.page {
    position: fixed !important; inset: 0 !important; z-index: 1;
    height: 100dvh !important; min-height: 0 !important; margin: 0 !important;
    padding: max(8px, env(safe-area-inset-top)) 0 calc(var(--bottom-nav-h, 72px) + var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 20px) !important;
    box-sizing: border-box; overflow: hidden !important;
    transform: none !important; translate: none !important; animation: none !important;
  }
  html body.zips-mode #page-zips .zips-native-shell { height: 100% !important; min-height: 0 !important; display: flex !important; flex-direction: column; }
  html body.zips-mode #page-zips .zips-native-header { flex: 0 0 auto; }
  html body.zips-mode #page-zips .zips-native-body,
  html body.zips-mode #page-zips .zips-native-content,
  html body.zips-mode #page-zips .zips-native-view.active,
  html body.zips-mode #page-zips .zips-call-layout { flex: 1 1 auto; height: auto !important; min-height: 0 !important; overflow: hidden; padding-bottom: 0 !important; margin-bottom: 0 !important; }
  html body.zips-mode #page-zips .zips-native-body,
  html body.zips-mode #page-zips .zips-native-content,
  html body.zips-mode #page-zips .zips-native-view.active { display: flex !important; flex-direction: column; }
  html body.zips-mode #page-zips .zips-call-layout { display: flex !important; flex-direction: column; }
  html body.zips-mode #page-zips .zips-call-center {
    flex: 1 1 auto; min-height: 0 !important; height: auto !important; overflow: hidden;
    display: grid !important; grid-template-rows: clamp(250px, 46dvh, 440px) minmax(150px, 1fr) !important; gap: 10px;
  }
  html body.zips-mode #page-zips .zips-stage-card,
  html body.zips-mode #page-zips .zips-chat-card { height: auto !important; min-height: 0 !important; overflow: hidden; }
  html body.zips-mode #page-zips .zips-stage { min-height: 0 !important; }
  html body.zips-mode #page-zips .zips-stage-idle-mascot { max-height: 13vh; width: auto; }
  html body.zips-mode #page-zips .zips-stage-empty { padding: 56px 16px 18px !important; gap: 6px; }
  html body.zips-mode #page-zips .zips-chat-card { display: flex !important; flex-direction: column; }
  html body.zips-mode #page-zips .zips-chat-history { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  html body.zips-mode #page-zips .zips-chat-compose { flex: 0 0 auto; }
}
html body.zips-mode #page-zips .zips-music-actions > button,
html body.zips-mode #page-zips .zips-music-actions > button * { white-space: nowrap !important; }
@media (max-width: 760px) and (max-height: 720px) {
  html body.zips-mode #page-zips .zips-stage-idle-mascot { display: none !important; }
}
/* Tablet: three narrow columns so everything stays inside the screen. */
@media (min-width: 761px) and (max-width: 1100px) {
  html body.zips-mode #page-zips .zips-call-layout {
    grid-template-columns: 196px minmax(0, 1fr) 248px !important;
    grid-template-rows: minmax(0, 1fr) !important;
  }
  html body.zips-mode #page-zips .zips-call-left { grid-column: 1; grid-row: 1; height: 100% !important; }
  html body.zips-mode #page-zips .zips-call-center { grid-column: 2; grid-row: 1; }
  html body.zips-mode #page-zips .zips-call-right {
    grid-column: 3; grid-row: 1; display: flex !important; flex-direction: column;
    height: 100% !important; overflow-y: auto;
  }
  html body.zips-mode #page-zips .zips-stage-empty h3 { font-size: clamp(20px, 3.2vw, 32px) !important; }
  html body.zips-mode #page-zips .zips-stage-idle-mascot { max-height: 16vh; }
  html body.zips-mode #page-zips { --zl: 196px; --zr: 248px; }
  html body.zips-mode #page-zips .zips-call-center { grid-template-rows: minmax(250px, 50%) minmax(0, 1fr) !important; }
  html body.zips-mode #page-zips .zips-music-actions { grid-template-columns: 1fr !important; }
}
/* ---------- Drawers (phone): channels left, members + music right ---------- */
html body #page-zips .zips-drawer-btn { display: none; }
html body #page-zips .zips-drawer-backdrop { display: none; }
@media (max-width: 760px) {
  html body.zips-mode #page-zips .zips-drawer-btn {
    display: inline-grid; place-items: center; flex: 0 0 auto;
    width: 40px; height: 40px; padding: 0; border-radius: 50% !important;
    border: 1px solid var(--zips-border, var(--border)); background: var(--zips-control, var(--bg-elevated));
    color: var(--zips-text, var(--text-primary)); pointer-events: auto; cursor: pointer;
    transition: background .15s ease, color .15s ease;
  }
  html body.zips-mode #page-zips .zips-drawer-btn[aria-expanded="true"] {
    background: var(--zips-accent, var(--accent)); color: var(--zips-accent-ink, #fff); border-color: transparent;
  }
  html body.zips-mode #page-zips .zips-call-left,
  html body.zips-mode #page-zips .zips-call-right {
    display: flex !important; flex-direction: column;
    position: fixed !important; z-index: 40;
    top: max(8px, env(safe-area-inset-top));
    bottom: calc(var(--bottom-nav-h, 72px) + var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 20px);
    width: min(320px, 86vw) !important; height: auto !important; max-height: none !important;
    background: var(--zips-panel-bottom, var(--bg-surface));
    border: 1px solid var(--zips-border, var(--border));
    box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
    overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; transition: transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .22s;
  }
  html body.zips-mode #page-zips .zips-call-left { left: 8px; border-radius: var(--r-lg); transform: translateX(calc(-100% - 16px)); }
  html body.zips-mode #page-zips .zips-call-right { right: 8px; border-radius: var(--r-lg); transform: translateX(calc(100% + 16px)); }
  html body.zips-drawer-left #page-zips .zips-call-left,
  html body.zips-drawer-right #page-zips .zips-call-right {
    transform: none; visibility: visible; transition: transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s;
  }
  html body.zips-mode #page-zips .zips-call-right > * { flex: 0 0 auto; }
  html body.zips-mode #page-zips .zips-call-left,
  html body.zips-mode #page-zips .zips-call-right {
    height: calc(100dvh - max(8px, env(safe-area-inset-top)) - var(--bottom-nav-h, 72px) - var(--safe-bottom, env(safe-area-inset-bottom, 0px)) - 20px) !important;
    min-height: 0 !important;
  }
  html body.zips-mode #page-zips .zips-call-left .zips-left-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  /* Music player lives in the right drawer on phones. */
  html body.zips-mode #page-zips .zips-call-right > .zips-music-card { display: grid !important; }
  html body.zips-drawer-left #page-zips .zips-drawer-backdrop,
  html body.zips-drawer-right #page-zips .zips-drawer-backdrop {
    display: block; position: fixed; inset: 0; z-index: 39;
    background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px);
    animation: zipsFadeIn .18s ease;
  }
}
@keyframes zipsFadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html body.zips-mode #page-zips .zips-call-left,
  html body.zips-mode #page-zips .zips-call-right { transition: none !important; }
}
/* Non-call views (games, rooms, profile, settings) scroll inside the locked page. */
html body.zips-mode #page-zips .zips-native-view.active:not([data-zips-panel="call"]) {
  overflow-y: auto !important; overscroll-behavior: contain;
  padding-bottom: 24px;
}
html body.zips-mode #page-zips .zips-native-content { overflow: hidden; }
/* Games use the full width. */
html body.zips-mode #page-zips .zips-games-grid { max-width: none !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important; }
html body.zips-mode #page-zips .zips-games-rankings { max-width: none !important; }

/* =====================================================================
   Atividades: dock launcher + modal with Gordon Music and games.
   ===================================================================== */
#page-zips .zips-dock-activities .zips-dock-icon { position: relative; }
#page-zips .zips-dock-activities .zips-activities-live {
  position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--zips-accent, var(--accent)); box-shadow: 0 0 0 2px var(--bg-elevated);
  transform: scale(0); transition: transform .18s ease;
}
#page-zips .zips-dock-activities.is-live .zips-activities-live { transform: scale(1); animation: zipsLivePulse 1.6s ease-in-out infinite; }
#page-zips .zips-dock-activities[aria-expanded="true"] > .zips-dock-icon { background: var(--zips-accent, var(--accent)) !important; color: var(--zips-accent-ink, #fff) !important; }
@keyframes zipsLivePulse { 50% { box-shadow: 0 0 0 2px var(--bg-elevated), 0 0 0 6px var(--zips-accent-wash, var(--accent-soft)); } }

#page-zips .zips-activities[hidden] { display: none !important; }
#page-zips .zips-activities {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  padding: calc(var(--zips-top-offset, 68px) + 16px) 16px 24px;
}
#page-zips .zips-activities-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .62); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .18s ease;
}
#page-zips .zips-activities-sheet {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  width: min(820px, 100%); max-height: 100%; overflow: hidden;
  padding: 24px; border-radius: var(--r-xl, 28px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--zips-accent, var(--accent)) 10%, var(--bg-surface)) 0%, var(--bg-surface) 140px);
  border: 1px solid var(--zips-border, var(--border));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .18s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
}
#page-zips .zips-activities.is-open .zips-activities-backdrop { opacity: 1; }
#page-zips .zips-activities.is-open .zips-activities-sheet { opacity: 1; transform: none; }
#page-zips .zips-activities-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
#page-zips .zips-activities-head h2 { margin: 0; font-size: 24px; font-weight: 700; color: var(--text-primary); }
#page-zips .zips-activities-head p { margin: 4px 0 0; color: var(--text-secondary); font-size: 14px; }
#page-zips .zips-activities-close {
  display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50% !important; background: var(--white-a08, rgba(255,255,255,.08)); color: var(--text-primary); cursor: pointer;
}
#page-zips .zips-activities-close:hover { background: var(--white-a12, rgba(255,255,255,.12)); }
#page-zips .zips-activities-tabs {
  display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px;
  border-radius: var(--r-full); background: var(--white-a08, rgba(255,255,255,.06));
}
#page-zips .zips-activities-tabs button {
  min-height: 36px; padding: 0 18px; border: 0; border-radius: var(--r-full) !important;
  background: transparent; color: var(--text-secondary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
#page-zips .zips-activities-tabs button[aria-selected="true"] { background: var(--zips-accent, var(--accent)); color: var(--zips-accent-ink, #fff); }
#page-zips .zips-activities-tabs button:focus-visible,
#page-zips .zips-activities-close:focus-visible,
#page-zips .zips-activity-game:focus-visible { outline: 2px solid var(--zips-accent, var(--accent)); outline-offset: 2px; }
#page-zips .zips-activities-pane { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#page-zips .zips-activities-pane[hidden] { display: none !important; }

/* Music tab: the real Gordon Music card, roomy. */
#page-zips .zips-activities-pane .zips-music-card {
  display: grid !important; margin: 0 !important; border: 0 !important; background: transparent !important;
  box-shadow: none !important; padding: 0 !important; max-width: none !important; width: 100% !important;
}
#page-zips .zips-activities-pane .zips-music-card::before { display: none !important; }

/* Games tab: big art tiles, the memorable part. */
#page-zips .zips-activities-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
#page-zips .zips-activity-game {
  display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; text-align: left;
  border: 1px solid var(--zips-border, var(--border)); border-radius: var(--r-lg, 16px) !important;
  background: var(--bg-elevated); color: var(--text-primary); cursor: pointer; font: inherit;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), border-color .18s ease, box-shadow .18s ease;
}
#page-zips .zips-activity-game:not(.is-soon):hover {
  transform: translateY(-3px); border-color: var(--zips-accent, var(--accent));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 0 1px var(--zips-accent, var(--accent));
}
#page-zips .zips-activity-game .zips-games-tile-art {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; margin: 0 !important;
  border-radius: 0 !important; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--zips-accent, var(--accent)) 26%, transparent), transparent 70%), var(--bg-surface);
}
#page-zips .zips-activity-game .zips-games-tile-art img { width: 70%; height: auto; object-fit: contain; }
#page-zips .zips-activity-game-text { display: grid; gap: 4px; padding: 14px 16px 16px; }
#page-zips .zips-activity-game-text strong { font-size: 16px; font-weight: 700; }
#page-zips .zips-activity-game-text small { color: var(--text-secondary); font-size: 13px; line-height: 1.4; }
#page-zips .zips-activity-game.is-soon { cursor: default; opacity: .6; }

/* Phone: bottom sheet above the bottom nav. */
@media (max-width: 760px) {
  #page-zips .zips-activities {
    place-items: end center;
    padding: 12px 8px calc(var(--bottom-nav-h, 72px) + var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 20px);
  }
  #page-zips .zips-activities-sheet { padding: 18px; border-radius: var(--r-lg, 20px); max-height: 100%; transform: translateY(24px); }
  #page-zips .zips-activities-head h2 { font-size: 20px; }
  #page-zips .zips-activities-games { grid-template-columns: 1fr 1fr; gap: 10px; }
  #page-zips .zips-activity-game-text { padding: 10px 12px 12px; }
  #page-zips .zips-activity-game-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #page-zips .zips-activities-sheet, #page-zips .zips-activities-backdrop, #page-zips .zips-activity-game { transition: none !important; }
  #page-zips .zips-dock-activities.is-live .zips-activities-live { animation: none; }
}
/* Dock: every button, including "Encerrar", has the same size, shape and baseline at all widths. */
html body #page-zips .zips-call-dock { align-items: flex-start !important; }
html body #page-zips .zips-call-dock > button {
  grid-template-rows: var(--zips-dock-size, 48px) auto !important;
  justify-items: center !important; align-items: start !important; gap: 4px !important;
  margin: 0 !important; padding: 0 !important; min-width: 56px; height: auto !important;
  transform: none !important; vertical-align: top !important;
}
html body #page-zips .zips-call-dock > button > .zips-dock-icon,
html body #page-zips .zips-call-dock > button.zips-dock-danger > span {
  width: var(--zips-dock-size, 48px) !important; height: var(--zips-dock-size, 48px) !important;
  min-width: 0 !important; margin: 0 !important; border-radius: 50% !important;
  display: grid !important; place-items: center !important; position: relative; top: 0 !important;
}
html body #page-zips .zips-call-dock > button .zips-dock-icon svg { width: 20px !important; height: 20px !important; }
html body #page-zips .zips-call-dock > button > small {
  margin: 0 !important; font-size: 11px !important; line-height: 1.2 !important; white-space: nowrap !important;
}
@media (max-width: 760px), ((hover: none) and (pointer: coarse)) {
  html body #page-zips .zips-call-dock { --zips-dock-size: 44px; }
  html body #page-zips .zips-call-dock > button { min-width: 50px; }
  html body #page-zips .zips-call-dock > button > small { font-size: 10px !important; }
}

/* =====================================================================
   Rooms rail (Discord-style server list) + call is always the main screen.
   ===================================================================== */
#page-zips .zips-rooms-rail[hidden] { display: none !important; }
#page-zips .zips-rooms-rail {
  position: fixed; z-index: 3; left: 0; top: var(--zips-top-offset, 68px); bottom: 0; width: 72px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 0; overflow-y: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--bg-app) 70%, #000);
  border-right: 1px solid var(--zips-border, var(--border));
}
#page-zips .zips-rooms-rail::-webkit-scrollbar { display: none; }
#page-zips .zips-rail-room,
#page-zips .zips-rail-action {
  position: relative; flex: 0 0 48px; width: 48px; height: 48px; padding: 0;
  display: grid; place-items: center; border: 0; cursor: pointer;
  border-radius: 50% !important; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .02em;
  background: var(--zips-control, var(--bg-elevated)); color: var(--text-primary);
  transition: border-radius .18s ease, background .18s ease, color .18s ease;
}
#page-zips .zips-rail-action { color: var(--success, #3be38e); }
#page-zips .zips-rail-room:hover,
#page-zips .zips-rail-room.active { border-radius: 16px !important; background: var(--zips-accent, var(--accent)); color: var(--zips-accent-ink, #fff); }
#page-zips .zips-rail-action:hover { border-radius: 16px !important; background: var(--success, #3be38e); color: #06130c; }
#page-zips .zips-rail-room:disabled { opacity: .45; cursor: not-allowed; }
/* Left pill indicator: small on hover, tall on the current room. */
#page-zips .zips-rail-room::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 0;
  border-radius: 0 4px 4px 0; background: var(--text-primary); transform: translateY(-50%);
  transition: height .18s ease;
}
#page-zips .zips-rail-room:hover::before { height: 20px; }
#page-zips .zips-rail-room.active::before { height: 40px; }
#page-zips .zips-rail-count {
  position: absolute; right: -5px; bottom: -3px; min-width: 12px; height: 14px; padding: 0 4px;
  border-radius: 8px; border: 2px solid color-mix(in srgb, var(--bg-app) 70%, #000);
  background: var(--success, #3be38e); color: #06130c; font-size: 10px; font-style: normal; font-weight: 800;
  display: grid; place-items: center; box-sizing: content-box;
}
#page-zips .zips-rail-sep { width: 32px; height: 2px; margin: 4px 0; border: 0; border-radius: 1px; background: var(--zips-border, var(--border)); }
#page-zips .zips-rail-room:focus-visible,
#page-zips .zips-rail-action:focus-visible { outline: 2px solid var(--zips-accent, var(--accent)); outline-offset: 3px; }
/* Tooltip with the room name. */
#page-zips .zips-rooms-rail [data-tip]:hover::after {
  content: attr(data-tip); position: fixed; left: 80px; transform: translateY(-50%); margin-top: 24px;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none;
  background: var(--bg-elevated); color: var(--text-primary); font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.45); z-index: 90;
}
@media (min-width: 761px) {
  html body.zips-mode.zips-has-rooms-rail #app-shell > .main > #page-zips.page { padding-left: 72px !important; }
}
/* Phone: the rail sits next to the channel drawer. */
@media (max-width: 760px) {
  #page-zips .zips-rooms-rail {
    z-index: 41; left: 8px; width: 60px; border-radius: var(--r-lg); border: 1px solid var(--zips-border, var(--border));
    top: max(8px, env(safe-area-inset-top));
    bottom: calc(var(--bottom-nav-h, 72px) + var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 20px);
    transform: translateX(calc(-100% - 16px)); visibility: hidden;
    transition: transform .22s cubic-bezier(.2,.8,.2,1), visibility 0s linear .22s;
  }
  html body.zips-drawer-left #page-zips .zips-rooms-rail { transform: none; visibility: visible; transition: transform .22s cubic-bezier(.2,.8,.2,1), visibility 0s; }
  html body.zips-has-rooms-rail.zips-mode #page-zips .zips-call-left { left: 76px; width: min(300px, calc(100vw - 84px)) !important; }
  #page-zips .zips-rail-room::before { display: none; }
  #page-zips .zips-rooms-rail [data-tip]:hover::after { display: none; }
}

/* The call is the main screen: no Chamada/Jogos tabs. Games open in the Apps modal.
   When another view is open (games board, rooms, profile), a back pill returns to the call. */
html body #page-zips .zips-games-global-nav [data-zips-view="games"] { display: none !important; }
html body #page-zips:has([data-zips-panel="call"].active) .zips-games-global-nav [data-zips-view="call"] { display: none !important; }
html body #page-zips .zips-games-global-nav { background: transparent !important; border: 0 !important; padding: 0 !important; }
html body #page-zips .zips-games-global-nav [data-zips-view="call"] {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 16px 0 12px !important;
  border-radius: var(--r-full) !important; background: var(--zips-control, var(--bg-elevated)) !important;
  border: 1px solid var(--zips-border, var(--border)) !important; color: var(--text-primary) !important; font-weight: 600;
}
html body #page-zips .zips-games-global-nav [data-zips-view="call"]::before { content: "‹"; font-size: 20px; line-height: 1; margin-top: -2px; }

/* =====================================================================
   Scale Zips with the screen like Início does (text, buttons, columns).
   ===================================================================== */
@media (min-width: 1600px) { html body.zips-mode #page-zips { --zz: 1.08; } }
@media (min-width: 1900px) { html body.zips-mode #page-zips { --zz: 1.16; } }
@media (min-width: 2300px) { html body.zips-mode #page-zips { --zz: 1.28; } }
@media (min-width: 2800px) { html body.zips-mode #page-zips { --zz: 1.42; } }
@media (min-width: 1600px) {
  html body.zips-mode #page-zips .zips-native-shell {
    zoom: var(--zz, 1);
  }
  /* The rail lives inside the zoomed shell: keep its own size, only undo the zoom on its top offset. */
  html body.zips-mode #page-zips .zips-rooms-rail { top: calc(var(--zips-top-offset, 68px) / var(--zz, 1)); }
  html body.zips-mode.zips-has-rooms-rail #app-shell > .main > #page-zips.page { padding-left: calc(72px * var(--zz, 1)) !important; }
  html body.zips-mode #page-zips .zips-activities-sheet { zoom: var(--zz, 1); }
}

/* =====================================================================
   Flow: the call never leaves the screen. Profile, settings, rooms and
   games open as sheets over it and close with X, Esc or a click outside.
   ===================================================================== */
/* Duplicate identity: the global top bar already shows the account. */
html body #page-zips #zips-header-avatar { display: none !important; }
/* The header "‹ Chamada" pill is no longer needed: sheets have their own close. */
html body #page-zips .zips-games-global-nav [data-zips-view="call"] { display: none !important; }

/* Call view stays rendered under any sheet. */
html body.zips-mode #page-zips .zips-native-view[data-zips-panel="call"] { display: block !important; height: 100% !important; min-height: 0 !important; }
@media (max-width: 760px) {
  html body.zips-mode #page-zips .zips-native-view[data-zips-panel="call"] { display: flex !important; flex-direction: column; flex: 1 1 auto; height: auto !important; overflow: hidden; }
}

/* The sheet. */
html body.zips-mode #page-zips .zips-native-view.active:not([data-zips-panel="call"]) {
  position: fixed !important; z-index: 70; left: 50%; top: calc(50% + var(--zips-top-offset, 68px) / 2);
  transform: translate(-50%, -50%);
  display: block !important; width: min(760px, calc(100vw - 32px)) !important; height: auto !important;
  max-height: calc(100dvh - var(--zips-top-offset, 68px) - 48px) !important;
  overflow-y: auto !important; overscroll-behavior: contain;
  padding: 28px !important; margin: 0 !important; box-sizing: border-box;
  border-radius: var(--r-xl, 28px); border: 1px solid var(--zips-border, var(--border));
  background: var(--bg-surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  animation: zipsSheetIn .2s cubic-bezier(.2, .8, .2, 1) both;
}
html body.zips-mode #page-zips .zips-native-view.active[data-zips-panel="games"] {
  width: min(1280px, calc(100vw - 32px)) !important;
  height: calc(100dvh - var(--zips-top-offset, 68px) - 48px) !important;
}
@keyframes zipsSheetIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* Close button: top-right X in every sheet (existing back buttons are restyled, rooms/games get one injected). */
html body.zips-mode #page-zips .zips-native-view.active:not([data-zips-panel="call"]) .zips-view-back,
html body.zips-mode #page-zips .zips-sheet-close {
  position: sticky !important; top: 0; float: right; z-index: 5; margin: -8px -8px 0 12px !important;
  width: 40px !important; height: 40px !important; min-width: 0 !important; padding: 0 !important;
  display: grid !important; place-items: center; border: 0 !important; border-radius: 50% !important;
  background: var(--white-a08, rgba(255,255,255,.08)) !important; color: var(--text-primary) !important;
  font-size: 0 !important; cursor: pointer;
}
html body.zips-mode #page-zips .zips-native-view.active:not([data-zips-panel="call"]) .zips-view-back > * { display: none !important; }
html body.zips-mode #page-zips .zips-native-view.active:not([data-zips-panel="call"]) .zips-view-back::before,
html body.zips-mode #page-zips .zips-sheet-close::before {
  content: ""; width: 18px; height: 18px; display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body.zips-mode #page-zips .zips-sheet-close:hover,
html body.zips-mode #page-zips .zips-native-view.active .zips-view-back:hover { background: var(--white-a12, rgba(255,255,255,.14)) !important; }
html body #page-zips .zips-native-view:not(.active) .zips-sheet-close { display: none !important; }

/* Phone: sheets slide up from the bottom, above the bottom nav. */
@media (max-width: 760px) {
  html body.zips-mode #page-zips .zips-native-view.active:not([data-zips-panel="call"]),
  html body.zips-mode #page-zips .zips-native-view.active[data-zips-panel="games"] {
    left: 8px; right: 8px; top: auto; transform: none;
    bottom: calc(var(--bottom-nav-h, 72px) + var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 20px);
    width: auto !important; height: auto !important;
    max-height: calc(100dvh - var(--bottom-nav-h, 72px) - 60px) !important;
    padding: 20px !important; border-radius: var(--r-lg, 20px);
    animation: zipsSheetUp .22s cubic-bezier(.2, .8, .2, 1) both;
  }
  html body.zips-mode #page-zips .zips-native-view.active[data-zips-panel="games"] { height: calc(100dvh - var(--bottom-nav-h, 72px) - 60px) !important; }
}
@keyframes zipsSheetUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html body.zips-mode #page-zips .zips-native-view.active { animation: none !important; }
}

/* Dim the call behind an open sheet. */
html body.zips-mode #page-zips:has(.zips-native-view.active:not([data-zips-panel="call"]))::after {
  content: ""; position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .62); backdrop-filter: blur(4px);
  animation: zipsFadeIn .18s ease both; pointer-events: auto;
}
/* Sheet content uses the sheet width (old pages had fixed narrow columns). */
html body.zips-mode #page-zips .zips-native-view.active:not([data-zips-panel="call"]) > :not(.zips-view-back):not(.zips-sheet-close) {
  max-width: none !important; width: auto !important; margin-left: 0 !important; margin-right: 0 !important;
}
html body.zips-mode #page-zips .zips-native-view.active:not([data-zips-panel="call"]) .zips-native-card,
html body.zips-mode #page-zips .zips-native-view.active:not([data-zips-panel="call"]) .zips-profile-card {
  width: auto !important; max-width: none !important; box-sizing: border-box;
}
html body.zips-mode #page-zips .zips-native-view.active:not([data-zips-panel="call"]) .zips-native-card + .zips-native-card { margin-top: 14px; }
html body.zips-mode #page-zips .zips-native-view.active[data-zips-panel="profile"] { width: min(640px, calc(100vw - 32px)) !important; }
html body.zips-mode #page-zips .zips-profile-layout { grid-template-columns: minmax(0, 1fr) !important; width: auto !important; }
html body.zips-mode #page-zips .zips-profile-layout > :empty { display: none !important; }
html body.zips-mode #page-zips .zips-avatar-presets > div { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important; gap: 10px !important; }

/* =====================================================================
   Room picker (rooms mode, no room chosen): the whole screen, not a sheet.
   No empty call, channel list, members or "Geral" behind it.
   ===================================================================== */
html body.zips-no-room #page-zips .zips-native-view[data-zips-panel="call"],
html body.zips-no-room #page-zips .zips-native-header,
html body.zips-no-room #page-zips .zips-call-dock,
html body.zips-no-room #page-zips [data-zips-drawer] { display: none !important; }
html body.zips-no-room #page-zips::after { display: none !important; }
html body.zips-no-room.zips-mode #page-zips .zips-native-view.active[data-zips-panel="rooms"] {
  position: static !important; transform: none !important; animation: zipsFadeIn .2s ease both;
  width: auto !important; height: 100% !important; max-height: none !important;
  margin: 0 !important; padding: clamp(24px, 4vw, 56px) !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important;
  overflow-y: auto !important;
}
html body.zips-no-room #page-zips [data-zips-panel="rooms"] .zips-sheet-close { display: none !important; }

/* Room list as cards (used by the picker and by the "Todas as salas" sheet). */
html body #page-zips .zips-rooms-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
html body #page-zips .zips-rooms-head h2 { margin: 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; color: var(--text-primary); }
html body.zips-no-room #page-zips .zips-rooms-head::after { content: none; }
html body #page-zips #zips-rooms-status:not(:empty) { margin: 8px 0 16px; color: var(--text-secondary); }
html body #page-zips .zips-rooms-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 20px;
}
html body #page-zips .zips-room-row {
  position: relative; display: flex; align-items: stretch; margin: 0 !important; padding: 0 !important;
  border: 1px solid var(--zips-border, var(--border)) !important; border-radius: var(--r-lg, 16px) !important;
  background: var(--bg-elevated) !important; overflow: visible; box-shadow: none !important;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .18s ease, box-shadow .18s ease;
}
html body #page-zips .zips-room-row:hover { transform: translateY(-2px); border-color: var(--zips-accent, var(--accent)) !important; box-shadow: 0 14px 34px rgba(0,0,0,.4) !important; }
html body #page-zips .zips-room-entry {
  flex: 1; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px;
  align-items: center; padding: 18px !important; border: 0 !important; background: transparent !important;
  color: var(--text-primary); text-align: left; font: inherit; cursor: pointer; border-radius: inherit !important; min-height: 0 !important;
}
html body #page-zips .zips-room-entry::before {
  content: attr(data-initials); grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  background: color-mix(in srgb, var(--zips-accent, var(--accent)) 22%, var(--bg-surface)); color: var(--text-primary);
}
html body #page-zips .zips-room-entry strong { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #page-zips .zips-room-entry span { color: var(--text-secondary); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #page-zips .zips-room-entry:disabled { opacity: .5; cursor: not-allowed; }
html body #page-zips .zips-room-entry:focus-visible { outline: 2px solid var(--zips-accent, var(--accent)); outline-offset: 2px; }
html body #page-zips .zips-room-menu { position: absolute; top: 10px; right: 10px; }
html body #page-zips .zips-room-menu summary {
  list-style: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  color: var(--text-secondary); background: var(--white-a08, rgba(255,255,255,.06));
}
html body #page-zips .zips-room-menu summary::-webkit-details-marker { display: none; }
html body #page-zips .zips-room-menu[open] > button {
  position: relative; z-index: 3; display: block; min-width: 120px; margin-top: 6px; padding: 9px 14px; text-align: left;
  border: 1px solid var(--glass-border-strong); border-radius: var(--r-lg); background: var(--surface-overlay); color: var(--text-primary); font: inherit; cursor: pointer;
  -webkit-backdrop-filter: var(--glass-blur-strong); backdrop-filter: var(--glass-blur-strong); box-shadow: var(--shadow-md);
}
html body #page-zips .zips-room-menu[open] > button:hover { background: var(--bg-elevated); }
html body #page-zips .zips-room-menu[open] > button:focus-visible { outline: 2px solid var(--zips-accent, var(--accent)); outline-offset: 2px; }
@media (max-width: 760px) {
  html body.zips-no-room.zips-mode #page-zips .zips-native-view.active[data-zips-panel="rooms"] { padding: 20px 16px !important; }
}

/* ------------------------------------------------------------------ */
/* Consistencia (auditoria): convites, log, erros do editor de sala    */
/* ------------------------------------------------------------------ */
#page-zips .watch-invite-card button { background:var(--zips-accent, var(--accent)); color:var(--zips-accent-ink, var(--accent-ink)); }
#page-zips .watch-invite-card button:hover:not(:disabled) { background:var(--accent-hover); }
#page-zips .zips-log-card pre { font-size:var(--fs-label); line-height:1.5; }
body #page-zips .zips-room-editor #zips-room-editor-error { color:var(--danger-text); }
