/* =====================================================================
   Expert Coupling 报告 · 专属样式
   作用域：动画板「Token 挪移」（类名 xcp-*）
   依赖：css/report.css 的设计变量（--primary / --accent / --danger 等）
   与动画板壳（.board / .stage / .controls / .legend / .flyer）
   ===================================================================== */

/* 舞台：给飞行方块留出绝对定位空间 */
.report .board .stage.xcp-shuf-stage { min-height: 330px; }

/* 布局：左侧 rank 泳道 + 右侧规划器面板 */
.report .xcp-shuf {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start;
  min-width: 680px;
}
.report .xcp-ranks {
  flex: 1 1 400px; min-width: 400px;
  display: flex; flex-direction: column; gap: 12px;
}

/* 每个 rank 一行：标签 + 泳道 + 容量计 */
.report .xcp-rank { display: flex; align-items: center; gap: 8px; }
.report .xcp-rank-lbl {
  flex: 0 0 58px; font-size: 0.8rem; font-weight: 700; color: var(--primary);
}
.report .xcp-lane {
  flex: 1; display: flex; gap: 8px; align-items: center;
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; min-height: 66px;
}
.report .xcp-cap { flex: 0 0 64px; font-size: 0.68rem; color: var(--text-muted); }
.report .xcp-cap b { display: block; color: var(--primary); font-size: 0.72rem; }
.report .xcp-capline {
  height: 6px; background: #eef2f6; border-radius: 3px;
  overflow: hidden; margin-top: 4px;
}
.report .xcp-capline i { display: block; height: 100%; background: var(--accent); }

/* token chip：左缘色 = 预测 owner */
.report .xcp-chip {
  position: relative; flex: 0 0 auto; width: 80px; height: 56px;
  border-radius: 8px; background: var(--surface);
  border: 1px solid var(--border); border-left: 5px solid #999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.report .xcp-chip b { font-size: 0.85rem; color: var(--text); }
.report .xcp-chip .xcp-pref { font-size: 0.66rem; color: var(--text-muted); line-height: 1.3; }
.report .xcp-chip.local { background: #eafaf1; border-color: #a3e4b7; }
.report .xcp-chip.off { background: #fdf4f3; border-color: #f5b7b1; }
.report .xcp-chip .xcp-ok, .report .xcp-chip .xcp-miss {
  position: absolute; top: -8px; right: -6px; border-radius: 999px;
  font-size: 0.62rem; font-weight: 700; padding: 1px 5px; color: #fff;
}
.report .xcp-chip .xcp-ok { background: var(--success); }
.report .xcp-chip .xcp-miss { background: var(--danger); }

/* 右侧规划器面板 */
.report .xcp-panel {
  flex: 0 0 252px; border: 1px dashed var(--border); border-radius: 8px;
  background: #fbfdfc; padding: 12px 14px; font-size: 0.78rem; line-height: 1.7;
}
.report .xcp-panel b {
  display: block; color: var(--primary); margin-bottom: 6px; font-size: 0.82rem;
}
.report .xcp-panel .xcp-line { margin: 0 0 5px; }
.report .xcp-panel .xcp-line.hot { color: var(--danger); font-weight: 700; }
.report .xcp-panel .xcp-line.good { color: var(--success); font-weight: 600; }

/* 图例行内的动态本地份额徽章 */
.report .xcp-metric {
  display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px;
  background: var(--highlight); border: 1px solid var(--border);
  color: var(--primary); font-weight: 700; font-size: 0.76rem;
}
