/* ================================================================
   AI CHAT WIDGET — ai-chat.css
   Uses themes.css variables directly (dark/light auto)
   ================================================================ */


/* ----------------------------------------------------------------
   FAB — Floating Action Button
   ---------------------------------------------------------------- */
#vnx-ac-bubble {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(var(--primary-blue-rgb), 0.4);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow var(--transition-fast);
    user-select: none;
    font-family: var(--font-primary);
}
#vnx-ac-bubble:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 24px rgba(var(--primary-blue-rgb), 0.55);
}
#vnx-ac-bubble.vnx-ac-active {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.7);
}


/* ----------------------------------------------------------------
   Panel — expands down to fill bubble space when open
   ---------------------------------------------------------------- */
#vnx-ac-panel {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 9999;
    width: 390px;
    height: min(640px, calc(100vh - 48px));
    display: none;
    flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
}
#vnx-ac-panel.vnx-ac-open {
    display: flex;
}


/* ----------------------------------------------------------------
   Header
   ---------------------------------------------------------------- */
#vnx-ac-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-3);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}
.vnx-ac-h-left {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}
.vnx-ac-dot {
    width: var(--space-2);
    height: var(--space-2);
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: 0 0 6px rgba(var(--green-rgb), 0.6);
    flex-shrink: 0;
}
/* Header AI icon — replaces the green status dot, uses the spark sprite */
.vnx-ac-h-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-blue);
    flex-shrink: 0;
}
.vnx-ac-title {
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.vnx-ac-h-right {
    display: flex;
    align-items: center;
}
.vnx-ac-h-right button,
.vnx-ac-h-right a {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.vnx-ac-h-right button:hover,
.vnx-ac-h-right a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ----------------------------------------------------------------
   History Popover — floating tooltip-style dropdown (Claude-like)
   ---------------------------------------------------------------- */
#vnx-ac-history-panel {
    position: absolute;
    top: 52px;                 /* just below header */
    inset-inline-end: var(--space-3);   /* anchored to right side near history button */
    z-index: 30;
    width: 320px;
    max-height: 420px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.18), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: vnx-ac-history-pop 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: top right;
}
#vnx-ac-history-panel[hidden] { display: none; }

@keyframes vnx-ac-history-pop {
    from { opacity: 0; transform: scale(0.96) translateY(-4px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Search bar at top of popover — flex layout (icon + input as siblings) */
.vnx-ac-history-search-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
.vnx-ac-history-search-wrap:focus-within {
    border-color: var(--primary-blue);
    background: var(--bg-primary);
}
.vnx-ac-history-search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    pointer-events: none;
}
#vnx-ac-history-search {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    padding: 0;
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
}
#vnx-ac-history-search::placeholder {
    color: var(--text-muted);
}

#vnx-ac-history-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-2);
    scrollbar-width: thin;
}
#vnx-ac-history-list::-webkit-scrollbar { width: 6px; }
#vnx-ac-history-list::-webkit-scrollbar-track { background: transparent; }
#vnx-ac-history-list::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 999px; }

/* Section labels (Pinned / Chats) */
.vnx-ac-history-section-label {
    font-size: 10px;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: var(--space-2) var(--space-3) var(--space-1);
}

/* Loading spinner */
.vnx-ac-history-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) var(--space-4);
}
.vnx-ac-history-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-light);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: vnx-ac-history-spin 0.7s linear infinite;
}
@keyframes vnx-ac-history-spin {
    to { transform: rotate(360deg); }
}

/* Chat session item — clickable button (loads chat inside widget) */
.vnx-ac-history-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-2) var(--space-3);
    margin: 1px 0;
    font-size: var(--text-sm);
    color: var(--text-primary);
    text-decoration: none;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    overflow: hidden;
    cursor: pointer;
    text-align: start;
    font-family: inherit;
}
.vnx-ac-history-item:hover {
    background: var(--bg-secondary);
}
.vnx-ac-history-item-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}
.vnx-ac-history-pin {
    flex-shrink: 0;
    color: var(--primary-blue);
    opacity: 0.7;
}

/* Empty / login states */
.vnx-ac-history-empty {
    padding: var(--space-7) var(--space-4) var(--space-6);
    text-align: center;
}
.vnx-ac-history-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-3);
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.vnx-ac-history-empty p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0 0 var(--space-4);
    line-height: var(--leading-normal);
}
.vnx-ac-history-login-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-5);
    background: var(--primary-blue);
    color: var(--text-white);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    transition: background var(--transition-fast);
}
.vnx-ac-history-login-btn:hover {
    background: var(--primary-blue-dark);
    color: var(--text-white);
}

