/* ============================================================
   board-v5.css — 项目总览 v5（组合总览页 + 全局精修）
   依赖 board-v3.css / board-v4.css 的 token；本层只叠加，不重定义变量
   ============================================================ */

/* ---------- 1. 页面骨架 ---------- */
.ovx{
  max-width:1720px;margin:0 auto;padding:0 0 24px;
  display:flex;flex-direction:column;gap:14px;
}

/* ---------- 2. 页头：标题 + 口径说明 + 工具条 ---------- */
.ovx-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}
.ovx-title{
  margin:0;font-size:20px;line-height:1.2;font-weight:650;
  color:var(--text-primary);letter-spacing:.2px;
}
.ovx-sub{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  margin-top:6px;font-size:12px;color:var(--text-muted);
}
.ovx-sub-item{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap}
.ovx-sub-item b{font-size:12.5px;font-weight:600;color:var(--text-secondary)}
.ovx-sep{color:var(--border-strong);user-select:none}
.ovx-sub-muted{color:var(--text-muted)}

/* 一级归属分段控件（公司项目 / 个人项目，无动画） */
.ovx-head-titlerow{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.ovx-scope{
  display:inline-flex;align-items:center;gap:2px;padding:2px;
  background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius);
}
.ovx-seg{
  height:26px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;
  font-size:12px;font-family:inherit;font-weight:500;cursor:pointer;
  color:var(--text-secondary);background:transparent;border:0;
  border-radius:calc(var(--radius) - 2px);
}
.ovx-seg:hover{color:var(--text-primary);background:var(--bg-hover)}
.ovx-seg i{font-style:normal;font-size:11px;font-weight:600;color:var(--text-muted);font-variant-numeric:tabular-nums}
.ovx-seg.on{background:var(--bg-card);color:var(--text-primary);font-weight:600;box-shadow:inset 0 0 0 1px var(--accent-line)}
.ovx-seg.on i{color:var(--a-600)}

.ovx-head-actions{display:flex;align-items:center;gap:8px}
.ovx-search{
  display:flex;align-items:center;gap:6px;
  height:32px;padding:0 10px;min-width:220px;
  background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);
  transition:border-color .12s ease,box-shadow .12s ease;
}
.ovx-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}
.ovx-search-ico{font-size:13px;color:var(--text-muted);line-height:1}
.ovx-search input{
  flex:1;min-width:0;height:100%;border:0;background:transparent;outline:none;
  font-size:12.5px;color:var(--text-primary);font-family:inherit;
}
.ovx-search input::placeholder{color:var(--text-muted)}
.ovx-btn{
  height:32px;padding:0 12px;display:inline-flex;align-items:center;gap:6px;
  font-size:12.5px;font-family:inherit;cursor:pointer;
  color:var(--text-secondary);background:var(--bg-card);
  border:1px solid var(--border);border-radius:var(--radius);
}
.ovx-btn:hover{background:var(--bg-hover);color:var(--text-primary);border-color:var(--border-strong)}

/* ---------- 3. KPI 指标条 ---------- */
.ovx-kpis{
  display:grid;gap:10px;
  grid-template-columns:repeat(6,minmax(0,1fr));
}
.ovx-kpi{
  position:relative;padding:11px 13px 10px;
  background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);
  overflow:hidden;
}
.ovx-kpi::before{
  content:'';position:absolute;left:0;top:0;bottom:0;width:3px;
  background:var(--n-300);
}
.ovx-kpi.tone-a::before{background:var(--a-600)}
.ovx-kpi.tone-g::before{background:var(--green)}
.ovx-kpi.tone-r::before{background:var(--red)}
.ovx-kpi.tone-y::before{background:var(--yellow)}
.ovx-kpi-label{
  font-size:11px;font-weight:600;letter-spacing:.4px;
  color:var(--text-muted);text-transform:none;
}
.ovx-kpi-val{
  margin-top:3px;font-size:25px;line-height:1.15;font-weight:650;
  color:var(--text-primary);font-variant-numeric:tabular-nums;
}
.ovx-kpi-val small{font-size:12px;font-weight:500;color:var(--text-muted);margin-left:2px}
.ovx-kpi.tone-r .ovx-kpi-val{color:var(--red)}
.ovx-kpi.tone-y .ovx-kpi-val{color:var(--yellow)}
.ovx-kpi-bar{
  margin-top:7px;height:4px;border-radius:2px;background:rgba(120,135,150,.2);overflow:hidden;
}
.ovx-kpi-bar > i{display:block;height:100%;border-radius:2px;background:var(--a-600)}
.ovx-kpi.tone-g .ovx-kpi-bar > i{background:var(--green)}
.ovx-kpi.tone-r .ovx-kpi-bar > i{background:var(--red)}
.ovx-kpi.tone-y .ovx-kpi-bar > i{background:var(--yellow)}
.ovx-kpi-sub{margin-top:6px;font-size:11px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ---------- 4. 主区 + 右轨 ---------- */
.ovx-cols{display:grid;grid-template-columns:minmax(0,1fr) 352px;gap:14px;align-items:start}
.ovx-panel{
  background:var(--bg-primary);border:1px solid var(--border);
  border-radius:var(--radius-lg);overflow:hidden;
}
.ovx-panel-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  padding:10px 14px;border-bottom:1px solid var(--border);
  background:var(--bg-secondary);
}
.ovx-panel-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--text-primary)}
.ovx-count{
  display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;
  padding:0 5px;border-radius:9px;
  font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;
  color:var(--text-secondary);background:rgba(120,135,150,.16);
}
.ovx-chips{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.ovx-chip{
  padding:3px 9px;border-radius:999px;cursor:pointer;
  font-size:11.5px;color:var(--text-secondary);
  background:transparent;border:1px solid var(--border);
}
.ovx-chip:hover{background:var(--bg-hover);color:var(--text-primary)}
.ovx-chip.on{background:var(--accent-bg);border-color:var(--accent-line);color:var(--accent-text);font-weight:600}

/* ---------- 5. 阶段分组 ---------- */
.ovx-groups{padding:12px 14px 14px;display:flex;flex-direction:column;gap:14px}
.ovx-group-head{
  display:flex;align-items:center;gap:8px;margin-bottom:9px;
}
.ovx-group-mark{width:3px;height:13px;border-radius:2px;background:var(--n-400)}
.ovx-group-mark.tone-a{background:var(--a-600)}
.ovx-group-mark.tone-g{background:var(--green)}
.ovx-group-mark.tone-y{background:var(--yellow)}
.ovx-group-mark.tone-n{background:var(--n-400)}
.ovx-group-label{font-size:12.5px;font-weight:600;color:var(--text-primary);letter-spacing:.2px}
.ovx-group-hint{margin-left:auto;font-size:11px;color:var(--text-muted)}
.ovx-cards{display:grid;gap:11px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}

/* ---------- 6. 项目卡 ---------- */
.ovx-card{
  position:relative;display:flex;flex-direction:column;
  background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);
  cursor:pointer;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,32,.04);
  transition:border-color .12s ease,box-shadow .12s ease;
}
.ovx-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow)}
.ovx-card:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.ovx-card-accent{position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--n-300)}
.ovx-card-accent.tone-a{background:var(--a-600)}
.ovx-card-accent.tone-g{background:var(--green)}
.ovx-card-accent.tone-y{background:var(--yellow)}
.ovx-card-accent.tone-n{background:var(--n-300)}
.ovx-card.is-stale .ovx-card-name::after{
  content:'久未更新';margin-left:6px;padding:2px 5px;border-radius:3px;vertical-align:1px;
  font-size:9.5px;line-height:1;font-weight:500;color:var(--text-muted);background:rgba(120,135,150,.18);
}

