/* ============================================================
   飞书 Web — 基础样式表（界面按参考截图的覆盖见 feishu.css）
   所有尺寸取自参考截图实测（2902×1640 @2x = 1451×820 logical）
   ============================================================ */

/* ===== 设计 token（实测值） ===== */
:root {
  /* 布局：实测三栏 228 / 288 / 剩余，面板间 6px 缝隙 */
  --rail-w: 228px;
  --list-w: 288px;
  --gap: 6px;

  /* 文本色阶 */
  --t1: #1f2329;   /* 主文本 */
  --t2: #646a73;   /* 次要文本 */
  --t3: #8f959e;   /* 三级文本/时间 */
  --t4: #a8abb2;   /* 占位符 */

  /* 面板与分隔 */
  --panel: #fcfcfc;
  --white: #ffffff;
  --line: #dfe0e1;
  --line-soft: #eff0f1;

  /* 品牌色 */
  --blue: #3370ff;
  --blue-weak: #e1eaff;
  --blue-hover: #f0f4ff;
  --red: #f54a45;
  --green: #34c724;
  --orange: #ff8800;
  --purple: #7f3bf5;

  /* 悬浮/选中 */
  --hover: #f2f3f5;
  --active: #e8e9eb;

  --radius: 8px;
  --radius-lg: 12px;

  /* 字体：飞书桌面端字体栈 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--t1);
  /* 桌面底色：实测导航栏外露的蓝灰渐变 */
  background: linear-gradient(160deg, #dbe9f4 0%, #e2eaf4 38%, #d5def7 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit; font-size: inherit; color: inherit;
  /* 必须显式清掉 UA 默认边框/背景/内边距，否则部分渲染环境下每个 button 都会带灰框 */
  border: 0; background: none; padding: 0;
  cursor: pointer; text-align: inherit;
}
input, textarea { font-family: inherit; }

/* 滚动条：飞书为细窄半透明，悬浮才明显 */
.scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll::-webkit-scrollbar-track { background: transparent; }
.scroll::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; border: 2px solid transparent; background-clip: content-box; }
.scroll:hover::-webkit-scrollbar-thumb { background: rgba(31,35,41,.18); background-clip: content-box; }
.scroll::-webkit-scrollbar-thumb:hover { background: rgba(31,35,41,.3); background-clip: content-box; }

/* ============================================================
   应用骨架：导航 228 | 列表 288 | 6px 缝 | 主区
   ============================================================ */
/* 三列 + 主区左外边距做出 6px 缝隙（缝隙处露出桌面渐变底色，与截图一致）
   注意：不要用第 4 条空轨道来做缝隙——DOM 只有 3 个子元素，
   主区会落进缝隙轨道导致宽度只剩 6px。 */
/* 自适应缩放：整套 UI 的尺寸是照飞书 1463px 宽的截图 1:1 还原的。
   用户反馈在全屏（约 1470px）下手动 Cmd+- 到 90% 观感最舒服，
   这里把该缩放做成默认，并对更窄的窗口继续等比收缩，
   使内置浏览器侧栏（675~900px）也能完整看到三栏而不被裁。

   用 zoom 而不是 transform: scale()：zoom 会真正改变布局盒子尺寸，
   高度继承、滚动区、固定定位都跟着换算；scale 只做视觉变换，
   原盒子仍按原尺寸占位，会在右侧和底部留出空白条。 */
:root { --ui-zoom: .9; }   /* 全屏默认即 90%，对齐用户手动缩放后的观感 */

/* 更窄时继续收缩：取值≈视口宽/1100(设计宽)，保证三栏完整可见 */
@media (max-width: 1300px) { :root { --ui-zoom: .84; } }
@media (max-width: 1150px) { :root { --ui-zoom: .78; } }
@media (max-width: 1000px) { :root { --ui-zoom: .72; } }
@media (max-width: 860px)  { :root { --ui-zoom: .64; } }
@media (max-width: 720px)  { :root { --ui-zoom: .58; } }

.app {
  display: grid;
  grid-template-columns: var(--rail-w) var(--list-w) 1fr;
  zoom: var(--ui-zoom);
  /* 高度用 100%（继承已被 zoom 换算过的 body 高），不要用 100vh 或
     calc(100vh / zoom)：zoom 已经改了 vh 的换算基准，再除一次是重复补偿。 */
  height: 100%;
  min-width: 1100px;
}
.main { margin-left: var(--gap); grid-column: 3; min-width: 0; }

/* ============================================================
   左侧导航栏
   ============================================================ */
.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  /* 导航栏本身透明，露出 body 渐变——与截图一致 */
  padding: 0 8px;
  overflow: hidden;
}