[data-theme="dark"] #vnx-ac-history-panel {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .vnx-ac-history-head {
    border-color: var(--border-dark);
}
[data-theme="dark"] .vnx-ac-history-item:hover {
    background: var(--bg-dark);
}
[data-theme="dark"] .vnx-ac-history-empty-icon {
    background: var(--bg-dark);
}
[data-theme="dark"] #vnx-ac-history-list::-webkit-scrollbar-thumb {
    background: var(--border-dark);
}




/* ----------------------------------------------------------------
   Messages area
   ---------------------------------------------------------------- */
#vnx-ac-msgs {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    background: var(--bg-primary);
}


/* ----------------------------------------------------------------
   Welcome screen
   ---------------------------------------------------------------- */
/* Hide welcome while history is loading — skeleton bubbles show instead */
#vnx-ac-panel.vnx-ac-loading-history #vnx-ac-welcome {
    display: none;
}
/* Skeleton message bubbles (shown while history loads) */
#vnx-ac-skeleton {
    display: none;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-4);
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}
#vnx-ac-panel.vnx-ac-loading-history #vnx-ac-skeleton { display: flex; }
.vnx-ac-skel-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.vnx-ac-skel-row.right { align-items: flex-end; }
.vnx-ac-skel-row.left  { align-items: flex-start; }
/* User bubble skeleton — rounded pill, matches actual user message */
.vnx-ac-skel-row.right .vnx-ac-skel-line {
    height: 36px;
    border-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-sm);
    max-width: 60%;
}
/* AI message skeleton — plain text lines */
.vnx-ac-skel-row.left .vnx-ac-skel-line {
    height: 18px;
    border-radius: var(--radius-sm);
    max-width: 90%;
}
#vnx-ac-welcome {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-10) var(--space-2) var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}
.vnx-ac-w-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
#vnx-ac-welcome p {
    max-width: 250px;
    font-weight: var(--font-semibold);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}
/* Beta badge — inline with header title */
.vnx-ac-beta {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-blue);
    background: rgba(var(--primary-blue-rgb), 0.08);
    border: 1px solid rgba(var(--primary-blue-rgb), 0.2);
    padding: 1px 6px;
    border-radius: 8px;
    vertical-align: middle;
    margin-left: 2px;
}
/* Suggestion buttons — replaced by category chips (hidden) */
.vnx-ac-sugs {
    display: none;
}
.vnx-ac-sugs-old {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    width: 100%;
}

/* ====================================================================
   CATEGORY CHIPS (Claude-style) — used by both widget + full-page
   ==================================================================== */
