/* ============================================================
   MARKETVISTA AI — LIVE THEME SYNC HOTFIX
   FILE: /public_html/assets/css/mv-theme-live-sync-hotfix.css
   VERSION: 1.0
   DATE: 2026-03-29
============================================================ */

html.mv-theme-light,
body.mv-theme-light,
html[data-mv-theme="light"],
body[data-mv-theme="light"] {
    color-scheme: light;
}

html.mv-theme-dark,
body.mv-theme-dark,
html[data-mv-theme="dark"],
body[data-mv-theme="dark"] {
    color-scheme: dark;
}

html.mv-theme-light .mv-front-global-startbar,
body.mv-theme-light .mv-front-global-startbar,
html[data-mv-theme="light"] .mv-front-global-startbar,
body[data-mv-theme="light"] .mv-front-global-startbar,
html.mv-theme-light .mv-front-source-sidebar,
body.mv-theme-light .mv-front-source-sidebar,
html[data-mv-theme="light"] .mv-front-source-sidebar,
body[data-mv-theme="light"] .mv-front-source-sidebar {
    background: #f6f8fc !important;
    border-right: 1px solid rgba(15, 23, 42, 0.10) !important;
    box-shadow: none !important;
}

html.mv-theme-dark .mv-front-global-startbar,
body.mv-theme-dark .mv-front-global-startbar,
html[data-mv-theme="dark"] .mv-front-global-startbar,
body[data-mv-theme="dark"] .mv-front-global-startbar,
html.mv-theme-dark .mv-front-source-sidebar,
body.mv-theme-dark .mv-front-source-sidebar,
html[data-mv-theme="dark"] .mv-front-source-sidebar,
body[data-mv-theme="dark"] .mv-front-source-sidebar {
    background: #0a1324 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

html.mv-theme-light .mv-front-source-brand-title,
body.mv-theme-light .mv-front-source-brand-title,
html[data-mv-theme="light"] .mv-front-source-brand-title,
body[data-mv-theme="light"] .mv-front-source-brand-title,
html.mv-theme-light .mv-front-source-link,
body.mv-theme-light .mv-front-source-link,
html[data-mv-theme="light"] .mv-front-source-link,
body[data-mv-theme="light"] .mv-front-source-link,
html.mv-theme-light .mv-front-source-account-name,
body.mv-theme-light .mv-front-source-account-name,
html[data-mv-theme="light"] .mv-front-source-account-name,
body[data-mv-theme="light"] .mv-front-source-account-name {
    color: #0f172a !important;
}

html.mv-theme-dark .mv-front-source-brand-title,
body.mv-theme-dark .mv-front-source-brand-title,
html[data-mv-theme="dark"] .mv-front-source-brand-title,
body[data-mv-theme="dark"] .mv-front-source-brand-title,
html.mv-theme-dark .mv-front-source-link,
body.mv-theme-dark .mv-front-source-link,
html[data-mv-theme="dark"] .mv-front-source-link,
body[data-mv-theme="dark"] .mv-front-source-link,
html.mv-theme-dark .mv-front-source-account-name,
body.mv-theme-dark .mv-front-source-account-name,
html[data-mv-theme="dark"] .mv-front-source-account-name,
body[data-mv-theme="dark"] .mv-front-source-account-name {
    color: #eef4ff !important;
}

html.mv-theme-light .mv-front-source-link.active,
body.mv-theme-light .mv-front-source-link.active,
html[data-mv-theme="light"] .mv-front-source-link.active,
body[data-mv-theme="light"] .mv-front-source-link.active,
html.mv-theme-light .mv-front-source-link:hover,
body.mv-theme-light .mv-front-source-link:hover,
html[data-mv-theme="light"] .mv-front-source-link:hover,
body[data-mv-theme="light"] .mv-front-source-link:hover {
    background: #eef2ff !important;
}

html.mv-theme-dark .mv-front-source-link.active,
body.mv-theme-dark .mv-front-source-link.active,
html[data-mv-theme="dark"] .mv-front-source-link.active,
body[data-mv-theme="dark"] .mv-front-source-link.active,
html.mv-theme-dark .mv-front-source-link:hover,
body.mv-theme-dark .mv-front-source-link:hover,
html[data-mv-theme="dark"] .mv-front-source-link:hover,
body[data-mv-theme="dark"] .mv-front-source-link:hover {
    background: rgba(255,255,255,0.06) !important;
}

/* AI / analysis / desk pages that were lagging theme changes */
html.mv-theme-light .mv-ai-page-panel,
html.mv-theme-light .mv-analysis-hero,
html.mv-theme-light .mv-analysis-panel,
html.mv-theme-light .mv-analysis-doc,
html.mv-theme-light .mv-ai-widget-card,
html.mv-theme-light .mv-pm-hero,
html.mv-theme-light .mv-pm-hero-panel,
html.mv-theme-light .mv-pm-stat-card,
html.mv-theme-light .mv-pm-toolbar,
html.mv-theme-light .mv-pm-top-card,
html.mv-theme-light .mv-pm-card,
html.mv-theme-light .mv-pm-side-card,
html.mv-theme-light .mv-pm-page .card,
html.mv-theme-light .mv-widget,
body.mv-theme-light .mv-ai-page-panel,
body.mv-theme-light .mv-analysis-hero,
body.mv-theme-light .mv-analysis-panel,
body.mv-theme-light .mv-analysis-doc,
body.mv-theme-light .mv-ai-widget-card,
body.mv-theme-light .mv-pm-hero,
body.mv-theme-light .mv-pm-hero-panel,
body.mv-theme-light .mv-pm-stat-card,
body.mv-theme-light .mv-pm-toolbar,
body.mv-theme-light .mv-pm-top-card,
body.mv-theme-light .mv-pm-card,
body.mv-theme-light .mv-pm-side-card,
body.mv-theme-light .mv-pm-page .card,
body.mv-theme-light .mv-widget,
html[data-mv-theme="light"] .mv-ai-page-panel,
html[data-mv-theme="light"] .mv-analysis-hero,
html[data-mv-theme="light"] .mv-analysis-panel,
html[data-mv-theme="light"] .mv-analysis-doc,
html[data-mv-theme="light"] .mv-ai-widget-card,
html[data-mv-theme="light"] .mv-pm-hero,
html[data-mv-theme="light"] .mv-pm-hero-panel,
html[data-mv-theme="light"] .mv-pm-stat-card,
html[data-mv-theme="light"] .mv-pm-toolbar,
html[data-mv-theme="light"] .mv-pm-top-card,
html[data-mv-theme="light"] .mv-pm-card,
html[data-mv-theme="light"] .mv-pm-side-card,
html[data-mv-theme="light"] .mv-pm-page .card,
html[data-mv-theme="light"] .mv-widget,
body[data-mv-theme="light"] .mv-ai-page-panel,
body[data-mv-theme="light"] .mv-analysis-hero,
body[data-mv-theme="light"] .mv-analysis-panel,
body[data-mv-theme="light"] .mv-analysis-doc,
body[data-mv-theme="light"] .mv-ai-widget-card,
body[data-mv-theme="light"] .mv-pm-hero,
body[data-mv-theme="light"] .mv-pm-hero-panel,
body[data-mv-theme="light"] .mv-pm-stat-card,
body[data-mv-theme="light"] .mv-pm-toolbar,
body[data-mv-theme="light"] .mv-pm-top-card,
body[data-mv-theme="light"] .mv-pm-card,
body[data-mv-theme="light"] .mv-pm-side-card,
body[data-mv-theme="light"] .mv-pm-page .card,
body[data-mv-theme="light"] .mv-widget {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
}

html.mv-theme-light .mv-ai-page-panel .text-muted,
html.mv-theme-light .mv-analysis-panel .text-muted,
html.mv-theme-light .mv-pm-page .text-muted,
html.mv-theme-light .mv-widget .text-muted,
body.mv-theme-light .mv-ai-page-panel .text-muted,
body.mv-theme-light .mv-analysis-panel .text-muted,
body.mv-theme-light .mv-pm-page .text-muted,
body.mv-theme-light .mv-widget .text-muted,
html[data-mv-theme="light"] .mv-ai-page-panel .text-muted,
html[data-mv-theme="light"] .mv-analysis-panel .text-muted,
html[data-mv-theme="light"] .mv-pm-page .text-muted,
html[data-mv-theme="light"] .mv-widget .text-muted,
body[data-mv-theme="light"] .mv-ai-page-panel .text-muted,
body[data-mv-theme="light"] .mv-analysis-panel .text-muted,
body[data-mv-theme="light"] .mv-pm-page .text-muted,
body[data-mv-theme="light"] .mv-widget .text-muted {
    color: #64748b !important;
}

html.mv-theme-light .mv-ai-inline-chat textarea,
html.mv-theme-light .mv-analysis-form textarea,
html.mv-theme-light .mv-analysis-form input,
html.mv-theme-light .mv-pm-toolbar input,
html.mv-theme-light .mv-pm-toolbar select,
body.mv-theme-light .mv-ai-inline-chat textarea,
body.mv-theme-light .mv-analysis-form textarea,
body.mv-theme-light .mv-analysis-form input,
body.mv-theme-light .mv-pm-toolbar input,
body.mv-theme-light .mv-pm-toolbar select,
html[data-mv-theme="light"] .mv-ai-inline-chat textarea,
html[data-mv-theme="light"] .mv-analysis-form textarea,
html[data-mv-theme="light"] .mv-analysis-form input,
html[data-mv-theme="light"] .mv-pm-toolbar input,
html[data-mv-theme="light"] .mv-pm-toolbar select,
body[data-mv-theme="light"] .mv-ai-inline-chat textarea,
body[data-mv-theme="light"] .mv-analysis-form textarea,
body[data-mv-theme="light"] .mv-analysis-form input,
body[data-mv-theme="light"] .mv-pm-toolbar input,
body[data-mv-theme="light"] .mv-pm-toolbar select {
    background: #f8fbff !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
}

/* tiny visual cue so the repaint is obvious without reload */
html.mv-theme-light .mv-theme-live-ready,
body.mv-theme-light .mv-theme-live-ready,
html[data-mv-theme="light"] .mv-theme-live-ready,
body[data-mv-theme="light"] .mv-theme-live-ready,
html.mv-theme-dark .mv-theme-live-ready,
body.mv-theme-dark .mv-theme-live-ready,
html[data-mv-theme="dark"] .mv-theme-live-ready,
body[data-mv-theme="dark"] .mv-theme-live-ready {
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
