/* ===== Dark Mode ===== */
[data-theme="dark"] {
  --cream: #0D1117;
  --cream-dark: #1A2332;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --gray-light: #3D4F5F;
  --gray-dark: #B0BEC5;
  --accent: #F5B731;
  --text-dark: #D1D5DB;
  --text-light: #9CA3AF;
  --up: #34d399;
  --down: #f87171;
  --green-dark: #34d399;
}

[data-theme="dark"] body {
  background: #0D1117;
  color: #D1D5DB;
}

/* Global PnL colors */
[data-theme="dark"] .pnl-positive { color: #34d399; }
[data-theme="dark"] .pnl-negative { color: #f87171; }

/* Cards, KPIs, Charts */
[data-theme="dark"] .card,
[data-theme="dark"] .chart-card,
[data-theme="dark"] .kpi-card,
[data-theme="dark"] .dca-card,
[data-theme="dark"] .broker-dive-card {
  background: #161B22;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card-title {
  color: #E5E7EB;
  border-bottom-color: #2D3748;
}

[data-theme="dark"] .card-subtitle { color: #9CA3AF; }

[data-theme="dark"] .kpi-value { color: #F3F4F6; }
[data-theme="dark"] .kpi-label { color: #9CA3AF; }
[data-theme="dark"] .kpi-detail { color: #6B7280; }

/* Tabs bar */
[data-theme="dark"] .tabs {
  background: #161B22;
  border-bottom-color: #2D3748;
}

[data-theme="dark"] .tab { color: #6B7280; }
[data-theme="dark"] .tab:hover { color: #D1D5DB; }
[data-theme="dark"] .tab.active { color: var(--gold); }

/* Table */
[data-theme="dark"] .data-table td {
  border-bottom-color: #2D3748;
  color: #D1D5DB;
}

[data-theme="dark"] .data-table tbody tr:hover { background: #1A2332; }

[data-theme="dark"] .table-count { color: #6B7280; }

/* Filters */
[data-theme="dark"] .filter-select,
[data-theme="dark"] .filter-input,
[data-theme="dark"] .filter-multi-btn {
  background: #1A2332;
  border-color: #2D3748;
  color: #D1D5DB;
}

[data-theme="dark"] .filter-multi-panel {
  background: #161B22;
  border-color: #2D3748;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .filter-multi-item:hover { background: #1A2332; }

[data-theme="dark"] .filter-broker-name { color: #D1D5DB; }
[data-theme="dark"] .filter-broker-cnt { background: #2D3748; color: #9CA3AF; }

/* Signals */
[data-theme="dark"] .signal-card-v2 { background: #161B22; }
[data-theme="dark"] .signal-symbol { color: #F3F4F6; }
[data-theme="dark"] .signal-price { color: #E5E7EB; }
[data-theme="dark"] .signal-rsi-bar { background: #2D3748; }
[data-theme="dark"] .signal-rsi-val { color: #F3F4F6; }
[data-theme="dark"] .signal-filter-btn {
  background: #161B22;
  border-color: #2D3748;
  color: #9CA3AF;
}
[data-theme="dark"] .signal-filter-btn.active,
[data-theme="dark"] .signal-filter-btn:hover {
  background: var(--navy-light);
  color: var(--gold);
  border-color: var(--navy-light);
}

/* Rankings */
[data-theme="dark"] .rank-symbol { color: #F3F4F6; }
[data-theme="dark"] .rank-name { color: #9CA3AF; }
[data-theme="dark"] .rank-item { border-bottom-color: #2D3748; }
[data-theme="dark"] .rank-item-v3 { border-bottom-color: #2D3748; }
[data-theme="dark"] .rank-score-bar { background: #2D3748; }
[data-theme="dark"] .rank-meter-track { background: #2D3748; }

/* DCA */
[data-theme="dark"] .dca-broker { color: #F3F4F6; }
[data-theme="dark"] .dca-plans { color: #9CA3AF; }

/* Broker Dives */
[data-theme="dark"] .broker-dive-name { color: #F3F4F6; }
[data-theme="dark"] .broker-dive-subtitle { color: #9CA3AF; }
[data-theme="dark"] .broker-dive-pos-row { border-bottom-color: #2D3748; }
[data-theme="dark"] .broker-dive-pos-name { color: #6B7280; }
[data-theme="dark"] .broker-value-badge { color: #E5E7EB; }
[data-theme="dark"] .broker-dist-labels { color: #9CA3AF; }
[data-theme="dark"] .broker-highlight.up { background: rgba(52,211,153,0.1); }
[data-theme="dark"] .broker-highlight.down { background: rgba(248,113,113,0.1); }
[data-theme="dark"] .broker-hl-label { color: #6B7280; }
[data-theme="dark"] .broker-hl-sym { color: #E5E7EB; }
[data-theme="dark"] .broker-dive-pos-val { color: #6B7280; }
[data-theme="dark"] .broker-dive-pos-row.broker-pos-gain {
  border-left-color: #34d399;
  background: rgba(52,211,153,0.06);
}
[data-theme="dark"] .broker-dive-pos-row.broker-pos-loss {
  border-left-color: #f87171;
  background: rgba(248,113,113,0.06);
}

/* Drift table */
[data-theme="dark"] .drift-targets { border-top-color: #2D3748; }
[data-theme="dark"] .drift-targets th { color: #6B7280; }
[data-theme="dark"] .drift-targets td {
  color: #D1D5DB;
  border-bottom-color: #1A2332;
}
[data-theme="dark"] .drift-targets .status-over  { color: #f87171; }
[data-theme="dark"] .drift-targets .status-under { color: #60a5fa; }
[data-theme="dark"] .drift-targets .status-ok    { color: #34d399; }

/* No data cards */
[data-theme="dark"] .no-data-card { background: #161B22; color: #6B7280; }
[data-theme="dark"] .no-data-message {
  color: #6B7280;
  border-color: #2D3748;
}
[data-theme="dark"] .no-data-message strong { color: #9CA3AF; }

/* Markdown content */
[data-theme="dark"] .markdown-content { color: #D1D5DB; }
[data-theme="dark"] .markdown-content h1,
[data-theme="dark"] .markdown-content h2,
[data-theme="dark"] .markdown-content h3,
[data-theme="dark"] .markdown-content h4 { color: #F3F4F6; }
[data-theme="dark"] .markdown-content h2 { border-bottom-color: #2D3748; }
[data-theme="dark"] .markdown-content h3,
[data-theme="dark"] .markdown-content .md-broker-heading {
  color: var(--gold-light); border-left-color: var(--gold);
}
[data-theme="dark"] .markdown-content strong { color: #E5E7EB; }
[data-theme="dark"] .markdown-content code {
  background: #2D3748;
  color: var(--gold-light);
}
/* Override inline color:var(--navy) in AI-generated monthly outlook */
[data-theme="dark"] .markdown-content div[style*="color:var(--navy)"],
[data-theme="dark"] .markdown-content div[style*="color: var(--navy)"] {
  color: var(--gold-light) !important;
  border-bottom-color: #2D3748 !important;
}
[data-theme="dark"] .markdown-content p[style],
[data-theme="dark"] .markdown-content li[style] {
  color: #D1D5DB !important;
}
/* Dark mode for md-table */
[data-theme="dark"] .markdown-content .md-table th {
  background: var(--navy-light); color: var(--gold-light);
}
[data-theme="dark"] .markdown-content .md-table td {
  border-bottom-color: #2D3748; color: #D1D5DB;
}
[data-theme="dark"] .markdown-content .md-table tr:hover td {
  background: rgba(197, 165, 90, 0.08);
}

/* Risk/Recommendation lists */
[data-theme="dark"] .risk-item,
[data-theme="dark"] .rec-item { border-bottom-color: #2D3748; }

/* Pagination */
[data-theme="dark"] .page-btn {
  background: #161B22;
  border-color: #2D3748;
  color: #D1D5DB;
}
[data-theme="dark"] .page-btn:hover { background: #1A2332; }
[data-theme="dark"] .page-btn.active {
  background: var(--navy);
  color: var(--gold);
}

/* Footer */
[data-theme="dark"] .footer {
  background: #0D1117;
  border-top-color: #2D3748;
  color: #6B7280;
}
[data-theme="dark"] .data-timestamp {
  color: #6B7280;
}

/* Buy Plan */
[data-theme="dark"] .buy-plan-card {
  background: #161B22;
  border-color: #2D3748;
}
[data-theme="dark"] .buy-plan-header { border-bottom-color: #2D3748; }
[data-theme="dark"] .buy-plan-symbol { color: #F3F4F6; }
[data-theme="dark"] .buy-plan-name { color: #9CA3AF; }
[data-theme="dark"] .buy-plan-thesis { background: #1A2332; color: #D1D5DB; }
[data-theme="dark"] .buy-plan-footer { border-top-color: #2D3748; }
[data-theme="dark"] .buy-plan-section-title { color: #F3F4F6; }
[data-theme="dark"] .budget-badge { background: #1A2332; border-color: #2D3748; color: #9CA3AF; }
[data-theme="dark"] .buy-plan-regime { background: #161B22; border-color: #2D3748; color: #D1D5DB; }
[data-theme="dark"] .bullet { color: #9CA3AF; }

/* KSAM cards */
[data-theme="dark"] .ksam-fund-name { color: #F3F4F6; }
[data-theme="dark"] .ksam-reason {
  background: rgba(197, 149, 32, 0.08);
  color: #D1D5DB;
}
[data-theme="dark"] .ksam-vs-badge {
  background: #1A2332;
  border-color: #2D3748;
  color: #9CA3AF;
}

/* Events */
[data-theme="dark"] .event-item { border-bottom-color: #2D3748; }
[data-theme="dark"] .events-show-more {
  background: #161B22;
  border-color: #2D3748;
  color: var(--accent);
}
[data-theme="dark"] .events-show-more:hover { background: #1A2332; }

/* Quarterly */
[data-theme="dark"] .q-next-review { color: #D1D5DB; }
[data-theme="dark"] .q-drift-table th { color: #6B7280; border-bottom-color: #2D3748; }
[data-theme="dark"] .q-drift-table td { color: #D1D5DB; border-bottom-color: #1A2332; }
[data-theme="dark"] .q-drift-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
[data-theme="dark"] .q-drift-table tbody tr:hover { background: #1A2332; }
[data-theme="dark"] .q-drift-badge.status-ok { background: rgba(52,211,153,0.12); color: #34d399; }
[data-theme="dark"] .q-drift-badge.status-over { background: rgba(248,113,113,0.12); color: #f87171; }
[data-theme="dark"] .q-drift-badge.status-under { background: rgba(96,165,250,0.12); color: #60a5fa; }

/* Quarterly RMF/GPF Rebalance */
[data-theme="dark"] .q-rebal-broker { background: #161B22; border-color: #2D3748; border-left-color: var(--gold); }
[data-theme="dark"] .q-rebal-broker-name { color: #F3F4F6; }
[data-theme="dark"] .q-rebal-broker-total { color: #9CA3AF; }
[data-theme="dark"] .q-rebal-row { border-bottom-color: #2D3748; }
[data-theme="dark"] .q-rebal-sym { color: #E5E7EB; }
[data-theme="dark"] .q-rebal-name { color: #6B7280; }
[data-theme="dark"] .q-rebal-val { color: #D1D5DB; }
[data-theme="dark"] .status-ok { background: rgba(52,211,153,0.15); color: #34d399; }
[data-theme="dark"] .status-monitor { background: rgba(251,191,36,0.15); color: #fbbf24; }
[data-theme="dark"] .status-review { background: rgba(248,113,113,0.15); color: #f87171; }

/* Quarterly GPF cards */
[data-theme="dark"] .q-gpf-card { background: #161B22; border-color: #2D3748; }
[data-theme="dark"] .q-gpf-name { color: #F3F4F6; }
[data-theme="dark"] .q-gpf-weight { color: #9CA3AF; }
[data-theme="dark"] .q-gpf-bar-track { background: #2D3748; }

/* Quarterly DCA Plan */
[data-theme="dark"] .q-dca-kpi { background: #161B22; }
[data-theme="dark"] .q-dca-kpi-val { color: #F3F4F6; }
[data-theme="dark"] .q-dca-kpi-label { color: #9CA3AF; }
[data-theme="dark"] .q-dca-broker-card { background: #161B22; border-color: #2D3748; }
[data-theme="dark"] .q-dca-broker-name { color: #E5E7EB; }
[data-theme="dark"] .q-dca-progress-track { background: #2D3748; }
[data-theme="dark"] .q-dca-pending-item { background: #1A2332; color: #D1D5DB; }

/* Insights row */
[data-theme="dark"] .insight-card { background: #161B22; }
[data-theme="dark"] .insight-tag { color: #D1D5DB; }

/* Regime badge */
[data-theme="dark"] .regime-card { background: #161B22; }

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar { width: 8px; height: 8px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: #0D1117; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2D3748; border-radius: 4px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #3D4F5F; }

/* Risk scorecard */
[data-theme="dark"] .risk-scorecard-card {
  background: #161B22;
  border-color: #2D3748;
}
[data-theme="dark"] .risk-label { color: #D1D5DB; }
[data-theme="dark"] .risk-bar-track { background: #2D3748; }
[data-theme="dark"] .risk-card-footer { color: #6B7280; }

/* DCA Review */
[data-theme="dark"] .dca-review-section { background: #161B22; border-color: #2D3748; }
[data-theme="dark"] .dca-review-item { background: #1A2332; border-color: #2D3748; }
[data-theme="dark"] .dca-review-text strong { color: #F3F4F6; }
[data-theme="dark"] .dca-review-text p { color: #9CA3AF; }
[data-theme="dark"] .dca-review-note { color: #D1D5DB; }

/* DCA Health */
[data-theme="dark"] .dca-month-label { background: #161B22; border-color: #2D3748; }
[data-theme="dark"] .dca-month-text { color: #F3F4F6; }
[data-theme="dark"] .dca-total-progress { background: #1A2332; border-color: #2D3748; color: #D1D5DB; }

/* DCA v2.4 cards */
[data-theme="dark"] .dca-card2 { background: #161B22; border-color: #2D3748; }
[data-theme="dark"] .dca-card2:hover { box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); }
[data-theme="dark"] .dca-card2.dca-all-done { background: rgba(63, 185, 80, 0.04); }
[data-theme="dark"] .dca-broker-name { color: #F3F4F6; }
[data-theme="dark"] .dca-monthly { color: #F3F4F6; }
[data-theme="dark"] .dca-progress-bar { background: #2D3748; }
[data-theme="dark"] .dca-global-bar { background: #2D3748; }
[data-theme="dark"] .dca-item { background: #1A2332; }
[data-theme="dark"] .dca-item:hover { background: #243147; }
[data-theme="dark"] .dca-item-symbol { color: #F3F4F6; }
[data-theme="dark"] .dca-section-title { color: #F3F4F6; }
[data-theme="dark"] .dca-section-header { border-bottom-color: #2D3748; }

/* KSAM + Sniper analysis cards (unified layout) */
[data-theme="dark"] .ksam-analysis-card { background: linear-gradient(135deg, rgba(197,161,50,0.04) 0%, #161B22 60%); border-color: #2D3748; }
[data-theme="dark"] .sniper-color .ksam-analysis-card { background: linear-gradient(135deg, rgba(26,35,56,0.3) 0%, #161B22 60%); border-top-color: #4a6fa5; }
[data-theme="dark"] .sniper-color .ksam-theme-badge { background: rgba(74,111,165,0.15); color: #8ab4f8; border-color: rgba(74,111,165,0.3); }
[data-theme="dark"] .sniper-color .ksam-score { color: #8ab4f8 !important; border-color: rgba(74,111,165,0.3) !important; }
[data-theme="dark"] .sniper-color .ksam-amount { color: #8ab4f8; }
[data-theme="dark"] .ksam-analysis-card.dca-all-done { background: rgba(63,185,80,0.08) !important; border-top-color: #3fb950 !important; }
[data-theme="dark"] .ksam-analysis-card.dca-all-done .ksam-vs-badge { background: rgba(63,185,80,0.15); color: #3fb950; border-color: rgba(63,185,80,0.3); }

/* Page buttons */
[data-theme="dark"] .page-btn { background: #161B22; border-color: #2D3748; color: #D1D5DB; }
[data-theme="dark"] .page-btn:hover:not(:disabled) { background: #1A2332; }

/* Market filter dark */
[data-theme="dark"] .market-filter-btn { background: #161B22; border-color: #2D3748; color: #9CA3AF; }
[data-theme="dark"] .market-filter-btn:hover { border-color: #4B5563; color: #E5E7EB; }
[data-theme="dark"] .market-filter-btn.active { background: #3B82F6; border-color: #3B82F6; color: #fff; }

/* Today tab dark */
[data-theme="dark"] .today-kpi-card { background: #161B22; border-color: #2D3748; }
[data-theme="dark"] .today-mover-item { background: #161B22; }
[data-theme="dark"] .pos-section-row td { color: #E5E7EB; border-bottom-color: #2D3748 !important; }
[data-theme="dark"] .pos-section-count { color: #6B7280; }
[data-theme="dark"] .broker-cell { color: #6B7280; }

/* P&L Hero v2 dark */
[data-theme="dark"] .pnl-hero-v2 { background: linear-gradient(135deg, #0D1117 0%, #161B22 100%); }
[data-theme="dark"] .pnl-level { border-right-color: rgba(255,255,255,0.05); }

/* Benchmark dark */
[data-theme="dark"] .today-benchmark-card { background: #161B22; border-color: #2D3748; }
[data-theme="dark"] .benchmark-item.benchmark-portfolio { border-right-color: #2D3748; }
[data-theme="dark"] .benchmark-label { color: #6B7280; }
[data-theme="dark"] .benchmark-value { color: #E5E7EB; }

/* Attribution dark */
[data-theme="dark"] .attrib-bar-row { border-bottom-color: rgba(255,255,255,0.05); }
[data-theme="dark"] .attrib-bar-label { color: #E5E7EB; }
[data-theme="dark"] .attrib-bar-track { background: #1A2332; }

/* Attribution total */
[data-theme="dark"] .attrib-total { border-top-color: rgba(255,255,255,0.08); }

/* Port tag */
[data-theme="dark"] .port-tag { color: #6B7280; }

/* Today Events + Smart Alerts */
[data-theme="dark"] .today-event-row:hover { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .today-event-more { color: #6B7280; }
[data-theme="dark"] .alert-detail { color: #9CA3AF; }
[data-theme="dark"] .alert-badge-high { background: rgba(63,185,80,0.12); }
[data-theme="dark"] .alert-badge-low { background: rgba(248,81,73,0.12); }
[data-theme="dark"] .alert-badge-mover { background: rgba(88,166,255,0.12); }

/* Quarterly enhancements dark */
[data-theme="dark"] .q-rmf-summary { border-top-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .q-label { color: #6B7280; }
[data-theme="dark"] .q-gpf-drift-alert { background: rgba(248,81,73,0.08); border-left-color: #f85149; }
[data-theme="dark"] .gpf-locked-badge { background: rgba(210,153,34,0.15); color: #d29922; }
[data-theme="dark"] .rmf-switch-card { background: rgba(248,81,73,0.08); border-color: rgba(248,81,73,0.25); }
[data-theme="dark"] .rmf-switch-card.rmf-switch-ok { background: rgba(63,185,80,0.08); border-color: rgba(63,185,80,0.25); }
[data-theme="dark"] .rmf-switch-row { border-bottom-color: rgba(255,255,255,0.04); }
[data-theme="dark"] .q-dca-quarter-summary { border-top-color: rgba(255,255,255,0.06); color: #9CA3AF; }
[data-theme="dark"] .q-dca-action { color: #9CA3AF; }
[data-theme="dark"] .dca-action-maintain { color: #3fb950; }
[data-theme="dark"] .dca-action-missed   { color: #f85149; }
[data-theme="dark"] .dca-action-partial  { color: #eab308; }
[data-theme="dark"] .dca-review-badge { background: rgba(197,165,90,0.12); color: #E8D5A3; }
[data-theme="dark"] .dca-quarter-review { background: rgba(16,185,129,0.12); color: #34d399; border-color: rgba(16,185,129,0.25); }
[data-theme="dark"] .dca-quarter-midq { background: rgba(245,158,11,0.12); color: #fbbf24; border-color: rgba(245,158,11,0.25); }
[data-theme="dark"] .q-dca-quarterly-note { background: rgba(255,255,255,0.04); color: #9CA3AF; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .q-journey-row { border-bottom-color: rgba(255,255,255,0.04); }
[data-theme="dark"] .q-journey-milestone { border-top-color: rgba(255,255,255,0.06); }

/* Theme toggle icon active state */
[data-theme="dark"] #btn-theme { color: var(--gold); }

/* GPF Info Card dark mode */
[data-theme="dark"] .gpf-info-card { background: rgba(197,165,90,0.08); border-color: rgba(197,165,90,0.20); }
[data-theme="dark"] .gpf-info-title { color: #E8D5A3; }
[data-theme="dark"] .gpf-info-value { color: #D1D5DB; }
[data-theme="dark"] .gpf-plan-chip { background: rgba(255,255,255,0.06); color: #D1D5DB; }
[data-theme="dark"] .gpf-plan-chip.gpf-plan-gold { background: rgba(197,165,90,0.15); color: #E8D5A3; }
[data-theme="dark"] .gpf-info-channels { color: #6B7280; border-top-color: rgba(255,255,255,0.06); }
/* Selection Tiers */
[data-theme="dark"] .selection-item { background: #161B22; border-color: #2D3748; }
[data-theme="dark"] .selection-tier-buy .selection-item {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.18);
}
[data-theme="dark"] .selection-tier-hold .selection-item {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.18);
}
[data-theme="dark"] .selection-tier-watch .selection-item {
  background: rgba(148, 163, 184, 0.06);
  border-color: rgba(148, 163, 184, 0.15);
}
[data-theme="dark"] .selection-symbol { color: #F3F4F6; }
[data-theme="dark"] .selection-name { color: #9CA3AF; }
[data-theme="dark"] .selection-reason { color: #8B949E; }
[data-theme="dark"] .selection-metrics { color: #6B7280; }
/* Portfolio Analysis */
[data-theme="dark"] .fx-exposure-bar { border: 1px solid rgba(255,255,255,0.06); }
[data-theme="dark"] .fx-counts { color: #9CA3AF; }
[data-theme="dark"] .drift-item { border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .drift-bar-track { background: #1F2937; }
[data-theme="dark"] .drift-bar-target { background: #9CA3AF; }
[data-theme="dark"] .mover-card { border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .mover-card.mover-gain { background: rgba(16,185,129,0.06); }
[data-theme="dark"] .mover-card.mover-loss { background: rgba(239,68,68,0.06); }
[data-theme="dark"] .mover-name { color: #9CA3AF; }
[data-theme="dark"] .analysis-risk-row { border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .analysis-risk-bar { background: #1F2937; }
[data-theme="dark"] .action-item { border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .action-reason { color: #9CA3AF; }
/* News Tab */
[data-theme="dark"] .news-cat-btn { border-color: #374151; color: #D1D5DB; }
[data-theme="dark"] .news-cat-btn.active { background: #3B82F6; border-color: #3B82F6; color: #fff; }
[data-theme="dark"] .article-card { border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .article-card:hover { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .article-source { background: #374151; }
[data-theme="dark"] .article-time { color: #6B7280; }
[data-theme="dark"] .article-title { color: #F3F4F6; }
[data-theme="dark"] .news-show-more { border-color: #374151; color: #9CA3AF; }
[data-theme="dark"] .sector-bar-track { background: #1F2937; }
[data-theme="dark"] .sector-bar-fill { background: #3B82F6; }
[data-theme="dark"] .sector-bar-count { color: #9CA3AF; }
[data-theme="dark"] .macro-pill { background: rgba(59,130,246,0.1) !important; }

/* DCA Summary + AI collapsible (Analysis tab) */
[data-theme="dark"] .dca-summary-row { border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .dca-s-broker { color: #D1D5DB; }
[data-theme="dark"] .ai-section { border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .ai-section-title { color: #D1D5DB; }
