/* 人才库。颜色只用 tokens.css 变量（UI 门禁）。规则文字由 /api/talent 随数据返回（app/talent.py）。 */
[hidden] { display: none !important; }
body { background: var(--canvas); color: var(--text-primary); margin: 0; }
.tl-app { margin: 0 auto; padding: 20px 16px 64px; max-width: 1280px; display: flex; flex-direction: column; gap: 12px; }
.tl-head h1 { margin: 0 0 6px; font-size: 22px; }
.tl-head p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }

.tl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tl-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; cursor: pointer;
  text-align: left; font: inherit; color: var(--text-primary); }
.tl-tile:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.tl-tile.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tl-tile .n { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-tile .l { color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.tl-tile.warn .n { color: var(--warning-fg); }

/* 工具条往下滚一直在；表头贴在滚动框顶（祖先不能有 overflow，见 CLAUDE.md 第 6 节） */
.tl-bar { position: sticky; top: 0; z-index: 3; background: var(--canvas); padding: 8px 0;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tl-search { height: var(--ctl-h); width: 220px; border: 1px solid var(--border-control); border-radius: var(--control-radius);
  background: var(--surface); color: var(--text-primary); font: inherit; font-size: 13px; padding: 0 10px; }
.tl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-chips button { border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary);
  border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.tl-chips button.on { background: var(--accent-soft-bg); color: var(--accent-soft-fg); border-color: var(--accent-soft-border); }
.tl-chips button small { color: var(--text-muted); margin-left: 3px; }
.tl-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.tl-seg button { border: 0; border-left: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); padding: 5px 12px; font-size: 13px; cursor: pointer; }
.tl-seg button:first-child { border-left: 0; }
.tl-seg button.on { background: var(--accent); color: var(--text-on-accent); }

.tl-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.tl-main.open { grid-template-columns: minmax(0, 1fr) 380px; }
.tl-table-wrap { overflow: auto; max-height: calc(100vh - 70px); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; }
.tl-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tl-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-sunken); color: var(--text-secondary);
  text-align: left; font-weight: 600; white-space: nowrap; height: 34px; padding: 0 10px;
  border-bottom: 1px solid var(--border); cursor: pointer; user-select: none; }
.tl-table thead th.num, .tl-table td.num { text-align: right; }
.tl-table thead th[data-dir="1"]::after { content: " ↑"; }
.tl-table thead th[data-dir="-1"]::after { content: " ↓"; }
.tl-table tbody td { height: 38px; padding: 0 10px; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; vertical-align: middle; }
.tl-table tbody tr { cursor: pointer; }
.tl-table tbody tr:hover td { background: var(--surface-hover); }
.tl-table tbody tr.sel td { background: var(--surface-selected); }
.tl-table tbody tr[data-left="1"] td { color: var(--text-muted); }
.tl-empty { text-align: center; color: var(--text-muted); padding: 32px; cursor: default; }
.zero { color: var(--text-disabled); }

.tl-tag { display: inline-block; border-radius: 4px; padding: 0 5px; line-height: 17px; font-size: 11px; margin-left: 4px;
  border: 1px solid var(--border); background: var(--surface-sunken); color: var(--text-secondary); cursor: help; vertical-align: 1px; }
.tl-tag.est { background: var(--warning-bg); color: var(--warning-fg); border-color: var(--warning-border); }
.tl-tag.man { background: var(--success-bg); color: var(--success-fg); border-color: var(--success-border); }
.tl-tag.info { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-border); }
.tl-unknown { color: var(--text-muted); }

/* 右侧面板：跟着页面贴顶，名字和 × 在面板里再贴顶（关闭按钮不用 absolute）。
   2026-10-01 top / max-height 由 talent.js 按工具条实际高度改写（工具条折两行时不钻到条下面），这里是一行时的值 */