#vnx-ac-cats {
    display: flex;
    gap: var(--gap-sm);
    justify-content: center;
    flex-wrap: wrap;
    max-width: 780px;
    margin: 0 auto;
    padding: var(--space-2) var(--space-3) 0;
    position: relative;
}
.vnx-ac-cat {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.vnx-ac-cat:hover,
.vnx-ac-cat.active {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: var(--bg-tertiary);
}
.vnx-ac-cat svg { opacity: 0.8; }

/* Expanded prompts list — floats absolute below cats */
#vnx-ac-cat-list {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    padding: var(--space-2) var(--space-3) var(--space-10);
    z-index: 20;
    background: var(--bg-primary);
}
/* Hide tips when the prompt list is open (widget) */
#vnx-ac-welcome:has(#vnx-ac-cat-list:not([hidden])) .vnx-ac-tips {
    display: none;
}
.vnx-ac-cat-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}
.vnx-ac-cat-list-title { font-weight: 500; }
.vnx-ac-cat-close {
    background: none;
    border: none;
    padding: var(--space-1);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    transition: color var(--transition-fast), background var(--transition-fast);
}
.vnx-ac-cat-close:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}
.vnx-ac-cat-list-items {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.vnx-ac-cat-list-head {
    background: var(--bg-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-bottom: -1px;
}
.vnx-ac-cat-prompt {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: var(--text-sm);
    text-align: start;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.vnx-ac-cat-prompt:last-child { border-bottom: none; }
.vnx-ac-cat-prompt:hover { background: var(--bg-tertiary); }

.vnx-ac-sug {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 10px 14px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
    text-align: -webkit-auto;
    line-height: 1.4;
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.vnx-ac-sug:hover {
    border-color: var(--primary-blue);
    color: var(--text-primary);
    background: rgba(var(--primary-blue-rgb), 0.03);
}
/* Feature tips below suggestions */
.vnx-ac-tips {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-light);
    text-align: -webkit-auto;
}
.vnx-ac-tip {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.5;
    padding: 2px 0;
}
.vnx-ac-tip::before {
    content: '•';
    color: var(--primary-blue);
    margin-right: 6px;
    font-weight: 700;
}


/* ----------------------------------------------------------------
   Message bubbles
   ---------------------------------------------------------------- */
.vnx-ac-msg {
    display: flex;
    flex-direction: column;
}
.vnx-ac-msg-user {
    align-items: flex-end;
    direction: ltr;
}
.vnx-ac-msg-ai {
    align-items: flex-start;
}

/* User bubble — clean gray pill like reference */
.vnx-ac-msg-user .vnx-ac-bubble {
    max-width: 78%;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    word-break: break-word;
    white-space: pre-wrap;
}

/* AI response — plain text, no background */
.vnx-ac-msg-ai .vnx-ac-bubble {
    max-width: 100%;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    word-break: break-word;
}

/* Message timestamp — small muted label at bottom of bubble */
.vnx-ac-msg-time {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
    font-variant-numeric: tabular-nums;
    opacity: .8;
}
.vnx-ac-msg-user .vnx-ac-msg-time {
    text-align: end;
}
/* Footer row — groups timestamp + Signal/Think tags in a muted line */
.vnx-ac-msg-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-muted);
}
.vnx-ac-msg-user .vnx-ac-msg-footer {
    justify-content: flex-end;
}
.vnx-ac-msg-footer .vnx-ac-msg-time {
    display: inline;
    margin: 0;
    opacity: 1;
    font-variant-numeric: tabular-nums;
    margin-top: var(--space-1);
}
.vnx-ac-footer-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: var(--font-medium);
    letter-spacing: 0.2px;
    margin-top: var(--space-1);
}
/* Separator (–) sirf tab dikhe jab tag se pehle koi visible sibling ho.
   Adjacent sibling selectors use karte hain taki DOM order follow ho:
   [time] – [Signal] – [Think]
   Jab hide-time mode on hai, time–Signal waala separator hat jata hai. */
.vnx-ac-footer-tag::before {
    content: "";
    margin-inline-end: 0;
    opacity: .6;
}
.vnx-ac-msg-time + .vnx-ac-footer-tag::before,
.vnx-ac-footer-tag + .vnx-ac-footer-tag::before {
    content: "–";
    margin-inline-end: var(--space-1);
}
/* Time hide mode — time–first-tag waala separator bhi hide */
.vnx-ac-hide-time .vnx-ac-msg-time + .vnx-ac-footer-tag::before {
    display: none;
}
.vnx-ac-footer-signal { color: var(--color-green); }
.vnx-ac-footer-signal .vnx-ac-sig-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-green);
    display: inline-block;
}
.vnx-ac-footer-think { color: var(--primary-blue); }
.vnx-ac-footer-think svg { flex-shrink: 0; }

/* Model-switch divider — horizontal line with model name in the middle */
.vnx-ac-model-switch {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-4) 0 var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: var(--font-medium);
}
.vnx-ac-model-switch .vnx-ac-ms-line {
    flex: 1;
    height: 1px;
    background: var(--border-light);
}
.vnx-ac-model-switch .vnx-ac-ms-text {
    padding: 2px var(--space-2);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    white-space: nowrap;
    letter-spacing: 0.2px;
}
/* Pending divider — user changed model but hasn't sent yet */
.vnx-ac-model-switch.vnx-ac-ms-pending {
    opacity: .65;
}
.vnx-ac-model-switch.vnx-ac-ms-pending .vnx-ac-ms-text {
    border-style: dashed;
}

/* Hide all timestamps when user disables the setting */
.vnx-ac-hide-time .vnx-ac-msg-time {
    display: none;
}

