/* 白天 / 暗色模式：夜间行情台使用低眩光蓝黑底，保留涨跌色和原有信息层级。 */
.theme-mode-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 32px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #aab5c5;
  border-radius: 999px;
  background: #e8edf5;
  color: #7b8799;
  box-shadow: inset 0 1px 2px rgba(20, 34, 53, 0.08);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.theme-mode-icon {
  position: absolute;
  z-index: 1;
  top: 7px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  pointer-events: none;
}

.theme-mode-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-mode-sun { left: 7px; color: #d78b19; }
.theme-mode-moon { right: 7px; color: #697487; }

.theme-mode-thumb {
  position: absolute;
  z-index: 2;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(93, 105, 123, 0.28);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(24, 34, 53, 0.22);
  transition: transform 180ms ease, background-color 180ms ease;
}

.theme-mode-toggle:hover { border-color: #70809a; }
.theme-mode-toggle:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.25); outline-offset: 3px; }

[data-color-mode="dark"] .theme-mode-toggle {
  border-color: #4a6594;
  background: #1a2944;
  color: #9ab7ff;
}

[data-color-mode="dark"] .theme-mode-toggle .theme-mode-thumb {
  transform: translateX(26px);
  border-color: #8ba8f2;
  background: #a8bcff;
}

[data-color-mode="dark"] .theme-mode-sun { color: #66758e; }
[data-color-mode="dark"] .theme-mode-moon { color: #dce6ff; }

/* 减持解禁的宽表只在栏目内部横向滚动，不再撑宽主页面。 */
#shareReductionUnlockView,
#shareReductionUnlockPanel,
#shareReductionUnlockPanel .corporate-action-section,
#shareReductionUnlockPanel .corporate-action-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

#shareReductionUnlockPanel .corporate-action-table { overflow-x: auto; overscroll-behavior-inline: contain; }
#shareReductionUnlockPanel .corporate-action-lines span { overflow-wrap: anywhere; }

/* 只有整张卡片可打开内容时才显示选中遮罩；遮罩不接管鼠标事件。 */
:where(
  article[data-brief-index], article[data-research-index],
  article[data-company-interaction-index], article[data-theme-catalog-card],
  article[data-theme-open], article[data-dragon-detail], article[data-macro-type],
  .nav-item, #limitHotspotPanel .limit-stock-chip, #riskWarningPanel .risk-card-item
) {
  position: relative;
  isolation: isolate;
}

:where(
  article[data-brief-index], article[data-research-index],
  article[data-company-interaction-index], article[data-theme-catalog-card],
  article[data-theme-open], article[data-dragon-detail], article[data-macro-type],
  .nav-item, #limitHotspotPanel .limit-stock-chip, #riskWarningPanel .risk-card-item
)::after {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0;
  border-radius: inherit;
  background: rgba(71, 85, 105, 0.12);
  box-shadow: inset 0 0 0 2px rgba(71, 85, 105, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

:where(
  article[data-brief-index], article[data-research-index],
  article[data-company-interaction-index], article[data-theme-catalog-card],
  article[data-theme-open], article[data-dragon-detail], article[data-macro-type],
  .nav-item, #limitHotspotPanel .limit-stock-chip, #riskWarningPanel .risk-card-item
):is(:hover, :focus-visible, :focus-within)::after {
  opacity: 1;
}

[data-color-mode="dark"] {
  --bg: #0b1220;
  --panel: #141e2e;
  --panel-2: #18263a;
  --text: #e8eef7;
  --muted: #94a4bb;
  --line: #29384d;
  --blue: #5a8cff;
  --blue-dark: #8aabff;
  --green: #42d392;
  --red: #ff7272;
  --orange: #f3ad56;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

[data-color-mode="dark"] body { background: var(--bg); color: var(--text); }

[data-color-mode="dark"] .site-startup {
  background: radial-gradient(circle at 50% 46%, rgba(52, 92, 157, 0.24), transparent 28%), #0b1220;
}

[data-color-mode="dark"] .site-startup-mark { background: #15253b; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28); }
[data-color-mode="dark"] .site-startup-center h1 { color: #edf3ff; }
[data-color-mode="dark"] .site-startup-center p { color: #91a4c2; }
[data-color-mode="dark"] .site-startup-progress { background: #26364c; }

[data-color-mode="dark"] .column-loading-shell {
  border-color: var(--line) !important;
  background:
    radial-gradient(circle at 50% 43%, rgba(52, 92, 157, 0.24), transparent 30%),
    #0b1220 !important;
  color: #edf3ff !important;
}

[data-color-mode="dark"] .column-loading-mark { background: #15253b; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28); }
[data-color-mode="dark"] .column-loading-center > strong { color: #edf3ff; }
[data-color-mode="dark"] .column-loading-center > p { color: #91a4c2; }
[data-color-mode="dark"] .column-loading-progress { background: #26364c; }

[data-color-mode="dark"] .sidebar {
  background: rgba(12, 20, 34, 0.96);
  border-color: var(--line);
}

[data-color-mode="dark"] .brand-mark svg { stroke: #c89558; }
[data-color-mode="dark"] .nav-item { color: #b8c5d8; }
[data-color-mode="dark"] .nav-item span { color: #91adfa; background: #17243a; }
[data-color-mode="dark"] .nav-item.active { color: #dbe6ff; background: #1a2942; border-color: #3c5681; }
[data-color-mode="dark"] .nav-item:hover { border-color: #344a6b; background: #142238; color: #dbe6ff; }
[data-color-mode="dark"] .profile-nav-item { background: rgba(12, 20, 34, 0.98); box-shadow: 0 -10px 18px rgba(11, 18, 32, 0.96); }
[data-color-mode="dark"] .shell { background: linear-gradient(180deg, #0d1524 0, #0b1220 360px); }

[data-color-mode="dark"] :where(
  .notice, .brief-status-bar, .toolbar, .panel-card, .feed-card, .important-card, .report-card,
  .industry-card, .pricing-card, .theme-catalog-card, .theme-catalog-drawer-exports,
  .sentiment-score-card, .sentiment-panel-card, .sentiment-theme-card, .market-section-head,
  .date-query-card, .limit-theme-card, .limit-stock-chip, .risk-card-item, .risk-nav-card,
  .flow-card-item, .flow-sector-card, .data-table-card, .theme-library-panel, .theme-library-card,
  .theme-ai-grid section, .theme-signal-list button, .index-futures-card, .index-futures-selector,
  .dragon-stock-card, .dragon-kline-card, .dragon-seat-item, .macro-card, .macro-summary-card,
  .chart-card, .macro-event, .profile-panel, .profile-membership, .member-service-panel,
  .member-plan-card, .profile-card, .contact-qr-card, .follow-inbox-item, .follow-inbox-detail,
  .dialog-card, .utility-tools-drawer, .utility-calculator-card, .utility-result-grid > span,
  .sentiment-kpi-grid article, .sentiment-subgroup-card, .limit-theme-item, .limit-tree-gap,
  .market-option-tabs, .index-futures-summary span, .market-empty-state,
  .flow-net-chart-card, .flow-ranking-item, .dragon-filter-toolbar,
  .chart-legend span, .profile-head, .contact-qr-box, .search-empty-card,
  .important-ai-loading, .important-ai-result section, .member-lock, .pay-options button,
  .hot-ranking-card, .hot-ranking-row, .ranking-list, .ranking-list > div,
  .research-member-card, .member-checkout-bar, .member-plan-card,
  .profile-menu-item, .profile-info-grid span, .follow-settings, .follow-summary,
  .follow-tag-empty, .custom-option-panel, .profile-list-item, .follow-inbox-empty,
  .follow-inbox-link, .benefit-grid span, .contact-qr-card,
  #themeLibraryView .theme-library-toolbar, #themeLibraryView .theme-library-suggestions,
  #themeLibraryView .theme-library-card, #themeLibraryView .chain-scorecard,
  #themeLibraryView .chain-stock-pool, #themeLibraryView .chain-reading-order div,
  #themeLibraryView .chain-stage-column, #themeLibraryView .chain-stage-column > header,
  .chain-detail-actions button, .chain-reading-order div, .chain-stage-column > header,
  .chain-node-card, .chain-stock-pool, .chain-neighbor-grid div
) {
  border-color: var(--line) !important;
  background-color: var(--panel) !important;
  color: var(--text);
  box-shadow: var(--shadow);
}

[data-color-mode="dark"] :where(
  input, select, textarea, .ghost, .filter, .brief-tag-return, .follow-add-btn,
  .card-actions button, .important-card-actions button, .date-today-button, .watch-panel-head button,
  .range-tabs button, .follow-item-actions button, .follow-inbox-tabs button,
  .back-button, .theme-catalog-export-actions button, .utility-tools-close,
  .custom-option-button, .search-empty-back, .follow-inbox-action
) {
  border-color: #34465f !important;
  background-color: #101a2a !important;
  color: #c9d7ec !important;
}

[data-color-mode="dark"] :where(input, select, textarea)::placeholder { color: #687991; }
[data-color-mode="dark"] :where(input, select, textarea):focus { border-color: #6b97ff !important; background: #101a2a !important; }
[data-color-mode="dark"] .searchbox { border-color: #34465f; background: #101a2a; }
[data-color-mode="dark"] .market-option-tabs button { border-color: #3a4d68; background: #111d2f; color: #c4d3e8; }
[data-color-mode="dark"] .market-option-tabs button.active { border-color: #6b97ff; background: #356fe8; color: #fff; }
[data-color-mode="dark"] .important-card-actions button:hover,
[data-color-mode="dark"] .custom-option-button:hover,
[data-color-mode="dark"] .follow-inbox-tabs button:hover { border-color: #5476a8 !important; background: #1a2942 !important; color: #dce7ff !important; }

[data-color-mode="dark"] :where(.important-card-actions button, .card-actions button) {
  border-color: #496b9c !important;
  background: #1a3152 !important;
  color: #dce8ff !important;
}

[data-color-mode="dark"] :where(.important-card-actions button, .card-actions button):hover {
  border-color: #6b97ff !important;
  background: #24446f !important;
  color: #ffffff !important;
}

[data-color-mode="dark"] :where(
  h1, h2, h3, .feed-card h3, .important-card h3, .report-card h3, .industry-card h3,
  .market-section-head h2, .corporate-action-section h3, .theme-catalog-card h3,
  .theme-catalog-drawer-stock-section > header strong, .member-service-head h2,
  .profile-head h2, .profile-card h3, .utility-calculator-card h3
) { color: #edf3ff !important; }

[data-color-mode="dark"] #viewTitle {
  color: #dce8ff !important;
  text-shadow: 0 0 18px rgba(90, 140, 255, 0.16);
}

[data-color-mode="dark"] .market-section-head h2 { color: #cfddf4 !important; }

[data-color-mode="dark"] :where(
  p, small, .clock-text, .market-section-description, .theme-catalog-card header p,
  .important-summary, .report-card p, .company-interaction-card p,
  .corporate-action-section > header small, .utility-calculator-card header p
) { color: var(--muted); }

[data-color-mode="dark"] .ghost:hover,
[data-color-mode="dark"] .filter:hover,
[data-color-mode="dark"] .theme-catalog-export-actions button:hover { background: #192840 !important; }

[data-color-mode="dark"] .primary { color: #fff; background: #356fe8; border-color: #5a8cff; }
[data-color-mode="dark"] .primary:hover { background: #477ff0; }
[data-color-mode="dark"] .filter.active { color: #fff !important; background: #356fe8 !important; border-color: #6b97ff !important; }

[data-color-mode="dark"] .brief-tag-pool-list button,
[data-color-mode="dark"] button.mapped-follow-chip,
[data-color-mode="dark"] .theme-catalog-rank,
[data-color-mode="dark"] :where(.follow-chip, .watch-chip.follow-chip),
[data-color-mode="dark"] .hot-ranking-concepts span,
[data-color-mode="dark"] .limit-stock-tags em,
[data-color-mode="dark"] .limit-tree-row > strong {
  color: #b8ccff;
  background: #1a2942;
  border-color: #31486d;
}

[data-color-mode="dark"] :where(button.mapped-follow-chip.active, .watch-chip.follow-chip.active, .custom-option-button.selected) {
  border-color: #6b97ff !important;
  background: #356fe8 !important;
  color: #fff !important;
}

[data-color-mode="dark"] .follow-chip-remove { background: #263852; color: #b8c8dd; }
[data-color-mode="dark"] .follow-chip small { color: #9cadc4; }
[data-color-mode="dark"] .limit-tree::before { background: #4c668e; }
[data-color-mode="dark"] .limit-tree-row > strong { color: #ff8a8a; background: #35212a; }
[data-color-mode="dark"] .sentiment-industry-stocks { border-color: #304159; background: #111d2f; }

/* Targeted dark surfaces: keep topic hierarchy and tracking chips readable without changing their behavior. */
[data-color-mode="dark"] #briefFeed .feed-card p {
  color: var(--muted) !important;
}

[data-color-mode="dark"] #briefFeed .feed-card.important :is(h3, p) {
  color: #ff7d7d !important;
}

[data-color-mode="dark"] #briefFeed .feed-card.important .feed-meta {
  color: var(--muted) !important;
}

[data-color-mode="dark"] .important-ai-result section.ai-bias-bullish {
  border-color: #6a3441 !important;
  border-left-color: #ff7272 !important;
  background: #321d25 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 114, 114, 0.06);
}

[data-color-mode="dark"] .important-ai-result section.ai-bias-bullish :is(h3, p) { color: #ffd1d1 !important; }

[data-color-mode="dark"] .important-ai-result section.ai-bias-bearish {
  border-color: #2d644d !important;
  border-left-color: #42d392 !important;
  background: #172c25 !important;
  box-shadow: inset 0 0 0 1px rgba(66, 211, 146, 0.06);
}

[data-color-mode="dark"] .important-ai-result section.ai-bias-bearish :is(h3, p) { color: #bdf3d7 !important; }

[data-color-mode="dark"] .important-ai-result section.ai-bias-neutral {
  border-color: #40536f !important;
  border-left-color: #91a8c8 !important;
  background: #1b2940 !important;
  box-shadow: inset 0 0 0 1px rgba(145, 168, 200, 0.06);
}

[data-color-mode="dark"] .important-ai-result section.ai-bias-neutral :is(h3, p) { color: #d4dfef !important; }

[data-color-mode="dark"] #limitHotspotPanel .sentiment-industry-card > header {
  border-bottom-color: #344965;
  background: linear-gradient(110deg, #17263b 0%, #1a2942 58%, #152338 100%) !important;
}

[data-color-mode="dark"] #limitHotspotPanel .sentiment-industry-card > header h3 {
  color: #edf3ff !important;
}

[data-color-mode="dark"] #limitHotspotPanel .sentiment-industry-card > header span {
  color: #a9bad1 !important;
}

[data-color-mode="dark"] #limitHotspotPanel .sentiment-status {
  min-width: 48px;
  justify-content: center;
  border: 1px solid #754052;
  background: #3a202b;
  color: #ff9aa5;
  box-shadow: inset 0 0 0 1px rgba(255, 132, 145, 0.08), 0 0 12px rgba(255, 91, 111, 0.08);
}

[data-color-mode="dark"] #limitHotspotPanel .sentiment-stock-table td.positive {
  color: var(--red) !important;
}

[data-color-mode="dark"] .watch-list-items .watch-chip.follow-chip,
[data-color-mode="dark"] .watch-list-items .watch-chip.follow-chip.active {
  border-color: #3b5274 !important;
  background: #1a2942 !important;
  color: #b8ccff !important;
}

[data-color-mode="dark"] .watch-list-items .watch-chip.follow-chip.active {
  border-color: #6b97ff !important;
  background: #356fe8 !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(107, 151, 255, 0.18);
}

[data-color-mode="dark"] .watch-list-items .watch-chip-label,
[data-color-mode="dark"] .watch-list-items .watch-chip-label:hover {
  color: #b8ccff !important;
}

[data-color-mode="dark"] .watch-list-items .watch-chip.follow-chip.active .watch-chip-label {
  color: #ffffff !important;
}

[data-color-mode="dark"] #customMessageList .follow-chip {
  border-color: #476fa9 !important;
  background: #1c3556 !important;
  color: #dbe8ff !important;
  box-shadow: inset 0 0 0 1px rgba(107, 151, 255, 0.1);
}

[data-color-mode="dark"] #customMessageList .follow-chip small { color: #aac2e5; }

[data-color-mode="dark"] .custom-option-grid .custom-option-button:not(.selected) {
  border-color: #41689f !important;
  background: #172a46 !important;
  color: #c9dcff !important;
}

.follow-inbox-tabs button.active {
  position: relative;
  padding-left: 30px;
  border-color: #5d91ee;
  background: #dceaff;
  color: #174eab;
  box-shadow: inset 0 0 0 1px rgba(47, 104, 232, 0.12), 0 4px 12px rgba(47, 104, 232, 0.1);
}

.follow-inbox-tabs button.active::before {
  position: absolute;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f68e8;
  box-shadow: 0 0 0 3px rgba(47, 104, 232, 0.14);
  content: "";
}

[data-color-mode="dark"] .follow-inbox-tabs button.active {
  border-color: #6b97ff !important;
  background: #20375d !important;
  color: #edf3ff !important;
  box-shadow: inset 0 0 0 1px rgba(107, 151, 255, 0.22), 0 6px 16px rgba(3, 10, 24, 0.24);
}

[data-color-mode="dark"] .follow-inbox-tabs button.active::before {
  background: #8fb1ff;
  box-shadow: 0 0 0 3px rgba(107, 151, 255, 0.18);
}

/* Voice controls and contextual registration nudges use the same low-glare terminal surfaces. */
[data-color-mode="dark"] .voice-card .setting-row {
  border-color: #304159;
  background: #111d2f;
}

[data-color-mode="dark"] .voice-card .setting-row strong,
[data-color-mode="dark"] .voice-card .speed-head strong { color: #edf3ff; }
[data-color-mode="dark"] .voice-card .setting-row p,
[data-color-mode="dark"] .voice-card .speed-tip { color: #9cadc4; }
[data-color-mode="dark"] .voice-card .speed-block { border-color: #304159; }
[data-color-mode="dark"] .voice-card .speed-head span { color: #8fb1ff; }
[data-color-mode="dark"] .voice-card .switch { border-color: #465b79; background: #1b2a40; }
[data-color-mode="dark"] .voice-card .switch::after { background: #78879d; }
[data-color-mode="dark"] .voice-card .switch.on { border-color: #6b97ff; background: #20375d; }
[data-color-mode="dark"] .voice-card .switch.on::after { background: #9ab8ff; }
[data-color-mode="dark"] .voice-card .speed-options button {
  border-color: #34465f;
  background: #101a2a;
  color: #aebdd2;
}
[data-color-mode="dark"] .voice-card .speed-options button.active {
  border-color: #6b97ff;
  background: #356fe8;
  color: #fff;
}

[data-color-mode="dark"] .inbox-register-nudge,
[data-color-mode="dark"] .guest-register-prompt {
  border-color: #3c5681;
  border-left-color: #6b97ff;
  background: #142238;
  box-shadow: 0 16px 40px rgba(2, 7, 16, 0.34);
}
[data-color-mode="dark"] .inbox-register-nudge strong,
[data-color-mode="dark"] .guest-register-prompt strong { color: #edf3ff; }
[data-color-mode="dark"] .inbox-register-nudge span,
[data-color-mode="dark"] .guest-register-prompt span { color: #a9bad1; }
[data-color-mode="dark"] .guest-register-close { color: #9cadc4; }

[data-color-mode="dark"] .digest-preference-card {
  border-color: #3f6091;
  border-left-color: #6b97ff;
  background: linear-gradient(120deg, #172c49 0%, #132238 100%);
  box-shadow: 0 12px 28px rgba(2, 7, 16, 0.32), inset 0 0 0 1px rgba(107, 151, 255, 0.08);
}
[data-color-mode="dark"] .digest-preference-icon { background: #1b3152; color: #8fb1ff; }
[data-color-mode="dark"] .digest-preference-copy strong { color: #edf3ff; }
[data-color-mode="dark"] .digest-preference-copy span { color: #a9bad1; }
[data-color-mode="dark"] .digest-preference-copy small { color: #8194ad; }
[data-color-mode="dark"] .digest-preference-copy small.enabled { color: #62dda0; }
[data-color-mode="dark"] .digest-preference-switch { border-color: #465b79; background: #1b2a40; }
[data-color-mode="dark"] .digest-preference-switch span { background: #78879d; }
[data-color-mode="dark"] .digest-preference-switch.on { border-color: #6b97ff; background: #20375d; }
[data-color-mode="dark"] .digest-preference-switch.on span { background: #9ab8ff; }

[data-color-mode="dark"] .mobile-theme-preference-card {
  border-color: #40536f;
  border-left-color: #8da8d2;
  background: #142238;
  box-shadow: 0 10px 24px rgba(2, 7, 16, 0.28);
}
[data-color-mode="dark"] .mobile-theme-preference-icon { background: #1c304d; color: #b9ceff; }
[data-color-mode="dark"] .mobile-theme-preference-copy strong { color: #edf3ff; }
[data-color-mode="dark"] .mobile-theme-preference-copy span { color: #a9bad1; }
[data-color-mode="dark"] .mobile-theme-preference-copy small { color: #91a4bf; }

[data-color-mode="dark"] .status-dot { color: #62dda0; background: #112c24; border-color: #275b48; }
[data-color-mode="dark"] .status-dot.offline { color: #ff8989; background: #351c24; border-color: #69303b; }
[data-color-mode="dark"] .benefit-panel { border-color: #334a70; background: linear-gradient(135deg, #16243a, #111a2a); }
[data-color-mode="dark"] .orange-note { color: #ffc078; }

[data-color-mode="dark"] .risk-nav-card,
[data-color-mode="dark"] #fundFlowPanel .flow-net-chart {
  border-color: var(--line) !important;
  background: var(--panel) !important;
}

[data-color-mode="dark"] :where(
  .risk-metric-grid span, .flow-metric-grid span, .flow-card-meta span,
  .flow-net-chart-track, .company-interaction-answer
) {
  border-color: #304159;
  background: #111d2f;
}

[data-color-mode="dark"] #fundFlowPanel .flow-net-chart-head { border-color: var(--line); }
[data-color-mode="dark"] #fundFlowPanel .flow-net-chart-head strong { color: #dce7f7; }
[data-color-mode="dark"] #fundFlowPanel .flow-net-chart-head strong span,
[data-color-mode="dark"] #fundFlowPanel .flow-net-chart-label { color: #9cadc4; }
[data-color-mode="dark"] #fundFlowPanel .flow-net-chart-head small { background: #1a2940; color: #b8c8dd; }
[data-color-mode="dark"] #fundFlowPanel .flow-net-chart-value.positive { background: #321d25; }
[data-color-mode="dark"] #fundFlowPanel .flow-net-chart-value.negative { background: #172c25; }
[data-color-mode="dark"] .flow-ranking-item > strong { background: #1a2940; color: #9ab8ff; }

[data-color-mode="dark"] .risk-nav-head { border-color: var(--line); }
[data-color-mode="dark"] .risk-nav-head span { color: #e7eef9; }
[data-color-mode="dark"] .risk-nav-card button { color: #c6d4e7; }
[data-color-mode="dark"] .risk-nav-card button:hover { border-color: #405a80; background: #1b2b43; color: #a9c1ff; }
[data-color-mode="dark"] .risk-nav-icon { background: #1b3152; }
[data-color-mode="dark"] .risk-nav-icon.severe { background: #382026; }
[data-color-mode="dark"] .risk-nav-icon.exchange { background: #252544; }
[data-color-mode="dark"] .risk-nav-icon.warning { background: #342a18; }

[data-color-mode="dark"] .subtitle-count-card { border-color: #334b70; border-left-color: #6590ff; background: #16243a; }
[data-color-mode="dark"] .subtitle-count-card h3 { color: #eff4ff; }
[data-color-mode="dark"] .subtitle-count-card span,
[data-color-mode="dark"] .subtitle-count-card em { color: #9cadc4; }
[data-color-mode="dark"] .subtitle-count-card strong { color: #8fb1ff; }

[data-color-mode="dark"] .data-table-card th { color: #a9b8cc; background: #182437; }
[data-color-mode="dark"] .data-table-card td { color: #d8e2f0; border-color: var(--line); }
[data-color-mode="dark"] .corporate-action-lines span { border-color: #29384d; }
[data-color-mode="dark"] .corporate-action-section > header span { color: #ff9992; background: #382027; }
[data-color-mode="dark"] .corporate-action-section.unlock > header span { color: #9ab8ff; background: #1b2c48; }

[data-color-mode="dark"] .dragon-pct-tile.positive { border-color: #6a3441; background: #321d25; }
[data-color-mode="dark"] .dragon-pct-tile.negative { border-color: #2d644d; background: #172c25; }
[data-color-mode="dark"] .dragon-drawer-backdrop { background: rgba(2, 7, 16, 0.7); }
[data-color-mode="dark"] .dragon-detail-drawer { border-color: var(--line); background: #0e1726; color: var(--text); }
[data-color-mode="dark"] .dragon-drawer-close,
[data-color-mode="dark"] .dragon-drawer-loading,
[data-color-mode="dark"] .dragon-drawer-error,
[data-color-mode="dark"] .dragon-kline-empty { border-color: var(--line); background: var(--panel); color: var(--text); }
[data-color-mode="dark"] .dragon-drawer-error { color: #ff8e8e; }
[data-color-mode="dark"] .dragon-drawer-summary { border-color: var(--line); background: var(--panel); }
[data-color-mode="dark"] .dragon-drawer-summary span { border-color: var(--line); }
[data-color-mode="dark"] .dragon-drawer-reason { background: #29231d; color: #c7b9a7; }
[data-color-mode="dark"] .dragon-seat-row { border-color: var(--line); background: var(--panel); }
[data-color-mode="dark"] .dragon-seat-section-empty { border-color: #41536c; }

[data-color-mode="dark"] .important-dialog-card,
[data-color-mode="dark"] .important-dialog-body,
[data-color-mode="dark"] .company-interaction-detail { color: #dbe6f4; }
[data-color-mode="dark"] .important-dialog-body :where(p, li),
[data-color-mode="dark"] .company-interaction-detail :where(p, small),
[data-color-mode="dark"] .company-interaction-answer { color: #cbd8e8 !important; }
[data-color-mode="dark"] .company-interaction-answer { border-color: #4f9b6b; background: #14271f; }
[data-color-mode="dark"] .company-interaction-kind.reply { border-color: #36664b; background: #14271f; color: #62dda0; }
[data-color-mode="dark"] .company-interaction-kind.announcement { border-color: #3b5681; background: #1a2942; color: #9ab8ff; }
[data-color-mode="dark"] .important-ai-error { border-color: #6b3540; background: #321d25; color: #ff999f; }
[data-color-mode="dark"] .research-pdf-viewer { border-color: var(--line); }
[data-color-mode="dark"] .research-pdf-viewer iframe { border-color: var(--line); background: #0f1928; }
[data-color-mode="dark"] .floating-dialog-close { background: rgba(24, 38, 58, 0.84); color: #e7eef9; }

[data-color-mode="dark"] :where(.tag, .stock-tag, .concept-tag, .industry-tag) { border-color: #364a65; background-color: #1a2940; color: #bdcce0; }
[data-color-mode="dark"] .tag.warn { border-color: #664a2c; background: #2d241b; color: #ffc078; }
[data-color-mode="dark"] .tag.hot { border-color: #6a3441; background: #321d25; color: #ff969d; }
[data-color-mode="dark"] :where(.positive, .up, .red) { color: #ff7d7d; }
[data-color-mode="dark"] :where(.negative, .down, .green) { color: #50d797; }

[data-color-mode="dark"] .utility-tools-launcher { border-color: #44639a; background: #172947; color: #b9ceff; }

[data-color-mode="dark"] .hot-ranking-row > em { background: #33271e; color: #f2b465; }
[data-color-mode="dark"] .hot-ranking-concepts.muted { color: #94a4bb; }

[data-color-mode="dark"] .risk-card-item p,
[data-color-mode="dark"] .risk-metric-grid em { color: #9cadc4; }
[data-color-mode="dark"] .risk-metric-grid strong { color: #e3ebf7; }
[data-color-mode="dark"] .risk-detail-card .risk-metric-grid span { border-color: #304159; background: #111d2f; }

[data-color-mode="dark"] .flow-card-meta span,
[data-color-mode="dark"] .flow-metric-grid span,
[data-color-mode="dark"] .flow-net-chart-track { border-color: #304159; background: #111d2f; }
[data-color-mode="dark"] #fundFlowPanel .flow-metric-grid span { border-color: #304159; background: #111d2f; }

[data-color-mode="dark"] .research-member-card {
  border-color: #3c5681 !important;
  background: linear-gradient(145deg, #172842, #121d2f) !important;
}
[data-color-mode="dark"] .research-member-card :where(p, li) { color: #aab9cd; }
[data-color-mode="dark"] .member-checkout-bar { border-color: #3c5681 !important; background: #13233a !important; }
[data-color-mode="dark"] .member-plan-card:hover,
[data-color-mode="dark"] .member-plan-card.selected { border-color: #5a8cff !important; background: #182943 !important; }
[data-color-mode="dark"] .member-plan-card li { color: #c6d4e7; }
[data-color-mode="dark"] .member-plan-card ul { border-color: #304159; }
[data-color-mode="dark"] .member-plan-card em { color: #9cadc4; }
[data-color-mode="dark"] .member-save b { background: #351f2a; color: #ff8b9a; }
[data-color-mode="dark"] .benefit-grid span { color: #c8d6e9; background: #17263b !important; }
[data-color-mode="dark"] .member-contact-button { border-color: #405a80; background: #15243a; color: #c8d8ef; }
[data-color-mode="dark"] .member-service-showcase,
[data-color-mode="dark"] .member-comparison-figure { border-color: #334a70; background: linear-gradient(135deg, #15243a, #111b2c); }
[data-color-mode="dark"] .member-service-showcase img,
[data-color-mode="dark"] .member-comparison-figure img { background: #101b2c; }
[data-color-mode="dark"] .member-service-showcase figcaption strong,
[data-color-mode="dark"] .member-comparison-figure figcaption strong { color: #edf3ff; }
[data-color-mode="dark"] .entitlement-card { border-color: #334a70; background: #111d2f; }
[data-color-mode="dark"] .entitlement-card.member { border-color: #3c5681; border-left-color: #6b97ff; background: #162741; }
[data-color-mode="dark"] .entitlement-card.registered { border-left-color: #50d797; }
[data-color-mode="dark"] .entitlement-card small { color: #91a4bf; }
[data-color-mode="dark"] .entitlement-card strong { color: #edf3ff; }
[data-color-mode="dark"] .entitlement-card span { color: #aab9cd; }
[data-color-mode="dark"] .custom-option-access-head { color: #c8d8ef; }

[data-color-mode="dark"] .profile-menu-item { box-shadow: none; }
[data-color-mode="dark"] .profile-menu-item.active { border-color: #3c5681 !important; background: #1a2942 !important; color: #9ab8ff; }
[data-color-mode="dark"] .profile-info-grid span,
[data-color-mode="dark"] .follow-settings,
[data-color-mode="dark"] .follow-summary,
[data-color-mode="dark"] .custom-option-panel,
[data-color-mode="dark"] .profile-list-item,
[data-color-mode="dark"] .follow-inbox-empty { box-shadow: none; }
[data-color-mode="dark"] .custom-option-head strong,
[data-color-mode="dark"] .follow-inbox-item summary strong,
[data-color-mode="dark"] .contact-qr-card strong { color: #e5edf8; }
[data-color-mode="dark"] .follow-inbox-detail,
[data-color-mode="dark"] .favorite-detail-body p { color: #c6d4e7; }
[data-color-mode="dark"] .follow-inbox-link { border-color: #65562e !important; background: #2b261a !important; color: #f5c96e; }
[data-color-mode="dark"] .custom-option-button::after { border-color: #536a89; background: #101a2a; }
[data-color-mode="dark"] .custom-option-button.selected::after { border-color: #b9ceff; background: #b9ceff; color: #244b9b; }
[data-color-mode="dark"] .profile-avatar { background: #1a2942; color: #9ab8ff; }
[data-color-mode="dark"] .profile-status { border-color: #275b48; background: #112c24; color: #62dda0; }
[data-color-mode="dark"] .profile-status.offline { border-color: #69303b; background: #351c24; color: #ff8989; }
[data-color-mode="dark"] .profile-info-grid span,
[data-color-mode="dark"] .follow-summary span { border-color: #31486d; background: #1a2942; color: #b8ccff; }

[data-color-mode="dark"] :where(
  article[data-brief-index], article[data-research-index],
  article[data-company-interaction-index], article[data-theme-catalog-card],
  article[data-theme-open], article[data-dragon-detail], article[data-macro-type],
  .nav-item, #limitHotspotPanel .limit-stock-chip, #riskWarningPanel .risk-card-item
)::after {
  background: rgba(148, 163, 184, 0.13);
  box-shadow: inset 0 0 0 2px rgba(148, 163, 184, 0.2);
}

[data-color-mode="dark"] .utility-tools-head { border-color: var(--line); background: #111b2c; }
[data-color-mode="dark"] .utility-tools-content { background: #0e1726; }
[data-color-mode="dark"] .utility-tools-backdrop { background: rgba(2, 7, 16, 0.68); }

[data-color-mode="dark"] dialog::backdrop { background: rgba(2, 7, 16, 0.72); }

[data-color-mode="dark"] #themeLibraryView {
  --chain-ink: #e8eef7;
  --chain-muted: #94a4bb;
  --chain-line: #2d3c51;
  --chain-paper: #111b2a;
  --chain-copper: #d39a5d;
}

[data-color-mode="dark"] :where(
  .chain-terminal-head input, .chain-index-row, .chain-detail-topline button,
  .chain-thesis, .chain-stage-nodes > button, .chain-node-drawer,
  .chain-terminal-empty, .chain-terminal-loading
) { border-color: var(--chain-line); background: #141e2e; color: var(--chain-ink); }

[data-color-mode="dark"] .chain-stage-lane > header { background: #182437; }
[data-color-mode="dark"] .chain-relationship-canvas { background-color: #101927; background-image: linear-gradient(#243247 1px, transparent 1px), linear-gradient(90deg, #243247 1px, transparent 1px); }
[data-color-mode="dark"] .chain-svg-node rect { fill: #172235; stroke: #53647b; }
[data-color-mode="dark"] .chain-thesis > p,
[data-color-mode="dark"] .chain-node-drawer > p { color: #a7b5c7; }

@media (max-width: 780px) {
  .theme-mode-toggle { align-self: flex-start; }
  #shareReductionUnlockPanel .corporate-action-table { max-width: calc(100vw - 36px); }
}

@media (prefers-reduced-motion: reduce) {
  .theme-mode-toggle,
  .theme-mode-thumb { transition: none; }
}
