/* ==========================================================================
   mobile.css — 手机端适配层（iPhone / Android / 折叠屏 / 横屏）
   只在 html.m（小屏或粗指针）下生效，桌面端一行都不动。
   加载顺序：必须放在 console.css / ui-kit.css / theme-blue.css 之后。
   ========================================================================== */

/* ---------- 0. 全局：安全区、动态视口、触控手感 ---------- */
html.m {
  --m-pad: 10px;
  --m-radius: 14px;
  --m-tap: 40px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}
@media (max-width: 900px) {
  html.m body {
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
    text-rendering: optimizeLegibility;
  }
  html.m .app-shell {
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-top: var(--sat);
    padding-left: var(--sal);
    padding-right: var(--sar);
  }
  html.m .shell-body,
  html.m #screen-lobby,
  html.m #screen-room { padding: 0 !important; }
  html.m .screen { padding: 0 !important; }
  html.m .lobby { padding-top: 0 !important; }
  /* 输入框 16px 起步：iOS 聚焦才不会整页放大 */
  html.m input,
  html.m textarea,
  html.m select { font-size: 16px !important; }
  html.m button { min-height: var(--m-tap); }
  html.m .lobby-id,
  html.m .lobby-nav-item,
  html.m .cat-tab { min-height: 34px; }
}

/* ---------- 1. 大厅 ---------- */
html.m .lobby-header {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  padding: calc(8px + var(--sat)) var(--m-pad) 10px !important;
  border-radius: 0 0 var(--m-radius) var(--m-radius) !important;
}
html.m .lobby-id { flex: 1 1 100%; min-width: 0; gap: 8px !important; }
html.m .lobby-id .profile-link { display: none; }
html.m .lobby-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.m .lobby-search { flex: 1 1 100%; order: 3; margin-top: 2px; }
html.m .lobby-search input { width: 100%; height: 38px; }
html.m .top-acts {
  flex: 1 1 100%;
  order: 2;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end;
  gap: 4px !important;
  align-items: center;
  overflow-x: auto;
}
html.m .top-acts .top-ico { width: 32px !important; height: 32px !important; min-height: 32px; }
html.m .top-acts .ghost { height: 32px; min-height: 32px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
html.m .lobby-nav {
  margin: 0 !important;
  padding: 6px var(--m-pad) !important;
  gap: 4px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
html.m .lobby-nav-item { padding: 7px 13px !important; font-size: 13.5px !important; }
html.m .lobby-body { padding: 0 var(--m-pad) !important; gap: 0 !important; }
html.m .lobby-side { display: none !important; }
html.m .cat-tabs { padding: 4px 0 0 !important; gap: 6px !important; }
html.m .lobby-head {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  padding: 6px 0 8px !important;
}
html.m .lobby-head h2 { font-size: 17px; }
html.m .create-row { width: 100%; display: flex; gap: 8px; }
html.m .create-row input { flex: 1 1 auto; min-width: 0; height: 38px; }
html.m .create-row .primary { flex: 0 0 auto; height: 38px; padding: 0 14px; min-height: 38px; }
html.m .lobby-main { padding: 0 var(--m-pad) !important; }
html.m .channel-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding-bottom: calc(12px + var(--sab)) !important;
}
@media (max-width: 374px) {
  html.m .channel-list { grid-template-columns: 1fr !important; }
}
html.m .channel-list .chan-cover { height: 96px !important; }
html.m .channel-list .chan-card { border-radius: 12px !important; }
html.m .channel-list .chan-enter { min-height: 34px; }

/* ---------- 2. 房间：骨架 ---------- */
html.m #screen-room.hidden,
html.m #screen-room.display-none { display: none !important; }
html.m #screen-room:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
html.m body #screen-room .rm-head {
  flex: 0 0 auto;
  height: 46px !important;
  min-height: 46px;
  padding: 0 var(--m-pad) !important;
  gap: 6px !important;
  overflow: hidden;
}
html.m body #screen-room .rm-head .rm-ch-name { font-size: 14px !important; max-width: 30vw; }
html.m body #screen-room .rm-head .rm-chip-id { display: none !important; }
html.m body #screen-room .rm-head .rm-ico { width: 30px !important; height: 30px !important; min-height: 30px; }
/* 桌面端塞在头部的小字（麦克风不可用/提示）在手机上不占位 */
html.m .rm-head .rm-head-tip,
html.m .rm-head .rm-tip { display: none !important; }
html.m body #screen-room #btn-leave {
  height: 30px !important; min-height: 30px; padding: 0 10px !important;
  font-size: 12.5px !important; white-space: nowrap;
}

