/* ============================================================
   MARKETVISTA AI — SITEWIDE AI SHELL
   FILE: /assets/css/mv-ai-shell.css
   VERSION: 1.1
   DATE: 2026-03-30
============================================================ */

:root {
    --mv-ai-bg: #0d1322;
    --mv-ai-panel: rgba(11, 18, 32, 0.98);
    --mv-ai-panel-soft: rgba(255, 255, 255, 0.04);
    --mv-ai-border: rgba(255, 255, 255, 0.1);
    --mv-ai-text: #e8eefc;
    --mv-ai-muted: rgba(232, 238, 252, 0.68);
    --mv-ai-accent: #2f7df6;
    --mv-ai-accent-2: #13c4ff;
    --mv-ai-user: linear-gradient(135deg, rgba(47, 125, 246, 0.34), rgba(19, 196, 255, 0.18));
    --mv-ai-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

#mvAiShellMount {
    position: relative;
    z-index: 1500;
}

.mv-ai-shell {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1600;
}

.mv-ai-launcher {
    width: 68px;
    height: 68px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    font-weight: 800;
    background: radial-gradient(circle at 30% 30%, rgba(19, 196, 255, 0.95), rgba(47, 125, 246, 0.95) 62%, rgba(12, 24, 54, 1) 100%);
    box-shadow: 0 12px 42px rgba(17, 91, 245, 0.35);
    overflow: hidden;
}

.mv-ai-launcher img,
.mv-ai-avatar img,
.mv-ai-header-avatar img,
.mv-ai-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-ai-launcher-ring {
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    border: 1px solid rgba(47, 125, 246, 0.32);
    animation: mvAiPulse 2.6s ease-out infinite;
}

.mv-ai-launcher-dot {
    position: absolute;
    right: 4px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #27d77d;
    border: 2px solid #081121;
}

.mv-ai-shell-panel {
    position: absolute;
    right: 0;
    bottom: 84px;
    width: min(410px, calc(100vw - 1.5rem));
    height: min(78vh, 760px);
    display: none;
    flex-direction: column;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(12, 18, 32, 0.985), rgba(7, 12, 24, 0.99));
    border: 1px solid var(--mv-ai-border);
    box-shadow: var(--mv-ai-shadow);
    overflow: hidden;
}

.mv-ai-shell.is-open .mv-ai-shell-panel {
    display: flex;
}

.mv-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem 0.9rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border-bottom: 1px solid var(--mv-ai-border);
}

.mv-ai-header-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.mv-ai-header-avatar,
.mv-ai-message-avatar,
.mv-ai-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    flex: 0 0 38px;
}

.mv-ai-title-wrap {
    min-width: 0;
}

.mv-ai-title {
    color: var(--mv-ai-text);
    font-weight: 700;
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mv-ai-subtitle,
.mv-ai-health {
    color: var(--mv-ai-muted);
    font-size: 0.75rem;
}

.mv-ai-health.is-ready {
    color: #6bf0ae;
}

.mv-ai-health.is-warn {
    color: #ffc466;
}

.mv-ai-header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.mv-ai-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mv-ai-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.85rem 1rem 0;
}

.mv-ai-chip {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--mv-ai-text);
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    line-height: 1;
}

.mv-ai-context {
    padding: 0.6rem 1rem 0;
    color: var(--mv-ai-muted);
    font-size: 0.72rem;
}

.mv-ai-thread {
    flex: 1;
    overflow: auto;
    padding: 0.95rem 1rem 1rem;
}

.mv-ai-empty {
    min-height: 240px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--mv-ai-muted);
    padding: 1rem;
}

.mv-ai-empty-card {
    max-width: 280px;
}

.mv-ai-row {
    display: flex;
    gap: 0.7rem;
    align-items: flex-end;
    margin-bottom: 0.95rem;
}

.mv-ai-row.is-user {
    justify-content: flex-end;
}

.mv-ai-row.is-user .mv-ai-bubble-wrap {
    align-items: flex-end;
}

.mv-ai-bubble-wrap {
    max-width: 82%;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.mv-ai-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--mv-ai-muted);
    font-size: 0.69rem;
    padding: 0 0.15rem;
}

.mv-ai-bubble {
    border-radius: 1rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--mv-ai-text);
    line-height: 1.55;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.mv-ai-bubble.is-user {
    background: var(--mv-ai-user);
    border-color: rgba(47, 125, 246, 0.3);
}

.mv-ai-bubble.is-assistant {
    background: rgba(255,255,255,0.045);
}

.mv-ai-bubble.is-system {
    background: rgba(19, 196, 255, 0.08);
    border-color: rgba(19, 196, 255, 0.22);
}

.mv-ai-message {
    white-space: normal;
    word-wrap: break-word;
}

.mv-ai-card-grid {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.mv-ai-mini-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 1rem;
    padding: 0.8rem 0.9rem;
}

.mv-ai-mini-card h6 {
    color: var(--mv-ai-text);
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
}

.mv-ai-mini-card p,
.mv-ai-mini-card li,
.mv-ai-mini-card div {
    color: var(--mv-ai-muted);
    font-size: 0.74rem;
    margin-bottom: 0.2rem;
}

.mv-ai-composer {
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid var(--mv-ai-border);
    background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.03));
}

.mv-ai-composer textarea {
    width: 100%;
    min-height: 88px;
    max-height: 150px;
    resize: vertical;
    color: #fff;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1rem;
    padding: 0.85rem 0.95rem;
}

.mv-ai-composer textarea::placeholder {
    color: rgba(255,255,255,0.45);
}

.mv-ai-composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.mv-ai-helper-copy {
    color: var(--mv-ai-muted);
    font-size: 0.71rem;
}

.mv-ai-send {
    border: 0;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--mv-ai-accent), var(--mv-ai-accent-2));
}

.mv-ai-send[disabled],
.mv-ai-chip[disabled],
.mv-ai-icon-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.mv-ai-typing {
    display: inline-flex;
    gap: 0.28rem;
}

