/* =====================================================================
   智能预测 · 工具条样式（自用版）
   类名统一 tgp- 前缀，避免与原站样式冲突
   ===================================================================== */
.tgp-bar{
  margin:8px 0 10px;padding:0;border:1px solid #dde3ec;border-radius:6px;
  background:#fafbfd;font-size:12px;color:#333;overflow:hidden;
}
.tgp-row{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;
  padding:7px 10px;border-bottom:1px solid #e8edf4;
}
.tgp-row:last-child{border-bottom:none}
.tgp-title{font-weight:700;color:#1678ff;margin-right:4px;white-space:nowrap}
.tgp-lbl{color:#5b6472;white-space:nowrap}
.tgp-bar select{
  height:24px;line-height:22px;padding:0 4px;font-size:12px;
  border:1px solid #cfd8e3;border-radius:3px;background:#fff;color:#333;outline:none;
}
.tgp-btn{
  height:24px;line-height:22px;padding:0 12px;font-size:12px;cursor:pointer;
  border:1px solid #1678ff;border-radius:3px;background:#1678ff;color:#fff;
  white-space:nowrap;user-select:none;
}
.tgp-btn:hover{background:#0a68ea}
.tgp-btn.ghost{background:#fff;color:#1678ff}
.tgp-btn.ghost:hover{background:#eef5ff}
.tgp-btn:disabled{opacity:.5;cursor:not-allowed}
.tgp-toggle{
  cursor:pointer;user-select:none;padding:3px 8px;border-radius:3px;
  background:#eef2f7;color:#455;font-weight:600;white-space:nowrap;
}
.tgp-toggle:hover{background:#e3eaf3}
.tgp-toggle.on{background:#1678ff;color:#fff}
.tgp-panel{
  padding:8px 10px;border-bottom:1px solid #e8edf4;background:#fff;
}
.tgp-dims{display:flex;flex-wrap:wrap;gap:10px 22px}
.tgp-dim{display:flex;align-items:center;gap:6px}
.tgp-dim .nm{min-width:56px;color:#455;font-weight:600}
.tgp-seg{display:flex;border:1px solid #cfd8e3;border-radius:3px;overflow:hidden}
.tgp-seg span{
  padding:0 7px;height:22px;line-height:22px;cursor:pointer;background:#fff;
  border-right:1px solid #e3e9f2;color:#66717f;user-select:none;font-size:11.5px;
}
.tgp-seg span:last-child{border-right:none}
.tgp-seg span:hover{background:#f2f7ff}
.tgp-seg span.on{background:#1678ff;color:#fff}
.tgp-seg span.z{color:#aab}     /* "关"档 */
.tgp-seg span.z.on{background:#8d97a6;color:#fff}

.tgp-filters{display:flex;flex-direction:column;gap:6px}
.tgp-f{display:flex;align-items:flex-start;gap:8px;line-height:22px}
.tgp-f .nm{min-width:64px;color:#455;font-weight:600;flex-shrink:0}
.tgp-f .ctl{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.tgp-chk{
  padding:0 6px;height:20px;line-height:20px;border:1px solid #d5dde8;border-radius:3px;
  background:#fff;cursor:pointer;color:#66717f;user-select:none;font-size:11.5px;
}
.tgp-chk:hover{border-color:#8fb8f0}
.tgp-chk.on{background:#1678ff;border-color:#1678ff;color:#fff}
.tgp-num{
  width:46px;height:20px;line-height:18px;padding:0 4px;font-size:11.5px;
  border:1px solid #d5dde8;border-radius:3px;text-align:center;outline:none;
}
.tgp-num:focus{border-color:#1678ff}

.tgp-out{
  padding:8px 10px;background:#f7f9fc;border-top:1px solid #e8edf4;
  font-size:12px;line-height:1.75;color:#333;
}
.tgp-out .kv{color:#5b6472}
.tgp-out b{color:#1678ff}
.tgp-out .ok{color:#1a9e5c;font-weight:700}
.tgp-out .warn{color:#c9791e}
.tgp-list{
  max-height:220px;overflow:auto;margin-top:6px;padding:6px 8px;
  background:#fff;border:1px solid #e3e9f2;border-radius:4px;
  font-family:Consolas,Menlo,monospace;font-size:11.5px;line-height:1.9;color:#455;
}
.tgp-list span.item{display:inline-block;min-width:74px;margin-right:6px}
.tgp-pre{
  white-space:pre-wrap;font-family:Consolas,Menlo,monospace;font-size:11.5px;
  line-height:1.8;color:#333;background:#fff;border:1px solid #e3e9f2;
  border-radius:4px;padding:8px;margin-top:6px;max-height:320px;overflow:auto;
}
.tgp-tip{color:#8d97a6;font-size:11px;margin-left:4px}

/* ---- 独立容器（放在走势图表格之外，避免列栅格与事件拦截） ---- */
.tgp-frame{
  position:relative;z-index:2;margin:8px 0 12px;padding:0 2px;
}
.tgp-frame .tgp-bar{margin:0 0 10px}
