﻿/* ============================================================
   🌐 MentorSync — Chat Panel Visual System (Front-End)
   - Header visual
   - Mensajes / Burbujas
   - Input interactivo
   - Light/Dark Mode
   - Animaciones
   - Menú flotante (corregido)
   - Mobile fullscreen
============================================================ */

/* ============================================================
   FIX GLOBAL — menú ⋮ (solo el header es relative; el panel sigue fixed)
============================================================ */
.mentorsync-ai-panel {
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    left: auto !important;
    top: auto !important;
    width: min(400px, calc(100vw - 2rem)) !important;
    max-width: 400px;
    height: min(580px, calc(100vh - 2.5rem));
    max-height: min(580px, 86vh);
    display: none;
    flex-direction: column;
    overflow: hidden !important;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
}

.mentorsync-ai-panel.is-open {
    display: flex !important;
}

.mentorsync-ai-header {
    position: relative;
    overflow: visible !important;
    flex-shrink: 0;
    padding: 0.85rem 1rem;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease;
}

.mentorsync-ai-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
}

.mentorsync-ai-suggestions {
    flex-shrink: 0;
}

.mentorsync-ai-input {
    flex-shrink: 0;
}

/* Botón flotante oculto mientras el panel está abierto */
body.mentorsync-panel-open .mentorsync-sidebar:not(.mentorsync-header),
.mentorsync-sidebar.mentorsync-sidebar--hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.mentorsync-panel-open {
    overflow: hidden;
}


/* ============================================================
   MENÚ ⋮ — CORREGIDO Y FUNCIONAL
============================================================ */
.mentorsync-ai-menu {
    position: absolute;
    top: 52px;             /* debajo del header */
    right: 12px;           /* alineado con el botón ⋮ */
    min-width: 170px;

    background: var(--ms-panel, rgba(255,255,255,0.85));
    border-radius: 12px;
    padding: 8px 0;

    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    backdrop-filter: blur(18px);

    display: flex;
    flex-direction: column;

    opacity: 1;
    transform: scale(1);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 999999999;
}

.mentorsync-ai-menu.hidden {
    opacity: 0;
    transform: scale(.85);
    pointer-events: none;
}