.tl-panel { position: sticky; top: 56px; z-index: 4; max-height: calc(100vh - 70px); overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.tl-ph { position: sticky; top: 0; background: var(--surface); padding: 12px 14px 8px; border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tl-ph h2 { margin: 0; font-size: 17px; }
.tl-ph p { margin: 2px 0 0; color: var(--text-muted); font-size: 12px; }
.tl-x { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 2px 6px; }
.tl-pb { padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.tl-field label { display: block; color: var(--text-secondary); font-size: 12px; margin-bottom: 4px; }
.tl-field input, .tl-field select, .tl-field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px;
  border: 1px solid var(--border-control); border-radius: var(--control-radius); background: var(--surface); color: var(--text-primary); padding: 6px 8px; }
.tl-field textarea { min-height: 56px; resize: vertical; }
.tl-basis { margin-top: 5px; background: var(--surface-sunken); border-radius: 6px; padding: 6px 8px; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.tl-sec h3 { margin: 0 0 6px; font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.tl-mini { width: 100%; border-collapse: collapse; font-size: 12px; }
.tl-mini td { padding: 3px 0; border-bottom: 1px solid var(--border-subtle); }
.tl-mini td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tl-actions { display: flex; gap: 8px; align-items: center; }
.tl-btn { border: 1px solid var(--border-control); background: var(--surface); color: var(--text-primary); border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.tl-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }
.tl-saved { color: var(--success-fg); font-size: 12px; padding: 0 14px; }
.tl-saved:empty { display: none; }
.tl-link { color: var(--accent); text-decoration: none; }

.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.tl-card h2 { margin: 0 0 8px; font-size: 15px; }
.tl-rules dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; font-size: 12px; line-height: 1.7; }
.tl-rules dt { color: var(--text-secondary); font-weight: 600; }
.tl-rules dd { margin: 0; color: var(--text-muted); }
.tl-msg { color: var(--danger-fg); background: var(--danger-bg); border: 1px solid var(--danger-border); border-radius: 8px; padding: 10px 12px; font-size: 13px; }

@media (max-width: 900px) {
  .tl-main.open { grid-template-columns: minmax(0, 1fr); }
  .tl-panel { position: static; max-height: none; }
  .tl-seg { margin-left: 0; }
}
.tl-unlink { padding: 0 6px; font-size: 11px; line-height: 17px; margin-left: 4px; }

/* ---- 时间线（甘特图）：左列姓名、右边按月的时间轴；表头和姓名列都贴住 ---- */
.tl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.tl-view { margin-left: auto; }
.tl-view + .tl-seg { margin-left: 0; }
.tl-gantt { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.gt-cap { padding: 9px 14px; font-size: 12px; line-height: 1.6; color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); height: 40px; overflow: hidden; box-sizing: content-box; }
.gt-cap b { color: var(--text-primary); }
.gt-note { padding: 6px 14px; font-size: 12px; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); }
.gt-scroll { overflow: auto; max-height: calc(100vh - 110px); }
.gt-head, .gt-row, .gt-group { display: grid; grid-template-columns: 280px minmax(560px, 1fr); }
.gt-head { position: sticky; top: 0; z-index: 3; background: var(--surface-sunken); border-bottom: 1px solid var(--border); }
.gt-head .gt-name { position: sticky; left: 0; z-index: 1; background: var(--surface-sunken); color: var(--text-secondary);
  font-size: 12px; font-weight: 600; display: flex; align-items: flex-end; padding: 0 12px 6px; }
.gt-head .gt-track { position: relative; height: 40px; }
.gt-years span, .gt-months span { position: absolute; font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.gt-years span { top: 4px; padding-left: 4px; font-weight: 600; color: var(--text-secondary); }
.gt-months span { top: 22px; text-align: center; }

.gt-body { position: relative; }
.gt-lines { position: absolute; top: 0; bottom: 0; left: 280px; right: 0; pointer-events: none; z-index: 0; }
.gt-lines i { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--chart-grid); }
.gt-lines i.yr { border-left-color: var(--chart-axis); }
.gt-lines i.today { border-left: 2px solid var(--info-fg); z-index: 2; }
.gt-lines i.today b { position: sticky; top: 42px; display: inline-block; margin-left: 3px; font-size: 10px; font-weight: 600;
  color: var(--info-fg); background: var(--info-bg); border-radius: 3px; padding: 0 3px; }
.gt-lines i.guide { border-left: 1px dashed var(--text-muted); z-index: 2; }

.gt-group { position: relative; z-index: 1; background: var(--surface-sunken); border-bottom: 1px solid var(--border-subtle);
  font-size: 12px; font-weight: 600; color: var(--text-secondary); cursor: pointer; user-select: none; display: flex; align-items: center; padding: 6px 12px; }
.gt-group small { font-weight: 400; color: var(--text-muted); margin-left: 6px; }
.gt-caret { display: inline-block; width: 14px; color: var(--text-muted); }

.gt-row { position: relative; z-index: 1; border-bottom: 1px solid var(--border-subtle); cursor: pointer; }
.gt-row .gt-name { position: sticky; left: 0; z-index: 2; background: var(--surface); padding: 0 12px 0 26px; height: 32px;
  display: flex; align-items: center; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-row:hover .gt-name, .gt-row.hov .gt-name { background: var(--surface-hover); }
.gt-row.sel .gt-name { background: var(--surface-selected); }
.gt-track { position: relative; height: 32px; }
.gt-bar { position: absolute; top: 7px; height: 18px; border-radius: 4px; background: var(--chart-8); color: var(--text-on-accent);
  font-size: 11px; line-height: 18px; overflow: hidden; white-space: nowrap; transition: opacity .12s; }
.gt-bar span { padding: 0 6px; }
.gt-bar.left { background: var(--surface); border: 1.5px solid; line-height: 15px; }
.gt-bar.floor { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.gt-out { position: absolute; top: 8px; font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.gt-unknown { position: absolute; left: 8px; top: 8px; font-size: 11px; color: var(--text-disabled); }
.gt-row.dim .gt-bar, .gt-row.dim .gt-out { opacity: .18; }
.gt-row.dim .gt-name { color: var(--text-disabled); }
.gt-row.hov .gt-bar { outline: 2px solid var(--text-primary); outline-offset: 1px; }

/* ---- 面板新格子 + 导入弹窗 ---- */
.tl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tl-bar > .tl-btn { margin-left: auto; }
.tl-view { margin-left: 0; }
.tl-modal { position: fixed; inset: 0; z-index: 20; background: var(--overlay); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto; }
.tl-dialog { width: min(980px, 100%); background: var(--surface); border-radius: 12px; border: 1px solid var(--border); }
.tl-dialog .tl-pb textarea { width: 100%; box-sizing: border-box; min-height: 110px; font: inherit; font-size: 13px; padding: 8px;
  border: 1px solid var(--border-control); border-radius: var(--control-radius); background: var(--surface); color: var(--text-primary); }
.tl-imp-src { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-imp-src label.tl-btn { cursor: pointer; }
.tl-imp-or { color: var(--text-muted); font-size: 12px; }
.tl-imp-box { max-height: 55vh; overflow: auto; border: 1px solid var(--border-subtle); border-radius: 8px; }
.tl-imp-table th { position: sticky; top: 0; background: var(--surface-sunken); text-align: left; padding: 6px 8px; font-size: 12px; color: var(--text-secondary); }
.tl-imp-table td { vertical-align: top; padding: 6px 8px; }
.tl-imp-table select { max-width: 200px; }
.tl-imp-ch { display: block; line-height: 1.7; }
.tl-imp-ch s { color: var(--text-muted); }
.tl-imp-warn { color: var(--warning-fg); font-size: 12px; }

.tl-private { border: 1px dashed var(--warning-border); background: var(--warning-bg); border-radius: 8px; padding: 8px 10px; }
.tl-private h3 { margin: 0 0 6px; font-size: 13px; color: var(--warning-fg); }
.tl-private input { background: var(--surface); }

/* 在职多久 + 关键节点（9-29） */
.tl-ten { margin-left: 6px; color: var(--text-muted); font-size: 12px; font-weight: 400; }
.tl-node { display: inline-block; margin-left: 4px; padding: 0 5px; line-height: 17px; font-size: 11px; border-radius: 4px;
  background: var(--surface-sunken); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.tl-node.hot { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-border); }
.gt-row .gt-name { overflow: hidden; text-overflow: ellipsis; }
.gt-nm { font-weight: 500; }
.gt-tick { position: absolute; top: 5px; height: 22px; border-left: 2px solid var(--surface); z-index: 1; pointer-events: auto; }
.gt-tick.prob { border-left-style: dotted; }

/* 最近状态（9-29，只给管理员） */
.tl-st { display: inline-block; padding: 0 6px; line-height: 18px; font-size: 11px; border-radius: 4px; margin-left: 4px; border: 1px solid transparent; }
.tl-st.watch { background: var(--warning-bg); color: var(--warning-fg); border-color: var(--warning-border); }
.tl-st.good { background: var(--success-bg); color: var(--success-fg); border-color: var(--success-border); }
.tl-st.normal { background: var(--surface-sunken); color: var(--text-muted); border-color: var(--border-subtle); }
.tl-st-line { display: inline-block; max-width: 300px; margin-left: 6px; vertical-align: middle; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: var(--text-secondary); font-size: 12px; }
.tl-table td:first-child .tl-st { margin-left: 0; }
.tl-state { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.tl-state h3 .tl-tag { font-weight: 400; }
.tl-state ul { margin: 2px 0 8px; padding-left: 4px; list-style: none; font-size: 13px; line-height: 1.6; }
.tl-state li { margin-bottom: 4px; }
.tl-sum { margin: 0 0 8px; font-size: 13px; line-height: 1.6; }
.tl-st-h { font-size: 12px; font-weight: 600; margin-top: 4px; }
.tl-st-h.watch { color: var(--warning-fg); }
.tl-st-h.good { color: var(--success-fg); }
.tl-quote { color: var(--text-muted); font-size: 12px; padding-left: 18px; }
.tl-src { color: var(--text-muted); font-size: 11px; margin-left: 6px; }
.tl-care { margin: 6px 0; padding: 6px 8px; border-radius: 6px; background: var(--info-bg); color: var(--info-fg); font-size: 12px; line-height: 1.6; }

/* 画像：四个方面 + 曲线（9-29） */
.tl-per-bar { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 12px; color: var(--text-secondary); }
.tl-per button { padding: 3px 10px; font-size: 12px; }
.tl-dim { border-top: 1px solid var(--border-subtle); padding: 8px 0 2px; }
.tl-dim-h { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.tl-metric { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "l c" "s s"; align-items: baseline; column-gap: 8px;
  font-size: 12px; padding: 3px 0; }
.tl-metric .tl-m-l { grid-area: l; white-space: nowrap; }
.tl-metric .tl-m-c { grid-area: c; text-align: right; }
.tl-metric .tl-spark { grid-area: s; margin-top: 2px; }
.tl-m-l { color: var(--text-primary); }
.tl-m-c { color: var(--text-muted); line-height: 1.4; }
.tl-arr { color: var(--text-primary); font-weight: 600; }
.tl-spark { display: block; overflow: visible; }
.tl-spark .sp-line { fill: none; stroke: var(--chart-1); stroke-width: 1.5; stroke-linejoin: round; }
.tl-spark .sp-area { fill: var(--chart-1); opacity: .12; }
.tl-spark .sp-hit { fill: transparent; }
.tl-spark .sp-hit:hover { fill: var(--chart-1); opacity: .35; }
.tl-spark .sp-last { fill: var(--chart-1); }
.tl-foot { margin-top: 8px; font-size: 11px; color: var(--text-muted); line-height: 1.6; }
.tl-edit { margin-top: 12px; border: 1px solid var(--border); border-radius: 8px; }
.tl-edit > summary { cursor: pointer; padding: 9px 12px; font-size: 13px; color: var(--text-secondary); }
.tl-edit[open] > summary { border-bottom: 1px solid var(--border-subtle); }
.tl-edit-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 12px; }
.tl-edit-save { position: sticky; bottom: 0; background: var(--surface); padding: 8px 0 2px; }
.tl-ph h2 .tl-node { vertical-align: middle; }

/* 档案卡（9-29 人员花名册） */
.tl-cn { margin-left: 6px; color: var(--text-secondary); font-size: 13px; font-weight: 400; }
.tl-ph h2 .tl-cn { font-size: 15px; }
.tl-ph-ms { margin-top: 4px; }
.tl-ph-ms .tl-node:first-child { margin-left: 0; }
.tl-node.warn { background: var(--warning-bg); color: var(--warning-fg); border-color: var(--warning-border); }
.tl-card-p { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.tl-kv { display: grid; grid-template-columns: 76px 1fr; gap: 4px 10px; margin: 0; font-size: 13px; line-height: 1.5; }
.tl-kv dt { color: var(--text-muted); }
.tl-kv dd { margin: 0; color: var(--text-primary); word-break: break-all; }
.tl-priv-h { margin: 10px 0 4px; padding-top: 8px; border-top: 1px solid var(--border-subtle); font-size: 12px; font-weight: 600; color: var(--warning-fg); }
.tl-hot { color: var(--info-fg); }
.tl-warn { color: var(--warning-fg); font-weight: 600; }
.tl-grid3 { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; }

/* 分数卡（9-29：曲线看不懂 → 分数 + 进度条 + 重要程度 + 作用 + 趋势） */
.tl-ov { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 10px 0; background: var(--surface-sunken); }
.tl-ov-top { display: flex; align-items: baseline; gap: 8px; }
.tl-ov-n { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-ov-l { color: var(--text-secondary); font-size: 13px; }
.tl-pbar { position: relative; height: 8px; border-radius: 4px; background: var(--border-subtle); margin: 6px 0 4px; overflow: hidden; }
.tl-pbar i { display: block; height: 100%; border-radius: 4px; background: var(--text-muted); }
.tl-pbar.good i { background: var(--success-fg); }
.tl-pbar.low i { background: var(--warning-fg); }
.tl-pbar em { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--text-muted); opacity: .6; }
.tl-pbar.none { background: repeating-linear-gradient(45deg, var(--border-subtle) 0 4px, transparent 4px 8px); }
.tl-sd { border-top: 1px solid var(--border-subtle); padding: 10px 0 6px; }
.tl-sd-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.tl-sd-h b { font-weight: 600; }
.tl-sd-n { margin-left: auto; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-sd-n small { font-size: 11px; font-weight: 400; color: var(--text-muted); }
.tl-imp { font-size: 11px; padding: 0 5px; line-height: 17px; border-radius: 4px; border: 1px solid var(--border-subtle); color: var(--text-muted); }
.tl-imp.w3 { color: var(--text-primary); border-color: var(--border-strong); font-weight: 600; }
.tl-trend { font-size: 11px; color: var(--text-secondary); }
.tl-trend.up { color: var(--success-fg); }
.tl-trend.down { color: var(--warning-fg); }
.tl-sd-role { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.tl-sd-basis, .tl-sd-pts { margin: 4px 0 0; padding-left: 16px; font-size: 12px; line-height: 1.6; color: var(--text-secondary); }
.tl-sd-pts { list-style: none; padding-left: 0; }
.tl-curve { margin-top: 4px; }
.tl-curve > summary { cursor: pointer; font-size: 12px; color: var(--text-muted); }
.tl-sc-cell { width: 70px; }
.tl-sc-cell b { font-variant-numeric: tabular-nums; }
.tl-sc-cell .tl-pbar { margin: 2px 0 0; height: 4px; width: 56px; }

/* 整体（9-29） */
.tl-overview { flex: 1; min-width: 0; }
.ov-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ov-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.ov-stat .n { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ov-stat .l { color: var(--text-muted); font-size: 12px; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.ov-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.ov-card.wide { grid-column: 1 / -1; }
.ov-card h3 { margin: 0 0 2px; font-size: 14px; }
.ov-sub { margin: 0 0 8px; font-size: 12px; color: var(--text-muted); }
.ov-bars { display: flex; flex-direction: column; gap: 5px; }
.ov-row { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 8px; font-size: 12px; cursor: default; }
.ov-row:hover .ov-l { color: var(--text-primary); }
.ov-l { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-track { height: 14px; }
.ov-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--chart-1); }
.ov-track i.k2 { background: var(--chart-3); }
.ov-track.sc i { background: var(--text-muted); }
.ov-track.sc.good i { background: var(--success-fg); }
.ov-track.sc.low i { background: var(--warning-fg); }
.ov-n { font-variant-numeric: tabular-nums; color: var(--text-primary); white-space: nowrap; }
.ov-legend { display: flex; gap: 12px; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.ov-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; background: var(--chart-1); }
.ov-legend i.k2 { background: var(--chart-3); }
.ov-heat-wrap { overflow-x: auto; }
.ov-heat { border-collapse: separate; border-spacing: 2px; font-size: 12px; }
.ov-heat th { font-weight: 400; color: var(--text-secondary); padding: 2px 6px; white-space: nowrap; text-align: left; }
.ov-heat thead th { text-align: center; font-size: 11px; }
.ov-heat td { width: 64px; height: 26px; text-align: center; border-radius: 4px; font-variant-numeric: tabular-nums; cursor: default; }
.ov-heat td.h0 { background: var(--surface-sunken); }
.ov-heat td.h1 { background: var(--chart-seq-1); }
.ov-heat td.h2 { background: var(--chart-seq-2); }
.ov-heat td.h3 { background: var(--chart-seq-3); color: var(--text-on-accent); }
.ov-heat td.h4 { background: var(--chart-seq-4); color: var(--text-on-accent); }
.ov-heat td.h5 { background: var(--chart-seq-5); color: var(--text-on-accent); }
.ov-heat td.tot, .ov-heat tfoot td { color: var(--text-muted); background: transparent; }
.ov-list { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.ov-list li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid var(--border-subtle); }
.ov-list b { font-variant-numeric: tabular-nums; }

/* 总览（9-30：每人近 3 / 7 天要点） */
.tl-brief { flex: 1; min-width: 0; }
.br-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.br-lab { font-size: 12px; color: var(--text-muted); }
.br-note { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.br-table tbody td { height: auto; padding: 8px 10px; vertical-align: top; white-space: normal; }
.br-who { width: 170px; }
.br-sc { width: 96px; }
.br-cj { width: 230px; }
.br-td { width: 150px; }
.br-name { font-weight: 600; white-space: nowrap; }
.br-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.br-ov b { font-size: 20px; font-variant-numeric: tabular-nums; }
.br-ov .tl-pbar { margin: 2px 0; width: 76px; }
.br-txt { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.br-flags { font-size: 12px; line-height: 1.5; }
.br-f { padding: 1px 0 1px 8px; border-left: 3px solid var(--border); margin-bottom: 3px; }
.br-f i { font-style: normal; margin-right: 4px; }
.br-f.risk { border-left-color: var(--warning-fg); color: var(--text-primary); }
.br-f.good { border-left-color: var(--success-fg); }
.br-f.care { border-left-color: var(--info-fg); }
.br-f.more { color: var(--text-muted); border-left-color: transparent; }
.br-f.soft { color: var(--text-muted); border-left-color: var(--border); }
.tl-main.open .br-table .br-hide { display: none; }   /* 右侧详情开着时成绩/态度两列收起（详情里都有），要点别被挤成一字一行 */

/* 特质 · 人才画像（9-30 简历） */
.tl-resume { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.rs-portrait { margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: var(--text-primary); }
.rs-traits { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.rs-trait { font-size: 12px; padding: 2px 8px; border-radius: 12px; background: var(--info-bg); color: var(--info-fg); border: 1px solid var(--info-border); cursor: default; }
.rs-trait.self { background: var(--surface-sunken); color: var(--text-secondary); border-color: var(--border); }
.rs-why { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 4px; }
.rs-why b { font-weight: 600; color: var(--text-primary); }
.rs-h { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin: 8px 0 2px; }
.tl-resume ul { margin: 0; padding-left: 16px; font-size: 12px; line-height: 1.6; }
.rs-d { color: var(--text-muted); white-space: nowrap; }
.rs-w { color: var(--text-secondary); }
.rs-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.rs-tags span { font-size: 11px; padding: 0 6px; line-height: 18px; border-radius: 4px; background: var(--surface-sunken); border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.rs-self { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* 负责什么（9-30） */
.dt-man { margin-bottom: 4px; }
.dt-auto { font-size: 12px; color: var(--text-secondary); }
.dt-src { color: var(--text-muted); }
.dt-list { margin: 2px 0 2px; padding: 0; list-style: none; line-height: 1.7; }
.dt-f { display: inline-block; min-width: 52px; margin-right: 6px; font-size: 11px; text-align: center; border-radius: 4px; padding: 0 4px;
  background: var(--surface-sunken); color: var(--text-muted); border: 1px solid var(--border-subtle); }
.dt-f.f3 { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-border); }
.dt-f.f2 { color: var(--text-secondary); }
.dt-facts { margin-top: 2px; color: var(--text-muted); line-height: 1.6; }

/* 老板 10-04：可视化——数字卡 / 状态牌 / 空状态用 shared/viz.css；这里只管位置和窄屏 */
.tl-tiles:has(> .sqv-kpis) { display: block; }
.tl-tiles .sqv-kpis { margin: 0; }
.tl-ms { display: inline-block; margin: 1px 0 1px 4px; }
.tl-ms .sqv-pill { height: 20px; padding: 0 7px; }
.tl-st-v { display: inline-block; margin-left: 4px; }
.tl-table td:first-child .tl-st-v { margin-left: 0; }
.tl-empty .sqv-empty { padding: 12px; }
.tl-ph-ms .tl-ms:first-child { margin-left: 0; }
