/* ============================================================
   MARKETVISTA AI — AI WIDGET + PREDICTION PAGE THEME FIX
   FILE: /assets/css/mv-theme-ai-widget-pages-fix.css
   VERSION: 1.1
   DATE: 2026-03-30
============================================================ */

html,
body {
    --mv-ai-fix-surface: #ffffff;
    --mv-ai-fix-surface-soft: #f7faff;
    --mv-ai-fix-surface-2: #eef4fb;
    --mv-ai-fix-border: rgba(15, 23, 42, 0.10);
    --mv-ai-fix-text: #0f172a;
    --mv-ai-fix-text-soft: #334155;
    --mv-ai-fix-text-muted: #64748b;
    --mv-ai-fix-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --mv-ai-fix-hero: linear-gradient(135deg, #0f1727 0%, #111a2e 48%, #16233d 100%);
    --mv-ai-fix-hero-text: #eef4ff;
    --mv-ai-fix-hero-muted: #b9c4d8;
    --mv-ai-fix-chip: rgba(37, 99, 235, 0.08);
    --mv-ai-fix-user: rgba(37, 99, 235, 0.10);
    --mv-ai-fix-user-border: rgba(37, 99, 235, 0.20);
}

html[data-bs-theme="dark"],
body[data-bs-theme="dark"],
html[data-mv-theme="dark"],
body[data-mv-theme="dark"],
html.mv-theme-dark,
body.mv-theme-dark,
html.theme-dark,
body.theme-dark {
    --mv-ai-fix-surface: linear-gradient(180deg, rgba(16, 24, 39, 0.98), rgba(13, 20, 34, 0.96));
    --mv-ai-fix-surface-soft: rgba(255,255,255,0.045);
    --mv-ai-fix-surface-2: rgba(255,255,255,0.065);
    --mv-ai-fix-border: rgba(255,255,255,0.08);
    --mv-ai-fix-text: #eef4ff;
    --mv-ai-fix-text-soft: #d7e2f1;
    --mv-ai-fix-text-muted: #9fb0ca;
    --mv-ai-fix-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
    --mv-ai-fix-hero: linear-gradient(135deg, #081121 0%, #0b1730 48%, #0f2140 100%);
    --mv-ai-fix-hero-text: #eef4ff;
    --mv-ai-fix-hero-muted: #bdd0e7;
    --mv-ai-fix-chip: rgba(255,255,255,0.06);
    --mv-ai-fix-user: rgba(56, 189, 248, 0.12);
    --mv-ai-fix-user-border: rgba(56, 189, 248, 0.24);
}

/* inline AI widgets */
#mvAiWatchlistSignalsCard .mv-ai-widget-card,
#mvAiAutoTraderCopilot .mv-ai-widget-card,
#mvAiSignalsDesk .mv-ai-widget-card,
.mv-ai-page-panel,
.mv-ai-mini-card,
.mv-ai-history-item,
.mv-ai-inline-chat .mv-ai-bubble,
.mv-ai-inline-chat .mv-ai-tools,
.mv-ai-inline-chat .mv-ai-pinned-chip,
.mv-ai-inline-chat textarea,
.mv-ai-inline-chat .mv-ai-helper-copy,
#mvAiPageThread .mv-ai-row,
#mvAiPageInput,
#mvAiPageForm .form-control,
.mv-ai-page-insight-list .mv-ai-mini-card,
.mv-ai-page-panel .btn.btn-outline-light,
.mv-ai-page-panel .btn.btn-outline-light:hover,
.mv-ai-page-panel .btn.btn-outline-light:focus-visible {
    color: var(--mv-ai-fix-text) !important;
}

#mvAiWatchlistSignalsCard .mv-ai-widget-card,
#mvAiAutoTraderCopilot .mv-ai-widget-card,
#mvAiSignalsDesk .mv-ai-widget-card,
.mv-ai-page-panel,
.mv-ai-page-insight-list .mv-ai-mini-card,
.mv-ai-page-panel .mv-ai-mini-card,
.mv-ai-inline-chat .mv-ai-bubble.is-assistant,
.mv-ai-inline-chat .mv-ai-tools,
.mv-ai-inline-chat .mv-ai-pinned-chip,
.mv-ai-inline-chat textarea,
#mvAiPageInput,
#mvAiPageForm .form-control,
#mvAiPageSavedThreads .mv-ai-history-item,
#mvAiPagePinned .mv-ai-history-item {
    background: var(--mv-ai-fix-surface) !important;
    border-color: var(--mv-ai-fix-border) !important;
    box-shadow: var(--mv-ai-fix-shadow) !important;
}

.mv-ai-inline-chat .mv-ai-bubble.is-user {
    background: var(--mv-ai-fix-user) !important;
    border-color: var(--mv-ai-fix-user-border) !important;
    color: var(--mv-ai-fix-text) !important;
}

#mvAiWatchlistSignalsCard .card-header,
#mvAiAutoTraderCopilot .card-header,
#mvAiSignalsDesk .card-header,
.mv-ai-page-panel h4,
.mv-ai-page-panel h5,
.mv-ai-page-panel h6,
.mv-ai-inline-chat strong,
.mv-ai-inline-chat h6,
.mv-ai-history-item strong {
    color: var(--mv-ai-fix-text) !important;
}

#mvAiWatchlistSignalsCard .text-muted,
#mvAiAutoTraderCopilot .text-muted,
#mvAiSignalsDesk .text-muted,
.mv-ai-page-panel .text-muted,
.mv-ai-page-panel .small,
.mv-ai-page-panel .mv-ai-helper-copy,
.mv-ai-page-panel .mv-ai-meta,
.mv-ai-inline-chat .mv-ai-meta,
.mv-ai-inline-chat .mv-ai-card-meta,
.mv-ai-inline-chat p,
.mv-ai-inline-chat li,
.mv-ai-inline-chat .mv-ai-message,
.mv-ai-page-panel .mv-ai-mini-card div,
.mv-ai-page-panel .mv-ai-mini-card p,
.mv-ai-page-panel .mv-ai-mini-card li,
#mvAiPageSavedThreads,
#mvAiPagePinned {
    color: var(--mv-ai-fix-text-muted) !important;
}