.ovx-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px 0 14px}
.ovx-card-tags{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.ovx-badge{
  display:inline-flex;align-items:center;height:18px;padding:0 6px;border-radius:4px;
  font-size:10.5px;line-height:1;font-weight:600;letter-spacing:.2px;white-space:nowrap;
  color:var(--text-secondary);background:rgba(120,135,150,.16);
}
.ovx-badge.tone-a{color:var(--accent-text);background:rgba(31,78,121,.13)}
.ovx-badge.tone-g{color:#2f8f56;background:rgba(47,143,86,.13)}
.ovx-badge.tone-y{color:#8a6100;background:rgba(214,158,20,.15)}
.ovx-badge.tone-n{color:var(--text-muted);background:rgba(120,135,150,.14)}
html[data-theme="dark"] .ovx-badge.tone-a{background:rgba(111,163,210,.16)}
html[data-theme="dark"] .ovx-badge.tone-g{color:var(--green);background:rgba(95,208,138,.14)}
html[data-theme="dark"] .ovx-badge.tone-y{color:var(--yellow);background:rgba(240,184,66,.14)}
.ovx-badge.tone-plain{background:transparent;color:var(--text-muted);padding:0 2px}
.ovx-card-client{
  font-size:11px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px;
}
.ovx-card-go{font-size:15px;line-height:1;color:var(--text-muted);flex:none}
.ovx-card:hover .ovx-card-go{color:var(--accent)}

.ovx-card-name{
  margin:7px 12px 0 14px;font-size:14.5px;line-height:1.35;font-weight:650;
  color:var(--text-primary);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.ovx-card-phase{
  margin:4px 12px 0 14px;font-size:11.5px;line-height:1.5;color:var(--text-secondary);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  min-height:34px;
}

.ovx-card-prog{position:relative;margin:9px 12px 0 14px}
.ovx-card-prog-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:5px}
.ovx-card-prog-head span{font-size:10.5px;color:var(--text-muted);letter-spacing:.3px}
.ovx-card-prog-head b{font-size:11.5px;font-weight:600;color:var(--text-secondary);font-variant-numeric:tabular-nums}
.ovx-card-prog-num{display:inline-flex;align-items:baseline;gap:7px}
.ovx-bar{height:5px;border-radius:3px;background:rgba(120,135,150,.2);overflow:hidden}
.ovx-bar > i{display:block;height:100%;border-radius:3px;background:var(--n-400)}
.ovx-bar > i.tone-a{background:var(--a-600)}
.ovx-bar > i.tone-g{background:var(--green)}
.ovx-bar > i.tone-y{background:var(--yellow)}
.ovx-card-pct{
  font-size:11px;font-weight:600;font-style:normal;color:var(--text-secondary);
  font-variant-numeric:tabular-nums;
}

.ovx-card-metrics{
  display:grid;grid-template-columns:repeat(4,1fr);
  margin:11px 12px 0 14px;padding:8px 0;border-top:1px solid var(--border);
}
.ovx-metric{display:flex;flex-direction:column;gap:1px;padding-left:9px;border-left:1px solid var(--border)}
.ovx-metric:first-child{padding-left:0;border-left:0}
.ovx-metric b{font-size:14px;line-height:1.2;font-weight:650;color:var(--text-primary);font-variant-numeric:tabular-nums}
.ovx-metric > span{font-size:10px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ovx-metric.tone-danger b{color:var(--red)}
.ovx-metric.tone-warn b{color:var(--yellow)}

.ovx-card-foot{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin-top:auto;padding:8px 12px 9px 14px;
  border-top:1px solid var(--border);background:var(--bg-secondary);
}
.ovx-due{font-size:11px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ovx-due.muted{color:var(--text-muted)}
.ovx-due.danger{color:var(--red);font-weight:600}
.ovx-card-upd{font-size:10.5px;color:var(--text-muted);white-space:nowrap;flex:none}
/* ---------- 7. 右轨 ---------- */
.ovx-rail{display:flex;flex-direction:column;gap:12px;position:sticky;top:12px;align-self:start}
.ovx-rail > .ovx-panel{flex:0 0 auto}
.ovx-rail-body{padding:6px 0 8px}
.ovx-row{
  display:flex;align-items:center;gap:9px;
  padding:8px 14px;cursor:pointer;border-left:2px solid transparent;
}
.ovx-row:hover{background:var(--bg-hover);border-left-color:var(--accent)}
.ovx-row-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.ovx-row-title{
  font-size:12.5px;line-height:1.35;color:var(--text-primary);font-weight:500;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ovx-row-tags{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.ovx-row-meta{display:flex;align-items:center;gap:8px;font-size:10.5px;color:var(--text-muted);flex-wrap:wrap}
.ovx-row-meta .tone-red{color:var(--red);font-weight:600}
.ovx-row-meta .tone-orange{color:var(--orange);font-weight:600}
.ovx-row-go{font-size:14px;line-height:1;color:var(--border-strong);flex:none}
.ovx-row:hover .ovx-row-go{color:var(--accent)}
.ovx-row-todo{cursor:default}
.ovx-row-todo:hover{border-left-color:transparent;background:transparent}
.ovx-dot{width:6px;height:6px;border-radius:50%;flex:none;background:var(--n-400)}
.ovx-dot.tone-red{background:var(--red)}
.ovx-dot.tone-orange{background:var(--orange)}
.ovx-dot.tone-gray{background:var(--n-400)}
.ovx-tag{
  display:inline-flex;align-items:center;height:16px;padding:0 5px;border-radius:3px;
  font-size:10px;font-weight:600;line-height:1;
}
.ovx-tag.t-red{color:var(--red);background:var(--red-bg)}
.ovx-tag.t-yellow{color:#8a6100;background:var(--yellow-bg)}
html[data-theme="dark"] .ovx-tag.t-yellow{color:var(--yellow)}
.ovx-tag.t-orange{color:var(--orange);background:var(--orange-bg)}
.ovx-tag.t-gray{color:var(--text-muted);background:rgba(120,135,150,.16)}
.ovx-more{
  font-size:11px;font-weight:600;color:var(--accent);cursor:pointer;white-space:nowrap;
}
.ovx-more:hover{text-decoration:underline}
.ovx-empty{padding:14px;font-size:11.5px;color:var(--text-muted);text-align:center}

/* 成员负载 */
.ovx-member{padding:7px 14px}
.ovx-member-top{display:flex;align-items:baseline;gap:6px;margin-bottom:4px}
.ovx-member-name{font-size:12px;color:var(--text-primary);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ovx-member-role{font-size:10px;color:var(--text-muted);flex:none}
.ovx-member-num{margin-left:auto;font-size:11.5px;font-weight:600;color:var(--text-secondary);font-variant-numeric:tabular-nums}
.ovx-member-bar{height:4px;border-radius:2px;background:rgba(120,135,150,.2);overflow:hidden}
.ovx-member-bar > i{display:block;height:100%;border-radius:2px;background:var(--a-500)}

/* ---------- 8. 空态 / 骨架 ---------- */
.ovx-none{padding:38px 16px;text-align:center;font-size:13px;color:var(--text-muted)}
.ovx-skeleton{display:flex;flex-direction:column;gap:14px;padding:2px 0 10px}
.ovx-sk-head{height:46px;border-radius:var(--radius-lg);background:var(--n-50);border:1px solid var(--border)}
html[data-theme="dark"] .ovx-sk-head{background:var(--n-800)}
.ovx-sk-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.ovx-sk-kpi{height:82px;border-radius:var(--radius-lg);background:var(--n-50);border:1px solid var(--border)}
html[data-theme="dark"] .ovx-sk-kpi{background:var(--n-800)}
.ovx-sk-cols{display:grid;grid-template-columns:minmax(0,1fr) 352px;gap:14px}
.ovx-sk-main{height:520px;border-radius:var(--radius-lg);background:var(--n-50);border:1px solid var(--border)}
.ovx-sk-rail{height:520px;border-radius:var(--radius-lg);background:var(--n-50);border:1px solid var(--border)}
html[data-theme="dark"] .ovx-sk-main,html[data-theme="dark"] .ovx-sk-rail{background:var(--n-800)}

/* ---------- 8b. 布局兜底（JS 里用到的容器修饰类） ---------- */
.ovx-head-main{min-width:0}
.ovx-panel-main,.ovx-panel-rail{min-width:0}

/* ---------- 9. 响应式 ---------- */
@media (max-width:1440px){
  .ovx-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ovx-sk-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1180px){
  .ovx-cols{grid-template-columns:minmax(0,1fr)}
  .ovx-sk-cols{grid-template-columns:minmax(0,1fr)}
  .ovx-rail{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
  .ovx-sk-rail{display:none}
}
@media (max-width:820px){
  .ovx{padding:0 0 24px}
  .ovx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ovx-sk-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ovx-rail{grid-template-columns:minmax(0,1fr)}
  .ovx-cards{grid-template-columns:minmax(0,1fr)}
  .ovx-head-actions{width:100%}
  .ovx-search{flex:1;min-width:0}
}
/* ============================================================
   10. 全局壳层精修（侧栏分组 / 导航选中 / 顶栏）
   ============================================================ */
.sidebar-nav{display:flex;flex-direction:column;gap:1px}
.nav-group-label{
  padding:14px 12px 5px;font-size:10px;font-weight:600;
  letter-spacing:.9px;color:var(--text-muted);opacity:.85;
}
.nav-group-label:first-child{padding-top:4px}
.nav-item{position:relative}
.nav-item.active::before{
  content:'';position:absolute;left:0;top:7px;bottom:7px;width:2px;
  border-radius:0 2px 2px 0;background:var(--accent);
}
.sidebar-footer .nav-item{font-size:12.5px}
.version-info{border-top:0 !important;margin-top:2px !important;padding:6px 12px 2px !important;line-height:1.5}
/* 2026-11-14 IA 修复#2：页脚「vX | 范围名 · 页面名」单行省略。
   原规则只有 white-space:nowrap、没有 overflow，长项目名（如「国元元信二期（信创适配）」）
   被侧栏硬切且无 ellipsis。改这里统一：块级定宽 + 单行 + 省略号（≤640px 时 v3 仍隐藏该行，图标条放不下）。 */
.version-info{max-width:100%;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 顶栏：面包屑与标题的层次 */
.topbar{gap:10px}
.page-title{letter-spacing:.2px}
.topbar-crumb{
  display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 9px;
  font-size:12px;color:var(--text-secondary);cursor:pointer;
  background:transparent;border:1px solid var(--border);border-radius:var(--radius-sm);
}
.topbar-crumb:hover{background:var(--bg-hover);color:var(--text-primary);border-color:var(--border-strong)}

/* ================================================================
   12. 全局视图皮：列表头 / 看板列 / 任务卡 / 表格 / 空态
   —— 这些视图的样式大量内联在 JS 里，故此处用 !important 覆盖
   ================================================================ */
/* 12.1 视图头（.list-header 在任务/团队/快照/风险等页复用） */
.list-header{
  margin-bottom:14px !important;
  align-items:flex-end !important;
  gap:12px;
  flex-wrap:wrap;
  padding-bottom:12px;
  border-bottom:1px solid var(--border);
}
.list-header h2{
  margin:0 !important;
  font-size:19px !important;line-height:1.3;font-weight:650 !important;
  letter-spacing:-.2px;color:var(--text-primary);
}
.list-header > div > span{font-size:12px !important;color:var(--text-muted) !important}
.list-header button{
  height:30px;padding:0 13px !important;
  font-size:12.5px !important;font-weight:500;
  border-radius:var(--radius-sm) !important;
  border:1px solid var(--accent) !important;
  background:var(--accent) !important;color:#fff !important;
  cursor:pointer;transition:background .12s ease;
}
.list-header button:hover{background:var(--a-700) !important;border-color:var(--a-700) !important}
.list-header button.btn-refresh{
  background:transparent !important;color:var(--text-secondary) !important;
  border-color:var(--border) !important;
}
.list-header button.btn-refresh:hover{background:var(--bg-hover) !important;color:var(--text-primary) !important}

/* 12.2 看板四列（内联 background/padding/border-top 全被覆盖） */
.board-columns{gap:12px !important;align-items:start;padding-bottom:4px !important}
.board-column{
  display:flex !important;flex-direction:column;
  background:var(--bg-primary) !important;
  border-radius:var(--radius-lg) !important;
  padding:0 !important;
  border:1px solid var(--border) !important;
  border-top-width:3px !important;
  min-height:0;
}
.column-header{
  margin:0 !important;padding:9px 12px !important;
  border-bottom:1px solid var(--border) !important;
  background:var(--bg-secondary);
  border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  flex-wrap:nowrap;
}
.column-header > span:first-child{font-size:12.5px !important;font-weight:600 !important;letter-spacing:.2px}
.column-header > span:nth-child(2){
  min-width:22px;text-align:center;
  border:1px solid var(--border);
  background:var(--bg-card) !important;
  font-variant-numeric:tabular-nums;
}
.column-cards{
  display:flex;flex-direction:column;gap:9px;
  padding:10px !important;
  min-height:120px !important;
  flex:1;
}
/* 空列占位：虚线框，不再是一大片空白 */
.column-cards > div[style*="text-align:center"]{
  margin:0 !important;
  padding:24px 10px !important;
  border:1px dashed var(--border);
  border-radius:var(--radius);
  color:var(--text-muted) !important;
  font-size:11.5px !important;line-height:1.6;
  background:transparent;
}

/* 12.3 任务卡 */
.task-card{
  background:var(--bg-card) !important;
  border:1px solid var(--border) !important;
  border-radius:var(--radius) !important;
  padding:10px 11px !important;
  box-shadow:0 1px 2px rgba(16,24,32,.05);
  transition:border-color .12s ease,box-shadow .12s ease;
}
.task-card:hover{border-color:var(--border-strong) !important;box-shadow:var(--shadow)}

/* 12.4 表格（团队/属性/审计等内联表格） */
.content-area table{border-collapse:collapse}
.content-area table thead tr{background:var(--bg-secondary) !important}
.content-area table thead th{
  font-size:11.5px !important;font-weight:600;letter-spacing:.3px;
  color:var(--text-muted) !important;text-transform:none;
  padding:9px 12px !important;border-bottom:1px solid var(--border);
}
.content-area table tbody td{
  padding:10px 12px !important;font-size:12.5px !important;
  border-bottom:1px solid var(--border);
}
.content-area table tbody tr:last-child td{border-bottom:0}
.content-area table tbody tr:hover{background:var(--bg-hover)}

/* 12.5 空态 / 提示块 */
.empty{
  border:1px dashed var(--border);
  border-radius:var(--radius);
  padding:28px 16px;
  color:var(--text-muted);
  font-size:12.5px;line-height:1.7;
  background:transparent;
}
/* 12.6 快照行 */
.snapshot-items{
  display:grid;gap:9px;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
}
.snapshot-item{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:11px 14px !important;
  background:var(--bg-card);
  border:1px solid var(--border);border-radius:var(--radius);
}
.snapshot-item + .snapshot-item{margin-top:8px}
.snapshot-name{font-size:13px;font-weight:600;color:var(--text-primary)}
.snapshot-date{font-size:11.5px;color:var(--text-muted);margin-top:2px}
.snapshot-actions{margin:0 0 12px}
/* 12.7 组合结构（右轨分布条） */
.ovx-dist-sec{
  font-size:10px;font-weight:600;letter-spacing:.7px;color:var(--text-muted);
  text-transform:none;margin:2px 0 7px;
}
.ovx-dist-sec + .ovx-dist + .ovx-dist-sec{margin-top:14px}
.ovx-dist{display:flex;flex-direction:column;gap:7px;margin-bottom:2px}
.ovx-dist-row{display:flex;align-items:center;gap:8px}
.ovx-dist-label{
  flex:none;width:66px;font-size:11.5px;color:var(--text-secondary);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ovx-dist-bar{flex:1;height:5px;border-radius:3px;background:rgba(120,135,150,.2);overflow:hidden}
.ovx-dist-bar > i{display:block;height:100%;border-radius:3px;background:var(--n-400)}
.ovx-dist-bar > i.tone-a{background:var(--a-600)}
.ovx-dist-bar > i.tone-g{background:var(--green)}
.ovx-dist-bar > i.tone-y{background:var(--yellow)}
.ovx-dist-bar > i.tone-r{background:var(--red)}
.ovx-rail > .ovx-panel{background:var(--bg-card)}

/* 12.8 属性管理（tf-*）指标块 */
.tf-metric{
  background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:12px 14px;position:relative;overflow:hidden;
}
.tf-metric::before{
  content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--a-600);
}
.tf-metric-value{font-size:25px !important;line-height:1.15;font-weight:650;color:var(--text-primary);font-variant-numeric:tabular-nums}
.tf-metric-label{margin-top:4px;font-size:11.5px;color:var(--text-muted)}

.ovx-dist-num{
  flex:none;min-width:18px;text-align:right;
  font-size:11.5px;font-weight:600;color:var(--text-primary);font-variant-numeric:tabular-nums;
}


/* ==========================================================================
   13 驾驶舱精修（v3.7.0）
   13.1 项目头 meta → 胶囊；13.2 阶段轨道压缩；13.3 里程碑清单（替代鱼骨图）
   ========================================================================== */

/* 13.1 项目头 */
.cockpit-head { align-items: flex-start; gap: 14px; }
.cockpit-title { font-size: 20px; letter-spacing: -.2px; }
.cockpit-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cockpit-meta > span {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 6px;
  background: rgba(120,135,150,.10);
  color: var(--text-secondary); font-size: 11.5px; line-height: 1.6;
}
.cockpit-meta > span strong { color: var(--text-primary); font-weight: 650; font-size: 12px; }
html[data-theme="dark"] .cockpit-meta > span { background: rgba(120,135,150,.14); }

/* 13.2 阶段轨道 */
.cockpit-track-card { padding: 14px 18px 12px; }
.cockpit-step-dot { width: 22px; height: 22px; font-size: 11.5px; }
.cockpit-step-label { margin-top: 5px; font-size: 11.5px; }
.cockpit-track-note { margin-top: 10px; font-size: 11.5px; color: var(--text-muted); }

/* 13.3 里程碑清单 */
.msboard-sum {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 0 2px 9px; margin-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  font-size: 12px; color: var(--text-secondary);
}
.msboard-sum b { color: var(--text-primary); font-size: 13px; font-weight: 700; }
.msboard-over { color: var(--red); font-weight: 600; }
.msboard-idle { color: var(--text-muted); }
.msboard-hint { margin-left: auto; font-size: 11px; color: var(--text-muted); }

.msboard-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
@media (max-width: 1100px) { .msboard-list { grid-template-columns: minmax(0, 1fr); } }

.msrow {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) 46px 74px;
  align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px;
  font-size: 12.5px;
}
.msrow:hover { background: var(--bg-hover); }
.msrow-dot {
  width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; line-height: 1;
  border: 1.5px solid var(--border-strong);
  color: transparent; background: transparent;
}
.msrow.tone-done .msrow-dot { background: var(--a-600); border-color: var(--a-600); color: #fff; }
.msrow.tone-over .msrow-dot { background: var(--red); border-color: var(--red); color: #fff; }
.msrow.tone-soon .msrow-dot { border-color: var(--yellow); border-style: dashed; }
.msrow.tone-idle .msrow-dot { border-style: dashed; border-color: var(--border); }

.msrow-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-primary); }
.msrow.tone-done .msrow-name { color: var(--text-secondary); }
.msrow-date { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; text-align: right; }
.msrow-tag {
  justify-self: end;
  padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; line-height: 1.7; white-space: nowrap;
  background: rgba(120,135,150,.12); color: var(--text-secondary);
}
.msrow.tone-done .msrow-tag { background: rgba(34,153,84,.12); color: var(--green); }
.msrow.tone-over .msrow-tag { background: rgba(214,64,64,.13); color: var(--red); }
.msrow.tone-soon .msrow-tag { background: rgba(196,140,26,.15); color: var(--yellow); }
html[data-theme="dark"] .msrow-tag { background: rgba(120,135,150,.16); }
html[data-theme="dark"] .msrow.tone-done .msrow-tag { background: rgba(52,190,110,.16); color: #4ecb8a; }
html[data-theme="dark"] .msrow.tone-over .msrow-tag { background: rgba(240,90,90,.16); color: #f0736d; }
html[data-theme="dark"] .msrow.tone-soon .msrow-tag { background: rgba(226,168,45,.16); color: #e2b455; }

/* 13.4 图表收敛 + 今日要处理 */
.cockpit-card canvas { max-height: 300px; }
.cockpit-card .section-header { margin-bottom: 8px; }
.cockpit-duty { margin-top: 12px; }
.cockpit-table th { font-size: 11.5px; }
.cockpit-table td { font-size: 12.5px; padding-top: 7px; padding-bottom: 7px; }

/* ==========================================================================
   14 全局搜索 / 快照卡 / 需求空态（v3.7.0）
   ========================================================================== */

/* 14.1 顶栏搜索入口 */
.topbar-search { position: relative; }
.topbar-search::after {
  content: '⌘K'; position: absolute; right: -2px; bottom: 0;
  font-size: 8px; color: var(--text-muted); letter-spacing: -.3px;
}

/* 14.2 搜索浮层 */
.gs-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 14, 20, .46);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
}
.gs-mask[hidden] { display: none; }
.gs-box {
  width: 640px; max-width: calc(100vw - 32px);
  max-height: 70vh; display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}
.gs-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.gs-ico { font-size: 15px; opacity: .8; }
.gs-input-row input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--text-primary); font-size: 14px; font-family: inherit;
}
.gs-kbd {
  font-size: 10px; color: var(--text-muted);
  border: 1px solid var(--border-strong); border-radius: 4px;
  padding: 1px 5px; background: var(--bg-secondary);
}
.gs-body { overflow-y: auto; padding: 6px 0; }
.gs-hint { padding: 22px 16px; text-align: center; color: var(--text-muted); font-size: 12.5px; }
.gs-group { padding: 4px 0 6px; }
.gs-group-head {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px 4px; font-size: 11px; font-weight: 600;
  color: var(--text-muted); letter-spacing: .04em;
}
.gs-group-n {
  font-weight: 500; font-size: 10.5px; color: var(--text-secondary);
  background: rgba(120,135,150,.16); border-radius: 999px; padding: 0 6px;
}
.gs-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 14px; border: 0; background: transparent;
  text-align: left; cursor: pointer; font-family: inherit; color: inherit;
}
.gs-row:hover, .gs-row:focus-visible { background: var(--bg-hover); outline: none; }
.gs-row-ico { font-size: 13px; flex: none; width: 18px; text-align: center; opacity: .9; }
.gs-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gs-row-title { font-size: 13px; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-row-meta { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-row-go { font-size: 11px; color: var(--accent-text); flex: none; opacity: 0; }
.gs-row:hover .gs-row-go { opacity: 1; }
.gs-foot {
  display: flex; justify-content: space-between;
  padding: 7px 14px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-muted); background: var(--bg-secondary);
}

/* 14.2.1 搜索命中：关键词高亮 + 来源标签（2026-11-14 D6） */
.gs-row-title mark {
  background: rgba(255, 196, 0, .34); color: inherit;
  padding: 0 1px; border-radius: 2px;
}
html[data-theme="dark"] .gs-row-title mark { background: rgba(255, 196, 0, .26); }
.gs-hit {
  display: inline-flex; align-items: center; gap: 4px;
  margin-right: 6px; font-size: 10px; color: var(--text-muted); vertical-align: 1px;
}
.gs-hit-tag {
  padding: 0 5px; border-radius: 999px; font-size: 10px; line-height: 1.6;
  color: var(--accent-text); background: rgba(31, 78, 121, .10);
  border: 1px solid rgba(31, 78, 121, .18);
}
html[data-theme="dark"] .gs-hit-tag {
  background: rgba(108, 140, 255, .14); border-color: rgba(108, 140, 255, .24);
}
.gs-more { padding: 4px 14px 8px 42px; font-size: 10.5px; color: var(--text-muted); }

/* 14.3 标题行右侧动作区 */
.list-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.list-header-hint { font-size: 11.5px; color: var(--text-muted); }

/* 14.4 快照卡 */
.snapshot-item { align-items: center; }
.snapshot-main { min-width: 0; }
.snapshot-name { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.snapshot-badge {
  font-size: 10px; padding: 0 6px; border-radius: 999px; line-height: 1.7;
  background: rgba(120,135,150,.16); color: var(--text-secondary); font-weight: 500;
}
.snapshot-badge.is-auto { background: rgba(31,78,121,.12); color: var(--accent-text); }
.snapshot-date { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
.snapshot-rel { color: var(--text-muted); opacity: .8; }

/* 14.5 需求空态 */
.req-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 24px; margin-top: 12px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: var(--bg-secondary); text-align: center;
}
.req-empty-ico { font-size: 30px; opacity: .55; margin-bottom: 10px; }
.req-empty-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.req-empty-desc { margin-top: 7px; font-size: 12px; line-height: 1.85; color: var(--text-muted); max-width: 460px; }

/* 14.6 日程单层工具条 */
.schedule-view .list-header { margin-bottom: 12px; }
.schedule-tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; }
.schedule-tab {
  padding: 5px 12px; border: 0; border-radius: 6px; background: transparent;
  color: var(--text-secondary); font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.schedule-tab:hover { color: var(--text-primary); }
.schedule-tab.on { background: var(--bg-card); color: var(--text-primary); font-weight: 600; box-shadow: var(--shadow); }

/* 14.7 需求空态去外框（避免双层卡片） */
.req-board.is-empty { background: transparent; border: 0; padding: 0; }
.req-board .req-title { font-size: 19px; letter-spacing: -.2px; }

/* 14.8 顶栏搜索键位提示收敛 */
.topbar-search::after { right: -7px; bottom: -3px; opacity: .5; }

/* ============================================================
   15 信息密度收口（2026-11-12 批3）
   ============================================================ */
/* 15.1 任务看板：四列等高、列内滚动、去掉横向滚动条 */
.task-board{max-width:none}
.board-columns{align-items:stretch !important}
.board-column{max-height:calc(100vh - 258px);min-height:320px}
.column-cards{
  max-height:none !important;
  overflow-y:auto !important;overflow-x:hidden !important;
  overscroll-behavior:contain;
}
.column-cards::-webkit-scrollbar{width:7px}
.column-cards::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:4px}
.column-cards::-webkit-scrollbar-track{background:transparent}

/* 15.2 快照：放开 1000px 宽度，网格间距归零（原 + .snapshot-item 的 margin 会把网格顶歪） */
.snapshot-list{max-width:1720px}
.snapshot-items{grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:10px}
.snapshot-item + .snapshot-item{margin-top:0 !important}

/* 15.3 问题追踪：列表跟上 KPI 的宽度 */
.risk-list{max-width:1720px}

/* ============================================================
   16 汇报中心两栏（2026-11-13 批4）
   ============================================================ */
.report{max-width:1720px}
.report-grid{display:grid;grid-template-columns:minmax(0,1fr) 322px;gap:16px;align-items:start}
.report-main{min-width:0}
.report-rail{display:flex;flex-direction:column;gap:12px;position:sticky;top:0}
.rp-panel{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius)}
.rp-head{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:9px 13px;border-bottom:1px solid var(--border);
  font-size:12px;font-weight:600;color:var(--text-primary);
}
.rp-head-hint{font-size:10.5px;font-weight:400;color:var(--text-muted)}
.rp-body{padding:11px 13px 13px;display:flex;flex-direction:column;gap:7px}
.rp-kv{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--text-secondary)}
.rp-kv b{font-weight:600;color:var(--text-primary);font-variant-numeric:tabular-nums;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-prog{margin:2px 0 4px}
.rp-prog-head{display:flex;justify-content:space-between;font-size:11.5px;color:var(--text-secondary);margin-bottom:5px}
.rp-prog-head b{color:var(--text-primary);font-variant-numeric:tabular-nums}
.rp-bar{height:5px;border-radius:3px;background:var(--bg-hover);overflow:hidden}
.rp-bar > i{display:block;height:100%;background:var(--accent);border-radius:3px}
.rp-row{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-secondary);padding:3px 0}
.rp-row-main{flex:1;color:var(--text-primary);font-variant-numeric:tabular-nums}
.rp-row-meta{font-size:11px;color:var(--text-muted)}
.rp-tag{font-size:10.5px;padding:1px 7px;border-radius:20px;border:1px solid var(--border);color:var(--text-muted)}
.rp-tag.is-final{color:var(--green);border-color:var(--green-line);background:var(--green-bg)}
.rp-more{font-size:11px;color:var(--text-muted);padding-top:4px;border-top:1px dashed var(--border);margin-top:3px}
.rp-empty{font-size:11.5px;color:var(--text-muted);line-height:1.7}
.rp-tip{font-size:11.5px;color:var(--text-secondary);line-height:1.7;padding-left:9px;position:relative}
.rp-tip::before{content:'';position:absolute;left:0;top:7px;width:3px;height:3px;border-radius:50%;background:var(--border-strong)}
@media (max-width:1240px){
  .report-grid{grid-template-columns:1fr}
  .report-rail{position:static;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
}

/* ============================================================
   17 团队页指标条（2026-11-13 批4）
   ============================================================ */
.team-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px}
.team-kpi{
  background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);
  padding:12px 14px;position:relative;overflow:hidden;
}
.team-kpi::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--border-strong)}
.team-kpi.tone-a::before{background:var(--accent)}
.team-kpi.tone-g::before{background:var(--green)}
.team-kpi.tone-r::before{background:var(--red)}
.team-kpi-label{font-size:11.5px;color:var(--text-secondary);margin-bottom:6px}
.team-kpi-val{font-size:22px;font-weight:700;line-height:1;color:var(--text-primary);font-variant-numeric:tabular-nums}
.team-kpi.tone-r .team-kpi-val{color:var(--red)}
.team-kpi.tone-g .team-kpi-val{color:var(--green)}
.team-kpi-sub{font-size:10.5px;color:var(--text-muted);margin-top:6px}
@media (max-width:1100px){.team-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){.team-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 17.x 审计页放开宽度，跟其他列表页一致 */
.audit-log{max-width:1720px}

/* ===== 18. 数据诊断页 ===== */
.audit { max-width: 1720px; margin: 0 auto; }
.audit-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.audit-title { margin: 0 0 3px; font-size: 19px; font-weight: 650; letter-spacing: -.2px; }
.audit-sub { font-size: 12px; color: var(--text-muted); }
.audit-refresh { padding: 6px 14px; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 500; }
.audit-refresh:hover { filter: brightness(1.06); }
.audit-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.audit-kpi { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px 12px 16px; overflow: hidden; }
.audit-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--n-300); }
.audit-kpi.tone-n::before { background: var(--n-400); }
.audit-kpi.tone-g::before { background: var(--green); }
.audit-kpi.tone-y::before { background: var(--yellow); }
.audit-kpi.tone-r::before { background: var(--red); }
.audit-kpi-label { font-size: 11.5px; color: var(--text-secondary); }
.audit-kpi-val { font-size: 23px; font-weight: 700; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.audit-kpi.tone-g .audit-kpi-val { color: var(--green); }
.audit-kpi.tone-y .audit-kpi-val { color: var(--yellow); }
.audit-kpi.tone-r .audit-kpi-val { color: var(--red); }
.audit-kpi-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.audit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(392px, 1fr)); gap: 10px; align-items: start; }
.audit-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--n-300); border-radius: 10px; padding: 12px 14px; }
.audit-card.tone-high { border-left-color: var(--red); }
.audit-card.tone-mid { border-left-color: var(--yellow); }
.audit-card.tone-low { border-left-color: var(--n-400); }
.audit-card.tone-ok { border-left-color: var(--green); }
.audit-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.audit-ico { font-size: 14px; line-height: 1; }
.audit-name { font-size: 13.5px; font-weight: 600; }
.audit-badge { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 20px; background: var(--bg-tertiary); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.audit-card.tone-high .audit-badge { background: rgba(190, 62, 62, .12); color: var(--red); }
.audit-card.tone-mid .audit-badge { background: rgba(176, 132, 20, .14); color: var(--yellow); }
.audit-card.tone-ok .audit-badge { background: rgba(46, 132, 88, .12); color: var(--green); }
.audit-desc { font-size: 11.5px; color: var(--text-muted); flex: 1; min-width: 120px; }
.audit-go { padding: 4px 10px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 6px; color: var(--text-secondary); font-size: 11.5px; cursor: pointer; white-space: nowrap; }
.audit-go:hover { background: var(--bg-hover); color: var(--text-primary); }
.audit-items { margin-top: 9px; padding-top: 7px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1px; }
.audit-item { display: flex; gap: 10px; align-items: center; padding: 5px 7px; border-radius: 6px; cursor: pointer; font-size: 12.5px; }
.audit-item:hover { background: var(--bg-hover); }
.audit-item-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-item-meta { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.audit-more { font-size: 11.5px; color: var(--text-muted); padding: 4px 7px; }
.audit-pass { margin-top: 9px; padding-top: 7px; border-top: 1px solid var(--border); font-size: 12px; color: var(--green); }
.audit-hist { margin-top: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; }
.audit-hist summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.audit-hist-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.audit-hist-bar select { padding: 6px 10px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 7px; color: var(--text-primary); font-size: 12px; }
.audit-chk { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; cursor: pointer; }
.audit-list { min-height: 60px; }
.audit-loading { padding: 16px; text-align: center; color: var(--text-secondary); font-size: 12.5px; }
html[data-theme="dark"] .audit-card.tone-high .audit-badge { background: rgba(224, 96, 96, .16); }
html[data-theme="dark"] .audit-card.tone-mid .audit-badge { background: rgba(214, 170, 62, .16); }
html[data-theme="dark"] .audit-card.tone-ok .audit-badge { background: rgba(78, 168, 120, .16); }
@media (max-width: 1100px) { .audit-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .audit-grid { grid-template-columns: 1fr; } }

/* ===== 19. 需求看板空态：五态流程 ===== */
.req-empty { display: flex; flex-direction: column; align-items: center; padding: 34px 20px 30px; }
.req-empty-desc { text-align: center; }
.req-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; margin-top: 22px; max-width: 1120px; }
.req-flow-step { width: 188px; background: var(--bg-card); border: 1px solid var(--border); border-top: 2px solid var(--n-400); border-radius: 9px; padding: 11px 13px 12px; }
.req-flow-step b { display: block; font-size: 13px; font-weight: 600; margin-top: 1px; color: var(--text-primary); }
.req-flow-step i { display: block; font-style: normal; font-size: 11.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.55; }
.req-flow-n { font-size: 10.5px; font-weight: 700; color: var(--text-muted); letter-spacing: .3px; }
.req-flow-step.tone-1 { border-top-color: var(--n-400); }
.req-flow-step.tone-2 { border-top-color: var(--blue); }
.req-flow-step.tone-2 .req-flow-n { color: var(--blue); }
.req-flow-step.tone-3 { border-top-color: var(--violet); }
.req-flow-step.tone-3 .req-flow-n { color: var(--violet); }
.req-flow-step.tone-4 { border-top-color: var(--yellow); }
.req-flow-step.tone-4 .req-flow-n { color: var(--yellow); }
.req-flow-step.tone-5 { border-top-color: var(--green); }
.req-flow-step.tone-5 .req-flow-n { color: var(--green); }
.req-flow-arrow { width: 24px; height: 1px; background: var(--border); position: relative; flex: 0 0 auto; }
.req-flow-arrow::after { content: ''; position: absolute; right: -1px; top: -3px; border-left: 5px solid var(--border); border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
@media (max-width: 1100px) { .req-flow-step { width: 168px; } .req-flow-arrow { width: 14px; } }
@media (max-width: 860px) { .req-flow { flex-direction: column; gap: 8px; } .req-flow-arrow { width: 1px; height: 14px; background: var(--border); } .req-flow-arrow::after { right: -3px; top: auto; bottom: -1px; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 5px solid var(--border); border-bottom: 0; } .req-flow-step { width: 100%; max-width: 320px; } }

/* ===== 20. 日程空态 ===== */
.sched-empty { max-width: 760px; margin: 6px auto 0; background: var(--bg-card); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 34px 28px 30px; text-align: center; }
.sched-empty-ico { font-size: 30px; line-height: 1; opacity: .85; }
.sched-empty-title { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--text-primary); }
.sched-empty-desc { margin: 7px auto 0; max-width: 560px; font-size: 12.5px; line-height: 1.8; color: var(--text-muted); }
.sched-empty-desc b { color: var(--text-primary); font-weight: 600; }
.sched-empty-tips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.sched-tip { display: inline-flex; align-items: center; gap: 7px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 20px; padding: 6px 13px 6px 9px; font-size: 11.5px; color: var(--text-secondary); }
.sched-tip i { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-bg, rgba(31,78,121,.12)); color: var(--accent); font-style: normal; font-size: 10px; font-weight: 700; }
.sched-empty-btn { margin-top: 20px; padding: 7px 18px; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 8px; font-size: 12.5px; cursor: pointer; }
.sched-empty-btn:hover { filter: brightness(1.06); }
/* ============================================================
   21 登录页（v3.6.11 · 左品牌 / 右表单）
   ============================================================ */