/* Markdown inside AI bubble */
.vnx-ac-msg-ai .vnx-ac-bubble p {
    margin: 0 0 var(--space-2);
    color: var(--text-primary);
}
.vnx-ac-msg-ai .vnx-ac-bubble p:last-child {
    margin-bottom: 0;
}
.vnx-ac-msg-ai .vnx-ac-bubble strong {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}
.vnx-ac-msg-ai .vnx-ac-bubble em {
    font-style: italic;
    color: var(--text-secondary);
}
.vnx-ac-msg-ai .vnx-ac-bubble ul {
    margin: var(--space-1) 0 var(--space-2) var(--space-4);
    padding: 0;
    list-style: disc;
}
.vnx-ac-msg-ai .vnx-ac-bubble ul ul {
    margin-top: var(--space-1);
    list-style: circle;
}
.vnx-ac-msg-ai .vnx-ac-bubble li {
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}
.vnx-ac-msg-ai .vnx-ac-bubble hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: var(--space-3) 0;
}
.vnx-ac-msg-ai .vnx-ac-bubble .vnx-md-h {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: var(--space-7) 0 var(--space-3);
    display: block;
    line-height: var(--leading-tight);
}
.vnx-ac-msg-ai .vnx-ac-bubble .vnx-md-h:first-child { margin-top: 0; }
.vnx-ac-msg-ai .vnx-ac-bubble .vnx-md-h1 { font-size: var(--text-2xl); }
.vnx-ac-msg-ai .vnx-ac-bubble .vnx-md-h2 { font-size: var(--text-2xl); }
.vnx-ac-msg-ai .vnx-ac-bubble .vnx-md-h3 { font-size: var(--text-xl); }
.vnx-ac-msg-ai .vnx-ac-bubble .vnx-md-h4 { font-size: var(--text-lg); font-weight: var(--font-semibold); }
/* Markdown table */
.vnx-md-table-wrap {
    overflow-x: auto;
    margin: var(--space-2) 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 128, 128, 0.6) transparent;
}

.vnx-md-table-wrap::-webkit-scrollbar { height: 2px; }
.vnx-md-table-wrap::-webkit-scrollbar-track { background: transparent; }
.vnx-md-table-wrap::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 999px; }
.vnx-md-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}
.vnx-md-table th,
.vnx-md-table td {
    padding: var(--space-1) var(--space-3);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.vnx-md-table th {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    background: var(--bg-tertiary);
}
.vnx-md-table td {
    color: var(--text-secondary);
}
.vnx-md-table tbody tr:last-child td {
    border-bottom: none;
}
.vnx-md-table tbody tr:hover td {
    background: var(--bg-secondary);
}

/* Fenced code blocks (```lang ... ```) */
.vnx-md-code-wrap {
    position: relative;
    margin: var(--space-3) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
}
.vnx-md-code-lang {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px var(--space-2);
    border-radius: 0 var(--radius-lg) 0 var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.6;
    pointer-events: none;
    user-select: none;
}
.vnx-md-code {
    margin: 0;
    padding: var(--space-3) var(--space-4);
    overflow-x: auto;
    background: transparent;
    font-family: var(--font-mono, 'SF Mono', Consolas, Monaco, monospace);
    font-size: var(--text-xs);
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre;
    word-wrap: normal;
    word-break: normal;
    tab-size: 2;
}
.vnx-md-code code {
    background: none !important;
    padding: 0 !important;
    border: 0 !important;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    white-space: pre;
}
.vnx-md-code::-webkit-scrollbar { height: 6px; }
.vnx-md-code::-webkit-scrollbar-track { background: transparent; }
.vnx-md-code::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 999px; }

/* Numbered list */
.vnx-ac-msg-ai .vnx-ac-bubble .vnx-md-ol {
    padding-left: var(--space-5);
    margin: var(--space-1) 0;
}
.vnx-ac-msg-ai .vnx-ac-bubble .vnx-md-ol li {
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
    margin-bottom: 2px;
}
/* TLDR box */
.vnx-md-tldr {
    background: rgba(var(--primary-blue-rgb), 0.08);
    padding: var(--space-3);
    margin: 0 0 var(--space-3);
    border-radius: var(--radius-md);
    line-height: var(--leading-normal);
}
.vnx-md-tldr-label {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--primary-blue);
    margin-bottom: var(--space-1);
}
.vnx-md-tldr-body {
    font-size: var(--text-base);
    color: var(--text-primary);
}
/* Blockquote */
.vnx-ac-msg-ai .vnx-ac-bubble .vnx-md-bq {
    border-left: 3px solid var(--border-light);
    padding: var(--space-1) var(--space-3);
    margin: var(--space-2) 0;
    color: var(--text-muted);
    font-style: italic;
    font-size: var(--text-sm);
}