html.m body #screen-room .rm-tools {
  flex: 0 0 auto;
  height: 40px !important;
  padding: 0 var(--m-pad) !important;
  gap: 4px !important;
}
html.m body #screen-room .rm-tool { width: 34px !important; height: 34px !important; min-height: 34px; }

html.m body #screen-room .rm-body { flex: 1 1 auto; min-height: 0; overflow: hidden; }
html.m .rm-tree {
  display: none !important;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: min(84vw, 320px);
  z-index: 780;
  background: #fff;
  box-shadow: 12px 0 32px rgba(16, 32, 60, .18);
  overflow-y: auto;
  padding-bottom: calc(12px + var(--sab));
}
html.m .rm-tree.open { display: flex !important; flex-direction: column; }
html.m .rm-drawer-veil { display: none; position: fixed; inset: 0; z-index: 770; background: rgba(12, 22, 40, .42); }
html.m .rm-drawer-veil.on { display: block; }
html.m #rm-tree-fab {
  display: inline-flex !important;
  position: fixed;
  left: 10px; bottom: calc(88px + var(--sab));
  width: 42px; height: 42px; min-height: 42px;
  border-radius: 12px; z-index: 700;
  box-shadow: 0 8px 22px rgba(20, 40, 80, .18);
}
html.m .rm-resizer { display: none !important; }

html.m body #screen-room .rm-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
}
/* 舞台：一条可横滑的坐席带，不再吃掉半屏 */
html.m body #screen-room .rm-stage {
  flex: 0 0 auto;
  height: auto !important;
  min-height: 0 !important;
  max-height: 34vh;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 0 !important;
}
html.m body #screen-room .rm-stage-head { padding: 4px var(--m-pad) !important; height: 26px; }
html.m .rm-stage-title { font-size: 13px !important; }
html.m .rm-stage-tag,
html.m .rm-stage-meta { font-size: 11px !important; }
html.m body #screen-room .rm-seats {
  display: flex !important;
  gap: 8px !important;
  padding: 2px var(--m-pad) 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
html.m body #screen-room .rm-seat {
  flex: 0 0 auto !important;
  width: 76px !important;
  height: 76px !important;
  min-width: 76px !important;
  scroll-snap-align: start;
  border-radius: 12px !important;
}
html.m .rm-seat-no { font-size: 10px !important; }
html.m .rm-seat-name { font-size: 11px !important; max-width: 68px; }
html.m .rm-seat-btn { min-height: 26px !important; font-size: 11px !important; padding: 0 6px !important; }
html.m .rm-free-note { margin: 0 var(--m-pad) 6px !important; padding: 8px 10px !important; font-size: 12.5px !important; }

html.m body #screen-room .rm-chatwrap { flex: 1 1 auto; min-height: 0; overflow: hidden; }
html.m body #screen-room .rm-chat-head { height: 22px; font-size: 11.5px; padding: 0 var(--m-pad); line-height: 22px; }
html.m body #screen-room #chat-list.rm-chat {
  height: calc(100% - 22px);
  padding: 2px var(--m-pad) 8px !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
html.m .chat-row { padding: 3px 0 !important; }
html.m .chat-text { font-size: 14px !important; line-height: 1.5; }