.mv-ai-typing span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    animation: mvAiTyping 1s infinite ease-in-out;
}

.mv-ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.mv-ai-typing span:nth-child(3) { animation-delay: 0.3s; }

.mv-ai-page-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
}

.mv-ai-page-panel {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.25rem;
    padding: 1rem;
}

.mv-ai-widget-card {
    background: linear-gradient(180deg, rgba(8, 16, 30, 0.96), rgba(5, 11, 21, 0.98));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.mv-ai-widget-card .card-header {
    background: transparent;
    border-bottom-color: rgba(255,255,255,0.08);
}

.mv-ai-page-insight-list {
    display: grid;
    gap: 0.75rem;
}

.mv-ai-page-insight-list .mv-ai-mini-card {
    min-height: 90px;
}

@keyframes mvAiTyping {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-3px); opacity: 1; }
}

@keyframes mvAiPulse {
    0% { transform: scale(0.94); opacity: 0.8; }
    100% { transform: scale(1.18); opacity: 0; }
}

@media (max-width: 991.98px) {
    .mv-ai-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .mv-ai-shell {
        right: 0.85rem;
        bottom: 0.85rem;
    }

    .mv-ai-shell-panel {
        width: calc(100vw - 1rem);
        right: -0.15rem;
        bottom: 78px;
        height: min(82vh, 760px);
    }

    .mv-ai-launcher {
        width: 60px;
        height: 60px;
    }

    .mv-ai-bubble-wrap {
        max-width: 88%;
    }
}


/* ============================================================
   MARKETVISTA AI — READABILITY + BRAND ICON PATCH
   VERSION: 1.1
   DATE: 2026-03-26
============================================================ */

.mv-ai-launcher-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.mv-ai-header-avatar.is-site-logo,
.mv-ai-message-avatar.is-site-logo,
.mv-ai-launcher-logo.is-site-logo {
    background: rgba(255,255,255,0.1);
}

.mv-ai-widget-card .card-header strong,
.mv-ai-widget-card h6,
.mv-ai-widget-card th,
.mv-ai-widget-card td,
.mv-ai-widget-card div,
.mv-ai-widget-card p,
.mv-ai-widget-card li {
    color: #e8eefc;
}

.mv-ai-widget-card .card-body,
.mv-ai-widget-card .card-body .small,
.mv-ai-widget-card .card-body .text-muted {
    color: #c9d7f3 !important;
}

.mv-ai-widget-card .btn-outline-light,
.mv-ai-page-panel .btn-outline-light {
    color: #dbe7ff;
    border-color: rgba(219, 231, 255, 0.28);
    background: rgba(255,255,255,0.04);
}

.mv-ai-widget-card .btn-outline-light:hover,
.mv-ai-page-panel .btn-outline-light:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.12);
}

.mv-ai-mini-card {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
}

.mv-ai-mini-card h6 {
    font-size: 0.92rem;
    margin-bottom: 0.55rem;
}

.mv-ai-mini-card p,
.mv-ai-mini-card li,
.mv-ai-mini-card div {
    color: #d7e3ff;
    font-size: 0.86rem;
    line-height: 1.55;
}

.mv-ai-page-panel {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.mv-ai-page-panel h4,
.mv-ai-page-panel h6,
.mv-ai-page-panel .mv-ai-title {
    color: #0f172a;
}

.mv-ai-page-panel .text-muted,
.mv-ai-page-panel .mv-ai-subtitle,
.mv-ai-page-panel .mv-ai-mini-card div {
    color: #5b6472 !important;
}

#mvAiPageThread {
    background: linear-gradient(180deg, #f8fbff, #f2f6fd);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

#mvAiPageInput {
    color: #0f172a;
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
}

#mvAiPageInput::placeholder {
    color: #7b8794;
}

#mvAiPageThread .mv-ai-meta {
    color: #5b6472;
}

#mvAiPageThread .mv-ai-bubble.is-assistant {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

#mvAiPageThread .mv-ai-message,
#mvAiPageThread .mv-ai-mini-card h6 {
    color: #0f172a;
}

#mvAiPageThread .mv-ai-mini-card {
    background: #f6f9ff;
    border-color: rgba(47, 125, 246, 0.12);
}

#mvAiPageThread .mv-ai-mini-card div,
#mvAiPageThread .mv-ai-mini-card p,
#mvAiPageThread .mv-ai-mini-card li {
    color: #334155;
}

#mvAiPageThread .mv-ai-message-avatar {
    background: #e8eefc;
    border-color: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}


.mv-ai-launcher-logo.is-site-logo,
.mv-ai-header-avatar.is-site-logo,
.mv-ai-message-avatar.is-site-logo {
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
}

.mv-ai-launcher-logo.is-site-logo img,
.mv-ai-header-avatar.is-site-logo img,
.mv-ai-message-avatar.is-site-logo img {
    width: 74%;
    height: 74%;
    object-fit: contain;
}

.mv-ai-health {
    min-height: 1.75rem;
    display: flex;
    align-items: center;
}

.mv-ai-health-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.22rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(10,18,38,0.56);
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mv-ai-health-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 rgba(34,197,94,0.55);
    animation: mvAiPulse 1.8s ease-in-out infinite;
}

.mv-ai-health.is-warn .mv-ai-health-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 rgba(245,158,11,0.45);
}

.mv-ai-health.is-offline .mv-ai-health-dot {
    background: #ef4444;
    box-shadow: 0 0 0 rgba(239,68,68,0.45);
}

@keyframes mvAiPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(34,197,94,0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.mv-ai-widget-card .card-header,
.mv-ai-widget-card .card-body {
    background: linear-gradient(180deg, rgba(9,18,40,0.98), rgba(11,22,46,0.94));
    color: #eaf2ff;
}

.mv-ai-widget-thread {
    min-height: 260px;
    max-height: 420px;
    overflow: auto;
    padding: 0.35rem 0.15rem 0.25rem;
}

.mv-ai-widget-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #f8fbff;
}

.mv-ai-widget-input::placeholder {
    color: rgba(226,232,240,0.72);
}

