/* ==========================================================================
   EXE JEWELLERY — AI CHAT SPECIALIST WIDGET
   Draggable, Morphing Floating Bubble with "Grow from Bubble" Animation
   Draggable & Resizable Chat Window with Top Drag Border / Grip Bar
   High-Contrast Inverted Palette:
   • Night Mode (dark site): Crisp WHITE bubble & chat with BLACK top bar & accents
   • Day Mode (light site): Sleek BLACK bubble & chat with WHITE top bar & accents
   ========================================================================== */

/* --- Base Draggable Floating Circle Launcher --- */
.exe-chat-launcher {
    position: fixed;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    cursor: grab;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    will-change: transform, left, top;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.34s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.35s ease,
                color 0.35s ease,
                border-color 0.35s ease;
}

.exe-chat-launcher:hover {
    transform: scale(1.08);
}

.exe-chat-launcher:active,
.exe-chat-launcher.is-dragging {
    cursor: grabbing !important;
    transform: scale(1.04);
    transition: none !important;
}

/* Active / Open state: Smoothly shrinks by 10% while chat is open */
.exe-chat-launcher.is-active {
    transform: scale(0.9);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5) !important;
}

.exe-chat-launcher.is-active:hover {
    transform: scale(0.96);
}

.exe-chat-launcher.is-active:active,
.exe-chat-launcher.is-active.is-dragging {
    cursor: grabbing !important;
    transform: scale(0.92);
    transition: none !important;
}

/* Pulsing aura ring (only pulses when closed) */
.exe-chat-launcher::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    opacity: 0.7;
    animation: exeLauncherPulse 2.8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.exe-chat-launcher.is-active::before {
    opacity: 0;
    animation: none;
}

@keyframes exeLauncherPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.exe-chat-launcher.is-wiggling:not(.is-dragging):not(.is-active) .exe-chat-launcher-icon {
    animation: exeLauncherWiggle 1.15s ease-in-out;
}

@keyframes exeLauncherWiggle {
    0%   { transform: rotate(0deg); }
    30%  { transform: rotate(-12deg); }
    65%  { transform: rotate(10deg); }
    86%  { transform: rotate(-4deg); }
    100% { transform: rotate(0deg); }
}

/* Icon Container with Smooth Morphing (Gem <-> Close X) */
.exe-chat-launcher-icon {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
}

.exe-icon-gem,
.exe-launcher-avatar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
    opacity: 1;
    transform: rotate(0deg) scale(1);
    border-radius: 50%;
    overflow: hidden;
}

.exe-launcher-avatar svg {
    width: 26px;
    height: 26px;
    max-width: 26px;
    max-height: 26px;
    display: block;
}

.exe-launcher-avatar svg.exe-aura-bot-svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 50%;
}

.exe-icon-close {
    position: absolute;
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.exe-chat-launcher.is-active .exe-icon-gem,
.exe-chat-launcher.is-active .exe-launcher-avatar {
    opacity: 0 !important;
    transform: rotate(90deg) scale(0.5) !important;
    pointer-events: none !important;
}

.exe-chat-launcher.is-active .exe-icon-close {
    opacity: 1 !important;
    display: block !important;
    transform: rotate(0deg) scale(1) !important;
}

/* Online status dot */
.exe-chat-launcher-status {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
    z-index: 30 !important;
}

.exe-chat-launcher-status.has-unread {
    width: 17px;
    height: 17px;
    top: 0px;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: var(--font-main, sans-serif);
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1;
}

.exe-chat-launcher.is-active .exe-chat-launcher-status {
    transform: scale(0);
    opacity: 0;
}

/* Teaser badge / hover tooltip & automatic greeting bubble */
.exe-chat-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    left: auto;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    font-family: var(--font-main, sans-serif);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.35;
    padding: 8px 14px;
    border-radius: 18px;
    width: max-content;
    max-width: min(320px, calc(100vw - 115px));
    white-space: normal;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.36s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.35s ease,
                color 0.35s ease;
}

.exe-chat-tooltip.is-right-side {
    right: auto;
    left: calc(100% + 14px);
    transform: translateY(-50%) translateX(-6px);
}

.exe-chat-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    right: auto;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
}

.exe-chat-tooltip.is-right-side::after {
    left: auto;
    right: 100%;
}

.exe-chat-launcher:hover:not(.is-dragging) .exe-chat-tooltip:not(.is-greeting-fading),
.exe-chat-launcher:focus-visible:not(.is-dragging) .exe-chat-tooltip:not(.is-greeting-fading),
.exe-chat-launcher:not(.is-dragging):not(.is-active) .exe-chat-tooltip.is-greeting-visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}


/* --- Floating Chat Box Window (Grows out of Bubble, Draggable & Resizable) --- */
.exe-chat-window {
    position: fixed;
    width: 380px;
    min-width: 310px;
    max-width: calc(100vw - 24px);
    height: 540px;
    min-height: 380px;
    max-height: calc(100vh - 60px);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.08);
    will-change: transform, opacity, left, top, width, height;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.26s,
                background-color 0.35s ease,
                color 0.35s ease,
                border-color 0.35s ease;
    font-family: var(--font-main, sans-serif);
    touch-action: none;
}

.exe-chat-window.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.exe-chat-window.is-window-dragging,
.exe-chat-window.is-resizing {
    transition: none !important; /* Zero lag while dragging or resizing */
    user-select: none !important;
}

/* --- Top Drag Border / Grip Bar --- */
.exe-chat-top-drag-bar {
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    flex-shrink: 0;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: background-color 0.35s ease;
}

.exe-chat-top-drag-bar:active,
.exe-chat-window.is-window-dragging .exe-chat-top-drag-bar {
    cursor: grabbing !important;
}

