/* VibeDesk — палитра "blue" (Blue Office).
   Философия: та же "анатомия", что у light-office, но navy-акценты вместо серо-синих.
   Кузина light-office — повторяем основные блоки: переменные, chrome, glass, hero, KB, Calendar, modal.
   См. docs/UI_STYLES_AND_THEMES.md */

/* === 1) Переменные темы === */
body[data-color-palette="blue"] {
    /* Поля */
    --vd-bg: #eaf0f6;
    --vd-bg-deep: #dde6f0;
    --vd-panel: #f6f9fc;
    --vd-panel-strong: #ffffff;
    --vd-panel-soft: #eaf0f6;
    --vd-border: #c5d4e4;
    --vd-border-soft: #dae4ef;
    --vd-border-strong: #9cb3cc;

    /* Акценты (тёплый royal-blue) */
    --vd-accent: #1d4ed8;
    --vd-accent-strong: #1e3a8a;
    --vd-accent-soft: rgba(29, 78, 216, 0.12);
    --vd-accent-soft-2: rgba(29, 78, 216, 0.22);
    --vd-accent-glow: 0 0 0 3px rgba(29, 78, 216, 0.18);

    /* Chrome (sidebar / topbar) — более глубокий navy, чем у light-office */
    --vd-chrome-bg: #1b2a45;
    --vd-chrome-bg-soft: #24375a;
    --vd-chrome-flat: #2c4773;
    --vd-chrome-text: #f4f7fb;
    --vd-chrome-text-muted: rgba(244, 247, 251, 0.74);
    --vd-chrome-text-faint: rgba(244, 247, 251, 0.5);
    --vd-chrome-border: rgba(255, 255, 255, 0.08);
    --vd-chrome-active-bg: rgba(96, 165, 250, 0.22);
    --vd-chrome-active-text: #dbeafe;

    --vd-chrome-gradient-135-from: rgba(27, 42, 69, 0.96);
    --vd-chrome-gradient-135-to: rgba(36, 55, 90, 0.92);
    --vd-chrome-sidebar-glass-from: rgba(27, 42, 69, 0.79);
    --vd-chrome-sidebar-glass-to: rgba(18, 29, 51, 0.77);
    --vd-chrome-panel-180-from: rgba(27, 42, 69, 0.96);
    --vd-chrome-panel-180-to: rgba(18, 29, 51, 0.94);
    --vd-chrome-kb-head-180-from: rgba(27, 42, 69, 0.96);
    --vd-chrome-kb-head-180-to: rgba(18, 29, 51, 0.94);
    --vd-chrome-shadow-rgb: 15, 23, 42;

    /* Текст */
    --vd-text: #0f172a;
    --vd-text-strong: #020617;
    --vd-text-muted: #475569;
    --vd-text-faint: #64748b;

    /* Тени */
    --vd-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
    --vd-shadow-md: 0 8px 22px rgba(27, 38, 59, 0.14);
    --vd-shadow-lg: 0 18px 42px rgba(27, 38, 59, 0.2);

    --vd-overlay: transparent;

    /* Чипы */
    --vd-chip-violet-bg: rgba(110, 137, 207, 0.16);
    --vd-chip-violet-text: #3d5a99;
    --vd-chip-violet-border: rgba(110, 137, 207, 0.3);
    --vd-chip-blue-bg: rgba(37, 99, 235, 0.18);
    --vd-chip-blue-text: #1e40af;
    --vd-chip-blue-border: rgba(37, 99, 235, 0.32);
    --vd-chip-emerald-bg: rgba(16, 185, 129, 0.16);
    --vd-chip-emerald-text: #065f46;
    --vd-chip-emerald-border: rgba(16, 185, 129, 0.3);
    --vd-chip-orange-bg: rgba(234, 124, 51, 0.16);
    --vd-chip-orange-text: #9a4f14;
    --vd-chip-orange-border: rgba(234, 124, 51, 0.3);
    --vd-chip-red-bg: rgba(220, 53, 69, 0.14);
    --vd-chip-red-text: #991b1b;
    --vd-chip-red-border: rgba(220, 53, 69, 0.3);
    --vd-chip-yellow-bg: rgba(234, 179, 8, 0.16);
    --vd-chip-yellow-text: #854d0e;
    --vd-chip-yellow-border: rgba(234, 179, 8, 0.3);
    --vd-chip-gray-bg: rgba(100, 116, 139, 0.14);
    --vd-chip-gray-text: #334155;
    --vd-chip-gray-border: rgba(100, 116, 139, 0.28);
    --vd-glass-card-from: rgba(255, 255, 255, 0.74);
    --vd-glass-card-to: rgba(234, 242, 252, 0.58);
    /* UI consistency — home / chat / profile (S4) */
    --vd-card-head-bg: transparent;
    --vd-card-head-fg: var(--vd-text);
    --vd-card-head-border: var(--vd-border-soft);
    --vd-stat-delta-up: var(--vd-chip-emerald-text);
    --vd-stat-delta-dn: var(--vd-chip-orange-text);
  /* Messenger — chrome как vd-sidebar (navy glass, белый текст) */
    --zen-msg-area-bg: linear-gradient(180deg, rgba(27, 42, 69, 0.88) 0%, rgba(18, 29, 51, 0.94) 100%);
    --zen-msg-area-fg: var(--vd-chrome-text);
    --zen-msg-area-muted: var(--vd-chrome-text-muted);
    --zen-msg-area-empty-icon: #93c5fd;
    --zen-msg-composer-bg: linear-gradient(180deg, var(--vd-chrome-bg-soft) 0%, var(--vd-chrome-bg) 100%);
    --zen-msg-border: var(--vd-chrome-border);
    --zen-msg-row-active-bg: var(--vd-chrome-active-bg);
    --zen-msg-row-active-ring: rgba(147, 197, 253, 0.38);
    --zen-msg-panel-surface: rgba(27, 42, 69, 0.72);
    --zen-msg-panel-surface-soft: rgba(255, 255, 255, 0.08);
    --zen-msg-sidebar-bg: transparent;
    --zen-messenger-header-bg: linear-gradient(135deg, var(--vd-chrome-gradient-135-from) 0%, var(--vd-chrome-gradient-135-to) 100%);
    --zen-messenger-header-fg: #ffffff;
    --zen-messenger-header-muted: rgba(255, 255, 255, 0.78);
    --zen-messenger-header-border: var(--vd-chrome-border);
    --zen-msg-head-search-bg: rgba(255, 255, 255, 0.12);
    --zen-msg-head-search-fg: #ffffff;
    --zen-msg-head-search-muted: rgba(255, 255, 255, 0.65);
    --zen-msg-head-badge-bg: rgba(255, 255, 255, 0.16);
    --zen-msg-head-badge-fg: #ffffff;
    --zen-msg-sidebar-tab-fg: rgba(255, 255, 255, 0.78);
    --zen-msg-sidebar-tab-hover-fg: #ffffff;
    --zen-msg-sidebar-tab-hover-bg: rgba(255, 255, 255, 0.08);
    --zen-msg-sidebar-tab-active-fg: #ffffff;
    --zen-msg-sidebar-tab-active-bg: var(--vd-chrome-active-bg);
    --zen-msg-sidebar-tab-active-ring: rgba(147, 197, 253, 0.35);
    --zen-msg-bubble-mine-bg: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --zen-msg-bubble-mine-fg: #ffffff;
    --zen-msg-bubble-mine-border: #1d4ed8;
    --zen-msg-bubble-other-bg: rgba(36, 55, 90, 0.92);
    --zen-msg-bubble-other-fg: var(--vd-chrome-text);
    --zen-msg-bubble-other-border: rgba(255, 255, 255, 0.12);
    --zen-msg-wallpaper-doodle-blue-base: linear-gradient(180deg, rgba(27, 42, 69, 0.92) 0%, rgba(18, 29, 51, 0.96) 100%);
    --zen-msg-wallpaper-doodle-light-base: linear-gradient(180deg, rgba(36, 55, 90, 0.9) 0%, rgba(18, 29, 51, 0.94) 100%);
    --zen-msg-wallpaper-doodle-warm-base: linear-gradient(180deg, rgba(36, 55, 90, 0.9) 0%, rgba(27, 42, 69, 0.94) 100%);
    --zen-msg-wallpaper-doodle-mint-base: linear-gradient(180deg, rgba(27, 42, 69, 0.9) 0%, rgba(30, 58, 138, 0.35) 100%);
    --zen-msg-wallpaper-doodle-slate-base: linear-gradient(180deg, rgba(18, 29, 51, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
    --zen-msg-wallpaper-doodle-violet-base: linear-gradient(180deg, rgba(30, 27, 75, 0.5) 0%, rgba(18, 29, 51, 0.96) 100%);
    --vd-profile-panel-glass-bg: rgba(255, 255, 255, 0.58);
    --vd-profile-panel-glass-border: rgba(255, 255, 255, 0.48);
    --vd-profile-tabs-bar-bg: rgba(255, 255, 255, 0.46);
}

/* === 2) Card / card-header (общий паттерн hero) === */
body.zen-body[data-color-palette="blue"] .main-wrapper .card:not(.bg-primary):not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info):not(.bg-dark):not(.vd-glass-card):not(.zen-auth-card) {
    border: 1px solid var(--vd-border-strong) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px rgba(27, 38, 59, 0.06) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%) !important;
}
body.zen-body[data-color-palette="blue"] .main-wrapper .card > .card-header:not(.zen-chat-panel-head):not(.vd-kb-root-head):not(.bg-transparent) {
    background: linear-gradient(135deg, var(--vd-chrome-gradient-135-from) 0%, var(--vd-chrome-gradient-135-to) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fbff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.zen-body[data-color-palette="blue"] .main-wrapper .card > .card-header:not(.zen-chat-panel-head):not(.vd-kb-root-head):not(.bg-transparent) h1,
body.zen-body[data-color-palette="blue"] .main-wrapper .card > .card-header:not(.zen-chat-panel-head):not(.vd-kb-root-head):not(.bg-transparent) h2,
body.zen-body[data-color-palette="blue"] .main-wrapper .card > .card-header:not(.zen-chat-panel-head):not(.vd-kb-root-head):not(.bg-transparent) h3,
body.zen-body[data-color-palette="blue"] .main-wrapper .card > .card-header:not(.zen-chat-panel-head):not(.vd-kb-root-head):not(.bg-transparent) h4,
body.zen-body[data-color-palette="blue"] .main-wrapper .card > .card-header:not(.zen-chat-panel-head):not(.vd-kb-root-head):not(.bg-transparent) h5,
body.zen-body[data-color-palette="blue"] .main-wrapper .card > .card-header:not(.zen-chat-panel-head):not(.vd-kb-root-head):not(.bg-transparent) .mb-0 {
    color: #f8fbff !important;
}
body.zen-body[data-color-palette="blue"] .main-wrapper .card > .card-header:not(.zen-chat-panel-head):not(.vd-kb-root-head):not(.bg-transparent) .text-muted {
    color: rgba(248, 251, 255, 0.82) !important;
}

/* === 3) Формы + границы в тон === */
body.zen-body[data-color-palette="blue"] .main-wrapper .card-header:not(.zen-chat-panel-head):not(.vd-kb-root-head),
body.zen-body[data-color-palette="blue"] .main-wrapper .card-footer,
body.zen-body[data-color-palette="blue"] .main-wrapper .list-group-item,
body.zen-body[data-color-palette="blue"] .modal-header:not(.vd-modal-hero):not(.zen-ticket-hero),
body.zen-body[data-color-palette="blue"] .modal-footer {
    border-color: var(--vd-border-strong) !important;
}
body.zen-body[data-color-palette="blue"] .main-wrapper .form-control,
body.zen-body[data-color-palette="blue"] .main-wrapper .form-select,
body.zen-body[data-color-palette="blue"] .main-wrapper textarea,
body.zen-body[data-color-palette="blue"] .main-wrapper .input-group-text,
body.zen-body[data-color-palette="blue"] .dropdown-menu,
body.zen-body[data-color-palette="blue"] .modal-content {
    border: 1px solid var(--vd-border-strong) !important;
}
body.zen-body[data-color-palette="blue"] .main-wrapper .form-control:focus,
body.zen-body[data-color-palette="blue"] .main-wrapper .form-select:focus,
body.zen-body[data-color-palette="blue"] .main-wrapper textarea:focus {
    border-color: var(--vd-accent) !important;
    box-shadow: var(--vd-accent-glow) !important;
}
body.zen-body[data-color-palette="blue"] .main-wrapper .table {
    --bs-table-border-color: var(--vd-border-strong);
}
body.zen-body[data-color-palette="blue"] .main-wrapper .table > :not(caption) > * > * {
    border-bottom-color: var(--vd-border-strong) !important;
}

/* === 4) vd-glass-card / vd-glass (светлый glass в navy-тон) === */
body[data-color-palette="blue"] .vd-glass-card:not(.vd-glass-card--guest-cta) {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.85) 0%, rgba(234, 242, 250, 0.75) 100%) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(27, 42, 69, 0.14) !important;
    box-shadow: 0 10px 30px rgba(27, 42, 69, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.75);
    color: var(--vd-text) !important;
}
body[data-color-palette="blue"] .vd-glass:not(.vd-glass-card--guest-cta),
body[data-color-palette="blue"] .vd-glow-border {
    background: linear-gradient(180deg, rgba(250, 253, 255, 0.88) 0%, rgba(235, 243, 251, 0.8) 100%) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(27, 42, 69, 0.16) !important;
    box-shadow: 0 8px 20px rgba(27, 42, 69, 0.08);
}
body[data-color-palette="blue"] .vd-glass-card .card-header,
body[data-color-palette="blue"] .vd-glass-card .card-footer {
    border-color: rgba(27, 42, 69, 0.14) !important;
}
body[data-color-palette="blue"] .vd-text-gradient {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === 5) Sidebar (navy, как у light-office, но плотнее) === */
body[data-color-palette="blue"] .vd-sidebar {
    background: linear-gradient(180deg, var(--vd-chrome-sidebar-glass-from) 0%, var(--vd-chrome-sidebar-glass-to) 100%) !important;
    color: #ffffff !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 4px 0 28px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
body[data-color-palette="blue"] .vd-side-brand-title,
body[data-color-palette="blue"] .vd-side-brand-sub,
body[data-color-palette="blue"] .vd-nav-link,
body[data-color-palette="blue"] .vd-nav-link-label,
body[data-color-palette="blue"] .vd-side-section-title,
body[data-color-palette="blue"] .vd-side-group-title,
body[data-color-palette="blue"] .vd-side-group-title-label,
body[data-color-palette="blue"] .vd-side-bell,
body[data-color-palette="blue"] .vd-side-user-name,
body[data-color-palette="blue"] .vd-side-user-mail,
body[data-color-palette="blue"] .vd-nav-badge {
    color: #ffffff !important;
}
body[data-color-palette="blue"] .vd-side-brand-sub,
body[data-color-palette="blue"] .vd-side-user-mail {
    color: rgba(255, 255, 255, 0.78) !important;
}
body[data-color-palette="blue"] .vd-side-hamburger {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
}
body[data-color-palette="blue"] .vd-side-hamburger:hover {
    background: rgba(255, 255, 255, 0.14) !important;
}
body[data-color-palette="blue"] .vd-nav-link:hover,
body[data-color-palette="blue"] .vd-side-group-title:hover,
body[data-color-palette="blue"] .vd-side-bell:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}
body[data-color-palette="blue"] .vd-nav-link.active {
    background: rgba(96, 165, 250, 0.22) !important;
    border-left-color: #93c5fd !important;
    color: #ffffff !important;
}

