:root {
    --gpt-bg: #000000;
    --gpt-sidebar-bg: #0a0a0a;
    --gpt-border: #222222;
    --gpt-text: #ffffff;
    --gpt-text-dim: #888888;
    --gpt-primary: #ffffff;
    --gpt-primary-hover: #dddddd;
    --gpt-user-msg-bg: #222222;
    --gpt-focus: #1a1a1a;
    --gpt-danger: #ef4444;
    --gpt-radius: 12px;
}

body.chatgpt-page {
    background-color: var(--gpt-bg);
    --chatgpt-header-bg: rgba(10, 10, 15, 0.88);
    --gpt-chat-avatar-size: 40px;
    --gpt-chat-line-box: calc(15px * 1.6);
    --gpt-user-bubble-pad-y: 12px;
    /* Скролл списков / сайдбара — нейтральное тёмное стекло без фиолетового акцента */
    --gpt-settings-scrollbar-thumb: rgba(255, 255, 255, 0.22);
    --gpt-settings-scrollbar-thumb-hover: rgba(255, 255, 255, 0.34);
    --gpt-settings-scrollbar-track: rgba(0, 0, 0, 0.38);
    /* Поле промпта — тот же нейтральный скролл, что у блоков кода/«thinking» */
    --gpt-composer-scrollbar-thumb: rgba(255, 255, 255, 0.2);
    --gpt-composer-scrollbar-thumb-hover: rgba(255, 255, 255, 0.32);
    --gpt-composer-scrollbar-track: rgba(0, 0, 0, 0.35);
}

/* --- NO MOTION (DISABLE ANIMATIONS) --- */
body.chatgpt-page.veo-no-motion .veo-cosmic-stars {
    display: none !important;
}
/* Мобилка: клон звёзд вынесен в .veo-background-animation (fixed) — отключаем и его при «Без анимации». */
body.chatgpt-page.veo-no-motion .veo-mobile-stars-clone[data-stars-scope="center"],
body.chatgpt-page.veo-no-motion .veo-mobile-stars-clone[data-stars-scope="sides"] {
    display: none !important;
}
body.chatgpt-page.veo-no-motion .gpt-typing-indicator .typing-dots span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}
body.chatgpt-page.veo-no-motion .typing-cursor-active::after {
    animation: none !important;
    opacity: 1 !important;
}
body.chatgpt-page.veo-no-motion .vf-realtime-sphere::before {
    animation: none !important;
}
body.chatgpt-page.veo-no-motion .vf-realtime-sphere::after {
    animation: none !important;
}
body.chatgpt-page.veo-no-motion .vf-realtime-orb-shell::after {
    animation: none !important;
}
body.chatgpt-page.veo-no-motion .vf-realtime-orb-cycle,
body.chatgpt-page.veo-no-motion .vf-realtime-orb-plasma,
body.chatgpt-page.veo-no-motion .vf-realtime-orb-echo,
body.chatgpt-page.veo-no-motion .vf-realtime-orb-nexus {
    animation: none !important;
}
body.chatgpt-page.veo-no-motion .vf-realtime-mic-hero-deco {
    animation: none !important;
    opacity: 0.45 !important;
}
body.chatgpt-page.veo-no-motion .vf-realtime-mic-hero-wrap::before,
body.chatgpt-page.veo-no-motion .vf-realtime-mic-hero-wrap::after {
    animation: none !important;
    opacity: 0 !important;
}
body.chatgpt-page.veo-no-motion .vf-realtime-mic-hero--on::before {
    animation: none !important;
}
body.chatgpt-page.veo-no-motion .vf-realtime-mic-hero--on .vf-realtime-mic-hero-ico-wrap {
    animation: none !important;
}
body.chatgpt-page.veo-no-motion .vf-realtime-caption-text--karaoke {
    animation: none !important;
}
body.chatgpt-page.veo-no-motion .vf-lx-sliders-knob,
body.chatgpt-page.veo-no-motion .vf-lx-voice-wave,
body.chatgpt-page.veo-no-motion .vf-lx-close-chevron-path,
body.chatgpt-page.veo-no-motion .vf-lx-phone-ring,
body.chatgpt-page.veo-no-motion .vf-lx-phone-handset,
body.chatgpt-page.veo-no-motion .vf-lx-transcript-bubble,
body.chatgpt-page.veo-no-motion .vf-lx-transcript-arrow-head,
body.chatgpt-page.veo-no-motion .vf-lx-mic-deco {
    animation: none !important;
}
body.chatgpt-page.veo-no-motion .vf-lx-sliders-knob,
body.chatgpt-page.veo-no-motion .vf-lx-voice-wave,
body.chatgpt-page.veo-no-motion .vf-lx-close-chevron-path,
body.chatgpt-page.veo-no-motion .vf-lx-phone-handset,
body.chatgpt-page.veo-no-motion .vf-lx-transcript-bubble,
body.chatgpt-page.veo-no-motion .vf-lx-transcript-arrow-head {
    transform: none !important;
}
body.chatgpt-page.veo-no-motion .vf-lx-phone-ring--outer {
    opacity: 0.45 !important;
}
body.chatgpt-page.veo-no-motion .vf-lx-phone-ring--inner {
    opacity: 0.6 !important;
}
body.chatgpt-page.veo-no-motion .vf-lx-voice-wave--1 {
    opacity: 0.45 !important;
}
body.chatgpt-page.veo-no-motion .vf-lx-voice-wave--2 {
    opacity: 0.35 !important;
}
body.chatgpt-page.veo-no-motion .vf-lx-voice-wave--3 {
    opacity: 0.25 !important;
}
body.chatgpt-page.veo-no-motion .vf-lx-mic-deco {
    opacity: 1 !important;
}

.chatgpt-page .veo-main {
    background-color: var(--gpt-bg) !important;
}
.chatgpt-page .veo-desktop-layout {
    background-color: var(--gpt-bg) !important;
}

/* Боковые колонки — как на странице изображений/Veo: тёмное стекло без белой заливки */
.chatgpt-page .veo-left-sidebar,
.chatgpt-page .veo-right-settings {
    background: rgba(10, 10, 15, 0.88) !important;
}

.chatgpt-page #veoChatsPanel.gpt-chats-sidebar,
.chatgpt-page #veoMobileSettingsPopover.vf-text-mobile-settings-panel.gpt-chats-sidebar {
    --gptcp-border: rgba(255, 255, 255, 0.12);
    --gptcp-text: rgba(255, 255, 255, 0.92);
    --gptcp-muted: rgba(255, 255, 255, 0.5);
    color-scheme: dark;
}

.chatgpt-page:not(.mobile-version) #veoChatsPanel.gpt-chats-sidebar,
.chatgpt-page:not(.mobile-version)
    #veoMobileSettingsPopover.vf-text-mobile-settings-panel.gpt-chats-sidebar {
    background: rgba(10, 10, 15, 0.78) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.chatgpt-page #veoChatsPanel.gpt-chats-sidebar {
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.45);
}

.chatgpt-page:not(.mobile-version) #veoChatsPanel.gpt-chats-sidebar::after,
.chatgpt-page:not(.mobile-version)
    #veoMobileSettingsPopover.vf-text-mobile-settings-panel.gpt-chats-sidebar::after {
    background: rgba(255, 255, 255, 0.06);
}

/* Мобилка ChatGPT: панели «Чаты» / «Настройки» — сплошной тон хедера, без стекла Veo */
body.chatgpt-page.veo-generation-body.mobile-version #veoChatsPanel.gpt-chats-sidebar,
body.chatgpt-page.veo-generation-body.mobile-version
    #veoMobileSettingsPopover.vf-text-mobile-settings-panel.gpt-chats-sidebar.veo-mobile-settings-popover,
