/* =============================================================
 * V9 水晶棱镜 · 高保真皮肤（参考稿 public/design/v09.png）
 * ------------------------------------------------------------
 * 设计立论：棱镜分光穿过玻璃
 *   1) 底层：全光谱斜向折光带（粉/蓝/青绿/暖黄/紫）+ pic 生成的棱镜光底图
 *   2) 中层：半透明白玻璃（顶栏 / 侧栏 / 卡片），backdrop-filter 让折光透进来
 *   3) 上层：双语信息层级（英文粗 + 中文细）、胶囊控件、46px 紧凑行高
 * 实现要点：折光带与底图都挂在 .app-shell 的 background 上（元素背景永远在
 * 子内容之下）；不使用 mix-blend-mode（它会强制整个外壳成为混合组，把白卡乘掉）。
 * ============================================================= */

/* ------------------------------------------------------------
 * 0. 页面底色
 * ------------------------------------------------------------ */
html[data-theme="v09"] body {
  background-color: #E9EFFB;
  background-image:
    radial-gradient(1200px 640px at 10% -8%, rgba(232,220,255,.85) 0%, rgba(232,220,255,0) 62%),
    radial-gradient(1000px 560px at 94% 0%, rgba(210,232,255,.85) 0%, rgba(210,232,255,0) 64%);
}
html[data-theme="v09"] #fx-stage { display: none; }
html[data-theme="v09"] .v9-bg { display: none; }

/* ------------------------------------------------------------
 * 1. 外壳：折光背景 + 左栏 + 主列
 * ------------------------------------------------------------ */
html[data-theme="v09"] .app-shell {
  position: relative;
  display: grid;
  /* 参考稿结构：顶栏是「通栏磨砂带」，左栏在其下方左侧浮动，主列在右。
     因此用 grid-area 把顶栏提到第一行横跨两列；.main-col 用 display:contents
     展平，让 .topbar / #page 成为 .app-shell 的直接网格项（不改 HTML）。 */
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "top top"
    "side main";
  column-gap: 16px; row-gap: 14px;
  align-items: start;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 16px 22px;
  min-height: 100vh;
  border-radius: 0;
  background-color: #E8EEFB;
  /* 参考稿配方 = 粉彩底 + 几道「锐而亮」的棱镜光谱条纹。
     实测（tools/img-stat.mjs）：参考 meanChroma 31.5 / maxChroma 247，
     空间网格上大部分格子均值只有 20~28，最彩的格子 48~56，峰值 230~247。
     所以：铺色层必须很淡，峰值必须由极窄的高饱和条纹提供。 */
  background-image:
    /* 0 顶部横向淡彩薄雾 */
    linear-gradient(178deg,
      rgba(202,182,255,.27) 0%,
      rgba(176,214,255,.20) 5%,
      rgba(255,198,228,.14) 9%,
      rgba(178,236,238,.16) 13%,
      rgba(255,255,255,0) 20%),
    /* 1 主棱镜线：宽度 <0.6%、核心用不透明纯色，才叠得出 >200 的色度峰 */
    linear-gradient(112deg,
      rgba(255,255,255,0) 46.55%,
      rgb(214,110,255) 46.80%,
      rgb(0,196,255) 47.15%,
      rgba(255,255,255,0) 47.55%),
    /* 2 次级棱镜线（稍宽稍淡，负责"彩虹"的过渡） */
    linear-gradient(112deg,
      rgba(255,255,255,0) 36.6%,
      rgb(96,180,255) 37.2%,
      rgba(180,150,255,.70) 37.9%,
      rgba(255,255,255,0) 38.8%),
    /* 3 右中热点核心 / 4 外晕 */
    radial-gradient(520px 250px at 79% 57%, rgba(120,196,255,.86), rgba(146,182,255,.28) 46%, rgba(150,180,255,0) 74%),
    radial-gradient(1100px 360px at 78% 58%, rgba(150,208,255,.34), rgba(190,170,255,.12) 46%, rgba(190,170,255,0) 70%),
    /* 5 主光谱带：只做铺底，alpha 全面压下来（否则 >30 覆盖度会一直超标） */
    linear-gradient(112deg,
      rgba(255,255,255,0) 33%,
      rgba(148,204,255,.34) 38.5%,
      rgba(212,184,255,.18) 42%,
      rgba(255,214,236,.14) 46%,
      rgba(150,232,224,.22) 50%,
      rgba(156,208,255,.28) 55%,
      rgba(255,255,255,0) 61%),
    /* 6 交叉柔光 */
    linear-gradient(60deg,
      rgba(255,255,255,0) 42%,
      rgba(186,214,255,.10) 56%,
      rgba(255,206,230,.05) 64%,
      rgba(186,232,255,.08) 74%,
      rgba(255,255,255,0) 90%),
    /* 7 右上冷青 / 8 左下柔光 */
    radial-gradient(1100px 620px at 88% -12%, rgba(176,212,255,.24), rgba(176,212,255,0) 62%),
    radial-gradient(900px 540px at 4% 106%, rgba(198,232,255,.18), rgba(198,232,255,0) 60%),
    /* 9 底图白纱（.40 → .46，把 pic 底图的中色度继续收） */
    linear-gradient(0deg, rgba(232,238,251,.52), rgba(232,238,251,.52)),
    url("/design/assets/v09/bg-prism.png");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  animation: v9-drift 34s ease-in-out infinite alternate;
}
@keyframes v9-drift {
  from { background-position: 48.6% 49%; }
  to   { background-position: 51.4% 51%; }
}
html[data-theme="v09"] .main-col {
  display: contents;
}
html[data-theme="v09"] .page-shell-safe, html[data-theme="v09"] .page { min-width: 0; max-width: 100%; }
html[data-theme="v09"] main#page { grid-area: main; }
html[data-theme="v09"] .kpi-row, html[data-theme="v09"] .kpi { min-width: 0; }