.vnx-ac-msg-ai .vnx-ac-bubble code {
    background: var(--bg-tertiary);
    padding: var(--space-0) var(--space-1);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    border: 1px solid var(--border-light);
}
/* Strikethrough */
.vnx-ac-msg-ai .vnx-ac-bubble del {
    color: var(--text-muted);
    text-decoration: line-through;
}
/* Markdown links */
.vnx-ac-msg-ai .vnx-ac-bubble a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.vnx-ac-msg-ai .vnx-ac-bubble a:hover {
    text-decoration: none;
}


/* ----------------------------------------------------------------
   Typing indicator — spark icon pulse
   ---------------------------------------------------------------- */
#vnx-ac-typing {
    padding: 0 var(--space-3) var(--space-2);
    flex-shrink: 0;
}
.vnx-ac-typing-icon {
    width: 35px;
    height: 35px;
    color: var(--primary-blue);
    animation: vnx-typing-pulse 1.5s ease-in-out infinite;
}
@keyframes vnx-typing-pulse {
    0%, 100% { transform: scale(0.85) rotate(0deg); opacity: 0.4; }
    50%      { transform: scale(1.1) rotate(15deg); opacity: 1; }
}


/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
#vnx-ac-footer {
    flex-shrink: 0;
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}


/* ----------------------------------------------------------------
   Input area — no border box, shadow only, toolbar inside
   ---------------------------------------------------------------- */

#vnx-ac-input-row {
    padding: var(--space-2) var(--space-3) var(--space-3);
}

/* Input card — subtle border, no heavy styling */
.vnx-ac-input-wrap {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    overflow: visible;
    position: relative;
}
.vnx-ac-input-count {
    font-size: var(--text-xs);
    color: var(--text-muted);
    padding: 0 var(--space-2);
    align-self: center;
    opacity: 0;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}
.vnx-ac-input-wrap:focus-within .vnx-ac-input-count { opacity: 1; }
.vnx-ac-input-count.near-max { color: var(--color-red, #ef4444); opacity: 1; font-weight: 600; }

/* Textarea */
#vnx-ac-input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-3) var(--space-1);
    resize: none;
    outline: none;
    font-family: var(--font-primary);
    min-height: 58px;
    max-height: 110px;
    line-height: var(--leading-normal);
    overscroll-behavior: contain;
    width: 100%;
}
.vnx-ac-input-wrap:focus-within{
    border-color: var(--border-dark);
}
#vnx-ac-input::-webkit-scrollbar {
    display: none;
}
#vnx-ac-input::placeholder {
    color: var(--text-muted);
}

/* Bottom bar: [Add] ··· [period][signal] ··· [model ∨][send] */
.vnx-ac-input-bar {
    display: flex;
    align-items: center;
    padding: var(--space-1) var(--space-2) var(--space-2) var(--space-2);
    gap: 0;
}

/* Center group: period + signal */
.vnx-ac-bar-center,
#vnx-ac-model-row {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

/* Spacers */
#vnx-ac-row-spacer,
.vnx-ac-bar-spacer2 {
    flex: 1;
}

/* Right group: model + send */
.vnx-ac-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

/* Shared base for all bar buttons + select triggers */
.vnx-ac-bar-btn,
#vnx-ac-period .select-trigger,
#vnx-ac-model .select-trigger {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    height: var(--space-8);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.vnx-ac-bar-btn{
    padding: 0 var(--space-3);
}
.vnx-ac-bar-btn:hover:not(:disabled),
#vnx-ac-period .select-trigger:hover,
#vnx-ac-period.open .select-trigger,
#vnx-ac-model .select-trigger:hover,
#vnx-ac-model.open .select-trigger {
    background: var(--bg-tertiary);
}

/* Signal — active state only */
#vnx-ac-signal.active          { color: var(--color-green); }
.vnx-ac-sig-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--text-muted);
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
#vnx-ac-signal.active .vnx-ac-sig-dot {
    background: var(--color-green);
    box-shadow: 0 0 5px rgba(var(--green-rgb), 0.65);
}