.mv-ai-widget-typing .mv-ai-bubble {
    margin-bottom: 0.95rem;
}


/* ============================================================
   MARKETVISTA AI — INLINE CHAT AVATAR SAFETY + SIDEBAR PATCH
   VERSION: 18.0
   DATE: 2026-03-27
============================================================ */

.mv-ai-page-panel .mv-ai-row .mv-ai-message-avatar,
.mv-ai-inline-thread .mv-ai-row .mv-ai-message-avatar,
#mvAiWatchlistSignalsCard .mv-ai-message-avatar,
#mvAiAutoTraderCopilot .mv-ai-message-avatar,
#mvAiSignalsDesk .mv-ai-message-avatar {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mv-ai-page-panel .mv-ai-row .mv-ai-message-avatar.is-site-logo,
.mv-ai-inline-thread .mv-ai-row .mv-ai-message-avatar.is-site-logo {
    background: radial-gradient(circle at 30% 30%, rgba(19, 196, 255, 0.95), rgba(47, 125, 246, 0.95) 62%, rgba(12, 24, 54, 1) 100%);
    color: #ffffff;
}

.mv-ai-page-panel .mv-ai-row .mv-ai-bubble-wrap,
.mv-ai-inline-thread .mv-ai-row .mv-ai-bubble-wrap {
    max-width: min(760px, calc(100% - 58px));
}

.mv-ai-page-panel .mv-ai-row.is-user,
.mv-ai-inline-thread .mv-ai-row.is-user {
    justify-content: flex-end;
}

.mv-ai-page-panel .mv-ai-row.is-user .mv-ai-bubble-wrap,
.mv-ai-inline-thread .mv-ai-row.is-user .mv-ai-bubble-wrap {
    align-items: flex-end;
}

/* ============================================================
   COMPLETION PASS G HOTFIX — INLINE DESK STYLES SITEWIDE
============================================================ */

.mv-ai-page-panel {
    background: linear-gradient(180deg, rgba(10, 18, 34, .98), rgba(8, 14, 28, .98));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .24);
    display: flex;
    flex-direction: column;
    min-height: 0;
    color: var(--mv-ai-text);
    margin-bottom: 1.5rem;
}

.mv-ai-page-panel .mv-ai-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--mv-ai-text);
}

.mv-ai-page-panel .mv-ai-subtitle {
    font-size: .86rem;
    color: var(--mv-ai-muted);
}

.mv-ai-inline-thread,
.mv-ai-thread {
    overflow: auto;
    padding: .25rem;
    scrollbar-gutter: stable;
    min-height: 260px;
    max-height: 420px;
}

.mv-ai-page-panel form {
    margin-top: .75rem;
}

.mv-ai-page-panel [data-role="input"],
.mv-ai-page-panel textarea.form-control,
.mv-ai-page-panel input.form-control,
.mv-ai-page-panel form textarea,
.mv-ai-page-panel form input {
    background: rgba(242, 246, 252, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #eef4ff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.mv-ai-page-panel [data-role="input"]::placeholder,
.mv-ai-page-panel textarea.form-control::placeholder,
.mv-ai-page-panel form textarea::placeholder {
    color: rgba(230, 238, 250, .58) !important;
}

.mv-ai-page-panel [data-role="input"]:focus,
.mv-ai-page-panel textarea.form-control:focus,
.mv-ai-page-panel form textarea:focus {
    background: rgba(242, 246, 252, 0.13) !important;
    border-color: rgba(72, 149, 255, 0.45) !important;
    box-shadow: 0 0 0 0.2rem rgba(36, 135, 255, 0.14) !important;
}

.mv-ai-page-panel .btn,
.mv-ai-page-panel .btn-outline-light {
    border-radius: 10px;
}

.mv-ai-page-panel .btn-outline-light {
    color: #dfe9ff;
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
}

.mv-ai-page-panel .btn-outline-light:hover {
    background: rgba(47, 125, 246, .12);
    border-color: rgba(142,200,255,.35);
    color: #eef4ff;
}

.mv-ai-row {
    display: flex;
    gap: .8rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.mv-ai-row.is-user {
    justify-content: flex-end;
}

.mv-ai-bubble-wrap {
    max-width: min(780px, 82%);
}

.mv-ai-meta {
    display: flex;
    gap: .65rem;
    align-items: center;
    margin-bottom: .35rem;
    color: rgba(230, 238, 250, .58);
    font-size: .78rem;
}

.mv-ai-bubble {
    padding: .9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: #eef4ff;
    line-height: 1.65;
}

.mv-ai-bubble.is-user {
    background: rgba(52, 130, 246, .16);
    border-color: rgba(52, 130, 246, .28);
}

.mv-ai-message,
.mv-ai-message p,
.mv-ai-summary-copy,
.mv-ai-summary-copy p,
.mv-ai-info-body,
.mv-ai-info-body p,
.mv-ai-page-panel li,
.mv-ai-page-panel strong,
.mv-ai-page-panel span {
    color: inherit;
}

.mv-ai-message p:last-child,
.mv-ai-summary-copy p:last-child,
.mv-ai-info-body:last-child {
    margin-bottom: 0;
}

.mv-ai-page-panel .mv-ai-avatar,
.mv-ai-page-panel .mv-ai-message-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 42px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255,255,255,.1);
}

.mv-ai-page-panel .mv-ai-avatar img,
.mv-ai-page-panel .mv-ai-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-ai-empty {
    display: grid;
    place-items: center;
    min-height: 220px;
}

.mv-ai-empty-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 1rem 1.15rem;
    max-width: 760px;
}

.mv-ai-md-heading {
    font-weight: 700;
    margin: .2rem 0 .55rem;
}

.mv-ai-md-list {
    margin: 0;
    padding-left: 1rem;
}

.mv-ai-md-list.is-ordered {
    padding-left: 1.15rem;
    list-style: decimal;
}

.mv-ai-card-stack {
    display: grid;
    gap: .85rem;
}