.exe-chat-drag-pill {
    width: 42px;
    height: 4px;
    border-radius: 2px;
    transition: opacity 0.2s ease, width 0.2s ease;
    pointer-events: none;
}

.exe-chat-top-drag-bar:hover .exe-chat-drag-pill {
    width: 54px;
    opacity: 0.9;
}

/* --- Resize Handles (All 4 Corners & Edges) --- */
.exe-chat-resize-handle {
    position: absolute;
    z-index: 100 !important;
    touch-action: none;
    pointer-events: auto !important;
}

.exe-chat-resize-tl {
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    cursor: nwse-resize;
}

.exe-chat-resize-tr {
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    cursor: nesw-resize;
}

.exe-chat-resize-bl {
    bottom: 0;
    left: 0;
    width: 28px;
    height: 28px;
    cursor: nesw-resize;
}

.exe-chat-resize-br {
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    cursor: nwse-resize;
}

.exe-chat-resize-t {
    top: 0;
    left: 28px;
    right: 28px;
    height: 10px;
    cursor: ns-resize;
}

.exe-chat-resize-b {
    bottom: 0;
    left: 28px;
    right: 28px;
    height: 10px;
    cursor: ns-resize;
}

.exe-chat-resize-l {
    top: 28px;
    bottom: 28px;
    left: 0;
    width: 10px;
    cursor: ew-resize;
}

.exe-chat-resize-r {
    top: 28px;
    bottom: 28px;
    right: 0;
    width: 10px;
    cursor: ew-resize;
}

/* Subtle corner grip indicators */
.exe-chat-resize-tl::after,
.exe-chat-resize-tr::after,
.exe-chat-resize-bl::after,
.exe-chat-resize-br::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    opacity: 0.35;
    transition: opacity 0.2s ease;
}

.exe-chat-resize-tl::after {
    top: 5px;
    left: 5px;
    border-top: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
}

.exe-chat-resize-tr::after {
    top: 5px;
    right: 5px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

.exe-chat-resize-bl::after {
    bottom: 5px;
    left: 5px;
    border-bottom: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
}

.exe-chat-resize-br::after {
    bottom: 5px;
    right: 5px;
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

.exe-chat-resize-handle:hover::after {
    opacity: 0.95;
}


/* Chat Header */
.exe-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 12px 16px;
    transition: background-color 0.35s ease, border-color 0.35s ease;
    position: relative;
    z-index: 2;
}

.exe-chat-header-identity {
    display: flex;
    align-items: center;
    gap: 11px;
}

.exe-chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.35s ease, color 0.35s ease;
}

.exe-chat-avatar svg {
    width: 22px;
    height: 22px;
}

.exe-chat-header-meta {
    display: flex;
    flex-direction: column;
}

.exe-chat-title {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.35s ease;
}

.exe-chat-badge {
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.exe-chat-credit-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    margin-left: -1px;
    vertical-align: middle;
}

.exe-chat-credit-ring svg {
    width: 13px;
    height: 13px;
    display: block;
    transform: rotate(-90deg);
    overflow: visible;
}

.exe-credit-ring-track {
    fill: none;
    stroke-width: 2.3;
    transition: stroke 0.35s ease;
}

.exe-credit-ring-fill {
    fill: none;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-dasharray: 43.9823;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.45s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.35s ease, opacity 0.25s ease;
}

.exe-chat-status {
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    transition: color 0.35s ease;
}

.exe-chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
    display: inline-block;
}

/* Header Controls */
.exe-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.exe-chat-auth-controls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

@keyframes exeHeaderControlsFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.exe-chat-auth-controls.is-entering {
    animation: exeHeaderControlsFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.exe-chat-btn-control {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.exe-chat-btn-control:hover {
    transform: scale(1.08);
}

.exe-chat-btn-control.is-active {
    background: rgba(0, 0, 0, 0.08);
}

#exe-chat-btn-new,
#exe-chat-btn-settings,
#exe-chat-btn-history {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
    transform-origin: center center;
}

#exe-chat-btn-new.is-active,
#exe-chat-btn-new.is-active:hover,
#exe-chat-btn-settings.is-active,
#exe-chat-btn-settings.is-active:hover,
#exe-chat-btn-history.is-active,
#exe-chat-btn-history.is-active:hover {
    transform: rotate(45deg) !important;
}

.exe-chat-btn-control svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* --- Main Chat Content Area & Settings Sliding View --- */
.exe-chat-views-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.exe-chat-view-pane {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease, visibility 0.24s;
}

.exe-chat-view-pane.is-active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.exe-chat-view-pane:not(.is-active) {
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#exe-chat-pane-messages:not(.is-active) {
    transform: translateX(-100%);
}


/* Messages Body */
.exe-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    transition: background-color 0.35s ease;
}

.exe-chat-body::-webkit-scrollbar {
    width: 5px;
}

.exe-chat-body::-webkit-scrollbar-thumb {
    border-radius: 4px;
}

/* Message Rows with Ultra-Smooth Entrance */
.exe-chat-message-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 90%;
    animation: exeMsgSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes exeMsgSlideIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.exe-chat-message-row.is-assistant {
    align-self: flex-start;
}

.exe-chat-message-row.is-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.exe-chat-msg-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.exe-chat-msg-avatar svg {
    width: 14px;
    height: 14px;
}