/* Add Symbol — icon size + disabled state */
#vnx-ac-add-sym svg   { width: 16px; height: 16px; stroke: currentColor; flex-shrink: 0; }
#vnx-ac-add-sym:disabled { opacity: 0.3; cursor: not-allowed; }

/* Period select */
#vnx-ac-period              { flex-shrink: 0; }
#vnx-ac-period .select-arrow { display: none; }
#vnx-ac-period .select-option { padding: var(--space-2) var(--space-3) !important; }

/* Thinking toggle — inside model dropdown */
.vnx-ac-think-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--space-3);
    border-top: 1px solid var(--border-light);
    margin-top: 4px;
    cursor: default;
    border-radius: 0 0 var(--radius-lg, 8px) var(--radius-lg, 8px);
}
.vnx-ac-think-row.vnx-ac-think-disabled {
    opacity: 0.5;
}
.vnx-ac-think-row.vnx-ac-think-disabled .vnx-ac-think-desc{
    color: var(--text-secondary);
}
.vnx-ac-think-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.vnx-ac-think-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    line-height: var(--leading-tight);
}
.vnx-ac-think-desc {
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: var(--leading-tight);
}
/* Toggle switch */
.vnx-ac-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}
.vnx-ac-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.vnx-ac-switch-slider {
    position: absolute;
    inset: 0;
    background: var(--border-medium);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.vnx-ac-switch-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.vnx-ac-switch input:checked + .vnx-ac-switch-slider {
    background: var(--primary-blue);
}
.vnx-ac-switch input:checked + .vnx-ac-switch-slider::before {
    transform: translateX(16px);
}
.vnx-ac-switch input:disabled + .vnx-ac-switch-slider {
    cursor: not-allowed;
}

/* Thinking — live streaming block */
.vnx-ac-think-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}
.vnx-ac-think-header .vnx-ac-typing-icon {
    width: 25px;
    height: 25px;
    margin-bottom: var(--space-1);
}
.vnx-ac-think-body {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    line-height: 1.5;
    max-height: 120px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
.vnx-ac-thinking-dots {
    display: inline-flex;
    gap: 3px;
}
.vnx-ac-thinking-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-blue);
    animation: vnx-think-bounce 1.2s infinite ease-in-out;
}
.vnx-ac-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.vnx-ac-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes vnx-think-bounce {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1.1); }
}

/* Thinking — collapsed details (after thinking done) */
.vnx-ac-think-details {
    margin-bottom: var(--space-2);
}
.vnx-ac-think-details summary {
    cursor: pointer;
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    padding: 4px 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
/* Spark icon replaces default triangle */
.vnx-ac-think-done-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
    opacity: 0.6;
    flex-shrink: 0;
    transition: transform 0.2s, opacity 0.2s;
}
.vnx-ac-think-details[open] .vnx-ac-think-done-icon {
    transform: rotate(20deg);
    opacity: 1;
}
.vnx-ac-think-details summary::-webkit-details-marker { display: none; }
.vnx-ac-think-content,
.vnx-ac-think-block {
    border-left: 2px solid var(--border-light);
    padding: var(--space-1) var(--space-3);
    margin-top: var(--space-1);
    margin-bottom: var(--space-1);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
    word-break: break-word;
}
.vnx-ac-answer { margin-top: 0; }

/* Model select */
#vnx-ac-model                    { flex-shrink: 0; }
#vnx-ac-model .select-trigger-text { font-size: var(--text-base); }
#vnx-ac-model .select-arrow      { width: 18px; height: 18px; flex-shrink: 0; }
#vnx-ac-model .select-option     { padding: var(--space-2) var(--space-3) !important; }
#vnx-ac-model .select-option {
    padding: var(--space-2) var(--space-3) !important;
}
/* Group label inside model dropdown */
.vnx-ac-model-label {
    padding: 8px var(--space-3) 2px;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: var(--font-medium);
    color: var(--text-muted);
    letter-spacing: 0.3px;
    border-top: 1px solid var(--border-light);
    margin-top: 4px;
    cursor: default;
    pointer-events: none;
}
.vnx-ac-model-label:first-child {
    border-top: none;
    margin-top: 0;
}
.vnx-ac-model-opt {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-2);
}
.vnx-ac-opt-icon {
    display: flex;
    align-items: center;
    padding-top: 1px;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.vnx-ac-opt-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vnx-ac-trig-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 3px;
    vertical-align: middle;
    color: var(--text-secondary);
}
.vnx-ac-opt-name {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    line-height: var(--leading-tight);
}
.vnx-ac-opt-desc {
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: var(--leading-tight);
    font-weight: var(--font-normal);
}