.mv-ai-summary-card,
.mv-ai-info-card,
.mv-ai-mini-card,
.mv-ai-chip-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
}

.mv-ai-summary-card,
.mv-ai-info-card,
.mv-ai-mini-card {
    padding: .95rem 1rem;
}

.mv-ai-summary-title,
.mv-ai-info-title {
    font-weight: 700;
    color: #f7fbff;
}

.mv-ai-summary-note,
.mv-ai-info-eyebrow,
.mv-ai-chip-card span,
.mv-ai-history-empty,
.mv-ai-history-pill-meta,
.mv-ai-history-meta {
    font-size: .78rem;
    color: rgba(230, 238, 250, .58);
}

.mv-ai-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .8rem;
}

.mv-ai-info-body {
    font-size: .92rem;
    color: rgba(230, 238, 250, .8);
    margin-top: .45rem;
}

.mv-ai-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .7rem;
    margin-top: .25rem;
}

.mv-ai-chip-card {
    padding: .7rem .8rem;
}

.mv-ai-chip-card span {
    display: block;
    margin-bottom: .2rem;
}

.mv-ai-chip-card strong {
    font-size: .96rem;
    color: #f7fbff;
}

.mv-ai-history-panel {
    display: grid;
    gap: .65rem;
    margin-top: .75rem;
}

.mv-ai-history-strip {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: .15rem;
}

.mv-ai-history-pill,
.mv-ai-history-item {
    width: 100%;
    text-align: left;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: .75rem .85rem;
    color: #eef4ff;
    cursor: pointer;
}

.mv-ai-history-pill:hover,
.mv-ai-history-item:hover {
    border-color: rgba(92,164,255,.36);
    background: rgba(52,130,246,.10);
}

.mv-ai-history-pill-title,
.mv-ai-history-title {
    display: block;
    font-weight: 700;
    font-size: .92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mv-ai-pin-btn {
    margin-left: auto;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: #eef4ff;
    border-radius: 999px;
    padding: .15rem .55rem;
    font-size: .72rem;
    line-height: 1.3;
}

.mv-ai-pin-btn:hover {
    background: rgba(142,200,255,.14);
    border-color: rgba(142,200,255,.35);
}

#mvAiWatchlistSignalsCard,
#mvAiAutoTraderCopilot,
#mvAiSignalsDesk,
#mvAnalysisOutput,
#mvAiPageThread {
    margin-bottom: 1.75rem;
}

.mv-sidebar-watchlist-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
}

@media (max-width: 991px) {
    .mv-ai-bubble-wrap { max-width: calc(100% - 54px); }
    .mv-ai-inline-thread,
    .mv-ai-thread { max-height: 52vh; }
}


/* ============================================================
   MARKETVISTA AI — INLINE TEXTAREA HOTFIX
   VERSION: 22.0
   DATE: 2026-03-26
============================================================ */

.mv-ai-inline-composer,
.mv-ai-page-panel .mv-ai-inline-composer {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.mv-ai-inline-composer textarea,
.mv-ai-page-panel .mv-ai-inline-composer textarea,
.mv-ai-page-panel .mv-ai-inline-composer [data-role="input"] {
    display: block !important;
    width: 100% !important;
    min-height: 92px !important;
    max-height: 180px;
    resize: vertical;
    padding: 0.9rem 1rem !important;
    border-radius: 14px !important;
    line-height: 1.45;
    background: rgba(236, 241, 248, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #eef4ff !important;
    box-sizing: border-box;
}

.mv-ai-inline-composer textarea::placeholder,
.mv-ai-page-panel .mv-ai-inline-composer textarea::placeholder,
.mv-ai-page-panel .mv-ai-inline-composer [data-role="input"]::placeholder {
    color: rgba(230, 238, 250, 0.58) !important;
}

.mv-ai-inline-footer,
.mv-ai-page-panel .mv-ai-inline-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.mv-ai-inline-footer .btn,
.mv-ai-page-panel .mv-ai-inline-footer .btn {
    margin-left: auto;
}

/* ============================================================
   MARKETVISTA AI — PRODUCTION PASS V23 UTILITIES
   VERSION: 1.2
   DATE: 2026-03-27
============================================================ */

.mv-ai-inline-thread {
    min-height: 240px;
    max-height: 420px;
    overflow: auto;
    padding-right: 0.25rem;
}

.mv-ai-inline-composer textarea {
    width: 100% !important;
    min-width: 100% !important;
    display: block;
    min-height: 90px;
    border-radius: 0.95rem;
    background: #eef3fb;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 0.9rem 1rem;
    resize: vertical;
}

.mv-ai-inline-composer textarea::placeholder {
    color: #6b7280;
}

.mv-ai-inline-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.mv-ai-pinned-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    margin: 0 0.45rem 0.45rem 0;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: #dbeafe;
    font-size: 0.72rem;
}

.mv-ai-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.mv-ai-tool-btn {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #dbeafe;
    border-radius: 999px;
    padding: 0.3rem 0.72rem;
    font-size: 0.7rem;
    line-height: 1;
}

.mv-ai-tool-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

.mv-ai-tool-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.mv-ai-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
    color: #8fa7cf;
    font-size: 0.72rem;
}

.mv-ai-news-card p {
    margin-bottom: 0;
}


.mv-watchlist-fallback-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.mv-watchlist-fallback-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* v28 no CSS changes */


/* ============================================================
   MARKETVISTA AI — THEME SAFETY PATCH FOR AI ASSISTANT
   PURPOSE: prevent light-mode shell styles from bleeding into dark mode,
            restore readable tool buttons, cards, and avatars on the AI page
   DATE: 2026-03-30
============================================================ */

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

