/* M2: structure colors -> semantic tokens where exact-match. */
/* 主力动向 V4-B1 布局 — 深色风格，不改原桌面主色 */

/*
 * V4-C4：仅压缩顶部无效空间（展示层）
 * - 保留 #v4SyncBar DOM，视觉折叠
 * - 收紧标题 / TAB / 控制栏间距，主图上移
 *
 * V4-C7：继续压缩垂直留白，主图整体上移（不改功能）
 * - TAB 上下间距再收紧
 * - 最近交易日 + 板块资金动向标题同一紧凑行
 *
 * V4-C8：横向布局 — 加宽右侧榜 + 整体右侧留白（不改功能）
 * - 板块资金动向：主图 / 右侧榜 220→260
 * - 市场资金结构趋势：四档曲线 / 四档榜同步
 */
body.has-desktop-shell .mainFlowTopBar {
  height: 40px !important;
}
body.has-desktop-shell .wrap {
  padding-top: 2px !important;
  padding-bottom: 12px !important;
  padding-left: 10px !important;
  padding-right: 22px !important;
  box-sizing: border-box;
}
/* C8：主曲线 + 右侧榜横向比例（覆盖 desktop.css 壳层 220px） */
body.has-desktop-shell .mainFlowCard .mainRow {
  grid-template-columns: minmax(0, 1fr) 260px !important;
  gap: 14px !important;
}
body.has-desktop-shell .mainFlowCard .sidePanel {
  width: 260px !important;
  max-width: 260px !important;
  min-width: 260px !important;
}
body.has-desktop-shell .mainFlowCard .sideRow {
  padding: 0 10px !important;
  column-gap: 8px !important;
}
body.has-desktop-shell .mainFlowCard .sidePanelHead {
  padding-left: 12px !important;
  padding-right: 12px !important;
}
body.has-desktop-shell .mainFlowCard .topControlArea {
  gap: 2px !important;
  margin-bottom: 2px !important;
}
.mainFlowCard .topControlArea {
  gap: 2px;
  margin-bottom: 2px;
}
.mainFlowCard .toolbarGrid {
  gap: 4px;
}
/* 交易状态 + 模块标题：同一行紧凑展示 */
.mainFlowCard .v4CompactMetaRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: 0;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}
.mainFlowCard .v4CompactMetaRow .toolbarTinyStatus {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  line-height: 1.2 !important;
  font-size: 12px;
}
.mainFlowCard .v4CompactMetaRow .v4ModuleTitle--hot {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: .03em;
  white-space: nowrap;
  line-height: 1.2;
}
/* 非资金热点 TAB：隐藏热点模块标题，避免串台 */
.mainFlowCard:has(.v4TabPanel[data-v4-panel="structure"].is-active) .v4ModuleTitle--hot,
.mainFlowCard:has(.v4TabPanel[data-v4-panel="tracks"].is-active) .v4ModuleTitle--hot {
  display: none !important;
}
.mainFlowCard .toolbarTinyStatus {
  margin: 0;
  padding: 0;
  min-height: 0;
  line-height: 1.2;
  font-size: 12px;
}
.mainFlowCard .hint.v4TabHint {
  margin: 0 0 4px;
  padding: 0;
  line-height: 1.3;
  font-size: 12px;
}
/* 资金热点说明提示：视觉折叠（DOM 保留） */
.mainFlowCard .hint.v4TabHint[data-v4-hint="sectors"] {
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}
/* V1-B：图表顶轻提示，不显著占高 */
.mainFlowCard .chartInteractHint {
  margin: 0 0 4px;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--color-text-soft);
}
body.v4-mobile .mainFlowCard .chartInteractHint,
body.watch-mobile-embed.v4-mobile .mainFlowCard .chartInteractHint {
  margin: 0 0 2px;
  font-size: 10px;
  line-height: 1.2;
  opacity: .9;
}
/* 1号：同步条视觉隐藏并压高度，JS 仍可写 textContent */
#v4SyncBar.v4SyncBar,
#v4SyncBar.is-visually-collapsed,
.v4SharedControls #v4SyncBar {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}
/* 加载完成的 status 不占位 */
.mainFlowCard #status.hiddenStatus,
.mainFlowCard .status.hiddenStatus {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* 标题下第一层主导航 */
.v4TabBar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin: 0 0 2px;
  padding: 0 0 2px;
  border-bottom: 1px solid var(--color-border-tab);
}
.v4TabBtn {
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--color-border-control);
  background: var(--color-bg-control);
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.v4TabBtn:hover {
  background: var(--color-bg-control-hover);
  border-color: var(--color-border-selected);
  color: var(--color-text-primary);
}
.v4TabBtn.is-active {
  background: var(--color-bg-selected);
  border-color: var(--color-border-selected);
  color: var(--color-text-on-selected);
  box-shadow: var(--shadow-selected-inset);
}
.v4TabPanel[hidden] { display: none !important; }
.v4TabPanel.is-active { display: block; }