#mvAiWatchlistSignalsCard textarea,
#mvAiAutoTraderCopilot textarea,
#mvAiSignalsDesk textarea,
#mvAiPageInput,
#mvAiPageForm textarea,
#mvAiPageForm input {
    background: var(--mv-ai-fix-surface-soft) !important;
    color: var(--mv-ai-fix-text) !important;
    border-color: var(--mv-ai-fix-border) !important;
}

#mvAiWatchlistSignalsCard textarea::placeholder,
#mvAiAutoTraderCopilot textarea::placeholder,
#mvAiSignalsDesk textarea::placeholder,
#mvAiPageInput::placeholder,
#mvAiPageForm textarea::placeholder,
#mvAiPageForm input::placeholder {
    color: var(--mv-ai-fix-text-muted) !important;
}

#mvAiWatchlistSignalsCard .btn.btn-outline-light,
#mvAiAutoTraderCopilot .btn.btn-outline-light,
#mvAiSignalsDesk .btn.btn-outline-light,
.mv-ai-page-panel .btn.btn-outline-light {
    color: var(--mv-ai-fix-text) !important;
    border-color: var(--mv-ai-fix-border) !important;
    background: var(--mv-ai-fix-surface-soft) !important;
}

#mvAiWatchlistSignalsCard .btn.btn-outline-light:hover,
#mvAiAutoTraderCopilot .btn.btn-outline-light:hover,
#mvAiSignalsDesk .btn.btn-outline-light:hover,
.mv-ai-page-panel .btn.btn-outline-light:hover,
.mv-ai-page-panel .btn.btn-outline-light:focus-visible {
    background: var(--mv-ai-fix-surface-2) !important;
}

.mv-ai-inline-chat .mv-ai-tool-btn,
.mv-ai-inline-chat .mv-ai-pin-btn {
    background: var(--mv-ai-fix-surface-soft) !important;
    color: var(--mv-ai-fix-text) !important;
    border-color: var(--mv-ai-fix-border) !important;
}

/* prediction market standalone + themed cards */
.mv-pm-page,
.mv-pm-page .card,
.mv-pm-stat-card,
.mv-pm-toolbar,
.mv-pm-side-card,
.mv-pm-empty,
.mv-pm-meta-grid div {
    color: var(--mv-ai-fix-text) !important;
}

html[data-bs-theme="light"] .mv-pm-page .card,
body[data-bs-theme="light"] .mv-pm-page .card,
html[data-mv-theme="light"] .mv-pm-page .card,
body[data-mv-theme="light"] .mv-pm-page .card,
html.mv-theme-light .mv-pm-page .card,
body.mv-theme-light .mv-pm-page .card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
}

html[data-bs-theme="light"] .mv-pm-hero,
body[data-bs-theme="light"] .mv-pm-hero,
html[data-bs-theme="light"] .mv-pm-hero-panel,
body[data-bs-theme="light"] .mv-pm-hero-panel,
html[data-mv-theme="light"] .mv-pm-hero,
body[data-mv-theme="light"] .mv-pm-hero,
html[data-mv-theme="light"] .mv-pm-hero-panel,
body[data-mv-theme="light"] .mv-pm-hero-panel {
    background: var(--mv-ai-fix-hero) !important;
    color: var(--mv-ai-fix-hero-text) !important;
}

html[data-bs-theme="light"] .mv-pm-hero *,
body[data-bs-theme="light"] .mv-pm-hero *,
html[data-bs-theme="light"] .mv-pm-hero-panel *,
body[data-bs-theme="light"] .mv-pm-hero-panel *,
html[data-mv-theme="light"] .mv-pm-hero *,
body[data-mv-theme="light"] .mv-pm-hero *,
html[data-mv-theme="light"] .mv-pm-hero-panel *,
body[data-mv-theme="light"] .mv-pm-hero-panel * {
    color: inherit;
}