/* ---- 侧栏（玻璃） ---- */
html[data-theme="v09"] .side {
  grid-area: side;
  position: sticky; top: 68px;
  height: calc(100vh - 82px); min-height: 460px;
  display: flex; flex-direction: column;
  padding: 14px 10px 12px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.08) 55%, rgba(255,255,255,.03)),
    linear-gradient(112deg, rgba(255,255,255,0) 6%, rgba(150,200,255,.42) 26%, rgba(196,168,255,.34) 44%, rgba(150,232,224,.30) 62%, rgba(255,206,232,.26) 78%, rgba(255,255,255,0) 96%),
    radial-gradient(120% 60% at 0% 100%, rgba(150,200,255,.44), rgba(150,200,255,0) 62%);
  backdrop-filter: blur(15px) saturate(210%) brightness(1.03);
  -webkit-backdrop-filter: blur(15px) saturate(210%) brightness(1.03);
  border: 1px solid rgba(255,255,255,.98);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95),
              0 0 0 1px rgba(88,116,170,.07),
              0 2px 3px -1px rgba(30,45,90,.09),
              0 26px 60px -38px rgba(60,86,150,.55);
  overflow: hidden;
}
html[data-theme="v09"] .side-top { padding: 2px 4px 12px; }
html[data-theme="v09"] .scope-pill {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px; border-radius: 12px;
  background: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.95);
  font-size: 12.5px; color: #414B66; font-weight: 600;
  box-shadow: 0 1px 2px rgba(24,32,52,.05);
}
html[data-theme="v09"] .scope-pill .ic { width: 16px; height: 16px; color: #3D6BEA; }
html[data-theme="v09"] .scope-pill .caret {
  margin-left: auto; font-style: normal; font-size: 0;
  width: 6px; height: 6px; flex: 0 0 6px; margin-top: -3px; margin-right: 3px;
  border-right: 1.5px solid #9AA4BC; border-bottom: 1.5px solid #9AA4BC;
  transform: rotate(45deg);
}

/* min-height:0 必须写：否则 flex 子项按内容高撑开，会把 .side-foot 顶出面板造成重叠 */
html[data-theme="v09"] .side-nav { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 2px 2px 6px; }
html[data-theme="v09"] .side-nav::-webkit-scrollbar { width: 5px; }
html[data-theme="v09"] .side-nav::-webkit-scrollbar-thumb { background: rgba(160,176,210,.45); border-radius: 5px; }
html[data-theme="v09"] .side-group { margin-bottom: 6px; }
html[data-theme="v09"] .side-cap {
  display: flex; align-items: baseline; gap: 6px;
  padding: 8px 10px 5px; font-size: 10px; letter-spacing: .09em; text-transform: uppercase;
  color: #8994AC; font-weight: 700;
}
html[data-theme="v09"] .side-cap i { font-style: normal; font-size: 10px; letter-spacing: 0; color: #AEB8CC; font-weight: 600; }
html[data-theme="v09"] .side-list { display: flex; flex-direction: column; gap: 2px; }
html[data-theme="v09"] .side-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px; border-radius: 11px;
  color: #3D4864; text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
html[data-theme="v09"] .side-item .si-ic { display: grid; place-items: center; width: 18px; height: 18px; color: #7E89A6; }
html[data-theme="v09"] .side-item .ic { width: 18px; height: 18px; }
html[data-theme="v09"] .side-item .si-tx {
  display: flex; flex-direction: row; align-items: baseline; gap: 4px; line-height: 1.2;
  min-width: 0; flex: 1 1 auto; overflow: hidden;
}
html[data-theme="v09"] .side-item .si-tx b {
  font-size: 12px; font-weight: 700; color: inherit; white-space: nowrap;
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
html[data-theme="v09"] .side-item .si-tx i { font-style: normal; font-size: 11.5px; color: #6B7794; white-space: nowrap; }
html[data-theme="v09"] .side-item:hover { background: rgba(255,255,255,.72); color: #2C3550; transform: translateX(1px); }
html[data-theme="v09"] .side-item:hover .si-ic { color: #3D6BEA; }
/* 选中：参考稿为实色蓝渐变 + 白字 */
html[data-theme="v09"] .side-item.on {
  background: linear-gradient(180deg, #5B8CEF, #4A79E8);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 20px -14px rgba(61,107,234,.95);
}
html[data-theme="v09"] .side-item.on .si-ic { color: #FFFFFF; }
html[data-theme="v09"] .side-item.on .si-tx i { color: rgba(255,255,255,.78); }

/* 发光地球（参考稿约 130px 直径，压在侧栏最底部，底部被面板裁掉一点） */
html[data-theme="v09"] .side-foot { position: relative; display: flex; flex-direction: column-reverse; padding-top: 0; }
html[data-theme="v09"] .side-globe {
  position: relative; height: 144px; margin: -4px -12px -8px;
  display: grid; place-items: end start; padding-left: 4px; overflow: visible;
}
/* 地球仪自己发光（棱镜线收窄后它背后的彩变少了） */
html[data-theme="v09"] .side-globe::before {
  content: ""; position: absolute; inset: 8% 6% 0; pointer-events: none;
  background: radial-gradient(62% 62% at 46% 62%, rgba(96,196,255,.34), rgba(96,196,255,0) 72%);
  mix-blend-mode: screen;
}
html[data-theme="v09"] .side-globe img {
  width: 140px; max-width: none; height: auto; opacity: .9;
  filter: saturate(1.65) brightness(1.06) contrast(1.05) drop-shadow(0 0 28px rgba(126,186,255,.7));
  animation: v9-globe 12s ease-in-out infinite alternate;
}
@keyframes v9-globe {
  from { transform: translate(3px, 6px) rotate(-2deg); }
  to   { transform: translate(-2px, 1px) rotate(2deg); }
}
html[data-theme="v09"] .side-hint { display: none; /* 参考稿侧栏底部只有地球，没有水印文字 */
  text-align: center; font-size: 9.5px; letter-spacing: .14em; color: #AEB8CC;
  padding-bottom: 6px; line-height: 1.6;
}

/* ---- 顶栏（通栏磨砂带：参考稿顶栏贴满左右两边，不是内缩的浮动卡） ---- */
html[data-theme="v09"] .topbar {
  grid-area: top;
  position: sticky; top: 0; z-index: 40;
  height: 60px; margin: 0 -16px; padding: 0 16px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.72);
  /* 参考稿顶栏是"带色玻璃带"不是白纱：白 .56 → .34，饱和 132% → 165%，让底彩透回来 */
  background:
    linear-gradient(96deg, rgba(198,206,255,.10), rgba(255,214,240,.07) 52%, rgba(186,232,255,.10)),
    rgba(255, 255, 255, .24);
  backdrop-filter: blur(14px) saturate(190%);
  -webkit-backdrop-filter: blur(14px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9),
              0 12px 28px -26px rgba(50,78,140,.55);
  display: flex; align-items: center; gap: 14px;
}
html[data-theme="v09"] .brand { gap: 10px; position: relative; }
/* 参考稿品牌位 = 3D 玻璃立方体（不是扁平方块） */
html[data-theme="v09"] .brand .logo {
  width: 34px; height: 34px; border-radius: 0; font-size: 0; line-height: 0; color: transparent;
  background: url("/design/assets/v09/cube.svg") center / contain no-repeat;
  box-shadow: none; border: 0;
  filter: drop-shadow(0 5px 10px rgba(84,116,226,.34));
}
html[data-theme="v09"] .brand-txt { display: flex; flex-direction: column; line-height: 1.12; }
html[data-theme="v09"] .brand-txt b { font-size: 14.5px; font-weight: 800; color: #182034; letter-spacing: -.3px; }
html[data-theme="v09"] .brand-txt i { font-size: 9.5px; font-style: normal; color: #4B5A80; letter-spacing: .01em; margin-top: 1px; font-family: var(--f); font-weight: 600; }
/* 品牌与导航之间的竖细线（参考稿真实存在） */
html[data-theme="v09"] .brand::after {
  content: ''; width: 1px; height: 26px; margin-left: 11px;
  background: linear-gradient(180deg, rgba(120,150,210,0), rgba(120,150,210,.26) 24%, rgba(120,150,210,.26) 76%, rgba(120,150,210,0));
}

html[data-theme="v09"] .nav { display: flex; align-items: center; gap: 0; margin-left: 4px; }
html[data-theme="v09"] .nav-group { position: relative; }
/* 导航项之间的竖细线（参考稿 Orders | Inventory | …） */
html[data-theme="v09"] .nav-group + .nav-group { margin-left: 6px; }
html[data-theme="v09"] .nav-group + .nav-group::before {
  content: ''; position: absolute; left: -3.5px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 26px; pointer-events: none;
  background: linear-gradient(180deg, rgba(120,150,210,0), rgba(120,150,210,.24) 24%, rgba(120,150,210,.24) 76%, rgba(120,150,210,0));
}
html[data-theme="v09"] .nav-btn {
  display: flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 10px; border-radius: 12px;
  color: #1B2340; background: transparent; border: 1px solid transparent;
  font-size: 12.5px;
  transition: background .18s, color .18s, border-color .18s;
}
html[data-theme="v09"] .nav-btn .ic { width: 17px; height: 17px; color: #7C87A2; }
html[data-theme="v09"] .nav-btn .nb-tx { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
html[data-theme="v09"] .nav-btn .nb-tx b { font-size: 12.5px; font-weight: 700; color: inherit; }
html[data-theme="v09"] .nav-btn .nb-tx i { font-style: normal; font-size: 10px; color: #64718F; font-weight: 500; }
html[data-theme="v09"] .nav-btn .caret {
  font-style: normal; font-size: 0; width: 6px; height: 6px; flex: 0 0 6px;
  margin-left: 3px; margin-top: -2px;
  border-right: 1.5px solid #A7B0C6; border-bottom: 1.5px solid #A7B0C6;
  transform: rotate(45deg);
}
html[data-theme="v09"] .nav-btn:hover { background: rgba(255,255,255,.72); color: #2C3550; }
html[data-theme="v09"] .nav-btn:hover .ic { color: #5A7CE0; }
html[data-theme="v09"] .nav-group.active > .nav-btn,
html[data-theme="v09"] .nav-group.open > .nav-btn {
  background: linear-gradient(180deg, #EAF2FF, #D8E7FF);
  color: #2F5BD6; border-color: rgba(206,222,252,.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}
html[data-theme="v09"] .nav-group.active > .nav-btn .ic,
html[data-theme="v09"] .nav-group.open > .nav-btn .ic { color: #3D6BEA; }
html[data-theme="v09"] .nav-group.active > .nav-btn .nb-tx i,
html[data-theme="v09"] .nav-group.open > .nav-btn .nb-tx i { color: #7A96D8; }

html[data-theme="v09"] .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* 导航区与工具区之间的长竖线（参考稿） */
html[data-theme="v09"] .topbar-right::before {
  content: ''; width: 1px; height: 32px; margin-right: 4px; flex: 0 0 1px;
  background: linear-gradient(180deg, rgba(120,150,210,0), rgba(120,150,210,.28) 22%, rgba(120,150,210,.28) 78%, rgba(120,150,210,0));
}
html[data-theme="v09"] .ib2 {
  position: relative; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; color: #64708D;
  border: 1px solid transparent; background: transparent;
  transition: background .18s, color .18s, border-color .18s;
}
html[data-theme="v09"] .ib2 .ic { width: 20px; height: 20px; }
html[data-theme="v09"] .ib2:hover { background: rgba(255,255,255,.8); color: #3D6BEA; border-color: rgba(255,255,255,.9); }
html[data-theme="v09"] .ib2.has-dot::after {
  content: ''; position: absolute; top: 7px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #F0483E;
}
html[data-theme="v09"] .clock { display: none; }
/* 参考稿右侧只有「搜索 / 铃铛 / 头像 ˅」——去掉角色胶囊与本名文字，减轻重量。
   OWNER / MANAGER / STAFF 保留为 9px 灰字，点开头像即可切端。 */
html[data-theme="v09"] .role-pill { display: none; }
html[data-theme="v09"] .me {
  display: flex; align-items: center; gap: 7px;
  padding: 2px 2px 2px 2px; border-radius: 999px; border: 1px solid transparent;
}
html[data-theme="v09"] .me:hover { background: rgba(255,255,255,.8); border-color: rgba(255,255,255,.9); }
html[data-theme="v09"] .me .av { width: 32px; height: 32px; font-size: 11px; border-width: 2px; }
html[data-theme="v09"] .me-txt { display: flex; flex-direction: column; line-height: 1.18; }
html[data-theme="v09"] .me-txt b { display: none; }
html[data-theme="v09"] .me-txt i { font-size: 9px; font-style: normal; color: #9AA4BC; letter-spacing: .1em; font-weight: 700; }
html[data-theme="v09"] .me::after {
  content: ''; width: 6px; height: 6px; flex: 0 0 6px; margin-right: 4px; margin-top: -3px;
  border-right: 1.6px solid #6C7793; border-bottom: 1.6px solid #6C7793;
  transform: rotate(45deg);
}
html[data-theme="v09"] .topbar:has(.role-pill.r-boss) .me .av { box-shadow: 0 0 0 2px rgba(61,107,234,.45), 0 2px 6px -2px rgba(60,86,150,.4); }
html[data-theme="v09"] .topbar:has(.role-pill.r-manager) .me .av { box-shadow: 0 0 0 2px rgba(107,75,240,.4), 0 2px 6px -2px rgba(60,86,150,.4); }
html[data-theme="v09"] .topbar:has(.role-pill.r-staff) .me .av { box-shadow: 0 0 0 2px rgba(21,160,90,.35), 0 2px 6px -2px rgba(60,86,150,.4); }

/* 二级菜单 */
html[data-theme="v09"] .submenu {
  top: 56px; border-radius: 14px; border-color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow: 0 26px 60px -34px rgba(60,86,150,.6);
  padding: 6px;
}
html[data-theme="v09"] .sub-item { border-radius: 10px; padding: 8px 10px; }
html[data-theme="v09"] .sub-item b { font-size: 12px; color: #2C3550; }
html[data-theme="v09"] .sub-item span { font-size: 10.5px; color: #9AA4BC; }
html[data-theme="v09"] .sub-item:hover { background: rgba(243,246,253,.95); }

/* ------------------------------------------------------------
 * 2. 页头
 * ------------------------------------------------------------ */
html[data-theme="v09"] .page { padding: 0; position: relative; }
html[data-theme="v09"] .page-h {
  display: flex; align-items: center; gap: 16px; flex-wrap: nowrap;
  padding: 2px 4px 0; margin: 0 0 12px;
}
html[data-theme="v09"] .page-title {
  display: flex; align-items: flex-end; gap: 16px; flex: 1 1 auto; min-width: 0;
}
html[data-theme="v09"] .page-title > div:first-child { min-width: 0; overflow: hidden; }
html[data-theme="v09"] .page-title h1 { flex-wrap: nowrap; overflow: hidden; }
html[data-theme="v09"] .page-title h1 .cn { white-space: nowrap; }
html[data-theme="v09"] .page-title p {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
html[data-theme="v09"] .page-title h1 {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-size: 26px; font-weight: 800; letter-spacing: -.55px; color: #182034;
}
html[data-theme="v09"] .page-title h1 .en { color: #182034; }
html[data-theme="v09"] .page-title h1 .cn { color: #1B2540; font-weight: 700; font-size: 24px; }
html[data-theme="v09"] .page-title p { margin-top: 4px; font-size: 12px; color: #5F6C8C; }
html[data-theme="v09"] .page-title .crumb { font-size: 11.5px; color: #7E89A6; margin-bottom: 4px; }
html[data-theme="v09"] .page-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

html[data-theme="v09"] .range-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px; border-radius: 11px;
  background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.95); color: #414B66;
  font-size: 12px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(24,32,52,.05);
}
html[data-theme="v09"] .range-pill .ic { width: 15px; height: 15px; color: #3D6BEA; }
html[data-theme="v09"] .range-pill i { font-style: normal; color: #9AA4BC; font-size: 10px; }
html[data-theme="v09"] .range-pill .caret,
html[data-theme="v09"] .seg + .caret {
  display: inline-block; width: 5px; height: 5px; margin-left: 3px; margin-top: -4px;
  border-right: 1.4px solid #9AA4BC; border-bottom: 1.4px solid #9AA4BC;
  transform: rotate(45deg);
}

/* ------------------------------------------------------------
 * 3. 卡片（玻璃）与 KPI
 * ------------------------------------------------------------ */
html[data-theme="v09"] .card {
  background-color: rgba(255, 255, 255, .52);
  /* 卡内也要有"棱镜透光"：参考稿卡内 maxChroma 57~110，纯白玻璃只有 40 左右。
     第 1 层是斜向窄光谱（更饱和一点，才能穿过 60% 白玻璃），第 2 层是玻璃面。 */
  background-image:
    linear-gradient(114deg,
      rgba(255,255,255,0) 30%,
      rgba(112,176,255,.56) 38%,
      rgba(190,160,255,.42) 43%,
      rgba(140,232,224,.40) 47%,
      rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.20) 48%, rgba(232,240,255,.12) 100%);
  backdrop-filter: blur(18px) saturate(150%) brightness(.98);
  -webkit-backdrop-filter: blur(18px) saturate(150%) brightness(.98);
  border: 1px solid rgba(255, 255, 255, .98);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95),
              0 0 0 1px rgba(88,116,170,.10),
              0 2px 3px -1px rgba(30,45,90,.10),
              0 16px 38px -24px rgba(60,86,150,.55);
}
html[data-theme="v09"] .card-h { padding: 15px 18px 12px; border-bottom: 1px solid rgba(255,255,255,.6); }
html[data-theme="v09"] .card-h h3 {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 15.5px; font-weight: 700; color: #182034; letter-spacing: -.2px;
}
html[data-theme="v09"] .card-h h3 .en { color: #182034; }
html[data-theme="v09"] .card-h h3 .cn { color: #1F2937; font-size: 14px; font-weight: 600; }
html[data-theme="v09"] .card-h .sub { font-size: 11px; color: #9AA4BC; }
html[data-theme="v09"] .card-b { padding: 16px 18px; }
html[data-theme="v09"] .card-b.flush { padding: 0; }

html[data-theme="v09"] .kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; align-items: stretch; }
/* app.css 有 `.card + .card { margin-top: var(--gap) }`，会让第 2~4 张 KPI 卡整体下沉 20px，
   看起来像第一张"高出 30px"。这里显式清零。 */
html[data-theme="v09"] .kpi-row > .kpi,
html[data-theme="v09"] .kpi-row > .kpi + .kpi { margin-top: 0 !important; }
html[data-theme="v09"] .kpi {
  position: relative; display: grid;
  background-color: rgba(255,255,255,.62);
  grid-template-columns: 45px minmax(0,1fr);
  grid-template-rows: auto auto auto;
  align-content: start;
  column-gap: 13px; row-gap: 0; height: 100%; min-height: 104px;
  padding: 11px 16px 10px; border-radius: 16px; overflow: hidden;
}
html[data-theme="v09"] .kpi {
  background-color: rgba(233,240,252,.43);
  /* 关键：.card 的 background-image（114° 光谱 + 白纱渐变）画在 background-color 之上，
     不覆盖它的话上面那行 .43 只让卡面降 1.4 lum。这里用更薄的蓝调玻璃面替掉。 */
  background-image: linear-gradient(180deg, rgba(255,255,255,.30) 0%, rgba(226,236,252,.16) 100%);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}
html[data-theme="v09"] .kpi::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(112deg, rgba(255,255,255,0) 38%, rgba(196,140,255,.20) 46.5%,
      rgba(110,200,255,.24) 49%, rgba(255,255,255,0) 57%),
    radial-gradient(70% 90% at 100% 100%, rgba(150,190,255,.14), rgba(150,190,255,0) 72%);
}
/* ::after 是定位元素，会盖在文字之上：把卡内四块内容抬到上面一层 */
html[data-theme="v09"] .kpi > * { position: relative; z-index: 1; }
html[data-theme="v09"] .kpi-ic {
  grid-row: 1 / span 2; align-self: start; margin-top: 1px;
  width: 45px; height: 45px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(165deg, #F2F7FF 0%, #DCE8FF 55%, #C9D8FB 100%);
  border: 1px solid rgba(255,255,255,.9); color: #2B4BF0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
html[data-theme="v09"] .kpi-ic .ic { width: 22px; height: 22px; }
html[data-theme="v09"] .kpi-l {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: nowrap; min-width: 0;
  min-height: 0; line-height: 1.25; white-space: nowrap; overflow: hidden;
  font-size: 12px; font-weight: 700; color: #3B455C; letter-spacing: .01em;
}
html[data-theme="v09"] .kpi-l .en { color: #2D3959; }
html[data-theme="v09"] .kpi-l .cn { color: #455276; font-weight: 600; font-size: 11.5px; }
html[data-theme="v09"] .kpi-v {
  grid-column: 2; font-size: 26px; font-weight: 800; color: #0B1220;
  /* 关键：app.css 给 .kpi-v 设了 var(--mono)，会把 0 渲染成斜杠零 Ø 且显得细 */
  font-family: var(--f);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.6px; line-height: 1.12; margin-top: 3px;
}
html[data-theme="v09"] .kpi-v.is-bad { color: #0B1220; }
html[data-theme="v09"] .kpi-d {
  grid-column: 2; display: flex; align-items: center; gap: 5px; flex-wrap: nowrap;
  font-size: 11px; color: #5A6480; margin-top: 3px; min-width: 0; white-space: nowrap;
}
html[data-theme="v09"] .kpi-d .delta { font-weight: 700; }
html[data-theme="v09"] .kpi-d .delta.up { color: #15A05A; }
html[data-theme="v09"] .kpi-d .delta.down { color: #D2264A; }

/* ------------------------------------------------------------
 * 4. 趋势图
 * ------------------------------------------------------------ */
html[data-theme="v09"] .trend-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px 6px; }
html[data-theme="v09"] .trend-head h3 {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 14.5px; font-weight: 700; color: #182034;
}
html[data-theme="v09"] .trend-head h3 .en { color: #182034; }
html[data-theme="v09"] .trend-head h3 .cn { color: #1F2937; font-size: 13px; font-weight: 600; }
html[data-theme="v09"] .seg {
  margin-left: auto; display: inline-flex; padding: 3px; gap: 2px;
  background: rgba(236,241,250,.78);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(60,86,150,.08);
}
html[data-theme="v09"] .seg button {
  height: 28px; padding: 0 14px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  color: #3A4459; background: transparent; border: 0;
  transition: background .18s, color .18s, box-shadow .18s;
}
html[data-theme="v09"] .seg button.on {
  background: linear-gradient(180deg, #5B8CEF, #4A79E8); color: #fff;
  box-shadow: inset 0 0 0 2px #fff, 0 6px 14px -8px rgba(61,107,234,.85);
}
html[data-theme="v09"] .trend-body { padding: 0 8px 8px; }
html[data-theme="v09"] .trend-svg { width: 100%; height: 226px; display: block; }
html[data-theme="v09"] .trend-svg text { font-size: 10.5px; fill: #5A6480; font-family: var(--f); }
html[data-theme="v09"] .trend-grid line { stroke: rgba(226,233,245,.85); stroke-width: 1; }
html[data-theme="v09"] .trend-wrap { position: relative; }
html[data-theme="v09"] .trend-tip {
  position: absolute; transform: translate(-50%, -118%);
  background: rgba(255,255,255,.97); border: 1px solid rgba(226,233,245,.95);
  border-radius: 10px; padding: 7px 10px; font-size: 10.5px; color: #5A6480;
  box-shadow: 0 14px 30px -18px rgba(60,86,150,.6); pointer-events: none;
  white-space: nowrap;
}
html[data-theme="v09"] .trend-tip b { display: block; font-size: 12.5px; color: #182034; margin-top: 1px; }
html[data-theme="v09"] .trend-tip .tip-delta {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 5px;
  font-size: 10.5px; font-weight: 700; color: #12A05C;
}
html[data-theme="v09"] .trend-tip .tip-delta.down { color: #D2264A; }

/* ------------------------------------------------------------
 * 5. 数据表
 * ------------------------------------------------------------ */
html[data-theme="v09"] .tbl { border-collapse: separate; border-spacing: 0; }
html[data-theme="v09"] .tbl thead th {
  background: transparent; border-bottom: 1px solid rgba(232,238,248,.9);
  padding: 8px 7px; text-align: left; font-weight: 700;
  color: #566083; font-size: 12px;
  text-transform: none; letter-spacing: 0;
}
html[data-theme="v09"] .tbl thead th .en {
  display: inline; font-size: 12px; color: #222A40; font-weight: 600; letter-spacing: -.01em;
}
html[data-theme="v09"] .tbl thead th .cn {
  display: inline; font-size: 12px; color: #566083; font-weight: 500; margin-left: 5px;
}
html[data-theme="v09"] .tbl thead th { white-space: nowrap; }
html[data-theme="v09"] .tbl tbody td {
  height: 46px; padding: 0 7px; line-height: 1.25;
  border-bottom: 1px solid rgba(232,238,248,.9);
  font-size: 12.5px; color: #414B66;
}
html[data-theme="v09"] .tbl tbody tr:last-child td { border-bottom: 0; }
html[data-theme="v09"] .tbl tbody tr:hover td { background: rgba(248,250,255,.7); }
html[data-theme="v09"] .tbl .td-main b { color: #182034; font-size: 12.5px; font-weight: 700; }
html[data-theme="v09"] .tbl .td-main i { color: #9AA4BC; font-size: 10.5px; font-style: normal; display: block; line-height: 1.2; }
html[data-theme="v09"] .tbl .sub-line { color: #A3ACC2; font-size: 10.5px; font-style: normal; }
html[data-theme="v09"] .tbl-wrap { overflow-x: auto; max-width: 100%; }
html[data-theme="v09"] .tbl-wrap > .tbl { width: 100%; }
/* 固定列宽：参考稿第一列只占 14.5%，flex 自动分布会把首列撑到 24%，节奏就散了 */
html[data-theme="v09"] .tbl-wrap > .tbl { table-layout: fixed; }
html[data-theme="v09"] .tbl-wrap > .tbl thead th:nth-child(1) { width: 22%; }
html[data-theme="v09"] .tbl-wrap > .tbl thead th:nth-child(2) { width: 13%; }
html[data-theme="v09"] .tbl-wrap > .tbl thead th:nth-child(3) { width: 9.5%; }
html[data-theme="v09"] .tbl-wrap > .tbl thead th:nth-child(4) { width: 9%; }
html[data-theme="v09"] .tbl-wrap > .tbl thead th:nth-child(5) { width: 10%; }
html[data-theme="v09"] .tbl-wrap > .tbl thead th:nth-child(6) { width: 13.5%; }
html[data-theme="v09"] .tbl-wrap > .tbl thead th:nth-child(7) { width: 12.5%; }
html[data-theme="v09"] .tbl-wrap > .tbl thead th:nth-child(8) { width: 10.5%; }
html[data-theme="v09"] .tbl-wrap > .tbl thead th,
html[data-theme="v09"] .tbl-wrap > .tbl tbody td { overflow: hidden; text-overflow: ellipsis; }
/* 上一列被切断的保险：宁可整表横向滚动，也不让内容被卡片 overflow 吃掉 */
html[data-theme="v09"] .card-b.flush:has(> .tbl-wrap) { overflow: visible; }
/* 参考稿三张主卡的白纱是分层的：KPI 最素、表格次之、图表最透（图表卡 meanC 43 是全页最艳区） */
html[data-theme="v09"] .card:has(.tbl-wrap) { background-color: rgba(230,237,250,.78); }
html[data-theme="v09"] .card:has(.trend-wrap) { background-color: rgba(255,255,255,.36); }

/* 状态胶囊：圆点 + 英文 + 中文 */
html[data-theme="v09"] .tag.tag-bi {
  display: inline-flex; align-items: center; gap: 6px;
  height: 23px; padding: 0 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .01em;
  border: 1px solid transparent;
}
html[data-theme="v09"] .tag.tag-bi .dot-i {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; flex: 0 0 6px;
}
html[data-theme="v09"] .tag.tag-bi .cn { font-weight: 600; opacity: .72; }
html[data-theme="v09"] .tag.ok { background: rgba(233,248,239,.9); color: #12955A; border-color: rgba(207,239,221,.9); }
html[data-theme="v09"] .tag.blue { background: rgba(234,241,254,.9); color: #2C6BEA; border-color: rgba(214,227,252,.9); }
html[data-theme="v09"] .tag.warn { background: rgba(254,244,228,.9); color: #B4760D; border-color: rgba(248,227,191,.9); }
html[data-theme="v09"] .tag.danger { background: rgba(253,237,240,.9); color: #D2264A; border-color: rgba(248,211,219,.9); }
html[data-theme="v09"] .tag.gray { background: rgba(242,245,250,.92); color: #6B7691; border-color: rgba(228,233,244,.9); }
html[data-theme="v09"] .tag.purple { background: rgba(241,238,254,.9); color: #6B4BF0; border-color: rgba(224,216,252,.9); }
html[data-theme="v09"] .tag:not(.tag-bi) { border-radius: 999px; padding: 3px 9px; font-size: 10.5px; font-weight: 600; }

html[data-theme="v09"] .av { border-radius: 50%; border: 2px solid rgba(255,255,255,.95); box-shadow: 0 2px 6px -2px rgba(60,86,150,.4); }
html[data-theme="v09"] .av.sm { border-radius: 50%; }
html[data-theme="v09"] .av.sm { width: 24px; height: 24px; font-size: 9.5px; }

/* 列表 / 折叠 / 进度条 */
html[data-theme="v09"] .list-row { padding: 11px 16px; border-bottom: 1px solid rgba(232,238,248,.8); }
html[data-theme="v09"] .list-row:hover { background: rgba(248,250,255,.7); }
html[data-theme="v09"] .list-row .lr-main b { font-size: 12.5px; color: #182034; }
html[data-theme="v09"] .list-row .lr-main i { font-size: 10.5px; color: #9AA4BC; font-style: normal; }
html[data-theme="v09"] .bar { background: rgba(226,232,245,.9); border-radius: 999px; height: 6px; }
html[data-theme="v09"] .bar > i { background: linear-gradient(90deg, #7FB0F5, #4A79E8); border-radius: 999px; }
html[data-theme="v09"] .bar.ok > i { background: linear-gradient(90deg, #6FDCA4, #15A05A); }
html[data-theme="v09"] .rl-bar { background: rgba(226,232,245,.9); }
html[data-theme="v09"] .rl-bar > i { background: linear-gradient(90deg, #9BC0F8, #4A79E8); }
html[data-theme="v09"] .rl-n { color: #5A6480; font-size: 12px; }
html[data-theme="v09"] .rl-v { color: #2C3550; font-size: 12px; font-weight: 700; }

/* 按钮 / 表单 / 弹层 */
html[data-theme="v09"] .btn {
  height: 36px; padding: 0 14px; border-radius: 11px; font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.95); background: rgba(255,255,255,.86); color: #414B66;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(24,32,52,.05);
}
html[data-theme="v09"] .btn:hover { border-color: rgba(220,230,248,.95); background: rgba(255,255,255,.98); color: #2C3550; }
html[data-theme="v09"] .btn.pri {
  background: linear-gradient(180deg, #5B8CEF, #4477E6); border-color: rgba(255,255,255,.5); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px -14px rgba(61,107,234,.95);
}
html[data-theme="v09"] .btn.pri:hover { background: linear-gradient(180deg, #6A97F2, #4C7DEB); }
html[data-theme="v09"] .btn.sm { height: 30px; padding: 0 11px; font-size: 11.5px; border-radius: 9px; }
html[data-theme="v09"] .btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }

html[data-theme="v09"] .inp {
  height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,.95); background: rgba(255,255,255,.9);
  color: #2C3550; font-size: 12.5px; box-shadow: inset 0 1px 2px rgba(24,32,52,.04);
}
html[data-theme="v09"] .inp:focus { border-color: rgba(127,165,242,.9); box-shadow: 0 0 0 3px rgba(61,107,234,.12); }
html[data-theme="v09"] .inp.ta { height: auto; padding: 10px 12px; }
html[data-theme="v09"] .fld-l { font-size: 11.5px; font-weight: 700; color: #5A6480; }
html[data-theme="v09"] .fld-h { font-size: 10.5px; color: #A3ACC2; }

html[data-theme="v09"] .mask { background: rgba(24,32,52,.28); backdrop-filter: blur(8px); }
html[data-theme="v09"] .dlg { border-radius: 20px; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.96); box-shadow: 0 40px 90px -50px rgba(30,44,80,.7); }
html[data-theme="v09"] .dlg-h { border-bottom: 1px solid rgba(232,238,248,.9); }
html[data-theme="v09"] .toasts .toast { border-radius: 12px; background: rgba(255,255,255,.97); border: 1px solid rgba(226,233,245,.95); color: #2C3550; box-shadow: 0 18px 40px -24px rgba(60,86,150,.55); }
html[data-theme="v09"] .dir-h, html[data-theme="v09"] .fold-trigger { background: rgba(248,250,255,.8); border-color: rgba(232,238,248,.9); }
html[data-theme="v09"] .tabs { border-bottom-color: rgba(232,238,248,.9); }
html[data-theme="v09"] .tab { color: #7E89A6; font-weight: 600; }
html[data-theme="v09"] .tab.on { color: #2F5BD6; border-bottom-color: #3D6BEA; }
html[data-theme="v09"] .kv dt { color: #96A0B6; font-size: 11.5px; }
html[data-theme="v09"] .kv dd { color: #2C3550; font-size: 12.5px; }
/* 项目未读：小圆点，不要被 flex 列拉成一条长红条 */
html[data-theme="v09"] .proj-main .kcard-unread { align-self: flex-start; flex: 0 0 auto; }
/* tab 上的未读小红点（项目聊天） */
html[data-theme="v09"] .tab .tab-unread {
  display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 5px;
  margin-left: 5px; border-radius: 99px; font-style: normal; vertical-align: 1px;
  font-size: 9.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #f2506e, #d2264a);
  box-shadow: 0 4px 10px -6px rgba(210, 38, 74, .9);
}
/* 未读优先：卡片与表格行加一条左侧高亮，让「为什么这条排在前面」一眼看得出来 */
html[data-theme="v09"] .kcard.has-unread {
  border-color: rgba(61, 107, 234, .45);
  box-shadow: inset 3px 0 0 var(--brand), 0 6px 18px -12px rgba(61, 107, 234, .6);
  background: linear-gradient(90deg, rgba(61, 107, 234, .07), rgba(255, 255, 255, .74) 42%);
}
html[data-theme="v09"] .kan-h .c.hot {
  background: rgba(61, 107, 234, .12); color: var(--brand); font-weight: 700;
  padding: 1px 7px; border-radius: 99px; margin-left: 4px;
}
html[data-theme="v09"] .tbl tbody tr.has-unread td { background: rgba(61, 107, 234, .05); }
html[data-theme="v09"] .tbl tbody tr.has-unread td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
html[data-theme="v09"] .kcard { border-radius: 14px; border-color: rgba(255,255,255,.9); background: rgba(255,255,255,.72); }
html[data-theme="v09"] .kan-col { background: rgba(255,255,255,.35); border-radius: 16px; border-color: rgba(255,255,255,.7); }
html[data-theme="v09"] .person-tile { border-radius: 14px; border-color: rgba(255,255,255,.9); background: rgba(255,255,255,.66); }
html[data-theme="v09"] .empty { color: #A3ACC2; }

/* ------------------------------------------------------------
 * 6. 响应式
 * ------------------------------------------------------------ */
@media (max-width: 1280px) {
  html[data-theme="v09"] .app-shell { grid-template-columns: 196px minmax(0,1fr); }
  html[data-theme="v09"] .kpi-v { font-size: 24px; }
}
@media (max-width: 1080px) {
  html[data-theme="v09"] .app-shell {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "top" "main";
  }
  html[data-theme="v09"] .side { display: none; }
  html[data-theme="v09"] .kpi-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  html[data-theme="v09"] .page-h { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  html[data-theme="v09"] .nav-btn .nb-tx { display: none; }
  html[data-theme="v09"] .kpi-row { grid-template-columns: minmax(0,1fr); }
}

/* 表格内标题单行省略，保持 46px 行高一致（参考稿行高齐平） */
html[data-theme="v09"] .tbl tbody td.td-main b {
  display: block; max-width: 250px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-theme="v09"] .tbl tbody td.td-main i {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px;
}
html[data-theme="v09"] .trend-tip.below { transform: translate(-50%, 14%); }

/* KPI 第三段附加信息（待办/累计等）在紧凑卡里隐藏：参考稿只有"涨跌 + 对比说明" */
html[data-theme="v09"] .kpi-d .muted { display: none; }

/* 表格其它列同样单行省略，保证 46px 行高整齐（参考稿行高完全齐平） */
html[data-theme="v09"] .tbl tbody td { white-space: nowrap; }
html[data-theme="v09"] .tbl tbody td > span,
html[data-theme="v09"] .tbl tbody td > a { white-space: nowrap; }
html[data-theme="v09"] .tbl tbody td.td-ellipsis { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

/* 页头副标题：英文 + 中文并排（参考稿 Cross-border E-commerce 跨境电商运营） */
html[data-theme="v09"] .page-title p .sub-en { color: #7E88A4; font-weight: 600; margin-right: 8px; }
html[data-theme="v09"] .page-title p .sub-cn { color: #96A0B6; }

/* 8 列必须全部在卡内可见：标题/项目两列做省略，把宽度让给状态与截止列 */
html[data-theme="v09"] .tbl-wrap > .tbl .td-main b { max-width: 146px; }
html[data-theme="v09"] .tbl-wrap > .tbl tbody td:nth-child(2) {
  max-width: 112px; overflow: hidden; text-overflow: ellipsis;
}
/* 参考稿表格左右各有约 20px 内距（首列不贴卡片边） */
html[data-theme="v09"] .tbl thead th:first-child,
html[data-theme="v09"] .tbl tbody td:first-child { padding-left: 20px; }
html[data-theme="v09"] .tbl thead th:last-child,
html[data-theme="v09"] .tbl tbody td:last-child { padding-right: 22px; }

/* ------------------------------------------------------------
 * 7. 交付前的观感收口（R8 审计：滚动条槽、头像描边、立方体饱和度）
 * ------------------------------------------------------------ */
/* 参考稿没有滚动条槽：只要留槽，顶栏"通栏"就会在右侧被切掉一条，左右不对称。
   这里彻底隐藏滚动条（滚轮/键盘/触控板照常滚动），顶栏才是真正的 edge-to-edge。 */
html[data-theme="v09"], html[data-theme="v09"] body { scrollbar-width: none; -ms-overflow-style: none; }
html[data-theme="v09"] ::-webkit-scrollbar { width: 0; height: 0; background: transparent; }
/* 侧栏内部滚动条：参考稿侧栏是纯内容，不露滚动条 */
html[data-theme="v09"] .side-nav { scrollbar-width: none; }
html[data-theme="v09"] .side-nav::-webkit-scrollbar { width: 0; height: 0; }
/* 头像只留一层按角色着色的细环（参考稿是照片，我们首字母头像保留角色色标） */
html[data-theme="v09"] .topbar .me .av { border-width: 0; box-shadow: 0 0 0 1.5px rgba(61,107,234,.35); }
html[data-theme="v09"] .topbar:has(.role-pill.r-manager) .me .av { box-shadow: 0 0 0 1.5px rgba(107,75,240,.32); }
html[data-theme="v09"] .topbar:has(.role-pill.r-staff) .me .av { box-shadow: 0 0 0 1.5px rgba(21,160,90,.3); }
/* 立方体更饱和一点（参考稿是蓝→紫饱和渐变） */
html[data-theme="v09"] .brand .logo {
  filter: saturate(1.38) contrast(1.10) brightness(1.04) drop-shadow(0 3px 9px rgba(84,116,226,.42));
  position: relative;
}
/* 顶面棱面高光：参考稿立方体 maxLum 254，纯 SVG 填充到不了 */
html[data-theme="v09"] .brand .logo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,255,255,.9), rgba(255,255,255,0) 46%);
}
/* 非看板页的宽表（任务列表 10 列）：先靠"紧内距 + 小一号字"挤进卡宽，实在挤不下才横向滚动 */
html[data-theme="v09"] .card-b.flush:has(> .tbl) { overflow-x: auto; }
html[data-theme="v09"] .card-b.flush > .tbl { min-width: 100%; }
html[data-theme="v09"] .card-b.flush:has(> .tbl) .tbl thead th { padding: 8px 5px; font-size: 11px; }
html[data-theme="v09"] .card-b.flush:has(> .tbl) .tbl thead th .en { font-size: 11px; }
html[data-theme="v09"] .card-b.flush:has(> .tbl) .tbl thead th .cn { font-size: 11px; margin-left: 4px; }
html[data-theme="v09"] .card-b.flush:has(> .tbl) .tbl tbody td { padding: 0 5px; font-size: 12px; }
html[data-theme="v09"] .card-b.flush:has(> .tbl) .tbl tbody td:first-child,
html[data-theme="v09"] .card-b.flush:has(> .tbl) .tbl thead th:first-child { padding-left: 14px; width: 42px; }
html[data-theme="v09"] .card-b.flush:has(> .tbl) .tbl thead th:last-child,
html[data-theme="v09"] .card-b.flush:has(> .tbl) .tbl tbody td:last-child { padding-right: 14px; }
html[data-theme="v09"] .card-b.flush:has(> .tbl) .tbl .td-main b { max-width: 210px; }
/* 顶栏右段（工具簇）盖一层柔白纱：不遮住棱镜线本身，只把穿过图标区的那段青色压回参考稿的彩度
   （审计 B：右段 meanChroma 45.8 vs 参考 23.7，是顶栏唯一的过冲区） */
html[data-theme="v09"] .topbar > .topbar-right {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.56) 16%, rgba(255,255,255,.56) 100%);
  border-radius: 12px;
  padding-left: 6px;
}
/* ============================================================
 * 8. R23 改版覆盖层（写在最后，优先级最高）
 *    · 顶部导航下线：外壳只剩「左栏 + 主列」
 *    · 卡片改毛玻璃：不透明度 .70、不要棱镜三色、不要光谱叠层
 *    · 背景改 three.js 画布：CSS 只留极淡底色，不再盖内容
 * ============================================================ */

/* ---- 8.1 背景：交给 three.js，CSS 只留一层极淡底 ---- */
html[data-theme="v09"] body {
  background-color: #eef3fd;
  background-image: none;
}
html[data-theme="v09"] .app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "side main";
  row-gap: 0;
  padding: 14px 16px 18px;
  background-color: transparent;
  background-image: none;
  animation: none;
  border-radius: 0;
}
html[data-theme="v09"] main#page { grid-area: main; }

/* three.js 背景画布 */
#bg-stage {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  display: block; width: 100vw; height: 100vh;
}
html[data-theme="v09"] .app-shell { z-index: 1; }
html[data-theme="v09"] #page,
html[data-theme="v09"] .page { background: none; }
html[data-theme="v09"] #fx-stage { display: none; }

/* ---- 8.2 左栏：毛玻璃 + 品牌 + 工具 + AI 球 ---- */
html[data-theme="v09"] .side {
  grid-area: side;
  position: sticky; top: 14px;
  height: calc(100vh - 32px); min-height: 460px;
  padding: 12px 10px 10px;
  border-radius: 20px;
  /* 参考稿侧栏整块是偏蓝的玻璃卡（越往下越蓝），球直接融在里面 */
  background: linear-gradient(180deg,
              rgba(255, 255, 255, .78) 0%,
              rgba(233, 242, 254, .82) 48%,
              rgba(201, 222, 252, .90) 100%);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 24px 60px -34px rgba(28, 44, 84, .40);
  overflow: hidden;
}
html[data-theme="v09"] .side-top {
  padding: 2px 2px 10px;
  display: flex; flex-direction: column; gap: 8px;
  border-bottom: 1px solid rgba(24, 40, 80, .07);
  margin-bottom: 8px;
}
html[data-theme="v09"] .brand {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  padding: 2px 2px;
}
html[data-theme="v09"] .brand .logo {
  width: 30px; height: 30px; border-radius: 9px; font-size: 15px;
  display: grid; place-items: center; color: #fff; font-weight: 700;
  background: linear-gradient(145deg, #5b8cef, #8b6cf0);
  box-shadow: 0 6px 14px -8px rgba(91, 141, 239, .85);
}
html[data-theme="v09"] .brand::after { content: none; }
html[data-theme="v09"] .brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
html[data-theme="v09"] .brand-txt b { font-size: 14px; font-weight: 700; color: #1b2340; letter-spacing: -.2px; }
html[data-theme="v09"] .brand-txt i { font-size: 10px; font-style: normal; color: #6b7694; }
html[data-theme="v09"] .side-top .scope-pill {
  height: 34px; border-radius: 10px; font-size: 12px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(24, 40, 80, .07);
  box-shadow: none;
}
html[data-theme="v09"] .side-top .scope-pill .caret { display: none; }

/* 导航：中文单行 */
html[data-theme="v09"] .side-nav { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 0 2px 4px; }
html[data-theme="v09"] .side-cap { padding: 8px 8px 4px; }
html[data-theme="v09"] .side-cap span { font-size: 10.5px; letter-spacing: .06em; color: #8a94ad; font-weight: 700; }
html[data-theme="v09"] .side-cap i { display: none; }
html[data-theme="v09"] .side-item { padding: 8px 9px; border-radius: 10px; gap: 9px; color: #3d4864; }
html[data-theme="v09"] .side-item .si-tx { gap: 0; }
html[data-theme="v09"] .side-item .si-tx b { font-size: 12.5px; font-weight: 600; }
html[data-theme="v09"] .side-item .si-tx i { display: none; }
html[data-theme="v09"] .side-item.on {
  background: linear-gradient(180deg, #5b8cef, #4a79e8);
  color: #fff; box-shadow: 0 10px 20px -14px rgba(61, 107, 234, .9);
}
html[data-theme="v09"] .side-item.on .si-ic { color: #fff; }

/* 底部工具行 + AI 球 */
html[data-theme="v09"] .side-foot {
  position: relative; display: block; padding-top: 8px;
  border-top: 1px solid rgba(24, 40, 80, .07); margin-top: 6px;
}
html[data-theme="v09"] .side-acts {
  display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
html[data-theme="v09"] .sib {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: #5c6890; background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(24, 40, 80, .07); cursor: pointer;
}
html[data-theme="v09"] .sib .ic { width: 16px; height: 16px; }
html[data-theme="v09"] .sib:hover { background: #fff; color: #3d6bea; }
html[data-theme="v09"] .sib.has-dot { position: relative; }
html[data-theme="v09"] .sib.has-dot::after {
  content: ''; position: absolute; top: 5px; right: 6px; width: 6px; height: 6px;
  border-radius: 50%; background: #f0483e;
}
html[data-theme="v09"] .sme {
  margin-left: auto; display: flex; align-items: center; gap: 7px;
  padding: 3px 7px 3px 3px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .66); border: 1px solid rgba(24, 40, 80, .07);
}
/* 挪到 AI 球下方后：占满整行、左对齐（参考稿顺序 = 导航 → 球 → 用户行） */
html[data-theme="v09"] .side-foot > .sme {
  margin: 8px 0 0; width: 100%; padding: 5px 8px 5px 5px;
  border-radius: 12px; justify-content: flex-start;
}
html[data-theme="v09"] .side-foot > .sme .caret { margin-left: auto; }
html[data-theme="v09"] .sme:hover { background: #fff; }
html[data-theme="v09"] .sme-av {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, #6d8ef5, #8b6cf0);
}
html[data-theme="v09"] .sme-tx { display: flex; flex-direction: column; line-height: 1.15; }
html[data-theme="v09"] .sme-tx b { font-size: 11.5px; color: #1b2340; }
html[data-theme="v09"] .sme-tx i { font-size: 9.5px; font-style: normal; color: #8a94ad; }
html[data-theme="v09"] .sme .caret {
  width: 5px; height: 5px; margin-top: -3px; margin-right: 2px;
  border-right: 1.4px solid #8a94ad; border-bottom: 1.4px solid #8a94ad;
  transform: rotate(45deg);
}

/* ---- 时间范围下拉（原来是个点不开的 span）---- */
html[data-theme="v09"] .range-wrap { position: relative; display: inline-flex; }
html[data-theme="v09"] button.range-pill {
  cursor: pointer; font-family: inherit;
}
html[data-theme="v09"] button.range-pill:hover { background: #fff; border-color: rgba(120, 160, 240, .55); }
html[data-theme="v09"] button.range-pill[aria-expanded="true"] { background: #fff; border-color: rgba(120, 160, 240, .7); }
html[data-theme="v09"] .range-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40;
  min-width: 132px; padding: 5px; display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid rgba(24, 40, 80, .10); border-radius: 12px;
  box-shadow: 0 18px 40px -22px rgba(28, 44, 84, .48), 0 2px 6px rgba(24, 40, 80, .06);
}
html[data-theme="v09"] .range-menu[hidden] { display: none; }
html[data-theme="v09"] .range-menu button {
  text-align: left; padding: 7px 10px; border-radius: 8px; border: 0; background: none;
  font-family: inherit; font-size: 12.5px; color: #414B66; cursor: pointer;
}
html[data-theme="v09"] .range-menu button:hover { background: rgba(61, 107, 234, .08); color: #2b57d6; }
html[data-theme="v09"] .range-menu button.on { background: rgba(61, 107, 234, .12); color: #2b57d6; font-weight: 700; }

/* 弹窗里的表单：去掉卡片外框，跟着对话框走 */
html[data-theme="v09"] .form-card.in-modal { border: 0; box-shadow: none; background: none; }
html[data-theme="v09"] .form-card.in-modal .form-body { padding: 2px 2px 0; }
/* 对话框底部按钮常驻，不用滚到底才看得到「创建并派发」 */
html[data-theme="v09"] .dlg-f {
  position: sticky; bottom: 0; z-index: 2;
  background: var(--card); backdrop-filter: blur(8px);
}

/* ---- 全局搜索（命令面板）---- */
.sq-mask {
  position: fixed; inset: 0; z-index: 96;
  background: rgba(18, 28, 52, .30); backdrop-filter: blur(6px);
}
.sq-panel {
  position: fixed; z-index: 97; left: 50%; top: 12vh; transform: translateX(-50%);
  width: min(620px, calc(100vw - 32px)); max-height: 66vh;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 16px;
  box-shadow: 0 40px 90px -40px rgba(24, 40, 80, .55), 0 2px 8px rgba(24, 40, 80, .08);
  overflow: hidden;
}
.sq-in {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid rgba(24, 40, 80, .07);
}
.sq-in-ic { color: #3d6bea; display: grid; place-items: center; }
.sq-in-ic svg { width: 18px; height: 18px; }
.sq-in input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font-family: inherit; font-size: 14.5px; color: #182034;
}
.sq-in input::placeholder { color: #96a0b8; }
.sq-esc {
  font-size: 10.5px; color: #96a0b8; border: 1px solid rgba(24, 40, 80, .12);
  border-radius: 6px; padding: 1px 5px; background: #f7f9fe;
}
.sq-body { overflow-y: auto; padding: 6px 8px 10px; }
.sq-sec {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #96a0b8;
  padding: 10px 10px 4px;
}
.sq-row {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 8px 10px; border-radius: 10px; text-decoration: none; color: inherit;
}
.sq-row.on, .sq-row:hover { background: rgba(61, 107, 234, .09); }
.sq-ic { color: #5a6480; display: grid; place-items: center; flex: 0 0 auto; }
.sq-ic svg { width: 16px; height: 16px; }
.sq-row.on .sq-ic { color: #3d6bea; }
.sq-t { font-size: 13px; font-weight: 600; color: #1b2340; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-m { margin-left: auto; font-size: 11px; color: #8a94ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46%; }
.sq-k { font-size: 10.5px; color: #b3bbcd; }
.sq-empty { padding: 26px 12px; text-align: center; font-size: 12.5px; color: #96a0b8; }

/* AI 球 */
html[data-theme="v09"] .orb-wrap {
  position: relative; height: 132px; border-radius: 16px; overflow: hidden;
  /* 参考稿里球是直接浮在蓝色玻璃侧栏上的，不要再给球套一层内嵌面板 */
  background: none;
  cursor: pointer;
}
html[data-theme="v09"] .orb-canvas { display: block; width: 100%; height: 100%; }
html[data-theme="v09"] .orb-cap {
  position: absolute; left: 0; right: 0; bottom: 7px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  pointer-events: none;
}
html[data-theme="v09"] .orb-cap b {
  font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #4b76ec;
  padding: 0 5px; border-radius: 5px; background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(120, 160, 240, .28);
}
html[data-theme="v09"] .orb-cap span { font-size: 9px; color: #8f99b3; letter-spacing: .04em; }
html[data-theme="v09"] .side-globe, html[data-theme="v09"] .side-hint { display: none; }

/* ---- 8.3 卡片：毛玻璃 .70，不要棱镜三色 ---- */
html[data-theme="v09"] .card,
html[data-theme="v09"] .kpi,
html[data-theme="v09"] .card:has(.tbl-wrap),
html[data-theme="v09"] .card:has(.trend-wrap) {
  background-color: rgba(255, 255, 255, .70);
  background-image: none;
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .70);
  box-shadow: 0 18px 40px -28px rgba(28, 44, 84, .38), 0 1px 2px rgba(24, 40, 80, .04);
}
html[data-theme="v09"] .kpi::after { content: none; }
html[data-theme="v09"] .kpi-ic {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(24, 40, 80, .06);
  color: #3d6bea;
}
html[data-theme="v09"] .card-h { border-bottom: 1px solid rgba(24, 40, 80, .06); }
html[data-theme="v09"] .kcard,
html[data-theme="v09"] .person-tile { background: rgba(255, 255, 255, .70); }
html[data-theme="v09"] .kan-col { background: rgba(255, 255, 255, .46); }

/* 主列：不再需要为顶栏留位 */
html[data-theme="v09"] .page { padding: 2px 0 40px; }

/* 全息网格只做「最底层背景」：不改变任何布局，内容照常铺满并正常滚动。
   地平线由视口高度驱动（见 three-bg.js），网格藏在毛玻璃卡片后面透出来。 */
html[data-theme="v09"] .app-shell,
html[data-theme="v09"] main#page,
html[data-theme="v09"] .page { position: relative; z-index: 1; }
html[data-theme="v09"] .page-h { padding: 4px 4px 0; margin: 0 0 14px; }
html[data-theme="v09"] .page-title h1 { font-size: 24px; }
html[data-theme="v09"] .page-title h1 .cn { font-size: 22px; color: #1b2340; }

@media (max-width: 1080px) {
  html[data-theme="v09"] .app-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main";
    padding: 10px 10px 16px;
  }
  html[data-theme="v09"] .side { display: none; }
}

/* ---- 8.4 左栏纵向空间再分配：导航优先，AI 球收小 ---- */
html[data-theme="v09"] .side-item { padding: 6px 9px; }
html[data-theme="v09"] .side-item .si-tx b { font-size: 12px; }
html[data-theme="v09"] .side-cap { padding: 6px 8px 3px; }
html[data-theme="v09"] .side-nav::-webkit-scrollbar { width: 0; height: 0; }
html[data-theme="v09"] .side-acts { margin-bottom: 6px; }
html[data-theme="v09"] .sib { width: 28px; height: 28px; }
html[data-theme="v09"] .orb-wrap { height: 176px; border-radius: 16px; }
html[data-theme="v09"] .orb-cap { bottom: 3px; }
/* 导航可滚动：底部做渐隐，暗示还有内容 */
html[data-theme="v09"] .side-nav {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 86%, rgba(0, 0, 0, .25) 97%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 86%, rgba(0, 0, 0, .25) 97%, transparent 100%);
}
html[data-theme="v09"] .sme-tx b { font-size: 11px; }
html[data-theme="v09"] .sme-tx i { font-size: 9px; }
/* ============================================================
 * 9. 中台智能体面板
 * ============================================================ */
.ag-mask {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(18, 28, 52, .28);
  backdrop-filter: blur(3px);
}
.ag-panel {
  position: fixed; z-index: 71; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100vw;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-left: 1px solid rgba(255, 255, 255, .8);
  box-shadow: -30px 0 70px -40px rgba(24, 40, 80, .45);
  animation: ag-in .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes ag-in { from { transform: translateX(18px); opacity: .6; } to { transform: none; opacity: 1; } }
.ag-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px 12px; border-bottom: 1px solid rgba(24, 40, 80, .07);
}
.ag-orb {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; letter-spacing: .04em;
  background: linear-gradient(145deg, #6d8ef5, #8b6cf0);
  box-shadow: 0 8px 18px -10px rgba(109, 142, 245, .9);
}
.ag-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ag-title b { font-size: 14px; color: #1b2340; }
.ag-title i { font-size: 10.5px; font-style: normal; color: #7c87a3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-x {
  margin-left: auto; width: 28px; height: 28px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(24, 40, 80, .08); background: rgba(255, 255, 255, .7); color: #5c6890;
}
.ag-x:hover { background: #fff; color: #d2264a; }
.ag-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ag-hello { color: #37415c; font-size: 13px; line-height: 1.7; }
.ag-hello b { display: block; font-size: 14px; color: #1b2340; margin-bottom: 4px; }
.ag-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.ag-quick button {
  padding: 7px 11px; border-radius: 999px; font-size: 12px; cursor: pointer;
  border: 1px solid rgba(109, 142, 245, .32); background: rgba(240, 245, 255, .9); color: #2f5bd6;
}
.ag-quick button:hover { background: #e8f0ff; }
.ag-msg { display: flex; }
.ag-msg.me { justify-content: flex-end; }
.ag-b {
  max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.66;
  color: #26304a; background: rgba(255, 255, 255, .95); border: 1px solid rgba(24, 40, 80, .07);
}
.ag-b p { margin: 0; }
.ag-b p + p { margin-top: 6px; }
.ag-msg.me .ag-b {
  background: linear-gradient(180deg, #5b8cef, #4a79e8); color: #fff; border-color: transparent;
}
.ag-acts { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.ag-act {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 7px 9px; border-radius: 10px; font-size: 11.5px; line-height: 1.5;
  background: rgba(236, 243, 255, .9); border: 1px solid rgba(109, 142, 245, .2); color: #37415c;
}
.ag-act.bad { background: rgba(255, 240, 242, .95); border-color: rgba(240, 120, 140, .3); }
.ag-tag {
  flex: 0 0 auto; font-weight: 700; color: #2f5bd6;
  padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(109, 142, 245, .3);
}
.ag-act.bad .ag-tag { color: #c21d3f; border-color: rgba(240, 120, 140, .35); }
.ag-res { min-width: 0; word-break: break-word; }
.ag-typing { display: flex; gap: 4px; padding: 10px 12px; }
.ag-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: #9db4e6;
  animation: ag-blink 1.1s infinite ease-in-out;
}
.ag-typing i:nth-child(2) { animation-delay: .15s; }
.ag-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ag-blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.ag-form {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 10px 12px 14px; border-top: 1px solid rgba(24, 40, 80, .07);
}
.ag-form textarea {
  flex: 1; resize: none; max-height: 120px; min-height: 38px;
  padding: 9px 11px; border-radius: 10px; font-size: 13px; line-height: 1.5;
  border: 1px solid rgba(24, 40, 80, .1); background: rgba(255, 255, 255, .92);
  color: #26304a; font-family: inherit;
}
.ag-form textarea:focus { outline: none; border-color: rgba(109, 142, 245, .6); box-shadow: 0 0 0 3px rgba(109, 142, 245, .12); }
.ag-send {
  height: 38px; padding: 0 16px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600;
  color: #fff; border: 0; background: linear-gradient(180deg, #5b8cef, #4477e6);
}
.ag-send:disabled { opacity: .55; cursor: default; }
@media (max-width: 720px) {
  .ag-panel { width: 100vw; border-left: 0; }
}
/* 智能体回答里的标题/分隔线 */
.ag-b .ag-h { display: block; margin: 8px 0 2px; color: #1b2340; font-size: 13.5px; }
.ag-b .ag-h:first-child { margin-top: 0; }
.ag-b hr { border: 0; border-top: 1px solid rgba(24, 40, 80, .1); margin: 8px 0; }
/* ============================================================
 * 10. 登录首页（按 pic 效果图复刻）
 * ============================================================ */
.lg-wrap {
  position: fixed; inset: 0; overflow: hidden;
  display: flex; align-items: center;
  padding: 0 8vw;
  background:
    radial-gradient(120% 90% at 78% 42%, #eef1ff 0%, #e9f0fd 42%, #f2f0fb 70%, #f6eef8 100%);
  font-family: var(--f);
}
.lg-crystal {
  position: absolute; right: 1vw; top: 50%; transform: translateY(-50%);
  width: 54vw; height: 82vh; pointer-events: none;
}
.lg-glow {
  position: absolute; right: 6vw; top: 50%; width: 42vw; height: 42vw;
  transform: translateY(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(168, 190, 255, .35), rgba(168, 190, 255, 0) 70%);
  filter: blur(10px); pointer-events: none;
}
.lg-card {
  position: relative; z-index: 2;
  width: 372px; max-width: 92vw;
  padding: 26px 26px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 40px 90px -50px rgba(38, 58, 120, .55), 0 2px 6px rgba(38, 58, 120, .05);
  animation: lg-in .5s cubic-bezier(.2, .8, .2, 1);
}
@keyframes lg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lg-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.lg-logo {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 24px; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, #5b8cef 0%, #7c6cf2 60%, #9a6cf0 100%);
  box-shadow: 0 12px 26px -14px rgba(91, 140, 239, .95);
}
.lg-bt { display: flex; flex-direction: column; line-height: 1.25; }
.lg-bt b { font-size: 20px; color: #1b2340; letter-spacing: -.3px; }
.lg-bt i { font-size: 11.5px; font-style: normal; color: #77839f; }
.lg-form { display: flex; flex-direction: column; gap: 12px; }

/* 账号单选（R33）：按岗位权力从上到下排，只显示姓名 + 登录名，不标职级 */
.lg-fld-acc { display: flex; flex-direction: column; gap: 8px; }
.lg-acc-hd { display: flex; align-items: baseline; gap: 8px; padding: 0 2px; }
.lg-acc-hd span { font-size: 12.5px; font-weight: 700; color: #414b66; }
.lg-acc-hd i { font-size: 11px; font-style: normal; color: #96a0b8; margin-left: auto; }
.lg-accs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 38px;
  gap: 6px; max-height: 226px; overflow-y: auto;
  padding: 6px; border-radius: 12px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(24, 40, 80, .08);
  scrollbar-width: thin;
}
.lg-accs::-webkit-scrollbar { width: 6px; }
.lg-accs::-webkit-scrollbar-thumb { background: rgba(150, 170, 210, .5); border-radius: 6px; }
.lg-acc {
  display: flex; align-items: center; gap: 7px; cursor: pointer; min-width: 0;
  padding: 6px 7px; border-radius: 9px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(24, 40, 80, .07);
  transition: border-color .14s, background .14s, box-shadow .14s;
}
.lg-acc:hover { background: #fff; border-color: rgba(109, 142, 245, .45); }
.lg-acc input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.lg-acc-av {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #3b4a6d;
  background: linear-gradient(160deg, #e7eeff, #d3e0ff);
  border: 1px solid rgba(255, 255, 255, .95);
}
.lg-acc-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.lg-acc-tx b {
  font-size: 12.5px; color: #1b2340; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lg-acc-tx i {
  font-size: 10px; font-style: normal; color: #96a0b8;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lg-acc:has(input:checked) {
  background: linear-gradient(160deg, #eaf1ff, #dfe8ff);
  border-color: rgba(74, 121, 232, .75);
  box-shadow: 0 0 0 2.5px rgba(74, 121, 232, .16);
}
.lg-acc:has(input:checked) .lg-acc-av {
  background: linear-gradient(160deg, #6d8ef5, #8b6cf0); color: #fff;
}
.lg-fld {
  display: flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(24, 40, 80, .09);
  transition: border-color .16s, box-shadow .16s;
}
.lg-fld:focus-within { border-color: rgba(109, 142, 245, .75); box-shadow: 0 0 0 3px rgba(109, 142, 245, .13); }
.lg-ic { display: grid; place-items: center; width: 18px; height: 18px; color: #8b96af; flex: 0 0 18px; }
.lg-ic svg { width: 18px; height: 18px; }
.lg-fld input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
  font-size: 14px; color: #1b2340; font-family: inherit; outline: none;
}
.lg-fld input::placeholder { color: #9aa4bc; }
.lg-eye {
  width: 26px; height: 26px; display: grid; place-items: center; cursor: pointer;
  border: 0; background: transparent; color: #9aa4bc; padding: 0;
}
.lg-eye svg { width: 18px; height: 18px; }
.lg-eye.on { color: #3d6bea; }
.lg-btn {
  height: 44px; border-radius: 10px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .06em;
  background: linear-gradient(180deg, #5b8cef, #4a79e8 55%, #6a5cf0);
  box-shadow: 0 16px 30px -18px rgba(74, 121, 232, .95);
  transition: transform .14s, box-shadow .14s;
}
.lg-btn:hover { transform: translateY(-1px); box-shadow: 0 20px 34px -18px rgba(74, 121, 232, 1); }
.lg-btn:disabled { opacity: .7; cursor: default; transform: none; }
.lg-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.lg-remember { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #4b5670; cursor: pointer; }
.lg-remember input { width: 14px; height: 14px; accent-color: #4a79e8; }
.lg-link { font-size: 12.5px; color: #3d6bea; text-decoration: none; }
.lg-link:hover { text-decoration: underline; }
.lg-hint {
  margin: 12px 0 0; text-align: center; font-size: 11.5px; color: #8b96af; line-height: 1.6;
}
.lg-hint.warn { color: #b4760d; }
.lg-hint.err { color: #d2264a; }
.lg-hint.ok { color: #128a52; }
.lg-foot {
  position: absolute; left: 8vw; bottom: 26px; font-size: 11px; color: #8b96af; letter-spacing: .04em;
}
@media (max-width: 860px) {
  .lg-wrap { padding: 0 18px; justify-content: center; align-items: center; }
  .lg-crystal { right: -30vw; opacity: .5; }
  .lg-glow { right: -10vw; }
  .lg-card { width: 100%; max-width: 380px; }
  .lg-foot { left: 0; right: 0; text-align: center; }
}
/* 登录页背景光带（效果图里的柔光丝带） */
.lg-wrap::before, .lg-wrap::after {
  content: ''; position: absolute; pointer-events: none; filter: blur(38px);
}
.lg-wrap::before {
  right: 2vw; bottom: -8vh; width: 60vw; height: 38vh;
  background:
    radial-gradient(50% 60% at 30% 40%, rgba(180, 214, 255, .55), rgba(180, 214, 255, 0) 70%),
    radial-gradient(46% 58% at 62% 62%, rgba(255, 206, 236, .48), rgba(255, 206, 236, 0) 72%),
    radial-gradient(40% 50% at 82% 30%, rgba(186, 255, 238, .38), rgba(186, 255, 238, 0) 72%);
  transform: rotate(-6deg);
}
.lg-wrap::after {
  right: 8vw; top: 2vh; width: 44vw; height: 30vh;
  background: radial-gradient(50% 60% at 50% 50%, rgba(214, 226, 255, .55), rgba(214, 226, 255, 0) 72%);
}
/* ============================================================
 * 11. 资料空间：上传区
 * ============================================================ */
.up-card { margin-bottom: 14px; }
.up-zone {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border: 1.5px dashed rgba(109, 142, 245, .42);
  border-radius: 14px; margin: 14px;
  padding: 16px 18px; cursor: pointer;
  background: rgba(245, 249, 255, .6);
  transition: background .18s, border-color .18s, transform .18s;
}
.up-zone:hover, .up-zone.on {
  background: rgba(232, 242, 255, .92);
  border-color: rgba(74, 121, 232, .8);
}
.up-zone.on { transform: scale(1.005); }
.up-ic {
  width: 46px; height: 46px; border-radius: 13px; flex: 0 0 46px;
  display: grid; place-items: center; color: #3d6bea;
  background: linear-gradient(160deg, #eef4ff, #dbe8ff);
  border: 1px solid rgba(255, 255, 255, .9);
}
.up-ic svg { width: 22px; height: 22px; }
.up-tx { display: flex; flex-direction: column; gap: 3px; min-width: 200px; }
.up-tx b { font-size: 13.5px; color: #1b2340; }
.up-tx span { font-size: 11.5px; color: #7c87a3; }
.up-meta { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.up-meta .inp { height: 32px; font-size: 12px; width: 150px; }
.up-meta select.inp { width: 170px; }
.up-bar {
  flex: 1 1 100%; height: 6px; border-radius: 999px; overflow: hidden;
  background: rgba(226, 234, 248, .9); position: relative; margin-top: 4px;
}
.up-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #7fb0f5, #4a79e8); transition: width .2s; }
.up-bar span { position: absolute; right: 0; top: -18px; font-size: 11px; color: #6b7691; }
@media (max-width: 860px) {
  .up-zone { flex-direction: column; align-items: flex-start; }
  .up-meta { margin-left: 0; width: 100%; }
  .up-meta .inp, .up-meta select.inp { width: 100%; }
}
/* ============================================================
 * 12. 手机端（按 pic 效果图复刻）：底部标签栏 + 单列 + 卡片化
 * ============================================================ */
.m-tabs { display: none; }

@media (max-width: 860px) {
  html[data-theme="v09"] body { background-color: #eef3fd; }

  html[data-theme="v09"] .app-shell {
    display: block;
    padding: 0 0 calc(72px + env(safe-area-inset-bottom, 0px));
    min-height: 100vh;
  }
  html[data-theme="v09"] .side { display: none; }
  html[data-theme="v09"] .page { padding: 14px 12px 8px; }

  /* 页头：标题一行 + 动作按钮换行排布 */
  html[data-theme="v09"] .page-h {
    flex-wrap: wrap; gap: 10px; padding: 0 2px; margin-bottom: 12px;
    align-items: flex-start;
  }
  html[data-theme="v09"] .page-title { flex: 1 1 100%; }
  html[data-theme="v09"] .page-title h1 { font-size: 21px; gap: 6px; }
  html[data-theme="v09"] .page-title h1 .cn { font-size: 19px; }
  html[data-theme="v09"] .page-title p { font-size: 11px; }
  html[data-theme="v09"] .page-actions { margin-left: 0; flex: 1 1 100%; gap: 8px; flex-wrap: wrap; }
  html[data-theme="v09"] .page-actions .inp { flex: 1 1 130px; min-width: 0; }

  /* KPI：横向可滑动的一排卡（效果图同款） */
  html[data-theme="v09"] .kpi-row {
    display: flex !important; gap: 10px; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: 0 -12px;
    padding-left: 12px; padding-right: 12px;
    -webkit-overflow-scrolling: touch;
  }
  html[data-theme="v09"] .kpi-row::-webkit-scrollbar { height: 0; }
  html[data-theme="v09"] .kpi-row > .kpi {
    flex: 0 0 46vw; min-width: 152px; scroll-snap-align: start;
    min-height: 0; padding: 10px 12px 9px;
    grid-template-columns: 34px minmax(0,1fr);
    column-gap: 9px;
  }
  html[data-theme="v09"] .kpi-ic { width: 34px; height: 34px; border-radius: 10px; }
  html[data-theme="v09"] .kpi-ic .ic { width: 17px; height: 17px; }
  html[data-theme="v09"] .kpi-l { font-size: 11px; }
  html[data-theme="v09"] .kpi-l .cn { font-size: 10.5px; }
  html[data-theme="v09"] .kpi-v { font-size: 22px; margin-top: 2px; }
  html[data-theme="v09"] .kpi-d { font-size: 10px; gap: 4px; margin-top: 3px; }

  /* 卡片：更圆更紧凑 */
  html[data-theme="v09"] .card { border-radius: 16px; }
  html[data-theme="v09"] .card-h { padding: 12px 14px 10px; }
  html[data-theme="v09"] .card-h h3 { font-size: 14.5px; }
  html[data-theme="v09"] .card-b { padding: 12px 14px; }
  html[data-theme="v09"] .trend-head { padding: 12px 14px 4px; }
  html[data-theme="v09"] .trend-svg { height: 168px; }

  /* 表格：改成卡片式一行一块（不再横向滚动） */
  html[data-theme="v09"] .tbl-wrap, html[data-theme="v09"] .card-b.flush:has(> .tbl) { overflow: visible; }
  html[data-theme="v09"] .tbl, html[data-theme="v09"] .tbl thead, html[data-theme="v09"] .tbl tbody,
  html[data-theme="v09"] .tbl tr, html[data-theme="v09"] .tbl td { display: block; width: auto !important; }
  html[data-theme="v09"] .tbl thead { display: none; }
  html[data-theme="v09"] .tbl tbody tr {
    padding: 10px 12px; border-bottom: 1px solid rgba(24,40,80,.07);
    display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center;
  }
  html[data-theme="v09"] .tbl tbody tr:last-child { border-bottom: 0; }
  html[data-theme="v09"] .tbl tbody td {
    border: 0 !important; padding: 0 !important; height: auto !important;
    max-width: none !important; font-size: 12px; line-height: 1.4;
  }
  html[data-theme="v09"] .tbl tbody td.td-main { grid-column: 1 / 2; }
  html[data-theme="v09"] .tbl tbody td.td-main b { font-size: 13px; max-width: none; }
  html[data-theme="v09"] .tbl tbody td:nth-child(n+3) {
    display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #6b7691;
  }
  html[data-theme="v09"] .tbl tbody td.td-actions { grid-column: 2 / 3; justify-self: end; display: flex; gap: 10px; }

  /* 筛选项堆叠 */
  html[data-theme="v09"] .filters { flex-wrap: wrap; gap: 8px; }
  html[data-theme="v09"] .filters .inp, html[data-theme="v09"] .filters .btn { flex: 1 1 130px; }

  /* 看板列：横向滑动 */
  html[data-theme="v09"] .kanban {
    display: flex !important; gap: 10px; overflow-x: auto; padding-bottom: 8px;
    scroll-snap-type: x mandatory; margin: 0 -12px; padding-left: 12px; padding-right: 12px;
  }
  html[data-theme="v09"] .kanban > * { flex: 0 0 82vw; scroll-snap-align: start; }

  /* 底部标签栏（效果图同款） */
  .m-tabs {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 -12px 30px -22px rgba(28, 44, 84, .35);
  }
  .m-tabs a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; text-decoration: none; color: #8a94ad;
  }
  .m-tabs a .ic, .m-tabs a svg { width: 21px; height: 21px; }
  .m-tabs a b { font-size: 10.5px; font-weight: 600; }
  .m-tabs a.on { color: #3d6bea; }
  .m-tabs a.on b { font-weight: 700; }

  /* 智能体面板全屏 */
  .ag-panel { width: 100vw; }
}

@media (max-width: 420px) {
  html[data-theme="v09"] .kpi-row > .kpi { flex: 0 0 60vw; }
  html[data-theme="v09"] .page-title h1 { font-size: 19px; }
}
/* 手机端页头修正：.page-actions 在 .page-title 内部，必须让 .page-title 换行 */
@media (max-width: 860px) {
  html[data-theme="v09"] .page-title {
    flex-wrap: wrap; align-items: flex-start; gap: 8px; flex: 1 1 100%;
  }
  html[data-theme="v09"] .page-title > div:first-child { flex: 1 1 100%; min-width: 0; }
  html[data-theme="v09"] .page-title .page-actions {
    margin-left: 0; flex: 1 1 100%; justify-content: flex-start;
  }
  html[data-theme="v09"] .page-actions .btn,
  html[data-theme="v09"] .page-actions .range-pill { height: 32px; font-size: 12px; padding: 0 10px; }
  html[data-theme="v09"] .range-pill i { display: none; }

  /* 手机端任务行：只留最关键的几列 */
  html[data-theme="v09"] .tbl tbody td:nth-child(2),
  html[data-theme="v09"] .tbl tbody td:nth-child(4),
  html[data-theme="v09"] .tbl tbody td:nth-child(7) { display: none !important; }
  html[data-theme="v09"] .tbl tbody tr { grid-template-columns: 1fr auto; }
  html[data-theme="v09"] .tbl tbody td.td-main { grid-column: 1 / 3; }
  html[data-theme="v09"] .tbl tbody td:nth-child(3),
  html[data-theme="v09"] .tbl tbody td:nth-child(5),
  html[data-theme="v09"] .tbl tbody td:nth-child(6),
  html[data-theme="v09"] .tbl tbody td:nth-child(8) { grid-row: 2; }
  /* 资料空间表：手机上保留文件名 + 大小 + 操作（只作用于 .lib-tbl，别误伤任务表） */
  html[data-theme="v09"] .lib-tbl tbody td:nth-child(2),
  html[data-theme="v09"] .lib-tbl tbody td:nth-child(4),
  html[data-theme="v09"] .lib-tbl tbody td:nth-child(5),
  html[data-theme="v09"] .lib-tbl tbody td:nth-child(6),
  html[data-theme="v09"] .lib-tbl tbody td:nth-child(7),
  html[data-theme="v09"] .lib-tbl tbody td:nth-child(8) { display: none !important; }
}
/* 手机端任务行：明确网格落位（标题整行 / 优先级 / 状态 / 截止） */
@media (max-width: 860px) {
  html[data-theme="v09"] .tbl tbody tr {
    grid-template-columns: auto 1fr auto;
    row-gap: 6px; column-gap: 8px;
  }
  html[data-theme="v09"] .tbl tbody td.td-main { grid-row: 1; grid-column: 1 / 4; }
  html[data-theme="v09"] .tbl tbody td:nth-child(3) { grid-row: 2; grid-column: 1; }
  html[data-theme="v09"] .tbl tbody td:nth-child(6) { grid-row: 2; grid-column: 2; justify-self: start; }
  html[data-theme="v09"] .tbl tbody td:nth-child(8) { grid-row: 2; grid-column: 3; justify-self: end; }
  html[data-theme="v09"] .tbl tbody td:nth-child(5) { display: none !important; }
  html[data-theme="v09"] .tbl tbody td.td-actions { grid-row: 3; grid-column: 1 / 4; justify-self: end; }
  html[data-theme="v09"] .tbl tbody td:nth-child(3) .tag,
  html[data-theme="v09"] .tbl tbody td:nth-child(6) .tag { font-size: 10px; height: 20px; padding: 0 8px; }

  /* 资料空间：文件名整行 + 大小/时间一行 + 操作右对齐 */
  html[data-theme="v09"] .lib-tbl tbody td:nth-child(3) { grid-row: 2; grid-column: 1; display: inline-flex; }
  html[data-theme="v09"] .lib-tbl tbody td:nth-child(9) { grid-row: 2; grid-column: 3; justify-self: end; }
}
/* ============================================================
 * 13. 模块看板条（R27）：量化产出下沉到各模块
 * ============================================================ */
.ms-wrap { display: flex; flex-direction: column; gap: 14px; }
.ms-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px;
}
.ms-kpi {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .70);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 14px 30px -24px rgba(28, 44, 84, .38);
}
.ms-kpi.bad { border-color: rgba(248, 211, 219, .9); background: rgba(255, 248, 249, .74); }
.ms-l { font-size: 11px; color: #77839f; font-weight: 600; }
.ms-v { font-size: 21px; font-weight: 800; color: #0b1220; letter-spacing: -.6px; line-height: 1.15; }
.ms-v i { font-size: 11px; font-weight: 600; font-style: normal; color: #8b96af; margin-left: 3px; }
.ms-kpi.bad .ms-v { color: #c21d3f; }
.ms-d { font-size: 10.5px; color: #8b96af; }
.ms-d em { font-style: normal; color: #a3acc2; }
.ms-d.up { color: #12a05c; font-weight: 700; }
.ms-d.down { color: #d2264a; font-weight: 700; }

.ms-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; text-decoration: none;
  border-bottom: 1px solid rgba(232, 238, 248, .8);
}
.ms-row:last-child { border-bottom: 0; }
.ms-row:hover { background: rgba(248, 250, 255, .8); }
.ms-n { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: #1b2340; min-width: 64px; }
.ms-m { flex: 1 1 auto; min-width: 0; font-size: 10.5px; color: #8b96af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-bar { flex: 0 0 34%; max-width: 180px; height: 6px; border-radius: 999px; background: rgba(226, 232, 245, .9); overflow: hidden; }
.ms-bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7fb0f5, #4a79e8); }
.ms-bar > i.bad { background: linear-gradient(90deg, #f7a0b0, #e0455f); }
.ms-v2 { flex: 0 0 auto; min-width: 56px; text-align: right; font-size: 12.5px; font-weight: 700; color: #2c3550; }

@media (max-width: 860px) {
  .ms-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-m { display: none; }
  .ms-bar { flex: 1 1 auto; }
  .ms-bar { display: none; }
  .ms-row { padding: 9px 12px; }
}
/* ============================================================
 * 14. 手机端修正：行内元素必须能换行，别再挤压成竖排字
 * ============================================================ */
@media (max-width: 860px) {
  /* 通用：任何"一行多块 + 按钮群"的结构都要允许换行 */
  html[data-theme="v09"] .proj-row,
  html[data-theme="v09"] .list-row,
  html[data-theme="v09"] .dir-h,
  html[data-theme="v09"] .fold-trigger,
  html[data-theme="v09"] .trend-head,
  html[data-theme="v09"] .card-h,
  html[data-theme="v09"] .stat-inline {
    flex-wrap: wrap; row-gap: 8px;
  }
  /* 项目行：标题整行，头像/标签/按钮折到第二行 */
  html[data-theme="v09"] .proj-row { padding: 12px 12px; gap: 8px 10px; align-items: flex-start; }
  html[data-theme="v09"] .proj-main { flex: 1 1 100%; min-width: 0; }
  html[data-theme="v09"] .proj-main b {
    display: block; word-break: break-word; overflow-wrap: anywhere; line-height: 1.4;
  }
  html[data-theme="v09"] .proj-main i { display: block; line-height: 1.5; }
  html[data-theme="v09"] .proj-members { flex: 0 0 auto; }
  html[data-theme="v09"] .proj-row .btn.sm { height: 28px; padding: 0 10px; font-size: 11.5px; }
  html[data-theme="v09"] .proj-row .tag { height: 22px; font-size: 10.5px; }

  /* 折叠头：标题换行、按钮不挤 */
  html[data-theme="v09"] .fold-trigger { padding: 10px 12px; }
  html[data-theme="v09"] .fold-trigger .muted { margin-left: auto; }

  /* 看板列头 */
  html[data-theme="v09"] .kan-h { flex-wrap: wrap; row-gap: 4px; }

  /* 卡片头：标题与右侧动作分行 */
  html[data-theme="v09"] .card-h h3 { flex: 1 1 auto; }
  html[data-theme="v09"] .card-h .sp { display: none; }
  html[data-theme="v09"] .card-h .link, html[data-theme="v09"] .card-h .btn { margin-left: auto; }

  /* 详情/表单两列 → 单列 */
  html[data-theme="v09"] .form-row, html[data-theme="v09"] .grid-2 { grid-template-columns: minmax(0, 1fr) !important; }
  html[data-theme="v09"] .grid-2 { display: grid !important; gap: 12px; }

  /* 页头动作按钮组 */
  html[data-theme="v09"] .page-actions .btn,
  html[data-theme="v09"] .page-actions .range-pill { flex: 0 0 auto; }

  /* 长英文/长串不要撑破 */
  html[data-theme="v09"] .page b, html[data-theme="v09"] .page i { overflow-wrap: anywhere; }
}
/* ============================================================
 * 15. 消息通知面板（R28）
 * ============================================================ */
.nf-mask { position: fixed; inset: 0; z-index: 68; background: rgba(18, 28, 52, .22); backdrop-filter: blur(2px); }
.nf-panel {
  position: fixed; z-index: 69; left: 252px; top: 70px;
  width: 400px; max-width: calc(100vw - 32px); max-height: min(620px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 40px 90px -50px rgba(24, 40, 80, .6), 0 2px 6px rgba(24, 40, 80, .06);
  animation: nf-in .18s cubic-bezier(.2, .8, .2, 1);
}
@keyframes nf-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nf-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 14px 11px; border-bottom: 1px solid rgba(24, 40, 80, .07);
}
.nf-head b { font-size: 14.5px; color: #1b2340; }
.nf-badge {
  min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700;
  color: #fff; background: #f0483e;
}
.nf-x {
  margin-left: auto; width: 26px; height: 26px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(24, 40, 80, .08); background: rgba(255, 255, 255, .7); color: #5c6890;
}
.nf-x:hover { background: #fff; color: #d2264a; }
.nf-tabs { display: flex; gap: 6px; padding: 9px 12px 0; }
.nf-tabs button {
  height: 28px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font-size: 11.5px; font-weight: 600; color: #5c6890;
  background: rgba(240, 245, 255, .8); border: 1px solid transparent;
}
.nf-tabs button.on { background: #e8f0ff; color: #2f5bd6; border-color: rgba(109, 142, 245, .35); }
.nf-body { overflow-y: auto; padding: 8px 6px 10px; }
.nf-sec + .nf-sec { margin-top: 6px; }
.nf-sh {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px 4px;
  font-size: 11px; color: #8b96af;
}
.nf-sh b { font-size: 12px; color: #3a4560; }
.nf-more { margin-left: auto; color: #3d6bea; text-decoration: none; font-size: 11px; }
.nf-item {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 9px 10px; border-radius: 11px; text-decoration: none;
}
.nf-item:hover { background: rgba(240, 245, 255, .9); }
.nf-item.late { background: rgba(255, 244, 246, .8); }
.nf-item.late .nf-main b { color: #b71c3c; }
.nf-dot { flex: 0 0 auto; margin-top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #b9c2d6; }
.nf-dot.open { background: #8b96af; }
.nf-dot.doing { background: #3d6bea; }
.nf-dot.review { background: #d99a12; }
.nf-ic {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: #6b7691;
}
.nf-ic svg { width: 18px; height: 18px; }
.nf-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nf-main b { font-size: 12.5px; color: #1b2340; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-main i { font-size: 10.5px; font-style: normal; color: #8b96af; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-pri { flex: 0 0 auto; font-size: 10px; font-weight: 700; color: #6b7691; }
.nf-time { flex: 0 0 auto; font-size: 10px; color: #a3acc2; margin-top: 2px; }
.nf-empty { padding: 18px 10px; text-align: center; font-size: 11.5px; color: #a3acc2; }

@media (max-width: 860px) {
  .nf-panel {
    left: 8px; right: 8px; top: auto; bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    width: auto; max-width: none; max-height: 70vh;
    border-radius: 18px;
  }
  .nf-mask { background: rgba(18, 28, 52, .3); }
}

/* ============================================================
 * 16. 卡片对齐修正 + 上传动效（R29）
 * ============================================================ */

/* 16.1 模块看板 KPI：一行五等分，永不错位 */
.ms-kpis {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
}
.ms-kpi { min-width: 0; }
.ms-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 16.2 榜单行：固定列宽，条形起点与数值右对齐 */
.ms-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(60px, 34%) 68px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.ms-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.ms-m { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-bar { width: 100%; }
.ms-v2 { text-align: right; }

/* 16.3 卡片头与页头对齐：标题基线一致，右侧动作靠右 */
.card-h { display: flex; align-items: center; gap: 8px; }
.card-h h3 { align-items: baseline; }
.card-h .sub { white-space: nowrap; }
.page-h { align-items: flex-end; }
.page-title h1 { align-items: baseline; }

/* 16.4 上传动效 */
.up-zone { position: relative; }
.up-zone.on {
  border-color: rgba(74, 121, 232, .95);
  background: rgba(226, 240, 255, .95);
  box-shadow: 0 0 0 4px rgba(74, 121, 232, .12) inset;
}
.up-zone.on .up-ic { transform: scale(1.06); }
.up-ic { transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.up-zone::after {
  content: ''; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  opacity: 0; transition: opacity .3s;
  background: radial-gradient(60% 90% at 50% 50%, rgba(74,121,232,.10), rgba(74,121,232,0) 70%);
}
.up-zone.on::after { opacity: 1; }
.up-zone.busy { border-style: solid; }
.up-zone.busy .up-ic {
  animation: up-spin 1.1s linear infinite;
  color: #3d6bea;
}
@keyframes up-spin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.06); } 100% { transform: rotate(360deg) scale(1); } }
.up-zone.done { border-color: rgba(21, 160, 90, .8); background: rgba(233, 250, 241, .95); }
.up-zone.done .up-ic { color: #15a05a; }
.up-zone.fail { border-color: rgba(210, 38, 74, .75); background: rgba(255, 240, 243, .95); }
.up-bar { display: block; }
.up-bar span {
  position: static; display: block; margin-top: 6px; text-align: right;
  font-size: 11px; color: #6b7691;
}
.up-bar i::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.6), rgba(255,255,255,0));
  animation: up-shine 1.2s linear infinite;
}
@keyframes up-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.up-bar > i { position: relative; overflow: hidden; }

/* 新上传的行淡入 */
.tbl tbody tr.up-enter { animation: up-row-in .34s cubic-bezier(.2,.8,.2,1); }
@keyframes up-row-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 上传成功飘出一个对勾气泡 */
.up-toast {
  position: absolute; right: 14px; top: 12px;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(21, 160, 90, .96); color: #fff; font-size: 11.5px; font-weight: 700;
  box-shadow: 0 10px 24px -14px rgba(21, 160, 90, .9);
  animation: up-pop .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes up-pop { from { opacity: 0; transform: translateY(6px) scale(.94); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .ms-kpis { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-row { grid-template-columns: 74px minmax(0, 1fr) 56px; gap: 8px; }
  .ms-m { display: none; }
  .ms-bar { display: none; }
}

/* 手机端榜单名字列加宽，折叠头标题可压缩（按钮不再换行） */
@media (max-width: 860px) {
  .ms-row { grid-template-columns: 104px minmax(0, 1fr) 60px; }
  html[data-theme="v09"] .fold-trigger > *:first-child,
  html[data-theme="v09"] .fold-trigger b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html[data-theme="v09"] .fold-trigger .btn { flex: 0 0 auto; }
  html[data-theme="v09"] .fold-trigger .muted { flex: 0 0 auto; margin-left: 0; }
}

/* ============================================================
 * 17. 澜途智能体面板（按 v07 效果图复刻）
 * ============================================================ */
.ag-panel {
  width: 430px;
  background: linear-gradient(180deg, rgba(232, 240, 255, .94), rgba(224, 234, 252, .92));
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  border-left: 1px solid rgba(255, 255, 255, .9);
  box-shadow: -30px 0 80px -46px rgba(24, 40, 90, .5);
}
.ag-head {
  gap: 10px; padding: 13px 14px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  border-bottom: 1px solid rgba(120, 160, 230, .16);
}
.ag-orb {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(160deg, #eaf2ff, #d5e3ff);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 8px 18px -12px rgba(80, 120, 220, .8);
  display: grid; place-items: center; color: #1b2340;
}
.ag-orb svg { width: 26px; height: 26px; }
.ag-title b { font-size: 16px; letter-spacing: -.2px; color: #14203c; }
.ag-title i { font-size: 10.5px; color: #6f7c9c; }
.ag-wave { margin-left: auto; color: #6f8fd8; display: grid; place-items: center; opacity: .9; }
.ag-wave svg { width: 22px; height: 22px; }
.ag-x { margin-left: 4px; border-radius: 9px; background: rgba(255, 255, 255, .8); }

.ag-body { padding: 14px 12px 10px; gap: 12px; }

/* 消息行：头像在气泡外侧 */
.ag-msg { align-items: flex-start; gap: 8px; }
.ag-msg.me { justify-content: flex-end; }
.ag-ava {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 2px;
}
.ag-ava.user {
  background: linear-gradient(160deg, #b9c8f5, #9fb2ee);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 6px 14px -10px rgba(90, 120, 210, .9);
}
.ag-ava.user svg { width: 18px; height: 18px; }
.ag-ava.bot {
  background: linear-gradient(160deg, #eaf2ff, #cfe0ff);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 6px 14px -10px rgba(90, 120, 210, .85);
}
.ag-ava.bot svg { width: 22px; height: 22px; }

.ag-b {
  max-width: calc(100% - 76px); padding: 11px 13px; border-radius: 14px;
  font-size: 12.8px; line-height: 1.72; color: #22304d;
  background: #fff; border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 10px 26px -22px rgba(30, 50, 100, .55);
}
.ag-msg.me .ag-b {
  background: linear-gradient(160deg, #dee6ff, #d2dcfb);
  color: #22304d; border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 26px -22px rgba(60, 90, 190, .6);
}

/* 过程 / 结果卡 */
.ag-card {
  flex: 1 1 auto; min-width: 0; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgba(240, 246, 255, .96), rgba(232, 241, 255, .94));
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 14px 32px -26px rgba(30, 60, 130, .5);
}
.ag-card-h {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-bottom: 1px solid rgba(120, 160, 230, .14);
}
.ag-ci {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: linear-gradient(160deg, #4f7df0, #6f9bff); color: #fff;
  box-shadow: 0 6px 12px -8px rgba(60, 110, 230, .9);
}
.ag-ci svg { width: 15px; height: 15px; }
.ag-card-h b { font-size: 13px; color: #16213c; letter-spacing: -.1px; }
.ag-cn { margin-left: auto; font-size: 10.5px; color: #7a86a4; }
.ag-chev { margin-left: 6px; font-style: normal; font-size: 11px; color: #7a86a4; }
.ag-steps { padding: 6px 6px 8px; }
.ag-step {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center; gap: 9px; padding: 7px 6px; border-radius: 9px;
}
.ag-step + .ag-step { border-top: 1px solid rgba(120, 160, 230, .10); }
.ag-no {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 700; color: #2f5bd6;
  background: #fff; border: 1.2px solid rgba(110, 150, 240, .55);
}
.ag-st { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ag-st { font-size: 12px; color: #16213c; font-weight: 600; }
.ag-st i { font-size: 10px; font-style: normal; font-weight: 400; color: #8b96af;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-rs { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #12a05c; font-weight: 600; }
.ag-rs .dot { width: 6px; height: 6px; border-radius: 50%; background: #17b26a; display: block; }
.ag-step.bad .ag-rs { color: #c21d3f; }
.ag-step.bad .ag-rs .dot { background: #e0455f; }
/* 流式：正在执行的工具行 + 正文尾光标 */
.ag-step.wait .ag-rs { color: #b4760d; }
.ag-step.wait .ag-rs .dot { background: #e8a13a; animation: ag-pulse 1s ease-in-out infinite; }
.ag-step.wait .ag-no { border-color: rgba(232, 161, 58, .7); color: #b4760d; }
@keyframes ag-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.ag-caret {
  display: inline-block; width: 6px; height: 13px; margin-left: 3px;
  vertical-align: -2px; border-radius: 2px;
  background: linear-gradient(180deg, #5b8cef, #8b6cf0);
  animation: ag-caret 1s steps(1) infinite;
}
@keyframes ag-caret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .12; } }
.ag-res { padding: 11px 13px 13px; font-size: 12.5px; line-height: 1.78; color: #22304d; }
.ag-res p { margin: 0; }
.ag-res p + p { margin-top: 5px; }

/* 输入胶囊 */
.ag-form {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 12px 14px; padding: 6px 6px 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 12px 28px -22px rgba(30, 60, 130, .6);
}
.ag-in-ic { flex: 0 0 18px; color: #8b96af; display: grid; place-items: center; }
.ag-in-ic svg { width: 18px; height: 18px; }
.ag-form textarea {
  flex: 1; min-height: 24px; max-height: 96px; padding: 6px 2px;
  border: 0; background: transparent; font-size: 12.8px; color: #22304d; resize: none;
}
.ag-form textarea:focus { outline: none; box-shadow: none; }
.ag-form textarea::placeholder { color: #9aa4bc; }
.ag-send {
  flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #5b8cef, #7f7bf0);
  box-shadow: 0 10px 20px -12px rgba(80, 110, 230, .95);
}
.ag-send svg { width: 18px; height: 18px; }

.ag-hello { color: #33405e; }
.ag-hello b { color: #16213c; }

@media (max-width: 860px) {
  .ag-panel { width: 100vw; }
  .ag-b { max-width: calc(100% - 70px); }
}

/* ============================================================
 * 18. R31：面板铺满 / 头像菜单 / 系统信息 / 任务聊天 / 上传
 * ============================================================ */

/* 主列铺满：之前 .page 上的 margin:auto 让稀疏页面缩成中间一窄条 */
html[data-theme="v09"] main#page,
html[data-theme="v09"] #page.page {
  width: 100%; max-width: none; margin: 0;
  justify-self: stretch; align-self: stretch;
}

/* 头像菜单 */
html[data-theme="v09"] .me-menu {
  position: fixed; z-index: 88; min-width: 172px; padding: 6px;
  background: #fff; border: 1px solid rgba(24, 40, 80, .10); border-radius: 12px;
  box-shadow: 0 24px 50px -26px rgba(28, 44, 84, .5), 0 2px 6px rgba(24, 40, 80, .06);
  display: flex; flex-direction: column; gap: 2px;
}
html[data-theme="v09"] .me-menu .mm-hd {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px 9px;
  border-bottom: 1px solid rgba(24, 40, 80, .07); margin-bottom: 4px;
}
html[data-theme="v09"] .me-menu .mm-hd span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
html[data-theme="v09"] .me-menu .mm-hd b { font-size: 12.5px; color: #1b2340; }
html[data-theme="v09"] .me-menu .mm-hd i { font-size: 10px; font-style: normal; color: #8a94ad; }
html[data-theme="v09"] .me-menu .mm-it {
  text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 8px;
  font-family: inherit; font-size: 12.5px; color: #1b2340; cursor: pointer;
}
html[data-theme="v09"] .me-menu .mm-it:hover { background: rgba(61, 107, 234, .09); color: #2b57d6; }
html[data-theme="v09"] .me-menu .mm-it.danger { color: #d2264a; }
html[data-theme="v09"] .me-menu .mm-it.danger:hover { background: rgba(210, 38, 74, .08); }

/* 两列 kv（系统信息 / 个人资料） */
html[data-theme="v09"] dl.kv.wide.two {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}
html[data-theme="v09"] dl.kv.wide.two dt,
html[data-theme="v09"] dl.kv.wide.two dd { border-bottom: 1px solid rgba(24, 40, 80, .06); }
@media (max-width: 760px) {
  html[data-theme="v09"] dl.kv.wide.two { grid-template-columns: minmax(0, 1fr); }
}

/* 系统信息：额度条 */
html[data-theme="v09"] .quota-tbl td { vertical-align: middle; }
html[data-theme="v09"] .quota { display: flex; align-items: center; gap: 8px; min-width: 120px; }
html[data-theme="v09"] .quota-bar {
  flex: 1; height: 6px; border-radius: 99px; background: rgba(24, 40, 80, .08); overflow: hidden;
}
html[data-theme="v09"] .quota-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #5b8cef, #8b6cf0); }
html[data-theme="v09"] .quota-t { font-size: 11px; color: #5a6480; font-variant-numeric: tabular-nums; }

/* 任务聊天：固定高度可滚动，头像 + 内容像 IM */
html[data-theme="v09"] .chat-scroll {
  height: min(52vh, 420px); overflow-y: auto; padding: 4px 2px 2px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
html[data-theme="v09"] .chat-row { display: flex; gap: 9px; align-items: flex-start; }
html[data-theme="v09"] .chat-row.mine { flex-direction: row-reverse; }
html[data-theme="v09"] .chat-body { max-width: min(70%, 460px); display: flex; flex-direction: column; gap: 4px; }
html[data-theme="v09"] .chat-row.mine .chat-body { align-items: flex-end; }
html[data-theme="v09"] .chat-hd { font-size: 10.5px; color: #8a94ad; display: flex; gap: 6px; align-items: baseline; }
html[data-theme="v09"] .chat-hd b { font-size: 11.5px; color: #414b66; font-weight: 600; }
html[data-theme="v09"] .chat-bd {
  padding: 8px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.65;
  background: rgba(255, 255, 255, .9); border: 1px solid rgba(24, 40, 80, .07);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
html[data-theme="v09"] .chat-row.mine .chat-bd {
  background: linear-gradient(135deg, #4d7bef, #7a63f0); color: #fff; border-color: transparent;
}
html[data-theme="v09"] .chat-file {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
  padding: 6px 9px; border-radius: 10px; font-size: 11.5px; text-decoration: none;
  background: rgba(61, 107, 234, .08); color: #2b57d6; border: 1px solid rgba(61, 107, 234, .18);
}
html[data-theme="v09"] .chat-row.mine .chat-file { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .3); }
html[data-theme="v09"] .chat-sys { align-self: center; font-size: 11px; color: #8a94ad; background: rgba(24, 40, 80, .05); padding: 3px 10px; border-radius: 99px; }
html[data-theme="v09"] .chat-input { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
html[data-theme="v09"] .chat-input .inp { flex: 1; }
html[data-theme="v09"] .chat-drop-hint {
  margin-top: 6px; font-size: 11px; color: #96a0b8;
}
html[data-theme="v09"] .chat-drop-on {
  outline: 2px dashed rgba(61, 107, 234, .55); outline-offset: -6px;
  background: rgba(61, 107, 234, .05);
}

/* 上传区：拖拽/粘贴高亮 */
html[data-theme="v09"] .up-card.dragging,
html[data-theme="v09"] .file-drop.dragging {
  outline: 2px dashed rgba(61, 107, 234, .6); outline-offset: -8px;
  background: rgba(61, 107, 234, .06);
}
html[data-theme="v09"] .file-drop {
  border: 1px dashed rgba(24, 40, 80, .18); border-radius: 12px; padding: 14px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: #5a6480;
}
html[data-theme="v09"] .file-drop .fd-hint { color: #96a0b8; }
/* 官方额度表：定宽四列，避免最后一列被挤出去（选择器与 .tbl-wrap > .tbl thead th 同权重，靠后覆盖） */
html[data-theme="v09"] .quota-tbl { width: 100%; table-layout: fixed; }
html[data-theme="v09"] .tbl-wrap > .quota-tbl thead th:nth-child(1) { width: 29% !important; }
html[data-theme="v09"] .tbl-wrap > .quota-tbl thead th:nth-child(2) { width: 21% !important; }
html[data-theme="v09"] .tbl-wrap > .quota-tbl thead th:nth-child(3) { width: 29% !important; }
html[data-theme="v09"] .tbl-wrap > .quota-tbl thead th:nth-child(4) { width: 21% !important; }
html[data-theme="v09"] .quota-tbl td, html[data-theme="v09"] .quota-tbl th { white-space: normal !important; }
/* 用量表：主项 + 第二行小注（今日用量 / 对象数 / 口径说明） */
html[data-theme="v09"] .quota-tbl .td-main b { display: block; font-weight: 600; }
html[data-theme="v09"] .quota-tbl .td-main .sub {
  display: block; margin-top: 2px; font-size: 11px; line-height: 1.5; color: #8891a8;
}
html[data-theme="v09"] .quota-foot {
  margin: 0; padding: 9px 16px 11px; font-size: 11.5px; line-height: 1.6; color: #6b7488;
  border-top: 1px solid rgba(24, 40, 80, .07); background: rgba(24, 40, 80, .015);
}
html[data-theme="v09"] .quota-foot.warn { color: #a4551c; background: rgba(226, 138, 62, .07); }
/* 飞书孤儿附件对账：结论一行 + 表格 + 底部操作条 */
html[data-theme="v09"] .ok-line, html[data-theme="v09"] .fs-line {
  margin: 0 0 10px; font-size: 12.5px; line-height: 1.7; color: #3d4560;
}
html[data-theme="v09"] .ok-line { color: #1c7a52; }
html[data-theme="v09"] .fs-line b { font-weight: 700; }
html[data-theme="v09"] .fs-line b.warn { color: #a4551c; }
html[data-theme="v09"] .fs-acts {
  display: flex; align-items: center; gap: 10px; margin-top: 11px; padding-top: 10px;
  border-top: 1px dashed rgba(24, 40, 80, .1);
}
html[data-theme="v09"] .fs-acts .muted { font-size: 11.5px; }
/* 系统信息页顶部两栏：各自按内容高度，避免左栏被右栏拉出一大片空白 */
html[data-theme="v09"] .grid-2.sys-top { align-items: start; }
/* 智能体每日花费：近 30 天柱状图 */
html[data-theme="v09"] .spend-chart { margin-top: 12px; padding-top: 11px; border-top: 1px dashed rgba(24, 40, 80, .1); }
html[data-theme="v09"] .spend-chart .sc-cap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 11px; letter-spacing: .4px; color: #8891a8; margin-bottom: 8px;
}
html[data-theme="v09"] .spend-chart .sc-cap i { font-style: normal; color: #a3acc2; }
html[data-theme="v09"] .spend-chart .sc-bars {
  display: flex; align-items: flex-end; gap: 3px; height: 62px;
  padding: 0 1px; border-bottom: 1px solid rgba(24, 40, 80, .1);
}
html[data-theme="v09"] .spend-chart .sc-col {
  flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end;
  border-radius: 3px 3px 0 0; background: rgba(24, 40, 80, .04);
}
html[data-theme="v09"] .spend-chart .sc-col i {
  display: block; width: 100%; border-radius: 3px 3px 0 0; min-height: 0;
  background: linear-gradient(180deg, #8b6cf0, #5b8cef);
}
html[data-theme="v09"] .spend-chart .sc-col:not(.on) { background: transparent; }
html[data-theme="v09"] .spend-chart .sc-axis {
  display: flex; justify-content: space-between; margin-top: 4px;
  font-size: 10.5px; color: #a3acc2; font-variant-numeric: tabular-nums;
}
html[data-theme="v09"] .spend-chart .sc-sum {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px;
  font-size: 11.5px; color: #7c87a3;
}
html[data-theme="v09"] .spend-chart .sc-sum b {
  font-weight: 650; color: #1b2340; font-variant-numeric: tabular-nums; margin-left: 2px;
}
/* 统计窗口选择器 */
html[data-theme="v09"] .ms-days { display: flex; justify-content: flex-end; margin: -2px 0 8px; }
html[data-theme="v09"] .ms-days .inp { width: auto; min-width: 108px; height: 30px; font-size: 12px; }
/* 快捷入口磁贴（我的工作台空状态也撑满版面） */
html[data-theme="v09"] .quick-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px;
}
html[data-theme="v09"] .quick-tile {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: 14px; text-decoration: none; color: inherit;
  background: rgba(255, 255, 255, .66); border: 1px solid rgba(24, 40, 80, .07);
  font-family: inherit; transition: background .15s, border-color .15s, transform .15s;
}
html[data-theme="v09"] .quick-tile:hover {
  background: #fff; border-color: rgba(120, 160, 240, .55); transform: translateY(-1px);
}
html[data-theme="v09"] .quick-tile b { font-size: 13px; color: #1b2340; }
html[data-theme="v09"] .quick-tile i { font-size: 11.5px; font-style: normal; color: #8a94ad; }

/* 页面标题里的「返回」不许被长标题挤成两行 */
html[data-theme="v09"] .page-title .crumb {
  flex: 0 0 auto; white-space: nowrap; align-self: center;
}
html[data-theme="v09"] .page-title h1 { min-width: 0; }

/* ============================================================
 * 19. 智能体历史会话（R32）
 * ============================================================ */
.ag-head .ag-x { margin-left: 0; }
.ag-hbtn {
  margin-left: auto; width: 30px; height: 30px; border-radius: 9px; cursor: pointer;
  display: grid; place-items: center; color: #4b5a80;
  border: 1px solid rgba(24, 40, 80, .08); background: rgba(255, 255, 255, .72);
}
.ag-hbtn svg { width: 17px; height: 17px; }
.ag-hbtn:hover { background: #fff; color: #2b57d6; border-color: rgba(61, 107, 234, .45); }

.ag-sess {
  position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  animation: ag-sess-in .18s ease;
}
@keyframes ag-sess-in { from { opacity: .45; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.ag-sess-h {
  display: flex; align-items: center; gap: 8px;
  padding: 15px 14px 12px; border-bottom: 1px solid rgba(24, 40, 80, .07);
}
.ag-sess-h b { font-size: 14px; color: #1b2340; }
.ag-sess-n { font-size: 11px; color: #8a94ad; background: rgba(24, 40, 80, .05); padding: 2px 7px; border-radius: 99px; }
.ag-sess-b { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.ag-sess-tip { padding: 30px 16px; text-align: center; color: #8a94ad; font-size: 12px; line-height: 1.85; }
.ag-sitem { display: flex; align-items: stretch; border-radius: 12px; border: 1px solid transparent; }
.ag-sitem:hover { background: rgba(240, 245, 255, .92); border-color: rgba(61, 107, 234, .18); }
.ag-sitem.on { background: rgba(232, 240, 255, .96); border-color: rgba(61, 107, 234, .34); }
.ag-sopen {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: left;
  padding: 9px 10px; border: 0; background: none; cursor: pointer; font-family: inherit;
  border-radius: 12px; color: inherit;
}
.ag-srow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ag-srow b { font-size: 12.8px; color: #1b2340; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-srow em {
  flex: 0 0 auto; font-style: normal; font-size: 9.5px; font-weight: 700; color: #2b57d6;
  background: rgba(61, 107, 234, .13); padding: 1px 6px; border-radius: 99px;
}
.ag-sprev { font-size: 11.5px; color: #6b7691; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-smeta { font-size: 10.5px; color: #9aa4bb; }
.ag-sdel {
  flex: 0 0 30px; align-self: center; margin-right: 6px; height: 30px; border-radius: 8px;
  border: 1px solid transparent; background: none; color: #b9c1d4; cursor: pointer;
  display: grid; place-items: center;
}
.ag-sdel svg { width: 15px; height: 15px; }
.ag-sdel:hover { color: #d2264a; background: rgba(210, 38, 74, .08); border-color: rgba(210, 38, 74, .2); }
.ag-sess-f { padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(24, 40, 80, .07); }
.ag-newbtn {
  width: 100%; height: 38px; border-radius: 11px; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: #fff; border: 0;
  background: linear-gradient(135deg, #4d7bef, #7a63f0);
  box-shadow: 0 12px 26px -16px rgba(77, 123, 239, .9);
}
.ag-newbtn svg { width: 16px; height: 16px; }
.ag-newbtn:hover { filter: brightness(1.04); }

/* ============================================================
 * 20. 手机端功能对齐（R32）：左栏改抽屉、顶部条、表格不丢字段
 * ============================================================ */
.m-top { display: none; }

@media (max-width: 1080px) {
  html[data-theme="v09"] .app-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "top" "main";
    padding: 0 10px 84px;
    row-gap: 0;
  }
  /* 顶部条：汉堡 + 品牌 + 搜索/通知/头像 */
  .m-top {
    grid-area: top; display: flex; align-items: center; gap: 8px;
    position: sticky; top: 0; z-index: 82;
    margin: 0 -10px 10px; padding: 8px 12px;
    background: rgba(255, 255, 255, .84);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 12px 28px -24px rgba(28, 44, 84, .5);
  }
  .m-burger {
    flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
    border: 1px solid rgba(24, 40, 80, .08); background: rgba(255, 255, 255, .86);
    display: grid; place-items: center; padding: 9px 8px;
  }
  .m-burger span { display: block; width: 100%; height: 1.8px; border-radius: 2px; background: #3f4b68; }
  .m-burger span + span { margin-top: 4px; }
  .m-brand { display: flex; align-items: center; gap: 7px; text-decoration: none; color: #1b2340; min-width: 0; }
  .m-brand .logo {
    width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
    font-size: 13px; font-weight: 800; color: #fff;
    background: linear-gradient(145deg, #6d8ef5, #8b6cf0);
  }
  .m-brand b { font-size: 13.5px; letter-spacing: -.2px; white-space: nowrap; }
  .m-top-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
  .m-ib {
    position: relative; width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
    border: 1px solid rgba(24, 40, 80, .08); background: rgba(255, 255, 255, .8);
    display: grid; place-items: center; color: #485573;
  }
  .m-ib svg { width: 18px; height: 18px; }
  .m-ib.has-dot::after {
    content: ''; position: absolute; top: 7px; right: 8px; width: 6px; height: 6px;
    border-radius: 50%; background: #e0455f; box-shadow: 0 0 0 2px #fff;
  }
  .m-av {
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-family: inherit;
    font-size: 13px; font-weight: 700; color: #3b4a6d;
    background: linear-gradient(160deg, #e7eeff, #d3e0ff);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 0 0 1.5px rgba(61, 107, 234, .3);
  }

  /* 左栏 → 抽屉（内容与桌面 100% 一致） */
  html[data-theme="v09"] .side {
    display: flex !important;
    position: fixed; left: 0; top: 0; bottom: 0;
    width: min(85vw, 290px); height: auto; min-height: 0; max-height: none;
    border-radius: 0 20px 20px 0;
    z-index: 96; overflow: hidden;
    transform: translateX(-103%);
    transition: transform .26s cubic-bezier(.2, .8, .2, 1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .92), 28px 0 70px -34px rgba(24, 40, 80, .55);
  }
  html[data-theme="v09"] .side.open { transform: none; }
  html[data-theme="v09"] .side .side-nav { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .m-side-mask {
    position: fixed; inset: 0; z-index: 95;
    background: rgba(18, 28, 52, .34);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    animation: m-mask-in .18s ease;
  }
  @keyframes m-mask-in { from { opacity: 0; } to { opacity: 1; } }
}

/* 底部标签：新增的第 5 个是 button，样式与 a 对齐 */
.m-tabs > button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: inherit; color: #8a94ad;
}
.m-tabs > button .ic, .m-tabs > button svg { width: 21px; height: 21px; }
.m-tabs > button b { font-size: 10.5px; font-weight: 600; }
.m-tabs > button.on { color: #3d6bea; }
.m-tabs > button.on b { font-weight: 700; }

@media (max-width: 860px) {
  /* 表格拆卡片时不再隐藏列：每个单元格带列名 */
  html[data-theme="v09"] .tbl tbody td:nth-child(2),
  html[data-theme="v09"] .tbl tbody td:nth-child(4),
  html[data-theme="v09"] .tbl tbody td:nth-child(5),
  html[data-theme="v09"] .tbl tbody td:nth-child(7),
  html[data-theme="v09"] .lib-tbl tbody td:nth-child(2),
  html[data-theme="v09"] .lib-tbl tbody td:nth-child(4),
  html[data-theme="v09"] .lib-tbl tbody td:nth-child(5),
  html[data-theme="v09"] .lib-tbl tbody td:nth-child(6),
  html[data-theme="v09"] .lib-tbl tbody td:nth-child(7),
  html[data-theme="v09"] .lib-tbl tbody td:nth-child(8) { display: block !important; }

  html[data-theme="v09"] .tbl tbody tr,
  html[data-theme="v09"] .lib-tbl tbody tr {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 12px; padding: 11px 12px;
  }
  html[data-theme="v09"] .tbl tbody td,
  html[data-theme="v09"] .lib-tbl tbody td {
    grid-row: auto !important; grid-column: auto !important;
    justify-self: start !important; min-width: 0;
  }
  html[data-theme="v09"] .tbl tbody td.td-main,
  html[data-theme="v09"] .lib-tbl tbody td.td-main,
  html[data-theme="v09"] .tbl tbody td:first-child,
  html[data-theme="v09"] .lib-tbl tbody td:first-child { grid-column: 1 / -1 !important; }
  html[data-theme="v09"] .tbl tbody td.td-actions,
  html[data-theme="v09"] .lib-tbl tbody td.td-actions { grid-column: 1 / -1 !important; justify-self: end !important; }
  html[data-theme="v09"] .tbl tbody td[data-th]::before,
  html[data-theme="v09"] .lib-tbl tbody td[data-th]::before {
    content: attr(data-th);
    display: block; font-size: 10px; font-weight: 600; color: #9aa4bb;
    letter-spacing: .02em; margin-bottom: 2px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
  /* 看板条：成员列与进度条也保留 */
  .ms-m { display: block !important; }
  .ms-bar { display: block !important; }
  .ms-row { flex-wrap: wrap; row-gap: 4px; }
  .ms-n { min-width: 0; flex: 1 1 44%; }
  .ms-bar { flex: 1 1 100%; max-width: none; order: 3; }
  .ms-v2 { flex: 0 0 auto; }

  /* 弹窗内边距收一点，手机上少挤 */
  .dlg-h { padding: 14px 16px; }
  .dlg-b { padding: 16px; }
  .dlg-f { padding: 12px 16px; }
  .mask { padding: 12px; }
  /* 智能体面板：全屏时输入框贴安全区 */
  .ag-panel { width: 100vw; max-width: 100vw; }
  .ag-form { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}

/* ==================== 匿名反馈（R61） ==================== */
html[data-theme="v09"] .fb-tabs { display: inline-flex; gap: 6px; background: rgba(255,255,255,.55); border-radius: 12px; padding: 4px; }
html[data-theme="v09"] .fb-tab {
  padding: 6px 16px; border-radius: 9px; font-size: 13px; font-weight: 600;
  color: #5b6478; text-decoration: none; transition: .18s;
}
html[data-theme="v09"] .fb-tab:hover { color: var(--brand); }
html[data-theme="v09"] .fb-tab.on { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(24,40,80,.1); }

html[data-theme="v09"] .fb-compose { margin-bottom: 14px; }
html[data-theme="v09"] .fb-compose textarea {
  width: 100%; border: 1px solid rgba(24,40,80,.12); border-radius: 12px; padding: 12px 14px;
  font-size: 14px; line-height: 1.75; resize: vertical; min-height: 84px;
  background: rgba(255,255,255,.8); color: #232a3d; font-family: inherit;
}
html[data-theme="v09"] .fb-compose textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
html[data-theme="v09"] .fb-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
html[data-theme="v09"] .fb-bar .fb-tip { font-size: 11.5px; color: #8b93a5; margin-left: auto; }
html[data-theme="v09"] .fb-stage { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
html[data-theme="v09"] .fb-stage-i { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; }
html[data-theme="v09"] .fb-stage-i img { width: 100%; height: 100%; object-fit: cover; }
html[data-theme="v09"] .fb-stage-i button {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border: 0; border-radius: 50%;
  background: rgba(20,24,40,.62); color: #fff; font-size: 11px; line-height: 18px; cursor: pointer; padding: 0;
}

html[data-theme="v09"] .fb-feed { display: flex; flex-direction: column; gap: 12px; }
html[data-theme="v09"] .fb-post {
  background-color: rgba(255,255,255,.6); border: 1px solid rgba(24,40,80,.07);
  border-radius: 14px; padding: 14px 16px;
}
html[data-theme="v09"] .fb-hd { display: flex; align-items: center; gap: 9px; }
html[data-theme="v09"] .fb-av {
  width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
html[data-theme="v09"] .fb-av.sm { width: 22px; height: 22px; font-size: 11px; }
html[data-theme="v09"] .fb-who { display: flex; flex-direction: column; line-height: 1.3; }
html[data-theme="v09"] .fb-who b { font-size: 13px; color: #232a3d; }
html[data-theme="v09"] .fb-who i { font-size: 11px; color: #8b93a5; font-style: normal; }
html[data-theme="v09"] .fb-del {
  margin-left: auto; border: 0; background: transparent; color: #a8afc0; font-size: 13px;
  cursor: pointer; padding: 2px 6px; border-radius: 6px;
}
html[data-theme="v09"] .fb-del:hover { background: rgba(226,62,62,.1); color: #d33; }
html[data-theme="v09"] .fb-del.sm { font-size: 11px; }
html[data-theme="v09"] .fb-text { margin: 10px 0 0; font-size: 14px; line-height: 1.85; color: #2c3446; word-break: break-word; }
html[data-theme="v09"] .fb-imgs { display: grid; gap: 6px; margin-top: 10px; }
html[data-theme="v09"] .fb-imgs.n1 { grid-template-columns: minmax(0, 320px); }
html[data-theme="v09"] .fb-imgs.n2 { grid-template-columns: repeat(2, minmax(0, 240px)); }
html[data-theme="v09"] .fb-imgs.n3 { grid-template-columns: repeat(3, minmax(0, 200px)); }
html[data-theme="v09"] .fb-img { display: block; border-radius: 10px; overflow: hidden; background: #eef1f8; }
html[data-theme="v09"] .fb-img img { display: block; width: 100%; height: 150px; object-fit: cover; transition: .2s; }
html[data-theme="v09"] .fb-img:hover img { transform: scale(1.03); }
html[data-theme="v09"] .fb-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
html[data-theme="v09"] .fb-file {
  font-size: 12.5px; color: var(--brand); text-decoration: none; background: rgba(79,70,229,.08);
  border-radius: 8px; padding: 5px 10px;
}
html[data-theme="v09"] .fb-file i { color: #8b93a5; font-style: normal; }
html[data-theme="v09"] .fb-ft { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
html[data-theme="v09"] .fb-btn {
  display: inline-flex; align-items: center; gap: 5px; border: 0; cursor: pointer;
  background: rgba(24,40,80,.05); color: #5b6478; border-radius: 9px; padding: 5px 12px; font-size: 12.5px;
  transition: .16s;
}
html[data-theme="v09"] .fb-btn:hover { background: rgba(24,40,80,.09); color: #2c3446; }
html[data-theme="v09"] .fb-btn.on { background: rgba(226,62,62,.1); color: #d33a3a; }
html[data-theme="v09"] .fb-btn .fb-heart { font-style: normal; font-size: 14px; }
html[data-theme="v09"] .fb-hot { margin-left: auto; font-size: 11px; color: #a3aabb; }

html[data-theme="v09"] .fb-cm-box { margin-top: 12px; border-top: 1px dashed rgba(24,40,80,.1); padding-top: 10px; }
html[data-theme="v09"] .fb-cm-list { display: flex; flex-direction: column; gap: 9px; }
html[data-theme="v09"] .fb-cm { display: flex; gap: 8px; align-items: flex-start; }
html[data-theme="v09"] .fb-cm-tx { flex: 1; min-width: 0; font-size: 13px; line-height: 1.6; }
html[data-theme="v09"] .fb-cm-tx b { color: #232a3d; margin-right: 6px; }
html[data-theme="v09"] .fb-cm-tx i { font-style: normal; font-size: 11px; color: #a3aabb; }
html[data-theme="v09"] .fb-cm-tx p { margin: 2px 0 0; color: #3d4560; word-break: break-word; }
html[data-theme="v09"] .fb-cm-in { display: flex; gap: 8px; margin-top: 10px; }
html[data-theme="v09"] .fb-cm-in .inp { flex: 1; }
html[data-theme="v09"] .fb-more { text-align: center; padding: 6px 0 20px; }

@media (max-width: 700px) {
  html[data-theme="v09"] .fb-imgs.n2, html[data-theme="v09"] .fb-imgs.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme="v09"] .fb-bar { flex-wrap: wrap; }
  html[data-theme="v09"] .fb-bar .fb-tip { width: 100%; margin-left: 0; }
}

/* ==================== 玻璃卡片可点（R62） ==================== */
html[data-theme="v09"] a.kpi.is-link, html[data-theme="v09"] .kpi-row > a.kpi {
  position: relative; cursor: pointer; text-decoration: none; color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
html[data-theme="v09"] a.kpi.is-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(24, 40, 80, .13);
  border-color: rgba(79, 70, 229, .35);
}
html[data-theme="v09"] .kpi-go {
  position: absolute; right: 14px; bottom: 12px; font-size: 18px; line-height: 1;
  color: rgba(79, 70, 229, .45); transition: .16s;
}
html[data-theme="v09"] a.kpi.is-link:hover .kpi-go { color: var(--brand); transform: translateX(2px); }

html[data-theme="v09"] a.ms-kpi.is-link {
  position: relative; cursor: pointer; text-decoration: none; color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
html[data-theme="v09"] a.ms-kpi.is-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(24, 40, 80, .12);
  border-color: rgba(79, 70, 229, .32);
}
html[data-theme="v09"] .ms-go {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 16px; color: rgba(79, 70, 229, .4); transition: .16s;
}
html[data-theme="v09"] a.ms-kpi.is-link:hover .ms-go { color: var(--brand); transform: translate(2px, -50%); }

/* 任务列表顶部的「当前筛选」条：从看板点进来时解释清楚在看哪一批 */
html[data-theme="v09"] .qchips {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 0 0 10px; padding: 9px 14px; border-radius: 12px;
  background: rgba(79, 70, 229, .06); border: 1px solid rgba(79, 70, 229, .14);
}
html[data-theme="v09"] .qchips-l { font-size: 12px; color: #6b7488; }
html[data-theme="v09"] .qchip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--brand); background: #fff; border-radius: 999px; padding: 4px 10px;
  text-decoration: none; box-shadow: 0 1px 4px rgba(24,40,80,.08);
}
html[data-theme="v09"] .qchip i { font-style: normal; font-size: 10px; color: #a3aabb; }
html[data-theme="v09"] .qchip:hover i { color: #d33; }
html[data-theme="v09"] .qchips-clear { font-size: 12px; color: #6b7488; margin-left: 4px; }
html[data-theme="v09"] .qchips-clear:hover { color: var(--brand); }

/* ==================== 项目成员：添加成员选择器（R64） ==================== */
/* 原来是 <select multiple size="6">，被 .inp{height:36px} 压成两行；改成可搜索的勾选网格 */
html[data-theme="v09"] .mem-pick { border: 1px solid rgba(24,40,80,.1); border-radius: 12px; padding: 10px; background: rgba(255,255,255,.6); }
html[data-theme="v09"] .mem-pick-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
html[data-theme="v09"] .mem-pick-bar .inp { flex: 1; height: 32px; }
html[data-theme="v09"] .mem-pick-cnt { font-size: 12px; color: #6b7488; white-space: nowrap; }
html[data-theme="v09"] .mem-pick-grid {
  max-height: min(240px, 34vh); overflow-y: auto; padding-right: 4px;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 8px;
}
html[data-theme="v09"] .mem-pick-grid .pick { padding: 7px 10px; border-radius: 9px; background: #fff; }
html[data-theme="v09"] .mem-pick-grid .pick:hover { border-color: rgba(79,70,229,.35); }
html[data-theme="v09"] .mem-pick-grid .pick[hidden] { display: none; }
/* 兜底：以后真要用原生多选，别再被固定高度压扁 */
html[data-theme="v09"] .inp[multiple] { height: auto; min-height: 132px; padding: 6px; }

/* 弹窗统一改成「头尾固定、中间滚动」：内容一多（比如项目成员 24 人）不再把表单挤出可视区 */
html[data-theme="v09"] .mask > .dlg {
  display: flex; flex-direction: column; overflow: hidden;
  max-height: min(90vh, 720px);
}
html[data-theme="v09"] .dlg > .dlg-h { flex: 0 0 auto; }
html[data-theme="v09"] .dlg > .dlg-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
html[data-theme="v09"] .dlg > .dlg-f { flex: 0 0 auto; }

/* ==================== 按人分派子任务：多人勾选（R67） ==================== */
html[data-theme="v09"] #dp-tbl th.col-h { cursor: pointer; user-select: none; white-space: nowrap; }
html[data-theme="v09"] #dp-tbl th.col-h:hover { color: var(--brand); }
html[data-theme="v09"] #dp-tbl th.col-h.on { background: rgba(79,70,229,.1); color: var(--brand); }
html[data-theme="v09"] #dp-tbl td.who .dp-chk { width: 16px; height: 16px; cursor: pointer; accent-color: #4F46E5; }
html[data-theme="v09"] .dispatch-hint strong, html[data-theme="v09"] .dispatch-hint b { color: var(--brand); }

/* 分派矩阵：人多了要横向滚动，子任务名列固定在最左，不要跟着滚走 */
html[data-theme="v09"] #dp-tbl th:first-child,
html[data-theme="v09"] #dp-tbl td:first-child {
  position: sticky; left: 0; z-index: 1;
  background: rgba(255,255,255,.97);
  box-shadow: 1px 0 0 rgba(24,40,80,.06);
  text-align: left; white-space: nowrap; min-width: 120px;
}
html[data-theme="v09"] #dp-tbl thead th:first-child { background: rgba(247,248,253,.98); }

/* 分派矩阵：显式给第一列宽度，否则 24 个人的列会把「子任务」列挤成 0 宽 */
html[data-theme="v09"] #dp-tbl { table-layout: auto; width: max-content; min-width: 100%; }
html[data-theme="v09"] #dp-tbl th:first-child,
html[data-theme="v09"] #dp-tbl td:first-child {
  width: 140px; min-width: 140px; max-width: 140px;
}
html[data-theme="v09"] #dp-tbl th.who, html[data-theme="v09"] #dp-tbl td.who { width: 48px; min-width: 48px; }
/* ==================== 子技能（R68） ==================== */
/* 一块「工具货架」：上面是管理台（老板 / AI 主管），下面是我能用的卡片 */
html[data-theme="v09"] .sk-count { font-size: 12.5px; color: #6b7488; }
html[data-theme="v09"] .sk-count b { color: var(--brand); font-size: 15px; margin: 0 2px; }

html[data-theme="v09"] .sk-admin { margin-bottom: 16px; }
html[data-theme="v09"] .sk-tblwrap { width: 100%; overflow-x: auto; }
html[data-theme="v09"] .sk-tbl { width: 100%; min-width: 720px; }
html[data-theme="v09"] .sk-tbl tr.off td { opacity: .62; }
html[data-theme="v09"] .sk-nm { display: inline-flex; align-items: center; gap: 7px; }
html[data-theme="v09"] .sk-nm i {
  font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; background: rgba(79,70,229,.1); color: var(--brand); font-size: 14px;
}
html[data-theme="v09"] .sk-nm b { font-size: 13.5px; color: #232a3d; }
html[data-theme="v09"] .sk-sumsm { display: block; font-size: 11.5px; color: #8b93a7; margin-top: 3px; max-width: 340px; }
html[data-theme="v09"] .sk-last { font-size: 10.5px; color: #a3aabb; margin-top: 2px; white-space: nowrap; }
html[data-theme="v09"] .sk-tbl td.sk-ops { text-align: right; white-space: nowrap; }
html[data-theme="v09"] .sk-tbl td.sk-ops .btn { margin-left: 4px; }

/* 卡片 */
html[data-theme="v09"] .sk-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 14px; margin-bottom: 8px;
}
html[data-theme="v09"] .sk-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid rgba(24,40,80,.09); border-radius: 16px;
  padding: 16px 16px 13px; cursor: pointer; outline: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
html[data-theme="v09"] .sk-card:hover, html[data-theme="v09"] .sk-card:focus-visible {
  transform: translateY(-2px); box-shadow: 0 10px 26px rgba(24,40,80,.12); border-color: rgba(79,70,229,.34);
}
html[data-theme="v09"] .sk-card.off { cursor: default; background: rgba(255,255,255,.62); }
html[data-theme="v09"] .sk-card.off:hover { transform: none; box-shadow: none; border-color: rgba(24,40,80,.09); }
html[data-theme="v09"] .sk-ic {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, rgba(79,70,229,.14), rgba(79,70,229,.06));
  color: var(--brand); font-size: 20px; font-weight: 700;
}
html[data-theme="v09"] .sk-card.off .sk-ic { background: rgba(24,40,80,.06); color: #98a0b3; }
html[data-theme="v09"] .sk-hd { display: flex; align-items: center; gap: 8px; }
html[data-theme="v09"] .sk-hd h3 { margin: 0; font-size: 15px; color: #1d2436; font-weight: 700; }
html[data-theme="v09"] .sk-sum { margin: 0; font-size: 12.5px; line-height: 1.65; color: #5a6078; min-height: 42px; }
html[data-theme="v09"] .sk-ft {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 9px; border-top: 1px dashed rgba(24,40,80,.09);
}
html[data-theme="v09"] .sk-meta { font-size: 11px; color: #a3aabb; }
html[data-theme="v09"] .sk-go { font-size: 12.5px; font-weight: 700; color: var(--brand); }
html[data-theme="v09"] .sk-card.off .sk-go { color: #a3aabb; font-weight: 600; }

html[data-theme="v09"] .sk-off { margin-top: 18px; }
html[data-theme="v09"] .sk-h3 { font-size: 13px; color: #6b7488; font-weight: 650; margin: 0 0 8px; }
html[data-theme="v09"] .sk-note { font-size: 11.5px; margin-top: 8px; }

/* 弹层里的表单与结果 */
html[data-theme="v09"] .sk-help {
  font-size: 12.5px; line-height: 1.7; color: #4a5169; background: rgba(79,70,229,.055);
  border: 1px solid rgba(79,70,229,.14); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px;
}
html[data-theme="v09"] .sk-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 14px; }
html[data-theme="v09"] .sk-form .fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html[data-theme="v09"] .sk-form .fld.wide { grid-column: 1 / -1; }
html[data-theme="v09"] .sk-form .inp { height: 34px; }
html[data-theme="v09"] .sk-form textarea.inp { height: auto; min-height: 76px; padding: 8px 10px; line-height: 1.6; resize: vertical; }

html[data-theme="v09"] .sk-out { margin-top: 14px; border-top: 1px dashed rgba(24,40,80,.1); padding-top: 12px; }
html[data-theme="v09"] .sk-hint { font-size: 12px; color: #a3aabb; padding: 10px 0; }
html[data-theme="v09"] .sk-err {
  font-size: 12.5px; color: #b3223f; background: rgba(211,34,74,.07);
  border: 1px solid rgba(211,34,74,.2); border-radius: 10px; padding: 9px 12px;
}
html[data-theme="v09"] .sk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
html[data-theme="v09"] .sk-kpi {
  border: 1px solid rgba(24,40,80,.09); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.9);
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
html[data-theme="v09"] .sk-kpi-l { font-size: 11px; color: #7b8398; }
html[data-theme="v09"] .sk-kpi-v { font-size: 19px; line-height: 1.25; color: #1d2436; font-variant-numeric: tabular-nums; word-break: break-all; }
html[data-theme="v09"] .sk-kpi i { font-style: normal; font-size: 11px; color: #a3aabb; }
html[data-theme="v09"] .sk-kpi.t-ok { border-color: rgba(21,160,90,.28); background: rgba(21,160,90,.05); }
html[data-theme="v09"] .sk-kpi.t-ok .sk-kpi-v { color: #127a46; }
html[data-theme="v09"] .sk-kpi.t-warn { border-color: rgba(214,140,20,.3); background: rgba(214,140,20,.06); }
html[data-theme="v09"] .sk-kpi.t-warn .sk-kpi-v { color: #9c6508; }
html[data-theme="v09"] .sk-kpi.t-bad { border-color: rgba(211,34,74,.28); background: rgba(211,34,74,.055); }
html[data-theme="v09"] .sk-kpi.t-bad .sk-kpi-v { color: #b3223f; }

html[data-theme="v09"] .sk-res { margin-top: 12px; width: 100%; }
html[data-theme="v09"] .sk-res th.r, html[data-theme="v09"] .sk-res td.r { text-align: right; font-variant-numeric: tabular-nums; }
html[data-theme="v09"] .sk-res td { font-size: 12.5px; }
html[data-theme="v09"] .sk-notes {
  margin: 12px 0 0; padding: 10px 12px 10px 26px; border-radius: 12px;
  background: #f8f9fd; border: 1px solid #eef0f7; color: #5a6078; font-size: 12px; line-height: 1.75;
}
html[data-theme="v09"] .sk-notes li + li { margin-top: 4px; }

/* 派发弹层 */
html[data-theme="v09"] .gr-quick { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
html[data-theme="v09"] .gr-quick-l { font-size: 11.5px; color: #8b93a7; }
html[data-theme="v09"] .gr-cnt { margin-top: 10px; font-size: 12px; color: #6b7488; }

@media (max-width: 700px) {
  html[data-theme="v09"] .sk-grid { grid-template-columns: minmax(0, 1fr); }
  html[data-theme="v09"] .sk-form { grid-template-columns: minmax(0, 1fr); }
  html[data-theme="v09"] .sk-sum { min-height: 0; }
}

/* 管理台表格：把「子任务」列和操作列都收窄一点，1132px 宽（含左栏）也不会把「编辑」挤出去 */
html[data-theme="v09"] .sk-tbl { min-width: 640px; }
html[data-theme="v09"] .sk-tbl td.sk-ops { padding-right: 10px; }
html[data-theme="v09"] .sk-tbl td.sk-ops .btn { padding: 0 9px; font-size: 11.5px; }
html[data-theme="v09"] .sk-sumsm { max-width: 230px; }

/* ==================== 返回上一页（R69） ==================== */
/* 每个「跳进来」的页面右上角都有一颗胶囊返回：回到用户刚才待的那一页（含当时的筛选） */
html[data-theme="v09"] .page-actions > .crumb-top {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; margin: 0 2px 0 0;
  border-radius: 999px; background: #fff; border: 1px solid rgba(24,40,80,.12);
  box-shadow: 0 1px 3px rgba(24,40,80,.05); font-size: 12.5px; color: #4a5169;
  text-decoration: none; transition: color .16s, border-color .16s;
}
html[data-theme="v09"] .page-actions > .crumb-top:hover { color: var(--brand); border-color: rgba(79,70,229,.36); }
html[data-theme="v09"] .page-h > .crumb-top {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; margin: 0 10px 0 0;
  align-self: flex-start; border-radius: 999px; background: #fff;
  border: 1px solid rgba(24,40,80,.12); font-size: 12.5px; color: #4a5169; text-decoration: none;
}
html[data-theme="v09"] .page-h > .crumb-top:hover { color: var(--brand); border-color: rgba(79,70,229,.36); }
@media (max-width: 700px) {
  html[data-theme="v09"] .page-actions > .crumb-top { height: 28px; padding: 0 10px; }
}