.lg-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(430px,.95fr);background:var(--bg-secondary)}
.lg-brand{background:#1F4E79;color:#fff;padding:60px 56px;display:flex;flex-direction:column;justify-content:center}
.lg-logo{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:700;letter-spacing:.4px}
.lg-logo-mark{font-size:22px}
.lg-tag{margin-top:10px;font-size:13px;color:rgba(255,255,255,.72);letter-spacing:.3px}
.lg-feats{list-style:none;margin:38px 0 0;padding:0;display:flex;flex-direction:column;gap:18px;max-width:440px}
.lg-feats li{display:flex;flex-direction:column;gap:4px;padding-left:14px;border-left:2px solid rgba(255,255,255,.32)}
.lg-feats b{font-size:13.5px;font-weight:600;color:#fff}
.lg-feats span{font-size:12.5px;line-height:1.55;color:rgba(255,255,255,.66)}
.lg-foot{margin-top:46px;padding-top:18px;border-top:1px solid rgba(255,255,255,.16);font-size:12px;color:rgba(255,255,255,.5)}
.lg-panel{display:flex;align-items:center;justify-content:center;padding:48px 32px;background:var(--bg-secondary)}
.lg-panel-inner{width:100%;max-width:364px;background:var(--bg-card);border:1px solid var(--border);border-radius:13px;padding:28px 26px;box-shadow:var(--shadow)}
.lg-title{font-size:21px;font-weight:600;margin:0 0 6px;color:var(--text-primary)}
.lg-sub{font-size:12.5px;color:var(--text-muted);margin:0 0 22px}
.lg-field{display:flex;flex-direction:column;gap:6px;margin-bottom:15px}
.lg-field label{font-size:12.5px;color:var(--text-secondary);font-weight:500}
.lg-field input{height:38px;padding:0 12px;font-size:13.5px;color:var(--text-primary);background:var(--bg-secondary);border:1px solid var(--border);border-radius:8px;outline:none;transition:border-color .12s}
.lg-field input:focus{border-color:var(--a-600);background:var(--bg-card)}
.lg-submit{width:100%;height:40px;margin-top:4px;border:0;border-radius:8px;background:var(--a-600);color:#fff;font-size:14px;font-weight:500;cursor:pointer;letter-spacing:2px}
.lg-submit:hover{background:var(--a-700)}
.lg-hint{margin-top:18px;font-size:11.5px;line-height:1.6;color:var(--text-muted)}
.lg-page .login-error{color:var(--red);font-size:12.5px;margin-top:10px;min-height:17px}
html[data-theme="dark"] .lg-brand{background:#12304a}
html[data-theme="dark"] .lg-panel-inner{background:var(--bg-card)}
@media (max-width:980px){
  .lg-page{grid-template-columns:1fr}
  .lg-brand{padding:30px 24px 26px;justify-content:flex-start}
  .lg-feats,.lg-foot{display:none}
  .lg-logo{font-size:20px}
  .lg-panel{padding:26px 20px 40px;background:var(--bg-primary)}
}

/* ============================================================
   22 版本快照页（KPI + 按月时间轴）
   ============================================================ */
.snap-page{max-width:1720px;display:flex;flex-direction:column;gap:16px}
.snap-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.snap-title{font-size:19px;font-weight:600;color:var(--text-primary)}
.snap-sub{font-size:12.5px;color:var(--text-muted);margin-top:4px}
.snap-actions{display:flex;gap:8px;align-items:center}
.snap-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.snap-kpi{position:relative;background:var(--bg-card);border:1px solid var(--border);border-radius:10px;padding:13px 16px 14px}
.snap-kpi::before{content:'';position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:0 3px 3px 0;background:var(--n-300)}
.snap-kpi.tone-auto::before{background:var(--green)}
.snap-kpi.tone-manual::before{background:var(--a-600)}
.snap-kpi.tone-last::before{background:var(--yellow)}
.snap-kpi-label{font-size:12px;color:var(--text-secondary)}
.snap-kpi-val{font-size:23px;font-weight:600;color:var(--text-primary);line-height:1.25;margin-top:3px;font-variant-numeric:tabular-nums}
.snap-kpi.tone-last .snap-kpi-val{font-size:20px}
.snap-kpi-sub{font-size:11.5px;color:var(--text-muted);margin-top:2px}
.snap-note{padding:10px 14px;border:1px dashed var(--border-strong);border-radius:8px;font-size:12.5px;line-height:1.6;color:var(--text-secondary);background:var(--bg-secondary)}
.snap-timeline{display:flex;flex-direction:column;gap:18px}
.snap-month-head{display:flex;align-items:center;gap:10px;margin-bottom:9px}
.snap-month-label{font-size:13px;font-weight:600;color:var(--text-primary)}
.snap-month-count{font-size:11.5px;color:var(--text-muted)}
.snap-month-head::after{content:'';flex:1;height:1px;background:var(--border)}
.snap-rows{display:grid;grid-template-columns:repeat(auto-fill,minmax(336px,1fr));gap:8px}
.snap-item{display:flex;align-items:center;gap:10px;padding:9px 12px;background:var(--bg-card);border:1px solid var(--border);border-radius:10px}
.snap-item:hover{border-color:var(--border-strong)}
.snap-dot{width:8px;height:8px;border-radius:50%;flex:none;background:var(--n-300)}
.snap-item.tone-auto .snap-dot{background:var(--green)}
.snap-item.tone-manual .snap-dot{background:var(--a-600)}
.snap-main{flex:1;min-width:0}
.snap-row1{display:flex;align-items:center;gap:8px}
.snap-no{font-size:11px;color:var(--text-muted);font-variant-numeric:tabular-nums}
.snap-type{font-size:13.5px;font-weight:600;color:var(--text-primary);white-space:nowrap}
.snap-badge{font-size:10.5px;padding:1px 7px;border-radius:20px;border:1px solid transparent;white-space:nowrap}
.snap-badge.is-auto{color:var(--green);background:var(--green-bg);border-color:var(--green-line)}
.snap-badge.is-manual{color:var(--blue);background:var(--blue-bg);border-color:var(--blue-line)}
.snap-row2{display:flex;gap:8px;font-size:11.5px;color:var(--text-muted);margin-top:3px}
.snap-wd{color:var(--text-secondary)}
.snap-rel{color:var(--text-muted)}
.snap-act .btn-rollback{font-size:12px;padding:4px 12px}
.snap-empty{padding:34px 20px;text-align:center;font-size:13px;color:var(--text-muted);border:1px dashed var(--border-strong);border-radius:10px}
@media (max-width:1100px){
  .snap-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .snap-rows{grid-template-columns:1fr}
}

/* ===== 2026-11-13 前端体检#2：加载失败必须可见（0 不冒充真实值） ===== */
.load-error {
  margin: 24px auto; padding: 18px 20px; max-width: 720px;
  border: 1px solid var(--red-line); border-left: 4px solid var(--red);
  border-radius: 8px; background: var(--red-bg);
  color: var(--text-primary); font-size: 14px; line-height: 1.65;
}
.load-error-banner {
  display: none; margin: 12px 20px 0; padding: 10px 14px;
  border: 1px solid var(--red-line); border-left: 4px solid var(--red);
  border-radius: 6px; background: var(--red-bg);
  color: var(--text-primary); font-size: 13px; cursor: pointer;
}
.load-error-banner:hover { filter: brightness(.97); }
.load-error-banner b { color: var(--red); }
#btn-refresh:disabled { opacity: .55; cursor: progress; }

/* ===== 2026-11-13 前端体检#10：每列前 30 条 +「加载更多」（纯前端截断，无分页接口） ===== */
.btn-more-cards { font-family: inherit; }
.btn-more-cards:hover { background: var(--bg-card); color: var(--text-primary); border-color: var(--border-strong); }
.task-field-badges:empty { display: none; }
/* ============================================================
   23 任务看板工具条（v3.6.14 · 批量条默认收起 / 选中自动展开）
   ============================================================ */
.tb-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.tb-head-main{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tb-title{margin:0;font-size:19px;font-weight:600;color:var(--text-primary)}
.tb-meta{font-size:12.5px;color:var(--text-muted)}
.tb-selected{font-size:12px;color:var(--a-600);background:var(--accent-bg);border:1px solid var(--accent-line);border-radius:20px;padding:2px 10px}
.tb-selected b{font-weight:700}
.tb-head-actions{display:flex;gap:8px;align-items:center}
.tb-btn{font-size:12.5px;border-radius:8px;padding:6px 14px;cursor:pointer;border:1px solid var(--border);background:var(--bg-card);color:var(--text-primary);line-height:1.4}
.tb-btn:hover{border-color:var(--border-strong)}
.tb-btn-primary{background:var(--a-600);border-color:var(--a-600);color:#fff}
.tb-btn-primary:hover{background:var(--a-700);border-color:var(--a-700)}
.tb-btn-danger{background:transparent;border-color:var(--red);color:var(--red)}
.tb-batch{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:var(--bg-secondary);border:1px solid var(--border);border-radius:10px;padding:8px 12px;margin-bottom:10px}
.tb-batch[hidden]{display:none}
.tb-batch-label{font-size:12.5px;font-weight:600;color:var(--text-primary)}
.tb-batch-sel{font-size:12px;color:var(--text-muted)}
.tb-batch-sel b{color:var(--a-600);font-weight:700}
.tb-batch-sep{width:1px;height:18px;background:var(--border)}
.tb-chip{font-size:12px;padding:4px 10px;border-radius:6px;border:1px solid var(--border);background:var(--bg-card);color:var(--text-secondary);cursor:pointer}
.tb-chip:hover{color:var(--text-primary);border-color:var(--border-strong)}
.tb-select{font-size:12.5px;padding:5px 8px;border-radius:6px;border:1px solid var(--border);background:var(--bg-card);color:var(--text-primary);cursor:pointer}
.tb-batch-hint{font-size:11.5px;color:var(--text-muted)}
.tb-batch-close{margin-left:auto;border:0;background:transparent;color:var(--text-muted);cursor:pointer;font-size:13px;padding:2px 8px;border-radius:6px}
.tb-batch-close:hover{background:var(--bg-hover);color:var(--text-primary)}
.tb-filter-row{margin-bottom:12px}
.tb-filter-row:empty{display:none}
html[data-theme="dark"] .tb-selected{background:rgba(31,78,121,.28);border-color:rgba(120,170,225,.32);color:#9cc4ee}
html[data-theme="dark"] .tb-chip:hover{border-color:var(--n-500)}

/* ============================================================
   24 IA 双轴（v3.6.16 · 2026-11-14 A 案）
   ------------------------------------------------------------
   ① 范围=全部项目时旧视图不再静默跳项目，改为「请先选择项目」面板
   ② 驾驶舱标题行「← 全部项目」与顶栏面包屑重复：>640px 隐藏，窄屏（面包屑空间不足）保留
   ============================================================ */
.picker-wrap { max-width: 880px; margin: 8px auto 0; }
.picker-head { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--a-600); border-radius: 10px; padding: 18px 20px; }
.picker-head h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: var(--text-primary); }
.picker-head p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.picker-head p strong { color: var(--text-primary); font-weight: 600; }
.picker-body { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.picker-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.picker-group-title { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: .4px; margin-bottom: 8px; }
.picker-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-primary); font-size: 13.5px; cursor: pointer; font-family: inherit; }
.picker-row:hover { background: var(--bg-hover); border-color: var(--border); }
.picker-row + .picker-row { margin-top: 2px; }
.picker-row-name { font-weight: 500; }
.picker-row-go { font-size: 12px; color: var(--a-600); white-space: nowrap; }
.picker-empty { margin-top: 14px; background: var(--bg-card); border: 1px dashed var(--border); border-radius: 10px; padding: 18px; font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.picker-foot { margin-top: 16px; }

/* 面包屑已给出「← 全部项目」，驾驶舱内重复按钮只在窄屏保留 */
.cockpit-back-dupe { display: none; }
@media (max-width: 640px) { .cockpit-back-dupe { display: inline-flex; } }

/* ===== 第 24 段（2026-11-14）：公司台账（七巧）视图 #/ledger ===== */
.lg-page{display:flex;flex-direction:column;gap:16px}
.lg-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.lg-head-main{min-width:0}
.lg-title{font-size:19px;font-weight:600;color:var(--text-primary);letter-spacing:.2px;display:flex;align-items:center;gap:8px}
.lg-title-tag{font-size:11px;font-weight:600;padding:2px 7px;border-radius:999px;background:var(--accent-bg);color:var(--accent-ink);letter-spacing:.3px}
.lg-sub{margin-top:4px;font-size:12px;color:var(--text-muted)}
.lg-head-actions{display:flex;align-items:center;gap:8px}
.lg-btn{font-size:12px;padding:6px 12px;border-radius:6px;border:1px solid var(--border);background:var(--bg-card);color:var(--text-secondary);cursor:pointer;transition:var(--transition)}
.lg-btn:hover{border-color:var(--accent);color:var(--accent)}
.lg-chip{font-size:11px;padding:2px 8px;border-radius:999px;border:1px solid var(--border);color:var(--text-muted)}

.lg-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.lg-kpi{position:relative;background:var(--bg-card);border:1px solid var(--border);border-radius:10px;padding:13px 14px 12px 16px;box-shadow:var(--shadow);overflow:hidden}
.lg-kpi::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--lg-tone,var(--accent))}
.lg-kpi-label{font-size:12px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-kpi-val{margin-top:5px;font-size:23px;font-weight:700;color:var(--text-primary);line-height:1.1;font-variant-numeric:tabular-nums}
.lg-kpi-sub{margin-top:4px;font-size:11px;color:var(--text-muted)}

.lg-page .tone-a{--lg-tone:#3b82f6}
.lg-page .tone-b{--lg-tone:#16a34a}
.lg-page .tone-c{--lg-tone:#d97706}
.lg-page .tone-d{--lg-tone:#dc2626}

.lg-cols{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;align-items:start}
.lg-panel{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}
.lg-panel--wide{min-width:0}
.lg-panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:11px 16px;border-bottom:1px solid var(--border);background:var(--bg-tertiary)}
.lg-panel-head--split{padding-bottom:9px}
.lg-panel-title{font-size:13px;font-weight:600;color:var(--text-primary);display:flex;align-items:center;gap:8px}
.lg-panel-title::before{content:'';width:3px;height:12px;border-radius:2px;background:var(--accent)}
.lg-panel-hint{font-size:11px;color:var(--text-muted);font-weight:400}

.lg-bars{padding:6px 16px 12px}
.lg-bar-row{display:grid;grid-template-columns:82px minmax(0,1fr) 40px 62px;align-items:center;gap:10px;padding:6px 0}
.lg-bar-name{font-size:12px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-bar-track{height:8px;border-radius:999px;background:var(--bg-hover);overflow:hidden}
.lg-bar-fill{display:block;height:100%;border-radius:999px;background:var(--lg-tone,var(--accent))}
.lg-bar-num{font-size:12px;font-weight:600;color:var(--text-primary);text-align:right;font-variant-numeric:tabular-nums}
.lg-bar-tag{font-size:11px;color:var(--text-muted);text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.lg-grp{padding:8px 16px 12px}
.lg-grp-row{display:flex;align-items:center;gap:9px;padding:7px 0;border-bottom:1px solid var(--border)}
.lg-grp-row:last-child{border-bottom:none}
.lg-grp-dot{width:8px;height:8px;border-radius:50%;flex:0 0 auto;background:var(--lg-tone,var(--accent))}
.lg-grp-name{flex:1;min-width:0;font-size:13px;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-grp-count{font-size:13px;font-weight:600;color:var(--text-primary);font-variant-numeric:tabular-nums}
.lg-grp-pct{width:46px;text-align:right;font-size:11px;color:var(--text-muted);font-variant-numeric:tabular-nums}

.lg-todos{padding:6px 12px 12px;display:flex;flex-direction:column;gap:2px}
.lg-todo{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;padding:8px 10px;border-radius:8px;border-left:3px solid transparent}
.lg-todo:hover{background:var(--bg-hover)}
.lg-todo-main{min-width:0}
.lg-todo-title{font-size:13px;color:var(--text-primary);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-todo-meta{margin-top:3px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--text-muted)}
.lg-todo-stage{font-size:10px;padding:1px 6px;border-radius:999px;background:var(--bg-hover);color:var(--text-secondary)}
.lg-todo-date{font-variant-numeric:tabular-nums}
.lg-todo-days{font-size:11px;color:var(--text-muted)}
.lg-todo.urgent{border-left-color:var(--red);background:var(--red-bg)}
html[data-theme="dark"] .lg-todo.urgent{background:rgba(248,81,73,.08)}
.lg-todo.urgent .lg-todo-days{color:var(--red);font-weight:600}
.lg-todo-action{align-self:center;font-size:12px;color:var(--accent-ink);white-space:nowrap}
.lg-todo.is-done .lg-todo-title{color:var(--text-muted);text-decoration:line-through}

.lg-rows{display:flex;flex-direction:column}
.lg-row{display:grid;grid-template-columns:minmax(0,1fr) 84px 58px;align-items:center;gap:10px;padding:9px 16px;border-bottom:1px solid var(--border)}
.lg-row:last-child{border-bottom:none}
.lg-row-title{font-size:13px;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-row-date{font-size:12px;color:var(--text-muted);font-variant-numeric:tabular-nums;text-align:right}
.lg-row-status{font-size:10px;padding:2px 7px;border-radius:999px;text-align:center;white-space:nowrap}
.lg-row-status.is-run{background:var(--blue-bg);color:var(--blue)}
.lg-row-status.is-done{background:var(--green-bg);color:var(--green)}

.lg-notes{margin:0;padding:10px 16px 14px 30px;display:flex;flex-direction:column;gap:7px}
.lg-notes li{font-size:12px;line-height:1.6;color:var(--text-secondary)}

.lg-skeleton{padding:32px;text-align:center;font-size:13px;color:var(--text-muted)}
.lg-error{padding:20px;border-radius:10px;border:1px solid var(--red);background:var(--red-bg);color:var(--red);font-size:13px}
.lg-error-hint{margin-top:6px;color:var(--text-secondary);font-size:12px}

@media (max-width:1280px){.lg-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1100px){.lg-cols{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){.lg-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.lg-bar-row{grid-template-columns:72px minmax(0,1fr) 36px 0}.lg-bar-tag{display:none}}


.lg-page .tone-n{--lg-tone:var(--text-muted)}
.lg-page .tone-warn{--lg-tone:var(--yellow)}
.lg-page .tone-danger{--lg-tone:var(--red)}
.lg-page .tone-idle{--lg-tone:var(--text-muted)}
.lg-todo{grid-template-columns:auto minmax(0,1fr) auto}
.lg-todo-urgent{font-size:10px;font-weight:600;align-self:start;margin-top:2px;padding:1px 5px;border-radius:4px;background:var(--bg-hover);color:var(--text-muted)}
.lg-todo.tone-danger{border-left-color:var(--red);background:var(--red-bg)}
html[data-theme="dark"] .lg-todo.tone-danger{background:rgba(248,81,73,.08)}
.lg-todo.tone-danger .lg-todo-urgent{background:rgba(198,40,40,.14);color:var(--red)}
.lg-todo.tone-warn .lg-todo-urgent{background:rgba(178,106,0,.14);color:var(--yellow)}
.lg-todo.tone-danger .lg-todo-days{color:var(--red);font-weight:600}

.tb-filter-row{margin-bottom:12px}
.tb-filter-row>div{margin-bottom:0!important;padding:8px 10px!important;border-radius:8px!important}
.tb-filter-row[hidden]{display:none!important}
/* 台账页：压掉登录页遗留的 .lg-panel/.lg-page 布局 */
.lg-page{display:flex;flex-direction:column;gap:16px;min-height:0;background:transparent}
.lg-page .lg-panel{display:block;padding:0;align-items:stretch;justify-content:flex-start;background:var(--bg-card)}
.lg-page .lg-bar-row{grid-template-columns:100px minmax(0,1fr) 46px 70px}
.lg-page .lg-title{margin:0}
.lg-notes .lg-note{font-size:12px;line-height:1.65;color:var(--text-secondary)}
.lg-clients{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:10px 16px 4px;border-bottom:1px dashed var(--border)}
.lg-clients-label{font-size:11px;color:var(--text-muted);margin-right:2px}
.lg-client{display:inline-flex;align-items:center;gap:4px;font-size:11px;padding:2px 8px;border-radius:999px;background:var(--bg-hover);color:var(--text-secondary);font-variant-numeric:tabular-nums}
.lg-client b{font-weight:600;color:var(--text-primary)}

/* 台账页配色与布局微调 */
.lg-page .tone-d{--lg-tone:#8b5cf6}
.lg-page .tone-e{--lg-tone:#64748b}
.lg-page .tone-f{--lg-tone:#eab308}
.lg-bars-2{display:grid;grid-template-columns:1fr 1fr;column-gap:26px;row-gap:0}
.lg-bars-2 .lg-bar-row{grid-template-columns:92px minmax(0,1fr) 38px 62px;gap:8px}


.lg-cols{grid-template-columns:minmax(0,1.55fr) minmax(0,.8fr) minmax(0,.8fr);align-items:stretch}
.lg-bars-2{display:flex;gap:24px;align-items:flex-start}
.lg-bar-col{flex:1 1 0;min-width:0}
.lg-bar-col .lg-bar-row{grid-template-columns:88px minmax(0,1fr) 34px 56px;gap:8px}
.lg-panel .lg-bars:not(.lg-bars-2) .lg-bar-row{grid-template-columns:82px minmax(0,1fr) 38px}
.lg-page .lg-todo-days::before{content:'已挂 '}
.lg-page .lg-todo-days{font-variant-numeric:tabular-nums}

.lg-page .lg-todo-days::before{content:none}

.tb-filter-row{display:flex;justify-content:flex-end;margin:0 0 12px}
.tb-filter-row>div{max-width:640px;width:auto}

/* ---------- 25. 超宽屏流体（≥1440：驾驶舱/列表页不再右侧留大白） ---------- */
@media (min-width: 1440px) {
  /* 单项目驾驶舱：原 .cockpit{max-width:1400px} 且无 auto → 宽屏时内容贴左、右侧空一大块 */
  .cockpit { max-width: 2000px; margin: 0 auto; }
  /* 各列表页统一到 1720（与组合总览 .ovx 同口径），并居中 */
  .dashboard, .task-board, .team-list, .pcards-wrap, .projects-page { max-width: 1720px; }
  .issue-list, .risk-list, .report, .ai-context, .audit-log, .snapshot-list, .snap-page { max-width: 1400px; }
}

@media (min-width: 1700px) {
  .msboard-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cockpit-card canvas { max-height: 320px; }
  .cockpit-track { padding: 4px 8px; }
}

@media (min-width: 2100px) {
  .msboard-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