html[data-bs-theme="light"] .mv-pm-top-card,
body[data-bs-theme="light"] .mv-pm-top-card,
html[data-bs-theme="light"] .mv-pm-card,
body[data-bs-theme="light"] .mv-pm-card,
html[data-mv-theme="light"] .mv-pm-top-card,
body[data-mv-theme="light"] .mv-pm-top-card,
html[data-mv-theme="light"] .mv-pm-card,
body[data-mv-theme="light"] .mv-pm-card {
    background: var(--mv-ai-fix-hero) !important;
    color: var(--mv-ai-fix-hero-text) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

html[data-bs-theme="light"] .mv-pm-top-card *,
body[data-bs-theme="light"] .mv-pm-top-card *,
html[data-bs-theme="light"] .mv-pm-card *,
body[data-bs-theme="light"] .mv-pm-card *,
html[data-mv-theme="light"] .mv-pm-top-card *,
body[data-mv-theme="light"] .mv-pm-top-card *,
html[data-mv-theme="light"] .mv-pm-card *,
body[data-mv-theme="light"] .mv-pm-card * {
    color: inherit;
}

html[data-bs-theme="light"] .mv-pm-stat-label,
body[data-bs-theme="light"] .mv-pm-stat-label,
html[data-bs-theme="light"] .mv-pm-stat-note,
body[data-bs-theme="light"] .mv-pm-stat-note,
html[data-bs-theme="light"] .mv-pm-side-copy,
body[data-bs-theme="light"] .mv-pm-side-copy,
html[data-bs-theme="light"] .mv-pm-method,
body[data-bs-theme="light"] .mv-pm-method,
html[data-bs-theme="light"] .mv-pm-coverage-row,
body[data-bs-theme="light"] .mv-pm-coverage-row,
html[data-mv-theme="light"] .mv-pm-stat-label,
body[data-mv-theme="light"] .mv-pm-stat-label,
html[data-mv-theme="light"] .mv-pm-stat-note,
body[data-mv-theme="light"] .mv-pm-stat-note,
html[data-mv-theme="light"] .mv-pm-side-copy,
body[data-mv-theme="light"] .mv-pm-side-copy,
html[data-mv-theme="light"] .mv-pm-method,
body[data-mv-theme="light"] .mv-pm-method,
html[data-mv-theme="light"] .mv-pm-coverage-row,
body[data-mv-theme="light"] .mv-pm-coverage-row {
    color: var(--mv-ai-fix-text-muted) !important;
}


/* ============================================================
   MARKETVISTA AI — FINAL AI WIDGET + PREDICTION MARKET POLISH
   FILE: /assets/css/mv-theme-ai-widget-pages-fix.css
   VERSION: 1.1
   DATE: 2026-03-29
============================================================ */

/* inline AI widget chips were inheriting the dark shell palette in light mode */
html[data-bs-theme="light"] .mv-ai-inline-chat .mv-ai-chip,
body[data-bs-theme="light"] .mv-ai-inline-chat .mv-ai-chip,
html[data-mv-theme="light"] .mv-ai-inline-chat .mv-ai-chip,
body[data-mv-theme="light"] .mv-ai-inline-chat .mv-ai-chip,
html.mv-theme-light .mv-ai-inline-chat .mv-ai-chip,
body.mv-theme-light .mv-ai-inline-chat .mv-ai-chip {
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
    color: var(--mv-ai-fix-text) !important;
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06) !important;
}

html[data-bs-theme="light"] .mv-ai-inline-chat .mv-ai-chip:hover,
body[data-bs-theme="light"] .mv-ai-inline-chat .mv-ai-chip:hover,
html[data-mv-theme="light"] .mv-ai-inline-chat .mv-ai-chip:hover,
body[data-mv-theme="light"] .mv-ai-inline-chat .mv-ai-chip:hover,
html.mv-theme-light .mv-ai-inline-chat .mv-ai-chip:hover,
body.mv-theme-light .mv-ai-inline-chat .mv-ai-chip:hover,
html[data-bs-theme="light"] .mv-ai-inline-chat .mv-ai-chip:focus-visible,
body[data-bs-theme="light"] .mv-ai-inline-chat .mv-ai-chip:focus-visible,
html[data-mv-theme="light"] .mv-ai-inline-chat .mv-ai-chip:focus-visible,
body[data-mv-theme="light"] .mv-ai-inline-chat .mv-ai-chip:focus-visible,
html.mv-theme-light .mv-ai-inline-chat .mv-ai-chip:focus-visible,
body.mv-theme-light .mv-ai-inline-chat .mv-ai-chip:focus-visible {
    background: linear-gradient(180deg, #eef4ff, #e8f0ff) !important;
    color: #1d4ed8 !important;
    border-color: rgba(37, 99, 235, 0.22) !important;
    outline: none !important;
}

.mv-ai-inline-chat .mv-ai-inline-pinned .small.text-muted,
.mv-ai-inline-chat .mv-ai-helper-copy,
.mv-ai-inline-chat .mv-ai-meta {
    color: var(--mv-ai-fix-text-muted) !important;
}

.mv-ai-inline-chat .mv-ai-pinned-chip {
    background: var(--mv-ai-fix-surface-soft) !important;
    color: var(--mv-ai-fix-text-soft) !important;
    border: 1px solid var(--mv-ai-fix-border) !important;
    box-shadow: none !important;
}

/* prediction market hero needed a stronger selector than the generic .mv-pm-page .card light override */
html[data-bs-theme="light"] .mv-pm-page section.card.mv-pm-hero,
body[data-bs-theme="light"] .mv-pm-page section.card.mv-pm-hero,
html[data-mv-theme="light"] .mv-pm-page section.card.mv-pm-hero,
body[data-mv-theme="light"] .mv-pm-page section.card.mv-pm-hero,
html.mv-theme-light .mv-pm-page section.card.mv-pm-hero,
body.mv-theme-light .mv-pm-page section.card.mv-pm-hero {
    background: var(--mv-ai-fix-hero) !important;
    color: var(--mv-ai-fix-hero-text) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14) !important;
}