/* 输入条：整行贴底，压缩到 44px */
html.m body #screen-room .rm-inputbar {
  position: static !important;
  left: auto !important; right: auto !important; bottom: auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 var(--m-pad) 6px !important;
  padding: 4px 6px !important;
  border-radius: 12px !important;
  flex: 0 0 auto;
  min-height: 44px;
  z-index: 30;
}
html.m body #screen-room .rm-inputbar #chat-input { font-size: 15px !important; line-height: 22px; max-height: 96px; }
html.m body #screen-room #btn-send.rm-send-ico { width: 34px !important; height: 34px !important; min-height: 34px; }
html.m .rm-more-pop,
html.m .rm-dm-pop,
html.m .rm-gift-pop {
  position: fixed !important;
  left: 8px !important; right: 8px !important;
  bottom: calc(96px + var(--sab)) !important;
  width: auto !important;
  max-height: 52vh;
  overflow-y: auto;
}
html.m .rm-gift-pop .rm-gift-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* 底栏：单行横滑，去掉键盘提示与长状态文案 */
html.m body #screen-room .rm-footer {
  flex: 0 0 auto;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 2px;
  height: auto !important;
  min-height: 44px;
  padding: 4px var(--m-pad) calc(4px + var(--sab)) !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
html.m body #screen-room .rm-foot-left,
html.m .rm-foot-mid,
html.m .rm-foot-right { display: flex !important; align-items: center; gap: 2px; flex: 0 0 auto; }
html.m body #screen-room .rm-foot-cap,
html.m .rm-foot-kbd,
html.m #mic-status,
html.m .rm-foot-status { display: none !important; }
html.m body #screen-room .rm-foot-avatar { width: 30px !important; height: 30px !important; }
html.m body #screen-room .rm-foot-ico { width: 34px !important; height: 34px !important; min-height: 34px; }
html.m body #screen-room .rm-foot-item { height: 32px !important; min-height: 32px; padding: 0 8px !important; font-size: 12px !important; }
html.m body #screen-room #btn-mode { height: 32px !important; min-height: 32px; padding: 0 8px !important; font-size: 12px !important; }

/* 入场特效在手机上收小，别盖住公屏 */
html.m .ev-layer .ev-name,
html.m .ev-name { max-width: 42vw !important; font-size: 12px !important; }
html.m .ev-layer.ev-pip,
html.m .ev-pip { width: 152px !important; height: 86px !important; right: 8px !important; }
html.m .ev-pip { bottom: calc(104px + var(--sab)) !important; }

/* 房间右侧信息栏 / 快捷工具条在手机上默认收起 */
html.m #rm-info { display: none !important; }
html.m #rm-quick { display: none !important; }

/* ---------- 3. 浮层：频道菜单 / 面板按屏幕走 ---------- */
html.m .rm-ctx {
  width: min(78vw, 260px) !important;
  max-height: 62vh;
  overflow-y: auto;
}
html.m .rm-ctx-item { height: 40px !important; font-size: 14px !important; }
html.m .rm-ctx-sub { width: min(66vw, 220px) !important; }
html.m #room-notice,
html.m #room-visitors,
html.m .rm-panel,
html.m .rm-side-panel { width: 100% !important; max-width: none !important; }

/* 通用弹层铺满手机宽 */
html.m .modal,
html.m .dlg,
html.m [class$="-modal"] .box,
html.m [class$="-modal"] .card { max-width: calc(100vw - 24px) !important; }

/* ---------- 4. 横屏：矮屏优先保住公屏 ---------- */
@media (max-height: 460px) and (orientation: landscape) {
  html.m body #screen-room .rm-stage { max-height: 0 !important; height: 0 !important; overflow: hidden; }
  html.m body #screen-room .rm-stage-head { display: none !important; }
  html.m body #screen-room .rm-head { height: 40px !important; min-height: 40px; }
  html.m body #screen-room .rm-tools { height: 34px !important; }
  html.m .lobby-header { grid-template-areas: "id acts" "search search"; padding-top: 6px !important; }
  html.m body #screen-room .rm-footer { min-height: 38px; }
}

/* ---------- 5. 平板 / 折叠屏：回到接近桌面但更松 ---------- */
@media (min-width: 700px) and (max-width: 1024px) {
  html.m .channel-list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  html.m .lobby-header { grid-template-areas: "id acts" "search search"; }
  html.m .rm-tree { display: none !important; }
  html.m .rm-tree.open { display: flex !important; width: 320px; }
}
@media (min-width: 900px) {
  html.m body #screen-room .rm-head .rm-chip-id { display: inline-flex !important; }
}

