/* =========================================================================
 * 工作台 · M2 样式：任务 / 日程 / 多维表格 / 站内提醒
 * 依赖 style.css 的设计变量与基础组件（.btn/.input/.panel/.state 等）
 * ========================================================================= */

/* ---------- 页面头部 ---------- */
.m2-head { align-items: flex-start; }
.m2-tico {
  width: 36px; height: 36px; border-radius: 8px; flex: none;
  background: var(--brand-l); color: var(--brand-d);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.m2-htxt { min-width: 0; }

/* ---------- 视图页签 ---------- */
.m2-vtabs { display: flex; align-items: center; gap: 6px; margin: 2px 0 12px; flex-wrap: wrap; }
.m2-vt {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff;   /* ②-3 */
  color: var(--text-2); font-size: 13px; cursor: pointer;
}
.m2-vt svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
.m2-vt:hover { border-color: var(--brand-l2); background: var(--brand-l); }
.m2-vt.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.m2-vt.on svg { color: #fff; }
.m2-vt.add { border-style: dashed; color: var(--muted); }
/* 230b：视图标签滑动指示（.vt-ink 由 m2route.js paintVtInk() 定位） */
.m2-vtabs { position: relative; }
.vt-ink { position: absolute; bottom: -5px; left: 0; width: 0; height: 3px; border-radius: 999px; background: var(--brand); opacity: .8; pointer-events: none; transition: left var(--dur-mod-01) var(--ease-standard), width var(--dur-mod-01) var(--ease-standard); }
.m2-vtools { margin-left: auto; display: flex; gap: 4px; }
/* ux11：范围切换 [全部|我的]（与地址 ?mine=1 双向同步） */
.m2-scope { display: inline-flex; align-items: stretch; height: 36px; border: 1px solid var(--line); border-radius: var(--radius-xs); background: var(--card); overflow: hidden; flex: none; }
.m2-scope-b { border: 0; background: transparent; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.m2-scope-b + .m2-scope-b { border-left: 1px solid var(--line); }
.m2-scope-b:hover { background: #f8fafc; }
.m2-scope-b.on { background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
/* ux11：工具栏「⋯ 更多」下拉（导出/导入/日历订阅） */
.m2-more { position: relative; flex: none; }
.m2-more-pop { position: absolute; right: 0; top: calc(100% + 7px); z-index: 46; width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 6px; }
.m2-more-pop .newmenu-item { font-size: 13px; }
.m2-tool {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: transparent; border-radius: 8px; color: var(--muted); cursor: pointer;
}
.m2-tool:hover { background: #eef2f7; color: var(--text-2); }
.m2-tool svg { width: 16px; height: 16px; }
.m2-tool.wide { width: auto; padding: 0 10px; height: 28px; font-size: 13px; border-color: var(--line); background: #fff; gap: 4px; }
.btn.on-tint { background: var(--brand-l); border-color: var(--brand-l2); color: var(--brand-d); }

/* ---------- 筛选条 ---------- */
.m2-fbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: --4px 0 10px; font-size: 13px; color: var(--muted); }
.m2-fchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text-2); }
.m2-fchip b { font-weight: 600; color: var(--brand-d); }

/* ---------- 表格（grid） ---------- */
.m2-gridwrap { overflow: auto; max-height: calc(100vh - 300px); }
.m2-grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; table-layout: auto; }
.m2-grid th {
  position: sticky; top: 0; z-index: 2; background: #fbfcfe;
  border-bottom: 1px solid var(--line); text-align: left; padding: 8px 10px;
  font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap;
}
.m2-grid td { border-bottom: 1px solid var(--line-2); padding: 0; vertical-align: top; }
.m2-grid tbody tr:nth-child(even) { background: rgba(37, 99, 235, .024); }   /* ty1：斑马纹 */
.m2-grid tbody tr:hover { background: #fafcff; }
.m2-num { width: 42px; text-align: center; color: var(--faint); font-size: 12px; padding: 10px 4px !important; }
.m2-td { min-width: 108px; max-width: 380px; }
.m2-cell { min-height: 40px; padding: 10px 10px; cursor: pointer; word-break: break-word; white-space: pre-wrap; }
.m2-cell.ed:hover { background: var(--brand-l); box-shadow: inset 0 0 0 1px var(--brand-l2); }
.m2-cell.empty .m2-ph { color: #cbd5e1; }
.m2-cell.editing { padding: 4px 6px; background: #fff; box-shadow: inset 0 0 0 2px var(--brand-l2); }
.m2-in {
  width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--brand);
  border-radius: 6px; font-size: 13px; font-family: inherit; outline: 0; background: #fff; color: var(--text);
}
select.m2-in { padding: 0 4px; }
.m2-rowops { width: 40px; text-align: center; padding: 8px 4px !important; }
.m2-op {
  border: 0; background: transparent; color: var(--faint); cursor: pointer;
  width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
}
.m2-op:hover { background: #eef2f7; color: var(--text-2); }
.m2-op svg { width: 15px; height: 15px; }
.m2-cbwrap { display: inline-flex; align-items: center; justify-content: center; padding: 10px; }
.m2-cbwrap input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.m2-emptyrow { text-align: center; color: var(--faint); padding: 24px 10px !important; font-size: 13px; }

/* ---------- 选项芯片 ---------- */
.m2-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; margin: 1px 0;
  border-radius: 999px; font-size: 12px; line-height: 1.75; border: 1px solid transparent;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.m2-chip svg { width: 12px; height: 12px; flex: none; }
.c-gray { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.c-blue { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }
.c-green { background: #ecfdf5; color: #15803d; border-color: #d1fae5; }
.c-orange { background: #fff7ed; color: #c2410c; border-color: #ffedd5; }
.c-red { background: #fef2f2; color: #b91c1c; border-color: #fee2e2; }
.c-purple { background: #f5f3ff; color: #6d28d9; border-color: #ede9fe; }
.m2-user { font-size: 13px; color: var(--text-2); }
.m2-cmb { font-size: 11px; color: var(--muted); margin-left: 4px; white-space: nowrap; }
.m2-link { word-break: break-all; }

/* ---------- 看板 ---------- */
.m2-kb { display: flex; gap: 12px; padding: 12px; overflow-x: auto; align-items: flex-start; }
.m2-kbcol {
  width: 232px; flex: none; background: #f8fafc; border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 120px;
}
.m2-kbcol.over { border-color: var(--brand); background: var(--brand-l); }
.m2-kbh { display: flex; align-items: center; justify-content: space-between; padding: 1px 2px 4px; }
.m2-kbn { color: var(--faint); font-size: 12px; }
.m2-kbbody { display: flex; flex-direction: column; gap: 8px; min-height: 8px; }
.m2-kbcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 8px 10px; cursor: pointer; box-shadow: var(--shadow-s); }
.m2-kbcard:hover { border-color: var(--brand-l2); }
.m2-kbcard.dragging { opacity: .55; transform: scale(1.02); box-shadow: var(--shadow-l); border-color: var(--brand-l2); }
.m2-kbt { font-size: 13px; font-weight: 600; margin-bottom: 4px; word-break: break-word; }
.m2-kbm { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.m2-kbadd {
  border: 1px dashed var(--line); background: transparent; border-radius: var(--radius-xs);
  color: var(--muted); font-size: 12px; padding: 4px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.m2-kbadd:hover { border-color: var(--brand); color: var(--brand-d); background: #fff; }
.m2-kbadd svg { width: 13px; height: 13px; }

/* ---------- 日历 ---------- */
.m2-calbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.m2-caltitle { font-weight: 600; font-size: 14px; min-width: 108px; text-align: center; }
.m2-calsub { font-size: 12px; color: var(--faint); }
.m2-cal { display: grid; grid-template-columns: repeat(7, 1fr); }
.m2-calw { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 0; background: #fbfcfe; border-bottom: 1px solid var(--line); }
.m2-cald { min-height: 96px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 4px 6px; cursor: pointer; }
.m2-cald:nth-child(7n) { border-right: 0; }
.m2-cald.out { background: #fafbfd; cursor: default; }
.m2-cald:not(.out):hover { background: var(--brand-l); }
.m2-cald.today { background: #f0f7ff; }
.m2-caln { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.m2-cald.today .m2-caln { color: var(--brand-d); font-weight: 700; }
.m2-calitems { display: flex; flex-direction: column; gap: 4px; }
.m2-cali { font-size: 12px; background: var(--brand-l); color: var(--brand-d); border-radius: 6px; padding: 1px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m2-cali:hover { background: var(--brand-l2); }
.m2-calmore { font-size: 11px; color: var(--faint); cursor: pointer; }
.m2-calmore:hover { color: var(--brand-d); text-decoration: underline; }
.m2-caln-pt { cursor: pointer; }

/* M3x：日历「当天清单」浮层 */
.m2-calpop { min-width: 250px; max-width: 340px; max-height: 360px; padding: 4px 6px 6px; }
.m2-calpop-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 6px 4px; border-bottom: 1px solid var(--line-2); }
.m2-calpop-n { margin-left: auto; font-weight: 400; color: var(--faint); font-size: 12px; }
.m2-calpop-sec { font-size: 12px; color: var(--muted); padding: 6px 6px 2px; }
.m2-calpop-i { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.m2-calpop-i:hover { background: #f4f7fb; }
.m2-calpop-i.done .m2-calpop-t { text-decoration: line-through; color: var(--faint); }
.m2-calpop-i.over .m2-calpop-t { color: var(--danger); }
.m2-calpop-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--brand-l2); flex: 0 0 auto; }
.m2-calpop-dot.pt { border-radius: 50%; background: transparent; border: 2px solid var(--brand-l2); }
.m2-calpop-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m2-calpop-who { margin-left: auto; color: var(--muted); font-size: 12px; flex: 0 0 auto; }
.m2-calpop-f { margin-top: 4px; padding: 6px 8px; border-top: 1px solid var(--line-2); color: var(--brand-d); font-size: 13px; cursor: pointer; }
.m2-calpop-f:hover { background: var(--brand-l); border-radius: 6px; }

/* ---------- 清单 ---------- */
.m2-list { display: flex; flex-direction: column; }
.m2-li { display: flex; align-items: center; gap: 10px; padding: 2px 16px 2px 4px; border-bottom: 1px solid var(--line-2); min-height: 44px; }
.m2-li:last-child { border-bottom: 0; }
.m2-li:hover { background: var(--brand-l); }
.m2-lit { flex: 1; min-width: 0; font-size: 14px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 0; }
.m2-li.done .m2-lit { text-decoration: line-through; color: var(--faint); }
.m2-lid { font-size: 12px; color: var(--muted); white-space: nowrap; }
.m2-lid.over { color: var(--danger); }
.m2-linone { padding: 32px; text-align: center; color: var(--faint); font-size: 13px; }

/* ---------- 悬浮多选面板 ---------- */
.m2-pop {
  position: fixed; z-index: 95; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-s); box-shadow: var(--shadow-l); padding: 8px;
  min-width: 180px; max-height: 280px; overflow: auto; display: flex; flex-direction: column; gap: 2px;
}
.m2-popitem { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.m2-popitem:hover { background: #f4f7fb; }
.m2-popitem input { accent-color: var(--brand); }
.m2-popnone { color: var(--faint); font-size: 13px; padding: 6px; }

/* ---------- 表格列表页 ---------- */
.m2-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; padding: 16px; }
.m2-tcard {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-s); display: block; color: inherit; min-height: 98px;
}
.m2-tcard:hover { border-color: var(--brand-l2); box-shadow: var(--shadow); text-decoration: none; }
.m2-tcard .tico { font-size: 20px; }
.m2-tname { font-size: 14px; font-weight: 600; margin: 8px 0 2px; }
.m2-tsub { font-size: 12px; color: var(--muted); }
.m2-tdel { position: absolute; top: 9px; right: 9px; opacity: 0; }
.m2-tcard:hover .m2-tdel { opacity: 1; }
.m2-sec { padding: 12px 16px 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.m2-seclink { float: right; font-weight: 400; font-size: 11px; color: var(--brand); text-decoration: none; }
.m2-seclink:hover { text-decoration: underline; }
.m2-newcard {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 98px;
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted);
  background: transparent; cursor: pointer; font-size: 13px;
}
.m2-newcard:hover { border-color: var(--brand); color: var(--brand-d); background: var(--brand-l); }
.m2-newcard svg { width: 16px; height: 16px; }

/* ---------- 行详情弹窗 ---------- */
.m2-rmeta { font-size: 12px; color: var(--muted); padding: 0 0 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.m2-rfield { display: grid; grid-template-columns: 98px 1fr; gap: 8px 12px; align-items: start; margin-bottom: 8px; }
.m2-rlabel { font-size: 13px; color: var(--muted); padding-top: 8px; }
.m2-rctl { min-width: 0; }
.m2-rctl .input { height: 33px; }
.m2-rctl textarea.input { height: auto; }
.m2-cmt { border-top: 1px solid var(--line-2); margin-top: 16px; padding-top: 12px; }
.m2-cmt-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.m2-cmt-item { display: flex; gap: 8px; margin-bottom: 10px; }
.m2-ava {
  width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--brand-l2); color: var(--brand-d);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.m2-cmt-body { flex: 1; min-width: 0; }
.m2-cmt-meta { font-size: 12px; color: var(--muted); margin-bottom: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.m2-cmt-text { font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.m2-cmt-none { font-size: 13px; color: var(--faint); padding: 4px 0 8px; }
.m2-cmt-new { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 8px; }
.m2-cmt-new textarea { flex: 1; min-height: 54px; }
/* 245：评论配图——待发条 / 输入行 / 缩略图与大图 */
.m2-cmt-pend { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.m2-cmt-pitem { position: relative; display: inline-block; }
.m2-cmt-pitem img { height: 64px; border: 1px solid var(--line-2); border-radius: 6px; display: block; }
.m2-cmt-px { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(30, 41, 59, .85); color: #fff; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer; }
.m2-cmt-inrow { display: flex; gap: 8px; align-items: flex-start; flex: 1 1 100%; }
.m2-cmt-inrow textarea { flex: 1; min-height: 54px; }
.m2-cmt-btns { display: flex; gap: 8px; }
.m2-cmt-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.m2-cmt-img { max-height: 120px; max-width: 240px; border: 1px solid var(--line-2); border-radius: 6px; cursor: zoom-in; display: block; }
.m2-imgview { text-align: center; padding: 10px; }
.m2-imgview img { max-width: 100%; max-height: 72vh; border-radius: 6px; }
.m2-att { display: flex; flex-direction: column; gap: 4px; }
.m2-attitem { display: flex; align-items: center; gap: 8px; font-size: 13px; background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 4px 8px; }
.m2-attitem .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m2-attitem svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
.m2-attadd { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--brand-d); cursor: pointer; }
.m2-rel { max-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.m2-rel label { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 4px; border-radius: 6px; cursor: pointer; }
.m2-rel label:hover { background: #f4f7fb; }
.m2-rel input { accent-color: var(--brand); }

/* ---------- 字段 / 视图管理 ---------- */
.m2-frow { display: flex; gap: 8px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.m2-frow:last-child { border-bottom: 0; }
.m2-fmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.m2-fsub { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.m2-fsub .input { height: 32px; }
.m2-selw { width: 108px; flex: none; }
.m2-namew { flex: 1 1 140px; }
.m2-optrow { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.m2-optrow .input { height: 30px; }
.m2-optrow .o-label { flex: 1; }
.m2-optrow .o-color { width: 84px; flex: none; }
.m2-optrow .o-done { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.m2-fops { display: flex; gap: 4px; flex: none; padding-top: 2px; }
.m2-kchip { font-size: 11px; color: var(--faint); }

/* ---------- 站内提醒 ---------- */
.bell { position: relative; }
.bell-badge {
  position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 11px; line-height: 16px; text-align: center; padding: 0 4px; font-weight: 600;
}
.m2-notif { display: flex; flex-direction: column; }
.m2-nitem { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); cursor: pointer; align-items: flex-start; }
.m2-nitem:hover { background: var(--brand-l); }
.m2-nitem:last-child { border-bottom: 0; }
.m2-nitem.read { opacity: .6; }
.m2-ndot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 8px; flex: none; }
.m2-nitem.read .m2-ndot { background: transparent; }
.m2-nbody { flex: 1; min-width: 0; }
.m2-ntext { font-size: 13px; color: var(--text-2); word-break: break-word; }
.m2-nmeta { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.m2-nnone { padding: 32px; text-align: center; color: var(--faint); font-size: 13px; }
.m2-nkind { flex: none; }

/* ---------- 筛选/排序弹窗 ---------- */
.m2-cond { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.m2-cond .input { height: 32px; }
.m2-cond .c-field { flex: 1.1; }
.m2-cond .c-op { width: 96px; flex: none; }
.m2-cond .c-val { flex: 1; }
.m2-cond .c-del { flex: none; }
.m2-fhead { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 6px 0 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .m2-gridwrap { max-height: none; }
  .m2-kb { padding: 8px; }
  .m2-kbcol { width: 205px; }
  .m2-cald { min-height: 72px; }
  .m2-rfield { grid-template-columns: 78px 1fr; }
  .m2-fsub { flex-direction: column; align-items: stretch; }
  .m2-selw { width: auto; }
}

/* ---------- 补遗 ---------- */
.m2-th { display: inline-flex; align-items: center; gap: 4px; }
.m2-rn { font-variant-numeric: tabular-nums; }
.m2-cell .m2-edsel { width: 100%; }
.m2-panel { padding: 0; overflow: hidden; }
.m2-attadd { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--brand-d); cursor: pointer; padding: 6px 4px; border-radius: 8px; }
.m2-attadd:hover { background: var(--brand-l); }
.m2-attadd svg { width: 14px; height: 14px; }

/* ---------- M2e-1 总览（看板首页） ---------- */
.m2h-body { display: flex; flex-direction: column; gap: 16px; }
.m2h-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 32px 6px; }
.m2h-empty { color: var(--muted); font-size: 13px; line-height: 1.75; padding: 10px 2px; }
.m2h-mut { color: var(--muted); font-size: 13px; }
.m2h-pad { padding: 8px 2px 0; }
.m2h-sub2 { margin: 12px 2px 2px; }
/* t5：周况卡折叠行（文件动态/测试探针/备忘要点）——按钮化、默认折叠 */
.m2h-fold { display: flex; align-items: center; gap: 6px; width: 100%; margin: 12px 2px 2px; padding: 0; background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 13px; color: var(--muted); text-align: left; }
.m2h-fold:hover { color: var(--text-2); }
.m2h-fold .m2h-fi { flex: none; width: 12px; font-size: 11px; color: var(--muted-2); }
/* t6：周况三列（文件动态/测试探针/备忘要点） —— 并列排布，各列独立折叠 */
.m2h-fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2px 20px; align-items: start; }
.m2h-fcol { min-width: 0; }
.m2h-list[hidden] { display: none; }

.m2h-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; }
.m2h-tile { display: flex; align-items: center; gap: 12px; padding: 16px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.m2h-tile:hover { border-color: var(--brand-l2); box-shadow: var(--shadow-s); }
.m2h-tile .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.m2h-tile .ic svg { width: 20px; height: 20px; }
.m2h-tile .tx b { display: block; font-size: 24px; font-weight: 700; line-height: 1.15; }
.m2h-tile .tx i { font-style: normal; font-size: 13px; color: var(--muted); }
.m2h-tile.t-blue .ic { background: var(--brand-l); color: var(--brand); }
.m2h-tile.t-orange .ic { background: #fff7ed; color: #c2410c; }
.m2h-tile.t-red .ic { background: var(--danger-l); color: var(--danger); }
.m2h-tile.t-purple .ic { background: #f5f3ff; color: #6d28d9; }
.m2h-tile.t-green .ic { background: #ecfdf5; color: #047857; }

.m2h-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.m2h-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.m2h-wide { grid-column: 1 / -1; }
.m2h-ch { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
.m2h-more { border: 0; background: none; color: var(--brand); font: inherit; font-size: 13px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.m2h-more:hover { background: var(--brand-l); }
.m2h-cb { padding: 8px 10px 12px; }

.m2h-list { display: flex; flex-direction: column; }
.m2h-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 8px; cursor: pointer; }
.m2h-row:hover { background: var(--bg); }
.m2h-row + .m2h-row { border-top: 1px dashed var(--line-2); }
.m2h-rt { flex: 1; min-width: 0; }
.m2h-rname { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m2h-rmeta { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.m2h-date { flex: none; width: 46px; text-align: center; font-size: 12px; font-weight: 600; color: var(--brand-d); background: var(--brand-l); border-radius: 8px; padding: 4px 0; }
.m2h-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-l2); }
.m2h-fic { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--bg); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.m2h-fic svg { width: 15px; height: 15px; }
.m2h-fsize { flex: none; color: var(--faint); font-size: 12px; }

.m2h-bars { display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.m2h-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.m2h-barl { flex: none; width: 72px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m2h-barw { flex: 1; height: 10px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.m2h-barw i { display: block; height: 100%; border-radius: 6px; }
.m2h-barn { flex: none; width: 26px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.m2h-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.m2h-tip { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 16px; font-size: 13px; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; line-height: 1.75; }
.m2h-tip b { color: var(--text); font-size: 13px; }
.m2h-tip code { background: var(--brand-l); color: var(--brand-d); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.m2h-tip .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- M2e-2 看板触屏拖拽 ---------- */
.m2-kbcard { touch-action: pan-y; }
.m2-kbghost { position: fixed; z-index: 999; pointer-events: none; opacity: .93; box-shadow: var(--shadow-l); transform: rotate(1.4deg) scale(1.02); }
.m2-kbcard.touch-src { opacity: .32; }
body.m2-dragging, body.m2-dragging * { cursor: grabbing !important; user-select: none; }

@media (max-width: 1100px) {
  .m2h-tiles { grid-template-columns: repeat(2, 1fr); }
  .m2h-cols { grid-template-columns: 1fr; }
}

/* =========================================================================
 * M2f 关联文件（reflinks）：chip / 选择器弹窗
 * ========================================================================= */
.m2-reffield { display: flex; flex-direction: column; gap: 8px; }
.m2-reflist { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.m2-refchip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); font-size: 13px; cursor: pointer;
}
.m2-refchip:hover { border-color: var(--brand-l2); background: var(--brand-l); color: var(--brand-d); }
.m2-refchip svg { width: 13px; height: 13px; flex: none; color: var(--brand); }
.m2-refchip b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.m2-refchip.lock { cursor: not-allowed; background: #f8fafc; border-style: dashed; color: var(--muted); }
.m2-refchip.lock svg { color: var(--faint); }
.m2-refx {
  border: none; background: transparent; color: var(--faint); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0 2px; border-radius: 6px;
}
.m2-refx:hover { background: var(--danger-l); color: var(--danger); }
.m2-refadd {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  border: 1px dashed var(--line); background: transparent; border-radius: 999px;
  padding: 4px 12px; font-size: 13px; color: var(--brand-d); cursor: pointer;
}
.m2-refadd:hover { background: var(--brand-l); border-color: var(--brand-l2); }
.m2-refadd svg { width: 14px; height: 14px; }

/* 只读提示（任务权限收紧后，非负责人看到） */
.m2-lockhint {
  margin-bottom: 12px; padding: 8px 12px; border-radius: var(--radius-s);
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px;
}

/* 从项目档案三级联动 */
.m2-projpick { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; background: #fbfcfe; margin-bottom: 12px; }
.m2-projrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.m2-projrow select, .m2-projrow .input { min-width: 130px; }
.m2-projrow .btn { white-space: nowrap; }
/* M9l：顶层大目录快捷定位（chips）+ 筛选 */
.m2-qchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; max-height: 100px; overflow: auto; }
.m2-qchips-load { font-size: 13px; color: var(--muted); }
.m2-qchip {
  border: 1px solid var(--line); background: var(--card); color: var(--text-2);
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px;
  cursor: pointer; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis;
}
.m2-qchip:hover { background: var(--brand-l); border-color: var(--brand-l2); }
.m2-qchip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 文件选择器 */
.m2-pickbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.m2-pickbar .m2-pickroot { min-width: 140px; }
.m2-crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; font-size: 13px; min-height: 24px; }
.m2-crumb { border: none; background: transparent; color: var(--brand-d); cursor: pointer; padding: 2px 4px; border-radius: 6px; font: inherit; }
.m2-crumb:hover { background: var(--brand-l); }
.m2-picklist {
  max-height: 320px; overflow: auto; border: 1px solid var(--line);
  border-radius: var(--radius-s); background: #fff;
}
.m2-pickrow {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer;
  border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--text-2);
}
.m2-pickrow:last-child { border-bottom: none; }
.m2-pickrow:hover { background: #f8fafc; }
.m2-pickrow.on { background: var(--brand-l); color: var(--brand-d); }
.m2-pickrow .ck { width: 15px; flex: none; color: var(--brand); font-size: 13px; }
.m2-pickrow .ic { flex: none; display: inline-flex; }
.m2-pickrow .ic svg { width: 15px; height: 15px; color: var(--faint); }
.m2-pickrow b { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m2-pickrow .m2-pickgo { flex: none; }

/* =========================================================================
 * M2g 团队页
 * ========================================================================= */
.m2t-body { display: flex; flex-direction: column; gap: 16px; }
.m2t-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.m2t-filter .m2t-sel { min-width: 126px; }
.m2t-filter .m2t-q { min-width: 210px; }
.m2t-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* t8：成员一览默认一行 2 个（用户拍板，100% 缩放下）；窄屏回退整行 1 个 */
@media (max-width: 720px) { .m2t-cards { grid-template-columns: 1fr; } }
.m2t-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.m2t-card:hover { border-color: var(--brand-l2); box-shadow: var(--shadow-s); }
.m2t-card.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
.m2t-ch { display: flex; align-items: center; gap: 10px; }
.m2t-ava {
  width: 36px; height: 36px; border-radius: 12px; flex: none; background: var(--brand-l);
  color: var(--brand-d); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px;
}
.m2t-cn { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.m2t-cn b { font-size: 14px; }
.m2t-rate { text-align: right; flex: none; }
.m2t-rate b { display: block; font-size: 16px; color: var(--brand-d); }
.m2t-rate i { font-style: normal; font-size: 12px; color: var(--muted); }
.m2t-bar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.m2t-bar i { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #2563eb); border-radius: 999px; }
.m2t-metas { display: flex; flex-wrap: wrap; gap: 4px; }
.m2t-recent { display: flex; flex-direction: column; gap: 4px; }
.m2t-mini {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.m2t-mini:hover { color: var(--brand-d); }
.m2t-mini .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-l2); flex: none; }
.m2t-mini .dot.red { background: var(--danger); }
.m2t-more {
  border: none; background: transparent; color: var(--brand-d); cursor: pointer;
  font: inherit; font-size: 13px; text-align: left; padding: 0;
}
.m2t-more:hover { text-decoration: underline; }
.m2t-wide { grid-column: 1 / -1; }
.m2t-tablewrap { overflow-x: auto; }
.m2t-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.m2t-table th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 13px;
  padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.m2t-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.m2t-table tbody tr { cursor: pointer; }
.m2t-table tbody tr:hover { background: #f8fafc; }
.m2t-title { font-weight: 600; color: var(--text); max-width: 300px; }
.m2t-refs { max-width: 260px; }
.m2t-refs .m2-refchip { pointer-events: auto; }
.m2t-foot { font-size: 13px; }

@media (max-width: 1100px) {
  .m2t-title { max-width: 180px; }
}
.m2-picknew { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.m2-picknew .input { width: 210px; height: 30px; }

/* 总览「我的任务」行内的关联文件夹 chip（M2f 后续：首页也能看到并点开） */
.m2h-refs { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; max-width: 100%; margin-left: 2px; }
.m2h-refs .m2-refchip { height: 22px; padding: 0 8px; font-size: 12px; line-height: 22px; }
.m2h-refs .m2-refchip b { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m2h-refs .m2-refchip svg { width: 13px; height: 13px; }
.m2h-rmeta { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* ========== M3b：标签 chips（三态通用） + 备忘墙 ========== */
.m2-tag {
  display: inline-flex; align-items: center; padding: 1px 8px; margin: 1px 1px 1px 0;
  border-radius: 6px; font-size: 12px; line-height: 1.75; white-space: nowrap;
  background: #eef2ff; color: #4338ca; border: 1px solid #e0e7ff; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
}
.m2-cell .m2-tag { pointer-events: none; }
.m3-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--brand-l); color: var(--brand); flex: none; }
.m3-ico svg { width: 18px; height: 18px; }

.m3-quick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; margin: 12px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.m3-quick .input { flex: 1 1 320px; min-width: 220px; }
.m3-qhint { color: var(--muted); font-size: 13px; }

.m3-tagbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 12px 0 0; }
.m3-chipall, .m3-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text-2);
  font: inherit; font-size: 13px; cursor: pointer;
}
.m3-chipall:hover, .m3-chip:hover { border-color: var(--brand-l2); color: var(--brand); }
.m3-chipall.on, .m3-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.m3-chip i { font-style: normal; font-size: 11px; opacity: .7; }

.m3-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; margin-top: 12px; }
.m3-card {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.m3-card:hover { border-color: var(--brand-l2); box-shadow: var(--shadow-s, 0 2px 10px rgba(15,23,42,.06)); }
.m3-card.arch { opacity: .72; background: #fafbfd; }
.m3-ctop { display: flex; align-items: flex-start; gap: 8px; }
.m3-ct { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.5; word-break: break-word; }
.m3-cn { color: var(--text-2); font-size: 13px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; max-height: 66px; overflow: hidden; }
.m3-ctags { display: flex; flex-wrap: wrap; gap: 2px; }
.m3-tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 6px; font-size: 12px; line-height: 1.75; background: #eef2ff; color: #4338ca; border: 1px solid #e0e7ff; cursor: pointer; }
.m3-tag:hover { background: #e0e7ff; }
.m3-cf { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.m3-tk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.m3-tk svg { width: 12px; height: 12px; }
.m3-tk.red { background: var(--danger-l); color: var(--danger); }
.m3-tk.orange { background: #fff7ed; color: #c2410c; }
.m3-tk.none { background: transparent; color: var(--faint); padding-left: 0; }
.m3-none { padding: 24px 12px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- M2j：任务 ↔ 日程 引用式关联（记录详情弹窗内） ---------- */
.m2-link-box { border-top: 1px solid var(--line-2); margin-top: 16px; padding-top: 12px; }
.m2-link-head { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.m2-link-err {
  font-size: 13px; color: #b42318; background: #fef3f2; border: 1px solid #fecdca;
  border-radius: var(--radius-xs); padding: 6px 8px; margin-bottom: 8px; word-break: break-word;
}
.m2-link-hint {
  font-size: 13px; color: var(--text-2); background: #f8fafc; border: 1px solid var(--line);
  border-radius: var(--radius-xs); padding: 6px 8px; margin-bottom: 8px; word-break: break-word;
}
.m2-link-err[hidden], .m2-link-hint[hidden] { display: none; }
.m2-link-none { font-size: 13px; color: var(--faint); padding: 4px 0 8px; }
.m2-link-row { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.m2-link-row:last-child { border-bottom: 0; }
.m2-link-ck { margin-top: 4px; flex: none; accent-color: var(--brand); cursor: pointer; }
.m2-link-main { flex: 1; min-width: 0; }
.m2-link-name { font-size: 13px; color: var(--text); word-break: break-word; }
.m2-link-row .m2-link-name { line-height: 1.6; }
/* M2n：对端标题可点（点开对面那条详情） */
button.m2-link-open {
  display: block; width: 100%; text-align: left; padding: 0; margin: 0; border: 0; background: none;
  font: inherit; font-size: 13px; color: var(--link, #1d4ed8); cursor: pointer; text-decoration: underline;
  text-decoration-color: rgba(29, 78, 216, .35); text-underline-offset: 2px;
}
button.m2-link-open:hover { text-decoration-color: currentColor; }
.m2-ownerchip {
  display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 999px;
  background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe;
}
.m2-ownerx {
  border: 0; background: none; cursor: pointer; color: inherit; font: inherit; line-height: 1; padding: 0 2px;
}
.m2-ownerx:hover { color: #b91c1c; }
.m2-link-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.m2-link-role {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px;
  font-size: 12px; line-height: 1.75; background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0;
}
.m2-link-role.r-pre { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }
.m2-link-role.r-during { background: #ecfdf5; color: #15803d; border-color: #d1fae5; }
.m2-link-role.r-after { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.m2-link-off { color: var(--text-2); }
.m2-link-sub { color: var(--muted); }
.m2-link-del { flex: none; }
.m2-link-add {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2);
}
.m2-link-add .input { height: 32px; }
.m2-link-sel { flex: 1 1 170px; min-width: 140px; }
.m2-link-role-sel { width: 92px; flex: none; }
.m2-link-off-in { width: 134px; flex: none; }
.m2-link-tip { font-size: 12px; color: var(--faint); margin-top: 6px; line-height: 1.75; }
@media (max-width: 720px) {
  .m2-link-sel, .m2-link-role-sel, .m2-link-off-in { flex: 1 1 100%; width: auto; }
}

/* ---------- M2k：日程模板派生待办（记录弹窗内，位于「关联任务」区块上方） ---------- */
.m2-tpl-box { border-top: 1px solid var(--line-2); margin-top: 16px; padding-top: 12px; }
.m2-tpl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.m2-tpl-h { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.m2-tpl-err {
  font-size: 13px; color: #b42318; background: #fef3f2; border: 1px solid #fecdca;
  border-radius: var(--radius-xs); padding: 6px 8px; margin-bottom: 8px; word-break: break-word;
}
.m2-tpl-hint {
  font-size: 13px; color: var(--text-2); background: #f8fafc; border: 1px solid var(--line);
  border-radius: var(--radius-xs); padding: 6px 8px; margin-bottom: 8px; word-break: break-word;
}
.m2-tpl-err[hidden], .m2-tpl-hint[hidden] { display: none; }
.m2-tpl-done {
  font-size: 13px; color: #15803d; background: #ecfdf5; border: 1px solid #d1fae5;
  border-radius: var(--radius-xs); padding: 6px 8px; margin-bottom: 8px; word-break: break-word;
}
.m2-tpl-note { font-size: 13px; color: var(--faint); line-height: 1.75; margin-bottom: 8px; }
.m2-tpl-none { font-size: 13px; color: var(--faint); padding: 4px 0 8px; }
.m2-tpl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.m2-tpl-actions + .m2-tpl-none { margin-top: 4px; }
.m2-tpl-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.m2-tpl-pick .input { height: 32px; }
.m2-tpl-sel { flex: 1 1 170px; min-width: 140px; }
.m2-tpl-tip { font-size: 12px; color: var(--faint); margin-top: 6px; line-height: 1.75; }
.m2-tpl-pv { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.m2-tpl-pv-head { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.m2-tpl-pv-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--line-2);
}
.m2-tpl-pv-t { flex: 1; min-width: 0; font-size: 13px; line-height: 1.6; color: var(--text); word-break: break-word; }
.m2-tpl-pvmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: none; font-size: 12px; color: var(--muted); }
.m2-tpl-due { color: var(--text-2); }
.m2-tpl-pri { color: var(--muted); }
.m2-tpl-pv-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.m2-tpl-list { margin-top: 2px; }
.m2-tpl-row { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.m2-tpl-row .mini { flex: none; }
.m2-tpl-main { flex: 1; min-width: 0; }
.m2-tpl-name { font-size: 13px; line-height: 1.6; color: var(--text); word-break: break-word; }
.m2-tpl-seed {
  display: inline-flex; align-items: center; margin-left: 6px; padding: 0 6px; border-radius: 999px;
  font-size: 11px; line-height: 1.75; background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0;
}
.m2-tpl-meta { font-size: 12px; color: var(--muted); margin-top: 4px; word-break: break-word; }
.m2-tpl-form { margin-top: 2px; }
.m2-tpl-f { display: block; margin-bottom: 8px; }
.m2-tpl-f > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.m2-tpl-f .input { width: 100%; }
.m2-tpl-f textarea.input {
  height: auto; min-height: 92px; line-height: 1.75;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.m2-tpl-fact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 720px) {
  .m2-tpl-sel { flex: 1 1 100%; width: auto; }
  .m2-tpl-pv-row { flex-wrap: wrap; }
  .m2-tpl-pvmeta { flex: 1 1 100%; }
}

/* ---------------- M2o 收件箱（待我处理聚合） ---------------- */
.m2i-acts { display: flex; gap: 8px; align-items: center; }
.m2i-body { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.m2i-loading { display: flex; align-items: center; gap: 8px; color: var(--muted, #64748b); padding: 16px 2px; }
.m2i-card { border: 1px solid var(--line, #e2e8f0); border-radius: 12px; background: var(--card, #fff); overflow: hidden; }
.m2i-card.m2i-l0 { border-left: 4px solid #f87171; }
.m2i-card.m2i-l1 { border-left: 4px solid #fb923c; }
.m2i-card.m2i-l2 { border-left: 4px solid #60a5fa; }
.m2i-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line, #eef2f7); }
.m2i-gt { font-weight: 600; font-size: 14px; }
.m2i-badge { font-size: 12px; line-height: 18px; padding: 0 8px; border-radius: 8px; color: #fff; }
.m2i-badge.red { background: #f87171; } .m2i-badge.orange { background: #fb923c; } .m2i-badge.blue { background: #60a5fa; }
.m2i-hint { color: var(--muted, #94a3b8); font-size: 12px; }
.m2i-list { display: flex; flex-direction: column; }
.m2i-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line, #f1f5f9); }
.m2i-row:first-child { border-top: 0; }
.m2i-row.m2i-open { cursor: pointer; }
.m2i-row.m2i-open:hover { background: var(--hover, #f8fafc); }
.m2i-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.m2i-dot.red { background: #f87171; } .m2i-dot.orange { background: #fb923c; } .m2i-dot.blue { background: #60a5fa; }
.m2i-body { flex: 1; min-width: 0; }
.m2i-title { font-size: 14px; color: var(--text, #0f172a); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.m2i-meta { display: flex; gap: 10px; font-size: 12px; color: var(--muted, #94a3b8); margin-top: 2px; }
.m2i-why { color: #64748b; }
.m2i-date { color: #d92d20; }
.m2i-go { color: var(--muted, #cbd5e1); flex: none; }
/* ===== M2t 每日摘要条（收件箱顶部） ===== */
.m2d-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px; padding: 8px 12px; background: var(--card, #fff); }
.m2d-loading { display: flex; align-items: center; gap: 8px; color: var(--muted, #64748b); }
.m2d-date { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.m2d-tag { font-size: 11px; line-height: 18px; padding: 0 8px; border-radius: 8px; background: #dcfce7; color: #166534; }
.m2d-tag.old { background: #e2e8f0; color: #475569; }
.m2d-sp { flex: 1; }
.m2d-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.m2d-chip { font-size: 12px; padding: 2px 8px; border-radius: 8px; background: #f1f5f9; color: #475569; }
.m2d-chip b { font-weight: 600; }
.m2d-chip.red { background: #fee2e2; color: #b91c1c; }
.m2d-chip.orange { background: #ffedd5; color: #c2410c; }
.m2d-chip.blue { background: #e0f2fe; color: #0369a1; }
.m2d-chip.ok { background: #dcfce7; color: #166534; }
.m2d-note { font-size: 12px; color: var(--muted, #94a3b8); line-height: 1.75; }
.m2d-copybox { width: 100%; box-sizing: border-box; font-family: ui-monospace, Consolas, monospace; font-size: 13px;
  line-height: 1.75; padding: 10px 12px; border: 1px solid var(--line, #e2e8f0); border-radius: 8px; resize: vertical; }
@media (max-width: 600px) { .m2d-strip { gap: 6px; padding: 8px; } .m2d-stats { width: 100%; } .m2d-sp { display: none; } }

.m2i-empty { text-align: center; padding: 40px 16px; color: var(--muted, #94a3b8); }
.m2i-empty-t { font-size: 16px; color: var(--text, #334155); margin: 8px 0 6px; }
.m2i-empty-s { font-size: 13px; line-height: 1.75; }
.m2i-empty-a { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
@media (max-width: 600px) {
  .m2i-body { gap: 10px; }
  .m2i-title { white-space: normal; }
  .m2i-meta { flex-wrap: wrap; gap: 6px; }
}

/* ---------------- M2p 反向链接（来源与引用 / 文件被谁引用） ---------------- */
.m2-back-box:empty { display: none; }
.m2-back-box { margin-top: 12px; }
/* ---------------- P2 业务行把手（任务 ↔ Teable 业务行） ---------------- */
.m2-biz-box:empty { display: none; }
.m2-biz-box { margin-top: 12px; }
.m2-biz-title { font-size: 13px; font-weight: 600; color: var(--text, #334155); margin-bottom: 6px; }
.m2-bizchip-wrap { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.m2-bizchip { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line, #dbe3ee); background: var(--soft, #f6faff); text-decoration: none; color: var(--text, #1f2937); font-size: 12.5px; }
.m2-bizchip b { font-weight: 600; }
.m2-bizchip i { font-style: normal; color: var(--muted, #7c8b9c); }
.m2-bizchip u { text-decoration: none; opacity: .55; }
.m2-bizchip:hover { border-color: #8fb3e8; background: var(--hover, #eef4fb); }
.m2-biz-panel { margin-top: 8px; border: 1px solid var(--line, #e8eef5); border-radius: 8px; padding: 8px 10px; background: var(--soft, #fbfdff); }
.m2-biz-panel .input { width: 100%; }
.m2-biz-stage { margin-top: 7px; font-size: 12.5px; color: #5b6472; }
.m2-biz-stage span { color: #8a94a6; }
.m2-biz-stage b { font-weight: 600; color: #2b4d7a; }
.m2-biz-stage a { color: #2563eb; text-decoration: none; }
.m2-biz-stage a:hover { text-decoration: underline; }
.m2-biz-list { margin-top: 6px; max-height: 220px; overflow: auto; }
.m2-biz-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; cursor: pointer; font: inherit; }
.m2-biz-item:hover { background: var(--hover, #eef4fb); }
.m2-biz-item b { font-weight: 600; font-size: 13px; display: block; color: var(--text, #1f2937); }
.m2-biz-item span { font-size: 12px; color: var(--muted, #7c8b9c); }
.m2-back-h { font-size: 13px; font-weight: 600; color: var(--text, #334155); margin-bottom: 6px; }
.m2-back-g { border: 1px solid var(--line, #e8eef5); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; background: var(--soft, #fbfdff); }
.m2-back-t { font-size: 12px; color: var(--muted, #7c8b9c); margin-bottom: 4px; }
.m2-back-i { display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; border: 0; background: transparent; padding: 4px 4px; border-radius: 8px; cursor: pointer; font: inherit; }
.m2-back-i:hover { background: var(--hover, #eef4fb); }
.m2-back-i[disabled] { cursor: default; }
.m2-back-n { font-size: 13px; color: var(--text, #1f2937); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m2-back-w { font-size: 12px; color: #8b7bd8; flex: none; }
.pv-back:empty { display: none; }
.pv-back { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line, #eef2f7); }
.pv-back-t { font-size: 13px; font-weight: 600; color: var(--text, #334155); margin-bottom: 6px; }
.pv-back-empty { font-size: 12px; color: var(--muted, #94a3b8); line-height: 1.75; }
.pv-back-i { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; border: 1px solid var(--line, #e8eef5); background: var(--soft, #fbfdff); border-radius: 8px; padding: 8px 8px; margin-bottom: 6px; cursor: pointer; font: inherit; }
.pv-back-i:hover { background: var(--hover, #eef4fb); }
.pv-back-n { font-size: 13px; color: var(--text, #1f2937); }
.pv-back-w { font-size: 12px; color: var(--muted, #7c8b9c); }
/* M2p：文件夹「被谁引用」提示条（列表上方） */
.fs-back { border: 1px solid #dbe6f5; background: #f6faff; border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; }
.fs-back-h { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.fs-back-h svg { width: 15px; height: 15px; }
.fs-back-i { display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; border: 0; background: transparent; padding: 4px 4px; border-radius: 8px; cursor: pointer; font: inherit; }
.fs-back-i:hover { background: #e9f2ff; }
.fs-back-n { font-size: 13px; color: #1f2937; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-back-w { font-size: 12px; color: #8b7bd8; flex: none; }
.fs-back-more { font-size: 12px; color: #94a3b8; padding: 4px; }
/* M2q：导出面板 + 导入向导 */
.m2-io-h { font-size: 16px; font-weight: 700; color: #1f2937; margin: 0 0 6px; display: flex; align-items: baseline; gap: 8px; }
.m2-io-sub { font-size: 12px; font-weight: 400; color: #7c8b9c; }
.m2-io-tip { font-size: 13px; color: #64748b; margin-bottom: 10px; }
.m2-io-list { display: flex; flex-direction: column; gap: 8px; }
.m2-io-i { display: flex; align-items: flex-start; gap: 8px; width: 100%; text-align: left; border: 1px solid #e2e8f0; background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; }
.m2-io-i:hover { border-color: #b9d4f7; background: #f7fbff; }
.m2-io-i svg { width: 17px; height: 17px; margin-top: 1px; color: #4b6b93; flex: none; }
.m2-io-i b { display: block; font-size: 14px; color: #1f2937; font-weight: 600; }
.m2-io-i i { display: block; font-size: 12px; color: #8b98a8; font-style: normal; margin-top: 2px; }
.m2-io-seg { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #334155; margin: 10px 0; padding: 8px 10px; background: #f6f8fb; border-radius: 8px; }
.m2-io-seg select.m2-io-mode, .m2-io-seg .m2-io-name { font-size: 13px; padding: 4px 8px; border-radius: 8px; border: 1px solid #d5dde7; background: #fff; }
.m2-io-seg .m2-io-name { width: 220px; }
.m2-io-rad { display: inline-flex; align-items: center; gap: 4px; }
.m2-io-note { font-size: 13px; color: #7a6335; background: #fffaf0; border: 1px solid #f2e3c0; border-radius: 8px; padding: 8px 10px; margin: 8px 0; line-height: 1.6; }
.m2-io-note.bad { color: #9b3d3d; background: #fff6f6; border-color: #f3d3d3; }
.m2-io-err { font-size: 13px; color: #b3261e; margin-top: 8px; }
.m2-io-map { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }
.m2-io-map th { text-align: left; font-weight: 600; color: #64748b; font-size: 12px; padding: 6px 8px; border-bottom: 1px solid #e8edf3; }
.m2-io-map td { padding: 4px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.m2-io-c { font-weight: 600; color: #334155; }
.m2-io-ex { color: #94a3b8; font-size: 12px; }
.m2-io-sel { font-size: 13px; padding: 4px 6px; border-radius: 8px; border: 1px solid #d5dde7; background: #fff; max-width: 190px; }
.m2-io-mn { display: block; font-size: 12px; color: #8b7bd8; font-style: normal; margin-top: 2px; }
.m2-io-newcol { font-size: 13px; color: #7a6bb0; }
.m2-io-pv { margin-top: 10px; font-size: 13px; }
.m2-io-pv summary { cursor: pointer; color: #4b6b93; }
.m2-io-pvbox { overflow: auto; max-height: 190px; margin-top: 6px; border: 1px solid #e8edf3; border-radius: 8px; }
.m2-io-pvbox table { border-collapse: collapse; font-size: 13px; width: 100%; }
.m2-io-pvbox th, .m2-io-pvbox td { padding: 4px 8px; border-bottom: 1px solid #f1f5f9; text-align: left; white-space: nowrap; }
.m2-io-sum { font-size: 14px; color: #334155; margin-bottom: 8px; }
.m2-io-sum .ok { color: #15803d; }
.m2-io-sum .bad { color: #b3261e; }
/* M2r：一个日历——日历上的「点」（任务截止）。块＝日程，点＝任务，视觉上分得开 */
.m2-callegend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #7c8b9c; }
.m2-callegend-blk, .m2-callegend-pt { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.m2-callegend-blk { background: #cfe0f7; border: 1px solid #a8c6ea; }
.m2-callegend-pt { background: transparent; border: 1px dashed #d0913a; border-radius: 50%; margin-left: 10px; }
.m2-calpt { font-size: 12px; line-height: 1.5; color: #9a6a1e; background: #fff8ec; border-left: 2px solid #e0a94a; border-radius: 4px; padding: 0 4px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.m2-calpt:hover { background: #fdeed3; }
.m2-calpt.done { color: #94a3b8; background: #f4f6f9; border-left-color: #cbd5e1; text-decoration: line-through; }

/* ---------- t12：日历铺满（≥1024）——七列自适应宽、行高按可用高度伸缩，不出左右/上下滚动条 ---------- */
@media (min-width: 1024px) {
  .m2-cal { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: minmax(0, 1fr); }
  .m2-cald { min-height: 0; overflow: hidden; padding: 3px 5px; }
  .m2-caln { margin-bottom: 2px; }
  .m2-calitems { gap: 2px; }
  .m2-cald .m2-cali, .m2-cald .m2-calpt { line-height: 1.45; }
}
.m2-calpt.over { color: #b3261e; background: #fff2f1; border-left-color: #e06a63; }
.m2-caln-pt { font-size: 11px; color: #c8871f; margin-left: 4px; vertical-align: top; }
.m2-cald.haspt { background: #fffdf8; }
/* 管理视图里的「隐藏」标记与按钮 */
.m2-frow.hid .m2-namew { color: #94a3b8; }
.m2-hidchip { font-size: 11px; color: #8a6d3b; background: #fdf3e0; border: 1px solid #f0dcb8; border-radius: 8px; padding: 0 8px; white-space: nowrap; }
.m2-op.wide { width: auto; padding: 0 8px; font-size: 12px; }
/* M2s：私人备忘的可见性角标 */
.m3-vis { font-size: 11px; border-radius: 8px; padding: 1px 8px; white-space: nowrap; }
.m3-vis.priv { color: #6b7280; background: #f1f3f6; border: 1px solid #e2e6ec; }
.m3-vis.team { color: #1d4ed8; background: #eaf0fe; border: 1px solid #c7d7fb; }
.m3-vis.other { color: #8a6d3b; background: #fdf3e0; border: 1px solid #f0dcb8; }
.m3-note { margin-top: 10px; font-size: 13px; color: #94a3b8; }
.m2-io-body { max-height: 62vh; overflow: auto; }
/* M2x：关联文件「已失效」提示 + 一键修复 */
.m2-refchip.m2-refstale { border-color: #ef9a9a; background: #fdecea; color: #b3261e; }
.m2-refchip.m2-refstale b { color: #b3261e; }
.m2-reffix { margin-left: 6px; border: 1px solid #ef9a9a; background: #fff; color: #b3261e; border-radius: 8px; font-size: 11px; line-height: 18px; padding: 0 8px; cursor: pointer; }
.m2-reffix:hover { background: #fdecea; }
/* 窄屏把「导出/导入」的文字收起来只留图标，免得工具栏挤到看不见「刷新」 */
@media (max-width: 1300px) { .m2-hide-narrow { display: none; } }

/* ===================== M2z：收件箱多列 / 折叠 / 优先级（按行为学排布） =====================
   容器从「单列 flex」换成 grid：列数由工具条控制（自动=按窗口宽度 1→4 列）。
   多列时列表内部滚动，卡片行首对齐、高度可比 → 一屏能横向比较多个类别。 */
.m2i-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; max-width: none; }
.m2i-wrap > .m2d-strip, .m2i-wrap > .m2i-tools, .m2i-wrap > .m2i-empty, .m2i-wrap > .m2i-note { grid-column: 1 / -1; }
.m2i-wrap.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m2i-wrap.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m2i-wrap.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1120px) { .m2i-wrap.cols-auto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1560px) { .m2i-wrap.cols-auto { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 2000px) { .m2i-wrap.cols-auto { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.m2i-wrap.cols-2 .m2i-list, .m2i-wrap.cols-3 .m2i-list, .m2i-wrap.cols-4 .m2i-list { max-height: 46vh; overflow: auto; overscroll-behavior: contain; }

/* 折叠：卡片降级成「计数器」——没做完的事继续占着注意力，点一下才展开 */
.m2i-head { cursor: pointer; }
.m2i-head:hover { background: var(--hover, #f8fafc); }
.m2i-caret { display: inline-flex; align-items: center; color: var(--muted, #94a3b8); transition: transform var(--dur-1) ease; flex: none; }
.m2i-card.folded .m2i-caret { transform: rotate(-90deg); }
.m2i-card.folded .m2i-list { display: none; }
.m2i-card.folded { background: var(--hover, #fbfcfe); }
.m2i-sp { flex: 1 1 auto; }
.m2i-more { font-size: 12px; color: var(--muted, #94a3b8); }

/* 工具条：列数 / 排序 / 全部折叠展开（即时生效、都记住） */
.m2i-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted, #64748b); }
.m2i-tl { margin-left: 2px; }
.m2i-tl.sep { margin-left: 12px; }
.m2i-seg { border: 1px solid var(--line, #e2e8f0); background: transparent; color: inherit; border-radius: 8px; padding: 2px 8px; cursor: pointer; font-size: 12px; line-height: 18px; }
.m2i-seg:hover { background: var(--hover, #f8fafc); }
.m2i-seg.on { background: #2563eb; border-color: #2563eb; color: #fff; }
@media (max-width: 600px) { .m2i-wrap { gap: 10px; } }

/* ===================== M3b：日程参与者（谁，用颜色说话） =====================
   同一个人在任何地方都是同一个颜色（uid 稳定哈希 → 调色板）。
   颜色只用在名字标签上（10px 小圆点 + 姓名），不铺满整块，避免和「任务截止」橙、「逾期」红抢注意力。 */
.m2-cali { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.m2-cali-t { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m2-calpt { display: flex; align-items: center; gap: 4px; }
.m2-calpt-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m2-calip { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; font-size: 11px; line-height: 16px; padding: 0 4px; border-radius: 6px; white-space: nowrap; font-weight: 600; }
.m2-calip-d { width: 6px; height: 6px; border-radius: 50%; flex: none; display: inline-block; }
.m2-calip.more { background: transparent; color: var(--faint, #94a3b8); font-weight: 400; }
.m2-callegend { flex-wrap: wrap; }
.m2-callegend-ppl { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; flex-wrap: wrap; }
.m2-callegend-pplt { color: #7c8b9c; }


/* ===================== M3e：嵌入式详情窗（ux12 起：贴窗口底部） =====================
   详情不再贴右侧：改为贴窗口底部（列表在上、详情在下），主区让出下边留白。
   默认「展示模式」（字段是纯文本），点「调整」才解锁编辑器，改完「确认调整」一次性提交。 */
.drawer-root {
  /* ux12：贴窗口底部（左侧导航 / 顶栏永远露着）；上缘可拖高，拖过的高度记在本地 */
  position: fixed; left: var(--side-w, 208px); right: 0; bottom: 0; top: auto;
  height: var(--drawer-h, 44vh); max-height: 88vh; width: auto;
  background: var(--card); border-top: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;   /* t10：窗＝倒圆角 */
  box-shadow: 0 -14px 34px rgba(16, 24, 40, .10); z-index: 70; display: flex;
  animation: dwIn .18s ease-out;
}
@keyframes dwIn { from { transform: translateY(16px); opacity: .55; } to { transform: none; opacity: 1; } }
.drawer-root.mini { height: auto; }                 /* ux12：没选记录时＝矮条提示位（不拖高） */
.drawer-root.mini .modal-head { padding: 8px 16px; }
.drawer-root.mini .modal-body { padding: 0; }
.drawer-root.mini .m2-pane-empty { padding: 8px 16px 12px; }
.drawer-root.mini .m2-pane-empty-t { display: none; }   /* 矮条里不重复「这是固定的详情窗口」 */
.drawer-root[hidden] { display: none; }
.drawer { display: flex; flex-direction: column; width: 100%; min-width: 0; position: relative; }
/* ux12：上缘「拖高」手柄 */
.drawer-grip { position: absolute; left: 0; right: 0; top: -5px; height: 10px; width: auto; cursor: row-resize; z-index: 3; }
.drawer-grip:hover { background: linear-gradient(to bottom, transparent, var(--brand-l2)); }
/* t10：贴右详情栏——grip 中线折叠按钮＋收起后的右缘拉手 */
.drawer-fold-btn { display: none; }
body.dw-side .drawer-fold-btn { display: inline-flex; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 20px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text-2); box-shadow: var(--shadow-s); cursor: pointer; align-items: center; justify-content: center; z-index: 2; }
body.dw-side .drawer-fold-btn:hover { color: var(--brand-d); border-color: var(--brand-l2); background: var(--brand-l); }
body.dw-side .drawer-fold-btn svg { width: 14px; height: 14px; }
.dw-tab { display: none; }
body.drawer-resizing { cursor: row-resize; user-select: none; }
body.drawer-resizing .drawer iframe { pointer-events: none; }
.m2-link-rohint, .m2-tpl-box .m2-tpl-note + .m2-tpl-note { color: var(--faint); }
.drawer .modal-head { flex: none; }
.drawer .modal-body { flex: 1 1 auto; overflow: auto; padding: 16px 16px 20px; }
.drawer .modal-foot { flex: none; border-top: 1px solid var(--line); padding: 12px 16px; display: flex; align-items: center; gap: 8px; }
.drawer .modal-foot .grow { flex: 1; }
@media (max-width: 1023px) { .drawer-root { left: 64px; } }   /* 图标条断点：让开 64px */
@media (max-width: 599px) { .drawer-root { left: 0; } }       /* 手机：整宽底窗 */
body.drawer-open .main { padding-bottom: calc(var(--drawer-h, 44vh) + 24px); }
body.drawer-open.dw-mini .main { padding-bottom: 140px; }     /* 矮条提示位：留一小截 */

/* —— 展示模式（只读）：字段是文字，不是输入框 —— */
.m2-roomode {
  font-size: 12px; color: var(--muted); background: var(--brand-l);
  border: 1px solid var(--line); border-radius: var(--radius-xs);
  padding: 6px 10px; margin: 2px 0 12px;
}
.m2-rfield.m2-ro { padding: 8px 0; border-bottom: 1px dashed var(--line-2); margin-bottom: 0; }
.m2-rfield.m2-ro:last-of-type { border-bottom: 0; }
.m2-ro-val { font-size: 14px; color: var(--text); line-height: 1.75; word-break: break-word; }
.m2-ro-empty { color: var(--faint); }
.m2-ro-link { color: var(--brand-d); text-decoration: none; border-bottom: 1px solid var(--brand-l2); }
.m2-ro-tag { display: inline-block; font-size: 12px; color: var(--text-2); background: #f1f5f9; border-radius: 6px; padding: 0 6px; margin: 0 4px 2px 0; }
.m2-ro-date { font-variant-numeric: tabular-nums; }
.m2-rorol { display: flex; flex-wrap: wrap; gap: 4px; }
.m2-ro-relchip {
  font-size: 12px; color: var(--brand-d); background: var(--brand-l);
  border: 1px solid var(--brand-l2); border-radius: 6px; padding: 1px 8px;
  cursor: pointer; font-family: var(--font);
}
.m2-ro-relchip:hover { background: var(--brand-l2); }
.m2-refbox.ro { display: block; }
.m2-refchip.ro { cursor: pointer; }
.m2-attitem { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.m2-attitem .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m2-drafttag { font-size: 12px; color: var(--warn); background: #fff7ed; border: 1px solid #fed7aa; border-radius: 999px; padding: 2px 8px; }

/* =========================================================================
 * 前端打磨（2026-09-24 追加 · m2.css）— 任务/日程/团队等 m2-* 组件的深色 + 手机端
 * 同样只追加、不改动上方原有规则；浅色一行不受影响。
 * ========================================================================= */

/* ---------- 深色细节覆盖（两处同源：手动属性 / 跟随系统） ---------- */
html[data-theme="dark"] .c-gray { background: #232e3d; color: #c3cedd; border-color: #2f3b4c; }
html[data-theme="dark"] .c-blue { background: #1a2740; color: #9ec2ff; border-color: #27406b; }
html[data-theme="dark"] .c-green { background: #12301f; color: #6ee7a8; border-color: #1d4a33; }
html[data-theme="dark"] .c-orange { background: #33220f; color: #fdba74; border-color: #513418; }
html[data-theme="dark"] .c-red { background: #3a1c1e; color: #fca5a5; border-color: #55272a; }
html[data-theme="dark"] .c-purple { background: #241f3d; color: #c4b5fd; border-color: #3a3163; }
html[data-theme="dark"] .m2-tool.wide, html[data-theme="dark"] .m2-fchip, html[data-theme="dark"] .m2-vt, html[data-theme="dark"] .m2-picklist, html[data-theme="dark"] .m2-refchip, html[data-theme="dark"] .m2-kbadd:hover, html[data-theme="dark"] .m2-cell.editing, html[data-theme="dark"] .m2-in, html[data-theme="dark"] .m2-reffix { background: #1b2330; }
html[data-theme="dark"] .m2-vt.on, html[data-theme="dark"] .m3-chip.on, html[data-theme="dark"] .m3-chipall.on { background: #2563eb; border-color: #2563eb; }
html[data-theme="dark"] .m2-tool:hover, html[data-theme="dark"] .m2-op:hover, html[data-theme="dark"] .m2-popitem:hover, html[data-theme="dark"] .m2-rel label:hover, html[data-theme="dark"] .m2-io-i:hover, html[data-theme="dark"] .pv-back-i:hover, html[data-theme="dark"] .fs-back-i:hover { background: #232e3d; }
html[data-theme="dark"] .m2-grid th, html[data-theme="dark"] .m2-calw, html[data-theme="dark"] .m2-projpick { background: #1a222e; }
html[data-theme="dark"] .m2-grid tbody tr:nth-child(even) { background: rgba(148, 197, 255, .05); }
html[data-theme="dark"] .m2-grid tbody tr:hover { background: #19212c; }
html[data-theme="dark"] .m2-grid tbody tr:hover td:first-child { background: #19212c; }
html[data-theme="dark"] .m2-kbcol, html[data-theme="dark"] .m2-attitem, html[data-theme="dark"] .m2-refchip.lock, html[data-theme="dark"] .m2-pickrow:hover, html[data-theme="dark"] .m2t-table tbody tr:hover { background: #1e2836; }
html[data-theme="dark"] .m2-cald.out { background: #141b24; }
html[data-theme="dark"] .m2-cald.today { background: #1c2b45; }
html[data-theme="dark"] .m2-cald.haspt { background: #221f18; }
html[data-theme="dark"] .m2-ro-tag { background: #232e3d; }
html[data-theme="dark"] .m2-calpt { color: #e5c98a; background: #2b2415; border-left-color: #7a5a1e; }
html[data-theme="dark"] .m2-calpt:hover { background: #3a2f18; }
html[data-theme="dark"] .m2-calpt.done { color: #8b98ab; background: #232e3d; border-left-color: #3a4a63; }
html[data-theme="dark"] .m2-calpt.over { color: #f87171; background: #33191a; border-left-color: #7a3a37; }
html[data-theme="dark"] .m2-caln-pt { color: #e0b455; }
html[data-theme="dark"] .m2-hidchip { color: #e0c68a; background: #2b2415; border-color: #4d3f22; }
html[data-theme="dark"] .m2-lockhint { background: #2b2415; border-color: #5a4520; color: #f5c76b; }
html[data-theme="dark"] .m2-drafttag { background: #2b2415; border-color: #5a4520; }
html[data-theme="dark"] .m2-refchip.m2-refstale { border-color: #7a3a37; background: #33191a; color: #f87171; }
html[data-theme="dark"] .m2-refchip.m2-refstale b { color: #f87171; }
html[data-theme="dark"] .m2-reffix { border-color: #7a3a37; color: #f87171; }
html[data-theme="dark"] .m2h-tile.t-orange .ic { background: #33220f; color: #fdba74; }
html[data-theme="dark"] .m2h-tile.t-purple .ic { background: #241f3d; color: #c4b5fd; }
html[data-theme="dark"] .m2h-tile.t-green .ic { background: #12301f; color: #6ee7a8; }
html[data-theme="dark"] .m3-tag { background: #232a4d; color: #b6bcff; border-color: #33396b; }
html[data-theme="dark"] .m3-tag:hover { background: #33396b; }
html[data-theme="dark"] .m3-tk, html[data-theme="dark"] .m3-vis.priv { background: #232e3d; color: #c3cedd; }
html[data-theme="dark"] .m3-tk.orange, html[data-theme="dark"] .m3-vis.other { background: #2b2415; color: #e0c68a; }
html[data-theme="dark"] .m3-vis.team { background: #232a4d; color: #9ec2ff; border-color: #33396b; }
html[data-theme="dark"] .m3-card.arch { background: #141b24; }
html[data-theme="dark"] .m3-note { color: #8b98ab; }
html[data-theme="dark"] .m2d-tag, html[data-theme="dark"] .m2d-chip.ok { background: #12301f; color: #6ee7a8; }
html[data-theme="dark"] .m2d-tag.old, html[data-theme="dark"] .m2d-chip { background: #232e3d; color: #c3cedd; }
html[data-theme="dark"] .m2d-chip.red { background: #55272a; color: #fca5a5; }
html[data-theme="dark"] .m2d-chip.orange { background: #513418; color: #fdba74; }
html[data-theme="dark"] .m2d-chip.blue { background: #10293a; color: #7dd3fc; }
html[data-theme="dark"] .m2-io-i { background: var(--card); border-color: var(--line); }
html[data-theme="dark"] .m2-io-i svg, html[data-theme="dark"] .m2-io-pv summary { color: #9ec2ff; }
html[data-theme="dark"] .m2-io-seg { background: #1d2634; }
html[data-theme="dark"] .m2-io-seg select.m2-io-mode, html[data-theme="dark"] .m2-io-seg .m2-io-name, html[data-theme="dark"] .m2-io-sel { background: #1b2330; border-color: #2a3442; }
html[data-theme="dark"] .m2-io-pvbox, html[data-theme="dark"] .m2-io-map td, html[data-theme="dark"] .m2-io-pvbox th, html[data-theme="dark"] .m2-io-pvbox td { border-color: #212a36; }
html[data-theme="dark"] .fs-back { background: #161d27; border-color: #2a3442; }
html[data-theme="dark"] .fs-back-i { background: #161d27; border-color: #2a3442; }
html[data-theme="dark"] .m2-io-note { color: #e0c68a; background: #2b2415; border-color: #4a3c1d; }
html[data-theme="dark"] .m2-io-note.bad { color: #f0a9a9; background: #33191a; border-color: #5a3436; }
html[data-theme="dark"] .m2-io-sum .ok { color: #6ee7a8; }
html[data-theme="dark"] .m2-io-sum .bad { color: #f87171; }
html[data-theme="dark"] .m2-io-h, html[data-theme="dark"] .m2-io-i b, html[data-theme="dark"] .m2-io-c, html[data-theme="dark"] .m2-io-seg, html[data-theme="dark"] .m2-io-sum, html[data-theme="dark"] .m2-back-n, html[data-theme="dark"] .m2-back-h, html[data-theme="dark"] .pv-back-n, html[data-theme="dark"] .pv-back-t, html[data-theme="dark"] .fs-back-n, html[data-theme="dark"] .fs-back-h { color: var(--text); }
html[data-theme="dark"] .m2-back-w, html[data-theme="dark"] .fs-back-w { color: #b9a9ff; }
html[data-theme="dark"] .m2-io-sub, html[data-theme="dark"] .m2-io-tip, html[data-theme="dark"] .m2-io-map th, html[data-theme="dark"] .m2-io-i i, html[data-theme="dark"] .m2-io-mn, html[data-theme="dark"] .m2-io-newcol, html[data-theme="dark"] .m2-io-ex, html[data-theme="dark"] .m2-back-t, html[data-theme="dark"] .pv-back-w, html[data-theme="dark"] .fs-back-more, html[data-theme="dark"] .m2-callegend, html[data-theme="dark"] .m2-callegend-pplt, html[data-theme="dark"] .m2i-why { color: #8b98ab; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .c-gray { background: #232e3d; color: #c3cedd; border-color: #2f3b4c; }
  :root:not([data-theme="light"]) .c-blue { background: #1a2740; color: #9ec2ff; border-color: #27406b; }
  :root:not([data-theme="light"]) .c-green { background: #12301f; color: #6ee7a8; border-color: #1d4a33; }
  :root:not([data-theme="light"]) .c-orange { background: #33220f; color: #fdba74; border-color: #513418; }
  :root:not([data-theme="light"]) .c-red { background: #3a1c1e; color: #fca5a5; border-color: #55272a; }
  :root:not([data-theme="light"]) .c-purple { background: #241f3d; color: #c4b5fd; border-color: #3a3163; }
  :root:not([data-theme="light"]) .m2-tool.wide,
  :root:not([data-theme="light"]) .m2-fchip,
  :root:not([data-theme="light"]) .m2-vt,
  :root:not([data-theme="light"]) .m2-picklist,
  :root:not([data-theme="light"]) .m2-refchip,
  :root:not([data-theme="light"]) .m2-kbadd:hover,
  :root:not([data-theme="light"]) .m2-cell.editing,
  :root:not([data-theme="light"]) .m2-in,
  :root:not([data-theme="light"]) .m2-reffix { background: #1b2330; }
  :root:not([data-theme="light"]) .m2-vt.on,
  :root:not([data-theme="light"]) .m3-chip.on,
  :root:not([data-theme="light"]) .m3-chipall.on { background: #2563eb; border-color: #2563eb; }
  :root:not([data-theme="light"]) .m2-tool:hover,
  :root:not([data-theme="light"]) .m2-op:hover,
  :root:not([data-theme="light"]) .m2-popitem:hover,
  :root:not([data-theme="light"]) .m2-rel label:hover,
  :root:not([data-theme="light"]) .m2-io-i:hover,
  :root:not([data-theme="light"]) .pv-back-i:hover,
  :root:not([data-theme="light"]) .fs-back-i:hover { background: #232e3d; }
  :root:not([data-theme="light"]) .m2-grid th,
  :root:not([data-theme="light"]) .m2-calw,
  :root:not([data-theme="light"]) .m2-projpick { background: #1a222e; }
  :root:not([data-theme="light"]) .m2-grid tbody tr:hover { background: #19212c; }
  :root:not([data-theme="light"]) .m2-grid tbody tr:hover td:first-child { background: #19212c; }
  :root:not([data-theme="light"]) .m2-kbcol,
  :root:not([data-theme="light"]) .m2-attitem,
  :root:not([data-theme="light"]) .m2-refchip.lock,
  :root:not([data-theme="light"]) .m2-pickrow:hover,
  :root:not([data-theme="light"]) .m2t-table tbody tr:hover { background: #1e2836; }
  :root:not([data-theme="light"]) .m2-cald.out { background: #141b24; }
  :root:not([data-theme="light"]) .m2-cald.today { background: #1c2b45; }
  :root:not([data-theme="light"]) .m2-cald.haspt { background: #221f18; }
  :root:not([data-theme="light"]) .m2-ro-tag { background: #232e3d; }
  :root:not([data-theme="light"]) .m2-calpt { color: #e5c98a; background: #2b2415; border-left-color: #7a5a1e; }
  :root:not([data-theme="light"]) .m2-calpt:hover { background: #3a2f18; }
  :root:not([data-theme="light"]) .m2-calpt.done { color: #8b98ab; background: #232e3d; border-left-color: #3a4a63; }
  :root:not([data-theme="light"]) .m2-calpt.over { color: #f87171; background: #33191a; border-left-color: #7a3a37; }
  :root:not([data-theme="light"]) .m2-caln-pt { color: #e0b455; }
  :root:not([data-theme="light"]) .m2-hidchip { color: #e0c68a; background: #2b2415; border-color: #4d3f22; }
  :root:not([data-theme="light"]) .m2-lockhint { background: #2b2415; border-color: #5a4520; color: #f5c76b; }
  :root:not([data-theme="light"]) .m2-drafttag { background: #2b2415; border-color: #5a4520; }
  :root:not([data-theme="light"]) .m2-refchip.m2-refstale { border-color: #7a3a37; background: #33191a; color: #f87171; }
  :root:not([data-theme="light"]) .m2-refchip.m2-refstale b { color: #f87171; }
  :root:not([data-theme="light"]) .m2-reffix { border-color: #7a3a37; color: #f87171; }
  :root:not([data-theme="light"]) .m2h-tile.t-orange .ic { background: #33220f; color: #fdba74; }
  :root:not([data-theme="light"]) .m2h-tile.t-purple .ic { background: #241f3d; color: #c4b5fd; }
  :root:not([data-theme="light"]) .m2h-tile.t-green .ic { background: #12301f; color: #6ee7a8; }
  :root:not([data-theme="light"]) .m3-tag { background: #232a4d; color: #b6bcff; border-color: #33396b; }
  :root:not([data-theme="light"]) .m3-tag:hover { background: #33396b; }
  :root:not([data-theme="light"]) .m3-tk,
  :root:not([data-theme="light"]) .m3-vis.priv { background: #232e3d; color: #c3cedd; }
  :root:not([data-theme="light"]) .m3-tk.orange,
  :root:not([data-theme="light"]) .m3-vis.other { background: #2b2415; color: #e0c68a; }
  :root:not([data-theme="light"]) .m3-vis.team { background: #232a4d; color: #9ec2ff; border-color: #33396b; }
  :root:not([data-theme="light"]) .m3-card.arch { background: #141b24; }
  :root:not([data-theme="light"]) .m3-note { color: #8b98ab; }
  :root:not([data-theme="light"]) .m2d-tag,
  :root:not([data-theme="light"]) .m2d-chip.ok { background: #12301f; color: #6ee7a8; }
  :root:not([data-theme="light"]) .m2d-tag.old,
  :root:not([data-theme="light"]) .m2d-chip { background: #232e3d; color: #c3cedd; }
  :root:not([data-theme="light"]) .m2d-chip.red { background: #55272a; color: #fca5a5; }
  :root:not([data-theme="light"]) .m2d-chip.orange { background: #513418; color: #fdba74; }
  :root:not([data-theme="light"]) .m2d-chip.blue { background: #10293a; color: #7dd3fc; }
  :root:not([data-theme="light"]) .m2-io-i { background: var(--card); border-color: var(--line); }
  :root:not([data-theme="light"]) .m2-io-i svg,
  :root:not([data-theme="light"]) .m2-io-pv summary { color: #9ec2ff; }
  :root:not([data-theme="light"]) .m2-io-seg { background: #1d2634; }
  :root:not([data-theme="light"]) .m2-io-seg select.m2-io-mode,
  :root:not([data-theme="light"]) .m2-io-seg .m2-io-name,
  :root:not([data-theme="light"]) .m2-io-sel { background: #1b2330; border-color: #2a3442; }
  :root:not([data-theme="light"]) .m2-io-pvbox,
  :root:not([data-theme="light"]) .m2-io-map td,
  :root:not([data-theme="light"]) .m2-io-pvbox th,
  :root:not([data-theme="light"]) .m2-io-pvbox td { border-color: #212a36; }
  :root:not([data-theme="light"]) .fs-back { background: #161d27; border-color: #2a3442; }
  :root:not([data-theme="light"]) .fs-back-i { background: #161d27; border-color: #2a3442; }
  :root:not([data-theme="light"]) .m2-io-note { color: #e0c68a; background: #2b2415; border-color: #4a3c1d; }
  :root:not([data-theme="light"]) .m2-io-note.bad { color: #f0a9a9; background: #33191a; border-color: #5a3436; }
  :root:not([data-theme="light"]) .m2-io-sum .ok { color: #6ee7a8; }
  :root:not([data-theme="light"]) .m2-io-sum .bad { color: #f87171; }
  :root:not([data-theme="light"]) .m2-io-h,
  :root:not([data-theme="light"]) .m2-io-i b,
  :root:not([data-theme="light"]) .m2-io-c,
  :root:not([data-theme="light"]) .m2-io-seg,
  :root:not([data-theme="light"]) .m2-io-sum,
  :root:not([data-theme="light"]) .m2-back-n,
  :root:not([data-theme="light"]) .m2-back-h,
  :root:not([data-theme="light"]) .pv-back-n,
  :root:not([data-theme="light"]) .pv-back-t,
  :root:not([data-theme="light"]) .fs-back-n,
  :root:not([data-theme="light"]) .fs-back-h { color: var(--text); }
  :root:not([data-theme="light"]) .m2-back-w,
  :root:not([data-theme="light"]) .fs-back-w { color: #b9a9ff; }
  :root:not([data-theme="light"]) .m2-io-sub,
  :root:not([data-theme="light"]) .m2-io-tip,
  :root:not([data-theme="light"]) .m2-io-map th,
  :root:not([data-theme="light"]) .m2-io-i i,
  :root:not([data-theme="light"]) .m2-io-mn,
  :root:not([data-theme="light"]) .m2-io-newcol,
  :root:not([data-theme="light"]) .m2-io-ex,
  :root:not([data-theme="light"]) .m2-back-t,
  :root:not([data-theme="light"]) .pv-back-w,
  :root:not([data-theme="light"]) .fs-back-more,
  :root:not([data-theme="light"]) .m2-callegend,
  :root:not([data-theme="light"]) .m2-callegend-pplt,
  :root:not([data-theme="light"]) .m2i-why { color: #8b98ab; }
}

/* ---------- 手机端手感（<700px）：表格横滚 + 首列冻结 / 点按 ≥44px / 字号 ≥16px ---------- */
@media (max-width: 700px) {
  /* 字号 ≥16px：避免 iPhone 聚焦放大 */
  .m2-in, .m2-op, .m2-tool.wide, select.m2-in, .m2-fchip, .m2-cell .m2-edsel { font-size: 16px; }
  /* 表单里的小输入框（记录详情/筛选/导入）也放大到好点的高度 */
  .m2-rctl .input, .m2-fsub .input, .m2-cond .input, .m2-optrow .input, .m2-io-seg select, .m2-io-sel { height: 40px; font-size: 16px; }
  /* 点按区域 ≥44px */
  .m2-in { height: 44px; }
  .m2-tool { width: 44px; height: 44px; }
  .m2-op { width: 40px; height: 40px; }
  .m2-cbwrap input { width: 20px; height: 20px; }
  .m2-cell { min-height: 44px; padding: 12px 10px; }
  .m2-li { min-height: 48px; }
  .m2i-row, .m2h-row, .m2-pickrow, .m2-nitem, .m2-cmt-item { min-height: 44px; }
  .m2-kbcard { padding: 12px 12px; }
  /* 表格：容器横滚 + 首列（行号/勾选列）冻结 */
  .m2-gridwrap, .m2t-tablewrap, .m2-picklist, .m2-io-pvbox, .m2-io-map { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .m2-grid, .m2t-table { min-width: 560px; }
  .m2-grid th:first-child, .m2-grid td:first-child,
  .m2t-table th:first-child, .m2t-table td:first-child {
    position: sticky; left: 0; z-index: 3; background: var(--card);
    box-shadow: 1px 0 0 var(--line-2);
  }
  .m2-grid thead th:first-child, .m2t-table thead th:first-child { background: #fbfcfe; z-index: 4; }
  .m2-grid tbody tr:hover td:first-child { background: #fafcff; }
  /* 页内工具条：横向滚动不换行 */
  .m2-vtabs, .m2-fbar, .m2-calbar, .m2t-filter, .m2-pickbar, .m2-io-seg, .m2-fsub { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .m2-vt, .m2-fchip, .m2-vtabs > *, .m2-calbar > * { flex: 0 0 auto; }
  .m2-io-seg { flex-wrap: wrap; overflow-x: visible; }   /* 导入面板是表单，别横滚 */
  /* 抽屉：窄屏全屏铺满（m2.css 原来已有 ≤980 的 100vw） */
  .drawer-root { width: 100vw; }
}
html[data-theme="dark"] .m2-grid thead th:first-child,
html[data-theme="dark"] .m2t-table thead th:first-child { background: #1a222e; }
html[data-theme="dark"] .m2-grid tbody tr:hover td:first-child { background: #19212c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .m2-grid thead th:first-child,
  :root:not([data-theme="light"]) .m2t-table thead th:first-child { background: #1a222e; }
  :root:not([data-theme="light"]) .m2-grid tbody tr:hover td:first-child { background: #19212c; }
}

/* ---------- 跨模块衔接：m2myweek.css（「本周聚焦」卡片） ----------
   m2myweek.css 自带一套深色，但只认「系统偏好」，用户手动切换切不动它。
   这里补上「手动选择优先」，让整站深色/浅色保持一致（选择器带 html[data-theme]，
   优先级高于 m2myweek.css 里那条 @media，故不受文件加载顺序影响）。 */
/* 手动选深色（系统可能是浅色） */
html[data-theme="dark"] .m2w { background: var(--card); border-color: var(--line); border-left-color: #60a5fa; box-shadow: none; }
html[data-theme="dark"] .m2w-t { color: var(--text); }
html[data-theme="dark"] .m2w-empty, html[data-theme="dark"] .m2w-sec, html[data-theme="dark"] .m2w-when { color: var(--muted); }
html[data-theme="dark"] .m2w-row:hover { background: var(--soft); }
html[data-theme="dark"] .m2w-lnk { color: #9ec2ff; }
html[data-theme="dark"] .m2w-badge { color: #9ec2ff; background: #1a2740; }
html[data-theme="dark"] .m2w-badge.inbox { color: #fbbf24; background: #2a2418; }
html[data-theme="dark"] .m2w-ft { border-top-color: var(--line); }
/* 手动选浅色（系统可能是深色）→ 把它的系统深色规则压回去 */
html[data-theme="light"] .m2w { background: #fff; border-color: #e5e7eb; border-left-color: var(--brand); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
html[data-theme="light"] .m2w-t { color: var(--text); }
html[data-theme="light"] .m2w-empty, html[data-theme="light"] .m2w-sec, html[data-theme="light"] .m2w-when { color: var(--muted); }
html[data-theme="light"] .m2w-row:hover { background: #f8fafc; }
html[data-theme="light"] .m2w-lnk { color: var(--brand); }
html[data-theme="light"] .m2w-badge { color: #1d4ed8; background: #eff6ff; }
html[data-theme="light"] .m2w-badge.inbox { color: #b45309; background: #fffbeb; }
html[data-theme="light"] .m2w-ft { border-top-color: #eef2f7; }
.acts-more[hidden] { display: none; }
/* M6a：快捷筛选条 + 值面板（只用主题变量，浅色下浅色） */
.m2-qkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.m2-qkb-t { font-size: 12px; color: var(--muted); margin-right: 2px; }
.m2-qkb { height: 27px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text-2); font-size: 13px; cursor: pointer; transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1); }
.m2-qkb i { font-style: normal; opacity: .5; margin-left: 4px; font-size: 11px; }
.m2-qkb:hover { background: var(--brand-l); border-color: var(--brand-l2); color: var(--brand-d); }
.m2-qkb.on { background: var(--brand-l); border-color: var(--brand-l2); color: var(--brand-d); font-weight: 600; }
.m2-qkb.clear { color: var(--danger); }
.m2-qkb.clear:hover { background: var(--danger-l); border-color: #f0cdcd; }
.m2-qkhint { font-size: 12px; color: var(--muted); margin-left: 4px; }
.m2-qkpop { position: fixed; z-index: 90; min-width: 200px; max-width: 330px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(15, 23, 42, .16); padding: 8px; }
.m2-qkp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 2px 4px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.m2-qkp-h b { font-size: 13px; }
.m2-qkp-h span { font-size: 12px; color: var(--muted); }
.m2-qkp-list { max-height: 264px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.m2-qkp-i { display: flex; justify-content: space-between; gap: 10px; align-items: center; height: 29px; padding: 0 8px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text-2); text-align: left; width: 100%; }
.m2-qkp-i:hover { background: var(--brand-l); color: var(--brand-d); }
.m2-qkp-i.on { background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
.m2-qkp-i i { font-style: normal; color: var(--muted); font-size: 12px; }
.m2-qkp-none { font-size: 12px; color: var(--muted); padding: 6px 4px; }
.m2-qkp-f { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.m2-qkp-clr, .m2-qkp-done { height: 27px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; color: var(--text-2); }
.m2-qkp-clr { color: var(--danger); }
.m2-qkp-done { background: var(--brand); border-color: var(--brand); color: #fff; }

.m2-qknote { margin: 0 0 10px; padding: 8px 10px; background: var(--brand-l); border: 1px solid var(--brand-l2); border-radius: 8px; font-size: 12px; color: var(--brand-d); line-height: 1.6; }
/* M7a：列宽拖拽（表格列 / 看板列）——宽度存本机，同事不受影响 */
.m2-grid.m2-fixed { table-layout: fixed; }
.m2-grid.m2-fixed th { overflow: hidden; text-overflow: ellipsis; }
.m2-colgrip { position: absolute; top: 0; right: 0; width: 8px; height: 100%; cursor: col-resize; touch-action: none; }
.m2-colgrip:hover, .m2-colgrip.on { background: var(--brand-l2); }
.m2-kbcol { position: relative; }
.m2-kbgrip { position: absolute; top: 2px; right: -5px; width: 9px; height: calc(100% - 4px); cursor: col-resize; touch-action: none; z-index: 3; border-radius: 4px; }
.m2-kbgrip:hover, .m2-kbgrip.on { background: var(--brand-l2); }
body.m2-dragging, body.m2-dragging * { user-select: none !important; -webkit-user-select: none !important; cursor: col-resize !important; }
/* M7b：拖列换位置（表头） */
.m2-grid thead th[data-f] { cursor: grab; user-select: none; -webkit-user-select: none; }
.m2-cogh { position: fixed; z-index: 99; padding: 4px 10px; background: var(--brand); color: #fff; border-radius: 6px; font-size: 12px; box-shadow: 0 6px 18px rgba(15, 23, 42, .2); pointer-events: none; }
.m2-grid thead th.drop-l { box-shadow: inset 3px 0 0 0 var(--brand); }
.m2-grid thead th.drop-r { box-shadow: inset -3px 0 0 0 var(--brand); }
body.m2-coldrag, body.m2-coldrag * { user-select: none !important; -webkit-user-select: none !important; cursor: grabbing !important; }
/* 行高自适应兜底：单元格允许随内容长高（列窄了文字换行、行跟着变高），不吃固定高 */
.m2-grid.m2-fixed td.m2-td { height: auto; }
.m2-grid.m2-fixed .m2-cell { min-height: 40px; height: auto; }

/* ============ ux14：记录页「一屏布局」+ 详情左/右分栏 + 紧凑字段 ============ */
@media (min-width: 600px) {
  /* ① 任务/日程等记录页：整页不滚——列表在自己的框里滚（一个页面只有一个滚动的「面」，不再双滚动条） */
  body.recfit .main { height: calc(100vh - 58px); overflow: hidden; display: flex; flex-direction: column; padding-bottom: 16px; }
  body.recfit .main > * { flex: 0 0 auto; }
  body.recfit .sidebar { max-height: calc(100vh - 58px); overflow-y: auto; }   /* 侧栏高过窗口时系内滚，不再把整页顶出滚动条 */
  body.recfit #m2Panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  body.recfit #m2Panel > * { flex: 0 0 auto; }
  body.recfit #m2Panel > :last-child { flex: 1 1 auto; min-height: 0; overflow: auto; }   /* 只有内容区滚（表格/看板/列表/日历） */
  body.recfit .m2-gridwrap { max-height: none; }
  /* ② 详情开着＝主区自动让出抽屉高度（拖高实时联动；--drawer-h 挂在 :root 上） */
  body.recfit.drawer-open .main { padding-bottom: 12px; }
  body.recfit.drawer-open:not(.dw-mini) .main { height: calc(100vh - 58px - var(--drawer-h, 44vh) - 16px); }
  body.recfit.drawer-open.dw-mini .main { height: calc(100vh - 58px - 118px); }
}

/* ③ 详情：左（详情，宽）/ 右（评论，窄）——两侧各自滚，互不牵扯 */
.drawer .modal-body.m2-dbody { overflow: hidden; padding: 0; display: flex; }
.m2-dleft { flex: 1 1 auto; min-width: 0; overflow: auto; padding: 16px 16px 16px; }
.m2-dright { flex: 0 0 clamp(250px, 34%, 400px); min-width: 0; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; }
/* t1批注②：评论 / 活动流合成一个面板——页签切换，默认评论 */
.m2-dtabs { flex: none; display: flex; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.m2-dtab { border: 1px solid var(--line, #e2e8f0); background: transparent; color: var(--text-2, #475569); border-radius: 8px; padding: 3px 10px; cursor: pointer; font-size: 12px; line-height: 18px; }
.m2-dtab:hover { background: var(--hover, #f8fafc); }
.m2-dtab.on { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }
.m2-dpane { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.m2-dpane[hidden] { display: none; }
.m2-dright .m2-cmt { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin: 0; border-top: 0; padding: 0; }
.m2-dright #m2Cmts { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 2px 16px 8px; }
.m2-dright .m2-cmt-new { flex: none; margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--line-2); }
.m2-cmt-more { padding: 2px 0 6px; }
.m2-cmt-more .mini { cursor: pointer; }
.m2-cmt-older { border-top: 1px dashed var(--line-2); padding-top: 6px; }

/* ④ 展示字段：紧凑网格（窄字段并排、长字段整行）——少留白、少滚动 */
.m2-rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 16px; align-items: start; }
.m2-rgrid .m2-rfield.m2-ro { border-bottom: 0; padding: 4.5px 0 4px; }
.m2-rgrid .m2-rfield.wide { grid-column: 1 / -1; }
.m2-rgrid .m2-rlabel { font-size: 12px; padding-top: 0; margin-bottom: 1px; }

/* ⑤ 窄窗（手机 / 小窗）：详情分栏落成上下两段，整段可滚 */
@media (max-width: 820px) {
  .drawer .modal-body.m2-dbody { display: block; overflow: auto; }
  .m2-dleft { overflow: visible; padding: 16px 16px 4px; }
  .m2-dright { border-left: 0; border-top: 1px solid var(--line-2); display: block; }
  .m2-dpane { display: block; }
  .m2-dright .m2-cmt { display: block; height: auto; margin: 0; border-top: 0; padding: 0 0 10px; }
  .m2-dright #m2Cmts { overflow: visible; padding: 2px 16px 8px; }
  .m2-dright .m2-cmt-new { padding: 10px 16px 12px; }
}

/* ============ t2：左右布局（任务页 / 今天页）——详情常驻窗口右侧，列表在左 ============ */
@media (min-width: 1024px) {
  body.dw-side .drawer-root {
    left: auto; right: 0; top: 58px; bottom: 0;
    width: var(--drawer-w, 460px); max-width: 70vw; height: auto; max-height: none;
    border-top: 0; border-left: 1px solid var(--line);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);   /* t10：窗圆角（左侧两角） */
    box-shadow: -14px 0 34px rgba(16, 24, 40, .10);
    animation: dwInR .18s ease-out;
  }
  @keyframes dwInR { from { transform: translateX(100%); opacity: .65; } to { transform: none; opacity: 1; } }
  body.dw-side .drawer-grip { left: -5px; right: auto; top: 0; bottom: 0; height: auto; width: 10px; cursor: col-resize; }
  body.dw-side .drawer-grip:hover { background: linear-gradient(to right, transparent, var(--brand-l2)); }
  body.dw-side.drawer-resizing { cursor: col-resize; }
  /* t10：贴右详情栏折叠（左缘中线按钮切换；收起后右缘留 ‹ 拉手，点行自动展开） */
  body.dw-side.dw-fold .drawer-root { display: none; }
  body.dw-side.dw-fold.drawer-open .main { padding-right: 24px; }
  body.dw-side.dw-fold.drawer-open .dw-tab { display: inline-flex; position: fixed; right: 0; top: 50%; transform: translateY(-50%); width: 20px; height: 42px; border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; background: #fff; color: var(--text-2); box-shadow: var(--shadow-s); cursor: pointer; align-items: center; justify-content: center; z-index: 46; }
  body.dw-side.dw-fold.drawer-open .dw-tab:hover { color: var(--brand-d); border-color: var(--brand-l2); background: var(--brand-l); }
  body.dw-side.dw-fold.drawer-open .dw-tab svg { width: 14px; height: 14px; }
  body.dw-side.drawer-open .main { padding-right: 0; padding-bottom: 16px; }   /* 2026-10-20：抽屉改为覆盖式，和 ERP 一致 */
  body.dw-side.recfit.drawer-open .main { height: calc(100vh - 58px); }
  /* t3：窗内＝上下双窗——上窗＝详情（独立滚动）、下窗＝评论/活动流（页签钉顶、输入钉底、内容自滚）。
     基类本就是「dleft 自滚 + dright 内窗口」结构，这里只把整体转竖排＋给下窗一个受限高度。 */
  body.dw-side .drawer .modal-body.m2-dbody { flex-direction: column; }
  body.dw-side .m2-dleft { padding: 16px 16px 4px; }
  body.dw-side .m2-dright { flex: 0 0 auto; height: clamp(176px, 32vh, 340px); border-left: 0; border-top: 1px solid var(--line-2); }
}

/* ============ ux15：详情头部快览（名称＋标签＋优先级＋截止；创建/更新并入副标） ============ */
.mh-t.mh-rich { white-space: normal; overflow: visible; }
.mh-tline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mh-tline .mh-ttl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-hx { flex: none; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; max-width: 64%; font-weight: 400; }
.mh-hx .m2-ro-tag { font-weight: 400; }
.mh-mi { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 400; color: var(--text-2); }
.mh-mi em { font-style: normal; font-size: 12px; color: var(--muted); }
.mh-mi b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mh-t.mh-rich .mh-s { white-space: normal; }

/* ================= B 批（85号，2026-09-30）：申请单 / 投递箱 / @与表情 / 收件箱动作 ================= */

/* ---- B4 申请单页（#/req，D8 干净单列） ---- */
.req-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;max-width:960px}
.req-card{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left;padding:16px;border:1px solid var(--line,#e6eaf1);border-radius:12px;background:#fff;cursor:pointer;font-family:inherit;transition:border-color var(--dur-1),box-shadow var(--dur-1),transform var(--dur-1)}
.req-card:hover{border-color:#bcd0f5;box-shadow:0 4px 16px rgba(37,99,235,.10);transform:translateY(-1px)}
.req-ico{font-size:24px}
.req-ct{font-weight:600;font-size:14px}
.req-cd{font-size:13px;color:var(--muted,#6b7280);line-height:1.5}
.req-go{font-size:12px;color:var(--brand,#2563eb);margin-top:4px}
.req-recent{margin-top:16px;max-width:960px}
.req-rt{font-size:13px;font-weight:600;color:var(--muted,#6b7280);margin:0 0 6px}
.req-ri{display:flex;align-items:center;gap:10px;padding:8px 4px;border-bottom:1px dashed var(--line,#e6eaf1);font-size:13px}
.req-rn{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.req-rd{color:var(--muted,#6b7280);font-size:12px;font-variant-numeric:tabular-nums}
.req-form-wrap{max-width:620px}
.req-form{background:#fff;border:1px solid var(--line,#e6eaf1);border-radius:12px;padding:16px 16px 16px}
.req-fhead{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.req-ft{font-weight:600;font-size:16px}
.req-fields .field{margin-bottom:12px}
.req-req{color:#dc2626;font-style:normal}
.req-facts{display:flex;align-items:center;gap:12px;margin-top:16px}
.req-done{text-align:center;padding:32px 20px}
.req-ok{width:52px;height:52px;margin:0 auto 10px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#ecfdf5;color:#16a34a}
.req-ok svg{width:26px;height:26px}
.req-okt{font-size:16px;font-weight:600}
.req-oks{color:var(--muted,#6b7280);font-size:13px;margin:6px 0 16px}

/* ---- B8 评论 @选人与表情 ---- */
.m2-at-pop{position:absolute;z-index:60;left:0;bottom:calc(100% + 6px);min-width:160px;background:#fff;border:1px solid var(--line,#e6eaf1);border-radius:8px;box-shadow:0 8px 24px rgba(16,24,40,.12);padding:4px;max-height:220px;overflow:auto}
.m2-at-item{display:block;width:100%;text-align:left;padding:6px 10px;border:0;background:transparent;border-radius:8px;cursor:pointer;font-size:13px;font-family:inherit}
.m2-at-item:hover,.m2-at-item.on{background:#eff6ff;color:#1d4ed8}
.m2-at{color:#1d4ed8;font-weight:600}
/* t9：表情（👍/✅）移到时间同一行（用户拍板） */
.m2-react-row{display:inline-flex;align-items:center;gap:6px}
.m2-react{border:1px solid var(--line,#e6eaf1);background:#fff;border-radius:999px;font-size:12px;line-height:1;padding:4px 8px;cursor:pointer;font-family:inherit;opacity:.85}
.m2-react:hover{opacity:1;border-color:#bcd0f5}
.m2-react.dim{opacity:0}
.m2-cmt-item:hover .m2-react.dim{opacity:.55}
.m2-react.on{background:#eff6ff;border-color:#bcd0f5;color:#1d4ed8;opacity:1}
.m2-react b{font-weight:600}

/* ---- B7 收件箱动作与稍后 ---- */
.m2i-ops{display:inline-flex;gap:4px;opacity:0;transition:opacity var(--dur-1);margin-left:6px}
.m2i-row:hover .m2i-ops{opacity:1}
.m2i-op{width:24px;height:24px;border:1px solid var(--line,#e6eaf1);border-radius:8px;background:#fff;cursor:pointer;font-size:12px;line-height:1;display:inline-flex;align-items:center;justify-content:center;font-family:inherit}
.m2i-op:hover{border-color:#bcd0f5;background:#eff6ff}
.m2i-op2{border:1px solid var(--line,#e6eaf1);background:#fff;border-radius:8px;font-size:12px;padding:2px 8px;cursor:pointer;font-family:inherit;margin-left:8px}
.m2i-op2:hover{border-color:#bcd0f5;background:#eff6ff}
.m2i-snzmenu{position:absolute;z-index:80;background:#fff;border:1px solid var(--line,#e6eaf1);border-radius:12px;box-shadow:0 10px 30px rgba(16,24,40,.14);padding:6px;min-width:190px}
.m2i-snzt{font-size:12px;color:var(--muted,#6b7280);padding:4px 8px 6px}
.m2i-snzmenu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:8px 8px;border-radius:8px;cursor:pointer;font-size:13px;font-family:inherit}
.m2i-snzmenu button:hover{background:#eff6ff;color:#1d4ed8}
.m2i-snzcustom{display:flex;gap:6px;padding:6px 4px 2px;border-top:1px solid var(--line,#e6eaf1);margin-top:4px}
.m2i-snzdate{flex:1;border:1px solid var(--line,#e6eaf1);border-radius:8px;padding:4px 8px;font-family:inherit;font-size:13px}
.m2i-snz .m2i-caret{transition:transform var(--dur-1)}
.m2i-snz:not(.open) .m2i-list{display:none}
.m2i-snzrow{opacity:.85}

/* ===== C 批（85 号）：保存视图 / 列表 Peek / 规则卡 / 命令面板 / 快捷键表 ===== */
.m2-mvbar{display:flex;align-items:center;gap:8px;padding:6px 2px 2px}
.m2-mvb{position:relative;display:inline-flex;align-items:center;gap:4px}
.m2-mvb b.m2-mvn{display:inline-block;min-width:16px;height:16px;line-height:16px;border-radius:8px;background:#1d4ed8;color:#fff;font-size:11px;text-align:center;padding:0 4px;font-style:normal}
.m2-mvpop{position:fixed;z-index:9100;min-width:260px;max-width:380px;background:var(--card,#fff);border:1px solid var(--line,#e6eaf1);border-radius:12px;box-shadow:0 14px 40px rgba(15,23,42,.16);padding:6px;font-size:13px}
.m2-mvp-h{display:flex;justify-content:space-between;gap:10px;padding:6px 8px;color:var(--muted,#64748b);border-bottom:1px solid var(--line,#eef2f7)}
.m2-mvp-h b{color:var(--fg,#0f172a)}
.m2-mvp-list{max-height:300px;overflow:auto;padding:4px 0}
.m2-mvp-i{display:flex;align-items:center;gap:2px}
.m2-mvp-main{flex:1;display:flex;align-items:center;gap:6px;border:0;background:none;padding:8px 8px;border-radius:8px;cursor:pointer;text-align:left;font:inherit;color:inherit}
.m2-mvp-main:hover{background:#f1f5f9}
.m2-mvp-nm{font-weight:600}
.m2-mvp-tag{font-style:normal;font-size:11px;color:#1d4ed8;background:#eff6ff;border-radius:6px;padding:0 4px}
.m2-mvp-by{font-style:normal;font-size:11px;color:#64748b}
.m2-mvp-ct{margin-left:auto;color:#94a3b8;font-size:11px}
.m2-mvp-act{border:0;background:none;color:#94a3b8;cursor:pointer;padding:4px 6px;border-radius:6px}
.m2-mvp-act:hover{background:#f1f5f9;color:#1d4ed8}
.m2-mvp-act.del:hover{color:#dc2626}
.m2-mvp-f{border-top:1px solid var(--line,#eef2f7);padding:6px 4px 2px}
.m2-mvp-f button{width:100%;border:0;background:none;color:#1d4ed8;padding:8px;border-radius:8px;cursor:pointer;font:inherit}
.m2-mvp-f button:hover{background:#eff6ff}
.m2-mvp-f button:disabled{color:#94a3b8;cursor:default;background:none}
.m2-grid tbody tr.kb-focus{outline:2px solid #2563eb;outline-offset:-2px;background:#eff6ff}
.view-acts{display:flex;gap:8px;margin-left:auto;align-items:flex-start}
.ru-stat{display:flex;gap:8px;padding:4px 2px 10px;flex-wrap:wrap}
.ru-chip{font-size:12px;color:#475569;background:#f1f5f9;border-radius:8px;padding:4px 10px}
.ru-chip.on{background:#ecfdf5;color:#047857}
.ru-card{display:flex;flex-wrap:wrap;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line,#eef2f7)}
.ru-card.off{opacity:.62}
.ru-main{flex:1;min-width:280px}
.ru-line1{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ru-line1 b{font-size:14px}
.ru-type{font-style:normal;font-size:11px;border-radius:6px;padding:1px 6px;background:#eff6ff;color:#1d4ed8}
.ru-type.stale{background:#fff7ed;color:#c2410c}
.ru-type.chase{background:#fefce8;color:#a16207}
.ru-type.change{background:#f5f3ff;color:#6d28d9}
.ru-type.share{background:#f0fdfa;color:#0f766e}
.ru-tb{font-style:normal;font-size:11px;color:#64748b}
.ru-sum{color:#475569;font-size:13px;margin-top:4px;line-height:1.5}
.ru-side{display:flex;align-items:flex-start;gap:10px}
.ru-sw{position:relative;display:inline-block;width:38px;height:22px;flex:none;margin-top:2px}
.ru-sw input{display:none}
.ru-sw span{position:absolute;inset:0;border-radius:12px;background:#cbd5e1;transition:background var(--dur-1);cursor:pointer}
.ru-sw span::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left var(--dur-1)}
.ru-sw input:checked + span{background:#10b981}
.ru-sw input:checked + span::after{left:19px}
.ru-edit{flex-basis:100%;border-top:1px dashed var(--line,#e6eaf1);margin-top:8px;padding-top:10px;display:flex;flex-wrap:wrap;gap:10px}
.ru-f{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#64748b;min-width:140px}
.ru-in{padding:6px 8px;font-size:13px}
.ru-ck{display:flex;align-items:center;gap:6px;font-size:13px;color:#475569;align-self:flex-end}
.ru-editf{flex-basis:100%;display:flex;gap:8px}
.cmdk-root{position:fixed;inset:0;z-index:9600}
.cmdk-mask{position:absolute;inset:0;background:rgba(15,23,42,.34)}
.cmdk-box{position:relative;margin:9vh auto 0;width:min(640px,92vw);background:var(--card,#fff);border-radius:12px;box-shadow:0 24px 80px rgba(15,23,42,.34);overflow:hidden;display:flex;flex-direction:column;max-height:66vh}
.cmdk-in{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line,#eef2f7)}
.cmdk-in input{flex:1;border:0;outline:0;font:inherit;font-size:16px;background:none;color:inherit}
.cmdk-in kbd{font-size:11px;border:1px solid var(--line,#e2e8f0);border-radius:6px;padding:2px 4px;color:#94a3b8}
.cmdk-list{overflow:auto;padding:6px}
.cmdk-sec{font-size:11px;color:#94a3b8;padding:8px 8px 4px}
.cmdk-i{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;font:inherit;color:inherit;text-align:left;padding:8px 10px;border-radius:8px;cursor:pointer}
.cmdk-i i{font-style:normal;width:20px;text-align:center;color:#64748b}
.cmdk-t{flex:1;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmdk-s{font-size:12px;color:#94a3b8;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmdk-h{font-size:11px;color:#94a3b8;border:1px solid var(--line,#e2e8f0);border-radius:6px;padding:1px 6px}
.cmdk-i.on{background:#eff6ff}
.cmdk-empty{padding:16px;text-align:center;color:#94a3b8;font-size:13px}
.cmdk-foot{display:flex;gap:16px;padding:8px 16px;border-top:1px solid var(--line,#eef2f7);color:#94a3b8;font-size:11px}
.cmdk-md{margin-left:auto}
.kbh-root{position:fixed;inset:0;z-index:9500}
.kbh-mask{position:absolute;inset:0;background:rgba(15,23,42,.3)}
.kbh-box{position:relative;margin:12vh auto 0;width:min(520px,92vw);background:var(--card,#fff);border-radius:12px;box-shadow:0 24px 80px rgba(15,23,42,.3);padding:16px 16px}
.kbh-box h3{margin:0 0 10px;font-size:16px}
.kbh-row{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px dashed var(--line,#eef2f7);font-size:13px;color:#334155}
.kbh-row kbd{font-family:inherit;font-size:12px;background:#f1f5f9;border:1px solid var(--line,#e2e8f0);border-radius:6px;padding:2px 8px;color:#0f172a;white-space:nowrap}
.kbh-f{margin-top:10px;text-align:right;color:#94a3b8;font-size:12px}

/* ===== D 批（85 号）：客户聚合页 / 机器人徽标 ===== */
.t-bot{background:#f5f3ff;color:#6d28d9}
.org-meta{display:flex;gap:8px;padding:4px 2px 12px;flex-wrap:wrap}
.org-chip{font-size:12px;color:#475569;background:#f1f5f9;border-radius:8px;padding:4px 10px}
.org-chip b{color:#0f172a;font-size:14px;margin-right:2px}
.org-cols{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.org-main{flex:1 1 420px;min-width:320px;display:flex;flex-direction:column;gap:12px}
.org-side{flex:1 1 280px;min-width:260px;max-width:420px;display:flex;flex-direction:column;gap:12px}
.org-card{border:1px solid var(--line,#e6eaf1);border-radius:12px;overflow:hidden;background:var(--card,#fff)}
.org-card-h{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line,#eef2f7);font-size:13px}
.org-card-h b{font-size:14px}
.org-card-h i{font-style:normal;color:#94a3b8;font-size:12px}
.org-card-h .btn{margin-left:auto}
.org-ti{font-style:normal}
.org-row{display:flex;align-items:baseline;gap:8px;padding:8px 12px;border-bottom:1px dashed var(--line,#f1f5f9);cursor:pointer;font-size:13px}
.org-row:last-child{border-bottom:0}
.org-row:hover{background:#f8fafc}
.org-rt{font-weight:600;color:#0f172a;flex:none;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.org-rd{font-style:normal;color:#2563eb;font-size:12px;flex:none}
.org-rs{color:#94a3b8;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.org-more,.org-empty2{padding:8px 12px;color:#94a3b8;font-size:12px}
.org-empty{padding:16px;color:#64748b;font-size:13px;border:1px dashed var(--line,#e2e8f0);border-radius:12px}



/* =========================================================================
 * F 批（设计线补齐 2026-09-30）：动效令牌 / 看板卡 / 抽屉活动流 / 通知 / 结算概览
 * ========================================================================= */
/* D1：动效时长令牌（统一 120–180ms 档） */
:root { --dur-1: var(--dur-mod-01); --dur-2: var(--dur-mod-02); }   /* 230a：旧名别名 → 动效 token（值不变；reduced-motion 时随 token 归零） */

/* D3：看板卡（负责人头像 / 子项进度 / 拖拽视觉） */
.m2-kbava { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: #dbe7ff; color: #2451c9; font-size: 11px; font-weight: 700; font-style: normal; margin-right: 4px; vertical-align: -3px; }
html[data-theme="dark"] .m2-kbava { background: #233a63; color: #a9c6ff; }
.m2-kbpg { display: inline-flex; align-items: center; gap: 4px; }
.m2-kbprog { display: inline-block; width: 40px; height: 4px; border-radius: 999px; background: #e2e8f2; overflow: hidden; }
.m2-kbprog i { display: block; height: 100%; background: var(--brand); }
.m2-flstay { font-variant-numeric: tabular-nums; }
.m2-kbcard { transition: border-color var(--dur-1), box-shadow var(--dur-1), transform var(--dur-1); }
.m2-kbcard:hover { border-color: #c9d7f2; }
.m2-kbcard.dragging { opacity: .45; border-style: dashed; }

/* D4：详情抽屉「活动流」第三栏（窄屏隐藏） */
/* t1批注②：活动流——由独立第三栏改为详情右栏的页签（标题并入页签） */
.m2-dact-list { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 12px 16px 16px; }
.m2-dact-i { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.m2-dact-i:last-child { border-bottom: 0; }
.m2-dact-ic { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.m2-dact-x { font-size: 12px; color: var(--text-2); word-break: break-word; }
.m2-dact-m { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* D6：通知（未读分隔线 / 侧栏「今天」徽标） */
.m2-nsep { display: flex; align-items: center; gap: 8px; padding: 6px 12px; color: var(--muted); font-size: 11px; }
.m2-nsep::before, .m2-nsep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.nav-nb { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; line-height: 16px; }
@media (max-width: 1023px) { .nav-nb { display: none; } }

/* D5：结算概览仪表卡（大数字＋语义色） */
.m2h-money { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 760px) { .m2h-money { grid-template-columns: repeat(2, 1fr); } }
.m2m-b { background: #f8fafc; border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 10px 12px; }
html[data-theme="dark"] .m2m-b { background: #151c27; }
.m2m-n { display: block; font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.m2m-blue { color: var(--brand-d); } .m2m-orange { color: #c2410c; } .m2m-red { color: #b91c1c; } .m2m-purple { color: #6d28d9; } .m2m-green { color: #15803d; }
html[data-theme="dark"] .m2m-blue { color: #9ec2ff; } html[data-theme="dark"] .m2m-orange { color: #fdba74; } html[data-theme="dark"] .m2m-red { color: #fca5a5; } html[data-theme="dark"] .m2m-purple { color: #c4b5fd; } html[data-theme="dark"] .m2m-green { color: #86efac; }
.m2m-b i { font-style: normal; font-size: 12px; color: var(--muted); }
.m2m-note { margin-top: 8px; }

/* =========================================================================
 * H1 批（多维表增强 2026-09-30）：视图列集 / 多级分组 / 底部合计 / 视图设置面板
 * ========================================================================= */
/* 分组行（点整行折叠/展开） */
.m2-grprow { cursor: pointer; user-select: none; }
.m2-grprow .m2-grpcell { background: #f4f6fa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-2); padding: 6px 10px; }
.m2-grprow:hover .m2-grpcell { background: #eef2f9; }
html[data-theme="dark"] .m2-grprow .m2-grpcell { background: #1a2230; }
html[data-theme="dark"] .m2-grprow:hover .m2-grpcell { background: #1f2937; }
.m2-grprow.lv2 .m2-grpcell { padding-left: 24px; }
.m2-grprow.lv3 .m2-grpcell { padding-left: 40px; }
.m2-grpi { display: inline-block; width: 14px; color: var(--muted); font-size: 11px; }
.m2-grpt { font-weight: 600; color: var(--text); }
.m2-grplv { color: var(--faint); font-size: 12px; margin-right: 8px; }
.m2-grpn { margin-left: 8px; font-size: 11px; color: var(--muted); background: #e9eef7; border-radius: 999px; padding: 1px 8px; }
html[data-theme="dark"] .m2-grpn { background: #253048; }
/* 组内行缩进 */
tr.m2-rowin[data-lv="2"] .m2-num { padding-left: 20px !important; }
tr.m2-rowin[data-lv="3"] .m2-num { padding-left: 36px !important; }
/* 底部合计行 */
.m2-aggrow td { background: #fbfcfe; border-top: 2px solid var(--line); font-weight: 600; color: var(--text); }
html[data-theme="dark"] .m2-aggrow td { background: #161d29; }
.m2-aggv { text-align: right; white-space: nowrap; padding: 8px 10px !important; }
.m2-aggrow .m2-num { font-weight: 600; color: var(--text-2); }
/* 视图设置面板（管理视图里行内展开：列集 / 合计 / 分组） */
.m2-frow.vopen { flex-wrap: wrap; }
.m2-vset { flex: 1 0 100%; min-width: 0; border-top: 1px dashed var(--line); margin-top: 8px; padding: 8px 2px 2px; }
.m2-vsh { font-size: 12px; font-weight: 600; color: var(--text-2); margin: 8px 0 6px; }
.m2-vsg { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.m2-vsc { display: inline-flex; align-items: center; gap: 4px; min-width: 200px; flex: 0 0 32%; font-size: 13px; color: var(--text); }
.m2-vsn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.m2-vsy { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 12px; cursor: pointer; }
.m2-vsy.off { opacity: .3; cursor: default; }
.m2-vsg2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.m2-vsg2 .m2-selw { max-width: 160px; }

/* H2：跨表字段（关联芯片可点、引用配置行） */
.m2-chip.m2-relc{cursor:pointer}
.m2-chip.m2-relc:hover{text-decoration:underline}
.m2-lkbox{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px}
.m2-lkbox .m2-lkl{font-size:12px;opacity:.7}

/* ============ p4c：侧栏顺滑度（滚动 / 拖拽 / 折叠）· 2026-10-02 ============ */
/* ① 桌面：导航列内部滚动（空间/已登录钉住），条目不被压扁，细滚动条便于拖动 */
.sidebar .nav {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(125, 135, 150, .38) transparent;
}
.sidebar .nav::-webkit-scrollbar { width: 8px; }
.sidebar .nav::-webkit-scrollbar-thumb { background: rgba(125, 135, 150, .32); border-radius: var(--radius-pill); }
.sidebar .nav::-webkit-scrollbar-thumb:hover { background: rgba(125, 135, 150, .6); }
.sidebar .nav::-webkit-scrollbar-track, .sidebar .nav::-webkit-scrollbar-corner { background: transparent; }
.sidebar .nav > * { flex: none; }
.sidebar .side-spaces > *, .sidebar .side-foot { flex: none; }
.sidebar .nav-item, .sidebar .space-item { transition: background .13s ease, color .13s ease; }

/* ② 图标条（600–1023）：本体无滚动条；hover 浮层限高可滚 + 弹出动画 */
@media (min-width: 600px) and (max-width: 1023px) {
  .sidebar .nav { scrollbar-width: none; }
  .sidebar .nav::-webkit-scrollbar { display: none; }
  .sidebar:hover .nav {
    max-height: calc(100vh - 66px); overflow-y: auto; overscroll-behavior: contain;
    animation: wbNavPop .16s ease;
  }
  @keyframes wbNavPop { from { opacity: 0; transform: translateX(-6px); } }
}

/* ③ 移动抽屉（<600）：整体单滚动 + 背板淡入；左滑关闭手势由 app.js 挂 */
@media (max-width: 599px) {
  .sidebar { transition: transform .22s cubic-bezier(.22, .61, .36, 1); will-change: transform; overscroll-behavior: contain; touch-action: pan-y; }
  .sidebar .nav { flex: none; overflow: visible; }
  .nav-backdrop:not([hidden]) { animation: wbFadeIn .18s ease; }
  @keyframes wbFadeIn { from { opacity: 0; } }
}

/* ============ v1a：今天页「倒计时」＋常用系统条（2026-10-05） ============ */
.m2cd { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); flex-wrap: wrap; }
.m2cd-t { font-size: 13px; font-weight: 600; color: var(--text-2); flex: none; }
.m2cd-list { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.m2cd-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; font: inherit; }
.m2cd-chip b { font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m2cd-chip .m2cd-d { color: var(--muted-2); font-size: 12px; flex: none; }
.m2cd-chip:hover { border-color: var(--brand-l2); background: var(--brand-l); }
.m2cd-chip.hot { border-color: rgba(220, 53, 69, .45); }
.m2cd-chip.hot .m2cd-d { color: #d92d20; font-weight: 600; }
.m2cd-chip.warm { border-color: rgba(255, 159, 64, .5); }
.m2cd-chip.warm .m2cd-d { color: #b45309; font-weight: 600; }
/* nd18（183-3）：「我的范围」三数条（今天页顶部；与 #/overview 同口径）＋「接着干」条尾 */
.m2i-scope { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 12px;
  border: 1px solid var(--line, #e2e8f0); border-radius: var(--radius, 10px); background: var(--card, #fff); }
.m2i-scope .m2s-t { font-size: 12px; font-weight: 600; color: var(--muted, #64748b); letter-spacing: .5px; flex: none; }
.m2i-scope .m2s-k { font-size: 13px; color: var(--text, #1e293b); text-decoration: none; display: inline-flex; align-items: baseline; gap: 4px; }
.m2i-scope .m2s-k b { font-size: 16px; font-weight: 700; }
.m2i-scope .m2s-k.warn b { color: #d92d20; }
.m2i-scope .m2s-k.money b { color: #b45309; }
.m2i-scope .m2s-k:hover { color: var(--brand, #2b6cb0); }
.m2i-scope .m2s-sp { flex: 1 1 auto; }
.m2i-scope .m2s-sub { font-size: 12px; color: var(--muted-2, #8a94a6); }
.m2i-scope .m2s-sub b { color: var(--text-2, #5b6472); }
.m2rs .m2cd-t { color: var(--brand-d, #1d4e89); }
.m2rs-more { font-size: 12px; color: var(--brand, #2b6cb0); text-decoration: none; flex: none; padding: 2px 4px; }
.m2rs-more:hover { text-decoration: underline; }
@media (max-width: 600px) { .m2i-scope { gap: 10px; padding: 8px; } .m2i-scope .m2s-sp { display: none; } }
.m2i-sys { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: --6px 0 10px; }
.m2i-sys-l { font-size: 12px; color: var(--muted-2); margin-right: 2px; }

/* ============ P1：流程区（行详情抽屉：阶段 stepper ＋ 本阶段任务） ============ */
.m2-flow-box { margin-top: 10px; }
.m2-flow-title { font-size: 12px; color: var(--muted-2); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.m2-flow-name { color: var(--text-2); font-weight: 600; }
.m2-flow-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.m2-flow-step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; font-size: 12px; color: var(--muted); background: transparent; }
.m2-flow-step.past { color: var(--text-2); }
.m2-flow-step.on { color: #fff; background: var(--brand, #2f6fed); border-color: var(--brand, #2f6fed); font-weight: 600; }
.m2-flow-step.done { border-style: dashed; }
.m2-flow-arrow { color: var(--muted-2); font-style: normal; }
.m2-flow-meta { font-size: 12px; color: var(--text-2); margin: 8px 0 4px; }
.m2-flow-meta.warn { color: #b45309; }
.m2-flow-tasks { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 6px; }
.m2-flow-th { font-size: 12px; color: var(--muted-2); margin-bottom: 4px; }
.m2-flow-th b { color: var(--text-2); }
.m2-flow-task { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 2px 0; color: var(--text); }
.m2-flow-task i { font-style: normal; color: var(--muted-2); flex: none; }
.m2-flow-task.ok i { color: #12805c; }
.m2-flow-task.ok span { color: var(--muted-2); text-decoration: line-through; }
.m2-flow-task em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted-2); flex: none; }
.m2-flow-empty { font-size: 12px; color: var(--muted-2); padding: 2px 0; }
.m2-flow-act { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; }
.m2-flow-advhint { font-size: 12px; color: var(--muted-2); }
.m2-flow-form { margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 8px; }
.m2-flow-formh { font-size: 12px; color: var(--text-2); }
.m2-flow-form .input { font-size: 13px; height: 30px; padding: 0 8px; }
/* 184-1b：收件箱「待我确认」子分区 + 就地动作 */
.m2i-sub { display: flex; align-items: baseline; gap: 8px; padding: 6px 10px 2px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.m2i-sub em { font-style: normal; font-weight: 400; color: var(--muted-2); }
.m2i-opok { color: #12805c; font-weight: 700; }
/* 183-1：研判层（全景总览/异常与风险） */
.iv-wrap { padding: 0 14px 20px; }
.iv-loading { padding: 34px 4px; color: var(--muted-2); font-size: 13px; }
.iv-muted { color: var(--muted-2); font-size: 13px; padding: 8px 4px; }
.iv-muted.iv-ok { padding: 2px 4px; }
.iv-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.iv-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; background: var(--card, #fff); }
.iv-card.alert { border-color: #f0c9a8; background: #fff8f1; }
.iv-k-label { font-size: 12px; color: var(--muted-2); }
.iv-k-big { font-size: 24px; font-weight: 700; margin: 5px 0 3px; color: var(--text); font-variant-numeric: tabular-nums; }
.iv-card.alert .iv-k-big { color: #b45309; }
.iv-k-small { font-size: 12px; color: var(--muted-2); line-height: 1.5; }
.iv-k-src { font-size: 10px; color: var(--muted-2); line-height: 1.45; margin-top: 3px; }
.iv-sec { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; min-width: 0; }
.iv-sec.warn { border-color: #f2ddc0; }
.iv-sec.bad { border-color: #f0c9c1; }
.iv-sec-t { font-weight: 600; font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.iv-sec-h { font-weight: 400; font-size: 12px; color: var(--muted-2); }
.iv-warn { font-weight: 400; font-size: 12px; color: #b45309; }
.iv-badge { display: inline-block; min-width: 20px; text-align: center; padding: 0 6px; border-radius: 9px; font-size: 12px; font-weight: 600; line-height: 18px; }
.iv-badge.red { background: #fde8e2; color: #c2410c; }
.iv-badge.orange { background: #fdf0e0; color: #b45309; }
.iv-badge.gray { background: #eef1f5; color: var(--muted-2); }
.iv-chart { width: 100%; height: auto; max-height: 260px; display: block; }
.iv-grid { stroke: var(--line); stroke-width: 1; }
.iv-ax { font-size: 11px; fill: var(--muted-2); }
.iv-line { fill: none; stroke: var(--brand, #2f6fed); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.iv-area { fill: var(--brand-l, rgba(47, 111, 237, .10)); stroke: none; }
.iv-dot { fill: #fff; stroke: var(--brand, #2f6fed); stroke-width: 2; }
.iv-lastv { font-size: 12px; font-weight: 700; fill: var(--brand-d, #2456b3); }
.iv-stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; border: 1px solid var(--line); }
.iv-stack i { display: block; height: 100%; }
.iv-stack-lg { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.iv-stack-lg em { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; font-style: normal; }
.iv-stack-lg b { color: var(--text); }
.iv-ritem { display: flex; width: 100%; text-align: left; border: 0; border-bottom: 1px dashed var(--line); background: transparent; padding: 7px 4px; cursor: pointer; color: inherit; font: inherit; align-items: baseline; gap: 8px; }
.iv-ritem:last-child { border-bottom: 0; }
.iv-ritem:hover { background: var(--brand-l, #eef4ff); border-radius: 6px; }
.iv-ritem b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.iv-ritem .iv-m { margin-left: auto; color: var(--muted-2); font-size: 12px; flex: none; }
.iv-note { color: var(--muted-2); font-size: 12px; line-height: 1.8; padding: 2px 4px 6px; }
/* 184-3：任务取消（抽屉内联表单） */
.m2-cancel-box { border-top: 1px solid var(--line); padding: 12px 16px; background: #fff8f1; }
.m2-cancel-h { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.m2-cancel-row { display: flex; gap: 8px; }
.m2-cancel-row .input { flex: 1 1 0; min-width: 0; }
.m2-cancel-row select.input { flex: 0 0 150px; }
.m2-cancel-f { display: flex; gap: 8px; margin-top: 8px; }
@media (max-width: 1279px) { .iv-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) { .iv-kpis { grid-template-columns: 1fr; } }

/* ============ P2：业务全景页（#/biz，2026-10-07） ============ */
.bv-search { display: flex; gap: 8px; padding: 14px 14px 8px; }
.bv-search .input { flex: 1 1 auto; max-width: 560px; }
.bv-list { padding: 8px 14px 18px; display: flex; flex-direction: column; gap: 8px; max-width: 880px; }
.bv-item { display: flex; gap: 10px; align-items: baseline; text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; width: 100%; color: inherit; font: inherit; }
.bv-item:hover { border-color: var(--brand-l2); background: var(--brand-l); }
.bv-item b { font-weight: 600; flex: none; }
.bv-item-sub { color: var(--muted-2); font-size: 12px; margin-left: auto; text-align: right; }
.bv-chip { flex: none; display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 10px; background: var(--brand-l); color: var(--brand-d); font-size: 12px; font-weight: 600; }
.bv-hint { color: var(--muted-2); font-size: 12px; padding: 4px 2px; }
.bv-hero { margin: 0 14px 14px; padding: 14px 16px 12px; }
.bv-rail { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 0; }
.bv-step { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 13px; }
.bv-step i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; flex: none; }
.bv-step.past { color: var(--text-2); }
.bv-step.past i { background: #9aa4b2; }
.bv-step.cur { color: var(--brand); font-weight: 700; }
.bv-step.cur i { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-l); }
.bv-step + .bv-step::before { content: '—'; margin: 0 10px; color: var(--line); }
.bv-fine { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.bv-fine b { color: var(--brand-d); }
.bv-prog { margin-top: 6px; font-size: 12px; color: var(--muted-2); }
.bv-prog b { color: var(--brand-d); }
.bv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; padding: 0 14px 20px; }
.bv-sec { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.bv-sec h4 { margin: 0 0 8px; font-size: 13px; color: var(--text-2); }
.bv-task { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px dashed var(--line); color: inherit; text-decoration: none; }
.bv-task:first-of-type { border-top: 0; }
.bv-task .ic { flex: none; font-size: 13px; }
.bv-task .tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-task.done .tt { color: var(--muted-2); text-decoration: line-through; }
.bv-task .meta { margin-left: auto; font-size: 12px; color: var(--muted-2); flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-kv { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 13px; border-top: 1px dashed var(--line); }
.bv-kv:first-of-type { border-top: 0; }
.bv-kv em { font-style: normal; color: var(--muted-2); flex: none; }
.bv-kv span { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.bv-foot { padding: 0 16px 18px; }
.bv-act { margin: 0 14px 14px; padding: 12px 16px; }
.bv-act-h { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.bv-act-h b { color: var(--brand-d); }
.bv-act-row { display: flex; gap: 10px; align-items: flex-start; }
.bv-act-row .input { flex: 1 1 auto; max-width: 560px; }
.bv-act-row select.input { flex: 0 0 300px; width: 300px; }
.bv-act-f { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.bv-act-f .btn { flex: none; }
.bv-act-f .bv-hint { margin-left: auto; }
/* P2-7：管道视图（全盘泳道）＋备注留痕时间线 */
.bv-pipe { padding-bottom: 8px; }
.bv-pipes { display: flex; gap: 10px; align-items: flex-start; overflow-x: auto; padding: 6px 10px 2px; }
.bv-lane { flex: 0 0 236px; min-width: 236px; }
.bv-lane-h { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 6px 4px; border-bottom: 2px solid var(--line); display: flex; justify-content: space-between; }
.bv-lane-h em { font-style: normal; color: var(--brand-d); }
.bv-lane-b { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; max-height: 60vh; overflow-y: auto; }
.bv-card { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: inherit; font: inherit; }
.bv-card:hover { border-color: var(--brand-l2); background: var(--brand-l); }
.bv-card b { font-weight: 600; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bv-card i { font-style: normal; font-size: 12px; color: var(--muted-2); }
.bv-card s { text-decoration: none; font-size: 12px; color: var(--brand-d); }
.bv-card u { text-decoration: none; font-size: 12px; color: var(--muted-2); }
.bv-card em.bv-age { font-style: normal; font-size: 12px; color: var(--muted-2); }
.bv-card em.bv-age.warn { color: #c2410c; font-weight: 600; }
.bv-card em.bv-age.over { color: #b42318; font-weight: 600; }
.bv-stay { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.bv-stay b { color: var(--brand-d); }
.bv-stay.warn b { color: #c2410c; }
.bv-stay.over b { color: #b42318; }
/* 乙批（biz6）：起手式向导 */
.wz-panel { padding: 16px 18px; }
.wz-bar { display: flex; gap: 14px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wz-step { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted-2); }
.wz-step i { width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--text-2); font-style: normal; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.wz-step.cur { color: var(--brand-d); font-weight: 600; }
.wz-step.cur i { background: var(--brand-l); color: var(--brand-d); }
.wz-step.past { color: var(--ok); }
.wz-step.past i { background: var(--ok-l); color: var(--ok); }
.wz-h { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.wz-picked { font-weight: 400; font-size: 13px; color: var(--muted-2); margin-left: 8px; }
.wz-form { display: flex; flex-direction: column; gap: 10px; max-width: 740px; }
.wz-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }
.wz-row { display: flex; gap: 12px; }
.wz-row label { flex: 1 1 0; }
.wz-path { font-size: 12px; color: var(--muted-2); word-break: break-all; line-height: 1.7; }
.wz-foot { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.wz-list { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.wz-lv { font-size: 11px; background: #eef2f7; color: #52627a; border-radius: 5px; padding: 0 6px; margin-left: 6px; }
.wz-err { margin-top: 10px; font-size: 13px; color: #b42318; }
.wz-line { font-size: 13px; color: var(--text-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wz-ok { color: var(--ok); }
.bv-tl { border-top: 1px dashed var(--line); padding: 6px 0 2px; display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.bv-tl-i { display: flex; gap: 8px; font-size: 12px; align-items: baseline; }
.bv-tl-t { flex: none; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.bv-tl-x { color: var(--text-2); overflow-wrap: anywhere; }

/* ============ P1：流程管理页（#/flows） ============ */
.fl-stage { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.fl-slabel { font-weight: 600; color: var(--text-2); margin-right: 8px; }
.fl-dim { opacity: .55; }
.fl-tasks { margin: 6px 0 0 14px; }
.fl-tk { display: flex; gap: 6px; margin-top: 4px; align-items: center; }
.fl-tk .input { flex: 1 1 auto; min-width: 0; }
.fl-tk .input.num { flex: 0 0 68px; width: 68px; }
.fl-tk .input.pri { flex: 0 0 76px; width: 76px; }
.fl-tk-del { flex: none; }
.fl-tk-add { margin-top: 4px; }
.fl-mk { display: flex; gap: 8px; align-items: center; padding: 10px 12px; flex-wrap: wrap; }
.fl-mk .input { min-width: 180px; }

/* ===== biz2b：任务完成对话框 ===== */
.bx-dlg .bx-bz { margin: 2px 0 10px; font-size: 13px; }
.bx-dlg .bx-f { display: block; margin: 10px 0 0; font-size: 12.5px; color: #8a8f98; }
.bx-dlg .bx-f select, .bx-dlg .bx-f textarea { width: 100%; margin-top: 4px; box-sizing: border-box; }
.bx-dlg .bx-hint { margin-top: 10px; font-size: 12px; color: #8a8f98; }
.bx-dlg .bx-hint.err { color: #d4534b; }

/* ==================== biz9（2026-10-08）：业务全景 · 三栏（左列表 / 中业务详情 / 右任务详情） ==================== */
.bv-split { display: flex; gap: 12px; align-items: flex-start; padding: 0 14px 20px; }
.bv-col-l { flex: 0 0 340px; width: 340px; min-width: 300px; max-width: 360px; }
.bv-col-l .panel { margin: 0; }
.bv-lpanel { padding-bottom: 6px; }
.bv-col-l .bv-list { max-width: none; }
.bv-col-rm { flex: 1 1 auto; min-width: 0; display: flex; gap: 12px; align-items: flex-start; }
.bv-col-m { flex: 1 1 auto; min-width: 0; position: sticky; top: 8px; max-height: calc(100vh - 132px); overflow: auto; }
.bv-col-r { flex: 0 0 320px; width: 320px; min-width: 300px; max-width: 340px; position: sticky; top: 8px; max-height: calc(100vh - 132px); overflow: auto; }
.bv-col-m .panel, .bv-col-r .panel { margin: 0 0 10px; }
.bv-col-m .bv-hero, .bv-col-r .bv-hero { padding: 12px 14px 10px; }
.bv-col-m .bv-grid, .bv-col-r .bv-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); padding: 0 0 12px; }
.bv-col-m .bv-foot, .bv-col-r .bv-foot { padding: 0 0 12px; }
.bv-col-m .bv-act, .bv-col-r .bv-act { margin: 0 0 10px; }
.bv-dhead { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin: 0 0 10px; flex-wrap: wrap; }
.bv-dtitle { font-size: 18px; font-weight: 650; line-height: 1.3; }
.bv-dsub { font-size: 12px; color: var(--muted-2); margin-top: 3px; }
.bv-dacts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bv-empty { padding: 30px 16px; text-align: center; color: var(--muted-2); font-size: 13px; border: 1px dashed var(--line); border-radius: 12px; }
.bv-desc { margin-top: 8px; font-size: 12.5px; color: var(--brand-d); background: var(--brand-l); border-radius: 8px; padding: 6px 10px; display: inline-block; }
.bv-item.on { border-color: var(--brand); background: var(--brand-l); }
.bv-card.on { border-color: var(--brand); background: var(--brand-l); }
/* biz9：左栏顶行（建业务行 / 清单｜泳道 / 分组下拉） */
.bv-lbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 0 14px 8px; }
.bv-lbar .grow { flex: 1 1 auto; }
.bv-glabel { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted-2); }
.bv-group { width: auto; min-width: 118px; padding-top: 4px; padding-bottom: 4px; }
/* biz9：清单分组小节（可折叠） */
.bv-grp { margin-bottom: 4px; }
.bv-grp-h { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; padding: 7px 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--line); }
.bv-grp-h:hover { color: var(--brand-d); }
.bv-grp-h .arw { flex: none; color: var(--muted-2); font-size: 11px; transition: transform .15s; transform: rotate(0deg); }
.bv-grp-h .gname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-grp-h .cap { margin-left: auto; font-style: normal; color: var(--brand-d); }
.bv-grp.collapsed .bv-grp-h .arw { transform: rotate(-90deg); }
.bv-grp.collapsed .bv-grp-b { display: none; }
.bv-grp-b { display: flex; flex-direction: column; gap: 8px; padding: 8px 4px 2px; }
.bv-grp-empty { color: var(--muted-2); font-size: 12px; padding: 2px 4px; }
/* biz9：泳道分组头可折叠（沿用既有泳道样式） */
.bv-lane-h { cursor: pointer; user-select: none; justify-content: flex-start; gap: 6px; }
.bv-lane-h .arw { flex: none; color: var(--muted-2); font-size: 11px; transition: transform .15s; }
.bv-lane-h .gname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-lane-h em { margin-left: auto; }
.bv-lane.collapsed .bv-lane-h .arw { transform: rotate(-90deg); }
.bv-lane.collapsed .bv-lane-b { display: none; }
.bv-col-l .bv-pipes { flex-direction: column; overflow: visible; padding: 6px 4px 2px; }
.bv-col-l .bv-lane { flex: none; width: 100%; min-width: 0; }
.bv-col-l .bv-lane-b { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 6px; max-height: none; overflow: visible; padding: 8px 0 2px; }
/* biz9b：左栏清单行内截断（窄栏不换行、不撑高） */
.bv-col-l .bv-item b { flex: 0 1 auto; min-width: 0; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-col-l .bv-item-sub { flex: 1 1 auto; min-width: 0; margin-left: 8px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-col-l .bv-item .chip { flex: none; white-space: nowrap; }
.bv-col-l .bv-item b { max-width: 54%; }
/* biz9：中栏任务列表（按钮形态，选中高亮） */
.bv-task { width: 100%; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; text-align: left; padding: 6px 6px; border-radius: 8px; }
.bv-task:hover { background: var(--brand-l); }
.bv-task.on { background: var(--brand-l); }
.bv-task.on .tt { color: var(--brand-d); font-weight: 600; }
/* biz9：右栏任务详情（只读） */
.bv-taskpanel { padding: 14px 16px; }
.bv-tp-empty { color: var(--muted-2); font-size: 13px; text-align: center; padding: 26px 8px; }
.bv-tp-h { font-size: 15px; font-weight: 650; line-height: 1.4; margin-bottom: 10px; overflow-wrap: anywhere; }
.bv-tp-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.bv-tp-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; border-top: 1px dashed var(--line); }
.bv-tp-kv em { font-style: normal; color: var(--muted-2); flex: none; }
.bv-tp-kv span { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.bv-tp-acts { margin: 14px 0 8px; }
/* biz9：断点降级——<1280 中右合并为一栏；<1080 上下堆叠 */
@media (max-width: 1280px) {
  .bv-col-l { flex: 0 0 300px; width: 300px; min-width: 260px; }
  .bv-col-rm { flex-direction: column; }
  .bv-col-m { flex: none; width: 100%; position: static; max-height: none; }
  .bv-col-r { flex: none; width: 100%; max-width: none; position: static; max-height: none; }
}
@media (max-width: 1080px) {
  .bv-split { flex-direction: column; }
  .bv-col-l { flex: none; width: 100%; max-width: none; min-width: 0; }
}

/* ==================== biz10（2026-10-08）：①排版可辨认+状态色 ②③分栏拖宽/折叠 ④⑤⑥⑧ ==================== */
/* 分栏条（左｜中、中｜右）：拖宽＋中线按钮折叠，与 t10 侧栏/详情同款手感 */
.bv-col-l { flex: 0 0 auto; width: 340px; min-width: 240px; max-width: none; }
.bv-col-r { flex: 0 0 auto; width: 320px; min-width: 260px; max-width: none; }
.bv-edge { flex: none; align-self: stretch; width: 11px; position: relative; cursor: col-resize; z-index: 3; }
.bv-edge::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); border-radius: 2px; background: transparent; transition: background .15s; }
.bv-edge:hover::before { background: var(--brand-l2); }
body.bv-colresizing { cursor: col-resize; user-select: none; }
body.bv-colresizing .bv-edge::before { background: var(--brand); }
.bv-edge-btn { position: absolute; left: 50%; top: 60px; transform: translateX(-50%); width: 18px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text-2); box-shadow: var(--shadow-s); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1; font-size: 13px; padding: 0; }
.bv-edge-btn:hover { color: var(--brand-d); border-color: var(--brand-l2); background: var(--brand-l); }
/* 左栏条目：可辨认（名两行内完整优先 + 悬停全名） */
.bv-item { flex-direction: column; align-items: stretch; gap: 3px; }
.bv-item-top { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.bv-item-top b { flex: 1 1 auto; min-width: 0; max-width: none; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; font-size: 14px; }
.bv-item-top .chip { flex: none; }
.bv-item-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 状态色（一状态一色） */
.chip.m1 { background: #eaf2ff; color: #1d4ed8; border-color: #cddffb; }
.chip.m2 { background: #f0ecfe; color: #6d28d9; border-color: #ddd3fb; }
.chip.m3 { background: #e6f7f1; color: #0f766e; border-color: #c5ece0; }
.chip.m4 { background: #fdf1e3; color: #b45309; border-color: #f6dcb8; }
.chip.m5 { background: #eef1f5; color: #64748b; border-color: #dbe3ee; }
/* 关联单据：小节头 + 单据行 */
.bv-subhead { font-size: 12px; font-weight: 600; color: var(--muted-2); margin: 8px 0 2px; }
.bv-subhead a { color: var(--brand-d); text-decoration: none; }
.bv-bills { display: flex; flex-direction: column; }
.bv-bill { display: flex; gap: 8px; align-items: baseline; padding: 5px 4px; border-top: 1px dashed var(--line); color: inherit; text-decoration: none; border-radius: 6px; }
.bv-bill:hover { background: var(--brand-l); }
.bv-bill .tt { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-bill .meta { flex: none; font-size: 12px; color: var(--muted-2); max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 任务索引提示 */
.bv-idx-hint { margin: -2px 0 6px; }
/* 右栏任务详情（与任务页同观感） */
.bv-tp-head { margin-bottom: 8px; }
.bv-tp-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.bv-tp-grid { display: flex; flex-direction: column; }
.bv-tp-biz { margin: 10px 0 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; }
.bv-tp-biz em { font-style: normal; font-size: 12px; color: var(--muted-2); display: block; margin-bottom: 4px; }
.bv-tp-bizchip { text-decoration: none; }
.bv-tp-bizsub { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.bv-tp-sub { font-size: 12px; font-weight: 600; color: var(--muted-2); margin: 10px 0 4px; }
.bv-tp-fields { display: flex; flex-direction: column; }
.bv-tp-f { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-top: 1px dashed var(--line); }
.bv-tp-f em { font-style: normal; color: var(--muted-2); flex: none; }
.bv-tp-f span { text-align: right; min-width: 0; overflow-wrap: anywhere; }
/* 页面内录入 → 存回 */
.bv-noteedit { display: flex; gap: 8px; margin-top: 10px; }
.bv-noteedit .input { flex: 1 1 auto; min-width: 0; }
/* 断点（置于末尾以压过基础规则） */
@media (max-width: 1280px) {
  .bv-col-l { flex: 0 0 300px; width: 300px; min-width: 260px; }
  .bv-edge-r { display: none; }
}
@media (max-width: 1080px) {
  .bv-split { flex-direction: column; }
  .bv-col-l { flex: none; width: 100%; max-width: none; min-width: 0; }
  .bv-edge { display: none; }
}


/* ===== 228：升格链（备忘 ↔ 任务 互链芯片） ===== */
.m3-cp { margin-top: 6px; font-size: 12.5px; color: #2b6cb0; display: flex; align-items: center; gap: 5px; min-width: 0; }
.m3-cp svg { width: 13px; height: 13px; flex: 0 0 auto; }
.m3-cp a { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(43, 108, 176, .45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m3-cp a:hover { border-bottom-style: solid; }
.m3-bizsel { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.m3-bizsel[hidden] { display: none; }


/* ===== 228b：业务行小芯片（任务表/看板）＋今天页业务标 ===== */
.m2-chip.m2-bizmini { cursor: pointer; max-width: 190px; }
.m2-chip.m2-bizmini .bzn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.m2-chip.m2-bizmini:hover { text-decoration: underline; }
.m2i-biz { color: #1d4ed8; }
html[data-theme="dark"] .m2i-biz { color: #9ec2ff; }
:root:not([data-theme="light"]) .m2i-biz { color: #9ec2ff; }
