/* 共用样式：图表库（character-charts.js 的 .cc-*）+ 角色看板 / 角色 map / 制作排期共用的页面骨架和表格（.cm-*）。
   2026-10-23 从 character-metrics.css 拆出来：看板重写时不再连带改另外两屏。 */
.cm-body { flex: 1; overflow: auto; padding: 16px 20px 40px; overflow-anchor: none; }
.cm-status { color: var(--text-2); padding: 40px 0; text-align: center; }
.cm-status.cm-err { color: var(--red); }
.cm-filters { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.cm-toggle { color: var(--text-2); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.cm-table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.cm-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.cm-table th, .cm-table td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--hair); }
.cm-table th { color: var(--text-2); font-weight: 500; font-size: 12px; cursor: pointer; user-select: none; position: sticky; top: 0; background: var(--surface); }
.cm-table th:hover { color: var(--text); }
.cm-table .cm-text { text-align: left; }
.cm-table tbody tr:last-child td { border-bottom: 0; }
.cm-name { font-weight: 500; color: var(--text); }
.cm-empty { text-align: center !important; color: var(--text-3); padding: 24px !important; }

@media (max-width: 880px) {
  .cm-body { padding: 12px 12px calc(var(--tab-h, 0px) + 24px); }
}

.cc-spark { display: inline-block; vertical-align: middle; }

.cc-card { margin: 0; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: 12px 14px 10px; min-width: 0; }
.cc-card-wide { margin-bottom: 4px; }
.cc-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.cc-title { font-size: 14px; font-weight: 600; color: var(--text); }
.cc-sub { font-size: 12px; color: var(--text-3); }
.cc-head .cc-legend { margin: 0 0 0 auto; }
.cc-caption { font-size: 11px; line-height: 1.5; color: var(--text-3); margin-top: 6px; }
.cc-plot { position: relative; }
.cc-wrap { position: relative; }
.cc-svg { width: 100%; height: auto; display: block; overflow: visible; }
.cc-grid { stroke: var(--hair); stroke-width: 1; }
.cc-axisline { stroke: var(--hair-strong); stroke-width: 1; }
.cc-tick { fill: var(--text-3); font-size: 10px; font-variant-numeric: tabular-nums; }
.cc-cross { stroke: var(--hair-strong); stroke-width: 1; }
.cc-dot { stroke: var(--surface); stroke-width: 2; }
.cc-hit { fill: transparent; }
.cc-tip { display: none; position: absolute; top: 0; z-index: 5; pointer-events: none; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 8px; padding: 6px 8px; font-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.08); white-space: nowrap; }
.cc-tip-head { color: var(--text-2); margin-bottom: 2px; }
.cc-tip-row { display: flex; align-items: center; gap: 6px; line-height: 1.6; }
.cc-tip-label { color: var(--text-2); }
.cc-tip-val { margin-left: auto; padding-left: 10px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.cc-tip-foot { color: var(--text-2); border-top: 1px solid var(--hair); margin-top: 3px; padding-top: 2px; }
.cc-weak .cc-tip-val, .cc-weak .cc-tip-label { color: #a8a8ad; }
.cc-sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid transparent; flex-shrink: 0; box-sizing: border-box; }
.cc-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cc-chip { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12px; color: var(--text-3); background: var(--surface-sunken); border: 1px solid var(--hair); border-radius: 999px; padding: 2px 9px; cursor: pointer; }
.cc-chip.on { color: var(--text); background: var(--surface); border-color: var(--hair-strong); }
.cc-chip:hover { border-color: var(--text-3); }
.cc-chip-n { color: var(--text-3); font-size: 11px; }
.cc-head .cc-chip { cursor: default; }
.cc-sw-line { flex-shrink: 0; display: block; }