/* ---------- 6. 「我的」独立页（me.html 内联样式兜底） ---------- */
html.m .me-wrap { width: 100% !important; max-width: 440px; margin: 0 auto; }

/* ---------- 7. 手机端收尾（放最后，专治被桌面规则抢先的地方） ---------- */
html.m body #screen-room #mic-status,
html.m body #screen-room #mic-status.rm-foot-status,
html.m body #screen-room .rm-foot-status { display: none !important; }
html.m body #screen-room .rm-foot-right .vc-btn { display: none !important; }

/* 成员抽屉浮标：固定在底栏上方，禁止桌面 top 规则干扰 */
html.m body #screen-room #rm-tree-fab {
  top: auto !important;
  left: 10px !important;
  bottom: calc(94px + var(--sab)) !important;
  position: fixed !important;
  width: 44px !important; height: 44px !important; min-height: 44px !important;
  border-radius: 14px !important;
  z-index: 705 !important;
}

/* 坐席卡片：手机上竖排内容要够高，不然「我要上座」被裁 */
html.m body #screen-room .rm-seat {
  width: 92px !important; min-width: 92px !important;
  height: 112px !important; min-height: 112px !important;
  padding: 12px 6px 8px !important;
  gap: 4px !important;
}
html.m body #screen-room .rm-seat-av { width: 40px !important; height: 40px !important; font-size: 16px !important; }
html.m body #screen-room .rm-seat-name { font-size: 11px !important; max-width: 78px !important; }
html.m body #screen-room .rm-seat-btn {
  font-size: 11px !important; padding: 2px 8px !important; min-height: 24px !important;
  border-radius: 7px !important;
}
html.m body #screen-room .rm-seat-no { font-size: 10px !important; top: 4px !important; left: 7px !important; }

/* 入场特效的名字条：手机上是纯装饰，收成小胶囊 */
html.m .ev-layer .ev-name,
html.m .ev-layer.ev-pip .ev-name {
  position: fixed !important;
  top: calc(var(--sat) + 92px) !important;
  left: 50% !important;
  width: auto !important;
  max-width: 62vw !important;
  padding: 5px 14px !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
  border-radius: 999px !important;
  z-index: 690 !important;
}
html.m .ev-layer.ev-pip,
html.m .ev-pip { right: 8px !important; bottom: calc(108px + var(--sab)) !important; width: 148px !important; }

/* ---------- 8. 房间头部在手机上的收纳规则 ---------- */
html.m body #screen-room .rm-head { align-items: center !important; }
html.m body #screen-room .rm-head-left {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 46px;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  overflow: hidden !important;
}
html.m body #screen-room .rm-head-left .rm-ico[disabled],
html.m body #screen-room .rm-head-left #btn-back { display: none !important; }
html.m body #screen-room .rm-head-left .rm-chip { height: 20px; font-size: 11.5px; padding: 0 7px; }
html.m body #screen-room .rm-head-right {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  height: 46px;
}
/* 头部里那条「麦克风不可用/旁听」文字不占位（状态在底栏图标颜色上体现） */
html.m body #screen-room .rm-head-right > span,
html.m body #screen-room .rm-head-right .rm-head-tip { display: none !important; }
html.m body #screen-room .rm-head-right .rm-ico { width: 30px !important; height: 30px !important; }

/* ---------- 9. 频道名与状态字 ---------- */
html.m body #screen-room .rm-ch-name,
html.m body #screen-room #room-title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 52vw !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 14px !important;
}
html.m body #mic-status,
html.m body .rm-foot-status { display: none !important; }