.exe-chat-bubble {
    padding: 11px 15px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: break-word;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.exe-chat-bubble p {
    margin: 0 0 8px 0;
}

.exe-chat-bubble p:last-child {
    margin-bottom: 0;
}

.exe-chat-bubble ul, .exe-chat-bubble ol {
    margin: 4px 0 8px 18px;
    padding: 0;
}

.exe-chat-bubble li {
    margin-bottom: 3px;
}

/* In-chat interactive tool launcher buttons */
.exe-chat-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 6px 6px 4px 0 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    width: auto !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
    font-family: var(--font-main, sans-serif) !important;
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
    user-select: none !important;
    box-sizing: border-box !important;
}

.exe-chat-action-btn svg {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    max-width: 10px !important;
    fill: currentColor !important;
    stroke: none !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.exe-chat-action-btn span {
    display: inline-block !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.exe-chat-action-btn:hover {
    transform: translateY(-1.5px) !important;
}

.exe-chat-action-btn:active {
    transform: scale(0.97) !important;
}

body:not(.light-mode) .exe-chat-action-btn {
    background-color: #171a20 !important;
    color: #ffffff !important;
    border: 1px solid #171a20 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

body:not(.light-mode) .exe-chat-action-btn:hover {
    background-color: #000000 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

body.light-mode .exe-chat-action-btn {
    background-color: #ffffff !important;
    color: #0a0a0a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .exe-chat-action-btn:hover {
    background-color: #f1f5f9 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

/* --- Thinking Animation & Bubble --- */
.exe-chat-thinking-bubble {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    user-select: none;
    padding: 10px 14px;
}

.exe-thinking-text {
    font-weight: 500;
    opacity: 0.9;
}

.exe-thinking-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
}

.exe-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: currentColor;
    animation: exeDotPulse 1.35s ease-in-out infinite both;
}

.exe-dot:nth-child(1) { animation-delay: 0s; }
.exe-dot:nth-child(2) { animation-delay: 0.22s; }
.exe-dot:nth-child(3) { animation-delay: 0.44s; }

@keyframes exeDotPulse {
    0%, 80%, 100% {
        transform: scale(0.65);
        opacity: 0.28;
    }
    40% {
        transform: scale(1.22);
        opacity: 1;
    }
}

/* Suggestions (NO EMOJIS — PURE SVGs ONLY) */
.exe-chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    animation: exeMsgSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.exe-chat-suggestions-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    padding-left: 2px;
    transition: color 0.35s ease;
}

.exe-chat-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.exe-chat-chip {
    padding: 7px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-main, sans-serif);
}

.exe-chat-chip svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.exe-chat-chip:hover {
    transform: translateY(-1.5px);
}

.exe-chat-chip:active {
    transform: scale(0.97);
}

/* Input Area / Footer */
.exe-chat-footer {
    padding: 12px 14px 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.exe-chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 24px;
    padding: 4px 6px 4px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.35s ease;
}

.exe-chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.85rem;
    font-family: var(--font-main, sans-serif);
    padding: 6px 0;
}

.exe-chat-form.is-thinking .exe-chat-send-btn {
    opacity: 0.45;
    pointer-events: none;
    cursor: wait;
}

.exe-chat-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.exe-chat-send-btn:hover {
    transform: scale(1.08);
}

.exe-chat-send-btn:active {
    transform: scale(0.95);
}

.exe-chat-send-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin: 0;
}

.exe-chat-disclaimer {
    text-align: center;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.35s ease;
}


/* --- AI Settings Panel Inside Chat Box --- */
.exe-chat-settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
}

.exe-settings-header-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.exe-settings-title {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.exe-settings-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-main, sans-serif);
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.exe-settings-back-btn:hover {
    transform: translateX(-1px);
}

.exe-settings-back-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
}

.exe-settings-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.exe-settings-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.exe-settings-desc {
    font-size: 0.72rem;
    line-height: 1.4;
    margin-bottom: 2px;
}

.exe-settings-select,
.exe-settings-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: var(--font-main, sans-serif);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.exe-settings-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Settings API Key Row & Test Connection */
.exe-settings-key-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.exe-settings-key-row .exe-settings-input-wrap {
    flex: 1;
}

.exe-settings-test-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--font-main, sans-serif);
    transition: all 0.2s ease;
}

.exe-settings-test-btn:active {
    transform: scale(0.96);
}

.exe-settings-test-btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2.2;
}

.exe-settings-test-status {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    line-height: 1.35;
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 6px;
    font-weight: 600;
    word-break: break-word;
    animation: exeStatusFadeIn 0.2s ease;
}

@keyframes exeStatusFadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