html[data-bs-theme="light"] .mv-pm-page section.card.mv-pm-hero .text-muted,
body[data-bs-theme="light"] .mv-pm-page section.card.mv-pm-hero .text-muted,
html[data-mv-theme="light"] .mv-pm-page section.card.mv-pm-hero .text-muted,
body[data-mv-theme="light"] .mv-pm-page section.card.mv-pm-hero .text-muted,
html.mv-theme-light .mv-pm-page section.card.mv-pm-hero .text-muted,
body.mv-theme-light .mv-pm-page section.card.mv-pm-hero .text-muted,
html[data-bs-theme="light"] .mv-pm-page section.card.mv-pm-hero .mv-pm-subtitle,
body[data-bs-theme="light"] .mv-pm-page section.card.mv-pm-hero .mv-pm-subtitle,
html[data-mv-theme="light"] .mv-pm-page section.card.mv-pm-hero .mv-pm-subtitle,
body[data-mv-theme="light"] .mv-pm-page section.card.mv-pm-hero .mv-pm-subtitle,
html.mv-theme-light .mv-pm-page section.card.mv-pm-hero .mv-pm-subtitle,
body.mv-theme-light .mv-pm-page section.card.mv-pm-hero .mv-pm-subtitle,
html[data-bs-theme="light"] .mv-pm-page section.card.mv-pm-hero .mv-pm-hero-note,
body[data-bs-theme="light"] .mv-pm-page section.card.mv-pm-hero .mv-pm-hero-note,
html[data-mv-theme="light"] .mv-pm-page section.card.mv-pm-hero .mv-pm-hero-note,
body[data-mv-theme="light"] .mv-pm-page section.card.mv-pm-hero .mv-pm-hero-note,
html.mv-theme-light .mv-pm-page section.card.mv-pm-hero .mv-pm-hero-note,
body.mv-theme-light .mv-pm-page section.card.mv-pm-hero .mv-pm-hero-note {
    color: var(--mv-ai-fix-hero-muted) !important;
}

/* prediction market widgets: restore the sitewide accent strip system */
.card.mv-widget[data-widget^="prediction_market"] {
    --mv-widget-accent-1: #22d3ee;
    --mv-widget-accent-2: #3b82f6;
    --mv-widget-accent-3: #8b5cf6;
    --mv-widget-accent-soft: rgba(59, 130, 246, 0.14);
}

.card.mv-widget[data-widget="prediction_market_hero"] {
    --mv-widget-accent-1: #22d3ee;
    --mv-widget-accent-2: #3b82f6;
    --mv-widget-accent-3: #8b5cf6;
}

.card.mv-widget[data-widget="prediction_market_top"],
.card.mv-widget[data-widget="prediction_market_board"] {
    --mv-widget-accent-1: #38bdf8;
    --mv-widget-accent-2: #2563eb;
    --mv-widget-accent-3: #7c3aed;
}

.card.mv-widget[data-widget="prediction_market_regime"],
.card.mv-widget[data-widget="prediction_market_coverage"],
.card.mv-widget[data-widget="prediction_market_method"] {
    --mv-widget-accent-1: #14b8a6;
    --mv-widget-accent-2: #22c55e;
    --mv-widget-accent-3: #3b82f6;
}

.card.mv-widget[data-widget="prediction_market_filters"],
.card.mv-widget[data-widget="prediction_market_stat"] {
    --mv-widget-accent-1: #60a5fa;
    --mv-widget-accent-2: #38bdf8;
    --mv-widget-accent-3: #6366f1;
}

/* add an accent strip to the dark ranked cards too */
.mv-pm-top-card,
.mv-pm-card {
    position: relative;
    overflow: hidden;
}

.mv-pm-top-card::before,
.mv-pm-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #2563eb, #8b5cf6);
}

.mv-pm-top-card.bearish::before,
.mv-pm-card.dir-bearish::before {
    background: linear-gradient(90deg, #fb7185, #ef4444, #f59e0b);
}

.mv-pm-top-card.bullish::before,
.mv-pm-card.dir-bullish::before {
    background: linear-gradient(90deg, #22c55e, #14b8a6, #38bdf8);
}

/* sitewide popup AI shell: make it comply cleanly in both themes */
html[data-bs-theme="light"] .mv-ai-shell-panel,
body[data-bs-theme="light"] .mv-ai-shell-panel,
html[data-mv-theme="light"] .mv-ai-shell-panel,
body[data-mv-theme="light"] .mv-ai-shell-panel,
html.mv-theme-light .mv-ai-shell-panel,
body.mv-theme-light .mv-ai-shell-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    color: var(--mv-ai-fix-text) !important;
    border-color: var(--mv-ai-fix-border) !important;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18) !important;
}