/* ---------- 10. 头部只留必要动作（JS 会把「暂未开放」按钮重新启用，所以按 aria-label 隐藏） ---------- */
html.m body #screen-room .rm-head .rm-ico[aria-label="收藏"],
html.m body #screen-room .rm-head .rm-ico[aria-label="分享"],
html.m body #screen-room .rm-head .rm-ico[aria-label="返回"],
html.m body #screen-room .rm-head .rm-ico[aria-label="提醒"],
html.m body #screen-room .rm-head .rm-ico[aria-label="频道信息"],
html.m body #screen-room .rm-head .rm-ico[aria-label="复制链接"],
html.m body #screen-room .rm-head .rm-ico[title="收藏暂未开放"],
html.m body #screen-room .rm-head .rm-ico[title="分享暂未开放"],
html.m body #screen-room .rm-head .rm-ico[title="提醒暂未开放"] { display: none !important; }

html.m body #screen-room .rm-ch-name,
html.m body #screen-room #room-title {
  flex: 0 1 auto !important;
  min-width: 72px !important;
  width: auto !important;
  max-width: 46vw !important;
  display: inline-block !important;
}

/* 头部状态字：手机上不占位（状态看底栏图标颜色） */
html.m body #screen-room #room-status,
html.m body #screen-room .rm-status { display: none !important; }
html.m body #screen-room .rm-head-left { align-items: center !important; height: 46px !important; }

/* 大厅/房间切屏：手机上彻底隐藏非当前屏，避免遗留元素（如「有人」筛选）透出来 */
html.m #screen-lobby.hidden,
html.m #screen-room.hidden,
html.m #screen-login.hidden { display: none !important; }
html.m #screen-room:not(.hidden) ~ #screen-lobby { display: none !important; }

/* 进场特效名字条：手机上是纯装饰且会压坐席，直接不显示（右下小窗保留） */
html.m .ev-layer .ev-name,
html.m .ev-pip .ev-name { display: none !important; }

/* ---------- 11. 底栏在手机上只留必需项，避免横向挤压 ---------- */
html.m body #screen-room .rm-foot-item[disabled],
html.m body #screen-room .rm-foot-btn[disabled] { display: none !important; }
html.m body #screen-room .rm-foot-mid { gap: 6px !important; overflow-x: auto !important; scrollbar-width: none; }
html.m body #screen-room .rm-foot-mid::-webkit-scrollbar { display: none; }
html.m body #screen-room .rm-foot-mid .rm-foot-btn { flex: 0 0 auto; padding: 0 10px !important; font-size: 12px !important; }
html.m body #screen-room #rm-tree-fab { bottom: calc(150px + var(--sab)) !important; }

/* ---------- 12. 触摸目标：能点到 44 就给 44，给不到的至少 36×32 ---------- */
html.m body #screen-room .rm-head .rm-ico,
html.m body #screen-room .rm-head-right .rm-ico {
  width: 36px !important; height: 32px !important; min-height: 32px !important;
}
html.m body #screen-room #btn-me,
html.m body #screen-room #btn-leave { height: 34px !important; min-height: 34px !important; }
html.m body #screen-room .rm-seat-btn { min-height: 28px !important; }
html.m body #screen-room .rm-tool { width: 40px !important; height: 36px !important; min-height: 36px !important; }
html.m body #screen-room .rm-stage { overflow-x: auto !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
html.m body #screen-room .rm-stage::-webkit-scrollbar { display: none; }
html.m body #screen-room .rm-seat-btn { min-height: 30px !important; padding: 3px 9px !important; }
html.m .vc-top, html.m .lobby-header .vc-top { height: 30px !important; min-height: 30px !important; }

/* ---------- 13. 输入条与底栏收尾 ---------- */
html.m body #screen-room .rm-inputbar { gap: 4px !important; }
html.m body #screen-room .rm-inputbar .rm-flower,
html.m body #screen-room #btn-dm,
html.m body #screen-room #btn-send { flex: 0 0 auto !important; }
html.m body #screen-room #chat-input { min-width: 0 !important; }
html.m body #screen-room .rm-foot { padding-bottom: calc(6px + var(--sab)) !important; }

/* 底栏整体可横滑，右侧按钮不再被裁 */
html.m body #screen-room .rm-foot {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none;
}
html.m body #screen-room .rm-foot::-webkit-scrollbar { display: none; }
html.m body #screen-room .rm-foot-left,
html.m body #screen-room .rm-foot-mid,
html.m body #screen-room .rm-foot-right { flex: 0 0 auto !important; }