html[data-bs-theme="light"] .mv-ai-page-panel h4,
body[data-bs-theme="light"] .mv-ai-page-panel h4,
html[data-bs-theme="light"] .mv-ai-page-panel h6,
body[data-bs-theme="light"] .mv-ai-page-panel h6,
html[data-bs-theme="light"] .mv-ai-page-panel .mv-ai-title,
body[data-bs-theme="light"] .mv-ai-page-panel .mv-ai-title,
html[data-mv-theme="light"] .mv-ai-page-panel h4,
body[data-mv-theme="light"] .mv-ai-page-panel h4,
html[data-mv-theme="light"] .mv-ai-page-panel h6,
body[data-mv-theme="light"] .mv-ai-page-panel h6,
html[data-mv-theme="light"] .mv-ai-page-panel .mv-ai-title,
body[data-mv-theme="light"] .mv-ai-page-panel .mv-ai-title,
html.mv-theme-light .mv-ai-page-panel h4,
body.mv-theme-light .mv-ai-page-panel h4,
html.mv-theme-light .mv-ai-page-panel h6,
body.mv-theme-light .mv-ai-page-panel h6,
html.mv-theme-light .mv-ai-page-panel .mv-ai-title,
body.mv-theme-light .mv-ai-page-panel .mv-ai-title {
    color: #0f172a !important;
}

html[data-bs-theme="light"] .mv-ai-page-panel .text-muted,
body[data-bs-theme="light"] .mv-ai-page-panel .text-muted,
html[data-bs-theme="light"] .mv-ai-page-panel .mv-ai-subtitle,
body[data-bs-theme="light"] .mv-ai-page-panel .mv-ai-subtitle,
html[data-bs-theme="light"] .mv-ai-page-panel .small,
body[data-bs-theme="light"] .mv-ai-page-panel .small,
html[data-bs-theme="light"] .mv-ai-page-panel .mv-ai-mini-card div,
body[data-bs-theme="light"] .mv-ai-page-panel .mv-ai-mini-card div,
html[data-mv-theme="light"] .mv-ai-page-panel .text-muted,
body[data-mv-theme="light"] .mv-ai-page-panel .text-muted,
html[data-mv-theme="light"] .mv-ai-page-panel .mv-ai-subtitle,
body[data-mv-theme="light"] .mv-ai-page-panel .mv-ai-subtitle,
html[data-mv-theme="light"] .mv-ai-page-panel .small,
body[data-mv-theme="light"] .mv-ai-page-panel .small,
html[data-mv-theme="light"] .mv-ai-page-panel .mv-ai-mini-card div,
body[data-mv-theme="light"] .mv-ai-page-panel .mv-ai-mini-card div,
html.mv-theme-light .mv-ai-page-panel .text-muted,
body.mv-theme-light .mv-ai-page-panel .text-muted,
html.mv-theme-light .mv-ai-page-panel .mv-ai-subtitle,
body.mv-theme-light .mv-ai-page-panel .mv-ai-subtitle,
html.mv-theme-light .mv-ai-page-panel .small,
body.mv-theme-light .mv-ai-page-panel .small,
html.mv-theme-light .mv-ai-page-panel .mv-ai-mini-card div,
body.mv-theme-light .mv-ai-page-panel .mv-ai-mini-card div {
    color: #64748b !important;
}

html[data-bs-theme="light"] #mvAiPageThread,
body[data-bs-theme="light"] #mvAiPageThread,
html[data-mv-theme="light"] #mvAiPageThread,
body[data-mv-theme="light"] #mvAiPageThread,
html.mv-theme-light #mvAiPageThread,
body.mv-theme-light #mvAiPageThread {
    background: linear-gradient(180deg, #f8fbff, #f2f6fd) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-bs-theme="light"] #mvAiPageInput,
body[data-bs-theme="light"] #mvAiPageInput,
html[data-mv-theme="light"] #mvAiPageInput,
body[data-mv-theme="light"] #mvAiPageInput,
html.mv-theme-light #mvAiPageInput,
body.mv-theme-light #mvAiPageInput {
    color: #0f172a !important;
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-bs-theme="light"] #mvAiPageInput::placeholder,
body[data-bs-theme="light"] #mvAiPageInput::placeholder,
html[data-mv-theme="light"] #mvAiPageInput::placeholder,
body[data-mv-theme="light"] #mvAiPageInput::placeholder,
html.mv-theme-light #mvAiPageInput::placeholder,
body.mv-theme-light #mvAiPageInput::placeholder {
    color: #7b8794 !important;
}

html[data-bs-theme="light"] #mvAiPageThread .mv-ai-meta,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-meta,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-meta,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-meta,
html.mv-theme-light #mvAiPageThread .mv-ai-meta,
body.mv-theme-light #mvAiPageThread .mv-ai-meta {
    color: #64748b !important;
}

html[data-bs-theme="light"] #mvAiPageThread .mv-ai-bubble.is-assistant,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-bubble.is-assistant,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-bubble.is-assistant,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-bubble.is-assistant,
html.mv-theme-light #mvAiPageThread .mv-ai-bubble.is-assistant,
body.mv-theme-light #mvAiPageThread .mv-ai-bubble.is-assistant {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
    color: #0f172a !important;
}

html[data-bs-theme="light"] #mvAiPageThread .mv-ai-message,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-message,
html[data-bs-theme="light"] #mvAiPageThread .mv-ai-message p,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-message p,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-message,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-message,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-message p,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-message p,
html.mv-theme-light #mvAiPageThread .mv-ai-message,
body.mv-theme-light #mvAiPageThread .mv-ai-message,
html.mv-theme-light #mvAiPageThread .mv-ai-message p,
body.mv-theme-light #mvAiPageThread .mv-ai-message p,
html[data-bs-theme="light"] #mvAiPageThread .mv-ai-summary-card,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-summary-card,
html[data-bs-theme="light"] #mvAiPageThread .mv-ai-info-card,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-info-card,
html[data-bs-theme="light"] #mvAiPageThread .mv-ai-chip-card,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-chip-card,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-summary-card,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-summary-card,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-info-card,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-info-card,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-chip-card,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-chip-card,
html.mv-theme-light #mvAiPageThread .mv-ai-summary-card,
body.mv-theme-light #mvAiPageThread .mv-ai-summary-card,
html.mv-theme-light #mvAiPageThread .mv-ai-info-card,
body.mv-theme-light #mvAiPageThread .mv-ai-info-card,
html.mv-theme-light #mvAiPageThread .mv-ai-chip-card,
body.mv-theme-light #mvAiPageThread .mv-ai-chip-card {
    color: #0f172a !important;
}