.exe-settings-test-status.is-testing {
    display: flex;
    color: #64748b;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.exe-settings-test-status.is-success {
    display: flex;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.exe-settings-test-status.is-error {
    display: flex;
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.exe-settings-test-status svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

.exe-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: exeSpin 0.7s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes exeSpin {
    to { transform: rotate(360deg); }
}

/* Model Label & Dropdown */
.exe-settings-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exe-settings-model-tag {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0.8;
}

.exe-settings-eye-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exe-settings-eye-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.exe-settings-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.exe-settings-slider {
    flex: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    outline: none;
}

.exe-settings-slider-val {
    font-size: 0.76rem;
    font-weight: 700;
    min-width: 28px;
    text-align: right;
}

.exe-settings-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.exe-btn-save-settings {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-main, sans-serif);
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.exe-btn-save-settings:hover {
    transform: translateY(-1px);
}

.exe-btn-clear-chat {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    font-family: var(--font-main, sans-serif);
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}


/* --- Settings Navigation Tabs (AI Configuration vs Customisation) --- */
.exe-settings-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

.exe-settings-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: var(--font-main, sans-serif);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.exe-settings-tab svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    flex-shrink: 0;
}

.exe-settings-tab-panel {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.exe-settings-tab-panel.is-active {
    display: flex;
    animation: exeSettingsFadeIn 0.2s ease;
}

@keyframes exeSettingsFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Customisation: Avatar Live Preview Box --- */
.exe-avatar-preview-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.exe-avatar-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exe-avatar-preview-badge {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.exe-avatar-preview-status {
    font-size: 0.68rem;
    font-weight: 700;
}

.exe-avatar-preview-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.exe-avatar-preview-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.exe-avatar-preview-circle svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    display: block;
}

.exe-avatar-preview-bubble-mock {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 12px;
    border-radius: 12px;
    border-bottom-left-radius: 3px;
}

.exe-avatar-preview-sender {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.exe-avatar-preview-snippet {
    font-size: 0.74rem;
    line-height: 1.35;
}

/* --- Customisation: Preset Grid --- */
.exe-avatar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.exe-avatar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-main, sans-serif);
    transition: all 0.2s ease;
}

.exe-avatar-card:hover {
    transform: translateY(-1px);
}

.exe-avatar-card-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exe-avatar-card-icon svg {
    width: 19px;
    height: 19px;
    max-width: 19px;
    max-height: 19px;
    display: block;
}

.exe-avatar-card-title {
    font-size: 0.67rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* --- Customisation: Textarea --- */
.exe-settings-textarea {
    width: 100%;
    min-height: 80px;
    max-height: 160px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


/* --- AURA 3D Bot Orb Avatar (Dark & Light Mode) --- */

/* AURA Bot Preset Icon in Settings Grid */
.exe-avatar-card[data-preset="bot"] .exe-avatar-card-icon,
.exe-avatar-card .exe-avatar-card-icon.is-bot-icon,
.exe-avatar-card-icon:has(svg.exe-aura-bot-svg) {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    flex-shrink: 0;
}

body:not(.light-mode) .exe-avatar-card[data-preset="bot"] .exe-avatar-card-icon,
body:not(.light-mode) .exe-avatar-card .exe-avatar-card-icon.is-bot-icon,
body:not(.light-mode) .exe-avatar-card-icon:has(svg.exe-aura-bot-svg) {
    background: #0a0a0a !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45) !important;
}

body.light-mode .exe-avatar-card[data-preset="bot"] .exe-avatar-card-icon,
body.light-mode .exe-avatar-card .exe-avatar-card-icon.is-bot-icon,
body.light-mode .exe-avatar-card-icon:has(svg.exe-aura-bot-svg) {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.exe-avatar-card-icon svg.exe-aura-bot-svg,
.exe-avatar-card-icon.is-bot-icon svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 50% !important;
    display: block !important;
}

svg.exe-aura-bot-svg,
.exe-chat-avatar svg.exe-aura-bot-svg,
.exe-chat-msg-avatar svg.exe-aura-bot-svg,
.exe-launcher-avatar svg.exe-aura-bot-svg,
.exe-avatar-preview-circle svg.exe-aura-bot-svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

svg.exe-aura-bot-svg image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}



/* Dark Website Mode: Crisp black circular background for the silver/pearl orb */
body:not(.light-mode) .exe-chat-avatar.is-bot-avatar,
body:not(.light-mode) .exe-chat-avatar:has(svg.exe-aura-bot-svg),
body:not(.light-mode) .exe-chat-msg-avatar.is-bot-avatar,
body:not(.light-mode) .exe-chat-msg-avatar:has(svg.exe-aura-bot-svg),
body:not(.light-mode) .exe-avatar-preview-circle.is-bot-avatar,
body:not(.light-mode) .exe-avatar-preview-circle:has(svg.exe-aura-bot-svg) {
    background: #0a0a0a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
    padding: 0 !important;
}

body:not(.light-mode) .exe-chat-launcher.is-bot-avatar,
body:not(.light-mode) .exe-chat-launcher:has(svg.exe-aura-bot-svg) {
    background: #0a0a0a !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

body:not(.light-mode) .exe-chat-launcher.is-bot-avatar .exe-chat-launcher-status {
    border: 2px solid #ffffff;
}

/* Light Website Mode: Clean white circular background for the dark metallic orb */
body.light-mode .exe-chat-avatar.is-bot-avatar,
body.light-mode .exe-chat-avatar:has(svg.exe-aura-bot-svg),
body.light-mode .exe-chat-msg-avatar.is-bot-avatar,
body.light-mode .exe-chat-msg-avatar:has(svg.exe-aura-bot-svg),
body.light-mode .exe-avatar-preview-circle.is-bot-avatar,
body.light-mode .exe-avatar-preview-circle:has(svg.exe-aura-bot-svg) {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
}

body.light-mode .exe-chat-launcher.is-bot-avatar,
body.light-mode .exe-chat-launcher:has(svg.exe-aura-bot-svg) {
    background: #0a0a0a !important;
    border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

body.light-mode .exe-chat-launcher.is-bot-avatar .exe-chat-launcher-status {
    border: 2px solid #0a0a0a;
}

.exe-chat-launcher.is-bot-avatar::before,
.exe-chat-launcher:has(svg.exe-aura-bot-svg)::before {
    display: none !important;
}

/* When chat is active/open, use the exact same crisp active outline and background */
body:not(.light-mode) .exe-chat-launcher.is-active.is-bot-avatar,
body:not(.light-mode) .exe-chat-launcher.is-active:has(svg.exe-aura-bot-svg) {
    background-color: #171a20 !important;
    border: 1.5px solid #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.75), 0 0 0 2px rgba(255, 255, 255, 0.3) !important;
}

body.light-mode .exe-chat-launcher.is-active.is-bot-avatar,
body.light-mode .exe-chat-launcher.is-active:has(svg.exe-aura-bot-svg) {
    background-color: #ffffff !important;
    border: 1.5px solid #0a0a0a !important;
    color: #0a0a0a !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(0, 0, 0, 0.2) !important;
}

/* Swapped per user: dark website mode shows light/silver orb; light website mode shows dark orb */
body:not(.light-mode) .exe-bot-img-dark {
    display: none !important;
}
body:not(.light-mode) .exe-bot-img-light {
    display: block !important;
}

body.light-mode .exe-bot-img-dark {
    display: block !important;
}
body.light-mode .exe-bot-img-light {
    display: none !important;
}

/* --- Conversation History Pane (7-Day Local Storage) --- */
.exe-history-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.exe-history-header-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.exe-history-title-wrap {
    display: flex;
    flex-direction: column;
}

.exe-history-title {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.exe-history-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.exe-history-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.exe-history-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    font-family: var(--font-main, sans-serif);
    transition: all 0.2s ease;
}

.exe-history-new-btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2.2;
}

.exe-history-back-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    transition: all 0.2s ease;
}

.exe-history-back-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2;
}

.exe-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
}