/* 侧栏按钮在手机上只留图标，省出空间给房间工具 */
html.m body #screen-room .rm-foot-right .rm-foot-item,
html.m body #screen-room .rm-foot-mid .rm-foot-item { font-size: 0 !important; padding: 0 9px !important; gap: 0 !important; }
html.m body #screen-room .rm-foot-right .rf-ic,
html.m body #screen-room .rm-foot-mid .rf-ic { font-size: 15px !important; line-height: 1 !important; }
html.m body #screen-room .rm-foot-right .rm-foot-item svg,
html.m body #screen-room .rm-foot-mid .rm-foot-item svg { width: 15px; height: 15px; }

/* 大厅可见时，不让上一场的入场特效小窗留在屏幕上 */
html.m body:has(#screen-lobby:not(.hidden)) .ev-layer { display: none !important; }

/* ---------- 14. 窄版（手机）房间的坐席与输入条修正 ---------- */
html.m body #screen-room .rm-stage { align-items: stretch !important; }
html.m body #screen-room .rm-seat {
  height: auto !important;
  min-height: 128px !important;
  padding-bottom: 10px !important;
  justify-content: center !important;
}
html.m body #screen-room .rm-seat-btn { margin-top: 2px !important; }

/* 窄版会把「私聊/送花」藏起来，手机上要保留（输入条只有内容与发送太单薄） */
html.m body #screen-room .rm-inputbar #btn-dm,
html.m body #screen-room .rm-inputbar #btn-gift {
  display: inline-flex !important;
  width: 34px !important; height: 34px !important; min-height: 34px !important;
  align-items: center; justify-content: center;
}
html.m body #screen-room .rm-inputbar #btn-send { margin-left: 2px !important; }

/* 成员抽屉浮标：挪到右下，避开左侧头像与聊天正文 */
html.m body #screen-room #rm-tree-fab {
  left: auto !important;
  right: 12px !important;
  bottom: calc(132px + var(--sab)) !important;
  top: auto !important;
  width: 42px !important; height: 42px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 6px 18px rgba(28,52,96,.16) !important;
  z-index: 720 !important;
}

/* 手机上不用浮标：成员入口就是工具栏第一个按钮（下面由 mobile.js 接上抽屉） */
html.m body #screen-room #rm-tree-fab { display: none !important; }
html.m body #screen-room .rm-tools .rm-tool[aria-label="成员"] { opacity: 1 !important; }

/* 底栏「我的」是纯文字按钮，别被「只留图标」的规则清空 */
html.m body #screen-room #btn-me-foot {
  font-size: 12px !important;
  width: auto !important; min-width: 46px !important;
  padding: 0 8px !important;
}

/* 底栏不再“只留图标”：恢复 11.5px 小字，靠横向滑动容纳 */
html.m body #screen-room .rm-foot-right .rm-foot-item,
html.m body #screen-room .rm-foot-mid .rm-foot-item {
  font-size: 11.5px !important;
  padding: 0 8px !important;
  gap: 4px !important;
}
html.m body #screen-room .rm-foot-right .rm-foot-item svg,
html.m body #screen-room .rm-foot-mid .rm-foot-item svg { width: 13px; height: 13px; }

/* 横屏不再把舞台整块藏掉：压到 104px，保留坐席可见与上麦入口 */
@media (max-height: 460px) and (orientation: landscape) {
  html.m body #screen-room .rm-stage {
    max-height: 104px !important;
    height: 104px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 4px 0 !important;
  }
  html.m body #screen-room .rm-seat {
    min-height: 88px !important;
    width: 84px !important;
    padding: 4px !important;
  }
  html.m body #screen-room .rm-seat-av { width: 30px !important; height: 30px !important; }
  html.m body #screen-room .rm-seat-btn { min-height: 22px !important; font-size: 10px !important; padding: 1px 6px !important; }
  html.m body #screen-room .rm-seat-no { font-size: 9px !important; }
}