/* Send button — dark filled circle */
#vnx-ac-send {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--text-primary);
    border: none;
    color: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}
#vnx-ac-send:hover:not(:disabled) {
    opacity: 0.8;
}
#vnx-ac-send:active {
    transform: scale(0.9);
}
#vnx-ac-send:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}
/* Stop state — red bg */
#vnx-ac-send.vnx-ac-stop {
    background: var(--border-light);
    color: var(--text-primary);
    opacity: 1;
}
#vnx-ac-send.vnx-ac-stop:hover { 
    background: var(--border-medium);
}

/* Copy button on AI messages */
.vnx-ac-copy {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    cursor: pointer;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    margin-top: var(--space-1);
    transition: color var(--transition-fast), border-color var(--transition-fast);
}
.vnx-ac-copy:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}
.vnx-ac-copy:focus,
.vnx-ac-copy:active{
    border: 1px solid var(--border-light) !important;
}

.vnx-ac-disc {
    padding-bottom: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}


/* ----------------------------------------------------------------
   Bar trigger style  (triggerStyle: 'bar')
   ---------------------------------------------------------------- */
#vnx-ac-bubble.vnx-ac-trigger-bar {
    /* Size & position — bottom-center like CMC */
    width: auto;
    min-width: 300px;
    border-radius: var(--radius-full);
    bottom: var(--space-5);
    right: 50%;
    left: auto;
    transform: translateX(50%);

    /* Glass — must override base gradient */
    background-image: none !important;
    backdrop-filter: blur(20px) saturate(300%);
    -webkit-backdrop-filter: blur(20px) saturate(300%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;

    transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

[data-theme="dark"] #vnx-ac-bubble.vnx-ac-trigger-bar {
    background-color: rgba(18, 20, 30, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

/* Border color cycling animation — eye-catching, stops on hover */
@keyframes vnx-border-cycle {
    0%   { border-color: #3B82F6; box-shadow: 0 0 22px 5px rgba(59,130,246,0.4),  0 4px 24px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.9) inset; }
    25%  { border-color: #8B5CF6; box-shadow: 0 0 22px 5px rgba(139,92,246,0.4),  0 4px 24px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.9) inset; }
    50%  { border-color: #EC4899; box-shadow: 0 0 22px 5px rgba(236,72,153,0.4),  0 4px 24px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.9) inset; }
    75%  { border-color: #10B981; box-shadow: 0 0 22px 5px rgba(16,185,129,0.4),  0 4px 24px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.9) inset; }
    100% { border-color: #3B82F6; box-shadow: 0 0 22px 5px rgba(59,130,246,0.4),  0 4px 24px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.9) inset; }
}
/* Entry — slide up from below the viewport on page load */
@keyframes vnx-bar-slide-up {
    from { transform: translate(50%, 120%); opacity: 0; }
    to   { transform: translate(50%, 0);    opacity: 1; }
}
#vnx-ac-bubble.vnx-ac-trigger-bar {
    animation-name: vnx-bar-slide-up, vnx-border-cycle;
    animation-duration: 0.5s, 4s;
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1), ease-in-out;
    animation-delay: 0s, 0.5s;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: both, none;
    border-width: 2px;
}

/* Hover — sirf border-cycle pause karo, slide-up ko chhedo mat.
   animation-play-state per-animation set hota hai (comma-separated) —
   shorthand "animation: none" use karo to slide-up replay ho jata hai jab hover hatti hai. */
#vnx-ac-bubble.vnx-ac-trigger-bar:hover {
    animation-play-state: running, paused;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.13),
        0 1px 0 rgba(255, 255, 255, 1) inset;
    border-color: var(--primary-blue);
}
[data-theme="dark"] #vnx-ac-bubble.vnx-ac-trigger-bar:hover {
    background-color: rgba(18, 20, 30, 0.7) !important;
}
#vnx-ac-bubble.vnx-ac-trigger-bar.vnx-ac-active {
    /* Animation hatao — slide-up ka final frame (opacity:1) warna ye
       opacity override karta hai aur bar panel ke piche dikhta rehta hai */
    animation: none;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateX(50%) scale(0.9);
}

.vnx-ac-bar-inner {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    white-space: nowrap;
}
.vnx-ac-bar-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
/* ---- Shared spark icon — color via parent color property ---- */
.vnx-ac-spark-icon { display: block; }

/* Sparkle animation */
@keyframes vnx-sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50%      { transform: scale(1.15) rotate(10deg); opacity: 0.85; }
}