.exe-history-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    gap: 10px;
    text-align: left;
    user-select: none;
    box-sizing: border-box;
    border: 1px solid transparent;
}

.exe-history-card:hover {
    transform: translateY(-1px);
}

.exe-history-card.is-current {
    border-width: 1.5px;
}

.exe-history-card-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.exe-history-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exe-history-card-details {
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.exe-history-card-badge {
    font-size: 0.62rem;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.exe-history-card-del {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.exe-history-card-del svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
}

.exe-history-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    gap: 10px;
    font-size: 0.78rem;
    line-height: 1.4;
}

.exe-history-empty svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 1.6;
    opacity: 0.45;
}

.exe-history-footer {
    padding: 10px 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.exe-btn-clear-all-history {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    transition: all 0.2s ease;
    font-family: var(--font-main, sans-serif);
}

.exe-btn-clear-all-history svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.8;
}


/* ==========================================================================
   THEME 1: NIGHT MODE (DEFAULT / DARK PAGE) -> CRISP WHITE & BLACK
   ========================================================================== */

body:not(.light-mode) .exe-chat-launcher {
    background-color: #ffffff;
    border: 1.5px solid #ffffff;
    color: #171a20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 2px 10px rgba(0, 0, 0, 0.4);
}

body:not(.light-mode) .exe-chat-launcher:hover {
    background-color: #f1f5f9;
    border-color: #f1f5f9;
    color: #000000;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.8), 0 4px 14px rgba(255, 255, 255, 0.25);
}

body:not(.light-mode) .exe-chat-launcher.is-active {
    background-color: #171a20;
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.75), 0 0 0 2px rgba(255, 255, 255, 0.3);
}

body:not(.light-mode) .exe-chat-launcher::before {
    border: 1px solid rgba(255, 255, 255, 0.6);
}

body:not(.light-mode) .exe-chat-launcher-status {
    border: 2px solid #ffffff;
}

body:not(.light-mode) .exe-chat-tooltip {
    background-color: #ffffff;
    color: #171a20;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body:not(.light-mode) .exe-chat-tooltip::after {
    border-color: transparent transparent transparent #ffffff;
}

body:not(.light-mode) .exe-chat-tooltip.is-right-side::after {
    border-color: transparent #ffffff transparent transparent;
}

