/*
 * Poly · 手机端统一风格（2026-10-29）—— 和新首页（newhome.js / preview-home-glass.html A 版）同一套：
 * 会议室照片轻虚化做底、透明玻璃、白字压照片、深色字在玻璃上、蓝色胶囊做主按钮。
 *
 * ⚠️ 只在 ≤768px 生效（整个文件都包在 @media 里），电脑端一条都不碰。
 * ⚠️ 只改外观，不改结构：所有元素、id、类名、事件都是 index.html 原来那套。
 *    这里的选择器一律带 html 前缀，比 index.html 里同名规则高一级，所以**不靠加载顺序**也能压住。
 *    行内 style 写死的少数几处（#tipsBar 等）才用 !important。
 * ⚠️ 暗色单独维护：每一块都有 html[data-theme="dark"] 那份（主色当文字在暗底上只有 ~3:1，见 CLAUDE.md）。
 * ⚠️ 回退：index.html / login.html 里删掉引用这个文件的那一行 <link> 即可整体回到旧样式。
 */
@media (max-width: 768px) {
  :root {
    --g-ink: #15233a; --g-ink2: #4a5b73; --g-ink3: rgba(30,48,76,.5);
    --g-navy: #1d2b42;
    --g-glass: linear-gradient(155deg, rgba(255,255,255,.46) 0%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.3) 100%);
    --g-shadow: inset 0 1px 1px rgba(255,255,255,.9), inset 0 16px 28px -20px rgba(255,255,255,.75), inset 0 -18px 30px -24px rgba(120,145,190,.35), 0 22px 44px -26px rgba(16,32,60,.5), 0 2px 6px -2px rgba(16,32,60,.12);
    --g-sheet: linear-gradient(160deg, rgba(250,252,255,.82), rgba(236,242,251,.7));
    --g-chip: rgba(255,255,255,.86);
    --g-round: linear-gradient(160deg, rgba(255,255,255,.32), rgba(255,255,255,.1));
    --g-round-shadow: inset 0 1px 1px rgba(255,255,255,.7), inset 0 -6px 12px -8px rgba(0,0,0,.25), 0 8px 18px -10px rgba(12,28,56,.5);
    --g-blue: linear-gradient(145deg, #6f97fa, #4672e6);
    --g-blue-shadow: 0 6px 16px -6px rgba(70,114,230,.6);
    --g-text-on-photo: 0 1px 6px rgba(8,16,36,.55), 0 1px 2px rgba(8,16,36,.35);
    --g-pop-shadow: 0 18px 40px -16px rgba(10,24,48,.5), inset 0 1px 1px rgba(255,255,255,.6);
  }
  html[data-theme="dark"] {
    --g-ink: #f1f5fc; --g-ink2: rgba(226,235,248,.76); --g-ink3: rgba(226,235,248,.5);
    --g-glass: linear-gradient(155deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 55%, rgba(255,255,255,.1) 100%);
    --g-shadow: inset 0 1px 1px rgba(255,255,255,.38), inset 0 14px 26px -18px rgba(255,255,255,.2), inset 0 -18px 30px -24px rgba(0,0,0,.35), 0 22px 44px -26px rgba(0,0,0,.6), 0 2px 6px -2px rgba(0,0,0,.25);
    --g-sheet: linear-gradient(160deg, rgba(48,58,82,.9), rgba(26,33,50,.86));
    --g-chip: rgba(255,255,255,.12);
    --g-pop-shadow: 0 18px 40px -16px rgba(0,0,0,.7), inset 0 1px 1px rgba(255,255,255,.18);
  }
  /* 老内核（html.lowfx，见 index.html <head> 那行）：认 backdrop-filter 写法但不画模糊 → 半透明浮层透出后面的字（红米钉钉的日历、新建会话）。
     弹窗 / 菜单 / 底部弹层 / 提示条都用 --g-sheet，这里换成几乎不透明的一套就全覆盖了。 */
  /* 底下垫一张预先模糊好的空会议室照片（blur-room.jpg，约 4KB），上面盖原来那层纱：有照片的色彩、又透不出后面的字（第一版纯白底用户说「要符合的色彩」）。 */
  html.lowfx { --g-sheet: linear-gradient(160deg, rgba(250,252,255,.8), rgba(236,242,251,.7)), #c9d3e0 url("blur-room.jpg?v=1") 50% 50% / cover no-repeat; }
  html.lowfx[data-theme="dark"] { --g-sheet: linear-gradient(160deg, rgba(48,58,82,.86), rgba(26,33,50,.88)), #2a3346 url("blur-room.jpg?v=1") 50% 50% / cover no-repeat; }


  /* ════════ 对话页底：照片轻虚化 + 顶部压暗（白字立得住）════════
     复用 .session-view 原来画网格 / 极光的 ::before / ::after，不新增元素。 */
  html .session-view { background: #9fb0c2; }
  html[data-theme="dark"] .session-view { background: #0b111d; }
  /* 🔴 z-index 必须是 -1：原来那层几乎透明的网格是 z 0，压在没定位的普通元素（筛选条、标题）**上面**也看不出来；
     换成照片 + 压暗渐变之后还压在上面，整条筛选条和标题就被盖灰了（10-29 实测）。
     .session-view 本身 position:relative + z-index:1，自成层叠上下文，-1 只会落到它自己的内容后面。 */
  html .session-view::before, html .session-view::after { z-index: -1; }
  /* 照片构图：上 25% 天花板、会议屏和桌子在 30%~60%（偏右）、下面 40% 全是地板。
     铺满（cover）的话竖屏手机会把整张图从上到下露出来，下半屏一大片地板（用户 10-30 截图）。
     所以放大到 1.5 倍、对准会议桌（横 79% / 竖 35%），屏幕中间就是会议室。背景本来就虚化，放大看不出糊。
     横屏放大后盖不满宽度，横屏仍用 cover（见下面那条 orientation）。 */
  html .session-view::before {
    inset: -4%; background: #9fb0c2 url("cover-meeting.jpg?v=8") 79% 35% / auto 150% no-repeat;
    -webkit-mask-image: none; mask-image: none; filter: blur(3px); transform: scale(1.04);
  }
  html[data-theme="dark"] .session-view::before { background-image: url("cover-meeting.jpg?v=8"); filter: brightness(.5) saturate(.85) blur(3px); }
  @media (orientation: landscape) { html .session-view::before { background-size: cover; background-position: 70% 45%; } }
  html .session-view::after {
    inset: 0; filter: none; animation: none;
    background:
      linear-gradient(180deg, rgba(14,26,50,.5) 0%, rgba(14,26,50,.24) 14%, rgba(14,26,50,0) 28%),
      linear-gradient(180deg, rgba(250,252,255,.18) 0%, rgba(232,240,250,.12) 40%, rgba(96,118,152,.28) 70%, rgba(52,72,104,.5) 100%);
  }
  html[data-theme="dark"] .session-view::after { background: linear-gradient(180deg, rgba(4,8,18,.55) 0%, rgba(4,8,18,.15) 20%, rgba(4,8,18,.2) 50%, rgba(4,8,18,.7) 100%); }
  /* 列表本身透明：暗色主题下它原来有自己的深色底，会把照片下半截整块盖黑 */
  html .session-view .session-body, html[data-theme="dark"] .session-view .session-body { background: transparent; }
  /* 首页录音有自己的一层底（带粒子球），这两层就不必再画一遍 */
  html .session-view.nh-live::before, html .session-view.nh-live::after { display: none; }

  /* ════════ 对话页顶栏：透明，按钮换成玻璃圆钮，标题白字 ════════ */
  html .session-header, html[data-theme="dark"] .session-header { background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html .session-header .mobile-nav-btn, html .session-header .close-session, html .session-header .lang-badge, html .session-header .layout-badge {
    color: #fff; border: 0; border-radius: 50%; background: var(--g-round);
    -webkit-backdrop-filter: blur(14px) saturate(125%); backdrop-filter: blur(14px) saturate(125%); box-shadow: var(--g-round-shadow);
    width: 40px; height: 40px; min-width: 40px; padding: 0; display: grid; place-items: center; flex-shrink: 0;
  }
  html .session-header .mobile-nav-btn svg, html .session-header .close-session svg, html .session-header .layout-badge svg, html .session-header .ft-gear { color: #fff; filter: drop-shadow(0 1px 2px rgba(8,16,36,.45)); }
  html .session-header .session-title-input { color: #fff; background: transparent; border-color: transparent; text-shadow: var(--g-text-on-photo); }
  html .session-header .session-title-input::placeholder { color: rgba(255,255,255,.75); }
  html .session-header .session-title-input:focus { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); box-shadow: none; }
  html .session-header .rec-badge, html .session-header .timer { color: #fff; text-shadow: var(--g-text-on-photo); }
  /* 顶栏那颗「气泡布局」双栏图标手机端不要（10-30 用户要求）：它的下拉菜单在窄屏上从左边被截掉，
     而气泡上那颗 ⇄ 已经能按人换边。桌面端不受影响。使用提示里对应那条也改成了说 ⇄。 */
  /* ⚠️ 只藏「气泡布局」那一个菜单（#layoutMenu）。11-03 之前这里写的是整个 .layout-menu 类，
     把同类的面对面 / 群聊设置齿轮菜单（#ftSetMenu）、面对面长按菜单（#ftEntryMenu）、位置菜单（#ftPosMenu）
     在手机上一起藏没了 —— 点齿轮、长按都「没反应」（用户 11-03 报：群聊设置图标点击没有反应）。 */
  html .session-header .layout-badge, html #layoutMenu { display: none !important; }
  /* 「收起 / 展开顶栏」的小把手：一小截半透明胶囊，别是一块灰方块 */
  html .session-header .chrome-toggle { color: #fff; border: 0; border-radius: 99px; background: rgba(255,255,255,.18); box-shadow: inset 0 1px 1px rgba(255,255,255,.45);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

  /* ════════ 筛选条（全部 / 待办 / 决议 / 重点 · 数据开关）：玻璃胶囊，选中 = 白胶囊深字 ════════ */
  html .filter-bar, html[data-theme="dark"] .filter-bar { background: transparent; border: 0; box-shadow: none; }
  html .filter-bar .filter-chip, html .filter-bar .ds-chip, html .session-view .ds-chip {
    color: #fff; border: 0; opacity: 1; text-shadow: 0 1px 3px rgba(8,16,36,.55);
    /* 比顶栏圆钮多压一层深色：这一行常落在照片最亮的天花板灯带上，纯白玻璃上的白字读不出来 */
    background: linear-gradient(160deg, rgba(255,255,255,.24), rgba(255,255,255,.06)), rgba(20,32,56,.2);
    -webkit-backdrop-filter: blur(14px) saturate(125%); backdrop-filter: blur(14px) saturate(125%); box-shadow: var(--g-round-shadow);
  }
  html .filter-bar .filter-chip .s2-ico, html .filter-bar .ds-chip svg { color: #fff; }
  html .filter-bar .filter-chip.active { color: var(--g-navy); background: #fff; text-shadow: none; box-shadow: 0 6px 14px -6px rgba(8,18,40,.5); }
  html .filter-bar .filter-chip.active .s2-ico { color: var(--g-navy); }
  html .session-view .ds-chip.is-off { color: #ffe0da; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
  /* 筛选条里那颗「数据开启」是贴右边不跟着滚的（sticky），筛选胶囊会从它底下滑过去。
     透明玻璃挡不住，下面的「重点」会透上来（10-30 截图）—— 这一颗换厚一点的深色磨砂，左边加一道阴影隔开 */
  html .filter-bar .ds-chip { background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.06)), rgba(28,42,68,.78);
    -webkit-backdrop-filter: blur(16px) saturate(125%); backdrop-filter: blur(16px) saturate(125%);
    box-shadow: -12px 0 14px -8px rgba(8,16,36,.55), inset 0 1px 1px rgba(255,255,255,.4); }
  html .filter-bar .ds-chip.is-off { background: rgba(60,30,34,.78); box-shadow: -12px 0 14px -8px rgba(8,16,36,.55), inset 0 0 0 1px rgba(255,180,168,.55); }

  /* ════════ 使用提示、补翻 / 润色后重翻 / 断网提示条：浅色玻璃卡 ════════ */
  html #tipsBar, html #btnTipsReopen {
    color: var(--g-ink) !important; border: 0 !important; border-radius: 18px !important; background: var(--g-sheet) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); box-shadow: var(--g-pop-shadow);
  }
  html #btnTipsReopen { border-radius: 99px !important; }
  html #transSwitchBar, html #polishTransBar, html .offline-bar {
    color: var(--g-ink) !important; border: 0 !important; border-radius: 18px !important; background: var(--g-sheet) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); box-shadow: var(--g-pop-shadow) !important;
  }
  html .session-view .newmsg-pill { color: var(--g-navy); background: var(--g-chip); border: 0; box-shadow: var(--g-pop-shadow); }

  /* ════════ 气泡：透明玻璃，按说话人颜色轻轻着一点色（实时转写）════════ */
  html .session-view .entry[data-side] .entry-main {
    color: var(--g-ink); border-radius: 20px;
    background: linear-gradient(155deg, color-mix(in srgb, var(--speaker-color, #5b8def) 14%, rgba(255,255,255,.5)) 0%, rgba(255,255,255,.26) 60%, rgba(255,255,255,.32) 100%);
    -webkit-backdrop-filter: blur(18px) saturate(135%) brightness(1.05); backdrop-filter: blur(18px) saturate(135%) brightness(1.05);
    box-shadow: var(--g-shadow);
  }
  html[data-theme="dark"] .session-view .entry[data-side] .entry-main {
    background: linear-gradient(155deg, color-mix(in srgb, var(--speaker-color, #5b8def) 16%, rgba(255,255,255,.12)) 0%, rgba(255,255,255,.05) 60%, rgba(255,255,255,.09) 100%);
  }
  /* 老内核（Chrome < 111 / iOS < 16.2，钉钉 / 微信）不认 color-mix()：上面两条带 var() 的在算值时作废 → 气泡没底色。
     改用行内样式本来就给的 --speaker-color-soft（说话人色 12% 透明度）叠在一层白纱上，合成出来和上面差不多（同色相、浓度接近）。 */
  @supports not (color: color-mix(in srgb, red 50%, blue)) {
    html .session-view .entry[data-side] .entry-main {
      background: linear-gradient(155deg, var(--speaker-color-soft, rgba(91,141,239,.12)) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(155deg, rgba(255,255,255,.49) 0%, rgba(255,255,255,.26) 60%, rgba(255,255,255,.32) 100%);
    }
    html[data-theme="dark"] .session-view .entry[data-side] .entry-main {
      background: linear-gradient(155deg, var(--speaker-color-soft, rgba(91,141,239,.12)) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(155deg, rgba(255,255,255,.115) 0%, rgba(255,255,255,.05) 60%, rgba(255,255,255,.09) 100%);
    }
  }
  html .session-view .entry[data-side="left"] .entry-main { border-top-left-radius: 6px; }
  html .session-view .entry[data-side="right"] .entry-main { border-top-right-radius: 6px; }
  html .session-view .entry .entry-text { color: inherit; }
  html .session-view .entry.live .entry-main { color: var(--g-ink2); }
  html .session-view .entry[data-side] .inline-trans, html .session-view .entry[data-side] .entry-trans { border-top: 1px solid rgba(30,48,76,.14); color: var(--g-ink2); }
  html[data-theme="dark"] .session-view .entry[data-side] .inline-trans, html[data-theme="dark"] .session-view .entry[data-side] .entry-trans { border-top-color: rgba(255,255,255,.16); }
  html .session-view .entry[data-side] .inline-trans .txt { color: var(--g-ink2); opacity: 1; }
  html .session-view .entry[data-side] .entry-avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
  /* 名字、时间压在照片上：白字 + 和首页问候同一档阴影 */
  html .session-view .entry[data-side] .speaker-tag, html .session-view .entry[data-side] .entry-time,
  html .session-view .entry[data-side] .entry-time-absolute, html .session-view .entry[data-side] .entry-time-gap,
  html .session-view .note-entry .entry-time, html .session-view .note-entry .entry-time-absolute, html .session-view .note-entry .entry-time-gap {
    color: rgba(255,255,255,.95) !important; text-shadow: var(--g-text-on-photo); }
  html .session-view .entry-time, html .session-view .entry-time-absolute { font-family: inherit; font-variant-numeric: tabular-nums; }
  html .session-view .entry-time-absolute { opacity: .85; }
  html .session-view .entry[data-side] .speaker-tag[contenteditable]:focus { background: rgba(255,255,255,.18); box-shadow: none; }
  /* ⇄ 换边（CSS 遮罩画的图标，背景色就是图标色）：压在照片上改白色 */
  html .session-view .entry[data-side] .side-flip, html .session-view .note-entry .side-flip { color: #fff; opacity: .9; filter: drop-shadow(0 1px 2px rgba(8,16,36,.5)); }
  /* 换天的日期条：和气泡同一种玻璃小胶囊、深色字 */
  html .session-view .day-sep > span { color: var(--g-ink) !important; text-shadow: none; background: var(--g-glass) !important; border: 0 !important;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--g-shadow); }
  html .session-view .day-sep::before, html .session-view .day-sep::after { background: rgba(255,255,255,.35) !important; }
  /* 快速笔记：不分人的气泡，同一种玻璃；靠右那档带一点品牌蓝 */
  html .session-view .note-entry[data-side] .note-main {
    color: var(--g-ink); border: 0; border-radius: 20px; background: var(--g-glass);
    -webkit-backdrop-filter: blur(18px) saturate(135%) brightness(1.05); backdrop-filter: blur(18px) saturate(135%) brightness(1.05); box-shadow: var(--g-shadow);
  }
  html .session-view .note-entry[data-side="right"] .note-main {
    background: linear-gradient(155deg, rgba(203,217,253,.61) 0%, rgba(255,255,255,.26) 60%, rgba(255,255,255,.32) 100%);   /* 老内核兜底 = 下一条算好的颜色 */
    background: linear-gradient(155deg, color-mix(in srgb, #6f97fa 22%, rgba(255,255,255,.5)) 0%, rgba(255,255,255,.26) 60%, rgba(255,255,255,.32) 100%);
    border-top-right-radius: 6px; }
  html[data-theme="dark"] .session-view .note-entry[data-side="right"] .note-main {
    background: linear-gradient(155deg, rgba(146,176,251,.316) 0%, rgba(255,255,255,.05) 60%, rgba(255,255,255,.09) 100%);
    background: linear-gradient(155deg, color-mix(in srgb, #6f97fa 24%, rgba(255,255,255,.1)) 0%, rgba(255,255,255,.05) 60%, rgba(255,255,255,.09) 100%); }
  html .session-view .note-entry[data-side="left"] .note-main { border-top-left-radius: 6px; }
  html .session-view .note-entry .inline-trans { border-top: 1px solid rgba(30,48,76,.14); color: var(--g-ink2); }
  html .session-view .empty-body, html .session-view .ft-empty, html .session-view .ft-empty-note { color: rgba(255,255,255,.92) !important; text-shadow: var(--g-text-on-photo); }

  /* ════════ 底栏：同一条胶囊（凹槽和中间那颗录音钮都留着），换成玻璃 ════════ */
  html .session-footer::before, html[data-theme="dark"] .session-footer::before {
    background: var(--g-glass);
    -webkit-backdrop-filter: blur(18px) saturate(125%) brightness(1.06); backdrop-filter: blur(18px) saturate(125%) brightness(1.06);
    filter: drop-shadow(0 10px 22px rgba(16,32,60,.3));
  }
  html .session-footer .m-foot-btn, html .session-footer .cb-toggle, html .session-footer .cb-more {
    color: #1d2b42; border: 0;
    background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.98), rgba(255,255,255,.4) 30%, transparent 55%), conic-gradient(from 210deg at 50% 55%, rgba(255,205,228,.5), rgba(195,218,255,.55), rgba(210,255,242,.45), rgba(255,238,196,.45), rgba(255,205,228,.5)), rgba(240,245,252,.7);
    box-shadow: inset 0 1px 2px #fff, inset 0 -6px 12px rgba(120,140,180,.3), inset 0 0 0 1px rgba(255,255,255,.6), 0 6px 14px -8px rgba(30,50,90,.5);
  }
  html[data-theme="dark"] .session-footer .m-foot-btn, html[data-theme="dark"] .session-footer .cb-toggle, html[data-theme="dark"] .session-footer .cb-more {
    color: #fff; background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.6), rgba(255,255,255,.12) 30%, transparent 55%), conic-gradient(from 210deg at 50% 55%, rgba(255,170,210,.3), rgba(140,180,255,.35), rgba(150,240,220,.25), rgba(255,220,150,.25), rgba(255,170,210,.3)), rgba(255,255,255,.08);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 6px 14px -8px rgba(0,0,0,.6);
  }
  html .session-footer .record-btn:not(.recording) { background: var(--g-blue); box-shadow: 0 0 0 6px rgba(255,255,255,.28), 0 10px 26px -8px rgba(70,114,230,.7); }
  html .session-footer .cbar, html .session-footer .cbar input { color: var(--g-ink); }

  /* ════════ 弹出菜单（底栏「⋯」、长按条目、布局、导出、账号、面对面）：浅色玻璃 + 回弹 ════════ */
  html .m-more-menu, html .entry-context-menu, html .layout-menu, html .export-menu, html .es-acct-menu, html .ft-emenu, html .session-menu-pop {
    color: var(--g-ink); border: 0; border-radius: 20px; background: var(--g-sheet);
    -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%); box-shadow: var(--g-pop-shadow);
  }
  html .m-more-menu .m-more-item, html .entry-context-menu .menu-item, html .export-menu .export-item { border-radius: 14px; color: var(--g-ink); }
  html .m-more-menu .m-more-item:active, html .entry-context-menu .menu-item:active, html .export-menu .export-item:active { background: rgba(75,123,230,.12); }
  html .entry-context-menu .menu-item.danger { color: #d1394a; }
  html[data-theme="dark"] .entry-context-menu .menu-item.danger { color: #ff8a95; }
  html .entry-context-menu .menu-divider { background: rgba(30,48,76,.1); }
  html[data-theme="dark"] .entry-context-menu .menu-divider { background: rgba(255,255,255,.1); }

  /* ════════ 弹窗（新建对话、导入、建群、帮助、反馈、摘要、润色、确认…）：浅色玻璃卡 ════════
     🔴 不动 .dialog 的 overflow / backdrop-filter 结构（弹窗里的下拉靠「脱壳到 body」才不被裁，见 CLAUDE.md），只换颜色和圆角。 */
  html .dialog-mask { background: rgba(8,16,32,.3); }
  html .dialog, html[data-theme="dark"] .dialog {
    color: var(--g-ink); border: 0; border-radius: 28px; background: var(--g-sheet);
    -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%);
    box-shadow: 0 30px 60px -24px rgba(10,24,48,.55), inset 0 1px 1px rgba(255,255,255,.6);
  }
  html .dialog .ctrl-btn:not(.ghost), html .dialog .btn-primary, html .dialog #btnSpeechConfirm {
    color: #fff; border: 0; border-radius: 99px; background: var(--g-blue); box-shadow: var(--g-blue-shadow); }
  html .dialog .ctrl-btn.ghost { color: var(--g-navy); border: 0; border-radius: 99px; background: var(--g-chip); box-shadow: 0 4px 12px -8px rgba(16,32,60,.4); }
  html[data-theme="dark"] .dialog .ctrl-btn.ghost { color: var(--g-ink); }
  html .dialog .mode-card {
    color: var(--g-ink); border: 0; border-radius: 20px; background: var(--g-glass);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.8), 0 10px 24px -18px rgba(16,32,60,.45);
  }
  html[data-theme="dark"] .dialog .mode-card { box-shadow: inset 0 1px 1px rgba(255,255,255,.2); }
  html .dialog .mode-card.selected { box-shadow: inset 0 0 0 2px #4672e6, 0 10px 24px -18px rgba(16,32,60,.45); }
  html .dialog input[type="text"], html .dialog input[type="search"], html .dialog input:not([type]), html .dialog textarea, html .dialog select {
    color: var(--g-ink); border: 0; border-radius: 14px; background: var(--g-chip); box-shadow: inset 0 1px 3px rgba(16,32,60,.12); }
  html .dialog input:focus, html .dialog textarea:focus { outline: 2px solid #4672e6; outline-offset: 1px; }

  /* 面对面的底部弹层（选语言、设置、改名）：同一种玻璃 */
  html .ft-lp-mask { background: rgba(8,16,32,.3); }
  html .ft-lp, html[data-theme="dark"] .ft-lp {
    color: var(--g-ink); border: 0; background: var(--g-sheet); border-radius: 28px 28px 0 0;
    -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%); box-shadow: 0 -18px 40px -20px rgba(10,24,48,.45), inset 0 1px 1px rgba(255,255,255,.6);
  }

  /* ════════ 侧栏抽屉：整块玻璃面板 ════════ */
  html .sidebar, html[data-theme="dark"] .sidebar {
    --sidebar-bg: var(--g-sheet);
    color: var(--g-ink); background: var(--g-sheet); border: 0; border-radius: 0 28px 28px 0;
    -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%);
    box-shadow: 18px 0 40px -20px rgba(10,24,48,.5), inset -1px 0 0 rgba(255,255,255,.5);
  }
  html .sidebar::before, html .sidebar::after { opacity: 0; }
  html .sidebar #btnNewSession { color: #fff; border: 0; border-radius: 99px; background: var(--g-blue); box-shadow: var(--g-blue-shadow); }
  html .sidebar .new-btn.ghost { color: var(--g-navy); border: 0; border-radius: 99px; background: var(--g-chip); box-shadow: 0 4px 12px -8px rgba(16,32,60,.4); }
  html[data-theme="dark"] .sidebar .new-btn.ghost { color: var(--g-ink); }
  html .sidebar .sidebar-search input { color: var(--g-ink); border: 0; border-radius: 99px; background: var(--g-chip); box-shadow: inset 0 1px 3px rgba(16,32,60,.12); }
  html .sidebar .session-item { border-radius: 16px; }
  html .sidebar .session-item.active, html .sidebar .session-item:active { background: rgba(255,255,255,.55); box-shadow: inset 0 1px 1px rgba(255,255,255,.8); }
  html[data-theme="dark"] .sidebar .session-item.active, html[data-theme="dark"] .sidebar .session-item:active { background: rgba(255,255,255,.1); box-shadow: none; }
  html .sidebar .session-item .ico { border-radius: 50%; background: var(--g-chip); }
  html .sidebar .sidebar-footer { background: transparent; border-top-color: rgba(30,48,76,.08); }
  html .sidebar .sf-seg { background: var(--g-chip); border: 0; border-radius: 99px; }
  html .sidebar-backdrop { background: rgba(8,16,32,.3); }
  /* 侧栏不放「导入」「建群/入群」（用户 10-29 要求）：首页「＋」、功能卡、录音画面的「＋」里都有这两个入口。
     只是藏起来：按钮还在 DOM 里，JS 按 id 绑的事件照常（桌面端不受影响）。 */
  html .sidebar .sb-tools .side-row { display: none; }

  /* ════════ 提示（toast）：深色玻璃胶囊 ════════ */
  html .toast { border-radius: 18px; background: rgba(22,32,52,.78); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 12px 30px -12px rgba(8,16,36,.6); }
}

.lg-sph { display: none; }
/* ════════ 登录页（login.html，body.lg）：照片 + 玻璃，和应用里同一套 ════════
   登录页自己的手机断点是 820px（见 login.html），这里跟着它走。
   🔴 中间那块原来放的是 🎙️ emoji（不同系统字体长得不一样，违反「图标不用 emoji」），
      这里把字藏掉、换成和首页同款的发光球 + 线性麦克风（CSS 遮罩画）。 */
@media (max-width: 820px) {
  body.lg { color: #fff; background: #5b6f8c url("cover-meeting.jpg?v=8") 50% 30% / cover no-repeat; }
  body.lg::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(14,26,50,.5) 0%, rgba(14,26,50,.18) 22%, rgba(14,26,50,0) 40%), linear-gradient(180deg, rgba(250,252,255,.1) 0%, rgba(96,118,152,.3) 62%, rgba(40,58,90,.62) 100%);
    -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
  html[data-theme="dark"] body.lg::before { background: linear-gradient(180deg, rgba(4,8,18,.6) 0%, rgba(4,8,18,.3) 40%, rgba(4,8,18,.75) 100%); }
  body.lg .wrap { position: relative; z-index: 1; background: none; }
  body.lg .brand { color: #fff; text-shadow: 0 1px 6px rgba(8,16,36,.5); }
  body.lg .brand .logo { background: linear-gradient(145deg, #6f97fa, #4672e6); box-shadow: 0 8px 18px -6px rgba(70,114,230,.6); }
  body.lg .beam { display: none; }
  body.lg .disc, body.lg .pedestal { display: none; }
  body.lg .glass {
    font-size: 0; border: 0; border-radius: 50%; animation: floatY 6s ease-in-out infinite;
    background: radial-gradient(circle at 40% 34%, rgba(20,24,66,.18), rgba(20,24,66,.42) 70%, rgba(20,24,66,.5) 100%);
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85), inset 0 0 22px rgba(170,160,255,.65), 0 0 0 8px rgba(170,160,255,.16), 0 0 46px 6px rgba(170,160,255,.55);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  }
  body.lg .glass::after { content: ""; position: absolute; left: 31%; top: 31%; width: 38%; height: 38%; background: #fff; filter: drop-shadow(0 0 6px rgba(170,160,255,.9));
    -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='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2.5' width='6' height='11' rx='3'/%3E%3Cpath d='M6 11a6 6 0 0 0 12 0'/%3E%3Cpath d='M12 17v3.4M8.5 20.4h7'/%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='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2.5' width='6' height='11' rx='3'/%3E%3Cpath d='M6 11a6 6 0 0 0 12 0'/%3E%3Cpath d='M12 17v3.4M8.5 20.4h7'/%3E%3C/svg%3E") center / contain no-repeat; }
  /* 11-17 中间那颗球 = 首页小P 同款（login.html 里 orbPaint.js 画 .lg-sph：发光球边 / 流光 / 外光晕，比球大 1.5 倍），麦克风留在正中。
     画布真画上了才挂 .lg-live：把上面那套静态发光（白边 + 紫晕）收掉，只留深色透明球底 —— 画不出来（老内核）就保持静态那颗。
     球底加深一点：iPhone（WebKit）这里的 backdrop-filter 常常不生效，原来那层太透，看起来像个空心白圈。 */
  body.lg .glass { background: radial-gradient(circle at 40% 34%, rgba(20,24,66,.3), rgba(20,24,66,.52) 70%, rgba(20,24,66,.6) 100%); }
  body.lg .glass .lg-sph { display: block; position: absolute; left: -25%; top: -25%; width: 150%; height: 150%; pointer-events: none; z-index: 1; }
  body.lg .glass.lg-live { box-shadow: 0 0 60px 10px rgba(150,170,255,.28); }
  body.lg .glass::after { z-index: 2; }
  body.lg .glass.lg-live::after { filter: drop-shadow(0 0 8px rgba(190,200,255,.95)) drop-shadow(0 0 2px rgba(255,255,255,.9)); }
  /* 「自动登录未成功…」那条提示（#loginMsg 是 .hint，原来没有内边距、字贴着边） */
  body.lg #loginMsg { padding: 10px 16px; line-height: 1.5; }
  body.lg .kicker { color: rgba(255,255,255,.88); text-shadow: 0 1px 6px rgba(8,16,36,.5); }
  body.lg .hi { color: #fff; text-shadow: 0 2px 14px rgba(8,16,36,.55), 0 1px 3px rgba(8,16,36,.4); }
  body.lg .btn-login { height: 50px; border-radius: 99px; background: linear-gradient(145deg, #6f97fa, #4672e6); box-shadow: 0 12px 26px -10px rgba(70,114,230,.75); }
  body.lg .btn-ghost { height: 46px; border: 0; border-radius: 99px; color: #ffd9d3; background: rgba(255,255,255,.14);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  body.lg .hint { color: rgba(255,255,255,.88); text-shadow: 0 1px 6px rgba(8,16,36,.5); }
  body.lg .hint b { color: #a9c8ff; }
  body.lg .state, body.lg #loginMsg { color: #15233a; border: 0; border-radius: 18px; background: linear-gradient(160deg, rgba(250,252,255,.82), rgba(236,242,251,.7));
    -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); box-shadow: 0 10px 26px -14px rgba(16,32,60,.5), inset 0 1px 1px rgba(255,255,255,.6); text-shadow: none; }
  body.lg .who { padding: 12px 14px; border-radius: 20px; background: linear-gradient(155deg, rgba(255,255,255,.4), rgba(255,255,255,.18));
    -webkit-backdrop-filter: blur(18px) saturate(130%); backdrop-filter: blur(18px) saturate(130%); box-shadow: inset 0 1px 1px rgba(255,255,255,.8), 0 14px 30px -20px rgba(16,32,60,.6); color: #15233a; }
  body.lg .who .nm small { color: #4a5b73; }
  body.lg .dev > summary { color: rgba(255,255,255,.6); }
}


/* ════════════════ iOS 风格的过渡动画（2026-11-04 用户：「增加一些流畅的 iOS 交互动画，比如打开侧边栏」）════════════════
   只在手机端生效；不看系统的「减少动态效果」设置，一律照播（用户 11-04 明确要求要动态效果）。
   🔴 动画里一律用独立的 translate / scale 属性，不写 transform：很多元素自己的 transform 有用途
      （分屏上半屏转 180°、toast 的居中 translateX(-50%) 等），写 transform 会在动画期间把它们覆盖掉、结束时一跳。
   曲线：--ios 是 iOS 那种不过冲的减速（抽屉、页面、底部弹窗）；--ios-spring 带一点回弹（菜单、按下松开）。 */
@media (max-width: 768px) {
  :root { --ios: cubic-bezier(.32,.72,0,1); --ios-spring: cubic-bezier(.34,1.36,.64,1); }

  /* ── 侧边栏抽屉：滑入 + 后面的页面往右退一点、缩一点、变暗、起圆角（层级感）+ 会话一条条滑进来 ── */
  html .sidebar { transition: transform .46s var(--ios) !important; }
  html .sidebar-backdrop { transition: opacity .46s var(--ios) !important; }
  html .main { transition: translate .46s var(--ios), scale .46s var(--ios), filter .46s var(--ios), border-radius .46s var(--ios); transform-origin: 0% 50%; }
  html .app.mobile-drawer-open .main { translate: 9vw 0; scale: .94; filter: brightness(.9); border-radius: 26px; overflow: hidden; }
  /* 老内核（Chrome < 104）不认单独的 translate / scale：侧栏打开时主页面往右退改用 transform；水滴涟漪靠 translate 居中、scale 放大，老内核上会变成一个错位的大圆，直接不放 */
  @supports not (translate: 0) {
    html .main { transition: transform .46s var(--ios), filter .46s var(--ios), border-radius .46s var(--ios); }
    html .app.mobile-drawer-open .main { transform: translateX(9vw) scale(.94); }
    html .lq-drop { display: none; }
  }
  html .app.mobile-drawer-open .sidebar .session-item,
  html .app.mobile-drawer-open .sidebar .group-header { animation: iosRowIn .5s var(--ios) both; }
  html .app.mobile-drawer-open .sidebar .session-item:nth-child(2) { animation-delay: .03s; }
  html .app.mobile-drawer-open .sidebar .session-item:nth-child(3) { animation-delay: .06s; }
  html .app.mobile-drawer-open .sidebar .session-item:nth-child(4) { animation-delay: .09s; }
  html .app.mobile-drawer-open .sidebar .session-item:nth-child(5) { animation-delay: .12s; }
  html .app.mobile-drawer-open .sidebar .session-item:nth-child(6) { animation-delay: .15s; }
  html .app.mobile-drawer-open .sidebar .session-item:nth-child(n+7) { animation-delay: .18s; }
  @keyframes iosRowIn { from { opacity: 0; translate: -18px 0; } to { opacity: 1; translate: 0 0; } }

  /* ── 页面切换：打开一场对话 = 从右边推进来；回到首页 = 淡入、轻轻放大 ──
     （#sessionView / #emptyState 显示时由 display:none 切出来，动画只在出现的那一刻播，切换同一页里的内容不会重播） */
  html #sessionView { animation: iosPush .44s var(--ios) both; }
  html #emptyState { animation: iosBack .4s var(--ios) both; }
  @keyframes iosPush { from { opacity: .4; translate: 42px 0; } to { opacity: 1; translate: 0 0; } }
  @keyframes iosBack { from { opacity: 0; scale: .97; } to { opacity: 1; scale: 1; } }

  /* ── 弹窗：遮罩渐显，卡片从下面浮上来（原来是一下弹出） ── */
  html .dialog-mask.show { animation: iosFade .3s ease both; }
  html .dialog-mask.show .dialog { animation: iosSheet .5s var(--ios) both !important; }
  @keyframes iosFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes iosSheet { from { opacity: 0; translate: 0 36px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }

  /* ── 菜单：从按钮那一侧带一点回弹地弹出（底栏「⋯」、长按条目、面对面 / 群聊的齿轮菜单、导出） ── */
  html .m-more-menu.show { transform-origin: 100% 100%; animation: iosPop .34s var(--ios-spring) both; }
  html .entry-context-menu { transform-origin: 0% 0%; animation: iosPop .3s var(--ios-spring) both; }
  html .layout-menu.show:not(.ft-emenu-flip), html .export-menu { transform-origin: 100% 0%; animation: iosPop .32s var(--ios-spring) both; }
  @keyframes iosPop { from { opacity: 0; scale: .86; } to { opacity: 1; scale: 1; } }

  /* ── 按下去轻轻一缩，松手弹回（iOS 的按压反馈） ── */
  html :is(.session-footer button, .session-header button, .ctrl-btn, .filter-chip, .ds-chip, .m-more-item, .entry-context-menu .menu-item, .layout-menu .lm-item, .session-item, .room-lang, .ft-ctrl button) {
    transition: scale .22s var(--ios-spring); }
  html :is(.session-footer button, .session-header button, .ctrl-btn, .filter-chip, .ds-chip, .m-more-item, .entry-context-menu .menu-item, .layout-menu .lm-item, .room-lang, .ft-ctrl button):active { scale: .94; }
  html .session-item:active { scale: .98; }

  /* ── 提示（toast）：带一点回弹地冒出来 ── */
  html .toast { transition: opacity .3s ease, transform .5s var(--ios-spring) !important; }
}

/* ════════════════ 侧边栏：液态玻璃（2026-11-04 用户：「侧边栏改成液态玻璃渐变，点会话有水滴、水流动的感觉」）════════════════
   底：玻璃上再铺一层缓慢流动的蓝 / 青光斑（::after，本来是 opacity 0 的空层）；选中的那场是一条流动的液态光带；
   点任何一场 / 分组 / 新建：从手指落点泛开两圈水滴涟漪（mobile-chat.js 插 .lq-drop，0.9 秒后自己删）。 */
@media (max-width: 768px) {
  html .sidebar::after { content: ""; opacity: 1 !important; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
    background: radial-gradient(55% 32% at 15% 8%, rgba(120,170,255,.5), transparent 70%),
                radial-gradient(48% 30% at 92% 38%, rgba(56,189,248,.32), transparent 70%),
                radial-gradient(60% 34% at 25% 92%, rgba(99,140,245,.38), transparent 70%),
                linear-gradient(160deg, rgba(255,255,255,.35), rgba(255,255,255,0) 40%, rgba(255,255,255,.18) 100%);
    background-size: 170% 170%, 170% 170%, 170% 170%, 100% 100%; animation: lqFlow 16s ease-in-out infinite alternate; }
  html[data-theme="dark"] .sidebar::after {
    background: radial-gradient(55% 32% at 15% 8%, rgba(63,111,230,.45), transparent 70%),
                radial-gradient(48% 30% at 92% 38%, rgba(14,165,233,.25), transparent 70%),
                radial-gradient(60% 34% at 25% 92%, rgba(37,99,235,.35), transparent 70%),
                linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,0) 40%, rgba(255,255,255,.05) 100%);
    background-size: 170% 170%, 170% 170%, 170% 170%, 100% 100%; }
  @keyframes lqFlow { 0% { background-position: 0% 0%, 100% 0%, 0% 100%, 0 0; } 50% { background-position: 60% 40%, 30% 70%, 50% 30%, 0 0; } 100% { background-position: 100% 100%, 0% 100%, 100% 0%, 0 0; } }
  html .sidebar { box-shadow: 18px 0 40px -20px rgba(10,24,48,.5), inset -1px 0 0 rgba(255,255,255,.7), inset -10px 0 24px -16px rgba(120,170,255,.6); }
  /* 选中的那场：一条在流动的液态光带 */
  html .sidebar .session-item.active {
    background: linear-gradient(110deg, rgba(91,140,255,.34), rgba(56,189,248,.2) 35%, rgba(255,255,255,.4) 50%, rgba(56,189,248,.2) 65%, rgba(91,140,255,.34)) !important;
    background-size: 240% 100% !important; animation: siPick .26s var(--ease-spring) both, lqBand 5s linear infinite;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.8), inset 0 0 0 1px rgba(120,170,255,.35), 0 10px 22px -16px rgba(63,111,230,.85) !important; }
  html[data-theme="dark"] .sidebar .session-item.active {
    background: linear-gradient(110deg, rgba(63,111,230,.4), rgba(14,165,233,.22) 35%, rgba(255,255,255,.14) 50%, rgba(14,165,233,.22) 65%, rgba(63,111,230,.4)) !important; background-size: 240% 100% !important; }
  @keyframes lqBand { from { background-position: 0% 0; } to { background-position: 240% 0; } }
  /* 水滴涟漪：裁在条目自己的圆角里 */
  html .sidebar :is(.session-item, .group-header, #btnNewSession) { isolation: isolate; }   /* 涟漪 z -1 垫在字下面、底色上面 */
  html .lq-drop { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: -1; }
  html .lq-drop i { position: absolute; border-radius: 50%; translate: -50% -50%; scale: 0; pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,.85) 0%, rgba(170,205,255,.55) 32%, rgba(99,140,245,.22) 58%, rgba(99,140,245,0) 70%);
    animation: lqDrop .8s cubic-bezier(.2,.8,.2,1) forwards; }
  html .lq-drop i + i { background: radial-gradient(circle, rgba(255,255,255,0) 52%, rgba(190,220,255,.7) 60%, rgba(120,170,255,0) 70%); animation-delay: .12s; animation-duration: .9s; }
  @keyframes lqDrop { 0% { scale: 0; opacity: 1; } 70% { opacity: .85; } 100% { scale: 1; opacity: 0; } }
}

/* ════════ 侧栏 = 干净的实色面板，不模糊（11-04 第六次，用户：「侧边栏背景换一下，不要这样模糊的风格」）════════
   底：浅灰白的轻渐变（暗色深海军蓝），不透明、没有 backdrop-filter；每场对话 = 白色实底卡片 + 一圈细线 + 很轻的投影（iOS 设置页那种清爽）。
   作废记录：透明毛玻璃（太糊）/ 日历乳白版 / 按模式着色（五颜六色）/ 品牌蓝渐变（色调不搭）/ 会议室照片 / 流动光斑。
   选中那场仍是蓝色液态光带；打开时逐条弹进来（下面「侧栏打开更明显」那段）。底色 11-05 改成浅海蓝，::after 画水浪（见文件末「侧栏底 = 浅蓝的海」）。 */
@media (max-width: 768px) {
  html .sidebar, html[data-theme="dark"] .sidebar {
    background: linear-gradient(180deg, #eef6fe 0%, #e3f0fc 42%, #d4e9f9 78%, #c6e1f6 100%) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    box-shadow: 18px 0 40px -18px rgba(10,24,48,.4), inset -1px 0 0 rgba(29,43,66,.06); }
  html[data-theme="dark"] .sidebar { background: linear-gradient(180deg, #121b2c 0%, #0f1c30 50%, #0c2238 100%) !important; box-shadow: 18px 0 40px -18px rgba(0,0,0,.7), inset -1px 0 0 rgba(255,255,255,.06); }
  html .sidebar .session-item { margin: 0 2px 8px; border-radius: 18px; color: #15233a;
    background: #fff; border: 1px solid rgba(29,43,66,.06);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: 0 1px 2px rgba(16,32,60,.05), 0 8px 18px -14px rgba(16,32,60,.35);
    transition: scale .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease; }
  html[data-theme="dark"] .sidebar :is(.session-item, .sidebar-search, .new-btn.ghost, .sf-seg) { --sidebar-text: #eef3ff; --sidebar-muted: rgba(226,235,248,.76); }
  html[data-theme="dark"] .sidebar .session-item { color: #eef3ff; background: #1c2436; border-color: rgba(255,255,255,.06); box-shadow: 0 8px 18px -14px rgba(0,0,0,.7); }
  html .sidebar .session-item:active { scale: .98; }
  html .sidebar .session-item .ico { background: #eef3fc; box-shadow: none; }
  html[data-theme="dark"] .sidebar .session-item .ico { background: rgba(255,255,255,.9); }
}

/* ════════ 侧栏打开更明显（11-04 用户：「打开之后侧边栏的动态效果不明显，增强明显一些」）════════
   打开时（mobile-chat.js 给每个看得见的块按从上到下编号 --sbi）：品牌、新建、搜索、分组标题、每场对话、底部按钮
   依次从左边 40px 外弹进来、带一点缩放和去模糊；选中那场的液态光带接着流（lqBand 一起写上，不然被这里的 animation 顶掉）。 */
@media (max-width: 768px) {
  html .app.mobile-drawer-open .sidebar :is(.sidebar-brand, [id="btnNewSession"], .sidebar-search, .group-header, .session-item, .sidebar-footer > *) {   /* id 写成属性选择器：:is() 里放 #id 会把整条权重抬到 id 级，压过下面选中那场的 lqBand */
    animation: sbIn .62s cubic-bezier(.34,1.3,.64,1) both; animation-delay: calc(var(--sbi, 0) * 45ms + 60ms); }
  html .app.mobile-drawer-open .sidebar .session-item.active {
    animation: sbIn .62s cubic-bezier(.34,1.3,.64,1) both, lqBand 5s linear infinite; animation-delay: calc(var(--sbi, 0) * 45ms + 60ms), 0s; }
  @keyframes sbIn { 0% { opacity: 0; translate: -40px 0; scale: .9; filter: blur(6px); } 60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); } }
}

/* ════════ 侧栏底 = 真实的大海（11-05 第二次，用户：「要真实的大海的浪，和数据总结页一样透明磨砂、液态的感觉」）════════
   上一版的 SVG 画的水浪作废（太假）。现在：
   · 底层 = 真实海浪视频 sidebar-sea.mp4（航拍海浪拍岸，10 秒无缝循环，360×926，约 0.8MB；
     🔴 11-13 换素材（用户：上线前帮助里不要署名 →「换成其他不需要署名的」）：现在是 Mixkit「Aerial view of the beautiful turquoise waves crashing on the…」
     （mixkit.co 51500，Mixkit Stock Video Free License：可商用、**不需要署名**），取上半截（海 → 浪 → 沙滩）放大到 360×926、冷蓝调色、gblur 5、10 秒交叉淡化无缝循环（~0.13MB）。
     原来那段 Wikimedia CC BY 3.0 的不用了 —— 别再换回需要署名的素材。做法见 README「素材」。11-05 晚第二版（v2，约 0.24MB）：用户要「整体偏清透的冷蓝色调，浅景深」→ 冷蓝调色和模糊都用 ffmpeg 直接做进视频
     （hue / colorbalance / gblur=5），页面上不再给视频加 CSS filter；卡片 / 搜索框也去掉 backdrop-filter —— 对着一直在播的视频，每帧都要重算模糊，手机上卡。mobile-chat.js 第一次打开侧栏时才插 <video class="sb-sea">，开着播、关上停。
     视频加载前 / 不能自动播放时，侧栏底图是同一段的第一帧 sidebar-sea.jpg。
   · 中间 = 数据总结那种透明磨砂（::after：上浓下淡的白纱，视频本身轻模糊 2.5px，海浪还看得清）；
   · 上面 = 液态玻璃卡片（半透明白 + backdrop 模糊 + 亮边高光）。暗色 = 视频压暗 + 深海军蓝纱。 */
html .sidebar > video.sb-sea { display: none; }
@media (max-width: 768px) {
  html .sidebar, html[data-theme="dark"] .sidebar { background: #c9dcf0 url("sidebar-sea.jpg?v=4") center / cover no-repeat !important; }
  html .sidebar > video.sb-sea { display: block; position: absolute !important; z-index: 0 !important; left: -12px; top: -12px; width: calc(100% + 24px); height: calc(100% + 24px);
    object-fit: cover; pointer-events: none; }
  html .sidebar::after, html[data-theme="dark"] .sidebar::after { content: ""; display: block !important; opacity: 1 !important; position: absolute; inset: 0; width: auto; height: auto; z-index: 0; pointer-events: none;
    border-radius: inherit; animation: none; translate: none;
    background: linear-gradient(180deg, rgba(244,249,255,.66) 0%, rgba(228,240,255,.36) 26%, rgba(214,232,255,.22) 62%, rgba(236,245,255,.42) 100%); }   /* 冷一点的白纱 */
  html[data-theme="dark"] .sidebar::after { background: linear-gradient(180deg, rgba(8,14,30,.8) 0%, rgba(10,18,38,.6) 30%, rgba(8,20,42,.54) 65%, rgba(8,14,30,.72) 100%); }   /* 暗色不再给视频加 brightness 滤镜，靠这层纱压暗 */
  html[data-theme="dark"] .sidebar { background-color: #0d1b2b !important; }
  /* 液态玻璃卡片 */
  html .sidebar .session-item { color: #10233a;
    background: linear-gradient(160deg, rgba(255,255,255,.74), rgba(255,255,255,.5)); border: 1px solid rgba(255,255,255,.78);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -1px 1px rgba(255,255,255,.35), 0 10px 24px -14px rgba(8,58,90,.5); }
  html[data-theme="dark"] .sidebar .session-item { color: #eef3ff;
    background: linear-gradient(160deg, rgba(26,40,64,.66), rgba(14,24,42,.5)); border-color: rgba(255,255,255,.14);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.14), 0 10px 24px -14px rgba(0,0,0,.7); }
  html .sidebar .sidebar-search input { background: rgba(255,255,255,.66); box-shadow: inset 0 1px 1px rgba(255,255,255,.9), 0 6px 16px -12px rgba(8,58,90,.5); }
  html[data-theme="dark"] .sidebar .sidebar-search input { background: rgba(20,32,54,.6); }
  html .sidebar .sidebar-footer :is(button, .new-btn) { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ════════ ⇄ 换边键：所有对话页统一（用户 2026-11-06：「每个对话页的都不一样，需要统一，放在头像旁边」）════════
   之前：会议 / 首页录音 / AI 对话挂在名字（或 ✎）后面；面对面并排 / 群聊挂在语言标签后面、蓝色、另一个尺寸；
         分屏气泡上没有，只有半屏角上一颗 24px 方块（.ft-align）。
   现在：一律**紧挨头像（色点）**、同一枚 14px 图标、同一个颜色；靠右那侧整行镜像，所以还是挨着头像。
   ⚠️ 只调 order，不改 DOM 顺序 —— 电脑端（desktop-v4）的位置不受影响。
   ⚠️ 快速笔记不分人、没有头像，那颗仍在气泡下面的时间旁边（只统一长相）。 */
/* 🔴 11-10 用户改口：「左右转换的标志应该放在头像名字的旁边，不是放在头像的旁边，其他页面的这个图标需要统一」。
   现在一律 [头像][名字][⇄][语言标签 / ⭐ …]（靠右那侧整行镜像 = [… ⭐ / 标签][⇄][名字][头像]），⇄ 永远紧跟名字。
   会议 / 首页录音 / AI 对话（.entry-header 里只有名字 + ⇄，头像在 header 外）= DOM 原本的顺序，不用再 order；
   并排 / 群聊 / 分屏的头部是 [头像][名字][标签][⭐][⇄]（分屏的 ⇄ 在 DOM 里还排在名字前），靠 order 摆成上面那样。
   两种按钮（.side-flip 是按钮自己的 mask，.ft-swap 是 ::before）颜色、透明度一起统一成 --g-ink2 / .62。 */
@media (max-width: 768px) {
  html .session-view .entry[data-side] .entry-header > .side-flip { order: 0; opacity: .62; }
  html .session-view :is(.ft-lwho, .rl-who, .sline .slh) > :first-child { order: -3; }
  html .session-view :is(.ft-lwho, .rl-who, .sline .slh) > :is(.ft-spk, .ai-name) { order: -2; }
  html .session-view :is(.ft-lwho, .rl-who, .sline .slh) > .ft-swap { order: -1; display: inline-grid; margin: 0 2px; padding: 0;
    width: 14px; height: 14px; color: var(--g-ink2, var(--text-secondary)); opacity: .62; }
  html .session-view :is(.ft-lwho, .rl-who, .sline .slh) > .ft-swap::before { width: 14px; height: 14px; }
  html .session-view :is(.ft-lwho, .rl-who, .sline .slh) > .ft-swap:active { opacity: 1; transform: scale(.88); }
  /* 手指点得到：图标 14px，可点范围往外扩一圈（不占排版） */
  html .session-view :is(.ft-lwho, .rl-who, .sline .slh) > .ft-swap { position: relative; }
  html .session-view :is(.ft-lwho, .rl-who, .sline .slh) > .ft-swap::after { content: ""; position: absolute; inset: -8px; }
  /* 名字旁边的语言小标签（并排「中文 / English」、群聊语言）：原来灰字 + 12% 灰底压在照片上，
     对比度不到 1.5:1，看着就是个空白小框（用户 11-06 确认要修）。改成实底小胶囊 + 深色字 */
  html .session-view :is(.ft-lwho .stag, .rl-who .rl-tag) { color: var(--g-ink2); background: rgba(255,255,255,.72); border: 0;
    font-weight: 700; line-height: 1.5; box-shadow: 0 1px 3px rgba(8,16,36,.12); }
  html[data-theme="dark"] .session-view :is(.ft-lwho .stag, .rl-who .rl-tag) { color: var(--g-ink); background: rgba(20,32,54,.62); }
  /* 分屏：⇄ 已经在每一方的气泡头上，角上那颗整半屏的方块收起（设置菜单里的「聊天气泡」两项照旧能用） */
  html .session-view .ft-align { display: none; }
}

/* ════════ AI 问答气泡的小工具（↻ 重新回答 / ⧉ 复制 / ↩ 撤回）挪到气泡外侧（用户 2026-11-06：「AI 的气泡太大了，字体和气泡不符合」）════════
   原来这排按钮在气泡里面单独占一行（手机 32px 高），一句话的回答气泡 84px 高、字只有 34px，比普通发言（52px）大一圈。
   现在：按钮挂在气泡底边的**外侧**（AI 在左 → 气泡右边；我在右 → 气泡左边），气泡只包住文字，和普通发言一样大。
   外侧那一边给气泡留出 60px 不让文字顶满，按钮永远有位置、点得到（30px 点击区）。只在手机端；电脑端不变。 */
@media (max-width: 768px) {
  html .session-view :is(.entry[data-side] .entry-main, .ft-lrow .ft-lbub, .note-entry .note-main):has(> .pa-tools) { position: relative; overflow: visible; }
  html .session-view :is(.entry[data-side] .entry-main, .ft-lrow .ft-lbub, .note-entry .note-main).has-pa { position: relative; overflow: visible; }
  html .session-view :is(.entry[data-side="left"] .entry-main, .ft-lrow.left .ft-lbub, .note-entry[data-side="left"] .note-main):has(> .pa-tools) { margin-right: 60px; }
  html .session-view :is(.entry[data-side="left"] .entry-main, .ft-lrow.left .ft-lbub, .note-entry[data-side="left"] .note-main).has-pa { margin-right: 60px; }
  html .session-view :is(.entry[data-side="right"] .entry-main, .ft-lrow.right .ft-lbub, .note-entry[data-side="right"] .note-main):has(> .pa-tools) { margin-left: 60px; }
  html .session-view :is(.entry[data-side="right"] .entry-main, .ft-lrow.right .ft-lbub, .note-entry[data-side="right"] .note-main).has-pa { margin-left: 60px; }
  html .session-view :is(.entry[data-side] .entry-main, .ft-lrow .ft-lbub, .note-entry .note-main) > .pa-tools {
    position: absolute; bottom: 0; margin: 0; display: flex; gap: 0; opacity: .75; color: var(--mc-ink2, #5a6a82); }
  html .session-view :is(.entry[data-side="left"] .entry-main, .ft-lrow.left .ft-lbub, .note-entry[data-side="left"] .note-main) > .pa-tools { left: calc(100% + 2px); }
  html .session-view :is(.entry[data-side="right"] .entry-main, .ft-lrow.right .ft-lbub, .note-entry[data-side="right"] .note-main) > .pa-tools { right: calc(100% + 2px); flex-direction: row-reverse; }
  html .session-view :is(.entry[data-side] .entry-main, .ft-lrow .ft-lbub, .note-entry .note-main) > .pa-tools .pa-tool { width: 30px; height: 30px; }
  html[data-theme="dark"] .session-view :is(.entry[data-side] .entry-main, .ft-lrow .ft-lbub, .note-entry .note-main) > .pa-tools { color: rgba(220,230,250,.8); }
}

/* 11-10 性能（用户：「使用这个软件非常卡顿」）：侧栏收着的时候（抽屉在屏幕外），里面那几个一直循环的动画先停 ——
   选中那场的液态光带 lqBand 动的是 background-position，不能交给合成器，每一帧都要在主线程重画一次，
   等于对话页开着就一直空转。抽屉一拉出来接着动，看到的和原来一样。 */
@media (max-width: 768px) {
  html .app:not(.mobile-drawer-open) .sidebar .session-item.active,
  html .app:not(.mobile-drawer-open) .sidebar .brand-logo::before,
  html .app:not(.mobile-drawer-open) .sidebar .brand-logo::after { animation-play-state: paused; }
}

/* ════════ 侧栏「新建对话」= 蓝色液态玻璃（2026-11-10，用户：「原本的样式，只修改成液态玻璃，还是蓝色的液态玻璃，其他不变」，参考图是一颗淡蓝玻璃胶囊）════════
   布局照原来：「+ 新建对话」居中、整条胶囊；只把实心蓝渐变换成淡蓝玻璃 —— 左上一团白色高光、淡蓝到淡紫蓝的渐变、白色亮边、
   底部一点内发光、柔和外投影，字改成深一点的蓝灰（白字压在淡蓝玻璃上读不清）。同天上午那版「半透明白 + 白色小圆钮」用户否了，别改回去。
   这个文件只管 ≤768px，电脑端不受影响；侧栏打开时依次滑入的动画（--sbi）照旧；按下只用 scale。 */
@media (max-width: 768px) {
  /* 颜色照用户给的参考图取色（11-10 第二次：「这个颜色更好，偏蓝色」）：左端冰蓝 → 中间淡天蓝 → 右端偏蓝的长春花色，底边一圈更亮的白光，字是深蓝灰 */
  html .sidebar #btnNewSession { color: #34506c; font-weight: 700; letter-spacing: .03em; border: 1px solid rgba(255,255,255,.75); border-radius: 99px;
    background: radial-gradient(90% 140% at 10% 15%, rgba(255,255,255,.55), rgba(255,255,255,0) 50%),
                linear-gradient(100deg, rgba(188,222,244,.97) 0%, rgba(170,208,236,.96) 40%, rgba(152,182,224,.95) 82%, rgba(142,168,216,.95) 100%);   /* 11-10 第三次：「颜色再深一点点」，各色阶约深 8% */
    box-shadow: inset 0 2px 3px rgba(255,255,255,.9), inset 0 -3px 6px rgba(255,255,255,.55), inset 0 0 0 1px rgba(255,255,255,.3), 0 12px 26px -14px rgba(50,90,150,.5);
    transition: scale .15s ease; }
  html .sidebar #btnNewSession:active { scale: .97; }
  html .sidebar #btnNewSession .plus { color: #4a6fa8; font-size: 18px; font-weight: 500; }
  /* 暗色（11-10 第四次，用户截图：「暗色下这个新建太突兀了」）：不再是亮蓝，底色贴近对话卡片的深色玻璃、只透一层淡蓝，高光 / 边框也压暗 */
  html[data-theme="dark"] .sidebar #btnNewSession { color: #d9e7fb; border-color: rgba(150,190,240,.2);
    background: radial-gradient(90% 140% at 10% 15%, rgba(255,255,255,.07), rgba(255,255,255,0) 50%),
                linear-gradient(100deg, rgba(40,70,108,.62) 0%, rgba(34,60,100,.58) 50%, rgba(36,52,96,.58) 100%);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.12), 0 10px 24px -14px rgba(0,0,0,.7); }
  html[data-theme="dark"] .sidebar #btnNewSession .plus { color: #8fbaf2; }
}

/* ════════ 侧栏搜索框 = 和「新建对话」同一套液态玻璃，只是更淡（2026-11-10，用户：「搜索的组件和新建的组件不符合了」）════════
   原来：平的半透明白、没边框；暗色下顶上那条 rgba(255,255,255,.9) 内高光是一道刺眼的硬边。
   现在：同样的白色亮边 + 左上高光 + 底边柔光 + 外投影，底色是很淡的冰蓝（比新建按钮浅一大截，按钮仍是主角）；暗色 = 新建按钮那套深色玻璃再淡一档。
   字号保持 16px（iOS 小于 16px 聚焦会放大整页，见架构红线「手机缩放」）。 */
@media (max-width: 768px) {
  html .sidebar .sidebar-search input { border: 1px solid rgba(255,255,255,.75); border-radius: 99px;
    background: radial-gradient(90% 140% at 10% 15%, rgba(255,255,255,.5), rgba(255,255,255,0) 50%),
                linear-gradient(100deg, rgba(238,246,252,.84) 0%, rgba(226,238,249,.8) 50%, rgba(218,230,246,.8) 100%);
    box-shadow: inset 0 2px 3px rgba(255,255,255,.85), inset 0 -3px 6px rgba(255,255,255,.45), 0 10px 22px -16px rgba(50,90,150,.45); }
  html[data-theme="dark"] .sidebar .sidebar-search input { border-color: rgba(150,190,240,.16);
    background: radial-gradient(90% 140% at 10% 15%, rgba(255,255,255,.05), rgba(255,255,255,0) 50%),
                linear-gradient(100deg, rgba(30,48,76,.6) 0%, rgba(24,40,66,.56) 100%);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.08), 0 10px 22px -16px rgba(0,0,0,.7); }
}

/* ════════ 气泡旁的朗读小喇叭（11-11 用户：「朗读的直接在每个气泡旁边加入一个朗读的图标即可」）════════
   index.html sayBtnHTML 渲染的 .pa-tools.say-only，沿用上面 AI 小工具那套「挂在气泡底边外侧」的位置；只有一颗，所以只让出 34px。
   读的时候喇叭变成品牌蓝、声波一闪一闪；分屏的喇叭在气泡头上那一行（.bsay-h）。 */
@media (max-width: 768px) {
  html .session-view :is(.entry[data-side="left"] .entry-main, .ft-lrow.left .ft-lbub, .note-entry[data-side="left"] .note-main):has(> .pa-tools.say-only) { margin-right: 34px; }
  html .session-view :is(.entry[data-side="right"] .entry-main, .ft-lrow.right .ft-lbub, .note-entry[data-side="right"] .note-main):has(> .pa-tools.say-only) { margin-left: 34px; }
  /* 11-11 第二轮用户：「气泡播报的图标要正常一点」—— 不要玻璃圆底，就是一颗普通的线条喇叭，颜色和气泡旁的时间字一样 */
  html .session-view .pa-tools.say-only { opacity: 1 !important; bottom: 3px !important; }
  html .session-view .pa-tools.say-only .pa-tool { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    color: var(--mc-ink2, #5a6a82); background: none; box-shadow: none; }
  html[data-theme="dark"] .session-view .pa-tools.say-only .pa-tool { color: rgba(220,230,250,.78); }
  html .session-view .pa-tools.say-only .pa-tool:active { transform: scale(.9); }
  html .session-view .bsay svg { width: 18px; height: 18px; }
  html .session-view .bsay.on, html .session-view .pa-tools.say-only .pa-tool.bsay.on { color: #3f6fe6; opacity: 1; }
  html[data-theme="dark"] .session-view .bsay.on, html[data-theme="dark"] .session-view .pa-tools.say-only .pa-tool.bsay.on { color: #8fb0ff; }
  html .session-view .bsay.on svg path:not(:first-child) { animation: bsayWave 1s ease-in-out infinite; }
  html .session-view .bsay.on svg path:last-child { animation-delay: .25s; }
  @keyframes bsayWave { 50% { opacity: .2; } }
  html .session-view .pa-tools.say-only:has(.bsay.on) { opacity: 1; }
  html .session-view .slh .bsay-h { display: inline-grid; place-items: center; width: 26px; height: 22px; margin-left: 2px; padding: 0; border: 0; background: none; color: inherit; opacity: .85; cursor: pointer; }
  html .session-view .slh .bsay-h svg { width: 15px; height: 15px; }
  html .session-view .slh .bsay-h.on { opacity: 1; }
}

/* ════════ 11-17 用户：「对话页去掉文本选中的属性，长按气泡直接出来我的条目；记得去掉网页的属性」════════
   触屏上长按气泡原来先被浏览器接管：选中一段字 + 弹系统菜单（复制 / 全选 / 查询…）+ 放大镜，和 Poly 自己的长按菜单抢。
   现在对话页（#sessionView，含实时转写 / 快速笔记 / 首页录音 / AI 对话 / 面对面）在触屏上：不选字、不弹系统菜单、图标不能被拖走；
   只有正在编辑的地方（输入框、点一下进编辑的气泡 = 带 contenteditable）照常能选字、粘贴。
   复制整句 = 长按菜单里的「复制」；只要半句 = 点一下气泡进编辑，再选那几个字。电脑（鼠标）不受影响，照旧能拖选。
   ⚠️ 取舍：手机上面对面「选一段字标重点」（seg-mark）随之用不了了（整条标重点照常）。
   用 id 选择器：要压过 index.html 里 `.sline .slt, .ft-lbub { user-select: text }` 那条。 */
@media (hover: none), (pointer: coarse) {
  #sessionView, #sessionView * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  #sessionView img, #sessionView svg { -webkit-user-drag: none; }
  #sessionView :is(input, textarea, [contenteditable="true"], [contenteditable="plaintext-only"], [contenteditable=""]),
  #sessionView :is(input, textarea, [contenteditable="true"], [contenteditable="plaintext-only"], [contenteditable=""]) * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
}
@media (hover: none), (pointer: coarse) {
  :is(#btnRecord, #nhsTalk, .ft-mic), :is(#btnRecord, #nhsTalk, .ft-mic) * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }   /* 麦克风长按开录（mobile-chat.js 末尾），别让系统菜单 / 选字插一脚 */
}