/* Bar: blue, 30px + sparkle */
.vnx-ac-bar-icon .vnx-ac-spark-icon {
    width: 30px; height: 30px; color: var(--primary-blue);
    animation: vnx-sparkle 2s ease-in-out infinite;
}

/* Welcome: blue, 50px */
.vnx-ac-w-icon .vnx-ac-spark-icon { width: 50px; height: 50px; color: var(--primary-blue); }

/* Bubble FAB: white, 30px + sparkle animation */
#vnx-ac-bubble:not(.vnx-ac-trigger-bar) .vnx-ac-spark-icon {
    width: 30px; height: 30px; color: white;
    animation: vnx-sparkle 2s ease-in-out infinite;
}
.vnx-ac-bar-label {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: #d2d2d2;
    letter-spacing: 0.01em;
}

/* Panel — bar mode: sirf center karo, bottom same as bubble */
#vnx-ac-bubble.vnx-ac-trigger-bar ~ #vnx-ac-panel {
    right: 50%;
    transform: translateX(50%);
    width: 510px;
}

#vnx-ac-welcome p{
    color: var(--text-secondary)
}

/* ----------------------------------------------------------------
   Mobile
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    #vnx-ac-bubble.vnx-ac-trigger-bar ~ #vnx-ac-panel,
    #vnx-ac-panel {
        width: 100%;
        right: 0 !important;
        transform: none;
        bottom: 0;
        border-radius: unset;
        height: 100%;
        max-height: 100vh;
        left: 0 !important;
    }
}
@media (max-width: 480px) {
    #vnx-ac-bubble.vnx-ac-trigger-bar:hover { transform: none; }
    #vnx-ac-bubble.vnx-ac-trigger-bar.vnx-ac-active { transform: scale(0.95); }
    #vnx-ac-bubble { bottom: 18px; right: 18px; }
    /* Bar trigger — stretch full width on mobile (no horizontal center needed) */
    @keyframes vnx-bar-slide-up-mobile {
        from { transform: translateY(120%); opacity: 0; }
        to   { transform: translateY(0);    opacity: 1; }
    }
    #vnx-ac-bubble.vnx-ac-trigger-bar {
        right: 16px;
        left: 16px;
        min-width: unset;
        transform: none;
        justify-content: center;
        bottom: 16px;
        animation-name: vnx-bar-slide-up-mobile, vnx-border-cycle;
        animation-duration: 0.5s, 4s;
        animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1), ease-in-out;
        animation-delay: 0s, 0.5s;
        animation-iteration-count: 1, infinite;
        animation-fill-mode: both, none;
    }
}

/* When cookie consent banner is visible, push AI button + panel up */
body:has(.cookie-consent.show) #vnx-ac-bubble,
body:has(.cookie-consent.show) #vnx-ac-panel {
    bottom: 80px;
}
@media (max-width: 768px) {
    body:has(.cookie-consent.show) #vnx-ac-bubble,
    body:has(.cookie-consent.show) #vnx-ac-panel {
        bottom: 150px;
    }
}

/* AI follow-up suggestion button — rendered when AI emits <followup>...</followup> */
.vnx-ac-followup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: var(--space-3) 0 var(--space-1);
    padding: 8px 14px;
    background: rgba(var(--primary-blue-rgb), 0.08);
    border: 1px solid rgba(var(--primary-blue-rgb), 0.25);
    border-radius: var(--radius-xl);
    color: var(--primary-blue);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: 1.35;
    text-align: start;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    max-width: 100%;
    white-space: normal;
}
.vnx-ac-followup:hover {
    background: rgba(var(--primary-blue-rgb), 0.15);
    border-color: rgba(var(--primary-blue-rgb), 0.45);
}
.vnx-ac-followup:active { transform: scale(0.98); }
.vnx-ac-followup.is-streaming {
    opacity: 0.7;
    pointer-events: none;
}
.vnx-ac-followup-icon { flex-shrink: 0; }
.vnx-ac-followup-text { flex: 1; min-width: 0; }