body.chatgpt-page.veo-generation-body.mobile-version
    #veoMobileSettingsPopover.veo-mobile-settings-popover {
    background: var(--vf-text-mobile-chrome-bg, #0a0a0f) !important;
    background-color: var(--vf-text-mobile-chrome-bg, #0a0a0f) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

    body.chatgpt-page.veo-generation-body.mobile-version #veoChatsPanel .veo-chats-panel-footer,
    body.chatgpt-page.veo-generation-body.mobile-version #veoChatsPanel .gpt-chats-panel-footer-inner,
    body.chatgpt-page.veo-generation-body.mobile-version .veo-chats-panel-footer.gpt-chats-panel-footer-inner {
        background: var(--vf-text-mobile-chrome-bg, #0a0a0f) !important;
        background-color: var(--vf-text-mobile-chrome-bg, #0a0a0f) !important;
        background-image: none !important;
        border-top-color: rgba(255, 255, 255, 0.08) !important;
    }

    body.chatgpt-page.veo-generation-body.mobile-version #veoMobileSettingsPopover .vf-text-settings-panel-footer {
        display: none !important;
    }

    body.chatgpt-page.veo-generation-body.mobile-version #veoMobileSettingsPopover .veo-mobile-settings-popover-body,
    body.chatgpt-page.veo-generation-body.mobile-version #veoMobileSettingsPopover .vf-text-settings-panel-body {
        background: var(--vf-text-mobile-chrome-bg, #0a0a0f) !important;
        background-color: var(--vf-text-mobile-chrome-bg, #0a0a0f) !important;
    }

body.chatgpt-page.veo-generation-body.mobile-version #veoChatsPanel.gpt-chats-sidebar[aria-hidden="false"]::after,
body.chatgpt-page.veo-generation-body.mobile-version
    #veoMobileSettingsPopover.vf-text-mobile-settings-panel.gpt-chats-sidebar.veo-mobile-settings-popover[aria-hidden="false"]::after {
    background: var(--vf-text-mobile-chrome-bg, #0a0a0f) !important;
    background-color: var(--vf-text-mobile-chrome-bg, #0a0a0f) !important;
    background-image: none !important;
}

.chatgpt-page #veoChatsPanel .gpt-chats-panel-heading,
.chatgpt-page #veoMobileSettingsPopover .gpt-chats-panel-heading {
    flex: 1;
    text-align: center;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gptcp-text);
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-header,
.chatgpt-page #veoMobileSettingsPopover .veo-chats-panel-header {
    border-bottom-color: transparent;
    color: var(--gptcp-text);
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-header::after,
.chatgpt-page #veoMobileSettingsPopover .veo-chats-panel-header::after {
    background: rgba(255, 255, 255, 0.08);
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-back,
.chatgpt-page #veoMobileSettingsPopover .veo-chats-panel-back {
    color: var(--gptcp-muted);
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-back:hover,
.chatgpt-page #veoMobileSettingsPopover .veo-chats-panel-back:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gptcp-text);
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-search {
    border-bottom-color: transparent;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-search::after {
    content: '';
    display: block;
    margin: -0.5rem 1rem 0.5rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-search-icon {
    color: var(--gptcp-muted);
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-search-input {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid var(--gptcp-border) !important;
    color: var(--gptcp-text) !important;
    border-radius: 10px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-search-input::placeholder {
    color: var(--gptcp-muted);
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.45) !important;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-list {
    -webkit-overflow-scrolling: touch;
    /* См. veo-desktop: системный скролл Win/WebView не стилизуется — скрываем */
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding-right: max(0.35rem, 6px);
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-list::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-section {
    color: var(--gptcp-muted);
    letter-spacing: 0.06em;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-section--text-chats {
    padding-top: 0.4rem;
    padding-bottom: 0.1rem;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-item {
    border-radius: 10px;
    margin: 0 0.5rem;
    padding: 0.55rem 0.65rem;
    color: rgba(255, 255, 255, 0.88);
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--gptcp-text);
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-item--active {
    background: rgba(255, 255, 255, 0.1) !important;
    border-left: none !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-item--active:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Заголовок блока голосовых чатов — отделён линией; карточки тех же стилей, что текстовые */
.chatgpt-page #veoChatsPanel .veo-chats-panel-section--voice {
    color: rgba(94, 234, 212, 0.75);
    margin-top: 0.35rem;
    border-top: 1px solid rgba(45, 212, 191, 0.18);
    padding-top: 0.65rem;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-item--active .veo-chats-panel-item-title {
    color: var(--gptcp-text) !important;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-msg-track {
    background: rgba(255, 255, 255, 0.08) !important;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-msg-fill {
    background: rgba(255, 255, 255, 0.35) !important;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-msg-limit-label {
    color: var(--gptcp-muted) !important;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-msg-count {
    color: rgba(255, 255, 255, 0.62) !important;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-item--active .veo-chats-panel-msg-limit-label,
.chatgpt-page #veoChatsPanel .veo-chats-panel-item--active .veo-chats-panel-msg-count {
    color: rgba(255, 255, 255, 0.72) !important;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-item-edit {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-item-edit:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-item-delete {
    background: rgba(60, 20, 20, 0.55) !important;
    border: 1px solid rgba(248, 113, 113, 0.35) !important;
    color: #fecaca !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-item-delete:hover {
    background: rgba(90, 30, 30, 0.65) !important;
    border-color: rgba(248, 113, 113, 0.5) !important;
    color: #ffffff !important;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-item-input {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid var(--gptcp-border) !important;
    color: var(--gptcp-text) !important;
    border-radius: 8px !important;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-item-input:focus {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.chatgpt-page #veoChatsPanel .veo-chats-panel-auth-hint {
    padding: 1rem;
    margin: 0 0.75rem;
    font-size: 0.875rem;
    color: var(--gptcp-muted);
    text-align: center;
}

.chatgpt-page #veoChatsPanel .gpt-chats-panel-footer-inner {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: var(--vf-text-mobile-chrome-bg, #0a0a0f) !important;
    background-color: var(--vf-text-mobile-chrome-bg, #0a0a0f) !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.chatgpt-page #veoChatsPanel .gpt-chats-panel-new-chat {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: var(--gptcp-text) !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.chatgpt-page #veoChatsPanel .gpt-chats-panel-new-chat:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(255, 255, 255, 0.06) !important;
}

/*
 * ChatGPT: хедер как на странице видео — тёмные «пилюли», акценты белые (иконки навигации,
 * подчёркивание при hover/active, свечение). Анимации те же по сути, без фиолетового.
 */
.chatgpt-page {
    --nav-header-icon: rgba(255, 255, 255, 0.9);
    --nav-header-icon-hover: #ffffff;
}

/* Специфичность выше, чем у body.veo-generation-body .header в veo-desktop.css (#0a0a0f) */
body.chatgpt-page.veo-generation-body .header {
    background: var(--chatgpt-header-bg) !important;
    background-color: var(--chatgpt-header-bg) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

body.chatgpt-page.veo-generation-body .header .header-content {
    background: transparent !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .header-brand-name,
body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .mobile-logo .header-brand-name {
    color: #ffffff !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .desktop-nav .nav-link,
body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .desktop-nav .nav-link > span:last-child {
    color: #ffffff !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .desktop-nav .nav-link::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.55)) !important;
}

/* Активный раздел — без нижней черты в спокойном состоянии, но при наведении черта появляется */
body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .desktop-nav .nav-link.active:not(:hover)::after {
    width: 0 !important;
    opacity: 0 !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .buy-balance-group {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: none !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .buy-balance-group:hover {
    border-color: rgba(255, 255, 255, 0.35) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .audio-avatar-group {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: none !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .audio-avatar-group:hover {
    border-color: rgba(255, 255, 255, 0.35) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .buy-balance-group .profile-separator,
body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .audio-avatar-group .profile-separator {
    color: rgba(255, 255, 255, 0.22) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .buy-balance-group .profile-separator-equals {
    color: #ffffff !important;
}

body.chatgpt-page.veo-generation-body .header .buy-balance-group .profile-buy-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(52, 52, 58, 0.95) 0%, rgba(22, 22, 26, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.42) !important;
    box-shadow:
        0 0 16px rgba(255, 255, 255, 0.12),
        0 0 32px rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    animation: chatgptHdrBuyPulse 2.5s ease-in-out infinite !important;
}
body.chatgpt-page.veo-generation-body .header .buy-balance-group .profile-buy-btn::before,
body.chatgpt-page.veo-generation-body .header .buy-balance-group .profile-buy-btn::after {
    display: block !important;
}
body.chatgpt-page.veo-generation-body .header .buy-balance-group .profile-buy-btn:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.72) !important;
    box-shadow:
        0 0 22px rgba(255, 255, 255, 0.22),
        0 0 44px rgba(255, 255, 255, 0.1) !important;
}

@keyframes chatgptHdrBuyPulse {
    0%,
    100% {
        box-shadow:
            0 0 12px rgba(255, 255, 255, 0.1),
            0 0 28px rgba(255, 255, 255, 0.04);
    }
    50% {
        box-shadow:
            0 0 22px rgba(255, 255, 255, 0.2),
            0 0 48px rgba(255, 255, 255, 0.09);
    }
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .buy-balance-group .profile-balance-header:hover {
    border-color: rgba(255, 255, 255, 0.32) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .buy-balance-group .profile-balance-amount-header,
body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .buy-balance-group .vf-currency-amount {
    color: #ffffff !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .buy-balance-group .vf-currency-selector .vf-currency-trigger:hover {
    border-color: rgba(255, 255, 255, 0.35) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .vf-mobile-balance-selector.buy-balance-group .vf-currency-trigger.vf-mobile-balance-pill {
    background: linear-gradient(165deg, rgba(28, 28, 32, 0.92) 0%, rgba(12, 12, 14, 0.96) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.26) !important;
    box-shadow:
        0 2px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .vf-mobile-balance-selector.buy-balance-group .vf-currency-trigger.vf-mobile-balance-pill:hover,
body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .vf-mobile-balance-selector.buy-balance-group .vf-currency-trigger.vf-mobile-balance-pill:focus-visible {
    background: linear-gradient(165deg, rgba(40, 40, 46, 0.95) 0%, rgba(18, 18, 22, 0.98) 100%) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow:
        0 2px 18px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .veo-mobile-header-audio.mobile-audio-toggle-btn {
    background: linear-gradient(165deg, rgba(28, 28, 32, 0.92) 0%, rgba(12, 12, 14, 0.96) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.26) !important;
    box-shadow:
        0 2px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .veo-mobile-header-audio.mobile-audio-toggle-btn:hover,
body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .veo-mobile-header-audio.mobile-audio-toggle-btn:focus-visible {
    background: linear-gradient(165deg, rgba(40, 40, 46, 0.95) 0%, rgba(18, 18, 22, 0.98) 100%) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow:
        0 2px 18px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .veo-mobile-header-audio.mobile-audio-toggle-btn.audio-muted {
    box-shadow:
        0 2px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 10px rgba(255, 255, 255, 0.12),
        0 0 22px rgba(255, 255, 255, 0.05) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .veo-mobile-header-audio.mobile-audio-toggle-btn:not(.audio-muted) {
    border-color: rgba(255, 255, 255, 0.48) !important;
    box-shadow:
        0 2px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 12px rgba(255, 255, 255, 0.22),
        0 0 26px rgba(255, 255, 255, 0.1) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .veo-mobile-header-audio .audio-icon,
body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .veo-mobile-header-audio .audio-icon-muted {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .veo-mobile-header-audio.mobile-audio-toggle-btn:not(.audio-muted) .audio-icon {
    color: #ffffff !important;
}

body.chatgpt-page.veo-generation-body.mobile-version .header .vf-mobile-balance-pill-amount,
body.chatgpt-page.veo-generation-body.mobile-version .header .vf-mobile-balance-selector .vf-mobile-balance-pill-fiat {
    color: #ffffff !important;
}

body.chatgpt-page.veo-generation-body.mobile-version .header .vf-mobile-balance-pill-chevron {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

.chatgpt-page .header .vf-currency-arrow {
    color: #ffffff !important;
}

.chatgpt-page .vf-currency-dropdown {
    background: linear-gradient(135deg, #1e1e22 0%, #121214 50%, #0a0a0c 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #f5f5f7 !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.55),
        0 0 28px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

.chatgpt-page .vf-currency-dropdown-header,
.chatgpt-page .vf-currency-dropdown-desc,
.chatgpt-page .vf-currency-hint,
.chatgpt-page .vf-currency-option-name,
.chatgpt-page .vf-currency-option-text {
    color: #f5f5f7 !important;
}

.chatgpt-page .vf-currency-option-rate {
    color: rgba(255, 255, 255, 0.55) !important;
}

.chatgpt-page .vf-currency-option {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.chatgpt-page .vf-currency-option:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

body.chatgpt-page.veo-generation-body .header .vf-currency-selector .vf-currency-dropdown:not(.vf-mobile-balance-dropdown) {
    background: linear-gradient(135deg, #1e1e22 0%, #121214 50%, #0a0a0c 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.55),
        0 0 32px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
    scrollbar-color: rgba(255, 255, 255, 0.35) rgba(255, 255, 255, 0.06);
}

body.chatgpt-page.veo-generation-body .header .vf-currency-selector .vf-currency-dropdown:not(.vf-mobile-balance-dropdown)::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28) !important;
}

body.chatgpt-page.veo-generation-body .header .vf-currency-selector .vf-currency-dropdown .vf-currency-dropdown-header {
    color: #ffffff !important;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.2) !important;
}

body.chatgpt-page.veo-generation-body .header .vf-currency-selector .vf-currency-dropdown .vf-currency-dropdown-desc,
body.chatgpt-page.veo-generation-body .header .vf-currency-selector .vf-currency-dropdown .vf-currency-hint {
    color: rgba(255, 255, 255, 0.65) !important;
}

body.chatgpt-page.veo-generation-body .header .vf-currency-selector .vf-currency-dropdown .vf-currency-dropdown-header-block {
    border-bottom-color: rgba(255, 255, 255, 0.14) !important;
}

body.chatgpt-page.veo-generation-body .header .vf-currency-selector .vf-currency-dropdown .vf-currency-option:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.chatgpt-page.veo-generation-body .header .vf-currency-selector .vf-currency-dropdown .vf-currency-option[data-currency].vf-currency-option--active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.12) !important;
}

body.chatgpt-page.veo-generation-body .header .vf-currency-selector .vf-currency-dropdown .vf-currency-option-name {
    color: rgba(255, 255, 255, 0.95) !important;
}

body.chatgpt-page.veo-generation-body .header .vf-currency-selector .vf-currency-dropdown .vf-currency-option-rate {
    color: rgba(255, 255, 255, 0.55) !important;
}

.chatgpt-page .vf-mobile-balance-dropdown {
    background: linear-gradient(165deg, #1a1a1f 0%, #0e0e10 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #f5f5f7 !important;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 0 24px rgba(255, 255, 255, 0.06) !important;
}

body.chatgpt-page.veo-generation-body .header .audio-toggle-btn,
body.chatgpt-page.veo-generation-body .header .mobile-audio-toggle-btn {
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

body.chatgpt-page.veo-generation-body .header .audio-toggle-btn.audio-muted,
body.chatgpt-page.veo-generation-body .header .mobile-audio-toggle-btn.audio-muted {
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.14),
        0 0 22px rgba(255, 255, 255, 0.06) !important;
}

body.chatgpt-page.veo-generation-body .header .audio-toggle-btn:not(.audio-muted),
body.chatgpt-page.veo-generation-body .header .mobile-audio-toggle-btn:not(.audio-muted) {
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.22),
        0 0 26px rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.52) !important;
}

body.chatgpt-page.veo-generation-body .header .audio-toggle-btn:not(.audio-muted) .audio-icon,
body.chatgpt-page.veo-generation-body .header .mobile-audio-toggle-btn:not(.audio-muted) .audio-icon {
    color: #ffffff !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .audio-toggle-btn:hover,
body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .mobile-audio-toggle-btn:not(.veo-mobile-header-audio):hover {
    border-color: rgba(255, 255, 255, 0.62) !important;
    box-shadow:
        0 0 16px rgba(255, 255, 255, 0.25),
        0 0 32px rgba(255, 255, 255, 0.1) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .profile-user-avatar:not(.veo-avatar-login) {
    border: 2px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 18px rgba(255, 255, 255, 0.35),
        0 0 36px rgba(255, 255, 255, 0.12) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .profile-user-avatar:not(.veo-avatar-login):hover {
    border-color: rgba(255, 255, 255, 0.85) !important;
    box-shadow:
        0 0 22px rgba(255, 255, 255, 0.45),
        0 0 44px rgba(255, 255, 255, 0.18) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .profile-user-avatar.veo-avatar-login {
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow:
        0 0 14px rgba(255, 255, 255, 0.18),
        0 0 28px rgba(255, 255, 255, 0.08) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .profile-user-avatar.veo-avatar-login:hover {
    border-color: rgba(255, 255, 255, 0.78) !important;
    box-shadow:
        0 0 22px rgba(255, 255, 255, 0.28),
        0 0 40px rgba(255, 255, 255, 0.12) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .profile-user-avatar.veo-avatar-login::before {
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .profile-user-avatar.veo-avatar-login .veo-login-icon,
body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .profile-user-avatar.veo-avatar-login .profile-avatar-letter {
    color: rgba(255, 255, 255, 0.95) !important;
}

body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .audio-toggle-btn .audio-icon,
body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .audio-toggle-btn .audio-icon-muted,
body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .mobile-audio-toggle-btn .audio-icon,
body.chatgpt-page.veo-generation-body:has(.veo-desktop-layout) .header .mobile-audio-toggle-btn .audio-icon-muted {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

body.chatgpt-page.veo-generation-body.mobile-version .header .profile-user-avatar.veo-mobile-header-avatar:not(.veo-avatar-login) {
    border: 2px solid rgba(255, 255, 255, 0.42) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 16px rgba(255, 255, 255, 0.32),
        0 0 32px rgba(255, 255, 255, 0.1) !important;
}

.chatgpt-page .header .profile-avatar-letter {
    color: #ffffff !important;
}

body.chatgpt-page.veo-generation-body:not(.mobile-version) .veo-right-settings .veo-settings-scroll > .veo-settings-section,
.chatgpt-page .veo-settings-section {
    background: linear-gradient(
        148deg,
        rgba(22, 22, 28, 0.92) 0%,
        rgba(14, 14, 18, 0.86) 50%,
        rgba(8, 8, 12, 0.9) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        0 4px 28px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.chatgpt-page.veo-generation-body:not(.mobile-version) .veo-right-settings .veo-settings-section-header,
.chatgpt-page .veo-settings-section-header {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

body.chatgpt-page.veo-generation-body:not(.mobile-version) .veo-right-settings .veo-settings-section-header:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.chatgpt-page .veo-settings-row {
    color: rgba(255, 255, 255, 0.88) !important;
}

.chatgpt-page .veo-settings-label {
    color: rgba(255, 255, 255, 0.88) !important;
}

/* Правый сайдбар ChatGPT: те же карточка и шапки секций, что у остальных настроек (без индиго-бордера). */
.chatgpt-page .vf-gpt-settings-section {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        0 4px 28px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.chatgpt-page .vf-gpt-settings-section .veo-settings-section-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

.chatgpt-page .vf-gpt-settings-section .veo-settings-section-header:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: transparent !important;
}

.chatgpt-page .vf-gpt-settings-heading {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.chatgpt-page .vf-gpt-settings-section .veo-settings-chevron {
    opacity: 0.65 !important;
    flex-shrink: 0;
}

/*
 * «Выбор модели» и «Настройки модели» — две отдельные карточки на всех ширинах.
 * Внешний padding секции с veo-desktop убираем — поля задаём в шапке и контенте.
 */
body.chatgpt-page.veo-generation-body .veo-right-settings .veo-settings-scroll > .vf-gpt-settings-section {
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: hidden;
    /* Возвращаем тёмно-серый фон (без индиго) */
    background: linear-gradient(
        148deg,
        rgba(22, 22, 28, 0.92) 0%,
        rgba(14, 14, 18, 0.86) 50%,
        rgba(8, 8, 12, 0.9) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        0 4px 28px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    /* Гарантированный отступ снизу для ВСЕХ карточек, чтобы они не слипались */
    margin-bottom: 14px !important;
}

body.chatgpt-page.veo-generation-body .veo-right-settings .veo-settings-scroll > .vf-gpt-settings-section:last-child {
    margin-bottom: 0 !important;
}

body.chatgpt-page.veo-generation-body .veo-right-settings .vf-gpt-settings-section .veo-settings-section-header {
    padding: 0.62rem 0.88rem !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
    /* Шапка секции: тёмно-серая */
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

body.chatgpt-page.veo-generation-body .veo-right-settings .vf-gpt-settings-section .veo-settings-section-header:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.chatgpt-page.veo-generation-body .veo-right-settings .vf-gpt-settings-section .veo-settings-section-content {
    padding: 0.65rem 0.88rem 0.85rem !important;
    box-sizing: border-box;
}

body.chatgpt-page.veo-generation-body .veo-right-settings .vf-gpt-settings-section .veo-settings-row:not(:last-child) {
    margin-bottom: 0.85rem;
}

body.chatgpt-page.veo-generation-body .veo-right-settings .vf-gpt-settings-section .veo-settings-row:last-child {
    margin-bottom: 0;
}

/* Селекты «Нейросеть» / «Модель» — как поле ввода чата (тёмное стекло), без фиолетового свечения */
.chatgpt-page .vf-gpt-select .veo-custom-select-trigger.vf-gpt-select-trigger {
    background: linear-gradient(165deg, rgba(22, 22, 30, 0.9) 0%, rgba(10, 10, 15, 0.85) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 10px !important;
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.chatgpt-page .vf-gpt-select .veo-custom-select-trigger.vf-gpt-select-trigger:hover {
    border-color: rgba(255, 255, 255, 0.22) !important;
}

.chatgpt-page .vf-gpt-select.open .veo-custom-select-trigger.vf-gpt-select-trigger {
    border-color: rgba(255, 255, 255, 0.34) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

.chatgpt-page .veo-custom-select-dropdown[data-gpt-dd="1"] {
    background: linear-gradient(165deg, rgba(26, 26, 32, 0.98) 0%, rgba(14, 14, 18, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.05);
}

.chatgpt-page .veo-custom-select-dropdown[data-gpt-dd="1"]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04) !important;
}
.chatgpt-page .veo-custom-select-dropdown[data-gpt-dd="1"]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important;
}
.chatgpt-page .veo-custom-select-dropdown[data-gpt-dd="1"]::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28) !important;
}

.chatgpt-page .veo-custom-select-dropdown[data-gpt-dd="1"] .veo-custom-select-option {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

.chatgpt-page .veo-custom-select-dropdown[data-gpt-dd="1"] .veo-custom-select-option:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

.chatgpt-page .veo-custom-select-dropdown[data-gpt-dd="1"] .veo-custom-select-option.selected {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 0 2px rgba(20, 184, 129, 0.22) !important;
}

.chatgpt-page .veo-custom-select-dropdown[data-gpt-dd="1"] .veo-custom-select-option.selected::after {
    display: none !important;
    content: none !important;
}

.chatgpt-page #gptFamilySelectWrap .vf-gpt-select-trigger.veo-custom-select-trigger {
    gap: 0.35rem;
}

.chatgpt-page #gptFamilySelectWrap .vf-gpt-family-badge.veo-google-g-badge-sm {
    margin-right: 0.12rem;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chatgpt-page .vf-gpt-family-badge img {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px;
    max-height: 26px;
    object-fit: contain;
}

.chatgpt-page .vf-gpt-family-opt--soon {
    opacity: 0.52;
    cursor: default;
}

.chatgpt-page .vf-gpt-family-opt-badge--muted svg {
    display: block;
    opacity: 0.85;
}

.chatgpt-page .vf-gpt-soon-pill {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.06rem 0.35rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
}

/* Бейдж «Бесплатно» (дневной лимит) — OpenAI ChatGPT/Codex в списках */
.chatgpt-page .vf-gpt-free-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.52rem;
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        rgba(52, 211, 153, 0.38) 0%,
        rgba(16, 185, 129, 0.22) 45%,
        rgba(6, 182, 212, 0.18) 100%
    );
    color: rgba(236, 253, 245, 0.98);
    border: 1px solid rgba(94, 234, 212, 0.5);
    box-shadow:
        0 0 14px rgba(52, 211, 153, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.chatgpt-page .veo-custom-select-dropdown[data-gpt-dd='1'] .vf-gpt-model-opt {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    flex-wrap: nowrap;
}

.chatgpt-page .vf-gpt-model-opt-main {
    flex: 1;
    min-width: 0;
}

.chatgpt-page .veo-custom-select-dropdown[data-gpt-dd='1'] .vf-gpt-family-opt {
    display: flex !important;
    align-items: center;
    gap: 0.4rem 0.5rem;
}

.chatgpt-page .veo-custom-select-dropdown[data-gpt-dd='1'] .vf-gpt-family-opt > .vf-gpt-free-pill {
    margin-left: auto;
}

/* Крупнее иконки провайдеров только в списке «Нейросеть» */
.chatgpt-page .veo-custom-select-dropdown[data-gpt-dd='1'] .vf-gpt-family-opt .vf-gpt-family-opt-badge {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chatgpt-page .veo-custom-select-dropdown[data-gpt-dd='1'] .vf-gpt-family-opt .vf-gpt-family-opt-badge img {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px;
    max-height: 26px;
    object-fit: contain;
}

.chatgpt-page .veo-settings-section.collapsed .veo-settings-section-content {
    display: none !important;
}

.chatgpt-page .veo-left-icon-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.chatgpt-page .veo-left-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

.chatgpt-page .veo-left-icon-btn.active,
.chatgpt-page .veo-left-icon-btn[aria-expanded="true"],
.chatgpt-page .veo-left-icon-btn[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}

.chatgpt-page .veo-left-tooltip {
    background: rgba(16, 16, 20, 0.96) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.gpt-select {
    width: 100%;
    appearance: none;
    background-color: var(--gpt-bg);
    border: 1px solid var(--gpt-border);
    color: var(--gpt-text);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}
.gpt-select:focus {
    border-color: #444;
}

.gpt-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.gpt-slider {
    flex: 1;
    accent-color: var(--gpt-primary);
}
.gpt-slider-val {
    font-size: 13px;
    font-family: monospace;
    width: 30px;
    text-align: right;
    color: var(--gpt-text);
}

.gpt-textarea-settings {
    width: 100%;
    background-color: var(--gpt-bg);
    border: 1px solid var(--gpt-border);
    color: var(--gpt-text);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}
.gpt-textarea-settings:focus {
    border-color: #444;
}

.chatgpt-page .gpt-select,
.chatgpt-page .gpt-textarea-settings {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.chatgpt-page .gpt-select:focus,
.chatgpt-page .gpt-textarea-settings:focus {
    border-color: rgba(255, 255, 255, 0.32) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.chatgpt-page .gpt-slider-val {
    color: rgba(255, 255, 255, 0.85) !important;
}
.chatgpt-page .gpt-slider {
    accent-color: rgba(255, 255, 255, 0.82);
}

/* Переопределения для селектов (убираем фиолетовый цвет Veo) */
body.chatgpt-page .veo-select-trigger:focus,
body.chatgpt-page .veo-select-trigger.veo-select-open {
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
}

body.chatgpt-page .veo-select-dropdown {
    background: #1a1a1f !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

body.chatgpt-page .veo-select-option:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

body.chatgpt-page .veo-select-option.veo-select-selected {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

/* Chat Area */
#chatContainer {
    --gpt-chat-zoom: 1;
    /* Та же колонка, что у .gpt-input-area: ширина ленты = внутренняя ширина композера */
    --gpt-composer-max-width: 1000px;
    --gpt-composer-pad-x: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--gpt-bg);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.veo-cosmic-stars {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}


.gpt-welcome-screen {
    margin: auto;
    text-align: center;
    /* Та же колонка, что у композера — на ультрашироких не «крошка» по центру пустоты */
    max-width: min(var(--gpt-composer-max-width, 1000px), calc(100% - 2 * var(--gpt-composer-pad-x, 20px)));
    width: 100%;
    box-sizing: border-box;
    padding: 20px var(--gpt-composer-pad-x, 20px);
    color: var(--gpt-text);
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.gpt-welcome-logo {
    background: transparent;
    color: inherit;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.gpt-welcome-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gpt-welcome-screen h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}
.gpt-welcome-screen p {
    color: var(--gpt-text-dim);
    font-size: 15px;
}

/* Ряд сообщений + «рейка» таймлайна (полоса между чатом и настройками) на всю высоту блока чата */
.gpt-chat-scroll-hub {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    display: none;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.gpt-timeline-rail {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    width: 48px;
    flex-shrink: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* зона захвата колеса между сообщениями и правой колонкой */
    touch-action: none;
}

@media (max-width: 1024px) {
    .gpt-timeline-rail {
        display: none !important;
    }
}

/* На десктопе ChatGPT снова показываем таймлайн (навигация по сообщениям в текущем чате).
   На мобильных (<1025px) рейка по-прежнему скрыта — там только нативный скролл. */
@media (min-width: 1025px) {
    /* Таймлайн у правого края колонки чата — не сужает текст относительно поля ввода */
    body.chatgpt-page:not(.mobile-version) .gpt-timeline-rail {
        right: 0;
    }
    body.chatgpt-page:not(.mobile-version) .gpt-timeline-ticks {
        padding-right: 14px !important;
        margin-right: 0 !important;
        scrollbar-color: var(--gpt-settings-scrollbar-thumb) var(--gpt-settings-scrollbar-track);
    }
    body.chatgpt-page:not(.mobile-version) .gpt-timeline-ticks::-webkit-scrollbar-thumb {
        background: var(--gpt-settings-scrollbar-thumb);
        border-radius: 4px;
    }
    body.chatgpt-page:not(.mobile-version) .gpt-timeline-ticks::-webkit-scrollbar-thumb:hover {
        background: var(--gpt-settings-scrollbar-thumb-hover);
    }
    body.chatgpt-page:not(.mobile-version) .gpt-timeline-ticks::-webkit-scrollbar-track {
        background: var(--gpt-settings-scrollbar-track);
    }
}

/* Узкое окно: в veo-desktop.css левый сайдбар скрывается ниже 600px — тогда пропадает кнопка «Чаты»
   и список сессий. На ChatGPT оставляем узкую колонку. */
@media (max-width: 599px) {
    body.chatgpt-page.veo-generation-body:not(.mobile-version) .veo-left-sidebar {
        display: flex !important;
    }
}

.gpt-messages-wrapper {
    padding: 24px calc((100% - min(var(--gpt-composer-max-width), 100%)) / 2 + var(--gpt-composer-pad-x));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: none;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    overflow-y: auto;
    overflow-anchor: none;
    position: relative;
    scrollbar-color: var(--gpt-settings-scrollbar-thumb) var(--gpt-settings-scrollbar-track);
}

/* Детач из кнопки в body — :hover родителя больше не задаёт видимость */
body.veo-generation-body.chatgpt-page .gpt-action-tooltip-force-visible.gpt-action-tooltip--open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
}

/* Масштаб ленты сообщений ChatGPT — zoom сохраняет реальную высоту скролла (в отличие от transform); fallback как у Veo */
@supports (zoom: 1) {
    .chatgpt-page #gptChatScrollHub .gpt-messages-wrapper {
        zoom: var(--gpt-chat-zoom, 1);
    }
}
@supports not (zoom: 1) {
    .chatgpt-page #gptChatScrollHub .gpt-messages-wrapper {
        transform: scale(var(--gpt-chat-zoom, 1));
        transform-origin: top center;
        width: calc(100% / var(--gpt-chat-zoom, 1));
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}

/* Запас снизу растёт с масштабом для компенсации скролла */
.chatgpt-page #gptChatScrollHub .gpt-messages-wrapper {
    padding-top: 24px;
    padding-bottom: max(28px, calc(20px + 100px * (var(--gpt-chat-zoom, 1) - 1)));
}

.chatgpt-page .gpt-messages-wrapper::-webkit-scrollbar {
    width: 6px;
    display: block;
}
.chatgpt-page .gpt-messages-wrapper::-webkit-scrollbar-track {
    background: var(--gpt-settings-scrollbar-track);
}
.chatgpt-page .gpt-messages-wrapper::-webkit-scrollbar-thumb {
    background: var(--gpt-settings-scrollbar-thumb);
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.chatgpt-page .gpt-messages-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--gpt-settings-scrollbar-thumb-hover);
}

/* Правая колонка: тот же скролл, что у ленты чата (без фиолетового Veo по умолчанию). */
.chatgpt-page .veo-right-settings .veo-settings-scroll {
    scrollbar-width: thin !important;
    scrollbar-color: var(--gpt-settings-scrollbar-thumb) var(--gpt-settings-scrollbar-track) !important;
}
.chatgpt-page .veo-right-settings .veo-settings-scroll::-webkit-scrollbar-track {
    background: var(--gpt-settings-scrollbar-track) !important;
}
.chatgpt-page .veo-right-settings .veo-settings-scroll::-webkit-scrollbar-thumb {
    background: var(--gpt-settings-scrollbar-thumb) !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.chatgpt-page .veo-right-settings .veo-settings-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--gpt-settings-scrollbar-thumb-hover) !important;
}

.gpt-message {
    display: flex;
    gap: 16px;
    /* Горизонтальные отступы только у .gpt-messages-wrapper — совпадают с .gpt-input-area */
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
}

/* Ответ ассистента: первая строка текста по вертикали к центру иконки (как у индикатора печати). */
.gpt-message.assistant:not(.gpt-typing-indicator) {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 6px;
    align-items: start;
}

.gpt-message.assistant:not(.gpt-typing-indicator) .gpt-avatar {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
}

.gpt-message.assistant:not(.gpt-typing-indicator) .gpt-message-content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    flex: unset;
    display: block;
    padding-top: calc(var(--gpt-chat-avatar-size) / 2 - var(--gpt-chat-line-box) / 2);
}

.gpt-message.assistant:not(.gpt-typing-indicator) .gpt-assistant-actions-row {
    grid-column: 2;
    grid-row: 2;
}

.gpt-message.assistant:not(.gpt-typing-indicator) .gpt-assistant-actions-row.gpt-message-actions {
    margin-top: 0;
}

.chatgpt-page .gpt-message--api-error .gpt-message-content {
    border-left: 3px solid rgba(248, 113, 113, 0.55);
    padding-left: 12px;
    margin-left: 2px;
}
.chatgpt-page .gpt-message--api-error .gpt-text-body--api-error-plain {
    font-size: 0.95rem;
    line-height: 1.38;
    color: rgba(254, 205, 211, 0.92);
    white-space: normal;
    word-break: break-word;
    padding: 0 10px 2px 4px;
    margin: 0;
}
.chatgpt-page .gpt-message--api-error .gpt-text-body--api-error-plain p {
    margin: 0 0 0.65em;
}
.chatgpt-page .gpt-message--api-error .gpt-text-body--api-error-plain p:last-child {
    margin-bottom: 0;
}
.chatgpt-page .gpt-message--api-error .gpt-text-body--api-error-plain strong {
    font-weight: 700;
    color: rgba(255, 252, 252, 0.98);
}

.gpt-message.user {
    justify-content: flex-end;
}

.gpt-user-message-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 80%;
    min-width: 0;
}

.gpt-message.user .gpt-message-content {
    background-color: var(--gpt-user-msg-bg);
    padding: 12px 16px;
    /* Мягкий пузырь сообщения (без острого хвоста) */
    border-radius: 22px 22px 6px 22px;
    max-width: 100%;
    width: fit-content;
    color: var(--gpt-text);
    box-sizing: border-box;
}

.chatgpt-page .gpt-gemini-thinking {
    margin-top: 12px;
    margin-bottom: 2px;
    box-sizing: border-box;
    border: 1px solid var(--gpt-border);
    background: rgba(17, 17, 17, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

/* Свернуто — компактная плашка по тексту */
.chatgpt-page .gpt-gemini-thinking:not([open]) {
    width: fit-content;
    max-width: min(100%, 440px);
    border-radius: 999px;
}

/* Раскрыто — на всю ширину колонки ответа */
.chatgpt-page .gpt-gemini-thinking[open] {
    width: 100%;
    max-width: 100%;
    border-radius: var(--gpt-radius);
}

.chatgpt-page .gpt-gemini-thinking summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    user-select: none;
}

.chatgpt-page .gpt-gemini-thinking[open] summary {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chatgpt-page .gpt-gemini-thinking summary::-webkit-details-marker {
    display: none;
}
.chatgpt-page .gpt-gemini-thinking summary::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.72)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: -0.2em;
    transition: transform 0.2s ease;
}
.chatgpt-page .gpt-gemini-thinking[open] summary::before {
    transform: rotate(90deg);
}
.chatgpt-page .gpt-gemini-thinking-pre {
    margin: 0;
    padding: 10px 14px 14px 14px;
    max-width: 100%;
    max-height: min(72vh, 720px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    overscroll-behavior-y: contain;
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    white-space: pre-wrap;
    word-break: break-word;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) rgba(0, 0, 0, 0.35);
}

.chatgpt-page .gpt-gemini-thinking-pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.chatgpt-page .gpt-gemini-thinking-pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    margin: 2px 0;
}
.chatgpt-page .gpt-gemini-thinking-pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.chatgpt-page .gpt-gemini-thinking-pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.32);
    border: 2px solid transparent;
    background-clip: padding-box;
}

@media (prefers-reduced-motion: reduce) {
    .chatgpt-page .gpt-gemini-thinking summary::before {
        transition: none;
    }
}

.gpt-message.assistant .gpt-message-content {
    flex: 1;
    min-width: 0;
    color: var(--gpt-text);
}

.gpt-avatar {
    width: var(--gpt-chat-avatar-size);
    height: var(--gpt-chat-avatar-size);
    border-radius: 50%;
    background-color: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Аватар ассистента: иконка модели, без подписи в ленте */
.gpt-message.assistant:not(.gpt-typing-indicator) .gpt-avatar {
    background: transparent;
    border: none;
    margin-top: 0;
    overflow: visible;
    position: relative;
    cursor: default;
}

/* Индикатор печати: центр аватарки на уровне строки точек */
.gpt-message.assistant.gpt-typing-indicator .gpt-avatar {
    background: transparent;
    border: none;
    margin-top: calc(var(--gpt-chat-line-box) / 2 - var(--gpt-chat-avatar-size) / 2);
    overflow: visible;
    position: relative;
    cursor: default;
}

.gpt-message.user .gpt-avatar {
    margin-top: calc(var(--gpt-user-bubble-pad-y) + var(--gpt-chat-line-box) / 2 - var(--gpt-chat-avatar-size) / 2);
}

.gpt-message.assistant .gpt-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: none;
    background: #000;
    padding: 4px;
    box-sizing: border-box;
}

.chatgpt-page .gpt-message.user .gpt-avatar {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 0 16px rgba(255, 255, 255, 0.28),
        0 0 32px rgba(255, 255, 255, 0.1);
}

.gpt-message.user .gpt-avatar svg,
.gpt-avatar svg {
    width: 22px;
    height: 22px;
}

.gpt-message-content {
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}

.gpt-message-image {
    margin-bottom: 12px;
}
.gpt-message-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    border: 1px solid var(--gpt-border);
}

.gpt-message-user-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.gpt-message-user-attachments .gpt-message-image {
    margin-bottom: 0;
}

/* Вложение-документ в ленте: отдельная карточка над текстом (как блок с фото) */
.gpt-message-attachment-card {
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid var(--gpt-border);
    overflow: hidden;
    max-width: min(420px, 100%);
    background: rgba(15, 12, 41, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.gpt-message-attachment-card--doc {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 112px;
}
.gpt-message-attachment-card-visual {
    flex: 0 0 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family:
        Rajdhani,
        Inter,
        system-ui,
        sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(248, 250, 252, 0.96);
    background: linear-gradient(155deg, rgba(49, 46, 129, 0.72) 0%, rgba(15, 12, 41, 0.92) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.gpt-message-attachment-card-visual svg {
    display: block;
    opacity: 0.96;
}

.gpt-message-attachment-card-kind-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1;
}

.gpt-message-attachment-card-visual--pdf {
    background: linear-gradient(155deg, rgba(220, 38, 38, 0.72) 0%, rgba(127, 29, 29, 0.92) 100%);
}
.gpt-message-attachment-card-visual--word {
    background: linear-gradient(155deg, rgba(37, 99, 235, 0.72) 0%, rgba(30, 58, 138, 0.92) 100%);
}
.gpt-message-attachment-card-visual--sheet {
    background: linear-gradient(155deg, rgba(22, 163, 74, 0.72) 0%, rgba(20, 83, 45, 0.92) 100%);
}
.gpt-message-attachment-card-visual--slides {
    background: linear-gradient(155deg, rgba(234, 88, 12, 0.78) 0%, rgba(154, 52, 18, 0.92) 100%);
}
.gpt-message-attachment-card-visual--csv {
    background: linear-gradient(155deg, rgba(20, 184, 166, 0.72) 0%, rgba(15, 118, 110, 0.92) 100%);
}
.gpt-message-attachment-card-visual--json {
    background: linear-gradient(155deg, rgba(234, 179, 8, 0.78) 0%, rgba(161, 98, 7, 0.92) 100%);
}
.gpt-message-attachment-card-visual--html {
    background: linear-gradient(155deg, rgba(168, 85, 247, 0.72) 0%, rgba(107, 33, 168, 0.92) 100%);
}
.gpt-message-attachment-card-visual--txt,
.gpt-message-attachment-card-visual--md,
.gpt-message-attachment-card-visual--rtf {
    background: linear-gradient(155deg, rgba(100, 116, 139, 0.72) 0%, rgba(51, 65, 85, 0.92) 100%);
}

.gpt-message-attachment-card-meta {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    display: flex;
    align-items: center;
}
.gpt-message-attachment-card-filename {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.92);
    word-break: break-word;
}

.gpt-message-file-chip {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
    opacity: 0.92;
}

.gpt-message-content p {
    margin: 0 0 16px 0;
}
.gpt-message-content p:last-child {
    margin-bottom: 0;
}

/* Ответ ассистента: первая строка на уровне верхнего края иконки */
.gpt-message.assistant .gpt-text-body {
    line-height: 1.68;
    padding: 0 10px 6px 4px;
    box-sizing: border-box;
}

/* Разделители секций: только вертикальный воздух (renderer заменяет hr на .gpt-md-section-gap) */
.gpt-message-content .gpt-md-section-gap {
    display: block;
    height: 0;
    margin: 1.35rem 0;
    border: 0;
    padding: 0;
}

.gpt-message-content hr {
    border: none;
    height: 0;
    margin: 1.35rem 0;
    background: transparent;
    opacity: 0;
}

.gpt-message-content h1,
.gpt-message-content h2,
.gpt-message-content h3,
.gpt-message-content h4 {
    margin: 1.25em 0 0.5em;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--gpt-text);
}

.gpt-message-content h1:first-child,
.gpt-message-content h2:first-child,
.gpt-message-content h3:first-child,
.gpt-message-content h4:first-child {
    margin-top: 0;
}

.gpt-message-content ul,
.gpt-message-content ol {
    margin: 0 0 1rem;
    padding-left: 1.45rem;
}

.gpt-message-content li {
    margin: 0.4em 0;
}

.gpt-message-content li > p {
    margin: 0.3em 0;
}

.gpt-message-content li:last-child > p:last-child {
    margin-bottom: 0;
}

.gpt-message-content blockquote {
    margin: 1rem 0;
    padding: 0.25rem 0 0.25rem 1rem;
    border-left: 3px solid rgba(255, 255, 255, 0.22);
    color: rgba(248, 250, 252, 0.9);
}

.gpt-message-content strong {
    font-weight: 650;
}

/* Markdown-таблицы (GFM) — нейтральный стиль чата, как блоки кода, без космического фиолетового */
.gpt-message-content .gpt-md-table-wrap {
    margin: 1rem 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #161616;
}

.gpt-message-content .gpt-md-table-wrap table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    line-height: 1.45;
    color: var(--gpt-text);
}

.gpt-message-content .gpt-md-table-wrap thead th {
    font-weight: 600;
    color: var(--gpt-text);
    background: #303030;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.gpt-message-content .gpt-md-table-wrap th,
.gpt-message-content .gpt-md-table-wrap td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.gpt-message-content .gpt-md-table-wrap th:last-child,
.gpt-message-content .gpt-md-table-wrap td:last-child {
    border-right: none;
}

.gpt-message-content .gpt-md-table-wrap tr:last-child td {
    border-bottom: none;
}

.gpt-message-content .gpt-md-table-wrap tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.055);
}

.gpt-message-content .gpt-md-table-wrap tbody tr:hover td {
    background: rgba(255, 255, 255, 0.075);
}

.gpt-message-content .gpt-md-table-wrap p {
    margin: 0;
}

.gpt-code-block {
    background-color: #0d0d0d;
    border-radius: 8px;
    margin: 16px 0;
    border: 1px solid var(--gpt-border);
    overflow: hidden;
}
.gpt-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background-color: #222222;
    border-bottom: 1px solid var(--gpt-border);
}
.gpt-code-lang {
    font-size: 12px;
    color: #b4b4b4;
    font-weight: 500;
    text-transform: uppercase;
}
.gpt-code-copy {
    background: transparent;
    border: none;
    color: #b4b4b4;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}
.gpt-code-copy:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}
.gpt-code-content {
    padding: 12px;
    overflow-x: auto;
}
.gpt-message-content pre {
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
}
.gpt-message-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
}
/* Inline code blocks */
.gpt-message-content :not(pre) > code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #e0e0e0;
}

.gpt-message-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.gpt-user-prompt-actions {
    margin-top: 6px;
    padding-right: 2px;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
}

.gpt-user-prompt-edit {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 4.5rem;
    margin: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--gpt-text);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--gpt-border);
    border-radius: 14px;
    resize: vertical;
    outline: none;
}
.gpt-user-prompt-edit:focus {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.gpt-user-prompt-edit-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}
.gpt-user-prompt-edit-footer button {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--gpt-border);
    background: transparent;
    color: var(--gpt-text-dim);
    cursor: pointer;
}
.gpt-user-prompt-edit-footer button:hover {
    color: var(--gpt-text);
    background: rgba(255, 255, 255, 0.06);
}
.gpt-user-prompt-edit-footer .gpt-user-prompt-edit-primary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gpt-text);
    border-color: rgba(255, 255, 255, 0.16);
}

.gpt-action-btn {
    background: transparent;
    border: none;
    color: var(--gpt-text-dim);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gpt-action-btn:hover {
    background-color: var(--gpt-focus);
    color: var(--gpt-text);
}
.gpt-action-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

body.chatgpt-page.veo-generation-body.mobile-version .gpt-action-btn .veo-tooltip {
    display: none !important;
}

/* Input Area */
.gpt-input-area {
    padding: 0 var(--gpt-composer-pad-x, 20px) 20px;
    max-width: var(--gpt-composer-max-width, 1000px);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
}

/* Полоска «…в дневном лимите бесплатно» под композером — скрыта; разметка (#vfTextAiDisclaimer) не удалена.
   Вернуть: удалите два правила ниже (display:none и padding-bottom). */
.chatgpt-page .vf-text-ai-input-meta {
    display: none !important;
}

.chatgpt-page .gpt-input-area {
    padding-bottom: 28px;
}

html.veo-has-cached-user .profile-user-avatar.veo-avatar-login:not(.veo-mobile-header-avatar) { width: 32px !important; min-width: 32px !important; height: 32px !important; min-height: 32px !important; padding: 0 !important; border-radius: 50% !important; overflow: hidden !important; }
html.veo-has-cached-user .profile-user-avatar.veo-avatar-login.veo-mobile-header-avatar { width: 48px !important; min-width: 48px !important; height: 48px !important; min-height: 48px !important; padding: 0 !important; border-radius: 50% !important; overflow: hidden !important; }
html.veo-has-cached-user .profile-user-avatar.veo-avatar-login .veo-login-icon,
html.veo-has-cached-user .profile-user-avatar.veo-avatar-login .profile-avatar-letter { display: none !important; }
html.veo-has-cached-user .profile-user-avatar.veo-avatar-login .veo-avatar-fallback-icon { display: none !important; }
html.veo-has-cached-user .profile-user-avatar.veo-avatar-login img[id$="AvatarImg"] { display: block !important; width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 50% !important; }

.gpt-scroll-to-bottom {
    position: absolute;
    left: 50%;
    bottom: 100%;
    margin-bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #212121;
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s, color 0.2s, opacity 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}
.gpt-scroll-to-bottom .gpt-scroll-fab-icon {
    display: block;
    width: 18px;
    height: 18px;
}
.gpt-scroll-to-bottom .gpt-scroll-fab-icon--dots {
    display: none;
}
.gpt-message-content .gpt-text-body img,
.gpt-message.assistant .gpt-text-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
    display: block;
}
.gpt-scroll-to-bottom.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.gpt-scroll-to-bottom.vf-scroll-fab--animating {
    transition:
        background-color 0.2s,
        color 0.2s,
        opacity 0.28s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(-50%) translateY(2px) scale(0.94);
    opacity: 0.72;
}
.gpt-scroll-to-bottom.vf-scroll-fab--animating svg {
    animation: gpt-scroll-fab-arrow-nudge 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes gpt-scroll-fab-arrow-nudge {
    0% {
        transform: translateY(0);
    }
    45% {
        transform: translateY(3px);
    }
    100% {
        transform: translateY(0);
    }
}
.gpt-scroll-to-bottom:hover {
    background-color: #2a2a2a;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
}
.gpt-scroll-to-bottom:active {
    transform: translateX(-50%) translateY(1px) scale(0.94);
}
.gpt-scroll-to-bottom.visible:active {
    transform: translateX(-50%) translateY(1px) scale(0.94);
}

.gpt-input-preview {
    background-color: #1a1a1a;
    border: 1px solid var(--gpt-border);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    padding: 14px 16px 20px;
    margin-bottom: -16px; /* pull down to merge with wrapper */
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    z-index: 0;
    box-sizing: border-box;
}

.chatgpt-page .gpt-input-preview-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.gpt-input-preview-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.gpt-input-preview-chip {
    position: relative;
    flex: 0 0 auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    box-sizing: border-box;
}

.gpt-input-preview-chip--image {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.gpt-input-preview-chip--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.gpt-input-preview-chip--doc {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-width: 168px;
    max-width: min(248px, 78vw);
    min-height: 52px;
    padding: 0;
    padding-right: 30px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(28, 28, 38, 0.92) 0%, rgba(14, 14, 22, 0.88) 100%);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.gpt-input-preview-chip-icon {
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(248, 250, 252, 0.96);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(155deg, rgba(49, 46, 129, 0.55) 0%, rgba(15, 12, 41, 0.82) 100%);
}

.gpt-input-preview-chip--kind-pdf .gpt-input-preview-chip-icon {
    background: linear-gradient(155deg, rgba(220, 38, 38, 0.72) 0%, rgba(127, 29, 29, 0.88) 100%);
}
.gpt-input-preview-chip--kind-word .gpt-input-preview-chip-icon {
    background: linear-gradient(155deg, rgba(37, 99, 235, 0.72) 0%, rgba(30, 58, 138, 0.9) 100%);
}
.gpt-input-preview-chip--kind-sheet .gpt-input-preview-chip-icon {
    background: linear-gradient(155deg, rgba(22, 163, 74, 0.72) 0%, rgba(20, 83, 45, 0.9) 100%);
}
.gpt-input-preview-chip--kind-slides .gpt-input-preview-chip-icon {
    background: linear-gradient(155deg, rgba(234, 88, 12, 0.78) 0%, rgba(154, 52, 18, 0.92) 100%);
}
.gpt-input-preview-chip--kind-csv .gpt-input-preview-chip-icon {
    background: linear-gradient(155deg, rgba(20, 184, 166, 0.72) 0%, rgba(15, 118, 110, 0.9) 100%);
}
.gpt-input-preview-chip--kind-json .gpt-input-preview-chip-icon {
    background: linear-gradient(155deg, rgba(234, 179, 8, 0.78) 0%, rgba(161, 98, 7, 0.92) 100%);
}
.gpt-input-preview-chip--kind-html .gpt-input-preview-chip-icon {
    background: linear-gradient(155deg, rgba(168, 85, 247, 0.72) 0%, rgba(107, 33, 168, 0.9) 100%);
}
.gpt-input-preview-chip--kind-txt .gpt-input-preview-chip-icon,
.gpt-input-preview-chip--kind-md .gpt-input-preview-chip-icon,
.gpt-input-preview-chip--kind-rtf .gpt-input-preview-chip-icon {
    background: linear-gradient(155deg, rgba(100, 116, 139, 0.72) 0%, rgba(51, 65, 85, 0.92) 100%);
}

.gpt-input-preview-chip-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 8px 10px 8px 10px;
}

.gpt-input-preview-chip--doc .gpt-input-preview-chip-kind {
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 9px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 0;
    line-height: 1.2;
}

.gpt-input-preview-chip--doc .gpt-input-preview-chip-name {
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.94);
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gpt-input-preview-chip .veo-chat-attachment-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 8, 14, 0.72);
    color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    z-index: 2;
    padding: 0;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.gpt-input-preview-chip .veo-chat-attachment-remove:active {
    transform: scale(0.92);
    background: rgba(24, 24, 36, 0.92);
}


/* Документ над полем ввода: тот же формат карточки, но компактный квадрат 80×80 как превью фото */
.gpt-input-preview-doc-card {
    position: relative;
    margin-bottom: 0;
}
.gpt-input-preview-doc-card.gpt-message-attachment-card--doc {
    width: 80px;
    height: 80px;
    min-height: 0;
    max-width: 80px;
    flex-shrink: 0;
    flex-direction: column;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
}
.gpt-input-preview-doc-card .gpt-message-attachment-card-visual {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border-right: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
}
.gpt-input-preview-doc-card .gpt-message-attachment-card-meta {
    display: none !important;
}

/* Изображение: размер/рамка как у .veo-chat-attachment-preview на страницах генерации */
.chatgpt-page .gpt-input-preview-image-card.veo-chat-attachment-preview {
    position: relative;
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.chatgpt-page .gpt-input-preview-image-card .veo-chat-attachment-preview-inner,
.chatgpt-page .gpt-input-preview-image-card .veo-chat-attachment-preview-inner img {
    width: 100%;
    height: 100%;
    display: block;
}

.chatgpt-page .gpt-input-preview-image-card .veo-chat-attachment-preview-inner img {
    object-fit: cover;
}

.gpt-input-wrapper {
    background-color: #1a1a1a;
    border-radius: 24px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--gpt-border);
    position: relative;
    z-index: 1;
}

/* Компактно: [+] textarea …действия в одном ряду; при второй строке текста — textarea на всю ширину, кнопки снизу */
.gpt-input-composer {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

/* Две строки: поле на всю ширину, нижний ряд — [+] слева и действия справа (порядок в DOM не ломаем) */
.gpt-input-wrapper--multiline .gpt-input-composer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 8px;
    align-items: center;
}

.gpt-input-wrapper--multiline .gpt-textarea-field {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
}

.gpt-input-wrapper--multiline .gpt-input-controls-left {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    align-self: center;
}

.gpt-input-wrapper--multiline .gpt-input-controls-right {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    justify-content: flex-end;
    min-width: 0;
}
.gpt-input-wrapper:focus-within {
    border-color: #4a4a4a;
}

.gpt-textarea-field {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.gpt-textarea-field .gpt-textarea {
    flex: 1 1 auto;
    width: 100%;
    box-sizing: border-box;
}

.gpt-textarea-field.gpt-textarea-field--counter .gpt-textarea {
    padding-bottom: 22px;
}

.gpt-input-char-counter {
    position: absolute;
    right: 2px;
    bottom: 4px;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: rgba(148, 163, 184, 0.82);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.chatgpt-page .gpt-input-char-counter {
    color: rgba(203, 213, 225, 0.72);
}

.gpt-input-controls-left, .gpt-input-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 0;
    flex-shrink: 0;
}

.gpt-input-controls-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 6px;
}

.gpt-attach-btn {
    background-color: #333;
    color: var(--gpt-text);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
    border: none;
    cursor: pointer;
}
.gpt-attach-btn:hover {
    background-color: #444;
    transform: scale(1.1);
}
.gpt-attach-btn:active {
    transform: scale(0.95);
}

.gpt-model-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--gpt-text-dim);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
    padding: 0 12px;
    min-height: 32px;
    box-sizing: border-box;
    border-radius: 999px;
}
.gpt-model-dropdown-trigger:hover {
    color: var(--gpt-text);
    background-color: rgba(255, 255, 255, 0.05);
}

.vf-text-cost-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0 12px 0 14px;
    min-height: 32px;
    border-radius: 999px;
    line-height: 1.25;
    white-space: nowrap;
    text-transform: none;
    transition: color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    overflow: visible;
}
.vf-text-cost-badge .vf-text-cost-num {
    font-size: 1.12em;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}
.vf-text-cost-badge .vf-text-cost-rocket.veo-rocket-wrap {
    font-size: 1.12em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.vf-text-cost-badge--openai {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.vf-text-cost-badge--gemini {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gpt-textarea {
    background: transparent;
    border: none;
    color: var(--gpt-text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    resize: none;
    max-height: 200px;
    padding: 6px 0;
    outline: none;
}

.gpt-textarea::placeholder {
    color: var(--gpt-text-dim);
}

.gpt-send-btn {
    background-color: var(--gpt-primary);
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s;
    border: none;
    cursor: pointer;
}
.gpt-send-btn:not(:disabled):hover {
    transform: scale(1.1);
}
.gpt-send-btn:not(:disabled):active {
    transform: scale(0.95);
}
.gpt-send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: #fff;
    transform: none;
}

.gpt-mic-btn {
    position: relative;
    background-color: transparent;
    color: var(--gpt-text-dim);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s, background-color 0.2s;
    border: none;
    cursor: pointer;
    z-index: 2;
}
.gpt-mic-btn:hover {
    color: var(--gpt-text);
    background-color: rgba(255, 255, 255, 0.05);
    transform: scale(1.1);
}
.gpt-mic-btn:active {
    transform: scale(0.95);
}
.gpt-mic-btn.recording {
    color: #ff4a4a !important;
    border-color: rgba(255, 74, 74, 0.3) !important;
    animation: none;
}
.gpt-mic-btn.recording::before,
.gpt-mic-btn.recording::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    margin-left: -50%; margin-top: -50%;
    border-radius: 50%;
    background: rgba(255, 74, 74, 0.4);
    z-index: -1;
    pointer-events: none;
    animation: mic-ripple 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}
.gpt-mic-btn.recording::after {
    animation-delay: 0.75s;
}
@keyframes mic-ripple {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2.4); opacity: 0; }
}

.gpt-input-footer {
    text-align: center;
    font-size: 11px;
    color: var(--gpt-text-dim);
    margin-top: 10px;
}

.vf-text-ai-input-meta {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.vf-text-ai-input-meta .gpt-input-footer {
    margin-top: 0;
    width: 100%;
}

/* Переключатель «Память» в полоске ввода (вместо «Быстрый») */
.vf-text-chat-memory-pill {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin: 0;
    position: relative;
}
.chatgpt-page .vf-text-chat-memory-pill {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0 12px 0 14px;
    min-height: 32px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.22s ease;
}
.chatgpt-page .vf-text-chat-memory-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}
.chatgpt-page .vf-text-chat-memory-pill:has(.vf-text-chat-memory-switch-input:checked) {
    border-color: rgba(16, 163, 127, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(16, 163, 127, 0.12);
}
.vf-text-chat-memory-pill-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    user-select: none;
}
.vf-text-chat-memory-switch-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Единый стиль тумблеров как у ChatGPT: серый выкл., изумрудный вкл., белый бегунок */
.chatgpt-page .vf-text-chat-memory-switch-ui {
    flex-shrink: 0;
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: rgba(62, 62, 66, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.42);
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
    position: relative;
    pointer-events: none;
}
.chatgpt-page .vf-text-chat-memory-switch-ui::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: #f4f4f5;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.35),
        0 1px 4px rgba(0, 0, 0, 0.22);
    transition:
        transform 0.22s cubic-bezier(0.34, 1.35, 0.64, 1),
        background 0.2s ease,
        box-shadow 0.2s ease;
}
.chatgpt-page .vf-text-chat-memory-switch-input:checked + .vf-text-chat-memory-switch-ui {
    background: linear-gradient(180deg, #14b891 0%, #0d966f 100%);
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
.chatgpt-page .vf-text-chat-memory-switch-input:checked + .vf-text-chat-memory-switch-ui::after {
    transform: translate(18px, -50%);
    background: #ffffff;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.35),
        0 1px 6px rgba(0, 0, 0, 0.18);
}
.chatgpt-page .vf-text-chat-memory-switch-input:focus-visible + .vf-text-chat-memory-switch-ui {
    outline: 2px solid rgba(16, 163, 127, 0.75);
    outline-offset: 3px;
}

/* Поле ввода — тёмное стекло как на странице изображений (белый — только акценты: отправка и т.п.) */
.chatgpt-page .gpt-input-preview {
    background: rgba(12, 12, 18, 0.72) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.chatgpt-page .gpt-input-preview {
    flex-direction: column !important;
    align-items: stretch !important;
}
.chatgpt-page .gpt-input-preview-doc-card.gpt-message-attachment-card {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Десктоп: превью вложений над полем ввода */
body.chatgpt-page:not(.mobile-version) #gptInputPreview.gpt-input-preview.vf-gpt-input-preview--visible {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.chatgpt-page .gpt-input-wrapper {
    background: linear-gradient(165deg, rgba(22, 22, 30, 0.88) 0%, rgba(10, 10, 15, 0.82) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.chatgpt-page .gpt-input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.32) !important;
    box-shadow:
        0 8px 36px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Узкий экран: та же сетка — плюс и действия в одном нижнем ряду под полем */
@media (max-width: 520px) {
    .chatgpt-page .gpt-input-composer {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 8px;
        row-gap: 8px;
        align-items: center;
    }
    .chatgpt-page .gpt-textarea-field {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
    }
    .chatgpt-page .gpt-input-controls-left {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        align-self: center;
    }
    .chatgpt-page .gpt-input-controls-right {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
        justify-content: flex-end;
        min-width: 0;
    }
}

/* Мобильный шаблон текстовых ИИ: один ряд — [+] поле микрофон…; стоимость в правом блоке до микрофона */
body.chatgpt-page.veo-generation-body.mobile-version .gpt-input-composer,
body.chatgpt-page.veo-generation-body.mobile-version .gpt-input-wrapper--multiline .gpt-input-composer {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: flex-end !important;
    gap: 6px !important;
}
body.chatgpt-page.veo-generation-body.mobile-version .gpt-textarea-field {
    grid-column: unset !important;
    grid-row: unset !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
}
body.chatgpt-page.veo-generation-body.mobile-version .gpt-input-controls-left,
body.chatgpt-page.veo-generation-body.mobile-version .gpt-input-controls-right {
    grid-column: unset !important;
    grid-row: unset !important;
}
body.chatgpt-page.veo-generation-body.mobile-version .gpt-input-controls-right {
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    row-gap: 0 !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
}
body.chatgpt-page.veo-generation-body.mobile-version .gpt-input-controls-right .vf-text-chat-memory-pill {
    flex-shrink: 1 !important;
    min-width: 0 !important;
}
body.chatgpt-page.veo-generation-body.mobile-version .gpt-input-controls-right .vf-text-cost-badge {
    font-size: 11px !important;
    padding: 3px 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
body.chatgpt-page.veo-generation-body.mobile-version .gpt-input-controls-right .gpt-btn {
    flex-shrink: 0 !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.chatgpt-page .gpt-textarea {
    color: rgba(255, 255, 255, 0.95) !important;
    scrollbar-width: thin;
    scrollbar-color: var(--gpt-composer-scrollbar-thumb) var(--gpt-composer-scrollbar-track);
}

.chatgpt-page .gpt-textarea::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.chatgpt-page .gpt-textarea::-webkit-scrollbar-track {
    background: var(--gpt-composer-scrollbar-track);
    border-radius: 6px;
    margin: 2px 0;
}

.chatgpt-page .gpt-textarea::-webkit-scrollbar-thumb {
    background: var(--gpt-composer-scrollbar-thumb);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.chatgpt-page .gpt-textarea::-webkit-scrollbar-thumb:hover {
    background: var(--gpt-composer-scrollbar-thumb-hover);
    border: 2px solid transparent;
    background-clip: padding-box;
}
.chatgpt-page .gpt-textarea::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}
.chatgpt-page .gpt-textarea.recording-active::placeholder {
    color: #ff4a4a !important;
    animation: text-pulse 1.5s infinite ease-in-out;
}
@keyframes text-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.chatgpt-page .gpt-attach-wrap {
    position: relative;
    flex-shrink: 0;
}
.chatgpt-page .gpt-attach-dropdown {
    position: absolute;
    top: -10px;
    left: 12px;
    min-width: 248px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(22, 22, 28, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(-100% + 8px));
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.chatgpt-page .gpt-attach-wrap[data-open="true"] .gpt-attach-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(-100%);
    pointer-events: auto;
}
.chatgpt-page .gpt-attach-opt {
    display: block;
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 450;
    text-align: left;
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}
.chatgpt-page .gpt-attach-opt:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.chatgpt-page .gpt-attach-opt:focus-visible {
    outline: none;
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 0 2px rgba(165, 180, 252, 0.35);
}

.chatgpt-page .gpt-attach-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
.chatgpt-page .gpt-attach-btn:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}
.chatgpt-page .gpt-mic-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
}
.chatgpt-page .gpt-mic-btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
}
body.chatgpt-page .vf-gpt-voice-record-panel.veo-voice-record-panel {
    margin: 0 0 10px;
}
body.chatgpt-page.vf-gpt-voice-recording .gpt-textarea-field {
    display: none !important;
}
body.chatgpt-page .veo-voice-record-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: rgba(203, 213, 225, 0.75);
}
body.chatgpt-page .veo-voice-record-lock svg {
    width: 16px;
    height: 16px;
}
body.chatgpt-page .gpt-mic-btn.veo-mic-recording {
    color: #f87171 !important;
    background: rgba(127, 29, 29, 0.25) !important;
    border: 1px solid rgba(248, 113, 113, 0.35) !important;
    box-shadow: 0 0 14px rgba(248, 113, 113, 0.2);
}
.chatgpt-page .gpt-model-dropdown-trigger {
    color: rgba(255, 255, 255, 0.88) !important;
    background: rgba(0, 0, 0, 0.28) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    min-height: 32px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
}
.chatgpt-page .gpt-model-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.95) !important;
}
.chatgpt-page .vf-text-cost-badge,
.chatgpt-page .vf-text-cost-badge--openai,
.chatgpt-page .vf-text-cost-badge--gemini {
    min-height: 32px !important;
    padding: 0 12px 0 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.25 !important;
    gap: 5px !important;
    overflow: visible !important;
    border-radius: 999px !important;
    text-transform: none !important;
    background: rgba(0, 0, 0, 0.28) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
.chatgpt-page .vf-text-cost-badge .vf-text-cost-num {
    font-size: 1.14em !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}
.chatgpt-page .vf-text-cost-badge .vf-text-cost-rocket.veo-rocket-wrap {
    font-size: 1.14em !important;
}
.chatgpt-page .gpt-send-btn {
    background: #ffffff !important;
    color: #0a0a0f !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}
.chatgpt-page .gpt-send-btn:not(:disabled):hover {
    background: #f5f5f7 !important;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.18);
}
.chatgpt-page .gpt-send-btn:disabled {
    opacity: 0.38;
    background: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none;
    cursor: not-allowed;
}
.chatgpt-page .gpt-send-btn:disabled .vf-send-arrow-icon path {
    stroke-linecap: butt;
    stroke-linejoin: miter;
}

.chatgpt-page .gpt-input-footer {
    color: rgba(255, 255, 255, 0.65) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 999px;
    padding: 6px 14px;
    display: table;
    margin: 16px auto 0;
    box-sizing: border-box;
}

.chatgpt-page .gpt-scroll-to-bottom {
    background: var(--gpt-user-msg-bg, #222222) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
}
.chatgpt-page .gpt-scroll-to-bottom:hover {
    background: var(--gpt-focus, #2a2a2a) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Claude: на десктопе полная подпись; короткая «Размышление» — только в chatgpt-mobile.html */
.chatgpt-page .vf-claude-thinking-label-mobile {
    display: none;
}

.chatgpt-page .gpt-timeline-btn {
    background: rgba(18, 18, 24, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.chatgpt-page .gpt-modal-content {
    background: linear-gradient(165deg, rgba(24, 24, 30, 0.98) 0%, rgba(12, 12, 16, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.chatgpt-page .gpt-modal-content h2 {
    color: rgba(255, 255, 255, 0.95) !important;
}
.chatgpt-page .gpt-modal-content p {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Подтверждение удаления — нейтральные ChatGPT-цвета вместо космического фиолетового */
body.chatgpt-page .gpt-confirm-dialog-overlay {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
body.chatgpt-page .gpt-confirm-dialog-overlay .veo-confirm-dialog-modal {
    background: linear-gradient(165deg, rgba(24, 24, 30, 0.98) 0%, rgba(12, 12, 16, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.chatgpt-page .gpt-confirm-dialog-overlay .veo-confirm-dialog-title {
    color: var(--gpt-text);
    font-size: 1.05rem;
    font-weight: 600;
}
body.chatgpt-page .gpt-confirm-dialog-overlay .veo-confirm-dialog-message {
    color: var(--gpt-text-dim);
    font-size: 0.9375rem;
}
body.chatgpt-page .gpt-confirm-dialog-overlay .veo-confirm-dialog-actions {
    gap: 0.625rem;
}
body.chatgpt-page .gpt-confirm-dialog-overlay .veo-confirm-dialog-btn {
    min-width: 96px;
    padding: 0.625rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}
body.chatgpt-page .gpt-confirm-dialog-overlay .veo-confirm-dialog-btn:hover {
    transform: none;
}
body.chatgpt-page .gpt-confirm-dialog-overlay .veo-confirm-dialog-btn--cancel {
    background: transparent;
    color: var(--gpt-text);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
body.chatgpt-page .gpt-confirm-dialog-overlay .veo-confirm-dialog-btn--cancel:hover {
    background: rgba(255, 255, 255, 0.06);
}
body.chatgpt-page .gpt-confirm-dialog-overlay .veo-confirm-dialog-btn--confirm {
    background: var(--gpt-danger);
    color: #fff;
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: none;
}
body.chatgpt-page .gpt-confirm-dialog-overlay .veo-confirm-dialog-btn--confirm:hover {
    background: #dc2626;
    box-shadow: none;
}

.chatgpt-page .vf-text-chat-memory-info-modal {
    z-index: 10200;
}

.chatgpt-page .vf-text-chat-memory-info-modal[hidden],
.chatgpt-page .vf-text-chat-memory-info-modal[aria-hidden='true'] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.chatgpt-page .vf-text-chat-memory-info-modal[aria-hidden='false'] {
    display: flex !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.chatgpt-page .vf-text-chat-memory-info-modal-content {
    pointer-events: auto;
}

.chatgpt-page .vf-text-chat-memory-info-modal .vf-text-chat-memory-info-modal-content {
    text-align: left;
    max-width: min(360px, calc(100vw - 32px));
    padding: 24px;
}

.chatgpt-page .vf-text-chat-memory-info-modal-content h2 {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.chatgpt-page .vf-text-chat-memory-info-modal-content p {
    text-align: left;
    line-height: 1.48;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.72) !important;
}

.chatgpt-page .vf-text-chat-memory-info-dismiss {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    user-select: none;
}

.chatgpt-page .vf-text-chat-memory-info-dismiss input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #14b891;
    flex-shrink: 0;
}

.chatgpt-page .vf-text-chat-memory-info-modal .gpt-btn-primary {
    width: 100%;
}

.chatgpt-page .vf-text-chat-memory-hint-trigger {
    display: none !important;
}

.chatgpt-page .gpt-btn-primary {
    background: #ffffff !important;
    color: #0a0a0f !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}
.chatgpt-page .gpt-btn-primary:hover {
    background: #f0f0f3 !important;
}

.chatgpt-page .veo-tooltip.veo-tooltip--above,
.chatgpt-page .veo-tooltip.veo-tooltip--below {
    background: rgba(16, 16, 22, 0.96) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45) !important;
}

/* «Память»: тултип как у кнопок чата; явная ширина — иначе shrink-to-fit режется по узкой pill (absolute CB). */
.chatgpt-page .vf-text-chat-memory-pill.veo-has-tooltip .vf-text-chat-memory-tooltip.veo-tooltip--above {
    white-space: normal !important;
    text-align: left !important;
    line-height: 1.42 !important;
    font-weight: 450 !important;
    font-size: 0.875rem !important;
    box-sizing: border-box !important;
    width: min(480px, calc(100vw - 28px)) !important;
    max-width: min(480px, calc(100vw - 28px)) !important;
    min-width: min(360px, calc(100vw - 28px)) !important;
    padding: 0.55rem 0.82rem !important;
    border-radius: 10px !important;
    left: auto !important;
    right: 0 !important;
    top: auto !important;
    bottom: calc(100% + 10px) !important;
    transform: translateX(0) translateY(6px) !important;
    z-index: 120 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}
.chatgpt-page .vf-text-chat-memory-pill.veo-has-tooltip:hover .vf-text-chat-memory-tooltip.veo-tooltip--above {
    transform: translateX(0) translateY(0) !important;
}

/* Подсказка «семейство / модель» у аватара ответа: показывается через JS (fixed в body), иначе режет скролл-область чата */
.chatgpt-page .gpt-assistant-model-tooltip {
    position: absolute;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    max-width: min(280px, calc(100vw - 24px));
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92) !important;
    background: rgba(16, 16, 22, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.chatgpt-page .gpt-assistant-model-tooltip.gpt-assistant-model-tooltip--open {
    opacity: 1;
    visibility: visible;
}

.chatgpt-page .gpt-btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 10px 20px;
    width: 100%;
    border-radius: 8px;
}
.chatgpt-page .gpt-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

.chatgpt-page .gpt-chat-zoom-panel {
    background: rgba(14, 14, 18, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
}
.chatgpt-page .gpt-chat-zoom-panel .veo-chat-zoom-title,
.chatgpt-page .gpt-chat-zoom-panel .veo-chat-zoom-value,
.chatgpt-page .gpt-chat-zoom-panel .veo-chat-zoom-reset {
    color: rgba(255, 255, 255, 0.9) !important;
}
.chatgpt-page .gpt-chat-zoom-panel .veo-chat-zoom-reset {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 8px;
    padding: 4px 10px;
    cursor: pointer;
}
.chatgpt-page .gpt-chat-zoom-panel .veo-chat-zoom-reset:hover {
    background: rgba(255, 255, 255, 0.18) !important;
}
.chatgpt-page .gpt-chat-zoom-panel .veo-chat-zoom-range {
    accent-color: rgba(255, 255, 255, 0.75);
}

body.chatgpt-page.veo-generation-body.mobile-version .veo-mobile-header-bar,
.chatgpt-page .mobile-header .veo-mobile-header-bar {
    background: var(--chatgpt-header-bg) !important;
    /* Одна линия под хедером — только у .header (veo-3-1-mobile), без второго контура здесь */
    border-bottom: none !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}
body.chatgpt-page.veo-generation-body.mobile-version .veo-mobile-nav-trigger-icon,
.chatgpt-page .veo-mobile-nav-trigger-icon {
    color: #ffffff !important;
}
/* Мобайл: меню разделов по логотипу — стекло + плитки 2×2, нейтральная палитра ChatGPT */
@keyframes gpt-mobile-nav-sheet-in {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gpt-mobile-nav-tile-in {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.chatgpt-page .veo-mobile-nav-overlay {
    background: rgba(4, 4, 8, 0.42) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    opacity: 1;
    transition: opacity 0.24s ease;
}

body.chatgpt-page .veo-mobile-nav-menu {
    top: calc(56px + env(safe-area-inset-top) + 16px) !important;
    background: rgba(10, 10, 15, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.48) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-radius: 18px;
    max-height: min(78vh, 560px);
    animation: gpt-mobile-nav-sheet-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

body.chatgpt-page .veo-mobile-nav-menu::before {
    display: none !important;
}

body.chatgpt-page .veo-mobile-nav-menu::after {
    display: none !important;
}

body.chatgpt-page .veo-mobile-nav-menu-inner {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.44rem;
    padding: 0.28rem 0.52rem 0.62rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.chatgpt-page .veo-mobile-nav-menu-inner::before {
    content: "Разделы";
    grid-column: 1 / -1;
    padding: 0.08rem 0.28rem 0.28rem;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.36);
}

body.chatgpt-page .veo-mobile-nav-menu-divider {
    grid-column: 1 / -1;
    height: 1px;
    margin: 0.12rem 0.08rem 0.06rem;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    border: none;
    padding: 0;
}

body.chatgpt-page .veo-mobile-nav-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.36rem;
    min-height: 4.15rem;
    padding: 0.58rem 0.38rem 0.52rem !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.94) !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: gpt-mobile-nav-tile-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
}

body.chatgpt-page .veo-mobile-nav-menu-inner > .veo-mobile-nav-item:nth-child(2) { animation-delay: 0.03s; }
body.chatgpt-page .veo-mobile-nav-menu-inner > .veo-mobile-nav-item:nth-child(3) { animation-delay: 0.06s; }
body.chatgpt-page .veo-mobile-nav-menu-inner > .veo-mobile-nav-item:nth-child(4) { animation-delay: 0.09s; }
body.chatgpt-page .veo-mobile-nav-menu-inner > .veo-mobile-nav-item:nth-child(5) { animation-delay: 0.12s; }
body.chatgpt-page .veo-mobile-nav-menu-inner > .veo-mobile-nav-item:nth-child(7) { animation-delay: 0.15s; }
body.chatgpt-page .veo-mobile-nav-menu-inner > .veo-mobile-nav-item:nth-child(8) { animation-delay: 0.18s; }

body.chatgpt-page .veo-mobile-nav-menu-inner > .veo-mobile-nav-item:nth-child(5) {
    grid-column: 1 / -1;
    max-width: calc(50% - 4px);
    justify-self: center;
}

body.chatgpt-page .veo-mobile-nav-item--topup {
    min-height: 4.15rem !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0.36rem !important;
    padding: 0.58rem 0.38rem 0.52rem !important;
    background: linear-gradient(165deg, rgba(16, 163, 127, 0.2) 0%, rgba(255, 255, 255, 0.05) 58%) !important;
    border-color: rgba(16, 163, 127, 0.28) !important;
    color: rgba(236, 253, 245, 0.98) !important;
}

body.chatgpt-page .veo-mobile-nav-item--topup .veo-mobile-nav-icon {
    width: 2.35rem !important;
    height: 2.35rem !important;
    min-width: 2.35rem !important;
    min-height: 2.35rem !important;
    border-radius: 12px !important;
    background: rgba(16, 163, 127, 0.16) !important;
    border-color: rgba(16, 163, 127, 0.26) !important;
}

body.chatgpt-page .veo-mobile-nav-item--topup .veo-mobile-nav-rocket-icon.veo-rocket-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 1.28rem !important;
    line-height: 1 !important;
}

body.chatgpt-page .veo-mobile-nav-item--topup .veo-mobile-nav-text {
    font-size: 0.72rem !important;
    font-weight: 650 !important;
    line-height: 1.22;
}

body.chatgpt-page .veo-mobile-nav-item::after {
    display: none !important;
}

body.chatgpt-page .veo-mobile-nav-item:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.28);
    outline-offset: 2px;
}

body.chatgpt-page .veo-mobile-nav-item:active:not(.veo-mobile-nav-item--disabled) {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: scale(0.97) !important;
}

body.chatgpt-page .veo-mobile-nav-icon {
    width: 2.35rem !important;
    height: 2.35rem !important;
    min-width: 2.35rem !important;
    min-height: 2.35rem !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    animation: none !important;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

body.chatgpt-page .veo-mobile-nav-item--active {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.28) !important;
}

body.chatgpt-page .veo-mobile-nav-item--active::before {
    display: none !important;
}

body.chatgpt-page .veo-mobile-nav-item--active .veo-mobile-nav-icon {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    animation: none !important;
}

body.chatgpt-page .veo-mobile-nav-item--disabled {
    grid-column: 1 / -1;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    min-height: 3.15rem !important;
    padding: 0.62rem 0.85rem !important;
    gap: 0.72rem !important;
    opacity: 0.46 !important;
    background: transparent !important;
    border: 1px dashed rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

body.chatgpt-page .veo-mobile-nav-item--disabled .veo-mobile-nav-icon {
    width: 2.45rem !important;
    height: 2.45rem !important;
    min-width: 2.45rem !important;
    min-height: 2.45rem !important;
    border-radius: 12px !important;
    filter: grayscale(0.35);
}

body.chatgpt-page .veo-mobile-nav-soon {
    display: inline-block;
    margin-left: 0.42rem;
    padding: 0.14rem 0.44rem;
    border-radius: 999px;
    font-size: 0.62rem !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.58) !important;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

body.chatgpt-page .veo-mobile-nav-item .veo-mobile-nav-text {
    color: inherit !important;
    line-height: 1.25;
    padding-right: 0;
}

body.chatgpt-page .veo-mobile-nav-item .veo-mobile-nav-icon-svg {
    stroke: currentColor !important;
    color: inherit !important;
}

body.chatgpt-page .veo-mobile-nav-item:not(.veo-mobile-nav-item--disabled):hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.chatgpt-page.veo-generation-body.mobile-version .veo-mobile-header-brand-trigger,
body.chatgpt-page.veo-generation-body.mobile-version .veo-mobile-header-brand-trigger:hover,
body.chatgpt-page.veo-generation-body.mobile-version .veo-mobile-header-brand-trigger:active,
body.chatgpt-page.veo-generation-body.mobile-version .veo-mobile-header-brand-trigger:focus,
body.chatgpt-page.veo-generation-body.mobile-version .veo-mobile-header-brand-trigger:focus-visible,
body.chatgpt-page.veo-mobile-nav-open .veo-mobile-header-brand-trigger,
body.chatgpt-page.veo-mobile-nav-open .veo-mobile-header-brand-trigger[aria-expanded='true'] {
    background: transparent !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

body.chatgpt-page.veo-mobile-nav-open .veo-mobile-nav-trigger-icon,
body.chatgpt-page .veo-mobile-nav-trigger-icon {
    color: rgba(255, 255, 255, 0.88) !important;
}

@media (hover: hover) and (pointer: fine) {
    body.chatgpt-page .veo-mobile-nav-item:not(.veo-mobile-nav-item--disabled):hover .veo-mobile-nav-icon,
    body.chatgpt-page .veo-mobile-nav-item:not(.veo-mobile-nav-item--disabled):focus-visible .veo-mobile-nav-icon {
        transform: translateY(-1px) scale(1.03);
        border-color: rgba(255, 255, 255, 0.18) !important;
        box-shadow:
            0 10px 22px rgba(0, 0, 0, 0.34),
            inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    }
    body.chatgpt-page .veo-mobile-nav-item:not(.veo-mobile-nav-item--disabled):hover .veo-mobile-nav-draw,
    body.chatgpt-page .veo-mobile-nav-item:not(.veo-mobile-nav-item--disabled):focus-visible .veo-mobile-nav-draw {
        animation: veo-mobile-nav-icon-draw 0.48s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    }
    body.chatgpt-page .veo-mobile-nav-item:not(.veo-mobile-nav-item--disabled):hover .veo-mobile-nav-icon-svg .veo-mobile-nav-draw ~ .veo-mobile-nav-draw,
    body.chatgpt-page .veo-mobile-nav-item:not(.veo-mobile-nav-item--disabled):focus-visible .veo-mobile-nav-icon-svg .veo-mobile-nav-draw ~ .veo-mobile-nav-draw {
        animation-delay: 0.07s;
    }
    body.chatgpt-page .veo-mobile-nav-item:not(.veo-mobile-nav-item--disabled):hover .veo-mobile-nav-icon-svg .veo-mobile-nav-draw ~ .veo-mobile-nav-draw ~ .veo-mobile-nav-draw,
    body.chatgpt-page .veo-mobile-nav-item:not(.veo-mobile-nav-item--disabled):focus-visible .veo-mobile-nav-icon-svg .veo-mobile-nav-draw ~ .veo-mobile-nav-draw ~ .veo-mobile-nav-draw {
        animation-delay: 0.14s;
    }
    body.chatgpt-page .veo-mobile-nav-item:not(.veo-mobile-nav-item--disabled):hover .veo-mobile-nav-icon-fill,
    body.chatgpt-page .veo-mobile-nav-item:not(.veo-mobile-nav-item--disabled):focus-visible .veo-mobile-nav-icon-fill {
        animation: veo-mobile-nav-dot-pop 0.42s ease forwards;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.chatgpt-page .veo-mobile-nav-menu,
    body.chatgpt-page .veo-mobile-nav-item {
        animation: none !important;
    }
    body.chatgpt-page .veo-mobile-nav-item:active:not(.veo-mobile-nav-item--disabled) {
        transform: none !important;
    }
}

@media (max-width: 360px) {
    body.chatgpt-page .veo-mobile-nav-menu-inner {
        gap: 0.44rem;
        padding: 0.3rem 0.52rem 0.62rem !important;
    }
    body.chatgpt-page .veo-mobile-nav-item {
        min-height: 5rem;
        font-size: 0.82rem !important;
    }
    body.chatgpt-page .veo-mobile-nav-icon {
        width: 2.55rem !important;
        height: 2.55rem !important;
        min-width: 2.55rem !important;
        min-height: 2.55rem !important;
    }
}

/* Buttons */
.gpt-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}

.gpt-btn-primary {
    background-color: var(--gpt-primary);
    color: #000;
    padding: 10px 20px;
    width: 100%;
}
.gpt-btn-primary:hover {
    background-color: var(--gpt-primary-hover);
}

/* Modals and Toasts */
.gpt-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.gpt-modal-content {
    background: var(--gpt-sidebar-bg);
    border: 1px solid var(--gpt-border);
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    color: var(--gpt-text);
}
.gpt-modal-content h2 { margin: 0 0 12px 0; font-size: 20px; color: var(--gpt-text); }
.gpt-modal-content p { color: var(--gpt-text-dim); margin-bottom: 24px; font-size: 14px; }

.gpt-toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gpt-toast {
    background: var(--gpt-primary);
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    animation: toastIn 0.3s ease;
    max-width: min(92vw, 440px);
    line-height: 1.45;
    text-align: center;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading Spinners & Typing Indicator */
.gpt-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gpt-border);
    border-top-color: var(--gpt-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.typing-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 4px;
}
.typing-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--gpt-text);
    border-radius: 50%;
    animation: gpt-typing-bounce 1s infinite ease-in-out both;
}
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes gpt-typing-bounce {
    0%, 80%, 100% { transform: scale(0.6) translateY(0); opacity: 0.3; }
    40% { transform: scale(1.2) translateY(-4px); opacity: 1; filter: drop-shadow(0 0 4px rgba(255,255,255,0.6)); }
}

.typing-cursor-active::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 1.2em;
    background-color: var(--gpt-text);
    vertical-align: middle;
    margin-left: 4px;
    animation: gpt-cursor-blink 1s step-end infinite;
}
@keyframes gpt-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Компактный блок: по вертикали по центру зоны между заголовком чата и полем ввода */
.gpt-timeline {
    position: relative;
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-height: min(520px, calc(100vh - 220px));
    min-height: 0;
    z-index: 10;
}

.gpt-timeline-btn {
    background: transparent;
    border: none;
    color: var(--gpt-text-dim);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.gpt-timeline-btn:hover {
    color: var(--gpt-text);
}

.gpt-timeline-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.gpt-timeline-ticks {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px;
    padding: 8px 6px 8px 0; /* Отступ справа, чтобы сдвинуть скролл */
    margin-right: -6px; /* Компенсируем сдвиг, чтобы тики остались по центру */
    flex: 0 1 auto;
    min-height: 0;
    max-height: min(420px, calc(100vh - 280px));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    /* Родитель .gpt-timeline-rail с touch-action: none — здесь разрешаем вертикальный скролл списка тиков */
    touch-action: pan-y;
}
.gpt-timeline-ticks::-webkit-scrollbar {
    width: 4px;
}
.gpt-timeline-ticks::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.gpt-timeline-ticks::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}
.gpt-timeline-ticks::-webkit-scrollbar-track {
    background: transparent;
}

.gpt-timeline-tick-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 36px;
    height: 10px;
    cursor: pointer;
}

.gpt-timeline-tick {
    width: var(--tick-width, 12px);
    height: 1.5px;
    background-color: var(--gpt-text-dim);
    transition: width 0.2s, background-color 0.2s;
    pointer-events: none;
}

.gpt-timeline-tick-wrap.active .gpt-timeline-tick {
    width: calc(var(--tick-width, 12px) + 8px);
    background-color: var(--gpt-text);
}

.gpt-timeline-tick-wrap:hover .gpt-timeline-tick {
    background-color: var(--gpt-text);
}

.gpt-timeline-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    max-width: min(340px, calc(100vw - 24px));
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 10060;
    box-sizing: border-box;
}

.gpt-timeline-tooltip.gpt-timeline-tooltip--open {
    opacity: 1;
    visibility: visible;
}

/* Стиль превью таймлайна — как карточки настроек ChatGPT */
body.chatgpt-page .gpt-timeline-tooltip {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    text-align: left;
    color: rgba(255, 255, 255, 0.94);
    background: linear-gradient(
        148deg,
        rgba(22, 22, 28, 0.96) 0%,
        rgba(14, 14, 18, 0.92) 55%,
        rgba(10, 10, 15, 0.94) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.gpt-timeline-tooltip-title {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gpt-timeline-tooltip-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.48;
}

/* ===== Avatar Dropdown Override ===== */
body.chatgpt-page .vf-user-menu-dropdown {
    background: #1e1e24 !important;
    background-image: none !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 32px rgba(0, 0, 0, 0.2) !important;
}

body.chatgpt-page .vf-user-menu-time-block {
    padding: 0 12px 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 4px !important;
}

.chatgpt-page .vf-user-menu-time-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.chatgpt-page .vf-user-menu-time-main {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    color: rgba(255, 255, 255, 0.94) !important;
}

body.chatgpt-page .vf-menu-tz-custom-select {
    position: relative !important;
    flex: 0 0 auto !important;
    min-width: 5.4rem !important;
    max-width: 7.25rem !important;
}

body.chatgpt-page .vf-menu-tz-select,
body.chatgpt-page .vf-menu-tz-select--compact {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(30, 30, 38, 0.55) !important;
}

body.chatgpt-page .vf-menu-tz-select option,
body.chatgpt-page .vf-menu-tz-select optgroup {
    background: #16161c !important;
}

body.chatgpt-page .vf-menu-tz-custom-select > select.vf-menu-tz-select-native {
    display: none !important;
}

body.chatgpt-page .vf-menu-tz-trigger {
    width: 100% !important;
    min-height: 32px !important;
    padding: 6px 8px 6px 10px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    border-radius: 9px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(30, 30, 38, 0.55) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

body.chatgpt-page .vf-menu-tz-trigger-label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: left !important;
}

body.chatgpt-page .vf-menu-tz-custom-select.open .vf-menu-tz-trigger,
body.chatgpt-page .vf-menu-tz-trigger:hover,
body.chatgpt-page .vf-menu-tz-trigger:focus-visible {
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.chatgpt-page .vf-menu-tz-chevron {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0 !important;
    opacity: 0.55 !important;
    color: rgba(255, 255, 255, 0.72) !important;
    transform: rotate(0deg) !important;
    transition: transform 0.2s ease !important;
}

body.chatgpt-page .vf-menu-tz-custom-select.open .vf-menu-tz-chevron {
    transform: rotate(180deg) !important;
}

body.chatgpt-page .vf-menu-tz-dropdown {
    top: calc(100% + 6px) !important;
    width: 11rem !important;
    min-width: 100% !important;
    max-width: min(11rem, calc(100vw - 24px)) !important;
    max-height: min(220px, 42vh) !important;
    z-index: 10070 !important;
    background: #1e1e24 !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--gpt-settings-scrollbar-thumb) var(--gpt-settings-scrollbar-track) !important;
}

body.chatgpt-page .vf-menu-tz-dropdown::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
    display: block !important;
}

body.chatgpt-page .vf-menu-tz-dropdown::-webkit-scrollbar-track {
    background: var(--gpt-settings-scrollbar-track) !important;
    border-radius: 4px !important;
}

body.chatgpt-page .vf-menu-tz-dropdown::-webkit-scrollbar-thumb {
    background: var(--gpt-settings-scrollbar-thumb) !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.chatgpt-page .vf-menu-tz-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--gpt-settings-scrollbar-thumb-hover) !important;
}

body.chatgpt-page .vf-menu-tz-dropdown::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body.chatgpt-page .vf-menu-tz-dropdown .veo-custom-select-option.vf-menu-tz-opt {
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    padding: 0.48rem 0.72rem !important;
    color: rgba(255, 255, 255, 0.92) !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.chatgpt-page .vf-menu-tz-dropdown .veo-custom-select-option.vf-menu-tz-opt:last-child {
    border-bottom: none !important;
}

body.chatgpt-page .vf-menu-tz-dropdown .veo-custom-select-option.vf-menu-tz-opt--auto {
    margin-bottom: 0.42rem !important;
    padding-bottom: 0.62rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.chatgpt-page .vf-menu-tz-dropdown .veo-custom-select-option.vf-menu-tz-opt:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

body.chatgpt-page .vf-menu-tz-dropdown .veo-custom-select-option.vf-menu-tz-opt.selected {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

.chatgpt-page a.vf-user-menu-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.chatgpt-page .vf-user-menu-item--logout {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* Кнопки футера настроек (сбросить, скрыть) в стиле ChatGPT */
body.chatgpt-page.veo-generation-body .veo-right-settings .veo-settings-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px !important;
    padding: 16px 0 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.chatgpt-page.veo-generation-body .veo-right-settings .veo-settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.chatgpt-page.veo-generation-body .veo-right-settings .veo-settings-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

body.chatgpt-page.veo-generation-body .veo-right-settings .veo-settings-btn svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

body.chatgpt-page.veo-generation-body .veo-right-settings .veo-settings-btn:hover svg {
    opacity: 1;
}

/* Обёртка «Сбросить все» / «Скрыть все»: рамка как на макете; на десктопе — у низа колонки */
body.chatgpt-page.veo-generation-body .veo-right-settings .veo-settings-footer.vf-gpt-settings-footer-bar {
    border-top: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    background: rgba(0, 0, 0, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.chatgpt-page.veo-generation-body:not(.mobile-version) .veo-right-settings .veo-settings-footer.vf-gpt-settings-footer-bar {
    margin-top: auto !important;
}

/*
 * Мобильный текстовый чат: колонка сайдбара и футер (карточки — сквозные правила .vf-gpt-settings-section выше).
 * Дублируем для body.mobile-version при любой ширине viewport.
 */
body.chatgpt-page.veo-generation-body.mobile-version .veo-right-settings {
    max-height: none !important;
    flex: 1 1 auto !important;
    min-height: 0;
    display: flex !important;
    flex-direction: column !important;
    padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(10px, env(safe-area-inset-right, 0px)) !important;
    box-sizing: border-box !important;
}

body.chatgpt-page.veo-generation-body.mobile-version .veo-right-settings .veo-settings-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 0 10px 0 !important;
}

body.chatgpt-page.veo-generation-body.mobile-version .veo-right-settings .veo-settings-footer {
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    gap: 8px !important;
    margin-top: 0.35rem !important;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
}

@media (max-width: 599px) {
    body.chatgpt-page.veo-generation-body .veo-right-settings {
        max-height: none !important;
        flex: 1 1 auto !important;
        min-height: 0;
        display: flex !important;
        flex-direction: column !important;
        padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(10px, env(safe-area-inset-right, 0px)) !important;
        box-sizing: border-box !important;
    }

    body.chatgpt-page.veo-generation-body .veo-right-settings .veo-settings-scroll {
        flex: 1 1 auto;
        min-height: 0;
        padding: 8px 0 10px 0 !important;
    }

    body.chatgpt-page.veo-generation-body .veo-right-settings .veo-settings-footer {
        display: flex !important;
        flex-direction: column !important;
        flex-shrink: 0 !important;
        gap: 8px !important;
        margin-top: 0.35rem !important;
        padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        background: transparent !important;
    }
}

/* Очистка фиолетового фона для иконок моделей (стиль ChatGPT) */
.chatgpt-page .veo-ai-icon-badge.vf-gpt-family-badge,
.chatgpt-page .veo-ai-icon-badge.vf-gpt-family-opt-badge {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    animation: none !important;
}

.chatgpt-page .veo-ai-icon-badge.vf-gpt-family-badge::before,
.chatgpt-page .veo-ai-icon-badge.vf-gpt-family-opt-badge::before {
    display: none !important;
}

/* Сегментированный переключатель (Размышление) и тумблер Google Search — Gemini */
.vf-chat-hint-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.vf-chat-hint-trigger:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.32);
    color: rgba(255, 255, 255, 0.95);
}

.vf-text-saf {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    gap: 8px;
    border-radius: 0;
    background: transparent;
    border: none;
}

.vf-text-saf-opt {
    flex: 1;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 600;
    padding: 9px 6px;
    border-radius: 10px;
    cursor: pointer;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.vf-text-saf-opt:hover:not(.vf-text-saf-opt--selected) {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.88);
}

.vf-text-saf--four {
    flex-wrap: wrap;
    row-gap: 8px;
}

.vf-text-saf--four .vf-text-saf-opt {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 8px 5px;
    font-size: 11px;
}

.vf-text-saf-opt:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
}

.vf-text-saf-opt--selected {
    background: rgba(255, 255, 255, 0.14);
    color: #fafafa;
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.2);
}

.vf-gem-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.vf-gem-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vf-gem-switch-track {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: rgba(62, 62, 66, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.42);
    position: relative;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.vf-gem-switch-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f4f4f5;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.35),
        0 1px 4px rgba(0, 0, 0, 0.22);
    transition:
        transform 0.22s cubic-bezier(0.34, 1.35, 0.64, 1),
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.vf-gem-switch-input:checked + .vf-gem-switch-track {
    background: linear-gradient(180deg, #14b891 0%, #0d966f 100%);
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.vf-gem-switch-input:checked + .vf-gem-switch-track .vf-gem-switch-thumb {
    transform: translateX(18px);
    background: #ffffff;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.35),
        0 1px 6px rgba(0, 0, 0, 0.18);
}

.vf-gem-switch-input:focus-visible + .vf-gem-switch-track {
    outline: 2px solid rgba(16, 163, 127, 0.75);
    outline-offset: 2px;
}

/* Подсказки «?» в сайдбаре текста — тёмное стекло как у выпадающих полей ChatGPT (не фиолетовый cosmic Veo) */
.chatgpt-page .vf-chat-hint-trigger.veo-has-tooltip .veo-tooltip.vf-gpt-settings-hint-tooltip {
    color: rgba(255, 255, 255, 0.93);
    font-weight: 450;
    line-height: 1.42;
    text-align: left;
    background: linear-gradient(
        165deg,
        rgba(28, 28, 34, 0.98) 0%,
        rgba(14, 14, 18, 0.98) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 10px 34px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 0.52rem 0.78rem;
    /* Не min-width: 0 — иначе абсолютный тултип внутри ~18px-кнопки схлопывается по ширине CB и текст идёт столбиком. */
    min-width: min(240px, calc(100vw - 1.5rem));
    max-width: min(300px, calc(100vw - 1.5rem));
    white-space: normal;
    overflow-wrap: break-word;
    writing-mode: horizontal-tb;
    left: auto;
    right: 0;
    transform: translateX(0) translateY(4px);
}

.chatgpt-page .vf-chat-hint-trigger.veo-has-tooltip:hover .veo-tooltip.vf-gpt-settings-hint-tooltip,
.chatgpt-page .vf-chat-hint-trigger.veo-has-tooltip:focus-within .veo-tooltip.vf-gpt-settings-hint-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
}

/* JS выставляет position:fixed — координаты во viewport; без transform от базового .veo-tooltip--above */
.chatgpt-page .vf-gpt-settings-hint-tooltip.vf-gpt-settings-hint-tooltip--fixed {
    position: fixed !important;
    z-index: 10050 !important;
    right: auto !important;
    bottom: auto !important;
}

.chatgpt-page .vf-chat-hint-trigger.veo-has-tooltip:hover .veo-tooltip.vf-gpt-settings-hint-tooltip.vf-gpt-settings-hint-tooltip--fixed,
.chatgpt-page .vf-chat-hint-trigger.veo-has-tooltip:focus-within .veo-tooltip.vf-gpt-settings-hint-tooltip.vf-gpt-settings-hint-tooltip--fixed {
    transform: none !important;
}

.chatgpt-page .vf-chat-hint-trigger.veo-has-tooltip:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.chatgpt-page .vf-chat-hint-trigger.veo-has-tooltip:active {
    background: rgba(255, 255, 255, 0.14);
}

/* Модалка «Из добавленных» на странице ChatGPT (не Gemini): вкладки Фото / Файлы */
#veoUploadedOverlay #vfGptUploadedTabs.vf-gpt-uploaded-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

#veoUploadedOverlay #vfGptUploadedTabs[hidden] {
    display: none !important;
}

#veoUploadedOverlay .vf-gpt-uploaded-tab {
    flex: 1;
    min-width: 120px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(18, 18, 24, 0.85);
    color: rgba(255, 255, 255, 0.82);
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

#veoUploadedOverlay .vf-gpt-uploaded-tab:hover {
    border-color: rgba(129, 140, 248, 0.45);
    color: rgba(255, 255, 255, 0.95);
}

#veoUploadedOverlay .vf-gpt-uploaded-tab--active {
    border-color: rgba(129, 140, 248, 0.65);
    background: linear-gradient(145deg, rgba(49, 46, 129, 0.45) 0%, rgba(30, 27, 75, 0.75) 100%);
    color: #fff;
    box-shadow:
        0 4px 20px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#veoUploadedOverlay .vf-gpt-uploaded-pane[hidden] {
    display: none !important;
}

#veoUploadedOverlay .veo-gallery-card--doc.vf-gpt-doc-gallery-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
}

#veoUploadedOverlay .veo-gallery-card__media--doc {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(155deg, rgba(30, 27, 75, 0.92) 0%, rgba(15, 12, 41, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#veoUploadedOverlay .vf-gpt-doc-gallery-badge {
    font-family:
        Rajdhani,
        Inter,
        system-ui,
        sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(226, 232, 240, 0.95);
    text-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
}

#veoUploadedOverlay .vf-gpt-doc-gallery-name {
    margin-top: 8px;
    padding: 0 4px 2px;
    font-size: 0.72rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.78);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

#veoUploadedOverlay .veo-gallery-card--doc .veo-gallery-card__action {
    /* те же углы, что у превью фото */
    top: 6px;
}

/* Полное имя файла — тултип в стиле Veo при наведении на карточку документа */
#veoUploadedOverlay .vf-gpt-doc-gallery-card.veo-has-tooltip .vf-gpt-doc-gallery-tooltip {
    z-index: 500;
    max-width: min(420px, calc(100vw - 2rem));
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    line-height: 1.45;
}
body.veo-generation-body #veoUploadedOverlay .vf-gpt-doc-gallery-card.veo-has-tooltip:focus-within .vf-gpt-doc-gallery-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --- Realtime Voice UI --- */
.chatgpt-page .gpt-realtime-voice-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
}
.chatgpt-page .gpt-realtime-voice-btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
}
.chatgpt-page .vf-realtime-btn-icon {
    width: 18px;
    height: 18px;
    border-radius: 0;
    background: transparent !important;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chatgpt-page .vf-realtime-wave-svg {
    width: 18px;
    height: 18px;
    overflow: visible;
    display: block;
}
.chatgpt-page .vf-realtime-wave-bar {
    transform-origin: 0 0;
    animation: vfRealtimeWaveBar 0.75s ease-in-out infinite;
    animation-delay: calc(var(--vf-wave-i, 0) * 0.11s);
}
@keyframes vfRealtimeWaveBar {
    0%, 100% {
        transform: scaleY(0.38);
        opacity: 0.55;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .chatgpt-page .vf-realtime-wave-bar {
        animation: none;
        transform: scaleY(1);
        opacity: 1;
    }
}

.vf-realtime-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Удалённое аудио WebRTC: элемент в документе + явный play() — иначе часто тишина при автозапуске. */
.vf-realtime-remote-audio {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.vf-realtime-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.vf-realtime-content {
    position: relative;
    width: 100%;
    max-width: min(96vw, 860px);
    min-height: 640px;
    height: min(90vh, 820px);
    background: #212121;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    animation: vfRealtimePop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
@keyframes vfRealtimePop {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- Верхняя полоса: заголовок и крестик --- */
.vf-realtime-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 24px;
    z-index: 10;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.vf-realtime-top-bar-left {
    flex: 1;
    display: flex;
    align-items: center;
}
.vf-realtime-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
}
.vf-realtime-top-bar-right {
    display: flex;
    align-items: center;
}

/* --- Настройки звонка (Idle View) --- */
.vf-realtime-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px 20px;
    flex-shrink: 0;
    width: 100%;
}
.vf-realtime-idle-sphere-wrap {
    margin-bottom: 24px;
}
.vf-realtime-idle-sphere {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--voice-c1, #60a5fa), var(--voice-c2, #1e3a8a), #ffffff);
    background-size: 200% 200%;
    box-shadow: 0 0 30px var(--voice-c1, rgba(96, 165, 250, 0.3)), inset 0 0 15px rgba(255,255,255,0.4);
    animation: sphereGradient 4s ease infinite;
}
.vf-realtime-idle-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}
.vf-realtime-idle-sub {
    margin: 0 0 32px;
    font-size: 14px;
    color: #a1a1aa;
    max-width: 320px;
    line-height: 1.5;
}
.vf-realtime-idle-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 360px;
    margin-bottom: 32px;
}
.vf-realtime-setting-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #e4e4e7;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: all 0.2s ease;
}
.vf-realtime-setting-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}
.vf-realtime-setting-btn:active:not(:disabled) {
    transform: scale(0.98);
}
.vf-realtime-setting-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.vf-realtime-setting-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.vf-realtime-setting-icon svg {
    width: 20px;
    height: 20px;
}
.vf-realtime-setting-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vf-realtime-setting-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}
.vf-realtime-setting-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.vf-realtime-setting-arrow {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* Lucide-подобные микро-анимации (пилюли модель/голос, свернуть, транскрипт, трубка) */
.vf-lx-pill-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.52);
    pointer-events: none;
}
.vf-lx-pill-ico--voice {
    width: 24px;
    height: 24px;
}
.vf-lx-svg {
    display: block;
    width: 100%;
    height: 100%;
}
.vf-lx-sliders-knob {
    transform-box: fill-box;
    transform-origin: center center;
}
.vf-lx-sliders-knob--a {
    animation: vfLxKnobA 2.4s ease-in-out infinite;
}
.vf-lx-sliders-knob--b {
    animation: vfLxKnobB 2.4s ease-in-out infinite;
    animation-delay: -0.75s;
}
.vf-lx-sliders-knob--c {
    animation: vfLxKnobC 2.4s ease-in-out infinite;
    animation-delay: -1.5s;
}
.vf-lx-mic-deco {
    transform-box: fill-box;
    transform-origin: 50% 40%;
    animation: vfLxMicBreath 2.6s ease-in-out infinite;
}
.vf-lx-voice-wave {
    transform-box: fill-box;
    transform-origin: center center;
}
.vf-lx-voice-wave--1 {
    animation: vfLxVWave 1.15s ease-in-out infinite;
}
.vf-lx-voice-wave--2 {
    animation: vfLxVWave 1.15s ease-in-out infinite;
    animation-delay: -0.18s;
}
.vf-lx-voice-wave--3 {
    animation: vfLxVWave 1.15s ease-in-out infinite;
    animation-delay: -0.36s;
}
.vf-lx-close-chevron-path {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: vfLxChevronBob 2.1s ease-in-out infinite;
}
.vf-lx-phone-ring--outer {
    animation: vfLxPhoneRingPulse 1.9s ease-in-out infinite;
}
.vf-lx-phone-ring--inner {
    animation: vfLxPhoneRingPulse 1.9s ease-in-out infinite;
    animation-delay: 0.28s;
}
.vf-lx-phone-handset {
    transform-box: fill-box;
    transform-origin: 55% 52%;
    animation: vfLxPhoneHandset 2.65s ease-in-out infinite;
}
.vf-lx-transcript-bubble {
    transform-origin: center center;
    animation: vfLxTranscriptBubble 2.35s ease-in-out infinite;
}
.vf-lx-transcript-arrow-head {
    transform-box: fill-box;
    transform-origin: center center;
    animation: vfLxTranscriptArrow 1.25s ease-in-out infinite;
}

@keyframes vfLxKnobA {
    0%,
    100% {
        transform: translateX(-2.5px);
    }
    50% {
        transform: translateX(2.5px);
    }
}
@keyframes vfLxKnobB {
    0%,
    100% {
        transform: translateX(2px);
    }
    50% {
        transform: translateX(-2px);
    }
}
@keyframes vfLxKnobC {
    0%,
    100% {
        transform: translateX(-2px);
    }
    50% {
        transform: translateX(2px);
    }
}
@keyframes vfLxMicBreath {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.82;
    }
}
@keyframes vfLxVWave {
    0%,
    100% {
        transform: scaleY(0.52);
        opacity: 0.26;
    }
    50% {
        transform: scaleY(1);
        opacity: 0.62;
    }
}
@keyframes vfLxChevronBob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(1.4px);
    }
}
@keyframes vfLxPhoneRingPulse {
    0%,
    100% {
        opacity: 0.32;
    }
    50% {
        opacity: 0.72;
    }
}
@keyframes vfLxPhoneHandset {
    0%,
    100% {
        transform: rotate(-2.2deg);
    }
    50% {
        transform: rotate(2.2deg);
    }
}
@keyframes vfLxTranscriptBubble {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.045);
    }
}
@keyframes vfLxTranscriptArrow {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(2.5px);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.chatgpt-page .vf-lx-sliders-knob,
    body.chatgpt-page .vf-lx-voice-wave,
    body.chatgpt-page .vf-lx-close-chevron-path,
    body.chatgpt-page .vf-lx-phone-ring,
    body.chatgpt-page .vf-lx-phone-handset,
    body.chatgpt-page .vf-lx-transcript-bubble,
    body.chatgpt-page .vf-lx-transcript-arrow-head,
    body.chatgpt-page .vf-lx-mic-deco {
        animation: none !important;
    }
    body.chatgpt-page .vf-lx-sliders-knob,
    body.chatgpt-page .vf-lx-voice-wave,
    body.chatgpt-page .vf-lx-phone-handset,
    body.chatgpt-page .vf-lx-transcript-bubble,
    body.chatgpt-page .vf-lx-transcript-arrow-head,
    body.chatgpt-page .vf-lx-close-chevron-path {
        transform: none !important;
    }
    body.chatgpt-page .vf-lx-phone-ring--outer {
        opacity: 0.45 !important;
    }
    body.chatgpt-page .vf-lx-phone-ring--inner {
        opacity: 0.6 !important;
    }
    body.chatgpt-page .vf-lx-voice-wave--1 {
        opacity: 0.45 !important;
    }
    body.chatgpt-page .vf-lx-voice-wave--2 {
        opacity: 0.35 !important;
    }
    body.chatgpt-page .vf-lx-voice-wave--3 {
        opacity: 0.25 !important;
    }
    body.chatgpt-page .vf-lx-mic-deco {
        opacity: 1 !important;
    }
}

/* Аватарка голоса в кнопке настроек */
.vf-realtime-voice-pill-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--voice-c1, #9ca3af), var(--voice-c2, #3f3f46), #ffffff);
    background-size: 200% 200%;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.22);
    animation: sphereGradient 4s ease infinite;
    position: relative;
}
.vf-realtime-voice-pill-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' opacity='0.9'%3E%3Cpath d='M12 3v10'/%3E%3Cpath d='M8 7v4M16 7v4'/%3E%3Cpath d='M6 20h12'/%3E%3C/svg%3E") center/55% no-repeat;
    pointer-events: none;
}

.vf-realtime-ptt-wrap {
    margin-top: 4px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}
.vf-realtime-ptt-wrap input.vf-realtime-ptt-slider:disabled {
    opacity: 0.45;
}
.vf-realtime-ptt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.vf-realtime-ptt-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(212, 212, 216, 0.85);
}
.vf-realtime-ptt-value {
    font-size: 13px;
    font-weight: 700;
    color: #a5b4fc;
}
.vf-realtime-ptt-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.vf-realtime-ptt-end {
    font-size: 11px;
    font-weight: 600;
    color: rgba(161, 161, 170, 0.85);
    flex: 0 0 auto;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.vf-realtime-ptt-slider {
    flex: 1 1 auto;
    min-width: 0;
    height: 6px;
    border-radius: 999px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.45) 0%, rgba(39, 39, 42, 0.95) 100%);
    outline: none;
}
.vf-realtime-ptt-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #818cf8 0%, #4f46e5 100%);
    box-shadow:
        0 2px 8px rgba(99, 102, 241, 0.45),
        0 0 0 2px rgba(15, 15, 18, 0.9);
    cursor: grab;
}
.vf-realtime-ptt-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #818cf8 0%, #4f46e5 100%);
    box-shadow:
        0 2px 8px rgba(99, 102, 241, 0.45),
        0 0 0 2px rgba(15, 15, 18, 0.9);
    cursor: grab;
}

/* Кнопка перехода в чат из голосового режима */
.vf-realtime-transcript-chat-wrap {
    width: 100%;
    margin: -8px 0 16px;
    z-index: 9;
}

.vf-realtime-transcript-chat-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #0f0c29 0%, #1e1b4b 35%, #312e81 70%, #115e59 100%);
    box-shadow:
        0 4px 24px rgba(99, 102, 241, 0.35),
        0 0 40px rgba(45, 212, 191, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.vf-realtime-transcript-chat-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow:
        0 8px 28px rgba(99, 102, 241, 0.45),
        0 0 48px rgba(45, 212, 191, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.vf-realtime-transcript-chat-btn:active {
    transform: translateY(0);
}

.vf-realtime-transcript-chat-glow {
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(
        120deg,
        rgba(94, 234, 212, 0.35),
        rgba(129, 140, 248, 0.25),
        rgba(45, 212, 191, 0.2)
    );
    opacity: 0.45;
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
}

.vf-realtime-transcript-chat-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.vf-realtime-transcript-chat-ico {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    opacity: 0.95;
}

.vf-realtime-transcript-chat-label {
    flex: 1;
    text-align: center;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.vf-realtime-transcript-chat-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    opacity: 0.85;
}

@media (max-width: 520px) {
    .vf-realtime-transcript-chat-label {
        font-size: 0.88rem;
    }
}

.vf-realtime-voice-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(38, 38, 42, 0.95) 0%, rgba(24, 24, 27, 0.98) 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    color: #fff;
    max-width: min(200px, 46vw);
}
.vf-realtime-voice-pill:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.vf-realtime-voice-pill:active:not(:disabled) {
    transform: scale(0.98);
}
.vf-realtime-voice-pill:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.vf-realtime-voice-pill-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--voice-c1, #9ca3af), var(--voice-c2, #3f3f46), #ffffff);
    background-size: 200% 200%;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.22);
    animation: sphereGradient 4s ease infinite;
    position: relative;
}
.vf-realtime-voice-pill-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' opacity='0.9'%3E%3Cpath d='M12 3v10'/%3E%3Cpath d='M8 7v4M16 7v4'/%3E%3Cpath d='M6 20h12'/%3E%3C/svg%3E") center/55% no-repeat;
    pointer-events: none;
}
.vf-realtime-voice-pill-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    text-align: left;
}
.vf-realtime-voice-pill-kicker {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(161, 161, 170, 0.72);
    line-height: 1.2;
}
.vf-realtime-voice-pill-name {
    font-size: 15px;
    font-weight: 700;
    color: #f4f4f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Пилюля «тип разговора» и экран выбора (как у голоса) */
.vf-realtime-engine-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(38, 38, 42, 0.95) 0%, rgba(24, 24, 27, 0.98) 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    color: #fff;
    max-width: min(240px, 52vw);
}
.vf-realtime-engine-pill:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.vf-realtime-engine-pill:active:not(:disabled) {
    transform: scale(0.98);
}
.vf-realtime-engine-pill:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.vf-realtime-engine-pill-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}
.vf-realtime-engine-pill-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 3v10'/%3E%3Cpath d='M8 7v4M16 7v4'/%3E%3Cpath d='M6 20h12'/%3E%3Cpath d='M8 20v-2a4 4 0 0 1 8 0v2'/%3E%3C/svg%3E")
        center/58% no-repeat;
    opacity: 0.92;
    pointer-events: none;
}
.vf-realtime-engine-pill .vf-realtime-voice-pill-name {
    max-width: 168px;
}

.vf-realtime-engine-setup .vf-realtime-title {
    margin-bottom: 12px;
}
.vf-realtime-engine-lead {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(161, 161, 170, 0.95);
    text-align: center;
    max-width: 420px;
    padding: 0 8px;
}
.vf-realtime-engine-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin-bottom: 22px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 4px 4px;
}
.vf-realtime-engine-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #e4e4e7;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.vf-realtime-engine-card:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.vf-realtime-engine-card:active:not(:disabled) {
    transform: scale(0.98);
}
.vf-realtime-engine-card:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.vf-realtime-engine-card--active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.vf-realtime-engine-card-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.2));
    flex-shrink: 0;
}
.vf-realtime-engine-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vf-realtime-engine-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}
.vf-realtime-engine-card-model {
    font-size: 11px;
    font-weight: 600;
    font-family: ui-monospace, "Cascadia Code", monospace;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.03em;
}
.vf-realtime-engine-card-desc {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.65);
}

.vf-realtime-model-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 14px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(39, 39, 42, 0.88) 0%, rgba(24, 24, 27, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.vf-realtime-model-badge-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(161, 161, 170, 0.85);
}
.vf-realtime-model-badge-name {
    font-size: 14px;
    font-weight: 600;
    font-family: ui-monospace, "Cascadia Code", monospace;
    color: #e4e4e7;
}
.vf-realtime-model-badge-note {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(161, 161, 170, 0.88);
    max-width: min(280px, 52vw);
    margin-top: 4px;
}

.vf-realtime-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.vf-realtime-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Idle (до «Начать разговор»): без отдельного экрана-превью --- */
.vf-realtime-active--idle .vf-realtime-sphere {
    opacity: 0.92;
}
.vf-realtime-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 16px 20px;
    flex-shrink: 0;
}
.vf-realtime-idle-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}
.vf-realtime-idle-sub {
    margin: 0 0 12px;
    font-size: 14px;
    color: #a1a1aa;
    max-width: 280px;
    line-height: 1.45;
}
.vf-realtime-idle-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    flex-shrink: 0;
    padding: 4px 0 12px;
    box-sizing: border-box;
}
.vf-realtime-active:not(.vf-realtime-active--idle) .vf-realtime-idle-cta {
    display: none;
}
.vf-realtime-active--idle .vf-realtime-idle-cta .vf-realtime-start-btn--hero {
    max-width: none;
    width: 100%;
}

/* --- Setup View --- */
.vf-realtime-setup {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}
.vf-realtime-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 40px 0;
}
.vf-realtime-voice-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    width: 100%;
}
.vf-voice-nav {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.2s;
}
.vf-voice-nav:hover {
    color: #fff;
}
.vf-voice-sphere-preview {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.1) 20%, transparent 60%),
                linear-gradient(135deg, var(--voice-c1, #9ca3af) 0%, var(--voice-c2, #4b5563) 100%);
    box-shadow: 
        0 0 40px var(--voice-c1, rgba(156, 163, 175, 0.4)),
        inset 0 0 30px rgba(255,255,255,0.6),
        inset 0 -15px 30px var(--voice-c2, rgba(75, 85, 99, 0.5));
    animation: sphereFloat 4s ease-in-out infinite, sphereGradient 4s ease infinite;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.vf-voice-sphere-preview::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: inherit;
    filter: blur(20px);
    opacity: 0.4;
    z-index: -1;
    transition: all 0.3s ease;
}
.vf-voice-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
    transform: scale(0.9);
}
.vf-voice-sphere-preview:hover .vf-voice-play-btn {
    opacity: 1;
    transform: scale(1);
}
.vf-voice-play-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1) !important;
}
.vf-voice-play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 4px; /* optical center for play icon */
}
.vf-voice-play-btn.playing svg {
    margin-left: 0;
}
.vf-voice-info {
    text-align: center;
    margin-bottom: 24px;
}
#vfVoiceName {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
}
#vfVoiceDesc {
    font-size: 15px;
    color: #a1a1aa;
    margin: 0;
}
.vf-voice-dots {
    display: flex;
    gap: 6px;
    margin-bottom: auto;
}
.vf-voice-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.2s;
}
.vf-voice-dot.active {
    background: #fff;
}
.vf-realtime-start-btn {
    width: 100%;
    padding: 16px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
}