html[data-bs-theme="light"] #mvAiPageThread .mv-ai-summary-card,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-summary-card,
html[data-bs-theme="light"] #mvAiPageThread .mv-ai-info-card,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-info-card,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-summary-card,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-summary-card,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-info-card,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-info-card,
html.mv-theme-light #mvAiPageThread .mv-ai-summary-card,
body.mv-theme-light #mvAiPageThread .mv-ai-summary-card,
html.mv-theme-light #mvAiPageThread .mv-ai-info-card,
body.mv-theme-light #mvAiPageThread .mv-ai-info-card {
    background: #f8fbff !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
}

html[data-bs-theme="light"] #mvAiPageThread .mv-ai-mini-card,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-mini-card,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-mini-card,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-mini-card,
html.mv-theme-light #mvAiPageThread .mv-ai-mini-card,
body.mv-theme-light #mvAiPageThread .mv-ai-mini-card,
html[data-bs-theme="light"] #mvAiPageThread .mv-ai-chip-card,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-chip-card,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-chip-card,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-chip-card,
html.mv-theme-light #mvAiPageThread .mv-ai-chip-card,
body.mv-theme-light #mvAiPageThread .mv-ai-chip-card {
    background: #f6f9ff !important;
    border-color: rgba(47, 125, 246, 0.12) !important;
    box-shadow: none !important;
}

html[data-bs-theme="light"] #mvAiPageThread .mv-ai-mini-card h6,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-mini-card h6,
html[data-bs-theme="light"] #mvAiPageThread .mv-ai-summary-title,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-summary-title,
html[data-bs-theme="light"] #mvAiPageThread .mv-ai-chip-card strong,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-chip-card strong,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-mini-card h6,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-mini-card h6,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-summary-title,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-summary-title,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-chip-card strong,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-chip-card strong,
html.mv-theme-light #mvAiPageThread .mv-ai-mini-card h6,
body.mv-theme-light #mvAiPageThread .mv-ai-mini-card h6,
html.mv-theme-light #mvAiPageThread .mv-ai-summary-title,
body.mv-theme-light #mvAiPageThread .mv-ai-summary-title,
html.mv-theme-light #mvAiPageThread .mv-ai-chip-card strong,
body.mv-theme-light #mvAiPageThread .mv-ai-chip-card strong {
    color: #0f172a !important;
}

html[data-bs-theme="light"] #mvAiPageThread .mv-ai-mini-card div,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-mini-card div,
html[data-bs-theme="light"] #mvAiPageThread .mv-ai-mini-card p,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-mini-card p,
html[data-bs-theme="light"] #mvAiPageThread .mv-ai-mini-card li,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-mini-card li,
html[data-bs-theme="light"] #mvAiPageThread .mv-ai-summary-note,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-summary-note,
html[data-bs-theme="light"] #mvAiPageThread .mv-ai-info-eyebrow,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-info-eyebrow,
html[data-bs-theme="light"] #mvAiPageThread .mv-ai-chip-card span,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-chip-card span,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-mini-card div,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-mini-card div,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-mini-card p,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-mini-card p,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-mini-card li,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-mini-card li,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-summary-note,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-summary-note,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-info-eyebrow,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-info-eyebrow,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-chip-card span,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-chip-card span,
html.mv-theme-light #mvAiPageThread .mv-ai-mini-card div,
body.mv-theme-light #mvAiPageThread .mv-ai-mini-card div,
html.mv-theme-light #mvAiPageThread .mv-ai-mini-card p,
body.mv-theme-light #mvAiPageThread .mv-ai-mini-card p,
html.mv-theme-light #mvAiPageThread .mv-ai-mini-card li,
body.mv-theme-light #mvAiPageThread .mv-ai-mini-card li,
html.mv-theme-light #mvAiPageThread .mv-ai-summary-note,
body.mv-theme-light #mvAiPageThread .mv-ai-summary-note,
html.mv-theme-light #mvAiPageThread .mv-ai-info-eyebrow,
body.mv-theme-light #mvAiPageThread .mv-ai-info-eyebrow,
html.mv-theme-light #mvAiPageThread .mv-ai-chip-card span,
body.mv-theme-light #mvAiPageThread .mv-ai-chip-card span {
    color: #475569 !important;
}

html[data-bs-theme="light"] #mvAiPageThread .mv-ai-message-avatar,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-message-avatar,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-message-avatar,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-message-avatar,
html.mv-theme-light #mvAiPageThread .mv-ai-message-avatar,
body.mv-theme-light #mvAiPageThread .mv-ai-message-avatar {
    background: #e8eefc !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
    color: #0f172a !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10) !important;
}

html[data-bs-theme="light"] #mvAiPageThread .mv-ai-tool-btn,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-tool-btn,
html[data-bs-theme="light"] #mvAiPageThread .mv-ai-pin-btn,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-pin-btn,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-tool-btn,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-tool-btn,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-pin-btn,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-pin-btn,
html.mv-theme-light #mvAiPageThread .mv-ai-tool-btn,
body.mv-theme-light #mvAiPageThread .mv-ai-tool-btn,
html.mv-theme-light #mvAiPageThread .mv-ai-pin-btn,
body.mv-theme-light #mvAiPageThread .mv-ai-pin-btn {
    background: #f8fbff !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: none !important;
}