html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-header,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-header,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-header,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-header,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-header,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-header {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.02)) !important;
    border-bottom-color: var(--mv-ai-fix-border) !important;
}

html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-title,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-title,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-title,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-title,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-title,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-title,
html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-bubble,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-bubble,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-bubble,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-bubble,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-bubble,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-bubble,
html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-chip,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-chip,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-chip,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-chip,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-chip,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-chip,
html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-mini-card,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-mini-card,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-mini-card,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-mini-card,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-mini-card,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-mini-card,
html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-empty-card,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-empty-card,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-empty-card,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-empty-card,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-empty-card,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-empty-card {
    color: var(--mv-ai-fix-text) !important;
}

html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-subtitle,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-subtitle,
html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-health,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-health,
html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-context,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-context,
html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-helper-copy,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-helper-copy,
html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-meta,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-meta,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-subtitle,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-subtitle,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-health,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-health,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-context,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-context,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-helper-copy,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-helper-copy,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-meta,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-meta,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-subtitle,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-subtitle,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-health,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-health,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-context,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-context,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-helper-copy,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-helper-copy,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-meta,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-meta {
    color: var(--mv-ai-fix-text-muted) !important;
}

html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-icon-btn,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-icon-btn,
html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-chip,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-chip,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-icon-btn,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-icon-btn,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-chip,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-chip,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-icon-btn,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-icon-btn,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-chip,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-chip {
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
    color: var(--mv-ai-fix-text) !important;
    border-color: var(--mv-ai-fix-border) !important;
}

html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-bubble.is-assistant,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-bubble.is-assistant,
html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-mini-card,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-mini-card,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-bubble.is-assistant,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-bubble.is-assistant,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-mini-card,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-mini-card,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-bubble.is-assistant,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-bubble.is-assistant,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-mini-card,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-mini-card {
    background: var(--mv-ai-fix-surface-soft) !important;
    border-color: var(--mv-ai-fix-border) !important;
    box-shadow: none !important;
}

html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-composer,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-composer,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-composer,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-composer,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-composer,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-composer {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.02), rgba(255,255,255,0.9)) !important;
    border-top-color: var(--mv-ai-fix-border) !important;
}