/* Главная кнопка «Начать разговор» — под шаром, нейтральные акценты */
.vf-realtime-start-btn--hero {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 16px 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0a0a0b;
    background: linear-gradient(165deg, #ffffff 0%, #e4e4e7 38%, #fafafa 55%, #d4d4d8 100%);
    background-size: 140% 140%;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 10px 32px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1), box-shadow 0.25s ease, filter 0.25s ease;
    animation: vfRealtimeStartGlow 2.8s ease-in-out infinite;
}
.vf-realtime-start-btn--hero::after {
    content: '';
    position: absolute;
    inset: -40%;
    left: -60%;
    width: 55%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.55) 45%, transparent 70%);
    transform: skewX(-18deg);
    animation: vfRealtimeStartShine 4s ease-in-out infinite;
    pointer-events: none;
}
.vf-realtime-start-btn--hero:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.04);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 14px 40px rgba(0, 0, 0, 0.5),
        0 0 32px rgba(255, 255, 255, 0.12);
}
.vf-realtime-start-btn--hero:active {
    transform: translateY(0) scale(0.99);
    transition-duration: 0.08s;
}
@keyframes vfRealtimeStartGlow {
    0%, 100% {
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.85) inset,
            0 10px 32px rgba(0, 0, 0, 0.45),
            0 0 0 0 rgba(255, 255, 255, 0.06);
    }
    50% {
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.92) inset,
            0 12px 36px rgba(0, 0, 0, 0.5),
            0 0 0 10px rgba(255, 255, 255, 0.035);
    }
}
@keyframes vfRealtimeStartShine {
    0%, 35% {
        opacity: 0;
        transform: skewX(-18deg) translateX(-120%);
    }
    40% {
        opacity: 0.85;
    }
    55%, 100% {
        opacity: 0;
        transform: skewX(-18deg) translateX(220%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .vf-realtime-start-btn--hero {
        animation: none;
    }
    .vf-realtime-start-btn--hero::after {
        display: none;
    }
}

/* --- Active View --- */
.vf-realtime-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}
.vf-realtime-live-root {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1;
}
.vf-realtime-main-stage {
    flex: 1 1 auto;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.vf-realtime-main-stage .vf-realtime-sphere-container {
    flex: 0 0 auto;
    min-height: 0;
}
.vf-realtime-bottom-dock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    width: 100%;
    padding-bottom: 2px;
}
.vf-realtime-status-text {
    font-weight: 600;
    letter-spacing: 0.02em;
}
.vf-realtime-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Живые подписи: вы / ассистент */
.vf-realtime-captions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 4px 0 12px;
    max-height: min(28vh, 220px);
    flex-shrink: 0;
}
.vf-realtime-caption {
    border-radius: 18px;
    padding: 12px 14px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(12, 14, 26, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 14px 36px rgba(0, 0, 0, 0.38);
    min-height: 96px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    text-align: left;
}
.vf-realtime-caption[hidden] {
    display: none !important;
}
.vf-realtime-caption-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}
.vf-realtime-caption--user .vf-realtime-caption-label {
    color: rgba(147, 197, 253, 0.9);
}
.vf-realtime-caption--assistant .vf-realtime-caption-label {
    color: rgba(196, 181, 253, 0.95);
}
.vf-realtime-caption-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.95);
}
.vf-realtime-caption--user .vf-realtime-caption-text {
    color: rgba(255, 255, 255, 0.9);
}
.vf-realtime-caption-text::-webkit-scrollbar {
    width: 5px;
}
.vf-realtime-caption-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Центральная кнопка микрофона */
.vf-realtime-mic-hero-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px 0 18px;
    flex-shrink: 0;
    min-height: 152px;
}
.vf-realtime-mic-hero-ring {
    position: absolute;
    width: 178px;
    height: 178px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.22) 0%, transparent 68%);
    pointer-events: none;
    opacity: 0.85;
    animation: vfMicHeroRing 3s ease-in-out infinite;
}
.vf-realtime-mic-hero-wrap:has(.vf-realtime-mic-hero--off) .vf-realtime-mic-hero-ring {
    opacity: 0.25;
    animation: none;
}
@keyframes vfMicHeroRing {
    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}