/* === 6) Топбар + футер (тон в тон sidebar) === */
body[data-color-palette="blue"] .vd-topbar {
    background: linear-gradient(180deg, var(--vd-chrome-bg-soft) 0%, var(--vd-chrome-bg) 100%) !important;
    border-bottom: 1px solid var(--vd-chrome-border) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
body[data-color-palette="blue"] .footer {
    background: var(--vd-chrome-bg) !important;
    color: rgba(248, 250, 252, 0.78) !important;
    border-top: 1px solid var(--vd-chrome-border) !important;
}

/* === 7) Hero-карточки (Home / Feed / Boards) === */
body[data-color-palette="blue"] .vd-home .vd-home-hero.zen-ticket-hero,
body[data-color-palette="blue"] .vd-page-title-card,
body[data-color-palette="blue"] .container.py-4 > .card.border-0.shadow-sm.mb-4.overflow-hidden > .card-body.vd-chrome-surface {
    background: linear-gradient(135deg, var(--vd-chrome-gradient-135-from) 0%, var(--vd-chrome-gradient-135-to) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #f8fbff !important;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
body[data-color-palette="blue"] .vd-home .vd-home-hero .vd-text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #bfdbfe 35%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* === 8) Knowledge Base (такой же паттерн, синяя шапка) === */
body[data-color-palette="blue"] .vd-kb-root {
    background: linear-gradient(180deg, rgba(248, 251, 254, 0.86) 0%, rgba(234, 242, 250, 0.8) 100%) !important;
    border: 1px solid rgba(27, 42, 69, 0.16) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}
body[data-color-palette="blue"] .vd-kb-root-head {
    background: linear-gradient(180deg, var(--vd-chrome-kb-head-180-from) 0%, var(--vd-chrome-kb-head-180-to) 100%) !important;
    color: #f8fbff !important;
    border-bottom: 0 !important;
}
body[data-color-palette="blue"] .vd-kb-root-head h2,
body[data-color-palette="blue"] .vd-kb-root-head .fw-bold {
    color: #f8fbff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* === 9) Calendar (шапка и сетка) === */
body[data-color-palette="blue"] #calendar-container {
    background: linear-gradient(180deg, rgba(240, 246, 252, 0.94) 0%, rgba(225, 235, 246, 0.9) 100%) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}
body[data-color-palette="blue"] #calendar-container > .card-header {
    background: linear-gradient(135deg, var(--vd-chrome-gradient-135-from) 0%, var(--vd-chrome-gradient-135-to) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 1rem 1rem 0 0 !important;
}
body[data-color-palette="blue"] #calendar-container > .card-header h2,
body[data-color-palette="blue"] #calendar-container > .card-header .fw-bold.text-dark {
    color: #f8fbff !important;
}
body[data-color-palette="blue"] #calendar-container > .card-header i.text-primary {
    color: #bfdbfe !important;
}
body[data-color-palette="blue"] .calendar-grid {
    background: rgba(218, 228, 240, 0.9) !important;
    border-color: rgba(218, 228, 240, 0.9) !important;
    border-radius: 14px;
}
body[data-color-palette="blue"] .calendar-cell {
    border-color: rgba(140, 162, 187, 0.18) !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* === 10) Modal hero === */
body[data-color-palette="blue"] .modal-header.vd-modal-hero.zen-ticket-hero {
    background: linear-gradient(135deg, var(--vd-chrome-gradient-135-from) 0%, var(--vd-chrome-gradient-135-to) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}
body[data-color-palette="blue"] .modal-header.vd-modal-hero.zen-ticket-hero .modal-title {
    color: #f8fbff !important;
}

/* === 11) Заголовки main-wrapper: тёмный текст как у light-office === */
body[data-color-palette="blue"] .main-wrapper .card-title,
body[data-color-palette="blue"] .main-wrapper h1:not(.vd-text-gradient):not(.text-white),
body[data-color-palette="blue"] .main-wrapper h2:not(.vd-text-gradient):not(.text-white),
body[data-color-palette="blue"] .main-wrapper h3:not(.vd-text-gradient):not(.text-white),
body[data-color-palette="blue"] .main-wrapper h4:not(.vd-text-gradient):not(.text-white),
body[data-color-palette="blue"] .main-wrapper h5:not(.vd-text-gradient):not(.text-white),
body[data-color-palette="blue"] .main-wrapper .h1:not(.vd-text-gradient):not(.text-white),
body[data-color-palette="blue"] .main-wrapper .h2:not(.vd-text-gradient):not(.text-white),
body[data-color-palette="blue"] .main-wrapper .h3:not(.vd-text-gradient):not(.text-white),
body[data-color-palette="blue"] .main-wrapper .h4:not(.vd-text-gradient):not(.text-white),
body[data-color-palette="blue"] .main-wrapper .h5:not(.vd-text-gradient):not(.text-white) {
    color: var(--vd-text-strong) !important;
}
body[data-color-palette="blue"] .main-wrapper .table thead th {
    color: var(--vd-text-strong) !important;
}

/* === 12) Reports — glass-dark блок приветствуется именно на Blue office ===
   Тёмные карточки-отчёты (как на дашборде-скрине) идеально ложатся в navy-theme.
   В других темах /Reports использует светлый glass (см. pages/reports.css). */
body[data-color-palette="blue"] #reports-container {
    /* Используем переменные pages/reports.css как есть (glass-dark) */
}
/* --- scoped isolation (auto-split) --- */

/* VibeDesk — сгенерировано tools/extract_css_palettes.py; править вручную / см. docs/UI_STYLES_AND_THEMES.md */

body[data-color-palette="blue"] .zen-user-dropdown-lg .dropdown-menu .btn-outline-light{
    color: var(--vd-text-strong) !important;
    border-color: #94a3b8 !important;
    background: #fff !important;
}

body[data-color-palette="blue"] .zen-user-dropdown-lg .dropdown-menu .btn-outline-light:hover{
    background: var(--vd-accent-soft) !important;
    border-color: var(--vd-accent) !important;
    color: var(--vd-text-strong) !important;
}

/* Ctrl+K: Corporate minimal / Professional blue — светлая панель вместо «vibe»-фиолета */

body[data-color-palette="blue"] .vd-cmdk{
    background: rgba(15, 23, 42, 0.45);
}

body[data-color-palette="blue"] .vd-cmdk-panel{
    background: var(--vd-panel);
    border: 1px solid var(--vd-border-strong);
    box-shadow: var(--vd-shadow-lg);
}

body[data-color-palette="blue"] .vd-cmdk-input-wrap{
    border-bottom-color: var(--vd-border-strong);
}

body[data-color-palette="blue"] .vd-cmdk-input{
    background: var(--vd-panel-soft);
    border-color: var(--vd-border-strong);
    color: var(--vd-text);
}

body[data-color-palette="blue"] .vd-cmdk-input:focus{
    border-color: var(--vd-accent) !important;
    box-shadow: 0 0 0 3px var(--vd-accent-soft) !important;
    background: #fff !important;
}

body[data-color-palette="blue"] .vd-cmdk-input-wrap i.vd-cmdk-icon{
    color: var(--vd-text-muted);
}

body[data-color-palette="blue"] .vd-cmdk-group-title{
    color: var(--vd-text-muted);
}

body[data-color-palette="blue"] .vd-cmdk-item-icon{
    background: var(--vd-accent-soft);
    color: var(--vd-accent-strong);
}

body[data-color-palette="blue"] .vd-cmdk-footer{
    border-top: 1px solid var(--vd-border-strong);
    background: var(--vd-panel-soft);
    color: var(--vd-text-muted);
}

body[data-color-palette="blue"] .vd-cmdk-kbd{
    border-color: var(--vd-border-strong);
    background: var(--vd-panel);
    color: var(--vd-text-strong);
}

/* Гостевая плашка на главной: тёмное стекло + светлый лид, заголовок — синий градиент палитры */

body[data-color-palette="blue"] .vd-glass-card--guest-cta{
    background: linear-gradient(145deg, rgba(27, 38, 59, 0.9) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--vd-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #f8fafc !important;
}

body[data-color-palette="blue"] .vd-glass-card--guest-cta .vd-guest-cta-lead{
    color: rgba(248, 250, 252, 0.94) !important;
}

/* Corporate Minimal / Blue: утилиты Bootstrap — контраст от фона через токены */

body[data-color-palette="blue"] .main-wrapper .text-dark{
    color: var(--vd-text-strong) !important;
}

body[data-color-palette="blue"] .main-wrapper .text-body{
    color: var(--vd-text) !important;
}

body.zen-body[data-color-palette="blue"] .main-wrapper .card:not(.bg-primary):not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info):not(.bg-dark):not(.vd-glass-card):not(.zen-auth-card){
    border: 1px solid var(--vd-border-strong) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}

body.zen-body[data-color-palette="blue"] .main-wrapper .card-header:not(.zen-chat-panel-head){
    border-bottom-color: var(--vd-border-strong) !important;
}

body.zen-body[data-color-palette="blue"] .main-wrapper .card-footer{
    border-top-color: var(--vd-border-strong) !important;
}

body.zen-body[data-color-palette="blue"] .main-wrapper .form-control, body.zen-body[data-color-palette="blue"] .main-wrapper .form-select, body.zen-body[data-color-palette="blue"] .main-wrapper textarea, body.zen-body[data-color-palette="blue"] .main-wrapper .input-group-text{
    border: 1px solid #cbd5e1 !important;
}

body.zen-body[data-color-palette="blue"] .main-wrapper .form-control:focus, body.zen-body[data-color-palette="blue"] .main-wrapper .form-select:focus, body.zen-body[data-color-palette="blue"] .main-wrapper textarea:focus{
    border-color: var(--vd-accent) !important;
    box-shadow: 0 0 0 3px var(--vd-accent-soft) !important;
}

body.zen-body[data-color-palette="blue"] .main-wrapper .list-group-item{
    border-color: var(--vd-border-strong) !important;
}

body.zen-body[data-color-palette="blue"] .modal-content{
    border: 1px solid var(--vd-border-strong) !important;
}

body.zen-body[data-color-palette="blue"] .modal-header, body.zen-body[data-color-palette="blue"] .modal-footer{
    border-color: var(--vd-border-strong) !important;
}

body.zen-body[data-color-palette="blue"] .dropdown-menu{
    border: 1px solid var(--vd-border-strong) !important;
}

body.zen-body[data-color-palette="blue"] .main-wrapper .table{
    --bs-table-border-color: var(--vd-border-strong);
}

body.zen-body[data-color-palette="blue"] .main-wrapper .table > :not(caption) > * > *{
    border-bottom-color: var(--vd-border-strong) !important;
}

/* Corporate light/blue: герой в карточке диспетчера/тикетов — белый текст; поля ввода остаются тёмными */

body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero h1, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero h2, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero h3, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero h4, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero h5, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero p, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero .zen-desk-hero-label, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .tw-hero h1, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .tw-hero h2, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .tw-hero h3, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .tw-hero h4, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .tw-hero h5, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .tw-hero p, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-ticket-hero h1, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-ticket-hero h2, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-ticket-hero h3, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-ticket-hero h4, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-ticket-hero h5, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-ticket-hero p{
    color: #fff !important;
}

body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero .form-check-label{
    color: rgba(255, 255, 255, 0.92) !important;
}

body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero .form-control, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero .form-select{
    color: #0f172a !important;
    background-color: #fff !important;
}

body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero .input-group-text{
    color: #475569 !important;
    background-color: #fff !important;
}
/* --- scoped isolation (auto-split) --- */

/* Минипрофиль (dropdown): невыбранные «светлые» кнопки на белом фоне */

body[data-color-palette="blue"] .zen-user-dropdown-lg .dropdown-menu .btn-outline-light{
    color: var(--vd-text-strong) !important;
    border-color: #94a3b8 !important;
    background: #fff !important;
}

body[data-color-palette="blue"] .zen-user-dropdown-lg .dropdown-menu .btn-outline-light:hover{
    background: var(--vd-accent-soft) !important;
    border-color: var(--vd-accent) !important;
    color: var(--vd-text-strong) !important;
}

/* Ctrl+K: Corporate minimal / Professional blue — светлая панель вместо «vibe»-фиолета */

body[data-color-palette="blue"] .vd-cmdk{
    background: rgba(15, 23, 42, 0.45);
}

body[data-color-palette="blue"] .vd-cmdk-panel{
    background: var(--vd-panel);
    border: 1px solid var(--vd-border-strong);
    box-shadow: var(--vd-shadow-lg);
}

body[data-color-palette="blue"] .vd-cmdk-input-wrap{
    border-bottom-color: var(--vd-border-strong);
}

body[data-color-palette="blue"] .vd-cmdk-input{
    background: var(--vd-panel-soft);
    border-color: var(--vd-border-strong);
    color: var(--vd-text);
}

body[data-color-palette="blue"] .vd-cmdk-input:focus{
    border-color: var(--vd-accent) !important;
    box-shadow: 0 0 0 3px var(--vd-accent-soft) !important;
    background: #fff !important;
}

body[data-color-palette="blue"] .vd-cmdk-input-wrap i.vd-cmdk-icon{
    color: var(--vd-text-muted);
}

body[data-color-palette="blue"] .vd-cmdk-group-title{
    color: var(--vd-text-muted);
}

body[data-color-palette="blue"] .vd-cmdk-item-icon{
    background: var(--vd-accent-soft);
    color: var(--vd-accent-strong);
}

body[data-color-palette="blue"] .vd-cmdk-footer{
    border-top: 1px solid var(--vd-border-strong);
    background: var(--vd-panel-soft);
    color: var(--vd-text-muted);
}

body[data-color-palette="blue"] .vd-cmdk-kbd{
    border-color: var(--vd-border-strong);
    background: var(--vd-panel);
    color: var(--vd-text-strong);
}

/* Гостевая плашка на главной: тёмное стекло + светлый лид, заголовок — синий градиент палитры */

body[data-color-palette="blue"] .vd-glass-card--guest-cta{
    background: linear-gradient(145deg, rgba(27, 38, 59, 0.9) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--vd-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #f8fafc !important;
}

body[data-color-palette="blue"] .vd-glass-card--guest-cta .vd-guest-cta-lead{
    color: rgba(248, 250, 252, 0.94) !important;
}

/* Corporate Minimal / Blue: утилиты Bootstrap — контраст от фона через токены */

body[data-color-palette="blue"] .main-wrapper .text-dark{
    color: var(--vd-text-strong) !important;
}

body[data-color-palette="blue"] .main-wrapper .text-body{
    color: var(--vd-text) !important;
}

body.zen-body[data-color-palette="blue"] .main-wrapper .card:not(.bg-primary):not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info):not(.bg-dark):not(.vd-glass-card):not(.zen-auth-card){
    border: 1px solid var(--vd-border-strong) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}

body.zen-body[data-color-palette="blue"] .main-wrapper .card-header:not(.zen-chat-panel-head){
    border-bottom-color: var(--vd-border-strong) !important;
}

body.zen-body[data-color-palette="blue"] .main-wrapper .card-footer{
    border-top-color: var(--vd-border-strong) !important;
}

body.zen-body[data-color-palette="blue"] .main-wrapper .form-control, body.zen-body[data-color-palette="blue"] .main-wrapper .form-select, body.zen-body[data-color-palette="blue"] .main-wrapper textarea, body.zen-body[data-color-palette="blue"] .main-wrapper .input-group-text{
    border: 1px solid #cbd5e1 !important;
}

body.zen-body[data-color-palette="blue"] .main-wrapper .form-control:focus, body.zen-body[data-color-palette="blue"] .main-wrapper .form-select:focus, body.zen-body[data-color-palette="blue"] .main-wrapper textarea:focus{
    border-color: var(--vd-accent) !important;
    box-shadow: 0 0 0 3px var(--vd-accent-soft) !important;
}

body.zen-body[data-color-palette="blue"] .main-wrapper .list-group-item{
    border-color: var(--vd-border-strong) !important;
}

body.zen-body[data-color-palette="blue"] .modal-content{
    border: 1px solid var(--vd-border-strong) !important;
}

body.zen-body[data-color-palette="blue"] .modal-header, body.zen-body[data-color-palette="blue"] .modal-footer{
    border-color: var(--vd-border-strong) !important;
}

body.zen-body[data-color-palette="blue"] .dropdown-menu{
    border: 1px solid var(--vd-border-strong) !important;
}

body.zen-body[data-color-palette="blue"] .main-wrapper .table{
    --bs-table-border-color: var(--vd-border-strong);
}

body.zen-body[data-color-palette="blue"] .main-wrapper .table > :not(caption) > * > *{
    border-bottom-color: var(--vd-border-strong) !important;
}

/* Corporate light/blue: герой в карточке диспетчера/тикетов — белый текст; поля ввода остаются тёмными */

body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero h1, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero h2, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero h3, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero h4, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero h5, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero p, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero .zen-desk-hero-label, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .tw-hero h1, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .tw-hero h2, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .tw-hero h3, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .tw-hero h4, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .tw-hero h5, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .tw-hero p, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-ticket-hero h1, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-ticket-hero h2, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-ticket-hero h3, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-ticket-hero h4, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-ticket-hero h5, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-ticket-hero p{
    color: #fff !important;
}

body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero .form-check-label{
    color: rgba(255, 255, 255, 0.92) !important;
}

body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero .form-control, body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero .form-select{
    color: #0f172a !important;
    background-color: #fff !important;
}

body[data-color-palette="blue"] .main-wrapper .tw-surface-card.tw-toolbar-card .zen-desk-hero .input-group-text{
    color: #475569 !important;
    background-color: #fff !important;
}

/* Messenger — Vibe Runner: chrome как vd-sidebar (navy glass, белый текст, синие кнопки) */
body[data-color-palette="blue"] .zen-messenger-shell {
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-unified-card {
    background: linear-gradient(180deg, var(--vd-chrome-sidebar-glass-from) 0%, var(--vd-chrome-sidebar-glass-to) 100%) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-sidebar-col {
    border-right-color: rgba(255, 255, 255, 0.1) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-sidebar-footer,
body[data-color-palette="blue"] .zen-messenger-shell #contactsList {
    background: transparent !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-header--light {
    border-bottom: 1px solid var(--vd-chrome-border) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-sidebar-title,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-row-title,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-header--light .fw-bold,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-header--light .zen-messenger-thread-title,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-header--light .zen-messenger-thread-title-link {
    color: #ffffff !important;
    text-shadow: none !important;
}

/* Вкладки фильтра — белый текст как у zen-messenger-thread-title (vd-messenger-theme перебивает токены) */
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-tab {
    color: rgba(255, 255, 255, 0.78) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-tab:hover {
    color: #ffffff !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-tab.is-active,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-tab.is-active .zen-messenger-tab-count {
    color: #ffffff !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-tab-count {
    opacity: 1 !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-header--light .zen-messenger-thread-subtitle,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-header--light .small,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-conv-preview,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-conv-time,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-archive-link {
    color: rgba(255, 255, 255, 0.78) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-archive-link:hover {
    color: #ffffff !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-header--light i,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-header--light .bi,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-sidebar-head i,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-sidebar-head .bi {
    color: #ffffff !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-header--light .zen-messenger-header-action {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-header--light .zen-messenger-header-action:hover,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-header--light .zen-messenger-header-action:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-compose-btn {
    background: var(--vd-accent) !important;
    border-color: var(--vd-accent-strong) !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-compose-btn:hover,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-compose-btn:focus {
    background: var(--vd-accent-strong) !important;
    color: #ffffff !important;
    border-color: color-mix(in srgb, var(--vd-accent-strong) 88%, #000) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-conv-card:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.08) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-conv-card.is-active {
    border-left: 3px solid #93c5fd;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-conv-avatar {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #dbeafe !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-conv-read {
    color: #93c5fd !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-avatar-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #dbeafe !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-composer {
    background: linear-gradient(180deg, var(--vd-chrome-bg-soft) 0%, var(--vd-chrome-bg) 100%) !important;
    color: #ffffff !important;
    border-top-color: var(--vd-chrome-border) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-composer .form-control,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-composer-attach {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-composer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-composer-attach,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-composer-emoji {
    color: rgba(255, 255, 255, 0.78) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-composer-send.btn-primary {
    background: var(--vd-accent) !important;
    border-color: var(--vd-accent-strong) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-composer-send.btn-primary:hover,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-composer-send.btn-primary:focus {
    background: var(--vd-accent-strong) !important;
    border-color: color-mix(in srgb, var(--vd-accent-strong) 88%, #000) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-header .btn-primary,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-composer .btn-primary {
    background: var(--vd-accent) !important;
    border-color: var(--vd-accent-strong) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-header .btn-primary:hover,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-header .btn-primary:focus,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-composer .btn-primary:hover,
body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-composer .btn-primary:focus {
    background: var(--vd-accent-strong) !important;
    border-color: color-mix(in srgb, var(--vd-accent-strong) 88%, #000) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-ticket-routing {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--vd-chrome-border) !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-conv-action-btn {
    color: rgba(255, 255, 255, 0.55) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-conv-action-btn:hover {
    color: #ffffff !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .tw-avatar-fallback {
    color: #dbeafe !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread-title-link:hover {
    color: #dbeafe !important;
}

/* Шапки мессенджера — chrome фон (перебивает vd-overrides .card-header { background: var(--vd-panel-soft) }) */
body.zen-body[data-color-palette="blue"] .main-wrapper .zen-messenger-shell .zen-messenger-panel .card-header.zen-messenger-sidebar-head,
body.zen-body[data-color-palette="blue"] .main-wrapper .zen-messenger-shell .zen-messenger-thread .card-header.zen-messenger-thread-header.zen-messenger-thread-header--light,
body.zen-body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-panel .card-header.zen-messenger-sidebar-head,
body.zen-body[data-color-palette="blue"] .zen-messenger-shell .zen-messenger-thread .card-header.zen-messenger-thread-header.zen-messenger-thread-header--light {
    background: linear-gradient(135deg, var(--vd-chrome-gradient-135-from) 0%, var(--vd-chrome-gradient-135-to) 100%) !important;
    background-color: transparent !important;
    border-bottom-color: var(--vd-chrome-border) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}