html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-composer textarea,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-composer textarea,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-composer textarea,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-composer textarea,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-composer textarea,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-composer textarea {
    background: #ffffff !important;
    color: var(--mv-ai-fix-text) !important;
    border-color: rgba(37, 99, 235, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 10px 20px rgba(15, 23, 42, 0.06) !important;
}

html[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-composer textarea::placeholder,
body[data-bs-theme="light"] .mv-ai-shell-panel .mv-ai-composer textarea::placeholder,
html[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-composer textarea::placeholder,
body[data-mv-theme="light"] .mv-ai-shell-panel .mv-ai-composer textarea::placeholder,
html.mv-theme-light .mv-ai-shell-panel .mv-ai-composer textarea::placeholder,
body.mv-theme-light .mv-ai-shell-panel .mv-ai-composer textarea::placeholder {
    color: var(--mv-ai-fix-text-muted) !important;
}

.mv-ai-shell-panel .mv-ai-composer textarea:focus {
    outline: none !important;
    border-color: rgba(56, 189, 248, 0.34) !important;
    box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.12) !important;
}


/* standalone prediction market may not load the widget shell stylesheet, so provide a local strip fallback */
.mv-pm-page .mv-widget {
    position: relative;
    overflow: hidden;
}

.mv-pm-page .mv-widget::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mv-widget-accent-1, #22d3ee), var(--mv-widget-accent-2, #3b82f6), var(--mv-widget-accent-3, #8b5cf6));
    z-index: 2;
}

.mv-pm-page .mv-widget > .card-body {
    position: relative;
    z-index: 3;
}

/* ============================================================
   MARKETVISTA AI — CONTRAST + FORECAST PAGE POLISH
   FILE: /assets/css/mv-theme-ai-widget-pages-fix.css
   VERSION: 1.2
   DATE: 2026-03-30
============================================================ */

html[data-bs-theme="light"] .mv-pm-page .mv-pm-stat-label,
body[data-bs-theme="light"] .mv-pm-page .mv-pm-stat-label,
html[data-bs-theme="light"] .mv-pm-page .form-label-sm,
body[data-bs-theme="light"] .mv-pm-page .form-label-sm,
html[data-mv-theme="light"] .mv-pm-page .mv-pm-stat-label,
body[data-mv-theme="light"] .mv-pm-page .mv-pm-stat-label,
html[data-mv-theme="light"] .mv-pm-page .form-label-sm,
body[data-mv-theme="light"] .mv-pm-page .form-label-sm,
html.mv-theme-light .mv-pm-page .mv-pm-stat-label,
body.mv-theme-light .mv-pm-page .mv-pm-stat-label,
html.mv-theme-light .mv-pm-page .form-label-sm,
body.mv-theme-light .mv-pm-page .form-label-sm {
    color: #566983 !important;
}

html[data-bs-theme="light"] .mv-pm-page .mv-pm-stat-note,
body[data-bs-theme="light"] .mv-pm-page .mv-pm-stat-note,
html[data-bs-theme="light"] .mv-pm-page .mv-pm-side-copy,
body[data-bs-theme="light"] .mv-pm-page .mv-pm-side-copy,
html[data-bs-theme="light"] .mv-pm-page .mv-pm-method,
body[data-bs-theme="light"] .mv-pm-page .mv-pm-method,
html[data-bs-theme="light"] .mv-pm-page .mv-pm-coverage-row,
body[data-bs-theme="light"] .mv-pm-page .mv-pm-coverage-row,
html[data-bs-theme="light"] .mv-pm-page .mv-pm-card-note,
body[data-bs-theme="light"] .mv-pm-page .mv-pm-card-note,
html[data-mv-theme="light"] .mv-pm-page .mv-pm-stat-note,
body[data-mv-theme="light"] .mv-pm-page .mv-pm-stat-note,
html[data-mv-theme="light"] .mv-pm-page .mv-pm-side-copy,
body[data-mv-theme="light"] .mv-pm-page .mv-pm-side-copy,
html[data-mv-theme="light"] .mv-pm-page .mv-pm-method,
body[data-mv-theme="light"] .mv-pm-page .mv-pm-method,
html[data-mv-theme="light"] .mv-pm-page .mv-pm-coverage-row,
body[data-mv-theme="light"] .mv-pm-page .mv-pm-coverage-row,
html[data-mv-theme="light"] .mv-pm-page .mv-pm-card-note,
body[data-mv-theme="light"] .mv-pm-page .mv-pm-card-note,
html.mv-theme-light .mv-pm-page .mv-pm-stat-note,
body.mv-theme-light .mv-pm-page .mv-pm-stat-note,
html.mv-theme-light .mv-pm-page .mv-pm-side-copy,
body.mv-theme-light .mv-pm-page .mv-pm-side-copy,
html.mv-theme-light .mv-pm-page .mv-pm-method,
body.mv-theme-light .mv-pm-page .mv-pm-method,
html.mv-theme-light .mv-pm-page .mv-pm-coverage-row,
body.mv-theme-light .mv-pm-page .mv-pm-coverage-row,
html.mv-theme-light .mv-pm-page .mv-pm-card-note,
body.mv-theme-light .mv-pm-page .mv-pm-card-note {
    color: #5a6e88 !important;
}

html[data-bs-theme="light"] .mv-pm-page .mv-pm-top-label,
body[data-bs-theme="light"] .mv-pm-page .mv-pm-top-label,
html[data-bs-theme="light"] .mv-pm-page .mv-pm-top-stats,
body[data-bs-theme="light"] .mv-pm-page .mv-pm-top-stats,
html[data-bs-theme="light"] .mv-pm-page .mv-pm-copy,
body[data-bs-theme="light"] .mv-pm-page .mv-pm-copy,
html[data-bs-theme="light"] .mv-pm-page .mv-pm-score-line,
body[data-bs-theme="light"] .mv-pm-page .mv-pm-score-line,
html[data-bs-theme="light"] .mv-pm-page .mv-pm-source-pill,
body[data-bs-theme="light"] .mv-pm-page .mv-pm-source-pill,
html[data-bs-theme="light"] .mv-pm-page .mv-pm-asset-pill,
body[data-bs-theme="light"] .mv-pm-page .mv-pm-asset-pill,
html[data-bs-theme="light"] .mv-pm-page .mv-pm-pill,
body[data-bs-theme="light"] .mv-pm-page .mv-pm-pill,
html[data-mv-theme="light"] .mv-pm-page .mv-pm-top-label,
body[data-mv-theme="light"] .mv-pm-page .mv-pm-top-label,
html[data-mv-theme="light"] .mv-pm-page .mv-pm-top-stats,
body[data-mv-theme="light"] .mv-pm-page .mv-pm-top-stats,
html[data-mv-theme="light"] .mv-pm-page .mv-pm-copy,
body[data-mv-theme="light"] .mv-pm-page .mv-pm-copy,
html[data-mv-theme="light"] .mv-pm-page .mv-pm-score-line,
body[data-mv-theme="light"] .mv-pm-page .mv-pm-score-line,
html[data-mv-theme="light"] .mv-pm-page .mv-pm-source-pill,
body[data-mv-theme="light"] .mv-pm-page .mv-pm-source-pill,
html[data-mv-theme="light"] .mv-pm-page .mv-pm-asset-pill,
body[data-mv-theme="light"] .mv-pm-page .mv-pm-asset-pill,
html[data-mv-theme="light"] .mv-pm-page .mv-pm-pill,
body[data-mv-theme="light"] .mv-pm-page .mv-pm-pill,
html.mv-theme-light .mv-pm-page .mv-pm-top-label,
body.mv-theme-light .mv-pm-page .mv-pm-top-label,
html.mv-theme-light .mv-pm-page .mv-pm-top-stats,
body.mv-theme-light .mv-pm-page .mv-pm-top-stats,
html.mv-theme-light .mv-pm-page .mv-pm-copy,
body.mv-theme-light .mv-pm-page .mv-pm-copy,
html.mv-theme-light .mv-pm-page .mv-pm-score-line,
body.mv-theme-light .mv-pm-page .mv-pm-score-line,
html.mv-theme-light .mv-pm-page .mv-pm-source-pill,
body.mv-theme-light .mv-pm-page .mv-pm-source-pill,
html.mv-theme-light .mv-pm-page .mv-pm-asset-pill,
body.mv-theme-light .mv-pm-page .mv-pm-asset-pill,
html.mv-theme-light .mv-pm-page .mv-pm-pill,
body.mv-theme-light .mv-pm-page .mv-pm-pill {
    color: #d4e1f4 !important;
}

html[data-bs-theme="dark"] .mv-pm-page .mv-pm-stat-note,
body[data-bs-theme="dark"] .mv-pm-page .mv-pm-stat-note,
html[data-bs-theme="dark"] .mv-pm-page .mv-pm-side-copy,
body[data-bs-theme="dark"] .mv-pm-page .mv-pm-side-copy,
html[data-bs-theme="dark"] .mv-pm-page .mv-pm-method,
body[data-bs-theme="dark"] .mv-pm-page .mv-pm-method,
html[data-bs-theme="dark"] .mv-pm-page .mv-pm-coverage-row,
body[data-bs-theme="dark"] .mv-pm-page .mv-pm-coverage-row,
html[data-mv-theme="dark"] .mv-pm-page .mv-pm-stat-note,
body[data-mv-theme="dark"] .mv-pm-page .mv-pm-stat-note,
html[data-mv-theme="dark"] .mv-pm-page .mv-pm-side-copy,
body[data-mv-theme="dark"] .mv-pm-page .mv-pm-side-copy,
html[data-mv-theme="dark"] .mv-pm-page .mv-pm-method,
body[data-mv-theme="dark"] .mv-pm-page .mv-pm-method,
html[data-mv-theme="dark"] .mv-pm-page .mv-pm-coverage-row,
body[data-mv-theme="dark"] .mv-pm-page .mv-pm-coverage-row,
html.mv-theme-dark .mv-pm-page .mv-pm-stat-note,
body.mv-theme-dark .mv-pm-page .mv-pm-stat-note,
html.mv-theme-dark .mv-pm-page .mv-pm-side-copy,
body.mv-theme-dark .mv-pm-page .mv-pm-side-copy,
html.mv-theme-dark .mv-pm-page .mv-pm-method,
body.mv-theme-dark .mv-pm-page .mv-pm-method,
html.mv-theme-dark .mv-pm-page .mv-pm-coverage-row,
body.mv-theme-dark .mv-pm-page .mv-pm-coverage-row {
    color: #c4d2e7 !important;
}

html[data-bs-theme="dark"] .mv-pm-page .mv-pm-coverage-row strong,
body[data-bs-theme="dark"] .mv-pm-page .mv-pm-coverage-row strong,
html[data-mv-theme="dark"] .mv-pm-page .mv-pm-coverage-row strong,
body[data-mv-theme="dark"] .mv-pm-page .mv-pm-coverage-row strong,
html.mv-theme-dark .mv-pm-page .mv-pm-coverage-row strong,
body.mv-theme-dark .mv-pm-page .mv-pm-coverage-row strong {
    color: #eef4ff !important;
}

.mv-pm-hero-actions .btn.btn-outline-light {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.16) !important;
    color: #eef4ff !important;
}