body:not(.light-mode) .exe-chat-window {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Night Mode Top Drag Border (Black) */
body:not(.light-mode) .exe-chat-top-drag-bar {
    background-color: #111111;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

body:not(.light-mode) .exe-chat-drag-pill {
    background-color: rgba(255, 255, 255, 0.45);
}

body:not(.light-mode) .exe-chat-resize-tl {
    color: #111111;
}

body:not(.light-mode) .exe-chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

body:not(.light-mode) .exe-chat-avatar {
    background-color: #171a20;
    color: #ffffff;
    border: 1px solid #171a20;
}

body:not(.light-mode) .exe-chat-title {
    color: #111111;
}

body:not(.light-mode) .exe-chat-badge {
    background: #f1f5f9;
    color: #171a20;
    border: 1px solid #cbd5e1;
}

body:not(.light-mode) .exe-credit-ring-track {
    stroke: rgba(17, 17, 17, 0.16);
}

body:not(.light-mode) .exe-credit-ring-fill {
    stroke: #111111;
}

body:not(.light-mode) .exe-chat-status {
    color: #64748b;
}

body:not(.light-mode) .exe-chat-btn-control {
    color: #64748b;
}

body:not(.light-mode) .exe-chat-btn-control:hover,
body:not(.light-mode) .exe-chat-btn-control.is-active {
    background: #f1f5f9;
    color: #111111;
    border-color: #cbd5e1;
}

body:not(.light-mode) .exe-chat-body {
    background-color: #ffffff;
    scrollbar-color: #cbd5e1 transparent;
}

body:not(.light-mode) .exe-chat-body::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
}

body:not(.light-mode) .exe-chat-msg-avatar {
    background-color: #171a20;
    color: #ffffff;
    border: 1px solid #171a20;
}

body:not(.light-mode) .exe-chat-message-row.is-assistant .exe-chat-bubble {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    border-bottom-left-radius: 4px;
}

body:not(.light-mode) .exe-chat-message-row.is-user .exe-chat-bubble {
    background: #171a20;
    color: #ffffff;
    border: 1px solid #171a20;
    border-bottom-right-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

body:not(.light-mode) .exe-chat-thinking-bubble {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

body:not(.light-mode) .exe-chat-suggestions-label {
    color: #64748b;
}

body:not(.light-mode) .exe-chat-chip {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

body:not(.light-mode) .exe-chat-chip:hover {
    background: #171a20;
    border-color: #171a20;
    color: #ffffff;
}

body:not(.light-mode) .exe-chat-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

body:not(.light-mode) .exe-chat-form {
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

body:not(.light-mode) .exe-chat-form:focus-within {
    border-color: #171a20;
    box-shadow: 0 0 0 2px rgba(23, 26, 32, 0.12);
}

body:not(.light-mode) .exe-chat-input {
    color: #111111;
}

body:not(.light-mode) .exe-chat-input::placeholder {
    color: #94a3b8;
}

body:not(.light-mode) .exe-chat-send-btn {
    background: #171a20;
    color: #ffffff;
}

body:not(.light-mode) .exe-chat-send-btn:hover {
    background: #000000;
}

body:not(.light-mode) .exe-chat-disclaimer {
    color: #94a3b8;
}

/* Night Mode Settings Panel */
body:not(.light-mode) .exe-chat-settings-body {
    background-color: #ffffff;
    color: #111111;
}

body:not(.light-mode) .exe-settings-header-banner {
    border-bottom-color: #e2e8f0;
}

body:not(.light-mode) .exe-settings-title {
    color: #111111;
}

body:not(.light-mode) .exe-settings-back-btn {
    color: #64748b;
}

body:not(.light-mode) .exe-settings-back-btn:hover {
    background: #f1f5f9;
    color: #111111;
}

body:not(.light-mode) .exe-settings-label {
    color: #111111;
}

body:not(.light-mode) .exe-settings-desc {
    color: #64748b;
}

body:not(.light-mode) .exe-settings-select,
body:not(.light-mode) .exe-settings-input {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #111111;
}

body:not(.light-mode) .exe-settings-select:focus,
body:not(.light-mode) .exe-settings-input:focus {
    border-color: #171a20;
    box-shadow: 0 0 0 2px rgba(23, 26, 32, 0.12);
}

body:not(.light-mode) .exe-settings-eye-btn {
    color: #64748b;
}

body:not(.light-mode) .exe-settings-eye-btn:hover {
    color: #111111;
}

body:not(.light-mode) .exe-settings-slider-val {
    color: #171a20;
}

body:not(.light-mode) .exe-settings-slider {
    background: #e2e8f0;
    accent-color: #111111;
}

body:not(.light-mode) .exe-settings-slider::-webkit-slider-runnable-track {
    background: #e2e8f0;
    height: 6px;
    border-radius: 3px;
}

body:not(.light-mode) .exe-settings-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #111111;
    border: 2px solid #ffffff;
    cursor: pointer;
    margin-top: -5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

body:not(.light-mode) .exe-settings-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background-color: #000000;
}

body:not(.light-mode) .exe-settings-slider::-moz-range-track {
    background: #e2e8f0;
    height: 6px;
    border-radius: 3px;
}

body:not(.light-mode) .exe-settings-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #111111;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

body:not(.light-mode) .exe-settings-actions {
    border-top-color: #e2e8f0;
}

body:not(.light-mode) .exe-btn-save-settings {
    background: #171a20;
    color: #ffffff;
}

body:not(.light-mode) .exe-btn-save-settings:hover {
    background: #000000;
}

body:not(.light-mode) .exe-btn-clear-chat {
    color: #dc2626;
    border-color: #fecaca;
}

body:not(.light-mode) .exe-btn-clear-chat:hover {
    background: #fef2f2;
}

body:not(.light-mode) .exe-settings-test-btn {
    background: #171a20;
    color: #ffffff;
    border: 1px solid #171a20;
}

body:not(.light-mode) .exe-settings-test-btn:hover {
    background: #000000;
}

body:not(.light-mode) .exe-settings-model-tag {
    background: #f1f5f9;
    color: #171a20;
    border: 1px solid #cbd5e1;
}

body:not(.light-mode) .exe-settings-tabs {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

body:not(.light-mode) .exe-settings-tab {
    color: #64748b;
}

body:not(.light-mode) .exe-settings-tab:hover {
    color: #111111;
}

body:not(.light-mode) .exe-settings-tab.is-active {
    background: #171a20;
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

body:not(.light-mode) .exe-avatar-preview-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body:not(.light-mode) .exe-avatar-preview-badge {
    color: #64748b;
}

body:not(.light-mode) .exe-avatar-preview-status {
    color: #171a20;
}

body:not(.light-mode) .exe-avatar-preview-circle {
    background-color: #171a20;
    color: #ffffff;
    border: 1px solid #171a20;
}

body:not(.light-mode) .exe-avatar-preview-bubble-mock {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

body:not(.light-mode) .exe-avatar-preview-sender {
    color: #64748b;
}

body:not(.light-mode) .exe-avatar-preview-snippet {
    color: #1e293b;
}

body:not(.light-mode) .exe-avatar-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #111111;
}

body:not(.light-mode) .exe-avatar-card:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

body:not(.light-mode) .exe-avatar-card.is-active {
    background: #ffffff;
    border: 2px solid #171a20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body:not(.light-mode) .exe-settings-textarea {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #111111;
}

body:not(.light-mode) .exe-settings-textarea:focus {
    border-color: #171a20;
    box-shadow: 0 0 0 2px rgba(23, 26, 32, 0.12);
}

body:not(.light-mode) .exe-history-container {
    background-color: #ffffff;
    color: #111111;
}

body:not(.light-mode) .exe-history-header-banner {
    border-bottom-color: #e2e8f0;
}

body:not(.light-mode) .exe-history-title {
    color: #111111;
}

body:not(.light-mode) .exe-history-subtitle {
    color: #64748b;
}

body:not(.light-mode) .exe-history-new-btn {
    background: #171a20;
    color: #ffffff;
    border: 1px solid #171a20;
}

body:not(.light-mode) .exe-history-new-btn:hover {
    background: #000000;
}

body:not(.light-mode) .exe-history-back-btn {
    color: #64748b;
}

body:not(.light-mode) .exe-history-back-btn:hover {
    background: #f1f5f9;
    color: #111111;
}

body:not(.light-mode) .exe-history-card {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #111111;
}

body:not(.light-mode) .exe-history-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

body:not(.light-mode) .exe-history-card.is-current {
    border-color: #171a20;
    background: #f1f5f9;
}

body:not(.light-mode) .exe-history-card-details {
    color: #64748b;
}

body:not(.light-mode) .exe-history-card-badge {
    background: #e2e8f0;
    color: #171a20;
}

body:not(.light-mode) .exe-history-card-del {
    color: #94a3b8;
}

body:not(.light-mode) .exe-history-card-del:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

body:not(.light-mode) .exe-history-empty {
    color: #64748b;
}

body:not(.light-mode) .exe-history-footer {
    border-top-color: #e2e8f0;
}

body:not(.light-mode) .exe-btn-clear-all-history {
    border: 1px solid #e2e8f0;
    color: #64748b;
}

body:not(.light-mode) .exe-btn-clear-all-history:hover {
    border-color: #fecaca;
    color: #dc2626;
    background: #fef2f2;
}


/* ==========================================================================
   THEME 2: DAY MODE (body.light-mode / LIGHT PAGE) -> SLEEK BLACK & WHITE
   ========================================================================== */

body.light-mode .exe-chat-launcher {
    background-color: #0a0a0a;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.light-mode .exe-chat-launcher:hover {
    background-color: #171a20;
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

body.light-mode .exe-chat-launcher.is-active {
    background-color: #ffffff;
    border-color: #0a0a0a;
    color: #0a0a0a;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(0, 0, 0, 0.2);
}

body.light-mode .exe-chat-launcher::before {
    border: 1px solid rgba(0, 0, 0, 0.35);
}

body.light-mode .exe-chat-launcher-status {
    border: 2px solid #0a0a0a;
}

body.light-mode .exe-chat-tooltip {
    background-color: #0a0a0a;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-mode .exe-chat-tooltip::after {
    border-color: transparent transparent transparent #0a0a0a;
}

body.light-mode .exe-chat-tooltip.is-right-side::after {
    border-color: transparent #0a0a0a transparent transparent;
}

body.light-mode .exe-chat-window {
    background-color: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Day Mode Top Drag Border (White) */
body.light-mode .exe-chat-top-drag-bar {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

body.light-mode .exe-chat-drag-pill {
    background-color: rgba(0, 0, 0, 0.4);
}

body.light-mode .exe-chat-resize-tl {
    color: #ffffff;
}

body.light-mode .exe-chat-header {
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.light-mode .exe-chat-avatar {
    background-color: #ffffff;
    color: #0a0a0a;
    border: 1px solid #ffffff;
}

body.light-mode .exe-chat-title {
    color: #ffffff;
}

body.light-mode .exe-chat-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

body.light-mode .exe-credit-ring-track {
    stroke: rgba(255, 255, 255, 0.22);
}

body.light-mode .exe-credit-ring-fill {
    stroke: #ffffff;
}

body.light-mode .exe-chat-status {
    color: #e2e8f0;
}

body.light-mode .exe-chat-btn-control {
    color: #f1f5f9;
}

body.light-mode .exe-chat-btn-control:hover,
body.light-mode .exe-chat-btn-control.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

body.light-mode .exe-chat-body {
    background-color: #0a0a0a;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

body.light-mode .exe-chat-body::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
}

body.light-mode .exe-chat-msg-avatar {
    background-color: #ffffff;
    color: #0a0a0a;
    border: 1px solid #ffffff;
}

body.light-mode .exe-chat-message-row.is-assistant .exe-chat-bubble {
    background: #18191f;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-bottom-left-radius: 4px;
}

body.light-mode .exe-chat-message-row.is-user .exe-chat-bubble {
    background: #ffffff;
    color: #171a20;
    border: 1px solid #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

body.light-mode .exe-chat-thinking-bubble {
    background: #18191f;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f1f5f9;
}

body.light-mode .exe-chat-suggestions-label {
    color: #e2e8f0;
}

body.light-mode .exe-chat-chip {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

body.light-mode .exe-chat-chip:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #171a20;
}

body.light-mode .exe-chat-footer {
    background: #111215;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

body.light-mode .exe-chat-form {
    background: #1a1b1f;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

body.light-mode .exe-chat-form:focus-within {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

body.light-mode .exe-chat-input {
    color: #ffffff;
}

body.light-mode .exe-chat-input::placeholder {
    color: #cbd5e1;
}

body.light-mode .exe-chat-send-btn {
    background: #ffffff;
    color: #0a0a0a;
}

body.light-mode .exe-chat-send-btn:hover {
    background: #f1f5f9;
}

body.light-mode .exe-chat-disclaimer {
    color: #cbd5e1;
}

/* Day Mode Settings Panel */
body.light-mode .exe-chat-settings-body {
    background-color: #0a0a0a;
    color: #ffffff;
}

body.light-mode .exe-settings-header-banner {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

body.light-mode .exe-settings-title {
    color: #ffffff;
}

body.light-mode .exe-settings-back-btn {
    color: #f1f5f9;
}

body.light-mode .exe-settings-back-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

body.light-mode .exe-settings-label {
    color: #ffffff;
}

body.light-mode .exe-settings-desc {
    color: #e2e8f0;
}

body.light-mode .exe-settings-select,
body.light-mode .exe-settings-input {
    background: #18191d;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

body.light-mode .exe-settings-select:focus,
body.light-mode .exe-settings-input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

body.light-mode .exe-settings-eye-btn {
    color: #f1f5f9;
}

body.light-mode .exe-settings-eye-btn:hover {
    color: #ffffff;
}

body.light-mode .exe-settings-slider-val {
    color: #ffffff;
}

body.light-mode .exe-settings-slider {
    background: #27272a;
    accent-color: #ffffff;
}

body.light-mode .exe-settings-slider::-webkit-slider-runnable-track {
    background: #27272a;
    height: 6px;
    border-radius: 3px;
}

body.light-mode .exe-settings-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #000000;
    cursor: pointer;
    margin-top: -5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

body.light-mode .exe-settings-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background-color: #f4f4f5;
}

body.light-mode .exe-settings-slider::-moz-range-track {
    background: #27272a;
    height: 6px;
    border-radius: 3px;
}

body.light-mode .exe-settings-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #000000;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

body.light-mode .exe-settings-actions {
    border-top-color: rgba(255, 255, 255, 0.12);
}

body.light-mode .exe-btn-save-settings {
    background: #ffffff;
    color: #0a0a0a;
}

body.light-mode .exe-btn-save-settings:hover {
    background: #f1f5f9;
}

body.light-mode .exe-btn-clear-chat {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.35);
}

body.light-mode .exe-btn-clear-chat:hover {
    background: rgba(248, 113, 113, 0.1);
}

body.light-mode .exe-settings-test-btn {
    background: #ffffff;
    color: #0a0a0a;
    border: 1px solid #ffffff;
}

body.light-mode .exe-settings-test-btn:hover {
    background: #f1f5f9;
}

body.light-mode .exe-settings-model-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

body.light-mode .exe-settings-tabs {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

body.light-mode .exe-settings-tab {
    color: #94a3b8;
}

body.light-mode .exe-settings-tab:hover {
    color: #ffffff;
}

body.light-mode .exe-settings-tab.is-active {
    background: #ffffff;
    color: #0a0a0a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

body.light-mode .exe-avatar-preview-box {
    background: #14161b;
    border-color: rgba(255, 255, 255, 0.14);
}

body.light-mode .exe-avatar-preview-badge {
    color: #94a3b8;
}

body.light-mode .exe-avatar-preview-status {
    color: #ffffff;
}

body.light-mode .exe-avatar-preview-circle {
    background-color: #ffffff;
    color: #0a0a0a;
    border: 1px solid #ffffff;
}

body.light-mode .exe-avatar-preview-bubble-mock {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

body.light-mode .exe-avatar-preview-sender {
    color: #cbd5e1;
}

body.light-mode .exe-avatar-preview-snippet {
    color: #ffffff;
}

body.light-mode .exe-avatar-card {
    background: #18191d;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

body.light-mode .exe-avatar-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: #202228;
}

body.light-mode .exe-avatar-card.is-active {
    background: #202228;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.light-mode .exe-settings-textarea {
    background: #18191d;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

body.light-mode .exe-settings-textarea:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

body.light-mode .exe-history-container {
    background-color: #0a0a0a;
    color: #ffffff;
}

body.light-mode .exe-history-header-banner {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

body.light-mode .exe-history-title {
    color: #ffffff;
}

body.light-mode .exe-history-subtitle {
    color: #cbd5e1;
}

body.light-mode .exe-history-new-btn {
    background: #ffffff;
    color: #0a0a0a;
    border: 1px solid #ffffff;
}

body.light-mode .exe-history-new-btn:hover {
    background: #f1f5f9;
}

body.light-mode .exe-history-back-btn {
    color: #cbd5e1;
}

body.light-mode .exe-history-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

body.light-mode .exe-history-card {
    background: #18191d;
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

body.light-mode .exe-history-card:hover {
    background: #23252b;
    border-color: rgba(255, 255, 255, 0.35);
}

body.light-mode .exe-history-card.is-current {
    border-color: #ffffff;
    background: #23252b;
}

body.light-mode .exe-history-card-details {
    color: #cbd5e1;
}

body.light-mode .exe-history-card-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

body.light-mode .exe-history-card-del {
    color: #94a3b8;
}

body.light-mode .exe-history-card-del:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

body.light-mode .exe-history-empty {
    color: #cbd5e1;
}

body.light-mode .exe-history-footer {
    border-top-color: rgba(255, 255, 255, 0.12);
}

body.light-mode .exe-btn-clear-all-history {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
}

body.light-mode .exe-btn-clear-all-history:hover {
    border-color: #f87171;
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}


/* ==========================================================================
   MOBILE & VIEWPORT LIMITS
   ========================================================================== */

@media (max-width: 480px) {
    .exe-chat-launcher {
        width: 64px;
        height: 64px;
    }

    

    .exe-chat-window {
        max-width: calc(100vw - 16px);
        min-width: 290px;
        height: 75vh;
        max-height: 540px;
        border-radius: 16px;
    }

    .exe-chat-tooltip:not(.is-greeting-visible) {
        display: none !important;
    }
}

/* ==========================================================================
   SPOT TRACKER HIGHLIGHT ANIMATION
   ========================================================================== */
.tool-card-spot.exe-highlight-pulse,
#spot-gold-grid.exe-highlight-pulse {
    outline: 2px solid #dcb360 !important;
    box-shadow: 0 0 35px rgba(220, 179, 96, 0.55) !important;
    transform: scale(1.01);
    transition: all 0.4s ease;
}