html[data-bs-theme="light"] #mvAiPageThread .mv-ai-tool-btn:hover,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-tool-btn:hover,
html[data-bs-theme="light"] #mvAiPageThread .mv-ai-pin-btn:hover,
body[data-bs-theme="light"] #mvAiPageThread .mv-ai-pin-btn:hover,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-tool-btn:hover,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-tool-btn:hover,
html[data-mv-theme="light"] #mvAiPageThread .mv-ai-pin-btn:hover,
body[data-mv-theme="light"] #mvAiPageThread .mv-ai-pin-btn:hover,
html.mv-theme-light #mvAiPageThread .mv-ai-tool-btn:hover,
body.mv-theme-light #mvAiPageThread .mv-ai-tool-btn:hover,
html.mv-theme-light #mvAiPageThread .mv-ai-pin-btn:hover,
body.mv-theme-light #mvAiPageThread .mv-ai-pin-btn:hover {
    background: #eef4ff !important;
    color: #0f172a !important;
    border-color: rgba(47, 125, 246, 0.22) !important;
}

html[data-bs-theme="dark"] .mv-ai-page-panel,
body[data-bs-theme="dark"] .mv-ai-page-panel,
html[data-mv-theme="dark"] .mv-ai-page-panel,
body[data-mv-theme="dark"] .mv-ai-page-panel,
html.mv-theme-dark .mv-ai-page-panel,
body.mv-theme-dark .mv-ai-page-panel,
html.theme-dark .mv-ai-page-panel,
body.theme-dark .mv-ai-page-panel {
    background: linear-gradient(180deg, rgba(10, 18, 34, 0.98), rgba(8, 14, 28, 0.98)) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24) !important;
    color: #eef4ff !important;
}

html[data-bs-theme="dark"] #mvAiPageThread,
body[data-bs-theme="dark"] #mvAiPageThread,
html[data-mv-theme="dark"] #mvAiPageThread,
body[data-mv-theme="dark"] #mvAiPageThread,
html.mv-theme-dark #mvAiPageThread,
body.mv-theme-dark #mvAiPageThread,
html.theme-dark #mvAiPageThread,
body.theme-dark #mvAiPageThread {
    background: linear-gradient(180deg, rgba(13, 20, 34, 0.92), rgba(9, 15, 28, 0.94)) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-meta,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-meta,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-meta,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-meta,
html.mv-theme-dark #mvAiPageThread .mv-ai-meta,
body.mv-theme-dark #mvAiPageThread .mv-ai-meta,
html.theme-dark #mvAiPageThread .mv-ai-meta,
body.theme-dark #mvAiPageThread .mv-ai-meta {
    color: rgba(230, 238, 250, 0.66) !important;
}

html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-bubble.is-assistant,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-bubble.is-assistant,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-bubble.is-assistant,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-bubble.is-assistant,
html.mv-theme-dark #mvAiPageThread .mv-ai-bubble.is-assistant,
body.mv-theme-dark #mvAiPageThread .mv-ai-bubble.is-assistant,
html.theme-dark #mvAiPageThread .mv-ai-bubble.is-assistant,
body.theme-dark #mvAiPageThread .mv-ai-bubble.is-assistant {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #eef4ff !important;
}

html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-message,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-message,
html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-message p,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-message p,
html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-summary-copy,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-summary-copy,
html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-summary-copy p,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-summary-copy p,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-message,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-message,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-message p,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-message p,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-summary-copy,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-summary-copy,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-summary-copy p,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-summary-copy p,
html.mv-theme-dark #mvAiPageThread .mv-ai-message,
body.mv-theme-dark #mvAiPageThread .mv-ai-message,
html.mv-theme-dark #mvAiPageThread .mv-ai-message p,
body.mv-theme-dark #mvAiPageThread .mv-ai-message p,
html.mv-theme-dark #mvAiPageThread .mv-ai-summary-copy,
body.mv-theme-dark #mvAiPageThread .mv-ai-summary-copy,
html.mv-theme-dark #mvAiPageThread .mv-ai-summary-copy p,
body.mv-theme-dark #mvAiPageThread .mv-ai-summary-copy p,
html.theme-dark #mvAiPageThread .mv-ai-message,
body.theme-dark #mvAiPageThread .mv-ai-message,
html.theme-dark #mvAiPageThread .mv-ai-message p,
body.theme-dark #mvAiPageThread .mv-ai-message p,
html.theme-dark #mvAiPageThread .mv-ai-summary-copy,
body.theme-dark #mvAiPageThread .mv-ai-summary-copy,
html.theme-dark #mvAiPageThread .mv-ai-summary-copy p,
body.theme-dark #mvAiPageThread .mv-ai-summary-copy p {
    color: #eef4ff !important;
}

html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-summary-card,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-summary-card,
html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-info-card,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-info-card,
html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-mini-card,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-mini-card,
html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-chip-card,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-chip-card,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-summary-card,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-summary-card,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-info-card,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-info-card,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-mini-card,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-mini-card,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-chip-card,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-chip-card,
html.mv-theme-dark #mvAiPageThread .mv-ai-summary-card,
body.mv-theme-dark #mvAiPageThread .mv-ai-summary-card,
html.mv-theme-dark #mvAiPageThread .mv-ai-info-card,
body.mv-theme-dark #mvAiPageThread .mv-ai-info-card,
html.mv-theme-dark #mvAiPageThread .mv-ai-mini-card,
body.mv-theme-dark #mvAiPageThread .mv-ai-mini-card,
html.mv-theme-dark #mvAiPageThread .mv-ai-chip-card,
body.mv-theme-dark #mvAiPageThread .mv-ai-chip-card,
html.theme-dark #mvAiPageThread .mv-ai-summary-card,
body.theme-dark #mvAiPageThread .mv-ai-summary-card,
html.theme-dark #mvAiPageThread .mv-ai-info-card,
body.theme-dark #mvAiPageThread .mv-ai-info-card,
html.theme-dark #mvAiPageThread .mv-ai-mini-card,
body.theme-dark #mvAiPageThread .mv-ai-mini-card,
html.theme-dark #mvAiPageThread .mv-ai-chip-card,
body.theme-dark #mvAiPageThread .mv-ai-chip-card {
    background: rgba(255, 255, 255, 0.045) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #eef4ff !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-mini-card h6,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-mini-card h6,