.mv-pm-hero-actions .btn.btn-outline-light:hover,
.mv-pm-hero-actions .btn.btn-outline-light:focus-visible {
    background: rgba(255,255,255,0.14) !important;
    border-color: rgba(255,255,255,0.24) !important;
}

html[data-bs-theme="light"] .mv-ai-strip-subtitle,
body[data-bs-theme="light"] .mv-ai-strip-subtitle,
html[data-bs-theme="light"] .mv-ai-copy,
body[data-bs-theme="light"] .mv-ai-copy,
html[data-bs-theme="light"] .mv-ai-list,
body[data-bs-theme="light"] .mv-ai-list,
html[data-bs-theme="light"] .mv-ai-rank-main span,
body[data-bs-theme="light"] .mv-ai-rank-main span,
html[data-bs-theme="light"] .mv-ai-stat span,
body[data-bs-theme="light"] .mv-ai-stat span,
html[data-mv-theme="light"] .mv-ai-strip-subtitle,
body[data-mv-theme="light"] .mv-ai-strip-subtitle,
html[data-mv-theme="light"] .mv-ai-copy,
body[data-mv-theme="light"] .mv-ai-copy,
html[data-mv-theme="light"] .mv-ai-list,
body[data-mv-theme="light"] .mv-ai-list,
html[data-mv-theme="light"] .mv-ai-rank-main span,
body[data-mv-theme="light"] .mv-ai-rank-main span,
html[data-mv-theme="light"] .mv-ai-stat span,
body[data-mv-theme="light"] .mv-ai-stat span,
html.mv-theme-light .mv-ai-strip-subtitle,
body.mv-theme-light .mv-ai-strip-subtitle,
html.mv-theme-light .mv-ai-copy,
body.mv-theme-light .mv-ai-copy,
html.mv-theme-light .mv-ai-list,
body.mv-theme-light .mv-ai-list,
html.mv-theme-light .mv-ai-rank-main span,
body.mv-theme-light .mv-ai-rank-main span,
html.mv-theme-light .mv-ai-stat span,
body.mv-theme-light .mv-ai-stat span {
    color: #5a6d87 !important;
}

