/* =====================================================================
   单边 All-to-All 深度报告专属样式（仅 Sentinel 动画板自定义类）
   公共组件样式见 static/css/report.css（.board/.bhead/.stage/.step-desc/
   .legend/.controls/.btn/.flyer 等）；此处只放论文专属类，全部以
   .report 前缀收紧作用域，与 DoIt 主题隔离。
   ===================================================================== */

/* ---------- 舞台尺寸与布局（绝对定位网格，配合 .stage 的 overflow-x:auto） ---------- */
.report .stage.s2a { min-height: 600px; }

.report .s2a-state {
  position: absolute; right: 14px; top: 12px; z-index: 20;
  font-size: 0.72rem; font-weight: 700; color: var(--primary);
  background: var(--highlight); border: 1px solid var(--border);
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}

/* ---------- 生产者 GPU ---------- */
.report .s2a-gpu {
  position: absolute; left: 14px; top: 14px; width: 190px; min-height: 150px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  padding: 10px 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.report .s2a-gpu-t { font-size: 0.8rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.report .s2a-tok {
  height: 46px; border-radius: 8px; margin-bottom: 8px; padding: 4px 10px;
  font-size: 0.72rem; font-weight: 600; line-height: 1.35;
  display: flex; flex-direction: column; justify-content: center;
}
.report .s2a-tok b { font-size: 0.8rem; }
.report .s2a-tok.t0 { background: #eaf2f8; border: 1px solid #aed6f1; color: #2471a3; }
.report .s2a-tok.t1 { background: #fef9e7; border: 1px solid #f7dc6f; color: #7d6608; }
.report .s2a-tok.sending { animation: s2aPulse 1.1s ease-in-out infinite; }

/* ---------- landing 区（固定槽映射） ---------- */
.report .s2a-land {
  position: absolute; left: 230px; top: 14px; width: 560px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  padding: 10px 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.report .s2a-land-t { font-size: 0.8rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; line-height: 1.5; }
.report .s2a-slots { display: flex; gap: 10px; }
.report .s2a-slot {
  flex: 1; min-height: 76px; border-radius: 8px; border: 1px dashed var(--border);
  background: #f8fafc; padding: 6px 8px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 0.72rem; color: var(--text-muted);
}
.report .s2a-slot .hex {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.8rem; font-weight: 700; text-align: center; color: inherit;
}
.report .s2a-slot.sentinel {
  background: repeating-linear-gradient(45deg, #eef2f6, #eef2f6 4px, #fbfcfd 4px, #fbfcfd 8px);
  color: #7f8c8d;
}
.report .s2a-slot.poll { border: 2px solid var(--accent); animation: s2aPoll 1.1s ease-in-out infinite; }
.report .s2a-slot.warm { background: #eafaf1; border: 1px solid var(--accent); color: var(--accent); }
.report .s2a-slot.warm .hex { color: var(--accent); }
.report .s2a-slot.resetflash { animation: s2aFlash 0.8s ease; }
.report .s2a-land-note {
  margin-top: 8px; font-size: 0.74rem; color: var(--text-muted); line-height: 1.55; min-height: 18px;
}
.report .s2a-land-note code { font-size: 0.85em; }

/* ---------- workspace 消费侧 ---------- */
.report .s2a-ws {
  position: absolute; left: 230px; top: 272px; width: 560px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  padding: 10px 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.report .s2a-ws-t { font-size: 0.8rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; line-height: 1.5; }
.report .s2a-wsrow { display: flex; gap: 10px; }
.report .s2a-wscell {
  flex: 1; height: 42px; border: 1px dashed var(--border); border-radius: 8px; background: #f8fafc;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; color: var(--text-muted);
}
.report .s2a-wscell.filled { background: #eafaf1; border: 1px solid var(--accent); color: var(--accent); font-weight: 700; }

/* ---------- Fence 对照轨 ---------- */
.report .s2a-rail {
  position: absolute; left: 14px; bottom: 14px; width: 776px; height: 168px;
  border: 1px solid var(--border); border-radius: 10px; background: #fdf4f3;
  padding: 10px 12px;
}
.report .s2a-rail-t { font-size: 0.8rem; font-weight: 700; color: var(--danger); margin-bottom: 8px; }
.report .s2a-fsteps { display: flex; gap: 8px; }
.report .s2a-fstep {
  flex: 1; min-height: 82px; border-radius: 8px; border: 1px solid #f5b7b1; background: #fff;
  padding: 6px 8px; font-size: 0.7rem; color: var(--danger); line-height: 1.5;
  display: flex; flex-direction: column; justify-content: center; text-align: center;
  position: relative;
}
.report .s2a-fstep b { display: block; margin-bottom: 4px; font-size: 0.76rem; }
.report .s2a-fstep.skip { opacity: 0.32; }
.report .s2a-fstep.skip::after { content: "✕"; position: absolute; right: 6px; top: 4px; color: var(--danger); font-weight: 700; }
.report .s2a-rail-note { margin-top: 8px; font-size: 0.74rem; color: var(--text-muted); line-height: 1.5; }
.report .s2a-rail-note b { color: var(--success); }

/* ---------- 动画关键帧 ---------- */
@keyframes s2aPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(41,128,185,0); }
  50% { box-shadow: 0 0 0 5px rgba(41,128,185,.4); }
}
@keyframes s2aPoll {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,137,123,0); }
  50% { box-shadow: 0 0 0 5px rgba(0,137,123,.4); }
}
@keyframes s2aFlash {
  0% { box-shadow: 0 0 0 4px rgba(211,84,0,.45); }
  100% { box-shadow: 0 0 0 0 rgba(211,84,0,0); }
}
