/*
 * Poly · 群聊访客（「客户模式」，2026-11-06 用户定）
 * 登录的人建群、出示二维码 / 房间码拉客户进来；客户**不登录**、凭房间码（?room=）进来时 <html> 带 .guest：
 *   能用：群聊页 —— 麦克风说话、选自己的任何语言、看翻译、朗读、本场总结（⋯ 菜单「AI 总结」）。
 *   锁住：侧栏 / 新建 / 首页功能卡 / 小P / 问 Poly 小球 / 润色 / 导出 / 备份 / 清空 / 大屏 / 数据开关。
 * 后端同样把关：识别、翻译、总结凭真实存在的房间码可用，其它接口不登录一律 401（main.py）。
 * 判定在 index.html「群聊访客」那段：URL 带 room、本地没有身份 → 先挂 .guest；问 /api/me 认出是已登录的人就去掉。
 * ⚠️ 只藏入口、不改布局和配色；删掉 index.html 里引用本文件那一行 + 那段 JS 即整体回退。
 */
html.guest :is(#btnMobileNavSession, .mobile-nav-btn, .mc-menu, .sidebar, .sidebar-overlay, .nh-ovhost),
html.guest .room-ctrl :is(.ft-big, .ds-chip),
html.guest #mMoreMenu [data-act]:not([data-act="summary"]),
html.guest #mMoreMenu .mm-sep,
html.guest .room-join .rj-alt { display: none !important; }   /* 访客不能建群（建群要登录） */

/* 首页（离开群聊后）：不给功能，只给一张说明卡 —— 回到群聊 / 去登录 */
.guest-card { display: none; }
html.guest #emptyState > :not(.guest-card) { display: none !important; }
html.guest #emptyState > .guest-card {
  display: flex !important; flex-direction: column; align-items: center; gap: 12px; margin: 28vh auto 0; max-width: 340px; padding: 26px 22px; text-align: center;
  border-radius: 22px; color: #1d2b42; background: rgba(255,255,255,.82); box-shadow: 0 18px 40px -22px rgba(10,24,48,.45);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
html.guest[data-theme="dark"] #emptyState > .guest-card { color: #eef3ff; background: rgba(22,30,50,.82); }
.guest-card b { font-size: 1.05rem; }
.guest-card p { margin: 0; font-size: .86rem; line-height: 1.6; opacity: .8; }
.guest-card .gc-row { display: flex; gap: 10px; margin-top: 4px; }
.guest-card :is(button, a) { border: 0; border-radius: 999px; padding: 9px 18px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.guest-card button { color: #fff; background: #3f6fe6; }
.guest-card a { color: #3f6fe6; background: rgba(63,111,230,.1); }
html.guest[data-theme="dark"] .guest-card a { color: #a8caff; background: rgba(168,202,255,.12); }
