/* =====================================================================
   FP4Quant 报告专属样式：warp 协作 FP4 打包动画板（.pk-* 板件）
   公共组件样式（nav/section/table/board/controls/btn 等）见 css/report.css；
   本文件只定义打包动画板的自定义类，选择器统一以 .report 前缀收紧作用域。
   ===================================================================== */

/* ---------- 动画板舞台 ---------- */
.report .pk-stage { min-height: 320px; padding: 14px; }
.report .pk-rowlbl {
  font-size: 0.73rem; color: var(--text-muted); font-weight: 600;
  margin: 12px 0 8px;
}
.report .pk-rowlbl:first-child { margin-top: 0; }

/* ---------- 线程 lane 行 ---------- */
.report .pk-lanes { display: flex; gap: 4px; }
.report .pk-lane {
  flex: 1 1 0; min-width: 42px; height: 54px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; position: relative;
  transition: background 0.25s, border-color 0.25s, opacity 0.25s;
}
.report .pk-lane .t {
  font-size: 0.6rem; color: var(--text-muted);
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
}
.report .pk-lane .q {
  font-size: 1.05rem; font-weight: 700; color: var(--primary);
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
}
.report .pk-lane.odd { background: #f4f6f8; }
.report .pk-lane.mv { border-color: var(--accent); background: #f2faf9; }
.report .pk-lane.asmb { border: 2px solid var(--accent); background: #eafaf1; }
.report .pk-lane.idle { opacity: 0.32; }
.report .pk-lane.pulse { animation: pkPulse 1.3s ease-in-out infinite; }
@keyframes pkPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 137, 123, 0); }
  50% { box-shadow: 0 0 0 4px rgba(0, 137, 123, 0.45); }
}

/* ---------- nibble 对（组装后偶数 lane 的内容） ---------- */
.report .pknib { display: flex; gap: 3px; }
.report .pknib .hi, .report .pknib .lo {
  width: 18px; height: 20px; line-height: 20px; text-align: center;
  border-radius: 4px; font-size: 0.8rem; font-weight: 700;
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
}
.report .pknib .hi { background: #fdf4f3; color: var(--danger); }
.report .pknib .lo { background: #eaf2f8; color: var(--primary); }

/* ---------- packed 缓冲行 ---------- */
.report .pk-packed { display: flex; gap: 6px; }
.report .pk-byte {
  flex: 1 1 0; min-width: 82px; height: 58px;
  border: 1px dashed var(--border); border-radius: 6px; background: #f8fafc;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: #94a3b8; position: relative;
  transition: background 0.25s, border-color 0.25s;
}
.report .pk-byte.full {
  border: 1px solid var(--accent); background: #f0faf4; color: var(--accent);
  font-weight: 700; font-size: 0.92rem;
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
}
.report .pk-byte.rd { background: #eef6ff; border-color: #7fb3d5; color: #2471a3; }

/* ---------- 字节账注记 ---------- */
.report .pk-savings {
  margin: 14px 0 0; padding: 8px 12px; border-radius: 6px;
  background: var(--highlight); border: 1px dashed var(--accent-light);
  font-size: 0.78rem; color: var(--text); line-height: 1.6;
}
.report .pk-savings b { color: var(--primary); }