html[data-bs-theme="dark"] .mv-ai-strip-subtitle,
body[data-bs-theme="dark"] .mv-ai-strip-subtitle,
html[data-bs-theme="dark"] .mv-ai-copy,
body[data-bs-theme="dark"] .mv-ai-copy,
html[data-bs-theme="dark"] .mv-ai-list,
body[data-bs-theme="dark"] .mv-ai-list,
html[data-bs-theme="dark"] .mv-ai-rank-main span,
body[data-bs-theme="dark"] .mv-ai-rank-main span,
html[data-bs-theme="dark"] .mv-ai-stat span,
body[data-bs-theme="dark"] .mv-ai-stat span,
html[data-mv-theme="dark"] .mv-ai-strip-subtitle,
body[data-mv-theme="dark"] .mv-ai-strip-subtitle,
html[data-mv-theme="dark"] .mv-ai-copy,
body[data-mv-theme="dark"] .mv-ai-copy,
html[data-mv-theme="dark"] .mv-ai-list,
body[data-mv-theme="dark"] .mv-ai-list,
html[data-mv-theme="dark"] .mv-ai-rank-main span,
body[data-mv-theme="dark"] .mv-ai-rank-main span,
html[data-mv-theme="dark"] .mv-ai-stat span,
body[data-mv-theme="dark"] .mv-ai-stat span,
html.mv-theme-dark .mv-ai-strip-subtitle,
body.mv-theme-dark .mv-ai-strip-subtitle,
html.mv-theme-dark .mv-ai-copy,
body.mv-theme-dark .mv-ai-copy,
html.mv-theme-dark .mv-ai-list,
body.mv-theme-dark .mv-ai-list,
html.mv-theme-dark .mv-ai-rank-main span,
body.mv-theme-dark .mv-ai-rank-main span,
html.mv-theme-dark .mv-ai-stat span,
body.mv-theme-dark .mv-ai-stat span {
    color: #c2d0e5 !important;
}

.mv-ai-card .mv-ai-info,
.mv-ai-card .mv-ai-collapse {
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}


/* ============================================================
   MARKETVISTA AI — HERO PILL CONTRAST PATCH
   PURPOSE: keep AI Forecasts hero badges readable in dark mode
   DATE: 2026-03-30
============================================================ */

html[data-bs-theme="dark"] .mv-pm-page .mv-pm-hero .badge.rounded-pill,
body[data-bs-theme="dark"] .mv-pm-page .mv-pm-hero .badge.rounded-pill,
html[data-mv-theme="dark"] .mv-pm-page .mv-pm-hero .badge.rounded-pill,
body[data-mv-theme="dark"] .mv-pm-page .mv-pm-hero .badge.rounded-pill,
html.mv-theme-dark .mv-pm-page .mv-pm-hero .badge.rounded-pill,
body.mv-theme-dark .mv-pm-page .mv-pm-hero .badge.rounded-pill,
html.theme-dark .mv-pm-page .mv-pm-hero .badge.rounded-pill,
body.theme-dark .mv-pm-page .mv-pm-hero .badge.rounded-pill {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #eef4ff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .mv-pm-page .mv-pm-hero #mvPmBias,
body[data-bs-theme="dark"] .mv-pm-page .mv-pm-hero #mvPmBias,
html[data-mv-theme="dark"] .mv-pm-page .mv-pm-hero #mvPmBias,
body[data-mv-theme="dark"] .mv-pm-page .mv-pm-hero #mvPmBias,
html.mv-theme-dark .mv-pm-page .mv-pm-hero #mvPmBias,
body.mv-theme-dark .mv-pm-page .mv-pm-hero #mvPmBias,
html.theme-dark .mv-pm-page .mv-pm-hero #mvPmBias,
body.theme-dark .mv-pm-page .mv-pm-hero #mvPmBias {
    background: rgba(239, 68, 68, 0.16) !important;
    border-color: rgba(239, 68, 68, 0.34) !important;
    color: #ffe2e2 !important;
}

html[data-bs-theme="dark"] .mv-pm-page .mv-pm-hero #mvPmConfidence,
body[data-bs-theme="dark"] .mv-pm-page .mv-pm-hero #mvPmConfidence,
html[data-mv-theme="dark"] .mv-pm-page .mv-pm-hero #mvPmConfidence,
body[data-mv-theme="dark"] .mv-pm-page .mv-pm-hero #mvPmConfidence,
html.mv-theme-dark .mv-pm-page .mv-pm-hero #mvPmConfidence,
body.mv-theme-dark .mv-pm-page .mv-pm-hero #mvPmConfidence,
html.theme-dark .mv-pm-page .mv-pm-hero #mvPmConfidence,
body.theme-dark .mv-pm-page .mv-pm-hero #mvPmConfidence {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: rgba(59, 130, 246, 0.34) !important;
    color: #dbeafe !important;
}