.v4SectionTitle {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 4px 0 10px;
  letter-spacing: .03em;
}
.v4SectionMeta {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-left: 8px;
}
.v4HotModule { margin: 0; }
.v4ModuleTitle {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: .03em;
  margin: 0 0 2px;
}
.v4HotModule .mainRow {
  margin-top: 0;
}

/*
 * TAB1 市场资金趋势：默认展示；高度不超过主图 50%
 * --v4-market-trend-h 由 JS 按 #chart 高度计算，兜底 280px（≈610*0.46）
 */
.v4MarketTrend {
  --v4-market-trend-h: 280px;
  margin-top: 10px;
  padding: 8px 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--color-border-card);
  background: var(--color-bg-inset);
  max-height: calc(var(--v4-market-trend-h) + 36px);
  overflow: hidden;
}
.v4MarketTrendHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.v4MarketTrendTitle {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text-primary);
}
.v4MarketTrendSub {
  font-size: 11px;
  color: var(--color-text-soft-2);
}
.v4MarketTrendRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: 14px;
  height: var(--v4-market-trend-h);
  max-height: var(--v4-market-trend-h);
  align-items: stretch;
}
/* 与上方右侧榜同宽，视觉对齐 */
body.has-desktop-shell .v4MarketTrendRow {
  grid-template-columns: minmax(0, 1fr) 260px;
}
.v4MarketTrendChartCol {
  min-width: 0;
  height: 100%;
  overflow: visible;
}
.v4MarketTrendChart {
  width: 100%;
  height: 100%;
  max-height: var(--v4-market-trend-h);
  overflow: visible;
}
.v4MarketTrendRank {
  min-width: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-border-card);
  background: var(--color-bg-inset);
  padding: 8px 10px 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.v4MarketTrendRankTitle {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  flex: 0 0 auto;
}
.v4MarketTrendRankHead,
.v4TierRankItem {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(64px, 0.95fr) 48px 52px;
  gap: 4px 6px;
  align-items: center;
}
.v4MarketTrendRankHead {
  flex: 0 0 auto;
  padding: 2px 8px 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-soft-2);
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: 4px;
}
.v4MarketTrendRankHead span:nth-child(n+2) { text-align: right; }
.v4MarketTrendRankList {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.v4TierRankItem {
  --tier-color: #c5d4e8;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--color-border-tab);
  border-left: 3px solid var(--tier-color);
  background: var(--color-bg-elevated-soft);
  font-variant-numeric: tabular-nums;
}
.v4TierRankItem .nm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v4TierRankItem .nm .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tier-color);
  flex: 0 0 auto;
}
.v4TierRankItem .amt {
  text-align: right;
  font-size: 12px;
  font-weight: 800;
}
.v4TierRankItem .share {
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-soft-2);
}
.v4TierRankItem .dir {
  text-align: right;
  font-size: 11px;
  font-weight: 700;
}
.v4TierRankItem.is-up .amt,
.v4TierRankItem .dir.is-up { color: #ff6b6b; }
.v4TierRankItem.is-down .amt,
.v4TierRankItem .dir.is-down { color: #3dd68c; }
.v4TierRankItem.is-flat .amt,
.v4TierRankItem .dir.is-flat { color: #c5d4e8; }

/* TAB2 资金画像：H18 三列密排矩阵 + 饼柱（无 sparkline） */
.v4StructureTop { margin-bottom: 8px; }
.v4StructureTop .v4SectionTitle { margin: 2px 0 6px; font-size: 13px; }
.v4StructureTop .v4SectionMeta { font-size: 11px; }
.v4SectorCards { min-width: 0; }

/* V3-B1.2 最终：板块涨幅复用同一 #chart（无 spacer） */
/* V3-B1.5-CS：待上线占位时不移入 #chart */

.v4TabBtn .v4TabSoon {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-link);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border-control);
  vertical-align: middle;
}

.v4PctComingSoon {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 24px;
  margin: 4px 0 8px;
  border-radius: 12px;
  border: 1px dashed var(--color-border-strong);
  background:
    radial-gradient(circle at 12% 0%, var(--color-bg-canvas-glow-1), transparent 45%),
    var(--color-bg-structure-card);
}
.v4PctComingSoonBadge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text-link);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border-control);
}
.v4PctComingSoonTitle {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}
.v4PctComingSoonLead {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.v4PctComingSoonList {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.v4PctComingSoonList code {
  color: var(--color-text-link);
  font-size: 11px;
}
.v4PctComingSoonFoot {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--color-text-soft-2);
}
.v4PctSoonRow .sideName {
  color: var(--color-text-soft);
}

#v4PctSidePanel.sidePanel .sideVal.is-pos { color: #ff6b6b; font-weight: 700; }
#v4PctSidePanel.sidePanel .sideVal.is-neg { color: #3dd68c; font-weight: 700; }
#v4PctSidePanel.sidePanel .sideVal.is-zero { color: var(--color-text-muted); }
#v4PctSidePanel.sidePanel .sideList {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
body.v4-mobile .v4PctHotModule .v4HotRankToggle,
body.watch-mobile-embed.v4-mobile .v4PctHotModule .v4HotRankToggle {
  display: inline-flex;
}
.v4PctHotModule .chartCol .chartInteractHint {
  margin: 0 0 2px;
}
.v4SectorRankBoard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 8px;
  border: 1px solid var(--color-border-card);
  border-radius: 10px;
  background:
    radial-gradient(circle at 8% 0%, rgba(50, 110, 180, .12), transparent 42%),
    var(--color-bg-inset);
  padding: 4px 6px;
}
.v4SectorRankBoard.cols-1 { grid-template-columns: 1fr; }
.v4SectorRankBoard.cols-2 { grid-template-columns: 1fr 1fr; }
.v4SectorRankCol {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.v4SectorRankRow {
  display: grid;
  grid-template-columns: 36px minmax(0, 1.05fr) 68px 14px minmax(40px, .85fr);
  align-items: center;
  gap: 4px 5px;
  min-height: 38px;
  height: 40px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-control);
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.v4SectorRankRow:hover,
.v4SectorRankRow:focus-visible {
  border-color: var(--color-border-strong);
  background: var(--color-bg-control-hover);
  outline: none;
}
/* V4-H18：流入淡红 / 流出淡绿（深色底，禁止白底） */
.v4SectorRankRow.is-up {
  background: rgba(255, 80, 80, 0.08);
  border-color: rgba(255, 100, 100, 0.35);
  box-shadow: inset 3px 0 0 0 rgba(255, 72, 72, 0.9);
}
.v4SectorRankRow.is-up:hover,
.v4SectorRankRow.is-up:focus-visible {
  background: rgba(255, 80, 80, 0.14);
  border-color: rgba(255, 110, 110, 0.5);
  box-shadow: inset 3px 0 0 0 rgba(255, 90, 90, 1);
}
.v4SectorRankRow.is-down {
  background: rgba(50, 220, 150, 0.08);
  border-color: rgba(50, 220, 150, 0.3);
  box-shadow: inset 3px 0 0 0 rgba(40, 200, 140, 0.9);
}
.v4SectorRankRow.is-down:hover,
.v4SectorRankRow.is-down:focus-visible {
  background: rgba(50, 220, 150, 0.14);
  border-color: rgba(60, 230, 160, 0.45);
  box-shadow: inset 3px 0 0 0 rgba(50, 220, 150, 1);
}
.v4SectorRankRow .rk {
  font-size: 10px;
  font-weight: 800;
  color: var(--color-text-muted);
  letter-spacing: .01em;
}
.v4SectorRankRow .nm {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.v4SectorRankRow .amt {
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.v4SectorRankRow .amt.is-pos { color: #ff6b6b; }
.v4SectorRankRow .amt.is-neg { color: #3dd68c; }
.v4SectorRankRow .amt.is-zero { color: var(--color-text-muted); }
.v4SectorRankRow .dir {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.v4SectorRankRow .dir.is-up { color: #ff6b6b; }
.v4SectorRankRow .dir.is-down { color: #3dd68c; }
.v4SectorRankRow .dir.is-flat { color: rgba(180, 205, 230, .5); }
.v4SectorRankRow .bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(90, 120, 155, .2);
  overflow: hidden;
  min-width: 0;
}
.v4SectorRankRow .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: 0;
}
.v4SectorRankRow.is-up .bar i {
  background: linear-gradient(90deg, rgba(255, 80, 80, .55), #ff5a5a);
}
.v4SectorRankRow.is-down .bar i {
  background: linear-gradient(90deg, rgba(45, 190, 120, .45), #3dd68c);
}
.v4SectorRankRow.is-flat .bar i {
  background: rgba(160, 185, 210, .45);
}

/* 轨迹卡片流入/流出底色（板块轨迹 TAB，保持不动） */
.v4TrackCard.is-up {
  background:
    linear-gradient(180deg, rgba(255, 80, 80, .10), var(--color-bg-sheet));
  border-color: rgba(255, 100, 100, .35);
  box-shadow: inset 3px 0 0 rgba(255, 90, 90, .75);
}
.v4TrackCard.is-down {
  background:
    linear-gradient(180deg, rgba(50, 220, 150, .10), var(--color-bg-sheet));
  border-color: rgba(50, 220, 150, .30);
  box-shadow: inset 3px 0 0 rgba(61, 214, 140, .75);
}
.v4TrackCard.is-flat {
  box-shadow: inset 3px 0 0 rgba(140, 170, 200, .28);
}

.v4StructureBottom { margin-top: 4px; }
.v4StructureCharts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.v4StructureChartCard {
  border-radius: 12px;
  border: 1px solid var(--color-border-card, var(--color-border-card));
  background:
    radial-gradient(circle at 10% 0%, var(--color-bg-canvas-glow-1, rgba(50, 110, 180, .16)), transparent 50%),
    var(--color-bg-structure-card, var(--color-bg-structure-card));
  padding: 12px;
}
.v4ChartLabel {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text-body, rgba(220, 235, 250, .92));
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.v4ChartBox {
  width: 100%;
  height: 280px;
}

/* TAB3 板块轨迹：桌面 5 列 · 手机 2 列 · 约 120px 高 */
.v4TrackGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.v4TrackCard {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid var(--color-border-card);
  background: var(--color-bg-track);
  padding: 6px 8px 4px;
  cursor: pointer;
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  box-sizing: border-box;
  transition: border-color .15s ease, transform .15s ease;
}
.v4TrackCard:hover {
  border-color: rgba(150, 195, 245, .45);
  transform: translateY(-1px);
}
.v4TrackCardHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 1px;
  flex-shrink: 0;
}
.v4TrackCardName {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  flex-shrink: 0;
}
.v4TrackCardVal {
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin: 1px 0 2px;
  flex-shrink: 0;
}
.v4TrackCardVal.is-pos { color: #ff6b6b; }
.v4TrackCardVal.is-neg { color: #3dd68c; }
.v4TrackCardVal.is-zero { color: var(--color-text-muted); }
.v4TrackRank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 16px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(90, 140, 200, .18);
  border: 1px solid rgba(130, 170, 220, .28);
  color: var(--color-text-secondary);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .02em;
}
.v4TrackDir {
  font-weight: 700;
  font-size: 10px;
  white-space: nowrap;
}
.v4TrackDir.is-up { color: #ff6b6b; }
.v4TrackDir.is-down { color: #3dd68c; }
.v4TrackDir.is-flat { color: rgba(170, 198, 225, .72); }
.v4TrackChart {
  width: 100%;
  height: 54px;
  min-height: 54px;
  flex: 1 1 auto;
  margin-top: auto;
}
.v4Empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--color-text-soft-2);
  font-size: 13px;
  border: 1px dashed rgba(120, 155, 195, .25);
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .v4SectorRankBoard,
  .v4SectorRankBoard.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .v4StructureCharts { grid-template-columns: 1fr; }
  .v4SectorRankBoard,
  .v4SectorRankBoard.cols-2,
  .v4SectorRankBoard.cols-3 { grid-template-columns: 1fr; }
  .v4TrackGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4MarketTrendRow {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
  .v4MarketTrend {
    max-height: none;
  }
  .v4MarketTrendChartCol,
  .v4MarketTrendChart {
    height: min(var(--v4-market-trend-h), 240px);
    max-height: min(var(--v4-market-trend-h), 240px);
  }
  .v4MarketTrendRank {
    height: auto;
    max-height: none;
  }
}
@media (max-width: 768px) {
  .v4TabBtn { font-size: 12px; height: 34px; }
  .v4TrackGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4SectorRankBoard { padding: 4px; }
  .v4SectorRankBoard.cols-2 { grid-template-columns: 1fr 1fr; }
  /* 窄屏仍保持 H18 单行横条；名称换行策略仅由 body.v4-mobile 控制 */
  .v4SectorRankRow {
    grid-template-columns: 34px minmax(0, 1fr) 64px 12px minmax(36px, .75fr);
    height: 40px;
    min-height: 38px;
    align-items: center;
  }
  .v4TrackCardName {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.25;
    word-break: break-word;
    flex-shrink: 1;
  }
  .v4TrackCard {
    height: auto;
    min-height: 120px;
    max-height: none;
  }
  .v4ChartBox { height: 220px; }
  .mainRow { flex-direction: column; }
}

/*
 * V4-MOBILE-LAYOUT：手机板块资金曲线纯视觉（高度/边距）
 * 不改桌面；不碰 series / endLabel / cutoff
 */
body.watch-mobile-embed.v4-mobile .wrap,
body.v4-mobile .wrap {
  padding-left: 4px !important;
  padding-right: 4px !important;
}
body.watch-mobile-embed.v4-mobile .mainFlowCard .chartCol,
body.v4-mobile .mainFlowCard .chartCol {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.watch-mobile-embed.v4-mobile #chart,
body.v4-mobile #chart {
  width: 100% !important;
  min-height: 600px !important;
  height: min(72vh, 640px) !important;
  max-height: none !important;
  overflow: visible !important;
}

/*
 * V4-H7 恢复：手机回放中心浮层（不改桌面居中 modal / 不改开关逻辑）
 */
body.v4-mobile #unifiedReplayPanel.unifiedReplayPanel,
body.watch-mobile-embed #unifiedReplayPanel.unifiedReplayPanel {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10050 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 0 !important;
  box-sizing: border-box;
}
body.v4-mobile #unifiedReplayPanel.unifiedReplayPanel[hidden],
body.watch-mobile-embed #unifiedReplayPanel.unifiedReplayPanel[hidden] {
  display: none !important;
}
body.v4-mobile #unifiedReplayPanel .unifiedReplayPanelBackdrop,
body.watch-mobile-embed #unifiedReplayPanel .unifiedReplayPanelBackdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10050 !important;
}
body.v4-mobile #unifiedReplayPanel .unifiedReplayPanelCard,
body.watch-mobile-embed #unifiedReplayPanel .unifiedReplayPanelCard {
  position: fixed !important;
  top: 80px !important;
  left: 12px !important;
  right: 12px !important;
  width: auto !important;
  max-width: none !important;
  max-height: calc(100vh - 120px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  z-index: 10051 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/*
 * V4-MOBILE-MS：市场资金结构趋势（曲线高度/边距）
 * V4-MOBILE-MARKET-TIER-RAIL：默认全宽曲线 + 右侧竖向「展开四档」；展开左曲线右四档榜
 */
body.v4-mobile .v4MarketTrend,
body.watch-mobile-embed.v4-mobile .v4MarketTrend {
  max-height: none !important;
  overflow: visible !important;
  padding: 8px 6px 10px !important;
}
body.v4-mobile .v4MarketTrendChartCol,
body.watch-mobile-embed.v4-mobile .v4MarketTrendChartCol {
  position: relative !important;
  min-width: 0 !important;
}
body.v4-mobile .v4MarketTrendChartCol,
body.v4-mobile .v4MarketTrendChart,
body.watch-mobile-embed.v4-mobile .v4MarketTrendChartCol,
body.watch-mobile-embed.v4-mobile .v4MarketTrendChart {
  width: 100% !important;
  height: var(--v4-market-trend-h, 320px) !important;
  min-height: 280px !important;
  max-height: none !important;
}
/* 默认折叠：四档榜隐藏，曲线全宽 */
body.v4-mobile .v4MarketTrend:not(.is-tier-expanded) .v4MarketTrendRank,
body.watch-mobile-embed.v4-mobile .v4MarketTrend:not(.is-tier-expanded) .v4MarketTrendRank {
  display: none !important;
}
body.v4-mobile .v4MarketTrend:not(.is-tier-expanded) .v4MarketTrendRow,
body.watch-mobile-embed.v4-mobile .v4MarketTrend:not(.is-tier-expanded) .v4MarketTrendRow {
  display: grid !important;
  grid-template-columns: 1fr !important;
  height: auto !important;
  max-height: none !important;
  gap: 0 !important;
}
/* 展开：左趋势曲线 + 右四档榜（独立选择器，不复用板块资金） */
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRow,
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRow {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(152px, 42%) !important;
  gap: 8px !important;
  height: var(--v4-market-trend-h, 320px) !important;
  max-height: none !important;
  align-items: stretch !important;
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRank,
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRank {
  display: flex !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  max-height: none !important;
  padding: 8px 8px 6px !important;
  overflow: hidden !important;
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankList,
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankList {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankTitle,
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankTitle {
  font-size: 11px !important;
  margin-bottom: 2px !important;
}
/* 展开窄栏：flex 横排 名称|金额|方向（隐藏占比，避免 grid fr 塌缩） */
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankHead,
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankHead {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankHead span:nth-child(1),
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankHead span:nth-child(1) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankHead span:nth-child(2),
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankHead span:nth-child(4),
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankHead span:nth-child(2),
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankHead span:nth-child(4) {
  flex: 0 0 auto !important;
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankHead span:nth-child(3),
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankHead span:nth-child(3) {
  display: none !important;
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem,
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 36px !important;
  height: auto !important;
  padding: 6px 6px !important;
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .share,
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .share {
  display: none !important;
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .nm,
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .nm {
  display: inline-flex !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 11px !important;
  gap: 0 !important;
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .nm .dot,
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .nm .dot {
  display: none !important;
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .amt,
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .amt {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  font-size: 11px !important;
}
/* 方向列只保留箭头，给名称让位 */
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .dir,
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .dir {
  flex: 0 0 14px !important;
  width: 14px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  font-size: 0 !important;
  text-align: center !important;
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .dir.is-up::before,
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .dir.is-up::before {
  content: "↑";
  font-size: 12px;
  font-weight: 800;
  color: #ff6b6b;
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .dir.is-down::before,
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .dir.is-down::before {
  content: "↓";
  font-size: 12px;
  font-weight: 800;
  color: #3dd68c;
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .dir.is-flat::before,
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4TierRankItem .dir.is-flat::before {
  content: "–";
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text-muted);
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankHead span:nth-child(4),
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTrendRankHead span:nth-child(4) {
  width: 14px !important;
  overflow: hidden !important;
  font-size: 0 !important;
}
/* 右侧竖向悬浮入口 */
.v4MarketTierToggle {
  display: none;
}
body.v4-mobile .v4MarketTierToggle,
body.watch-mobile-embed.v4-mobile .v4MarketTierToggle {
  display: inline-flex !important;
  position: absolute !important;
  top: 50% !important;
  right: 4px !important;
  z-index: 6;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  height: auto;
  min-height: 96px;
  padding: 10px 0;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(145, 174, 210, .42);
  background: var(--color-bg-sheet);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  backdrop-filter: blur(6px);
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
body.v4-mobile .v4MarketTierToggle::before,
body.watch-mobile-embed.v4-mobile .v4MarketTierToggle::before {
  content: "展开四档";
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.15;
  writing-mode: vertical-rl;
  text-orientation: upright;
}
body.v4-mobile .v4MarketTierToggle[aria-expanded="true"],
body.watch-mobile-embed.v4-mobile .v4MarketTierToggle[aria-expanded="true"] {
  min-height: 64px;
  border-color: rgba(120, 190, 255, .58);
  background: rgba(28, 68, 108, .9);
}
body.v4-mobile .v4MarketTierToggle[aria-expanded="true"]::before,
body.watch-mobile-embed.v4-mobile .v4MarketTierToggle[aria-expanded="true"]::before {
  content: "收起";
  color: var(--color-text-bright);
}
body.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTierToggle,
body.watch-mobile-embed.v4-mobile .v4MarketTrend.is-tier-expanded .v4MarketTierToggle {
  right: 2px !important;
}
body.v4-mobile .v4MarketTrendRankHead,
body.v4-mobile .v4TierRankItem,
body.watch-mobile-embed.v4-mobile .v4MarketTrendRankHead,
body.watch-mobile-embed.v4-mobile .v4TierRankItem {
  /* 资金热点：横向排行 名称 | 金额 | 占比 | 方向 */
  grid-template-columns: minmax(0, 1.8fr) minmax(64px, 0.9fr) minmax(48px, 0.65fr) minmax(56px, 0.75fr) !important;
  gap: 6px 8px !important;
  align-items: center !important;
}
body.v4-mobile .v4TierRankItem,
body.watch-mobile-embed.v4-mobile .v4TierRankItem {
  padding: 10px 12px !important;
  min-height: 44px !important;
  height: auto !important;
}
/*
 * V4-MOBILE-NAME-H18：热点/画像名称横向单行（禁止竖向拆字）；
 * 板块轨迹仍允许换行。仅限 body.v4-mobile / watch-mobile-embed。
 */
body.v4-mobile .v4TierRankItem .nm,
body.watch-mobile-embed.v4-mobile .v4TierRankItem .nm {
  font-size: 13px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
/* 资金画像：单列全宽，恢复 H18 横条 TOP|名称|金额|方向|强度条 */
body.v4-mobile .v4SectorRankBoard,
body.v4-mobile .v4SectorRankBoard.cols-1,
body.v4-mobile .v4SectorRankBoard.cols-2,
body.v4-mobile .v4SectorRankBoard.cols-3,
body.watch-mobile-embed.v4-mobile .v4SectorRankBoard,
body.watch-mobile-embed.v4-mobile .v4SectorRankBoard.cols-1,
body.watch-mobile-embed.v4-mobile .v4SectorRankBoard.cols-2,
body.watch-mobile-embed.v4-mobile .v4SectorRankBoard.cols-3 {
  grid-template-columns: 1fr !important;
}
body.v4-mobile .v4SectorRankRow,
body.watch-mobile-embed.v4-mobile .v4SectorRankRow {
  grid-template-columns: 40px minmax(0, 1.35fr) 76px 18px minmax(52px, .95fr) !important;
  height: 40px !important;
  min-height: 40px !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  gap: 4px 6px !important;
}
body.v4-mobile .v4SectorRankRow .nm,
body.watch-mobile-embed.v4-mobile .v4SectorRankRow .nm {
  font-size: 13px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
body.v4-mobile .v4SectorRankRow .rk,
body.v4-mobile .v4SectorRankRow .amt,
body.v4-mobile .v4SectorRankRow .dir,
body.watch-mobile-embed.v4-mobile .v4SectorRankRow .rk,
body.watch-mobile-embed.v4-mobile .v4SectorRankRow .amt,
body.watch-mobile-embed.v4-mobile .v4SectorRankRow .dir {
  white-space: nowrap !important;
}
body.v4-mobile .v4TrackCard,
body.watch-mobile-embed.v4-mobile .v4TrackCard {
  height: auto !important;
  min-height: 120px !important;
  max-height: none !important;
}
body.v4-mobile .v4TrackCardHead,
body.watch-mobile-embed.v4-mobile .v4TrackCardHead {
  align-items: flex-start !important;
  flex-wrap: wrap !important;
}
body.v4-mobile .v4TrackCardName,
body.watch-mobile-embed.v4-mobile .v4TrackCardName {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-size: 13px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.3 !important;
  /* 轨迹仍允许换行；不用 anywhere，减少无意义竖向拆字 */
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
body.v4-mobile .v4TierRankItem .amt,
body.watch-mobile-embed.v4-mobile .v4TierRankItem .amt {
  font-size: 13px !important;
  white-space: nowrap !important;
}
body.v4-mobile .v4TierRankItem .share,
body.v4-mobile .v4TierRankItem .dir,
body.watch-mobile-embed.v4-mobile .v4TierRankItem .share,
body.watch-mobile-embed.v4-mobile .v4TierRankItem .dir {
  font-size: 12px !important;
  white-space: nowrap !important;
}
body.v4-mobile .v4MarketTrendRankHead,
body.watch-mobile-embed.v4-mobile .v4MarketTrendRankHead {
  font-size: 11px !important;
  padding: 4px 10px 6px !important;
}

/*
 * V4-MOBILE-HOT-RANK-FOLD：资金热点「板块资金曲线」榜单折叠
 * 默认：全宽曲线 + 榜单隐藏；展开：左曲线 + 右榜单（近桌面）
 * V4-MOBILE-HOT-RANK-RAIL：右侧竖向悬浮入口（不占顶部空间；JS 逻辑不变）
 * 仅 body.v4-mobile / watch-mobile-embed；桌面隐藏按钮
 */
.v4HotRankToggle {
  display: none;
}
body.v4-mobile .v4HotModule .chartCol,
body.watch-mobile-embed.v4-mobile .v4HotModule .chartCol {
  position: relative !important;
}
body.v4-mobile .v4HotRankToggle,
body.watch-mobile-embed.v4-mobile .v4HotRankToggle {
  display: inline-flex !important;
  position: absolute !important;
  top: 50% !important;
  right: 4px !important;
  z-index: 6;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  height: auto;
  min-height: 96px;
  padding: 10px 0;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(145, 174, 210, .42);
  background: var(--color-bg-sheet);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  backdrop-filter: blur(6px);
  /* JS 仍写 textContent；视觉文案用 ::before，便于竖排与「收起」两字 */
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
body.v4-mobile .v4HotRankToggle::before,
body.watch-mobile-embed.v4-mobile .v4HotRankToggle::before {
  content: "展开榜单";
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.15;
  writing-mode: vertical-rl;
  text-orientation: upright;
}
body.v4-mobile .v4HotRankToggle[aria-expanded="true"],
body.watch-mobile-embed.v4-mobile .v4HotRankToggle[aria-expanded="true"] {
  min-height: 64px;
  border-color: rgba(120, 190, 255, .58);
  background: rgba(28, 68, 108, .9);
}
body.v4-mobile .v4HotRankToggle[aria-expanded="true"]::before,
body.watch-mobile-embed.v4-mobile .v4HotRankToggle[aria-expanded="true"]::before {
  content: "收起";
  color: var(--color-text-bright);
}
/* 展开后入口贴在曲线右缘（榜单左侧），不挤占顶部 */
body.v4-mobile .v4HotModule.is-rank-expanded .v4HotRankToggle,
body.watch-mobile-embed.v4-mobile .v4HotModule.is-rank-expanded .v4HotRankToggle {
  right: 2px !important;
}
/* 默认折叠：榜单不占位，曲线全宽且保持既有高度 */
body.v4-mobile .v4HotModule:not(.is-rank-expanded) .sidePanel,
body.watch-mobile-embed.v4-mobile .v4HotModule:not(.is-rank-expanded) .sidePanel {
  display: none !important;
}
body.v4-mobile .v4HotModule:not(.is-rank-expanded) .mainRow,
body.watch-mobile-embed.v4-mobile .v4HotModule:not(.is-rank-expanded) .mainRow {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}
/* 展开：覆盖 app.py 手机纵向堆叠，恢复左曲线右榜 */
body.v4-mobile .mainFlowCard .v4HotModule.is-rank-expanded .mainRow,
body.watch-mobile-embed.v4-mobile .mainFlowCard .v4HotModule.is-rank-expanded .mainRow {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 36%) !important;
  gap: 8px !important;
  align-items: stretch !important;
  flex-direction: unset !important;
}
body.v4-mobile .mainFlowCard .v4HotModule.is-rank-expanded .chartCol,
body.watch-mobile-embed.v4-mobile .mainFlowCard .v4HotModule.is-rank-expanded .chartCol {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}
body.v4-mobile .mainFlowCard .v4HotModule.is-rank-expanded .sidePanel,
body.watch-mobile-embed.v4-mobile .mainFlowCard .v4HotModule.is-rank-expanded .sidePanel {
  display: flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  align-self: stretch !important;
  margin-top: 0 !important;
}
body.v4-mobile .v4HotModule.is-rank-expanded .sidePanelHead,
body.watch-mobile-embed.v4-mobile .v4HotModule.is-rank-expanded .sidePanelHead {
  padding: 6px 6px 5px !important;
  font-size: 11px !important;
}
body.v4-mobile .v4HotModule.is-rank-expanded .sidePanelSub,
body.watch-mobile-embed.v4-mobile .v4HotModule.is-rank-expanded .sidePanelSub {
  display: none !important;
}
body.v4-mobile .v4HotModule.is-rank-expanded .sideList,
body.watch-mobile-embed.v4-mobile .v4HotModule.is-rank-expanded .sideList {
  flex: 1 1 auto !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
  min-height: 0 !important;
}
body.v4-mobile .v4HotModule.is-rank-expanded .sideRow,
body.watch-mobile-embed.v4-mobile .v4HotModule.is-rank-expanded .sideRow {
  height: 22px !important;
  min-height: 22px !important;
  font-size: 11px !important;
  padding: 0 6px !important;
}
body.v4-mobile .v4HotModule.is-rank-expanded .sideFooter,
body.watch-mobile-embed.v4-mobile .v4HotModule.is-rank-expanded .sideFooter {
  font-size: 10px !important;
  padding: 4px 6px !important;
  flex: 0 0 auto !important;
}
/* 展开后曲线仍保持手机主高度，宽度随左栏收缩 */
body.v4-mobile .v4HotModule.is-rank-expanded #chart,
body.watch-mobile-embed.v4-mobile .v4HotModule.is-rank-expanded #chart {
  width: 100% !important;
  min-height: 600px !important;
  height: min(72vh, 640px) !important;
  max-height: none !important;
}

/* ── M4-B Light：资金画像 / 板块轨迹 板块名（本文件在 Theme 链之后加载，兜底高对比）── */
html[data-theme="light"] .v4SectorRankRow .nm,
html[data-theme="light"] .v4TrackCardName,
html[data-theme="light"] body.has-desktop-shell .mainFlowCard .v4SectorRankRow .nm,
html[data-theme="light"] body.has-desktop-shell .mainFlowCard .v4TrackCardName,
html[data-theme="light"] body.watch-chart-embed .v4SectorRankRow .nm,
html[data-theme="light"] body.watch-chart-embed .v4TrackCardName,
html[data-theme="light"] body.v4-mobile .v4SectorRankRow .nm,
html[data-theme="light"] body.v4-mobile .v4TrackCardName,
html[data-theme="light"] body.watch-mobile-embed .v4SectorRankRow .nm,
html[data-theme="light"] body.watch-mobile-embed .v4TrackCardName {
  color: var(--color-text-primary) !important;
  opacity: 1 !important;
  font-weight: 800;
}
