@charset "UTF-8";
/* ============================================================================
   DoSight · 流体玻璃 v4-safe（2026-11-18 · 接管修正版）

   ⚠️ 上一版（v4~v6）踩的坑，写在这里避免重犯：
      · 给 .shell 加 margin / height:calc(100%-56px) / overflow:hidden
        → .shell 是 grid 容器，高度塌成 auto 后 workspace 被挤到第二行第一列，
          KPI 卡被压成 27px 宽（右侧整块掉到左下角）。
      · .shell::after 叠加高光 + .shell > * { position:relative }
        → 伪元素参与 grid 布局、子元素定位链被改，进一步错位。

   本版纪律：**只碰视觉属性**（背景/描边/圆角/阴影/模糊/文字色/字距），
   不碰 margin / width / height / position / display / overflow，
   不加伪元素，不改子元素定位。外壳保持满屏，靠圆角+玻璃+内高光出质感。

   作用域：工作台（body:has(.shell)）；登录页 .auth-shell 冻结，不动。
   ========================================================================= */

/* ---------- 1 背景：柔和暖灰（不发黄），玻璃才有东西可透 ---------- */
html body:has(.shell),
body:has(.shell) {
  background-color: #b3a492 !important;
  background-image:
    radial-gradient(1050px 720px at 8% -10%, rgba(250, 242, 230, 0.92), rgba(250, 242, 230, 0) 58%),
    radial-gradient(760px 560px at 88% 2%, rgba(214, 196, 172, 0.75), rgba(214, 196, 172, 0) 62%),
    radial-gradient(520px 380px at 26% 46%, rgba(238, 226, 208, 0.4), rgba(238, 226, 208, 0) 66%),
    radial-gradient(1400px 860px at 52% 116%, rgba(58, 45, 33, 0.55), rgba(58, 45, 33, 0) 58%),
    linear-gradient(116deg, #8d7d69 0%, #b3a492 40%, #a3927c 70%, #6f604f 100%) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

/* ---------- 2 外壳：满屏玻璃，圆角 + 内高光（不动尺寸） ---------- */
.shell {
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.09) 100%) !important;
  -webkit-backdrop-filter: blur(34px) saturate(130%);
  backdrop-filter: blur(34px) saturate(130%);
  border-radius: 24px !important;
  box-shadow:
    0 24px 64px rgba(46, 36, 26, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14) !important;
}

