/* PERF-W4 scaffold: page entry for dispatch page.
 * dispatch.css 已提升为 HTML <link> 标签（cache-bust: static_url ?v=mtime）。
 * CSS @import 不走模板版本号，nginx immutable 缓存会导致旧规则永久驻留浏览器。 */

/* PERF-A3: 首屏壳（自 dispatch.html extra_head 迁入，避免阻塞解析的大段 inline） */
.dispatch-canvas-layout {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 260px 1fr;
}
@media (max-width: 1080px) {
  .dispatch-canvas-layout {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 2560px) {
  .dispatch-canvas-layout {
    grid-template-columns: 300px 1fr;
  }
}

.evidence-insufficient-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}

/* ── Worker Pool Panel (Phase-2) ─────────────────────────────────────── */
.worker-pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.worker-pool-card {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  background: #fafafa;
  font-size: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.worker-pool-card.healthy {
  border-color: #52c41a;
  background: #f6ffed;
}

.worker-pool-card.stale {
  border-color: #faad14;
  background: #fffbe6;
}

.worker-pool-card.dead {
  border-color: #ff4d4f;
  background: #fff2f0;
}

.worker-pool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.worker-pool-card-title {
  font-weight: 600;
  color: #333;
}

.worker-pool-card-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.worker-pool-card-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.worker-pool-card.healthy .dot { background: #52c41a; }
.worker-pool-card.stale .dot { background: #faad14; }
.worker-pool-card.dead .dot { background: #ff4d4f; }

.worker-pool-card-detail {
  color: #666;
  line-height: 1.6;
}

.worker-pool-card-detail span {
  display: block;
}

/* Scale modal */
.worker-pool-scale-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.worker-pool-scale-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  min-width: 280px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

#worker-pool-section .section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