@keyframes vfMicHeroPulseGlow {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.07) inset,
            0 18px 44px rgba(0, 0, 0, 0.48),
            0 0 36px rgba(129, 140, 248, 0.22);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.12) inset,
            0 22px 52px rgba(0, 0, 0, 0.55),
            0 0 56px rgba(167, 139, 250, 0.38);
    }
}
.vf-realtime-mic-hero {
    position: relative;
    z-index: 1;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(155deg, rgba(99, 102, 241, 0.4) 0%, rgba(15, 12, 41, 0.96) 100%);
    color: #fff;
    cursor: pointer;
    padding: 0;
    font: inherit;
    transition: transform 0.18s ease, border-color 0.2s ease, filter 0.2s ease;
}
.vf-realtime-mic-hero--on {
    animation: vfMicHeroPulseGlow 2.6s ease-in-out infinite;
}
.vf-realtime-mic-hero--off {
    animation: none !important;
    background: linear-gradient(155deg, rgba(55, 55, 68, 0.95) 0%, rgba(18, 18, 24, 0.98) 100%);
    border-color: rgba(248, 113, 113, 0.45);
    color: rgba(254, 202, 202, 0.98);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.52) !important;
}
.vf-realtime-mic-hero:hover {
    transform: scale(1.04);
    filter: brightness(1.04);
}
.vf-realtime-mic-hero:active {
    transform: scale(0.97);
}
.vf-realtime-mic-hero-ico-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 6px 18px rgba(0, 0, 0, 0.28);
    flex-shrink: 0;
}
.vf-realtime-mic-hero-ico {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.vf-realtime-mic-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    padding: 12px 14px 10px;
}
.vf-realtime-mic-hero-label {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.vf-realtime-mic-hero-hint {
    font-size: 10px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
    max-width: 168px;
    font-weight: 500;
}
.vf-realtime-mic-hero--off .vf-realtime-mic-hero-hint {
    color: rgba(254, 202, 202, 0.78);
}
.vf-realtime-mic-hero--off .vf-realtime-mic-hero-ico-wrap {
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (max-width: 620px) {
    .vf-realtime-captions {
        grid-template-columns: 1fr;
        max-height: min(40vh, 300px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vf-realtime-mic-hero--on {
        animation: none;
    }
    .vf-realtime-mic-hero-ring {
        animation: none !important;
    }
    .chatgpt-page .vf-realtime-mic-hero-wrap::before,
    .chatgpt-page .vf-realtime-mic-hero-wrap::after {
        animation: none !important;
        opacity: 0 !important;
    }
    .chatgpt-page .vf-realtime-mic-hero--on {
        animation: none !important;
    }
    .chatgpt-page .vf-realtime-mic-hero--on::before {
        animation: none !important;
    }
    .chatgpt-page .vf-realtime-mic-hero--on .vf-realtime-mic-hero-ico-wrap {
        animation: none !important;
    }
    .chatgpt-page .vf-realtime-mic-hero--off {
        animation: none !important;
    }
    .chatgpt-page .vf-realtime-mic-hero-deco {
        animation: none !important;
    }
    .chatgpt-page .vf-realtime-caption-text--karaoke {
        animation: none !important;
        background: none !important;
        -webkit-text-fill-color: unset !important;
        color: rgba(250, 250, 250, 0.88) !important;
    }
    .chatgpt-page .vf-realtime-sphere::before {
        animation: none !important;
    }
    .chatgpt-page .vf-realtime-sphere::after {
        animation: none !important;
        transform: none !important;
        opacity: 0.42 !important;
    }
    .chatgpt-page .vf-realtime-orb-cycle,
    .chatgpt-page .vf-realtime-orb-plasma,
    .chatgpt-page .vf-realtime-orb-echo,
    .chatgpt-page .vf-realtime-orb-nexus {
        animation: none !important;
    }
    .chatgpt-page .vf-realtime-orb-shell::after {
        animation: none !important;
    }
}
.vf-realtime-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}
.vf-realtime-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}
.vf-realtime-pulse.active {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: vfPulseAnim 2s infinite;
}
@keyframes vfPulseAnim {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.vf-realtime-sphere-container {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow: visible; /* Убираем обрезку для мягких теней */
}

/* Космическая пыль (Particles) за шаром */
.vf-realtime-sphere-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 
        120px -180px 2px 0px rgba(255, 255, 255, 0.75),
        -140px 160px 1px 1px rgba(165, 180, 252, 0.6),
        90px 140px 3px 0px rgba(255, 255, 255, 0.5),
        -200px -100px 2px 0px rgba(96, 165, 250, 0.65),
        220px 60px 1px 0px rgba(255, 255, 255, 0.8),
        -60px -220px 2px 1px rgba(196, 181, 253, 0.7),
        180px 200px 1px 0px rgba(255, 255, 255, 0.6),
        -240px 20px 2px 0px rgba(129, 140, 248, 0.55),
        -10px 240px 1.5px 0.5px rgba(255, 255, 255, 0.7),
        260px -120px 2px 0px rgba(167, 139, 250, 0.6);
    z-index: 0;
    pointer-events: none;
    animation: cosmicDust 45s linear infinite;
}

@keyframes cosmicDust {
    0% { transform: translate(-50%, -50%) rotate(0deg); opacity: 0.2; }
    50% { opacity: 0.6; }
    100% { transform: translate(-50%, -50%) rotate(360deg); opacity: 0.2; }
}

.vf-realtime-sphere {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    /* Мягкий, размытый градиент вместо резкого шара */
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.1) 30%, transparent 60%);
    box-shadow: 
        0 0 60px 20px color-mix(in srgb, var(--voice-c1, #818cf8) 60%, transparent),
        0 0 100px 40px color-mix(in srgb, var(--voice-c2, #22d3ee) 40%, transparent),
        inset 0 0 40px rgba(255, 255, 255, 0.6);
    animation: sphereMorphIdle 4s ease-in-out infinite, sphereGradient 5s ease infinite;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    background-size: 200% 200%;
}

/* Цветное ядро (мягкое) */
.vf-realtime-sphere::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--voice-c1, #818cf8) 0%, var(--voice-c2, #22d3ee) 100%);
    filter: blur(20px);
    opacity: 0.7;
    z-index: -1;
    transition: all 0.3s ease;
    mix-blend-mode: screen;
}

/* Ambilight (Фоновое мягкое свечение) */
.vf-realtime-sphere::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, var(--voice-c1, #818cf8) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0.25;
    z-index: -2;
    transition: all 0.4s ease;
    pointer-events: none;
    mix-blend-mode: screen;
}

.vf-realtime-sphere.listening {
    box-shadow: 
        0 0 70px 25px color-mix(in srgb, var(--voice-c1, #34d399) 70%, transparent),
        0 0 120px 50px color-mix(in srgb, var(--voice-c2, #10b981) 50%, transparent),
        inset 0 0 50px rgba(255, 255, 255, 0.8);
    animation: sphereMorphListening 3s ease-in-out infinite, sphereGradient 3s ease infinite;
}
.vf-realtime-sphere.listening::before {
    background: linear-gradient(135deg, var(--voice-c1, #34d399) 0%, var(--voice-c2, #10b981) 100%);
    filter: blur(24px);
    opacity: 0.85;
}
.vf-realtime-sphere.listening::after {
    background: radial-gradient(circle, var(--voice-c1, #34d399) 0%, transparent 70%);
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.2);
    filter: blur(50px);
}

.vf-realtime-sphere.speaking {
    box-shadow: 
        0 0 80px 30px color-mix(in srgb, var(--voice-c1, #a78bfa) 80%, transparent),
        0 0 140px 60px color-mix(in srgb, var(--voice-c2, #3b82f6) 60%, transparent),
        inset 0 0 60px rgba(255, 255, 255, 0.9);
    animation: sphereMorphSpeaking 2.5s ease-in-out infinite, sphereGradient 2s ease infinite;
}
.vf-realtime-sphere.speaking::before {
    background: linear-gradient(135deg, var(--voice-c1, #a78bfa) 0%, var(--voice-c2, #3b82f6) 100%);
    filter: blur(30px);
    opacity: 0.95;
    transform: scale(1.05);
}
.vf-realtime-sphere.speaking::after {
    background: radial-gradient(circle, var(--voice-c1, #a78bfa) 0%, transparent 70%);
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.3);
    filter: blur(60px);
    animation: ambilightPulse 2s ease-in-out infinite alternate;
}

.vf-realtime-sphere.sending {
    animation: sphereMorphIdle 3s ease-in-out infinite, sphereGradient 2s ease infinite, sphereSendingPulse 1s ease-in-out infinite alternate;
}

@keyframes ambilightPulse {
    0% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.35; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.55; }
}

@keyframes sphereMorphIdle {
    0% { transform: translateY(0px) scale(var(--audio-scale, 1)); border-radius: 50%; }
    50% { transform: translateY(-8px) scale(calc(var(--audio-scale, 1) * 1.02)); border-radius: 46% 54% 50% 50% / 50% 50% 46% 54%; }
    100% { transform: translateY(0px) scale(var(--audio-scale, 1)); border-radius: 50%; }
}

@keyframes sphereMorphListening {
    0% { transform: scale(var(--audio-scale, 1.05)); border-radius: 50%; }
    33% { transform: scale(calc(var(--audio-scale, 1.05) * 1.03)) rotate(5deg); border-radius: 42% 58% 46% 54% / 55% 45% 52% 48%; }
    66% { transform: scale(calc(var(--audio-scale, 1.05) * 0.98)) rotate(-5deg); border-radius: 56% 44% 53% 47% / 46% 54% 45% 55%; }
    100% { transform: scale(var(--audio-scale, 1.05)); border-radius: 50%; }
}

@keyframes sphereMorphSpeaking {
    0% { transform: scale(var(--audio-scale, 1.12)); border-radius: 50%; }
    25% { transform: scale(calc(var(--audio-scale, 1.12) * 1.06)) rotate(10deg); border-radius: 38% 62% 42% 58% / 58% 38% 62% 42%; }
    50% { transform: scale(calc(var(--audio-scale, 1.12) * 0.96)) rotate(-5deg); border-radius: 62% 38% 55% 45% / 42% 62% 38% 58%; }
    75% { transform: scale(calc(var(--audio-scale, 1.12) * 1.04)) rotate(5deg); border-radius: 45% 55% 38% 62% / 58% 42% 55% 45%; }
    100% { transform: scale(var(--audio-scale, 1.12)); border-radius: 50%; }
}

@keyframes sphereGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes sphereSendingPulse {
    0% { transform: scale(1); opacity: 0.85; box-shadow: 0 0 40px 10px rgba(168, 85, 247, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.5); border-radius: 50%; }
    100% { transform: scale(1.03); opacity: 1; box-shadow: 0 0 60px 20px rgba(168, 85, 247, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.7); border-radius: 48% 52% 48% 52% / 52% 48% 52% 48%; }
}

.vf-realtime-send-now {
    flex-shrink: 0;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 4px;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e4e4e7;
}
.vf-realtime-send-now:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.vf-realtime-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: auto;
    padding-bottom: 24px;
}
.vf-realtime-controls--solo {
    gap: 20px;
    padding-top: 2px;
    padding-bottom: 20px;
}
.vf-realtime-ctrl-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.vf-realtime-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}
.vf-realtime-ctrl-btn svg {
    width: 32px;
    height: 32px;
}
.vf-realtime-btn-mute:has(.icon-mic-off:not([style*="display: none"])),
.vf-realtime-btn-mute:has(.icon-mic-off:not([style*="display:none"])) {
    background: #fff;
    color: #000;
}
.vf-realtime-btn-pause {
    background: rgba(255, 255, 255, 0.15);
}
.vf-realtime-btn-pause:hover {
    background: rgba(255, 255, 255, 0.25);
}
.vf-realtime-btn-pause.paused {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

.vf-realtime-btn-end {
    background: #ff3b30;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4);
}
.vf-realtime-btn-end:hover {
    background: #ff1a0d;
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.6);
}
@media (max-width: 768px) {
    .vf-realtime-content {
        height: 100%;
        max-width: 100%;
        border-radius: 0;
        border: none;
    }
}

/* Голосовой модал v3: ровная сетка, спокойные панели, диск + кольцо вместо 3D-шара */
.chatgpt-page .vf-realtime-backdrop {
    background: rgba(0, 0, 0, 0.82) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.chatgpt-page .vf-realtime-content {
    position: relative;
    max-width: min(900px, 96vw);
    width: 100%;
    height: min(90vh, 780px);
    min-height: 520px;
    padding: 20px 26px 18px;
    border-radius: 20px;
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.chatgpt-page .vf-realtime-live-root {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.chatgpt-page .vf-realtime-active {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
    height: auto;
}

.chatgpt-page .vf-realtime-top-bar {
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chatgpt-page .vf-realtime-top-bar-left,
.chatgpt-page .vf-realtime-top-bar-right {
    min-width: 0;
}

.chatgpt-page .vf-realtime-top-bar-right {
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.chatgpt-page .vf-realtime-transcript-chat-wrap {
    display: none !important;
}

.chatgpt-page .vf-realtime-engine-pill,
.chatgpt-page .vf-realtime-voice-pill {
    min-height: 48px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1a1e;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.chatgpt-page .vf-realtime-engine-pill {
    max-width: min(360px, 100%);
}

.chatgpt-page .vf-realtime-voice-pill {
    max-width: min(420px, 100%);
}

.chatgpt-page .vf-realtime-engine-pill:hover:not(:disabled),
.chatgpt-page .vf-realtime-voice-pill:hover:not(:disabled) {
    transform: none;
    border-color: rgba(255, 255, 255, 0.18);
    background: #222226;
}

.chatgpt-page .vf-realtime-voice-pill-avatar {
    width: 34px;
    height: 34px;
    box-shadow: none;
    background: linear-gradient(135deg, var(--voice-c1, #71717a), var(--voice-c2, #3f3f46));
    animation: none;
}

.chatgpt-page .vf-realtime-voice-pill-avatar::after {
    display: none;
}

.chatgpt-page .vf-realtime-voice-pill-kicker {
    font-size: 9px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
}

.chatgpt-page .vf-realtime-voice-pill-name {
    font-size: 13px;
    line-height: 1.2;
    max-width: 100%;
}

.chatgpt-page .vf-realtime-pill-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 2px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    font-weight: 600;
}

.chatgpt-page .vf-realtime-close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1c1c1f;
    box-shadow: none;
}

.chatgpt-page .vf-realtime-close:hover {
    background: #26262b;
    border-color: rgba(255, 255, 255, 0.16);
}

.chatgpt-page .vf-realtime-close svg {
    width: 18px;
    height: 18px;
}

.chatgpt-page .vf-realtime-header {
    display: flex;
    justify-content: center;
    margin: 8px 0 10px;
}

.chatgpt-page .vf-realtime-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: none;
}

.chatgpt-page .vf-realtime-pulse {
    width: 8px;
    height: 8px;
    box-shadow: none;
}

.chatgpt-page .vf-realtime-pulse.active {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.chatgpt-page .vf-realtime-captions {
    width: 100%;
    max-width: min(720px, 96%);
    margin: 0 auto 2px;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-height: min(34vh, 268px);
    flex-shrink: 0;
    overflow: hidden;
}

.chatgpt-page .vf-realtime-caption {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 18px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.chatgpt-page .vf-realtime-caption--user {
    border-left: none;
    border-top: 2px solid rgba(59, 130, 246, 0.55);
}

.chatgpt-page .vf-realtime-caption--assistant {
    border-left: none;
    border-top: 2px solid rgba(139, 92, 246, 0.5);
}

.chatgpt-page .vf-realtime-caption--assistant.vf-realtime-caption--flow {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 2px 10px 10px;
    min-height: 0;
}

.chatgpt-page .vf-realtime-caption--assistant.vf-realtime-caption--flow .vf-realtime-caption-text {
    max-height: min(22vh, 132px);
}

.chatgpt-page .vf-realtime-caption-text--typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-left: 3px;
    vertical-align: -0.14em;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.82);
    animation: vfRtTypeCaret 0.88s step-end infinite;
}

@keyframes vfRtTypeCaret {
    50% {
        opacity: 0;
    }
}

body.chatgpt-page.veo-no-motion .vf-realtime-caption-text--typing::after {
    animation: none !important;
    opacity: 0.72 !important;
}

@media (prefers-reduced-motion: reduce) {
    body.chatgpt-page .vf-realtime-caption-text--typing::after {
        animation: none !important;
        opacity: 0.72 !important;
    }
}

.chatgpt-page .vf-realtime-caption-label {
    font-size: 9px;
    letter-spacing: 0.14em;
    font-weight: 600;
    align-self: center;
}

.chatgpt-page .vf-realtime-caption--assistant .vf-realtime-caption-label {
    color: rgba(196, 181, 253, 0.82);
}

.chatgpt-page .vf-realtime-caption-text {
    margin: 0;
    width: 100%;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
    text-align: center;
    max-height: min(20vh, 112px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.25);
}

.chatgpt-page .vf-realtime-caption-text--karaoke {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-repeat: no-repeat;
    background-size: 280% 100%;
}

.chatgpt-page .vf-realtime-caption-text--karaoke-user {
    background-image: linear-gradient(
        90deg,
        rgba(125, 211, 252, 0.4) 0%,
        rgba(125, 211, 252, 0.4) 38%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(125, 211, 252, 0.4) 62%,
        rgba(125, 211, 252, 0.4) 100%
    );
    animation: vfKaraokeSweepUser 4.8s ease-in-out infinite;
}

.chatgpt-page .vf-realtime-caption-text--karaoke-assistant {
    background-image: linear-gradient(
        90deg,
        rgba(196, 181, 253, 0.4) 0%,
        rgba(196, 181, 253, 0.4) 38%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(216, 180, 254, 0.4) 62%,
        rgba(196, 181, 253, 0.4) 100%
    );
    animation: vfKaraokeSweepAssistant 5.4s ease-in-out infinite;
    animation-delay: 0.4s;
}

@keyframes vfKaraokeSweepUser {
    0%,
    100% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 0% 50%;
    }
}

@keyframes vfKaraokeSweepAssistant {
    0%,
    100% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 0% 50%;
    }
}

@supports not (background-clip: text) {
    .chatgpt-page .vf-realtime-caption-text--karaoke {
        background-image: none !important;
        animation: none;
        -webkit-text-fill-color: unset;
        color: rgba(250, 250, 250, 0.9);
    }

    .chatgpt-page .vf-realtime-caption-text--karaoke-user {
        color: rgba(186, 230, 253, 0.92);
    }

    .chatgpt-page .vf-realtime-caption-text--karaoke-assistant {
        color: rgba(233, 213, 255, 0.92);
    }
}

.chatgpt-page .vf-realtime-main-stage {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 0;
    padding: 4px 0 6px;
}

.chatgpt-page .vf-realtime-sphere-container {
    position: relative;
    flex: 0 0 auto;
    width: min(252px, 58vw);
    max-width: 276px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 6px 0 12px;
}

.chatgpt-page .vf-realtime-bottom-dock {
    gap: 14px;
    padding: 4px 20px 6px;
    box-sizing: border-box;
    align-items: center;
}

.chatgpt-page .vf-realtime-mic-hero-wrap {
    position: relative;
    margin: 0;
    min-height: 200px;
    padding: 12px 0 8px;
    width: 100%;
    max-width: min(480px, 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.chatgpt-page .vf-realtime-mic-hero-deco {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 248px;
    height: 248px;
    margin: -124px 0 0 -124px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(0.5px);
}

.chatgpt-page .vf-realtime-mic-hero-deco--a {
    background: conic-gradient(
        from 220deg,
        rgba(52, 211, 153, 0.35),
        rgba(34, 211, 238, 0.22),
        rgba(129, 140, 248, 0.28),
        rgba(52, 211, 153, 0.35)
    );
    opacity: 0.55;
    animation: vfMicHeroDecoSpin 22s linear infinite;
}

.chatgpt-page .vf-realtime-mic-hero-deco--b {
    width: 214px;
    height: 214px;
    margin: -107px 0 0 -107px;
    background: conic-gradient(
        from 90deg,
        transparent 0deg 80deg,
        rgba(167, 139, 250, 0.2) 120deg,
        rgba(45, 212, 191, 0.18) 220deg,
        transparent 280deg
    );
    opacity: 0.4;
    animation: vfMicHeroDecoSpin 16s linear infinite reverse;
}

.chatgpt-page .vf-realtime-mic-hero-wrap:has(.vf-realtime-mic-hero--off) .vf-realtime-mic-hero-deco--a {
    background: conic-gradient(
        from 200deg,
        rgba(248, 113, 113, 0.28),
        rgba(251, 146, 60, 0.14),
        rgba(248, 113, 113, 0.22)
    );
    opacity: 0.38;
    animation-duration: 28s;
}

.chatgpt-page .vf-realtime-mic-hero-wrap:has(.vf-realtime-mic-hero--off) .vf-realtime-mic-hero-deco--b {
    opacity: 0.22;
    animation-duration: 20s;
}

.chatgpt-page .vf-realtime-mic-hero-wrap::before,
.chatgpt-page .vf-realtime-mic-hero-wrap::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 172px;
    height: 172px;
    margin: -86px 0 0 -86px;
    border-radius: 50%;
    border: 2px solid rgba(52, 211, 153, 0.42);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    box-sizing: border-box;
}

.chatgpt-page .vf-realtime-mic-hero-wrap::after {
    border-color: rgba(34, 211, 238, 0.32);
}

.chatgpt-page .vf-realtime-mic-hero-wrap:has(.vf-realtime-mic-hero--on)::before {
    animation: vfChatMicRipple 2.5s ease-out infinite;
}

.chatgpt-page .vf-realtime-mic-hero-wrap:has(.vf-realtime-mic-hero--on)::after {
    animation: vfChatMicRipple 2.5s ease-out infinite 1.25s;
}

.chatgpt-page .vf-realtime-mic-hero-wrap:has(.vf-realtime-mic-hero--off)::before,
.chatgpt-page .vf-realtime-mic-hero-wrap:has(.vf-realtime-mic-hero--off)::after {
    animation: none;
    opacity: 0;
}

.chatgpt-page .vf-realtime-mic-hero-ring {
    left: 50%;
    top: 50%;
    width: 244px;
    height: 244px;
    margin: -122px 0 0 -122px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 26%, rgba(52, 211, 153, 0.28) 0%, transparent 46%),
        radial-gradient(circle at 72% 70%, rgba(34, 211, 238, 0.2) 0%, transparent 52%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 58%);
    opacity: 0.65;
    animation: vfChatMicRingAura 3.3s ease-in-out infinite;
}

.chatgpt-page .vf-realtime-mic-hero-wrap:has(.vf-realtime-mic-hero--off) .vf-realtime-mic-hero-ring {
    opacity: 0.32;
    animation: vfChatMicRingMuted 3.6s ease-in-out infinite;
    background: radial-gradient(circle, rgba(248, 113, 113, 0.14) 0%, transparent 66%);
}

.chatgpt-page .vf-realtime-mic-hero-wrap:has(.vf-realtime-mic-hero--on) .vf-realtime-mic-hero-ring {
    animation: vfChatMicRingAura 3.3s ease-in-out infinite;
    opacity: 0.72;
}

.chatgpt-page .vf-realtime-mic-hero {
    position: relative;
    z-index: 2;
    width: 174px;
    height: 174px;
    border: none;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.11) 0%, transparent 42%),
        linear-gradient(165deg, rgba(39, 39, 48, 0.95) 0%, rgba(18, 18, 22, 0.98) 55%, #0c0c0f 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 24px 56px rgba(0, 0, 0, 0.55);
    color: #f8fafc;
    overflow: hidden;
    transition:
        transform 0.22s cubic-bezier(0.34, 1.35, 0.64, 1),
        filter 0.2s ease;
}

.chatgpt-page .vf-realtime-mic-hero--on {
    background: linear-gradient(
        145deg,
        #5eead4 0%,
        #34d399 22%,
        #10b981 44%,
        #0d9488 66%,
        #0891b2 88%,
        #22d3ee 100%
    );
    background-size: 240% 240%;
    color: #042f2e;
    animation: vfChatMicBtnGradient 5s ease infinite, vfChatMicBtnGlow 2.35s ease-in-out infinite;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.42) inset,
        0 -20px 48px rgba(6, 78, 59, 0.35) inset,
        0 0 64px rgba(45, 212, 191, 0.45),
        0 26px 60px rgba(0, 0, 0, 0.48);
}

.chatgpt-page .vf-realtime-mic-hero--on::before {
    content: '';
    position: absolute;
    inset: -40%;
    border-radius: 50%;
    background: linear-gradient(
        105deg,
        transparent 36%,
        rgba(255, 255, 255, 0.14) 46%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0.12) 54%,
        transparent 64%
    );
    background-size: 260% 260%;
    background-position: 0% 50%;
    animation: vfChatMicShine 2.9s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.chatgpt-page .vf-realtime-mic-hero--off::before {
    display: none;
}

.chatgpt-page .vf-realtime-mic-hero--off {
    animation: vfChatMicMutedBtn 3.2s ease-in-out infinite !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 38%),
        radial-gradient(circle at 50% 118%, rgba(248, 113, 113, 0.12) 0%, transparent 48%),
        linear-gradient(165deg, #2e2e36 0%, #141416 100%);
    color: #ffe4e6;
    box-shadow:
        0 0 0 1px rgba(248, 113, 113, 0.45) inset,
        0 0 40px rgba(248, 113, 113, 0.12),
        0 22px 50px rgba(0, 0, 0, 0.55) !important;
}

.chatgpt-page .vf-realtime-mic-hero-ico-wrap {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 12px 28px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chatgpt-page .vf-realtime-mic-hero--on .vf-realtime-mic-hero-ico-wrap {
    background: rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.55),
        0 14px 32px rgba(4, 47, 46, 0.2);
    animation: vfChatMicIconPulse 1.85s ease-in-out infinite;
}

.chatgpt-page .vf-realtime-mic-hero--off .vf-realtime-mic-hero-ico-wrap {
    background: rgba(0, 0, 0, 0.45);
    animation: none;
}

.chatgpt-page .vf-realtime-mic-hero-ico {
    width: 48px;
    height: 48px;
    display: block;
}

.chatgpt-page .vf-realtime-mic-hero-inner {
    position: relative;
    z-index: 1;
    gap: 8px;
    padding: 16px 20px 14px;
    max-width: 260px;
}

.chatgpt-page .vf-realtime-mic-hero-label {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.chatgpt-page .vf-realtime-mic-hero--on .vf-realtime-mic-hero-label {
    color: rgba(4, 40, 36, 0.96);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.chatgpt-page .vf-realtime-mic-hero-hint {
    font-size: 11px;
    line-height: 1.38;
    max-width: 220px;
    color: rgba(255, 255, 255, 0.72);
}

.chatgpt-page .vf-realtime-mic-hero--on .vf-realtime-mic-hero-hint {
    color: rgba(6, 54, 48, 0.9);
}

.chatgpt-page .vf-realtime-mic-hero:hover {
    transform: scale(1.035);
    filter: brightness(1.05);
}

.chatgpt-page .vf-realtime-mic-hero:active {
    transform: scale(0.97);
}

.chatgpt-page .vf-realtime-mic-hero--off:hover {
    filter: brightness(1.06);
}

@keyframes vfMicHeroDecoSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes vfChatMicRipple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.52;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.64);
        opacity: 0;
    }
}

@keyframes vfChatMicRingAura {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.93);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.07);
        opacity: 0.9;
    }
}

@keyframes vfChatMicRingMuted {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.97);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.45;
    }
}

@keyframes vfChatMicBtnGradient {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes vfChatMicBtnGlow {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.38) inset,
            0 0 48px rgba(52, 211, 153, 0.4),
            0 22px 52px rgba(0, 0, 0, 0.48);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.48) inset,
            0 0 72px rgba(34, 211, 238, 0.45),
            0 24px 56px rgba(0, 0, 0, 0.5);
    }
}

@keyframes vfChatMicShine {
    0% {
        background-position: -80% 50%;
    }
    100% {
        background-position: 180% 50%;
    }
}

@keyframes vfChatMicIconPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.07);
    }
}

@keyframes vfChatMicMutedBtn {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(248, 113, 113, 0.38) inset,
            0 0 24px rgba(248, 113, 113, 0.1),
            0 16px 42px rgba(0, 0, 0, 0.52) !important;
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(248, 113, 113, 0.48) inset,
            0 0 42px rgba(248, 113, 113, 0.2),
            0 16px 42px rgba(0, 0, 0, 0.52) !important;
    }
}

.chatgpt-page #vfRealtimeTranscriptChatWrap {
    display: none !important;
    margin: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.chatgpt-page .vf-realtime-controls {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 10px 12px 16px;
    box-sizing: border-box;
}

.chatgpt-page .vf-realtime-controls--solo {
    gap: 36px;
    padding: 10px 12px 16px;
}

.chatgpt-page .vf-realtime-ctrl-btn {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 8px 22px rgba(0, 0, 0, 0.35);
}

.chatgpt-page .vf-realtime-ctrl-btn svg {
    width: 26px;
    height: 26px;
}

.chatgpt-page .vf-realtime-btn-pause {
    display: none !important;
}

/* Микрофон и «Стоп»: без клиппинга теней родителем */
.chatgpt-page .vf-realtime-bottom-dock {
    overflow: visible;
}

.chatgpt-page .vf-realtime-btn-mic {
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, #0f0c29 0%, #1e1b4b 30%, #312e81 60%, #4c1d95 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 4px 22px rgba(99, 102, 241, 0.35),
        0 0 32px rgba(139, 92, 246, 0.12);
    color: #e0e7ff;
    animation: none !important;
    transition: transform 0.15s ease, filter 0.2s ease, border-color 0.2s ease;
    position: relative;
    z-index: 1;
}

.chatgpt-page .vf-realtime-btn-mic.vf-realtime-mic-hero--on::before,
.chatgpt-page .vf-realtime-btn-mic.vf-realtime-mic-hero--on::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: micRipples 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

.chatgpt-page .vf-realtime-btn-mic.vf-realtime-mic-hero--on::after {
    animation-delay: 1.2s;
}

@keyframes micRipples {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.chatgpt-page .vf-realtime-btn-mic.vf-realtime-mic-hero--off {
    background: linear-gradient(145deg, rgba(48, 48, 56, 0.98) 0%, rgba(24, 24, 30, 1) 100%);
    color: rgba(254, 202, 202, 0.96);
    border-color: rgba(248, 113, 113, 0.42);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35) inset,
        0 6px 18px rgba(0, 0, 0, 0.45);
}

.chatgpt-page .vf-realtime-btn-mic:hover {
    filter: brightness(1.07);
    transform: scale(1.05);
}

.chatgpt-page .vf-realtime-btn-mic:active {
    transform: scale(0.96);
}

.chatgpt-page .vf-realtime-btn-mic .vf-realtime-mic-ico {
    width: 30px;
    height: 30px;
}

.chatgpt-page .vf-realtime-btn-end {
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(165deg, #f43f5e 0%, #dc2626 48%, #b91c1c 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.22) inset,
        0 6px 20px rgba(220, 38, 38, 0.4);
}

.chatgpt-page .vf-realtime-btn-end .vf-octicon--hangup {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    filter: none;
}

.chatgpt-page .vf-realtime-btn-end:hover {
    background: linear-gradient(165deg, #fb7185 0%, #e11d48 48%, #991b1b 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.18) inset,
        0 8px 26px rgba(220, 38, 38, 0.48);
}

.chatgpt-page .vf-realtime-btn-end:active {
    transform: scale(0.96);
}

.chatgpt-page .vf-realtime-setup,
.chatgpt-page .vf-realtime-engine-setup {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 4px 12px;
    -webkit-overflow-scrolling: touch;
}

.chatgpt-page .vf-realtime-engine-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(10, 10, 14, 0.55) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.chatgpt-page .vf-realtime-engine-card--active {
    border-color: rgba(129, 140, 248, 0.55);
    background: linear-gradient(165deg, rgba(99, 102, 241, 0.18) 0%, rgba(15, 12, 41, 0.75) 100%);
    box-shadow:
        0 0 24px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chatgpt-page .vf-voice-sphere-preview {
    width: 120px;
    height: 120px;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.12), transparent 42%),
        linear-gradient(165deg, var(--voice-c1, #52525b) 0%, var(--voice-c2, #3f3f46) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: none;
}

.chatgpt-page .vf-voice-sphere-preview::before {
    display: none;
}

@media (max-width: 560px) {
    .chatgpt-page .vf-realtime-content {
        height: 100%;
        min-height: 0;
        max-width: 100%;
        padding: 16px 14px calc(18px + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
    }

    .chatgpt-page .vf-realtime-top-bar {
        gap: 8px;
    }

    .chatgpt-page .vf-realtime-engine-pill {
        max-width: 44vw;
    }

    .chatgpt-page .vf-realtime-voice-pill {
        max-width: 42vw;
    }

    .chatgpt-page .vf-realtime-pill-change {
        padding: 4px 5px;
    }

    .chatgpt-page .vf-realtime-pill-change-label {
        display: none;
    }

    .chatgpt-page .vf-realtime-voice-pill-name {
        max-width: 82px;
        font-size: 13px;
    }

    .chatgpt-page .vf-realtime-captions {
        max-width: 100%;
        max-height: min(40vh, 300px);
        padding: 0 6px;
        gap: 10px;
    }

    .chatgpt-page .vf-realtime-caption-text {
        font-size: 14px;
        max-height: min(22vh, 120px);
    }

    .chatgpt-page .vf-realtime-sphere-container {
        min-height: 0;
    }

    .chatgpt-page .vf-realtime-bottom-dock {
        padding: 2px 12px 4px;
        gap: 12px;
    }

    .chatgpt-page .vf-realtime-ctrl-btn {
        width: 52px;
        height: 52px;
    }

    .chatgpt-page .vf-realtime-btn-mic {
        width: 64px;
        height: 64px;
        min-width: 64px;
        min-height: 64px;
    }

    .chatgpt-page .vf-realtime-btn-end {
        width: 64px;
        height: 64px;
        min-width: 64px;
        min-height: 64px;
    }

    .chatgpt-page .vf-realtime-btn-end .vf-octicon--hangup {
        width: 28px;
        height: 28px;
    }

    .chatgpt-page .vf-realtime-controls {
        gap: 28px;
        max-width: 100%;
    }
}

/* Голосовая реплика пользователя в ленте (иконка + плеер) */
.chatgpt-page .gpt-text-body--voice-user {
    min-width: 0;
}

.chatgpt-page .gpt-voice-user-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-width: 100%;
}

.chatgpt-page .gpt-voice-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    border-radius: 999px;
    background: rgba(30, 27, 75, 0.45);
    border: 1px solid rgba(129, 140, 248, 0.35);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.chatgpt-page .gpt-voice-user-chip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0f0c29 0%, #1e1b4b 30%, #312e81 60%, #4c1d95 100%);
    box-shadow:
        0 4px 24px rgba(99, 102, 241, 0.35),
        0 0 40px rgba(139, 92, 246, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.chatgpt-page .gpt-voice-user-chip__icon svg {
    display: block;
}

.chatgpt-page .gpt-voice-user-chip__label {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--gpt-text);
    white-space: nowrap;
}

.chatgpt-page .gpt-voice-user-audio {
    width: 100%;
    max-width: min(320px, 100%);
    height: 36px;
    border-radius: 8px;
    opacity: 0.95;
}

/* mobile chat features (dce7919) */

html.vf-text-chat-boot-restore #welcomeScreen.gpt-welcome-screen {
    display: none !important;
}
html.vf-text-chat-boot-restore #gptChatScrollHub.gpt-chat-scroll-hub {
    display: flex !important;
}
html.vf-text-chat-boot-restore #gptChatScrollHub .gpt-messages-wrapper {
    display: flex !important;
}

html.vf-text-chat-boot-restore body.vf-chat-splash-booting.mobile-version.vf-text-chat-page #welcomeScreen.gpt-welcome-screen {
    display: none !important;
    visibility: hidden !important;
}

.gpt-older-history-loader {
    width: 100%;
    text-align: center;
    padding: 8px 12px 4px;
    font-size: 12px;
    opacity: 0.72;
    pointer-events: none;
}

.vf-text-chat-memory-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.chatgpt-page .vf-text-chat-memory-hint-trigger.vf-chat-hint-trigger {
    flex-shrink: 0;
}
.chatgpt-page .vf-text-chat-memory-hint-tooltip.vf-gpt-settings-hint-tooltip {
    min-width: 0 !important;
    max-width: min(300px, calc(100vw - 1.5rem));
    font-size: 0.875rem;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

body.chatgpt-page.veo-generation-body.mobile-version
    .vf-text-chat-memory-hint-tooltip.veo-tooltip.veo-tooltip--long.vf-gpt-settings-hint-tooltip {
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    width: auto !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    line-height: 1.42 !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

body.chatgpt-page.veo-generation-body.mobile-version
    .vf-text-chat-memory-hint-tooltip.vf-gpt-settings-hint-tooltip--fixed {
    z-index: 100050 !important;
}
.chatgpt-page .vf-text-chat-memory-hint-trigger.vf-chat-hint-trigger--open .vf-text-chat-memory-hint-tooltip.vf-gpt-settings-hint-tooltip,
.chatgpt-page .vf-text-chat-memory-hint-trigger.vf-chat-hint-trigger--open .vf-text-chat-memory-hint-tooltip.vf-gpt-settings-hint-tooltip.vf-gpt-settings-hint-tooltip--fixed,
.chatgpt-page .vf-chat-hint-trigger.vf-chat-hint-trigger--open .veo-tooltip.vf-gpt-settings-hint-tooltip,
.chatgpt-page .vf-chat-hint-trigger.vf-chat-hint-trigger--open .veo-tooltip.vf-gpt-settings-hint-tooltip.vf-gpt-settings-hint-tooltip--fixed,
.chatgpt-page .vf-text-chat-memory-hint-tooltip.vf-gpt-settings-hint-tooltip--fixed.vf-gpt-settings-hint-tooltip--shown,
.chatgpt-page .vf-gpt-settings-hint-tooltip.vf-gpt-settings-hint-tooltip--fixed.vf-gpt-settings-hint-tooltip--shown,
body.chatgpt-page.veo-generation-body.mobile-version
    .vf-text-chat-memory-hint-tooltip.vf-gpt-settings-hint-tooltip--fixed.vf-gpt-settings-hint-tooltip--shown,
body.chatgpt-page.veo-generation-body.mobile-version
    .vf-gpt-settings-hint-tooltip.vf-gpt-settings-hint-tooltip--fixed.vf-gpt-settings-hint-tooltip--shown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}