/* --- 交通灯：实测直径 14，圆心 y=17，起始 x=12，间距 20 --- */
.rail__traffic {
  display: flex;
  gap: 6px;
  padding: 10px 0 0 4px;
  height: 34px;
  align-items: flex-start;
}
.tl { width: 14px; height: 14px; border-radius: 50%; display: block; }
.tl--close { background: #ff5f57; }
.tl--min   { background: #febc2e; }
.tl--max   { background: #28c840; }

/* --- 头像行 --- */
.rail__me {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 0 2px;
  height: 52px;
}
.rail__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(31,35,41,.06);
  transition: transform .12s ease;
}
.rail__avatar:hover { transform: scale(1.04); }
.rail__add {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: none; background: none; padding: 0;
  color: #4e5969;
  cursor: pointer;
  border-radius: 50%;
  transition: background .12s ease;
}
.rail__add:hover { background: rgba(255,255,255,.55); }

/* --- 搜索框：实测宽 212（左右各 8 内缩），高 36 --- */
.rail__search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  margin: 6px 0 12px;
  padding: 0 11px;
  border: none;
  border-radius: var(--radius);
  background: rgba(255,255,255,.42);
  color: #737a83;
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  transition: background .12s ease;
}
.rail__search:hover { background: rgba(255,255,255,.66); }
.rail__search span { letter-spacing: .1px; }

/* --- 导航项：实测 pitch 36，选中白胶囊 高32 圆角8 --- */
.rail__nav {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.rail__nav::-webkit-scrollbar { width: 0; }

.navitem {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 32px;
  margin-bottom: 4px;
  padding: 0 10px 0 9px;
  border: none;
  background: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--t1);
  font-size: 14.5px;
  transition: background .1s ease;
}
.navitem:hover { background: rgba(255,255,255,.5); }
.navitem--on { background: var(--white); font-weight: 600; }
.navitem--on:hover { background: var(--white); }

.navitem__icon { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 20px; }
.navitem__icon svg { display: block; }
.navitem__label { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.navitem__badge {
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  display: grid; place-items: center;
  font-style: normal;
  line-height: 1;
}
.navitem__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

.rail__divider { height: 1px; background: rgba(31,35,41,.09); margin: 7px 9px 9px; }

/* --- 底部：组织切换 dock --- */
.rail__foot { padding-bottom: 10px; }

.rail__dock { display: flex; align-items: center; gap: 9px; padding-left: 2px; }
.dock {
  position: relative;
  width: 27px; height: 27px;
  border-radius: 7px;
  border: none;
  display: grid; place-items: center;
  cursor: pointer;
  font-size: 12px;
  color: #fff;
  padding: 0;
}
.dock--c   { background: linear-gradient(180deg,#5b8def,#3a6fd8); }
.dock--plus { background: rgba(255,255,255,.5); color: #5a6169; }

/* ============================================================
   中间列表栏（实测宽 288，底 #fcfcfc，左上/左下圆角）
   ============================================================ */
.list {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
  min-width: 0;
  /* 显式占第 2 列：否则一旦 .list 被 display:none，
     .main 会被自动放到第 2 列（宽 0）而整块消失 */
  grid-column: 2;
}

.list__head {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 56px;
  padding: 0 12px 0 14px;
  flex: 0 0 56px;
}
.list__collapse {
  width: 24px; height: 24px;
  border: none; background: none; padding: 0;
  color: #2b2f36;
  cursor: pointer;
  display: grid; place-items: center;
  border-radius: 5px;
}
.list__collapse:hover { background: var(--hover); }

.list__title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--t1);
  white-space: nowrap;
}

.list__counter {
  display: flex; align-items: center; gap: 5px;
  margin-left: 2px;
  border: none; background: none;
  padding: 2px 2px 2px 3px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--t1);
  font-size: 14px;
  white-space: nowrap;
}
.list__counter:hover { background: var(--hover); }
.list__counterIcon {
  width: 21px; height: 21px; border-radius: 50%;
  background: linear-gradient(180deg,#4e8cff,#2f6bf5);
  display: grid; place-items: center;
  flex: 0 0 21px;
}
.list__counterChev { color: var(--t3); margin-left: -1px; }

.list__body { flex: 1; overflow-y: auto; padding-bottom: 8px; }

/* --- 置顶宫格：实测头像 38，5 列 --- */
.pingrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 4px;
  padding: 2px 10px 14px;
}
.pin {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  border: none; background: none; padding: 4px 0 0;
  cursor: pointer;
  border-radius: 8px;
  min-width: 0;
}
.pin:hover { background: var(--hover); }
.pin__wrap { position: relative; }
.pin__av {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  line-height: 1.15;
  text-align: center;
  padding: 2px;
}
.pin__badge {
  position: absolute; top: -3px; right: -4px;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  background: var(--red);
  color: #fff; font-size: 10.5px; font-style: normal;
  display: grid; place-items: center;
  border: 1.5px solid var(--panel);
  line-height: 1;
}
.pin__name {
  font-size: 11.5px;
  color: var(--t2);
  max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}

/* --- 会话行：实测 pitch 62，头像 36，左内缩 16 --- */
.crow {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: calc(100% - 12px);
  margin: 0 6px 2px;
  padding: 8px 8px 8px 10px;
  border: none; background: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  min-height: 60px;
}
.crow:hover { background: var(--hover); }
.crow--on { background: var(--white); box-shadow: 0 1px 3px rgba(31,35,41,.06); }
.crow--on:hover { background: var(--white); }

.crow__av {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  flex: 0 0 36px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  overflow: hidden;
  margin-top: 2px;
}
.crow__av img { width: 100%; height: 100%; object-fit: cover; }

.crow__body { flex: 1; min-width: 0; padding-top: 1px; }
.crow__top { display: flex; align-items: center; gap: 6px; }
.crow__name {
  font-size: 14.5px;
  color: var(--t1);
  font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.crow--unread .crow__name { font-weight: 500; }
.crow__tag {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.35;
}
.crow__tag--agent { background: #eeeaff; color: #6f4df2; }
.crow__tag--bot   { background: #fff2e0; color: #d18b1a; }
.crow__tag--dept  { background: #e3ecff; color: #3370ff; }
.crow__tag--ext   { background: #eef0f2; color: #6b7178; }

.crow__time {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--t3);
  padding-left: 6px;
}
.crow__prev {
  margin-top: 3px;
  font-size: 13px;
  color: var(--t3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 5px;
}
.crow__reaction {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  height: 17px; padding: 0 5px;
  border-radius: 4px;
  background: #fff3e0;
  color: #e8912a;
  font-size: 10.5px; font-weight: 700;
}
.crow__prevbar { color: var(--line); }
.crow__dot {
  position: absolute; right: 12px; bottom: 12px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff; font-size: 11.5px;
  display: grid; place-items: center;
  line-height: 1;
}
.crow__ok { color: var(--green); display: inline-flex; flex: 0 0 auto; }

/* --- 通用列表行（文档/任务/邮件/联系人复用） --- */
.grow {
  display: flex; align-items: center; gap: 11px;
  width: calc(100% - 12px);
  margin: 0 6px 1px;
  padding: 9px 10px;
  border: none; background: none;
  border-radius: var(--radius);
  cursor: pointer; text-align: left;
}
.grow:hover { background: var(--hover); }
.grow--on { background: var(--white); box-shadow: 0 1px 3px rgba(31,35,41,.06); }
.grow__ic { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 32px; }
.grow__b { flex: 1; min-width: 0; }
.grow__t { font-size: 14px; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow__s { font-size: 12.5px; color: var(--t3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow__meta { font-size: 12px; color: var(--t3); flex: 0 0 auto; }

.list__section {
  padding: 12px 16px 6px;
  font-size: 12px;
  color: var(--t3);
  font-weight: 500;
}
.list__empty { padding: 40px 20px; text-align: center; color: var(--t3); font-size: 13px; }

/* ============================================================
   右侧主区（实测底 #ffffff，右上/右下圆角）
   ============================================================ */
.main {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  overflow: hidden;
  min-width: 0;
}

/* --- 会话头部：实测高 56 + tab 行，底部 1px 分隔 --- */
.chead {
  flex: 0 0 auto;
  padding: 10px 16px 0 18px;
  background: var(--panel);
}
.chead__row { display: flex; align-items: center; gap: 11px; }
.chead__av {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-size: 12.5px; font-weight: 500;
  flex: 0 0 34px; overflow: hidden;
}
.chead__title {
  margin: 0;
  font-size: 18.5px;
  font-weight: 600;
  color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: .2px;
}
.chead__tag {
  font-size: 11.5px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #eeeaff;
  color: #6f4df2;
  flex: 0 0 auto;
}
.chead__acts { margin-left: auto; display: flex; align-items: center; gap: 3px; }
.hbtn {
  width: 30px; height: 30px;
  border: none; background: none; padding: 0;
  border-radius: 6px;
  color: #3f454d;
  cursor: pointer;
  display: grid; place-items: center;
}
.hbtn:hover { background: var(--hover); }

/* --- 会话内 tab（消息/任务/网页版/云文档） --- */
.ctabs {
  display: flex; align-items: center; gap: 3px;
  padding: 7px 0 8px 44px;
  border-bottom: 1px solid var(--line);
  margin: 0 -16px 0 -18px;
  padding-left: 62px;
  padding-right: 16px;
}
.ctab {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px;
  padding: 0 10px;
  border: none; background: none;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--t1);
  cursor: pointer;
  white-space: nowrap;
}
.ctab:hover { background: var(--hover); }
.ctab--on { background: var(--blue-weak); color: var(--blue); font-weight: 500; }
.ctab--on:hover { background: var(--blue-weak); }
.ctab__ic { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; flex: 0 0 16px; }
.ctab__ext { color: var(--t3); }
.ctab--add { color: var(--t2); padding: 0 7px; }

/* --- 消息流：实测卡片左 62 起、宽 606 --- */
.stream {
  flex: 1;
  overflow-y: auto;
  background: var(--white);
  padding: 18px 0 8px;
}
.stream__inner { padding: 0 16px 0 16px; }

.msg { display: flex; gap: 10px; margin-bottom: 18px; }
.msg__av {
  width: 36px; height: 36px; border-radius: 50%;
  flex: 0 0 36px;
  display: grid; place-items: center;
  color: #fff; font-size: 12.5px; font-weight: 500;
  overflow: hidden;
  margin-top: 2px;
}
.msg__av--hidden { visibility: hidden; }
.msg__col { min-width: 0; max-width: 606px; flex: 1; }
.msg__meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.msg__who { font-size: 13px; color: var(--t2); }
.msg__ts { font-size: 11.5px; color: var(--t4); }

/* 普通气泡 */
.bub {
  display: inline-block;
  max-width: 100%;
  padding: 9px 13px;
  border-radius: 8px;
  background: #f5f6f7;
  font-size: 15px;
  line-height: 1.62;
  color: var(--t1);
  word-break: break-word;
  white-space: pre-wrap;
}
.msg--me .bub { background: var(--blue-weak); }
.msg--me { flex-direction: row-reverse; }
.msg--me .msg__col { display: flex; flex-direction: column; align-items: flex-end; }
.msg--me .msg__meta { flex-direction: row-reverse; }

.bub a { color: var(--blue); text-decoration: none; }
.bub a:hover { text-decoration: underline; }
.bub__img {
  width: 210px; height: 132px;
  border-radius: 6px;
  background: linear-gradient(135deg,#dfe6f2,#c9d6ea);
  display: grid; place-items: center;
  color: #7b8493; font-size: 12px;
}

/* 表情回复 */
.reacts { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.react {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 7px;
  border-radius: 11px;
  background: #eef1f5;
  border: 1px solid transparent;
  font-size: 11.5px; color: var(--t2);
  cursor: pointer;
}
.react:hover { border-color: #c9d3e8; background: #e7ecf5; }
.react--on { background: var(--blue-weak); color: var(--blue); }

/* --- 智能体卡片：实测白底 + 1px #dfe0e1 描边，宽 606 --- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 20px 22px 14px;
  font-size: 15px;
  line-height: 1.68;
  color: var(--t1);
}
.card__p { margin: 0; white-space: pre-wrap; }
.card__box {
  margin: 16px 0 0;
  background: #f6f7f8;
  border-radius: var(--radius);
  padding: 15px 17px;
  display: flex; flex-direction: column; gap: 12px;
}
.card__line { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--t1); }
.card__line svg { flex: 0 0 auto; color: #5c636b; }
.card__btn {
  margin-top: 18px;
  height: 36px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 14.5px;
  color: var(--t1);
  cursor: pointer;
}
.card__btn:hover { background: #f7f8f9; border-color: #cdd0d3; }
.card__collapse {
  display: flex; align-items: center; gap: 5px;
  margin-top: 16px;
  border: none; background: none; padding: 0;
  font-size: 14px; color: var(--t2);
  cursor: pointer;
}
.card__hr { height: 1px; background: var(--line-soft); margin: 15px 0 12px; }
.card__foot { display: flex; align-items: flex-end; }
.card__footL { flex: 1; min-width: 0; }
.card__footT { font-size: 13.5px; color: var(--t2); }
.card__footN { font-size: 13.5px; color: var(--t2); margin-top: 3px; }
.card__footN b { color: var(--blue); font-weight: 400; }
.card__footActs { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.card__act {
  width: 28px; height: 28px;
  border: none; background: none; padding: 0;
  border-radius: 6px; cursor: pointer;
  color: #676e77;
  display: grid; place-items: center;
}
.card__act:hover { background: var(--hover); }
.card__act--on { color: var(--blue); }

/* 每日回顾卡 */
.card__title { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.card__titleT { font-size: 19px; font-weight: 600; letter-spacing: .3px; }
.card__meta { font-size: 13.5px; color: var(--t2); margin-bottom: 10px; }
.card__spark { color: #7f5bf5; flex: 0 0 auto; }

/* --- 输入区：实测 chips 高 32、输入框 x542→1436（894 宽）高 47 圆角 8 --- */
.composer {
  flex: 0 0 auto;
  background: var(--white);
  padding: 10px 15px 14px 20px;
}
.composer__chips { display: flex; gap: 9px; margin-bottom: 11px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  font-size: 14px; color: var(--t1);
  cursor: pointer;
}
.chip:hover { background: #f7f8f9; }

.composer__box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0 12px 0 14px;
  display: flex; align-items: center; gap: 8px;
  min-height: 47px;
  transition: border-color .12s ease;
}
.composer__box:focus-within { border-color: #b9c0c9; }
.composer__input {
  flex: 1;
  border: none; outline: none;
  background: none;
  font-size: 15px;
  color: var(--t1);
  resize: none;
  padding: 12px 0;
  max-height: 140px;
  min-height: 21px;
  line-height: 1.42;
  overflow-y: auto;
  scrollbar-width: none;
}
.composer__input::-webkit-scrollbar { width: 0; }
.composer__input::placeholder { color: var(--t4); }

.composer__acts { display: flex; align-items: center; gap: 1px; flex: 0 0 auto; }
.cbtn {
  width: 30px; height: 30px;
  border: none; background: none; padding: 0;
  border-radius: 6px;
  color: #5b6169;
  cursor: pointer;
  display: grid; place-items: center;
}
.cbtn:hover { background: var(--hover); }
.composer__sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.cbtn--send { color: #a9aeb5; }
.cbtn--send.is-on { color: var(--blue); }

/* --- 输入中提示 --- */
.typing { padding: 0 16px 6px; font-size: 12.5px; color: var(--t3); height: 18px; }

/* ============================================================
   其他模块视图
   ============================================================ */
.view { flex: 1; overflow-y: auto; background: var(--white); }
.view__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--white); z-index: 2;
}
.view__title { margin: 0; font-size: 18px; font-weight: 600; }
.view__sub { font-size: 13px; color: var(--t3); }
.view__body { padding: 20px 24px 40px; }
.view__acts { margin-left: auto; display: flex; gap: 8px; }

.btn {
  height: 32px; padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13.5px; color: var(--t1);
  cursor: pointer;
}
.btn:hover { background: #f7f8f9; }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { background: #245bdb; }
.btn--danger { color: var(--red); }
.btn--danger:hover { background: #fff1f0; }

/* 空态 */
.empty { display: grid; place-items: center; height: 100%; text-align: center; color: var(--t3); gap: 6px; }
.empty__t { font-size: 15px; color: var(--t2); }
.empty__s { font-size: 13px; }

/* 文档阅读 */
.docview { max-width: 780px; margin: 0 auto; padding: 32px 28px 60px; }
.docview h1 { font-size: 27px; margin: 0 0 6px; font-weight: 600; letter-spacing: .2px; }
.docview h2 { font-size: 19px; margin: 26px 0 8px; font-weight: 600; }
.docview h3 { font-size: 16px; margin: 20px 0 6px; font-weight: 600; }
.docview p  { font-size: 15px; line-height: 1.78; margin: 0 0 12px; color: #2b3038; }
.docview li { font-size: 15px; line-height: 1.78; color: #2b3038; }
.docview__meta { font-size: 12.5px; color: var(--t3); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.docview__edit {
  width: 100%; min-height: 420px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 16px; font-size: 14px; line-height: 1.72;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  resize: vertical; outline: none;
}
.docview__edit:focus { border-color: var(--blue); }

/* 表格（多维表格/表格文档） */
.dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dtable th, .dtable td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; }
.dtable th { background: #f7f8fa; font-weight: 500; color: var(--t2); }

/* 日历（旧版周视图样式，仍被 renderEventList 的小卡片复用） */
.cal { padding: 20px 24px 40px; }
.cal__grid { display: grid; grid-template-columns: 56px repeat(7, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cal__hcell { padding: 9px 6px; text-align: center; font-size: 12.5px; background: #f7f8fa; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal__hcell:first-child { border-left: none; }
.cal__hcell b { display: block; font-size: 16px; color: var(--t1); font-weight: 600; margin-top: 2px; }
.cal__hcell--today b { color: var(--blue); }
.cal__hour { font-size: 11px; color: var(--t3); text-align: right; padding: 0 7px; height: 46px; border-bottom: 1px solid var(--line-soft); line-height: 46px; }
.cal__cell { border-left: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); height: 46px; position: relative; }
.cal__ev {
  position: absolute; left: 2px; right: 2px;
  border-radius: 4px; padding: 3px 5px;
  font-size: 11.5px; line-height: 1.32;
  overflow: hidden; cursor: pointer;
  border-left: 3px solid;
}
.cal__ev--blue   { background: #e8f0ff; border-color: #3370ff; color: #1d4fc4; }
.cal__ev--green  { background: #e6f8e8; border-color: #34c724; color: #1a7a24; }
.cal__ev--orange { background: #fff2e0; border-color: #ff8800; color: #ad5b00; }
.cal__ev--purple { background: #f1e9ff; border-color: #7f3bf5; color: #5a24bb; }

/* ============================================================
   日历 V2（照 cal-ref.png 实测重写）
   实测几何 @1x（已减 33px 标签栏）：
     顶部标签栏 0..60 · 迷你月历栏 229..505（宽 276）
     周视图时间列 505..561（宽 56）· 日列 pitch 127.7
     工具栏 60..110 · 日期头 110..186 · 整点行 pitch 48
   ============================================================ */
/* 必须同时把中间 grid 轨道压成 0：display:none 只是不渲染内容，
   轨道本身仍占默认的 288px，会在 rail 和主区之间留下一条空白。
   is-people / is-meego / is-base 都是这么写的。 */
.app.is-cal { grid-template-columns: var(--rail-w) 0 1fr; }
.app.is-cal .list { display: none; }
.app.is-cal .main { display: flex; flex-direction: column; background: #fff; }

/* --- 顶部标签栏 --- */
.ctop {
  height: 60px; flex: none; display: flex; align-items: center;
  padding: 0 16px 0 24px; border-bottom: 1px solid var(--line);
  background: #fff;
}
.ctop__tabs { display: flex; align-items: flex-end; gap: 26px; height: 100%; }
.ctop__tab {
  position: relative; height: 100%; font-size: 15px; color: var(--t2);
  display: flex; align-items: center; padding: 0 2px;
}
.ctop__tab--on { color: var(--t1); font-weight: 600; }
/* 选中下划线：实测贴着标签栏底边，宽度与文字齐 */
.ctop__tab--on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2.5px; background: var(--blue); border-radius: 2px;
}
.ctop__acts { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ctop__new { height: 32px; padding: 0 16px; font-size: 14px; border-radius: 6px; }
.ctop__gear {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 6px; color: var(--t2);
}
.ctop__gear:hover { background: var(--hover); }

/* --- 两栏容器 --- */
.cal2 { flex: 1; min-height: 0; display: grid; grid-template-columns: 276px 1fr; }

/* --- 左：迷你月历栏 --- */
.cmini {
  border-right: 1px solid var(--line);
  padding: 12px 14px 24px; overflow-y: auto; background: #fff;
}
.cmini__hd { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 10px; }
.cmini__ttl { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--t1); }
.cmini__nav { display: flex; gap: 2px; }
.cmini__b {
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 5px; color: var(--t2);
}
.cmini__b:hover { background: var(--hover); }
.cmini__b--r { transform: rotate(180deg); }
.cmini__wk { display: grid; grid-template-columns: repeat(7, 1fr); }
.cmini__wk i { font-style: normal; text-align: center; font-size: 12px; color: var(--t3); padding: 4px 0; }
.cmini__g { display: grid; grid-template-columns: repeat(7, 1fr); }
.cmini__d {
  height: 30px; display: grid; place-items: center;
  font-size: 13px; color: var(--t1); border-radius: 50%;
  margin: 1px auto; width: 30px;
}
.cmini__d:hover { background: var(--hover); }
.cmini__d--out { color: #c4c7ce; }
/* 今天：实测是蓝色描边圆圈 + 蓝字，不是实心 */
.cmini__d--today { border: 1.5px solid var(--blue); color: var(--blue); font-weight: 600; }
.cmini__search {
  display: flex; align-items: center; gap: 6px; margin: 12px 0 4px;
  height: 32px; padding: 0 9px; border: 1px solid var(--line);
  border-radius: 7px; color: var(--t3);
}
.cmini__search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 13px; }
.cmini__add {
  display: flex; align-items: center; gap: 6px; height: 34px;
  font-size: 13.5px; color: var(--t2); padding: 0 2px; margin-top: 6px;
}
.cmini__add i { font-style: normal; font-size: 16px; color: var(--t2); }
.cmini__add:hover { color: var(--blue); }

/* 分组：我管理的 / 我订阅的 */
.cgrp { margin-top: 8px; }
.cgrp__h {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--t2); padding: 6px 2px;
}
.cgrp__i {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 2px; cursor: pointer; border-radius: 5px;
}
.cgrp__i:hover { background: var(--hover); }
/* 复选框用每条自己的颜色（--cc），未选中只描边 */
.cgrp__i input {
  appearance: none; width: 15px; height: 15px; flex: none;
  border: 1.6px solid var(--cc, #3370ff); border-radius: 3.5px;
  position: relative; cursor: pointer;
}
.cgrp__i input:checked { background: var(--cc, #3370ff); }
.cgrp__i input:checked::after {
  content: ''; position: absolute; left: 4.4px; top: 1.4px;
  width: 4px; height: 8px; border: solid #fff;
  border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}
.cgrp__n {
  font-size: 13px; color: var(--t1); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cgrp__ext {
  flex: none; font-style: normal; font-size: 10.5px; color: #3370ff;
  background: #eaf1ff; border-radius: 3px; padding: 1px 4px;
}

/* --- 右：周视图 --- */
.cwk { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.cwk__bar {
  height: 50px; flex: none; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; border-bottom: 1px solid var(--line);
}
.cwk__today {
  height: 30px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 13.5px; color: var(--t1);
}
.cwk__today:hover { background: var(--hover); }
.cwk__ar {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 6px; color: var(--t2);
}
.cwk__ar:hover { background: var(--hover); }
.cwk__ar--r { transform: rotate(180deg); }
.cwk__range { font-size: 16px; font-weight: 600; color: var(--t1); margin-left: 6px; }
.cwk__seg {
  margin-left: auto; display: flex; background: #f2f3f5;
  border-radius: 7px; padding: 2px;
}
.cwk__segb {
  width: 46px; height: 26px; border-radius: 5px;
  font-size: 13.5px; color: var(--t2);
}
.cwk__segb--on { background: #dbe7ff; color: var(--blue); font-weight: 500; }

/* 日期头：与网格同为 56px + 7 等分，两者列宽必须完全一致 */
.cwk__head {
  flex: none; display: grid; grid-template-columns: 56px repeat(7, 1fr);
  border-bottom: 1px solid var(--line);
}
.cwk__tz { font-size: 11px; color: var(--t3); display: grid; place-items: center; }
.cwk__h {
  padding: 10px 0 12px; text-align: center;
  border-left: 1px solid var(--line-soft);
}
.cwk__hn { display: block; font-size: 12.5px; color: var(--t2); }
.cwk__hd { display: block; font-size: 21px; font-weight: 600; color: var(--t1); margin-top: 3px; }
.cwk__h--today .cwk__hn, .cwk__h--today .cwk__hd { color: var(--blue); }

.cwk__scroll { flex: 1; min-height: 0; overflow-y: auto; }
.cwk__grid { display: grid; grid-template-columns: 56px repeat(7, 1fr); }
.cwk__hours { display: flex; flex-direction: column; }
/* 时间标签要跨在整点线上，所以整体上移半行 */
.cwk__hr {
  height: 48px; flex: none; font-size: 11.5px; color: var(--t3);
  text-align: right; padding-right: 8px; transform: translateY(-7px);
}
.cwk__col { position: relative; border-left: 1px solid var(--line-soft); }
/* 今天所在列整列浅蓝底（参考图里今天那一列有淡蓝背景） */
.cwk__col--today { background: #f5f8ff; }
.cwk__cell { height: 48px; border-bottom: 1px solid var(--line-soft); }
.cwk__ev {
  position: absolute; left: 2px; right: 3px;
  border-radius: 5px; padding: 3px 6px;
  font-size: 12px; line-height: 1.35; overflow: hidden;
  cursor: pointer; border-left: 3px solid;
}
.cwk__evT { display: block; font-weight: 600; }
.cwk__evM { display: block; opacity: .82; }
.cwk__ev--blue   { background: #e2eafd; border-color: #3370ff; color: #1d4fc4; }
.cwk__ev--green  { background: #e6f8e8; border-color: #34c724; color: #1a7a24; }
.cwk__ev--orange { background: #fdf0dd; border-color: #ff8800; color: #ad5b00; }
.cwk__ev--purple { background: #f1e9ff; border-color: #7f3bf5; color: #5a24bb; }
/* 当前时间红线（参考图右下角 23:53 处那条） */
.cwk__now { position: absolute; left: 0; right: 0; height: 2px; background: #f54a45; z-index: 3; }
.cwk__now::before {
  content: ''; position: absolute; left: -4px; top: -3px;
  width: 8px; height: 8px; border-radius: 50%; background: #f54a45;
}

/* 通讯录 */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.pcard {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 15px; display: flex; gap: 12px; align-items: flex-start;
  cursor: pointer; background: var(--white);
}
.pcard:hover { box-shadow: 0 3px 12px rgba(31,35,41,.08); }
.pcard__av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; flex: 0 0 42px; }
.pcard__n { font-size: 14.5px; font-weight: 500; }
.pcard__d { font-size: 12.5px; color: var(--t3); margin-top: 3px; line-height: 1.45; }

/* 任务 */
.tasks { max-width: 780px; }
.task {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.task__cb {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.6px solid #c2c6cc; background: none;
  cursor: pointer; flex: 0 0 18px; margin-top: 2px;
  display: grid; place-items: center; padding: 0;
  transition: all .12s ease;
}
.task__cb:hover { border-color: var(--blue); }
.task__cb--on { background: var(--green); border-color: var(--green); }
.task__t { font-size: 14.5px; }
.task--done .task__t { color: var(--t3); text-decoration: line-through; }
.task__m { font-size: 12.5px; color: var(--t3); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.task__due--over { color: var(--red); }
.task__del { margin-left: auto; border: none; background: none; color: var(--t4); cursor: pointer; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.task__del:hover { color: var(--red); background: #fff1f0; }

/* 邮件 */
.mailview { max-width: 800px; }
.mailview__h { font-size: 20px; font-weight: 600; margin: 0 0 10px; }
.mailview__m { font-size: 13px; color: var(--t3); padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; }
.mailview__b { font-size: 14.5px; line-height: 1.8; white-space: pre-wrap; color: #2b3038; }

/* 工作台宫格 */
.wtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; max-width: 900px; }
.wtile {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); padding: 16px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  cursor: pointer; text-align: left; transition: box-shadow .12s ease;
}
.wtile:hover { box-shadow: 0 3px 12px rgba(31,35,41,.09); }
.wtile__ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.wtile__ic svg { width: 19px; height: 19px; }
.wtile__n { font-size: 14px; color: var(--t2); }
.wtile__v { font-size: 25px; font-weight: 600; color: var(--t1); line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.wtile__v i { font-size: 12.5px; font-weight: 400; color: var(--t3); font-style: normal; }

/* OKR 进度 */
.okr { max-width: 700px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.okr__top { display: flex; align-items: baseline; justify-content: space-between; }
.okr__t { font-size: 15px; font-weight: 500; }
.okr__p { font-size: 14px; color: var(--blue); font-weight: 600; }
.okr__bar { height: 7px; border-radius: 4px; background: #eef0f3; margin: 10px 0 7px; overflow: hidden; }
.okr__bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4a8bff, #3370ff); }
.okr__s { font-size: 12.5px; color: var(--t3); }

/* 知识问答 */
.kq { max-width: 800px; }
.kq__field {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 10px 0 13px; color: var(--t3);
  background: var(--white);
}
.kq__field:focus-within { border-color: var(--blue); }
.kq__field input { flex: 1; border: none; outline: none; font-size: 14.5px; color: var(--t1); padding: 12px 0; }
.kq__field .btn { margin: 6px 0; }
.kq__tips { display: flex; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }
.kq__hint { color: var(--t3); font-size: 13.5px; padding: 26px 0; margin: 0; }
.kq__ans { margin-top: 18px; }
.kq__ansT { font-size: 14px; color: var(--t2); padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.kq__block { margin-top: 16px; }
.kq__blockT { font-size: 12.5px; color: var(--t3); margin-bottom: 6px; }
.kq__row {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  width: 100%; text-align: left; padding: 9px 11px;
  border: 1px solid var(--line-soft); border-radius: 8px;
  background: var(--white); cursor: pointer; margin-bottom: 7px;
}
.kq__row:hover { border-color: #c9d3e4; background: #fafbfc; }
.kq__row--flat { cursor: default; }
.kq__row--flat:hover { border-color: var(--line-soft); background: var(--white); }
.kq__row b { font-size: 14px; font-weight: 500; }
.kq__row span { font-size: 12.5px; color: var(--t3); }

/* 校招职位 */
.jobs { max-width: 820px; }
.job {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 0; border-bottom: 1px solid var(--line-soft);
}
.job__main { flex: 1; min-width: 0; }
.job__t { font-size: 15px; font-weight: 500; }
.job__c { font-size: 12.5px; color: var(--t3); margin-top: 3px; }
.job__tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.job__tag { font-size: 11.5px; color: var(--t2); background: #f2f3f5; border-radius: 4px; padding: 2px 7px; }

/* ============================================================
   视频会议（实测：列表栏 349px 白底，主区 #f8f9f8）
   ============================================================ */
.app.is-vc { grid-template-columns: var(--rail-w) 349px 1fr; }

.list__acts { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.list--vc .list__title { margin-left: 0; }
.list--vc .list__head { padding-left: 20px; }

/* --- 功能宫格：2 列 × 146.5px，卡片高 114，间距 16 --- */
.list__body--tiles { padding: 0; }
.vctiles {
  display: grid;
  grid-template-columns: repeat(2, 146.5px);
  gap: 16px;
  padding: 8px 20px 20px;
  justify-content: start;
}
.vctile {
  height: 114px;
  border: none; border-radius: 12px;
  cursor: pointer;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: space-between;
  padding: 18px 16px 16px;
  text-align: left;
  transition: filter .12s ease, transform .08s ease;
}
.vctile:hover { filter: brightness(.965); }
.vctile:active { transform: scale(.985); }
.vctile__ic {
  width: 44px; height: 44px; border-radius: 11px;
  background: #fff;
  display: grid; place-items: center;
}
.vctile__l { font-size: 15.5px; font-weight: 500; color: #1f2329; }

/* 实测底色 */
.vctile--blue   { background: #e2e9fb; }
.vctile--orange { background: #fae8cf; }
.vctile--green  { background: #d8f4d2; }
.vctile--purple { background: #e9eaf8; }
/* 图标描边色跟随主题 */
.vctile--blue   .vctile__ic { color: #3370ff; }
.vctile--orange .vctile__ic { color: #ef8a3d; }
.vctile--green  .vctile__ic { color: #3fa93a; }
.vctile--purple .vctile__ic { color: #6067ed; }

/* --- 主区 --- */
.vc {
  height: 100%;
  overflow-y: auto;
  background: #f8f9f8;
  padding: 18px 22px 26px;
}
.vc__sec { margin-bottom: 22px; }
.vc__secHead { display: flex; align-items: center; margin-bottom: 10px; }
.vc__secT { font-size: 15px; font-weight: 600; color: var(--t1); }
.vc__more {
  margin-left: auto;
  border: none; background: none; cursor: pointer;
  font-size: 13px; color: var(--t2);
  display: inline-flex; align-items: center; gap: 3px;
}
.vc__more:hover { color: var(--blue); }
.vc__card {
  background: #fff;
  border-radius: 12px;
  padding: 4px 0;
}
.vc__empty { color: var(--t3); font-size: 13.5px; text-align: center; padding: 30px 0; margin: 0; }

/* 即将开始的行 */
.vcup { display: flex; align-items: center; gap: 13px; padding: 15px 20px; cursor: pointer; }
.vcup--sep { border-top: 1px solid var(--line-soft); }
.vcup:hover { background: #fafbfc; }
.vcup__ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: #e8effd; color: #3370ff;
  display: grid; place-items: center; flex: 0 0 40px;
}
.vcup__ic svg { width: 21px; height: 21px; }
.vcup__ic path, .vcup__ic rect { stroke: #3370ff; }
.vcup__t { font-size: 15px; font-weight: 500; }
.vcup__m { font-size: 13px; color: var(--t3); margin-top: 4px; display: flex; align-items: center; gap: 9px; }
.vcup__bar { width: 1px; height: 11px; background: #d5d8dc; display: inline-block; }

/* 历史记录的行：实测缩略图 106×78，行 pitch 104 */
.vch { display: flex; align-items: flex-start; gap: 15px; padding: 13px 20px; cursor: pointer; }
.vch--sep { border-top: 1px solid var(--line-soft); }
.vch:hover { background: #fafbfc; }
.vch__thumb {
  width: 106px; height: 78px; border-radius: 8px;
  background: #dfe5f6;
  flex: 0 0 106px;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.vch__thumb--call { background: #dfe5f6; color: #3370ff; }
.vch__thumb--doc { background: #fff; border: 1px solid var(--line); align-content: start; padding: 9px 10px; gap: 5px; }
.vch__thumb--doc i { display: block; height: 3px; border-radius: 2px; background: #dfe2e6; width: 100%; }
.vch__thumb--doc i:nth-child(2) { width: 82%; }
.vch__thumb--doc i:nth-child(4) { width: 66%; }
.vch__thumb--doc i:nth-child(5) { width: 76%; }
.vch__play {
  position: absolute; right: 5px; bottom: 5px;
  width: 20px; height: 20px; border-radius: 5px;
  background: rgba(51,112,255,.92); color: #fff;
  display: grid; place-items: center;
}
.vch__play svg { width: 12px; height: 12px; }
.vch__b { flex: 1; min-width: 0; }
.vch__t { font-size: 14.5px; font-weight: 500; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.vch__missed { color: var(--red); }
.vch__m { font-size: 12.5px; color: var(--t3); margin-top: 5px; }
.vch__tag { font-size: 11.5px; border-radius: 4px; padding: 2px 6px; font-weight: 400; }
.vch__tag--web { background: #eaf1ff; color: #3370ff; }
.vch__tag--ext { background: #eef0f3; color: #646a73; }
.vch__links { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.vch__link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--t2); }
.vch__link b { font-weight: 400; color: var(--t2); }
.vch__link a { color: var(--blue); text-decoration: none; }
.vch__link a:hover { text-decoration: underline; }
.vch__rec {
  margin-left: auto; align-self: center;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; cursor: pointer;
  font-size: 12.5px; color: var(--t2);
  padding: 5px 9px;
  display: inline-flex; align-items: center; gap: 3px;
  white-space: nowrap;
}
.vch__rec:hover { border-color: #c9d3e4; color: var(--blue); }

/* ============================================================
   浮层：搜索 / 弹窗 / toast
   ============================================================ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(31,35,41,.32);
  z-index: 100;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 96px;
  backdrop-filter: blur(1px);
}
.overlay[hidden] { display: none; }

.searchbox {
  width: 620px; max-width: calc(100vw - 48px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(31,35,41,.24);
  overflow: hidden;
}
.searchbox__field {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  color: var(--t3);
}
.searchbox__field input {
  flex: 1; border: none; outline: none;
  font-size: 15.5px; color: var(--t1);
}
.searchbox__field kbd {
  font-size: 11px; color: var(--t3);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 2px 6px; font-family: inherit;
}
.searchbox__results { max-height: 430px; overflow-y: auto; padding: 6px; }
.searchbox__hint { color: var(--t3); font-size: 13px; text-align: center; padding: 34px 0; margin: 0; }
.sgroup { padding: 8px 10px 3px; font-size: 11.5px; color: var(--t3); font-weight: 500; }
.sitem {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px;
  border: none; background: none; border-radius: 6px;
  cursor: pointer; text-align: left;
}
.sitem:hover, .sitem--on { background: var(--blue-hover); }
.sitem__ic { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 11px; flex: 0 0 26px; }
.sitem__t { font-size: 13.5px; }
.sitem__s { font-size: 12px; color: var(--t3); margin-top: 1px; }
.sitem__b { min-width: 0; flex: 1; }
.sitem__t, .sitem__s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sitem mark { background: #fff3c4; color: inherit; border-radius: 2px; }

.modal {
  width: 460px; max-width: calc(100vw - 48px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(31,35,41,.24);
  overflow: hidden;
}
.modal__h { padding: 18px 20px 0; font-size: 16.5px; font-weight: 600; }
.modal__b { padding: 14px 20px 4px; display: flex; flex-direction: column; gap: 12px; }
.modal__f { padding: 14px 20px 18px; display: flex; justify-content: flex-end; gap: 9px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12.5px; color: var(--t2); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 11px; font-size: 14px; outline: none;
  font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 88px; line-height: 1.6; }
.field__row { display: flex; gap: 10px; }
.field__row .field { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: 40px;
  transform: translateX(-50%);
  background: rgba(31,35,41,.9);
  color: #fff; font-size: 13.5px;
  padding: 9px 18px; border-radius: 8px;
  z-index: 200;
  animation: toastIn .18s ease;
}
.toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(6px); } }

/* 折叠列表栏 */
.app.is-collapsed { grid-template-columns: var(--rail-w) 0 1fr; }
.app.is-collapsed .list { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   任务模块（实测 task-ref.png，见 task-metrics.md）
   中间栏宽 240 / 主区宽 984，主区左内边距 20
   ============================================================ */
.app.is-tasks { grid-template-columns: var(--rail-w) 240px 1fr; }
/* 任务模块实测：中间栏与主区是「同一块连续白面板 + 1px 分隔线」，
   不像消息模块那样有 6px 间隙（实测 task-ref.png x=467.5 处为 rgb(223,224,225) 单像素线）。
   面板底色也是纯白 #fff，而非默认的 --panel(#fcfcfc)。 */
.app.is-tasks .list,
.app.is-tasks .main { background: #fff; }
.app.is-tasks .list { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.app.is-tasks .main { margin-left: 0; border-left: 1px solid #dfe0e1; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
/* 任务中间栏顶部是「任务 + …」，没有计数器胶囊 */
.app.is-tasks .list__head { padding: 0 12px 0 14px; height: 62px; flex: 0 0 62px; }
.app.is-tasks .list__body { padding-top: 0; }

/* --- 中间栏视图导航 --- */
.tnavs { display: block; padding: 0 6px; }
.tnav {
  display: flex; align-items: center; gap: 10px;
  width: 100%; height: 38px;               /* 实测行间距 38（选中蓝底本身高 36，见 .tnav--on） */
  padding: 0 10px;
  border-radius: 6px;
  font-size: 14px; color: var(--t1);
  white-space: nowrap;
}
.tnav:hover { background: #f2f3f5; }
.tnav--on, .tnav--on:hover {
  /* 实测蓝底 h=36、宽 228（中间栏 240 内左右各留 6），行高 38 → 上下各内缩 1px。
     用透明 border 做上下内缩，不能用 background-clip:content-box——那会把左右
     padding 也一起裁掉，导致蓝底只剩 208 宽。 */
  background: #e9f0fc; color: var(--blue); font-weight: 500;
  border-top: 1px solid transparent; border-bottom: 1px solid transparent;
  background-clip: padding-box;
}
.tnav__ic { display: flex; align-items: center; color: var(--t2); flex: 0 0 17px; }
.tnav--on .tnav__ic { color: var(--blue); }
.tnav__l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tnav__n { font-size: 12px; color: var(--t3); }
/* 子项：无图标，文字与一级项文字左边缘对齐（实测缩进 +3.5） */
.tnav--sub { padding-left: 20px; }

.tnav__hr { height: 1px; background: var(--line-soft); margin: 10px 14px; }

/* --- 分组标题（快速访问 / 任务清单） --- */
.tgrp {
  display: flex; align-items: center; gap: 8px;
  width: 100%; height: 30px; padding: 0 12px;
  font-size: 14px; font-weight: 600; color: var(--t1);
}
.tgrp:not(.tgrp--flat):hover { background: #f2f3f5; border-radius: 6px; }
.tgrp__tri { display: flex; color: var(--t2); transition: transform .15s; }
.tgrp__tri svg { width: 11px; height: 11px; }
.tgrp__tri--off { transform: rotate(-90deg); }
.tgrp__ic { display: flex; color: var(--t2); }
.tgrp__t { flex: 1; text-align: left; }
.tgrp__add { font-size: 16px; color: var(--t2); line-height: 1; padding: 2px 4px; border-radius: 4px; }
.tgrp__add:hover { background: #e7e9eb; color: var(--t1); }

/* --- 新建分组 --- */
.tadd {
  display: flex; align-items: center; gap: 6px;
  width: 100%; height: 34px; padding: 0 14px;
  font-size: 14px; color: var(--t2);
}
.tadd:hover { color: var(--blue); }
.tadd__p { font-size: 14px; }

/* ============================================================
   任务主区
   ============================================================ */
.tk { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; min-height: 0; }

/* 标题行：实测 y18..46（h=28），左 20，「新建」按钮 w=58 */
/* 标题行：实测标题文字 y24..40、「新建」按钮 y18..46；Tab 文字须落在 y66..78，
   故标题行高定为 59（59 + tabs 内 7 上边距 = 66） */
.tk__head { display: flex; align-items: center; height: 64px; padding: 0 20px; flex: 0 0 64px; }
.tk__title { margin: 0; font-size: 18px; font-weight: 600; color: var(--t1); letter-spacing: .2px; }
.tk__new {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto; height: 28px; padding: 0 10px;
  background: var(--blue); color: #fff;
  border-radius: 6px; font-size: 13.5px; font-weight: 500;
}
.tk__new:hover { background: #2b60e6; }
.tk__chev { display: flex; }
.tk__chev svg { width: 10px; height: 10px; }
.tk__split { display: flex; margin-left: 20px; color: var(--t2); padding: 4px; border-radius: 5px; }
.tk__split:hover { background: #f2f3f5; color: var(--t1); }

/* Tab 行：实测文字 y66..78，下方分隔线 y=91 */
.tk__tabs {
  /* 实测：Tab 文字 y66..78、蓝色下划线 y89..91、灰色分隔线 y91。
     标题行高 64，故容器 64..92（含 1px 底线）→ 高 28。 */
  display: flex; align-items: stretch; gap: 24px;
  padding: 0 20px; border-bottom: 1px solid #e6e7e8;
  flex: 0 0 28px;
}
.tktab {
  /* 文字贴顶（padding-top 顶到 y=66），下划线落在容器内容底部 89..91 */
  display: flex; align-items: flex-start; gap: 3px;
  line-height: 15px;
  font-size: 13.5px; color: var(--t2);
  border-bottom: 2px solid transparent;
}
.tktab:hover { color: var(--t1); }
.tktab--on { color: var(--blue); font-weight: 500; border-bottom-color: var(--blue); }
.tktab__ic { display: flex; }

/* 工具栏：实测按钮框 y120..132（h=28 含 padding），故顶部留 21 */
.tk__bar { display: flex; align-items: center; gap: 6px; padding: 20px 20px 0; flex: 0 0 48px; }
.tkb {
  /* 实测：参考各控件墨迹宽 未完成53 / 排序113 / 分组114 / 字段配置65，
     13px 时实测偏大约 7%（57/121/121/70）→ 字号取 12px */
  display: flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 9px;
  border-radius: 6px; font-size: 12px; color: var(--t1);
  white-space: nowrap;
}
.tkb:hover { background: #f2f3f5; }
.tkb__ic { display: flex; color: var(--t2); }
.tkb--primary { border: 1px solid var(--line); padding: 0 8px; gap: 3px; margin-right: 14px; }
.tkb--primary:hover { border-color: #b6c0cc; background: #fff; }
.tkb__p { font-size: 13px; }
.tkb__sep { width: 1px; height: 16px; background: var(--line); margin: 0 3px; }
.tkb__chev { display: flex; color: var(--t2); }
.tkb__chev svg { width: 10px; height: 10px; }
/* 「筛选 1」激活态：淡蓝底 + 蓝字（实测截图里就是激活的）。
   实测胶囊 x224..291（w=67），比其他按钮更宽，且左侧与「未完成」间距 16。 */
.tkb--on, .tkb--on:hover { background: #e9f0fc; color: var(--blue); }
#taskFilter { width: 67px; padding: 0; justify-content: center; }
.tkb--on .tkb__ic { color: var(--blue); }
.tkb--on b { font-weight: 500; }
.tkb--act .tkb__ic { color: var(--t1); }

/* 表格 4 列：实测表头文字起点 46 / 472 / 653 / 833（主区左 padding 20）
   → 第1列 452、第2列 181、第3列 180、第4列占剩余 */
.tk__thead, .ttr {
  display: grid;
  grid-template-columns: 452px 181px 180px 1fr;
  align-items: center;
}
.tk__thead {
  height: 36px; padding: 11px 20px 0; flex: 0 0 36px;
  font-size: 13px; color: #9c9fa4;
}
.tth__ic { display: inline-flex; vertical-align: -2px; margin-right: 4px; color: #9c9fa4; }
.ttd { display: flex; align-items: center; min-width: 0; overflow: hidden; }
.ttd--title { padding-left: 26px; }        /* 表头「任务标题」实测 x=46 = 20 + 26 */

.tk__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 16px; }

/* 分组行：实测 y191..205，▼ x27，文字 x46 */
.tgsec__h {
  display: flex; align-items: center; gap: 9px;
  width: 100%; height: 43px; padding: 0 20px 0 27px;
  font-size: 14px; font-weight: 600; color: var(--t1);
}
.tgsec__h:hover { background: #fafafa; }
.tgsec__tri { display: flex; color: #1f2329; transition: transform .15s; }  /* 实测是深色实心 ▼，不是浅灰 */
.tgsec__tri svg { width: 10px; height: 6px; }
.tgsec__tri--off { transform: rotate(-90deg); }
.tgsec__ic { display: flex; }
.tgsec__n { font-weight: 400; color: var(--t3); font-size: 13px; }

/* 组内空占位「新建任务」：实测 y234..248，x≈70 */
.ttnew {
  display: block; width: 100%; height: 43px;
  padding-left: 70px; text-align: left;
  font-size: 14px; color: var(--t3);
}
.ttnew:hover { color: var(--blue); background: #fafafa; }

/* 任务行 */
.ttr { height: 43px; padding: 0 20px; font-size: 14px; color: var(--t1); }
.ttr:hover { background: #fafafa; }
.ttr .ttd--title { padding-left: 44px; gap: 9px; }
.ttcb {
  flex: 0 0 15px; width: 15px; height: 15px;
  border: 1.5px solid #c4c8cd; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.ttcb:hover { border-color: var(--blue); }
.ttcb svg { width: 10px; height: 10px; }
.ttcb--on { background: var(--blue); border-color: var(--blue); }
.ttt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttr--done .ttt { color: var(--t3); text-decoration: line-through; }
.ttd--s, .ttd--d, .ttd--l { font-size: 13px; color: var(--t2); }
.ttdel { font-size: 12.5px; color: var(--t3); opacity: 0; flex: 0 0 auto; padding-left: 8px; }
.ttr:hover .ttdel { opacity: 1; }
.ttdel:hover { color: #f54a45; }

.tadd--main { height: 43px; padding-left: 27px; }

/* --- 看板 --- */
.tkboard { display: flex; gap: 14px; padding: 16px 20px; overflow-x: auto; flex: 1 1 auto; min-height: 0; }
.tkbcol { flex: 0 0 280px; background: #f7f8fa; border-radius: 8px; padding: 12px; }
.tkbcol__h { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--t1); margin-bottom: 10px; }
.tkbcol__n { font-weight: 400; color: var(--t3); }
.tkbcol__e { font-size: 13px; color: var(--t3); margin: 0; }
.tkbcard { background: #fff; border-radius: 6px; padding: 10px 11px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(31,35,41,.06); }
.tkbcard__t { font-size: 13.5px; color: var(--t1); margin-bottom: 5px; }
.tkbcard__m { font-size: 12px; color: var(--t3); }

/* --- 仪表盘 --- */
.tkdash { padding: 18px 20px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.tkdash__cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tkdc { background: #f7f8fa; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.tkdc__n { font-size: 24px; font-weight: 600; color: var(--t1); }
.tkdc__n--warn { color: #f54a45; }
.tkdc__l { font-size: 12.5px; color: var(--t2); }
.tkdash__sec { font-size: 14px; font-weight: 600; color: var(--t1); margin: 22px 0 12px; }
.tkdrow { display: grid; grid-template-columns: 190px 1fr 60px; align-items: center; gap: 12px; height: 34px; }
.tkdrow__l { font-size: 13.5px; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tkdrow__bar { height: 7px; background: #eff0f1; border-radius: 4px; overflow: hidden; }
.tkdrow__bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.tkdrow__v { font-size: 12.5px; color: var(--t2); text-align: right; }

/* 任务列头右侧「…」更多 */
.list__more { display: flex; margin-left: auto; color: var(--t2); padding: 4px; border-radius: 5px; }
.list__more:hover { background: #e7e9eb; color: var(--t1); }

/* ============================================================
   多维表格首页（实测 base-ref.png @2x 2926×1658 → 1463×829）
   满幅内嵌应用页：隐藏外层中间列表栏，页面自带顶栏 + 260 侧栏
   关键实测值见 BASE-METRICS.md：
     rail 0..229 | 二级侧栏 229..489(w=260) | 主区 489..1463
     顶栏高 72.5，底边 #dfdfde，横跨侧栏与主区
   ============================================================ */
.app.is-base { grid-template-columns: var(--rail-w) 0 1fr; }
.app.is-base .list { display: none; }

.bs {
  flex: 1 1 auto; width: 100%; min-width: 0; height: 100%;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
}
.bs__loading { padding: 40px; color: var(--t3); font-size: 13.5px; }

/* --- 顶栏：实测 y0..72.5，底边横线 rgb(223,223,222) --- */
.bs__top {
  flex: 0 0 72px; height: 72px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px 0 22px;
  border-bottom: 1px solid #dfdfde;
}
.bs__fold {
  width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center; color: #40464f; flex: 0 0 auto;
}
.bs__fold:hover { background: #f2f3f5; }
.bs__brand { display: flex; align-items: center; gap: 9px; margin-left: 2px; }
.bs__brandT { font-size: 19px; font-weight: 600; color: #1f2329; letter-spacing: .2px; }
.bs__topR { margin-left: auto; display: flex; align-items: center; gap: 4px; }

/* 顶栏右侧分段按钮：图标 + 文字 */
.bstb {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 10px; border-radius: 7px;
  font-size: 14.5px; color: #1f2329; white-space: nowrap;
}
.bstb:hover { background: #f2f3f5; }
.bstb--on { color: #1f2329; }
.bstb__ic { display: flex; align-items: center; }
.bstb__ic--p { color: #7f4ef4; }
.bstb__ic--b { color: #3370ff; }
.bstb__ic--g { color: #00a870; }
.bstb__ic--n { color: #1f2329; }
.bstb__ic svg { width: 19px; height: 19px; }
.bs__topSep { width: 1px; height: 20px; background: #e4e6eb; margin: 0 8px; }
.bs__help {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; color: #40464f;
}
.bs__help:hover { background: #f2f3f5; }

/* --- 主体：侧栏 + 主区 --- */
.bs__body { flex: 1 1 auto; min-height: 0; display: flex; }

/* 二级侧栏：实测宽 260，右边框 #dfdfde */
.bs__side {
  flex: 0 0 260px; width: 260px;
  border-right: 1px solid #dfdfde;
  padding: 18px 12px 12px;
  overflow-y: auto;
}
.bs__search {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px; margin-bottom: 10px;
  background: #f2f3f5; border-radius: 8px; color: var(--t3);
}
.bs__search input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-size: 14px; color: var(--t1);
}
.bs__search input::placeholder { color: #9aa1a9; }
.bs__searchIc { display: flex; }
.bs__searchIc svg { width: 16px; height: 16px; }

.bs__nav { display: flex; flex-direction: column; }
/* 实测：主页 44 高（选中态），其余 36 */
.bsn {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 10px; border-radius: 8px;
  font-size: 14.5px; color: #1f2329; text-align: left; width: 100%;
}
.bsn:hover { background: #f5f6f7; }
.bsn--on { background: #eff0f1; height: 44px; font-weight: 500; }
.bsn__ic { display: flex; color: #1f2329; flex: 0 0 auto; }
.bsn__l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsn__tag {
  font-size: 11px; color: #646a73; background: #f0f1f2;
  border-radius: 9px; padding: 1px 7px; font-weight: 400;
}
.bs__hr { height: 1px; background: #e6e7e9; margin: 12px 2px; }

.bs__pin {
  display: flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 10px; border-radius: 7px; width: 100%;
  font-size: 14px; color: #646a73; text-align: left;
}
.bs__pin:hover { background: #f5f6f7; }
.bs__pinChev { display: flex; color: #8f959e; }

.bs__grp {
  display: flex; align-items: center;
  height: 30px; padding: 0 10px; margin-top: 6px;
  font-size: 13.5px; color: #8f959e;
}
.bs__grp--sp { justify-content: space-between; }
.bs__grpT { display: flex; align-items: center; gap: 3px; }
.bs__grpChev { display: flex; }
.bs__grpActs { display: flex; align-items: center; gap: 2px; }
.bs__ga {
  width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center; color: #646a73; font-size: 16px;
}
.bs__ga:hover { background: #eff0f1; }
.bs__ga svg { width: 15px; height: 15px; }

/* 侧栏条目（智能体 / 空间） */
.bsi {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 10px; border-radius: 8px; width: 100%;
  font-size: 14.5px; color: #1f2329; text-align: left;
}
.bsi:hover { background: #f5f6f7; }
.bsi__emo { font-size: 16px; width: 20px; text-align: center; flex: 0 0 auto; }
.bsi__badge {
  width: 20px; height: 20px; border-radius: 5px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 500;
}
.bsi__n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- 主区 --- */
.bs__main { flex: 1 1 auto; min-width: 0; overflow-y: auto; padding: 0 22px 28px 28px; }
/* 主区内容列：实测卡片区 x525.5..1441.1，宽 915.6，居中 */
.bs__wrap { max-width: 920px; margin: 0 auto; }

/* Hero：标题实测 y183..216（相对顶栏下方 110），字号 30 */
/* 实测：顶栏底 72.5 → 大标题起点 150，故上间距 77.5 */
.bsh { padding-top: 77px; }
.bsh__t {
  margin: 0; text-align: center;
  font-size: 31px; line-height: 33px; font-weight: 600; color: #1f2329; letter-spacing: .3px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.bsh__acc { color: #7f4ef4; }
.bsh__logo { display: flex; }
.bsh__logo svg { width: 34px; height: 34px; }

/* AI 输入框：实测 y240..330（高 90），圆角 12，边框 #e4e6eb，最大宽 1050 */
.bsh__ask {
  /* 实测（边框口径）：框 y228..355，高 127；大标题底 178 → 框顶 228，间距 50。
     框内 padding-top 20（placeholder 落在 248），底部 23.5（专家模式行 316..331.5）。 */
  max-width: 920px; margin: 45px auto 0;
  border: 1px solid #e4e6eb; border-radius: 12px;
  background: #fff; padding: 14px 16px 13px;
  box-shadow: 0 1px 3px rgba(31,35,41,.04);
}
.bsh__ask:focus-within { border-color: #b9c6e8; }
.bsh__in {
  /* 实测参考框内只有 1 行输入区（高 22），底部才是专家模式行；
     rows=2 会把整框撑高 ~24px，导致下方所有内容整体下移。 */
  /* 实测：placeholder 首行 248..261，专家模式行 316 → 输入区高约 68 */
  width: 100%; height: 68px; border: 0; outline: none; resize: none;
  font-size: 14.5px; color: var(--t1); line-height: 22px;
  font-family: inherit; background: transparent; display: block;
}
.bsh__in::placeholder { color: #9aa1a9; }
/* 实测：输入行 223、专家模式行 246 → 两者间距 1（靠 foot 自身高度撑开） */
.bsh__askFoot { display: flex; align-items: center; margin-top: 0; }
.bsh__expert {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px; border-radius: 7px;
  font-size: 13.5px; color: #1f2329;
}
.bsh__expert:hover { background: #f2f3f5; }
.bsh__expert svg { width: 16px; height: 16px; }
.bsh__askR { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.bsh__mic {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: #646a73;
}
.bsh__mic:hover { background: #f2f3f5; }
/* 发送按钮：未输入时是浅灰圆钮，有内容变紫 */
.bsh__send {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #dee0e3; color: #fff;
}
.bsh__ask:focus-within .bsh__send, .bsh__send--on { background: #7f4ef4; }

/* 快捷 chips：实测 y340..372（高 32） */
/* 实测：AI 框底 355 → chips 盒顶 ~366（文字 375.5），间距 11 */
.bsh__chips { display: flex; justify-content: center; gap: 10px; margin-top: 11px; }
.bsch {
  display: flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: 16px;
  border: 1px solid #e4e6eb; background: #fff;
  font-size: 13.5px; color: #1f2329;
}
.bsch:hover { background: #f7f8fa; border-color: #d6d9de; }
.bsch__ic { display: flex; color: #646a73; }
.bsch__ic svg { width: 15px; height: 15px; }

/* 六个快捷卡片：实测 y543..601（高 58），圆角 10 */
/* 六卡片：实测 pitch 154.7、gap 12.5 → 卡片宽 142.1，高 58。
   minmax(0,1fr) 是必须的：默认 1fr = minmax(auto,1fr)，网格项不会收缩到
   内容宽度以下，窄窗口时会把整行撑破并溢出主区。 */
.bscards {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12.5px;
  margin-top: 112px;
}
/* 实测：缩略图左内边距 3.5、图宽 34.5、图文间距 12 */
.bsc {
  display: flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 8px 0 4px; border-radius: 10px;
  border: 1px solid #e8eaed; background: #fff; text-align: left;
}
.bsc:hover { border-color: #d6d9de; box-shadow: 0 2px 8px rgba(31,35,41,.06); }
/* 缩略图：浅色底图 + 右下角彩色徽标（实测参考图就是这种双层结构） */
.bsc__art { width: 35px; height: 35px; flex: 0 0 auto; display: flex; }
.bsc__art svg { width: 35px; height: 35px; }
.bsc { min-width: 0; }
.bsc__b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bsc__t {
  font-size: 14px; font-weight: 600; color: #1f2329;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bsc__s {
  font-size: 12.5px; color: #8f959e;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 最近访问：标题实测 y631..655 */
.bsr { margin-top: 30px; }
/* 实测：标题行 598..628 → 表头顶 660，间距 32 */
.bsr__h { display: flex; align-items: center; margin-bottom: 32px; }
.bsr__t { margin: 0; font-size: 16px; font-weight: 600; color: #1f2329; }
.bsr__acts { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.bsr__a {
  width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center; color: #646a73;
}
.bsr__a:hover { background: #f2f3f5; }
.bsr__a--on { background: #eff0f1; color: #1f2329; }

/* 最近访问表格：列位实测 标题 / 类型 / 所有者 / 最近访问 */
.bstb2__hd, .bstb2__r {
  display: grid;
  /* 实测列起点：标题 521.5 / 类型 951 / 所有者 1102.5 / 最近访问 1255.5 */
  grid-template-columns: 1fr 152px 153px 146px 40px;
  align-items: center;
}
/* 实测：表头文字 660..673，下边线 y=676；行高取 26 + 1px 线 */
.bstb2__hd {
  height: 26px; font-size: 13px; color: #8f959e;
  border-bottom: 1px solid #eff0f1;
}
/* 实测数据行 pitch 44（712.5 → 756.5） */
.bstb2__r { height: 44px; font-size: 14px; color: #1f2329; border-radius: 6px; }
.bstb2__r:hover { background: #f7f8fa; }
.bstb2__c { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bstb2__c--t { display: flex; align-items: center; gap: 9px; }
.bstb2__ic { display: flex; flex: 0 0 auto; }
.bstb2__ic svg { width: 20px; height: 20px; }
.bstb2__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bstb2__ext {
  font-size: 11px; color: #3370ff; background: #eaf1ff;
  border-radius: 4px; padding: 1px 5px; font-style: normal; flex: 0 0 auto;
}
.bstb2__c--k, .bstb2__c--v { color: #646a73; font-size: 13.5px; }
.bstb2__c--o { display: flex; align-items: center; gap: 8px; color: #1f2329; font-size: 13.5px; }
.bstb2__av {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 500;
}
.bstb2__more {
  width: 28px; height: 28px; border-radius: 6px;
  display: grid; place-items: center; color: #8f959e; opacity: 0;
}
.bstb2__r:hover .bstb2__more { opacity: 1; }
.bstb2__more:hover { background: #eff0f1; color: #1f2329; }

/* 网格视图 */
.bsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.bsg {
  display: flex; flex-direction: column; gap: 8px; text-align: left;
  padding: 14px; border: 1px solid #e8eaed; border-radius: 10px; background: #fff;
}
.bsg:hover { border-color: #d6d9de; box-shadow: 0 2px 8px rgba(31,35,41,.06); }
.bsg__top { display: flex; }
.bsg__top svg { width: 26px; height: 26px; }
.bsg__t { font-size: 14px; color: #1f2329; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsg__m { font-size: 12.5px; color: #8f959e; }

.bs__none { padding: 28px 0; color: var(--t3); font-size: 13.5px; text-align: center; }

/* ============================================================
   云文档首页（照 docs-ref.png 实测）
   实测 @1x：rail 右边界 231.5 · 二级侧栏 231.5..530.5（宽 299）
     三大入口卡片 y77..140（高 63）· 表格数据行 pitch 56
   ============================================================ */
.app.is-drive { grid-template-columns: var(--rail-w) 0 1fr; }
.app.is-drive .list { display: none; }
.app.is-drive .main { background: #fff; }

.dv { height: 100%; display: grid; grid-template-columns: 299px minmax(0, 1fr); }

.dvs {
  background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0; padding: 10px 10px 0;
}
.dvs__hd { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; }
.dvs__fold { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: var(--t2); }
.dvs__fold:hover { background: var(--hover); }
.dvs__ttl { font-size: 17px; font-weight: 600; color: var(--t1); }
.dvs__search {
  display: flex; align-items: center; gap: 7px; height: 34px;
  padding: 0 10px; background: #f2f3f5; border-radius: 8px; color: var(--t3);
  margin-bottom: 8px;
}
.dvs__search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 14px; }
.dvs__nav { display: flex; flex-direction: column; gap: 1px; }
.dvs__n {
  display: flex; align-items: center; gap: 10px; height: 38px;
  padding: 0 10px; border-radius: 8px; font-size: 14.5px; color: var(--t1);
}
.dvs__n:hover { background: var(--hover); }
.dvs__n--on { background: #e6efff; color: var(--blue); font-weight: 500; }
.dvs__scroll { flex: 1; min-height: 0; overflow-y: auto; margin-top: 10px; }
.dvs__gt {
  display: flex; align-items: center; font-size: 13px; color: var(--t3);
  padding: 10px 10px 4px;
}
.dvs__gt--act .dvs__gacts { margin-left: auto; display: flex; gap: 2px; }
.dvs__ib { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 5px; color: var(--t2); }
.dvs__ib:hover { background: var(--hover); }
.dvs__f {
  display: flex; align-items: center; gap: 9px; width: 100%;
  height: 34px; padding: 0 10px; border-radius: 7px;
  font-size: 14px; color: var(--t1); text-align: left;
}
.dvs__f:hover { background: var(--hover); }
.dvs__f span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dvs__f svg { flex: none; color: var(--t2); }
.dvs__add {
  display: flex; align-items: center; gap: 8px; width: 100%;
  height: 34px; padding: 0 10px; font-size: 14px; color: var(--t2);
}
.dvs__add i { font-style: normal; font-size: 15px; }
.dvs__add:hover { color: var(--blue); }
.dvs__empty { padding: 4px 10px; font-size: 13px; color: var(--t3); }
.dvs__foot {
  flex: none; height: 46px; display: flex; align-items: center;
  justify-content: center; gap: 12px; border-top: 1px solid var(--line);
  margin: 0 -10px;
}
.dvs__sep { width: 1px; height: 14px; background: var(--line); }

.dvm { display: flex; flex-direction: column; min-width: 0; }
.dvm__hd {
  flex: none; height: 56px; display: flex; align-items: center;
  padding: 0 20px;
}
.dvm__h { margin: 0; font-size: 21px; font-weight: 600; color: var(--t1); }
.dvm__gear { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: var(--t2); }
.dvm__gear:hover { background: var(--hover); }
.dvm__body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px 32px; }

/* 三大入口：等宽三列，实测高 63 */
.dvm__entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dve {
  display: flex; align-items: center; gap: 12px; height: 63px;
  padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; text-align: left;
}
.dve:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.dve__ic { flex: none; display: flex; }
.dve__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dve__b b { font-size: 15px; font-weight: 600; color: var(--t1); }
.dve__b i { font-style: normal; font-size: 12.5px; color: var(--t3); }
.dve svg:last-child { flex: none; color: var(--t3); }

.dvm__tabs { display: flex; align-items: center; gap: 22px; margin: 22px 0 6px; }
.dvm__tab { font-size: 15px; color: var(--t2); padding: 4px 0; }
.dvm__tab--on { color: var(--blue); font-weight: 600; }
.dvm__tadd { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 5px; color: var(--t3); }
.dvm__tadd:hover { background: var(--hover); }
.dvm__tr { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.dvm__lk { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--t2); }
.dvm__lk:hover { color: var(--blue); }
.dvm__vw { display: flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.dvm__vb { width: 30px; height: 26px; display: grid; place-items: center; color: var(--t2); }
.dvm__vb--on { background: #eaf1ff; color: var(--blue); }

/* 表格：六列，实测数据行 pitch 56 */
.dvt { margin-top: 8px; }
.dvt__hd, .dvt__r {
  display: grid;
  /* 后五列给 minmax 允许压缩，否则窄视口下 610px 的固定列会把标题列挤成 0 */
  grid-template-columns:
    minmax(110px, 1fr) minmax(78px, 150px) minmax(76px, 140px)
    minmax(64px, 120px) minmax(60px, 110px) 34px;
  align-items: center; gap: 10px;
}
/* 用户内置浏览器只有 ~675px 宽：按飞书窄窗行为逐级隐藏次要列，
   保证「标题」永远可读，而不是被压没 */
@media (max-width: 1150px) {
  .dvt__hd > :nth-child(4), .dvt__r > :nth-child(4) { display: none; }   /* 创建时间 */
  .dvt__hd, .dvt__r { grid-template-columns:
    minmax(110px, 1fr) minmax(78px, 150px) minmax(76px, 140px) minmax(60px, 110px) 34px; }
}
@media (max-width: 900px) {
  .dvt__hd > :nth-child(2), .dvt__r > :nth-child(2) { display: none; }   /* 位置 */
  .dvt__hd, .dvt__r { grid-template-columns:
    minmax(96px, 1fr) minmax(76px, 140px) minmax(58px, 110px) 34px; }
  .dv { grid-template-columns: 232px minmax(0, 1fr); }                   /* 侧栏同步收窄 */
}
.dvt__hd {
  height: 40px; font-size: 13px; color: var(--t3);
  border-bottom: 1px solid var(--line);
}
.dvt__sort { color: var(--t2); }
/* 只展示主页，不做打开文档的交互：行不再是可点状态（无手型、无 hover 底色） */
.dvt__r { height: 56px; border-bottom: 1px solid #f2f3f5; }
.dvt__c { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--t1); }
.dvt__c--t { display: flex; align-items: center; gap: 10px; }
.dvt__ic {
  flex: none; width: 26px; height: 26px; border-radius: 6px;
  display: grid; place-items: center; color: #fff;
}
.dvt__ic svg { width: 15px; height: 15px; }
.dvt__c--t b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dvt__pin { font-style: normal; font-size: 12px; flex: none; }
.dvt__c--loc, .dvt__c--o { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--t2); }
.dvt__c--loc svg { flex: none; color: var(--t3); }
.dvt__av {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 600; font-style: normal;
}
.dvt__c--d { font-size: 13px; color: var(--t2); }
.dvt__c--m { color: var(--t3); display: grid; place-items: center; }
.dvt__empty { padding: 40px; text-align: center; color: var(--t3); font-size: 14px; }