html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-summary-title,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-summary-title,
html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-chip-card strong,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-chip-card strong,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-mini-card h6,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-mini-card h6,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-summary-title,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-summary-title,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-chip-card strong,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-chip-card strong,
html.mv-theme-dark #mvAiPageThread .mv-ai-mini-card h6,
body.mv-theme-dark #mvAiPageThread .mv-ai-mini-card h6,
html.mv-theme-dark #mvAiPageThread .mv-ai-summary-title,
body.mv-theme-dark #mvAiPageThread .mv-ai-summary-title,
html.mv-theme-dark #mvAiPageThread .mv-ai-chip-card strong,
body.mv-theme-dark #mvAiPageThread .mv-ai-chip-card strong,
html.theme-dark #mvAiPageThread .mv-ai-mini-card h6,
body.theme-dark #mvAiPageThread .mv-ai-mini-card h6,
html.theme-dark #mvAiPageThread .mv-ai-summary-title,
body.theme-dark #mvAiPageThread .mv-ai-summary-title,
html.theme-dark #mvAiPageThread .mv-ai-chip-card strong,
body.theme-dark #mvAiPageThread .mv-ai-chip-card strong {
    color: #f7fbff !important;
}

html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-mini-card div,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-mini-card div,
html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-mini-card p,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-mini-card p,
html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-mini-card li,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-mini-card li,
html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-summary-note,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-summary-note,
html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-info-eyebrow,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-info-eyebrow,
html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-chip-card span,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-chip-card span,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-mini-card div,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-mini-card div,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-mini-card p,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-mini-card p,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-mini-card li,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-mini-card li,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-summary-note,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-summary-note,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-info-eyebrow,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-info-eyebrow,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-chip-card span,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-chip-card span,
html.mv-theme-dark #mvAiPageThread .mv-ai-mini-card div,
body.mv-theme-dark #mvAiPageThread .mv-ai-mini-card div,
html.mv-theme-dark #mvAiPageThread .mv-ai-mini-card p,
body.mv-theme-dark #mvAiPageThread .mv-ai-mini-card p,
html.mv-theme-dark #mvAiPageThread .mv-ai-mini-card li,
body.mv-theme-dark #mvAiPageThread .mv-ai-mini-card li,
html.mv-theme-dark #mvAiPageThread .mv-ai-summary-note,
body.mv-theme-dark #mvAiPageThread .mv-ai-summary-note,
html.mv-theme-dark #mvAiPageThread .mv-ai-info-eyebrow,
body.mv-theme-dark #mvAiPageThread .mv-ai-info-eyebrow,
html.mv-theme-dark #mvAiPageThread .mv-ai-chip-card span,
body.mv-theme-dark #mvAiPageThread .mv-ai-chip-card span,
html.theme-dark #mvAiPageThread .mv-ai-mini-card div,
body.theme-dark #mvAiPageThread .mv-ai-mini-card div,
html.theme-dark #mvAiPageThread .mv-ai-mini-card p,
body.theme-dark #mvAiPageThread .mv-ai-mini-card p,
html.theme-dark #mvAiPageThread .mv-ai-mini-card li,
body.theme-dark #mvAiPageThread .mv-ai-mini-card li,
html.theme-dark #mvAiPageThread .mv-ai-summary-note,
body.theme-dark #mvAiPageThread .mv-ai-summary-note,
html.theme-dark #mvAiPageThread .mv-ai-info-eyebrow,
body.theme-dark #mvAiPageThread .mv-ai-info-eyebrow,
html.theme-dark #mvAiPageThread .mv-ai-chip-card span,
body.theme-dark #mvAiPageThread .mv-ai-chip-card span {
    color: rgba(230, 238, 250, 0.72) !important;
}

html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-message-avatar,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-message-avatar,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-message-avatar,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-message-avatar,
html.mv-theme-dark #mvAiPageThread .mv-ai-message-avatar,
body.mv-theme-dark #mvAiPageThread .mv-ai-message-avatar,
html.theme-dark #mvAiPageThread .mv-ai-message-avatar,
body.theme-dark #mvAiPageThread .mv-ai-message-avatar {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    color: #eef4ff !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-tool-btn,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-tool-btn,
html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-pin-btn,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-pin-btn,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-tool-btn,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-tool-btn,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-pin-btn,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-pin-btn,
html.mv-theme-dark #mvAiPageThread .mv-ai-tool-btn,
body.mv-theme-dark #mvAiPageThread .mv-ai-tool-btn,
html.mv-theme-dark #mvAiPageThread .mv-ai-pin-btn,
body.mv-theme-dark #mvAiPageThread .mv-ai-pin-btn,
html.theme-dark #mvAiPageThread .mv-ai-tool-btn,
body.theme-dark #mvAiPageThread .mv-ai-tool-btn,
html.theme-dark #mvAiPageThread .mv-ai-pin-btn,
body.theme-dark #mvAiPageThread .mv-ai-pin-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #dbeafe !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-tool-btn:hover,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-tool-btn:hover,
html[data-bs-theme="dark"] #mvAiPageThread .mv-ai-pin-btn:hover,
body[data-bs-theme="dark"] #mvAiPageThread .mv-ai-pin-btn:hover,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-tool-btn:hover,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-tool-btn:hover,
html[data-mv-theme="dark"] #mvAiPageThread .mv-ai-pin-btn:hover,
body[data-mv-theme="dark"] #mvAiPageThread .mv-ai-pin-btn:hover,
html.mv-theme-dark #mvAiPageThread .mv-ai-tool-btn:hover,
body.mv-theme-dark #mvAiPageThread .mv-ai-tool-btn:hover,
html.mv-theme-dark #mvAiPageThread .mv-ai-pin-btn:hover,
body.mv-theme-dark #mvAiPageThread .mv-ai-pin-btn:hover,
html.theme-dark #mvAiPageThread .mv-ai-tool-btn:hover,
body.theme-dark #mvAiPageThread .mv-ai-tool-btn:hover,
html.theme-dark #mvAiPageThread .mv-ai-pin-btn:hover,
body.theme-dark #mvAiPageThread .mv-ai-pin-btn:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
    border-color: rgba(142, 200, 255, 0.30) !important;
}