/* Items del menú (aunque aún no uses ninguno) */
.mentorsync-ai-menu-item {
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    color: var(--ms-text, #222);
    transition: background .15s ease;
}

.mentorsync-ai-menu-item:hover {
    background: var(--ms-hover, rgba(0,0,0,0.06));
}


/* ============================================================
   HEADER — BASE
============================================================ */
.mentorsync-ai-avatar {
    background-size: cover;
    background-position: center;
}

.mentorsync-ai-title {
    font-size: 1rem;
}

.mentorsync-ai-subtitle {
    opacity: 0.85;
}

.mentorsync-ai-close {
    transition: background .2s ease, color .2s ease;
}

/* ============================================================
   MENSAJES — BASE
============================================================ */
.mentorsync-ai-messages {
    backdrop-filter: blur(6px);
}

.mentorsync-ai-message-bubble {
    backdrop-filter: blur(5px);
    border: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

/* ============================================================
   INPUT
============================================================ */
.mentorsync-ai-input {
    backdrop-filter: blur(14px);
    border-top: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease;
}

.mentorsync-ai-input-text {
    background: transparent;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.mentorsync-ai-input-send {
    transition: background .25s ease, color .25s ease;
}

/* ============================================================
   🌞 LIGHT MODE
============================================================ */
html[data-theme="light"] .mentorsync-ai-header {
    background: rgba(255, 255, 255, 0.80);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .mentorsync-ai-title { color: #111; }
html[data-theme="light"] .mentorsync-ai-subtitle { color: #444; }

html[data-theme="light"] .mentorsync-ai-close { color: #333; }
html[data-theme="light"] .mentorsync-ai-close:hover {
    background: rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] .mentorsync-ai-messages {
    background: linear-gradient(145deg, #fafafa, #f2f2f2);
}

html[data-theme="light"] .mentorsync-ai-message-avatar {
    background: #ececec;
    color: #111;
}

html[data-theme="light"] .mentorsync-ai-message-bubble {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    color: #222;
}

/* User bubble */
html[data-theme="light"] .mentorsync-ai-message-user .mentorsync-ai-message-bubble {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #0f172a;
}

html[data-theme="light"] .mentorsync-ai-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .mentorsync-ai-input-text {
    border-color: rgba(0, 0, 0, 0.15);
    color: #111;
}

html[data-theme="light"] .mentorsync-ai-input-send {
    background: #2563eb;
    color: white;
}
html[data-theme="light"] .mentorsync-ai-input-send:hover {
    background: #1d4ed8;
}

/* ============================================================
   🌙 DARK MODE
============================================================ */
html[data-theme="dark"] .mentorsync-ai-header {
    background:
        radial-gradient(circle at 0% 0%, rgba(236,72,153,0.20), transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(59,130,246,0.22), transparent 55%),
        linear-gradient(to right, rgba(15,23,42,0.98), rgba(15,23,42,0.92));
    border-color: rgba(148, 163, 184, 0.20);
}

html[data-theme="dark"] .mentorsync-ai-title { color: #f1f5f9; }
html[data-theme="dark"] .mentorsync-ai-subtitle { color: #cbd5e1; }

html[data-theme="dark"] .mentorsync-ai-close { color: #e2e8f0; }
html[data-theme="dark"] .mentorsync-ai-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .mentorsync-ai-messages {
    background:
        radial-gradient(circle at 0% 100%, rgba(79,70,229,0.35), transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(236,72,153,0.35), transparent 55%),
        linear-gradient(145deg, #020617, #020617);
}

html[data-theme="dark"] .mentorsync-ai-message-avatar {
    background: #1e293b;
    color: #fff;
}

html[data-theme="dark"] .mentorsync-ai-message-bubble {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148,163,184,0.25);
    color: #e2e8f0;
}

/* User bubble */
html[data-theme="dark"] .mentorsync-ai-message-user .mentorsync-ai-message-bubble {
    background: rgba(59,130,246,0.22);
    border-color: rgba(59,130,246,0.55);
    color: #fff;
}

html[data-theme="dark"] .mentorsync-ai-input {
    background: rgba(2, 6, 23, 0.92);
    border-color: rgba(148,163,184,0.15);
}

html[data-theme="dark"] .mentorsync-ai-input-text {
    border-color: rgba(148,163,184,0.25);
    color: #e2e8f0;
}

html[data-theme="dark"] .mentorsync-ai-input-send {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: white;
}
html[data-theme="dark"] .mentorsync-ai-input-send:hover {
    filter: brightness(1.15);
}

/* ============================================================
   Animación mensajes
============================================================ */
.mentorsync-ai-message {
    animation: msyncFadeIn .25s ease;
}

@keyframes msyncFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Mobile fullscreen
============================================================ */
@media (max-width: 600px) {
    .mentorsync-ai-panel {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        overflow: visible !important;
    }

    .mentorsync-ai-header {
        border-radius: 0;
    }
}

/* ============================================================
   AVATARES EN MOVIL — FIX DE VISIBILIDAD Y ESPACIADO
============================================================ */
@media (max-width: 768px) {

    /* Asegurar que el contenedor del mensaje permita ver el avatar */
    .mentorsync-ai-message {
        display: flex !important;
        align-items: flex-start !important;
        gap: 8px !important;
        overflow: visible !important;
        max-width: 100% !important;
    }

    /* Avatar visible, sin recorte */
    .mentorsync-ai-message-avatar {
        flex-shrink: 0 !important;
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
        overflow: visible !important;
    }

    /* Burbuja ajustada en móvil */
    .mentorsync-ai-message-bubble {
        max-width: calc(100% - 40px) !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        white-space: pre-wrap !important;
    }

    /* Evitar que algún contenedor padre esconda los avatares */
    .mentorsync-ai-messages {
        overflow-y: auto !important;
        overflow-x: visible !important;
    }
}

.mentorsync-ai-message-avatar {
    width: 36px !important;
    height: 36px !important;

    min-width: 36px !important;
    min-height: 36px !important;

    border-radius: 50% !important;
    background: rgba(255,255,255,0.08);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0 !important; /* elimina emojis */
    overflow: visible !important;
}

.mentorsync-ai-message-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
}

/* ============================================================
   PREMIUM v2 — SoulfulSync brand (morado / rosa / glass)
============================================================ */
:root {
    --ms-violet: #9b8cff;
    --ms-violet-deep: #6e5ce6;
    --ms-rose: #e8789a;
    --ms-green: #6fcca0;
    --ms-ink: #0c0a14;
    --ms-glass: rgba(28, 25, 41, 0.72);
}

.mentorsync-ai-panel {
    height: min(620px, calc(100vh - 2.5rem));
    max-height: min(620px, 88vh);
    border-radius: 22px;
}

.mentorsync-ai-panel.is-open {
    display: flex !important;
    animation: msyncPanelIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(155, 140, 255, 0.28);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(155, 140, 255, 0.1),
        0 0 56px rgba(110, 92, 230, 0.18);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

@keyframes msyncPanelIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.975);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mentorsync-ai-header {
    padding: 1.05rem 1rem 0.95rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(232, 120, 154, 0.28), transparent 52%),
        radial-gradient(circle at 100% 0%, rgba(155, 140, 255, 0.34), transparent 55%),
        linear-gradient(135deg, rgba(28, 22, 48, 0.98), rgba(12, 10, 20, 0.96));
    border-bottom: 1px solid rgba(155, 140, 255, 0.18);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

html[data-theme="light"] .mentorsync-ai-header {
    background:
        radial-gradient(circle at 0% 0%, rgba(232, 120, 154, 0.14), transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(155, 140, 255, 0.18), transparent 52%),
        linear-gradient(135deg, #fffcfe, #f3effc);
    border-bottom-color: rgba(110, 92, 230, 0.14);
}

.mentorsync-ai-header-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mentorsync-ai-header-text {
    min-width: 0;
}

.mentorsync-ai-title {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.mentorsync-ai-avatar-ring {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #5a4ad4, #9b8cff, #e8789a);
    box-shadow:
        0 8px 20px rgba(110, 92, 230, 0.42),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mentorsync-ai-avatar-ring .mentorsync-ai-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    display: block;
    background:
        radial-gradient(circle at 40% 30%, rgba(155, 140, 255, 0.35), transparent 55%),
        #161225;
    padding: 3px;
    box-sizing: border-box;
}

html[data-theme="light"] .mentorsync-ai-avatar-ring .mentorsync-ai-avatar-img {
    background:
        radial-gradient(circle at 40% 30%, rgba(155, 140, 255, 0.22), transparent 55%),
        #f4f0ff;
}

.mentorsync-ai-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ms-green, #6fcca0);
    border: 2px solid var(--ms-ink, #0c0a14);
    box-shadow: 0 0 10px rgba(111, 204, 160, 0.7);
}

html[data-theme="light"] .mentorsync-ai-status-dot {
    border-color: #fff;
}

.mentorsync-ai-status-pill {
    display: inline-flex;
    margin-top: 3px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ms-green, #6fcca0);
    background: rgba(111, 204, 160, 0.16);
    border: 1px solid rgba(111, 204, 160, 0.4);
}

.mentorsync-ai-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mentorsync-ai-menu-btn,
.mentorsync-ai-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(155, 140, 255, 0.16);
    border-radius: 11px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    color: #e8e4f8;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

html[data-theme="light"] .mentorsync-ai-menu-btn,
html[data-theme="light"] .mentorsync-ai-close {
    background: rgba(110, 92, 230, 0.08);
    color: #1e1a2e;
    border-color: rgba(110, 92, 230, 0.14);
}

.mentorsync-ai-menu-btn:hover,
.mentorsync-ai-close:hover {
    background: rgba(155, 140, 255, 0.22);
    border-color: rgba(155, 140, 255, 0.35);
    transform: scale(1.04);
}

.mentorsync-ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px 4px;
    background: transparent;
}

.mentorsync-ai-suggestion-chip {
    border: 1px solid rgba(155, 140, 255, 0.28);
    background: rgba(155, 140, 255, 0.1);
    color: inherit;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 100%;
    text-align: left;
}

.mentorsync-ai-suggestion-chip:hover:not(:disabled) {
    background: rgba(155, 140, 255, 0.2);
    border-color: rgba(155, 140, 255, 0.45);
    transform: translateY(-1px);
}

.mentorsync-ai-suggestion-chip:disabled {
    opacity: 0.55;
    cursor: wait;
}

.mentorsync-ai-messages {
    padding: 0.85rem 0.95rem 1.1rem;
    background:
        radial-gradient(circle at 0% 100%, rgba(79, 70, 229, 0.16), transparent 52%),
        radial-gradient(circle at 100% 0%, rgba(232, 120, 154, 0.12), transparent 48%),
        linear-gradient(180deg, rgba(14, 11, 24, 0.55), rgba(10, 8, 18, 0.92));
}

html[data-theme="light"] .mentorsync-ai-messages {
    background: linear-gradient(180deg, #faf8ff, #f3effc);
}

.mentorsync-ai-message-assistant .mentorsync-ai-message-bubble {
    background: rgba(28, 24, 44, 0.92);
    border: 1px solid rgba(155, 140, 255, 0.16);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    position: relative;
    border-bottom-left-radius: 6px;
    padding-right: 0.75rem;
    padding-bottom: 0.5rem;
}

html[data-theme="light"] .mentorsync-ai-message-assistant .mentorsync-ai-message-bubble {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(110, 92, 230, 0.12);
    box-shadow: 0 6px 18px rgba(110, 92, 230, 0.08);
}

.mentorsync-ai-message-user {
    flex-direction: row-reverse;
}

.mentorsync-ai-message-user .mentorsync-ai-message-bubble {
    background: linear-gradient(135deg, #5a4ad4, #8b7cf0);
    border: none;
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 8px 20px rgba(90, 74, 212, 0.35);
}

.mentorsync-ai-message-avatar .mentorsync-avatar-img,
.mentorsync-ai-message-avatar img {
    object-fit: contain !important;
    object-position: center !important;
    background:
        radial-gradient(circle at 40% 30%, rgba(155, 140, 255, 0.3), transparent 55%),
        #161225;
    padding: 2px;
    box-sizing: border-box;
}

.mentorsync-ai-message-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(155, 140, 255, 0.14);
}

.mentorsync-ai-message-footer .mentorsync-ai-feedback {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.mentorsync-ai-copy-btn {
    position: static;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(155, 140, 255, 0.22);
    border-radius: 10px;
    background: rgba(155, 140, 255, 0.08);
    color: inherit;
    opacity: 0.75;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.mentorsync-ai-copy-btn:hover {
    opacity: 1;
    background: rgba(155, 140, 255, 0.18);
    transform: translateY(-1px);
}

.mentorsync-typing-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 2px;
    border-radius: 50%;
    background: var(--ms-violet);
    animation: msyncTyping 1.2s infinite ease-in-out;
}

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

@keyframes msyncTyping {
    0%,
    80%,
    100% {
        transform: scale(0.7);
        opacity: 0.45;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.mentorsync-ai-input {
    padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    gap: 0.55rem;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(16, 12, 28, 0.72), rgba(10, 8, 18, 0.96));
    border-top: 1px solid rgba(155, 140, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
}

html[data-theme="light"] .mentorsync-ai-input {
    background: rgba(252, 250, 255, 0.96);
    border-top-color: rgba(110, 92, 230, 0.1);
}

.mentorsync-ai-voice-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(155, 140, 255, 0.18);
    background: rgba(155, 140, 255, 0.1);
    border-radius: 12px;
    color: var(--ms-violet, #9b8cff);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mentorsync-ai-voice-btn:hover {
    background: rgba(155, 140, 255, 0.18);
    border-color: rgba(155, 140, 255, 0.35);
}

.mentorsync-ai-input-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    border-radius: 16px;
    border: 1px solid rgba(155, 140, 255, 0.24);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    padding: 2px 4px;
}

html[data-theme="light"] .mentorsync-ai-input-wrap {
    background: #fff;
    border-color: rgba(110, 92, 230, 0.16);
}

.mentorsync-ai-input-text {
    width: 100%;
    border: none !important;
    background: transparent !important;
    min-height: 40px;
    max-height: 120px;
    padding: 0.55rem 0.7rem;
    font-size: 14px;
    line-height: 1.45;
    resize: none;
}

.mentorsync-ai-input-send {
    width: 46px;
    height: 46px;
    min-width: 46px;
    padding: 0;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #5a4ad4, #9b8cff, #e8789a);
    box-shadow:
        0 8px 20px rgba(110, 92, 230, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.mentorsync-ai-input-send:hover:not(:disabled) {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.06);
}

.mentorsync-ai-input-send:disabled,
.mentorsync-ai-input-send.is-busy {
    opacity: 0.65;
    cursor: wait;
}

.mentorsync-ai-toast {
    position: absolute;
    left: 50%;
    bottom: 72px;
    transform: translateX(-50%) translateY(8px);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(28, 25, 41, 0.92);
    color: #fff;
    border: 1px solid rgba(155, 140, 255, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 20;
}

.mentorsync-ai-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mentorsync-sidebar-glow {
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ms-violet-deep), var(--ms-rose));
    opacity: 0.35;
    filter: blur(8px);
    z-index: -1;
    pointer-events: none;
}

.mentorsync-sidebar.mentorsync-header {
    position: relative;
    overflow: visible;
}

.mentorsync-sidebar-avatar-img {
    object-fit: contain !important;
    object-position: center !important;
}

@media (max-width: 600px) {
    .mentorsync-ai-panel.is-open {
        border-radius: 0;
    }
}