/* 上下游溯源(点位详情面板内, trace.js) */
#traceControls:empty { display: none; }
#traceControls { padding-top: 0; }
.trace-actions { display: flex; gap: 8px; margin: 8px 0 6px; }
.trace-actions button { flex: 1; padding: 7px 0; border: none; border-radius: 7px;
  background: #0ea5e9; color: #fff; font-size: 12.5px; cursor: pointer; }
.trace-actions button:hover:not(:disabled) { background: #0284c7; }
.trace-actions button.active { background: #0369a1; }
.trace-actions button:disabled { opacity: .55; cursor: not-allowed; }
.trace-status { font-size: 12px; margin: 2px 0 8px; }
.trace-item { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 6px 0; padding: 7px 9px; border-radius: 8px; background: #f1f5f9;
  font-size: 12.5px; color: #1f2937; }
.trace-label { display: flex; align-items: center; gap: 7px; min-width: 0; }
.trace-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.trace-item button { border: none; border-radius: 6px; color: #fff; padding: 5px 12px;
  cursor: pointer; font-size: 12px; flex: none; }
.trace-item button.active { outline: 2px solid rgba(15,23,42,.35); }

/* 巡检漫游控制条(溯源路线列表下方) */
.trace-roam { display: flex; align-items: center; gap: 7px; margin: 8px 0 2px; padding: 7px 9px;
  border-radius: 8px; background: #eef6ff; font-size: 12px; color: #334155; }
.trace-roam button { border: none; border-radius: 6px; background: #475569; color: #fff;
  padding: 5px 10px; cursor: pointer; font-size: 12px; flex: none; }
.trace-roam button:hover { background: #334155; }
.trace-roam label { flex: none; }
.trace-roam input[type="range"] { flex: 1; min-width: 0; }
.trace-roam em { flex: none; width: 40px; font-style: normal; text-align: right; color: #0369a1; font-weight: 600; }