/* ---------- 3 三大区：玻璃阶梯 8.5% ---------- */
.sidebar,
.ws-list,
.ws-conv,
.ws-detail {
  background-color: rgba(255, 255, 255, 0.085) !important;
  background-image: linear-gradient(172deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.012) 58%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(130%);
  backdrop-filter: blur(30px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.46) !important;
  border-radius: 18px !important;
  box-shadow:
    0 16px 38px rgba(46, 36, 26, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* ---------- 4 KPI 卡：玻璃 10.5%，其中一张实心薄荷绿 ---------- */
.ws-kpi {
  background-color: rgba(255, 255, 255, 0.105) !important;
  background-image: linear-gradient(170deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.02) 62%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  backdrop-filter: blur(24px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 16px !important;
  box-shadow:
    0 14px 34px rgba(46, 36, 26, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14) !important;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.ws-kpi:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

/* 唯一实心块：边际贡献（保持原本那张，不新增彩色） */
.ws-kpi.is-accent,
.ws-kpi.accent,
.ws-kpi[data-accent],
.ws-kpi.mint {
  background-color: #2ec4a0 !important;
  background-image: linear-gradient(142deg, #2ec4a0 0%, #15b98c 100%) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    0 16px 36px rgba(21, 150, 116, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}
.ws-kpi.is-accent *,
.ws-kpi.accent *,
.ws-kpi[data-accent] *,
.ws-kpi.mint * { color: #fff !important; }

/* 数字：等宽，避免金额跳动 */
.ws-kpi .kpi-value, .ws-kpi .value, .ws-kpi strong { font-variant-numeric: tabular-nums; }

/* ---------- 5 输入区 / 起步卡：更亮一档 ---------- */
.ws-box, .tb-search {
  background-color: rgba(255, 255, 255, 0.22) !important;
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 22px rgba(46, 36, 26, 0.12) !important;
}
.tb-search { border-radius: 999px !important; }

.ws-starter {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transition: background-color 0.16s ease;
}
.ws-starter:hover { background-color: rgba(255, 255, 255, 0.18) !important; }

/* ---------- 6 深色主操作：只在工作台内 ---------- */
.shell .btn.primary,
.shell .btn.primary.small,
.shell .tb-cta {
  background: #1f1f21 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.shell .btn.primary:hover, .shell .tb-cta:hover { background: #2a2a2d !important; }

/* 登录页显式复位（冻结区） */
.auth-shell .btn.primary,
.auth-shell .btn.primary.small {
  background: #3d5a80 !important;
  color: #fff !important;
}

/* 侧栏激活项：白 92% 圆片 */
.nav-item.active {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #17120f !important;
  border-radius: 10px !important;
  box-shadow: 0 5px 14px rgba(46, 36, 26, 0.16), inset 0 1px 0 #fff !important;
}

/* ---------- 7 文字：暖近黑，保证可读 ---------- */
.shell { color: #17120f !important; }
.shell .kpi-label, .shell .ws-kpi-label, .shell small, .shell .muted, .shell .sub {
  color: rgba(23, 18, 15, 0.64) !important;
}
.shell h1, .shell h2, .shell h3, .shell strong { color: #14100c; }

/* ---------- 8 滚动条 ---------- */
.shell ::-webkit-scrollbar { width: 8px; height: 8px; }
.shell ::-webkit-scrollbar-thumb { background: rgba(60, 46, 32, 0.24); border-radius: 8px; }
.shell ::-webkit-scrollbar-thumb:hover { background: rgba(60, 46, 32, 0.36); }
.shell ::-webkit-scrollbar-track { background: transparent; }

/* ---------- 9 兜底 ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .shell { background: rgba(246, 240, 231, 0.9) !important; }
  .sidebar, .ws-list, .ws-conv, .ws-detail { background: rgba(246, 240, 231, 0.82) !important; }
  .ws-kpi { background: rgba(246, 240, 231, 0.84) !important; }
}

/* ---------- 10 去黄：暖灰底 + 更白的玻璃（v4b） ---------- */
html body:has(.shell),
body:has(.shell) {
  background-color: #a9a29a !important;
  background-image:
    radial-gradient(1050px 720px at 8% -10%, rgba(248, 244, 236, 0.94), rgba(248, 244, 236, 0) 58%),
    radial-gradient(760px 560px at 88% 2%, rgba(199, 192, 182, 0.8), rgba(199, 192, 182, 0) 62%),
    radial-gradient(560px 400px at 26% 46%, rgba(233, 228, 219, 0.42), rgba(233, 228, 219, 0) 66%),
    radial-gradient(1400px 860px at 52% 116%, rgba(58, 52, 44, 0.6), rgba(58, 52, 44, 0) 58%),
    linear-gradient(116deg, #8b847a 0%, #b8b1a6 38%, #a29a90 70%, #6d655b 100%) !important;
  background-size: cover !important;
}

.shell {
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.1) 46%, rgba(255, 255, 255, 0.14) 100%) !important;
  -webkit-backdrop-filter: blur(34px) saturate(105%) !important;
  backdrop-filter: blur(34px) saturate(105%) !important;
}

.sidebar, .ws-list, .ws-conv, .ws-detail {
  background-color: rgba(255, 255, 255, 0.1) !important;
  background-image: linear-gradient(172deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.02) 58%) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.ws-kpi {
  background-color: rgba(255, 255, 255, 0.12) !important;
  background-image: linear-gradient(170deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.03) 62%) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

.ws-box, .tb-search {
  background-color: rgba(255, 255, 255, 0.26) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

/* ---------- 11 v4c：把"房间"压暗，玻璃才显白（参考图的层次） ---------- */
html body:has(.shell),
body:has(.shell) {
  background-color: #5f584f !important;
  background-image:
    radial-gradient(1000px 680px at 6% -12%, rgba(244, 237, 226, 0.85), rgba(244, 237, 226, 0) 55%),
    radial-gradient(720px 520px at 92% 0%, rgba(150, 141, 128, 0.6), rgba(150, 141, 128, 0) 60%),
    radial-gradient(680px 460px at 30% 52%, rgba(120, 112, 101, 0.5), rgba(120, 112, 101, 0) 64%),
    radial-gradient(1500px 900px at 50% 118%, rgba(26, 22, 18, 0.85), rgba(26, 22, 18, 0) 60%),
    linear-gradient(118deg, #574f46 0%, #7d766c 34%, #635b52 68%, #3a342c 100%) !important;
  background-size: cover !important;
}

/* 玻璃：中性白，只借一点点暖（避免发黄） */
.shell {
  background:
    linear-gradient(168deg, rgba(252, 251, 249, 0.26) 0%, rgba(250, 249, 246, 0.13) 46%, rgba(248, 246, 242, 0.17) 100%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(92%) !important;
  backdrop-filter: blur(36px) saturate(92%) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.sidebar, .ws-list, .ws-conv, .ws-detail {
  background-color: rgba(252, 251, 249, 0.13) !important;
  background-image: linear-gradient(172deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.03) 58%) !important;
  border-color: rgba(255, 255, 255, 0.46) !important;
}

.ws-kpi {
  background-color: rgba(252, 251, 249, 0.15) !important;
  background-image: linear-gradient(170deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.04) 62%) !important;
  border-color: rgba(255, 255, 255, 0.52) !important;
}

.ws-box, .tb-search {
  background-color: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.56) !important;
}

/* 文字在更亮的玻璃上仍要够黑 */
.shell { color: #14100c !important; }

/* ---------- 12 关键：关掉 glass.css 里铺满全屏的两个伪元素 ----------
   body:has(.shell)::before  = 奶油色散景光斑（fixed, inset:0, z-index:0）
   body:has(.shell)::after   = 白色薄纱
   这两层叠在 body 背景之上，会把任何背景洗成"奶油平涂"。
   要真实玻璃感，必须只留 body 的背景，由它提供明暗。 */
html body:has(.shell)::before,
html body:has(.shell)::after,
body:has(.shell)::before,
body:has(.shell)::after {
  content: none !important;
  background: none !important;
  display: none !important;
}

/* ---------- 13 房间：暗暖灰 + 左上窗光 + 四周暗角（玻璃才会显白） ---------- */
html body:has(.shell),
body:has(.shell) {
  background-color: #6f675c !important;
  background-image:
    radial-gradient(760px 520px at 4% -6%, rgba(250, 244, 234, 0.95), rgba(250, 244, 234, 0) 58%),
    radial-gradient(420px 320px at 22% 18%, rgba(246, 238, 226, 0.45), rgba(246, 238, 226, 0) 62%),
    radial-gradient(900px 640px at 96% 6%, rgba(160, 150, 136, 0.55), rgba(160, 150, 136, 0) 62%),
    radial-gradient(1200px 760px at 50% 118%, rgba(28, 23, 18, 0.9), rgba(28, 23, 18, 0) 60%),
    linear-gradient(116deg, #4e473e 0%, #7a7266 32%, #6b6358 62%, #332d26 100%) !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

/* 外壳玻璃：中性白，低饱和（不发黄） */
.shell {
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.09) 48%, rgba(255, 255, 255, 0.13) 100%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(88%) !important;
  backdrop-filter: blur(30px) saturate(88%) !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  box-shadow:
    0 30px 70px rgba(20, 16, 12, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12) !important;
}

.sidebar, .ws-list, .ws-conv, .ws-detail {
  background-color: rgba(255, 255, 255, 0.1) !important;
  background-image: linear-gradient(172deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 60%) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow:
    0 14px 34px rgba(20, 16, 12, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.ws-kpi {
  background-color: rgba(255, 255, 255, 0.12) !important;
  background-image: linear-gradient(170deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.03) 64%) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* ---------- 14 悬浮：用 position:fixed + inset（不要用 margin/height，grid 会塌） ---------- */
.shell {
  position: fixed !important;
  inset: 22px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  max-width: none !important;
  max-height: none !important;
  overflow: hidden !important;
}

/* 页面本身不再滚动，滚动交给内部区域（原本就是内部滚动） */
html body:has(.shell) { overflow: hidden !important; }

/* 房间再暖一点、暗角稍收 */
html body:has(.shell),
body:has(.shell) {
  background-color: #7b6f5f !important;
  background-image:
    radial-gradient(820px 560px at 3% -8%, rgba(252, 246, 236, 0.96), rgba(252, 246, 236, 0) 56%),
    radial-gradient(460px 340px at 24% 20%, rgba(248, 240, 228, 0.4), rgba(248, 240, 228, 0) 64%),
    radial-gradient(900px 640px at 98% 8%, rgba(176, 164, 148, 0.5), rgba(176, 164, 148, 0) 62%),
    radial-gradient(1100px 720px at 46% 116%, rgba(38, 31, 24, 0.82), rgba(38, 31, 24, 0) 62%),
    linear-gradient(114deg, #574d41 0%, #86796a 34%, #6f6355 64%, #3b332a 100%) !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

/* ============================================================================
   v5 · 奶玻璃（对照参考图逐项对齐，2026-11-18）
   参考图特征：
     · 面板接近白（约 60-72% 白），边界 1px 高亮，影子深而软 → "奶玻璃"不是"清玻璃"
     · 内部卡片更白（55% 左右），因此与面板仍有层级
     · 背景是暗木色 + 明显光斑（明暗对比大），面板才"浮"得起来
     · 数字近黑、高对比；薄荷绿是唯一彩色
   ========================================================================= */

/* ---------- 房间：暗木色 + 光斑 ---------- */
html body:has(.shell),
body:has(.shell) {
  background-color: #4a3a2a !important;
  background-image:
    radial-gradient(520px 380px at 6% 4%, rgba(255, 226, 178, 0.85), rgba(255, 226, 178, 0) 60%),
    radial-gradient(300px 240px at 20% 26%, rgba(255, 238, 205, 0.55), rgba(255, 238, 205, 0) 62%),
    radial-gradient(420px 300px at 96% 12%, rgba(226, 186, 132, 0.5), rgba(226, 186, 132, 0) 64%),
    radial-gradient(360px 260px at 78% 76%, rgba(198, 152, 96, 0.4), rgba(198, 152, 96, 0) 66%),
    radial-gradient(1200px 800px at 46% 118%, rgba(22, 14, 8, 0.9), rgba(22, 14, 8, 0) 58%),
    linear-gradient(116deg, #3a2c1f 0%, #6b5238 34%, #513d2a 66%, #2a2017 100%) !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  filter: none !important;
}

/* ---------- 面板：奶玻璃（高白度 + 大模糊 + 深而软的影子） ---------- */
.shell {
  background:
    linear-gradient(176deg, rgba(255, 253, 248, 0.74) 0%, rgba(250, 245, 237, 0.62) 52%, rgba(246, 240, 231, 0.7) 100%) !important;
  -webkit-backdrop-filter: blur(42px) saturate(118%) !important;
  backdrop-filter: blur(42px) saturate(118%) !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 26px !important;
  box-shadow:
    0 44px 90px rgba(18, 12, 8, 0.52),
    0 8px 24px rgba(18, 12, 8, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35) !important;
}

/* ---------- 侧栏 / 三大区：更白一档，但低于卡片 ---------- */
.sidebar {
  background:
    linear-gradient(178deg, rgba(255, 253, 249, 0.5) 0%, rgba(252, 247, 240, 0.4) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 20px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}
.ws-list, .ws-conv, .ws-detail {
  background:
    linear-gradient(178deg, rgba(255, 254, 251, 0.56) 0%, rgba(252, 247, 240, 0.44) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.66) !important;
  border-radius: 20px !important;
  box-shadow:
    0 10px 26px rgba(40, 26, 14, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* ---------- KPI 卡：最白（参考图里卡片比面板更亮） ---------- */
.ws-kpi {
  background: linear-gradient(176deg, rgba(255, 255, 255, 0.78) 0%, rgba(252, 249, 244, 0.66) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 18px !important;
  box-shadow:
    0 12px 28px rgba(40, 26, 14, 0.12),
    inset 0 1px 0 #fff !important;
}

/* 薄荷绿：更饱和一点，白字 */
.ws-kpi.is-accent, .ws-kpi.accent, .ws-kpi[data-accent], .ws-kpi.mint {
  background: linear-gradient(150deg, #33c8a4 0%, #14a97f 100%) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow:
    0 18px 40px rgba(17, 138, 106, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

/* ---------- 输入区：近白（参考图的输入框很亮） ---------- */
.ws-box, .tb-search {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 8px 22px rgba(40, 26, 14, 0.1), inset 0 1px 0 #fff !important;
}

.ws-starter {
  background: rgba(255, 255, 255, 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 16px rgba(40, 26, 14, 0.08), inset 0 1px 0 #fff !important;
}
.ws-starter:hover { background: rgba(255, 255, 255, 0.82) !important; }

/* ---------- 文字：在奶白上要够黑 ---------- */
.shell { color: #17120e !important; }
.shell h1, .shell h2, .shell h3, .shell strong, .shell .kpi-value { color: #0f0c09 !important; }
.shell .kpi-label, .shell .ws-kpi-label, .shell small, .shell .muted, .shell .sub {
  color: rgba(23, 18, 14, 0.58) !important;
}

/* 侧栏激活项：白底 + 深字，保留圆片感 */
.nav-item.active {
  background: #fff !important;
  color: #0f0c09 !important;
  box-shadow: 0 6px 16px rgba(40, 26, 14, 0.14) !important;
}

/* ---------- 15 最后微调：留出更多"房间"，光斑更强 ---------- */
.shell { inset: 30px !important; }

html body:has(.shell),
body:has(.shell) {
  background-image:
    radial-gradient(420px 320px at 4% 6%, rgba(255, 231, 190, 0.9), rgba(255, 231, 190, 0) 58%),
    radial-gradient(260px 200px at 13% 30%, rgba(255, 244, 220, 0.6), rgba(255, 244, 220, 0) 62%),
    radial-gradient(380px 280px at 97% 10%, rgba(232, 190, 132, 0.6), rgba(232, 190, 132, 0) 62%),
    radial-gradient(300px 230px at 88% 88%, rgba(206, 156, 96, 0.45), rgba(206, 156, 96, 0) 64%),
    radial-gradient(240px 180px at 40% 96%, rgba(180, 128, 74, 0.35), rgba(180, 128, 74, 0) 66%),
    radial-gradient(1200px 820px at 46% 118%, rgba(20, 13, 8, 0.92), rgba(20, 13, 8, 0) 58%),
    linear-gradient(116deg, #3a2c1f 0%, #6b5238 34%, #513d2a 66%, #2a2017 100%) !important;
}

/* ============================================================================
   v6 · 恢复"流体玻璃"（不是奶白卡）
   上一版把白度拉到 70% → 不透光，像磨砂塑料。真玻璃的三个必要条件：
     ① 白度低（28–38%），能看见背后模糊的形状
     ② 模糊强 + 饱和度提升（blur 36px / saturate 170%）——模糊才有"流体"感
     ③ 1px 亮边 + 顶部内高光 + 细噪点，材质才成立
   前提：背景必须有明暗形状（纯渐变模糊后等于没有），所以房间改成多团光斑 + 暗角。
   ========================================================================= */

/* ---------- 房间：暗木 + 多团彩色光斑（模糊后能看见"流体"） ---------- */
html body:has(.shell),
body:has(.shell) {
  background-color: #3d2f22 !important;
  background-image:
    radial-gradient(520px 400px at 8% 2%, rgba(255, 214, 150, 0.95), rgba(255, 214, 150, 0) 58%),
    radial-gradient(360px 300px at 24% 34%, rgba(255, 236, 196, 0.7), rgba(255, 236, 196, 0) 62%),
    radial-gradient(420px 340px at 92% 8%, rgba(214, 158, 96, 0.8), rgba(214, 158, 96, 0) 62%),
    radial-gradient(520px 420px at 76% 82%, rgba(150, 104, 62, 0.75), rgba(150, 104, 62, 0) 64%),
    radial-gradient(300px 240px at 44% 96%, rgba(255, 196, 128, 0.45), rgba(255, 196, 128, 0) 66%),
    radial-gradient(1200px 820px at 46% 116%, rgba(14, 9, 5, 0.95), rgba(14, 9, 5, 0) 56%),
    linear-gradient(116deg, #33261a 0%, #6b5238 32%, #4a3826 64%, #241a12 100%) !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

/* ---------- 面板：低白度 + 强模糊 + 强饱和（流体感） ---------- */
.shell {
  background-color: rgba(255, 252, 246, 0.3) !important;
  background-image:
    linear-gradient(178deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.06) 40%, rgba(255, 250, 242, 0.12) 100%),
    /* 细噪点：让"玻璃"有材质，不是纯色块 */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.045'/></svg>") !important;
  -webkit-backdrop-filter: blur(36px) saturate(175%) brightness(1.06) !important;
  backdrop-filter: blur(36px) saturate(175%) brightness(1.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 26px !important;
  box-shadow:
    0 40px 84px rgba(16, 11, 7, 0.5),
    0 6px 20px rgba(16, 11, 7, 0.26),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22) !important;
}

/* ---------- 侧栏 / 三大区：比面板再透一点，边缘亮 ---------- */
.sidebar, .ws-list, .ws-conv, .ws-detail {
  background-color: rgba(255, 252, 247, 0.18) !important;
  background-image: linear-gradient(178deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.03) 55%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(165%) !important;
  backdrop-filter: blur(26px) saturate(165%) !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 20px !important;
  box-shadow:
    0 10px 26px rgba(16, 11, 7, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* ---------- KPI 卡：比面板略亮，但保持透 ---------- */
.ws-kpi {
  background-color: rgba(255, 253, 249, 0.26) !important;
  background-image: linear-gradient(176deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.04) 62%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 18px !important;
  box-shadow:
    0 12px 28px rgba(16, 11, 7, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.68) !important;
}

/* 薄荷绿：实心，唯一彩色 */
.ws-kpi.is-accent, .ws-kpi.accent, .ws-kpi[data-accent], .ws-kpi.mint {
  background-color: #2ec4a0 !important;
  background-image: linear-gradient(150deg, #35cca7 0%, #12a67c 100%) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow:
    0 18px 38px rgba(15, 130, 100, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

/* ---------- 输入区：更像玻璃片（不要做成实白） ---------- */
.ws-box, .tb-search {
  background-color: rgba(255, 254, 250, 0.34) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 20px rgba(16, 11, 7, 0.14) !important;
}

.ws-starter {
  background-color: rgba(255, 253, 248, 0.24) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}
.ws-starter:hover { background-color: rgba(255, 255, 255, 0.36) !important; }

/* ---------- 文字：玻璃要有透光，但字必须压得住 ---------- */
.shell { color: #1a1410 !important; }
.shell h1, .shell h2, .shell h3, .shell strong, .shell .kpi-value { color: #100c08 !important; }
.shell .kpi-label, .shell .ws-kpi-label, .shell small, .shell .muted, .shell .sub {
  color: rgba(26, 20, 16, 0.62) !important;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #100c08 !important;
  box-shadow: 0 6px 16px rgba(16, 11, 7, 0.2), inset 0 1px 0 #fff !important;
}

/* ---------- 16 让"流体"可见：在面板背后放几团高饱和光 ----------
   玻璃本身是透明的，看不见颜色是因为背后没有颜色。
   这几团光的位置刻意落在面板覆盖区内（30%~70% 宽高），透过 blur 会晕成色雾。 */
html body:has(.shell),
body:has(.shell) {
  background-image:
    /* —— 面板背后的色团（透过玻璃可见）—— */
    radial-gradient(460px 380px at 34% 52%, rgba(255, 176, 84, 0.75), rgba(255, 176, 84, 0) 62%),
    radial-gradient(420px 360px at 62% 34%, rgba(96, 200, 178, 0.55), rgba(96, 200, 178, 0) 64%),
    radial-gradient(520px 420px at 54% 82%, rgba(210, 140, 74, 0.55), rgba(210, 140, 74, 0) 66%),
    radial-gradient(300px 260px at 44% 20%, rgba(255, 238, 200, 0.7), rgba(255, 238, 200, 0) 62%),
    /* —— 房间边缘的光（面板外可见）—— */
    radial-gradient(520px 400px at 3% 0%, rgba(255, 214, 150, 0.9), rgba(255, 214, 150, 0) 56%),
    radial-gradient(420px 340px at 98% 6%, rgba(206, 150, 90, 0.8), rgba(206, 150, 90, 0) 60%),
    radial-gradient(1200px 820px at 46% 118%, rgba(12, 8, 4, 0.95), rgba(12, 8, 4, 0) 56%),
    linear-gradient(116deg, #33261a 0%, #6b5238 32%, #4a3826 64%, #241a12 100%) !important;
}

/* 增强"流体"：更高饱和 + 不加亮度（避免发白） */
.shell {
  background-color: rgba(255, 252, 246, 0.26) !important;
  -webkit-backdrop-filter: blur(40px) saturate(190%) !important;
  backdrop-filter: blur(40px) saturate(190%) !important;
}

/* ---------- 17 终版：修掉 backdrop-filter 取样错位 ----------
   Chrome 下 body 用 background-attachment: fixed 时，backdrop-filter 取到的是错层，
   结果是"玻璃透不出背景色"（看起来像不透明卡片）。改回 scroll 即恢复。
   同时把面板自身填充压到 20% 左右：透得出来，又比房间亮。 */
html body:has(.shell),
body:has(.shell) {
  background-attachment: scroll !important;
}

.shell {
  background-color: rgba(255, 252, 246, 0.2) !important;
  background-image:
    linear-gradient(178deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.02) 42%, rgba(255, 250, 242, 0.07) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.04'/></svg>") !important;
  -webkit-backdrop-filter: blur(40px) saturate(190%) !important;
  backdrop-filter: blur(40px) saturate(190%) !important;
}

.sidebar, .ws-list, .ws-conv, .ws-detail {
  background-color: rgba(255, 252, 247, 0.14) !important;
  background-image: linear-gradient(178deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.02) 55%) !important;
}

.ws-kpi {
  background-color: rgba(255, 253, 249, 0.18) !important;
  background-image: linear-gradient(176deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.02) 62%) !important;
}

.ws-box, .tb-search {
  background-color: rgba(255, 254, 250, 0.26) !important;
}

/* ============================================================================
   v7 · 浅色底（暖白房间）
   浅底上玻璃不能再靠"比背景亮"来分层，改成三件事：
     ① 背景：暖白 + 极淡的暖/冷色团（透明玻璃才有东西可透）
     ② 面板：白 12~16% + 中性偏冷，靠 1px 亮边 + 外阴影"浮"起来
     ③ 卡片：比面板更白（45~55%），形成"卡 > 面板 > 房间"的亮度阶梯
   ========================================================================= */

html body:has(.shell),
body:has(.shell) {
  background-color: #f1ece4 !important;
  background-image:
    radial-gradient(700px 520px at 6% 0%, rgba(255, 252, 246, 0.95), rgba(255, 252, 246, 0) 60%),
    radial-gradient(520px 420px at 30% 58%, rgba(250, 232, 204, 0.75), rgba(250, 232, 204, 0) 62%),
    radial-gradient(460px 380px at 70% 26%, rgba(224, 238, 234, 0.65), rgba(224, 238, 234, 0) 64%),
    radial-gradient(560px 440px at 88% 78%, rgba(236, 226, 212, 0.8), rgba(236, 226, 212, 0) 64%),
    radial-gradient(900px 700px at 50% 118%, rgba(196, 184, 168, 0.55), rgba(196, 184, 168, 0) 62%),
    linear-gradient(116deg, #f6f2ea 0%, #ece6dc 40%, #f2ece3 68%, #e2d9cc 100%) !important;
  background-attachment: scroll !important;
  background-size: cover !important;
}

/* 面板：略偏冷的中性白，浅底上靠"亮边 + 阴影"分层 */
.shell {
  background-color: rgba(255, 255, 255, 0.12) !important;
  background-image:
    linear-gradient(178deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.1) 46%, rgba(255, 255, 255, 0.16) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.035'/></svg>") !important;
  -webkit-backdrop-filter: blur(34px) saturate(150%) !important;
  backdrop-filter: blur(34px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow:
    0 30px 70px rgba(96, 78, 52, 0.26),
    0 6px 18px rgba(96, 78, 52, 0.14),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* 三大区：比面板略透，白 22% */
.sidebar, .ws-list, .ws-conv, .ws-detail {
  background-color: rgba(255, 255, 255, 0.28) !important;
  background-image: linear-gradient(178deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.12) 58%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
  backdrop-filter: blur(22px) saturate(145%) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 10px 24px rgba(96, 78, 52, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* KPI 卡：最白（亮于面板），浅底上靠"更白"体现层级 */
.ws-kpi {
  background-color: rgba(255, 255, 255, 0.55) !important;
  background-image: linear-gradient(176deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.4) 100%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow:
    0 10px 24px rgba(96, 78, 52, 0.1),
    inset 0 1px 0 #fff !important;
}

/* 输入区：近白 */
.ws-box, .tb-search {
  background-color: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 6px 18px rgba(96, 78, 52, 0.08), inset 0 1px 0 #fff !important;
}

.ws-starter {
  background-color: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgba(96, 78, 52, 0.07) !important;
}
.ws-starter:hover { background-color: rgba(255, 255, 255, 0.75) !important; }

/* 薄荷绿保持实心（唯一彩色） */
.ws-kpi.is-accent, .ws-kpi.accent, .ws-kpi[data-accent], .ws-kpi.mint {
  background-color: #2ec4a0 !important;
  background-image: linear-gradient(150deg, #35cca7 0%, #12a67c 100%) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 16px 34px rgba(15, 130, 100, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

/* 浅底上的文字：要更黑，否则发灰 */
.shell { color: #171310 !important; }
.shell h1, .shell h2, .shell h3, .shell strong, .shell .kpi-value { color: #0d0a07 !important; }
.shell .kpi-label, .shell .ws-kpi-label, .shell small, .shell .muted, .shell .sub {
  color: rgba(23, 19, 16, 0.6) !important;
}

/* ---------- 18 浅底定稿：背景画在 html 上 ----------
   坑：.shell 是 position:fixed，body 的高度变成 0，body 的 background 没有面积可画，
       屏幕上露出来的是 html 的底色（旧版是棕色 → 看起来像"没改成浅色"）。
   所以浅底必须画在 html:has(.shell) 上，body 保持透明。 */
html:has(.shell) {
  background-color: #f1ece4 !important;
  background-image:
    radial-gradient(760px 560px at 6% -4%, rgba(255, 253, 248, 0.98), rgba(255, 253, 248, 0) 58%),
    radial-gradient(560px 440px at 32% 56%, rgba(250, 233, 206, 0.66), rgba(250, 233, 206, 0) 62%),
    radial-gradient(480px 400px at 70% 24%, rgba(226, 240, 236, 0.62), rgba(226, 240, 236, 0) 64%),
    radial-gradient(520px 420px at 88% 80%, rgba(238, 228, 214, 0.7), rgba(238, 228, 214, 0) 64%),
    radial-gradient(900px 700px at 50% 120%, rgba(200, 188, 172, 0.5), rgba(200, 188, 172, 0) 62%),
    linear-gradient(116deg, #f8f4ed 0%, #ece6dc 40%, #f3ede4 68%, #e3dacd 100%) !important;
  background-attachment: scroll !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

body:has(.shell) {
  background: transparent !important;
  min-height: 100vh !important;
}

/* 浅底上玻璃略偏中性，避免发黄 */
.shell {
  background-color: rgba(255, 255, 255, 0.14) !important;
  -webkit-backdrop-filter: blur(34px) saturate(155%) !important;
  backdrop-filter: blur(34px) saturate(155%) !important;
  border-color: rgba(255, 255, 255, 0.92) !important;
  box-shadow:
    0 28px 64px rgba(104, 86, 60, 0.2),
    0 6px 18px rgba(104, 86, 60, 0.1),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.45) !important;
}

/* ============================================================================
   v8 · 蓝色晕染底图（2026-11-18）
   做法：以浅蓝为底，叠 5 团不同深浅的蓝（天蓝 / 湖蓝 / 靛蓝），全部大半径低对比，
        靠 CSS 径向渐变模拟"晕染/极光"效果；玻璃用白色低透明度，压出清晰边界。
   ========================================================================= */

html:has(.shell) {
  background-color: #e8f1fb !important;
  background-image:
    /* 左上：日光白蓝，最亮 */
    radial-gradient(900px 700px at 8% -10%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 58%),
    /* 上中：天蓝晕 */
    radial-gradient(760px 560px at 46% -4%, rgba(150, 196, 245, 0.85), rgba(150, 196, 245, 0) 62%),
    /* 右上：湖蓝，略深 */
    radial-gradient(680px 560px at 96% 10%, rgba(104, 165, 232, 0.75), rgba(104, 165, 232, 0) 62%),
    /* 左下：靛蓝，压暗角落 */
    radial-gradient(760px 620px at 6% 96%, rgba(112, 138, 214, 0.65), rgba(112, 138, 214, 0) 64%),
    /* 右下：深蓝晕，制造纵深 */
    radial-gradient(820px 640px at 92% 98%, rgba(72, 122, 196, 0.6), rgba(72, 122, 196, 0) 64%),
    /* 中间：一层极淡的青，把蓝调拉干净 */
    radial-gradient(600px 480px at 54% 60%, rgba(206, 236, 245, 0.55), rgba(206, 236, 245, 0) 66%),
    linear-gradient(160deg, #f4f9ff 0%, #dbeafb 34%, #c9ddf6 64%, #b6cfee 100%) !important;
  background-attachment: scroll !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

body:has(.shell) { background: transparent !important; min-height: 100vh !important; }

/* 玻璃：白色低透明度，让蓝色从下面透出来 */
.shell {
  background-color: rgba(255, 255, 255, 0.16) !important;
  background-image:
    linear-gradient(178deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.08) 46%, rgba(255, 255, 255, 0.14) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.03'/></svg>") !important;
  -webkit-backdrop-filter: blur(38px) saturate(165%) !important;
  backdrop-filter: blur(38px) saturate(165%) !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  box-shadow:
    0 30px 68px rgba(46, 84, 140, 0.22),
    0 8px 20px rgba(46, 84, 140, 0.12),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* 三大区：白 26%，比面板更实一点，保证正文可读 */
.sidebar, .ws-list, .ws-conv, .ws-detail {
  background-color: rgba(255, 255, 255, 0.3) !important;
  background-image: linear-gradient(178deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.14) 58%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow:
    0 10px 26px rgba(46, 84, 140, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

/* KPI 卡：白 58%，最亮，压在蓝底上很干净 */
.ws-kpi {
  background-color: rgba(255, 255, 255, 0.58) !important;
  background-image: linear-gradient(176deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.44) 100%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(155%) !important;
  backdrop-filter: blur(16px) saturate(155%) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow:
    0 10px 26px rgba(46, 84, 140, 0.1),
    inset 0 1px 0 #fff !important;
}

/* 输入区：近白 */
.ws-box, .tb-search {
  background-color: rgba(255, 255, 255, 0.76) !important;
  border: 1px solid rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 6px 18px rgba(46, 84, 140, 0.08), inset 0 1px 0 #fff !important;
}
.ws-starter {
  background-color: rgba(255, 255, 255, 0.56) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgba(46, 84, 140, 0.07) !important;
}
.ws-starter:hover { background-color: rgba(255, 255, 255, 0.78) !important; }

/* 薄荷绿保持实心（蓝底上对比更强） */
.ws-kpi.is-accent, .ws-kpi.accent, .ws-kpi[data-accent], .ws-kpi.mint {
  background-color: #2ec4a0 !important;
  background-image: linear-gradient(150deg, #36cdA8 0%, #12a67c 100%) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 16px 34px rgba(14, 122, 96, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.48) !important;
}

/* 蓝底上的文字：冷一点的黑，避免发褐 */
.shell { color: #131a24 !important; }
.shell h1, .shell h2, .shell h3, .shell strong, .shell .kpi-value { color: #0b1118 !important; }
.shell .kpi-label, .shell .ws-kpi-label, .shell small, .shell .muted, .shell .sub {
  color: rgba(19, 26, 36, 0.6) !important;
}
.nav-item.active {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0b1118 !important;
  box-shadow: 0 6px 16px rgba(46, 84, 140, 0.18), inset 0 1px 0 #fff !important;
}

/* ---------- 19 修特异性：旧规则写的是 html body:has(.shell)（两元素+伪类），
   单写 body:has(.shell) 压不过它，body 会把暖色继续画在 html 的蓝底上面。
   这里用同等特异性把它清成透明。 */
html body:has(.shell) {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  min-height: 100vh !important;
}

/* ---------- 20 晕染微调：更大半径、更低对比、加两团青/靛 ---------- */
html:has(.shell) {
  background-color: #e6f0fb !important;
  background-image:
    radial-gradient(1200px 900px at 4% -16%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 56%),
    radial-gradient(1100px 820px at 52% -14%, rgba(146, 194, 246, 0.72), rgba(146, 194, 246, 0) 64%),
    radial-gradient(980px 780px at 100% 4%, rgba(92, 152, 226, 0.62), rgba(92, 152, 226, 0) 66%),
    radial-gradient(900px 720px at -6% 88%, rgba(120, 146, 220, 0.5), rgba(120, 146, 220, 0) 66%),
    radial-gradient(1000px 780px at 96% 100%, rgba(64, 116, 192, 0.5), rgba(64, 116, 192, 0) 66%),
    radial-gradient(760px 600px at 46% 62%, rgba(198, 234, 246, 0.5), rgba(198, 234, 246, 0) 68%),
    radial-gradient(620px 500px at 74% 44%, rgba(176, 214, 250, 0.45), rgba(176, 214, 250, 0) 70%),
    linear-gradient(158deg, #f6faff 0%, #dcecfb 30%, #c9def7 58%, #aec9ea 82%, #9bbde4 100%) !important;
  background-size: cover !important;
}

/* ---------- 21 更蓝：提高蓝的占比与饱和度（v11） ---------- */
html:has(.shell) {
  background-color: #cfe2f9 !important;
  background-image:
    /* 只留一小块日光，避免整体发白 */
    radial-gradient(620px 520px at 2% -12%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 52%),
    /* 主晕染：天蓝，更饱和 */
    radial-gradient(1150px 880px at 50% -12%, rgba(112, 172, 240, 0.92), rgba(112, 172, 240, 0) 64%),
    /* 右上：湖蓝 */
    radial-gradient(1000px 800px at 102% 2%, rgba(56, 128, 214, 0.85), rgba(56, 128, 214, 0) 66%),
    /* 左下：蓝紫 */
    radial-gradient(920px 740px at -8% 90%, rgba(92, 122, 208, 0.78), rgba(92, 122, 208, 0) 66%),
    /* 右下：深蓝 */
    radial-gradient(1020px 800px at 98% 102%, rgba(34, 92, 176, 0.8), rgba(34, 92, 176, 0) 66%),
    /* 中段：青蓝，拉开层次 */
    radial-gradient(780px 620px at 44% 58%, rgba(120, 196, 232, 0.6), rgba(120, 196, 232, 0) 68%),
    radial-gradient(640px 520px at 74% 40%, rgba(146, 190, 246, 0.55), rgba(146, 190, 246, 0) 70%),
    linear-gradient(158deg, #eaf4ff 0%, #c3dbf7 28%, #a9c8ef 56%, #86b0e2 80%, #6d9cd6 100%) !important;
  background-size: cover !important;
}

/* 蓝更深了，玻璃略提白保证可读 */
.shell {
  background-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    0 30px 70px rgba(28, 62, 118, 0.3),
    0 8px 22px rgba(28, 62, 118, 0.16),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.45) !important;
}
.sidebar, .ws-list, .ws-conv, .ws-detail {
  background-color: rgba(255, 255, 255, 0.34) !important;
}

/* ============================================================================
   v9 · 暗色质感（2026-11-18）
   思路：不用纯黑，用「深蓝黑 + 冷灰」；背景放 4 团低饱和冷光 + 1 团暖余光，
        玻璃靠"极低白 + 强模糊 + 亮边"浮起来；文字近白，薄荷绿做唯一彩色。
   纯黑会显廉价，深蓝黑 + 一点暖光才有"质感"。
   ========================================================================= */

html:has(.shell) {
  background-color: #0b1018 !important;
  background-image:
    /* 左上冷光：靛蓝 */
    radial-gradient(900px 700px at 4% -10%, rgba(52, 86, 148, 0.55), rgba(52, 86, 148, 0) 62%),
    /* 右上：青蓝，略亮 */
    radial-gradient(820px 660px at 98% -4%, rgba(36, 96, 132, 0.5), rgba(36, 96, 132, 0) 64%),
    /* 中下：一束冷白，制造纵深 */
    radial-gradient(760px 600px at 52% 108%, rgba(96, 138, 190, 0.32), rgba(96, 138, 190, 0) 66%),
    /* 左下：极淡暖余光（只一点，压住冷调） */
    radial-gradient(620px 500px at -6% 92%, rgba(120, 84, 48, 0.3), rgba(120, 84, 48, 0) 66%),
    /* 底部暗角 */
    radial-gradient(1200px 800px at 50% 128%, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 60%),
    linear-gradient(158deg, #0d1420 0%, #0a0f18 42%, #0c1421 72%, #070a10 100%) !important;
  background-attachment: scroll !important;
  background-size: cover !important;
}

html body:has(.shell) { background: transparent !important; background-image: none !important; }

/* 面板：极低白 + 强模糊 + 亮边 */
.shell {
  background-color: rgba(255, 255, 255, 0.045) !important;
  background-image:
    linear-gradient(176deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.015) 46%, rgba(255, 255, 255, 0.04) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.05'/></svg>") !important;
  -webkit-backdrop-filter: blur(40px) saturate(150%) !important;
  backdrop-filter: blur(40px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 40px 96px rgba(0, 0, 0, 0.62),
    0 10px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* 三大区：比面板略亮，保证正文可读 */
.sidebar, .ws-list, .ws-conv, .ws-detail {
  background-color: rgba(255, 255, 255, 0.055) !important;
  background-image: linear-gradient(178deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.015) 58%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(145%) !important;
  backdrop-filter: blur(26px) saturate(145%) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

/* KPI 卡：暗底上略亮，靠描边分层 */
.ws-kpi {
  background-color: rgba(255, 255, 255, 0.07) !important;
  background-image: linear-gradient(176deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 62%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(145%) !important;
  backdrop-filter: blur(16px) saturate(145%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 18px !important;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* 薄荷绿：暗底上是唯一彩色，饱和度略提 */
.ws-kpi.is-accent, .ws-kpi.accent, .ws-kpi[data-accent], .ws-kpi.mint {
  background-color: #17b98e !important;
  background-image: linear-gradient(150deg, #22c79b 0%, #0f9d78 100%) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 18px 40px rgba(10, 120, 92, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

/* 输入区：暗玻璃，别做成白块 */
.ws-box, .tb-search {
  background-color: rgba(255, 255, 255, 0.07) !important;
  -webkit-backdrop-filter: blur(20px) saturate(145%) !important;
  backdrop-filter: blur(20px) saturate(145%) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 22px rgba(0, 0, 0, 0.3) !important;
}
.ws-box input, .tb-search input, .ws-box textarea { color: #e9eef6 !important; }

.ws-starter {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
.ws-starter:hover { background-color: rgba(255, 255, 255, 0.1) !important; }

/* 文字：近白 + 冷灰阶 */
.shell { color: #e9eef6 !important; }
.shell h1, .shell h2, .shell h3, .shell strong, .shell .kpi-value { color: #f4f8ff !important; }
.shell .kpi-label, .shell .ws-kpi-label, .shell small, .shell .muted, .shell .sub {
  color: rgba(233, 238, 246, 0.62) !important;
}
.shell .nav-item { color: rgba(233, 238, 246, 0.72) !important; }
.shell .nav-item.active {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* 主按钮：暗底上做成"浅色实心"更醒目（深色按钮会糊进背景） */
.shell .btn.primary, .shell .btn.primary.small, .shell .tb-cta {
  background: #eef3fb !important;
  color: #0b1018 !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), inset 0 1px 0 #fff !important;
}
.shell .btn.primary:hover, .shell .tb-cta:hover { background: #ffffff !important; }

/* 滚动条 */
.shell ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); }
.shell ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); }

/* ---------- 22 暗色文字兜底：旧浅色规则用了更深的选择器，逐个修不如统一压 ---------- */
html body:has(.shell) .shell,
html body:has(.shell) .shell * {
  color: #e9eef6 !important;
}

/* 次要文字 */
html body:has(.shell) .shell .ws-kpi-top,
html body:has(.shell) .shell .ws-kpi-top *,
html body:has(.shell) .shell small,
html body:has(.shell) .shell .muted,
html body:has(.shell) .shell .sub,
html body:has(.shell) .shell .kpi-label {
  color: rgba(233, 238, 246, 0.6) !important;
}

/* 薄荷绿卡：全白 */
html body:has(.shell) .shell .ws-kpi.is-accent,
html body:has(.shell) .shell .ws-kpi.is-accent *,
html body:has(.shell) .shell .ws-kpi.mint,
html body:has(.shell) .shell .ws-kpi.mint * {
  color: #ffffff !important;
}

/* 浅色主按钮：深字 */
html body:has(.shell) .shell .btn.primary,
html body:has(.shell) .shell .btn.primary *,
html body:has(.shell) .shell .tb-cta,
html body:has(.shell) .shell .tb-cta * {
  color: #0b1018 !important;
}

/* 侧栏当前项：纯白 + 稍亮底 */
html body:has(.shell) .shell .nav-item.active,
html body:has(.shell) .shell .nav-item.active * {
  color: #ffffff !important;
}
html body:has(.shell) .shell .nav-item { color: rgba(233, 238, 246, 0.72) !important; }

/* ---------- 23 浅底元素上的深字（暗色主题里这些白底块要用深色字） ---------- */
html body:has(.shell) .shell .nav-item.active,
html body:has(.shell) .shell .nav-item.active *,
html body:has(.shell) .shell .ws-tab.on,
html body:has(.shell) .shell .ws-tab.on *,
html body:has(.shell) .shell .ws-tab.active,
html body:has(.shell) .shell .ws-tab.active * {
  color: #0b1018 !important;
}

/* 顺带把这两个白底调柔一点，别在暗色里刺眼 */
html body:has(.shell) .shell .nav-item.active,
html body:has(.shell) .shell .ws-tab.on,
html body:has(.shell) .shell .ws-tab.active {
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 #fff !important;
}

/* 其余次级按钮（白 85%）也统一深字 */
html body:has(.shell) .shell .btn.small { color: #0b1018 !important; }

/* ---------- 24 去掉工作台顶部指标带（用户要求，2026-11-18） ----------
   只隐藏这四张卡所在的容器；不影响左右两栏与对话区。 */
html body:has(.shell) .shell .ws-kpis,
html body:has(.shell) .shell .ws-kpi { display: none !important; }

/* ---------- 25 去掉顶部工具条（搜索 / 通知 / 新建对话），用户要求 ----------
   隐藏 .topbar；底部会话列表里仍有「+ 新建对话」，功能不受影响。 */
html body:has(.shell) .shell .topbar { display: none !important; }

/* ---------- 26 三栏可收起 / 可拖宽（配合 /panes.js） ---------- */
html body:has(.shell) .shell .ws-layout {
  grid-template-columns: var(--ws-left, 288px) minmax(0, 1fr) var(--ws-right, 232px) !important;
  position: relative !important;
}

/* 把手：贴在左右两栏的内侧边缘，6px 宽，垂直居中 */
html body:has(.shell) .shell .ws-handle {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 10px;
  z-index: 6;
  cursor: col-resize;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}
html body:has(.shell) .shell .ws-handle:hover,
html body:has(.shell) .shell .ws-handle:active {
  background: rgba(120, 180, 255, 0.22);
}
html body:has(.shell) .shell .ws-handle-left { left: calc(var(--ws-left, 288px) - 5px); }
html body:has(.shell) .shell .ws-handle-right { right: calc(var(--ws-right, 232px) - 5px); }

.ws-handle-grip {
  width: 3px;
  height: 34px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}
html body:has(.shell) .shell .ws-handle:hover .ws-handle-grip { background: rgba(255, 255, 255, 0.6); }

/* 拖动中：全局 cursor + 禁选 */
body.ws-resizing { cursor: col-resize !important; user-select: none !important; }
body.ws-resizing * { cursor: col-resize !important; }

/* 收起态：整栏宽度归零，内容隐藏（把手仍在原位，点它展开） */
html body.ws-left-collapsed .shell .ws-list { display: none !important; }
html body.ws-right-collapsed .shell .ws-detail { display: none !important; }

/* 收起后把手贴到最边上，给一点可见提示 */
html body.ws-left-collapsed .shell .ws-handle-left { left: 2px !important; }
html body.ws-right-collapsed .shell .ws-handle-right { right: 2px !important; }
html body.ws-left-collapsed .shell .ws-handle-grip,
html body.ws-right-collapsed .shell .ws-handle-grip { background: rgba(255, 255, 255, 0.45); height: 52px; }

/* ---------- 27 左侧导航：可收成图标条 + 悬停浮层（配合 /nav.js） ---------- */
html body:has(.shell) .shell {
  grid-template-columns: var(--ws-nav, 196px) minmax(0, 1fr) !important;
}

/* 折叠按钮 */
html body:has(.shell) .ws-nav-toggle {
  position: absolute;
  right: 6px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(233, 238, 246, 0.9);
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}
html body:has(.shell) .ws-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
}
html body:has(.shell) .shell .sidebar { position: relative !important; }

/* —— 收起态：68px 图标条 —— */
body.ws-nav-collapsed { --ws-nav: 68px; }

body.ws-nav-collapsed .shell .sidebar { padding-left: 6px !important; padding-right: 6px !important; }
body.ws-nav-collapsed .shell .sidebar .brand {
  justify-content: center !important;
  font-size: 0 !important;
  gap: 0 !important;
}
body.ws-nav-collapsed .shell .sidebar .brand img,
body.ws-nav-collapsed .shell .sidebar .brand svg { width: 26px !important; height: 26px !important; }

body.ws-nav-collapsed .shell .sidebar .nav-item {
  font-size: 0 !important;
  justify-content: center !important;
  padding: 11px 0 !important;
  gap: 0 !important;
}
body.ws-nav-collapsed .shell .sidebar .nav-item .nav-symbol {
  font-size: 16px !important;
  width: auto !important;
  margin: 0 !important;
}
body.ws-nav-collapsed .shell .sidebar .side-bottom { font-size: 0 !important; justify-content: center !important; }
body.ws-nav-collapsed .shell .sidebar .side-bottom .avatar { margin: 0 !important; }

/* —— 悬停/点击：浮层展开（不挤压右侧） —— */

/* ---------- 28 收起态：精确隐藏文字（品牌只留图标、隐藏 WORKSPACE/邮箱/版本号） ---------- */
body.ws-nav-collapsed .shell .sidebar .side-label,
body.ws-nav-collapsed .shell .sidebar .side-version,
body.ws-nav-collapsed .shell .sidebar .side-profile {
  display: none !important;
}

/* 品牌：只留 logo 图标 */
body.ws-nav-collapsed .shell .sidebar .brand {
  font-size: 0 !important;
  justify-content: center !important;
  gap: 0 !important;
}
body.ws-nav-collapsed .shell .sidebar .brand img { width: 26px !important; height: 26px !important; }

/* 侧栏底部：只留头像（作为账号入口） */
body.ws-nav-collapsed .shell .sidebar .side-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 6px 0 !important;
}
body.ws-nav-collapsed .shell .sidebar .side-bottom::before {
  content: "企";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #0b1018;
  font-size: 12px;
}
body.ws-nav-collapsed .shell .sidebar .side-bottom .nav-item { display: none !important; }

/* 浮层里恢复全部文字 */

/* ---------- 29 收起态细节：激活项收成小方块、图标提亮、按钮不压 logo ---------- */
body.ws-nav-collapsed .shell .sidebar .nav-item {
  width: 34px !important;
  height: 34px !important;
  margin: 2px auto !important;
  padding: 0 !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body.ws-nav-collapsed .shell .sidebar .nav-item .nav-symbol {
  font-size: 15px !important;
  line-height: 1 !important;
  color: rgba(233, 238, 246, 0.82) !important;
}
body.ws-nav-collapsed .shell .sidebar .nav-item.active {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 #fff !important;
}
body.ws-nav-collapsed .shell .sidebar .nav-item.active .nav-symbol { color: #0b1018 !important; }
body.ws-nav-collapsed .shell .sidebar .nav-item:hover .nav-symbol { color: #fff !important; }

/* 折叠按钮：放到 logo 右侧一点，避免压住图标 */
body.ws-nav-collapsed .shell .ws-nav-toggle { right: 4px !important; top: 6px !important; }

/* ---------- 30 浮层时把内容钉在第二列 ----------
   .sidebar 变成 position:fixed 后会脱离 grid 流，后面的 .workspace 会被自动排到第一列（68px），
   内容看起来"消失"。显式指定行列即可。 */
html body:has(.shell) .shell > .workspace {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
}
html body:has(.shell) .shell > .sidebar {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

/* ---------- 31 浮层不再随 hover 变化（避免闪烁）+ 邮箱不换行 ---------- */

/* ---------- 32 浮层不透明度提高（避免下方列表文字透上来） ---------- */

/* ---------- 33 浮层里导航项恢复成整行（不再是 34px 方块） ---------- */

/* ============================================================================
   34 左右两栏：点击弹出 / 移开收起（配合 /autopanes.js）
   平时两栏宽度 0、隐藏；点击边缘标签 → fixed 浮层；鼠标移开 → 自动收起。
   ========================================================================= */

/* 平时：两栏归零，主体占满 */
body.ws-panes-auto .shell .ws-layout {
  grid-template-columns: 0 minmax(0, 1fr) 0 !important;
}
body.ws-panes-auto .shell .ws-list,
body.ws-panes-auto .shell .ws-detail { display: none !important; }

/* 边缘标签 */
html body:has(.shell) .ws-edge-tab {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 7;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  font-size: 11px;
  padding: 12px 5px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 30, 46, 0.86);
  color: rgba(233, 238, 246, 0.85);
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: background-color 0.15s ease, color 0.15s ease;
}
html body:has(.shell) .ws-edge-tab:hover { background: rgba(40, 60, 90, 0.92); color: #fff; }
html body:has(.shell) .ws-edge-tab-left { left: 6px; }
html body:has(.shell) .ws-edge-tab-right { right: 6px; }

/* 展开态：该栏变 fixed 浮层 */
body.ws-panes-auto.ws-left-open .shell .ws-list,
body.ws-panes-auto.ws-right-open .shell .ws-detail {
  display: flex !important;
  position: fixed !important;
  top: 30px;
  bottom: 30px;
  width: 340px !important;
  z-index: 55;
  border-radius: 20px !important;
  background-color: rgba(18, 26, 40, 0.97) !important;
  background-image: linear-gradient(178deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 60%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(140%) !important;
  backdrop-filter: blur(28px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.62) !important;
  padding: 14px 12px !important;
  animation: ws-pane-in 0.14s ease-out;
}
body.ws-panes-auto.ws-left-open .shell .ws-list { left: 30px; }
body.ws-panes-auto.ws-right-open .shell .ws-detail { right: 30px; width: 300px !important; }

@keyframes ws-pane-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 浮层里字体恢复正常（收起态曾把字号压小） */
body.ws-panes-auto.ws-left-open .shell .ws-list,
body.ws-panes-auto.ws-left-open .shell .ws-list *,
body.ws-panes-auto.ws-right-open .shell .ws-detail,
body.ws-panes-auto.ws-right-open .shell .ws-detail * {
  font-size: 12.5px;
}
body.ws-panes-auto.ws-left-open .shell .ws-list .ws-tab,
body.ws-panes-auto.ws-right-open .shell .ws-detail h3 { font-size: 13px !important; }

/* ---------- 35 修正：两栏归零的规则要压过 --ws-left/--ws-right 那条（提高特异性） ---------- */
html body.ws-panes-auto:has(.shell) .shell .ws-layout {
  grid-template-columns: 0 minmax(0, 1fr) 0 !important;
}

/* ---------- 36 两栏 display:none 后，中间栏会被自动排到第一列（0px）→ 显式钉列 ---------- */
html body.ws-panes-auto:has(.shell) .shell .ws-layout > .ws-conv {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
}
html body.ws-panes-auto:has(.shell) .shell .ws-layout > .ws-list {
  grid-column: 1 !important;
  grid-row: 1 !important;
}
html body.ws-panes-auto:has(.shell) .shell .ws-layout > .ws-detail {
  grid-column: 3 !important;
  grid-row: 1 !important;
}

/* ---------- 37 外框内缩从 30px 收窄到 10px（用户要求框架更大、少留白） ---------- */
.shell { inset: 10px !important; border-radius: 18px !important; }

/* 浮层（左会话 / 右要点）跟着外框一起贴边 */
body.ws-panes-auto.ws-left-open .shell .ws-list {
  left: 12px !important; top: 12px !important; bottom: 12px !important;
}
body.ws-panes-auto.ws-right-open .shell .ws-detail {
  right: 12px !important; top: 12px !important; bottom: 12px !important;
}

/* 左侧导航浮层同样贴边 */

/* 边缘标签更贴边 */
html body:has(.shell) .ws-edge-tab-left { left: 2px !important; }
html body:has(.shell) .ws-edge-tab-right { right: 2px !important; }

/* ---------- 38 中间区域拉满高度，去掉底部空白 ---------- */
html body:has(.shell) .shell .ws-page,
html body:has(.shell) .shell .main-content,
html body:has(.shell) .shell .workspace {
  height: 100% !important;
  min-height: 0 !important;
}
html body:has(.shell) .shell .ws-layout {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

/* ---------- 39 让内容真正撑满（补特异性，逐层 flex:1） ---------- */
html body:has(.shell) .shell .workspace {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
}
html body:has(.shell) .shell .main-content {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
html body:has(.shell) .shell .ws-page {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
html body:has(.shell) .shell .ws-layout {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}
html body:has(.shell) .shell .ws-conv {
  min-height: 0 !important;
}

/* ---------- 40 收掉 main-content 的底部大留白（原为 48px，留 6px 给底部标语） ---------- */
html body:has(.shell) .shell .main-content {
  padding-bottom: 6px !important;
}
html body:has(.shell) .shell .ws-page {
  padding-bottom: 0 !important;
}

/* ---------- 41 放开 .ws-page 的 max-width，让内容真正铺满外框 ---------- */
html body:has(.shell) .shell .ws-page,
html body:has(.shell) .shell .ws-layout,
html body:has(.shell) .shell .ws-conv,
html body:has(.shell) .shell .main-content {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-self: stretch !important;
}
html body:has(.shell) .shell .ws-page { padding-left: 14px !important; padding-right: 14px !important; }

/* ---------- 42 收起/展开按钮去掉外框，只留箭头 ---------- */
html body:has(.shell) .ws-nav-toggle {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  color: rgba(233, 238, 246, 0.62) !important;
  opacity: 1 !important;
}
html body:has(.shell) .ws-nav-toggle:hover {
  background: none !important;
  border: 0 !important;
  color: #ffffff !important;
}

/* ---------- 43 模型下拉：显式配色（白底白字的根因是它继承了亮色文字却用了白底） ---------- */
html body:has(.shell) .shell .ws-model-menu {
  background-color: #131b26 !important;
  background-image: linear-gradient(178deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 60%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.9) !important;
  -webkit-backdrop-filter: blur(22px) saturate(140%) !important;
  backdrop-filter: blur(22px) saturate(140%) !important;
  padding: 6px !important;
}
html body:has(.shell) .shell .ws-model-menu,
html body:has(.shell) .shell .ws-model-menu * {
  color: #e9eef6 !important;
}
html body:has(.shell) .shell .ws-model-item {
  background: transparent !important;
  border-radius: 8px !important;
  color: #e9eef6 !important;
  font-size: 12px !important;
}
html body:has(.shell) .shell .ws-model-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}
html body:has(.shell) .shell .ws-model-item.on {
  background: rgba(46, 196, 160, 0.22) !important;
  color: #ffffff !important;
}
html body:has(.shell) .shell .ws-model-item small,
html body:has(.shell) .shell .ws-model-item span {
  color: rgba(233, 238, 246, 0.62) !important;
}

/* ============================================================================
   44 边缘按钮改箭头 + 并列推挤（不是悬浮）
   之前是 position:fixed 覆盖层；现在改成占用 grid 列，对话区被"推开"。
   ========================================================================= */

/* 箭头按钮：小圆片，不是竖排文字 */
html body:has(.shell) .ws-edge-tab {
  writing-mode: horizontal-tb !important;
  letter-spacing: 0 !important;
  width: 26px;
  height: 44px;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  border-radius: 10px;
}
html body:has(.shell) .ws-edge-tab-left { left: 4px !important; }
html body:has(.shell) .ws-edge-tab-right { right: 4px !important; }

/* 展开：占用列宽，内容被推开（左 340 / 右 300） */
body.ws-panes-auto.ws-left-open .shell .ws-layout { grid-template-columns: 340px minmax(0, 1fr) 0 !important; }
body.ws-panes-auto.ws-right-open .shell .ws-layout { grid-template-columns: 0 minmax(0, 1fr) 300px !important; }
body.ws-panes-auto.ws-left-open.ws-right-open .shell .ws-layout { grid-template-columns: 340px minmax(0, 1fr) 300px !important; }

/* 左右两栏：回到文档流（不再是浮层） */
body.ws-panes-auto.ws-left-open .shell .ws-list,
body.ws-panes-auto.ws-right-open .shell .ws-detail {
  position: static !important;
  display: flex !important;
  width: auto !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
  border-radius: 16px !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  background-image: linear-gradient(178deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 60%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  padding: 12px !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
/* 展开时箭头换方向 */
body.ws-left-open .ws-edge-tab-left { opacity: 0.35; }
body.ws-right-open .ws-edge-tab-right { opacity: 0.35; }

/* ---------- 45 修「GLM-4.7-Flash」白色胶囊（白底浅字看不见） ---------- */
html body:has(.shell) .shell .ws-model {
  background: rgba(255, 255, 255, 0.1) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #e9eef6 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
}
html body:has(.shell) .shell .ws-model,
html body:has(.shell) .shell .ws-model * {
  color: #e9eef6 !important;
}
html body:has(.shell) .shell .ws-model:hover {
  background: rgba(255, 255, 255, 0.16) !important;
}

/* ---------- 46 推挤规则提高特异性（压过"归零"那条 html … :has(.shell)） ---------- */
html body.ws-panes-auto.ws-left-open:has(.shell) .shell .ws-layout {
  grid-template-columns: 340px minmax(0, 1fr) 0 !important;
}
html body.ws-panes-auto.ws-right-open:has(.shell) .shell .ws-layout {
  grid-template-columns: 0 minmax(0, 1fr) 300px !important;
}
html body.ws-panes-auto.ws-left-open.ws-right-open:has(.shell) .shell .ws-layout {
  grid-template-columns: 340px minmax(0, 1fr) 300px !important;
}
/* 展开时该栏必须可见（之前 display:none 优先级也高，一并覆盖） */
html body.ws-panes-auto.ws-left-open:has(.shell) .shell .ws-list,
html body.ws-panes-auto.ws-right-open:has(.shell) .shell .ws-detail {
  display: flex !important;
  position: static !important;
  width: auto !important;
}

/* ---------- 47 底部说明条贴到最底（用 margin-top:auto 把它压到页面底部） ---------- */
html body:has(.shell) .shell .ws-page {
  display: flex !important;
  flex-direction: column !important;
}
html body:has(.shell) .shell .ws-page > .footer-note {
  margin-top: auto !important;
  padding-top: 10px !important;
  padding-bottom: 2px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}
html body:has(.shell) .shell .main-content { padding-bottom: 0 !important; }

/* ---------- 48 底部条右侧避让"演示环境"角标 ---------- */
html body:has(.shell) .shell .ws-page > .footer-note {
  padding-right: 208px !important;
}

/* ============================================================================
   49 AI 生成中：输入框蓝色流光
   开关：body.ai-busy（由 /aibusy.js 根据"停止生成"按钮判断）
   效果：① 边框上有一道绕圈跑的光 ② 输入框整体蓝色呼吸光 ③ 内部有一道横扫的光带
   ========================================================================= */

html body.ai-busy:has(.shell) .shell .ws-box {
  position: relative !important;
  border-color: rgba(96, 165, 250, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.35),
    0 0 26px rgba(59, 130, 246, 0.28),
    inset 0 0 22px rgba(59, 130, 246, 0.1) !important;
  animation: ai-breathe 2.6s ease-in-out infinite;
}

/* ① 边框流光：conic 渐变 + mask 只留 1.6px 边 */
html body.ai-busy:has(.shell) .shell .ws-box::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.6px;
  background: conic-gradient(
    from 0deg,
    rgba(59, 130, 246, 0) 0deg,
    rgba(59, 130, 246, 0) 210deg,
    rgba(96, 165, 250, 0.9) 268deg,
    rgba(186, 230, 253, 1) 300deg,
    rgba(96, 165, 250, 0.9) 330deg,
    rgba(59, 130, 246, 0) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: ai-orbit 2.4s linear infinite;
  pointer-events: none;
  z-index: 2;
}

/* ③ 内部横扫光带 */
html body.ai-busy:has(.shell) .shell .ws-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    100deg,
    rgba(59, 130, 246, 0) 30%,
    rgba(96, 165, 250, 0.16) 46%,
    rgba(186, 230, 253, 0.3) 50%,
    rgba(96, 165, 250, 0.16) 54%,
    rgba(59, 130, 246, 0) 70%
  );
  background-size: 260% 100%;
  animation: ai-sweep 2.2s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes ai-orbit {
  to { transform: rotate(360deg); }
}
@keyframes ai-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(96,165,250,.3), 0 0 20px rgba(59,130,246,.2), inset 0 0 18px rgba(59,130,246,.08); }
  50%      { box-shadow: 0 0 0 1px rgba(96,165,250,.55), 0 0 34px rgba(59,130,246,.38), inset 0 0 26px rgba(59,130,246,.14); }
}
@keyframes ai-sweep {
  0%   { background-position: -60% 0; }
  100% { background-position: 160% 0; }
}

/* 发送键在生成中变成"停止"，给它一点蓝调呼应 */
html body.ai-busy:has(.shell) .shell .ws-send.is-stop {
  background: rgba(59, 130, 246, 0.9) !important;
  border-color: rgba(147, 197, 253, 0.7) !important;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.45) !important;
}

/* 无障碍：用户开启"减少动态"时只留静态蓝框 */
@media (prefers-reduced-motion: reduce) {
  html body.ai-busy:has(.shell) .shell .ws-box,
  html body.ai-busy:has(.shell) .shell .ws-box::before,
  html body.ai-busy:has(.shell) .shell .ws-box::after { animation: none !important; }
}

/* ---------- 50 修正流光：不旋转元素，旋转 conic 的角度（否则非正方形会被拉歪） ---------- */
@property --ai-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

html body.ai-busy:has(.shell) .shell .ws-box::before {
  inset: -1.2px !important;
  padding: 1.5px !important;
  transform: none !important;
  background: conic-gradient(
    from var(--ai-angle),
    rgba(59, 130, 246, 0) 0deg,
    rgba(59, 130, 246, 0) 200deg,
    rgba(96, 165, 250, 0.85) 262deg,
    rgba(191, 219, 254, 1) 300deg,
    rgba(96, 165, 250, 0.85) 334deg,
    rgba(59, 130, 246, 0) 360deg
  ) !important;
  animation: ai-orbit-angle 2.6s linear infinite !important;
}

@keyframes ai-orbit-angle {
  from { --ai-angle: 0deg; }
  to   { --ai-angle: 360deg; }
}

/* 横扫光带收窄一点，别糊住文字 */
html body.ai-busy:has(.shell) .shell .ws-box::after {
  background: linear-gradient(
    100deg,
    rgba(59, 130, 246, 0) 38%,
    rgba(96, 165, 250, 0.14) 47%,
    rgba(191, 219, 254, 0.26) 50%,
    rgba(96, 165, 250, 0.14) 53%,
    rgba(59, 130, 246, 0) 62%
  ) !important;
  background-size: 300% 100% !important;
  animation: ai-sweep 2.8s linear infinite !important;
}

/* ---------- 51 底部说明条：真正固定在视口底部，所有页面一致 ----------
   之前用 margin-top:auto 靠父容器高度，窗口一变高就露白。改成 fixed 贴底。 */
html body:has(.shell) .shell .footer-note {
  position: fixed !important;
  left: 22px !important;
  right: 22px !important;
  bottom: 14px !important;
  margin: 0 !important;
  padding: 9px 210px 2px 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: linear-gradient(to top, rgba(8, 13, 22, 0.72), rgba(8, 13, 22, 0)) !important;
  z-index: 30 !important;
  pointer-events: none !important;
}
/* 内容区留出底部空间，别被说明条压住 */
html body:has(.shell) .shell .main-content {
  padding-bottom: 56px !important;
}

/* ---------- 52 底栏不要底板：去掉渐变底，只留一条细分隔线 + 文字 ---------- */
html body:has(.shell) .shell .footer-note {
  background: none !important;
  background-image: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 8px !important;
  padding-bottom: 0 !important;
}
/* 底栏文字比正文更淡，像"页脚"而不是"按钮条" */
html body:has(.shell) .shell .footer-note,
html body:has(.shell) .shell .footer-note * {
  color: rgba(233, 238, 246, 0.5) !important;
}

/* ============================================================================
   53 底栏改回"内容区内贴底"（不是窗口贴底）
   之前 fixed 到窗口底部：会盖住左侧图标条、还被 shell 圆角切掉 → 难看。
   正解：把高度链逐层撑满，底栏用 margin-top:auto 沉到内容区底部。
   ========================================================================= */
html body:has(.shell) .shell .footer-note {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  margin-top: auto !important;
  padding: 10px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: none !important;
  background-image: none !important;
  z-index: auto !important;
  pointer-events: auto !important;
}
html body:has(.shell) .shell .main-content { padding-bottom: 0 !important; }

/* 高度链：workspace → main-content → ws-page → ws-layout 全部撑满 */
html body:has(.shell) .shell > .workspace {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
}
html body:has(.shell) .shell .main-content {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
html body:has(.shell) .shell .ws-page {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
html body:has(.shell) .shell .ws-page > .ws-layout {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

/* ============================================================================
   54 边缘两个箭头按钮：磁吸 + 左右跳动
   磁吸位移由 /autopanes.js 用 rAF 做阻尼跟随（写 transform），
   跳动由这里的 CSS 动画作用在内层 span 上，两者互不冲突。
   ========================================================================= */
html body:has(.shell) .ws-edge-tab {
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
html body:has(.shell) .ws-edge-tab .ws-edge-tab-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 16px;
  line-height: 1;
  will-change: transform;
}

/* 靠近时发光，吸引注意 */
html body:has(.shell) .ws-edge-tab.is-hot {
  background: rgba(59, 130, 246, 0.28) !important;
  border-color: rgba(147, 197, 253, 0.6) !important;
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.45) !important;
}
html body:has(.shell) .ws-edge-tab.is-hot .ws-edge-tab-inner {
  color: #ffffff;
  animation: tab-jiggle 0.42s ease-in-out infinite alternate;
}

@keyframes tab-jiggle {
  from { transform: translateX(-2.5px); }
  to   { transform: translateX(2.5px); }
}

/* 减少动态偏好：只保留发光，不要抖动 */
@media (prefers-reduced-motion: reduce) {
  html body:has(.shell) .ws-edge-tab.is-hot .ws-edge-tab-inner { animation: none !important; }
}

/* ---------- 55 弹出后箭头隐藏（鼠标移开收起时再出现） ---------- */
html body.ws-left-open:has(.shell) .ws-edge-tab-left,
html body.ws-right-open:has(.shell) .ws-edge-tab-right {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.8) !important;
}
html body.ws-left-open:has(.shell) .ws-edge-tab-left .ws-edge-tab-inner,
html body.ws-right-open:has(.shell) .ws-edge-tab-right .ws-edge-tab-inner {
  animation: none !important;
}

/* ============================================================================
   56 会话行重命名按钮（配合 /polish.js）
   ========================================================================= */
html body:has(.shell) .shell .ws-row-wrap {
  position: relative;
  display: block;
}
html body:has(.shell) .shell .ws-row-wrap .ws-row { width: 100%; }

html body:has(.shell) .shell .ws-row-rename {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(16, 23, 35, 0.9);
  color: rgba(233, 238, 246, 0.8);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.14s ease, background-color 0.14s ease, color 0.14s ease;
  z-index: 2;
}
html body:has(.shell) .shell .ws-row-rename svg { width: 12px; height: 12px; }
html body:has(.shell) .shell .ws-row-wrap:hover .ws-row-rename { opacity: 1; }
html body:has(.shell) .shell .ws-row-rename:hover {
  background: rgba(59, 130, 246, 0.85);
  border-color: rgba(147, 197, 253, 0.8);
  color: #fff;
}
/* 悬停时给行文字留出按钮的位置，避免被压住 */
html body:has(.shell) .shell .ws-row-wrap:hover .ws-row { padding-right: 34px !important; }

/* ---------- 57 铅笔按钮：opacity 不做过渡（避免隐藏页过渡不推进导致的"看不见"） ---------- */
html body:has(.shell) .shell .ws-row-rename {
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease !important;
}

/* ---------- 58 模型菜单不显示供应商名（"智谱"） ---------- */
html body:has(.shell) .shell .ws-model-menu .ws-model-item em {
  display: none !important;
}

/* ============================================================================
   59 毛利计算页：把白色大卡改成蓝色玻璃 + 智能分析按钮加常驻流光
   ========================================================================= */

/* ① 主卡（单件毛利 / 毛利率 / 每 100 单净利）：白 86% → 蓝色玻璃 */
html body:has(.shell) .shell .calc-hero {
  background-color: rgba(37, 99, 235, 0.16) !important;
  background-image:
    linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.1) 55%, rgba(30, 64, 175, 0.22) 100%) !important;
  border: 1px solid rgba(147, 197, 253, 0.34) !important;
  border-radius: 16px !important;
  box-shadow:
    0 18px 40px rgba(12, 34, 78, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
  backdrop-filter: blur(16px) saturate(150%) !important;
}
html body:has(.shell) .shell .calc-hero,
html body:has(.shell) .shell .calc-hero * {
  color: #eaf2ff !important;
}
html body:has(.shell) .shell .calc-hero .calc-hero-main > span,
html body:has(.shell) .shell .calc-hero .calc-hero-side span,
html body:has(.shell) .shell .calc-hero small {
  color: rgba(219, 234, 254, 0.66) !important;
}
html body:has(.shell) .shell .calc-hero strong,
html body:has(.shell) .shell .calc-hero b {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(59, 130, 246, 0.45) !important;
}
/* 赚/亏的语义色在蓝底上要提亮 */
html body:has(.shell) .shell .calc-hero .pos { color: #7ef0c4 !important; }
html body:has(.shell) .shell .calc-hero .neg { color: #ffb4a8 !important; }

/* ② 智能分析按钮：常驻流光（重新分析 / 分析中 也保留） */
html body:has(.shell) .shell .calc-ai-btn {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(147, 197, 253, 0.5) !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92) 0%, rgba(59, 130, 246, 0.86) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  isolation: isolate;
}
html body:has(.shell) .shell .calc-ai-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 32%,
    rgba(191, 219, 254, 0.55) 48%,
    rgba(255, 255, 255, 0.75) 52%,
    rgba(191, 219, 254, 0.45) 56%,
    rgba(255, 255, 255, 0) 72%
  );
  background-size: 260% 100%;
  animation: calc-ai-sweep 2.3s linear infinite;
  pointer-events: none;
  z-index: 1;
}
html body:has(.shell) .shell .calc-ai-btn:disabled {
  opacity: 0.85;
}
html body:has(.shell) .shell .calc-ai-btn:disabled::after {
  animation-duration: 1.2s;
}

@keyframes calc-ai-sweep {
  0%   { background-position: -70% 0; }
  100% { background-position: 170% 0; }
}

@media (prefers-reduced-motion: reduce) {
  html body:has(.shell) .shell .calc-ai-btn::after { animation: none !important; }
}

/* ---------- 60 智能分析按钮：底色压过应用的白底（提高特异性） ---------- */
html body:has(.shell) .shell .calc-ai .calc-ai-head .calc-ai-btn,
html body:has(.shell) .shell .calc-ai .calc-ai-btn,
html body:has(.shell) .shell #calc-ai .calc-ai-btn {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  border-color: rgba(147, 197, 253, 0.6) !important;
}

/* ---------- 61 毛利计算页其余浅底块也改蓝（保本售价 / 库存周转 等） ---------- */
html body:has(.shell) .shell .calc-derived,
html body:has(.shell) .shell .calc-adv-stats {
  background-color: rgba(37, 99, 235, 0.14) !important;
  background-image: linear-gradient(135deg, rgba(59, 130, 246, 0.22) 0%, rgba(30, 64, 175, 0.14) 100%) !important;
  border: 1px solid rgba(147, 197, 253, 0.28) !important;
  border-radius: 14px !important;
  -webkit-backdrop-filter: blur(14px) saturate(150%) !important;
  backdrop-filter: blur(14px) saturate(150%) !important;
}
html body:has(.shell) .shell .calc-derived,
html body:has(.shell) .shell .calc-derived *,
html body:has(.shell) .shell .calc-adv-stats,
html body:has(.shell) .shell .calc-adv-stats * {
  color: #e5eeff !important;
}
html body:has(.shell) .shell .calc-derived span,
html body:has(.shell) .shell .calc-adv-stats span,
html body:has(.shell) .shell .calc-derived small {
  color: rgba(219, 234, 254, 0.62) !important;
}
html body:has(.shell) .shell .calc-derived b,
html body:has(.shell) .shell .calc-adv-stats b {
  color: #ffffff !important;
}
html body:has(.shell) .shell .calc-derived .is-neg { color: #ffb4a8 !important; }
html body:has(.shell) .shell .calc-derived > div { border-color: rgba(147, 197, 253, 0.16) !important; }
html body:has(.shell) .shell .calc-adv-stats > div { border-color: rgba(147, 197, 253, 0.16) !important; }

/* ============================================================================
   62 毛利计算页两处"白底白字"：表格 hover 行 + 进阶计算分段标签
   要求：不要蓝色，只要能看清 → 统一用中性半透明白（浅灰玻璃）
   ========================================================================= */

/* ① 表格悬停行：原来 var(--card-2) 在暗色下仍是近白 → 改成淡淡的白 */
html body:has(.shell) .shell .calc-table tbody tr:hover td,
html body:has(.shell) .shell .calc-table tbody tr:focus-within td {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #e9eef6 !important;
}
html body:has(.shell) .shell .calc-table tbody tr:hover td .memo,
html body:has(.shell) .shell .calc-table tbody tr:focus-within td .memo {
  color: rgba(233, 238, 246, 0.6) !important;
}

/* ② 进阶计算的分段标签 */
html body:has(.shell) .shell .calc-tabs {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
}
html body:has(.shell) .shell .calc-tab {
  background: transparent !important;
  border: 0 !important;
  color: rgba(233, 238, 246, 0.66) !important;
  border-radius: 7px !important;
  font-size: 12px !important;
}
html body:has(.shell) .shell .calc-tab:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
html body:has(.shell) .shell .calc-tab.active {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* ============================================================================
   63 智能分析按钮：恢复浅色胶囊，只在边缘跑蓝色流光（去掉整块蓝色和内部扫光）
   ========================================================================= */
html body:has(.shell) .shell .calc-ai .calc-ai-head .calc-ai-btn,
html body:has(.shell) .shell .calc-ai .calc-ai-btn,
html body:has(.shell) .shell #calc-ai .calc-ai-btn {
  background: rgba(255, 255, 255, 0.92) !important;
  background-image: none !important;
  color: #0b1018 !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 999px !important;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  position: relative !important;
  overflow: visible !important;
  isolation: auto;
}
/* 内部扫光去掉 */
html body:has(.shell) .shell .calc-ai-btn::after {
  content: none !important;
  background: none !important;
  animation: none !important;
}
/* 边缘流光：conic 渐变 + mask 只留 1.6px 边 */
html body:has(.shell) .shell .calc-ai-btn::before {
  content: "";
  position: absolute;
  inset: -1.6px;
  border-radius: inherit;
  padding: 1.7px;
  background: conic-gradient(
    from var(--ai-angle, 0deg),
    rgba(59, 130, 246, 0) 0deg,
    rgba(59, 130, 246, 0) 205deg,
    rgba(96, 165, 250, 0.85) 262deg,
    rgba(207, 236, 255, 1) 300deg,
    rgba(96, 165, 250, 0.85) 334deg,
    rgba(59, 130, 246, 0) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: ai-orbit-angle 2.5s linear infinite;
  pointer-events: none;
  z-index: 2;
}
html body:has(.shell) .shell .calc-ai-btn:hover {
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34), 0 0 18px rgba(59, 130, 246, 0.35), inset 0 1px 0 #fff !important;
}
html body:has(.shell) .shell .calc-ai-btn:disabled {
  opacity: 0.92;
}
html body:has(.shell) .shell .calc-ai-btn:disabled::before {
  animation-duration: 1.1s;
}
@media (prefers-reduced-motion: reduce) {
  html body:has(.shell) .shell .calc-ai-btn::before { animation: none !important; }
}

/* ============================================================================
   64 重新定义应用的颜色变量（作用域仅限工作台 .shell）
   应用是浅色主题，--card-2 / --card / --line 等令牌都是近白值；
   我逐条覆盖选择器太慢也容易漏（58 处用到 --card-2）。
   这里直接改令牌本身，等于一次性把"所有次级浅底"换成暗色半透明白。
   ========================================================================= */
html body:has(.shell) .shell {
  --card: rgba(255, 255, 255, 0.05);
  --card-2: rgba(255, 255, 255, 0.07);
  --card-3: rgba(255, 255, 255, 0.10);
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.10);
  --ink: #eef3fb;
  --ink-2: rgba(233, 238, 246, 0.86);
  --ink-3: rgba(233, 238, 246, 0.72);
  --ink-4: rgba(233, 238, 246, 0.6);
  --ink-5: rgba(233, 238, 246, 0.48);
}

/* ---------- 65 普通按钮：白底 → 暗色玻璃（.btn.primary 仍保持浅色实心） ---------- */
html body:has(.shell) .shell .btn:not(.primary):not(.danger) {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #e9eef6 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}
html body:has(.shell) .shell .btn:not(.primary):not(.danger):hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}
html body:has(.shell) .shell .btn:not(.primary):not(.danger) * {
  color: #e9eef6 !important;
}

/* ---------- 66 分析完成后停止流光（按钮文案为「重新分析」时） ---------- */
html body:has(.shell) .shell .calc-ai-btn.is-done::before {
  content: none !important;
  animation: none !important;
  background: none !important;
}
html body:has(.shell) .shell .calc-ai-btn.is-done {
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

/* ============================================================================
   67 表格悬停：白条来自 <tr> 自身（多条规则给 tr:hover 涂了 rgb(247,248,250)），
   不是 td。这里连 tr 一起覆盖，并压过 .table-wrap 那条 !important。
   ========================================================================= */
html body:has(.shell) .shell tbody tr:hover,
html body:has(.shell) .shell tr:hover,
html body:has(.shell) .shell tbody tr:hover td,
html body:has(.shell) .shell tr:hover td,
html body:has(.shell) .shell .table-wrap tbody tr:hover,
html body:has(.shell) .shell .table-wrap tbody tr:hover td {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #e9eef6 !important;
}
html body:has(.shell) .shell tbody tr:hover .memo,
html body:has(.shell) .shell tr:hover .memo {
  color: rgba(233, 238, 246, 0.6) !important;
}
/* 汇总行 / 小计行的底色也一并压暗，避免又冒白 */
html body:has(.shell) .shell .calc-table .calc-sub td,
html body:has(.shell) .shell .calc-table .calc-total td {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #eef3fb !important;
}

/* ============================================================================
   68 资讯页标签（行业动态 / 选品趋势）：显式配色，不依赖主题变量与缓存
   ========================================================================= */
html body:has(.shell) .shell .news-tags .badge,
html body:has(.shell) .shell .news-tags .news-topic,
html body:has(.shell) .shell .badge,
html body:has(.shell) .shell .news-topic {
  background: rgba(255, 255, 255, 0.1) !important;
  background-image: none !important;
  color: #e9eef6 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html body:has(.shell) .shell .news-tags .badge *,
html body:has(.shell) .shell .news-tags .news-topic *,
html body:has(.shell) .shell .badge *,
html body:has(.shell) .shell .news-topic * {
  color: #e9eef6 !important;
}
html body:has(.shell) .shell .news-topic {
  background: rgba(59, 130, 246, 0.18) !important;
  border-color: rgba(147, 197, 253, 0.32) !important;
}

/* ============================================================================
   69 账户页服务卡：加深 + 质感（深蓝黑玻璃 + 顶光 + 细噪点）
   ========================================================================= */
html body:has(.shell) .shell .service-card {
  background-color: #0c1524 !important;
  background-image:
    radial-gradient(560px 340px at 6% -18%, rgba(64, 122, 214, 0.42), rgba(64, 122, 214, 0) 62%),
    radial-gradient(420px 260px at 96% 118%, rgba(24, 72, 140, 0.35), rgba(24, 72, 140, 0) 66%),
    linear-gradient(152deg, #142034 0%, #0b1220 52%, #0e1a2c 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.055'/></svg>") !important;
  background-size: cover, cover, cover, 120px 120px !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 18px !important;
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.52),
    0 2px 10px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4) !important;
  overflow: hidden !important;
}
html body:has(.shell) .shell .service-card .eyebrow {
  color: rgba(233, 238, 246, 0.62) !important;
  letter-spacing: 2.2px !important;
  font-size: 10.5px !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5) !important;
}
html body:has(.shell) .shell .service-card h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 18px rgba(70, 130, 220, 0.45) !important;
  letter-spacing: 0.4px !important;
}
html body:has(.shell) .shell .service-card p {
  color: rgba(219, 234, 254, 0.68) !important;
}

/* ============================================================================
   70 账户页精简：去掉「外观」整块（深色是唯一主题，留选项无意义）+ 去掉「修改登录密码」
   ========================================================================= */
html body:has(.shell) .shell .theme-panel,
html body:has(.shell) .shell .password-panel {
  display: none !important;
}

/* ---------- 71 账户页删掉两块后右侧空了：改单列铺满，避免像坏掉 ---------- */
html body:has(.shell) .shell .account-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 860px !important;
  gap: 18px !important;
}
html body:has(.shell) .shell .account-grid > .panel,
html body:has(.shell) .shell .account-grid > .service-card {
  width: 100% !important;
}
/* 卡片内部两列信息（企业名称/登录账号…）不要被拉太散 */
html body:has(.shell) .shell .info-panel .info-row { max-width: 640px; }

/* ---------- 72 账户页单列居中 ---------- */
html body:has(.shell) .shell .account-grid {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ============================================================================
   73 修正：外观保留，只留「标准」一个选项（隐藏「深色」）；密码面板仍然隐藏
   ========================================================================= */
html body:has(.shell) .shell .theme-panel {
  display: block !important;
}
/* 只留标准：隐藏深色那个选项 */
html body:has(.shell) .shell .theme-panel .theme-choice[data-theme="dark"] {
  display: none !important;
}
/* 唯一选项就当作已选中，视觉上不留"未选状态" */
html body:has(.shell) .shell .theme-panel .theme-choice[data-theme="light"] {
  border-color: rgba(147, 197, 253, 0.55) !important;
  background: rgba(59, 130, 246, 0.16) !important;
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}
html body:has(.shell) .shell .theme-panel .theme-choice[data-theme="light"] b {
  color: #ffffff !important;
}
/* 账号页恢复两列布局（我之前误改成单列） */
html body:has(.shell) .shell .account-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  gap: 22px !important;
}

/* ---------- 74 外观「标准」下面那行说明文字去掉 ---------- */
html body:has(.shell) .shell .theme-panel .theme-choice[data-theme="light"] small {
  display: none !important;
}
/* 只剩一行标题后，卡片高度收紧一点 */
html body:has(.shell) .shell .theme-panel .theme-choice[data-theme="light"] {
  align-items: center !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* ============================================================================
   75 导航栏底部：去掉「企」字块，改成设置按钮 + 菜单（账户与服务 / 退出登录）
   ========================================================================= */
/* 收起态不再画「企」字方块 */
body.ws-nav-collapsed .shell .sidebar .side-bottom::before {
  content: none !important;
  display: none !important;
}
/* 收起态底部整块隐藏（改由设置按钮承担） */
body.ws-nav-collapsed .shell .sidebar .side-bottom {
  display: none !important;
}

/* 设置按钮：贴在侧栏底部 */
html body:has(.shell) .shell .ws-nav-settings {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(233, 238, 246, 0.78);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
  z-index: 8;
}
html body:has(.shell) .shell .ws-nav-settings svg { width: 16px; height: 16px; }
html body:has(.shell) .shell .ws-nav-settings:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateX(-50%) rotate(18deg);
}

/* 展开态时，设置按钮也停在底部左侧（与导航项对齐） */
body:not(.ws-nav-collapsed) .shell .ws-nav-settings {
  left: 14px;
  transform: none;
}
body:not(.ws-nav-collapsed) .shell .ws-nav-settings:hover {
  transform: rotate(18deg);
}

/* 菜单 */
html body:has(.shell) .shell .ws-nav-menu {
  position: absolute;
  left: 8px;
  bottom: 58px;
  min-width: 132px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(16, 23, 35, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: none;
  z-index: 20;
}
html body:has(.shell) .shell .ws-nav-menu.open { display: block; }
html body:has(.shell) .shell .ws-nav-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e9eef6;
  font-size: 12px;
  cursor: pointer;
}
html body:has(.shell) .shell .ws-nav-menu-item:hover { background: rgba(255, 255, 255, 0.1); }
html body:has(.shell) .shell .ws-nav-menu-item.is-danger { color: #ffb4a8; }
html body:has(.shell) .shell .ws-nav-menu-item.is-danger:hover { background: rgba(255, 107, 92, 0.16); }

/* ---------- 76 设置菜单定位修正：收起时从图标条右侧弹出，避免被外框裁掉 ---------- */
body.ws-nav-collapsed .shell .ws-nav-menu {
  left: 54px !important;
  bottom: 12px !important;
}
body:not(.ws-nav-collapsed) .shell .ws-nav-menu {
  left: 14px !important;
  bottom: 52px !important;
}

/* ---------- 77 设置菜单被内容层遮住：抬高侧栏与菜单层级 ---------- */
html body:has(.shell) .shell .sidebar {
  z-index: 14 !important;
}
html body:has(.shell) .shell .ws-nav-menu {
  z-index: 40 !important;
}

/* ---------- 78 设置菜单改为挂 body 的固定定位弹层 ---------- */
html body:has(.shell) .shell .ws-nav-menu,
body .ws-nav-menu {
  position: fixed !important;
  left: auto;
  top: auto;
  z-index: 9999 !important;
}

/* ---------- 79 设置菜单（已挂到 body）完整样式 ---------- */
body > .ws-nav-menu {
  position: fixed !important;
  z-index: 9999 !important;
  min-width: 140px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(16, 23, 35, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: none;
}
body > .ws-nav-menu.open { display: block; }
body > .ws-nav-menu .ws-nav-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e9eef6;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
}
body > .ws-nav-menu .ws-nav-menu-item:hover { background: rgba(255, 255, 255, 0.1); }
body > .ws-nav-menu .ws-nav-menu-item.is-danger { color: #ffb4a8; }
body > .ws-nav-menu .ws-nav-menu-item.is-danger:hover { background: rgba(255, 107, 92, 0.18); }

/* ============================================================================
   80 侧栏底部：账号 + 退出登录 收进「设置」菜单；设置按钮与导航项对齐
   ========================================================================= */
/* 底部整块（头像 / 邮箱 / 退出）全部隐藏，两种状态都隐藏 */
html body:has(.shell) .shell .sidebar .side-bottom {
  display: none !important;
}

/* 展开态：设置按钮做成一行，和导航项左对齐（x=23 / 宽 171 / 图标 x=32） */
body:not(.ws-nav-collapsed) .shell .ws-nav-settings {
  left: 12px !important;
  right: 13px !important;
  width: auto !important;
  transform: none !important;
  justify-content: flex-start !important;
  padding-left: 9px !important;
  border-color: transparent !important;
  background: transparent !important;
}
body:not(.ws-nav-collapsed) .shell .ws-nav-settings:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transform: none !important;
}

/* ============================================================================
   81 报告中心：新建财务报告按钮 → 与「品类调研」同款（暗玻璃胶囊）；步骤卡 3D 倾斜
   ========================================================================= */
html body:has(.shell) .shell .rp-head-actions .btn.primary {
  background: rgba(255, 255, 255, 0.12) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #e9eef6 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
}
html body:has(.shell) .shell .rp-head-actions .btn.primary:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}
html body:has(.shell) .shell .rp-head-actions .btn.primary * { color: #e9eef6 !important; }

/* 3D 倾斜的容器准备 */
html body:has(.shell) .shell .rp-flow > * {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out;
  backface-visibility: hidden;
}
html body:has(.shell) .shell .rp-flow > *:hover {
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  z-index: 2;
  position: relative;
}

/* ============================================================================
   82 工作台三张入门卡：3D 倾斜 + 跟随光斑（比报告卡更生动）
   ========================================================================= */
html body:has(.shell) .shell .ws-starter {
  position: relative !important;
  overflow: hidden !important;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.14s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}
/* 跟随指针的高光 */
html body:has(.shell) .shell .ws-starter::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 34%,
    rgba(255, 255, 255, 0) 62%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
}
html body:has(.shell) .shell .ws-starter.is-tilting::after { opacity: 1; }
html body:has(.shell) .shell .ws-starter.is-tilting {
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(147, 197, 253, 0.45) !important;
  z-index: 3;
}
/* 内容浮起来一点，增强立体感 */
html body:has(.shell) .shell .ws-starter > * {
  position: relative;
  z-index: 2;
  transform: translateZ(10px);
}
/* 减少动态偏好：不要倾斜 */
@media (prefers-reduced-motion: reduce) {
  html body:has(.shell) .shell .ws-starter { transform: none !important; }
  html body:has(.shell) .shell .ws-starter::after { display: none !important; }
}

/* ============================================================================
   83 毛利计算 · 平台模板胶囊：3D 倾斜 + 跟随高光（小控件的力度要小）
   ========================================================================= */
html body:has(.shell) .shell .calc-presets .calc-preset {
  position: relative !important;
  overflow: hidden !important;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.12s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out, background-color 0.16s ease-out;
}
html body:has(.shell) .shell .calc-presets .calc-preset::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    120px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.08) 38%,
    rgba(255, 255, 255, 0) 68%
  );
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
  z-index: 1;
}
html body:has(.shell) .shell .calc-presets .calc-preset.is-tilting::after { opacity: 1; }
html body:has(.shell) .shell .calc-presets .calc-preset.is-tilting {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(147, 197, 253, 0.45) !important;
  z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
  html body:has(.shell) .shell .calc-presets .calc-preset { transform: none !important; }
  html body:has(.shell) .shell .calc-presets .calc-preset::after { display: none !important; }
}

/* ============================================================================
   84 修透视重叠：卡片不能撑出格子
   - 取消 translateZ / scale（由 JS 参数控制），这里再兜一层
   - 取消 hover 抬 z-index（会把邻卡压住）
   ========================================================================= */
html body:has(.shell) .shell .ws-starter.is-tilting {
  z-index: auto !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
html body:has(.shell) .shell .calc-presets .calc-preset.is-tilting {
  z-index: auto !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
html body:has(.shell) .shell .rp-flow > * {
  z-index: auto !important;
}
/* 卡片内容不再 translateZ（会穿出容器） */
html body:has(.shell) .shell .ws-starter > * {
  transform: none !important;
}
/* 允许卡片被父容器裁剪，彻底杜绝边缘溢出 */
html body:has(.shell) .shell .ws-starters {
  overflow: visible;
}

/* ============================================================================
   85 恢复：保留透视重叠（用户要求），并恢复抬升 / 放大 / 立体阴影
   ========================================================================= */
html body:has(.shell) .shell .ws-starter.is-tilting {
  z-index: 3 !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(147, 197, 253, 0.45) !important;
}
html body:has(.shell) .shell .calc-presets .calc-preset.is-tilting {
  z-index: 3 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(147, 197, 253, 0.45) !important;
}
html body:has(.shell) .shell .ws-starter > * {
  transform: translateZ(10px) !important;
}
html body:has(.shell) .shell .rp-flow > * {
  z-index: 2 !important;
}

/* ============================================================================
   86 载入界面：Logo 图标 + 绿点闪烁（原来是浅色底 + 一行字，会闪一下白）
   ========================================================================= */
#app > .loading {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  background-color: #0b1018 !important;
  background-image:
    radial-gradient(760px 560px at 50% 34%, rgba(52, 86, 148, 0.5), rgba(52, 86, 148, 0) 64%),
    radial-gradient(620px 460px at 82% 88%, rgba(30, 90, 130, 0.34), rgba(30, 90, 130, 0) 66%),
    linear-gradient(158deg, #0d1420 0%, #0a0f18 46%, #070a10 100%) !important;
  color: rgba(233, 238, 246, 0.66) !important;
  font-size: 12.5px !important;
  letter-spacing: 0.06em !important;
  z-index: 9999 !important;
}
#app > .loading .loading-mark {
  display: block;
  width: 58px;
  height: 58px;
  position: relative;
  animation: lm-float 2.6s ease-in-out infinite;
}
#app > .loading .loading-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(24, 60, 130, 0.6));
}
/* 绿点闪烁：缩放 + 明暗 */
#app > .loading .loading-mark svg circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: lm-dot 1.15s ease-in-out infinite;
}
/* 背后一圈扩散光晕 */
#app > .loading .loading-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0) 70%);
  animation: lm-halo 2.2s ease-out infinite;
  z-index: -1;
}
#app > .loading .loading-text {
  color: rgba(233, 238, 246, 0.5) !important;
  font-size: 12.5px !important;
  animation: lm-fade 2.4s ease-in-out infinite;
}

@keyframes lm-dot {
  0%, 100% { opacity: 0.25; transform: scale(0.72); }
  50%      { opacity: 1;    transform: scale(1.28); }
}
@keyframes lm-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes lm-halo {
  0%   { transform: scale(0.8); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes lm-fade {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.8; }
}
@media (prefers-reduced-motion: reduce) {
  #app > .loading .loading-mark,
  #app > .loading .loading-mark::after,
  #app > .loading .loading-mark svg circle,
  #app > .loading .loading-text { animation: none !important; }
}

/* ============================================================================
   87 侧栏收起/展开：丝滑过渡
   1) 注册 --ws-nav 为 <length>，使 grid 列宽可过渡
   2) 文字包成 .nav-label，用 max-width + opacity 淡出
   3) 按钮宽度 / 内边距 / 背景一起过渡
   ========================================================================= */
@property --ws-nav {
  syntax: "<length>";
  inherits: true;
  initial-value: 196px;
}

html body:has(.shell) .shell {
  transition: --ws-nav 0.36s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
body.ws-nav-collapsed { --ws-nav: 68px; }

/* 文字标签：可淡出、可收宽 */
html body:has(.shell) .shell .nav-label {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 140px;
  opacity: 1;
  transform: translateX(0);
  transition:
    max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
body.ws-nav-collapsed .shell .nav-label {
  max-width: 0 !important;
  opacity: 0 !important;
  transform: translateX(-6px) !important;
}

/* 导航项本身：宽度/内边距/背景过渡 */
html body:has(.shell) .shell .sidebar .nav-item {
  transition:
    width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.22s ease,
    border-radius 0.3s ease,
    box-shadow 0.22s ease !important;
}
/* 图标同步缩小一点，避免折叠时拥挤 */
html body:has(.shell) .shell .sidebar .nav-item .nav-symbol {
  transition: font-size 0.32s ease, width 0.32s ease, margin 0.32s ease !important;
}
/* 品牌名与 logo 尺寸过渡 */
html body:has(.shell) .shell .sidebar .brand {
  transition: padding 0.32s ease, gap 0.3s ease !important;
}
html body:has(.shell) .shell .sidebar .brand img {
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1), height 0.32s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
/* 侧栏自身的内边距过渡 */
html body:has(.shell) .shell .sidebar {
  transition: padding 0.32s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
/* 箭头旋转过渡（‹ ↔ ›） */
html body:has(.shell) .shell .ws-nav-toggle {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease !important;
}
body.ws-nav-collapsed .shell .ws-nav-toggle { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  html body:has(.shell) .shell,
  html body:has(.shell) .shell .nav-label,
  html body:has(.shell) .shell .sidebar .nav-item,
  html body:has(.shell) .shell .sidebar { transition: none !important; }
}

/* ---------- 88 过渡兜底：直接把 grid 列也做过渡（老浏览器不支持 --ws-nav 动画时用） ---------- */
html body:has(.shell) .shell {
  transition:
    --ws-nav 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    grid-template-columns 0.36s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ============================================================================
   89 侧栏丝滑方案（改写）：让 .sidebar 自己宽度过渡，grid 列用 auto 跟随
   原因：动画 grid-template-columns / 注册变量在某些情况下不生效，宽度过渡最稳。
   ========================================================================= */
html body:has(.shell) .shell {
  grid-template-columns: auto minmax(0, 1fr) !important;
  transition: none !important;
}
html body:has(.shell) .shell .sidebar {
  width: var(--ws-nav, 196px) !important;
  min-width: var(--ws-nav, 196px) !important;
  max-width: var(--ws-nav, 196px) !important;
  flex: 0 0 auto !important;
  transition:
    width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    min-width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.32s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
/* 折叠时侧栏内边距也收一点，视觉更顺 */
body.ws-nav-collapsed .shell .sidebar {
  --ws-nav: 68px;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

/* ---------- 90 修箭头方向：JS 已负责换字，CSS 不要再做 scaleX 翻转（会互相抵消） ---------- */
body.ws-nav-collapsed .shell .ws-nav-toggle,
html body:has(.shell) .shell .ws-nav-toggle {
  transform: none !important;
  transition: color 0.18s ease, opacity 0.18s ease !important;
}

/* ---------- 91 载入图标：去掉蓝色方块底，只留 D 笔画 + 绿点；光晕也去掉 ---------- */
#app > .loading .loading-mark::after {
  content: none !important;
  display: none !important;
}
#app > .loading .loading-mark svg {
  filter: drop-shadow(0 6px 16px rgba(59, 130, 246, 0.35)) !important;
}
#app > .loading .loading-mark {
  width: 56px;
  height: 56px;
}

/* ============================================================================
   92 报告详情页：去掉米白提示块与近白汇总行
   ========================================================================= */
html body:has(.shell) .shell .report-checks {
  background: rgba(255, 196, 92, 0.10) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 196, 92, 0.30) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
html body:has(.shell) .shell .report-checks,
html body:has(.shell) .shell .report-checks * {
  color: #ffe6b8 !important;
}
html body:has(.shell) .shell .report-checks .check-warning {
  color: #ffd58a !important;
}
html body:has(.shell) .shell .report-checks .check-warning::before {
  content: "⚠ ";
  opacity: 0.9;
}

/* 汇总行（净销售额 / 商品毛利 / 经营贡献利润）不要白底 */
html body:has(.shell) .shell .profit-total,
html body:has(.shell) .shell .profit-total td,
html body:has(.shell) .shell .rp-detail table tr.profit-total td {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}

/* ============================================================================
   93 报告详情 · 智能分析按钮与卡片
   ========================================================================= */
html body:has(.shell) .shell .rp-ai-btn {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(147, 197, 253, 0.55) !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  border-radius: 999px !important;
}
html body:has(.shell) .shell .rp-ai-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 32%, rgba(191, 219, 254, 0.5) 48%, rgba(255, 255, 255, 0.7) 52%, rgba(191, 219, 254, 0.4) 56%, transparent 72%);
  background-size: 260% 100%;
  animation: rp-ai-sweep 2.4s linear infinite;
  pointer-events: none;
}
@keyframes rp-ai-sweep {
  0% { background-position: -70% 0; }
  100% { background-position: 170% 0; }
}

html body:has(.shell) .shell .rp-ai-card {
  margin: 14px 0 0;
  padding: 14px 16px 12px;
  border-radius: 16px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  background: linear-gradient(150deg, rgba(37, 99, 235, 0.16) 0%, rgba(30, 64, 175, 0.10) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 28px rgba(0, 0, 0, 0.25);
  color: #e9eef6;
}
html body:has(.shell) .shell .rp-ai-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
html body:has(.shell) .shell .rp-ai-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}
html body:has(.shell) .shell .rp-ai-tag {
  font-size: 10.5px;
  color: rgba(233, 238, 246, 0.55);
}
html body:has(.shell) .shell .rp-ai-line {
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 1.85;
  color: #eaf2ff;
}
html body:has(.shell) .shell .rp-ai-meta {
  margin: 8px 0 0;
  font-size: 10.5px;
  color: rgba(233, 238, 246, 0.45);
}
html body:has(.shell) .shell .rp-ai-error {
  margin: 0;
  font-size: 12px;
  color: #ffb4a8;
}
html body:has(.shell) .shell .rp-ai-skel span {
  display: block;
  height: 10px;
  border-radius: 6px;
  margin-bottom: 7px;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.18), rgba(255,255,255,.08));
  background-size: 200% 100%;
  animation: rp-ai-skel 1.2s linear infinite;
}
html body:has(.shell) .shell .rp-ai-skel span:nth-child(2) { width: 88%; }
html body:has(.shell) .shell .rp-ai-skel span:nth-child(3) { width: 64%; }
@keyframes rp-ai-skel {
  0% { background-position: 120% 0; }
  100% { background-position: -80% 0; }
}

/* ============================================================================
   94 聊天里的图表卡片（配合 web/charts.js）
   ========================================================================= */
html body:has(.shell) .shell .md-chart {
  margin: 10px 0 4px;
  padding: 12px 14px 10px;
  border-radius: 14px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  background: linear-gradient(150deg, rgba(37, 99, 235, 0.12) 0%, rgba(15, 23, 42, 0.35) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
html body:has(.shell) .shell .md-chart .c-title {
  font-size: 12px;
  font-weight: 600;
  color: #eaf2ff;
  margin-bottom: 6px;
}
html body:has(.shell) .shell .md-chart .c-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
html body:has(.shell) .shell .md-chart .c-bar {
  fill: rgba(59, 130, 246, 0.85);
}
html body:has(.shell) .shell .md-chart .c-bar.is-neg {
  fill: rgba(248, 113, 113, 0.85);
}
html body:has(.shell) .shell .md-chart .c-label {
  fill: rgba(233, 238, 246, 0.72);
  font-size: 11px;
}
html body:has(.shell) .shell .md-chart .c-value {
  fill: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
}
html body:has(.shell) .shell .md-chart .c-axis {
  fill: rgba(233, 238, 246, 0.45);
  font-size: 9.5px;
}
html body:has(.shell) .shell .md-chart .c-grid {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
html body:has(.shell) .shell .md-chart .c-zero {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1;
}
html body:has(.shell) .shell .md-chart .c-line {
  fill: none;
  stroke: #34d399;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
html body:has(.shell) .shell .md-chart .c-area {
  fill: rgba(52, 211, 153, 0.14);
}
html body:has(.shell) .shell .md-chart .c-dot {
  fill: #34d399;
  stroke: rgba(9, 16, 26, 0.8);
  stroke-width: 1.5;
}
html body:has(.shell) .shell .md-chart .c-note {
  margin: 8px 0 0;
  font-size: 10.5px;
  color: rgba(233, 238, 246, 0.45);
}
/* 图表解析失败时退回代码块 */
html body:has(.shell) .shell .md-pre {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
}
html body:has(.shell) .shell .md-pre code {
  font-size: 11.5px;
  color: rgba(233, 238, 246, 0.8);
  white-space: pre-wrap;
  word-break: break-all;
}

/* ============================================================================
   95 用户消息气泡：白底浅字 → 深色玻璃 + 浅字
   ========================================================================= */
html body:has(.shell) .shell .ws-conv .from-user .message-text,
html body:has(.shell) .shell .from-user .message-text {
  background: rgba(37, 99, 235, 0.26) !important;
  background-image: linear-gradient(150deg, rgba(59, 130, 246, 0.34) 0%, rgba(30, 64, 175, 0.22) 100%) !important;
  color: #f2f7ff !important;
  border: 1px solid rgba(147, 197, 253, 0.35) !important;
  border-radius: 14px 14px 4px 14px !important;
  box-shadow: 0 8px 20px rgba(12, 34, 78, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}
/* 气泡里的行内代码 / 链接在蓝底上也要看得清 */
html body:has(.shell) .shell .from-user .message-text code {
  background: rgba(9, 16, 26, 0.45) !important;
  color: #e8f1ff !important;
}
html body:has(.shell) .shell .from-user .message-text a {
  color: #bfdbfe !important;
}
/* 用户头像也别用白底浅字 */
html body:has(.shell) .shell .ws-conv .from-user .message-avatar,
html body:has(.shell) .shell .from-user .message-avatar {
  background: rgba(37, 99, 235, 0.55) !important;
  color: #ffffff !important;
  border: 1px solid rgba(147, 197, 253, 0.4) !important;
}
/* 辅助：消息里的时间/名字在深色底上保持可读 */
html body:has(.shell) .shell .message-meta span {
  color: rgba(233, 238, 246, 0.45) !important;
}

/* ============================================================================
   96 用户气泡改成"和附件卡一样的色调"：中性深玻璃，不要蓝色
   ========================================================================= */
html body:has(.shell) .shell .ws-conv .from-user .message-text,
html body:has(.shell) .shell .from-user .message-text {
  background: rgba(255, 255, 255, 0.06) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  color: #e9eef6 !important;
  box-shadow: none !important;
}
html body:has(.shell) .shell .from-user .message-text code {
  background: rgba(9, 16, 26, 0.5) !important;
  color: #e9eef6 !important;
}
html body:has(.shell) .shell .from-user .message-text a {
  color: #93c5fd !important;
}
/* 头像同色调，别再用蓝底 */
html body:has(.shell) .shell .ws-conv .from-user .message-avatar,
html body:has(.shell) .shell .from-user .message-avatar {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #e9eef6 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

/* ============================================================================
   104 服务期/系统提示条（.notice）：浅米底 + 浅字 → 深琥珀玻璃 + 亮字
   原样式：background #fbf4e4 / border #f1e4c3 / color #a0803c（浅色主题）
   深色背景下会变成"白条看不清字"，统一改成可读的深色提示条
   ========================================================================= */
html body:has(.shell) .shell .notice,
html body:has(.shell) .shell .banner,
html body:has(.shell) .shell .alert {
  background: rgba(245, 158, 11, 0.12) !important;
  background-image: none !important;
  border: 1px solid rgba(245, 158, 11, 0.32) !important;
  color: #ffe6b8 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}
/* 提示条里的链接也要看得见 */
html body:has(.shell) .shell .notice a,
html body:has(.shell) .shell .banner a,
html body:has(.shell) .shell .alert a {
  color: #fcd34d !important;
  text-decoration: underline !important;
}
/* 状态色变体：如果是错误/成功提示，保持语义色 */
html body:has(.shell) .shell .notice.is-error,
html body:has(.shell) .shell .alert.is-error {
  background: rgba(248, 113, 113, 0.14) !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
  color: #fecaca !important;
}

/* ============================================================================
   105 会话列表行（.ws-row）：glass.css 残留的浅色底会把文字盖住
   —— hover 原来是 rgba(255,255,255,.28)，选中原来是 .86（几乎纯白）
   深色界面下必须改成低透明度玻璃底，选中用蓝色描边区分
   ========================================================================= */
html body:has(.shell) .shell .ws-row {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: rgba(233, 238, 246, 0.78) !important;
}
html body:has(.shell) .shell .ws-row:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  color: #e9eef6 !important;
}
html body:has(.shell) .shell .ws-row.on {
  background: rgba(59, 130, 246, 0.16) !important;
  border-color: rgba(147, 197, 253, 0.38) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  color: #e9eef6 !important;
}
html body:has(.shell) .shell .ws-row.on .ws-row-title { color: #ffffff !important; }
html body:has(.shell) .shell .ws-row-id,
html body:has(.shell) .shell .ws-row-meta { color: rgba(233, 238, 246, 0.45) !important; }
html body:has(.shell) .shell .ws-row.on .ws-row-id,
html body:has(.shell) .shell .ws-row.on .ws-row-meta { color: rgba(233, 238, 246, 0.72) !important; }

/* 分组标题（今天 / 昨天）与右侧计数气泡 */
html body:has(.shell) .shell .ws-group-head { color: rgba(233, 238, 246, 0.55) !important; }
html body:has(.shell) .shell .ws-group-head i { background: rgba(96, 165, 250, 0.95) !important; }
html body:has(.shell) .shell .ws-group-head b {
  background: rgba(255, 255, 255, 0.10) !important;
  color: rgba(233, 238, 246, 0.75) !important;
}


/* ============================================================================
   106 左右两栏改为「从聊天框后面推出来」
   原实现：收起 display:none → 展开 fixed + 0.14s 淡入，观感是"啪"地出现。
   新实现：两栏留在栅格里，收起时宽度 0、内容被聊天面板挡住；
           展开时栅格列宽做过渡，聊天面板右移、两栏从缝里滑出来。
   ========================================================================= */
body.ws-panes-auto .shell .ws-layout {
  transition: grid-template-columns 360ms cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

/* 收起态：占位但不显示（关键：不能用 display:none，否则无法过渡） */
body.ws-panes-auto .shell .ws-list,
body.ws-panes-auto .shell .ws-detail {
  display: flex !important;
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  /* 不要写死 width:0 —— 交给栅格列（0）带动，否则收起时无法过渡 */
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  border-width: 0 !important;
  border-radius: 20px !important;
  opacity: 0;
  overflow: hidden !important;
  pointer-events: none !important;
  transform: translateX(26px);
  transition: transform 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 200ms ease !important;
  z-index: 1 !important;
  animation: none !important;
  box-shadow: none !important;
}

/* 展开态：由栅格列宽带动，内容同时从聊天面板边缘滑出 */
body.ws-panes-auto.ws-left-open .shell .ws-list,
body.ws-panes-auto.ws-right-open .shell .ws-detail {
  position: relative !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 14px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  opacity: 1;
  overflow: hidden !important;
  pointer-events: auto !important;
  transform: translateX(0);
  transition: transform 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 220ms ease 70ms !important;
  z-index: 1 !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45) !important;
  animation: none !important;
}
body.ws-panes-auto.ws-left-open .shell .ws-list { transform-origin: right center; }
body.ws-panes-auto.ws-right-open .shell .ws-detail { transform-origin: left center; transform: translateX(0); }
/* 右侧面板收起时向反方向滑 */
body.ws-panes-auto .shell .ws-detail { transform: translateX(-26px); }
body.ws-panes-auto.ws-right-open .shell .ws-detail { transform: translateX(0); }

/* 聊天面板盖在两栏之上：两栏"从聊天框后面"出来的关键 */
body.ws-panes-auto .shell .ws-layout > .ws-conv {
  position: relative !important;
  z-index: 3 !important;
}

/* 尊重系统的「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  body.ws-panes-auto .shell .ws-layout { transition: none !important; }
  body.ws-panes-auto .shell .ws-list,
  body.ws-panes-auto .shell .ws-detail { transition: none !important; transform: none !important; }
}

/* 面板自身的淡入稍慢于位移，视觉上更像"推出来"而不是"淡出来" */
body.ws-panes-auto.ws-left-open .shell .ws-list,
body.ws-panes-auto.ws-right-open .shell .ws-detail {
  transition: transform 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 260ms ease 40ms !important;
}

/* ============================================================================
   108 语义色对比度修复（负数为深红 #b4463c，在深底上只有 3.5:1，看不清）
   —— 统一把「负数/亏损/错误」提亮到 #ff8f7a 一档，深底可读
   ========================================================================= */
html body:has(.shell) .shell {
  --bad: #ff8f7a;
}

/* 显式覆盖：这些类历史上写死了深红 */
html body:has(.shell) .shell .is-neg,
html body:has(.shell) .shell .negative,
html body:has(.shell) .shell .neg,
html body:has(.shell) .shell .calc-ai-err,
html body:has(.shell) .shell .rp-metrics dd.negative,
html body:has(.shell) .shell .rp-metrics dd.is-neg,
html body:has(.shell) .shell .report-metric.negative,
html body:has(.shell) .shell .ws-kv b.neg {
  color: #ff8f7a !important;
}

/* 图表里的负值条：填充色也要亮一点，否则在深底上看不见 */
html body:has(.shell) .shell .md-chart .c-bar.is-neg {
  fill: rgba(255, 143, 122, 0.85) !important;
}

/* 深绿（--ok #157f65）在深底上也偏暗，提亮 */
html body:has(.shell) .shell .is-ok,
html body:has(.shell) .shell .positive,
html body:has(.shell) .shell .rp-metrics dd.positive,
html body:has(.shell) .shell .calc-derived .is-pos {
  color: #6ee7b7 !important;
}

/* 计算页的提示文字（深黄 #96690f）同样提亮 */
html body:has(.shell) .shell .calc-ai-stale {
  color: #fbbf24 !important;
}

/* ============================================================================
   109 下拉框（<select>）：option 默认白底 + 浅色字 → 展开后看不见
   dark.css 里的深色 option 规则挂在 html[data-theme="dark"] 下，
   但本主题不设 data-theme，所以永远不生效。这里强制深色 + color-scheme。
   ========================================================================= */
html body:has(.shell) .shell select,
html body:has(.shell) .shell .field select,
html body:has(.shell) .shell .calc-field select,
html body:has(.shell) .shell .ws-mode select {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #e9eef6 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color-scheme: dark;          /* 关键：让原生下拉弹层也用深色 */
}

/* 下拉项用「面板合成色」#2B323D（12% 白玻璃叠在深蓝底上的实际观感），
   不再用接近纯黑的 #131b26 */
html body:has(.shell) .shell select option,
html body:has(.shell) .shell select optgroup {
  background-color: #2b323d !important;
  color: #eef3fa !important;
}

html body:has(.shell) .shell select option:checked {
  background-color: #3d5170 !important;
  color: #ffffff !important;
}

/* 深色下拉箭头（默认箭头在白底上才明显） */
html body:has(.shell) .shell select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(233,238,246,.75) 50%),
                    linear-gradient(135deg, rgba(233,238,246,.75) 50%, transparent 50%) !important;
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px) !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 28px !important;
}

/* ============================================================================
   110 后台「AI 与用量」的模块统计块：theme.css 写死浅底 #fafbfd，
   而全局文字是浅色 → 白底浅字（对比度 1.13，等于看不见）
   ========================================================================= */
html body:has(.shell) .shell .ai-module-stats > div {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
}
html body:has(.shell) .shell .ai-module-stats dt {
  color: rgba(233, 238, 246, 0.62) !important;
}
html body:has(.shell) .shell .ai-module-stats dd {
  color: #ffffff !important;
}

/* 同源的浅底块：文案生成结果区（.copy-content）也写死了 #fafbfd */
html body:has(.shell) .shell .copy-content {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* 「AI 已就绪」提示：实际底色被 §104 统一成深色玻璃，所以文字要用亮绿 */
html body:has(.shell) .shell .notice.ai-ready,
html body:has(.shell) .shell .notice.ai-ready * {
  color: #86efac !important;
}
html body:has(.shell) .shell .notice.ai-ready {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.32) !important;
}

/* ============================================================================
   111 下拉框改成「玻璃蓝」弹层（Chrome 135+ 的 appearance: base-select）
   原生 <select> 的弹层由系统绘制，CSS 改不动；这里启用可定制的 picker，
   把弹层做成半透明深蓝玻璃，和整体风格一致。
   ========================================================================= */
html body:has(.shell) .shell select {
  appearance: base-select;
  -webkit-appearance: base-select;
  background: rgba(96, 165, 250, 0.10) !important;
  border: 1px solid rgba(120, 170, 255, 0.28) !important;
  color: #e9eef6 !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  background-image: none !important;      /* 取消旧的自绘箭头，改用 ::picker-icon */
}

html body:has(.shell) .shell select::picker-icon {
  color: rgba(233, 238, 246, 0.78);
  margin-left: 8px;
}

/* 弹层本体：半透明深蓝玻璃 */
html body:has(.shell) .shell select::picker(select) {
  appearance: base-select;
  background: rgba(26, 42, 68, 0.86) !important;
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(120, 170, 255, 0.30) !important;
  border-radius: 14px !important;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
  padding: 6px !important;
  margin-top: 6px;
  color: #eaf1fb !important;
}

/* 每个选项 */
html body:has(.shell) .shell select option {
  background: transparent !important;
  color: #eaf1fb !important;
  border-radius: 9px !important;
  padding: 8px 10px !important;
}

html body:has(.shell) .shell select option:hover,
html body:has(.shell) .shell select option:focus {
  background: rgba(96, 165, 250, 0.18) !important;
}

html body:has(.shell) .shell select option:checked {
  background: rgba(96, 165, 250, 0.30) !important;
  color: #ffffff !important;
}
