/* K 線圖面板：核心看盤（指標勾選 + VP 工具） */

.sc-core-watch-stack {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-core-watch-vp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 6px 10px;
  background: #0a1522;
  border: 1px solid var(--line, #374151);
  border-radius: 8px;
}

.sc-core-watch-vp .sc-core-watch-vp-sep {
  width: 1px;
  height: 18px;
  background: var(--line, #374151);
  flex-shrink: 0;
}

.sc-core-watch-bar {
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 6px 10px;
  background: #0d1a2e;
  border: 1px solid var(--line, #374151);
  border-radius: 8px;
}

.sc-core-watch-title {
  flex: 0 0 100%;
  width: 100%;
  font-size: 11px;
  font-weight: 800;
  color: #93c5fd;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 0;
}

.sc-core-watch-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  line-height: 1.3;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  flex: 0 0 auto;
  max-width: 100%;
}

.sc-core-watch-item input {
  margin: 0;
  cursor: pointer;
  accent-color: #2563eb;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.sc-core-watch-item span {
  flex: 0 1 auto;
}

.sc-core-watch-item:hover {
  color: #f1f5f9;
}

/* 較長中文標籤：不強制佔兩欄，僅防 Safari 重疊 */
.sc-core-watch-item-wide {
  flex: 0 0 auto;
}

/* 子面板標題列：順序 ↑↓（與 super-chart.html 內聯 class 並用） */
.sc-subpanel-order-btn {
  padding: 1px 5px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  color: #94a3b8;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  cursor: pointer;
}

.sc-subpanel-order-btn:hover {
  color: #e2e8f0;
  background: #334155;
}

/* 子面板標題：拖曳把手（與其他子面板交換順序） */
.sc-subpanel-drag-grip {
  cursor: grab;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  padding: 0 4px;
  user-select: none;
  flex-shrink: 0;
  letter-spacing: -2px;
}

.sc-subpanel-drag-grip:active {
  cursor: grabbing;
}

.pine-sub-panel.sc-subpanel-drag-over {
  outline: 2px dashed #38bdf8;
  outline-offset: 2px;
}

/* 子面板標題列可整列拖曳排序（按鈕除外） */
.pine-sub-panel-header-row[draggable="true"] {
  cursor: grab;
}
.pine-sub-panel-header-row[draggable="true"]:active {
  cursor: grabbing;
}
